@steedos-widgets/amis-object 6.3.11 → 6.3.12-beta.2

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.
@@ -27010,7 +27010,7 @@ function generateRandomString$1(length) {
27010
27010
  return _$1.sampleSize(characters, length).join('');
27011
27011
  }
27012
27012
  var AmisSteedosField = function (props) { return __awaiter(void 0, void 0, void 0, function () {
27013
- var steedosField, field, _a, readonly, _b, ctx, config, fStatic, env, inInputTable, className, _c, appId, formFactor, editorClassName, lookupATagClick, defaultSource, source, fieldBaseProps, referenceTo_1, fieldValue, fieldRefObject, _d, _e, _f, _g, res, valueOptions_1, fieldValue, values, disPlayValue_1, _h, _j, _k, _l, schema, fieldSchema, fieldValue, hasImageOrFile_1, fieldHtml_1, schema, map, tableFields, _m, _o, subField, subFieldName, fieldAmis, schema, error_1;
27013
+ var steedosField, field, _a, readonly, _b, ctx, config, fStatic, env, inInputTable, className, _c, appId, formFactor, editorClassName, lookupATagClick, defaultSource, source, fieldBaseProps, referenceTo_1, fieldValue, fieldRefObject, _d, _e, _f, _g, res, valueOptions_1, fieldValue, values, disPlayValue_1, _h, _j, _k, _l, schema, fieldSchema, fieldValue, fieldHtml_1, schema, map, tableFields, _m, _o, subField, subFieldName, fieldAmis, schema, error_1;
27014
27014
  var _p, _q, _r, _s, _t, _u, _v, _w, _x, e_1, _y;
27015
27015
  var _z, _0, _1, _2, _3, _4, _5;
27016
27016
  return __generator(this, function (_6) {
@@ -27342,18 +27342,11 @@ var AmisSteedosField = function (props) { return __awaiter(void 0, void 0, void
27342
27342
  if (steedosField.type === 'file' && fieldSchema.disabled) {
27343
27343
  fieldValue = fieldSchema.value;
27344
27344
  if (fieldValue && fieldValue.length) {
27345
- hasImageOrFile_1 = false;
27346
27345
  _$1.forEach(fieldValue, function (item) {
27347
27346
  var fileName = item.name;
27348
27347
  var match = fileName.match(/\.([^\.]+)$/);
27349
- var fileType = match ? match[0] : '';
27350
- if ([".pdf", ".jpg", ".jpeg", ".png", ".gif"].indexOf(fileType) > -1) {
27351
- hasImageOrFile_1 = true;
27352
- }
27348
+ match ? match[0] : '';
27353
27349
  });
27354
- if (!hasImageOrFile_1) {
27355
- return [2 /*return*/, fieldSchema];
27356
- }
27357
27350
  fieldHtml_1 = "";
27358
27351
  _$1.forEach(fieldValue, function (item) {
27359
27352
  var fileName = item.name;