simple-calendar-js 3.0.11 → 3.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +48 -0
- package/CONTRIBUTING.md +49 -0
- package/README.md +110 -1334
- package/dist/simple-calendar-js.min.css +2 -2
- package/dist/simple-calendar-js.min.js +3 -3
- package/package.json +11 -3
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,54 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
9
9
|
|
|
10
10
|
No unreleased changes yet.
|
|
11
11
|
|
|
12
|
+
## [3.0.13] - 2026-03-08
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
- Simplified README from 1688 to 337 lines for better readability
|
|
16
|
+
- Moved detailed documentation to website (simplecalendarjs.com/docs)
|
|
17
|
+
- Fixed all relative links in README to use full GitHub URLs for npm compatibility
|
|
18
|
+
- Updated repository configuration for public release
|
|
19
|
+
- Added comprehensive contributing guidelines and issue templates
|
|
20
|
+
|
|
21
|
+
## [3.0.12] - 2026-03-06
|
|
22
|
+
|
|
23
|
+
### Added
|
|
24
|
+
- **Picker modes** - New `mode` configuration option enables date selection functionality
|
|
25
|
+
- `'calendar'` (default) - Standard calendar view with events
|
|
26
|
+
- `'date-picker'` - Single date selection mode for choosing individual dates
|
|
27
|
+
- `'range-picker'` - Date range selection mode for choosing start and end dates
|
|
28
|
+
- **Date selection callbacks** - New callback functions for picker modes:
|
|
29
|
+
- `onDateSelect(date)` - Triggered when a date is selected in date-picker mode
|
|
30
|
+
- `onRangeSelect(startDate, endDate)` - Triggered when a complete range is selected in range-picker mode
|
|
31
|
+
- **Selection state management** - New public API methods for programmatic date selection:
|
|
32
|
+
- `getSelectedDate()` - Returns the currently selected date (date-picker mode)
|
|
33
|
+
- `setSelectedDate(date)` - Programmatically set the selected date
|
|
34
|
+
- `getSelectedRange()` - Returns the currently selected range as `{start, end}` (range-picker mode)
|
|
35
|
+
- `setSelectedRange(startDate, endDate)` - Programmatically set the selected range
|
|
36
|
+
- `clearSelection()` - Clear all selections (works in both picker modes)
|
|
37
|
+
- **Visual selection styling** - New CSS classes for selected date states:
|
|
38
|
+
- `.uc-selected` - Single date selection highlight (date-picker mode)
|
|
39
|
+
- `.uc-in-range` - Dates within a selected range (range-picker mode)
|
|
40
|
+
- `.uc-range-start` - Start date of range selection
|
|
41
|
+
- `.uc-range-end` - End date of range selection
|
|
42
|
+
|
|
43
|
+
### Changed
|
|
44
|
+
- **Picker mode behavior** - Picker modes automatically disable event-related features:
|
|
45
|
+
- No events are fetched or displayed (`fetchEvents` is skipped)
|
|
46
|
+
- View switcher is hidden (only month view available)
|
|
47
|
+
- Day numbers are always centered (both horizontally and vertically)
|
|
48
|
+
- Today's date is not highlighted to avoid confusion with selection
|
|
49
|
+
- Month day number alignment option is ignored (always centered in picker modes)
|
|
50
|
+
- **Range selection interaction** - In range-picker mode:
|
|
51
|
+
- First click selects the start date
|
|
52
|
+
- Second click selects the end date
|
|
53
|
+
- Dates are automatically ordered (start always before end)
|
|
54
|
+
- Third click starts a new range selection
|
|
55
|
+
- Complete range highlights all dates between start and end
|
|
56
|
+
|
|
57
|
+
### Fixed
|
|
58
|
+
- Day number positioning in picker modes now consistently centered regardless of `monthDayNumberAlign` setting
|
|
59
|
+
|
|
12
60
|
## [3.0.11] - 2026-03-04
|
|
13
61
|
|
|
14
62
|
### Added
|
package/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# Contributing to SimpleCalendarJs
|
|
2
|
+
|
|
3
|
+
Thank you for your interest in SimpleCalendarJs!
|
|
4
|
+
|
|
5
|
+
## Contribution Policy
|
|
6
|
+
|
|
7
|
+
**This project does not accept code contributions, pull requests, or external modifications.**
|
|
8
|
+
|
|
9
|
+
SimpleCalendarJs is maintained as a commercial product with a dual-licensing model:
|
|
10
|
+
- Free for personal and non-commercial use
|
|
11
|
+
- Paid commercial licenses for business use
|
|
12
|
+
|
|
13
|
+
To maintain code quality and licensing integrity, all development is handled exclusively by the project maintainer.
|
|
14
|
+
|
|
15
|
+
## How You Can Help
|
|
16
|
+
|
|
17
|
+
While we don't accept code contributions, you can still help improve SimpleCalendarJs:
|
|
18
|
+
|
|
19
|
+
### Report Issues
|
|
20
|
+
If you encounter bugs or have feature requests, please:
|
|
21
|
+
1. Open an issue on [GitHub Issues](https://github.com/pclslopes/SimpleCalendarJs/issues)
|
|
22
|
+
2. Provide detailed information:
|
|
23
|
+
- Steps to reproduce the problem
|
|
24
|
+
- Expected vs actual behavior
|
|
25
|
+
- Browser and version information
|
|
26
|
+
- Code snippets or examples
|
|
27
|
+
|
|
28
|
+
### Share Feedback
|
|
29
|
+
- Feature suggestions are welcome via GitHub Issues
|
|
30
|
+
- User experience feedback helps improve the library
|
|
31
|
+
- Documentation improvements can be suggested
|
|
32
|
+
|
|
33
|
+
### Support Other Users
|
|
34
|
+
- Help answer questions in GitHub Issues
|
|
35
|
+
- Share your implementation examples
|
|
36
|
+
- Write blog posts or tutorials about using SimpleCalendarJs
|
|
37
|
+
|
|
38
|
+
## Commercial Licensing
|
|
39
|
+
|
|
40
|
+
For commercial use, please purchase a license at:
|
|
41
|
+
https://www.simplecalendarjs.com
|
|
42
|
+
|
|
43
|
+
For licensing inquiries: simplecalendarjs@gmail.com
|
|
44
|
+
|
|
45
|
+
## Questions?
|
|
46
|
+
|
|
47
|
+
If you have questions about this policy or the project, feel free to open a discussion in GitHub Issues.
|
|
48
|
+
|
|
49
|
+
Thank you for understanding and supporting SimpleCalendarJs!
|