@axinom/mosaic-ui 0.39.1-feat-gs.0 → 0.39.1-feat-gs.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.
Files changed (46) hide show
  1. package/dist/components/Accordion/Accordion.d.ts +7 -7
  2. package/dist/components/Accordion/AccordionItem/AccordionItem.d.ts +2 -2
  3. package/dist/components/ConfirmDialog/index.d.ts +1 -1
  4. package/dist/components/ConfirmDialog/index.d.ts.map +1 -1
  5. package/dist/components/FormStation/Create/Create.d.ts +1 -1
  6. package/dist/components/FormStation/Create/Create.d.ts.map +1 -1
  7. package/dist/components/FormStation/Details/Details.d.ts +2 -2
  8. package/dist/components/FormStation/Details/Details.d.ts.map +1 -1
  9. package/dist/components/FormStation/FormStation.d.ts +15 -8
  10. package/dist/components/FormStation/FormStation.d.ts.map +1 -1
  11. package/dist/components/FormStation/FormStation.models.d.ts +3 -17
  12. package/dist/components/FormStation/FormStation.models.d.ts.map +1 -1
  13. package/dist/components/FormStation/StationErrorStateType.d.ts +5 -0
  14. package/dist/components/FormStation/StationErrorStateType.d.ts.map +1 -0
  15. package/dist/components/FormStation/index.d.ts +1 -1
  16. package/dist/components/FormStation/index.d.ts.map +1 -1
  17. package/dist/components/FormStation/{helpers/useValidationError.d.ts → useValidationError.d.ts} +1 -1
  18. package/dist/components/FormStation/useValidationError.d.ts.map +1 -0
  19. package/dist/components/Utils/Postgraphile/getArrayDiff.d.ts.map +1 -1
  20. package/dist/components/Utils/Postgraphile/getFormDiff.d.ts.map +1 -1
  21. package/dist/index.es.js +4 -4
  22. package/dist/index.es.js.map +1 -1
  23. package/dist/index.js +4 -4
  24. package/dist/index.js.map +1 -1
  25. package/package.json +2 -2
  26. package/dist/components/FormStation/FormContentWrapper/FormContentWrapper.d.ts +0 -11
  27. package/dist/components/FormStation/FormContentWrapper/FormContentWrapper.d.ts.map +0 -1
  28. package/dist/components/FormStation/FormStationActions/FormStationActions.d.ts +0 -21
  29. package/dist/components/FormStation/FormStationActions/FormStationActions.d.ts.map +0 -1
  30. package/dist/components/FormStation/FormStationContext/FormStationContext.d.ts +0 -13
  31. package/dist/components/FormStation/FormStationContext/FormStationContext.d.ts.map +0 -1
  32. package/dist/components/FormStation/FormStationContext/FormStationContextProvider.d.ts +0 -10
  33. package/dist/components/FormStation/FormStationContext/FormStationContextProvider.d.ts.map +0 -1
  34. package/dist/components/FormStation/FormStationHeader/FormStationHeader.d.ts +0 -12
  35. package/dist/components/FormStation/FormStationHeader/FormStationHeader.d.ts.map +0 -1
  36. package/dist/components/FormStation/helpers/mergeData.d.ts +0 -7
  37. package/dist/components/FormStation/helpers/mergeData.d.ts.map +0 -1
  38. package/dist/components/FormStation/helpers/useChangeSets.d.ts +0 -12
  39. package/dist/components/FormStation/helpers/useChangeSets.d.ts.map +0 -1
  40. package/dist/components/FormStation/helpers/useDataProvider.d.ts +0 -14
  41. package/dist/components/FormStation/helpers/useDataProvider.d.ts.map +0 -1
  42. package/dist/components/FormStation/helpers/useDebouncedFormikValues.d.ts +0 -7
  43. package/dist/components/FormStation/helpers/useDebouncedFormikValues.d.ts.map +0 -1
  44. package/dist/components/FormStation/helpers/useUndo.d.ts +0 -6
  45. package/dist/components/FormStation/helpers/useUndo.d.ts.map +0 -1
  46. package/dist/components/FormStation/helpers/useValidationError.d.ts.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axinom/mosaic-ui",
3
- "version": "0.39.1-feat-gs.0",
3
+ "version": "0.39.1-feat-gs.1",
4
4
  "description": "UI components for building Axinom Mosaic applications",
5
5
  "author": "Axinom",
6
6
  "license": "PROPRIETARY",
@@ -32,7 +32,7 @@
32
32
  "build-storybook": "storybook build"
33
33
  },
34
34
  "dependencies": {
35
- "@axinom/mosaic-core": "workspace:^",
35
+ "@axinom/mosaic-core": "^0.4.12-rc.4",
36
36
  "@faker-js/faker": "^7.4.0",
37
37
  "@popperjs/core": "^2.11.8",
38
38
  "clsx": "^1.1.0",
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import type { Data } from '../../../types';
3
- import type { FormStationProps } from '../FormStation';
4
- import type { StationErrorStateType } from '../FormStation.models';
5
- interface FormContentWrapperProps extends Pick<FormStationProps<Data>, 'stationMessage' | 'edgeToEdgeContent' | 'infoPanel' | 'initialData'> {
6
- stationError?: StationErrorStateType;
7
- setStationError: React.Dispatch<React.SetStateAction<StationErrorStateType | undefined>>;
8
- }
9
- export declare const FormContentWrapper: React.FC<FormContentWrapperProps>;
10
- export {};
11
- //# sourceMappingURL=FormContentWrapper.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormContentWrapper.d.ts","sourceRoot":"","sources":["../../../../src/components/FormStation/FormContentWrapper/FormContentWrapper.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAE3C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAGnE,UAAU,uBACR,SAAQ,IAAI,CACV,gBAAgB,CAAC,IAAI,CAAC,EACtB,gBAAgB,GAAG,mBAAmB,GAAG,WAAW,GAAG,aAAa,CACrE;IACD,YAAY,CAAC,EAAE,qBAAqB,CAAC;IACrC,eAAe,EAAE,KAAK,CAAC,QAAQ,CAC7B,KAAK,CAAC,cAAc,CAAC,qBAAqB,GAAG,SAAS,CAAC,CACxD,CAAC;CACH;AAED,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAwDhE,CAAC"}
@@ -1,21 +0,0 @@
1
- import React, { PropsWithChildren } from 'react';
2
- import { OptionalObjectSchema } from 'yup/lib/object';
3
- import { ActionsProps } from '../../Actions';
4
- import { StationError } from '../../models';
5
- import { FormActionData, ObjectSchemaDefinition } from '../FormStation.models';
6
- interface FormActionProps<T, Y> extends Omit<ActionsProps, 'actions'> {
7
- validationSchema?: OptionalObjectSchema<ObjectSchemaDefinition<any>>;
8
- actions?: FormActionData<T, Y>[];
9
- setStationError: (error: StationError) => void;
10
- setValidationError: () => void;
11
- submitResponse?: React.MutableRefObject<Y | undefined>;
12
- alwaysSubmitBeforeAction?: boolean;
13
- className?: string;
14
- isFormSubmitting?: boolean;
15
- }
16
- /**
17
- * Saves the form before the action is performed.
18
- */
19
- export declare const FormStationActions: <T, Y>(props: React.PropsWithChildren<FormActionProps<T, Y>>) => JSX.Element;
20
- export {};
21
- //# sourceMappingURL=FormStationActions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormStationActions.d.ts","sourceRoot":"","sources":["../../../../src/components/FormStation/FormStationActions/FormStationActions.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAW,MAAM,OAAO,CAAC;AAC1D,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAEtD,OAAO,EAAW,YAAY,EAAE,MAAM,eAAe,CAAC;AAEtD,OAAO,EAAa,YAAY,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAE/E,UAAU,eAAe,CAAC,CAAC,EAAE,CAAC,CAAE,SAAQ,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC;IAEnE,gBAAgB,CAAC,EAAE,oBAAoB,CAAC,sBAAsB,CAAC,GAAG,CAAC,CAAC,CAAC;IACrE,OAAO,CAAC,EAAE,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC;IACjC,eAAe,EAAE,CAAC,KAAK,EAAE,YAAY,KAAK,IAAI,CAAC;IAC/C,kBAAkB,EAAE,MAAM,IAAI,CAAC;IAC/B,cAAc,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC;IACvD,wBAAwB,CAAC,EAAE,OAAO,CAAC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAED;;GAEG;AACH,eAAO,MAAM,kBAAkB,mEAE5B,WAyGF,CAAC"}
@@ -1,13 +0,0 @@
1
- import type { FormikValues } from 'formik';
2
- import React from 'react';
3
- import { ChangeSet } from '../helpers/useChangeSets';
4
- export interface FormStationContextType {
5
- changeSets: ChangeSet<FormikValues>[];
6
- pushChangeSet: (value: never) => void;
7
- popChangeSet: () => ChangeSet<FormikValues> | undefined;
8
- clearChangeSets: () => FormikValues;
9
- lastUndoneValue: React.MutableRefObject<FormikValues>;
10
- autosave: boolean;
11
- }
12
- export declare const FormStationContext: React.Context<FormStationContextType>;
13
- //# sourceMappingURL=FormStationContext.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormStationContext.d.ts","sourceRoot":"","sources":["../../../../src/components/FormStation/FormStationContext/FormStationContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAC3C,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAErD,MAAM,WAAW,sBAAsB;IACrC,UAAU,EAAE,SAAS,CAAC,YAAY,CAAC,EAAE,CAAC;IACtC,aAAa,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACtC,YAAY,EAAE,MAAM,SAAS,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC;IACxD,eAAe,EAAE,MAAM,YAAY,CAAC;IACpC,eAAe,EAAE,KAAK,CAAC,gBAAgB,CAAC,YAAY,CAAC,CAAC;IACtD,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,kBAAkB,uCAO7B,CAAC"}
@@ -1,10 +0,0 @@
1
- import React, { PropsWithChildren } from 'react';
2
- import { Data } from '../../../types';
3
- interface FormStationContextProviderProps<TValues extends Data> {
4
- autosave?: boolean;
5
- autosaveDelay?: number;
6
- currentValuesRef?: React.MutableRefObject<Partial<TValues>>;
7
- }
8
- export declare const FormStationContextProvider: <TValues extends Data>({ children, autosave, autosaveDelay, currentValuesRef, }: React.PropsWithChildren<FormStationContextProviderProps<TValues>>) => JSX.Element;
9
- export {};
10
- //# sourceMappingURL=FormStationContextProvider.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormStationContextProvider.d.ts","sourceRoot":"","sources":["../../../../src/components/FormStation/FormStationContext/FormStationContextProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAqB,MAAM,OAAO,CAAC;AACpE,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAMtC,UAAU,+BAA+B,CAAC,OAAO,SAAS,IAAI;IAC5D,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC;CAC7D;AAED,eAAO,MAAM,0BAA0B,yJAOnC,WAiEH,CAAC"}
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- import { PageHeaderProps } from '../../PageHeader';
3
- /**
4
- * Handles showRefresh and cancel buttons based on form states
5
- */
6
- export declare const FormStationHeader: React.FC<Omit<PageHeaderProps, 'title'> & {
7
- titleProperty?: string;
8
- defaultTitle?: string;
9
- cancelNavigationUrl?: string;
10
- isFormSubmitting?: boolean;
11
- }>;
12
- //# sourceMappingURL=FormStationHeader.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"FormStationHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/FormStation/FormStationHeader/FormStationHeader.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAGL,eAAe,EAChB,MAAM,kBAAkB,CAAC;AAG1B;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CACtC,IAAI,CAAC,eAAe,EAAE,OAAO,CAAC,GAAG;IAC/B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAgEF,CAAC"}
@@ -1,7 +0,0 @@
1
- import { Data } from '../../../types';
2
- export declare const mergeData: <TValues extends Data>(initialValues: TValues, currentValues: TValues, updatedValues?: Partial<TValues> | undefined) => {
3
- newInitialValues: TValues;
4
- newCurrentValues: TValues;
5
- shouldUpdateCurrentValues: boolean;
6
- };
7
- //# sourceMappingURL=mergeData.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mergeData.d.ts","sourceRoot":"","sources":["../../../../src/components/FormStation/helpers/mergeData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAGtC,eAAO,MAAM,SAAS;;;+BAOO,OAAO;CAenC,CAAC"}
@@ -1,12 +0,0 @@
1
- export interface ChangeSet<T> {
2
- prev: Partial<T>;
3
- next: Partial<T>;
4
- }
5
- export declare const useChangeSets: <T>(initialValues: T) => {
6
- changeSets: ChangeSet<T>[];
7
- push: (value: ChangeSet<T>) => number;
8
- pop: () => ChangeSet<T> | undefined;
9
- clear: () => Partial<T>;
10
- getAggregatedChanges: () => T;
11
- };
12
- //# sourceMappingURL=useChangeSets.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useChangeSets.d.ts","sourceRoot":"","sources":["../../../../src/components/FormStation/helpers/useChangeSets.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,SAAS,CAAC,CAAC;IAC1B,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;IACjB,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;CAClB;AAED,eAAO,MAAM,aAAa;;mCAIO,MAAM;;;;CA0DtC,CAAC"}
@@ -1,14 +0,0 @@
1
- import { FormikHelpers } from 'formik';
2
- import { Dispatch, SetStateAction } from 'react';
3
- import { Data } from '../../../types';
4
- import type { InitialFormData, SaveDataFunction, StationErrorStateType } from '../FormStation.models';
5
- export type FormStationDataProvider = <TValues extends Data, TSubmitResponse>(initialData: InitialFormData<TValues>, saveData: SaveDataFunction<TValues, TSubmitResponse>, currentDataRef: React.MutableRefObject<TValues>) => {
6
- onSubmit: (values: TValues, formikHelpers: FormikHelpers<TValues>, initialFormData?: InitialFormData<TValues>) => Promise<TSubmitResponse> | void;
7
- stationError?: StationErrorStateType;
8
- setStationError: Dispatch<SetStateAction<StationErrorStateType | undefined>>;
9
- isFormSubmitting: boolean;
10
- lastSubmittedResponse: React.MutableRefObject<TSubmitResponse | undefined>;
11
- initialValues: TValues | null | undefined;
12
- };
13
- export declare const useDataProvider: FormStationDataProvider;
14
- //# sourceMappingURL=useDataProvider.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useDataProvider.d.ts","sourceRoot":"","sources":["../../../../src/components/FormStation/helpers/useDataProvider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,EACL,QAAQ,EACR,cAAc,EAKf,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAItC,OAAO,KAAK,EACV,eAAe,EACf,gBAAgB,EAChB,qBAAqB,EACtB,MAAM,uBAAuB,CAAC;AAG/B,MAAM,MAAM,uBAAuB,GAAG,CAAC,OAAO,SAAS,IAAI,EAAE,eAAe,EAC1E,WAAW,EAAE,eAAe,CAAC,OAAO,CAAC,EACrC,QAAQ,EAAE,gBAAgB,CAAC,OAAO,EAAE,eAAe,CAAC,EACpD,cAAc,EAAE,KAAK,CAAC,gBAAgB,CAAC,OAAO,CAAC,KAC5C;IACH,QAAQ,EAAE,CACR,MAAM,EAAE,OAAO,EACf,aAAa,EAAE,aAAa,CAAC,OAAO,CAAC,EACrC,eAAe,CAAC,EAAE,eAAe,CAAC,OAAO,CAAC,KACvC,OAAO,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC;IACrC,YAAY,CAAC,EAAE,qBAAqB,CAAC;IACrC,eAAe,EAAE,QAAQ,CAAC,cAAc,CAAC,qBAAqB,GAAG,SAAS,CAAC,CAAC,CAAC;IAC7E,gBAAgB,EAAE,OAAO,CAAC;IAC1B,qBAAqB,EAAE,KAAK,CAAC,gBAAgB,CAAC,eAAe,GAAG,SAAS,CAAC,CAAC;IAC3E,aAAa,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC;CAC3C,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,uBAkI7B,CAAC"}
@@ -1,7 +0,0 @@
1
- import { FormikContextType } from 'formik';
2
- export declare const useDebouncedFormikValues: <TValues>(autosaveDelay?: number) => {
3
- debouncedValues: TValues;
4
- } & import("formik").FormikSharedConfig<{}> & import("formik").FormikState<TValues> & import("formik").FormikHelpers<TValues> & import("formik").FormikHandlers & import("formik").FormikComputedProps<TValues> & import("formik").FormikRegistration & {
5
- submitForm: () => Promise<any>;
6
- } & Pick<import("formik").FormikConfig<TValues>, "validate" | "validationSchema">;
7
- //# sourceMappingURL=useDebouncedFormikValues.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useDebouncedFormikValues.d.ts","sourceRoot":"","sources":["../../../../src/components/FormStation/helpers/useDebouncedFormikValues.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAoB,MAAM,QAAQ,CAAC;AAI7D,eAAO,MAAM,wBAAwB,4BACnB,MAAM;;;;iFAgBvB,CAAC"}
@@ -1,6 +0,0 @@
1
- export declare const useUndo: () => {
2
- undoOnce: () => void;
3
- undoAll: () => void;
4
- showUndo: boolean;
5
- };
6
- //# sourceMappingURL=useUndo.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useUndo.d.ts","sourceRoot":"","sources":["../../../../src/components/FormStation/helpers/useUndo.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,OAAO;cACR,MAAM,IAAI;aACX,MAAM,IAAI;cACT,OAAO;CAmClB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"useValidationError.d.ts","sourceRoot":"","sources":["../../../../src/components/FormStation/helpers/useValidationError.tsx"],"names":[],"mappings":"AACA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAChE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAenE;;;;;;;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"}