@neoprototype/neop-ui-lib 1.0.26
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 +24 -0
- package/assets/images/check.svg +3 -0
- package/assets/images/default.png +0 -0
- package/assets/images/error-table.png +0 -0
- package/assets/images/error.png +0 -0
- package/assets/images/minus.svg +3 -0
- package/assets/images/success.png +0 -0
- package/assets/images/warning.png +0 -0
- package/fesm2022/neoprototype-neop-ui-lib.mjs +2670 -0
- package/fesm2022/neoprototype-neop-ui-lib.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/components/basic/basic.module.d.ts +12 -0
- package/lib/components/basic/np-action-bar/np-action-bar.component.d.ts +56 -0
- package/lib/components/basic/np-alert/np-alert.component.d.ts +27 -0
- package/lib/components/basic/np-breadcrumb/np-breadcrumb.component.d.ts +31 -0
- package/lib/components/basic/np-button/np-button.component.d.ts +18 -0
- package/lib/components/basic/np-checkbox/np-checkbox.component.d.ts +19 -0
- package/lib/components/basic/np-dropdowns/np-dropdowns.component.d.ts +32 -0
- package/lib/components/basic/np-input-field/np-input-field.component.d.ts +46 -0
- package/lib/components/basic/np-input-textera/np-input-textera.component.d.ts +22 -0
- package/lib/components/basic/np-loading-indicator/np-loading-indicator.component.d.ts +7 -0
- package/lib/components/basic/np-pagination/np-pagination.component.d.ts +38 -0
- package/lib/components/basic/np-progress-bar/np-progress-bar.component.d.ts +7 -0
- package/lib/components/basic/np-resize/np-resize.component.d.ts +27 -0
- package/lib/components/basic/np-scrollbar/np-scrollbar.component.d.ts +14 -0
- package/lib/components/basic/np-select/np-select.component.d.ts +29 -0
- package/lib/components/basic/np-slider/np-slider.component.d.ts +16 -0
- package/lib/components/basic/np-tab/np-tab.component.d.ts +19 -0
- package/lib/components/basic/np-table/np-table.component.d.ts +91 -0
- package/lib/components/basic/np-toggle/np-toggle.component.d.ts +15 -0
- package/lib/components/basic/np-tooltip/np-tooltip.component.d.ts +18 -0
- package/lib/components/basic/np-tree/np-tree.component.d.ts +48 -0
- package/lib/components/basic/np-typography/np-typography.component.d.ts +15 -0
- package/lib/components/modal/np-modal/np-modal.component.d.ts +34 -0
- package/lib/components/neop-component.module.d.ts +7 -0
- package/lib/config/form-error-config.d.ts +3 -0
- package/lib/enum/basic/breadcrumb.enum.d.ts +5 -0
- package/lib/enum/np-breadcrumb.enum.d.ts +4 -0
- package/lib/interfaces/default.interface.d.ts +5 -0
- package/lib/interfaces/dictionary-item.interface.d.ts +10 -0
- package/lib/interfaces/np-tab.interface.d.ts +5 -0
- package/lib/interfaces/np-table.interface.d.ts +8 -0
- package/lib/interfaces/np-tree.interface.d.ts +29 -0
- package/lib/interfaces/np.actions.d.ts +8 -0
- package/lib/models/default.mode.d.ts +68 -0
- package/lib/services/np-dialog.service.d.ts +11 -0
- package/lib/services/test.service.d.ts +8 -0
- package/lib/services/theme.service.d.ts +9 -0
- package/package.json +26 -0
- package/public-api.d.ts +35 -0
- package/scss/fonts/Inter/Inter-VariableFont_opsz,wght.ttf +0 -0
- package/scss/fonts/fonts.scss +4 -0
- package/scss/index.less +1 -0
- package/scss/index.scss +3 -0
- package/scss/ngzorro/custom-theme.scss +0 -0
- package/scss/ngzorro/modal/custom-modal.scss +6 -0
- package/scss/ngzorro/ng-zorro.less +3 -0
- package/scss/ngzorro/ng-zorro.scss +4 -0
- package/scss/tailwind/tailwind.scss +1 -0
- package/scss/theme/index.scss +20 -0
- package/scss/theme/theme-dark.scss +21 -0
- package/scss/theme/theme-light.scss +30 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@angular/common";
|
|
3
|
+
import * as i2 from "./np-checkbox/np-checkbox.component";
|
|
4
|
+
import * as i3 from "./np-input-field/np-input-field.component";
|
|
5
|
+
import * as i4 from "./np-button/np-button.component";
|
|
6
|
+
import * as i5 from "./np-typography/np-typography.component";
|
|
7
|
+
import * as i6 from "./np-input-textera/np-input-textera.component";
|
|
8
|
+
export declare class BasicModule {
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BasicModule, never>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<BasicModule, never, [typeof i1.CommonModule, typeof i2.NpCheckboxComponent, typeof i3.NpInputFieldComponent, typeof i4.NpButtonComponent, typeof i5.NpTypographyComponent, typeof i6.NpInputTexteraComponent], [typeof i2.NpCheckboxComponent, typeof i3.NpInputFieldComponent, typeof i4.NpButtonComponent, typeof i5.NpTypographyComponent, typeof i6.NpInputTexteraComponent]>;
|
|
11
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<BasicModule>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { INpAction } from '../../../interfaces/np.actions';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class NpActionBarComponent {
|
|
5
|
+
actions: INpAction[];
|
|
6
|
+
data: any;
|
|
7
|
+
notCompressMin: number;
|
|
8
|
+
isNotResponsive: boolean;
|
|
9
|
+
triggerBtn: ElementRef;
|
|
10
|
+
resizeContainer: ElementRef;
|
|
11
|
+
scrollWrapper: ElementRef;
|
|
12
|
+
unCompressedActions: INpAction[];
|
|
13
|
+
unCompressedActions2: INpAction[];
|
|
14
|
+
compressedActions: INpAction[];
|
|
15
|
+
isMoreOpen: boolean;
|
|
16
|
+
dropdownStyles: {
|
|
17
|
+
top: string;
|
|
18
|
+
left: string;
|
|
19
|
+
};
|
|
20
|
+
countIcon: number;
|
|
21
|
+
countResize: number;
|
|
22
|
+
canPrevious: boolean;
|
|
23
|
+
canNext: boolean;
|
|
24
|
+
isOverflowing: boolean;
|
|
25
|
+
isPreviousDisable: boolean;
|
|
26
|
+
isNextDisable: boolean;
|
|
27
|
+
isReturn: boolean;
|
|
28
|
+
valueStart: number;
|
|
29
|
+
isCheckValue: boolean;
|
|
30
|
+
scrollMaxWidth: number | null;
|
|
31
|
+
totalActionWidth: number;
|
|
32
|
+
lastResizeWidth: number;
|
|
33
|
+
isResize: boolean;
|
|
34
|
+
iconWidth: number;
|
|
35
|
+
visibleIcons: number;
|
|
36
|
+
private resizeStack;
|
|
37
|
+
private resizeObserver;
|
|
38
|
+
ngOnInit(): void;
|
|
39
|
+
ngAfterViewInit(): void;
|
|
40
|
+
private setupResizeObserver;
|
|
41
|
+
ngOnDestroy(): void;
|
|
42
|
+
private splitActions;
|
|
43
|
+
trigger(action: INpAction): void;
|
|
44
|
+
showMoreActions(): void;
|
|
45
|
+
onClickOutside(event: MouseEvent): void;
|
|
46
|
+
onWindowScroll(): void;
|
|
47
|
+
onResize(): void;
|
|
48
|
+
private updateScrollState;
|
|
49
|
+
updateBtnScroll(): void;
|
|
50
|
+
private attachScrollListener;
|
|
51
|
+
scrollLeft(): void;
|
|
52
|
+
scrollRight(): void;
|
|
53
|
+
getScrollStep(): number;
|
|
54
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NpActionBarComponent, never>;
|
|
55
|
+
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>;
|
|
56
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ElementRef, Renderer2 } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class NpAlertComponent {
|
|
4
|
+
private el;
|
|
5
|
+
private renderer;
|
|
6
|
+
type: string;
|
|
7
|
+
state: 'success' | 'info' | 'warning' | 'error';
|
|
8
|
+
description: string;
|
|
9
|
+
title?: string;
|
|
10
|
+
message?: string;
|
|
11
|
+
autoHide: boolean;
|
|
12
|
+
isMessageVisible: boolean;
|
|
13
|
+
opacity: number;
|
|
14
|
+
constructor(el: ElementRef, renderer: Renderer2);
|
|
15
|
+
ngOnInit(): void;
|
|
16
|
+
startFadeOut(): void;
|
|
17
|
+
closeAlert(): void;
|
|
18
|
+
removeSelf(): void;
|
|
19
|
+
showMessege(): void;
|
|
20
|
+
getIcon(): string;
|
|
21
|
+
getIconNotification(): {
|
|
22
|
+
icon: string;
|
|
23
|
+
color: string;
|
|
24
|
+
};
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NpAlertComponent, never>;
|
|
26
|
+
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; }; "autoHide": { "alias": "autoHide"; "required": false; }; }, {}, never, never, true, never>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { AfterViewInit, OnInit } from '@angular/core';
|
|
2
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
|
+
import { ETypeNpBreadcrumb } from '../../../enum/basic/breadcrumb.enum';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
interface INpBreadcrumb {
|
|
6
|
+
label: string;
|
|
7
|
+
url: string;
|
|
8
|
+
}
|
|
9
|
+
export declare class NpBreadcrumbComponent implements OnInit, AfterViewInit {
|
|
10
|
+
private _Router;
|
|
11
|
+
private _ActivatedRoute;
|
|
12
|
+
npType: string;
|
|
13
|
+
isBorder: boolean;
|
|
14
|
+
iconBreakDown: string;
|
|
15
|
+
isBgLast: boolean;
|
|
16
|
+
isGetFromUrl: boolean;
|
|
17
|
+
breadcrumbs: INpBreadcrumb[] | any;
|
|
18
|
+
isExpanded: boolean;
|
|
19
|
+
ETypeNpBreadcrumb: typeof ETypeNpBreadcrumb;
|
|
20
|
+
idBreadcrum: string;
|
|
21
|
+
constructor(_Router: Router, _ActivatedRoute: ActivatedRoute);
|
|
22
|
+
ngOnInit(): Promise<void>;
|
|
23
|
+
ngAfterViewInit(): void;
|
|
24
|
+
getBreadcrumbs(): Promise<void>;
|
|
25
|
+
private createBreadcrumbs;
|
|
26
|
+
onRedirect(item: INpBreadcrumb | null): void;
|
|
27
|
+
onExpand(): void;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NpBreadcrumbComponent, never>;
|
|
29
|
+
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; }; "breadcrumbs": { "alias": "breadcrumbs"; "required": false; }; }, {}, never, never, true, never>;
|
|
30
|
+
}
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ElementRef, Renderer2 } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class NpButtonComponent {
|
|
4
|
+
private renderer;
|
|
5
|
+
container: ElementRef;
|
|
6
|
+
npType: string;
|
|
7
|
+
npSize: string;
|
|
8
|
+
className: string;
|
|
9
|
+
isLoading: boolean;
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
_ngContent: Element | null;
|
|
12
|
+
set ngContent(value: Element);
|
|
13
|
+
constructor(renderer: Renderer2);
|
|
14
|
+
updateContent(): void;
|
|
15
|
+
onClick(e: any): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NpButtonComponent, never>;
|
|
17
|
+
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>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { FormControl } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class NpCheckboxComponent {
|
|
5
|
+
_input: FormControl;
|
|
6
|
+
set input(value: FormControl | undefined | boolean);
|
|
7
|
+
type: string;
|
|
8
|
+
size: string;
|
|
9
|
+
npType: string;
|
|
10
|
+
isDisabled: boolean;
|
|
11
|
+
groupName: string;
|
|
12
|
+
label?: string;
|
|
13
|
+
description?: string;
|
|
14
|
+
isIndeterminate: boolean;
|
|
15
|
+
valueChange: EventEmitter<boolean>;
|
|
16
|
+
onChange(event: any): void;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NpCheckboxComponent, never>;
|
|
18
|
+
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>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { FormControl } from '@angular/forms';
|
|
3
|
+
import { NpDictionaryItem } from '../../../interfaces/dictionary-item.interface';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare enum NpMode {
|
|
6
|
+
DEFAULT = "default",
|
|
7
|
+
MULTIPLE = "multiple",
|
|
8
|
+
TAGS = "tags"
|
|
9
|
+
}
|
|
10
|
+
export declare class NpDropdownsComponent {
|
|
11
|
+
npType: string;
|
|
12
|
+
npSize: string;
|
|
13
|
+
className: string;
|
|
14
|
+
value: string;
|
|
15
|
+
useSearch: boolean;
|
|
16
|
+
alwaysOpen: boolean;
|
|
17
|
+
placement: 'bottomLeft' | 'bottomCenter' | 'bottomRight' | 'topLeft' | 'topCenter' | 'topRight';
|
|
18
|
+
list: NpDictionaryItem[] | any;
|
|
19
|
+
valueChange: EventEmitter<NpDictionaryItem>;
|
|
20
|
+
visible: boolean;
|
|
21
|
+
searchControl: FormControl<string | null>;
|
|
22
|
+
originalList: NpDictionaryItem[];
|
|
23
|
+
filteredList: NpDictionaryItem[];
|
|
24
|
+
ngOnInit(): void;
|
|
25
|
+
clickMe(): void;
|
|
26
|
+
change(value: boolean): void;
|
|
27
|
+
onSelectItem(item: NpDictionaryItem): void;
|
|
28
|
+
onRightIconClick(): void;
|
|
29
|
+
filterList(search: string): void;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NpDropdownsComponent, never>;
|
|
31
|
+
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>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { DecimalPipe } from '@angular/common';
|
|
2
|
+
import { ElementRef, EventEmitter } from '@angular/core';
|
|
3
|
+
import { FormControl } from '@angular/forms';
|
|
4
|
+
import { FormErrorMap } from '../../../config/form-error-config';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class NpInputFieldComponent {
|
|
7
|
+
private decimalPipe;
|
|
8
|
+
private defaultErrorMap?;
|
|
9
|
+
constructor(decimalPipe: DecimalPipe, defaultErrorMap?: FormErrorMap | undefined);
|
|
10
|
+
inputRef: ElementRef<HTMLInputElement>;
|
|
11
|
+
size: string;
|
|
12
|
+
label?: string;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
iconLeft?: string;
|
|
15
|
+
iconRight?: string;
|
|
16
|
+
hint?: string;
|
|
17
|
+
errorMap?: FormErrorMap;
|
|
18
|
+
disabled: boolean;
|
|
19
|
+
limitValue?: number;
|
|
20
|
+
functionHandler?: Function;
|
|
21
|
+
submitted: boolean;
|
|
22
|
+
digitsInfo: string;
|
|
23
|
+
locale: string;
|
|
24
|
+
inputType: string;
|
|
25
|
+
passwordVisible: boolean;
|
|
26
|
+
_input: FormControl;
|
|
27
|
+
_type: 'password' | 'text' | 'number' | 'string' | 'date' | 'function';
|
|
28
|
+
set input(value: FormControl | undefined);
|
|
29
|
+
set type(value: typeof this._type);
|
|
30
|
+
get type(): typeof this._type;
|
|
31
|
+
valueChange: EventEmitter<string | number>;
|
|
32
|
+
iconLeftClick: EventEmitter<void>;
|
|
33
|
+
iconRightClick: EventEmitter<void>;
|
|
34
|
+
onChangeValue(): void;
|
|
35
|
+
updateInputType(): void;
|
|
36
|
+
togglePassword(): void;
|
|
37
|
+
get computedStatus(): string | undefined;
|
|
38
|
+
get errorMessageFromInput(): string | null;
|
|
39
|
+
handleKeyPress(event: KeyboardEvent): void;
|
|
40
|
+
onInputChange(event: Event): void;
|
|
41
|
+
onBlur(): void;
|
|
42
|
+
handleIconLeftClick(): void;
|
|
43
|
+
handleIconRightClick(): void;
|
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NpInputFieldComponent, [null, { optional: true; }]>;
|
|
45
|
+
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; }; "input": { "alias": "input"; "required": false; }; "type": { "alias": "type"; "required": false; }; }, { "valueChange": "valueChange"; "iconLeftClick": "iconLeftClick"; "iconRightClick": "iconRightClick"; }, never, never, true, never>;
|
|
46
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { FormControl } from '@angular/forms';
|
|
2
|
+
import { FormErrorMap } from '../../../config/form-error-config';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class NpInputTexteraComponent {
|
|
5
|
+
private defaultErrorMap?;
|
|
6
|
+
constructor(defaultErrorMap?: FormErrorMap | undefined);
|
|
7
|
+
label: string;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
hint?: string;
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
value?: string;
|
|
12
|
+
limitValue?: number;
|
|
13
|
+
submitted: boolean;
|
|
14
|
+
_input: FormControl;
|
|
15
|
+
currentLength: number;
|
|
16
|
+
set input(value: FormControl | undefined);
|
|
17
|
+
onTextareaInput(event: Event): void;
|
|
18
|
+
get computedStatus(): string | undefined;
|
|
19
|
+
get errorMessageFromInput(): string | null;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NpInputTexteraComponent, [{ optional: true; }]>;
|
|
21
|
+
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; }; "input": { "alias": "input"; "required": false; }; }, {}, never, never, true, never>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class NpLoadingIndicatorComponent {
|
|
3
|
+
npType: string;
|
|
4
|
+
npSize: string;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NpLoadingIndicatorComponent, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NpLoadingIndicatorComponent, "np-loading-indicator", never, { "npType": { "alias": "npType"; "required": false; }; "npSize": { "alias": "npSize"; "required": false; }; }, {}, never, never, true, never>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class NpPaginationComponent implements OnChanges, OnInit {
|
|
4
|
+
type: 'basic' | 'outlined' | 'text' | 'simple' | 'full';
|
|
5
|
+
totalItems: number;
|
|
6
|
+
pageSize: number[];
|
|
7
|
+
isReverse: boolean;
|
|
8
|
+
pageSizeChange: EventEmitter<number>;
|
|
9
|
+
pageTotal: number;
|
|
10
|
+
private _pageSizeValue;
|
|
11
|
+
private _pageIndex;
|
|
12
|
+
isDropdownOpenMap: {
|
|
13
|
+
[key: string]: boolean;
|
|
14
|
+
};
|
|
15
|
+
get pageIndex(): number;
|
|
16
|
+
set pageIndex(value: number);
|
|
17
|
+
get pageSizeOptions(): number;
|
|
18
|
+
set pageSizeOptions(value: number);
|
|
19
|
+
pageIndexChange: EventEmitter<number>;
|
|
20
|
+
triggerRef: ElementRef;
|
|
21
|
+
ngOnInit(): void;
|
|
22
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
23
|
+
calculatePageTotal(): void;
|
|
24
|
+
onPageSizeChange(newSize: string): void;
|
|
25
|
+
dropdownStyleMap: {
|
|
26
|
+
[key: string]: any;
|
|
27
|
+
};
|
|
28
|
+
toggleDropdownByType(type: string): void;
|
|
29
|
+
onSelectPageSize(size: number): void;
|
|
30
|
+
getDisplayedPages(): (number | string)[];
|
|
31
|
+
prevPage(): void;
|
|
32
|
+
nextPage(): void;
|
|
33
|
+
changePage(newPage: number | string): void;
|
|
34
|
+
onDocumentClick(event: MouseEvent): void;
|
|
35
|
+
onWindowScroll(): void;
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NpPaginationComponent, never>;
|
|
37
|
+
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>;
|
|
38
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class NpProgressBarComponent {
|
|
3
|
+
type: string;
|
|
4
|
+
percent: number;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NpProgressBarComponent, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NpProgressBarComponent, "np-progress-bar", never, { "type": { "alias": "type"; "required": false; }; "percent": { "alias": "percent"; "required": false; }; }, {}, never, never, true, never>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ElementRef, Renderer2 } from '@angular/core';
|
|
2
|
+
import { NzIconService } from 'ng-zorro-antd/icon';
|
|
3
|
+
import { NzResizeDirection, NzResizeEvent } from 'ng-zorro-antd/resizable';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class NpResizeComponent {
|
|
6
|
+
private renderer;
|
|
7
|
+
private iconService;
|
|
8
|
+
container: ElementRef;
|
|
9
|
+
constructor(renderer: Renderer2, iconService: NzIconService);
|
|
10
|
+
width: number;
|
|
11
|
+
height: number;
|
|
12
|
+
maxWidth?: number;
|
|
13
|
+
maxHeight?: number;
|
|
14
|
+
minWidth?: number;
|
|
15
|
+
minHeight?: number;
|
|
16
|
+
directions: NzResizeDirection[];
|
|
17
|
+
isDisable: boolean;
|
|
18
|
+
id: number;
|
|
19
|
+
resizeDirection: NzResizeDirection | null;
|
|
20
|
+
_ngContent: Element | null;
|
|
21
|
+
ngZorroIconLiteral: string;
|
|
22
|
+
set ngContent(value: Element);
|
|
23
|
+
onResize({ width, height, direction }: NzResizeEvent): void;
|
|
24
|
+
updateContent(): void;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NpResizeComponent, never>;
|
|
26
|
+
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>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ElementRef, Renderer2 } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class NpScrollbarComponent {
|
|
4
|
+
private renderer;
|
|
5
|
+
container: ElementRef;
|
|
6
|
+
width?: string;
|
|
7
|
+
height?: string;
|
|
8
|
+
_ngContent: Element | null;
|
|
9
|
+
set ngContent(value: Element);
|
|
10
|
+
constructor(renderer: Renderer2);
|
|
11
|
+
updateContent(): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NpScrollbarComponent, never>;
|
|
13
|
+
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>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { EventEmitter, TemplateRef } from '@angular/core';
|
|
2
|
+
import { FormControl } from '@angular/forms';
|
|
3
|
+
import { NpDictionaryItem } from '../../../interfaces/dictionary-item.interface';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare enum NpInputMode {
|
|
6
|
+
DEFAULT = "default",
|
|
7
|
+
MULTIPLE = "multiple",
|
|
8
|
+
TAGS = "tags"
|
|
9
|
+
}
|
|
10
|
+
export declare class NpSelectComponent {
|
|
11
|
+
npType: string;
|
|
12
|
+
className: string;
|
|
13
|
+
label?: string;
|
|
14
|
+
hint?: string;
|
|
15
|
+
placeHolder: string;
|
|
16
|
+
labelTemplate?: TemplateRef<any>;
|
|
17
|
+
valueTemplate?: TemplateRef<any>;
|
|
18
|
+
isAllowClear: boolean;
|
|
19
|
+
iconPrefixClass?: string;
|
|
20
|
+
mode: 'multiple' | 'tags' | 'default';
|
|
21
|
+
listItem: NpDictionaryItem[] | any;
|
|
22
|
+
NpMode: typeof NpInputMode;
|
|
23
|
+
_input: FormControl;
|
|
24
|
+
set input(value: FormControl | undefined);
|
|
25
|
+
valueChange: EventEmitter<string>;
|
|
26
|
+
onChangeValue(): void;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NpSelectComponent, never>;
|
|
28
|
+
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>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class NpSliderComponent {
|
|
4
|
+
private _values;
|
|
5
|
+
get values(): number[];
|
|
6
|
+
set values(val: number[]);
|
|
7
|
+
min?: number;
|
|
8
|
+
max?: number;
|
|
9
|
+
step: number;
|
|
10
|
+
tooltipVisible: 'always' | 'never' | 'default';
|
|
11
|
+
isDisabled: boolean;
|
|
12
|
+
isFloating: boolean;
|
|
13
|
+
valuesChange: EventEmitter<number[]>;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NpSliderComponent, never>;
|
|
15
|
+
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>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
|
+
import { INpTab } from '../../../interfaces/np-tab.interface';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class NpTabComponent implements OnInit {
|
|
6
|
+
private _Router;
|
|
7
|
+
private _ActivatedRoute;
|
|
8
|
+
tabs: INpTab[];
|
|
9
|
+
tabActive: string;
|
|
10
|
+
isLink: boolean;
|
|
11
|
+
onChange: EventEmitter<INpTab>;
|
|
12
|
+
indexActive: number;
|
|
13
|
+
constructor(_Router: Router, _ActivatedRoute: ActivatedRoute);
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
setTabActiveDefault(): void;
|
|
16
|
+
onChangeTab(tab: INpTab, index: number): void;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NpTabComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NpTabComponent, "np-tab", never, { "tabs": { "alias": "tabs"; "required": false; }; "tabActive": { "alias": "tabActive"; "required": false; }; "isLink": { "alias": "isLink"; "required": false; }; }, { "onChange": "onChange"; }, never, ["*"], true, never>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, EventEmitter, QueryList } from '@angular/core';
|
|
2
|
+
import { FormControl } from '@angular/forms';
|
|
3
|
+
import { INpTableColumn } from '../../../interfaces/np-table.interface';
|
|
4
|
+
import { Subscription } from 'rxjs';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class NpTableComponent {
|
|
7
|
+
private cdr;
|
|
8
|
+
constructor(cdr: ChangeDetectorRef);
|
|
9
|
+
ngAfterViewInit(): void;
|
|
10
|
+
ngOnInit(): void;
|
|
11
|
+
leftRows: QueryList<ElementRef>;
|
|
12
|
+
middleRows: QueryList<ElementRef>;
|
|
13
|
+
rightRows: QueryList<ElementRef>;
|
|
14
|
+
leftHead: ElementRef;
|
|
15
|
+
middleHead: ElementRef;
|
|
16
|
+
rightHead: ElementRef;
|
|
17
|
+
tableLeft: ElementRef;
|
|
18
|
+
tableMiddle: ElementRef;
|
|
19
|
+
tableRight: ElementRef;
|
|
20
|
+
columns: INpTableColumn[];
|
|
21
|
+
selectableType: 'checkbox' | 'radio' | null;
|
|
22
|
+
isSortable: boolean;
|
|
23
|
+
isFilterable: boolean;
|
|
24
|
+
isDeleteable: boolean;
|
|
25
|
+
pageSize: number[];
|
|
26
|
+
isUsePagination: boolean;
|
|
27
|
+
panigationType: 'basic' | 'outlined' | 'text' | 'simple' | 'full';
|
|
28
|
+
state: 'error' | 'loading' | 'normal';
|
|
29
|
+
className: string;
|
|
30
|
+
classNameLeft: string;
|
|
31
|
+
classNameRight: string;
|
|
32
|
+
scrollColumnsRange: [number, number] | null;
|
|
33
|
+
scrollWidth: string;
|
|
34
|
+
isReverse: boolean;
|
|
35
|
+
showVerticalDivider: boolean;
|
|
36
|
+
selectAllSub?: Subscription;
|
|
37
|
+
selectAllFc: FormControl<boolean | null>;
|
|
38
|
+
isIndeterminateAll: boolean;
|
|
39
|
+
currentPage: number;
|
|
40
|
+
currentPageSize: number;
|
|
41
|
+
paginationWidth: string;
|
|
42
|
+
isAtStart: boolean;
|
|
43
|
+
isAtEnd: boolean;
|
|
44
|
+
_dataSource: any[];
|
|
45
|
+
sortKey: string | null;
|
|
46
|
+
sortDirection: 'asc' | 'desc' | null;
|
|
47
|
+
deleteSelectedRows: EventEmitter<any[]>;
|
|
48
|
+
set dataSource(value: any[]);
|
|
49
|
+
get fixedLeftColumns(): INpTableColumn[];
|
|
50
|
+
get scrollableColumns(): INpTableColumn[];
|
|
51
|
+
get fixedRightColumns(): INpTableColumn[];
|
|
52
|
+
syncRowHeights(): void;
|
|
53
|
+
updatePaginationWidth(): void;
|
|
54
|
+
private bindSelectAllListener;
|
|
55
|
+
filterIcons: QueryList<ElementRef>;
|
|
56
|
+
dropdownPositionMap: {
|
|
57
|
+
[key: string]: any;
|
|
58
|
+
};
|
|
59
|
+
get filteredData(): any[];
|
|
60
|
+
get pagedData(): any[];
|
|
61
|
+
onPageChange(newPage: number): void;
|
|
62
|
+
onPageSizeChange(newSize: number): void;
|
|
63
|
+
onSortColumn(column: INpTableColumn): void;
|
|
64
|
+
onChangeSelectColumn($event: boolean): void;
|
|
65
|
+
ngOnDestroy(): void;
|
|
66
|
+
get selectedCount(): number;
|
|
67
|
+
onDeleteSelected(): void;
|
|
68
|
+
onRefresh(): void;
|
|
69
|
+
onContactSupport(): void;
|
|
70
|
+
activeFilterKey: string | null;
|
|
71
|
+
searchKeyword: {
|
|
72
|
+
[key: string]: string;
|
|
73
|
+
};
|
|
74
|
+
searchControls: {
|
|
75
|
+
[key: string]: FormControl;
|
|
76
|
+
};
|
|
77
|
+
selectedFilters: {
|
|
78
|
+
[key: string]: Set<any>;
|
|
79
|
+
};
|
|
80
|
+
toggleFilter(key: string): void;
|
|
81
|
+
shouldShowFilterCheck(colKey: string): boolean;
|
|
82
|
+
getDistinctFilteredValues(colKey: string): any[];
|
|
83
|
+
getFilteredColumnValues(colKey: string): any[];
|
|
84
|
+
isChecked(colKey: string, value: any): FormControl;
|
|
85
|
+
onToggleFilter(colKey: string, value: any, checked: boolean): void;
|
|
86
|
+
onClickOutside(event: MouseEvent): void;
|
|
87
|
+
onScrollCloseFilter(): void;
|
|
88
|
+
onResizeWindow(): void;
|
|
89
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NpTableComponent, never>;
|
|
90
|
+
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; }; "pageSize": { "alias": "pageSize"; "required": false; }; "isUsePagination": { "alias": "isUsePagination"; "required": false; }; "panigationType": { "alias": "panigationType"; "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; }; "isReverse": { "alias": "isReverse"; "required": false; }; "showVerticalDivider": { "alias": "showVerticalDivider"; "required": false; }; "dataSource": { "alias": "dataSource"; "required": false; }; }, { "deleteSelectedRows": "deleteSelectedRows"; }, never, never, true, never>;
|
|
91
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { FormControl } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class NpToggleComponent {
|
|
5
|
+
_input: FormControl;
|
|
6
|
+
set input(value: FormControl | undefined | boolean);
|
|
7
|
+
size: string;
|
|
8
|
+
label?: string;
|
|
9
|
+
subLabel?: string;
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
valueChange: EventEmitter<boolean>;
|
|
12
|
+
toggleChecked(value: boolean): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NpToggleComponent, never>;
|
|
14
|
+
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>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ElementRef, Renderer2 } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class NpTooltipComponent {
|
|
4
|
+
private renderer;
|
|
5
|
+
type: 'primary' | 'secondary';
|
|
6
|
+
text: string;
|
|
7
|
+
descriptions?: string;
|
|
8
|
+
position?: string;
|
|
9
|
+
tooltipVisible: boolean;
|
|
10
|
+
container: ElementRef;
|
|
11
|
+
_ngContent: Element | null;
|
|
12
|
+
set ngContent(value: Element);
|
|
13
|
+
constructor(renderer: Renderer2);
|
|
14
|
+
updateContent(): void;
|
|
15
|
+
get tooltipColor(): string;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NpTooltipComponent, never>;
|
|
17
|
+
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>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { FormControl } from '@angular/forms';
|
|
3
|
+
import { INpTreeNode } from '../../../interfaces/np-tree.interface';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
interface IFlatTreeNode extends INpTreeNode {
|
|
6
|
+
isLastByLevel?: {
|
|
7
|
+
[level: number]: boolean;
|
|
8
|
+
};
|
|
9
|
+
hasParentByLevel?: {
|
|
10
|
+
[level: number]: boolean;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export declare class NpTreeComponent implements OnInit {
|
|
14
|
+
type: 'checkbox' | 'icon' | 'default';
|
|
15
|
+
expandPosition: 'left' | 'right';
|
|
16
|
+
notCompressMin: number;
|
|
17
|
+
isCompactActions: boolean;
|
|
18
|
+
autoHideActions: boolean;
|
|
19
|
+
className: string;
|
|
20
|
+
_list: INpTreeNode[] | undefined;
|
|
21
|
+
_flattenList: INpTreeNode[] | undefined;
|
|
22
|
+
set list(value: INpTreeNode[] | undefined);
|
|
23
|
+
_input: FormControl;
|
|
24
|
+
set input(value: FormControl | undefined);
|
|
25
|
+
valueChange: EventEmitter<string[]>;
|
|
26
|
+
itemActiveId: string;
|
|
27
|
+
useLine: boolean;
|
|
28
|
+
visibleNodes: INpTreeNode[];
|
|
29
|
+
getFlattenList(arr: INpTreeNode[] | undefined, level?: number, parentId?: string | null, parentLastMap?: Record<number, boolean>, parentMap?: Record<number, boolean>): IFlatTreeNode[];
|
|
30
|
+
onExpand(item: INpTreeNode): void;
|
|
31
|
+
getVisibleNodes(): INpTreeNode[];
|
|
32
|
+
isParentExpanded(item: INpTreeNode, map: Map<any, INpTreeNode>): boolean;
|
|
33
|
+
itemHasChildren(item: INpTreeNode): boolean;
|
|
34
|
+
onSelectItem(item: INpTreeNode): void;
|
|
35
|
+
onCheckItem(item: INpTreeNode): void;
|
|
36
|
+
updateParentSelection(parentId: string | undefined): void;
|
|
37
|
+
updateChildrenSelection(node: INpTreeNode): void;
|
|
38
|
+
onValueChange(): void;
|
|
39
|
+
onSelectAction(event: any): void;
|
|
40
|
+
ngOnInit(): void;
|
|
41
|
+
normalizeIcons(list: INpTreeNode[]): void;
|
|
42
|
+
getNodeClasses(item: any, isLast: boolean): {
|
|
43
|
+
[key: string]: boolean;
|
|
44
|
+
};
|
|
45
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NpTreeComponent, never>;
|
|
46
|
+
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>;
|
|
47
|
+
}
|
|
48
|
+
export {};
|