vap1 0.7.5 → 0.7.6

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.
@@ -104,8 +104,9 @@ exports.InnerSearchBarByField = (0, react_1.forwardRef)(function (props, ref) {
104
104
  if (props.fields == undefined || !lodash_1.default.isArray(props.fields) || props.fields.length == 0)
105
105
  return 3;
106
106
  if (props.__innnerPopup) {
107
- if (props.fields.length < 6)
108
- return 1;
107
+ if (props.fields.length < 6) {
108
+ return lodash_1.default.max(props.fields.map(function (item) { return (0, _register_1.getSearchField)(item.type).defaultSpan || 1; }));
109
+ }
109
110
  return 2;
110
111
  }
111
112
  ;
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"vap1","version":"0.7.5","description":"vap1, Both support MicroService and SAP FrameWork, Support IE>9","main":"index.js","author":"Xiang da","license":"ISC"}
1
+ {"name":"vap1","version":"0.7.6","description":"vap1, Both support MicroService and SAP FrameWork, Support IE>9","main":"index.js","author":"Xiang da","license":"ISC"}
@@ -35,6 +35,8 @@ var ExpressionDescriptor = /** @class */ (function () {
35
35
  var yearDesc = this.getYearDescription();
36
36
  description += dayOfMonthDesc + dayOfWeekDesc + timeSegment + monthDesc + yearDesc;
37
37
  description = this.transformVerbosity(description, !!this.options.verbose);
38
+ // Remove leading comma and space if present
39
+ description = description.replace(/^,\s*/, '');
38
40
  // uppercase first character
39
41
  description = description.charAt(0).toLocaleUpperCase() + description.substr(1);
40
42
  }