@adminforth/bulk-ai-flow 1.24.5 → 1.25.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/build.log +2 -2
- package/custom/VisionAction.vue +25 -4
- package/dist/custom/VisionAction.vue +25 -4
- package/package.json +1 -1
package/build.log
CHANGED
|
@@ -14,5 +14,5 @@ custom/package.json
|
|
|
14
14
|
custom/pnpm-lock.yaml
|
|
15
15
|
custom/tsconfig.json
|
|
16
16
|
|
|
17
|
-
sent 113,
|
|
18
|
-
total size is
|
|
17
|
+
sent 113,881 bytes received 191 bytes 228,144.00 bytes/sec
|
|
18
|
+
total size is 113,167 speedup is 0.99
|
package/custom/VisionAction.vue
CHANGED
|
@@ -12,10 +12,8 @@
|
|
|
12
12
|
:class="popupMode === 'generation' ? 'lg:w-auto !lg:max-w-[1600px]'
|
|
13
13
|
: popupMode === 'settings' ? 'lg:w-[1000px] !lg:max-w-[1000px]'
|
|
14
14
|
: 'lg:w-[500px] !lg:max-w-[500px]'"
|
|
15
|
-
:beforeCloseFunction="
|
|
15
|
+
:beforeCloseFunction="handleBeforeClose"
|
|
16
16
|
:closable="false"
|
|
17
|
-
:askForCloseConfirmation="popupMode === 'generation' ? true : false"
|
|
18
|
-
:closeConfirmationText="t('Are you sure you want to close without saving?')"
|
|
19
17
|
:buttons="popupMode === 'generation' ? generationModeButtons : popupMode === 'settings' ? [
|
|
20
18
|
{
|
|
21
19
|
label: t('Save settings'),
|
|
@@ -185,6 +183,7 @@ import { useFiltersStore } from '@/stores/filters';
|
|
|
185
183
|
|
|
186
184
|
const coreStore = useCoreStore();
|
|
187
185
|
const filtersStore = useFiltersStore();
|
|
186
|
+
const showCloseConfirmModal = ref(false);
|
|
188
187
|
|
|
189
188
|
const { t } = useI18n();
|
|
190
189
|
const props = defineProps<{
|
|
@@ -319,7 +318,7 @@ const generationModeButtons = computed(() => {
|
|
|
319
318
|
options: {
|
|
320
319
|
class: 'bg-white hover:!bg-gray-100 !text-gray-900 hover:!text-gray-800 dark:!bg-gray-800 dark:!text-gray-100 dark:hover:!bg-gray-700 !border-gray-200 dark:!border-gray-600'
|
|
321
320
|
},
|
|
322
|
-
onclick: (dialog) =>
|
|
321
|
+
onclick: async (dialog) => { await handleBeforeClose(dialog); }
|
|
323
322
|
},
|
|
324
323
|
]
|
|
325
324
|
|
|
@@ -336,6 +335,28 @@ const generationModeButtons = computed(() => {
|
|
|
336
335
|
return arrayToReturn;
|
|
337
336
|
});
|
|
338
337
|
|
|
338
|
+
const handleBeforeClose = async (dialog?: any) => {
|
|
339
|
+
if (popupMode.value === 'generation') {
|
|
340
|
+
const confirmed = await adminforth.confirm({
|
|
341
|
+
title: t('Close without saving?'),
|
|
342
|
+
message: t('Are you sure you want to close without saving?'),
|
|
343
|
+
yes: t('Yes'),
|
|
344
|
+
no: t('Cancel'),
|
|
345
|
+
});
|
|
346
|
+
|
|
347
|
+
if (confirmed) {
|
|
348
|
+
closeDialog();
|
|
349
|
+
|
|
350
|
+
if (confirmDialog.value && typeof confirmDialog.value.hide === 'function') {
|
|
351
|
+
confirmDialog.value.hide();
|
|
352
|
+
} else if (dialog && typeof dialog.hide === 'function') {
|
|
353
|
+
dialog.hide();
|
|
354
|
+
}
|
|
355
|
+
return true;
|
|
356
|
+
}
|
|
357
|
+
return false;
|
|
358
|
+
}
|
|
359
|
+
}
|
|
339
360
|
|
|
340
361
|
const isSavingCurrent = ref(false);
|
|
341
362
|
function checkIfDialogOpen() {
|
|
@@ -12,10 +12,8 @@
|
|
|
12
12
|
:class="popupMode === 'generation' ? 'lg:w-auto !lg:max-w-[1600px]'
|
|
13
13
|
: popupMode === 'settings' ? 'lg:w-[1000px] !lg:max-w-[1000px]'
|
|
14
14
|
: 'lg:w-[500px] !lg:max-w-[500px]'"
|
|
15
|
-
:beforeCloseFunction="
|
|
15
|
+
:beforeCloseFunction="handleBeforeClose"
|
|
16
16
|
:closable="false"
|
|
17
|
-
:askForCloseConfirmation="popupMode === 'generation' ? true : false"
|
|
18
|
-
:closeConfirmationText="t('Are you sure you want to close without saving?')"
|
|
19
17
|
:buttons="popupMode === 'generation' ? generationModeButtons : popupMode === 'settings' ? [
|
|
20
18
|
{
|
|
21
19
|
label: t('Save settings'),
|
|
@@ -185,6 +183,7 @@ import { useFiltersStore } from '@/stores/filters';
|
|
|
185
183
|
|
|
186
184
|
const coreStore = useCoreStore();
|
|
187
185
|
const filtersStore = useFiltersStore();
|
|
186
|
+
const showCloseConfirmModal = ref(false);
|
|
188
187
|
|
|
189
188
|
const { t } = useI18n();
|
|
190
189
|
const props = defineProps<{
|
|
@@ -319,7 +318,7 @@ const generationModeButtons = computed(() => {
|
|
|
319
318
|
options: {
|
|
320
319
|
class: 'bg-white hover:!bg-gray-100 !text-gray-900 hover:!text-gray-800 dark:!bg-gray-800 dark:!text-gray-100 dark:hover:!bg-gray-700 !border-gray-200 dark:!border-gray-600'
|
|
321
320
|
},
|
|
322
|
-
onclick: (dialog) =>
|
|
321
|
+
onclick: async (dialog) => { await handleBeforeClose(dialog); }
|
|
323
322
|
},
|
|
324
323
|
]
|
|
325
324
|
|
|
@@ -336,6 +335,28 @@ const generationModeButtons = computed(() => {
|
|
|
336
335
|
return arrayToReturn;
|
|
337
336
|
});
|
|
338
337
|
|
|
338
|
+
const handleBeforeClose = async (dialog?: any) => {
|
|
339
|
+
if (popupMode.value === 'generation') {
|
|
340
|
+
const confirmed = await adminforth.confirm({
|
|
341
|
+
title: t('Close without saving?'),
|
|
342
|
+
message: t('Are you sure you want to close without saving?'),
|
|
343
|
+
yes: t('Yes'),
|
|
344
|
+
no: t('Cancel'),
|
|
345
|
+
});
|
|
346
|
+
|
|
347
|
+
if (confirmed) {
|
|
348
|
+
closeDialog();
|
|
349
|
+
|
|
350
|
+
if (confirmDialog.value && typeof confirmDialog.value.hide === 'function') {
|
|
351
|
+
confirmDialog.value.hide();
|
|
352
|
+
} else if (dialog && typeof dialog.hide === 'function') {
|
|
353
|
+
dialog.hide();
|
|
354
|
+
}
|
|
355
|
+
return true;
|
|
356
|
+
}
|
|
357
|
+
return false;
|
|
358
|
+
}
|
|
359
|
+
}
|
|
339
360
|
|
|
340
361
|
const isSavingCurrent = ref(false);
|
|
341
362
|
function checkIfDialogOpen() {
|