ps-toolkit-ui 1.20.91 → 1.21.32
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/ps-toolkit-ui.mjs +9415 -0
- package/fesm2022/ps-toolkit-ui.mjs.map +1 -0
- package/package.json +16 -12
- package/types/ps-toolkit-ui.d.ts +1671 -0
- package/bundles/ps-toolkit-ui.umd.js +0 -10321
- package/bundles/ps-toolkit-ui.umd.js.map +0 -1
- package/bundles/ps-toolkit-ui.umd.min.js +0 -2
- package/bundles/ps-toolkit-ui.umd.min.js.map +0 -1
- package/esm2015/lib/classes/addModal.class.js +0 -36
- package/esm2015/lib/classes/chart.class.js +0 -165
- package/esm2015/lib/classes/currentDataClass.js +0 -17
- package/esm2015/lib/classes/enum.class.js +0 -253
- package/esm2015/lib/classes/excel.class.js +0 -56
- package/esm2015/lib/classes/form.class.js +0 -667
- package/esm2015/lib/classes/header.class.js +0 -16
- package/esm2015/lib/classes/helper.class.js +0 -650
- package/esm2015/lib/classes/lang.class.js +0 -35
- package/esm2015/lib/classes/login.class.js +0 -29
- package/esm2015/lib/classes/modal.class.js +0 -49
- package/esm2015/lib/classes/permission.class.js +0 -63
- package/esm2015/lib/classes/request.class.js +0 -155
- package/esm2015/lib/classes/safehtml.class.js +0 -17
- package/esm2015/lib/classes/safestyle.class.js +0 -17
- package/esm2015/lib/classes/sidebar.class.js +0 -16
- package/esm2015/lib/classes/steps.class.js +0 -45
- package/esm2015/lib/classes/string.class.js +0 -251
- package/esm2015/lib/classes/table.class.js +0 -593
- package/esm2015/lib/components/accordion/accordion.component.js +0 -45
- package/esm2015/lib/components/alert/alert.component.js +0 -39
- package/esm2015/lib/components/base.component.js +0 -54
- package/esm2015/lib/components/calendar/calendar.component.js +0 -98
- package/esm2015/lib/components/chart/chart.component.js +0 -17
- package/esm2015/lib/components/clock/clock.component.js +0 -33
- package/esm2015/lib/components/confirm/confirm.component.js +0 -50
- package/esm2015/lib/components/error/error.component.js +0 -26
- package/esm2015/lib/components/footer/footer.component.js +0 -23
- package/esm2015/lib/components/form/bank-card/form.bank-card.component.js +0 -200
- package/esm2015/lib/components/form/button/form.button.component.js +0 -68
- package/esm2015/lib/components/form/checkbox/form.checkbox.component.js +0 -67
- package/esm2015/lib/components/form/ckeditor/form.ckeditor.component.js +0 -90
- package/esm2015/lib/components/form/date/form.date.component.js +0 -314
- package/esm2015/lib/components/form/datetime/form.datetime.component.js +0 -106
- package/esm2015/lib/components/form/file/form.file.component.js +0 -124
- package/esm2015/lib/components/form/finger/form.finger.component.js +0 -140
- package/esm2015/lib/components/form/hidden/form.hidden.component.js +0 -31
- package/esm2015/lib/components/form/icon/form.icon.component.js +0 -84
- package/esm2015/lib/components/form/index/form.component.js +0 -51
- package/esm2015/lib/components/form/label/form.label.component.js +0 -32
- package/esm2015/lib/components/form/plaque/form.plaque.component.js +0 -258
- package/esm2015/lib/components/form/plaque/select/form.plaque.select.component.js +0 -468
- package/esm2015/lib/components/form/radio/form.radio.component.js +0 -82
- package/esm2015/lib/components/form/select/form.select.component.js +0 -452
- package/esm2015/lib/components/form/select/item/form.select.item.component.js +0 -27
- package/esm2015/lib/components/form/slide/form.slide.component.js +0 -84
- package/esm2015/lib/components/form/star/form.star.component.js +0 -66
- package/esm2015/lib/components/form/table/form.table.component.js +0 -96
- package/esm2015/lib/components/form/tag/form.tag.component.js +0 -100
- package/esm2015/lib/components/form/textarea/form.textarea.component.js +0 -83
- package/esm2015/lib/components/form/textbox/form.textbox.component.js +0 -227
- package/esm2015/lib/components/form/time/form.time.component.js +0 -149
- package/esm2015/lib/components/form/toggle/form.toggle.component.js +0 -72
- package/esm2015/lib/components/form/tree/form.tree.component.js +0 -157
- package/esm2015/lib/components/form/tree/item/form.tree.item.component.js +0 -50
- package/esm2015/lib/components/form/uploader/form.uploader.component.js +0 -159
- package/esm2015/lib/components/form/vehicle/form.vehicle.component.js +0 -104
- package/esm2015/lib/components/form/vehicle/search/form.vehicle.search.component.js +0 -237
- package/esm2015/lib/components/header/header.component.js +0 -28
- package/esm2015/lib/components/header/sub/sub.header.component.js +0 -14
- package/esm2015/lib/components/layout/layout.component.js +0 -18
- package/esm2015/lib/components/loading/loading.component.js +0 -22
- package/esm2015/lib/components/login/login.component.js +0 -159
- package/esm2015/lib/components/modal/modal.component.js +0 -25
- package/esm2015/lib/components/notfound/notfound.component.js +0 -29
- package/esm2015/lib/components/notification/notification.component.js +0 -14
- package/esm2015/lib/components/sidebar/item/sidebar.item.component.js +0 -55
- package/esm2015/lib/components/sidebar/sidebar.component.js +0 -98
- package/esm2015/lib/components/steps/steps.component.js +0 -88
- package/esm2015/lib/components/table/loading/table.loading.component.js +0 -17
- package/esm2015/lib/components/table/pagination/table.pagination.component.js +0 -84
- package/esm2015/lib/components/table/row/table.row.component.js +0 -450
- package/esm2015/lib/components/table/table.component.js +0 -240
- package/esm2015/lib/components/tooltip/tooltip.component.js +0 -19
- package/esm2015/lib/ps-toolkit-ui.module.js +0 -105
- package/esm2015/lib/services/config.service.js +0 -14
- package/esm2015/lib/services/sidebar.service.js +0 -21
- package/esm2015/ps-toolkit-ui.js +0 -21
- package/esm2015/public-api.js +0 -64
- package/fesm2015/ps-toolkit-ui.js +0 -8926
- package/fesm2015/ps-toolkit-ui.js.map +0 -1
- package/lib/classes/addModal.class.d.ts +0 -14
- package/lib/classes/chart.class.d.ts +0 -15
- package/lib/classes/currentDataClass.d.ts +0 -10
- package/lib/classes/enum.class.d.ts +0 -221
- package/lib/classes/excel.class.d.ts +0 -8
- package/lib/classes/form.class.d.ts +0 -193
- package/lib/classes/header.class.d.ts +0 -8
- package/lib/classes/helper.class.d.ts +0 -50
- package/lib/classes/lang.class.d.ts +0 -5
- package/lib/classes/login.class.d.ts +0 -21
- package/lib/classes/modal.class.d.ts +0 -19
- package/lib/classes/permission.class.d.ts +0 -35
- package/lib/classes/request.class.d.ts +0 -10
- package/lib/classes/safehtml.class.d.ts +0 -7
- package/lib/classes/safestyle.class.d.ts +0 -7
- package/lib/classes/sidebar.class.d.ts +0 -14
- package/lib/classes/steps.class.d.ts +0 -31
- package/lib/classes/string.class.d.ts +0 -249
- package/lib/classes/table.class.d.ts +0 -88
- package/lib/components/accordion/accordion.component.d.ts +0 -7
- package/lib/components/alert/alert.component.d.ts +0 -10
- package/lib/components/base.component.d.ts +0 -17
- package/lib/components/calendar/calendar.component.d.ts +0 -26
- package/lib/components/chart/chart.component.d.ts +0 -5
- package/lib/components/clock/clock.component.d.ts +0 -11
- package/lib/components/confirm/confirm.component.d.ts +0 -14
- package/lib/components/error/error.component.d.ts +0 -7
- package/lib/components/footer/footer.component.d.ts +0 -6
- package/lib/components/form/bank-card/form.bank-card.component.d.ts +0 -28
- package/lib/components/form/button/form.button.component.d.ts +0 -15
- package/lib/components/form/checkbox/form.checkbox.component.d.ts +0 -14
- package/lib/components/form/ckeditor/form.ckeditor.component.d.ts +0 -14
- package/lib/components/form/date/form.date.component.d.ts +0 -45
- package/lib/components/form/datetime/form.datetime.component.d.ts +0 -13
- package/lib/components/form/file/form.file.component.d.ts +0 -18
- package/lib/components/form/finger/form.finger.component.d.ts +0 -15
- package/lib/components/form/hidden/form.hidden.component.d.ts +0 -7
- package/lib/components/form/icon/form.icon.component.d.ts +0 -16
- package/lib/components/form/index/form.component.d.ts +0 -10
- package/lib/components/form/label/form.label.component.d.ts +0 -8
- package/lib/components/form/plaque/form.plaque.component.d.ts +0 -21
- package/lib/components/form/plaque/select/form.plaque.select.component.d.ts +0 -38
- package/lib/components/form/radio/form.radio.component.d.ts +0 -13
- package/lib/components/form/select/form.select.component.d.ts +0 -45
- package/lib/components/form/select/item/form.select.item.component.d.ts +0 -12
- package/lib/components/form/slide/form.slide.component.d.ts +0 -13
- package/lib/components/form/star/form.star.component.d.ts +0 -13
- package/lib/components/form/table/form.table.component.d.ts +0 -9
- package/lib/components/form/tag/form.tag.component.d.ts +0 -16
- package/lib/components/form/textarea/form.textarea.component.d.ts +0 -13
- package/lib/components/form/textbox/form.textbox.component.d.ts +0 -20
- package/lib/components/form/time/form.time.component.d.ts +0 -25
- package/lib/components/form/toggle/form.toggle.component.d.ts +0 -13
- package/lib/components/form/tree/form.tree.component.d.ts +0 -21
- package/lib/components/form/tree/item/form.tree.item.component.d.ts +0 -19
- package/lib/components/form/uploader/form.uploader.component.d.ts +0 -21
- package/lib/components/form/vehicle/form.vehicle.component.d.ts +0 -18
- package/lib/components/form/vehicle/search/form.vehicle.search.component.d.ts +0 -22
- package/lib/components/header/header.component.d.ts +0 -10
- package/lib/components/header/sub/sub.header.component.d.ts +0 -3
- package/lib/components/layout/layout.component.d.ts +0 -7
- package/lib/components/loading/loading.component.d.ts +0 -5
- package/lib/components/login/login.component.d.ts +0 -15
- package/lib/components/modal/modal.component.d.ts +0 -9
- package/lib/components/notfound/notfound.component.d.ts +0 -8
- package/lib/components/notification/notification.component.d.ts +0 -3
- package/lib/components/sidebar/item/sidebar.item.component.d.ts +0 -14
- package/lib/components/sidebar/sidebar.component.d.ts +0 -22
- package/lib/components/steps/steps.component.d.ts +0 -16
- package/lib/components/table/loading/table.loading.component.d.ts +0 -5
- package/lib/components/table/pagination/table.pagination.component.d.ts +0 -15
- package/lib/components/table/row/table.row.component.d.ts +0 -44
- package/lib/components/table/table.component.d.ts +0 -43
- package/lib/components/tooltip/tooltip.component.d.ts +0 -5
- package/lib/ps-toolkit-ui.module.d.ts +0 -4
- package/lib/services/config.service.d.ts +0 -6
- package/lib/services/sidebar.service.d.ts +0 -9
- package/ps-toolkit-ui.d.ts +0 -20
- package/ps-toolkit-ui.metadata.json +0 -1
- package/public-api.d.ts +0 -60
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { InputClass } from './form.class';
|
|
2
|
-
import { TableClass } from './table.class';
|
|
3
|
-
import { ModalClass } from './modal.class';
|
|
4
|
-
import { PermissionClass } from './permission.class';
|
|
5
|
-
export declare class AddModalClass {
|
|
6
|
-
environment: any;
|
|
7
|
-
l: (k: any, v?: any) => string;
|
|
8
|
-
permission: PermissionClass;
|
|
9
|
-
constructor(environment: any, l: (k: any, v?: any) => string, permission?: PermissionClass);
|
|
10
|
-
modal: ModalClass;
|
|
11
|
-
getModalTable(table: TableClass): void;
|
|
12
|
-
getInpModal(inp: InputClass, success?: (r: any) => void): void;
|
|
13
|
-
setModalForm(name: string, manage?: boolean, success?: (r: any) => void): void;
|
|
14
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Chart } from 'highcharts';
|
|
2
|
-
export declare class ChartClass {
|
|
3
|
-
constructor(l: (k: any, v?: any) => string, name: string);
|
|
4
|
-
l: (k: any, v?: any) => string;
|
|
5
|
-
name: string;
|
|
6
|
-
chart: Chart;
|
|
7
|
-
style: {};
|
|
8
|
-
loading: boolean;
|
|
9
|
-
empty: boolean;
|
|
10
|
-
options: {};
|
|
11
|
-
setChart(cOpt: any, categories?: any[]): void;
|
|
12
|
-
destroy(): void;
|
|
13
|
-
getSymbol(point: any): string;
|
|
14
|
-
merge(b: any, c: any): any;
|
|
15
|
-
}
|
|
@@ -1,221 +0,0 @@
|
|
|
1
|
-
export declare class EnumUtils {
|
|
2
|
-
static getValues(enumObj: any): any[];
|
|
3
|
-
static getKeyByValue(enumObj: any, v: any): any[];
|
|
4
|
-
static getKeys(enumObj: any): any[];
|
|
5
|
-
static getKeysAndValues(enumObj: any): any[];
|
|
6
|
-
}
|
|
7
|
-
export declare enum InputError {
|
|
8
|
-
Required = "Required",
|
|
9
|
-
Invalid = "Invalid",
|
|
10
|
-
Length = "Length",
|
|
11
|
-
MinLength = "MinLength",
|
|
12
|
-
MaxLength = "MaxLength",
|
|
13
|
-
MinAmount = "MinAmount",
|
|
14
|
-
MaxAmount = "MaxAmount",
|
|
15
|
-
Expired = "Expired",
|
|
16
|
-
Error = "Error",
|
|
17
|
-
NotMatch = "NotMatch",
|
|
18
|
-
NotAllowed = "NotAllowed",
|
|
19
|
-
MaxContent = "MaxContent",
|
|
20
|
-
Exist = "Exist",
|
|
21
|
-
NotExist = "NotExist",
|
|
22
|
-
Wrong = "Wrong",
|
|
23
|
-
Upload = "Upload"
|
|
24
|
-
}
|
|
25
|
-
export declare enum InputType {
|
|
26
|
-
Text = 0,
|
|
27
|
-
Password = 1,
|
|
28
|
-
Mobile = 2,
|
|
29
|
-
Phone = 3,
|
|
30
|
-
Email = 4,
|
|
31
|
-
NationalCode = 5,
|
|
32
|
-
NationalNum = 6,
|
|
33
|
-
NationalCodeNum = 7,
|
|
34
|
-
EconomicNum = 8,
|
|
35
|
-
PostalCode = 9,
|
|
36
|
-
Sheba = 10,
|
|
37
|
-
Number = 11,
|
|
38
|
-
Select = 12,
|
|
39
|
-
SelectSearch = 13,
|
|
40
|
-
SelectSearchRadio = 14,
|
|
41
|
-
SelectAutoComplete = 15,
|
|
42
|
-
Date = 16,
|
|
43
|
-
Month = 17,
|
|
44
|
-
Year = 18,
|
|
45
|
-
Time = 19,
|
|
46
|
-
DateTime = 20,
|
|
47
|
-
Check = 21,
|
|
48
|
-
TextArea = 22,
|
|
49
|
-
Label = 23,
|
|
50
|
-
Button = 24,
|
|
51
|
-
Submit = 25,
|
|
52
|
-
Icon = 26,
|
|
53
|
-
File = 27,
|
|
54
|
-
Url = 28,
|
|
55
|
-
Price = 29,
|
|
56
|
-
Radio = 30,
|
|
57
|
-
Tree = 31,
|
|
58
|
-
TreeRadio = 32,
|
|
59
|
-
Plaque = 33,
|
|
60
|
-
PlaqueM = 34,
|
|
61
|
-
PlaqueF = 35,
|
|
62
|
-
PlaqueG = 36,
|
|
63
|
-
SelectAutoCompletePlaque = 37,
|
|
64
|
-
SelectAutoCompletePlaqueM = 38,
|
|
65
|
-
SelectAutoCompletePlaqueF = 39,
|
|
66
|
-
SelectAutoCompletePlaqueG = 40,
|
|
67
|
-
BankCard = 41,
|
|
68
|
-
Constant = 42,
|
|
69
|
-
Hidden = 43,
|
|
70
|
-
Table = 44,
|
|
71
|
-
Tag = 45,
|
|
72
|
-
VehicleSearch = 46,
|
|
73
|
-
Vehicle = 47,
|
|
74
|
-
Finger = 48,
|
|
75
|
-
Color = 49,
|
|
76
|
-
Star = 50,
|
|
77
|
-
Toggle = 51,
|
|
78
|
-
BillNumber = 52,
|
|
79
|
-
Ckeditor = 53,
|
|
80
|
-
Uploader = 54,
|
|
81
|
-
Slide = 55,
|
|
82
|
-
Username = 56
|
|
83
|
-
}
|
|
84
|
-
export declare enum OperationEnum {
|
|
85
|
-
All = -1,
|
|
86
|
-
Insert = 1,
|
|
87
|
-
Update = 2,
|
|
88
|
-
Delete = 3
|
|
89
|
-
}
|
|
90
|
-
export declare enum Method {
|
|
91
|
-
Get = 0,
|
|
92
|
-
Post = 1,
|
|
93
|
-
Delete = 2,
|
|
94
|
-
Put = 3,
|
|
95
|
-
Options = 4,
|
|
96
|
-
Patch = 5
|
|
97
|
-
}
|
|
98
|
-
export declare enum TableCollType {
|
|
99
|
-
Text = 0,
|
|
100
|
-
Date = 1,
|
|
101
|
-
Time = 2,
|
|
102
|
-
DateTime = 3,
|
|
103
|
-
DateDif = 4,
|
|
104
|
-
DateRemain = 5,
|
|
105
|
-
Url = 6,
|
|
106
|
-
Image = 7,
|
|
107
|
-
Function = 8,
|
|
108
|
-
Price = 9,
|
|
109
|
-
Plaque = 10,
|
|
110
|
-
PlaqueText = 11,
|
|
111
|
-
FileSize = 12,
|
|
112
|
-
Bool = 13,
|
|
113
|
-
Options = 14,
|
|
114
|
-
Color = 15,
|
|
115
|
-
Number = 16,
|
|
116
|
-
Files = 17,
|
|
117
|
-
Month = 18,
|
|
118
|
-
Year = 19
|
|
119
|
-
}
|
|
120
|
-
export declare enum TableExportType {
|
|
121
|
-
List = "list",
|
|
122
|
-
Print = "print",
|
|
123
|
-
Excel = "excel",
|
|
124
|
-
Pdf = "pdf"
|
|
125
|
-
}
|
|
126
|
-
export declare enum UserType {
|
|
127
|
-
All = 0,
|
|
128
|
-
Admin = 1,
|
|
129
|
-
User = 2
|
|
130
|
-
}
|
|
131
|
-
export declare enum StatusEnum {
|
|
132
|
-
All = -1,
|
|
133
|
-
Active = 0,
|
|
134
|
-
DeActive = 1,
|
|
135
|
-
Delete = 2,
|
|
136
|
-
Report = 3
|
|
137
|
-
}
|
|
138
|
-
export declare enum PaymentStatusEnum {
|
|
139
|
-
Returned = -1,
|
|
140
|
-
All = 0,
|
|
141
|
-
Success = 100,
|
|
142
|
-
NOK = 102,
|
|
143
|
-
Request = 103,
|
|
144
|
-
Notfound = 104,
|
|
145
|
-
NotRequest = 105,
|
|
146
|
-
NotfoundPackage = 106
|
|
147
|
-
}
|
|
148
|
-
export declare enum ResultStatusEnum {
|
|
149
|
-
Failed = 0,
|
|
150
|
-
Success = 1,
|
|
151
|
-
Unauthorized = 2,
|
|
152
|
-
NotPermission = 3,
|
|
153
|
-
NotAccess = 4,
|
|
154
|
-
NotRegistered = 5,
|
|
155
|
-
ExpiredRegistered = 6,
|
|
156
|
-
InvalidIp = 7,
|
|
157
|
-
NoCredit = 8
|
|
158
|
-
}
|
|
159
|
-
export declare enum PermissionTypeEnum {
|
|
160
|
-
Form = -1,
|
|
161
|
-
Item = 0,
|
|
162
|
-
Access = 1,
|
|
163
|
-
Option = 2
|
|
164
|
-
}
|
|
165
|
-
export declare enum PermissionAccessTypeEnum {
|
|
166
|
-
List = 1,
|
|
167
|
-
Insert = 2,
|
|
168
|
-
Update = 3,
|
|
169
|
-
Delete = 4,
|
|
170
|
-
Report = 5
|
|
171
|
-
}
|
|
172
|
-
export declare enum PermissionInputActionEnum {
|
|
173
|
-
None = 0,
|
|
174
|
-
OnClick = 1,
|
|
175
|
-
Link = 2,
|
|
176
|
-
LinkNewTab = 3,
|
|
177
|
-
File = 4,
|
|
178
|
-
Modal = 5,
|
|
179
|
-
Confirm = 6,
|
|
180
|
-
Input = 7
|
|
181
|
-
}
|
|
182
|
-
export declare enum PermissionInputTypeEnum {
|
|
183
|
-
Icon = 0,
|
|
184
|
-
Button = 1
|
|
185
|
-
}
|
|
186
|
-
export declare enum VehicleType {
|
|
187
|
-
Driver = -2,
|
|
188
|
-
Fingerprint = -1,
|
|
189
|
-
Car = 1,
|
|
190
|
-
Motorcycle = 2,
|
|
191
|
-
Airplane = 3,
|
|
192
|
-
Train = 4,
|
|
193
|
-
Ship = 5,
|
|
194
|
-
CarF = 6,
|
|
195
|
-
CarG = 7
|
|
196
|
-
}
|
|
197
|
-
export declare enum TableOptionType {
|
|
198
|
-
Hidden = 1,
|
|
199
|
-
Show = 2,
|
|
200
|
-
Group = 3
|
|
201
|
-
}
|
|
202
|
-
export declare enum TableRowStatus {
|
|
203
|
-
Unread = 1
|
|
204
|
-
}
|
|
205
|
-
export declare enum FileIcons {
|
|
206
|
-
jpeg = "fad fa-file-image",
|
|
207
|
-
jpg = "fad fa-file-image",
|
|
208
|
-
png = "fad fa-file-image",
|
|
209
|
-
doc = "fad fa-file-word",
|
|
210
|
-
docx = "fad fa-file-word",
|
|
211
|
-
xls = "fad fa-file-excel",
|
|
212
|
-
xlsx = "fad fa-file-excel",
|
|
213
|
-
csv = "fad fa-file-csv",
|
|
214
|
-
ppt = "fad fa-file-powerpoint",
|
|
215
|
-
pptx = "fad fa-file-powerpoint",
|
|
216
|
-
txt = "fad fa-file-lines",
|
|
217
|
-
pdf = "fad fa-file-pdf",
|
|
218
|
-
file = "fad fa-file",
|
|
219
|
-
zip = "fad fa-file-zipper",
|
|
220
|
-
rar = "fad fa-file-zipper"
|
|
221
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare class ExcelClass {
|
|
2
|
-
constructor();
|
|
3
|
-
exportAsExcelFile(json: any[], excelFileName: string, opts?: any): void;
|
|
4
|
-
getExcelData(json: any[], excelFileName: string): Blob;
|
|
5
|
-
private saveAsExcelFile;
|
|
6
|
-
private saveAsCsvFile;
|
|
7
|
-
exportAsCsvFile(json: any[], fileName: string): void;
|
|
8
|
-
}
|
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
import { InputError, InputType, Method } from './enum.class';
|
|
2
|
-
import { TableClass } from './table.class';
|
|
3
|
-
import { ModalClass } from './modal.class';
|
|
4
|
-
import { ChartClass } from './chart.class';
|
|
5
|
-
export declare class Progress {
|
|
6
|
-
constructor(secs: number);
|
|
7
|
-
secs: number;
|
|
8
|
-
remainSecs: number;
|
|
9
|
-
percent: number;
|
|
10
|
-
interVal: any;
|
|
11
|
-
onEnd: () => void;
|
|
12
|
-
onStart: () => void;
|
|
13
|
-
onTick: (m: number, s: number) => void;
|
|
14
|
-
start: () => void;
|
|
15
|
-
}
|
|
16
|
-
export declare class FormClass {
|
|
17
|
-
constructor(environment: any, l: (k: any, v?: any) => string, name?: string, permission?: boolean, url?: string, cls?: string);
|
|
18
|
-
l: (k: any, v?: any) => string;
|
|
19
|
-
permission: boolean;
|
|
20
|
-
environment: any;
|
|
21
|
-
name: string;
|
|
22
|
-
isEdit: boolean;
|
|
23
|
-
subName: string;
|
|
24
|
-
id: string;
|
|
25
|
-
class: string;
|
|
26
|
-
baseUrl: string;
|
|
27
|
-
url: string;
|
|
28
|
-
method: Method;
|
|
29
|
-
loading: boolean;
|
|
30
|
-
style: {};
|
|
31
|
-
onTop: boolean;
|
|
32
|
-
displayLabel: boolean;
|
|
33
|
-
request: any;
|
|
34
|
-
inputs: InputClass[];
|
|
35
|
-
onSuccessBase: (result: any) => void;
|
|
36
|
-
onSuccess: (result: any) => void;
|
|
37
|
-
onFailed: (result: any) => void;
|
|
38
|
-
onLoad: (result: any) => void;
|
|
39
|
-
onBeforeSubmit: () => boolean;
|
|
40
|
-
onHideModal: () => void;
|
|
41
|
-
onShowModal: () => void;
|
|
42
|
-
loadData(url: any): void;
|
|
43
|
-
focus(): void;
|
|
44
|
-
submit(onSubmit?: any): void;
|
|
45
|
-
check(): boolean;
|
|
46
|
-
clear(insertAccess?: boolean): void;
|
|
47
|
-
clearInputs(): void;
|
|
48
|
-
setButtons(formOnTop: any, edit: boolean, insertAccess?: boolean, updateAccess?: boolean): void;
|
|
49
|
-
addButtons(name?: string, cls?: string, clear?: boolean, insertAccess?: boolean, onSubmit?: any): void;
|
|
50
|
-
data(d?: any): any;
|
|
51
|
-
json(d?: any): {};
|
|
52
|
-
setData(d: any): void;
|
|
53
|
-
setError(res: any): void;
|
|
54
|
-
}
|
|
55
|
-
export declare class InputClass {
|
|
56
|
-
constructor(environment: any, l: (k: any, v?: any) => string, name: string, icon?: string, type?: InputType, cls?: string, value?: any, required?: boolean, minLength?: number, maxLength?: number);
|
|
57
|
-
environment: any;
|
|
58
|
-
l: (k: any, v?: any) => string;
|
|
59
|
-
name: string;
|
|
60
|
-
url: any;
|
|
61
|
-
queryParams: any;
|
|
62
|
-
urlNewTab: boolean;
|
|
63
|
-
loadingName: string;
|
|
64
|
-
placeholder: string;
|
|
65
|
-
tooltip: string;
|
|
66
|
-
id: string;
|
|
67
|
-
icon: string;
|
|
68
|
-
addNew: boolean;
|
|
69
|
-
class: string;
|
|
70
|
-
description: string;
|
|
71
|
-
type: InputType;
|
|
72
|
-
value: any;
|
|
73
|
-
search: any;
|
|
74
|
-
default: any;
|
|
75
|
-
baseRequired: boolean;
|
|
76
|
-
required: boolean;
|
|
77
|
-
disabled: boolean;
|
|
78
|
-
inEditDisabled: boolean;
|
|
79
|
-
inEditVisible: boolean;
|
|
80
|
-
inEditRequired: boolean;
|
|
81
|
-
displayLabel: boolean;
|
|
82
|
-
label: string;
|
|
83
|
-
withClear: boolean;
|
|
84
|
-
minLength: number;
|
|
85
|
-
maxLength: number;
|
|
86
|
-
error: InputError;
|
|
87
|
-
addModal: ModalClass;
|
|
88
|
-
loading: boolean;
|
|
89
|
-
button: any;
|
|
90
|
-
hasBarcodeReader: boolean;
|
|
91
|
-
onBarcodeReaderChange: any;
|
|
92
|
-
onClickButton: (inp: any) => void;
|
|
93
|
-
progress: Progress;
|
|
94
|
-
onClick: (btn: any) => void;
|
|
95
|
-
onKeyUp: (inp: any) => void;
|
|
96
|
-
onKeyDown: (e: any) => void;
|
|
97
|
-
options: OptionClass[];
|
|
98
|
-
match: InputClass;
|
|
99
|
-
rel: InputClass;
|
|
100
|
-
relUrl: string;
|
|
101
|
-
table: TableClass;
|
|
102
|
-
style: {};
|
|
103
|
-
position: string;
|
|
104
|
-
onChange: (v: any, e?: any) => void;
|
|
105
|
-
hover: number;
|
|
106
|
-
visible: boolean;
|
|
107
|
-
open: boolean;
|
|
108
|
-
multiple: boolean;
|
|
109
|
-
onlyChild: boolean;
|
|
110
|
-
allowed: any;
|
|
111
|
-
row: any;
|
|
112
|
-
rows: any[];
|
|
113
|
-
level: any;
|
|
114
|
-
modal: ModalClass;
|
|
115
|
-
request: any;
|
|
116
|
-
nameFun: (r: any) => void;
|
|
117
|
-
onFocusIn: (e: any) => void;
|
|
118
|
-
onFocusOut: (e: any) => void;
|
|
119
|
-
focus(changeIndex?: boolean): void;
|
|
120
|
-
changeType: (t: InputType) => void;
|
|
121
|
-
setValue: (v: any, isEdit: any) => void;
|
|
122
|
-
setSearch: (v: any) => void;
|
|
123
|
-
clear: () => void;
|
|
124
|
-
focusOut: () => void;
|
|
125
|
-
data: () => any;
|
|
126
|
-
isValid: () => boolean;
|
|
127
|
-
load(u?: any, done?: () => void): void;
|
|
128
|
-
setOptions(r: any): void;
|
|
129
|
-
getSelectedOptionData(): any;
|
|
130
|
-
getOptions(r: any, p: any, tree?: boolean): OptionClass[];
|
|
131
|
-
getRows(r: any, p: any): TreeRowClass[];
|
|
132
|
-
getLabel(): string;
|
|
133
|
-
getSelected(opts?: OptionClass[]): any[];
|
|
134
|
-
getSelectedName(opts?: OptionClass[]): any[];
|
|
135
|
-
getSelectedOptions(opts?: OptionClass[]): any[];
|
|
136
|
-
getSelectedRows(rows?: any[]): any[];
|
|
137
|
-
getAllRows(rows?: any[]): any[];
|
|
138
|
-
}
|
|
139
|
-
export declare class OptionClass {
|
|
140
|
-
constructor(name: string, value: string, options?: OptionClass[], cls?: string, dis?: boolean);
|
|
141
|
-
option: any;
|
|
142
|
-
search: string;
|
|
143
|
-
class: string;
|
|
144
|
-
name: string;
|
|
145
|
-
value: string;
|
|
146
|
-
show: boolean;
|
|
147
|
-
selected: boolean;
|
|
148
|
-
parent: OptionClass;
|
|
149
|
-
options: OptionClass[];
|
|
150
|
-
loading: boolean;
|
|
151
|
-
disabled: boolean;
|
|
152
|
-
}
|
|
153
|
-
export declare class DayClass {
|
|
154
|
-
constructor(day: number, today: boolean, selected: boolean, active: boolean);
|
|
155
|
-
day: number;
|
|
156
|
-
today: boolean;
|
|
157
|
-
selected: boolean;
|
|
158
|
-
active: boolean;
|
|
159
|
-
class: string;
|
|
160
|
-
}
|
|
161
|
-
export declare class TreeRowClass {
|
|
162
|
-
constructor(name: string, value: string, selected?: boolean, children?: TreeRowClass[]);
|
|
163
|
-
name: string;
|
|
164
|
-
value: string;
|
|
165
|
-
selected: boolean;
|
|
166
|
-
parent: TreeRowClass;
|
|
167
|
-
children: TreeRowClass[];
|
|
168
|
-
}
|
|
169
|
-
export declare class AccordionClass {
|
|
170
|
-
constructor(l: (k: any, v?: any) => string, name: string, cls: string, rows: AccordionRowClass[]);
|
|
171
|
-
l: (k: any, v?: any) => string;
|
|
172
|
-
name: string;
|
|
173
|
-
class: string;
|
|
174
|
-
rows: AccordionRowClass[];
|
|
175
|
-
hasDelete: boolean;
|
|
176
|
-
displayLabel: boolean;
|
|
177
|
-
loading: boolean;
|
|
178
|
-
access: boolean;
|
|
179
|
-
onDelete: (row: any) => void;
|
|
180
|
-
check(): boolean;
|
|
181
|
-
}
|
|
182
|
-
export declare class AccordionRowClass {
|
|
183
|
-
constructor(id: string, name: string, form?: FormClass, table?: TableClass);
|
|
184
|
-
id: string;
|
|
185
|
-
name: string;
|
|
186
|
-
show: boolean;
|
|
187
|
-
firstTable: boolean;
|
|
188
|
-
form: FormClass;
|
|
189
|
-
chart: ChartClass;
|
|
190
|
-
table: TableClass;
|
|
191
|
-
toggle(): void;
|
|
192
|
-
open(): void;
|
|
193
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { InputType } from './enum.class';
|
|
2
|
-
import { InputClass } from './form.class';
|
|
3
|
-
import { PermissionClass } from './permission.class';
|
|
4
|
-
export declare class HelperClass {
|
|
5
|
-
static getLabel(inp: InputClass): string;
|
|
6
|
-
static nationalCodeNumValid(c: any): boolean;
|
|
7
|
-
static economicNumValid(c: any): boolean;
|
|
8
|
-
static nationalCodeValid(c: any): boolean;
|
|
9
|
-
static nationalNumValid(code: any): boolean;
|
|
10
|
-
static plaqueValid(p: any, t: InputType): boolean;
|
|
11
|
-
static iso7064Mod97_10(iban: any): number;
|
|
12
|
-
static shebaValid(str: any): boolean;
|
|
13
|
-
static postalCodeValid(c: any): boolean;
|
|
14
|
-
static random(length: any, upper?: boolean, lower?: boolean, num?: boolean): string;
|
|
15
|
-
static setCookie(name: any, value: any, days?: number): void;
|
|
16
|
-
static getCookie(name: any, def?: any): string;
|
|
17
|
-
static eraseCookie(name: any): void;
|
|
18
|
-
static getDateDif(l: any, dt: string, c?: number): string;
|
|
19
|
-
static getRowEnum(l: any, e: any, dt: any): string;
|
|
20
|
-
static getNow(): any;
|
|
21
|
-
static getInputDate(amount?: number, unit?: string): any;
|
|
22
|
-
static getMoment(i?: any, f?: any): any;
|
|
23
|
-
static getDateRemain(l: any, dt: string, c?: number): string;
|
|
24
|
-
static getDateRemainSec(dt: string): number;
|
|
25
|
-
static getDateRemainFull(l: any, dt: string, c?: number): string;
|
|
26
|
-
static getDate(dt: string, format?: string, locale?: string): string;
|
|
27
|
-
static getTime(dt: any): string;
|
|
28
|
-
static getDateTime(dt: string, format?: string): string;
|
|
29
|
-
static toPrice(l: any, cv: any): string;
|
|
30
|
-
static getFileSize(bytes: number): string;
|
|
31
|
-
static getPDate(l: any, s: any): string;
|
|
32
|
-
static GetRemainDate(l: any, ts: any): string;
|
|
33
|
-
static clone<T>(v: T): T;
|
|
34
|
-
static cloneJson(inp: any): any;
|
|
35
|
-
static getName(n: any): string;
|
|
36
|
-
static addNotification(m: any, e?: boolean): void;
|
|
37
|
-
static checkCartDigit(code: any): boolean;
|
|
38
|
-
static getData(key: any, state: any, parent: any): any;
|
|
39
|
-
static getColorByBgColor(bgColor: any): string;
|
|
40
|
-
static queryStringToJSON(qs?: any): any;
|
|
41
|
-
static copyToClipboard(text: any): void;
|
|
42
|
-
static setBarcodeReader(inp: InputClass): void;
|
|
43
|
-
static getRandomInt(min: any, max: any): number;
|
|
44
|
-
static fixChars(str: any): string;
|
|
45
|
-
static ToReadablePlaque(p: any): string;
|
|
46
|
-
static getFileIcon(f: any): string;
|
|
47
|
-
static groupBy(data: any, iteratee: any): any;
|
|
48
|
-
static getTablePermissions(l?: boolean, i?: boolean, u?: boolean, d?: boolean): PermissionClass;
|
|
49
|
-
static jsonToFormData(json: any, formData?: FormData, parentKey?: string): FormData;
|
|
50
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { FormClass } from './form.class';
|
|
2
|
-
import { ModalClass } from './modal.class';
|
|
3
|
-
export declare class LoginClass {
|
|
4
|
-
constructor(l: (k: any, v?: any) => string, type: string);
|
|
5
|
-
modal: ModalClass;
|
|
6
|
-
type: string;
|
|
7
|
-
l: (k: any, v?: any) => string;
|
|
8
|
-
steps: LoginStepClass[];
|
|
9
|
-
active: number;
|
|
10
|
-
onSuccess: (result: any) => void;
|
|
11
|
-
sendCodeUrl: string;
|
|
12
|
-
loginUrl: string;
|
|
13
|
-
rules: string;
|
|
14
|
-
setCookie(r: any): void;
|
|
15
|
-
showModal(): void;
|
|
16
|
-
}
|
|
17
|
-
export declare class LoginStepClass {
|
|
18
|
-
constructor(form: FormClass);
|
|
19
|
-
form: FormClass;
|
|
20
|
-
show(result?: any): void;
|
|
21
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { AccordionClass, FormClass } from './form.class';
|
|
2
|
-
import { TableClass } from './table.class';
|
|
3
|
-
export declare class ModalClass {
|
|
4
|
-
constructor(environment: any, l: (k: any, v?: any) => string, name: string, cls?: string);
|
|
5
|
-
environment: any;
|
|
6
|
-
l: (k: any, v?: any) => string;
|
|
7
|
-
name: string;
|
|
8
|
-
id: string;
|
|
9
|
-
class: string;
|
|
10
|
-
relatedId: null;
|
|
11
|
-
form: FormClass;
|
|
12
|
-
firstForm: boolean;
|
|
13
|
-
table: TableClass;
|
|
14
|
-
accordion: AccordionClass;
|
|
15
|
-
onShow: (data: any) => void;
|
|
16
|
-
onHide: () => void;
|
|
17
|
-
show(data?: any): void;
|
|
18
|
-
hide(): void;
|
|
19
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { PermissionAccessTypeEnum, PermissionInputActionEnum, PermissionInputTypeEnum, PermissionTypeEnum } from './enum.class';
|
|
2
|
-
import { ModalClass } from './modal.class';
|
|
3
|
-
export declare class PermissionClass {
|
|
4
|
-
Name: string;
|
|
5
|
-
Icon: string;
|
|
6
|
-
Type: PermissionTypeEnum;
|
|
7
|
-
InputType: PermissionInputTypeEnum;
|
|
8
|
-
AccessType: PermissionAccessTypeEnum;
|
|
9
|
-
InputAction: PermissionInputActionEnum;
|
|
10
|
-
Area: string;
|
|
11
|
-
Controller: string;
|
|
12
|
-
Action: string;
|
|
13
|
-
Url: string;
|
|
14
|
-
Multi: boolean;
|
|
15
|
-
Condition: string;
|
|
16
|
-
Accesses: PermissionClass[];
|
|
17
|
-
constructor(Name?: string, Icon?: string, Type?: PermissionTypeEnum, InputType?: PermissionInputTypeEnum, AccessType?: PermissionAccessTypeEnum, InputAction?: PermissionInputActionEnum, Area?: string, Controller?: string, Action?: string, Url?: string, Multi?: boolean, Condition?: string, Accesses?: PermissionClass[]);
|
|
18
|
-
Modal: ModalClass;
|
|
19
|
-
Id: string;
|
|
20
|
-
ParentId: string;
|
|
21
|
-
RelatedId: string;
|
|
22
|
-
OnClick: (btn: any) => void;
|
|
23
|
-
getAccessByName(a: string): PermissionClass;
|
|
24
|
-
getAccess(at: PermissionAccessTypeEnum): PermissionClass;
|
|
25
|
-
hasAccessByName(a: string): boolean;
|
|
26
|
-
hasAccess(at: PermissionAccessTypeEnum): boolean;
|
|
27
|
-
getAccesses(): PermissionClass[];
|
|
28
|
-
delete(a: string): void;
|
|
29
|
-
hasOptionByName(a: string): boolean;
|
|
30
|
-
hasOption(at: PermissionAccessTypeEnum): boolean;
|
|
31
|
-
getOptions(): PermissionClass[];
|
|
32
|
-
getOptionByName(a: string): PermissionClass;
|
|
33
|
-
getOption(at: PermissionAccessTypeEnum): PermissionClass;
|
|
34
|
-
getUrl(): string;
|
|
35
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { InputClass } from './form.class';
|
|
2
|
-
import { Method } from './enum.class';
|
|
3
|
-
export declare class RequestClass {
|
|
4
|
-
environment: any;
|
|
5
|
-
l: (k: any, v?: any) => string;
|
|
6
|
-
constructor(environment?: any, l?: (k: any, v?: any) => string);
|
|
7
|
-
send(url: string, method: Method, data: any, btn?: InputClass, success?: (result: any) => void, failure?: (message: any) => void, request?: any): any;
|
|
8
|
-
sendCu(url: string, method: Method, data: any, btn?: InputClass, success?: (result: any) => void, failure?: (message: any) => void, timeout?: any): any;
|
|
9
|
-
getClient(request: any, url: string, method: Method, data: any, done: any, fail: any, timeout?: any): any;
|
|
10
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare class SidebarClass {
|
|
2
|
-
constructor(l: (k: any, v?: any) => string, id: string, name: string, controller: string, action: string, url: string, icon: string, children?: SidebarClass[]);
|
|
3
|
-
l: (k: any, v?: any) => string;
|
|
4
|
-
controller: string;
|
|
5
|
-
action: string;
|
|
6
|
-
url: string;
|
|
7
|
-
id: string;
|
|
8
|
-
name: string;
|
|
9
|
-
icon: string;
|
|
10
|
-
count: number;
|
|
11
|
-
countAll: number;
|
|
12
|
-
children: SidebarClass[];
|
|
13
|
-
active: boolean;
|
|
14
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { FormClass } from './form.class';
|
|
2
|
-
export declare class StepsClass {
|
|
3
|
-
constructor(environment: any, l: (k: any, v?: any) => string);
|
|
4
|
-
environment: any;
|
|
5
|
-
l: (k: any, v?: any) => string;
|
|
6
|
-
items: StepsItemClass[];
|
|
7
|
-
activeAll: boolean;
|
|
8
|
-
isDone: boolean;
|
|
9
|
-
updateAccess: boolean;
|
|
10
|
-
viewAccess: boolean;
|
|
11
|
-
onDone: () => void;
|
|
12
|
-
onLoadStep: (s: StepsItemClass) => void;
|
|
13
|
-
getCurrent(): number;
|
|
14
|
-
getActive(): number;
|
|
15
|
-
loadStep(s: StepsItemClass): void;
|
|
16
|
-
}
|
|
17
|
-
export declare class StepsItemClass {
|
|
18
|
-
id: number;
|
|
19
|
-
name: string;
|
|
20
|
-
icon: string;
|
|
21
|
-
url: string;
|
|
22
|
-
active: boolean;
|
|
23
|
-
constructor(id: number, name: string, icon?: string, url?: string, active?: boolean);
|
|
24
|
-
title: string;
|
|
25
|
-
current: boolean;
|
|
26
|
-
description: string;
|
|
27
|
-
form: FormClass;
|
|
28
|
-
formType: any;
|
|
29
|
-
onClick: (item: any) => void;
|
|
30
|
-
onDelete: (item: any) => void;
|
|
31
|
-
}
|