@steedos-widgets/sortable 1.3.22-beta.1 → 1.3.22-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.
@@ -58177,7 +58177,8 @@ function getObjectFooterToolbar(mainObject, formFactor, options) {
58177
58177
  {
58178
58178
  "type": "pagination",
58179
58179
  "maxButtons": 5,
58180
- "showPageInput": false
58180
+ "showPageInput": true,
58181
+ "layout": "total,pager,go"
58181
58182
  }
58182
58183
  ]
58183
58184
  }
@@ -59937,6 +59938,19 @@ function getGridFieldSubFields(mainField, fields){
59937
59938
  return newMainField;
59938
59939
  }
59939
59940
 
59941
+ function getTabledFieldSubFields(mainField, fields){
59942
+ const newMainField = Object.assign({subFields: []}, mainField);
59943
+ const subFields = lodash.exports.filter(fields, function(field){
59944
+ let result = field.name.startsWith(`${mainField.name}.`);
59945
+ if(result){
59946
+ field._prefix = `${mainField.name}.`;
59947
+ }
59948
+ return result;
59949
+ });
59950
+ newMainField.subFields = subFields;
59951
+ return newMainField;
59952
+ }
59953
+
59940
59954
 
59941
59955
  function getSelectFieldOptions(field){
59942
59956
  const dataType = field.data_type || 'text';
@@ -60065,7 +60079,16 @@ async function convertSFieldToAmisField(field, readonly, ctx) {
60065
60079
  format:'YYYY-MM-DDT00:00:00.000[Z]',
60066
60080
  tpl: readonly ? getDateTpl(field) : null,
60067
60081
  // utc: true,
60068
- joinValues: false
60082
+ joinValues: false,
60083
+ "shortcuts": [
60084
+ "thismonth",
60085
+ "2monthsago",
60086
+ "3monthslater",
60087
+ "prevquarter",
60088
+ "thisquarter",
60089
+ "thisyear",
60090
+ "lastYear"
60091
+ ]
60069
60092
  };
60070
60093
  break;
60071
60094
  case 'date':
@@ -60476,6 +60499,8 @@ async function convertSFieldToAmisField(field, readonly, ctx) {
60476
60499
  let subFieldName = subField.name.replace(`${field.name}.$.`, '').replace(`${field.name}.`, '');
60477
60500
  if(subField.type === 'grid'){
60478
60501
  subField = await getGridFieldSubFields(subField, ctx.__formFields);
60502
+ }else if(subField.type === 'table'){
60503
+ subField = await getTabledFieldSubFields(subField, ctx.__formFields);
60479
60504
  }else {
60480
60505
  if(readonly){
60481
60506
  subFieldName = `${field.name}.${subFieldName}`;
@@ -60592,7 +60617,8 @@ async function getFieldSearchable(perField, permissionFields, ctx){
60592
60617
  fieldNamePrefix = `${fieldNamePrefix}between__`;
60593
60618
  }
60594
60619
  if(_field.type === 'datetime'){
60595
- _field.type = 'input-datetime-range';
60620
+ // 特意改为日期范围而不是日期时间范围,因为搜索时一般精确到日期就足够了,需要精确到日期时间范围需要在字段上配置amis属性来实现
60621
+ _field.type = 'input-date-range';
60596
60622
  _field.is_wide = true;
60597
60623
  fieldNamePrefix = `${fieldNamePrefix}between__`;
60598
60624
  }