@kne/table-page 0.1.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/README.md +1923 -0
- package/dist/index.css +819 -0
- package/dist/index.css.map +1 -0
- package/dist/index.js +3539 -0
- package/dist/index.js.map +1 -0
- package/dist/index.modern.js +3453 -0
- package/dist/index.modern.js.map +1 -0
- package/dist/locale/en-US.js +17 -0
- package/dist/locale/en-US.js.map +1 -0
- package/dist/locale/en-US.modern.js +17 -0
- package/dist/locale/en-US.modern.js.map +1 -0
- package/dist/locale/zh-CN.js +17 -0
- package/dist/locale/zh-CN.js.map +1 -0
- package/dist/locale/zh-CN.modern.js +17 -0
- package/dist/locale/zh-CN.modern.js.map +1 -0
- package/package.json +119 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const locale = {
|
|
2
|
+
TotalText: 'Total',
|
|
3
|
+
ItemText: 'items',
|
|
4
|
+
UnnamedColumn: 'Unnamed',
|
|
5
|
+
EditTable: 'Edit Table',
|
|
6
|
+
RestoreDefault: 'Restore Default',
|
|
7
|
+
VisibleInfo: 'Visible Columns',
|
|
8
|
+
HiddenInfo: 'Hidden Columns',
|
|
9
|
+
Search: 'Search',
|
|
10
|
+
BatchOperations: 'Batch Actions',
|
|
11
|
+
BatchOperationsWithCount: 'Batch Actions (Selected: {count})',
|
|
12
|
+
Cancel: 'Cancel',
|
|
13
|
+
Confirm: 'Confirm'
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
module.exports = locale;
|
|
17
|
+
//# sourceMappingURL=en-US.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"en-US.js","sources":["../../src/locale/en-US.js"],"sourcesContent":["const locale = {\n TotalText: 'Total',\n ItemText: 'items',\n UnnamedColumn: 'Unnamed',\n EditTable: 'Edit Table',\n RestoreDefault: 'Restore Default',\n VisibleInfo: 'Visible Columns',\n HiddenInfo: 'Hidden Columns',\n Search: 'Search',\n BatchOperations: 'Batch Actions',\n BatchOperationsWithCount: 'Batch Actions (Selected: {count})',\n Cancel: 'Cancel',\n Confirm: 'Confirm'\n};\n\nexport default locale;\n"],"names":["locale","TotalText","ItemText","UnnamedColumn","EditTable","RestoreDefault","VisibleInfo","HiddenInfo","Search","BatchOperations","BatchOperationsWithCount","Cancel","Confirm"],"mappings":"AAAA,MAAMA,MAAM,GAAG;AACbC,EAAAA,SAAS,EAAE,OAAO;AAClBC,EAAAA,QAAQ,EAAE,OAAO;AACjBC,EAAAA,aAAa,EAAE,SAAS;AACxBC,EAAAA,SAAS,EAAE,YAAY;AACvBC,EAAAA,cAAc,EAAE,iBAAiB;AACjCC,EAAAA,WAAW,EAAE,iBAAiB;AAC9BC,EAAAA,UAAU,EAAE,gBAAgB;AAC5BC,EAAAA,MAAM,EAAE,QAAQ;AAChBC,EAAAA,eAAe,EAAE,eAAe;AAChCC,EAAAA,wBAAwB,EAAE,mCAAmC;AAC7DC,EAAAA,MAAM,EAAE,QAAQ;AAChBC,EAAAA,OAAO,EAAE,SAAA;AACX;;;;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const locale = {
|
|
2
|
+
TotalText: 'Total',
|
|
3
|
+
ItemText: 'items',
|
|
4
|
+
UnnamedColumn: 'Unnamed',
|
|
5
|
+
EditTable: 'Edit Table',
|
|
6
|
+
RestoreDefault: 'Restore Default',
|
|
7
|
+
VisibleInfo: 'Visible Columns',
|
|
8
|
+
HiddenInfo: 'Hidden Columns',
|
|
9
|
+
Search: 'Search',
|
|
10
|
+
BatchOperations: 'Batch Actions',
|
|
11
|
+
BatchOperationsWithCount: 'Batch Actions (Selected: {count})',
|
|
12
|
+
Cancel: 'Cancel',
|
|
13
|
+
Confirm: 'Confirm'
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export { locale as default };
|
|
17
|
+
//# sourceMappingURL=en-US.modern.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"en-US.modern.js","sources":["../../src/locale/en-US.js"],"sourcesContent":["const locale = {\n TotalText: 'Total',\n ItemText: 'items',\n UnnamedColumn: 'Unnamed',\n EditTable: 'Edit Table',\n RestoreDefault: 'Restore Default',\n VisibleInfo: 'Visible Columns',\n HiddenInfo: 'Hidden Columns',\n Search: 'Search',\n BatchOperations: 'Batch Actions',\n BatchOperationsWithCount: 'Batch Actions (Selected: {count})',\n Cancel: 'Cancel',\n Confirm: 'Confirm'\n};\n\nexport default locale;\n"],"names":["locale","TotalText","ItemText","UnnamedColumn","EditTable","RestoreDefault","VisibleInfo","HiddenInfo","Search","BatchOperations","BatchOperationsWithCount","Cancel","Confirm"],"mappings":"AAAA,MAAMA,MAAM,GAAG;AACbC,EAAAA,SAAS,EAAE,OAAO;AAClBC,EAAAA,QAAQ,EAAE,OAAO;AACjBC,EAAAA,aAAa,EAAE,SAAS;AACxBC,EAAAA,SAAS,EAAE,YAAY;AACvBC,EAAAA,cAAc,EAAE,iBAAiB;AACjCC,EAAAA,WAAW,EAAE,iBAAiB;AAC9BC,EAAAA,UAAU,EAAE,gBAAgB;AAC5BC,EAAAA,MAAM,EAAE,QAAQ;AAChBC,EAAAA,eAAe,EAAE,eAAe;AAChCC,EAAAA,wBAAwB,EAAE,mCAAmC;AAC7DC,EAAAA,MAAM,EAAE,QAAQ;AAChBC,EAAAA,OAAO,EAAE,SAAA;AACX;;;;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const locale = {
|
|
2
|
+
TotalText: '共',
|
|
3
|
+
ItemText: '条',
|
|
4
|
+
UnnamedColumn: '未命名列',
|
|
5
|
+
EditTable: '编辑表格',
|
|
6
|
+
RestoreDefault: '恢复默认',
|
|
7
|
+
VisibleInfo: '显示的信息',
|
|
8
|
+
HiddenInfo: '隐藏的信息',
|
|
9
|
+
Search: '搜索',
|
|
10
|
+
BatchOperations: '批量操作',
|
|
11
|
+
BatchOperationsWithCount: '批量操作(已选:{count}条)',
|
|
12
|
+
Cancel: '取消',
|
|
13
|
+
Confirm: '确定'
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
module.exports = locale;
|
|
17
|
+
//# sourceMappingURL=zh-CN.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zh-CN.js","sources":["../../src/locale/zh-CN.js"],"sourcesContent":["const locale = {\n TotalText: '共',\n ItemText: '条',\n UnnamedColumn: '未命名列',\n EditTable: '编辑表格',\n RestoreDefault: '恢复默认',\n VisibleInfo: '显示的信息',\n HiddenInfo: '隐藏的信息',\n Search: '搜索',\n BatchOperations: '批量操作',\n BatchOperationsWithCount: '批量操作(已选:{count}条)',\n Cancel: '取消',\n Confirm: '确定'\n};\n\nexport default locale;\n"],"names":["locale","TotalText","ItemText","UnnamedColumn","EditTable","RestoreDefault","VisibleInfo","HiddenInfo","Search","BatchOperations","BatchOperationsWithCount","Cancel","Confirm"],"mappings":"AAAA,MAAMA,MAAM,GAAG;AACbC,EAAAA,SAAS,EAAE,GAAG;AACdC,EAAAA,QAAQ,EAAE,GAAG;AACbC,EAAAA,aAAa,EAAE,MAAM;AACrBC,EAAAA,SAAS,EAAE,MAAM;AACjBC,EAAAA,cAAc,EAAE,MAAM;AACtBC,EAAAA,WAAW,EAAE,OAAO;AACpBC,EAAAA,UAAU,EAAE,OAAO;AACnBC,EAAAA,MAAM,EAAE,IAAI;AACZC,EAAAA,eAAe,EAAE,MAAM;AACvBC,EAAAA,wBAAwB,EAAE,mBAAmB;AAC7CC,EAAAA,MAAM,EAAE,IAAI;AACZC,EAAAA,OAAO,EAAE,IAAA;AACX;;;;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const locale = {
|
|
2
|
+
TotalText: '共',
|
|
3
|
+
ItemText: '条',
|
|
4
|
+
UnnamedColumn: '未命名列',
|
|
5
|
+
EditTable: '编辑表格',
|
|
6
|
+
RestoreDefault: '恢复默认',
|
|
7
|
+
VisibleInfo: '显示的信息',
|
|
8
|
+
HiddenInfo: '隐藏的信息',
|
|
9
|
+
Search: '搜索',
|
|
10
|
+
BatchOperations: '批量操作',
|
|
11
|
+
BatchOperationsWithCount: '批量操作(已选:{count}条)',
|
|
12
|
+
Cancel: '取消',
|
|
13
|
+
Confirm: '确定'
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export { locale as default };
|
|
17
|
+
//# sourceMappingURL=zh-CN.modern.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zh-CN.modern.js","sources":["../../src/locale/zh-CN.js"],"sourcesContent":["const locale = {\n TotalText: '共',\n ItemText: '条',\n UnnamedColumn: '未命名列',\n EditTable: '编辑表格',\n RestoreDefault: '恢复默认',\n VisibleInfo: '显示的信息',\n HiddenInfo: '隐藏的信息',\n Search: '搜索',\n BatchOperations: '批量操作',\n BatchOperationsWithCount: '批量操作(已选:{count}条)',\n Cancel: '取消',\n Confirm: '确定'\n};\n\nexport default locale;\n"],"names":["locale","TotalText","ItemText","UnnamedColumn","EditTable","RestoreDefault","VisibleInfo","HiddenInfo","Search","BatchOperations","BatchOperationsWithCount","Cancel","Confirm"],"mappings":"AAAA,MAAMA,MAAM,GAAG;AACbC,EAAAA,SAAS,EAAE,GAAG;AACdC,EAAAA,QAAQ,EAAE,GAAG;AACbC,EAAAA,aAAa,EAAE,MAAM;AACrBC,EAAAA,SAAS,EAAE,MAAM;AACjBC,EAAAA,cAAc,EAAE,MAAM;AACtBC,EAAAA,WAAW,EAAE,OAAO;AACpBC,EAAAA,UAAU,EAAE,OAAO;AACnBC,EAAAA,MAAM,EAAE,IAAI;AACZC,EAAAA,eAAe,EAAE,MAAM;AACvBC,EAAAA,wBAAwB,EAAE,mBAAmB;AAC7CC,EAAAA,MAAM,EAAE,IAAI;AACZC,EAAAA,OAAO,EAAE,IAAA;AACX;;;;"}
|
package/package.json
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@kne/table-page",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "A React table page component based on Ant Design 5, supporting column config, filter, sort and batch operations.",
|
|
5
|
+
"syntax": {
|
|
6
|
+
"esmodules": true
|
|
7
|
+
},
|
|
8
|
+
"main": "dist/index.js",
|
|
9
|
+
"module": "dist/index.modern.js",
|
|
10
|
+
"source": "src/index.js",
|
|
11
|
+
"scripts": {
|
|
12
|
+
"init": "husky && npm run init-example",
|
|
13
|
+
"start": "run-p start:lib start:md start:example",
|
|
14
|
+
"build": "run-s build:lib build:md build:example",
|
|
15
|
+
"init-example": "modules-dev-libs-init",
|
|
16
|
+
"build:md": "npx @kne/md-doc",
|
|
17
|
+
"start:md": "npx @kne/md-doc --watch",
|
|
18
|
+
"build:locale": "microbundle src/locale/*.js -o dist/locale --no-compress --format modern,cjs ",
|
|
19
|
+
"build:lib-main": "microbundle --no-compress --format modern,cjs --jsxImportSource react --jsx React.createElement --jsxFragment React.Fragment",
|
|
20
|
+
"build:lib": "run-s build:locale build:lib-main",
|
|
21
|
+
"start:lib": "microbundle watch --no-compress --format modern,cjs --jsxImportSource react --jsx React.createElement --jsxFragment React.Fragment",
|
|
22
|
+
"build:example": "cd example && npm run build",
|
|
23
|
+
"start:example": "cd example && npm run start",
|
|
24
|
+
"test:build": "run-s build",
|
|
25
|
+
"test:lint": "eslint .",
|
|
26
|
+
"test:unit": "cross-env CI=1 react-scripts test --env=jsdom",
|
|
27
|
+
"test:watch": "react-scripts test --env=jsdom",
|
|
28
|
+
"prettier": "prettier --config .prettierrc --write '{src/**/*,index,prompts}.{js,jsx,ts,tsx,json,css,scss}'",
|
|
29
|
+
"lint-staged": "npx lint-staged"
|
|
30
|
+
},
|
|
31
|
+
"husky": {
|
|
32
|
+
"hooks": {
|
|
33
|
+
"pre-commit": "lint-staged"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"lint-staged": {
|
|
37
|
+
"src/**/*.{js,jsx,ts,tsx,json,css,scss,md}": [
|
|
38
|
+
"prettier --config .prettierrc --write",
|
|
39
|
+
"git add"
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
"files": [
|
|
43
|
+
"dist"
|
|
44
|
+
],
|
|
45
|
+
"repository": {
|
|
46
|
+
"type": "git",
|
|
47
|
+
"url": "git+https://github.com/kne-union/table-page.git"
|
|
48
|
+
},
|
|
49
|
+
"keywords": [
|
|
50
|
+
"react",
|
|
51
|
+
"table",
|
|
52
|
+
"ant-design",
|
|
53
|
+
"antd",
|
|
54
|
+
"table-page",
|
|
55
|
+
"data-table",
|
|
56
|
+
"column-config",
|
|
57
|
+
"filter",
|
|
58
|
+
"sorting",
|
|
59
|
+
"pagination",
|
|
60
|
+
"batch-operations",
|
|
61
|
+
"admin",
|
|
62
|
+
"row-selection",
|
|
63
|
+
"render-type",
|
|
64
|
+
"i18n"
|
|
65
|
+
],
|
|
66
|
+
"author": "linzp",
|
|
67
|
+
"license": "ISC",
|
|
68
|
+
"bugs": {
|
|
69
|
+
"url": "https://github.com/kne-union/table-page/issues"
|
|
70
|
+
},
|
|
71
|
+
"homepage": "https://github.com/kne-union/table-page",
|
|
72
|
+
"eslintConfig": {
|
|
73
|
+
"extends": [
|
|
74
|
+
"react-app",
|
|
75
|
+
"react-app/jest"
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
"browserslist": {
|
|
79
|
+
"production": [
|
|
80
|
+
">0.2%",
|
|
81
|
+
"not dead",
|
|
82
|
+
"not op_mini all"
|
|
83
|
+
],
|
|
84
|
+
"development": [
|
|
85
|
+
"last 1 chrome version",
|
|
86
|
+
"last 1 firefox version",
|
|
87
|
+
"last 1 safari version"
|
|
88
|
+
]
|
|
89
|
+
},
|
|
90
|
+
"peerDependencies": {
|
|
91
|
+
"antd": ">=5",
|
|
92
|
+
"react": "*",
|
|
93
|
+
"react-dom": "*"
|
|
94
|
+
},
|
|
95
|
+
"devDependencies": {
|
|
96
|
+
"@kne/microbundle": "^0.15.5",
|
|
97
|
+
"@kne/modules-dev": "^2.0.33",
|
|
98
|
+
"cross-env": "^7.0.3",
|
|
99
|
+
"husky": "^9.0.11",
|
|
100
|
+
"npm-run-all": "^4.1.5",
|
|
101
|
+
"prettier": "^3.2.5",
|
|
102
|
+
"react": "^18.2.0",
|
|
103
|
+
"react-dom": "^18.2.0"
|
|
104
|
+
},
|
|
105
|
+
"dependencies": {
|
|
106
|
+
"@ant-design/icons": "^6.3.2",
|
|
107
|
+
"@kne/button-group": "^0.1.24",
|
|
108
|
+
"@kne/is-empty": "^1.1.0",
|
|
109
|
+
"@kne/react-fetch": "^1.5.5",
|
|
110
|
+
"@kne/react-filter": "^1.0.5",
|
|
111
|
+
"@kne/react-intl": "^0.1.9",
|
|
112
|
+
"@kne/use-ref-callback": "^0.1.3",
|
|
113
|
+
"classnames": "^2.5.1",
|
|
114
|
+
"lodash": "^4.17.21",
|
|
115
|
+
"react-sortablejs": "^6.1.4",
|
|
116
|
+
"sortablejs": "^1.15.7",
|
|
117
|
+
"use-debounce": "^10.0.4"
|
|
118
|
+
}
|
|
119
|
+
}
|