@pisell/materials 1.0.206 → 1.0.208
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/preview.js +142 -142
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +20 -20
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +22 -22
- package/es/components/DragSortList/index.d.ts +1 -1
- package/es/components/MultipleContainersSortList/index.d.ts +1 -1
- package/es/components/Pagination/index.d.ts +2 -2
- package/es/components/Pagination/index.js +14 -9
- package/es/components/auto-complete/index.d.ts +5 -1
- package/es/components/calendar/index.d.ts +1 -1
- package/es/components/checkbox/index.d.ts +1 -1
- package/es/components/config-provider/index.d.ts +2 -2
- package/es/components/date-picker/index.d.ts +1 -1
- package/es/components/div/index.d.ts +1 -1
- package/es/components/div/index.js +2 -6
- package/es/components/drawer/index.d.ts +0 -1
- package/es/components/drawer/index.js +4 -42
- package/es/components/dropdown/index.d.ts +2 -2
- package/es/components/filter/components/QuickFilter/index.d.ts +2 -2
- package/es/components/filter/components/items/index.d.ts +6 -6
- package/es/components/filter/components/items/text/Editor/index.d.ts +1 -1
- package/es/components/filter/components/items/text/Preview/index.d.ts +1 -1
- package/es/components/filter/components/items/text/index.d.ts +2 -2
- package/es/components/filter/index.d.ts +2 -2
- package/es/components/form/index.d.ts +1 -1
- package/es/components/page/index.d.ts +2 -2
- package/es/components/page/index.js +1 -14
- package/es/components/qrcode/index.d.ts +2 -2
- package/es/components/radio/index.d.ts +1 -1
- package/es/components/record-view/index.less +0 -2
- package/es/components/select/index.d.ts +5 -2
- package/es/components/select/index.js +2 -60
- package/es/components/skeleton/index.d.ts +1 -1
- package/es/components/slider/index.d.ts +2 -2
- package/es/components/table/Actions/Sort/index.d.ts +12 -0
- package/es/components/table/Actions/Sort/index.js +59 -0
- package/es/components/table/Actions/Sort/index.less +0 -0
- package/es/components/table/Actions/index.d.ts +2 -2
- package/es/components/table/Actions/index.js +1 -1
- package/es/components/table/BasicTable/index.d.ts +2 -2
- package/es/components/table/Header/index.d.ts +2 -2
- package/es/components/table/Summary/index.d.ts +2 -2
- package/es/components/table/Table/SelectField/index.d.ts +2 -2
- package/es/components/table/Table/fields/date/Config/index.d.ts +1 -1
- package/es/components/table/Table/fields/date/Show/index.d.ts +2 -2
- package/es/components/table/Table/fields/date/Show/index.js +1 -2
- package/es/components/table/Table/fields/date/Sort/index.d.ts +1 -1
- package/es/components/table/Table/fields/date/index.d.ts +3 -3
- package/es/components/table/Table/fields/image/Config/index.d.ts +1 -1
- package/es/components/table/Table/fields/image/Show/index.d.ts +1 -1
- package/es/components/table/Table/fields/image/Show/index.js +1 -2
- package/es/components/table/Table/fields/image/Sort/index.d.ts +1 -1
- package/es/components/table/Table/fields/image/index.d.ts +3 -3
- package/es/components/table/Table/fields/index.d.ts +57 -57
- package/es/components/table/Table/fields/link/Config/index.d.ts +1 -1
- package/es/components/table/Table/fields/link/Show/index.d.ts +1 -1
- package/es/components/table/Table/fields/link/Show/index.js +5 -7
- package/es/components/table/Table/fields/link/Sort/index.d.ts +1 -1
- package/es/components/table/Table/fields/link/index.d.ts +3 -3
- package/es/components/table/Table/fields/number/Config/index.d.ts +1 -1
- package/es/components/table/Table/fields/number/Show/index.d.ts +1 -1
- package/es/components/table/Table/fields/number/Show/index.js +1 -2
- package/es/components/table/Table/fields/number/Sort/index.d.ts +1 -1
- package/es/components/table/Table/fields/number/index.d.ts +3 -3
- package/es/components/table/Table/fields/pSwitch/Config/index.d.ts +1 -1
- package/es/components/table/Table/fields/pSwitch/Show/index.d.ts +2 -2
- package/es/components/table/Table/fields/pSwitch/Show/index.js +1 -2
- package/es/components/table/Table/fields/pSwitch/Sort/index.d.ts +1 -1
- package/es/components/table/Table/fields/pSwitch/index.d.ts +3 -3
- package/es/components/table/Table/fields/rangePicker/Config/index.d.ts +1 -1
- package/es/components/table/Table/fields/rangePicker/Show/index.d.ts +1 -1
- package/es/components/table/Table/fields/rangePicker/Sort/index.d.ts +1 -1
- package/es/components/table/Table/fields/rangePicker/index.d.ts +3 -3
- package/es/components/table/Table/fields/search/Config/index.d.ts +1 -1
- package/es/components/table/Table/fields/search/Show/index.d.ts +1 -1
- package/es/components/table/Table/fields/search/Show/index.js +1 -2
- package/es/components/table/Table/fields/search/Sort/index.d.ts +1 -1
- package/es/components/table/Table/fields/search/index.d.ts +3 -3
- package/es/components/table/Table/fields/select/Config/index.d.ts +1 -1
- package/es/components/table/Table/fields/select/Show/index.d.ts +1 -1
- package/es/components/table/Table/fields/select/Sort/index.d.ts +1 -1
- package/es/components/table/Table/fields/select/index.d.ts +3 -3
- package/es/components/table/Table/fields/text/Config/index.d.ts +1 -1
- package/es/components/table/Table/fields/text/Edit/index.js +3 -8
- package/es/components/table/Table/fields/text/Show/index.d.ts +1 -1
- package/es/components/table/Table/fields/text/Show/index.js +1 -2
- package/es/components/table/Table/fields/text/Sort/index.d.ts +1 -1
- package/es/components/table/Table/fields/text/index.d.ts +3 -3
- package/es/components/table/Table/index.js +4 -5
- package/es/components/table/Table/tableConfig/SortRow/index.d.ts +2 -2
- package/es/components/table/Table/tableConfig/summary/index.d.ts +2 -2
- package/es/components/table/TableFilter/SortIcon.d.ts +2 -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.d.ts +1 -1
- package/es/components/table/model.js +29 -1
- package/es/components/tabs/index.d.ts +2 -5
- package/es/components/tabs/index.js +8 -51
- package/es/components/time-picker/index.d.ts +1 -1
- package/es/components/upload/index.d.ts +1 -1
- package/es/index.d.ts +1 -5
- package/es/index.js +5 -6
- package/es/utils/hoc.d.ts +4 -4
- package/es/utils/hoc.js +8 -9
- package/es/utils/miniRedux.d.ts +1 -1
- package/lib/components/DragSortList/index.d.ts +1 -1
- package/lib/components/MultipleContainersSortList/index.d.ts +1 -1
- package/lib/components/Pagination/index.d.ts +2 -2
- package/lib/components/Pagination/index.js +8 -9
- package/lib/components/auto-complete/index.d.ts +5 -1
- package/lib/components/calendar/index.d.ts +1 -1
- package/lib/components/checkbox/index.d.ts +1 -1
- package/lib/components/config-provider/index.d.ts +2 -2
- package/lib/components/date-picker/index.d.ts +1 -1
- package/lib/components/div/index.d.ts +1 -1
- package/lib/components/div/index.js +2 -2
- package/lib/components/drawer/index.d.ts +0 -1
- package/lib/components/drawer/index.js +1 -37
- package/lib/components/dropdown/index.d.ts +2 -2
- package/lib/components/filter/components/QuickFilter/index.d.ts +2 -2
- package/lib/components/filter/components/items/index.d.ts +6 -6
- package/lib/components/filter/components/items/text/Editor/index.d.ts +1 -1
- package/lib/components/filter/components/items/text/Preview/index.d.ts +1 -1
- package/lib/components/filter/components/items/text/index.d.ts +2 -2
- package/lib/components/filter/index.d.ts +2 -2
- package/lib/components/form/index.d.ts +1 -1
- package/lib/components/page/index.d.ts +2 -2
- package/lib/components/page/index.js +1 -13
- package/lib/components/qrcode/index.d.ts +2 -2
- package/lib/components/radio/index.d.ts +1 -1
- package/lib/components/record-view/index.less +0 -2
- package/lib/components/select/index.d.ts +5 -2
- package/lib/components/select/index.js +1 -67
- package/lib/components/skeleton/index.d.ts +1 -1
- package/lib/components/slider/index.d.ts +2 -2
- package/lib/components/table/Actions/Sort/index.d.ts +12 -0
- package/lib/components/table/Actions/Sort/index.js +86 -0
- package/lib/components/table/Actions/Sort/index.less +0 -0
- package/lib/components/table/Actions/index.d.ts +2 -2
- package/lib/components/table/Actions/index.js +2 -2
- package/lib/components/table/BasicTable/index.d.ts +2 -2
- package/lib/components/table/Header/index.d.ts +2 -2
- package/lib/components/table/Summary/index.d.ts +2 -2
- package/lib/components/table/Table/SelectField/index.d.ts +2 -2
- package/lib/components/table/Table/fields/date/Config/index.d.ts +1 -1
- package/lib/components/table/Table/fields/date/Show/index.d.ts +2 -2
- package/lib/components/table/Table/fields/date/Show/index.js +1 -2
- package/lib/components/table/Table/fields/date/Sort/index.d.ts +1 -1
- package/lib/components/table/Table/fields/date/index.d.ts +3 -3
- package/lib/components/table/Table/fields/image/Config/index.d.ts +1 -1
- package/lib/components/table/Table/fields/image/Show/index.d.ts +1 -1
- package/lib/components/table/Table/fields/image/Show/index.js +1 -2
- package/lib/components/table/Table/fields/image/Sort/index.d.ts +1 -1
- package/lib/components/table/Table/fields/image/index.d.ts +3 -3
- package/lib/components/table/Table/fields/index.d.ts +57 -57
- package/lib/components/table/Table/fields/link/Config/index.d.ts +1 -1
- package/lib/components/table/Table/fields/link/Show/index.d.ts +1 -1
- package/lib/components/table/Table/fields/link/Show/index.js +5 -7
- package/lib/components/table/Table/fields/link/Sort/index.d.ts +1 -1
- package/lib/components/table/Table/fields/link/index.d.ts +3 -3
- package/lib/components/table/Table/fields/number/Config/index.d.ts +1 -1
- package/lib/components/table/Table/fields/number/Show/index.d.ts +1 -1
- package/lib/components/table/Table/fields/number/Show/index.js +1 -2
- package/lib/components/table/Table/fields/number/Sort/index.d.ts +1 -1
- package/lib/components/table/Table/fields/number/index.d.ts +3 -3
- package/lib/components/table/Table/fields/pSwitch/Config/index.d.ts +1 -1
- package/lib/components/table/Table/fields/pSwitch/Show/index.d.ts +2 -2
- package/lib/components/table/Table/fields/pSwitch/Show/index.js +1 -2
- package/lib/components/table/Table/fields/pSwitch/Sort/index.d.ts +1 -1
- package/lib/components/table/Table/fields/pSwitch/index.d.ts +3 -3
- package/lib/components/table/Table/fields/rangePicker/Config/index.d.ts +1 -1
- package/lib/components/table/Table/fields/rangePicker/Show/index.d.ts +1 -1
- package/lib/components/table/Table/fields/rangePicker/Sort/index.d.ts +1 -1
- package/lib/components/table/Table/fields/rangePicker/index.d.ts +3 -3
- package/lib/components/table/Table/fields/search/Config/index.d.ts +1 -1
- package/lib/components/table/Table/fields/search/Show/index.d.ts +1 -1
- package/lib/components/table/Table/fields/search/Show/index.js +1 -2
- package/lib/components/table/Table/fields/search/Sort/index.d.ts +1 -1
- package/lib/components/table/Table/fields/search/index.d.ts +3 -3
- package/lib/components/table/Table/fields/select/Config/index.d.ts +1 -1
- package/lib/components/table/Table/fields/select/Show/index.d.ts +1 -1
- package/lib/components/table/Table/fields/select/Sort/index.d.ts +1 -1
- package/lib/components/table/Table/fields/select/index.d.ts +3 -3
- package/lib/components/table/Table/fields/text/Config/index.d.ts +1 -1
- package/lib/components/table/Table/fields/text/Edit/index.js +1 -2
- package/lib/components/table/Table/fields/text/Show/index.d.ts +1 -1
- package/lib/components/table/Table/fields/text/Show/index.js +1 -2
- package/lib/components/table/Table/fields/text/Sort/index.d.ts +1 -1
- package/lib/components/table/Table/fields/text/index.d.ts +3 -3
- package/lib/components/table/Table/index.js +2 -3
- package/lib/components/table/Table/tableConfig/SortRow/index.d.ts +2 -2
- package/lib/components/table/Table/tableConfig/summary/index.d.ts +2 -2
- package/lib/components/table/TableFilter/SortIcon.d.ts +2 -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.d.ts +1 -1
- package/lib/components/table/model.js +34 -1
- package/lib/components/tabs/index.d.ts +2 -5
- package/lib/components/tabs/index.js +1 -50
- package/lib/components/time-picker/index.d.ts +1 -1
- package/lib/components/upload/index.d.ts +1 -1
- package/lib/index.d.ts +1 -5
- package/lib/index.js +2 -14
- package/lib/utils/hoc.d.ts +4 -4
- package/lib/utils/hoc.js +3 -3
- package/lib/utils/miniRedux.d.ts +1 -1
- package/lowcode/table/meta.ts +431 -1
- package/lowcode/table/snippets.ts +392 -16
- package/package.json +5 -2
- 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/component/index.d.ts +0 -11
- package/es/components/component/index.js +0 -10
- package/es/components/drawer/index.less +0 -34
- package/es/components/list/index.d.ts +0 -7
- package/es/components/list/index.js +0 -104
- package/es/components/list/index.less +0 -38
- package/es/components/select/index.less +0 -11
- package/es/components/sort/components/InlineMenu/index.d.ts +0 -15
- package/es/components/sort/components/InlineMenu/index.js +0 -87
- package/es/components/sort/components/InlineMenu/index.less +0 -20
- package/es/components/sort/index.d.ts +0 -18
- package/es/components/sort/index.js +0 -113
- package/es/components/sort/index.less +0 -10
- package/es/components/table/Table/fields/utils/index.d.ts +0 -1
- package/es/components/table/Table/fields/utils/index.js +0 -29
- package/es/components/tabs/index.less +0 -60
- package/es/locales/en-US.d.ts +0 -21
- package/es/locales/en-US.js +0 -22
- package/es/locales/index.d.ts +0 -1
- package/es/locales/index.js +0 -21
- package/es/locales/zh-CN.d.ts +0 -21
- package/es/locales/zh-CN.js +0 -22
- package/es/locales/zh-TW.d.ts +0 -21
- package/es/locales/zh-TW.js +0 -22
- package/es/utils/locale.d.ts +0 -1
- package/es/utils/locale.js +0 -5
- package/es/utils/platform.d.ts +0 -1
- package/es/utils/platform.js +0 -8
- 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/component/index.d.ts +0 -11
- package/lib/components/component/index.js +0 -29
- package/lib/components/drawer/index.less +0 -34
- package/lib/components/list/index.d.ts +0 -7
- package/lib/components/list/index.js +0 -134
- package/lib/components/list/index.less +0 -38
- package/lib/components/select/index.less +0 -11
- package/lib/components/sort/components/InlineMenu/index.d.ts +0 -15
- package/lib/components/sort/components/InlineMenu/index.js +0 -89
- package/lib/components/sort/components/InlineMenu/index.less +0 -20
- package/lib/components/sort/index.d.ts +0 -18
- package/lib/components/sort/index.js +0 -147
- package/lib/components/sort/index.less +0 -10
- package/lib/components/table/Table/fields/utils/index.d.ts +0 -1
- package/lib/components/table/Table/fields/utils/index.js +0 -46
- package/lib/components/tabs/index.less +0 -60
- package/lib/locales/en-US.d.ts +0 -21
- package/lib/locales/en-US.js +0 -44
- package/lib/locales/index.d.ts +0 -1
- package/lib/locales/index.js +0 -58
- package/lib/locales/zh-CN.d.ts +0 -21
- package/lib/locales/zh-CN.js +0 -44
- package/lib/locales/zh-TW.d.ts +0 -21
- package/lib/locales/zh-TW.js +0 -44
- package/lib/utils/locale.d.ts +0 -1
- package/lib/utils/locale.js +0 -32
- package/lib/utils/platform.d.ts +0 -1
- package/lib/utils/platform.js +0 -36
|
@@ -1,89 +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/sort/components/InlineMenu/index.tsx
|
|
30
|
-
var InlineMenu_exports = {};
|
|
31
|
-
__export(InlineMenu_exports, {
|
|
32
|
-
default: () => InlineMenu_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(InlineMenu_exports);
|
|
35
|
-
var import_react = __toESM(require("react"));
|
|
36
|
-
var import_antd = require("antd");
|
|
37
|
-
var import_icons = require("@ant-design/icons");
|
|
38
|
-
var import_ahooks = require("ahooks");
|
|
39
|
-
var import_index = require("./index.less");
|
|
40
|
-
var prefix = "pisell-lowcode-";
|
|
41
|
-
var InlineMenu = (props) => {
|
|
42
|
-
const { items } = props;
|
|
43
|
-
const [state, setState] = (0, import_ahooks.useControllableValue)(props);
|
|
44
|
-
const childItems = (0, import_react.useMemo)(() => {
|
|
45
|
-
var _a;
|
|
46
|
-
return ((_a = items.find((item) => item.key === (state == null ? void 0 : state[1]))) == null ? void 0 : _a.children) || items[0].children;
|
|
47
|
-
}, [state, items]);
|
|
48
|
-
const handleParentClick = (detail) => {
|
|
49
|
-
const children = items.find((item) => item.key === detail.key);
|
|
50
|
-
const defaultKey = children.children[0].key;
|
|
51
|
-
setState([defaultKey, detail.key], {
|
|
52
|
-
key: defaultKey,
|
|
53
|
-
item: children.children[0],
|
|
54
|
-
keyPath: [defaultKey, detail.key]
|
|
55
|
-
});
|
|
56
|
-
};
|
|
57
|
-
const handleChildrenClick = (detail) => {
|
|
58
|
-
const parent = items.find(
|
|
59
|
-
(item) => item.children.some((c) => c.key === detail.key)
|
|
60
|
-
);
|
|
61
|
-
setState([detail.key, parent.key], {
|
|
62
|
-
key: detail.key,
|
|
63
|
-
item: detail.item,
|
|
64
|
-
keyPath: [detail.key, parent.key]
|
|
65
|
-
});
|
|
66
|
-
};
|
|
67
|
-
return /* @__PURE__ */ import_react.default.createElement("div", { className: `${prefix}inline-menu-wrap` }, /* @__PURE__ */ import_react.default.createElement(
|
|
68
|
-
import_antd.Menu,
|
|
69
|
-
{
|
|
70
|
-
items: items.map((item) => ({
|
|
71
|
-
key: item.key,
|
|
72
|
-
label: /* @__PURE__ */ import_react.default.createElement("span", { className: `${prefix}menu-item-label-wrap` }, /* @__PURE__ */ import_react.default.createElement("span", { className: `${prefix}menu-item-label` }, item.label), item.key === (state == null ? void 0 : state[1]) && /* @__PURE__ */ import_react.default.createElement(import_icons.CheckOutlined, null))
|
|
73
|
-
})),
|
|
74
|
-
onClick: handleParentClick,
|
|
75
|
-
selectedKeys: [state == null ? void 0 : state[1]]
|
|
76
|
-
}
|
|
77
|
-
), /* @__PURE__ */ import_react.default.createElement(import_antd.Divider, { style: { margin: "6px 0" } }), /* @__PURE__ */ import_react.default.createElement(
|
|
78
|
-
import_antd.Menu,
|
|
79
|
-
{
|
|
80
|
-
items: childItems.map((item) => ({
|
|
81
|
-
key: item.key,
|
|
82
|
-
label: /* @__PURE__ */ import_react.default.createElement("span", { className: `${prefix}menu-item-label-wrap` }, /* @__PURE__ */ import_react.default.createElement("span", { className: `${prefix}menu-item-label` }, item.label), item.key === (state == null ? void 0 : state[0]) && /* @__PURE__ */ import_react.default.createElement(import_icons.CheckOutlined, null))
|
|
83
|
-
})),
|
|
84
|
-
onClick: handleChildrenClick,
|
|
85
|
-
selectedKeys: [state == null ? void 0 : state[0]]
|
|
86
|
-
}
|
|
87
|
-
));
|
|
88
|
-
};
|
|
89
|
-
var InlineMenu_default = InlineMenu;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
@pisell-prefix: pisell-lowcode;
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
.@{pisell-prefix} {
|
|
5
|
-
&-inline-menu-wrap {
|
|
6
|
-
min-width: 200px;
|
|
7
|
-
}
|
|
8
|
-
&-menu-item-label-wrap {
|
|
9
|
-
width: 100%;
|
|
10
|
-
display: flex;
|
|
11
|
-
justify-content: space-between;
|
|
12
|
-
}
|
|
13
|
-
&-menu-item-label {
|
|
14
|
-
margin-right: 16px;
|
|
15
|
-
}
|
|
16
|
-
&-menu-title-content {
|
|
17
|
-
width: 100%;
|
|
18
|
-
display: inline-block;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { MenuProps } from "antd";
|
|
3
|
-
import "./index.less";
|
|
4
|
-
export declare type SortItemProps = {
|
|
5
|
-
type: "date" | "string" | "number";
|
|
6
|
-
label: string;
|
|
7
|
-
name: string;
|
|
8
|
-
};
|
|
9
|
-
declare type SortListProps = {
|
|
10
|
-
list: SortItemProps[];
|
|
11
|
-
onChange?: (val: string, detail: Parameters<Required<MenuProps>["onClick"]>[0]) => void;
|
|
12
|
-
button?: React.ReactNode;
|
|
13
|
-
style?: React.CSSProperties;
|
|
14
|
-
value?: any;
|
|
15
|
-
placement?: "bottom" | "bottomLeft" | "bottomRight" | "top" | "topLeft" | "topRight";
|
|
16
|
-
};
|
|
17
|
-
declare const Sort: React.FC<SortListProps>;
|
|
18
|
-
export default Sort;
|
|
@@ -1,147 +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/sort/index.tsx
|
|
30
|
-
var sort_exports = {};
|
|
31
|
-
__export(sort_exports, {
|
|
32
|
-
default: () => sort_default
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(sort_exports);
|
|
35
|
-
var import_react = __toESM(require("react"));
|
|
36
|
-
var import_antd = require("antd");
|
|
37
|
-
var import_SwitchVertical01 = __toESM(require("@pisell/icon/es/SwitchVertical01"));
|
|
38
|
-
var import_platform = require("../../utils/platform");
|
|
39
|
-
var import_locales = require("../../locales");
|
|
40
|
-
var import_InlineMenu = __toESM(require("./components/InlineMenu"));
|
|
41
|
-
var import_index = require("./index.less");
|
|
42
|
-
var prefix = "pisell-lowcode-";
|
|
43
|
-
var sortChildrenMap = {
|
|
44
|
-
date: (key) => [
|
|
45
|
-
{
|
|
46
|
-
key: `${key}:desc`,
|
|
47
|
-
label: (0, import_locales.getText)("sort-oldest-to-newest")
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
key: `${key}:asc`,
|
|
51
|
-
label: (0, import_locales.getText)("sort-newest-to-oldest")
|
|
52
|
-
}
|
|
53
|
-
],
|
|
54
|
-
time: (key) => [
|
|
55
|
-
{
|
|
56
|
-
key: `${key}:desc`,
|
|
57
|
-
label: (0, import_locales.getText)("sort-from-morning-to-night")
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
key: `${key}:asc`,
|
|
61
|
-
label: (0, import_locales.getText)("sort-from-evening-to-morning")
|
|
62
|
-
}
|
|
63
|
-
],
|
|
64
|
-
string: (key) => [
|
|
65
|
-
{
|
|
66
|
-
key: `${key}:asc`,
|
|
67
|
-
label: (0, import_locales.getText)("sort-a-z")
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
key: `${key}:desc`,
|
|
71
|
-
label: (0, import_locales.getText)("sort-z-a")
|
|
72
|
-
}
|
|
73
|
-
],
|
|
74
|
-
number: (key) => [
|
|
75
|
-
{
|
|
76
|
-
key: `${key}:asc`,
|
|
77
|
-
label: (0, import_locales.getText)("sort-0-9")
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
key: `${key}:desc`,
|
|
81
|
-
label: (0, import_locales.getText)("sort-9-0")
|
|
82
|
-
}
|
|
83
|
-
]
|
|
84
|
-
};
|
|
85
|
-
var Sort = ({
|
|
86
|
-
list = [],
|
|
87
|
-
onChange,
|
|
88
|
-
button,
|
|
89
|
-
style,
|
|
90
|
-
value,
|
|
91
|
-
placement
|
|
92
|
-
}) => {
|
|
93
|
-
const sortItems = (0, import_react.useMemo)(() => {
|
|
94
|
-
return list.map((d) => {
|
|
95
|
-
return {
|
|
96
|
-
key: d.name,
|
|
97
|
-
label: d.label,
|
|
98
|
-
children: sortChildrenMap[d.type](d.name)
|
|
99
|
-
};
|
|
100
|
-
});
|
|
101
|
-
}, [list]);
|
|
102
|
-
const onClick = (detail) => {
|
|
103
|
-
var _a;
|
|
104
|
-
onChange == null ? void 0 : onChange((_a = detail == null ? void 0 : detail.keyPath) == null ? void 0 : _a[0], detail);
|
|
105
|
-
};
|
|
106
|
-
const btnContent = (0, import_react.useMemo)(() => {
|
|
107
|
-
return button || /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { icon: /* @__PURE__ */ import_react.default.createElement(import_SwitchVertical01.default, null), style }, (0, import_locales.getText)("sort-button-text"));
|
|
108
|
-
}, [button, style]);
|
|
109
|
-
const content = (0, import_react.useMemo)(() => {
|
|
110
|
-
let others = {};
|
|
111
|
-
if (value) {
|
|
112
|
-
others = {
|
|
113
|
-
...others,
|
|
114
|
-
value
|
|
115
|
-
};
|
|
116
|
-
}
|
|
117
|
-
return /* @__PURE__ */ import_react.default.createElement(import_InlineMenu.default, { items: sortItems, onChange, ...others });
|
|
118
|
-
}, [value, sortItems, onChange]);
|
|
119
|
-
if ((0, import_platform.isMobile)()) {
|
|
120
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
121
|
-
import_antd.Popover,
|
|
122
|
-
{
|
|
123
|
-
placement,
|
|
124
|
-
content,
|
|
125
|
-
arrow: false,
|
|
126
|
-
overlayClassName: `${prefix}mobile-sort-overlay`,
|
|
127
|
-
trigger: ["click", "hover"]
|
|
128
|
-
},
|
|
129
|
-
btnContent
|
|
130
|
-
);
|
|
131
|
-
}
|
|
132
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
133
|
-
import_antd.Dropdown,
|
|
134
|
-
{
|
|
135
|
-
trigger: ["click", "hover"],
|
|
136
|
-
placement,
|
|
137
|
-
menu: {
|
|
138
|
-
items: sortItems,
|
|
139
|
-
onClick,
|
|
140
|
-
selectable: true,
|
|
141
|
-
selectedKeys: value
|
|
142
|
-
}
|
|
143
|
-
},
|
|
144
|
-
btnContent
|
|
145
|
-
);
|
|
146
|
-
};
|
|
147
|
-
var sort_default = Sort;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getValueByKeys: (obj: Record<string, any>, keys: string[] | string) => any;
|
|
@@ -1,46 +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/components/table/Table/fields/utils/index.ts
|
|
20
|
-
var utils_exports = {};
|
|
21
|
-
__export(utils_exports, {
|
|
22
|
-
getValueByKeys: () => getValueByKeys
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(utils_exports);
|
|
25
|
-
var import_utils = require("@pisell/utils");
|
|
26
|
-
var getValueByKeys = (obj, keys) => {
|
|
27
|
-
var _a;
|
|
28
|
-
if (!keys)
|
|
29
|
-
return keys;
|
|
30
|
-
if ((0, import_utils.isString)(keys)) {
|
|
31
|
-
keys = [keys];
|
|
32
|
-
}
|
|
33
|
-
let result = obj;
|
|
34
|
-
for (let key of keys) {
|
|
35
|
-
if (result && ((_a = result == null ? void 0 : result.hasOwnProperty) == null ? void 0 : _a.call(result, key))) {
|
|
36
|
-
result = result[key];
|
|
37
|
-
} else {
|
|
38
|
-
return void 0;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
return result;
|
|
42
|
-
};
|
|
43
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
44
|
-
0 && (module.exports = {
|
|
45
|
-
getValueByKeys
|
|
46
|
-
});
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
@pisell-prefix: pisell-lowcode;
|
|
2
|
-
|
|
3
|
-
.@{pisell-prefix} {
|
|
4
|
-
&-tabs-tabpane {
|
|
5
|
-
padding: 0 !important;
|
|
6
|
-
}
|
|
7
|
-
&-tab-bar-wrap {
|
|
8
|
-
display: flex;
|
|
9
|
-
flex-direction: column;
|
|
10
|
-
flex: none;
|
|
11
|
-
}
|
|
12
|
-
&-tab-bar-wrap-top,
|
|
13
|
-
&-tab-bar-wrap-bottom {
|
|
14
|
-
display: flex;
|
|
15
|
-
flex-direction: row;
|
|
16
|
-
}
|
|
17
|
-
&-tab-bar-item {
|
|
18
|
-
display: flex;
|
|
19
|
-
flex-direction: column;
|
|
20
|
-
justify-content: center;
|
|
21
|
-
align-items: center;
|
|
22
|
-
padding: 16px;
|
|
23
|
-
cursor: pointer;
|
|
24
|
-
}
|
|
25
|
-
&-tab-bar-icon-wrap {
|
|
26
|
-
width: 50px;
|
|
27
|
-
height: 50px;
|
|
28
|
-
display: flex;
|
|
29
|
-
justify-content: center;
|
|
30
|
-
align-items: center;
|
|
31
|
-
border-radius: 99px;
|
|
32
|
-
background: #f2f2f7;
|
|
33
|
-
margin-bottom: 6px;
|
|
34
|
-
color: #ACACAC;
|
|
35
|
-
transition: background 200ms ease-in-out, border-color 200ms ease-in-out;
|
|
36
|
-
border: 1px solid #f2f2f7;
|
|
37
|
-
&:hover {
|
|
38
|
-
border-color: #d5d7da;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
&-tab-bar-label {
|
|
42
|
-
color: #0d1619;
|
|
43
|
-
font-size: 14px;
|
|
44
|
-
font-style: normal;
|
|
45
|
-
font-weight: 400;
|
|
46
|
-
line-height: 20px;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
&-tab-bar-item-active &-tab-bar-icon-wrap {
|
|
50
|
-
background: var(--primary-600, #7F56D9);
|
|
51
|
-
color: #fff;
|
|
52
|
-
}
|
|
53
|
-
&-tab-bar-item-active > &-tab-bar-label {
|
|
54
|
-
color: var(--primary-600, #7F56D9);
|
|
55
|
-
font-size: 14px;
|
|
56
|
-
font-style: normal;
|
|
57
|
-
font-weight: 400;
|
|
58
|
-
line-height: 20px; /* 142.857% */
|
|
59
|
-
}
|
|
60
|
-
}
|
package/lib/locales/en-US.d.ts
DELETED
|
@@ -1,21 +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
|
-
'select-dropdown-render-select-all': string;
|
|
11
|
-
'sort-button-text': string;
|
|
12
|
-
'sort-oldest-to-newest': string;
|
|
13
|
-
'sort-newest-to-oldest': string;
|
|
14
|
-
'sort-a-z': string;
|
|
15
|
-
'sort-z-a': string;
|
|
16
|
-
'sort-from-morning-to-night': string;
|
|
17
|
-
'sort-from-evening-to-morning': string;
|
|
18
|
-
'sort-0-9': string;
|
|
19
|
-
'sort-9-0': string;
|
|
20
|
-
};
|
|
21
|
-
export default _default;
|
package/lib/locales/en-US.js
DELETED
|
@@ -1,44 +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
|
-
"select-dropdown-render-select-all": "Select all",
|
|
35
|
-
"sort-button-text": "Sort",
|
|
36
|
-
"sort-oldest-to-newest": "Oldest to newest",
|
|
37
|
-
"sort-newest-to-oldest": "Newest to oldest",
|
|
38
|
-
"sort-a-z": "A to Z",
|
|
39
|
-
"sort-z-a": "Z to A",
|
|
40
|
-
"sort-from-morning-to-night": "From morning to night",
|
|
41
|
-
"sort-from-evening-to-morning": "From evening to morning",
|
|
42
|
-
"sort-0-9": "0 ~ 9",
|
|
43
|
-
"sort-9-0": "9 ~ 0"
|
|
44
|
-
};
|
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,21 +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
|
-
'select-dropdown-render-select-all': string;
|
|
11
|
-
'sort-button-text': string;
|
|
12
|
-
'sort-oldest-to-newest': string;
|
|
13
|
-
'sort-newest-to-oldest': string;
|
|
14
|
-
'sort-a-z': string;
|
|
15
|
-
'sort-z-a': string;
|
|
16
|
-
'sort-from-morning-to-night': string;
|
|
17
|
-
'sort-from-evening-to-morning': string;
|
|
18
|
-
'sort-0-9': string;
|
|
19
|
-
'sort-9-0': string;
|
|
20
|
-
};
|
|
21
|
-
export default _default;
|
package/lib/locales/zh-CN.js
DELETED
|
@@ -1,44 +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
|
-
"select-dropdown-render-select-all": "全选",
|
|
35
|
-
"sort-button-text": "排序",
|
|
36
|
-
"sort-oldest-to-newest": "从旧到新",
|
|
37
|
-
"sort-newest-to-oldest": "从新到旧",
|
|
38
|
-
"sort-a-z": "A 到 Z",
|
|
39
|
-
"sort-z-a": "Z 到 A",
|
|
40
|
-
"sort-from-morning-to-night": "从早到晚",
|
|
41
|
-
"sort-from-evening-to-morning": "从晚到早",
|
|
42
|
-
"sort-0-9": "0 ~ 9",
|
|
43
|
-
"sort-9-0": "9 ~ 0"
|
|
44
|
-
};
|
package/lib/locales/zh-TW.d.ts
DELETED
|
@@ -1,21 +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
|
-
'select-dropdown-render-select-all': string;
|
|
11
|
-
'sort-button-text': string;
|
|
12
|
-
'sort-oldest-to-newest': string;
|
|
13
|
-
'sort-newest-to-oldest': string;
|
|
14
|
-
'sort-a-z': string;
|
|
15
|
-
'sort-z-a': string;
|
|
16
|
-
'sort-from-morning-to-night': string;
|
|
17
|
-
'sort-from-evening-to-morning': string;
|
|
18
|
-
'sort-0-9': string;
|
|
19
|
-
'sort-9-0': string;
|
|
20
|
-
};
|
|
21
|
-
export default _default;
|
package/lib/locales/zh-TW.js
DELETED
|
@@ -1,44 +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
|
-
"select-dropdown-render-select-all": "全選",
|
|
35
|
-
"sort-button-text": "排序",
|
|
36
|
-
"sort-oldest-to-newest": "從舊到新",
|
|
37
|
-
"sort-newest-to-oldest": "從新到舊",
|
|
38
|
-
"sort-a-z": "A 到 Z",
|
|
39
|
-
"sort-z-a": "Z 到 A",
|
|
40
|
-
"sort-from-morning-to-night": "從早到晚",
|
|
41
|
-
"sort-from-evening-to-morning": "從晚到早",
|
|
42
|
-
"sort-0-9": "0 ~ 9",
|
|
43
|
-
"sort-9-0": "9 ~ 0"
|
|
44
|
-
};
|
package/lib/utils/locale.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getCurrentLocale: () => string;
|