ngxsmk-datepicker 3.0.4-beta.0 → 3.0.4
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 +77 -123
- package/fesm2022/ngxsmk-datepicker.mjs +1042 -1042
- package/package.json +1 -1
- package/types/ngxsmk-datepicker.d.ts +1 -1
- package/CHANGELOG.md +0 -1356
- package/LICENSE +0 -21
- package/MIGRATION.md +0 -1830
package/README.md
CHANGED
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
|
|
13
13
|
[](https://www.npmjs.com/package/ngxsmk-datepicker)
|
|
14
14
|
[](https://www.npmjs.com/package/ngxsmk-datepicker)
|
|
15
|
-
[](https://github.com/NGXSMK/ngxsmk-datepicker/actions/workflows/ci.yml)
|
|
16
15
|
[](https://angular.io/)
|
|
17
16
|
[](https://github.com/NGXSMK/ngxsmk-datepicker/blob/main/LICENSE)
|
|
18
17
|
[](https://whatsapp.com/channel/0029Vb8PWpz1XquUOnGPUM2p)
|
|
@@ -22,23 +21,21 @@
|
|
|
22
21
|
|
|
23
22
|
**`npm i ngxsmk-datepicker`**
|
|
24
23
|
|
|
25
|
-
[Live
|
|
26
|
-
|
|
27
|
-
*StackBlitz:* after it boots, run `npm install` then `npm start` in the terminal to serve the demo app (`demo-app`).
|
|
24
|
+
[Explore Live Demo](https://ngxsmk.github.io/ngxsmk-datepicker/) • [WhatsApp Channel](https://whatsapp.com/channel/0029Vb8PWpz1XquUOnGPUM2p) • [Buy me a coffee](https://buymeacoffee.com/toozuuu) • [API Documentation](https://github.com/NGXSMK/ngxsmk-datepicker/blob/main/projects/ngxsmk-datepicker/docs/API.md) • [Submit Issue](https://github.com/NGXSMK/ngxsmk-datepicker/issues)
|
|
28
25
|
|
|
29
26
|
</div>
|
|
30
27
|
|
|
31
28
|
---
|
|
32
29
|
|
|
33
|
-
**Last updated:**
|
|
30
|
+
**Last updated:** July 29, 2026 - **Current stable:** v3.0.3
|
|
34
31
|
|
|
35
32
|
### **Overview**
|
|
36
33
|
|
|
37
34
|
**ngxsmk-datepicker** is a high-performance, enterprise-ready date and range picker engineered for the modern Angular ecosystem (v17+). Built from the ground up with **Angular Signals**, it delivers a seamless, zoneless-ready experience for both desktop and mobile (Ionic) applications.
|
|
38
35
|
|
|
39
|
-
> **Stable Release**: `v3.0.
|
|
36
|
+
> **Stable Release**: `v3.0.3` is the current stable release with compiled `fesm2022` output and type declarations.
|
|
40
37
|
>
|
|
41
|
-
> **Stable line**: v2.3.x includes side-by-side **`calendars`**, **natural language input**, searchable **timezone selection dropdown UI**, dynamic range presets, and warning range highlighting. Versions **2.0.10** and **2.0.11** were broken and have been **unpublished**; use **v2.1.1+** or current **v3.0.
|
|
38
|
+
> **Stable line**: v2.3.x includes side-by-side **`calendars`**, **natural language input**, searchable **timezone selection dropdown UI**, dynamic range presets, and warning range highlighting. Versions **2.0.10** and **2.0.11** were broken and have been **unpublished**; use **v2.1.1+** or current **v3.0.3** on npm.
|
|
42
39
|
|
|
43
40
|
---
|
|
44
41
|
|
|
@@ -46,16 +43,14 @@
|
|
|
46
43
|
|
|
47
44
|
1. [📷 Screenshots](#-screenshots)
|
|
48
45
|
2. [✨ Features](#-features)
|
|
49
|
-
3. [
|
|
50
|
-
4. [
|
|
51
|
-
5. [
|
|
52
|
-
6. [
|
|
53
|
-
7. [
|
|
54
|
-
8. [
|
|
55
|
-
9. [
|
|
56
|
-
10. [
|
|
57
|
-
11. [🎨 Theming](#-theming)
|
|
58
|
-
12. [⌨️ Keyboard Navigation](#-keyboard-navigation)
|
|
46
|
+
3. [📋 Compatibility](#-compatibility)
|
|
47
|
+
4. [🌍 Localization (i18n)](#-localization-i18n)
|
|
48
|
+
5. [📦 Installation](#-installation)
|
|
49
|
+
6. [🚀 Quick Start](#-quick-start)
|
|
50
|
+
7. [🔌 Framework Integration](#-framework-integration)
|
|
51
|
+
8. [⚙️ API Reference](#-api-reference)
|
|
52
|
+
9. [🎨 Theming](#-theming)
|
|
53
|
+
10. [⌨️ Keyboard Navigation](#-keyboard-navigation)
|
|
59
54
|
|
|
60
55
|
---
|
|
61
56
|
|
|
@@ -74,7 +69,7 @@
|
|
|
74
69
|
- 💎 **Signal-Driven Engine**: Hyper-reactive state management using Angular Signals.
|
|
75
70
|
- 🌓 **Native Dark Mode**: Beautifully crafted themes for light and dark environments.
|
|
76
71
|
- 📱 **Mobile-First UX**: Native mobile picker integration with touch gestures and haptic feedback.
|
|
77
|
-
- 🧩 **
|
|
72
|
+
- 🧩 **Zero Dependencies**: Lightweight standalone component with no external bloat.
|
|
78
73
|
- ⚡ **Performance++**: Lazy-loaded calendar months, memoized calculations, and tree-shakable architecture.
|
|
79
74
|
|
|
80
75
|
### **Advanced Functionality**
|
|
@@ -83,16 +78,30 @@
|
|
|
83
78
|
- 🗓️ **Adjacent Month Days (`showOtherMonths`)**: Display trailing and leading days from adjacent months in the calendar grid.
|
|
84
79
|
- 📐 **Responsive Control (`[responsive]`)**: Disable viewport max-width responsive overrides for fixed-width container embedding (#299).
|
|
85
80
|
- 🌐 **8-Language i18n**: Full localization for `en`, `de`, `es`, `sv`, `ko`, `zh`, `ja`, and `fr`.
|
|
86
|
-
- 🔢 **ISO Week Numbers**: Optional week-number column via `[showWeekNumbers]`.
|
|
87
|
-
- ⌨️ **Guided Input Masking**: `[inputMask]` auto-inserts separators as users type (e.g. `12` → `12/`).
|
|
88
|
-
- 🌍 **Secondary Calendars**: Annotate day cells with Hijri, Jalali, Hebrew, Buddhist, or Japanese dates via `[secondaryCalendar]`.
|
|
89
|
-
- 🏨 **Availability Calendars**: Per-day prices, indicator dots, and classes via `[dayMetadata]`; server-driven blocked dates via `[asyncDateFilter]`.
|
|
90
|
-
- 🎛️ **Custom Action Bars**: `[calendarHeaderTemplate]` / `[calendarFooterTemplate]` slots with `clear()`/`close()` actions.
|
|
91
81
|
- 🛠️ **Plugin Architecture**: Extend functionality via hooks for rendering, validation, and shortcuts.
|
|
92
82
|
- 🧪 **Signal Forms Native**: Direct integration with Angular 21's new Signal Forms API.
|
|
93
83
|
- 🚀 **Zoneless Ready**: Optimized for the future of Angular—works perfectly without zone.js.
|
|
94
84
|
- ♿ **Full Accessibility**: WAI-ARIA compliant with extensive keyboard navigation support.
|
|
95
85
|
|
|
86
|
+
## **⚖️ Why ngxsmk-datepicker? (Comparison)**
|
|
87
|
+
|
|
88
|
+
| Capability | **ngxsmk-datepicker** | @angular/material | ngx-bootstrap | ng-pick-datetime |
|
|
89
|
+
| --- | :---: | :---: | :---: | :---: |
|
|
90
|
+
| Standalone / no NgModule | ✅ | ✅ | ⚠️ | ❌ |
|
|
91
|
+
| Signals & Zoneless-ready | ✅ | ⚠️ | ❌ | ❌ |
|
|
92
|
+
| SSR / Angular Universal | ✅ | ✅ | ⚠️ | ❌ |
|
|
93
|
+
| Date **range** picker | ✅ | ✅ | ✅ | ✅ |
|
|
94
|
+
| Multiple / week / month / quarter / year modes | ✅ | ❌ | ❌ | ❌ |
|
|
95
|
+
| Time & timezone-aware selection | ✅ | ❌ | ⚠️ | ✅ |
|
|
96
|
+
| Natural-language input ("next friday") | ✅ | ❌ | ❌ | ❌ |
|
|
97
|
+
| Dual-range **comparison** highlight | ✅ | ❌ | ❌ | ❌ |
|
|
98
|
+
| Built-in i18n (8 languages) + RTL | ✅ | ⚠️ | ⚠️ | ⚠️ |
|
|
99
|
+
| React / Vue / Web-Component wrappers | ✅ | ❌ | ❌ | ❌ |
|
|
100
|
+
| Zero peer-dep bloat (only Luxon) | ✅ | ⚠️ | ⚠️ | ⚠️ |
|
|
101
|
+
| Actively maintained (Angular 17–21+) | ✅ | ✅ | ⚠️ | ❌ |
|
|
102
|
+
|
|
103
|
+
<sub>✅ first-class · ⚠️ partial / extra
|
|
104
|
+
|
|
96
105
|
## Why this library?
|
|
97
106
|
|
|
98
107
|
Use **ngxsmk-datepicker** when you want an enterprise-grade **date / range picker** with strong **mobile**, **i18n**, **timezone**, **Ionic**, and **SSR** support on **Angular 17–22+**, without adopting a heavy Material UI stack or legacy Day.js dependencies.
|
|
@@ -111,15 +120,7 @@ Use **ngxsmk-datepicker** when you want an enterprise-grade **date / range picke
|
|
|
111
120
|
| **Google Calendar Sync & Multi-Calendars** | ✅ Built-in | ❌ Requires custom code | ❌ Not supported |
|
|
112
121
|
| **SSR / Hydration Safety** | ✅ 100% Guarded (`DOCUMENT`) | ⚠️ Requires CDK SSR overlays | ❌ Window access errors |
|
|
113
122
|
|
|
114
|
-
This is **not** a heavy UI framework; it is a **standalone datepicker** engineered for maximum performance, accessibility, and theming flexibility. See the [live demo](https://ngxsmk.github.io/ngxsmk-datepicker/) and [COMPATIBILITY](https://github.com/NGXSMK/ngxsmk-datepicker/blob/main/projects/ngxsmk-datepicker/docs/COMPATIBILITY.md) for details
|
|
115
|
-
|
|
116
|
-
## **🌐 Discoverability**
|
|
117
|
-
|
|
118
|
-
**Maintainers (GitHub):** consider repository **Topics** such as: `angular`, `datepicker`, `date-range-picker`, `luxon`, `standalone-components`, `i18n`, `angular-universal`, `ionic`, `accessibility`.
|
|
119
|
-
|
|
120
|
-
**Community:** if this project helped you, stars and accurate comparisons in blog posts or issue threads help others find it. Curated lists (for example **awesome-angular**-style repos) usually accept small PRs that add a one-line link and follow their contribution rules—check each list’s guidelines before opening a PR.
|
|
121
|
-
|
|
122
|
-
**Security:** report sensitive issues per [SECURITY.md](https://github.com/NGXSMK/ngxsmk-datepicker/blob/main/SECURITY.md), not via public issues.
|
|
123
|
+
This is **not** a heavy UI framework; it is a **standalone datepicker** engineered for maximum performance, accessibility, and theming flexibility. See the [live demo](https://ngxsmk.github.io/ngxsmk-datepicker/) and [COMPATIBILITY](https://github.com/NGXSMK/ngxsmk-datepicker/blob/main/projects/ngxsmk-datepicker/docs/COMPATIBILITY.md) for details.</sub>
|
|
123
124
|
|
|
124
125
|
## **📋 Compatibility**
|
|
125
126
|
|
|
@@ -179,36 +180,21 @@ Features marked as experimental may change:
|
|
|
179
180
|
|
|
180
181
|
For details, see [CONTRIBUTING.md](https://github.com/NGXSMK/ngxsmk-datepicker/blob/main/CONTRIBUTING.md#deprecation-policy).
|
|
181
182
|
|
|
182
|
-
##
|
|
183
|
+
## **🚀 Installation**
|
|
183
184
|
|
|
184
|
-
|
|
185
|
-
ng add ngxsmk-datepicker
|
|
186
|
-
```
|
|
187
|
-
|
|
188
|
-
The `ng add` schematic installs the package, adds the `luxon` peer dependency if it is missing, and prints a getting-started snippet. Plain npm works too:
|
|
185
|
+
Install the package using npm:
|
|
189
186
|
|
|
190
187
|
```bash
|
|
191
|
-
npm install ngxsmk-datepicker@
|
|
188
|
+
npm install ngxsmk-datepicker@latest
|
|
192
189
|
```
|
|
193
190
|
|
|
194
191
|
### Alternative installation
|
|
195
192
|
|
|
196
|
-
You can install without npm using
|
|
197
|
-
|
|
198
|
-
| Method | Command |
|
|
199
|
-
|--------|--------|
|
|
200
|
-
| **Yarn** | `yarn add ngxsmk-datepicker@3.0.4` |
|
|
201
|
-
| **pnpm** | `pnpm add ngxsmk-datepicker@3.0.4` |
|
|
202
|
-
| **Bun** | `bun add ngxsmk-datepicker@3.0.4` |
|
|
203
|
-
| **From Git** | `npm install github:NGXSMK/ngxsmk-datepicker#v3.0.4` (requires the repo to have built output or you build from source) |
|
|
204
|
-
| **Local path** | Build the library in the repo (`npx ng build ngxsmk-datepicker`), then `npm install /path/to/ngxsmk-datepicker/dist/ngxsmk-datepicker` |
|
|
205
|
-
| **CDN (ESM)** | Use [unpkg](https://unpkg.com/ngxsmk-datepicker@3.0.4/) or [jsDelivr](https://cdn.jsdelivr.net/npm/ngxsmk-datepicker@3.0.4/) in your bundler or import map; peer dependencies (Angular, etc.) must be installed in your app. |
|
|
206
|
-
|
|
207
|
-
For all options and caveats, see [docs/INSTALLATION.md](docs/INSTALLATION.md).
|
|
193
|
+
You can install without npm using Yarn, pnpm, Bun, from Git, a local path, or via CDN (ESM). Peer dependencies must still be installed in your app. For all options and caveats, see [INSTALLATION.md](../../docs/INSTALLATION.md) in the repo root.
|
|
208
194
|
|
|
209
195
|
## **Usage**
|
|
210
196
|
|
|
211
|
-
ngxsmk-datepicker is a standalone component, so you can import it directly into your component or module.
|
|
197
|
+
ngxsmk-datepicker is a standalone component, so you can import it directly into your component or module. If you see **NG1010** (`'imports' must be an array... Value could not be determined statically`) when using the Angular compiler plugin or in strict AOT builds, use `NgxsmkDatepickerModule` in your `imports` array instead of `NgxsmkDatepickerComponent` (same template: `<ngxsmk-datepicker>`).
|
|
212
198
|
|
|
213
199
|
### Signal Forms (Angular 21)
|
|
214
200
|
|
|
@@ -278,7 +264,7 @@ For detailed Signal Forms integration including dirty state tracking, see the [S
|
|
|
278
264
|
|
|
279
265
|
#### **1. Import the Component**
|
|
280
266
|
|
|
281
|
-
|
|
267
|
+
In your component file (e.g., app.component.ts), import NgxsmkDatepickerComponent.
|
|
282
268
|
|
|
283
269
|
import { Component } from '@angular/core';
|
|
284
270
|
import { NgxsmkDatepickerComponent, DateRange, HolidayProvider } from 'ngxsmk-datepicker';
|
|
@@ -308,8 +294,6 @@ All public exports (component, utilities, types, services) come from the main pa
|
|
|
308
294
|
}
|
|
309
295
|
}
|
|
310
296
|
|
|
311
|
-
**If you see NG1010** (`'imports' must be an array... Value could not be determined statically`) when using the Angular compiler plugin or in strict AOT builds, use the wrapper module instead: `import { NgxsmkDatepickerModule } from 'ngxsmk-datepicker'` and set `imports: [NgxsmkDatepickerModule]`. The template stays the same (`<ngxsmk-datepicker>`).
|
|
312
|
-
|
|
313
297
|
#### **2. Add it to Your Template**
|
|
314
298
|
|
|
315
299
|
Use the `<ngxsmk-datepicker>` selector in your HTML template.
|
|
@@ -390,7 +374,7 @@ export class MaterialFormComponent {
|
|
|
390
374
|
}
|
|
391
375
|
```
|
|
392
376
|
|
|
393
|
-
**Non-Standalone (NgModules):** Add the directive file from [INTEGRATION.md § Angular Material](
|
|
377
|
+
**Non-Standalone (NgModules):** Add the directive file from [INTEGRATION.md § Angular Material](docs/INTEGRATION.md#angular-material), then add it to your module `imports` (with `NgxsmkDatepickerComponent`, `MatFormFieldModule`, etc.) and use `ngxsmkMatFormFieldControl` on the datepicker in templates.
|
|
394
378
|
|
|
395
379
|
**With Date Range:**
|
|
396
380
|
|
|
@@ -409,9 +393,6 @@ For best integration with Ionic, import the integration styles in your global CS
|
|
|
409
393
|
@import "ngxsmk-datepicker/styles/ionic-integration.css";
|
|
410
394
|
```
|
|
411
395
|
|
|
412
|
-
**Automatic Theming:**
|
|
413
|
-
The datepicker automatically detects and uses Ionic CSS variables (e.g., `--ion-color-primary`, `--ion-background-color`) so it matches your app's theme out of the box without extra configuration.
|
|
414
|
-
|
|
415
396
|
Works seamlessly with Ionic form components and follows Ionic design patterns:
|
|
416
397
|
|
|
417
398
|
```typescript
|
|
@@ -542,38 +523,6 @@ By default, the datepicker input is `readonly` to prevent invalid date strings a
|
|
|
542
523
|
2. **Custom Validation Logic:**
|
|
543
524
|
If you prefer the readonly behavior, ensure your form submission handler explicitly checks `form.invalid` before proceeding, as the browser won't stop the submit button click.
|
|
544
525
|
|
|
545
|
-
### **Built-in Reactive Forms Validators**
|
|
546
|
-
|
|
547
|
-
`ngxsmk-datepicker` exports convenient, type-safe Angular `ValidatorFn` functions for standard form validation:
|
|
548
|
-
|
|
549
|
-
```typescript
|
|
550
|
-
import { FormControl, FormGroup } from '@angular/forms';
|
|
551
|
-
import {
|
|
552
|
-
ngxsmkMinDateValidator,
|
|
553
|
-
ngxsmkMaxDateValidator,
|
|
554
|
-
ngxsmkDateRangeValidator,
|
|
555
|
-
ngxsmkBlockedDatesValidator
|
|
556
|
-
} from 'ngxsmk-datepicker';
|
|
557
|
-
|
|
558
|
-
const form = new FormGroup({
|
|
559
|
-
// Minimum date validator (Date, string, or dynamic factory)
|
|
560
|
-
arrivalDate: new FormControl(null, [ngxsmkMinDateValidator(new Date())]),
|
|
561
|
-
|
|
562
|
-
// Maximum date validator
|
|
563
|
-
departureDate: new FormControl(null, [ngxsmkMaxDateValidator(new Date(2026, 11, 31))]),
|
|
564
|
-
|
|
565
|
-
// Range validation: requires both dates, 2 to 14 days duration
|
|
566
|
-
tripRange: new FormControl(null, [
|
|
567
|
-
ngxsmkDateRangeValidator({ minDays: 2, maxDays: 14, requireBoth: true })
|
|
568
|
-
]),
|
|
569
|
-
|
|
570
|
-
// Disallow weekends or specific blackout dates
|
|
571
|
-
bookingDate: new FormControl(null, [
|
|
572
|
-
ngxsmkBlockedDatesValidator((d: Date) => d.getDay() === 0 || d.getDay() === 6)
|
|
573
|
-
]),
|
|
574
|
-
});
|
|
575
|
-
```
|
|
576
|
-
|
|
577
526
|
## **⚙️ API Reference**
|
|
578
527
|
|
|
579
528
|
### **Inputs**
|
|
@@ -584,8 +533,7 @@ const form = new FormGroup({
|
|
|
584
533
|
| inline | boolean \| 'always' \| 'auto' | false | Controls the display mode. `true` or `'always'` for inline, `'auto'` for responsive. |
|
|
585
534
|
| locale | string | navigator.language | Sets the locale for language and regional formatting (e.g., 'en-US', 'de-DE'). |
|
|
586
535
|
| theme | 'light' \| 'dark' | 'light' | The color theme. |
|
|
587
|
-
| showRanges | boolean | true | If true, displays
|
|
588
|
-
| showPresets | boolean | false | If true, displays standard quick presets (*Today*, *Yesterday*, *Last 7 Days*, *This Month*, etc.). |
|
|
536
|
+
| showRanges | boolean | true | If true, displays the predefined ranges panel when in 'range' mode. |
|
|
589
537
|
| minDate | DateInput | null | The earliest selectable date. |
|
|
590
538
|
| maxDate | DateInput | null | The latest selectable date. |
|
|
591
539
|
| isInvalidDate | (date: Date) => boolean | () => false | A function to programmatically disable specific dates. |
|
|
@@ -614,17 +562,10 @@ const form = new FormGroup({
|
|
|
614
562
|
| enableGoogleCalendar| boolean | false | Enable seamless Google Calendar integration and sync. |
|
|
615
563
|
| googleClientId | string \| null | null | Google API OAuth 2.0 Web Client ID for authentication. |
|
|
616
564
|
| calendars | number | 1 | Multi-calendar display layout (supports 1, 2, or 3 side-by-side calendars). |
|
|
565
|
+
| changeActiveMonthOnSelection | boolean | true | If false, selecting a date won't shift the visible month(s) — useful in multi-calendar mode to keep both calendars fixed when picking a date from the second/third one. |
|
|
617
566
|
| rangePresetFactory | (today: Date) => DatePreset[] | null | Callback function supplying dynamic rolling range presets. |
|
|
618
567
|
| showTimezoneSelector | boolean | false | Enables searchable IANA timezone selection dropdown UI. |
|
|
619
568
|
| enableNaturalLanguage | boolean | false | Enables manual relative keyboard typing input (e.g. "today", "in 3 days"). |
|
|
620
|
-
| showWeekNumbers | boolean | false | Shows an ISO 8601 week-number column on the left of the day grid. |
|
|
621
|
-
| weekNumberLabel | string | 'Wk' | Header label for the week-number column (e.g. "KW", "S"). |
|
|
622
|
-
| inputMask | boolean \| string | false | Guided input masking while typing: `true` uses `displayFormat` (or MM/DD/YYYY); a string (e.g. `'DD.MM.YYYY'`) sets an explicit pattern. Requires `allowTyping`. |
|
|
623
|
-
| asyncDateFilter | (start: Date, end: Date) => Promise<DateInput[]> | null | Server-driven disabled dates: called with the visible range on every navigation; resolved dates are disabled. Stale responses are discarded. |
|
|
624
|
-
| secondaryCalendar | 'islamic' \| 'persian' \| 'hebrew' \| 'buddhist' \| 'japanese' | null | Annotates each day cell with its date in a second calendar system (rendered via Intl; the grid stays Gregorian). |
|
|
625
|
-
| dayMetadata | (date: Date) => DayMetadata | null | Per-day decorations without templates: label under the day number (e.g. a price), indicator dot color, extra CSS classes, tooltip. |
|
|
626
|
-
| calendarHeaderTemplate | TemplateRef | null | Custom content at the top of the popover/inline calendar. Context: `let-actions` → `{ clear(), close() }`. |
|
|
627
|
-
| calendarFooterTemplate | TemplateRef | null | Replaces the default Clear/Close footer with custom actions. Context: `let-actions` → `{ clear(), close() }`. |
|
|
628
569
|
|
|
629
570
|
### **Outputs**
|
|
630
571
|
|
|
@@ -636,8 +577,6 @@ const form = new FormGroup({
|
|
|
636
577
|
| invalidRange | { start: Date; end: Date; disabledDatesInside: Date[] } | Emitted when selected date range contains disabled dates. |
|
|
637
578
|
| naturalLanguageResolved | Date \| { start: Date; end: Date } | Emitted when user types relative natural language date input. |
|
|
638
579
|
| timezoneChange | string | Emitted when timezone selection is changed. |
|
|
639
|
-
| asyncDateFilterLoading | boolean | Emits true while an `asyncDateFilter` request is in flight, false when it settles. |
|
|
640
|
-
| asyncDateFilterError | unknown | Emitted when `asyncDateFilter` rejects; the previous disabled set is kept. |
|
|
641
580
|
|
|
642
581
|
## **🎨 Theming**
|
|
643
582
|
|
|
@@ -705,14 +644,14 @@ The `locale` input controls all internationalization. It automatically formats m
|
|
|
705
644
|
|
|
706
645
|
ngxsmk-datepicker v2.4.0+ now features **full localization synchronization** for:
|
|
707
646
|
|
|
708
|
-
-
|
|
709
|
-
-
|
|
710
|
-
-
|
|
711
|
-
-
|
|
647
|
+
- 🇺🇸 English (`en`)
|
|
648
|
+
- 🇩🇪 German (`de`)
|
|
649
|
+
- 🇫🇷 French (`fr`)
|
|
650
|
+
- 🇪🇸 Spanish (`es`)
|
|
712
651
|
- 🇸🇪 Swedish (`sv`)
|
|
713
|
-
-
|
|
714
|
-
-
|
|
715
|
-
-
|
|
652
|
+
- 🇰🇷 Korean (`ko`)
|
|
653
|
+
- 🇨🇳 Chinese (`zh`)
|
|
654
|
+
- 🇯🇵 Japanese (`ja`)
|
|
716
655
|
|
|
717
656
|
### **Usage Example**
|
|
718
657
|
|
|
@@ -777,7 +716,7 @@ const myHooks: DatepickerHooks = {
|
|
|
777
716
|
<ngxsmk-datepicker [hooks]="myHooks" [customShortcuts]="shortcuts" mode="single"> </ngxsmk-datepicker>
|
|
778
717
|
```
|
|
779
718
|
|
|
780
|
-
All date cells are keyboard accessible with proper ARIA attributes for screen readers.
|
|
719
|
+
All date cells are keyboard accessible with proper ARIA attributes for screen readers.
|
|
781
720
|
|
|
782
721
|
See [Extension Points Guide](./projects/ngxsmk-datepicker/docs/extension-points.md) for detailed customization options.
|
|
783
722
|
|
|
@@ -802,14 +741,11 @@ This library has been optimized for maximum performance:
|
|
|
802
741
|
- ✅ **Date Validation**: Fixed "Today" unselectable bug by normalizing `minDate` boundary checks.
|
|
803
742
|
- ✅ **Keyboard Shortcuts**: Updated "Today" selection shortcut to use timezone-aware calculation.
|
|
804
743
|
- ✅ **Validation messages**: User-facing i18n strings for invalid date, min/max; `validationError` output and on-screen error display
|
|
805
|
-
- ✅ **
|
|
806
|
-
- ✅ **
|
|
807
|
-
- ✅ **
|
|
808
|
-
- ✅ **
|
|
809
|
-
- ✅ **
|
|
810
|
-
- ✅ **Performance**: Optimized template bindings with memoized functions
|
|
811
|
-
- ✅ **Accessibility**: Better focus states and keyboard navigation
|
|
812
|
-
- ✅ **Build System**: Improved build configuration and optimization
|
|
744
|
+
- ✅ **Calendar loading state**: Visual spinner + text and screen-reader announcement while calendar opens/generates
|
|
745
|
+
- ✅ **Demo theme**: Light/dark theme toggle and system preference now correctly switch the demo UI
|
|
746
|
+
- ✅ **Installation options**: Full install guide (npm, Yarn, pnpm, Bun, Git, CDN, etc.) and demo page updates
|
|
747
|
+
- ✅ **Accessibility**: Loading state announced via live region; validation errors exposed for a11y
|
|
748
|
+
- ✅ **Type Safety**: New translation keys and strictly typed inputs/outputs
|
|
813
749
|
|
|
814
750
|
### **Performance Enhancements:**
|
|
815
751
|
|
|
@@ -963,9 +899,15 @@ We welcome and appreciate contributions from the community! Whether it's reporti
|
|
|
963
899
|
|
|
964
900
|
## **📄 Changelog**
|
|
965
901
|
|
|
966
|
-
|
|
902
|
+
For a full list of changes, please refer to the [CHANGELOG.md](https://github.com/NGXSMK/ngxsmk-datepicker/blob/main/CHANGELOG.md) file.
|
|
903
|
+
|
|
904
|
+
### **v3.0.3** (Current Stable)
|
|
905
|
+
|
|
906
|
+
- **npm**: Published tarballs include compiled `fesm2022/` output and type declarations.
|
|
967
907
|
|
|
968
|
-
|
|
908
|
+
### **Earlier Versions**
|
|
909
|
+
|
|
910
|
+
For older version details, please refer to the [full CHANGELOG.md](https://github.com/NGXSMK/ngxsmk-datepicker/blob/main/CHANGELOG.md).
|
|
969
911
|
|
|
970
912
|
## **🎨 Theming with TokiForge**
|
|
971
913
|
|
|
@@ -973,6 +915,11 @@ Looking for a powerful theming solution for your Angular application? Check out
|
|
|
973
915
|
|
|
974
916
|
### Why TokiForge?
|
|
975
917
|
|
|
918
|
+
- ✅ **Framework-agnostic** — Works with Angular, React, Vue, Svelte, and vanilla JS
|
|
919
|
+
- ✅ **Runtime theme switching** — Change themes dynamically without rebuilds
|
|
920
|
+
- ✅ **Type-safe** — Full TypeScript support for design tokens
|
|
921
|
+
- ✅ **Lightweight** — <3 KB gzipped runtime footprint
|
|
922
|
+
- ✅ **CSS custom properties** — Zero JS overhead in static mode
|
|
976
923
|
- ✅ **SSR compatible** — Works seamlessly with Angular Universal
|
|
977
924
|
|
|
978
925
|
Perfect for managing design tokens, creating theme systems, and implementing dark mode in your Angular applications!
|
|
@@ -985,9 +932,16 @@ Perfect for managing design tokens, creating theme systems, and implementing dar
|
|
|
985
932
|
|
|
986
933
|
MIT License - see [LICENSE](https://github.com/NGXSMK/ngxsmk-datepicker/blob/main/LICENSE) file for details.
|
|
987
934
|
|
|
988
|
-
## **🔍 SEO
|
|
935
|
+
## **🔍 SEO & Discoverability**
|
|
936
|
+
|
|
937
|
+
This library is optimized for search engine visibility, AI search engines, and global developer discovery:
|
|
989
938
|
|
|
990
|
-
|
|
939
|
+
- **Keywords**: Angular DatePicker, Date Range Picker, Calendar Component, Angular 17-22+, Signals, Zoneless Angular, TypeScript, Signal Forms, Timezone Dropdown, Secondary Calendars (Hijri, Jalali), SSR Compatible, Ionic DatePicker
|
|
940
|
+
- **Global & European SEO**: Optimized for worldwide developer discovery across North America, Europe (Germany, France, UK, Spain, Sweden, Netherlands, Poland), Asia (Japan, South Korea, China), and Latin America
|
|
941
|
+
- **Multi-language Support**: i18n support and hreflang meta tags for 15+ global languages and regional locales
|
|
942
|
+
- **Social & Community Visibility**: Rich Open Graph metadata, Twitter Cards, JSON-LD structured data (SoftwareApplication & Organization schema), and official [WhatsApp Channel](https://whatsapp.com/channel/0029Vb8PWpz1XquUOnGPUM2p) updates
|
|
943
|
+
- **Documentation**: Complete API documentation with live interactive code examples
|
|
944
|
+
- **Performance**: Optimized bundle size (~127KB) for fast initial page load and high Lighthouse SEO scores
|
|
991
945
|
|
|
992
946
|
## **👨💻 Author**
|
|
993
947
|
|