@oneluiz/dual-datepicker 3.9.3 → 4.0.1

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.
Files changed (65) hide show
  1. package/README.md +26 -2
  2. package/fesm2022/oneluiz-dual-datepicker.mjs +696 -1040
  3. package/fesm2022/oneluiz-dual-datepicker.mjs.map +1 -1
  4. package/package.json +16 -8
  5. package/core/built-in-presets.d.ts +0 -98
  6. package/core/calendar-grid/cache.config.d.ts +0 -34
  7. package/core/calendar-grid/calendar-grid.cache.d.ts +0 -39
  8. package/core/calendar-grid/calendar-grid.factory.d.ts +0 -26
  9. package/core/calendar-grid/calendar-grid.types.d.ts +0 -57
  10. package/core/calendar-grid/index.d.ts +0 -56
  11. package/core/calendar-grid/range-highlighter.cache.d.ts +0 -106
  12. package/core/calendar-grid/range-highlighter.d.ts +0 -85
  13. package/core/calendar-grid/range-highlighter.types.d.ts +0 -182
  14. package/core/calendar-grid/virtual-weeks.logic.d.ts +0 -116
  15. package/core/calendar-grid/virtual-weeks.types.d.ts +0 -71
  16. package/core/date-adapter.d.ts +0 -298
  17. package/core/date-clock.d.ts +0 -82
  18. package/core/dual-date-range.store.d.ts +0 -113
  19. package/core/index.d.ts +0 -33
  20. package/core/native-date-adapter.d.ts +0 -152
  21. package/core/preset-providers.d.ts +0 -176
  22. package/core/preset-registry.d.ts +0 -181
  23. package/core/preset.engine.d.ts +0 -124
  24. package/core/range-preset.plugin.d.ts +0 -188
  25. package/core/range.validator.d.ts +0 -37
  26. package/core/system-clock.d.ts +0 -13
  27. package/date-adapter.d.ts +0 -116
  28. package/dual-datepicker.component.d.ts +0 -243
  29. package/esm2022/core/built-in-presets.mjs +0 -289
  30. package/esm2022/core/calendar-grid/cache.config.mjs +0 -35
  31. package/esm2022/core/calendar-grid/calendar-grid.cache.mjs +0 -98
  32. package/esm2022/core/calendar-grid/calendar-grid.factory.mjs +0 -97
  33. package/esm2022/core/calendar-grid/calendar-grid.types.mjs +0 -8
  34. package/esm2022/core/calendar-grid/index.mjs +0 -57
  35. package/esm2022/core/calendar-grid/range-highlighter.cache.mjs +0 -200
  36. package/esm2022/core/calendar-grid/range-highlighter.mjs +0 -185
  37. package/esm2022/core/calendar-grid/range-highlighter.types.mjs +0 -11
  38. package/esm2022/core/calendar-grid/virtual-weeks.logic.mjs +0 -149
  39. package/esm2022/core/calendar-grid/virtual-weeks.types.mjs +0 -11
  40. package/esm2022/core/date-adapter.mjs +0 -77
  41. package/esm2022/core/date-clock.mjs +0 -65
  42. package/esm2022/core/dual-date-range.store.mjs +0 -329
  43. package/esm2022/core/index.mjs +0 -37
  44. package/esm2022/core/native-date-adapter.mjs +0 -286
  45. package/esm2022/core/preset-providers.mjs +0 -243
  46. package/esm2022/core/preset-registry.mjs +0 -277
  47. package/esm2022/core/preset.engine.mjs +0 -179
  48. package/esm2022/core/range-preset.plugin.mjs +0 -70
  49. package/esm2022/core/range.validator.mjs +0 -105
  50. package/esm2022/core/system-clock.mjs +0 -34
  51. package/esm2022/date-adapter.mjs +0 -12
  52. package/esm2022/dual-datepicker.component.mjs +0 -1312
  53. package/esm2022/native-date-adapter.mjs +0 -117
  54. package/esm2022/oneluiz-dual-datepicker.mjs +0 -5
  55. package/esm2022/preset-utils.mjs +0 -276
  56. package/esm2022/public-api.mjs +0 -13
  57. package/index.d.ts +0 -5
  58. package/native-date-adapter.d.ts +0 -26
  59. package/preset-utils.d.ts +0 -91
  60. package/public-api.d.ts +0 -9
  61. package/src/themes/bootstrap.scss +0 -202
  62. package/src/themes/bulma.scss +0 -209
  63. package/src/themes/custom.scss +0 -236
  64. package/src/themes/foundation.scss +0 -201
  65. package/src/themes/tailwind.scss +0 -109
package/README.md CHANGED
@@ -2,8 +2,9 @@
2
2
 
3
3
  A lightweight, zero-dependency date range picker for Angular 17+. Built with standalone components, Reactive Forms, and Angular Signals. No Angular Material required.
4
4
 
5
- > **🆕 NEW in v3.5.1**: [**Timezone-Safe Date Adapter**](docs/TIMEZONE_ADAPTER.md) - Fixes enterprise-critical timezone bugs in ERP, BI, POS, and invoicing systems 🛡️
6
- > **🆕 NEW in v3.5.0**: [**Headless Architecture**](docs/HEADLESS.md) - Use date range state WITHOUT the UI component. Perfect for SSR, services, and global dashboard filters! 🎯
5
+ > **🚀 v4.0.0**: [**Public API Formalization**](#v400-public-api-formalization) - Stable, documented API contract. ~50% smaller package. Better tree-shaking. Breaking changes documented in [CHANGELOG.md](CHANGELOG.md) 📦
6
+ > **🆕 v3.5.1**: [**Timezone-Safe Date Adapter**](docs/TIMEZONE_ADAPTER.md) - Fixes enterprise-critical timezone bugs in ERP, BI, POS, and invoicing systems 🛡️
7
+ > **🆕 v3.5.0**: [**Headless Architecture**](docs/HEADLESS.md) - Use date range state WITHOUT the UI component. Perfect for SSR, services, and global dashboard filters! 🎯
7
8
 
8
9
  [![npm version](https://img.shields.io/npm/v/@oneluiz/dual-datepicker)](https://www.npmjs.com/package/@oneluiz/dual-datepicker)
9
10
  [![npm provenance](https://img.shields.io/badge/provenance-available-brightgreen)](https://www.npmjs.com/package/@oneluiz/dual-datepicker)
@@ -22,6 +23,29 @@ npm install @oneluiz/dual-datepicker
22
23
 
23
24
  ## 🌟 What's New
24
25
 
26
+ ### v4.0.0: Public API Formalization
27
+
28
+ **Major release** formalizing the stable public API contract:
29
+
30
+ **What Changed:**
31
+ - ✅ **Stable Public API** - Clear contract with 11 main exports
32
+ - ✅ **~50% Smaller Package** - 250 KB (was 500 KB)
33
+ - ✅ **Better Tree-Shaking** - Pure ESM bundles
34
+ - ⚠️ **Breaking Changes** - Internal APIs removed, DateAdapter methods renamed
35
+
36
+ **Migration:**
37
+ ```typescript
38
+ // ❌ Before (v3.x)
39
+ import { CalendarGridFactory } from '@oneluiz/dual-datepicker';
40
+ const date = adapter.parse('2026-01-15');
41
+
42
+ // ✅ After (v4.0)
43
+ import { DualDateRangeStore } from '@oneluiz/dual-datepicker';
44
+ const date = adapter.parseISODate('2026-01-15');
45
+ ```
46
+
47
+ **[📖 Read the full migration guide in CHANGELOG.md →](CHANGELOG.md#400---2026-02-21)**
48
+
25
49
  ### Timezone-Safe Date Adapter (v3.5.1)
26
50
 
27
51
  **Fixed**: Enterprise timezone bugs that caused date ranges to shift by ±1 day.