@sebgroup/green-angular 4.6.1 → 4.6.3
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/esm2022/src/v-angular/base-control-value-accessor/base-control-value-accessor.component.mjs +9 -9
- package/esm2022/src/v-angular/button/button.component.mjs +5 -5
- package/esm2022/src/v-angular/character-countdown/character-countdown.directive.mjs +5 -5
- package/esm2022/src/v-angular/core/core.globals.mjs +3 -3
- package/esm2022/src/v-angular/dropdown/dropdown-list/dropdown-list.component.mjs +4 -4
- package/esm2022/src/v-angular/dropdown/typeahead/index.mjs +4 -1
- package/esm2022/src/v-angular/dropdown/typeahead/typeahead-dropdown-list/typeahead-dropdown-list.component.mjs +5 -5
- package/esm2022/src/v-angular/dropdown/typeahead/typeahead.directive.mjs +177 -0
- package/esm2022/src/v-angular/info-circle/info-circle.component.mjs +3 -3
- package/esm2022/src/v-angular/input/input.component.mjs +7 -7
- package/esm2022/src/v-angular/input-mask/input-mask-format.pipe.mjs +5 -4
- package/esm2022/src/v-angular/input-mask/input-mask.directive.mjs +8 -8
- package/esm2022/src/v-angular/modal/dialog/dialog.component.mjs +16 -16
- package/esm2022/src/v-angular/modal/fold-out/fold-out.directive.mjs +3 -3
- package/esm2022/src/v-angular/modal/modal.globals.mjs +3 -3
- package/esm2022/src/v-angular/modal/slide-out/slide-out.component.mjs +15 -15
- package/esm2022/src/v-angular/textarea/textarea.component.mjs +4 -3
- package/esm2022/src/v-angular/textarea/textarea.module.mjs +5 -4
- package/esm2022/src/v-angular/tooltip/tooltip.directive.mjs +13 -13
- package/esm2022/v-angular/base-control-value-accessor/base-control-value-accessor.component.mjs +287 -0
- package/esm2022/v-angular/base-control-value-accessor/base-control-value-accessor.module.mjs +17 -0
- package/esm2022/v-angular/base-control-value-accessor/index.mjs +3 -0
- package/esm2022/v-angular/breadcrumbs/breadcrumbs.component.mjs +25 -0
- package/esm2022/v-angular/breadcrumbs/breadcrumbs.module.mjs +20 -0
- package/esm2022/v-angular/breadcrumbs/index.mjs +3 -0
- package/esm2022/v-angular/button/button.component.mjs +108 -0
- package/esm2022/v-angular/button/button.module.mjs +20 -0
- package/esm2022/v-angular/button/index.mjs +3 -0
- package/esm2022/v-angular/card/card.component.mjs +11 -0
- package/esm2022/v-angular/card/card.module.mjs +18 -0
- package/esm2022/v-angular/card/index.mjs +3 -0
- package/esm2022/v-angular/character-countdown/character-countdown.directive.mjs +51 -0
- package/esm2022/v-angular/character-countdown/character-countdown.module.mjs +18 -0
- package/esm2022/v-angular/character-countdown/index.mjs +3 -0
- package/esm2022/v-angular/checkbox/checkbox.component.mjs +72 -0
- package/esm2022/v-angular/checkbox/checkbox.module.mjs +19 -0
- package/esm2022/v-angular/checkbox/index.mjs +3 -0
- package/esm2022/v-angular/dropdown/dropdown-list/dropdown-list.component.mjs +256 -0
- package/esm2022/v-angular/dropdown/dropdown-list/index.mjs +2 -0
- package/esm2022/v-angular/dropdown/dropdown.component.mjs +239 -0
- package/esm2022/v-angular/dropdown/dropdown.module.mjs +22 -0
- package/esm2022/v-angular/dropdown/index.mjs +6 -0
- package/esm2022/v-angular/dropdown/typeahead/index.mjs +6 -0
- package/esm2022/v-angular/dropdown/typeahead/typeahead-dropdown-list/typeahead-dropdown-list.component.mjs +98 -0
- package/esm2022/v-angular/dropdown/typeahead/typeahead-highlight/typeahead-highlight.component.mjs +85 -0
- package/esm2022/v-angular/dropdown/typeahead/typeahead-input/typeahead-input.component.mjs +132 -0
- package/esm2022/v-angular/dropdown/typeahead/typeahead.directive.mjs +177 -0
- package/esm2022/v-angular/dropdown/typeahead/typeahead.module.mjs +33 -0
- package/esm2022/v-angular/i18n/i18n.json +12 -0
- package/esm2022/v-angular/i18n/i18n.module.mjs +83 -0
- package/esm2022/v-angular/i18n/i18n.test.module.mjs +89 -0
- package/esm2022/v-angular/i18n/index.mjs +3 -0
- package/esm2022/v-angular/index.mjs +18 -0
- package/esm2022/v-angular/info-circle/index.mjs +3 -0
- package/esm2022/v-angular/info-circle/info-circle.component.mjs +28 -0
- package/esm2022/v-angular/info-circle/info-circle.module.mjs +21 -0
- package/esm2022/v-angular/input/index.mjs +3 -0
- package/esm2022/v-angular/input/input.component.mjs +221 -0
- package/esm2022/v-angular/input/input.module.mjs +32 -0
- package/esm2022/v-angular/input-mask/config.mjs +9 -0
- package/esm2022/v-angular/input-mask/constants.mjs +2 -0
- package/esm2022/v-angular/input-mask/index.mjs +6 -0
- package/esm2022/v-angular/input-mask/input-mask-format.pipe.mjs +21 -0
- package/esm2022/v-angular/input-mask/input-mask.directive.mjs +165 -0
- package/esm2022/v-angular/input-mask/input-mask.module.mjs +35 -0
- package/esm2022/v-angular/input-mask/input-mask.types.mjs +2 -0
- package/esm2022/v-angular/modal/dialog/dialog.component.mjs +190 -0
- package/esm2022/v-angular/modal/fold-out/fold-out.component.mjs +56 -0
- package/esm2022/v-angular/modal/fold-out/fold-out.directive.mjs +19 -0
- package/esm2022/v-angular/modal/index.mjs +6 -0
- package/esm2022/v-angular/modal/modal.globals.mjs +20 -0
- package/esm2022/v-angular/modal/modal.module.mjs +40 -0
- package/esm2022/v-angular/modal/modal.types.mjs +2 -0
- package/esm2022/v-angular/modal/slide-out/slide-out.component.mjs +229 -0
- package/esm2022/v-angular/radio/index.mjs +3 -0
- package/esm2022/v-angular/radio/radio.component.mjs +130 -0
- package/esm2022/v-angular/radio/radio.module.mjs +20 -0
- package/esm2022/v-angular/sebgroup-green-angular-v-angular.mjs +5 -0
- package/esm2022/v-angular/textarea/index.mjs +3 -0
- package/esm2022/v-angular/textarea/textarea.component.mjs +102 -0
- package/esm2022/v-angular/textarea/textarea.module.mjs +19 -0
- package/esm2022/v-angular/tooltip/index.mjs +3 -0
- package/esm2022/v-angular/tooltip/tooltip.directive.mjs +273 -0
- package/esm2022/v-angular/tooltip/tooltip.module.mjs +18 -0
- package/esm2022/v-angular/v-angular.module.mjs +80 -0
- package/fesm2022/sebgroup-green-angular-src-v-angular-base-control-value-accessor.mjs +8 -8
- package/fesm2022/sebgroup-green-angular-src-v-angular-base-control-value-accessor.mjs.map +1 -1
- package/fesm2022/sebgroup-green-angular-src-v-angular-button.mjs +4 -4
- package/fesm2022/sebgroup-green-angular-src-v-angular-button.mjs.map +1 -1
- package/fesm2022/sebgroup-green-angular-src-v-angular-character-countdown.mjs +4 -4
- package/fesm2022/sebgroup-green-angular-src-v-angular-character-countdown.mjs.map +1 -1
- package/fesm2022/sebgroup-green-angular-src-v-angular-core.mjs +2 -2
- package/fesm2022/sebgroup-green-angular-src-v-angular-core.mjs.map +1 -1
- package/fesm2022/sebgroup-green-angular-src-v-angular-dropdown.mjs +179 -10
- package/fesm2022/sebgroup-green-angular-src-v-angular-dropdown.mjs.map +1 -1
- package/fesm2022/sebgroup-green-angular-src-v-angular-info-circle.mjs +2 -2
- package/fesm2022/sebgroup-green-angular-src-v-angular-info-circle.mjs.map +1 -1
- package/fesm2022/sebgroup-green-angular-src-v-angular-input-mask.mjs +11 -10
- package/fesm2022/sebgroup-green-angular-src-v-angular-input-mask.mjs.map +1 -1
- package/fesm2022/sebgroup-green-angular-src-v-angular-input.mjs +6 -6
- package/fesm2022/sebgroup-green-angular-src-v-angular-input.mjs.map +1 -1
- package/fesm2022/sebgroup-green-angular-src-v-angular-modal.mjs +33 -33
- package/fesm2022/sebgroup-green-angular-src-v-angular-modal.mjs.map +1 -1
- package/fesm2022/sebgroup-green-angular-src-v-angular-textarea.mjs +7 -5
- package/fesm2022/sebgroup-green-angular-src-v-angular-textarea.mjs.map +1 -1
- package/fesm2022/sebgroup-green-angular-src-v-angular-tooltip.mjs +12 -12
- package/fesm2022/sebgroup-green-angular-src-v-angular-tooltip.mjs.map +1 -1
- package/fesm2022/sebgroup-green-angular-v-angular.mjs +3408 -0
- package/fesm2022/sebgroup-green-angular-v-angular.mjs.map +1 -0
- package/package.json +8 -2
- package/src/v-angular/base-control-value-accessor/base-control-value-accessor.component.d.ts +3 -3
- package/src/v-angular/button/button.component.d.ts +2 -2
- package/src/v-angular/character-countdown/character-countdown.directive.d.ts +1 -1
- package/src/v-angular/core/core.globals.d.ts +1 -1
- package/src/v-angular/dropdown/typeahead/index.d.ts +3 -0
- package/src/v-angular/dropdown/typeahead/typeahead.directive.d.ts +76 -0
- package/src/v-angular/input/input.component.d.ts +3 -3
- package/src/v-angular/input-mask/input-mask-format.pipe.d.ts +1 -1
- package/src/v-angular/input-mask/input-mask.directive.d.ts +2 -2
- package/src/v-angular/modal/dialog/dialog.component.d.ts +5 -5
- package/src/v-angular/modal/fold-out/fold-out.directive.d.ts +1 -1
- package/src/v-angular/modal/modal.globals.d.ts +1 -1
- package/src/v-angular/modal/slide-out/slide-out.component.d.ts +6 -6
- package/src/v-angular/textarea/textarea.module.d.ts +2 -1
- package/src/v-angular/tooltip/tooltip.directive.d.ts +4 -4
- package/v-angular/base-control-value-accessor/base-control-value-accessor.component.d.ts +124 -0
- package/v-angular/base-control-value-accessor/base-control-value-accessor.module.d.ts +7 -0
- package/v-angular/base-control-value-accessor/index.d.ts +2 -0
- package/v-angular/breadcrumbs/breadcrumbs.component.d.ts +18 -0
- package/v-angular/breadcrumbs/breadcrumbs.module.d.ts +10 -0
- package/v-angular/breadcrumbs/index.d.ts +2 -0
- package/v-angular/button/button.component.d.ts +62 -0
- package/v-angular/button/button.module.d.ts +10 -0
- package/v-angular/button/index.d.ts +2 -0
- package/v-angular/card/card.component.d.ts +5 -0
- package/v-angular/card/card.module.d.ts +8 -0
- package/v-angular/card/index.d.ts +2 -0
- package/v-angular/character-countdown/character-countdown.directive.d.ts +17 -0
- package/v-angular/character-countdown/character-countdown.module.d.ts +8 -0
- package/v-angular/character-countdown/index.d.ts +2 -0
- package/v-angular/checkbox/checkbox.component.d.ts +27 -0
- package/v-angular/checkbox/checkbox.module.d.ts +9 -0
- package/v-angular/checkbox/index.d.ts +2 -0
- package/v-angular/dropdown/dropdown-list/dropdown-list.component.d.ts +89 -0
- package/v-angular/dropdown/dropdown-list/index.d.ts +1 -0
- package/v-angular/dropdown/dropdown.component.d.ts +99 -0
- package/v-angular/dropdown/dropdown.module.d.ts +12 -0
- package/v-angular/dropdown/index.d.ts +5 -0
- package/v-angular/dropdown/typeahead/index.d.ts +5 -0
- package/v-angular/dropdown/typeahead/typeahead-dropdown-list/typeahead-dropdown-list.component.d.ts +34 -0
- package/v-angular/dropdown/typeahead/typeahead-highlight/typeahead-highlight.component.d.ts +34 -0
- package/v-angular/dropdown/typeahead/typeahead-input/typeahead-input.component.d.ts +59 -0
- package/v-angular/dropdown/typeahead/typeahead.directive.d.ts +76 -0
- package/v-angular/dropdown/typeahead/typeahead.module.d.ts +11 -0
- package/v-angular/i18n/i18n.module.d.ts +15 -0
- package/v-angular/i18n/i18n.test.module.d.ts +27 -0
- package/v-angular/i18n/index.d.ts +2 -0
- package/v-angular/index.d.ts +17 -0
- package/v-angular/info-circle/index.d.ts +2 -0
- package/v-angular/info-circle/info-circle.component.d.ts +16 -0
- package/v-angular/info-circle/info-circle.module.d.ts +10 -0
- package/v-angular/input/index.d.ts +2 -0
- package/v-angular/input/input.component.d.ts +90 -0
- package/v-angular/input/input.module.d.ts +11 -0
- package/v-angular/input-mask/config.d.ts +6 -0
- package/v-angular/input-mask/constants.d.ts +2 -0
- package/v-angular/input-mask/index.d.ts +5 -0
- package/v-angular/input-mask/input-mask-format.pipe.d.ts +8 -0
- package/v-angular/input-mask/input-mask.directive.d.ts +39 -0
- package/v-angular/input-mask/input-mask.module.d.ts +11 -0
- package/v-angular/input-mask/input-mask.types.d.ts +20 -0
- package/v-angular/modal/dialog/dialog.component.d.ts +55 -0
- package/v-angular/modal/fold-out/fold-out.component.d.ts +24 -0
- package/v-angular/modal/fold-out/fold-out.directive.d.ts +6 -0
- package/v-angular/modal/index.d.ts +5 -0
- package/v-angular/modal/modal.globals.d.ts +13 -0
- package/v-angular/modal/modal.module.d.ts +13 -0
- package/v-angular/modal/modal.types.d.ts +5 -0
- package/v-angular/modal/slide-out/slide-out.component.d.ts +76 -0
- package/v-angular/radio/index.d.ts +2 -0
- package/v-angular/radio/radio.component.d.ts +48 -0
- package/v-angular/radio/radio.module.d.ts +9 -0
- package/v-angular/textarea/index.d.ts +2 -0
- package/v-angular/textarea/textarea.component.d.ts +44 -0
- package/v-angular/textarea/textarea.module.d.ts +9 -0
- package/v-angular/tooltip/index.d.ts +2 -0
- package/v-angular/tooltip/tooltip.directive.d.ts +106 -0
- package/v-angular/tooltip/tooltip.module.d.ts +8 -0
- package/v-angular/v-angular.module.d.ts +23 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./info-circle.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@sebgroup/green-angular/src/lib/shared";
|
|
5
|
+
import * as i4 from "@sebgroup/green-angular/src/v-angular/tooltip";
|
|
6
|
+
export declare class NgvInfoCircleModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgvInfoCircleModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgvInfoCircleModule, [typeof i1.NgvInfoCircleComponent], [typeof i2.CommonModule, typeof i3.NggCoreWrapperModule, typeof i4.NgvTooltipModule], [typeof i1.NgvInfoCircleComponent]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<NgvInfoCircleModule>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { NgControl, UntypedFormControl } from '@angular/forms';
|
|
3
|
+
import { Subject } from 'rxjs';
|
|
4
|
+
import { TranslocoScope } from '@ngneat/transloco';
|
|
5
|
+
import type { InputmaskOptions } from '@sebgroup/green-angular/src/v-angular/input-mask';
|
|
6
|
+
import { NgvBaseControlValueAccessorComponent } from '@sebgroup/green-angular/src/v-angular/base-control-value-accessor';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
/**
|
|
9
|
+
* Input fields allow users to add and edit text.
|
|
10
|
+
* https://designlibrary.sebgroup.com/components/component-input
|
|
11
|
+
*/
|
|
12
|
+
export declare class NgvInputComponent extends NgvBaseControlValueAccessorComponent implements OnInit, OnDestroy {
|
|
13
|
+
ngControl: NgControl;
|
|
14
|
+
protected translocoScope: TranslocoScope;
|
|
15
|
+
protected cdr: ChangeDetectorRef;
|
|
16
|
+
/** Adding .gds-form-item as a class to host element */
|
|
17
|
+
class: string;
|
|
18
|
+
/** Special property used for selecting DOM elements during automated UI testing. */
|
|
19
|
+
thook: string;
|
|
20
|
+
/** Type of input field. Should avoid types that modify field too much such as range. */
|
|
21
|
+
type: string;
|
|
22
|
+
/** Text shown before input has a written value. */
|
|
23
|
+
placeholder?: string;
|
|
24
|
+
/** If set to "on", hint for form autofill feature. */
|
|
25
|
+
autocomplete: string;
|
|
26
|
+
/** If set to true, the value will not be editable. */
|
|
27
|
+
readonly: boolean;
|
|
28
|
+
/** If set to true, enables the Angular template-driven email validator. */
|
|
29
|
+
email: boolean;
|
|
30
|
+
/** Minimum value required for numeric input types. */
|
|
31
|
+
min: number;
|
|
32
|
+
/** Maximum value required for numeric input types. */
|
|
33
|
+
max: number;
|
|
34
|
+
/** Incremental values that are valid for numeric input types. */
|
|
35
|
+
step: number;
|
|
36
|
+
/** Minimum length (number of characters) of value. */
|
|
37
|
+
set minLength(length: number);
|
|
38
|
+
/**
|
|
39
|
+
* Minimum length (number of characters) of value.
|
|
40
|
+
* @deprecated minlength triggers angular-template-validation. Use @Input() minLength instead.
|
|
41
|
+
*/
|
|
42
|
+
set minlength(length: number);
|
|
43
|
+
get minlength(): number;
|
|
44
|
+
/** Maximum length (number of characters) of value. */
|
|
45
|
+
set maxLength(length: number);
|
|
46
|
+
get maxlength(): number;
|
|
47
|
+
/**
|
|
48
|
+
* Maximum length (number of characters) of value.
|
|
49
|
+
* @deprecated maxlength triggers angular-template-validation. Use @Input() maxLength instead.
|
|
50
|
+
*/
|
|
51
|
+
set maxlength(length: number);
|
|
52
|
+
private _maxlength;
|
|
53
|
+
private _minlength;
|
|
54
|
+
/** Wether to show label that tells how many characters are still left to be entered. Will only be set if maxLength is also set */
|
|
55
|
+
private _showCharacterCountDown;
|
|
56
|
+
set showCharacterCountdown(option: boolean);
|
|
57
|
+
get showCharacterCountdown(): boolean;
|
|
58
|
+
/** Pattern the value must match to be valid. */
|
|
59
|
+
pattern: string;
|
|
60
|
+
/** Amount of time to wait until emitting (nggvINput) event */
|
|
61
|
+
debounceTime: number;
|
|
62
|
+
/**
|
|
63
|
+
* @deprecated
|
|
64
|
+
* Text to put in badge
|
|
65
|
+
*/
|
|
66
|
+
badgeText: string;
|
|
67
|
+
/** Settings for input mask if requested */
|
|
68
|
+
private _inputMask;
|
|
69
|
+
set inputMask(newInputMask: InputmaskOptions<any>);
|
|
70
|
+
get inputMask(): InputmaskOptions<any>;
|
|
71
|
+
/** Emits every time the value of the inner input field changes, independantly of updates on the formcontroller */
|
|
72
|
+
nggvInput: EventEmitter<any>;
|
|
73
|
+
private _formControl;
|
|
74
|
+
get control(): UntypedFormControl;
|
|
75
|
+
/** Returns if maxlength is used */
|
|
76
|
+
get hasMaxLength(): boolean;
|
|
77
|
+
/** Toggler for showing or hiding the input field */
|
|
78
|
+
hideInput$: Subject<boolean>;
|
|
79
|
+
protected inputChange$: Subject<any>;
|
|
80
|
+
protected _destroy$: Subject<boolean>;
|
|
81
|
+
constructor(ngControl: NgControl, translocoScope: TranslocoScope, cdr: ChangeDetectorRef);
|
|
82
|
+
ngOnInit(): void;
|
|
83
|
+
ngOnDestroy(): void;
|
|
84
|
+
writeValue(value: any): void;
|
|
85
|
+
cutTextAfterMaxLength(value: any): any;
|
|
86
|
+
/** @internal */
|
|
87
|
+
onInput(event: Event): void;
|
|
88
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgvInputComponent, [{ optional: true; self: true; }, { optional: true; }, null]>;
|
|
89
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgvInputComponent, "nggv-input", never, { "thook": { "alias": "thook"; "required": false; }; "type": { "alias": "type"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "email": { "alias": "email"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "step": { "alias": "step"; "required": false; }; "minLength": { "alias": "minLength"; "required": false; }; "minlength": { "alias": "minlength"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "maxlength": { "alias": "maxlength"; "required": false; }; "showCharacterCountdown": { "alias": "showCharacterCountdown"; "required": false; }; "pattern": { "alias": "pattern"; "required": false; }; "debounceTime": { "alias": "debounceTime"; "required": false; }; "badgeText": { "alias": "badgeText"; "required": false; }; "inputMask": { "alias": "inputMask"; "required": false; }; }, { "nggvInput": "nggvInput"; }, never, ["[slot='prefix']", "[slot='suffix']", "*"], false, never>;
|
|
90
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./input.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@sebgroup/green-angular/src/v-angular/i18n";
|
|
5
|
+
import * as i4 from "@sebgroup/green-angular/src/v-angular/input-mask";
|
|
6
|
+
import * as i5 from "@angular/forms";
|
|
7
|
+
export declare class NgvInputModule {
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgvInputModule, never>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgvInputModule, [typeof i1.NgvInputComponent], [typeof i2.CommonModule, typeof i3.NgvI18nModule, typeof i4.NgvInputMaskModule, typeof i5.ReactiveFormsModule], [typeof i1.NgvInputComponent]>;
|
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<NgvInputModule>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import type { InputmaskOptions } from './input-mask.types';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class InputMaskFormatPipe implements PipeTransform {
|
|
5
|
+
transform<T = any>(value: any, options: InputmaskOptions<T>): any;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputMaskFormatPipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<InputMaskFormatPipe, "nggvInputMaskFormat", false>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, NgZone, OnDestroy, OnInit, Renderer2 } from '@angular/core';
|
|
2
|
+
import { AbstractControl, ControlValueAccessor, NgControl, Validator } from '@angular/forms';
|
|
3
|
+
import type Inputmask from 'inputmask';
|
|
4
|
+
import { InputMaskConfig } from './config';
|
|
5
|
+
import type { InputmaskOptions } from './input-mask.types';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class NgvInputMaskDirective<T = any> implements OnInit, AfterViewInit, OnDestroy, ControlValueAccessor, Validator {
|
|
8
|
+
ngControl: NgControl;
|
|
9
|
+
private platformId;
|
|
10
|
+
private elementRef;
|
|
11
|
+
private renderer;
|
|
12
|
+
private ngZone;
|
|
13
|
+
/** Input settings of directive */
|
|
14
|
+
nggvInputMask: InputmaskOptions<T>;
|
|
15
|
+
inputMaskPlugin: Inputmask.Instance | undefined;
|
|
16
|
+
nativeInputElement: HTMLInputElement | undefined;
|
|
17
|
+
defaultInputMaskConfig: InputMaskConfig;
|
|
18
|
+
private mutationObserver;
|
|
19
|
+
constructor(ngControl: NgControl, config: InputMaskConfig, platformId: string, elementRef: ElementRef<HTMLInputElement | any>, renderer: Renderer2, ngZone: NgZone);
|
|
20
|
+
onInput: (_: any) => void;
|
|
21
|
+
onTouched: (_: any) => void;
|
|
22
|
+
onKeyUp(event: KeyboardEvent): void;
|
|
23
|
+
ngOnInit(): void;
|
|
24
|
+
ngOnDestroy(): void;
|
|
25
|
+
initInputMask(): void;
|
|
26
|
+
ngAfterViewInit(): void;
|
|
27
|
+
get inputMaskOptions(): Inputmask.Options;
|
|
28
|
+
writeValue(value: string): void;
|
|
29
|
+
registerOnChange(fn: (_: T | null) => void): void;
|
|
30
|
+
registerOnTouched(fn: any): void;
|
|
31
|
+
validate: (control: AbstractControl) => {
|
|
32
|
+
[key: string]: any;
|
|
33
|
+
} | null;
|
|
34
|
+
setDisabledState(disabled: boolean): void;
|
|
35
|
+
private get control();
|
|
36
|
+
private setNativeInputElement;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgvInputMaskDirective<any>, [{ optional: true; self: true; }, null, null, null, null, null]>;
|
|
38
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NgvInputMaskDirective<any>, "[nggvInputMask]", never, { "nggvInputMask": { "alias": "nggvInputMask"; "required": false; }; }, {}, never, never, false, never>;
|
|
39
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
+
import { InputMaskConfig } from './config';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "./input-mask.directive";
|
|
5
|
+
import * as i2 from "./input-mask-format.pipe";
|
|
6
|
+
export declare class NgvInputMaskModule {
|
|
7
|
+
static forRoot(config?: Partial<InputMaskConfig>): ModuleWithProviders<NgvInputMaskModule>;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgvInputMaskModule, never>;
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgvInputMaskModule, [typeof i1.NgvInputMaskDirective, typeof i2.InputMaskFormatPipe], never, [typeof i1.NgvInputMaskDirective, typeof i2.InputMaskFormatPipe]>;
|
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<NgvInputMaskModule>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type Inputmask from 'inputmask';
|
|
2
|
+
export type InputmaskOptions<T> = Inputmask.Options & {
|
|
3
|
+
parser?: (value: any) => T;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* Useful when you want to add input-mask on input which is child of your component
|
|
7
|
+
*
|
|
8
|
+
* @since 2.1.0
|
|
9
|
+
*/
|
|
10
|
+
export type InputMaskConfig = {
|
|
11
|
+
/**
|
|
12
|
+
* If set true, MutationObserver will be used to look for changes until it finds input with inputSelector
|
|
13
|
+
*/
|
|
14
|
+
isAsync: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* CSS like selector, which will be used with `querySelector` to get the native input.
|
|
17
|
+
* If your input is loaded lazily, please use `isAsync` option with this
|
|
18
|
+
*/
|
|
19
|
+
inputSelector: string;
|
|
20
|
+
};
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { DialogButtons } from '../modal.types';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export interface DialogEvent<T = any> {
|
|
5
|
+
original: Event | undefined;
|
|
6
|
+
payload: T | undefined;
|
|
7
|
+
}
|
|
8
|
+
export declare class NgvDialogComponent implements OnInit {
|
|
9
|
+
dialogRef: ElementRef | undefined;
|
|
10
|
+
/** Special property used for selecting DOM elements during automated UI testing. */
|
|
11
|
+
thook: string;
|
|
12
|
+
/** @internal */
|
|
13
|
+
baseClass: boolean;
|
|
14
|
+
/** @internal Defines the default visibility state of the dialog. */
|
|
15
|
+
shown: boolean;
|
|
16
|
+
/** @internal */
|
|
17
|
+
get ariaHidden(): boolean;
|
|
18
|
+
/** Defines the default visibility state of the dialog. */
|
|
19
|
+
initiallyShown: boolean;
|
|
20
|
+
/** Sets modal heading. Will be translated (using transloco) if the string matches a cms key. */
|
|
21
|
+
heading: string;
|
|
22
|
+
/**
|
|
23
|
+
* Sets modal title. Will be translated (using transloco) if the string matches a cms key.
|
|
24
|
+
* @deprecated - use heading instead.
|
|
25
|
+
*/
|
|
26
|
+
title: string;
|
|
27
|
+
/** Sets content body and can contain html code. The content body can also be set by nesting children to the dialog tag. */
|
|
28
|
+
content?: string;
|
|
29
|
+
/** Defines if dialog should close on action. */
|
|
30
|
+
autoClose: boolean;
|
|
31
|
+
/** An array of event payloads that will be added to every click context menu item click. */
|
|
32
|
+
payload: any;
|
|
33
|
+
dialogTitleId: string;
|
|
34
|
+
dialogBodyId: string;
|
|
35
|
+
/** It gives an ability for parent component to control if modal should be closed on esc button click. */
|
|
36
|
+
closeModalOnEscape: boolean;
|
|
37
|
+
_buttons: DialogButtons | undefined;
|
|
38
|
+
/** Buttons are defined as a key-value pair where key is one of "positive|neutral|negative" and value is the button label. */
|
|
39
|
+
set buttons(buttons: DialogButtons);
|
|
40
|
+
nggvCloseEvent: EventEmitter<DialogEvent<any>>;
|
|
41
|
+
nggvPositiveEvent: EventEmitter<DialogEvent<any>>;
|
|
42
|
+
nggvNeutralEvent: EventEmitter<DialogEvent<any>>;
|
|
43
|
+
nggvNegativeEvent: EventEmitter<DialogEvent<any>>;
|
|
44
|
+
protected _previous: HTMLElement | undefined;
|
|
45
|
+
protected _firstFocusable: HTMLElement | undefined;
|
|
46
|
+
protected _lastFocusable: HTMLElement | undefined;
|
|
47
|
+
ngOnInit(): void;
|
|
48
|
+
onAction(event: Event, action: string): void;
|
|
49
|
+
open(opener?: HTMLElement): boolean;
|
|
50
|
+
protected _limitFocusable(): void;
|
|
51
|
+
close(event?: Event, initiator?: string): void;
|
|
52
|
+
focusTrap(event: KeyboardEvent): void;
|
|
53
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgvDialogComponent, never>;
|
|
54
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgvDialogComponent, "nggv-dialog", ["dialog"], { "thook": { "alias": "thook"; "required": false; }; "shown": { "alias": "shown"; "required": false; }; "initiallyShown": { "alias": "initiallyShown"; "required": false; }; "heading": { "alias": "heading"; "required": false; }; "title": { "alias": "title"; "required": false; }; "content": { "alias": "content"; "required": false; }; "autoClose": { "alias": "autoClose"; "required": false; }; "payload": { "alias": "payload"; "required": false; }; "dialogTitleId": { "alias": "dialogTitleId"; "required": false; }; "dialogBodyId": { "alias": "dialogBodyId"; "required": false; }; "closeModalOnEscape": { "alias": "closeModalOnEscape"; "required": false; }; "buttons": { "alias": "buttons"; "required": false; }; }, { "nggvCloseEvent": "nggvCloseEvent"; "nggvPositiveEvent": "nggvPositiveEvent"; "nggvNeutralEvent": "nggvNeutralEvent"; "nggvNegativeEvent": "nggvNegativeEvent"; }, never, ["*"], false, never>;
|
|
55
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ElementRef, OnDestroy } from '@angular/core';
|
|
2
|
+
import '@sebgroup/green-core/components/icon/icons/dot-grid-one-horizontal';
|
|
3
|
+
import { Subscription } from 'rxjs';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class NgvFoldOutComponent implements OnDestroy {
|
|
6
|
+
/** Special property used for selecting DOM elements during automated UI testing. */
|
|
7
|
+
thook: string;
|
|
8
|
+
inputRef?: ElementRef;
|
|
9
|
+
/** Aligns the dropdown list with the buttons right or left side */
|
|
10
|
+
alignOptions: 'left' | 'right';
|
|
11
|
+
onClickSubscription: Subscription | undefined;
|
|
12
|
+
/** @internal */
|
|
13
|
+
shown: boolean;
|
|
14
|
+
constructor();
|
|
15
|
+
ngOnDestroy(): void;
|
|
16
|
+
/** Toggle display of the option list */
|
|
17
|
+
toggleVisibility(event?: Event, setVisibility?: boolean): void;
|
|
18
|
+
/**
|
|
19
|
+
* Closes the fold-out on click outside.
|
|
20
|
+
*/
|
|
21
|
+
subscribeToOutsideClickEvent(): void;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgvFoldOutComponent, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgvFoldOutComponent, "nggv-fold-out", never, { "thook": { "alias": "thook"; "required": false; }; "alignOptions": { "alias": "alignOptions"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class NgvFoldOutOptionDirective {
|
|
3
|
+
baseClass: boolean;
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgvFoldOutOptionDirective, never>;
|
|
5
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NgvFoldOutOptionDirective, "[nggvOption]", never, {}, {}, never, never, false, never>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import './modal.globals';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "./dialog/dialog.component";
|
|
4
|
+
import * as i2 from "./slide-out/slide-out.component";
|
|
5
|
+
import * as i3 from "./fold-out/fold-out.component";
|
|
6
|
+
import * as i4 from "./fold-out/fold-out.directive";
|
|
7
|
+
import * as i5 from "@angular/common";
|
|
8
|
+
import * as i6 from "@sebgroup/green-angular/src/v-angular/button";
|
|
9
|
+
export declare class NgvModalModule {
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgvModalModule, never>;
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgvModalModule, [typeof i1.NgvDialogComponent, typeof i2.NgvSlideOutComponent, typeof i3.NgvFoldOutComponent, typeof i4.NgvFoldOutOptionDirective], [typeof i5.CommonModule, typeof i6.NgvButtonModule], [typeof i1.NgvDialogComponent, typeof i2.NgvSlideOutComponent, typeof i3.NgvFoldOutComponent, typeof i4.NgvFoldOutOptionDirective]>;
|
|
12
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<NgvModalModule>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { DialogButtons } from '../modal.types';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/** Modal slide-out component based on vanilla pattern library design.
|
|
5
|
+
* The modal title can be set using the @Input heading, and will automatically be translated if
|
|
6
|
+
* the string matches a cms key.
|
|
7
|
+
* Content can be injected into the body of the slide-out by either setting the @Input content to any type of
|
|
8
|
+
* markdown, or using content projection (adding content between the `nggv-slideout-modal`-start and end tag).
|
|
9
|
+
* If the content needs to stretch outside the normal padded area, add the attribute `slot="outside-content"` to the
|
|
10
|
+
* projected content main element.
|
|
11
|
+
* Test hooks:
|
|
12
|
+
* The modal hook defaults to 'slideout' but is customizeable.
|
|
13
|
+
* The closing button can be selected using 'slideout-close'.
|
|
14
|
+
* The backdrop is selectable using 'slideout-backdrop'.
|
|
15
|
+
*/
|
|
16
|
+
export declare class NgvSlideOutComponent implements OnInit {
|
|
17
|
+
private host;
|
|
18
|
+
/** @internal */
|
|
19
|
+
slideOutRef: ElementRef | undefined;
|
|
20
|
+
/** Sets from which side the modal should open. */
|
|
21
|
+
side: 'left' | 'right';
|
|
22
|
+
/** Defines the default visibility state of the slide-out. */
|
|
23
|
+
shown: boolean;
|
|
24
|
+
/** Defines the default visibility state of the modal. */
|
|
25
|
+
initiallyShown: boolean;
|
|
26
|
+
/** Sets modal heading. Will be translated (using transloco) if the string matches a cms key. */
|
|
27
|
+
heading: string;
|
|
28
|
+
/**
|
|
29
|
+
* Sets modal title. Will be translated (using transloco) if the string matches a cms key.
|
|
30
|
+
* @deprecated - use @Input() heading instead.
|
|
31
|
+
*/
|
|
32
|
+
title: string;
|
|
33
|
+
/** Sets content body of the modal and can contain html code. The content body can also be set by nesting children to the modal tag. */
|
|
34
|
+
content?: string;
|
|
35
|
+
/** Sets whether it is possible to close the modal from the top right corner. */
|
|
36
|
+
closable: boolean;
|
|
37
|
+
/** Allows the modal content to decide the width of the modal. */
|
|
38
|
+
autoWidth: boolean;
|
|
39
|
+
/** Special property used for selecting DOM elements during automated UI testing. */
|
|
40
|
+
thook: string;
|
|
41
|
+
/** @internal */
|
|
42
|
+
get fromLeft(): boolean;
|
|
43
|
+
_buttons: DialogButtons | undefined;
|
|
44
|
+
/** Buttons are defined as a key-value pair where key is one of "positive|neutral|negative" and value is the button label. */
|
|
45
|
+
set buttons(buttons: DialogButtons);
|
|
46
|
+
/** Will emit true on closing event. */
|
|
47
|
+
nggvCloseEvent: EventEmitter<boolean>;
|
|
48
|
+
nggvPositiveEvent: EventEmitter<void>;
|
|
49
|
+
nggvNeutralEvent: EventEmitter<void>;
|
|
50
|
+
nggvNegativeEvent: EventEmitter<void>;
|
|
51
|
+
private previous;
|
|
52
|
+
private firstFocusable;
|
|
53
|
+
private lastFocusable;
|
|
54
|
+
constructor(host: ElementRef);
|
|
55
|
+
ngOnInit(): void;
|
|
56
|
+
onAction(event: Event, action: string): void;
|
|
57
|
+
/**
|
|
58
|
+
* Called on a modal element. Opens the modal and sets focus to the last focusable element in the modal.
|
|
59
|
+
*
|
|
60
|
+
* @param opener - reference to last focused element before opening modal
|
|
61
|
+
* @returns - true
|
|
62
|
+
*/
|
|
63
|
+
open(opener?: HTMLElement): boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Called on a modal element. Closes the modal and emits a `nggvCloseEvent`. Sets focus to the lats focused element if an element was sent in to open function.
|
|
66
|
+
*
|
|
67
|
+
* @param event
|
|
68
|
+
* @param initiator
|
|
69
|
+
*/
|
|
70
|
+
close(event?: Event, initiator?: string): void;
|
|
71
|
+
/** @internal */
|
|
72
|
+
focusTrap(event: KeyboardEvent): void;
|
|
73
|
+
private limitFocusable;
|
|
74
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgvSlideOutComponent, never>;
|
|
75
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgvSlideOutComponent, "nggv-slideout-modal", never, { "side": { "alias": "side"; "required": false; }; "shown": { "alias": "shown"; "required": false; }; "initiallyShown": { "alias": "initiallyShown"; "required": false; }; "heading": { "alias": "heading"; "required": false; }; "title": { "alias": "title"; "required": false; }; "content": { "alias": "content"; "required": false; }; "closable": { "alias": "closable"; "required": false; }; "autoWidth": { "alias": "autoWidth"; "required": false; }; "thook": { "alias": "thook"; "required": false; }; "buttons": { "alias": "buttons"; "required": false; }; }, { "nggvCloseEvent": "nggvCloseEvent"; "nggvPositiveEvent": "nggvPositiveEvent"; "nggvNeutralEvent": "nggvNeutralEvent"; "nggvNegativeEvent": "nggvNegativeEvent"; }, never, ["*", "[slot='outside-content']"], false, never>;
|
|
76
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { NgControl } from '@angular/forms';
|
|
3
|
+
import { TranslocoScope } from '@ngneat/transloco';
|
|
4
|
+
import { NgvBaseControlValueAccessorComponent } from '@sebgroup/green-angular/src/v-angular/base-control-value-accessor';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
/** @internal Internal class used to uncheck radio buttons with the matching name. */
|
|
7
|
+
export declare class NgvRadioControlRegistry {
|
|
8
|
+
private _radios;
|
|
9
|
+
add(control: NgControl, radio: NgvRadioComponent): void;
|
|
10
|
+
remove(radio: NgvRadioComponent): void;
|
|
11
|
+
select(radio: NgvRadioComponent): void;
|
|
12
|
+
private _isSameGroup;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgvRadioControlRegistry, never>;
|
|
14
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NgvRadioControlRegistry>;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Use radio buttons when users must select one option in a list with exclusive options out of a set of two or more options.
|
|
18
|
+
* https://designlibrary.sebgroup.com/components/component-radiobutton
|
|
19
|
+
*/
|
|
20
|
+
export declare class NgvRadioComponent extends NgvBaseControlValueAccessorComponent implements OnInit, OnDestroy {
|
|
21
|
+
ngControl: NgControl;
|
|
22
|
+
protected translocoScope: TranslocoScope;
|
|
23
|
+
protected registry: NgvRadioControlRegistry;
|
|
24
|
+
protected cdr: ChangeDetectorRef;
|
|
25
|
+
/** Special property used for selecting DOM elements during automated UI testing. */
|
|
26
|
+
thook: string;
|
|
27
|
+
/** Syncs a FormControl in an existing FormGroup to a form control element by name. */
|
|
28
|
+
formControlName?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Creates a new RadioComponent
|
|
31
|
+
* @param ngControl optional FormControl provided when component is used in a form, through dependency injection.
|
|
32
|
+
* @param registry internal registry used to uncheck radio buttons with the matching name, through dependency injection.
|
|
33
|
+
* @param cdr change detection reference for rendering purposes.
|
|
34
|
+
*/
|
|
35
|
+
constructor(ngControl: NgControl, translocoScope: TranslocoScope, registry: NgvRadioControlRegistry, cdr: ChangeDetectorRef);
|
|
36
|
+
ngOnInit(): void;
|
|
37
|
+
ngOnDestroy(): void;
|
|
38
|
+
/** @internal */
|
|
39
|
+
onInputChange(event: Event): void;
|
|
40
|
+
/** Writes a new value of true or false based on if argument matches this components value property. */
|
|
41
|
+
writeValue(value: any): void;
|
|
42
|
+
/** Registers a callback function that is called when the child input element's value changes. */
|
|
43
|
+
registerOnChange(fn: (value: any) => any): void;
|
|
44
|
+
/** Checks that the name properties match and updates name property if only formControlName is given. */
|
|
45
|
+
private _checkName;
|
|
46
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgvRadioComponent, [{ optional: true; self: true; }, { optional: true; }, null, null]>;
|
|
47
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgvRadioComponent, "nggv-radio", never, { "thook": { "alias": "thook"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
48
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./radio.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@sebgroup/green-angular/src/v-angular/i18n";
|
|
5
|
+
export declare class NgvRadioModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgvRadioModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgvRadioModule, [typeof i1.NgvRadioComponent], [typeof i2.CommonModule, typeof i3.NgvI18nModule], [typeof i1.NgvRadioComponent]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<NgvRadioModule>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ChangeDetectorRef } from '@angular/core';
|
|
2
|
+
import { NgControl } from '@angular/forms';
|
|
3
|
+
import { TranslocoScope } from '@ngneat/transloco';
|
|
4
|
+
import { NgvBaseControlValueAccessorComponent } from '@sebgroup/green-angular/src/v-angular/base-control-value-accessor';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
/** Textarea fields allow users to add and edit longer or multiple line text. */
|
|
7
|
+
export declare class NgvTextareaComponent extends NgvBaseControlValueAccessorComponent {
|
|
8
|
+
ngControl: NgControl;
|
|
9
|
+
protected translocoScope: TranslocoScope;
|
|
10
|
+
protected cdr: ChangeDetectorRef;
|
|
11
|
+
/** Special property used for selecting DOM elements during automated UI testing. */
|
|
12
|
+
thook: string;
|
|
13
|
+
/** Text shown before input has a written value. */
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
/** If set to true, the value will not be editable. */
|
|
16
|
+
readonly: boolean;
|
|
17
|
+
/** Minimum length (number of characters) of value. */
|
|
18
|
+
set minLength(length: number);
|
|
19
|
+
get minlength(): number;
|
|
20
|
+
/**
|
|
21
|
+
* Minimum length (number of characters) of value.
|
|
22
|
+
* @deprecated minlength triggers angular-template-validation. Use @Input() minLength instead.
|
|
23
|
+
*/
|
|
24
|
+
set minlength(length: number);
|
|
25
|
+
/** Maximum length (number of characters) of value. */
|
|
26
|
+
set maxLength(length: number);
|
|
27
|
+
get maxlength(): number;
|
|
28
|
+
/**
|
|
29
|
+
* Maximum length (number of characters) of value.
|
|
30
|
+
* @deprecated maxlength triggers angular-template-validation. Use @Input() maxLength instead.
|
|
31
|
+
*/
|
|
32
|
+
set maxlength(length: number);
|
|
33
|
+
/** Returns if maxlength is used */
|
|
34
|
+
get hasMaxLength(): boolean;
|
|
35
|
+
private _maxlength;
|
|
36
|
+
private _minlength;
|
|
37
|
+
/** Sets the height of the textarea and disables resize. A scrollbar will appear if necessary. */
|
|
38
|
+
rows?: number;
|
|
39
|
+
constructor(ngControl: NgControl, translocoScope: TranslocoScope, cdr: ChangeDetectorRef);
|
|
40
|
+
/** @internal */
|
|
41
|
+
onInput(event: Event): void;
|
|
42
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgvTextareaComponent, [{ optional: true; self: true; }, { optional: true; }, null]>;
|
|
43
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgvTextareaComponent, "nggv-textarea", never, { "thook": { "alias": "thook"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "minLength": { "alias": "minLength"; "required": false; }; "minlength": { "alias": "minlength"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "maxlength": { "alias": "maxlength"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
44
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./textarea.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@sebgroup/green-angular/src/v-angular/i18n";
|
|
5
|
+
export declare class NgvTextareaModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgvTextareaModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgvTextareaModule, [typeof i1.NgvTextareaComponent], [typeof i2.CommonModule, typeof i3.NgvI18nModule], [typeof i1.NgvTextareaComponent]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<NgvTextareaModule>;
|
|
9
|
+
}
|