@sumaris-net/ngx-components 2.3.6 → 2.3.7-rc1
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/src/app/shared/dates.mjs +2 -2
- package/esm2020/src/app/shared/material/datetime/material.date.mjs +6 -5
- package/esm2020/src/app/shared/material/datetime/material.dateshort.mjs +61 -41
- package/esm2020/src/app/shared/material/datetime/material.datetime.mjs +8 -5
- package/fesm2015/sumaris-net.ngx-components.mjs +73 -48
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +73 -48
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/shared/material/datetime/material.dateshort.d.ts +8 -6
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@ import { TranslateService } from '@ngx-translate/core';
|
|
|
4
4
|
import { Moment } from 'moment/moment';
|
|
5
5
|
import { InputElement } from '../../inputs';
|
|
6
6
|
import { FloatLabelType, MatFormFieldAppearance } from '@angular/material/form-field';
|
|
7
|
-
import { MatDatepicker } from '@angular/material/datepicker';
|
|
7
|
+
import { MatDatepicker, MatDatepickerInputEvent } from '@angular/material/datepicker';
|
|
8
8
|
import { DateAdapter } from '@angular/material/core';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
export declare class MatDateShort implements OnInit, ControlValueAccessor, InputElement {
|
|
@@ -36,10 +36,10 @@ export declare class MatDateShort implements OnInit, ControlValueAccessor, Input
|
|
|
36
36
|
required: boolean;
|
|
37
37
|
compact: boolean;
|
|
38
38
|
placeholderChar: string;
|
|
39
|
-
set tabindex(value: number);
|
|
40
|
-
get tabindex(): number;
|
|
41
39
|
startDate: Date;
|
|
42
40
|
clearable: boolean;
|
|
41
|
+
set tabindex(value: number);
|
|
42
|
+
get tabindex(): number;
|
|
43
43
|
datePicker1: MatDatepicker<Moment>;
|
|
44
44
|
datePicker2: MatDatepicker<Moment>;
|
|
45
45
|
matInputs: QueryList<ElementRef>;
|
|
@@ -50,10 +50,12 @@ export declare class MatDateShort implements OnInit, ControlValueAccessor, Input
|
|
|
50
50
|
registerOnChange(fn: any): void;
|
|
51
51
|
registerOnTouched(fn: any): void;
|
|
52
52
|
setDisabledState(isDisabled: boolean): void;
|
|
53
|
-
|
|
53
|
+
protected _onDatePickerChange(event: MatDatepickerInputEvent<Moment>): void;
|
|
54
54
|
private updatePattern;
|
|
55
55
|
private onFormChange;
|
|
56
|
-
|
|
56
|
+
protected _checkIfTouched(opts?: {
|
|
57
|
+
emitEvent?: boolean;
|
|
58
|
+
}): void;
|
|
57
59
|
openDatePickerIfMobile(event: Event, datePicker?: MatDatepicker<any>): Promise<void>;
|
|
58
60
|
openDatePicker(event?: Event, datePicker?: MatDatepicker<any>): void;
|
|
59
61
|
closeDatePicker(eventData: any, matDatepicker?: any): void;
|
|
@@ -63,5 +65,5 @@ export declare class MatDateShort implements OnInit, ControlValueAccessor, Input
|
|
|
63
65
|
protected updateTabIndex(): void;
|
|
64
66
|
protected markForCheck(): void;
|
|
65
67
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatDateShort, [null, null, null, null, { optional: true; }]>;
|
|
66
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatDateShort, "mat-date-short-field", never, { "mobile": "mobile"; "disabled": "disabled"; "formControl": "formControl"; "formControlName": "formControlName"; "placeholder": "placeholder"; "floatLabel": "floatLabel"; "appearance": "appearance"; "readonly": "readonly"; "required": "required"; "compact": "compact"; "placeholderChar": "placeholderChar"; "
|
|
68
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatDateShort, "mat-date-short-field", never, { "mobile": "mobile"; "disabled": "disabled"; "formControl": "formControl"; "formControlName": "formControlName"; "placeholder": "placeholder"; "floatLabel": "floatLabel"; "appearance": "appearance"; "readonly": "readonly"; "required": "required"; "compact": "compact"; "placeholderChar": "placeholderChar"; "startDate": "startDate"; "clearable": "clearable"; "tabindex": "tabindex"; }, {}, never, ["[matPrefix]", "mat-error", "[matPrefix]", "[matSuffix]"], false>;
|
|
67
69
|
}
|