@colijnit/corecomponents_v12 262.1.5 → 262.1.6
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.
|
@@ -8158,6 +8158,7 @@ class InputDatePickerComponent extends BaseInputDatePickerDirective {
|
|
|
8158
8158
|
}
|
|
8159
8159
|
handleDateSelected(date) {
|
|
8160
8160
|
this.setModel(date);
|
|
8161
|
+
this.markAsUserTouched();
|
|
8161
8162
|
if (this.closeAfterDateSelection || !date) {
|
|
8162
8163
|
this.toggleCalendar(false);
|
|
8163
8164
|
}
|
|
@@ -8185,6 +8186,7 @@ class InputDatePickerComponent extends BaseInputDatePickerDirective {
|
|
|
8185
8186
|
const [year, month, day] = this.modelAsString.split('-').map(Number);
|
|
8186
8187
|
const date = new Date(year, month - 1, day);
|
|
8187
8188
|
this.setModel(date);
|
|
8189
|
+
this.markAsUserTouched();
|
|
8188
8190
|
}
|
|
8189
8191
|
}
|
|
8190
8192
|
finalize() {
|
|
@@ -8252,7 +8254,8 @@ class InputDatePickerComponent extends BaseInputDatePickerDirective {
|
|
|
8252
8254
|
(keydown.tab)="finalizeDate()"
|
|
8253
8255
|
(blur)="finalizeDate()"
|
|
8254
8256
|
></co-input-text>
|
|
8255
|
-
|
|
8257
|
+
<input type="hidden" [ngModel]="model">
|
|
8258
|
+
`, isInline: true, dependencies: [{ kind: "component", type: InputTextComponent, selector: "co-input-text", inputs: ["useContent", "placeholder", "align", "type", "formatPipe", "min", "max", "pattern", "digitsOnly", "excludePlusMinus", "showClearButton", "keyDownWhiteList", "showPlaceholderOnFocus", "leftIcon", "rightIcon", "leftIconData", "rightIconData", "selectOnFocus", "emptyPlace", "firstDayOfWeek", "noStyle", "hideArrowButtons", "model"], outputs: ["leftIconClick", "leftIconMouseDown", "leftIconMouseUp", "rightIconClick", "rightIconMouseDown", "rightIconMouseUp", "clearIconClick", "isFocused"] }, { kind: "directive", type: ClickOutsideDirective, selector: "[clickOutside]", inputs: ["clickOutside", "alwaysTrigger"], outputs: ["clickOutside"], exportAs: ["clickOutside"] }, { kind: "directive", type: OverlayParentDirective, selector: "[overlayParent]", exportAs: ["overlayParent"] }, { kind: "directive", type: i5.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
8256
8259
|
}
|
|
8257
8260
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InputDatePickerComponent, decorators: [{
|
|
8258
8261
|
type: Component,
|
|
@@ -8280,6 +8283,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
8280
8283
|
(keydown.tab)="finalizeDate()"
|
|
8281
8284
|
(blur)="finalizeDate()"
|
|
8282
8285
|
></co-input-text>
|
|
8286
|
+
<input type="hidden" [ngModel]="model">
|
|
8283
8287
|
`,
|
|
8284
8288
|
providers: [
|
|
8285
8289
|
OverlayService, {
|
|
@@ -8562,13 +8566,15 @@ class InputDatePickerModule {
|
|
|
8562
8566
|
CalendarModule,
|
|
8563
8567
|
ClickoutsideModule,
|
|
8564
8568
|
OverlayModule,
|
|
8565
|
-
ReactiveFormsModule
|
|
8569
|
+
ReactiveFormsModule,
|
|
8570
|
+
FormsModule], exports: [InputDatePickerComponent] });
|
|
8566
8571
|
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InputDatePickerModule, imports: [CommonModule,
|
|
8567
8572
|
InputTextModule,
|
|
8568
8573
|
CalendarModule,
|
|
8569
8574
|
ClickoutsideModule,
|
|
8570
8575
|
OverlayModule,
|
|
8571
|
-
ReactiveFormsModule
|
|
8576
|
+
ReactiveFormsModule,
|
|
8577
|
+
FormsModule] });
|
|
8572
8578
|
}
|
|
8573
8579
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: InputDatePickerModule, decorators: [{
|
|
8574
8580
|
type: NgModule,
|
|
@@ -8579,7 +8585,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
8579
8585
|
CalendarModule,
|
|
8580
8586
|
ClickoutsideModule,
|
|
8581
8587
|
OverlayModule,
|
|
8582
|
-
ReactiveFormsModule
|
|
8588
|
+
ReactiveFormsModule,
|
|
8589
|
+
FormsModule
|
|
8583
8590
|
],
|
|
8584
8591
|
schemas: [
|
|
8585
8592
|
NO_ERRORS_SCHEMA
|
|
@@ -12111,6 +12118,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
12111
12118
|
|
|
12112
12119
|
class SimpleGridCellComponent {
|
|
12113
12120
|
_changeDetector;
|
|
12121
|
+
_injector;
|
|
12122
|
+
_formComponent;
|
|
12114
12123
|
get editMode() {
|
|
12115
12124
|
return this._editMode;
|
|
12116
12125
|
}
|
|
@@ -12138,6 +12147,7 @@ class SimpleGridCellComponent {
|
|
|
12138
12147
|
}
|
|
12139
12148
|
column;
|
|
12140
12149
|
row;
|
|
12150
|
+
columnInjector;
|
|
12141
12151
|
_editMode = false;
|
|
12142
12152
|
set fieldEditMode(value) {
|
|
12143
12153
|
this._fieldEditMode = value;
|
|
@@ -12160,8 +12170,18 @@ class SimpleGridCellComponent {
|
|
|
12160
12170
|
_editTemplate;
|
|
12161
12171
|
_template;
|
|
12162
12172
|
_inputTemplate;
|
|
12163
|
-
constructor(_changeDetector) {
|
|
12173
|
+
constructor(_changeDetector, _injector, _formComponent) {
|
|
12164
12174
|
this._changeDetector = _changeDetector;
|
|
12175
|
+
this._injector = _injector;
|
|
12176
|
+
this._formComponent = _formComponent;
|
|
12177
|
+
}
|
|
12178
|
+
ngOnInit() {
|
|
12179
|
+
this.columnInjector = Injector.create({
|
|
12180
|
+
parent: this._injector,
|
|
12181
|
+
providers: [
|
|
12182
|
+
{ provide: FormComponent, useValue: this._formComponent },
|
|
12183
|
+
],
|
|
12184
|
+
});
|
|
12165
12185
|
}
|
|
12166
12186
|
_setFocusComponent() {
|
|
12167
12187
|
if (this._editMode && this.fieldEditMode) {
|
|
@@ -12230,13 +12250,14 @@ class SimpleGridCellComponent {
|
|
|
12230
12250
|
_detectChanges() {
|
|
12231
12251
|
this._changeDetector.detectChanges();
|
|
12232
12252
|
}
|
|
12233
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SimpleGridCellComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
12253
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: SimpleGridCellComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.Injector }, { token: FormComponent, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
12234
12254
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: SimpleGridCellComponent, isStandalone: false, selector: "co-simple-grid-cell", inputs: { editMode: "editMode", column: "column", row: "row", fieldEditMode: "fieldEditMode" }, outputs: { cellClick: "cellClick" }, host: { listeners: { "click": "handleClick($event)" }, properties: { "class.co-simple-grid-cell": "this.showClass" } }, viewQueries: [{ propertyName: "editTemplateContent", first: true, predicate: ["editTemplate"], descendants: true, read: BaseInputComponent }, { propertyName: "noEditTemplateContent", first: true, predicate: ["noEditTemplate"], descendants: true }, { propertyName: "noTemplateContent", first: true, predicate: ["noTemplate"], descendants: true }], ngImport: i0, template: `
|
|
12235
12255
|
<div class="simple-grid-column-cell-value" [ngClass]="column.textAlign ? column.textAlign : defaultTextAlign">
|
|
12236
12256
|
<ng-container *ngIf="editMode; else noInlineEdit">
|
|
12237
12257
|
<div class="simple-grid-column-cell-field">
|
|
12238
12258
|
<ng-container #editTemplate *ngIf="column.editTemplate; else noEditTemplate"
|
|
12239
12259
|
[ngTemplateOutlet]="column.editTemplate"
|
|
12260
|
+
[ngTemplateOutletInjector]="columnInjector"
|
|
12240
12261
|
[ngTemplateOutletContext]="{value: row[column.field], row: row}"></ng-container>
|
|
12241
12262
|
<ng-template #noEditTemplate>
|
|
12242
12263
|
<ng-container *ngIf="column.template; else noTemplate">
|
|
@@ -12273,6 +12294,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
12273
12294
|
<div class="simple-grid-column-cell-field">
|
|
12274
12295
|
<ng-container #editTemplate *ngIf="column.editTemplate; else noEditTemplate"
|
|
12275
12296
|
[ngTemplateOutlet]="column.editTemplate"
|
|
12297
|
+
[ngTemplateOutletInjector]="columnInjector"
|
|
12276
12298
|
[ngTemplateOutletContext]="{value: row[column.field], row: row}"></ng-container>
|
|
12277
12299
|
<ng-template #noEditTemplate>
|
|
12278
12300
|
<ng-container *ngIf="column.template; else noTemplate">
|
|
@@ -12301,7 +12323,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
12301
12323
|
encapsulation: ViewEncapsulation.None,
|
|
12302
12324
|
standalone: false
|
|
12303
12325
|
}]
|
|
12304
|
-
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }
|
|
12326
|
+
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.Injector }, { type: FormComponent, decorators: [{
|
|
12327
|
+
type: Optional
|
|
12328
|
+
}] }], propDecorators: { editMode: [{
|
|
12305
12329
|
type: Input
|
|
12306
12330
|
}], editTemplateContent: [{
|
|
12307
12331
|
type: ViewChild,
|
|
@@ -12864,7 +12888,6 @@ class SimpleGridComponent extends BaseSimpleGridComponent {
|
|
|
12864
12888
|
return this._newRow;
|
|
12865
12889
|
}
|
|
12866
12890
|
async prepareDataRow(row, index) {
|
|
12867
|
-
console.log('Row changes, rechecking rows for classes');
|
|
12868
12891
|
await this.isRowDisabled(row, index);
|
|
12869
12892
|
await this.doesRowHaveConditionalClasses(row, index);
|
|
12870
12893
|
}
|