@gpa-gemstone/common-pages 0.0.162 → 0.0.163
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.
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { DateTimeSetting, ITimeFilter } from './TimeFilter';
|
|
2
|
+
import { Gemstone } from '@gpa-gemstone/application-typings';
|
|
2
3
|
import { TimeUnit } from './TimeWindowUtils';
|
|
3
|
-
export type DateUnit = ('datetime-local' | 'date' | 'time');
|
|
4
|
-
export type QuickSelectRange = 'short' | 'medium' | 'long' | 'full';
|
|
5
4
|
interface IQuickSelect {
|
|
6
5
|
label: string;
|
|
7
|
-
hideQuickPick: (quickSelectRange?: QuickSelectRange) => boolean;
|
|
8
|
-
createFilter: (timeZone: string, format?: DateUnit) => ITimeFilter;
|
|
6
|
+
hideQuickPick: (quickSelectRange?: Gemstone.TSX.Types.QuickSelectRange) => boolean;
|
|
7
|
+
createFilter: (timeZone: string, format?: Gemstone.TSX.Types.DateUnit) => ITimeFilter;
|
|
9
8
|
}
|
|
10
9
|
interface IProps {
|
|
11
10
|
DateTimeSetting: DateTimeSetting;
|
|
12
11
|
Format?: "YYYY-MM-DD" | "HH:mm:ss.SSS" | "MM/DD/YYYY HH:mm:ss.SSS";
|
|
13
|
-
DateUnit?: DateUnit;
|
|
14
|
-
QuickSelectRange?: QuickSelectRange;
|
|
12
|
+
DateUnit?: Gemstone.TSX.Types.DateUnit;
|
|
13
|
+
QuickSelectRange?: Gemstone.TSX.Types.QuickSelectRange;
|
|
15
14
|
Timezone: string;
|
|
16
15
|
ActiveQP: number;
|
|
17
16
|
SetActiveQP: (qp: number) => void;
|
|
@@ -21,6 +20,6 @@ interface IProps {
|
|
|
21
20
|
}
|
|
22
21
|
declare const QuickSelects: (props: IProps) => JSX.Element;
|
|
23
22
|
export default QuickSelects;
|
|
24
|
-
export declare function getFormat(format?: DateUnit): "MM/DD/YYYY HH:mm:ss.SSS" | "YYYY-MM-DD" | "HH:mm:ss.SSS";
|
|
25
|
-
export declare function getQuickSelectRange(dateUnit?: DateUnit): "medium" | "long" | "full" | undefined;
|
|
23
|
+
export declare function getFormat(format?: Gemstone.TSX.Types.DateUnit): "MM/DD/YYYY HH:mm:ss.SSS" | "YYYY-MM-DD" | "HH:mm:ss.SSS";
|
|
24
|
+
export declare function getQuickSelectRange(dateUnit?: Gemstone.TSX.Types.DateUnit): "medium" | "long" | "full" | undefined;
|
|
26
25
|
export declare const AvailableQuickSelects: IQuickSelect[];
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { ITimeWindow } from "../TimeFilter";
|
|
3
|
-
import { DateUnit, QuickSelectRange } from '../QuickSelects';
|
|
4
3
|
import { Gemstone } from '@gpa-gemstone/application-typings';
|
|
5
4
|
import { TimeUnit } from '../TimeWindowUtils';
|
|
6
5
|
export interface IFilterProps {
|
|
@@ -8,8 +7,8 @@ export interface IFilterProps {
|
|
|
8
7
|
SetTimeWindowFilter: React.Dispatch<React.SetStateAction<ITimeWindow>>;
|
|
9
8
|
HelpMessage?: string;
|
|
10
9
|
Format: "YYYY-MM-DD" | "HH:mm:ss.SSS" | "MM/DD/YYYY HH:mm:ss.SSS";
|
|
11
|
-
DateUnit: DateUnit;
|
|
12
|
-
QuickSelectRange?: QuickSelectRange;
|
|
10
|
+
DateUnit: Gemstone.TSX.Types.DateUnit;
|
|
11
|
+
QuickSelectRange?: Gemstone.TSX.Types.QuickSelectRange;
|
|
13
12
|
Timezone: string;
|
|
14
13
|
Accuracy?: Gemstone.TSX.Types.Accuracy;
|
|
15
14
|
ActiveQP: number;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { IStartEnd, IStartDuration, IEndDuration, TimeUnit } from './TimeWindowUtils';
|
|
2
|
-
import { DateUnit, QuickSelectRange } from './QuickSelects';
|
|
3
2
|
import { Gemstone } from '@gpa-gemstone/application-typings';
|
|
4
3
|
export interface ITimeWindow {
|
|
5
4
|
start: string;
|
|
@@ -38,7 +37,7 @@ interface IProps {
|
|
|
38
37
|
/**
|
|
39
38
|
* Format for date/time input
|
|
40
39
|
*/
|
|
41
|
-
format?: DateUnit;
|
|
40
|
+
format?: Gemstone.TSX.Types.DateUnit;
|
|
42
41
|
/**
|
|
43
42
|
* Accuracy of the time input
|
|
44
43
|
*/
|
|
@@ -50,7 +49,7 @@ interface IProps {
|
|
|
50
49
|
/**
|
|
51
50
|
* Optional choice of QuickSelect buttons
|
|
52
51
|
*/
|
|
53
|
-
quickSelectRange?: QuickSelectRange;
|
|
52
|
+
quickSelectRange?: Gemstone.TSX.Types.QuickSelectRange;
|
|
54
53
|
/**
|
|
55
54
|
* Optional Flag to enable collapsing of TimeFilter
|
|
56
55
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gpa-gemstone/common-pages",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.163",
|
|
4
4
|
"description": "Common UI pages for GPA products",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -46,12 +46,12 @@
|
|
|
46
46
|
"typescript": "5.5.3"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@gpa-gemstone/application-typings": "0.0.
|
|
49
|
+
"@gpa-gemstone/application-typings": "0.0.94",
|
|
50
50
|
"@gpa-gemstone/gpa-symbols": "0.0.58",
|
|
51
|
-
"@gpa-gemstone/helper-functions": "0.0.
|
|
52
|
-
"@gpa-gemstone/react-forms": "1.1.
|
|
53
|
-
"@gpa-gemstone/react-interactive": "1.0.
|
|
54
|
-
"@gpa-gemstone/react-table": "1.2.
|
|
51
|
+
"@gpa-gemstone/helper-functions": "0.0.53",
|
|
52
|
+
"@gpa-gemstone/react-forms": "1.1.109",
|
|
53
|
+
"@gpa-gemstone/react-interactive": "1.0.173",
|
|
54
|
+
"@gpa-gemstone/react-table": "1.2.96",
|
|
55
55
|
"@reduxjs/toolkit": "1.8.3",
|
|
56
56
|
"crypto-js": "^4.2.0",
|
|
57
57
|
"moment": "^2.29.4",
|