@nocobase/plugin-action-print 2.1.0-alpha.1 → 2.1.0-alpha.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.
- package/dist/client/index.js +1 -1
- package/dist/externalVersion.js +3 -3
- package/package.json +2 -2
package/dist/client/index.js
CHANGED
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@nocobase/client"),require("react")):"function"==typeof define&&define.amd?define("@nocobase/plugin-action-print",["@nocobase/client","react"],e):"object"==typeof exports?exports["@nocobase/plugin-action-print"]=e(require("@nocobase/client"),require("react")):t["@nocobase/plugin-action-print"]=e(t["@nocobase/client"],t.react)}(self,function(t,e){return function(){var n,r,o,i,c,u,a,l,f={581:function(t){t.exports=function(t,e){return"undefined"!=typeof __deoptimization_sideEffect__&&__deoptimization_sideEffect__(t,e),e}},772:function(e){"use strict";e.exports=t},156:function(t){"use strict";t.exports=e}},p={};function s(t){var e=p[t];if(void 0!==e)return e.exports;var n=p[t]={exports:{}};return f[t].call(n.exports,n,n.exports,s),n.exports}s.m=f,s.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return s.d(e,{a:e}),e},r=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},s.t=function(t,e){if(1&e&&(t=this(t)),8&e||"object"==typeof t&&t&&(4&e&&t.__esModule||16&e&&"function"==typeof t.then))return t;var o=Object.create(null);s.r(o);var i={};n=n||[null,r({}),r([]),r(r)];for(var c=2&e&&t;"object"==typeof c&&!~n.indexOf(c);c=r(c))Object.getOwnPropertyNames(c).forEach(function(e){i[e]=function(){return t[e]}});return i.default=function(){return t},s.d(o,i),o},s.d=function(t,e){for(var n in e)s.o(e,n)&&!s.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},s.f={},s.e=function(t){return Promise.all(Object.keys(s.f).reduce(function(e,n){return s.f[n](t,e),e},[]))},s.u=function(t){return"95031c5a6ad2b9ac.js"},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(t){if("object"==typeof window)return window}}(),s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o={},i="@nocobase/plugin-action-print:",s.l=function(t,e,n,r){if(o[t])return void o[t].push(e);if(void 0!==n)for(var c,u,a=document.getElementsByTagName("script"),l=0;l<a.length;l++){var f=a[l];if(f.getAttribute("src")==t||f.getAttribute("data-webpack")==i+n){c=f;break}}c||(u=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,s.nc&&c.setAttribute("nonce",s.nc),c.setAttribute("data-webpack",i+n),c.src=t),o[t]=[e];var p=function(e,n){c.onerror=c.onload=null,clearTimeout(b);var r=o[t];if(delete o[t],c.parentNode&&c.parentNode.removeChild(c),r&&r.forEach(function(t){return t(n)}),e)return e(n)},b=setTimeout(p.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=p.bind(null,c.onerror),c.onload=p.bind(null,c.onload),u&&document.head.appendChild(c)},s.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(c=window.__nocobase_public_path__||"/").endsWith("/")||(c+="/"),s.p=c+"static/plugins/@nocobase/plugin-action-print/dist/client/",u={909:0},s.f.j=function(t,e){var n=s.o(u,t)?u[t]:void 0;if(0!==n)if(n)e.push(n[2]);else{var r=new Promise(function(e,r){n=u[t]=[e,r]});e.push(n[2]=r);var o=s.p+s.u(t),i=Error();s.l(o,function(e){if(s.o(u,t)&&(0!==(n=u[t])&&(u[t]=void 0),n)){var r=e&&("load"===e.type?"missing":e.type),o=e&&e.target&&e.target.src;i.message="Loading chunk "+t+" failed.\n("+r+": "+o+")",i.name="ChunkLoadError",i.type=r,i.request=o,n[1](i)}},"chunk-"+t,t)}},a=function(t,e){var n,r,o=e[0],i=e[1],c=e[2],a=0;if(o.some(function(t){return 0!==u[t]})){for(n in i)s.o(i,n)&&(s.m[n]=i[n]);c&&c(s)}for(t&&t(e);a<o.length;a++)r=o[a],s.o(u,r)&&u[r]&&u[r][0](),u[r]=0},(l=self.webpackChunk_nocobase_plugin_action_print=self.webpackChunk_nocobase_plugin_action_print||[]).forEach(a.bind(null,0)),l.push=a.bind(null,l.push.bind(l));var b={};return!function(){"use strict";s.r(b),s.d(b,{PluginActionPrintClient:function(){return g},default:function(){return O}});var t=s(772),e=[{name:"Customize",Component:function(t){return t.children},children:[{name:"editButton",Component:t.ActionDesigner.ButtonEditor,useComponentProps:function(){return(0,t.useSchemaToolbar)().buttonEditorProps}},{name:"linkageRules",Component:t.SchemaSettingsLinkageRules,useComponentProps:function(){return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){var r;r=n[e],e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r})}return t}({},(0,t.useSchemaToolbar)().linkageRulesProps)}},{name:"remove",sort:100,Component:t.ActionDesigner.RemoveButton,useComponentProps:function(){return(0,t.useSchemaToolbar)().removeButtonProps}}]}],n=new t.SchemaSettings({name:"ActionSettings:print",items:e}),r=new t.SchemaSettings({name:"actionSettings:print",items:e}),o=s(156),i=s.n(o),c=function(e){var n,r;return i().createElement(t.ActionInitializer,(n=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){var r;r=n[e],e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r})}return t}({},e),r=r={schema:{title:'{{ t("Print") }}',"x-action":"print","x-component":"Action","x-use-component-props":"useDetailPrintActionProps","x-component-props":{icon:"PrinterOutlined"}}},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):(function(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n.push.apply(n,r)}return n})(Object(r)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(r,t))}),n))},u=s(581);function a(t,e,n,r,o,i,c){try{var u=t[i](c),a=u.value}catch(t){n(t);return}u.done?e(a):Promise.resolve(a).then(r,o)}var l=function(){var e=(0,t.useFormBlockContext)(),n=(0,t.useDetailsBlockContext)().formBlockRef,r=(0,t.useLazy)(function(){return u("imported_19jiev_component",s.e("216").then(s.t.bind(s,468,23)))},"useReactToPrint")({content:function(){var t,r=(null==e||null==(t=e.formBlockRef)?void 0:t.current)||(null==n?void 0:n.current);return r&&r.querySelector(".nb-grid")?r.querySelector(".nb-grid"):null},pageStyle:"@media print {\n * {\n margin: 0;\n }\n .nb-grid {\n padding-top: 20px !important;\n }\n :not(.ant-formily-item-control-content-component) > div.ant-formily-layout div.nb-action-bar { {\n overflow: hidden; height: 0;\n }\n }"});return{onClick:function(){var t;return(t=function(){return function(t,e){var n,r,o,i,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var a=[i,u];if(n)throw TypeError("Generator is already executing.");for(;c;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++,r=a[1],a=[0];continue;case 7:a=c.ops.pop(),c.trys.pop();continue;default:if(!(o=(o=c.trys).length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){c.label=a[1];break}if(6===a[0]&&c.label<o[1]){c.label=o[1],o=a;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(a);break}o[2]&&c.ops.pop(),c.trys.pop();continue}a=e.call(t,c)}catch(t){a=[6,t],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}}}(this,function(t){return r(),[2]})},function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function c(t){a(i,r,o,c,u,"next",t)}function u(t){a(i,r,o,c,u,"throw",t)}c(void 0)})})()}}},f=function(e){return i().createElement(t.SchemaComponentOptions,{components:{PrintActionInitializer:c},scope:{useDetailPrintActionProps:l}},e.children)};function p(t,e,n,r,o,i,c){try{var u=t[i](c),a=u.value}catch(t){n(t);return}u.done?e(a):Promise.resolve(a).then(r,o)}function d(t,e,n){return(d=v()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&m(o,n.prototype),o}).apply(null,arguments)}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function m(t,e){return(m=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t){var e="function"==typeof Map?new Map:void 0;return(h=function(t){if(null===t||-1===Function.toString.call(t).indexOf("[native code]"))return t;if("function"!=typeof t)throw TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return d(t,arguments,y(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),m(n,t)})(t)}function v(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(v=function(){return!!t})()}var g=function(t){var e;if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");function o(){var t,e;if(!(this instanceof o))throw TypeError("Cannot call a class as a function");return t=o,e=arguments,t=y(t),function(t,e){var n;if(e&&("object"==((n=e)&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)||"function"==typeof e))return e;if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(this,v()?Reflect.construct(t,e||[],y(this).constructor):t.apply(this,e))}return o.prototype=Object.create(t&&t.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),t&&m(o,t),e=[{key:"load",value:function(){var t,e=this;return(t=function(){var t;return function(t,e){var n,r,o,i,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var a=[i,u];if(n)throw TypeError("Generator is already executing.");for(;c;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++,r=a[1],a=[0];continue;case 7:a=c.ops.pop(),c.trys.pop();continue;default:if(!(o=(o=c.trys).length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){c.label=a[1];break}if(6===a[0]&&c.label<o[1]){c.label=o[1],o=a;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(a);break}o[2]&&c.ops.pop(),c.trys.pop();continue}a=e.call(t,c)}catch(t){a=[6,t],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}}}(this,function(o){return e.app.use(f),e.app.schemaSettingsManager.add(n),e.app.schemaSettingsManager.add(r),t={title:'{{t("Print")}}',Component:"PrintActionInitializer",schema:{"x-component":"Action","x-toolbar":"ActionSchemaToolbar","x-settings":"actionSettings:print","x-action":"print"}},e.app.schemaInitializerManager.addItem("details:configureActions","enableActions.print",t),e.app.schemaInitializerManager.addItem("CalendarFormActionInitializers","enableActions.print",t),[2]})},function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function c(t){p(i,r,o,c,u,"next",t)}function u(t){p(i,r,o,c,u,"throw",t)}c(void 0)})})()}}],function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(o.prototype,e),o}(h(t.Plugin)),O=g}(),b}()});
|
|
10
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@nocobase/client"),require("react")):"function"==typeof define&&define.amd?define("@nocobase/plugin-action-print",["@nocobase/client","react"],e):"object"==typeof exports?exports["@nocobase/plugin-action-print"]=e(require("@nocobase/client"),require("react")):t["@nocobase/plugin-action-print"]=e(t["@nocobase/client"],t.react)}(self,function(t,e){return function(){var n,r,o,i,c,u,a,l,f={581:function(t){t.exports=function(t,e){return"undefined"!=typeof __deoptimization_sideEffect__&&__deoptimization_sideEffect__(t,e),e}},772:function(e){"use strict";e.exports=t},156:function(t){"use strict";t.exports=e}},p={};function s(t){var e=p[t];if(void 0!==e)return e.exports;var n=p[t]={exports:{}};return f[t].call(n.exports,n,n.exports,s),n.exports}s.m=f,s.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return s.d(e,{a:e}),e},r=Object.getPrototypeOf?function(t){return Object.getPrototypeOf(t)}:function(t){return t.__proto__},s.t=function(t,e){if(1&e&&(t=this(t)),8&e||"object"==typeof t&&t&&(4&e&&t.__esModule||16&e&&"function"==typeof t.then))return t;var o=Object.create(null);s.r(o);var i={};n=n||[null,r({}),r([]),r(r)];for(var c=2&e&&t;"object"==typeof c&&!~n.indexOf(c);c=r(c))Object.getOwnPropertyNames(c).forEach(function(e){i[e]=function(){return t[e]}});return i.default=function(){return t},s.d(o,i),o},s.d=function(t,e){for(var n in e)s.o(e,n)&&!s.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},s.f={},s.e=function(t){return Promise.all(Object.keys(s.f).reduce(function(e,n){return s.f[n](t,e),e},[]))},s.u=function(t){return"95031c5a6ad2b9ac.js"},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(t){if("object"==typeof window)return window}}(),s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o={},i="@nocobase/plugin-action-print:",s.l=function(t,e,n,r){if(o[t])return void o[t].push(e);if(void 0!==n)for(var c,u,a=document.getElementsByTagName("script"),l=0;l<a.length;l++){var f=a[l];if(f.getAttribute("src")==t||f.getAttribute("data-webpack")==i+n){c=f;break}}c||(u=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,s.nc&&c.setAttribute("nonce",s.nc),c.setAttribute("data-webpack",i+n),c.src=t),o[t]=[e];var p=function(e,n){c.onerror=c.onload=null,clearTimeout(b);var r=o[t];if(delete o[t],c.parentNode&&c.parentNode.removeChild(c),r&&r.forEach(function(t){return t(n)}),e)return e(n)},b=setTimeout(p.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=p.bind(null,c.onerror),c.onload=p.bind(null,c.onload),u&&document.head.appendChild(c)},s.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(c=window.__webpack_public_path__||"/").endsWith("/")||(c+="/"),s.p=c+"static/plugins/@nocobase/plugin-action-print/dist/client/",u={909:0},s.f.j=function(t,e){var n=s.o(u,t)?u[t]:void 0;if(0!==n)if(n)e.push(n[2]);else{var r=new Promise(function(e,r){n=u[t]=[e,r]});e.push(n[2]=r);var o=s.p+s.u(t),i=Error();s.l(o,function(e){if(s.o(u,t)&&(0!==(n=u[t])&&(u[t]=void 0),n)){var r=e&&("load"===e.type?"missing":e.type),o=e&&e.target&&e.target.src;i.message="Loading chunk "+t+" failed.\n("+r+": "+o+")",i.name="ChunkLoadError",i.type=r,i.request=o,n[1](i)}},"chunk-"+t,t)}},a=function(t,e){var n,r,o=e[0],i=e[1],c=e[2],a=0;if(o.some(function(t){return 0!==u[t]})){for(n in i)s.o(i,n)&&(s.m[n]=i[n]);c&&c(s)}for(t&&t(e);a<o.length;a++)r=o[a],s.o(u,r)&&u[r]&&u[r][0](),u[r]=0},(l=self.webpackChunk_nocobase_plugin_action_print=self.webpackChunk_nocobase_plugin_action_print||[]).forEach(a.bind(null,0)),l.push=a.bind(null,l.push.bind(l));var b={};return!function(){"use strict";s.r(b),s.d(b,{PluginActionPrintClient:function(){return g},default:function(){return O}});var t=s(772),e=[{name:"Customize",Component:function(t){return t.children},children:[{name:"editButton",Component:t.ActionDesigner.ButtonEditor,useComponentProps:function(){return(0,t.useSchemaToolbar)().buttonEditorProps}},{name:"linkageRules",Component:t.SchemaSettingsLinkageRules,useComponentProps:function(){return function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){var r;r=n[e],e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r})}return t}({},(0,t.useSchemaToolbar)().linkageRulesProps)}},{name:"remove",sort:100,Component:t.ActionDesigner.RemoveButton,useComponentProps:function(){return(0,t.useSchemaToolbar)().removeButtonProps}}]}],n=new t.SchemaSettings({name:"ActionSettings:print",items:e}),r=new t.SchemaSettings({name:"actionSettings:print",items:e}),o=s(156),i=s.n(o),c=function(e){var n,r;return i().createElement(t.ActionInitializer,(n=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){var r;r=n[e],e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r})}return t}({},e),r=r={schema:{title:'{{ t("Print") }}',"x-action":"print","x-component":"Action","x-use-component-props":"useDetailPrintActionProps","x-component-props":{icon:"PrinterOutlined"}}},Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):(function(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n.push.apply(n,r)}return n})(Object(r)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(r,t))}),n))},u=s(581);function a(t,e,n,r,o,i,c){try{var u=t[i](c),a=u.value}catch(t){n(t);return}u.done?e(a):Promise.resolve(a).then(r,o)}var l=function(){var e=(0,t.useFormBlockContext)(),n=(0,t.useDetailsBlockContext)().formBlockRef,r=(0,t.useLazy)(function(){return u("imported_19jiev_component",s.e("216").then(s.t.bind(s,468,23)))},"useReactToPrint")({content:function(){var t,r=(null==e||null==(t=e.formBlockRef)?void 0:t.current)||(null==n?void 0:n.current);return r&&r.querySelector(".nb-grid")?r.querySelector(".nb-grid"):null},pageStyle:"@media print {\n * {\n margin: 0;\n }\n .nb-grid {\n padding-top: 20px !important;\n }\n :not(.ant-formily-item-control-content-component) > div.ant-formily-layout div.nb-action-bar { {\n overflow: hidden; height: 0;\n }\n }"});return{onClick:function(){var t;return(t=function(){return function(t,e){var n,r,o,i,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var a=[i,u];if(n)throw TypeError("Generator is already executing.");for(;c;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++,r=a[1],a=[0];continue;case 7:a=c.ops.pop(),c.trys.pop();continue;default:if(!(o=(o=c.trys).length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){c.label=a[1];break}if(6===a[0]&&c.label<o[1]){c.label=o[1],o=a;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(a);break}o[2]&&c.ops.pop(),c.trys.pop();continue}a=e.call(t,c)}catch(t){a=[6,t],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}}}(this,function(t){return r(),[2]})},function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function c(t){a(i,r,o,c,u,"next",t)}function u(t){a(i,r,o,c,u,"throw",t)}c(void 0)})})()}}},f=function(e){return i().createElement(t.SchemaComponentOptions,{components:{PrintActionInitializer:c},scope:{useDetailPrintActionProps:l}},e.children)};function p(t,e,n,r,o,i,c){try{var u=t[i](c),a=u.value}catch(t){n(t);return}u.done?e(a):Promise.resolve(a).then(r,o)}function d(t,e,n){return(d=v()?Reflect.construct:function(t,e,n){var r=[null];r.push.apply(r,e);var o=new(Function.bind.apply(t,r));return n&&m(o,n.prototype),o}).apply(null,arguments)}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function m(t,e){return(m=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t){var e="function"==typeof Map?new Map:void 0;return(h=function(t){if(null===t||-1===Function.toString.call(t).indexOf("[native code]"))return t;if("function"!=typeof t)throw TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return d(t,arguments,y(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),m(n,t)})(t)}function v(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(v=function(){return!!t})()}var g=function(t){var e;if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");function o(){var t,e;if(!(this instanceof o))throw TypeError("Cannot call a class as a function");return t=o,e=arguments,t=y(t),function(t,e){var n;if(e&&("object"==((n=e)&&"undefined"!=typeof Symbol&&n.constructor===Symbol?"symbol":typeof n)||"function"==typeof e))return e;if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(this,v()?Reflect.construct(t,e||[],y(this).constructor):t.apply(this,e))}return o.prototype=Object.create(t&&t.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),t&&m(o,t),e=[{key:"load",value:function(){var t,e=this;return(t=function(){var t;return function(t,e){var n,r,o,i,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){var a=[i,u];if(n)throw TypeError("Generator is already executing.");for(;c;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return c.label++,{value:a[1],done:!1};case 5:c.label++,r=a[1],a=[0];continue;case 7:a=c.ops.pop(),c.trys.pop();continue;default:if(!(o=(o=c.trys).length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){c=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){c.label=a[1];break}if(6===a[0]&&c.label<o[1]){c.label=o[1],o=a;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(a);break}o[2]&&c.ops.pop(),c.trys.pop();continue}a=e.call(t,c)}catch(t){a=[6,t],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}}}(this,function(o){return e.app.use(f),e.app.schemaSettingsManager.add(n),e.app.schemaSettingsManager.add(r),t={title:'{{t("Print")}}',Component:"PrintActionInitializer",schema:{"x-component":"Action","x-toolbar":"ActionSchemaToolbar","x-settings":"actionSettings:print","x-action":"print"}},e.app.schemaInitializerManager.addItem("details:configureActions","enableActions.print",t),e.app.schemaInitializerManager.addItem("CalendarFormActionInitializers","enableActions.print",t),[2]})},function(){var e=this,n=arguments;return new Promise(function(r,o){var i=t.apply(e,n);function c(t){p(i,r,o,c,u,"next",t)}function u(t){p(i,r,o,c,u,"throw",t)}c(void 0)})})()}}],function(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}(o.prototype,e),o}(h(t.Plugin)),O=g}(),b}()});
|
package/dist/externalVersion.js
CHANGED
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
module.exports = {
|
|
11
|
-
"@nocobase/client": "2.1.0-alpha.
|
|
11
|
+
"@nocobase/client": "2.1.0-alpha.2",
|
|
12
12
|
"react": "18.2.0",
|
|
13
|
-
"@nocobase/server": "2.1.0-alpha.
|
|
14
|
-
"@nocobase/test": "2.1.0-alpha.
|
|
13
|
+
"@nocobase/server": "2.1.0-alpha.2",
|
|
14
|
+
"@nocobase/test": "2.1.0-alpha.2"
|
|
15
15
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/plugin-action-print",
|
|
3
|
-
"version": "2.1.0-alpha.
|
|
3
|
+
"version": "2.1.0-alpha.2",
|
|
4
4
|
"main": "dist/server/index.js",
|
|
5
5
|
"homepage": "https://docs.nocobase.com/handbook/action-print",
|
|
6
6
|
"homepage.ru-RU": "https://docs.nocobase.ru/handbook/action-print",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"@nocobase/server": "2.x",
|
|
18
18
|
"@nocobase/test": "2.x"
|
|
19
19
|
},
|
|
20
|
-
"gitHead": "
|
|
20
|
+
"gitHead": "01afd1b928c72c072947533fb12a61b06e45c985",
|
|
21
21
|
"keywords": [
|
|
22
22
|
"Actions"
|
|
23
23
|
]
|