UNPKG

@nocobase/plugin-action-bulk-edit

Version:

Batch edit all records or selected records.

10 lines (9 loc) 2.24 kB
/** * This file is part of the NocoBase (R) project. * Copyright (c) 2020-2024 NocoBase Co., Ltd. * Authors: NocoBase Team. * * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License. * For more information, please refer to: https://www.nocobase.com/agreement. */ "use strict";(self.webpackChunk_nocobase_plugin_action_bulk_edit_client_v2=self.webpackChunk_nocobase_plugin_action_bulk_edit_client_v2||[]).push([["306"],{417:function(e,t,n){n.r(t),n.d(t,{BulkEditFormGridModel:function(){return f}});var o=n(485),r=n(375),u=n(694),i=n(155),l=n.n(i);function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(s=function(){return!!e})()}var f=function(e){var t;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function n(){var e,t;if(!(this instanceof n))throw TypeError("Cannot call a class as a function");return e=n,t=arguments,e=c(e),function(e,t){var n;if(t&&("object"==((n=t)&&"u">typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,s()?Reflect.construct(e,t||[],c(this).constructor):e.apply(this,t))}return n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),e&&a(n,e),t=[{key:"renderAddSubModelButton",value:function(){return l().createElement(u.AddSubModelButton,{subModelKey:"items",subModelBaseClasses:[this.context.getModelClassName("BulkEditFormItemModel")].filter(Boolean),model:this,keepDropdownOpen:!0},l().createElement(u.FlowSettingsButton,{icon:l().createElement(r.SettingOutlined,null)},this.translate("Fields")))}}],function(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(n.prototype,t),n}(o.FormGridModel);f.define({label:(0,u.tExpr)("Bulk Edit Form Grid")})}}]);