@pisell/materials 1.0.147 → 1.0.148
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +2 -2
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +19 -17
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +18 -16
- package/es/components/Pagination/index.js +9 -5
- package/es/components/table/Table/index.js +1 -2
- package/es/components/table/TableFilter/numberFilter.js +4 -5
- package/es/components/table/TableFilter/selectFilter.js +2 -3
- package/es/components/table/TableFilter/stringFilter.js +3 -4
- package/es/components/table/model.js +29 -1
- package/es/index.d.ts +1 -2
- package/es/index.js +2 -3
- package/lib/components/Pagination/index.js +3 -5
- package/lib/components/table/Table/index.js +1 -2
- package/lib/components/table/TableFilter/numberFilter.js +4 -5
- package/lib/components/table/TableFilter/selectFilter.js +2 -3
- package/lib/components/table/TableFilter/stringFilter.js +3 -4
- package/lib/components/table/model.js +34 -1
- package/lib/index.d.ts +1 -2
- package/lib/index.js +23 -26
- package/lowcode/menu/meta.ts +0 -5
- package/lowcode/menu.item/meta.ts +1 -1
- package/package.json +6 -5
- package/dist/umd/materials.min.css +0 -1
- package/dist/umd/materials.min.js +0 -1
- package/dist/umd/static/DotsSix.57d66266.svg +0 -1
- package/dist/umd/static/arrow-left.e542294f.svg +0 -1
- package/dist/umd/static/arrow-right.763f03e0.svg +0 -1
- package/dist/umd/static/filter-lines.04a54ae9.svg +0 -1
- package/dist/umd/static/help-circle.31c9be40.svg +0 -1
- package/dist/umd/static/switch-vertical-01.7ebe3ba8.svg +0 -1
- package/es/components/classicLayout/index.d.ts +0 -4
- package/es/components/classicLayout/index.js +0 -25
- package/es/components/classicLayout/index.less +0 -22
- package/es/components/list/index.d.ts +0 -7
- package/es/components/list/index.js +0 -19
- package/es/components/list/index.less +0 -13
- package/es/locales/en-US.d.ts +0 -11
- package/es/locales/en-US.js +0 -12
- package/es/locales/index.d.ts +0 -1
- package/es/locales/index.js +0 -21
- package/es/locales/zh-CN.d.ts +0 -11
- package/es/locales/zh-CN.js +0 -12
- package/es/locales/zh-TW.d.ts +0 -11
- package/es/locales/zh-TW.js +0 -12
- package/es/utils/locale.d.ts +0 -1
- package/es/utils/locale.js +0 -5
- package/lib/components/classicLayout/index.d.ts +0 -4
- package/lib/components/classicLayout/index.js +0 -59
- package/lib/components/classicLayout/index.less +0 -22
- package/lib/components/list/index.d.ts +0 -7
- package/lib/components/list/index.js +0 -54
- package/lib/components/list/index.less +0 -13
- package/lib/locales/en-US.d.ts +0 -11
- package/lib/locales/en-US.js +0 -34
- package/lib/locales/index.d.ts +0 -1
- package/lib/locales/index.js +0 -58
- package/lib/locales/zh-CN.d.ts +0 -11
- package/lib/locales/zh-CN.js +0 -34
- package/lib/locales/zh-TW.d.ts +0 -11
- package/lib/locales/zh-TW.js +0 -34
- package/lib/utils/locale.d.ts +0 -1
- package/lib/utils/locale.js +0 -32
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg width="24" height="24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path d="M8 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM8 6a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM8 20a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM16 13a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM16 6a1 1 0 1 0 0-2 1 1 0 0 0 0 2ZM16 20a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg width="24" height="24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.707 4.293a1 1 0 0 1 0 1.414L7.414 11H19a1 1 0 1 1 0 2H7.414l5.293 5.293a1 1 0 0 1-1.414 1.414l-7-7a1 1 0 0 1 0-1.414l7-7a1 1 0 0 1 1.414 0Z"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg width="24" height="24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M11.293 4.293a1 1 0 0 1 1.414 0l7 7a1 1 0 0 1 0 1.414l-7 7a1 1 0 0 1-1.414-1.414L16.586 13H5a1 1 0 1 1 0-2h11.586l-5.293-5.293a1 1 0 0 1 0-1.414Z"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg width="24" height="24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M2 6a1 1 0 0 1 1-1h18a1 1 0 1 1 0 2H3a1 1 0 0 1-1-1Zm3 6a1 1 0 0 1 1-1h12a1 1 0 1 1 0 2H6a1 1 0 0 1-1-1Zm3 6a1 1 0 0 1 1-1h6a1 1 0 1 1 0 2H9a1 1 0 0 1-1-1Z"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg width="24" height="24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18ZM1 12C1 5.925 5.925 1 12 1s11 4.925 11 11-4.925 11-11 11S1 18.075 1 12Zm11.258-3.976a2 2 0 0 0-2.225 1.308 1 1 0 1 1-1.886-.664 4 4 0 0 1 7.773 1.333c0 1.53-1.135 2.54-1.945 3.081a8.044 8.044 0 0 1-1.686.848l-.035.013-.011.003-.004.002h-.002L11.92 13l.316.949a1 1 0 0 1-.633-1.897l.016-.006.074-.027a6.051 6.051 0 0 0 1.172-.6c.69-.46 1.055-.95 1.055-1.419v-.001a2 2 0 0 0-1.662-1.975ZM11 17a1 1 0 0 1 1-1h.01a1 1 0 1 1 0 2H12a1 1 0 0 1-1-1Z"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg width="24" height="24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.293 3.293a1 1 0 0 1 1.414 0l4 4a1 1 0 0 1-1.414 1.414L8 6.414V20a1 1 0 1 1-2 0V6.414L3.707 8.707a1 1 0 0 1-1.414-1.414l4-4ZM16 17.586V4a1 1 0 1 1 2 0v13.586l2.293-2.293a1 1 0 0 1 1.414 1.414l-4 4a1 1 0 0 1-1.414 0l-4-4a1 1 0 0 1 1.414-1.414L16 17.586Z"/></svg>
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
3
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
4
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
5
|
-
import React from "react";
|
|
6
|
-
import classNames from "classnames";
|
|
7
|
-
import "./index.less";
|
|
8
|
-
var prefix = "pisell-lowcode-";
|
|
9
|
-
var ClassicLayout = function ClassicLayout(props) {
|
|
10
|
-
var header = props.header,
|
|
11
|
-
content = props.content,
|
|
12
|
-
footer = props.footer,
|
|
13
|
-
style = props.style,
|
|
14
|
-
fixedHeader = props.fixedHeader,
|
|
15
|
-
fixedFooter = props.fixedFooter;
|
|
16
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
17
|
-
className: "".concat(prefix, "claseic-layout"),
|
|
18
|
-
style: style
|
|
19
|
-
}, /*#__PURE__*/React.createElement("header", {
|
|
20
|
-
className: classNames(_defineProperty({}, "".concat(prefix, "claseic-layout-fixed-header"), fixedHeader))
|
|
21
|
-
}, header), content, /*#__PURE__*/React.createElement("footer", {
|
|
22
|
-
className: classNames(_defineProperty({}, "".concat(prefix, "claseic-layout-fixed-footer"), fixedFooter))
|
|
23
|
-
}, footer));
|
|
24
|
-
};
|
|
25
|
-
export default ClassicLayout;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
@pisell-prefix: pisell-lowcode;
|
|
2
|
-
|
|
3
|
-
.@{pisell-prefix} {
|
|
4
|
-
&-claseic-layout {
|
|
5
|
-
position: relative;
|
|
6
|
-
overflow: auto;
|
|
7
|
-
height: 100%;
|
|
8
|
-
width: 100%;
|
|
9
|
-
}
|
|
10
|
-
&-claseic-layout-fixed-header {
|
|
11
|
-
position: sticky;
|
|
12
|
-
top: 0;
|
|
13
|
-
z-index: 1;
|
|
14
|
-
width: 100%;
|
|
15
|
-
}
|
|
16
|
-
&-claseic-layout-fixed-footer {
|
|
17
|
-
position: sticky;
|
|
18
|
-
bottom: 0;
|
|
19
|
-
z-index: 1;
|
|
20
|
-
width: 100%;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
3
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
4
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
5
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
6
|
-
import React from "react";
|
|
7
|
-
import classNames from "classnames";
|
|
8
|
-
import { List as AntList } from "antd";
|
|
9
|
-
import "./index.less";
|
|
10
|
-
var prefix = "pisell-lowcode-";
|
|
11
|
-
var List = function List(props) {
|
|
12
|
-
var _props$grid;
|
|
13
|
-
var className = props.className;
|
|
14
|
-
return /*#__PURE__*/React.createElement(AntList, _extends({}, props, {
|
|
15
|
-
className: classNames(className, _defineProperty({}, "".concat(prefix, "list-one-line-wrap"), props === null || props === void 0 ? void 0 : (_props$grid = props.grid) === null || _props$grid === void 0 ? void 0 : _props$grid.oneLine))
|
|
16
|
-
}));
|
|
17
|
-
};
|
|
18
|
-
List.Item = AntList.Item;
|
|
19
|
-
export default List;
|
package/es/locales/en-US.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
"table-filter-search": string;
|
|
3
|
-
"table-filter-clear": string;
|
|
4
|
-
"table-filter-filter": string;
|
|
5
|
-
"table-filter-min": string;
|
|
6
|
-
"table-filter-max": string;
|
|
7
|
-
"table-pagination-previous": string;
|
|
8
|
-
"table-pagination-next": string;
|
|
9
|
-
"table-pagination-total": (current: string, total: string) => string;
|
|
10
|
-
};
|
|
11
|
-
export default _default;
|
package/es/locales/en-US.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
"table-filter-search": "Search",
|
|
3
|
-
"table-filter-clear": "Clear",
|
|
4
|
-
"table-filter-filter": "Filter",
|
|
5
|
-
"table-filter-min": "Min",
|
|
6
|
-
"table-filter-max": "Max",
|
|
7
|
-
"table-pagination-previous": "Previous",
|
|
8
|
-
"table-pagination-next": "Next",
|
|
9
|
-
"table-pagination-total": function tablePaginationTotal(current, total) {
|
|
10
|
-
return "Page ".concat(current, " of ").concat(total);
|
|
11
|
-
}
|
|
12
|
-
};
|
package/es/locales/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getText: (id: string) => any;
|
package/es/locales/index.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import zhCN from "./zh-CN";
|
|
2
|
-
import enUS from "./en-US";
|
|
3
|
-
import zhTW from "./zh-TW";
|
|
4
|
-
import { getCurrentLocale } from "../utils/locale";
|
|
5
|
-
var langMap = {
|
|
6
|
-
"zh-CN": zhCN,
|
|
7
|
-
"en-US": enUS,
|
|
8
|
-
"zh-TW": zhTW
|
|
9
|
-
};
|
|
10
|
-
export var getText = function getText(id) {
|
|
11
|
-
if (!id) {
|
|
12
|
-
return;
|
|
13
|
-
}
|
|
14
|
-
var locale = getCurrentLocale();
|
|
15
|
-
if (!locale) {
|
|
16
|
-
localStorage.setItem("umi_locale", "en-US");
|
|
17
|
-
locale = "en-US";
|
|
18
|
-
}
|
|
19
|
-
//@ts-ignore
|
|
20
|
-
return langMap[locale][id] || id;
|
|
21
|
-
};
|
package/es/locales/zh-CN.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
'table-filter-search': string;
|
|
3
|
-
'table-filter-clear': string;
|
|
4
|
-
'table-filter-filter': string;
|
|
5
|
-
'table-filter-min': string;
|
|
6
|
-
'table-filter-max': string;
|
|
7
|
-
'table-pagination-previous': string;
|
|
8
|
-
'table-pagination-next': string;
|
|
9
|
-
'table-pagination-total': (current: string, total: string) => string;
|
|
10
|
-
};
|
|
11
|
-
export default _default;
|
package/es/locales/zh-CN.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
'table-filter-search': '搜索',
|
|
3
|
-
'table-filter-clear': '清除',
|
|
4
|
-
'table-filter-filter': '筛选',
|
|
5
|
-
'table-filter-min': '最小',
|
|
6
|
-
'table-filter-max': '最大',
|
|
7
|
-
'table-pagination-previous': '上一页',
|
|
8
|
-
'table-pagination-next': '下一页',
|
|
9
|
-
'table-pagination-total': function tablePaginationTotal(current, total) {
|
|
10
|
-
return "\u7B2C".concat(current, "\u9875 \u5171").concat(total, "\u9875");
|
|
11
|
-
}
|
|
12
|
-
};
|
package/es/locales/zh-TW.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
'table-filter-search': string;
|
|
3
|
-
'table-filter-clear': string;
|
|
4
|
-
'table-filter-filter': string;
|
|
5
|
-
'table-filter-min': string;
|
|
6
|
-
'table-filter-max': string;
|
|
7
|
-
'table-pagination-previous': string;
|
|
8
|
-
'table-pagination-next': string;
|
|
9
|
-
'table-pagination-total': (current: string, total: string) => string;
|
|
10
|
-
};
|
|
11
|
-
export default _default;
|
package/es/locales/zh-TW.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export default {
|
|
2
|
-
'table-filter-search': '搜索',
|
|
3
|
-
'table-filter-clear': '清除',
|
|
4
|
-
'table-filter-filter': '篩選',
|
|
5
|
-
'table-filter-min': '最小',
|
|
6
|
-
'table-filter-max': '最大',
|
|
7
|
-
'table-pagination-previous': '上一頁',
|
|
8
|
-
'table-pagination-next': '下一頁',
|
|
9
|
-
'table-pagination-total': function tablePaginationTotal(current, total) {
|
|
10
|
-
return "\u7B2C".concat(current, "\u9801 \u5171").concat(total, "\u9801");
|
|
11
|
-
}
|
|
12
|
-
};
|
package/es/utils/locale.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getCurrentLocale: () => string;
|
package/es/utils/locale.js
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
-
|
|
29
|
-
// src/components/classicLayout/index.tsx
|
|
30
|
-
var classicLayout_exports = {};
|
|
31
|
-
__export(classicLayout_exports, {
|
|
32
|
-
default: () => classicLayout_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(classicLayout_exports);
|
|
35
|
-
var import_react = __toESM(require("react"));
|
|
36
|
-
var import_classnames = __toESM(require("classnames"));
|
|
37
|
-
var import_index = require("./index.less");
|
|
38
|
-
var prefix = "pisell-lowcode-";
|
|
39
|
-
var ClassicLayout = (props) => {
|
|
40
|
-
const { header, content, footer, style, fixedHeader, fixedFooter } = props;
|
|
41
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}claseic-layout`, style }, /* @__PURE__ */ import_react.default.createElement(
|
|
42
|
-
"header",
|
|
43
|
-
{
|
|
44
|
-
className: (0, import_classnames.default)({
|
|
45
|
-
[`${prefix}claseic-layout-fixed-header`]: fixedHeader
|
|
46
|
-
})
|
|
47
|
-
},
|
|
48
|
-
header
|
|
49
|
-
), content, /* @__PURE__ */ import_react.default.createElement(
|
|
50
|
-
"footer",
|
|
51
|
-
{
|
|
52
|
-
className: (0, import_classnames.default)({
|
|
53
|
-
[`${prefix}claseic-layout-fixed-footer`]: fixedFooter
|
|
54
|
-
})
|
|
55
|
-
},
|
|
56
|
-
footer
|
|
57
|
-
));
|
|
58
|
-
};
|
|
59
|
-
var classicLayout_default = ClassicLayout;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
@pisell-prefix: pisell-lowcode;
|
|
2
|
-
|
|
3
|
-
.@{pisell-prefix} {
|
|
4
|
-
&-claseic-layout {
|
|
5
|
-
position: relative;
|
|
6
|
-
overflow: auto;
|
|
7
|
-
height: 100%;
|
|
8
|
-
width: 100%;
|
|
9
|
-
}
|
|
10
|
-
&-claseic-layout-fixed-header {
|
|
11
|
-
position: sticky;
|
|
12
|
-
top: 0;
|
|
13
|
-
z-index: 1;
|
|
14
|
-
width: 100%;
|
|
15
|
-
}
|
|
16
|
-
&-claseic-layout-fixed-footer {
|
|
17
|
-
position: sticky;
|
|
18
|
-
bottom: 0;
|
|
19
|
-
z-index: 1;
|
|
20
|
-
width: 100%;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
-
|
|
29
|
-
// src/components/list/index.tsx
|
|
30
|
-
var list_exports = {};
|
|
31
|
-
__export(list_exports, {
|
|
32
|
-
default: () => list_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(list_exports);
|
|
35
|
-
var import_react = __toESM(require("react"));
|
|
36
|
-
var import_classnames = __toESM(require("classnames"));
|
|
37
|
-
var import_antd = require("antd");
|
|
38
|
-
var import_index = require("./index.less");
|
|
39
|
-
var prefix = "pisell-lowcode-";
|
|
40
|
-
var List = (props) => {
|
|
41
|
-
var _a;
|
|
42
|
-
const { className } = props;
|
|
43
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
44
|
-
import_antd.List,
|
|
45
|
-
{
|
|
46
|
-
...props,
|
|
47
|
-
className: (0, import_classnames.default)(className, {
|
|
48
|
-
[`${prefix}list-one-line-wrap`]: (_a = props == null ? void 0 : props.grid) == null ? void 0 : _a.oneLine
|
|
49
|
-
})
|
|
50
|
-
}
|
|
51
|
-
);
|
|
52
|
-
};
|
|
53
|
-
List.Item = import_antd.List.Item;
|
|
54
|
-
var list_default = List;
|
package/lib/locales/en-US.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
"table-filter-search": string;
|
|
3
|
-
"table-filter-clear": string;
|
|
4
|
-
"table-filter-filter": string;
|
|
5
|
-
"table-filter-min": string;
|
|
6
|
-
"table-filter-max": string;
|
|
7
|
-
"table-pagination-previous": string;
|
|
8
|
-
"table-pagination-next": string;
|
|
9
|
-
"table-pagination-total": (current: string, total: string) => string;
|
|
10
|
-
};
|
|
11
|
-
export default _default;
|
package/lib/locales/en-US.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/locales/en-US.ts
|
|
20
|
-
var en_US_exports = {};
|
|
21
|
-
__export(en_US_exports, {
|
|
22
|
-
default: () => en_US_default
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(en_US_exports);
|
|
25
|
-
var en_US_default = {
|
|
26
|
-
"table-filter-search": "Search",
|
|
27
|
-
"table-filter-clear": "Clear",
|
|
28
|
-
"table-filter-filter": "Filter",
|
|
29
|
-
"table-filter-min": "Min",
|
|
30
|
-
"table-filter-max": "Max",
|
|
31
|
-
"table-pagination-previous": "Previous",
|
|
32
|
-
"table-pagination-next": "Next",
|
|
33
|
-
"table-pagination-total": (current, total) => `Page ${current} of ${total}`
|
|
34
|
-
};
|
package/lib/locales/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getText: (id: string) => any;
|
package/lib/locales/index.js
DELETED
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all)
|
|
9
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from))
|
|
14
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
-
}
|
|
17
|
-
return to;
|
|
18
|
-
};
|
|
19
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
-
mod
|
|
26
|
-
));
|
|
27
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
|
-
|
|
29
|
-
// src/locales/index.ts
|
|
30
|
-
var locales_exports = {};
|
|
31
|
-
__export(locales_exports, {
|
|
32
|
-
getText: () => getText
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(locales_exports);
|
|
35
|
-
var import_zh_CN = __toESM(require("./zh-CN"));
|
|
36
|
-
var import_en_US = __toESM(require("./en-US"));
|
|
37
|
-
var import_zh_TW = __toESM(require("./zh-TW"));
|
|
38
|
-
var import_locale = require("../utils/locale");
|
|
39
|
-
var langMap = {
|
|
40
|
-
"zh-CN": import_zh_CN.default,
|
|
41
|
-
"en-US": import_en_US.default,
|
|
42
|
-
"zh-TW": import_zh_TW.default
|
|
43
|
-
};
|
|
44
|
-
var getText = (id) => {
|
|
45
|
-
if (!id) {
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
let locale = (0, import_locale.getCurrentLocale)();
|
|
49
|
-
if (!locale) {
|
|
50
|
-
localStorage.setItem("umi_locale", "en-US");
|
|
51
|
-
locale = "en-US";
|
|
52
|
-
}
|
|
53
|
-
return langMap[locale][id] || id;
|
|
54
|
-
};
|
|
55
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
56
|
-
0 && (module.exports = {
|
|
57
|
-
getText
|
|
58
|
-
});
|
package/lib/locales/zh-CN.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
'table-filter-search': string;
|
|
3
|
-
'table-filter-clear': string;
|
|
4
|
-
'table-filter-filter': string;
|
|
5
|
-
'table-filter-min': string;
|
|
6
|
-
'table-filter-max': string;
|
|
7
|
-
'table-pagination-previous': string;
|
|
8
|
-
'table-pagination-next': string;
|
|
9
|
-
'table-pagination-total': (current: string, total: string) => string;
|
|
10
|
-
};
|
|
11
|
-
export default _default;
|
package/lib/locales/zh-CN.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/locales/zh-CN.ts
|
|
20
|
-
var zh_CN_exports = {};
|
|
21
|
-
__export(zh_CN_exports, {
|
|
22
|
-
default: () => zh_CN_default
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(zh_CN_exports);
|
|
25
|
-
var zh_CN_default = {
|
|
26
|
-
"table-filter-search": "搜索",
|
|
27
|
-
"table-filter-clear": "清除",
|
|
28
|
-
"table-filter-filter": "筛选",
|
|
29
|
-
"table-filter-min": "最小",
|
|
30
|
-
"table-filter-max": "最大",
|
|
31
|
-
"table-pagination-previous": "上一页",
|
|
32
|
-
"table-pagination-next": "下一页",
|
|
33
|
-
"table-pagination-total": (current, total) => `第${current}页 共${total}页`
|
|
34
|
-
};
|
package/lib/locales/zh-TW.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
declare const _default: {
|
|
2
|
-
'table-filter-search': string;
|
|
3
|
-
'table-filter-clear': string;
|
|
4
|
-
'table-filter-filter': string;
|
|
5
|
-
'table-filter-min': string;
|
|
6
|
-
'table-filter-max': string;
|
|
7
|
-
'table-pagination-previous': string;
|
|
8
|
-
'table-pagination-next': string;
|
|
9
|
-
'table-pagination-total': (current: string, total: string) => string;
|
|
10
|
-
};
|
|
11
|
-
export default _default;
|
package/lib/locales/zh-TW.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/locales/zh-TW.ts
|
|
20
|
-
var zh_TW_exports = {};
|
|
21
|
-
__export(zh_TW_exports, {
|
|
22
|
-
default: () => zh_TW_default
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(zh_TW_exports);
|
|
25
|
-
var zh_TW_default = {
|
|
26
|
-
"table-filter-search": "搜索",
|
|
27
|
-
"table-filter-clear": "清除",
|
|
28
|
-
"table-filter-filter": "篩選",
|
|
29
|
-
"table-filter-min": "最小",
|
|
30
|
-
"table-filter-max": "最大",
|
|
31
|
-
"table-pagination-previous": "上一頁",
|
|
32
|
-
"table-pagination-next": "下一頁",
|
|
33
|
-
"table-pagination-total": (current, total) => `第${current}頁 共${total}頁`
|
|
34
|
-
};
|
package/lib/utils/locale.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getCurrentLocale: () => string;
|
package/lib/utils/locale.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/utils/locale.ts
|
|
20
|
-
var locale_exports = {};
|
|
21
|
-
__export(locale_exports, {
|
|
22
|
-
getCurrentLocale: () => getCurrentLocale
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(locale_exports);
|
|
25
|
-
var getCurrentLocale = () => {
|
|
26
|
-
const locale = localStorage.getItem("umi_locale") || "en-US";
|
|
27
|
-
return locale;
|
|
28
|
-
};
|
|
29
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
30
|
-
0 && (module.exports = {
|
|
31
|
-
getCurrentLocale
|
|
32
|
-
});
|