myrta-ui 1.1.38 → 1.1.40
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/cdk-tooltip/constants/index.mjs +7 -7
- package/esm2020/lib/components/form/input-date-time/input-date-time.component.mjs +1 -1
- package/esm2020/lib/components/form/input-date-time/input-date-time.enum.mjs +1 -1
- package/esm2020/lib/components/form/input-date-time/models/input-date-time.model.mjs +2 -0
- package/esm2020/lib/components/form/input-datepicker/input-datepicker.component.mjs +1 -1
- package/esm2020/lib/components/form/input-datepicker/input-datepicker.enum.mjs +1 -1
- package/esm2020/lib/components/form/input-datepicker/models/input-datepicker.model.mjs +2 -0
- package/esm2020/lib/components/icon-button/icon-button.component.mjs +9 -3
- package/esm2020/lib/services/mrx-form-validator/helpers/get-sorting-validations.helper.mjs +2 -2
- package/esm2020/public-api.mjs +4 -1
- package/fesm2015/myrta-ui.mjs +15 -9
- package/fesm2015/myrta-ui.mjs.map +1 -1
- package/fesm2020/myrta-ui.mjs +15 -9
- package/fesm2020/myrta-ui.mjs.map +1 -1
- package/lib/components/form/input-date-time/input-date-time.component.d.ts +2 -1
- package/lib/components/form/input-date-time/input-date-time.enum.d.ts +0 -5
- package/lib/components/form/input-date-time/models/input-date-time.model.d.ts +5 -0
- package/lib/components/form/input-datepicker/input-datepicker.component.d.ts +6 -5
- package/lib/components/form/input-datepicker/input-datepicker.enum.d.ts +0 -5
- package/lib/components/form/input-datepicker/models/input-datepicker.model.d.ts +5 -0
- package/lib/components/icon-button/icon-button.component.d.ts +4 -1
- package/package.json +1 -1
- package/public-api.d.ts +3 -0
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { AfterViewInit, ElementRef, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
-
import { ExtraTime, InputDateSizesTypes
|
|
3
|
+
import { ExtraTime, InputDateSizesTypes } from './input-date-time.enum';
|
|
4
4
|
import { DateModel, TimeModel } from './helpers/validate-value-models';
|
|
5
5
|
import { TimezoneType } from './enum/timezone';
|
|
6
6
|
import { Field } from "../../../services";
|
|
7
|
+
import { InputDateTimeValueTypes, InputDateTimeValueWithId } from './models/input-date-time.model';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
9
|
export declare class InputDateTimeComponent implements ControlValueAccessor, OnChanges, AfterViewInit {
|
|
9
10
|
dt: any;
|
|
@@ -4,11 +4,6 @@ export declare enum InputDateSizesEnum {
|
|
|
4
4
|
'large' = "mrx-input-date-lg"
|
|
5
5
|
}
|
|
6
6
|
export declare type InputDateSizesTypes = 'small' | 'medium' | 'large';
|
|
7
|
-
export declare type InputDateTimeValueTypes = string | string[];
|
|
8
|
-
export interface InputDateTimeValueWithId {
|
|
9
|
-
value: InputDateTimeValueTypes;
|
|
10
|
-
id: string;
|
|
11
|
-
}
|
|
12
7
|
/**
|
|
13
8
|
* Пример использования <br/>
|
|
14
9
|
* message="Не более {diff} дней" <br/>
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { AfterViewInit, ElementRef, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
-
import { InputDateSizesTypes, InputDateTimeValidation
|
|
3
|
+
import { InputDateSizesTypes, InputDateTimeValidation } from './input-datepicker.enum';
|
|
4
4
|
import { DateModel, TimeModel } from './helpers/validate-value-models';
|
|
5
5
|
import { Field } from '../../../services';
|
|
6
|
+
import { InputDatepickerValueTypes, InputDatepickerValueWithId } from './models/input-datepicker.model';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class InputDatepickerComponent implements ControlValueAccessor, OnChanges, AfterViewInit {
|
|
8
9
|
dt: any;
|
|
@@ -39,8 +40,8 @@ export declare class InputDatepickerComponent implements ControlValueAccessor, O
|
|
|
39
40
|
checkInvalid: true | false | null;
|
|
40
41
|
isShowMessages: boolean;
|
|
41
42
|
dateInput: ElementRef;
|
|
42
|
-
changed: EventEmitter<
|
|
43
|
-
modelChange: EventEmitter<
|
|
43
|
+
changed: EventEmitter<InputDatepickerValueTypes>;
|
|
44
|
+
modelChange: EventEmitter<InputDatepickerValueWithId>;
|
|
44
45
|
constructor();
|
|
45
46
|
ngAfterViewInit(): void;
|
|
46
47
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -58,13 +59,13 @@ export declare class InputDatepickerComponent implements ControlValueAccessor, O
|
|
|
58
59
|
updateDateValue(dateInput: HTMLInputElement): void;
|
|
59
60
|
clickToInput(input: HTMLInputElement): void;
|
|
60
61
|
private checkingInvalid;
|
|
61
|
-
writeValue(outsideValue:
|
|
62
|
+
writeValue(outsideValue: InputDatepickerValueTypes): void;
|
|
62
63
|
private onChange;
|
|
63
64
|
private onTouched;
|
|
64
65
|
registerOnChange(fn: any): void;
|
|
65
66
|
registerOnTouched(fn: () => {}): void;
|
|
66
67
|
setDisabledState(isDisabled: boolean): void;
|
|
67
|
-
updateValue(insideValue:
|
|
68
|
+
updateValue(insideValue: InputDatepickerValueTypes): void;
|
|
68
69
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputDatepickerComponent, never>;
|
|
69
70
|
static ɵcmp: i0.ɵɵComponentDeclaration<InputDatepickerComponent, "mrx-input-datepicker", never, { "fields": "fields"; "size": "size"; "format": "format"; "locale": "locale"; "customClasses": "customClasses"; "dateLabel": "dateLabel"; "timeLabel": "timeLabel"; "datePlaceholder": "datePlaceholder"; "placeholder": "placeholder"; "disabled": "disabled"; "readonly": "readonly"; "required": "required"; "timepicker": "timepicker"; "minDate": "minDate"; "maxDate": "maxDate"; "inline": "inline"; "closable": "closable"; "leadZeroDateTime": "leadZeroDateTime"; "mask": "mask"; "container": "container"; "validationType": "validationType"; "disableValidation": "disableValidation"; "invalid": "invalid"; "invalidMessage": "invalidMessage"; "checkInvalid": "checkInvalid"; "isShowMessages": "isShowMessages"; }, { "changed": "changed"; "modelChange": "modelChange"; }, never, never>;
|
|
70
71
|
}
|
|
@@ -4,9 +4,4 @@ export declare enum InputDateSizesEnum {
|
|
|
4
4
|
'large' = "mrx-input-date-lg"
|
|
5
5
|
}
|
|
6
6
|
export declare type InputDateSizesTypes = 'small' | 'medium' | 'large';
|
|
7
|
-
export declare type InputDateTimeValueTypes = string;
|
|
8
|
-
export interface InputDateTimeValueWithId {
|
|
9
|
-
value: InputDateTimeValueTypes;
|
|
10
|
-
id: string;
|
|
11
|
-
}
|
|
12
7
|
export declare type InputDateTimeValidation = 'default' | 'double';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { IconButtonTypeTypes, IconButtonSizeTypes, IconButtonStateTypes } from './icon-button.enum';
|
|
3
|
+
import { ConnectedPositionVariantsType } from '../cdk-tooltip/constants';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class IconButtonComponent {
|
|
5
6
|
size: IconButtonSizeTypes;
|
|
@@ -8,6 +9,8 @@ export declare class IconButtonComponent {
|
|
|
8
9
|
iconClass: string;
|
|
9
10
|
disabled: boolean;
|
|
10
11
|
tooltip: string;
|
|
12
|
+
tooltipPosition: ConnectedPositionVariantsType;
|
|
13
|
+
tooltipMaxWidth: number | null;
|
|
11
14
|
isActive: boolean | null | undefined;
|
|
12
15
|
customClasses: string;
|
|
13
16
|
mrxClick: EventEmitter<MouseEvent>;
|
|
@@ -15,5 +18,5 @@ export declare class IconButtonComponent {
|
|
|
15
18
|
get getClasses(): string;
|
|
16
19
|
buttonClick($event: MouseEvent): void;
|
|
17
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<IconButtonComponent, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<IconButtonComponent, "mrx-icon-button", never, { "size": "size"; "state": "state"; "type": "type"; "iconClass": "iconClass"; "disabled": "disabled"; "tooltip": "tooltip"; "isActive": "isActive"; "customClasses": "customClasses"; }, { "mrxClick": "mrxClick"; }, never, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IconButtonComponent, "mrx-icon-button", never, { "size": "size"; "state": "state"; "type": "type"; "iconClass": "iconClass"; "disabled": "disabled"; "tooltip": "tooltip"; "tooltipPosition": "tooltipPosition"; "tooltipMaxWidth": "tooltipMaxWidth"; "isActive": "isActive"; "customClasses": "customClasses"; }, { "mrxClick": "mrxClick"; }, never, never>;
|
|
19
22
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -97,14 +97,17 @@ export * from './lib/components/form/input-search/input-search.component';
|
|
|
97
97
|
export * from './lib/components/form/input-search/input-search.enum';
|
|
98
98
|
export * from './lib/components/form/input-datepicker/input-datepicker.module';
|
|
99
99
|
export * from './lib/components/form/input-datepicker/input-datepicker.component';
|
|
100
|
+
export * from './lib/components/form/input-datepicker/models/input-datepicker.model';
|
|
100
101
|
export * from './lib/components/form/input-datepicker/input-datepicker.enum';
|
|
101
102
|
export * from './lib/components/form/input-date-time/input-date-time.module';
|
|
102
103
|
export * from './lib/components/form/input-date-time/input-date-time.component';
|
|
104
|
+
export * from './lib/components/form/input-date-time/models/input-date-time.model';
|
|
103
105
|
export * from './lib/components/form/input-date-time/enum/timezone';
|
|
104
106
|
export * from './lib/components/form/input-timepicker/input-timepicker.module';
|
|
105
107
|
export * from './lib/components/form/input-timepicker/input-timepicker.component';
|
|
106
108
|
export * from './lib/components/form/editor/editor.module';
|
|
107
109
|
export * from './lib/components/form/editor/editor.component';
|
|
110
|
+
export * from './lib/components/form/editor/editor.enum';
|
|
108
111
|
export * from './lib/components/form/editor/models/toolbar.model';
|
|
109
112
|
export * from './lib/components/form/document-editor/document-editor.module';
|
|
110
113
|
export * from './lib/components/form/document-editor/document-editor.component';
|