@tots/editable-columns 15.0.1 → 16.0.0
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/lib/column-factories/tots-input-column.mjs +18 -0
- package/esm2022/lib/columns/input-column/input-column.component.mjs +107 -0
- package/{esm2020 → esm2022}/lib/components/tots-table-full-group/tots-table-full-group.component.mjs +4 -4
- package/esm2022/lib/editable-columns.module.mjs +68 -0
- package/esm2022/lib/entities/tots-validator.mjs +8 -0
- package/esm2022/public-api.mjs +24 -0
- package/{fesm2020 → fesm2022}/tots-editable-columns.mjs +68 -41
- package/fesm2022/tots-editable-columns.mjs.map +1 -0
- package/lib/column-factories/tots-input-column.d.ts +7 -0
- package/lib/columns/input-column/input-column.component.d.ts +4 -4
- package/lib/components/tots-table-full-group/tots-table-full-group.component.d.ts +1 -1
- package/lib/editable-columns.module.d.ts +1 -1
- package/lib/entities/tots-validator.d.ts +7 -0
- package/package.json +9 -15
- package/public-api.d.ts +8 -0
- package/esm2020/lib/columns/input-column/input-column.component.mjs +0 -107
- package/esm2020/lib/editable-columns.module.mjs +0 -68
- package/esm2020/public-api.mjs +0 -16
- package/fesm2015/tots-editable-columns.mjs +0 -260
- package/fesm2015/tots-editable-columns.mjs.map +0 -1
- package/fesm2020/tots-editable-columns.mjs.map +0 -1
- /package/{esm2020 → esm2022}/tots-editable-columns.mjs +0 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { TotsColumn } from "@tots/table";
|
|
2
|
+
import { InputColumnComponent } from "../columns/input-column/input-column.component";
|
|
3
|
+
export class TotsInputColumn extends TotsColumn {
|
|
4
|
+
constructor(id, fieldKey, validators, title, formGroup, label, placeholder, hint, cssClass, appearance) {
|
|
5
|
+
super(id, InputColumnComponent, fieldKey, title);
|
|
6
|
+
this.extra = {
|
|
7
|
+
group: formGroup,
|
|
8
|
+
validators: validators?.map(v => v.validator),
|
|
9
|
+
errors: validators?.map(v => { return { name: v.name, message: v.message }; }),
|
|
10
|
+
label: label,
|
|
11
|
+
class: cssClass,
|
|
12
|
+
placeholder: placeholder,
|
|
13
|
+
caption: hint,
|
|
14
|
+
appearance: appearance
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG90cy1pbnB1dC1jb2x1bW4uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90b3RzL2VkaXRhYmxlLWNvbHVtbnMvc3JjL2xpYi9jb2x1bW4tZmFjdG9yaWVzL3RvdHMtaW5wdXQtY29sdW1uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxhQUFhLENBQUM7QUFDekMsT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1BQU0sZ0RBQWdELENBQUM7QUFLdEYsTUFBTSxPQUFPLGVBQWdCLFNBQVEsVUFBVTtJQUM5QyxZQUFZLEVBQVMsRUFBRSxRQUF3QixFQUFFLFVBQTJCLEVBQUUsS0FBYSxFQUFFLFNBQW9CLEVBQUUsS0FBYSxFQUFFLFdBQW1CLEVBQUUsSUFBWSxFQUFFLFFBQWdCLEVBQUUsVUFBa0M7UUFDbE4sS0FBSyxDQUFDLEVBQUUsRUFBRSxvQkFBb0IsRUFBRSxRQUFRLEVBQUUsS0FBSyxDQUFDLENBQUM7UUFDakQsSUFBSSxDQUFDLEtBQUssR0FBRztZQUNULEtBQUssRUFBRSxTQUFTO1lBQ2hCLFVBQVUsRUFBRSxVQUFVLEVBQUUsR0FBRyxDQUFDLENBQUMsQ0FBQSxFQUFFLENBQUMsQ0FBQyxDQUFDLFNBQVMsQ0FBQztZQUM1QyxNQUFNLEVBQUUsVUFBVSxFQUFFLEdBQUcsQ0FBQyxDQUFDLENBQUEsRUFBRSxHQUFFLE9B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luZywgY3NzQ2xhc3M/OnN0cmluZywgYXBwZWFyYW5jZT86TWF0Rm9ybUZpZWxkQXBwZWFyYW5jZSkge1xyXG4gICAgICAgIHN1cGVyKGlkLCBJbnB1dENvbHVtbkNvbXBvbmVudCwgZmllbGRLZXksIHRpdGxlKTtcclxuICAgICAgICB0aGlzLmV4dHJhID0ge1xyXG4gICAgICAgICAgICBncm91cDogZm9ybUdyb3VwLFxyXG4gICAgICAgICAgICB2YWxpZGF0b3JzOiB2YWxpZGF0b3JzPy5tYXAodj0+IHYudmFsaWRhdG9yKSxcclxuICAgICAgICAgICAgZXJyb3JzOiB2YWxpZGF0b3JzPy5tYXAodj0+IHtyZXR1cm4ge25hbWU6di5uYW1lLCBtZXNzYWdlOnYubWVzc2FnZX19KSxcclxuICAgICAgICAgICAgbGFiZWw6IGxhYmVsLFxyXG4gICAgICAgICAgICBjbGFzczogY3NzQ2xhc3MsXHJcbiAgICAgICAgICAgIHBsYWNlaG9sZGVyOiBwbGFjZWhvbGRlcixcclxuICAgICAgICAgICAgY2FwdGlvbjogaGludCxcclxuICAgICAgICAgICAgYXBwZWFyYW5jZTogYXBwZWFyYW5jZVxyXG4gICAgICAgIH1cclxuICAgIH1cclxufSJdfQ==
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { FormControl } from '@angular/forms';
|
|
3
|
+
import { TotsBaseColumnComponent, TotsTableHelper } from '@tots/table';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "@angular/common";
|
|
6
|
+
import * as i2 from "@angular/forms";
|
|
7
|
+
import * as i3 from "@angular/material/form-field";
|
|
8
|
+
import * as i4 from "@angular/material/input";
|
|
9
|
+
export class InputColumnComponent extends TotsBaseColumnComponent {
|
|
10
|
+
constructor() {
|
|
11
|
+
super();
|
|
12
|
+
}
|
|
13
|
+
ngOnInit() {
|
|
14
|
+
this.loadInput();
|
|
15
|
+
this.loadForm();
|
|
16
|
+
this.loadChanges();
|
|
17
|
+
}
|
|
18
|
+
loadChanges() {
|
|
19
|
+
this.input.valueChanges
|
|
20
|
+
.subscribe(res => {
|
|
21
|
+
this.onAction.next({ key: 'input-change', item: { field_key: this.getFormKey(), item: this.item, value: res, valid: this.input.valid, index: this.index } });
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
loadForm() {
|
|
25
|
+
if (this.column.extra == undefined || this.column.extra.group == undefined) {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
let group = this.column.extra.group;
|
|
29
|
+
if (group.get(this.getFormKey()) != undefined) {
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
group.addControl(this.getFormKey(), this.input);
|
|
33
|
+
}
|
|
34
|
+
loadInput() {
|
|
35
|
+
let value = TotsTableHelper.getItemValueByKey(this.item, this.column.field_key);
|
|
36
|
+
this.input = new FormControl(value, this.getValidators());
|
|
37
|
+
this.onAction.next({ key: 'input-create', item: { field_key: this.getFormKey(), input: this.input, index: this.index, column: this.column } });
|
|
38
|
+
}
|
|
39
|
+
getFormKey() {
|
|
40
|
+
if (Array.isArray(this.column.field_key)) {
|
|
41
|
+
return this.column.field_key.join('_');
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
return this.column.field_key;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
getValidators() {
|
|
48
|
+
if (this.column.extra && this.column.extra.validators) {
|
|
49
|
+
return this.column.extra.validators;
|
|
50
|
+
}
|
|
51
|
+
return null;
|
|
52
|
+
}
|
|
53
|
+
getErrorMessage() {
|
|
54
|
+
if (!this.column.extra.errors) {
|
|
55
|
+
return '';
|
|
56
|
+
}
|
|
57
|
+
for (const error of this.column.extra.errors) {
|
|
58
|
+
if (this.input.hasError(error.name)) {
|
|
59
|
+
return error.message;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
return '';
|
|
63
|
+
}
|
|
64
|
+
getAppearance() {
|
|
65
|
+
if (this.column.extra && this.column.extra.appearance) {
|
|
66
|
+
return this.column.extra.appearance;
|
|
67
|
+
}
|
|
68
|
+
return 'fill';
|
|
69
|
+
}
|
|
70
|
+
getLabel() {
|
|
71
|
+
if (this.column.extra && this.column.extra.label) {
|
|
72
|
+
return this.column.extra.label;
|
|
73
|
+
}
|
|
74
|
+
return undefined;
|
|
75
|
+
}
|
|
76
|
+
getClass() {
|
|
77
|
+
if (this.column.extra && this.column.extra.class) {
|
|
78
|
+
return this.column.extra.class;
|
|
79
|
+
}
|
|
80
|
+
return '';
|
|
81
|
+
}
|
|
82
|
+
getPlaceholder() {
|
|
83
|
+
if (this.column.extra && this.column.extra.placeholder) {
|
|
84
|
+
return this.column.extra.placeholder;
|
|
85
|
+
}
|
|
86
|
+
return '';
|
|
87
|
+
}
|
|
88
|
+
getCaption() {
|
|
89
|
+
if (this.column.extra && this.column.extra.caption) {
|
|
90
|
+
return this.column.extra.caption;
|
|
91
|
+
}
|
|
92
|
+
return '';
|
|
93
|
+
}
|
|
94
|
+
hasError() {
|
|
95
|
+
return this.input.invalid && (this.input.dirty || this.input.touched);
|
|
96
|
+
}
|
|
97
|
+
getInput() {
|
|
98
|
+
return this.input;
|
|
99
|
+
}
|
|
100
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: InputColumnComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
101
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.11", type: InputColumnComponent, selector: "tots-input-column", usesInheritance: true, ngImport: i0, template: "<mat-form-field class=\"{{getClass()}}\" [appearance]=\"getAppearance()\" (click)=\"$event.stopPropagation()\">\n <mat-label *ngIf=\"getLabel()\"> {{ getLabel() }} </mat-label>\n <input matInput type=\"text\" [formControl]=\"input\" [placeholder]=\"getPlaceholder()\"/>\n <mat-hint *ngIf=\"getCaption()\" [align]=\"'end'\"> {{getCaption()}} </mat-hint>\n <mat-error *ngIf=\"hasError()\">{{getErrorMessage()}}</mat-error>\n</mat-form-field>\n", styles: ["mat-form-field{margin-bottom:0}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.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: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i4.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }] }); }
|
|
102
|
+
}
|
|
103
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: InputColumnComponent, decorators: [{
|
|
104
|
+
type: Component,
|
|
105
|
+
args: [{ selector: 'tots-input-column', template: "<mat-form-field class=\"{{getClass()}}\" [appearance]=\"getAppearance()\" (click)=\"$event.stopPropagation()\">\n <mat-label *ngIf=\"getLabel()\"> {{ getLabel() }} </mat-label>\n <input matInput type=\"text\" [formControl]=\"input\" [placeholder]=\"getPlaceholder()\"/>\n <mat-hint *ngIf=\"getCaption()\" [align]=\"'end'\"> {{getCaption()}} </mat-hint>\n <mat-error *ngIf=\"hasError()\">{{getErrorMessage()}}</mat-error>\n</mat-form-field>\n", styles: ["mat-form-field{margin-bottom:0}\n"] }]
|
|
106
|
+
}], ctorParameters: function () { return []; } });
|
|
107
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQtY29sdW1uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3RvdHMvZWRpdGFibGUtY29sdW1ucy9zcmMvbGliL2NvbHVtbnMvaW5wdXQtY29sdW1uL2lucHV0LWNvbHVtbi5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90b3RzL2VkaXRhYmxlLWNvbHVtbnMvc3JjL2xpYi9jb2x1bW5zL2lucHV0LWNvbHVtbi9pbnB1dC1jb2x1bW4uY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMxQyxPQUFPLEVBQUUsV0FBVyxFQUEwQixNQUFNLGdCQUFnQixDQUFDO0FBRXJFLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxlQUFlLEVBQUUsTUFBTSxhQUFhLENBQUM7Ozs7OztBQU92RSxNQUFNLE9BQU8sb0JBQXFCLFNBQVEsdUJBQXVCO0lBSS9EO1FBQ0UsS0FBSyxFQUFFLENBQUM7SUFDVixDQUFDO0lBRUQsUUFBUTtRQUNOLElBQUksQ0FBQyxTQUFTLEVBQUUsQ0FBQztRQUNqQixJQUFJLENBQUMsUUFBUSxFQUFFLENBQUM7UUFDaEIsSUFBSSxDQUFDLFdBQVcsRUFBRSxDQUFDO0lBQ3JCLENBQUM7SUFFRCxXQUFXO1FBQ1QsSU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IoKVwiLz5cbiAgPG1hdC1oaW50ICpuZ0lmPVwiZ2V0Q2FwdGlvbigpXCIgW2FsaWduXT1cIidlbmQnXCI+IHt7Z2V0Q2FwdGlvbigpfX0gPC9tYXQtaGludD5cbiAgPG1hdC1lcnJvciAqbmdJZj1cImhhc0Vycm9yKClcIj57e2dldEVycm9yTWVzc2FnZSgpfX08L21hdC1lcnJvcj5cbjwvbWF0LWZvcm0tZmllbGQ+XG4iXX0=
|
package/{esm2020 → esm2022}/lib/components/tots-table-full-group/tots-table-full-group.component.mjs
RENAMED
|
@@ -58,10 +58,10 @@ export class TotsTableFullGroupComponent {
|
|
|
58
58
|
return column.field_key;
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: TotsTableFullGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
62
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.11", type: TotsTableFullGroupComponent, selector: "tots-table-full-group", inputs: { config: "config", pageIndex: "pageIndex", pageSize: "pageSize", hasPagination: "hasPagination", messageNotFound: "messageNotFound" }, outputs: { onAction: "onAction" }, viewQueries: [{ propertyName: "tableComp", first: true, predicate: ["tableComp"], descendants: true }], ngImport: i0, template: "<tots-table #tableComp [config]=\"config\" [pageIndex]=\"pageIndex\" [pageSize]=\"pageSize\" [hasPagination]=\"hasPagination\" [messageNotFound]=\"messageNotFound\" (onAction)=\"onTableAction($event)\"></tots-table>\n", styles: [""], dependencies: [{ kind: "component", type: i1.TotsTableComponent, selector: "tots-table", inputs: ["config", "pageIndex", "pageSize", "hasPagination", "messageNotFound"], outputs: ["onAction"] }] }); }
|
|
61
63
|
}
|
|
62
|
-
|
|
63
|
-
TotsTableFullGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.3", type: TotsTableFullGroupComponent, selector: "tots-table-full-group", inputs: { config: "config", pageIndex: "pageIndex", pageSize: "pageSize", hasPagination: "hasPagination", messageNotFound: "messageNotFound" }, outputs: { onAction: "onAction" }, viewQueries: [{ propertyName: "tableComp", first: true, predicate: ["tableComp"], descendants: true }], ngImport: i0, template: "<tots-table #tableComp [config]=\"config\" [pageIndex]=\"pageIndex\" [pageSize]=\"pageSize\" [hasPagination]=\"hasPagination\" [messageNotFound]=\"messageNotFound\" (onAction)=\"onTableAction($event)\"></tots-table>\n", styles: [""], dependencies: [{ kind: "component", type: i1.TotsTableComponent, selector: "tots-table", inputs: ["config", "pageIndex", "pageSize", "hasPagination", "messageNotFound"], outputs: ["onAction"] }] });
|
|
64
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: TotsTableFullGroupComponent, decorators: [{
|
|
64
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: TotsTableFullGroupComponent, decorators: [{
|
|
65
65
|
type: Component,
|
|
66
66
|
args: [{ selector: 'tots-table-full-group', template: "<tots-table #tableComp [config]=\"config\" [pageIndex]=\"pageIndex\" [pageSize]=\"pageSize\" [hasPagination]=\"hasPagination\" [messageNotFound]=\"messageNotFound\" (onAction)=\"onTableAction($event)\"></tots-table>\n" }]
|
|
67
67
|
}], propDecorators: { tableComp: [{
|
|
@@ -80,4 +80,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImpor
|
|
|
80
80
|
}], onAction: [{
|
|
81
81
|
type: Output
|
|
82
82
|
}] } });
|
|
83
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
83
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG90cy10YWJsZS1mdWxsLWdyb3VwLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4u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BbaGFzUGFnaW5hdGlvbl09XCJoYXNQYWdpbmF0aW9uXCIgW21lc3NhZ2VOb3RGb3VuZF09XCJtZXNzYWdlTm90Rm91bmRcIiAob25BY3Rpb24pPVwib25UYWJsZUFjdGlvbigkZXZlbnQpXCI+PC90b3RzLXRhYmxlPlxuIl19
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
4
|
+
/** Angular Material */
|
|
5
|
+
import { MatInputModule } from '@angular/material/input';
|
|
6
|
+
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
7
|
+
/** Tots Libraries */
|
|
8
|
+
import { TotsTableModule } from '@tots/table';
|
|
9
|
+
/** Columns */
|
|
10
|
+
import { InputColumnComponent } from './columns/input-column/input-column.component';
|
|
11
|
+
/** Components */
|
|
12
|
+
import { TotsTableFullGroupComponent } from './components/tots-table-full-group/tots-table-full-group.component';
|
|
13
|
+
import * as i0 from "@angular/core";
|
|
14
|
+
export class TotsEditableColumnsModule {
|
|
15
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: TotsEditableColumnsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
16
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.11", ngImport: i0, type: TotsEditableColumnsModule, declarations: [
|
|
17
|
+
/** Columns */
|
|
18
|
+
InputColumnComponent,
|
|
19
|
+
/** Components */
|
|
20
|
+
TotsTableFullGroupComponent], imports: [CommonModule,
|
|
21
|
+
FormsModule,
|
|
22
|
+
ReactiveFormsModule,
|
|
23
|
+
/** Angular Material */
|
|
24
|
+
MatFormFieldModule,
|
|
25
|
+
MatInputModule,
|
|
26
|
+
/** Tots Libraries */
|
|
27
|
+
TotsTableModule], exports: [
|
|
28
|
+
/** Columns */
|
|
29
|
+
InputColumnComponent,
|
|
30
|
+
/** Components */
|
|
31
|
+
TotsTableFullGroupComponent] }); }
|
|
32
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: TotsEditableColumnsModule, imports: [CommonModule,
|
|
33
|
+
FormsModule,
|
|
34
|
+
ReactiveFormsModule,
|
|
35
|
+
/** Angular Material */
|
|
36
|
+
MatFormFieldModule,
|
|
37
|
+
MatInputModule,
|
|
38
|
+
/** Tots Libraries */
|
|
39
|
+
TotsTableModule] }); }
|
|
40
|
+
}
|
|
41
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: TotsEditableColumnsModule, decorators: [{
|
|
42
|
+
type: NgModule,
|
|
43
|
+
args: [{
|
|
44
|
+
declarations: [
|
|
45
|
+
/** Columns */
|
|
46
|
+
InputColumnComponent,
|
|
47
|
+
/** Components */
|
|
48
|
+
TotsTableFullGroupComponent
|
|
49
|
+
],
|
|
50
|
+
imports: [
|
|
51
|
+
CommonModule,
|
|
52
|
+
FormsModule,
|
|
53
|
+
ReactiveFormsModule,
|
|
54
|
+
/** Angular Material */
|
|
55
|
+
MatFormFieldModule,
|
|
56
|
+
MatInputModule,
|
|
57
|
+
/** Tots Libraries */
|
|
58
|
+
TotsTableModule
|
|
59
|
+
],
|
|
60
|
+
exports: [
|
|
61
|
+
/** Columns */
|
|
62
|
+
InputColumnComponent,
|
|
63
|
+
/** Components */
|
|
64
|
+
TotsTableFullGroupComponent
|
|
65
|
+
]
|
|
66
|
+
}]
|
|
67
|
+
}] });
|
|
68
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWRpdGFibGUtY29sdW1ucy5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy90b3RzL2VkaXRhYmxlLWNvb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HV0Q29sdW1uQ29tcG9uZW50IH0gZnJvbSAnLi9jb2x1bW5zL2lucHV0LWNvbHVtbi9pbnB1dC1jb2x1bW4uY29tcG9uZW50JztcblxuLyoqIENvbXBvbmVudHMgKi9cbmltcG9ydCB7IFRvdHNUYWJsZUZ1bGxHcm91cENvbXBvbmVudCB9IGZyb20gJy4vY29tcG9uZW50cy90b3RzLXRhYmxlLWZ1bGwtZ3JvdXAvdG90cy10YWJsZS1mdWxsLWdyb3VwLmNvbXBvbmVudCc7XG5cblxuXG5cblxuXG5cbkBOZ01vZHVsZSh7XG4gIGRlY2xhcmF0aW9uczogW1xuXG4gICAgLyoqIENvbHVtbnMgKi9cbiAgICBJbnB1dENvbHVtbkNvbXBvbmVudCxcblxuICAgIC8qKiBDb21wb25lbnRzICovXG4gICAgVG90c1RhYmxlRnVsbEdyb3VwQ29tcG9uZW50XG4gIF0sXG4gIGltcG9ydHM6IFtcbiAgICBDb21tb25Nb2R1bGUsXG4gICAgRm9ybXNNb2R1bGUsXG4gICAgUmVhY3RpdmVGb3Jtc01vZHVsZSxcblxuICAgIC8qKiBBbmd1bGFyIE1hdGVyaWFsICovXG4gICAgTWF0Rm9ybUZpZWxkTW9kdWxlLFxuICAgIE1hdElucHV0TW9kdWxlLFxuXG4gICAgLyoqIFRvdHMgTGlicmFyaWVzICovXG4gICAgVG90c1RhYmxlTW9kdWxlXG4gIF0sXG4gIGV4cG9ydHM6IFtcbiAgICAvKiogQ29sdW1ucyAqL1xuICAgIElucHV0Q29sdW1uQ29tcG9uZW50LFxuXG4gICAgLyoqIENvbXBvbmVudHMgKi9cbiAgICBUb3RzVGFibGVGdWxsR3JvdXBDb21wb25lbnRcbiAgXVxufSlcbmV4cG9ydCBjbGFzcyBUb3RzRWRpdGFibGVDb2x1bW5zTW9kdWxlIHsgfVxuIl19
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export class TotsValidator {
|
|
2
|
+
constructor(validator, name, message) {
|
|
3
|
+
this.validator = validator;
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
|
1
|
+
/*
|
|
2
|
+
* Public API Surface of editable-columns
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Entities
|
|
6
|
+
*/
|
|
7
|
+
export * from './lib/entities/tots-validator';
|
|
8
|
+
/**
|
|
9
|
+
* Columns
|
|
10
|
+
*/
|
|
11
|
+
export * from './lib/columns/input-column/input-column.component';
|
|
12
|
+
/**
|
|
13
|
+
* Components
|
|
14
|
+
*/
|
|
15
|
+
export * from './lib/components/tots-table-full-group/tots-table-full-group.component';
|
|
16
|
+
/**
|
|
17
|
+
* Factories
|
|
18
|
+
*/
|
|
19
|
+
export * from './lib/column-factories/tots-input-column';
|
|
20
|
+
/**
|
|
21
|
+
* Modules
|
|
22
|
+
*/
|
|
23
|
+
export * from './lib/editable-columns.module';
|
|
24
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL3RvdHMvZWRpdGFibGUtY29sdW1ucy9zcmMvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVIOztHQUVHO0FBQ0gsY0FBYywrQkFBK0IsQ0FBQztBQUU5Qzs7R0FFRztBQUNILGNBQWMsbURBQW1ELENBQUM7QUFFbEU7O0dBRUc7QUFDSCxjQUFjLHdFQUF3RSxDQUFDO0FBRXZGOztHQUVHO0FBQ0gsY0FBYywwQ0FBMEMsQ0FBQztBQUV6RDs7R0FFRztBQUNILGNBQWMsK0JBQStCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIGVkaXRhYmxlLWNvbHVtbnNcbiAqL1xuXG4vKipcbiAqIEVudGl0aWVzXG4gKi9cbmV4cG9ydCAqIGZyb20gJy4vbGliL2VudGl0aWVzL3RvdHMtdmFsaWRhdG9yJztcblxuLyoqXG4gKiBDb2x1bW5zXG4gKi9cbmV4cG9ydCAqIGZyb20gJy4vbGliL2NvbHVtbnMvaW5wdXQtY29sdW1uL2lucHV0LWNvbHVtbi5jb21wb25lbnQnO1xuXG4vKipcbiAqIENvbXBvbmVudHNcbiAqL1xuZXhwb3J0ICogZnJvbSAnLi9saWIvY29tcG9uZW50cy90b3RzLXRhYmxlLWZ1bGwtZ3JvdXAvdG90cy10YWJsZS1mdWxsLWdyb3VwLmNvbXBvbmVudCc7XG5cbi8qKlxuICogRmFjdG9yaWVzXG4gKi9cbmV4cG9ydCAqIGZyb20gJy4vbGliL2NvbHVtbi1mYWN0b3JpZXMvdG90cy1pbnB1dC1jb2x1bW4nO1xuXG4vKipcbiAqIE1vZHVsZXNcbiAqL1xuZXhwb3J0ICogZnJvbSAnLi9saWIvZWRpdGFibGUtY29sdW1ucy5tb2R1bGUnO1xuIl19
|
|
@@ -3,7 +3,7 @@ import { Component, EventEmitter, ViewChild, Input, Output, NgModule } from '@an
|
|
|
3
3
|
import * as i2 from '@angular/forms';
|
|
4
4
|
import { FormControl, FormArray, FormGroup, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
5
5
|
import * as i1$1 from '@tots/table';
|
|
6
|
-
import { TotsBaseColumnComponent, TotsTableHelper, TotsTableConfig, TotsTableModule } from '@tots/table';
|
|
6
|
+
import { TotsBaseColumnComponent, TotsTableHelper, TotsTableConfig, TotsColumn, TotsTableModule } from '@tots/table';
|
|
7
7
|
import * as i1 from '@angular/common';
|
|
8
8
|
import { CommonModule } from '@angular/common';
|
|
9
9
|
import * as i3 from '@angular/material/form-field';
|
|
@@ -11,7 +11,15 @@ import { MatFormFieldModule } from '@angular/material/form-field';
|
|
|
11
11
|
import * as i4 from '@angular/material/input';
|
|
12
12
|
import { MatInputModule } from '@angular/material/input';
|
|
13
13
|
|
|
14
|
-
class
|
|
14
|
+
class TotsValidator {
|
|
15
|
+
constructor(validator, name, message) {
|
|
16
|
+
this.validator = validator;
|
|
17
|
+
this.name = name;
|
|
18
|
+
this.message = message;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
class InputColumnComponent extends TotsBaseColumnComponent {
|
|
15
23
|
constructor() {
|
|
16
24
|
super();
|
|
17
25
|
}
|
|
@@ -78,9 +86,9 @@ class InputColumn extends TotsBaseColumnComponent {
|
|
|
78
86
|
}
|
|
79
87
|
return undefined;
|
|
80
88
|
}
|
|
81
|
-
|
|
82
|
-
if (this.column.extra && this.column.extra.
|
|
83
|
-
return this.column.extra.
|
|
89
|
+
getClass() {
|
|
90
|
+
if (this.column.extra && this.column.extra.class) {
|
|
91
|
+
return this.column.extra.class;
|
|
84
92
|
}
|
|
85
93
|
return '';
|
|
86
94
|
}
|
|
@@ -102,12 +110,12 @@ class InputColumn extends TotsBaseColumnComponent {
|
|
|
102
110
|
getInput() {
|
|
103
111
|
return this.input;
|
|
104
112
|
}
|
|
113
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: InputColumnComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
114
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.11", type: InputColumnComponent, selector: "tots-input-column", usesInheritance: true, ngImport: i0, template: "<mat-form-field class=\"{{getClass()}}\" [appearance]=\"getAppearance()\" (click)=\"$event.stopPropagation()\">\n <mat-label *ngIf=\"getLabel()\"> {{ getLabel() }} </mat-label>\n <input matInput type=\"text\" [formControl]=\"input\" [placeholder]=\"getPlaceholder()\"/>\n <mat-hint *ngIf=\"getCaption()\" [align]=\"'end'\"> {{getCaption()}} </mat-hint>\n <mat-error *ngIf=\"hasError()\">{{getErrorMessage()}}</mat-error>\n</mat-form-field>\n", styles: ["mat-form-field{margin-bottom:0}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.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: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i4.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }] }); }
|
|
105
115
|
}
|
|
106
|
-
|
|
107
|
-
InputColumn.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.3", type: InputColumn, selector: "tots-input-column", usesInheritance: true, ngImport: i0, template: "<mat-form-field class=\"{{getClasses()}}\" [appearance]=\"getAppearance()\" (click)=\"$event.stopPropagation()\">\n <mat-label *ngIf=\"getLabel()\"> {{ getLabel() }} </mat-label>\n <input matInput type=\"text\" [formControl]=\"input\" [placeholder]=\"getPlaceholder()\"/>\n <mat-hint *ngIf=\"getCaption()\" [align]=\"'end'\"> {{getCaption()}} </mat-hint>\n <mat-error *ngIf=\"hasError()\">{{getErrorMessage()}}</mat-error>\n</mat-form-field>\n", styles: ["mat-form-field{margin-bottom:0}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.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: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i3.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i4.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }] });
|
|
108
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: InputColumn, decorators: [{
|
|
116
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: InputColumnComponent, decorators: [{
|
|
109
117
|
type: Component,
|
|
110
|
-
args: [{ selector: 'tots-input-column', template: "<mat-form-field class=\"{{
|
|
118
|
+
args: [{ selector: 'tots-input-column', template: "<mat-form-field class=\"{{getClass()}}\" [appearance]=\"getAppearance()\" (click)=\"$event.stopPropagation()\">\n <mat-label *ngIf=\"getLabel()\"> {{ getLabel() }} </mat-label>\n <input matInput type=\"text\" [formControl]=\"input\" [placeholder]=\"getPlaceholder()\"/>\n <mat-hint *ngIf=\"getCaption()\" [align]=\"'end'\"> {{getCaption()}} </mat-hint>\n <mat-error *ngIf=\"hasError()\">{{getErrorMessage()}}</mat-error>\n</mat-form-field>\n", styles: ["mat-form-field{margin-bottom:0}\n"] }]
|
|
111
119
|
}], ctorParameters: function () { return []; } });
|
|
112
120
|
|
|
113
121
|
class TotsTableFullGroupComponent {
|
|
@@ -165,10 +173,10 @@ class TotsTableFullGroupComponent {
|
|
|
165
173
|
return column.field_key;
|
|
166
174
|
}
|
|
167
175
|
}
|
|
176
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: TotsTableFullGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
177
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.11", type: TotsTableFullGroupComponent, selector: "tots-table-full-group", inputs: { config: "config", pageIndex: "pageIndex", pageSize: "pageSize", hasPagination: "hasPagination", messageNotFound: "messageNotFound" }, outputs: { onAction: "onAction" }, viewQueries: [{ propertyName: "tableComp", first: true, predicate: ["tableComp"], descendants: true }], ngImport: i0, template: "<tots-table #tableComp [config]=\"config\" [pageIndex]=\"pageIndex\" [pageSize]=\"pageSize\" [hasPagination]=\"hasPagination\" [messageNotFound]=\"messageNotFound\" (onAction)=\"onTableAction($event)\"></tots-table>\n", styles: [""], dependencies: [{ kind: "component", type: i1$1.TotsTableComponent, selector: "tots-table", inputs: ["config", "pageIndex", "pageSize", "hasPagination", "messageNotFound"], outputs: ["onAction"] }] }); }
|
|
168
178
|
}
|
|
169
|
-
|
|
170
|
-
TotsTableFullGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.3", type: TotsTableFullGroupComponent, selector: "tots-table-full-group", inputs: { config: "config", pageIndex: "pageIndex", pageSize: "pageSize", hasPagination: "hasPagination", messageNotFound: "messageNotFound" }, outputs: { onAction: "onAction" }, viewQueries: [{ propertyName: "tableComp", first: true, predicate: ["tableComp"], descendants: true }], ngImport: i0, template: "<tots-table #tableComp [config]=\"config\" [pageIndex]=\"pageIndex\" [pageSize]=\"pageSize\" [hasPagination]=\"hasPagination\" [messageNotFound]=\"messageNotFound\" (onAction)=\"onTableAction($event)\"></tots-table>\n", styles: [""], dependencies: [{ kind: "component", type: i1$1.TotsTableComponent, selector: "tots-table", inputs: ["config", "pageIndex", "pageSize", "hasPagination", "messageNotFound"], outputs: ["onAction"] }] });
|
|
171
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: TotsTableFullGroupComponent, decorators: [{
|
|
179
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: TotsTableFullGroupComponent, decorators: [{
|
|
172
180
|
type: Component,
|
|
173
181
|
args: [{ selector: 'tots-table-full-group', template: "<tots-table #tableComp [config]=\"config\" [pageIndex]=\"pageIndex\" [pageSize]=\"pageSize\" [hasPagination]=\"hasPagination\" [messageNotFound]=\"messageNotFound\" (onAction)=\"onTableAction($event)\"></tots-table>\n" }]
|
|
174
182
|
}], propDecorators: { tableComp: [{
|
|
@@ -188,39 +196,55 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImpor
|
|
|
188
196
|
type: Output
|
|
189
197
|
}] } });
|
|
190
198
|
|
|
199
|
+
class TotsInputColumn extends TotsColumn {
|
|
200
|
+
constructor(id, fieldKey, validators, title, formGroup, label, placeholder, hint, cssClass, appearance) {
|
|
201
|
+
super(id, InputColumnComponent, fieldKey, title);
|
|
202
|
+
this.extra = {
|
|
203
|
+
group: formGroup,
|
|
204
|
+
validators: validators?.map(v => v.validator),
|
|
205
|
+
errors: validators?.map(v => { return { name: v.name, message: v.message }; }),
|
|
206
|
+
label: label,
|
|
207
|
+
class: cssClass,
|
|
208
|
+
placeholder: placeholder,
|
|
209
|
+
caption: hint,
|
|
210
|
+
appearance: appearance
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
191
215
|
class TotsEditableColumnsModule {
|
|
216
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: TotsEditableColumnsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
217
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.11", ngImport: i0, type: TotsEditableColumnsModule, declarations: [
|
|
218
|
+
/** Columns */
|
|
219
|
+
InputColumnComponent,
|
|
220
|
+
/** Components */
|
|
221
|
+
TotsTableFullGroupComponent], imports: [CommonModule,
|
|
222
|
+
FormsModule,
|
|
223
|
+
ReactiveFormsModule,
|
|
224
|
+
/** Angular Material */
|
|
225
|
+
MatFormFieldModule,
|
|
226
|
+
MatInputModule,
|
|
227
|
+
/** Tots Libraries */
|
|
228
|
+
TotsTableModule], exports: [
|
|
229
|
+
/** Columns */
|
|
230
|
+
InputColumnComponent,
|
|
231
|
+
/** Components */
|
|
232
|
+
TotsTableFullGroupComponent] }); }
|
|
233
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: TotsEditableColumnsModule, imports: [CommonModule,
|
|
234
|
+
FormsModule,
|
|
235
|
+
ReactiveFormsModule,
|
|
236
|
+
/** Angular Material */
|
|
237
|
+
MatFormFieldModule,
|
|
238
|
+
MatInputModule,
|
|
239
|
+
/** Tots Libraries */
|
|
240
|
+
TotsTableModule] }); }
|
|
192
241
|
}
|
|
193
|
-
|
|
194
|
-
TotsEditableColumnsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.3", ngImport: i0, type: TotsEditableColumnsModule, declarations: [
|
|
195
|
-
/** Columns */
|
|
196
|
-
InputColumn,
|
|
197
|
-
/** Components */
|
|
198
|
-
TotsTableFullGroupComponent], imports: [CommonModule,
|
|
199
|
-
FormsModule,
|
|
200
|
-
ReactiveFormsModule,
|
|
201
|
-
/** Angular Material */
|
|
202
|
-
MatFormFieldModule,
|
|
203
|
-
MatInputModule,
|
|
204
|
-
/** Tots Libraries */
|
|
205
|
-
TotsTableModule], exports: [
|
|
206
|
-
/** Columns */
|
|
207
|
-
InputColumn,
|
|
208
|
-
/** Components */
|
|
209
|
-
TotsTableFullGroupComponent] });
|
|
210
|
-
TotsEditableColumnsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: TotsEditableColumnsModule, imports: [CommonModule,
|
|
211
|
-
FormsModule,
|
|
212
|
-
ReactiveFormsModule,
|
|
213
|
-
/** Angular Material */
|
|
214
|
-
MatFormFieldModule,
|
|
215
|
-
MatInputModule,
|
|
216
|
-
/** Tots Libraries */
|
|
217
|
-
TotsTableModule] });
|
|
218
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: TotsEditableColumnsModule, decorators: [{
|
|
242
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImport: i0, type: TotsEditableColumnsModule, decorators: [{
|
|
219
243
|
type: NgModule,
|
|
220
244
|
args: [{
|
|
221
245
|
declarations: [
|
|
222
246
|
/** Columns */
|
|
223
|
-
|
|
247
|
+
InputColumnComponent,
|
|
224
248
|
/** Components */
|
|
225
249
|
TotsTableFullGroupComponent
|
|
226
250
|
],
|
|
@@ -236,7 +260,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImpor
|
|
|
236
260
|
],
|
|
237
261
|
exports: [
|
|
238
262
|
/** Columns */
|
|
239
|
-
|
|
263
|
+
InputColumnComponent,
|
|
240
264
|
/** Components */
|
|
241
265
|
TotsTableFullGroupComponent
|
|
242
266
|
]
|
|
@@ -246,10 +270,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImpor
|
|
|
246
270
|
/*
|
|
247
271
|
* Public API Surface of editable-columns
|
|
248
272
|
*/
|
|
273
|
+
/**
|
|
274
|
+
* Entities
|
|
275
|
+
*/
|
|
249
276
|
|
|
250
277
|
/**
|
|
251
278
|
* Generated bundle index. Do not edit.
|
|
252
279
|
*/
|
|
253
280
|
|
|
254
|
-
export {
|
|
281
|
+
export { InputColumnComponent, TotsEditableColumnsModule, TotsInputColumn, TotsTableFullGroupComponent, TotsValidator };
|
|
255
282
|
//# sourceMappingURL=tots-editable-columns.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tots-editable-columns.mjs","sources":["../../../../projects/tots/editable-columns/src/lib/entities/tots-validator.ts","../../../../projects/tots/editable-columns/src/lib/columns/input-column/input-column.component.ts","../../../../projects/tots/editable-columns/src/lib/columns/input-column/input-column.component.html","../../../../projects/tots/editable-columns/src/lib/components/tots-table-full-group/tots-table-full-group.component.ts","../../../../projects/tots/editable-columns/src/lib/components/tots-table-full-group/tots-table-full-group.component.html","../../../../projects/tots/editable-columns/src/lib/column-factories/tots-input-column.ts","../../../../projects/tots/editable-columns/src/lib/editable-columns.module.ts","../../../../projects/tots/editable-columns/src/public-api.ts","../../../../projects/tots/editable-columns/src/tots-editable-columns.ts"],"sourcesContent":["import { ValidatorFn } from \"@angular/forms\"\n\nexport class TotsValidator {\n validator: ValidatorFn;\n name: string;\n message: string;\n \n constructor(validator:ValidatorFn, name:string, message:string) {\n this.validator = validator;\n this.name = name;\n this.message = message;\n }\n}","import { Component } from '@angular/core';\nimport { FormControl, FormGroup, ValidatorFn } from '@angular/forms';\nimport { MatFormFieldAppearance } from '@angular/material/form-field';\nimport { TotsBaseColumnComponent, TotsTableHelper } from '@tots/table';\n\n@Component({\n selector: 'tots-input-column',\n templateUrl: './input-column.component.html',\n styleUrls: ['./input-column.component.css']\n})\nexport class InputColumnComponent extends TotsBaseColumnComponent {\n\n input!: FormControl;\n\n constructor() {\n super();\n }\n\n ngOnInit(): void {\n this.loadInput();\n this.loadForm();\n this.loadChanges();\n }\n\n loadChanges() {\n this.input.valueChanges\n .subscribe(res => {\n this.onAction.next({ key: 'input-change', item: { field_key: this.getFormKey(), item: this.item, value: res, valid: this.input.valid, index: this.index } });\n });\n }\n\n loadForm() {\n if(this.column.extra == undefined || this.column.extra.group == undefined){\n return;\n }\n\n let group: FormGroup = this.column.extra.group;\n if(group.get(this.getFormKey()) != undefined){\n return;\n }\n\n group.addControl(this.getFormKey(), this.input);\n }\n\n loadInput() {\n let value = TotsTableHelper.getItemValueByKey(this.item, this.column.field_key);\n this.input = new FormControl(value, this.getValidators());\n\n this.onAction.next({ key: 'input-create', item: { field_key: this.getFormKey(), input: this.input, index: this.index, column: this.column } });\n }\n\n getFormKey(): string {\n if(Array.isArray(this.column.field_key)){\n return this.column.field_key.join('_');\n } else {\n return this.column.field_key!;\n }\n }\n\n getValidators() : ValidatorFn[] | ValidatorFn | null {\n if (this.column.extra && this.column.extra.validators) {\n return this.column.extra.validators;\n }\n return null;\n }\n\n getErrorMessage() : string {\n if (!this.column.extra.errors) {\n return '';\n }\n\n for (const error of this.column.extra.errors) {\n if (this.input.hasError(error.name)) {\n return error.message;\n }\n }\n\n return '';\n }\n\n getAppearance() : MatFormFieldAppearance {\n if (this.column.extra && this.column.extra.appearance) {\n return this.column.extra.appearance;\n }\n return 'fill';\n }\n\n getLabel() : string | undefined {\n if (this.column.extra && this.column.extra.label) {\n return this.column.extra.label;\n }\n return undefined;\n }\n\n getClass() : string {\n if (this.column.extra && this.column.extra.class) {\n return this.column.extra.class;\n }\n return '';\n }\n\n getPlaceholder() : string {\n if (this.column.extra && this.column.extra.placeholder) {\n return this.column.extra.placeholder;\n }\n return '';\n }\n\n getCaption() : string {\n if (this.column.extra && this.column.extra.caption) {\n return this.column.extra.caption;\n }\n return '';\n }\n\n hasError() : boolean {\n return this.input.invalid && (this.input.dirty || this.input.touched);\n }\n\n getInput() {\n return this.input;\n }\n}\n","<mat-form-field class=\"{{getClass()}}\" [appearance]=\"getAppearance()\" (click)=\"$event.stopPropagation()\">\n <mat-label *ngIf=\"getLabel()\"> {{ getLabel() }} </mat-label>\n <input matInput type=\"text\" [formControl]=\"input\" [placeholder]=\"getPlaceholder()\"/>\n <mat-hint *ngIf=\"getCaption()\" [align]=\"'end'\"> {{getCaption()}} </mat-hint>\n <mat-error *ngIf=\"hasError()\">{{getErrorMessage()}}</mat-error>\n</mat-form-field>\n","import { Component, EventEmitter, Input, Output, ViewChild } from '@angular/core';\nimport { FormArray, FormControl, FormGroup } from '@angular/forms';\nimport { TotsActionTable, TotsColumn, TotsTableComponent, TotsTableConfig } from '@tots/table';\n\n@Component({\n selector: 'tots-table-full-group',\n templateUrl: './tots-table-full-group.component.html',\n styleUrls: ['./tots-table-full-group.component.css']\n})\nexport class TotsTableFullGroupComponent {\n\n @ViewChild('tableComp') tableComp!: TotsTableComponent;\n\n @Input() config = new TotsTableConfig();\n @Input() pageIndex: number = 0;\n @Input() pageSize: number = 50;\n @Input() hasPagination: boolean = true;\n @Input() messageNotFound: string = \"No results found, please try with other search terms\";\n\n @Output() onAction = new EventEmitter<TotsActionTable>();\n\n formArrayMain?: FormArray<FormGroup>;\n\n onTableAction(action: TotsActionTable) {\n if(action.key == 'loaded-items'){\n this.loadGroup();\n } else if (action.key == 'input-create') {\n this.addInputInGroup(action.item.input, action.item.index, action.item.column);\n } else if (action.key == 'input-change') {\n this.onAction.emit(action);\n setTimeout(() => {\n this.onAction.emit({ key: 'form-change', item: { valid: this.formArrayMain!.valid, values: this.formArrayMain?.value } });\n });\n return;\n }\n this.onAction.emit(action);\n }\n\n addInputInGroup(input: FormControl, index: number, column: TotsColumn) {\n let group = this.formArrayMain?.at(index);\n if(group == undefined){\n return;\n }\n group.addControl(this.getFormKey(column), input);\n }\n\n loadGroup() {\n // Get Items\n let items = this.tableComp.getDataItems();\n // Create main array form\n this.formArrayMain = new FormArray<FormGroup>([]);\n // Verify if undefined\n if(items == undefined){\n return;\n }\n // Create form group for each item\n items.data.forEach(item => {\n let group = new FormGroup({});\n this.formArrayMain?.push(group);\n });\n }\n\n getFormKey(column: TotsColumn): string {\n if(Array.isArray(column.field_key)){\n return column.field_key.join('_');\n } else {\n return column.field_key!;\n }\n }\n}\n","<tots-table #tableComp [config]=\"config\" [pageIndex]=\"pageIndex\" [pageSize]=\"pageSize\" [hasPagination]=\"hasPagination\" [messageNotFound]=\"messageNotFound\" (onAction)=\"onTableAction($event)\"></tots-table>\n","import { TotsColumn } from \"@tots/table\";\r\nimport { InputColumnComponent } from \"../columns/input-column/input-column.component\";\r\nimport { FormGroup } from \"@angular/forms\";\r\nimport { MatFormFieldAppearance } from \"@angular/material/form-field\";\r\nimport { TotsValidator } from \"../entities/tots-validator\";\r\n\r\nexport class TotsInputColumn extends TotsColumn {\r\n\tconstructor(id:string, fieldKey:string|string[], validators?:TotsValidator[], title?:string, formGroup?:FormGroup, label?:string, placeholder?:string, hint?:string, cssClass?:string, appearance?:MatFormFieldAppearance) {\r\n super(id, InputColumnComponent, fieldKey, title);\r\n this.extra = {\r\n group: formGroup,\r\n validators: validators?.map(v=> v.validator),\r\n errors: validators?.map(v=> {return {name:v.name, message:v.message}}),\r\n label: label,\r\n class: cssClass,\r\n placeholder: placeholder,\r\n caption: hint,\r\n appearance: appearance\r\n }\r\n }\r\n}","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\n\n/** Angular Material */\nimport { MatInputModule } from '@angular/material/input';\nimport { MatFormFieldModule } from '@angular/material/form-field';\n\n/** Tots Libraries */\nimport { TotsTableModule } from '@tots/table';\n\n/** Columns */\nimport { InputColumnComponent } from './columns/input-column/input-column.component';\n\n/** Components */\nimport { TotsTableFullGroupComponent } from './components/tots-table-full-group/tots-table-full-group.component';\n\n\n\n\n\n\n\n@NgModule({\n declarations: [\n\n /** Columns */\n InputColumnComponent,\n\n /** Components */\n TotsTableFullGroupComponent\n ],\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n\n /** Angular Material */\n MatFormFieldModule,\n MatInputModule,\n\n /** Tots Libraries */\n TotsTableModule\n ],\n exports: [\n /** Columns */\n InputColumnComponent,\n\n /** Components */\n TotsTableFullGroupComponent\n ]\n})\nexport class TotsEditableColumnsModule { }\n","/*\n * Public API Surface of editable-columns\n */\n\n/**\n * Entities\n */\nexport * from './lib/entities/tots-validator';\n\n/**\n * Columns\n */\nexport * from './lib/columns/input-column/input-column.component';\n\n/**\n * Components\n */\nexport * from './lib/components/tots-table-full-group/tots-table-full-group.component';\n\n/**\n * Factories\n */\nexport * from './lib/column-factories/tots-input-column';\n\n/**\n * Modules\n */\nexport * from './lib/editable-columns.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;MAEa,aAAa,CAAA;AAKtB,IAAA,WAAA,CAAY,SAAqB,EAAE,IAAW,EAAE,OAAc,EAAA;AAC1D,QAAA,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;AAC3B,QAAA,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;AACjB,QAAA,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;KAC1B;AACJ;;ACFK,MAAO,oBAAqB,SAAQ,uBAAuB,CAAA;AAI/D,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE,CAAC;KACT;IAED,QAAQ,GAAA;QACN,IAAI,CAAC,SAAS,EAAE,CAAC;QACjB,IAAI,CAAC,QAAQ,EAAE,CAAC;QAChB,IAAI,CAAC,WAAW,EAAE,CAAC;KACpB;IAED,WAAW,GAAA;QACT,IAAI,CAAC,KAAK,CAAC,YAAY;aACtB,SAAS,CAAC,GAAG,IAAG;YACf,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,cAAc,EAAE,IAAI,EAAE,EAAE,SAAS,EAAE,IAAI,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE,IA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cAAc;;YAGd,eAAe,CAAA,EAAA,CAAA,CAAA,EAAA;;4FAUN,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBA7BrC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;;wBAGZ,oBAAoB;;wBAGpB,2BAA2B;AAC5B,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,WAAW;wBACX,mBAAmB;;wBAGnB,kBAAkB;wBAClB,cAAc;;wBAGd,eAAe;AAChB,qBAAA;AACD,oBAAA,OAAO,EAAE;;wBAEP,oBAAoB;;wBAGpB,2BAA2B;AAC5B,qBAAA;AACF,iBAAA,CAAA;;;ACnDD;;AAEG;AAEH;;AAEG;;ACNH;;AAEG;;;;"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TotsColumn } from "@tots/table";
|
|
2
|
+
import { FormGroup } from "@angular/forms";
|
|
3
|
+
import { MatFormFieldAppearance } from "@angular/material/form-field";
|
|
4
|
+
import { TotsValidator } from "../entities/tots-validator";
|
|
5
|
+
export declare class TotsInputColumn extends TotsColumn {
|
|
6
|
+
constructor(id: string, fieldKey: string | string[], validators?: TotsValidator[], title?: string, formGroup?: FormGroup, label?: string, placeholder?: string, hint?: string, cssClass?: string, appearance?: MatFormFieldAppearance);
|
|
7
|
+
}
|
|
@@ -2,7 +2,7 @@ import { FormControl, ValidatorFn } from '@angular/forms';
|
|
|
2
2
|
import { MatFormFieldAppearance } from '@angular/material/form-field';
|
|
3
3
|
import { TotsBaseColumnComponent } from '@tots/table';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class
|
|
5
|
+
export declare class InputColumnComponent extends TotsBaseColumnComponent {
|
|
6
6
|
input: FormControl;
|
|
7
7
|
constructor();
|
|
8
8
|
ngOnInit(): void;
|
|
@@ -14,11 +14,11 @@ export declare class InputColumn extends TotsBaseColumnComponent {
|
|
|
14
14
|
getErrorMessage(): string;
|
|
15
15
|
getAppearance(): MatFormFieldAppearance;
|
|
16
16
|
getLabel(): string | undefined;
|
|
17
|
-
|
|
17
|
+
getClass(): string;
|
|
18
18
|
getPlaceholder(): string;
|
|
19
19
|
getCaption(): string;
|
|
20
20
|
hasError(): boolean;
|
|
21
21
|
getInput(): FormControl<any>;
|
|
22
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputColumnComponent, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InputColumnComponent, "tots-input-column", never, {}, {}, never, never, false, never>;
|
|
24
24
|
}
|
|
@@ -16,5 +16,5 @@ export declare class TotsTableFullGroupComponent {
|
|
|
16
16
|
loadGroup(): void;
|
|
17
17
|
getFormKey(column: TotsColumn): string;
|
|
18
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<TotsTableFullGroupComponent, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TotsTableFullGroupComponent, "tots-table-full-group", never, { "config": "config"; "pageIndex": "pageIndex"; "pageSize": "pageSize"; "hasPagination": "hasPagination"; "messageNotFound": "messageNotFound"; }, { "onAction": "onAction"; }, never, never, false, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TotsTableFullGroupComponent, "tots-table-full-group", never, { "config": { "alias": "config"; "required": false; }; "pageIndex": { "alias": "pageIndex"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "hasPagination": { "alias": "hasPagination"; "required": false; }; "messageNotFound": { "alias": "messageNotFound"; "required": false; }; }, { "onAction": "onAction"; }, never, never, false, never>;
|
|
20
20
|
}
|
|
@@ -8,6 +8,6 @@ import * as i6 from "@angular/material/input";
|
|
|
8
8
|
import * as i7 from "@tots/table";
|
|
9
9
|
export declare class TotsEditableColumnsModule {
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<TotsEditableColumnsModule, never>;
|
|
11
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<TotsEditableColumnsModule, [typeof i1.
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TotsEditableColumnsModule, [typeof i1.InputColumnComponent, typeof i2.TotsTableFullGroupComponent], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i4.ReactiveFormsModule, typeof i5.MatFormFieldModule, typeof i6.MatInputModule, typeof i7.TotsTableModule], [typeof i1.InputColumnComponent, typeof i2.TotsTableFullGroupComponent]>;
|
|
12
12
|
static ɵinj: i0.ɵɵInjectorDeclaration<TotsEditableColumnsModule>;
|
|
13
13
|
}
|