@rlucan/ui 14.2.4 → 14.2.6

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 (107) hide show
  1. package/esm2022/lib/action-button/action-button.component.mjs +99 -0
  2. package/esm2022/lib/action-icon/action-icon.component.mjs +37 -0
  3. package/esm2022/lib/autocomplete/autocomplete.component.mjs +391 -0
  4. package/esm2022/lib/avatar/avatar.component.mjs +34 -0
  5. package/esm2022/lib/button/button.component.mjs +57 -0
  6. package/esm2022/lib/checkbox/checkbox.component.mjs +39 -0
  7. package/{esm2020 → esm2022}/lib/checkbox-group/checkbox-group.component.mjs +91 -91
  8. package/esm2022/lib/currency/currency.component.mjs +151 -0
  9. package/esm2022/lib/date/date.component.mjs +68 -0
  10. package/{esm2020 → esm2022}/lib/dialog/dialog.component.mjs +37 -37
  11. package/esm2022/lib/directives/force-visibility/force-visibility.directive.mjs +104 -0
  12. package/esm2022/lib/editor/editor.component.mjs +119 -0
  13. package/{esm2020 → esm2022}/lib/elements/burger/burger.component.mjs +21 -21
  14. package/{esm2020 → esm2022}/lib/elements/expander/expander.component.mjs +28 -28
  15. package/{esm2020 → esm2022}/lib/elements/validation-message/validation-message.component.mjs +47 -47
  16. package/esm2022/lib/file/file.component.mjs +145 -0
  17. package/esm2022/lib/file-uploader/ui-file-uploader.component.mjs +405 -0
  18. package/esm2022/lib/input/input.component.mjs +265 -0
  19. package/esm2022/lib/input-autocomplete/input-autocomplete.component.mjs +277 -0
  20. package/esm2022/lib/layouts/base/ui-base-layout.component.mjs +22 -0
  21. package/esm2022/lib/layouts/base/ui-base.component.mjs +74 -0
  22. package/esm2022/lib/layouts/simple/ui-simple-layout.component.mjs +18 -0
  23. package/esm2022/lib/layouts/simple/ui-simple.component.mjs +166 -0
  24. package/{esm2020 → esm2022}/lib/radio/radio.component.mjs +21 -21
  25. package/esm2022/lib/radio-group/radio-group.component.mjs +53 -0
  26. package/esm2022/lib/select/select.component.mjs +115 -0
  27. package/esm2022/lib/services/message-box.service.mjs +149 -0
  28. package/{esm2020 → esm2022}/lib/services/toast.service.mjs +23 -23
  29. package/{esm2020 → esm2022}/lib/services/ui-file.service.mjs +71 -71
  30. package/{esm2020 → esm2022}/lib/services/ui-translate.service.mjs +32 -32
  31. package/{esm2020 → esm2022}/lib/submit-button/submit-button.component.mjs +72 -72
  32. package/esm2022/lib/table/table.component.mjs +97 -0
  33. package/esm2022/lib/text-area/text-area.component.mjs +46 -0
  34. package/{esm2020 → esm2022}/lib/ui.model.mjs +1 -1
  35. package/esm2022/lib/ui.module.mjs +269 -0
  36. package/esm2022/public-api.mjs +35 -0
  37. package/{esm2020 → esm2022}/rlucan-ui.mjs +4 -4
  38. package/fesm2022/rlucan-ui.mjs +3442 -0
  39. package/fesm2022/rlucan-ui.mjs.map +1 -0
  40. package/index.d.ts +5 -5
  41. package/lib/action-button/action-button.component.d.ts +32 -33
  42. package/lib/action-icon/action-icon.component.d.ts +15 -15
  43. package/lib/autocomplete/autocomplete.component.d.ts +57 -57
  44. package/lib/avatar/avatar.component.d.ts +14 -14
  45. package/lib/button/button.component.d.ts +18 -18
  46. package/lib/checkbox/checkbox.component.d.ts +15 -15
  47. package/lib/checkbox-group/checkbox-group.component.d.ts +18 -18
  48. package/lib/currency/currency.component.d.ts +31 -30
  49. package/lib/date/date.component.d.ts +24 -23
  50. package/lib/dialog/dialog.component.d.ts +13 -13
  51. package/lib/directives/force-visibility/force-visibility.directive.d.ts +22 -20
  52. package/lib/editor/editor.component.d.ts +24 -0
  53. package/lib/elements/burger/burger.component.d.ts +9 -9
  54. package/lib/elements/expander/expander.component.d.ts +10 -10
  55. package/lib/elements/validation-message/validation-message.component.d.ts +12 -12
  56. package/lib/file/file.component.d.ts +35 -29
  57. package/lib/file-uploader/ui-file-uploader.component.d.ts +102 -102
  58. package/lib/input/input.component.d.ts +42 -29
  59. package/lib/input-autocomplete/input-autocomplete.component.d.ts +44 -0
  60. package/lib/{base → layouts/base}/ui-base-layout.component.d.ts +8 -8
  61. package/lib/{base → layouts/base}/ui-base.component.d.ts +23 -23
  62. package/lib/{simple → layouts/simple}/ui-simple-layout.component.d.ts +8 -7
  63. package/lib/{simple → layouts/simple}/ui-simple.component.d.ts +40 -39
  64. package/lib/radio/radio.component.d.ts +8 -8
  65. package/lib/radio-group/radio-group.component.d.ts +18 -18
  66. package/lib/select/select.component.d.ts +35 -33
  67. package/lib/services/message-box.service.d.ts +58 -42
  68. package/lib/services/toast.service.d.ts +13 -13
  69. package/lib/services/ui-file.service.d.ts +33 -33
  70. package/lib/services/ui-translate.service.d.ts +11 -11
  71. package/lib/submit-button/submit-button.component.d.ts +21 -21
  72. package/lib/table/table.component.d.ts +36 -36
  73. package/lib/text-area/text-area.component.d.ts +18 -18
  74. package/lib/ui.model.d.ts +2 -2
  75. package/lib/ui.module.d.ts +59 -56
  76. package/package.json +22 -24
  77. package/public-api.d.ts +29 -27
  78. package/scss/ui-defaults.scss +19 -4
  79. package/src/js/editorjs.mjs +9634 -0
  80. package/ui.scss +70 -20
  81. package/esm2020/lib/action-button/action-button.component.mjs +0 -96
  82. package/esm2020/lib/action-icon/action-icon.component.mjs +0 -37
  83. package/esm2020/lib/autocomplete/autocomplete.component.mjs +0 -391
  84. package/esm2020/lib/avatar/avatar.component.mjs +0 -34
  85. package/esm2020/lib/base/ui-base-layout.component.mjs +0 -22
  86. package/esm2020/lib/base/ui-base.component.mjs +0 -74
  87. package/esm2020/lib/button/button.component.mjs +0 -57
  88. package/esm2020/lib/checkbox/checkbox.component.mjs +0 -39
  89. package/esm2020/lib/currency/currency.component.mjs +0 -148
  90. package/esm2020/lib/date/date.component.mjs +0 -64
  91. package/esm2020/lib/directives/force-visibility/force-visibility.directive.mjs +0 -96
  92. package/esm2020/lib/file/file.component.mjs +0 -88
  93. package/esm2020/lib/file-uploader/ui-file-uploader.component.mjs +0 -394
  94. package/esm2020/lib/input/input.component.mjs +0 -258
  95. package/esm2020/lib/radio-group/radio-group.component.mjs +0 -53
  96. package/esm2020/lib/select/select.component.mjs +0 -91
  97. package/esm2020/lib/services/message-box.service.mjs +0 -113
  98. package/esm2020/lib/simple/ui-simple-layout.component.mjs +0 -15
  99. package/esm2020/lib/simple/ui-simple.component.mjs +0 -154
  100. package/esm2020/lib/table/table.component.mjs +0 -97
  101. package/esm2020/lib/text-area/text-area.component.mjs +0 -46
  102. package/esm2020/lib/ui.module.mjs +0 -255
  103. package/esm2020/public-api.mjs +0 -33
  104. package/fesm2015/rlucan-ui.mjs +0 -2918
  105. package/fesm2015/rlucan-ui.mjs.map +0 -1
  106. package/fesm2020/rlucan-ui.mjs +0 -2886
  107. package/fesm2020/rlucan-ui.mjs.map +0 -1
@@ -1,12 +1,12 @@
1
- import { OnInit } from '@angular/core';
2
- import { IUiTranslateService } from '../../services/ui-translate.service';
3
- import * as i0 from "@angular/core";
4
- export declare class ValidationMessageComponent implements OnInit {
5
- protected translateService: IUiTranslateService;
6
- validationErrors: any;
7
- constructor(translateService: IUiTranslateService);
8
- ngOnInit(): void;
9
- get errorMessage(): string;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<ValidationMessageComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<ValidationMessageComponent, "ui-validation-message", never, { "validationErrors": "validationErrors"; }, {}, never, never, false, never>;
12
- }
1
+ import { OnInit } from '@angular/core';
2
+ import { IUiTranslateService } from '../../services/ui-translate.service';
3
+ import * as i0 from "@angular/core";
4
+ export declare class ValidationMessageComponent implements OnInit {
5
+ protected translateService: IUiTranslateService;
6
+ validationErrors: any;
7
+ constructor(translateService: IUiTranslateService);
8
+ ngOnInit(): void;
9
+ get errorMessage(): string;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<ValidationMessageComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<ValidationMessageComponent, "ui-validation-message", never, { "validationErrors": { "alias": "validationErrors"; "required": false; }; }, {}, never, never, false, never>;
12
+ }
@@ -1,29 +1,35 @@
1
- import { OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
- import { IUiFileService, UiFileService } from '../services/ui-file.service';
3
- import { DomSanitizer } from '@angular/platform-browser';
4
- import * as i0 from "@angular/core";
5
- export declare class FileComponent implements OnInit, OnChanges {
6
- private fileServiceConfig;
7
- private domSanitizer;
8
- private fileService;
9
- fileSize: string;
10
- srcOptions: any;
11
- srcData: any;
12
- srcUrl: {
13
- src: string;
14
- mimeType?: string;
15
- };
16
- visible: boolean;
17
- src: any;
18
- srcUrlMimeType: any;
19
- get width(): string;
20
- get height(): string;
21
- get isVideo(): any;
22
- get mime(): any;
23
- get useRetinaSrc(): boolean;
24
- constructor(fileServiceConfig: IUiFileService, domSanitizer: DomSanitizer, fileService: UiFileService);
25
- ngOnInit(): void;
26
- ngOnChanges(changes: SimpleChanges): void;
27
- static ɵfac: i0.ɵɵFactoryDeclaration<FileComponent, [{ optional: true; }, null, null]>;
28
- static ɵcmp: i0.ɵɵComponentDeclaration<FileComponent, "ui-file", never, { "fileSize": "fileSize"; "srcOptions": "srcOptions"; "srcData": "srcData"; "srcUrl": "srcUrl"; }, {}, never, never, false, never>;
29
- }
1
+ import { OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
+ import { IUiFileService, UiFileService } from '../services/ui-file.service';
3
+ import { DomSanitizer } from '@angular/platform-browser';
4
+ import * as i0 from "@angular/core";
5
+ export declare class FileComponent implements OnInit, OnChanges {
6
+ private fileServiceConfig;
7
+ private domSanitizer;
8
+ private fileService;
9
+ fileSize: string;
10
+ srcOptions: any;
11
+ srcData: any;
12
+ srcUrl: {
13
+ src: string;
14
+ mimeType?: string;
15
+ };
16
+ get fitImageFileSize(): boolean;
17
+ visible: boolean;
18
+ src: any;
19
+ srcUrlMimeType: any;
20
+ nativeFileSizeRatio: number;
21
+ nativeFileWidth: any;
22
+ nativeFileHeight: any;
23
+ get width(): string;
24
+ get maxWidth(): string;
25
+ get height(): string;
26
+ get maxHeight(): string;
27
+ get isVideo(): any;
28
+ get mime(): any;
29
+ get useRetinaSrc(): boolean;
30
+ constructor(fileServiceConfig: IUiFileService, domSanitizer: DomSanitizer, fileService: UiFileService);
31
+ ngOnInit(): void;
32
+ ngOnChanges(changes: SimpleChanges): void;
33
+ static ɵfac: i0.ɵɵFactoryDeclaration<FileComponent, [{ optional: true; }, null, null]>;
34
+ static ɵcmp: i0.ɵɵComponentDeclaration<FileComponent, "ui-file", never, { "fileSize": { "alias": "fileSize"; "required": false; }; "srcOptions": { "alias": "srcOptions"; "required": false; }; "srcData": { "alias": "srcData"; "required": false; }; "srcUrl": { "alias": "srcUrl"; "required": false; }; }, {}, never, never, false, never>;
35
+ }
@@ -1,102 +1,102 @@
1
- import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
- import { ControlContainer } from '@angular/forms';
3
- import { UploaderOptions, UploadFile, UploadInput, UploadOutput } from 'ngx-uploader';
4
- import { IUiFileService, IUiFileServiceMessages, UiFileService } from '../services/ui-file.service';
5
- import { Dimensions, ImageCroppedEvent, ImageTransform } from 'ngx-image-cropper';
6
- import { UiSimpleComponent } from '../simple/ui-simple.component';
7
- import { IUiTranslateService } from '../services/ui-translate.service';
8
- import * as i0 from "@angular/core";
9
- export interface UploadOutputEx extends UploadOutput {
10
- file: UploadFileEx;
11
- }
12
- export interface UploadFileEx extends UploadFile {
13
- imagePreview?: any;
14
- base64?: any;
15
- }
16
- export interface IUiUploaderUserMessage {
17
- message: IUiFileServiceMessages;
18
- data: any;
19
- }
20
- export declare class UiFileUploaderComponent extends UiSimpleComponent implements OnInit, OnDestroy {
21
- private fileServiceConfig;
22
- translateService: IUiTranslateService;
23
- protected controlContainer: ControlContainer;
24
- private fileService;
25
- maxFiles: number;
26
- multiple: boolean;
27
- crop: boolean;
28
- cropRounded: boolean;
29
- cropMaxWidth: any;
30
- fileSize: string;
31
- customFileMenu: boolean;
32
- addHint: any;
33
- newFilePosition: 'first' | 'last';
34
- templates: {
35
- menuTemplate?: any;
36
- addFileTemplate?: any;
37
- fileTemplate?: any;
38
- };
39
- get menuTemplate(): any;
40
- get addFileTemplate(): any;
41
- get fileTemplate(): any;
42
- previewPosition: 'left' | 'bottom' | 'above';
43
- imageCropped: EventEmitter<any>;
44
- fileEvent: EventEmitter<IUiUploaderUserMessage>;
45
- uploadOptions: UploaderOptions;
46
- uploading: boolean;
47
- changeFileIndex: any;
48
- showCropper: boolean;
49
- menuVisible: any;
50
- showCropPreview: {};
51
- cropPreviewTimeouts: {};
52
- cropSourceImages: {};
53
- cropperImageLoaded: {};
54
- imagesDone: {};
55
- transform: ImageTransform;
56
- canvasRotation: {};
57
- files: {
58
- custom?: any;
59
- $newFile?: UploadFile;
60
- }[];
61
- responseFiles: any;
62
- refreshAddInput: boolean;
63
- fileMenuOpened: any;
64
- patchingValues: boolean;
65
- inputArray: boolean;
66
- dragging: boolean;
67
- uploaderId: number;
68
- constructor(fileServiceConfig: IUiFileService, translateService: IUiTranslateService, controlContainer: ControlContainer, fileService: UiFileService);
69
- get uploadInput(): EventEmitter<UploadInput>;
70
- croppedImages: {};
71
- get editable(): boolean;
72
- get ngAddStyle(): {
73
- width: string;
74
- height: string;
75
- };
76
- get aspectRatio(): number;
77
- get addFileImgSrc(): string;
78
- cropDone(f: any): any;
79
- ngOnDestroy(): void;
80
- remove(f: any): void;
81
- patchValues(): void;
82
- get hasFilesToUpload(): boolean;
83
- canImagePreview(type: string): boolean;
84
- onUploadOutput($event: UploadOutput, skipCustomValidation?: boolean): void;
85
- prepareResponse(doemit?: boolean): void;
86
- beforeSave(): Promise<unknown>;
87
- fileChangeEvent(event: any, f: any): void;
88
- startCropPreview(id: any): void;
89
- stopCropPreview(id: any): void;
90
- zoomCroppedImage(dir: any, id: any): void;
91
- rotateCroppedImage(dir: any, id: any): void;
92
- onImageCropped(event: ImageCroppedEvent, id: any): void;
93
- imageLoaded(id: any): void;
94
- cropperReady(sourceImageDimensions: Dimensions, id: any): void;
95
- loadImageFailed(): void;
96
- toggleMenuVisibility(f: any): void;
97
- menuClick(): void;
98
- writeValue(obj: any): void;
99
- cropperDone(id: any): void;
100
- static ɵfac: i0.ɵɵFactoryDeclaration<UiFileUploaderComponent, [{ optional: true; }, null, { optional: true; host: true; skipSelf: true; }, null]>;
101
- static ɵcmp: i0.ɵɵComponentDeclaration<UiFileUploaderComponent, "ui-file-uploader", never, { "maxFiles": "maxFiles"; "multiple": "multiple"; "crop": "crop"; "cropRounded": "cropRounded"; "cropMaxWidth": "cropMaxWidth"; "fileSize": "fileSize"; "customFileMenu": "customFileMenu"; "addHint": "addHint"; "newFilePosition": "newFilePosition"; "templates": "templates"; "previewPosition": "previewPosition"; }, { "imageCropped": "imageCropped"; "fileEvent": "fileEvent"; }, never, never, false, never>;
102
- }
1
+ import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
+ import { ControlContainer } from '@angular/forms';
3
+ import { UploaderOptions, UploadFile, UploadInput, UploadOutput } from 'ngx-uploader';
4
+ import { IUiFileService, IUiFileServiceMessages, UiFileService } from '../services/ui-file.service';
5
+ import { Dimensions, ImageCroppedEvent, ImageTransform } from 'ngx-image-cropper';
6
+ import { UiSimpleComponent } from '../layouts/simple/ui-simple.component';
7
+ import { IUiTranslateService } from '../services/ui-translate.service';
8
+ import * as i0 from "@angular/core";
9
+ export interface UploadOutputEx extends UploadOutput {
10
+ file: UploadFileEx;
11
+ }
12
+ export interface UploadFileEx extends UploadFile {
13
+ imagePreview?: any;
14
+ base64?: any;
15
+ }
16
+ export interface IUiUploaderUserMessage {
17
+ message: IUiFileServiceMessages;
18
+ data: any;
19
+ }
20
+ export declare class UiFileUploaderComponent extends UiSimpleComponent implements OnInit, OnDestroy {
21
+ private fileServiceConfig;
22
+ translateService: IUiTranslateService;
23
+ protected controlContainer: ControlContainer;
24
+ private fileService;
25
+ maxFiles: number;
26
+ multiple: boolean;
27
+ crop: boolean;
28
+ cropRounded: boolean;
29
+ cropMaxWidth: any;
30
+ fileSize: string;
31
+ customFileMenu: boolean;
32
+ addHint: any;
33
+ newFilePosition: 'first' | 'last';
34
+ templates: {
35
+ menuTemplate?: any;
36
+ addFileTemplate?: any;
37
+ fileTemplate?: any;
38
+ };
39
+ get menuTemplate(): any;
40
+ get addFileTemplate(): any;
41
+ get fileTemplate(): any;
42
+ previewPosition: 'left' | 'bottom' | 'above';
43
+ imageCropped: EventEmitter<any>;
44
+ fileEvent: EventEmitter<IUiUploaderUserMessage>;
45
+ uploadOptions: UploaderOptions;
46
+ uploading: boolean;
47
+ changeFileIndex: any;
48
+ showCropper: boolean;
49
+ menuVisible: any;
50
+ showCropPreview: {};
51
+ cropPreviewTimeouts: {};
52
+ cropSourceImages: {};
53
+ cropperImageLoaded: {};
54
+ imagesDone: {};
55
+ transform: ImageTransform;
56
+ canvasRotation: {};
57
+ files: {
58
+ custom?: any;
59
+ $newFile?: UploadFile;
60
+ }[];
61
+ responseFiles: any;
62
+ refreshAddInput: boolean;
63
+ fileMenuOpened: any;
64
+ patchingValues: boolean;
65
+ inputArray: boolean;
66
+ dragging: boolean;
67
+ uploaderId: number;
68
+ constructor(fileServiceConfig: IUiFileService, translateService: IUiTranslateService, controlContainer: ControlContainer, fileService: UiFileService);
69
+ get uploadInput(): EventEmitter<UploadInput>;
70
+ croppedImages: {};
71
+ get editable(): boolean;
72
+ get ngAddStyle(): {
73
+ width: string;
74
+ height: string;
75
+ };
76
+ get aspectRatio(): number;
77
+ get addFileImgSrc(): string;
78
+ cropDone(f: any): any;
79
+ ngOnDestroy(): void;
80
+ remove(f: any): void;
81
+ patchValues(): void;
82
+ get hasFilesToUpload(): boolean;
83
+ canImagePreview(type: string): boolean;
84
+ onUploadOutput($event: UploadOutput, skipCustomValidation?: boolean): void;
85
+ prepareResponse(doemit?: boolean): void;
86
+ beforeSave(): Promise<unknown>;
87
+ fileChangeEvent(event: any, f: any): void;
88
+ startCropPreview(id: any): void;
89
+ stopCropPreview(id: any): void;
90
+ zoomCroppedImage(dir: any, id: any): void;
91
+ rotateCroppedImage(dir: any, id: any): void;
92
+ onImageCropped(event: ImageCroppedEvent, id: any): void;
93
+ imageLoaded(id: any): void;
94
+ cropperReady(sourceImageDimensions: Dimensions, id: any): void;
95
+ loadImageFailed(): void;
96
+ toggleMenuVisibility(f: any): void;
97
+ menuClick(): void;
98
+ writeValue(obj: any): void;
99
+ cropperDone(id: any): void;
100
+ static ɵfac: i0.ɵɵFactoryDeclaration<UiFileUploaderComponent, [{ optional: true; }, null, { optional: true; host: true; skipSelf: true; }, null]>;
101
+ static ɵcmp: i0.ɵɵComponentDeclaration<UiFileUploaderComponent, "ui-file-uploader", never, { "maxFiles": { "alias": "maxFiles"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "crop": { "alias": "crop"; "required": false; }; "cropRounded": { "alias": "cropRounded"; "required": false; }; "cropMaxWidth": { "alias": "cropMaxWidth"; "required": false; }; "fileSize": { "alias": "fileSize"; "required": false; }; "customFileMenu": { "alias": "customFileMenu"; "required": false; }; "addHint": { "alias": "addHint"; "required": false; }; "newFilePosition": { "alias": "newFilePosition"; "required": false; }; "templates": { "alias": "templates"; "required": false; }; "previewPosition": { "alias": "previewPosition"; "required": false; }; }, { "imageCropped": "imageCropped"; "fileEvent": "fileEvent"; }, never, never, false, never>;
102
+ }
@@ -1,29 +1,42 @@
1
- import { ElementRef, EventEmitter, OnInit } from '@angular/core';
2
- import { AbstractControl, ControlContainer, ValidationErrors } from '@angular/forms';
3
- import { UiSimpleComponent } from '../simple/ui-simple.component';
4
- import * as i0 from "@angular/core";
5
- export declare class InputComponent extends UiSimpleComponent implements OnInit {
6
- protected controlContainer: ControlContainer;
7
- prefix: string;
8
- suffix: string;
9
- type: 'text' | 'number' | 'password';
10
- clearButton: boolean;
11
- disableUserInput: boolean;
12
- centered: boolean;
13
- input: ElementRef | undefined;
14
- focusChanged: EventEmitter<boolean>;
15
- keyPressed: EventEmitter<KeyboardEvent>;
16
- required: boolean;
17
- value: string;
18
- get maxLenRequired(): boolean;
19
- constructor(controlContainer: ControlContainer);
20
- get showClearButton(): boolean;
21
- ngOnInit(): void;
22
- clearValue(): void;
23
- focus(): void;
24
- onFocus(focus: boolean): void;
25
- onKeypressed($event: any): void;
26
- validate(control: AbstractControl): ValidationErrors | null;
27
- static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, [{ optional: true; host: true; skipSelf: true; }]>;
28
- static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "ui-input", never, { "prefix": "prefix"; "suffix": "suffix"; "type": "type"; "clearButton": "clearButton"; "disableUserInput": "disableUserInput"; "centered": "centered"; }, { "focusChanged": "focusChanged"; "keyPressed": "keyPressed"; }, never, ["[slot=prefix]", "[slot=suffix]"], false, never>;
29
- }
1
+ import { ElementRef, EventEmitter, OnInit } from '@angular/core';
2
+ import { AbstractControl, ControlContainer, ValidationErrors } from '@angular/forms';
3
+ import { UiSimpleComponent } from '../layouts/simple/ui-simple.component';
4
+ import * as i0 from "@angular/core";
5
+ type PrefixSuffix = {
6
+ icon: string;
7
+ tooltip?: string;
8
+ };
9
+ export declare class InputComponent extends UiSimpleComponent implements OnInit {
10
+ protected controlContainer: ControlContainer;
11
+ prefixIcon: PrefixSuffix;
12
+ suffixIcon: PrefixSuffix;
13
+ type: 'text' | 'number' | 'password';
14
+ clearButton: boolean;
15
+ activeIcons: boolean;
16
+ forceHasPrefix: boolean;
17
+ forceHasSuffix: boolean;
18
+ get textAlignClass(): string;
19
+ textAlign: 'left' | 'center' | 'right';
20
+ input: ElementRef | undefined;
21
+ prefix: ElementRef | undefined;
22
+ suffix: ElementRef | undefined;
23
+ focusChanged: EventEmitter<boolean>;
24
+ keyPressed: EventEmitter<KeyboardEvent>;
25
+ get hasPrefix(): boolean;
26
+ get hasSuffix(): boolean;
27
+ required: boolean;
28
+ hasFocus: boolean;
29
+ value: string;
30
+ get maxLenRequired(): boolean;
31
+ constructor(controlContainer: ControlContainer);
32
+ get showClearButton(): boolean;
33
+ ngOnInit(): void;
34
+ clearValue(): void;
35
+ focus(): void;
36
+ onFocus(focus: boolean): void;
37
+ onKeypressed($event: any): void;
38
+ validate(control: AbstractControl): ValidationErrors | null;
39
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, [{ optional: true; host: true; skipSelf: true; }]>;
40
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent, "ui-input", never, { "prefixIcon": { "alias": "prefixIcon"; "required": false; }; "suffixIcon": { "alias": "suffixIcon"; "required": false; }; "type": { "alias": "type"; "required": false; }; "clearButton": { "alias": "clearButton"; "required": false; }; "activeIcons": { "alias": "activeIcons"; "required": false; }; "forceHasPrefix": { "alias": "forceHasPrefix"; "required": false; }; "forceHasSuffix": { "alias": "forceHasSuffix"; "required": false; }; "textAlign": { "alias": "textAlign"; "required": false; }; }, { "focusChanged": "focusChanged"; "keyPressed": "keyPressed"; }, never, ["[slot=prefix]", "[slot=suffix]"], false, never>;
41
+ }
42
+ export {};
@@ -0,0 +1,44 @@
1
+ import { ElementRef, EventEmitter, OnInit } from '@angular/core';
2
+ import { AbstractControl, ControlContainer, ValidationErrors } from '@angular/forms';
3
+ import { UiSimpleComponent } from '../layouts/simple/ui-simple.component';
4
+ import * as i0 from "@angular/core";
5
+ type PrefixSuffix = {
6
+ icon: string;
7
+ tooltip?: string;
8
+ };
9
+ export declare class InputAutocompleteComponent extends UiSimpleComponent implements OnInit {
10
+ protected controlContainer: ControlContainer;
11
+ prefixIcon: PrefixSuffix;
12
+ suffixIcon: PrefixSuffix;
13
+ type: 'text' | 'number' | 'password';
14
+ clearButton: boolean;
15
+ activeIcons: boolean;
16
+ forceHasPrefix: boolean;
17
+ forceHasSuffix: boolean;
18
+ options: any[];
19
+ get textAlignClass(): string;
20
+ textAlign: 'left' | 'center' | 'right';
21
+ input: ElementRef | undefined;
22
+ prefix: ElementRef | undefined;
23
+ suffix: ElementRef | undefined;
24
+ focusChanged: EventEmitter<boolean>;
25
+ keyPressed: EventEmitter<KeyboardEvent>;
26
+ get hasPrefix(): boolean;
27
+ get hasSuffix(): boolean;
28
+ filteredOptions: any[];
29
+ required: boolean;
30
+ hasFocus: boolean;
31
+ value: string;
32
+ get maxLenRequired(): boolean;
33
+ constructor(controlContainer: ControlContainer);
34
+ get showClearButton(): boolean;
35
+ ngOnInit(): void;
36
+ clearValue(): void;
37
+ focus(): void;
38
+ onFocus(focus: boolean): void;
39
+ onKeypressed($event: any): void;
40
+ validate(control: AbstractControl): ValidationErrors | null;
41
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputAutocompleteComponent, [{ optional: true; host: true; skipSelf: true; }]>;
42
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputAutocompleteComponent, "ui-input-autocomplete", never, { "prefixIcon": { "alias": "prefixIcon"; "required": false; }; "suffixIcon": { "alias": "suffixIcon"; "required": false; }; "type": { "alias": "type"; "required": false; }; "clearButton": { "alias": "clearButton"; "required": false; }; "activeIcons": { "alias": "activeIcons"; "required": false; }; "forceHasPrefix": { "alias": "forceHasPrefix"; "required": false; }; "forceHasSuffix": { "alias": "forceHasSuffix"; "required": false; }; "options": { "alias": "options"; "required": false; }; "textAlign": { "alias": "textAlign"; "required": false; }; }, { "focusChanged": "focusChanged"; "keyPressed": "keyPressed"; }, never, ["[slot=prefix]", "[slot=suffix]"], false, never>;
43
+ }
44
+ export {};
@@ -1,8 +1,8 @@
1
- import { UiBaseComponent } from './ui-base.component';
2
- import * as i0 from "@angular/core";
3
- export declare class UiBaseLayoutComponent {
4
- ctx: UiBaseComponent;
5
- get class(): string;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<UiBaseLayoutComponent, never>;
7
- static ɵcmp: i0.ɵɵComponentDeclaration<UiBaseLayoutComponent, "ui-base-layout", never, { "ctx": "ctx"; }, {}, never, [".counter-top", "*", ".counter-bottom"], false, never>;
8
- }
1
+ import { UiBaseComponent } from './ui-base.component';
2
+ import * as i0 from "@angular/core";
3
+ export declare class UiBaseLayoutComponent {
4
+ ctx: UiBaseComponent;
5
+ get class(): string;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<UiBaseLayoutComponent, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<UiBaseLayoutComponent, "ui-base-layout", never, { "ctx": { "alias": "ctx"; "required": false; }; }, {}, never, [".counter-top", "*", ".counter-bottom"], false, never>;
8
+ }
@@ -1,23 +1,23 @@
1
- import { OnInit } from '@angular/core';
2
- import { ValidationErrors } from '@angular/forms';
3
- import * as i0 from "@angular/core";
4
- export interface UiValidators {
5
- required?: boolean;
6
- maxLength?: number;
7
- }
8
- export declare abstract class UiBaseComponent implements OnInit {
9
- placeholder: string;
10
- label: string | undefined;
11
- useInputMessages: 'never' | 'always' | 'ondemand';
12
- inputMessagesPosition: 'absolute' | 'relative';
13
- hint?: string;
14
- size: 'small' | 'smaller' | 'normal' | 'larger' | 'large';
15
- required: boolean;
16
- constructor();
17
- ngOnInit(): void;
18
- get validationErrors(): ValidationErrors;
19
- get validationMessage(): string;
20
- get isInvalid(): boolean;
21
- static ɵfac: i0.ɵɵFactoryDeclaration<UiBaseComponent, never>;
22
- static ɵcmp: i0.ɵɵComponentDeclaration<UiBaseComponent, "ui-abstract-base-component", never, { "placeholder": "placeholder"; "label": "label"; "useInputMessages": "useInputMessages"; "inputMessagesPosition": "inputMessagesPosition"; "hint": "hint"; "size": "size"; }, {}, never, never, false, never>;
23
- }
1
+ import { OnInit } from '@angular/core';
2
+ import { ValidationErrors } from '@angular/forms';
3
+ import * as i0 from "@angular/core";
4
+ export interface UiValidators {
5
+ required?: boolean;
6
+ maxLength?: number;
7
+ }
8
+ export declare abstract class UiBaseComponent implements OnInit {
9
+ placeholder: string;
10
+ label: string | undefined;
11
+ useInputMessages: 'never' | 'always' | 'ondemand';
12
+ inputMessagesPosition: 'absolute' | 'relative';
13
+ hint?: string;
14
+ size: 'small' | 'smaller' | 'normal' | 'larger' | 'large';
15
+ required: boolean;
16
+ constructor();
17
+ ngOnInit(): void;
18
+ get validationErrors(): ValidationErrors;
19
+ get validationMessage(): string;
20
+ get isInvalid(): boolean;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<UiBaseComponent, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<UiBaseComponent, "ui-abstract-base-component", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "label": { "alias": "label"; "required": false; }; "useInputMessages": { "alias": "useInputMessages"; "required": false; }; "inputMessagesPosition": { "alias": "inputMessagesPosition"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, {}, never, never, false, never>;
23
+ }
@@ -1,7 +1,8 @@
1
- import { UiSimpleComponent } from './ui-simple.component';
2
- import * as i0 from "@angular/core";
3
- export declare class UiSimpleLayoutComponent {
4
- ctx: UiSimpleComponent;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<UiSimpleLayoutComponent, never>;
6
- static ɵcmp: i0.ɵɵComponentDeclaration<UiSimpleLayoutComponent, "ui-simple-layout", never, { "ctx": "ctx"; }, {}, never, ["*"], false, never>;
7
- }
1
+ import { UiSimpleComponent } from './ui-simple.component';
2
+ import * as i0 from "@angular/core";
3
+ export declare class UiSimpleLayoutComponent {
4
+ ctx: UiSimpleComponent;
5
+ length(): any;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<UiSimpleLayoutComponent, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<UiSimpleLayoutComponent, "ui-simple-layout", never, { "ctx": { "alias": "ctx"; "required": false; }; }, {}, never, ["*"], false, never>;
8
+ }
@@ -1,39 +1,40 @@
1
- import { OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
2
- import { AbstractControl, ControlValueAccessor, UntypedFormControl, NgControl, ValidationErrors, Validator, FormControl, ControlContainer } from '@angular/forms';
3
- import { UiBaseComponent, UiValidators } from '../base/ui-base.component';
4
- import { Subscription } from 'rxjs';
5
- import * as i0 from "@angular/core";
6
- export declare abstract class UiSimpleComponent extends UiBaseComponent implements OnInit, OnChanges, OnDestroy, ControlValueAccessor, Validator {
7
- ngControl: NgControl;
8
- protected controlContainer: ControlContainer;
9
- validators: UiValidators | undefined;
10
- formControl: any;
11
- formControlName: any;
12
- componentFormControl: UntypedFormControl;
13
- parentFormControl: UntypedFormControl & {
14
- _componentFormControl: FormControl;
15
- _markAsTouched: Function;
16
- _setErrors: Function;
17
- };
18
- sub: Subscription;
19
- constructor(ngControl: NgControl, // <-- obsolete
20
- controlContainer?: ControlContainer);
21
- get maxLenRequired(): boolean;
22
- get isInvalid(): boolean;
23
- get validationErrors(): ValidationErrors;
24
- onChange: (val: any) => void;
25
- onTouched: () => void;
26
- onValidatorChange: () => void;
27
- ngOnDestroy(): void;
28
- ngOnInit(): void;
29
- applyTemplateValidators(): void;
30
- ngOnChanges(changes: SimpleChanges): void;
31
- registerOnChange(fn: any): void;
32
- registerOnTouched(fn: any): void;
33
- setDisabledState(isDisabled: boolean): void;
34
- writeValue(obj: any): void;
35
- registerOnValidatorChange(fn: () => void): void;
36
- validate(control: AbstractControl): ValidationErrors | null;
37
- static ɵfac: i0.ɵɵFactoryDeclaration<UiSimpleComponent, never>;
38
- static ɵcmp: i0.ɵɵComponentDeclaration<UiSimpleComponent, "ui-abstract-simple-component", never, { "validators": "validators"; "formControl": "formControl"; "formControlName": "formControlName"; }, {}, never, never, false, never>;
39
- }
1
+ import { OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
2
+ import { AbstractControl, ControlValueAccessor, UntypedFormControl, NgControl, ValidationErrors, Validator, FormControl, ControlContainer } from '@angular/forms';
3
+ import { UiBaseComponent, UiValidators } from '../base/ui-base.component';
4
+ import { Subscription } from 'rxjs';
5
+ import * as i0 from "@angular/core";
6
+ export declare abstract class UiSimpleComponent extends UiBaseComponent implements OnInit, OnChanges, OnDestroy, ControlValueAccessor, Validator {
7
+ ngControl: NgControl;
8
+ protected controlContainer: ControlContainer;
9
+ validators: UiValidators | undefined;
10
+ formControl: any;
11
+ formControlName: any;
12
+ componentFormControl: UntypedFormControl;
13
+ parentFormControl: UntypedFormControl & {
14
+ _componentFormControl: FormControl;
15
+ _markAsTouched: Function;
16
+ _setErrors: Function;
17
+ };
18
+ sub: Subscription;
19
+ constructor(ngControl: NgControl, // <-- obsolete
20
+ controlContainer?: ControlContainer);
21
+ get maxLenRequired(): boolean;
22
+ get isInvalid(): boolean;
23
+ get validationErrors(): ValidationErrors;
24
+ onChange: (val: any) => void;
25
+ onTouched: () => void;
26
+ onValidatorChange: () => void;
27
+ ngOnDestroy(): void;
28
+ ngOnInit(): void;
29
+ applyTemplateValidators(): void;
30
+ ngOnChanges(changes: SimpleChanges): void;
31
+ registerOnChange(fn: any): void;
32
+ registerOnTouched(fn: any): void;
33
+ setDisabledState(isDisabled: boolean): void;
34
+ writeValue(obj: any): void;
35
+ registerOnValidatorChange(fn: () => void): void;
36
+ validate(control: AbstractControl): ValidationErrors | null;
37
+ inputLength(): any;
38
+ static ɵfac: i0.ɵɵFactoryDeclaration<UiSimpleComponent, never>;
39
+ static ɵcmp: i0.ɵɵComponentDeclaration<UiSimpleComponent, "ui-abstract-simple-component", never, { "validators": { "alias": "validators"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; }, {}, never, never, false, never>;
40
+ }
@@ -1,8 +1,8 @@
1
- import * as i0 from "@angular/core";
2
- export declare class RadioComponent {
3
- value: any;
4
- label: any;
5
- color: 'primary' | 'accent' | 'warn';
6
- static ɵfac: i0.ɵɵFactoryDeclaration<RadioComponent, never>;
7
- static ɵcmp: i0.ɵɵComponentDeclaration<RadioComponent, "ui-radio", never, { "value": "value"; "label": "label"; "color": "color"; }, {}, never, never, false, never>;
8
- }
1
+ import * as i0 from "@angular/core";
2
+ export declare class RadioComponent {
3
+ value: any;
4
+ label: any;
5
+ color: 'primary' | 'accent' | 'warn';
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<RadioComponent, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<RadioComponent, "ui-radio", never, { "value": { "alias": "value"; "required": false; }; "label": { "alias": "label"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, {}, never, never, false, never>;
8
+ }