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:
24
frontend/admin/src/formkit.config.js
Normal file
24
frontend/admin/src/formkit.config.js
Normal file
@@ -0,0 +1,24 @@
|
||||
import {ru} from '@formkit/i18n';
|
||||
import * as allIcons from '@formkit/icons';
|
||||
import {rootClasses} from './formkit.theme.mjs';
|
||||
|
||||
// Собираем все иконки в плоский объект
|
||||
const icons = {};
|
||||
Object.values(allIcons).forEach(group => {
|
||||
if (typeof group === 'object') {
|
||||
Object.assign(icons, group);
|
||||
}
|
||||
});
|
||||
|
||||
const config = {
|
||||
locales: {ru},
|
||||
locale: 'ru',
|
||||
icons: {
|
||||
...icons,
|
||||
},
|
||||
config: {
|
||||
rootClasses,
|
||||
},
|
||||
};
|
||||
|
||||
export default config;
|
||||
Reference in New Issue
Block a user