@axinom/mosaic-ui 0.39.1-feat-gs.2 → 0.40.0-rc.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/FormStation/Create/Create.d.ts +1 -1
- package/dist/components/FormStation/Create/Create.d.ts.map +1 -1
- package/dist/components/FormStation/Details/Details.d.ts +2 -2
- package/dist/components/FormStation/Details/Details.d.ts.map +1 -1
- package/dist/components/FormStation/FormStation.d.ts +15 -8
- package/dist/components/FormStation/FormStation.d.ts.map +1 -1
- package/dist/components/FormStation/FormStation.models.d.ts +3 -17
- package/dist/components/FormStation/FormStation.models.d.ts.map +1 -1
- package/dist/components/FormStation/StationErrorStateType.d.ts +5 -0
- package/dist/components/FormStation/StationErrorStateType.d.ts.map +1 -0
- package/dist/components/FormStation/index.d.ts +1 -1
- package/dist/components/FormStation/index.d.ts.map +1 -1
- package/dist/components/FormStation/{helpers/useValidationError.d.ts → useValidationError.d.ts} +1 -1
- package/dist/components/FormStation/useValidationError.d.ts.map +1 -0
- package/dist/components/Utils/Postgraphile/getArrayDiff.d.ts.map +1 -1
- package/dist/components/Utils/Postgraphile/getFormDiff.d.ts.map +1 -1
- package/dist/helpers/testing.d.ts +1 -4
- package/dist/helpers/testing.d.ts.map +1 -1
- package/dist/index.es.js +4 -4
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +4 -3
- package/src/components/Actions/Action/Action.scss +0 -1
- package/src/components/FormElements/Tags/Tags.tsx +3 -3
- package/src/components/FormStation/Create/Create.stories.tsx +9 -1
- package/src/components/FormStation/Create/Create.tsx +1 -4
- package/src/components/FormStation/Details/Details.tsx +2 -5
- package/src/components/FormStation/FormStation.models.ts +3 -29
- package/src/components/FormStation/FormStation.scss +70 -0
- package/src/components/FormStation/FormStation.spec.tsx +1 -2
- package/src/components/FormStation/FormStation.stories.tsx +1 -20
- package/src/components/FormStation/FormStation.tsx +403 -68
- package/src/components/FormStation/StationErrorStateType.tsx +5 -0
- package/src/components/FormStation/index.ts +5 -1
- package/src/components/FormStation/{helpers/useValidationError.tsx → useValidationError.tsx} +1 -1
- package/src/components/Utils/Postgraphile/getArrayDiff.ts +6 -7
- package/src/components/Utils/Postgraphile/getFormDiff.ts +1 -2
- package/dist/components/FormStation/FormContentWrapper/FormContentWrapper.d.ts +0 -11
- package/dist/components/FormStation/FormContentWrapper/FormContentWrapper.d.ts.map +0 -1
- package/dist/components/FormStation/FormStationActions/FormStationActions.d.ts +0 -21
- package/dist/components/FormStation/FormStationActions/FormStationActions.d.ts.map +0 -1
- package/dist/components/FormStation/FormStationContext/FormStationContext.d.ts +0 -13
- package/dist/components/FormStation/FormStationContext/FormStationContext.d.ts.map +0 -1
- package/dist/components/FormStation/FormStationContext/FormStationContextProvider.d.ts +0 -10
- package/dist/components/FormStation/FormStationContext/FormStationContextProvider.d.ts.map +0 -1
- package/dist/components/FormStation/FormStationHeader/FormStationHeader.d.ts +0 -12
- package/dist/components/FormStation/FormStationHeader/FormStationHeader.d.ts.map +0 -1
- package/dist/components/FormStation/helpers/mergeData.d.ts +0 -7
- package/dist/components/FormStation/helpers/mergeData.d.ts.map +0 -1
- package/dist/components/FormStation/helpers/useChangeSets.d.ts +0 -12
- package/dist/components/FormStation/helpers/useChangeSets.d.ts.map +0 -1
- package/dist/components/FormStation/helpers/useDataProvider.d.ts +0 -14
- package/dist/components/FormStation/helpers/useDataProvider.d.ts.map +0 -1
- package/dist/components/FormStation/helpers/useDebouncedFormikValues.d.ts +0 -7
- package/dist/components/FormStation/helpers/useDebouncedFormikValues.d.ts.map +0 -1
- package/dist/components/FormStation/helpers/useUndo.d.ts +0 -6
- package/dist/components/FormStation/helpers/useUndo.d.ts.map +0 -1
- package/dist/components/FormStation/helpers/useValidationError.d.ts.map +0 -1
- package/src/components/FormStation/FormContentWrapper/FormContentWrapper.scss +0 -66
- package/src/components/FormStation/FormContentWrapper/FormContentWrapper.tsx +0 -77
- package/src/components/FormStation/FormStationActions/FormStationActions.tsx +0 -132
- package/src/components/FormStation/FormStationContext/FormStationContext.ts +0 -22
- package/src/components/FormStation/FormStationContext/FormStationContextProvider.tsx +0 -86
- package/src/components/FormStation/FormStationHeader/FormStationHeader.tsx +0 -85
- package/src/components/FormStation/helpers/mergeData.ts +0 -26
- package/src/components/FormStation/helpers/useChangeSets.ts +0 -70
- package/src/components/FormStation/helpers/useDataProvider.ts +0 -169
- package/src/components/FormStation/helpers/useDebouncedFormikValues.ts +0 -22
- package/src/components/FormStation/helpers/useUndo.ts +0 -43
|
@@ -2,7 +2,7 @@ import React, { PropsWithChildren } from 'react';
|
|
|
2
2
|
import { Data } from '../../../types/data';
|
|
3
3
|
import { FormStationProps } from '../FormStation';
|
|
4
4
|
import { ActionHandler } from '../FormStation.models';
|
|
5
|
-
export type CreateProps<TValues extends Data, TSubmitResponse = unknown> = Omit<FormStationProps<TValues, TSubmitResponse>, 'actions' | 'onActionSelected' | 'alwaysShowActionsPanel' | 'defaultTitle' | 'titleProperty' | 'alwaysSubmitBeforeAction'
|
|
5
|
+
export type CreateProps<TValues extends Data, TSubmitResponse = unknown> = Omit<FormStationProps<TValues, TSubmitResponse>, 'actions' | 'onActionSelected' | 'alwaysShowActionsPanel' | 'defaultTitle' | 'titleProperty' | 'alwaysSubmitBeforeAction'> & {
|
|
6
6
|
/** The title of the station */
|
|
7
7
|
title: string;
|
|
8
8
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Create.d.ts","sourceRoot":"","sources":["../../../../src/components/FormStation/Create/Create.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAC3C,OAAO,EAAe,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEtD,MAAM,MAAM,WAAW,CAAC,OAAO,SAAS,IAAI,EAAE,eAAe,GAAG,OAAO,IAAI,IAAI,CAC7E,gBAAgB,CAAC,OAAO,EAAE,eAAe,CAAC,EACxC,SAAS,GACT,kBAAkB,GAClB,wBAAwB,GACxB,cAAc,GACd,eAAe,GACf,0BAA0B,
|
|
1
|
+
{"version":3,"file":"Create.d.ts","sourceRoot":"","sources":["../../../../src/components/FormStation/Create/Create.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAC3C,OAAO,EAAe,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEtD,MAAM,MAAM,WAAW,CAAC,OAAO,SAAS,IAAI,EAAE,eAAe,GAAG,OAAO,IAAI,IAAI,CAC7E,gBAAgB,CAAC,OAAO,EAAE,eAAe,CAAC,EACxC,SAAS,GACT,kBAAkB,GAClB,wBAAwB,GACxB,cAAc,GACd,eAAe,GACf,0BAA0B,CAC7B,GAAG;IACF,+BAA+B;IAC/B,KAAK,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,SAAS,EAAE,aAAa,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC;IAEnD;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,MAAM,8HAEhB,WA+BF,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { PropsWithChildren } from 'react';
|
|
2
2
|
import { Data } from '../../../types/data';
|
|
3
3
|
import { FormStationProps } from '../FormStation';
|
|
4
|
-
export type DetailsProps<TValues extends Data, TSubmitResponse =
|
|
4
|
+
export type DetailsProps<TValues extends Data, TSubmitResponse = unknown> = Omit<FormStationProps<TValues, TSubmitResponse>, 'cancelNavigationUrl' | 'alwaysSubmitBeforeAction'>;
|
|
5
5
|
/**
|
|
6
6
|
* This component is the basic building block for 'details' stations in the CMS.
|
|
7
7
|
*
|
|
@@ -15,5 +15,5 @@ export type DetailsProps<TValues extends Data, TSubmitResponse = Partial<TValues
|
|
|
15
15
|
* In addition, it allows the definition of `actions`, which will be presented to the user in the appropriate panel.
|
|
16
16
|
* The component uses the `onActionSelected` callback to notify the application when an action needs to be executed by the application.
|
|
17
17
|
*/
|
|
18
|
-
export declare const Details: <TValues extends Data, TSubmitResponse =
|
|
18
|
+
export declare const Details: <TValues extends Data, TSubmitResponse = unknown>(props: React.PropsWithChildren<DetailsProps<TValues, TSubmitResponse>>) => JSX.Element;
|
|
19
19
|
//# sourceMappingURL=Details.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Details.d.ts","sourceRoot":"","sources":["../../../../src/components/FormStation/Details/Details.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAC3C,OAAO,EAAe,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAE/D,MAAM,MAAM,YAAY,CACtB,OAAO,SAAS,IAAI,EACpB,eAAe,GAAG,OAAO,
|
|
1
|
+
{"version":3,"file":"Details.d.ts","sourceRoot":"","sources":["../../../../src/components/FormStation/Details/Details.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AAC3C,OAAO,EAAe,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAE/D,MAAM,MAAM,YAAY,CACtB,OAAO,SAAS,IAAI,EACpB,eAAe,GAAG,OAAO,IACvB,IAAI,CACN,gBAAgB,CAAC,OAAO,EAAE,eAAe,CAAC,EAC1C,qBAAqB,GAAG,0BAA0B,CACnD,CAAC;AAEF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,OAAO,+HAEjB,WAMF,CAAC"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import { FormikValues } from 'formik';
|
|
1
|
+
import { FormikHelpers, FormikValues } from 'formik';
|
|
2
2
|
import React, { PropsWithChildren } from 'react';
|
|
3
3
|
import { OptionalObjectSchema } from 'yup/lib/object';
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
4
|
+
import { Data } from '../../types/data';
|
|
5
|
+
import { StationMessage } from '../models';
|
|
6
|
+
import { FormActionData, InitialFormData } from './FormStation.models';
|
|
7
|
+
export type ObjectSchemaDefinition<T extends Data | null = any> = {
|
|
8
|
+
[field in keyof T]: any;
|
|
9
|
+
};
|
|
7
10
|
export interface FormStationProps<TValues extends Data = FormikValues, TSubmitResponse = unknown> {
|
|
8
11
|
/** name of the property on the form that holds the title */
|
|
9
12
|
titleProperty?: keyof TValues;
|
|
@@ -42,11 +45,15 @@ export interface FormStationProps<TValues extends Data = FormikValues, TSubmitRe
|
|
|
42
45
|
* Called whenever the form needs to be saved.
|
|
43
46
|
* This method needs to throw an exception in case the saving did not succeed.
|
|
44
47
|
*/
|
|
45
|
-
saveData:
|
|
48
|
+
saveData: (
|
|
49
|
+
/** The current values of the form */
|
|
50
|
+
values: TValues,
|
|
51
|
+
/** The initial values of the form */
|
|
52
|
+
initialData: InitialFormData<TValues>,
|
|
53
|
+
/** The Formik state helpers */
|
|
54
|
+
formikHelpers: FormikHelpers<TValues>) => Promise<TSubmitResponse> | void;
|
|
46
55
|
/** CSS Class name for additional styles */
|
|
47
56
|
className?: string;
|
|
48
|
-
/** Periodically calls saveData when the form values change */
|
|
49
|
-
autosave?: boolean;
|
|
50
57
|
}
|
|
51
|
-
export declare const FormStation: <TValues extends Data, TSubmitResponse = unknown>({ titleProperty, defaultTitle, subtitle, children, alwaysShowActionsPanel, actions, actionsWidth, cancelNavigationUrl, initialData, saveData, validationSchema, infoPanel, edgeToEdgeContent, alwaysSubmitBeforeAction, stationMessage, className,
|
|
58
|
+
export declare const FormStation: <TValues extends Data, TSubmitResponse = unknown>({ titleProperty, defaultTitle, subtitle, children, alwaysShowActionsPanel, actions, actionsWidth, cancelNavigationUrl, initialData, saveData, validationSchema, infoPanel, edgeToEdgeContent, alwaysSubmitBeforeAction, stationMessage, className, }: React.PropsWithChildren<FormStationProps<TValues, TSubmitResponse>>) => JSX.Element;
|
|
52
59
|
//# sourceMappingURL=FormStation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormStation.d.ts","sourceRoot":"","sources":["../../../src/components/FormStation/FormStation.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"FormStation.d.ts","sourceRoot":"","sources":["../../../src/components/FormStation/FormStation.tsx"],"names":[],"mappings":"AACA,OAAO,EAGL,aAAa,EACb,YAAY,EAEb,MAAM,QAAQ,CAAC;AAChB,OAAO,KAAK,EAAE,EACZ,iBAAiB,EAMlB,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAEtD,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAWxC,OAAO,EAAa,cAAc,EAAE,MAAM,WAAW,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAMvE,MAAM,MAAM,sBAAsB,CAEhC,CAAC,SAAS,IAAI,GAAG,IAAI,GAAG,GAAG,IACzB;KAMD,KAAK,IAAI,MAAM,CAAC,GAAG,GAAG;CACxB,CAAC;AAEF,MAAM,WAAW,gBAAgB,CAC/B,OAAO,SAAS,IAAI,GAAG,YAAY,EACnC,eAAe,GAAG,OAAO;IAEzB,4DAA4D;IAC5D,aAAa,CAAC,EAAE,MAAM,OAAO,CAAC;IAC9B,mDAAmD;IACnD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oCAAoC;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,kFAAkF;IAClF,sBAAsB,CAAC,EAAE,OAAO,CAAC;IAEjC,OAAO,CAAC,EAAE,cAAc,CAAC,OAAO,EAAE,eAAe,CAAC,EAAE,CAAC;IACrD,wDAAwD;IACxD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,WAAW,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC;IACtC,mFAAmF;IACnF,gBAAgB,CAAC,EAAE,oBAAoB,CAAC,sBAAsB,CAAC,OAAO,CAAC,CAAC,CAAC;IACzE,8EAA8E;IAC9E,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,sDAAsD;IACtD,SAAS,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IACxB,sEAAsE;IACtE,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;;OAGG;IACH,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC;;;OAGG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC;;;OAGG;IACH,QAAQ,EAAE;IACR,qCAAqC;IACrC,MAAM,EAAE,OAAO;IACf,qCAAqC;IACrC,WAAW,EAAE,eAAe,CAAC,OAAO,CAAC;IACrC,+BAA+B;IAC/B,aAAa,EAAE,aAAa,CAAC,OAAO,CAAC,KAClC,OAAO,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC;IACrC,2CAA2C;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAeD,eAAO,MAAM,WAAW,kXAmBpB,WA0LH,CAAC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import type { ErrorType, StationError } from '../models';
|
|
1
|
+
import { FormikValues } from 'formik';
|
|
2
|
+
import { ActionData } from '../Actions';
|
|
3
|
+
import { ErrorType } from '../models';
|
|
5
4
|
export interface InitialFormData<T> {
|
|
6
5
|
/** Indicates whether the data is still loading or not */
|
|
7
6
|
loading: boolean;
|
|
@@ -21,13 +20,6 @@ export interface InitialFormData<T> {
|
|
|
21
20
|
*/
|
|
22
21
|
error?: ErrorType;
|
|
23
22
|
}
|
|
24
|
-
export type SaveDataFunction<TValues, TSubmitResponse> = (
|
|
25
|
-
/** The current values of the form */
|
|
26
|
-
values: TValues,
|
|
27
|
-
/** The initial values of the form */
|
|
28
|
-
initialData: InitialFormData<TValues>,
|
|
29
|
-
/** The Formik state helpers */
|
|
30
|
-
formikHelpers: FormikHelpers<TValues>) => Promise<TSubmitResponse | void> | void;
|
|
31
23
|
/**
|
|
32
24
|
* A function to handle an action execution on a FormStation.
|
|
33
25
|
* If action can not be performed, an error can be thrown which will then be displayed by the FormStation.
|
|
@@ -39,10 +31,4 @@ export type ActionHandler<TValues = FormikValues, TSubmitResponse = unknown> = (
|
|
|
39
31
|
submitResponse: TSubmitResponse | undefined;
|
|
40
32
|
}) => Promise<ErrorType | undefined | void> | ErrorType | undefined | void;
|
|
41
33
|
export type FormActionData<TValues = FormikValues, TSubmitResponse = unknown> = ActionData<ActionHandler<TValues, TSubmitResponse>>;
|
|
42
|
-
export type ObjectSchemaDefinition<T extends Data | null = any> = {
|
|
43
|
-
[field in keyof T]: any;
|
|
44
|
-
};
|
|
45
|
-
export interface StationErrorStateType extends StationError {
|
|
46
|
-
type?: string;
|
|
47
|
-
}
|
|
48
34
|
//# sourceMappingURL=FormStation.models.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormStation.models.d.ts","sourceRoot":"","sources":["../../../src/components/FormStation/FormStation.models.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"FormStation.models.d.ts","sourceRoot":"","sources":["../../../src/components/FormStation/FormStation.models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC,MAAM,WAAW,eAAe,CAAC,CAAC;IAChC,yDAAyD;IACzD,OAAO,EAAE,OAAO,CAAC;IACjB;;;OAGG;IACH,IAAI,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC;IAChB;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;OAGG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;CACnB;AAED;;;;;GAKG;AACH,MAAM,MAAM,aAAa,CACvB,OAAO,GAAG,YAAY,EACtB,eAAe,GAAG,OAAO,IACvB,CAAC,WAAW,EAAE;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,cAAc,EAAE,eAAe,GAAG,SAAS,CAAC;CAC7C,KAAK,OAAO,CAAC,SAAS,GAAG,SAAS,GAAG,IAAI,CAAC,GAAG,SAAS,GAAG,SAAS,GAAG,IAAI,CAAC;AAE3E,MAAM,MAAM,cAAc,CACxB,OAAO,GAAG,YAAY,EACtB,eAAe,GAAG,OAAO,IACvB,UAAU,CAAC,aAAa,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StationErrorStateType.d.ts","sourceRoot":"","sources":["../../../src/components/FormStation/StationErrorStateType.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzC,MAAM,WAAW,qBAAsB,SAAQ,YAAY;IACzD,IAAI,CAAC,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { Create, CreateProps } from './Create/Create';
|
|
2
2
|
export { Details, DetailsProps } from './Details/Details';
|
|
3
|
-
export { FormStation, FormStationProps } from './FormStation';
|
|
3
|
+
export { FormStation, FormStationProps, ObjectSchemaDefinition, } from './FormStation';
|
|
4
4
|
export * from './FormStation.models';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FormStation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/FormStation/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,sBAAsB,GACvB,MAAM,eAAe,CAAC;AACvB,cAAc,sBAAsB,CAAC"}
|
package/dist/components/FormStation/{helpers/useValidationError.d.ts → useValidationError.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import { StationErrorStateType } from './StationErrorStateType';
|
|
3
3
|
/**
|
|
4
4
|
* Cares for showing (and removing) validation errors.
|
|
5
5
|
* @param stationError the currently showing error
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useValidationError.d.ts","sourceRoot":"","sources":["../../../src/components/FormStation/useValidationError.tsx"],"names":[],"mappings":"AACA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAehE;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAChC,YAAY,EAAE,qBAAqB,GAAG,SAAS,EAC/C,eAAe,EAAE,KAAK,CAAC,QAAQ,CAC7B,KAAK,CAAC,cAAc,CAAC,qBAAqB,GAAG,SAAS,CAAC,CACxD,GACA;IACD,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,iBAAiB,EAAE,GAAG,CAAC,OAAO,CAAC;CAChC,CAyBA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getArrayDiff.d.ts","sourceRoot":"","sources":["../../../../src/components/Utils/Postgraphile/getArrayDiff.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getArrayDiff.d.ts","sourceRoot":"","sources":["../../../../src/components/Utils/Postgraphile/getArrayDiff.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAC5B,OAAO,EAAE,CAAC,EAAE,GAAG,IAAI,GAAG,SAAS,EAC/B,OAAO,EAAE,CAAC,EAAE,GAAG,IAAI,GAAG,SAAS,GAC9B;IACD,gCAAgC;IAChC,KAAK,EAAE,CAAC,EAAE,CAAC;IACX,kCAAkC;IAClC,OAAO,EAAE,CAAC,EAAE,CAAC;CACd,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAC5B,OAAO,EAAE,CAAC,EAAE,GAAG,IAAI,GAAG,SAAS,EAC/B,OAAO,EAAE,CAAC,EAAE,GAAG,IAAI,GAAG,SAAS,EAC/B,GAAG,CAAC,EAAE,MAAM,CAAC,GACZ;IACD,gCAAgC;IAChC,KAAK,EAAE,CAAC,EAAE,CAAC;IACX,kCAAkC;IAClC,OAAO,EAAE,CAAC,EAAE,CAAC;IACb,kCAAkC;IAClC,OAAO,EAAE,CAAC,EAAE,CAAC;CACd,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getFormDiff.d.ts","sourceRoot":"","sources":["../../../../src/components/Utils/Postgraphile/getFormDiff.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"getFormDiff.d.ts","sourceRoot":"","sources":["../../../../src/components/Utils/Postgraphile/getFormDiff.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC;;;;;;;;;;;;GAYG;AACH,wBAAgB,WAAW,CAAC,CAAC,SAAS,YAAY,EAChD,OAAO,EAAE,CAAC,EACV,OAAO,CAAC,EAAE,CAAC,GAAG,IAAI,GACjB,OAAO,CAAC,CAAC,CAAC,CAUZ"}
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
/// <reference types="jest" />
|
|
2
|
-
/// <reference types="jest-expect-message" />
|
|
3
|
-
/// <reference types="testing-library__jest-dom" />
|
|
4
1
|
import { ShallowWrapper } from 'enzyme';
|
|
5
2
|
/**
|
|
6
3
|
* Executes the given callback in an `setImmediate` call and returns a Promise that resolves after the call is finished.
|
|
@@ -38,5 +35,5 @@ export declare function actWithReturn<T>(render: () => T | Promise<T>): Promise<
|
|
|
38
35
|
* This helper will not mock any thing. It's just converting Typescript types!
|
|
39
36
|
* @param f the mocked function
|
|
40
37
|
*/
|
|
41
|
-
export declare const asSpy: <T>(fn: (...args: any) => T) => jest.SpyInstance<Partial<T
|
|
38
|
+
export declare const asSpy: <T>(fn: (...args: any) => T) => jest.SpyInstance<Partial<T>>;
|
|
42
39
|
//# sourceMappingURL=testing.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../src/helpers/testing.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../src/helpers/testing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAOxC;;;GAGG;AACH,eAAO,MAAM,iBAAiB,aAClB,CAAC,MAAM,QAAQ,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,IAAI,CAAC,KAC7C,QAAQ,IAAI,CAWd,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kCAAkC;;2CAIvC,MAAM,iBACG,MAAM,GAAG,SAAS,KAC9B,IA6BJ,CAAC;AAEF;;;;;;;;;;;;;;;;GAgBG;AAEH,wBAAsB,aAAa,CAAC,CAAC,EACnC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,GAC3B,OAAO,CAAC,CAAC,CAAC,CAQZ;AAED;;;;GAIG;AACH,eAAO,MAAM,KAAK,oBACF,GAAG,uCAGlB,CAAC"}
|