- Fix:
file_upload_settings
not getting updated when set withsetOptions
, fixed it by calling the configure axios method
- Fix: An undefined variable bug caused by the method that returns the attached form field as an HTML element or undefined if not provided.
-
Fix: Typescript bugs caused by not setting optional options as optional.
-
Fix: The bug caused by not selecting the provided form field element by query selector before passing it to the FormData object.
-
Fix: Bug caused by trying to get
file
key from the returned data in the progress event listener in the elegant UI type before file upload.
- Fix: A bug caused by trying to update
_custupDefaultUploadSentence
option insetOptions
method.
- Fix: Corrected the type mistake made in version 1.1.2 by removing
targetRootElement
, it is now optional in type but still required by CustUp.
- Fix: Fixed setOptions type bug by removing
targetRootElement
which is required by CustUp but cannot be set withsetOptions
.
- New: Moved the option types to a new file
- New: Added option types to the
setOptions
method
- New: CustUp now extends
EventTarget
and it can now trigger events, and events triggered by CustUp can be listened for by calling theaddEventListener
or theon
method - New: Options are now set with the setOptions method
- New: Added setOptions method
- New: Added
on
method as a shortcut for listening for CustUp events - Fix: Default UI tool dragger removed and replaced with tools in the header
- Fix: Bug caused by former event emitter
- Fix: Bugs in the documentation bugs
- Remove: Tool dragger has been removed
- Fix: Unhandled fetch exception when loading default files.
- Fix: Added toggle button to toggle add new file UI visible or hidden to the Elegant UI type.
- New: Added hide_add_file_ui method
- New: Added is_add_file_ui_shown
- New: Added chunk upload
- New: Added new UI type: elegant
- Fix: file persistent storage method, files are now stored as ObjectURL on https and base64 on http
- New: Added auto upload for files added to the UI when files are still uploading
- New: Added option display_file_sources: if set to false the file sources will not be listed on the default UI.
- New: New event: 'file_source.closed' event that gets triggered when file source popup is closed.
- New: New method: display_message
- New: New method: get_file_sources
- New: Added two options to file_upload option: chunk_size and should_chunk.
- New: Added messages option for configuring messages with timeout option.
- New: Added event 'default_ui.shown' and 'default_ui.closed'.
- New: Added clear_persisted_files method.
- New: Added close_file_source_popup method.
- New: Added new option show_upload_progress_bar.
- New: Added upload_all_finished event.
- New: Added select_file_from_device method.
- New: Added custup options typescript types
- New: Added typescript support
- Fix: a bug in custom scroll on touch devices caused by a test case that I forgot to remove.
- Fix: Custom scroll on touch devices.
- New: Added file size to detached UI type.
- New: Handled mobile device tools, in which tools are displayed currently in the header for default UI on mobile devices and the movable panel on bigger screens.
- New: Added new option
show_ui_tools_on_mobile_devices
for specifying if the header container should be filled with tools on mobile devices or not.