@antscorp/antsomi-ui 1.3.5-beta.422 → 1.3.5-beta.424

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.
@@ -24,7 +24,7 @@ interface EditorTabProps {
24
24
  activeId?: string;
25
25
  confirmOnRemoveTab?: boolean;
26
26
  modalFuncProps?: ModalFuncProps;
27
- onActiveTab: (id: string) => void;
27
+ onActiveTab: (id: string | undefined) => void;
28
28
  onCloseTab?: (tab: EditorTabItem, index: number, newTabs: EditorTabItem[]) => void;
29
29
  onClickRemoveTab?: (tab: EditorTabItem, index: number, newTabs: EditorTabItem[]) => void;
30
30
  onConfirmRemove?: (tab: EditorTabItem) => void;
@@ -94,10 +94,11 @@ export const EditorTab = props => {
94
94
  onActiveTab(tabId);
95
95
  }, [onActiveTab]);
96
96
  const handleCloseTab = (e, tab, idx) => __awaiter(void 0, void 0, void 0, function* () {
97
+ var _b, _c;
97
98
  e.stopPropagation();
98
- if (arrTabs.length < 2) {
99
- return;
100
- }
99
+ // if (arrTabs.length < 2) {
100
+ // return;
101
+ // }
101
102
  const newTabs = arrTabs.filter(item => item.id !== tab.id);
102
103
  if (onClickRemoveTab)
103
104
  return onClickRemoveTab(tab, idx, newTabs);
@@ -109,10 +110,10 @@ export const EditorTab = props => {
109
110
  return;
110
111
  if (activeTabId === tab.id) {
111
112
  if (idx === arrTabs.length - 1) {
112
- handleActiveTab(arrTabs[idx - 1].id);
113
+ handleActiveTab((_b = arrTabs[idx - 1]) === null || _b === void 0 ? void 0 : _b.id);
113
114
  }
114
115
  else if (arrTabs.length > 1) {
115
- handleActiveTab(arrTabs[idx + 1].id);
116
+ handleActiveTab((_c = arrTabs[idx + 1]) === null || _c === void 0 ? void 0 : _c.id);
116
117
  }
117
118
  }
118
119
  onCloseTab === null || onCloseTab === void 0 ? void 0 : onCloseTab(tab, idx, newTabs);
@@ -193,6 +194,6 @@ export const EditorTab = props => {
193
194
  showArrow && (React.createElement("div", { className: "navigate-button", onClick: () => onClickArrow('right') },
194
195
  React.createElement(Icon, { type: "icon-ants-angle-right" }))),
195
196
  showComposeNewQuery || newTabText ? (React.createElement(Button, { onClick: handleAddNew, className: "new-query-button" },
196
- React.createElement(Icon, { type: "icon-ants-add-square" }),
197
+ React.createElement(Icon, { type: "icon-ants-add-square", style: { fontSize: '16px' } }),
197
198
  newTabText || 'New query')) : null));
198
199
  };
@@ -95,7 +95,7 @@ export const PeopleAccess = (props) => {
95
95
  return (React.createElement(List.Item, null,
96
96
  React.createElement(Avatar, { src: access.avatar }),
97
97
  React.createElement("div", { className: "info" },
98
- React.createElement("div", { className: "name" }, access.fullName),
98
+ React.createElement("div", { className: "name" }, access.fullName || (access === null || access === void 0 ? void 0 : access.name)),
99
99
  React.createElement("div", { className: "email" }, access.email)),
100
100
  React.createElement(Dropdown, { trigger: ['click'], disabled: !actions.length, overlayStyle: { zIndex: 3002 }, menu: {
101
101
  items: renderActionItems(actions),
@@ -8,11 +8,11 @@ const { GET_COLUMN_METRICS, GET_MODIFY_COLUMN_LIST, GET_SAVED_FILTER_LIST, GET_F
8
8
  /* Column */
9
9
  export const useGetColumnMetrics = (params) => {
10
10
  const { args, options } = params;
11
- return useQuery(Object.assign({ queryKey: [GET_COLUMN_METRICS, args.params, args.request], queryFn: () => dataTableServices.column.getColumnMetrics(args) }, options));
11
+ return useQuery(Object.assign({ queryKey: [GET_COLUMN_METRICS, args], queryFn: () => dataTableServices.column.getColumnMetrics(args) }, options));
12
12
  };
13
13
  export const useGetModifyColumnList = (params) => {
14
14
  const { args, options } = params;
15
- return useQuery(Object.assign({ queryKey: [GET_MODIFY_COLUMN_LIST, args.params, args.request], queryFn: () => dataTableServices.column.getModifyColumnList(args) }, options));
15
+ return useQuery(Object.assign({ queryKey: [GET_MODIFY_COLUMN_LIST, args], queryFn: () => dataTableServices.column.getModifyColumnList(args) }, options));
16
16
  };
17
17
  export const useUpdateModifyColumn = (params) => {
18
18
  const { options, auth } = params || {};
@@ -44,11 +44,11 @@ export const useDeleteModifyColumn = (params) => {
44
44
  /* Filter */
45
45
  export const useGetSavedFilterList = (params) => {
46
46
  const { args, options } = params;
47
- return useQuery(Object.assign({ queryKey: [GET_SAVED_FILTER_LIST, args.params, args.request], queryFn: () => dataTableServices.filter.getSavedFilterList(args) }, options));
47
+ return useQuery(Object.assign({ queryKey: [GET_SAVED_FILTER_LIST, args], queryFn: () => dataTableServices.filter.getSavedFilterList(args) }, options));
48
48
  };
49
49
  export const useGetFilterMetricList = (params) => {
50
50
  const { args, options } = params;
51
- return useQuery(Object.assign({ queryKey: [GET_FILTER_METRIC_LIST, args.params, args.request], queryFn: () => dataTableServices.filter.getFilterMetricList(args) }, options));
51
+ return useQuery(Object.assign({ queryKey: [GET_FILTER_METRIC_LIST, args], queryFn: () => dataTableServices.filter.getFilterMetricList(args) }, options));
52
52
  };
53
53
  export const useSaveFilter = (params) => {
54
54
  const { options, auth } = params || {};
@@ -80,9 +80,9 @@ export const useDeleteSavedFilter = (params) => {
80
80
  /* Table Listing */
81
81
  export const useGetTableListing = (params) => {
82
82
  const { options, args } = params || {};
83
- return useQuery(Object.assign({ queryKey: [GET_DATA_TABLE_LISTING, args === null || args === void 0 ? void 0 : args.params, args === null || args === void 0 ? void 0 : args.request], queryFn: () => dataTableServices.listing.getTableListing(args) }, options));
83
+ return useQuery(Object.assign({ queryKey: [GET_DATA_TABLE_LISTING, args], queryFn: () => dataTableServices.listing.getTableListing(args) }, options));
84
84
  };
85
85
  export const useGetSearchListing = (params) => {
86
86
  const { args, options } = params || {};
87
- return useQuery(Object.assign({ queryKey: [GET_SEARCH_LIST, args === null || args === void 0 ? void 0 : args.params, args === null || args === void 0 ? void 0 : args.request], queryFn: () => dataTableServices.search.getSearchListing(args) }, options));
87
+ return useQuery(Object.assign({ queryKey: [GET_SEARCH_LIST, args], queryFn: () => dataTableServices.search.getSearchListing(args) }, options));
88
88
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antscorp/antsomi-ui",
3
- "version": "1.3.5-beta.422",
3
+ "version": "1.3.5-beta.424",
4
4
  "description": "An enterprise-class UI design language and React UI library.",
5
5
  "sideEffects": [
6
6
  "dist/*",