@antscorp/antsomi-ui 2.0.119 → 3.0.0-beta.1

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 (177) hide show
  1. package/es/components/atoms/Alert/Alert.d.ts +1 -1
  2. package/es/components/atoms/Checkbox/Checkbox.d.ts +1 -1
  3. package/es/components/atoms/Eyedropper/styled.d.ts +1 -1
  4. package/es/components/atoms/FloatButton/index.d.ts +6 -1
  5. package/es/components/atoms/Input/Input.d.ts +1 -0
  6. package/es/components/atoms/Input/styled.d.ts +2 -0
  7. package/es/components/atoms/NotificationStatus/NotificationStatus.d.ts +1 -1
  8. package/es/components/atoms/Popover/Popover.d.ts +1 -1
  9. package/es/components/atoms/PreviewTabs/styled.d.ts +3 -1
  10. package/es/components/atoms/Radio/index.d.ts +2 -2
  11. package/es/components/atoms/Segmented/Segmented.d.ts +1 -1
  12. package/es/components/atoms/SelectAssociatedTag/SelectAssociatedTag.js +10 -1
  13. package/es/components/atoms/Space/Space.d.ts +1 -0
  14. package/es/components/atoms/Steps/styled.d.ts +3 -1
  15. package/es/components/atoms/Switch/styled.d.ts +1 -1
  16. package/es/components/atoms/Tag/Tag.d.ts +3 -2
  17. package/es/components/molecules/AccessDenied/styled.d.ts +3 -1
  18. package/es/components/molecules/AddDynamicContent/AddDynamicContent.js +123 -114
  19. package/es/components/molecules/AddDynamicContent/styled.d.ts +3 -2
  20. package/es/components/molecules/ApplyPopupContent/styled.d.ts +3 -1
  21. package/es/components/molecules/CalendarSelection/components/CustomPicker/CustomPicker.js +5 -3
  22. package/es/components/molecules/CalendarSelection/components/RangePicker/RangePicker.d.ts +1 -1
  23. package/es/components/molecules/CalendarSelection/components/RangePicker/RangePicker.js +1 -1
  24. package/es/components/molecules/CalendarSelection/components/RangePicker/styled.d.ts +12 -2
  25. package/es/components/molecules/CalendarSelection/components/RangeSelectOptions/components/Option/Option.js +1 -1
  26. package/es/components/molecules/CalendarSelection/components/RangeSelectOptions/styled.d.ts +6 -2
  27. package/es/components/molecules/CalendarSelection/styled.d.ts +1 -1
  28. package/es/components/molecules/DatePicker/DatePicker.d.ts +73 -7
  29. package/es/components/molecules/DatePicker/DatePicker.js +7 -6
  30. package/es/components/molecules/DatePicker/components/AdvancedPicker/AdvancedPicker.js +46 -26
  31. package/es/components/molecules/DatePicker/components/AdvancedPicker/types.d.ts +20 -0
  32. package/es/components/molecules/DatePicker/components/AdvancedPicker/utils.d.ts +2 -2
  33. package/es/components/molecules/DatePicker/components/AdvancedPicker/utils.js +2 -0
  34. package/es/components/molecules/DatePickerV2/index.js +7 -3
  35. package/es/components/molecules/DisplayFormat/styled.d.ts +2 -1
  36. package/es/components/molecules/DrawerDetail/DrawerDetail.js +3 -4
  37. package/es/components/molecules/DrawerDetail/styled.d.ts +3 -1
  38. package/es/components/molecules/DrawerDetail/types.d.ts +1 -1
  39. package/es/components/molecules/EditingList/styled.d.ts +6 -2
  40. package/es/components/molecules/EmojiCollections/CommonCollection/index.js +1 -1
  41. package/es/components/molecules/EmojiPopover/styled.d.ts +2 -2
  42. package/es/components/molecules/EmptyData/styled.d.ts +3 -1
  43. package/es/components/molecules/FontSizeInput/components/FontSizeControl.js +26 -8
  44. package/es/components/molecules/FontSizeInput/styled.d.ts +1 -1
  45. package/es/components/molecules/ImageEditor/styled.d.ts +3 -1
  46. package/es/components/molecules/InputSelectAttribute/index.js +2 -2
  47. package/es/components/molecules/ItemNotFound/styled.d.ts +3 -1
  48. package/es/components/molecules/MatchAnySelect/MatchesAnySelect.js +5 -6
  49. package/es/components/molecules/MatchAnySelect/styled.d.ts +3 -7
  50. package/es/components/molecules/Modal/Modal.d.ts +1 -1
  51. package/es/components/molecules/Popconfirm/Popconfirm.d.ts +1 -1
  52. package/es/components/molecules/PreviewModal/styled.d.ts +3 -1
  53. package/es/components/molecules/ProcessLoading/styled.d.ts +3 -1
  54. package/es/components/molecules/RadioGroup/styled.d.ts +1 -1
  55. package/es/components/molecules/RichMenu/RichMenuChatBar/TypingChat/styled.d.ts +3 -1
  56. package/es/components/molecules/RichMenu/RichMenuChatBar/styled.d.ts +6 -2
  57. package/es/components/molecules/SearchPopover/styled.d.ts +1 -0
  58. package/es/components/molecules/Select/styled.d.ts +3 -1
  59. package/es/components/molecules/SelectAccount/AccountList.js +2 -2
  60. package/es/components/molecules/SelectAccount/AccountListOnlyOne.js +2 -2
  61. package/es/components/molecules/SelectAccount/hook/useGetAbstractUsers.d.ts +2 -2
  62. package/es/components/molecules/SelectAccount/styled.d.ts +1 -1
  63. package/es/components/molecules/Tabs/Tabs.d.ts +1 -1
  64. package/es/components/molecules/TemplateSaveAs/TemplateSaveAs.js +1 -1
  65. package/es/components/molecules/TemplateSaveAs/components/Category/Category.js +1 -1
  66. package/es/components/molecules/TemplateSaveAs/components/ImageSlider/styled.d.ts +3 -1
  67. package/es/components/molecules/TemplateSaveAs/hooks/useTemplateSave.d.ts +2 -2
  68. package/es/components/molecules/TemplateSaveAs/styled.d.ts +3 -1
  69. package/es/components/molecules/Tree/Tree.d.ts +2 -4
  70. package/es/components/molecules/Tree/styled.d.ts +3 -7
  71. package/es/components/molecules/TreeSelect/TreeSelect.d.ts +1 -1
  72. package/es/components/molecules/UnsubscribePreview/components/styled.d.ts +6 -3
  73. package/es/components/molecules/UploadImage/index.js +3 -2
  74. package/es/components/molecules/VirtualizedMenu/config.js +3 -1
  75. package/es/components/organism/AccountProfile/components/AccountSetting/styled.d.ts +2 -2
  76. package/es/components/organism/ActivityTimeline/components/List/styled.d.ts +3 -1
  77. package/es/components/organism/ActivityTimeline/components/Slide/styled.d.ts +1 -1
  78. package/es/components/organism/ActivityTimeline/styled.d.ts +6 -2
  79. package/es/components/organism/AlgorithmsSetting/index.js +3 -3
  80. package/es/components/organism/AlgorithmsSetting/styled.d.ts +1 -1
  81. package/es/components/organism/BasicLogin/components/ChooseMethod/styled.d.ts +3 -1
  82. package/es/components/organism/BasicLogin/components/WidgetLayout/styled.d.ts +3 -1
  83. package/es/components/organism/BasicLogin/styled.d.ts +9 -6
  84. package/es/components/organism/ContentSources/Settings.js +40 -41
  85. package/es/components/organism/DataTable/components/ModifyColumn/styled.d.ts +6 -2
  86. package/es/components/organism/DataTable/components/Pagination/styled.d.ts +3 -1
  87. package/es/components/organism/DataTable/components/Table/index.d.ts +1 -1
  88. package/es/components/organism/DataTable/components/Table/styled.d.ts +2 -2
  89. package/es/components/organism/DataTable/components/Toolbar/GroupByPopover.d.ts +1 -1
  90. package/es/components/organism/DataTable/components/Toolbar/styled.d.ts +15 -5
  91. package/es/components/organism/DataTable/hooks/useDataTableListing/useDataTableListing.js +7 -5
  92. package/es/components/organism/DataTable/styled/index.d.ts +6 -2
  93. package/es/components/organism/DataTable/types/index.d.ts +2 -1
  94. package/es/components/organism/DataTable/types/toolbar.d.ts +1 -1
  95. package/es/components/organism/Filter/components/FilterCondition/index.js +1 -1
  96. package/es/components/organism/Filter/components/FilterCondition/styled.d.ts +3 -1
  97. package/es/components/organism/Filter/styled.d.ts +12 -4
  98. package/es/components/organism/FilterSetting/components/common/InputArray/index.js +2 -2
  99. package/es/components/organism/FilterSetting/components/common/InputOrSelect/index.d.ts +2 -1
  100. package/es/components/organism/FilterSetting/components/common/InputOrSelect/index.js +4 -4
  101. package/es/components/organism/FilterSetting/components/common/InputSelectMulti/index.d.ts +0 -1
  102. package/es/components/organism/FilterSetting/components/common/InputSelectMulti/index.js +3 -1
  103. package/es/components/organism/FilterSetting/components/common/TextTreeSelect/index.d.ts +1 -1
  104. package/es/components/organism/FilterSetting/components/common/TextTreeSelect/index.js +2 -2
  105. package/es/components/organism/Help/queries/useGetListUser.js +4 -1
  106. package/es/components/organism/Help/styled.d.ts +3 -4
  107. package/es/components/organism/LeftMenu/components/HomeMenu/styled.d.ts +4 -2
  108. package/es/components/organism/LeftMenu/components/HomeMenu/useHomeMenu.js +1 -1
  109. package/es/components/organism/LeftMenu/components/common/ChildMenu/components/MenuItemImage/styled.d.ts +3 -1
  110. package/es/components/organism/LeftMenu/components/common/ChildMenu/styled.d.ts +6 -2
  111. package/es/components/organism/LeftMenu/hooks/usePermission.d.ts +1 -1
  112. package/es/components/organism/LeftMenu/styled.d.ts +6 -2
  113. package/es/components/organism/Login/components/ChooseMethod/styled.d.ts +3 -1
  114. package/es/components/organism/Login/components/VerifyAccount/styled.d.ts +1 -3
  115. package/es/components/organism/Login/components/WidgetLayout/styled.d.ts +3 -1
  116. package/es/components/organism/Login/styled.d.ts +9 -6
  117. package/es/components/organism/ModifyColumnModal/styled.d.ts +6 -2
  118. package/es/components/organism/PreviewTemplateModal/components/Information/styled.d.ts +3 -1
  119. package/es/components/organism/PreviewTemplateModal/components/SimilarTemplate/styled.d.ts +3 -1
  120. package/es/components/organism/PreviewTemplateModal/styled.d.ts +1 -1
  121. package/es/components/organism/SQLGeneration/components/styled.d.ts +2 -1
  122. package/es/components/organism/Table/ExplorePivotTable/styled.d.ts +2 -2
  123. package/es/components/organism/TextEditor/styled.d.ts +3 -1
  124. package/es/components/organism/TicketEditor/styled.d.ts +1 -1
  125. package/es/components/organism/TicketEditorV2/queries/useFetchAccountPermission.js +4 -1
  126. package/es/components/organism/TicketEditorV2/queries/useGetDetailTicket.d.ts +1 -1
  127. package/es/components/organism/TicketEditorV2/queries/useGetListComments.d.ts +1 -1
  128. package/es/components/organism/TicketEditorV2/queries/useGetListUser.js +4 -1
  129. package/es/components/organism/TicketEditorV2/styled.d.ts +1 -1
  130. package/es/components/template/Layout/components/RecommendationWorkspace/components/MenuMapping/styled.d.ts +3 -1
  131. package/es/components/template/Layout/styled.d.ts +3 -1
  132. package/es/components/template/TemplateListing/components/BlankTemplate/styled.d.ts +3 -1
  133. package/es/components/template/TemplateListing/components/Empty/styled.d.ts +3 -1
  134. package/es/components/template/TemplateListing/hooks/useTemplateListing.d.ts +2 -3
  135. package/es/components/template/TemplateListing/styled/index.d.ts +3 -1
  136. package/es/providers/ConfigProvider/ConfigProvider.d.ts +4 -0
  137. package/es/providers/ConfigProvider/ConfigProvider.js +2 -3
  138. package/es/providers/ConfigProvider/GlobalStyle.d.ts +2 -2
  139. package/es/providers/ConfigProvider/GlobalStyle.js +67 -64
  140. package/es/queries/AI/index.d.ts +3 -3
  141. package/es/queries/AI/useSqlGeneration.d.ts +3 -3
  142. package/es/queries/AI/useSqlGeneration.js +2 -2
  143. package/es/queries/Account/useGetAccountList.d.ts +3 -3
  144. package/es/queries/Account/useGetAccountList.js +2 -1
  145. package/es/queries/BusinessObject/useGetBODetail.d.ts +1 -1
  146. package/es/queries/BusinessObject/useGetListAllEvents.d.ts +1 -1
  147. package/es/queries/BusinessObject/useGetListBO.d.ts +1 -1
  148. package/es/queries/BusinessObject/useGetListEventAttr.d.ts +1 -1
  149. package/es/queries/BusinessObject/useGetListPromotionCodeAttr.d.ts +1 -1
  150. package/es/queries/BusinessObject/useGetListSourceByEvent.d.ts +1 -1
  151. package/es/queries/CustomFunction/useCustomFunction.d.ts +3 -3
  152. package/es/queries/CustomFunction/useCustomFunction.js +8 -4
  153. package/es/queries/DataTable/index.d.ts +25 -25
  154. package/es/queries/DataTable/index.js +26 -19
  155. package/es/queries/DynamicContentAttribute/useGetDynamicContentAttr.d.ts +1 -1
  156. package/es/queries/LeftMenu/index.d.ts +9 -9
  157. package/es/queries/LeftMenu/index.js +4 -6
  158. package/es/queries/Permission/index.d.ts +2 -2
  159. package/es/queries/PromotionPool/useGetListPromotionPool.d.ts +1 -1
  160. package/es/queries/TemplateListing/index.d.ts +5 -5
  161. package/es/queries/TemplateListing/index.js +28 -14
  162. package/es/queries/ThirdParty/useGetEventTrackingAttributes.d.ts +1 -1
  163. package/es/queries/ThirdParty/useGetListFallbackBO.d.ts +1 -1
  164. package/es/queries/ThirdParty/useStoreSavedMedia.d.ts +1 -1
  165. package/es/queries/ThirdParty/useStoreSavedMedia.js +1 -0
  166. package/es/queries/Unsubscribe/useGetUnsubscribeList.d.ts +1 -1
  167. package/es/queries/Unsubscribe/useGetUnsubscribeList.js +2 -2
  168. package/es/queries/Unsubscribe/useGetUnsubscribeListByIdentifier.d.ts +1 -1
  169. package/es/queries/Unsubscribe/useGetUnsubscribeListPermission.d.ts +1 -1
  170. package/es/queries/Unsubscribe/useGetUnsubscribeListPermission.js +2 -2
  171. package/es/queries/Unsubscribe/useGetUnsubscribePreferences.d.ts +1 -1
  172. package/es/queries/User/index.d.ts +1 -1
  173. package/es/queries/User/index.js +11 -7
  174. package/es/queries/User/userGetUserInfo.js +6 -3
  175. package/es/utils/color.d.ts +2 -0
  176. package/es/utils/color.js +30 -0
  177. package/package.json +40 -47
@@ -45,50 +45,49 @@ const Settings = (props) => {
45
45
  token,
46
46
  userId,
47
47
  accountId,
48
- }, {
49
- onSuccess(data) {
50
- if (!isInitDataCDPDone &&
51
- (isCDP || justOneGroup) &&
52
- isArray(data) &&
53
- contentSources.groups.length === 1 &&
54
- contentSources.groups[0] &&
55
- !contentSources.groups[0].itemTypeId) {
56
- const BOProduct = data.find(bo => +bo.id === PRODUCT_ITEM_TYPE_ID) || {};
57
- const groupId = get(contentSources, 'groups[0].groupId', '');
58
- const itemTypeId = BOProduct?.id;
59
- const itemTypeDisplay = BOProduct?.label;
60
- const itemTypeName = BOProduct?.name;
61
- let valueRanking = GET_TOP_RANKING_DEFAULT;
62
- if (itemTypeId === PRODUCT_ITEM_TYPE_ID) {
63
- valueRanking = PRODUCT_RANKING_DEFAULT;
64
- if (isCDP || justOneGroup) {
65
- set(valueRanking, 'algorithms.sort', 'order');
66
- }
67
- }
68
- else if (itemTypeName === ITEM_TYPE_NAME.ARTICLE) {
69
- valueRanking = ARTICLE_RANKING_DEFAULT;
48
+ });
49
+ useEffect(() => {
50
+ if (listBO &&
51
+ !isInitDataCDPDone &&
52
+ (isCDP || justOneGroup) &&
53
+ isArray(listBO) &&
54
+ contentSources.groups.length === 1 &&
55
+ contentSources.groups[0] &&
56
+ !contentSources.groups[0].itemTypeId) {
57
+ const BOProduct = listBO.find(bo => +bo.id === PRODUCT_ITEM_TYPE_ID) || {};
58
+ const groupId = get(contentSources, 'groups[0].groupId', '');
59
+ const itemTypeId = BOProduct?.id;
60
+ const itemTypeDisplay = BOProduct?.label;
61
+ const itemTypeName = BOProduct?.name;
62
+ let valueRanking = GET_TOP_RANKING_DEFAULT;
63
+ if (itemTypeId === PRODUCT_ITEM_TYPE_ID) {
64
+ valueRanking = PRODUCT_RANKING_DEFAULT;
65
+ if (isCDP || justOneGroup) {
66
+ set(valueRanking, 'algorithms.sort', 'order');
70
67
  }
71
- const newRanking = valueRanking;
72
- if (groupId && itemTypeId) {
73
- // eslint-disable-next-line @typescript-eslint/no-use-before-define
74
- contentSourceDispatch({
75
- type: 'SET_CONTENT_SOURCE_GROUP',
76
- payload: {
77
- groupId,
78
- values: {
79
- itemTypeId,
80
- itemTypeDisplay,
81
- itemTypeName,
82
- ranking: newRanking,
83
- filters: FILTERS_DEFAULT,
84
- },
68
+ }
69
+ else if (itemTypeName === ITEM_TYPE_NAME.ARTICLE) {
70
+ valueRanking = ARTICLE_RANKING_DEFAULT;
71
+ }
72
+ const newRanking = valueRanking;
73
+ if (groupId && itemTypeId) {
74
+ contentSourceDispatch({
75
+ type: 'SET_CONTENT_SOURCE_GROUP',
76
+ payload: {
77
+ groupId,
78
+ values: {
79
+ itemTypeId,
80
+ itemTypeDisplay,
81
+ itemTypeName,
82
+ ranking: newRanking,
83
+ filters: FILTERS_DEFAULT,
85
84
  },
86
- });
87
- setIsInitDataCDPDone(true);
88
- }
85
+ },
86
+ });
87
+ setIsInitDataCDPDone(true);
89
88
  }
90
- },
91
- });
89
+ }
90
+ }, [listBO, isInitDataCDPDone, isCDP, justOneGroup, contentSources.groups]);
92
91
  const { data: listFallbackBO } = useGetListFallbackBO({
93
92
  serviceAuth,
94
93
  });
@@ -1,4 +1,8 @@
1
1
  /// <reference types="react" />
2
- export declare const PopoverContent: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
3
- export declare const SavedModifyColumnOption: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
2
+ export declare const PopoverContent: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> & {
3
+ children?: import("react").ReactNode;
4
+ } & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
5
+ export declare const SavedModifyColumnOption: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> & {
6
+ children?: import("react").ReactNode;
7
+ } & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
4
8
  export declare const YourColumnSet: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/typography/Text").TextProps & import("react").RefAttributes<HTMLSpanElement>>, any, {}, never>;
@@ -1,5 +1,7 @@
1
1
  /// <reference types="react" />
2
- export declare const PaginationWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
2
+ export declare const PaginationWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> & {
3
+ children?: import("react").ReactNode;
4
+ } & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
3
5
  export declare const ActionButton: import("styled-components").StyledComponent<"div", any, {
4
6
  disabled?: boolean | undefined;
5
7
  }, never>;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { TableProps as AntdTableProps } from 'antd';
3
- interface TableProps extends AntdTableProps<any> {
3
+ interface TableProps extends AntdTableProps<unknown> {
4
4
  }
5
5
  export declare const Table: React.FC<TableProps>;
6
6
  export {};
@@ -5,7 +5,7 @@ export declare const StyledTable: import("styled-components").StyledComponent<im
5
5
  SELECTION_ALL: "SELECT_ALL";
6
6
  SELECTION_INVERT: "SELECT_INVERT";
7
7
  SELECTION_NONE: "SELECT_NONE";
8
- Column: typeof import("antd/es/table/Column").default;
9
- ColumnGroup: typeof import("antd/es/table/ColumnGroup").default;
8
+ Column: <RecordType extends import("antd/es/_util/type").AnyObject>(_: import("antd").TableColumnProps<RecordType>) => null;
9
+ ColumnGroup: <RecordType_1 extends import("antd/es/_util/type").AnyObject>(_: import("antd/es/table/ColumnGroup").ColumnGroupProps<RecordType_1>) => null;
10
10
  Summary: typeof import("rc-table/lib/Footer/Summary").default;
11
11
  }, any, {}, never>;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { ItemType } from 'antd/es/menu/hooks/useItems';
2
+ import { ItemType } from 'antd/es/menu/interface';
3
3
  import { PopoverProps } from '@antscorp/antsomi-ui/es/components/atoms';
4
4
  interface GroupByPopoverProps extends PopoverProps {
5
5
  selectedKey?: string;
@@ -1,13 +1,23 @@
1
1
  /// <reference types="react" />
2
- export declare const ToolbarWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> & import("react").RefAttributes<HTMLElement>>, any, {
2
+ export declare const ToolbarWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> & {
3
+ children?: import("react").ReactNode;
4
+ } & import("react").RefAttributes<HTMLElement>>, any, {
3
5
  $isFilterActive: boolean;
4
6
  }, never>;
5
7
  export declare const CollapseButton: import("styled-components").StyledComponent<"div", any, {
6
8
  $collapsed: boolean;
7
9
  }, never>;
8
- export declare const ToolbarActionButtonWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
9
- export declare const FilterSection: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
10
- export declare const RowSelectedControlWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
10
+ export declare const ToolbarActionButtonWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> & {
11
+ children?: import("react").ReactNode;
12
+ } & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
13
+ export declare const FilterSection: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> & {
14
+ children?: import("react").ReactNode;
15
+ } & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
16
+ export declare const RowSelectedControlWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> & {
17
+ children?: import("react").ReactNode;
18
+ } & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
11
19
  export declare const IconWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
12
20
  /** Search Popover */
13
- export declare const StyledSearchItem: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
21
+ export declare const StyledSearchItem: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> & {
22
+ children?: import("react").ReactNode;
23
+ } & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
@@ -4,7 +4,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
4
4
  import { useCallback, useEffect, useMemo, useState } from 'react';
5
5
  import { Link } from 'react-router-dom';
6
6
  import { flatMap, isEmpty, pick, xor, groupBy as lodashGroupBy } from 'lodash';
7
- import { useQueryClient } from '@tanstack/react-query';
7
+ import { keepPreviousData, useQueryClient } from '@tanstack/react-query';
8
8
  // Types
9
9
  import { useAppConfigContext } from '@antscorp/antsomi-ui/es/providers';
10
10
  // Components
@@ -181,7 +181,8 @@ export function useDataTableListing(props) {
181
181
  },
182
182
  options: {
183
183
  enabled: isEnabledFetchMatchesAny,
184
- keepPreviousData: true,
184
+ initialPageParam: 1,
185
+ placeholderData: keepPreviousData,
185
186
  retry: false,
186
187
  getNextPageParam(lastPage, allPages) {
187
188
  // Extract the total number of items from the last fetched page
@@ -225,7 +226,7 @@ export function useDataTableListing(props) {
225
226
  },
226
227
  options: {
227
228
  queryKey: [name],
228
- keepPreviousData: true,
229
+ placeholderData: keepPreviousData,
229
230
  enabled: !!listingAuth?.url && !!listingAuth?.token && enabledApiListing,
230
231
  ...queryOptions?.getTableListing,
231
232
  },
@@ -239,7 +240,7 @@ export function useDataTableListing(props) {
239
240
  request: restOfApiSearchRequest,
240
241
  },
241
242
  options: {
242
- keepPreviousData: true,
243
+ placeholderData: keepPreviousData,
243
244
  enabled: !!searchAuth?.url && !!searchAuth?.token && enabledApiSearch,
244
245
  ...queryOptions?.getSearchListing,
245
246
  },
@@ -848,7 +849,8 @@ export function useDataTableListing(props) {
848
849
  }, [mainColumnKey, tableData]);
849
850
  /** Refetch */
850
851
  const refetchTableListing = useCallback(() => {
851
- queryClient.invalidateQueries([QUERY_KEYS.GET_DATA_TABLE_LISTING, name], {
852
+ queryClient.invalidateQueries({
853
+ queryKey: [QUERY_KEYS.GET_DATA_TABLE_LISTING, name],
852
854
  exact: false,
853
855
  });
854
856
  }, [name, queryClient]);
@@ -4,7 +4,11 @@ export declare const IconButton: import("styled-components").StyledComponent<"di
4
4
  export declare const ActionButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd").ButtonProps & import("react").RefAttributes<import("react").LegacyRef<HTMLElement>>>, any, {
5
5
  $hide?: boolean | undefined;
6
6
  }, never>;
7
- export declare const FilterMetricLabel: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
7
+ export declare const FilterMetricLabel: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> & {
8
+ children?: import("react").ReactNode;
9
+ } & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
8
10
  export declare const DataTableContent: import("styled-components").StyledComponent<"div", any, {}, never>;
9
11
  export declare const FilterButton: import("styled-components").StyledComponent<"div", any, {}, never>;
10
- export declare const GroupByExpandButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
12
+ export declare const GroupByExpandButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> & {
13
+ children?: import("react").ReactNode;
14
+ } & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
@@ -4,12 +4,13 @@ import { StoreApi } from 'zustand';
4
4
  import { ToolbarProps } from './toolbar';
5
5
  import { PaginationProps } from '../components';
6
6
  import { FilterProps } from '../../Filter';
7
- export interface TableProps<T> extends AntdTableProps<T> {
7
+ export interface TableProps<T> extends Omit<AntdTableProps<T>, 'rowKey'> {
8
8
  columnWidths?: Record<number, number>;
9
9
  onColumnResize?: (data: {
10
10
  index: number;
11
11
  width: number;
12
12
  }) => void;
13
+ rowKey?: string | ((record: T, index?: number) => string);
13
14
  }
14
15
  export interface ModifyColumnProps {
15
16
  }
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { DropdownProps } from 'antd';
3
- import { ItemType } from 'antd/es/menu/hooks/useItems';
3
+ import { ItemType } from 'antd/es/menu/interface';
4
4
  import { GRID_VIEW_KEYS, TOOLBAR_ACTION_KEYS } from '../constants';
5
5
  import { AddButtonProps } from '../components/AddButton';
6
6
  import { TActionButton, TConfirmResponse } from '@antscorp/antsomi-ui/es/types';
@@ -85,7 +85,7 @@ export const FilterCondition = props => {
85
85
  disabled: isDisableApply,
86
86
  }, onCancel: handleCancel, onApply: () => form.submit(), children: _jsx(Form, { form: form, layout: "vertical", onFinish: onFinishForm, children: _jsxs(Flex, { vertical: true, gap: 20, children: [_jsx(Form.Item, { name: "operator", noStyle: true, children: _jsx(Select, { value: operator, options: operatorList, onChange: () => form.setFieldsValue({
87
87
  value: '',
88
- }), getPopupContainer: triggerNode => triggerNode.parentElement, dropdownRender: menu => (_jsx("div", { className: EXCEPTION_OFF_FILTER_CLASS, onClick: e => e.stopPropagation(), children: menu })) }) }), _jsx(Form.Item, { name: "value", noStyle: true }), renderValueField({
88
+ }), getPopupContainer: triggerNode => triggerNode.parentElement, popupRender: menu => (_jsx("div", { className: EXCEPTION_OFF_FILTER_CLASS, onClick: e => e.stopPropagation(), children: menu })) }) }), _jsx(Form.Item, { name: "value", noStyle: true }), renderValueField({
89
89
  filterMetric,
90
90
  operator,
91
91
  value,
@@ -1,3 +1,5 @@
1
1
  /// <reference types="react" />
2
2
  export declare const FilterConditionWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
3
- export declare const CloseButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
3
+ export declare const CloseButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> & {
4
+ children?: import("react").ReactNode;
5
+ } & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
@@ -1,10 +1,18 @@
1
1
  /// <reference types="react" />
2
- export declare const FilterWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> & import("react").RefAttributes<HTMLElement>>, any, {
2
+ export declare const FilterWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> & {
3
+ children?: import("react").ReactNode;
4
+ } & import("react").RefAttributes<HTMLElement>>, any, {
3
5
  $isFilterActive: boolean;
4
6
  }, never>;
5
7
  export declare const FilterSelectFieldsContent: import("styled-components").StyledComponent<"div", any, {}, never>;
6
- export declare const FilterConditionListWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
7
- export declare const StyledFilterItem: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
8
+ export declare const FilterConditionListWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> & {
9
+ children?: import("react").ReactNode;
10
+ } & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
11
+ export declare const StyledFilterItem: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> & {
12
+ children?: import("react").ReactNode;
13
+ } & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
8
14
  export declare const FilterButton: import("styled-components").StyledComponent<"div", any, {}, never>;
9
- export declare const FilterMetricLabel: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
15
+ export declare const FilterMetricLabel: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> & {
16
+ children?: import("react").ReactNode;
17
+ } & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
10
18
  export declare const IconButton: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -25,7 +25,7 @@ export const InputArray = props => {
25
25
  return onChange(newValue);
26
26
  }
27
27
  };
28
- return (_jsx(StyledSelect, { mode: "tags", required: required, focused: focused, placeholder: t(translations.pleaseInputValue.title).toString(), onInputKeyDown: onInputKeyDown, onDeselect: onRemove, value: value, tagRender: v => _jsx(Tag, { ...v, children: v.label }), dropdownStyle: {
29
- display: 'none',
28
+ return (_jsx(StyledSelect, { mode: "tags", required: required, focused: focused, placeholder: t(translations.pleaseInputValue.title).toString(), onInputKeyDown: onInputKeyDown, onDeselect: onRemove, value: value, tagRender: v => _jsx(Tag, { ...v, children: v.label }), styles: {
29
+ popup: { root: { display: 'none' } },
30
30
  } }));
31
31
  };
@@ -48,6 +48,7 @@ export declare const StyledAutoComplete: import("styled-components").StyledCompo
48
48
  children?: React.ReactNode;
49
49
  } & React.RefAttributes<import("antd").RefSelectProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>>) & {
50
50
  displayName?: string | undefined;
51
+ } & {
51
52
  Option: import("rc-select/lib/Option").OptionFC;
52
53
  _InternalPanelDoNotUseOrYouWillBeFired: (props: import("antd/es/_util/type").AnyObject) => React.JSX.Element;
53
54
  }, any, {}, never>;
@@ -57,7 +58,7 @@ export declare const StyledDropdown: import("styled-components").StyledComponent
57
58
  export declare const StyledSelect: import("styled-components").StyledComponent<(props: any) => import("react/jsx-runtime").JSX.Element, any, {
58
59
  $isPlaceholder?: any;
59
60
  }, never>;
60
- export declare const StyledTreeSelect: import("styled-components").StyledComponent<(<ValueType = any, OptionType extends import("rc-tree-select/lib/TreeSelect").DefaultOptionType | import("rc-tree-select/lib/TreeSelect").BaseOptionType = import("rc-tree-select/lib/TreeSelect").DefaultOptionType>(props: import("antd").TreeSelectProps<ValueType, OptionType> & {
61
+ export declare const StyledTreeSelect: import("styled-components").StyledComponent<(<ValueType = any, OptionType extends import("rc-tree-select/lib/interface").DataNode = import("rc-tree-select/lib/interface").DataNode>(props: import("antd").TreeSelectProps<ValueType, OptionType> & {
61
62
  children?: React.ReactNode;
62
63
  } & React.RefAttributes<import("antd").RefSelectProps>) => React.ReactElement<any, string | React.JSXElementConstructor<any>>) & {
63
64
  displayName?: string | undefined;
@@ -111,8 +111,8 @@ export const InputOrSelect = props => {
111
111
  (valueType === VISITOR.value && visitorMetadata.item_property_name) }) }), _jsx(Icon, { type: "icon-ants-remove", style: { fontSize: 10, color: '#222', cursor: 'pointer' }, onClick: onDeselect })] }));
112
112
  }
113
113
  else {
114
- element = (_jsx(StyledSelect, { mode: "multiple", options: [{ value: '', label: t(translations.orSelectAField.title) }], notFoundContent: null, onSelect: showModal, style: { width: '100%', borderTop: 'none', borderLeft: 'none', borderRight: 'none' }, onDeselect: onDeselect, autoClearSearchValue: false, searchValue: typeof value === 'string' ? value : '', onSearch: onChangeInput, placeholder: value || t(translations.inputYourValue.title), "$isPlaceholder": !value, dropdownStyle: {
115
- ...(hideSelectField ? { display: 'none' } : {}),
114
+ element = (_jsx(StyledSelect, { mode: "multiple", options: [{ value: '', label: t(translations.orSelectAField.title) }], notFoundContent: null, onSelect: showModal, style: { width: '100%', borderTop: 'none', borderLeft: 'none', borderRight: 'none' }, onDeselect: onDeselect, autoClearSearchValue: false, searchValue: typeof value === 'string' ? value : '', onSearch: onChangeInput, placeholder: value || t(translations.inputYourValue.title), "$isPlaceholder": !value, styles: {
115
+ popup: { root: { ...(hideSelectField ? { display: 'none' } : {}) } },
116
116
  } }));
117
117
  }
118
118
  return element;
@@ -415,7 +415,7 @@ export const ModalSelect = props => {
415
415
  // select item || parents not items
416
416
  setSearchValue('');
417
417
  onChangeAttribute(item.value);
418
- onDropdownVisibleChange(false);
418
+ onOpenChange(false);
419
419
  }
420
420
  else {
421
421
  // select parents
@@ -434,7 +434,7 @@ export const ModalSelect = props => {
434
434
  const onTreeExpand = (val) => {
435
435
  setExpandedKeys(val);
436
436
  };
437
- const onDropdownVisibleChange = (open) => {
437
+ const onOpenChange = (open) => {
438
438
  setOpenTreeSelect(open);
439
439
  };
440
440
  const handleDisableSubmit = () => {
@@ -61,7 +61,6 @@ interface SelectMultipleDropdownProps {
61
61
  onChange: (val: InputSelectMultiProps['value']) => void;
62
62
  dataSelect: DataSelect;
63
63
  onChangeOpen: () => void;
64
- open?: boolean;
65
64
  onSelectAll: () => void;
66
65
  onApplyExtendValue: (value: any) => void;
67
66
  column?: string | null;
@@ -349,7 +349,9 @@ export const SelectMultiple = props => {
349
349
  const { t } = i18nInstance;
350
350
  return (_jsx(StyledTreeSelect, { showSearch: false, searchValue: searchValue, treeCheckable: true,
351
351
  // open
352
- placement: "bottomRight", autoClearSearchValue: true, dropdownStyle: { minWidth: '600px', width: '600px' }, open: open, onDropdownVisibleChange: isCheckDropDown ? () => { } : onChangeOpen, maxTagCount: "responsive", tagRender: v => _jsx(Tag, { ...v, children: mapLabel[v.value] || v.label }), placeholder: t(translations.selectAnItem.title).toString(), dropdownRender: menu => (_jsx(SelectMultipleDropdown, { menu: menu, isShowCheck: isShowCheck, extraContent: dropdownExtraContent, onChangeIsShowCheck: onChangeIsShowCheck, onUncheckAll: onUncheckAll, onScroll: onScroll, treeData: treeData, onChange: onChange, dataSelect: dataSelect, onChangeOpen: onChangeOpen, onSelectAll: onSelectAll, onApplyExtendValue: onApplyExtendValue, column: column, extendValue: extendValue, onChangeRemoveExtend: onChangeRemoveExtend, onPopover: onPopover, onApply: onApply, openPopover: openPopover, searchValue: searchValue, onSearch: onSearch, loading: loading })), ...restOf }));
352
+ placement: "bottomRight", autoClearSearchValue: true, styles: {
353
+ popup: { root: { minWidth: '600px', width: '600px' } },
354
+ }, open: open, onOpenChange: isCheckDropDown ? () => { } : onChangeOpen, maxTagCount: "responsive", tagRender: v => _jsx(Tag, { ...v, children: mapLabel[v.value] || v.label }), placeholder: t(translations.selectAnItem.title).toString(), popupRender: menu => (_jsx(SelectMultipleDropdown, { menu: menu, isShowCheck: isShowCheck, extraContent: dropdownExtraContent, onChangeIsShowCheck: onChangeIsShowCheck, onUncheckAll: onUncheckAll, onScroll: onScroll, treeData: treeData, onChange: onChange, dataSelect: dataSelect, onChangeOpen: onChangeOpen, onSelectAll: onSelectAll, onApplyExtendValue: onApplyExtendValue, column: column, extendValue: extendValue, onChangeRemoveExtend: onChangeRemoveExtend, onPopover: onPopover, onApply: onApply, openPopover: openPopover, searchValue: searchValue, onSearch: onSearch, loading: loading })), ...restOf }));
353
355
  };
354
356
  export const SelectMultipleDropdown = props => {
355
357
  const { menu, isShowCheck, onChangeIsShowCheck, onUncheckAll, onScroll, extraContent, treeData, onChange, dataSelect, onChangeOpen, onSelectAll, onApplyExtendValue, extendValue = [], column, onChangeRemoveExtend, onPopover, onApply, openPopover, searchValue, onSearch, loading, } = props;
@@ -4,7 +4,7 @@ interface TextTreeSelectProps {
4
4
  attribute: string | null;
5
5
  searchValue?: string;
6
6
  open?: boolean;
7
- onDropdownVisibleChange?: any;
7
+ onOpenChange?: (open: boolean) => void;
8
8
  }
9
9
  export declare const TextTreeSelect: React.FC<TextTreeSelectProps>;
10
10
  export {};
@@ -2,11 +2,11 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  // Atoms
3
3
  import { Text } from '@antscorp/antsomi-ui/es/components/atoms';
4
4
  export const TextTreeSelect = props => {
5
- const { label, attribute, searchValue, open, onDropdownVisibleChange } = props;
5
+ const { label, attribute, searchValue, open, onOpenChange } = props;
6
6
  const onClick = (event) => {
7
7
  event.preventDefault();
8
8
  event.stopPropagation();
9
- onDropdownVisibleChange(open);
9
+ onOpenChange?.(open ?? false);
10
10
  };
11
11
  return (_jsx(Text, { style: { marginLeft: 8 }, onClick: onClick, children: searchValue ? '' : attribute ? label : '' }));
12
12
  };
@@ -6,7 +6,10 @@ const getListUserServices = async (params = {}, domain, token, config, userId) =
6
6
  return res.data;
7
7
  };
8
8
  export const useGetListUser = ({ domain, config, userId, token }) => {
9
- const { data, isFetching } = useQuery([QUERY_KEY, domain, token, config, userId], () => getListUserServices({}, domain, token, config, userId));
9
+ const { data, isFetching } = useQuery({
10
+ queryKey: [QUERY_KEY, domain, token, config, userId],
11
+ queryFn: () => getListUserServices({}, domain, token, config, userId),
12
+ });
10
13
  return {
11
14
  listUsers: data || [],
12
15
  isFetchingUsers: isFetching,
@@ -10,6 +10,7 @@ export declare const Label: import("styled-components").StyledComponent<"span",
10
10
  export declare const SendFeedback: import("styled-components").StyledComponent<"div", any, {}, never>;
11
11
  export declare const ControlGroup: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd").SpaceProps & import("react").RefAttributes<HTMLDivElement>> & {
12
12
  Compact: import("react").FC<import("antd/es/space/Compact").SpaceCompactProps>;
13
+ Addon: import("react").ForwardRefExoticComponent<import("antd/es/space/Addon").SpaceCompactCellProps & import("react").RefAttributes<HTMLDivElement>>;
13
14
  }, any, {}, never>;
14
15
  export declare const ControlLabel: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/typography/Text").TextProps & import("react").RefAttributes<HTMLSpanElement>>, any, {}, never>;
15
16
  export declare const FlexCenter: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -52,12 +53,10 @@ export declare const WrapperSearch: import("styled-components").StyledComponent<
52
53
  export declare const TreeContent: import("styled-components").StyledComponent<(<T extends import("rc-tree").BasicDataNode | import("antd").TreeDataNode = import("antd").TreeDataNode>(props: import("antd").TreeProps<T> & {
53
54
  children?: import("react").ReactNode;
54
55
  } & import("react").RefAttributes<import("rc-tree").default<import("antd").TreeDataNode>>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) & {
55
- TreeNode: import("react").FC<import("rc-tree").TreeNodeProps<import("antd").TreeDataNode>>;
56
+ TreeNode: import("react").FC<Readonly<import("rc-tree").TreeNodeProps<import("antd").TreeDataNode>>>;
56
57
  DirectoryTree: (<T_1 extends import("rc-tree").BasicDataNode | import("antd").TreeDataNode = import("antd").TreeDataNode>(props: import("antd/es/tree").DirectoryTreeProps<T_1> & {
57
58
  children?: import("react").ReactNode;
58
- } & import("react").RefAttributes<import("rc-tree").default<import("antd").TreeDataNode>>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) & {
59
- displayName?: string | undefined;
60
- };
59
+ } & import("react").RefAttributes<import("rc-tree").default<import("antd").TreeDataNode>>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) & Pick<import("react").FC<{}>, "displayName">;
61
60
  }, any, {}, never>;
62
61
  export declare const Span: import("styled-components").StyledComponent<"span", any, {
63
62
  styles: any;
@@ -1,10 +1,12 @@
1
1
  /// <reference types="react" />
2
- export declare const HomeMenuWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
2
+ export declare const HomeMenuWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> & {
3
+ children?: import("react").ReactNode;
4
+ } & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
3
5
  export declare const CreateButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd").ButtonProps & import("react").RefAttributes<import("react").LegacyRef<HTMLElement>>>, any, {}, never>;
4
6
  export declare const ModalWrapper: import("styled-components").StyledComponent<import("react").FC<import("@antscorp/antsomi-ui/es/components/molecules/Modal").ModalProps> & {
5
7
  confirm: (props: import("antd").ModalFuncProps) => {
6
8
  destroy: () => void;
7
- update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
9
+ update: (configUpdate: import("antd/es/modal/confirm").ConfigUpdate) => void;
8
10
  };
9
11
  useModal: typeof import("antd/es/modal/useModal").default;
10
12
  success: import("antd/es/modal/confirm").ModalFunc;
@@ -35,7 +35,7 @@ export const useHomeMenu = (props) => {
35
35
  const dashboardMenu = flattenMenuPermission.find(menu => menu.menu_code === MENU_CODE.DASHBOARD);
36
36
  return !!dashboardMenu && dashboardMenu.selected_edit !== MENU_PERMISSION.NONE;
37
37
  }, [flattenMenuPermission]);
38
- const { mutateAsync: removeDashboard, isLoading: isDashboardRemoving } = useRemoveDashboard();
38
+ const { mutateAsync: removeDashboard, isPending: isDashboardRemoving } = useRemoveDashboard();
39
39
  const onOptionCallback = useCallback((args) => {
40
40
  const { optionKey, menuItemKey } = args;
41
41
  switch (optionKey) {
@@ -2,4 +2,6 @@
2
2
  export declare const MaskImage: import("styled-components").StyledComponent<"div", any, {
3
3
  url: string;
4
4
  }, never>;
5
- export declare const MenuItemImageWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
5
+ export declare const MenuItemImageWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> & {
6
+ children?: import("react").ReactNode;
7
+ } & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
@@ -1,5 +1,9 @@
1
1
  /// <reference types="react" />
2
- export declare const LabelWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
2
+ export declare const LabelWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> & {
3
+ children?: import("react").ReactNode;
4
+ } & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
3
5
  export declare const LabelCustom: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/typography/Text").TextProps & import("react").RefAttributes<HTMLSpanElement>>, any, {}, never>;
4
- export declare const OptionDropdownWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
6
+ export declare const OptionDropdownWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> & {
7
+ children?: import("react").ReactNode;
8
+ } & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
5
9
  export declare const MenuWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -2,6 +2,6 @@ export declare const usePermission: () => {
2
2
  mappingChildrenMenu: import("@antscorp/antsomi-ui/es/models/LeftMenu").TFeatureMenu[];
3
3
  permissionMenu: import("@antscorp/antsomi-ui/es/models/LeftMenu").TFeatureMenu[];
4
4
  activeItemPath: import("@antscorp/antsomi-ui/es/models/LeftMenu").TFeatureMenu[];
5
- menuListPermission: import("@antscorp/antsomi-ui/es/models/LeftMenu").FeatureMenuPermission[] | undefined;
5
+ menuListPermission: NoInfer<import("@antscorp/antsomi-ui/es/models/LeftMenu").FeatureMenuPermission[]> | undefined;
6
6
  flattenMenuPermission: import("@antscorp/antsomi-ui/es/models/LeftMenu").FeatureMenuPermission[];
7
7
  };
@@ -4,13 +4,17 @@ export declare const PopoverWrapper: import("styled-components").StyledComponent
4
4
  show: boolean;
5
5
  hasMarginTop: boolean;
6
6
  }, never>;
7
- export declare const FeatureMenuWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
7
+ export declare const FeatureMenuWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> & {
8
+ children?: import("react").ReactNode;
9
+ } & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
8
10
  export declare const ExpandWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
9
11
  export declare const LeftMenuNavWrapper: import("styled-components").StyledComponent<"div", any, {
10
12
  $isExpandMenu?: boolean | undefined;
11
13
  $show?: boolean | undefined;
12
14
  }, never>;
13
- export declare const NavLogoWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
15
+ export declare const NavLogoWrapper: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd/es/flex/interface").FlexProps<import("antd/es/_util/type").AnyObject> & {
16
+ children?: import("react").ReactNode;
17
+ } & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
14
18
  export declare const LeftMenuNav: import("styled-components").StyledComponent<"nav", any, {}, never>;
15
19
  export declare const FeatureMenu: import("styled-components").StyledComponent<"ul", any, {}, never>;
16
20
  export declare const FeatureMenuItem: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -5,6 +5,8 @@ export declare const TextInfo: import("styled-components").StyledComponent<"span
5
5
  export declare const SubTitle: import("styled-components").StyledComponent<"span", any, {
6
6
  isMobile: boolean;
7
7
  }, never>;
8
- export declare const BlockMethod: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd").FlexProps<import("antd/es/_util/type").AnyObject> & import("react").RefAttributes<HTMLElement>>, any, {
8
+ export declare const BlockMethod: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd").FlexProps<import("antd/es/_util/type").AnyObject> & {
9
+ children?: import("react").ReactNode;
10
+ } & import("react").RefAttributes<HTMLElement>>, any, {
9
11
  disable?: boolean | undefined;
10
12
  }, never>;
@@ -1,9 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  export declare const WrapperForm: import("styled-components").StyledComponent<(<Values = any>(props: import("antd").FormProps<Values> & {
3
3
  children?: import("react").ReactNode;
4
- } & import("react").RefAttributes<import("antd").FormInstance<Values>>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) & {
5
- displayName?: string | undefined;
6
- } & {
4
+ } & import("react").RefAttributes<import("rc-field-form/lib/interface").FormRef<Values>>) => import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>>) & Pick<import("react").FC<{}>, "displayName"> & {
7
5
  useForm: typeof import("antd/es/form/Form").useForm;
8
6
  useFormInstance: typeof import("antd/es/form/hooks/useFormInstance").default;
9
7
  useWatch: typeof import("rc-field-form").useWatch;
@@ -2,4 +2,6 @@
2
2
  export declare const Title: import("styled-components").StyledComponent<"div", any, {
3
3
  isMobile: boolean;
4
4
  }, never>;
5
- export declare const WidgetLayoutMain: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd").FlexProps<import("antd/es/_util/type").AnyObject> & import("react").RefAttributes<HTMLElement>>, any, {}, never>;
5
+ export declare const WidgetLayoutMain: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("antd").FlexProps<import("antd/es/_util/type").AnyObject> & {
6
+ children?: import("react").ReactNode;
7
+ } & import("react").RefAttributes<HTMLElement>>, any, {}, never>;