jamespot-react-components 1.2.12 → 1.2.14
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/README.md +22 -15
- package/build/jamespot-react-components.js +1721 -1206
- package/build/jamespot-react-components.js.map +1 -1
- package/build/src/components/Common/JRCConditionalWrapper.stories.d.ts +9 -0
- package/build/src/components/Drives/hooks.d.ts +1 -1
- package/build/src/components/Form/Input/Deprecated/JRCFormAutocomplete/JRCFormAutocompleteAudience.stories.d.ts +3 -0
- package/build/src/components/Form/Input/Deprecated/JRCFormAutocomplete/JRCFormAutocompleteCommunity.stories.d.ts +3 -0
- package/build/src/components/Form/Input/Deprecated/JRCFormAutocomplete/JRCFormAutocompleteTaxonomy.stories.d.ts +3 -0
- package/build/src/components/Form/Input/Deprecated/JRCFormCheckbox/JRCFormCheckbox.stories.d.ts +5 -0
- package/build/src/components/Form/Input/Deprecated/JRCFormColor/JRCFormColor.stories.d.ts +4 -0
- package/build/src/components/Form/Input/Deprecated/JRCFormEmail/JRCFormEmail.stories.d.ts +4 -0
- package/build/src/components/Form/Input/Deprecated/JRCFormImage/JRCFormImage.stories.d.ts +4 -0
- package/build/src/components/Form/Input/Deprecated/JRCFormNumber/JRCFormNumber.stories.d.ts +4 -0
- package/build/src/components/Form/Input/Deprecated/JRCFormRange/JRCFormRange.stories.d.ts +4 -0
- package/build/src/components/Form/Input/Deprecated/JRCFormRichText/JRCFormRichTextField.stories.d.ts +7 -0
- package/build/src/components/Form/Input/Deprecated/JRCFormSelect/JRCFormSelect.stories.d.ts +17 -0
- package/build/src/components/Form/Input/Deprecated/JRCFormText/JRCFormText.stories.d.ts +4 -0
- package/build/src/components/Form/Input/Deprecated/JRCFormTextarea/JRCFormTextarea.stories.d.ts +4 -0
- package/build/src/components/Form/Input/Deprecated/JRCFormURL/JRCFormUrl.stories.d.ts +4 -0
- package/build/src/components/Form/Input/JRCInputCheckbox/JRCInputCheckbox.stories.d.ts +6 -0
- package/build/src/components/Form/Input/JRCInputCheckbox/JRCInputReorderCheckbox.stories.d.ts +4 -0
- package/build/src/components/Form/Input/JRCInputCheckbox/JRCInputToggle.stories.d.ts +4 -0
- package/build/src/components/Form/Input/JRCInputColor/JRCInputColor.stories.d.ts +6 -0
- package/build/src/components/Form/Input/JRCInputColor/JRCInputColorRaw.stories.d.ts +4 -0
- package/build/src/components/Form/Input/JRCInputDate/JRCInputDate.stories.d.ts +6 -0
- package/build/src/components/Form/Input/JRCInputDateTime/JRCInputDateTIme.stories.d.ts +6 -0
- package/build/src/components/Form/Input/JRCInputEmail/JRCInputEmail.stories.d.ts +6 -0
- package/build/src/components/Form/Input/JRCInputFile/JRCInputFile.stories.d.ts +4 -0
- package/build/src/components/Form/Input/JRCInputFileAdvanced/JRCInputFileAdvanced.stories.d.ts +5 -0
- package/build/src/components/Form/Input/JRCInputFileAdvanced/JRCInputFileAdvancedRaw.d.ts +3 -3
- package/build/src/components/Form/Input/JRCInputImage/JRCInputImage.stories.d.ts +5 -0
- package/build/src/components/Form/Input/JRCInputRange/JRCInputRange.stories.d.ts +6 -0
- package/build/src/components/Form/Input/JRCInputSearchRaw/JRCInputSearchRaw.stories.d.ts +5 -0
- package/build/src/components/Form/Input/JRCInputText/JRCInputText.stories.d.ts +9 -0
- package/build/src/components/Form/Input/JRCInputText/JRCInputText.style.d.ts +1 -1
- package/build/src/components/Form/Input/JRCInputTextarea/JRCInputTextarea.stories.d.ts +6 -0
- package/build/src/components/Form/Input/JRCInputTime/JRCInputTime.stories.d.ts +6 -0
- package/build/src/components/Form/Input/JRCInputTinyMCE/JRCInputTinyMCE.stories.d.ts +6 -0
- package/build/src/components/Form/Input/JRCInputTinyMCERaw/JRCInputTinyMCERaw.stories.d.ts +4 -0
- package/build/src/components/Form/Input/JRCInputUrl/JRCInputUrl.stories.d.ts +6 -0
- package/build/src/components/Form/Input/JRCSelect/JRCAutocomplete.stories.d.ts +9 -0
- package/build/src/components/Form/Input/JRCSelect/JRCAutocompleteCommunity.stories.d.ts +12 -0
- package/build/src/components/Form/Input/JRCSelect/JRCInputAudience.stories.d.ts +4 -0
- package/build/src/components/Form/Input/JRCSelect/JRCInputAutocompleteViews.d.ts +12 -3
- package/build/src/components/Form/Input/JRCSelect/JRCInputSelect.stories.d.ts +11 -0
- package/build/src/components/Form/Input/JRCSelect/JRCInputSelect.style.d.ts +3 -2
- package/build/src/components/Form/Input/JRCSelect/JRCInputSelect.types.d.ts +11 -1
- package/build/src/components/Form/Input/JRCSelect/JRCInputSelectAsync.stories.d.ts +10 -0
- package/build/src/components/Form/Input/JRCSelect/JRCInputSelectHierarchicalTree.stories.d.ts +3 -0
- package/build/src/components/Form/Input/JRCSelect/JRCInputSelectList.stories.d.ts +3 -0
- package/build/src/components/JRCAlert/JRCAlert.stories.d.ts +7 -0
- package/build/src/components/JRCAppHeader/JRCAppHeader.stories.d.ts +4 -0
- package/build/src/components/JRCAttachments/JRCAttachments.stories.d.ts +4 -0
- package/build/src/components/JRCAvatar/JRCAvatar.stories.d.ts +4 -0
- package/build/src/components/JRCAvatars/JRCAvatars.d.ts +6 -0
- package/build/src/components/JRCAvatars/JRCAvatars.stories.d.ts +6 -0
- package/build/src/components/JRCBreadcrumb/JRCBreadcrumb.stories.d.ts +4 -0
- package/build/src/components/JRCBusinessContactList/JRCBusinessContactList.d.ts +5 -0
- package/build/src/components/JRCBusinessContactList/JRCBusinessContactList.stories.d.ts +4 -0
- package/build/src/components/JRCBusinessContacts/JRCBusinessContacts.d.ts +11 -0
- package/build/src/components/JRCBusinessContacts/JRCBusinessContacts.stories.d.ts +6 -0
- package/build/src/components/JRCButton/JRCButton.stories.d.ts +1 -2
- package/build/src/components/JRCButtonDownload/JRCButtonDownload.stories.d.ts +7 -0
- package/build/src/components/JRCButtonFile/JRCButtonFile.stories.d.ts +6 -0
- package/build/src/components/JRCCalendar/CalendarStyle.d.ts +3 -0
- package/build/src/components/JRCCalendar/JRCCalendar.d.ts +10 -0
- package/build/src/components/JRCCalendar/JRCCalendar.stories.d.ts +6 -0
- package/build/src/components/JRCCalendar/JRCCalendarEvent.d.ts +17 -0
- package/build/src/components/JRCCard/JRCCard.stories.d.ts +4 -0
- package/build/src/components/JRCCard/JRCCardImg.stories.d.ts +4 -0
- package/build/src/components/JRCCollapse/JRCCollapse.stories.d.ts +8 -0
- package/build/src/components/JRCCommentsBloc/JRCComment.d.ts +3 -3
- package/build/src/components/JRCCommentsBloc/JRCCommentsBloc.d.ts +3 -3
- package/build/src/components/JRCCommentsBloc/JRCCommentsBloc.stories.d.ts +4 -0
- package/build/src/components/JRCCommentsBloc/components/EditComment.d.ts +3 -3
- package/build/src/components/JRCCommentsBloc/components/NewComment.d.ts +3 -3
- package/build/src/components/JRCCropImage/JRCCropImage.stories.d.ts +4 -0
- package/build/src/components/JRCDate/JRCDate.stories.d.ts +8 -0
- package/build/src/components/JRCDisplayCard/JRCDisplayCard.stories.d.ts +9 -0
- package/build/src/components/JRCDropDown/JRCDropDown.stories.d.ts +4 -0
- package/build/src/components/JRCEllipsis/JRCEllipsis.stories.d.ts +9 -0
- package/build/src/components/JRCEmptySpace/JRCEmptySpace.stories.d.ts +3 -0
- package/build/src/components/JRCFile/JRCFile.stories.d.ts +3 -0
- package/build/src/components/JRCFileViewer/JRCFileViewer.stories.d.ts +3 -0
- package/build/src/components/JRCFolders/JRCFolders.d.ts +1 -1
- package/build/src/components/JRCFolders/JRCFolders.stories.d.ts +8 -0
- package/build/src/components/JRCFolders/styles.d.ts +1 -1
- package/build/src/components/JRCFolders/types.d.ts +7 -3
- package/build/src/components/JRCGroupList/JRCGroupList.d.ts +5 -0
- package/build/src/components/JRCGroupList/JRCGroupList.stories.d.ts +4 -0
- package/build/src/components/JRCGroups/JRCGroups.d.ts +12 -0
- package/build/src/components/JRCGroups/JRCGroups.stories.d.ts +6 -0
- package/build/src/components/JRCHref/JRCHref.stories.d.ts +4 -0
- package/build/src/components/JRCHtml/JRCHtml.stories.d.ts +4 -0
- package/build/src/components/JRCIcon/JRCIcon.d.ts +3 -1
- package/build/src/components/JRCIconButton/JRCIconButton.stories.d.ts +4 -0
- package/build/src/components/JRCImg/JRCImg.stories.d.ts +5 -0
- package/build/src/components/JRCList/JRCList.stories.d.ts +11 -0
- package/build/src/components/JRCList/JRCListMockData.stories.d.ts +3 -0
- package/build/src/components/JRCMenuItem/JRCMenuItem.d.ts +1 -1
- package/build/src/components/JRCMessage/JRCMessage.stories.d.ts +7 -0
- package/build/src/components/JRCModal/JRCModal.styles.d.ts +3 -3
- package/build/src/components/JRCModal/templates/JRCModal.stories.d.ts +3 -0
- package/build/src/components/JRCModal/templates/JRCModalForm.stories.d.ts +3 -0
- package/build/src/components/JRCModalImg/JRCModalImg.stories.d.ts +6 -0
- package/build/src/components/JRCObjectList/JRCObjectList.d.ts +16 -0
- package/build/src/components/JRCPagination/JRCPagination.stories.d.ts +4 -0
- package/build/src/components/JRCPublishButton/JRCPublishButton.d.ts +17 -0
- package/build/src/components/JRCPublishButton/JRCPublishButton.stories.d.ts +8 -0
- package/build/src/components/JRCPublishButton/PublishButtonEntry.d.ts +16 -0
- package/build/src/components/JRCSidePanelModal/JRCSidePanelModal.stories.d.ts +4 -0
- package/build/src/components/JRCTabs/JRCTabs.d.ts +1 -1
- package/build/src/components/JRCTabs/JRCTabs.stories.d.ts +6 -0
- package/build/src/components/JRCTag/JRCTag.stories.d.ts +4 -0
- package/build/src/components/JRCTooltip/JRCBaseTooltip.d.ts +1 -0
- package/build/src/components/JRCTooltip/JRCTooltip.d.ts +2 -0
- package/build/src/components/JRCTooltip/JRCTooltip.stories.d.ts +9 -7
- package/build/src/components/JRCUserList/JRCUserList.d.ts +5 -0
- package/build/src/components/JRCUserList/JRCUserList.stories.d.ts +4 -0
- package/build/src/components/JRCUserPopup/JRCUserPopup.stories.d.ts +4 -0
- package/build/src/components/JRCUsers/JRCUsers.d.ts +11 -0
- package/build/src/components/JRCUsers/JRCUsers.stories.d.ts +6 -0
- package/build/src/components/Stepper/JRCStepper.stories.d.ts +4 -0
- package/build/src/components/Templates/JRCTemplate.stories.d.ts +5 -0
- package/build/src/components/Templates/template.styles.d.ts +2 -2
- package/build/src/components/Widgets/JRCWidgetArticleGallery/JRCWidgetArticleGallery.stories.d.ts +7 -0
- package/build/src/components/Widgets/JRCWidgetArticleText/JRCWidgetArticleText.stories.d.ts +194 -0
- package/build/src/components/Widgets/JRCWidgetAttachment/JRCWidgetAttachment.stories.d.ts +6 -0
- package/build/src/components/Widgets/JRCWidgetButton/JRCWidgetButton.stories.d.ts +3 -0
- package/build/src/components/Widgets/JRCWidgetCheckList/JRCWidgetCheckList.stories.d.ts +3 -0
- package/build/src/components/Widgets/JRCWidgetImage/JRCWidgetImage.stories.d.ts +3 -0
- package/build/src/components/Widgets/JRCWidgetQuickSurvey/JRCWidgetQuickSurvey.stories.d.ts +3 -0
- package/build/src/components/Widgets/JRCWidgetSlider/JRCWidgetSlider.stories.d.ts +4 -0
- package/build/src/components/Widgets/JRCWidgetTable/JRCWidgetExcelDatasourceTableEditor.d.ts +3 -3
- package/build/src/components/Widgets/JRCWidgetTable/JRCWidgetTable.stories.d.ts +30 -0
- package/build/src/index.d.ts +2 -0
- package/build/src/styles/theme.d.ts +1 -1
- package/build/src/styles/utils.d.ts +20 -0
- package/build/src/types.d.ts +3 -0
- package/build/src/utils/utils.array.d.ts +1 -0
- package/build/tsconfig.tsbuildinfo +1 -0
- package/package.json +10 -4
- package/build/src/components/JRCFolders/JRCFolder.d.ts +0 -4
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { JRCUsers } from './JRCUsers';
|
|
3
|
+
declare const _default: import("@storybook/core/csf").ComponentAnnotations<import("@storybook/react/dist/types-5617c98e").R, import("@storybook/core/csf").Args>;
|
|
4
|
+
export default _default;
|
|
5
|
+
type Story = StoryObj<typeof JRCUsers>;
|
|
6
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
declare const _default: import("@storybook/core/csf").ComponentAnnotations<import("@storybook/react/dist/types-5617c98e").R, import("@storybook/core/csf").Args>;
|
|
3
|
+
export default _default;
|
|
4
|
+
export declare const FadeStepper: () => React.JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { JRCAppColumnProps } from './template.type';
|
|
2
|
+
declare const _default: import("@storybook/core/csf").ComponentAnnotations<import("@storybook/react/dist/types-5617c98e").R, import("@storybook/core/csf").Args>;
|
|
3
|
+
export default _default;
|
|
4
|
+
export declare const Primary: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-5617c98e").R, JRCAppColumnProps>;
|
|
5
|
+
export declare const Secondary: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-5617c98e").R, any>;
|
|
@@ -33,7 +33,7 @@ export declare const StickyColWrapper: import("styled-components").StyledCompone
|
|
|
33
33
|
export declare const MainColumn: import("styled-components").StyledComponent<typeof JRCColumn, import("styled-components").DefaultTheme, {}, never>;
|
|
34
34
|
export declare const AppColumn: import("styled-components").StyledComponent<typeof JRCColumn, import("styled-components").DefaultTheme, Open, never>;
|
|
35
35
|
export declare const FlexDescription: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
|
|
36
|
-
export declare const EasterEggIcon: import("styled-components").StyledComponent<({ color, variant, name, size, isMargin, className, faOptions, }: import("../JRCIcon/JRCIcon").JRCIconProps) => React.JSX.Element, import("styled-components").DefaultTheme, {
|
|
36
|
+
export declare const EasterEggIcon: import("styled-components").StyledComponent<({ color, variant, name, size, isMargin, className, faOptions, iconColor, role, }: import("../JRCIcon/JRCIcon").JRCIconProps) => React.JSX.Element, import("styled-components").DefaultTheme, {
|
|
37
37
|
easterEgg: boolean;
|
|
38
38
|
}, never>;
|
|
39
39
|
export declare const reduce: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<Open, import("styled-components").DefaultTheme>>;
|
|
@@ -100,7 +100,7 @@ export declare const OpenCloseButton: import("styled-components").StyledComponen
|
|
|
100
100
|
is?: string | undefined;
|
|
101
101
|
"aria-activedescendant"?: string | undefined;
|
|
102
102
|
"aria-atomic"?: (boolean | "true" | "false") | undefined;
|
|
103
|
-
"aria-autocomplete"?: "
|
|
103
|
+
"aria-autocomplete"?: "list" | "none" | "inline" | "both" | undefined;
|
|
104
104
|
"aria-busy"?: (boolean | "true" | "false") | undefined;
|
|
105
105
|
"aria-checked"?: boolean | "true" | "false" | "mixed" | undefined;
|
|
106
106
|
"aria-colcount"?: number | undefined;
|
package/build/src/components/Widgets/JRCWidgetArticleGallery/JRCWidgetArticleGallery.stories.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { WidgetArticleGalleryContent } from 'jamespot-user-api';
|
|
2
|
+
declare const _default: import("@storybook/core/csf").ComponentAnnotations<import("@storybook/react/dist/types-5617c98e").R, import("@storybook/core/csf").Args>;
|
|
3
|
+
export default _default;
|
|
4
|
+
export declare const Primary: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-5617c98e").R, WidgetArticleGalleryContent & {
|
|
5
|
+
maxWidth: number;
|
|
6
|
+
onClick: (idFile: number) => void;
|
|
7
|
+
}>;
|
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import { WidgetArticleTextContent } from 'jamespot-user-api';
|
|
2
|
+
declare const _default: import("@storybook/core/csf").ComponentAnnotations<import("@storybook/react/dist/types-5617c98e").R, import("@storybook/core/csf").Args>;
|
|
3
|
+
export default _default;
|
|
4
|
+
export declare const Primary: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-5617c98e").R, {
|
|
5
|
+
mode: "view" | "preview" | "edit";
|
|
6
|
+
inplace: boolean;
|
|
7
|
+
onChange: (args_0: {
|
|
8
|
+
widgets?: import("jamespot-user-api").WidgetWrapperGeneric<({
|
|
9
|
+
layers?: string[] | undefined;
|
|
10
|
+
} & import("jamespot-user-api").WidgetArticleAttachmentType) | ({
|
|
11
|
+
layers?: string[] | undefined;
|
|
12
|
+
} & import("jamespot-user-api").WidgetArticleButtonType) | ({
|
|
13
|
+
layers?: string[] | undefined;
|
|
14
|
+
} & import("jamespot-user-api").WidgetArticleGalleryType) | ({
|
|
15
|
+
layers?: string[] | undefined;
|
|
16
|
+
} & import("jamespot-user-api").WidgetArticleImageType) | ({
|
|
17
|
+
layers?: string[] | undefined;
|
|
18
|
+
} & import("jamespot-user-api").WidgetArticleTitleType) | ({
|
|
19
|
+
layers?: string[] | undefined;
|
|
20
|
+
} & import("jamespot-user-api").WidgetArticleTextType) | ({
|
|
21
|
+
layers?: string[] | undefined;
|
|
22
|
+
} & import("jamespot-user-api").WidgetArticleSliderType) | ({
|
|
23
|
+
layers?: string[] | undefined;
|
|
24
|
+
} & import("jamespot-user-api").WidgetType<{
|
|
25
|
+
widgets?: import("jamespot-user-api").WidgetBaseType[] | undefined;
|
|
26
|
+
arr?: import("jamespot-user-api").WidgetCheckListContentArr[] | undefined;
|
|
27
|
+
css?: Record<string, string> | undefined;
|
|
28
|
+
edit?: boolean | undefined;
|
|
29
|
+
}>) | ({
|
|
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
|
+
uri?: string | undefined;
|
|
38
|
+
limit?: number | boolean | undefined;
|
|
39
|
+
tableColumnsData?: {
|
|
40
|
+
name?: string | undefined;
|
|
41
|
+
label?: string | undefined;
|
|
42
|
+
isVisible?: boolean | undefined;
|
|
43
|
+
textEllipsis?: boolean | undefined;
|
|
44
|
+
dateFormat?: "time" | "date" | "date-time" | "date-time-sec" | "time-sec" | undefined;
|
|
45
|
+
numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
|
|
46
|
+
}[] | undefined;
|
|
47
|
+
tableHeadColor?: string | undefined;
|
|
48
|
+
tableHeadTextColor?: string | undefined;
|
|
49
|
+
tableHeadIconColor?: string | undefined;
|
|
50
|
+
tableRowColor?: string | undefined;
|
|
51
|
+
tableRowTextColor?: string | undefined;
|
|
52
|
+
tableBorderRadius?: number | undefined;
|
|
53
|
+
tableSizedColumns?: boolean | undefined;
|
|
54
|
+
tableSizedColumnsWidth?: number | undefined;
|
|
55
|
+
};
|
|
56
|
+
}) | ({
|
|
57
|
+
layers?: string[] | undefined;
|
|
58
|
+
} & import("jamespot-user-api").WidgetPresenceType) | ({
|
|
59
|
+
layers?: string[] | undefined;
|
|
60
|
+
} & import("jamespot-user-api").WidgetQuickSurveyType) | ({
|
|
61
|
+
layers?: string[] | undefined;
|
|
62
|
+
} & import("jamespot-user-api").WidgetType<{
|
|
63
|
+
calEventsLimit?: boolean | undefined;
|
|
64
|
+
calEventsLimitValue?: number | undefined;
|
|
65
|
+
calEventsPromptStatus?: string | undefined;
|
|
66
|
+
}>) | ({
|
|
67
|
+
layers?: string[] | undefined;
|
|
68
|
+
} & import("jamespot-user-api").WidgetType<{
|
|
69
|
+
contactLimit?: boolean | undefined;
|
|
70
|
+
contactLimitValue?: number | undefined;
|
|
71
|
+
contactPromptStatus?: string | undefined;
|
|
72
|
+
}>) | ({
|
|
73
|
+
layers?: string[] | undefined;
|
|
74
|
+
} & import("jamespot-user-api").WidgetType<{
|
|
75
|
+
emailsLimit?: boolean | undefined;
|
|
76
|
+
emailsLimitValue?: number | undefined;
|
|
77
|
+
emailsPromptStatus?: string | undefined;
|
|
78
|
+
}>) | ({
|
|
79
|
+
layers?: string[] | undefined;
|
|
80
|
+
} & import("jamespot-user-api").WidgetType<{
|
|
81
|
+
url?: string | undefined;
|
|
82
|
+
}>)>[] | undefined;
|
|
83
|
+
} & (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 | {
|
|
84
|
+
text?: string | undefined;
|
|
85
|
+
color?: string | undefined;
|
|
86
|
+
url?: string | undefined;
|
|
87
|
+
target?: string | undefined;
|
|
88
|
+
variant?: "contained" | "outlined" | undefined;
|
|
89
|
+
backgroundColor?: string | undefined;
|
|
90
|
+
borderRadius?: string | undefined;
|
|
91
|
+
fontSize?: string | undefined;
|
|
92
|
+
buttonSize?: "md" | "sm" | "lg" | undefined;
|
|
93
|
+
openingType?: "link" | "anchor" | "popup" | undefined;
|
|
94
|
+
openingTypeLink?: {
|
|
95
|
+
url: string;
|
|
96
|
+
target: string;
|
|
97
|
+
} | undefined;
|
|
98
|
+
openingTypeAnchor?: {
|
|
99
|
+
uniqid: string;
|
|
100
|
+
} | undefined;
|
|
101
|
+
openingTypePopup?: {
|
|
102
|
+
title: string;
|
|
103
|
+
widgets: import("jamespot-user-api").WidgetBaseType[];
|
|
104
|
+
} | undefined;
|
|
105
|
+
} | {
|
|
106
|
+
widgets?: import("jamespot-user-api").WidgetBaseType[] | undefined;
|
|
107
|
+
arr?: import("jamespot-user-api").WidgetCheckListContentArr[] | undefined;
|
|
108
|
+
css?: Record<string, string> | undefined;
|
|
109
|
+
edit?: boolean | undefined;
|
|
110
|
+
} | {
|
|
111
|
+
uri?: string | undefined;
|
|
112
|
+
limit?: number | boolean | undefined;
|
|
113
|
+
tableColumnsData?: {
|
|
114
|
+
name?: string | undefined;
|
|
115
|
+
label?: string | undefined;
|
|
116
|
+
isVisible?: boolean | undefined;
|
|
117
|
+
textEllipsis?: boolean | undefined;
|
|
118
|
+
dateFormat?: "time" | "date" | "date-time" | "date-time-sec" | "time-sec" | undefined;
|
|
119
|
+
numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
|
|
120
|
+
}[] | undefined;
|
|
121
|
+
tableHeadColor?: string | undefined;
|
|
122
|
+
tableHeadTextColor?: string | undefined;
|
|
123
|
+
tableHeadIconColor?: string | undefined;
|
|
124
|
+
tableRowColor?: string | undefined;
|
|
125
|
+
tableRowTextColor?: string | undefined;
|
|
126
|
+
tableBorderRadius?: number | undefined;
|
|
127
|
+
tableSizedColumns?: boolean | undefined;
|
|
128
|
+
tableSizedColumnsWidth?: number | undefined;
|
|
129
|
+
} | {
|
|
130
|
+
uri?: string | undefined;
|
|
131
|
+
limit?: number | boolean | undefined;
|
|
132
|
+
tableColumnsData?: {
|
|
133
|
+
name?: string | undefined;
|
|
134
|
+
label?: string | undefined;
|
|
135
|
+
isVisible?: boolean | undefined;
|
|
136
|
+
textEllipsis?: boolean | undefined;
|
|
137
|
+
dateFormat?: "time" | "date" | "date-time" | "date-time-sec" | "time-sec" | undefined;
|
|
138
|
+
numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
|
|
139
|
+
}[] | undefined;
|
|
140
|
+
tableHeadColor?: string | undefined;
|
|
141
|
+
tableHeadTextColor?: string | undefined;
|
|
142
|
+
tableHeadIconColor?: string | undefined;
|
|
143
|
+
tableRowColor?: string | undefined;
|
|
144
|
+
tableRowTextColor?: string | undefined;
|
|
145
|
+
tableBorderRadius?: number | undefined;
|
|
146
|
+
tableSizedColumns?: boolean | undefined;
|
|
147
|
+
tableSizedColumnsWidth?: number | undefined;
|
|
148
|
+
} | {
|
|
149
|
+
limit?: number | boolean | undefined;
|
|
150
|
+
limitValue?: number | undefined;
|
|
151
|
+
closing?: boolean | 0 | 1 | undefined;
|
|
152
|
+
isClosed?: boolean | 0 | 1 | undefined;
|
|
153
|
+
} | {
|
|
154
|
+
widgets?: import("jamespot-user-api").WidgetBaseType[] | undefined;
|
|
155
|
+
arr?: import("jamespot-user-api").WidgetQuickSurveyContentArr[] | undefined;
|
|
156
|
+
css?: Record<string, string> | undefined;
|
|
157
|
+
closing?: boolean | 0 | 1 | undefined;
|
|
158
|
+
isClosed?: boolean | 0 | 1 | undefined;
|
|
159
|
+
open?: boolean | 0 | 1 | undefined;
|
|
160
|
+
multi?: boolean | 0 | 1 | undefined;
|
|
161
|
+
showResult?: boolean | 0 | 1 | undefined;
|
|
162
|
+
isNotDisabled?: boolean | 0 | 1 | undefined;
|
|
163
|
+
seeResponseAfter?: boolean | 0 | 1 | undefined;
|
|
164
|
+
anonymize?: boolean | 0 | 1 | undefined;
|
|
165
|
+
} | {
|
|
166
|
+
calEventsLimit?: boolean | undefined;
|
|
167
|
+
calEventsLimitValue?: number | undefined;
|
|
168
|
+
calEventsPromptStatus?: string | undefined;
|
|
169
|
+
} | {
|
|
170
|
+
contactLimit?: boolean | undefined;
|
|
171
|
+
contactLimitValue?: number | undefined;
|
|
172
|
+
contactPromptStatus?: string | undefined;
|
|
173
|
+
} | {
|
|
174
|
+
emailsLimit?: boolean | undefined;
|
|
175
|
+
emailsLimitValue?: number | undefined;
|
|
176
|
+
emailsPromptStatus?: string | undefined;
|
|
177
|
+
} | {
|
|
178
|
+
url?: string | undefined;
|
|
179
|
+
}), args_1: boolean, ...args_2: unknown[]) => void;
|
|
180
|
+
onStateChange: (args_0: {
|
|
181
|
+
busy?: boolean | undefined;
|
|
182
|
+
loading?: boolean | undefined;
|
|
183
|
+
initialized?: boolean | undefined;
|
|
184
|
+
mounted?: boolean | undefined;
|
|
185
|
+
hover?: boolean | undefined;
|
|
186
|
+
empty?: boolean | undefined;
|
|
187
|
+
locked?: boolean | undefined;
|
|
188
|
+
}, ...args_1: unknown[]) => void;
|
|
189
|
+
width?: number | undefined;
|
|
190
|
+
isComponentVisible?: boolean | undefined;
|
|
191
|
+
onClick?: ((...args: unknown[]) => void) | undefined;
|
|
192
|
+
} & {
|
|
193
|
+
content: WidgetArticleTextContent;
|
|
194
|
+
}>;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { JRCWidgetAttachmentProps } from './JRCWidgetAttachment';
|
|
2
|
+
declare const _default: import("@storybook/core/csf").ComponentAnnotations<import("@storybook/react/dist/types-5617c98e").R, import("@storybook/core/csf").Args>;
|
|
3
|
+
export default _default;
|
|
4
|
+
export declare const Primary: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-5617c98e").R, JRCWidgetAttachmentProps & {
|
|
5
|
+
onClick: (idFile: number) => void;
|
|
6
|
+
}>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const _default: import("@storybook/core/csf").ComponentAnnotations<import("@storybook/react/dist/types-5617c98e").R, import("@storybook/core/csf").Args>;
|
|
2
|
+
export default _default;
|
|
3
|
+
export declare const Primary: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-5617c98e").R, import("@storybook/core/csf").Args>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const _default: import("@storybook/core/csf").ComponentAnnotations<import("@storybook/react/dist/types-5617c98e").R, import("@storybook/core/csf").Args>;
|
|
2
|
+
export default _default;
|
|
3
|
+
export declare const Primary: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-5617c98e").R, import("@storybook/core/csf").Args>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const _default: import("@storybook/core/csf").ComponentAnnotations<import("@storybook/react/dist/types-5617c98e").R, import("@storybook/core/csf").Args>;
|
|
2
|
+
export default _default;
|
|
3
|
+
export declare const Primary: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-5617c98e").R, import("@storybook/core/csf").Args>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
declare const _default: import("@storybook/core/csf").ComponentAnnotations<import("@storybook/react/dist/types-5617c98e").R, import("@storybook/core/csf").Args>;
|
|
2
|
+
export default _default;
|
|
3
|
+
export declare const Default: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-5617c98e").R, import("@storybook/core/csf").Args>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { JRCWidgetSliderProps } from './JRCWidgetSlider';
|
|
2
|
+
declare const _default: import("@storybook/core/csf").ComponentAnnotations<import("@storybook/react/dist/types-5617c98e").R, import("@storybook/core/csf").Args>;
|
|
3
|
+
export default _default;
|
|
4
|
+
export declare const Primary: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-5617c98e").R, JRCWidgetSliderProps>;
|
package/build/src/components/Widgets/JRCWidgetTable/JRCWidgetExcelDatasourceTableEditor.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { JDatasourceApi,
|
|
2
|
+
import { JDatasourceApi, JWedocApi, Network, WidgetEditorActions, WidgetEditorErrorActions, WidgetExcelDatasourceTableContent } from 'jamespot-user-api';
|
|
3
3
|
import { EditorBaseContext, Handlers, HookIsActive } from '../context/provider';
|
|
4
|
+
import { FoldersHandlers } from '../../JRCFolders/types';
|
|
4
5
|
export type WidgetExcelDatasourceHandlers = Handlers & {
|
|
5
|
-
jamespot: {
|
|
6
|
+
jamespot: FoldersHandlers & {
|
|
6
7
|
datasource: Omit<JDatasourceApi, 'jApi' | 'network'>;
|
|
7
8
|
network: Pick<Network, 'token' | 'postFile' | 'getUrl'>;
|
|
8
|
-
filebank: Pick<JFilebankApi, 'getBanks' | 'getFolders' | 'getDocuments'>;
|
|
9
9
|
wedoc: Pick<JWedocApi, 'getFiles'>;
|
|
10
10
|
};
|
|
11
11
|
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { WidgetTableColumn } from 'jamespot-user-api';
|
|
2
|
+
declare const _default: import("@storybook/core/csf").ComponentAnnotations<import("@storybook/react/dist/types-5617c98e").R, import("@storybook/core/csf").Args>;
|
|
3
|
+
export default _default;
|
|
4
|
+
export declare const getVisibleColumns: (tableColumnsData: {
|
|
5
|
+
name?: string | undefined;
|
|
6
|
+
label?: string | undefined;
|
|
7
|
+
isVisible?: boolean | undefined;
|
|
8
|
+
textEllipsis?: boolean | undefined;
|
|
9
|
+
dateFormat?: "time" | "date" | "date-time" | "date-time-sec" | "time-sec" | undefined;
|
|
10
|
+
numberFormat?: "fr-FR" | "en-EN" | "filesize" | undefined;
|
|
11
|
+
}[], columns: WidgetTableColumn[]) => {
|
|
12
|
+
type: "number" | "select" | "title" | "text" | "date" | "email" | "file" | "url" | "uri" | "datetime" | "transient";
|
|
13
|
+
name: string;
|
|
14
|
+
label: string;
|
|
15
|
+
widget: {} | {
|
|
16
|
+
type: "text";
|
|
17
|
+
} | {
|
|
18
|
+
options: {
|
|
19
|
+
value: string;
|
|
20
|
+
label: string;
|
|
21
|
+
}[];
|
|
22
|
+
type: "select";
|
|
23
|
+
} | {
|
|
24
|
+
type: "date";
|
|
25
|
+
};
|
|
26
|
+
sortable?: boolean | undefined;
|
|
27
|
+
}[];
|
|
28
|
+
export declare const WidgetTable: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-5617c98e").R, import("@storybook/core/csf").Args>;
|
|
29
|
+
export declare const WidgetDatasourceTableStudio: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-5617c98e").R, import("@storybook/core/csf").Args>;
|
|
30
|
+
export declare const WidgetExcelDatasourceTable: import("@storybook/core/csf").AnnotatedStoryFn<import("@storybook/react/dist/types-5617c98e").R, import("@storybook/core/csf").Args>;
|
package/build/src/index.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export { JRC404 } from './components/404';
|
|
|
29
29
|
export { BETA_JRCDoubleClick } from './components/Beta/BETA_JRCDoubleClick/BETA_JRCDoubleClick';
|
|
30
30
|
export { BETA_JRCDragAndDrop } from './components/Beta/BETA_JRCDragAndDrop/BETA_JRCDragAndDrop';
|
|
31
31
|
export { DashedFocusBorder } from './components/Common/DashedFocusBorder';
|
|
32
|
+
export { JRCCalendar } from './components/JRCCalendar/JRCCalendar';
|
|
32
33
|
export { JRCConditionalWrapper } from './components/Common/JRCConditionalWrapper';
|
|
33
34
|
export { JRCDraggingPlaceholder } from './components/Common/JRCDraggingPlaceholder';
|
|
34
35
|
export { JRCDriveDropbox } from './components/Drives/JRCDriveDropbox';
|
|
@@ -133,6 +134,7 @@ export { JRCModal } from './components/JRCModal/templates/JRCModal';
|
|
|
133
134
|
export { JRCModalForm } from './components/JRCModal/templates/JRCModalForm';
|
|
134
135
|
export { JRCModalImg } from './components/JRCModalImg/JRCModalImg';
|
|
135
136
|
export { JRCPagination } from './components/JRCPagination/JRCPagination';
|
|
137
|
+
export { JRCPublishButton } from './components/JRCPublishButton/JRCPublishButton';
|
|
136
138
|
export { JRCSidePanelModal } from './components/JRCSidePanelModal/JRCSidePanelModal';
|
|
137
139
|
export { JRCSkeletonLine } from './components/JRCSkeleton/JRCSkeletonLine';
|
|
138
140
|
export { JRCSkeletonList } from './components/JRCSkeleton/JRCSkeletonList';
|
|
@@ -23,7 +23,7 @@ export type Colors = 'primary' | 'secondary' | 'headerColor' | 'headerTextColor'
|
|
|
23
23
|
type ThemeConfigColorType = {
|
|
24
24
|
[color in Colors]: string;
|
|
25
25
|
};
|
|
26
|
-
export type Shades = 'primaryL15' | 'primaryL80' | 'primaryL90' | 'primaryD20' | 'secondaryL15' | 'secondaryL80' | 'secondaryL90' | 'secondaryD20' | 'greenL20' | 'greenL80' | 'greenL90' | 'greenD20' | 'raspberryL95' | 'orangeL15' | 'orangeL80' | 'orangeL90' | 'orangeD20';
|
|
26
|
+
export type Shades = 'primaryL15' | 'primaryL80' | 'primaryL90' | 'primaryD20' | 'secondaryL15' | 'secondaryL80' | 'secondaryL90' | 'secondaryD20' | 'greenL20' | 'greenL80' | 'greenL90' | 'greenD20' | 'raspberryL95' | 'orangeL15' | 'orangeL80' | 'orangeL90' | 'orangeD20' | 'yellowL80' | 'yellowL90';
|
|
27
27
|
type ThemeConfigShadeType = {
|
|
28
28
|
[color in Shades]: string;
|
|
29
29
|
};
|
|
@@ -3,6 +3,26 @@ export declare const hexToRgb: (hex: string) => {
|
|
|
3
3
|
g: number;
|
|
4
4
|
b: number;
|
|
5
5
|
};
|
|
6
|
+
/**
|
|
7
|
+
* Darkens the color following a linear distorsion
|
|
8
|
+
* @param hex Color in hexadecimal format, beginning with the # character
|
|
9
|
+
* @param darkPercentage dark percentage (bewteen 0 and 1, 0 beeing the same color, 1 beeing black)
|
|
10
|
+
* @returns hexadecimal color
|
|
11
|
+
*/
|
|
12
|
+
export declare const getDarkShade: (hex: string, darkPercentage: number) => string;
|
|
13
|
+
/**
|
|
14
|
+
* Lightens the color following a linear distorsion
|
|
15
|
+
* @param hex Color in hexadecimal format, beginning with the # character
|
|
16
|
+
* @param lightPercentage light percentage (bewteen 0 and 1, 0 beeing the same color, 1 beeing white)
|
|
17
|
+
* @returns hexadecimal color
|
|
18
|
+
*/
|
|
19
|
+
export declare const getLightShade: (hex: string, lightPercentage: number) => string;
|
|
20
|
+
/**
|
|
21
|
+
* @param hexColor a color in the format #XXX or #XXXXXX
|
|
22
|
+
* @param adjustPercent a number between -1 and 1, <0 for darkening, >0 for lightening
|
|
23
|
+
* @returns a string of the form #XXXXXX representing the modified color. Returns undefined if parameters are invalid.
|
|
24
|
+
*/
|
|
25
|
+
export declare const modifyColorBrightness: (hexColor: string, adjustPercent: number) => string | undefined;
|
|
6
26
|
export declare const HSBToRGB: (hue: number, saturation: number, brightness: number) => number[];
|
|
7
27
|
export declare const RGBToHSB: (r: number, g: number, b: number) => number[];
|
|
8
28
|
export declare const hexToHSL: (H: any) => number[];
|
package/build/src/types.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export type { AutocompleteView } from './components/Form/Input/JRCSelect/JRCInputAutocompleteViews';
|
|
1
2
|
export type { Editor } from 'tinymce';
|
|
2
3
|
export type { JRCDragAndDropProps } from './components/Beta/BETA_JRCDragAndDrop/BETA_JRCDragAndDrop';
|
|
3
4
|
export type { JRCConditionalWrapperProps } from './components/Common/JRCConditionalWrapper';
|
|
@@ -71,6 +72,8 @@ export type { JRCModalFormProps, JRCModalProps } from './components/JRCModal/tem
|
|
|
71
72
|
export type { JRCModalImgButtonType, JRCModalImgProps } from './components/JRCModalImg/JRCModalImg';
|
|
72
73
|
export type { JRCModalUserListProps } from './components/JRCModalUserList/JRCModalUserList';
|
|
73
74
|
export type { JRCPaginationProps } from './components/JRCPagination/JRCPagination';
|
|
75
|
+
export type { PublishButtonProps } from './components/JRCPublishButton/JRCPublishButton';
|
|
76
|
+
export type { PublishButtonEntryProps } from './components/JRCPublishButton/PublishButtonEntry';
|
|
74
77
|
export type { JRCSkeletonLineProps } from './components/JRCSkeleton/JRCSkeletonLine';
|
|
75
78
|
export type { JRCSkeletonSquareProps } from './components/JRCSkeleton/JRCSkeletonSquare';
|
|
76
79
|
export type { JRCTabPanelProps, JRCTabsProps } from './components/JRCTabs/JRCTabs';
|
|
@@ -20,4 +20,5 @@ export declare const arrayUniqueByUri: <T extends {
|
|
|
20
20
|
}>(arr1: T[], arr2: T[]) => T[];
|
|
21
21
|
export declare const arraySwapElements: <T>(arr: T[], index1: number, index2: number) => T[];
|
|
22
22
|
export declare function strArrayToggle(str: string, array: string[]): string[];
|
|
23
|
+
export declare function noNull<T>(value: T | null): value is T;
|
|
23
24
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":"4.9.5"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jamespot-react-components",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.14",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./build/jamespot-react-components.js",
|
|
6
6
|
"types": "./build/src/index.d.ts",
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"@storybook/addon-webpack5-compiler-babel": "^3.0.6",
|
|
29
29
|
"@storybook/react": "^8.6.12",
|
|
30
30
|
"@storybook/react-webpack5": "^8.6.12",
|
|
31
|
+
"@storybook/test": "^8.6.12",
|
|
31
32
|
"@storybook/test-runner": "^0.22.0",
|
|
32
33
|
"@testing-library/dom": "^8.11.0",
|
|
33
34
|
"@testing-library/jest-dom": "^5.12.0",
|
|
@@ -90,11 +91,16 @@
|
|
|
90
91
|
"webpack-dev-server": "^4.4.0"
|
|
91
92
|
},
|
|
92
93
|
"dependencies": {
|
|
94
|
+
"@fullcalendar/core": "^6.1.17",
|
|
95
|
+
"@fullcalendar/daygrid": "^6.1.17",
|
|
96
|
+
"@fullcalendar/list": "^6.1.17",
|
|
97
|
+
"@fullcalendar/react": "^6.1.17",
|
|
98
|
+
"@fullcalendar/timegrid": "^6.1.17",
|
|
93
99
|
"@tinymce/tinymce-react": "^5.1.1",
|
|
94
100
|
"chroma-js": "^2.1.1",
|
|
95
101
|
"classnames": "^2.3.1",
|
|
96
102
|
"dompurify": "^3.0.5",
|
|
97
|
-
"jamespot-user-api": "^1.2.
|
|
103
|
+
"jamespot-user-api": "^1.2.14",
|
|
98
104
|
"react": "^17.x",
|
|
99
105
|
"react-beautiful-dnd": "^13.1.1",
|
|
100
106
|
"react-dnd": "^14.0.4",
|
|
@@ -150,8 +156,8 @@
|
|
|
150
156
|
"storybook-no-cache": "cross-env NODE_ENV=development STORYBOOK_MODE=true PUBLIC_PATH='' storybook dev -s ./.storybook/assets/ -c .storybook -p 3022 --no-manager-cache",
|
|
151
157
|
"test": "concurrently -k -s command-TEST -n \"SB,TEST\" -c \"magenta,blue\" \"pnpm storybook --quiet --ci\" \"wait-on tcp:6006 && pnpm test:all\"",
|
|
152
158
|
"test:all": "cross-env NODE_ENV=test jest --runInBand --detectOpenHandles --logHeapUsage && test-storybook --maxWorkers=1 --coverage && cp coverage/storybook/coverage-storybook.json coverage && nyc report -t coverage --reporter=@lcov-viewer/istanbul-report --check-coverage --reporter=text --statements 100",
|
|
153
|
-
"test:clearJest": "jest --clearCache
|
|
154
|
-
"test:jest": "cross-env NODE_ENV=test jest --runInBand",
|
|
159
|
+
"test:clearJest": "jest --clearCache",
|
|
160
|
+
"test:jest": "cross-env NODE_ENV=test jest --detectOpenHandles --logHeapUsage --runInBand",
|
|
155
161
|
"test:storybook": "test-storybook --maxWorkers=4 --coverage"
|
|
156
162
|
}
|
|
157
163
|
}
|