jamespot-react-core 1.1.151 → 1.1.153

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,5 @@
1
+ import React from 'react';
2
+ export declare const EditorPosition: ({ uniqid, position }: {
3
+ uniqid: string;
4
+ position: 'left' | 'right';
5
+ }) => React.JSX.Element;
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ export declare const EditorIsBusy: ({ uniqid }: {
3
+ uniqid: string;
4
+ }) => React.JSX.Element;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ export declare const EditorIsInitialize: ({ uniqid, children }: {
3
+ uniqid: string;
4
+ children: React.ReactElement;
5
+ }) => React.JSX.Element;
@@ -8,10 +8,10 @@ export declare const CSSEditorAction: import("styled-components").StyledComponen
8
8
  export declare const CSSEditorLabel: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
9
9
  export declare const CSSEditorMask: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
10
10
  export declare const CSSEditor: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
11
- visible: boolean;
12
11
  position: 'left' | 'right';
13
12
  }, never>;
14
13
  export declare const CSSEditorContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
14
+ export declare const CSSEditorIsBusy: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
15
15
  export declare const CSSEditorMenu: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
16
16
  export declare const CSSEditorMenuButton: import("styled-components").StyledComponent<"button", import("styled-components").DefaultTheme, {
17
17
  isActive?: boolean | undefined;
@@ -6,6 +6,6 @@ export declare const WidgetList: ({ mode, view, children, namespace, onChange, }
6
6
  view?: string | undefined;
7
7
  children?: any;
8
8
  namespace?: string | undefined;
9
- onChange: (widget: any) => void;
9
+ onChange: (widget: WidgetWrapperProps) => void;
10
10
  }) => React.JSX.Element;
11
11
  export {};
@@ -0,0 +1,28 @@
1
+ import React from 'react';
2
+ import { WidgetDisplayMode, WidgetExcelDatasourceTableContent } from 'jamespot-user-api';
3
+ export declare const Wrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
4
+ export declare const AbsoluteWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
5
+ export declare const WrapperEditMode: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
6
+ export declare const WidgetExcelDatasourceTableWrapper: ({ uniqid, uri, limit, tableHeadColor, tableHeadTextColor, tableHeadIconColor, tableRowColor, tableRowTextColor, tableColumnsData, tableBorderRadius, tableSizedColumns, tableSizedColumnsWidth, mode, }: {
7
+ limit?: number | undefined;
8
+ tableColumnsData?: {
9
+ name?: string | undefined;
10
+ isVisible?: boolean | undefined;
11
+ textEllipsis?: boolean | undefined;
12
+ label?: string | undefined;
13
+ dateFormat?: "time" | "date" | "date-time" | "date-time-sec" | "time-sec" | undefined;
14
+ numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
15
+ }[] | undefined;
16
+ tableHeadColor?: string | undefined;
17
+ tableHeadTextColor?: string | undefined;
18
+ tableHeadIconColor?: string | undefined;
19
+ tableRowColor?: string | undefined;
20
+ tableRowTextColor?: string | undefined;
21
+ tableBorderRadius?: number | undefined;
22
+ tableSizedColumns?: boolean | undefined;
23
+ tableSizedColumnsWidth?: number | undefined;
24
+ uri?: string | undefined;
25
+ } & {
26
+ uniqid: string;
27
+ mode: WidgetDisplayMode;
28
+ }) => React.JSX.Element;
@@ -7,10 +7,30 @@ export declare const getVisibleColumns: (tableColumnsData: {
7
7
  dateFormat?: "time" | "date" | "date-time" | "date-time-sec" | "time-sec" | undefined;
8
8
  numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
9
9
  }[], columns: WidgetTableColumn[]) => {
10
- type: "number" | "uri" | "title" | "select" | "text" | "url" | "date" | "file" | "email" | "transient";
10
+ type: "number" | "uri" | "title" | "select" | "text" | "date" | "url" | "file" | "datetime" | "email" | "transient";
11
11
  name: string;
12
12
  label: string;
13
- widget: {
13
+ widget: {} | {
14
+ type: "text";
15
+ } | {
16
+ options: {
17
+ value: string;
18
+ label: string;
19
+ }[];
20
+ type: "select";
21
+ } | {
22
+ type: "date";
23
+ } | {
24
+ type: "text";
25
+ } | {
26
+ options: {
27
+ value: string;
28
+ label: string;
29
+ }[];
30
+ type: "select";
31
+ } | {
32
+ type: "date";
33
+ } | {
14
34
  type: "text";
15
35
  } | {
16
36
  options: {
@@ -1,2 +1,3 @@
1
1
  import useWindowDimension from './useWindowDimension';
2
- export { useWindowDimension };
2
+ import useAbortController from './useAbortController';
3
+ export { useWindowDimension, useAbortController };
@@ -0,0 +1,2 @@
1
+ declare const useAbortController: () => AbortController;
2
+ export default useAbortController;
@@ -154,6 +154,7 @@ declare const _default: {
154
154
  readonly WidgetTable: "JRCWidgetTable";
155
155
  readonly WidgetTableEditor: "JRCWidgetTableEditor";
156
156
  readonly WidgetDatasourceTableEditor: "JRCWidgetDatasourceTableEditor";
157
+ readonly WidgetExcelDatasourceTableEditor: "JRCWidgetExcelDatasourceTableEditor";
157
158
  readonly WidgetSlider: "JRCWidgetSlider";
158
159
  readonly WidgetEmptyInplace: "JRCWidgetEmptyInplace";
159
160
  readonly WidgetCheckList: "JRCWidgetCheckList";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-react-core",
3
- "version": "1.1.151",
3
+ "version": "1.1.153",
4
4
  "description": "Jamespot React Core",
5
5
  "main": "./build/app.bundle.js",
6
6
  "types": "./build/src/App.d.ts",
@@ -54,9 +54,9 @@
54
54
  "dependencies": {
55
55
  "@reduxjs/toolkit": "^1.9.0",
56
56
  "history": "^5.3.0",
57
- "jamespot-front-business": "^1.1.55",
58
- "jamespot-react-components": "^1.0.196",
59
- "jamespot-user-api": "^1.0.168",
57
+ "jamespot-front-business": "^1.1.57",
58
+ "jamespot-react-components": "^1.0.198",
59
+ "jamespot-user-api": "^1.0.171",
60
60
  "react": "^17.0.2",
61
61
  "react-dom": "^17.0.2",
62
62
  "react-hook-form": "^7.25.0",