freemium-ui 2.0.60 → 2.0.62
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/lib/index.cjs.js +362 -286
- package/lib/index.d.ts +78 -3
- package/lib/index.js +1512 -1437
- package/lib/package.json +1 -1
- package/package.json +1 -1
package/lib/index.cjs.js
CHANGED
|
@@ -8327,9 +8327,9 @@ console.info("Finished '".concat(e,"' in ").concat(o,"ms"))),[2]}var i}))}))}
|
|
|
8327
8327
|
function s_(e){return Ce(this,void 0,void 0,(function(){var t,n
|
|
8328
8328
|
;return ze(this,(function(r){switch(r.label){case 0:
|
|
8329
8329
|
return t=e.loader,"function"!=typeof(n=void 0===t?d_.defaultLoader:t)?[3,1]:[2,n]
|
|
8330
|
-
;case 1:return"all"!==n?[3,3]:[4,Promise.resolve().then((function(){return
|
|
8330
|
+
;case 1:return"all"!==n?[3,3]:[4,Promise.resolve().then((function(){return lG
|
|
8331
8331
|
}))];case 2:return[2,r.sent().allPathsLoader];case 3:
|
|
8332
|
-
return[4,Promise.resolve().then((function(){return
|
|
8332
|
+
return[4,Promise.resolve().then((function(){return cG}))];case 4:
|
|
8333
8333
|
return[2,r.sent().splitPathsBySizeLoader]}}))}))}var u_=function(){function e(){
|
|
8334
8334
|
this.defaultLoader="split-by-size",
|
|
8335
8335
|
this.loadedIconPaths16=new Map,this.loadedIconPaths20=new Map}
|
|
@@ -16129,12 +16129,26 @@ const t=o._getAllFlatColumnsById()[e]
|
|
|
16129
16129
|
;return"production"===process.env.NODE_ENV||t||console.error(`[Table] Column with id '${e}' does not exist.`),
|
|
16130
16130
|
t}};Object.assign(o,s);for(let e=0;e<o._features.length;e++){
|
|
16131
16131
|
const t=o._features[e];null==t||null==t.createTable||t.createTable(o)}return o}
|
|
16132
|
-
function vU(
|
|
16132
|
+
function vU(){return e=>Mj((()=>[e.options.data]),(t=>{const n={rows:[],
|
|
16133
|
+
flatRows:[],rowsById:{}},r=function(t,o,a){void 0===o&&(o=0);const i=[]
|
|
16134
|
+
;for(let c=0;c<t.length;c++){
|
|
16135
|
+
const s=Dj(e,e._getRowId(t[c],c,a),t[c],c,o,void 0,null==a?void 0:a.id);var l
|
|
16136
|
+
;if(n.flatRows.push(s),
|
|
16137
|
+
n.rowsById[s.id]=s,i.push(s),e.options.getSubRows)s.originalSubRows=e.options.getSubRows(t[c],c),
|
|
16138
|
+
null!=(l=s.originalSubRows)&&l.length&&(s.subRows=r(s.originalSubRows,o+1,s))}
|
|
16139
|
+
return i};return n.rows=r(t),n
|
|
16140
|
+
}),xj(e.options,"debugTable","getRowModel",(()=>e._autoResetPageIndex())))}
|
|
16141
|
+
function gU(e,t){return e?function(e){return"function"==typeof e&&(()=>{
|
|
16133
16142
|
const t=Object.getPrototypeOf(e)
|
|
16134
16143
|
;return t.prototype&&t.prototype.isReactComponent})()
|
|
16135
16144
|
}(n=e)||"function"==typeof n||function(e){
|
|
16136
16145
|
return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)
|
|
16137
|
-
}(n)?r.createElement(e,t):e:null;var n}const
|
|
16146
|
+
}(n)?r.createElement(e,t):e:null;var n}function yU(e){const t={state:{},
|
|
16147
|
+
onStateChange:()=>{},renderFallbackValue:null,...e},[n]=r.useState((()=>({
|
|
16148
|
+
current:mU(t)}))),[o,a]=r.useState((()=>n.current.initialState))
|
|
16149
|
+
;return n.current.setOptions((t=>({...t,...e,state:{...o,...e.state},
|
|
16150
|
+
onStateChange:t=>{a(t),null==e.onStateChange||e.onStateChange(t)}}))),n.current}
|
|
16151
|
+
const bU=yr.div`
|
|
16138
16152
|
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
16139
16153
|
direction: ${({theme:e})=>e.direction};
|
|
16140
16154
|
display: flex;
|
|
@@ -16154,22 +16168,22 @@ return"object"==typeof e&&"symbol"==typeof e.$$typeof&&["react.memo","react.forw
|
|
|
16154
16168
|
.PopoverContent {
|
|
16155
16169
|
padding: 0;
|
|
16156
16170
|
}
|
|
16157
|
-
`,
|
|
16171
|
+
`,wU=yr((t=>e.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",
|
|
16158
16172
|
fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},e.createElement("path",{
|
|
16159
16173
|
fillRule:"evenodd",clipRule:"evenodd",
|
|
16160
16174
|
d:"M4.16 2H11.84C13.0329 2 14 2.96706 14 4.16V11.84C14 12.4129 13.7724 12.9623 13.3674 13.3674C12.9623 13.7724 12.4129 14 11.84 14H4.16C3.58713 14 3.03773 13.7724 2.63265 13.3674C2.22757 12.9623 2 12.4129 2 11.84V4.16C2 2.96706 2.96706 2 4.16 2ZM3.12 4.16V11.84C3.12 12.4144 3.58562 12.88 4.16 12.88H9.93599V3.12H4.16C3.88417 3.12 3.61964 3.22957 3.4246 3.42461C3.22957 3.61965 3.12 3.88417 3.12 4.16ZM11.84 12.88H11.04V3.12H11.84C12.1158 3.12 12.3804 3.22957 12.5754 3.42461C12.7704 3.61965 12.88 3.88417 12.88 4.16V11.84C12.88 12.4144 12.4144 12.88 11.84 12.88ZM5.74401 10.168C5.8945 10.168 6.03866 10.1075 6.14401 10L7.712 8.4C7.92739 8.17682 7.92739 7.82317 7.712 7.6L6.15201 6C5.93109 5.77908 5.57292 5.77908 5.35201 6C5.13109 6.22091 5.13109 6.57908 5.35201 6.8L6.52001 8L5.35201 9.2C5.13236 9.42144 5.13236 9.77856 5.35201 10C5.45436 10.107 5.59592 10.1677 5.74401 10.168Z",
|
|
16161
16175
|
fill:t.fill}))))`
|
|
16162
16176
|
transition: all 0.3s ease-in-out;
|
|
16163
|
-
`,
|
|
16177
|
+
`,CU=yr(no)`
|
|
16164
16178
|
transform: ${({theme:e})=>"rtl"===e.direction?"rotate(90deg)":"rotate(270deg)"};
|
|
16165
|
-
`,
|
|
16179
|
+
`,zU=yr(no)`
|
|
16166
16180
|
transform: ${({theme:e})=>"rtl"===e.direction?"rotate(270deg)":"rotate(90deg)"};
|
|
16167
|
-
`,
|
|
16181
|
+
`,MU=yr.div`
|
|
16168
16182
|
display: flex;
|
|
16169
16183
|
flex: 1;
|
|
16170
16184
|
overflow: auto;
|
|
16171
16185
|
direction: ${({theme:e})=>e.direction};
|
|
16172
|
-
`,
|
|
16186
|
+
`,xU=yr.div`
|
|
16173
16187
|
flex: 1;
|
|
16174
16188
|
background-color: ${({theme:e})=>"dark"===e.mode?e.colors.fill.surface:e.colors.fill.medium};
|
|
16175
16189
|
direction: ${({theme:e})=>e.direction};
|
|
@@ -16178,7 +16192,7 @@ fill:t.fill}))))`
|
|
|
16178
16192
|
display: flex;
|
|
16179
16193
|
width: 100%;
|
|
16180
16194
|
flex-direction: column;
|
|
16181
|
-
`,
|
|
16195
|
+
`,EU=yr.div`
|
|
16182
16196
|
display: flex;
|
|
16183
16197
|
gap: 12px;
|
|
16184
16198
|
justify-content: space-between;
|
|
@@ -16191,7 +16205,7 @@ fill:t.fill}))))`
|
|
|
16191
16205
|
${({theme:e})=>"dark"===e.mode?e.colors.border.light:e.colors.border.normal};
|
|
16192
16206
|
box-shadow: ${({theme:e})=>xo(e.colors.shadow,.08)} 0px 2px 4px
|
|
16193
16207
|
0px;
|
|
16194
|
-
`,
|
|
16208
|
+
`,SU=yr.div`
|
|
16195
16209
|
direction: ${({theme:e})=>e.direction};
|
|
16196
16210
|
background-color: ${({theme:e})=>"dark"===e.mode?e.colors.fill.medium:e.colors.fill.base};
|
|
16197
16211
|
color: ${({theme:e})=>e.colors.text.primary};
|
|
@@ -16200,7 +16214,7 @@ fill:t.fill}))))`
|
|
|
16200
16214
|
animation-duration: ${({theme:e})=>e.transitions.duration.standard};
|
|
16201
16215
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeIn};
|
|
16202
16216
|
animation-name: ${Pr};
|
|
16203
|
-
`,
|
|
16217
|
+
`,_U=yr.div``,HU=yr.div``,DU=yr.div``,kU=yr.div`
|
|
16204
16218
|
display: flex;
|
|
16205
16219
|
align-items: center;
|
|
16206
16220
|
gap: 10px;
|
|
@@ -16226,7 +16240,7 @@ fill:t.fill}))))`
|
|
|
16226
16240
|
font-size: 14px;
|
|
16227
16241
|
font-weight: 400;
|
|
16228
16242
|
}
|
|
16229
|
-
`,
|
|
16243
|
+
`,AU=yr.div`
|
|
16230
16244
|
display: flex;
|
|
16231
16245
|
gap: 8px;
|
|
16232
16246
|
align-items: center;
|
|
@@ -16238,10 +16252,10 @@ fill:t.fill}))))`
|
|
|
16238
16252
|
place-content: center;
|
|
16239
16253
|
padding: 0;
|
|
16240
16254
|
}
|
|
16241
|
-
`,
|
|
16255
|
+
`,LU=yr.div`
|
|
16242
16256
|
overflow: auto;
|
|
16243
16257
|
flex: 1;
|
|
16244
|
-
`,
|
|
16258
|
+
`,VU=yr.table`
|
|
16245
16259
|
border-spacing: 0px;
|
|
16246
16260
|
border-collapse: collapse;
|
|
16247
16261
|
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
@@ -16250,9 +16264,9 @@ fill:t.fill}))))`
|
|
|
16250
16264
|
margin: 0;
|
|
16251
16265
|
direction: ${({theme:e})=>e.direction};
|
|
16252
16266
|
position: relative;
|
|
16253
|
-
`,
|
|
16267
|
+
`,TU=yr.thead``,RU=yr.tbody`
|
|
16254
16268
|
position: relative;
|
|
16255
|
-
`,
|
|
16269
|
+
`,PU=yr.tfoot``,IU=yr.tr`
|
|
16256
16270
|
&:hover {
|
|
16257
16271
|
transition: 0.2s ease;
|
|
16258
16272
|
background-color: ${({theme:e})=>e.colors.fill.medium};
|
|
@@ -16266,7 +16280,7 @@ fill:t.fill}))))`
|
|
|
16266
16280
|
border-bottom-width: 3px;
|
|
16267
16281
|
}
|
|
16268
16282
|
`}
|
|
16269
|
-
`,
|
|
16283
|
+
`,OU=yr.div`
|
|
16270
16284
|
position: absolute;
|
|
16271
16285
|
width: 100%;
|
|
16272
16286
|
height: 100%;
|
|
@@ -16276,7 +16290,7 @@ fill:t.fill}))))`
|
|
|
16276
16290
|
animation-duration: ${({theme:e})=>e.transitions.duration.standard};
|
|
16277
16291
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeIn};
|
|
16278
16292
|
animation-name: ${Sr};
|
|
16279
|
-
`,
|
|
16293
|
+
`,NU=yr.th`
|
|
16280
16294
|
padding: 16px;
|
|
16281
16295
|
font-size: 12px;
|
|
16282
16296
|
line-height: 16px;
|
|
@@ -16309,7 +16323,7 @@ fill:t.fill}))))`
|
|
|
16309
16323
|
border-right: 3px solid ${({theme:e})=>e.colors.border.light};
|
|
16310
16324
|
}
|
|
16311
16325
|
`}
|
|
16312
|
-
`,
|
|
16326
|
+
`,FU=yr.td`
|
|
16313
16327
|
padding: 12px;
|
|
16314
16328
|
margin: 0;
|
|
16315
16329
|
font-size: 14px;
|
|
@@ -16332,19 +16346,19 @@ fill:t.fill}))))`
|
|
|
16332
16346
|
border-right: 3px solid ${e.colors.border.light};
|
|
16333
16347
|
}
|
|
16334
16348
|
`}
|
|
16335
|
-
|
|
16349
|
+
`,$U=yr.div`
|
|
16336
16350
|
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
16337
|
-
`,
|
|
16351
|
+
`,BU=yr.div`
|
|
16338
16352
|
padding: 24px;
|
|
16339
16353
|
display: flex;
|
|
16340
16354
|
justify-content: space-between;
|
|
16341
16355
|
align-items: center;
|
|
16342
|
-
|
|
16356
|
+
`,jU=yr.div`
|
|
16343
16357
|
padding: 0 24px;
|
|
16344
16358
|
display: flex;
|
|
16345
16359
|
gap: 16px;
|
|
16346
16360
|
height: 256px;
|
|
16347
|
-
`,
|
|
16361
|
+
`,UU=yr.div`
|
|
16348
16362
|
background: ${({theme:e})=>e.colors.fill.medium};
|
|
16349
16363
|
border-radius: 4px 4px 0px 0px;
|
|
16350
16364
|
padding: 8px 8px 0 8px;
|
|
@@ -16358,11 +16372,11 @@ fill:t.fill}))))`
|
|
|
16358
16372
|
margin-bottom: 8px;
|
|
16359
16373
|
}
|
|
16360
16374
|
}
|
|
16361
|
-
`,
|
|
16375
|
+
`,YU=yr.div`
|
|
16362
16376
|
display: flex;
|
|
16363
16377
|
gap: 8px;
|
|
16364
16378
|
flex-direction: column;
|
|
16365
|
-
`,
|
|
16379
|
+
`,WU=yr.div`
|
|
16366
16380
|
display: flex;
|
|
16367
16381
|
gap: 12px;
|
|
16368
16382
|
flex-direction: column;
|
|
@@ -16376,13 +16390,13 @@ fill:t.fill}))))`
|
|
|
16376
16390
|
font-weight: ${({theme:e})=>e.typography.fontWeight.regular};
|
|
16377
16391
|
line-height: ${({theme:e})=>e.typography.primary.lineHeight};
|
|
16378
16392
|
}
|
|
16379
|
-
`,
|
|
16393
|
+
`,GU=yr.div`
|
|
16380
16394
|
background-color: ${({theme:e})=>e.colors.fill.base};
|
|
16381
16395
|
display: flex;
|
|
16382
16396
|
padding: 16px;
|
|
16383
16397
|
gap: 8px;
|
|
16384
16398
|
justify-content: flex-end;
|
|
16385
|
-
`,
|
|
16399
|
+
`,KU=yr.div`
|
|
16386
16400
|
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
16387
16401
|
background: ${({theme:e})=>e.colors.fill.surface};
|
|
16388
16402
|
border: 1px solid ${({theme:e})=>e.colors.border.light};
|
|
@@ -16396,7 +16410,7 @@ fill:t.fill}))))`
|
|
|
16396
16410
|
display: flex;
|
|
16397
16411
|
justify-content: space-between;
|
|
16398
16412
|
gap: 8px;
|
|
16399
|
-
`,
|
|
16413
|
+
`,qU=yr.div`
|
|
16400
16414
|
display: flex;
|
|
16401
16415
|
align-items: center;
|
|
16402
16416
|
width: fit-content;
|
|
@@ -16417,17 +16431,17 @@ fill:t.fill}))))`
|
|
|
16417
16431
|
color: ${e.colors.text.link};
|
|
16418
16432
|
`}
|
|
16419
16433
|
}
|
|
16420
|
-
`,
|
|
16434
|
+
`,ZU=e.forwardRef(((t,n)=>e.createElement("svg",{width:"16",height:"16",
|
|
16421
16435
|
viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"
|
|
16422
16436
|
},e.createElement("rect",{width:"16",height:"16",fill:"white",
|
|
16423
16437
|
"fill-opacity":"0.01"}),e.createElement("path",{
|
|
16424
16438
|
d:"M7.99999 10.62C7.84999 10.62 7.68999 10.56 7.57999 10.44L3.53999 6.41001C3.30999 6.18001 3.30999 5.80001 3.53999 5.56001C3.76999 5.33001 4.14999 5.33001 4.38999 5.56001L7.99999 9.17001L11.61 5.56001C11.84 5.33001 12.23 5.33001 12.46 5.56001C12.69 5.79001 12.69 6.17001 12.46 6.41001L8.41999 10.44C8.29999 10.56 8.14999 10.62 7.99999 10.62Z",
|
|
16425
|
-
fill:"currentcolor"})))),
|
|
16439
|
+
fill:"currentcolor"})))),XU=e.forwardRef(((t,n)=>e.createElement("svg",{
|
|
16426
16440
|
width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",
|
|
16427
16441
|
xmlns:"http://www.w3.org/2000/svg",...t,ref:n},e.createElement("path",{
|
|
16428
16442
|
fillRule:"evenodd",clipRule:"evenodd",
|
|
16429
16443
|
d:"M17.0975 18.4944C17.6301 18.1751 17.8085 17.4835 17.5071 16.9414L17.17 16.335C16.9678 15.9711 16.9704 15.528 17.1769 15.1666C17.3793 14.8126 17.7558 14.5941 18.1635 14.5941H18.8694C19.4997 14.5941 20 14.0745 20 13.4461V10.7544C20 10.1259 19.4997 9.6063 18.8694 9.6063H18.3369C17.8687 9.6063 17.4377 9.3511 17.2126 8.94057C16.9773 8.51146 16.9788 7.9916 17.2166 7.56386L17.4998 7.05431C17.8012 6.51212 17.6228 5.82059 17.0903 5.50125L14.8604 4.16415C14.3128 3.83576 13.6107 4.03115 13.301 4.58826L12.9716 5.18081C12.7696 5.54419 12.3864 5.7694 11.9706 5.76906C11.5542 5.76871 11.1707 5.54291 10.9685 5.17902L10.6376 4.58392C10.3279 4.02681 9.62586 3.83142 9.07821 4.15981L6.83388 5.50559C6.30131 5.82493 6.1229 6.51646 6.4243 7.05865L6.7111 7.57457C6.94768 8.00015 6.94938 8.51734 6.7156 8.94446C6.49224 9.35254 6.06407 9.6063 5.59885 9.6063H5.13055C4.50031 9.6063 4 10.1259 4 10.7544V13.4461C4 14.0745 4.50031 14.5941 5.13055 14.5941H5.76345C6.17421 14.5941 6.55354 14.814 6.75763 15.1705C6.96571 15.5339 6.96853 15.9797 6.76506 16.3457L6.43154 16.9457C6.13014 17.4879 6.30855 18.1794 6.84112 18.4988L9.07097 19.8358C9.61862 20.1642 10.3207 19.9689 10.6304 19.4117L10.9598 18.8192C11.1618 18.4558 11.545 18.2306 11.9608 18.2309C12.3771 18.2313 12.7606 18.4571 12.9629 18.821L13.2937 19.4161C13.6034 19.9732 14.3055 20.1686 14.8532 19.8402L17.0975 18.4944ZM16.003 14.4957C15.5617 15.2679 15.5561 16.2146 15.9882 16.9919L16.2347 17.4353L14.3634 18.5574L14.1447 18.1641C13.7041 17.3715 12.8688 16.8796 11.9619 16.8789C11.0548 16.8781 10.2187 17.3695 9.778 18.1623L9.56078 18.553L7.70395 17.4396L7.94686 17.0026C8.38037 16.2228 8.37437 15.273 7.93103 14.4987C7.48605 13.7215 6.65902 13.2421 5.76345 13.2421H5.35211V10.9584H5.59885C6.55817 10.9584 7.4411 10.4351 7.90168 9.59361C8.35835 8.75926 8.35503 7.74898 7.8929 6.91765L7.69671 6.56473L9.56802 5.44263L9.78666 5.83594C10.2273 6.62855 11.0626 7.12037 11.9695 7.12113C12.8766 7.12188 13.7127 6.63053 14.1534 5.83772L14.3706 5.44697L16.2274 6.56039L16.0348 6.90695C15.5713 7.74077 15.5683 8.75417 16.027 9.59065C16.4895 10.4341 17.375 10.9584 18.3369 10.9584H18.6479V13.2421H18.1635C17.2706 13.2421 16.4461 13.7205 16.003 14.4957ZM11.9657 15.3927C10.1384 15.3927 8.66702 13.8685 8.66702 12C8.66702 10.1315 10.1384 8.60732 11.9657 8.60732C13.7929 8.60732 15.2644 10.1315 15.2644 12C15.2644 13.8685 13.7929 15.3927 11.9657 15.3927ZM13.9123 12C13.9123 13.1322 13.0353 14.0406 11.9657 14.0406C10.8961 14.0406 10.0191 13.1322 10.0191 12C10.0191 10.8678 10.8961 9.95939 11.9657 9.95939C13.0353 9.95939 13.9123 10.8678 13.9123 12Z",
|
|
16430
|
-
fill:t.fill})))),
|
|
16444
|
+
fill:t.fill})))),JU=e.forwardRef(((t,n)=>{const r=cr()
|
|
16431
16445
|
;return e.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",
|
|
16432
16446
|
fill:"none",xmlns:"http://www.w3.org/2000/svg",...t,ref:n
|
|
16433
16447
|
},e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",
|
|
@@ -16436,36 +16450,36 @@ fill:r.colors.text.primary}),e.createElement("mask",{id:"mask0_3930_5537",
|
|
|
16436
16450
|
style:{maskType:"luminance"},maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"16",
|
|
16437
16451
|
height:"16"},e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",
|
|
16438
16452
|
d:"M2.58355 11.1378C4.81252 13.3668 8.33651 13.5074 10.7134 11.5548L14.1832 15.0246C14.4164 15.2578 14.7939 15.2586 15.0262 15.0262C15.2586 14.7939 15.2578 14.4164 15.0246 14.1832L11.5548 10.7134C13.5074 8.33651 13.3668 4.81252 11.1378 2.58355C8.76634 0.212068 4.92894 0.204542 2.56674 2.56674C0.204542 4.92894 0.212068 8.76634 2.58355 11.1378ZM3.42481 10.2966C1.51985 8.39167 1.5138 5.30917 3.41131 3.41166C5.30881 1.51416 8.39131 1.52021 10.2963 3.42517C12.2012 5.33013 12.2073 8.41263 10.3098 10.3101C8.41228 12.2076 5.32977 12.2016 3.42481 10.2966Z"
|
|
16439
|
-
})))})),
|
|
16453
|
+
})))})),QU=["rowMenuOptions","select"],eY=({table:t})=>{
|
|
16440
16454
|
const n=cr(),[r,o]=e.useState({}),[a,i]=e.useState([]),l=t.getAllColumns(),c=t.getState(),s=e.useCallback((()=>{
|
|
16441
16455
|
const e={};l.forEach((t=>{e[t.id]=t
|
|
16442
16456
|
})),i(c.columnOrder.map((t=>e[t])).filter((e=>e.getIsVisible())))
|
|
16443
16457
|
}),[c.columnOrder,l,i]);return e.useEffect((()=>{o(c.columnVisibility),s()
|
|
16444
16458
|
}),[c.columnVisibility,s]),
|
|
16445
|
-
e.createElement(
|
|
16459
|
+
e.createElement($U,null,e.createElement(BU,null,e.createElement(Yo,{
|
|
16446
16460
|
weight:"semi-bold"},"Customize columns"),e.createElement(xm,{variant:"link",
|
|
16447
16461
|
onClick:()=>{const e={};t.getAllColumns().forEach((t=>{e[t.id]=t.getIsVisible()
|
|
16448
16462
|
})),o(e),s()}
|
|
16449
|
-
},"Reset")),e.createElement(
|
|
16450
|
-
startAdornment:e.createElement(
|
|
16463
|
+
},"Reset")),e.createElement(jU,null,e.createElement(YU,null,e.createElement(fm,{
|
|
16464
|
+
startAdornment:e.createElement(JU,{viewBox:"0 0 18px 18px"}),
|
|
16451
16465
|
placeholder:"Search columns"}),e.createElement(Yo,{weight:"semi-bold"
|
|
16452
|
-
},"Choose columns"),e.createElement(
|
|
16466
|
+
},"Choose columns"),e.createElement(WU,null,t.getAllColumns().filter((e=>!QU.includes(e.id))).map((n=>e.createElement(Yg,{
|
|
16453
16467
|
key:n.id,label:n.columnDef.header?.toString(),checked:!!r[n.id],
|
|
16454
16468
|
onCheckedChange:e=>{const r=t.getAllColumns().find((e=>e.id===n.id));o((t=>({
|
|
16455
16469
|
...t,[n.id]:!0===e
|
|
16456
16470
|
}))),i((t=>!0===e?[...t,...r?[r]:[]]:t.filter((e=>e.id!==n.id))))}
|
|
16457
|
-
}))))),e.createElement(
|
|
16471
|
+
}))))),e.createElement(UU,null,e.createElement(Yo,{weight:"semi-bold"
|
|
16458
16472
|
},`Selected columns (${a.length})`),e.createElement(yj,{
|
|
16459
16473
|
className:"ReorderContainer",onReorder:e=>{i(e)},
|
|
16460
|
-
customFilter:e=>!
|
|
16474
|
+
customFilter:e=>!QU.includes(e.id??""),customRender:t=>e.createElement(KU,{
|
|
16461
16475
|
key:t.id
|
|
16462
16476
|
},e.createElement("div",null,t?.columnDef?.header?.toString()??""),e.createElement(Lo,{
|
|
16463
16477
|
onClick:()=>{o((e=>({...e,[t.id]:!1}))),i((e=>e.filter((e=>e.id!==t.id))))}
|
|
16464
16478
|
},e.createElement(ro,{fill:n.colors.text.primary}))),items:a
|
|
16465
|
-
}))),e.createElement(
|
|
16479
|
+
}))),e.createElement(GU,null,e.createElement(MF,{asChild:!0
|
|
16466
16480
|
},e.createElement(xm,{variant:"secondary"},"Cancel")),e.createElement(xm,{
|
|
16467
16481
|
onClick:()=>{t.setColumnOrder(a.map((e=>e.id))),t.setColumnVisibility(r)}
|
|
16468
|
-
},"Update")))},
|
|
16482
|
+
},"Update")))},tY=t=>{
|
|
16469
16483
|
const{trigger:n,idAccessor:r="id",nameAccessor:o="name",onSelect:a,isDisableSortDropdown:i=!1,options:l=[],value:c}=t,s=cr()
|
|
16470
16484
|
;return e.createElement(Yv,null,e.createElement(Wv,{asChild:!0,disabled:i
|
|
16471
16485
|
},e.createElement(No,null,n)),e.createElement(Gv,null,e.createElement(Zv,{
|
|
@@ -16475,18 +16489,18 @@ side:"bottom",sideOffset:4,align:"center",className:"DropdownMenuContent"
|
|
|
16475
16489
|
className:"DropdownMenuItem",key:t?.[r],onSelect:()=>{const e=c??[];e[n]=t?.[r],
|
|
16476
16490
|
a?.(e)}},t?.[o],c?.[n]===t?.[r]&&e.createElement(so,{fill:s.colors.common.accent
|
|
16477
16491
|
})))),e.createElement(qv,{className:"DropdownMenuSeparator"})))))))
|
|
16478
|
-
},
|
|
16492
|
+
},nY="Tabs",[rY,oY]=i(nY,[Vm]),aY=Vm(),[iY,lY]=rY(nY),cY=e.forwardRef(((t,n)=>{
|
|
16479
16493
|
const{__scopeTabs:r,value:o,onValueChange:i,defaultValue:l,orientation:c="horizontal",dir:s,activationMode:u="automatic",...d}=t,h=B(s),[p,f]=y({
|
|
16480
|
-
prop:o,onChange:i,defaultProp:l});return e.createElement(
|
|
16494
|
+
prop:o,onChange:i,defaultProp:l});return e.createElement(iY,{scope:r,baseId:S(),
|
|
16481
16495
|
value:p,onValueChange:f,orientation:c,dir:h,activationMode:u
|
|
16482
16496
|
},e.createElement(b.div,a({dir:h,"data-orientation":c},d,{ref:n})))}))
|
|
16483
|
-
;function
|
|
16484
|
-
return`${e}-content-${t}`}const
|
|
16485
|
-
const{__scopeTabs:r,loop:o=!0,...i}=t,l=
|
|
16497
|
+
;function sY(e,t){return`${e}-trigger-${t}`}function uY(e,t){
|
|
16498
|
+
return`${e}-content-${t}`}const dY=e.forwardRef(((t,n)=>{
|
|
16499
|
+
const{__scopeTabs:r,loop:o=!0,...i}=t,l=lY("TabsList",r),c=aY(r)
|
|
16486
16500
|
;return e.createElement($m,a({asChild:!0},c,{orientation:l.orientation,
|
|
16487
16501
|
dir:l.dir,loop:o}),e.createElement(b.div,a({role:"tablist",
|
|
16488
|
-
"aria-orientation":l.orientation},i,{ref:n})))})),
|
|
16489
|
-
const{__scopeTabs:r,value:o,disabled:i=!1,...l}=t,c=
|
|
16502
|
+
"aria-orientation":l.orientation},i,{ref:n})))})),hY=e.forwardRef(((t,n)=>{
|
|
16503
|
+
const{__scopeTabs:r,value:o,disabled:i=!1,...l}=t,c=lY("TabsTrigger",r),s=aY(r),u=sY(c.baseId,o),d=uY(c.baseId,o),h=o===c.value
|
|
16490
16504
|
;return e.createElement(Bm,a({asChild:!0},s,{focusable:!i,active:h
|
|
16491
16505
|
}),e.createElement(b.button,a({type:"button",role:"tab","aria-selected":h,
|
|
16492
16506
|
"aria-controls":d,"data-state":h?"active":"inactive",
|
|
@@ -16495,21 +16509,21 @@ onMouseDown:v(t.onMouseDown,(e=>{
|
|
|
16495
16509
|
i||0!==e.button||!1!==e.ctrlKey?e.preventDefault():c.onValueChange(o)})),
|
|
16496
16510
|
onKeyDown:v(t.onKeyDown,(e=>{[" ","Enter"].includes(e.key)&&c.onValueChange(o)
|
|
16497
16511
|
})),onFocus:v(t.onFocus,(()=>{const e="manual"!==c.activationMode
|
|
16498
|
-
;h||i||!e||c.onValueChange(o)}))})))})),
|
|
16499
|
-
const{__scopeTabs:r,value:o,forceMount:i,children:l,...c}=t,s=
|
|
16512
|
+
;h||i||!e||c.onValueChange(o)}))})))})),pY=e.forwardRef(((t,n)=>{
|
|
16513
|
+
const{__scopeTabs:r,value:o,forceMount:i,children:l,...c}=t,s=lY("TabsContent",r),u=sY(s.baseId,o),d=uY(s.baseId,o),h=o===s.value,p=e.useRef(h)
|
|
16500
16514
|
;return e.useEffect((()=>{const e=requestAnimationFrame((()=>p.current=!1))
|
|
16501
16515
|
;return()=>cancelAnimationFrame(e)}),[]),e.createElement(z,{present:i||h
|
|
16502
16516
|
},(({present:r})=>e.createElement(b.div,a({"data-state":h?"active":"inactive",
|
|
16503
16517
|
"data-orientation":s.orientation,role:"tabpanel","aria-labelledby":u,hidden:!r,
|
|
16504
16518
|
id:d,tabIndex:0},c,{ref:n,style:{...t.style,
|
|
16505
16519
|
animationDuration:p.current?"0s":void 0}}),r&&l)))
|
|
16506
|
-
})),
|
|
16520
|
+
})),fY=yr(cY)``,mY=yr(pY)``,vY=yr(dY)`
|
|
16507
16521
|
border-bottom: 1px solid ${({theme:e})=>e.colors.border.light};
|
|
16508
16522
|
display: flex;
|
|
16509
16523
|
flex-wrap: nowrap;
|
|
16510
16524
|
gap: 12px;
|
|
16511
16525
|
direction: ${({theme:e})=>e.direction};
|
|
16512
|
-
`,
|
|
16526
|
+
`,gY=yr(hY)`
|
|
16513
16527
|
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
16514
16528
|
direction: ${({theme:e})=>e.direction};
|
|
16515
16529
|
background-color: unset;
|
|
@@ -16537,35 +16551,35 @@ animationDuration:p.current?"0s":void 0}}),r&&l)))
|
|
|
16537
16551
|
color: ${({theme:e})=>e.colors.text.disabled};
|
|
16538
16552
|
cursor: not-allowed;
|
|
16539
16553
|
}
|
|
16540
|
-
`;var
|
|
16554
|
+
`;var yY=wr`
|
|
16541
16555
|
* {
|
|
16542
16556
|
box-sizing: border-box;
|
|
16543
16557
|
/* direction: ${({theme:e})=>e.direction}; */
|
|
16544
16558
|
}
|
|
16545
|
-
`;const
|
|
16559
|
+
`;const bY=()=>{const[t,n]=e.useState(!1);return e.useEffect((()=>{
|
|
16546
16560
|
n(Boolean("undefined"!=typeof window&&window.document&&window.document.createElement))
|
|
16547
|
-
}),[]),{isBrowser:t,isServer:!t}},
|
|
16561
|
+
}),[]),{isBrowser:t,isServer:!t}},wY=e=>{const t=document.createElement("div")
|
|
16548
16562
|
;return t.setAttribute("id",e),t
|
|
16549
|
-
},
|
|
16563
|
+
},CY="ToastProvider",[zY,MY,xY]=m("Toast"),[EY,SY]=i("Toast",[xY]),[_Y,HY]=EY(CY),DY=t=>{
|
|
16550
16564
|
const{__scopeToast:n,label:r="Notification",duration:o=5e3,swipeDirection:a="right",swipeThreshold:i=50,children:l}=t,[c,s]=e.useState(null),[u,d]=e.useState(0),h=e.useRef(!1),p=e.useRef(!1)
|
|
16551
|
-
;return e.createElement(
|
|
16565
|
+
;return e.createElement(zY.Provider,{scope:n},e.createElement(_Y,{scope:n,
|
|
16552
16566
|
label:r,duration:o,swipeDirection:a,swipeThreshold:i,toastCount:u,viewport:c,
|
|
16553
16567
|
onViewportChange:s,onToastAdd:e.useCallback((()=>d((e=>e+1))),[]),
|
|
16554
16568
|
onToastRemove:e.useCallback((()=>d((e=>e-1))),[]),
|
|
16555
|
-
isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:p},l))};
|
|
16569
|
+
isFocusedToastEscapeKeyDownRef:h,isClosePausedRef:p},l))};DY.propTypes={
|
|
16556
16570
|
label(e){if(e.label&&"string"==typeof e.label&&!e.label.trim()){
|
|
16557
|
-
return new Error(`Invalid prop \`label\` supplied to \`${
|
|
16571
|
+
return new Error(`Invalid prop \`label\` supplied to \`${CY}\`. Expected non-empty \`string\`.`)
|
|
16558
16572
|
}return null}}
|
|
16559
|
-
;const
|
|
16560
|
-
const{__scopeToast:r,hotkey:o=
|
|
16573
|
+
;const kY=["F8"],AY="toast.viewportPause",LY="toast.viewportResume",VY=e.forwardRef(((t,n)=>{
|
|
16574
|
+
const{__scopeToast:r,hotkey:o=kY,label:i="Notifications ({hotkey})",...l}=t,c=HY("ToastViewport",r),u=MY(r),d=e.useRef(null),h=e.useRef(null),p=e.useRef(null),f=e.useRef(null),m=s(n,f,c.onViewportChange),v=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),g=c.toastCount>0
|
|
16561
16575
|
;e.useEffect((()=>{const e=e=>{var t;const n=o.every((t=>e[t]||e.code===t))
|
|
16562
16576
|
;n&&(null===(t=f.current)||void 0===t||t.focus())}
|
|
16563
16577
|
;return document.addEventListener("keydown",e),
|
|
16564
16578
|
()=>document.removeEventListener("keydown",e)}),[o]),e.useEffect((()=>{
|
|
16565
16579
|
const e=d.current,t=f.current;if(g&&e&&t){const n=()=>{
|
|
16566
|
-
if(!c.isClosePausedRef.current){const e=new CustomEvent(
|
|
16580
|
+
if(!c.isClosePausedRef.current){const e=new CustomEvent(AY)
|
|
16567
16581
|
;t.dispatchEvent(e),c.isClosePausedRef.current=!0}},r=()=>{
|
|
16568
|
-
if(c.isClosePausedRef.current){const e=new CustomEvent(
|
|
16582
|
+
if(c.isClosePausedRef.current){const e=new CustomEvent(LY)
|
|
16569
16583
|
;t.dispatchEvent(e),c.isClosePausedRef.current=!1}},o=t=>{
|
|
16570
16584
|
!e.contains(t.relatedTarget)&&r()},a=()=>{
|
|
16571
16585
|
e.contains(document.activeElement)||r()};return e.addEventListener("focusin",n),
|
|
@@ -16577,7 +16591,7 @@ e.removeEventListener("focusout",o),e.removeEventListener("pointermove",n),
|
|
|
16577
16591
|
e.removeEventListener("pointerleave",a),
|
|
16578
16592
|
window.removeEventListener("blur",n),window.removeEventListener("focus",r)}}
|
|
16579
16593
|
}),[g,c.isClosePausedRef]);const y=e.useCallback((({tabbingDirection:e})=>{
|
|
16580
|
-
const t=u().map((t=>{const n=t.ref.current,r=[n,...
|
|
16594
|
+
const t=u().map((t=>{const n=t.ref.current,r=[n,...KY(n)]
|
|
16581
16595
|
;return"forwards"===e?r:r.reverse()}))
|
|
16582
16596
|
;return("forwards"===e?t.reverse():t).flat()}),[u]);return e.useEffect((()=>{
|
|
16583
16597
|
const e=f.current;if(e){const t=t=>{const n=t.altKey||t.ctrlKey||t.metaKey
|
|
@@ -16585,23 +16599,23 @@ const e=f.current;if(e){const t=t=>{const n=t.altKey||t.ctrlKey||t.metaKey
|
|
|
16585
16599
|
;if(t.target===e&&i)return void(null===(r=h.current)||void 0===r||r.focus())
|
|
16586
16600
|
;const l=y({tabbingDirection:i?"backwards":"forwards"
|
|
16587
16601
|
}),c=l.findIndex((e=>e===n));var o,a
|
|
16588
|
-
;if(
|
|
16602
|
+
;if(qY(l.slice(c+1)))t.preventDefault();else i?null===(o=h.current)||void 0===o||o.focus():null===(a=p.current)||void 0===a||a.focus()
|
|
16589
16603
|
}};return e.addEventListener("keydown",t),()=>e.removeEventListener("keydown",t)
|
|
16590
16604
|
}}),[u,y]),e.createElement(Ou,{ref:d,role:"region",
|
|
16591
16605
|
"aria-label":i.replace("{hotkey}",v),tabIndex:-1,style:{
|
|
16592
|
-
pointerEvents:g?void 0:"none"}},g&&e.createElement(
|
|
16593
|
-
onFocusFromOutsideViewport:()=>{
|
|
16594
|
-
}),e.createElement(
|
|
16595
|
-
ref:m}))),g&&e.createElement(
|
|
16596
|
-
tabbingDirection:"backwards"}))}}))})),
|
|
16597
|
-
const{__scopeToast:r,onFocusFromOutsideViewport:o,...i}=t,l=
|
|
16606
|
+
pointerEvents:g?void 0:"none"}},g&&e.createElement(TY,{ref:h,
|
|
16607
|
+
onFocusFromOutsideViewport:()=>{qY(y({tabbingDirection:"forwards"}))}
|
|
16608
|
+
}),e.createElement(zY.Slot,{scope:r},e.createElement(b.ol,a({tabIndex:-1},l,{
|
|
16609
|
+
ref:m}))),g&&e.createElement(TY,{ref:p,onFocusFromOutsideViewport:()=>{qY(y({
|
|
16610
|
+
tabbingDirection:"backwards"}))}}))})),TY=e.forwardRef(((t,n)=>{
|
|
16611
|
+
const{__scopeToast:r,onFocusFromOutsideViewport:o,...i}=t,l=HY("ToastFocusProxy",r)
|
|
16598
16612
|
;return e.createElement(Nh,a({"aria-hidden":!0,tabIndex:0},i,{ref:n,style:{
|
|
16599
16613
|
position:"fixed"},onFocus:e=>{var t;const n=e.relatedTarget
|
|
16600
16614
|
;!(null!==(t=l.viewport)&&void 0!==t&&t.contains(n))&&o()}}))
|
|
16601
|
-
})),
|
|
16615
|
+
})),RY="Toast",PY=e.forwardRef(((t,n)=>{
|
|
16602
16616
|
const{forceMount:r,open:o,defaultOpen:i,onOpenChange:l,...c}=t,[s=!0,u]=y({
|
|
16603
16617
|
prop:o,defaultProp:i,onChange:l});return e.createElement(z,{present:r||s
|
|
16604
|
-
},e.createElement(
|
|
16618
|
+
},e.createElement(NY,a({open:s},c,{ref:n,onClose:()=>u(!1),onPause:g(t.onPause),
|
|
16605
16619
|
onResume:g(t.onResume),onSwipeStart:v(t.onSwipeStart,(e=>{
|
|
16606
16620
|
e.currentTarget.setAttribute("data-swipe","start")})),
|
|
16607
16621
|
onSwipeMove:v(t.onSwipeMove,(e=>{const{x:t,y:n}=e.detail.delta
|
|
@@ -16620,8 +16634,8 @@ e.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),
|
|
|
16620
16634
|
e.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),
|
|
16621
16635
|
e.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${t}px`),
|
|
16622
16636
|
e.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${n}px`),u(!1)}))
|
|
16623
|
-
})))})),[
|
|
16624
|
-
const{__scopeToast:o,type:i="foreground",duration:l,open:c,onClose:u,onEscapeKeyDown:d,onPause:h,onResume:p,onSwipeStart:f,onSwipeMove:m,onSwipeCancel:y,onSwipeEnd:w,...C}=n,z=
|
|
16637
|
+
})))})),[IY,OY]=EY(RY,{onClose(){}}),NY=e.forwardRef(((n,r)=>{
|
|
16638
|
+
const{__scopeToast:o,type:i="foreground",duration:l,open:c,onClose:u,onEscapeKeyDown:d,onPause:h,onResume:p,onSwipeStart:f,onSwipeMove:m,onSwipeCancel:y,onSwipeEnd:w,...C}=n,z=HY(RY,o),[M,x]=e.useState(null),E=s(r,(e=>x(e))),S=e.useRef(null),_=e.useRef(null),H=l||z.duration,D=e.useRef(0),k=e.useRef(H),A=e.useRef(0),{onToastAdd:L,onToastRemove:V}=z,T=g((()=>{
|
|
16625
16639
|
var e
|
|
16626
16640
|
;(null==M?void 0:M.contains(document.activeElement))&&(null===(e=z.viewport)||void 0===e||e.focus()),
|
|
16627
16641
|
u()})),R=e.useCallback((e=>{
|
|
@@ -16630,15 +16644,15 @@ A.current=window.setTimeout(T,e))}),[T]);e.useEffect((()=>{const e=z.viewport
|
|
|
16630
16644
|
;if(e){const t=()=>{R(k.current),null==p||p()},n=()=>{
|
|
16631
16645
|
const e=(new Date).getTime()-D.current
|
|
16632
16646
|
;k.current=k.current-e,window.clearTimeout(A.current),null==h||h()}
|
|
16633
|
-
;return e.addEventListener(
|
|
16634
|
-
e.removeEventListener(
|
|
16647
|
+
;return e.addEventListener(AY,n),e.addEventListener(LY,t),()=>{
|
|
16648
|
+
e.removeEventListener(AY,n),e.removeEventListener(LY,t)}}
|
|
16635
16649
|
}),[z.viewport,H,h,p,R]),e.useEffect((()=>{c&&!z.isClosePausedRef.current&&R(H)
|
|
16636
16650
|
}),[c,H,z.isClosePausedRef,R]),e.useEffect((()=>(L(),()=>V())),[L,V])
|
|
16637
|
-
;const P=e.useMemo((()=>M?
|
|
16638
|
-
;return z.viewport?e.createElement(e.Fragment,null,P&&e.createElement(
|
|
16651
|
+
;const P=e.useMemo((()=>M?YY(M):null),[M])
|
|
16652
|
+
;return z.viewport?e.createElement(e.Fragment,null,P&&e.createElement(FY,{
|
|
16639
16653
|
__scopeToast:o,role:"status","aria-live":"foreground"===i?"assertive":"polite",
|
|
16640
|
-
"aria-atomic":!0},P),e.createElement(
|
|
16641
|
-
},t.createPortal(e.createElement(
|
|
16654
|
+
"aria-atomic":!0},P),e.createElement(IY,{scope:o,onClose:T
|
|
16655
|
+
},t.createPortal(e.createElement(zY.ItemSlot,{scope:o},e.createElement(Iu,{
|
|
16642
16656
|
asChild:!0,onEscapeKeyDown:v(d,(()=>{
|
|
16643
16657
|
z.isFocusedToastEscapeKeyDownRef.current||T(),
|
|
16644
16658
|
z.isFocusedToastEscapeKeyDownRef.current=!1}))},e.createElement(b.li,a({
|
|
@@ -16651,59 +16665,59 @@ T()))})),onPointerDown:v(n.onPointerDown,(e=>{0===e.button&&(S.current={
|
|
|
16651
16665
|
x:e.clientX,y:e.clientY})})),onPointerMove:v(n.onPointerMove,(e=>{
|
|
16652
16666
|
if(!S.current)return
|
|
16653
16667
|
;const t=e.clientX-S.current.x,n=e.clientY-S.current.y,r=Boolean(_.current),o=["left","right"].includes(z.swipeDirection),a=["left","up"].includes(z.swipeDirection)?Math.min:Math.max,i=o?a(0,t):0,l=o?0:a(0,n),c="touch"===e.pointerType?10:2,s={
|
|
16654
|
-
x:i,y:l},u={originalEvent:e,delta:s};r?(_.current=s,
|
|
16655
|
-
discrete:!1})):
|
|
16668
|
+
x:i,y:l},u={originalEvent:e,delta:s};r?(_.current=s,WY("toast.swipeMove",m,u,{
|
|
16669
|
+
discrete:!1})):GY(s,z.swipeDirection,c)?(_.current=s,WY("toast.swipeStart",f,u,{
|
|
16656
16670
|
discrete:!1
|
|
16657
16671
|
}),e.target.setPointerCapture(e.pointerId)):(Math.abs(t)>c||Math.abs(n)>c)&&(S.current=null)
|
|
16658
16672
|
})),onPointerUp:v(n.onPointerUp,(e=>{const t=_.current,n=e.target
|
|
16659
16673
|
;if(n.hasPointerCapture(e.pointerId)&&n.releasePointerCapture(e.pointerId),
|
|
16660
16674
|
_.current=null,S.current=null,t){const n=e.currentTarget,r={originalEvent:e,
|
|
16661
|
-
delta:t};
|
|
16662
|
-
discrete:!0}):
|
|
16675
|
+
delta:t};GY(t,z.swipeDirection,z.swipeThreshold)?WY("toast.swipeEnd",w,r,{
|
|
16676
|
+
discrete:!0}):WY("toast.swipeCancel",y,r,{discrete:!0
|
|
16663
16677
|
}),n.addEventListener("click",(e=>e.preventDefault()),{once:!0})}}))
|
|
16664
|
-
})))),z.viewport))):null}));
|
|
16678
|
+
})))),z.viewport))):null}));NY.propTypes={type(e){
|
|
16665
16679
|
if(e.type&&!["foreground","background"].includes(e.type)){
|
|
16666
|
-
return new Error(`Invalid prop \`type\` supplied to \`${
|
|
16667
|
-
}return null}};const
|
|
16668
|
-
const{__scopeToast:n,children:r,...o}=t,a=
|
|
16680
|
+
return new Error(`Invalid prop \`type\` supplied to \`${RY}\`. Expected \`foreground | background\`.`)
|
|
16681
|
+
}return null}};const FY=t=>{
|
|
16682
|
+
const{__scopeToast:n,children:r,...o}=t,a=HY(RY,n),[i,l]=e.useState(!1),[c,s]=e.useState(!1)
|
|
16669
16683
|
;return function(e=(()=>{})){const t=g(e);C((()=>{let e=0,n=0
|
|
16670
16684
|
;return e=window.requestAnimationFrame((()=>n=window.requestAnimationFrame(t))),
|
|
16671
16685
|
()=>{window.cancelAnimationFrame(e),window.cancelAnimationFrame(n)}}),[t])
|
|
16672
16686
|
}((()=>l(!0))),e.useEffect((()=>{const e=window.setTimeout((()=>s(!0)),1e3)
|
|
16673
16687
|
;return()=>window.clearTimeout(e)}),[]),c?null:e.createElement(Ih,{asChild:!0
|
|
16674
16688
|
},e.createElement(Nh,o,i&&e.createElement(e.Fragment,null,a.label," ",r)))
|
|
16675
|
-
}
|
|
16676
|
-
;return e.createElement(b.div,a({},o,{ref:n}))})),
|
|
16677
|
-
const{altText:r,...o}=t;return r?e.createElement(
|
|
16678
|
-
},e.createElement(
|
|
16689
|
+
},$Y=e.forwardRef(((t,n)=>{const{__scopeToast:r,...o}=t
|
|
16690
|
+
;return e.createElement(b.div,a({},o,{ref:n}))})),BY=e.forwardRef(((t,n)=>{
|
|
16691
|
+
const{altText:r,...o}=t;return r?e.createElement(UY,{altText:r,asChild:!0
|
|
16692
|
+
},e.createElement(jY,a({},o,{ref:n}))):null}));BY.propTypes={
|
|
16679
16693
|
altText:e=>e.altText?null:new Error("Missing prop `altText` expected on `ToastAction`")
|
|
16680
|
-
};const
|
|
16681
|
-
const{__scopeToast:r,...o}=t,i=
|
|
16694
|
+
};const jY=e.forwardRef(((t,n)=>{
|
|
16695
|
+
const{__scopeToast:r,...o}=t,i=OY("ToastClose",r);return e.createElement(UY,{
|
|
16682
16696
|
asChild:!0},e.createElement(b.button,a({type:"button"},o,{ref:n,
|
|
16683
|
-
onClick:v(t.onClick,i.onClose)})))})),
|
|
16697
|
+
onClick:v(t.onClick,i.onClose)})))})),UY=e.forwardRef(((t,n)=>{
|
|
16684
16698
|
const{__scopeToast:r,altText:o,...i}=t;return e.createElement(b.div,a({
|
|
16685
16699
|
"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":o||void 0
|
|
16686
|
-
},i,{ref:n}))}));function
|
|
16700
|
+
},i,{ref:n}))}));function YY(e){const t=[]
|
|
16687
16701
|
;return Array.from(e.childNodes).forEach((e=>{
|
|
16688
16702
|
if(e.nodeType===e.TEXT_NODE&&e.textContent&&t.push(e.textContent),function(e){
|
|
16689
16703
|
return e.nodeType===e.ELEMENT_NODE}(e)){
|
|
16690
16704
|
const n=e.ariaHidden||e.hidden||"none"===e.style.display,r=""===e.dataset.radixToastAnnounceExclude
|
|
16691
16705
|
;if(!n)if(r){const n=e.dataset.radixToastAnnounceAlt;n&&t.push(n)
|
|
16692
|
-
}else t.push(...
|
|
16706
|
+
}else t.push(...YY(e))}})),t}function WY(e,t,n,{discrete:r}){
|
|
16693
16707
|
const o=n.originalEvent.currentTarget,a=new CustomEvent(e,{bubbles:!0,
|
|
16694
16708
|
cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0
|
|
16695
|
-
}),r?w(o,a):o.dispatchEvent(a)}const
|
|
16709
|
+
}),r?w(o,a):o.dispatchEvent(a)}const GY=(e,t,n=0)=>{
|
|
16696
16710
|
const r=Math.abs(e.x),o=Math.abs(e.y),a=r>o
|
|
16697
|
-
;return"left"===t||"right"===t?a&&r>n:!a&&o>n};function
|
|
16711
|
+
;return"left"===t||"right"===t?a&&r>n:!a&&o>n};function KY(e){
|
|
16698
16712
|
const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{
|
|
16699
16713
|
acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type
|
|
16700
16714
|
;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP
|
|
16701
|
-
}});for(;n.nextNode();)t.push(n.currentNode);return t}function
|
|
16715
|
+
}});for(;n.nextNode();)t.push(n.currentNode);return t}function qY(e){
|
|
16702
16716
|
const t=document.activeElement
|
|
16703
16717
|
;return e.some((e=>e===t||(e.focus(),document.activeElement!==t)))}
|
|
16704
|
-
const
|
|
16718
|
+
const ZY=VY,XY=PY,JY=$Y,QY=BY,eW=yr(DY)``;yr.div`
|
|
16705
16719
|
border-top: 4px solid;
|
|
16706
|
-
`;const
|
|
16720
|
+
`;const tW=yr(XY)`
|
|
16707
16721
|
direction: ${({theme:e})=>e.direction};
|
|
16708
16722
|
&[data-state='open']:nth-last-of-type(1) {
|
|
16709
16723
|
z-index: ${({theme:e})=>(e.zIndex.snackbar||Eo.snackbar)-1};
|
|
@@ -16750,7 +16764,7 @@ const KY=AY,qY=TY,ZY=NY,XY=FY,JY=yr(_Y)``;yr.div`
|
|
|
16750
16764
|
|
|
16751
16765
|
width: 400px;
|
|
16752
16766
|
transition: all 0.3s ease-in-out;
|
|
16753
|
-
`,
|
|
16767
|
+
`,nW=yr(JY)`
|
|
16754
16768
|
text-align: ${({theme:e})=>"ltr"===e.direction?"left":"right"};
|
|
16755
16769
|
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
16756
16770
|
font-size: ${({theme:e})=>e.typography.primary.fontSize};
|
|
@@ -16758,7 +16772,7 @@ const KY=AY,qY=TY,ZY=NY,XY=FY,JY=yr(_Y)``;yr.div`
|
|
|
16758
16772
|
line-height: ${({theme:e})=>e.typography.primary.lineHeight};
|
|
16759
16773
|
color: ${({theme:e})=>e.colors.text.primary};
|
|
16760
16774
|
flex: 1;
|
|
16761
|
-
`,
|
|
16775
|
+
`,rW=yr(QY)``,oW=yr(ZY)`
|
|
16762
16776
|
position: fixed;
|
|
16763
16777
|
top: 16px;
|
|
16764
16778
|
display: flex;
|
|
@@ -16790,13 +16804,13 @@ const KY=AY,qY=TY,ZY=NY,XY=FY,JY=yr(_Y)``;yr.div`
|
|
|
16790
16804
|
animation-play-state: paused;
|
|
16791
16805
|
}
|
|
16792
16806
|
}
|
|
16793
|
-
`,
|
|
16807
|
+
`,aW=yr.div`
|
|
16794
16808
|
direction: ${({theme:e})=>e.direction};
|
|
16795
16809
|
display: flex;
|
|
16796
16810
|
align-items: center;
|
|
16797
16811
|
padding: 16px;
|
|
16798
16812
|
gap: 8px;
|
|
16799
|
-
`,
|
|
16813
|
+
`,iW=yr.div`
|
|
16800
16814
|
height: 4px;
|
|
16801
16815
|
background-color: ${({theme:e,toastType:t="success"})=>e.colors.text.semantic[t]};
|
|
16802
16816
|
border-radius: 4px 4px 0 0;
|
|
@@ -16807,18 +16821,18 @@ const KY=AY,qY=TY,ZY=NY,XY=FY,JY=yr(_Y)``;yr.div`
|
|
|
16807
16821
|
${"focus"===t?"running":"paused"};
|
|
16808
16822
|
will-change: width;
|
|
16809
16823
|
`}
|
|
16810
|
-
`,
|
|
16811
|
-
retainOnWindowBlur:!1,addToast:()=>{},updateToasts:()=>{}}),
|
|
16824
|
+
`,lW=e.createContext({toasts:[],windowState:"focus",retainOnHover:!0,
|
|
16825
|
+
retainOnWindowBlur:!1,addToast:()=>{},updateToasts:()=>{}}),cW=t=>{const n=cr()
|
|
16812
16826
|
;return e.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",
|
|
16813
16827
|
fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},e.createElement("path",{
|
|
16814
16828
|
fillRule:"evenodd",clipRule:"evenodd",
|
|
16815
16829
|
d:"M8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16C12.4183 16 16 12.4183 16 8C16 5.87827 15.1571 3.84344 13.6569 2.34315C12.1566 0.842855 10.1217 0 8 0ZM8 14.6C4.35492 14.6 1.4 11.6451 1.4 8C1.4 4.35492 4.35492 1.4 8 1.4C11.6451 1.4 14.6 4.35492 14.6 8C14.5945 11.6428 11.6428 14.5945 8 14.6ZM9 8L10.82 6.17L10.83 6.18C11.1061 5.90386 11.1061 5.45614 10.83 5.18C10.5539 4.90386 10.1061 4.90386 9.83 5.18L8 7L6.18 5.17C5.90386 4.89386 5.45614 4.89386 5.18 5.17C4.90386 5.44614 4.90386 5.89386 5.18 6.17L7 8L5.17 9.82C4.89386 10.0961 4.89386 10.5439 5.17 10.82C5.44614 11.0961 5.89386 11.0961 6.17 10.82L8 9L9.83 10.83C10.1061 11.1061 10.5539 11.1061 10.83 10.83C11.1061 10.5539 11.1061 10.1061 10.83 9.83L9 8Z",
|
|
16816
|
-
fill:n.colors.text.semantic.error}))},
|
|
16830
|
+
fill:n.colors.text.semantic.error}))},sW=t=>{const n=cr()
|
|
16817
16831
|
;return e.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",
|
|
16818
16832
|
fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},e.createElement("path",{
|
|
16819
16833
|
fillRule:"evenodd",clipRule:"evenodd",
|
|
16820
16834
|
d:"M10 2C5.58172 2 2 5.58172 2 10C2 14.4183 5.58172 18 10 18C14.4183 18 18 14.4183 18 10C18 7.87827 17.1571 5.84344 15.6569 4.34315C14.1566 2.84286 12.1217 2 10 2ZM9.99999 16.6C6.35491 16.6 3.39999 13.6451 3.39999 10C3.39999 6.35493 6.35491 3.40001 9.99999 3.40001C13.6451 3.40001 16.6 6.35493 16.6 10C16.5945 13.6428 13.6428 16.5945 9.99999 16.6ZM14.0045 7.83C14.0045 7.64099 13.927 7.46025 13.79 7.33C13.5144 7.06199 13.0756 7.06199 12.8 7.33L9 11.18L7.21 9.41C7.03137 9.23136 6.771 9.1616 6.52699 9.22698C6.28297 9.29237 6.09237 9.48297 6.02699 9.72698C5.9616 9.971 6.03137 10.2314 6.21 10.41L8.45 12.67C8.7268 12.9446 9.1732 12.9446 9.45 12.67L13.79 8.33C13.927 8.19974 14.0045 8.01901 14.0045 7.83Z",
|
|
16821
|
-
fill:n.colors.text.semantic.success}))},
|
|
16835
|
+
fill:n.colors.text.semantic.success}))},uW=t=>{const n=cr()
|
|
16822
16836
|
;return e.createElement("svg",{width:"20",height:"20",viewBox:"0 0 20 20",
|
|
16823
16837
|
fill:"none",xmlns:"http://www.w3.org/2000/svg",...t},e.createElement("path",{
|
|
16824
16838
|
fillRule:"evenodd",clipRule:"evenodd",
|
|
@@ -16827,34 +16841,34 @@ fill:n.colors.text.semantic.warning}),e.createElement("path",{
|
|
|
16827
16841
|
fillRule:"evenodd",clipRule:"evenodd",
|
|
16828
16842
|
d:"M9 12.8668C9 12.3145 9.44771 11.8668 10 11.8668C10.5523 11.8668 11 12.3145 11 12.8668C11 13.4191 10.5523 13.8668 10 13.8668C9.44771 13.8668 9 13.4191 9 12.8668ZM9.99951 10.9268C10.387 10.9268 10.7012 10.6127 10.7012 10.2252V6.48847C10.7012 6.10096 10.387 5.78681 9.99951 5.78681C9.612 5.78681 9.29785 6.10096 9.29785 6.48847V10.2252C9.29785 10.6127 9.612 10.9268 9.99951 10.9268Z",
|
|
16829
16843
|
fill:n.colors.text.semantic.warning}))
|
|
16830
|
-
},
|
|
16831
|
-
const s=cr(),{updateToasts:u,windowState:d,retainOnWindowBlur:h,retainOnHover:p}=e.useContext(
|
|
16844
|
+
},dW=({index:t,customIcon:n,id:r,fixed:o,text:a,showProgress:i=!1,delay:l=3e3,type:c="info"})=>{
|
|
16845
|
+
const s=cr(),{updateToasts:u,windowState:d,retainOnWindowBlur:h,retainOnHover:p}=e.useContext(lW)??{},f=e.useRef(null),[m,v]=e.useState(!1)
|
|
16832
16846
|
;e.useEffect((()=>{const e=window.setTimeout((()=>{
|
|
16833
16847
|
o||m&&p||h||u((e=>e.filter((e=>e.id!==r))))}),l);return()=>clearTimeout(e)
|
|
16834
|
-
}),[l,o,r,u,m,p,h]);const g={success:e.createElement(
|
|
16835
|
-
fill:s.colors.text.semantic.success}),warning:e.createElement(
|
|
16836
|
-
fill:s.colors.text.semantic.warning}),error:e.createElement(
|
|
16848
|
+
}),[l,o,r,u,m,p,h]);const g={success:e.createElement(sW,{
|
|
16849
|
+
fill:s.colors.text.semantic.success}),warning:e.createElement(uW,{
|
|
16850
|
+
fill:s.colors.text.semantic.warning}),error:e.createElement(cW,{
|
|
16837
16851
|
fill:s.colors.text.semantic.error}),info:e.createElement(io,{
|
|
16838
16852
|
fill:s.colors.text.semantic.info})}
|
|
16839
|
-
;return e.createElement(e.Fragment,null,e.createElement(
|
|
16853
|
+
;return e.createElement(e.Fragment,null,e.createElement(tW,{role:"alert",
|
|
16840
16854
|
"aria-live":"polite",ref:f,toastType:c,dir:s.direction,style:o||!i?{
|
|
16841
16855
|
borderTop:"none"}:void 0,toastIndex:t,
|
|
16842
16856
|
className:`ToastRoot Toast-${r??""}`.trim(),duration:o?1/0:l,
|
|
16843
16857
|
onMouseEnter:()=>v(!0),onMouseLeave:()=>v(!1),onOpenChange:e=>{
|
|
16844
|
-
e||u((e=>e.filter((e=>e.id!==r))))}},e.createElement(
|
|
16858
|
+
e||u((e=>e.filter((e=>e.id!==r))))}},e.createElement(iW,{
|
|
16845
16859
|
className:"ToastProgress",windowState:d,toastType:c,delay:!o&&i?l:"none"
|
|
16846
|
-
}),e.createElement(
|
|
16847
|
-
},a),e.createElement(
|
|
16860
|
+
}),e.createElement(aW,null,n??g[c],e.createElement(nW,{className:"ToastTitle"
|
|
16861
|
+
},a),e.createElement(rW,{className:"ToastAction",asChild:!0,altText:"Close",
|
|
16848
16862
|
"aria-label":"Close"},e.createElement(No,null,e.createElement(ro,{
|
|
16849
|
-
fill:s.colors.text.primary}))))))},
|
|
16850
|
-
const n=`ui-${t}`,{isBrowser:r}=
|
|
16851
|
-
;return e.useEffect((()=>{const e=document.querySelector(`#${n}`),t=e||
|
|
16863
|
+
fill:s.colors.text.primary}))))))},hW=()=>{const n=((t=fj())=>{
|
|
16864
|
+
const n=`ui-${t}`,{isBrowser:r}=bY(),[o,a]=e.useState(r?wY(n):null)
|
|
16865
|
+
;return e.useEffect((()=>{const e=document.querySelector(`#${n}`),t=e||wY(n)
|
|
16852
16866
|
;e||document.body.appendChild(t),a(t)}),[]),o
|
|
16853
|
-
})("toast"),{toasts:r}=e.useContext(
|
|
16854
|
-
;return n?t.createPortal(e.createElement(e.Fragment,null,e.createElement(
|
|
16855
|
-
swipeDirection:"up"},r.map(((t,n)=>e.createElement(
|
|
16856
|
-
index:n}))),e.createElement(
|
|
16857
|
-
},
|
|
16867
|
+
})("toast"),{toasts:r}=e.useContext(lW)??{}
|
|
16868
|
+
;return n?t.createPortal(e.createElement(e.Fragment,null,e.createElement(eW,{
|
|
16869
|
+
swipeDirection:"up"},r.map(((t,n)=>e.createElement(dW,{key:`Toast-${t.id}`,...t,
|
|
16870
|
+
index:n}))),e.createElement(oW,{className:"ToastViewport"}))),n):null
|
|
16871
|
+
},pW=({children:t,retainOnHover:n=!0,retainOnWindowBlur:r=!1})=>{
|
|
16858
16872
|
const[o,a]=e.useState("focus"),[i,l]=e.useState([]),c=e.useCallback((e=>{
|
|
16859
16873
|
l((t=>[{...e,id:fj(),state:"open"},...t]))}),[]),s=e.useCallback((e=>{
|
|
16860
16874
|
l((t=>e(t)))}),[]),u=e.useMemo((()=>({toasts:i,addToast:c,windowState:o,
|
|
@@ -16863,18 +16877,18 @@ updateToasts:s,retainOnWindowBlur:r,retainOnHover:n})),[i,c,o,s,n,r])
|
|
|
16863
16877
|
a("focus")}),!1),window.addEventListener("blur",(()=>{a("blur")}),!1)),()=>{
|
|
16864
16878
|
r&&(window.removeEventListener("focus",(()=>{})),
|
|
16865
16879
|
window.removeEventListener("blur",(()=>{})))
|
|
16866
|
-
})),[r]),e.createElement(
|
|
16867
|
-
},
|
|
16880
|
+
})),[r]),e.createElement(lW.Provider,{value:u},e.createElement(hW,null),t)
|
|
16881
|
+
},fW="Switch",[mW,vW]=i(fW),[gW,yW]=mW(fW),bW=e.forwardRef(((t,n)=>{
|
|
16868
16882
|
const{__scopeSwitch:r,name:o,checked:i,defaultChecked:l,required:c,disabled:u,value:d="on",onCheckedChange:h,...p}=t,[f,m]=e.useState(null),g=s(n,(e=>m(e))),w=e.useRef(!1),C=!f||Boolean(f.closest("form")),[z=!1,M]=y({
|
|
16869
|
-
prop:i,defaultProp:l,onChange:h});return e.createElement(
|
|
16883
|
+
prop:i,defaultProp:l,onChange:h});return e.createElement(gW,{scope:r,checked:z,
|
|
16870
16884
|
disabled:u},e.createElement(b.button,a({type:"button",role:"switch",
|
|
16871
|
-
"aria-checked":z,"aria-required":c,"data-state":
|
|
16885
|
+
"aria-checked":z,"aria-required":c,"data-state":CW(z),
|
|
16872
16886
|
"data-disabled":u?"":void 0,disabled:u,value:d},p,{ref:g,
|
|
16873
16887
|
onClick:v(t.onClick,(e=>{
|
|
16874
16888
|
M((e=>!e)),C&&(w.current=e.isPropagationStopped(),w.current||e.stopPropagation())
|
|
16875
|
-
}))})),C&&e.createElement(
|
|
16889
|
+
}))})),C&&e.createElement(wW,{control:f,bubbles:!w.current,name:o,value:d,
|
|
16876
16890
|
checked:z,required:c,disabled:u,style:{transform:"translateX(-100%)"}}))
|
|
16877
|
-
})),
|
|
16891
|
+
})),wW=t=>{
|
|
16878
16892
|
const{control:n,checked:r,bubbles:o=!0,...i}=t,l=e.useRef(null),c=Oh(r),s=vh(n)
|
|
16879
16893
|
;return e.useEffect((()=>{
|
|
16880
16894
|
const e=l.current,t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"checked").set
|
|
@@ -16882,21 +16896,21 @@ const e=l.current,t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDes
|
|
|
16882
16896
|
;n.call(e,r),e.dispatchEvent(t)}}),[c,r,o]),e.createElement("input",a({
|
|
16883
16897
|
type:"checkbox","aria-hidden":!0,defaultChecked:r},i,{tabIndex:-1,ref:l,style:{
|
|
16884
16898
|
...t.style,...s,position:"absolute",pointerEvents:"none",opacity:0,margin:0}}))}
|
|
16885
|
-
;function
|
|
16886
|
-
const{__scopeSwitch:r,...o}=t,i=
|
|
16887
|
-
;return e.createElement(b.span,a({"data-state":
|
|
16888
|
-
"data-disabled":i.disabled?"":void 0},o,{ref:n}))})),
|
|
16899
|
+
;function CW(e){return e?"checked":"unchecked"}const zW=e.forwardRef(((t,n)=>{
|
|
16900
|
+
const{__scopeSwitch:r,...o}=t,i=yW("SwitchThumb",r)
|
|
16901
|
+
;return e.createElement(b.span,a({"data-state":CW(i.checked),
|
|
16902
|
+
"data-disabled":i.disabled?"":void 0},o,{ref:n}))})),MW={sm:{width:28,height:12,
|
|
16889
16903
|
thumb:16,offTransform:[-2,-2],onTransform:[14,-2]},md:{width:36,height:16,
|
|
16890
16904
|
thumb:20,offTransform:[-2,-2],onTransform:[18,-2]},lg:{width:44,height:20,
|
|
16891
|
-
thumb:24,offTransform:[-2,-2],onTransform:[22,-2]}},
|
|
16905
|
+
thumb:24,offTransform:[-2,-2],onTransform:[22,-2]}},xW=yr(bW)`
|
|
16892
16906
|
margin: 0;
|
|
16893
16907
|
padding: 0;
|
|
16894
16908
|
outline: 0;
|
|
16895
16909
|
border: none;
|
|
16896
16910
|
position: relative;
|
|
16897
|
-
width: ${({size:e})=>
|
|
16898
|
-
height: ${({size:e})=>
|
|
16899
|
-
border-radius: ${({size:e})=>
|
|
16911
|
+
width: ${({size:e})=>MW[e].width}px;
|
|
16912
|
+
height: ${({size:e})=>MW[e].height}px;
|
|
16913
|
+
border-radius: ${({size:e})=>MW[e].height/2}px;
|
|
16900
16914
|
direction: ltr !important;
|
|
16901
16915
|
&[data-disabled] {
|
|
16902
16916
|
opacity: 0.5;
|
|
@@ -16917,17 +16931,17 @@ thumb:24,offTransform:[-2,-2],onTransform:[22,-2]}},zW=yr(gW)`
|
|
|
16917
16931
|
}
|
|
16918
16932
|
}
|
|
16919
16933
|
}
|
|
16920
|
-
`,
|
|
16934
|
+
`,EW=yr(zW)`
|
|
16921
16935
|
display: grid;
|
|
16922
16936
|
place-content: center;
|
|
16923
|
-
width: ${({size:e})=>
|
|
16924
|
-
height: ${({size:e})=>
|
|
16937
|
+
width: ${({size:e})=>MW[e].thumb}px;
|
|
16938
|
+
height: ${({size:e})=>MW[e].thumb}px;
|
|
16925
16939
|
border-radius: 50%;
|
|
16926
16940
|
direction: ltr !important;
|
|
16927
16941
|
background-color: ${({theme:e})=>e.colors.common.white};
|
|
16928
16942
|
transition: transform 100ms;
|
|
16929
16943
|
transform: translate(
|
|
16930
|
-
${({theme:e,size:t})=>("ltr"===e.direction?
|
|
16944
|
+
${({theme:e,size:t})=>("ltr"===e.direction?MW[t].offTransform:MW[t].onTransform).map((e=>`${e}px`)).join(",")}
|
|
16931
16945
|
) !important;
|
|
16932
16946
|
will-change: transform;
|
|
16933
16947
|
overflow: hidden;
|
|
@@ -16949,17 +16963,17 @@ thumb:24,offTransform:[-2,-2],onTransform:[22,-2]}},zW=yr(gW)`
|
|
|
16949
16963
|
}
|
|
16950
16964
|
&[data-state='checked'] {
|
|
16951
16965
|
transform: translate(
|
|
16952
|
-
${({theme:e,size:t})=>("ltr"===e.direction?
|
|
16966
|
+
${({theme:e,size:t})=>("ltr"===e.direction?MW[t].onTransform:MW[t].offTransform).map((e=>`${e}px`)).join(",")}
|
|
16953
16967
|
) !important;
|
|
16954
16968
|
border: 1px solid ${({theme:e})=>e.colors.common.accent};
|
|
16955
16969
|
svg.toggle-off {
|
|
16956
16970
|
display: none;
|
|
16957
16971
|
}
|
|
16958
16972
|
}
|
|
16959
|
-
`,
|
|
16960
|
-
},
|
|
16961
|
-
},[
|
|
16962
|
-
const{__scopeTooltip:r,...o}=t,i=
|
|
16973
|
+
`,SW={sm:{width:6,height:4.3},md:{width:8,height:5.73},lg:{width:10,height:7.16}
|
|
16974
|
+
},_W={sm:{width:4.5,height:4.5},md:{width:6,height:6},lg:{width:8,height:8}
|
|
16975
|
+
},[HW,DW]=i("Tooltip",[bh]),kW=bh(),AW=700,LW="tooltip.open",[VW,TW]=HW("TooltipProvider"),RW="Tooltip",[PW,IW]=HW(RW),OW="TooltipTrigger",NW=e.forwardRef(((t,n)=>{
|
|
16976
|
+
const{__scopeTooltip:r,...o}=t,i=IW(OW,r),l=TW(OW,r),c=kW(r),u=s(n,e.useRef(null),i.onTriggerChange),d=e.useRef(!1),h=e.useRef(!1),p=e.useCallback((()=>d.current=!1),[])
|
|
16963
16977
|
;return e.useEffect((()=>()=>document.removeEventListener("pointerup",p)),[p]),
|
|
16964
16978
|
e.createElement(Th,a({asChild:!0},c),e.createElement(b.button,a({
|
|
16965
16979
|
"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},o,{
|
|
@@ -16969,13 +16983,13 @@ h.current=!0))})),onPointerLeave:v(t.onPointerLeave,(()=>{
|
|
|
16969
16983
|
i.onTriggerLeave(),h.current=!1})),onPointerDown:v(t.onPointerDown,(()=>{
|
|
16970
16984
|
d.current=!0,document.addEventListener("pointerup",p,{once:!0})})),
|
|
16971
16985
|
onFocus:v(t.onFocus,(()=>{d.current||i.onOpen()})),onBlur:v(t.onBlur,i.onClose),
|
|
16972
|
-
onClick:v(t.onClick,i.onClose)})))})),
|
|
16973
|
-
forceMount:void 0})
|
|
16974
|
-
const r=
|
|
16986
|
+
onClick:v(t.onClick,i.onClose)})))})),FW="TooltipPortal",[$W,BW]=HW(FW,{
|
|
16987
|
+
forceMount:void 0}),jW="TooltipContent",UW=e.forwardRef(((t,n)=>{
|
|
16988
|
+
const r=BW(jW,t.__scopeTooltip),{forceMount:o=r.forceMount,side:i="top",...l}=t,c=IW(jW,t.__scopeTooltip)
|
|
16975
16989
|
;return e.createElement(z,{present:o||c.open
|
|
16976
|
-
},c.disableHoverableContent?e.createElement(
|
|
16977
|
-
})):e.createElement(
|
|
16978
|
-
const r=
|
|
16990
|
+
},c.disableHoverableContent?e.createElement(KW,a({side:i},l,{ref:n
|
|
16991
|
+
})):e.createElement(YW,a({side:i},l,{ref:n})))})),YW=e.forwardRef(((t,n)=>{
|
|
16992
|
+
const r=IW(jW,t.__scopeTooltip),o=TW(jW,t.__scopeTooltip),i=e.useRef(null),l=s(n,i),[c,u]=e.useState(null),{trigger:d,onClose:h}=r,p=i.current,{onPointerInTransitChange:f}=o,m=e.useCallback((()=>{
|
|
16979
16993
|
u(null),f(!1)}),[f]),v=e.useCallback(((e,t)=>{const n=e.currentTarget,r={
|
|
16980
16994
|
x:e.clientX,y:e.clientY},o=function(e,t){
|
|
16981
16995
|
const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x)
|
|
@@ -17012,11 +17026,11 @@ const i=t[e].x,l=t[e].y,c=t[a].x,s=t[a].y
|
|
|
17012
17026
|
;l>r!=s>r&&n<(c-i)*(r-l)/(s-l)+i&&(o=!o)}return o}(n,c);r?m():o&&(m(),h())}
|
|
17013
17027
|
;return document.addEventListener("pointermove",e),
|
|
17014
17028
|
()=>document.removeEventListener("pointermove",e)}
|
|
17015
|
-
}),[d,p,c,h,m]),e.createElement(
|
|
17016
|
-
isInside:!1}),
|
|
17017
|
-
const{__scopeTooltip:r,children:o,"aria-label":i,onEscapeKeyDown:l,onPointerDownOutside:c,...s}=t,u=
|
|
17018
|
-
;return e.useEffect((()=>(document.addEventListener(
|
|
17019
|
-
()=>document.removeEventListener(
|
|
17029
|
+
}),[d,p,c,h,m]),e.createElement(KW,a({},t,{ref:l}))})),[WW,GW]=HW(RW,{
|
|
17030
|
+
isInside:!1}),KW=e.forwardRef(((t,n)=>{
|
|
17031
|
+
const{__scopeTooltip:r,children:o,"aria-label":i,onEscapeKeyDown:l,onPointerDownOutside:c,...s}=t,u=IW(jW,r),d=kW(r),{onClose:p}=u
|
|
17032
|
+
;return e.useEffect((()=>(document.addEventListener(LW,p),
|
|
17033
|
+
()=>document.removeEventListener(LW,p))),[p]),e.useEffect((()=>{if(u.trigger){
|
|
17020
17034
|
const e=e=>{const t=e.target;null!=t&&t.contains(u.trigger)&&p()}
|
|
17021
17035
|
;return window.addEventListener("scroll",e,{capture:!0
|
|
17022
17036
|
}),()=>window.removeEventListener("scroll",e,{capture:!0})}
|
|
@@ -17029,19 +17043,19 @@ style:{...s.style,
|
|
|
17029
17043
|
"--radix-tooltip-content-available-height":"var(--radix-popper-available-height)",
|
|
17030
17044
|
"--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)",
|
|
17031
17045
|
"--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}
|
|
17032
|
-
}),e.createElement(h,null,o),e.createElement(
|
|
17033
|
-
},e.createElement(Fh,{id:u.contentId,role:"tooltip"},i||o))))}));const
|
|
17034
|
-
const{__scopeTooltip:n,delayDuration:r=
|
|
17046
|
+
}),e.createElement(h,null,o),e.createElement(WW,{scope:r,isInside:!0
|
|
17047
|
+
},e.createElement(Fh,{id:u.contentId,role:"tooltip"},i||o))))}));const qW=t=>{
|
|
17048
|
+
const{__scopeTooltip:n,delayDuration:r=AW,skipDelayDuration:o=300,disableHoverableContent:a=!1,children:i}=t,[l,c]=e.useState(!0),s=e.useRef(!1),u=e.useRef(0)
|
|
17035
17049
|
;return e.useEffect((()=>{const e=u.current;return()=>window.clearTimeout(e)
|
|
17036
|
-
}),[]),e.createElement(
|
|
17050
|
+
}),[]),e.createElement(VW,{scope:n,isOpenDelayed:l,delayDuration:r,
|
|
17037
17051
|
onOpen:e.useCallback((()=>{window.clearTimeout(u.current),c(!1)}),[]),
|
|
17038
17052
|
onClose:e.useCallback((()=>{
|
|
17039
17053
|
window.clearTimeout(u.current),u.current=window.setTimeout((()=>c(!0)),o)
|
|
17040
17054
|
}),[o]),isPointerInTransitRef:s,onPointerInTransitChange:e.useCallback((e=>{
|
|
17041
|
-
s.current=e}),[]),disableHoverableContent:a},i)},
|
|
17042
|
-
const{__scopeTooltip:n,children:r,open:o,defaultOpen:a=!1,onOpenChange:i,disableHoverableContent:l,delayDuration:c}=t,s=
|
|
17055
|
+
s.current=e}),[]),disableHoverableContent:a},i)},ZW=t=>{
|
|
17056
|
+
const{__scopeTooltip:n,children:r,open:o,defaultOpen:a=!1,onOpenChange:i,disableHoverableContent:l,delayDuration:c}=t,s=TW(RW,t.__scopeTooltip),u=kW(n),[d,h]=e.useState(null),p=S(),f=e.useRef(0),m=null!=l?l:s.disableHoverableContent,v=null!=c?c:s.delayDuration,g=e.useRef(!1),[b=!1,w]=y({
|
|
17043
17057
|
prop:o,defaultProp:a,onChange:e=>{
|
|
17044
|
-
e?(s.onOpen(),document.dispatchEvent(new CustomEvent(
|
|
17058
|
+
e?(s.onOpen(),document.dispatchEvent(new CustomEvent(LW))):s.onClose(),
|
|
17045
17059
|
null==i||i(e)}
|
|
17046
17060
|
}),C=e.useMemo((()=>b?g.current?"delayed-open":"instant-open":"closed"),[b]),z=e.useCallback((()=>{
|
|
17047
17061
|
window.clearTimeout(f.current),g.current=!1,w(!0)}),[w]),M=e.useCallback((()=>{
|
|
@@ -17049,19 +17063,19 @@ window.clearTimeout(f.current),w(!1)}),[w]),x=e.useCallback((()=>{
|
|
|
17049
17063
|
window.clearTimeout(f.current),f.current=window.setTimeout((()=>{
|
|
17050
17064
|
g.current=!0,w(!0)}),v)}),[v,w])
|
|
17051
17065
|
;return e.useEffect((()=>()=>window.clearTimeout(f.current)),[]),
|
|
17052
|
-
e.createElement(Vh,u,e.createElement(
|
|
17066
|
+
e.createElement(Vh,u,e.createElement(PW,{scope:n,contentId:p,open:b,
|
|
17053
17067
|
stateAttribute:C,trigger:d,onTriggerChange:h,onTriggerEnter:e.useCallback((()=>{
|
|
17054
17068
|
s.isOpenDelayed?x():z()}),[s.isOpenDelayed,x,z]),
|
|
17055
17069
|
onTriggerLeave:e.useCallback((()=>{m?M():window.clearTimeout(f.current)
|
|
17056
|
-
}),[M,m]),onOpen:z,onClose:M,disableHoverableContent:m},r))},
|
|
17057
|
-
const{__scopeTooltip:n,forceMount:r,children:o,container:a}=t,i=
|
|
17058
|
-
;return e.createElement(
|
|
17070
|
+
}),[M,m]),onOpen:z,onClose:M,disableHoverableContent:m},r))},XW=NW,JW=t=>{
|
|
17071
|
+
const{__scopeTooltip:n,forceMount:r,children:o,container:a}=t,i=IW(FW,n)
|
|
17072
|
+
;return e.createElement($W,{scope:n,forceMount:r},e.createElement(z,{
|
|
17059
17073
|
present:r||i.open},e.createElement(Ih,{asChild:!0,container:a},o)))
|
|
17060
|
-
},
|
|
17061
|
-
;return
|
|
17074
|
+
},QW=UW,eG=yr(e.forwardRef(((t,n)=>{const{__scopeTooltip:r,...o}=t,i=kW(r)
|
|
17075
|
+
;return GW("TooltipArrow",r).isInside?null:e.createElement(Ph,a({},i,o,{ref:n}))
|
|
17062
17076
|
})))`
|
|
17063
17077
|
fill: ${({theme:e})=>e.colors.fill.inverse};
|
|
17064
|
-
`,
|
|
17078
|
+
`,tG=yr(QW)`
|
|
17065
17079
|
font-family: ${({theme:e})=>e.typography.fontFamily};
|
|
17066
17080
|
font-size: ${({theme:e})=>e.typography.secondary.fontSize};
|
|
17067
17081
|
font-weight: ${({theme:e})=>e.typography.fontWeight["semi-bold"]};
|
|
@@ -17093,9 +17107,9 @@ present:r||i.open},e.createElement(Ih,{asChild:!0,container:a},o)))
|
|
|
17093
17107
|
&[data-state='closed'] {
|
|
17094
17108
|
animation-name: ${xr};
|
|
17095
17109
|
}
|
|
17096
|
-
`,
|
|
17110
|
+
`,nG=yr(qW)``,rG=yr(ZW)``,oG=yr(XW)`
|
|
17097
17111
|
color: inherit;
|
|
17098
|
-
`,
|
|
17112
|
+
`,aG=yr(JW)``;var iG=wr`
|
|
17099
17113
|
|
|
17100
17114
|
div:has( > div[data-tooltip-content]){
|
|
17101
17115
|
z-index: ${({theme:e})=>e.zIndex.tooltip||Eo.tooltip} !important;
|
|
@@ -17105,10 +17119,10 @@ div:has( > div[data-popover-content]){
|
|
|
17105
17119
|
z-index: ${({theme:e})=>e.zIndex.popover||Eo.popover} !important;
|
|
17106
17120
|
}
|
|
17107
17121
|
|
|
17108
|
-
`,
|
|
17122
|
+
`,lG=Object.freeze({__proto__:null,allPathsLoader:function(e,t){
|
|
17109
17123
|
return Ce(void 0,void 0,void 0,(function(){return ze(this,(function(n){
|
|
17110
17124
|
switch(n.label){case 0:return[4,Promise.resolve().then((function(){return e_}))]
|
|
17111
|
-
;case 1:return[2,(0,n.sent().getIconPaths)(e,t)]}}))}))}}),
|
|
17125
|
+
;case 1:return[2,(0,n.sent().getIconPaths)(e,t)]}}))}))}}),cG=Object.freeze({
|
|
17112
17126
|
__proto__:null,splitPathsBySizeLoader:function(e,t){
|
|
17113
17127
|
return Ce(void 0,void 0,void 0,(function(){var n,r;return ze(this,(function(o){
|
|
17114
17128
|
switch(o.label){case 0:
|
|
@@ -17297,7 +17311,7 @@ fill:u.colors.text.inverse}))),n)))
|
|
|
17297
17311
|
},exports.Dropdown=ab,exports.DropdownInputItem=$f,
|
|
17298
17312
|
exports.DropdownItem=cb,exports.DropdownMenuItem=Xv,
|
|
17299
17313
|
exports.ErrorIcon=oo,exports.Freddy=ao,
|
|
17300
|
-
exports.FreemiumUIGlobalStyles=
|
|
17314
|
+
exports.FreemiumUIGlobalStyles=iG,exports.FreshLink=Vo,
|
|
17301
17315
|
exports.IconButton=Lo,exports.InfoIcon=io,
|
|
17302
17316
|
exports.Input=fm,exports.InputLabel=ko,
|
|
17303
17317
|
exports.Loader=wm,exports.Menu=sb,exports.Minus=lo,
|
|
@@ -17383,120 +17397,105 @@ disabled:t.disabled,htmlFor:t?.[r]
|
|
|
17383
17397
|
},t?.[o]))))),c&&s&&e.createElement(lm,null,s))
|
|
17384
17398
|
},exports.RadixMenuItem=jv,exports.RadixSelectItem=Lf,
|
|
17385
17399
|
exports.Reorder=yj,exports.RequiredIndicator=Ao,
|
|
17386
|
-
exports.SortDropdown=
|
|
17387
|
-
const{data:n,columns:
|
|
17400
|
+
exports.SortDropdown=tY,exports.StyledLabel=Do,exports.Table=t=>{
|
|
17401
|
+
const{data:n,columns:r,showFooter:o=!1,infoComponent:a,isLoading:i,isFetching:l,emptyComponent:c,loadingComponent:s,actionComponent:u,headerComponent:d,editColumnComponent:h,filterComponent:p,hideTableOnEmpty:f,hideTopPagination:m,hideFilters:v,isFilterOpenByDefault:g=!0,sortingHeading:y,showTableOnLoading:b,hideLoaderOnTopPagination:w,hideActions:C,count:z,pageIndex:M=0,pageSize:x=20,enablePreviousPage:E,enableNextPage:S,hideColumnSettings:_=!0,hideBottomPagination:H,rowMenuOptions:D,onPreviousPageClick:k,enableSorting:A,sortingValues:L,sortingOptions:V,onSortingOptionSelect:T,onNextPageClick:R,disableRowSelect:P,hideSelectAllInTable:I,onSelectAllRows:O,onRowSelect:N,onMenuOptionSelect:F,onRowClick:$,columnOrder:B,setColumnOrder:j,setHiddenColumns:U,hiddenColumns:Y,selectedRowIds:W={},isDisableSortDropdown:G,setSelectedRowIds:K,dataKey:q="id",cellPropGetter:Z,setPageIndex:X,rowPropGetter:J,translationTexts:Q}=t,ee=cr(),[te,ne]=e.useState(!!g),re={
|
|
17388
17402
|
accessor:(e,t)=>"function"==typeof e?{...t,accessorFn:e}:{...t,accessorKey:e},
|
|
17389
|
-
display:e=>e,group:e=>e},
|
|
17390
|
-
id:"select",header:({table:t})=>
|
|
17403
|
+
display:e=>e,group:e=>e},oe=-1===z||void 0===z,ae=e.useMemo((()=>[...P?[]:[{
|
|
17404
|
+
id:"select",header:({table:t})=>I?e.createElement("div",{
|
|
17391
17405
|
className:"table-checkbox-header"}):e.createElement(Yg,{
|
|
17392
17406
|
className:"table-checkbox",
|
|
17393
17407
|
checked:t.getIsSomeRowsSelected()?"indeterminate":t.getIsAllRowsSelected(),
|
|
17394
17408
|
indeterminate:t.getIsSomeRowsSelected(),onCheckedChange:e=>{
|
|
17395
|
-
t.toggleAllPageRowsSelected(!0===e),
|
|
17409
|
+
t.toggleAllPageRowsSelected(!0===e),O?.(!0===e)}}),
|
|
17396
17410
|
cell:({row:t})=>e.createElement(Yg,{className:"table-checkbox",
|
|
17397
17411
|
checked:t.getIsSelected(),disabled:!t.getCanSelect(),
|
|
17398
17412
|
indeterminate:t.getIsSomeSelected(),onCheckedChange:e=>{
|
|
17399
|
-
t.toggleSelected(!0===e),
|
|
17400
|
-
}],...
|
|
17401
|
-
cell:t=>e.accessorFn(t.row.original)}))),...
|
|
17413
|
+
t.toggleSelected(!0===e),N?.(t.original,!0===e)}})
|
|
17414
|
+
}],...r.map((e=>re.accessor(e.id,{header:e.Header,id:e.id??e.Header,
|
|
17415
|
+
cell:t=>e.accessorFn(t.row.original)}))),...D?[{id:"rowMenuOptions",
|
|
17402
17416
|
header:()=>e.createElement("div",{id:"more-actions-header"}),
|
|
17403
17417
|
cell:({row:t})=>e.createElement(sb,{trigger:e.createElement(co,{
|
|
17404
|
-
className:"more-actions",fill:"currentcolor"}),options:
|
|
17405
|
-
onSelect:e=>{e.id
|
|
17406
|
-
align:"rtl"===
|
|
17407
|
-
}]:[]]),[
|
|
17408
|
-
;return
|
|
17409
|
-
}),[
|
|
17410
|
-
|
|
17411
|
-
},
|
|
17412
|
-
|
|
17413
|
-
;
|
|
17414
|
-
|
|
17415
|
-
|
|
17416
|
-
|
|
17417
|
-
|
|
17418
|
-
|
|
17419
|
-
|
|
17420
|
-
;n.flatRows.push(s),
|
|
17421
|
-
n.rowsById[s.id]=s,i.push(s),e.options.getSubRows&&(s.originalSubRows=e.options.getSubRows(t[c],c),
|
|
17422
|
-
null!=(l=s.originalSubRows)&&l.length&&(s.subRows=r(s.originalSubRows,o+1,s)))}
|
|
17423
|
-
return i};return n.rows=r(t),n
|
|
17424
|
-
}),xj(e.options,"debugTable","getRowModel",(()=>e._autoResetPageIndex()))),
|
|
17425
|
-
state:{columnOrder:j,columnVisibility:le,rowSelection:G,pagination:ce},
|
|
17426
|
-
initialState:{columnPinning:{left:["select"],right:["rowMenuOptions"]}},
|
|
17427
|
-
onPaginationChange:e=>{let t=ce;t="function"==typeof e?e(ce):e,J?.(t.pageIndex)
|
|
17428
|
-
},onColumnVisibilityChange:e=>{let t=le
|
|
17429
|
-
;t="function"==typeof e?e(le):e,Y?.(Object.keys(t).filter((e=>!t[e])))},
|
|
17430
|
-
onColumnOrderChange:e=>{let t=j??[];t="function"==typeof e?e(j??[]):e,U?.(t)},
|
|
17431
|
-
onRowSelectionChange:e=>{let t=G;t="function"==typeof e?e(G):e,q?.(t)},
|
|
17432
|
-
enableRowSelection:!0,manualPagination:!0,rowCount:ae?-1:M
|
|
17433
|
-
}),{getPageCount:ue,getRowModel:de,getState:he,getCanNextPage:pe,getCanPreviousPage:fe,getPageOptions:me,previousPage:ve,setPageIndex:ge,nextPage:ye,lastPage:be,firstPage:we}=se,{rows:Ce}=de(),{pagination:{pageIndex:ze,pageSize:Me}}=he(),xe=ze*Me+(ze<ue()-1?Me:Ce.length),Ee=se.getAllColumns().filter((e=>e.getIsVisible())).length+(I?0:1)+(k?1:0),Se=T?.[0].find((e=>e.id===V?.[0]))?.name
|
|
17434
|
-
;return e.createElement(gU,{className:"TableContainer"},!z&&e.createElement(MU,{
|
|
17418
|
+
className:"more-actions",fill:"currentcolor"}),options:D(t.original)||[],
|
|
17419
|
+
onSelect:e=>{e.id&&F?.(e.id,t.original)},side:"bottom",
|
|
17420
|
+
align:"rtl"===ee.direction?"start":"end"})
|
|
17421
|
+
}]:[]]),[r,P,I,ee.colors.text.primary]),ie=e.useMemo((()=>{const e={}
|
|
17422
|
+
;return r.forEach((t=>{e[t.id]=!(Y??[]).includes(t.id)})),e
|
|
17423
|
+
}),[r,Y]),le=e.useMemo((()=>({pageIndex:M,pageSize:x})),[x,M]),ce=yU({data:n,
|
|
17424
|
+
columns:ae,getRowId:e=>e?.[q]??"id",getCoreRowModel:vU(),state:{columnOrder:B,
|
|
17425
|
+
columnVisibility:ie,rowSelection:W,pagination:le},initialState:{columnPinning:{
|
|
17426
|
+
left:["select"],right:["rowMenuOptions"]}},onPaginationChange:e=>{let t=le
|
|
17427
|
+
;t="function"==typeof e?e(le):e,X?.(t.pageIndex)},onColumnVisibilityChange:e=>{
|
|
17428
|
+
let t=ie;t="function"==typeof e?e(ie):e,U?.(Object.keys(t).filter((e=>!t[e])))},
|
|
17429
|
+
onColumnOrderChange:e=>{let t=B??[];t="function"==typeof e?e(B??[]):e,j?.(t)},
|
|
17430
|
+
onRowSelectionChange:e=>{let t=W;t="function"==typeof e?e(W):e,K?.(t)},
|
|
17431
|
+
enableRowSelection:!0,manualPagination:!0,rowCount:oe?-1:z
|
|
17432
|
+
}),{getPageCount:se,getRowModel:ue,getState:de,getCanNextPage:he,getCanPreviousPage:pe,getPageOptions:fe,previousPage:me,setPageIndex:ve,nextPage:ge,lastPage:ye,firstPage:be}=ce,{rows:we}=ue(),{pagination:{pageIndex:Ce,pageSize:ze}}=de(),Me=Ce*ze+(Ce<se()-1?ze:we.length),xe=ce.getAllColumns().filter((e=>e.getIsVisible())).length+(P?0:1)+(D?1:0),Ee=V?.[0].find((e=>e.id===L?.[0]))?.name
|
|
17433
|
+
;return e.createElement(bU,{className:"TableContainer"},!C&&e.createElement(EU,{
|
|
17435
17434
|
className:"table-actions"
|
|
17436
|
-
},
|
|
17437
|
-
className:"table-header-component"},
|
|
17438
|
-
className:"table-header-dropdown-pagination"},
|
|
17435
|
+
},u&&e.createElement(e.Fragment,null,u),e.createElement(HU,{
|
|
17436
|
+
className:"table-header-component"},d??null),e.createElement(kU,{
|
|
17437
|
+
className:"table-header-dropdown-pagination"},A&&e.createElement("div",{
|
|
17439
17438
|
className:"table-heading-dropdown"},e.createElement("div",{
|
|
17440
|
-
className:"table-sorting-heading"},`${
|
|
17439
|
+
className:"table-sorting-heading"},`${y}:`)," ",e.createElement(tY,{
|
|
17441
17440
|
trigger:e.createElement("div",{className:"table-sorting-value-continer"
|
|
17442
|
-
},e.createElement("div",null,
|
|
17443
|
-
isDisableSortDropdown:!!
|
|
17444
|
-
})),e.createElement(
|
|
17445
|
-
},
|
|
17446
|
-
},!
|
|
17447
|
-
className:"pagination-text"},
|
|
17448
|
-
}):e.createElement(e.Fragment,null,n.length>0?`${ze
|
|
17441
|
+
},e.createElement("div",null,Ee),e.createElement(ZU,{fill:"currentcolor"})),
|
|
17442
|
+
isDisableSortDropdown:!!G,options:V||[],value:L,onSelect:e=>{T?.(e??[])}
|
|
17443
|
+
})),e.createElement(DU,{className:"table-edit-column-component"
|
|
17444
|
+
},h??null),e.createElement(AU,{className:"pagination-actions"
|
|
17445
|
+
},!m&&e.createElement(e.Fragment,null,e.createElement(Yo,{variant:"primary",
|
|
17446
|
+
className:"pagination-text"},i&&!w?e.createElement(wm,{size:"small"
|
|
17447
|
+
}):e.createElement(e.Fragment,null,n.length>0?`${Ce*ze+1} - ${Me} ${Q?.of||"of"} ${oe?""+(we.length>0?`${Q?.many||"Many"}`:"-"):z??we.length??"-"}`:null)),e.createElement(xm,{
|
|
17449
17448
|
variant:"secondary",className:"table-pagination-button",onClick:()=>{
|
|
17450
|
-
|
|
17451
|
-
fill:
|
|
17452
|
-
className:"table-pagination-button",onClick:()=>{
|
|
17453
|
-
disabled:
|
|
17454
|
-
}))),!
|
|
17455
|
-
className:"table-pagination-button filter-toggle",onClick:()=>
|
|
17456
|
-
},e.createElement(
|
|
17457
|
-
fill:"currentcolor"}))))),e.createElement(
|
|
17449
|
+
k?.(),oe||me()},disabled:oe?!E:!pe()||i||l},e.createElement(CU,{
|
|
17450
|
+
fill:ee.colors.text.primary})),e.createElement(xm,{variant:"secondary",
|
|
17451
|
+
className:"table-pagination-button",onClick:()=>{R?.(),oe||ge()},
|
|
17452
|
+
disabled:oe?!S:!he()||i||l},e.createElement(zU,{fill:ee.colors.text.primary
|
|
17453
|
+
}))),!v&&e.createElement(xm,{variant:"secondary",
|
|
17454
|
+
className:"table-pagination-button filter-toggle",onClick:()=>ne(!te)
|
|
17455
|
+
},e.createElement(wU,{style:{transform:te?"rotateY(180deg)":"rotateY(0deg)"},
|
|
17456
|
+
fill:"currentcolor"}))))),e.createElement(MU,null,e.createElement(xU,{
|
|
17458
17457
|
className:"table-wrapper"
|
|
17459
|
-
},
|
|
17460
|
-
align:"end",avoidCollisions:!0,side:"top",trigger:e.createElement(
|
|
17461
|
-
fill:"currentcolor"})},e.createElement(
|
|
17462
|
-
})),e.createElement(
|
|
17463
|
-
key:t.id},t.headers.map((t=>e.createElement(
|
|
17464
|
-
},t.isPlaceholder?null:
|
|
17465
|
-
key:t.id,$isSelected:t.getIsSelected(),...
|
|
17466
|
-
},t.getVisibleCells().map((n=>e.createElement(
|
|
17467
|
-
|
|
17468
|
-
},
|
|
17469
|
-
key:t.id},t.headers.map((t=>e.createElement(
|
|
17470
|
-
},t.isPlaceholder?null:
|
|
17471
|
-
colSpan:
|
|
17472
|
-
},e.createElement(xm,{variant:"secondary",onClick:()=>{
|
|
17473
|
-
disabled:!
|
|
17474
|
-
onClick:()=>{
|
|
17475
|
-
},"<"),
|
|
17476
|
-
variant:"secondary",onClick:()=>{
|
|
17477
|
-
},"1"),
|
|
17478
|
-
},"...")),
|
|
17479
|
-
key:t,variant:"secondary",className:
|
|
17480
|
-
},disabled:l
|
|
17481
|
-
},t+1))),
|
|
17458
|
+
},a&&e.createElement(_U,null,a),i&&!b?e.createElement(e.Fragment,null,s):e.createElement(e.Fragment,null,0===we.length&&f?e.createElement(e.Fragment,null,c):e.createElement(LU,null,e.createElement(VU,null,!_&&e.createElement(xF,{
|
|
17459
|
+
align:"end",avoidCollisions:!0,side:"top",trigger:e.createElement(XU,{
|
|
17460
|
+
fill:"currentcolor"})},e.createElement(eY,{table:ce
|
|
17461
|
+
})),e.createElement(TU,null,ce.getHeaderGroups().map((t=>e.createElement(IU,{
|
|
17462
|
+
key:t.id},t.headers.map((t=>e.createElement(NU,{key:t.id
|
|
17463
|
+
},t.isPlaceholder?null:gU(t.column.columnDef.header,t.getContext())))))))),e.createElement(RU,null,l&&!i&&e.createElement(OU,null,e.createElement(wm,null)),we.map((t=>e.createElement(IU,{
|
|
17464
|
+
key:t.id,$isSelected:t.getIsSelected(),...J?.(t.original)
|
|
17465
|
+
},t.getVisibleCells().map((n=>e.createElement(FU,{key:n.id,onClick:()=>{
|
|
17466
|
+
$?.(t.original,n.column.columnDef)},...Z?.(n)
|
|
17467
|
+
},gU(n.column.columnDef.cell,n.getContext())))))))),o&&e.createElement(PU,null,ce.getFooterGroups().map((t=>e.createElement(IU,{
|
|
17468
|
+
key:t.id},t.headers.map((t=>e.createElement(NU,{key:t.id
|
|
17469
|
+
},t.isPlaceholder?null:gU(t.column.columnDef.footer,t.getContext())))))))),!H&&e.createElement(PU,null,e.createElement(IU,null,e.createElement(NU,{
|
|
17470
|
+
colSpan:xe},e.createElement(qU,{className:"table-pagination"
|
|
17471
|
+
},e.createElement(xm,{variant:"secondary",onClick:()=>{be()},
|
|
17472
|
+
disabled:!pe()||i||l},"<<"),e.createElement(xm,{variant:"secondary",
|
|
17473
|
+
onClick:()=>{me()},disabled:!pe()||i||l
|
|
17474
|
+
},"<"),Ce+1>2&&e.createElement(e.Fragment,null,e.createElement(xm,{
|
|
17475
|
+
variant:"secondary",onClick:()=>{be()},disabled:i||l
|
|
17476
|
+
},"1"),Ce+1-3!=0&&e.createElement(xm,{variant:"secondary",disabled:!0
|
|
17477
|
+
},"...")),fe().map((t=>[t-2,t-1,t,t+1,t+2].includes(Ce+1)&&e.createElement(xm,{
|
|
17478
|
+
key:t,variant:"secondary",className:Ce+1===t+1?"active":"",onClick:()=>{ve?.(t)
|
|
17479
|
+
},disabled:i||l
|
|
17480
|
+
},t+1))),Ce+2<Math.ceil(n.length/ze)-2&&e.createElement(e.Fragment,null,Ce+2+3!==Math.ceil(n.length/ze)&&e.createElement(xm,{
|
|
17482
17481
|
variant:"secondary",disabled:!0},"..."),e.createElement(xm,{variant:"secondary",
|
|
17483
|
-
onClick:()=>{
|
|
17484
|
-
},Math.ceil(n.length/
|
|
17485
|
-
|
|
17486
|
-
onClick:()=>{
|
|
17487
|
-
},">>"))))))))),!
|
|
17482
|
+
onClick:()=>{ve?.(Math.ceil(n.length/ze)-1)},disabled:i||l
|
|
17483
|
+
},Math.ceil(n.length/ze))),e.createElement(xm,{variant:"secondary",onClick:()=>{
|
|
17484
|
+
ge()},disabled:!he()||i||l},">"),e.createElement(xm,{variant:"secondary",
|
|
17485
|
+
onClick:()=>{ye()},disabled:!he()||i||l
|
|
17486
|
+
},">>"))))))))),!v&&te&&p&&e.createElement(SU,null,p)))
|
|
17488
17487
|
},exports.Tabs=({options:t=[],idAccessor:n="id",nameAccessor:r="name",disabledAccessor:o="disabled",onChange:a,defaultValue:i,label:l,renderTabsContent:c,value:s})=>{
|
|
17489
|
-
const u=cr();return e.createElement(
|
|
17490
|
-
defaultValue:i,onValueChange:a,dir:u.direction},e.createElement(
|
|
17491
|
-
className:"TabsList","aria-label":l},t.map((t=>e.createElement(
|
|
17488
|
+
const u=cr();return e.createElement(fY,{className:"TabsRoot",value:s,
|
|
17489
|
+
defaultValue:i,onValueChange:a,dir:u.direction},e.createElement(vY,{
|
|
17490
|
+
className:"TabsList","aria-label":l},t.map((t=>e.createElement(gY,{
|
|
17492
17491
|
className:"TabsTrigger",value:t?.[n],key:t?.[n],disabled:t?.[o]
|
|
17493
|
-
},t?.[r])))),t.map((t=>e.createElement(
|
|
17492
|
+
},t?.[r])))),t.map((t=>e.createElement(mY,{className:"TabsContent",value:t?.[n],
|
|
17494
17493
|
key:t?.[n]},c?c(t):null))))
|
|
17495
|
-
},exports.TabsContent=
|
|
17496
|
-
exports.TabsTrigger=
|
|
17494
|
+
},exports.TabsContent=mY,exports.TabsList=vY,exports.TabsRoot=fY,
|
|
17495
|
+
exports.TabsTrigger=gY,
|
|
17497
17496
|
exports.Tag=Ab,exports.TextArea=mm,exports.ThemeProvider=t=>e.createElement(sr,{
|
|
17498
17497
|
theme:t.theme
|
|
17499
|
-
},e.createElement(
|
|
17498
|
+
},e.createElement(yY,null),e.createElement(pW,null,t.children)),exports.Themes=Ho,
|
|
17500
17499
|
exports.TickIcon=so,exports.TimePicker=t=>{
|
|
17501
17500
|
const{isRequired:n,label:r,isErrored:o,errorText:a,id:i,disabled:l,precision:c="minute",useAmPm:s,value:u="",onChange:d}=t,h=cr()
|
|
17502
17501
|
;return e.createElement($N,{id:`datetime-picker-container-${i??""}`.trim()
|
|
@@ -17533,24 +17532,101 @@ showTick:!1,defaultSelectedItem:u?ZN.find((e=>e.id===FN(u).format("A"))):null,
|
|
|
17533
17532
|
width:"65px",itemIdentifier:"id",items:ZN,onChange:e=>{
|
|
17534
17533
|
const t=FN(new Date(u)).hour(FN(u).hour()+("AM"===e?.id?-12:12))
|
|
17535
17534
|
;d?.(t.toISOString())}})),o&&a&&e.createElement(lm,null,a))
|
|
17536
|
-
},exports.ToastProvider=
|
|
17535
|
+
},exports.ToastProvider=pW,
|
|
17537
17536
|
exports.Toggle=({handleChange:t,hasIcon:n=!1,on:r,isErrored:o,isRequired:a,size:i="md",thumbProps:l,...c})=>{
|
|
17538
|
-
const s=cr();return e.createElement(
|
|
17539
|
-
required:a,"aria-required":a,size:i,...c},e.createElement(
|
|
17537
|
+
const s=cr();return e.createElement(xW,{checked:r,onCheckedChange:e=>{t?.(e)},
|
|
17538
|
+
required:a,"aria-required":a,size:i,...c},e.createElement(EW,{...l,size:i
|
|
17540
17539
|
},n&&e.createElement(so,{fill:s.colors.common.accent,className:"toggle-on",
|
|
17541
|
-
...
|
|
17542
|
-
className:"toggle-off",...
|
|
17540
|
+
...SW[i]}),n&&e.createElement(ro,{fill:s.colors.text.primary,
|
|
17541
|
+
className:"toggle-off",..._W[i]})))
|
|
17543
17542
|
},exports.Tooltip=({position:t="bottom",label:n,html:r,style:o={},children:a,className:i="",disabled:l=!1,delay:c=300,arrow:s=!0,providerProps:u,rootProps:d})=>{
|
|
17544
|
-
const h=cr(),[p="bottom",f="center"]=t.split("-");return e.createElement(
|
|
17545
|
-
delayDuration:c,...u},e.createElement(
|
|
17546
|
-
},e.createElement(
|
|
17543
|
+
const h=cr(),[p="bottom",f="center"]=t.split("-");return e.createElement(nG,{
|
|
17544
|
+
delayDuration:c,...u},e.createElement(rG,{...d,open:!l&&void 0
|
|
17545
|
+
},e.createElement(oG,{className:"TooltipTrigger",asChild:!0,
|
|
17547
17546
|
"aria-label":"string"==typeof a?a:"TooltipTrigger",type:"button"
|
|
17548
17547
|
},e.createElement(No,{className:i,type:"button"
|
|
17549
|
-
},a)),e.createElement(
|
|
17548
|
+
},a)),e.createElement(aG,null,e.createElement(tG,{forceMount:!0,
|
|
17550
17549
|
"data-tooltip-content":!0,className:"TooltipContent",style:o,sideOffset:5,
|
|
17551
17550
|
"aria-disabled":l,"aria-live":"polite",side:p,align:f,dir:h.direction
|
|
17552
|
-
},r?e.createElement(e.Fragment,null,r):e.createElement(e.Fragment,null,n??""),s&&e.createElement(
|
|
17551
|
+
},r?e.createElement(e.Fragment,null,r):e.createElement(e.Fragment,null,n??""),s&&e.createElement(eG,null)))))
|
|
17553
17552
|
},
|
|
17554
|
-
exports.TriggerButtonWrapper=No,exports.Typography=Yo,exports.Warning=uo,exports.
|
|
17553
|
+
exports.TriggerButtonWrapper=No,exports.Typography=Yo,exports.Warning=uo,exports.WorkspaceTable=t=>{
|
|
17554
|
+
const{data:n,columns:r,showFooter:o=!1,infoComponent:a,isLoading:i,isFetching:l,emptyComponent:c,loadingComponent:s,headerComponent:u,filterComponent:d,hideTableOnEmpty:h,hideTopPagination:p,hideFilters:f,isFilterOpenByDefault:m=!0,showTableOnLoading:v,hideLoaderOnTopPagination:g,showWorkspaceActions:y,count:b,isWSOpen:w=!0,pageIndex:C=0,pageSize:z=20,enablePreviousPage:M,enableNextPage:x,hideColumnSettings:E=!0,hideBottomPagination:S,rowMenuOptions:_,onPreviousPageClick:H,onNextPageClick:D,disableRowSelect:k,hideSelectAllInTable:A,onSelectAllRows:L,onRowSelect:V,onMenuOptionSelect:T,onRowClick:R,columnOrder:P,setColumnOrder:I,setHiddenColumns:O,hiddenColumns:N,selectedRowIds:F={},isDisableSortDropdown:$,setSelectedRowIds:B,dataKey:j="id",cellPropGetter:U,setPageIndex:Y,rowPropGetter:W,translationTexts:G}=t,K=cr(),[q,Z]=e.useState(!!m),X={
|
|
17555
|
+
accessor:(e,t)=>"function"==typeof e?{...t,accessorFn:e}:{...t,accessorKey:e},
|
|
17556
|
+
display:e=>e,group:e=>e},J=-1===b||void 0===b,Q=e.useMemo((()=>[...k?[]:[{
|
|
17557
|
+
id:"select",header:({table:t})=>A?e.createElement("div",{
|
|
17558
|
+
className:"table-checkbox-header"}):e.createElement(Yg,{
|
|
17559
|
+
className:"table-checkbox",
|
|
17560
|
+
checked:t.getIsSomeRowsSelected()?"indeterminate":t.getIsAllRowsSelected(),
|
|
17561
|
+
indeterminate:t.getIsSomeRowsSelected(),onCheckedChange:e=>{
|
|
17562
|
+
t.toggleAllPageRowsSelected(!0===e),L?.(!0===e)}}),
|
|
17563
|
+
cell:({row:t})=>e.createElement(Yg,{className:"table-checkbox",
|
|
17564
|
+
checked:t.getIsSelected(),disabled:!t.getCanSelect(),
|
|
17565
|
+
indeterminate:t.getIsSomeSelected(),onCheckedChange:e=>{
|
|
17566
|
+
t.toggleSelected(!0===e),V?.(t.original,!0===e)}})
|
|
17567
|
+
}],...r.map((e=>X.accessor(e.id,{header:e.Header,id:e.id??e.Header,
|
|
17568
|
+
cell:t=>e.accessorFn(t.row.original)}))),..._?[{id:"rowMenuOptions",
|
|
17569
|
+
header:()=>e.createElement("div",{id:"more-actions-header"}),
|
|
17570
|
+
cell:({row:t})=>e.createElement(sb,{trigger:e.createElement(co,{
|
|
17571
|
+
className:"more-actions",fill:"currentcolor"}),options:_(t.original)||[],
|
|
17572
|
+
onSelect:e=>{e.id&&T?.(e.id,t.original)},side:"bottom",
|
|
17573
|
+
align:"rtl"===K.direction?"start":"end"})
|
|
17574
|
+
}]:[]]),[r,k,A,K.colors.text.primary]),ee=e.useMemo((()=>{const e={}
|
|
17575
|
+
;return r.forEach((t=>{e[t.id]=!(N??[]).includes(t.id)})),e
|
|
17576
|
+
}),[r,N]),te=e.useMemo((()=>({pageIndex:C,pageSize:z})),[z,C]),ne=yU({data:n,
|
|
17577
|
+
columns:Q,getRowId:e=>e?.[j]??"id",getCoreRowModel:vU(),state:{columnOrder:P,
|
|
17578
|
+
columnVisibility:ee,rowSelection:F,pagination:te},initialState:{columnPinning:{
|
|
17579
|
+
left:["select"],right:["rowMenuOptions"]}},onPaginationChange:e=>{let t=te
|
|
17580
|
+
;t="function"==typeof e?e(te):e,Y?.(t.pageIndex)},onColumnVisibilityChange:e=>{
|
|
17581
|
+
let t=ee;t="function"==typeof e?e(ee):e,O?.(Object.keys(t).filter((e=>!t[e])))},
|
|
17582
|
+
onColumnOrderChange:e=>{let t=P??[];t="function"==typeof e?e(P??[]):e,I?.(t)},
|
|
17583
|
+
onRowSelectionChange:e=>{let t=F;t="function"==typeof e?e(F):e,B?.(t)},
|
|
17584
|
+
enableRowSelection:!0,manualPagination:!0,rowCount:J?-1:b
|
|
17585
|
+
}),{getPageCount:re,getRowModel:oe,getState:ae,getCanNextPage:ie,getCanPreviousPage:le,getPageOptions:ce,previousPage:se,setPageIndex:ue,nextPage:de,lastPage:he,firstPage:pe}=ne,{rows:fe}=oe(),{pagination:{pageIndex:me,pageSize:ve}}=ae(),ge=me*ve+(me<re()-1?ve:fe.length),ye=ne.getAllColumns().filter((e=>e.getIsVisible())).length+(k?0:1)+(_?1:0)
|
|
17586
|
+
;return e.createElement(bU,{className:"TableContainer"},y&&e.createElement(EU,{
|
|
17587
|
+
className:"table-actions"},e.createElement(HU,{
|
|
17588
|
+
className:"table-header-component"},u??null),e.createElement(kU,{
|
|
17589
|
+
className:"table-header-dropdown-pagination"},e.createElement(AU,{
|
|
17590
|
+
className:"pagination-actions"
|
|
17591
|
+
},!p&&e.createElement(e.Fragment,null,e.createElement(Yo,{variant:"primary",
|
|
17592
|
+
className:"pagination-text"},i&&!g?e.createElement(wm,{size:"small"
|
|
17593
|
+
}):e.createElement(e.Fragment,null,n.length>0?`${me*ve+1} - ${ge} ${G?.of||"of"} ${J?""+(fe.length>0?`${G?.many||"Many"}`:"-"):b??fe.length??"-"}`:null)),e.createElement(xm,{
|
|
17594
|
+
variant:"secondary",className:"table-pagination-button",onClick:e=>{
|
|
17595
|
+
H?.(),J||se()},disabled:J?!M:!le()||i||l},e.createElement(CU,{
|
|
17596
|
+
fill:K.colors.text.primary})),e.createElement(xm,{variant:"secondary",
|
|
17597
|
+
className:"table-pagination-button",onClick:e=>{D?.(),J||de()},
|
|
17598
|
+
disabled:J?!x:!ie()||i||l},e.createElement(zU,{fill:K.colors.text.primary
|
|
17599
|
+
})))))),!!w&&e.createElement(MU,null,e.createElement(xU,{
|
|
17600
|
+
className:"table-wrapper"
|
|
17601
|
+
},a&&e.createElement(_U,null,a),i&&!v?e.createElement(e.Fragment,null,s):e.createElement(e.Fragment,null,0===fe.length&&h?e.createElement(e.Fragment,null,c):e.createElement(LU,null,e.createElement(VU,null,!E&&e.createElement(xF,{
|
|
17602
|
+
align:"end",avoidCollisions:!0,side:"top",trigger:e.createElement(XU,{
|
|
17603
|
+
fill:"currentcolor"})},e.createElement(eY,{table:ne
|
|
17604
|
+
})),e.createElement(TU,null,ne.getHeaderGroups().map((t=>e.createElement(IU,{
|
|
17605
|
+
key:t.id},t.headers.map((t=>e.createElement(NU,{key:t.id
|
|
17606
|
+
},t.isPlaceholder?null:gU(t.column.columnDef.header,t.getContext())))))))),e.createElement(RU,null,l&&!i&&e.createElement(OU,null,e.createElement(wm,null)),fe.map((t=>e.createElement(IU,{
|
|
17607
|
+
key:t.id,$isSelected:t.getIsSelected(),...W?.(t.original)
|
|
17608
|
+
},t.getVisibleCells().map((n=>e.createElement(FU,{key:n.id,onClick:()=>{
|
|
17609
|
+
R?.(t.original,n.column.columnDef)},...U?.(n)
|
|
17610
|
+
},gU(n.column.columnDef.cell,n.getContext())))))))),o&&e.createElement(PU,null,ne.getFooterGroups().map((t=>e.createElement(IU,{
|
|
17611
|
+
key:t.id},t.headers.map((t=>e.createElement(NU,{key:t.id
|
|
17612
|
+
},t.isPlaceholder?null:gU(t.column.columnDef.footer,t.getContext())))))))),!S&&e.createElement(PU,null,e.createElement(IU,null,e.createElement(NU,{
|
|
17613
|
+
colSpan:ye},e.createElement(qU,{className:"table-pagination"
|
|
17614
|
+
},e.createElement(xm,{variant:"secondary",onClick:()=>{pe()},
|
|
17615
|
+
disabled:!le()||i||l},"<<"),e.createElement(xm,{variant:"secondary",
|
|
17616
|
+
onClick:()=>{se()},disabled:!le()||i||l
|
|
17617
|
+
},"<"),me+1>2&&e.createElement(e.Fragment,null,e.createElement(xm,{
|
|
17618
|
+
variant:"secondary",onClick:()=>{pe()},disabled:i||l
|
|
17619
|
+
},"1"),me+1-3!=0&&e.createElement(xm,{variant:"secondary",disabled:!0
|
|
17620
|
+
},"...")),ce().map((t=>[t-2,t-1,t,t+1,t+2].includes(me+1)&&e.createElement(xm,{
|
|
17621
|
+
key:t,variant:"secondary",className:me+1===t+1?"active":"",onClick:()=>{ue?.(t)
|
|
17622
|
+
},disabled:i||l
|
|
17623
|
+
},t+1))),me+2<Math.ceil(n.length/ve)-2&&e.createElement(e.Fragment,null,me+2+3!==Math.ceil(n.length/ve)&&e.createElement(xm,{
|
|
17624
|
+
variant:"secondary",disabled:!0},"..."),e.createElement(xm,{variant:"secondary",
|
|
17625
|
+
onClick:()=>{ue?.(Math.ceil(n.length/ve)-1)},disabled:i||l
|
|
17626
|
+
},Math.ceil(n.length/ve))),e.createElement(xm,{variant:"secondary",onClick:()=>{
|
|
17627
|
+
de()},disabled:!ie()||i||l},">"),e.createElement(xm,{variant:"secondary",
|
|
17628
|
+
onClick:()=>{he()},disabled:!ie()||i||l
|
|
17629
|
+
},">>"))))))))),!f&&q&&d&&e.createElement(SU,null,d)))
|
|
17630
|
+
},exports.dialogContentMixin=$o,
|
|
17555
17631
|
exports.dialogOverlayMixin=Fo,exports.useToasts=()=>{
|
|
17556
|
-
const{toasts:t,addToast:n}=e.useContext(
|
|
17632
|
+
const{toasts:t,addToast:n}=e.useContext(lW)??{};return[t,n]};
|