@pisell/materials 3.3.40 → 3.3.41
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/index.js +1 -1
- package/build/lowcode/meta.js +7 -7
- package/build/lowcode/render/default/view.js +10 -10
- package/build/lowcode/view.js +10 -10
- package/es/components/DragSortList/index.js +6 -6
- package/es/components/classicLayout/index.js +4 -5
- package/es/components/dataSourceComponents/dataSourceMenu/Basic.d.ts +8 -0
- package/es/components/dataSourceComponents/fields/index.d.ts +6 -6
- package/es/components/date-picker/index.d.ts +1 -0
- package/es/components/div/index.d.ts +19 -0
- package/es/components/icon/index.js +5 -5
- package/es/components/list/index.js +6 -6
- package/es/components/page/index.d.ts +1 -0
- package/es/components/pisellDraggable/components/TreeItem/SortableTreeItem.d.ts +9 -0
- package/es/components/pisellDraggable/components/TreeItem/TreeItem.d.ts +24 -0
- package/es/components/pisellDraggable/components/TreeItem/index.d.ts +2 -0
- package/es/components/pisellDraggable/index.d.ts +35 -0
- package/es/components/pisellDropSort/PisellDropSort.d.ts +5 -0
- package/es/components/pisellDropSort/components/SortableItem/index.d.ts +26 -0
- package/es/components/pisellDropSort/types.d.ts +58 -0
- package/es/components/pisellGoodPassCard/index.d.ts +49 -0
- package/es/components/pisellMenu/PisellMenu.d.ts +11 -0
- package/es/components/pisellMenu/types.d.ts +27 -0
- package/es/components/pisellNavigationMenu/types.d.ts +85 -0
- package/es/components/pisellWalletPassCard/index.d.ts +1 -0
- package/es/components/productCard/utils.js +8 -6
- package/es/components/qrcode/index.js +1 -1
- package/es/components/sort/components/InlineMenu/index.js +1 -1
- package/es/components/table/Actions/component/ButtonIcon/index.js +5 -5
- package/es/components/table/Actions/component/ViewMode/index.js +1 -1
- package/es/components/table/Gallery/components/GalleryItem/components/RenderFields/index.js +4 -5
- package/es/components/table/Header/Buttons/index.js +5 -5
- package/es/components/table/Table/AddFieldModal/index.js +6 -6
- package/es/components/table/Table/SelectField/index.js +4 -4
- package/es/components/table/Table/fields/date/Edit/index.js +1 -1
- package/es/components/table/Table/fields/link/Edit/index.js +5 -5
- package/es/components/table/Table/fields/rangePicker/filterUtil/index.js +1 -1
- package/es/components/table/Table/fields/search/filterUtil/index.js +0 -1
- package/es/components/table/Table/fields/text/Show/index.js +4 -4
- package/es/components/table/Table/fields/text/filterUtil/index.js +0 -1
- package/es/components/table/Table/tableConfig/SortRow/index.js +2 -2
- package/es/components/table/Table/tableConfig/body/CellContent/index.js +3 -3
- package/es/components/table/Table/tableConfig/body/CellProvider/index.js +8 -8
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/components/table/hooks/useMergeColumnSetting.js +1 -2
- package/es/components/table/hooks/useTransDataSourceGroupSetting.js +5 -5
- package/es/components/table/hooks/useTransFilterSetting.js +5 -5
- package/es/components/translation/index.d.ts +4 -3
- package/es/components/translation/index.js +24 -22
- package/es/components/translation/utils.js +5 -5
- package/es/hooks/useResponsive.js +2 -2
- package/es/utils/hoc.js +1 -1
- package/es/utils/miniRedux.js +8 -9
- package/lib/components/dataSourceComponents/dataSourceMenu/Basic.d.ts +8 -0
- package/lib/components/dataSourceComponents/fields/index.d.ts +6 -6
- package/lib/components/date-picker/index.d.ts +1 -0
- package/lib/components/div/index.d.ts +19 -0
- package/lib/components/lowCodePage/index.js +1 -2
- package/lib/components/page/index.d.ts +1 -0
- package/lib/components/pisellDraggable/components/TreeItem/SortableTreeItem.d.ts +9 -0
- package/lib/components/pisellDraggable/components/TreeItem/TreeItem.d.ts +24 -0
- package/lib/components/pisellDraggable/components/TreeItem/index.d.ts +2 -0
- package/lib/components/pisellDraggable/index.d.ts +35 -0
- package/lib/components/pisellDropSort/PisellDropSort.d.ts +5 -0
- package/lib/components/pisellDropSort/components/SortableItem/index.d.ts +26 -0
- package/lib/components/pisellDropSort/types.d.ts +58 -0
- package/lib/components/pisellGoodPassCard/index.d.ts +49 -0
- package/lib/components/pisellMenu/PisellMenu.d.ts +11 -0
- package/lib/components/pisellMenu/types.d.ts +27 -0
- package/lib/components/pisellNavigationMenu/types.d.ts +85 -0
- package/lib/components/pisellWalletPassCard/index.d.ts +1 -0
- package/lib/components/productCard/utils.js +7 -6
- package/lib/components/table/Table/fields/date/filterUtil/index.js +3 -6
- package/lib/components/table/Table/fields/rangePicker/filterUtil/index.js +4 -8
- package/lib/components/table/Table/fields/utils/index.js +1 -2
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/components/translation/index.d.ts +4 -3
- package/lib/components/translation/index.js +1 -0
- package/lib/hooks/useResponsive.js +3 -6
- package/package.json +3 -3
- 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/appVersionControl/index.d.ts +0 -4
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -38
- package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -78
- package/es/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -24
- package/es/components/drag-sort-tree/index.d.ts +0 -4
- package/es/components/pisell-config-provider/index.d.ts +0 -12
- package/es/components/pisellAdjustPrice/index.d.ts +0 -9
- package/es/components/pisellEmpty/index.d.ts +0 -19
- package/es/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
- package/es/components/productCard/status.d.ts +0 -32
- package/es/components/productCard/types.d.ts +0 -83
- package/es/components/table/Actions/component/ExportImport/index.d.ts +0 -7
- package/es/components/table/Table/index.d.ts +0 -4
- package/es/components/table/types.d.ts +0 -251
- package/es/components/versionModal/index.d.ts +0 -23
- package/es/components/virtual-keyboard/Amount/index.d.ts +0 -22
- package/es/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
- package/es/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -11
- package/lib/components/appVersionControl/index.d.ts +0 -4
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -38
- package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -78
- package/lib/components/dataSourceComponents/fields/Input.Phone/serve.d.ts +0 -24
- package/lib/components/drag-sort-tree/index.d.ts +0 -4
- package/lib/components/pisell-config-provider/index.d.ts +0 -12
- package/lib/components/pisellAdjustPrice/index.d.ts +0 -9
- package/lib/components/pisellEmpty/index.d.ts +0 -19
- package/lib/components/productCard/components/Header/DeleteButton/index.d.ts +0 -3
- package/lib/components/productCard/status.d.ts +0 -32
- package/lib/components/productCard/types.d.ts +0 -83
- package/lib/components/table/Actions/component/ExportImport/index.d.ts +0 -7
- package/lib/components/table/Table/index.d.ts +0 -4
- package/lib/components/table/types.d.ts +0 -251
- package/lib/components/versionModal/index.d.ts +0 -23
- package/lib/components/virtual-keyboard/Amount/index.d.ts +0 -22
- package/lib/components/virtual-keyboard/Keyboard/index.d.ts +0 -21
- package/lib/components/virtual-keyboard/VirtualKeyInput/index.d.ts +0 -11
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { Props as TreeItem } from "../pisellDraggable/components/TreeItem/TreeItem";
|
|
3
|
+
export interface NavigationMenuItem {
|
|
4
|
+
id: string;
|
|
5
|
+
/** 标题 */
|
|
6
|
+
title: string;
|
|
7
|
+
/** 图标 */
|
|
8
|
+
icon?: string;
|
|
9
|
+
/** 描述 */
|
|
10
|
+
description?: string;
|
|
11
|
+
/** 子菜单 */
|
|
12
|
+
children?: NavigationMenuItem[];
|
|
13
|
+
/** 版本 */
|
|
14
|
+
version?: string;
|
|
15
|
+
/** 是否是分组 */
|
|
16
|
+
isGroup?: boolean;
|
|
17
|
+
/** 是否允许添加子菜单 */
|
|
18
|
+
allowAddChild?: boolean;
|
|
19
|
+
/** 是否允许删除 */
|
|
20
|
+
allowDelete?: boolean;
|
|
21
|
+
/** 是否允许编辑 */
|
|
22
|
+
allowEdit?: boolean;
|
|
23
|
+
/** 是否允许添加子菜单 */
|
|
24
|
+
allowAddSubmenu?: boolean;
|
|
25
|
+
/** 是否允许添加页面 */
|
|
26
|
+
allowAddPage?: boolean;
|
|
27
|
+
/** 其他属性 */
|
|
28
|
+
[key: string]: any;
|
|
29
|
+
}
|
|
30
|
+
export interface PisellNavigationMenuProps {
|
|
31
|
+
/** 导航菜单数据 */
|
|
32
|
+
value: NavigationMenuItem[];
|
|
33
|
+
/** 是否允许拖拽排序 */
|
|
34
|
+
allowDrag?: boolean;
|
|
35
|
+
/** 是否允许删除菜单项 */
|
|
36
|
+
allowDelete?: boolean;
|
|
37
|
+
/** 是否允许添加子菜单 */
|
|
38
|
+
allowAddChild?: boolean;
|
|
39
|
+
/** 是否允许添加根菜单 */
|
|
40
|
+
allowAddRoot?: boolean;
|
|
41
|
+
/** 是否允许显示隐藏 */
|
|
42
|
+
allowIsShow?: boolean;
|
|
43
|
+
/** 是否禁用 */
|
|
44
|
+
disabled?: boolean;
|
|
45
|
+
/** 菜单项间距 */
|
|
46
|
+
spacing?: number;
|
|
47
|
+
/** 最大层级数 */
|
|
48
|
+
maxLevel?: number;
|
|
49
|
+
/** 样式 */
|
|
50
|
+
style?: CSSProperties;
|
|
51
|
+
/** 类名 */
|
|
52
|
+
className?: string;
|
|
53
|
+
/** 数据变化回调 */
|
|
54
|
+
onChange?: (items: NavigationMenuItem[]) => void;
|
|
55
|
+
/** 设计模式 */
|
|
56
|
+
__designMode?: string;
|
|
57
|
+
/** 标题 */
|
|
58
|
+
title?: string;
|
|
59
|
+
/** 添加子菜单回调 */
|
|
60
|
+
onAddSubMenu?: (item?: NavigationMenuItem) => void;
|
|
61
|
+
/** 添加页面回调 */
|
|
62
|
+
onAddPage?: (item?: NavigationMenuItem) => void;
|
|
63
|
+
/** 编辑回调 */
|
|
64
|
+
onEdit?: (item: NavigationMenuItem) => void;
|
|
65
|
+
/** 删除回调 */
|
|
66
|
+
onDelete?: (item: NavigationMenuItem) => void;
|
|
67
|
+
/** 左侧自定义内容 */
|
|
68
|
+
leftContent?: React.ReactNode;
|
|
69
|
+
/** 右侧自定义内容 */
|
|
70
|
+
rightContent?: React.ReactNode;
|
|
71
|
+
/** 获取item样式 */
|
|
72
|
+
getItemStyle?: (itemProps: TreeItem) => React.CSSProperties;
|
|
73
|
+
/** 自定义拖拽判断函数,返回false时阻止拖拽 */
|
|
74
|
+
canDrop?: (dragItem: NavigationMenuItem, dropTarget: NavigationMenuItem, parentId: string | number | null) => boolean;
|
|
75
|
+
/** 显示隐藏回调 */
|
|
76
|
+
onIsShow?: (item: NavigationMenuItem) => void;
|
|
77
|
+
/** 节点缩进宽度 */
|
|
78
|
+
indentationWidth?: number;
|
|
79
|
+
/** 隐藏描述 */
|
|
80
|
+
hideDescription?: boolean;
|
|
81
|
+
/** 悬浮时展示action */
|
|
82
|
+
showActionOnHover?: boolean;
|
|
83
|
+
/** 是否展示标题标签 */
|
|
84
|
+
showTitleTags?: boolean;
|
|
85
|
+
}
|
|
@@ -66,6 +66,7 @@ var getServiceTime = (item, currentDate) => {
|
|
|
66
66
|
const utils = context.appHelper.utils || {};
|
|
67
67
|
const locale = (item == null ? void 0 : item.locale) || ((_a = utils == null ? void 0 : utils.storage) == null ? void 0 : _a.get("umi_locale")) || "en-US";
|
|
68
68
|
const isEn2 = locale === "en-US" || locale === "en";
|
|
69
|
+
const durationType = (item == null ? void 0 : item.duration_type) === "flexible" ? "minutes" : item == null ? void 0 : item.duration_type;
|
|
69
70
|
const localeTypes = {
|
|
70
71
|
"en-US": "en",
|
|
71
72
|
"zh-CN": "zh-cn",
|
|
@@ -75,7 +76,7 @@ var getServiceTime = (item, currentDate) => {
|
|
|
75
76
|
let startDate = (0, import_dayjs.default)(item == null ? void 0 : item.start_date);
|
|
76
77
|
let endDate = (0, import_dayjs.default)(item == null ? void 0 : item.end_date);
|
|
77
78
|
let diffInDays = (item == null ? void 0 : item.custom_day_count) || endDate.diff(startDate, "day");
|
|
78
|
-
if (
|
|
79
|
+
if (durationType) {
|
|
79
80
|
const sameDay = startDate.isSame(endDate, "day");
|
|
80
81
|
const dateFormat = isEn2 ? "DD/MM/YYYY" : "YYYY-MM-DD";
|
|
81
82
|
const timeFormat = "HH:mm";
|
|
@@ -97,13 +98,13 @@ var getServiceTime = (item, currentDate) => {
|
|
|
97
98
|
}
|
|
98
99
|
const startDateTime = `${startDate.format("YYYY-MM-DD")} ${startTime}`;
|
|
99
100
|
const endDateTime = `${endDate.format("YYYY-MM-DD")} ${endTime}`;
|
|
100
|
-
let _duration = (0, import_dayjs.default)(endDateTime).diff((0, import_dayjs.default)(startDateTime),
|
|
101
|
+
let _duration = (0, import_dayjs.default)(endDateTime).diff((0, import_dayjs.default)(startDateTime), durationType);
|
|
101
102
|
let durationText = "";
|
|
102
|
-
if (
|
|
103
|
+
if (durationType === "minutes") {
|
|
103
104
|
const hours = Math.floor(_duration / 60);
|
|
104
105
|
const minutes = _duration % 60;
|
|
105
106
|
durationText = import_utils.locales.getText("pisell2.product.card.hour.minute")(hours, minutes);
|
|
106
|
-
} else if (
|
|
107
|
+
} else if (durationType === "days") {
|
|
107
108
|
durationText = import_utils.locales.getText("pisell2.product.card.day")(_duration);
|
|
108
109
|
} else {
|
|
109
110
|
durationText = `${_duration}`;
|
|
@@ -118,7 +119,7 @@ var getServiceTime = (item, currentDate) => {
|
|
|
118
119
|
startDate = (0, import_dayjs.default)((item == null ? void 0 : item.start_time) ? `${item == null ? void 0 : item.start_date} ${item == null ? void 0 : item.start_time}` : startDate.format("YYYY-MM-DD HH:mm"));
|
|
119
120
|
endDate = (0, import_dayjs.default)((item == null ? void 0 : item.end_time) ? `${item == null ? void 0 : item.end_date} ${item == null ? void 0 : item.end_time}` : endDate.format("YYYY-MM-DD HH:mm"));
|
|
120
121
|
}
|
|
121
|
-
if (
|
|
122
|
+
if (durationType === "minutes") {
|
|
122
123
|
diffInDays = endDate.diff(startDate, "minute");
|
|
123
124
|
}
|
|
124
125
|
const date = `${startDate.format(_format)} ~ ${endDate.format(_format)}`;
|
|
@@ -130,7 +131,7 @@ var getServiceTime = (item, currentDate) => {
|
|
|
130
131
|
"minutes": import_utils.locales.getText("pisell2.product.card.minute")(diffInDays),
|
|
131
132
|
"event": import_utils.locales.getText("pisell2.product.card.day.event")(diffInDays)
|
|
132
133
|
};
|
|
133
|
-
text = (textTypes == null ? void 0 : textTypes[
|
|
134
|
+
text = (textTypes == null ? void 0 : textTypes[durationType]) || text;
|
|
134
135
|
let duration = `${diffInDays}${text}`;
|
|
135
136
|
return `${date} (${duration})`;
|
|
136
137
|
};
|
|
@@ -40,17 +40,14 @@ function filterUtil_default({
|
|
|
40
40
|
key,
|
|
41
41
|
item
|
|
42
42
|
}) {
|
|
43
|
-
if (!value)
|
|
44
|
-
return true;
|
|
43
|
+
if (!value) return true;
|
|
45
44
|
const valueDayjsObj = (0, import_dayjs.default)(value);
|
|
46
45
|
if (!valueDayjsObj.isValid()) {
|
|
47
46
|
return true;
|
|
48
47
|
}
|
|
49
48
|
const dataValue = (0, import_utils2.getValueByKeys)(item, key);
|
|
50
|
-
if ((0, import_utils.isUndefined)(dataValue))
|
|
51
|
-
return false;
|
|
49
|
+
if ((0, import_utils.isUndefined)(dataValue)) return false;
|
|
52
50
|
const dataDayjsObj = (0, import_dayjs.default)(dataValue);
|
|
53
|
-
if (!dataDayjsObj.isValid())
|
|
54
|
-
return false;
|
|
51
|
+
if (!dataDayjsObj.isValid()) return false;
|
|
55
52
|
return dataDayjsObj.isSame(valueDayjsObj, "day");
|
|
56
53
|
}
|
|
@@ -43,19 +43,15 @@ function filterUtil_default({
|
|
|
43
43
|
key,
|
|
44
44
|
item
|
|
45
45
|
}) {
|
|
46
|
-
if (!value)
|
|
47
|
-
|
|
48
|
-
if ((value == null ? void 0 : value.length) !== 2)
|
|
49
|
-
return true;
|
|
46
|
+
if (!value) return true;
|
|
47
|
+
if ((value == null ? void 0 : value.length) !== 2) return true;
|
|
50
48
|
const valueDayjsObj = value.map((item2) => (0, import_dayjs.default)(item2 || ""));
|
|
51
49
|
if (valueDayjsObj.some((item2) => !item2.isValid())) {
|
|
52
50
|
return true;
|
|
53
51
|
}
|
|
54
52
|
const dataValue = (0, import_utils2.getValueByKeys)(item, key);
|
|
55
|
-
if ((0, import_utils.isUndefined)(dataValue))
|
|
56
|
-
return false;
|
|
53
|
+
if ((0, import_utils.isUndefined)(dataValue)) return false;
|
|
57
54
|
const dataDayjsObj = (0, import_dayjs.default)(dataValue);
|
|
58
|
-
if (!dataDayjsObj.isValid())
|
|
59
|
-
return false;
|
|
55
|
+
if (!dataDayjsObj.isValid()) return false;
|
|
60
56
|
return isDateInRange(dataDayjsObj, valueDayjsObj);
|
|
61
57
|
}
|
|
@@ -25,8 +25,7 @@ module.exports = __toCommonJS(utils_exports);
|
|
|
25
25
|
var import_utils = require("@pisell/utils");
|
|
26
26
|
var getValueByKeys = (obj, keys) => {
|
|
27
27
|
var _a;
|
|
28
|
-
if (!keys)
|
|
29
|
-
return keys;
|
|
28
|
+
if (!keys) return keys;
|
|
30
29
|
if ((0, import_utils.isString)(keys)) {
|
|
31
30
|
keys = [keys];
|
|
32
31
|
}
|
|
@@ -155,7 +155,7 @@ export declare const getSettingKeyArrByMode: ({ filter, columnSetting, dataSourc
|
|
|
155
155
|
sort?: SortType | undefined;
|
|
156
156
|
mode: "" | "localStorage" | "remote";
|
|
157
157
|
currentViewMode: ModeType;
|
|
158
|
-
}) => ("
|
|
158
|
+
}) => ("view_mode" | "column_setting" | "order_by" | "group_by" | "gallery_setting" | "filter_setting")[];
|
|
159
159
|
export declare const omit: (obj: Record<string, any>, keys: string[]) => Record<string, any>;
|
|
160
160
|
export declare const stringify: (obj: Record<string, any>) => string;
|
|
161
161
|
export {};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import React from
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import './index.less';
|
|
3
3
|
declare type Value = {
|
|
4
4
|
en: string;
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
'zh-CN': string;
|
|
6
|
+
'zh-HK': string;
|
|
7
7
|
};
|
|
8
8
|
interface TranslationProps {
|
|
9
9
|
value: Value;
|
|
10
10
|
onChange: (value: Value) => void;
|
|
11
|
+
maxLength?: number;
|
|
11
12
|
}
|
|
12
13
|
declare const Translation: React.FC<TranslationProps>;
|
|
13
14
|
export default Translation;
|
|
@@ -161,6 +161,7 @@ var Translation = (props) => {
|
|
|
161
161
|
return /* @__PURE__ */ import_react.default.createElement(import_antd.Form.Item, { label: d.text, labelCol: { span: 24 }, key: d.code }, /* @__PURE__ */ import_react.default.createElement(
|
|
162
162
|
import_antd.Input,
|
|
163
163
|
{
|
|
164
|
+
...typeof others.maxLength === "number" ? { maxLength: others.maxLength } : {},
|
|
164
165
|
value: _value[d.code],
|
|
165
166
|
onChange: (e) => {
|
|
166
167
|
set_value({ ..._value, [d.code]: e.target.value });
|
|
@@ -35,8 +35,7 @@ var responsiveConfig = {
|
|
|
35
35
|
function handleResize() {
|
|
36
36
|
const oldInfo = info;
|
|
37
37
|
calculate();
|
|
38
|
-
if (oldInfo === info)
|
|
39
|
-
return;
|
|
38
|
+
if (oldInfo === info) return;
|
|
40
39
|
for (const subscriber of subscribers) {
|
|
41
40
|
subscriber();
|
|
42
41
|
}
|
|
@@ -58,8 +57,7 @@ function calculate() {
|
|
|
58
57
|
}
|
|
59
58
|
function configResponsive(config) {
|
|
60
59
|
responsiveConfig = config;
|
|
61
|
-
if (info)
|
|
62
|
-
calculate();
|
|
60
|
+
if (info) calculate();
|
|
63
61
|
}
|
|
64
62
|
function useResponsive() {
|
|
65
63
|
if (import_utils.isBrowser && !listening) {
|
|
@@ -70,8 +68,7 @@ function useResponsive() {
|
|
|
70
68
|
}
|
|
71
69
|
const [state, setState] = (0, import_react.useState)(info);
|
|
72
70
|
(0, import_react.useEffect)(() => {
|
|
73
|
-
if (!import_utils.isBrowser)
|
|
74
|
-
return;
|
|
71
|
+
if (!import_utils.isBrowser) return;
|
|
75
72
|
if (!listening) {
|
|
76
73
|
window.addEventListener("resize", handleResize);
|
|
77
74
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.41",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
"react-barcode": "^1.5.3",
|
|
73
73
|
"vod-js-sdk-v6": "^1.4.11",
|
|
74
74
|
"@pisell/utils": "3.0.0",
|
|
75
|
-
"@pisell/
|
|
76
|
-
"@pisell/
|
|
75
|
+
"@pisell/icon": "0.0.11",
|
|
76
|
+
"@pisell/date-picker": "3.0.4"
|
|
77
77
|
},
|
|
78
78
|
"peerDependencies": {
|
|
79
79
|
"react": "^18.0.0",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.materials-grid{display:flex;flex-direction:column;height:100%;width:100%}.materials-grid-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:16px}.materials-grid-header .right-wrap{align-items:center;display:flex;gap:8px}.materials-grid-actions{align-items:center;display:flex;justify-content:space-between;margin-bottom:16px}.materials-grid-actions .left-wrap{align-items:center;display:flex;flex:1 1}.materials-grid-actions .left-wrap .pisell-lowcode-form-item{margin-bottom:0}.materials-grid-actions .right-wrap{align-items:center;display:flex;gap:8px}.materials-grid-actions .right-wrap .icon{cursor:pointer;transition:.2s}.materials-grid-actions .right-wrap .icon:hover{color:var(--theme-color)}.materials-grid-actions .right-wrap .button{align-items:center;display:flex;font-size:12px;height:28px;justify-content:center}.filter-dropdown-wrap{display:flex;flex-direction:column;max-height:400px;max-width:calc(100vw - 24px);min-width:250px;padding:4px;width:400px}.filter-dropdown-wrap .filter-dropdown-wrap-content{flex:1 1;overflow:auto}.filter-dropdown-wrap .filter-dropdown-drag-item{align-items:center;background:#f9fafb;background:var(--gray-50,#f9fafb);border-radius:8px;display:flex;margin-bottom:12px;padding:8px 12px 12px}.filter-dropdown-wrap .filter-dropdown-drag-item .dots-six-icon{color:#98a2b3;cursor:pointer;font-size:24px}.filter-dropdown-wrap .filter-dropdown-drag-item .pisell-lowcode-form-item{margin-bottom:0}.filter-dropdown-wrap .filter-dropdown-drag-item .filter-dropdown-drag-item-right{flex:1 1;margin-left:16px}.filter-dropdown-wrap .filter-dropdown-drag-item .filter-dropdown-drag-item-right .filter-dropdown-drag-item-title{color:#777;color:var(--text-text-2,#777);font-size:14px;font-style:normal;font-weight:600;line-height:20px}.filter-dropdown-container-wrap{border-bottom:1px solid #e2e2e2;border-bottom:1px solid var(--surface-surface-4,#e2e2e2);margin-bottom:20px;min-height:70px}.filter-dropdown-container-wrap:last-child{border:none}.filter-dropdown-container-wrap .filter-dropdown-container-title-wrap{align-items:center;color:#919191;color:var(--text-text-3,#919191);display:flex;font-size:16px;font-style:normal;font-weight:600;line-height:22px;margin-bottom:12px}.filter-dropdown-container-wrap .filter-dropdown-container-title-wrap .filter-dropdown-container-title{color:#101828;color:var(--gray-900,#101828);font-size:16px;font-style:normal;font-weight:600;line-height:24px;margin-right:6px}.filter-dropdown-container-wrap .filter-dropdown-container-title-wrap .filter-dropdown-container-icon-help{color:#98a2b3;color:var(--gray-400,#98a2b3);font-size:20px}.filter-dropdown-container-wrap .filter-dropdown-container-filter-wrap{min-height:80px}.materials-sort-list-empty{color:#5a5a5a;display:block;padding-top:22px;text-align:center}.materials-grid-summary{margin-bottom:16px}.grid-view-table-wrap{position:relative}.materials-grid-paginator{align-items:center;background-color:#fff;border:1px solid #f0f0f0;border-radius:0 0 8px 8px;border-top:none;display:flex;height:50px;justify-content:center;margin:0!important;padding:0 20px;width:100%}.materials-grid-paginator .pisell-lowcode-pagination-total-text{color:#667085;color:var(--gray-500,#667085);font-size:14px;font-style:normal;font-weight:500;margin-right:auto}.materials-grid-paginator .pisell-lowcode-pagination-item{border:1px solid #d0d5dd;border-radius:0;border-right:0;margin:0;position:relative}.materials-grid-paginator .pisell-lowcode-pagination-jump-next,.materials-grid-paginator .pisell-lowcode-pagination-jump-prev{border:1px solid #d0d5dd;border-radius:0;border-right:none;margin:0}.materials-grid-paginator .pisell-lowcode-pagination-item-link:hover{color:rgba(0,0,0,.88)!important;font-weight:450!important}.materials-grid-paginator .pisell-lowcode-pagination-item-link:hover .pisell-lowcode-pagination-item-link-icon{color:rgba(0,0,0,.88)!important;font-weight:450!important}.materials-grid-paginator .pisell-lowcode-pagination-item-active:hover{border-color:#d0d5dd!important}.materials-grid-paginator .pisell-lowcode-pagination-item-active{background-color:rgba(0,0,0,.06)}.materials-grid-paginator .pisell-lowcode-pagination-item-active a{color:rgba(0,0,0,.88)!important;font-weight:450!important}.materials-grid-paginator .pisell-lowcode-pagination-prev{align-items:center;border:1px solid #d0d5dd;border-radius:8px 0 0 8px;border-right:none;display:flex;justify-content:center;margin:0;min-width:auto}.materials-grid-paginator .pisell-lowcode-pagination-next{align-items:center;border:1px solid #d0d5dd;border-radius:0 8px 8px 0;display:flex;justify-content:center;margin:0;min-width:auto}.paginator-page-btn{align-items:center;border-radius:4px 4px 4px 4px;color:#344054;color:var(--gray-700,#344054);cursor:pointer;display:flex;font-size:12px;font-weight:400;justify-content:center;padding:10px 16px;transition:.2s;-ms-user-select:none;user-select:none}.paginator-page-btn .paginator-page-btn-text{font-weight:600}.paginator-page-btn .paginator-page-btn-left-icon,.paginator-page-btn .paginator-page-btn-right-icon{font-size:20px}.paginator-page-btn .paginator-page-btn-left-icon{margin-right:8px}.paginator-page-btn .paginator-page-btn-right-icon{margin-left:8px}.paginator-page-btn.left{margin-right:auto}.paginator-page-btn.left .icon{font-size:18px;margin-right:8px}.paginator-page-btn.right{margin-left:auto}.paginator-page-btn.right .icon{font-size:18px;margin-left:8px;transform:rotate(180deg)}.materials-grid-paginator-mini{align-items:center;background-color:#fff;border:1px solid #f0f0f0;border-radius:0 0 8px 8px;border-top:none;display:flex;height:50px;justify-content:space-between;margin:0!important;overflow:hidden;padding:0 20px;width:100%}.materials-grid-paginator-mini .paginator-page-btn{padding:8px}.materials-grid-paginator-mini .materials-grid-paginator-center{align-items:center;display:flex;gap:4px;justify-content:center}.materials-grid-paginator-mini .materials-grid-paginator-center .materials-grid-paginator-center-text{color:#344054;color:var(--gray-700,#344054);font-size:14px;font-style:normal;font-weight:400}.materials-grid-paginator-mini .materials-grid-paginator-center .materials-grid-paginator-center-value{color:#344054;color:var(--gray-700,#344054);font-size:14px;font-style:normal;font-weight:500}.materials-grid-paginator-mini .pisell-lowcode-pagination-next,.materials-grid-paginator-mini .pisell-lowcode-pagination-prev{border:1px solid #d0d5dd;border-radius:8px;margin:0}.materials-grid-paginator-mini .pisell-lowcode-pagination-next .paginator-page-btn-left-icon,.materials-grid-paginator-mini .pisell-lowcode-pagination-prev .paginator-page-btn-left-icon{margin-right:0}.materials-grid-paginator-mini .pisell-lowcode-pagination-next .paginator-page-btn-right-icon,.materials-grid-paginator-mini .pisell-lowcode-pagination-prev .paginator-page-btn-right-icon{margin-left:0}.react-resizable{position:relative}.react-resizable-handle{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgd2lkdGg9IjYiIGhlaWdodD0iNiI+PHBhdGggZD0iTTYgNkgwVjQuMmg0LjJWMEg2djZaIiBvcGFjaXR5PSIuMzAyIi8+PC9zdmc+);background-origin:content-box;background-position:100% 100%;background-repeat:no-repeat;box-sizing:border-box;height:20px;padding:0 3px 3px 0;position:absolute;width:20px}.react-resizable-handle-sw{bottom:0;cursor:sw-resize;left:0;transform:rotate(90deg)}.react-resizable-handle-se{bottom:0;cursor:se-resize;right:0}.react-resizable-handle-nw{cursor:nw-resize;left:0;top:0;transform:rotate(180deg)}.react-resizable-handle-ne{cursor:ne-resize;right:0;top:0;transform:rotate(270deg)}.react-resizable-handle-e,.react-resizable-handle-w{cursor:ew-resize;margin-top:-10px;top:50%}.react-resizable-handle-w{left:0;transform:rotate(135deg)}.react-resizable-handle-e{right:0;transform:rotate(315deg)}.react-resizable-handle-n,.react-resizable-handle-s{cursor:ns-resize;left:50%;margin-left:-10px}.react-resizable-handle-n{top:0;transform:rotate(225deg)}.react-resizable-handle-s{bottom:0;transform:rotate(45deg)}.materials-grid-table-header-cell{align-items:center;display:flex;height:44px;padding:0 14px}.materials-grid-table-header-cell .field-icon{color:#777;font-size:18px}.materials-grid-table-header-cell .materials-grid-table-header-cell-content{color:#1b1b1b;flex:auto;font-size:14px;font-weight:600;overflow:hidden;padding-right:10px;text-overflow:ellipsis;white-space:nowrap;word-break:break-all}.materials-grid-table-header-cell .actions{align-items:center;display:flex;gap:8px}.materials-grid-table-header-cell .actions .action{color:#ababab;cursor:pointer;font-size:14px}.editable-cell-value-wrap{height:100%;width:100%}.materials-grid-table-cell{height:1px;padding:0!important}.cell-provider{align-items:center;border-radius:4px;cursor:pointer;display:flex;height:100%;justify-content:center;padding:12px;position:relative;width:100%}.cell-provider.focus{box-shadow:var(--theme-color) 0 0 0 1px!important}
|