tocco-admin 3.15.21 → 3.15.23
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 +7 -0
- package/dist/{chunk-27230.7ab0252ddc78352fea17.js → chunk-27230.da43bebb5ca2934b2162.js} +1 -1
- package/dist/{chunk-32123.959badffce9eb687975d.js → chunk-32123.9f07db7cd348381cc863.js} +1 -1
- package/dist/chunk-34660.2d5c4794376fccf753f9.js +1 -0
- package/dist/chunk-35670.6b72c274fad9ff33908e.js +1 -0
- package/dist/{chunk-46187.c4822625c7f54157dd5a.js → chunk-46187.841b7a0e0da90be426b9.js} +1 -1
- package/dist/chunk-79033.b1903c7157c9db474fd4.js +1 -0
- package/dist/{chunk-94968.45765e9dcbb526380390.js → chunk-94968.878899be55f91c3161b4.js} +1 -1
- package/dist/chunk-actions.4d68af86171c2df56398.js +1 -0
- package/dist/{chunk-docs-actions.0aca976105f71a6773b5.js → chunk-docs-actions.fa1eb8bc5c5df28cd573.js} +1 -1
- package/dist/index.js +4 -4
- package/package.json +1 -1
- package/dist/chunk-35670.bb5e16767b741227dec0.js +0 -1
- package/dist/chunk-79033.1005ecb4618ad425fa6f.js +0 -1
- package/dist/chunk-9889.5cc30f47c86465063905.js +0 -1
- package/dist/chunk-actions.82ee3865473cf3040049.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(this.webpackChunktocco_admin=this.webpackChunktocco_admin||[]).push([[61556],{1636:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i=function(t,e){return t.detailFormNames&&t.detailFormNames[e]?t.detailFormNames[e]:"Dms".concat(e)}},5287:(t,e,n)=>{var i=n(34932),o=n(27185),r=n(69302),c=n(80741),a=r((function(t){var e=i(t,c);return e.length&&e[0]===t[0]?o(e):[]}));t.exports=a},19760:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>O});var i,o,r,c=n(38798),a=n(71468),s=n(9675),l=n(31085),d=n(22056),u=n.n(d),m=n(72189),y=n.n(m),p=n(2404),f=n.n(p),v=n(4883),A=n(58065),g=n(6199),h=n(11653),b=n(88208),S=n(33150),N=n(27230),_=n(78240),j=n(74848),E=g.Ay.div.withConfig({displayName:"StyledButtonsWrapper"})(i||(i=y()(["\n display: flex;\n justify-content: flex-end;\n\n "," {\n margin-right: 0;\n }\n"])),h.Ay),w=(0,g.Ay)(b.A).withConfig({displayName:"StyledLoadMask"})(o||(o=y()(["\n height: auto;\n"]))),k=function(t,e){return null!==t?"Move_docs_list_item":null!==e?"Move_root_docs_list_item_specific":"Move_root_docs_list_item"},x={initialize:s.n_,moveElements:s.BQ};const O=(0,l.S)((0,a.Ng)((function(t){return{isWaiting:t.docs.move.isWaiting,domainTypes:t.input.domainTypes,rootNodes:t.input.rootNodes,businessUnit:t.input.businessUnit,locale:t.app.locale}}),x)((0,c.Ay)((function(t){var e=t.selection,n=t.onSuccess,i=t.onError,o=t.path,c=t.initialize,a=t.moveElements,s=t.isWaiting,l=t.domainTypes,d=t.rootNodes,m=t.businessUnit,y=t.locale,p=t.emitAction,g=(0,_.A)(o),h={model:"Docs_list_item",key:"".concat(g.model,"/").concat(g.key)},b=(0,v.useState)(h),x=u()(b,2),O=x[0],D=x[1];(0,v.useEffect)((function(){c(e,n,i)}),[]);var C=function(t,e){switch(t){case"Domain":return"/docs/domain/".concat(e,"/list");case"Folder":return"/docs/folder/".concat(e,"/list");case"Resource":return;default:throw new Error("Unexpected model: ".concat(t))}};return(0,j.jsxs)(w,{required:[!s],children:[(0,j.jsx)(N.default,{routerType:"routerless",initialLocation:function(){if(null===O)return null;var t=O.key.split("/"),e=u()(t,2),n=e[0],i=e[1];return C(n,i)}(),listLimit:10,selectionStyle:"none",searchFormType:"none",getListFormName:k,onListParentChange:D,getCustomLocation:C,navigationStrategy:{},embedded:!0,emitAction:p,noLeftPadding:!0,domainTypes:l,rootNodes:d,businessUnit:m,sortable:!1,scrollBehaviour:"none",locale:y,selectOnRowClick:!1}),(0,j.jsx)(E,{children:(0,j.jsx)(S.A,{onClick:function(){return a(O.key,e.ids)},look:"raised",ink:"primary",disabled:null===O||f()(O,h),children:r||(r=(0,j.jsx)(A.A,{id:"client.actions.dms-move.button"}))})})]})}))))},22894:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var i=n(56375),o=n(77271),r=n(79451),c=n(74848);const a=function(t){var e=t.condition,n=void 0===e?o.A.condition.BASE:e,a=t.title,s=t.children,l=t.meta;return(0,c.jsxs)(r.A,{condition:n,children:[a&&(0,c.jsx)(i.Ay.H5,{children:a}),s,l&&(0,c.jsx)(i.Ay.Small,{children:l})]})}},25212:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i={removeFromQuery:function(t){var e=new URL(location.href);e.searchParams.delete(t),window.history.replaceState(null,"",e)}}},27185:(t,e,n)=>{var i=n(38859),o=n(15325),r=n(29905),c=n(34932),a=n(27301),s=n(19219),l=Math.min;t.exports=function(t,e,n){for(var d=n?r:o,u=t[0].length,m=t.length,y=m,p=Array(m),f=1/0,v=[];y--;){var A=t[y];y&&e&&(A=c(A,a(e))),f=l(A.length,f),p[y]=!n&&(e||u>=120&&A.length>=120)?new i(y&&A):void 0}A=t[0];var g=-1,h=p[0];t:for(;++g<u&&v.length<f;){var b=A[g],S=e?e(b):b;if(b=n||0!==b?b:0,!(h?s(h,S):d(v,S,n))){for(y=m;--y;){var N=p[y];if(!(N?s(N,S):d(t[y],S,n)))continue t}h&&h.push(S),v.push(b)}}return v}},28824:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>u});var i=n(38798),o=n(32123),r=n(
|
|
1
|
+
(this.webpackChunktocco_admin=this.webpackChunktocco_admin||[]).push([[61556],{1636:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i=function(t,e){return t.detailFormNames&&t.detailFormNames[e]?t.detailFormNames[e]:"Dms".concat(e)}},5287:(t,e,n)=>{var i=n(34932),o=n(27185),r=n(69302),c=n(80741),a=r((function(t){var e=i(t,c);return e.length&&e[0]===t[0]?o(e):[]}));t.exports=a},19760:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>O});var i,o,r,c=n(38798),a=n(71468),s=n(9675),l=n(31085),d=n(22056),u=n.n(d),m=n(72189),y=n.n(m),p=n(2404),f=n.n(p),v=n(4883),A=n(58065),g=n(6199),h=n(11653),b=n(88208),S=n(33150),N=n(27230),_=n(78240),j=n(74848),E=g.Ay.div.withConfig({displayName:"StyledButtonsWrapper"})(i||(i=y()(["\n display: flex;\n justify-content: flex-end;\n\n "," {\n margin-right: 0;\n }\n"])),h.Ay),w=(0,g.Ay)(b.A).withConfig({displayName:"StyledLoadMask"})(o||(o=y()(["\n height: auto;\n"]))),k=function(t,e){return null!==t?"Move_docs_list_item":null!==e?"Move_root_docs_list_item_specific":"Move_root_docs_list_item"},x={initialize:s.n_,moveElements:s.BQ};const O=(0,l.S)((0,a.Ng)((function(t){return{isWaiting:t.docs.move.isWaiting,domainTypes:t.input.domainTypes,rootNodes:t.input.rootNodes,businessUnit:t.input.businessUnit,locale:t.app.locale}}),x)((0,c.Ay)((function(t){var e=t.selection,n=t.onSuccess,i=t.onError,o=t.path,c=t.initialize,a=t.moveElements,s=t.isWaiting,l=t.domainTypes,d=t.rootNodes,m=t.businessUnit,y=t.locale,p=t.emitAction,g=(0,_.A)(o),h={model:"Docs_list_item",key:"".concat(g.model,"/").concat(g.key)},b=(0,v.useState)(h),x=u()(b,2),O=x[0],D=x[1];(0,v.useEffect)((function(){c(e,n,i)}),[]);var C=function(t,e){switch(t){case"Domain":return"/docs/domain/".concat(e,"/list");case"Folder":return"/docs/folder/".concat(e,"/list");case"Resource":return;default:throw new Error("Unexpected model: ".concat(t))}};return(0,j.jsxs)(w,{required:[!s],children:[(0,j.jsx)(N.default,{routerType:"routerless",initialLocation:function(){if(null===O)return null;var t=O.key.split("/"),e=u()(t,2),n=e[0],i=e[1];return C(n,i)}(),listLimit:10,selectionStyle:"none",searchFormType:"none",getListFormName:k,onListParentChange:D,getCustomLocation:C,navigationStrategy:{},embedded:!0,emitAction:p,noLeftPadding:!0,domainTypes:l,rootNodes:d,businessUnit:m,sortable:!1,scrollBehaviour:"none",locale:y,selectOnRowClick:!1}),(0,j.jsx)(E,{children:(0,j.jsx)(S.A,{onClick:function(){return a(O.key,e.ids)},look:"raised",ink:"primary",disabled:null===O||f()(O,h),children:r||(r=(0,j.jsx)(A.A,{id:"client.actions.dms-move.button"}))})})]})}))))},22894:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var i=n(56375),o=n(77271),r=n(79451),c=n(74848);const a=function(t){var e=t.condition,n=void 0===e?o.A.condition.BASE:e,a=t.title,s=t.children,l=t.meta;return(0,c.jsxs)(r.A,{condition:n,children:[a&&(0,c.jsx)(i.Ay.H5,{children:a}),s,l&&(0,c.jsx)(i.Ay.Small,{children:l})]})}},25212:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});const i={removeFromQuery:function(t){var e=new URL(location.href);e.searchParams.delete(t),window.history.replaceState(null,"",e)}}},27185:(t,e,n)=>{var i=n(38859),o=n(15325),r=n(29905),c=n(34932),a=n(27301),s=n(19219),l=Math.min;t.exports=function(t,e,n){for(var d=n?r:o,u=t[0].length,m=t.length,y=m,p=Array(m),f=1/0,v=[];y--;){var A=t[y];y&&e&&(A=c(A,a(e))),f=l(A.length,f),p[y]=!n&&(e||u>=120&&A.length>=120)?new i(y&&A):void 0}A=t[0];var g=-1,h=p[0];t:for(;++g<u&&v.length<f;){var b=A[g],S=e?e(b):b;if(b=n||0!==b?b:0,!(h?s(h,S):d(v,S,n))){for(y=m;--y;){var N=p[y];if(!(N?s(N,S):d(t[y],S,n)))continue t}h&&h.push(S),v.push(b)}}return v}},28824:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>u});var i=n(38798),o=n(32123),r=n(26574),c=n(27230),a=n(1636),s=n(78240),l=n(31085),d=n(74848);const u=(0,l.S)((0,i.Ay)((function(t){var e=t.context,n=t.path,i=t.onSuccess,l=t.intl,u=t.locale,m=t.emitAction,y=(0,s.A)(n),p=y?[{id:"rel".concat(y.model),value:y.key}]:[],f=(0,a.A)(e,"Folder");return(0,d.jsx)(o.Ay,{entityName:"Folder",formName:f,mode:"create",defaultValues:p,locale:u,onEntityCreated:function(t){var e=t.id,n=[{type:"entity-create-event",payload:{entities:[{entityName:"Docs_list_item",key:"Folder/".concat(e)}]}}];i({title:l.formatMessage({id:"client.docs-browser.createFolderSuccessful"}),remoteEvents:n})},emitAction:function(t){(function(t){var e;return"client.entity-detail.createSuccessfulTitle"===(null===(e=t.payload)||void 0===e||null===(e=e.toaster)||void 0===e?void 0:e.title)})(t)||m(t)},listApp:r.Ay,docsApp:c.default,labelPosition:"inside"})})))},51368:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>u});var i=n(38798),o=n(32123),r=n(26574),c=n(27230),a=n(1636),s=n(78240),l=n(31085),d=n(74848);const u=(0,l.S)((0,i.Ay)((function(t){var e=t.path,n=t.context,i=t.onSuccess,l=t.intl,u=t.locale,m=t.emitAction,y=(0,s.A)(e),p=y?[{id:"rel".concat(y.model),value:y.key}]:[],f=(0,a.A)(n,"Domain");return(0,d.jsx)(o.Ay,{entityName:"Domain",formName:f,mode:"create",defaultValues:p,locale:u,onEntityCreated:function(t){var e=t.id,n=[{type:"entity-create-event",payload:{entities:[{entityName:"Docs_list_item",key:"Domain/".concat(e)}]}}];i({title:l.formatMessage({id:"client.docs-browser.createDomainSuccessful"}),remoteEvents:n})},emitAction:function(t){(function(t){var e;return"client.entity-detail.createSuccessfulTitle"===(null===(e=t.payload)||void 0===e||null===(e=e.toaster)||void 0===e?void 0:e.title)})(t)||m(t)},listApp:r.Ay,docsApp:c.default,labelPosition:"inside"})})))},62896:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>y});var i=n(22056),o=n.n(i),r=n(4883),c=n(32123),a=n(26574),s=n(40676),l=n(27230),d=n(1636),u=n(31085),m=n(74848);const y=(0,u.S)((function(t){var e=t.selection,n=t.onSuccess,i=t.onCancel,u=t.locale,y=t.context,p=t.emitAction,f=t.navigate,v=t.navigationStrategy,A=e.ids[0].split("/"),g=o()(A,2),h=g[0],b=g[1];(0,r.useEffect)((function(){"Resource"===h&&(f("/docs/doc/".concat(b,"/detail")),i())}),[h,b,f,i]);var S=(0,d.A)(y,h);return(0,m.jsx)(c.Ay,{entityName:h,formName:S,entityId:b,mode:"update",locale:u,onEntityUpdated:function(){var t=[{type:"entity-update-event",payload:{entities:[{entityName:"Docs_list_item",key:e.ids[0]}]}}];n({title:null,remoteEvents:t})},onEntityDeleted:function(){var t=[{type:"entity-delete-event",payload:{entities:[{entityName:"Docs_list_item",key:e.ids[0]}]}}];n({title:null,remoteEvents:t})},emitAction:function(t){(function(t){var e;return"client.entity-detail.createSuccessfulTitle"===(null===(e=t.payload)||void 0===e||null===(e=e.toaster)||void 0===e?void 0:e.title)})(t)||p(t)},listApp:a.Ay,docsApp:l.default,labelPosition:"inside",customActions:{history:function(t,e,n,i,o,r,c){v.navigateToPath({pathname:(0,s.K)(e),inNewTab:!0})}}})}))},79451:(t,e,n)=>{"use strict";n.d(e,{A:()=>f});var i,o=n(72189),r=n.n(o),c=n(26396),a=n.n(c),s=n(6199),l=n(93564),d=n(77271),u=n(57488),m=n(26166),y=[d.A.condition.BASE,d.A.condition.INFO,d.A.condition.DANGER,d.A.condition.SUCCESS,d.A.condition.WARNING],p=a()(a()(a()(a()(a()({},d.A.condition.BASE,u.t7.color("signal.neutral")),d.A.condition.DANGER,u.t7.color("signal.dangerLight")),d.A.condition.SUCCESS,u.t7.color("signal.successLight")),d.A.condition.WARNING,u.t7.color("signal.warningLight")),d.A.condition.INFO,u.t7.color("signal.infoLight")),f=s.Ay.div.withConfig({displayName:"StyledSignalBox"})(i||(i=r()(["\n && {\n background-color: ",";\n padding: "," ",";\n border-radius: ",";\n\n &:not(:last-child) {\n margin-bottom: ",";\n }\n\n * {\n color: #000; /* black in all themes */\n }\n\n "," {\n margin-right: ",";\n }\n }\n"])),(function(t){var e=t.condition;return p[y.includes(e)?e:d.A.condition.INFO]}),m.A.space(-1),m.A.space(-.3),u.t7.radii("statusLabel"),m.A.space(-1),l.i,m.A.space(-1));f.propTypes={condition:d.A.oneOfPropTypeAndCompletelyMapped(y,p)}},80741:(t,e,n)=>{var i=n(83693);t.exports=function(t){return i(t)?t:[]}},92259:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>l});var i=n(26396),o=n.n(i),r=n(71306),c=n(74848);function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?a(Object(n),!0).forEach((function(e){o()(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}const l=function(t){return(0,c.jsx)(r.A,s(s({},t),{},{customDeleteEndpoint:"documents/delete"}))}}}]);
|