@falcon-ng/core 0.0.39 → 0.0.40
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-autocomplete.component-B45kyG9y.mjs → falcon-ng-core-autocomplete.component-i7tTfsCt.mjs} +8 -8
- package/fesm2022/falcon-ng-core-autocomplete.component-i7tTfsCt.mjs.map +1 -0
- package/fesm2022/{falcon-ng-core-checkbox.component-ndHL1tL3.mjs → falcon-ng-core-checkbox.component-BzUd6jLa.mjs} +6 -6
- package/fesm2022/falcon-ng-core-checkbox.component-BzUd6jLa.mjs.map +1 -0
- package/fesm2022/{falcon-ng-core-datepicker.component-By51i_14.mjs → falcon-ng-core-datepicker.component-DHmOAI3s.mjs} +6 -6
- package/fesm2022/falcon-ng-core-datepicker.component-DHmOAI3s.mjs.map +1 -0
- package/fesm2022/{falcon-ng-core-falcon-ng-core-XahzcHGw.mjs → falcon-ng-core-falcon-ng-core-Dd_oxTIJ.mjs} +301 -183
- package/fesm2022/falcon-ng-core-falcon-ng-core-Dd_oxTIJ.mjs.map +1 -0
- package/fesm2022/{falcon-ng-core-radio.component-BawVGW5S.mjs → falcon-ng-core-radio.component-2XCIPO40.mjs} +6 -6
- package/fesm2022/falcon-ng-core-radio.component-2XCIPO40.mjs.map +1 -0
- package/fesm2022/{falcon-ng-core-textarea.component-DoPCIW3D.mjs → falcon-ng-core-textarea.component-DwUjAaxE.mjs} +6 -6
- package/fesm2022/falcon-ng-core-textarea.component-DwUjAaxE.mjs.map +1 -0
- package/fesm2022/{falcon-ng-core-textbox.component-D9RxleN8.mjs → falcon-ng-core-textbox.component-FE3kg3HB.mjs} +6 -6
- package/fesm2022/falcon-ng-core-textbox.component-FE3kg3HB.mjs.map +1 -0
- package/fesm2022/falcon-ng-core.mjs +1 -1
- package/package.json +5 -5
- package/{index.d.ts → types/falcon-ng-core.d.ts} +3 -3
- package/fesm2022/falcon-ng-core-autocomplete.component-B45kyG9y.mjs.map +0 -1
- package/fesm2022/falcon-ng-core-checkbox.component-ndHL1tL3.mjs.map +0 -1
- package/fesm2022/falcon-ng-core-datepicker.component-By51i_14.mjs.map +0 -1
- package/fesm2022/falcon-ng-core-falcon-ng-core-XahzcHGw.mjs.map +0 -1
- package/fesm2022/falcon-ng-core-radio.component-BawVGW5S.mjs.map +0 -1
- package/fesm2022/falcon-ng-core-textarea.component-DoPCIW3D.mjs.map +0 -1
- package/fesm2022/falcon-ng-core-textbox.component-D9RxleN8.mjs.map +0 -1
|
@@ -56,8 +56,8 @@ import { merge, fromEvent, iif, EMPTY, startWith, skip, of, from, tap } from 'rx
|
|
|
56
56
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
57
57
|
|
|
58
58
|
class AngularmaterialModule {
|
|
59
|
-
static
|
|
60
|
-
static
|
|
59
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: AngularmaterialModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
60
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.6", ngImport: i0, type: AngularmaterialModule, exports: [A11yModule,
|
|
61
61
|
ClipboardModule,
|
|
62
62
|
CdkStepperModule,
|
|
63
63
|
CdkTableModule,
|
|
@@ -100,8 +100,8 @@ class AngularmaterialModule {
|
|
|
100
100
|
MatTreeModule,
|
|
101
101
|
OverlayModule,
|
|
102
102
|
PortalModule,
|
|
103
|
-
ScrollingModule] });
|
|
104
|
-
static
|
|
103
|
+
ScrollingModule] });
|
|
104
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: AngularmaterialModule, imports: [A11yModule,
|
|
105
105
|
ClipboardModule,
|
|
106
106
|
CdkStepperModule,
|
|
107
107
|
CdkTableModule,
|
|
@@ -144,9 +144,9 @@ class AngularmaterialModule {
|
|
|
144
144
|
MatTreeModule,
|
|
145
145
|
OverlayModule,
|
|
146
146
|
PortalModule,
|
|
147
|
-
ScrollingModule] });
|
|
147
|
+
ScrollingModule] });
|
|
148
148
|
}
|
|
149
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
149
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: AngularmaterialModule, decorators: [{
|
|
150
150
|
type: NgModule,
|
|
151
151
|
args: [{
|
|
152
152
|
declarations: [],
|
|
@@ -202,9 +202,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImpor
|
|
|
202
202
|
const CONTROL_DATA = new InjectionToken('Control Data');
|
|
203
203
|
|
|
204
204
|
class ControlInjectionPipe {
|
|
205
|
-
|
|
206
|
-
this.injector = inject(Injector);
|
|
207
|
-
}
|
|
205
|
+
injector = inject(Injector);
|
|
208
206
|
transform(formControlName, config) {
|
|
209
207
|
return Injector.create({
|
|
210
208
|
parent: this.injector,
|
|
@@ -216,10 +214,10 @@ class ControlInjectionPipe {
|
|
|
216
214
|
]
|
|
217
215
|
});
|
|
218
216
|
}
|
|
219
|
-
static
|
|
220
|
-
static
|
|
217
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: ControlInjectionPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
218
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.0.6", ngImport: i0, type: ControlInjectionPipe, isStandalone: true, name: "controlInjection" });
|
|
221
219
|
}
|
|
222
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
220
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: ControlInjectionPipe, decorators: [{
|
|
223
221
|
type: Pipe,
|
|
224
222
|
args: [{
|
|
225
223
|
name: 'controlInjection',
|
|
@@ -247,9 +245,7 @@ const VALIDATION_ERROR_MESSAGES = new InjectionToken(`Validation Messages`, {
|
|
|
247
245
|
});
|
|
248
246
|
|
|
249
247
|
class ErrorMessagePipe {
|
|
250
|
-
|
|
251
|
-
this.errorMessages = inject(VALIDATION_ERROR_MESSAGES);
|
|
252
|
-
}
|
|
248
|
+
errorMessages = inject(VALIDATION_ERROR_MESSAGES);
|
|
253
249
|
transform(key, errorValue) {
|
|
254
250
|
if (!this.errorMessages[key]) {
|
|
255
251
|
console.warn(`Missing message for ${key} validator...`);
|
|
@@ -257,10 +253,10 @@ class ErrorMessagePipe {
|
|
|
257
253
|
}
|
|
258
254
|
return this.errorMessages[key](errorValue);
|
|
259
255
|
}
|
|
260
|
-
static
|
|
261
|
-
static
|
|
256
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: ErrorMessagePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
257
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.0.6", ngImport: i0, type: ErrorMessagePipe, isStandalone: true, name: "errorMessage" });
|
|
262
258
|
}
|
|
263
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
259
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: ErrorMessagePipe, decorators: [{
|
|
264
260
|
type: Pipe,
|
|
265
261
|
args: [{
|
|
266
262
|
name: 'errorMessage',
|
|
@@ -269,23 +265,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImpor
|
|
|
269
265
|
}] });
|
|
270
266
|
|
|
271
267
|
class ValidationErrorComponent {
|
|
272
|
-
|
|
273
|
-
this.errors = null;
|
|
274
|
-
}
|
|
268
|
+
errors = null;
|
|
275
269
|
trackByFn(index, item) {
|
|
276
270
|
return item.key;
|
|
277
271
|
}
|
|
278
|
-
static
|
|
279
|
-
static
|
|
272
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: ValidationErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
273
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.6", type: ValidationErrorComponent, isStandalone: true, selector: "falcon-error", inputs: { errors: "errors" }, ngImport: i0, template: `
|
|
280
274
|
@if (errors) { @for (error of errors | keyvalue; track trackByFn($index,
|
|
281
275
|
error)) {
|
|
282
276
|
<mat-error [style.bottom.px]="18" [style.position]="'relative'">{{
|
|
283
277
|
error.key | errorMessage : error.value
|
|
284
278
|
}}</mat-error>
|
|
285
279
|
} }
|
|
286
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i1.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "pipe", type: i2.KeyValuePipe, name: "keyvalue" }, { kind: "pipe", type: ErrorMessagePipe, name: "errorMessage" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
280
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i1.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "pipe", type: i2.KeyValuePipe, name: "keyvalue" }, { kind: "pipe", type: ErrorMessagePipe, name: "errorMessage" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
287
281
|
}
|
|
288
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
282
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: ValidationErrorComponent, decorators: [{
|
|
289
283
|
type: Component,
|
|
290
284
|
args: [{
|
|
291
285
|
selector: 'falcon-error',
|
|
@@ -308,10 +302,10 @@ class ErrorStateMatcherService {
|
|
|
308
302
|
isErrorState(control, form) {
|
|
309
303
|
return Boolean(control && control.invalid && form && form.touched);
|
|
310
304
|
}
|
|
311
|
-
static
|
|
312
|
-
static
|
|
305
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: ErrorStateMatcherService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
306
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: ErrorStateMatcherService, providedIn: 'root' });
|
|
313
307
|
}
|
|
314
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
308
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: ErrorStateMatcherService, decorators: [{
|
|
315
309
|
type: Injectable,
|
|
316
310
|
args: [{
|
|
317
311
|
providedIn: 'root',
|
|
@@ -319,15 +313,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImpor
|
|
|
319
313
|
}] });
|
|
320
314
|
|
|
321
315
|
class ValidationMessageDirective {
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
}
|
|
316
|
+
ngControl = inject(NgControl, { self: true, optional: true }) ||
|
|
317
|
+
inject(ControlContainer, { self: true });
|
|
318
|
+
elementRef = inject(ElementRef);
|
|
319
|
+
errorStateMatcher = inject(ErrorStateMatcherService);
|
|
320
|
+
container = inject(ViewContainerRef);
|
|
321
|
+
parentContainer = inject(ControlContainer, { optional: true });
|
|
322
|
+
errorMessageTrigger;
|
|
323
|
+
componentRef = null;
|
|
331
324
|
get form() {
|
|
332
325
|
return this.parentContainer?.formDirective;
|
|
333
326
|
}
|
|
@@ -354,10 +347,10 @@ class ValidationMessageDirective {
|
|
|
354
347
|
ngOnDestroy() {
|
|
355
348
|
this.errorMessageTrigger.unsubscribe();
|
|
356
349
|
}
|
|
357
|
-
static
|
|
358
|
-
static
|
|
350
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: ValidationMessageDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
351
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.0.6", type: ValidationMessageDirective, isStandalone: true, selector: "[formControl]:not([withoutValidationErrors]),[formControlName]:not([withoutValidationErrors]),[formGroupName]:not([withoutValidationErrors]))", inputs: { errorStateMatcher: "errorStateMatcher", container: "container" }, ngImport: i0 });
|
|
359
352
|
}
|
|
360
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
353
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: ValidationMessageDirective, decorators: [{
|
|
361
354
|
type: Directive,
|
|
362
355
|
args: [{
|
|
363
356
|
standalone: true,
|
|
@@ -370,13 +363,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImpor
|
|
|
370
363
|
}] } });
|
|
371
364
|
|
|
372
365
|
class ValidationMessageContainerDirective {
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
}
|
|
376
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: ValidationMessageContainerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
377
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.1.3", type: ValidationMessageContainerDirective, isStandalone: true, selector: "[falconValidationMessageContainer]", exportAs: ["falconValidationMessageContainer"], ngImport: i0 }); }
|
|
366
|
+
container = inject(ViewContainerRef);
|
|
367
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: ValidationMessageContainerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
368
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.0.6", type: ValidationMessageContainerDirective, isStandalone: true, selector: "[falconValidationMessageContainer]", exportAs: ["falconValidationMessageContainer"], ngImport: i0 });
|
|
378
369
|
}
|
|
379
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
370
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: ValidationMessageContainerDirective, decorators: [{
|
|
380
371
|
type: Directive,
|
|
381
372
|
args: [{
|
|
382
373
|
selector: '[falconValidationMessageContainer]',
|
|
@@ -396,11 +387,9 @@ const controlProvider = {
|
|
|
396
387
|
useFactory: () => inject(ControlContainer, { skipSelf: true }),
|
|
397
388
|
};
|
|
398
389
|
class BaseControlBuilder {
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
this.formControl = new FormControl(this.control.config.value, this.bindValidators(this.control.config.validations));
|
|
403
|
-
}
|
|
390
|
+
parentGroupDir = inject(ControlContainer);
|
|
391
|
+
control = inject(CONTROL_DATA);
|
|
392
|
+
formControl = new FormControl(this.control.config.value, this.bindValidators(this.control.config.validations));
|
|
404
393
|
get parentFormGroup() {
|
|
405
394
|
return this.parentGroupDir.control;
|
|
406
395
|
}
|
|
@@ -417,43 +406,41 @@ class BaseControlBuilder {
|
|
|
417
406
|
}
|
|
418
407
|
return Validators.nullValidator;
|
|
419
408
|
}
|
|
420
|
-
static
|
|
421
|
-
static
|
|
409
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BaseControlBuilder, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
410
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.0.6", type: BaseControlBuilder, isStandalone: true, ngImport: i0 });
|
|
422
411
|
}
|
|
423
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
412
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: BaseControlBuilder, decorators: [{
|
|
424
413
|
type: Directive
|
|
425
414
|
}] });
|
|
426
415
|
|
|
427
416
|
class ComponentResolver {
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
};
|
|
446
|
-
}
|
|
417
|
+
loadedControlCompoments = new Map();
|
|
418
|
+
lazyControlComponents = {
|
|
419
|
+
textbox: () => import('./falcon-ng-core-textbox.component-FE3kg3HB.mjs').then(c => c.TextboxComponent),
|
|
420
|
+
textarea: () => import('./falcon-ng-core-textarea.component-DwUjAaxE.mjs').then(c => c.TextareaComponent),
|
|
421
|
+
select: () => Promise.resolve().then(function () { return select_component; }).then(c => c.SelectComponent),
|
|
422
|
+
datepicker: () => import('./falcon-ng-core-datepicker.component-DHmOAI3s.mjs').then(c => c.DatepickerComponent),
|
|
423
|
+
radio: () => import('./falcon-ng-core-radio.component-2XCIPO40.mjs').then(c => c.RadioComponent),
|
|
424
|
+
checkbox: () => import('./falcon-ng-core-checkbox.component-BzUd6jLa.mjs').then(c => c.CheckboxComponent),
|
|
425
|
+
button: () => Promise.resolve().then(function () { return button_component; }).then(c => c.ButtonComponent),
|
|
426
|
+
slideToggle: () => import('./falcon-ng-core-textarea.component-DwUjAaxE.mjs').then(c => c.TextareaComponent),
|
|
427
|
+
slider: () => import('./falcon-ng-core-textarea.component-DwUjAaxE.mjs').then(c => c.TextareaComponent),
|
|
428
|
+
buttonToggle: () => import('./falcon-ng-core-textarea.component-DwUjAaxE.mjs').then(c => c.TextareaComponent),
|
|
429
|
+
autocomplete: () => import('./falcon-ng-core-autocomplete.component-i7tTfsCt.mjs').then(c => c.AutocompleteComponent),
|
|
430
|
+
chip: () => import('./falcon-ng-core-textarea.component-DwUjAaxE.mjs').then(c => c.TextareaComponent),
|
|
431
|
+
editor: () => import('./falcon-ng-core-textarea.component-DwUjAaxE.mjs').then(c => c.TextareaComponent),
|
|
432
|
+
divider: () => import('./falcon-ng-core-textarea.component-DwUjAaxE.mjs').then(c => c.TextareaComponent),
|
|
433
|
+
};
|
|
447
434
|
resolver(controlType) {
|
|
448
435
|
const loadedComponent = this.loadedControlCompoments.get(controlType);
|
|
449
436
|
if (loadedComponent)
|
|
450
437
|
return of(loadedComponent);
|
|
451
438
|
return from(this.lazyControlComponents[controlType]()).pipe(tap(comp => this.loadedControlCompoments.set(controlType, comp)));
|
|
452
439
|
}
|
|
453
|
-
static
|
|
454
|
-
static
|
|
440
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: ComponentResolver, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
441
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: ComponentResolver, providedIn: 'root' });
|
|
455
442
|
}
|
|
456
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
443
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: ComponentResolver, decorators: [{
|
|
457
444
|
type: Injectable,
|
|
458
445
|
args: [{
|
|
459
446
|
providedIn: 'root',
|
|
@@ -461,6 +448,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImpor
|
|
|
461
448
|
}] });
|
|
462
449
|
|
|
463
450
|
class ControlBuilderComponent {
|
|
451
|
+
componentResolver;
|
|
452
|
+
cdref;
|
|
453
|
+
control;
|
|
464
454
|
constructor(componentResolver, cdref) {
|
|
465
455
|
this.componentResolver = componentResolver;
|
|
466
456
|
this.cdref = cdref;
|
|
@@ -468,11 +458,11 @@ class ControlBuilderComponent {
|
|
|
468
458
|
ngAfterContentChecked() {
|
|
469
459
|
this.cdref.detectChanges();
|
|
470
460
|
}
|
|
471
|
-
static
|
|
472
|
-
static
|
|
473
|
-
[ngComponentOutletInjector]="control.formControlName | controlInjection: control"></ng-container>`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"
|
|
461
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: ControlBuilderComponent, deps: [{ token: ComponentResolver }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
462
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.6", type: ControlBuilderComponent, isStandalone: false, selector: "falcon-control", inputs: { control: "control" }, ngImport: i0, template: `<ng-container class="w-full" [ngComponentOutlet]="componentResolver.resolver(control.controlType) | async"
|
|
463
|
+
[ngComponentOutletInjector]="control.formControlName | controlInjection: control"></ng-container>`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "pipe", type: ControlInjectionPipe, name: "controlInjection" }], viewProviders: [controlProvider] });
|
|
474
464
|
}
|
|
475
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
465
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: ControlBuilderComponent, decorators: [{
|
|
476
466
|
type: Component,
|
|
477
467
|
args: [{
|
|
478
468
|
selector: 'falcon-control',
|
|
@@ -487,20 +477,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImpor
|
|
|
487
477
|
}] } });
|
|
488
478
|
|
|
489
479
|
class CardComponent {
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
}
|
|
494
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: CardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
495
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.3", type: CardComponent, isStandalone: false, selector: "fal-card", inputs: { backgroundColor: "backgroundColor", class: "class" }, host: { properties: { "style.--mat-card-elevated-container-shape": "\"10px\"", "style.--mat-card-elevated-container-elevation": "\"0px 0px 0px 0px rgba(0, 0, 0, 0.12), 0px 0px 0px 1px rgba(0, 0, 0, 0.12), 0px 0px 1px 1px rgba(0.12, 0.12, 0.12, 0.12)\"" } }, ngImport: i0, template: `
|
|
480
|
+
backgroundColor = undefined;
|
|
481
|
+
class = undefined;
|
|
482
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: CardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
483
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.6", type: CardComponent, isStandalone: false, selector: "fal-card", inputs: { backgroundColor: "backgroundColor", class: "class" }, host: { properties: { "style.--mat-card-elevated-container-shape": "\"10px\"", "style.--mat-card-elevated-container-elevation": "\"0px 0px 0px 0px rgba(0, 0, 0, 0.12), 0px 0px 0px 1px rgba(0, 0, 0, 0.12), 0px 0px 1px 1px rgba(0.12, 0.12, 0.12, 0.12)\"" } }, ngImport: i0, template: `
|
|
496
484
|
<mat-card [ngClass]="class" [style.backgroundColor]="backgroundColor">
|
|
497
485
|
<mat-card-content>
|
|
498
486
|
<ng-content></ng-content>
|
|
499
487
|
</mat-card-content>
|
|
500
488
|
</mat-card>
|
|
501
|
-
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i1$1.MatCardContent, selector: "mat-card-content" }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
489
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i1$1.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i1$1.MatCardContent, selector: "mat-card-content" }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }] });
|
|
502
490
|
}
|
|
503
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
491
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: CardComponent, decorators: [{
|
|
504
492
|
type: Component,
|
|
505
493
|
args: [{
|
|
506
494
|
selector: 'fal-card',
|
|
@@ -526,12 +514,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImpor
|
|
|
526
514
|
}] } });
|
|
527
515
|
|
|
528
516
|
class ButtonComponent {
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
}
|
|
517
|
+
label;
|
|
518
|
+
type = 'submit';
|
|
519
|
+
appearance = '';
|
|
520
|
+
disabled = false;
|
|
521
|
+
click = new EventEmitter();
|
|
535
522
|
ngOnDestroy() {
|
|
536
523
|
this.click.complete();
|
|
537
524
|
}
|
|
@@ -542,8 +529,8 @@ class ButtonComponent {
|
|
|
542
529
|
}
|
|
543
530
|
return false;
|
|
544
531
|
}
|
|
545
|
-
static
|
|
546
|
-
static
|
|
532
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
533
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.6", type: ButtonComponent, isStandalone: false, selector: "fal-button", inputs: { label: "label", type: "type", appearance: "appearance", disabled: "disabled" }, outputs: { click: "click" }, ngImport: i0, template: `
|
|
547
534
|
<button
|
|
548
535
|
[matButton]="appearance"
|
|
549
536
|
[type]="type"
|
|
@@ -554,9 +541,9 @@ class ButtonComponent {
|
|
|
554
541
|
<span class="mt-1">{{ label }}</span>
|
|
555
542
|
</span>
|
|
556
543
|
</button>
|
|
557
|
-
`, isInline: true, dependencies: [{ kind: "component", type: i1$2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }] });
|
|
544
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i1$2.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }] });
|
|
558
545
|
}
|
|
559
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
546
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: ButtonComponent, decorators: [{
|
|
560
547
|
type: Component,
|
|
561
548
|
args: [{
|
|
562
549
|
selector: 'fal-button',
|
|
@@ -594,14 +581,12 @@ var button_component = /*#__PURE__*/Object.freeze({
|
|
|
594
581
|
});
|
|
595
582
|
|
|
596
583
|
class GroupControlBuilderComponent {
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
});
|
|
604
|
-
}
|
|
584
|
+
formGroupName = undefined;
|
|
585
|
+
innerGroup = new FormGroup({});
|
|
586
|
+
parentContainer = inject(ControlContainer, {
|
|
587
|
+
optional: true,
|
|
588
|
+
skipSelf: true,
|
|
589
|
+
});
|
|
605
590
|
get getParentFormGroup() {
|
|
606
591
|
return this.parentContainer?.control;
|
|
607
592
|
}
|
|
@@ -617,12 +602,12 @@ class GroupControlBuilderComponent {
|
|
|
617
602
|
parent.removeControl(this.formGroupName);
|
|
618
603
|
}
|
|
619
604
|
}
|
|
620
|
-
static
|
|
621
|
-
static
|
|
605
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: GroupControlBuilderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
606
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.0.6", type: GroupControlBuilderComponent, isStandalone: false, selector: "falcon-group-control", inputs: { formGroupName: "formGroupName" }, ngImport: i0, template: `<div [formGroup]="innerGroup">
|
|
622
607
|
<ng-content></ng-content>
|
|
623
|
-
</div>`, isInline: true, dependencies: [{ kind: "directive", type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }] });
|
|
608
|
+
</div>`, isInline: true, dependencies: [{ kind: "directive", type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }] });
|
|
624
609
|
}
|
|
625
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
610
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: GroupControlBuilderComponent, decorators: [{
|
|
626
611
|
type: Component,
|
|
627
612
|
args: [{
|
|
628
613
|
selector: 'falcon-group-control',
|
|
@@ -637,8 +622,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImpor
|
|
|
637
622
|
}] } });
|
|
638
623
|
|
|
639
624
|
class FalconCoreModule {
|
|
640
|
-
static
|
|
641
|
-
static
|
|
625
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: FalconCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
626
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.6", ngImport: i0, type: FalconCoreModule, declarations: [ControlBuilderComponent,
|
|
642
627
|
CardComponent,
|
|
643
628
|
ButtonComponent,
|
|
644
629
|
GroupControlBuilderComponent], imports: [AngularmaterialModule,
|
|
@@ -648,12 +633,12 @@ class FalconCoreModule {
|
|
|
648
633
|
ControlBuilderComponent,
|
|
649
634
|
CardComponent,
|
|
650
635
|
ButtonComponent,
|
|
651
|
-
GroupControlBuilderComponent] });
|
|
652
|
-
static
|
|
636
|
+
GroupControlBuilderComponent] });
|
|
637
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: FalconCoreModule, imports: [AngularmaterialModule,
|
|
653
638
|
CommonModule,
|
|
654
|
-
ReactiveFormsModule, AngularmaterialModule] });
|
|
639
|
+
ReactiveFormsModule, AngularmaterialModule] });
|
|
655
640
|
}
|
|
656
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
641
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: FalconCoreModule, decorators: [{
|
|
657
642
|
type: NgModule,
|
|
658
643
|
args: [{
|
|
659
644
|
declarations: [
|
|
@@ -678,6 +663,158 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImpor
|
|
|
678
663
|
}]
|
|
679
664
|
}] });
|
|
680
665
|
|
|
666
|
+
/**
|
|
667
|
+
* @description
|
|
668
|
+
* Enum use for setting the form control Types.
|
|
669
|
+
* @usageNotes
|
|
670
|
+
* ```ts
|
|
671
|
+
* export class Textbox extends BaseControl<string>{
|
|
672
|
+
* override controlType = ControlType.Select;
|
|
673
|
+
* }
|
|
674
|
+
* ```
|
|
675
|
+
*/
|
|
676
|
+
var Control;
|
|
677
|
+
(function (Control) {
|
|
678
|
+
Control["TextBox"] = "textbox";
|
|
679
|
+
Control["TextArea"] = "textarea";
|
|
680
|
+
Control["Select"] = "select";
|
|
681
|
+
Control["DatePicker"] = "datepicker";
|
|
682
|
+
Control["Radio"] = "radio";
|
|
683
|
+
Control["Checkbox"] = "checkbox";
|
|
684
|
+
Control["Button"] = "button";
|
|
685
|
+
Control["SlideToggle"] = "slideToggle";
|
|
686
|
+
Control["Slider"] = "slider";
|
|
687
|
+
Control["ButtonToggle"] = "buttonToggle";
|
|
688
|
+
Control["AutoComplete"] = "autocomplete";
|
|
689
|
+
Control["Chip"] = "chip";
|
|
690
|
+
Control["Editor"] = "editor";
|
|
691
|
+
Control["Divider"] = "divider";
|
|
692
|
+
})(Control || (Control = {}));
|
|
693
|
+
/**
|
|
694
|
+
* @description
|
|
695
|
+
* Enum use for Appearance of the control.
|
|
696
|
+
* @usageNotes
|
|
697
|
+
* Before and After property should be only use for Checkbox and Radio button
|
|
698
|
+
* ```ts
|
|
699
|
+
* if (componentType == ComponentType.Radio && componentType == ComponentType.Checkbox) THEN
|
|
700
|
+
* only use Appearance Before and After
|
|
701
|
+
* ```
|
|
702
|
+
*/
|
|
703
|
+
var Appearance;
|
|
704
|
+
(function (Appearance) {
|
|
705
|
+
/**
|
|
706
|
+
* @usageNotes Should be only use for input, textbox, and select
|
|
707
|
+
*/
|
|
708
|
+
Appearance["Plain"] = "plain";
|
|
709
|
+
Appearance["Legacy"] = "legacy";
|
|
710
|
+
Appearance["Standard"] = "standard";
|
|
711
|
+
Appearance["Fill"] = "fill";
|
|
712
|
+
Appearance["Outline"] = "outline";
|
|
713
|
+
/**
|
|
714
|
+
* @usageNotes Should be only use for label position
|
|
715
|
+
*/
|
|
716
|
+
Appearance["Before"] = "before";
|
|
717
|
+
Appearance["After"] = "after";
|
|
718
|
+
/**
|
|
719
|
+
* @usageNotes Should be only use for select
|
|
720
|
+
*/
|
|
721
|
+
Appearance["Multiple"] = "true";
|
|
722
|
+
/**
|
|
723
|
+
* @usageNotes Should be only use for Buttom
|
|
724
|
+
*/
|
|
725
|
+
Appearance[Appearance["Basic"] = 0] = "Basic";
|
|
726
|
+
Appearance[Appearance["Raised"] = 1] = "Raised";
|
|
727
|
+
Appearance[Appearance["Stroked"] = 2] = "Stroked";
|
|
728
|
+
Appearance[Appearance["Flat"] = 3] = "Flat";
|
|
729
|
+
Appearance[Appearance["Icon"] = 4] = "Icon";
|
|
730
|
+
Appearance[Appearance["FAB"] = 5] = "FAB";
|
|
731
|
+
Appearance[Appearance["MiniFAB"] = 6] = "MiniFAB";
|
|
732
|
+
Appearance[Appearance["routeLink"] = 7] = "routeLink";
|
|
733
|
+
Appearance[Appearance["routeHref"] = 8] = "routeHref";
|
|
734
|
+
})(Appearance || (Appearance = {}));
|
|
735
|
+
/**
|
|
736
|
+
* @description
|
|
737
|
+
* Enum use for setting the attribute Types.
|
|
738
|
+
* @usageNotes
|
|
739
|
+
* ```ts
|
|
740
|
+
* componentProperty: {
|
|
741
|
+
* attrType: InputTypes.Text
|
|
742
|
+
* }
|
|
743
|
+
* ```
|
|
744
|
+
*/
|
|
745
|
+
var InputTypes;
|
|
746
|
+
(function (InputTypes) {
|
|
747
|
+
InputTypes["Color"] = "color";
|
|
748
|
+
InputTypes["Date"] = "date";
|
|
749
|
+
InputTypes["DatetimeLocal"] = "datetime-local";
|
|
750
|
+
InputTypes["Email"] = "email";
|
|
751
|
+
InputTypes["Month"] = "month";
|
|
752
|
+
InputTypes["Number"] = "number";
|
|
753
|
+
InputTypes["Password"] = "password";
|
|
754
|
+
InputTypes["Search"] = "search";
|
|
755
|
+
InputTypes["Tel"] = "tel";
|
|
756
|
+
InputTypes["Text"] = "text";
|
|
757
|
+
InputTypes["Time"] = "time";
|
|
758
|
+
InputTypes["Url"] = "url";
|
|
759
|
+
InputTypes["Week"] = "week";
|
|
760
|
+
/**
|
|
761
|
+
* @usageNotes Should be only use for Buttom
|
|
762
|
+
*/
|
|
763
|
+
InputTypes["Button"] = "button";
|
|
764
|
+
InputTypes["Submit"] = "submit";
|
|
765
|
+
InputTypes["DragDrop"] = "dragDrop";
|
|
766
|
+
})(InputTypes || (InputTypes = {}));
|
|
767
|
+
/**
|
|
768
|
+
* @description
|
|
769
|
+
* Enum use for setting HTTP method.
|
|
770
|
+
* @usageNotes
|
|
771
|
+
* ```ts
|
|
772
|
+
* this.genericHttpClientService.Delete(this.deleteUserUrl).subscribe(item => {}, error => {});
|
|
773
|
+
* ```
|
|
774
|
+
*/
|
|
775
|
+
var HttpMethod;
|
|
776
|
+
(function (HttpMethod) {
|
|
777
|
+
HttpMethod["Get"] = "GET";
|
|
778
|
+
HttpMethod["Post"] = "POST";
|
|
779
|
+
HttpMethod["Put"] = "PUT";
|
|
780
|
+
HttpMethod["Patch"] = "PATCH";
|
|
781
|
+
HttpMethod["Delete"] = "DELETE";
|
|
782
|
+
})(HttpMethod || (HttpMethod = {}));
|
|
783
|
+
/**
|
|
784
|
+
* @description
|
|
785
|
+
* Enum use for Table actions
|
|
786
|
+
*/
|
|
787
|
+
var TableAction;
|
|
788
|
+
(function (TableAction) {
|
|
789
|
+
TableAction[TableAction["View"] = 0] = "View";
|
|
790
|
+
TableAction[TableAction["Edit"] = 1] = "Edit";
|
|
791
|
+
TableAction[TableAction["Delete"] = 2] = "Delete";
|
|
792
|
+
TableAction[TableAction["RightArrow"] = 3] = "RightArrow";
|
|
793
|
+
})(TableAction || (TableAction = {}));
|
|
794
|
+
/**
|
|
795
|
+
* @description
|
|
796
|
+
* Enum use for setting the Floating label.
|
|
797
|
+
* @usageNotes
|
|
798
|
+
* ```ts
|
|
799
|
+
* componentProperty: {
|
|
800
|
+
* floatLabel: Floatinglabel.Always
|
|
801
|
+
* }
|
|
802
|
+
* ```
|
|
803
|
+
*/
|
|
804
|
+
var Floatinglabel;
|
|
805
|
+
(function (Floatinglabel) {
|
|
806
|
+
Floatinglabel["Auto"] = "auto";
|
|
807
|
+
Floatinglabel["Always"] = "always";
|
|
808
|
+
})(Floatinglabel || (Floatinglabel = {}));
|
|
809
|
+
var LoggingLevel;
|
|
810
|
+
(function (LoggingLevel) {
|
|
811
|
+
LoggingLevel["None"] = "None";
|
|
812
|
+
LoggingLevel["Verbose"] = "Verbose";
|
|
813
|
+
LoggingLevel["Info"] = "Info";
|
|
814
|
+
LoggingLevel["Warnings"] = "Warnings";
|
|
815
|
+
LoggingLevel["Errors"] = "Errors";
|
|
816
|
+
})(LoggingLevel || (LoggingLevel = {}));
|
|
817
|
+
|
|
681
818
|
/**
|
|
682
819
|
* @description
|
|
683
820
|
* Class use for setting the control properties.
|
|
@@ -697,13 +834,39 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.3", ngImpor
|
|
|
697
834
|
** ```
|
|
698
835
|
*/
|
|
699
836
|
class BaseControl {
|
|
837
|
+
value;
|
|
838
|
+
formControlName;
|
|
839
|
+
label;
|
|
840
|
+
labelPosition;
|
|
841
|
+
order;
|
|
842
|
+
controlType;
|
|
843
|
+
type;
|
|
844
|
+
disabled;
|
|
845
|
+
options;
|
|
846
|
+
validations;
|
|
847
|
+
appearance;
|
|
848
|
+
class;
|
|
849
|
+
style;
|
|
850
|
+
placeHolder;
|
|
851
|
+
floatLabel;
|
|
852
|
+
hint;
|
|
853
|
+
suffix;
|
|
854
|
+
prefix;
|
|
855
|
+
textAreaProperty;
|
|
856
|
+
event;
|
|
857
|
+
selectProperty;
|
|
858
|
+
color;
|
|
859
|
+
sliderProperty;
|
|
860
|
+
chipSelectedOptions;
|
|
861
|
+
editorProperty;
|
|
862
|
+
formArray;
|
|
700
863
|
constructor(options) {
|
|
701
864
|
this.value = options.value;
|
|
702
865
|
this.formControlName = options.formControlName || '';
|
|
703
866
|
this.label = options.label || undefined;
|
|
704
867
|
this.labelPosition = options.labelPosition || 'before' || 'after';
|
|
705
868
|
this.order = options.order === undefined ? 1 : options.order;
|
|
706
|
-
this.controlType = options.controlType ||
|
|
869
|
+
this.controlType = options.controlType || Control.Button;
|
|
707
870
|
this.type = options.type || '';
|
|
708
871
|
this.disabled = options.disabled || false;
|
|
709
872
|
this.options = options.options || [];
|
|
@@ -729,116 +892,71 @@ class BaseControl {
|
|
|
729
892
|
}
|
|
730
893
|
|
|
731
894
|
class AutoComplete extends BaseControl {
|
|
732
|
-
|
|
733
|
-
super(...arguments);
|
|
734
|
-
this.controlType = "autocomplete" /* Control.AutoComplete */;
|
|
735
|
-
}
|
|
895
|
+
controlType = Control.AutoComplete;
|
|
736
896
|
}
|
|
737
897
|
|
|
738
898
|
class Button extends BaseControl {
|
|
739
|
-
|
|
740
|
-
super(...arguments);
|
|
741
|
-
this.controlType = "button" /* Control.Button */;
|
|
742
|
-
}
|
|
899
|
+
controlType = Control.Button;
|
|
743
900
|
}
|
|
744
901
|
|
|
745
902
|
class ButtonToggle extends BaseControl {
|
|
746
|
-
|
|
747
|
-
super(...arguments);
|
|
748
|
-
this.controlType = "buttonToggle" /* Control.ButtonToggle */;
|
|
749
|
-
}
|
|
903
|
+
controlType = Control.ButtonToggle;
|
|
750
904
|
}
|
|
751
905
|
|
|
752
906
|
class CheckBox extends BaseControl {
|
|
753
|
-
|
|
754
|
-
super(...arguments);
|
|
755
|
-
this.controlType = "checkbox" /* Control.Checkbox */;
|
|
756
|
-
}
|
|
907
|
+
controlType = Control.Checkbox;
|
|
757
908
|
}
|
|
758
909
|
|
|
759
910
|
class Chip extends BaseControl {
|
|
760
|
-
|
|
761
|
-
super(...arguments);
|
|
762
|
-
this.controlType = "chip" /* Control.Chip */;
|
|
763
|
-
}
|
|
911
|
+
controlType = Control.Chip;
|
|
764
912
|
}
|
|
765
913
|
|
|
766
914
|
class DatePicker extends BaseControl {
|
|
767
|
-
|
|
768
|
-
super(...arguments);
|
|
769
|
-
this.controlType = "datepicker" /* Control.DatePicker */;
|
|
770
|
-
}
|
|
915
|
+
controlType = Control.DatePicker;
|
|
771
916
|
}
|
|
772
917
|
|
|
773
918
|
class Divider extends BaseControl {
|
|
774
|
-
|
|
775
|
-
super(...arguments);
|
|
776
|
-
this.controlType = "divider" /* Control.Divider */;
|
|
777
|
-
}
|
|
919
|
+
controlType = Control.Divider;
|
|
778
920
|
}
|
|
779
921
|
|
|
780
922
|
class Editor extends BaseControl {
|
|
781
|
-
|
|
782
|
-
super(...arguments);
|
|
783
|
-
this.controlType = "editor" /* Control.Editor */;
|
|
784
|
-
}
|
|
923
|
+
controlType = Control.Editor;
|
|
785
924
|
}
|
|
786
925
|
|
|
787
926
|
class Radio extends BaseControl {
|
|
788
|
-
|
|
789
|
-
super(...arguments);
|
|
790
|
-
this.controlType = "radio" /* Control.Radio */;
|
|
791
|
-
}
|
|
927
|
+
controlType = Control.Radio;
|
|
792
928
|
}
|
|
793
929
|
|
|
794
930
|
class RichTextEditor extends BaseControl {
|
|
795
|
-
|
|
796
|
-
super(...arguments);
|
|
797
|
-
this.controlType = "editor" /* Control.Editor */;
|
|
798
|
-
}
|
|
931
|
+
controlType = Control.Editor;
|
|
799
932
|
}
|
|
800
933
|
|
|
801
934
|
class Select extends BaseControl {
|
|
802
|
-
|
|
803
|
-
super(...arguments);
|
|
804
|
-
this.controlType = "select" /* Control.Select */;
|
|
805
|
-
}
|
|
935
|
+
controlType = Control.Select;
|
|
806
936
|
}
|
|
807
937
|
|
|
808
938
|
class Slider extends BaseControl {
|
|
809
|
-
|
|
810
|
-
super(...arguments);
|
|
811
|
-
this.controlType = "slider" /* Control.Slider */;
|
|
812
|
-
}
|
|
939
|
+
controlType = Control.Slider;
|
|
813
940
|
}
|
|
814
941
|
|
|
815
942
|
class SliderToggle extends BaseControl {
|
|
816
|
-
|
|
817
|
-
super(...arguments);
|
|
818
|
-
this.controlType = "slideToggle" /* Control.SlideToggle */;
|
|
819
|
-
}
|
|
943
|
+
controlType = Control.SlideToggle;
|
|
820
944
|
}
|
|
821
945
|
|
|
822
946
|
class Textarea extends BaseControl {
|
|
823
|
-
|
|
824
|
-
super(...arguments);
|
|
825
|
-
this.controlType = "textarea" /* Control.TextArea */;
|
|
826
|
-
}
|
|
947
|
+
controlType = Control.TextArea;
|
|
827
948
|
}
|
|
828
949
|
|
|
829
950
|
class Textbox extends BaseControl {
|
|
830
|
-
|
|
831
|
-
super(...arguments);
|
|
832
|
-
this.controlType = "textbox" /* Control.TextBox */;
|
|
833
|
-
}
|
|
951
|
+
controlType = Control.TextBox;
|
|
834
952
|
}
|
|
835
953
|
|
|
836
954
|
class SelectComponent extends BaseControlBuilder {
|
|
837
955
|
selectionChange(event) {
|
|
838
956
|
this.control.config.event.change?.emit(event);
|
|
839
957
|
}
|
|
840
|
-
static
|
|
841
|
-
static
|
|
958
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: SelectComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
959
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.6", type: SelectComponent, isStandalone: true, selector: "fal-select", usesInheritance: true, ngImport: i0, template: `<mat-form-field
|
|
842
960
|
[appearance]="control.config.appearance"
|
|
843
961
|
class="w-full">
|
|
844
962
|
@if(control.config.label){
|
|
@@ -859,9 +977,9 @@ class SelectComponent extends BaseControlBuilder {
|
|
|
859
977
|
</mat-form-field>
|
|
860
978
|
<ng-container
|
|
861
979
|
falconValidationMessageContainer
|
|
862
|
-
#containerDir="falconValidationMessageContainer" />`, isInline: true, styles: [".w-full{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: MatInputModule }, { kind: "component", type: i1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i1.MatLabel, selector: "mat-label" }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "ngmodule", type: MatSelectModule }, { kind: "component", type: i2$1.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: i2$2.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "ngmodule", type: i2.CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: i4.ReactiveFormsModule }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: ValidationMessageDirective, selector: "[formControl]:not([withoutValidationErrors]),[formControlName]:not([withoutValidationErrors]),[formGroupName]:not([withoutValidationErrors]))", inputs: ["errorStateMatcher", "container"] }, { kind: "directive", type: ValidationMessageContainerDirective, selector: "[falconValidationMessageContainer]", exportAs: ["falconValidationMessageContainer"] }], viewProviders: [controlProvider] });
|
|
980
|
+
#containerDir="falconValidationMessageContainer" />`, isInline: true, styles: [".w-full{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: MatInputModule }, { kind: "component", type: i1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i1.MatLabel, selector: "mat-label" }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "ngmodule", type: MatSelectModule }, { kind: "component", type: i2$1.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: i2$2.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "ngmodule", type: i2.CommonModule }, { kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "ngmodule", type: i4.ReactiveFormsModule }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: ValidationMessageDirective, selector: "[formControl]:not([withoutValidationErrors]),[formControlName]:not([withoutValidationErrors]),[formGroupName]:not([withoutValidationErrors]))", inputs: ["errorStateMatcher", "container"] }, { kind: "directive", type: ValidationMessageContainerDirective, selector: "[falconValidationMessageContainer]", exportAs: ["falconValidationMessageContainer"] }], viewProviders: [controlProvider] });
|
|
863
981
|
}
|
|
864
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
982
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.6", ngImport: i0, type: SelectComponent, decorators: [{
|
|
865
983
|
type: Component,
|
|
866
984
|
args: [{ selector: 'fal-select', imports: [
|
|
867
985
|
MatInputModule,
|
|
@@ -905,5 +1023,5 @@ var select_component = /*#__PURE__*/Object.freeze({
|
|
|
905
1023
|
* Generated bundle index. Do not edit.
|
|
906
1024
|
*/
|
|
907
1025
|
|
|
908
|
-
export {
|
|
909
|
-
//# sourceMappingURL=falcon-ng-core-falcon-ng-core-
|
|
1026
|
+
export { Appearance as A, BaseControlBuilder as B, Control as C, DatePicker as D, Editor as E, FalconCoreModule as F, GroupControlBuilderComponent as G, HttpMethod as H, InputTypes as I, LoggingLevel as L, Radio as R, Select as S, TableAction as T, ValidationMessageDirective as V, ValidationMessageContainerDirective as a, Floatinglabel as b, controlProvider as c, BaseControl as d, AutoComplete as e, Button as f, ButtonToggle as g, CheckBox as h, Chip as i, Divider as j, RichTextEditor as k, Slider as l, SliderToggle as m, Textarea as n, Textbox as o, ControlBuilderComponent as p, AngularmaterialModule as q, CardComponent as r, sharedControlDeps as s, ButtonComponent as t, SelectComponent as u };
|
|
1027
|
+
//# sourceMappingURL=falcon-ng-core-falcon-ng-core-Dd_oxTIJ.mjs.map
|