@oceanbase/ui 0.4.11 → 0.4.12
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/dist/ui.min.js +1 -1
- package/es/Action/Group.js +6 -7
- package/es/Action/Item.d.ts +3 -2
- package/es/BasicLayout/Header.d.ts +2 -0
- package/es/BasicLayout/Header.js +7 -2
- package/es/BasicLayout/locale/en-US.d.ts +1 -0
- package/es/BasicLayout/locale/en-US.js +1 -0
- package/es/BasicLayout/locale/zh-CN.d.ts +1 -0
- package/es/BasicLayout/locale/zh-CN.js +1 -0
- package/es/BasicLayout/locale/zh-TW.d.ts +1 -0
- package/es/BasicLayout/locale/zh-TW.js +1 -0
- package/es/ContentWithIcon/index.js +1 -1
- package/es/DateRanger/PickerPanel.d.ts +1 -1
- package/es/DateRanger/PickerPanel.js +88 -140
- package/es/Dialog/Anchor.d.ts +1 -1
- package/es/Dialog/EventProxy.d.ts +1 -1
- package/es/Highlight/DiffView/DiffCells.d.ts +1 -1
- package/es/Highlight/HighlightCell.d.ts +1 -1
- package/es/Highlight/JsonView.d.ts +1 -1
- package/es/IconFont/index.d.ts +1 -1
- package/es/NavMenu/index.d.ts +1 -1
- package/es/PageContainer/ItemRender.d.ts +1 -1
- package/es/ProCard/index.js +5 -4
- package/es/ProCard/style/index.js +6 -3
- package/es/ProTable/index.d.ts +9 -4
- package/es/ProTable/index.js +9 -4
- package/es/Ranger/QuickPicker.d.ts +1 -1
- package/es/SideTip/Dragger.d.ts +1 -1
- package/es/SideTip/IconLoading.d.ts +1 -1
- package/lib/Action/Group.js +15 -15
- package/lib/Action/Item.d.ts +3 -2
- package/lib/BasicLayout/Header.d.ts +2 -0
- package/lib/BasicLayout/Header.js +4 -0
- package/lib/BasicLayout/locale/en-US.d.ts +1 -0
- package/lib/BasicLayout/locale/en-US.js +1 -0
- package/lib/BasicLayout/locale/zh-CN.d.ts +1 -0
- package/lib/BasicLayout/locale/zh-CN.js +1 -0
- package/lib/BasicLayout/locale/zh-TW.d.ts +1 -0
- package/lib/BasicLayout/locale/zh-TW.js +1 -0
- package/lib/ContentWithIcon/index.js +1 -1
- package/lib/DateRanger/PickerPanel.d.ts +1 -1
- package/lib/DateRanger/PickerPanel.js +57 -122
- package/lib/Dialog/Anchor.d.ts +1 -1
- package/lib/Dialog/EventProxy.d.ts +1 -1
- package/lib/Highlight/DiffView/DiffCells.d.ts +1 -1
- package/lib/Highlight/HighlightCell.d.ts +1 -1
- package/lib/Highlight/JsonView.d.ts +1 -1
- package/lib/IconFont/index.d.ts +1 -1
- package/lib/NavMenu/index.d.ts +1 -1
- package/lib/PageContainer/ItemRender.d.ts +1 -1
- package/lib/ProCard/index.js +3 -3
- package/lib/ProCard/style/index.js +13 -4
- package/lib/ProTable/index.d.ts +9 -4
- package/lib/ProTable/index.js +8 -4
- package/lib/Ranger/QuickPicker.d.ts +1 -1
- package/lib/SideTip/Dragger.d.ts +1 -1
- package/lib/SideTip/IconLoading.d.ts +1 -1
- package/package.json +9 -9
|
@@ -27,6 +27,7 @@ var import_design = require("@oceanbase/design");
|
|
|
27
27
|
var import_genComponentStyleHook = require("../../_util/genComponentStyleHook");
|
|
28
28
|
var genProCardStyle = (token) => {
|
|
29
29
|
const { componentCls, antCls, prefixCls } = token;
|
|
30
|
+
const tableComponentCls = `${antCls}-table`;
|
|
30
31
|
const tabsComponentCls = `${antCls}-tabs`;
|
|
31
32
|
const tabsPrefixCls = `${prefixCls}-tabs`;
|
|
32
33
|
return {
|
|
@@ -58,15 +59,23 @@ var genProCardStyle = (token) => {
|
|
|
58
59
|
paddingInline: 0
|
|
59
60
|
}
|
|
60
61
|
},
|
|
61
|
-
//
|
|
62
|
-
[
|
|
62
|
+
// reduce margin between card title and table
|
|
63
|
+
[`&${componentCls}-has-title${componentCls}-no-divider:not(${componentCls}-contain-tabs)`]: {
|
|
64
|
+
[`${componentCls}-body`]: {
|
|
65
|
+
[`& > ${tableComponentCls}-wrapper ${tableComponentCls}:not(${tableComponentCls}-bordered):first-child`]: {
|
|
66
|
+
marginTop: -token.marginSM
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
// no body horizontal padding card
|
|
71
|
+
[`${componentCls}${componentCls}-no-body-horizontal-padding:not(${componentCls}-contain-tabs)`]: {
|
|
63
72
|
[`${componentCls}-header`]: {
|
|
64
73
|
paddingBlockEnd: token.padding
|
|
65
74
|
},
|
|
66
75
|
...import_design.Card.genTableStyle(token.paddingLG, token)
|
|
67
76
|
},
|
|
68
|
-
// no body padding small card
|
|
69
|
-
[`${componentCls}${componentCls}-no-body-padding${componentCls}-size-small:not(${componentCls}-contain-tabs)`]: {
|
|
77
|
+
// no body horizontal padding small card
|
|
78
|
+
[`${componentCls}${componentCls}-no-body-horizontal-padding${componentCls}-size-small:not(${componentCls}-contain-tabs)`]: {
|
|
70
79
|
[`${componentCls}-header`]: {
|
|
71
80
|
paddingBlockEnd: token.paddingXS
|
|
72
81
|
},
|
package/lib/ProTable/index.d.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { ProTableProps } from '@ant-design/pro-components';
|
|
3
|
-
export
|
|
4
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ProTableProps as AntProTableProps } from '@ant-design/pro-components';
|
|
3
|
+
export interface ProTableProps<T, U, ValueType> extends AntProTableProps<T, U, ValueType> {
|
|
4
|
+
innerBordered?: boolean;
|
|
5
|
+
}
|
|
6
|
+
declare function ProTable<T, U, ValueType>({ form, headerTitle, options, optionsRender, toolbar, toolBarRender, size, bordered, innerBordered, expandable, rowSelection, pagination: customPagination, footer, locale, cardProps: outerCardProps, prefixCls: customizePrefixCls, tableClassName, className, ...restProps }: ProTableProps<T, U, ValueType>): React.ReactElement<any, string | React.JSXElementConstructor<any>>;
|
|
7
|
+
declare namespace ProTable {
|
|
8
|
+
var Summary;
|
|
9
|
+
}
|
|
5
10
|
export default ProTable;
|
package/lib/ProTable/index.js
CHANGED
|
@@ -39,7 +39,7 @@ var import_classnames = __toESM(require("classnames"));
|
|
|
39
39
|
var import_lodash = require("lodash");
|
|
40
40
|
var import_style = __toESM(require("../LightFilter/style"));
|
|
41
41
|
var import_style2 = __toESM(require("./style"));
|
|
42
|
-
|
|
42
|
+
function ProTable({
|
|
43
43
|
form,
|
|
44
44
|
headerTitle,
|
|
45
45
|
options,
|
|
@@ -47,6 +47,8 @@ var ProTable = ({
|
|
|
47
47
|
toolbar,
|
|
48
48
|
toolBarRender,
|
|
49
49
|
size,
|
|
50
|
+
bordered,
|
|
51
|
+
innerBordered,
|
|
50
52
|
expandable,
|
|
51
53
|
rowSelection,
|
|
52
54
|
pagination: customPagination,
|
|
@@ -57,7 +59,7 @@ var ProTable = ({
|
|
|
57
59
|
tableClassName,
|
|
58
60
|
className,
|
|
59
61
|
...restProps
|
|
60
|
-
})
|
|
62
|
+
}) {
|
|
61
63
|
const { getPrefixCls } = (0, import_react.useContext)(import_design.ConfigProvider.ConfigContext);
|
|
62
64
|
const tablePrefixCls = getPrefixCls("table", customizePrefixCls);
|
|
63
65
|
const { wrapSSR: tableWrapSSR } = import_design.Table.useStyle(tablePrefixCls);
|
|
@@ -66,7 +68,8 @@ var ProTable = ({
|
|
|
66
68
|
{
|
|
67
69
|
[`${tablePrefixCls}-expandable`]: !(0, import_lodash.isEmpty)(expandable),
|
|
68
70
|
[`${tablePrefixCls}-selectable`]: !!rowSelection,
|
|
69
|
-
[`${tablePrefixCls}-has-footer`]: !!footer
|
|
71
|
+
[`${tablePrefixCls}-has-footer`]: !!footer,
|
|
72
|
+
[`${tablePrefixCls}-inner-bordered`]: innerBordered
|
|
70
73
|
},
|
|
71
74
|
tableClassName
|
|
72
75
|
);
|
|
@@ -86,6 +89,7 @@ var ProTable = ({
|
|
|
86
89
|
{
|
|
87
90
|
defaultSize: "large",
|
|
88
91
|
size,
|
|
92
|
+
bordered: bordered || innerBordered,
|
|
89
93
|
form: {
|
|
90
94
|
// query form should remove required mark
|
|
91
95
|
requiredMark: false,
|
|
@@ -128,6 +132,6 @@ var ProTable = ({
|
|
|
128
132
|
)
|
|
129
133
|
)
|
|
130
134
|
);
|
|
131
|
-
}
|
|
135
|
+
}
|
|
132
136
|
ProTable.Summary = import_pro_components.ProTable.Summary;
|
|
133
137
|
var ProTable_default = ProTable;
|
|
@@ -13,5 +13,5 @@ export interface QuickPickerProps extends LocaleWrapperProps {
|
|
|
13
13
|
isMoment?: boolean;
|
|
14
14
|
size?: 'small' | 'large' | 'middle';
|
|
15
15
|
}
|
|
16
|
-
declare const _default: (props: QuickPickerProps) => import("@emotion/react/
|
|
16
|
+
declare const _default: (props: QuickPickerProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
17
17
|
export default _default;
|
package/lib/SideTip/Dragger.d.ts
CHANGED
|
@@ -41,6 +41,6 @@ declare class Draggable extends React.Component<DraggableProps, DraggableState>
|
|
|
41
41
|
handleMouseDown: (e: any) => void;
|
|
42
42
|
handleMouseMove: (e: any) => void;
|
|
43
43
|
handleMouseUp: (e: any) => void;
|
|
44
|
-
render(): import("@emotion/react/
|
|
44
|
+
render(): import("@emotion/react/jsx-runtime").JSX.Element;
|
|
45
45
|
}
|
|
46
46
|
export default Draggable;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const iconLoading: (props: any) => import("@emotion/react/
|
|
1
|
+
declare const iconLoading: (props: any) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
2
2
|
export default iconLoading;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oceanbase/ui",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.12",
|
|
4
4
|
"description": "The UI library based on OceanBase Design",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"oceanbase",
|
|
@@ -40,23 +40,23 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@ant-design/cssinjs": "^1.23.0",
|
|
43
|
-
"@ant-design/pro-components": "^2.8.
|
|
43
|
+
"@ant-design/pro-components": "^2.8.7",
|
|
44
44
|
"@antv/g6": "3.4.10",
|
|
45
|
-
"@oceanbase/design": "^0.4.
|
|
46
|
-
"@oceanbase/icons": "^0.4.
|
|
45
|
+
"@oceanbase/design": "^0.4.10",
|
|
46
|
+
"@oceanbase/icons": "^0.4.6",
|
|
47
47
|
"@oceanbase/util": "^0.4.2",
|
|
48
48
|
"ahooks": "^2.10.14",
|
|
49
49
|
"classnames": "^2.5.1",
|
|
50
50
|
"dayjs": "^1.11.13",
|
|
51
51
|
"diff": "^5.2.0",
|
|
52
|
-
"highlight.js": "^11.
|
|
52
|
+
"highlight.js": "^11.11.1",
|
|
53
53
|
"highlightjs-solidity": "^2.0.6",
|
|
54
54
|
"hoist-non-react-statics": "^3.3.2",
|
|
55
55
|
"lodash": "^4.17.21",
|
|
56
56
|
"moment": "^2.30.1",
|
|
57
57
|
"path-to-regexp": "^7.2.0",
|
|
58
58
|
"randexp": "^0.5.3",
|
|
59
|
-
"rc-picker": "^4.11.
|
|
59
|
+
"rc-picker": "^4.11.3",
|
|
60
60
|
"rc-util": "^5.44.4",
|
|
61
61
|
"react-copy-to-clipboard": "^5.1.0",
|
|
62
62
|
"react-json-view": "^1.21.3",
|
|
@@ -64,12 +64,12 @@
|
|
|
64
64
|
"screenfull": "^6.0.2"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
|
-
"@ant-design/pro-form": "^2.31.
|
|
68
|
-
"@ant-design/pro-layout": "^7.22.
|
|
67
|
+
"@ant-design/pro-form": "^2.31.7",
|
|
68
|
+
"@ant-design/pro-layout": "^7.22.4"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
71
|
"react": ">=16.9.0",
|
|
72
72
|
"react-dom": ">=16.9.0"
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "db83d4b1d50b50813d9751f4e8c1189badf67820"
|
|
75
75
|
}
|