@antscorp/antsomi-ui 2.0.103 → 2.0.105
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/es/__mocks__/sql-query.json +56 -0
- package/es/assets/css/main.scss +2 -2
- package/es/components/atoms/App/App.d.ts +7 -0
- package/es/components/atoms/App/App.js +5 -0
- package/es/components/atoms/App/index.d.ts +1 -0
- package/es/components/atoms/App/index.js +1 -0
- package/es/components/atoms/Input/Input.d.ts +11 -17
- package/es/components/atoms/Input/Input.js +11 -12
- package/es/components/atoms/List/List.d.ts +1 -0
- package/es/components/atoms/List/List.js +1 -0
- package/es/components/atoms/List/index.d.ts +1 -0
- package/es/components/atoms/List/index.js +1 -0
- package/es/components/atoms/Scrollbars/Scrollbars.d.ts +3 -4
- package/es/components/atoms/Scrollbars/Scrollbars.js +2 -1
- package/es/components/atoms/SlideBar/SlideBar.js +1 -1
- package/es/components/atoms/Tag/Tag.js +1 -1
- package/es/components/atoms/index.d.ts +3 -0
- package/es/components/atoms/index.js +2 -0
- package/es/components/icons/FeedbackOutlinedIcon.d.ts +3 -0
- package/es/components/icons/FeedbackOutlinedIcon.js +7 -0
- package/es/components/icons/LazyIcon/LazyIcon.d.ts +5 -0
- package/es/components/icons/LazyIcon/LazyIcon.js +5 -0
- package/es/components/icons/NavigateBeforeIcon.d.ts +3 -0
- package/es/components/icons/NavigateBeforeIcon.js +7 -0
- package/es/components/icons/NavigateNextIcon.d.ts +3 -0
- package/es/components/icons/NavigateNextIcon.js +7 -0
- package/es/components/icons/PenSparkIcon.d.ts +3 -0
- package/es/components/icons/PenSparkIcon.js +7 -0
- package/es/components/icons/StatusSuccessIcon.d.ts +3 -0
- package/es/components/icons/StatusSuccessIcon.js +7 -0
- package/es/components/icons/SummarizeIconIcon.d.ts +3 -0
- package/es/components/icons/SummarizeIconIcon.js +7 -0
- package/es/components/icons/index.d.ts +5 -0
- package/es/components/icons/index.js +5 -0
- package/es/components/index.scss +1 -0
- package/es/components/molecules/AddDynamicContent/AddDynamicContent.d.ts +1 -2
- package/es/components/molecules/CalendarSelection/constants.d.ts +1 -1
- package/es/components/molecules/CalendarSelection/constants.js +1 -1
- package/es/components/molecules/CaptureScreen/CaptureScreen.d.ts +8 -2
- package/es/components/molecules/CaptureScreen/CaptureScreen.js +2 -2
- package/es/components/molecules/DrawerDetail/DrawerDetail.js +19 -7
- package/es/components/molecules/DrawerDetail/types.d.ts +5 -0
- package/es/components/molecules/EditingListV2/components/Loadable.d.ts +1 -1
- package/es/components/molecules/EditorScript/EditorScript.d.ts +1 -2
- package/es/components/molecules/EditorScript/EditorScript.js +5 -1
- package/es/components/molecules/FontSizeInput/index.scss +15 -0
- package/es/components/molecules/Select/styled.js +1 -1
- package/es/components/molecules/SelectAccount/type.d.ts +1 -1
- package/es/components/molecules/TagifyInput/utils.style.js +1 -0
- package/es/components/molecules/TemplateSaveAs/hooks/useTemplateSave.d.ts +1 -1
- package/es/components/organism/AccountProfile/components/AccountSetting/AccountSetting.js +2 -1
- package/es/components/organism/AccountProfile/components/AccountSetting/components/LanguageSelector/styles.d.ts +1 -1
- package/es/components/organism/AccountProfile/components/AccountSetting/components/LanguageSelector/styles.js +1 -1
- package/es/components/organism/ActivityTimeline/__mocks__/event_tracking.json +1290 -0
- package/es/components/organism/ActivityTimeline/__mocks__/timeline.json +3059 -0
- package/es/components/organism/DataTable/hooks/useDataTableListing/useDataTableListing.js +5 -4
- package/es/components/organism/Login/components/LoginWithEmail/styled.js +1 -1
- package/es/components/organism/Login/components/SetupGGAuthenticator/styled.js +1 -1
- package/es/components/organism/Login/components/SignIn/styled.js +1 -1
- package/es/components/organism/Login/components/WidgetLayout/styled.js +1 -1
- package/es/components/organism/Login/styled.d.ts +3 -3
- package/es/components/organism/Login/styled.js +11 -11
- package/es/components/organism/ModifyColumnModal/styled.d.ts +2 -2
- package/es/components/organism/PreviewTemplateModal/components/ThumbnailSlider/styled.d.ts +1 -2
- package/es/components/organism/PreviewTemplateModal/components/ThumbnailSlider/styled.js +3 -1
- package/es/components/organism/SQLGeneration/SQLGeneration.d.ts +3 -0
- package/es/components/organism/SQLGeneration/SQLGeneration.js +26 -0
- package/es/components/organism/SQLGeneration/components/CheckboxShowDiff.d.ts +2 -0
- package/es/components/organism/SQLGeneration/components/CheckboxShowDiff.js +16 -0
- package/es/components/organism/SQLGeneration/components/EditTableSourcesDrawer.d.ts +2 -0
- package/es/components/organism/SQLGeneration/components/EditTableSourcesDrawer.js +56 -0
- package/es/components/organism/SQLGeneration/components/ErrorDisplay.d.ts +21 -0
- package/es/components/organism/SQLGeneration/components/ErrorDisplay.js +69 -0
- package/es/components/organism/SQLGeneration/components/SQLGenerationActions.d.ts +4 -0
- package/es/components/organism/SQLGeneration/components/SQLGenerationActions.js +23 -0
- package/es/components/organism/SQLGeneration/components/SQLGenerationCodeBlock.d.ts +2 -0
- package/es/components/organism/SQLGeneration/components/SQLGenerationCodeBlock.js +22 -0
- package/es/components/organism/SQLGeneration/components/SQLGenerationEditPrompt.d.ts +2 -0
- package/es/components/organism/SQLGeneration/components/SQLGenerationEditPrompt.js +66 -0
- package/es/components/organism/SQLGeneration/components/SQLGenerationHeader.d.ts +2 -0
- package/es/components/organism/SQLGeneration/components/SQLGenerationHeader.js +10 -0
- package/es/components/organism/SQLGeneration/components/SQLGenerationModal.d.ts +2 -0
- package/es/components/organism/SQLGeneration/components/SQLGenerationModal.js +35 -0
- package/es/components/organism/SQLGeneration/components/SQLGenerationPagination.d.ts +4 -0
- package/es/components/organism/SQLGeneration/components/SQLGenerationPagination.js +13 -0
- package/es/components/organism/SQLGeneration/components/SQLGenerationPrompt.d.ts +2 -0
- package/es/components/organism/SQLGeneration/components/SQLGenerationPrompt.js +31 -0
- package/es/components/organism/SQLGeneration/components/SQLGenerationPromptDisplay.d.ts +2 -0
- package/es/components/organism/SQLGeneration/components/SQLGenerationPromptDisplay.js +15 -0
- package/es/components/organism/SQLGeneration/components/SQLGenerationQuerySummary.d.ts +2 -0
- package/es/components/organism/SQLGeneration/components/SQLGenerationQuerySummary.js +17 -0
- package/es/components/organism/SQLGeneration/components/SQLGenerationRefine.d.ts +1 -0
- package/es/components/organism/SQLGeneration/components/SQLGenerationRefine.js +55 -0
- package/es/components/organism/SQLGeneration/components/SQLGenerationResult.d.ts +5 -0
- package/es/components/organism/SQLGeneration/components/SQLGenerationResult.js +29 -0
- package/es/components/organism/SQLGeneration/components/index.d.ts +9 -0
- package/es/components/organism/SQLGeneration/components/index.js +9 -0
- package/es/components/organism/SQLGeneration/components/styled.d.ts +52 -0
- package/es/components/organism/SQLGeneration/components/styled.js +382 -0
- package/es/components/organism/SQLGeneration/constants.d.ts +48 -0
- package/es/components/organism/SQLGeneration/constants.js +48 -0
- package/es/components/organism/SQLGeneration/hooks/index.d.ts +1 -0
- package/es/components/organism/SQLGeneration/hooks/index.js +1 -0
- package/es/components/organism/SQLGeneration/hooks/useKeyboardNavigation.d.ts +14 -0
- package/es/components/organism/SQLGeneration/hooks/useKeyboardNavigation.js +123 -0
- package/es/components/organism/SQLGeneration/index.d.ts +10 -0
- package/es/components/organism/SQLGeneration/index.js +6 -0
- package/es/components/organism/SQLGeneration/index.scss +1 -0
- package/es/components/organism/SQLGeneration/integrations/AceEditor/index.d.ts +1 -0
- package/es/components/organism/SQLGeneration/integrations/AceEditor/index.js +1 -0
- package/es/components/organism/SQLGeneration/integrations/AceEditor/index.scss +4 -0
- package/es/components/organism/SQLGeneration/integrations/AceEditor/useAceEditor.d.ts +9 -0
- package/es/components/organism/SQLGeneration/integrations/AceEditor/useAceEditor.js +24 -0
- package/es/components/organism/SQLGeneration/integrations/AceEditor/useEnhancePlaceholder.d.ts +10 -0
- package/es/components/organism/SQLGeneration/integrations/AceEditor/useEnhancePlaceholder.js +172 -0
- package/es/components/organism/SQLGeneration/integrations/AceEditor/useInsertQuery.d.ts +8 -0
- package/es/components/organism/SQLGeneration/integrations/AceEditor/useInsertQuery.js +21 -0
- package/es/components/organism/SQLGeneration/integrations/AntsomiAI/index.d.ts +1 -0
- package/es/components/organism/SQLGeneration/integrations/AntsomiAI/index.js +1 -0
- package/es/components/organism/SQLGeneration/integrations/AntsomiAI/useAntsomiAI.d.ts +1 -0
- package/es/components/organism/SQLGeneration/integrations/AntsomiAI/useAntsomiAI.js +35 -0
- package/es/components/organism/SQLGeneration/integrations/AntsomiSqlWS/index.d.ts +1 -0
- package/es/components/organism/SQLGeneration/integrations/AntsomiSqlWS/index.js +1 -0
- package/es/components/organism/SQLGeneration/integrations/AntsomiSqlWS/useAntsomiSqlWS.d.ts +7 -0
- package/es/components/organism/SQLGeneration/integrations/AntsomiSqlWS/useAntsomiSqlWS.js +10 -0
- package/es/components/organism/SQLGeneration/selectors.d.ts +857 -0
- package/es/components/organism/SQLGeneration/selectors.js +61 -0
- package/es/components/organism/SQLGeneration/store/index.d.ts +2 -0
- package/es/components/organism/SQLGeneration/store/index.js +1 -0
- package/es/components/organism/SQLGeneration/store/provider.d.ts +7 -0
- package/es/components/organism/SQLGeneration/store/provider.js +40 -0
- package/es/components/organism/SQLGeneration/store/store.d.ts +383 -0
- package/es/components/organism/SQLGeneration/store/store.js +309 -0
- package/es/components/organism/SQLGeneration/store/types.d.ts +97 -0
- package/es/components/organism/SQLGeneration/store/types.js +1 -0
- package/es/components/organism/SQLGeneration/types.d.ts +29 -0
- package/es/components/organism/SQLGeneration/types.js +1 -0
- package/es/components/organism/index.d.ts +1 -0
- package/es/components/organism/index.js +1 -0
- package/es/components/organism/index.scss +1 -0
- package/es/components/template/TemplateListing/hooks/useTemplateListing.d.ts +3 -4
- package/es/hooks/index.d.ts +1 -0
- package/es/hooks/index.js +1 -0
- package/es/hooks/useFocusManagement.d.ts +14 -0
- package/es/hooks/useFocusManagement.js +124 -0
- package/es/locales/ja/google-sheet.json +2 -2
- package/es/providers/ConfigProvider/ConfigProvider.js +4 -1
- package/es/providers/ConfigProvider/GlobalStyle.js +153 -46
- package/es/queries/AI/index.d.ts +23 -0
- package/es/queries/AI/index.js +4 -0
- package/es/queries/AI/useSqlGeneration.d.ts +25 -0
- package/es/queries/AI/useSqlGeneration.js +13 -0
- package/es/queries/TemplateListing/index.d.ts +2 -2
- package/es/queries/index.d.ts +1 -0
- package/es/queries/index.js +1 -0
- package/es/services/AI/index.d.ts +15 -0
- package/es/services/AI/index.js +15 -0
- package/es/types/auth.d.ts +25 -0
- package/es/types/auth.js +1 -0
- package/es/types/index.d.ts +1 -0
- package/es/types/index.js +1 -0
- package/es/utils/common.d.ts +1 -0
- package/es/utils/common.js +16 -1
- package/es/utils/web.d.ts +16 -3
- package/es/utils/web.js +36 -3
- package/es/utils/zustand.d.ts +10 -0
- package/es/utils/zustand.js +8 -0
- package/package.json +16 -11
|
@@ -16,7 +16,8 @@ import { safeParseJson } from '@antscorp/antsomi-ui/es/utils';
|
|
|
16
16
|
import { POST_MESSAGE_TYPES } from '@antscorp/antsomi-ui/es/constants';
|
|
17
17
|
export const DrawerDetail = props => {
|
|
18
18
|
// Props
|
|
19
|
-
const { width, fullScreen: fullScreenProp = false, children, menuProps, closeIconProps, maxWidth, minWidth, defaultSize = 'max', headerProps, name, destroyOnClose = true, closable = false, ...restProps } = props;
|
|
19
|
+
const { width, fullScreen: fullScreenProp = false, children, menuProps, closeIconProps, maxWidth, minWidth, defaultSize = 'max', headerProps, name, destroyOnClose = true, classNames = {}, collapsed: propCollapsed, onToggleCollapse, closable = false, ...restProps } = props;
|
|
20
|
+
const { btnToogleSize, ...restClassNames } = classNames;
|
|
20
21
|
const { show: showMenu = true, showExpandButton = true, showClose = true, items, selectedKeys, footer, onClick = () => { }, } = menuProps || {};
|
|
21
22
|
const { children: headerChildren, ...restOfHeaderProps } = headerProps || {};
|
|
22
23
|
const { onClose = () => { } } = props;
|
|
@@ -47,25 +48,29 @@ export const DrawerDetail = props => {
|
|
|
47
48
|
useEffect(() => {
|
|
48
49
|
if (matchesSmallScreen) {
|
|
49
50
|
toggleCollapseDrawer(false);
|
|
51
|
+
onToggleCollapse?.(false);
|
|
50
52
|
}
|
|
51
53
|
switch (defaultSize) {
|
|
52
54
|
case 'max':
|
|
53
55
|
toggleCollapseDrawer(false);
|
|
56
|
+
onToggleCollapse?.(false);
|
|
54
57
|
break;
|
|
55
58
|
case 'min':
|
|
56
59
|
default:
|
|
57
60
|
toggleCollapseDrawer(true);
|
|
61
|
+
onToggleCollapse?.(true);
|
|
58
62
|
break;
|
|
59
63
|
}
|
|
60
|
-
}, [matchesSmallScreen, defaultSize, toggleCollapseDrawer]);
|
|
64
|
+
}, [matchesSmallScreen, defaultSize, toggleCollapseDrawer, onToggleCollapse]);
|
|
61
65
|
// Get cache collapse from local storage
|
|
62
66
|
useEffect(() => {
|
|
63
67
|
const localStorageValues = safeParseJson(localStorage.getItem(DRAWER_DETAIL_LOCAL_STORAGE_KEY), {});
|
|
64
68
|
const cachedCollapse = localStorageValues[name || ''];
|
|
65
69
|
if (!isNil(cachedCollapse)) {
|
|
66
70
|
toggleCollapseDrawer(cachedCollapse);
|
|
71
|
+
onToggleCollapse?.(cachedCollapse);
|
|
67
72
|
}
|
|
68
|
-
}, [name, toggleCollapseDrawer]);
|
|
73
|
+
}, [name, toggleCollapseDrawer, onToggleCollapse]);
|
|
69
74
|
// Memo
|
|
70
75
|
const drawerWidth = useMemo(() => {
|
|
71
76
|
if (fullScreen)
|
|
@@ -95,16 +100,22 @@ export const DrawerDetail = props => {
|
|
|
95
100
|
}
|
|
96
101
|
}
|
|
97
102
|
}, [collapseDrawer, fullScreen, matchesSmallScreen, maxWidth, minWidth, width]);
|
|
98
|
-
const handleToggleDrawerSize = () => {
|
|
103
|
+
const handleToggleDrawerSize = useCallback((updatedCollapsed) => {
|
|
99
104
|
const localStorageValues = safeParseJson(localStorage.getItem(DRAWER_DETAIL_LOCAL_STORAGE_KEY), {});
|
|
100
|
-
toggleCollapseDrawer(!collapseDrawer);
|
|
105
|
+
toggleCollapseDrawer(updatedCollapsed ?? !collapseDrawer);
|
|
106
|
+
onToggleCollapse?.(updatedCollapsed ?? !collapseDrawer);
|
|
101
107
|
/**
|
|
102
108
|
* Set local storage last collapsed
|
|
103
109
|
*/
|
|
104
110
|
if (name) {
|
|
105
111
|
localStorage.setItem(DRAWER_DETAIL_LOCAL_STORAGE_KEY, JSON.stringify({ ...localStorageValues, [name || '']: !collapseDrawer }));
|
|
106
112
|
}
|
|
107
|
-
};
|
|
113
|
+
}, [collapseDrawer, name, onToggleCollapse, toggleCollapseDrawer]);
|
|
114
|
+
useEffect(() => {
|
|
115
|
+
if (propCollapsed !== undefined) {
|
|
116
|
+
handleToggleDrawerSize(propCollapsed);
|
|
117
|
+
}
|
|
118
|
+
}, [propCollapsed, handleToggleDrawerSize]);
|
|
108
119
|
return (_jsxs(StyledDrawer, { push: false, closable: closable, width: drawerWidth, motion: {
|
|
109
120
|
visible: false,
|
|
110
121
|
motionAppear: false,
|
|
@@ -117,6 +128,7 @@ export const DrawerDetail = props => {
|
|
|
117
128
|
motionLeave: false,
|
|
118
129
|
}, classNames: {
|
|
119
130
|
body: 'drawer-detail-body',
|
|
131
|
+
...restClassNames,
|
|
120
132
|
}, contentWrapperStyle: {
|
|
121
133
|
transition: 'none',
|
|
122
134
|
}, maskStyle: {
|
|
@@ -124,7 +136,7 @@ export const DrawerDetail = props => {
|
|
|
124
136
|
}, destroyOnClose: destroyOnClose, ...restProps, children: [showCloseIcon && (_jsx("div", { className: "close-btn", ...restOfCloseIcon, onClick: e => {
|
|
125
137
|
onCloseIconClick(e);
|
|
126
138
|
onClose(e);
|
|
127
|
-
}, children: _jsx(Icon, { type: "icon-ants-remove-slim", size: 14 }) })), showExpandButton && !fullScreen && (_jsx(ToggleDrawerSizeButton, { style: {
|
|
139
|
+
}, children: _jsx(Icon, { type: "icon-ants-remove-slim", size: 14 }) })), showExpandButton && !fullScreen && (_jsx(ToggleDrawerSizeButton, { className: btnToogleSize, style: {
|
|
128
140
|
...(!showMenu && { background: '#ffffff' }),
|
|
129
141
|
}, onClick: () => handleToggleDrawerSize(), collapse: collapseDrawer })), showMenu && (_jsxs(LeftMenu, { "data-test": "left-menu", className: "animate__animated animate__fadeIn", children: [_jsxs("div", { children: [showClose && (_jsx(CloseBtn, { "data-test": "close-btn", ...restOfCloseIcon, onClick: onClose, children: _jsx(Icon, { type: "icon-ants-remove-slim", size: 14 }) })), _jsx(Flex, { vertical: true, gap: 10, align: "center", justify: "center", children: items?.map((item) => (_jsx(Tooltip, { title: item?.label, mouseEnterDelay: 0.3, placement: "right", children: _jsx(MenuItem, { className: selectedKeys?.includes(item.key) ? 'active' : '', onClick: () => onClick && onClick(item), children: item.icon }, item?.key) }, item?.key))) })] }), _jsx(MenuFooter, { children: footer })] })), _jsxs(Content, { className: "drawer-detail-content", children: [headerProps?.children && (_jsx(DrawerHeader, { align: "center", ...restOfHeaderProps, children: headerChildren })), children] })] }));
|
|
130
142
|
};
|
|
@@ -11,6 +11,11 @@ export interface DrawerDetailProps extends Omit<DrawerProps, 'closeIcon' | 'titl
|
|
|
11
11
|
headerProps?: DrawerHeaderProps;
|
|
12
12
|
menuProps?: DrawerDetailMenuProps;
|
|
13
13
|
closeIconProps?: DrawerDetailCloseIconProps;
|
|
14
|
+
classNames?: DrawerProps['classNames'] & {
|
|
15
|
+
btnToogleSize?: string;
|
|
16
|
+
};
|
|
17
|
+
collapsed?: boolean;
|
|
18
|
+
onToggleCollapse?: (collapsed: boolean) => void;
|
|
14
19
|
}
|
|
15
20
|
export interface DrawerDetailCloseIconProps extends React.HtmlHTMLAttributes<HTMLDivElement> {
|
|
16
21
|
show?: boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
export declare const Popover: import("react").LazyExoticComponent<(props: {
|
|
3
|
-
placement?: "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "left" | "right" | "bottom" | "top" | "bottomLeft" | "
|
|
3
|
+
placement?: "leftTop" | "leftBottom" | "rightTop" | "rightBottom" | "left" | "right" | "bottom" | "top" | "bottomLeft" | "topLeft" | "topRight" | "bottomRight" | undefined;
|
|
4
4
|
options: import("../types").Option[];
|
|
5
5
|
selected: string[];
|
|
6
6
|
addButtonLabel: import("react").ReactNode;
|
|
@@ -5,10 +5,9 @@ import 'ace-builds/src-noconflict/mode-javascript';
|
|
|
5
5
|
import 'ace-builds/src-noconflict/mode-css';
|
|
6
6
|
import 'ace-builds/src-noconflict/theme-tomorrow';
|
|
7
7
|
import 'ace-builds/src-noconflict/ext-language_tools';
|
|
8
|
-
interface EditorScriptProps extends IAceEditorProps {
|
|
8
|
+
export interface EditorScriptProps extends IAceEditorProps {
|
|
9
9
|
label?: string | ReactNode;
|
|
10
10
|
expandModalLabel?: string | ReactNode;
|
|
11
11
|
hideExpand?: boolean | ReactNode;
|
|
12
12
|
}
|
|
13
13
|
export declare const EditorScript: React.FC<EditorScriptProps>;
|
|
14
|
-
export {};
|
|
@@ -36,7 +36,11 @@ export const EditorScript = props => {
|
|
|
36
36
|
showLineNumbers: true,
|
|
37
37
|
tabSize: 2,
|
|
38
38
|
...setOptions,
|
|
39
|
-
}, ...restOf, style: {
|
|
39
|
+
}, ...restOf, style: {
|
|
40
|
+
width: '100%',
|
|
41
|
+
height: aceHeight,
|
|
42
|
+
...restOf.style,
|
|
43
|
+
}, onLoad: e => { } }));
|
|
40
44
|
}
|
|
41
45
|
catch (error) {
|
|
42
46
|
handleError(error, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Libraries
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
// Components
|
|
4
|
-
import { Tag } from '
|
|
4
|
+
import { Tag } from '../../atoms/Tag';
|
|
5
5
|
// Constants
|
|
6
6
|
import { THEME } from '../../../constants';
|
|
7
7
|
export const StyledTag = styled(Tag) `
|
|
@@ -66,7 +66,7 @@ export declare const useTemplateSave: (options: TemplateListingOptions) => {
|
|
|
66
66
|
form: import("antd").FormInstance<FormValue>;
|
|
67
67
|
errors: any[] | undefined;
|
|
68
68
|
refetchCategoryList: <TPageData>(options?: (import("@tanstack/react-query").RefetchOptions & import("@tanstack/react-query").RefetchQueryFilters<TPageData>) | undefined) => Promise<import("@tanstack/react-query").QueryObserverResult<TemplateCategory[], any>>;
|
|
69
|
-
refetchTemplateList: <TPageData_1>(options?: (import("@tanstack/react-query").RefetchOptions & import("@tanstack/react-query").RefetchQueryFilters<TPageData_1>) | undefined) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@tanstack/react-query").InfiniteData<
|
|
69
|
+
refetchTemplateList: <TPageData_1>(options?: (import("@tanstack/react-query").RefetchOptions & import("@tanstack/react-query").RefetchQueryFilters<TPageData_1>) | undefined) => Promise<import("@tanstack/react-query").QueryObserverResult<import("@tanstack/react-query").InfiniteData<any>, any>>;
|
|
70
70
|
onLoadMore: () => void;
|
|
71
71
|
onChange: (newValue: Partial<TemplateValueOptions>) => void;
|
|
72
72
|
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/* eslint-disable jsx-a11y/label-has-associated-control */
|
|
2
3
|
// Libraries
|
|
3
4
|
import axios from 'axios';
|
|
4
5
|
import clsx from 'clsx';
|
|
@@ -402,7 +403,7 @@ export const AccountSetting = memo(forwardRef((props, ref) => {
|
|
|
402
403
|
return _jsx("textarea", { ...inputProps });
|
|
403
404
|
case 'date':
|
|
404
405
|
// {...inputProps} isShowLabel={false} error={errorMsg}
|
|
405
|
-
return (_jsx(StyledDatePicker, { value: inputProps.value, onChange: inputProps.onChange, popupClassName: "antsomi-custom-calendar-picker", showToday: false, prevIcon: _jsx(Icon, { type: "icon-ants-angle-left", size:
|
|
406
|
+
return (_jsx(StyledDatePicker, { value: inputProps.value, onChange: inputProps.onChange, popupClassName: "antsomi-custom-calendar-picker", showToday: false, prevIcon: _jsx(Icon, { type: "icon-ants-angle-left", size: 11 }), nextIcon: _jsx(Icon, { type: "icon-ants-angle-right1", size: 11 }), allowClear: false, suffixIcon: _jsx(Icon, { type: "icon-ants-calendar-picker", size: 24, color: "rgba(0, 0, 0, 0.54)" }) }));
|
|
406
407
|
case 'radio':
|
|
407
408
|
// return <RadioButtonGroup {...inputProps} />;
|
|
408
409
|
return (_jsx(StyledRadioGroup, { value: +inputProps.value, onChange: inputProps.onChange, name: inputProps.fieldName, disabled: inputProps.disabled, children: inputProps.arrRadios.map(item => (_jsx(Radio, { value: item.value, children: item.label }, item.value))) }));
|
|
@@ -8,4 +8,4 @@ export declare const StyledSelect: import("styled-components").StyledComponent<(
|
|
|
8
8
|
OptGroup: import("rc-select/lib/OptGroup").OptionGroupFC;
|
|
9
9
|
_InternalPanelDoNotUseOrYouWillBeFired: (props: import("antd/es/_util/type").AnyObject) => import("react").JSX.Element;
|
|
10
10
|
} & import("react").FC<import("@antscorp/antsomi-ui/es/components/molecules/Select").SelectProps>, any, {}, never>;
|
|
11
|
-
export declare const StyledSelectOption: import("styled-components").StyledComponent<import("antd").
|
|
11
|
+
export declare const StyledSelectOption: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/typography/Text").TextProps & import("react").RefAttributes<HTMLSpanElement>>, any, {}, never>;
|
|
@@ -14,7 +14,7 @@ export const StyledSelect = styled(Select) `
|
|
|
14
14
|
background: url('~Assets/images/langs/vietnam.png') no-repeat;
|
|
15
15
|
}
|
|
16
16
|
`;
|
|
17
|
-
export const StyledSelectOption = styled(Typography) `
|
|
17
|
+
export const StyledSelectOption = styled(Typography.Text) `
|
|
18
18
|
display: flex !important;
|
|
19
19
|
justify-content: flex-start;
|
|
20
20
|
align-items: center;
|