oiu-core1 0.1.15

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 (90) hide show
  1. package/README.md +143 -0
  2. package/dist/assets/oiu-core.css +1 -0
  3. package/dist/auth/AuthenticationProvider.d.ts +16 -0
  4. package/dist/auth/AuthenticationProvider.d.ts.map +1 -0
  5. package/dist/auth/AuthorizationProvider.d.ts +22 -0
  6. package/dist/auth/AuthorizationProvider.d.ts.map +1 -0
  7. package/dist/auth/Context.d.ts +5 -0
  8. package/dist/auth/Context.d.ts.map +1 -0
  9. package/dist/auth/OAuthService/index.d.ts +58 -0
  10. package/dist/auth/OAuthService/index.d.ts.map +1 -0
  11. package/dist/auth/OAuthService/utils.d.ts +23 -0
  12. package/dist/auth/OAuthService/utils.d.ts.map +1 -0
  13. package/dist/auth/_type.d.ts +157 -0
  14. package/dist/auth/_type.d.ts.map +1 -0
  15. package/dist/auth/index.d.ts +17 -0
  16. package/dist/auth/index.d.ts.map +1 -0
  17. package/dist/auth/utils.d.ts +42 -0
  18. package/dist/auth/utils.d.ts.map +1 -0
  19. package/dist/components/Col/index.d.ts +17 -0
  20. package/dist/components/Col/index.d.ts.map +1 -0
  21. package/dist/components/ConfigLoader/index.d.ts +24 -0
  22. package/dist/components/ConfigLoader/index.d.ts.map +1 -0
  23. package/dist/components/ErrorCode/index.d.ts +16 -0
  24. package/dist/components/ErrorCode/index.d.ts.map +1 -0
  25. package/dist/components/FormErrorSummary/Content.d.ts +10 -0
  26. package/dist/components/FormErrorSummary/Content.d.ts.map +1 -0
  27. package/dist/components/FormErrorSummary/WithErrorFieldsMap.d.ts +28 -0
  28. package/dist/components/FormErrorSummary/WithErrorFieldsMap.d.ts.map +1 -0
  29. package/dist/components/FormErrorSummary/index.d.ts +11 -0
  30. package/dist/components/FormErrorSummary/index.d.ts.map +1 -0
  31. package/dist/components/LangProvider/index.d.ts +31 -0
  32. package/dist/components/LangProvider/index.d.ts.map +1 -0
  33. package/dist/components/Pagination/index.d.ts +18 -0
  34. package/dist/components/Pagination/index.d.ts.map +1 -0
  35. package/dist/components/Row/index.d.ts +15 -0
  36. package/dist/components/Row/index.d.ts.map +1 -0
  37. package/dist/components/SearchWithCard/index.d.ts +35 -0
  38. package/dist/components/SearchWithCard/index.d.ts.map +1 -0
  39. package/dist/components/Wait/_type.d.ts +33 -0
  40. package/dist/components/Wait/_type.d.ts.map +1 -0
  41. package/dist/components/Wait/index.d.ts +9 -0
  42. package/dist/components/Wait/index.d.ts.map +1 -0
  43. package/dist/components/_types.d.ts +4 -0
  44. package/dist/components/_types.d.ts.map +1 -0
  45. package/dist/components/index.d.ts +20 -0
  46. package/dist/components/index.d.ts.map +1 -0
  47. package/dist/hoc/index.d.ts +3 -0
  48. package/dist/hoc/index.d.ts.map +1 -0
  49. package/dist/hoc/withError.d.ts +21 -0
  50. package/dist/hoc/withError.d.ts.map +1 -0
  51. package/dist/hoc/wl.d.ts +31 -0
  52. package/dist/hoc/wl.d.ts.map +1 -0
  53. package/dist/index-BRODpY4Y.js +2659 -0
  54. package/dist/init.d.ts +63 -0
  55. package/dist/init.d.ts.map +1 -0
  56. package/dist/language/index.d.ts +75 -0
  57. package/dist/language/index.d.ts.map +1 -0
  58. package/dist/main-DEwdbtUG.js +23410 -0
  59. package/dist/main.d.ts +10 -0
  60. package/dist/main.d.ts.map +1 -0
  61. package/dist/main.js +12 -0
  62. package/dist/redux/apiSlices/index.d.ts +19 -0
  63. package/dist/redux/apiSlices/index.d.ts.map +1 -0
  64. package/dist/redux/index.d.ts +18 -0
  65. package/dist/redux/index.d.ts.map +1 -0
  66. package/dist/redux/slices/appSlice.d.ts +67 -0
  67. package/dist/redux/slices/appSlice.d.ts.map +1 -0
  68. package/dist/redux/slices/errorSlice.d.ts +57 -0
  69. package/dist/redux/slices/errorSlice.d.ts.map +1 -0
  70. package/dist/redux/slices/langSlice.d.ts +41 -0
  71. package/dist/redux/slices/langSlice.d.ts.map +1 -0
  72. package/dist/theme/UITheme.d.ts +26 -0
  73. package/dist/theme/UITheme.d.ts.map +1 -0
  74. package/dist/theme/index.d.ts +16 -0
  75. package/dist/theme/index.d.ts.map +1 -0
  76. package/dist/utils/_types.d.ts +32 -0
  77. package/dist/utils/_types.d.ts.map +1 -0
  78. package/dist/utils/config.d.ts +32 -0
  79. package/dist/utils/config.d.ts.map +1 -0
  80. package/dist/utils/index.d.ts +8 -0
  81. package/dist/utils/index.d.ts.map +1 -0
  82. package/dist/utils/promise.d.ts +14 -0
  83. package/dist/utils/promise.d.ts.map +1 -0
  84. package/dist/utils/string.d.ts +15 -0
  85. package/dist/utils/string.d.ts.map +1 -0
  86. package/dist/utils/sys.d.ts +3 -0
  87. package/dist/utils/sys.d.ts.map +1 -0
  88. package/dist/utils/url.d.ts +47 -0
  89. package/dist/utils/url.d.ts.map +1 -0
  90. package/package.json +54 -0
@@ -0,0 +1,28 @@
1
+ import { FormInstance } from 'antd';
2
+ import { IBadResModel } from '../../redux/slices/errorSlice';
3
+ export type WithErrorFieldsMapProps = React.HTMLAttributes<HTMLDivElement> & {
4
+ /** Antd form instance used to bind field-level messages */
5
+ form?: FormInstance;
6
+ /**
7
+ * Backend errors grouped by backend field name.
8
+ * @example { '': ['1', '3'], Value1: ['105', '104'], Value2: [ '15' ], app: [ '4' ] }
9
+ */
10
+ errors?: IBadResModel;
11
+ /**
12
+ * Optional backend-to-frontend field mapping.
13
+ * Use this when API field names are different from form field names.
14
+ * If a backend field is not mapped, behavior depends on `skipUnmapFields`.
15
+ * @example { Value1: nameof<DataForm>('email'), Value2: nameof<DataForm>('phone'), app: '' }
16
+ */
17
+ fieldsMap?: Record<string, string>;
18
+ /** If true, ignores backend fields that are not present in `fieldsMap` */
19
+ skipUnmapFields?: boolean;
20
+ };
21
+ /**
22
+ * Renders the form error summary using preloaded redux error descriptions.
23
+ *
24
+ * This component only remaps backend field keys to frontend form field keys,
25
+ * then delegates message resolution/rendering to `Content`.
26
+ */
27
+ export default function WithErrorFieldsMap({ form, errors, fieldsMap, skipUnmapFields, ...html }: WithErrorFieldsMapProps): import("react/jsx-runtime").JSX.Element;
28
+ //# sourceMappingURL=WithErrorFieldsMap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WithErrorFieldsMap.d.ts","sourceRoot":"","sources":["../../../lib/components/FormErrorSummary/WithErrorFieldsMap.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAEpC,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAK7D,MAAM,MAAM,uBAAuB,GAAG,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,GAAG;IACzE,2DAA2D;IAC3D,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB;;;OAGG;IACH,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,0EAA0E;IAC1E,eAAe,CAAC,EAAE,OAAO,CAAC;CAC7B,CAAC;AACF;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EACvC,IAAI,EACJ,MAAM,EACN,SAAS,EACT,eAAe,EACf,GAAG,IAAI,EACV,EAAE,uBAAuB,2CAezB"}
@@ -0,0 +1,11 @@
1
+ import { MSId } from '../../redux/slices/errorSlice';
2
+ import { WithErrorFieldsMapProps } from './WithErrorFieldsMap';
3
+ /**
4
+ * Properties asociate to the FormErrorSummary
5
+ */
6
+ export type FormErrorSummaryProps = WithErrorFieldsMapProps & {
7
+ /** Array of services used to load the errors */
8
+ services: MSId[];
9
+ };
10
+ export declare function FormErrorSummary({ services, ...props }: FormErrorSummaryProps): import("react/jsx-runtime").JSX.Element;
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/FormErrorSummary/index.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AACrD,OAA2B,EAAE,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAInF;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,uBAAuB,GAAG;IAC1D,gDAAgD;IAChD,QAAQ,EAAE,IAAI,EAAE,CAAC;CACpB,CAAC;AACF,wBAAgB,gBAAgB,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,qBAAqB,2CAS7E"}
@@ -0,0 +1,31 @@
1
+ import { PropsWithChildren } from 'react';
2
+ import { MessageFormatElement } from 'react-intl';
3
+ import { Dfn, GL, LangInfo } from '../../language';
4
+ export type LangText = Record<string, {
5
+ loading: {
6
+ _: string;
7
+ languages: string;
8
+ };
9
+ }>;
10
+ export type LangProviderProps = PropsWithChildren<{
11
+ /** Optional CSS class name to apply to the Wait component wrapper */
12
+ className?: string;
13
+ /** Language information to be use in the site */
14
+ lang: LangInfo;
15
+ defaultTexts?: LangText;
16
+ langFiles: Record<string, Dfn<{
17
+ default: GL;
18
+ }>>;
19
+ transform?: (records: Record<string, string> | Record<string, MessageFormatElement[]>) => Record<string, string> | Record<string, MessageFormatElement[]>;
20
+ }>;
21
+ /** Provide internationalization
22
+ * @param param0 component arguments
23
+ * @returns
24
+ */
25
+ export declare function LangProvider({ children, className, lang, langFiles, defaultTexts, transform, }: LangProviderProps): import("react/jsx-runtime").JSX.Element;
26
+ /**
27
+ * Hook to get the current language information
28
+ * @returns {LangInfo} The current language information
29
+ */
30
+ export declare function useLanguage(): LangInfo;
31
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/LangProvider/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAsB,MAAM,OAAO,CAAC;AAG9D,OAAO,EAAgB,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAEhE,OAAO,EAAE,GAAG,EAAE,EAAE,EAAE,QAAQ,EAAe,MAAM,gBAAgB,CAAC;AAyBhE,MAAM,MAAM,QAAQ,GAAG,MAAM,CAAC,MAAM,EAAE;IAAE,OAAO,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAA;CAAE,CAAC,CAAC;AACrF,MAAM,MAAM,iBAAiB,GAAG,iBAAiB,CAAC;IAC9C,qEAAqE;IACrE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iDAAiD;IACjD,IAAI,EAAE,QAAQ,CAAC;IACf,YAAY,CAAC,EAAE,QAAQ,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;QAAE,OAAO,EAAE,EAAE,CAAA;KAAE,CAAC,CAAC,CAAC;IAChD,SAAS,CAAC,EAAE,CACR,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,oBAAoB,EAAE,CAAC,KACvE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,oBAAoB,EAAE,CAAC,CAAC;CACxE,CAAC,CAAC;AACH;;;GAGG;AACH,wBAAgB,YAAY,CAAC,EACzB,QAAQ,EACR,SAAS,EACT,IAAI,EACJ,SAAS,EACT,YAAuB,EACvB,SAAS,GACZ,EAAE,iBAAiB,2CAyDnB;AAED;;;GAGG;AAEH,wBAAgB,WAAW,IAAI,QAAQ,CAEtC"}
@@ -0,0 +1,18 @@
1
+ import { ComponentType, ReactNode } from 'react';
2
+ export type PaginationProps = {
3
+ current: number;
4
+ total: number;
5
+ pageSize: number;
6
+ onChange?: (page: number, pageSize: number) => void;
7
+ showTotal?: (total: number, range: [number, number]) => ReactNode;
8
+ };
9
+ /**
10
+ * Pagination component to be used in the Grid layout
11
+ * @param props
12
+ * @returns
13
+ */
14
+ export declare function Pagination<TProps extends PaginationProps = PaginationProps>({ ...props }: TProps): import("react/jsx-runtime").JSX.Element;
15
+ export declare namespace Pagination {
16
+ var component: ComponentType<PaginationProps>;
17
+ }
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/Pagination/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIjD,MAAM,MAAM,eAAe,GAAG;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACpD,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,KAAK,SAAS,CAAC;CACrE,CAAC;AACF;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,MAAM,SAAS,eAAe,GAAG,eAAe,EAAE,EAAE,GAAG,KAAK,EAAE,EAAE,MAAM,2CAKhG;yBALe,UAAU"}
@@ -0,0 +1,15 @@
1
+ import { ComponentType } from 'react';
2
+ import { Gutter } from '../_types';
3
+ export type RowProps = {
4
+ gutter?: Gutter | [Gutter, Gutter];
5
+ };
6
+ /**
7
+ * Row component to be used in the Grid layout
8
+ * @param props
9
+ * @returns
10
+ */
11
+ export declare function Row<TProps extends RowProps = RowProps>(props: TProps): import("react/jsx-runtime").JSX.Element;
12
+ export declare namespace Row {
13
+ var component: ComponentType<RowProps>;
14
+ }
15
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/Row/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAInC,MAAM,MAAM,QAAQ,GAAG;IACnB,MAAM,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACtC,CAAC;AACF;;;;GAIG;AACH,wBAAgB,GAAG,CAAC,MAAM,SAAS,QAAQ,GAAG,QAAQ,EAAE,KAAK,EAAE,MAAM,2CAKpE;yBALe,GAAG"}
@@ -0,0 +1,35 @@
1
+ import { ReactNode } from 'react';
2
+ import { RowProps } from '../Row';
3
+ import { PaginationProps } from '../Pagination';
4
+ import { IPaging, ISearch, ISearchModel } from '../../utils/_types';
5
+ export type SearchWithCardPaginationProps = Omit<PaginationProps, 'total' | 'pageSize' | 'current' | 'onChange' | 'showTotal'>;
6
+ export type SearchWithCardProps<T extends object, S extends ISearch<F>, F = unknown, TPaginationProps extends SearchWithCardPaginationProps = SearchWithCardPaginationProps> = {
7
+ /** Search parameters. This contains the filter, the order, and the paging information */
8
+ search: S;
9
+ /** Data source containing the list of items to display in the table along with the total count */
10
+ dataSource?: ISearchModel<T>;
11
+ /**
12
+ * Triggered when the page or page size changes. It receives the new page number and page size as parameters.
13
+ * @param page
14
+ * @param pageSize
15
+ * @returns
16
+ */
17
+ onPageChange: (page: number, pageSize: number) => void;
18
+ /**
19
+ * Function to render each item in the list. It receives the item and its index as parameters and should return a React node to be rendered.
20
+ * This allows for custom rendering of each item in the list, such as displaying the item's properties in a card format or any other desired layout.
21
+ * @param item The item to be rendered
22
+ * @param index The index of the item in the list
23
+ * @returns A React node representing the rendered item
24
+ */
25
+ renderItem: (item: T, index: number) => ReactNode;
26
+ filter?: React.ComponentType;
27
+ /** Static pagination properties used to modify the default pagination behavior */
28
+ paginationProps?: TPaginationProps;
29
+ rowGutter?: RowProps['gutter'];
30
+ };
31
+ export declare function SearchWithCard<T extends object, S extends ISearch<F>, F = unknown, TPaginationProps extends SearchWithCardPaginationProps = SearchWithCardPaginationProps>({ dataSource, search, renderItem, onPageChange, filter, paginationProps, rowGutter, }: SearchWithCardProps<T, S, F, TPaginationProps>): import("react/jsx-runtime").JSX.Element;
32
+ export declare namespace SearchWithCard {
33
+ var defaultPaging: IPaging;
34
+ }
35
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/SearchWithCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAwB,MAAM,OAAO,CAAC;AAGxD,OAAO,EAAO,QAAQ,EAAE,MAAM,QAAQ,CAAC;AACvC,OAAO,EAAc,eAAe,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAIpE,MAAM,MAAM,6BAA6B,GAAG,IAAI,CAAC,eAAe,EAAE,OAAO,GAAG,UAAU,GAAG,SAAS,GAAG,UAAU,GAAG,WAAW,CAAC,CAAC;AAC/H,MAAM,MAAM,mBAAmB,CAC3B,CAAC,SAAS,MAAM,EAChB,CAAC,SAAS,OAAO,CAAC,CAAC,CAAC,EACpB,CAAC,GAAG,OAAO,EACX,gBAAgB,SAAS,6BAA6B,GAAG,6BAA6B,IACtF;IACA,yFAAyF;IACzF,MAAM,EAAE,CAAC,CAAC;IACV,kGAAkG;IAClG,UAAU,CAAC,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC;IAC7B;;;;;OAKG;IACH,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IACvD;;;;;;OAMG;IACH,UAAU,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,SAAS,CAAC;IAClD,MAAM,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC7B,kFAAkF;IAClF,eAAe,CAAC,EAAE,gBAAgB,CAAC;IACnC,SAAS,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;CAClC,CAAC;AAEF,wBAAgB,cAAc,CAC1B,CAAC,SAAS,MAAM,EAChB,CAAC,SAAS,OAAO,CAAC,CAAC,CAAC,EACpB,CAAC,GAAG,OAAO,EACX,gBAAgB,SAAS,6BAA6B,GAAG,6BAA6B,EACxF,EACE,UAAU,EACV,MAAM,EACN,UAAU,EACV,YAAY,EACZ,MAAM,EACN,eAAe,EACf,SAAoB,GACvB,EAAE,mBAAmB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,gBAAgB,CAAC,2CAmDhD;yBAhEe,cAAc"}
@@ -0,0 +1,33 @@
1
+ import { ComponentType, PropsWithChildren, ReactNode } from "react";
2
+ export type SpinProps<T> = PropsWithChildren<{
3
+ /** Whether to show the spin */
4
+ spinning?: boolean;
5
+ /** The text to show when the spin is spinning */
6
+ tip?: ReactNode;
7
+ /** Class name */
8
+ className?: string;
9
+ /** Allow set extra properties to be passed to the final spin component */
10
+ extraProps?: T;
11
+ }>;
12
+ export type SpinOrSkeletonProps<TSpinProps, TSkeletonProps> = {
13
+ spin: SpinProps<TSpinProps>;
14
+ skeleton?: never;
15
+ } | {
16
+ spin?: never;
17
+ skeleton: SpinProps<TSkeletonProps>;
18
+ };
19
+ export type WaitProps<TSpinProps = unknown, TSkeletonProps = unknown> = PropsWithChildren<{
20
+ /** Optional CSS class name to apply to the Wait component wrapper */
21
+ className?: string;
22
+ /** Use translation api to resolve the text */
23
+ useTranslation?: boolean;
24
+ /** Show children when the spin is spinning in other case hide the children component */
25
+ showChildren?: boolean;
26
+ } & SpinOrSkeletonProps<TSpinProps, TSkeletonProps>>;
27
+ export type WaitComponentType<TSpinProps, TSkeletonProps> = ComponentType<WaitProps<TSpinProps, TSkeletonProps>> & {
28
+ spin: ComponentType<SpinProps<TSpinProps>>;
29
+ spinProps?: TSpinProps;
30
+ skeleton?: ComponentType<SpinProps<TSkeletonProps>>;
31
+ skeletonProps?: TSkeletonProps;
32
+ };
33
+ //# sourceMappingURL=_type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_type.d.ts","sourceRoot":"","sources":["../../../lib/components/Wait/_type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGpE,MAAM,MAAM,SAAS,CAAC,CAAC,IAAI,iBAAiB,CAAC;IACzC,+BAA+B;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iDAAiD;IACjD,GAAG,CAAC,EAAE,SAAS,CAAC;IAChB,iBAAiB;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0EAA0E;IAC1E,UAAU,CAAC,EAAE,CAAC,CAAC;CAClB,CAAC,CAAC;AACH,MAAM,MAAM,mBAAmB,CAAC,UAAU,EAAE,cAAc,IAAI;IAAE,IAAI,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;IAAC,QAAQ,CAAC,EAAE,KAAK,CAAA;CAAE,GAAG;IAAE,IAAI,CAAC,EAAE,KAAK,CAAC;IAAC,QAAQ,EAAE,SAAS,CAAC,cAAc,CAAC,CAAA;CAAE,CAAC;AACxK,MAAM,MAAM,SAAS,CAAC,UAAU,GAAG,OAAO,EAAE,cAAc,GAAG,OAAO,IAAI,iBAAiB,CACrF;IACI,qEAAqE;IACrE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,8CAA8C;IAC9C,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,wFAAwF;IACxF,YAAY,CAAC,EAAE,OAAO,CAAC;CAC1B,GAAG,mBAAmB,CAAC,UAAU,EAAE,cAAc,CAAC,CACtD,CAAC;AACF,MAAM,MAAM,iBAAiB,CAAC,UAAU,EAAE,cAAc,IAAI,aAAa,CAAC,SAAS,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC,GAAG;IAC/G,IAAI,EAAE,aAAa,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC,CAAC;IAC3C,SAAS,CAAC,EAAE,UAAU,CAAC;IAEvB,QAAQ,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC,CAAC;IACpD,aAAa,CAAC,EAAE,cAAc,CAAC;CAClC,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { WaitProps, SpinProps } from './_type';
2
+ /**
3
+ *
4
+ * @param param0
5
+ * @returns
6
+ */
7
+ export declare const Wait: import("react").MemoExoticComponent<(<TSpinProps = unknown, TSkeletonProps = unknown>({ showChildren, useTranslation, className, spin, skeleton, children, }: WaitProps<TSpinProps, TSkeletonProps>) => string | number | bigint | boolean | import("react/jsx-runtime").JSX.Element | Iterable<import("react").ReactNode> | Promise<string | number | bigint | boolean | import("react").ReactPortal | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | Iterable<import("react").ReactNode>>)>;
8
+ export type { SpinProps, WaitProps };
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/components/Wait/index.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAqB,MAAM,SAAS,CAAC;AAOlE;;;;GAIG;AACH,eAAO,MAAM,IAAI,wCAAkB,UAAU,YAAY,cAAc,oFAOpE,SAAS,CAAC,UAAU,EAAE,cAAc,CAAC,wUAoBtC,CAAC;AAmEH,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare const responsiveArray: readonly ["xxxl", "xxl", "xl", "lg", "md", "sm", "xs"];
2
+ export type Breakpoint = (typeof responsiveArray)[number];
3
+ export type Gutter = number | string | undefined | Partial<Record<Breakpoint, number>>;
4
+ //# sourceMappingURL=_types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_types.d.ts","sourceRoot":"","sources":["../../lib/components/_types.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,CAAC,MAAM,eAAe,EAAE,SAAS,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AAC7F,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;AAC1D,MAAM,MAAM,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC"}
@@ -0,0 +1,20 @@
1
+ export { Row } from './Row';
2
+ export { Col } from './Col';
3
+ export { Pagination } from './Pagination';
4
+ export { SearchWithCard } from './SearchWithCard';
5
+ export { Wait } from './Wait';
6
+ export { LangProvider, useLanguage } from './LangProvider';
7
+ export { ConfigLoader } from './ConfigLoader';
8
+ export { ErrorCode } from './ErrorCode';
9
+ export { FormErrorSummary } from './FormErrorSummary';
10
+ export type { responsiveArray, Breakpoint, Gutter } from './_types';
11
+ export type { ColProps } from './Col';
12
+ export type { RowProps } from './Row';
13
+ export type { PaginationProps } from './Pagination';
14
+ export type { SearchWithCardProps } from './SearchWithCard';
15
+ export type { WaitProps, SpinProps } from './Wait';
16
+ export type { LangProviderProps } from './LangProvider';
17
+ export type { ConfigLoaderProps } from './ConfigLoader';
18
+ export type { ErrorCodeProps } from './ErrorCode';
19
+ export type { FormErrorSummaryProps } from './FormErrorSummary';
20
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/components/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAEtD,YAAY,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAEpE,YAAY,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACtC,YAAY,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACtC,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACpD,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,YAAY,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnD,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,YAAY,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './withError';
2
+ export * from './wl';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/hoc/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,MAAM,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { ComponentType } from 'react';
2
+ import { SpinProps } from '../components/Wait';
3
+ import { MSId, IErrorModel } from '../redux/slices/errorSlice';
4
+ export type LoadErrorsCallback = (ms: MSId) => Promise<IErrorModel[]>;
5
+ export type WithErrorProps<TSpin, TSkeleton> = {
6
+ className?: string;
7
+ showChildren?: boolean;
8
+ services?: MSId[];
9
+ spin?: SpinProps<TSpin>;
10
+ skeleton?: SpinProps<TSkeleton>;
11
+ };
12
+ /**
13
+ * Load all error in redux asociate with the specified services and after display the component
14
+ * @param Component
15
+ * @param props
16
+ */
17
+ export declare function withError<TSpin, TSkeleton, P extends object>(Component: ComponentType<P>, { className, showChildren, services, skeleton, spin }: WithErrorProps<TSpin, TSkeleton>): (props: P) => import("react/jsx-runtime").JSX.Element;
18
+ export declare namespace withError {
19
+ var loadErrors: LoadErrorsCallback;
20
+ }
21
+ //# sourceMappingURL=withError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withError.d.ts","sourceRoot":"","sources":["../../lib/hoc/withError.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAmC,aAAa,EAAE,MAAM,OAAO,CAAC;AAIvE,OAAO,EAAQ,SAAS,EAAa,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAA6B,IAAI,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAQ1F,MAAM,MAAM,kBAAkB,GAAG,CAAC,EAAE,EAAE,IAAI,KAAK,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;AACtE,MAAM,MAAM,cAAc,CAAC,KAAK,EAAE,SAAS,IAAI;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,CAAC,EAAE,IAAI,EAAE,CAAC;IAClB,IAAI,CAAC,EAAE,SAAS,CAAC,KAAK,CAAC,CAAC;IACxB,QAAQ,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;CACnC,CAAC;AACF;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,KAAK,EAAE,SAAS,EAAE,CAAC,SAAS,MAAM,EACxD,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,EAC3B,EAAE,SAAS,EAAE,YAAmB,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,cAAc,CAAC,KAAK,EAAE,SAAS,CAAC,WAI3D,CAAC,6CAgEvC;yBAtEe,SAAS"}
@@ -0,0 +1,31 @@
1
+ export type WithLangProps = {
2
+ /**
3
+ * unique identifier of the file
4
+ * @example sig()
5
+ */
6
+ sig: string;
7
+ /**
8
+ * Function to load language dynamic
9
+ * @param lang langue used in the system
10
+ * @returns Module with the file
11
+ */
12
+ loader: (lang: string) => Promise<{
13
+ default: object;
14
+ }>;
15
+ /**
16
+ * How mush level will be use in the path to build the lang prefix
17
+ */
18
+ level?: number;
19
+ useSkeleton?: boolean;
20
+ };
21
+ /**
22
+ * Load the language file and using the message in the intl store
23
+ * @param Component
24
+ * @param props
25
+ * @returns
26
+ */
27
+ export declare function wl<P = object>(Component: React.ComponentType<P>, { sig, loader, useSkeleton }: WithLangProps): {
28
+ (props: P): import("react/jsx-runtime").JSX.Element;
29
+ displayName: string;
30
+ };
31
+ //# sourceMappingURL=wl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wl.d.ts","sourceRoot":"","sources":["../../lib/hoc/wl.tsx"],"names":[],"mappings":"AAWA,MAAM,MAAM,aAAa,GAAG;IACxB;;;OAGG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,MAAM,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACvD;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,EAAE,CAAC,CAAC,GAAG,MAAM,EAAE,SAAS,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,WAAW,EAAE,EAAE,aAAa;YAC7E,CAAC;;EA0ChC"}