osl-base-extended 2.0.9 → 2.0.11
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.
|
@@ -26,7 +26,6 @@ import { MatMenuModule } from '@angular/material/menu';
|
|
|
26
26
|
import { ScrollingModule } from '@angular/cdk/scrolling';
|
|
27
27
|
import * as i3$1 from '@angular/cdk/drag-drop';
|
|
28
28
|
import { moveItemInArray, DragDropModule } from '@angular/cdk/drag-drop';
|
|
29
|
-
import { NativeDateAdapter, DateAdapter, MAT_DATE_FORMATS } from '@angular/material/core';
|
|
30
29
|
|
|
31
30
|
class OslBaseExtended {
|
|
32
31
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: OslBaseExtended, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -1150,6 +1149,11 @@ class Oslinput {
|
|
|
1150
1149
|
this.modelChange.emit(this.model);
|
|
1151
1150
|
return;
|
|
1152
1151
|
}
|
|
1152
|
+
if (this.type === 'number') {
|
|
1153
|
+
this.model = value === '' ? null : value;
|
|
1154
|
+
this.modelChange.emit(this.model);
|
|
1155
|
+
return;
|
|
1156
|
+
}
|
|
1153
1157
|
if (this.isCapitalize) {
|
|
1154
1158
|
value = typeof value == 'string' ? value?.toUpperCase() : value;
|
|
1155
1159
|
}
|
|
@@ -5116,19 +5120,6 @@ class FormStructureModule {
|
|
|
5116
5120
|
OslSearchbar, OslAutocompleteLister, OslReportGrid, OslReportForm] });
|
|
5117
5121
|
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: FormStructureModule, providers: [
|
|
5118
5122
|
{ provide: AUTOCOMPLETE_LISTER_COMPONENT, useValue: OslAutocompleteLister },
|
|
5119
|
-
{ provide: DateAdapter, useClass: NativeDateAdapter },
|
|
5120
|
-
{
|
|
5121
|
-
provide: MAT_DATE_FORMATS,
|
|
5122
|
-
useValue: {
|
|
5123
|
-
parse: { dateInput: null },
|
|
5124
|
-
display: {
|
|
5125
|
-
dateInput: { year: 'numeric', month: '2-digit', day: '2-digit', hour: '2-digit', minute: '2-digit' },
|
|
5126
|
-
monthYearLabel: { year: 'numeric', month: 'short' },
|
|
5127
|
-
dateA11yLabel: { year: 'numeric', month: 'long', day: 'numeric' },
|
|
5128
|
-
monthYearA11yLabel: { year: 'numeric', month: 'long' },
|
|
5129
|
-
},
|
|
5130
|
-
},
|
|
5131
|
-
},
|
|
5132
5123
|
], imports: [FormsModule,
|
|
5133
5124
|
ReactiveFormsModule,
|
|
5134
5125
|
MatFormFieldModule,
|
|
@@ -5205,19 +5196,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
5205
5196
|
OslSearchbar, OslAutocompleteLister, OslReportGrid, OslReportForm],
|
|
5206
5197
|
providers: [
|
|
5207
5198
|
{ provide: AUTOCOMPLETE_LISTER_COMPONENT, useValue: OslAutocompleteLister },
|
|
5208
|
-
{ provide: DateAdapter, useClass: NativeDateAdapter },
|
|
5209
|
-
{
|
|
5210
|
-
provide: MAT_DATE_FORMATS,
|
|
5211
|
-
useValue: {
|
|
5212
|
-
parse: { dateInput: null },
|
|
5213
|
-
display: {
|
|
5214
|
-
dateInput: { year: 'numeric', month: '2-digit', day: '2-digit', hour: '2-digit', minute: '2-digit' },
|
|
5215
|
-
monthYearLabel: { year: 'numeric', month: 'short' },
|
|
5216
|
-
dateA11yLabel: { year: 'numeric', month: 'long', day: 'numeric' },
|
|
5217
|
-
monthYearA11yLabel: { year: 'numeric', month: 'long' },
|
|
5218
|
-
},
|
|
5219
|
-
},
|
|
5220
|
-
},
|
|
5221
5199
|
],
|
|
5222
5200
|
}]
|
|
5223
5201
|
}] });
|