@e1011/es-kit 1.0.226 → 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 +30 -30
- 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 +30 -30
- 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/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/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/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/error/ErrorBoundary.js +1 -1
- package/dist/ui/src/core/ui/components/error/ErrorBoundary.js.map +1 -1
- package/dist/utils/esm/index.css +30 -30
- package/dist/utils/esm/src/core/utils/helpers/birthnumber.validator.js.map +1 -1
- package/dist/utils/index.css +30 -30
- 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;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,
|
|
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{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("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
|
@@ -7,6 +7,36 @@
|
|
|
7
7
|
.errorBoundary-module_StyledIcon__IYHiU {
|
|
8
8
|
margin-right: 10px;
|
|
9
9
|
}
|
|
10
|
+
.icon-module_icon-base-parent__nOMvW {
|
|
11
|
+
line-height: 1px !important;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.icon-module_icon-base__S0tHf {
|
|
15
|
+
min-width: var(--min-width);
|
|
16
|
+
min-height: var(--min-height);
|
|
17
|
+
width: var(--width) !important;
|
|
18
|
+
height: var(--height) !important;
|
|
19
|
+
line-height: 1px !important;
|
|
20
|
+
background-color: var(--icon-color);
|
|
21
|
+
color: var(--icon-content-color);
|
|
22
|
+
background-repeat: no-repeat;
|
|
23
|
+
mask-image: var(--icon-url);
|
|
24
|
+
-webkit-mask-image: var(--icon-url);
|
|
25
|
+
mask-repeat: no-repeat;
|
|
26
|
+
-webkit-mask-repeat: no-repeat;
|
|
27
|
+
mask-size: contain;
|
|
28
|
+
-webkit-mask-size: contain;
|
|
29
|
+
mask-position: center;
|
|
30
|
+
-webkit-mask-position: center;
|
|
31
|
+
display: inline-block;
|
|
32
|
+
will-change: transform;
|
|
33
|
+
transform: translate3d(0, 0, 0);
|
|
34
|
+
}
|
|
35
|
+
.icon-module_icon-base__S0tHf svg {
|
|
36
|
+
fill: var(--icon-content-color);
|
|
37
|
+
width: var(--height);
|
|
38
|
+
height: var(--width);
|
|
39
|
+
}
|
|
10
40
|
.CollapsibleContainer-module_collapsible-container__u0Jmm {
|
|
11
41
|
transform-origin: 0% 0%;
|
|
12
42
|
opacity: 0;
|
|
@@ -40,36 +70,6 @@
|
|
|
40
70
|
max-width: var(--prop-value);
|
|
41
71
|
opacity: 1;
|
|
42
72
|
}
|
|
43
|
-
.icon-module_icon-base-parent__nOMvW {
|
|
44
|
-
line-height: 1px !important;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.icon-module_icon-base__S0tHf {
|
|
48
|
-
min-width: var(--min-width);
|
|
49
|
-
min-height: var(--min-height);
|
|
50
|
-
width: var(--width) !important;
|
|
51
|
-
height: var(--height) !important;
|
|
52
|
-
line-height: 1px !important;
|
|
53
|
-
background-color: var(--icon-color);
|
|
54
|
-
color: var(--icon-content-color);
|
|
55
|
-
background-repeat: no-repeat;
|
|
56
|
-
mask-image: var(--icon-url);
|
|
57
|
-
-webkit-mask-image: var(--icon-url);
|
|
58
|
-
mask-repeat: no-repeat;
|
|
59
|
-
-webkit-mask-repeat: no-repeat;
|
|
60
|
-
mask-size: contain;
|
|
61
|
-
-webkit-mask-size: contain;
|
|
62
|
-
mask-position: center;
|
|
63
|
-
-webkit-mask-position: center;
|
|
64
|
-
display: inline-block;
|
|
65
|
-
will-change: transform;
|
|
66
|
-
transform: translate3d(0, 0, 0);
|
|
67
|
-
}
|
|
68
|
-
.icon-module_icon-base__S0tHf svg {
|
|
69
|
-
fill: var(--icon-content-color);
|
|
70
|
-
width: var(--height);
|
|
71
|
-
height: var(--width);
|
|
72
|
-
}
|
|
73
73
|
.divider-module_divider-line__6CesR {
|
|
74
74
|
position: relative;
|
|
75
75
|
display: block;
|
|
@@ -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
|
@@ -7,6 +7,36 @@
|
|
|
7
7
|
.errorBoundary-module_StyledIcon__IYHiU {
|
|
8
8
|
margin-right: 10px;
|
|
9
9
|
}
|
|
10
|
+
.icon-module_icon-base-parent__nOMvW {
|
|
11
|
+
line-height: 1px !important;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.icon-module_icon-base__S0tHf {
|
|
15
|
+
min-width: var(--min-width);
|
|
16
|
+
min-height: var(--min-height);
|
|
17
|
+
width: var(--width) !important;
|
|
18
|
+
height: var(--height) !important;
|
|
19
|
+
line-height: 1px !important;
|
|
20
|
+
background-color: var(--icon-color);
|
|
21
|
+
color: var(--icon-content-color);
|
|
22
|
+
background-repeat: no-repeat;
|
|
23
|
+
mask-image: var(--icon-url);
|
|
24
|
+
-webkit-mask-image: var(--icon-url);
|
|
25
|
+
mask-repeat: no-repeat;
|
|
26
|
+
-webkit-mask-repeat: no-repeat;
|
|
27
|
+
mask-size: contain;
|
|
28
|
+
-webkit-mask-size: contain;
|
|
29
|
+
mask-position: center;
|
|
30
|
+
-webkit-mask-position: center;
|
|
31
|
+
display: inline-block;
|
|
32
|
+
will-change: transform;
|
|
33
|
+
transform: translate3d(0, 0, 0);
|
|
34
|
+
}
|
|
35
|
+
.icon-module_icon-base__S0tHf svg {
|
|
36
|
+
fill: var(--icon-content-color);
|
|
37
|
+
width: var(--height);
|
|
38
|
+
height: var(--width);
|
|
39
|
+
}
|
|
10
40
|
.CollapsibleContainer-module_collapsible-container__u0Jmm {
|
|
11
41
|
transform-origin: 0% 0%;
|
|
12
42
|
opacity: 0;
|
|
@@ -40,36 +70,6 @@
|
|
|
40
70
|
max-width: var(--prop-value);
|
|
41
71
|
opacity: 1;
|
|
42
72
|
}
|
|
43
|
-
.icon-module_icon-base-parent__nOMvW {
|
|
44
|
-
line-height: 1px !important;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.icon-module_icon-base__S0tHf {
|
|
48
|
-
min-width: var(--min-width);
|
|
49
|
-
min-height: var(--min-height);
|
|
50
|
-
width: var(--width) !important;
|
|
51
|
-
height: var(--height) !important;
|
|
52
|
-
line-height: 1px !important;
|
|
53
|
-
background-color: var(--icon-color);
|
|
54
|
-
color: var(--icon-content-color);
|
|
55
|
-
background-repeat: no-repeat;
|
|
56
|
-
mask-image: var(--icon-url);
|
|
57
|
-
-webkit-mask-image: var(--icon-url);
|
|
58
|
-
mask-repeat: no-repeat;
|
|
59
|
-
-webkit-mask-repeat: no-repeat;
|
|
60
|
-
mask-size: contain;
|
|
61
|
-
-webkit-mask-size: contain;
|
|
62
|
-
mask-position: center;
|
|
63
|
-
-webkit-mask-position: center;
|
|
64
|
-
display: inline-block;
|
|
65
|
-
will-change: transform;
|
|
66
|
-
transform: translate3d(0, 0, 0);
|
|
67
|
-
}
|
|
68
|
-
.icon-module_icon-base__S0tHf svg {
|
|
69
|
-
fill: var(--icon-content-color);
|
|
70
|
-
width: var(--height);
|
|
71
|
-
height: var(--width);
|
|
72
|
-
}
|
|
73
73
|
.divider-module_divider-line__6CesR {
|
|
74
74
|
position: relative;
|
|
75
75
|
display: block;
|
|
@@ -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"}
|