@steedos-widgets/amis-object 3.6.7-beta.3 → 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.
@@ -21580,7 +21580,7 @@ var AmisObjectListView = function (props) { return __awaiter(void 0, void 0, voi
21580
21580
  "actions": [
21581
21581
  {
21582
21582
  "args": {
21583
- "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}",
21584
21584
  "blank": false
21585
21585
  },
21586
21586
  "actionType": "link",
@@ -23368,7 +23368,7 @@ var REFERENCE_VALUE_ITEM_ONCLICK = {
23368
23368
  }
23369
23369
  };
23370
23370
  var AmisSteedosField = function (props) { return __awaiter(void 0, void 0, void 0, function () {
23371
- 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;
23372
23372
  var _e, e_1, _f;
23373
23373
  var _g, _h, _j, _k, _l, _m;
23374
23374
  return __generator(this, function (_o) {
@@ -23463,19 +23463,15 @@ var AmisSteedosField = function (props) { return __awaiter(void 0, void 0, void
23463
23463
  case 3:
23464
23464
  fieldRefObject = _o.sent();
23465
23465
  if (!(props.data._display && _$1.has(props.data._display, steedosField.name))) return [3 /*break*/, 4];
23466
- disPlayValue = _$1.get(props.data._display, steedosField.name);
23467
- if (disPlayValue) {
23468
- if (!_$1.isArray(disPlayValue) && _$1.isObject(disPlayValue)) {
23469
- disPlayValue = [disPlayValue];
23470
- }
23471
- fieldBaseProps = Object.assign({}, fieldBaseProps, {
23472
- type: 'control',
23473
- name: null,
23474
- body: {
23466
+ fieldBaseProps = Object.assign({}, fieldBaseProps, {
23467
+ type: 'control',
23468
+ name: null,
23469
+ body: [{
23475
23470
  type: 'wrapper',
23476
23471
  className: "steedos-field-lookup-wrapper p-0",
23477
23472
  "wrapWithPanel": false,
23478
23473
  "actions": [],
23474
+ visibleOn: "${_display.".concat(steedosField.name, "}"),
23479
23475
  body: [
23480
23476
  {
23481
23477
  type: 'each',
@@ -23516,12 +23512,14 @@ var AmisSteedosField = function (props) { return __awaiter(void 0, void 0, void
23516
23512
  }
23517
23513
  }
23518
23514
  ]
23519
- }
23520
- });
23521
- }
23522
- else {
23523
- fieldBaseProps = Object.assign({}, fieldBaseProps, { type: 'static', tpl: '-', className: "".concat(fieldBaseProps.className || '', " text-muted") });
23524
- }
23515
+ },
23516
+ {
23517
+ type: 'static',
23518
+ tpl: '-',
23519
+ className: "".concat(fieldBaseProps.className || '', " text-muted"),
23520
+ hiddenOn: "${_display.".concat(steedosField.name, "}"),
23521
+ }]
23522
+ });
23525
23523
  return [3 /*break*/, 6];
23526
23524
  case 4: return [4 /*yield*/, env.fetcher(source, props.data)];
23527
23525
  case 5: