refactor: update renderer.js to use ModalManager for all dialogs

- Import ModalManager and create instances for all 10 dialogs
- Replace classList.add/remove('hidden') with modal.open()/close()
- Remove duplicate backdrop click and escape key handlers (now handled by ModalManager)
- Update print-preview.js to use ModalManager when available
- Add CommonJS export to ModalManager for renderer compatibility

Dialogs updated:
- find-dialog (findModal)
- export-dialog (exportModal)
- print-preview-overlay (printPreviewModal)
- table-generator-dialog (tableModal)
- ascii-art-dialog (asciiModal)
- universal-converter-dialog (converterModal)
- batch-dialog (batchModal)
- pdf-editor-dialog (pdfEditorModal)
- header-footer-dialog (headerFooterModal)
- field-picker-dialog (fieldPickerModal)

Amit Haridas
This commit is contained in:
2026-03-24 16:44:20 +05:30
parent 6bac18d270
commit 2022352ed1
3 changed files with 67 additions and 98 deletions
+3
View File
@@ -216,3 +216,6 @@ export class ModalManager {
// Export for use in renderer
window.ModalManager = ModalManager;
// CommonJS export
module.exports = { ModalManager };