Commit Graph

11 Commits

Author SHA1 Message Date
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
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
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
fa96bccbf3 datepicker working 2025-03-09 12:19:33 +01:00
Micha
80932401bd added bs5 images 2025-03-04 14:24:35 +01:00
Micha
263c9ab3c4 Bootstrap 5 works 2025-02-21 17:25:26 +01:00
vitalets
1b94684f39 fix grunt lineendings 2013-11-01 13:42:00 +04:00
vitalets
3b4be4f32d gruntfile: fix copy datepicker_ui 2013-10-01 23:55:19 +04:00
vitalets
e4d0cbb2dc grunt task to test bs3 only 2013-08-31 15:19:20 +04:00
vitalets
6ac0355726 build ready 2013-08-31 14:08:44 +04:00
vitalets
0abd9831ae migrate to grunt 0.4 2013-08-31 13:15:19 +04:00