denwa-react-shared 1.0.91 → 1.0.93
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/base-table-CJaPkrQG.js +8323 -0
- package/dist/base-table-DQjDFH1p.cjs +67 -0
- package/dist/denwa-react-shared.cjs.js +132 -1
- package/dist/denwa-react-shared.css +2 -1
- package/dist/denwa-react-shared.es.js +32285 -85
- package/dist/denwa-react-shared.umd.js +540 -381
- package/dist/shared/schemas/index.d.ts +22 -228
- package/dist/shared/types/index.d.ts +1 -0
- package/dist/shared/ui/text-editor/data.d.ts +5 -0
- package/dist/shared/ui/text-editor/types.d.ts +1 -1
- package/dist/space-BJ3vxIsm.cjs +403 -0
- package/dist/space-DbOTEMQH.js +34936 -0
- package/dist/spin-DmlDLEyA.js +2711 -0
- package/dist/spin-WHoLMfw5.cjs +10 -0
- package/dist/styles.module-C_XbqrB-.cjs +95 -0
- package/dist/styles.module-klEM0K92.js +17512 -0
- package/dist/table-head-DmPedLsO.cjs +1 -0
- package/dist/table-head-cgBo60N5.js +588 -0
- package/package.json +30 -31
- package/dist/index-B4gfB763.cjs +0 -96
- package/dist/index-CHwMrK13.cjs +0 -449
- package/dist/index-DADjYcZC.js +0 -65954
- package/dist/index-DPgBfLPh.js +0 -9982
- package/dist/table-head-BRu8GzYj.cjs +0 -1
- package/dist/table-head-Br9hRwzW.js +0 -669
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./space-BJ3vxIsm.cjs"),t=require("./styles.module-C_XbqrB-.cjs");let n=require("react");n=e.Vr(n,1);var r=(e,t)=>{if(!e)return null;let n={left:e.offsetLeft,right:e.parentElement.clientWidth-e.clientWidth-e.offsetLeft,width:e.clientWidth,top:e.offsetTop,bottom:e.parentElement.clientHeight-e.clientHeight-e.offsetTop,height:e.clientHeight};return t?{left:0,right:0,width:0,top:n.top,bottom:n.bottom,height:n.height}:{left:n.left,right:n.right,width:n.width,top:0,bottom:0,height:0}},i=e=>e===void 0?void 0:`${e}px`;function a(t){let{prefixCls:a,containerRef:o,value:s,getValueIndex:c,motionName:l,onMotionStart:u,onMotionEnd:d,direction:f,vertical:p=!1}=t,m=n.useRef(null),[h,g]=n.useState(s),_=e=>{let t=c(e),n=o.current?.querySelectorAll(`.${a}-item`)[t];return n?.offsetParent&&n},[v,y]=n.useState(null),[b,x]=n.useState(null);e.Pr(()=>{if(h!==s){let e=_(h),t=_(s),n=r(e,p),i=r(t,p);g(s),y(n),x(i),e&&t?u():d()}},[s]);let S=n.useMemo(()=>i(p?v?.top??0:f===`rtl`?-v?.right:v?.left),[p,f,v]),C=n.useMemo(()=>i(p?b?.top??0:f===`rtl`?-b?.right:b?.left),[p,f,b]);return!v||!b?null:n.createElement(e.in,{visible:!0,motionName:l,motionAppear:!0,onAppearStart:()=>p?{transform:`translateY(var(--thumb-start-top))`,height:`var(--thumb-start-height)`}:{transform:`translateX(var(--thumb-start-left))`,width:`var(--thumb-start-width)`},onAppearActive:()=>p?{transform:`translateY(var(--thumb-active-top))`,height:`var(--thumb-active-height)`}:{transform:`translateX(var(--thumb-active-left))`,width:`var(--thumb-active-width)`},onVisibleChanged:()=>{y(null),x(null),d()}},({className:t,style:r},o)=>{let s={...r,"--thumb-start-left":S,"--thumb-start-width":i(v?.width),"--thumb-active-left":C,"--thumb-active-width":i(b?.width),"--thumb-start-top":S,"--thumb-start-height":i(v?.height),"--thumb-active-top":C,"--thumb-active-height":i(b?.height)},c={ref:e.Cr(m,o),style:s,className:e.Jn(`${a}-thumb`,t)};return process.env.NODE_ENV===`test`&&(c[`data-test-style`]=JSON.stringify(s)),n.createElement(`div`,c)})}function o(e){if(e.title!==void 0)return e.title;if(typeof e.label!=`object`)return e.label?.toString()}function s(e){return e.map(e=>{if(typeof e==`object`&&e){let t=o(e);return{...e,title:t}}return{label:e?.toString(),title:e?.toString(),value:e}})}var c=({prefixCls:t,className:r,style:i,styles:a,classNames:o,data:s,disabled:c,checked:l,label:u,title:d,value:f,name:p,onChange:m,onFocus:h,onBlur:g,onKeyDown:_,onKeyUp:v,onMouseDown:y,itemRender:b=e=>e})=>{let x=e=>{c||m(e,f)};return b(n.createElement(`label`,{className:e.Jn(r,{[`${t}-item-disabled`]:c}),style:i,onMouseDown:y},n.createElement(`input`,{name:p,className:`${t}-item-input`,type:`radio`,disabled:c,checked:l,onChange:x,onFocus:h,onBlur:g,onKeyDown:_,onKeyUp:v}),n.createElement(`div`,{className:e.Jn(`${t}-item-label`,o?.label),title:d,style:a?.label},u)),{item:s})},l=n.forwardRef((t,r)=>{let{prefixCls:i=`rc-segmented`,direction:o,vertical:l,options:u=[],disabled:d,defaultValue:f,value:p,name:m,onChange:h,className:g=``,style:_,styles:v,classNames:y,motionName:b=`thumb-motion`,itemRender:x,...S}=t,C=n.useRef(null),w=n.useMemo(()=>e.Cr(C,r),[C,r]),T=n.useMemo(()=>s(u),[u]),[E,D]=e.Mr(f??T[0]?.value,p),[O,k]=n.useState(!1),A=(e,t)=>{D(t),h?.(t)},j=e.cr(S,[`children`]),[M,N]=n.useState(!1),[P,F]=n.useState(!1),I=()=>{F(!0)},L=()=>{F(!1)},R=()=>{N(!1)},z=e=>{e.key===`Tab`&&N(!0)},B=e=>{let t=T.findIndex(e=>e.value===E),n=T.length,r=T[(t+e+n)%n];r&&(D(r.value),h?.(r.value))},V=e=>{switch(e.key){case`ArrowLeft`:case`ArrowUp`:B(-1);break;case`ArrowRight`:case`ArrowDown`:B(1);break}},H=t=>{let{value:r,disabled:a}=t;return n.createElement(c,e.ct({},t,{name:m,data:t,itemRender:x,key:r,prefixCls:i,className:e.Jn(t.className,`${i}-item`,y?.item,{[`${i}-item-selected`]:r===E&&!O,[`${i}-item-focused`]:P&&M&&r===E}),style:v?.item,classNames:y,styles:v,checked:r===E,onChange:A,onFocus:I,onBlur:L,onKeyDown:V,onKeyUp:z,onMouseDown:R,disabled:!!d||!!a}))};return n.createElement(`div`,e.ct({role:`radiogroup`,"aria-label":`segmented control`,tabIndex:d?void 0:0,"aria-orientation":l?`vertical`:`horizontal`,style:_},j,{className:e.Jn(i,{[`${i}-rtl`]:o===`rtl`,[`${i}-disabled`]:d,[`${i}-vertical`]:l},g),ref:w}),n.createElement(`div`,{className:`${i}-group`},n.createElement(a,{vertical:l,prefixCls:i,value:E,containerRef:C,motionName:`${i}-${b}`,direction:o,getValueIndex:e=>T.findIndex(t=>t.value===e),onMotionStart:()=>{k(!0)},onMotionEnd:()=>{k(!1)}}),T.map(H)))});process.env.NODE_ENV!==`production`&&(l.displayName=`Segmented`);var u=l;function d(e,t){return{[`${e}, ${e}:hover, ${e}:focus`]:{color:t.colorTextDisabled,cursor:`not-allowed`}}}var f=e=>({background:e.itemSelectedBg,boxShadow:e.boxShadowTertiary}),p={overflow:`hidden`,...e.vn},m=t=>{let{componentCls:n,motionDurationSlow:r,motionEaseInOut:i,motionDurationMid:a}=t,o=t.calc(t.controlHeight).sub(t.calc(t.trackPadding).mul(2)).equal(),s=t.calc(t.controlHeightLG).sub(t.calc(t.trackPadding).mul(2)).equal(),c=t.calc(t.controlHeightSM).sub(t.calc(t.trackPadding).mul(2)).equal();return{[n]:{...e.gn(t),display:`inline-block`,padding:t.trackPadding,color:t.itemColor,background:t.trackBg,borderRadius:t.borderRadius,transition:`all ${a}`,...e.mn(t),[`${n}-group`]:{position:`relative`,display:`flex`,alignItems:`stretch`,justifyItems:`flex-start`,flexDirection:`row`,width:`100%`},[`&${n}-rtl`]:{direction:`rtl`},[`&${n}-vertical`]:{[`${n}-group`]:{flexDirection:`column`},[`${n}-thumb`]:{width:`100%`,height:0,padding:`0 ${e.Un(t.paddingXXS)}`}},[`&${n}-block`]:{display:`flex`},[`&${n}-block ${n}-item`]:{flex:1,minWidth:0},[`${n}-item`]:{position:`relative`,textAlign:`center`,cursor:`pointer`,transition:`color ${a}`,borderRadius:t.borderRadiusSM,transform:`translateZ(0)`,"&-selected":{...f(t),color:t.itemSelectedColor},"&-focused":e.pn(t),"&::after":{content:`""`,position:`absolute`,zIndex:-1,width:`100%`,height:`100%`,top:0,insetInlineStart:0,borderRadius:`inherit`,opacity:0,pointerEvents:`none`,transition:[`opacity`,`background-color`].map(e=>`${e} ${a}`).join(`, `)},[`&:not(${n}-item-selected):not(${n}-item-disabled)`]:{"&:hover, &:active":{color:t.itemHoverColor},"&:hover::after":{opacity:1,backgroundColor:t.itemHoverBg},"&:active::after":{opacity:1,backgroundColor:t.itemActiveBg}},"&-label":{minHeight:o,lineHeight:e.Un(o),padding:`0 ${e.Un(t.segmentedPaddingHorizontal)}`,...p},"&-icon + *":{marginInlineStart:t.calc(t.marginSM).div(2).equal()},"&-input":{position:`absolute`,insetBlockStart:0,insetInlineStart:0,width:0,height:0,opacity:0,pointerEvents:`none`}},[`${n}-thumb`]:{...f(t),position:`absolute`,insetBlockStart:0,insetInlineStart:0,width:0,height:`100%`,padding:`${e.Un(t.paddingXXS)} 0`,borderRadius:t.borderRadiusSM,[`& ~ ${n}-item:not(${n}-item-selected):not(${n}-item-disabled)::after`]:{backgroundColor:`transparent`}},[`&${n}-lg`]:{borderRadius:t.borderRadiusLG,[`${n}-item-label`]:{minHeight:s,lineHeight:e.Un(s),padding:`0 ${e.Un(t.segmentedPaddingHorizontal)}`,fontSize:t.fontSizeLG},[`${n}-item, ${n}-thumb`]:{borderRadius:t.borderRadius}},[`&${n}-sm`]:{borderRadius:t.borderRadiusSM,[`${n}-item-label`]:{minHeight:c,lineHeight:e.Un(c),padding:`0 ${e.Un(t.segmentedPaddingHorizontalSM)}`},[`${n}-item, ${n}-thumb`]:{borderRadius:t.borderRadiusXS}},...d(`&-disabled ${n}-item`,t),...d(`${n}-item-disabled`,t),[`${n}-thumb-motion-appear-active`]:{willChange:`transform, width`,transition:[`transform`,`width`].map(e=>`${e} ${r} ${i}`).join(`, `)},[`&${n}-shape-round`]:{borderRadius:9999,[`${n}-item, ${n}-thumb`]:{borderRadius:9999}}}}},h=e.un(`Segmented`,t=>{let{lineWidth:n,calc:r}=t;return m(e.In(t,{segmentedPaddingHorizontal:r(t.controlPaddingHorizontal).sub(n).equal(),segmentedPaddingHorizontalSM:r(t.controlPaddingHorizontalSM).sub(n).equal()}))},e=>{let{colorTextLabel:t,colorText:n,colorFillSecondary:r,colorBgElevated:i,colorFill:a,lineWidthBold:o,colorBgLayout:s}=e;return{trackPadding:o,trackBg:s,itemColor:t,itemHoverColor:n,itemHoverBg:r,itemSelectedBg:i,itemActiveBg:a,itemSelectedColor:n}});function g(t){return e.en(t)&&!!t?.icon}var _=n.forwardRef((t,r)=>{let i=e.jr(),{prefixCls:a,className:o,rootClassName:s,block:c,options:l=[],size:d,style:f,vertical:p,orientation:m,shape:_=`default`,name:v=i,styles:y,classNames:b,...x}=t,{getPrefixCls:S,direction:C,className:w,style:T,classNames:E,styles:D}=e.Kn(`segmented`),O={...t,options:l,size:d,shape:_},[k,A]=e.Xt([E,b],[D,y],{props:O}),j=S(`segmented`,a),[M,N]=h(j),P=e.St(d),F=n.useMemo(()=>l.map(t=>{if(g(t)){let{icon:r,label:i,...a}=t;return{...a,label:n.createElement(n.Fragment,null,n.createElement(`span`,{className:e.Jn(`${j}-item-icon`,k.icon),style:A.icon},r),i&&n.createElement(`span`,null,i))}}return t}),[l,j,k.icon,A.icon]),[,I]=e.At(m,p),L=e.Jn(o,s,w,k.root,{[`${j}-block`]:c,[`${j}-sm`]:P===`small`,[`${j}-lg`]:P===`large`,[`${j}-vertical`]:I,[`${j}-shape-${_}`]:_===`round`},M,N),R={...A.root,...T,...f},z=(t,{item:r})=>{if(!r.tooltip)return t;let i=e.en(r.tooltip)?r.tooltip:{title:r.tooltip};return n.createElement(e.S,{...i},t)};return n.createElement(u,{...x,name:v,className:L,style:R,classNames:k,styles:A,itemRender:z,options:F,ref:r,prefixCls:j,direction:C,vertical:I})});process.env.NODE_ENV!==`production`&&(_.displayName=`Segmented`);var v={icon:{tag:`svg`,attrs:{viewBox:`64 64 896 896`,focusable:`false`},children:[{tag:`path`,attrs:{d:`M758.2 839.1C851.8 765.9 912 651.9 912 523.9 912 303 733.5 124.3 512.6 124 291.4 123.7 112 302.8 112 523.9c0 125.2 57.5 236.9 147.6 310.2 3.5 2.8 8.6 2.2 11.4-1.3l39.4-50.5c2.7-3.4 2.1-8.3-1.2-11.1-8.1-6.6-15.9-13.7-23.4-21.2a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-9.3 9.3-19.1 18-29.3 26L668.2 724a8 8 0 00-14.1 3l-39.6 162.2c-1.2 5 2.6 9.9 7.7 9.9l167 .8c6.7 0 10.5-7.7 6.3-12.9l-37.3-47.9z`}}]},name:`redo`,theme:`outlined`};function y(){return y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y.apply(this,arguments)}var b=n.forwardRef((t,r)=>n.createElement(e.cn,y({},t,{ref:r,icon:v})));process.env.NODE_ENV!==`production`&&(b.displayName=`RedoOutlined`);var x=e.Rr(),S=({datePickerComponent:r,searchText:i,noDateText:a,emptyText:o,searchSelect:s,radioOptions:c,searchOptions:l,searchType:u,textSearchValue:d=``,dateSearchValue:f,numberSearchValue:p,multiselectSearchValue:m,multiselectOptions:h,onChangeSearch:g,onChangeTextSearch:v,onChangeRadioSearch:y,onChangeDateSearch:b,onChangeNumberSearch:S,onChangeMultiselectSearch:C})=>{let[w,T]=(0,n.useState)(d),{token:{borderRadius:E,colorBgBase:D,paddingXXS:O}}=t.a.useToken(),{isMobileMaxWidth:k}=t.Q(),{isSmallMaxWidth:A}=t.$(),j=(0,n.useMemo)(()=>A?2:k?5:15,[k,A]);t.ot(()=>{v?.(w)},t.tt.milliseconds.milliseconds500,[w]);let M=()=>{T(``)};return(0,x.jsxs)(t.c,{className:t.t.flex,gap:`small`,style:{padding:O,borderRadius:E,background:D},children:[(0,x.jsx)(e.j,{defaultValue:s,value:s,style:{width:120,minWidth:120},options:l,onChange:e=>{g(e),M()}}),{text:(0,x.jsx)(t.o,{placeholder:i,value:w,allowClear:!0,onChange:e=>{T(e.target.value.replace(/"/g,``))}}),radio:(0,x.jsx)(_,{options:c,defaultValue:`all`,onChange:y}),date:(0,n.createElement)(r,{noDateText:a,currentValue:f??``,onChangeDate:e=>{b?.(e)}}),number:(0,x.jsx)(t.n,{emptyText:o,value:p,placeholder:i,min:0,max:2147483647,onChange:e=>{!e&&e!==0||S?.(+e)}}),multiselect:(0,x.jsx)(e.j,{className:t.t.select,mode:`multiple`,placeholder:i,maxTagCount:1,maxTagTextLength:j,showSearch:!1,allowClear:!0,options:h,value:m,onChange:C})}[u]]})},C=({sortTooltipText:n,updateDataText:r,refreshText:i,createText:a,createNewElementText:o,order:s,orderOptions:c,createButtonTooltip:l,searchProps:u,isCanCreate:d,isHiddenCreate:f,onCreate:p,onRefetch:m,onChangeOrder:h})=>(0,x.jsxs)(t.c,{gap:`middle`,justify:`space-between`,wrap:`wrap`,style:{marginBottom:t.rt.OFFSET[1]},children:[(0,x.jsxs)(t.c,{align:`center`,gap:`middle`,wrap:`wrap`,children:[(0,x.jsx)(S,{...u}),(0,x.jsx)(e.S,{title:n,children:(0,x.jsx)(e.j,{className:t.t.sort,value:s,options:c,onChange:h})})]}),(0,x.jsxs)(t.c,{className:t.t.buttonsContainer,gap:`small`,align:`center`,children:[m&&(0,x.jsx)(e.S,{title:r,children:(0,x.jsx)(e.x,{className:t.t.button,icon:(0,x.jsx)(b,{}),onClick:m,children:i})}),!f&&d&&(0,x.jsx)(e.S,{title:l??o,children:(0,x.jsx)(e.x,{className:t.t.button,type:`primary`,icon:(0,x.jsx)(t.l,{}),onClick:p,children:a})})]})]});exports.TableHead=C;
|
|
@@ -0,0 +1,588 @@
|
|
|
1
|
+
import { At as e, Cr as t, In as n, Jn as r, Kn as i, Mr as a, Pr as o, Rr as s, S as c, St as l, Un as u, Xt as d, cn as f, cr as p, ct as m, en as h, gn as g, in as _, j as v, jr as y, mn as b, pn as x, un as S, vn as C, x as w } from "./space-DbOTEMQH.js";
|
|
2
|
+
import { $ as T, Q as E, a as D, c as O, l as k, n as A, o as j, ot as M, rt as N, t as P, tt as F } from "./styles.module-klEM0K92.js";
|
|
3
|
+
import * as I from "react";
|
|
4
|
+
import { createElement as L, useMemo as R, useState as z } from "react";
|
|
5
|
+
//#region node_modules/@rc-component/segmented/es/MotionThumb.js
|
|
6
|
+
var B = (e, t) => {
|
|
7
|
+
if (!e) return null;
|
|
8
|
+
let n = {
|
|
9
|
+
left: e.offsetLeft,
|
|
10
|
+
right: e.parentElement.clientWidth - e.clientWidth - e.offsetLeft,
|
|
11
|
+
width: e.clientWidth,
|
|
12
|
+
top: e.offsetTop,
|
|
13
|
+
bottom: e.parentElement.clientHeight - e.clientHeight - e.offsetTop,
|
|
14
|
+
height: e.clientHeight
|
|
15
|
+
};
|
|
16
|
+
return t ? {
|
|
17
|
+
left: 0,
|
|
18
|
+
right: 0,
|
|
19
|
+
width: 0,
|
|
20
|
+
top: n.top,
|
|
21
|
+
bottom: n.bottom,
|
|
22
|
+
height: n.height
|
|
23
|
+
} : {
|
|
24
|
+
left: n.left,
|
|
25
|
+
right: n.right,
|
|
26
|
+
width: n.width,
|
|
27
|
+
top: 0,
|
|
28
|
+
bottom: 0,
|
|
29
|
+
height: 0
|
|
30
|
+
};
|
|
31
|
+
}, V = (e) => e === void 0 ? void 0 : `${e}px`;
|
|
32
|
+
function H(e) {
|
|
33
|
+
let { prefixCls: n, containerRef: i, value: a, getValueIndex: s, motionName: c, onMotionStart: l, onMotionEnd: u, direction: d, vertical: f = !1 } = e, p = I.useRef(null), [m, h] = I.useState(a), g = (e) => {
|
|
34
|
+
let t = s(e), r = i.current?.querySelectorAll(`.${n}-item`)[t];
|
|
35
|
+
return r?.offsetParent && r;
|
|
36
|
+
}, [v, y] = I.useState(null), [b, x] = I.useState(null);
|
|
37
|
+
o(() => {
|
|
38
|
+
if (m !== a) {
|
|
39
|
+
let e = g(m), t = g(a), n = B(e, f), r = B(t, f);
|
|
40
|
+
h(a), y(n), x(r), e && t ? l() : u();
|
|
41
|
+
}
|
|
42
|
+
}, [a]);
|
|
43
|
+
let S = I.useMemo(() => V(f ? v?.top ?? 0 : d === "rtl" ? -v?.right : v?.left), [
|
|
44
|
+
f,
|
|
45
|
+
d,
|
|
46
|
+
v
|
|
47
|
+
]), C = I.useMemo(() => V(f ? b?.top ?? 0 : d === "rtl" ? -b?.right : b?.left), [
|
|
48
|
+
f,
|
|
49
|
+
d,
|
|
50
|
+
b
|
|
51
|
+
]);
|
|
52
|
+
return !v || !b ? null : /* @__PURE__ */ I.createElement(_, {
|
|
53
|
+
visible: !0,
|
|
54
|
+
motionName: c,
|
|
55
|
+
motionAppear: !0,
|
|
56
|
+
onAppearStart: () => f ? {
|
|
57
|
+
transform: "translateY(var(--thumb-start-top))",
|
|
58
|
+
height: "var(--thumb-start-height)"
|
|
59
|
+
} : {
|
|
60
|
+
transform: "translateX(var(--thumb-start-left))",
|
|
61
|
+
width: "var(--thumb-start-width)"
|
|
62
|
+
},
|
|
63
|
+
onAppearActive: () => f ? {
|
|
64
|
+
transform: "translateY(var(--thumb-active-top))",
|
|
65
|
+
height: "var(--thumb-active-height)"
|
|
66
|
+
} : {
|
|
67
|
+
transform: "translateX(var(--thumb-active-left))",
|
|
68
|
+
width: "var(--thumb-active-width)"
|
|
69
|
+
},
|
|
70
|
+
onVisibleChanged: () => {
|
|
71
|
+
y(null), x(null), u();
|
|
72
|
+
}
|
|
73
|
+
}, ({ className: e, style: i }, a) => {
|
|
74
|
+
let o = {
|
|
75
|
+
...i,
|
|
76
|
+
"--thumb-start-left": S,
|
|
77
|
+
"--thumb-start-width": V(v?.width),
|
|
78
|
+
"--thumb-active-left": C,
|
|
79
|
+
"--thumb-active-width": V(b?.width),
|
|
80
|
+
"--thumb-start-top": S,
|
|
81
|
+
"--thumb-start-height": V(v?.height),
|
|
82
|
+
"--thumb-active-top": C,
|
|
83
|
+
"--thumb-active-height": V(b?.height)
|
|
84
|
+
}, s = {
|
|
85
|
+
ref: t(p, a),
|
|
86
|
+
style: o,
|
|
87
|
+
className: r(`${n}-thumb`, e)
|
|
88
|
+
};
|
|
89
|
+
return process.env.NODE_ENV === "test" && (s["data-test-style"] = JSON.stringify(o)), /* @__PURE__ */ I.createElement("div", s);
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
//#endregion
|
|
93
|
+
//#region node_modules/@rc-component/segmented/es/index.js
|
|
94
|
+
function U(e) {
|
|
95
|
+
if (e.title !== void 0) return e.title;
|
|
96
|
+
if (typeof e.label != "object") return e.label?.toString();
|
|
97
|
+
}
|
|
98
|
+
function W(e) {
|
|
99
|
+
return e.map((e) => {
|
|
100
|
+
if (typeof e == "object" && e) {
|
|
101
|
+
let t = U(e);
|
|
102
|
+
return {
|
|
103
|
+
...e,
|
|
104
|
+
title: t
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
return {
|
|
108
|
+
label: e?.toString(),
|
|
109
|
+
title: e?.toString(),
|
|
110
|
+
value: e
|
|
111
|
+
};
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
var G = ({ prefixCls: e, className: t, style: n, styles: i, classNames: a, data: o, disabled: s, checked: c, label: l, title: u, value: d, name: f, onChange: p, onFocus: m, onBlur: h, onKeyDown: g, onKeyUp: _, onMouseDown: v, itemRender: y = (e) => e }) => {
|
|
115
|
+
let b = (e) => {
|
|
116
|
+
s || p(e, d);
|
|
117
|
+
};
|
|
118
|
+
return y(/* @__PURE__ */ I.createElement("label", {
|
|
119
|
+
className: r(t, { [`${e}-item-disabled`]: s }),
|
|
120
|
+
style: n,
|
|
121
|
+
onMouseDown: v
|
|
122
|
+
}, /* @__PURE__ */ I.createElement("input", {
|
|
123
|
+
name: f,
|
|
124
|
+
className: `${e}-item-input`,
|
|
125
|
+
type: "radio",
|
|
126
|
+
disabled: s,
|
|
127
|
+
checked: c,
|
|
128
|
+
onChange: b,
|
|
129
|
+
onFocus: m,
|
|
130
|
+
onBlur: h,
|
|
131
|
+
onKeyDown: g,
|
|
132
|
+
onKeyUp: _
|
|
133
|
+
}), /* @__PURE__ */ I.createElement("div", {
|
|
134
|
+
className: r(`${e}-item-label`, a?.label),
|
|
135
|
+
title: u,
|
|
136
|
+
style: i?.label
|
|
137
|
+
}, l)), { item: o });
|
|
138
|
+
}, K = /* @__PURE__ */ I.forwardRef((e, n) => {
|
|
139
|
+
let { prefixCls: i = "rc-segmented", direction: o, vertical: s, options: c = [], disabled: l, defaultValue: u, value: d, name: f, onChange: h, className: g = "", style: _, styles: v, classNames: y, motionName: b = "thumb-motion", itemRender: x, ...S } = e, C = I.useRef(null), w = I.useMemo(() => t(C, n), [C, n]), T = I.useMemo(() => W(c), [c]), [E, D] = a(u ?? T[0]?.value, d), [O, k] = I.useState(!1), A = (e, t) => {
|
|
140
|
+
D(t), h?.(t);
|
|
141
|
+
}, j = p(S, ["children"]), [M, N] = I.useState(!1), [P, F] = I.useState(!1), L = () => {
|
|
142
|
+
F(!0);
|
|
143
|
+
}, R = () => {
|
|
144
|
+
F(!1);
|
|
145
|
+
}, z = () => {
|
|
146
|
+
N(!1);
|
|
147
|
+
}, B = (e) => {
|
|
148
|
+
e.key === "Tab" && N(!0);
|
|
149
|
+
}, V = (e) => {
|
|
150
|
+
let t = T.findIndex((e) => e.value === E), n = T.length, r = T[(t + e + n) % n];
|
|
151
|
+
r && (D(r.value), h?.(r.value));
|
|
152
|
+
}, U = (e) => {
|
|
153
|
+
switch (e.key) {
|
|
154
|
+
case "ArrowLeft":
|
|
155
|
+
case "ArrowUp":
|
|
156
|
+
V(-1);
|
|
157
|
+
break;
|
|
158
|
+
case "ArrowRight":
|
|
159
|
+
case "ArrowDown":
|
|
160
|
+
V(1);
|
|
161
|
+
break;
|
|
162
|
+
}
|
|
163
|
+
}, K = (e) => {
|
|
164
|
+
let { value: t, disabled: n } = e;
|
|
165
|
+
return /* @__PURE__ */ I.createElement(G, m({}, e, {
|
|
166
|
+
name: f,
|
|
167
|
+
data: e,
|
|
168
|
+
itemRender: x,
|
|
169
|
+
key: t,
|
|
170
|
+
prefixCls: i,
|
|
171
|
+
className: r(e.className, `${i}-item`, y?.item, {
|
|
172
|
+
[`${i}-item-selected`]: t === E && !O,
|
|
173
|
+
[`${i}-item-focused`]: P && M && t === E
|
|
174
|
+
}),
|
|
175
|
+
style: v?.item,
|
|
176
|
+
classNames: y,
|
|
177
|
+
styles: v,
|
|
178
|
+
checked: t === E,
|
|
179
|
+
onChange: A,
|
|
180
|
+
onFocus: L,
|
|
181
|
+
onBlur: R,
|
|
182
|
+
onKeyDown: U,
|
|
183
|
+
onKeyUp: B,
|
|
184
|
+
onMouseDown: z,
|
|
185
|
+
disabled: !!l || !!n
|
|
186
|
+
}));
|
|
187
|
+
};
|
|
188
|
+
return /* @__PURE__ */ I.createElement("div", m({
|
|
189
|
+
role: "radiogroup",
|
|
190
|
+
"aria-label": "segmented control",
|
|
191
|
+
tabIndex: l ? void 0 : 0,
|
|
192
|
+
"aria-orientation": s ? "vertical" : "horizontal",
|
|
193
|
+
style: _
|
|
194
|
+
}, j, {
|
|
195
|
+
className: r(i, {
|
|
196
|
+
[`${i}-rtl`]: o === "rtl",
|
|
197
|
+
[`${i}-disabled`]: l,
|
|
198
|
+
[`${i}-vertical`]: s
|
|
199
|
+
}, g),
|
|
200
|
+
ref: w
|
|
201
|
+
}), /* @__PURE__ */ I.createElement("div", { className: `${i}-group` }, /* @__PURE__ */ I.createElement(H, {
|
|
202
|
+
vertical: s,
|
|
203
|
+
prefixCls: i,
|
|
204
|
+
value: E,
|
|
205
|
+
containerRef: C,
|
|
206
|
+
motionName: `${i}-${b}`,
|
|
207
|
+
direction: o,
|
|
208
|
+
getValueIndex: (e) => T.findIndex((t) => t.value === e),
|
|
209
|
+
onMotionStart: () => {
|
|
210
|
+
k(!0);
|
|
211
|
+
},
|
|
212
|
+
onMotionEnd: () => {
|
|
213
|
+
k(!1);
|
|
214
|
+
}
|
|
215
|
+
}), T.map(K)));
|
|
216
|
+
});
|
|
217
|
+
process.env.NODE_ENV !== "production" && (K.displayName = "Segmented");
|
|
218
|
+
var q = K;
|
|
219
|
+
//#endregion
|
|
220
|
+
//#region node_modules/antd/es/segmented/style/index.js
|
|
221
|
+
function J(e, t) {
|
|
222
|
+
return { [`${e}, ${e}:hover, ${e}:focus`]: {
|
|
223
|
+
color: t.colorTextDisabled,
|
|
224
|
+
cursor: "not-allowed"
|
|
225
|
+
} };
|
|
226
|
+
}
|
|
227
|
+
var Y = (e) => ({
|
|
228
|
+
background: e.itemSelectedBg,
|
|
229
|
+
boxShadow: e.boxShadowTertiary
|
|
230
|
+
}), ee = {
|
|
231
|
+
overflow: "hidden",
|
|
232
|
+
...C
|
|
233
|
+
}, te = (e) => {
|
|
234
|
+
let { componentCls: t, motionDurationSlow: n, motionEaseInOut: r, motionDurationMid: i } = e, a = e.calc(e.controlHeight).sub(e.calc(e.trackPadding).mul(2)).equal(), o = e.calc(e.controlHeightLG).sub(e.calc(e.trackPadding).mul(2)).equal(), s = e.calc(e.controlHeightSM).sub(e.calc(e.trackPadding).mul(2)).equal();
|
|
235
|
+
return { [t]: {
|
|
236
|
+
...g(e),
|
|
237
|
+
display: "inline-block",
|
|
238
|
+
padding: e.trackPadding,
|
|
239
|
+
color: e.itemColor,
|
|
240
|
+
background: e.trackBg,
|
|
241
|
+
borderRadius: e.borderRadius,
|
|
242
|
+
transition: `all ${i}`,
|
|
243
|
+
...b(e),
|
|
244
|
+
[`${t}-group`]: {
|
|
245
|
+
position: "relative",
|
|
246
|
+
display: "flex",
|
|
247
|
+
alignItems: "stretch",
|
|
248
|
+
justifyItems: "flex-start",
|
|
249
|
+
flexDirection: "row",
|
|
250
|
+
width: "100%"
|
|
251
|
+
},
|
|
252
|
+
[`&${t}-rtl`]: { direction: "rtl" },
|
|
253
|
+
[`&${t}-vertical`]: {
|
|
254
|
+
[`${t}-group`]: { flexDirection: "column" },
|
|
255
|
+
[`${t}-thumb`]: {
|
|
256
|
+
width: "100%",
|
|
257
|
+
height: 0,
|
|
258
|
+
padding: `0 ${u(e.paddingXXS)}`
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
[`&${t}-block`]: { display: "flex" },
|
|
262
|
+
[`&${t}-block ${t}-item`]: {
|
|
263
|
+
flex: 1,
|
|
264
|
+
minWidth: 0
|
|
265
|
+
},
|
|
266
|
+
[`${t}-item`]: {
|
|
267
|
+
position: "relative",
|
|
268
|
+
textAlign: "center",
|
|
269
|
+
cursor: "pointer",
|
|
270
|
+
transition: `color ${i}`,
|
|
271
|
+
borderRadius: e.borderRadiusSM,
|
|
272
|
+
transform: "translateZ(0)",
|
|
273
|
+
"&-selected": {
|
|
274
|
+
...Y(e),
|
|
275
|
+
color: e.itemSelectedColor
|
|
276
|
+
},
|
|
277
|
+
"&-focused": x(e),
|
|
278
|
+
"&::after": {
|
|
279
|
+
content: "\"\"",
|
|
280
|
+
position: "absolute",
|
|
281
|
+
zIndex: -1,
|
|
282
|
+
width: "100%",
|
|
283
|
+
height: "100%",
|
|
284
|
+
top: 0,
|
|
285
|
+
insetInlineStart: 0,
|
|
286
|
+
borderRadius: "inherit",
|
|
287
|
+
opacity: 0,
|
|
288
|
+
pointerEvents: "none",
|
|
289
|
+
transition: ["opacity", "background-color"].map((e) => `${e} ${i}`).join(", ")
|
|
290
|
+
},
|
|
291
|
+
[`&:not(${t}-item-selected):not(${t}-item-disabled)`]: {
|
|
292
|
+
"&:hover, &:active": { color: e.itemHoverColor },
|
|
293
|
+
"&:hover::after": {
|
|
294
|
+
opacity: 1,
|
|
295
|
+
backgroundColor: e.itemHoverBg
|
|
296
|
+
},
|
|
297
|
+
"&:active::after": {
|
|
298
|
+
opacity: 1,
|
|
299
|
+
backgroundColor: e.itemActiveBg
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
"&-label": {
|
|
303
|
+
minHeight: a,
|
|
304
|
+
lineHeight: u(a),
|
|
305
|
+
padding: `0 ${u(e.segmentedPaddingHorizontal)}`,
|
|
306
|
+
...ee
|
|
307
|
+
},
|
|
308
|
+
"&-icon + *": { marginInlineStart: e.calc(e.marginSM).div(2).equal() },
|
|
309
|
+
"&-input": {
|
|
310
|
+
position: "absolute",
|
|
311
|
+
insetBlockStart: 0,
|
|
312
|
+
insetInlineStart: 0,
|
|
313
|
+
width: 0,
|
|
314
|
+
height: 0,
|
|
315
|
+
opacity: 0,
|
|
316
|
+
pointerEvents: "none"
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
[`${t}-thumb`]: {
|
|
320
|
+
...Y(e),
|
|
321
|
+
position: "absolute",
|
|
322
|
+
insetBlockStart: 0,
|
|
323
|
+
insetInlineStart: 0,
|
|
324
|
+
width: 0,
|
|
325
|
+
height: "100%",
|
|
326
|
+
padding: `${u(e.paddingXXS)} 0`,
|
|
327
|
+
borderRadius: e.borderRadiusSM,
|
|
328
|
+
[`& ~ ${t}-item:not(${t}-item-selected):not(${t}-item-disabled)::after`]: { backgroundColor: "transparent" }
|
|
329
|
+
},
|
|
330
|
+
[`&${t}-lg`]: {
|
|
331
|
+
borderRadius: e.borderRadiusLG,
|
|
332
|
+
[`${t}-item-label`]: {
|
|
333
|
+
minHeight: o,
|
|
334
|
+
lineHeight: u(o),
|
|
335
|
+
padding: `0 ${u(e.segmentedPaddingHorizontal)}`,
|
|
336
|
+
fontSize: e.fontSizeLG
|
|
337
|
+
},
|
|
338
|
+
[`${t}-item, ${t}-thumb`]: { borderRadius: e.borderRadius }
|
|
339
|
+
},
|
|
340
|
+
[`&${t}-sm`]: {
|
|
341
|
+
borderRadius: e.borderRadiusSM,
|
|
342
|
+
[`${t}-item-label`]: {
|
|
343
|
+
minHeight: s,
|
|
344
|
+
lineHeight: u(s),
|
|
345
|
+
padding: `0 ${u(e.segmentedPaddingHorizontalSM)}`
|
|
346
|
+
},
|
|
347
|
+
[`${t}-item, ${t}-thumb`]: { borderRadius: e.borderRadiusXS }
|
|
348
|
+
},
|
|
349
|
+
...J(`&-disabled ${t}-item`, e),
|
|
350
|
+
...J(`${t}-item-disabled`, e),
|
|
351
|
+
[`${t}-thumb-motion-appear-active`]: {
|
|
352
|
+
willChange: "transform, width",
|
|
353
|
+
transition: ["transform", "width"].map((e) => `${e} ${n} ${r}`).join(", ")
|
|
354
|
+
},
|
|
355
|
+
[`&${t}-shape-round`]: {
|
|
356
|
+
borderRadius: 9999,
|
|
357
|
+
[`${t}-item, ${t}-thumb`]: { borderRadius: 9999 }
|
|
358
|
+
}
|
|
359
|
+
} };
|
|
360
|
+
}, ne = S("Segmented", (e) => {
|
|
361
|
+
let { lineWidth: t, calc: r } = e;
|
|
362
|
+
return te(n(e, {
|
|
363
|
+
segmentedPaddingHorizontal: r(e.controlPaddingHorizontal).sub(t).equal(),
|
|
364
|
+
segmentedPaddingHorizontalSM: r(e.controlPaddingHorizontalSM).sub(t).equal()
|
|
365
|
+
}));
|
|
366
|
+
}, (e) => {
|
|
367
|
+
let { colorTextLabel: t, colorText: n, colorFillSecondary: r, colorBgElevated: i, colorFill: a, lineWidthBold: o, colorBgLayout: s } = e;
|
|
368
|
+
return {
|
|
369
|
+
trackPadding: o,
|
|
370
|
+
trackBg: s,
|
|
371
|
+
itemColor: t,
|
|
372
|
+
itemHoverColor: n,
|
|
373
|
+
itemHoverBg: r,
|
|
374
|
+
itemSelectedBg: i,
|
|
375
|
+
itemActiveBg: a,
|
|
376
|
+
itemSelectedColor: n
|
|
377
|
+
};
|
|
378
|
+
});
|
|
379
|
+
//#endregion
|
|
380
|
+
//#region node_modules/antd/es/segmented/index.js
|
|
381
|
+
function re(e) {
|
|
382
|
+
return h(e) && !!e?.icon;
|
|
383
|
+
}
|
|
384
|
+
var X = /* @__PURE__ */ I.forwardRef((t, n) => {
|
|
385
|
+
let a = y(), { prefixCls: o, className: s, rootClassName: u, block: f, options: p = [], size: m, style: g, vertical: _, orientation: v, shape: b = "default", name: x = a, styles: S, classNames: C, ...w } = t, { getPrefixCls: T, direction: E, className: D, style: O, classNames: k, styles: A } = i("segmented"), j = {
|
|
386
|
+
...t,
|
|
387
|
+
options: p,
|
|
388
|
+
size: m,
|
|
389
|
+
shape: b
|
|
390
|
+
}, [M, N] = d([k, C], [A, S], { props: j }), P = T("segmented", o), [F, L] = ne(P), R = l(m), z = I.useMemo(() => p.map((e) => {
|
|
391
|
+
if (re(e)) {
|
|
392
|
+
let { icon: t, label: n, ...i } = e;
|
|
393
|
+
return {
|
|
394
|
+
...i,
|
|
395
|
+
label: /* @__PURE__ */ I.createElement(I.Fragment, null, /* @__PURE__ */ I.createElement("span", {
|
|
396
|
+
className: r(`${P}-item-icon`, M.icon),
|
|
397
|
+
style: N.icon
|
|
398
|
+
}, t), n && /* @__PURE__ */ I.createElement("span", null, n))
|
|
399
|
+
};
|
|
400
|
+
}
|
|
401
|
+
return e;
|
|
402
|
+
}), [
|
|
403
|
+
p,
|
|
404
|
+
P,
|
|
405
|
+
M.icon,
|
|
406
|
+
N.icon
|
|
407
|
+
]), [, B] = e(v, _), V = r(s, u, D, M.root, {
|
|
408
|
+
[`${P}-block`]: f,
|
|
409
|
+
[`${P}-sm`]: R === "small",
|
|
410
|
+
[`${P}-lg`]: R === "large",
|
|
411
|
+
[`${P}-vertical`]: B,
|
|
412
|
+
[`${P}-shape-${b}`]: b === "round"
|
|
413
|
+
}, F, L), H = {
|
|
414
|
+
...N.root,
|
|
415
|
+
...O,
|
|
416
|
+
...g
|
|
417
|
+
}, U = (e, { item: t }) => {
|
|
418
|
+
if (!t.tooltip) return e;
|
|
419
|
+
let n = h(t.tooltip) ? t.tooltip : { title: t.tooltip };
|
|
420
|
+
return /* @__PURE__ */ I.createElement(c, { ...n }, e);
|
|
421
|
+
};
|
|
422
|
+
return /* @__PURE__ */ I.createElement(q, {
|
|
423
|
+
...w,
|
|
424
|
+
name: x,
|
|
425
|
+
className: V,
|
|
426
|
+
style: H,
|
|
427
|
+
classNames: M,
|
|
428
|
+
styles: N,
|
|
429
|
+
itemRender: U,
|
|
430
|
+
options: z,
|
|
431
|
+
ref: n,
|
|
432
|
+
prefixCls: P,
|
|
433
|
+
direction: E,
|
|
434
|
+
vertical: B
|
|
435
|
+
});
|
|
436
|
+
});
|
|
437
|
+
process.env.NODE_ENV !== "production" && (X.displayName = "Segmented");
|
|
438
|
+
//#endregion
|
|
439
|
+
//#region node_modules/@ant-design/icons-svg/es/asn/RedoOutlined.js
|
|
440
|
+
var ie = {
|
|
441
|
+
icon: {
|
|
442
|
+
tag: "svg",
|
|
443
|
+
attrs: {
|
|
444
|
+
viewBox: "64 64 896 896",
|
|
445
|
+
focusable: "false"
|
|
446
|
+
},
|
|
447
|
+
children: [{
|
|
448
|
+
tag: "path",
|
|
449
|
+
attrs: { d: "M758.2 839.1C851.8 765.9 912 651.9 912 523.9 912 303 733.5 124.3 512.6 124 291.4 123.7 112 302.8 112 523.9c0 125.2 57.5 236.9 147.6 310.2 3.5 2.8 8.6 2.2 11.4-1.3l39.4-50.5c2.7-3.4 2.1-8.3-1.2-11.1-8.1-6.6-15.9-13.7-23.4-21.2a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-9.3 9.3-19.1 18-29.3 26L668.2 724a8 8 0 00-14.1 3l-39.6 162.2c-1.2 5 2.6 9.9 7.7 9.9l167 .8c6.7 0 10.5-7.7 6.3-12.9l-37.3-47.9z" }
|
|
450
|
+
}]
|
|
451
|
+
},
|
|
452
|
+
name: "redo",
|
|
453
|
+
theme: "outlined"
|
|
454
|
+
};
|
|
455
|
+
//#endregion
|
|
456
|
+
//#region node_modules/@ant-design/icons/es/icons/RedoOutlined.js
|
|
457
|
+
function Z() {
|
|
458
|
+
return Z = Object.assign ? Object.assign.bind() : function(e) {
|
|
459
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
460
|
+
var n = arguments[t];
|
|
461
|
+
for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
462
|
+
}
|
|
463
|
+
return e;
|
|
464
|
+
}, Z.apply(this, arguments);
|
|
465
|
+
}
|
|
466
|
+
var Q = /* @__PURE__ */ I.forwardRef((e, t) => /* @__PURE__ */ I.createElement(f, Z({}, e, {
|
|
467
|
+
ref: t,
|
|
468
|
+
icon: ie
|
|
469
|
+
})));
|
|
470
|
+
process.env.NODE_ENV !== "production" && (Q.displayName = "RedoOutlined");
|
|
471
|
+
//#endregion
|
|
472
|
+
//#region src/shared/ui/admin-table/table-search.tsx
|
|
473
|
+
var $ = s(), ae = ({ datePickerComponent: e, searchText: t, noDateText: n, emptyText: r, searchSelect: i, radioOptions: a, searchOptions: o, searchType: s, textSearchValue: c = "", dateSearchValue: l, numberSearchValue: u, multiselectSearchValue: d, multiselectOptions: f, onChangeSearch: p, onChangeTextSearch: m, onChangeRadioSearch: h, onChangeDateSearch: g, onChangeNumberSearch: _, onChangeMultiselectSearch: y }) => {
|
|
474
|
+
let [b, x] = z(c), { token: { borderRadius: S, colorBgBase: C, paddingXXS: w } } = D.useToken(), { isMobileMaxWidth: k } = E(), { isSmallMaxWidth: N } = T(), I = R(() => N ? 2 : k ? 5 : 15, [k, N]);
|
|
475
|
+
M(() => {
|
|
476
|
+
m?.(b);
|
|
477
|
+
}, F.milliseconds.milliseconds500, [b]);
|
|
478
|
+
let B = () => {
|
|
479
|
+
x("");
|
|
480
|
+
};
|
|
481
|
+
return /* @__PURE__ */ (0, $.jsxs)(O, {
|
|
482
|
+
className: P.flex,
|
|
483
|
+
gap: "small",
|
|
484
|
+
style: {
|
|
485
|
+
padding: w,
|
|
486
|
+
borderRadius: S,
|
|
487
|
+
background: C
|
|
488
|
+
},
|
|
489
|
+
children: [/* @__PURE__ */ (0, $.jsx)(v, {
|
|
490
|
+
defaultValue: i,
|
|
491
|
+
value: i,
|
|
492
|
+
style: {
|
|
493
|
+
width: 120,
|
|
494
|
+
minWidth: 120
|
|
495
|
+
},
|
|
496
|
+
options: o,
|
|
497
|
+
onChange: (e) => {
|
|
498
|
+
p(e), B();
|
|
499
|
+
}
|
|
500
|
+
}), {
|
|
501
|
+
text: /* @__PURE__ */ (0, $.jsx)(j, {
|
|
502
|
+
placeholder: t,
|
|
503
|
+
value: b,
|
|
504
|
+
allowClear: !0,
|
|
505
|
+
onChange: (e) => {
|
|
506
|
+
x(e.target.value.replace(/"/g, ""));
|
|
507
|
+
}
|
|
508
|
+
}),
|
|
509
|
+
radio: /* @__PURE__ */ (0, $.jsx)(X, {
|
|
510
|
+
options: a,
|
|
511
|
+
defaultValue: "all",
|
|
512
|
+
onChange: h
|
|
513
|
+
}),
|
|
514
|
+
date: L(e, {
|
|
515
|
+
noDateText: n,
|
|
516
|
+
currentValue: l ?? "",
|
|
517
|
+
onChangeDate: (e) => {
|
|
518
|
+
g?.(e);
|
|
519
|
+
}
|
|
520
|
+
}),
|
|
521
|
+
number: /* @__PURE__ */ (0, $.jsx)(A, {
|
|
522
|
+
emptyText: r,
|
|
523
|
+
value: u,
|
|
524
|
+
placeholder: t,
|
|
525
|
+
min: 0,
|
|
526
|
+
max: 2147483647,
|
|
527
|
+
onChange: (e) => {
|
|
528
|
+
!e && e !== 0 || _?.(+e);
|
|
529
|
+
}
|
|
530
|
+
}),
|
|
531
|
+
multiselect: /* @__PURE__ */ (0, $.jsx)(v, {
|
|
532
|
+
className: P.select,
|
|
533
|
+
mode: "multiple",
|
|
534
|
+
placeholder: t,
|
|
535
|
+
maxTagCount: 1,
|
|
536
|
+
maxTagTextLength: I,
|
|
537
|
+
showSearch: !1,
|
|
538
|
+
allowClear: !0,
|
|
539
|
+
options: f,
|
|
540
|
+
value: d,
|
|
541
|
+
onChange: y
|
|
542
|
+
})
|
|
543
|
+
}[s]]
|
|
544
|
+
});
|
|
545
|
+
}, oe = ({ sortTooltipText: e, updateDataText: t, refreshText: n, createText: r, createNewElementText: i, order: a, orderOptions: o, createButtonTooltip: s, searchProps: l, isCanCreate: u, isHiddenCreate: d, onCreate: f, onRefetch: p, onChangeOrder: m }) => /* @__PURE__ */ (0, $.jsxs)(O, {
|
|
546
|
+
gap: "middle",
|
|
547
|
+
justify: "space-between",
|
|
548
|
+
wrap: "wrap",
|
|
549
|
+
style: { marginBottom: N.OFFSET[1] },
|
|
550
|
+
children: [/* @__PURE__ */ (0, $.jsxs)(O, {
|
|
551
|
+
align: "center",
|
|
552
|
+
gap: "middle",
|
|
553
|
+
wrap: "wrap",
|
|
554
|
+
children: [/* @__PURE__ */ (0, $.jsx)(ae, { ...l }), /* @__PURE__ */ (0, $.jsx)(c, {
|
|
555
|
+
title: e,
|
|
556
|
+
children: /* @__PURE__ */ (0, $.jsx)(v, {
|
|
557
|
+
className: P.sort,
|
|
558
|
+
value: a,
|
|
559
|
+
options: o,
|
|
560
|
+
onChange: m
|
|
561
|
+
})
|
|
562
|
+
})]
|
|
563
|
+
}), /* @__PURE__ */ (0, $.jsxs)(O, {
|
|
564
|
+
className: P.buttonsContainer,
|
|
565
|
+
gap: "small",
|
|
566
|
+
align: "center",
|
|
567
|
+
children: [p && /* @__PURE__ */ (0, $.jsx)(c, {
|
|
568
|
+
title: t,
|
|
569
|
+
children: /* @__PURE__ */ (0, $.jsx)(w, {
|
|
570
|
+
className: P.button,
|
|
571
|
+
icon: /* @__PURE__ */ (0, $.jsx)(Q, {}),
|
|
572
|
+
onClick: p,
|
|
573
|
+
children: n
|
|
574
|
+
})
|
|
575
|
+
}), !d && u && /* @__PURE__ */ (0, $.jsx)(c, {
|
|
576
|
+
title: s ?? i,
|
|
577
|
+
children: /* @__PURE__ */ (0, $.jsx)(w, {
|
|
578
|
+
className: P.button,
|
|
579
|
+
type: "primary",
|
|
580
|
+
icon: /* @__PURE__ */ (0, $.jsx)(k, {}),
|
|
581
|
+
onClick: f,
|
|
582
|
+
children: r
|
|
583
|
+
})
|
|
584
|
+
})]
|
|
585
|
+
})]
|
|
586
|
+
});
|
|
587
|
+
//#endregion
|
|
588
|
+
export { oe as TableHead };
|