@gisce/ooui 2.31.0-alpha.4 → 2.32.0-alpha.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gisce/ooui",
3
- "version": "2.31.0-alpha.4",
3
+ "version": "2.32.0-alpha.1",
4
4
  "engines": {
5
5
  "node": "20.5.0"
6
6
  },
package/src/Date.ts CHANGED
@@ -4,8 +4,19 @@ import Field from "./Field";
4
4
  * Date input
5
5
  */
6
6
  class Date extends Field {
7
- constructor(props?: any) {
7
+ _timezone: string | undefined = undefined;
8
+
9
+ get timezone(): string | undefined {
10
+ return this._timezone;
11
+ }
12
+
13
+ set timezone(value: string | undefined) {
14
+ this._timezone = value;
15
+ }
16
+
17
+ constructor(props?: { timezone?: string } & any) {
8
18
  super(props);
19
+ this._timezone = props?.timezone || undefined;
9
20
  }
10
21
  }
11
22
 
package/src/DateTime.ts CHANGED
@@ -1,9 +1,9 @@
1
- import Field from "./Field";
1
+ import Date from "./Date";
2
2
 
3
3
  /**
4
4
  * DateTime input
5
5
  */
6
- class DateTime extends Field {
6
+ class DateTime extends Date {
7
7
  constructor(props?: any) {
8
8
  super(props);
9
9
  }
package/src/Time.ts CHANGED
@@ -1,9 +1,9 @@
1
- import Field from "./Field";
1
+ import Date from "./Date";
2
2
 
3
3
  /**
4
4
  * Time input
5
5
  */
6
- class Time extends Field {
6
+ class Time extends Date {
7
7
  constructor(props?: any) {
8
8
  super(props);
9
9
  }