jamespot-react-components 1.3.74 → 1.3.76

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,7 @@
1
+ import { jSpotAutocomplete } from '../../../../../jamespot-user-api/src';
2
+ import { AVProps } from '../../Form/Input/JRCSelect/JRCInputAutocompleteViews';
3
+ export declare const EditorInputGroup: ({ onChange, handlers, }: {
4
+ onChange: (spot: jSpotAutocomplete) => void;
5
+ autoCompleteGroup: (v: string) => Promise<jSpotAutocomplete[]>;
6
+ handlers: AVProps["handlers"];
7
+ }) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { AudienceAutocomplete, JGroupApi, JUserApi } from '../../../../../../jamespot-user-api/src';
2
2
  import { FoldersHandlers } from '../../../JRCFolders/types';
3
3
  export type AutocompleteView = 'folder' | 'user' | 'group' | 'businessContact';
4
- type AVProps = {
4
+ export type AVProps = {
5
5
  views: Array<AutocompleteView>;
6
6
  initialValues: AudienceAutocomplete[];
7
7
  onConfirm: (values: any) => void;
@@ -12,6 +12,7 @@ type AVProps = {
12
12
  group: Pick<JGroupApi, 'list'>;
13
13
  };
14
14
  onError?: (message?: string) => void;
15
+ multiple?: boolean;
15
16
  };
16
- declare const JRCInputAutocompleteViews: ({ views, initialValues, onConfirm, open, closeHandler, handlers, onError, }: AVProps) => import("react/jsx-runtime").JSX.Element;
17
+ declare const JRCInputAutocompleteViews: ({ views, initialValues, onConfirm, open, closeHandler, handlers, onError, multiple, }: AVProps) => import("react/jsx-runtime").JSX.Element;
17
18
  export { JRCInputAutocompleteViews };
@@ -87,7 +87,7 @@ type SelectProps<T = any> = DataCy & {
87
87
  */
88
88
  export type NativeAutocompleteProps<T extends FieldValues = FieldValues> = ControllerRenderProps<T> & AutocompleteInnerProps;
89
89
  export type JRCAutocompleteProps<T extends FieldValues = FieldValues> = JRCInputFieldProps<T> & AutocompleteInnerProps;
90
- type AutocompleteInnerProps = Omit<SelectProps, 'options'> & DataCy & IconsProp & {
90
+ export type AutocompleteInnerProps = Omit<SelectProps, 'options'> & DataCy & IconsProp & {
91
91
  options?: Array<AutocompleteLittle>;
92
92
  asyncPromise?: (inputValue: string) => Promise<Array<AutocompleteLittle>>;
93
93
  allowCustomOption?: boolean;
@@ -1,6 +1,8 @@
1
+ import { JRCCalendarMode } from './types';
1
2
  export declare const CalendarStyle: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
2
3
  $fluid?: boolean;
3
4
  $loading?: boolean;
4
5
  $fullScreen?: boolean;
5
6
  $view: "list" | "grid";
7
+ $mode: JRCCalendarMode;
6
8
  }>> & string;
@@ -1,5 +1,6 @@
1
1
  import { CalendarEventView, CalendarEventWithExtensions, JArticleApi, JCalendarApi, JGlobalApi, Rights, UserResponseStatus } from '../../../../jamespot-user-api/src';
2
2
  import { ReactNode } from 'react';
3
+ import { JRCCalendarMode } from './types';
3
4
  type JRCCalendarModalProps = {
4
5
  event?: CalendarEventWithExtensions<CalendarEventView, ['socialEventRecord' | 'recurringEventRecord']>;
5
6
  closeHandler: () => void;
@@ -23,6 +24,7 @@ type JRCCalendarModalProps = {
23
24
  type: string;
24
25
  }) => void;
25
26
  isUpdateStatusLoading: (id: number) => boolean;
27
+ mode?: JRCCalendarMode;
26
28
  };
27
- export declare const JRCCalendarModal: ({ closeHandler, event, handler, onError, onSuccess, extraComponent, onDeleteEvent, onClickUpdateEvent, onUpdateStatus, isUpdateStatusLoading, }: JRCCalendarModalProps) => import("react/jsx-runtime").JSX.Element;
29
+ export declare const JRCCalendarModal: ({ closeHandler, event, handler, onError, onSuccess, extraComponent, onDeleteEvent, onClickUpdateEvent, onUpdateStatus, isUpdateStatusLoading, mode, }: JRCCalendarModalProps) => import("react/jsx-runtime").JSX.Element;
28
30
  export {};
@@ -14,4 +14,5 @@ export type JRCFoldersProps = {
14
14
  handlers?: FoldersHandlers;
15
15
  onError?: (message?: string) => void;
16
16
  searchable?: boolean;
17
+ multiple?: boolean;
17
18
  };
@@ -7,6 +7,7 @@ type JRCGroupsProps = {
7
7
  initialGroups: AudienceAutocomplete[];
8
8
  onSelectGroup?: (group: AudienceAutocomplete[]) => void;
9
9
  publicOnly?: boolean;
10
+ multiple?: boolean;
10
11
  };
11
- export declare const JRCGroups: ({ handlers, onError, initialGroups, onSelectGroup, publicOnly }: JRCGroupsProps) => import("react/jsx-runtime").JSX.Element;
12
+ export declare const JRCGroups: ({ handlers, onError, initialGroups, onSelectGroup, publicOnly, multiple, }: JRCGroupsProps) => import("react/jsx-runtime").JSX.Element;
12
13
  export {};
@@ -0,0 +1,14 @@
1
+ import { WidgetCalendarContent, JGroupApi } from '../../../../../jamespot-user-api/src';
2
+ import { AVProps } from '../../Form/Input/JRCSelect/JRCInputAutocompleteViews';
3
+ export interface JRCWidgetCalendarEditorProps extends WidgetCalendarContent {
4
+ content: WidgetCalendarContent;
5
+ onChange: (content: Partial<WidgetCalendarContent>, override?: boolean) => void;
6
+ handlers: AVProps['handlers'] & {
7
+ group: Pick<JGroupApi, 'autocomplete' | 'getSpot'>;
8
+ };
9
+ }
10
+ export declare const CalendarEditorViewOptions: {
11
+ label: string;
12
+ value: string;
13
+ }[];
14
+ export declare const WidgetCalendarEditor: ({ content, onChange, handlers }: JRCWidgetCalendarEditorProps) => import("react/jsx-runtime").JSX.Element;
@@ -192,3 +192,4 @@ export { JRCWidgetUserProfile } from './Widgets/JRCWidgetUserProfile/JRCWidgetUs
192
192
  export { JRCWidgetUserProfileEditor } from './Widgets/JRCWidgetUserProfile/JRCWidgetUserProfileEditor';
193
193
  export { JRCWidgetWelcome } from './Widgets/JRCWidgetWelcome/JRCWidgetWelcome';
194
194
  export { JRCWidgetWelcomeEditor } from './Widgets/JRCWidgetWelcome/JRCWidgetWelcomeEditor';
195
+ export { WidgetCalendarEditor } from './Widgets/WidgetCalendar/WidgetCalendarEditor';
@@ -69,6 +69,8 @@ declare const _default: {
69
69
  "CALENDAR_Status_Visio": "En distanciel",
70
70
  "CALENDAR_Today": "Today",
71
71
  "CALENDAR_Update_Confirmation_Recurrent": "Do you want to update the whole series?",
72
+ "CALENDAR_Widget_Editor_View": "View",
73
+ "CALENDAR_Widget_View_Month": "Month",
72
74
  "CALENDAR_dayGridMonth": "Month",
73
75
  "CALENDAR_listWeek": "List",
74
76
  "CALENDAR_timeGridDay": "Day",
@@ -109,8 +111,8 @@ declare const _default: {
109
111
  "CRPT_Report_Description_Required": "La description est obligatoire",
110
112
  "CRPT_Report_Sent": "Report sent",
111
113
  "DND_ADD_SECTION": "+ Add section",
112
- "DND_LIST_TITLE": "Items",
113
114
  "DND_EMPTY_STATE": "No items to display",
115
+ "DND_LIST_TITLE": "Items",
114
116
  "DND_NEW_SECTION_LABEL": "New Section",
115
117
  "DND_SECTIONS_TITLE": "Sections",
116
118
  "DND_STACK_TITLE": "Active Buttons",
@@ -169,16 +171,18 @@ declare const _default: {
169
171
  "GLOBAL_Confirm": "Confirm",
170
172
  "GLOBAL_Continue": "Continue",
171
173
  "GLOBAL_Creation_Date": "Creation date",
172
- "Global_Create": "Créer",
173
174
  "GLOBAL_Creator": "Creator",
174
175
  "GLOBAL_DateTime_Placeholder": "Date and time",
175
176
  "GLOBAL_Date_Placeholder": "Date",
177
+ "GLOBAL_Day": "Day",
176
178
  "GLOBAL_Delete": "Delete",
177
179
  "GLOBAL_Delete_Confirm": "Confirm delete",
178
180
  "GLOBAL_Delete_Confirmation": "Please confirm suppression",
179
181
  "GLOBAL_Documents": "Documents",
180
182
  "GLOBAL_Download": "Download",
181
183
  "GLOBAL_Downloads": "Downloads",
184
+ "GLOBAL_Draft_Saved": "Sauvegardé le {date}, à {time}",
185
+ "GLOBAL_Draft_Saved_Today": "Sauvegardé à {time}",
182
186
  "GLOBAL_Edit": "Edit",
183
187
  "GLOBAL_File": "File",
184
188
  "GLOBAL_File_Bank": "Document bank",
@@ -209,8 +213,8 @@ declare const _default: {
209
213
  "GLOBAL_Loading": "Loading",
210
214
  "GLOBAL_Login": "Login",
211
215
  "GLOBAL_Move": "Move",
212
- "GLOBAL_Next": "Next",
213
216
  "GLOBAL_New": "Nouveau",
217
+ "GLOBAL_Next": "Next",
214
218
  "GLOBAL_No_Result": "No result",
215
219
  "GLOBAL_Object_Link": "Objet lié",
216
220
  "GLOBAL_Ok": "OK",
@@ -226,8 +230,6 @@ declare const _default: {
226
230
  "GLOBAL_Reset": "Réinitialiser",
227
231
  "GLOBAL_Save": "Save",
228
232
  "GLOBAL_Save_as_draft": "Save draft",
229
- "GLOBAL_Draft_Saved": "Sauvegardé le {date}, à {time}",
230
- "GLOBAL_Draft_Saved_Today": "Sauvegardé à {time}",
231
233
  "GLOBAL_Schedule": "Schedule",
232
234
  "GLOBAL_Schedule_Action": "Schedule",
233
235
  "GLOBAL_Scheduled_Date": "Scheduled date",
@@ -250,6 +252,7 @@ declare const _default: {
250
252
  "GLOBAL_Validation": "Confirm",
251
253
  "GLOBAL_Video_Player": "Video player",
252
254
  "GLOBAL_Yesterday": "Yesterday",
255
+ "Global_Create": "Créer",
253
256
  "HIERARCHICAL_TAXONOMY_DESCRIPTION": "Browse and select options by checking the boxes. You can select an unlimited number of options.",
254
257
  "HOMEUSER_Home": "Home",
255
258
  "INPUT_FILE_ADVANCED_Dropbox": "Dropbox",
@@ -257,10 +260,11 @@ declare const _default: {
257
260
  "INPUT_FILE_ADVANCED_Google_Drive": "Google Drive",
258
261
  "INPUT_FILE_ADVANCED_File_Too_Large": "File exceeds the maximum allowed size (250 MB)",
259
262
  "INPUT_FILE_ADVANCED_Microsoft_365": "Microsoft 365",
260
- "INPUT_SELECT_Expand": "Expand",
261
263
  "INPUT_RichText_Html_Modal_Label": "HTML content",
262
264
  "INPUT_RichText_Html_Modal_Title": "Edit HTML content",
265
+ "INPUT_SELECT_Expand": "Expand",
263
266
  "INPUT_SELECT_Has_Reached_Limit": "You reached the limit of {limit} items",
267
+ "INTRANET_Selection_Group": "Select a group",
264
268
  "JIA_TINY_BUTTON_TOOLTIP": "AI features to help you write",
265
269
  "JIA_TINY_DEVELOP": "Develop",
266
270
  "JIA_TINY_SUMMARIZE": "Summarize",
@@ -284,20 +288,20 @@ declare const _default: {
284
288
  "PANEL_Edit_Slide_Background_Color": "Background color",
285
289
  "PANEL_Edit_Slide_Background_Opacity_Filter": "Background opacity filter",
286
290
  "PANEL_Image_Size": "Taille de l'image",
287
- "PANEL_Size_Small": "Petit",
288
- "PANEL_Size_Medium": "Moyen",
289
291
  "PANEL_Size_Large": "Grand",
290
- "PANEL_Title": "Titre",
292
+ "PANEL_Size_Medium": "Moyen",
293
+ "PANEL_Size_Small": "Petit",
291
294
  "PANEL_Text_Color": "Couleur du texte",
292
295
  "PANEL_Text_Size": "Taille du texte",
296
+ "PANEL_Title": "Titre",
293
297
  "PANEL_Widget_Empty_Setting": "Il n'y a rien à configurer",
294
298
  "PANEL_Widget_Extension_Name": "Nom de l'extension",
295
299
  "PANEL_Widget_Level": "Niveau d'affichage",
296
- "PANEL_Widget_Synchronize": "Synchronisation",
297
- "PANEL_Widget_Url": "Copier l'url du widget",
298
300
  "PANEL_Widget_Selection": "Style & décorations",
299
301
  "PANEL_Widget_Settings": "Configuration du widget",
302
+ "PANEL_Widget_Synchronize": "Synchronisation",
300
303
  "PANEL_Widget_Text": "Ajouter du texte",
304
+ "PANEL_Widget_Url": "Copier l'url du widget",
301
305
  "PLUGIN_Manager_CalDav_Prompt": "Tester la connexion CalDav",
302
306
  "PLUGIN_Manager_CardDav_Prompt": "Tester la connexion CardDav",
303
307
  "PLUGIN_Manager_Connection_Error": "Connexion impossible. Vérifiez vos identifiants",
@@ -329,15 +333,15 @@ declare const _default: {
329
333
  "STYLE_Line_Height": "Hauteur de ligne",
330
334
  "STYLE_Padding": "Marge interne",
331
335
  "STYLE_Position": "Position",
332
- "STYLE_Position_Top_Left": "Position haut gauche",
333
- "STYLE_Position_Top_Center": "Position haut centre",
334
- "STYLE_Position_Top_Right": "Position haut droite",
335
- "STYLE_Position_Center_Left": "Position centre gauche",
336
- "STYLE_Position_Center": "Position centre",
337
- "STYLE_Position_Center_Right": "Position centre droite",
338
- "STYLE_Position_Bottom_Left": "Position bas gauche",
339
336
  "STYLE_Position_Bottom_Center": "Position bas centre",
337
+ "STYLE_Position_Bottom_Left": "Position bas gauche",
340
338
  "STYLE_Position_Bottom_Right": "Position bas droite",
339
+ "STYLE_Position_Center": "Position centre",
340
+ "STYLE_Position_Center_Left": "Position centre gauche",
341
+ "STYLE_Position_Center_Right": "Position centre droite",
342
+ "STYLE_Position_Top_Center": "Position haut centre",
343
+ "STYLE_Position_Top_Left": "Position haut gauche",
344
+ "STYLE_Position_Top_Right": "Position haut droite",
341
345
  "STYLE_Radius": "Arrondi",
342
346
  "STYLE_Text_Align": "Alignement du texte",
343
347
  "STYLE_Text_Align_Center": "Center",
@@ -354,7 +358,10 @@ declare const _default: {
354
358
  "WIDGET_Agenda_Pending": "You haven't responded yet",
355
359
  "WIDGET_Builder": "Widget Builder",
356
360
  "WIDGET_Button_Empty_Text": "Ajouter un label",
361
+ "WIDGET_CALENDAR": "Calendar",
357
362
  "WIDGET_Calendar_CalDav": "Office Agenda",
363
+ "WIDGET_Calendar_Group_Events": "Group",
364
+ "WIDGET_Calendar_Last_Events": "List",
358
365
  "WIDGET_Cannot_Display": "A widget is available but cannot be displayed here for now... ({widget})",
359
366
  "WIDGET_Check_List_Description": "Add a checklist to keep track of progress",
360
367
  "WIDGET_Check_List_Help": "Collaboration mode allows users with access to this widget to modify it",
@@ -377,7 +384,6 @@ declare const _default: {
377
384
  "WIDGET_Datasource_Select_Document": "Sélectionner depuis la banque documentaire",
378
385
  "WIDGET_Datasource_Select_Wedoc_File": "Sélectionner depuis wedoc",
379
386
  "WIDGET_Datasource_Spreadsheet_Header_Error": "Cette feuille contient au moins une colonne sans titre",
380
- "WIDGET_Panel_Tpl_Warning_Message": "Il n'est pas possible de configurer ce widget en mode template",
381
387
  "WIDGET_Display_Level_1": "Icône",
382
388
  "WIDGET_Display_Level_2": "Icône + Pastille",
383
389
  "WIDGET_Display_Level_3": "Contenus",
@@ -392,6 +398,7 @@ declare const _default: {
392
398
  "WIDGET_Lucca_Absent_Until": "Absent jusqu'au",
393
399
  "WIDGET_Lucca_Absent_Until_Today": "Absent jusqu'a aujourd'hui",
394
400
  "WIDGET_Lucca_Absent_Until_Tomorrow": "Absent jusqu'a demain",
401
+ "WIDGET_Panel_Tpl_Warning_Message": "Il n'est pas possible de configurer ce widget en mode template",
395
402
  "WIDGET_Presence_Availability": "{max} places disponibles",
396
403
  "WIDGET_Presence_Is_Closed": "Il n'est plus possible de répondre à ce sondage",
397
404
  "WIDGET_Presence_Limit": "Limiter le nombre de places",
@@ -400,9 +407,9 @@ declare const _default: {
400
407
  "WIDGET_Prompt_Dropdown": "Configurer",
401
408
  "WIDGET_Prompt_Logout": "Se déconnecter",
402
409
  "WIDGET_Quick_Survey": "Add a survey to collect feedback",
410
+ "WIDGET_Quick_Survey_Reset": "Reset the survey answers",
403
411
  "WIDGET_Quick_Survey_Text": "Add a survey to collect feedback",
404
412
  "WIDGET_Quick_Survey_isStarted": "The survey has already some answers, you can't make any change to it, if you need to, please reset the survey.",
405
- "WIDGET_Quick_Survey_Reset": "Reset the survey answers",
406
413
  "WIDGET_Quick_Survey_isStarted_no_modification": "The survey has already some answers, some modifications are not possible, if needed, please start a new survey.",
407
414
  "WIDGET_Set_Widget": "Configurer",
408
415
  "WIDGET_Slider_Autoplay": "Défilement automatique",
@@ -429,17 +436,16 @@ declare const _default: {
429
436
  "WIDGET_Survey_Open_Help": "Allows other users to add suggestion",
430
437
  "WIDGET_Text_Use_Flex_Label": "Disposition flexible",
431
438
  "WIDGET_User_Profil": "Profil utilisateur",
432
- "WIDGET_User_Profil_Text": "Permettez à vos utilisateur un accès vers leur propre profil en un clic ! Idéal pour les encourager à le compléter. ",
433
- "WIDGET_User_Profil_Font_Weight_Label": "Gras",
434
439
  "WIDGET_User_Profil_Display_Mode_Label": "Affichage du nom",
440
+ "WIDGET_User_Profil_Font_Weight_Label": "Gras",
435
441
  "WIDGET_User_Profil_Only_Picture": "Image seule",
436
442
  "WIDGET_User_Profil_Picture_Alt_Label": "Image de l'utilisateur",
437
443
  "WIDGET_User_Profil_Picture_FirstName": "Avec prénom",
438
444
  "WIDGET_User_Profil_Picture_FirstName_LastName": "Avec prénom + nom",
445
+ "WIDGET_User_Profil_Text": "Permettez à vos utilisateur un accès vers leur propre profil en un clic ! Idéal pour les encourager à le compléter. ",
439
446
  "WIDGET_User_Profil_Text_Max_Length_Description": "Maximum 30 caractères",
440
447
  "WIDGET_User_Profil_Tooltip_Link_Text": "Accéder à votre profil",
441
448
  "WIDGET_Welcome": "Message d'accueil",
442
- "WIDGET_Welcome_Text": "Rendez vos pages plus personnelles en accueillant chaleureusement vos utilisateurs.",
443
449
  "WIDGET_Welcome_Default_Message": "Bienvenue",
444
450
  "WIDGET_elcome_Linebreak_Label": "Saut de ligne (après le message)",
445
451
  "GLOBAL_Reorder": "Reorder",
@@ -35,7 +35,7 @@ export type { JRCValidationButtonProps } from './components/JRCButton/JRCValidat
35
35
  export type { JRCButtonDownloadProps } from './components/JRCButtonDownload/JRCButtonDownload';
36
36
  export type { JRCButtonDropdownOptionProps, JRCButtonDropdownProps, } from './components/JRCButtonDropdown/JRCButtonDropdown.types';
37
37
  export type { JRCButtonFileProps } from './components/JRCButtonFile/JRCButtonFile';
38
- export type { CalendarEvent, CalendarView, JRCCalendarProps } from './components/JRCCalendar/types';
38
+ export type { CalendarEvent, CalendarView, JRCCalendarProps, JRCCalendarMode } from './components/JRCCalendar/types';
39
39
  export type { JRCCardProps } from './components/JRCCard/JRCCard';
40
40
  export type { JRCCardImgProps } from './components/JRCCard/JRCCardImg';
41
41
  export type { JRCColumnCenterProps } from './components/JRCColumnCenter/JRCColumnCenter';