@steedos-widgets/sortable 6.3.0-beta.14 → 6.3.0-beta.16

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.
@@ -21003,6 +21003,7 @@
21003
21003
  var frontend_notifications$1 = "Notifications";
21004
21004
  var frontend_notifications_allread$1 = "Mark all as read";
21005
21005
  var frontend_notifications_allread_message$1 = "All marked as read";
21006
+ var frontend_notifications_close_dialog$1 = "Close";
21006
21007
  var frontend_profile$1 = "Profile";
21007
21008
  var switch_space$1 = "Switch Space";
21008
21009
  var frontend_about$1 = "About";
@@ -21092,6 +21093,7 @@
21092
21093
  frontend_notifications: frontend_notifications$1,
21093
21094
  frontend_notifications_allread: frontend_notifications_allread$1,
21094
21095
  frontend_notifications_allread_message: frontend_notifications_allread_message$1,
21096
+ frontend_notifications_close_dialog: frontend_notifications_close_dialog$1,
21095
21097
  frontend_profile: frontend_profile$1,
21096
21098
  switch_space: switch_space$1,
21097
21099
  frontend_about: frontend_about$1,
@@ -21183,6 +21185,7 @@
21183
21185
  var frontend_notifications = "通知";
21184
21186
  var frontend_notifications_allread = "全部标记为已读";
21185
21187
  var frontend_notifications_allread_message = "已全部标记为已读";
21188
+ var frontend_notifications_close_dialog = "关闭";
21186
21189
  var frontend_profile = "个人资料";
21187
21190
  var switch_space = "切换工作区";
21188
21191
  var frontend_about = "关于";
@@ -21273,6 +21276,7 @@
21273
21276
  frontend_notifications: frontend_notifications,
21274
21277
  frontend_notifications_allread: frontend_notifications_allread,
21275
21278
  frontend_notifications_allread_message: frontend_notifications_allread_message,
21279
+ frontend_notifications_close_dialog: frontend_notifications_close_dialog,
21276
21280
  frontend_profile: frontend_profile,
21277
21281
  switch_space: switch_space,
21278
21282
  frontend_about: frontend_about,
@@ -26235,8 +26239,8 @@ crudService && crudService.setData({showFieldsFilter: toShowFieldsFilter});
26235
26239
  const isAllowCreate = refObjectConfig.permissions.allowCreate;
26236
26240
  const isCreate = lodash.exports.isBoolean(field.create) ? field.create : true;
26237
26241
  // lookup字段配置过滤条件就强制不显示新建按钮
26238
- let isHasFilters = (field.filters || field.filtersFunction || field._filtersFunction) ? true : false;
26239
- if (isAllowCreate && isCreate && !isHasFilters) {
26242
+ let hasFilters = !lodash.exports.isEmpty(field.filters) || !!field.filtersFunction || !!field._filtersFunction;
26243
+ if (isAllowCreate && isCreate && !hasFilters) {
26240
26244
  const new_button = await getSchema$5(refObjectConfig, { appId: ctx.appId, objectName: refObjectConfig.name, formFactor: ctx.formFactor });
26241
26245
  new_button.align = "right";
26242
26246
  // 保持快速搜索放在最左侧,新建按钮往里插,而不是push到最后
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos-widgets/sortable",
3
- "version": "6.3.0-beta.14",
3
+ "version": "6.3.0-beta.16",
4
4
  "main": "dist/sortable.cjs.js",
5
5
  "module": "dist/sortable.esm.js",
6
6
  "unpkg": "dist/sortable.umd.js",
@@ -45,7 +45,7 @@
45
45
  "dependencies": {
46
46
  "@dnd-kit/core": "^6.0.5",
47
47
  "@dnd-kit/sortable": "^7.0.1",
48
- "@steedos-widgets/amis-lib": "6.3.0-beta.14"
48
+ "@steedos-widgets/amis-lib": "6.3.0-beta.16"
49
49
  },
50
- "gitHead": "b6d181375062f996bc3df8b060ae94d2db1afb54"
50
+ "gitHead": "8867570e2d1836d14ef3eae384eecf0d20c4e9d4"
51
51
  }