jamespot-react-components 1.0.197 → 1.0.199

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.
Files changed (38) hide show
  1. package/build/jamespot-react-components.js +281 -259
  2. package/build/jamespot-react-components.js.map +1 -1
  3. package/build/src/components/Beta/BETA_JRCDragAndDrop/BETA_JRCDragAndDrop.d.ts +2 -2
  4. package/build/src/components/Editors/components/EditorUploader.d.ts +2 -1
  5. package/build/src/components/Widgets/JRCWidgetArticleGallery/JRCWidgetArticleGallery.d.ts +1 -17
  6. package/build/src/components/Widgets/JRCWidgetArticleGallery/JRCWidgetArticleGallery.stories.d.ts +2 -17
  7. package/build/src/components/Widgets/JRCWidgetArticleText/JRCWidgetArticleText.stories.d.ts +76 -2350
  8. package/build/src/components/Widgets/JRCWidgetArticleTitle/JRCWidgetArticleTitle.d.ts +1 -7
  9. package/build/src/components/Widgets/JRCWidgetButton/JRCWidgetButtonEditor.d.ts +2 -22
  10. package/build/src/components/Widgets/JRCWidgetSlider/JRCWidgetArticleSliderEditor.d.ts +1 -27
  11. package/build/src/components/Widgets/JRCWidgetTable/JRCWidgetDatasourceTableEditor.d.ts +1 -1
  12. package/build/src/components/Widgets/JRCWidgetTable/JRCWidgetDatasourceTableEditor.styles.d.ts +2 -0
  13. package/build/src/components/Widgets/JRCWidgetTable/JRCWidgetExcelDatasourceTableEditor.d.ts +3 -0
  14. package/build/src/components/Widgets/JRCWidgetTable/JRCWidgetTable.d.ts +10 -3
  15. package/build/src/components/Widgets/JRCWidgetTable/JRCWidgetTable.styles.d.ts +3 -0
  16. package/build/src/components/Widgets/JRCWidgetTable/JRCWidgetTableEditor.d.ts +24 -4
  17. package/build/src/components/Widgets/JRCWidgetTable/components/{ModelColumnDateFormat.d.ts → ModalColumnDateFormat.d.ts} +3 -2
  18. package/build/src/components/Widgets/JRCWidgetTable/components/ModalColumnLabelize.d.ts +6 -0
  19. package/build/src/components/Widgets/JRCWidgetTable/components/{WidgetDatasourceModelEditor.d.ts → WidgetDatasourceModelView.d.ts} +4 -4
  20. package/build/src/components/Widgets/JRCWidgetTable/components/WidgetDatasourceModelViewColumn.d.ts +7 -0
  21. package/build/src/components/Widgets/JRCWidgetTable/const.d.ts +6 -0
  22. package/build/src/components/Widgets/JRCWidgetTable/model/doc/DocEditor.d.ts +34 -0
  23. package/build/src/components/Widgets/JRCWidgetTable/{components/WidgetDatasourceFetchStudio.d.ts → model/doc/DocEditorObject.d.ts} +3 -3
  24. package/build/src/components/Widgets/JRCWidgetTable/model/excel/ExcelEditor.d.ts +32 -0
  25. package/build/src/components/Widgets/JRCWidgetTable/model/excel/ExcelEditorModel.d.ts +33 -0
  26. package/build/src/components/Widgets/JRCWidgetTable/model/excel/ExcelEditorModelColumn.d.ts +6 -0
  27. package/build/src/components/Widgets/JRCWidgetTable/model/excel/ExcelEditorObject.d.ts +7 -0
  28. package/build/src/components/Widgets/JRCWidgetTable/model/excel/ExcelEditorSpreadSheets.d.ts +25 -0
  29. package/build/src/components/Widgets/JRCWidgetTable/model/excel/ExcelEditorUploader.d.ts +25 -0
  30. package/build/src/components/Widgets/JRCWidgetTable/model/studio/StudioEditor.d.ts +34 -0
  31. package/build/src/components/Widgets/JRCWidgetTable/{components/WidgetDatasourceFetchStudioApp.d.ts → model/studio/StudioEditorApp.d.ts} +1 -1
  32. package/build/src/components/Widgets/JRCWidgetTable/model/studio/StudioEditorFetch.d.ts +3 -0
  33. package/build/src/components/Widgets/JRCWidgetTable/{components/WidgetDatasourceFetchFolders.d.ts → model/studio/StudioEditorObject.d.ts} +3 -3
  34. package/build/src/index.d.ts +1 -0
  35. package/package.json +2 -2
  36. package/build/src/components/Widgets/JRCWidgetTable/components/ModelColumnLabelize.d.ts +0 -5
  37. package/build/src/components/Widgets/JRCWidgetTable/components/ModelColumnNumberFormat.d.ts +0 -6
  38. package/build/src/components/Widgets/JRCWidgetTable/components/WidgetDatasourceModelColumn.d.ts +0 -12
@@ -1,12 +1,6 @@
1
1
  import React from 'react';
2
2
  import { WidgetArticleTitleContent, WidgetDisplayMode } from 'jamespot-user-api';
3
- export declare const JRCWidgetArticleTitle: ({ text, color, heading, autoFocus, inplace, mode, onChange, }: {
4
- text?: string | undefined;
5
- textAlign?: "center" | "left" | "right" | "justify" | undefined;
6
- heading?: string | undefined;
7
- color?: string | undefined;
8
- backgroundColor?: string | undefined;
9
- } & {
3
+ export declare const JRCWidgetArticleTitle: ({ text, color, heading, autoFocus, inplace, mode, onChange, }: WidgetArticleTitleContent & {
10
4
  autoFocus: boolean;
11
5
  inplace: boolean;
12
6
  mode?: "view" | "preview" | "edit" | undefined;
@@ -3,28 +3,8 @@ import { WidgetButtonProps } from 'jamespot-user-api';
3
3
  /**
4
4
  * Default widget button editor
5
5
  */
6
- export declare const JRCWidgetButtonEditor: <T extends {}>({ text, color, backgroundColor, borderRadius, variant, buttonSize, url, target, onChange, onSave, extendProperties, }: {
7
- text?: string | undefined;
8
- color?: string | undefined;
9
- backgroundColor?: string | undefined;
10
- borderRadius?: string | undefined;
11
- fontSize?: string | undefined;
12
- buttonSize?: "sm" | "md" | "lg" | undefined;
13
- variant?: "contained" | "outlined" | undefined;
14
- url?: string | undefined;
15
- target?: string | undefined;
16
- } & T & {
6
+ export declare const JRCWidgetButtonEditor: <T extends {}>({ text, color, backgroundColor, borderRadius, variant, buttonSize, url, target, onChange, onSave, extendProperties, }: WidgetButtonProps & T & {
17
7
  onChange: (content: Partial<WidgetButtonProps>) => void;
18
8
  onSave: (content?: Partial<WidgetButtonProps>) => void;
19
- extendProperties?: ((onChange: (content: Partial<{
20
- text?: string | undefined;
21
- color?: string | undefined;
22
- backgroundColor?: string | undefined;
23
- borderRadius?: string | undefined;
24
- fontSize?: string | undefined;
25
- buttonSize?: "sm" | "md" | "lg" | undefined;
26
- variant?: "contained" | "outlined" | undefined;
27
- url?: string | undefined;
28
- target?: string | undefined;
29
- } & T>) => void) => React.ReactNode) | undefined;
9
+ extendProperties?: ((onChange: (content: Partial<WidgetButtonProps & T>) => void) => React.ReactNode) | undefined;
30
10
  }) => React.JSX.Element;
@@ -5,33 +5,7 @@ export declare const CSSSlide: import("styled-components").StyledComponent<"div"
5
5
  export declare const CSSSlideTitle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
6
6
  export declare const CSSScroll: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
7
7
  export declare const CSSFlexColumn: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
8
- export declare const JRCWidgetArticleSliderEditor: ({ slides, loop, useDots, token, onChange, onSave, }: {
9
- slides?: {
10
- title: string;
11
- text: string;
12
- titleHeading?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span" | undefined;
13
- textColor?: string | undefined;
14
- opacityFilter?: number | undefined;
15
- opacityColor?: string | undefined;
16
- file?: {
17
- type: string;
18
- id: number;
19
- mainType: string;
20
- uri: string;
21
- dateCreation: string;
22
- dateModified: string | null;
23
- title: string;
24
- _url: string;
25
- mimetype: string;
26
- size: number;
27
- path?: string | undefined;
28
- } | undefined;
29
- }[] | undefined;
30
- maxWidth?: number | undefined;
31
- loop?: boolean | undefined;
32
- useDots?: boolean | undefined;
33
- startAt?: number | undefined;
34
- } & {
8
+ export declare const JRCWidgetArticleSliderEditor: ({ slides, loop, useDots, token, onChange, onSave, }: WidgetArticleSliderContent & {
35
9
  token: string;
36
10
  onSave: (content: Partial<WidgetArticleSliderContent>) => void;
37
11
  onChange: (content: Partial<WidgetArticleSliderContent>, override?: boolean) => void;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { WidgetDatasourceTableContent, WidgetEditorActions, WidgetEditorErrorActions } from 'jamespot-user-api';
3
- export declare const JRCWidgetDatasourceTableEditor: ({ uri, limit, tableHeadColor, tableHeadTextColor, tableHeadIconColor, tableRowColor, tableRowTextColor, tableColumnsData, tableBorderRadius, tableSizedColumns, tableSizedColumnsWidth, editorAppDependencies, onChange, onSave, onError, }: {
3
+ export declare const JRCWidgetDatasourceTableEditor: ({ uri, limit, tableHeadColor, tableHeadTextColor, tableHeadIconColor, tableRowColor, tableRowTextColor, tableColumnsData, tableBorderRadius, tableSizedColumns, tableSizedColumnsWidth, editorAppDependencies, onChange, onSave, onStateChange, onError, }: {
4
4
  limit?: number | undefined;
5
5
  tableColumnsData?: {
6
6
  name?: string | undefined;
@@ -1,9 +1,11 @@
1
1
  export declare const CSSItemWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
2
2
  export declare const CSSItem: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
3
3
  export declare const CSSItemLabel: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
4
+ export declare const CSSItemLabelWithEllipsis: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
4
5
  export declare const CSSItemIcon: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
5
6
  backgroundColor: string;
6
7
  }, never>;
8
+ export declare const CSSListBorderBottom: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
7
9
  export declare const CSSListItem: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
8
10
  isActive?: boolean | undefined;
9
11
  }, never>;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { WidgetEditorActions, WidgetEditorErrorActions, WidgetExcelDatasourceTableContent } from 'jamespot-user-api';
3
+ export declare const JRCWidgetExcelDatasourceTableEditor: ({ uri, limit, tableHeadColor, tableHeadTextColor, tableHeadIconColor, tableRowColor, tableRowTextColor, tableColumnsData, tableSizedColumns, tableSizedColumnsWidth, onChange, onSave, onStateChange, onError, }: WidgetExcelDatasourceTableContent & WidgetEditorActions<WidgetExcelDatasourceTableContent> & WidgetEditorErrorActions) => React.JSX.Element;
@@ -1,12 +1,19 @@
1
1
  import React from 'react';
2
2
  import { WidgetDatasourceValues, WidgetTableColumn, WidgetTableContent } from 'jamespot-user-api';
3
- export declare const sort: (data: Record<string, WidgetDatasourceValues>[], sortBy: string, name: string) => Record<string, WidgetDatasourceValues>[];
3
+ export type SortValues = 'ascending' | 'descending';
4
+ export declare const sort: (data: Record<string, WidgetDatasourceValues>[], sortBy: SortValues, name: string) => Record<string, WidgetDatasourceValues>[];
4
5
  export declare function isASortableProperty(data: Record<string, WidgetDatasourceValues>[], name: string): boolean | "" | 0;
5
6
  export type JRCWidgetTableProps = WidgetTableContent & {
6
7
  columns: WidgetTableColumn[];
7
8
  rows: Record<string, WidgetDatasourceValues>[];
8
- tableDefaultSortValue?: 'asc' | 'desc';
9
+ tableDefaultSortOrder?: SortValues;
10
+ tableDefaultSortName?: string;
9
11
  initialPage?: number;
10
- initialSortValue?: string;
11
12
  };
12
13
  export declare const JRCWidgetTable: (args: JRCWidgetTableProps) => React.JSX.Element;
14
+ export declare const TableTh: ({ children, ariaSort, width, onClick, }: {
15
+ children: React.ReactNode;
16
+ ariaSort: 'none' | 'ascending' | 'descending' | 'other' | undefined;
17
+ width?: number | undefined;
18
+ onClick: () => void;
19
+ }) => React.JSX.Element;
@@ -4,6 +4,9 @@ export declare const CSSTableBody: import("styled-components").StyledComponent<"
4
4
  export declare const CSSTableTd: import("styled-components").StyledComponent<"td", import("styled-components").DefaultTheme, {
5
5
  width?: number | undefined;
6
6
  }, never>;
7
+ export declare const CSSTableTh: import("styled-components").StyledComponent<"th", import("styled-components").DefaultTheme, {
8
+ width?: number | undefined;
9
+ }, never>;
7
10
  export declare const CSSTableHeadTdContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
8
11
  export declare const CSSTableTdContent: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
9
12
  export declare const CSSTableTr: import("styled-components").StyledComponent<"tr", import("styled-components").DefaultTheme, {
@@ -20,10 +20,30 @@ export declare const JRCWidgetTableEditor: ({ limit, tableHeadColor, tableHeadTe
20
20
  tableSizedColumnsWidth?: number | undefined;
21
21
  } & {
22
22
  columns: {
23
- type: "number" | "select" | "title" | "text" | "url" | "email" | "date" | "file" | "uri" | "transient";
23
+ type: "number" | "select" | "title" | "text" | "url" | "email" | "date" | "file" | "uri" | "datetime" | "transient";
24
24
  name: string;
25
25
  label: string;
26
- widget: {
26
+ widget: {} | {
27
+ type: "text";
28
+ } | {
29
+ options: {
30
+ value: string;
31
+ label: string;
32
+ }[];
33
+ type: "select";
34
+ } | {
35
+ type: "date";
36
+ } | {
37
+ type: "text";
38
+ } | {
39
+ options: {
40
+ value: string;
41
+ label: string;
42
+ }[];
43
+ type: "select";
44
+ } | {
45
+ type: "date";
46
+ } | {
27
47
  type: "text";
28
48
  } | {
29
49
  options: {
@@ -37,9 +57,9 @@ export declare const JRCWidgetTableEditor: ({ limit, tableHeadColor, tableHeadTe
37
57
  sortable?: boolean | undefined;
38
58
  }[];
39
59
  rows: Record<string, import("jamespot-user-api").WidgetDatasourceValues>[];
40
- tableDefaultSortValue?: "desc" | "asc" | undefined;
60
+ tableDefaultSortOrder?: import("./JRCWidgetTable").SortValues | undefined;
61
+ tableDefaultSortName?: string | undefined;
41
62
  initialPage?: number | undefined;
42
- initialSortValue?: string | undefined;
43
63
  } & {
44
64
  onChange: (content: Partial<JRCWidgetTableProps>) => void;
45
65
  }) => React.JSX.Element;
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import { DateFormat } from 'utils/utils.date';
3
- export declare const ModelColumnDateFormat: ({ initialFormat, onChange, }: {
4
- initialFormat?: DateFormat | undefined;
3
+ export declare const ModalColumnDateFormat: ({ title, onChange, onCloseHandler, }: {
4
+ title: string;
5
5
  onChange: (format: DateFormat | undefined) => void;
6
+ onCloseHandler: () => void;
6
7
  }) => React.JSX.Element;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export declare const ModalColumnLabelize: ({ title, onChange, onCloseHandler, }: {
3
+ title: string;
4
+ onChange: (label: string | undefined) => void;
5
+ onCloseHandler: () => void;
6
+ }) => React.JSX.Element;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- import { WidgetEditorErrorActions, WidgetTableColumnsData } from 'jamespot-user-api';
2
+ import { WidgetTableColumn, WidgetTableColumnsData } from 'jamespot-user-api';
3
3
  import { WidgetDatasourceTableContent } from 'jamespot-user-api';
4
- export declare const WidgetDatasourceModelEditor: ({ uri, tableColumnsData, onChange, onError, }: {
5
- uri: string;
4
+ export declare const WidgetDatasourceModelView: ({ model, tableColumnsData, onChange, }: {
5
+ model: WidgetTableColumn[];
6
6
  tableColumnsData: {
7
7
  name?: string | undefined;
8
8
  isVisible?: boolean | undefined;
@@ -12,4 +12,4 @@ export declare const WidgetDatasourceModelEditor: ({ uri, tableColumnsData, onCh
12
12
  numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
13
13
  }[];
14
14
  onChange: (content: Partial<WidgetDatasourceTableContent>, override?: boolean) => void;
15
- } & WidgetEditorErrorActions) => React.JSX.Element;
15
+ }) => React.JSX.Element;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ export declare const WidgetDatasourceModelViewColumn: ({ label, isVisible, isActive, onChange, }: {
3
+ label: string;
4
+ isVisible?: boolean | undefined;
5
+ isActive?: boolean | undefined;
6
+ onChange: (isVisible: boolean) => void;
7
+ }) => React.JSX.Element;
@@ -1,5 +1,11 @@
1
1
  export declare const SUPPORTED_DISPLAY_TYPE: string[];
2
+ export declare const SUPPORTED_SORTABLE_TYPE: string[];
2
3
  export declare const SUPPORTED_ELLIPSIS_TYPE: string[];
3
4
  export declare const SUPPORTED_LABELIZE_TYPE: string[];
4
5
  export declare const SUPPORTED_DATE_FORMAT_TYPE: string[];
5
6
  export declare const SUPPORTED_NUMBER_FORMAT_TYPE: string[];
7
+ export declare enum DATASOURCE_TYPE {
8
+ DOC = "doc",
9
+ STUDIO = "studio",
10
+ CALC = "calc"
11
+ }
@@ -0,0 +1,34 @@
1
+ import React from 'react';
2
+ import { DatasourceModel, DatasourceType, WidgetDatasourceTableContent, WidgetEditorActions, WidgetEditorErrorActions, WidgetTableColumnsData } from 'jamespot-user-api';
3
+ export declare const DocEditor: ({ uri, tableColumnsData, model, type, onChange, onStateChange, onError, }: {
4
+ uri?: string | undefined;
5
+ model?: DatasourceModel | undefined;
6
+ type?: DatasourceType | undefined;
7
+ tableColumnsData: {
8
+ name?: string | undefined;
9
+ isVisible?: boolean | undefined;
10
+ textEllipsis?: boolean | undefined;
11
+ label?: string | undefined;
12
+ dateFormat?: "time" | "date" | "date-time" | "date-time-sec" | "time-sec" | undefined;
13
+ numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
14
+ }[];
15
+ } & Pick<WidgetEditorActions<{
16
+ limit?: number | undefined;
17
+ tableColumnsData?: {
18
+ name?: string | undefined;
19
+ isVisible?: boolean | undefined;
20
+ textEllipsis?: boolean | undefined;
21
+ label?: string | 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
+ uri?: string | undefined;
34
+ }>, "onChange" | "onStateChange"> & WidgetEditorErrorActions) => React.JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { WidgetEditorErrorActions } from 'jamespot-user-api';
3
- export declare const WidgetDatasourceFetchStudio: ({ title, onChange, onError, }: {
4
- title: string;
5
- onChange: (uri: string) => void;
3
+ export declare const DocEditorObject: ({ uri, onHandleRemove, onError, }: {
4
+ uri: string;
5
+ onHandleRemove: () => void;
6
6
  } & WidgetEditorErrorActions) => React.JSX.Element;
@@ -0,0 +1,32 @@
1
+ import React from 'react';
2
+ import { WidgetDatasourceTableContent, WidgetEditorActions, WidgetEditorErrorActions, WidgetTableColumnsData } from 'jamespot-user-api';
3
+ export declare const ExcelEditor: ({ uri, tableColumnsData, onChange, onError, onStateChange, }: {
4
+ uri?: string | undefined;
5
+ tableColumnsData: {
6
+ name?: string | undefined;
7
+ isVisible?: boolean | undefined;
8
+ textEllipsis?: boolean | undefined;
9
+ label?: string | undefined;
10
+ dateFormat?: "time" | "date" | "date-time" | "date-time-sec" | "time-sec" | undefined;
11
+ numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
12
+ }[];
13
+ } & WidgetEditorErrorActions & Pick<WidgetEditorActions<{
14
+ limit?: number | undefined;
15
+ tableColumnsData?: {
16
+ name?: string | undefined;
17
+ isVisible?: boolean | undefined;
18
+ textEllipsis?: boolean | undefined;
19
+ label?: string | undefined;
20
+ dateFormat?: "time" | "date" | "date-time" | "date-time-sec" | "time-sec" | undefined;
21
+ numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
22
+ }[] | undefined;
23
+ tableHeadColor?: string | undefined;
24
+ tableHeadTextColor?: string | undefined;
25
+ tableHeadIconColor?: string | undefined;
26
+ tableRowColor?: string | undefined;
27
+ tableRowTextColor?: string | undefined;
28
+ tableBorderRadius?: number | undefined;
29
+ tableSizedColumns?: boolean | undefined;
30
+ tableSizedColumnsWidth?: number | undefined;
31
+ uri?: string | undefined;
32
+ }>, "onChange" | "onStateChange">) => React.JSX.Element;
@@ -0,0 +1,33 @@
1
+ import React from 'react';
2
+ import { DatasourceModel, WidgetDatasourceTableContent, WidgetEditorActions, WidgetEditorErrorActions, WidgetTableColumnsData } from 'jamespot-user-api';
3
+ export declare const ExcelEditorModel: ({ uri, tableColumnsData, model, onChange, onStateChange, onError, }: {
4
+ uri: string;
5
+ tableColumnsData: {
6
+ name?: string | undefined;
7
+ isVisible?: boolean | undefined;
8
+ textEllipsis?: boolean | undefined;
9
+ label?: string | undefined;
10
+ dateFormat?: "time" | "date" | "date-time" | "date-time-sec" | "time-sec" | undefined;
11
+ numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
12
+ }[];
13
+ model: DatasourceModel;
14
+ } & Pick<WidgetEditorActions<{
15
+ limit?: number | undefined;
16
+ tableColumnsData?: {
17
+ name?: string | undefined;
18
+ isVisible?: boolean | undefined;
19
+ textEllipsis?: boolean | undefined;
20
+ label?: string | 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
+ uri?: string | undefined;
33
+ }>, "onChange" | "onStateChange"> & WidgetEditorErrorActions) => React.JSX.Element;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import { WidgetTableColumn } from 'jamespot-user-api';
3
+ export declare const ExcelEditorModelColumn: ({ column, onChange, }: {
4
+ column: WidgetTableColumn;
5
+ onChange: (data: WidgetTableColumn) => void;
6
+ }) => React.JSX.Element;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ import { jDatasourceExcel, WidgetEditorErrorActions } from 'jamespot-user-api';
3
+ export declare const ExcelEditorObject: ({ uri, onHandleDatasource, onError, onHandleRemove, }: {
4
+ uri: string;
5
+ onHandleDatasource?: ((datasource: jDatasourceExcel) => React.ReactNode) | undefined;
6
+ onHandleRemove: () => void;
7
+ } & WidgetEditorErrorActions) => React.JSX.Element;
@@ -0,0 +1,25 @@
1
+ import React from 'react';
2
+ import { WidgetDatasourceTableContent, WidgetEditorActions, WidgetEditorErrorActions } from 'jamespot-user-api';
3
+ export declare const ExcelEditorSpreadSheets: ({ uri, onChange, onCancel, onError, onStateChange, }: {
4
+ uri: string;
5
+ onCancel: () => void;
6
+ } & WidgetEditorErrorActions & Pick<WidgetEditorActions<{
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
+ }>, "onChange" | "onStateChange">) => React.JSX.Element;
@@ -0,0 +1,25 @@
1
+ import React from 'react';
2
+ import { WidgetDatasourceTableContent, WidgetEditorActions, WidgetEditorErrorActions } from 'jamespot-user-api';
3
+ export declare const ExcelEditorUploader: ({ token, onCreateSuccess, onError, onStateChange, }: {
4
+ token: string;
5
+ onCreateSuccess: (uri: string) => void;
6
+ } & WidgetEditorErrorActions & Pick<WidgetEditorActions<{
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
+ }>, "onStateChange">) => React.JSX.Element;
@@ -0,0 +1,34 @@
1
+ import React from 'react';
2
+ import { DatasourceModel, DatasourceType, WidgetDatasourceTableContent, WidgetEditorActions, WidgetEditorErrorActions, WidgetTableColumnsData } from 'jamespot-user-api';
3
+ export declare const StudioEditor: ({ uri, tableColumnsData, model, type, onChange, onStateChange, onError, }: {
4
+ uri?: string | undefined;
5
+ model?: DatasourceModel | undefined;
6
+ type?: DatasourceType | undefined;
7
+ tableColumnsData: {
8
+ name?: string | undefined;
9
+ isVisible?: boolean | undefined;
10
+ textEllipsis?: boolean | undefined;
11
+ label?: string | undefined;
12
+ dateFormat?: "time" | "date" | "date-time" | "date-time-sec" | "time-sec" | undefined;
13
+ numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
14
+ }[];
15
+ } & Pick<WidgetEditorActions<{
16
+ limit?: number | undefined;
17
+ tableColumnsData?: {
18
+ name?: string | undefined;
19
+ isVisible?: boolean | undefined;
20
+ textEllipsis?: boolean | undefined;
21
+ label?: string | 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
+ uri?: string | undefined;
34
+ }>, "onChange" | "onStateChange"> & WidgetEditorErrorActions) => 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 WidgetDatasourceFetchStudioApp: ({ idApp, status, onHandleSelection, onError, }: {
3
+ export declare const StudioEditorApp: ({ idApp, status, onHandleSelection, onError, }: {
4
4
  idApp: string;
5
5
  status: StudioApplicationStatusEnumBased;
6
6
  onHandleSelection: (app: StudioApplicationBase) => void;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import { WidgetDatasourceTableContent, WidgetEditorActions, WidgetEditorErrorActions } from 'jamespot-user-api';
3
+ export declare const StudioEditorFetch: ({ onChange, onStateChange, onError, }: Pick<WidgetEditorActions<WidgetDatasourceTableContent>, 'onChange' | 'onStateChange'> & WidgetEditorErrorActions) => React.JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { WidgetEditorErrorActions } from 'jamespot-user-api';
3
- export declare const WidgetDatasourceFetchFolders: ({ title, onChange, onError, }: {
4
- title: string;
5
- onChange: (uri: string) => void;
3
+ export declare const StudioEditorObject: ({ uri, onHandleRemove, onError, }: {
4
+ uri: string;
5
+ onHandleRemove: () => void;
6
6
  } & WidgetEditorErrorActions) => React.JSX.Element;
@@ -168,6 +168,7 @@ export { JRCWidgetApiEditor } from './components/Widgets/JRCWidgetApi/JRCWidgetA
168
168
  export { JRCWidgetTable } from './components/Widgets/JRCWidgetTable/JRCWidgetTable';
169
169
  export { JRCWidgetTableEditor } from './components/Widgets/JRCWidgetTable/JRCWidgetTableEditor';
170
170
  export { JRCWidgetDatasourceTableEditor } from './components/Widgets/JRCWidgetTable/JRCWidgetDatasourceTableEditor';
171
+ export { JRCWidgetExcelDatasourceTableEditor } from './components/Widgets/JRCWidgetTable/JRCWidgetExcelDatasourceTableEditor';
171
172
  export { JRCWidgetArticleSliderEditor } from './components/Widgets/JRCWidgetSlider/JRCWidgetArticleSliderEditor';
172
173
  export { JRCWidgetSlider } from './components/Widgets/JRCWidgetSlider/JRCWidgetSlider';
173
174
  export { JRCWidgetEmptyInplace } from './components/Widgets/JRCWidgetEmptyInplace';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jamespot-react-components",
3
- "version": "1.0.197",
3
+ "version": "1.0.199",
4
4
  "description": "",
5
5
  "main": "./build/jamespot-react-components.js",
6
6
  "types": "./build/src/index.d.ts",
@@ -81,7 +81,7 @@
81
81
  "chroma-js": "^2.1.1",
82
82
  "classnames": "^2.3.1",
83
83
  "dompurify": "^3.0.5",
84
- "jamespot-user-api": "^1.0.169",
84
+ "jamespot-user-api": "^1.0.172",
85
85
  "moment": "2.29.4",
86
86
  "react": "^17.x",
87
87
  "react-beautiful-dnd": "^13.1.1",
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- export declare const ModelColumnLabelize: ({ initialLabel, onChange, }: {
3
- initialLabel?: string | undefined;
4
- onChange: (label: string | undefined) => void;
5
- }) => React.JSX.Element;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import { NumberFormat } from 'jamespot-user-api';
3
- export declare const ModelColumnNumberFormat: ({ initialFormat, onChange, }: {
4
- initialFormat?: string | undefined;
5
- onChange: (format: NumberFormat | undefined) => void;
6
- }) => React.JSX.Element;
@@ -1,12 +0,0 @@
1
- import React from 'react';
2
- export declare const WidgetDatasourceModelColumn: ({ label, isVisible, isActive, onHandleActions, onChange, }: {
3
- label: string;
4
- isVisible?: boolean | undefined;
5
- isActive?: boolean | undefined;
6
- onHandleActions: () => React.ReactNode;
7
- onChange: (isVisible: boolean) => void;
8
- }) => React.JSX.Element;
9
- export declare const UnsuportedTooltip: ({ isActive, children }: {
10
- isActive?: boolean | undefined;
11
- children: React.ReactNode;
12
- }) => React.JSX.Element;