@steedos-widgets/amis-object 6.3.0-beta.21 → 6.3.0-beta.23

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.
@@ -19,6 +19,7 @@ export declare const AmisInputTable: (props: any) => Promise<{
19
19
  pipeIn: (value: any, data: any) => any;
20
20
  pipeOut: (value: any, data: any) => any;
21
21
  required: any;
22
+ description: any;
22
23
  }[];
23
24
  id: string;
24
25
  className: string;
@@ -678,6 +678,9 @@ fieldset.antd-Collapse > legend{
678
678
  .ml-2 {
679
679
  margin-left: 0.5rem
680
680
  }
681
+ .ml-3 {
682
+ margin-left: 0.75rem
683
+ }
681
684
  .ml-4 {
682
685
  margin-left: 1rem
683
686
  }
@@ -2171,6 +2174,9 @@ body.steedos {
2171
2174
  margin-top: -6px;
2172
2175
  }
2173
2176
  }
2177
+ .steedos-object-listview .antd-Wrapper .steedos-listview-change-button .antd-DropDown-menu .antd-DropDown-groupTitle {
2178
+ padding: 0;
2179
+ }
2174
2180
  .steedos-object-listview .antd-Wrapper .steedos-listview-change-button .antd-DropDown-menu li > .antd-Action {
2175
2181
  width: 100%;
2176
2182
  }
@@ -2182,9 +2188,6 @@ body.steedos {
2182
2188
  font-weight: 400;
2183
2189
  font-size: 13px;
2184
2190
  }
2185
- .steedos-object-listview .antd-Wrapper .steedos-listview-change-button .antd-DropDown-menu .steedos-listview-new-button {
2186
- border-top: 0.0625rem solid #ededef;
2187
- }
2188
2191
  .steedos-object-listview .antd-Wrapper .steedos-listview-change-button .antd-DropDown-menu li:hover .steedos-listview-edit-button {
2189
2192
  visibility: visible;
2190
2193
  }
@@ -10112,7 +10112,7 @@ function getObjectListHeaderFirstLine(objectSchema, listViewName, ctx) {
10112
10112
  },
10113
10113
  {
10114
10114
  "type": "button",
10115
- "className": "steedos-listview-edit-button",
10115
+ "className": "steedos-listview-edit-button ml-3",
10116
10116
  "icon": "fa fa-edit",
10117
10117
  "actionType": "dialog",
10118
10118
  "hiddenOn": `!((global.user.is_space_admin || global.userId == '${listView.owner || ""}') && !!'${listView.owner || ""}')`,
@@ -10547,6 +10547,13 @@ function getObjectListHeaderFirstLine(objectSchema, listViewName, ctx) {
10547
10547
  "btnClassName": "!bg-transparent !border-none !hover:border-none text-lg h-5 font-bold p-0 text-black leading-none",
10548
10548
  "buttons": [
10549
10549
  ...listViewButtonOptions,
10550
+ {
10551
+ "children": [
10552
+ {
10553
+ "type": "divider"
10554
+ }
10555
+ ]
10556
+ },
10550
10557
  listviewNewButton
10551
10558
  ]
10552
10559
  }
@@ -17342,7 +17349,7 @@ function uuidv4() {
17342
17349
  * @Author: 殷亮辉 yinlianghui@hotoa.com
17343
17350
  * @Date: 2023-11-15 09:50:22
17344
17351
  * @LastEditors: 殷亮辉 yinlianghui@hotoa.com
17345
- * @LastEditTime: 2024-03-02 16:07:17
17352
+ * @LastEditTime: 2024-06-14 06:31:33
17346
17353
  */
17347
17354
 
17348
17355
  /**
@@ -17561,7 +17568,8 @@ function getInputTableCell(field, showAsInlineEditMode) {
17561
17568
  return {
17562
17569
  "type": "steedos-field",
17563
17570
  "config": Object.assign({}, field, {
17564
- label: false
17571
+ label: false,
17572
+ description: null
17565
17573
  }),
17566
17574
  // quickEdit: {
17567
17575
  // "type": "steedos-field",
@@ -17578,7 +17586,8 @@ function getInputTableCell(field, showAsInlineEditMode) {
17578
17586
  return {
17579
17587
  "type": "steedos-field",
17580
17588
  "config": Object.assign({}, field, {
17581
- label: false
17589
+ label: false,
17590
+ description: null
17582
17591
  }),
17583
17592
  inInputTable: true,
17584
17593
  "static": true,
@@ -18412,6 +18421,7 @@ async function getButtonActions(props, mode) {
18412
18421
  "__parentForm": mode == "new" ? "$$" : parentFormData,
18413
18422
  "_master": "${_master}",
18414
18423
  "global": "${global}",
18424
+ "context": "${context}",
18415
18425
  "uiSchema": "${uiSchema}",
18416
18426
  "index": "${index}",//amis组件自带行索引,在节点嵌套情况下,当前节点如果是children属性下的子节点时,这里的index是当前节点在children中的索引,而不是外层父节点的index
18417
18427
  "parent": "${__super.parent}",//amis组件自带父节点数据域数据,即节点嵌套情况下,当前节点为某个节点(比如A节点)的children属性下的子节点时,当前节点的父节点(即A节点)的数据域数据
@@ -18536,6 +18546,7 @@ async function getButtonActions(props, mode) {
18536
18546
  "__parentForm": parentFormData,
18537
18547
  "_master": "${_master}",
18538
18548
  "global": "${global}",
18549
+ "context": "${context}",
18539
18550
  "uiSchema": "${uiSchema}",
18540
18551
  "index": "${index}",
18541
18552
  "parent": "${__super.parent}",//amis组件自带父节点数据域数据,即节点嵌套情况下,当前节点为某个节点(比如A节点)的children属性下的子节点时,当前节点的父节点(即A节点)的数据域数据
@@ -18822,7 +18833,8 @@ const getAmisInputTableSchema = async (props) => {
18822
18833
  }
18823
18834
  return value;
18824
18835
  },
18825
- "required": props.required
18836
+ "required": props.required,
18837
+ "description": props.description
18826
18838
  };
18827
18839
  if (buttonsForColumnOperations.length) {
18828
18840
  inputTableSchema.columns.unshift({
@@ -24454,7 +24466,7 @@ var AmisSteedosField = function (props) { return __awaiter(void 0, void 0, void
24454
24466
  case 14:
24455
24467
  if (!fStatic) return [3 /*break*/, 28];
24456
24468
  if (!props.data.hasOwnProperty("_display")) return [3 /*break*/, 16];
24457
- return [4 /*yield*/, index.convertSFieldToAmisField(steedosField, readonly, ctx)];
24469
+ return [4 /*yield*/, index.convertSFieldToAmisField(steedosField, true, ctx)];
24458
24470
  case 15:
24459
24471
  fieldSchema = _5.sent();
24460
24472
  if (steedosField.type === 'file' && fieldSchema.disabled) {
@@ -24608,7 +24620,7 @@ var AmisSteedosField = function (props) { return __awaiter(void 0, void 0, void
24608
24620
  return [3 /*break*/, 27];
24609
24621
  case 24:
24610
24622
  if (!(steedosField.type === "file")) return [3 /*break*/, 26];
24611
- return [4 /*yield*/, index.convertSFieldToAmisField(steedosField, readonly, ctx)];
24623
+ return [4 /*yield*/, index.convertSFieldToAmisField(steedosField, true, ctx)];
24612
24624
  case 25:
24613
24625
  // 附件static模式先保持原来的逻辑,依赖_display,审批王中相关功能在creator中
24614
24626
  // convertSFieldToAmisField中会合并steedosField.amis,所以也不需要再次合并steedosField.amis,直接return就好
@@ -24991,7 +25003,7 @@ var AmisInputTable = function (props) { return __awaiter(void 0, void 0, void 0,
24991
25003
  return __generator(this, function (_a) {
24992
25004
  switch (_a.label) {
24993
25005
  case 0:
24994
- props.$schema, props.fields, props.name, props.id, props.data, props.columns, props.amis, props.className, props.tableClassName, props.headerToolbar, props.footerToolbar, props.inlineEditMode, props.strictMode, props.dialog, props.primaryKey, props.showOperation, props.fieldPrefix, props.autoGeneratePrimaryKeyValue, props.mode, props.disabledOn, props.disabled, props.visibleOn, props.visible, props.hiddenOn, props.hidden, props.enableDialog, props.enableTree;
25006
+ props.$schema, props.fields, props.name, props.id, props.data, props.columns, props.amis, props.className, props.tableClassName, props.headerToolbar, props.footerToolbar, props.inlineEditMode, props.strictMode, props.dialog, props.primaryKey, props.showOperation, props.fieldPrefix, props.autoGeneratePrimaryKeyValue, props.mode, props.disabledOn, props.disabled, props.visibleOn, props.visible, props.hiddenOn, props.hidden, props.enableDialog, props.enableTree, props.description;
24995
25007
  extendProps = {};
24996
25008
  if (props.disabledOn || props.disabled) {
24997
25009
  extendProps["addable"] = false;