@gpa-gemstone/react-forms 1.1.108 → 1.1.110

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,11 +1,10 @@
1
1
  import * as moment from 'moment';
2
2
  import { Gemstone } from '@gpa-gemstone/application-typings';
3
- export type TimeUnit = ('datetime-local' | 'date' | 'time');
4
3
  export interface IProps<T> extends Gemstone.TSX.Interfaces.IBaseFormProps<T> {
5
4
  Valid: (field: keyof T) => boolean;
6
5
  Feedback?: string;
7
6
  Format?: string;
8
- Type?: TimeUnit;
7
+ Type?: Gemstone.TSX.Types.DateUnit;
9
8
  AllowEmpty?: boolean;
10
9
  Accuracy?: Gemstone.TSX.Types.Accuracy;
11
10
  MinDate?: moment.Moment;
@@ -14,5 +13,5 @@ export interface IProps<T> extends Gemstone.TSX.Interfaces.IBaseFormProps<T> {
14
13
  * Component that allows a user to pick a date or datetime.
15
14
  */
16
15
  export default function DateTimePickerBase<T>(props: IProps<T>): JSX.Element;
17
- export declare function getBoxFormat(type?: TimeUnit, accuracy?: Gemstone.TSX.Types.Accuracy): "YYYY-MM-DD" | "HH:mm" | "HH:mm:ss" | "HH:mm:ss.SSS" | "YYYY-MM-DD[T]HH:mm" | "YYYY-MM-DD[T]HH:mm:ss" | "YYYY-MM-DD[T]HH:mm:ss.SSS";
16
+ export declare function getBoxFormat(type?: Gemstone.TSX.Types.DateUnit, accuracy?: Gemstone.TSX.Types.Accuracy): "YYYY-MM-DD" | "HH:mm" | "HH:mm:ss" | "HH:mm:ss.SSS" | "YYYY-MM-DD[T]HH:mm" | "YYYY-MM-DD[T]HH:mm:ss" | "YYYY-MM-DD[T]HH:mm:ss.SSS";
18
17
  export declare const getInputWidth: (inputRef: HTMLInputElement, currentValue: string, currentStep: string) => number;
@@ -1,11 +1,10 @@
1
1
  import * as React from 'react';
2
2
  import * as moment from 'moment';
3
3
  import { Gemstone } from '@gpa-gemstone/application-typings';
4
- import { TimeUnit } from './DateTimePicker';
5
4
  interface IProps {
6
5
  DateTime: moment.Moment | undefined;
7
6
  Setter: (record: moment.Moment) => void;
8
- Type: TimeUnit;
7
+ Type: Gemstone.TSX.Types.DateUnit;
9
8
  Show: boolean;
10
9
  Top: number;
11
10
  Center: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gpa-gemstone/react-forms",
3
- "version": "1.1.108",
3
+ "version": "1.1.110",
4
4
  "description": "React Form modules for gpa webapps",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -45,9 +45,9 @@
45
45
  "typescript": "5.5.3"
46
46
  },
47
47
  "dependencies": {
48
- "@gpa-gemstone/application-typings": "0.0.93",
49
- "@gpa-gemstone/gpa-symbols": "0.0.58",
50
- "@gpa-gemstone/helper-functions": "0.0.52",
48
+ "@gpa-gemstone/application-typings": "0.0.95",
49
+ "@gpa-gemstone/gpa-symbols": "0.0.59",
50
+ "@gpa-gemstone/helper-functions": "0.0.54",
51
51
  "@types/react": "^17.0.14",
52
52
  "@types/styled-components": "^5.1.11",
53
53
  "lodash": "^4.17.21",