@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.
@@ -21552,7 +21552,7 @@ var AmisObjectListView = function (props) { return __awaiter(void 0, void 0, voi
21552
21552
  "actions": [
21553
21553
  {
21554
21554
  "args": {
21555
- "url": "/app/${appId}/${objectName}/view/${event.data.result.data.recordId}?side_object=${objectName}&side_listview_id=${listName}",
21555
+ "link": "/app/${appId}/${objectName}/view/${event.data.result.data.recordId}?side_object=${objectName}&side_listview_id=${listName}",
21556
21556
  "blank": false
21557
21557
  },
21558
21558
  "actionType": "link",
@@ -23340,7 +23340,7 @@ var REFERENCE_VALUE_ITEM_ONCLICK = {
23340
23340
  }
23341
23341
  };
23342
23342
  var AmisSteedosField = function (props) { return __awaiter(void 0, void 0, void 0, function () {
23343
- 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;
23343
+ 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;
23344
23344
  var _e, e_1, _f;
23345
23345
  var _g, _h, _j, _k, _l, _m;
23346
23346
  return __generator(this, function (_o) {
@@ -23435,19 +23435,15 @@ var AmisSteedosField = function (props) { return __awaiter(void 0, void 0, void
23435
23435
  case 3:
23436
23436
  fieldRefObject = _o.sent();
23437
23437
  if (!(props.data._display && has(props.data._display, steedosField.name))) return [3 /*break*/, 4];
23438
- disPlayValue = get$1(props.data._display, steedosField.name);
23439
- if (disPlayValue) {
23440
- if (!isArray(disPlayValue) && isObject$1(disPlayValue)) {
23441
- disPlayValue = [disPlayValue];
23442
- }
23443
- fieldBaseProps = Object.assign({}, fieldBaseProps, {
23444
- type: 'control',
23445
- name: null,
23446
- body: {
23438
+ fieldBaseProps = Object.assign({}, fieldBaseProps, {
23439
+ type: 'control',
23440
+ name: null,
23441
+ body: [{
23447
23442
  type: 'wrapper',
23448
23443
  className: "steedos-field-lookup-wrapper p-0",
23449
23444
  "wrapWithPanel": false,
23450
23445
  "actions": [],
23446
+ visibleOn: "${_display.".concat(steedosField.name, "}"),
23451
23447
  body: [
23452
23448
  {
23453
23449
  type: 'each',
@@ -23488,12 +23484,14 @@ var AmisSteedosField = function (props) { return __awaiter(void 0, void 0, void
23488
23484
  }
23489
23485
  }
23490
23486
  ]
23491
- }
23492
- });
23493
- }
23494
- else {
23495
- fieldBaseProps = Object.assign({}, fieldBaseProps, { type: 'static', tpl: '-', className: "".concat(fieldBaseProps.className || '', " text-muted") });
23496
- }
23487
+ },
23488
+ {
23489
+ type: 'static',
23490
+ tpl: '-',
23491
+ className: "".concat(fieldBaseProps.className || '', " text-muted"),
23492
+ hiddenOn: "${_display.".concat(steedosField.name, "}"),
23493
+ }]
23494
+ });
23497
23495
  return [3 /*break*/, 6];
23498
23496
  case 4: return [4 /*yield*/, env.fetcher(source, props.data)];
23499
23497
  case 5: