@ai-table/grid 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- package/components/cell-editors/abstract-cell-editor.component.d.ts.map +1 -1
- package/components/cell-editors/cell-editor.scss +22 -2
- package/components/cell-editors/select/select-editor.component.d.ts +7 -8
- package/components/cell-editors/select/select-editor.component.d.ts.map +1 -1
- package/components/cell-views/select/option.component.d.ts +11 -0
- package/components/cell-views/select/option.component.d.ts.map +1 -0
- package/components/field-property-editor/field-property-editor.component.d.ts +13 -4
- package/components/field-property-editor/field-property-editor.component.d.ts.map +1 -1
- package/components/index.d.ts +1 -0
- package/components/index.d.ts.map +1 -1
- package/constants/field.d.ts.map +1 -1
- package/core/action/field.d.ts +3 -3
- package/core/action/field.d.ts.map +1 -1
- package/core/action/general.d.ts +1 -1
- package/core/action/general.d.ts.map +1 -1
- package/core/action/index.d.ts +1 -1
- package/core/action/record.d.ts +3 -3
- package/core/action/record.d.ts.map +1 -1
- package/core/constants/field.d.ts +22 -4
- package/core/constants/field.d.ts.map +1 -1
- package/core/types/action.d.ts +10 -8
- package/core/types/action.d.ts.map +1 -1
- package/core/types/core.d.ts +30 -18
- package/core/types/core.d.ts.map +1 -1
- package/core/utils/field.d.ts +1 -1
- package/core/utils/id-creator.d.ts +1 -1
- package/core/utils/id-creator.d.ts.map +1 -1
- package/core/utils/queries.d.ts +5 -4
- package/core/utils/queries.d.ts.map +1 -1
- package/esm2022/components/cell-editors/abstract-cell-editor.component.mjs +6 -8
- package/esm2022/components/cell-editors/date-time/date-time-editor.component.mjs +3 -3
- package/esm2022/components/cell-editors/link/number-editor.component.mjs +3 -3
- package/esm2022/components/cell-editors/number/number-editor.component.mjs +3 -3
- package/esm2022/components/cell-editors/progress/progress-editor.component.mjs +3 -3
- package/esm2022/components/cell-editors/rating/rating-editor.component.mjs +3 -3
- package/esm2022/components/cell-editors/select/select-editor.component.mjs +37 -27
- package/esm2022/components/cell-editors/text/text-editor.component.mjs +3 -3
- package/esm2022/components/cell-views/select/option.component.mjs +27 -0
- package/esm2022/components/field-menu/field-menu.component.mjs +3 -3
- package/esm2022/components/field-property-editor/field-property-editor.component.mjs +17 -13
- package/esm2022/components/index.mjs +2 -1
- package/esm2022/constants/field.mjs +3 -4
- package/esm2022/core/action/field.mjs +12 -9
- package/esm2022/core/action/general.mjs +45 -32
- package/esm2022/core/action/record.mjs +1 -1
- package/esm2022/core/constants/field.mjs +10 -2
- package/esm2022/core/types/action.mjs +1 -1
- package/esm2022/core/types/core.mjs +8 -1
- package/esm2022/core/utils/field.mjs +3 -3
- package/esm2022/core/utils/id-creator.mjs +4 -10
- package/esm2022/core/utils/queries.mjs +12 -12
- package/esm2022/grid.component.mjs +19 -13
- package/esm2022/pipes/grid.pipe.mjs +67 -7
- package/esm2022/services/event.service.mjs +8 -5
- package/esm2022/services/field.service.mjs +6 -6
- package/esm2022/services/selection.service.mjs +3 -3
- package/esm2022/types/field.mjs +1 -1
- package/esm2022/types/grid.mjs +1 -1
- package/esm2022/utils/build.mjs +4 -27
- package/fesm2022/ai-table-grid.mjs +275 -177
- package/fesm2022/ai-table-grid.mjs.map +1 -1
- package/grid.component.d.ts +2 -1
- package/grid.component.d.ts.map +1 -1
- package/package.json +3 -3
- package/pipes/grid.pipe.d.ts +22 -2
- package/pipes/grid.pipe.d.ts.map +1 -1
- package/services/event.service.d.ts +1 -0
- package/services/event.service.d.ts.map +1 -1
- package/services/field.service.d.ts +1 -1
- package/services/field.service.d.ts.map +1 -1
- package/styles/styles.scss +2 -3
- package/types/field.d.ts +4 -1
- package/types/field.d.ts.map +1 -1
- package/types/grid.d.ts +2 -1
- package/types/grid.d.ts.map +1 -1
- package/utils/build.d.ts +2 -3
- package/utils/build.d.ts.map +1 -1
@@ -10,7 +10,7 @@ export class AITableGridFieldService {
|
|
10
10
|
initAIFieldConfig(aiFieldConfig) {
|
11
11
|
this.aiFieldConfig = aiFieldConfig;
|
12
12
|
}
|
13
|
-
editFieldProperty(origin, aiTable,
|
13
|
+
editFieldProperty(origin, aiTable, aiEditField, isUpdate) {
|
14
14
|
const component = this.aiFieldConfig?.fieldPropertyEditor ?? AITableFieldPropertyEditor;
|
15
15
|
this.thyPopover.open(component, {
|
16
16
|
origin: origin,
|
@@ -18,15 +18,15 @@ export class AITableGridFieldService {
|
|
18
18
|
placement: 'bottomLeft',
|
19
19
|
initialState: {
|
20
20
|
aiTable,
|
21
|
-
|
21
|
+
aiEditField,
|
22
22
|
isUpdate
|
23
23
|
}
|
24
24
|
});
|
25
25
|
}
|
26
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
27
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.
|
26
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: AITableGridFieldService, deps: [{ token: i1.ThyPopover }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
27
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: AITableGridFieldService }); }
|
28
28
|
}
|
29
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: AITableGridFieldService, decorators: [{
|
30
30
|
type: Injectable
|
31
31
|
}], ctorParameters: () => [{ type: i1.ThyPopover }] });
|
32
|
-
//# sourceMappingURL=data:application/json;base64,
|
32
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmllbGQuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3BhY2thZ2VzL2dyaWQvc3JjL3NlcnZpY2VzL2ZpZWxkLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFjLFVBQVU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jb21wb25lbnQsIHtcbiAgICAgICAgICAgIG9yaWdpbjogb3JpZ2luLFxuICAgICAgICAgICAgbWFudWFsQ2xvc3VyZTogdHJ1ZSxcbiAgICAgICAgICAgIHBsYWNlbWVudDogJ2JvdHRvbUxlZnQnLFxuICAgICAgICAgICAgaW5pdGlhbFN0YXRlOiB7XG4gICAgICAgICAgICAgICAgYWlUYWJsZSxcbiAgICAgICAgICAgICAgICBhaUVkaXRGaWVsZCxcbiAgICAgICAgICAgICAgICBpc1VwZGF0ZVxuICAgICAgICAgICAgfVxuICAgICAgICB9KTtcbiAgICB9XG59XG4iXX0=
|
@@ -63,10 +63,10 @@ export class AITableGridSelectionService {
|
|
63
63
|
this.clearSelection();
|
64
64
|
}
|
65
65
|
}
|
66
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
67
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.
|
66
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: AITableGridSelectionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
67
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: AITableGridSelectionService }); }
|
68
68
|
}
|
69
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
69
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: AITableGridSelectionService, decorators: [{
|
70
70
|
type: Injectable
|
71
71
|
}], ctorParameters: () => [] });
|
72
72
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZWN0aW9uLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wYWNrYWdlcy9ncmlkL3NyYy9zZXJ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Y2VsbERvbSAmJiAhY29sRG9tICYmICFjaGVja2JveCkge1xuICAgICAgICAgICAgdGhpcy5jbGVhclNlbGVjdGlvbigpO1xuICAgICAgICB9XG4gICAgfVxufVxuIl19
|
package/esm2022/types/field.mjs
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmllbGQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wYWNrYWdlcy9ncmlkL3NyYy90eXBlcy9maWVsZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgRWxlbWVudFJlZiwgU2lnbmFsIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5pbXBvcnQgeyBBSVRhYmxlLCBBSVRhYmxlRmllbGQsIFNlbGVjdFNldHRpbmdzIH0gZnJvbSAnLi4vY29yZSc7XG5cbmV4cG9ydCBpbnRlcmZhY2UgQUlUYWJsZUZpZWxkTWVudUl0ZW0ge1xuICAgIHR5cGU6IHN0cmluZztcbiAgICBuYW1lPzogc3RyaW5nO1xuICAgIGljb24/OiBzdHJpbmc7XG4gICAgZXhlYz86IChhaVRhYmxlOiBBSVRhYmxlLCBmaWVsZDogU2lnbmFsPEFJVGFibGVGaWVsZD4sIG9yaWdpbj86IEhUTUxFbGVtZW50IHwgRWxlbWVudFJlZjxhbnk+KSA9PiB2b2lkO1xuICAgIGhpZGRlbj86IChhaVRhYmxlOiBBSVRhYmxlLCBmaWVsZDogU2lnbmFsPEFJVGFibGVGaWVsZD4pID0+IGJvb2xlYW47XG4gICAgZGlzYWJsZWQ/OiAoYWlUYWJsZTogQUlUYWJsZSwgZmllbGQ6IFNpZ25hbDxBSVRhYmxlRmllbGQ+KSA9PiBib29sZWFuO1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIEFJVGFibGVTZWxlY3RGaWVsZCBleHRlbmRzIEFJVGFibGVGaWVsZCB7XG4gICAgc2V0dGluZ3M6IFNlbGVjdFNldHRpbmdzO1xufVxuIl19
|
package/esm2022/types/grid.mjs
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ3JpZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3BhY2thZ2VzL2dyaWQvc3JjL3R5cGVzL2dyaWQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IERpY3Rpb25hcnkgfSBmcm9tICduZ3gtdGV0aHlzL3R5cGVzJztcbmltcG9ydCB7IEFJVGFibGVGaWVsZCwgQUlUYWJsZUZpZWxkVHlwZSwgQUlUYWJsZVJlY29yZCB9IGZyb20gJy4uL2NvcmUnO1xuaW1wb3J0IHsgQUlUYWJsZUZpZWxkTWVudUl0ZW0gfSBmcm9tICcuL2ZpZWxkJztcblxuZXhwb3J0IGludGVyZmFjZSBBSVRhYmxlR3JpZENlbGxSZW5kZXJTY2hlbWEge1xuICAgIGVkaXRvcjogYW55O1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIEFJVGFibGVHcmlkRGF0YSB7XG4gICAgdHlwZTogJ2dyaWQnO1xuICAgIGZpZWxkczogQUlUYWJsZUZpZWxkW107XG4gICAgcmVjb3JkczogQUlUYWJsZVJlY29yZFtdO1xufVxuXG5leHBvcnQgaW50ZXJmYWNlIEFJVGFibGVTZWxlY3Rpb24ge1xuICAgIHNlbGVjdGVkUmVjb3JkczogTWFwPHN0cmluZywgYm9vbGVhbj47XG4gICAgc2VsZWN0ZWRGaWVsZHM6IE1hcDxzdHJpbmcsIGJvb2xlYW4+O1xuICAgIHNlbGVjdGVkQ2VsbHM6IE1hcDxzdHJpbmcsIHt9Pjtcbn1cblxuZXhwb3J0IGludGVyZmFjZSBBSUZpZWxkQ29uZmlnIHtcbiAgICBmaWVsZFJlbmRlcmVycz86IFBhcnRpYWw8UmVjb3JkPEFJVGFibGVGaWVsZFR5cGUsIEFJVGFibGVHcmlkQ2VsbFJlbmRlclNjaGVtYT4+O1xuICAgIGZpZWxkUHJvcGVydHlFZGl0b3I/OiBhbnk7XG4gICAgZmllbGRNZW51cz86IEFJVGFibGVGaWVsZE1lbnVJdGVtW107XG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgQUlUYWJsZVVzZXJJbmZvIHtcbiAgICB1aWQ/OiBzdHJpbmc7XG4gICAgZGlzcGxheV9uYW1lPzogc3RyaW5nO1xuICAgIGF2YXRhcj86IHN0cmluZztcbn1cblxuZXhwb3J0IGludGVyZmFjZSBBSVRhYmxlUmVmZXJlbmNlcyB7XG4gICAgbWVtYmVyczogRGljdGlvbmFyeTxBSVRhYmxlVXNlckluZm8+O1xufVxuIl19
|
package/esm2022/utils/build.mjs
CHANGED
@@ -1,6 +1,5 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
export const buildGridData = (recordValue, fieldsValue, references) => {
|
1
|
+
import { FieldsMap } from '../core';
|
2
|
+
export const buildGridData = (recordValue, fieldsValue) => {
|
4
3
|
const fields = fieldsValue.map((item) => {
|
5
4
|
return {
|
6
5
|
...item,
|
@@ -8,32 +7,10 @@ export const buildGridData = (recordValue, fieldsValue, references) => {
|
|
8
7
|
width: item.width || FieldsMap[item.type].width
|
9
8
|
};
|
10
9
|
});
|
11
|
-
let records = buildRecordsByReferences(recordValue, fieldsValue, references);
|
12
10
|
return {
|
13
11
|
type: 'grid',
|
14
12
|
fields,
|
15
|
-
records
|
13
|
+
records: recordValue
|
16
14
|
};
|
17
15
|
};
|
18
|
-
|
19
|
-
if (!references) {
|
20
|
-
return records;
|
21
|
-
}
|
22
|
-
const memberFields = fields.filter((field) => [AITableFieldType.createdBy, AITableFieldType.updatedBy, AITableFieldType.member].includes(field.type));
|
23
|
-
if (memberFields.length) {
|
24
|
-
const uidToMember = references.members.reduce((map, member) => {
|
25
|
-
map[member.uid] = member;
|
26
|
-
return map;
|
27
|
-
}, {});
|
28
|
-
const draftRecords = createDraft(records);
|
29
|
-
draftRecords.forEach((record) => {
|
30
|
-
memberFields.forEach((field) => {
|
31
|
-
const value = record.values[field._id];
|
32
|
-
record.values[field._id] = value.map((uid) => uidToMember[uid]).filter(Boolean);
|
33
|
-
});
|
34
|
-
});
|
35
|
-
records = finishDraft(draftRecords);
|
36
|
-
}
|
37
|
-
return records;
|
38
|
-
}
|
39
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnVpbGQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wYWNrYWdlcy9ncmlkL3NyYy91dGlscy9idWlsZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsV0FBVyxFQUFFLFdBQVcsRUFBRSxNQUFNLE9BQU8sQ0FBQztBQUNqRCxPQUFPLEVBQWlCLGdCQUFnQixFQUFrQixTQUFTLEVBQUUsTUFBTSxTQUFTLENBQUM7QUFHckYsTUFBTSxDQUFDLE1BQU0sYUFBYSxHQUFHLENBQUMsV0FBMkIsRUFBRSxXQUEwQixFQUFFLFVBQThCLEVBQW1CLEVBQUU7SUFDdEksTUFBTSxNQUFNLEdBQUcsV0FBVyxDQUFDLEdBQUcsQ0FBQyxDQUFDLElBQUksRUFBRSxFQUFFO1FBQ3BDLE9BQU87WUFDSCxHQUFHLElBQUk7WUFDUCxJQUFJLEVBQUUsSUFBSSxDQUFDLElBQUksSUFBSSxTQUFTLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxDQUFDLElBQUk7WUFDNUMsS0FBSyxFQUFFLElBQUksQ0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obWVtYmVyRmllbGRzLmxlbmd0aCkge1xuICAgICAgICBjb25zdCB1aWRUb01lbWJlciA9IHJlZmVyZW5jZXMubWVtYmVycy5yZWR1Y2UoXG4gICAgICAgICAgICAobWFwOiB7IFtrZXk6IHN0cmluZ106IGFueSB9LCBtZW1iZXI6IEFJVGFibGVVc2VySW5mbykgPT4ge1xuICAgICAgICAgICAgICAgIG1hcFttZW1iZXIudWlkIV0gPSBtZW1iZXI7XG4gICAgICAgICAgICAgICAgcmV0dXJuIG1hcDtcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICB7fSBhcyBSZWNvcmQ8c3RyaW5nLCBBSVRhYmxlVXNlckluZm8+XG4gICAgICAgICk7XG4gICAgICAgIGNvbnN0IGRyYWZ0UmVjb3JkcyA9IGNyZWF0ZURyYWZ0KHJlY29yZHMpO1xuICAgICAgICBkcmFmdFJlY29yZHMuZm9yRWFjaCgocmVjb3JkKSA9PiB7XG4gICAgICAgICAgICBtZW1iZXJGaWVsZHMuZm9yRWFjaCgoZmllbGQpID0+IHtcbiAgICAgICAgICAgICAgICBjb25zdCB2YWx1ZSA9IHJlY29yZC52YWx1ZXNbZmllbGQuX2lkXTtcbiAgICAgICAgICAgICAgICByZWNvcmQudmFsdWVzW2ZpZWxkLl9pZF0gPSB2YWx1ZS5tYXAoKHVpZDogc3RyaW5nKSA9PiB1aWRUb01lbWJlclt1aWRdKS5maWx0ZXIoQm9vbGVhbik7XG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfSk7XG4gICAgICAgIHJlY29yZHMgPSBmaW5pc2hEcmFmdChkcmFmdFJlY29yZHMpO1xuICAgIH1cbiAgICByZXR1cm4gcmVjb3Jkcztcbn1cbiJdfQ==
|
16
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnVpbGQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wYWNrYWdlcy9ncmlkL3NyYy91dG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