@sumaris-net/ngx-components 4.0.0-rc1 → 4.0.0-rc3
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/src/app/core/account/account.page.mjs +3 -1
- package/esm2022/src/app/shared/form/field.component.mjs +1 -1
- package/esm2022/src/app/shared/material/datetime/material.datetime.mjs +36 -8
- package/esm2022/src/app/shared/material/datetime/testing/mat-date-time.test.mjs +11 -5
- package/esm2022/src/app/shared/material/numpad/testing/numpad.test.mjs +1 -1
- package/fesm2022/sumaris-net.ngx-components.mjs +47 -14
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/shared/inputs.d.ts +1 -1
- package/src/app/shared/material/datetime/material.datetime.d.ts +11 -4
- package/src/theme/_material.scss +8 -0
- package/src/theme/_ngx-components.table.scss +4 -2
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@ export interface InputElement extends FocusableElement {
|
|
|
16
16
|
}
|
|
17
17
|
export declare function isInputElement(object: any): object is InputElement;
|
|
18
18
|
export declare function asInputElement(object: ElementRef): InputElement | undefined;
|
|
19
|
-
export declare function tabindexComparator(a: InputElement, b: InputElement):
|
|
19
|
+
export declare function tabindexComparator(a: InputElement, b: InputElement): 0 | 1 | -1;
|
|
20
20
|
export interface CanGainFocusOptions {
|
|
21
21
|
minTabindex?: number;
|
|
22
22
|
maxTabindex?: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AfterViewInit, ChangeDetectorRef, ElementRef, OnDestroy, OnInit, QueryList } from '@angular/core';
|
|
2
|
-
import { MatFormFieldAppearance } from '@angular/material/form-field';
|
|
2
|
+
import { MatError, MatFormFieldAppearance, MatFormFieldDefaultOptions, SubscriptSizing } from '@angular/material/form-field';
|
|
3
3
|
import { ControlValueAccessor, FormGroupDirective, UntypedFormBuilder, UntypedFormControl } from '@angular/forms';
|
|
4
4
|
import { TranslateService } from '@ngx-translate/core';
|
|
5
5
|
import { Moment } from 'moment';
|
|
@@ -25,6 +25,7 @@ export declare class MatDateTime implements OnInit, AfterViewInit, OnDestroy, Co
|
|
|
25
25
|
private formBuilder;
|
|
26
26
|
private cd;
|
|
27
27
|
private formGroupDir;
|
|
28
|
+
private _defaults?;
|
|
28
29
|
private _onChangeCallback;
|
|
29
30
|
private _onTouchedCallback;
|
|
30
31
|
private _subscription;
|
|
@@ -36,6 +37,8 @@ export declare class MatDateTime implements OnInit, AfterViewInit, OnDestroy, Co
|
|
|
36
37
|
private _formControl;
|
|
37
38
|
private _controlName;
|
|
38
39
|
private _required;
|
|
40
|
+
protected _subscriptSizing: SubscriptSizing | null;
|
|
41
|
+
protected _subscriptAnimationState: string;
|
|
39
42
|
dayControl: UntypedFormControl;
|
|
40
43
|
hourControl: UntypedFormControl;
|
|
41
44
|
displayPattern: string;
|
|
@@ -43,6 +46,8 @@ export declare class MatDateTime implements OnInit, AfterViewInit, OnDestroy, Co
|
|
|
43
46
|
locale: string;
|
|
44
47
|
readonly dayMask: MaskitoMask;
|
|
45
48
|
readonly hourMask: MaskitoMask;
|
|
49
|
+
get subscriptSizing(): SubscriptSizing;
|
|
50
|
+
set subscriptSizing(value: SubscriptSizing);
|
|
46
51
|
set formControl(value: UntypedFormControl);
|
|
47
52
|
get formControl(): UntypedFormControl;
|
|
48
53
|
set formControlName(value: string);
|
|
@@ -68,7 +73,9 @@ export declare class MatDateTime implements OnInit, AfterViewInit, OnDestroy, Co
|
|
|
68
73
|
datePicker: MatDatepicker<Moment>;
|
|
69
74
|
timePicker: NgxTimePicker;
|
|
70
75
|
matInputs: QueryList<ElementRef>;
|
|
71
|
-
|
|
76
|
+
matError: MatError;
|
|
77
|
+
constructor(dateAdapter: MomentDateAdapter, translate: TranslateService, formBuilder: UntypedFormBuilder, cd: ChangeDetectorRef, formGroupDir: FormGroupDirective, _defaults?: MatFormFieldDefaultOptions);
|
|
78
|
+
_getDisplayedMessages(): 'error' | 'hint';
|
|
72
79
|
ngOnInit(): void;
|
|
73
80
|
ngAfterViewInit(): void;
|
|
74
81
|
ngOnDestroy(): void;
|
|
@@ -96,7 +103,7 @@ export declare class MatDateTime implements OnInit, AfterViewInit, OnDestroy, Co
|
|
|
96
103
|
private markAsTouched;
|
|
97
104
|
private markAsDirty;
|
|
98
105
|
private markForCheck;
|
|
99
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatDateTime, [null, null, null, null, { optional: true; }]>;
|
|
100
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatDateTime, "mat-date-time-field", never, { "formControl": { "alias": "formControl"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "required": { "alias": "required"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "mobile": { "alias": "mobile"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "placeholderChar": { "alias": "placeholderChar"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "startDate": { "alias": "startDate"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "datePickerFilter": { "alias": "datePickerFilter"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; }, {},
|
|
106
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatDateTime, [null, null, null, null, { optional: true; }, null]>;
|
|
107
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatDateTime, "mat-date-time-field", never, { "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "required": { "alias": "required"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "mobile": { "alias": "mobile"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "placeholderChar": { "alias": "placeholderChar"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "startDate": { "alias": "startDate"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "datePickerFilter": { "alias": "datePickerFilter"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; }, {}, ["matError"], ["mat-error", "mat-hint", "[matPrefix]"], false, never>;
|
|
101
108
|
}
|
|
102
109
|
export {};
|
package/src/theme/_material.scss
CHANGED
|
@@ -125,6 +125,13 @@ mat-icon[slot] {
|
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
|
|
128
|
+
.mat-mdc-form-field {
|
|
129
|
+
--mat-form-field-container-text-size: 14px;
|
|
130
|
+
--mdc-filled-text-field-label-text-size: var(--mat-form-field-container-text-size);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
// Form Fields
|
|
128
135
|
.mat-mdc-form-field-errors {
|
|
129
136
|
margin-top: -20px;
|
|
130
137
|
|
|
@@ -144,3 +151,4 @@ mat-icon[slot] {
|
|
|
144
151
|
}
|
|
145
152
|
}
|
|
146
153
|
}
|
|
154
|
+
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
--mat-table-row-item-label-text-tracking: 0.5px;
|
|
23
23
|
--mat-form-field-container-text-tracking: 0.5px;
|
|
24
24
|
--mdc-typography-body1-letter-spacing: 0.0178571429em;
|
|
25
|
-
--mat-table-row-item-label-text-size:
|
|
25
|
+
--mat-table-row-item-label-text-size: 14px;
|
|
26
26
|
|
|
27
27
|
.mat-mdc-header-cell {
|
|
28
28
|
color: var(--ion-color-primary);
|
|
@@ -318,9 +318,11 @@
|
|
|
318
318
|
width: 100%;
|
|
319
319
|
white-space: nowrap;
|
|
320
320
|
overflow: inherit;
|
|
321
|
-
|
|
321
|
+
|
|
322
322
|
padding-top: var(--mat-cell-padding-top) !important;
|
|
323
|
+
padding-right: 0;
|
|
323
324
|
padding-bottom: 0;
|
|
325
|
+
padding-left: 0;
|
|
324
326
|
|
|
325
327
|
.mat-mdc-input-element,
|
|
326
328
|
input {
|