@rlucan/ui 14.2.6 → 16.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -24
- package/esm2022/lib/action-button/action-button.component.mjs +99 -99
- package/esm2022/lib/action-icon/action-icon.component.mjs +36 -36
- package/esm2022/lib/autocomplete/autocomplete.component.mjs +390 -390
- package/esm2022/lib/avatar/avatar.component.mjs +34 -34
- package/esm2022/lib/button/button.component.mjs +56 -56
- package/esm2022/lib/checkbox/checkbox.component.mjs +38 -38
- package/esm2022/lib/checkbox-group/checkbox-group.component.mjs +90 -90
- package/esm2022/lib/currency/currency.component.mjs +150 -150
- package/esm2022/lib/date/date.component.mjs +67 -67
- package/esm2022/lib/dialog/dialog.component.mjs +36 -36
- package/esm2022/lib/directives/force-visibility/force-visibility.directive.mjs +104 -104
- package/esm2022/lib/editor/editor.component.mjs +118 -118
- package/esm2022/lib/elements/burger/burger.component.mjs +20 -20
- package/esm2022/lib/elements/expander/expander.component.mjs +27 -27
- package/esm2022/lib/elements/validation-message/validation-message.component.mjs +46 -46
- package/esm2022/lib/file/file.component.mjs +144 -144
- package/esm2022/lib/file-uploader/ui-file-uploader.component.mjs +404 -404
- package/esm2022/lib/input/input.component.mjs +264 -264
- package/esm2022/lib/input-autocomplete/input-autocomplete.component.mjs +276 -276
- package/esm2022/lib/layouts/base/ui-base-layout.component.mjs +21 -21
- package/esm2022/lib/layouts/base/ui-base.component.mjs +73 -73
- package/esm2022/lib/layouts/simple/ui-simple-layout.component.mjs +17 -17
- package/esm2022/lib/layouts/simple/ui-simple.component.mjs +165 -165
- package/esm2022/lib/radio/radio.component.mjs +20 -20
- package/esm2022/lib/radio-group/radio-group.component.mjs +53 -53
- package/esm2022/lib/select/select.component.mjs +126 -115
- package/esm2022/lib/services/message-box.service.mjs +110 -110
- package/esm2022/lib/services/toast.service.mjs +23 -23
- package/esm2022/lib/services/ui-file.service.mjs +70 -70
- package/esm2022/lib/services/ui-translate.service.mjs +31 -31
- package/esm2022/lib/submit-button/submit-button.component.mjs +71 -71
- package/esm2022/lib/table/table.component.mjs +97 -97
- package/esm2022/lib/text-area/text-area.component.mjs +45 -45
- package/esm2022/lib/ui.model.mjs +1 -1
- package/esm2022/lib/ui.module.mjs +268 -268
- package/esm2022/public-api.mjs +34 -34
- package/esm2022/rlucan-ui.mjs +4 -4
- package/fesm2022/rlucan-ui.mjs +3285 -3274
- package/fesm2022/rlucan-ui.mjs.map +1 -1
- package/index.d.ts +5 -5
- package/lib/action-button/action-button.component.d.ts +28 -32
- package/lib/action-icon/action-icon.component.d.ts +15 -15
- package/lib/autocomplete/autocomplete.component.d.ts +57 -57
- package/lib/avatar/avatar.component.d.ts +14 -14
- package/lib/button/button.component.d.ts +18 -18
- package/lib/checkbox/checkbox.component.d.ts +15 -15
- package/lib/checkbox-group/checkbox-group.component.d.ts +18 -18
- package/lib/currency/currency.component.d.ts +31 -31
- package/lib/date/date.component.d.ts +24 -24
- package/lib/dialog/dialog.component.d.ts +13 -13
- package/lib/directives/force-visibility/force-visibility.directive.d.ts +22 -22
- package/lib/editor/editor.component.d.ts +24 -24
- package/lib/elements/burger/burger.component.d.ts +9 -9
- package/lib/elements/expander/expander.component.d.ts +10 -10
- package/lib/elements/validation-message/validation-message.component.d.ts +12 -12
- package/lib/file/file.component.d.ts +35 -35
- package/lib/file-uploader/ui-file-uploader.component.d.ts +102 -102
- package/lib/input/input.component.d.ts +42 -42
- package/lib/input-autocomplete/input-autocomplete.component.d.ts +44 -44
- package/lib/layouts/base/ui-base-layout.component.d.ts +8 -8
- package/lib/layouts/base/ui-base.component.d.ts +23 -23
- package/lib/layouts/simple/ui-simple-layout.component.d.ts +8 -8
- package/lib/layouts/simple/ui-simple.component.d.ts +40 -40
- package/lib/radio/radio.component.d.ts +8 -8
- package/lib/radio-group/radio-group.component.d.ts +18 -18
- package/lib/select/select.component.d.ts +37 -35
- package/lib/services/message-box.service.d.ts +58 -58
- package/lib/services/toast.service.d.ts +13 -13
- package/lib/services/ui-file.service.d.ts +33 -33
- package/lib/services/ui-translate.service.d.ts +11 -11
- package/lib/submit-button/submit-button.component.d.ts +21 -21
- package/lib/table/table.component.d.ts +36 -36
- package/lib/text-area/text-area.component.d.ts +18 -18
- package/lib/ui.model.d.ts +2 -2
- package/lib/ui.module.d.ts +59 -59
- package/package.json +1 -1
- package/public-api.d.ts +29 -29
- package/src/js/editorjs.mjs +9634 -9634
|
@@ -1,40 +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
|
-
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
|
+
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": { "alias": "value"; "required": false; }; "label": { "alias": "label"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, {}, 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
|
+
}
|
|
@@ -1,18 +1,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
|
+
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,35 +1,37 @@
|
|
|
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
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
1
|
+
import { OnChanges, OnInit, SimpleChanges, 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, OnChanges {
|
|
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
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
28
|
+
mapValues(src: any): any;
|
|
29
|
+
optionToValue: (o: any) => any;
|
|
30
|
+
selectOption(o: any, select: MatSelect): void;
|
|
31
|
+
selectAll(): void;
|
|
32
|
+
clearAll(): void;
|
|
33
|
+
setDisabledState(isDisabled: boolean): void;
|
|
34
|
+
writeValue(obj: any): void;
|
|
35
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectComponent, [{ optional: true; self: true; }, null]>;
|
|
36
|
+
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>;
|
|
37
|
+
}
|
|
@@ -1,58 +1,58 @@
|
|
|
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
|
+
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 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 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": { "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
|
+
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": { "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
|
+
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 '../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
|
-
}
|
|
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 type ControlSize = 'small' | 'smaller' | 'normal' | 'larger' | 'large';
|
|
2
|
-
export type ControlColor = 'primary' | 'accent' | 'warn';
|
|
1
|
+
export type ControlSize = 'small' | 'smaller' | 'normal' | 'larger' | 'large';
|
|
2
|
+
export type ControlColor = 'primary' | 'accent' | 'warn';
|