@adminforth/bulk-ai-flow 1.7.0 → 1.7.2
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/build.log +2 -2
- package/custom/visionAction.vue +4 -4
- package/dist/custom/visionAction.vue +4 -4
- package/dist/index.js +2 -1
- package/index.ts +2 -1
- package/package.json +1 -1
package/build.log
CHANGED
|
@@ -11,5 +11,5 @@ custom/tsconfig.json
|
|
|
11
11
|
custom/visionAction.vue
|
|
12
12
|
custom/visionTable.vue
|
|
13
13
|
|
|
14
|
-
sent 180,
|
|
15
|
-
total size is 180,
|
|
14
|
+
sent 180,687 bytes received 134 bytes 361,642.00 bytes/sec
|
|
15
|
+
total size is 180,152 speedup is 1.00
|
package/custom/visionAction.vue
CHANGED
|
@@ -114,14 +114,14 @@ const checkedCount = ref(0);
|
|
|
114
114
|
const openDialog = async () => {
|
|
115
115
|
confirmDialog.value.open();
|
|
116
116
|
await getRecords();
|
|
117
|
-
if (props.meta.
|
|
117
|
+
if (props.meta.isAttachFiles) {
|
|
118
118
|
await getImages();
|
|
119
119
|
}
|
|
120
120
|
tableHeaders.value = generateTableHeaders(props.meta.outputFields);
|
|
121
121
|
const result = generateTableColumns();
|
|
122
122
|
tableColumns.value = result.tableData;
|
|
123
123
|
tableColumnsIndexes.value = result.indexes;
|
|
124
|
-
customFieldNames.value = tableHeaders.value.slice(props.meta.
|
|
124
|
+
customFieldNames.value = tableHeaders.value.slice((props.meta.isAttachFiles) ? 3 : 2).map(h => h.fieldName);
|
|
125
125
|
setSelected();
|
|
126
126
|
for (let i = 0; i < selected.value?.length; i++) {
|
|
127
127
|
openGenerationCarousel.value[i] = props.meta.outputImageFields?.reduce((acc,key) =>{
|
|
@@ -189,7 +189,7 @@ function generateTableHeaders(outputFields) {
|
|
|
189
189
|
|
|
190
190
|
headers.push({ label: 'Checkboxes', fieldName: 'checkboxes' });
|
|
191
191
|
headers.push({ label: 'Field name', fieldName: 'label' });
|
|
192
|
-
if (props.meta.
|
|
192
|
+
if (props.meta.isAttachFiles) {
|
|
193
193
|
headers.push({ label: 'Source Images', fieldName: 'images' });
|
|
194
194
|
}
|
|
195
195
|
for (const key in outputFields) {
|
|
@@ -492,7 +492,7 @@ async function uploadImage(imgBlob, id, fieldName) {
|
|
|
492
492
|
contentType: type,
|
|
493
493
|
size,
|
|
494
494
|
originalExtension: extension,
|
|
495
|
-
recordPk:
|
|
495
|
+
recordPk: id,
|
|
496
496
|
},
|
|
497
497
|
});
|
|
498
498
|
|
|
@@ -114,14 +114,14 @@ const checkedCount = ref(0);
|
|
|
114
114
|
const openDialog = async () => {
|
|
115
115
|
confirmDialog.value.open();
|
|
116
116
|
await getRecords();
|
|
117
|
-
if (props.meta.
|
|
117
|
+
if (props.meta.isAttachFiles) {
|
|
118
118
|
await getImages();
|
|
119
119
|
}
|
|
120
120
|
tableHeaders.value = generateTableHeaders(props.meta.outputFields);
|
|
121
121
|
const result = generateTableColumns();
|
|
122
122
|
tableColumns.value = result.tableData;
|
|
123
123
|
tableColumnsIndexes.value = result.indexes;
|
|
124
|
-
customFieldNames.value = tableHeaders.value.slice(props.meta.
|
|
124
|
+
customFieldNames.value = tableHeaders.value.slice((props.meta.isAttachFiles) ? 3 : 2).map(h => h.fieldName);
|
|
125
125
|
setSelected();
|
|
126
126
|
for (let i = 0; i < selected.value?.length; i++) {
|
|
127
127
|
openGenerationCarousel.value[i] = props.meta.outputImageFields?.reduce((acc,key) =>{
|
|
@@ -189,7 +189,7 @@ function generateTableHeaders(outputFields) {
|
|
|
189
189
|
|
|
190
190
|
headers.push({ label: 'Checkboxes', fieldName: 'checkboxes' });
|
|
191
191
|
headers.push({ label: 'Field name', fieldName: 'label' });
|
|
192
|
-
if (props.meta.
|
|
192
|
+
if (props.meta.isAttachFiles) {
|
|
193
193
|
headers.push({ label: 'Source Images', fieldName: 'images' });
|
|
194
194
|
}
|
|
195
195
|
for (const key in outputFields) {
|
|
@@ -492,7 +492,7 @@ async function uploadImage(imgBlob, id, fieldName) {
|
|
|
492
492
|
contentType: type,
|
|
493
493
|
size,
|
|
494
494
|
originalExtension: extension,
|
|
495
|
-
recordPk:
|
|
495
|
+
recordPk: id,
|
|
496
496
|
},
|
|
497
497
|
});
|
|
498
498
|
|
package/dist/index.js
CHANGED
|
@@ -153,7 +153,8 @@ export default class BulkAiFlowPlugin extends AdminForthPlugin {
|
|
|
153
153
|
outputImagesPluginInstanceIds: outputImagesPluginInstanceIds,
|
|
154
154
|
isFieldsForAnalizeFromImages: this.options.fillFieldsFromImages ? Object.keys(this.options.fillFieldsFromImages).length > 0 : false,
|
|
155
155
|
isFieldsForAnalizePlain: this.options.fillPlainFields ? Object.keys(this.options.fillPlainFields).length > 0 : false,
|
|
156
|
-
isImageGeneration: this.options.generateImages ? Object.keys(this.options.generateImages).length > 0 : false
|
|
156
|
+
isImageGeneration: this.options.generateImages ? Object.keys(this.options.generateImages).length > 0 : false,
|
|
157
|
+
isAttachFiles: this.options.attachFiles ? true : false,
|
|
157
158
|
}
|
|
158
159
|
};
|
|
159
160
|
if (!resourceConfig.options.pageInjections) {
|
package/index.ts
CHANGED
|
@@ -180,7 +180,8 @@ export default class BulkAiFlowPlugin extends AdminForthPlugin {
|
|
|
180
180
|
outputImagesPluginInstanceIds: outputImagesPluginInstanceIds,
|
|
181
181
|
isFieldsForAnalizeFromImages: this.options.fillFieldsFromImages ? Object.keys(this.options.fillFieldsFromImages).length > 0 : false,
|
|
182
182
|
isFieldsForAnalizePlain: this.options.fillPlainFields ? Object.keys(this.options.fillPlainFields).length > 0 : false,
|
|
183
|
-
isImageGeneration: this.options.generateImages ? Object.keys(this.options.generateImages).length > 0 : false
|
|
183
|
+
isImageGeneration: this.options.generateImages ? Object.keys(this.options.generateImages).length > 0 : false,
|
|
184
|
+
isAttachFiles: this.options.attachFiles ? true : false,
|
|
184
185
|
}
|
|
185
186
|
}
|
|
186
187
|
|