@tachybase/plugin-action-print 1.6.0 → 1.6.3

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.
@@ -1,20 +1,4 @@
1
- (function(ye,ne){typeof exports=="object"&&typeof module!="undefined"?ne(exports,require("@tachybase/client"),require("react/jsx-runtime"),require("react")):typeof define=="function"&&define.amd?define(["exports","@tachybase/client","react/jsx-runtime","react"],ne):(ye=typeof globalThis!="undefined"?globalThis:ye||self,ne(ye["@tachybase/plugin-action-print"]={},ye["@tachybase/client"],ye.jsxRuntime,ye.react))})(this,function(ye,ne,Oe,$r){"use strict";var Wf=Object.defineProperty,Vf=Object.defineProperties;var Hf=Object.getOwnPropertyDescriptors;var ja=Object.getOwnPropertySymbols;var Qf=Object.prototype.hasOwnProperty,$f=Object.prototype.propertyIsEnumerable;var Ia=(ye,ne,Oe)=>ne in ye?Wf(ye,ne,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):ye[ne]=Oe,Qi=(ye,ne)=>{for(var Oe in ne||(ne={}))Qf.call(ne,Oe)&&Ia(ye,Oe,ne[Oe]);if(ja)for(var Oe of ja(ne))$f.call(ne,Oe)&&Ia(ye,Oe,ne[Oe]);return ye},$i=(ye,ne)=>Vf(ye,Hf(ne));var Ki=(ye,ne,Oe)=>new Promise(($r,Kr)=>{var no=Tt=>{try{bt(Oe.next(Tt))}catch(je){Kr(je)}},ro=Tt=>{try{bt(Oe.throw(Tt))}catch(je){Kr(je)}},bt=Tt=>Tt.done?$r(Tt.value):Promise.resolve(Tt.value).then(no,ro);bt((Oe=Oe.apply(ye,ne)).next())});const Kr=[{type:"itemGroup",name:"Customize",children:[{name:"editButton",Component:ne.ActionDesigner.ButtonEditor,useComponentProps(){const{buttonEditorProps:B}=ne.useSchemaToolbar();return B}},{name:"linkageRules",Component:ne.SchemaSettingsLinkageRules,useComponentProps(){const B=ne.useCollection(),{linkageRulesProps:oe}=ne.useSchemaToolbar();return $i(Qi({},oe),{collectionName:B.name})}},{name:"remove",sort:100,Component:ne.ActionDesigner.RemoveButton,useComponentProps(){const{removeButtonProps:B}=ne.useSchemaToolbar();return B}}]}],no=new ne.SchemaSettings({name:"actionSettings:print",items:Kr}),ro=B=>{const oe={title:'{{ t("Print") }}',"x-action":"print","x-component":"Action","x-use-component-props":"useDetailPrintActionProps","x-component-props":{icon:"PrinterOutlined"}};return Oe.jsx(ne.ActionInitializer,$i(Qi({},B),{schema:oe}))};var bt={exports:{}},Tt={exports:{}},je={},lo={exports:{}},oo={};/**
2
- * @license React
3
- * scheduler.production.min.js
4
- *
5
- * Copyright (c) Facebook, Inc. and its affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var Yi;function Fa(){return Yi||(Yi=1,function(B){function oe(E,M){var C=E.length;E.push(M);e:for(;0<C;){var V=C-1>>>1,Y=E[V];if(0<yt(Y,M))E[V]=M,E[C]=Y,C=V;else break e}}function y(E){return E.length===0?null:E[0]}function Nt(E){if(E.length===0)return null;var M=E[0],C=E.pop();if(C!==M){E[0]=C;e:for(var V=0,Y=E.length,Ae=Y>>>1;V<Ae;){var Ue=2*(V+1)-1,wt=E[Ue],re=Ue+1,St=E[re];if(0>yt(wt,C))re<Y&&0>yt(St,wt)?(E[V]=St,E[re]=C,V=re):(E[V]=wt,E[Ue]=C,V=Ue);else if(re<Y&&0>yt(St,C))E[V]=St,E[re]=C,V=re;else break e}}return M}function yt(E,M){var C=E.sortIndex-M.sortIndex;return C!==0?C:E.id-M.id}if(typeof performance=="object"&&typeof performance.now=="function"){var gt=performance;B.unstable_now=function(){return gt.now()}}else{var Pe=Date,lt=Pe.now();B.unstable_now=function(){return Pe.now()-lt}}var W=[],A=[],X=1,H=null,$=3,Ke=!1,Ce=!1,Z=!1,le=typeof setTimeout=="function"?setTimeout:null,xe=typeof clearTimeout=="function"?clearTimeout:null,Ie=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function L(E){for(var M=y(A);M!==null;){if(M.callback===null)Nt(A);else if(M.startTime<=E)Nt(A),M.sortIndex=M.expirationTime,oe(W,M);else break;M=y(A)}}function I(E){if(Z=!1,L(E),!Ce)if(y(W)!==null)Ce=!0,Te(Q);else{var M=y(A);M!==null&&zt(I,M.startTime-E)}}function Q(E,M){Ce=!1,Z&&(Z=!1,xe(ae),ae=-1),Ke=!0;var C=$;try{for(L(M),H=y(W);H!==null&&(!(H.expirationTime>M)||E&&!Se());){var V=H.callback;if(typeof V=="function"){H.callback=null,$=H.priorityLevel;var Y=V(H.expirationTime<=M);M=B.unstable_now(),typeof Y=="function"?H.callback=Y:H===y(W)&&Nt(W),L(M)}else Nt(W);H=y(W)}if(H!==null)var Ae=!0;else{var Ue=y(A);Ue!==null&&zt(I,Ue.startTime-M),Ae=!1}return Ae}finally{H=null,$=C,Ke=!1}}var J=!1,se=null,ae=-1,ce=5,Le=-1;function Se(){return!(B.unstable_now()-Le<ce)}function Re(){if(se!==null){var E=B.unstable_now();Le=E;var M=!0;try{M=se(!0,E)}finally{M?b():(J=!1,se=null)}}else J=!1}var b;if(typeof Ie=="function")b=function(){Ie(Re)};else if(typeof MessageChannel!="undefined"){var Fe=new MessageChannel,Ye=Fe.port2;Fe.port1.onmessage=Re,b=function(){Ye.postMessage(null)}}else b=function(){le(Re,0)};function Te(E){se=E,J||(J=!0,b())}function zt(E,M){ae=le(function(){E(B.unstable_now())},M)}B.unstable_IdlePriority=5,B.unstable_ImmediatePriority=1,B.unstable_LowPriority=4,B.unstable_NormalPriority=3,B.unstable_Profiling=null,B.unstable_UserBlockingPriority=2,B.unstable_cancelCallback=function(E){E.callback=null},B.unstable_continueExecution=function(){Ce||Ke||(Ce=!0,Te(Q))},B.unstable_forceFrameRate=function(E){0>E||125<E?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ce=0<E?Math.floor(1e3/E):5},B.unstable_getCurrentPriorityLevel=function(){return $},B.unstable_getFirstCallbackNode=function(){return y(W)},B.unstable_next=function(E){switch($){case 1:case 2:case 3:var M=3;break;default:M=$}var C=$;$=M;try{return E()}finally{$=C}},B.unstable_pauseExecution=function(){},B.unstable_requestPaint=function(){},B.unstable_runWithPriority=function(E,M){switch(E){case 1:case 2:case 3:case 4:case 5:break;default:E=3}var C=$;$=E;try{return M()}finally{$=C}},B.unstable_scheduleCallback=function(E,M,C){var V=B.unstable_now();switch(typeof C=="object"&&C!==null?(C=C.delay,C=typeof C=="number"&&0<C?V+C:V):C=V,E){case 1:var Y=-1;break;case 2:Y=250;break;case 5:Y=1073741823;break;case 4:Y=1e4;break;default:Y=5e3}return Y=C+Y,E={id:X++,callback:M,priorityLevel:E,startTime:C,expirationTime:Y,sortIndex:-1},C>V?(E.sortIndex=C,oe(A,E),y(W)===null&&E===y(A)&&(Z?(xe(ae),ae=-1):Z=!0,zt(I,C-V))):(E.sortIndex=Y,oe(W,E),Ce||Ke||(Ce=!0,Te(Q))),E},B.unstable_shouldYield=Se,B.unstable_wrapCallback=function(E){var M=$;return function(){var C=$;$=M;try{return E.apply(this,arguments)}finally{$=C}}}}(oo)),oo}var Gi;function Aa(){return Gi||(Gi=1,lo.exports=Fa()),lo.exports}/**
10
- * @license React
11
- * react-dom.production.min.js
12
- *
13
- * Copyright (c) Facebook, Inc. and its affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var Xi;function Ua(){if(Xi)return je;Xi=1;var B=$r,oe=Aa();function y(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Nt=new Set,yt={};function gt(e,t){Pe(e,t),Pe(e+"Capture",t)}function Pe(e,t){for(yt[e]=t,e=0;e<t.length;e++)Nt.add(t[e])}var lt=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),W=Object.prototype.hasOwnProperty,A=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,X={},H={};function $(e){return W.call(H,e)?!0:W.call(X,e)?!1:A.test(e)?H[e]=!0:(X[e]=!0,!1)}function Ke(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Ce(e,t,n,r){if(t===null||typeof t=="undefined"||Ke(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Z(e,t,n,r,l,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var le={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){le[e]=new Z(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];le[t]=new Z(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){le[e]=new Z(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){le[e]=new Z(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){le[e]=new Z(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){le[e]=new Z(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){le[e]=new Z(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){le[e]=new Z(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){le[e]=new Z(e,5,!1,e.toLowerCase(),null,!1,!1)});var xe=/[\-:]([a-z])/g;function Ie(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(xe,Ie);le[t]=new Z(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(xe,Ie);le[t]=new Z(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(xe,Ie);le[t]=new Z(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){le[e]=new Z(e,1,!1,e.toLowerCase(),null,!1,!1)}),le.xlinkHref=new Z("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){le[e]=new Z(e,1,!1,e.toLowerCase(),null,!0,!0)});function L(e,t,n,r){var l=le.hasOwnProperty(t)?le[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Ce(t,n,l,r)&&(n=null),r||l===null?$(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):l.mustUseProperty?e[l.propertyName]=n===null?l.type===3?!1:"":n:(t=l.attributeName,r=l.attributeNamespace,n===null?e.removeAttribute(t):(l=l.type,n=l===3||l===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var I=B.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Q=Symbol.for("react.element"),J=Symbol.for("react.portal"),se=Symbol.for("react.fragment"),ae=Symbol.for("react.strict_mode"),ce=Symbol.for("react.profiler"),Le=Symbol.for("react.provider"),Se=Symbol.for("react.context"),Re=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),Fe=Symbol.for("react.suspense_list"),Ye=Symbol.for("react.memo"),Te=Symbol.for("react.lazy"),zt=Symbol.for("react.offscreen"),E=Symbol.iterator;function M(e){return e===null||typeof e!="object"?null:(e=E&&e[E]||e["@@iterator"],typeof e=="function"?e:null)}var C=Object.assign,V;function Y(e){if(V===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);V=t&&t[1]||""}return`
1
+ (function(ye,ne){typeof exports=="object"&&typeof module!="undefined"?ne(exports,require("@tachybase/client"),require("react/jsx-runtime"),require("react")):typeof define=="function"&&define.amd?define(["exports","@tachybase/client","react/jsx-runtime","react"],ne):(ye=typeof globalThis!="undefined"?globalThis:ye||self,ne(ye["@tachybase/plugin-action-print"]={},ye["@tachybase/client"],ye.jsxRuntime,ye.react))})(this,function(ye,ne,Oe,$r){"use strict";var Wf=Object.defineProperty,Vf=Object.defineProperties;var Hf=Object.getOwnPropertyDescriptors;var ja=Object.getOwnPropertySymbols;var Qf=Object.prototype.hasOwnProperty,$f=Object.prototype.propertyIsEnumerable;var Ia=(ye,ne,Oe)=>ne in ye?Wf(ye,ne,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):ye[ne]=Oe,Qi=(ye,ne)=>{for(var Oe in ne||(ne={}))Qf.call(ne,Oe)&&Ia(ye,Oe,ne[Oe]);if(ja)for(var Oe of ja(ne))$f.call(ne,Oe)&&Ia(ye,Oe,ne[Oe]);return ye},$i=(ye,ne)=>Vf(ye,Hf(ne));var Ki=(ye,ne,Oe)=>new Promise(($r,Kr)=>{var no=Tt=>{try{bt(Oe.next(Tt))}catch(je){Kr(je)}},ro=Tt=>{try{bt(Oe.throw(Tt))}catch(je){Kr(je)}},bt=Tt=>Tt.done?$r(Tt.value):Promise.resolve(Tt.value).then(no,ro);bt((Oe=Oe.apply(ye,ne)).next())});const Kr=[{type:"itemGroup",name:"Customize",children:[{name:"editButton",Component:ne.ActionDesigner.ButtonEditor,useComponentProps(){const{buttonEditorProps:B}=ne.useSchemaToolbar();return B}},{name:"linkageRules",Component:ne.SchemaSettingsLinkageRules,useComponentProps(){const B=ne.useCollection(),{linkageRulesProps:oe}=ne.useSchemaToolbar();return $i(Qi({},oe),{collectionName:B.name})}},{name:"remove",sort:100,Component:ne.ActionDesigner.RemoveButton,useComponentProps(){const{removeButtonProps:B}=ne.useSchemaToolbar();return B}}]}],no=new ne.SchemaSettings({name:"actionSettings:print",items:Kr}),ro=B=>{const oe={title:'{{ t("Print") }}',"x-action":"print","x-component":"Action","x-use-component-props":"useDetailPrintActionProps","x-component-props":{icon:"PrinterOutlined"}};return Oe.jsx(ne.ActionInitializer,$i(Qi({},B),{schema:oe}))};var bt={exports:{}},Tt={exports:{}},je={},lo={exports:{}},oo={};var Yi;function Fa(){return Yi||(Yi=1,function(B){function oe(E,M){var C=E.length;E.push(M);e:for(;0<C;){var V=C-1>>>1,Y=E[V];if(0<yt(Y,M))E[V]=M,E[C]=Y,C=V;else break e}}function y(E){return E.length===0?null:E[0]}function Nt(E){if(E.length===0)return null;var M=E[0],C=E.pop();if(C!==M){E[0]=C;e:for(var V=0,Y=E.length,Ae=Y>>>1;V<Ae;){var Ue=2*(V+1)-1,wt=E[Ue],re=Ue+1,St=E[re];if(0>yt(wt,C))re<Y&&0>yt(St,wt)?(E[V]=St,E[re]=C,V=re):(E[V]=wt,E[Ue]=C,V=Ue);else if(re<Y&&0>yt(St,C))E[V]=St,E[re]=C,V=re;else break e}}return M}function yt(E,M){var C=E.sortIndex-M.sortIndex;return C!==0?C:E.id-M.id}if(typeof performance=="object"&&typeof performance.now=="function"){var gt=performance;B.unstable_now=function(){return gt.now()}}else{var Pe=Date,lt=Pe.now();B.unstable_now=function(){return Pe.now()-lt}}var W=[],A=[],X=1,H=null,$=3,Ke=!1,Ce=!1,Z=!1,le=typeof setTimeout=="function"?setTimeout:null,xe=typeof clearTimeout=="function"?clearTimeout:null,Ie=typeof setImmediate!="undefined"?setImmediate:null;typeof navigator!="undefined"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function L(E){for(var M=y(A);M!==null;){if(M.callback===null)Nt(A);else if(M.startTime<=E)Nt(A),M.sortIndex=M.expirationTime,oe(W,M);else break;M=y(A)}}function I(E){if(Z=!1,L(E),!Ce)if(y(W)!==null)Ce=!0,Te(Q);else{var M=y(A);M!==null&&zt(I,M.startTime-E)}}function Q(E,M){Ce=!1,Z&&(Z=!1,xe(ae),ae=-1),Ke=!0;var C=$;try{for(L(M),H=y(W);H!==null&&(!(H.expirationTime>M)||E&&!Se());){var V=H.callback;if(typeof V=="function"){H.callback=null,$=H.priorityLevel;var Y=V(H.expirationTime<=M);M=B.unstable_now(),typeof Y=="function"?H.callback=Y:H===y(W)&&Nt(W),L(M)}else Nt(W);H=y(W)}if(H!==null)var Ae=!0;else{var Ue=y(A);Ue!==null&&zt(I,Ue.startTime-M),Ae=!1}return Ae}finally{H=null,$=C,Ke=!1}}var J=!1,se=null,ae=-1,ce=5,Le=-1;function Se(){return!(B.unstable_now()-Le<ce)}function Re(){if(se!==null){var E=B.unstable_now();Le=E;var M=!0;try{M=se(!0,E)}finally{M?b():(J=!1,se=null)}}else J=!1}var b;if(typeof Ie=="function")b=function(){Ie(Re)};else if(typeof MessageChannel!="undefined"){var Fe=new MessageChannel,Ye=Fe.port2;Fe.port1.onmessage=Re,b=function(){Ye.postMessage(null)}}else b=function(){le(Re,0)};function Te(E){se=E,J||(J=!0,b())}function zt(E,M){ae=le(function(){E(B.unstable_now())},M)}B.unstable_IdlePriority=5,B.unstable_ImmediatePriority=1,B.unstable_LowPriority=4,B.unstable_NormalPriority=3,B.unstable_Profiling=null,B.unstable_UserBlockingPriority=2,B.unstable_cancelCallback=function(E){E.callback=null},B.unstable_continueExecution=function(){Ce||Ke||(Ce=!0,Te(Q))},B.unstable_forceFrameRate=function(E){0>E||125<E?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ce=0<E?Math.floor(1e3/E):5},B.unstable_getCurrentPriorityLevel=function(){return $},B.unstable_getFirstCallbackNode=function(){return y(W)},B.unstable_next=function(E){switch($){case 1:case 2:case 3:var M=3;break;default:M=$}var C=$;$=M;try{return E()}finally{$=C}},B.unstable_pauseExecution=function(){},B.unstable_requestPaint=function(){},B.unstable_runWithPriority=function(E,M){switch(E){case 1:case 2:case 3:case 4:case 5:break;default:E=3}var C=$;$=E;try{return M()}finally{$=C}},B.unstable_scheduleCallback=function(E,M,C){var V=B.unstable_now();switch(typeof C=="object"&&C!==null?(C=C.delay,C=typeof C=="number"&&0<C?V+C:V):C=V,E){case 1:var Y=-1;break;case 2:Y=250;break;case 5:Y=1073741823;break;case 4:Y=1e4;break;default:Y=5e3}return Y=C+Y,E={id:X++,callback:M,priorityLevel:E,startTime:C,expirationTime:Y,sortIndex:-1},C>V?(E.sortIndex=C,oe(A,E),y(W)===null&&E===y(A)&&(Z?(xe(ae),ae=-1):Z=!0,zt(I,C-V))):(E.sortIndex=Y,oe(W,E),Ce||Ke||(Ce=!0,Te(Q))),E},B.unstable_shouldYield=Se,B.unstable_wrapCallback=function(E){var M=$;return function(){var C=$;$=M;try{return E.apply(this,arguments)}finally{$=C}}}}(oo)),oo}var Gi;function Aa(){return Gi||(Gi=1,lo.exports=Fa()),lo.exports}var Xi;function Ua(){if(Xi)return je;Xi=1;var B=$r,oe=Aa();function y(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Nt=new Set,yt={};function gt(e,t){Pe(e,t),Pe(e+"Capture",t)}function Pe(e,t){for(yt[e]=t,e=0;e<t.length;e++)Nt.add(t[e])}var lt=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),W=Object.prototype.hasOwnProperty,A=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,X={},H={};function $(e){return W.call(H,e)?!0:W.call(X,e)?!1:A.test(e)?H[e]=!0:(X[e]=!0,!1)}function Ke(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Ce(e,t,n,r){if(t===null||typeof t=="undefined"||Ke(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Z(e,t,n,r,l,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var le={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){le[e]=new Z(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];le[t]=new Z(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){le[e]=new Z(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){le[e]=new Z(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){le[e]=new Z(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){le[e]=new Z(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){le[e]=new Z(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){le[e]=new Z(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){le[e]=new Z(e,5,!1,e.toLowerCase(),null,!1,!1)});var xe=/[\-:]([a-z])/g;function Ie(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(xe,Ie);le[t]=new Z(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(xe,Ie);le[t]=new Z(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(xe,Ie);le[t]=new Z(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){le[e]=new Z(e,1,!1,e.toLowerCase(),null,!1,!1)}),le.xlinkHref=new Z("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){le[e]=new Z(e,1,!1,e.toLowerCase(),null,!0,!0)});function L(e,t,n,r){var l=le.hasOwnProperty(t)?le[t]:null;(l!==null?l.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Ce(t,n,l,r)&&(n=null),r||l===null?$(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):l.mustUseProperty?e[l.propertyName]=n===null?l.type===3?!1:"":n:(t=l.attributeName,r=l.attributeNamespace,n===null?e.removeAttribute(t):(l=l.type,n=l===3||l===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var I=B.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Q=Symbol.for("react.element"),J=Symbol.for("react.portal"),se=Symbol.for("react.fragment"),ae=Symbol.for("react.strict_mode"),ce=Symbol.for("react.profiler"),Le=Symbol.for("react.provider"),Se=Symbol.for("react.context"),Re=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),Fe=Symbol.for("react.suspense_list"),Ye=Symbol.for("react.memo"),Te=Symbol.for("react.lazy"),zt=Symbol.for("react.offscreen"),E=Symbol.iterator;function M(e){return e===null||typeof e!="object"?null:(e=E&&e[E]||e["@@iterator"],typeof e=="function"?e:null)}var C=Object.assign,V;function Y(e){if(V===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);V=t&&t[1]||""}return`
18
2
  `+V+e}var Ae=!1;function Ue(e,t){if(!e||Ae)return"";Ae=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(d){var r=d}Reflect.construct(e,[],t)}else{try{t.call()}catch(d){r=d}e.call(t.prototype)}else{try{throw Error()}catch(d){r=d}e()}}catch(d){if(d&&r&&typeof d.stack=="string"){for(var l=d.stack.split(`
19
3
  `),o=r.stack.split(`
20
4
  `),i=l.length-1,u=o.length-1;1<=i&&0<=u&&l[i]!==o[u];)u--;for(;1<=i&&0<=u;i--,u--)if(l[i]!==o[u]){if(i!==1||u!==1)do if(i--,u--,0>u||l[i]!==o[u]){var s=`
@@ -1,6 +1,6 @@
1
1
  module.exports = {
2
- "@tachybase/client": "1.6.0",
2
+ "@tachybase/client": "1.6.3",
3
3
  "react": "18.3.1",
4
- "@tego/server": "1.3.52",
5
- "@tachybase/test": "1.3.52"
4
+ "@tego/server": "1.6.1",
5
+ "@tachybase/test": "1.6.1"
6
6
  };
File without changes
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tachybase/plugin-action-print",
3
3
  "displayName": "Action: Print",
4
- "version": "1.6.0",
4
+ "version": "1.6.3",
5
5
  "description": "Calls the browser's print function to print a record.",
6
6
  "keywords": [
7
7
  "Actions"
@@ -10,11 +10,11 @@
10
10
  "main": "dist/server/index.js",
11
11
  "dependencies": {},
12
12
  "devDependencies": {
13
- "@tachybase/test": "1.3.52",
14
- "@tego/client": "1.3.52",
15
- "@tego/server": "1.3.52",
13
+ "@tachybase/test": "1.6.1",
14
+ "@tego/client": "1.6.1",
15
+ "@tego/server": "1.6.1",
16
16
  "react-to-print": "^2.15.1",
17
- "@tachybase/client": "1.6.0"
17
+ "@tachybase/client": "1.6.3"
18
18
  },
19
19
  "description.zh-CN": "调用浏览器的打印功能实现单条数据的打印。",
20
20
  "displayName.zh-CN": "操作:打印",