尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證Modern Angular Material date adapter for Gregorian and Umm al-Qura Hijri calendars, powered by @internationalized/date.
翻譯準備中
取自儲存庫 README
正在載入完整 README。 以下為已儲存的摘錄。
Angular Material date adapter and form fields for the Gregorian and Umm al-Qura Hijri calendars, built on @internationalized/date .檢視完整 README ↗DateAdapter for both calendars, switchable at runtime.CalendarDate objects, so no time zone shifts a day. The ready-made fields use that value so the calendar toggle can change the text on screen while valueCalendar stays the saved calendar. ngx-mat-hijri-adapter/native is the alternative for a plain mat-datepicker that stores a JavaScript Date at UTC noon. See the native adapter page.Version 0.4.3 is tagged on GitHub. It is not yet published to npm. A beta will be published before the stable 1.0.0. Once the package is on npm, add it to an Angular Material app:
ng add ngx-mat-hijri-adapter
ng add installs this package, adds @internationalized/date when it is missing, and registers provideHijriDateAdapter(). It stops if Angular Material is missing. You can install the packages manually instead:
npm install ngx-mat-hijri-adapter @internationalized/date
core, forms, material, and cdk 22.0.0 or newer.@internationalized/date 3.12.0 or newer.Register the adapter once. The defaults are the Umm al-Qura calendar and the ar-SA locale.
import { provideHijriDateAdapter } from 'ngx-mat-hijri-adapter';
bootstrapApplication(App, {
providers: [provideHijriDateAdapter()],
});
A plain mat-datepicker now works with CalendarDate values. Or use a ready-made field:
import { ReactiveDateField } from 'ngx-mat-hijri-adapter/reactive';
<ngx-mat-reactive-date-field [formControl]="date" label="Date" calendarToggle />
| Import | Contents |
|---|---|
ngx-mat-hijri-adapter | HijriDateAdapter, its provider, formatting, calendar helpers |
ngx-mat-hijri-adapter/reactive | ReactiveDateField and ReactiveDateRangeField |
ngx-mat-hijri-adapter/signals | SignalDateField and SignalDateRangeField |
Configuration, parsing, formatting, field inputs, right-to-left, and the full API are covered in the documentation.
Building this workspace needs Node.js ^22.22.3, ^24.15.0, or 26 or newer. The docs app imports the built package from dist/, so build the library first:
npm ci
npm test
npm run build
npm start
Pull requests target development. See CONTRIBUTING.md.
See CHANGELOG.md.
Apache 2.0. Copyright 2026 Mahmoud.