606 Commits

Author SHA1 Message Date
Micha
196db8febb WIP: ES6 module conversion and webpack refactoring
- Convert all IIFE modules to ES6 modules with attach functions
- Split webpack configs: lib build vs demo build
- Add UMD wrapper for auto-initialization with jQuery
- Update package.json with sequential build scripts
- Clean up legacy dist files and reorganize demo structure

Status: jQuery timing issues remain - attach functions not accessible
Next: Debug UMD factory execution and jQuery parameter passing
es6-conversion-wip
2025-07-31 14:38:37 +02:00
Micha
09358eaaf6 v25.0.7: Fix distribution file dependencies and production click handler issues
## Major Fix - Production Distribution Dependencies
- Fix missing click handlers in production by ensuring proper dependency management
- Add select2 to Gruntfile.js common inputs to include it in built distribution
- Resolve 'this.$input.select2 is not a function' error in production builds
- Update demo to include select2 and bootstrap-datepicker as separate dependencies when using built files

## Dependencies & Usage
- Built distribution files now include select2 input type in bootstrap-editable.min.js
- Users must include select2 and bootstrap-datepicker separately when using built files:
  - import 'select2' and 'select2/dist/css/select2.min.css'
  - import 'bootstrap-datepicker' and 'bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css'
- This matches standard JavaScript library dependency patterns

## Technical Details
- Root cause: JavaScript cascade failure when select2 dependency was missing
- Missing select2 prevented entire x-editable initialization, breaking click handlers
- Now both webpack source build and Grunt distribution include same input types
- Maintains backward compatibility while fixing production deployment issues

## Fixes Production Issues
-  Click handlers now properly attach in production
-  Form submission logic works correctly
-  All input types functional (text, select, select2, date, etc.)
-  Proper event binding and library initialization
-  No more 'Unknown type: select2' errors
2025-07-29 16:11:16 +02:00
Micha
18b0e40de9 Remove webpack-generated demo files from git tracking
- Add dist/fonts/, demo JS files, and webpack artifacts to .gitignore
- Remove committed bootstrap-icons fonts (generated by webpack)
- Remove committed app.js, jquery.js and related files (generated by webpack)
- These files should be generated locally via 'npx webpack' and not committed
2025-07-29 15:43:02 +02:00
Micha
1ae5282bc7 v25.0.6: Fix bootstrap-datepicker and select2 integration for Bootstrap 5
Major improvements and fixes:

## Bootstrap-datepicker Integration
- Fix DPGlobal undefined error in date input
- Remove conflicting bdatepicker alias that was causing noConflict errors
- Add graceful error handling for missing bootstrap-datepicker dependency
- Implement proper initialization sequence for DPGlobal API
- Position datepicker above input with improved UX styling

## Select2 Integration & Compatibility
- Fix select2 integration with Select2 v4.1.0-rc.0
- Resolve issue where select2:select event fired but value didn't update
- Add event handler to manually update select2 value on selection
- Fix webpack build inconsistency between demo and standalone builds
- Remove redundant npm dependencies from demo (bootstrap-datepicker, select2)
- Implement proper Select2 v4 API usage for value setting

## Build System Improvements
- Fix webpack configuration to properly handle CSS imports
- Remove CSS file copying for npm dependencies, use webpack imports instead
- Ensure consistent input type registration across all build targets
- Clean up build output and remove debugging code

## Demo & Testing
- Update demo to use webpack source build for consistency
- Add comprehensive error handling and user feedback
- Clean up all debugging console output
- Improve demo page descriptions and usability

## Technical Fixes
- Fix 'Unknown type: select2' error in demo build
- Resolve value change detection preventing save operations
- Implement savenochange option for better UX
- Remove deprecated jQuery UI conflicts and aliases
- Update to modern webpack and build practices
2025-07-29 13:36:06 +02:00
Micha
f2a298f73a Bundle select2 as npm dependency instead of local files
- Added select2 as npm dependency
- Removed local select2 library files to eliminate duplication
- Updated webpack config to copy select2.css to dist folder
- Added global jQuery attachment fix for select2
- Updated README to reflect bundled dependency approach
- Enabled select2 demo functionality
2025-07-28 13:14:59 +02:00
Micha
dda7550181 Fix select2 library dependency checks
- Added safety checks for select2 library availability
- Prevents TypeError when select2 library not loaded
- Falls back to regular input behavior when select2 unavailable
- Fixed getSeparator function to handle missing select2 defaults
2025-07-28 12:54:17 +02:00
Micha
9d84a1f21d Restore select2 input functionality after Bootstrap 5 cleanup
- Restored select2 input type from earlier commit d4adf5e^
- Added select2 import to bootstrap5-editable.js bundle
- Updated demo with select2 example (requires select2 library)
- Enhanced README.md with comprehensive select2 documentation
- Includes support for static sources, AJAX sources, and advanced configuration
- Select2 library must be included separately (not bundled)
2025-07-28 12:48:43 +02:00
Micha
46a32e3c20 Remove remaining screenshot files 2025-07-27 16:43:19 +02:00
Micha
2981c3dd73 Remove screenshots from repository 2025-07-27 16:42:17 +02:00
Micha
6ea537cd55 Fix datepicker workflow to match legacy behavior
- Implement proper button hiding/showing workflow for datepicker inputs
- Buttons now hidden initially when datepicker opens
- Buttons appear only after date selection, not immediately
- Datepicker closes automatically after date selection
- Enhanced CSS specificity for reliable button control
- Robust fallback methods for datepicker closing
- Update to version 25.0.5
2025-07-27 16:40:58 +02:00
Micha
53bc5ef34e Fix CSS layout issues for Bootstrap 5 inline editing
- Add flexbox layout for inline editing forms
- Constrain select dropdown maximum width to prevent overflow
- Improve button styling and spacing
- Fix alignment issues in inline mode
- Bump version to 25.0.2
2025-07-27 15:11:10 +02:00
Micha
4e840a540e Add repository mirrors documentation
- Update package.json with correct repository URL and mirrors array
- Add Repository section to README.md showing main repo and mirrors
- Clarify that git.24unix.net is the primary development repository
2025-07-27 14:33:30 +02:00
Micha
62674ffd54 Update dist files after demo reorganization 2025-07-27 14:16:01 +02:00
Micha
165ea9c993 Update README.md with Bootstrap 5 focus and demo instructions
- Emphasize drop-in replacement for legacy BS3 projects
- Highlight core functionality: selects and datepickers
- Add demo server instructions (php -S 0.0.0.0:8000)
- Include comprehensive installation and migration guide
- Add build instructions and dependencies list
2025-07-27 14:14:19 +02:00
Micha
9524a8acf8 Reorganize project structure and finalize Bootstrap 5 cleanup
- Create demo folder and move test files with proper naming
- Rename test.html/js/php to demo/index.html/demo.js/demo.php
- Update Gruntfile.js to Bootstrap 5 only configuration
- Clean up package.json dependencies (remove unused webpack/popper.js)
- Remove non-Bootstrap 5 dist directories
- Update webpack config to use demo files
- Fix demo paths and ensure fully functional demo
2025-07-27 14:08:17 +02:00
Micha
d4adf5e6e2 Remove legacy framework support: clean up for Bootstrap 5 only
- Remove all Bootstrap 2/3 source files and containers
- Remove jQuery UI datepicker dependencies and files
- Remove legacy input extensions (select2, typeahead, wysihtml5)
- Remove old test framework libraries
- Clean up dist files to match source removal
- Prepare codebase for Bootstrap 5 only distribution
2025-07-27 13:32:49 +02:00
Micha
ab45b130b1 Clean up debug code: remove all console.log statements
- Removed all debug console.log statements from source files
- Cleaned up date.js and datefield.js of debugging output
- Simplified test.js by removing extensive debug logging
- Reduced bundle size and improved production readiness
- Maintained all functionality while removing debug clutter

Code is now production-ready without console noise.
2025-07-26 15:46:30 +02:00
Micha
3eacb7c438 Enhance datepicker UX: position above input with proper styling
- Added CSS positioning to display inline datepicker above input field
- Enhanced datepicker styling with background, border and shadow
- Improved template with datepicker-above class for better positioning
- Maintains Bootstrap 5 compatibility and inline mode functionality

This provides a better user experience by preventing the datepicker
from appearing below and potentially being cut off by page boundaries.
2025-07-26 15:33:02 +02:00
Micha
f4dc8a3dd0 Fix datepicker functionality for Bootstrap 5 x-editable
- Updated Gruntfile to use npm bootstrap-datepicker instead of bundled version
- Fixed DPGlobal reference from bdatepicker to datepicker
- Changed mode from inline to popup to ensure date input type is used
- Fixed missing type assignment in editable element initialization
- Enhanced input2value function with fallback logic to extract dates from dates array
- Added comprehensive debugging and error handling
- Datepicker now properly opens, captures selections, and submits formatted dates
2025-07-26 14:25:39 +02:00
Micha
1dbf4d2fa7 bufixed on json source 2025-07-02 17:41:13 +02:00
Micha
fa96bccbf3 datepicker working 2025-03-09 12:19:33 +01:00
Micha
8d6ea5e084 added bs5 images 2025-03-04 14:51:12 +01:00
Micha
55d950d703 added bs5 images 2025-03-04 14:33:33 +01:00
Micha
80932401bd added bs5 images 2025-03-04 14:24:35 +01:00
Micha
af31afd34b fixed jQuery dprecations 2025-03-03 12:53:00 +01:00
Micha
30f1b9a6a9 fixed jQuery dprecations 2025-03-03 12:43:56 +01:00
Micha
d0d10a7e90 fixed jQuery dprecations 2025-03-03 12:16:55 +01:00
Micha
8176c13006 fixed jQuery dprecations 2025-03-03 11:59:50 +01:00
Micha
4d360c3749 fixed jQuery dprecations 2025-03-03 11:57:30 +01:00
Micha
323de3b9e3 fixed jQuer dprecations 2025-03-03 11:56:17 +01:00
Micha
2d450fe257 updted README.md 2025-02-23 17:56:24 +01:00
Micha
39bb5a3e71 updted README.md 2025-02-23 15:59:23 +01:00
Micha
5209d2f85d adapted README.md 2025-02-21 17:32:33 +01:00
Micha
aab5a76501 Merge branch 'bootstrap-5.3' 2025-02-21 17:25:47 +01:00
Micha
263c9ab3c4 Bootstrap 5 works 2025-02-21 17:25:26 +01:00
Micha
94b34e6256 Bootstrap5 support 2025-02-21 16:57:59 +01:00
Vitaliy Potapov
ce55af42ca Update README.md 2025-02-11 13:56:24 +04:00
MarQuis Knox
bbbd2e2b40 Update README.md 2017-01-10 13:37:34 +01:00
MarQuis Knox
5e3f54c0dd UPDATED: README.md
Updated branch to submit Pull Requests
2017-01-10 13:35:55 +01:00
MarQuis Knox
b510cc86b9 Update README.md 2016-12-20 18:31:11 +01:00
MarQuis Knox
dc8967d116 Update README.md 2016-12-18 22:26:41 +01:00
lorvent
3e983bc6d2 Merge pull request from wenzhixin/patch-1
fix : success is not defined bug
2016-05-08 09:54:23 -04:00
wenzhixin
fe5b56a9c2 fix : success is not defined bug 2016-05-08 14:49:27 +08:00
lorvent
e03afb2436 Merge pull request from psaintlaurent/patch-1
Incorrect deferred implementation
2016-03-18 21:19:28 +05:30
Patrick St. laurent
93789de24d Typo in github editor 2016-03-11 12:35:35 -05:00
Patrick St. laurent
a55709c990 Update bootstrap-editable.js 2016-03-11 12:33:08 -05:00
Patrick St. laurent
9275da7cfc Incorrect deferred implementation
This function creates a success object and a deferred object but the success object is never established as a handler for the deferred.  In practice this means that the display callback is never executed and values are never rendered.
2016-03-11 01:14:54 -05:00
lorvent
717d7f8594 Merge pull request from AleksandrChernyavenko/master
default value for combodate.maxYear ( must be current year, not 2015 )
2016-03-02 01:03:55 +00:00
AleksandrChernyavenko
85fa502f2c default value for combodate.maxYear
Set default value  for combodate.maxYear to current year
2016-03-01 11:48:55 +02:00
lorvent
565f730945 Merge pull request from tasarsu/patch-1
Bower jquery version change
2016-02-09 01:06:11 -05:00