@gisce/react-ooui 1.2.0-rc.14 → 1.2.0-rc.15
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/react-ooui.umd.js
CHANGED
|
@@ -277,7 +277,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
277
277
|
.ant-progress-text {
|
|
278
278
|
display: none;
|
|
279
279
|
}
|
|
280
|
-
`;function Qe(){const{innerWidth:e,innerHeight:o}=window;return{width:e,height:o}}function Lt(){const[e,o]=React.useState(Qe());return React.useEffect(()=>{function r(){o(Qe())}return window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[]),{modalWidth:e.width*Yr,modalHeight:e.height,width:e.width,height:e.height}}const jt=e=>{const{locale:o,onClose:r,onConfirm:a,loading:s,left:c=null}=e;return jsxRuntime.jsxs(antd.Row,{children:[jsxRuntime.jsx(antd.Col,{span:12,children:jsxRuntime.jsx(antd.Space,{children:c})}),jsxRuntime.jsx(antd.Col,{span:12,children:jsxRuntime.jsx(antd.Row,{justify:"end",children:jsxRuntime.jsxs(antd.Space,{children:[jsxRuntime.jsx(antd.Button,{icon:jsxRuntime.jsx(mr,{}),onClick:r,disabled:s,children:S("cancel",o)}),jsxRuntime.jsx(antd.Button,{icon:jsxRuntime.jsx(s?kt:ft,{}),disabled:s,onClick:a,style:{marginLeft:15},type:"primary",children:S("ok",o)})]})})})]})},nn=e=>{const{value:o,onChange:r,locale:a}=e,s=React.useCallback(c=>{r(c.target.value)},[]);return jsxRuntime.jsx(Rt,{label:S("saveAs",a),children:jsxRuntime.jsxs(antd.Radio.Group,{onChange:s,value:o,children:[jsxRuntime.jsx(antd.Radio,{value:"xlsx",children:"Excel"}),jsxRuntime.jsx(antd.Radio,{value:"csv",children:"CSV"})]})})},an=e=>{const{value:o,onChange:r,locale:a,totalRegisters:s,selectedRegistersToExport:c}=e,l=React.useCallback(u=>{r(u.target.value)},[]),d=S("registersToExportSummary",a).replace("{total}",s.toString()).replace("{selected}",c==null?void 0:c.toString());return jsxRuntime.jsxs(Rt,{label:S("registersToExport",a),children:[jsxRuntime.jsx("p",{dangerouslySetInnerHTML:{__html:d}}),jsxRuntime.jsxs(antd.Radio.Group,{onChange:l,value:o,children:[jsxRuntime.jsx(antd.Radio,{value:"selected",children:S("registersSelection",a)}),jsxRuntime.jsx(antd.Radio,{value:"all",children:S("registersSelectionAll",a)})]})]})},{Text:on}=antd.Typography,Je=({node:e})=>{const{required:o=!1,tooltip:r,title:a}=e,s=["flex","flex-row","items-center","justify-start"];return o&&s.push("bg-blue-100"),jsxRuntime.jsxs("div",{className:s.join(" "),children:[jsxRuntime.jsx(on,{children:a
|
|
280
|
+
`;function Qe(){const{innerWidth:e,innerHeight:o}=window;return{width:e,height:o}}function Lt(){const[e,o]=React.useState(Qe());return React.useEffect(()=>{function r(){o(Qe())}return window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[]),{modalWidth:e.width*Yr,modalHeight:e.height,width:e.width,height:e.height}}const jt=e=>{const{locale:o,onClose:r,onConfirm:a,loading:s,left:c=null}=e;return jsxRuntime.jsxs(antd.Row,{children:[jsxRuntime.jsx(antd.Col,{span:12,children:jsxRuntime.jsx(antd.Space,{children:c})}),jsxRuntime.jsx(antd.Col,{span:12,children:jsxRuntime.jsx(antd.Row,{justify:"end",children:jsxRuntime.jsxs(antd.Space,{children:[jsxRuntime.jsx(antd.Button,{icon:jsxRuntime.jsx(mr,{}),onClick:r,disabled:s,children:S("cancel",o)}),jsxRuntime.jsx(antd.Button,{icon:jsxRuntime.jsx(s?kt:ft,{}),disabled:s,onClick:a,style:{marginLeft:15},type:"primary",children:S("ok",o)})]})})})]})},nn=e=>{const{value:o,onChange:r,locale:a}=e,s=React.useCallback(c=>{r(c.target.value)},[]);return jsxRuntime.jsx(Rt,{label:S("saveAs",a),children:jsxRuntime.jsxs(antd.Radio.Group,{onChange:s,value:o,children:[jsxRuntime.jsx(antd.Radio,{value:"xlsx",children:"Excel"}),jsxRuntime.jsx(antd.Radio,{value:"csv",children:"CSV"})]})})},an=e=>{const{value:o,onChange:r,locale:a,totalRegisters:s,selectedRegistersToExport:c}=e,l=React.useCallback(u=>{r(u.target.value)},[]),d=S("registersToExportSummary",a).replace("{total}",s.toString()).replace("{selected}",c==null?void 0:c.toString());return jsxRuntime.jsxs(Rt,{label:S("registersToExport",a),children:[jsxRuntime.jsx("p",{dangerouslySetInnerHTML:{__html:d}}),jsxRuntime.jsxs(antd.Radio.Group,{onChange:l,value:o,children:[jsxRuntime.jsx(antd.Radio,{value:"selected",children:S("registersSelection",a)}),jsxRuntime.jsx(antd.Radio,{value:"all",children:S("registersSelectionAll",a)})]})]})},{Text:on}=antd.Typography,Je=({node:e})=>{const{required:o=!1,tooltip:r,title:a}=e,s=["flex","flex-row","items-center","justify-start"];return o&&s.push("bg-blue-100"),jsxRuntime.jsxs("div",{className:s.join(" "),children:[jsxRuntime.jsx(on,{children:a}),r&&jsxRuntime.jsx(antd.Tooltip,{title:r,className:"pl-1",children:jsxRuntime.jsx(Et,{className:"text-xs text-blue-400"})})]})},Be=(e,o)=>o.title.toLowerCase().indexOf(e.toLowerCase())>-1||o.key.toLowerCase().indexOf(e.toLowerCase())>-1,qt=(e,o,r)=>e.map(a=>a.key===o?{...a,children:r}:a.children?{...a,children:qt(a.children,o,r)}:a),Ae=e=>{const o=[];return function r(a=[]){a.forEach(s=>{o.push(s),r(s.children)})}(e),o},Ht=({treeNodes:e=[],checkedKeys:o=[],searchText:r})=>e.filter(a=>!r||Be(r,a)).map(({children:a,...s})=>({...s,disabled:o.includes(s.key),children:Ht({treeNodes:a,checkedKeys:o,searchText:void 0})})),ln=({treeNodes:e=[],checkedKeys:o=[],searchText:r})=>Ae(e).filter(a=>o.indexOf(a.key)!==-1).filter(a=>!r||Be(r,a)).map(({children:a,...s})=>({...s,disabled:!1,isLeaf:!0})),{error:Xe}=antd.Modal,sn=k__default.default(antd.Transfer)`
|
|
281
281
|
.ant-transfer-list-body-customize-wrapper {
|
|
282
282
|
min-height: ${300}px;
|
|
283
283
|
}
|