jamespot-react-components 1.0.203 → 1.0.205

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 (22) hide show
  1. package/build/jamespot-react-components.js +694 -686
  2. package/build/jamespot-react-components.js.LICENSE.txt +4 -4
  3. package/build/jamespot-react-components.js.map +1 -1
  4. package/build/src/components/Form/Input/JRCInputText/JRCInputText.style.d.ts +1 -0
  5. package/build/src/components/JRCAppLeftColumn/JRCAppLeftColumn.styles.d.ts +1 -0
  6. package/build/src/components/JRCAvatar/JRCAvatar.d.ts +1 -0
  7. package/build/src/components/JRCFolders/JRCFolders.d.ts +3 -3
  8. package/build/src/components/JRCFolders/types.d.ts +5 -5
  9. package/build/src/components/JRCIconButton/JRCIconButton.d.ts +6 -0
  10. package/build/src/components/Widgets/JRCWidgetArticleText/JRCWidgetArticleText.stories.d.ts +67 -308
  11. package/build/src/components/Widgets/JRCWidgetTable/JRCWidgetDatasourceTableEditor.d.ts +4 -4
  12. package/build/src/components/Widgets/JRCWidgetTable/JRCWidgetTableEditor.d.ts +1 -21
  13. package/build/src/components/Widgets/JRCWidgetTable/JRCWidgetTableTdRenderer.d.ts +1 -1
  14. package/build/src/components/Widgets/JRCWidgetTable/components/WidgetDatasourceModelView.d.ts +1 -1
  15. package/build/src/components/Widgets/JRCWidgetTable/model/doc/DocEditor.d.ts +3 -3
  16. package/build/src/components/Widgets/JRCWidgetTable/model/excel/ExcelEditor.d.ts +3 -3
  17. package/build/src/components/Widgets/JRCWidgetTable/model/excel/ExcelEditorModel.d.ts +3 -3
  18. package/build/src/components/Widgets/JRCWidgetTable/model/excel/ExcelEditorSpreadSheets.d.ts +2 -2
  19. package/build/src/components/Widgets/JRCWidgetTable/model/excel/ExcelEditorUploader.d.ts +2 -2
  20. package/build/src/components/Widgets/JRCWidgetTable/model/studio/StudioEditor.d.ts +3 -3
  21. package/build/src/styles/theme.d.ts +1 -0
  22. package/package.json +2 -3
@@ -18,6 +18,7 @@ export declare const IconAfter: import("styled-components").StyledComponent<{
18
18
  bgHover?: import("../../../../styles/theme").Colors | import("../../../../styles/theme").Shades | undefined;
19
19
  iconSize?: number | undefined;
20
20
  badgeNumber?: number | undefined;
21
+ colorVariant?: string | undefined;
21
22
  badgeInline?: boolean | undefined;
22
23
  } & {
23
24
  type: string;
@@ -38,6 +38,7 @@ export declare const JRCIconButtonAppLeftColumn: import("styled-components").Sty
38
38
  bgHover?: import("../../styles/theme").Colors | import("../../styles/theme").Shades | undefined;
39
39
  iconSize?: number | undefined;
40
40
  badgeNumber?: number | undefined;
41
+ colorVariant?: string | undefined;
41
42
  badgeInline?: boolean | undefined;
42
43
  } & {
43
44
  type: string;
@@ -27,6 +27,7 @@ export type JRCAvatarProps = Omit<JRCImgProps, 'size' | 'width' | 'height' | 'al
27
27
  cssColor?: string;
28
28
  iconWhite?: boolean;
29
29
  alt?: string;
30
+ testId?: string;
30
31
  onLoad?: () => void;
31
32
  };
32
33
  export declare const JRCAvatar: (props: JRCAvatarProps) => React.JSX.Element;
@@ -1,9 +1,9 @@
1
1
  import * as React from 'react';
2
- import { FileBankDocument, FolderType } from 'jamespot-user-api';
2
+ import { jFolderList, jArticleView } from 'jamespot-user-api';
3
3
  import { JRCFoldersProps } from './types';
4
- export type EntryType = FolderType | FileBankDocument;
4
+ export type EntryType = jFolderList | jArticleView;
5
5
  export declare const JRCFolders: ({ loadDocuments, allowMultiSelection, asyncBanksPromise, asyncFoldersPromise, asyncDocumentsPromise, initialFolders, initialDocuments, onSelectFolder, onSelectDocument, }: JRCFoldersProps) => React.JSX.Element;
6
6
  export declare const ArticleNbSelection: ({ uris, document }: {
7
7
  uris: string[];
8
- document: FileBankDocument;
8
+ document: jArticleView;
9
9
  }) => React.JSX.Element;
@@ -1,14 +1,14 @@
1
- import { ApiPagingResults, ApiWrapper, FileBankDocument, FileBankProps, FolderType, jFileLittle } from 'jamespot-user-api';
1
+ import { ApiPagingResults, ApiWrapper, FileBankProps, jFolderList, jFileLittle, jArticleView } from 'jamespot-user-api';
2
2
  export type JRCFoldersProps = {
3
3
  loadDocuments?: boolean;
4
4
  initialFolders?: string[];
5
5
  initialDocuments?: string[];
6
- initialBankFolder?: FolderType;
6
+ initialBankFolder?: jFolderList;
7
7
  allowMultiSelection?: boolean;
8
8
  asyncBanksPromise: () => Promise<FileBankProps[]>;
9
- asyncFoldersPromise: (uri: string) => Promise<ApiWrapper<FolderType[]>>;
10
- asyncDocumentsPromise: (uri: string) => Promise<ApiPagingResults<FileBankDocument>>;
11
- onSelectFolder?: (folder: FolderType[]) => void;
9
+ asyncFoldersPromise: (uri: string) => Promise<ApiWrapper<jFolderList[]>>;
10
+ asyncDocumentsPromise: (uri: string) => Promise<ApiPagingResults<jArticleView>>;
11
+ onSelectFolder?: (folder: jFolderList[]) => void;
12
12
  onSelectDocument?: (document: jFileLittle[]) => void;
13
13
  };
14
14
  export interface JRCFolderProps {
@@ -2,6 +2,11 @@ import * as React from 'react';
2
2
  import { Colors, Shades } from 'styles/theme';
3
3
  import { JRCTooltipProps } from '../JRCTooltip/JRCTooltip';
4
4
  import { DataCy } from '../../types/dataAttributes';
5
+ declare const colorVariants: Record<string, {
6
+ color: Colors | Shades;
7
+ bg: Colors | Shades;
8
+ bgHover: Colors | Shades;
9
+ }>;
5
10
  /**
6
11
  * IconButton props
7
12
  * @member icon icon of the button
@@ -33,6 +38,7 @@ export type JRCIconButtonProps = Omit<React.ComponentPropsWithoutRef<'button'>,
33
38
  bgHover?: Colors | Shades;
34
39
  iconSize?: number;
35
40
  badgeNumber?: number;
41
+ colorVariant?: keyof typeof colorVariants;
36
42
  badgeInline?: boolean;
37
43
  };
38
44
  declare const defaultProps: {
@@ -6,313 +6,53 @@ export declare const Primary: Story<{
6
6
  mode: "view" | "preview" | "edit";
7
7
  inplace: boolean;
8
8
  onChange: (args_0: {
9
- widgets?: {
10
- title: string;
11
- widget: ({
12
- layers?: string[] | undefined;
13
- } & import("jamespot-user-api").WidgetArticleButtonType) | ({
14
- layers?: string[] | undefined;
15
- } & import("jamespot-user-api").WidgetArticleGalleryType) | ({
16
- layers?: string[] | undefined;
17
- } & import("jamespot-user-api").WidgetArticleTitleType) | ({
18
- layers?: string[] | undefined;
19
- } & import("jamespot-user-api").WidgetArticleTextType) | ({
20
- layers?: string[] | undefined;
21
- } & import("jamespot-user-api").WidgetArticleImageType) | ({
22
- layers?: string[] | undefined;
23
- } & import("jamespot-user-api").WidgetArticleAttachmentType) | ({
24
- layers?: string[] | undefined;
25
- } & import("jamespot-user-api").WidgetApiType) | ({
26
- layers?: string[] | undefined;
27
- } & import("jamespot-user-api").WidgetArticleSliderType) | ({
28
- layers?: string[] | undefined;
29
- } & import("jamespot-user-api").WidgetType<import("jamespot-user-api").WidgetCheckListContent & import("jamespot-user-api").LegacyAngularJSType>) | ({
30
- layers?: string[] | undefined;
31
- } & import("jamespot-user-api").WidgetDatasourceTableType) | ({
32
- layers?: string[] | undefined;
33
- } & {
34
- name: import("jamespot-user-api").WidgetsName.ExcelDatasourceTable;
35
- uniqid: string;
36
- content: {
37
- limit?: number | undefined;
38
- tableColumnsData?: {
39
- name?: string | undefined;
40
- isVisible?: boolean | undefined;
41
- textEllipsis?: boolean | undefined;
42
- label?: string | undefined;
43
- dateFormat?: "time" | "date" | "date-time" | "date-time-sec" | "time-sec" | undefined;
44
- numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
45
- }[] | undefined;
46
- tableHeadColor?: string | undefined;
47
- tableHeadTextColor?: string | undefined;
48
- tableHeadIconColor?: string | undefined;
49
- tableRowColor?: string | undefined;
50
- tableRowTextColor?: string | undefined;
51
- tableBorderRadius?: number | undefined;
52
- tableSizedColumns?: boolean | undefined;
53
- tableSizedColumnsWidth?: number | undefined;
54
- uri?: string | undefined;
55
- };
56
- }) | ({
57
- layers?: string[] | undefined;
58
- } & {
59
- name: import("jamespot-user-api").WidgetsName.ExcelDatasourceTable;
60
- uniqid: string;
61
- content: {
62
- limit?: number | undefined;
63
- tableColumnsData?: {
64
- name?: string | undefined;
65
- isVisible?: boolean | undefined;
66
- textEllipsis?: boolean | undefined;
67
- label?: string | undefined;
68
- dateFormat?: "time" | "date" | "date-time" | "date-time-sec" | "time-sec" | undefined;
69
- numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
70
- }[] | undefined;
71
- tableHeadColor?: string | undefined;
72
- tableHeadTextColor?: string | undefined;
73
- tableHeadIconColor?: string | undefined;
74
- tableRowColor?: string | undefined;
75
- tableRowTextColor?: string | undefined;
76
- tableBorderRadius?: number | undefined;
77
- tableSizedColumns?: boolean | undefined;
78
- tableSizedColumnsWidth?: number | undefined;
79
- uri?: string | undefined;
80
- };
81
- }) | ({
82
- layers?: string[] | undefined;
83
- } & import("jamespot-user-api").WidgetArticleButtonType & import("jamespot-user-api").WidgetType<import("jamespot-user-api").WidgetCheckListContent & import("jamespot-user-api").LegacyAngularJSType>) | ({
84
- layers?: string[] | undefined;
85
- } & import("jamespot-user-api").WidgetArticleGalleryType & import("jamespot-user-api").WidgetType<import("jamespot-user-api").WidgetCheckListContent & import("jamespot-user-api").LegacyAngularJSType>) | ({
86
- layers?: string[] | undefined;
87
- } & import("jamespot-user-api").WidgetArticleTitleType & import("jamespot-user-api").WidgetType<import("jamespot-user-api").WidgetCheckListContent & import("jamespot-user-api").LegacyAngularJSType>) | ({
88
- layers?: string[] | undefined;
89
- } & import("jamespot-user-api").WidgetArticleTextType & import("jamespot-user-api").WidgetType<import("jamespot-user-api").WidgetCheckListContent & import("jamespot-user-api").LegacyAngularJSType>) | ({
90
- layers?: string[] | undefined;
91
- } & import("jamespot-user-api").WidgetArticleImageType & import("jamespot-user-api").WidgetType<import("jamespot-user-api").WidgetCheckListContent & import("jamespot-user-api").LegacyAngularJSType>) | ({
92
- layers?: string[] | undefined;
93
- } & import("jamespot-user-api").WidgetArticleAttachmentType & import("jamespot-user-api").WidgetType<import("jamespot-user-api").WidgetCheckListContent & import("jamespot-user-api").LegacyAngularJSType>) | ({
94
- layers?: string[] | undefined;
95
- } & import("jamespot-user-api").WidgetApiType & import("jamespot-user-api").WidgetType<import("jamespot-user-api").WidgetCheckListContent & import("jamespot-user-api").LegacyAngularJSType>) | ({
96
- layers?: string[] | undefined;
97
- } & import("jamespot-user-api").WidgetArticleSliderType & import("jamespot-user-api").WidgetType<import("jamespot-user-api").WidgetCheckListContent & import("jamespot-user-api").LegacyAngularJSType>) | ({
98
- layers?: string[] | undefined;
99
- } & import("jamespot-user-api").WidgetType<import("jamespot-user-api").WidgetCheckListContent & import("jamespot-user-api").LegacyAngularJSType> & import("jamespot-user-api").WidgetArticleButtonType) | ({
100
- layers?: string[] | undefined;
101
- } & import("jamespot-user-api").WidgetType<import("jamespot-user-api").WidgetCheckListContent & import("jamespot-user-api").LegacyAngularJSType> & import("jamespot-user-api").WidgetArticleGalleryType) | ({
102
- layers?: string[] | undefined;
103
- } & import("jamespot-user-api").WidgetType<import("jamespot-user-api").WidgetCheckListContent & import("jamespot-user-api").LegacyAngularJSType> & import("jamespot-user-api").WidgetArticleTitleType) | ({
104
- layers?: string[] | undefined;
105
- } & import("jamespot-user-api").WidgetType<import("jamespot-user-api").WidgetCheckListContent & import("jamespot-user-api").LegacyAngularJSType> & import("jamespot-user-api").WidgetArticleTextType) | ({
106
- layers?: string[] | undefined;
107
- } & import("jamespot-user-api").WidgetType<import("jamespot-user-api").WidgetCheckListContent & import("jamespot-user-api").LegacyAngularJSType> & import("jamespot-user-api").WidgetArticleImageType) | ({
108
- layers?: string[] | undefined;
109
- } & import("jamespot-user-api").WidgetType<import("jamespot-user-api").WidgetCheckListContent & import("jamespot-user-api").LegacyAngularJSType> & import("jamespot-user-api").WidgetArticleAttachmentType) | ({
110
- layers?: string[] | undefined;
111
- } & import("jamespot-user-api").WidgetType<import("jamespot-user-api").WidgetCheckListContent & import("jamespot-user-api").LegacyAngularJSType> & import("jamespot-user-api").WidgetApiType) | ({
112
- layers?: string[] | undefined;
113
- } & import("jamespot-user-api").WidgetType<import("jamespot-user-api").WidgetCheckListContent & import("jamespot-user-api").LegacyAngularJSType> & import("jamespot-user-api").WidgetArticleSliderType) | ({
114
- layers?: string[] | undefined;
115
- } & import("jamespot-user-api").WidgetType<import("jamespot-user-api").WidgetCheckListContent & import("jamespot-user-api").LegacyAngularJSType> & import("jamespot-user-api").WidgetDatasourceTableType) | ({
116
- layers?: string[] | undefined;
117
- } & import("jamespot-user-api").WidgetType<import("jamespot-user-api").WidgetCheckListContent & import("jamespot-user-api").LegacyAngularJSType> & {
118
- name: import("jamespot-user-api").WidgetsName.ExcelDatasourceTable;
119
- uniqid: string;
120
- content: {
121
- limit?: number | undefined;
122
- tableColumnsData?: {
123
- name?: string | undefined;
124
- isVisible?: boolean | undefined;
125
- textEllipsis?: boolean | undefined;
126
- label?: string | undefined;
127
- dateFormat?: "time" | "date" | "date-time" | "date-time-sec" | "time-sec" | undefined;
128
- numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
129
- }[] | undefined;
130
- tableHeadColor?: string | undefined;
131
- tableHeadTextColor?: string | undefined;
132
- tableHeadIconColor?: string | undefined;
133
- tableRowColor?: string | undefined;
134
- tableRowTextColor?: string | undefined;
135
- tableBorderRadius?: number | undefined;
136
- tableSizedColumns?: boolean | undefined;
137
- tableSizedColumnsWidth?: number | undefined;
138
- uri?: string | undefined;
139
- };
140
- }) | ({
141
- layers?: string[] | undefined;
142
- } & import("jamespot-user-api").WidgetType<import("jamespot-user-api").WidgetCheckListContent & import("jamespot-user-api").LegacyAngularJSType> & {
143
- name: import("jamespot-user-api").WidgetsName.ExcelDatasourceTable;
144
- uniqid: string;
145
- content: {
146
- limit?: number | undefined;
147
- tableColumnsData?: {
148
- name?: string | undefined;
149
- isVisible?: boolean | undefined;
150
- textEllipsis?: boolean | undefined;
151
- label?: string | undefined;
152
- dateFormat?: "time" | "date" | "date-time" | "date-time-sec" | "time-sec" | undefined;
153
- numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
154
- }[] | undefined;
155
- tableHeadColor?: string | undefined;
156
- tableHeadTextColor?: string | undefined;
157
- tableHeadIconColor?: string | undefined;
158
- tableRowColor?: string | undefined;
159
- tableRowTextColor?: string | undefined;
160
- tableBorderRadius?: number | undefined;
161
- tableSizedColumns?: boolean | undefined;
162
- tableSizedColumnsWidth?: number | undefined;
163
- uri?: string | undefined;
164
- };
165
- }) | ({
166
- layers?: string[] | undefined;
167
- } & import("jamespot-user-api").WidgetDatasourceTableType & import("jamespot-user-api").WidgetType<import("jamespot-user-api").WidgetCheckListContent & import("jamespot-user-api").LegacyAngularJSType>) | ({
168
- layers?: string[] | undefined;
169
- } & {
170
- name: import("jamespot-user-api").WidgetsName.ExcelDatasourceTable;
171
- uniqid: string;
172
- content: {
173
- limit?: number | undefined;
174
- tableColumnsData?: {
175
- name?: string | undefined;
176
- isVisible?: boolean | undefined;
177
- textEllipsis?: boolean | undefined;
178
- label?: string | undefined;
179
- dateFormat?: "time" | "date" | "date-time" | "date-time-sec" | "time-sec" | undefined;
180
- numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
181
- }[] | undefined;
182
- tableHeadColor?: string | undefined;
183
- tableHeadTextColor?: string | undefined;
184
- tableHeadIconColor?: string | undefined;
185
- tableRowColor?: string | undefined;
186
- tableRowTextColor?: string | undefined;
187
- tableBorderRadius?: number | undefined;
188
- tableSizedColumns?: boolean | undefined;
189
- tableSizedColumnsWidth?: number | undefined;
190
- uri?: string | undefined;
191
- };
192
- } & import("jamespot-user-api").WidgetType<import("jamespot-user-api").WidgetCheckListContent & import("jamespot-user-api").LegacyAngularJSType>) | ({
193
- layers?: string[] | undefined;
194
- } & {
195
- name: import("jamespot-user-api").WidgetsName.ExcelDatasourceTable;
196
- uniqid: string;
197
- content: {
198
- limit?: number | undefined;
199
- tableColumnsData?: {
200
- name?: string | undefined;
201
- isVisible?: boolean | undefined;
202
- textEllipsis?: boolean | undefined;
203
- label?: string | undefined;
204
- dateFormat?: "time" | "date" | "date-time" | "date-time-sec" | "time-sec" | undefined;
205
- numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
206
- }[] | undefined;
207
- tableHeadColor?: string | undefined;
208
- tableHeadTextColor?: string | undefined;
209
- tableHeadIconColor?: string | undefined;
210
- tableRowColor?: string | undefined;
211
- tableRowTextColor?: string | undefined;
212
- tableBorderRadius?: number | undefined;
213
- tableSizedColumns?: boolean | undefined;
214
- tableSizedColumnsWidth?: number | undefined;
215
- uri?: string | undefined;
216
- };
217
- } & {
218
- name: import("jamespot-user-api").WidgetsName.ExcelDatasourceTable;
219
- uniqid: string;
220
- content: {
221
- limit?: number | undefined;
222
- tableColumnsData?: {
223
- name?: string | undefined;
224
- isVisible?: boolean | undefined;
225
- textEllipsis?: boolean | undefined;
226
- label?: string | undefined;
227
- dateFormat?: "time" | "date" | "date-time" | "date-time-sec" | "time-sec" | undefined;
228
- numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
229
- }[] | undefined;
230
- tableHeadColor?: string | undefined;
231
- tableHeadTextColor?: string | undefined;
232
- tableHeadIconColor?: string | undefined;
233
- tableRowColor?: string | undefined;
234
- tableRowTextColor?: string | undefined;
235
- tableBorderRadius?: number | undefined;
236
- tableSizedColumns?: boolean | undefined;
237
- tableSizedColumnsWidth?: number | undefined;
238
- uri?: string | undefined;
239
- };
240
- }) | ({
241
- layers?: string[] | undefined;
242
- } & {
243
- name: import("jamespot-user-api").WidgetsName.ExcelDatasourceTable;
244
- uniqid: string;
245
- content: {
246
- limit?: number | undefined;
247
- tableColumnsData?: {
248
- name?: string | undefined;
249
- isVisible?: boolean | undefined;
250
- textEllipsis?: boolean | undefined;
251
- label?: string | undefined;
252
- dateFormat?: "time" | "date" | "date-time" | "date-time-sec" | "time-sec" | undefined;
253
- numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
254
- }[] | undefined;
255
- tableHeadColor?: string | undefined;
256
- tableHeadTextColor?: string | undefined;
257
- tableHeadIconColor?: string | undefined;
258
- tableRowColor?: string | undefined;
259
- tableRowTextColor?: string | undefined;
260
- tableBorderRadius?: number | undefined;
261
- tableSizedColumns?: boolean | undefined;
262
- tableSizedColumnsWidth?: number | undefined;
263
- uri?: string | undefined;
264
- };
265
- } & import("jamespot-user-api").WidgetType<import("jamespot-user-api").WidgetCheckListContent & import("jamespot-user-api").LegacyAngularJSType>) | ({
266
- layers?: string[] | undefined;
267
- } & {
268
- name: import("jamespot-user-api").WidgetsName.ExcelDatasourceTable;
269
- uniqid: string;
270
- content: {
271
- limit?: number | undefined;
272
- tableColumnsData?: {
273
- name?: string | undefined;
274
- isVisible?: boolean | undefined;
275
- textEllipsis?: boolean | undefined;
276
- label?: string | undefined;
277
- dateFormat?: "time" | "date" | "date-time" | "date-time-sec" | "time-sec" | undefined;
278
- numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
279
- }[] | undefined;
280
- tableHeadColor?: string | undefined;
281
- tableHeadTextColor?: string | undefined;
282
- tableHeadIconColor?: string | undefined;
283
- tableRowColor?: string | undefined;
284
- tableRowTextColor?: string | undefined;
285
- tableBorderRadius?: number | undefined;
286
- tableSizedColumns?: boolean | undefined;
287
- tableSizedColumnsWidth?: number | undefined;
288
- uri?: string | undefined;
289
- };
290
- } & {
291
- name: import("jamespot-user-api").WidgetsName.ExcelDatasourceTable;
292
- uniqid: string;
293
- content: {
294
- limit?: number | undefined;
295
- tableColumnsData?: {
296
- name?: string | undefined;
297
- isVisible?: boolean | undefined;
298
- textEllipsis?: boolean | undefined;
299
- label?: string | undefined;
300
- dateFormat?: "time" | "date" | "date-time" | "date-time-sec" | "time-sec" | undefined;
301
- numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
302
- }[] | undefined;
303
- tableHeadColor?: string | undefined;
304
- tableHeadTextColor?: string | undefined;
305
- tableHeadIconColor?: string | undefined;
306
- tableRowColor?: string | undefined;
307
- tableRowTextColor?: string | undefined;
308
- tableBorderRadius?: number | undefined;
309
- tableSizedColumns?: boolean | undefined;
310
- tableSizedColumnsWidth?: number | undefined;
311
- uri?: string | undefined;
312
- };
313
- });
314
- }[] | undefined;
315
- } & (import("jamespot-user-api").WidgetApiContent | import("jamespot-user-api").WidgetArticleAttachmentContent | import("jamespot-user-api").WidgetArticleGalleryContent | import("jamespot-user-api").WidgetArticleImageContent | import("jamespot-user-api").WidgetArticleTitleContent | WidgetArticleTextContent | import("jamespot-user-api").WidgetArticleSliderContent | import("jamespot-user-api").WidgetCheckListContent | {
9
+ widgets?: import("jamespot-user-api").WidgetWrapperGeneric<({
10
+ layers?: string[] | undefined;
11
+ } & import("jamespot-user-api").WidgetApiType) | ({
12
+ layers?: string[] | undefined;
13
+ } & import("jamespot-user-api").WidgetArticleAttachmentType) | ({
14
+ layers?: string[] | undefined;
15
+ } & import("jamespot-user-api").WidgetArticleButtonType) | ({
16
+ layers?: string[] | undefined;
17
+ } & import("jamespot-user-api").WidgetArticleGalleryType) | ({
18
+ layers?: string[] | undefined;
19
+ } & import("jamespot-user-api").WidgetArticleImageType) | ({
20
+ layers?: string[] | undefined;
21
+ } & import("jamespot-user-api").WidgetArticleTitleType) | ({
22
+ layers?: string[] | undefined;
23
+ } & import("jamespot-user-api").WidgetArticleTextType) | ({
24
+ layers?: string[] | undefined;
25
+ } & import("jamespot-user-api").WidgetArticleSliderType) | ({
26
+ layers?: string[] | undefined;
27
+ } & import("jamespot-user-api").WidgetType<import("jamespot-user-api").WidgetCheckListContent>) | ({
28
+ layers?: string[] | undefined;
29
+ } & import("jamespot-user-api").WidgetDatasourceTableType) | ({
30
+ layers?: string[] | undefined;
31
+ } & {
32
+ name: import("jamespot-user-api").WidgetsName.ExcelDatasourceTable;
33
+ uniqid: string;
34
+ content: {
35
+ uri?: string | undefined;
36
+ limit?: number | undefined;
37
+ tableColumnsData?: {
38
+ name?: string | undefined;
39
+ label?: string | undefined;
40
+ isVisible?: boolean | undefined;
41
+ textEllipsis?: boolean | undefined;
42
+ dateFormat?: "time" | "date" | "date-time" | "date-time-sec" | "time-sec" | undefined;
43
+ numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
44
+ }[] | undefined;
45
+ tableHeadColor?: string | undefined;
46
+ tableHeadTextColor?: string | undefined;
47
+ tableHeadIconColor?: string | undefined;
48
+ tableRowColor?: string | undefined;
49
+ tableRowTextColor?: string | undefined;
50
+ tableBorderRadius?: number | undefined;
51
+ tableSizedColumns?: boolean | undefined;
52
+ tableSizedColumnsWidth?: number | undefined;
53
+ };
54
+ })>[] | undefined;
55
+ } & (import("jamespot-user-api").WidgetCheckListContent | import("jamespot-user-api").WidgetArticleAttachmentContent | import("jamespot-user-api").WidgetArticleGalleryContent | import("jamespot-user-api").WidgetArticleImageContent | WidgetArticleTextContent | import("jamespot-user-api").WidgetArticleTitleContent | import("jamespot-user-api").WidgetArticleSliderContent | import("jamespot-user-api").WidgetApiContent | {
316
56
  url?: string | undefined;
317
57
  target?: string | undefined;
318
58
  text?: string | undefined;
@@ -335,12 +75,13 @@ export declare const Primary: Story<{
335
75
  widgets: import("jamespot-user-api").WidgetBaseType[];
336
76
  } | undefined;
337
77
  } | {
78
+ uri?: string | undefined;
338
79
  limit?: number | undefined;
339
80
  tableColumnsData?: {
340
81
  name?: string | undefined;
82
+ label?: string | undefined;
341
83
  isVisible?: boolean | undefined;
342
84
  textEllipsis?: boolean | undefined;
343
- label?: string | undefined;
344
85
  dateFormat?: "time" | "date" | "date-time" | "date-time-sec" | "time-sec" | undefined;
345
86
  numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
346
87
  }[] | undefined;
@@ -352,7 +93,25 @@ export declare const Primary: Story<{
352
93
  tableBorderRadius?: number | undefined;
353
94
  tableSizedColumns?: boolean | undefined;
354
95
  tableSizedColumnsWidth?: number | undefined;
96
+ } | {
355
97
  uri?: string | undefined;
98
+ limit?: number | undefined;
99
+ tableColumnsData?: {
100
+ name?: string | undefined;
101
+ label?: string | undefined;
102
+ isVisible?: boolean | undefined;
103
+ textEllipsis?: boolean | undefined;
104
+ dateFormat?: "time" | "date" | "date-time" | "date-time-sec" | "time-sec" | undefined;
105
+ numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
106
+ }[] | undefined;
107
+ tableHeadColor?: string | undefined;
108
+ tableHeadTextColor?: string | undefined;
109
+ tableHeadIconColor?: string | undefined;
110
+ tableRowColor?: string | undefined;
111
+ tableRowTextColor?: string | undefined;
112
+ tableBorderRadius?: number | undefined;
113
+ tableSizedColumns?: boolean | undefined;
114
+ tableSizedColumnsWidth?: number | undefined;
356
115
  }), args_1: boolean, ...args_2: unknown[]) => void;
357
116
  onStateChange: (args_0: {
358
117
  busy?: boolean | undefined;
@@ -1,12 +1,13 @@
1
1
  import React from 'react';
2
2
  import { WidgetDatasourceTableContent, WidgetEditorActions, WidgetEditorErrorActions } from 'jamespot-user-api';
3
3
  export declare const JRCWidgetDatasourceTableEditor: ({ uri, limit, tableHeadColor, tableHeadTextColor, tableHeadIconColor, tableRowColor, tableRowTextColor, tableColumnsData, tableBorderRadius, tableSizedColumns, tableSizedColumnsWidth, editorAppDependencies, onChange, onSave, onStateChange, onError, }: {
4
+ uri?: string | undefined;
4
5
  limit?: number | undefined;
5
6
  tableColumnsData?: {
6
7
  name?: string | undefined;
8
+ label?: string | undefined;
7
9
  isVisible?: boolean | undefined;
8
10
  textEllipsis?: boolean | undefined;
9
- label?: string | undefined;
10
11
  dateFormat?: "time" | "date" | "date-time" | "date-time-sec" | "time-sec" | undefined;
11
12
  numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
12
13
  }[] | undefined;
@@ -18,19 +19,19 @@ export declare const JRCWidgetDatasourceTableEditor: ({ uri, limit, tableHeadCol
18
19
  tableBorderRadius?: number | undefined;
19
20
  tableSizedColumns?: boolean | undefined;
20
21
  tableSizedColumnsWidth?: number | undefined;
21
- uri?: string | undefined;
22
22
  } & {
23
23
  editorAppDependencies: {
24
24
  useStudio: boolean;
25
25
  useFileBank: boolean;
26
26
  };
27
27
  } & WidgetEditorActions<{
28
+ uri?: string | undefined;
28
29
  limit?: number | undefined;
29
30
  tableColumnsData?: {
30
31
  name?: string | undefined;
32
+ label?: string | undefined;
31
33
  isVisible?: boolean | undefined;
32
34
  textEllipsis?: boolean | undefined;
33
- label?: string | undefined;
34
35
  dateFormat?: "time" | "date" | "date-time" | "date-time-sec" | "time-sec" | undefined;
35
36
  numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
36
37
  }[] | undefined;
@@ -42,5 +43,4 @@ export declare const JRCWidgetDatasourceTableEditor: ({ uri, limit, tableHeadCol
42
43
  tableBorderRadius?: number | undefined;
43
44
  tableSizedColumns?: boolean | undefined;
44
45
  tableSizedColumnsWidth?: number | undefined;
45
- uri?: string | undefined;
46
46
  }> & WidgetEditorErrorActions) => React.JSX.Element;
@@ -4,9 +4,9 @@ export declare const JRCWidgetTableEditor: ({ limit, tableHeadColor, tableHeadTe
4
4
  limit?: number | undefined;
5
5
  tableColumnsData?: {
6
6
  name?: string | undefined;
7
+ label?: string | undefined;
7
8
  isVisible?: boolean | undefined;
8
9
  textEllipsis?: boolean | undefined;
9
- label?: string | undefined;
10
10
  dateFormat?: "time" | "date" | "date-time" | "date-time-sec" | "time-sec" | undefined;
11
11
  numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
12
12
  }[] | undefined;
@@ -33,26 +33,6 @@ export declare const JRCWidgetTableEditor: ({ limit, tableHeadColor, tableHeadTe
33
33
  type: "select";
34
34
  } | {
35
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
- } | {
47
- type: "text";
48
- } | {
49
- options: {
50
- value: string;
51
- label: string;
52
- }[];
53
- type: "select";
54
- } | {
55
- type: "date";
56
36
  };
57
37
  sortable?: boolean | undefined;
58
38
  }[];
@@ -6,9 +6,9 @@ export declare const JRCWidgetTableTdRenderer: ({ value, name, type, backgroundC
6
6
  name: string;
7
7
  tableColumnsData: {
8
8
  name?: string | undefined;
9
+ label?: string | undefined;
9
10
  isVisible?: boolean | undefined;
10
11
  textEllipsis?: boolean | undefined;
11
- label?: string | undefined;
12
12
  dateFormat?: "time" | "date" | "date-time" | "date-time-sec" | "time-sec" | undefined;
13
13
  numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
14
14
  }[];
@@ -5,9 +5,9 @@ export declare const WidgetDatasourceModelView: ({ model, tableColumnsData, onCh
5
5
  model: WidgetTableColumn[];
6
6
  tableColumnsData: {
7
7
  name?: string | undefined;
8
+ label?: string | undefined;
8
9
  isVisible?: boolean | undefined;
9
10
  textEllipsis?: boolean | undefined;
10
- label?: string | undefined;
11
11
  dateFormat?: "time" | "date" | "date-time" | "date-time-sec" | "time-sec" | undefined;
12
12
  numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
13
13
  }[];
@@ -6,19 +6,20 @@ export declare const DocEditor: ({ uri, tableColumnsData, model, type, onChange,
6
6
  type?: DatasourceType | undefined;
7
7
  tableColumnsData: {
8
8
  name?: string | undefined;
9
+ label?: string | undefined;
9
10
  isVisible?: boolean | undefined;
10
11
  textEllipsis?: boolean | undefined;
11
- label?: string | undefined;
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
15
  } & Pick<WidgetEditorActions<{
16
+ uri?: string | undefined;
16
17
  limit?: number | undefined;
17
18
  tableColumnsData?: {
18
19
  name?: string | undefined;
20
+ label?: string | undefined;
19
21
  isVisible?: boolean | undefined;
20
22
  textEllipsis?: boolean | undefined;
21
- label?: string | undefined;
22
23
  dateFormat?: "time" | "date" | "date-time" | "date-time-sec" | "time-sec" | undefined;
23
24
  numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
24
25
  }[] | undefined;
@@ -30,5 +31,4 @@ export declare const DocEditor: ({ uri, tableColumnsData, model, type, onChange,
30
31
  tableBorderRadius?: number | undefined;
31
32
  tableSizedColumns?: boolean | undefined;
32
33
  tableSizedColumnsWidth?: number | undefined;
33
- uri?: string | undefined;
34
34
  }>, "onChange" | "onStateChange"> & WidgetEditorErrorActions) => React.JSX.Element;