@steedos-widgets/amis-object 6.10.1-beta.42 → 6.10.1-beta.44

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.
@@ -3287,6 +3287,9 @@ body.sidebar #sidebar {
3287
3287
  }
3288
3288
 
3289
3289
 
3290
+ form[name="instanceForm"] .sfield-item {
3291
+ margin-bottom: var(--Form-item-gap) !important;
3292
+ }
3290
3293
 
3291
3294
  .steedos-record-selected {
3292
3295
  background: var(--Table-onChecked-bg) !important;
@@ -5034,22 +5034,15 @@ var zh_cn = {
5034
5034
  };
5035
5035
 
5036
5036
  const resources = {
5037
- "en-US": {
5037
+ "en": {
5038
5038
  translation: en_us
5039
5039
  },
5040
5040
  "zh-CN": {
5041
5041
  translation: zh_cn
5042
5042
  }
5043
5043
  };
5044
- var locale = "zh-CN";
5045
- if (typeof window != 'undefined') {
5046
- if (window.Builder?.settings.locale == "en-us") {
5047
- locale = "en-US";
5048
- } else if (window.Builder?.settings.locale == "zh-cn") {
5049
- locale = "zh-CN";
5050
- }
5051
- }
5052
5044
 
5045
+ var locale = window.navigator.language;
5053
5046
 
5054
5047
  instance
5055
5048
  .use(initReactI18next)
@@ -28565,6 +28558,7 @@ var createFieldFunction = function (type) {
28565
28558
  if (_$1.has(props, '$$editor')) {
28566
28559
  delete schema_1.visibleOn;
28567
28560
  }
28561
+ schema_1.className = "sfield-item sfield-item-".concat(props.config.type, " ").concat(schema_1.className || '');
28568
28562
  return [2 /*return*/, schema_1];
28569
28563
  }
28570
28564
  return [4 /*yield*/, AmisSteedosField(props)];
@@ -28573,6 +28567,7 @@ var createFieldFunction = function (type) {
28573
28567
  if (_$1.has(props, '$$editor')) {
28574
28568
  delete schema.visibleOn;
28575
28569
  }
28570
+ schema.className = "sfield-item sfield-item-".concat(props.config.type, " ").concat(schema.className || '');
28576
28571
  return [2 /*return*/, schema];
28577
28572
  }
28578
28573
  });