@luck-design-biz/luckda 1.0.6-13tl → 1.0.7

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 (169) hide show
  1. package/es/components/Builder/index.js +37 -27
  2. package/es/components/ComplexItem/index.js +5 -3
  3. package/es/components/ComplexItem/service.js +6 -3
  4. package/es/components/LdAutoForm/index.js +25 -12
  5. package/es/components/LdCard/index.js +10 -8
  6. package/es/components/LdCom/index.js +3 -2
  7. package/es/components/LdFormList/index.js +5 -4
  8. package/es/components/LdGrid/index.js +29 -20
  9. package/es/components/LdGridForm/index.js +16 -7
  10. package/es/components/LdInfoPanel/index.js +16 -10
  11. package/es/helper/FromItems.js +64 -5
  12. package/es/helper/form.js +8 -2
  13. package/es/helper/ldBuilder.js +9 -5
  14. package/es/helper/ldComBuild.js +16 -11
  15. package/es/locales/zh-CN.js +40 -4
  16. package/es/lowcode/constants/api-url.js +202 -175
  17. package/es/lowcode/constants/event-topics.js +2 -0
  18. package/es/lowcode/constants/index.js +5 -4
  19. package/es/lowcode/engine/meta/components-list.json +6 -0
  20. package/es/lowcode/engine/meta/fielddate.props.default.json +1 -0
  21. package/es/lowcode/engine/meta/fielddate.props.json +48 -0
  22. package/es/lowcode/engine/meta/js-editor/auto-complete.json +5 -0
  23. package/es/lowcode/engine/meta/pagecomponent.props.default.json +8 -0
  24. package/es/lowcode/engine/meta/pagecomponent.props.json +41 -0
  25. package/es/lowcode/engine/meta/proxy.props.default.json +15 -0
  26. package/es/lowcode/engine/meta/proxy.props.json +66 -0
  27. package/es/lowcode/engine/provider/ContextProvider/index.js +45 -9
  28. package/es/lowcode/engine/provider/ContextProvider/usePageDataStore.js +36 -30
  29. package/es/lowcode/engine/provider/ContextProvider/usePageVar.js +11 -5
  30. package/es/lowcode/engine/provider/ContextProvider/useTodo.js +2 -4
  31. package/es/lowcode/engine/provider/EventBusProvider.js +14 -4
  32. package/es/lowcode/engine/provider/PageProxyProvider.js +95 -0
  33. package/es/lowcode/engine/provider/RemoteSourceProvider.js +10 -12
  34. package/es/lowcode/engine/tools/helper.js +44 -5
  35. package/es/lowcode/engine/tools/initDS.js +4 -4
  36. package/es/lowcode/painter/Design.js +1 -0
  37. package/es/lowcode/painter/DesignOperator.js +129 -27
  38. package/es/lowcode/painter/DesignToolbar.js +88 -173
  39. package/es/lowcode/painter/components/AdvancePanel.js +28 -10
  40. package/es/lowcode/painter/components/TipIcon.js +12 -4
  41. package/es/lowcode/painter/components/field-setting/SettingUI.js +56 -4
  42. package/es/lowcode/painter/components/field-setting/index.js +24 -1
  43. package/es/lowcode/painter/components/shortcut-modal/KeyIcon.js +11 -0
  44. package/es/lowcode/painter/components/shortcut-modal/index.js +208 -0
  45. package/es/lowcode/painter/panel-section/BlockEditor/index.js +10 -19
  46. package/es/lowcode/painter/panel-section/BlocksEditor/index.js +4 -1
  47. package/es/lowcode/painter/panel-section/ConditionCheck.js +0 -1
  48. package/es/lowcode/painter/panel-section/DataSetSelector.js +6 -3
  49. package/es/lowcode/painter/panel-section/FieldsSetting.js +1 -1
  50. package/es/lowcode/painter/panel-section/IconConditionSelector.js +2 -1
  51. package/es/lowcode/painter/panel-section/JSEditor/ToolBar.js +7 -4
  52. package/es/lowcode/painter/panel-section/JSEditor/index.js +15 -5
  53. package/es/lowcode/painter/panel-section/JSEditor/index.less +4 -0
  54. package/es/lowcode/painter/panel-section/ProxyLinker.js +137 -0
  55. package/es/lowcode/painter/panel-section/ProxyParams.js +28 -0
  56. package/es/lowcode/painter/panel-section/ProxyParamsSetter.js +240 -0
  57. package/es/lowcode/painter/style/panel-item.less +1 -0
  58. package/es/lowcode/preview/DebugTool.js +78 -0
  59. package/es/lowcode/preview/DebugToolDetail.js +103 -0
  60. package/es/lowcode/preview/index.js +10 -17
  61. package/es/lowcode/preview/useDebugSettings.js +62 -0
  62. package/es/lowcode/view/Canvas.js +5 -1
  63. package/es/lowcode/view/Page.js +8 -3
  64. package/es/lowcode/view/lc-components/CardList/index.js +3 -0
  65. package/es/lowcode/view/lc-components/Dialog/index.js +9 -7
  66. package/es/lowcode/view/lc-components/Drawer/index.js +2 -0
  67. package/es/lowcode/view/lc-components/FieldDate/meta.json +48 -0
  68. package/es/lowcode/view/lc-components/Form/index.js +3 -0
  69. package/es/lowcode/view/lc-components/Proxy/FunctionDesign.js +17 -0
  70. package/es/lowcode/view/lc-components/Proxy/FunctionLive.js +23 -0
  71. package/es/lowcode/view/lc-components/Proxy/FunctionPreview.js +23 -0
  72. package/es/lowcode/view/lc-components/Proxy/index.js +42 -0
  73. package/es/lowcode/view/lc-components/Proxy/index.less +5 -0
  74. package/es/lowcode/view/lc-components/Proxy/meta.json +66 -0
  75. package/es/lowcode/view/lc-components/Table/components/TopImex.js +5 -23
  76. package/es/lowcode/view/lc-components/Table/index.js +12 -6
  77. package/es/lowcode/view/lc-components/Tabs/index.js +6 -2
  78. package/es/lowcode/view/lc-components/Tree/index.js +3 -0
  79. package/es/lowcode/view/lc-components/Wrapper.js +7 -1
  80. package/es/services.js +25 -7
  81. package/es/utils/action.js +3 -2
  82. package/es/utils/form.js +37 -4
  83. package/es/utils/grid.js +2 -1
  84. package/lib/components/Builder/index.js +36 -26
  85. package/lib/components/ComplexItem/index.js +5 -3
  86. package/lib/components/ComplexItem/service.js +6 -3
  87. package/lib/components/LdAutoForm/index.js +22 -9
  88. package/lib/components/LdCard/index.js +10 -8
  89. package/lib/components/LdCom/index.js +3 -2
  90. package/lib/components/LdFormList/index.js +4 -3
  91. package/lib/components/LdGrid/index.js +29 -20
  92. package/lib/components/LdGridForm/index.js +13 -4
  93. package/lib/components/LdInfoPanel/index.js +15 -9
  94. package/lib/helper/FromItems.js +64 -5
  95. package/lib/helper/form.js +8 -2
  96. package/lib/helper/ldBuilder.js +8 -5
  97. package/lib/helper/ldComBuild.js +14 -9
  98. package/lib/locales/zh-CN.js +40 -4
  99. package/lib/lowcode/constants/api-url.js +204 -175
  100. package/lib/lowcode/constants/event-topics.js +3 -1
  101. package/lib/lowcode/constants/index.js +6 -5
  102. package/lib/lowcode/engine/meta/components-list.json +6 -0
  103. package/lib/lowcode/engine/meta/fielddate.props.default.json +1 -0
  104. package/lib/lowcode/engine/meta/fielddate.props.json +48 -0
  105. package/lib/lowcode/engine/meta/js-editor/auto-complete.json +5 -0
  106. package/lib/lowcode/engine/meta/pagecomponent.props.default.json +8 -0
  107. package/lib/lowcode/engine/meta/pagecomponent.props.json +41 -0
  108. package/lib/lowcode/engine/meta/proxy.props.default.json +15 -0
  109. package/lib/lowcode/engine/meta/proxy.props.json +66 -0
  110. package/lib/lowcode/engine/provider/ContextProvider/index.js +50 -13
  111. package/lib/lowcode/engine/provider/ContextProvider/usePageDataStore.js +37 -31
  112. package/lib/lowcode/engine/provider/ContextProvider/usePageVar.js +10 -4
  113. package/lib/lowcode/engine/provider/ContextProvider/useTodo.js +1 -3
  114. package/lib/lowcode/engine/provider/EventBusProvider.js +14 -4
  115. package/lib/lowcode/engine/provider/PageProxyProvider.js +103 -0
  116. package/lib/lowcode/engine/provider/RemoteSourceProvider.js +10 -12
  117. package/lib/lowcode/engine/tools/helper.js +44 -4
  118. package/lib/lowcode/engine/tools/initDS.js +4 -4
  119. package/lib/lowcode/painter/Design.js +1 -0
  120. package/lib/lowcode/painter/DesignOperator.js +126 -24
  121. package/lib/lowcode/painter/DesignToolbar.js +84 -169
  122. package/lib/lowcode/painter/components/AdvancePanel.js +27 -9
  123. package/lib/lowcode/painter/components/TipIcon.js +12 -4
  124. package/lib/lowcode/painter/components/field-setting/SettingUI.js +55 -3
  125. package/lib/lowcode/painter/components/field-setting/index.js +24 -1
  126. package/lib/lowcode/painter/components/shortcut-modal/KeyIcon.js +18 -0
  127. package/lib/lowcode/painter/components/shortcut-modal/index.js +215 -0
  128. package/lib/lowcode/painter/panel-section/BlockEditor/index.js +9 -18
  129. package/lib/lowcode/painter/panel-section/BlocksEditor/index.js +4 -1
  130. package/lib/lowcode/painter/panel-section/ConditionCheck.js +0 -1
  131. package/lib/lowcode/painter/panel-section/DataSetSelector.js +6 -3
  132. package/lib/lowcode/painter/panel-section/FieldsSetting.js +1 -1
  133. package/lib/lowcode/painter/panel-section/IconConditionSelector.js +2 -1
  134. package/lib/lowcode/painter/panel-section/JSEditor/ToolBar.js +7 -4
  135. package/lib/lowcode/painter/panel-section/JSEditor/index.js +14 -4
  136. package/lib/lowcode/painter/panel-section/JSEditor/index.less +4 -0
  137. package/lib/lowcode/painter/panel-section/ProxyLinker.js +145 -0
  138. package/lib/lowcode/painter/panel-section/ProxyParams.js +35 -0
  139. package/lib/lowcode/painter/panel-section/ProxyParamsSetter.js +248 -0
  140. package/lib/lowcode/painter/style/panel-item.less +1 -0
  141. package/lib/lowcode/preview/DebugTool.js +86 -0
  142. package/lib/lowcode/preview/DebugToolDetail.js +111 -0
  143. package/lib/lowcode/preview/index.js +10 -18
  144. package/lib/lowcode/preview/useDebugSettings.js +69 -0
  145. package/lib/lowcode/view/Canvas.js +5 -1
  146. package/lib/lowcode/view/Page.js +8 -3
  147. package/lib/lowcode/view/lc-components/CardList/index.js +3 -0
  148. package/lib/lowcode/view/lc-components/Dialog/index.js +9 -7
  149. package/lib/lowcode/view/lc-components/Drawer/index.js +2 -0
  150. package/lib/lowcode/view/lc-components/FieldDate/meta.json +48 -0
  151. package/lib/lowcode/view/lc-components/Form/index.js +3 -0
  152. package/lib/lowcode/view/lc-components/Proxy/FunctionDesign.js +24 -0
  153. package/lib/lowcode/view/lc-components/Proxy/FunctionLive.js +30 -0
  154. package/lib/lowcode/view/lc-components/Proxy/FunctionPreview.js +30 -0
  155. package/lib/lowcode/view/lc-components/Proxy/index.js +50 -0
  156. package/lib/lowcode/view/lc-components/Proxy/index.less +5 -0
  157. package/lib/lowcode/view/lc-components/Proxy/meta.json +66 -0
  158. package/lib/lowcode/view/lc-components/Table/components/TopImex.js +4 -22
  159. package/lib/lowcode/view/lc-components/Table/index.js +12 -6
  160. package/lib/lowcode/view/lc-components/Tabs/index.js +5 -1
  161. package/lib/lowcode/view/lc-components/Tree/index.js +3 -0
  162. package/lib/lowcode/view/lc-components/Wrapper.js +6 -0
  163. package/lib/services.js +26 -7
  164. package/lib/utils/action.js +6 -0
  165. package/lib/utils/form.js +38 -4
  166. package/lib/utils/grid.js +2 -1
  167. package/package.json +1 -1
  168. package/es/lowcode/engine/meta/button.api.json +0 -0
  169. package/lib/lowcode/engine/meta/button.api.json +0 -0
@@ -59,14 +59,20 @@ var LdInfoPanel = function LdInfoPanel(_ref) {
59
59
  });
60
60
  });
61
61
  var _columns = (0, _ahooks.useCreation)(function () {
62
- return customColumns ? customColumns.map(function (col) {
63
- var xCol = columns.find(function (column) {
64
- return column.aliaName === col.dataIndex;
65
- }) || {};
66
- return (0, _objectSpread2.default)({
67
- title: xCol.fieldName
68
- }, col);
69
- }) : (0, _lodash.transform)(columns, function (result, item) {
62
+ if ((0, _lodash.isArray)(customColumns)) {
63
+ return customColumns.map(function (col) {
64
+ var xCol = columns.find(function (column) {
65
+ return column.aliaName === col.dataIndex;
66
+ }) || {};
67
+ return (0, _objectSpread2.default)({
68
+ title: xCol.fieldName
69
+ }, col);
70
+ });
71
+ }
72
+ if ((0, _lodash.isFunction)(customColumns)) {
73
+ return customColumns(columns);
74
+ }
75
+ return (0, _lodash.transform)(columns, function (result, item) {
70
76
  if (item.isShowInForm) {
71
77
  result.push({
72
78
  title: item.fieldName,
@@ -111,7 +117,7 @@ Index.propTypes = {
111
117
  // 抑制初始化
112
118
  afterInit: _propTypes.default.func,
113
119
  // 初始化后
114
- customColumns: _propTypes.default.array,
120
+ customColumns: _propTypes.default.oneOfType([_propTypes.default.array, _propTypes.default.func]),
115
121
  defaultParmas: _propTypes.default.object
116
122
  };
117
123
  Index.defaultProps = {
@@ -26,7 +26,7 @@ var _excluded = ["onBlur"],
26
26
  _excluded4 = ["handleValueChange", "config"],
27
27
  _excluded5 = ["onBlur"],
28
28
  _excluded6 = ["handleValueChange", "config"],
29
- _excluded7 = ["onChange"],
29
+ _excluded7 = ["onChange", "format"],
30
30
  _excluded8 = ["handleValueChange", "config"],
31
31
  _excluded9 = ["handleValueChange", "onChange", "params", "extraFilter"],
32
32
  _excluded10 = ["onChange"],
@@ -35,7 +35,7 @@ var _excluded = ["onBlur"],
35
35
  _excluded13 = ["handleValueChange", "config", "allowClear"],
36
36
  _excluded14 = ["renderInfoMode"],
37
37
  _excluded15 = ["onChange"],
38
- _excluded16 = ["handleValueChange", "config", "selectorProps", "suppressSelect"],
38
+ _excluded16 = ["handleValueChange", "config", "selectorProps", "suppressSelect", "auth", "leafOnly"],
39
39
  _excluded17 = ["onClose"],
40
40
  _excluded18 = ["handleValueChange", "config"],
41
41
  _excluded19 = ["onChange"],
@@ -48,6 +48,60 @@ var _excluded = ["onBlur"],
48
48
  _excluded26 = ["handleValueChange", "config"],
49
49
  _excluded27 = ["onChange"],
50
50
  _excluded28 = ["handleValueChange", "config"];
51
+ var data_config = {
52
+ 'YYYY-MM-DD HH:mm:ss': {
53
+ type: 'date',
54
+ showTime: {
55
+ format: 'HH:mm:ss'
56
+ }
57
+ },
58
+ 'YYYY-MM-DD HH:mm': {
59
+ type: 'date',
60
+ showTime: {
61
+ format: 'HH:mm'
62
+ }
63
+ },
64
+ 'YYYY-MM-DD HH': {
65
+ type: 'date',
66
+ showTime: {
67
+ format: 'HH'
68
+ }
69
+ },
70
+ 'YYYY-MM-DD': {
71
+ type: 'date',
72
+ showTime: false
73
+ },
74
+ 'YYYY-MM': {
75
+ type: 'month',
76
+ showTime: false
77
+ },
78
+ 'YYYY-wo': {
79
+ type: 'week',
80
+ showTime: false
81
+ },
82
+ 'YYYY': {
83
+ type: 'year',
84
+ showTime: false
85
+ },
86
+ 'HH:mm:ss': {
87
+ type: 'time',
88
+ showTime: {
89
+ format: 'HH:mm:ss'
90
+ }
91
+ },
92
+ 'HH:mm': {
93
+ type: 'time',
94
+ showTime: {
95
+ format: 'HH:mm'
96
+ }
97
+ },
98
+ 'mm:ss': {
99
+ type: 'time',
100
+ showTime: {
101
+ format: 'mm:ss'
102
+ }
103
+ }
104
+ };
51
105
  var getNumberItem = exports.getNumberItem = function getNumberItem() {
52
106
  var _ref = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
53
107
  handleValueChange = _ref.handleValueChange,
@@ -112,13 +166,14 @@ var getDateItem = exports.getDateItem = function getDateItem() {
112
166
  _ref7$config = _ref7.config,
113
167
  _ref7$config2 = _ref7$config === void 0 ? {} : _ref7$config,
114
168
  _onChange = _ref7$config2.onChange,
169
+ format = _ref7$config2.format,
115
170
  _config = (0, _objectWithoutProperties2.default)(_ref7$config2, _excluded7),
116
171
  props = (0, _objectWithoutProperties2.default)(_ref7, _excluded8);
117
172
  return /*#__PURE__*/_react.default.createElement(_luckDesign.BasicFormItem, (0, _extends2.default)({}, props, {
118
173
  $attrs: (0, _defineProperty2.default)((0, _defineProperty2.default)({}, _constants.LC_COMPONENT_UNIT_KEY, _constants.LC_FORMITEM_UNIT), 'data-__component', 'FieldDate'),
119
174
  type: "datePicker",
120
- config: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, _config), {}, {
121
- type: 'date',
175
+ config: (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, data_config[format]), _config), {}, {
176
+ format: format,
122
177
  onChange: function onChange(date, dateString) {
123
178
  handleValueChange && handleValueChange(date);
124
179
  _onChange && _onChange(date, dateString);
@@ -243,10 +298,14 @@ var getGroupItem = exports.getGroupItem = function getGroupItem(_ref19) {
243
298
  _ref19$selectorProps = _ref19.selectorProps,
244
299
  selectorProps = _ref19$selectorProps === void 0 ? {} : _ref19$selectorProps,
245
300
  suppressSelect = _ref19.suppressSelect,
301
+ _ref19$auth = _ref19.auth,
302
+ auth = _ref19$auth === void 0 ? false : _ref19$auth,
303
+ _ref19$leafOnly = _ref19.leafOnly,
304
+ leafOnly = _ref19$leafOnly === void 0 ? false : _ref19$leafOnly,
246
305
  props = (0, _objectWithoutProperties2.default)(_ref19, _excluded16);
247
306
  return /*#__PURE__*/_react.default.createElement(_base.TreeSelector, (0, _extends2.default)({}, props, {
248
307
  $attrs: (0, _defineProperty2.default)((0, _defineProperty2.default)({}, _constants.LC_COMPONENT_UNIT_KEY, _constants.LC_FORMITEM_UNIT), 'data-__component', 'FieldGroup'),
249
- api: "/api/base/group/sysGroupTree/noAuthReadJurisTree?sclassKey=".concat(props.sclassKey),
308
+ api: "/api/base/group/sysGroupTree/".concat(auth ? 'noAuthReadJurisTree' : 'noAuthReadNoJurisTree', "?sclassKey=").concat(props.sclassKey, "&ex=").concat(escape(leafOnly ? 'ichildren!=0' : '')),
250
309
  selectorProps: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, selectorProps), {}, {
251
310
  suppressSelect: suppressSelect
252
311
  }),
@@ -74,12 +74,18 @@ function translator() {
74
74
  var allConfig = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), JSON.parse(extra || '{}'));
75
75
  var _props = {
76
76
  name: allConfig.aliaName,
77
- label: allConfig.fieldName,
77
+ label: allConfig.fieldAliasName || allConfig.fieldName,
78
78
  config: {
79
79
  required: !!allConfig.isNotNull,
80
- disabled: !!allConfig.isReadOnly
80
+ disabled: !!allConfig.isReadOnly,
81
+ placeholder: allConfig.placeholder,
82
+ rows: allConfig.rows
81
83
  },
82
84
  layout: 'block',
85
+ align: allConfig.align,
86
+ headerAlign: allConfig.headerAlign,
87
+ width: allConfig.width,
88
+ tip: allConfig.tip,
83
89
  col: allConfig.col || 1,
84
90
  row: allConfig.row || 1
85
91
  };
@@ -1,13 +1,12 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
4
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.default = exports.ErrorWrapper = void 0;
9
8
  var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
10
- var _react = _interopRequireWildcard(require("react"));
9
+ var _react = _interopRequireDefault(require("react"));
11
10
  var _styledComponents = _interopRequireDefault(require("styled-components"));
12
11
  var _Builder = require("../components/Builder");
13
12
  var _utils = require("@luck-design-biz/base/utils");
@@ -21,12 +20,15 @@ var builder = function builder(wrapped) {
21
20
  dataSetKey = props.dataSetKey,
22
21
  wrapper = props.wrapper,
23
22
  className = props.className,
24
- style = props.style;
25
- var _ref = (0, _react.useContext)(_Builder.LuckDaContext) || {},
23
+ style = props.style,
24
+ pageProxy = props.pageProxy;
25
+ var _ref = (0, _Builder.useLDCtx)(pageProxy) || {},
26
26
  resources = _ref.resources,
27
27
  actions = _ref.actions,
28
28
  _ref$dataSets = _ref.dataSets,
29
29
  dataSets = _ref$dataSets === void 0 ? [] : _ref$dataSets,
30
+ _ref$moduleUiList = _ref.moduleUiList,
31
+ moduleUiList = _ref$moduleUiList === void 0 ? {} : _ref$moduleUiList,
30
32
  _ref$isTree = _ref.isTree,
31
33
  isTree = _ref$isTree === void 0 ? [] : _ref$isTree,
32
34
  doAction = _ref.doAction,
@@ -67,7 +69,8 @@ var builder = function builder(wrapped) {
67
69
  resources: resources,
68
70
  actions: actions,
69
71
  doAction: doAction,
70
- moduleCode: moduleCode
72
+ moduleCode: moduleCode,
73
+ uiSettings: moduleUiList[dataSetKey] // form和grid的页面配置信息
71
74
  });
72
75
  return wrapped(wrappedProps);
73
76
  };
@@ -16,10 +16,10 @@ var _utils = require("@luck-design-biz/base/utils");
16
16
  var _Builder = require("../components/Builder");
17
17
  var _classnames = _interopRequireDefault(require("classnames"));
18
18
  var _index = _interopRequireDefault(require("./index.less"));
19
- var _excluded = ["$css"],
20
- _excluded2 = ["className", "$css"];
21
- var getResources = exports.getResources = function getResources() {
22
- var _ref = (0, _react.useContext)(_Builder.LuckDaContext) || {},
19
+ var _excluded = ["$css", "pageProxy"],
20
+ _excluded2 = ["className", "$css", "pageProxy"];
21
+ var getResources = exports.getResources = function getResources(pageProxy) {
22
+ var _ref = (0, _Builder.useLDCtx)(pageProxy) || {},
23
23
  _ref$resources = _ref.resources,
24
24
  resources = _ref$resources === void 0 ? [] : _ref$resources;
25
25
  return resources;
@@ -27,26 +27,29 @@ var getResources = exports.getResources = function getResources() {
27
27
  var ldComBuilder = exports.ldComBuilder = function ldComBuilder(Com) {
28
28
  var Component = /*#__PURE__*/(0, _react.forwardRef)(function (_ref2, ref) {
29
29
  var $css = _ref2.$css,
30
+ pageProxy = _ref2.pageProxy,
30
31
  props = (0, _objectWithoutProperties2.default)(_ref2, _excluded);
31
- var resources = getResources();
32
+ var resources = getResources(pageProxy);
32
33
  var hasResources = (0, _ahooks.useCreation)(function () {
33
34
  return (0, _lodash.isNil)(props === null || props === void 0 ? void 0 : props.resource) || (0, _lodash.includes)(resources, props.resource);
34
35
  }, [props === null || props === void 0 ? void 0 : props.resource, resources]);
35
36
  if (hasResources) {
36
37
  return /*#__PURE__*/_react.default.createElement(Com, (0, _extends2.default)({}, props, {
38
+ pageProxy: pageProxy,
37
39
  ref: ref
38
40
  }));
39
41
  }
40
42
  return props.serialEffect === 'hidden' ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null) : /*#__PURE__*/_react.default.createElement(Com, (0, _extends2.default)({}, props, {
41
43
  disabled: true,
44
+ pageProxy: pageProxy,
42
45
  ref: ref
43
46
  }));
44
47
  });
45
48
  return Component;
46
49
  };
47
- var filterOptions = exports.filterOptions = function filterOptions(options) {
48
- var key = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'resource';
49
- var resources = getResources();
50
+ var filterOptions = exports.filterOptions = function filterOptions(options, pageProxy) {
51
+ var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'resource';
52
+ var resources = getResources(pageProxy);
50
53
  return (0, _lodash.intersectionWith)(options, resources, function (arrVal, othVal) {
51
54
  return !arrVal[key] || arrVal[key] === othVal;
52
55
  });
@@ -55,9 +58,11 @@ var deepFilterCom = exports.deepFilterCom = function deepFilterCom(Com, childMar
55
58
  var Component = /*#__PURE__*/(0, _react.forwardRef)(function (_ref3, ref) {
56
59
  var className = _ref3.className,
57
60
  $css = _ref3.$css,
61
+ pageProxy = _ref3.pageProxy,
58
62
  props = (0, _objectWithoutProperties2.default)(_ref3, _excluded2);
59
- var resources = getResources();
63
+ var resources = getResources(pageProxy);
60
64
  var com = /*#__PURE__*/_react.default.createElement(Com, (0, _extends2.default)({}, props, {
65
+ pageProxy: pageProxy,
61
66
  className: (0, _classnames.default)(_index.default.ldLabs, (0, _defineProperty2.default)({}, className, !!className)),
62
67
  ref: ref
63
68
  }));
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.default = void 0;
7
7
  var _default = exports.default = {
8
8
  "luckda.lowcode.view.lc-components.label.all": "全部",
9
+ "luckda.lowcode.view.lc-component.design.show": "请在预览、运行界面查看嵌入的代理页面",
9
10
  "luckda.lowcode.painter.import": "导入",
10
11
  "luckda.lowcode.painter.components.fullscreen-exit.tip": "退出全屏",
11
12
  "luckda.lowcode.painter.components.fullscreen.tip": "全屏",
@@ -13,6 +14,9 @@ var _default = exports.default = {
13
14
  "lc.form.validator.textNum": "个字符",
14
15
  "lc.form.validator.numberBelowMin": "低于最小值",
15
16
  "lc.form.validator.numberExceedMax": "超过最大值",
17
+ "luckda.lowcode.design.toolbar.selectUser": "模拟登录人",
18
+ "luckda.lowcode.design.toolbar.placeholder.selectUser": "请选择模拟登录人",
19
+ "luckda.lowcode.design.toolbar.debugTool": "调试工具",
16
20
  "luckda.lowcode.painter.I18n.empty": "敬请期待",
17
21
  "luckda.lowcode.painter.panel.attrs": "属性",
18
22
  "luckda.lowcode.painter.panel.css": "样式",
@@ -40,11 +44,10 @@ var _default = exports.default = {
40
44
  "luckda.lowcode.design.toolbar.clear": "清除缓存",
41
45
  "luckda.lowcode.not.mobile": "此功能暂未开放",
42
46
  "luckda.lowcode.design.toolbar.pageAttrs": "页面属性",
43
- "luckda.lowcode.design.toolbar.debug": "调试",
47
+ "luckda.lowcode.design.toolbar.shortcut": "快捷键",
44
48
  "luckda.lowcode.design.toolbar.code": "Schema面板",
49
+ "luckda.lowcode.design.toolbar.debug": "调试",
45
50
  "luckda.lowcode.design.toolbar.save": "保存",
46
- "luckda.lowcode.design.toolbar.pagePreview": "页面预览",
47
- "luckda.lowcode.design.toolbar.selectUser": "请选择模拟登录人",
48
51
  "app.base.operate.comfire.leave": "离开当前页面?",
49
52
  "app.base.operate.comfire.message.leave": "系统可能不会保存您所做的更改。",
50
53
  "luckda.lowcode.painter.components.search": "搜索组件",
@@ -82,6 +85,22 @@ var _default = exports.default = {
82
85
  "luckda.lowcode.painter.panel-section.splitdisplay.split": "分割方向",
83
86
  "luckda.lowcode.painter.panel-section.splitdisplay.ratio": "列比例",
84
87
  "luckda.lowcode.painter.panel-section.Layoutratio.placeholder": "请输入列比例",
88
+ "luckda.lowcode.painter.panel-section.proxy-params-setter.param-origin.state": "页面全局状态",
89
+ "luckda.lowcode.painter.panel-section.proxy-params-setter.param-origin.global": "页面全局变量",
90
+ "luckda.lowcode.painter.panel-section.proxy-params-setter.param-origin.url": "页面URL参数",
91
+ "luckda.lowcode.painter.panel-section.proxy-params-setter.param-origin.string": "字符串常量",
92
+ "luckda.lowcode.painter.panel-section.proxy-params-setter.param-origin.num": "数字常量",
93
+ "luckda.lowcode.painter.panel-section.proxy-params-setter.param-origin.bool": "布尔常量",
94
+ "luckda.lowcode.painter.panel-section.proxy-params-setter.param-name": "参数名称",
95
+ "luckda.lowcode.painter.panel-section.proxy-params-setter.warn.param-name": "请输入参数名称",
96
+ "luckda.lowcode.painter.panel-section.proxy-params-setter.param-origin": "参数来源",
97
+ "luckda.lowcode.painter.panel-section.proxy-params-setter.param-value": "值或变量名",
98
+ "luckda.lowcode.painter.panel-section.proxy-params-setter.warn.param-value": "请输入参数值或变量名",
99
+ "luckda.lowcode.painter.panel-section.proxy-params-setter.add": "添加参数",
100
+ "luckda.lowcode.painter.panel-section.proxy-params-setter.save": "保存并返回",
101
+ "luckda.lowcode.painter.panel-section.proxy-linker.add": "新建页面",
102
+ "luckda.lowcode.painter.panel-section.proxy-linker.edit": "编辑页面",
103
+ "luckda.lowcode.painter.panel-section.proxy-linker.sync": "同步数据",
85
104
  "luckda.lowcode.painter.pageVars.var": "变量",
86
105
  "luckda.lowcode.painter.pageVars.api": "远程 API",
87
106
  "luckda.lowcode.painter.pageVars.edit": "编辑数据源",
@@ -198,6 +217,7 @@ var _default = exports.default = {
198
217
  "luckda.lowcode.painter.panel-section.blocksEditor.writer": "行内编辑表格",
199
218
  "luckda.lowcode.painter.panel-section.blocksEditor.uploadForm": "附件列表",
200
219
  "luckda.lowcode.painter.panel-section.blocksEditor.blank": "空白区",
220
+ "luckda.lowcode.painter.panel-section.blocksEditor.defaultBlock": "默认区块",
201
221
  "luckda.lowcode.painter.panel-section.blocksEditor.addBlock": "新增区块",
202
222
  "luckda.lowcode.painter.panel-section.actionsEditor.button": "按钮",
203
223
  "luckda.lowcode.painter.panel-section.actionsEditor.text": "文本",
@@ -253,6 +273,20 @@ var _default = exports.default = {
253
273
  "luckda.lowcode.painter.actionBindModal.params": "配置参数",
254
274
  "luckda.lowcode.painter.actionBindModal.params.info": "请勿随意修改配置参数结构和参数名称,参数异常可能会导致请求失败",
255
275
  "luckda.lowcode.painter.actionBindModal.noActionSelected": "请在右侧选择行为项",
276
+ "luckda.lowcode.design.toolbar.shortcut.save": "保存",
277
+ "luckda.lowcode.design.toolbar.shortcut.preview": "预览调试",
278
+ "luckda.lowcode.design.toolbar.shortcut.undo": "撤销",
279
+ "luckda.lowcode.design.toolbar.shortcut.redo": "重做",
280
+ "luckda.lowcode.design.toolbar.shortcut.copy": "克隆组件",
281
+ "luckda.lowcode.design.toolbar.shortcut.delete": "删除组件",
282
+ "luckda.lowcode.design.toolbar.shortcut.selectParent": "选择父级组件",
283
+ "luckda.lowcode.design.toolbar.shortcut.selectChildren": "选择子级组件",
284
+ "luckda.lowcode.design.toolbar.shortcut.selectLeftBrother": "向左选择兄弟组件",
285
+ "luckda.lowcode.design.toolbar.shortcut.selectRightBrother": "向右选择兄弟组件",
286
+ "luckda.lowcode.design.toolbar.shortcut.moveLeft": "向左移动组件",
287
+ "luckda.lowcode.design.toolbar.shortcut.moveRight": "向右移动组件",
288
+ "luckda.lowcode.design.toolbar.shortcut.general": "常规操作",
289
+ "luckda.lowcode.design.toolbar.shortcut.others": "组件选择和移动",
256
290
  "luckda.lowcode.painter.panel-section.fieldsSetting.align.left": "居左",
257
291
  "luckda.lowcode.painter.panel-section.fieldsSetting.align.center": "居中",
258
292
  "luckda.lowcode.painter.panel-section.fieldsSetting.align.right": "居右",
@@ -275,6 +309,7 @@ var _default = exports.default = {
275
309
  "luckda.lowcode.painter.panel-section.fieldsSetting.form.display": "表单中显示",
276
310
  "luckda.lowcode.painter.panel-section.fieldsSetting.writable": "是否可写",
277
311
  "luckda.lowcode.painter.panel-section.fieldsSetting.readonly": "是否只读",
312
+ "luckda.lowcode.painter.panel-section.fieldsSetting.dateFormat": "日期格式",
278
313
  "luckda.lowcode.painter.panel-section.fieldsSetting.render": "内容定制渲染",
279
314
  "luckda.lowcode.painter.panel-section.fieldsSetting.defaultValue": "默认值",
280
315
  "luckda.lowcode.painter.settingTo": "设置为",
@@ -300,5 +335,6 @@ var _default = exports.default = {
300
335
  "luckda.lowcode.painter.panel-section.fieldsSetting.checkRules.message.verifyType": "请选择校验规则",
301
336
  "luckda.lowcode.painter.panel-section.fieldsSetting.checkRules.errorMsg": "错误提示",
302
337
  "luckda.lowcode.painter.panel-section.fieldsSetting.checkRules.message.errorMsg": "请输入错误提示",
303
- "luckda.lowcode.painter.panel-section.fieldsSetting.checkRules.logic": "校验逻辑"
338
+ "luckda.lowcode.painter.panel-section.fieldsSetting.checkRules.logic": "校验逻辑",
339
+ "luckda.lowcode.view.lc-component.design.nocode": "缺少页面代理编码配置"
304
340
  };