@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
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ElementRef, Renderer2 } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class NpTypographyComponent {
|
|
4
|
+
private renderer;
|
|
5
|
+
container: ElementRef;
|
|
6
|
+
npType: string;
|
|
7
|
+
npSize: string;
|
|
8
|
+
npWeight: string;
|
|
9
|
+
_ngContent: Element | null;
|
|
10
|
+
set ngContent(value: Element);
|
|
11
|
+
constructor(renderer: Renderer2);
|
|
12
|
+
updateContent(): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NpTypographyComponent, never>;
|
|
14
|
+
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>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { EventEmitter, TemplateRef } from '@angular/core';
|
|
2
|
+
import { FormControl } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class NpModalComponent {
|
|
5
|
+
modalButton: string | TemplateRef<any>;
|
|
6
|
+
modalTitle: string | TemplateRef<any>;
|
|
7
|
+
modalDescriptions: string | TemplateRef<any>;
|
|
8
|
+
modalType: 'confirmation' | 'notification';
|
|
9
|
+
modalState: 'error' | 'warning' | 'success' | 'default';
|
|
10
|
+
useIcon: boolean;
|
|
11
|
+
useCheckBox: boolean;
|
|
12
|
+
cancelText: string;
|
|
13
|
+
okText: string;
|
|
14
|
+
modalContent?: TemplateRef<any>;
|
|
15
|
+
modalFooter?: TemplateRef<any>;
|
|
16
|
+
loadingOK: boolean;
|
|
17
|
+
ok: EventEmitter<void>;
|
|
18
|
+
cancel: EventEmitter<void>;
|
|
19
|
+
checkbox: EventEmitter<{
|
|
20
|
+
checkboxValue: boolean;
|
|
21
|
+
}>;
|
|
22
|
+
isVisible: boolean;
|
|
23
|
+
isOkLoading: boolean;
|
|
24
|
+
modalWidth: number;
|
|
25
|
+
checkboxControl: FormControl<boolean | null>;
|
|
26
|
+
ngOnInit(): void;
|
|
27
|
+
isTemplate(value: any): value is TemplateRef<any>;
|
|
28
|
+
get iconPath(): string;
|
|
29
|
+
showModal(): void;
|
|
30
|
+
handleOk(): void;
|
|
31
|
+
handleCancel(): void;
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NpModalComponent, never>;
|
|
33
|
+
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>;
|
|
34
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@angular/common";
|
|
3
|
+
export declare class NeopComponentModule {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NeopComponentModule, never>;
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NeopComponentModule, never, [typeof i1.CommonModule], never>;
|
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<NeopComponentModule>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { INpAction } from './np.actions';
|
|
2
|
+
export interface INpTreeNode {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
isSelected?: boolean;
|
|
6
|
+
isChecked?: boolean;
|
|
7
|
+
isIndeterminate?: boolean;
|
|
8
|
+
type?: string;
|
|
9
|
+
isActive?: boolean;
|
|
10
|
+
isExpanded?: boolean;
|
|
11
|
+
className?: string;
|
|
12
|
+
iconCollapsed?: string;
|
|
13
|
+
iconExpanded?: string;
|
|
14
|
+
iconLeaf?: string;
|
|
15
|
+
level?: number;
|
|
16
|
+
parentId?: string | null;
|
|
17
|
+
childrens?: INpTreeNode[];
|
|
18
|
+
checkboxType?: 'checkbox' | 'indeterminate' | undefined;
|
|
19
|
+
isLast?: boolean;
|
|
20
|
+
isLastByLevel?: {
|
|
21
|
+
[level: number]: boolean;
|
|
22
|
+
};
|
|
23
|
+
hasParentByLevel?: {
|
|
24
|
+
[level: number]: boolean;
|
|
25
|
+
};
|
|
26
|
+
showAction?: boolean;
|
|
27
|
+
actions?: INpAction[];
|
|
28
|
+
path?: string;
|
|
29
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { IDefaultModel } from '../interfaces/default.interface';
|
|
2
|
+
export declare class DefaultModel implements IDefaultModel {
|
|
3
|
+
/**
|
|
4
|
+
* all keys are in lowercase
|
|
5
|
+
* @type {{}}
|
|
6
|
+
* @private
|
|
7
|
+
*/
|
|
8
|
+
_data: any;
|
|
9
|
+
/**
|
|
10
|
+
* all keys are raw
|
|
11
|
+
* @type {{}}
|
|
12
|
+
* @private
|
|
13
|
+
*/
|
|
14
|
+
_raw: any;
|
|
15
|
+
_idKey: string;
|
|
16
|
+
_id: any;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @param _data
|
|
20
|
+
* @param idKey
|
|
21
|
+
* @param isAutoAssign
|
|
22
|
+
*/
|
|
23
|
+
constructor(_data?: any, idKey?: string, isAutoAssign?: boolean, isAssignRawData?: boolean);
|
|
24
|
+
/**
|
|
25
|
+
* get value of id
|
|
26
|
+
* @return {any}
|
|
27
|
+
*/
|
|
28
|
+
getId(): string | number | null;
|
|
29
|
+
setId(id: string | number | null): void;
|
|
30
|
+
/**
|
|
31
|
+
* delete object property
|
|
32
|
+
* @param key: string
|
|
33
|
+
*/
|
|
34
|
+
deleteProperty(key: string): void;
|
|
35
|
+
/**
|
|
36
|
+
* get key of id
|
|
37
|
+
* @returns {string}
|
|
38
|
+
*/
|
|
39
|
+
getIdKey(): string;
|
|
40
|
+
/**
|
|
41
|
+
* get value of _data by key
|
|
42
|
+
* @param key: string
|
|
43
|
+
* @returns {any}
|
|
44
|
+
*/
|
|
45
|
+
getValue(key: string): any;
|
|
46
|
+
/**
|
|
47
|
+
* set value of _data by key & value of this object's attribute if existed
|
|
48
|
+
* @param key: string
|
|
49
|
+
* @param value: string
|
|
50
|
+
* @returns {any}
|
|
51
|
+
*/
|
|
52
|
+
setValue(key: string, value: any): any;
|
|
53
|
+
/**
|
|
54
|
+
* get raw value of _data by key
|
|
55
|
+
* @param key: string
|
|
56
|
+
* @returns {any}
|
|
57
|
+
*/
|
|
58
|
+
getRawValue(key: string): any;
|
|
59
|
+
/**
|
|
60
|
+
* set value of _data by key
|
|
61
|
+
* @param key: string
|
|
62
|
+
* @param value: string
|
|
63
|
+
* @returns {any}
|
|
64
|
+
*/
|
|
65
|
+
setRawValue(key: string, value: any): any;
|
|
66
|
+
static describe(instance: any): Array<string>;
|
|
67
|
+
}
|
|
68
|
+
export declare namespace DefaultModel { }
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { NzModalService } from 'ng-zorro-antd/modal';
|
|
2
|
+
import { ComponentType } from '@angular/cdk/portal';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class NpDialogService {
|
|
6
|
+
private modal;
|
|
7
|
+
constructor(modal: NzModalService);
|
|
8
|
+
openDialog<T, D = any, R = any>(component: ComponentType<T>, params?: Partial<D>): Observable<R>;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NpDialogService, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NpDialogService>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { RendererFactory2 } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ThemeService {
|
|
4
|
+
private themeElement;
|
|
5
|
+
constructor(rendererFactory: RendererFactory2);
|
|
6
|
+
setTheme(themeClass: string): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ThemeService, never>;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ThemeService>;
|
|
9
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@neoprototype/neop-ui-lib",
|
|
3
|
+
"version": "1.0.26",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public"
|
|
6
|
+
},
|
|
7
|
+
"peerDependencies": {
|
|
8
|
+
"@angular/common": ">=18.2.0 <20.0.0",
|
|
9
|
+
"@angular/core": ">=18.2.0 <20.0.0"
|
|
10
|
+
},
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"tslib": "^2.3.0"
|
|
13
|
+
},
|
|
14
|
+
"sideEffects": false,
|
|
15
|
+
"module": "fesm2022/neoprototype-neop-ui-lib.mjs",
|
|
16
|
+
"typings": "index.d.ts",
|
|
17
|
+
"exports": {
|
|
18
|
+
"./package.json": {
|
|
19
|
+
"default": "./package.json"
|
|
20
|
+
},
|
|
21
|
+
".": {
|
|
22
|
+
"types": "./index.d.ts",
|
|
23
|
+
"default": "./fesm2022/neoprototype-neop-ui-lib.mjs"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
package/public-api.d.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export * from './lib/services/test.service';
|
|
2
|
+
export * from './lib/services/theme.service';
|
|
3
|
+
export * from './lib/services/np-dialog.service';
|
|
4
|
+
export * from './lib/components/neop-component.module';
|
|
5
|
+
export * from './lib/components/basic/np-typography/np-typography.component';
|
|
6
|
+
export * from './lib/components/basic/np-button/np-button.component';
|
|
7
|
+
export * from './lib/components/basic/np-checkbox/np-checkbox.component';
|
|
8
|
+
export * from './lib/components/basic/np-input-field/np-input-field.component';
|
|
9
|
+
export * from './lib/components/basic/np-input-textera/np-input-textera.component';
|
|
10
|
+
export * from './lib/components/basic/np-toggle/np-toggle.component';
|
|
11
|
+
export * from './lib/components/basic/np-select/np-select.component';
|
|
12
|
+
export * from './lib/components/basic/np-dropdowns/np-dropdowns.component';
|
|
13
|
+
export * from './lib/components/basic/np-tree/np-tree.component';
|
|
14
|
+
export * from './lib/components/basic/np-pagination/np-pagination.component';
|
|
15
|
+
export * from './lib/components/basic/np-scrollbar/np-scrollbar.component';
|
|
16
|
+
export * from './lib/components/basic/np-alert/np-alert.component';
|
|
17
|
+
export * from './lib/components/basic/np-tooltip/np-tooltip.component';
|
|
18
|
+
export * from './lib/components/basic/np-breadcrumb/np-breadcrumb.component';
|
|
19
|
+
export * from './lib/components/basic/np-progress-bar/np-progress-bar.component';
|
|
20
|
+
export * from './lib/components/basic/np-slider/np-slider.component';
|
|
21
|
+
export * from './lib/components/basic/np-loading-indicator/np-loading-indicator.component';
|
|
22
|
+
export * from './lib/components/basic/np-table/np-table.component';
|
|
23
|
+
export * from './lib/components/basic/np-tab/np-tab.component';
|
|
24
|
+
export * from './lib/components/basic/np-action-bar/np-action-bar.component';
|
|
25
|
+
export * from './lib/components/basic/np-resize/np-resize.component';
|
|
26
|
+
export * from './lib/components/modal/np-modal/np-modal.component';
|
|
27
|
+
export * from './lib/enum/np-breadcrumb.enum';
|
|
28
|
+
export * from './lib/enum/basic/breadcrumb.enum';
|
|
29
|
+
export * from './lib/models/default.mode';
|
|
30
|
+
export * from './lib/interfaces/dictionary-item.interface';
|
|
31
|
+
export * from './lib/interfaces/np-table.interface';
|
|
32
|
+
export * from './lib/interfaces/np-tree.interface';
|
|
33
|
+
export * from './lib/interfaces/np-table.interface';
|
|
34
|
+
export * from './lib/interfaces/np-tab.interface';
|
|
35
|
+
export * from './lib/config/form-error-config';
|
|
Binary file
|
package/scss/index.less
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import "./ngzorro/ng-zorro.less";
|
package/scss/index.scss
ADDED
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@use "tailwindcss";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
@use "./theme-dark.scss";
|
|
2
|
+
@use "./theme-light.scss";
|
|
3
|
+
|
|
4
|
+
@theme {
|
|
5
|
+
--color-test: var(--color-test);
|
|
6
|
+
--color-np-25: rgba(252, 252, 253, 1);
|
|
7
|
+
--color-np-50: rgba(249, 250, 251, 1);
|
|
8
|
+
--color-np-100: rgba(242, 244, 247, 1);
|
|
9
|
+
--color-np-200: rgba(234, 236, 240, 1);
|
|
10
|
+
--color-np-300: rgba(208, 213, 221, 1);
|
|
11
|
+
--color-np-400: rgba(152, 162, 179, 1);
|
|
12
|
+
--color-np-500: rgba(102, 112, 133, 1);
|
|
13
|
+
--color-np-primary: rgba(102, 112, 133, 1);
|
|
14
|
+
--color-np-600: rgba(71, 84, 103, 1);
|
|
15
|
+
--color-np-700: rgba(52, 64, 84, 1);
|
|
16
|
+
--color-np-800: rgba(24, 34, 48, 1);
|
|
17
|
+
--color-np-900: rgba(16, 24, 40, 1);
|
|
18
|
+
--color-np-950: rgba(12, 17, 29, 1);
|
|
19
|
+
--animate-fade-in-scale: fade-in-scale 0.3s ease-out;
|
|
20
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
@use "../tailwind/tailwind.scss";
|
|
2
|
+
|
|
3
|
+
.theme-dark {
|
|
4
|
+
// primary
|
|
5
|
+
--color-primary: black;
|
|
6
|
+
--color-primary-hover: black;
|
|
7
|
+
// secondary
|
|
8
|
+
--color-secondary: #ffffff;
|
|
9
|
+
--color-secondary-hover: black;
|
|
10
|
+
--color-secondary-hover-border: rgba(234, 236, 240, 1);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
@theme {
|
|
14
|
+
// primary
|
|
15
|
+
--color-primary: var(--color-primary);
|
|
16
|
+
--color-primary-hover: var(--color-primary-hover);
|
|
17
|
+
// secondary
|
|
18
|
+
--color-secondary: var(--color-secondary);
|
|
19
|
+
--color-secondary-hover: var(--color-secondary-hover);
|
|
20
|
+
--color-secondary-hover-border: var(--color-secondary-hover-border);
|
|
21
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
@use "../tailwind/tailwind.scss";
|
|
2
|
+
|
|
3
|
+
.theme-light {
|
|
4
|
+
// primary
|
|
5
|
+
--color-primary: #475467;
|
|
6
|
+
--color-border: #475467;
|
|
7
|
+
--color-primary-hover: #344054;
|
|
8
|
+
--color-shadown: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
|
|
9
|
+
// secondary
|
|
10
|
+
--color-secondary: #ffffff;
|
|
11
|
+
--color-border: #d0d5dd;
|
|
12
|
+
--color-secondary-hover: #d0d5dd;
|
|
13
|
+
--color-secondary-hover-border: rgba(234, 236, 240, 1);
|
|
14
|
+
// destructive
|
|
15
|
+
--color-destructive: #d92d20;
|
|
16
|
+
--color-destructive-text: #ffff;
|
|
17
|
+
--color-destructive-border: #d0d5dd;
|
|
18
|
+
--color-destructive-hover: #b42318;
|
|
19
|
+
--color-destructive-hover-border: rgba(234, 236, 240, 1);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@theme {
|
|
23
|
+
// primary
|
|
24
|
+
--color-primary: var(--color-primary);
|
|
25
|
+
--color-primary-hover: var(--color-primary-hover);
|
|
26
|
+
// secondary
|
|
27
|
+
--color-secondary: var(--color-secondary);
|
|
28
|
+
--color-secondary-hover: var(--color-secondary-hover);
|
|
29
|
+
--color-secondary-hover-border: var(--color-secondary-hover-border);
|
|
30
|
+
}
|