@fundamental-ngx/datetime-adapter 0.62.0-rc.7 → 0.62.0-rc.71

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 (2) hide show
  1. package/README.md +24 -3
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,7 +1,28 @@
1
- # Fundamental Dayjs datetime adapter implementation
1
+ # @fundamental-ngx/datetime-adapter
2
+
3
+ [![npm version](https://badge.fury.io/js/%40fundamental-ngx%2Fdatetime-adapter.svg)](//www.npmjs.com/package/@fundamental-ngx/datetime-adapter)
4
+ ![npm](https://img.shields.io/npm/dm/@fundamental-ngx/datetime-adapter?label=npm%20downloads)
5
+ [![REUSE status](https://api.reuse.software/badge/github.com/SAP/fundamental-ngx)](https://api.reuse.software/info/github.com/SAP/fundamental-ngx)
2
6
 
3
7
  ## Description
4
8
 
5
- Fundamental Date Picker, Time Picker, Date Time Picker and similar components rely on provided datetime implementation `DatetimeAdapter` and datetime formats `DateTimeFormats`.
9
+ Date/time adapter based on [Day.js](https://day.js.org/) for Fundamental NGX date and time components (Date Picker, Time Picker, DateTime Picker, etc.).
10
+
11
+ These components rely on the `DatetimeAdapter` abstraction. This package provides `DayjsDatetimeAdapter` as an alternative to the built-in `FdDatetimeAdapter` (based on native `Date`), adding reliable parse format support.
12
+
13
+ ## Installation
14
+
15
+ ```bash
16
+ npm install @fundamental-ngx/datetime-adapter dayjs
17
+ ```
18
+
19
+ ## Usage
20
+
21
+ ```typescript
22
+ import { provideDatetimeAdapter } from '@fundamental-ngx/datetime-adapter';
23
+
24
+ // In your application config or module providers:
25
+ provideDatetimeAdapter();
26
+ ```
6
27
 
7
- These components could be used with FdDatetimeAdapter, based on the JavaScript's native Date object, but one of the biggest shortcomings of the native Date object is the inability to set the parse format. As an alternative could be the DayjsDatetimeAdapter based on `Day.js` library or a custom DateAdapter that works with the formatting/parsing library of your choice.
28
+ See the [documentation](https://sap.github.io/fundamental-ngx) for full configuration and format customization options.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fundamental-ngx/datetime-adapter",
3
- "version": "0.62.0-rc.7",
3
+ "version": "0.62.0-rc.71",
4
4
  "description": "Datetime adapter for SAP Fundamentals, based on Day.js package",
5
5
  "license": "Apache-2.0",
6
6
  "homepage": "https://sap.github.io/fundamental-ngx",
@@ -9,7 +9,7 @@
9
9
  "url": "git+https://github.com/SAP/fundamental-ngx.git"
10
10
  },
11
11
  "peerDependencies": {
12
- "@fundamental-ngx/core": "0.62.0-rc.7",
12
+ "@fundamental-ngx/core": "0.62.0-rc.71",
13
13
  "dayjs": "^1.11.0"
14
14
  },
15
15
  "dependencies": {