special-forms 18.0.1 → 20.0.0-SNAPSHOT

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 (95) hide show
  1. package/README.md +147 -147
  2. package/fesm2022/special-forms.mjs +143 -147
  3. package/fesm2022/special-forms.mjs.map +1 -1
  4. package/index.d.ts +586 -5
  5. package/lib/styles/final.scss +2 -2
  6. package/lib/styles/styles-config.scss +36 -36
  7. package/lib/styles/tailwind-final.scss +7 -7
  8. package/package.json +7 -9
  9. package/esm2022/lib/components/index.mjs +0 -14
  10. package/esm2022/lib/components/special-autocomplete/special-autocomplete.component.mjs +0 -75
  11. package/esm2022/lib/components/special-autocomplete/special-autocomplete.interface.mjs +0 -2
  12. package/esm2022/lib/components/special-checkbox/special-checkbox.component.mjs +0 -38
  13. package/esm2022/lib/components/special-checkbox/special-checkbox.interface.mjs +0 -3
  14. package/esm2022/lib/components/special-datepicker/special-datepicker.component.mjs +0 -42
  15. package/esm2022/lib/components/special-datepicker/special-datepicker.interface.mjs +0 -3
  16. package/esm2022/lib/components/special-dropdown/special-dropdown.component.mjs +0 -47
  17. package/esm2022/lib/components/special-dropdown/special-dropdown.interface.mjs +0 -3
  18. package/esm2022/lib/components/special-form/special-form.component.mjs +0 -99
  19. package/esm2022/lib/components/special-form/special-form.module.mjs +0 -79
  20. package/esm2022/lib/components/special-input/special-input.component.mjs +0 -55
  21. package/esm2022/lib/components/special-input/special-input.interface.mjs +0 -2
  22. package/esm2022/lib/components/special-label/special-label.component.mjs +0 -27
  23. package/esm2022/lib/components/special-label/special-label.interface.mjs +0 -2
  24. package/esm2022/lib/components/special-multiple-autocomplete/special-multiple-autocomplete.component.mjs +0 -97
  25. package/esm2022/lib/components/special-multiple-autocomplete/special-multiple-autocomplete.interface.mjs +0 -2
  26. package/esm2022/lib/components/special-richtext/special-richtext.component.mjs +0 -53
  27. package/esm2022/lib/components/special-richtext/special-richtext.interface.mjs +0 -3
  28. package/esm2022/lib/components/special-text-area/special-text-area.component.mjs +0 -43
  29. package/esm2022/lib/components/special-text-area/special-text-area.interface.mjs +0 -2
  30. package/esm2022/lib/components/special-upload/filename.pipe.mjs +0 -18
  31. package/esm2022/lib/components/special-upload/preview-image-pipe.mjs +0 -104
  32. package/esm2022/lib/components/special-upload/special-upload.component.mjs +0 -146
  33. package/esm2022/lib/components/special-upload/special-upload.interface.mjs +0 -2
  34. package/esm2022/lib/components/special-upload/truncate.pipe.mjs +0 -14
  35. package/esm2022/lib/core/aux-data/control-types.enum.mjs +0 -18
  36. package/esm2022/lib/core/aux-data/input-types.mjs +0 -16
  37. package/esm2022/lib/core/forms/special-forms.mjs +0 -240
  38. package/esm2022/lib/core/interfaces/field-basics.interfaces.mjs +0 -2
  39. package/esm2022/lib/core/interfaces/form.interfaces.mjs +0 -2
  40. package/esm2022/lib/core/interfaces/special-control.interface.mjs +0 -3
  41. package/esm2022/lib/core/masks/currency.mask.mjs +0 -11
  42. package/esm2022/lib/core/masks/index.mjs +0 -3
  43. package/esm2022/lib/core/masks/number.mask.mjs +0 -3
  44. package/esm2022/lib/core/pipes/controls-list-pipe/controls-list.pipe.mjs +0 -18
  45. package/esm2022/lib/core/pipes/error-message-pipe/error.pipe.mjs +0 -23
  46. package/esm2022/lib/core/pipes/index.mjs +0 -4
  47. package/esm2022/lib/core/pipes/text-by-function/text-by-function.pipe.mjs +0 -22
  48. package/esm2022/lib/core/services/error-state-matcher/error-matcher.mjs +0 -13
  49. package/esm2022/lib/core/services/index.mjs +0 -4
  50. package/esm2022/lib/core/services/special-form-builder/special-form-builder.service.mjs +0 -156
  51. package/esm2022/public-api.mjs +0 -13
  52. package/esm2022/special-forms.mjs +0 -5
  53. package/lib/components/index.d.ts +0 -23
  54. package/lib/components/special-autocomplete/special-autocomplete.component.d.ts +0 -19
  55. package/lib/components/special-autocomplete/special-autocomplete.interface.d.ts +0 -19
  56. package/lib/components/special-checkbox/special-checkbox.component.d.ts +0 -12
  57. package/lib/components/special-checkbox/special-checkbox.interface.d.ts +0 -13
  58. package/lib/components/special-datepicker/special-datepicker.component.d.ts +0 -13
  59. package/lib/components/special-datepicker/special-datepicker.interface.d.ts +0 -12
  60. package/lib/components/special-dropdown/special-dropdown.component.d.ts +0 -11
  61. package/lib/components/special-dropdown/special-dropdown.interface.d.ts +0 -17
  62. package/lib/components/special-form/special-form.component.d.ts +0 -31
  63. package/lib/components/special-form/special-form.module.d.ts +0 -20
  64. package/lib/components/special-input/special-input.component.d.ts +0 -15
  65. package/lib/components/special-input/special-input.interface.d.ts +0 -17
  66. package/lib/components/special-label/special-label.component.d.ts +0 -13
  67. package/lib/components/special-label/special-label.interface.d.ts +0 -13
  68. package/lib/components/special-multiple-autocomplete/special-multiple-autocomplete.component.d.ts +0 -22
  69. package/lib/components/special-multiple-autocomplete/special-multiple-autocomplete.interface.d.ts +0 -19
  70. package/lib/components/special-richtext/special-richtext.component.d.ts +0 -15
  71. package/lib/components/special-richtext/special-richtext.interface.d.ts +0 -11
  72. package/lib/components/special-text-area/special-text-area.component.d.ts +0 -13
  73. package/lib/components/special-text-area/special-text-area.interface.d.ts +0 -8
  74. package/lib/components/special-upload/filename.pipe.d.ts +0 -7
  75. package/lib/components/special-upload/preview-image-pipe.d.ts +0 -23
  76. package/lib/components/special-upload/special-upload.component.d.ts +0 -31
  77. package/lib/components/special-upload/special-upload.interface.d.ts +0 -15
  78. package/lib/components/special-upload/truncate.pipe.d.ts +0 -7
  79. package/lib/core/aux-data/control-types.enum.d.ts +0 -16
  80. package/lib/core/aux-data/input-types.d.ts +0 -2
  81. package/lib/core/forms/special-forms.d.ts +0 -108
  82. package/lib/core/interfaces/field-basics.interfaces.d.ts +0 -22
  83. package/lib/core/interfaces/form.interfaces.d.ts +0 -64
  84. package/lib/core/interfaces/special-control.interface.d.ts +0 -4
  85. package/lib/core/masks/currency.mask.d.ts +0 -1
  86. package/lib/core/masks/index.d.ts +0 -2
  87. package/lib/core/masks/number.mask.d.ts +0 -1
  88. package/lib/core/pipes/controls-list-pipe/controls-list.pipe.d.ts +0 -11
  89. package/lib/core/pipes/error-message-pipe/error.pipe.d.ts +0 -12
  90. package/lib/core/pipes/index.d.ts +0 -3
  91. package/lib/core/pipes/text-by-function/text-by-function.pipe.d.ts +0 -7
  92. package/lib/core/services/error-state-matcher/error-matcher.d.ts +0 -8
  93. package/lib/core/services/index.d.ts +0 -3
  94. package/lib/core/services/special-form-builder/special-form-builder.service.d.ts +0 -25
  95. package/public-api.d.ts +0 -9
@@ -1,13 +0,0 @@
1
- /*
2
- * Public API Surface of special-forms
3
- */
4
- export * from './lib/components';
5
- export * from './lib/core/services/index';
6
- export { EControlTypes } from './lib/core/aux-data/control-types.enum';
7
- export * from './lib/core/forms/special-forms';
8
- export * from './lib/core/interfaces/field-basics.interfaces';
9
- export * from './lib/core/interfaces/form.interfaces';
10
- export * from './lib/core/interfaces/special-control.interface';
11
- export * from './lib/core/masks/index';
12
- export * from './lib/core/pipes/index';
13
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL3NwZWNpYWwtZm9ybXMvc3JjL3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGtCQUFrQixDQUFDO0FBQ2pDLGNBQWMsMkJBQTJCLENBQUM7QUFDMUMsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLHdDQUF3QyxDQUFDO0FBQ3ZFLGNBQWMsZ0NBQWdDLENBQUM7QUFDL0MsY0FBYywrQ0FBK0MsQ0FBQztBQUM5RCxjQUFjLHVDQUF1QyxDQUFDO0FBQ3RELGNBQWMsaURBQWlELENBQUM7QUFDaEUsY0FBYyx3QkFBd0IsQ0FBQztBQUN2QyxjQUFjLHdCQUF3QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLypcclxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIHNwZWNpYWwtZm9ybXNcclxuICovXHJcblxyXG5leHBvcnQgKiBmcm9tICcuL2xpYi9jb21wb25lbnRzJztcclxuZXhwb3J0ICogZnJvbSAnLi9saWIvY29yZS9zZXJ2aWNlcy9pbmRleCc7XHJcbmV4cG9ydCB7IEVDb250cm9sVHlwZXMgfSBmcm9tICcuL2xpYi9jb3JlL2F1eC1kYXRhL2NvbnRyb2wtdHlwZXMuZW51bSc7XHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL2NvcmUvZm9ybXMvc3BlY2lhbC1mb3Jtcyc7XHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL2NvcmUvaW50ZXJmYWNlcy9maWVsZC1iYXNpY3MuaW50ZXJmYWNlcyc7XHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL2NvcmUvaW50ZXJmYWNlcy9mb3JtLmludGVyZmFjZXMnO1xyXG5leHBvcnQgKiBmcm9tICcuL2xpYi9jb3JlL2ludGVyZmFjZXMvc3BlY2lhbC1jb250cm9sLmludGVyZmFjZSc7XHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL2NvcmUvbWFza3MvaW5kZXgnO1xyXG5leHBvcnQgKiBmcm9tICcuL2xpYi9jb3JlL3BpcGVzL2luZGV4JztcclxuXHJcbiJdfQ==
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './public-api';
5
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3BlY2lhbC1mb3Jtcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL3NwZWNpYWwtZm9ybXMvc3JjL3NwZWNpYWwtZm9ybXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==
@@ -1,23 +0,0 @@
1
- import { SpecialAutocompleteComponent } from './special-autocomplete/special-autocomplete.component';
2
- import { IAutocompleteField, IAutocompleteSettings } from './special-autocomplete/special-autocomplete.interface';
3
- import { SpecialInputComponent } from './special-input/special-input.component';
4
- import { IInputField, IInputSettings } from './special-input/special-input.interface';
5
- import { SpecialDropdownComponent } from './special-dropdown/special-dropdown.component';
6
- import { IDropdownField, IDropdownSettings } from './special-dropdown/special-dropdown.interface';
7
- import { SpecialDatepickerComponent } from './special-datepicker/special-datepicker.component';
8
- import { IDatePickerField, IDatePickerSettings } from './special-datepicker/special-datepicker.interface';
9
- import { SpecialMultipleAutocompleteComponent } from './special-multiple-autocomplete/special-multiple-autocomplete.component';
10
- import { IMultipleAutocompleteField, IMultipleAutocompleteSettings } from './special-multiple-autocomplete/special-multiple-autocomplete.interface';
11
- import { SpecialCheckboxComponent } from './special-checkbox/special-checkbox.component';
12
- import { ICheckboxField, ICheckboxSettings } from './special-checkbox/special-checkbox.interface';
13
- import { SpecialTextAreaComponent } from './special-text-area/special-text-area.component';
14
- import { ITextAreaField, ITextAreaSettings } from './special-text-area/special-text-area.interface';
15
- import { SpecialUploadComponent } from './special-upload/special-upload.component';
16
- import { IUploadField, IUploadSettings } from './special-upload/special-upload.interface';
17
- import { SpecialLabelComponent } from './special-label/special-label.component';
18
- import { ILabelField, ILabelSettings } from './special-label/special-label.interface';
19
- import { SpecialFormModule } from './special-form/special-form.module';
20
- import { SpecialRichtextComponent } from './special-richtext/special-richtext.component';
21
- import { IRichTextField, IRichTextSettings } from './special-richtext/special-richtext.interface';
22
- import { SpecialFormComponent, SpecialArrayComponent, FormControlsRenderDirective } from './special-form/special-form.component';
23
- export { ILabelField, ILabelSettings, ITextAreaField, ITextAreaSettings, IUploadField, IUploadSettings, IDropdownField, IDatePickerField, IDatePickerSettings, IRichTextField, IRichTextSettings, IDropdownSettings, IMultipleAutocompleteField, IMultipleAutocompleteSettings, ICheckboxField, ICheckboxSettings, IInputField, IInputSettings, IAutocompleteField, IAutocompleteSettings, SpecialRichtextComponent, SpecialAutocompleteComponent, SpecialDatepickerComponent, SpecialDropdownComponent, SpecialMultipleAutocompleteComponent, SpecialCheckboxComponent, SpecialTextAreaComponent, SpecialUploadComponent, SpecialArrayComponent, SpecialLabelComponent, SpecialFormComponent, SpecialFormModule, FormControlsRenderDirective, SpecialInputComponent, };
@@ -1,19 +0,0 @@
1
- import { MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
2
- import { Subscription } from 'rxjs';
3
- import { SpecialFormControl } from '../../core/forms/special-forms';
4
- import { IAutocompleteField, IAutocompleteSettings } from './special-autocomplete.interface';
5
- import * as i0 from "@angular/core";
6
- export declare class SpecialAutocompleteComponent {
7
- control: SpecialFormControl<IAutocompleteField>;
8
- subs: Subscription;
9
- constructor();
10
- ngOnInit(): void;
11
- get settings(): IAutocompleteSettings<any>;
12
- init(): void;
13
- configValue: (item: any) => any;
14
- optionSelected(data: MatAutocompleteSelectedEvent): void;
15
- iconClick(event: Event): void;
16
- ngOnDestroy(): void;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<SpecialAutocompleteComponent, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<SpecialAutocompleteComponent, "sp-autocomplete", never, { "control": { "alias": "control"; "required": false; }; }, {}, never, never, true, never>;
19
- }
@@ -1,19 +0,0 @@
1
- import { AbstractControl } from '@angular/forms';
2
- import { Observable } from 'rxjs';
3
- import { EControlTypes } from '../../core/aux-data/control-types.enum';
4
- import { IFieldData } from '../../core/interfaces/field-basics.interfaces';
5
- export interface IAutocompleteSettings<T> {
6
- getData: (query: string, control?: AbstractControl) => void;
7
- source: Observable<T[]>;
8
- fieldId: string;
9
- icon?: string;
10
- iconAction?: (data: T) => void;
11
- onSelect?: (data: T) => void;
12
- fieldName: string | ((a?: T) => string);
13
- fieldImage?: string | ((a?: T) => string);
14
- }
15
- export interface IAutocompleteField<T = any> extends IFieldData {
16
- settings: IAutocompleteSettings<T>;
17
- type: EControlTypes.autocomplete;
18
- defaultValue: T;
19
- }
@@ -1,12 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { SpecialFormControl } from '../../core/forms/special-forms';
3
- import { ICheckboxField, ICheckboxSettings } from './special-checkbox.interface';
4
- import * as i0 from "@angular/core";
5
- export declare class SpecialCheckboxComponent implements OnInit {
6
- control: SpecialFormControl<ICheckboxField>;
7
- get settings(): ICheckboxSettings;
8
- constructor();
9
- ngOnInit(): void;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<SpecialCheckboxComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<SpecialCheckboxComponent, "sp-checkbox", never, { "control": { "alias": "control"; "required": false; }; }, {}, never, never, true, never>;
12
- }
@@ -1,13 +0,0 @@
1
- import { ThemePalette } from '@angular/material/core';
2
- import { EControlTypes } from '../../core/aux-data/control-types.enum';
3
- import { IFieldData } from '../../core/interfaces/field-basics.interfaces';
4
- export interface ICheckboxSettings {
5
- labelPosition?: 'before' | 'after';
6
- indeterminate?: boolean;
7
- color?: ThemePalette;
8
- }
9
- export interface ICheckboxField extends IFieldData {
10
- settings: ICheckboxSettings;
11
- type: EControlTypes.checkbox;
12
- defaultValue: boolean;
13
- }
@@ -1,13 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { SpecialFormControl } from '../../core/forms/special-forms';
3
- import { IDatePickerField, IDatePickerSettings } from './special-datepicker.interface';
4
- import * as i0 from "@angular/core";
5
- export declare class SpecialDatepickerComponent implements OnInit {
6
- control: SpecialFormControl<IDatePickerField>;
7
- constructor();
8
- get settings(): IDatePickerSettings;
9
- get startAt(): Date;
10
- ngOnInit(): void;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<SpecialDatepickerComponent, never>;
12
- static ɵcmp: i0.ɵɵComponentDeclaration<SpecialDatepickerComponent, "sp-datepicker", never, { "control": { "alias": "control"; "required": false; }; }, {}, never, never, true, never>;
13
- }
@@ -1,12 +0,0 @@
1
- import { EControlTypes } from '../../core/aux-data/control-types.enum';
2
- import { IFieldData } from '../../core/interfaces/field-basics.interfaces';
3
- export interface IDatePickerSettings {
4
- lowerLimit?: number;
5
- upperLimit?: number;
6
- startAt?: Date;
7
- }
8
- export interface IDatePickerField extends IFieldData {
9
- settings: IDatePickerSettings;
10
- type: EControlTypes.date;
11
- defaultValue: string;
12
- }
@@ -1,11 +0,0 @@
1
- import { SpecialFormControl } from '../../core/forms/special-forms';
2
- import { IDropdownField, IDropdownSettings } from './special-dropdown.interface';
3
- import * as i0 from "@angular/core";
4
- export declare class SpecialDropdownComponent {
5
- control: SpecialFormControl<IDropdownField>;
6
- get settings(): IDropdownSettings;
7
- iconClick(event: Event): void;
8
- optionSelected(value: any): void;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<SpecialDropdownComponent, never>;
10
- static ɵcmp: i0.ɵɵComponentDeclaration<SpecialDropdownComponent, "sp-dropdown", never, { "control": { "alias": "control"; "required": false; }; }, {}, never, never, true, never>;
11
- }
@@ -1,17 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { EControlTypes } from '../../core/aux-data/control-types.enum';
3
- import { IFieldData } from '../../core/interfaces/field-basics.interfaces';
4
- export interface IDropdownSettings {
5
- icon?: string;
6
- onSelect?: (data: any) => void;
7
- iconAction?: (data: any) => void;
8
- source: Observable<any[]>;
9
- fieldId: string;
10
- fieldName: string | ((a?: any) => string);
11
- notSelectedText?: string;
12
- }
13
- export interface IDropdownField extends IFieldData {
14
- settings: IDropdownSettings;
15
- type: EControlTypes.dropdown;
16
- defaultValue: string;
17
- }
@@ -1,31 +0,0 @@
1
- import { ViewContainerRef } from '@angular/core';
2
- import { OnInit } from '@angular/core';
3
- import { SpecialFormGroup, SpecialFormControl } from '../../core/forms/special-forms';
4
- import * as i0 from "@angular/core";
5
- export declare class SpecialFormComponent implements OnInit {
6
- form: SpecialFormGroup;
7
- set control(form: SpecialFormGroup);
8
- ngOnInit(): void;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<SpecialFormComponent, never>;
10
- static ɵcmp: i0.ɵɵComponentDeclaration<SpecialFormComponent, "sp-form", never, { "form": { "alias": "control"; "required": false; }; }, {}, never, never, false, never>;
11
- }
12
- export declare class SpecialArrayComponent implements OnInit {
13
- formArray: any;
14
- set control(formArray: any);
15
- get withFormHeader(): any;
16
- get settings(): any;
17
- constructor();
18
- ngOnInit(): void;
19
- removeItem(index: number): void;
20
- addItem(): void;
21
- static ɵfac: i0.ɵɵFactoryDeclaration<SpecialArrayComponent, never>;
22
- static ɵcmp: i0.ɵɵComponentDeclaration<SpecialArrayComponent, "sp-array", never, { "formArray": { "alias": "control"; "required": false; }; }, {}, never, never, false, never>;
23
- }
24
- export declare class FormControlsRenderDirective {
25
- private viewContainer;
26
- private readonly componentsBuffer;
27
- set controlSetter(control: SpecialFormControl<any>);
28
- constructor(viewContainer: ViewContainerRef);
29
- static ɵfac: i0.ɵɵFactoryDeclaration<FormControlsRenderDirective, never>;
30
- static ɵdir: i0.ɵɵDirectiveDeclaration<FormControlsRenderDirective, "[controlRender]", never, { "controlSetter": { "alias": "control"; "required": false; }; }, {}, never, never, false, never>;
31
- }
@@ -1,20 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./special-form.component";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "../../core/pipes/controls-list-pipe/controls-list.pipe";
5
- import * as i4 from "@angular/material/button";
6
- import * as i5 from "../special-richtext/special-richtext.component";
7
- import * as i6 from "../special-dropdown/special-dropdown.component";
8
- import * as i7 from "../special-input/special-input.component";
9
- import * as i8 from "../special-autocomplete/special-autocomplete.component";
10
- import * as i9 from "../special-datepicker/special-datepicker.component";
11
- import * as i10 from "../special-label/special-label.component";
12
- import * as i11 from "../special-multiple-autocomplete/special-multiple-autocomplete.component";
13
- import * as i12 from "../special-checkbox/special-checkbox.component";
14
- import * as i13 from "../special-text-area/special-text-area.component";
15
- import * as i14 from "../special-upload/special-upload.component";
16
- export declare class SpecialFormModule {
17
- static ɵfac: i0.ɵɵFactoryDeclaration<SpecialFormModule, never>;
18
- static ɵmod: i0.ɵɵNgModuleDeclaration<SpecialFormModule, [typeof i1.SpecialArrayComponent, typeof i1.FormControlsRenderDirective, typeof i1.SpecialFormComponent], [typeof i2.CommonModule, typeof i3.FormControlsListPipe, typeof i4.MatButtonModule, typeof i5.SpecialRichtextComponent, typeof i6.SpecialDropdownComponent, typeof i7.SpecialInputComponent, typeof i8.SpecialAutocompleteComponent, typeof i9.SpecialDatepickerComponent, typeof i10.SpecialLabelComponent, typeof i11.SpecialMultipleAutocompleteComponent, typeof i12.SpecialCheckboxComponent, typeof i13.SpecialTextAreaComponent, typeof i14.SpecialUploadComponent], [typeof i1.SpecialArrayComponent, typeof i1.FormControlsRenderDirective, typeof i1.SpecialFormComponent]>;
19
- static ɵinj: i0.ɵɵInjectorDeclaration<SpecialFormModule>;
20
- }
@@ -1,15 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { SpecialFormControl } from '../../core/forms/special-forms';
3
- import { IInputField, IInputSettings } from './special-input.interface';
4
- import * as i0 from "@angular/core";
5
- export declare class SpecialInputComponent implements OnInit {
6
- control: SpecialFormControl<IInputField>;
7
- constructor();
8
- ngOnInit(): void;
9
- onEnterClick(): void;
10
- onBlurAction(): void;
11
- get settings(): IInputSettings;
12
- iconClick(event: Event): void;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<SpecialInputComponent, never>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<SpecialInputComponent, "sp-input", never, { "control": { "alias": "control"; "required": false; }; }, {}, never, never, true, never>;
15
- }
@@ -1,17 +0,0 @@
1
- import { InputmaskOptions } from '@ngneat/input-mask';
2
- import { EControlTypes } from '../../core/aux-data/control-types.enum';
3
- import { TInputTypes } from '../../core/aux-data/input-types';
4
- import { IFieldData } from '../../core/interfaces/field-basics.interfaces';
5
- export type IInputSettings = {
6
- type?: TInputTypes;
7
- mask?: InputmaskOptions<any>;
8
- icon?: string;
9
- iconAction?: (data: string) => void;
10
- onEnter?: (data: string) => void;
11
- onBlur?: (data: string) => void;
12
- };
13
- export interface IInputField extends IFieldData {
14
- settings: IInputSettings;
15
- type: EControlTypes.input;
16
- defaultValue: string;
17
- }
@@ -1,13 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { SpecialFormControl } from '../../core/forms/special-forms';
3
- import { ILabelField, ILabelSettings } from './special-label.interface';
4
- import * as i0 from "@angular/core";
5
- export declare class SpecialLabelComponent implements OnInit {
6
- control: SpecialFormControl<ILabelField>;
7
- constructor();
8
- ngOnInit(): void;
9
- get settings(): ILabelSettings;
10
- onLink(): void;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<SpecialLabelComponent, never>;
12
- static ɵcmp: i0.ɵɵComponentDeclaration<SpecialLabelComponent, "sp-label", never, { "control": { "alias": "control"; "required": false; }; }, {}, never, never, true, never>;
13
- }
@@ -1,13 +0,0 @@
1
- import { EControlTypes } from '../../core/aux-data/control-types.enum';
2
- import { IFieldData } from '../../core/interfaces/field-basics.interfaces';
3
- export type ILabelSettings = {
4
- pipe?: (value: any) => string;
5
- stylesPipe?: (value: any) => string;
6
- isLink: boolean;
7
- onClickLink?: (value: any) => void;
8
- };
9
- export interface ILabelField extends IFieldData {
10
- settings: ILabelSettings;
11
- type: EControlTypes.label;
12
- defaultValue: string;
13
- }
@@ -1,22 +0,0 @@
1
- import { MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
2
- import { Subscription } from 'rxjs';
3
- import { SpecialFormControl } from '../../core/forms/special-forms';
4
- import { IMultipleAutocompleteField, IMultipleAutocompleteSettings } from './special-multiple-autocomplete.interface';
5
- import { FormControl } from '@angular/forms';
6
- import * as i0 from "@angular/core";
7
- export declare class SpecialMultipleAutocompleteComponent {
8
- control: SpecialFormControl<IMultipleAutocompleteField>;
9
- subs: Subscription;
10
- internalControl: FormControl<any>;
11
- constructor();
12
- ngOnInit(): void;
13
- get settings(): IMultipleAutocompleteSettings<any>;
14
- init(): void;
15
- optionSelected(data: MatAutocompleteSelectedEvent): void;
16
- iconClick(event: Event): void;
17
- remove(value: any[]): void;
18
- configValue: (item: any) => any;
19
- ngOnDestroy(): void;
20
- static ɵfac: i0.ɵɵFactoryDeclaration<SpecialMultipleAutocompleteComponent, never>;
21
- static ɵcmp: i0.ɵɵComponentDeclaration<SpecialMultipleAutocompleteComponent, "sp-multiple-autocomplete", never, { "control": { "alias": "control"; "required": false; }; }, {}, never, never, true, never>;
22
- }
@@ -1,19 +0,0 @@
1
- import { AbstractControl } from '@angular/forms';
2
- import { Observable } from 'rxjs';
3
- import { EControlTypes } from '../../core/aux-data/control-types.enum';
4
- import { IFieldData } from '../../core/interfaces/field-basics.interfaces';
5
- export type IMultipleAutocompleteSettings<T> = {
6
- getData: (query: string, control?: AbstractControl) => void;
7
- source: Observable<T[]>;
8
- fieldId: string;
9
- icon?: string;
10
- iconAction?: (data: T) => void;
11
- onSelect?: (data: T) => void;
12
- fieldName: string | ((a?: T) => string);
13
- fieldImage?: string | ((a?: T) => string);
14
- };
15
- export interface IMultipleAutocompleteField<T = any> extends IFieldData {
16
- settings: IMultipleAutocompleteSettings<T>;
17
- type: EControlTypes.multiple;
18
- defaultValue: any;
19
- }
@@ -1,15 +0,0 @@
1
- import { SpecialFormControl } from '../../core/forms/special-forms';
2
- import { IRichTextField } from './special-richtext.interface';
3
- import { Toolbar, Editor } from 'ngx-editor';
4
- import * as i0 from "@angular/core";
5
- export declare class SpecialRichtextComponent {
6
- editor: Editor;
7
- formControl: SpecialFormControl<IRichTextField>;
8
- colorPresets: string[];
9
- control: SpecialFormControl<IRichTextField>;
10
- toolbar: Toolbar;
11
- ngOnInit(): void;
12
- ngOnDestroy(): void;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<SpecialRichtextComponent, never>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<SpecialRichtextComponent, "sp-input", never, { "control": { "alias": "control"; "required": false; }; }, {}, never, never, true, never>;
15
- }
@@ -1,11 +0,0 @@
1
- import { EControlTypes } from '../../core/aux-data/control-types.enum';
2
- import { IFieldData } from '../../core/interfaces/field-basics.interfaces';
3
- export interface IRichTextSettings {
4
- colorPresets?: string[];
5
- outputFormat?: 'doc' | 'html';
6
- }
7
- export interface IRichTextField extends IFieldData {
8
- settings: IRichTextSettings;
9
- type: EControlTypes.richText;
10
- defaultValue: string;
11
- }
@@ -1,13 +0,0 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
2
- import { SpecialFormControl } from '../../core/forms/special-forms';
3
- import { ITextAreaField } from './special-text-area.interface';
4
- import * as i0 from "@angular/core";
5
- export declare class SpecialTextAreaComponent implements OnInit {
6
- control: SpecialFormControl<ITextAreaField>;
7
- onBlur: EventEmitter<any>;
8
- onEnter: EventEmitter<any>;
9
- constructor();
10
- ngOnInit(): void;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<SpecialTextAreaComponent, never>;
12
- static ɵcmp: i0.ɵɵComponentDeclaration<SpecialTextAreaComponent, "sp-text-area", never, { "control": { "alias": "control"; "required": false; }; }, { "onBlur": "onBlur"; "onEnter": "onEnter"; }, never, never, true, never>;
13
- }
@@ -1,8 +0,0 @@
1
- import { EControlTypes } from '../../core/aux-data/control-types.enum';
2
- import { IFieldData } from '../../core/interfaces/field-basics.interfaces';
3
- export type ITextAreaSettings = {};
4
- export interface ITextAreaField extends IFieldData {
5
- settings: ITextAreaSettings;
6
- type: EControlTypes.textArea;
7
- defaultValue: string;
8
- }
@@ -1,7 +0,0 @@
1
- import { PipeTransform } from "@angular/core";
2
- import * as i0 from "@angular/core";
3
- export declare class FileNamePipe implements PipeTransform {
4
- transform(input: File | string): string;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<FileNamePipe, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<FileNamePipe, "fileName", true>;
7
- }
@@ -1,23 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { SafeUrl } from '@angular/platform-browser';
3
- import * as i0 from "@angular/core";
4
- export declare class previewImagePipe implements PipeTransform {
5
- private readonly imageTypeFormats;
6
- private readonly docFormats;
7
- private readonly pdfIcon;
8
- private readonly wordIcon;
9
- private readonly byDefectIcon;
10
- private sanitizer;
11
- transform(input: File | string): SafeUrl;
12
- private getImageWhenIsUrl;
13
- private getFileExtension;
14
- private getImageWhenIsFile;
15
- private getNotImageFormat;
16
- private isImage;
17
- private isPdf;
18
- private isDocument;
19
- configUrl(url: string): SafeUrl;
20
- svgConfiguration(svg: string): SafeUrl;
21
- static ɵfac: i0.ɵɵFactoryDeclaration<previewImagePipe, never>;
22
- static ɵpipe: i0.ɵɵPipeDeclaration<previewImagePipe, "previewImage", true>;
23
- }
@@ -1,31 +0,0 @@
1
- import { SpecialFormControl } from '../../core/forms/special-forms';
2
- import { IUploadField, IUploadSettings } from './special-upload.interface';
3
- import { SpecialFormBuilderService } from '../../core/services';
4
- import * as i0 from "@angular/core";
5
- export declare class SpecialUploadComponent {
6
- readonly DEFAULT_ACCEPTED_TYPES = "image/png, .jpeg, .jpg, image/gif";
7
- sfb: SpecialFormBuilderService;
8
- set control(control: SpecialFormControl<IUploadField>);
9
- get control(): SpecialFormControl<IUploadField>;
10
- private internalControl;
11
- realControl: SpecialFormControl<IUploadField>;
12
- get settings(): IUploadSettings;
13
- get elements(): any;
14
- get multipleElements(): any;
15
- get singleElement(): any[];
16
- private initialConfig;
17
- private minSizeConfig;
18
- private maxSizeConfig;
19
- private isFile;
20
- private isNotFile;
21
- private acceptConfig;
22
- onSelectFile(input: File[] | File): void;
23
- private updateRealControlInput;
24
- private onSelectFileTrigger;
25
- onRemove(input: File | string): void;
26
- private removeFile;
27
- private removeFileFromControl;
28
- private removeElement;
29
- static ɵfac: i0.ɵɵFactoryDeclaration<SpecialUploadComponent, never>;
30
- static ɵcmp: i0.ɵɵComponentDeclaration<SpecialUploadComponent, "sp-upload", never, { "control": { "alias": "control"; "required": false; }; }, {}, never, never, true, never>;
31
- }
@@ -1,15 +0,0 @@
1
- import { EControlTypes } from '../../core/aux-data/control-types.enum';
2
- import { IFieldData } from '../../core/interfaces/field-basics.interfaces';
3
- export type IUploadSettings = {
4
- accept?: string;
5
- multiple?: boolean;
6
- minSize?: number;
7
- maxSize?: number;
8
- mode?: 'replace' | 'append';
9
- onSelectFile?: (value: File[] | File) => void;
10
- };
11
- export interface IUploadField extends IFieldData {
12
- settings: IUploadSettings;
13
- type: EControlTypes.upload;
14
- defaultValue: any;
15
- }
@@ -1,7 +0,0 @@
1
- import { PipeTransform } from "@angular/core";
2
- import * as i0 from "@angular/core";
3
- export declare class TruncatePipe implements PipeTransform {
4
- transform(text: string, lenght?: number, suffix?: string): string;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<TruncatePipe, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<TruncatePipe, "truncate", true>;
7
- }
@@ -1,16 +0,0 @@
1
- export declare enum EControlTypes {
2
- pkey = "PRIMARY-KEY",
3
- input = "INPUT",
4
- richText = "RICH-TEXT",
5
- textArea = "TEXT-AREA",
6
- dropdown = "DROPDOWN",
7
- date = "DATE",
8
- checkbox = "CHECKBOX",
9
- upload = "UPLOAD",
10
- autocomplete = "AUTOCOMPLETE",
11
- multiple = "MULTIPLE-AUTOCOMPLETE",
12
- array = "ARRAY",
13
- form = "FORM",
14
- label = "LABEL",
15
- default = "DEFAULT"
16
- }
@@ -1,2 +0,0 @@
1
- export declare const InputTypes: readonly ["color", "date", "datetime-local", "email", "month", "number", "password", "search", "tel", "text", "time", "url", "week"];
2
- export type TInputTypes = typeof InputTypes[number];
@@ -1,108 +0,0 @@
1
- import { AbstractControl, FormArray, FormControl, FormGroup } from '@angular/forms';
2
- import { EControlTypes } from '../aux-data/control-types.enum';
3
- import { IFieldBasicData } from '../interfaces/field-basics.interfaces';
4
- import { IArraySettings, IFormSettings, TSpecialFields, TSpecialForm, TSpecialArray, TRawFields } from '../interfaces/form.interfaces';
5
- export declare class SpecialFormControl<T extends TRawFields> extends FormControl {
6
- name: string;
7
- placeholder: T['placeholder'];
8
- label: T['label'];
9
- tooltip: T['tooltip'];
10
- icon: T['icon'];
11
- elementId: T['elementId'];
12
- styleClasses: T['styleClasses'];
13
- length: T['length'];
14
- required: T['required'];
15
- hidden: T['hidden'];
16
- readOnly: T['readOnly'];
17
- settings: T['settings'];
18
- type: T['type'];
19
- errorMessages: T['errorMessages'];
20
- constructor({ name, settings, type, validators, asyncValidators, elementId, styleClasses, defaultValue, hidden, icon, label, length, placeholder, readOnly, required, tooltip, errorMessages, disabled, }: TSpecialFields);
21
- setReadOnly(status?: boolean): void;
22
- setDisabled(status?: boolean): void;
23
- setHidden(status?: boolean): void;
24
- }
25
- export declare class SpecialFormGroup extends FormGroup {
26
- name: string;
27
- placeholder: string;
28
- label: string;
29
- tooltip: string;
30
- icon: string;
31
- elementId: string;
32
- styleClasses: string;
33
- length: number;
34
- required: boolean;
35
- hidden: boolean;
36
- readOnly: boolean;
37
- settings: IFormSettings;
38
- type: EControlTypes.form;
39
- defaultValue: any;
40
- errorMessages: {
41
- [key: string]: string;
42
- };
43
- constructor({ name, settings, type, validators, asyncValidators, elementId, styleClasses, defaultValue, hidden, icon, label, length, placeholder, readOnly, required, tooltip, disabled, }: TSpecialForm, controls: {
44
- [key: string]: SpecialFormControl<any>;
45
- });
46
- getDirty(): void;
47
- specialReset(value?: {}): void;
48
- setReadOnly(status?: boolean): void;
49
- setReadOnlyByFields(fieldsObject: {
50
- [key: string]: boolean;
51
- }): void;
52
- setHiddenByFields(fields: {
53
- [key: string]: boolean;
54
- }): void;
55
- setDisabled(status: boolean): void;
56
- setDisabledByFields(fieldsObject: any): void;
57
- /**
58
- * donde value es el objeto semilla y detailForm es un arreglo de form key para dar un marco al formarray
59
- */
60
- setFormValue(value: any): void;
61
- /**
62
- * Método que retorna
63
- */
64
- getIdPkey(): SpecialFormControl<any> | undefined;
65
- }
66
- export declare class SpecialFormArray extends FormArray implements IFieldBasicData {
67
- name: string;
68
- placeholder: string;
69
- label: string;
70
- tooltip: string;
71
- icon: string;
72
- elementId: string;
73
- styleClasses: string;
74
- required: boolean;
75
- hidden: boolean;
76
- readOnly: boolean;
77
- settings: IArraySettings;
78
- type: EControlTypes;
79
- defaultValue: any;
80
- form: SpecialFormGroup;
81
- private formCreation;
82
- errorMessages: {
83
- [key: string]: string;
84
- };
85
- constructor({ name, settings, type, validators, asyncValidators, elementId, styleClasses, defaultValue, hidden, icon, label, placeholder, readOnly, required, tooltip, errorMessages, disabled, }: TSpecialArray, formCreation: () => SpecialFormGroup, controls: AbstractControl[]);
86
- fillFormArray(data: any[]): void;
87
- addItem(): void;
88
- specialPush(index?: number): void;
89
- specialInsert(index?: number): void;
90
- specialEdit(index: number, newValue: Object): void;
91
- /**
92
- * Vuelve todos los controles del formArray de lectura o de sololectura
93
- * @param status
94
- */
95
- setReadOnly(status: boolean): void;
96
- /**
97
- * Vuelve todos los controles del formArray habilitados o deshabilitados
98
- * @param status
99
- */
100
- setDisabled(status: boolean): void;
101
- /**
102
- * Permite editar un control especifico.
103
- * @param index
104
- */
105
- editControl(index: number): void;
106
- getDirty(): void;
107
- recursiveFillForm(form: FormGroup, data: any): FormGroup;
108
- }