jamespot-react-components 1.0.206 → 1.0.207
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/build/jamespot-react-components.js +180 -144
- package/build/jamespot-react-components.js.map +1 -1
- package/build/src/components/Editors/components/EditorUploader.d.ts +3 -2
- package/build/src/components/Form/Input/JRCInputFileAdvanced/JRCInputFileAdvancedRaw.d.ts +2 -1
- package/build/src/components/JRCFolders/types.d.ts +9 -3
- package/build/src/components/Widgets/JRCWidgetArticleText/JRCWidgetArticleText.stories.d.ts +1 -0
- package/build/src/components/Widgets/JRCWidgetTable/JRCWidgetDatasourceTableEditor.d.ts +18 -5
- package/build/src/components/Widgets/JRCWidgetTable/JRCWidgetDatasourceTableEditor.styles.d.ts +5 -0
- package/build/src/components/Widgets/JRCWidgetTable/JRCWidgetExcelDatasourceTableEditor.d.ts +58 -2
- package/build/src/components/Widgets/JRCWidgetTable/JRCWidgetTable.d.ts +2 -2
- package/build/src/components/Widgets/JRCWidgetTable/JRCWidgetTable.stories.d.ts +28 -1
- package/build/src/components/Widgets/JRCWidgetTable/JRCWidgetTable.styles.d.ts +2 -1
- package/build/src/components/Widgets/JRCWidgetTable/JRCWidgetTableSharedEditor.d.ts +3 -0
- package/build/src/components/Widgets/JRCWidgetTable/JRCWidgetTableTdRenderer.d.ts +2 -1
- package/build/src/components/Widgets/JRCWidgetTable/JRCWidgetTableTdRendererText.d.ts +15 -0
- package/build/src/components/Widgets/JRCWidgetTable/components/ModalColumnLabelize.d.ts +2 -1
- package/build/src/components/Widgets/JRCWidgetTable/components/WidgetDatasourceModelView.d.ts +3 -1
- package/build/src/components/Widgets/JRCWidgetTable/components/WidgetDatasourceModelViewChanges.d.ts +10 -0
- package/build/src/components/Widgets/JRCWidgetTable/components/WidgetDatasourceModelViewColumnAction.d.ts +17 -0
- package/build/src/components/Widgets/JRCWidgetTable/const.d.ts +3 -1
- package/build/src/components/Widgets/JRCWidgetTable/model/doc/DocEditor.d.ts +3 -22
- package/build/src/components/Widgets/JRCWidgetTable/model/doc/DocEditorObject.d.ts +2 -3
- package/build/src/components/Widgets/JRCWidgetTable/model/excel/ExcelEditor.d.ts +3 -22
- package/build/src/components/Widgets/JRCWidgetTable/model/excel/ExcelEditorBrokenModel.d.ts +4 -0
- package/build/src/components/Widgets/JRCWidgetTable/model/excel/ExcelEditorModel.d.ts +3 -22
- package/build/src/components/Widgets/JRCWidgetTable/model/excel/ExcelEditorObject.d.ts +3 -5
- package/build/src/components/Widgets/JRCWidgetTable/model/excel/ExcelEditorSelectDocument.d.ts +4 -0
- package/build/src/components/Widgets/JRCWidgetTable/model/excel/ExcelEditorSelectWedocFile.d.ts +4 -0
- package/build/src/components/Widgets/JRCWidgetTable/model/excel/ExcelEditorSpreadSheets.d.ts +4 -23
- package/build/src/components/Widgets/JRCWidgetTable/model/excel/ExcelEditorUploader.d.ts +2 -22
- package/build/src/components/Widgets/JRCWidgetTable/model/studio/StudioEditor.d.ts +3 -22
- package/build/src/components/Widgets/JRCWidgetTable/model/studio/StudioEditorApp.d.ts +1 -1
- package/build/src/components/Widgets/JRCWidgetTable/model/studio/StudioEditorFetch.d.ts +1 -2
- package/build/src/components/Widgets/JRCWidgetTable/model/studio/StudioEditorObject.d.ts +2 -3
- package/build/src/components/Widgets/JRCWidgetTable/pagination.d.ts +0 -2
- package/build/src/components/Widgets/JRCWidgetTable/utils.d.ts +18 -1
- package/build/src/components/Widgets/context/hooks.d.ts +114 -0
- package/build/src/components/Widgets/context/provider.d.ts +26 -0
- package/build/src/components/api/jamespot/mock_jamespot.d.ts +15 -0
- package/build/src/components/api/jamespot/mocks/application/application.d.ts +9 -0
- package/build/src/components/api/jamespot/mocks/datasource/datasource.d.ts +14 -0
- package/build/src/components/api/jamespot/mocks/file/file.d.ts +3 -0
- package/build/src/components/api/jamespot/mocks/network/network.d.ts +6 -0
- package/package.json +2 -2
- package/build/src/components/Widgets/JRCWidgetTable/JRCWidgetTablePagination.d.ts +0 -9
- package/build/src/components/Widgets/JRCWidgetTable/components/ModalColumnDateFormat.d.ts +0 -7
- package/build/src/components/Widgets/JRCWidgetTable/components/WidgetDatasourceModelDiff.d.ts +0 -2
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { jFileLittle } from 'jamespot-user-api';
|
|
1
|
+
import { jFileLittle, Network } from 'jamespot-user-api';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
export declare const EditorUploader: ({ token, uniqid, label, accept, multiple, name, onUploadStart, onUploadSuccess, onUploadSucessEnd, }: {
|
|
3
|
+
export declare const EditorUploader: ({ token, uniqid, label, accept, multiple, name, network, onUploadStart, onUploadSuccess, onUploadSucessEnd, }: {
|
|
4
4
|
token: string;
|
|
5
5
|
uniqid: string;
|
|
6
6
|
label: string;
|
|
7
7
|
accept: string;
|
|
8
8
|
multiple: boolean;
|
|
9
9
|
name?: "editorFiles" | "attachment" | undefined;
|
|
10
|
+
network?: Pick<Network, "token" | "postFile" | "getUrl"> | undefined;
|
|
10
11
|
onUploadStart: (count?: number) => void;
|
|
11
12
|
onUploadSuccess: (response: jFileLittle) => void;
|
|
12
13
|
onUploadSucessEnd?: (() => void) | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import jamespot, { Drive, FileCopyParams, jFileLittle } from 'jamespot-user-api';
|
|
1
|
+
import jamespot, { Drive, FileCopyParams, jFileLittle, Network } from 'jamespot-user-api';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { WrappedFieldInputProps } from 'redux-form';
|
|
4
4
|
export type DriveOrFilebank = Drive | 'fileBank';
|
|
@@ -13,6 +13,7 @@ export interface JRCInputFileAdavancedProps extends React.ComponentPropsWithoutR
|
|
|
13
13
|
multiple?: boolean;
|
|
14
14
|
accept?: 'image/png' | 'image/jpg' | 'image/png, image/jpg' | 'image/png, image/jpeg, image/jpg' | 'image/pdf' | 'image/doc' | 'image/pdf, image/doc' | 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.oasis.opendocument.spreadsheet,application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.oasis.opendocument.text,application/vnd.openxmlformats-officedocument.presentationml.presentation,application/vnd.oasis.opendocument.presentation';
|
|
15
15
|
input?: WrappedFieldInputProps;
|
|
16
|
+
network?: Pick<Network, 'token' | 'postFile' | 'getUrl'>;
|
|
16
17
|
onUploadSuccess?: (response: jFileLittle, token: string) => void;
|
|
17
18
|
onDeleteSuccess?: (index: number) => void;
|
|
18
19
|
onUploadStart?: (count?: number) => void;
|
|
@@ -5,9 +5,9 @@ export type JRCFoldersProps = {
|
|
|
5
5
|
initialDocuments?: string[];
|
|
6
6
|
initialBankFolder?: jFolderList;
|
|
7
7
|
allowMultiSelection?: boolean;
|
|
8
|
-
asyncBanksPromise
|
|
9
|
-
asyncFoldersPromise
|
|
10
|
-
asyncDocumentsPromise
|
|
8
|
+
asyncBanksPromise?: () => Promise<FileBankProps[]> | undefined;
|
|
9
|
+
asyncFoldersPromise?: (uri: string) => Promise<ApiWrapper<jFolderList[]>> | undefined;
|
|
10
|
+
asyncDocumentsPromise?: (uri: string) => Promise<ApiPagingResults<jArticleView>> | undefined;
|
|
11
11
|
onSelectFolder?: (folder: jFolderList[]) => void;
|
|
12
12
|
onSelectDocument?: (document: jFileLittle[]) => void;
|
|
13
13
|
};
|
|
@@ -23,3 +23,9 @@ export type FolderProps = {
|
|
|
23
23
|
folderColor?: string;
|
|
24
24
|
folders?: Array<FolderProps>;
|
|
25
25
|
};
|
|
26
|
+
export type PoolItemType = {
|
|
27
|
+
parent: string | undefined;
|
|
28
|
+
folders: jFolderList[];
|
|
29
|
+
documents: jArticleView[];
|
|
30
|
+
_attachedFiles?: jFileLittle[];
|
|
31
|
+
};
|
|
@@ -125,6 +125,7 @@ export declare const Primary: Story<{
|
|
|
125
125
|
mounted?: boolean | undefined;
|
|
126
126
|
hover?: boolean | undefined;
|
|
127
127
|
empty?: boolean | undefined;
|
|
128
|
+
locked?: boolean | undefined;
|
|
128
129
|
}, ...args_1: unknown[]) => void;
|
|
129
130
|
width?: number | undefined;
|
|
130
131
|
isComponentVisible?: boolean | undefined;
|
|
@@ -1,6 +1,18 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { WidgetDatasourceTableContent, WidgetEditorActions, WidgetEditorErrorActions } from 'jamespot-user-api';
|
|
3
|
-
|
|
2
|
+
import { JApplicationApi, JDatasourceApi, JFilebankApi, Network, WidgetDatasourceTableContent, WidgetEditorActions, WidgetEditorErrorActions } from 'jamespot-user-api';
|
|
3
|
+
import { EditorBaseContext, Handlers, HookIsActive } from '../context/provider';
|
|
4
|
+
export type WidgetDatasourceHandlers = Handlers & {
|
|
5
|
+
jamespot: {
|
|
6
|
+
datasource: Omit<JDatasourceApi, 'jApi' | 'network'>;
|
|
7
|
+
network: Pick<Network, 'token' | 'postFile'>;
|
|
8
|
+
application: Pick<JApplicationApi, 'get' | 'list'>;
|
|
9
|
+
filebank: JFilebankApi;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export type WidgetDatasourceContext = EditorBaseContext<WidgetDatasourceTableContent> & {
|
|
13
|
+
handlers: WidgetDatasourceHandlers;
|
|
14
|
+
};
|
|
15
|
+
export declare const JRCWidgetDatasourceTableEditor: ({ uri, limit, tableHeadColor, tableHeadTextColor, tableHeadIconColor, tableRowColor, tableRowTextColor, tableColumnsData, tableBorderRadius, tableSizedColumns, tableSizedColumnsWidth, hook, handlers, onChange, onSave, onStateChange, onError, }: {
|
|
4
16
|
uri?: string | undefined;
|
|
5
17
|
limit?: number | boolean | undefined;
|
|
6
18
|
tableColumnsData?: {
|
|
@@ -20,9 +32,10 @@ export declare const JRCWidgetDatasourceTableEditor: ({ uri, limit, tableHeadCol
|
|
|
20
32
|
tableSizedColumns?: boolean | undefined;
|
|
21
33
|
tableSizedColumnsWidth?: number | undefined;
|
|
22
34
|
} & {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
35
|
+
handlers: WidgetDatasourceHandlers;
|
|
36
|
+
} & {
|
|
37
|
+
hook: {
|
|
38
|
+
isActive: HookIsActive;
|
|
26
39
|
};
|
|
27
40
|
} & WidgetEditorActions<{
|
|
28
41
|
uri?: string | undefined;
|
package/build/src/components/Widgets/JRCWidgetTable/JRCWidgetDatasourceTableEditor.styles.d.ts
CHANGED
|
@@ -6,7 +6,12 @@ export declare const CSSItemIcon: import("styled-components").StyledComponent<"d
|
|
|
6
6
|
backgroundColor: string;
|
|
7
7
|
}, never>;
|
|
8
8
|
export declare const CSSListBorderBottom: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
9
|
+
export declare const CSSInlineInput: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
10
|
+
export declare const CSSFlexInput: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
9
11
|
export declare const CSSListItem: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
10
12
|
isActive?: boolean | undefined;
|
|
11
13
|
}, never>;
|
|
12
14
|
export declare const CSSAlertMessage: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
15
|
+
export declare const CSSDisabled: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
16
|
+
disabled: boolean;
|
|
17
|
+
}, never>;
|
package/build/src/components/Widgets/JRCWidgetTable/JRCWidgetExcelDatasourceTableEditor.d.ts
CHANGED
|
@@ -1,3 +1,59 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { WidgetEditorActions, WidgetEditorErrorActions, WidgetExcelDatasourceTableContent } from 'jamespot-user-api';
|
|
3
|
-
|
|
2
|
+
import { JDatasourceApi, JFilebankApi, JWedocApi, Network, WidgetEditorActions, WidgetEditorErrorActions, WidgetExcelDatasourceTableContent } from 'jamespot-user-api';
|
|
3
|
+
import { EditorBaseContext, Handlers, HookIsActive } from '../context/provider';
|
|
4
|
+
export type WidgetExcelDatasourceHandlers = Handlers & {
|
|
5
|
+
jamespot: {
|
|
6
|
+
datasource: Omit<JDatasourceApi, 'jApi' | 'network'>;
|
|
7
|
+
network: Pick<Network, 'token' | 'postFile' | 'getUrl'>;
|
|
8
|
+
filebank: Pick<JFilebankApi, 'getBanks' | 'getFolders' | 'getDocuments'>;
|
|
9
|
+
wedoc: Pick<JWedocApi, 'getFiles'>;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export type WidgetExcelDatasourceContext = EditorBaseContext<WidgetExcelDatasourceTableContent> & {
|
|
13
|
+
handlers: WidgetExcelDatasourceHandlers;
|
|
14
|
+
};
|
|
15
|
+
export declare const JRCWidgetExcelDatasourceTableEditor: ({ uri, limit, tableHeadColor, tableHeadTextColor, tableHeadIconColor, tableRowColor, tableRowTextColor, tableColumnsData, tableSizedColumns, tableSizedColumnsWidth, tableBorderRadius, hook, handlers, onChange, onSave, onStateChange, onError, }: {
|
|
16
|
+
uri?: string | undefined;
|
|
17
|
+
limit?: number | boolean | undefined;
|
|
18
|
+
tableColumnsData?: {
|
|
19
|
+
name?: string | undefined;
|
|
20
|
+
label?: string | undefined;
|
|
21
|
+
isVisible?: boolean | undefined;
|
|
22
|
+
textEllipsis?: boolean | undefined;
|
|
23
|
+
dateFormat?: "time" | "date" | "date-time" | "date-time-sec" | "time-sec" | undefined;
|
|
24
|
+
numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
|
|
25
|
+
}[] | undefined;
|
|
26
|
+
tableHeadColor?: string | undefined;
|
|
27
|
+
tableHeadTextColor?: string | undefined;
|
|
28
|
+
tableHeadIconColor?: string | undefined;
|
|
29
|
+
tableRowColor?: string | undefined;
|
|
30
|
+
tableRowTextColor?: string | undefined;
|
|
31
|
+
tableBorderRadius?: number | undefined;
|
|
32
|
+
tableSizedColumns?: boolean | undefined;
|
|
33
|
+
tableSizedColumnsWidth?: number | undefined;
|
|
34
|
+
} & {
|
|
35
|
+
handlers: WidgetExcelDatasourceHandlers;
|
|
36
|
+
} & {
|
|
37
|
+
hook: {
|
|
38
|
+
isActive: HookIsActive;
|
|
39
|
+
};
|
|
40
|
+
} & WidgetEditorActions<{
|
|
41
|
+
uri?: string | undefined;
|
|
42
|
+
limit?: number | boolean | undefined;
|
|
43
|
+
tableColumnsData?: {
|
|
44
|
+
name?: string | undefined;
|
|
45
|
+
label?: string | undefined;
|
|
46
|
+
isVisible?: boolean | undefined;
|
|
47
|
+
textEllipsis?: boolean | undefined;
|
|
48
|
+
dateFormat?: "time" | "date" | "date-time" | "date-time-sec" | "time-sec" | undefined;
|
|
49
|
+
numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
|
|
50
|
+
}[] | undefined;
|
|
51
|
+
tableHeadColor?: string | undefined;
|
|
52
|
+
tableHeadTextColor?: string | undefined;
|
|
53
|
+
tableHeadIconColor?: string | undefined;
|
|
54
|
+
tableRowColor?: string | undefined;
|
|
55
|
+
tableRowTextColor?: string | undefined;
|
|
56
|
+
tableBorderRadius?: number | undefined;
|
|
57
|
+
tableSizedColumns?: boolean | undefined;
|
|
58
|
+
tableSizedColumnsWidth?: number | undefined;
|
|
59
|
+
}> & WidgetEditorErrorActions) => React.JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { WidgetDatasourceValues, WidgetTableColumn, WidgetTableContent } from 'jamespot-user-api';
|
|
2
|
+
import { WidgetDatasourceValues, WidgetTableColumn, WidgetTableColumnTypes, WidgetTableContent } from 'jamespot-user-api';
|
|
3
3
|
export type SortValues = 'ascending' | 'descending';
|
|
4
|
-
export declare const sort: (data: Record<string, WidgetDatasourceValues>[], sortBy: SortValues, name: string) => Record<string, WidgetDatasourceValues>[];
|
|
4
|
+
export declare const sort: (data: Record<string, WidgetDatasourceValues>[], sortBy: SortValues, name: string, colType: WidgetTableColumnTypes) => Record<string, WidgetDatasourceValues>[];
|
|
5
5
|
export declare function isASortableProperty(data: Record<string, WidgetDatasourceValues>[], name: string): boolean | "" | 0;
|
|
6
6
|
export type JRCWidgetTableProps = WidgetTableContent & {
|
|
7
7
|
columns: WidgetTableColumn[];
|
|
@@ -1,4 +1,31 @@
|
|
|
1
1
|
import { Meta, Story } from '@storybook/react';
|
|
2
|
+
import { WidgetTableColumn } from 'jamespot-user-api';
|
|
2
3
|
declare const _default: Meta<import("@storybook/react").Args>;
|
|
3
4
|
export default _default;
|
|
4
|
-
export declare const
|
|
5
|
+
export declare const getVisibleColumns: (tableColumnsData: {
|
|
6
|
+
name?: string | undefined;
|
|
7
|
+
label?: string | undefined;
|
|
8
|
+
isVisible?: boolean | undefined;
|
|
9
|
+
textEllipsis?: boolean | undefined;
|
|
10
|
+
dateFormat?: "time" | "date" | "date-time" | "date-time-sec" | "time-sec" | undefined;
|
|
11
|
+
numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
|
|
12
|
+
}[], columns: WidgetTableColumn[]) => {
|
|
13
|
+
type: "number" | "select" | "title" | "text" | "url" | "email" | "date" | "file" | "uri" | "datetime" | "transient";
|
|
14
|
+
name: string;
|
|
15
|
+
label: string;
|
|
16
|
+
widget: {} | {
|
|
17
|
+
type: "text";
|
|
18
|
+
} | {
|
|
19
|
+
options: {
|
|
20
|
+
value: string;
|
|
21
|
+
label: string;
|
|
22
|
+
}[];
|
|
23
|
+
type: "select";
|
|
24
|
+
} | {
|
|
25
|
+
type: "date";
|
|
26
|
+
};
|
|
27
|
+
sortable?: boolean | undefined;
|
|
28
|
+
}[];
|
|
29
|
+
export declare const WidgetTable: Story<import("@storybook/react").Args>;
|
|
30
|
+
export declare const WidgetDatasourceTableStudio: Story<import("@storybook/react").Args>;
|
|
31
|
+
export declare const WidgetExcelDatasourceTable: Story<import("@storybook/react").Args>;
|
|
@@ -13,7 +13,8 @@ export declare const CSSTableTr: import("styled-components").StyledComponent<"tr
|
|
|
13
13
|
background: string;
|
|
14
14
|
color: string;
|
|
15
15
|
}, never>;
|
|
16
|
-
export declare const CSSTableOverlay: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
16
|
+
export declare const CSSTableOverlay: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
17
|
+
export declare const CSSTableRadius: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
|
|
17
18
|
borderRadius: number;
|
|
18
19
|
}, never>;
|
|
19
20
|
export declare const CSSTableWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WidgetDatasourceTableContent, WidgetEditorActions } from 'jamespot-user-api';
|
|
3
|
+
export declare const JRCWidgetTableSharedEditor: ({ limit, tableHeadColor, tableHeadTextColor, tableHeadIconColor, tableRowColor, tableRowTextColor, tableBorderRadius, tableSizedColumns, tableSizedColumnsWidth, onChange, }: WidgetDatasourceTableContent & Pick<WidgetEditorActions<WidgetDatasourceTableContent>, 'onChange'>) => React.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { WidgetDatasourceValues, WidgetTableColumn, WidgetTableColumnTypes, WidgetTableColumnsData } from 'jamespot-user-api';
|
|
3
|
-
export declare const JRCWidgetTableTdRenderer: ({ value, name, type, backgroundColor, tableColumnsData, }: {
|
|
3
|
+
export declare const JRCWidgetTableTdRenderer: ({ value, name, type, backgroundColor, tableColumnsData, url, }: {
|
|
4
4
|
col: WidgetTableColumn;
|
|
5
5
|
type: WidgetTableColumnTypes;
|
|
6
6
|
name: string;
|
|
@@ -14,4 +14,5 @@ export declare const JRCWidgetTableTdRenderer: ({ value, name, type, backgroundC
|
|
|
14
14
|
}[];
|
|
15
15
|
backgroundColor: string;
|
|
16
16
|
value: WidgetDatasourceValues;
|
|
17
|
+
url?: string | undefined;
|
|
17
18
|
}) => React.JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WidgetDatasourceValues, WidgetTableColumnsData } from 'jamespot-user-api';
|
|
3
|
+
export declare const JRCWidgetTableTdRendererText: ({ value, name, backgroundColor, tableColumnsData, }: {
|
|
4
|
+
name: string;
|
|
5
|
+
tableColumnsData: {
|
|
6
|
+
name?: string | undefined;
|
|
7
|
+
label?: string | undefined;
|
|
8
|
+
isVisible?: boolean | undefined;
|
|
9
|
+
textEllipsis?: boolean | undefined;
|
|
10
|
+
dateFormat?: "time" | "date" | "date-time" | "date-time-sec" | "time-sec" | undefined;
|
|
11
|
+
numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
|
|
12
|
+
}[];
|
|
13
|
+
backgroundColor: string;
|
|
14
|
+
value: WidgetDatasourceValues;
|
|
15
|
+
}) => React.JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
export declare const ModalColumnLabelize: ({ title, onChange, onCloseHandler, }: {
|
|
2
|
+
export declare const ModalColumnLabelize: ({ title, initialValue, onChange, onCloseHandler, }: {
|
|
3
3
|
title: string;
|
|
4
|
+
initialValue?: string | undefined;
|
|
4
5
|
onChange: (label: string | undefined) => void;
|
|
5
6
|
onCloseHandler: () => void;
|
|
6
7
|
}) => React.JSX.Element;
|
package/build/src/components/Widgets/JRCWidgetTable/components/WidgetDatasourceModelView.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { WidgetTableColumn, WidgetTableColumnsData } from 'jamespot-user-api';
|
|
3
3
|
import { WidgetDatasourceTableContent } from 'jamespot-user-api';
|
|
4
|
-
export declare const WidgetDatasourceModelView: ({ model, tableColumnsData, onChange, }: {
|
|
4
|
+
export declare const WidgetDatasourceModelView: ({ model, excelHeaders, tableColumnsData, onChange, onUpdateModel, }: {
|
|
5
5
|
model: WidgetTableColumn[];
|
|
6
|
+
excelHeaders?: string[] | undefined;
|
|
6
7
|
tableColumnsData: {
|
|
7
8
|
name?: string | undefined;
|
|
8
9
|
label?: string | undefined;
|
|
@@ -12,4 +13,5 @@ export declare const WidgetDatasourceModelView: ({ model, tableColumnsData, onCh
|
|
|
12
13
|
numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
|
|
13
14
|
}[];
|
|
14
15
|
onChange: (content: Partial<WidgetDatasourceTableContent>, override?: boolean) => void;
|
|
16
|
+
onUpdateModel?: ((model: WidgetTableColumn[]) => void) | undefined;
|
|
15
17
|
}) => React.JSX.Element;
|
package/build/src/components/Widgets/JRCWidgetTable/components/WidgetDatasourceModelViewChanges.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WidgetTableColumn } from 'jamespot-user-api';
|
|
3
|
+
export declare const CSSAlert: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {}, never>;
|
|
4
|
+
export declare const CSSWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
5
|
+
export declare const CSSModel: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
6
|
+
export declare const WidgetDatasourceModelViewChanges: ({ model, excelHeaders, onChange, }: {
|
|
7
|
+
model: WidgetTableColumn[];
|
|
8
|
+
excelHeaders: string[] | undefined;
|
|
9
|
+
onChange: (model: WidgetTableColumn[]) => void;
|
|
10
|
+
}) => React.JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { WidgetTableColumnData, WidgetTableColumnsData, WidgetTableColumnTypes } from 'jamespot-user-api';
|
|
3
|
+
import { WidgetDatasourceTableContent } from 'jamespot-user-api';
|
|
4
|
+
export declare const WidgetDatasourceModelViewColumnAction: ({ type, tableColumnsData, item, handleEditLabel, onChange, }: {
|
|
5
|
+
type: WidgetTableColumnTypes;
|
|
6
|
+
tableColumnsData: {
|
|
7
|
+
name?: string | undefined;
|
|
8
|
+
label?: string | undefined;
|
|
9
|
+
isVisible?: boolean | undefined;
|
|
10
|
+
textEllipsis?: boolean | undefined;
|
|
11
|
+
dateFormat?: "time" | "date" | "date-time" | "date-time-sec" | "time-sec" | undefined;
|
|
12
|
+
numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
|
|
13
|
+
}[];
|
|
14
|
+
item: WidgetTableColumnData;
|
|
15
|
+
handleEditLabel: () => void;
|
|
16
|
+
onChange: (content: Partial<WidgetDatasourceTableContent>, override?: boolean) => void;
|
|
17
|
+
}) => React.JSX.Element;
|
|
@@ -4,8 +4,10 @@ export declare const SUPPORTED_ELLIPSIS_TYPE: string[];
|
|
|
4
4
|
export declare const SUPPORTED_LABELIZE_TYPE: string[];
|
|
5
5
|
export declare const SUPPORTED_DATE_FORMAT_TYPE: string[];
|
|
6
6
|
export declare const SUPPORTED_NUMBER_FORMAT_TYPE: string[];
|
|
7
|
+
export declare const SUPPORTED_MIMETYPES: string[];
|
|
7
8
|
export declare enum DATASOURCE_TYPE {
|
|
8
9
|
DOC = "doc",
|
|
9
10
|
STUDIO = "studio",
|
|
10
|
-
CALC = "calc"
|
|
11
|
+
CALC = "calc",
|
|
12
|
+
CALC_ATTACHMENT = "calc-attachment"
|
|
11
13
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { DatasourceModel, DatasourceType,
|
|
3
|
-
export declare const DocEditor: ({ uri, tableColumnsData, model, type,
|
|
2
|
+
import { DatasourceModel, DatasourceType, WidgetTableColumnsData } from 'jamespot-user-api';
|
|
3
|
+
export declare const DocEditor: ({ uri, tableColumnsData, model, type, }: {
|
|
4
4
|
uri?: string | undefined;
|
|
5
5
|
model?: DatasourceModel | undefined;
|
|
6
6
|
type?: DatasourceType | undefined;
|
|
@@ -12,23 +12,4 @@ export declare const DocEditor: ({ uri, tableColumnsData, model, type, onChange,
|
|
|
12
12
|
dateFormat?: "time" | "date" | "date-time" | "date-time-sec" | "time-sec" | undefined;
|
|
13
13
|
numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
|
|
14
14
|
}[];
|
|
15
|
-
}
|
|
16
|
-
uri?: string | undefined;
|
|
17
|
-
limit?: number | boolean | undefined;
|
|
18
|
-
tableColumnsData?: {
|
|
19
|
-
name?: string | undefined;
|
|
20
|
-
label?: string | undefined;
|
|
21
|
-
isVisible?: boolean | undefined;
|
|
22
|
-
textEllipsis?: boolean | undefined;
|
|
23
|
-
dateFormat?: "time" | "date" | "date-time" | "date-time-sec" | "time-sec" | undefined;
|
|
24
|
-
numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
|
|
25
|
-
}[] | undefined;
|
|
26
|
-
tableHeadColor?: string | undefined;
|
|
27
|
-
tableHeadTextColor?: string | undefined;
|
|
28
|
-
tableHeadIconColor?: string | undefined;
|
|
29
|
-
tableRowColor?: string | undefined;
|
|
30
|
-
tableRowTextColor?: string | undefined;
|
|
31
|
-
tableBorderRadius?: number | undefined;
|
|
32
|
-
tableSizedColumns?: boolean | undefined;
|
|
33
|
-
tableSizedColumnsWidth?: number | undefined;
|
|
34
|
-
}>, "onChange" | "onStateChange"> & WidgetEditorErrorActions) => React.JSX.Element;
|
|
15
|
+
}) => React.JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
export declare const DocEditorObject: ({ uri, onHandleRemove, onError, }: {
|
|
2
|
+
export declare const DocEditorObject: ({ uri, onHandleRemove }: {
|
|
4
3
|
uri: string;
|
|
5
4
|
onHandleRemove: () => void;
|
|
6
|
-
}
|
|
5
|
+
}) => React.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export declare const ExcelEditor: ({ uri, tableColumnsData
|
|
2
|
+
import { WidgetTableColumnsData } from 'jamespot-user-api';
|
|
3
|
+
export declare const ExcelEditor: ({ uri, tableColumnsData }: {
|
|
4
4
|
uri?: string | undefined;
|
|
5
5
|
tableColumnsData: {
|
|
6
6
|
name?: string | undefined;
|
|
@@ -10,23 +10,4 @@ export declare const ExcelEditor: ({ uri, tableColumnsData, onChange, onError, o
|
|
|
10
10
|
dateFormat?: "time" | "date" | "date-time" | "date-time-sec" | "time-sec" | undefined;
|
|
11
11
|
numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
|
|
12
12
|
}[];
|
|
13
|
-
}
|
|
14
|
-
uri?: string | undefined;
|
|
15
|
-
limit?: number | boolean | undefined;
|
|
16
|
-
tableColumnsData?: {
|
|
17
|
-
name?: string | undefined;
|
|
18
|
-
label?: string | undefined;
|
|
19
|
-
isVisible?: boolean | undefined;
|
|
20
|
-
textEllipsis?: boolean | undefined;
|
|
21
|
-
dateFormat?: "time" | "date" | "date-time" | "date-time-sec" | "time-sec" | undefined;
|
|
22
|
-
numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
|
|
23
|
-
}[] | undefined;
|
|
24
|
-
tableHeadColor?: string | undefined;
|
|
25
|
-
tableHeadTextColor?: string | undefined;
|
|
26
|
-
tableHeadIconColor?: string | undefined;
|
|
27
|
-
tableRowColor?: string | undefined;
|
|
28
|
-
tableRowTextColor?: string | undefined;
|
|
29
|
-
tableBorderRadius?: number | undefined;
|
|
30
|
-
tableSizedColumns?: boolean | undefined;
|
|
31
|
-
tableSizedColumnsWidth?: number | undefined;
|
|
32
|
-
}>, "onChange" | "onStateChange">) => React.JSX.Element;
|
|
13
|
+
}) => React.JSX.Element;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const CSSAlert: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {}, never>;
|
|
3
|
+
export declare const CSSWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
4
|
+
export declare const ExcelEditorBrokenModel: () => React.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { DatasourceModel,
|
|
3
|
-
export declare const ExcelEditorModel: ({ uri, tableColumnsData, model,
|
|
2
|
+
import { DatasourceModel, WidgetTableColumnsData } from 'jamespot-user-api';
|
|
3
|
+
export declare const ExcelEditorModel: ({ uri, tableColumnsData, model, }: {
|
|
4
4
|
uri: string;
|
|
5
5
|
tableColumnsData: {
|
|
6
6
|
name?: string | undefined;
|
|
@@ -11,23 +11,4 @@ export declare const ExcelEditorModel: ({ uri, tableColumnsData, model, onChange
|
|
|
11
11
|
numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
|
|
12
12
|
}[];
|
|
13
13
|
model: DatasourceModel;
|
|
14
|
-
}
|
|
15
|
-
uri?: string | undefined;
|
|
16
|
-
limit?: number | boolean | undefined;
|
|
17
|
-
tableColumnsData?: {
|
|
18
|
-
name?: string | undefined;
|
|
19
|
-
label?: string | undefined;
|
|
20
|
-
isVisible?: boolean | undefined;
|
|
21
|
-
textEllipsis?: boolean | undefined;
|
|
22
|
-
dateFormat?: "time" | "date" | "date-time" | "date-time-sec" | "time-sec" | undefined;
|
|
23
|
-
numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
|
|
24
|
-
}[] | undefined;
|
|
25
|
-
tableHeadColor?: string | undefined;
|
|
26
|
-
tableHeadTextColor?: string | undefined;
|
|
27
|
-
tableHeadIconColor?: string | undefined;
|
|
28
|
-
tableRowColor?: string | undefined;
|
|
29
|
-
tableRowTextColor?: string | undefined;
|
|
30
|
-
tableBorderRadius?: number | undefined;
|
|
31
|
-
tableSizedColumns?: boolean | undefined;
|
|
32
|
-
tableSizedColumnsWidth?: number | undefined;
|
|
33
|
-
}>, "onChange" | "onStateChange"> & WidgetEditorErrorActions) => React.JSX.Element;
|
|
14
|
+
}) => React.JSX.Element;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
export declare const ExcelEditorObject: ({ uri, onHandleDatasource, onError, onHandleRemove, }: {
|
|
2
|
+
export declare const ExcelEditorObject: ({ uri, onHandleCancel }: {
|
|
4
3
|
uri: string;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} & WidgetEditorErrorActions) => React.JSX.Element;
|
|
4
|
+
onHandleCancel: () => void;
|
|
5
|
+
}) => React.JSX.Element;
|
package/build/src/components/Widgets/JRCWidgetTable/model/excel/ExcelEditorSpreadSheets.d.ts
CHANGED
|
@@ -1,25 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
export declare const ExcelEditorSpreadSheets: ({ uri, onChange, onCancel, onError, onStateChange, }: {
|
|
2
|
+
export declare const ExcelEditorSpreadSheets: ({ uri, onHandleCancel }: {
|
|
4
3
|
uri: string;
|
|
5
|
-
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
limit?: number | boolean | undefined;
|
|
9
|
-
tableColumnsData?: {
|
|
10
|
-
name?: string | undefined;
|
|
11
|
-
label?: string | undefined;
|
|
12
|
-
isVisible?: boolean | undefined;
|
|
13
|
-
textEllipsis?: boolean | undefined;
|
|
14
|
-
dateFormat?: "time" | "date" | "date-time" | "date-time-sec" | "time-sec" | undefined;
|
|
15
|
-
numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
|
|
16
|
-
}[] | undefined;
|
|
17
|
-
tableHeadColor?: string | undefined;
|
|
18
|
-
tableHeadTextColor?: string | undefined;
|
|
19
|
-
tableHeadIconColor?: string | undefined;
|
|
20
|
-
tableRowColor?: string | undefined;
|
|
21
|
-
tableRowTextColor?: string | undefined;
|
|
22
|
-
tableBorderRadius?: number | undefined;
|
|
23
|
-
tableSizedColumns?: boolean | undefined;
|
|
24
|
-
tableSizedColumnsWidth?: number | undefined;
|
|
25
|
-
}>, "onChange" | "onStateChange">) => React.JSX.Element;
|
|
4
|
+
onHandleCancel: () => void;
|
|
5
|
+
}) => React.JSX.Element;
|
|
6
|
+
export declare function isValidSpreadsheet(spreadsheet: string, spreadsheetListHeader: Record<string, string[]>): boolean;
|
|
@@ -1,25 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
export declare const ExcelEditorUploader: ({ token, onCreateSuccess, onError, onStateChange, }: {
|
|
2
|
+
export declare const ExcelEditorUploader: ({ token, onCreateSuccess, }: {
|
|
4
3
|
token: string;
|
|
5
4
|
onCreateSuccess: (uri: string) => void;
|
|
6
|
-
}
|
|
7
|
-
uri?: string | undefined;
|
|
8
|
-
limit?: number | boolean | undefined;
|
|
9
|
-
tableColumnsData?: {
|
|
10
|
-
name?: string | undefined;
|
|
11
|
-
label?: string | undefined;
|
|
12
|
-
isVisible?: boolean | undefined;
|
|
13
|
-
textEllipsis?: boolean | undefined;
|
|
14
|
-
dateFormat?: "time" | "date" | "date-time" | "date-time-sec" | "time-sec" | undefined;
|
|
15
|
-
numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
|
|
16
|
-
}[] | undefined;
|
|
17
|
-
tableHeadColor?: string | undefined;
|
|
18
|
-
tableHeadTextColor?: string | undefined;
|
|
19
|
-
tableHeadIconColor?: string | undefined;
|
|
20
|
-
tableRowColor?: string | undefined;
|
|
21
|
-
tableRowTextColor?: string | undefined;
|
|
22
|
-
tableBorderRadius?: number | undefined;
|
|
23
|
-
tableSizedColumns?: boolean | undefined;
|
|
24
|
-
tableSizedColumnsWidth?: number | undefined;
|
|
25
|
-
}>, "onStateChange">) => React.JSX.Element;
|
|
5
|
+
}) => React.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { DatasourceModel, DatasourceType,
|
|
3
|
-
export declare const StudioEditor: ({ uri, tableColumnsData, model, type,
|
|
2
|
+
import { DatasourceModel, DatasourceType, WidgetTableColumnsData } from 'jamespot-user-api';
|
|
3
|
+
export declare const StudioEditor: ({ uri, tableColumnsData, model, type, }: {
|
|
4
4
|
uri?: string | undefined;
|
|
5
5
|
model?: DatasourceModel | undefined;
|
|
6
6
|
type?: DatasourceType | undefined;
|
|
@@ -12,23 +12,4 @@ export declare const StudioEditor: ({ uri, tableColumnsData, model, type, onChan
|
|
|
12
12
|
dateFormat?: "time" | "date" | "date-time" | "date-time-sec" | "time-sec" | undefined;
|
|
13
13
|
numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
|
|
14
14
|
}[];
|
|
15
|
-
}
|
|
16
|
-
uri?: string | undefined;
|
|
17
|
-
limit?: number | boolean | undefined;
|
|
18
|
-
tableColumnsData?: {
|
|
19
|
-
name?: string | undefined;
|
|
20
|
-
label?: string | undefined;
|
|
21
|
-
isVisible?: boolean | undefined;
|
|
22
|
-
textEllipsis?: boolean | undefined;
|
|
23
|
-
dateFormat?: "time" | "date" | "date-time" | "date-time-sec" | "time-sec" | undefined;
|
|
24
|
-
numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
|
|
25
|
-
}[] | undefined;
|
|
26
|
-
tableHeadColor?: string | undefined;
|
|
27
|
-
tableHeadTextColor?: string | undefined;
|
|
28
|
-
tableHeadIconColor?: string | undefined;
|
|
29
|
-
tableRowColor?: string | undefined;
|
|
30
|
-
tableRowTextColor?: string | undefined;
|
|
31
|
-
tableBorderRadius?: number | undefined;
|
|
32
|
-
tableSizedColumns?: boolean | undefined;
|
|
33
|
-
tableSizedColumnsWidth?: number | undefined;
|
|
34
|
-
}>, "onChange" | "onStateChange"> & WidgetEditorErrorActions) => React.JSX.Element;
|
|
15
|
+
}) => React.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { StudioApplicationBase, StudioApplicationStatusEnumBased, WidgetEditorErrorActions } from 'jamespot-user-api';
|
|
3
|
-
export declare const StudioEditorApp: ({ idApp, status, onHandleSelection,
|
|
3
|
+
export declare const StudioEditorApp: ({ idApp, status, onHandleSelection, }: {
|
|
4
4
|
idApp: string;
|
|
5
5
|
status: StudioApplicationStatusEnumBased;
|
|
6
6
|
onHandleSelection: (app: StudioApplicationBase) => void;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
export declare const StudioEditorFetch: ({ onChange, onStateChange, onError, }: Pick<WidgetEditorActions<WidgetDatasourceTableContent>, 'onChange' | 'onStateChange'> & WidgetEditorErrorActions) => React.JSX.Element;
|
|
2
|
+
export declare const StudioEditorFetch: () => React.JSX.Element;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
|
-
export declare const StudioEditorObject: ({ uri, onHandleRemove, onError, }: {
|
|
2
|
+
export declare const StudioEditorObject: ({ uri, onHandleRemove }: {
|
|
4
3
|
uri: string;
|
|
5
4
|
onHandleRemove: () => void;
|
|
6
|
-
}
|
|
5
|
+
}) => React.JSX.Element;
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
export declare function getPagination(total: number, limit: number): number[];
|
|
2
|
-
export declare function filterPagination(pagination: number[], page: number, range: number): number[];
|
|
3
1
|
export declare const paginate: <T extends {}[] = {}[]>(data: T, page: number, limit: number) => T[number][];
|