myrta-ui 17.0.92 → 17.0.94
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/components/form/input-datepicker/input-datepicker.component.mjs +3 -3
- package/esm2022/lib/components/form/input-datepicker/input-datepicker.enum.mjs +7 -7
- package/esm2022/public-api.mjs +3 -1
- package/fesm2022/myrta-ui.mjs +8 -8
- package/fesm2022/myrta-ui.mjs.map +1 -1
- package/lib/components/form/input-datepicker/input-datepicker.component.d.ts +6 -6
- package/lib/components/form/input-datepicker/input-datepicker.enum.d.ts +6 -6
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AfterViewInit, ElementRef, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
-
import {
|
|
3
|
+
import { InputDatepickerSizesTypes, InputDatepickerValidation, InputDatepickerValueTypes, InputDatepickerValueWithId } from './input-datepicker.enum';
|
|
4
4
|
import { DateModel, TimeModel } from './helpers/validate-value-models';
|
|
5
5
|
import { Field } from '../../../services';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
@@ -13,7 +13,7 @@ export declare class InputDatepickerComponent implements ControlValueAccessor, O
|
|
|
13
13
|
innerInvalidMessage: string;
|
|
14
14
|
uuid: string;
|
|
15
15
|
fields: Field[];
|
|
16
|
-
size:
|
|
16
|
+
size: InputDatepickerSizesTypes;
|
|
17
17
|
format: string;
|
|
18
18
|
locale: 'ru' | 'en';
|
|
19
19
|
customClasses: string;
|
|
@@ -32,14 +32,14 @@ export declare class InputDatepickerComponent implements ControlValueAccessor, O
|
|
|
32
32
|
leadZeroDateTime: boolean;
|
|
33
33
|
mask: string;
|
|
34
34
|
container: string;
|
|
35
|
-
validationType:
|
|
35
|
+
validationType: InputDatepickerValidation;
|
|
36
36
|
invalid: boolean;
|
|
37
37
|
invalidMessage: string | string[];
|
|
38
38
|
checkInvalid: true | false | null;
|
|
39
39
|
isShowMessages: boolean;
|
|
40
40
|
dateInput: ElementRef;
|
|
41
41
|
changed: EventEmitter<string>;
|
|
42
|
-
modelChange: EventEmitter<
|
|
42
|
+
modelChange: EventEmitter<InputDatepickerValueWithId>;
|
|
43
43
|
constructor();
|
|
44
44
|
ngAfterViewInit(): void;
|
|
45
45
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -57,13 +57,13 @@ export declare class InputDatepickerComponent implements ControlValueAccessor, O
|
|
|
57
57
|
updateDateValue(dateInput: HTMLInputElement): void;
|
|
58
58
|
clickToInput(input: HTMLInputElement): void;
|
|
59
59
|
private checkingInvalid;
|
|
60
|
-
writeValue(outsideValue:
|
|
60
|
+
writeValue(outsideValue: InputDatepickerValueTypes): void;
|
|
61
61
|
private onChange;
|
|
62
62
|
private onTouched;
|
|
63
63
|
registerOnChange(fn: any): void;
|
|
64
64
|
registerOnTouched(fn: () => {}): void;
|
|
65
65
|
setDisabledState(isDisabled: boolean): void;
|
|
66
|
-
updateValue(insideValue:
|
|
66
|
+
updateValue(insideValue: InputDatepickerValueTypes): void;
|
|
67
67
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputDatepickerComponent, never>;
|
|
68
68
|
static ɵcmp: i0.ɵɵComponentDeclaration<InputDatepickerComponent, "mrx-input-datepicker", never, { "fields": { "alias": "fields"; "required": false; }; "size": { "alias": "size"; "required": false; }; "format": { "alias": "format"; "required": false; }; "locale": { "alias": "locale"; "required": false; }; "customClasses": { "alias": "customClasses"; "required": false; }; "dateLabel": { "alias": "dateLabel"; "required": false; }; "timeLabel": { "alias": "timeLabel"; "required": false; }; "datePlaceholder": { "alias": "datePlaceholder"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "required": { "alias": "required"; "required": false; }; "timepicker": { "alias": "timepicker"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "inline": { "alias": "inline"; "required": false; }; "closable": { "alias": "closable"; "required": false; }; "leadZeroDateTime": { "alias": "leadZeroDateTime"; "required": false; }; "mask": { "alias": "mask"; "required": false; }; "container": { "alias": "container"; "required": false; }; "validationType": { "alias": "validationType"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; "invalidMessage": { "alias": "invalidMessage"; "required": false; }; "checkInvalid": { "alias": "checkInvalid"; "required": false; }; "isShowMessages": { "alias": "isShowMessages"; "required": false; }; }, { "changed": "changed"; "modelChange": "modelChange"; }, never, never, false, never>;
|
|
69
69
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export declare enum
|
|
1
|
+
export declare enum InputDatepickerSizesEnum {
|
|
2
2
|
'small' = "mrx-input-date-sm",
|
|
3
3
|
'medium' = "mrx-input-date-md",
|
|
4
4
|
'large' = "mrx-input-date-lg"
|
|
5
5
|
}
|
|
6
|
-
export type
|
|
7
|
-
export type
|
|
8
|
-
export interface
|
|
9
|
-
value:
|
|
6
|
+
export type InputDatepickerSizesTypes = 'small' | 'medium' | 'large';
|
|
7
|
+
export type InputDatepickerValueTypes = string;
|
|
8
|
+
export interface InputDatepickerValueWithId {
|
|
9
|
+
value: InputDatepickerValueTypes;
|
|
10
10
|
id: string;
|
|
11
11
|
}
|
|
12
|
-
export type
|
|
12
|
+
export type InputDatepickerValidation = 'default' | 'double';
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -97,7 +97,9 @@ export * from './lib/components/form/input-datepicker/input-datepicker.component
|
|
|
97
97
|
export * from './lib/components/form/input-datepicker/input-datepicker.enum';
|
|
98
98
|
export * from './lib/components/form/input-date-time/input-date-time.module';
|
|
99
99
|
export * from './lib/components/form/input-date-time/input-date-time.component';
|
|
100
|
+
export * from './lib/components/form/input-date-time/input-date-time.enum';
|
|
100
101
|
export * from './lib/components/form/input-date-time/enum/timezone';
|
|
102
|
+
export * from './lib/components/form/input-date-time/models/input-date-time.model';
|
|
101
103
|
export * from './lib/components/form/input-timepicker/input-timepicker.module';
|
|
102
104
|
export * from './lib/components/form/input-timepicker/input-timepicker.component';
|
|
103
105
|
export * from './lib/components/form/editor/editor.module';
|