ps-toolkit-ui 0.0.1
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/bundles/ps-toolkit-ui.umd.js +7344 -0
- package/bundles/ps-toolkit-ui.umd.js.map +1 -0
- package/bundles/ps-toolkit-ui.umd.min.js +2 -0
- package/bundles/ps-toolkit-ui.umd.min.js.map +1 -0
- package/esm2015/lib/classes/enum.class.js +162 -0
- package/esm2015/lib/classes/form.class.js +467 -0
- package/esm2015/lib/classes/helper.class.js +275 -0
- package/esm2015/lib/classes/lang.class.js +32 -0
- package/esm2015/lib/classes/login.class.js +22 -0
- package/esm2015/lib/classes/modal.class.js +52 -0
- package/esm2015/lib/classes/permission.class.js +29 -0
- package/esm2015/lib/classes/request.class.js +255 -0
- package/esm2015/lib/classes/safestyle.class.js +15 -0
- package/esm2015/lib/classes/sidebar.class.js +14 -0
- package/esm2015/lib/classes/steps.class.js +20 -0
- package/esm2015/lib/classes/string.class.js +203 -0
- package/esm2015/lib/classes/table.class.js +278 -0
- package/esm2015/lib/components/accordion/accordion.component.js +45 -0
- package/esm2015/lib/components/alert/alert.component.js +41 -0
- package/esm2015/lib/components/base.component.js +55 -0
- package/esm2015/lib/components/confirm/confirm.component.js +50 -0
- package/esm2015/lib/components/footer/footer.component.js +23 -0
- package/esm2015/lib/components/form/bank-card/form.bank-card.component.js +148 -0
- package/esm2015/lib/components/form/button/form.button.component.js +68 -0
- package/esm2015/lib/components/form/car/form.car.component.js +84 -0
- package/esm2015/lib/components/form/car/search/form.car.search.component.js +173 -0
- package/esm2015/lib/components/form/checkbox/form.checkbox.component.js +66 -0
- package/esm2015/lib/components/form/date/form.date.component.js +256 -0
- package/esm2015/lib/components/form/datetime/form.datetime.component.js +104 -0
- package/esm2015/lib/components/form/file/form.file.component.js +133 -0
- package/esm2015/lib/components/form/finger/form.finger.component.js +138 -0
- package/esm2015/lib/components/form/icon/form.icon.component.js +76 -0
- package/esm2015/lib/components/form/index/form.component.js +48 -0
- package/esm2015/lib/components/form/label/form.label.component.js +31 -0
- package/esm2015/lib/components/form/plaque/form.plaque.component.js +176 -0
- package/esm2015/lib/components/form/plaque/select/form.plaque.select.component.js +390 -0
- package/esm2015/lib/components/form/radio/form.radio.component.js +79 -0
- package/esm2015/lib/components/form/select/form.select.component.js +369 -0
- package/esm2015/lib/components/form/select/item/form.select.item.component.js +43 -0
- package/esm2015/lib/components/form/table/form.table.component.js +98 -0
- package/esm2015/lib/components/form/textarea/form.textarea.component.js +78 -0
- package/esm2015/lib/components/form/textbox/form.textbox.component.js +186 -0
- package/esm2015/lib/components/form/time/form.time.component.js +145 -0
- package/esm2015/lib/components/form/tree/form.tree.component.js +93 -0
- package/esm2015/lib/components/form/tree/item/form.tree.item.component.js +48 -0
- package/esm2015/lib/components/header/header.component.js +28 -0
- package/esm2015/lib/components/header/sub/sub.header.component.js +14 -0
- package/esm2015/lib/components/layout/layout.component.js +23 -0
- package/esm2015/lib/components/loading/loading.component.js +22 -0
- package/esm2015/lib/components/login/login.component.js +145 -0
- package/esm2015/lib/components/modal/modal.component.js +25 -0
- package/esm2015/lib/components/notfound/notfound.component.js +29 -0
- package/esm2015/lib/components/notification/notification.component.js +14 -0
- package/esm2015/lib/components/sidebar/item/sidebar.item.component.js +53 -0
- package/esm2015/lib/components/sidebar/sidebar.component.js +65 -0
- package/esm2015/lib/components/steps/steps.component.js +51 -0
- package/esm2015/lib/components/table/loading/table.loading.component.js +17 -0
- package/esm2015/lib/components/table/pagination/table.pagination.component.js +84 -0
- package/esm2015/lib/components/table/report/table.report.component.js +245 -0
- package/esm2015/lib/components/table/row/table.row.component.js +274 -0
- package/esm2015/lib/components/table/table.component.js +207 -0
- package/esm2015/lib/components/tooltip/tooltip.component.js +19 -0
- package/esm2015/lib/ps-toolkit-ui.module.js +89 -0
- package/esm2015/lib/services/config.service.js +14 -0
- package/esm2015/ps-toolkit-ui.js +16 -0
- package/esm2015/public-api.js +52 -0
- package/fesm2015/ps-toolkit-ui.js +6277 -0
- package/fesm2015/ps-toolkit-ui.js.map +1 -0
- package/lib/classes/enum.class.d.ts +137 -0
- package/lib/classes/form.class.d.ts +173 -0
- package/lib/classes/helper.class.d.ts +26 -0
- package/lib/classes/lang.class.d.ts +5 -0
- package/lib/classes/login.class.d.ts +17 -0
- package/lib/classes/modal.class.d.ts +19 -0
- package/lib/classes/permission.class.d.ts +19 -0
- package/lib/classes/request.class.d.ts +12 -0
- package/lib/classes/safestyle.class.d.ts +7 -0
- package/lib/classes/sidebar.class.d.ts +11 -0
- package/lib/classes/steps.class.d.ts +17 -0
- package/lib/classes/string.class.d.ts +201 -0
- package/lib/classes/table.class.d.ts +67 -0
- package/lib/components/accordion/accordion.component.d.ts +7 -0
- package/lib/components/alert/alert.component.d.ts +10 -0
- package/lib/components/base.component.d.ts +12 -0
- package/lib/components/confirm/confirm.component.d.ts +14 -0
- package/lib/components/footer/footer.component.d.ts +6 -0
- package/lib/components/form/bank-card/form.bank-card.component.d.ts +22 -0
- package/lib/components/form/button/form.button.component.d.ts +15 -0
- package/lib/components/form/car/form.car.component.d.ts +16 -0
- package/lib/components/form/car/search/form.car.search.component.d.ts +18 -0
- package/lib/components/form/checkbox/form.checkbox.component.d.ts +14 -0
- package/lib/components/form/date/form.date.component.d.ts +41 -0
- package/lib/components/form/datetime/form.datetime.component.d.ts +13 -0
- package/lib/components/form/file/form.file.component.d.ts +17 -0
- package/lib/components/form/finger/form.finger.component.d.ts +15 -0
- package/lib/components/form/icon/form.icon.component.d.ts +15 -0
- package/lib/components/form/index/form.component.d.ts +10 -0
- package/lib/components/form/label/form.label.component.d.ts +8 -0
- package/lib/components/form/plaque/form.plaque.component.d.ts +22 -0
- package/lib/components/form/plaque/select/form.plaque.select.component.d.ts +36 -0
- package/lib/components/form/radio/form.radio.component.d.ts +13 -0
- package/lib/components/form/select/form.select.component.d.ts +39 -0
- package/lib/components/form/select/item/form.select.item.component.d.ts +12 -0
- package/lib/components/form/table/form.table.component.d.ts +9 -0
- package/lib/components/form/textarea/form.textarea.component.d.ts +13 -0
- package/lib/components/form/textbox/form.textbox.component.d.ts +20 -0
- package/lib/components/form/time/form.time.component.d.ts +25 -0
- package/lib/components/form/tree/form.tree.component.d.ts +16 -0
- package/lib/components/form/tree/item/form.tree.item.component.d.ts +17 -0
- package/lib/components/header/header.component.d.ts +7 -0
- package/lib/components/header/sub/sub.header.component.d.ts +3 -0
- package/lib/components/layout/layout.component.d.ts +6 -0
- package/lib/components/loading/loading.component.d.ts +5 -0
- package/lib/components/login/login.component.d.ts +13 -0
- package/lib/components/modal/modal.component.d.ts +9 -0
- package/lib/components/notfound/notfound.component.d.ts +7 -0
- package/lib/components/notification/notification.component.d.ts +3 -0
- package/lib/components/sidebar/item/sidebar.item.component.d.ts +14 -0
- package/lib/components/sidebar/sidebar.component.d.ts +18 -0
- package/lib/components/steps/steps.component.d.ts +10 -0
- package/lib/components/table/loading/table.loading.component.d.ts +5 -0
- package/lib/components/table/pagination/table.pagination.component.d.ts +15 -0
- package/lib/components/table/report/table.report.component.d.ts +34 -0
- package/lib/components/table/row/table.row.component.d.ts +36 -0
- package/lib/components/table/table.component.d.ts +39 -0
- package/lib/components/tooltip/tooltip.component.d.ts +5 -0
- package/lib/ps-toolkit-ui.module.d.ts +4 -0
- package/lib/services/config.service.d.ts +6 -0
- package/package.json +22 -0
- package/ps-toolkit-ui.d.ts +15 -0
- package/ps-toolkit-ui.metadata.json +1 -0
- package/public-api.d.ts +48 -0
- package/src/assets/fonts/Vazir.eot +0 -0
- package/src/assets/fonts/Vazir.ttf +0 -0
- package/src/assets/fonts/Vazir.woff +0 -0
- package/src/assets/fonts/Vazir.woff2 +0 -0
- package/src/assets/fonts/VazirBlack.eot +0 -0
- package/src/assets/fonts/VazirBlack.ttf +0 -0
- package/src/assets/fonts/VazirBlack.woff +0 -0
- package/src/assets/fonts/VazirBlack.woff2 +0 -0
- package/src/assets/fonts/VazirBold.eot +0 -0
- package/src/assets/fonts/VazirBold.ttf +0 -0
- package/src/assets/fonts/VazirBold.woff +0 -0
- package/src/assets/fonts/VazirBold.woff2 +0 -0
- package/src/assets/fonts/VazirLight.eot +0 -0
- package/src/assets/fonts/VazirLight.ttf +0 -0
- package/src/assets/fonts/VazirLight.woff +0 -0
- package/src/assets/fonts/VazirLight.woff2 +0 -0
- package/src/assets/fonts/VazirMedium.eot +0 -0
- package/src/assets/fonts/VazirMedium.ttf +0 -0
- package/src/assets/fonts/VazirMedium.woff +0 -0
- package/src/assets/fonts/VazirMedium.woff2 +0 -0
- package/src/assets/fonts/VazirThin.eot +0 -0
- package/src/assets/fonts/VazirThin.ttf +0 -0
- package/src/assets/fonts/VazirThin.woff +0 -0
- package/src/assets/fonts/VazirThin.woff2 +0 -0
- package/src/assets/images/partsilicon.png +0 -0
- package/src/assets/images/plaque.png +0 -0
- package/src/assets/images/plaque_m.png +0 -0
- package/src/assets/scripts/base.js +26 -0
- package/src/assets/styles/base.css +259 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SidebarClass } from '../../../classes/sidebar.class';
|
|
2
|
+
import { PsToolkitUiConfigService } from '../../../services/config.service';
|
|
3
|
+
export declare class SidebarItemComponent {
|
|
4
|
+
config: PsToolkitUiConfigService;
|
|
5
|
+
item: SidebarClass;
|
|
6
|
+
i: number;
|
|
7
|
+
base: boolean;
|
|
8
|
+
currentSidebar: any;
|
|
9
|
+
area: string;
|
|
10
|
+
l: (k: any, v?: any) => string;
|
|
11
|
+
constructor(config: PsToolkitUiConfigService);
|
|
12
|
+
openClose(e: any): void;
|
|
13
|
+
isActive(item: SidebarClass): boolean;
|
|
14
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { PsToolkitUiConfigService } from '../../services/config.service';
|
|
3
|
+
import { SidebarClass } from '../../classes/sidebar.class';
|
|
4
|
+
import { Router } from '@angular/router';
|
|
5
|
+
export declare class SidebarComponent implements OnInit {
|
|
6
|
+
config: PsToolkitUiConfigService;
|
|
7
|
+
private router;
|
|
8
|
+
permissions: any[];
|
|
9
|
+
area: string;
|
|
10
|
+
toggleSidebar: EventEmitter<string>;
|
|
11
|
+
sidebar: SidebarClass[];
|
|
12
|
+
currentSidebar: any;
|
|
13
|
+
l: (k: any, v?: any) => string;
|
|
14
|
+
constructor(config: PsToolkitUiConfigService, router: Router);
|
|
15
|
+
setActive(): void;
|
|
16
|
+
ngOnInit(): void;
|
|
17
|
+
getSidebarActive(item: SidebarClass[], active: any): SidebarClass;
|
|
18
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Router } from '@angular/router';
|
|
2
|
+
import { StepsClass, StepsItemClass } from '../../classes/steps.class';
|
|
3
|
+
export declare class StepsComponent {
|
|
4
|
+
private router;
|
|
5
|
+
steps: StepsClass;
|
|
6
|
+
constructor(router: Router);
|
|
7
|
+
getActive(): number;
|
|
8
|
+
changeStep(i: number, s: StepsItemClass): void;
|
|
9
|
+
onDelete(s: StepsItemClass): void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { TableClass } from '../../../classes/table.class';
|
|
3
|
+
import { InputClass } from '../../../classes/form.class';
|
|
4
|
+
import { InputType } from '../../../classes/enum.class';
|
|
5
|
+
export declare class TablePaginationComponent implements OnInit {
|
|
6
|
+
table: TableClass;
|
|
7
|
+
size: number;
|
|
8
|
+
perPageSelect: InputClass;
|
|
9
|
+
next: InputClass;
|
|
10
|
+
get type(): typeof InputType;
|
|
11
|
+
getButtons(): InputClass[];
|
|
12
|
+
add(s: number, f: number): InputClass[];
|
|
13
|
+
changePage(btn: any): void;
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { TableClass, TableCollClass } from '../../../classes/table.class';
|
|
3
|
+
import { InputType } from '../../../classes/enum.class';
|
|
4
|
+
import { InputClass } from '../../../classes/form.class';
|
|
5
|
+
import { PsToolkitUiConfigService } from '../../../services/config.service';
|
|
6
|
+
export declare class TableReportComponent implements OnInit {
|
|
7
|
+
service: PsToolkitUiConfigService;
|
|
8
|
+
confirmShow: any;
|
|
9
|
+
changeRows: EventEmitter<object>;
|
|
10
|
+
level: number;
|
|
11
|
+
table: TableClass;
|
|
12
|
+
row: any;
|
|
13
|
+
loadParent: EventEmitter<string>;
|
|
14
|
+
get type(): typeof InputType;
|
|
15
|
+
options: InputClass[];
|
|
16
|
+
optEdit: InputClass;
|
|
17
|
+
optDelete: InputClass;
|
|
18
|
+
optStatus: InputClass;
|
|
19
|
+
showChildren: InputClass;
|
|
20
|
+
addChildren: InputClass;
|
|
21
|
+
itemsWidth: number;
|
|
22
|
+
children: any[];
|
|
23
|
+
childrenDiv: ElementRef;
|
|
24
|
+
constructor(service: PsToolkitUiConfigService);
|
|
25
|
+
ngOnInit(): void;
|
|
26
|
+
loadChildren(p: any): void;
|
|
27
|
+
select(): void;
|
|
28
|
+
onChangeRows(e: any): void;
|
|
29
|
+
setSortRow(): void;
|
|
30
|
+
getOptions(): InputClass[];
|
|
31
|
+
getCell(col: TableCollClass): any;
|
|
32
|
+
getCol(n: any): string;
|
|
33
|
+
edit(): void;
|
|
34
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { TableClass, TableCollClass } from '../../../classes/table.class';
|
|
3
|
+
import { InputType } from '../../../classes/enum.class';
|
|
4
|
+
import { InputClass } from '../../../classes/form.class';
|
|
5
|
+
import { PsToolkitUiConfigService } from '../../../services/config.service';
|
|
6
|
+
export declare class TableRowComponent implements OnInit {
|
|
7
|
+
service: PsToolkitUiConfigService;
|
|
8
|
+
confirmShow: EventEmitter<object>;
|
|
9
|
+
changeRows: EventEmitter<object>;
|
|
10
|
+
level: number;
|
|
11
|
+
table: TableClass;
|
|
12
|
+
row: any;
|
|
13
|
+
loadParent: EventEmitter<string>;
|
|
14
|
+
get type(): typeof InputType;
|
|
15
|
+
options: InputClass[];
|
|
16
|
+
optEdit: InputClass;
|
|
17
|
+
optDelete: InputClass;
|
|
18
|
+
optStatus: InputClass;
|
|
19
|
+
showChildren: InputClass;
|
|
20
|
+
addChildren: InputClass;
|
|
21
|
+
itemsWidth: number;
|
|
22
|
+
children: any[];
|
|
23
|
+
childrenDiv: ElementRef;
|
|
24
|
+
constructor(service: PsToolkitUiConfigService);
|
|
25
|
+
ngOnInit(): void;
|
|
26
|
+
loadChildren(p: any): void;
|
|
27
|
+
select(): void;
|
|
28
|
+
onChangeRows(e: any): void;
|
|
29
|
+
onConfirmShow(e: any): void;
|
|
30
|
+
setSortRow(): void;
|
|
31
|
+
getOptions(): InputClass[];
|
|
32
|
+
getCell(col: TableCollClass): any;
|
|
33
|
+
getCol(n: any): string;
|
|
34
|
+
edit(): void;
|
|
35
|
+
getChildren(): any[];
|
|
36
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { Router } from '@angular/router';
|
|
3
|
+
import { TableClass } from '../../classes/table.class';
|
|
4
|
+
import { InputType, TableCollType } from '../../classes/enum.class';
|
|
5
|
+
import { InputClass } from '../../classes/form.class';
|
|
6
|
+
import { ConfirmComponent } from '../confirm/confirm.component';
|
|
7
|
+
export declare class TableComponent implements OnInit {
|
|
8
|
+
router: Router;
|
|
9
|
+
table: TableClass;
|
|
10
|
+
changeRows: EventEmitter<object>;
|
|
11
|
+
get type(): typeof InputType;
|
|
12
|
+
get colType(): typeof TableCollType;
|
|
13
|
+
rows: ElementRef;
|
|
14
|
+
tableDiv: ElementRef;
|
|
15
|
+
exportDropDown: ElementRef;
|
|
16
|
+
confirm: ConfirmComponent;
|
|
17
|
+
loadIcon: InputClass;
|
|
18
|
+
sizeIcon: InputClass;
|
|
19
|
+
select: InputClass;
|
|
20
|
+
optDelete: InputClass;
|
|
21
|
+
reload: InputClass;
|
|
22
|
+
maximum: InputClass;
|
|
23
|
+
export: InputClass;
|
|
24
|
+
constructor(router: Router);
|
|
25
|
+
itemsWidth: number;
|
|
26
|
+
options: InputClass[];
|
|
27
|
+
ngOnInit(): void;
|
|
28
|
+
allSelected(): boolean;
|
|
29
|
+
isSelected(): boolean;
|
|
30
|
+
selectAll(): void;
|
|
31
|
+
getOptions(): InputClass[];
|
|
32
|
+
setSortable(): void;
|
|
33
|
+
getRows(): any[];
|
|
34
|
+
getOptionModals(): InputClass[];
|
|
35
|
+
onChangeRows(e: any): void;
|
|
36
|
+
onConfirmShow(rowId: any): void;
|
|
37
|
+
changeSort(e: any, s: string): void;
|
|
38
|
+
report(type: string): void;
|
|
39
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ps-toolkit-ui",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@angular/common": "^10.1.6",
|
|
6
|
+
"@angular/core": "^10.1.6"
|
|
7
|
+
},
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"jalali-moment": "^3.3.10",
|
|
10
|
+
"jquery": "^3.5.1",
|
|
11
|
+
"lodash": "^4.17.21",
|
|
12
|
+
"tslib": "^2.0.0"
|
|
13
|
+
},
|
|
14
|
+
"main": "bundles/ps-toolkit-ui.umd.js",
|
|
15
|
+
"module": "fesm2015/ps-toolkit-ui.js",
|
|
16
|
+
"es2015": "fesm2015/ps-toolkit-ui.js",
|
|
17
|
+
"esm2015": "esm2015/ps-toolkit-ui.js",
|
|
18
|
+
"fesm2015": "fesm2015/ps-toolkit-ui.js",
|
|
19
|
+
"typings": "ps-toolkit-ui.d.ts",
|
|
20
|
+
"metadata": "ps-toolkit-ui.metadata.json",
|
|
21
|
+
"sideEffects": false
|
|
22
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './public-api';
|
|
5
|
+
export { SafeStylePipe as ɵi } from './lib/classes/safestyle.class';
|
|
6
|
+
export { FormSelectItemComponent as ɵa } from './lib/components/form/select/item/form.select.item.component';
|
|
7
|
+
export { FormTreeItemComponent as ɵf } from './lib/components/form/tree/item/form.tree.item.component';
|
|
8
|
+
export { LoginComponent as ɵj } from './lib/components/login/login.component';
|
|
9
|
+
export { NotificationComponent as ɵk } from './lib/components/notification/notification.component';
|
|
10
|
+
export { SidebarItemComponent as ɵc } from './lib/components/sidebar/item/sidebar.item.component';
|
|
11
|
+
export { TableLoadingComponent as ɵe } from './lib/components/table/loading/table.loading.component';
|
|
12
|
+
export { TablePaginationComponent as ɵb } from './lib/components/table/pagination/table.pagination.component';
|
|
13
|
+
export { TableReportComponent as ɵh } from './lib/components/table/report/table.report.component';
|
|
14
|
+
export { TableRowComponent as ɵg } from './lib/components/table/row/table.row.component';
|
|
15
|
+
export { PsToolkitUiConfigService as ɵd } from './lib/services/config.service';
|