tocco-admin 3.16.63 → 3.16.64
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/changelog.md +6 -0
- package/dist/chunk-33050.ecd525b7120ff9359e18.js +1 -0
- package/dist/chunk-591.c636e7addfd82e92d48b.js +1 -0
- package/dist/chunk-71306.38ce09dd8b496645bd59.js +1 -0
- package/dist/{chunk-75480.269307e6f2c9811bf5b1.js → chunk-93405.b9f2e80e3ed20095feb0.js} +1 -1
- package/dist/chunk-actions.942aea825bfa997396d7.js +1 -0
- package/dist/chunk-docs-actions.e845adc56ee577375ff9.js +1 -0
- package/dist/index.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-33050.a45244c053c96041bc46.js +0 -1
- package/dist/chunk-71306.c1d37893163b5f25628e.js +0 -1
- package/dist/chunk-72339.b8c92d1f2bbff02894dc.js +0 -1
- package/dist/chunk-actions.0d036b9008cc3c7489d4.js +0 -1
- package/dist/chunk-docs-actions.39827faca15c2c1fe338.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(this.webpackChunktocco_admin=this.webpackChunktocco_admin||[]).push([[61556],{25212(e,t,n){"use strict";n.d(t,{A:()=>i});const i={removeFromQuery:function(e){var t=new URL(location.href);t.searchParams.delete(e),window.history.replaceState(null,"",t)}}},51368(e,t,n){"use strict";n.r(t);var i=n(87046),o=n(86275),r=n(17289),a=n(59899),s=n(1636),c=n(78240),l=n(31085),u=n(74848);const d=(0,l.S)((function(e){var t=e.path,n=e.context,l=e.onSuccess,d=e.locale,m=e.emitAction,f=(0,i.tz)(),y=(0,c.A)(t),p=y?[{id:"rel".concat(y.model),value:y.key}]:[],v=(0,s.A)(n,"Domain");return(0,u.jsx)(o.A,{entityName:"Domain",formName:v,mode:"create",defaultValues:p,locale:d,onEntityCreated:function(e){var t=e.id,n=[{type:"entity-create-event",payload:{entities:[{entityName:"Docs_list_item",key:"Domain/".concat(t)}]}}];l({title:f.formatMessage({id:"client.docs-browser.createDomainSuccessful"}),remoteEvents:n})},emitAction:function(e){(function(e){var t;return"client.entity-detail.createSuccessfulTitle"===(null===(t=e.payload)||void 0===t||null===(t=t.toaster)||void 0===t?void 0:t.title)})(e)||m(e)},listApp:r.Ay,docsApp:a.default,labelPosition:"inside"})}));n.d(t,["default",0,d])},28824(e,t,n){"use strict";n.r(t);var i=n(87046),o=n(86275),r=n(17289),a=n(59899),s=n(1636),c=n(78240),l=n(31085),u=n(74848);const d=(0,l.S)((function(e){var t=e.context,n=e.path,l=e.onSuccess,d=e.locale,m=e.emitAction,f=(0,i.tz)(),y=(0,c.A)(n),p=y?[{id:"rel".concat(y.model),value:y.key}]:[],v=(0,s.A)(t,"Folder");return(0,u.jsx)(o.A,{entityName:"Folder",formName:v,mode:"create",defaultValues:p,locale:d,onEntityCreated:function(e){var t=e.id,n=[{type:"entity-create-event",payload:{entities:[{entityName:"Docs_list_item",key:"Folder/".concat(t)}]}}];l({title:f.formatMessage({id:"client.docs-browser.createFolderSuccessful"}),remoteEvents:n})},emitAction:function(e){(function(e){var t;return"client.entity-detail.createSuccessfulTitle"===(null===(t=e.payload)||void 0===t||null===(t=t.toaster)||void 0===t?void 0:t.title)})(e)||m(e)},listApp:r.Ay,docsApp:a.default,labelPosition:"inside"})}));n.d(t,["default",0,d])},92259(e,t,n){"use strict";n.r(t);var i=n(64467),o=n(71306),r=n(74848);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){(0,i.A)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}n.d(t,["default",0,function(e){return(0,r.jsx)(o.A,s(s({},e),{},{customDeleteEndpoint:"documents/delete/websocket"}))}])},62896(e,t,n){"use strict";n.r(t);var i=n(5544),o=n(4883),r=n(86275),a=n(17289),s=n(40676),c=n(59899),l=n(1636),u=n(31085),d=n(74848);const m=(0,u.S)((function(e){var t=e.selection,n=e.onSuccess,u=e.onCancel,m=e.locale,f=e.context,y=e.emitAction,p=e.navigate,v=e.navigationStrategy,A=t.ids[0].split("/"),h=(0,i.A)(A,2),g=h[0],b=h[1];(0,o.useEffect)((function(){"Resource"===g&&(p("/docs/doc/".concat(b,"/detail")),u())}),[g,b,p,u]);var _=(0,l.A)(f,g);return(0,d.jsx)(r.A,{entityName:g,formName:_,entityId:b,mode:"update",locale:m,onEntityUpdated:function(){var e=[{type:"entity-update-event",payload:{entities:[{entityName:"Docs_list_item",key:t.ids[0]}]}}];n({title:null,remoteEvents:e})},onEntityDeleted:function(){var e=[{type:"entity-delete-event",payload:{entities:[{entityName:"Docs_list_item",key:t.ids[0]}]}}];n({title:null,remoteEvents:e})},emitAction:function(e){(function(e){var t;return"client.entity-detail.createSuccessfulTitle"===(null===(t=e.payload)||void 0===t||null===(t=t.toaster)||void 0===t?void 0:t.title)})(e)||y(e)},listApp:a.Ay,docsApp:c.default,labelPosition:"inside",customActions:{history:function(e,t,n,i,o,r,a){v.navigateToPath({pathname:(0,s.K)(t),inNewTab:!0})}}})}));n.d(t,["default",0,m])},19760(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>k});var i,o,r,a=n(71468),s=n(9675),c=n(31085),l=n(5544),u=n(57528),d=n(2404),m=n.n(d),f=n(4883),y=n(87046),p=n(51510),v=n(11653),A=n(88208),h=n(33150),g=n(59899),b=n(78240),_=n(74848),w=p.Ay.div.withConfig({displayName:"StyledButtonsWrapper"})(i||(i=(0,u.A)(["\n display: flex;\n justify-content: flex-end;\n\n "," {\n margin-right: 0;\n }\n"])),v.Ay),N=(0,p.Ay)(A.A).withConfig({displayName:"StyledLoadMask"})(o||(o=(0,u.A)(["\n height: auto;\n"]))),S=function(e,t){return null!==e?"Move_docs_list_item":null!==t?"Move_root_docs_list_item_specific":"Move_root_docs_list_item"},j={initialize:s.n_,moveElements:s.BQ};const k=(0,c.S)((0,a.Ng)((function(e){return{isWaiting:e.docs.move.isWaiting,domainTypes:e.input.domainTypes,rootNodes:e.input.rootNodes,businessUnit:e.input.businessUnit,locale:e.app.locale}}),j)((function(e){var t=e.selection,n=e.onSuccess,i=e.onError,o=e.path,a=e.initialize,s=e.moveElements,c=e.isWaiting,u=e.domainTypes,d=e.rootNodes,p=e.businessUnit,v=e.locale,A=e.emitAction,j=(0,b.A)(o),k={model:"Docs_list_item",key:"".concat(j.model,"/").concat(j.key)},x=(0,f.useState)(k),O=(0,l.A)(x,2),D=O[0],E=O[1];(0,f.useEffect)((function(){a(t,n,i)}),[]);var P=function(e,t){switch(e){case"Domain":return"/docs/domain/".concat(t,"/list");case"Folder":return"/docs/folder/".concat(t,"/list");case"Resource":return;default:throw new Error("Unexpected model: ".concat(e))}};return(0,_.jsxs)(N,{required:[!c],children:[(0,_.jsx)(g.default,{routerType:"routerless",initialLocation:function(){if(null===D)return null;var e=D.key.split("/"),t=(0,l.A)(e,2),n=t[0],i=t[1];return P(n,i)}(),listLimit:10,selectionStyle:"none",searchFormType:"none",getListFormName:S,onListParentChange:E,getCustomLocation:P,navigationStrategy:{},embedded:!0,emitAction:A,noLeftPadding:!0,domainTypes:u,rootNodes:d,businessUnit:p,sortable:!1,scrollBehaviour:"none",locale:v,selectOnRowClick:!1}),(0,_.jsx)(w,{children:(0,_.jsx)(h.A,{onClick:function(){return s(D.key,t.ids)},look:"raised",ink:"primary",disabled:null===D||m()(D,k),children:r||(r=(0,_.jsx)(y.sA,{id:"client.actions.dms-move.button"}))})})]})})))},1636(e,t,n){"use strict";const i=function(e,t){return e.detailFormNames&&e.detailFormNames[t]?e.detailFormNames[t]:"Dms".concat(t)};n.d(t,["A",0,i])},27185(e,t,n){var i=n(38859),o=n(15325),r=n(29905),a=n(34932),s=n(27301),c=n(19219),l=Math.min;e.exports=function(e,t,n){for(var u=n?r:o,d=e[0].length,m=e.length,f=m,y=Array(m),p=1/0,v=[];f--;){var A=e[f];f&&t&&(A=a(A,s(t))),p=l(A.length,p),y[f]=!n&&(t||d>=120&&A.length>=120)?new i(f&&A):void 0}A=e[0];var h=-1,g=y[0];e:for(;++h<d&&v.length<p;){var b=A[h],_=t?t(b):b;if(b=n||0!==b?b:0,!(g?c(g,_):u(v,_,n))){for(f=m;--f;){var w=y[f];if(!(w?c(w,_):u(e[f],_,n)))continue e}g&&g.push(_),v.push(b)}}return v}},80741(e,t,n){var i=n(83693);e.exports=function(e){return i(e)?e:[]}},5287(e,t,n){var i=n(34932),o=n(27185),r=n(69302),a=n(80741),s=r((function(e){var t=i(e,a);return t.length&&t[0]===e[0]?o(t):[]}));e.exports=s}}]);
|