@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.
- package/README.md +24 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,7 +1,28 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @fundamental-ngx/datetime-adapter
|
|
2
|
+
|
|
3
|
+
[](//www.npmjs.com/package/@fundamental-ngx/datetime-adapter)
|
|
4
|
+

|
|
5
|
+
[](https://api.reuse.software/info/github.com/SAP/fundamental-ngx)
|
|
2
6
|
|
|
3
7
|
## Description
|
|
4
8
|
|
|
5
|
-
|
|
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
|
-
|
|
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.
|
|
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.
|
|
12
|
+
"@fundamental-ngx/core": "0.62.0-rc.71",
|
|
13
13
|
"dayjs": "^1.11.0"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|