@e1011/es-kit 1.0.224 → 1.0.228
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/hooks/esm/index.css +28 -28
- package/dist/hooks/esm/src/core/hooks/index.js +1 -1
- package/dist/hooks/esm/src/core/hooks/useThemePreference.js +1 -1
- package/dist/hooks/esm/src/core/hooks/useThemePreference.js.map +1 -1
- package/dist/hooks/index.css +28 -28
- package/dist/hooks/src/core/hooks/index.js +1 -1
- package/dist/hooks/src/core/hooks/useThemePreference.js +1 -1
- package/dist/hooks/src/core/hooks/useThemePreference.js.map +1 -1
- package/dist/lib/cjs/src/core/hooks/useThemePreference.js +1 -1
- package/dist/lib/cjs/src/core/hooks/useThemePreference.js.map +1 -1
- package/dist/lib/cjs/src/core/ui/components/container/lazyComponent/LazyComponent.js +1 -1
- package/dist/lib/cjs/src/core/ui/components/container/lazyComponent/LazyComponent.js.map +1 -1
- package/dist/lib/cjs/src/core/ui/components/error/ErrorBoundary.js +1 -1
- package/dist/lib/cjs/src/core/ui/components/error/ErrorBoundary.js.map +1 -1
- package/dist/lib/cjs/src/core/utils/helpers/birthnumber.validator.js.map +1 -1
- package/dist/lib/cjs/src/index.js +1 -1
- package/dist/lib/esm/src/core/hooks/useThemePreference.js +1 -1
- package/dist/lib/esm/src/core/hooks/useThemePreference.js.map +1 -1
- package/dist/lib/esm/src/core/ui/components/container/lazyComponent/LazyComponent.js +1 -1
- package/dist/lib/esm/src/core/ui/components/container/lazyComponent/LazyComponent.js.map +1 -1
- package/dist/lib/esm/src/core/ui/components/error/ErrorBoundary.js +1 -1
- package/dist/lib/esm/src/core/ui/components/error/ErrorBoundary.js.map +1 -1
- package/dist/lib/esm/src/core/utils/helpers/birthnumber.validator.js.map +1 -1
- package/dist/lib/esm/src/index.js +1 -1
- package/dist/lib/tsconfig.tsbuildinfo +1 -1
- package/dist/types/src/core/hooks/useApi.d.ts +1 -1
- package/dist/types/src/core/hooks/useApi.d.ts.map +1 -1
- package/dist/types/src/core/hooks/useThemePreference.d.ts +4 -1
- package/dist/types/src/core/hooks/useThemePreference.d.ts.map +1 -1
- package/dist/types/src/core/ui/components/container/lazyComponent/LazyComponent.d.ts.map +1 -1
- package/dist/types/src/core/ui/components/error/ErrorBoundary.d.ts.map +1 -1
- package/dist/types/src/core/ui/components/error/errorBoundary.stories.d.ts +1 -0
- package/dist/types/src/core/ui/components/error/errorBoundary.stories.d.ts.map +1 -1
- package/dist/types/src/core/ui/components/error/errorBoundary.types.d.ts +5 -0
- package/dist/types/src/core/ui/components/error/errorBoundary.types.d.ts.map +1 -1
- package/dist/types/src/core/utils/appState/store/store.vanillajs.templates.d.ts +2 -6
- package/dist/types/src/core/utils/appState/store/store.vanillajs.templates.d.ts.map +1 -1
- package/dist/types/src/core/utils/helpers/birthnumber.validator.d.ts.map +1 -1
- package/dist/types/src/core/utils/helpers/fileValidator.d.ts.map +1 -1
- package/dist/types/src/core/utils/helpers/objectOperations.d.ts +2 -2
- package/dist/types/src/core/utils/helpers/objectOperations.d.ts.map +1 -1
- package/dist/types/src/core/utils/helpers/ui.d.ts +4 -1
- package/dist/types/src/core/utils/helpers/ui.d.ts.map +1 -1
- package/dist/types/src/core/utils/webComponents/webComponent.utils.d.ts +4 -4
- package/dist/types/src/core/utils/webComponents/webComponent.utils.d.ts.map +1 -1
- package/dist/ui/esm/src/core/ui/components/container/lazyComponent/LazyComponent.js +1 -1
- package/dist/ui/esm/src/core/ui/components/container/lazyComponent/LazyComponent.js.map +1 -1
- package/dist/ui/esm/src/core/ui/components/error/ErrorBoundary.js +1 -1
- package/dist/ui/esm/src/core/ui/components/error/ErrorBoundary.js.map +1 -1
- package/dist/ui/src/core/ui/components/container/lazyComponent/LazyComponent.js +1 -1
- package/dist/ui/src/core/ui/components/container/lazyComponent/LazyComponent.js.map +1 -1
- package/dist/ui/src/core/ui/components/error/ErrorBoundary.js +1 -1
- package/dist/ui/src/core/ui/components/error/ErrorBoundary.js.map +1 -1
- package/dist/utils/esm/index.css +28 -28
- package/dist/utils/esm/src/core/utils/helpers/birthnumber.validator.js.map +1 -1
- package/dist/utils/index.css +28 -28
- package/dist/utils/src/core/utils/helpers/birthnumber.validator.js.map +1 -1
- package/package.json +1 -1
|
@@ -7,6 +7,6 @@ export type DataFetching = {
|
|
|
7
7
|
};
|
|
8
8
|
type Caller = (...args: any[]) => Promise<any>;
|
|
9
9
|
type Decorator = (RequestOrResponse: Record<string, any> | any) => Record<string, any>;
|
|
10
|
-
export declare const useApi: (id: string, callerInitial: Caller, decoratorIntitial?: Decorator, successHandler?: (
|
|
10
|
+
export declare const useApi: (id: string, callerInitial: Caller, decoratorIntitial?: Decorator, successHandler?: (data: any) => void, errorHandler?: (data: any) => void) => [(...args: any[]) => Promise<any>, DataFetching];
|
|
11
11
|
export {};
|
|
12
12
|
//# sourceMappingURL=useApi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useApi.d.ts","sourceRoot":"","sources":["../../../../../src/core/hooks/useApi.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,IAAI,GAAG,GAAG,GAAG,GAAG,EAAE,GAAG,IAAI,CAAA;AAErC,MAAM,MAAM,YAAY,GAAG;IAAE,IAAI,CAAC,EAAE,IAAI,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,OAAO,EAAE,OAAO,CAAC;IAAC,YAAY,CAAC,EAAE,IAAI,CAAA;CAAE,CAAA;AAExG,KAAK,MAAM,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA;AAE9C,KAAK,SAAS,GAAG,CAAC,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,KAAK,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;AActF,eAAO,MAAM,MAAM,OACb,MAAM,iBACK,MAAM,sBACD,SAAS,
|
|
1
|
+
{"version":3,"file":"useApi.d.ts","sourceRoot":"","sources":["../../../../../src/core/hooks/useApi.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,IAAI,GAAG,GAAG,GAAG,GAAG,EAAE,GAAG,IAAI,CAAA;AAErC,MAAM,MAAM,YAAY,GAAG;IAAE,IAAI,CAAC,EAAE,IAAI,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,OAAO,EAAE,OAAO,CAAC;IAAC,YAAY,CAAC,EAAE,IAAI,CAAA;CAAE,CAAA;AAExG,KAAK,MAAM,GAAG,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,CAAC,GAAG,CAAC,CAAA;AAE9C,KAAK,SAAS,GAAG,CAAC,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,GAAG,KAAK,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;AActF,eAAO,MAAM,MAAM,OACb,MAAM,iBACK,MAAM,sBACD,SAAS,mBACZ,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,iBACrB,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,KAEjC,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,QAAQ,GAAG,CAAC,EAAE,YAAY,CAiCjD,CAAA"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
export declare const observeThemePreference: (getHtmlElement?: () => HTMLElement, switchCallback?: (isDark: boolean) => void) => () => void;
|
|
2
2
|
export declare const useThemePreference: (getHtmlElement?: () => HTMLElement, switchCallback?: (isDark: boolean) => void) => void;
|
|
3
|
-
|
|
3
|
+
type ThemeMap = {
|
|
4
4
|
dark: string;
|
|
5
5
|
light: string;
|
|
6
6
|
};
|
|
7
|
+
export declare const getBaseThemes: () => ThemeMap;
|
|
8
|
+
export declare const setTHemeClassNames: (themes: ThemeMap) => void;
|
|
7
9
|
export declare const switchColorTheme: (isDark: boolean, htmlElement?: HTMLElement, findShadows?: boolean) => void;
|
|
8
10
|
export declare const updateColorTheme: (isDark?: boolean, htmlElement?: HTMLElement) => void;
|
|
11
|
+
export {};
|
|
9
12
|
//# sourceMappingURL=useThemePreference.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useThemePreference.d.ts","sourceRoot":"","sources":["../../../../../src/core/hooks/useThemePreference.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,sBAAsB,oBACjB,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"useThemePreference.d.ts","sourceRoot":"","sources":["../../../../../src/core/hooks/useThemePreference.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,sBAAsB,oBACjB,MAAM,WAAW,mBACjB,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,KACxC,MAAM,IA6CR,CAAA;AAED,eAAO,MAAM,kBAAkB,oBACb,MAAM,WAAW,mBACjB,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,KACxC,IAEF,CAAA;AAED,KAAK,QAAQ,GAAG;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAQD,eAAO,MAAM,aAAa,QAAO,QAAsB,CAAA;AAEvD,eAAO,MAAM,kBAAkB,WAAY,QAAQ,KAAG,IAErD,CAAA;AAED,eAAO,MAAM,gBAAgB,WAAY,OAAO,gBAAgB,WAAW,4BAAuB,IAmCjG,CAAA;AAED,eAAO,MAAM,gBAAgB,YAAa,OAAO,gBAAgB,WAAW,KAAG,IAO9E,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LazyComponent.d.ts","sourceRoot":"","sources":["../../../../../../../../src/core/ui/components/container/lazyComponent/LazyComponent.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAwB,aAAa,EAAE,iBAAiB,EAAmB,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"LazyComponent.d.ts","sourceRoot":"","sources":["../../../../../../../../src/core/ui/components/container/lazyComponent/LazyComponent.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAwB,aAAa,EAAE,iBAAiB,EAAmB,MAAM,OAAO,CAAA;AAWnG,KAAK,WAAW,GAAG;IACjB,OAAO,EAAE,aAAa,CAAC,GAAG,CAAC,CAAA;CAC5B,CAAA;AAED,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,CAAC,GAAG,CAAC,GAAG;IACxD,iBAAiB,CAAC,EAAE,aAAa,CAAC,GAAG,CAAC,CAAA;IACtC,SAAS,CAAC,EAAE,GAAG,CAAC,OAAO,CAAA;CACxB,CAAA;AAED,MAAM,MAAM,eAAe,GAAG,CAAC,OAAO,EAAE,CAAC,MAAM,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK;IAAE,IAAI,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAA;CAAE,CAAA;AAEhH,eAAO,MAAM,WAAW,EAAE,eA0BzB,CAAA;AAGD,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAkB/C,CAAA;AAIF,MAAM,MAAM,oBAAoB,GAAG,iBAAiB,GAAG;IACrD,QAAQ,CAAC,EAAE,GAAG,CAAC,OAAO,CAAA;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC,OAAO,CAAC,CAAA;IAC1B,cAAc,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAA;KAAE,CAAA;CAClD,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CAenD,CAAA;AAKF,eAAO,MAAM,gBAAgB,iBACb,MAAM,QAAQ,WAAW,CAAC,eAC3B,MAAM,iBACL,OAAO,MAAM,EAAE,OAAO,CAAC,KACpC,GAAG,OAAO,CAUZ,CAAA;AAGD,eAAO,MAAM,yBAAyB,mCACtB,CAAC,KAAK,EAAE,CAAC,KAAK,QAAQ,WAAW,CAAC,eACnC,MAAM,gBACL,OAAO,MAAM,EAAE,OAAO,CAAC,KACpC,CAAC,KAAK,EAAE,CAAC,KAAK,GAAG,aAAa,CAU9B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorBoundary.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/ui/components/error/ErrorBoundary.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAQ,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAM1D,OAAO,EAAE,0BAA0B,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AAGtF,UAAU,KAAK;IACb,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,EAAE,OAAO,CAAA;CAClB;AAGD,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC,0BAA0B,CAsB/D,CAAA;AAGF,qBAAa,aAAc,SAAQ,aAAa,CAAC,kBAAkB,EAAE,KAAK,CAAC;gBAC7D,KAAK,EAAE,kBAAkB;IAKrC,MAAM,CAAC,wBAAwB,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK;IAIpD,iBAAiB,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,CAAC,SAAS,GAAG,IAAI;
|
|
1
|
+
{"version":3,"file":"ErrorBoundary.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/ui/components/error/ErrorBoundary.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAQ,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAM1D,OAAO,EAAE,0BAA0B,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;AAGtF,UAAU,KAAK;IACb,KAAK,CAAC,EAAE,KAAK,CAAA;IACb,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,QAAQ,EAAE,OAAO,CAAA;CAClB;AAGD,eAAO,MAAM,qBAAqB,EAAE,EAAE,CAAC,0BAA0B,CAsB/D,CAAA;AAGF,qBAAa,aAAc,SAAQ,aAAa,CAAC,kBAAkB,EAAE,KAAK,CAAC;gBAC7D,KAAK,EAAE,kBAAkB;IAKrC,MAAM,CAAC,wBAAwB,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK;IAIpD,iBAAiB,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,CAAC,SAAS,GAAG,IAAI;IAWjE,MAAM,IAAI,SAAS;CAmBpB"}
|
|
@@ -3,4 +3,5 @@ declare const _default: import("@storybook/types").ComponentAnnotations<import("
|
|
|
3
3
|
export default _default;
|
|
4
4
|
export declare const ErrorBoundaryBase: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, ErrorBoundaryProps>;
|
|
5
5
|
export declare const ErrorBoundaryCustomText: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, ErrorBoundaryProps>;
|
|
6
|
+
export declare const ErrorBoundaryMuted: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react").ReactRenderer, ErrorBoundaryProps>;
|
|
6
7
|
//# sourceMappingURL=errorBoundary.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errorBoundary.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/ui/components/error/errorBoundary.stories.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;;AAG/D,wBAGS;
|
|
1
|
+
{"version":3,"file":"errorBoundary.stories.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/ui/components/error/errorBoundary.stories.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAA;;AAG/D,wBAGS;AAgBT,eAAO,MAAM,iBAAiB,2GAAiC,CAAA;AAG/D,eAAO,MAAM,uBAAuB,2GAAiC,CAAA;AAUrE,eAAO,MAAM,kBAAkB,2GAAiC,CAAA"}
|
|
@@ -2,6 +2,11 @@ import { ComponentType, PropsWithChildren } from 'react';
|
|
|
2
2
|
export type ErrorBoundaryProps = PropsWithChildren & {
|
|
3
3
|
title?: string;
|
|
4
4
|
text?: string;
|
|
5
|
+
muted?: boolean;
|
|
6
|
+
onError?: (payload: {
|
|
7
|
+
error?: unknown;
|
|
8
|
+
errorInfo?: unknown;
|
|
9
|
+
}) => void;
|
|
5
10
|
ErrorComponent?: ComponentType;
|
|
6
11
|
};
|
|
7
12
|
export type DefaultErrorComponentProps = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errorBoundary.types.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/ui/components/error/errorBoundary.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAExD,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,GAAG;IACnD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,cAAc,CAAC,EAAE,aAAa,CAAA;CAC/B,CAAA;AAED,MAAM,MAAM,0BAA0B,GAAG;IACvC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,CAAA"}
|
|
1
|
+
{"version":3,"file":"errorBoundary.types.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/ui/components/error/errorBoundary.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAExD,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,GAAG;IACnD,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,OAAO,CAAC,EAAE,CAAC,OAAO,EAAE;QAAE,KAAK,CAAC,EAAE,OAAO,CAAC;QAAC,SAAS,CAAC,EAAE,OAAO,CAAA;KAAE,KAAK,IAAI,CAAA;IACrE,cAAc,CAAC,EAAE,aAAa,CAAA;CAC/B,CAAA;AAED,MAAM,MAAM,0BAA0B,GAAG;IACvC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ActionHandler, Reducer,
|
|
1
|
+
import { ActionHandler, Reducer, StoreWithActions } from './store.vanillajs';
|
|
2
2
|
type DefaultES = {
|
|
3
3
|
[key: string]: any;
|
|
4
4
|
};
|
|
@@ -15,11 +15,7 @@ type LoadHandler<T, ES = DefaultES> = (dataPromise: unknown | Promise<unknown>)
|
|
|
15
15
|
* @param actions - Optional actions for the data store.
|
|
16
16
|
* @returns The created data store with actions.
|
|
17
17
|
*/
|
|
18
|
-
export declare const createDataStore: <T, ES = DefaultES>(dataId: string, initialState?: Partial<ES>, actions?: Record<string, ActionHandler<DataState<T, ES>>>, reducer?: Reducer<DataState<T, ES>>) =>
|
|
19
|
-
actions: {
|
|
20
|
-
[actionName: string]: import("./store.vanillajs").ActionHandlerCaller<DataState<T, ES>>;
|
|
21
|
-
};
|
|
22
|
-
} & {
|
|
18
|
+
export declare const createDataStore: <T, ES = DefaultES>(dataId: string, initialState?: Partial<ES>, actions?: Record<string, ActionHandler<DataState<T, ES>>>, reducer?: Reducer<DataState<T, ES>>) => StoreWithActions<DataState<T, ES>> & {
|
|
23
19
|
actions: {
|
|
24
20
|
load: LoadHandler<T, ES>;
|
|
25
21
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store.vanillajs.templates.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/utils/appState/store/store.vanillajs.templates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"store.vanillajs.templates.d.ts","sourceRoot":"","sources":["../../../../../../../src/core/utils/appState/store/store.vanillajs.templates.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,OAAO,EAAS,gBAAgB,EAAe,MAAM,mBAAmB,CAAA;AAGhG,KAAK,SAAS,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,CAAA;AAGvC,MAAM,MAAM,SAAS,CAAC,CAAC,EAAE,EAAE,GAAG,SAAS,IAAI;IACzC,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,IAAI,CAAC,EAAE,CAAC,CAAA;CACT,GAAG,EAAE,CAAA;AAUN,KAAK,WAAW,CAAC,CAAC,EAAE,EAAE,GAAG,SAAS,IAAI,CACpC,WAAW,EAAE,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,KACpC,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAA;AAEvC;;;;;GAKG;AACH,eAAO,MAAM,eAAe,8BAElB,MAAM,iBACC,QAAQ,EAAE,CAAC,YAChB,OAAO,MAAM,EAAE,cAAc,UAAU,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,YAC/C,QAAQ,UAAU,CAAC,EAAE,EAAE,CAAC,CAAC,KAClC,iBAAiB,UAAU,CAAC,EAAE,EAAE,CAAC,CAAC,GACnC;IAAE,OAAO,EAAE;QAAE,IAAI,EAAE,YAAY,CAAC,EAAE,EAAE,CAAC,CAAA;KAAE,CAAA;CAwCxC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"birthnumber.validator.d.ts","sourceRoot":"","sources":["../../../../../../src/core/utils/helpers/birthnumber.validator.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,kBAAkB,gBAAiB,MAAM,aAAa,MAAM,UAAU,MAAM,KAAG,
|
|
1
|
+
{"version":3,"file":"birthnumber.validator.d.ts","sourceRoot":"","sources":["../../../../../../src/core/utils/helpers/birthnumber.validator.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,kBAAkB,gBAAiB,MAAM,aAAa,MAAM,UAAU,MAAM,KAAG,OAkB3F,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fileValidator.d.ts","sourceRoot":"","sources":["../../../../../../src/core/utils/helpers/fileValidator.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,SAAU,MAAM;
|
|
1
|
+
{"version":3,"file":"fileValidator.d.ts","sourceRoot":"","sources":["../../../../../../src/core/utils/helpers/fileValidator.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,SAAU,MAAM,+BAA0B;IACjE,SAAS,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,EAAE,CAAA;IACf,OAAO,EAAE,IAAI,GAAG,MAAM,EAAE,CAAA;IACxB,UAAU,EAAE,MAAM,CAAA;CAkBnB,CAAA;AAED,eAAO,MAAM,sBAAsB,gBACjB,MAAM,MAAM,CAAC,cAAc,MAAM,QAAQ,MAAM,SAAS,MAAM,KAAG,YAAY,GAAG,IAQ/F,CAAA;AAEH,eAAO,MAAM,uBAAuB,SACzB,MAAM,QAAQ,MAAM,aAAa,MAAM,aAAa,MAAM,KAAG,YAAY,GAAG,IAUpF,CAAA;AAEH,eAAO,MAAM,gBAAgB,UAAW,MAAM,EAAE,cAAc,MAAM,+BAA0B,YAAY,EA8BzG,CAAA;AASD,MAAM,MAAM,YAAY,GAAG;IACzB,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAA;CACxC,CAAA;AAED,eAAO,MAAM,eAAe,SACnB,IAAI,YAAY,CAAC,MAAM,CAAC,EAAE,CAAC,YAAY,GAAG,MAAM,CAAC,EAAE,GAAG,IAAI,KAAK,IAAI,+BAA0B,IAyCrG,CAAA;AAED,eAAO,MAAM,eAAe,SACnB,IAAI,YAAY,CAAC,MAAM,CAAC,EAAE,CAAC,YAAY,GAAG,MAAM,CAAC,EAAE,GAAG,IAAI,KAAK,IAAI,+BAA0B,IA4BrG,CAAA;AAED,eAAO,MAAM,gBAAgB,SACpB,IAAI,YAAY,CAAC,MAAM,CAAC,EAAE,CAAC,YAAY,GAAG,MAAM,CAAC,EAAE,GAAG,IAAI,KAAK,IAAI,+BAA0B,IAsCrG,CAAA"}
|
|
@@ -5,8 +5,8 @@ type Options = {
|
|
|
5
5
|
[key: string]: any;
|
|
6
6
|
};
|
|
7
7
|
export declare const formatJsonString: (value: any, replacer?: Replacer | undefined, space?: string | number | undefined, { graphQL, ...options }?: Options) => string;
|
|
8
|
-
export declare const formatObj: (obj: Record<string, string | number>, delimiter?: string, mapValue?: (value: string | number) => string, mapKey?: (value: string | number) => string) => string;
|
|
9
|
-
export declare const formatObj2: (obj: Record<string, string | number>, delimiter?: string, mapValue?: (value: string | number) => string, mapKey?: (value: string | number) => string) => string;
|
|
8
|
+
export declare const formatObj: (obj: Record<string, string | number>, delimiter?: string, mapValue?: ((value: string | number) => string), mapKey?: ((value: string | number) => string)) => string;
|
|
9
|
+
export declare const formatObj2: (obj: Record<string, string | number>, delimiter?: string, mapValue?: ((value: string | number) => string), mapKey?: ((value: string | number) => string)) => string;
|
|
10
10
|
export declare const chunkArray: (dataArray: any[], chunkSize?: number) => (any[])[];
|
|
11
11
|
export type TreeNodeStr = (string | TreeNodeStr)[];
|
|
12
12
|
type TreeNode = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"objectOperations.d.ts","sourceRoot":"","sources":["../../../../../../src/core/utils/helpers/objectOperations.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,QAAS,OAAO,EAAE,KAAG,IAAI,GAAG,OAAO,MAAM,EAAE,MAAM,CAkB9E,CAAA;AAED,KAAK,QAAQ,GAAG,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,GAAG,CAAC,GAAG,SAAS,CAAA;AACzE,KAAK,OAAO,GAAG;IACb,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,gBAAgB,UACpB,GAAG,aACC,QAAQ,GAAG,SAAS,UACvB,MAAM,GAAG,MAAM,GAAG,SAAS,4BACV,OAAO,KAC/B,MAiBF,CAAA;AAID,eAAO,MAAM,SAAS,QACf,OAAO,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"objectOperations.d.ts","sourceRoot":"","sources":["../../../../../../src/core/utils/helpers/objectOperations.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,QAAS,OAAO,EAAE,KAAG,IAAI,GAAG,OAAO,MAAM,EAAE,MAAM,CAkB9E,CAAA;AAED,KAAK,QAAQ,GAAG,CAAC,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,GAAG,CAAC,GAAG,SAAS,CAAA;AACzE,KAAK,OAAO,GAAG;IACb,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,gBAAgB,UACpB,GAAG,aACC,QAAQ,GAAG,SAAS,UACvB,MAAM,GAAG,MAAM,GAAG,SAAS,4BACV,OAAO,KAC/B,MAiBF,CAAA;AAID,eAAO,MAAM,SAAS,QACf,OAAO,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,iCAE1B,CAAC,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,KAAK,MAAM,CAAC,WACtC,CAAC,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,KAAK,MAAM,CAAC,KAC3C,MAEI,CAAA;AAGP,eAAO,MAAM,UAAU,QAChB,OAAO,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,iCAE1B,CAAC,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,KAAK,MAAM,CAAC,WACtC,CAAC,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,KAAK,MAAM,CAAC,KAC3C,MAkBF,CAAA;AAMD,eAAO,MAAM,UAAU,cAAe,GAAG,EAAE,yBAAoB,CAAC,GAAG,EAAE,CAAC,EAWrE,CAAA;AAED,MAAM,MAAM,WAAW,GAAG,CAAC,MAAM,GAAG,WAAW,CAAC,EAAE,CAAA;AAElD,KAAK,QAAQ,GAAG;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAA;CACpC,CAAA;AAID,eAAO,MAAM,iBAAiB,gBAAiB,WAAW,EAAE,KAAG,OAAO,MAAM,EAAE,QAAQ,CAoCrF,CAAA"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
export declare const noop: () => void;
|
|
2
|
-
export declare const mapSerReplacer: (key: string, value: unknown) => unknown
|
|
2
|
+
export declare const mapSerReplacer: (key: string, value: unknown) => unknown | {
|
|
3
|
+
dataType: string;
|
|
4
|
+
value: Array<unknown>;
|
|
5
|
+
};
|
|
3
6
|
export type TClassName = string | boolean | null | undefined;
|
|
4
7
|
export declare const classNames: (...classes: TClassName[]) => string;
|
|
5
8
|
export type PropsCategoriesType = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../../../../../../src/core/utils/helpers/ui.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI,QAAO,IAAiB,CAAA;AAGzC,eAAO,MAAM,cAAc,QACnB,MAAM,SAAS,OAAO,
|
|
1
|
+
{"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../../../../../../src/core/utils/helpers/ui.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI,QAAO,IAAiB,CAAA;AAGzC,eAAO,MAAM,cAAc,QACnB,MAAM,SAAS,OAAO,KAAG,OAAO,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,OAAO,CAAC,CAAA;CAQnF,CAAA;AAED,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,CAAA;AAC5D,eAAO,MAAM,UAAU,eAAgB,UAAU,EAAE,KAAG,MAE1B,CAAA;AAG5B,MAAM,MAAM,mBAAmB,GAAG;IAChC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAClC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACnC,CAAC;AAEF,eAAO,MAAM,UAAU,UAAW,OAAO,MAAM,EAAE,OAAO,CAAC,KAAE,mBAY1D,CAAA"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export declare const ced: (name: string) => (componentClass: typeof HTMLElement) => void;
|
|
2
2
|
export declare const customElementDefine: (name: string) => (componentClass: typeof HTMLElement) => void;
|
|
3
|
-
export declare const createResolveAttribute: (component: Element & Record<string, any>) => (attributeName: string, overrideProperty?: boolean, valueMap?: (
|
|
4
|
-
export declare const resolveAttributes: (component: Element & Record<string, any>, attributes: (
|
|
3
|
+
export declare const createResolveAttribute: (component: Element & Record<string, any>) => (attributeName: string, overrideProperty?: boolean, valueMap?: (value: unknown) => unknown) => boolean;
|
|
4
|
+
export declare const resolveAttributes: (component: Element & Record<string, any>, attributes: ({
|
|
5
5
|
name: string;
|
|
6
6
|
override: boolean;
|
|
7
|
-
valueMap?: (
|
|
8
|
-
})[]) => void;
|
|
7
|
+
valueMap?: (value: unknown) => unknown;
|
|
8
|
+
} | string)[]) => void;
|
|
9
9
|
//# sourceMappingURL=webComponent.utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webComponent.utils.d.ts","sourceRoot":"","sources":["../../../../../../src/core/utils/webComponents/webComponent.utils.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,GAAG,SAAU,MAAM,
|
|
1
|
+
{"version":3,"file":"webComponent.utils.d.ts","sourceRoot":"","sources":["../../../../../../src/core/utils/webComponents/webComponent.utils.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,GAAG,SAAU,MAAM,KAAG,CAAC,cAAc,EAAE,kBAAkB,KAAK,IAI1E,CAAA;AAED,eAAO,MAAM,mBAAmB,SANN,MAAM,KAAG,CAAC,cAAc,EAAE,kBAAkB,KAAK,IAMrC,CAAA;AAItC,eAAO,MAAM,sBAAsB,cACtB,OAAO,GAAG,OAAO,MAAM,EAAE,GAAG,CAAC,qBAEzB,MAAM,yCAGV,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,KACrC,OAUF,CAAA;AAED,eAAO,MAAM,iBAAiB,cACjB,OAAO,GAAG,OAAO,MAAM,EAAE,GAAG,CAAC,cAC5B,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,CAAA;CAAE,GAAG,MAAM,CAAC,EAAE,KACnG,IAYF,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{extends as e}from"../../../../../../_virtual/_rollupPluginBabelHelpers.js";import{memo as t,
|
|
1
|
+
import{extends as e}from"../../../../../../_virtual/_rollupPluginBabelHelpers.js";import{memo as t,useMemo as r,Suspense as n,useRef as l,lazy as a}from"react";import{ErrorBoundary as o}from"../../error/ErrorBoundary.js";import c from"./lazyComponent.module.scss.js";const s={},i=e=>{let t,r="pending";const n=("function"==typeof e?e():e).then((e=>{r="success",t=e}),(e=>{r="error",t=e}));return{read(){if("pending"===r)throw n;if("error"===r)throw t;if("success"===r)return t}}},m=t((e=>{let{children:t,Component:l,LoaderJSX:a,...s}=e;const i=r((()=>React.createElement("div",{className:c.loader},React.createElement("svg",{className:"spinner",viewBox:"0 0 50 50"},React.createElement("circle",{className:"path",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"5"})))),[]);return React.createElement(o,null,React.createElement(n,{fallback:a||i},l&&React.createElement(l,s),t&&t))}));m.displayName="LazyComponent";const d=t((e=>{let{pendingPromise:t,promise:n,fallback:a,children:o}=e;const c=l(t||n&&i(n)),s=r((()=>e=>{var t,r;let{children:n}=e;const l=null===(t=c.current)||void 0===t||null===(r=t.read)||void 0===r?void 0:r.call(t);return null!=l&&l.then?null:n}),[]);return React.createElement(m,{LoaderJSX:a},React.createElement(s,null,o))}));d.displayName="PendingBoundary";const u=function(r,n){let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!s[n]){const o=a(r);s[n]=t((t=>React.createElement(m,e({Component:o},l,t)))),s[n].displayName=n}return s[n]},p=(r,n,l)=>o=>{if(!s[n]){const c=a((()=>r(o)));s[n]=t((t=>React.createElement(m,e({Component:c},l,t)))),s[n].displayName=n}return s[n]};export{m as LazyComponent,d as PendingBoundary,u as createLazyModule,p as createLazyModuleWithStore,i as wrapPromise};
|
|
2
2
|
//# sourceMappingURL=LazyComponent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LazyComponent.js","sources":["../../../../../../../../../src/core/ui/components/container/lazyComponent/LazyComponent.tsx"],"sourcesContent":["/* eslint-disable react/display-name */\nimport { FC, memo, Suspense, lazy, ComponentType, PropsWithChildren, useRef, useMemo } from 'react'\n\nimport { ErrorBoundary } from '../../error/ErrorBoundary'\n\nimport classes from './lazyComponent.module.scss'\n\n\
|
|
1
|
+
{"version":3,"file":"LazyComponent.js","sources":["../../../../../../../../../src/core/ui/components/container/lazyComponent/LazyComponent.tsx"],"sourcesContent":["/* eslint-disable react/display-name */\nimport { FC, memo, Suspense, lazy, ComponentType, PropsWithChildren, useRef, useMemo } from 'react'\n\nimport { ErrorBoundary } from '../../error/ErrorBoundary'\n\nimport classes from './lazyComponent.module.scss'\n\n\n// not always necessary, since createLayzModule is called once per module,\n// but when nesting, inside loaded modules...\nconst map: Record<string, FC<any>> = {}\n\ntype ReactModule = {\n default: ComponentType<any>\n}\n\nexport type LazyComponentProps = PropsWithChildren<any> & {\n PropsWithChildren?: ComponentType<any>\n LoaderJSX?: JSX.Element\n}\n\nexport type wrapPromiseType = (promise: (() => Promise<any>) | Promise<any>) => { read: () => Promise<unknown> }\n\nexport const wrapPromise: wrapPromiseType = (promise: (() => Promise<any>) | Promise<any>) => {\n let status = 'pending'\n let result: any\n const suspend = (typeof promise === 'function' ? promise() : promise).then(\n (res) => {\n status = 'success'\n result = res\n },\n (err) => {\n status = 'error'\n result = err\n },\n )\n\n return {\n // eslint-disable-next-line consistent-return\n read(): any {\n if (status === 'pending') {\n throw suspend\n } else if (status === 'error') {\n throw result\n } else if (status === 'success') {\n return result\n }\n },\n }\n}\n\n\nexport const LazyComponent: FC<LazyComponentProps>\n= memo<LazyComponentProps>(({ children, Component, LoaderJSX, ...props }: LazyComponentProps) => {\n const Loader: React.ReactNode = useMemo(() => (\n <div className={classes.loader}>\n <svg className='spinner' viewBox='0 0 50 50'>\n <circle className='path' cx='25' cy='25' r='20' fill='none' strokeWidth='5' />\n </svg>\n </div>\n ), [])\n\n return (\n <ErrorBoundary>\n <Suspense fallback={LoaderJSX || Loader}>\n {Component && <Component {...props} />}\n {children && children}\n </Suspense>\n </ErrorBoundary>\n )\n})\n\nLazyComponent.displayName = 'LazyComponent'\n\nexport type PendingBoundaryProps = PropsWithChildren & {\n fallback?: JSX.Element\n promise?: Promise<unknown>\n pendingPromise?: { read: () => Promise<unknown> }\n}\n\nexport const PendingBoundary: FC<PendingBoundaryProps>\n= memo<PendingBoundaryProps>(({ pendingPromise, promise, fallback, children }: PendingBoundaryProps) => {\n const wrappedPromiseRef = useRef(pendingPromise || (promise && wrapPromise(promise)))\n\n const InnerComponent: FC<PropsWithChildren<any>> = useMemo(() => ({ children }: PropsWithChildren<any>) => {\n const innerPromise = wrappedPromiseRef.current?.read?.()\n\n return innerPromise?.then ? null : children\n }, [])\n\n return (\n <LazyComponent LoaderJSX={fallback}>\n <InnerComponent>{children}</InnerComponent>\n </LazyComponent>\n )\n})\n\nPendingBoundary.displayName = 'PendingBoundary'\n\n\nexport const createLazyModule = (\n lazyResolver: () => Promise<ReactModule>,\n displayName: string,\n defaultProps: Record<string, unknown> = {},\n): FC<unknown> => {\n if (!map[displayName]) {\n const Component = lazy(lazyResolver)\n\n // eslint-disable-next-line react/display-name\n map[displayName] = memo((props) => (<LazyComponent Component={Component} {...defaultProps} {...props} />))\n map[displayName].displayName = displayName\n }\n\n return map[displayName]\n}\n\n\nexport const createLazyModuleWithStore = <T, ComponentType>(\n lazyResolver: (store: T) => Promise<ReactModule>,\n displayName: string,\n defaultProps: Record<string, unknown>,\n): (store: T) => FC<ComponentType> => (store: T) => {\n if (!map[displayName]) {\n const Component = lazy(() => lazyResolver(store))\n\n // eslint-disable-next-line react/display-name\n map[displayName] = memo((props) => (<LazyComponent Component={Component} {...defaultProps} {...props} />))\n map[displayName].displayName = displayName\n }\n\n return map[displayName]\n }\n"],"names":["map","wrapPromise","promise","result","status","suspend","then","res","err","read","LazyComponent","memo","_ref","children","Component","LoaderJSX","props","Loader","useMemo","React","createElement","className","classes","loader","viewBox","cx","cy","r","fill","strokeWidth","ErrorBoundary","Suspense","fallback","displayName","PendingBoundary","_ref2","pendingPromise","wrappedPromiseRef","useRef","InnerComponent","_ref3","_wrappedPromiseRef$cu","_wrappedPromiseRef$cu2","innerPromise","current","call","createLazyModule","lazyResolver","defaultProps","arguments","length","undefined","lazy","_extends","createLazyModuleWithStore","store"],"mappings":"2QAUA,MAAMA,EAA+B,CAAA,EAaxBC,EAAgCC,IAC3C,IACIC,EADAC,EAAS,UAEb,MAAMC,GAA8B,mBAAZH,EAAyBA,IAAYA,GAASI,MACnEC,IACCH,EAAS,UACTD,EAASI,CAAG,IAEbC,IACCJ,EAAS,QACTD,EAASK,CAAG,IAIhB,MAAO,CAELC,IAAAA,GACE,GAAe,YAAXL,EACF,MAAMC,EACD,GAAe,UAAXD,EACT,MAAMD,EACD,GAAe,YAAXC,EACT,OAAOD,CAEX,EACD,EAIUO,EACXC,GAAyBC,IAAsE,IAArEC,SAAEA,EAAQC,UAAEA,EAASC,UAAEA,KAAcC,GAA2BJ,EAC1F,MAAMK,EAA0BC,GAAQ,IACtCC,MAAAC,cAAA,MAAA,CAAKC,UAAWC,EAAQC,QACtBJ,MAAAC,cAAA,MAAA,CAAKC,UAAU,UAAUG,QAAQ,aAC/BL,MAAAC,cAAA,SAAA,CAAQC,UAAU,OAAOI,GAAG,KAAKC,GAAG,KAAKC,EAAE,KAAKC,KAAK,OAAOC,YAAY,SAG3E,IAEH,OACEV,MAAAC,cAACU,OACCX,MAAAC,cAACW,EAAQ,CAACC,SAAUjB,GAAaE,GAC9BH,GAAaK,MAAAC,cAACN,EAAcE,GAC5BH,GAAYA,GAED,IAIpBH,EAAcuB,YAAc,sBAQfC,EACXvB,GAA2BwB,IAA2E,IAA1EC,eAAEA,EAAclC,QAAEA,EAAO8B,SAAEA,EAAQnB,SAAEA,GAAgCsB,EACjG,MAAME,EAAoBC,EAAOF,GAAmBlC,GAAWD,EAAYC,IAErEqC,EAA6CrB,GAAQ,IAAMsB,IAA0C,IAAAC,EAAAC,EAAA,IAAzC7B,SAAEA,GAAkC2B,EACpG,MAAMG,EAAwCF,QAA5BA,EAAGJ,EAAkBO,eAAOF,IAAAD,GAAM,QAANC,EAAzBD,EAA2BhC,YAAI,IAAAiC,OAAA,EAA/BA,EAAAG,KAAAJ,GAErB,OAAOE,SAAAA,EAAcrC,KAAO,KAAOO,CAAQ,GAC1C,IAEH,OACEM,MAAAC,cAACV,EAAa,CAACK,UAAWiB,GACxBb,MAAAC,cAACmB,EAAgB1B,KAAAA,GACH,IAIpBqB,EAAgBD,YAAc,kBAGvB,MAAMa,EAAmB,SAC9BC,EACAd,GAEgB,IADhBe,EAAqCC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAG,CAAA,EAExC,IAAKjD,EAAIiC,GAAc,CACrB,MAAMnB,EAAYsC,EAAKL,GAGvB/C,EAAIiC,GAAetB,GAAMK,GAAWG,MAAAC,cAACV,EAAa2C,EAAA,CAACvC,UAAWA,GAAekC,EAAkBhC,MAC/FhB,EAAIiC,GAAaA,YAAcA,CACjC,CAEA,OAAOjC,EAAIiC,EACb,EAGaqB,EAA4BA,CACvCP,EACAd,EACAe,IACqCO,IACnC,IAAKvD,EAAIiC,GAAc,CACrB,MAAMnB,EAAYsC,GAAK,IAAML,EAAaQ,KAG1CvD,EAAIiC,GAAetB,GAAMK,GAAWG,MAAAC,cAACV,EAAa2C,EAAA,CAACvC,UAAWA,GAAekC,EAAkBhC,MAC/FhB,EAAIiC,GAAaA,YAAcA,CACjC,CAEA,OAAOjC,EAAIiC,EAAY"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{memo as
|
|
1
|
+
import{memo as r,PureComponent as e}from"react";import{LayoutBox as t}from"../container/layoutBox/LayoutBox.js";import o from"./errorBoundary.module.scss.js";import{IconBase as a}from"../icon/IconBase.js";const n=r((r=>{let{title:e,text:n}=r;return React.createElement(t,{className:o.errorBoundary,direction:"column",flexWrap:"wrap",gap:"2rem",padding:"1rem"},e&&React.createElement("h1",null,e),React.createElement(t,{align:"center",justify:"space-between",gap:"1rem"},React.createElement(a,{className:o.StyledIcon,color:"#FF0000",width:"3rem",height:"3rem"},React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},React.createElement("path",{d:"M506.3 417l-213.3-364c-16.33-28-57.54-28-73.98 0l-213.2 364C-10.59 444.9 9.849 480 42.74 480h426.6C502.1 480 522.6 445 506.3 417zM232 168c0-13.25 10.75-24 24-24S280 154.8 280 168v128c0 13.25-10.75 24-23.1 24S232 309.3 232 296V168zM256 416c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 401.9 273.4 416 256 416z"}))),n&&React.createElement(t,{flexShrink:"0",width:"90%"},n)))}));n.displayName="DefaultErrorComponent";class s extends e{constructor(r){super(r),this.state={hasError:!1}}static getDerivedStateFromError(r){return{hasError:!0,error:r}}componentDidCatch(r,e){var t,o;this.props.muted,this.props.muted,null===(t=this.props)||void 0===t||null===(o=t.onError)||void 0===o||o.call(t,{error:r,errorInfo:e}),!this.props.muted&&this.setState({hasError:!0,error:r,errorInfo:e})}render(){const{ErrorComponent:r=n,title:e,text:t,muted:o}=this.props,{hasError:a,error:s,errorInfo:c}=this.state;return a&&!o?React.createElement(r,{title:e||(null==s?void 0:s.toString())||"Error",text:t||"".concat(JSON.stringify(c,null,2))}):a&&o?null:this.props.children}}export{n as DefaultErrorComponent,s as ErrorBoundary};
|
|
2
2
|
//# sourceMappingURL=ErrorBoundary.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorBoundary.js","sources":["../../../../../../../../src/core/ui/components/error/ErrorBoundary.tsx"],"sourcesContent":["import { FC, memo, PureComponent, ReactNode } from 'react'\n\nimport { IconBase } from '../icon'\nimport { LayoutBox } from '../container/layoutBox/LayoutBox'\n\nimport classes from './errorBoundary.module.scss'\nimport { DefaultErrorComponentProps, ErrorBoundaryProps } from './errorBoundary.types'\n\n\ninterface State {\n error?: Error\n errorInfo?: unknown\n hasError: boolean\n}\n\n\nexport const DefaultErrorComponent: FC<DefaultErrorComponentProps>\n= memo(({ title, text }: DefaultErrorComponentProps) => (\n <LayoutBox className={classes.errorBoundary} direction='column' flexWrap='wrap' gap='2rem' padding='1rem'>\n {title && <h1>{title}</h1>}\n <LayoutBox align='center' justify='space-between' gap='1rem'>\n <IconBase\n className={classes.StyledIcon}\n color='#FF0000'\n width='3rem'\n height='3rem'\n >\n <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'>\n <path d='M506.3 417l-213.3-364c-16.33-28-57.54-28-73.98 0l-213.2 364C-10.59 444.9 9.849 480 42.74 480h426.6C502.1 480 522.6 445 506.3 417zM232 168c0-13.25 10.75-24 24-24S280 154.8 280 168v128c0 13.25-10.75 24-23.1 24S232 309.3 232 296V168zM256 416c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 401.9 273.4 416 256 416z' />\n </svg>\n </IconBase>\n {text && (\n <LayoutBox flexShrink='0' width='90%'>\n {text}\n </LayoutBox>\n )}\n </LayoutBox>\n </LayoutBox>\n))\nDefaultErrorComponent.displayName = 'DefaultErrorComponent'\n\nexport class ErrorBoundary extends PureComponent<ErrorBoundaryProps, State> {\n constructor(props: ErrorBoundaryProps) {\n super(props)\n this.state = { hasError: false }\n }\n\n static getDerivedStateFromError(error: Error): State {\n return { hasError: true, error }\n }\n\n componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void {\n // eslint-disable-next-line no-console\n error && console.error(error)\n // eslint-disable-next-line no-console\n errorInfo && console.error(errorInfo)\n
|
|
1
|
+
{"version":3,"file":"ErrorBoundary.js","sources":["../../../../../../../../src/core/ui/components/error/ErrorBoundary.tsx"],"sourcesContent":["import { FC, memo, PureComponent, ReactNode } from 'react'\n\nimport { IconBase } from '../icon'\nimport { LayoutBox } from '../container/layoutBox/LayoutBox'\n\nimport classes from './errorBoundary.module.scss'\nimport { DefaultErrorComponentProps, ErrorBoundaryProps } from './errorBoundary.types'\n\n\ninterface State {\n error?: Error\n errorInfo?: unknown\n hasError: boolean\n}\n\n\nexport const DefaultErrorComponent: FC<DefaultErrorComponentProps>\n= memo(({ title, text }: DefaultErrorComponentProps) => (\n <LayoutBox className={classes.errorBoundary} direction='column' flexWrap='wrap' gap='2rem' padding='1rem'>\n {title && <h1>{title}</h1>}\n <LayoutBox align='center' justify='space-between' gap='1rem'>\n <IconBase\n className={classes.StyledIcon}\n color='#FF0000'\n width='3rem'\n height='3rem'\n >\n <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'>\n <path d='M506.3 417l-213.3-364c-16.33-28-57.54-28-73.98 0l-213.2 364C-10.59 444.9 9.849 480 42.74 480h426.6C502.1 480 522.6 445 506.3 417zM232 168c0-13.25 10.75-24 24-24S280 154.8 280 168v128c0 13.25-10.75 24-23.1 24S232 309.3 232 296V168zM256 416c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 401.9 273.4 416 256 416z' />\n </svg>\n </IconBase>\n {text && (\n <LayoutBox flexShrink='0' width='90%'>\n {text}\n </LayoutBox>\n )}\n </LayoutBox>\n </LayoutBox>\n))\nDefaultErrorComponent.displayName = 'DefaultErrorComponent'\n\nexport class ErrorBoundary extends PureComponent<ErrorBoundaryProps, State> {\n constructor(props: ErrorBoundaryProps) {\n super(props)\n this.state = { hasError: false }\n }\n\n static getDerivedStateFromError(error: Error): State {\n return { hasError: true, error }\n }\n\n componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void {\n // eslint-disable-next-line no-console\n !this.props.muted && error && console.error(error)\n // eslint-disable-next-line no-console\n !this.props.muted && errorInfo && console.error(errorInfo)\n\n this.props?.onError?.({ error, errorInfo })\n\n !this.props.muted && this.setState({ hasError: true, error, errorInfo })\n }\n\n render(): ReactNode {\n const { ErrorComponent = DefaultErrorComponent, title, text, muted } = this.props\n const { hasError, error, errorInfo } = this.state\n\n if (hasError && !muted) {\n return (\n <ErrorComponent\n title={title || error?.toString() || 'Error'}\n text={text || `${JSON.stringify(errorInfo, null, 2)}`}\n />\n )\n }\n\n if (hasError && muted) {\n return null\n }\n\n return this.props.children\n }\n}\n"],"names":["DefaultErrorComponent","memo","_ref","title","text","React","createElement","LayoutBox","className","classes","errorBoundary","direction","flexWrap","gap","padding","align","justify","IconBase","StyledIcon","color","width","height","xmlns","viewBox","d","flexShrink","displayName","ErrorBoundary","PureComponent","constructor","props","super","this","state","hasError","getDerivedStateFromError","error","componentDidCatch","errorInfo","_this$props","_this$props$onError","muted","onError","call","setState","render","ErrorComponent","toString","concat","JSON","stringify","children"],"mappings":"6MAgBaA,MAAAA,EACXC,GAAKC,IAAA,IAACC,MAAEA,EAAKC,KAAEA,GAAkCF,EAAA,OACjDG,MAAAC,cAACC,EAAS,CAACC,UAAWC,EAAQC,cAAeC,UAAU,SAASC,SAAS,OAAOC,IAAI,OAAOC,QAAQ,QAChGX,GAASE,MAAAC,cAAA,KAAA,KAAKH,GACfE,MAAAC,cAACC,EAAS,CAACQ,MAAM,SAASC,QAAQ,gBAAgBH,IAAI,QACpDR,MAAAC,cAACW,EAAQ,CACPT,UAAWC,EAAQS,WACnBC,MAAM,UACNC,MAAM,OACNC,OAAO,QAEPhB,MAAAC,cAAA,MAAA,CAAKgB,MAAM,6BAA6BC,QAAQ,eAC9ClB,MAAAC,cAAA,OAAA,CAAMkB,EAAE,6WAGXpB,GACCC,MAAAC,cAACC,EAAS,CAACkB,WAAW,IAAIL,MAAM,OAC7BhB,IAIG,IAEdJ,EAAsB0B,YAAc,wBAE7B,MAAMC,UAAsBC,EACjCC,WAAAA,CAAYC,GACVC,MAAMD,GACNE,KAAKC,MAAQ,CAAEC,UAAU,EAC3B,CAEA,+BAAOC,CAAyBC,GAC9B,MAAO,CAAEF,UAAU,EAAME,QAC3B,CAEAC,iBAAAA,CAAkBD,EAAcE,GAAkC,IAAAC,EAAAC,EAE/DR,KAAKF,MAAMW,MAEXT,KAAKF,MAAMW,cAEZF,OAAKT,aAAK,IAAAS,GAAS,QAATC,EAAVD,EAAYG,eAAZF,IAAmBA,GAAnBA,EAAAG,KAAAJ,EAAsB,CAAEH,QAAOE,eAE9BN,KAAKF,MAAMW,OAAST,KAAKY,SAAS,CAAEV,UAAU,EAAME,QAAOE,aAC9D,CAEAO,MAAAA,GACE,MAAMC,eAAEA,EAAiB9C,EAAqBG,MAAEA,EAAKC,KAAEA,EAAIqC,MAAEA,GAAUT,KAAKF,OACtEI,SAAEA,EAAQE,MAAEA,EAAKE,UAAEA,GAAcN,KAAKC,MAE5C,OAAIC,IAAaO,EAEbpC,MAAAC,cAACwC,EAAc,CACb3C,MAAOA,IAASiC,aAAAA,EAAAA,EAAOW,aAAc,QACrC3C,KAAMA,GAAI4C,GAAAA,OAAOC,KAAKC,UAAUZ,EAAW,KAAM,MAKnDJ,GAAYO,EACP,KAGFT,KAAKF,MAAMqB,QACpB"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("../../../../../../_virtual/_rollupPluginBabelHelpers.js"),r=require("react"),t=require("../../error/ErrorBoundary.js"),n=require("./lazyComponent.module.scss.js");const a=
|
|
1
|
+
"use strict";var e=require("../../../../../../_virtual/_rollupPluginBabelHelpers.js"),r=require("react"),t=require("../../error/ErrorBoundary.js"),n=require("./lazyComponent.module.scss.js");const a={},o=e=>{let r,t="pending";const n=("function"==typeof e?e():e).then((e=>{t="success",r=e}),(e=>{t="error",r=e}));return{read(){if("pending"===t)throw n;if("error"===t)throw r;if("success"===t)return r}}},l=r.memo((e=>{let{children:a,Component:o,LoaderJSX:l,...c}=e;const s=r.useMemo((()=>React.createElement("div",{className:n.default.loader},React.createElement("svg",{className:"spinner",viewBox:"0 0 50 50"},React.createElement("circle",{className:"path",cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"5"})))),[]);return React.createElement(t.ErrorBoundary,null,React.createElement(r.Suspense,{fallback:l||s},o&&React.createElement(o,c),a&&a))}));l.displayName="LazyComponent";const c=r.memo((e=>{let{pendingPromise:t,promise:n,fallback:a,children:c}=e;const s=r.useRef(t||n&&o(n)),i=r.useMemo((()=>e=>{var r,t;let{children:n}=e;const a=null===(r=s.current)||void 0===r||null===(t=r.read)||void 0===t?void 0:t.call(r);return null!=a&&a.then?null:n}),[]);return React.createElement(l,{LoaderJSX:a},React.createElement(i,null,c))}));c.displayName="PendingBoundary";exports.LazyComponent=l,exports.PendingBoundary=c,exports.createLazyModule=function(t,n){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!a[n]){const c=r.lazy(t);a[n]=r.memo((r=>React.createElement(l,e.extends({Component:c},o,r)))),a[n].displayName=n}return a[n]},exports.createLazyModuleWithStore=(t,n,o)=>c=>{if(!a[n]){const s=r.lazy((()=>t(c)));a[n]=r.memo((r=>React.createElement(l,e.extends({Component:s},o,r)))),a[n].displayName=n}return a[n]},exports.wrapPromise=o;
|
|
2
2
|
//# sourceMappingURL=LazyComponent.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LazyComponent.js","sources":["../../../../../../../../src/core/ui/components/container/lazyComponent/LazyComponent.tsx"],"sourcesContent":["/* eslint-disable react/display-name */\nimport { FC, memo, Suspense, lazy, ComponentType, PropsWithChildren, useRef, useMemo } from 'react'\n\nimport { ErrorBoundary } from '../../error/ErrorBoundary'\n\nimport classes from './lazyComponent.module.scss'\n\n\
|
|
1
|
+
{"version":3,"file":"LazyComponent.js","sources":["../../../../../../../../src/core/ui/components/container/lazyComponent/LazyComponent.tsx"],"sourcesContent":["/* eslint-disable react/display-name */\nimport { FC, memo, Suspense, lazy, ComponentType, PropsWithChildren, useRef, useMemo } from 'react'\n\nimport { ErrorBoundary } from '../../error/ErrorBoundary'\n\nimport classes from './lazyComponent.module.scss'\n\n\n// not always necessary, since createLayzModule is called once per module,\n// but when nesting, inside loaded modules...\nconst map: Record<string, FC<any>> = {}\n\ntype ReactModule = {\n default: ComponentType<any>\n}\n\nexport type LazyComponentProps = PropsWithChildren<any> & {\n PropsWithChildren?: ComponentType<any>\n LoaderJSX?: JSX.Element\n}\n\nexport type wrapPromiseType = (promise: (() => Promise<any>) | Promise<any>) => { read: () => Promise<unknown> }\n\nexport const wrapPromise: wrapPromiseType = (promise: (() => Promise<any>) | Promise<any>) => {\n let status = 'pending'\n let result: any\n const suspend = (typeof promise === 'function' ? promise() : promise).then(\n (res) => {\n status = 'success'\n result = res\n },\n (err) => {\n status = 'error'\n result = err\n },\n )\n\n return {\n // eslint-disable-next-line consistent-return\n read(): any {\n if (status === 'pending') {\n throw suspend\n } else if (status === 'error') {\n throw result\n } else if (status === 'success') {\n return result\n }\n },\n }\n}\n\n\nexport const LazyComponent: FC<LazyComponentProps>\n= memo<LazyComponentProps>(({ children, Component, LoaderJSX, ...props }: LazyComponentProps) => {\n const Loader: React.ReactNode = useMemo(() => (\n <div className={classes.loader}>\n <svg className='spinner' viewBox='0 0 50 50'>\n <circle className='path' cx='25' cy='25' r='20' fill='none' strokeWidth='5' />\n </svg>\n </div>\n ), [])\n\n return (\n <ErrorBoundary>\n <Suspense fallback={LoaderJSX || Loader}>\n {Component && <Component {...props} />}\n {children && children}\n </Suspense>\n </ErrorBoundary>\n )\n})\n\nLazyComponent.displayName = 'LazyComponent'\n\nexport type PendingBoundaryProps = PropsWithChildren & {\n fallback?: JSX.Element\n promise?: Promise<unknown>\n pendingPromise?: { read: () => Promise<unknown> }\n}\n\nexport const PendingBoundary: FC<PendingBoundaryProps>\n= memo<PendingBoundaryProps>(({ pendingPromise, promise, fallback, children }: PendingBoundaryProps) => {\n const wrappedPromiseRef = useRef(pendingPromise || (promise && wrapPromise(promise)))\n\n const InnerComponent: FC<PropsWithChildren<any>> = useMemo(() => ({ children }: PropsWithChildren<any>) => {\n const innerPromise = wrappedPromiseRef.current?.read?.()\n\n return innerPromise?.then ? null : children\n }, [])\n\n return (\n <LazyComponent LoaderJSX={fallback}>\n <InnerComponent>{children}</InnerComponent>\n </LazyComponent>\n )\n})\n\nPendingBoundary.displayName = 'PendingBoundary'\n\n\nexport const createLazyModule = (\n lazyResolver: () => Promise<ReactModule>,\n displayName: string,\n defaultProps: Record<string, unknown> = {},\n): FC<unknown> => {\n if (!map[displayName]) {\n const Component = lazy(lazyResolver)\n\n // eslint-disable-next-line react/display-name\n map[displayName] = memo((props) => (<LazyComponent Component={Component} {...defaultProps} {...props} />))\n map[displayName].displayName = displayName\n }\n\n return map[displayName]\n}\n\n\nexport const createLazyModuleWithStore = <T, ComponentType>(\n lazyResolver: (store: T) => Promise<ReactModule>,\n displayName: string,\n defaultProps: Record<string, unknown>,\n): (store: T) => FC<ComponentType> => (store: T) => {\n if (!map[displayName]) {\n const Component = lazy(() => lazyResolver(store))\n\n // eslint-disable-next-line react/display-name\n map[displayName] = memo((props) => (<LazyComponent Component={Component} {...defaultProps} {...props} />))\n map[displayName].displayName = displayName\n }\n\n return map[displayName]\n }\n"],"names":["map","wrapPromise","promise","result","status","suspend","then","res","err","read","LazyComponent","memo","_ref","children","Component","LoaderJSX","props","Loader","useMemo","React","createElement","className","classes","default","loader","viewBox","cx","cy","r","fill","strokeWidth","ErrorBoundary","Suspense","fallback","displayName","PendingBoundary","_ref2","pendingPromise","wrappedPromiseRef","useRef","InnerComponent","_ref3","_wrappedPromiseRef$cu","_wrappedPromiseRef$cu2","innerPromise","current","call","lazyResolver","defaultProps","arguments","length","undefined","lazy","_extends","createLazyModuleWithStore","store"],"mappings":"+LAUA,MAAMA,EAA+B,CAAA,EAaxBC,EAAgCC,IAC3C,IACIC,EADAC,EAAS,UAEb,MAAMC,GAA8B,mBAAZH,EAAyBA,IAAYA,GAASI,MACnEC,IACCH,EAAS,UACTD,EAASI,CAAG,IAEbC,IACCJ,EAAS,QACTD,EAASK,CAAG,IAIhB,MAAO,CAELC,IAAAA,GACE,GAAe,YAAXL,EACF,MAAMC,EACD,GAAe,UAAXD,EACT,MAAMD,EACD,GAAe,YAAXC,EACT,OAAOD,CAEX,EACD,EAIUO,EACXC,EAAIA,MAAqBC,IAAsE,IAArEC,SAAEA,EAAQC,UAAEA,EAASC,UAAEA,KAAcC,GAA2BJ,EAC1F,MAAMK,EAA0BC,EAAOA,SAAC,IACtCC,MAAAC,cAAA,MAAA,CAAKC,UAAWC,EAAOC,QAACC,QACtBL,MAAAC,cAAA,MAAA,CAAKC,UAAU,UAAUI,QAAQ,aAC/BN,MAAAC,cAAA,SAAA,CAAQC,UAAU,OAAOK,GAAG,KAAKC,GAAG,KAAKC,EAAE,KAAKC,KAAK,OAAOC,YAAY,SAG3E,IAEH,OACEX,MAAAC,cAACW,EAAaA,mBACZZ,MAAAC,cAACY,WAAQ,CAACC,SAAUlB,GAAaE,GAC9BH,GAAaK,MAAAC,cAACN,EAAcE,GAC5BH,GAAYA,GAED,IAIpBH,EAAcwB,YAAc,sBAQfC,EACXxB,EAAIA,MAAuByB,IAA2E,IAA1EC,eAAEA,EAAcnC,QAAEA,EAAO+B,SAAEA,EAAQpB,SAAEA,GAAgCuB,EACjG,MAAME,EAAoBC,EAAAA,OAAOF,GAAmBnC,GAAWD,EAAYC,IAErEsC,EAA6CtB,WAAQ,IAAMuB,IAA0C,IAAAC,EAAAC,EAAA,IAAzC9B,SAAEA,GAAkC4B,EACpG,MAAMG,EAAwCF,QAA5BA,EAAGJ,EAAkBO,eAAOF,IAAAD,GAAM,QAANC,EAAzBD,EAA2BjC,YAAI,IAAAkC,OAAA,EAA/BA,EAAAG,KAAAJ,GAErB,OAAOE,SAAAA,EAActC,KAAO,KAAOO,CAAQ,GAC1C,IAEH,OACEM,MAAAC,cAACV,EAAa,CAACK,UAAWkB,GACxBd,MAAAC,cAACoB,EAAgB3B,KAAAA,GACH,IAIpBsB,EAAgBD,YAAc,6FAGE,SAC9Ba,EACAb,GAEgB,IADhBc,EAAqCC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAG,CAAA,EAExC,IAAKjD,EAAIkC,GAAc,CACrB,MAAMpB,EAAYsC,OAAKL,GAGvB/C,EAAIkC,GAAevB,QAAMK,GAAWG,MAAAC,cAACV,EAAa2C,UAAA,CAACvC,UAAWA,GAAekC,EAAkBhC,MAC/FhB,EAAIkC,GAAaA,YAAcA,CACjC,CAEA,OAAOlC,EAAIkC,EACb,oCAGyCoB,CACvCP,EACAb,EACAc,IACqCO,IACnC,IAAKvD,EAAIkC,GAAc,CACrB,MAAMpB,EAAYsC,EAAIA,MAAC,IAAML,EAAaQ,KAG1CvD,EAAIkC,GAAevB,QAAMK,GAAWG,MAAAC,cAACV,EAAa2C,UAAA,CAACvC,UAAWA,GAAekC,EAAkBhC,MAC/FhB,EAAIkC,GAAaA,YAAcA,CACjC,CAEA,OAAOlC,EAAIkC,EAAY"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var e=require("react"),r=require("../container/layoutBox/LayoutBox.js"),t=require("./errorBoundary.module.scss.js"),o=require("../icon/IconBase.js");const a=e.memo((e=>{let{title:a,text:n}=e;return React.createElement(r.LayoutBox,{className:t.default.errorBoundary,direction:"column",flexWrap:"wrap",gap:"2rem",padding:"1rem"},a&&React.createElement("h1",null,a),React.createElement(r.LayoutBox,{align:"center",justify:"space-between",gap:"1rem"},React.createElement(o.IconBase,{className:t.default.StyledIcon,color:"#FF0000",width:"3rem",height:"3rem"},React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},React.createElement("path",{d:"M506.3 417l-213.3-364c-16.33-28-57.54-28-73.98 0l-213.2 364C-10.59 444.9 9.849 480 42.74 480h426.6C502.1 480 522.6 445 506.3 417zM232 168c0-13.25 10.75-24 24-24S280 154.8 280 168v128c0 13.25-10.75 24-23.1 24S232 309.3 232 296V168zM256 416c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 401.9 273.4 416 256 416z"}))),n&&React.createElement(r.LayoutBox,{flexShrink:"0",width:"90%"},n)))}));a.displayName="DefaultErrorComponent";class n extends e.PureComponent{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,r){this.setState({hasError:!0,error:e,errorInfo:r})}render(){const{ErrorComponent:e=a,title:r,text:t}=this.props,{hasError:
|
|
1
|
+
"use strict";var e=require("react"),r=require("../container/layoutBox/LayoutBox.js"),t=require("./errorBoundary.module.scss.js"),o=require("../icon/IconBase.js");const a=e.memo((e=>{let{title:a,text:n}=e;return React.createElement(r.LayoutBox,{className:t.default.errorBoundary,direction:"column",flexWrap:"wrap",gap:"2rem",padding:"1rem"},a&&React.createElement("h1",null,a),React.createElement(r.LayoutBox,{align:"center",justify:"space-between",gap:"1rem"},React.createElement(o.IconBase,{className:t.default.StyledIcon,color:"#FF0000",width:"3rem",height:"3rem"},React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},React.createElement("path",{d:"M506.3 417l-213.3-364c-16.33-28-57.54-28-73.98 0l-213.2 364C-10.59 444.9 9.849 480 42.74 480h426.6C502.1 480 522.6 445 506.3 417zM232 168c0-13.25 10.75-24 24-24S280 154.8 280 168v128c0 13.25-10.75 24-23.1 24S232 309.3 232 296V168zM256 416c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 401.9 273.4 416 256 416z"}))),n&&React.createElement(r.LayoutBox,{flexShrink:"0",width:"90%"},n)))}));a.displayName="DefaultErrorComponent";class n extends e.PureComponent{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,r){var t,o;this.props.muted,this.props.muted,null===(t=this.props)||void 0===t||null===(o=t.onError)||void 0===o||o.call(t,{error:e,errorInfo:r}),!this.props.muted&&this.setState({hasError:!0,error:e,errorInfo:r})}render(){const{ErrorComponent:e=a,title:r,text:t,muted:o}=this.props,{hasError:n,error:s,errorInfo:c}=this.state;return n&&!o?React.createElement(e,{title:r||(null==s?void 0:s.toString())||"Error",text:t||"".concat(JSON.stringify(c,null,2))}):n&&o?null:this.props.children}}exports.DefaultErrorComponent=a,exports.ErrorBoundary=n;
|
|
2
2
|
//# sourceMappingURL=ErrorBoundary.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorBoundary.js","sources":["../../../../../../../src/core/ui/components/error/ErrorBoundary.tsx"],"sourcesContent":["import { FC, memo, PureComponent, ReactNode } from 'react'\n\nimport { IconBase } from '../icon'\nimport { LayoutBox } from '../container/layoutBox/LayoutBox'\n\nimport classes from './errorBoundary.module.scss'\nimport { DefaultErrorComponentProps, ErrorBoundaryProps } from './errorBoundary.types'\n\n\ninterface State {\n error?: Error\n errorInfo?: unknown\n hasError: boolean\n}\n\n\nexport const DefaultErrorComponent: FC<DefaultErrorComponentProps>\n= memo(({ title, text }: DefaultErrorComponentProps) => (\n <LayoutBox className={classes.errorBoundary} direction='column' flexWrap='wrap' gap='2rem' padding='1rem'>\n {title && <h1>{title}</h1>}\n <LayoutBox align='center' justify='space-between' gap='1rem'>\n <IconBase\n className={classes.StyledIcon}\n color='#FF0000'\n width='3rem'\n height='3rem'\n >\n <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'>\n <path d='M506.3 417l-213.3-364c-16.33-28-57.54-28-73.98 0l-213.2 364C-10.59 444.9 9.849 480 42.74 480h426.6C502.1 480 522.6 445 506.3 417zM232 168c0-13.25 10.75-24 24-24S280 154.8 280 168v128c0 13.25-10.75 24-23.1 24S232 309.3 232 296V168zM256 416c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 401.9 273.4 416 256 416z' />\n </svg>\n </IconBase>\n {text && (\n <LayoutBox flexShrink='0' width='90%'>\n {text}\n </LayoutBox>\n )}\n </LayoutBox>\n </LayoutBox>\n))\nDefaultErrorComponent.displayName = 'DefaultErrorComponent'\n\nexport class ErrorBoundary extends PureComponent<ErrorBoundaryProps, State> {\n constructor(props: ErrorBoundaryProps) {\n super(props)\n this.state = { hasError: false }\n }\n\n static getDerivedStateFromError(error: Error): State {\n return { hasError: true, error }\n }\n\n componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void {\n // eslint-disable-next-line no-console\n error && console.error(error)\n // eslint-disable-next-line no-console\n errorInfo && console.error(errorInfo)\n
|
|
1
|
+
{"version":3,"file":"ErrorBoundary.js","sources":["../../../../../../../src/core/ui/components/error/ErrorBoundary.tsx"],"sourcesContent":["import { FC, memo, PureComponent, ReactNode } from 'react'\n\nimport { IconBase } from '../icon'\nimport { LayoutBox } from '../container/layoutBox/LayoutBox'\n\nimport classes from './errorBoundary.module.scss'\nimport { DefaultErrorComponentProps, ErrorBoundaryProps } from './errorBoundary.types'\n\n\ninterface State {\n error?: Error\n errorInfo?: unknown\n hasError: boolean\n}\n\n\nexport const DefaultErrorComponent: FC<DefaultErrorComponentProps>\n= memo(({ title, text }: DefaultErrorComponentProps) => (\n <LayoutBox className={classes.errorBoundary} direction='column' flexWrap='wrap' gap='2rem' padding='1rem'>\n {title && <h1>{title}</h1>}\n <LayoutBox align='center' justify='space-between' gap='1rem'>\n <IconBase\n className={classes.StyledIcon}\n color='#FF0000'\n width='3rem'\n height='3rem'\n >\n <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'>\n <path d='M506.3 417l-213.3-364c-16.33-28-57.54-28-73.98 0l-213.2 364C-10.59 444.9 9.849 480 42.74 480h426.6C502.1 480 522.6 445 506.3 417zM232 168c0-13.25 10.75-24 24-24S280 154.8 280 168v128c0 13.25-10.75 24-23.1 24S232 309.3 232 296V168zM256 416c-17.36 0-31.44-14.08-31.44-31.44c0-17.36 14.07-31.44 31.44-31.44s31.44 14.08 31.44 31.44C287.4 401.9 273.4 416 256 416z' />\n </svg>\n </IconBase>\n {text && (\n <LayoutBox flexShrink='0' width='90%'>\n {text}\n </LayoutBox>\n )}\n </LayoutBox>\n </LayoutBox>\n))\nDefaultErrorComponent.displayName = 'DefaultErrorComponent'\n\nexport class ErrorBoundary extends PureComponent<ErrorBoundaryProps, State> {\n constructor(props: ErrorBoundaryProps) {\n super(props)\n this.state = { hasError: false }\n }\n\n static getDerivedStateFromError(error: Error): State {\n return { hasError: true, error }\n }\n\n componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void {\n // eslint-disable-next-line no-console\n !this.props.muted && error && console.error(error)\n // eslint-disable-next-line no-console\n !this.props.muted && errorInfo && console.error(errorInfo)\n\n this.props?.onError?.({ error, errorInfo })\n\n !this.props.muted && this.setState({ hasError: true, error, errorInfo })\n }\n\n render(): ReactNode {\n const { ErrorComponent = DefaultErrorComponent, title, text, muted } = this.props\n const { hasError, error, errorInfo } = this.state\n\n if (hasError && !muted) {\n return (\n <ErrorComponent\n title={title || error?.toString() || 'Error'}\n text={text || `${JSON.stringify(errorInfo, null, 2)}`}\n />\n )\n }\n\n if (hasError && muted) {\n return null\n }\n\n return this.props.children\n }\n}\n"],"names":["DefaultErrorComponent","memo","_ref","title","text","React","createElement","LayoutBox","className","classes","default","errorBoundary","direction","flexWrap","gap","padding","align","justify","IconBase","StyledIcon","color","width","height","xmlns","viewBox","d","flexShrink","displayName","ErrorBoundary","PureComponent","constructor","props","super","this","state","hasError","getDerivedStateFromError","error","componentDidCatch","errorInfo","_this$props","_this$props$onError","muted","onError","call","setState","render","ErrorComponent","toString","concat","JSON","stringify","children"],"mappings":"kKAgBaA,MAAAA,EACXC,EAAIA,MAACC,IAAA,IAACC,MAAEA,EAAKC,KAAEA,GAAkCF,EAAA,OACjDG,MAAAC,cAACC,YAAS,CAACC,UAAWC,EAAOC,QAACC,cAAeC,UAAU,SAASC,SAAS,OAAOC,IAAI,OAAOC,QAAQ,QAChGZ,GAASE,MAAAC,cAAA,KAAA,KAAKH,GACfE,MAAAC,cAACC,YAAS,CAACS,MAAM,SAASC,QAAQ,gBAAgBH,IAAI,QACpDT,MAAAC,cAACY,WAAQ,CACPV,UAAWC,EAAOC,QAACS,WACnBC,MAAM,UACNC,MAAM,OACNC,OAAO,QAEPjB,MAAAC,cAAA,MAAA,CAAKiB,MAAM,6BAA6BC,QAAQ,eAC9CnB,MAAAC,cAAA,OAAA,CAAMmB,EAAE,6WAGXrB,GACCC,MAAAC,cAACC,EAAAA,UAAS,CAACmB,WAAW,IAAIL,MAAM,OAC7BjB,IAIG,IAEdJ,EAAsB2B,YAAc,wBAE7B,MAAMC,UAAsBC,EAAAA,cACjCC,WAAAA,CAAYC,GACVC,MAAMD,GACNE,KAAKC,MAAQ,CAAEC,UAAU,EAC3B,CAEA,+BAAOC,CAAyBC,GAC9B,MAAO,CAAEF,UAAU,EAAME,QAC3B,CAEAC,iBAAAA,CAAkBD,EAAcE,GAAkC,IAAAC,EAAAC,EAE/DR,KAAKF,MAAMW,MAEXT,KAAKF,MAAMW,cAEZF,OAAKT,aAAK,IAAAS,GAAS,QAATC,EAAVD,EAAYG,eAAZF,IAAmBA,GAAnBA,EAAAG,KAAAJ,EAAsB,CAAEH,QAAOE,eAE9BN,KAAKF,MAAMW,OAAST,KAAKY,SAAS,CAAEV,UAAU,EAAME,QAAOE,aAC9D,CAEAO,MAAAA,GACE,MAAMC,eAAEA,EAAiB/C,EAAqBG,MAAEA,EAAKC,KAAEA,EAAIsC,MAAEA,GAAUT,KAAKF,OACtEI,SAAEA,EAAQE,MAAEA,EAAKE,UAAEA,GAAcN,KAAKC,MAE5C,OAAIC,IAAaO,EAEbrC,MAAAC,cAACyC,EAAc,CACb5C,MAAOA,IAASkC,aAAAA,EAAAA,EAAOW,aAAc,QACrC5C,KAAMA,GAAI6C,GAAAA,OAAOC,KAAKC,UAAUZ,EAAW,KAAM,MAKnDJ,GAAYO,EACP,KAGFT,KAAKF,MAAMqB,QACpB"}
|
package/dist/utils/esm/index.css
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
.errorBoundary-module_errorBoundary__gk9ps {
|
|
2
|
+
background: #EFEFEF;
|
|
3
|
+
width: 100%;
|
|
4
|
+
height: 100%;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.errorBoundary-module_StyledIcon__IYHiU {
|
|
8
|
+
margin-right: 10px;
|
|
9
|
+
}
|
|
1
10
|
.icon-module_icon-base-parent__nOMvW {
|
|
2
11
|
line-height: 1px !important;
|
|
3
12
|
}
|
|
@@ -28,34 +37,6 @@
|
|
|
28
37
|
width: var(--height);
|
|
29
38
|
height: var(--width);
|
|
30
39
|
}
|
|
31
|
-
.errorBoundary-module_errorBoundary__gk9ps {
|
|
32
|
-
background: #EFEFEF;
|
|
33
|
-
width: 100%;
|
|
34
|
-
height: 100%;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.errorBoundary-module_StyledIcon__IYHiU {
|
|
38
|
-
margin-right: 10px;
|
|
39
|
-
}
|
|
40
|
-
.divider-module_divider-line__6CesR {
|
|
41
|
-
position: relative;
|
|
42
|
-
display: block;
|
|
43
|
-
transition: opacity, width, height 250ms ease-in-out;
|
|
44
|
-
background-color: var(--color);
|
|
45
|
-
opacity: var(--opacity);
|
|
46
|
-
}
|
|
47
|
-
.divider-module_divider-line__6CesR.divider-module_vertical__qSVWD {
|
|
48
|
-
height: var(--length);
|
|
49
|
-
left: var(--left);
|
|
50
|
-
width: var(--width);
|
|
51
|
-
margin: var(--margin);
|
|
52
|
-
}
|
|
53
|
-
.divider-module_divider-line__6CesR.divider-module_horizontal__Gz-Oj {
|
|
54
|
-
width: var(--length);
|
|
55
|
-
left: var(--left);
|
|
56
|
-
height: var(--height);
|
|
57
|
-
margin: var(--margin);
|
|
58
|
-
}
|
|
59
40
|
.CollapsibleContainer-module_collapsible-container__u0Jmm {
|
|
60
41
|
transform-origin: 0% 0%;
|
|
61
42
|
opacity: 0;
|
|
@@ -89,6 +70,25 @@
|
|
|
89
70
|
max-width: var(--prop-value);
|
|
90
71
|
opacity: 1;
|
|
91
72
|
}
|
|
73
|
+
.divider-module_divider-line__6CesR {
|
|
74
|
+
position: relative;
|
|
75
|
+
display: block;
|
|
76
|
+
transition: opacity, width, height 250ms ease-in-out;
|
|
77
|
+
background-color: var(--color);
|
|
78
|
+
opacity: var(--opacity);
|
|
79
|
+
}
|
|
80
|
+
.divider-module_divider-line__6CesR.divider-module_vertical__qSVWD {
|
|
81
|
+
height: var(--length);
|
|
82
|
+
left: var(--left);
|
|
83
|
+
width: var(--width);
|
|
84
|
+
margin: var(--margin);
|
|
85
|
+
}
|
|
86
|
+
.divider-module_divider-line__6CesR.divider-module_horizontal__Gz-Oj {
|
|
87
|
+
width: var(--length);
|
|
88
|
+
left: var(--left);
|
|
89
|
+
height: var(--height);
|
|
90
|
+
margin: var(--margin);
|
|
91
|
+
}
|
|
92
92
|
.layoutBox-module_layout-box__ZIID8 {
|
|
93
93
|
display: flex;
|
|
94
94
|
position: relative;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"birthnumber.validator.js","sources":["../../../../../../../src/core/utils/helpers/birthnumber.validator.ts"],"sourcesContent":["import {\n parse as parseBirthNumber,\n isValidFormat,\n isValidModulo11,\n} from './birthnumberCZSKvalidator'\n\n// TODO Lukas Z, add spec/test for isBirthNumberValid\nexport const isBirthNumberValid = (birthnumber: string, birthdate: string, gender: string): boolean => {\n if (!isValidFormat(birthnumber) || !isValidModulo11(birthnumber)) return false\n\n const parsedBirthNumber = parseBirthNumber(birthnumber)\n\n if (parsedBirthNumber) {\n if (gender !== parsedBirthNumber.gender) {\n return false\n }\n const { year, month, day } = parsedBirthNumber\n\n if (birthdate !== `${String(day).padStart(2, '0')}.${String(month).padStart(2, '0')}.${year}`) {\n return false\n }\n }\n return true\n}\n"],"names":["isBirthNumberValid","birthnumber","birthdate","gender","isValidFormat","isValidModulo11","parsedBirthNumber","parseBirthNumber","year","month","day","concat","String","padStart"],"mappings":"8FAOO,MAAMA,EAAqBA,CAACC,EAAqBC,EAAmBC,KACzE,IAAKC,EAAcH,KAAiBI,EAAgBJ,
|
|
1
|
+
{"version":3,"file":"birthnumber.validator.js","sources":["../../../../../../../src/core/utils/helpers/birthnumber.validator.ts"],"sourcesContent":["import {\n parse as parseBirthNumber,\n isValidFormat,\n isValidModulo11,\n} from './birthnumberCZSKvalidator'\n\n// TODO Lukas Z, add spec/test for isBirthNumberValid\nexport const isBirthNumberValid = (birthnumber: string, birthdate: string, gender: string): boolean => {\n if (!isValidFormat(birthnumber) || !isValidModulo11(birthnumber)) {\n return false\n }\n\n const parsedBirthNumber = parseBirthNumber(birthnumber)\n\n if (parsedBirthNumber) {\n if (gender !== parsedBirthNumber.gender) {\n return false\n }\n const { year, month, day } = parsedBirthNumber\n\n if (birthdate !== `${String(day).padStart(2, '0')}.${String(month).padStart(2, '0')}.${year}`) {\n return false\n }\n }\n return true\n}\n"],"names":["isBirthNumberValid","birthnumber","birthdate","gender","isValidFormat","isValidModulo11","parsedBirthNumber","parseBirthNumber","year","month","day","concat","String","padStart"],"mappings":"8FAOO,MAAMA,EAAqBA,CAACC,EAAqBC,EAAmBC,KACzE,IAAKC,EAAcH,KAAiBI,EAAgBJ,GAClD,OAAO,EAGT,MAAMK,EAAoBC,EAAiBN,GAE3C,GAAIK,EAAmB,CACrB,GAAIH,IAAWG,EAAkBH,OAC/B,OAAO,EAET,MAAMK,KAAEA,EAAIC,MAAEA,EAAKC,IAAEA,GAAQJ,EAE7B,GAAIJ,IAAS,GAAAS,OAAQC,OAAOF,GAAKG,SAAS,EAAG,KAAIF,KAAAA,OAAIC,OAAOH,GAAOI,SAAS,EAAG,KAAIF,KAAAA,OAAIH,GACrF,OAAO,CAEX,CACA,OAAO,CAAI"}
|
package/dist/utils/index.css
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
.errorBoundary-module_errorBoundary__gk9ps {
|
|
2
|
+
background: #EFEFEF;
|
|
3
|
+
width: 100%;
|
|
4
|
+
height: 100%;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.errorBoundary-module_StyledIcon__IYHiU {
|
|
8
|
+
margin-right: 10px;
|
|
9
|
+
}
|
|
1
10
|
.icon-module_icon-base-parent__nOMvW {
|
|
2
11
|
line-height: 1px !important;
|
|
3
12
|
}
|
|
@@ -28,34 +37,6 @@
|
|
|
28
37
|
width: var(--height);
|
|
29
38
|
height: var(--width);
|
|
30
39
|
}
|
|
31
|
-
.errorBoundary-module_errorBoundary__gk9ps {
|
|
32
|
-
background: #EFEFEF;
|
|
33
|
-
width: 100%;
|
|
34
|
-
height: 100%;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.errorBoundary-module_StyledIcon__IYHiU {
|
|
38
|
-
margin-right: 10px;
|
|
39
|
-
}
|
|
40
|
-
.divider-module_divider-line__6CesR {
|
|
41
|
-
position: relative;
|
|
42
|
-
display: block;
|
|
43
|
-
transition: opacity, width, height 250ms ease-in-out;
|
|
44
|
-
background-color: var(--color);
|
|
45
|
-
opacity: var(--opacity);
|
|
46
|
-
}
|
|
47
|
-
.divider-module_divider-line__6CesR.divider-module_vertical__qSVWD {
|
|
48
|
-
height: var(--length);
|
|
49
|
-
left: var(--left);
|
|
50
|
-
width: var(--width);
|
|
51
|
-
margin: var(--margin);
|
|
52
|
-
}
|
|
53
|
-
.divider-module_divider-line__6CesR.divider-module_horizontal__Gz-Oj {
|
|
54
|
-
width: var(--length);
|
|
55
|
-
left: var(--left);
|
|
56
|
-
height: var(--height);
|
|
57
|
-
margin: var(--margin);
|
|
58
|
-
}
|
|
59
40
|
.CollapsibleContainer-module_collapsible-container__u0Jmm {
|
|
60
41
|
transform-origin: 0% 0%;
|
|
61
42
|
opacity: 0;
|
|
@@ -89,6 +70,25 @@
|
|
|
89
70
|
max-width: var(--prop-value);
|
|
90
71
|
opacity: 1;
|
|
91
72
|
}
|
|
73
|
+
.divider-module_divider-line__6CesR {
|
|
74
|
+
position: relative;
|
|
75
|
+
display: block;
|
|
76
|
+
transition: opacity, width, height 250ms ease-in-out;
|
|
77
|
+
background-color: var(--color);
|
|
78
|
+
opacity: var(--opacity);
|
|
79
|
+
}
|
|
80
|
+
.divider-module_divider-line__6CesR.divider-module_vertical__qSVWD {
|
|
81
|
+
height: var(--length);
|
|
82
|
+
left: var(--left);
|
|
83
|
+
width: var(--width);
|
|
84
|
+
margin: var(--margin);
|
|
85
|
+
}
|
|
86
|
+
.divider-module_divider-line__6CesR.divider-module_horizontal__Gz-Oj {
|
|
87
|
+
width: var(--length);
|
|
88
|
+
left: var(--left);
|
|
89
|
+
height: var(--height);
|
|
90
|
+
margin: var(--margin);
|
|
91
|
+
}
|
|
92
92
|
.layoutBox-module_layout-box__ZIID8 {
|
|
93
93
|
display: flex;
|
|
94
94
|
position: relative;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"birthnumber.validator.js","sources":["../../../../../../src/core/utils/helpers/birthnumber.validator.ts"],"sourcesContent":["import {\n parse as parseBirthNumber,\n isValidFormat,\n isValidModulo11,\n} from './birthnumberCZSKvalidator'\n\n// TODO Lukas Z, add spec/test for isBirthNumberValid\nexport const isBirthNumberValid = (birthnumber: string, birthdate: string, gender: string): boolean => {\n if (!isValidFormat(birthnumber) || !isValidModulo11(birthnumber)) return false\n\n const parsedBirthNumber = parseBirthNumber(birthnumber)\n\n if (parsedBirthNumber) {\n if (gender !== parsedBirthNumber.gender) {\n return false\n }\n const { year, month, day } = parsedBirthNumber\n\n if (birthdate !== `${String(day).padStart(2, '0')}.${String(month).padStart(2, '0')}.${year}`) {\n return false\n }\n }\n return true\n}\n"],"names":["isBirthNumberValid","birthnumber","birthdate","gender","isValidFormat","isValidModulo11","parsedBirthNumber","parseBirthNumber","year","month","day","concat","String","padStart"],"mappings":"uFAOkCA,CAACC,EAAqBC,EAAmBC,KACzE,IAAKC,EAAaA,cAACH,KAAiBI,
|
|
1
|
+
{"version":3,"file":"birthnumber.validator.js","sources":["../../../../../../src/core/utils/helpers/birthnumber.validator.ts"],"sourcesContent":["import {\n parse as parseBirthNumber,\n isValidFormat,\n isValidModulo11,\n} from './birthnumberCZSKvalidator'\n\n// TODO Lukas Z, add spec/test for isBirthNumberValid\nexport const isBirthNumberValid = (birthnumber: string, birthdate: string, gender: string): boolean => {\n if (!isValidFormat(birthnumber) || !isValidModulo11(birthnumber)) {\n return false\n }\n\n const parsedBirthNumber = parseBirthNumber(birthnumber)\n\n if (parsedBirthNumber) {\n if (gender !== parsedBirthNumber.gender) {\n return false\n }\n const { year, month, day } = parsedBirthNumber\n\n if (birthdate !== `${String(day).padStart(2, '0')}.${String(month).padStart(2, '0')}.${year}`) {\n return false\n }\n }\n return true\n}\n"],"names":["isBirthNumberValid","birthnumber","birthdate","gender","isValidFormat","isValidModulo11","parsedBirthNumber","parseBirthNumber","year","month","day","concat","String","padStart"],"mappings":"uFAOkCA,CAACC,EAAqBC,EAAmBC,KACzE,IAAKC,EAAaA,cAACH,KAAiBI,EAAeA,gBAACJ,GAClD,OAAO,EAGT,MAAMK,EAAoBC,QAAiBN,GAE3C,GAAIK,EAAmB,CACrB,GAAIH,IAAWG,EAAkBH,OAC/B,OAAO,EAET,MAAMK,KAAEA,EAAIC,MAAEA,EAAKC,IAAEA,GAAQJ,EAE7B,GAAIJ,IAAS,GAAAS,OAAQC,OAAOF,GAAKG,SAAS,EAAG,KAAIF,KAAAA,OAAIC,OAAOH,GAAOI,SAAS,EAAG,KAAIF,KAAAA,OAAIH,GACrF,OAAO,CAEX,CACA,OAAO,CAAI"}
|