sit-onyx 1.2.0-dev-20251016092305 → 1.2.0
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/dist/components/OnyxDatePicker/types.d.ts +4 -2
- package/dist/index.esm-bundler.js +20 -12
- package/dist/index.esm-bundler.js.map +1 -1
- package/dist/index.js +1644 -1637
- package/dist/utils/date.d.ts +14 -1
- package/package.json +3 -3
package/dist/utils/date.d.ts
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
* Checks whether the given value is a valid `Date` object.
|
|
3
3
|
*
|
|
4
4
|
* @example isValidDate(new Date()) // true
|
|
5
|
-
* @example isValidDate("not-a-date") // false
|
|
5
|
+
* @example isValidDate(new Date("not-a-date")) // false
|
|
6
|
+
* @example isValidDate("definitely-not-a-date") // false
|
|
6
7
|
*/
|
|
7
8
|
export declare const isValidDate: (date: unknown) => date is Date;
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* @param date The JS Date object to convert
|
|
12
|
+
* @param type If the formatted string should include the time and if so, with UTC timezone or as local time.
|
|
13
|
+
* @returns Returns a full date-only ISO8601 complaint string, which is also parsable by new Date()
|
|
14
|
+
*
|
|
15
|
+
* @example dateToISOString(new Date("2025-10-16T11:01:09.564Z", "date")) // "2025-10-16"
|
|
16
|
+
* @example dateToISOString(new Date("2025-10-16T11:01:09.564Z", "datetime-utc")) // "2025-10-16T11:01:09.564Z"
|
|
17
|
+
* @example dateToISOString(new Date("2025-10-16T13:01:09.564Z", "datetime-local")) // "2025-10-16T13:01:09.564"
|
|
18
|
+
* @example dateToISOString(new Date("not-a-date")) // undefined
|
|
19
|
+
*/
|
|
20
|
+
export declare const dateToISOString: (date: Date | undefined, type: "date" | "datetime-utc" | "datetime-local") => string | undefined;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sit-onyx",
|
|
3
3
|
"description": "A design system and Vue.js component library created by Schwarz IT",
|
|
4
|
-
"version": "1.2.0
|
|
4
|
+
"version": "1.2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "Schwarz IT KG",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -59,10 +59,10 @@
|
|
|
59
59
|
"vue-i18n": "^11.1.12",
|
|
60
60
|
"vue-router": "^4.6.0",
|
|
61
61
|
"@sit-onyx/flags": "^1.0.0",
|
|
62
|
-
"@sit-onyx/headless": "^0.2.0
|
|
62
|
+
"@sit-onyx/headless": "^0.2.0",
|
|
63
63
|
"@sit-onyx/playwright-utils": "^1.0.0",
|
|
64
64
|
"@sit-onyx/shared": "^0.1.0",
|
|
65
|
-
"@sit-onyx/storybook-utils": "^1.0.2
|
|
65
|
+
"@sit-onyx/storybook-utils": "^1.0.2"
|
|
66
66
|
},
|
|
67
67
|
"scripts": {
|
|
68
68
|
"dev": "storybook dev -p 6006 --no-open",
|