- Updated fcTemplateLang to accept an autoCompleteObject parameter, improving JavaScript autocompletion capabilities.
- Introduced a new schema.js file defining XML attributes and elements for FarmControl templates, enhancing template editing.
- Modified CodeBlockEditor and ObjectProperty components to pass autoCompleteObject, ensuring consistent autocompletion behavior.
- Updated TemplateEditor to utilize objectData for autocompletion, improving user experience in template editing.
- Introduced a new language support for EJS templates with XML integration, allowing for custom scriptlets and improved syntax highlighting.
- Updated CodeBlockEditor and TemplateEditor components to utilize the new fcTemplateLang for EJS language handling.
- Modified DocumentTemplate model to reflect the new language type for content.
- Added necessary grammar and parser files for fcTemplateLang, enhancing the overall template editing experience.
- Updated TemplateEditor to use useCallback for handlePreviewMessage, optimizing performance.
- Enhanced TemplatePreview by adding default no-op functions for onTestObjectOpen and onPreviewMessage props.
- Improved error handling in fetchTemplatePDF and fetchTemplatePreview methods to ensure callbacks are only invoked if they are functions.
- Refactored preview loading logic to prevent unnecessary calls when template ID is not available.
- Added a disabled state to the info button based on global object data.
- Adjusted preview scale increment and decrement values for finer control.
- Introduced a read-only button to display the current preview scale.
- Wrapped the ObjectProperty component in a scrollable div for better visibility in the modal.
- Increased modal width for improved layout and user experience.
- Introduced DocumentPrinters, DocumentSizes, and DocumentTemplates components for managing respective entities.
- Added corresponding info and design components for each entity.
- Created new SVG icons for document-related functionalities.
- Implemented hooks for column visibility and view mode management in the new components.
- Enhanced user experience with action buttons and modals for creating new entries.