@sumaris-net/ngx-components 2.4.17 → 2.4.18
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/doc/changelog.md +3 -0
- package/esm2020/src/app/core/form/entity/entity-editor.class.mjs +1 -1
- package/esm2020/src/app/shared/material/datetime/material.date.mjs +2 -14
- package/esm2020/src/app/shared/material/datetime/material.dateshort.mjs +49 -49
- package/esm2020/src/app/shared/material/datetime/testing/mat-dateshort.test.mjs +3 -3
- package/fesm2015/sumaris-net.ngx-components.mjs +50 -64
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +47 -59
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/shared/material/datetime/material.date.d.ts +1 -1
- package/src/app/shared/material/datetime/material.dateshort.d.ts +2 -2
- package/src/theme/_ngx-components.scss +11 -0
package/package.json
CHANGED
|
@@ -58,7 +58,7 @@ export declare class MatDate implements OnInit, AfterViewInit, OnDestroy, Contro
|
|
|
58
58
|
focus(): void;
|
|
59
59
|
clear(): void;
|
|
60
60
|
protected _onDatePickerChange(event: MatDatepickerInputEvent<Moment>): void;
|
|
61
|
-
protected _openDatePickerIfMobile(event: Event):
|
|
61
|
+
protected _openDatePickerIfMobile(event: Event): void;
|
|
62
62
|
protected _checkIfTouched(opts?: {
|
|
63
63
|
emitEvent?: boolean;
|
|
64
64
|
}): void;
|
|
@@ -57,11 +57,11 @@ export declare class MatDateShort implements OnInit, ControlValueAccessor, Input
|
|
|
57
57
|
focus(): void;
|
|
58
58
|
clear(): void;
|
|
59
59
|
protected _onDatePickerChange(event: MatDatepickerInputEvent<Moment>): void;
|
|
60
|
+
protected _openDatePickerIfMobile(event: Event): void;
|
|
60
61
|
protected _checkIfTouched(opts?: {
|
|
61
62
|
emitEvent?: boolean;
|
|
62
63
|
}): void;
|
|
63
|
-
protected
|
|
64
|
-
protected _closeDatePicker(eventData: any): void;
|
|
64
|
+
protected _closeDatePicker(value: Moment): void;
|
|
65
65
|
protected _preventEvent(event: Event): void;
|
|
66
66
|
private updatePattern;
|
|
67
67
|
private onFormChange;
|
|
@@ -254,6 +254,17 @@ mat-date-time-field {
|
|
|
254
254
|
}
|
|
255
255
|
}
|
|
256
256
|
|
|
257
|
+
// --- mat-date-short-field
|
|
258
|
+
mat-calendar.mat-date-short-panel {
|
|
259
|
+
// Hide some buttons (e.g. to change the period)
|
|
260
|
+
// and the month view
|
|
261
|
+
.mat-calendar-period-button,
|
|
262
|
+
mat-year-view {
|
|
263
|
+
visibility: hidden;
|
|
264
|
+
display: none;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
|
|
257
268
|
@media screen and (min-width: $screen-sm) {
|
|
258
269
|
form.form-container {
|
|
259
270
|
ion-grid {
|