@neoprototype/neop-ui-lib 1.1.1 → 1.1.2
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/fesm2022/neoprototype-neop-ui-lib.mjs +98 -98
- package/fesm2022/neoprototype-neop-ui-lib.mjs.map +1 -1
- package/package.json +3 -3
- package/types/neoprototype-neop-ui-lib.d.ts +904 -0
- package/index.d.ts +0 -5
- package/lib/components/basic/basic.module.d.ts +0 -12
- package/lib/components/basic/np-action-bar/np-action-bar.component.d.ts +0 -56
- package/lib/components/basic/np-alert/np-alert.component.d.ts +0 -32
- package/lib/components/basic/np-breadcrumb/np-breadcrumb.component.d.ts +0 -32
- package/lib/components/basic/np-button/np-button.component.d.ts +0 -18
- package/lib/components/basic/np-checkbox/np-checkbox.component.d.ts +0 -19
- package/lib/components/basic/np-dropdowns/np-dropdowns.component.d.ts +0 -33
- package/lib/components/basic/np-input-field/np-input-field.component.d.ts +0 -48
- package/lib/components/basic/np-input-textera/np-input-textera.component.d.ts +0 -26
- package/lib/components/basic/np-loading-indicator/np-loading-indicator.component.d.ts +0 -7
- package/lib/components/basic/np-modal/np-modal.component.d.ts +0 -34
- package/lib/components/basic/np-pagination/np-pagination.component.d.ts +0 -38
- package/lib/components/basic/np-progress-bar/np-progress-bar.component.d.ts +0 -7
- package/lib/components/basic/np-resize/np-resize.component.d.ts +0 -27
- package/lib/components/basic/np-scrollbar/np-scrollbar.component.d.ts +0 -14
- package/lib/components/basic/np-select/np-select.component.d.ts +0 -29
- package/lib/components/basic/np-slider/np-slider.component.d.ts +0 -16
- package/lib/components/basic/np-tab/np-tab.component.d.ts +0 -35
- package/lib/components/basic/np-table/np-table.component.d.ts +0 -113
- package/lib/components/basic/np-toggle/np-toggle.component.d.ts +0 -15
- package/lib/components/basic/np-tooltip/np-tooltip.component.d.ts +0 -18
- package/lib/components/basic/np-tree/np-tree.component.d.ts +0 -48
- package/lib/components/basic/np-typography/np-typography.component.d.ts +0 -15
- package/lib/components/modal/confirm-template/confirm-template.component.d.ts +0 -32
- package/lib/components/modal/np-dialog/np-dialog.component.d.ts +0 -10
- package/lib/components/neop-component.module.d.ts +0 -7
- package/lib/config/form-error-config.d.ts +0 -3
- package/lib/enum/basic/breadcrumb.enum.d.ts +0 -5
- package/lib/enum/np-breadcrumb.enum.d.ts +0 -4
- package/lib/interfaces/default.interface.d.ts +0 -5
- package/lib/interfaces/dictionary-item.interface.d.ts +0 -10
- package/lib/interfaces/np-tab.interface.d.ts +0 -5
- package/lib/interfaces/np-table.interface.d.ts +0 -15
- package/lib/interfaces/np-tree.interface.d.ts +0 -29
- package/lib/interfaces/np.actions.d.ts +0 -8
- package/lib/models/default.mode.d.ts +0 -68
- package/lib/services/np-alert.service.d.ts +0 -29
- package/lib/services/np-dialog.service.d.ts +0 -11
- package/lib/services/test.service.d.ts +0 -8
- package/lib/services/theme.service.d.ts +0 -9
- package/public-api.d.ts +0 -38
|
@@ -0,0 +1,904 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { RendererFactory2, ElementRef, Renderer2, EventEmitter, InjectionToken, TemplateRef, OnInit, OnChanges, SimpleChanges, AfterViewInit, ChangeDetectorRef, QueryList } from '@angular/core';
|
|
3
|
+
import { NzModalService, NzModalRef } from 'ng-zorro-antd/modal';
|
|
4
|
+
import { ComponentType } from '@angular/cdk/portal';
|
|
5
|
+
import * as rxjs from 'rxjs';
|
|
6
|
+
import { Observable, Subscription } from 'rxjs';
|
|
7
|
+
import * as i1 from '@angular/common';
|
|
8
|
+
import { DecimalPipe } from '@angular/common';
|
|
9
|
+
import { FormControl } from '@angular/forms';
|
|
10
|
+
import { Router, ActivatedRoute } from '@angular/router';
|
|
11
|
+
import { NzIconService } from 'ng-zorro-antd/icon';
|
|
12
|
+
import { NzResizeDirection, NzResizeEvent } from 'ng-zorro-antd/resizable';
|
|
13
|
+
|
|
14
|
+
declare class TestService {
|
|
15
|
+
constructor();
|
|
16
|
+
test(): string;
|
|
17
|
+
test2(): string;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TestService, never>;
|
|
19
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TestService>;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
declare class ThemeService {
|
|
23
|
+
private themeElement;
|
|
24
|
+
constructor(rendererFactory: RendererFactory2);
|
|
25
|
+
setTheme(themeClass: string): void;
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ThemeService, never>;
|
|
27
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ThemeService>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
declare class NpDialogService {
|
|
31
|
+
private modal;
|
|
32
|
+
constructor(modal: NzModalService);
|
|
33
|
+
openDialog<T, D = any, R = any>(component: ComponentType<T>, params?: Partial<D>): Observable<R>;
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NpDialogService, never>;
|
|
35
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NpDialogService>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
interface AlertData {
|
|
39
|
+
type: 'toast' | 'notification';
|
|
40
|
+
state: 'success' | 'info' | 'warning' | 'error';
|
|
41
|
+
title?: string;
|
|
42
|
+
description: string;
|
|
43
|
+
message?: string;
|
|
44
|
+
autoHide?: boolean;
|
|
45
|
+
isFromService?: boolean;
|
|
46
|
+
}
|
|
47
|
+
declare class NpAlertService {
|
|
48
|
+
private alertSubject;
|
|
49
|
+
alert$: rxjs.Observable<AlertData>;
|
|
50
|
+
toast: {
|
|
51
|
+
success: (description: string, title?: string, message?: string) => void;
|
|
52
|
+
info: (description: string, title?: string, message?: string) => void;
|
|
53
|
+
warning: (description: string, title?: string, message?: string) => void;
|
|
54
|
+
error: (description: string, title?: string, message?: string) => void;
|
|
55
|
+
};
|
|
56
|
+
notification: {
|
|
57
|
+
success: (description: string, title?: string, message?: string) => void;
|
|
58
|
+
info: (description: string, title?: string, message?: string) => void;
|
|
59
|
+
warning: (description: string, title?: string, message?: string) => void;
|
|
60
|
+
error: (description: string, title?: string, message?: string) => void;
|
|
61
|
+
};
|
|
62
|
+
private emit;
|
|
63
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NpAlertService, never>;
|
|
64
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NpAlertService>;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
declare class NeopComponentModule {
|
|
68
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NeopComponentModule, never>;
|
|
69
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NeopComponentModule, never, [typeof i1.CommonModule], never>;
|
|
70
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<NeopComponentModule>;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
declare class NpTypographyComponent {
|
|
74
|
+
private renderer;
|
|
75
|
+
container: ElementRef;
|
|
76
|
+
npType: string;
|
|
77
|
+
npSize: string;
|
|
78
|
+
npWeight: string;
|
|
79
|
+
_ngContent: Element | null;
|
|
80
|
+
set ngContent(value: Element);
|
|
81
|
+
constructor(renderer: Renderer2);
|
|
82
|
+
updateContent(): void;
|
|
83
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NpTypographyComponent, never>;
|
|
84
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NpTypographyComponent, "np-typography", never, { "npType": { "alias": "npType"; "required": false; }; "npSize": { "alias": "npSize"; "required": false; }; "npWeight": { "alias": "npWeight"; "required": false; }; "ngContent": { "alias": "ngContent"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
declare class NpButtonComponent {
|
|
88
|
+
private renderer;
|
|
89
|
+
container: ElementRef;
|
|
90
|
+
npType: string;
|
|
91
|
+
npSize: string;
|
|
92
|
+
className: string;
|
|
93
|
+
isLoading: boolean;
|
|
94
|
+
disabled: boolean;
|
|
95
|
+
_ngContent: Element | null;
|
|
96
|
+
set ngContent(value: Element);
|
|
97
|
+
constructor(renderer: Renderer2);
|
|
98
|
+
updateContent(): void;
|
|
99
|
+
onClick(e: any): void;
|
|
100
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NpButtonComponent, never>;
|
|
101
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NpButtonComponent, "np-button", never, { "npType": { "alias": "npType"; "required": false; }; "npSize": { "alias": "npSize"; "required": false; }; "className": { "alias": "className"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "ngContent": { "alias": "ngContent"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
declare class NpCheckboxComponent {
|
|
105
|
+
_input: FormControl;
|
|
106
|
+
set input(value: FormControl | undefined | boolean);
|
|
107
|
+
type: string;
|
|
108
|
+
size: string;
|
|
109
|
+
npType: string;
|
|
110
|
+
isDisabled: boolean;
|
|
111
|
+
groupName: string;
|
|
112
|
+
label?: string;
|
|
113
|
+
description?: string;
|
|
114
|
+
isIndeterminate: boolean;
|
|
115
|
+
valueChange: EventEmitter<boolean>;
|
|
116
|
+
onChange(event: any): void;
|
|
117
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NpCheckboxComponent, never>;
|
|
118
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NpCheckboxComponent, "np-checkbox", never, { "input": { "alias": "input"; "required": false; }; "type": { "alias": "type"; "required": false; }; "size": { "alias": "size"; "required": false; }; "npType": { "alias": "npType"; "required": false; }; "isDisabled": { "alias": "isDisabled"; "required": false; }; "groupName": { "alias": "groupName"; "required": false; }; "label": { "alias": "label"; "required": false; }; "description": { "alias": "description"; "required": false; }; "isIndeterminate": { "alias": "isIndeterminate"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
type FormErrorMap = Record<string, string>;
|
|
122
|
+
declare const FORM_ERROR_MAP: InjectionToken<FormErrorMap>;
|
|
123
|
+
|
|
124
|
+
declare class NpInputFieldComponent {
|
|
125
|
+
private decimalPipe;
|
|
126
|
+
private defaultErrorMap?;
|
|
127
|
+
constructor(decimalPipe: DecimalPipe, defaultErrorMap?: FormErrorMap | undefined);
|
|
128
|
+
inputRef: ElementRef<HTMLInputElement>;
|
|
129
|
+
size: string;
|
|
130
|
+
label?: string;
|
|
131
|
+
placeholder?: string;
|
|
132
|
+
iconLeft?: string;
|
|
133
|
+
iconRight?: string;
|
|
134
|
+
hint?: string;
|
|
135
|
+
errorMap?: FormErrorMap;
|
|
136
|
+
disabled: boolean;
|
|
137
|
+
limitValue?: number;
|
|
138
|
+
functionHandler?: Function;
|
|
139
|
+
submitted: boolean;
|
|
140
|
+
digitsInfo: string;
|
|
141
|
+
locale: string;
|
|
142
|
+
formatDate: string;
|
|
143
|
+
inputType: string;
|
|
144
|
+
passwordVisible: boolean;
|
|
145
|
+
_input: FormControl;
|
|
146
|
+
_type: 'password' | 'text' | 'number' | 'string' | 'date' | 'function';
|
|
147
|
+
set input(value: FormControl | undefined);
|
|
148
|
+
set type(value: typeof this._type);
|
|
149
|
+
get type(): typeof this._type;
|
|
150
|
+
valueChange: EventEmitter<string | number>;
|
|
151
|
+
iconLeftClick: EventEmitter<void>;
|
|
152
|
+
iconRightClick: EventEmitter<void>;
|
|
153
|
+
blur: EventEmitter<FocusEvent>;
|
|
154
|
+
onChangeValue(): void;
|
|
155
|
+
updateInputType(): void;
|
|
156
|
+
togglePassword(): void;
|
|
157
|
+
get computedStatus(): string | undefined;
|
|
158
|
+
get errorMessageFromInput(): string | null;
|
|
159
|
+
handleKeyPress(event: KeyboardEvent): void;
|
|
160
|
+
onInputChange(event: Event): void;
|
|
161
|
+
onBlur(event?: FocusEvent): void;
|
|
162
|
+
handleIconLeftClick(): void;
|
|
163
|
+
handleIconRightClick(): void;
|
|
164
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NpInputFieldComponent, [null, { optional: true; }]>;
|
|
165
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NpInputFieldComponent, "np-input-field", never, { "size": { "alias": "size"; "required": false; }; "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "iconLeft": { "alias": "iconLeft"; "required": false; }; "iconRight": { "alias": "iconRight"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "errorMap": { "alias": "errorMap"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "limitValue": { "alias": "limitValue"; "required": false; }; "functionHandler": { "alias": "functionHandler"; "required": false; }; "submitted": { "alias": "submitted"; "required": false; }; "digitsInfo": { "alias": "digitsInfo"; "required": false; }; "locale": { "alias": "locale"; "required": false; }; "formatDate": { "alias": "formatDate"; "required": false; }; "input": { "alias": "input"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, { "valueChange": "valueChange"; "iconLeftClick": "iconLeftClick"; "iconRightClick": "iconRightClick"; "blur": "blur"; }, never, never, true, never>;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
declare class NpInputTexteraComponent {
|
|
169
|
+
private defaultErrorMap?;
|
|
170
|
+
constructor(defaultErrorMap?: FormErrorMap | undefined);
|
|
171
|
+
label: string;
|
|
172
|
+
placeholder?: string;
|
|
173
|
+
hint?: string;
|
|
174
|
+
disabled: boolean;
|
|
175
|
+
value?: string;
|
|
176
|
+
limitValue?: number;
|
|
177
|
+
submitted: boolean;
|
|
178
|
+
rowSize: {
|
|
179
|
+
minRows: number;
|
|
180
|
+
maxRows: number;
|
|
181
|
+
};
|
|
182
|
+
_input: FormControl;
|
|
183
|
+
currentLength: number;
|
|
184
|
+
set input(value: FormControl | undefined);
|
|
185
|
+
onTextareaInput(event: Event): void;
|
|
186
|
+
get computedStatus(): string | undefined;
|
|
187
|
+
get errorMessageFromInput(): string | null;
|
|
188
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NpInputTexteraComponent, [{ optional: true; }]>;
|
|
189
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NpInputTexteraComponent, "np-input-textera", never, { "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "value": { "alias": "value"; "required": false; }; "limitValue": { "alias": "limitValue"; "required": false; }; "submitted": { "alias": "submitted"; "required": false; }; "rowSize": { "alias": "rowSize"; "required": false; }; "input": { "alias": "input"; "required": false; }; }, {}, never, never, true, never>;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
declare class NpToggleComponent {
|
|
193
|
+
_input: FormControl;
|
|
194
|
+
set input(value: FormControl | undefined | boolean);
|
|
195
|
+
size: string;
|
|
196
|
+
label?: string;
|
|
197
|
+
subLabel?: string;
|
|
198
|
+
disabled: boolean;
|
|
199
|
+
valueChange: EventEmitter<boolean>;
|
|
200
|
+
toggleChecked(value: boolean): void;
|
|
201
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NpToggleComponent, never>;
|
|
202
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NpToggleComponent, "np-toggle", never, { "input": { "alias": "input"; "required": false; }; "size": { "alias": "size"; "required": false; }; "label": { "alias": "label"; "required": false; }; "subLabel": { "alias": "subLabel"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
interface NpDictionaryItem {
|
|
206
|
+
classIcon: any;
|
|
207
|
+
value: string;
|
|
208
|
+
label: string;
|
|
209
|
+
nzValue: string;
|
|
210
|
+
nzLabel: string;
|
|
211
|
+
isDisabled?: boolean;
|
|
212
|
+
type?: string;
|
|
213
|
+
childrens?: NpDictionaryItem[];
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
declare enum NpInputMode {
|
|
217
|
+
DEFAULT = "default",
|
|
218
|
+
MULTIPLE = "multiple",
|
|
219
|
+
TAGS = "tags"
|
|
220
|
+
}
|
|
221
|
+
declare class NpSelectComponent {
|
|
222
|
+
npType: string;
|
|
223
|
+
className: string;
|
|
224
|
+
label?: string;
|
|
225
|
+
hint?: string;
|
|
226
|
+
placeHolder: string;
|
|
227
|
+
labelTemplate?: TemplateRef<any>;
|
|
228
|
+
valueTemplate?: TemplateRef<any>;
|
|
229
|
+
isAllowClear: boolean;
|
|
230
|
+
iconPrefixClass?: string;
|
|
231
|
+
mode: 'multiple' | 'tags' | 'default';
|
|
232
|
+
listItem: NpDictionaryItem[] | any;
|
|
233
|
+
NpMode: typeof NpInputMode;
|
|
234
|
+
_input: FormControl;
|
|
235
|
+
set input(value: FormControl | undefined);
|
|
236
|
+
valueChange: EventEmitter<string>;
|
|
237
|
+
onChangeValue(): void;
|
|
238
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NpSelectComponent, never>;
|
|
239
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NpSelectComponent, "np-select", never, { "npType": { "alias": "npType"; "required": false; }; "className": { "alias": "className"; "required": false; }; "label": { "alias": "label"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "placeHolder": { "alias": "placeHolder"; "required": false; }; "labelTemplate": { "alias": "labelTemplate"; "required": false; }; "valueTemplate": { "alias": "valueTemplate"; "required": false; }; "isAllowClear": { "alias": "isAllowClear"; "required": false; }; "iconPrefixClass": { "alias": "iconPrefixClass"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "listItem": { "alias": "listItem"; "required": false; }; "input": { "alias": "input"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
declare enum NpMode {
|
|
243
|
+
DEFAULT = "default",
|
|
244
|
+
MULTIPLE = "multiple",
|
|
245
|
+
TAGS = "tags"
|
|
246
|
+
}
|
|
247
|
+
declare class NpDropdownsComponent {
|
|
248
|
+
npType: string;
|
|
249
|
+
npSize: string;
|
|
250
|
+
className: string;
|
|
251
|
+
value: string;
|
|
252
|
+
useSearch: boolean;
|
|
253
|
+
alwaysOpen: boolean;
|
|
254
|
+
placement: 'bottomLeft' | 'bottomCenter' | 'bottomRight' | 'topLeft' | 'topCenter' | 'topRight';
|
|
255
|
+
list: NpDictionaryItem[] | any;
|
|
256
|
+
valueChange: EventEmitter<NpDictionaryItem>;
|
|
257
|
+
visible: boolean;
|
|
258
|
+
searchControl: FormControl<string | null>;
|
|
259
|
+
originalList: NpDictionaryItem[];
|
|
260
|
+
filteredList: NpDictionaryItem[];
|
|
261
|
+
selectedItem: NpDictionaryItem | null;
|
|
262
|
+
ngOnInit(): void;
|
|
263
|
+
clickMe(): void;
|
|
264
|
+
change(value: boolean): void;
|
|
265
|
+
onSelectItem(item: NpDictionaryItem): void;
|
|
266
|
+
onRightIconClick(): void;
|
|
267
|
+
filterList(search: string): void;
|
|
268
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NpDropdownsComponent, never>;
|
|
269
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NpDropdownsComponent, "np-dropdowns", never, { "npType": { "alias": "npType"; "required": false; }; "npSize": { "alias": "npSize"; "required": false; }; "className": { "alias": "className"; "required": false; }; "value": { "alias": "value"; "required": false; }; "useSearch": { "alias": "useSearch"; "required": false; }; "alwaysOpen": { "alias": "alwaysOpen"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "list": { "alias": "list"; "required": false; }; }, { "valueChange": "valueChange"; "visible": "visible"; }, never, never, true, never>;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
interface INpAction {
|
|
273
|
+
key?: string;
|
|
274
|
+
classIcon?: string;
|
|
275
|
+
label?: string;
|
|
276
|
+
hidden?: boolean;
|
|
277
|
+
className?: string;
|
|
278
|
+
onClick?: Function;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
interface INpTreeNode {
|
|
282
|
+
id: string;
|
|
283
|
+
name: string;
|
|
284
|
+
isSelected?: boolean;
|
|
285
|
+
isChecked?: boolean;
|
|
286
|
+
isIndeterminate?: boolean;
|
|
287
|
+
type?: string;
|
|
288
|
+
isActive?: boolean;
|
|
289
|
+
isExpanded?: boolean;
|
|
290
|
+
className?: string;
|
|
291
|
+
iconCollapsed?: string;
|
|
292
|
+
iconExpanded?: string;
|
|
293
|
+
iconLeaf?: string;
|
|
294
|
+
level?: number;
|
|
295
|
+
parentId?: string | null;
|
|
296
|
+
childrens?: INpTreeNode[];
|
|
297
|
+
checkboxType?: 'checkbox' | 'indeterminate' | undefined;
|
|
298
|
+
isLast?: boolean;
|
|
299
|
+
isLastByLevel?: {
|
|
300
|
+
[level: number]: boolean;
|
|
301
|
+
};
|
|
302
|
+
hasParentByLevel?: {
|
|
303
|
+
[level: number]: boolean;
|
|
304
|
+
};
|
|
305
|
+
showAction?: boolean;
|
|
306
|
+
actions?: INpAction[];
|
|
307
|
+
path?: string;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
interface IFlatTreeNode extends INpTreeNode {
|
|
311
|
+
isLastByLevel?: {
|
|
312
|
+
[level: number]: boolean;
|
|
313
|
+
};
|
|
314
|
+
hasParentByLevel?: {
|
|
315
|
+
[level: number]: boolean;
|
|
316
|
+
};
|
|
317
|
+
}
|
|
318
|
+
declare class NpTreeComponent implements OnInit {
|
|
319
|
+
type: 'checkbox' | 'icon' | 'default';
|
|
320
|
+
expandPosition: 'left' | 'right';
|
|
321
|
+
notCompressMin: number;
|
|
322
|
+
isCompactActions: boolean;
|
|
323
|
+
autoHideActions: boolean;
|
|
324
|
+
className: string;
|
|
325
|
+
_list: INpTreeNode[] | undefined;
|
|
326
|
+
_flattenList: INpTreeNode[] | undefined;
|
|
327
|
+
set list(value: INpTreeNode[] | undefined);
|
|
328
|
+
_input: FormControl;
|
|
329
|
+
set input(value: FormControl | undefined);
|
|
330
|
+
valueChange: EventEmitter<string[]>;
|
|
331
|
+
itemActiveId: string;
|
|
332
|
+
useLine: boolean;
|
|
333
|
+
visibleNodes: INpTreeNode[];
|
|
334
|
+
getFlattenList(arr: INpTreeNode[] | undefined, level?: number, parentId?: string | null, parentLastMap?: Record<number, boolean>, parentMap?: Record<number, boolean>): IFlatTreeNode[];
|
|
335
|
+
onExpand(event: any, item: INpTreeNode): void;
|
|
336
|
+
getVisibleNodes(): INpTreeNode[];
|
|
337
|
+
isParentExpanded(item: INpTreeNode, map: Map<any, INpTreeNode>): boolean;
|
|
338
|
+
itemHasChildren(item: INpTreeNode): boolean;
|
|
339
|
+
onSelectItem(item: INpTreeNode): void;
|
|
340
|
+
onCheckItem(item: INpTreeNode): void;
|
|
341
|
+
updateParentSelection(parentId: string | undefined): void;
|
|
342
|
+
updateChildrenSelection(node: INpTreeNode): void;
|
|
343
|
+
onValueChange(): void;
|
|
344
|
+
onSelectAction(event: any): void;
|
|
345
|
+
ngOnInit(): void;
|
|
346
|
+
normalizeIcons(list: INpTreeNode[]): void;
|
|
347
|
+
getNodeClasses(item: any, isLast: boolean): {
|
|
348
|
+
[key: string]: boolean;
|
|
349
|
+
};
|
|
350
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NpTreeComponent, never>;
|
|
351
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NpTreeComponent, "np-tree", never, { "type": { "alias": "type"; "required": false; }; "expandPosition": { "alias": "expandPosition"; "required": false; }; "notCompressMin": { "alias": "notCompressMin"; "required": false; }; "isCompactActions": { "alias": "isCompactActions"; "required": false; }; "autoHideActions": { "alias": "autoHideActions"; "required": false; }; "className": { "alias": "className"; "required": false; }; "list": { "alias": "list"; "required": false; }; "input": { "alias": "input"; "required": false; }; "itemActiveId": { "alias": "itemActiveId"; "required": false; }; "useLine": { "alias": "useLine"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
declare class NpPaginationComponent implements OnChanges, OnInit {
|
|
355
|
+
type: 'basic' | 'outlined' | 'text' | 'simple' | 'full';
|
|
356
|
+
totalItems: number;
|
|
357
|
+
pageSize: number[];
|
|
358
|
+
isReverse: boolean;
|
|
359
|
+
pageSizeChange: EventEmitter<number>;
|
|
360
|
+
pageTotal: number;
|
|
361
|
+
private _pageSizeValue;
|
|
362
|
+
private _pageIndex;
|
|
363
|
+
isDropdownOpenMap: {
|
|
364
|
+
[key: string]: boolean;
|
|
365
|
+
};
|
|
366
|
+
get pageIndex(): number;
|
|
367
|
+
set pageIndex(value: number);
|
|
368
|
+
get pageSizeOptions(): number;
|
|
369
|
+
set pageSizeOptions(value: number);
|
|
370
|
+
pageIndexChange: EventEmitter<number>;
|
|
371
|
+
triggerRef: ElementRef;
|
|
372
|
+
ngOnInit(): void;
|
|
373
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
374
|
+
calculatePageTotal(): void;
|
|
375
|
+
onPageSizeChange(newSize: string): void;
|
|
376
|
+
dropdownStyleMap: {
|
|
377
|
+
[key: string]: any;
|
|
378
|
+
};
|
|
379
|
+
toggleDropdownByType(type: string): void;
|
|
380
|
+
onSelectPageSize(size: number): void;
|
|
381
|
+
getDisplayedPages(): (number | string)[];
|
|
382
|
+
prevPage(): void;
|
|
383
|
+
nextPage(): void;
|
|
384
|
+
changePage(newPage: number | string): void;
|
|
385
|
+
onDocumentClick(event: MouseEvent): void;
|
|
386
|
+
onWindowScroll(): void;
|
|
387
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NpPaginationComponent, never>;
|
|
388
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NpPaginationComponent, "np-pagination", never, { "type": { "alias": "type"; "required": false; }; "totalItems": { "alias": "totalItems"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "isReverse": { "alias": "isReverse"; "required": false; }; "pageIndex": { "alias": "pageIndex"; "required": false; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; }; }, { "pageSizeChange": "pageSizeChange"; "pageIndexChange": "pageIndexChange"; }, never, never, true, never>;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
declare class NpScrollbarComponent {
|
|
392
|
+
private renderer;
|
|
393
|
+
container: ElementRef;
|
|
394
|
+
width?: string;
|
|
395
|
+
height?: string;
|
|
396
|
+
_ngContent: Element | null;
|
|
397
|
+
set ngContent(value: Element);
|
|
398
|
+
constructor(renderer: Renderer2);
|
|
399
|
+
updateContent(): void;
|
|
400
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NpScrollbarComponent, never>;
|
|
401
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NpScrollbarComponent, "np-scrollbar", never, { "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "ngContent": { "alias": "ngContent"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
declare class NpAlertComponent {
|
|
405
|
+
private el;
|
|
406
|
+
private renderer;
|
|
407
|
+
private _alertService;
|
|
408
|
+
type: 'notification' | 'toast';
|
|
409
|
+
state: 'success' | 'info' | 'warning' | 'error';
|
|
410
|
+
description: string;
|
|
411
|
+
title?: string;
|
|
412
|
+
message?: string;
|
|
413
|
+
autoHideDelay: number;
|
|
414
|
+
autoHide: boolean;
|
|
415
|
+
isFromService: boolean;
|
|
416
|
+
isMessageVisible: boolean;
|
|
417
|
+
opacity: number;
|
|
418
|
+
padding: string;
|
|
419
|
+
constructor(el: ElementRef, renderer: Renderer2, _alertService: NpAlertService);
|
|
420
|
+
ngOnInit(): void;
|
|
421
|
+
startFadeOut(): void;
|
|
422
|
+
closeAlert(): void;
|
|
423
|
+
removeSelf(): void;
|
|
424
|
+
showMessege(): void;
|
|
425
|
+
getIcon(): string;
|
|
426
|
+
getIconNotification(): {
|
|
427
|
+
icon: string;
|
|
428
|
+
color: string;
|
|
429
|
+
};
|
|
430
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NpAlertComponent, never>;
|
|
431
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NpAlertComponent, "np-alert", never, { "type": { "alias": "type"; "required": false; }; "state": { "alias": "state"; "required": false; }; "description": { "alias": "description"; "required": false; }; "title": { "alias": "title"; "required": false; }; "message": { "alias": "message"; "required": false; }; "autoHideDelay": { "alias": "autoHideDelay"; "required": false; }; "autoHide": { "alias": "autoHide"; "required": false; }; "isFromService": { "alias": "isFromService"; "required": false; }; }, {}, never, never, true, never>;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
declare class NpTooltipComponent {
|
|
435
|
+
private renderer;
|
|
436
|
+
type: 'primary' | 'secondary';
|
|
437
|
+
text: string;
|
|
438
|
+
descriptions?: string;
|
|
439
|
+
position?: string;
|
|
440
|
+
tooltipVisible: boolean;
|
|
441
|
+
container: ElementRef;
|
|
442
|
+
_ngContent: Element | null;
|
|
443
|
+
set ngContent(value: Element);
|
|
444
|
+
constructor(renderer: Renderer2);
|
|
445
|
+
updateContent(): void;
|
|
446
|
+
get tooltipColor(): string;
|
|
447
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NpTooltipComponent, never>;
|
|
448
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NpTooltipComponent, "np-tooltip", never, { "type": { "alias": "type"; "required": false; }; "text": { "alias": "text"; "required": false; }; "descriptions": { "alias": "descriptions"; "required": false; }; "position": { "alias": "position"; "required": false; }; "tooltipVisible": { "alias": "tooltipVisible"; "required": false; }; "ngContent": { "alias": "ngContent"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
declare enum ETypeNpBreadcrumb {
|
|
452
|
+
BASIC = "basic",
|
|
453
|
+
SEPARATORS = "separators",
|
|
454
|
+
HIGHLIGHT = "highlighted"
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
interface INpBreadcrumb {
|
|
458
|
+
label: string;
|
|
459
|
+
url: string;
|
|
460
|
+
}
|
|
461
|
+
declare class NpBreadcrumbComponent implements OnInit, AfterViewInit {
|
|
462
|
+
private _Router;
|
|
463
|
+
private _ActivatedRoute;
|
|
464
|
+
npType: string;
|
|
465
|
+
isBorder: boolean;
|
|
466
|
+
iconBreakDown: string;
|
|
467
|
+
isBgLast: boolean;
|
|
468
|
+
isGetFromUrl: boolean;
|
|
469
|
+
isShowExpand: boolean;
|
|
470
|
+
breadcrumbs: INpBreadcrumb[] | any;
|
|
471
|
+
isExpanded: boolean;
|
|
472
|
+
ETypeNpBreadcrumb: typeof ETypeNpBreadcrumb;
|
|
473
|
+
idBreadcrum: string;
|
|
474
|
+
constructor(_Router: Router, _ActivatedRoute: ActivatedRoute);
|
|
475
|
+
ngOnInit(): Promise<void>;
|
|
476
|
+
ngAfterViewInit(): void;
|
|
477
|
+
getBreadcrumbs(): Promise<void>;
|
|
478
|
+
private createBreadcrumbs;
|
|
479
|
+
onRedirect(item: INpBreadcrumb | null): void;
|
|
480
|
+
onExpand(): void;
|
|
481
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NpBreadcrumbComponent, never>;
|
|
482
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NpBreadcrumbComponent, "np-breadcrumb", never, { "npType": { "alias": "npType"; "required": false; }; "isBorder": { "alias": "isBorder"; "required": false; }; "iconBreakDown": { "alias": "iconBreakDown"; "required": false; }; "isBgLast": { "alias": "isBgLast"; "required": false; }; "isGetFromUrl": { "alias": "isGetFromUrl"; "required": false; }; "isShowExpand": { "alias": "isShowExpand"; "required": false; }; "breadcrumbs": { "alias": "breadcrumbs"; "required": false; }; }, {}, never, never, true, never>;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
declare class NpProgressBarComponent {
|
|
486
|
+
type: string;
|
|
487
|
+
percent: number;
|
|
488
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NpProgressBarComponent, never>;
|
|
489
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NpProgressBarComponent, "np-progress-bar", never, { "type": { "alias": "type"; "required": false; }; "percent": { "alias": "percent"; "required": false; }; }, {}, never, never, true, never>;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
declare class NpSliderComponent {
|
|
493
|
+
private _values;
|
|
494
|
+
get values(): number[];
|
|
495
|
+
set values(val: number[]);
|
|
496
|
+
min?: number;
|
|
497
|
+
max?: number;
|
|
498
|
+
step: number;
|
|
499
|
+
tooltipVisible: 'always' | 'never' | 'default';
|
|
500
|
+
isDisabled: boolean;
|
|
501
|
+
isFloating: boolean;
|
|
502
|
+
valuesChange: EventEmitter<number[]>;
|
|
503
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NpSliderComponent, never>;
|
|
504
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NpSliderComponent, "np-slider", never, { "values": { "alias": "values"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "step": { "alias": "step"; "required": false; }; "tooltipVisible": { "alias": "tooltipVisible"; "required": false; }; "isDisabled": { "alias": "isDisabled"; "required": false; }; "isFloating": { "alias": "isFloating"; "required": false; }; }, { "valuesChange": "valuesChange"; }, never, never, true, never>;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
declare class NpLoadingIndicatorComponent {
|
|
508
|
+
npType: string;
|
|
509
|
+
npSize: string;
|
|
510
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NpLoadingIndicatorComponent, never>;
|
|
511
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NpLoadingIndicatorComponent, "np-loading-indicator", never, { "npType": { "alias": "npType"; "required": false; }; "npSize": { "alias": "npSize"; "required": false; }; }, {}, never, never, true, never>;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
interface INpTableColumn {
|
|
515
|
+
key: string;
|
|
516
|
+
label: string;
|
|
517
|
+
className?: string;
|
|
518
|
+
headerTemplate?: TemplateRef<any>;
|
|
519
|
+
template?: TemplateRef<any>;
|
|
520
|
+
sortFn?: (a: any, b: any) => number;
|
|
521
|
+
sortDirection?: Array<'asc' | 'desc' | ''>;
|
|
522
|
+
isSortAPI?: boolean;
|
|
523
|
+
filterFn?: (value: any, filter: string) => boolean;
|
|
524
|
+
filterList?: string[];
|
|
525
|
+
filterListAfterSearch?: string[];
|
|
526
|
+
isFilterAPI?: boolean;
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
declare class NpTableComponent {
|
|
530
|
+
private cdr;
|
|
531
|
+
constructor(cdr: ChangeDetectorRef);
|
|
532
|
+
selectAllSub?: Subscription;
|
|
533
|
+
selectAllFc: FormControl<boolean | null>;
|
|
534
|
+
isIndeterminateAll: boolean;
|
|
535
|
+
currentPage: number;
|
|
536
|
+
_pageSize: number[];
|
|
537
|
+
currentPageSize: number;
|
|
538
|
+
paginationWidth: string;
|
|
539
|
+
isAtStart: boolean;
|
|
540
|
+
isAtEnd: boolean;
|
|
541
|
+
_dataSource: any[];
|
|
542
|
+
sortKey: string | null;
|
|
543
|
+
sortDirection: 'asc' | 'desc' | null;
|
|
544
|
+
originalDataSource: any[];
|
|
545
|
+
activeFilterKey: string | null;
|
|
546
|
+
searchKeyword: {
|
|
547
|
+
[key: string]: string;
|
|
548
|
+
};
|
|
549
|
+
searchControls: {
|
|
550
|
+
[key: string]: FormControl;
|
|
551
|
+
};
|
|
552
|
+
selectedFilters: {
|
|
553
|
+
[key: string]: Set<any>;
|
|
554
|
+
};
|
|
555
|
+
syncColumns: boolean;
|
|
556
|
+
syncRows: boolean;
|
|
557
|
+
filterIcons: QueryList<ElementRef>;
|
|
558
|
+
dropdownPositionMap: {
|
|
559
|
+
[key: string]: any;
|
|
560
|
+
};
|
|
561
|
+
headerTable: ElementRef;
|
|
562
|
+
bodyTable: ElementRef;
|
|
563
|
+
tableContainer: ElementRef;
|
|
564
|
+
tableMiddle: ElementRef;
|
|
565
|
+
tableLeft: ElementRef;
|
|
566
|
+
tableRight: ElementRef;
|
|
567
|
+
private isSyncingLeftScroll;
|
|
568
|
+
private isSyncingMiddleScroll;
|
|
569
|
+
private isSyncingRightScroll;
|
|
570
|
+
private scrollListeners;
|
|
571
|
+
_columns: INpTableColumn[];
|
|
572
|
+
set columns(value: INpTableColumn[]);
|
|
573
|
+
get columns(): INpTableColumn[];
|
|
574
|
+
selectableType: 'checkbox' | 'radio' | null;
|
|
575
|
+
isSortable: boolean;
|
|
576
|
+
isFilterable: boolean;
|
|
577
|
+
isDeleteable: boolean;
|
|
578
|
+
isUsePagination: boolean;
|
|
579
|
+
paginationType: 'basic' | 'outlined' | 'text' | 'simple' | 'full';
|
|
580
|
+
state: 'error' | 'loading' | 'normal';
|
|
581
|
+
className: string;
|
|
582
|
+
classNameLeft: string;
|
|
583
|
+
classNameRight: string;
|
|
584
|
+
scrollColumnsRange: [number, number] | null;
|
|
585
|
+
scrollWidth: string;
|
|
586
|
+
scrollHeight: string;
|
|
587
|
+
isReverse: boolean;
|
|
588
|
+
showVerticalDivider: boolean;
|
|
589
|
+
deleteSelectedRows: EventEmitter<any[]>;
|
|
590
|
+
sortChange: EventEmitter<{
|
|
591
|
+
key: string;
|
|
592
|
+
direction: "asc" | "desc" | null;
|
|
593
|
+
}>;
|
|
594
|
+
filterChange: EventEmitter<{
|
|
595
|
+
[key: string]: string[];
|
|
596
|
+
}>;
|
|
597
|
+
rowChecked: EventEmitter<{
|
|
598
|
+
row: any;
|
|
599
|
+
checked: boolean;
|
|
600
|
+
}>;
|
|
601
|
+
set dataSource(value: any[]);
|
|
602
|
+
set pageSize(value: number[]);
|
|
603
|
+
get pageSize(): number[];
|
|
604
|
+
ngAfterViewInit(): void;
|
|
605
|
+
ngOnInit(): void;
|
|
606
|
+
get fixedLeftColumns(): INpTableColumn[];
|
|
607
|
+
get scrollableColumns(): INpTableColumn[];
|
|
608
|
+
get fixedRightColumns(): INpTableColumn[];
|
|
609
|
+
private bindSelectAllListener;
|
|
610
|
+
get filteredData(): any[];
|
|
611
|
+
get pagedData(): any[];
|
|
612
|
+
onPageChange(newPage: number): void;
|
|
613
|
+
onPageSizeChange(newSize: number): void;
|
|
614
|
+
onSortColumn(column: INpTableColumn): void;
|
|
615
|
+
onChangeSelectColumn($event: boolean): void;
|
|
616
|
+
ngOnDestroy(): void;
|
|
617
|
+
get selectedCount(): number;
|
|
618
|
+
onDeleteSelected(): void;
|
|
619
|
+
onRefresh(): void;
|
|
620
|
+
onContactSupport(): void;
|
|
621
|
+
toggleFilter(key: string): void;
|
|
622
|
+
shouldShowFilterCheck(colKey: string): boolean;
|
|
623
|
+
getDistinctFilteredValues(colKey: string): any[];
|
|
624
|
+
getFilteredColumnValues(colKey: string): any[];
|
|
625
|
+
isChecked(colKey: string, value: any): FormControl;
|
|
626
|
+
onToggleFilter(colKey: string, value: any, checked: boolean): void;
|
|
627
|
+
onClearFilter(colKey: string): void;
|
|
628
|
+
private setupScrollSync;
|
|
629
|
+
private updatePaginationWidth;
|
|
630
|
+
private syncRowHeight;
|
|
631
|
+
onClickOutside(event: MouseEvent): void;
|
|
632
|
+
onScrollCloseFilter(): void;
|
|
633
|
+
onResize(): void;
|
|
634
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NpTableComponent, never>;
|
|
635
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NpTableComponent, "np-table", never, { "columns": { "alias": "columns"; "required": false; }; "selectableType": { "alias": "selectableType"; "required": false; }; "isSortable": { "alias": "isSortable"; "required": false; }; "isFilterable": { "alias": "isFilterable"; "required": false; }; "isDeleteable": { "alias": "isDeleteable"; "required": false; }; "isUsePagination": { "alias": "isUsePagination"; "required": false; }; "paginationType": { "alias": "paginationType"; "required": false; }; "state": { "alias": "state"; "required": false; }; "className": { "alias": "className"; "required": false; }; "classNameLeft": { "alias": "classNameLeft"; "required": false; }; "classNameRight": { "alias": "classNameRight"; "required": false; }; "scrollColumnsRange": { "alias": "scrollColumnsRange"; "required": false; }; "scrollWidth": { "alias": "scrollWidth"; "required": false; }; "scrollHeight": { "alias": "scrollHeight"; "required": false; }; "isReverse": { "alias": "isReverse"; "required": false; }; "showVerticalDivider": { "alias": "showVerticalDivider"; "required": false; }; "dataSource": { "alias": "dataSource"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; }, { "deleteSelectedRows": "deleteSelectedRows"; "sortChange": "sortChange"; "filterChange": "filterChange"; "rowChecked": "rowChecked"; }, never, never, true, never>;
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
interface INpTab {
|
|
639
|
+
key: string;
|
|
640
|
+
label: string;
|
|
641
|
+
path?: string;
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
declare class NpTabComponent implements OnInit {
|
|
645
|
+
private _Router;
|
|
646
|
+
private _ActivatedRoute;
|
|
647
|
+
headerWrapperRef: ElementRef;
|
|
648
|
+
scrollContainerRef: ElementRef;
|
|
649
|
+
tabItemRefs: QueryList<ElementRef>;
|
|
650
|
+
tabs: INpTab[];
|
|
651
|
+
className: string;
|
|
652
|
+
subClassName: string;
|
|
653
|
+
tabActive: string;
|
|
654
|
+
isLink: boolean;
|
|
655
|
+
npStyle: 'button' | 'underline';
|
|
656
|
+
npDirection: 'horizontal' | 'vertical';
|
|
657
|
+
minWidthItem?: string;
|
|
658
|
+
onChange: EventEmitter<INpTab>;
|
|
659
|
+
indexActive: number;
|
|
660
|
+
scrollLeftButton: boolean;
|
|
661
|
+
scrollRightButton: boolean;
|
|
662
|
+
constructor(_Router: Router, _ActivatedRoute: ActivatedRoute);
|
|
663
|
+
ngOnInit(): void;
|
|
664
|
+
setTabActiveDefault(): void;
|
|
665
|
+
onChangeTab(tab: INpTab, index: number): void;
|
|
666
|
+
updateScrollButtons: () => void;
|
|
667
|
+
scrollLeft(): void;
|
|
668
|
+
scrollRight(): void;
|
|
669
|
+
ngAfterViewInit(): void;
|
|
670
|
+
ngOnDestroy(): void;
|
|
671
|
+
onResize(): void;
|
|
672
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NpTabComponent, never>;
|
|
673
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NpTabComponent, "np-tab", never, { "tabs": { "alias": "tabs"; "required": false; }; "className": { "alias": "className"; "required": false; }; "subClassName": { "alias": "subClassName"; "required": false; }; "tabActive": { "alias": "tabActive"; "required": false; }; "isLink": { "alias": "isLink"; "required": false; }; "npStyle": { "alias": "npStyle"; "required": false; }; "npDirection": { "alias": "npDirection"; "required": false; }; "minWidthItem": { "alias": "minWidthItem"; "required": false; }; }, { "onChange": "onChange"; }, never, ["*"], true, never>;
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
declare class NpActionBarComponent {
|
|
677
|
+
actions: INpAction[];
|
|
678
|
+
data: any;
|
|
679
|
+
notCompressMin: number;
|
|
680
|
+
isNotResponsive: boolean;
|
|
681
|
+
triggerBtn: ElementRef;
|
|
682
|
+
resizeContainer: ElementRef;
|
|
683
|
+
scrollWrapper: ElementRef;
|
|
684
|
+
unCompressedActions: INpAction[];
|
|
685
|
+
unCompressedActions2: INpAction[];
|
|
686
|
+
compressedActions: INpAction[];
|
|
687
|
+
isMoreOpen: boolean;
|
|
688
|
+
dropdownStyles: {
|
|
689
|
+
top: string;
|
|
690
|
+
left: string;
|
|
691
|
+
};
|
|
692
|
+
countIcon: number;
|
|
693
|
+
countResize: number;
|
|
694
|
+
canPrevious: boolean;
|
|
695
|
+
canNext: boolean;
|
|
696
|
+
isOverflowing: boolean;
|
|
697
|
+
isPreviousDisable: boolean;
|
|
698
|
+
isNextDisable: boolean;
|
|
699
|
+
isReturn: boolean;
|
|
700
|
+
valueStart: number;
|
|
701
|
+
isCheckValue: boolean;
|
|
702
|
+
scrollMaxWidth: number | null;
|
|
703
|
+
totalActionWidth: number;
|
|
704
|
+
lastResizeWidth: number;
|
|
705
|
+
isResize: boolean;
|
|
706
|
+
iconWidth: number;
|
|
707
|
+
visibleIcons: number;
|
|
708
|
+
private resizeStack;
|
|
709
|
+
private resizeObserver;
|
|
710
|
+
ngOnInit(): void;
|
|
711
|
+
ngAfterViewInit(): void;
|
|
712
|
+
private setupResizeObserver;
|
|
713
|
+
ngOnDestroy(): void;
|
|
714
|
+
private splitActions;
|
|
715
|
+
trigger(action: INpAction): void;
|
|
716
|
+
showMoreActions(): void;
|
|
717
|
+
onClickOutside(event: MouseEvent): void;
|
|
718
|
+
onWindowScroll(): void;
|
|
719
|
+
onResize(): void;
|
|
720
|
+
private updateScrollState;
|
|
721
|
+
updateBtnScroll(): void;
|
|
722
|
+
private attachScrollListener;
|
|
723
|
+
scrollLeft(): void;
|
|
724
|
+
scrollRight(): void;
|
|
725
|
+
getScrollStep(): number;
|
|
726
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NpActionBarComponent, never>;
|
|
727
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NpActionBarComponent, "np-action-bar", never, { "actions": { "alias": "actions"; "required": false; }; "data": { "alias": "data"; "required": false; }; "notCompressMin": { "alias": "notCompressMin"; "required": false; }; "isNotResponsive": { "alias": "isNotResponsive"; "required": false; }; }, {}, never, never, true, never>;
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
declare class NpResizeComponent {
|
|
731
|
+
private renderer;
|
|
732
|
+
private iconService;
|
|
733
|
+
container: ElementRef;
|
|
734
|
+
constructor(renderer: Renderer2, iconService: NzIconService);
|
|
735
|
+
width: number;
|
|
736
|
+
height: number;
|
|
737
|
+
maxWidth?: number;
|
|
738
|
+
maxHeight?: number;
|
|
739
|
+
minWidth?: number;
|
|
740
|
+
minHeight?: number;
|
|
741
|
+
directions: NzResizeDirection[];
|
|
742
|
+
isDisable: boolean;
|
|
743
|
+
id: number;
|
|
744
|
+
resizeDirection: NzResizeDirection | null;
|
|
745
|
+
_ngContent: Element | null;
|
|
746
|
+
ngZorroIconLiteral: string;
|
|
747
|
+
set ngContent(value: Element);
|
|
748
|
+
onResize({ width, height, direction }: NzResizeEvent): void;
|
|
749
|
+
updateContent(): void;
|
|
750
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NpResizeComponent, never>;
|
|
751
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NpResizeComponent, "np-resize", never, { "width": { "alias": "width"; "required": true; }; "height": { "alias": "height"; "required": true; }; "maxWidth": { "alias": "maxWidth"; "required": false; }; "maxHeight": { "alias": "maxHeight"; "required": false; }; "minWidth": { "alias": "minWidth"; "required": false; }; "minHeight": { "alias": "minHeight"; "required": false; }; "directions": { "alias": "directions"; "required": false; }; "isDisable": { "alias": "isDisable"; "required": false; }; "ngContent": { "alias": "ngContent"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
declare class NpModalComponent {
|
|
755
|
+
modalButton: string | TemplateRef<any>;
|
|
756
|
+
modalTitle: string | TemplateRef<any>;
|
|
757
|
+
modalDescriptions: string | TemplateRef<any>;
|
|
758
|
+
modalType: 'confirmation' | 'notification';
|
|
759
|
+
modalState: 'error' | 'warning' | 'success' | 'default';
|
|
760
|
+
useIcon: boolean;
|
|
761
|
+
useCheckBox: boolean;
|
|
762
|
+
cancelText: string;
|
|
763
|
+
okText: string;
|
|
764
|
+
modalContent?: TemplateRef<any>;
|
|
765
|
+
modalFooter?: TemplateRef<any>;
|
|
766
|
+
loadingOK: boolean;
|
|
767
|
+
ok: EventEmitter<void>;
|
|
768
|
+
cancel: EventEmitter<void>;
|
|
769
|
+
checkbox: EventEmitter<{
|
|
770
|
+
checkboxValue: boolean;
|
|
771
|
+
}>;
|
|
772
|
+
isVisible: boolean;
|
|
773
|
+
isOkLoading: boolean;
|
|
774
|
+
modalWidth: number;
|
|
775
|
+
checkboxControl: FormControl<boolean | null>;
|
|
776
|
+
ngOnInit(): void;
|
|
777
|
+
isTemplate(value: any): value is TemplateRef<any>;
|
|
778
|
+
get iconPath(): string;
|
|
779
|
+
showModal(): void;
|
|
780
|
+
handleOk(): void;
|
|
781
|
+
handleCancel(): void;
|
|
782
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NpModalComponent, never>;
|
|
783
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NpModalComponent, "np-modal", never, { "modalButton": { "alias": "modalButton"; "required": false; }; "modalTitle": { "alias": "modalTitle"; "required": false; }; "modalDescriptions": { "alias": "modalDescriptions"; "required": false; }; "modalType": { "alias": "modalType"; "required": false; }; "modalState": { "alias": "modalState"; "required": false; }; "useIcon": { "alias": "useIcon"; "required": false; }; "useCheckBox": { "alias": "useCheckBox"; "required": false; }; "cancelText": { "alias": "cancelText"; "required": false; }; "okText": { "alias": "okText"; "required": false; }; "modalContent": { "alias": "modalContent"; "required": false; }; "modalFooter": { "alias": "modalFooter"; "required": false; }; "loadingOK": { "alias": "loadingOK"; "required": false; }; }, { "ok": "ok"; "cancel": "cancel"; "checkbox": "checkbox"; }, never, never, true, never>;
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
declare class NpConfirmTemplateComponent {
|
|
787
|
+
modalTitle: string | TemplateRef<any>;
|
|
788
|
+
modalDescriptions: string | TemplateRef<any>;
|
|
789
|
+
modalType: 'confirmation' | 'notification';
|
|
790
|
+
modalState: 'error' | 'warning' | 'success' | 'default';
|
|
791
|
+
useIcon: boolean;
|
|
792
|
+
useCheckBox: boolean;
|
|
793
|
+
cancelText: string;
|
|
794
|
+
okText: string;
|
|
795
|
+
modalContent?: TemplateRef<any>;
|
|
796
|
+
loadingOK: boolean;
|
|
797
|
+
ok: EventEmitter<void>;
|
|
798
|
+
cancel: EventEmitter<void>;
|
|
799
|
+
checkbox: EventEmitter<{
|
|
800
|
+
checkboxValue: boolean;
|
|
801
|
+
}>;
|
|
802
|
+
isVisible: boolean;
|
|
803
|
+
isOkLoading: boolean;
|
|
804
|
+
modalWidth: number;
|
|
805
|
+
checkboxControl: FormControl<boolean | null>;
|
|
806
|
+
ngOnInit(): void;
|
|
807
|
+
isTemplate(value: any): value is TemplateRef<any>;
|
|
808
|
+
get iconPath(): string;
|
|
809
|
+
showModal(): void;
|
|
810
|
+
handleOk(): void;
|
|
811
|
+
handleCancel(): void;
|
|
812
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NpConfirmTemplateComponent, never>;
|
|
813
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NpConfirmTemplateComponent, "np-confirm-template", never, { "modalTitle": { "alias": "modalTitle"; "required": false; }; "modalDescriptions": { "alias": "modalDescriptions"; "required": false; }; "modalType": { "alias": "modalType"; "required": false; }; "modalState": { "alias": "modalState"; "required": false; }; "useIcon": { "alias": "useIcon"; "required": false; }; "useCheckBox": { "alias": "useCheckBox"; "required": false; }; "cancelText": { "alias": "cancelText"; "required": false; }; "okText": { "alias": "okText"; "required": false; }; "modalContent": { "alias": "modalContent"; "required": false; }; "loadingOK": { "alias": "loadingOK"; "required": false; }; }, { "ok": "ok"; "cancel": "cancel"; "checkbox": "checkbox"; }, never, never, true, never>;
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
declare class NpDialogComponent<R = any> {
|
|
817
|
+
protected modalRef: NzModalRef<R>;
|
|
818
|
+
constructor(modalRef: NzModalRef<R>);
|
|
819
|
+
close(result?: R): void;
|
|
820
|
+
submit(result?: R): void;
|
|
821
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NpDialogComponent<any>, never>;
|
|
822
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NpDialogComponent<any>, "np-dialog", never, {}, {}, never, never, true, never>;
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
declare enum E_NP_BREADCRUMB {
|
|
826
|
+
NAME = "name",
|
|
827
|
+
PARAM = "param"
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
interface IDefaultModel {
|
|
831
|
+
_data: any;
|
|
832
|
+
getId(): string | number | null;
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
declare class DefaultModel implements IDefaultModel {
|
|
836
|
+
/**
|
|
837
|
+
* all keys are in lowercase
|
|
838
|
+
* @type {{}}
|
|
839
|
+
* @private
|
|
840
|
+
*/
|
|
841
|
+
_data: any;
|
|
842
|
+
/**
|
|
843
|
+
* all keys are raw
|
|
844
|
+
* @type {{}}
|
|
845
|
+
* @private
|
|
846
|
+
*/
|
|
847
|
+
_raw: any;
|
|
848
|
+
_idKey: string;
|
|
849
|
+
_id: any;
|
|
850
|
+
/**
|
|
851
|
+
*
|
|
852
|
+
* @param _data
|
|
853
|
+
* @param idKey
|
|
854
|
+
* @param isAutoAssign
|
|
855
|
+
*/
|
|
856
|
+
constructor(_data?: any, idKey?: string, isAutoAssign?: boolean, isAssignRawData?: boolean);
|
|
857
|
+
/**
|
|
858
|
+
* get value of id
|
|
859
|
+
* @return {any}
|
|
860
|
+
*/
|
|
861
|
+
getId(): string | number | null;
|
|
862
|
+
setId(id: string | number | null): void;
|
|
863
|
+
/**
|
|
864
|
+
* delete object property
|
|
865
|
+
* @param key: string
|
|
866
|
+
*/
|
|
867
|
+
deleteProperty(key: string): void;
|
|
868
|
+
/**
|
|
869
|
+
* get key of id
|
|
870
|
+
* @returns {string}
|
|
871
|
+
*/
|
|
872
|
+
getIdKey(): string;
|
|
873
|
+
/**
|
|
874
|
+
* get value of _data by key
|
|
875
|
+
* @param key: string
|
|
876
|
+
* @returns {any}
|
|
877
|
+
*/
|
|
878
|
+
getValue(key: string): any;
|
|
879
|
+
/**
|
|
880
|
+
* set value of _data by key & value of this object's attribute if existed
|
|
881
|
+
* @param key: string
|
|
882
|
+
* @param value: string
|
|
883
|
+
* @returns {any}
|
|
884
|
+
*/
|
|
885
|
+
setValue(key: string, value: any): any;
|
|
886
|
+
/**
|
|
887
|
+
* get raw value of _data by key
|
|
888
|
+
* @param key: string
|
|
889
|
+
* @returns {any}
|
|
890
|
+
*/
|
|
891
|
+
getRawValue(key: string): any;
|
|
892
|
+
/**
|
|
893
|
+
* set value of _data by key
|
|
894
|
+
* @param key: string
|
|
895
|
+
* @param value: string
|
|
896
|
+
* @returns {any}
|
|
897
|
+
*/
|
|
898
|
+
setRawValue(key: string, value: any): any;
|
|
899
|
+
static describe(instance: any): Array<string>;
|
|
900
|
+
}
|
|
901
|
+
declare namespace DefaultModel { }
|
|
902
|
+
|
|
903
|
+
export { DefaultModel, ETypeNpBreadcrumb, E_NP_BREADCRUMB, FORM_ERROR_MAP, NeopComponentModule, NpActionBarComponent, NpAlertComponent, NpAlertService, NpBreadcrumbComponent, NpButtonComponent, NpCheckboxComponent, NpConfirmTemplateComponent, NpDialogComponent, NpDialogService, NpDropdownsComponent, NpInputFieldComponent, NpInputMode, NpInputTexteraComponent, NpLoadingIndicatorComponent, NpModalComponent, NpMode, NpPaginationComponent, NpProgressBarComponent, NpResizeComponent, NpScrollbarComponent, NpSelectComponent, NpSliderComponent, NpTabComponent, NpTableComponent, NpToggleComponent, NpTooltipComponent, NpTreeComponent, NpTypographyComponent, TestService, ThemeService };
|
|
904
|
+
export type { AlertData, FormErrorMap, INpTab, INpTableColumn, INpTreeNode, NpDictionaryItem };
|