@jetlinks-web/components 2.4.25 → 2.5.0
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/EditTable/Body.js +91 -181
- package/es/EditTable/EditTable.js +178 -105
- package/es/EditTable/FormItem.js +3 -4
- package/es/EditTable/Header.js +56 -164
- package/es/EditTable/components/ContextMenu/Menu.js +11 -7
- package/es/EditTable/components/Search/index.js +2 -1
- package/es/EditTable/components/Search/{Search.js → search.js} +94 -66
- package/es/EditTable/components/Search/sort.js +214 -0
- package/es/EditTable/consts.js +6 -1
- package/es/EditTable/context.js +50 -0
- package/es/EditTable/group.js +355 -0
- package/es/EditTable/hooks/index.js +1 -0
- package/es/EditTable/hooks/useGroup.js +44 -0
- package/es/EditTable/props.js +14 -4
- package/es/EditTable/style/body.less +17 -27
- package/es/EditTable/style/form.less +33 -0
- package/es/EditTable/style/group.less +32 -0
- package/es/EditTable/style/header.less +16 -21
- package/es/EditTable/style/index.css +103 -66
- package/es/EditTable/style/index.less +3 -0
- package/es/EditTable/style/menu.less +25 -0
- package/es/EditTable/style/table.less +2 -11
- package/es/EditTable/utils.js +22 -50
- package/es/FullPage/FullPage.js +1 -1
- package/es/PermissionButton/index.js +40 -20
- package/es/RadioButton/RadioButton.js +1 -1
- package/es/Search/Advanced/SaveHistory.js +1 -1
- package/es/Search/Item.js +1 -1
- package/es/Search/Search.js +1 -1
- package/es/locale/en-US.js +39 -3
- package/es/locale/zh-CN.js +36 -0
- package/es/style/index.css +103 -66
- package/lib/EditTable/Body.js +91 -181
- package/lib/EditTable/EditTable.js +178 -105
- package/lib/EditTable/FormItem.js +3 -4
- package/lib/EditTable/Header.js +56 -164
- package/lib/EditTable/components/ContextMenu/Menu.js +11 -7
- package/lib/EditTable/components/Search/index.js +10 -3
- package/lib/EditTable/components/Search/{Search.js → search.js} +94 -66
- package/lib/EditTable/components/Search/sort.js +214 -0
- package/lib/EditTable/consts.js +7 -2
- package/lib/EditTable/context.js +56 -0
- package/lib/EditTable/group.js +355 -0
- package/lib/EditTable/hooks/index.js +12 -0
- package/lib/EditTable/hooks/useGroup.js +50 -0
- package/lib/EditTable/props.js +14 -4
- package/lib/EditTable/style/body.less +17 -27
- package/lib/EditTable/style/form.less +33 -0
- package/lib/EditTable/style/group.less +32 -0
- package/lib/EditTable/style/header.less +16 -21
- package/lib/EditTable/style/index.css +103 -66
- package/lib/EditTable/style/index.less +3 -0
- package/lib/EditTable/style/menu.less +25 -0
- package/lib/EditTable/style/table.less +2 -11
- package/lib/EditTable/utils.js +23 -51
- package/lib/FullPage/FullPage.js +1 -1
- package/lib/PermissionButton/index.js +40 -20
- package/lib/RadioButton/RadioButton.js +1 -1
- package/lib/Search/Advanced/SaveHistory.js +1 -1
- package/lib/Search/Item.js +1 -1
- package/lib/Search/Search.js +1 -1
- package/lib/locale/en-US.js +39 -3
- package/lib/locale/zh-CN.js +36 -0
- package/lib/style/index.css +103 -66
- package/package.json +2 -2
package/lib/locale/zh-CN.js
CHANGED
|
@@ -68,12 +68,48 @@ var _default = exports.default = {
|
|
|
68
68
|
description: '请配置高德地图key'
|
|
69
69
|
},
|
|
70
70
|
EditTable: {
|
|
71
|
+
serial: '序号',
|
|
72
|
+
columns: {
|
|
73
|
+
sign: '标识',
|
|
74
|
+
name: '名称',
|
|
75
|
+
count: '计数'
|
|
76
|
+
},
|
|
71
77
|
contextMenu: {
|
|
72
78
|
add: '新增行',
|
|
73
79
|
copy: '复制行',
|
|
74
80
|
paste: '粘贴行',
|
|
75
81
|
detail: '查看详情',
|
|
76
82
|
delete: '删除'
|
|
83
|
+
},
|
|
84
|
+
Search: {
|
|
85
|
+
find: '查找',
|
|
86
|
+
placeholder: '请输入查找内容',
|
|
87
|
+
all: '查找全部',
|
|
88
|
+
prev: '上一个',
|
|
89
|
+
next: '下一个',
|
|
90
|
+
close: '关闭',
|
|
91
|
+
rows: '行数',
|
|
92
|
+
row: '行',
|
|
93
|
+
rd: '第',
|
|
94
|
+
found: '查找到',
|
|
95
|
+
related: '条相关属性'
|
|
96
|
+
},
|
|
97
|
+
Sort: {
|
|
98
|
+
sort: '排序',
|
|
99
|
+
clean: '清空条件',
|
|
100
|
+
up: '升序',
|
|
101
|
+
down: '降序'
|
|
102
|
+
},
|
|
103
|
+
Group: {
|
|
104
|
+
one: '分组_',
|
|
105
|
+
edit: '编辑',
|
|
106
|
+
delete: '删除',
|
|
107
|
+
validate: '校验不合规',
|
|
108
|
+
editGroup: '编辑分组',
|
|
109
|
+
addGroup: '新增分组',
|
|
110
|
+
placeholder: '请输入分组名称',
|
|
111
|
+
max: '最多可输入16个字符',
|
|
112
|
+
deleteMessage: '将会同步删除分组内的数据,确认删除?'
|
|
77
113
|
}
|
|
78
114
|
},
|
|
79
115
|
ValueItem: {
|
package/lib/style/index.css
CHANGED
|
@@ -4838,19 +4838,12 @@ span.ant-radio + * {
|
|
|
4838
4838
|
flex-direction: column;
|
|
4839
4839
|
flex-grow: 0;
|
|
4840
4840
|
flex-shrink: 0;
|
|
4841
|
+
background: #fafafa;
|
|
4842
|
+
transition: background-color 0.3s ease;
|
|
4841
4843
|
}
|
|
4842
4844
|
.jetlinks-edit-table-wrapper .jetlinks-edit-table .jetlinks-edit-table-header {
|
|
4843
4845
|
overflow: hidden;
|
|
4844
4846
|
width: 100%;
|
|
4845
|
-
position: relative;
|
|
4846
|
-
}
|
|
4847
|
-
.jetlinks-edit-table-wrapper .jetlinks-edit-table .jetlinks-edit-table-header .jetlinks-edit-table-header-scroll-hidden {
|
|
4848
|
-
position: absolute;
|
|
4849
|
-
top: 0;
|
|
4850
|
-
right: 0;
|
|
4851
|
-
bottom: 0;
|
|
4852
|
-
z-index: 5;
|
|
4853
|
-
background: #fafafa;
|
|
4854
4847
|
}
|
|
4855
4848
|
.jetlinks-edit-table-wrapper .jetlinks-edit-table .jetlinks-edit-table-body {
|
|
4856
4849
|
background-color: #fff;
|
|
@@ -4875,62 +4868,43 @@ span.ant-radio + * {
|
|
|
4875
4868
|
z-index: -1;
|
|
4876
4869
|
}
|
|
4877
4870
|
.jetlinks-edit-table-body-viewport .jetlinks-edit-table-body-container {
|
|
4878
|
-
|
|
4871
|
+
overflow: hidden;
|
|
4872
|
+
height: 100%;
|
|
4879
4873
|
}
|
|
4880
|
-
.jetlinks-edit-table-body-viewport .jetlinks-edit-table-center
|
|
4881
|
-
.jetlinks-edit-table-body-viewport .jetlinks-edit-table-left,
|
|
4882
|
-
.jetlinks-edit-table-body-viewport .jetlinks-edit-table-right {
|
|
4874
|
+
.jetlinks-edit-table-body-viewport .jetlinks-edit-table-center {
|
|
4883
4875
|
position: relative;
|
|
4876
|
+
flex: 1 1 auto;
|
|
4884
4877
|
min-width: 0;
|
|
4885
4878
|
height: 100%;
|
|
4886
|
-
z-index: 5;
|
|
4887
|
-
flex-shrink: 0;
|
|
4888
|
-
flex-grow: 0;
|
|
4889
4879
|
}
|
|
4890
|
-
.jetlinks-edit-table-body-viewport .jetlinks-edit-table-center .jetlinks-edit-table-row
|
|
4891
|
-
.jetlinks-edit-table-body-viewport .jetlinks-edit-table-left .jetlinks-edit-table-row,
|
|
4892
|
-
.jetlinks-edit-table-body-viewport .jetlinks-edit-table-right .jetlinks-edit-table-row {
|
|
4880
|
+
.jetlinks-edit-table-body-viewport .jetlinks-edit-table-center .jetlinks-edit-table-row {
|
|
4893
4881
|
width: 100%;
|
|
4894
4882
|
display: flex;
|
|
4895
4883
|
align-items: center;
|
|
4896
4884
|
transition: top 0.2s, height 0.2s, background-color 0.1s;
|
|
4897
4885
|
border-bottom: 1px solid #ebebeb;
|
|
4898
|
-
background-color: #fff;
|
|
4899
4886
|
}
|
|
4900
|
-
.jetlinks-edit-table-body-viewport .jetlinks-edit-table-center .jetlinks-edit-table-row.jetlinks-edit-table-
|
|
4901
|
-
|
|
4902
|
-
|
|
4887
|
+
.jetlinks-edit-table-body-viewport .jetlinks-edit-table-center .jetlinks-edit-table-row .jetlinks-edit-table-cell {
|
|
4888
|
+
position: absolute;
|
|
4889
|
+
min-width: 0;
|
|
4890
|
+
}
|
|
4891
|
+
.jetlinks-edit-table-body-viewport .jetlinks-edit-table-center .jetlinks-edit-table-row:hover {
|
|
4903
4892
|
background-color: #f8f8f8;
|
|
4904
4893
|
}
|
|
4905
|
-
.jetlinks-edit-table-body-viewport .jetlinks-edit-table-center .jetlinks-edit-table-row.jetlinks-edit-table-row-selected
|
|
4906
|
-
.jetlinks-edit-table-body-viewport .jetlinks-edit-table-left .jetlinks-edit-table-row.jetlinks-edit-table-row-selected,
|
|
4907
|
-
.jetlinks-edit-table-body-viewport .jetlinks-edit-table-right .jetlinks-edit-table-row.jetlinks-edit-table-row-selected {
|
|
4894
|
+
.jetlinks-edit-table-body-viewport .jetlinks-edit-table-center .jetlinks-edit-table-row.jetlinks-edit-table-row-selected {
|
|
4908
4895
|
background-color: var(--ant-primary-1);
|
|
4909
4896
|
}
|
|
4910
|
-
.jetlinks-edit-table-body-viewport .jetlinks-edit-table-center .jetlinks-edit-table-row .
|
|
4911
|
-
.jetlinks-edit-table-body-viewport .jetlinks-edit-table-left .jetlinks-edit-table-row .jetlinks-edit-table-cell,
|
|
4912
|
-
.jetlinks-edit-table-body-viewport .jetlinks-edit-table-right .jetlinks-edit-table-row .jetlinks-edit-table-cell {
|
|
4913
|
-
min-width: 0;
|
|
4914
|
-
}
|
|
4915
|
-
.jetlinks-edit-table-body-viewport .jetlinks-edit-table-center .jetlinks-edit-table-row .body-cell-box,
|
|
4916
|
-
.jetlinks-edit-table-body-viewport .jetlinks-edit-table-left .jetlinks-edit-table-row .body-cell-box,
|
|
4917
|
-
.jetlinks-edit-table-body-viewport .jetlinks-edit-table-right .jetlinks-edit-table-row .body-cell-box {
|
|
4897
|
+
.jetlinks-edit-table-body-viewport .jetlinks-edit-table-center .jetlinks-edit-table-row .body-cell-box {
|
|
4918
4898
|
padding: 0 12px;
|
|
4919
4899
|
position: relative;
|
|
4920
4900
|
}
|
|
4921
|
-
.jetlinks-edit-table-body-viewport .jetlinks-edit-table-
|
|
4922
|
-
position:
|
|
4901
|
+
.jetlinks-edit-table-body-viewport .jetlinks-edit-table-center .jetlinks-edit-table-row .readonly-mask {
|
|
4902
|
+
position: absolute;
|
|
4903
|
+
top: 0;
|
|
4923
4904
|
left: 0;
|
|
4924
|
-
}
|
|
4925
|
-
.jetlinks-edit-table-body-viewport .jetlinks-edit-table-right {
|
|
4926
|
-
position: sticky;
|
|
4927
4905
|
right: 0;
|
|
4928
|
-
|
|
4929
|
-
|
|
4930
|
-
z-index: 1;
|
|
4931
|
-
}
|
|
4932
|
-
.jetlinks-edit-table-body-viewport .jetlinks-edit-table-center > div {
|
|
4933
|
-
position: relative;
|
|
4906
|
+
bottom: 0;
|
|
4907
|
+
z-index: 4;
|
|
4934
4908
|
}
|
|
4935
4909
|
.jetlinks-edit-table-body-empty {
|
|
4936
4910
|
display: flex;
|
|
@@ -4941,25 +4915,6 @@ span.ant-radio + * {
|
|
|
4941
4915
|
.jetlinks-edit-table-header-container {
|
|
4942
4916
|
height: 100%;
|
|
4943
4917
|
position: relative;
|
|
4944
|
-
display: flex;
|
|
4945
|
-
width: 100%;
|
|
4946
|
-
}
|
|
4947
|
-
.jetlinks-edit-table-header-container .jetlinks-header-left,
|
|
4948
|
-
.jetlinks-edit-table-header-container .jetlinks-header-center,
|
|
4949
|
-
.jetlinks-edit-table-header-container .jetlinks-header-right {
|
|
4950
|
-
position: relative;
|
|
4951
|
-
z-index: 5;
|
|
4952
|
-
min-width: 0;
|
|
4953
|
-
height: 100%;
|
|
4954
|
-
width: 100%;
|
|
4955
|
-
background: #fafafa;
|
|
4956
|
-
}
|
|
4957
|
-
.jetlinks-edit-table-header-container .jetlinks-header-center {
|
|
4958
|
-
z-index: 2;
|
|
4959
|
-
}
|
|
4960
|
-
.jetlinks-edit-table-header-container .jetlinks-header-center > div {
|
|
4961
|
-
position: relative;
|
|
4962
|
-
height: 100%;
|
|
4963
4918
|
}
|
|
4964
4919
|
.jetlinks-edit-table-header-container .jetlinks-edit-table-header-cell {
|
|
4965
4920
|
height: 100%;
|
|
@@ -4967,12 +4922,12 @@ span.ant-radio + * {
|
|
|
4967
4922
|
align-items: center;
|
|
4968
4923
|
float: left;
|
|
4969
4924
|
overflow: visible;
|
|
4970
|
-
|
|
4925
|
+
position: absolute;
|
|
4926
|
+
top: 0;
|
|
4971
4927
|
}
|
|
4972
4928
|
.jetlinks-edit-table-header-container .jetlinks-edit-table-header-cell .jetlinks-edit-table-header-cell-box {
|
|
4973
4929
|
padding: 0 12px;
|
|
4974
4930
|
width: 100%;
|
|
4975
|
-
position: relative;
|
|
4976
4931
|
}
|
|
4977
4932
|
.jetlinks-edit-table-header-container .jetlinks-edit-table-header-cell .jetlinks-edit-table-header-cell-box.header-cell-box-tool {
|
|
4978
4933
|
display: flex;
|
|
@@ -5006,6 +4961,88 @@ span.ant-radio + * {
|
|
|
5006
4961
|
.jetlinks-edit-table-header-container .jetlinks-edit-table-header-cell .jetlinks-edit-table-header-cell-box:not(:last-child)::before {
|
|
5007
4962
|
background-color: transparent;
|
|
5008
4963
|
}
|
|
4964
|
+
.jetlinks-table-search .jetlinks-table-search-header {
|
|
4965
|
+
display: flex;
|
|
4966
|
+
justify-content: space-between;
|
|
4967
|
+
}
|
|
4968
|
+
.jetlinks-table-search .jetlinks-table-search-header .jetlinks-drag-modal-footer {
|
|
4969
|
+
display: none;
|
|
4970
|
+
}
|
|
4971
|
+
.jetlinks-table-search .jetlinks-table-search-header .jetlinks-table-search-result-total {
|
|
4972
|
+
color: #1890ff;
|
|
4973
|
+
}
|
|
4974
|
+
.jetlinks-table-group-warp .ant-tabs-nav {
|
|
4975
|
+
margin-bottom: 0;
|
|
4976
|
+
}
|
|
4977
|
+
.jetlinks-table-group-warp .ant-tabs-nav .ant-tabs-tab {
|
|
4978
|
+
overflow: hidden;
|
|
4979
|
+
position: relative;
|
|
4980
|
+
}
|
|
4981
|
+
.jetlinks-table-group-warp .ant-tabs-nav .ant-tabs-tab-active {
|
|
4982
|
+
background-color: #BAE0FF !important;
|
|
4983
|
+
border-color: #91CAFF !important;
|
|
4984
|
+
}
|
|
4985
|
+
.jetlinks-table-group-warp .ant-tabs-nav .ant-tabs-nav-add {
|
|
4986
|
+
border: none;
|
|
4987
|
+
}
|
|
4988
|
+
.jetlinks-table-group-error-warp {
|
|
4989
|
+
color: #1a1a1a !important;
|
|
4990
|
+
}
|
|
4991
|
+
.jetlinks-table-group-error-warp .table-group-error-target {
|
|
4992
|
+
position: absolute;
|
|
4993
|
+
right: 0;
|
|
4994
|
+
top: 0;
|
|
4995
|
+
border: 16px solid transparent;
|
|
4996
|
+
border-top-color: #ff4d4f;
|
|
4997
|
+
border-right-width: 0;
|
|
4998
|
+
border-bottom-width: 0;
|
|
4999
|
+
}
|
|
5000
|
+
.jetlinks-table-form-error-target {
|
|
5001
|
+
position: absolute;
|
|
5002
|
+
right: 2px;
|
|
5003
|
+
top: -9px;
|
|
5004
|
+
border: 16px solid transparent;
|
|
5005
|
+
border-top-color: #ff4d4f;
|
|
5006
|
+
border-right-width: 0;
|
|
5007
|
+
border-bottom-width: 0;
|
|
5008
|
+
}
|
|
5009
|
+
.jetlinks-edit-table-form-has-error .select-no-value .ant-select-selector {
|
|
5010
|
+
border-color: #ff4d4f !important;
|
|
5011
|
+
}
|
|
5012
|
+
.jetlinks-edit-table-form-has-error .select-no-value .ant-select-selector:focus {
|
|
5013
|
+
box-shadow: 0 0 0 2px var(--ant-error-color-outline) !important;
|
|
5014
|
+
}
|
|
5015
|
+
.jetlinks-edit-table-form-has-error > input {
|
|
5016
|
+
border-color: #ff4d4f !important;
|
|
5017
|
+
}
|
|
5018
|
+
.jetlinks-edit-table-form-has-error > input:focus {
|
|
5019
|
+
box-shadow: 0 0 0 2px var(--ant-error-color-outline) !important;
|
|
5020
|
+
}
|
|
5021
|
+
.jetlinks-edit-table-form-has-error .jetlinks-table-form-required-aicon {
|
|
5022
|
+
color: #ff4d4f;
|
|
5023
|
+
}
|
|
5024
|
+
.jetlinks-edit-table-context-menu {
|
|
5025
|
+
position: fixed;
|
|
5026
|
+
box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
|
|
5027
|
+
border-radius: 4px;
|
|
5028
|
+
overflow: hidden;
|
|
5029
|
+
width: 192px;
|
|
5030
|
+
padding: 4px;
|
|
5031
|
+
background-color: #fff;
|
|
5032
|
+
}
|
|
5033
|
+
.jetlinks-edit-table-context-menu .ant-menu {
|
|
5034
|
+
border-right: none;
|
|
5035
|
+
}
|
|
5036
|
+
.jetlinks-edit-table-context-menu .ant-menu .ant-menu-item {
|
|
5037
|
+
margin: 0;
|
|
5038
|
+
height: 32px;
|
|
5039
|
+
}
|
|
5040
|
+
.jetlinks-edit-table-context-menu .ant-menu .ant-menu-item.danger {
|
|
5041
|
+
color: #ff4d4f;
|
|
5042
|
+
}
|
|
5043
|
+
.jetlinks-edit-table-context-menu .ant-menu-item-active {
|
|
5044
|
+
background-color: var(--ant-primary-1);
|
|
5045
|
+
}
|
|
5009
5046
|
.edit-table-search-header {
|
|
5010
5047
|
display: flex;
|
|
5011
5048
|
justify-content: space-between;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jetlinks-web/components",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -156,8 +156,8 @@
|
|
|
156
156
|
"webpack-dev-server": "^4.0.0",
|
|
157
157
|
"webpack-merge": "^5.0.0",
|
|
158
158
|
"webpackbar": "^5.0.2",
|
|
159
|
-
"@jetlinks-web/constants": "^1.0.9",
|
|
160
159
|
"@jetlinks-web/utils": "^1.2.8",
|
|
160
|
+
"@jetlinks-web/constants": "^1.0.9",
|
|
161
161
|
"@jetlinks-web/hooks": "^1.0.24"
|
|
162
162
|
},
|
|
163
163
|
"publishConfig": {
|