@oneluiz/dual-datepicker 4.0.0 → 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.
- package/README.md +26 -2
- package/fesm2022/oneluiz-dual-datepicker.mjs +71 -69
- package/fesm2022/oneluiz-dual-datepicker.mjs.map +1 -1
- package/package.json +6 -8
- package/dual-datepicker.component.d.ts +0 -243
- package/esm2022/core/built-in-presets.mjs +0 -289
- package/esm2022/core/calendar-grid/cache.config.mjs +0 -35
- package/esm2022/core/calendar-grid/calendar-grid.cache.mjs +0 -98
- package/esm2022/core/calendar-grid/calendar-grid.factory.mjs +0 -97
- package/esm2022/core/calendar-grid/calendar-grid.types.mjs +0 -8
- package/esm2022/core/calendar-grid/range-highlighter.cache.mjs +0 -200
- package/esm2022/core/calendar-grid/range-highlighter.mjs +0 -185
- package/esm2022/core/calendar-grid/range-highlighter.types.mjs +0 -11
- package/esm2022/core/calendar-grid/virtual-weeks.logic.mjs +0 -149
- package/esm2022/core/calendar-grid/virtual-weeks.types.mjs +0 -11
- package/esm2022/core/date-adapter.mjs +0 -77
- package/esm2022/core/date-clock.mjs +0 -65
- package/esm2022/core/dual-date-range.store.mjs +0 -329
- package/esm2022/core/internal.mjs +0 -92
- package/esm2022/core/native-date-adapter.mjs +0 -286
- package/esm2022/core/preset-providers.mjs +0 -243
- package/esm2022/core/preset-registry.mjs +0 -277
- package/esm2022/core/preset.engine.mjs +0 -179
- package/esm2022/core/public.mjs +0 -94
- package/esm2022/core/range-preset.plugin.mjs +0 -70
- package/esm2022/core/range.validator.mjs +0 -105
- package/esm2022/core/system-clock.mjs +0 -34
- package/esm2022/core/testing/date.helpers.mjs +0 -49
- package/esm2022/core/testing/fixed-clock.mjs +0 -30
- package/esm2022/core/testing/index.mjs +0 -8
- package/esm2022/dual-datepicker.component.mjs +0 -1314
- package/esm2022/oneluiz-dual-datepicker.mjs +0 -5
- package/esm2022/public-api.mjs +0 -43
- package/index.d.ts +0 -5
- package/public-api.d.ts +0 -44
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
|
-
>
|
|
6
|
-
> **🆕
|
|
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
|
[](https://www.npmjs.com/package/@oneluiz/dual-datepicker)
|
|
9
10
|
[](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.
|