@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,18 +1,18 @@
1
- import { OnChanges, SimpleChanges } from '@angular/core';
2
- import { UiSimpleComponent } from '../simple/ui-simple.component';
3
- import { NgControl } from '@angular/forms';
4
- import * as i0 from "@angular/core";
5
- export declare class RadioGroupComponent extends UiSimpleComponent implements /*OnInit, */ OnChanges {
6
- control: NgControl;
7
- cbxs: any;
8
- id: number;
9
- options: any;
10
- displayAttribute: string;
11
- valueAttribute: any;
12
- groupName: string;
13
- optionEnabled: (option: any) => boolean;
14
- constructor(control: NgControl);
15
- ngOnChanges(changes: SimpleChanges): void;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<RadioGroupComponent, [{ optional: true; self: true; }]>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<RadioGroupComponent, "ui-radio-group", never, { "options": "options"; "displayAttribute": "displayAttribute"; "valueAttribute": "valueAttribute"; "groupName": "groupName"; "optionEnabled": "optionEnabled"; }, {}, never, never, false, never>;
18
- }
1
+ import { OnChanges, SimpleChanges } from '@angular/core';
2
+ import { UiSimpleComponent } from '../layouts/simple/ui-simple.component';
3
+ import { NgControl } from '@angular/forms';
4
+ import * as i0 from "@angular/core";
5
+ export declare class RadioGroupComponent extends UiSimpleComponent implements /*OnInit, */ OnChanges {
6
+ control: NgControl;
7
+ cbxs: any;
8
+ id: number;
9
+ options: any;
10
+ displayAttribute: string;
11
+ valueAttribute: any;
12
+ groupName: string;
13
+ optionEnabled: (option: any) => boolean;
14
+ constructor(control: NgControl);
15
+ ngOnChanges(changes: SimpleChanges): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<RadioGroupComponent, [{ optional: true; self: true; }]>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<RadioGroupComponent, "ui-radio-group", never, { "options": { "alias": "options"; "required": false; }; "displayAttribute": { "alias": "displayAttribute"; "required": false; }; "valueAttribute": { "alias": "valueAttribute"; "required": false; }; "groupName": { "alias": "groupName"; "required": false; }; "optionEnabled": { "alias": "optionEnabled"; "required": false; }; }, {}, never, never, false, never>;
18
+ }
@@ -1,33 +1,35 @@
1
- import { OnInit, TemplateRef } from '@angular/core';
2
- import { NgControl } from '@angular/forms';
3
- import { UiSimpleComponent } from '../simple/ui-simple.component';
4
- import { MatSelect } from '@angular/material/select';
5
- import { IUiTranslateService } from '../services/ui-translate.service';
6
- import * as i0 from "@angular/core";
7
- export declare class SelectComponent extends UiSimpleComponent implements OnInit {
8
- ngControl: NgControl;
9
- translateService: IUiTranslateService;
10
- multiple: boolean;
11
- triggerFormatter: any;
12
- valueAttribute: string | undefined;
13
- resetText: string | undefined;
14
- displayAttribute: string | undefined;
15
- options: any[];
16
- optionFormatter: ((arg: any) => string | undefined) | undefined;
17
- optionTemplateRef?: TemplateRef<any>;
18
- triggerTemplateRef?: TemplateRef<any>;
19
- panelClass: any;
20
- allowEmptySelection: boolean;
21
- select: MatSelect;
22
- lastCount: number;
23
- overoption: boolean;
24
- constructor(ngControl: NgControl, translateService: IUiTranslateService);
25
- ngOnInit(): void;
26
- optionToValue: (o: any) => any;
27
- selectOption(o: any, select: MatSelect): void;
28
- selectAll(): void;
29
- clearAll(): void;
30
- setDisabledState(isDisabled: boolean): void;
31
- static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, [{ optional: true; self: true; }, null]>;
32
- static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "ui-select", never, { "multiple": "multiple"; "triggerFormatter": "triggerFormatter"; "valueAttribute": "valueAttribute"; "resetText": "resetText"; "displayAttribute": "displayAttribute"; "options": "options"; "optionFormatter": "optionFormatter"; "optionTemplateRef": "optionTemplateRef"; "triggerTemplateRef": "triggerTemplateRef"; "panelClass": "panelClass"; "allowEmptySelection": "allowEmptySelection"; }, {}, never, never, false, never>;
33
- }
1
+ import { OnInit, TemplateRef } from '@angular/core';
2
+ import { NgControl } from '@angular/forms';
3
+ import { UiSimpleComponent } from '../layouts/simple/ui-simple.component';
4
+ import { MatSelect } from '@angular/material/select';
5
+ import { IUiTranslateService } from '../services/ui-translate.service';
6
+ import * as i0 from "@angular/core";
7
+ export declare class SelectComponent extends UiSimpleComponent implements OnInit {
8
+ ngControl: NgControl;
9
+ translateService: IUiTranslateService;
10
+ multiple: boolean;
11
+ triggerFormatter: any;
12
+ valueAttribute: string | undefined;
13
+ resetText: string | undefined;
14
+ displayAttribute: string | undefined;
15
+ options: any[];
16
+ optionFormatter: ((arg: any) => string | undefined) | undefined;
17
+ optionTemplateRef?: TemplateRef<any>;
18
+ triggerTemplateRef?: TemplateRef<any>;
19
+ panelClass: any;
20
+ allowEmptySelection: boolean;
21
+ trackBy: any;
22
+ select: MatSelect;
23
+ lastCount: number;
24
+ overoption: boolean;
25
+ constructor(ngControl: NgControl, translateService: IUiTranslateService);
26
+ ngOnInit(): void;
27
+ optionToValue: (o: any) => any;
28
+ selectOption(o: any, select: MatSelect): void;
29
+ selectAll(): void;
30
+ clearAll(): void;
31
+ setDisabledState(isDisabled: boolean): void;
32
+ writeValue(obj: any): void;
33
+ static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, [{ optional: true; self: true; }, null]>;
34
+ static ɵcmp: i0.ɵɵComponentDeclaration<SelectComponent, "ui-select", never, { "multiple": { "alias": "multiple"; "required": false; }; "triggerFormatter": { "alias": "triggerFormatter"; "required": false; }; "valueAttribute": { "alias": "valueAttribute"; "required": false; }; "resetText": { "alias": "resetText"; "required": false; }; "displayAttribute": { "alias": "displayAttribute"; "required": false; }; "options": { "alias": "options"; "required": false; }; "optionFormatter": { "alias": "optionFormatter"; "required": false; }; "optionTemplateRef": { "alias": "optionTemplateRef"; "required": false; }; "triggerTemplateRef": { "alias": "triggerTemplateRef"; "required": false; }; "panelClass": { "alias": "panelClass"; "required": false; }; "allowEmptySelection": { "alias": "allowEmptySelection"; "required": false; }; "trackBy": { "alias": "trackBy"; "required": false; }; }, {}, never, never, false, never>;
35
+ }
@@ -1,42 +1,58 @@
1
- import { DomSanitizer } from '@angular/platform-browser';
2
- import { MatDialog, MatDialogRef } from '@angular/material/dialog';
3
- import { Observable } from 'rxjs';
4
- import { IUiTranslateService } from './ui-translate.service';
5
- import * as i0 from "@angular/core";
6
- export interface MessageBoxButton {
7
- id: string;
8
- text: string;
9
- kind?: 'basic' | 'flat' | 'stroked';
10
- color?: 'primary' | 'accent' | 'warn';
11
- }
12
- export declare class MessageBoxModalComponent {
13
- dialogRef: MatDialogRef<MessageBoxModalComponent>;
14
- sanitizer: DomSanitizer;
15
- private data;
16
- message: any;
17
- errorMessage: any;
18
- errorDetail: any;
19
- buttons: MessageBoxButton[];
20
- title: string;
21
- hideCloseButton: boolean;
22
- constructor(dialogRef: MatDialogRef<MessageBoxModalComponent>, sanitizer: DomSanitizer, data: any);
23
- close(result: any): void;
24
- static ɵfac: i0.ɵɵFactoryDeclaration<MessageBoxModalComponent, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<MessageBoxModalComponent, "ui-message-box-modal", never, {}, {}, never, never, false, never>;
26
- }
27
- export declare class MessageBoxService {
28
- private dialog;
29
- translateService: IUiTranslateService;
30
- constructor(dialog: MatDialog, translateService: IUiTranslateService);
31
- confirm(message: string, options?: {
32
- buttons?: MessageBoxButton[];
33
- title?: string;
34
- errorMessage?: string;
35
- errorDetail?: string;
36
- hideCloseButton?: boolean;
37
- maxWidth?: string;
38
- }): Observable<any>;
39
- confirmDelete(title: string, message: string): Observable<any>;
40
- static ɵfac: i0.ɵɵFactoryDeclaration<MessageBoxService, never>;
41
- static ɵprov: i0.ɵɵInjectableDeclaration<MessageBoxService>;
42
- }
1
+ import { TemplateRef } from '@angular/core';
2
+ import { DomSanitizer } from '@angular/platform-browser';
3
+ import { MatDialog, MatDialogRef } from '@angular/material/dialog';
4
+ import { Observable } from 'rxjs';
5
+ import { IUiTranslateService } from './ui-translate.service';
6
+ import * as i0 from "@angular/core";
7
+ export interface MessageBoxButton {
8
+ id: string;
9
+ text: string;
10
+ kind?: 'basic' | 'flat' | 'stroked';
11
+ color?: 'primary' | 'accent' | 'warn';
12
+ process?: () => Promise<any>;
13
+ disabled?: () => boolean;
14
+ }
15
+ export declare class MessageBoxModalComponent {
16
+ dialogRef: MatDialogRef<MessageBoxModalComponent>;
17
+ sanitizer: DomSanitizer;
18
+ private data;
19
+ message: any;
20
+ errorMessage: any;
21
+ errorDetail: any;
22
+ buttons: MessageBoxButton[];
23
+ title: string;
24
+ template: any;
25
+ hideCloseButton: boolean;
26
+ processing: MessageBoxButton;
27
+ constructor(dialogRef: MatDialogRef<MessageBoxModalComponent>, sanitizer: DomSanitizer, data: any);
28
+ close(result: any): void;
29
+ buttonClick(b: MessageBoxButton): void;
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<MessageBoxModalComponent, never>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<MessageBoxModalComponent, "ui-message-box-modal", never, {}, {}, never, never, false, never>;
32
+ }
33
+ export declare class MessageBoxService {
34
+ private dialog;
35
+ translateService: IUiTranslateService;
36
+ constructor(dialog: MatDialog, translateService: IUiTranslateService);
37
+ confirm(message: string, options?: {
38
+ buttons?: MessageBoxButton[];
39
+ title?: string;
40
+ errorMessage?: string;
41
+ errorDetail?: string;
42
+ hideCloseButton?: boolean;
43
+ maxWidth?: string;
44
+ }): Observable<any>;
45
+ open(options?: {
46
+ buttons?: MessageBoxButton[];
47
+ title?: string;
48
+ errorMessage?: string;
49
+ errorDetail?: string;
50
+ hideCloseButton?: boolean;
51
+ maxWidth?: string;
52
+ message?: string;
53
+ template?: TemplateRef<any>;
54
+ }): Observable<any>;
55
+ confirmDelete(title: string, message: string): Observable<any>;
56
+ static ɵfac: i0.ɵɵFactoryDeclaration<MessageBoxService, never>;
57
+ static ɵprov: i0.ɵɵInjectableDeclaration<MessageBoxService>;
58
+ }
@@ -1,13 +1,13 @@
1
- import { MatSnackBar } from '@angular/material/snack-bar';
2
- import * as i0 from "@angular/core";
3
- export declare type ToastType = 'info' | 'success' | 'warning' | 'fail';
4
- export declare class ToastService {
5
- private snackService;
6
- constructor(snackService: MatSnackBar);
7
- open(message: string, options?: {
8
- duration?: number;
9
- type?: ToastType;
10
- }): void;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<ToastService, never>;
12
- static ɵprov: i0.ɵɵInjectableDeclaration<ToastService>;
13
- }
1
+ import { MatSnackBar } from '@angular/material/snack-bar';
2
+ import * as i0 from "@angular/core";
3
+ export type ToastType = 'info' | 'success' | 'warning' | 'fail';
4
+ export declare class ToastService {
5
+ private snackService;
6
+ constructor(snackService: MatSnackBar);
7
+ open(message: string, options?: {
8
+ duration?: number;
9
+ type?: ToastType;
10
+ }): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<ToastService, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<ToastService>;
13
+ }
@@ -1,33 +1,33 @@
1
- import { EventEmitter, InjectionToken } from '@angular/core';
2
- import { UploadFile, UploadInput } from 'ngx-uploader';
3
- import { Subject } from 'rxjs';
4
- import * as i0 from "@angular/core";
5
- export declare type IUiFileServiceMessages = 'cropInvalidFileType' | 'extensionNotAllowed' | 'fileAdded' | 'fileRemoved';
6
- export interface IUiFileService {
7
- getAuthHeader: () => {
8
- [key: string]: string;
9
- };
10
- uploadUrl: string;
11
- getMediaSrc: (size: string, data: any, options: any) => string;
12
- getPreviewUrl: (size: string, any: any) => string;
13
- addFileImgSrc: string;
14
- getMimeType: (data: any) => string;
15
- imageSizes: {
16
- [key: string]: [number, number];
17
- };
18
- concurrentUploads: number;
19
- useRetinaSrc: boolean;
20
- fileValidation?: (size: string, file: UploadFile) => Promise<boolean>;
21
- }
22
- export declare const UI_FILESERVICE: InjectionToken<IUiFileService>;
23
- export declare class UiFileService {
24
- fileServiceConfig: IUiFileService;
25
- uploadInput: EventEmitter<UploadInput>;
26
- uploadSubscription: Subject<unknown>;
27
- filesToRemove: string[];
28
- controls: Set<any>;
29
- constructor(fileServiceConfig: IUiFileService);
30
- upload(): Promise<'uploadSuccess' | 'uploadFailed'>;
31
- static ɵfac: i0.ɵɵFactoryDeclaration<UiFileService, [{ optional: true; }]>;
32
- static ɵprov: i0.ɵɵInjectableDeclaration<UiFileService>;
33
- }
1
+ import { EventEmitter, InjectionToken } from '@angular/core';
2
+ import { UploadFile, UploadInput } from 'ngx-uploader';
3
+ import { Subject } from 'rxjs';
4
+ import * as i0 from "@angular/core";
5
+ export type IUiFileServiceMessages = 'cropInvalidFileType' | 'extensionNotAllowed' | 'fileAdded' | 'fileRemoved';
6
+ export interface IUiFileService {
7
+ getAuthHeader: () => {
8
+ [key: string]: string;
9
+ };
10
+ uploadUrl: string;
11
+ getMediaSrc: (size: string, data: any, options: any) => string;
12
+ getPreviewUrl: (size: string, any: any) => string;
13
+ addFileImgSrc: string;
14
+ getMimeType: (data: any) => string;
15
+ imageSizes: {
16
+ [key: string]: [number, number];
17
+ };
18
+ concurrentUploads: number;
19
+ useRetinaSrc: boolean;
20
+ fileValidation?: (size: string, file: UploadFile) => Promise<boolean>;
21
+ }
22
+ export declare const UI_FILESERVICE: InjectionToken<IUiFileService>;
23
+ export declare class UiFileService {
24
+ fileServiceConfig: IUiFileService;
25
+ uploadInput: EventEmitter<UploadInput>;
26
+ uploadSubscription: Subject<unknown>;
27
+ filesToRemove: string[];
28
+ controls: Set<any>;
29
+ constructor(fileServiceConfig: IUiFileService);
30
+ upload(): Promise<'uploadSuccess' | 'uploadFailed'>;
31
+ static ɵfac: i0.ɵɵFactoryDeclaration<UiFileService, [{ optional: true; }]>;
32
+ static ɵprov: i0.ɵɵInjectableDeclaration<UiFileService>;
33
+ }
@@ -1,11 +1,11 @@
1
- import { InjectionToken } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export interface IUiTranslateService {
4
- instant: (code: string, data?: any) => string;
5
- }
6
- export declare const UI_TRANSLATESERVICE: InjectionToken<IUiTranslateService>;
7
- export declare class UiTranslateService implements IUiTranslateService {
8
- instant(code: string, data: any): string;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<UiTranslateService, never>;
10
- static ɵprov: i0.ɵɵInjectableDeclaration<UiTranslateService>;
11
- }
1
+ import { InjectionToken } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export interface IUiTranslateService {
4
+ instant: (code: string, data?: any) => string;
5
+ }
6
+ export declare const UI_TRANSLATESERVICE: InjectionToken<IUiTranslateService>;
7
+ export declare class UiTranslateService implements IUiTranslateService {
8
+ instant(code: string, data: any): string;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<UiTranslateService, never>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<UiTranslateService>;
11
+ }
@@ -1,21 +1,21 @@
1
- import { OnInit } from '@angular/core';
2
- import { ControlContainer, UntypedFormGroup } from '@angular/forms';
3
- import { MatDialogRef } from '@angular/material/dialog';
4
- import * as i0 from "@angular/core";
5
- export declare class SubmitButtonComponent implements OnInit {
6
- dialogRef: MatDialogRef<any>;
7
- protected controlContainer: ControlContainer;
8
- busy: boolean;
9
- disabled: boolean;
10
- formGroups: UntypedFormGroup | UntypedFormGroup[];
11
- label: string;
12
- submit: (() => void) | undefined;
13
- formInvalid: boolean | undefined;
14
- prependCloseButton: boolean;
15
- constructor(dialogRef: MatDialogRef<any>, controlContainer: ControlContainer);
16
- ngOnInit(): void;
17
- get formsValid(): boolean;
18
- doSubmit(): void;
19
- static ɵfac: i0.ɵɵFactoryDeclaration<SubmitButtonComponent, [null, { optional: true; host: true; skipSelf: true; }]>;
20
- static ɵcmp: i0.ɵɵComponentDeclaration<SubmitButtonComponent, "ui-submit-button", never, { "busy": "busy"; "disabled": "disabled"; "formGroups": "formGroups"; "label": "label"; "submit": "submit"; "formInvalid": "formInvalid"; "prependCloseButton": "prependCloseButton"; }, {}, never, never, false, never>;
21
- }
1
+ import { OnInit } from '@angular/core';
2
+ import { ControlContainer, UntypedFormGroup } from '@angular/forms';
3
+ import { MatDialogRef } from '@angular/material/dialog';
4
+ import * as i0 from "@angular/core";
5
+ export declare class SubmitButtonComponent implements OnInit {
6
+ dialogRef: MatDialogRef<any>;
7
+ protected controlContainer: ControlContainer;
8
+ busy: boolean;
9
+ disabled: boolean;
10
+ formGroups: UntypedFormGroup | UntypedFormGroup[];
11
+ label: string;
12
+ submit: (() => void) | undefined;
13
+ formInvalid: boolean | undefined;
14
+ prependCloseButton: boolean;
15
+ constructor(dialogRef: MatDialogRef<any>, controlContainer: ControlContainer);
16
+ ngOnInit(): void;
17
+ get formsValid(): boolean;
18
+ doSubmit(): void;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<SubmitButtonComponent, [null, { optional: true; host: true; skipSelf: true; }]>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<SubmitButtonComponent, "ui-submit-button", never, { "busy": { "alias": "busy"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "formGroups": { "alias": "formGroups"; "required": false; }; "label": { "alias": "label"; "required": false; }; "submit": { "alias": "submit"; "required": false; }; "formInvalid": { "alias": "formInvalid"; "required": false; }; "prependCloseButton": { "alias": "prependCloseButton"; "required": false; }; }, {}, never, never, false, never>;
21
+ }
@@ -1,36 +1,36 @@
1
- import { AfterViewInit, OnInit } from '@angular/core';
2
- import { MatSort, SortDirection } from '@angular/material/sort';
3
- import { DomSanitizer } from '@angular/platform-browser';
4
- import * as i0 from "@angular/core";
5
- export interface TableColumn {
6
- name: string;
7
- sortable?: boolean | ((row: any, direction?: SortDirection) => number | string);
8
- label?: string;
9
- colSpan?: (row: any) => number;
10
- formatter?: (row: any) => string;
11
- cellClass?: (row: any) => string;
12
- }
13
- export interface TableOptions {
14
- sticky?: boolean;
15
- }
16
- export declare class TableComponent implements OnInit, AfterViewInit {
17
- private domSanitizer;
18
- columns: TableColumn[];
19
- dataSource: any;
20
- options: TableOptions | undefined;
21
- rowTemplates: any;
22
- headerTemplates: any;
23
- stateStoreKey: string;
24
- rowAction: (row: any) => void;
25
- matSortActive: any;
26
- matSortDirection: any;
27
- matSort: MatSort | undefined;
28
- get columnList(): string[];
29
- constructor(/*private persistService: PersistService, */ domSanitizer: DomSanitizer);
30
- ngOnInit(): void;
31
- ngAfterViewInit(): void;
32
- display(row: any, col: TableColumn): any;
33
- rowClicked(row: any): void;
34
- static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>;
35
- static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "ui-table", never, { "columns": "columns"; "dataSource": "dataSource"; "options": "options"; "rowTemplates": "rowTemplates"; "headerTemplates": "headerTemplates"; "stateStoreKey": "stateStoreKey"; "rowAction": "rowAction"; "matSortActive": "matSortActive"; "matSortDirection": "matSortDirection"; }, {}, never, never, false, never>;
36
- }
1
+ import { AfterViewInit, OnInit } from '@angular/core';
2
+ import { MatSort, SortDirection } from '@angular/material/sort';
3
+ import { DomSanitizer } from '@angular/platform-browser';
4
+ import * as i0 from "@angular/core";
5
+ export interface TableColumn {
6
+ name: string;
7
+ sortable?: boolean | ((row: any, direction?: SortDirection) => number | string);
8
+ label?: string;
9
+ colSpan?: (row: any) => number;
10
+ formatter?: (row: any) => string;
11
+ cellClass?: (row: any) => string;
12
+ }
13
+ export interface TableOptions {
14
+ sticky?: boolean;
15
+ }
16
+ export declare class TableComponent implements OnInit, AfterViewInit {
17
+ private domSanitizer;
18
+ columns: TableColumn[];
19
+ dataSource: any;
20
+ options: TableOptions | undefined;
21
+ rowTemplates: any;
22
+ headerTemplates: any;
23
+ stateStoreKey: string;
24
+ rowAction: (row: any) => void;
25
+ matSortActive: any;
26
+ matSortDirection: any;
27
+ matSort: MatSort | undefined;
28
+ get columnList(): string[];
29
+ constructor(/*private persistService: PersistService, */ domSanitizer: DomSanitizer);
30
+ ngOnInit(): void;
31
+ ngAfterViewInit(): void;
32
+ display(row: any, col: TableColumn): any;
33
+ rowClicked(row: any): void;
34
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>;
35
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "ui-table", never, { "columns": { "alias": "columns"; "required": false; }; "dataSource": { "alias": "dataSource"; "required": false; }; "options": { "alias": "options"; "required": false; }; "rowTemplates": { "alias": "rowTemplates"; "required": false; }; "headerTemplates": { "alias": "headerTemplates"; "required": false; }; "stateStoreKey": { "alias": "stateStoreKey"; "required": false; }; "rowAction": { "alias": "rowAction"; "required": false; }; "matSortActive": { "alias": "matSortActive"; "required": false; }; "matSortDirection": { "alias": "matSortDirection"; "required": false; }; }, {}, never, never, false, never>;
36
+ }
@@ -1,18 +1,18 @@
1
- import { ElementRef, EventEmitter } from '@angular/core';
2
- import { NgControl } from '@angular/forms';
3
- import { UiSimpleComponent } from '../simple/ui-simple.component';
4
- import * as i0 from "@angular/core";
5
- export declare class TextAreaComponent extends UiSimpleComponent {
6
- ngControl: NgControl;
7
- rows: number;
8
- autoResize: boolean;
9
- lastClientHeight: number;
10
- textarea: ElementRef;
11
- focusChanged: EventEmitter<boolean>;
12
- constructor(ngControl: NgControl);
13
- focus(): void;
14
- setDisabledState(isDisabled: boolean): void;
15
- onFocus(focus: boolean): void;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<TextAreaComponent, [{ optional: true; self: true; }]>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<TextAreaComponent, "ui-text-area", never, { "rows": "rows"; "autoResize": "autoResize"; }, { "focusChanged": "focusChanged"; }, never, never, false, never>;
18
- }
1
+ import { ElementRef, EventEmitter } from '@angular/core';
2
+ import { NgControl } from '@angular/forms';
3
+ import { UiSimpleComponent } from '../layouts/simple/ui-simple.component';
4
+ import * as i0 from "@angular/core";
5
+ export declare class TextAreaComponent extends UiSimpleComponent {
6
+ ngControl: NgControl;
7
+ rows: number;
8
+ autoResize: boolean;
9
+ lastClientHeight: number;
10
+ textarea: ElementRef;
11
+ focusChanged: EventEmitter<boolean>;
12
+ constructor(ngControl: NgControl);
13
+ focus(): void;
14
+ setDisabledState(isDisabled: boolean): void;
15
+ onFocus(focus: boolean): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<TextAreaComponent, [{ optional: true; self: true; }]>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<TextAreaComponent, "ui-text-area", never, { "rows": { "alias": "rows"; "required": false; }; "autoResize": { "alias": "autoResize"; "required": false; }; }, { "focusChanged": "focusChanged"; }, never, never, false, never>;
18
+ }
package/lib/ui.model.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare type ControlSize = 'small' | 'smaller' | 'normal' | 'larger' | 'large';
2
- export declare type ControlColor = 'primary' | 'accent' | 'warn';
1
+ export type ControlSize = 'small' | 'smaller' | 'normal' | 'larger' | 'large';
2
+ export type ControlColor = 'primary' | 'accent' | 'warn';