@rlucan/ui 14.2.1

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 (78) hide show
  1. package/README.md +24 -0
  2. package/esm2020/lib/action-button/action-button.component.mjs +96 -0
  3. package/esm2020/lib/action-icon/action-icon.component.mjs +37 -0
  4. package/esm2020/lib/autocomplete/autocomplete.component.mjs +391 -0
  5. package/esm2020/lib/avatar/avatar.component.mjs +34 -0
  6. package/esm2020/lib/base/ui-base-layout.component.mjs +22 -0
  7. package/esm2020/lib/base/ui-base.component.mjs +74 -0
  8. package/esm2020/lib/button/button.component.mjs +57 -0
  9. package/esm2020/lib/checkbox/checkbox.component.mjs +39 -0
  10. package/esm2020/lib/checkbox-group/checkbox-group.component.mjs +91 -0
  11. package/esm2020/lib/currency/currency.component.mjs +148 -0
  12. package/esm2020/lib/date/date.component.mjs +64 -0
  13. package/esm2020/lib/dialog/dialog.component.mjs +37 -0
  14. package/esm2020/lib/directives/force-visibility/force-visibility.directive.mjs +96 -0
  15. package/esm2020/lib/elements/burger/burger.component.mjs +21 -0
  16. package/esm2020/lib/elements/expander/expander.component.mjs +28 -0
  17. package/esm2020/lib/elements/validation-message/validation-message.component.mjs +47 -0
  18. package/esm2020/lib/file/file.component.mjs +88 -0
  19. package/esm2020/lib/file-uploader/ui-file-uploader.component.mjs +394 -0
  20. package/esm2020/lib/input/input.component.mjs +258 -0
  21. package/esm2020/lib/radio/radio.component.mjs +21 -0
  22. package/esm2020/lib/radio-group/radio-group.component.mjs +53 -0
  23. package/esm2020/lib/select/select.component.mjs +91 -0
  24. package/esm2020/lib/services/message-box.service.mjs +113 -0
  25. package/esm2020/lib/services/toast.service.mjs +23 -0
  26. package/esm2020/lib/services/ui-file.service.mjs +71 -0
  27. package/esm2020/lib/services/ui-translate.service.mjs +32 -0
  28. package/esm2020/lib/simple/ui-simple-layout.component.mjs +15 -0
  29. package/esm2020/lib/simple/ui-simple.component.mjs +154 -0
  30. package/esm2020/lib/submit-button/submit-button.component.mjs +72 -0
  31. package/esm2020/lib/table/table.component.mjs +97 -0
  32. package/esm2020/lib/text-area/text-area.component.mjs +46 -0
  33. package/esm2020/lib/ui.model.mjs +2 -0
  34. package/esm2020/lib/ui.module.mjs +255 -0
  35. package/esm2020/public-api.mjs +33 -0
  36. package/esm2020/rlucan-ui.mjs +5 -0
  37. package/fesm2015/rlucan-ui.mjs +2918 -0
  38. package/fesm2015/rlucan-ui.mjs.map +1 -0
  39. package/fesm2020/rlucan-ui.mjs +2886 -0
  40. package/fesm2020/rlucan-ui.mjs.map +1 -0
  41. package/index.d.ts +5 -0
  42. package/lib/action-button/action-button.component.d.ts +33 -0
  43. package/lib/action-icon/action-icon.component.d.ts +15 -0
  44. package/lib/autocomplete/autocomplete.component.d.ts +57 -0
  45. package/lib/avatar/avatar.component.d.ts +14 -0
  46. package/lib/base/ui-base-layout.component.d.ts +8 -0
  47. package/lib/base/ui-base.component.d.ts +23 -0
  48. package/lib/button/button.component.d.ts +18 -0
  49. package/lib/checkbox/checkbox.component.d.ts +15 -0
  50. package/lib/checkbox-group/checkbox-group.component.d.ts +18 -0
  51. package/lib/currency/currency.component.d.ts +30 -0
  52. package/lib/date/date.component.d.ts +23 -0
  53. package/lib/dialog/dialog.component.d.ts +13 -0
  54. package/lib/directives/force-visibility/force-visibility.directive.d.ts +20 -0
  55. package/lib/elements/burger/burger.component.d.ts +9 -0
  56. package/lib/elements/expander/expander.component.d.ts +10 -0
  57. package/lib/elements/validation-message/validation-message.component.d.ts +12 -0
  58. package/lib/file/file.component.d.ts +29 -0
  59. package/lib/file-uploader/ui-file-uploader.component.d.ts +102 -0
  60. package/lib/input/input.component.d.ts +29 -0
  61. package/lib/radio/radio.component.d.ts +8 -0
  62. package/lib/radio-group/radio-group.component.d.ts +18 -0
  63. package/lib/select/select.component.d.ts +33 -0
  64. package/lib/services/message-box.service.d.ts +42 -0
  65. package/lib/services/toast.service.d.ts +13 -0
  66. package/lib/services/ui-file.service.d.ts +33 -0
  67. package/lib/services/ui-translate.service.d.ts +11 -0
  68. package/lib/simple/ui-simple-layout.component.d.ts +7 -0
  69. package/lib/simple/ui-simple.component.d.ts +39 -0
  70. package/lib/submit-button/submit-button.component.d.ts +21 -0
  71. package/lib/table/table.component.d.ts +36 -0
  72. package/lib/text-area/text-area.component.d.ts +18 -0
  73. package/lib/ui.model.d.ts +2 -0
  74. package/lib/ui.module.d.ts +56 -0
  75. package/package.json +44 -0
  76. package/public-api.d.ts +27 -0
  77. package/scss/ui-defaults.scss +339 -0
  78. package/ui.scss +911 -0
@@ -0,0 +1,33 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { ButtonComponent } from '../button/button.component';
3
+ import * as i0 from "@angular/core";
4
+ export declare class ActionButtonComponent extends ButtonComponent implements OnInit {
5
+ withPrimary: boolean;
6
+ overlayAlignment: 'left' | 'right';
7
+ hasBackdrop: boolean;
8
+ triggerTpl: any;
9
+ autoClose: boolean;
10
+ primaryClick: EventEmitter<void>;
11
+ overlayToggled: EventEmitter<boolean>;
12
+ trigger1: any;
13
+ deferredRender: boolean;
14
+ iconHover: boolean;
15
+ get class(): string;
16
+ private rightPositions;
17
+ private leftPositions;
18
+ openOverlay: boolean;
19
+ onKeydownHandler(evt: KeyboardEvent): void;
20
+ constructor();
21
+ get positions(): {
22
+ originX: string;
23
+ originY: string;
24
+ overlayX: string;
25
+ overlayY: string;
26
+ }[];
27
+ ngOnInit(): void;
28
+ toggleOverlay(status: any): void;
29
+ closeOverlay(): void;
30
+ togglePrimaryOverlay(status: any, $event: any): void;
31
+ static ɵfac: i0.ɵɵFactoryDeclaration<ActionButtonComponent, never>;
32
+ static ɵcmp: i0.ɵɵComponentDeclaration<ActionButtonComponent, "ui-action-button", never, { "withPrimary": "withPrimary"; "overlayAlignment": "overlayAlignment"; "hasBackdrop": "hasBackdrop"; "triggerTpl": "triggerTpl"; "autoClose": "autoClose"; }, { "primaryClick": "primaryClick"; "overlayToggled": "overlayToggled"; }, never, ["*"], false, never>;
33
+ }
@@ -0,0 +1,15 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { ControlColor, ControlSize } from '../ui.model';
3
+ import * as i0 from "@angular/core";
4
+ export declare class ActionIconComponent implements OnInit {
5
+ size: ControlSize;
6
+ color: ControlColor;
7
+ disabled: boolean;
8
+ busy: boolean;
9
+ matIcon: string;
10
+ get class(): string;
11
+ constructor();
12
+ ngOnInit(): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<ActionIconComponent, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<ActionIconComponent, "ui-action-icon", never, { "size": "size"; "color": "color"; "disabled": "disabled"; "busy": "busy"; "matIcon": "matIcon"; }, {}, never, never, false, never>;
15
+ }
@@ -0,0 +1,57 @@
1
+ import { ChangeDetectorRef, OnInit } from '@angular/core';
2
+ import { ControlContainer, ControlValueAccessor, UntypedFormControl } from '@angular/forms';
3
+ import { UiBaseComponent } from '../base/ui-base.component';
4
+ import { InputComponent } from '../input/input.component';
5
+ import { CdkOverlayOrigin } from '@angular/cdk/overlay';
6
+ import * as i0 from "@angular/core";
7
+ export declare class AutocompleteComponent extends UiBaseComponent implements OnInit, ControlValueAccessor {
8
+ protected controlContainer: ControlContainer;
9
+ private cdr;
10
+ private SHOWN_USERS_DELTA;
11
+ constructor(controlContainer: ControlContainer, cdr: ChangeDetectorRef);
12
+ options?: any[];
13
+ multiple: boolean;
14
+ allowNew: boolean;
15
+ displayAttribute: string;
16
+ idAttribute: string;
17
+ searchableOptions?: any[];
18
+ filteredOptions: any[];
19
+ filteredMaxItemsShown: number;
20
+ messageShown: boolean;
21
+ initialOption?: any;
22
+ selectedOption?: any;
23
+ lastEmittedId?: any;
24
+ focusedOption?: any;
25
+ alreadyAdded: boolean;
26
+ optionsVisible: boolean;
27
+ input?: InputComponent;
28
+ optionsTrigger: CdkOverlayOrigin;
29
+ inputFocused: boolean;
30
+ inputControl: UntypedFormControl;
31
+ checkboxSelection: Set<any>;
32
+ onChange: (value: any) => void;
33
+ optionDisabled: (any: any) => boolean;
34
+ optionFormatter: (any: any) => string;
35
+ protected buildSearchableOptions(): any[];
36
+ protected filterOptions(text: string): any[];
37
+ ngOnInit(): void;
38
+ inputFocusChanged(focused: boolean): void;
39
+ get hasCheckboxSelected(): boolean;
40
+ optionChecked(u: any): boolean;
41
+ select(u: any): void;
42
+ toggleOptionCheckboxed(u: any): void;
43
+ keyPressed(keyEvent: KeyboardEvent): void;
44
+ toggleDropdown(): void;
45
+ emitSelection(src?: string): void;
46
+ cancelCheckboxSelection(): void;
47
+ useCheckboxSelection(): void;
48
+ newOption(): void;
49
+ loadMore(visible: boolean): void;
50
+ focus(): void;
51
+ registerOnChange(fn: any): void;
52
+ registerOnTouched(fn: any): void;
53
+ setDisabledState(isDisabled: boolean): void;
54
+ writeValue(obj: any): void;
55
+ static ɵfac: i0.ɵɵFactoryDeclaration<AutocompleteComponent, [{ optional: true; host: true; skipSelf: true; }, null]>;
56
+ static ɵcmp: i0.ɵɵComponentDeclaration<AutocompleteComponent, "ui-autocomplete", never, { "options": "options"; "multiple": "multiple"; "allowNew": "allowNew"; "displayAttribute": "displayAttribute"; "idAttribute": "idAttribute"; "optionDisabled": "optionDisabled"; "optionFormatter": "optionFormatter"; }, {}, never, ["[slot=acprefix]"], false, never>;
57
+ }
@@ -0,0 +1,14 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class AvatarComponent {
3
+ user: Partial<{
4
+ avatar: any;
5
+ shortName: string;
6
+ shortColour: string;
7
+ }>;
8
+ srcOptions: any;
9
+ size: 'big' | 'bigger' | 'normal' | 'smaller' | 'small' | 'mini';
10
+ get contrast(): string;
11
+ constructor();
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<AvatarComponent, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<AvatarComponent, "ui-avatar", never, { "user": "user"; "srcOptions": "srcOptions"; "size": "size"; }, {}, never, never, false, never>;
14
+ }
@@ -0,0 +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
+ }
@@ -0,0 +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
+ }
@@ -0,0 +1,18 @@
1
+ import { ControlColor, ControlSize } from '../ui.model';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ButtonComponent {
4
+ type: 'submit' | 'button';
5
+ matIconPrefix: any;
6
+ label: string | undefined;
7
+ disabled: boolean;
8
+ busy: boolean;
9
+ kind: 'basic' | 'flat' | 'stroked';
10
+ color: ControlColor;
11
+ size: ControlSize;
12
+ get class(): string;
13
+ formInvalid: boolean;
14
+ constructor();
15
+ get isDisabled(): boolean;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "ui-button", never, { "type": "type"; "matIconPrefix": "matIconPrefix"; "label": "label"; "disabled": "disabled"; "busy": "busy"; "kind": "kind"; "color": "color"; "size": "size"; "formInvalid": "formInvalid"; }, {}, never, never, false, never>;
18
+ }
@@ -0,0 +1,15 @@
1
+ import { OnInit } 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 CheckboxComponent extends UiSimpleComponent implements OnInit {
6
+ ngControl: NgControl;
7
+ color: 'primary' | 'accent' | 'warn';
8
+ useInputMessages: 'never' | 'always' | 'ondemand';
9
+ text: any;
10
+ constructor(ngControl: NgControl);
11
+ ngOnInit(): void;
12
+ setDisabledState(isDisabled: boolean): void;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxComponent, [{ optional: true; self: true; }]>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "ui-checkbox", never, { "color": "color"; "useInputMessages": "useInputMessages"; }, {}, never, ["*"], false, never>;
15
+ }
@@ -0,0 +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 CheckboxGroupComponent extends UiSimpleComponent implements /*OnInit, */ OnChanges {
6
+ control: NgControl;
7
+ cbxs: any;
8
+ private valueMode;
9
+ valueAttribute: string | undefined;
10
+ displayAttribute: string;
11
+ hintAttribute: string;
12
+ options: any[];
13
+ optionEnabled: (option: any) => boolean;
14
+ constructor(control: NgControl);
15
+ ngOnChanges(changes: SimpleChanges): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxGroupComponent, [{ optional: true; self: true; }]>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxGroupComponent, "ui-checkbox-group", never, { "valueAttribute": "valueAttribute"; "displayAttribute": "displayAttribute"; "hintAttribute": "hintAttribute"; "options": "options"; "optionEnabled": "optionEnabled"; }, {}, never, never, false, never>;
18
+ }
@@ -0,0 +1,30 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { UiBaseComponent } from '../base/ui-base.component';
3
+ import { AbstractControl, ControlContainer, ControlValueAccessor, UntypedFormGroup, ValidationErrors, Validator } from '@angular/forms';
4
+ import * as i0 from "@angular/core";
5
+ export declare class CurrencyComponent extends UiBaseComponent implements OnInit, ControlValueAccessor, Validator {
6
+ protected controlContainer: ControlContainer;
7
+ currencies: Partial<{
8
+ code: string;
9
+ }>[];
10
+ currencyDisabled: boolean;
11
+ formControlName: string;
12
+ amountHidden: boolean;
13
+ formGroup: UntypedFormGroup;
14
+ parentFormControl: AbstractControl;
15
+ hasFocus: boolean;
16
+ constructor(controlContainer: ControlContainer);
17
+ onChange: (value: any) => void;
18
+ ngOnInit(): void;
19
+ get isInvalid(): boolean;
20
+ get validationErrors(): ValidationErrors;
21
+ focusChanged(hasFocus: boolean): void;
22
+ registerOnChange(fn: any): void;
23
+ registerOnTouched(fn: any): void;
24
+ registerOnValidatorChange(fn: () => void): void;
25
+ setDisabledState(isDisabled: boolean): void;
26
+ validate(control: AbstractControl): ValidationErrors | null;
27
+ writeValue(obj: any): void;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<CurrencyComponent, [{ optional: true; host: true; skipSelf: true; }]>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<CurrencyComponent, "ui-currency", never, { "currencies": "currencies"; "currencyDisabled": "currencyDisabled"; "formControlName": "formControlName"; "amountHidden": "amountHidden"; }, {}, never, never, false, never>;
30
+ }
@@ -0,0 +1,23 @@
1
+ import { EventEmitter, TemplateRef } 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 DateComponent extends UiSimpleComponent {
6
+ ngControl: NgControl;
7
+ doKeyup: EventEmitter<any>;
8
+ picker?: TemplateRef<any>;
9
+ input?: TemplateRef<any>;
10
+ onChange: any;
11
+ controlTypeName: string;
12
+ opening: boolean;
13
+ constructor(ngControl: NgControl);
14
+ open(): void;
15
+ close(): void;
16
+ keyup(): void;
17
+ writeValue(obj: any): void;
18
+ registerOnChange(fn: any): void;
19
+ registerOnTouched(fn: any): void;
20
+ setDisabledState(isDisabled: boolean): void;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateComponent, [{ optional: true; self: true; }]>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<DateComponent, "ui-date", never, {}, { "doKeyup": "doKeyup"; }, never, never, false, never>;
23
+ }
@@ -0,0 +1,13 @@
1
+ import { MatDialogRef } from '@angular/material/dialog';
2
+ import * as i0 from "@angular/core";
3
+ export declare class DialogComponent {
4
+ dialogRef: MatDialogRef<DialogComponent>;
5
+ title: string;
6
+ draggable: boolean;
7
+ hideCloseButton: boolean;
8
+ close: (() => void) | undefined;
9
+ constructor(dialogRef: MatDialogRef<DialogComponent>);
10
+ clickClose(): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<DialogComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<DialogComponent, "ui-dialog", never, { "title": "title"; "draggable": "draggable"; "hideCloseButton": "hideCloseButton"; "close": "close"; }, {}, never, ["*"], false, never>;
13
+ }
@@ -0,0 +1,20 @@
1
+ import { ElementRef, EventEmitter, OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ForceVisibilityDirective implements OnInit {
4
+ private el;
5
+ private static disabled;
6
+ visibilityWithin: HTMLElement;
7
+ visibilityPadding: number;
8
+ visibilityOnRequestOnly: boolean;
9
+ visibilityEmitChange: boolean;
10
+ visibilityFromTop: number;
11
+ visibilityChanged: EventEmitter<boolean>;
12
+ private visible;
13
+ constructor(el: ElementRef);
14
+ static disableFor(timeoutMs: number): void;
15
+ ngOnInit(): void;
16
+ private isVisible;
17
+ forceVisibility(): void;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<ForceVisibilityDirective, never>;
19
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ForceVisibilityDirective, "[uiForceVisibility]", ["ForceVisibilityDirective"], { "visibilityWithin": "visibilityWithin"; "visibilityPadding": "visibilityPadding"; "visibilityOnRequestOnly": "visibilityOnRequestOnly"; "visibilityEmitChange": "visibilityEmitChange"; "visibilityFromTop": "visibilityFromTop"; }, { "visibilityChanged": "visibilityChanged"; }, never, never, false, never>;
20
+ }
@@ -0,0 +1,9 @@
1
+ import { OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class BurgerComponent implements OnInit {
4
+ open: boolean;
5
+ constructor();
6
+ ngOnInit(): void;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<BurgerComponent, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<BurgerComponent, "ui-burger", never, { "open": "open"; }, {}, never, never, false, never>;
9
+ }
@@ -0,0 +1,10 @@
1
+ import { OnInit } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ExpanderComponent implements OnInit {
4
+ expanded: boolean;
5
+ direction: 'right-down' | 'up-down';
6
+ constructor();
7
+ ngOnInit(): void;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<ExpanderComponent, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<ExpanderComponent, "ui-expander", never, { "expanded": "expanded"; "direction": "direction"; }, {}, never, never, false, never>;
10
+ }
@@ -0,0 +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
+ }
@@ -0,0 +1,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
+ 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
+ }
@@ -0,0 +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
+ }
@@ -0,0 +1,29 @@
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
+ }
@@ -0,0 +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
+ }
@@ -0,0 +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
+ }
@@ -0,0 +1,33 @@
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
+ }
@@ -0,0 +1,42 @@
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
+ }
@@ -0,0 +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
+ }