feat: add FormKit framework support and update dependencies

- Add `telecart_forms` table migration and default checkout form seeder
- Implement `FormsHandler` to fetch form schemas
- Update `OrderCreateService` to handle custom fields in order comments
- Add `update` method to QueryBuilder and Grammar
- Add `Arr::except` helper
- Update composer dependencies (Carbon, Symfony, PHPUnit, etc.)
- Improve `MigratorService` error handling
- Add unit tests for new functionality
This commit is contained in:
2025-11-15 01:23:17 +03:00
committed by Nikita Kiselev
parent ae9771dec4
commit 6a59dcc0c9
69 changed files with 12529 additions and 416 deletions

View File

@@ -0,0 +1,14 @@
import {defineStore} from "pinia";
import {apiPost} from "@/utils/http.js";
export const useFormsStore = defineStore('forms', {
state: () => ({}),
actions: {
async getFormByAlias(alias) {
return await apiPost('getFormByAlias', {
alias,
});
}
},
});

View File

@@ -63,6 +63,15 @@ export const useSettingsStore = defineStore('settings', {
},
mainpage_blocks: [],
forms: {
checkout: {
alias: '',
friendly_name: '',
is_custom: false,
schema: [],
}
},
},
}),