@steedos-widgets/amis-object 6.3.0-beta.22 → 6.3.0-beta.24

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
  }
@@ -1826,6 +1829,9 @@ fieldset.antd-Collapse > legend{
1826
1829
  .antd-Crud .antd-Table tbody td > .antd-Form-static {
1827
1830
  display: inline;
1828
1831
  }
1832
+ .antd-Crud .antd-Table tbody td > .antd-Form-static .antd-Form-control {
1833
+ display: inline;
1834
+ }
1829
1835
  @media (max-height: 780px) {
1830
1836
  .steedos-table-quickEdit .antd-Select-menu {
1831
1837
  max-height: 30vh;
@@ -2171,6 +2177,9 @@ body.steedos {
2171
2177
  margin-top: -6px;
2172
2178
  }
2173
2179
  }
2180
+ .steedos-object-listview .antd-Wrapper .steedos-listview-change-button .antd-DropDown-menu .antd-DropDown-groupTitle {
2181
+ padding: 0;
2182
+ }
2174
2183
  .steedos-object-listview .antd-Wrapper .steedos-listview-change-button .antd-DropDown-menu li > .antd-Action {
2175
2184
  width: 100%;
2176
2185
  }
@@ -2182,9 +2191,6 @@ body.steedos {
2182
2191
  font-weight: 400;
2183
2192
  font-size: 13px;
2184
2193
  }
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
2194
  .steedos-object-listview .antd-Wrapper .steedos-listview-change-button .antd-DropDown-menu li:hover .steedos-listview-edit-button {
2189
2195
  visibility: visible;
2190
2196
  }
@@ -4440,7 +4440,7 @@ async function getLookupLinkOnClick$1(field, options) {
4440
4440
  }
4441
4441
  }
4442
4442
 
4443
- const getAmisFileReadonlySchema = async (steedosField,ctx)=>{
4443
+ const getAmisFileReadonlySchema = async (steedosField,ctx = {})=>{
4444
4444
  const type = steedosField.type;
4445
4445
  const { appId, formFactor } = ctx.amisData || {};
4446
4446
  const amisFieldType = getAmisFieldType$1(steedosField, true);
@@ -5599,7 +5599,7 @@ async function getTableColumns$1(object, fields, options){
5599
5599
  toggled: field.toggled,
5600
5600
  static: true,
5601
5601
  className,
5602
- ...getAmisFileReadonlySchema(field)
5602
+ ...await getAmisFileReadonlySchema(field)
5603
5603
  }, fieldAmis, {name: field.name});
5604
5604
  }
5605
5605
  else if(field.type === 'select'){
@@ -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
  }
@@ -15148,7 +15155,7 @@ async function lookupToAmisPicker(field, readonly, ctx){
15148
15155
  }
15149
15156
 
15150
15157
  var fieldFilters = ${JSON.stringify(field.filters)};
15151
- var currentAmis = amisRequire('amis');
15158
+ var currentAmis = (window.amisRequire && window.amisRequire('amis')) || Amis;
15152
15159
  //递归fieldFilters数组,检查每一个元素,判断若是公式,就仅把它解析
15153
15160
  function traverseNestedArray(arr) {
15154
15161
  for (let i = 0; i < arr.length; i++) {
@@ -15569,7 +15576,7 @@ async function lookupToAmisSelect(field, readonly, ctx){
15569
15576
  // }
15570
15577
 
15571
15578
  var fieldFilters = ${JSON.stringify(field.filters)};
15572
- var currentAmis = amisRequire('amis');
15579
+ var currentAmis = (window.amisRequire && window.amisRequire('amis')) || Amis;
15573
15580
  //递归fieldFilters数组,检查每一个元素,判断若是公式,就仅把它解析
15574
15581
  function traverseNestedArray(arr) {
15575
15582
  for (let i = 0; i < arr.length; i++) {
@@ -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-06-11 15:38:16
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,
@@ -18824,7 +18833,8 @@ const getAmisInputTableSchema = async (props) => {
18824
18833
  }
18825
18834
  return value;
18826
18835
  },
18827
- "required": props.required
18836
+ "required": props.required,
18837
+ "description": props.description
18828
18838
  };
18829
18839
  if (buttonsForColumnOperations.length) {
18830
18840
  inputTableSchema.columns.unshift({
@@ -24993,7 +25003,7 @@ var AmisInputTable = function (props) { return __awaiter(void 0, void 0, void 0,
24993
25003
  return __generator(this, function (_a) {
24994
25004
  switch (_a.label) {
24995
25005
  case 0:
24996
- 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;
24997
25007
  extendProps = {};
24998
25008
  if (props.disabledOn || props.disabled) {
24999
25009
  extendProps["addable"] = false;