@admin-layout/client 3.0.0-alpha.11 → 3.0.0-alpha.116

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,2 +1,2 @@
1
- /// <reference types="react" />
2
- export declare const ApplicationErrorFillWrapper: (props: any) => JSX.Element;
1
+ import * as React from 'react';
2
+ export declare const ApplicationErrorFillWrapper: (props: any) => React.JSX.Element;
@@ -1,5 +1,6 @@
1
1
  import { ReactElement, ReactNode } from 'react';
2
2
  import "reflect-metadata";
3
+ import { ApplicationErrorState } from '../interfaces';
3
4
  /**
4
5
  * An HOC that will render components using SLOT-FILL in case of
5
6
  * backendError else it will render the Component Passed
@@ -8,6 +9,17 @@ interface ApplicationErrorHandlerCommonProps {
8
9
  plugins: Record<string, any>;
9
10
  children: ReactNode;
10
11
  }
12
+ type IRendererComponentType = (props: {
13
+ applicationErrors: ApplicationErrorState[];
14
+ backendError: ApplicationErrorState;
15
+ }) => ReactElement;
16
+ type IApplicationErrorSlotType = (props: {
17
+ name: string;
18
+ fillProps: {
19
+ active: boolean;
20
+ applicationErrors: ApplicationErrorState[];
21
+ };
22
+ }) => ReactElement;
11
23
  /**
12
24
  * ApplicationErrorSlot is needed for mobile. Since for mobile
13
25
  * we import Slot from @common-stack/react-mobile. The default
@@ -15,8 +27,9 @@ interface ApplicationErrorHandlerCommonProps {
15
27
  * both ant and chakra
16
28
  *
17
29
  * @param FallbackComponent ReactNode
18
- * @param [ApplicationErrorSlot] ReactNode
30
+ * @param [ApplicationErrorSlot] IApplicationErrorSlotType
31
+ * @param [RendererComponent] IRendererComponentType
19
32
  * @returns ReactNode
20
33
  */
21
- export declare const ApplicationErrorHandlerCommon: (FallbackComponent: any, ApplicationErrorSlot?: any) => ({ plugins, children }: ApplicationErrorHandlerCommonProps) => ReactElement;
34
+ export declare const ApplicationErrorHandlerCommon: (FallbackComponent: any, ApplicationErrorSlot?: IApplicationErrorSlotType, RendererComponent?: IRendererComponentType) => ({ plugins, children }: ApplicationErrorHandlerCommonProps) => ReactElement;
22
35
  export {};
@@ -11,16 +11,20 @@ import { backendErrorSelector } from '../redux/selectors';
11
11
  * both ant and chakra
12
12
  *
13
13
  * @param FallbackComponent ReactNode
14
- * @param [ApplicationErrorSlot] ReactNode
14
+ * @param [ApplicationErrorSlot] IApplicationErrorSlotType
15
+ * @param [RendererComponent] IRendererComponentType
15
16
  * @returns ReactNode
16
17
  */
17
- export const ApplicationErrorHandlerCommon = (FallbackComponent, ApplicationErrorSlot = undefined) => ({ plugins, children }) => {
18
+ export const ApplicationErrorHandlerCommon = (FallbackComponent, ApplicationErrorSlot, RendererComponent) => ({ plugins, children }) => {
18
19
  const applicationErrors = useSelector((state) => state === null || state === void 0 ? void 0 : state.applicationErrors);
19
20
  const errors = applicationErrors === null || applicationErrors === void 0 ? void 0 : applicationErrors.filter((error) => !!plugins.find((plugin) => plugin.name === (error === null || error === void 0 ? void 0 : error.pluginName)));
20
21
  const backendError = useSelector(backendErrorSelector);
21
22
  const RenderApplicationErrorSlot = (props) => {
22
23
  return !!ApplicationErrorSlot ? React.createElement(ApplicationErrorSlot, Object.assign({}, props)) : React.createElement(Slot, Object.assign({}, props));
23
24
  };
25
+ if (!!RendererComponent) {
26
+ return React.createElement(RendererComponent, { applicationErrors: errors, backendError: backendError });
27
+ }
24
28
  return (React.createElement(React.Fragment, null,
25
29
  !!backendError ? React.createElement(FallbackComponent, { error: backendError }) : null,
26
30
  !!(errors === null || errors === void 0 ? void 0 : errors.length)
@@ -1 +1 @@
1
- {"version":3,"file":"ApplicationErrorHandlerCommon.js","sourceRoot":"","sources":["../../src/components/ApplicationErrorHandlerCommon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkC,MAAM,OAAO,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,8BAA8B,CAAC;AACpD,OAAO,EAA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,CAAC,CAAC,CAAC,oBAAC,IAAI,oBAAK,KAAK,EAAI,CAAA;IAC3F,CAAC,CAAA;IAED,IAAI,CAAC,CAAC,iBAAiB,EAAE;QACvB,OAAO,oBAAC,iBAAiB,IACvB,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,YAAqC,GACnD,CAAA;KACH;IAED,OAAO,CACL;QACG,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,oBAAC,iBAAiB,IAAC,KAAK,EAAE,YAAY,GAAI,CAAC,CAAC,CAAC,IAAI;QAClE,CAAC,CAAC,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,CAAA;YACf,CAAC,CAAC,oBAAC,0BAA0B,IAAC,IAAI,EAAE,2BAA2B,EAAE,SAAS,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,iBAAiB,EAAE,MAAM,EAAE,GAAI;YAC3H,CAAC,CAAC,QAAQ,CAEX,CACJ,CAAA;AACH,CAAC,CAAA"}
@@ -1,9 +1,9 @@
1
1
  import React, { ReactElement } from 'react';
2
- declare type IErrorBoundryState = {
2
+ type IErrorBoundryState = {
3
3
  hasError: boolean;
4
4
  error: Error | null;
5
5
  };
6
- declare type IErrorBoundryProps = {
6
+ type IErrorBoundryProps = {
7
7
  children: ReactElement;
8
8
  fallbackComponent: (props: {
9
9
  error: Error;
@@ -16,6 +16,6 @@ export declare class ErrorBoundaryCommon extends React.Component<IErrorBoundryPr
16
16
  error: Error;
17
17
  };
18
18
  componentDidCatch(error: Error): void;
19
- render(): JSX.Element;
19
+ render(): React.JSX.Element;
20
20
  }
21
21
  export {};
@@ -1,11 +1,11 @@
1
1
  export const defaultSettings = {
2
2
  logo: 'https://cdmbase.s3.ca-central-1.amazonaws.com/favicon-new-128.svg',
3
3
  navTheme: 'light',
4
- primaryColor: '#3FA541C',
5
- colorPrimary: '#3FA541C',
6
- layout: 'side',
4
+ primaryColor: '#1890ff',
5
+ colorPrimary: '#1677FF',
6
+ layout: 'mix',
7
7
  contentWidth: 'Fluid',
8
- fixedHeader: false,
8
+ fixedHeader: true,
9
9
  fixSiderbar: true,
10
10
  searchBarRender: true,
11
11
  colorWeak: false,
@@ -27,6 +27,6 @@ export const defaultSettings = {
27
27
  headerHeight: undefined,
28
28
  menu: undefined,
29
29
  splitMenus: false,
30
- siderMenuType: 'group'
30
+ siderMenuType: 'sub'
31
31
  };
32
32
  //# sourceMappingURL=defaultSettings.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"defaultSettings.js","sourceRoot":"","sources":["../../src/config/defaultSettings.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,eAAe,GAUxB;IACA,IAAI,EAAE,mEAAmE;IACzE,QAAQ,EAAE,OAAO;IACjB,YAAY,EAAE,UAAU;IACxB,YAAY,EAAE,UAAU;IACxB,MAAM,EAAE,MAAM;IACd,YAAY,EAAE,OAAO;IACrB,WAAW,EAAE,KAAK;IAClB,WAAW,EAAE,IAAI;IACjB,eAAe,EAAE,IAAI;IACrB,SAAS,EAAE,KAAK;IAChB,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,EAAE;IACf,gBAAgB,EAAE,IAAI;IACtB,UAAU,EAAE,SAAS;IACrB,QAAQ,EAAE,OAAO;IACjB,UAAU,EAAE,qBAAqB;IACjC,eAAe,EAAE,KAAK;IACtB,WAAW,EAAE,MAAM;IACnB,aAAa,EAAE,QAAQ;IACvB,cAAc,EAAE,KAAK;IACrB,UAAU,EAAE,IAAI;IAChB,UAAU,EAAE,IAAI;IAChB,QAAQ,EAAE,KAAK;IACf,oBAAoB;IACpB,WAAW,EAAE,SAAS;IACtB,YAAY,EAAE,SAAS;IACvB,IAAI,EAAE,SAAS;IACf,UAAU,EAAE,KAAK;IACjB,aAAa,EAAE,OAAO;CACzB,CAAC"}
1
+ {"version":3,"file":"defaultSettings.js","sourceRoot":"","sources":["../../src/config/defaultSettings.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,eAAe,GAUxB;IACA,IAAI,EAAE,mEAAmE;IACzE,QAAQ,EAAE,OAAO;IACjB,YAAY,EAAE,SAAS;IACvB,YAAY,EAAE,SAAS;IACvB,MAAM,EAAE,KAAK;IACb,YAAY,EAAE,OAAO;IACrB,WAAW,EAAE,IAAI;IACjB,WAAW,EAAE,IAAI;IACjB,eAAe,EAAE,IAAI;IACrB,SAAS,EAAE,KAAK;IAChB,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,EAAE;IACf,gBAAgB,EAAE,IAAI;IACtB,UAAU,EAAE,SAAS;IACrB,QAAQ,EAAE,OAAO;IACjB,UAAU,EAAE,qBAAqB;IACjC,eAAe,EAAE,KAAK;IACtB,WAAW,EAAE,MAAM;IACnB,aAAa,EAAE,QAAQ;IACvB,cAAc,EAAE,KAAK;IACrB,UAAU,EAAE,IAAI;IAChB,UAAU,EAAE,IAAI;IAChB,QAAQ,EAAE,KAAK;IACf,oBAAoB;IACpB,WAAW,EAAE,SAAS;IACtB,YAAY,EAAE,SAAS;IACvB,IAAI,EAAE,SAAS;IACf,UAAU,EAAE,KAAK;IACjB,aAAa,EAAE,KAAK;CACvB,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import * as envalid from 'envalid';
2
2
  import { DefaultSettings } from '../interfaces';
3
- export declare const config: Readonly<{
3
+ declare let config: Readonly<{
4
4
  LAYOUT_SETTINGS: DefaultSettings;
5
5
  } & envalid.CleanedEnvAccessors>;
6
+ export { config };
@@ -0,0 +1,19 @@
1
+ import * as envalid from 'envalid';
2
+ import { defaultSettings } from './defaultSettings';
3
+ const { json } = envalid;
4
+ const env = process.APP_ENV || process.env;
5
+ const preConfig = envalid.cleanEnv(env, {
6
+ LAYOUT_SETTINGS: json({
7
+ default: JSON.stringify(defaultSettings),
8
+ }),
9
+ });
10
+ let config = {};
11
+ // overwrite the layout settings with environment
12
+ if (env.LAYOUT_SETTINGS) {
13
+ config = Object.assign(Object.assign({}, preConfig), { LAYOUT_SETTINGS: Object.assign(Object.assign({}, defaultSettings), preConfig.LAYOUT_SETTINGS) });
14
+ }
15
+ else {
16
+ config = preConfig;
17
+ }
18
+ export { config };
19
+ //# sourceMappingURL=env-config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"env-config.js","sourceRoot":"","sources":["../../src/config/env-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAC;AAEnC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEpD,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC;AACzB,MAAM,GAAG,GAAI,OAAe,CAAC,OAAO,IAAI,OAAO,CAAC,GAAG,CAAC;AAEpD,MAAM,SAAS,GAAG,OAAO,CAAC,QAAQ,CAAC,GAAG,EAClC;IACI,eAAe,EAAE,IAAI,CAAkB;QACnC,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,eAAe,CAAQ;KAClD,CAAC;CACL,CACJ,CAAC;AACF,IAAI,MAAM,GAAG,EAAsB,CAAC;AACpC,kDAAkD;AAClD,IAAI,GAAG,CAAC,eAAe,EAAE;IACrB,MAAM,mCAAQ,SAAS,KAAE,eAAe,kCAAO,eAAe,GAAK,SAAS,CAAC,eAAe,IAAI,CAAC;CACpG;KAAM;IACH,MAAM,GAAG,SAAS,CAAC;CACtB;AAED,OAAO,EAAE,MAAM,EAAE,CAAC"}
@@ -1 +1 @@
1
- export * from './config';
1
+ export * from './env-config';
@@ -1,2 +1,2 @@
1
- export * from './config';
1
+ export * from './env-config';
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
@@ -1,10 +1,10 @@
1
- export declare type BACKEND_ERROR = '@platform/BACKEND_ERROR';
1
+ export type BACKEND_ERROR = '@platform/BACKEND_ERROR';
2
2
  export declare const BACKEND_ERROR: BACKEND_ERROR;
3
- export declare type DISMISS_APPLICATION_ERROR = '@platform/DISMISS_APPLICATION_ERROR';
3
+ export type DISMISS_APPLICATION_ERROR = '@platform/DISMISS_APPLICATION_ERROR';
4
4
  export declare const DISMISS_APPLICATION_ERROR: DISMISS_APPLICATION_ERROR;
5
- export declare type CLEAR_APPLICATION_ERRORS = '@platform/CLEAR_APPLICATION_ERRORS';
5
+ export type CLEAR_APPLICATION_ERRORS = '@platform/CLEAR_APPLICATION_ERRORS';
6
6
  export declare const CLEAR_APPLICATION_ERRORS: CLEAR_APPLICATION_ERRORS;
7
- export declare type RESTORE_APPLICATION_ERRORS = '@platform/RESTORE_APPLICATION_ERRORS';
7
+ export type RESTORE_APPLICATION_ERRORS = '@platform/RESTORE_APPLICATION_ERRORS';
8
8
  export declare const RESTORE_APPLICATION_ERRORS: RESTORE_APPLICATION_ERRORS;
9
- export declare type LOG_APPLICATION_ERROR = '@platform/LOG_APPLICATION_ERROR';
9
+ export type LOG_APPLICATION_ERROR = '@platform/LOG_APPLICATION_ERROR';
10
10
  export declare const LOG_APPLICATION_ERROR: LOG_APPLICATION_ERROR;
@@ -1,6 +1,6 @@
1
1
  import { ApolloLink } from '@apollo/client';
2
2
  import { interfaces } from 'inversify';
3
- declare type IGetErrorLink = (container: interfaces.Container) => ApolloLink;
3
+ type IGetErrorLink = (container: interfaces.Container) => ApolloLink;
4
4
  interface IErrorLink {
5
5
  getErrorLink: IGetErrorLink;
6
6
  }
@@ -1 +1 @@
1
- {"version":3,"file":"error-link.js","sourceRoot":"","sources":["../../../src/graphql/link/error-link.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AAIpD,OAAO,EAAE,qBAAqB,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AACvE,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAOjD,MAAM,OAAO,SAA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AO,CAAC,GAAG,CAAC,EAAE;;YACnB,MAAM,EAAE,YAAY,EAAE,aAAa,EAAE,GAAG,GAAG,CAAC;YAC5C,IAAI,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,MAAM,EAAE;gBACzB,aAAa,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;oBAC9B,IAAI,CAAC,mBAAmB,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;gBAC7C,CAAC,CAAC,CAAA;aACH;YACD,IAAI,YAAY,EAAE;gBAChB,MAAM,YAAY,GAAG,MAAC,YAA6D,aAA7D,YAAY,uBAAZ,YAAY,CAAmD,MAAM,0CAAE,MAAM,CAAA;gBACnG,IAAI,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,MAAM,EAAE;oBACxB,YAAY,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;wBACzB,IAAI,CAAC,mBAAmB,CAAC,SAAS,EAAE,KAAK,CAAC,CAAA;oBAC5C,CAAC,CAAC,CAAA;iBACH;qBAAM;oBACL,IAAI,CAAC,mBAAmB,CAAC,SAAS,EAAE,YAAY,CAAC,CAAA;iBAClD;aACF;QACH,CAAC,CAAC,CAAA;IACJ,CAAC;CACF;AAGD,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,SAA+B,EAAE,EAAE;IAChE,OAAO,IAAI,SAAS,EAAE,CAAC,YAAY,CAAC,SAAS,CAAC,CAAA;AAChD,CAAC,CAAA"}
@@ -1,4 +1,4 @@
1
1
  import { ProSettings } from './pure-settings';
2
- export declare type DefaultSettings = Partial<ProSettings> & {
2
+ export type DefaultSettings = Partial<ProSettings> & {
3
3
  language?: string;
4
4
  };