@softheon/armature 17.4.1 → 17.5.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.
- package/esm2022/lib/base-components/base-component-api.mjs +2 -1
- package/esm2022/lib/base-components/base-component.module.mjs +16 -7
- package/esm2022/lib/base-components/sof-input-stepper/sof-input-stepper.component.mjs +187 -0
- package/fesm2022/softheon-armature.mjs +189 -7
- package/fesm2022/softheon-armature.mjs.map +1 -1
- package/lib/base-components/base-component-api.d.ts +1 -0
- package/lib/base-components/base-component.module.d.ts +20 -18
- package/lib/base-components/sof-input-stepper/sof-input-stepper.component.d.ts +78 -0
- package/package.json +1 -1
|
@@ -11,3 +11,4 @@ export * from './sof-image-checkbox/sof-image-checkbox.component';
|
|
|
11
11
|
export * from './sof-simple-alert/sof-simple-alert.component';
|
|
12
12
|
export * from './sof-confirm-address/sof-confirm-address.component';
|
|
13
13
|
export * from './sof-radio-card/sof-radio-card.component';
|
|
14
|
+
export * from './sof-input-stepper/sof-input-stepper.component';
|
|
@@ -10,26 +10,28 @@ import * as i8 from "./sof-badge/sof-badge.component";
|
|
|
10
10
|
import * as i9 from "./sof-image-checkbox/sof-image-checkbox.component";
|
|
11
11
|
import * as i10 from "./sof-simple-alert/sof-simple-alert.component";
|
|
12
12
|
import * as i11 from "./sof-confirm-address/sof-confirm-address.component";
|
|
13
|
-
import * as i12 from "
|
|
14
|
-
import * as i13 from "@angular/
|
|
15
|
-
import * as i14 from "@
|
|
16
|
-
import * as i15 from "@
|
|
17
|
-
import * as i16 from "@
|
|
18
|
-
import * as i17 from "@
|
|
19
|
-
import * as i18 from "@angular/material/
|
|
20
|
-
import * as i19 from "@angular/material/
|
|
21
|
-
import * as i20 from "@angular/material/
|
|
22
|
-
import * as i21 from "@angular/material/
|
|
23
|
-
import * as i22 from "@angular/material/
|
|
24
|
-
import * as i23 from "@angular/material/
|
|
25
|
-
import * as i24 from "@angular/material/
|
|
26
|
-
import * as i25 from "@angular/material/
|
|
27
|
-
import * as i26 from "@angular/material/
|
|
28
|
-
import * as i27 from "@angular/material/
|
|
29
|
-
import * as i28 from "@angular/material/
|
|
13
|
+
import * as i12 from "./sof-input-stepper/sof-input-stepper.component";
|
|
14
|
+
import * as i13 from "@angular/router";
|
|
15
|
+
import * as i14 from "@angular/common";
|
|
16
|
+
import * as i15 from "@ngbracket/ngx-layout";
|
|
17
|
+
import * as i16 from "@angular/forms";
|
|
18
|
+
import * as i17 from "@ngx-translate/core";
|
|
19
|
+
import * as i18 from "@angular/material/select";
|
|
20
|
+
import * as i19 from "@angular/material/core";
|
|
21
|
+
import * as i20 from "@angular/material/checkbox";
|
|
22
|
+
import * as i21 from "@angular/material/icon";
|
|
23
|
+
import * as i22 from "@angular/material/dialog";
|
|
24
|
+
import * as i23 from "@angular/material/button";
|
|
25
|
+
import * as i24 from "@angular/material/form-field";
|
|
26
|
+
import * as i25 from "@angular/material/toolbar";
|
|
27
|
+
import * as i26 from "@angular/material/tooltip";
|
|
28
|
+
import * as i27 from "@angular/material/button-toggle";
|
|
29
|
+
import * as i28 from "@angular/material/card";
|
|
30
|
+
import * as i29 from "@angular/material/radio";
|
|
31
|
+
import * as i30 from "@angular/material/input";
|
|
30
32
|
/** The BaseComponentModule Module */
|
|
31
33
|
export declare class BaseComponentModule {
|
|
32
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaseComponentModule, never>;
|
|
33
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<BaseComponentModule, [typeof i1.SofProgressBarComponent, typeof i2.SofRadioCardComponent, typeof i3.SofBannerComponent, typeof i4.SofAlertComponent, typeof i5.SofModalComponent, typeof i6.SofButtonToggleGroupComponent, typeof i7.SofStarRatingComponent, typeof i8.SofBadgeComponent, typeof i9.SofImageCheckboxComponent, typeof i10.SofSimpleAlertComponent, typeof i11.SofConfirmAddressComponent], [typeof
|
|
35
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<BaseComponentModule, [typeof i1.SofProgressBarComponent, typeof i2.SofRadioCardComponent, typeof i3.SofBannerComponent, typeof i4.SofAlertComponent, typeof i5.SofModalComponent, typeof i6.SofButtonToggleGroupComponent, typeof i7.SofStarRatingComponent, typeof i8.SofBadgeComponent, typeof i9.SofImageCheckboxComponent, typeof i10.SofSimpleAlertComponent, typeof i11.SofConfirmAddressComponent, typeof i12.SofInputStepperComponent], [typeof i13.RouterModule, typeof i14.CommonModule, typeof i15.FlexLayoutModule, typeof i16.FormsModule, typeof i16.ReactiveFormsModule, typeof i17.TranslateModule, typeof i18.MatSelectModule, typeof i19.MatOptionModule, typeof i20.MatCheckboxModule, typeof i21.MatIconModule, typeof i22.MatDialogModule, typeof i23.MatButtonModule, typeof i24.MatFormFieldModule, typeof i25.MatToolbarModule, typeof i26.MatTooltipModule, typeof i27.MatButtonToggleModule, typeof i28.MatCardModule, typeof i29.MatRadioModule, typeof i30.MatInputModule, typeof i23.MatIconButton], [typeof i1.SofProgressBarComponent, typeof i2.SofRadioCardComponent, typeof i3.SofBannerComponent, typeof i4.SofAlertComponent, typeof i5.SofModalComponent, typeof i6.SofButtonToggleGroupComponent, typeof i7.SofStarRatingComponent, typeof i8.SofBadgeComponent, typeof i9.SofImageCheckboxComponent, typeof i10.SofSimpleAlertComponent, typeof i11.SofConfirmAddressComponent, typeof i12.SofInputStepperComponent]>;
|
|
34
36
|
static ɵinj: i0.ɵɵInjectorDeclaration<BaseComponentModule>;
|
|
35
37
|
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { AfterViewInit, EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { AbstractControl, ControlValueAccessor, NgControl } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Custom Input Stepper Component
|
|
6
|
+
*/
|
|
7
|
+
export declare class SofInputStepperComponent implements OnInit, OnDestroy, ControlValueAccessor, AfterViewInit {
|
|
8
|
+
private control;
|
|
9
|
+
/** The value */
|
|
10
|
+
customValue: number;
|
|
11
|
+
/** The minimum value */
|
|
12
|
+
min: number;
|
|
13
|
+
/** The max value */
|
|
14
|
+
max: number;
|
|
15
|
+
/** The step by which the number increases/decreases */
|
|
16
|
+
step: number;
|
|
17
|
+
/** The label text */
|
|
18
|
+
labelText: string;
|
|
19
|
+
/** If the input is required or not */
|
|
20
|
+
isRequired: boolean;
|
|
21
|
+
/** The error message */
|
|
22
|
+
requiredErrorMessage: string;
|
|
23
|
+
/** The min max error message */
|
|
24
|
+
minMaxErrorMessage: string;
|
|
25
|
+
/** The aria label */
|
|
26
|
+
ariaLabel: string;
|
|
27
|
+
/** The value change event emitter */
|
|
28
|
+
valueChange: EventEmitter<number>;
|
|
29
|
+
/** If the input is disabled or not */
|
|
30
|
+
isDisabled: boolean;
|
|
31
|
+
/** The control name */
|
|
32
|
+
controlName: string | number;
|
|
33
|
+
/** The derived form control */
|
|
34
|
+
get derivedFormControl(): AbstractControl;
|
|
35
|
+
/** The OnChange form control method */
|
|
36
|
+
private onChange;
|
|
37
|
+
/** The OnTouched form control method */
|
|
38
|
+
private onTouched;
|
|
39
|
+
/** The component subscription */
|
|
40
|
+
private subscription;
|
|
41
|
+
/**
|
|
42
|
+
* Constructor.
|
|
43
|
+
* @param control The ng control
|
|
44
|
+
*/
|
|
45
|
+
constructor(control: NgControl);
|
|
46
|
+
/**
|
|
47
|
+
* Component Initialization
|
|
48
|
+
*/
|
|
49
|
+
ngOnInit(): void;
|
|
50
|
+
/** After View Initialization */
|
|
51
|
+
ngAfterViewInit(): void;
|
|
52
|
+
/** Triggered when control is changed
|
|
53
|
+
* @param fn The callback function.
|
|
54
|
+
*/
|
|
55
|
+
registerOnChange(fn: any): void;
|
|
56
|
+
/** Triggered when control is touched
|
|
57
|
+
* @param fn The callback function.
|
|
58
|
+
*/
|
|
59
|
+
registerOnTouched(fn: any): void;
|
|
60
|
+
/** Sets the disabled state
|
|
61
|
+
* @param isDisabled If the control is disabled or not
|
|
62
|
+
*/
|
|
63
|
+
setDisabledState(isDisabled: boolean): void;
|
|
64
|
+
/** Component Destruction */
|
|
65
|
+
ngOnDestroy(): void;
|
|
66
|
+
/** Triggered when the form control value is set outside the component
|
|
67
|
+
* @param newVal The new value.
|
|
68
|
+
*/
|
|
69
|
+
writeValue(newVal: any): void;
|
|
70
|
+
/** Increase the value by step */
|
|
71
|
+
increaseVal(): void;
|
|
72
|
+
/** Decrease the value by step */
|
|
73
|
+
decreaseVal(): void;
|
|
74
|
+
/** Updates the isRequired field based on the control */
|
|
75
|
+
private setDefinedValidators;
|
|
76
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SofInputStepperComponent, [{ optional: true; host: true; self: true; }]>;
|
|
77
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SofInputStepperComponent, "sof-input-stepper", never, { "customValue": { "alias": "customValue"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "step": { "alias": "step"; "required": false; }; "labelText": { "alias": "labelText"; "required": false; }; "isRequired": { "alias": "required"; "required": false; }; "requiredErrorMessage": { "alias": "requiredErrorMessage"; "required": false; }; "minMaxErrorMessage": { "alias": "minMaxErrorMessage"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, false, never>;
|
|
78
|
+
}
|