@steedos-widgets/sortable 3.6.2-beta.4 → 3.6.2-beta.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.
@@ -54742,9 +54742,9 @@ var frontend_display_type_is_split = "分栏视图";
54742
54742
  var frontend_display_as = "显示为";
54743
54743
  var frontend_record_sum = "个项目";
54744
54744
  var frontend_button_reload_tooltip = "刷新";
54745
- var frontend_button_search_tooltip = "筛选";
54745
+ var frontend_button_search_tooltip = "搜索";
54746
54746
  var frontend_fields_filter_button_search = "搜索";
54747
- var frontend_fields_filter_button_settings = "设置搜索项";
54747
+ var frontend_fields_filter_button_settings = "选择搜索项";
54748
54748
  var frontend_button_listview_control_tooltip = "列表视图控制";
54749
54749
  var frontend_button_listview_control_label = "列表视图控制";
54750
54750
  var frontend_listview_control_columns = "显示的列";
@@ -55401,7 +55401,7 @@ async function getTableColumns(fields, options){
55401
55401
  if(field.wrap != true){
55402
55402
  className += " whitespace-nowrap ";
55403
55403
  }else {
55404
- className += " break-all ";
55404
+ className += " break-words ";
55405
55405
  }
55406
55406
  let columnItem;
55407
55407
  if((field.is_name || field.name === options.labelFieldName) && options.objectName === 'cms_files'){
@@ -55837,7 +55837,8 @@ async function getTableOperation(ctx){
55837
55837
  label: " ",
55838
55838
  fixed: 'right',
55839
55839
  labelClassName: 'text-center',
55840
- className: 'text-center steedos-listview-operation w-10',
55840
+ //TODO:目前3.6.3-patch.3版本中对于动态classname处理存在问题,简单处理固定列问题,等待amis解决crud的columns不支持动态classname的问题
55841
+ className: 'text-center steedos-listview-operation w-10 is-sticky is-sticky-right is-sticky-first-right',
55841
55842
  buttons: [
55842
55843
  {
55843
55844
  "type": "steedos-dropdown-button",
@@ -55933,7 +55934,7 @@ async function getTableSchema$1(fields, options){
55933
55934
  }
55934
55935
  return {
55935
55936
  mode: "cards",
55936
- perPageAvailable: [5, 10, 20, 50, 100, 500],
55937
+ perPageAvailable: [20, 50, 100, 500],
55937
55938
  name: "thelist",
55938
55939
  headerToolbarClassName: "py-2 px-2 border-gray-300 border-solid border-b",
55939
55940
  className: "",
@@ -55966,7 +55967,7 @@ async function getTableSchema$1(fields, options){
55966
55967
 
55967
55968
  return {
55968
55969
  mode: "table",
55969
- perPageAvailable: [5, 10, 20, 50, 100, 500],
55970
+ perPageAvailable: [20, 50, 100, 500],
55970
55971
  name: "thelist",
55971
55972
  headerToolbarClassName: "py-2 px-2 border-gray-300 border-solid border-b",
55972
55973
  className: "",
@@ -58080,7 +58081,7 @@ function getObjectHeaderQuickSearchBox(mainObject, fields, formFactor, { isLooku
58080
58081
  {
58081
58082
  "type": "search-box",
58082
58083
  "name": keywordsSearchBoxName,
58083
- "placeholder": "搜索此列表",
58084
+ "placeholder": "快捷搜索",
58084
58085
  "value": crudKeywords,
58085
58086
  // "clearable": true,//因为清除并不会触发失去焦点事件,只有禁用,但是它会触发change事件,所以等升级到amis 3.4+后可以重新放开
58086
58087
  "clearAndSubmit": true,
@@ -58434,8 +58435,8 @@ async function getObjectFilter(objectSchema, fields, options) {
58434
58435
  /*
58435
58436
  * @Author: baozhoutao@steedos.com
58436
58437
  * @Date: 2022-07-05 15:55:39
58437
- * @LastEditors: liaodaxue
58438
- * @LastEditTime: 2023-10-20 11:38:25
58438
+ * @LastEditors: baozhoutao@steedos.com
58439
+ * @LastEditTime: 2024-01-16 11:14:34
58439
58440
  * @Description:
58440
58441
  */
58441
58442
 
@@ -59590,7 +59591,8 @@ async function lookupToAmisPicker(field, readonly, ctx){
59590
59591
  labelField: referenceTo.labelField.name,
59591
59592
  valueField: referenceTo.valueField.name,
59592
59593
  // disabledOn: this._master目的是相关表新建时禁止编辑关联字段; this.relatedKey目的是相关表编辑时禁止编辑关联字段,多选字段可以编辑。
59593
- disabledOn: `${readonly} || ( (this._master && (this._master.relatedKey ==='${field.name}')) || ((this.relatedKey ==='${field.name}') && (${field.multiple} != true)) )`,
59594
+ disabledOn: `${readonly}`,
59595
+ hiddenOn: `( (this._master && (this._master.relatedKey ==='${field.name}')) || ((this.relatedKey ==='${field.name}') && (${field.multiple} != true)) )`,
59594
59596
  modalMode: 'dialog', //TODO 设置 dialog 或者 drawer,用来配置弹出方式
59595
59597
  source: source,
59596
59598
  size: "lg",
@@ -59834,9 +59836,15 @@ async function lookupToAmis(field, readonly, ctx){
59834
59836
  // console.log(`lookupToAmis====`, field, readonly, ctx)
59835
59837
  if(readonly){
59836
59838
  return {
59837
- type: getAmisStaticFieldType('picker', readonly),
59838
- tpl: getRelatedFieldTpl(field, ctx)
59839
+ type: 'steedos-field',
59840
+ config: field,
59841
+ static: true
59839
59842
  }
59843
+
59844
+ // return {
59845
+ // type: Field.getAmisStaticFieldType('picker', readonly),
59846
+ // tpl: Tpl.getRelatedFieldTpl(field, ctx)
59847
+ // }
59840
59848
  }
59841
59849
  if(field.reference_to && !lodash.exports.isString(field.reference_to) && !readonly){
59842
59850
  return {
@@ -60718,11 +60726,9 @@ async function convertSFieldToAmisField(field, readonly, ctx) {
60718
60726
  if(field.subFields){
60719
60727
  convertData = {
60720
60728
  type: 'steedos-input-table',
60721
- showIndex: true,
60722
60729
  editable: !readonly,
60723
60730
  addable: !readonly,
60724
60731
  removable: !readonly,
60725
- draggable: !readonly,
60726
60732
  fields: [],
60727
60733
  amis:{
60728
60734
  columnsTogglable: false