@neoprototype/neop-ui-lib 1.0.26 → 1.0.28
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 +245 -44
- package/fesm2022/neoprototype-neop-ui-lib.mjs.map +1 -1
- package/lib/components/basic/np-alert/np-alert.component.d.ts +5 -2
- package/lib/components/basic/np-breadcrumb/np-breadcrumb.component.d.ts +2 -1
- package/lib/components/basic/np-input-field/np-input-field.component.d.ts +3 -2
- package/lib/components/basic/np-input-textera/np-input-textera.component.d.ts +5 -1
- package/lib/components/basic/np-tab/np-tab.component.d.ts +8 -1
- package/lib/components/basic/np-table/np-table.component.d.ts +1 -0
- package/lib/components/modal/confirm-template/confirm-template.component.d.ts +32 -0
- package/lib/components/modal/np-dialog/np-dialog.component.d.ts +10 -0
- package/lib/services/np-alert.service.d.ts +29 -0
- package/package.json +1 -1
- package/public-api.d.ts +3 -0
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { ElementRef, Renderer2 } from '@angular/core';
|
|
2
|
+
import { NpAlertService } from '../../../services/np-alert.service';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class NpAlertComponent {
|
|
4
5
|
private el;
|
|
5
6
|
private renderer;
|
|
6
|
-
|
|
7
|
+
private _alertService;
|
|
8
|
+
type: 'notification' | 'toast';
|
|
7
9
|
state: 'success' | 'info' | 'warning' | 'error';
|
|
8
10
|
description: string;
|
|
9
11
|
title?: string;
|
|
@@ -11,7 +13,8 @@ export declare class NpAlertComponent {
|
|
|
11
13
|
autoHide: boolean;
|
|
12
14
|
isMessageVisible: boolean;
|
|
13
15
|
opacity: number;
|
|
14
|
-
|
|
16
|
+
isFromService: boolean;
|
|
17
|
+
constructor(el: ElementRef, renderer: Renderer2, _alertService: NpAlertService);
|
|
15
18
|
ngOnInit(): void;
|
|
16
19
|
startFadeOut(): void;
|
|
17
20
|
closeAlert(): void;
|
|
@@ -14,6 +14,7 @@ export declare class NpBreadcrumbComponent implements OnInit, AfterViewInit {
|
|
|
14
14
|
iconBreakDown: string;
|
|
15
15
|
isBgLast: boolean;
|
|
16
16
|
isGetFromUrl: boolean;
|
|
17
|
+
isShowExpand: boolean;
|
|
17
18
|
breadcrumbs: INpBreadcrumb[] | any;
|
|
18
19
|
isExpanded: boolean;
|
|
19
20
|
ETypeNpBreadcrumb: typeof ETypeNpBreadcrumb;
|
|
@@ -26,6 +27,6 @@ export declare class NpBreadcrumbComponent implements OnInit, AfterViewInit {
|
|
|
26
27
|
onRedirect(item: INpBreadcrumb | null): void;
|
|
27
28
|
onExpand(): void;
|
|
28
29
|
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
|
+
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>;
|
|
30
31
|
}
|
|
31
32
|
export {};
|
|
@@ -31,6 +31,7 @@ export declare class NpInputFieldComponent {
|
|
|
31
31
|
valueChange: EventEmitter<string | number>;
|
|
32
32
|
iconLeftClick: EventEmitter<void>;
|
|
33
33
|
iconRightClick: EventEmitter<void>;
|
|
34
|
+
blur: EventEmitter<FocusEvent>;
|
|
34
35
|
onChangeValue(): void;
|
|
35
36
|
updateInputType(): void;
|
|
36
37
|
togglePassword(): void;
|
|
@@ -38,9 +39,9 @@ export declare class NpInputFieldComponent {
|
|
|
38
39
|
get errorMessageFromInput(): string | null;
|
|
39
40
|
handleKeyPress(event: KeyboardEvent): void;
|
|
40
41
|
onInputChange(event: Event): void;
|
|
41
|
-
onBlur(): void;
|
|
42
|
+
onBlur(event?: FocusEvent): void;
|
|
42
43
|
handleIconLeftClick(): void;
|
|
43
44
|
handleIconRightClick(): void;
|
|
44
45
|
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
|
+
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"; "blur": "blur"; }, never, never, true, never>;
|
|
46
47
|
}
|
|
@@ -11,6 +11,10 @@ export declare class NpInputTexteraComponent {
|
|
|
11
11
|
value?: string;
|
|
12
12
|
limitValue?: number;
|
|
13
13
|
submitted: boolean;
|
|
14
|
+
rowSize: {
|
|
15
|
+
minRows: number;
|
|
16
|
+
maxRows: number;
|
|
17
|
+
};
|
|
14
18
|
_input: FormControl;
|
|
15
19
|
currentLength: number;
|
|
16
20
|
set input(value: FormControl | undefined);
|
|
@@ -18,5 +22,5 @@ export declare class NpInputTexteraComponent {
|
|
|
18
22
|
get computedStatus(): string | undefined;
|
|
19
23
|
get errorMessageFromInput(): string | null;
|
|
20
24
|
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>;
|
|
25
|
+
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>;
|
|
22
26
|
}
|
|
@@ -8,12 +8,19 @@ export declare class NpTabComponent implements OnInit {
|
|
|
8
8
|
tabs: INpTab[];
|
|
9
9
|
tabActive: string;
|
|
10
10
|
isLink: boolean;
|
|
11
|
+
npStyle: 'button' | 'underline';
|
|
12
|
+
npDirection: 'horizontal' | 'vertical';
|
|
13
|
+
minWidthItem?: string;
|
|
11
14
|
onChange: EventEmitter<INpTab>;
|
|
12
15
|
indexActive: number;
|
|
16
|
+
scrollLeftButton: boolean;
|
|
17
|
+
scrollRightButton: boolean;
|
|
13
18
|
constructor(_Router: Router, _ActivatedRoute: ActivatedRoute);
|
|
14
19
|
ngOnInit(): void;
|
|
15
20
|
setTabActiveDefault(): void;
|
|
16
21
|
onChangeTab(tab: INpTab, index: number): void;
|
|
22
|
+
scrollLeft(): void;
|
|
23
|
+
scrollRight(): void;
|
|
17
24
|
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>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NpTabComponent, "np-tab", never, { "tabs": { "alias": "tabs"; "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>;
|
|
19
26
|
}
|
|
@@ -83,6 +83,7 @@ export declare class NpTableComponent {
|
|
|
83
83
|
getFilteredColumnValues(colKey: string): any[];
|
|
84
84
|
isChecked(colKey: string, value: any): FormControl;
|
|
85
85
|
onToggleFilter(colKey: string, value: any, checked: boolean): void;
|
|
86
|
+
onClearFilter(colKey: string): void;
|
|
86
87
|
onClickOutside(event: MouseEvent): void;
|
|
87
88
|
onScrollCloseFilter(): void;
|
|
88
89
|
onResizeWindow(): void;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { EventEmitter, TemplateRef } from '@angular/core';
|
|
2
|
+
import { FormControl } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class NpConfirmTemplateComponent {
|
|
5
|
+
modalTitle: string | TemplateRef<any>;
|
|
6
|
+
modalDescriptions: string | TemplateRef<any>;
|
|
7
|
+
modalType: 'confirmation' | 'notification';
|
|
8
|
+
modalState: 'error' | 'warning' | 'success' | 'default';
|
|
9
|
+
useIcon: boolean;
|
|
10
|
+
useCheckBox: boolean;
|
|
11
|
+
cancelText: string;
|
|
12
|
+
okText: string;
|
|
13
|
+
modalContent?: TemplateRef<any>;
|
|
14
|
+
loadingOK: boolean;
|
|
15
|
+
ok: EventEmitter<void>;
|
|
16
|
+
cancel: EventEmitter<void>;
|
|
17
|
+
checkbox: EventEmitter<{
|
|
18
|
+
checkboxValue: boolean;
|
|
19
|
+
}>;
|
|
20
|
+
isVisible: boolean;
|
|
21
|
+
isOkLoading: boolean;
|
|
22
|
+
modalWidth: number;
|
|
23
|
+
checkboxControl: FormControl<boolean | null>;
|
|
24
|
+
ngOnInit(): void;
|
|
25
|
+
isTemplate(value: any): value is TemplateRef<any>;
|
|
26
|
+
get iconPath(): string;
|
|
27
|
+
showModal(): void;
|
|
28
|
+
handleOk(): void;
|
|
29
|
+
handleCancel(): void;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NpConfirmTemplateComponent, never>;
|
|
31
|
+
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>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { NzModalRef } from 'ng-zorro-antd/modal';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class NpDialogComponent<R = any> {
|
|
4
|
+
protected modalRef: NzModalRef<R>;
|
|
5
|
+
constructor(modalRef: NzModalRef<R>);
|
|
6
|
+
close(result?: R): void;
|
|
7
|
+
submit(result?: R): void;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NpDialogComponent<any>, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NpDialogComponent<any>, "np-dialog", never, {}, {}, never, never, true, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export interface AlertData {
|
|
3
|
+
type: 'toast' | 'notification';
|
|
4
|
+
state: 'success' | 'info' | 'warning' | 'error';
|
|
5
|
+
title?: string;
|
|
6
|
+
description: string;
|
|
7
|
+
message?: string;
|
|
8
|
+
autoHide?: boolean;
|
|
9
|
+
isFromService?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare class NpAlertService {
|
|
12
|
+
private alertSubject;
|
|
13
|
+
alert$: import("rxjs").Observable<AlertData>;
|
|
14
|
+
toast: {
|
|
15
|
+
success: (description: string, title?: string, message?: string) => void;
|
|
16
|
+
info: (description: string, title?: string, message?: string) => void;
|
|
17
|
+
warning: (description: string, title?: string, message?: string) => void;
|
|
18
|
+
error: (description: string, title?: string, message?: string) => void;
|
|
19
|
+
};
|
|
20
|
+
notification: {
|
|
21
|
+
success: (description: string, title?: string, message?: string) => void;
|
|
22
|
+
info: (description: string, title?: string, message?: string) => void;
|
|
23
|
+
warning: (description: string, title?: string, message?: string) => void;
|
|
24
|
+
error: (description: string, title?: string, message?: string) => void;
|
|
25
|
+
};
|
|
26
|
+
private emit;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NpAlertService, never>;
|
|
28
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NpAlertService>;
|
|
29
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from './lib/services/test.service';
|
|
2
2
|
export * from './lib/services/theme.service';
|
|
3
3
|
export * from './lib/services/np-dialog.service';
|
|
4
|
+
export * from './lib/services/np-alert.service';
|
|
4
5
|
export * from './lib/components/neop-component.module';
|
|
5
6
|
export * from './lib/components/basic/np-typography/np-typography.component';
|
|
6
7
|
export * from './lib/components/basic/np-button/np-button.component';
|
|
@@ -23,6 +24,8 @@ export * from './lib/components/basic/np-table/np-table.component';
|
|
|
23
24
|
export * from './lib/components/basic/np-tab/np-tab.component';
|
|
24
25
|
export * from './lib/components/basic/np-action-bar/np-action-bar.component';
|
|
25
26
|
export * from './lib/components/basic/np-resize/np-resize.component';
|
|
27
|
+
export * from './lib/components/modal/confirm-template/confirm-template.component';
|
|
28
|
+
export * from './lib/components/modal/np-dialog/np-dialog.component';
|
|
26
29
|
export * from './lib/components/modal/np-modal/np-modal.component';
|
|
27
30
|
export * from './lib/enum/np-breadcrumb.enum';
|
|
28
31
|
export * from './lib/enum/basic/breadcrumb.enum';
|