Commit Graph

36 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
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
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
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
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
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
39bb5a3e71 updted README.md 2025-02-23 15:59:23 +01:00
Micha
263c9ab3c4 Bootstrap 5 works 2025-02-21 17:25:26 +01:00
vitalets
f965327b65 bump 1.5.1 in package json for dev 2013-10-07 12:52:39 +04:00
vitalets
228ad2b9c0 bump 1.5.0 2013-09-21 16:48:38 +04:00
vitalets
e14dd3398d bump ver 1.4.7 2013-08-31 14:09:11 +04:00
vitalets
0abd9831ae migrate to grunt 0.4 2013-08-31 13:15:19 +04:00
vitalets
27bf7b6d1e set ver 1.4.6 in package.json for dev purposes 2013-06-26 10:30:14 +04:00
vitalets
c6cc86e238 bump ver 1.4.5 2013-06-23 17:31:46 +04:00
vitalets
a2b5f4140d datetimefield test ready 2013-04-02 13:55:49 +04:00
vitalets
79f2293e44 fix utc and clear 2013-04-01 14:44:17 +04:00
vitalets
9741ebb776 set ver 1.4.4 in package.json 2013-03-18 17:04:02 +04:00
vitalets
ba29222103 set ver to 1.4.3 2013-03-08 14:46:15 +04:00
vitalets
31e39ab988 set ver 1.4.2 2013-02-05 00:32:36 +04:00
vitalets
0c1316b94f set version 1.4.1 2013-01-14 12:34:14 +04:00
vitalets
d375c57e97 set ver 1.4.0 2013-01-01 23:48:03 +04:00
vitalets
e13a63e391 set version 1.3.0 2012-12-10 21:01:06 +04:00
vitalets
212d161f08 bump ver 1.2.0 2012-12-05 14:14:40 +04:00
vitalets
ad42011868 bump ver 1.1.1 2012-11-29 19:09:03 +04:00
vitalets
30f7c20360 set version 1.1.0 2012-11-27 15:40:36 +04:00
vitalets
592b3f7fdc set ver 1.0.1 + changelog 2012-11-22 18:22:25 +04:00
vitalets
bb207f051a fix dependencies 2012-11-21 22:47:40 +04:00
vitalets
fc7095d6ee comments for docs 2012-11-15 22:29:56 +04:00
vitalets
8a64d3fb28 yuidoc comments 2012-11-12 22:04:01 +04:00
vitalets
ccdff0ee51 init 2012-11-09 12:58:42 +04:00