@steedos-widgets/amis-object 3.6.7-beta.2 → 3.6.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.
@@ -14334,6 +14334,7 @@ async function lookupToAmisPicker(field, readonly, ctx){
14334
14334
  Object.assign({}, refObjectConfig.fields[column.field], {
14335
14335
  width: column.width,
14336
14336
  wrap: column.wrap,
14337
+ amis: column.amis
14337
14338
  })
14338
14339
  );
14339
14340
  }
@@ -21579,7 +21580,7 @@ var AmisObjectListView = function (props) { return __awaiter(void 0, void 0, voi
21579
21580
  "actions": [
21580
21581
  {
21581
21582
  "args": {
21582
- "url": "/app/${appId}/${objectName}/view/${event.data.result.data.recordId}?side_object=${objectName}&side_listview_id=${listName}",
21583
+ "link": "/app/${appId}/${objectName}/view/${event.data.result.data.recordId}?side_object=${objectName}&side_listview_id=${listName}",
21583
21584
  "blank": false
21584
21585
  },
21585
21586
  "actionType": "link",
@@ -23367,7 +23368,7 @@ var REFERENCE_VALUE_ITEM_ONCLICK = {
23367
23368
  }
23368
23369
  };
23369
23370
  var AmisSteedosField = function (props) { return __awaiter(void 0, void 0, void 0, function () {
23370
- var steedosField, field, _a, readonly, _b, ctx, config, fStatic, env, inInputTable, className, lookupATagClick, defaultSource, source, fieldBaseProps, referenceTo_1, fieldValue, fieldRefObject, disPlayValue, res, valueOptions_1, fieldValue, values, disPlayValue_1, schema, fieldSchema, fieldValue, hasImageOrFile_1, fieldHtml_1, schema, map, tableFields, _c, _d, subField, subFieldName, fieldAmis, schema, error_1;
23371
+ var steedosField, field, _a, readonly, _b, ctx, config, fStatic, env, inInputTable, className, lookupATagClick, defaultSource, source, fieldBaseProps, referenceTo_1, fieldValue, fieldRefObject, res, valueOptions_1, fieldValue, values, disPlayValue_1, schema, fieldSchema, fieldValue, hasImageOrFile_1, fieldHtml_1, schema, map, tableFields, _c, _d, subField, subFieldName, fieldAmis, schema, error_1;
23371
23372
  var _e, e_1, _f;
23372
23373
  var _g, _h, _j, _k, _l, _m;
23373
23374
  return __generator(this, function (_o) {
@@ -23462,19 +23463,15 @@ var AmisSteedosField = function (props) { return __awaiter(void 0, void 0, void
23462
23463
  case 3:
23463
23464
  fieldRefObject = _o.sent();
23464
23465
  if (!(props.data._display && _$1.has(props.data._display, steedosField.name))) return [3 /*break*/, 4];
23465
- disPlayValue = _$1.get(props.data._display, steedosField.name);
23466
- if (disPlayValue) {
23467
- if (!_$1.isArray(disPlayValue) && _$1.isObject(disPlayValue)) {
23468
- disPlayValue = [disPlayValue];
23469
- }
23470
- fieldBaseProps = Object.assign({}, fieldBaseProps, {
23471
- type: 'control',
23472
- name: null,
23473
- body: {
23466
+ fieldBaseProps = Object.assign({}, fieldBaseProps, {
23467
+ type: 'control',
23468
+ name: null,
23469
+ body: [{
23474
23470
  type: 'wrapper',
23475
23471
  className: "steedos-field-lookup-wrapper p-0",
23476
23472
  "wrapWithPanel": false,
23477
23473
  "actions": [],
23474
+ visibleOn: "${_display.".concat(steedosField.name, "}"),
23478
23475
  body: [
23479
23476
  {
23480
23477
  type: 'each',
@@ -23515,12 +23512,14 @@ var AmisSteedosField = function (props) { return __awaiter(void 0, void 0, void
23515
23512
  }
23516
23513
  }
23517
23514
  ]
23518
- }
23519
- });
23520
- }
23521
- else {
23522
- fieldBaseProps = Object.assign({}, fieldBaseProps, { type: 'static', tpl: '-', className: "".concat(fieldBaseProps.className || '', " text-muted") });
23523
- }
23515
+ },
23516
+ {
23517
+ type: 'static',
23518
+ tpl: '-',
23519
+ className: "".concat(fieldBaseProps.className || '', " text-muted"),
23520
+ hiddenOn: "${_display.".concat(steedosField.name, "}"),
23521
+ }]
23522
+ });
23524
23523
  return [3 /*break*/, 6];
23525
23524
  case 4: return [4 /*yield*/, env.fetcher(source, props.data)];
23526
23525
  case 5: