fixa-admin 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/esm2022/lib/class/index.api.mjs +2 -0
- package/esm2022/lib/class/popover.mjs +28 -0
- package/esm2022/lib/components/captcha/captcha.component.mjs +56 -0
- package/esm2022/lib/components/grid/filter/date-filter.component.mjs +122 -0
- package/esm2022/lib/components/grid/filter/index.api.mjs +2 -0
- package/esm2022/lib/components/grid/grid.component.mjs +491 -0
- package/esm2022/lib/components/grid/render/action-button.component.mjs +26 -0
- package/esm2022/lib/components/index.api.mjs +6 -0
- package/esm2022/lib/components/map/map.component.mjs +134 -0
- package/esm2022/lib/components/spinner/spinner.component.mjs +14 -0
- package/esm2022/lib/directive/char-input.directive.mjs +37 -0
- package/esm2022/lib/directive/index.api.mjs +4 -0
- package/esm2022/lib/directive/mask.directive.mjs +58 -0
- package/esm2022/lib/directive/mask.mjs +78 -0
- package/esm2022/lib/directive/numeric-input.directive.mjs +44 -0
- package/esm2022/lib/guard/auth.guard.mjs +25 -0
- package/esm2022/lib/guard/index.api.mjs +2 -0
- package/esm2022/lib/layouts/blank/blank.layout.mjs +14 -0
- package/esm2022/lib/layouts/index.api.mjs +3 -0
- package/esm2022/lib/layouts/master/master.layout.mjs +53 -0
- package/esm2022/lib/models/index.api.mjs +2 -0
- package/esm2022/lib/models/shared.model.mjs +28 -0
- package/esm2022/lib/pipes/date.pipe.mjs +25 -0
- package/esm2022/lib/pipes/index.api.mjs +3 -0
- package/esm2022/lib/pipes/timer.pipe.mjs +30 -0
- package/esm2022/lib/services/confirm.service.mjs +39 -0
- package/esm2022/lib/services/dialog.service.mjs +65 -0
- package/esm2022/lib/services/form.service.mjs +22 -0
- package/esm2022/lib/services/index.api.mjs +6 -0
- package/esm2022/lib/services/shared.service.mjs +15 -0
- package/esm2022/lib/services/toast.service.mjs +21 -0
- package/esm2022/lib/shared.module.mjs +196 -0
- package/esm2022/public-api.mjs +14 -0
- package/esm2022/shared.mjs +5 -0
- package/fesm2022/shared.mjs +1558 -0
- package/fesm2022/shared.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/class/index.api.d.ts +1 -0
- package/lib/class/popover.d.ts +14 -0
- package/lib/components/captcha/captcha.component.d.ts +13 -0
- package/lib/components/grid/filter/date-filter.component.d.ts +24 -0
- package/lib/components/grid/filter/index.api.d.ts +1 -0
- package/lib/components/grid/grid.component.d.ts +64 -0
- package/lib/components/grid/render/action-button.component.d.ts +13 -0
- package/lib/components/index.api.d.ts +5 -0
- package/lib/components/map/map.component.d.ts +26 -0
- package/lib/components/spinner/spinner.component.d.ts +8 -0
- package/lib/directive/char-input.directive.d.ts +12 -0
- package/lib/directive/index.api.d.ts +3 -0
- package/lib/directive/mask.d.ts +19 -0
- package/lib/directive/mask.directive.d.ts +15 -0
- package/lib/directive/numeric-input.directive.d.ts +12 -0
- package/lib/guard/auth.guard.d.ts +10 -0
- package/lib/guard/index.api.d.ts +1 -0
- package/lib/layouts/blank/blank.layout.d.ts +8 -0
- package/lib/layouts/index.api.d.ts +2 -0
- package/lib/layouts/master/master.layout.d.ts +20 -0
- package/lib/models/index.api.d.ts +1 -0
- package/lib/models/shared.model.d.ts +120 -0
- package/lib/pipes/date.pipe.d.ts +7 -0
- package/lib/pipes/index.api.d.ts +2 -0
- package/lib/pipes/timer.pipe.d.ts +7 -0
- package/lib/services/confirm.service.d.ts +9 -0
- package/lib/services/dialog.service.d.ts +11 -0
- package/lib/services/form.service.d.ts +8 -0
- package/lib/services/index.api.d.ts +5 -0
- package/lib/services/shared.service.d.ts +8 -0
- package/lib/services/toast.service.d.ts +9 -0
- package/lib/shared.module.d.ts +41 -0
- package/package.json +43 -0
- package/public-api.d.ts +10 -0
- package/src/style.scss +9 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './shared.model';
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { NzButtonType } from "ng-zorro-antd/button";
|
|
2
|
+
export interface ToolbarItems {
|
|
3
|
+
icon?: string;
|
|
4
|
+
text: string;
|
|
5
|
+
code: 'insert' | 'refresh' | string;
|
|
6
|
+
class?: string;
|
|
7
|
+
type?: NzButtonType;
|
|
8
|
+
}
|
|
9
|
+
export interface ColumnItems {
|
|
10
|
+
field: string;
|
|
11
|
+
label: string;
|
|
12
|
+
filter?: boolean;
|
|
13
|
+
sortable?: boolean;
|
|
14
|
+
editable?: boolean;
|
|
15
|
+
editItems?: void;
|
|
16
|
+
filterItems?: any;
|
|
17
|
+
minWidth?: number;
|
|
18
|
+
searchField?: string;
|
|
19
|
+
type?: 'boolean' | 'enum' | 'string' | 'number' | 'select' | 'date' | 'price' | 'image';
|
|
20
|
+
}
|
|
21
|
+
export interface ActionItems {
|
|
22
|
+
icon: string;
|
|
23
|
+
code: string;
|
|
24
|
+
alt: string;
|
|
25
|
+
}
|
|
26
|
+
export interface DatasourceOutputModel {
|
|
27
|
+
items: any;
|
|
28
|
+
totalCount: number;
|
|
29
|
+
}
|
|
30
|
+
export interface GridActionOutput {
|
|
31
|
+
event: string;
|
|
32
|
+
data: any;
|
|
33
|
+
id: string;
|
|
34
|
+
}
|
|
35
|
+
export interface DialogBodyModel<T> {
|
|
36
|
+
title: string;
|
|
37
|
+
size?: 'sm' | 'md' | 'xl' | 'lg' | 'full';
|
|
38
|
+
data?: T;
|
|
39
|
+
disableFooter?: boolean;
|
|
40
|
+
}
|
|
41
|
+
export interface MenuItems {
|
|
42
|
+
title: string;
|
|
43
|
+
path: string;
|
|
44
|
+
icon?: string;
|
|
45
|
+
children?: MenuItems[];
|
|
46
|
+
}
|
|
47
|
+
export interface PolygonData {
|
|
48
|
+
name: string;
|
|
49
|
+
coordinates: number[][];
|
|
50
|
+
color: string;
|
|
51
|
+
editable: boolean;
|
|
52
|
+
data?: any;
|
|
53
|
+
}
|
|
54
|
+
export interface GridInputModel {
|
|
55
|
+
take: number;
|
|
56
|
+
skip: number;
|
|
57
|
+
filter: {
|
|
58
|
+
field: string;
|
|
59
|
+
value: any;
|
|
60
|
+
operator: FilterOperator;
|
|
61
|
+
logic: 'AND' | 'OR';
|
|
62
|
+
disable: boolean;
|
|
63
|
+
truncateDate: boolean;
|
|
64
|
+
ignoreCase: boolean;
|
|
65
|
+
filters: FilterGridItemsModel[];
|
|
66
|
+
};
|
|
67
|
+
sorts: {
|
|
68
|
+
field: string;
|
|
69
|
+
dir: string;
|
|
70
|
+
}[];
|
|
71
|
+
data: any;
|
|
72
|
+
}
|
|
73
|
+
export interface FilterGridItemsModel {
|
|
74
|
+
field: string;
|
|
75
|
+
value: any;
|
|
76
|
+
operator: FilterOperator;
|
|
77
|
+
logic: 'AND' | 'OR';
|
|
78
|
+
disable: boolean;
|
|
79
|
+
truncateDate: boolean;
|
|
80
|
+
ignoreCase: boolean;
|
|
81
|
+
filters: FilterGridItemsModel[];
|
|
82
|
+
}
|
|
83
|
+
export declare enum FilterOperator {
|
|
84
|
+
equals = "EQ",
|
|
85
|
+
notEqual = "NEQ",
|
|
86
|
+
lessThan = "LT",
|
|
87
|
+
lessThanOrEqual = "LTE",
|
|
88
|
+
greaterThan = "GT",
|
|
89
|
+
greaterThanOrEqual = "GTE",
|
|
90
|
+
startsWith = "STARTSWITH",
|
|
91
|
+
endsWith = "ENDSWITH",
|
|
92
|
+
inRange = "IN",
|
|
93
|
+
contains = "LIKE",
|
|
94
|
+
notContains = "NOTLIKE",
|
|
95
|
+
truncEqual = "TRUNC_EQ",
|
|
96
|
+
truncNotEqual = "TRUNC_NEQ",
|
|
97
|
+
truncGreaterThanEqual = "TRUNC_GTE",
|
|
98
|
+
truncGreaterThan = "TRUNC_GT",
|
|
99
|
+
truncLessThanOr = "TRUNC_LT",
|
|
100
|
+
truncLessThanOrEqual = "TRUNC_LTE"
|
|
101
|
+
}
|
|
102
|
+
export declare class SelectModel {
|
|
103
|
+
items: SelectItemsModel[];
|
|
104
|
+
loading?: boolean;
|
|
105
|
+
page?: number;
|
|
106
|
+
pageSize?: number;
|
|
107
|
+
totalCount?: number;
|
|
108
|
+
}
|
|
109
|
+
export interface SelectItemsModel {
|
|
110
|
+
id: any;
|
|
111
|
+
title: string;
|
|
112
|
+
data?: any;
|
|
113
|
+
}
|
|
114
|
+
export interface GridRequestParam {
|
|
115
|
+
parentNode: any;
|
|
116
|
+
}
|
|
117
|
+
export interface PolygonEventEmiter {
|
|
118
|
+
lat: number;
|
|
119
|
+
lng: number;
|
|
120
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class JDatePipe implements PipeTransform {
|
|
4
|
+
transform(value: string, time?: boolean): string;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<JDatePipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<JDatePipe, "jdate", false>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from "@angular/core";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class TimerPipe implements PipeTransform {
|
|
4
|
+
transform(value: number): string;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimerPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<TimerPipe, "timer", false>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { NzModalService } from 'ng-zorro-antd/modal';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ConfirmService {
|
|
4
|
+
private _modal;
|
|
5
|
+
constructor(_modal: NzModalService);
|
|
6
|
+
confirm(action: () => Promise<any>, title?: string): Promise<void>;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmService, never>;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ConfirmService>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ComponentType } from '@angular/cdk/portal';
|
|
2
|
+
import { NzModalRef, NzModalService } from 'ng-zorro-antd/modal';
|
|
3
|
+
import { DialogBodyModel } from '../models/shared.model';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class DialogService {
|
|
6
|
+
private _modal;
|
|
7
|
+
constructor(_modal: NzModalService);
|
|
8
|
+
open<T>(component: ComponentType<any>, body: DialogBodyModel<T>): NzModalRef;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DialogService, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DialogService>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FormGroup } from '@angular/forms';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class FormService {
|
|
4
|
+
constructor();
|
|
5
|
+
validateForm(form: FormGroup): void;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormService, never>;
|
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<FormService>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { MenuItems } from '../models/shared.model';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SharedService {
|
|
4
|
+
constructor();
|
|
5
|
+
menuItems: MenuItems[];
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SharedService, never>;
|
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SharedService>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { NzMessageService } from 'ng-zorro-antd/message';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ToastService {
|
|
4
|
+
private _message;
|
|
5
|
+
constructor(_message: NzMessageService);
|
|
6
|
+
show(message: any, type: "success" | "info" | "warning" | "error" | "loading"): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ToastService, never>;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ToastService>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { TranslateHttpLoader } from '@ngx-translate/http-loader';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "./layouts/master/master.layout";
|
|
5
|
+
import * as i2 from "./layouts/blank/blank.layout";
|
|
6
|
+
import * as i3 from "./components/grid/grid.component";
|
|
7
|
+
import * as i4 from "./components/grid/render/action-button.component";
|
|
8
|
+
import * as i5 from "./components/captcha/captcha.component";
|
|
9
|
+
import * as i6 from "./components/map/map.component";
|
|
10
|
+
import * as i7 from "./components/spinner/spinner.component";
|
|
11
|
+
import * as i8 from "./components/grid/filter/date-filter.component";
|
|
12
|
+
import * as i9 from "./directive/numeric-input.directive";
|
|
13
|
+
import * as i10 from "./directive/char-input.directive";
|
|
14
|
+
import * as i11 from "./directive/mask.directive";
|
|
15
|
+
import * as i12 from "./pipes/date.pipe";
|
|
16
|
+
import * as i13 from "@angular/router";
|
|
17
|
+
import * as i14 from "@angular/common/http";
|
|
18
|
+
import * as i15 from "@angular/common";
|
|
19
|
+
import * as i16 from "@ag-grid-community/angular";
|
|
20
|
+
import * as i17 from "@angular/cdk/menu";
|
|
21
|
+
import * as i18 from "ng-zorro-antd/layout";
|
|
22
|
+
import * as i19 from "ng-zorro-antd/menu";
|
|
23
|
+
import * as i20 from "ng-zorro-antd/icon";
|
|
24
|
+
import * as i21 from "ng-zorro-antd/button";
|
|
25
|
+
import * as i22 from "ng-zorro-antd/modal";
|
|
26
|
+
import * as i23 from "ng-zorro-antd/message";
|
|
27
|
+
import * as i24 from "ng-zorro-antd/tooltip";
|
|
28
|
+
import * as i25 from "ng-zorro-antd/tabs";
|
|
29
|
+
import * as i26 from "ng-zorro-antd/tree-view";
|
|
30
|
+
import * as i27 from "ng-zorro-antd/spin";
|
|
31
|
+
import * as i28 from "@angular/forms";
|
|
32
|
+
import * as i29 from "ng-zorro-antd/input";
|
|
33
|
+
import * as i30 from "ng-zorro-antd/form";
|
|
34
|
+
import * as i31 from "@ngx-translate/core";
|
|
35
|
+
export declare function HttpLoaderFactory(http: HttpClient): TranslateHttpLoader;
|
|
36
|
+
export declare function initializeApp(): Promise<any>;
|
|
37
|
+
export declare class SharedModule {
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SharedModule, never>;
|
|
39
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedModule, [typeof i1.MasterLayout, typeof i2.BlankLayout, typeof i3.GridComponent, typeof i4.ActionsCellRenderer, typeof i5.CaptchaComponent, typeof i6.MapComponent, typeof i7.SpinnerComponent, typeof i8.DateFilter, typeof i9.EnglishNumberInputDirective, typeof i10.CharInputDirective, typeof i11.MaskDirective, typeof i12.JDatePipe], [typeof i13.RouterModule, typeof i14.HttpClientModule, typeof i15.CommonModule, typeof i16.AgGridModule, typeof i14.HttpClientModule, typeof i17.CdkMenuModule, typeof i18.NzLayoutModule, typeof i19.NzMenuModule, typeof i20.NzIconModule, typeof i21.NzButtonModule, typeof i22.NzModalModule, typeof i23.NzMessageModule, typeof i24.NzToolTipModule, typeof i25.NzTabsModule, typeof i26.NzTreeViewModule, typeof i27.NzSpinModule, typeof i28.FormsModule, typeof i29.NzInputModule, typeof i30.NzFormModule, typeof i31.TranslateModule], [typeof i1.MasterLayout, typeof i2.BlankLayout, typeof i3.GridComponent, typeof i4.ActionsCellRenderer, typeof i5.CaptchaComponent, typeof i6.MapComponent, typeof i7.SpinnerComponent, typeof i8.DateFilter, typeof i9.EnglishNumberInputDirective, typeof i10.CharInputDirective, typeof i11.MaskDirective, typeof i12.JDatePipe]>;
|
|
40
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SharedModule>;
|
|
41
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "fixa-admin",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@angular/common": "^17.3.0",
|
|
6
|
+
"@angular/core": "^17.3.0",
|
|
7
|
+
"@ag-grid-community/angular": "^32.2.2",
|
|
8
|
+
"@ag-grid-community/client-side-row-model": "^32.2.2",
|
|
9
|
+
"@ag-grid-community/core": "^32.2.2",
|
|
10
|
+
"@ag-grid-community/styles": "^32.2.2",
|
|
11
|
+
"@ag-grid-enterprise/advanced-filter": "^32.2.2",
|
|
12
|
+
"@ag-grid-enterprise/core": "^32.2.2",
|
|
13
|
+
"@ag-grid-enterprise/master-detail": "^32.2.2",
|
|
14
|
+
"@ag-grid-enterprise/multi-filter": "^32.2.2",
|
|
15
|
+
"@ag-grid-enterprise/row-grouping": "^32.2.2",
|
|
16
|
+
"@ag-grid-enterprise/server-side-row-model": "^32.2.2",
|
|
17
|
+
"@ag-grid-enterprise/set-filter": "^32.2.2",
|
|
18
|
+
"@angular/animations": "^17.3.0",
|
|
19
|
+
"@angular/cdk": "^17.3.10",
|
|
20
|
+
"@angular/ssr": "^17.3.10",
|
|
21
|
+
"@ngx-translate/core": "^15.0.0",
|
|
22
|
+
"@ngx-translate/http-loader": "^8.0.0",
|
|
23
|
+
"jalali-moment": "^3.3.11",
|
|
24
|
+
"ng-zorro-antd": "^17.4.1"
|
|
25
|
+
},
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"tslib": "^2.3.0"
|
|
28
|
+
},
|
|
29
|
+
"sideEffects": false,
|
|
30
|
+
"module": "fesm2022/shared.mjs",
|
|
31
|
+
"typings": "index.d.ts",
|
|
32
|
+
"exports": {
|
|
33
|
+
"./package.json": {
|
|
34
|
+
"default": "./package.json"
|
|
35
|
+
},
|
|
36
|
+
".": {
|
|
37
|
+
"types": "./index.d.ts",
|
|
38
|
+
"esm2022": "./esm2022/shared.mjs",
|
|
39
|
+
"esm": "./esm2022/shared.mjs",
|
|
40
|
+
"default": "./fesm2022/shared.mjs"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
package/public-api.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './lib/services/index.api';
|
|
2
|
+
export * from './lib/shared.module';
|
|
3
|
+
export * from './lib/layouts/index.api';
|
|
4
|
+
export * from './lib/components/index.api';
|
|
5
|
+
export * from './lib/models/index.api';
|
|
6
|
+
export * from './lib/class/index.api';
|
|
7
|
+
export * from './lib/guard/index.api';
|
|
8
|
+
export * from './lib/pipes/index.api';
|
|
9
|
+
export * from './lib/directive/index.api';
|
|
10
|
+
export * from './lib/components/grid/filter/index.api';
|