@esvndev/es-react-table-interface 1.8.28 → 1.8.30

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.
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare const headerTemplate: (onClick: any) => React.JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './utils';
@@ -0,0 +1,7 @@
1
+ import { ReactNode } from "react";
2
+ export declare const formatShortDate: (dateString: string | undefined) => string;
3
+ export declare const formatLongDate: (dateString: string | undefined) => string;
4
+ export declare const isVideoFile: (filename: string) => boolean;
5
+ export declare const getTemplate: (template: any) => ReactNode;
6
+ export declare const getDate: (date: any) => string;
7
+ export declare const updatedArray456: (array: any[]) => any;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import { Props } from "./type";
3
+ export declare const FileAttachmentViewer: <T>(props: Props<T>) => React.JSX.Element;
@@ -0,0 +1,34 @@
1
+ import { CSSProperties, ReactElement, ReactNode } from "react";
2
+ export interface ITem {
3
+ id?: string;
4
+ url?: string;
5
+ path: string;
6
+ createdDate?: string;
7
+ type?: string;
8
+ fileName?: string;
9
+ createdBy?: string;
10
+ }
11
+ export type IData<T> = T & ITem;
12
+ export interface StyleObject {
13
+ [key: string]: CSSProperties | StyleObject;
14
+ }
15
+ export interface Props<T> {
16
+ data: IData<T>[];
17
+ total?: number;
18
+ height?: number;
19
+ value: IData<T>;
20
+ header?: string;
21
+ style?: {
22
+ headerStyle?: CSSProperties;
23
+ containerStyle?: CSSProperties;
24
+ footerStyle?: CSSProperties;
25
+ };
26
+ headerTemplate?: ReactNode | ReactElement | (() => ReactNode | ReactElement);
27
+ footerLeftTemplate?: ReactNode | ReactElement | (() => ReactNode | ReactElement);
28
+ footerCenterTemplate?: ReactNode | ReactElement | (() => ReactNode | ReactElement);
29
+ footerRightTemplate?: ReactNode | ReactElement | (() => ReactNode | ReactElement);
30
+ onSelected?: (value: (IData<T>)) => void;
31
+ fetchNextPage?: () => void;
32
+ openModal?: any;
33
+ handleModal?: any;
34
+ }
@@ -0,0 +1 @@
1
+ export * from './Type';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esvndev/es-react-table-interface",
3
- "version": "1.8.28",
3
+ "version": "1.8.30",
4
4
  "description": "This product is designed by ESVN and is only for use in products distributed by ESVN. Any product, whether for non-commercial research or commercial purposes, must have written legal approval and a digital signature from ESVN.",
5
5
  "license": "ESVN Limited Use License",
6
6
  "author": "dev@esvn.com.vn",
@@ -15,7 +15,7 @@
15
15
  "scripts": {
16
16
  "test": "jest",
17
17
  "build:clean": "rimraf build",
18
- "build:rollup": "rollup -c",
18
+ "build:rollup": "node --max-old-space-size=8196 ./node_modules/rollup/dist/bin/rollup -c",
19
19
  "build": "npm-run-all build:clean build:rollup",
20
20
  "lint:ts": "eslint ./src --ext .ts,.tsx --config .eslintrc --fix",
21
21
  "lint:styles": "stylelint \"**/*.css\" --fix",
@@ -26,10 +26,17 @@
26
26
  "keywords": [
27
27
  "ESVN"
28
28
  ],
29
+ "output": {
30
+ "sourcemap": false
31
+ },
29
32
  "devDependencies": {
30
33
  "@esvndev/es-react-import-export": "1.1.73",
31
34
  "@esvndev/es-template-help": "1.0.92",
32
35
  "@hookform/resolvers": "^2.8.10",
36
+ "@react-pdf-viewer/core": "^3.12.0",
37
+ "@react-pdf-viewer/default-layout": "^3.12.0",
38
+ "@react-pdf-viewer/print": "^3.12.0",
39
+ "@react-pdf-viewer/toolbar": "^3.12.0",
33
40
  "@rollup/plugin-commonjs": "^20.0.0",
34
41
  "@rollup/plugin-image": "^3.0.3",
35
42
  "@rollup/plugin-json": "^6.1.0",
@@ -41,10 +48,12 @@
41
48
  "@semantic-release/npm": "^9.0.1",
42
49
  "@semantic-release/release-notes-generator": "^10.0.3",
43
50
  "@syncfusion/ej2-react-calendars": "20.2.36",
51
+ "@syncfusion/ej2-react-documenteditor": "^27.2.3",
44
52
  "@syncfusion/ej2-react-dropdowns": "20.2.36",
45
53
  "@syncfusion/ej2-react-grids": "20.2.36",
46
54
  "@syncfusion/ej2-react-inputs": "20.2.36",
47
55
  "@syncfusion/ej2-react-navigations": "20.2.36",
56
+ "@syncfusion/ej2-react-spreadsheet": "32.1.25",
48
57
  "@testing-library/react": "^14.2.1",
49
58
  "@types/jest": "^29.5.12",
50
59
  "@types/react": "^18.2.58",
@@ -74,6 +83,7 @@
74
83
  "react-dom": "^18.2.0",
75
84
  "react-hot-toast": "2.2.0",
76
85
  "react-i18next": "^11.16.9",
86
+ "react-infinite-scroll-component": "6.1.1",
77
87
  "react-number-format": "^5.3.3",
78
88
  "react-reflex": "4.2.7",
79
89
  "react-router-dom": "^6.3.0",