refactor: migrate Element_ae_crud v1/v2 usages to element_ae_obj_field_editor_v3
Replace all active Element_ae_crud (v1) and Element_ae_crud_v2 usages across 22 files with Element_ae_obj_field_editor_v3. Also remove 9 commented-out v1 imports that were dead code. Key changes: - Remove trigger_patch pattern; replace with direct api.update_ae_obj_v3() calls - Replace field_value prop with current_value, on:ae_crud_updated with on_success - Remove legacy props: api_cfg, hide_edit_btn, outline_element, show_crud, display_inline, display_block_edit (→ display_block), class_li - field_type 'boolean' → 'checkbox', 'email' → 'text' (v3 has no email type) - Replace core_func.update_ae_obj_id_crud_v2() with api.update_ae_obj_v3() - Keep core_func where still used (QR code generation, person create) Files: presenter_view, person_view, location_view, device_obj_li, presentation_obj_li, session_view, launcher_file_cont, session_alert, event/session/location/presenter page menus, leads exhibit tracking page Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
import type { key_val } from '$lib/stores/ae_stores';
|
||||
import { ae_util } from '$lib/ae_utils/ae_utils';
|
||||
// import { api } from '$lib/api';
|
||||
// import Element_ae_crud from '$lib/element_ae_crud.svelte';
|
||||
// import Element_data_store from '$lib/element_data_store_v3.svelte';
|
||||
|
||||
// import { core_func } from '$lib/ae_core_functions';
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
import type { key_val } from '$lib/stores/ae_stores';
|
||||
// import { ae_util } from '$lib/ae_utils/ae_utils';
|
||||
// import { api } from '$lib/api';
|
||||
// import Element_ae_crud from '$lib/element_ae_crud.svelte';
|
||||
// import Element_data_store from '$lib/element_data_store_v3.svelte';
|
||||
import Element_manage_hosted_file_li from '$lib/elements/element_manage_hosted_file_li.svelte';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user