@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.
Files changed (50) hide show
  1. package/fesm2022/{falcon-ng-core-datepicker.component-CPsDyBhC.mjs → falcon-ng-core-datepicker.component-R3QbVwh9.mjs} +5 -5
  2. package/fesm2022/{falcon-ng-core-datepicker.component-CPsDyBhC.mjs.map → falcon-ng-core-datepicker.component-R3QbVwh9.mjs.map} +1 -1
  3. package/fesm2022/{falcon-ng-core-falcon-ng-core-Bi8UTq2i.mjs → falcon-ng-core-falcon-ng-core-NF6Np0dr.mjs} +61 -61
  4. package/fesm2022/{falcon-ng-core-falcon-ng-core-Bi8UTq2i.mjs.map → falcon-ng-core-falcon-ng-core-NF6Np0dr.mjs.map} +1 -1
  5. package/fesm2022/{falcon-ng-core-textarea.component-BA3CQ4Sm.mjs → falcon-ng-core-textarea.component-DWO3hiq2.mjs} +5 -5
  6. package/fesm2022/{falcon-ng-core-textarea.component-BA3CQ4Sm.mjs.map → falcon-ng-core-textarea.component-DWO3hiq2.mjs.map} +1 -1
  7. package/fesm2022/{falcon-ng-core-textbox.component-D4cexFb4.mjs → falcon-ng-core-textbox.component-Cc4_KuFY.mjs} +5 -5
  8. package/fesm2022/{falcon-ng-core-textbox.component-D4cexFb4.mjs.map → falcon-ng-core-textbox.component-Cc4_KuFY.mjs.map} +1 -1
  9. package/fesm2022/falcon-ng-core.mjs +1 -1
  10. package/index.d.ts +735 -3
  11. package/package.json +3 -3
  12. package/lib/falcon-core/angularmaterial.module.d.ts +0 -49
  13. package/lib/falcon-core/component/button/button.component.d.ts +0 -14
  14. package/lib/falcon-core/component/card/card.component.d.ts +0 -7
  15. package/lib/falcon-core/component/datepicker/datepicker.component.d.ts +0 -6
  16. package/lib/falcon-core/component/select/select.component.d.ts +0 -8
  17. package/lib/falcon-core/component/textarea/textarea.component.d.ts +0 -6
  18. package/lib/falcon-core/component/textbox/textbox.component.d.ts +0 -6
  19. package/lib/falcon-core/component/validation-error/error-message.pipe.d.ts +0 -8
  20. package/lib/falcon-core/component/validation-error/error-state-matcher.service.d.ts +0 -8
  21. package/lib/falcon-core/component/validation-error/validation-error-message-token.d.ts +0 -7
  22. package/lib/falcon-core/component/validation-error/validation-error.component.d.ts +0 -9
  23. package/lib/falcon-core/component/validation-error/validation-message-container.directive.d.ts +0 -7
  24. package/lib/falcon-core/component/validation-error/validation-message.directive.d.ts +0 -18
  25. package/lib/falcon-core/component-resolver.d.ts +0 -14
  26. package/lib/falcon-core/control-builder/base-control-builder.d.ts +0 -18
  27. package/lib/falcon-core/control-builder/control-builder.component.d.ts +0 -13
  28. package/lib/falcon-core/control-builder/control-data-builder.d.ts +0 -7
  29. package/lib/falcon-core/control-builder/control-injection.pipe.d.ts +0 -9
  30. package/lib/falcon-core/control-type/AutoComplete.d.ts +0 -5
  31. package/lib/falcon-core/control-type/Button.d.ts +0 -5
  32. package/lib/falcon-core/control-type/ButtonToggle.d.ts +0 -5
  33. package/lib/falcon-core/control-type/CheckBox.d.ts +0 -5
  34. package/lib/falcon-core/control-type/Chip.d.ts +0 -5
  35. package/lib/falcon-core/control-type/DatePicker.d.ts +0 -5
  36. package/lib/falcon-core/control-type/Divider.d.ts +0 -5
  37. package/lib/falcon-core/control-type/Editor.d.ts +0 -5
  38. package/lib/falcon-core/control-type/Radio.d.ts +0 -5
  39. package/lib/falcon-core/control-type/RichTextEditor.d.ts +0 -5
  40. package/lib/falcon-core/control-type/Select.d.ts +0 -5
  41. package/lib/falcon-core/control-type/SlideToggle.d.ts +0 -5
  42. package/lib/falcon-core/control-type/Slider.d.ts +0 -5
  43. package/lib/falcon-core/control-type/Textarea.d.ts +0 -5
  44. package/lib/falcon-core/control-type/Textbox.d.ts +0 -5
  45. package/lib/falcon-core/falcon-core.module.d.ts +0 -12
  46. package/lib/falcon-core/model/base-control.d.ts +0 -83
  47. package/lib/falcon-core/model/enum.d.ts +0 -144
  48. package/lib/falcon-core/model/interface.d.ts +0 -299
  49. package/lib/falcon-core/model/ivalidator.d.ts +0 -19
  50. package/public-api.d.ts +0 -25
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@falcon-ng/core",
3
- "version": "0.0.27",
3
+ "version": "0.0.28",
4
4
  "peerDependencies": {
5
- "@angular/common": "^19.2.7",
6
- "@angular/core": "^19.2.7"
5
+ "@angular/common": "^20.0.5",
6
+ "@angular/core": "^20.0.5"
7
7
  },
8
8
  "dependencies": {
9
9
  "tslib": "^2.3.0"
@@ -1,49 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "@angular/cdk/a11y";
3
- import * as i2 from "@angular/cdk/clipboard";
4
- import * as i3 from "@angular/cdk/stepper";
5
- import * as i4 from "@angular/cdk/table";
6
- import * as i5 from "@angular/cdk/tree";
7
- import * as i6 from "@angular/cdk/drag-drop";
8
- import * as i7 from "@angular/material/autocomplete";
9
- import * as i8 from "@angular/material/badge";
10
- import * as i9 from "@angular/material/bottom-sheet";
11
- import * as i10 from "@angular/material/button";
12
- import * as i11 from "@angular/material/button-toggle";
13
- import * as i12 from "@angular/material/card";
14
- import * as i13 from "@angular/material/checkbox";
15
- import * as i14 from "@angular/material/chips";
16
- import * as i15 from "@angular/material/stepper";
17
- import * as i16 from "@angular/material/datepicker";
18
- import * as i17 from "@angular/material/dialog";
19
- import * as i18 from "@angular/material/divider";
20
- import * as i19 from "@angular/material/expansion";
21
- import * as i20 from "@angular/material/grid-list";
22
- import * as i21 from "@angular/material/icon";
23
- import * as i22 from "@angular/material/input";
24
- import * as i23 from "@angular/material/list";
25
- import * as i24 from "@angular/material/menu";
26
- import * as i25 from "@angular/material/core";
27
- import * as i26 from "@angular/material/paginator";
28
- import * as i27 from "@angular/material/progress-bar";
29
- import * as i28 from "@angular/material/progress-spinner";
30
- import * as i29 from "@angular/material/radio";
31
- import * as i30 from "@angular/material/select";
32
- import * as i31 from "@angular/material/sidenav";
33
- import * as i32 from "@angular/material/slider";
34
- import * as i33 from "@angular/material/slide-toggle";
35
- import * as i34 from "@angular/material/snack-bar";
36
- import * as i35 from "@angular/material/sort";
37
- import * as i36 from "@angular/material/table";
38
- import * as i37 from "@angular/material/tabs";
39
- import * as i38 from "@angular/material/toolbar";
40
- import * as i39 from "@angular/material/tooltip";
41
- import * as i40 from "@angular/material/tree";
42
- import * as i41 from "@angular/cdk/overlay";
43
- import * as i42 from "@angular/cdk/portal";
44
- import * as i43 from "@angular/cdk/scrolling";
45
- export declare class AngularmaterialModule {
46
- static ɵfac: i0.ɵɵFactoryDeclaration<AngularmaterialModule, never>;
47
- static ɵmod: i0.ɵɵNgModuleDeclaration<AngularmaterialModule, never, never, [typeof i1.A11yModule, typeof i2.ClipboardModule, typeof i3.CdkStepperModule, typeof i4.CdkTableModule, typeof i5.CdkTreeModule, typeof i6.DragDropModule, typeof i7.MatAutocompleteModule, typeof i8.MatBadgeModule, typeof i9.MatBottomSheetModule, typeof i10.MatButtonModule, typeof i11.MatButtonToggleModule, typeof i12.MatCardModule, typeof i13.MatCheckboxModule, typeof i14.MatChipsModule, typeof i15.MatStepperModule, typeof i16.MatDatepickerModule, typeof i17.MatDialogModule, typeof i18.MatDividerModule, typeof i19.MatExpansionModule, typeof i20.MatGridListModule, typeof i21.MatIconModule, typeof i22.MatInputModule, typeof i23.MatListModule, typeof i24.MatMenuModule, typeof i25.MatNativeDateModule, typeof i26.MatPaginatorModule, typeof i27.MatProgressBarModule, typeof i28.MatProgressSpinnerModule, typeof i29.MatRadioModule, typeof i25.MatRippleModule, typeof i30.MatSelectModule, typeof i31.MatSidenavModule, typeof i32.MatSliderModule, typeof i33.MatSlideToggleModule, typeof i34.MatSnackBarModule, typeof i35.MatSortModule, typeof i36.MatTableModule, typeof i37.MatTabsModule, typeof i38.MatToolbarModule, typeof i39.MatTooltipModule, typeof i40.MatTreeModule, typeof i41.OverlayModule, typeof i42.PortalModule, typeof i43.ScrollingModule]>;
48
- static ɵinj: i0.ɵɵInjectorDeclaration<AngularmaterialModule>;
49
- }
@@ -1,14 +0,0 @@
1
- import { EventEmitter, OnDestroy } from '@angular/core';
2
- import { ThemePalette } from '@angular/material/core';
3
- import * as i0 from "@angular/core";
4
- export declare class ButtonComponent implements OnDestroy {
5
- label: string;
6
- type: 'submit' | 'reset' | 'button';
7
- color: ThemePalette;
8
- disabled: boolean;
9
- click: EventEmitter<MouseEvent>;
10
- ngOnDestroy(): void;
11
- onClick(event: MouseEvent): boolean;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "fal-button", never, { "label": { "alias": "label"; "required": true; }; "type": { "alias": "type"; "required": true; }; "color": { "alias": "color"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "click": "click"; }, never, never, false, never>;
14
- }
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class CardComponent {
3
- backgroundColor: string | undefined;
4
- class: string | undefined;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<CardComponent, never>;
6
- static ɵcmp: i0.ɵɵComponentDeclaration<CardComponent, "fal-card", never, { "backgroundColor": { "alias": "backgroundColor"; "required": false; }; "class": { "alias": "class"; "required": false; }; }, {}, never, ["*"], false, never>;
7
- }
@@ -1,6 +0,0 @@
1
- import { BaseControlBuilder } from '../../control-builder/base-control-builder';
2
- import * as i0 from "@angular/core";
3
- export declare class DatepickerComponent extends BaseControlBuilder {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<DatepickerComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<DatepickerComponent, "fal-datepicker", never, {}, {}, never, never, true, never>;
6
- }
@@ -1,8 +0,0 @@
1
- import { MatSelectChange } from '@angular/material/select';
2
- import { BaseControlBuilder } from '../../control-builder/base-control-builder';
3
- import * as i0 from "@angular/core";
4
- export declare class SelectComponent extends BaseControlBuilder {
5
- selectionChange(event: MatSelectChange): void;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, never>;
7
- static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "fal-select", never, {}, {}, never, never, true, never>;
8
- }
@@ -1,6 +0,0 @@
1
- import { BaseControlBuilder } from '../../control-builder/base-control-builder';
2
- import * as i0 from "@angular/core";
3
- export declare class TextareaComponent extends BaseControlBuilder {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<TextareaComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<TextareaComponent, "fal-textarea", never, {}, {}, never, never, true, never>;
6
- }
@@ -1,6 +0,0 @@
1
- import { BaseControlBuilder } from '../../control-builder/base-control-builder';
2
- import * as i0 from "@angular/core";
3
- export declare class TextboxComponent extends BaseControlBuilder {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<TextboxComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<TextboxComponent, "fal-textbox", never, {}, {}, never, never, true, never>;
6
- }
@@ -1,8 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class ErrorMessagePipe implements PipeTransform {
4
- private errorMessages;
5
- transform(key: string, errorValue: any): string;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<ErrorMessagePipe, never>;
7
- static ɵpipe: i0.ɵɵPipeDeclaration<ErrorMessagePipe, "errorMessage", true>;
8
- }
@@ -1,8 +0,0 @@
1
- import { AbstractControl, FormGroupDirective, NgForm } from '@angular/forms';
2
- import { ErrorStateMatcher } from '@angular/material/core';
3
- import * as i0 from "@angular/core";
4
- export declare class ErrorStateMatcherService implements ErrorStateMatcher {
5
- isErrorState(control: AbstractControl<any, any> | null, form: NgForm | FormGroupDirective | null): boolean;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<ErrorStateMatcherService, never>;
7
- static ɵprov: i0.ɵɵInjectableDeclaration<ErrorStateMatcherService>;
8
- }
@@ -1,7 +0,0 @@
1
- import { InjectionToken } from "@angular/core";
2
- export declare const ERROR_MESSAGES: {
3
- [key: string]: (args?: any) => string;
4
- };
5
- export declare const VALIDATION_ERROR_MESSAGES: InjectionToken<{
6
- [key: string]: (args?: any) => string;
7
- }>;
@@ -1,9 +0,0 @@
1
- import { ValidationErrors } from '@angular/forms';
2
- import { KeyValue } from '@angular/common';
3
- import * as i0 from "@angular/core";
4
- export declare class ValidationErrorComponent {
5
- errors: ValidationErrors | undefined | null;
6
- trackByFn(item: KeyValue<string, any>): string;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<ValidationErrorComponent, never>;
8
- static ɵcmp: i0.ɵɵComponentDeclaration<ValidationErrorComponent, "falcon-error", never, { "errors": { "alias": "errors"; "required": false; }; }, {}, never, never, true, never>;
9
- }
@@ -1,7 +0,0 @@
1
- import { ViewContainerRef } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class ValidationMessageContainerDirective {
4
- container: ViewContainerRef;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<ValidationMessageContainerDirective, never>;
6
- static ɵdir: i0.ɵɵDirectiveDeclaration<ValidationMessageContainerDirective, "[falconValidationMessageContainer]", ["falconValidationMessageContainer"], {}, {}, never, never, true, never>;
7
- }
@@ -1,18 +0,0 @@
1
- import { ElementRef, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
2
- import { ControlContainer, FormGroupDirective, NgControl, NgForm } from '@angular/forms';
3
- import { ErrorStateMatcherService } from './error-state-matcher.service';
4
- import * as i0 from "@angular/core";
5
- export declare class ValidationMessageDirective implements OnInit, OnDestroy {
6
- ngControl: NgControl | ControlContainer;
7
- elementRef: ElementRef<any>;
8
- errorStateMatcher: ErrorStateMatcherService;
9
- container: ViewContainerRef;
10
- private parentContainer;
11
- private errorMessageTrigger;
12
- private componentRef;
13
- get form(): NgForm | FormGroupDirective | null;
14
- ngOnInit(): void;
15
- ngOnDestroy(): void;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<ValidationMessageDirective, never>;
17
- static ɵdir: i0.ɵɵDirectiveDeclaration<ValidationMessageDirective, "[formControl]:not([withoutValidationErrors]),[formControlName]:not([withoutValidationErrors]),[formGroupName]:not([withoutValidationErrors]))", never, { "errorStateMatcher": { "alias": "errorStateMatcher"; "required": false; }; "container": { "alias": "container"; "required": false; }; }, {}, never, never, true, never>;
18
- }
@@ -1,14 +0,0 @@
1
- import { Type } from '@angular/core';
2
- import { Control } from './model/enum';
3
- import * as i0 from "@angular/core";
4
- type DynamicControlMap = {
5
- [T in Control]: () => Promise<Type<any>>;
6
- };
7
- export declare class ComponentResolver {
8
- private loadedControlCompoments;
9
- private lazyControlComponents;
10
- resolver(controlType: keyof DynamicControlMap): import("rxjs").Observable<Type<any>>;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<ComponentResolver, never>;
12
- static ɵprov: i0.ɵɵInjectableDeclaration<ComponentResolver>;
13
- }
14
- export {};
@@ -1,18 +0,0 @@
1
- import { OnDestroy, OnInit, StaticProvider } from '@angular/core';
2
- import { FormGroup } from '@angular/forms';
3
- import { CommonModule } from '@angular/common';
4
- import { ValidationMessageContainerDirective } from '../component/validation-error/validation-message-container.directive';
5
- import * as i0 from "@angular/core";
6
- export declare const sharedControlDeps: (typeof CommonModule | typeof ValidationMessageContainerDirective)[];
7
- export declare const controlProvider: StaticProvider;
8
- export declare class BaseControlBuilder implements OnInit, OnDestroy {
9
- private parentGroupDir;
10
- control: import("./control-data-builder").ControlData;
11
- private formControl;
12
- get parentFormGroup(): FormGroup;
13
- ngOnInit(): void;
14
- ngOnDestroy(): void;
15
- private bindValidators;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<BaseControlBuilder, never>;
17
- static ɵdir: i0.ɵɵDirectiveDeclaration<BaseControlBuilder, never, never, {}, {}, never, never, true, never>;
18
- }
@@ -1,13 +0,0 @@
1
- import { AfterContentChecked, ChangeDetectorRef } from '@angular/core';
2
- import { ComponentResolver } from '../component-resolver';
3
- import { BaseControl } from '../model/base-control';
4
- import * as i0 from "@angular/core";
5
- export declare class ControlBuilderComponent<T> implements AfterContentChecked {
6
- componentResolver: ComponentResolver;
7
- private cdref;
8
- control: BaseControl<T>;
9
- constructor(componentResolver: ComponentResolver, cdref: ChangeDetectorRef);
10
- ngAfterContentChecked(): void;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<ControlBuilderComponent<any>, never>;
12
- static ɵcmp: i0.ɵɵComponentDeclaration<ControlBuilderComponent<any>, "falcon-control", never, { "control": { "alias": "control"; "required": true; }; }, {}, never, never, false, never>;
13
- }
@@ -1,7 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- import { BaseControl } from '../model/base-control';
3
- export interface ControlData {
4
- formControlName: string;
5
- config: BaseControl<any>;
6
- }
7
- export declare const CONTROL_DATA: InjectionToken<ControlData>;
@@ -1,9 +0,0 @@
1
- import { Injector, PipeTransform } from '@angular/core';
2
- import { BaseControl } from '../model/base-control';
3
- import * as i0 from "@angular/core";
4
- export declare class ControlInjectionPipe<T> implements PipeTransform {
5
- injector: Injector;
6
- transform(formControlName: string, config: BaseControl<T>): Injector;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<ControlInjectionPipe<any>, never>;
8
- static ɵpipe: i0.ɵɵPipeDeclaration<ControlInjectionPipe<any>, "controlInjection", true>;
9
- }
@@ -1,5 +0,0 @@
1
- import { BaseControl } from '../model/base-control';
2
- import { Control } from '../model/enum';
3
- export declare class AutoComplete extends BaseControl<string> {
4
- controlType: Control;
5
- }
@@ -1,5 +0,0 @@
1
- import { BaseControl } from "../model/base-control";
2
- import { Control } from "../model/enum";
3
- export declare class Button extends BaseControl<string> {
4
- controlType: Control;
5
- }
@@ -1,5 +0,0 @@
1
- import { BaseControl } from '../model/base-control';
2
- import { Control } from '../model/enum';
3
- export declare class ButtonToggle extends BaseControl<string> {
4
- controlType: Control;
5
- }
@@ -1,5 +0,0 @@
1
- import { BaseControl } from '../model/base-control';
2
- import { Control } from '../model/enum';
3
- export declare class CheckBox extends BaseControl<boolean> {
4
- controlType: Control;
5
- }
@@ -1,5 +0,0 @@
1
- import { BaseControl } from '../model/base-control';
2
- import { Control } from '../model/enum';
3
- export declare class Chip extends BaseControl<string> {
4
- controlType: Control;
5
- }
@@ -1,5 +0,0 @@
1
- import { BaseControl } from '../model/base-control';
2
- import { Control } from '../model/enum';
3
- export declare class DatePicker extends BaseControl<string> {
4
- controlType: Control;
5
- }
@@ -1,5 +0,0 @@
1
- import { BaseControl } from '../model/base-control';
2
- import { Control } from '../model/enum';
3
- export declare class Divider extends BaseControl<string> {
4
- controlType: Control;
5
- }
@@ -1,5 +0,0 @@
1
- import { BaseControl } from '../model/base-control';
2
- import { Control } from '../model/enum';
3
- export declare class Editor extends BaseControl<string> {
4
- controlType: Control;
5
- }
@@ -1,5 +0,0 @@
1
- import { BaseControl } from '../model/base-control';
2
- import { Control } from '../model/enum';
3
- export declare class Radio extends BaseControl<string> {
4
- controlType: Control;
5
- }
@@ -1,5 +0,0 @@
1
- import { BaseControl } from '../model/base-control';
2
- import { Control } from '../model/enum';
3
- export declare class RichTextEditor extends BaseControl<any> {
4
- controlType: Control;
5
- }
@@ -1,5 +0,0 @@
1
- import { BaseControl } from '../model/base-control';
2
- import { Control } from '../model/enum';
3
- export declare class Select extends BaseControl<string> {
4
- controlType: Control;
5
- }
@@ -1,5 +0,0 @@
1
- import { BaseControl } from '../model/base-control';
2
- import { Control } from '../model/enum';
3
- export declare class SliderToggle extends BaseControl<boolean> {
4
- controlType: Control;
5
- }
@@ -1,5 +0,0 @@
1
- import { BaseControl } from '../model/base-control';
2
- import { Control } from '../model/enum';
3
- export declare class Slider extends BaseControl<number> {
4
- controlType: Control;
5
- }
@@ -1,5 +0,0 @@
1
- import { BaseControl } from '../model/base-control';
2
- import { Control } from '../model/enum';
3
- export declare class Textarea extends BaseControl<string> {
4
- controlType: Control;
5
- }
@@ -1,5 +0,0 @@
1
- import { BaseControl } from '../model/base-control';
2
- import { Control } from '../model/enum';
3
- export declare class Textbox extends BaseControl<string> {
4
- controlType: Control;
5
- }
@@ -1,12 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./control-builder/control-builder.component";
3
- import * as i2 from "./component/card/card.component";
4
- import * as i3 from "./component/button/button.component";
5
- import * as i4 from "./angularmaterial.module";
6
- import * as i5 from "@angular/common";
7
- import * as i6 from "./control-builder/control-injection.pipe";
8
- export declare class FalconCoreModule {
9
- static ɵfac: i0.ɵɵFactoryDeclaration<FalconCoreModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<FalconCoreModule, [typeof i1.ControlBuilderComponent, typeof i2.CardComponent, typeof i3.ButtonComponent], [typeof i4.AngularmaterialModule, typeof i5.CommonModule, typeof i6.ControlInjectionPipe], [typeof i4.AngularmaterialModule, typeof i1.ControlBuilderComponent, typeof i2.CardComponent, typeof i3.ButtonComponent]>;
11
- static ɵinj: i0.ɵɵInjectorDeclaration<FalconCoreModule>;
12
- }
@@ -1,83 +0,0 @@
1
- import { Control } from './enum';
2
- import { IValidator } from './ivalidator';
3
- import { FloatLabelType, MatFormFieldAppearance } from '@angular/material/form-field';
4
- import { ThemePalette } from '@angular/material/core';
5
- import { IComponentEvent, IMatHint, IOptions, ISelectOptions, ISliderProperty, ISuffixPrefixConfig, ITextAreaProperty } from './interface';
6
- /**
7
- * @description
8
- * Class use for setting the control properties.
9
- * @usageNotes
10
- * ```ts
11
- * new Dropdown({
12
- * formControlName: 'brave',
13
- * label: 'Bravery Rating',
14
- * options: [
15
- * {key: 'solid', value: 'Solid'},
16
- * {key: 'great', value: 'Great'},
17
- * {key: 'good', value: 'Good'},
18
- * {key: 'unproven', value: 'Unproven'}
19
- * ],
20
- * order: 3
21
- * }),
22
- ** ```
23
- */
24
- export declare class BaseControl<T> {
25
- value: T | undefined;
26
- formControlName: string;
27
- label: string;
28
- labelPosition: any;
29
- order: number;
30
- controlType: Control;
31
- type: string;
32
- disabled: boolean;
33
- options: IOptions[] | any;
34
- validations: IValidator[];
35
- appearance: MatFormFieldAppearance | any;
36
- class: string;
37
- style: {
38
- [klass: string]: any;
39
- };
40
- placeHolder: string;
41
- floatLabel: FloatLabelType;
42
- hint: IMatHint;
43
- suffix: ISuffixPrefixConfig;
44
- prefix: ISuffixPrefixConfig;
45
- textAreaProperty: ITextAreaProperty;
46
- event: IComponentEvent<T>;
47
- selectProperty: ISelectOptions;
48
- color: ThemePalette;
49
- sliderProperty: ISliderProperty;
50
- chipSelectedOptions: IOptions[] | any;
51
- editorProperty: any;
52
- formArray: BaseControl<T>[] | undefined;
53
- constructor(options: {
54
- value?: T;
55
- formControlName?: string;
56
- label: string;
57
- labelPosition?: any;
58
- order?: number;
59
- controlType?: Control;
60
- type?: string;
61
- disabled?: boolean;
62
- options?: IOptions[] | any;
63
- validations?: IValidator[];
64
- appearance?: MatFormFieldAppearance | any;
65
- class?: string;
66
- style?: {
67
- [klass: string]: any;
68
- };
69
- placeHolder?: string;
70
- floatLabel?: FloatLabelType;
71
- hint?: IMatHint;
72
- suffix?: ISuffixPrefixConfig;
73
- prefix?: ISuffixPrefixConfig;
74
- textAreaProperty?: ITextAreaProperty;
75
- event?: IComponentEvent<T>;
76
- selectProperty?: ISelectOptions;
77
- color?: ThemePalette;
78
- sliderProperty?: ISliderProperty;
79
- chipSelectedOptions?: IOptions[] | any;
80
- editorProperty?: any;
81
- formArray?: BaseControl<T>[];
82
- });
83
- }
@@ -1,144 +0,0 @@
1
- /**
2
- * @description
3
- * Enum use for setting the form control Types.
4
- * @usageNotes
5
- * ```ts
6
- * export class Textbox extends BaseControl<string>{
7
- * override controlType = ControlType.Select;
8
- * }
9
- * ```
10
- */
11
- export declare const enum Control {
12
- TextBox = "textbox",
13
- TextArea = "textarea",
14
- Select = "select",
15
- DatePicker = "datepicker",
16
- Radio = "radio",
17
- Checkbox = "checkbox",
18
- Button = "button",
19
- SlideToggle = "slideToggle",
20
- Slider = "slider",
21
- ButtonToggle = "buttonToggle",
22
- AutoComplete = "autocomplete",
23
- Chip = "chip",
24
- Editor = "editor",
25
- Divider = "divider"
26
- }
27
- /**
28
- * @description
29
- * Enum use for Appearance of the control.
30
- * @usageNotes
31
- * Before and After property should be only use for Checkbox and Radio button
32
- * ```ts
33
- * if (componentType == ComponentType.Radio && componentType == ComponentType.Checkbox) THEN
34
- * only use Appearance Before and After
35
- * ```
36
- */
37
- export declare const enum Appearance {
38
- /**
39
- * @usageNotes Should be only use for input, textbox, and select
40
- */
41
- Plain = "plain",
42
- Legacy = "legacy",
43
- Standard = "standard",
44
- Fill = "fill",
45
- Outline = "outline",
46
- /**
47
- * @usageNotes Should be only use for label position
48
- */
49
- Before = "before",
50
- After = "after",
51
- /**
52
- * @usageNotes Should be only use for select
53
- */
54
- Multiple = "true",
55
- /**
56
- * @usageNotes Should be only use for Buttom
57
- */
58
- Basic = 0,
59
- Raised = 1,
60
- Stroked = 2,
61
- Flat = 3,
62
- Icon = 4,
63
- FAB = 5,
64
- MiniFAB = 6,
65
- routeLink = 7,
66
- routeHref = 8
67
- }
68
- /**
69
- * @description
70
- * Enum use for setting the attribute Types.
71
- * @usageNotes
72
- * ```ts
73
- * componentProperty: {
74
- * attrType: InputTypes.Text
75
- * }
76
- * ```
77
- */
78
- export declare const enum InputTypes {
79
- Color = "color",
80
- Date = "date",
81
- DatetimeLocal = "datetime-local",
82
- Email = "email",
83
- Month = "month",
84
- Number = "number",
85
- Password = "password",
86
- Search = "search",
87
- Tel = "tel",
88
- Text = "text",
89
- Time = "time",
90
- Url = "url",
91
- Week = "week",
92
- /**
93
- * @usageNotes Should be only use for Buttom
94
- */
95
- Button = "button",
96
- Submit = "submit",
97
- DragDrop = "dragDrop"
98
- }
99
- /**
100
- * @description
101
- * Enum use for setting HTTP method.
102
- * @usageNotes
103
- * ```ts
104
- * this.genericHttpClientService.Delete(this.deleteUserUrl).subscribe(item => {}, error => {});
105
- * ```
106
- */
107
- export declare const enum HttpMethod {
108
- Get = "GET",
109
- Post = "POST",
110
- Put = "PUT",
111
- Patch = "PATCH",
112
- Delete = "DELETE"
113
- }
114
- /**
115
- * @description
116
- * Enum use for Table actions
117
- */
118
- export declare const enum TableAction {
119
- View = 0,
120
- Edit = 1,
121
- Delete = 2,
122
- RightArrow = 3
123
- }
124
- /**
125
- * @description
126
- * Enum use for setting the Floating label.
127
- * @usageNotes
128
- * ```ts
129
- * componentProperty: {
130
- * floatLabel: Floatinglabel.Always
131
- * }
132
- * ```
133
- */
134
- export declare const enum Floatinglabel {
135
- Auto = "auto",
136
- Always = "always"
137
- }
138
- export declare const enum LoggingLevel {
139
- None = "None",
140
- Verbose = "Verbose",
141
- Info = "Info",
142
- Warnings = "Warnings",
143
- Errors = "Errors"
144
- }