@falcon-ng/core 0.0.27 → 0.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/{falcon-ng-core-datepicker.component-CPsDyBhC.mjs → falcon-ng-core-datepicker.component-R3QbVwh9.mjs} +5 -5
- package/fesm2022/{falcon-ng-core-datepicker.component-CPsDyBhC.mjs.map → falcon-ng-core-datepicker.component-R3QbVwh9.mjs.map} +1 -1
- package/fesm2022/{falcon-ng-core-falcon-ng-core-Bi8UTq2i.mjs → falcon-ng-core-falcon-ng-core-NF6Np0dr.mjs} +61 -61
- package/fesm2022/{falcon-ng-core-falcon-ng-core-Bi8UTq2i.mjs.map → falcon-ng-core-falcon-ng-core-NF6Np0dr.mjs.map} +1 -1
- package/fesm2022/{falcon-ng-core-textarea.component-BA3CQ4Sm.mjs → falcon-ng-core-textarea.component-DWO3hiq2.mjs} +5 -5
- package/fesm2022/{falcon-ng-core-textarea.component-BA3CQ4Sm.mjs.map → falcon-ng-core-textarea.component-DWO3hiq2.mjs.map} +1 -1
- package/fesm2022/{falcon-ng-core-textbox.component-D4cexFb4.mjs → falcon-ng-core-textbox.component-Cc4_KuFY.mjs} +5 -5
- package/fesm2022/{falcon-ng-core-textbox.component-D4cexFb4.mjs.map → falcon-ng-core-textbox.component-Cc4_KuFY.mjs.map} +1 -1
- package/fesm2022/falcon-ng-core.mjs +1 -1
- package/index.d.ts +735 -3
- package/package.json +3 -3
- package/lib/falcon-core/angularmaterial.module.d.ts +0 -49
- package/lib/falcon-core/component/button/button.component.d.ts +0 -14
- package/lib/falcon-core/component/card/card.component.d.ts +0 -7
- package/lib/falcon-core/component/datepicker/datepicker.component.d.ts +0 -6
- package/lib/falcon-core/component/select/select.component.d.ts +0 -8
- package/lib/falcon-core/component/textarea/textarea.component.d.ts +0 -6
- package/lib/falcon-core/component/textbox/textbox.component.d.ts +0 -6
- package/lib/falcon-core/component/validation-error/error-message.pipe.d.ts +0 -8
- package/lib/falcon-core/component/validation-error/error-state-matcher.service.d.ts +0 -8
- package/lib/falcon-core/component/validation-error/validation-error-message-token.d.ts +0 -7
- package/lib/falcon-core/component/validation-error/validation-error.component.d.ts +0 -9
- package/lib/falcon-core/component/validation-error/validation-message-container.directive.d.ts +0 -7
- package/lib/falcon-core/component/validation-error/validation-message.directive.d.ts +0 -18
- package/lib/falcon-core/component-resolver.d.ts +0 -14
- package/lib/falcon-core/control-builder/base-control-builder.d.ts +0 -18
- package/lib/falcon-core/control-builder/control-builder.component.d.ts +0 -13
- package/lib/falcon-core/control-builder/control-data-builder.d.ts +0 -7
- package/lib/falcon-core/control-builder/control-injection.pipe.d.ts +0 -9
- package/lib/falcon-core/control-type/AutoComplete.d.ts +0 -5
- package/lib/falcon-core/control-type/Button.d.ts +0 -5
- package/lib/falcon-core/control-type/ButtonToggle.d.ts +0 -5
- package/lib/falcon-core/control-type/CheckBox.d.ts +0 -5
- package/lib/falcon-core/control-type/Chip.d.ts +0 -5
- package/lib/falcon-core/control-type/DatePicker.d.ts +0 -5
- package/lib/falcon-core/control-type/Divider.d.ts +0 -5
- package/lib/falcon-core/control-type/Editor.d.ts +0 -5
- package/lib/falcon-core/control-type/Radio.d.ts +0 -5
- package/lib/falcon-core/control-type/RichTextEditor.d.ts +0 -5
- package/lib/falcon-core/control-type/Select.d.ts +0 -5
- package/lib/falcon-core/control-type/SlideToggle.d.ts +0 -5
- package/lib/falcon-core/control-type/Slider.d.ts +0 -5
- package/lib/falcon-core/control-type/Textarea.d.ts +0 -5
- package/lib/falcon-core/control-type/Textbox.d.ts +0 -5
- package/lib/falcon-core/falcon-core.module.d.ts +0 -12
- package/lib/falcon-core/model/base-control.d.ts +0 -83
- package/lib/falcon-core/model/enum.d.ts +0 -144
- package/lib/falcon-core/model/interface.d.ts +0 -299
- package/lib/falcon-core/model/ivalidator.d.ts +0 -19
- package/public-api.d.ts +0 -25
|
@@ -1,299 +0,0 @@
|
|
|
1
|
-
import { HttpHeaders, HttpParams } from '@angular/common/http';
|
|
2
|
-
import { EventEmitter } from '@angular/core';
|
|
3
|
-
import { LoggingLevel } from './enum';
|
|
4
|
-
/**
|
|
5
|
-
* @description
|
|
6
|
-
* Interface use for IRequestOptions.
|
|
7
|
-
* @usageNotes
|
|
8
|
-
* ```ts
|
|
9
|
-
* {
|
|
10
|
-
* headers : "application/json",
|
|
11
|
-
* observe : "body",
|
|
12
|
-
* params : {},
|
|
13
|
-
* reportProgress : true,
|
|
14
|
-
* responseType : "application/json",
|
|
15
|
-
* withCredentials : true,
|
|
16
|
-
* body : {"username" : "test@test.com", "password": "xxxxxx"},
|
|
17
|
-
* }
|
|
18
|
-
* ```
|
|
19
|
-
*/
|
|
20
|
-
export declare interface IRequestOptions {
|
|
21
|
-
headers?: HttpHeaders | {
|
|
22
|
-
[header: string]: string | string[];
|
|
23
|
-
};
|
|
24
|
-
observe?: 'body' | 'events' | 'response';
|
|
25
|
-
params?: HttpParams | {
|
|
26
|
-
[param: string]: string | string[];
|
|
27
|
-
};
|
|
28
|
-
reportProgress?: boolean;
|
|
29
|
-
responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
|
|
30
|
-
withCredentials?: boolean;
|
|
31
|
-
body?: any;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* @description
|
|
35
|
-
* Interface use for mat table header and column.
|
|
36
|
-
* @usageNotes
|
|
37
|
-
* ```ts
|
|
38
|
-
* columns: MatTable[] = [
|
|
39
|
-
* {
|
|
40
|
-
* columnDef: 'position',
|
|
41
|
-
* header: 'No.',
|
|
42
|
-
* cell: (element: any) => `${element.position}`
|
|
43
|
-
* }
|
|
44
|
-
* ]
|
|
45
|
-
* ```
|
|
46
|
-
*/
|
|
47
|
-
export declare interface MatTable {
|
|
48
|
-
columnDef?: string;
|
|
49
|
-
header?: string;
|
|
50
|
-
cell?: any;
|
|
51
|
-
link?: IRouteLink;
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* @description
|
|
55
|
-
* Interface use for mat table configuration.
|
|
56
|
-
* @usageNotes
|
|
57
|
-
* ```ts
|
|
58
|
-
* {
|
|
59
|
-
* columns : MatTable[] = [{
|
|
60
|
-
* columnDef: 'position',
|
|
61
|
-
* header: 'No.',
|
|
62
|
-
* cell: (element: any) => `${element.position}`
|
|
63
|
-
* }, filter : true,
|
|
64
|
-
* pagination : true
|
|
65
|
-
* ]}
|
|
66
|
-
* ```
|
|
67
|
-
*/
|
|
68
|
-
export declare interface MatTableConfig {
|
|
69
|
-
columns?: MatTable[];
|
|
70
|
-
dataSource?: any;
|
|
71
|
-
filter?: boolean;
|
|
72
|
-
paginationConfig?: MatTablePaginationConfig;
|
|
73
|
-
progressBar?: boolean;
|
|
74
|
-
action?: ITableAction;
|
|
75
|
-
property?: IMatTableStyle;
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* @description
|
|
79
|
-
* Interface use for mat table style
|
|
80
|
-
*/
|
|
81
|
-
export declare interface IMatTableStyle {
|
|
82
|
-
css?: string;
|
|
83
|
-
style?: string;
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* @description
|
|
87
|
-
* Interface use for mat table pagination configuration.
|
|
88
|
-
*/
|
|
89
|
-
export declare interface MatTablePaginationConfig {
|
|
90
|
-
pagination?: boolean;
|
|
91
|
-
pageSizeOptions?: number[];
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* @description
|
|
95
|
-
* Interface use for mat table action button configuration.
|
|
96
|
-
* view - action for view only
|
|
97
|
-
* edit - action for edit the row
|
|
98
|
-
* delete - action for delete the row
|
|
99
|
-
* menu - context menu for more action
|
|
100
|
-
*/
|
|
101
|
-
export declare interface ITableAction {
|
|
102
|
-
view?: boolean;
|
|
103
|
-
edit?: boolean;
|
|
104
|
-
delete?: boolean;
|
|
105
|
-
arrowRight?: boolean;
|
|
106
|
-
isMenu: boolean;
|
|
107
|
-
menu?: IMatHint[];
|
|
108
|
-
}
|
|
109
|
-
/**
|
|
110
|
-
* @description
|
|
111
|
-
* Interface use for material hint component.
|
|
112
|
-
*/
|
|
113
|
-
export declare interface IMatHint {
|
|
114
|
-
isIcon: boolean;
|
|
115
|
-
icon?: IIcon;
|
|
116
|
-
text?: string;
|
|
117
|
-
link?: IRouteLink;
|
|
118
|
-
disabled?: boolean;
|
|
119
|
-
show?: boolean;
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* @description
|
|
123
|
-
* Interface for icons
|
|
124
|
-
*/
|
|
125
|
-
export declare interface IIcon {
|
|
126
|
-
iconText?: string;
|
|
127
|
-
iconColor?: string;
|
|
128
|
-
}
|
|
129
|
-
/**
|
|
130
|
-
* @description
|
|
131
|
-
* Interface for routerLink
|
|
132
|
-
*/
|
|
133
|
-
export declare interface IRouteLink {
|
|
134
|
-
routerLink: string | any;
|
|
135
|
-
queryParams?: string;
|
|
136
|
-
isLink?: boolean;
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
* @description
|
|
140
|
-
* Interface for Dialog Data
|
|
141
|
-
*/
|
|
142
|
-
export declare interface IDialogData {
|
|
143
|
-
title: string;
|
|
144
|
-
cancelBtnText: string;
|
|
145
|
-
mainbtnText?: string;
|
|
146
|
-
bodyMessage?: string;
|
|
147
|
-
}
|
|
148
|
-
/**
|
|
149
|
-
* @description
|
|
150
|
-
* Interface use for setting the suffix and prefix.
|
|
151
|
-
* @usageNotes
|
|
152
|
-
* ```ts
|
|
153
|
-
* new Textbox({
|
|
154
|
-
* label: "Prefix & Suffix icon",
|
|
155
|
-
* appearance: Appearance.Outline,
|
|
156
|
-
* placeHolder: "Prefix & Suffix icon",
|
|
157
|
-
* attrType: InputTypes.Text,
|
|
158
|
-
* prefix : {
|
|
159
|
-
* isIcon : true,
|
|
160
|
-
* text : "euro"
|
|
161
|
-
* },
|
|
162
|
-
* suffix : {
|
|
163
|
-
* isIcon: true,
|
|
164
|
-
* text : "done"
|
|
165
|
-
* }
|
|
166
|
-
* });
|
|
167
|
-
* ```
|
|
168
|
-
*/
|
|
169
|
-
export declare interface ISuffixPrefixConfig {
|
|
170
|
-
isIcon?: boolean;
|
|
171
|
-
text?: string;
|
|
172
|
-
toolTipText?: string;
|
|
173
|
-
}
|
|
174
|
-
/**
|
|
175
|
-
* @description
|
|
176
|
-
* Interface use for an app setting configuration.
|
|
177
|
-
*/
|
|
178
|
-
export declare interface IAppSettingViewModel {
|
|
179
|
-
baseUrl?: string;
|
|
180
|
-
loggingLevel?: LoggingLevel;
|
|
181
|
-
}
|
|
182
|
-
/**
|
|
183
|
-
* View model for snack bar Message and Action Text
|
|
184
|
-
*/
|
|
185
|
-
export interface SnackbarModel {
|
|
186
|
-
messageText: string;
|
|
187
|
-
actionText: string;
|
|
188
|
-
}
|
|
189
|
-
/**
|
|
190
|
-
* @description
|
|
191
|
-
* Interface use for setting the TextArea Property.
|
|
192
|
-
* @usageNotes
|
|
193
|
-
* ```ts
|
|
194
|
-
* componentProperty: {
|
|
195
|
-
* textAreaProperty : {
|
|
196
|
-
* cdkTextareaAutosize : true,
|
|
197
|
-
* cdkAutosizeMinRows : 1,
|
|
198
|
-
* cdkAutosizeMaxRows : 2,
|
|
199
|
-
* rows : 2,
|
|
200
|
-
* cols : 2
|
|
201
|
-
* }
|
|
202
|
-
* }
|
|
203
|
-
* ```
|
|
204
|
-
*/
|
|
205
|
-
export declare interface ITextAreaProperty {
|
|
206
|
-
cdkTextareaAutosize?: boolean;
|
|
207
|
-
cdkAutosizeMinRows?: number;
|
|
208
|
-
cdkAutosizeMaxRows?: number;
|
|
209
|
-
rows?: number;
|
|
210
|
-
cols?: number;
|
|
211
|
-
}
|
|
212
|
-
/**
|
|
213
|
-
* @description
|
|
214
|
-
* Interface use for setting the options meta for select control.
|
|
215
|
-
* @usageNotes
|
|
216
|
-
* ```ts
|
|
217
|
-
* componentProperty: {
|
|
218
|
-
* selectProperty: {multiple : true};
|
|
219
|
-
* }
|
|
220
|
-
* ```
|
|
221
|
-
*/
|
|
222
|
-
export declare interface ISelectOptions {
|
|
223
|
-
single?: boolean;
|
|
224
|
-
multiple?: boolean;
|
|
225
|
-
}
|
|
226
|
-
/**
|
|
227
|
-
* @description
|
|
228
|
-
* Interface use for setting the options meta.
|
|
229
|
-
* Disable is used for select option values
|
|
230
|
-
* @usageNotes
|
|
231
|
-
* ```ts
|
|
232
|
-
* componentProperty: {
|
|
233
|
-
* options: [{key : 'key-1', value : 'value-1', icon: 'material_icon', disabled: true}];
|
|
234
|
-
* }
|
|
235
|
-
* ```
|
|
236
|
-
*/
|
|
237
|
-
export declare interface IOptions {
|
|
238
|
-
key?: any;
|
|
239
|
-
value?: any;
|
|
240
|
-
icon?: string;
|
|
241
|
-
class?: string;
|
|
242
|
-
disabled?: boolean;
|
|
243
|
-
}
|
|
244
|
-
/**
|
|
245
|
-
* @description
|
|
246
|
-
* @param change change event for the control
|
|
247
|
-
* @param click click event for the control
|
|
248
|
-
* Events for controls
|
|
249
|
-
*/
|
|
250
|
-
export declare interface IComponentEvent<T> {
|
|
251
|
-
change?: EventEmitter<T>;
|
|
252
|
-
click?: EventEmitter<T>;
|
|
253
|
-
keyboardEnter?: EventEmitter<T>;
|
|
254
|
-
}
|
|
255
|
-
/**
|
|
256
|
-
* @description
|
|
257
|
-
* Interface use for setting the Mat Slider Property.
|
|
258
|
-
* @usageNotes
|
|
259
|
-
* ```ts
|
|
260
|
-
* componentProperty: {
|
|
261
|
-
* sliderProperty : {
|
|
262
|
-
* invert : true,
|
|
263
|
-
* step : 1,
|
|
264
|
-
* thumbLabel : false,
|
|
265
|
-
* vertical : true,
|
|
266
|
-
* horizontal : false
|
|
267
|
-
* }
|
|
268
|
-
* }
|
|
269
|
-
* ```
|
|
270
|
-
*/
|
|
271
|
-
export declare interface ISliderProperty {
|
|
272
|
-
invert?: boolean;
|
|
273
|
-
thumbLabel?: boolean;
|
|
274
|
-
vertical?: boolean;
|
|
275
|
-
min?: number;
|
|
276
|
-
max?: number;
|
|
277
|
-
step?: number;
|
|
278
|
-
tickInterval?: string | number;
|
|
279
|
-
}
|
|
280
|
-
/**
|
|
281
|
-
* @description
|
|
282
|
-
* Interface use for mat table header and column.
|
|
283
|
-
* @usageNotes
|
|
284
|
-
* ```ts
|
|
285
|
-
* columns: MatTable[] = [
|
|
286
|
-
* {
|
|
287
|
-
* columnDef: 'position',
|
|
288
|
-
* header: 'No.',
|
|
289
|
-
* cell: (element: any) => `${element.position}`
|
|
290
|
-
* }
|
|
291
|
-
* ]
|
|
292
|
-
* ```
|
|
293
|
-
*/
|
|
294
|
-
export declare interface MatTable {
|
|
295
|
-
columnDef?: string;
|
|
296
|
-
header?: string;
|
|
297
|
-
cell?: any;
|
|
298
|
-
link?: IRouteLink;
|
|
299
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ValidatorFn } from '@angular/forms';
|
|
2
|
-
/**
|
|
3
|
-
* @description
|
|
4
|
-
* Interface use for validation config.
|
|
5
|
-
* @usageNotes
|
|
6
|
-
* ```ts
|
|
7
|
-
* validations: [
|
|
8
|
-
* {
|
|
9
|
-
* name: "required",
|
|
10
|
-
* validator: Validators.required,
|
|
11
|
-
* message: "Required Field"
|
|
12
|
-
* }]
|
|
13
|
-
* ```
|
|
14
|
-
*/
|
|
15
|
-
export declare interface IValidator {
|
|
16
|
-
name?: string;
|
|
17
|
-
validator: ValidatorFn;
|
|
18
|
-
message?: string;
|
|
19
|
-
}
|
package/public-api.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export * from './lib/falcon-core/falcon-core.module';
|
|
2
|
-
export * from './lib/falcon-core/model/enum';
|
|
3
|
-
export * from './lib/falcon-core/model/interface';
|
|
4
|
-
export * from './lib/falcon-core/model/ivalidator';
|
|
5
|
-
export * from './lib/falcon-core/model/base-control';
|
|
6
|
-
export * from './lib/falcon-core/control-type/AutoComplete';
|
|
7
|
-
export * from './lib/falcon-core/control-type/Button';
|
|
8
|
-
export * from './lib/falcon-core/control-type/ButtonToggle';
|
|
9
|
-
export * from './lib/falcon-core/control-type/CheckBox';
|
|
10
|
-
export * from './lib/falcon-core/control-type/Chip';
|
|
11
|
-
export * from './lib/falcon-core/control-type/DatePicker';
|
|
12
|
-
export * from './lib/falcon-core/control-type/Divider';
|
|
13
|
-
export * from './lib/falcon-core/control-type/Editor';
|
|
14
|
-
export * from './lib/falcon-core/control-type/Radio';
|
|
15
|
-
export * from './lib/falcon-core/control-type/RichTextEditor';
|
|
16
|
-
export * from './lib/falcon-core/control-type/Select';
|
|
17
|
-
export * from './lib/falcon-core/control-type/Slider';
|
|
18
|
-
export * from './lib/falcon-core/control-type/SlideToggle';
|
|
19
|
-
export * from './lib/falcon-core/control-type/Textarea';
|
|
20
|
-
export * from './lib/falcon-core/control-type/Textbox';
|
|
21
|
-
export * from './lib/falcon-core/control-builder/control-builder.component';
|
|
22
|
-
export * from './lib/falcon-core/angularmaterial.module';
|
|
23
|
-
export * from './lib/falcon-core/component/card/card.component';
|
|
24
|
-
export * from './lib/falcon-core/component/button/button.component';
|
|
25
|
-
export * from './lib/falcon-core/component/select/select.component';
|