@pisell/materials 3.3.32 → 3.3.34

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.
Files changed (121) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +2 -2
  6. package/build/lowcode/preview.js +9 -9
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +24 -24
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +25 -25
  11. package/es/components/buttonGroupEdit/index.d.ts +8 -0
  12. package/es/components/dataSourceComponents/dataSourceMenu/Basic.js +6 -2
  13. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  14. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
  15. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +32 -0
  16. package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.js +1 -1
  17. package/es/components/dataSourceComponents/fields/DatePicker/ReadPretty.d.ts +5 -0
  18. package/es/components/dataSourceComponents/fields/DatePicker/ReadPretty.js +4 -12
  19. package/es/components/dataSourceComponents/fields/utils.js +0 -5
  20. package/es/components/div/index.js +45 -8
  21. package/es/components/pisellDraggable/components/TreeItem/SortableTreeItem.js +4 -3
  22. package/es/components/pisellDraggable/components/TreeItem/index.js +1 -1
  23. package/es/components/pisellDraggable/index.js +165 -127
  24. package/es/components/pisellDropSort/PisellDropSort.js +10 -3
  25. package/es/components/pisellDropSort/components/SortableItem/index.js +6 -1
  26. package/es/components/pisellDropSort/components/SortableItem/index.less +0 -1
  27. package/es/components/pisellMenu/PisellMenu.js +1 -0
  28. package/es/components/pisellNavigationMenu/PisellNavigationMenu.d.ts +5 -0
  29. package/es/components/pisellNavigationMenu/PisellNavigationMenu.js +79 -11
  30. package/es/components/pisellNavigationMenu/PisellNavigationMenu.less +14 -0
  31. package/es/components/productCard/components/MultiDay/index.d.ts +3 -0
  32. package/es/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  33. package/es/components/productCard/components/Packages/components/options/index.d.ts +3 -0
  34. package/es/components/productCard/components/Packages/utils.d.ts +1 -1
  35. package/es/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  36. package/es/components/table/Table/SelectField/index.d.ts +1 -0
  37. package/es/components/table/Table/fields/index.d.ts +3 -2
  38. package/es/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  39. package/es/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  40. package/es/components/table/Table/utils.d.ts +1 -1
  41. package/es/locales/en-US.js +4 -0
  42. package/es/locales/zh-CN.js +4 -0
  43. package/es/locales/zh-TW.js +4 -0
  44. package/es/utils/index.d.ts +1 -1
  45. package/es/utils/platform.d.ts +1 -1
  46. package/lib/components/buttonGroupEdit/index.d.ts +8 -0
  47. package/lib/components/dataSourceComponents/dataSourceMenu/Basic.js +6 -2
  48. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDataSourceKey.d.ts +2 -2
  49. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +4 -4
  50. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.d.ts +32 -0
  51. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.js +1 -1
  52. package/lib/components/dataSourceComponents/fields/DatePicker/ReadPretty.d.ts +5 -0
  53. package/lib/components/dataSourceComponents/fields/DatePicker/ReadPretty.js +7 -15
  54. package/lib/components/dataSourceComponents/fields/utils.js +0 -5
  55. package/lib/components/div/index.js +33 -3
  56. package/lib/components/pisellDraggable/components/TreeItem/SortableTreeItem.js +4 -7
  57. package/lib/components/pisellDraggable/components/TreeItem/index.js +12 -2
  58. package/lib/components/pisellDraggable/index.js +114 -80
  59. package/lib/components/pisellDropSort/PisellDropSort.js +9 -3
  60. package/lib/components/pisellDropSort/components/SortableItem/index.js +5 -0
  61. package/lib/components/pisellDropSort/components/SortableItem/index.less +0 -1
  62. package/lib/components/pisellMenu/PisellMenu.js +1 -0
  63. package/lib/components/pisellNavigationMenu/PisellNavigationMenu.d.ts +5 -0
  64. package/lib/components/pisellNavigationMenu/PisellNavigationMenu.js +64 -9
  65. package/lib/components/pisellNavigationMenu/PisellNavigationMenu.less +14 -0
  66. package/lib/components/productCard/components/MultiDay/index.d.ts +3 -0
  67. package/lib/components/productCard/components/Packages/components/collapsibleList/utils.d.ts +1 -0
  68. package/lib/components/productCard/components/Packages/components/options/index.d.ts +3 -0
  69. package/lib/components/productCard/components/Packages/utils.d.ts +1 -1
  70. package/lib/components/table/Gallery/components/VirtualGrid/useGapSize.d.ts +2 -2
  71. package/lib/components/table/Table/SelectField/index.d.ts +1 -0
  72. package/lib/components/table/Table/fields/index.d.ts +3 -2
  73. package/lib/components/table/Table/fields/select/filterUtil/index.d.ts +1 -1
  74. package/lib/components/table/Table/fields/treeSelect/filterUtil/index.d.ts +1 -1
  75. package/lib/components/table/Table/utils.d.ts +1 -1
  76. package/lib/locales/en-US.js +4 -0
  77. package/lib/locales/zh-CN.js +4 -0
  78. package/lib/locales/zh-TW.js +4 -0
  79. package/lib/utils/index.d.ts +1 -1
  80. package/lib/utils/platform.d.ts +1 -1
  81. package/lowcode/div/meta.ts +39 -4
  82. package/lowcode/pisell-navigation-menu/meta.ts +12 -0
  83. package/package.json +3 -3
  84. package/es/components/appVersionControl/index.d.ts +0 -4
  85. package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -38
  86. package/es/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -78
  87. package/es/components/div/index.d.ts +0 -8
  88. package/es/components/drag-sort-tree/index.d.ts +0 -4
  89. package/es/components/pisellDraggable/components/TreeItem/SortableTreeItem.d.ts +0 -9
  90. package/es/components/pisellDraggable/components/TreeItem/TreeItem.d.ts +0 -23
  91. package/es/components/pisellDraggable/components/TreeItem/index.d.ts +0 -2
  92. package/es/components/pisellDraggable/index.d.ts +0 -32
  93. package/es/components/pisellDropSort/PisellDropSort.d.ts +0 -5
  94. package/es/components/pisellDropSort/components/SortableItem/index.d.ts +0 -25
  95. package/es/components/pisellDropSort/types.d.ts +0 -52
  96. package/es/components/pisellMenu/PisellMenu.d.ts +0 -9
  97. package/es/components/pisellMenu/types.d.ts +0 -26
  98. package/es/components/pisellNavigationMenu/types.d.ts +0 -64
  99. package/es/components/table/Actions/component/ExportImport/index.d.ts +0 -7
  100. package/es/components/table/Table/index.d.ts +0 -4
  101. package/es/components/table/types.d.ts +0 -251
  102. package/es/components/versionModal/index.d.ts +0 -23
  103. package/lib/components/appVersionControl/index.d.ts +0 -4
  104. package/lib/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.d.ts +0 -38
  105. package/lib/components/dataSourceComponents/dataSourceTable/type.d.ts +0 -78
  106. package/lib/components/div/index.d.ts +0 -8
  107. package/lib/components/drag-sort-tree/index.d.ts +0 -4
  108. package/lib/components/pisellDraggable/components/TreeItem/SortableTreeItem.d.ts +0 -9
  109. package/lib/components/pisellDraggable/components/TreeItem/TreeItem.d.ts +0 -23
  110. package/lib/components/pisellDraggable/components/TreeItem/index.d.ts +0 -2
  111. package/lib/components/pisellDraggable/index.d.ts +0 -32
  112. package/lib/components/pisellDropSort/PisellDropSort.d.ts +0 -5
  113. package/lib/components/pisellDropSort/components/SortableItem/index.d.ts +0 -25
  114. package/lib/components/pisellDropSort/types.d.ts +0 -52
  115. package/lib/components/pisellMenu/PisellMenu.d.ts +0 -9
  116. package/lib/components/pisellMenu/types.d.ts +0 -26
  117. package/lib/components/pisellNavigationMenu/types.d.ts +0 -64
  118. package/lib/components/table/Actions/component/ExportImport/index.d.ts +0 -7
  119. package/lib/components/table/Table/index.d.ts +0 -4
  120. package/lib/components/table/types.d.ts +0 -251
  121. package/lib/components/versionModal/index.d.ts +0 -23
@@ -17,6 +17,8 @@ var PisellDropSort = function PisellDropSort(_ref) {
17
17
  allowAddChild = _ref$allowAddChild === void 0 ? true : _ref$allowAddChild,
18
18
  _ref$allowAddRoot = _ref.allowAddRoot,
19
19
  allowAddRoot = _ref$allowAddRoot === void 0 ? true : _ref$allowAddRoot,
20
+ _ref$allowIsShow = _ref.allowIsShow,
21
+ allowIsShow = _ref$allowIsShow === void 0 ? false : _ref$allowIsShow,
20
22
  _ref$disabled = _ref.disabled,
21
23
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
22
24
  _ref$spacing = _ref.spacing,
@@ -37,7 +39,9 @@ var PisellDropSort = function PisellDropSort(_ref) {
37
39
  __designMode = _ref.__designMode,
38
40
  isCustomAction = _ref.isCustomAction,
39
41
  emptyContent = _ref.emptyContent,
40
- getItemStyle = _ref.getItemStyle;
42
+ getItemStyle = _ref.getItemStyle,
43
+ canDrop = _ref.canDrop,
44
+ indentationWidth = _ref.indentationWidth;
41
45
  // 自定义渲染节点
42
46
  var renderItem = useCallback(function (itemProps, ref) {
43
47
  return /*#__PURE__*/React.createElement(SortableItem, {
@@ -47,6 +51,7 @@ var PisellDropSort = function PisellDropSort(_ref) {
47
51
  allowAddChild: allowAddChild,
48
52
  allowDelete: allowDelete,
49
53
  allowDrag: allowDrag,
54
+ allowIsShow: allowIsShow,
50
55
  disabled: disabled,
51
56
  onAdd: onAdd,
52
57
  onDelete: onDelete,
@@ -85,10 +90,12 @@ var PisellDropSort = function PisellDropSort(_ref) {
85
90
  value: value,
86
91
  collapsible: true,
87
92
  indicator: false,
88
- indentationWidth: 24,
93
+ indentationWidth: indentationWidth,
89
94
  removable: allowDelete,
90
95
  renderItem: renderItem,
91
- onChange: handleChange
96
+ onChange: handleChange,
97
+ canDrop: canDrop,
98
+ maxLevel: maxLevel
92
99
  })));
93
100
  };
94
101
  export default PisellDropSort;
@@ -1,5 +1,5 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- var _excluded = ["item", "depth", "clone", "ghost", "indicator", "disableSelection", "disableInteraction", "wrapperRef", "style", "onCollapse", "onRemove", "childCount", "indentationWidth", "handleProps", "collapsed"];
2
+ var _excluded = ["item", "depth", "clone", "ghost", "indicator", "disableSelection", "disableInteraction", "wrapperRef", "style", "onCollapse", "onRemove", "childCount", "indentationWidth", "handleProps", "collapsed", "isError"];
3
3
  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); }
4
4
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
5
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
@@ -21,6 +21,7 @@ var SortableItem = function SortableItem(props) {
21
21
  allowAddChild = props.allowAddChild,
22
22
  allowDelete = props.allowDelete,
23
23
  allowDrag = props.allowDrag,
24
+ allowIsShow = props.allowIsShow,
24
25
  disabled = props.disabled,
25
26
  onAdd = props.onAdd,
26
27
  onDelete = props.onDelete,
@@ -45,9 +46,13 @@ var SortableItem = function SortableItem(props) {
45
46
  indentationWidth = itemProps.indentationWidth,
46
47
  handleProps = itemProps.handleProps,
47
48
  collapsed = itemProps.collapsed,
49
+ isError = itemProps.isError,
48
50
  otherProps = _objectWithoutProperties(itemProps, _excluded);
49
51
  var itemStyle = (getItemStyle === null || getItemStyle === void 0 ? void 0 : getItemStyle(itemProps)) || {};
50
52
  var mergedStyle = _objectSpread(_objectSpread({}, itemStyle), style);
53
+ if (isError) {
54
+ mergedStyle.backgroundColor = '#FECDCA';
55
+ }
51
56
  return /*#__PURE__*/React.createElement("li", _extends({
52
57
  className: classNames('pisell-lowcode-drop-sort-item', clone && 'clone', ghost && 'ghost', indicator && 'indicator', disableSelection && 'disableSelection', disableInteraction && 'disableInteraction'),
53
58
  ref: wrapperRef,
@@ -81,7 +81,6 @@
81
81
 
82
82
  .pisell-lowcode-drop-sort-item-content {
83
83
  flex: 1;
84
- height: 48px;
85
84
  }
86
85
 
87
86
  .pisell-lowcode-drop-sort-item-button {
@@ -58,4 +58,5 @@ var PisellMenu = function PisellMenu(_ref) {
58
58
  };
59
59
  PisellMenu.Item = AntdMenu.Item;
60
60
  PisellMenu.SubMenu = AntdMenu.SubMenu;
61
+ PisellMenu.ItemGroup = AntdMenu.ItemGroup;
61
62
  export default PisellMenu;
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import type { PisellNavigationMenuProps } from './types';
3
+ import './PisellNavigationMenu.less';
4
+ declare const PisellNavigationMenu: React.FC<PisellNavigationMenuProps>;
5
+ export default PisellNavigationMenu;
@@ -5,6 +5,8 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
5
5
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
6
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
7
  import React, { useCallback, useMemo } from 'react';
8
+ import { isFunction } from "@pisell/utils";
9
+ import classNames from 'classnames';
8
10
  import PisellDropSort from "../pisellDropSort";
9
11
  import PisellTags from "../pisellTags";
10
12
  import Icon from "../icon";
@@ -25,6 +27,8 @@ var PisellNavigationMenu = function PisellNavigationMenu(_ref) {
25
27
  allowAddChild = _ref$allowAddChild === void 0 ? true : _ref$allowAddChild,
26
28
  _ref$allowAddRoot = _ref.allowAddRoot,
27
29
  allowAddRoot = _ref$allowAddRoot === void 0 ? true : _ref$allowAddRoot,
30
+ _ref$allowIsShow = _ref.allowIsShow,
31
+ allowIsShow = _ref$allowIsShow === void 0 ? true : _ref$allowIsShow,
28
32
  _ref$disabled = _ref.disabled,
29
33
  disabled = _ref$disabled === void 0 ? false : _ref$disabled,
30
34
  _ref$spacing = _ref.spacing,
@@ -38,8 +42,17 @@ var PisellNavigationMenu = function PisellNavigationMenu(_ref) {
38
42
  onAddPage = _ref.onAddPage,
39
43
  onEdit = _ref.onEdit,
40
44
  onDelete = _ref.onDelete,
45
+ onIsShow = _ref.onIsShow,
41
46
  __designMode = _ref.__designMode,
42
- title = _ref.title;
47
+ title = _ref.title,
48
+ propsRightContent = _ref.rightContent,
49
+ propsGetItemStyle = _ref.getItemStyle,
50
+ canDrop = _ref.canDrop,
51
+ _ref$indentationWidth = _ref.indentationWidth,
52
+ indentationWidth = _ref$indentationWidth === void 0 ? 24 : _ref$indentationWidth,
53
+ hideDescription = _ref.hideDescription,
54
+ showActionOnHover = _ref.showActionOnHover,
55
+ showTitleTags = _ref.showTitleTags;
43
56
  // 将DropSortItem转换回NavigationMenuItem
44
57
  var convertToNavigationItems = function convertToNavigationItems(items) {
45
58
  return items.map(function (item) {
@@ -47,6 +60,7 @@ var PisellNavigationMenu = function PisellNavigationMenu(_ref) {
47
60
  id: String(item.id),
48
61
  title: String(item.title || ''),
49
62
  path: String(item.path || '/'),
63
+ collapsed: item.collapsed,
50
64
  children: item.children ? convertToNavigationItems(item.children) : []
51
65
  };
52
66
  });
@@ -73,16 +87,32 @@ var PisellNavigationMenu = function PisellNavigationMenu(_ref) {
73
87
  text: getText('pisell-lowcode-navigation-menu-tag-base'),
74
88
  color: '#7f56d9'
75
89
  },
90
+ proCode: {
91
+ text: getText('pisell-lowcode-navigation-menu-tag-proCode'),
92
+ color: '#1677ff'
93
+ },
76
94
  pisellV1: {
77
95
  text: getText('pisell-lowcode-navigation-menu-tag-pisell1'),
78
96
  color: '#ee837a'
97
+ },
98
+ group: {
99
+ text: getText('pisell-lowcode-navigation-menu-tag-group'),
100
+ color: '#7f56d9'
101
+ },
102
+ subMenu: {
103
+ text: getText('pisell-lowcode-navigation-menu-tag-sub-menu'),
104
+ color: '#067647'
105
+ },
106
+ custom: {
107
+ text: getText('pisell-lowcode-navigation-menu-tag-custom'),
108
+ color: '#B54708'
79
109
  }
80
110
  };
81
111
  }, []);
82
112
 
83
113
  // 自定义渲染菜单项
84
114
  var renderMenuItem = useCallback(function (itemProps) {
85
- var _tagTextMap$item$sour, _tagTextMap$item$sour2;
115
+ var _tagTextMap$group, _tagTextMap$group2, _tagTextMap$subMenu, _tagTextMap$subMenu2, _tagTextMap$custom, _tagTextMap$custom2, _tagTextMap$item$sour, _tagTextMap$item$sour2;
86
116
  var item = itemProps.item;
87
117
  var _item$allowEdit = item.allowEdit,
88
118
  allowEdit = _item$allowEdit === void 0 ? true : _item$allowEdit,
@@ -93,13 +123,15 @@ var PisellNavigationMenu = function PisellNavigationMenu(_ref) {
93
123
  _item$allowAddSubmenu = item.allowAddSubmenu,
94
124
  allowAddSubmenu = _item$allowAddSubmenu === void 0 ? true : _item$allowAddSubmenu,
95
125
  _item$allowAddPage = item.allowAddPage,
96
- allowAddPage = _item$allowAddPage === void 0 ? true : _item$allowAddPage;
126
+ allowAddPage = _item$allowAddPage === void 0 ? true : _item$allowAddPage,
127
+ _item$allowIsShow = item.allowIsShow,
128
+ allowIsShow = _item$allowIsShow === void 0 ? true : _item$allowIsShow;
97
129
  var isShowAddButton = item.isGroup && allowAddChild && (allowAddSubmenu || allowAddPage);
98
130
  return /*#__PURE__*/React.createElement("div", {
99
131
  className: "pisell-lowcode-navigation-menu-item"
100
132
  }, /*#__PURE__*/React.createElement("div", {
101
133
  className: "pisell-lowcode-navigation-menu-item-content"
102
- }, /*#__PURE__*/React.createElement("div", {
134
+ }, item.icon && /*#__PURE__*/React.createElement("div", {
103
135
  className: "pisell-lowcode-navigation-menu-item-content-icon"
104
136
  }, /*#__PURE__*/React.createElement(Icon, {
105
137
  type: item.icon
@@ -107,8 +139,20 @@ var PisellNavigationMenu = function PisellNavigationMenu(_ref) {
107
139
  className: "pisell-lowcode-navigation-menu-item-content-text"
108
140
  }, /*#__PURE__*/React.createElement("div", {
109
141
  className: "pisell-lowcode-navigation-menu-item-title"
110
- }, item.title), /*#__PURE__*/React.createElement("div", {
111
- className: "pisell-lowcode-navigation-menu-item-description"
142
+ }, item.title, showTitleTags && /*#__PURE__*/React.createElement(React.Fragment, null, item.isGroup && item.is_top && /*#__PURE__*/React.createElement(PisellTags, {
143
+ type: "pill_color",
144
+ color: (_tagTextMap$group = tagTextMap['group']) === null || _tagTextMap$group === void 0 ? void 0 : _tagTextMap$group.color
145
+ }, ((_tagTextMap$group2 = tagTextMap['group']) === null || _tagTextMap$group2 === void 0 ? void 0 : _tagTextMap$group2.text) || ""), item.isGroup && !item.is_top && /*#__PURE__*/React.createElement(PisellTags, {
146
+ type: "pill_color",
147
+ color: (_tagTextMap$subMenu = tagTextMap['subMenu']) === null || _tagTextMap$subMenu === void 0 ? void 0 : _tagTextMap$subMenu.color
148
+ }, ((_tagTextMap$subMenu2 = tagTextMap['subMenu']) === null || _tagTextMap$subMenu2 === void 0 ? void 0 : _tagTextMap$subMenu2.text) || ""), item.isCustom && /*#__PURE__*/React.createElement(PisellTags, {
149
+ type: "pill_color",
150
+ color: (_tagTextMap$custom = tagTextMap['custom']) === null || _tagTextMap$custom === void 0 ? void 0 : _tagTextMap$custom.color
151
+ }, ((_tagTextMap$custom2 = tagTextMap['custom']) === null || _tagTextMap$custom2 === void 0 ? void 0 : _tagTextMap$custom2.text) || ""))), hideDescription ? null : /*#__PURE__*/React.createElement("div", {
152
+ className: "pisell-lowcode-navigation-menu-item-description",
153
+ style: {
154
+ display: hideDescription ? "none" : "flex"
155
+ }
112
156
  }, item.description, item.source && /*#__PURE__*/React.createElement(PisellTags, {
113
157
  type: "pill_color",
114
158
  color: (_tagTextMap$item$sour = tagTextMap[item.source]) === null || _tagTextMap$item$sour === void 0 ? void 0 : _tagTextMap$item$sour.color
@@ -116,8 +160,20 @@ var PisellNavigationMenu = function PisellNavigationMenu(_ref) {
116
160
  type: "pill_color",
117
161
  color: "success"
118
162
  }, "v", item.version)))), /*#__PURE__*/React.createElement("div", {
119
- className: "pisell-lowcode-navigation-menu-item-action-wrap"
120
- }, allowEdit && /*#__PURE__*/React.createElement(Button, {
163
+ className: classNames("pisell-lowcode-navigation-menu-item-action-wrap", {
164
+ "pisell-lowcode-navigation-menu-item-action-wrap-hover": showActionOnHover
165
+ })
166
+ }, allowIsShow && /*#__PURE__*/React.createElement(Button, {
167
+ type: "text",
168
+ onClick: function onClick() {
169
+ return onIsShow === null || onIsShow === void 0 ? void 0 : onIsShow(item);
170
+ },
171
+ className: "pisell-lowcode-navigation-menu-item-action-button",
172
+ icon: /*#__PURE__*/React.createElement(Icon, {
173
+ type: item.is_show === false ? "pisell2-eye-off" : "pisell2-eye",
174
+ className: "pisell-lowcode-navigation-menu-item-action-button-icon"
175
+ })
176
+ }), allowEdit && /*#__PURE__*/React.createElement(Button, {
121
177
  type: "text",
122
178
  onClick: function onClick() {
123
179
  return onEdit === null || onEdit === void 0 ? void 0 : onEdit(item);
@@ -128,6 +184,9 @@ var PisellNavigationMenu = function PisellNavigationMenu(_ref) {
128
184
  className: "pisell-lowcode-navigation-menu-item-action-button-icon"
129
185
  })
130
186
  }), isShowAddButton && /*#__PURE__*/React.createElement(Dropdown, {
187
+ getPopupContainer: function getPopupContainer(triggerNode) {
188
+ return triggerNode;
189
+ },
131
190
  menu: {
132
191
  items: [allowAddSubmenu && {
133
192
  key: 'add-child',
@@ -173,6 +232,9 @@ var PisellNavigationMenu = function PisellNavigationMenu(_ref) {
173
232
  }, title);
174
233
  }, [title]);
175
234
  var rightContent = useMemo(function () {
235
+ if (propsRightContent) {
236
+ return propsRightContent;
237
+ }
176
238
  return /*#__PURE__*/React.createElement("div", {
177
239
  className: "pisell-lowcode-navigation-menu-right-content"
178
240
  }, /*#__PURE__*/React.createElement(Button, {
@@ -193,7 +255,7 @@ var PisellNavigationMenu = function PisellNavigationMenu(_ref) {
193
255
  return onAddPage === null || onAddPage === void 0 ? void 0 : onAddPage();
194
256
  }
195
257
  }, getText('pisell-lowcode-navigation-menu-add-page')));
196
- }, [title]);
258
+ }, [propsRightContent]);
197
259
  var formatValue = useMemo(function () {
198
260
  return formatTree(value, function (item) {
199
261
  return _objectSpread(_objectSpread({}, item), {}, {
@@ -203,16 +265,21 @@ var PisellNavigationMenu = function PisellNavigationMenu(_ref) {
203
265
  }, [value]);
204
266
  var getItemStyle = useCallback(function (itemProps) {
205
267
  var item = itemProps.item;
268
+ if (isFunction(propsGetItemStyle)) {
269
+ return (propsGetItemStyle === null || propsGetItemStyle === void 0 ? void 0 : propsGetItemStyle(item)) || {};
270
+ }
206
271
  return {
207
272
  backgroundColor: item.isGroup ? '#fff' : 'var(--Gray-50, #F9FAFB)'
208
273
  };
209
- }, []);
274
+ }, [propsGetItemStyle]);
210
275
  return /*#__PURE__*/React.createElement(PisellDropSort, {
276
+ indentationWidth: indentationWidth,
211
277
  value: formatValue,
212
278
  allowDrag: allowDrag,
213
279
  allowDelete: allowDelete,
214
280
  allowAddChild: allowAddChild,
215
281
  allowAddRoot: allowAddRoot,
282
+ allowIsShow: allowIsShow,
216
283
  disabled: disabled,
217
284
  spacing: spacing,
218
285
  maxLevel: maxLevel,
@@ -228,7 +295,8 @@ var PisellNavigationMenu = function PisellNavigationMenu(_ref) {
228
295
  emptyContent: /*#__PURE__*/React.createElement(PisellEmpty, {
229
296
  maxWidth: 400,
230
297
  description: getText('pisell-lowcode-navigation-menu-add-page-tip')
231
- })
298
+ }),
299
+ canDrop: canDrop
232
300
  });
233
301
  };
234
302
  export default PisellNavigationMenu;
@@ -1,3 +1,10 @@
1
+ .pisell-lowcode-drop-sort-item-tree-item {
2
+ &:hover {
3
+ .pisell-lowcode-navigation-menu-item-action-wrap {
4
+ opacity: 1 !important;
5
+ }
6
+ }
7
+ }
1
8
  .pisell-lowcode-navigation-menu-item {
2
9
  display: flex;
3
10
  justify-content: space-between;
@@ -26,6 +33,9 @@
26
33
  font-size: 14px;
27
34
  font-weight: 600;
28
35
  line-height: 20px; /* 142.857% */
36
+ display: flex;
37
+ gap: 10px;
38
+ align-items: center;
29
39
  }
30
40
  .pisell-lowcode-navigation-menu-item-description {
31
41
  color: var(--Gray-500, #667085);
@@ -40,6 +50,10 @@
40
50
  .pisell-lowcode-navigation-menu-item-action-wrap {
41
51
  display: flex;
42
52
  gap: 8px;
53
+ transition: opacity 0.3s ease-in-out;
54
+ &.pisell-lowcode-navigation-menu-item-action-wrap-hover {
55
+ opacity: 0;
56
+ }
43
57
  .pisell-lowcode-navigation-menu-item-action-button {
44
58
  &:hover {
45
59
  background: var(--Gray-300, #D0D5DD);
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const MultiDay: ({ dataSource, hideDivider }: any) => JSX.Element;
3
+ export default MultiDay;
@@ -0,0 +1 @@
1
+ export declare const renderBundles: (item: any, hidePrice?: boolean, isShowPackageNote?: boolean) => JSX.Element;
@@ -0,0 +1,3 @@
1
+ import './index.less';
2
+ declare const Options: ({ options, amountSymbol }: any) => JSX.Element | null;
3
+ export default Options;
@@ -17,4 +17,4 @@ export declare const minusSign: (item: any, type?: string) => "" | "-";
17
17
  * @Author: WangHan
18
18
  * @Date: 2024-11-22 10:58
19
19
  */
20
- export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => string | number;
20
+ export declare const _formatAmount: (price?: number, amountSymbol?: string, digit?: number) => any;
@@ -1,5 +1,5 @@
1
1
  declare const useGapSize: (gap: number | number[]) => {
2
- horizontal: number;
3
- vertical: number;
2
+ horizontal: any;
3
+ vertical: any;
4
4
  };
5
5
  export default useGapSize;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  declare const SelectField: () => JSX.Element;
2
3
  export default SelectField;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare const fieldMaps: {
2
3
  text: {
3
4
  field: {
@@ -197,12 +198,12 @@ export declare const fieldList: ({
197
198
  field_icon: string;
198
199
  field_name: string;
199
200
  field_type: string;
200
- default_value: boolean;
201
+ default_value: string;
201
202
  } | {
202
203
  field_icon: string;
203
204
  field_name: string;
204
205
  field_type: string;
205
- default_value: string;
206
+ default_value: boolean;
206
207
  } | {
207
208
  field_icon: string;
208
209
  field_name: string;
@@ -2,4 +2,4 @@ export default function ({ value, key, item, }: {
2
2
  value: string | string[];
3
3
  key: string | string[];
4
4
  item: Record<string, any>;
5
- }): boolean;
5
+ }): any;
@@ -2,4 +2,4 @@ export default function ({ value, key, item, }: {
2
2
  value: string | string[] | Record<string, any>[];
3
3
  key: string | string[];
4
4
  item: Record<string, any>;
5
- }): boolean;
5
+ }): any;
@@ -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
- }) => ("column_setting" | "gallery_setting" | "order_by" | "group_by" | "view_mode" | "filter_setting")[];
158
+ }) => ("filter_setting" | "view_mode" | "column_setting" | "order_by" | "group_by" | "gallery_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 {};
@@ -286,7 +286,11 @@ export default {
286
286
  'pisell-lowcode-navigation-menu-add-page': 'Add page',
287
287
  'pisell-lowcode-navigation-menu-add-page-tip': 'No navigation found. Please add a submenu or page.',
288
288
  'pisell-lowcode-navigation-menu-tag-base': "Base",
289
+ 'pisell-lowcode-navigation-menu-tag-proCode': "Pro code",
289
290
  'pisell-lowcode-navigation-menu-tag-pisell1': "Pisell 1.0",
291
+ 'pisell-lowcode-navigation-menu-tag-group': "Group",
292
+ 'pisell-lowcode-navigation-menu-tag-sub-menu': "Submenu",
293
+ 'pisell-lowcode-navigation-menu-tag-custom': "Custom",
290
294
  // 应用标识符
291
295
  'pisell-data-source-form-app-identifier-pattern': 'Can only contain lowercase letters, numbers, hyphens, dots, and underscores',
292
296
  'pisell-data-source-form-app-identifier-start-with-letter': 'Must start with a letter',
@@ -283,7 +283,11 @@ export default {
283
283
  'pisell-lowcode-navigation-menu-add-page': '添加页面',
284
284
  'pisell-lowcode-navigation-menu-add-page-tip': '没有找到导航,请添加子菜单或页面。',
285
285
  'pisell-lowcode-navigation-menu-tag-base': "基础",
286
+ 'pisell-lowcode-navigation-menu-tag-proCode': "Pro code",
286
287
  'pisell-lowcode-navigation-menu-tag-pisell1': "Pisell 1.0",
288
+ 'pisell-lowcode-navigation-menu-tag-group': "分组",
289
+ 'pisell-lowcode-navigation-menu-tag-sub-menu': "子菜单",
290
+ 'pisell-lowcode-navigation-menu-tag-custom': "自定义",
287
291
  // 应用标识符
288
292
  'pisell-data-source-form-app-identifier-pattern': '只能包含小写字母、数字、连字符、点和下划线',
289
293
  'pisell-data-source-form-app-identifier-start-with-letter': '必须以字母开头',
@@ -285,7 +285,11 @@ export default {
285
285
  'pisell-lowcode-navigation-menu-add-page': '添加頁面',
286
286
  'pisell-lowcode-navigation-menu-add-page-tip': '沒有找到導航, 請添加子菜單或頁面。',
287
287
  'pisell-lowcode-navigation-menu-tag-base': "基础",
288
+ 'pisell-lowcode-navigation-menu-tag-proCode': "Pro code",
288
289
  'pisell-lowcode-navigation-menu-tag-pisell1': "Pisell 1.0",
290
+ 'pisell-lowcode-navigation-menu-tag-group': "分組",
291
+ 'pisell-lowcode-navigation-menu-tag-sub-menu': "子菜單",
292
+ 'pisell-lowcode-navigation-menu-tag-custom': "自定義",
289
293
  // 应用标识符
290
294
  'pisell-data-source-form-app-identifier-pattern': '只能包含小寫字母、數字、連字符、點和下劃線',
291
295
  'pisell-data-source-form-app-identifier-start-with-letter': '必須以字母開頭',
@@ -1,4 +1,4 @@
1
1
  export declare const isBrowser: boolean;
2
- export declare const getCssNumber: (val: string | number) => string;
2
+ export declare const getCssNumber: (val: string | number) => string | number;
3
3
  export declare function uuid(): string;
4
4
  export * from './mergeWith';
@@ -1 +1 @@
1
- export declare const isMobile: () => boolean;
1
+ export declare const isMobile: () => any;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { ButtonGroupListItemProps } from './../buttonGroupPreview';
3
+ interface ButtonGroupEditProps {
4
+ buttonList: ButtonGroupListItemProps[];
5
+ buttonGroupList: ButtonGroupListItemProps[][];
6
+ }
7
+ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<ButtonGroupEditProps & React.RefAttributes<any>>>;
8
+ export default _default;
@@ -62,9 +62,13 @@ var DataSourceMenu = (0, import_react.forwardRef)(
62
62
  return null;
63
63
  }
64
64
  const _children = getShowChildren(item.children || []);
65
- if (_children == null ? void 0 : _children.length) {
65
+ if ((_children == null ? void 0 : _children.length) || item.isGroup) {
66
+ let CptMenu = import_pisellMenu.default.SubMenu;
67
+ if (item.type === "group") {
68
+ CptMenu = import_pisellMenu.default.ItemGroup;
69
+ }
66
70
  return /* @__PURE__ */ import_react.default.createElement(
67
- import_pisellMenu.default.SubMenu,
71
+ CptMenu,
68
72
  {
69
73
  key: item.key,
70
74
  title: translation(item.label),
@@ -1,5 +1,5 @@
1
1
  declare const useDataSourceKey: () => {
2
- dataSourceKey: string | undefined;
3
- dataSourceKeyRef: import("react").MutableRefObject<string | undefined>;
2
+ dataSourceKey: string | import("../../provider/dataSource/DataSourceContext").DataSourceType | undefined;
3
+ dataSourceKeyRef: import("react").MutableRefObject<string | import("../../provider/dataSource/DataSourceContext").DataSourceType | undefined>;
4
4
  };
5
5
  export default useDataSourceKey;
@@ -17,7 +17,7 @@ interface UseTablePropsProps {
17
17
  * @returns
18
18
  */
19
19
  declare const useTableProps: (props: UseTablePropsProps) => {
20
- title: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
20
+ title: string | number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
21
21
  pagination: {
22
22
  total: number;
23
23
  current: number;
@@ -26,7 +26,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
26
26
  showSizeChanger: boolean;
27
27
  };
28
28
  columns: import("./useColumns").Column[];
29
- subTitle: number | boolean | JSX.Element | React.ReactFragment | (() => React.ReactNode) | null | undefined;
29
+ subTitle: string | number | boolean | React.ReactFragment | JSX.Element | (() => React.ReactNode) | null | undefined;
30
30
  buttons: any[] | null;
31
31
  filter: JSX.Element | null;
32
32
  onRow: (record: any) => any;
@@ -52,7 +52,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
52
52
  width: number;
53
53
  align: "center" | "left" | "right";
54
54
  fixed: false | "left" | "right";
55
- type: "link" | "button";
55
+ type: "button" | "link";
56
56
  items: OperationItem[];
57
57
  } | undefined;
58
58
  operationContent?: {
@@ -70,7 +70,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
70
70
  useCustomAction: boolean;
71
71
  actionType: string;
72
72
  openMode: "modal" | "drawer";
73
- openContentSize: "small" | "large" | "middle";
73
+ openContentSize: "large" | "middle" | "small";
74
74
  openTitle: string;
75
75
  key: string;
76
76
  } | undefined;
@@ -0,0 +1,32 @@
1
+ import { DataSourceTableProps } from '../type';
2
+ declare type Params = {
3
+ pagination?: {
4
+ page: number;
5
+ size: number;
6
+ };
7
+ order_by?: string;
8
+ tabs?: {
9
+ name: string;
10
+ filterBy: Record<string, any>;
11
+ sortBy: string;
12
+ };
13
+ };
14
+ declare const useTableQuery: (props: DataSourceTableProps) => {
15
+ queryPageConfig: {
16
+ page: number;
17
+ pageSize: number;
18
+ filter: Record<string, any>;
19
+ sort: string;
20
+ };
21
+ setQueryPageConfig: import("react").Dispatch<import("react").SetStateAction<{
22
+ page: number;
23
+ pageSize: number;
24
+ filter: Record<string, any>;
25
+ sort: string;
26
+ }>>;
27
+ handleValuesChange: (params: Params, allParams: Params) => void;
28
+ refreshData: () => void;
29
+ handleFilterChange: (changedFields: any, allFields: any) => void;
30
+ refreshCurrentPage: () => void;
31
+ };
32
+ export default useTableQuery;
@@ -29,7 +29,7 @@ var useTableQuery = (props) => {
29
29
  const { filterBy, sortBy, tabs } = props;
30
30
  const [queryPageConfig, setQueryPageConfig] = (0, import_react.useState)({
31
31
  page: 1,
32
- pageSize: 20,
32
+ pageSize: 10,
33
33
  filter: ((_b = (_a = tabs == null ? void 0 : tabs.items) == null ? void 0 : _a[0]) == null ? void 0 : _b.filterBy) || filterBy || {},
34
34
  sort: ((_d = (_c = tabs == null ? void 0 : tabs.items) == null ? void 0 : _c[0]) == null ? void 0 : _d.sortBy) || sortBy
35
35
  });
@@ -0,0 +1,5 @@
1
+ import type { FC } from 'react';
2
+ import { DatePickerProps } from './type';
3
+ import './ReadPretty.less';
4
+ declare const DatePickerReadPretty: FC<DatePickerProps>;
5
+ export default DatePickerReadPretty;
@@ -37,24 +37,18 @@ var import_classnames = __toESM(require("classnames"));
37
37
  var import_dayjs = __toESM(require("dayjs"));
38
38
  var import_usePisellConfig = __toESM(require("../../../pisell-config-provider/hooks/usePisellConfig"));
39
39
  var import_ReadPretty = require("./ReadPretty.less");
40
- var DEFAULT_FORMAT = "DD/MM/YYYY HH:mm";
40
+ var DEFAULT_FORMAT = "YYYY-MM-DD HH:mm:ss";
41
41
  var DATE_FORMATS = {
42
42
  "zh-CN": {
43
- withTime: "YYYY-MM-DD HH:mm",
43
+ withTime: "YYYY-MM-DD HH:mm:ss",
44
44
  withoutTime: "YYYY-MM-DD"
45
45
  },
46
46
  "en-US": {
47
- withTime: "MM/DD/YYYY HH:mm",
48
- withoutTime: "MM/DD/YYYY"
49
- },
50
- "en-AU": { withTime: "DD/MM/YYYY HH:mm", withoutTime: "DD/MM/YYYY" },
51
- en: { withTime: "DD/MM/YYYY HH:mm", withoutTime: "DD/MM/YYYY" }
47
+ withTime: "HH:mm:ss YYYY-MM-DD",
48
+ withoutTime: "YYYY-MM-DD"
49
+ }
52
50
  };
53
- var DatePickerReadPretty = ({
54
- value,
55
- renderMode,
56
- showTime
57
- }) => {
51
+ var DatePickerReadPretty = ({ value, renderMode, showTime }) => {
58
52
  const { locale = "zh-CN" } = (0, import_usePisellConfig.default)();
59
53
  const dateFormat = (0, import_react.useMemo)(() => {
60
54
  if (locale in DATE_FORMATS) {
@@ -62,9 +56,7 @@ var DatePickerReadPretty = ({
62
56
  return showTime ? formats.withTime : formats.withoutTime;
63
57
  }
64
58
  if (process.env.NODE_ENV !== "production") {
65
- console.warn(
66
- `Unsupported locale: ${locale}, falling back to default format`
67
- );
59
+ console.warn(`Unsupported locale: ${locale}, falling back to default format`);
68
60
  }
69
61
  return DEFAULT_FORMAT;
70
62
  }, [locale, showTime]);
@@ -86,11 +86,6 @@ var formFieldFilterFuncMap = {
86
86
  $eq: value
87
87
  };
88
88
  },
89
- "Input.TextArea": (value) => {
90
- return {
91
- $includes: value
92
- };
93
- },
94
89
  "Input.JSON": (value) => {
95
90
  return {
96
91
  $includes: value