myrta-ui 1.1.89 → 1.1.91
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/esm2020/lib/components/form/input-date-time/helpers/formatting-moscow-timezone.mjs +15 -3
- package/esm2020/lib/components/form/input-date-time/input-date-time.component.mjs +67 -23
- package/esm2020/lib/components/form/input-date-time/input-date-time.enum.mjs +7 -7
- package/fesm2015/myrta-ui.mjs +88 -34
- package/fesm2015/myrta-ui.mjs.map +1 -1
- package/fesm2020/myrta-ui.mjs +88 -34
- package/fesm2020/myrta-ui.mjs.map +1 -1
- package/lib/components/form/input-date-time/helpers/formatting-moscow-timezone.d.ts +1 -0
- package/lib/components/form/input-date-time/input-date-time.component.d.ts +8 -7
- package/lib/components/form/input-date-time/input-date-time.enum.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { AfterViewInit, ElementRef, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
-
import { ExtraTime,
|
|
3
|
+
import { ExtraTime, InputDateTimeSizesTypes } from './input-date-time.enum';
|
|
4
4
|
import { DateModel, TimeModel } from './helpers/validate-value-models';
|
|
5
5
|
import { TimezoneType } from './enum/timezone';
|
|
6
|
-
import { Field } from
|
|
6
|
+
import { Field } from '../../../services';
|
|
7
7
|
import { InputDateTimeValueTypes, InputDateTimeValueWithId } from './models/input-date-time.model';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export declare class InputDateTimeComponent implements ControlValueAccessor, OnChanges, AfterViewInit {
|
|
@@ -15,7 +15,7 @@ export declare class InputDateTimeComponent implements ControlValueAccessor, OnC
|
|
|
15
15
|
innerInvalidMessage: string;
|
|
16
16
|
uuid: string;
|
|
17
17
|
fields: Field[];
|
|
18
|
-
size:
|
|
18
|
+
size: InputDateTimeSizesTypes;
|
|
19
19
|
customClasses: string;
|
|
20
20
|
dateLabel: string;
|
|
21
21
|
timeLabel: string;
|
|
@@ -26,8 +26,6 @@ export declare class InputDateTimeComponent implements ControlValueAccessor, OnC
|
|
|
26
26
|
required: boolean;
|
|
27
27
|
timepicker: boolean;
|
|
28
28
|
range: boolean;
|
|
29
|
-
minDate: string;
|
|
30
|
-
maxDate: string;
|
|
31
29
|
timezone: TimezoneType;
|
|
32
30
|
inline: boolean;
|
|
33
31
|
isManualInput: boolean;
|
|
@@ -36,16 +34,18 @@ export declare class InputDateTimeComponent implements ControlValueAccessor, OnC
|
|
|
36
34
|
addMinTimeObj: ExtraTime;
|
|
37
35
|
addMaxTimeObj: ExtraTime;
|
|
38
36
|
disableValidate: boolean;
|
|
37
|
+
disableIncludes: boolean;
|
|
39
38
|
container: string;
|
|
40
39
|
invalid: boolean;
|
|
41
40
|
invalidMessage: string | string[];
|
|
42
41
|
checkInvalid: true | false | null;
|
|
42
|
+
minDate: string;
|
|
43
|
+
maxDate: string;
|
|
43
44
|
dateInput: ElementRef;
|
|
44
45
|
timeInput: ElementRef;
|
|
45
46
|
changed: EventEmitter<InputDateTimeValueTypes>;
|
|
46
47
|
modelChange: EventEmitter<InputDateTimeValueWithId>;
|
|
47
48
|
blurred: EventEmitter<InputDateTimeValueWithId>;
|
|
48
|
-
constructor();
|
|
49
49
|
ngAfterViewInit(): void;
|
|
50
50
|
ngOnChanges(changes: SimpleChanges): void;
|
|
51
51
|
get getDateValue(): string;
|
|
@@ -53,6 +53,7 @@ export declare class InputDateTimeComponent implements ControlValueAccessor, OnC
|
|
|
53
53
|
private get isValidModels();
|
|
54
54
|
get isViewCleanIcon(): boolean;
|
|
55
55
|
get checkValidClasses(): string;
|
|
56
|
+
private _getDateFromTimezone;
|
|
56
57
|
private _checkExtraTime;
|
|
57
58
|
clickToIconCalendar(): void;
|
|
58
59
|
clickToIconClear(): void;
|
|
@@ -73,5 +74,5 @@ export declare class InputDateTimeComponent implements ControlValueAccessor, OnC
|
|
|
73
74
|
updateValue(insideValue: InputDateTimeValueTypes): void;
|
|
74
75
|
onBlur(event: Event): void;
|
|
75
76
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputDateTimeComponent, never>;
|
|
76
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InputDateTimeComponent, "mrx-input-date-time", never, { "fields": "fields"; "size": "size"; "customClasses": "customClasses"; "dateLabel": "dateLabel"; "timeLabel": "timeLabel"; "datePlaceholder": "datePlaceholder"; "timePlaceholder": "timePlaceholder"; "disabled": "disabled"; "readonly": "readonly"; "required": "required"; "timepicker": "timepicker"; "range": "range"; "
|
|
77
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputDateTimeComponent, "mrx-input-date-time", never, { "fields": "fields"; "size": "size"; "customClasses": "customClasses"; "dateLabel": "dateLabel"; "timeLabel": "timeLabel"; "datePlaceholder": "datePlaceholder"; "timePlaceholder": "timePlaceholder"; "disabled": "disabled"; "readonly": "readonly"; "required": "required"; "timepicker": "timepicker"; "range": "range"; "timezone": "timezone"; "inline": "inline"; "isManualInput": "isManualInput"; "addMinTime": "addMinTime"; "addMaxTime": "addMaxTime"; "addMinTimeObj": "addMinTimeObj"; "addMaxTimeObj": "addMaxTimeObj"; "disableValidate": "disableValidate"; "disableIncludes": "disableIncludes"; "container": "container"; "invalid": "invalid"; "invalidMessage": "invalidMessage"; "checkInvalid": "checkInvalid"; "minDate": "minDate"; "maxDate": "maxDate"; }, { "changed": "changed"; "modelChange": "modelChange"; "blurred": "blurred"; }, never, never>;
|
|
77
78
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export declare enum
|
|
1
|
+
export declare enum InputDateTimeSizesEnum {
|
|
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 declare type
|
|
6
|
+
export declare type InputDateTimeSizesTypes = 'small' | 'medium' | 'large';
|
|
7
7
|
/**
|
|
8
8
|
* Пример использования <br/>
|
|
9
9
|
* message="Не более {diff} дней" <br/>
|