@adminforth/bulk-ai-flow 1.22.0 → 1.22.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 +3 -2
- package/dist/custom/VisionAction.vue +3 -2
- package/package.json +1 -1
- package/types.ts +13 -5
package/build.log
CHANGED
|
@@ -13,5 +13,5 @@ custom/package-lock.json
|
|
|
13
13
|
custom/package.json
|
|
14
14
|
custom/tsconfig.json
|
|
15
15
|
|
|
16
|
-
sent 99,
|
|
17
|
-
total size is 98,
|
|
16
|
+
sent 99,492 bytes received 172 bytes 199,328.00 bytes/sec
|
|
17
|
+
total size is 98,847 speedup is 0.99
|
package/custom/VisionAction.vue
CHANGED
|
@@ -190,7 +190,7 @@
|
|
|
190
190
|
|
|
191
191
|
<script lang="ts" setup>
|
|
192
192
|
import { callAdminForthApi } from '@/utils';
|
|
193
|
-
import { ref, computed,
|
|
193
|
+
import { ref, computed, nextTick } from 'vue'
|
|
194
194
|
import pLimit from 'p-limit';
|
|
195
195
|
import { Dialog, Textarea, Toggle, Tooltip } from '@/afcl';
|
|
196
196
|
import VisionTable from './VisionTable.vue'
|
|
@@ -466,7 +466,7 @@ function resumeGeneration() {
|
|
|
466
466
|
resolvePause();
|
|
467
467
|
}
|
|
468
468
|
|
|
469
|
-
function cancelGeneration() {
|
|
469
|
+
async function cancelGeneration() {
|
|
470
470
|
if (isGenerationCancelled.value) {
|
|
471
471
|
return;
|
|
472
472
|
}
|
|
@@ -486,6 +486,7 @@ function cancelGeneration() {
|
|
|
486
486
|
}
|
|
487
487
|
}
|
|
488
488
|
touchRecords();
|
|
489
|
+
await nextTick();
|
|
489
490
|
tableRef.value?.refresh();
|
|
490
491
|
}
|
|
491
492
|
|
|
@@ -190,7 +190,7 @@
|
|
|
190
190
|
|
|
191
191
|
<script lang="ts" setup>
|
|
192
192
|
import { callAdminForthApi } from '@/utils';
|
|
193
|
-
import { ref, computed,
|
|
193
|
+
import { ref, computed, nextTick } from 'vue'
|
|
194
194
|
import pLimit from 'p-limit';
|
|
195
195
|
import { Dialog, Textarea, Toggle, Tooltip } from '@/afcl';
|
|
196
196
|
import VisionTable from './VisionTable.vue'
|
|
@@ -466,7 +466,7 @@ function resumeGeneration() {
|
|
|
466
466
|
resolvePause();
|
|
467
467
|
}
|
|
468
468
|
|
|
469
|
-
function cancelGeneration() {
|
|
469
|
+
async function cancelGeneration() {
|
|
470
470
|
if (isGenerationCancelled.value) {
|
|
471
471
|
return;
|
|
472
472
|
}
|
|
@@ -486,6 +486,7 @@ function cancelGeneration() {
|
|
|
486
486
|
}
|
|
487
487
|
}
|
|
488
488
|
touchRecords();
|
|
489
|
+
await nextTick();
|
|
489
490
|
tableRef.value?.refresh();
|
|
490
491
|
}
|
|
491
492
|
|
package/package.json
CHANGED
package/types.ts
CHANGED
|
@@ -137,11 +137,19 @@ export interface PluginOptions {
|
|
|
137
137
|
*/
|
|
138
138
|
recordSelector?: 'checkbox' | 'filtered';
|
|
139
139
|
|
|
140
|
-
/**
|
|
141
|
-
*
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
140
|
+
/**
|
|
141
|
+
* Additional confirmation settings for long-running generations.
|
|
142
|
+
*
|
|
143
|
+
* Generating a very large number of records can be expensive. This option
|
|
144
|
+
* lets you pause the process at specific checkpoints so the user can review
|
|
145
|
+
* everything generated so far and then choose to Resume or Stop the
|
|
146
|
+
* generation.
|
|
147
|
+
*
|
|
148
|
+
* Each entry in the array defines a confirmation breakpoint:
|
|
149
|
+
* - `{ afterRecords: N }` – show a confirmation once, after the first N
|
|
150
|
+
* records have been processed.
|
|
151
|
+
* - `{ everyRecords: N }` – show a confirmation after every N records.
|
|
152
|
+
*/
|
|
145
153
|
askConfirmation?: ({ afterRecords: number } | { everyRecords: number })[]
|
|
146
154
|
|
|
147
155
|
}
|