radar-ui 1.1.25 → 1.1.27
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/components/Table/HeaderCell.d.ts.map +1 -1
- package/dist/components/Table/Resizer.d.ts +1 -2
- package/dist/components/Table/Resizer.d.ts.map +1 -1
- package/dist/components/Table/Table.d.ts.map +1 -1
- package/dist/components/Table/TableBody.d.ts +2 -1
- package/dist/components/Table/TableBody.d.ts.map +1 -1
- package/dist/components/Table/TableDndProvider.d.ts +2 -1
- package/dist/components/Table/TableDndProvider.d.ts.map +1 -1
- package/dist/index.js +1382 -1342
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
|
|
2
2
|
(function() {
|
|
3
3
|
const style = document.createElement('style');
|
|
4
|
-
style.textContent = ".radar-table-container{display:flex;flex-direction:column;gap:16px;position:relative}.radar-table{width:100%;border-collapse:separate;border-spacing:0;font-family:inherit;overflow:clip;scroll-snap-type:x mandatory;scroll-behavior:smooth;table-layout:auto;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.radar-table-default{border-radius:12px;background-color:#fff}.radar-table-pagination-container{position:sticky;bottom:-16px;left:0;background-color:#fff;padding:16px;border-top:1px solid #E8E8E8;width:100%}.radar-table *,.radar-table *:before,.radar-table *:after{box-sizing:border-box}@-moz-document url-prefix(){.radar-table{border-collapse:separate;border-spacing:0}.radar-table__body-row{box-sizing:border-box}.radar-table__body-cell{vertical-align:top;box-sizing:border-box}.radar-table__body-cell-wrapper,.radar-table__header-cell-wrapper{display:flex!important;align-items:center!important;box-sizing:border-box!important;padding:9px 12px!important;height:1px;min-height:32px;vertical-align:top}.radar-table-default__body-cell-wrapper,.radar-table-simple__body-cell-wrapper{line-height:1!important;padding:9px 12px!important;font-size:14px!important}.radar-table-default__header-cell-wrapper{padding:9px 12px!important}.radar-table-simple__header-cell-wrapper{padding:20px 10px!important}}.column-drag-overlay{pointer-events:none;z-index:9999}.drag-preview{background:#fff;border-radius:6px;padding:8px 12px;box-shadow:0 6px 16px #00000040;font-size:14px;color:#333;white-space:nowrap;transform:rotate(3deg) scale(.95);max-width:200px;overflow:hidden;text-overflow:ellipsis}.radar-table__header{text-align:left;z-index:1}.radar-table-default__header{background-color:#f7f6fe}.radar-table-simple__header{background-color:#fff}.radar-table__header-group-cell{scroll-snap-align:start}.radar-table-simple__header-group-cell{font-family:inherit;font-weight:700;font-size:18px;line-height:1.2;letter-spacing:0%;color:#1a1a1a;box-sizing:border-box;vertical-align:top}.radar-table__header-group-cell-wrapper{width:100%}.radar-table-simple__header-group-cell-wrapper{padding:12px 10px;display:flex;gap:8px;align-items:center;box-sizing:border-box;min-height:44px}.radar-table__header-cell{scroll-snap-align:start;box-sizing:border-box}.radar-table-default__header-cell{font-family:Manrope,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen;font-weight:500!important;font-size:14px;line-height:100%;letter-spacing:0%;color:#8c8c8c;background-color:#f7f6fe;box-sizing:border-box}.radar-table-simple__header-cell{font-weight:500!important;font-size:16px;line-height:1.2;letter-spacing:0%;color:#8c8c8c;background-color:#fff;box-sizing:border-box;vertical-align:top}.radar-table-default__header-cell:first-child{border-top-left-radius:12px;border-bottom-left-radius:12px}.radar-table-default__header-cell:last-child{border-top-right-radius:12px;border-bottom-right-radius:12px}.radar-table__header-cell-wrapper{width:100%;position:relative;box-sizing:border-box;padding-right:25px!important}.radar-table__header-cell-wrapper:hover .radar-table__resize-button{opacity:1}.radar-table__header-cell-wrapper:hover{width:100%;position:relative;box-sizing:border-box;padding-right:25px!important}.radar-table-default__header-cell-wrapper{padding:9px 12px;display:flex;gap:8px;align-items:center;box-sizing:border-box}.radar-table-simple__header-cell-wrapper{padding:20px 10px;display:flex;gap:8px;align-items:center;box-sizing:border-box;min-height:60px}.radar-table__header-cell-text-wrapper{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-overflow:ellipsis}.radar-table__sort-button-wrapper{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}.radar-table__sort-button{border:none;background-color:transparent;color:inherit;cursor:pointer;font-size:inherit;display:flex;align-items:center;justify-content:center;transition:all .2s ease}.radar-table__sort-button svg{width:1em;height:1em}.radar-table__sort-button:hover{opacity:.75}.radar-table__drag-handle{display:flex;align-items:center;justify-content:center;cursor:move;opacity:.5;transition:opacity .2s ease;padding:2px;margin-right:4px}.radar-table__drag-handle:hover{opacity:.8}.radar-table__drag-handle.dragging{opacity:1}.radar-table__header-cell.dragging{opacity:.5;transform:rotate(2deg);z-index:1000}.radar-table__header-cell.drag-over.valid-drop-zone{background-color:#5329ff1a!important;border-left:2px solid #5329FF;transition:all .2s ease;z-index:1000}.radar-table__header-cell.drag-over.invalid-drop-zone{background-color:#ff3b3b1a!important;border-left:2px solid #ff3b3b;transition:all .2s ease;z-index:1000}.radar-table__drag-handle{cursor:grab;transition:transform .2s ease}.radar-table__drag-handle:hover{transform:scale(1.1)}.radar-table__drag-handle.dragging{cursor:grabbing}.radar-table__header-cell.group-header{cursor:default!important}.column-drag-overlay .drag-preview{background:#fff;border-radius:6px;padding:8px 12px;box-shadow:0 6px 16px #00000040;font-size:14px;color:#333;white-space:nowrap;transform:rotate(3deg) scale(.95);max-width:200px;overflow:hidden;text-overflow:ellipsis;border:2px solid #5329FF}.radar-table__header-cell.group-header{cursor:grab}.radar-table__header-cell.group-header.dragging{cursor:grabbing}.radar-table__body-row[draggable=true]{user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.radar-table__body-row.dragging{opacity:.25;cursor:grabbing;border-radius:20px}.radar-table__body-row.drag-over{border-top:2px solid #5329FF!important}.radar-table__body-row[draggable=true]{cursor:grab}.radar-table__body-row[draggable=true]:active{cursor:grabbing}.radar-table__body-cell{scroll-snap-align:start;box-sizing:border-box;vertical-align:top}.radar-table-default__body-cell,.radar-table-simple__body-cell{height:1px}.radar-table__body-cell-wrapper{width:100%;height:100%;font-family:inherit;background-color:#fff;display:flex;align-items:center}.radar-table__expander-btn{width:16px;height:16px;display:inline-flex;align-items:center;justify-content:center;padding:0;line-height:16px;font-size:12px;color:#1a1a1a;cursor:pointer;transition:transform .15s ease}.radar-table__expander-btn:focus{outline:none}.radar-table-default__body-cell-wrapper{padding:7px 12px;display:flex;gap:8px;border-bottom:1px solid #E8E8E8;font-weight:500;font-size:14px;line-height:1.2;letter-spacing:0%;color:#1a1a1a;box-sizing:border-box;align-items:center}.radar-table-simple__body-cell-wrapper{padding:18px 12px;display:flex;gap:8px;border-bottom:1px solid #E8E8E8;font-weight:500;font-size:16px;line-height:1.2;letter-spacing:0%;color:#1a1a1a;box-sizing:border-box;align-items:center}.radar-table-default__body-row:last-of-type .radar-table-default__body-cell-wrapper{border-bottom:none}.radar-table-simple__body-row:last-of-type .radar-table-simple__body-cell-wrapper{border-bottom:none}.radar-table__body-noData{padding:18px 12px;display:flex;align-items:center;font-size:16px;line-height:1.2;width:100%}.radar-table__body-noData_width{padding:18px 12px;display:flex;justify-content:center;align-items:center;font-size:16px;line-height:1.2}.radar-table__body-cell-wrapper--stretch,.radar-table-default__body-cell-wrapper--stretch,.radar-table-simple__body-cell-wrapper--stretch{align-items:stretch!important}.radar-table__body-cell-wrapper .salary-cell,.radar-table-default__body-cell-wrapper .salary-cell,.radar-table-simple__body-cell-wrapper .salary-cell{width:100%;height:auto;min-height:auto}.radar-table__custom-content-wrapper{width:100%;height:auto;min-height:100%}.radar-table__footer{pointer-events:auto}.radar-table__footer.resizing{pointer-events:none}.radar-table-default__footer,.radar-table-simple__footer{background-color:#fff}.radar-table-default__footer-cell,.radar-table-simple__footer-cell{border-top:1px solid #E8E8E8}.radar-table__footer-cell-wrapper{width:100%;font-family:inherit}.radar-table-default__footer-cell-wrapper,.radar-table-simple__footer-cell-wrapper{padding:12px 0;display:flex;gap:8px}.radar-table__resize-button{opacity:0;position:absolute;right:0;top:50%;transform:translateY(-50%);height:32px;width:20px;padding-right:6px;background-color:transparent;cursor:col-resize;border:none;display:flex;justify-content:flex-end;align-items:center;transition:all .2s cubic-bezier(.4,0,.2,1)}.radar-table__resize-button:hover{cursor:col-resize!important}.radar-table__resize-button div{background-color:#8c8c8c;width:2px;height:50%;opacity:1;transition:all .3s cubic-bezier(.4,0,.2,1);border-radius:1px}.radar-table__resize-button:hover div{opacity:.5}.radar-table__pagination{display:flex;align-items:center;gap:24px}.radar-table__pagination-main{display:grid;grid-template-rows:32px;gap:4px}.radar-table__pagination-button{width:100%;height:100%;max-width:32px;max-height:32px;border-radius:8px;border:none;cursor:pointer;background-color:#f7f7f7;font-family:inherit;font-weight:500;font-size:14px;line-height:100%;letter-spacing:0%;color:#8c8c8c;opacity:1;transition:all .2s ease;display:flex;align-items:center;justify-content:center;border:1px solid #F7F7F7}.radar-table__pagination-button_active{color:#5329ff;background-color:#eeeaff;border:1px solid #5329FF}.radar-table__pagination-button_control{background-color:transparent;border:none}.radar-table__pagination-button_control:hover{background-color:#f7f7f7}.radar-table__pagination-button:hover{opacity:.75}.radar-table__pagination-quick-jumper{display:flex;align-items:center;gap:8px;font-family:inherit;font-weight:500;font-style:Medium;font-size:14px;line-height:100%;letter-spacing:0%;color:#1a1a1a}.radar-table__pagination-input{width:32px;height:32px;border-radius:8px;border:1px solid #F7F7F7;background-color:#f7f7f7;font-family:inherit;font-weight:500;font-size:14px;line-height:100%;letter-spacing:0%;color:#5329ff;background-color:#eeeaff;text-align:center;outline:none;border:none}.radar-table__tooltip-button{border:none;display:flex;align-items:center;justify-content:center;background-color:transparent;color:inherit;cursor:pointer;font-size:inherit;position:relative}.radar-table__tooltip-button:hover{color:#5329ff}.radar-table__tooltip-text{position:absolute;top:calc(100% + 10px);left:0;background-color:#fff;padding:8px;width:250px;transform:scale(0);opacity:0;transition:all .2s ease;transform-origin:top left;border-radius:8px;box-shadow:0 0 20px #00000014;white-space:pre-line;text-align:left;font-family:inherit;font-weight:500;font-size:14px;line-height:100%;letter-spacing:0%;color:#1a1a1a;z-index:1000}.radar-table__tooltip-text_visible{transform:scale(1);opacity:1}.radar-table__tooltip-text--right{left:auto!important;right:0!important;transform-origin:top right!important}.radar-table__tooltip-text--right.radar-table__tooltip-text_visible{transform:scale(1)!important}.radar-table__drag-handle{height:20px;cursor:grab;border-radius:4px;border:none}.radar-title{font-family:Manrope,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen;color:#1a1a1a;margin:0;padding:0}.radar-title_h1{font-size:22px;font-weight:600;line-height:100%;letter-spacing:0%}.radar-title_h2{font-size:18px;font-weight:600;line-height:100%;letter-spacing:0%}.radar-text{font-family:Manrope,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen;color:#1a1a1a;margin:0;padding:0}.radar-text_m{font-size:14px}.radar-text_s{font-size:12px}.radar-text_medium{font-weight:500}.radar-text_semibold{font-weight:600}.radar-text_bold{font-weight:700}\n";
|
|
4
|
+
style.textContent = ".radar-table-container{display:flex;flex-direction:column;gap:16px;position:relative}.radar-table{width:100%;border-collapse:separate;border-spacing:0;font-family:inherit;overflow:clip;scroll-snap-type:x mandatory;scroll-behavior:smooth;table-layout:auto;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.radar-table-default{border-radius:12px;background-color:#fff}.radar-table-pagination-container{position:sticky;bottom:-16px;left:0;background-color:#fff;padding:16px;border-top:1px solid #E8E8E8;width:100%}.radar-table *,.radar-table *:before,.radar-table *:after{box-sizing:border-box}@-moz-document url-prefix(){.radar-table{border-collapse:separate;border-spacing:0}.radar-table__body-row{box-sizing:border-box}.radar-table__body-cell{vertical-align:top;box-sizing:border-box}.radar-table__body-cell-wrapper,.radar-table__header-cell-wrapper{display:flex!important;align-items:center!important;box-sizing:border-box!important;padding:9px 12px!important;height:1px;min-height:32px;vertical-align:top}.radar-table-default__body-cell-wrapper,.radar-table-simple__body-cell-wrapper{line-height:1!important;padding:9px 12px!important;font-size:14px!important}.radar-table-default__header-cell-wrapper{padding:9px 12px!important}.radar-table-simple__header-cell-wrapper{padding:20px 10px!important}}.radar-table__header{text-align:left;z-index:1}.radar-table-default__header{background-color:#f7f6fe}.radar-table-simple__header{background-color:#fff}.radar-table__header-group-cell{scroll-snap-align:start}.radar-table-simple__header-group-cell{font-family:inherit;font-weight:700;font-size:18px;line-height:1.2;letter-spacing:0%;color:#1a1a1a;box-sizing:border-box;vertical-align:top}.radar-table__header-group-cell-wrapper{width:100%}.radar-table-simple__header-group-cell-wrapper{padding:12px 10px;display:flex;gap:8px;align-items:center;box-sizing:border-box;min-height:44px}.radar-table__header-cell{scroll-snap-align:start;box-sizing:border-box}.radar-table-default__header-cell{font-family:Manrope,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen;font-weight:500!important;font-size:14px;line-height:100%;letter-spacing:0%;color:#8c8c8c;background-color:#f7f6fe;box-sizing:border-box}.radar-table-simple__header-cell{font-weight:500!important;font-size:16px;line-height:1.2;letter-spacing:0%;color:#8c8c8c;background-color:#fff;box-sizing:border-box;vertical-align:top}.radar-table-default__header-cell:first-child{border-top-left-radius:12px;border-bottom-left-radius:12px}.radar-table-default__header-cell:last-child{border-top-right-radius:12px;border-bottom-right-radius:12px}.radar-table__header-cell-wrapper{width:100%;position:relative;box-sizing:border-box;padding-right:25px!important}.radar-table__header-cell-wrapper:hover .radar-table__resize-button{opacity:1}.radar-table__header-cell-wrapper:hover{width:100%;position:relative;box-sizing:border-box;padding-right:25px!important}.radar-table-default__header-cell-wrapper{padding:9px 12px;display:flex;gap:8px;align-items:center;box-sizing:border-box}.radar-table-simple__header-cell-wrapper{padding:20px 10px;display:flex;gap:8px;align-items:center;box-sizing:border-box;min-height:60px}.radar-table__header-cell-text-wrapper{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-overflow:ellipsis}.radar-table__sort-button-wrapper{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}.radar-table__sort-button{border:none;background-color:transparent;color:inherit;cursor:pointer;font-size:inherit;display:flex;align-items:center;justify-content:center;transition:all .2s ease}.radar-table__sort-button svg{width:1em;height:1em}.radar-table__sort-button:hover{opacity:.75}.radar-table__drag-handle{display:flex;align-items:center;justify-content:center;cursor:move;opacity:.5;transition:opacity .2s ease;padding:2px;margin-right:4px}.radar-table__drag-handle:hover{opacity:.8}.radar-table__drag-handle.dragging{opacity:1}.radar-table__header-cell.dragging{opacity:.5;transform:rotate(2deg);z-index:1000}.radar-table__header-cell.drag-over.valid-drop-zone,.radar-table__header-cell.drag-over.invalid-drop-zone{transition:all .2s ease;z-index:1000}.radar-table__drag-handle{cursor:grab;transition:transform .2s ease}.radar-table__drag-handle:hover{transform:scale(1.1)}.radar-table__drag-handle.dragging{cursor:grabbing}.radar-table__header-cell.group-header{cursor:default!important}.radar-table__header-cell.group-header{cursor:grab}.radar-table__header-cell.group-header.dragging{cursor:grabbing}.radar-table__body-row[draggable=true]{user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.radar-table__body-row.dragging{opacity:.25;cursor:grabbing;border-radius:20px}.radar-table__body-row.drag-over{border-top:2px solid #5329FF!important}.radar-table__body-row[draggable=true]{cursor:grab}.radar-table__body-row[draggable=true]:active{cursor:grabbing}.radar-table__body-cell{scroll-snap-align:start;box-sizing:border-box;vertical-align:top}.radar-table-default__body-cell,.radar-table-simple__body-cell{height:1px}.radar-table__body-cell-wrapper{width:100%;height:100%;font-family:inherit;background-color:#fff;display:flex;align-items:center}.radar-table__expander-btn{width:16px;height:16px;display:inline-flex;align-items:center;justify-content:center;padding:0;line-height:16px;font-size:12px;color:#1a1a1a;cursor:pointer;transition:transform .15s ease}.radar-table__expander-btn:focus{outline:none}.radar-table-default__body-cell-wrapper{padding:7px 12px;display:flex;gap:8px;border-bottom:1px solid #E8E8E8;font-weight:500;font-size:14px;line-height:1.2;letter-spacing:0%;color:#1a1a1a;box-sizing:border-box;align-items:center}.radar-table-simple__body-cell-wrapper{padding:18px 12px;display:flex;gap:8px;border-bottom:1px solid #E8E8E8;font-weight:500;font-size:16px;line-height:1.2;letter-spacing:0%;color:#1a1a1a;box-sizing:border-box;align-items:center}.radar-table-default__body-row:last-of-type .radar-table-default__body-cell-wrapper{border-bottom:none}.radar-table-simple__body-row:last-of-type .radar-table-simple__body-cell-wrapper{border-bottom:none}.radar-table__body-noData{padding:18px 12px;display:flex;align-items:center;font-size:16px;line-height:1.2;width:100%}.radar-table__body-noData_width{padding:18px 12px;display:flex;justify-content:center;align-items:center;font-size:16px;line-height:1.2}.radar-table__body-cell-wrapper--stretch,.radar-table-default__body-cell-wrapper--stretch,.radar-table-simple__body-cell-wrapper--stretch{align-items:stretch!important}.radar-table__body-cell-wrapper .salary-cell,.radar-table-default__body-cell-wrapper .salary-cell,.radar-table-simple__body-cell-wrapper .salary-cell{width:100%;height:auto;min-height:auto}.radar-table__custom-content-wrapper{width:100%;height:auto;min-height:100%}.radar-table__footer{pointer-events:auto}.radar-table__footer.resizing{pointer-events:none}.radar-table-default__footer,.radar-table-simple__footer{background-color:#fff}.radar-table-default__footer-cell,.radar-table-simple__footer-cell{border-top:1px solid #E8E8E8}.radar-table__footer-cell-wrapper{width:100%;font-family:inherit}.radar-table-default__footer-cell-wrapper,.radar-table-simple__footer-cell-wrapper{padding:12px 0;display:flex;gap:8px}.radar-table__resize-button{opacity:0;position:absolute;right:0;top:50%;transform:translateY(-50%);height:32px;width:20px;padding-right:6px;background-color:transparent;cursor:col-resize;border:none;display:flex;justify-content:flex-end;align-items:center;transition:all .2s cubic-bezier(.4,0,.2,1)}.radar-table__resize-button:hover{cursor:col-resize!important}.radar-table__resize-button div{background-color:#8c8c8c;width:2px;height:50%;opacity:1;transition:all .3s cubic-bezier(.4,0,.2,1);border-radius:1px}.radar-table__resize-button:hover div{opacity:.5}.radar-table__resize-button:active div{background-color:#5329ff80;opacity:0}.radar-table__resize-line{position:fixed;width:2px;background-color:#5329ff80;z-index:9999;pointer-events:none;opacity:.5}.radar-table__pagination{display:flex;align-items:center;gap:24px}.radar-table__pagination-main{display:grid;grid-template-rows:32px;gap:4px}.radar-table__pagination-button{width:100%;height:100%;max-width:32px;max-height:32px;border-radius:8px;border:none;cursor:pointer;background-color:#f7f7f7;font-family:inherit;font-weight:500;font-size:14px;line-height:100%;letter-spacing:0%;color:#8c8c8c;opacity:1;transition:all .2s ease;display:flex;align-items:center;justify-content:center;border:1px solid #F7F7F7}.radar-table__pagination-button_active{color:#5329ff;background-color:#eeeaff;border:1px solid #5329FF}.radar-table__pagination-button_control{background-color:transparent;border:none}.radar-table__pagination-button_control:hover{background-color:#f7f7f7}.radar-table__pagination-button:hover{opacity:.75}.radar-table__pagination-quick-jumper{display:flex;align-items:center;gap:8px;font-family:inherit;font-weight:500;font-style:Medium;font-size:14px;line-height:100%;letter-spacing:0%;color:#1a1a1a}.radar-table__pagination-input{width:32px;height:32px;border-radius:8px;border:1px solid #F7F7F7;background-color:#f7f7f7;font-family:inherit;font-weight:500;font-size:14px;line-height:100%;letter-spacing:0%;color:#5329ff;background-color:#eeeaff;text-align:center;outline:none;border:none}.radar-table__tooltip-button{border:none;display:flex;align-items:center;justify-content:center;background-color:transparent;color:inherit;cursor:pointer;font-size:inherit;position:relative}.radar-table__tooltip-button:hover{color:#5329ff}.radar-table__tooltip-text{position:absolute;top:calc(100% + 10px);left:0;background-color:#fff;padding:8px;width:250px;transform:scale(0);opacity:0;transition:all .2s ease;transform-origin:top left;border-radius:8px;box-shadow:0 0 20px #00000014;white-space:pre-line;text-align:left;font-family:inherit;font-weight:500;font-size:14px;line-height:100%;letter-spacing:0%;color:#1a1a1a;z-index:1000}.radar-table__tooltip-text_visible{transform:scale(1);opacity:1}.radar-table__tooltip-text--right{left:auto!important;right:0!important;transform-origin:top right!important}.radar-table__tooltip-text--right.radar-table__tooltip-text_visible{transform:scale(1)!important}.radar-table__drag-handle{height:20px;cursor:grab;border-radius:4px;border:none}.radar-title{font-family:Manrope,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen;color:#1a1a1a;margin:0;padding:0}.radar-title_h1{font-size:22px;font-weight:600;line-height:100%;letter-spacing:0%}.radar-title_h2{font-size:18px;font-weight:600;line-height:100%;letter-spacing:0%}.radar-text{font-family:Manrope,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen;color:#1a1a1a;margin:0;padding:0}.radar-text_m{font-size:14px}.radar-text_s{font-size:12px}.radar-text_medium{font-weight:500}.radar-text_semibold{font-weight:600}.radar-text_bold{font-weight:700}\n";
|
|
5
5
|
document.head.appendChild(style);
|
|
6
6
|
})();
|
|
7
|
-
import
|
|
8
|
-
import { useSensors as jt, useSensor as et, PointerSensor as
|
|
7
|
+
import Oe, { useState as ge, useRef as je, useCallback as ne, startTransition as Et, useEffect as Pe, createContext as kt, useContext as wt, useMemo as Ae, useLayoutEffect as lt } from "react";
|
|
8
|
+
import { useSensors as jt, useSensor as et, PointerSensor as St, KeyboardSensor as Rt, pointerWithin as Tt, rectIntersection as Dt, DndContext as Ot, DragOverlay as Lt, useDraggable as $t, useDroppable as It } from "@dnd-kit/core";
|
|
9
9
|
import { sortableKeyboardCoordinates as Nt } from "@dnd-kit/sortable";
|
|
10
|
-
var
|
|
10
|
+
var Ye = { exports: {} }, Ie = {};
|
|
11
11
|
/**
|
|
12
12
|
* @license React
|
|
13
13
|
* react-jsx-runtime.production.min.js
|
|
@@ -18,18 +18,18 @@ var He = { exports: {} }, Re = {};
|
|
|
18
18
|
* LICENSE file in the root directory of this source tree.
|
|
19
19
|
*/
|
|
20
20
|
var tt;
|
|
21
|
-
function
|
|
22
|
-
if (tt) return
|
|
21
|
+
function Pt() {
|
|
22
|
+
if (tt) return Ie;
|
|
23
23
|
tt = 1;
|
|
24
|
-
var t =
|
|
25
|
-
function
|
|
26
|
-
var
|
|
27
|
-
|
|
28
|
-
for (
|
|
29
|
-
if (D && D.defaultProps) for (
|
|
30
|
-
return { $$typeof: r, type: D, key:
|
|
24
|
+
var t = Oe, r = Symbol.for("react.element"), l = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, E = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, y = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
25
|
+
function j(D, m, M) {
|
|
26
|
+
var k, L = {}, U = null, G = null;
|
|
27
|
+
M !== void 0 && (U = "" + M), m.key !== void 0 && (U = "" + m.key), m.ref !== void 0 && (G = m.ref);
|
|
28
|
+
for (k in m) s.call(m, k) && !y.hasOwnProperty(k) && (L[k] = m[k]);
|
|
29
|
+
if (D && D.defaultProps) for (k in m = D.defaultProps, m) L[k] === void 0 && (L[k] = m[k]);
|
|
30
|
+
return { $$typeof: r, type: D, key: U, ref: G, props: L, _owner: E.current };
|
|
31
31
|
}
|
|
32
|
-
return
|
|
32
|
+
return Ie.Fragment = l, Ie.jsx = j, Ie.jsxs = j, Ie;
|
|
33
33
|
}
|
|
34
34
|
var Ne = {};
|
|
35
35
|
/**
|
|
@@ -42,90 +42,90 @@ var Ne = {};
|
|
|
42
42
|
* LICENSE file in the root directory of this source tree.
|
|
43
43
|
*/
|
|
44
44
|
var rt;
|
|
45
|
-
function
|
|
45
|
+
function Wt() {
|
|
46
46
|
return rt || (rt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
47
|
-
var t =
|
|
48
|
-
function
|
|
47
|
+
var t = Oe, r = Symbol.for("react.element"), l = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), E = Symbol.for("react.strict_mode"), y = Symbol.for("react.profiler"), j = Symbol.for("react.provider"), D = Symbol.for("react.context"), m = Symbol.for("react.forward_ref"), M = Symbol.for("react.suspense"), k = Symbol.for("react.suspense_list"), L = Symbol.for("react.memo"), U = Symbol.for("react.lazy"), G = Symbol.for("react.offscreen"), X = Symbol.iterator, K = "@@iterator";
|
|
48
|
+
function te(e) {
|
|
49
49
|
if (e === null || typeof e != "object")
|
|
50
50
|
return null;
|
|
51
|
-
var a =
|
|
51
|
+
var a = X && e[X] || e[K];
|
|
52
52
|
return typeof a == "function" ? a : null;
|
|
53
53
|
}
|
|
54
|
-
var
|
|
55
|
-
function
|
|
54
|
+
var V = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
55
|
+
function d(e) {
|
|
56
56
|
{
|
|
57
|
-
for (var a = arguments.length,
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
for (var a = arguments.length, p = new Array(a > 1 ? a - 1 : 0), w = 1; w < a; w++)
|
|
58
|
+
p[w - 1] = arguments[w];
|
|
59
|
+
$("error", e, p);
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function $(e, a, p) {
|
|
63
63
|
{
|
|
64
|
-
var
|
|
65
|
-
|
|
66
|
-
var
|
|
67
|
-
return String(
|
|
64
|
+
var w = V.ReactDebugCurrentFrame, ee = w.getStackAddendum();
|
|
65
|
+
ee !== "" && (a += "%s", p = p.concat([ee]));
|
|
66
|
+
var ae = p.map(function(Y) {
|
|
67
|
+
return String(Y);
|
|
68
68
|
});
|
|
69
|
-
|
|
69
|
+
ae.unshift("Warning: " + a), Function.prototype.apply.call(console[e], console, ae);
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
var
|
|
73
|
-
|
|
74
|
-
function
|
|
75
|
-
return !!(typeof e == "string" || typeof e == "function" || e === s || e ===
|
|
72
|
+
var x = !1, F = !1, H = !1, v = !1, f = !1, c;
|
|
73
|
+
c = Symbol.for("react.module.reference");
|
|
74
|
+
function _(e) {
|
|
75
|
+
return !!(typeof e == "string" || typeof e == "function" || e === s || e === y || f || e === E || e === M || e === k || v || e === G || x || F || H || typeof e == "object" && e !== null && (e.$$typeof === U || e.$$typeof === L || e.$$typeof === j || e.$$typeof === D || e.$$typeof === m || // This needs to include all possible module reference object
|
|
76
76
|
// types supported by any Flight configuration anywhere since
|
|
77
77
|
// we don't know which Flight build this will end up being used
|
|
78
78
|
// with.
|
|
79
|
-
e.$$typeof ===
|
|
79
|
+
e.$$typeof === c || e.getModuleId !== void 0));
|
|
80
80
|
}
|
|
81
|
-
function
|
|
82
|
-
var
|
|
83
|
-
if (
|
|
84
|
-
return
|
|
85
|
-
var
|
|
86
|
-
return
|
|
81
|
+
function h(e, a, p) {
|
|
82
|
+
var w = e.displayName;
|
|
83
|
+
if (w)
|
|
84
|
+
return w;
|
|
85
|
+
var ee = a.displayName || a.name || "";
|
|
86
|
+
return ee !== "" ? p + "(" + ee + ")" : p;
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function g(e) {
|
|
89
89
|
return e.displayName || "Context";
|
|
90
90
|
}
|
|
91
|
-
function
|
|
91
|
+
function C(e) {
|
|
92
92
|
if (e == null)
|
|
93
93
|
return null;
|
|
94
|
-
if (typeof e.tag == "number" &&
|
|
94
|
+
if (typeof e.tag == "number" && d("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
95
95
|
return e.displayName || e.name || null;
|
|
96
96
|
if (typeof e == "string")
|
|
97
97
|
return e;
|
|
98
98
|
switch (e) {
|
|
99
99
|
case s:
|
|
100
100
|
return "Fragment";
|
|
101
|
-
case
|
|
101
|
+
case l:
|
|
102
102
|
return "Portal";
|
|
103
|
-
case
|
|
103
|
+
case y:
|
|
104
104
|
return "Profiler";
|
|
105
105
|
case E:
|
|
106
106
|
return "StrictMode";
|
|
107
|
-
case
|
|
107
|
+
case M:
|
|
108
108
|
return "Suspense";
|
|
109
|
-
case
|
|
109
|
+
case k:
|
|
110
110
|
return "SuspenseList";
|
|
111
111
|
}
|
|
112
112
|
if (typeof e == "object")
|
|
113
113
|
switch (e.$$typeof) {
|
|
114
114
|
case D:
|
|
115
115
|
var a = e;
|
|
116
|
-
return
|
|
117
|
-
case
|
|
118
|
-
var
|
|
119
|
-
return
|
|
120
|
-
case
|
|
121
|
-
return
|
|
122
|
-
case
|
|
123
|
-
var
|
|
124
|
-
return
|
|
125
|
-
case
|
|
126
|
-
var
|
|
116
|
+
return g(a) + ".Consumer";
|
|
117
|
+
case j:
|
|
118
|
+
var p = e;
|
|
119
|
+
return g(p._context) + ".Provider";
|
|
120
|
+
case m:
|
|
121
|
+
return h(e, e.render, "ForwardRef");
|
|
122
|
+
case L:
|
|
123
|
+
var w = e.displayName || null;
|
|
124
|
+
return w !== null ? w : C(e.type) || "Memo";
|
|
125
|
+
case U: {
|
|
126
|
+
var ee = e, ae = ee._payload, Y = ee._init;
|
|
127
127
|
try {
|
|
128
|
-
return
|
|
128
|
+
return C(Y(ae));
|
|
129
129
|
} catch {
|
|
130
130
|
return null;
|
|
131
131
|
}
|
|
@@ -133,14 +133,14 @@ function $t() {
|
|
|
133
133
|
}
|
|
134
134
|
return null;
|
|
135
135
|
}
|
|
136
|
-
var
|
|
136
|
+
var T = Object.assign, O = 0, N, ce, ie, se, de, re, le;
|
|
137
137
|
function he() {
|
|
138
138
|
}
|
|
139
139
|
he.__reactDisabledLog = !0;
|
|
140
|
-
function
|
|
140
|
+
function A() {
|
|
141
141
|
{
|
|
142
|
-
if (
|
|
143
|
-
|
|
142
|
+
if (O === 0) {
|
|
143
|
+
N = console.log, ce = console.info, ie = console.warn, se = console.error, de = console.group, re = console.groupCollapsed, le = console.groupEnd;
|
|
144
144
|
var e = {
|
|
145
145
|
configurable: !0,
|
|
146
146
|
enumerable: !0,
|
|
@@ -157,229 +157,229 @@ function $t() {
|
|
|
157
157
|
groupEnd: e
|
|
158
158
|
});
|
|
159
159
|
}
|
|
160
|
-
|
|
160
|
+
O++;
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function P() {
|
|
164
164
|
{
|
|
165
|
-
if (
|
|
165
|
+
if (O--, O === 0) {
|
|
166
166
|
var e = {
|
|
167
167
|
configurable: !0,
|
|
168
168
|
enumerable: !0,
|
|
169
169
|
writable: !0
|
|
170
170
|
};
|
|
171
171
|
Object.defineProperties(console, {
|
|
172
|
-
log:
|
|
173
|
-
value:
|
|
172
|
+
log: T({}, e, {
|
|
173
|
+
value: N
|
|
174
174
|
}),
|
|
175
|
-
info:
|
|
176
|
-
value:
|
|
175
|
+
info: T({}, e, {
|
|
176
|
+
value: ce
|
|
177
177
|
}),
|
|
178
|
-
warn:
|
|
179
|
-
value:
|
|
178
|
+
warn: T({}, e, {
|
|
179
|
+
value: ie
|
|
180
180
|
}),
|
|
181
|
-
error:
|
|
182
|
-
value:
|
|
181
|
+
error: T({}, e, {
|
|
182
|
+
value: se
|
|
183
183
|
}),
|
|
184
|
-
group:
|
|
185
|
-
value:
|
|
184
|
+
group: T({}, e, {
|
|
185
|
+
value: de
|
|
186
186
|
}),
|
|
187
|
-
groupCollapsed:
|
|
187
|
+
groupCollapsed: T({}, e, {
|
|
188
188
|
value: re
|
|
189
189
|
}),
|
|
190
|
-
groupEnd:
|
|
191
|
-
value:
|
|
190
|
+
groupEnd: T({}, e, {
|
|
191
|
+
value: le
|
|
192
192
|
})
|
|
193
193
|
});
|
|
194
194
|
}
|
|
195
|
-
|
|
195
|
+
O < 0 && d("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
|
-
var
|
|
199
|
-
function
|
|
198
|
+
var q = V.ReactCurrentDispatcher, Q;
|
|
199
|
+
function oe(e, a, p) {
|
|
200
200
|
{
|
|
201
|
-
if (
|
|
201
|
+
if (Q === void 0)
|
|
202
202
|
try {
|
|
203
203
|
throw Error();
|
|
204
|
-
} catch (
|
|
205
|
-
var
|
|
206
|
-
|
|
204
|
+
} catch (ee) {
|
|
205
|
+
var w = ee.stack.trim().match(/\n( *(at )?)/);
|
|
206
|
+
Q = w && w[1] || "";
|
|
207
207
|
}
|
|
208
208
|
return `
|
|
209
|
-
` +
|
|
209
|
+
` + Q + e;
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
|
-
var
|
|
212
|
+
var B = !1, S;
|
|
213
213
|
{
|
|
214
|
-
var
|
|
215
|
-
|
|
214
|
+
var Z = typeof WeakMap == "function" ? WeakMap : Map;
|
|
215
|
+
S = new Z();
|
|
216
216
|
}
|
|
217
|
-
function
|
|
218
|
-
if (!e ||
|
|
217
|
+
function W(e, a) {
|
|
218
|
+
if (!e || B)
|
|
219
219
|
return "";
|
|
220
220
|
{
|
|
221
|
-
var
|
|
222
|
-
if (
|
|
223
|
-
return
|
|
221
|
+
var p = S.get(e);
|
|
222
|
+
if (p !== void 0)
|
|
223
|
+
return p;
|
|
224
224
|
}
|
|
225
|
-
var
|
|
226
|
-
|
|
227
|
-
var
|
|
225
|
+
var w;
|
|
226
|
+
B = !0;
|
|
227
|
+
var ee = Error.prepareStackTrace;
|
|
228
228
|
Error.prepareStackTrace = void 0;
|
|
229
|
-
var
|
|
230
|
-
|
|
229
|
+
var ae;
|
|
230
|
+
ae = q.current, q.current = null, A();
|
|
231
231
|
try {
|
|
232
232
|
if (a) {
|
|
233
|
-
var
|
|
233
|
+
var Y = function() {
|
|
234
234
|
throw Error();
|
|
235
235
|
};
|
|
236
|
-
if (Object.defineProperty(
|
|
236
|
+
if (Object.defineProperty(Y.prototype, "props", {
|
|
237
237
|
set: function() {
|
|
238
238
|
throw Error();
|
|
239
239
|
}
|
|
240
240
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
241
241
|
try {
|
|
242
|
-
Reflect.construct(
|
|
242
|
+
Reflect.construct(Y, []);
|
|
243
243
|
} catch (xe) {
|
|
244
|
-
|
|
244
|
+
w = xe;
|
|
245
245
|
}
|
|
246
|
-
Reflect.construct(e, [],
|
|
246
|
+
Reflect.construct(e, [], Y);
|
|
247
247
|
} else {
|
|
248
248
|
try {
|
|
249
|
-
|
|
249
|
+
Y.call();
|
|
250
250
|
} catch (xe) {
|
|
251
|
-
|
|
251
|
+
w = xe;
|
|
252
252
|
}
|
|
253
|
-
e.call(
|
|
253
|
+
e.call(Y.prototype);
|
|
254
254
|
}
|
|
255
255
|
} else {
|
|
256
256
|
try {
|
|
257
257
|
throw Error();
|
|
258
258
|
} catch (xe) {
|
|
259
|
-
|
|
259
|
+
w = xe;
|
|
260
260
|
}
|
|
261
261
|
e();
|
|
262
262
|
}
|
|
263
263
|
} catch (xe) {
|
|
264
|
-
if (xe &&
|
|
265
|
-
for (var
|
|
266
|
-
`),
|
|
267
|
-
`), ue =
|
|
264
|
+
if (xe && w && typeof xe.stack == "string") {
|
|
265
|
+
for (var z = xe.stack.split(`
|
|
266
|
+
`), ye = w.stack.split(`
|
|
267
|
+
`), ue = z.length - 1, fe = ye.length - 1; ue >= 1 && fe >= 0 && z[ue] !== ye[fe]; )
|
|
268
268
|
fe--;
|
|
269
269
|
for (; ue >= 1 && fe >= 0; ue--, fe--)
|
|
270
|
-
if (
|
|
270
|
+
if (z[ue] !== ye[fe]) {
|
|
271
271
|
if (ue !== 1 || fe !== 1)
|
|
272
272
|
do
|
|
273
|
-
if (ue--, fe--, fe < 0 ||
|
|
274
|
-
var
|
|
275
|
-
` +
|
|
276
|
-
return e.displayName &&
|
|
273
|
+
if (ue--, fe--, fe < 0 || z[ue] !== ye[fe]) {
|
|
274
|
+
var me = `
|
|
275
|
+
` + z[ue].replace(" at new ", " at ");
|
|
276
|
+
return e.displayName && me.includes("<anonymous>") && (me = me.replace("<anonymous>", e.displayName)), typeof e == "function" && S.set(e, me), me;
|
|
277
277
|
}
|
|
278
278
|
while (ue >= 1 && fe >= 0);
|
|
279
279
|
break;
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
282
|
} finally {
|
|
283
|
-
|
|
283
|
+
B = !1, q.current = ae, P(), Error.prepareStackTrace = ee;
|
|
284
284
|
}
|
|
285
|
-
var De = e ? e.displayName || e.name : "",
|
|
286
|
-
return typeof e == "function" &&
|
|
285
|
+
var De = e ? e.displayName || e.name : "", Re = De ? oe(De) : "";
|
|
286
|
+
return typeof e == "function" && S.set(e, Re), Re;
|
|
287
287
|
}
|
|
288
|
-
function
|
|
289
|
-
return
|
|
288
|
+
function i(e, a, p) {
|
|
289
|
+
return W(e, !1);
|
|
290
290
|
}
|
|
291
|
-
function
|
|
291
|
+
function b(e) {
|
|
292
292
|
var a = e.prototype;
|
|
293
293
|
return !!(a && a.isReactComponent);
|
|
294
294
|
}
|
|
295
|
-
function u(e, a,
|
|
295
|
+
function u(e, a, p) {
|
|
296
296
|
if (e == null)
|
|
297
297
|
return "";
|
|
298
298
|
if (typeof e == "function")
|
|
299
|
-
return
|
|
299
|
+
return W(e, b(e));
|
|
300
300
|
if (typeof e == "string")
|
|
301
|
-
return
|
|
301
|
+
return oe(e);
|
|
302
302
|
switch (e) {
|
|
303
|
-
case
|
|
304
|
-
return
|
|
305
|
-
case
|
|
306
|
-
return
|
|
303
|
+
case M:
|
|
304
|
+
return oe("Suspense");
|
|
305
|
+
case k:
|
|
306
|
+
return oe("SuspenseList");
|
|
307
307
|
}
|
|
308
308
|
if (typeof e == "object")
|
|
309
309
|
switch (e.$$typeof) {
|
|
310
|
-
case
|
|
311
|
-
return
|
|
312
|
-
case
|
|
313
|
-
return u(e.type, a,
|
|
314
|
-
case
|
|
315
|
-
var
|
|
310
|
+
case m:
|
|
311
|
+
return i(e.render);
|
|
312
|
+
case L:
|
|
313
|
+
return u(e.type, a, p);
|
|
314
|
+
case U: {
|
|
315
|
+
var w = e, ee = w._payload, ae = w._init;
|
|
316
316
|
try {
|
|
317
|
-
return u(ee
|
|
317
|
+
return u(ae(ee), a, p);
|
|
318
318
|
} catch {
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
322
|
return "";
|
|
323
323
|
}
|
|
324
|
-
var
|
|
325
|
-
function
|
|
324
|
+
var o = Object.prototype.hasOwnProperty, R = {}, J = V.ReactDebugCurrentFrame;
|
|
325
|
+
function I(e) {
|
|
326
326
|
if (e) {
|
|
327
|
-
var a = e._owner,
|
|
328
|
-
|
|
327
|
+
var a = e._owner, p = u(e.type, e._source, a ? a.type : null);
|
|
328
|
+
J.setExtraStackFrame(p);
|
|
329
329
|
} else
|
|
330
|
-
|
|
330
|
+
J.setExtraStackFrame(null);
|
|
331
331
|
}
|
|
332
|
-
function
|
|
332
|
+
function be(e, a, p, w, ee) {
|
|
333
333
|
{
|
|
334
|
-
var
|
|
335
|
-
for (var
|
|
336
|
-
if (
|
|
337
|
-
var
|
|
334
|
+
var ae = Function.call.bind(o);
|
|
335
|
+
for (var Y in e)
|
|
336
|
+
if (ae(e, Y)) {
|
|
337
|
+
var z = void 0;
|
|
338
338
|
try {
|
|
339
|
-
if (typeof e[
|
|
340
|
-
var
|
|
341
|
-
throw
|
|
339
|
+
if (typeof e[Y] != "function") {
|
|
340
|
+
var ye = Error((w || "React class") + ": " + p + " type `" + Y + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[Y] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
341
|
+
throw ye.name = "Invariant Violation", ye;
|
|
342
342
|
}
|
|
343
|
-
|
|
343
|
+
z = e[Y](a, Y, w, p, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
344
344
|
} catch (ue) {
|
|
345
|
-
|
|
345
|
+
z = ue;
|
|
346
346
|
}
|
|
347
|
-
|
|
347
|
+
z && !(z instanceof Error) && (I(ee), d("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", w || "React class", p, Y, typeof z), I(null)), z instanceof Error && !(z.message in R) && (R[z.message] = !0, I(ee), d("Failed %s type: %s", p, z.message), I(null));
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
|
-
var
|
|
352
|
-
function
|
|
353
|
-
return
|
|
351
|
+
var pe = Array.isArray;
|
|
352
|
+
function _e(e) {
|
|
353
|
+
return pe(e);
|
|
354
354
|
}
|
|
355
|
-
function
|
|
355
|
+
function ve(e) {
|
|
356
356
|
{
|
|
357
|
-
var a = typeof Symbol == "function" && Symbol.toStringTag,
|
|
358
|
-
return
|
|
357
|
+
var a = typeof Symbol == "function" && Symbol.toStringTag, p = a && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
358
|
+
return p;
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
|
-
function
|
|
361
|
+
function Ee(e) {
|
|
362
362
|
try {
|
|
363
|
-
return
|
|
363
|
+
return ke(e), !1;
|
|
364
364
|
} catch {
|
|
365
365
|
return !0;
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
|
-
function
|
|
368
|
+
function ke(e) {
|
|
369
369
|
return "" + e;
|
|
370
370
|
}
|
|
371
|
-
function
|
|
372
|
-
if (
|
|
373
|
-
return
|
|
371
|
+
function Se(e) {
|
|
372
|
+
if (Ee(e))
|
|
373
|
+
return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ve(e)), ke(e);
|
|
374
374
|
}
|
|
375
|
-
var
|
|
375
|
+
var we = V.ReactCurrentOwner, We = {
|
|
376
376
|
key: !0,
|
|
377
377
|
ref: !0,
|
|
378
378
|
__self: !0,
|
|
379
379
|
__source: !0
|
|
380
|
-
},
|
|
380
|
+
}, Le, $e;
|
|
381
381
|
function Fe(e) {
|
|
382
|
-
if (
|
|
382
|
+
if (o.call(e, "ref")) {
|
|
383
383
|
var a = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
384
384
|
if (a && a.isReactWarning)
|
|
385
385
|
return !1;
|
|
@@ -387,102 +387,102 @@ function $t() {
|
|
|
387
387
|
return e.ref !== void 0;
|
|
388
388
|
}
|
|
389
389
|
function Ce(e) {
|
|
390
|
-
if (
|
|
390
|
+
if (o.call(e, "key")) {
|
|
391
391
|
var a = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
392
392
|
if (a && a.isReactWarning)
|
|
393
393
|
return !1;
|
|
394
394
|
}
|
|
395
395
|
return e.key !== void 0;
|
|
396
396
|
}
|
|
397
|
-
function
|
|
398
|
-
typeof e.ref == "string" &&
|
|
397
|
+
function ze(e, a) {
|
|
398
|
+
typeof e.ref == "string" && we.current;
|
|
399
399
|
}
|
|
400
|
-
function
|
|
400
|
+
function Me(e, a) {
|
|
401
401
|
{
|
|
402
|
-
var
|
|
403
|
-
|
|
402
|
+
var p = function() {
|
|
403
|
+
Le || (Le = !0, d("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", a));
|
|
404
404
|
};
|
|
405
|
-
|
|
406
|
-
get:
|
|
405
|
+
p.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
406
|
+
get: p,
|
|
407
407
|
configurable: !0
|
|
408
408
|
});
|
|
409
409
|
}
|
|
410
410
|
}
|
|
411
411
|
function dt(e, a) {
|
|
412
412
|
{
|
|
413
|
-
var
|
|
414
|
-
|
|
413
|
+
var p = function() {
|
|
414
|
+
$e || ($e = !0, d("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", a));
|
|
415
415
|
};
|
|
416
|
-
|
|
417
|
-
get:
|
|
416
|
+
p.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
417
|
+
get: p,
|
|
418
418
|
configurable: !0
|
|
419
419
|
});
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
|
-
var ut = function(e, a,
|
|
423
|
-
var
|
|
422
|
+
var ut = function(e, a, p, w, ee, ae, Y) {
|
|
423
|
+
var z = {
|
|
424
424
|
// This tag allows us to uniquely identify this as a React Element
|
|
425
425
|
$$typeof: r,
|
|
426
426
|
// Built-in properties that belong on the element
|
|
427
427
|
type: e,
|
|
428
428
|
key: a,
|
|
429
|
-
ref:
|
|
430
|
-
props:
|
|
429
|
+
ref: p,
|
|
430
|
+
props: Y,
|
|
431
431
|
// Record the component responsible for creating this element.
|
|
432
|
-
_owner:
|
|
432
|
+
_owner: ae
|
|
433
433
|
};
|
|
434
|
-
return
|
|
434
|
+
return z._store = {}, Object.defineProperty(z._store, "validated", {
|
|
435
435
|
configurable: !1,
|
|
436
436
|
enumerable: !1,
|
|
437
437
|
writable: !0,
|
|
438
438
|
value: !1
|
|
439
|
-
}), Object.defineProperty(
|
|
439
|
+
}), Object.defineProperty(z, "_self", {
|
|
440
440
|
configurable: !1,
|
|
441
441
|
enumerable: !1,
|
|
442
442
|
writable: !1,
|
|
443
|
-
value:
|
|
444
|
-
}), Object.defineProperty(
|
|
443
|
+
value: w
|
|
444
|
+
}), Object.defineProperty(z, "_source", {
|
|
445
445
|
configurable: !1,
|
|
446
446
|
enumerable: !1,
|
|
447
447
|
writable: !1,
|
|
448
|
-
value:
|
|
449
|
-
}), Object.freeze && (Object.freeze(
|
|
448
|
+
value: ee
|
|
449
|
+
}), Object.freeze && (Object.freeze(z.props), Object.freeze(z)), z;
|
|
450
450
|
};
|
|
451
|
-
function ft(e, a,
|
|
451
|
+
function ft(e, a, p, w, ee) {
|
|
452
452
|
{
|
|
453
|
-
var
|
|
454
|
-
|
|
455
|
-
for (
|
|
456
|
-
|
|
453
|
+
var ae, Y = {}, z = null, ye = null;
|
|
454
|
+
p !== void 0 && (Se(p), z = "" + p), Ce(a) && (Se(a.key), z = "" + a.key), Fe(a) && (ye = a.ref, ze(a, ee));
|
|
455
|
+
for (ae in a)
|
|
456
|
+
o.call(a, ae) && !We.hasOwnProperty(ae) && (Y[ae] = a[ae]);
|
|
457
457
|
if (e && e.defaultProps) {
|
|
458
458
|
var ue = e.defaultProps;
|
|
459
|
-
for (
|
|
460
|
-
|
|
459
|
+
for (ae in ue)
|
|
460
|
+
Y[ae] === void 0 && (Y[ae] = ue[ae]);
|
|
461
461
|
}
|
|
462
|
-
if (
|
|
462
|
+
if (z || ye) {
|
|
463
463
|
var fe = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
464
|
-
|
|
464
|
+
z && Me(Y, fe), ye && dt(Y, fe);
|
|
465
465
|
}
|
|
466
|
-
return ut(e,
|
|
466
|
+
return ut(e, z, ye, ee, w, we.current, Y);
|
|
467
467
|
}
|
|
468
468
|
}
|
|
469
|
-
var
|
|
469
|
+
var Be = V.ReactCurrentOwner, Ke = V.ReactDebugCurrentFrame;
|
|
470
470
|
function Te(e) {
|
|
471
471
|
if (e) {
|
|
472
|
-
var a = e._owner,
|
|
473
|
-
|
|
472
|
+
var a = e._owner, p = u(e.type, e._source, a ? a.type : null);
|
|
473
|
+
Ke.setExtraStackFrame(p);
|
|
474
474
|
} else
|
|
475
|
-
|
|
475
|
+
Ke.setExtraStackFrame(null);
|
|
476
476
|
}
|
|
477
|
-
var
|
|
478
|
-
|
|
479
|
-
function
|
|
477
|
+
var Ve;
|
|
478
|
+
Ve = !1;
|
|
479
|
+
function He(e) {
|
|
480
480
|
return typeof e == "object" && e !== null && e.$$typeof === r;
|
|
481
481
|
}
|
|
482
|
-
function
|
|
482
|
+
function Ue() {
|
|
483
483
|
{
|
|
484
|
-
if (
|
|
485
|
-
var e =
|
|
484
|
+
if (Be.current) {
|
|
485
|
+
var e = C(Be.current.type);
|
|
486
486
|
if (e)
|
|
487
487
|
return `
|
|
488
488
|
|
|
@@ -494,48 +494,48 @@ Check the render method of \`` + e + "`.";
|
|
|
494
494
|
function ht(e) {
|
|
495
495
|
return "";
|
|
496
496
|
}
|
|
497
|
-
var
|
|
497
|
+
var qe = {};
|
|
498
498
|
function gt(e) {
|
|
499
499
|
{
|
|
500
|
-
var a =
|
|
500
|
+
var a = Ue();
|
|
501
501
|
if (!a) {
|
|
502
|
-
var
|
|
503
|
-
|
|
502
|
+
var p = typeof e == "string" ? e : e.displayName || e.name;
|
|
503
|
+
p && (a = `
|
|
504
504
|
|
|
505
|
-
Check the top-level render call using <` +
|
|
505
|
+
Check the top-level render call using <` + p + ">.");
|
|
506
506
|
}
|
|
507
507
|
return a;
|
|
508
508
|
}
|
|
509
509
|
}
|
|
510
|
-
function
|
|
510
|
+
function Ze(e, a) {
|
|
511
511
|
{
|
|
512
512
|
if (!e._store || e._store.validated || e.key != null)
|
|
513
513
|
return;
|
|
514
514
|
e._store.validated = !0;
|
|
515
|
-
var
|
|
516
|
-
if (
|
|
515
|
+
var p = gt(a);
|
|
516
|
+
if (qe[p])
|
|
517
517
|
return;
|
|
518
|
-
|
|
519
|
-
var
|
|
520
|
-
e && e._owner && e._owner !==
|
|
518
|
+
qe[p] = !0;
|
|
519
|
+
var w = "";
|
|
520
|
+
e && e._owner && e._owner !== Be.current && (w = " It was passed a child from " + C(e._owner.type) + "."), Te(e), d('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', p, w), Te(null);
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
|
-
function
|
|
523
|
+
function Ge(e, a) {
|
|
524
524
|
{
|
|
525
525
|
if (typeof e != "object")
|
|
526
526
|
return;
|
|
527
|
-
if (
|
|
528
|
-
for (var
|
|
529
|
-
var
|
|
530
|
-
|
|
527
|
+
if (_e(e))
|
|
528
|
+
for (var p = 0; p < e.length; p++) {
|
|
529
|
+
var w = e[p];
|
|
530
|
+
He(w) && Ze(w, a);
|
|
531
531
|
}
|
|
532
|
-
else if (
|
|
532
|
+
else if (He(e))
|
|
533
533
|
e._store && (e._store.validated = !0);
|
|
534
534
|
else if (e) {
|
|
535
|
-
var
|
|
536
|
-
if (typeof
|
|
537
|
-
for (var
|
|
538
|
-
|
|
535
|
+
var ee = te(e);
|
|
536
|
+
if (typeof ee == "function" && ee !== e.entries)
|
|
537
|
+
for (var ae = ee.call(e), Y; !(Y = ae.next()).done; )
|
|
538
|
+
He(Y.value) && Ze(Y.value, a);
|
|
539
539
|
}
|
|
540
540
|
}
|
|
541
541
|
}
|
|
@@ -544,612 +544,649 @@ Check the top-level render call using <` + h + ">.");
|
|
|
544
544
|
var a = e.type;
|
|
545
545
|
if (a == null || typeof a == "string")
|
|
546
546
|
return;
|
|
547
|
-
var
|
|
547
|
+
var p;
|
|
548
548
|
if (typeof a == "function")
|
|
549
|
-
|
|
550
|
-
else if (typeof a == "object" && (a.$$typeof ===
|
|
549
|
+
p = a.propTypes;
|
|
550
|
+
else if (typeof a == "object" && (a.$$typeof === m || // Note: Memo only checks outer props here.
|
|
551
551
|
// Inner props are checked in the reconciler.
|
|
552
|
-
a.$$typeof ===
|
|
553
|
-
|
|
552
|
+
a.$$typeof === L))
|
|
553
|
+
p = a.propTypes;
|
|
554
554
|
else
|
|
555
555
|
return;
|
|
556
|
-
if (
|
|
557
|
-
var
|
|
558
|
-
|
|
559
|
-
} else if (a.PropTypes !== void 0 && !
|
|
560
|
-
|
|
561
|
-
var
|
|
562
|
-
|
|
556
|
+
if (p) {
|
|
557
|
+
var w = C(a);
|
|
558
|
+
be(p, e.props, "prop", w, e);
|
|
559
|
+
} else if (a.PropTypes !== void 0 && !Ve) {
|
|
560
|
+
Ve = !0;
|
|
561
|
+
var ee = C(a);
|
|
562
|
+
d("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", ee || "Unknown");
|
|
563
563
|
}
|
|
564
|
-
typeof a.getDefaultProps == "function" && !a.getDefaultProps.isReactClassApproved &&
|
|
564
|
+
typeof a.getDefaultProps == "function" && !a.getDefaultProps.isReactClassApproved && d("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
565
565
|
}
|
|
566
566
|
}
|
|
567
567
|
function vt(e) {
|
|
568
568
|
{
|
|
569
|
-
for (var a = Object.keys(e.props),
|
|
570
|
-
var
|
|
571
|
-
if (
|
|
572
|
-
Te(e),
|
|
569
|
+
for (var a = Object.keys(e.props), p = 0; p < a.length; p++) {
|
|
570
|
+
var w = a[p];
|
|
571
|
+
if (w !== "children" && w !== "key") {
|
|
572
|
+
Te(e), d("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", w), Te(null);
|
|
573
573
|
break;
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
|
-
e.ref !== null && (Te(e),
|
|
576
|
+
e.ref !== null && (Te(e), d("Invalid attribute `ref` supplied to `React.Fragment`."), Te(null));
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
579
|
var Xe = {};
|
|
580
|
-
function Qe(e, a,
|
|
580
|
+
function Qe(e, a, p, w, ee, ae) {
|
|
581
581
|
{
|
|
582
|
-
var
|
|
583
|
-
if (!
|
|
584
|
-
var
|
|
585
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
586
|
-
var
|
|
587
|
-
|
|
582
|
+
var Y = _(e);
|
|
583
|
+
if (!Y) {
|
|
584
|
+
var z = "";
|
|
585
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (z += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
586
|
+
var ye = ht();
|
|
587
|
+
ye ? z += ye : z += Ue();
|
|
588
588
|
var ue;
|
|
589
|
-
e === null ? ue = "null" :
|
|
589
|
+
e === null ? ue = "null" : _e(e) ? ue = "array" : e !== void 0 && e.$$typeof === r ? (ue = "<" + (C(e.type) || "Unknown") + " />", z = " Did you accidentally export a JSX literal instead of a component?") : ue = typeof e, d("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ue, z);
|
|
590
590
|
}
|
|
591
|
-
var fe = ft(e, a,
|
|
591
|
+
var fe = ft(e, a, p, ee, ae);
|
|
592
592
|
if (fe == null)
|
|
593
593
|
return fe;
|
|
594
|
-
if (
|
|
595
|
-
var
|
|
596
|
-
if (
|
|
597
|
-
if (
|
|
598
|
-
if (me
|
|
599
|
-
for (var De = 0; De <
|
|
600
|
-
|
|
601
|
-
Object.freeze && Object.freeze(
|
|
594
|
+
if (Y) {
|
|
595
|
+
var me = a.children;
|
|
596
|
+
if (me !== void 0)
|
|
597
|
+
if (w)
|
|
598
|
+
if (_e(me)) {
|
|
599
|
+
for (var De = 0; De < me.length; De++)
|
|
600
|
+
Ge(me[De], e);
|
|
601
|
+
Object.freeze && Object.freeze(me);
|
|
602
602
|
} else
|
|
603
|
-
|
|
603
|
+
d("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
604
604
|
else
|
|
605
|
-
|
|
605
|
+
Ge(me, e);
|
|
606
606
|
}
|
|
607
|
-
if (
|
|
608
|
-
var
|
|
607
|
+
if (o.call(a, "key")) {
|
|
608
|
+
var Re = C(e), xe = Object.keys(a).filter(function(Ct) {
|
|
609
609
|
return Ct !== "key";
|
|
610
|
-
}),
|
|
611
|
-
if (!Xe[
|
|
612
|
-
var
|
|
613
|
-
|
|
610
|
+
}), Je = xe.length > 0 ? "{key: someKey, " + xe.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
611
|
+
if (!Xe[Re + Je]) {
|
|
612
|
+
var _t = xe.length > 0 ? "{" + xe.join(": ..., ") + ": ...}" : "{}";
|
|
613
|
+
d(`A props object containing a "key" prop is being spread into JSX:
|
|
614
614
|
let props = %s;
|
|
615
615
|
<%s {...props} />
|
|
616
616
|
React keys must be passed directly to JSX without using spread:
|
|
617
617
|
let props = %s;
|
|
618
|
-
<%s key={someKey} {...props} />`,
|
|
618
|
+
<%s key={someKey} {...props} />`, Je, Re, _t, Re), Xe[Re + Je] = !0;
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
621
|
return e === s ? vt(fe) : pt(fe), fe;
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
|
-
function yt(e, a,
|
|
625
|
-
return Qe(e, a,
|
|
624
|
+
function yt(e, a, p) {
|
|
625
|
+
return Qe(e, a, p, !0);
|
|
626
626
|
}
|
|
627
|
-
function
|
|
628
|
-
return Qe(e, a,
|
|
627
|
+
function bt(e, a, p) {
|
|
628
|
+
return Qe(e, a, p, !1);
|
|
629
629
|
}
|
|
630
|
-
var
|
|
631
|
-
Ne.Fragment = s, Ne.jsx =
|
|
630
|
+
var xt = bt, mt = yt;
|
|
631
|
+
Ne.Fragment = s, Ne.jsx = xt, Ne.jsxs = mt;
|
|
632
632
|
}()), Ne;
|
|
633
633
|
}
|
|
634
|
-
process.env.NODE_ENV === "production" ?
|
|
635
|
-
var
|
|
636
|
-
const
|
|
637
|
-
let c = !1, s = 0, E = !1;
|
|
638
|
-
return function(...x) {
|
|
639
|
-
const k = performance.now(), D = () => {
|
|
640
|
-
t.apply(this, x), s = performance.now(), c = !0, E = !1, setTimeout(() => {
|
|
641
|
-
c = !1;
|
|
642
|
-
}, r);
|
|
643
|
-
};
|
|
644
|
-
if (!c) {
|
|
645
|
-
D();
|
|
646
|
-
return;
|
|
647
|
-
}
|
|
648
|
-
!E && k - s >= r && (E = !0, requestAnimationFrame(() => D()));
|
|
649
|
-
};
|
|
650
|
-
}, Ft = ({
|
|
634
|
+
process.env.NODE_ENV === "production" ? Ye.exports = Pt() : Ye.exports = Wt();
|
|
635
|
+
var n = Ye.exports;
|
|
636
|
+
const Ft = ({
|
|
651
637
|
column: t,
|
|
652
638
|
currWidth: r,
|
|
653
|
-
currMinWidth:
|
|
639
|
+
currMinWidth: l,
|
|
654
640
|
onResize: s,
|
|
655
|
-
scrollContainerRef: E
|
|
656
|
-
resizeThrottle: x = 0
|
|
641
|
+
scrollContainerRef: E
|
|
657
642
|
}) => {
|
|
658
|
-
const [
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
const
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
}, [
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
643
|
+
const [y, j] = ge(!1), [D, m] = ge(null), [M, k] = ge(0), [L, U] = ge(0), [G, X] = ge(null), [K, te] = ge(null), V = je(null);
|
|
644
|
+
je(0);
|
|
645
|
+
const d = je(!1), $ = je(null), x = je(0), F = je(0), H = ne((c) => {
|
|
646
|
+
if (!y || !D || !t) return;
|
|
647
|
+
const _ = c.clientX - M;
|
|
648
|
+
t.minWidth;
|
|
649
|
+
let h = L + _;
|
|
650
|
+
x.current = h;
|
|
651
|
+
const g = h - L, C = F.current + g;
|
|
652
|
+
X(C);
|
|
653
|
+
}, [y, M, L, D, E, t]), v = ne(() => {
|
|
654
|
+
if (!y || !D) return;
|
|
655
|
+
t.minWidth;
|
|
656
|
+
const _ = x.current || L, h = D;
|
|
657
|
+
V.current && (clearInterval(V.current), V.current = null), d.current = !1, j(!1), k(0), U(0), m(null), X(null), te(null), x.current = 0, F.current = 0, document.removeEventListener("mousemove", H), document.removeEventListener("mouseup", v), requestAnimationFrame(() => {
|
|
658
|
+
Et(() => {
|
|
659
|
+
s == null || s(h, _);
|
|
660
|
+
});
|
|
661
|
+
});
|
|
662
|
+
}, [y, D, t, L, s, H]), f = ne((c, _, h) => {
|
|
663
|
+
if (c.preventDefault(), !$.current) return;
|
|
664
|
+
j(!0), k(c.clientX), U(h), m(_), x.current = h;
|
|
665
|
+
const g = $.current.getBoundingClientRect(), C = g.left + 12;
|
|
666
|
+
X(C), F.current = C;
|
|
667
|
+
const T = E == null ? void 0 : E.current, O = $.current.closest("table");
|
|
668
|
+
if (T) {
|
|
669
|
+
const N = T.getBoundingClientRect();
|
|
670
|
+
te({
|
|
671
|
+
top: N.top + g.height * 2,
|
|
672
|
+
height: N.height - g.height * 2
|
|
673
|
+
});
|
|
674
|
+
} else if (O) {
|
|
675
|
+
const N = O.getBoundingClientRect();
|
|
676
|
+
te({
|
|
677
|
+
top: N.top,
|
|
678
|
+
height: N.height
|
|
679
|
+
});
|
|
688
680
|
}
|
|
689
|
-
);
|
|
681
|
+
}, [E]);
|
|
682
|
+
return Pe(() => {
|
|
683
|
+
y && (document.addEventListener("mousemove", H), document.addEventListener("mouseup", v));
|
|
684
|
+
}, [y, H, v]), Pe(() => () => {
|
|
685
|
+
document.removeEventListener("mousemove", H), document.removeEventListener("mouseup", v);
|
|
686
|
+
}, [H, v]), /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
687
|
+
/* @__PURE__ */ n.jsx(
|
|
688
|
+
"button",
|
|
689
|
+
{
|
|
690
|
+
ref: $,
|
|
691
|
+
className: "radar-table__resize-button",
|
|
692
|
+
onMouseDown: (c) => f(c, t.key, r || l || 200),
|
|
693
|
+
title: "Изменить ширину колонки",
|
|
694
|
+
children: /* @__PURE__ */ n.jsx("div", {})
|
|
695
|
+
}
|
|
696
|
+
),
|
|
697
|
+
G !== null && K && /* @__PURE__ */ n.jsx(
|
|
698
|
+
"div",
|
|
699
|
+
{
|
|
700
|
+
className: "radar-table__resize-line",
|
|
701
|
+
style: {
|
|
702
|
+
left: `${G}px`,
|
|
703
|
+
top: `${K.top}px`,
|
|
704
|
+
height: `${K.height}px`
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
)
|
|
708
|
+
] });
|
|
690
709
|
}, At = ({ text: t, children: r }) => {
|
|
691
|
-
const [
|
|
692
|
-
if (
|
|
693
|
-
const
|
|
694
|
-
|
|
710
|
+
const [l, s] = ge(!1), [E, y] = ge("left"), j = je(null), D = () => {
|
|
711
|
+
if (j.current) {
|
|
712
|
+
const m = j.current.getBoundingClientRect(), M = window.innerWidth, k = 250, L = 20, U = M - m.left, G = m.right;
|
|
713
|
+
U < k + L && G > k + L ? y("right") : y("left");
|
|
695
714
|
}
|
|
696
715
|
s(!0);
|
|
697
716
|
};
|
|
698
|
-
return /* @__PURE__ */
|
|
717
|
+
return /* @__PURE__ */ n.jsxs(
|
|
699
718
|
"button",
|
|
700
719
|
{
|
|
701
|
-
ref:
|
|
720
|
+
ref: j,
|
|
702
721
|
className: "radar-table__tooltip-button",
|
|
703
722
|
onMouseOver: D,
|
|
704
723
|
onMouseOut: () => s(!1),
|
|
705
724
|
children: [
|
|
706
|
-
r || /* @__PURE__ */
|
|
707
|
-
/* @__PURE__ */
|
|
708
|
-
/* @__PURE__ */
|
|
725
|
+
r || /* @__PURE__ */ n.jsxs("svg", { width: "1.5em", height: "1em", viewBox: "0 0 24 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
726
|
+
/* @__PURE__ */ n.jsx("rect", { stroke: "currentColor", x: "0.75", y: "0.75", width: "18.5", height: "18.5", rx: "9.25", strokeOpacity: "0.25", strokeWidth: "1.5" }),
|
|
727
|
+
/* @__PURE__ */ n.jsx("path", { fill: "currentColor", d: "M9.064 15V7.958H10.338V15H9.064ZM8.952 6.418V5.046H10.464V6.418H8.952Z", fillOpacity: "0.5" })
|
|
709
728
|
] }),
|
|
710
|
-
/* @__PURE__ */
|
|
729
|
+
/* @__PURE__ */ n.jsx(
|
|
711
730
|
"div",
|
|
712
731
|
{
|
|
713
|
-
className: `radar-table__tooltip-text ${
|
|
732
|
+
className: `radar-table__tooltip-text ${l ? "radar-table__tooltip-text_visible" : ""} radar-table__tooltip-text--${E}`,
|
|
714
733
|
children: t
|
|
715
734
|
}
|
|
716
735
|
)
|
|
717
736
|
]
|
|
718
737
|
}
|
|
719
738
|
);
|
|
720
|
-
}, ct = kt(null),
|
|
721
|
-
const t =
|
|
739
|
+
}, ct = kt(null), zt = () => {
|
|
740
|
+
const t = wt(ct);
|
|
722
741
|
return t || {
|
|
723
742
|
activeColumn: null,
|
|
724
743
|
isValidDropZone: () => !1
|
|
725
744
|
};
|
|
726
745
|
};
|
|
727
|
-
function
|
|
746
|
+
function Mt({
|
|
728
747
|
children: t,
|
|
729
748
|
fullConfig: r,
|
|
730
|
-
onColumnReorder:
|
|
749
|
+
onColumnReorder: l,
|
|
750
|
+
scrollContainerRef: s
|
|
731
751
|
}) {
|
|
732
|
-
const [
|
|
733
|
-
et(
|
|
752
|
+
const [E, y] = ge(null), [j, D] = ge(40), [m, M] = ge(200), [k, L] = ge(null), U = jt(
|
|
753
|
+
et(St, {
|
|
734
754
|
activationConstraint: {
|
|
735
755
|
distance: 5
|
|
736
756
|
// Уменьшили дистанцию
|
|
737
757
|
}
|
|
738
758
|
}),
|
|
739
|
-
et(
|
|
759
|
+
et(Rt, {
|
|
740
760
|
coordinateGetter: Nt
|
|
741
761
|
})
|
|
742
|
-
),
|
|
743
|
-
const
|
|
744
|
-
if (
|
|
745
|
-
const
|
|
746
|
-
(
|
|
762
|
+
), G = ne((v) => {
|
|
763
|
+
const f = Tt(v);
|
|
764
|
+
if (f.length > 0) {
|
|
765
|
+
const h = f.filter(
|
|
766
|
+
(g) => g.id.toString().startsWith("drop-zone-")
|
|
747
767
|
);
|
|
748
|
-
if (
|
|
749
|
-
return
|
|
768
|
+
if (h.length > 0)
|
|
769
|
+
return h;
|
|
750
770
|
}
|
|
751
|
-
const
|
|
752
|
-
(
|
|
771
|
+
const _ = Dt(v).filter(
|
|
772
|
+
(h) => h.id.toString().startsWith("drop-zone-")
|
|
753
773
|
);
|
|
754
|
-
return
|
|
755
|
-
}, []),
|
|
756
|
-
const
|
|
757
|
-
for (const
|
|
758
|
-
if (
|
|
759
|
-
return { column:
|
|
760
|
-
if (
|
|
761
|
-
const
|
|
762
|
-
if (
|
|
774
|
+
return _.length > 0 ? [_[0]] : [];
|
|
775
|
+
}, []), X = ne((v) => v.some((f) => f.children && f.children.length > 0), []), K = ne((v, f) => {
|
|
776
|
+
const c = (_, h, g = 0, C = null) => {
|
|
777
|
+
for (const T of _) {
|
|
778
|
+
if (T.key === h)
|
|
779
|
+
return { column: T, parent: C, level: g };
|
|
780
|
+
if (T.children && T.children.length > 0) {
|
|
781
|
+
const O = c(T.children, h, g + 1, T);
|
|
782
|
+
if (O) return O;
|
|
763
783
|
}
|
|
764
784
|
}
|
|
765
785
|
return null;
|
|
766
786
|
};
|
|
767
|
-
return
|
|
768
|
-
}, []),
|
|
769
|
-
var
|
|
770
|
-
const
|
|
771
|
-
return
|
|
772
|
-
}, [
|
|
773
|
-
|
|
774
|
-
|
|
787
|
+
return c(v, f);
|
|
788
|
+
}, []), te = ne((v, f) => {
|
|
789
|
+
var _;
|
|
790
|
+
const c = K(f, v);
|
|
791
|
+
return c && (c.column.fixed || ((_ = c.parent) == null ? void 0 : _.fixed)) || !1;
|
|
792
|
+
}, [K]), V = ne((v, f) => {
|
|
793
|
+
if (v.columnKey === f.columnKey)
|
|
794
|
+
return !1;
|
|
795
|
+
const c = te(v.columnKey, r), _ = te(f.columnKey, r);
|
|
796
|
+
if (c !== _)
|
|
775
797
|
return !1;
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
if (!v || !g)
|
|
785
|
-
return console.log("❌ Drop rejected: column info not found"), !1;
|
|
786
|
-
const A = m.isLeaf, L = b.isLeaf;
|
|
787
|
-
if (!A && !L) {
|
|
788
|
-
const j = v.level === g.level, P = v.parent === null && g.parent === null || v.parent !== null && g.parent !== null && v.parent.key === g.parent.key;
|
|
789
|
-
return console.log("🔄 Group to group validation:", {
|
|
790
|
-
sameLevel: j,
|
|
791
|
-
sameParentLevel: P,
|
|
792
|
-
draggedLevel: v.level,
|
|
793
|
-
targetLevel: g.level,
|
|
794
|
-
draggedParent: (l = v.parent) == null ? void 0 : l.key,
|
|
795
|
-
targetParent: (C = g.parent) == null ? void 0 : C.key
|
|
796
|
-
}), j && P;
|
|
798
|
+
if (X(r)) {
|
|
799
|
+
const h = K(r, v.columnKey), g = K(r, f.columnKey);
|
|
800
|
+
if (!h || !g)
|
|
801
|
+
return !1;
|
|
802
|
+
const C = v.isLeaf, T = f.isLeaf;
|
|
803
|
+
if (!C && !T) {
|
|
804
|
+
const O = h.level === g.level, N = h.parent === null && g.parent === null || h.parent !== null && g.parent !== null && h.parent.key === g.parent.key;
|
|
805
|
+
return O && N;
|
|
797
806
|
}
|
|
798
|
-
if (
|
|
799
|
-
const
|
|
800
|
-
return
|
|
801
|
-
sameLevel: j,
|
|
802
|
-
sameParent: P,
|
|
803
|
-
draggedLevel: v.level,
|
|
804
|
-
targetLevel: g.level,
|
|
805
|
-
draggedParent: (O = v.parent) == null ? void 0 : O.key,
|
|
806
|
-
targetParent: (_ = g.parent) == null ? void 0 : _.key
|
|
807
|
-
}), j && P;
|
|
807
|
+
if (C && T) {
|
|
808
|
+
const O = h.level === g.level, N = h.parent === null && g.parent === null || h.parent !== null && g.parent !== null && h.parent.key === g.parent.key;
|
|
809
|
+
return O && N;
|
|
808
810
|
}
|
|
809
|
-
return
|
|
810
|
-
draggedIsLeaf: A,
|
|
811
|
-
targetIsLeaf: L
|
|
812
|
-
}), !1;
|
|
811
|
+
return !1;
|
|
813
812
|
}
|
|
814
813
|
return !0;
|
|
815
|
-
}, [r,
|
|
816
|
-
var
|
|
817
|
-
if (
|
|
818
|
-
const
|
|
819
|
-
if (
|
|
820
|
-
return
|
|
821
|
-
const
|
|
822
|
-
|
|
823
|
-
const
|
|
824
|
-
return
|
|
825
|
-
}
|
|
826
|
-
const
|
|
827
|
-
if (!
|
|
828
|
-
return
|
|
829
|
-
const
|
|
830
|
-
if (
|
|
831
|
-
return { container:
|
|
832
|
-
const
|
|
833
|
-
for (const
|
|
834
|
-
if (
|
|
835
|
-
return
|
|
836
|
-
if (
|
|
837
|
-
const
|
|
838
|
-
if (
|
|
814
|
+
}, [r, X, K, te]), d = ne((v, f, c) => {
|
|
815
|
+
var le, he;
|
|
816
|
+
if (!X(r)) {
|
|
817
|
+
const A = c.findIndex((B) => B.key === v), P = c.findIndex((B) => B.key === f);
|
|
818
|
+
if (A === -1 || P === -1)
|
|
819
|
+
return c;
|
|
820
|
+
const q = [...c], Q = q[A];
|
|
821
|
+
q.splice(A, 1);
|
|
822
|
+
const oe = (A < P, P);
|
|
823
|
+
return q.splice(oe, 0, Q), q;
|
|
824
|
+
}
|
|
825
|
+
const _ = K(r, v), h = K(r, f);
|
|
826
|
+
if (!_ || !h)
|
|
827
|
+
return c;
|
|
828
|
+
const g = JSON.parse(JSON.stringify(r)), C = (A, P) => {
|
|
829
|
+
if (P === null)
|
|
830
|
+
return { container: A, parentObj: null };
|
|
831
|
+
const q = (oe) => {
|
|
832
|
+
for (const B of oe) {
|
|
833
|
+
if (B.key === P)
|
|
834
|
+
return B;
|
|
835
|
+
if (B.children) {
|
|
836
|
+
const S = q(B.children);
|
|
837
|
+
if (S) return S;
|
|
839
838
|
}
|
|
840
839
|
}
|
|
841
840
|
return null;
|
|
842
|
-
},
|
|
841
|
+
}, Q = q(A);
|
|
843
842
|
return {
|
|
844
|
-
container: (
|
|
845
|
-
parentObj:
|
|
843
|
+
container: (Q == null ? void 0 : Q.children) || A,
|
|
844
|
+
parentObj: Q
|
|
846
845
|
};
|
|
847
|
-
},
|
|
848
|
-
if (
|
|
849
|
-
return
|
|
850
|
-
const
|
|
851
|
-
if (
|
|
852
|
-
return
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
}
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
document.body.style.cursor = "grabbing";
|
|
846
|
+
}, T = ((le = _.parent) == null ? void 0 : le.key) || null, O = ((he = h.parent) == null ? void 0 : he.key) || null, { container: N } = C(g, T), { container: ce } = C(g, O);
|
|
847
|
+
if (N !== ce)
|
|
848
|
+
return c;
|
|
849
|
+
const ie = N.findIndex((A) => A.key === v), se = N.findIndex((A) => A.key === f);
|
|
850
|
+
if (ie === -1 || se === -1)
|
|
851
|
+
return c;
|
|
852
|
+
const [de] = N.splice(ie, 1), re = (ie < se, se);
|
|
853
|
+
return N.splice(re, 0, de), g;
|
|
854
|
+
}, [r, X, K]), $ = ne((v) => {
|
|
855
|
+
const f = v.active.data.current;
|
|
856
|
+
y(f);
|
|
857
|
+
const c = document.querySelector(`[data-column-key="${f.columnKey}"]`);
|
|
858
|
+
if (c) {
|
|
859
|
+
const _ = c.getBoundingClientRect();
|
|
860
|
+
M(_.width);
|
|
861
|
+
const h = c.closest("table");
|
|
862
|
+
c.closest('[style*="overflow"]');
|
|
863
|
+
const g = h;
|
|
864
|
+
if (g) {
|
|
865
|
+
const C = g.getBoundingClientRect();
|
|
866
|
+
D(C.height);
|
|
867
|
+
} else
|
|
868
|
+
D(400);
|
|
869
|
+
} else
|
|
870
|
+
D(400), M(200);
|
|
871
|
+
document.body.style.cursor = "grabbing";
|
|
872
|
+
}, []), x = ne((v) => {
|
|
873
|
+
const { active: f, over: c } = v;
|
|
874
|
+
if (!c || !f.data.current) {
|
|
875
|
+
document.body.style.cursor = "grabbing", L(null);
|
|
878
876
|
return;
|
|
879
877
|
}
|
|
880
|
-
const
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
isValid: C,
|
|
884
|
-
draggedType: p.isLeaf ? "leaf" : "group",
|
|
885
|
-
targetType: l.isLeaf ? "leaf" : "group"
|
|
886
|
-
});
|
|
887
|
-
}, [w]), Q = K((m) => {
|
|
888
|
-
const { active: b, over: n } = m;
|
|
889
|
-
if (document.body.style.cursor = "", E(null), !n || !b.data.current || !n.data.current) {
|
|
890
|
-
console.log("❌ Invalid drop - no target");
|
|
878
|
+
const _ = f.data.current, h = c.data.current;
|
|
879
|
+
if (!h) {
|
|
880
|
+
document.body.style.cursor = "grabbing", L(null);
|
|
891
881
|
return;
|
|
892
882
|
}
|
|
893
|
-
const
|
|
894
|
-
|
|
895
|
-
|
|
883
|
+
const g = V(_, h);
|
|
884
|
+
document.body.style.cursor = g ? "copy" : "not-allowed";
|
|
885
|
+
const C = document.querySelectorAll(`th[data-column-key="${h.columnKey}"]`), T = X(r), O = C.length > 0 ? T && h.isLeaf ? C[C.length - 1] : C[0] : null;
|
|
886
|
+
if (O) {
|
|
887
|
+
const N = O.getBoundingClientRect(), ce = O.closest("table");
|
|
888
|
+
let ie = N.left;
|
|
889
|
+
const se = s == null ? void 0 : s.current;
|
|
890
|
+
let de, re;
|
|
891
|
+
if (se) {
|
|
892
|
+
const le = se.getBoundingClientRect();
|
|
893
|
+
de = le.top, re = le.height;
|
|
894
|
+
} else if (ce) {
|
|
895
|
+
const le = ce.getBoundingClientRect();
|
|
896
|
+
de = le.top, re = le.height;
|
|
897
|
+
} else
|
|
898
|
+
de = N.top, re = N.height * 10;
|
|
899
|
+
L({
|
|
900
|
+
left: ie,
|
|
901
|
+
top: de,
|
|
902
|
+
height: re,
|
|
903
|
+
color: g ? "#5329FF" : "#ff3b3b"
|
|
904
|
+
});
|
|
905
|
+
} else
|
|
906
|
+
L(null);
|
|
907
|
+
}, [V]), F = ne((v) => {
|
|
908
|
+
const { active: f, over: c } = v;
|
|
909
|
+
if (document.body.style.cursor = "", y(null), D(40), M(200), L(null), !c || !f.data.current || !c.data.current)
|
|
896
910
|
return;
|
|
897
|
-
|
|
898
|
-
if (
|
|
899
|
-
const
|
|
900
|
-
|
|
901
|
-
|
|
911
|
+
const _ = f.data.current, h = c.data.current;
|
|
912
|
+
if (V(_, h) && l) {
|
|
913
|
+
const g = d(
|
|
914
|
+
_.columnKey,
|
|
915
|
+
h.columnKey,
|
|
902
916
|
r
|
|
903
917
|
);
|
|
904
|
-
|
|
905
|
-
draggedKey:
|
|
906
|
-
targetKey:
|
|
907
|
-
draggedIndex:
|
|
918
|
+
g._dragInfo = {
|
|
919
|
+
draggedKey: _.columnKey,
|
|
920
|
+
targetKey: h.columnKey,
|
|
921
|
+
draggedIndex: _.index,
|
|
908
922
|
targetIndex: -1
|
|
909
923
|
// будет вычислен в TableHeader если нужно
|
|
910
|
-
},
|
|
924
|
+
}, l(g);
|
|
911
925
|
}
|
|
912
|
-
}, [
|
|
913
|
-
activeColumn:
|
|
914
|
-
isValidDropZone:
|
|
926
|
+
}, [V, l, d, r]), H = {
|
|
927
|
+
activeColumn: E,
|
|
928
|
+
isValidDropZone: V
|
|
915
929
|
};
|
|
916
|
-
return /* @__PURE__ */
|
|
917
|
-
|
|
930
|
+
return /* @__PURE__ */ n.jsx(ct.Provider, { value: H, children: /* @__PURE__ */ n.jsxs(
|
|
931
|
+
Ot,
|
|
918
932
|
{
|
|
919
|
-
sensors:
|
|
920
|
-
collisionDetection:
|
|
921
|
-
onDragStart:
|
|
922
|
-
onDragOver:
|
|
923
|
-
onDragEnd:
|
|
933
|
+
sensors: U,
|
|
934
|
+
collisionDetection: G,
|
|
935
|
+
onDragStart: $,
|
|
936
|
+
onDragOver: x,
|
|
937
|
+
onDragEnd: F,
|
|
924
938
|
children: [
|
|
925
939
|
t,
|
|
926
|
-
/* @__PURE__ */
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
940
|
+
/* @__PURE__ */ n.jsx(Lt, { dropAnimation: null, children: E ? /* @__PURE__ */ n.jsx(
|
|
941
|
+
"div",
|
|
942
|
+
{
|
|
943
|
+
style: {
|
|
944
|
+
width: `${m}px`,
|
|
945
|
+
height: `${j}px`,
|
|
946
|
+
backgroundColor: "#5329FF",
|
|
947
|
+
opacity: 0.5,
|
|
948
|
+
borderRadius: "4px",
|
|
949
|
+
cursor: "grabbing",
|
|
950
|
+
pointerEvents: "none"
|
|
951
|
+
}
|
|
952
|
+
}
|
|
953
|
+
) : null }),
|
|
954
|
+
k && /* @__PURE__ */ n.jsx(
|
|
955
|
+
"div",
|
|
956
|
+
{
|
|
957
|
+
style: {
|
|
958
|
+
position: "fixed",
|
|
959
|
+
left: `${k.left}px`,
|
|
960
|
+
top: `${k.top}px`,
|
|
961
|
+
width: "2px",
|
|
962
|
+
height: `${k.height}px`,
|
|
963
|
+
backgroundColor: k.color,
|
|
964
|
+
zIndex: 1e4,
|
|
965
|
+
pointerEvents: "none",
|
|
966
|
+
opacity: 0.2
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
)
|
|
933
970
|
]
|
|
934
971
|
}
|
|
935
972
|
) });
|
|
936
973
|
}
|
|
937
|
-
const
|
|
974
|
+
const Bt = (t) => {
|
|
938
975
|
var r;
|
|
939
976
|
return typeof window < "u" && ((r = window.CSS) != null && r.escape) ? window.CSS.escape(t) : t.replace(/([#.;?\[\]\s])/g, "\\$1");
|
|
940
|
-
},
|
|
977
|
+
}, Vt = (t) => {
|
|
941
978
|
if (typeof document > "u") return null;
|
|
942
|
-
const r = `th[data-column-key="${
|
|
943
|
-
return
|
|
979
|
+
const r = `th[data-column-key="${Bt(t)}"]`, l = document.querySelector(r);
|
|
980
|
+
return l ? l.getBoundingClientRect().width : null;
|
|
944
981
|
};
|
|
945
|
-
function
|
|
982
|
+
function Ht({
|
|
946
983
|
column: t,
|
|
947
984
|
index: r,
|
|
948
|
-
config:
|
|
985
|
+
config: l,
|
|
949
986
|
fullConfig: s,
|
|
950
987
|
sorting: E,
|
|
951
|
-
onSort:
|
|
952
|
-
onResize:
|
|
988
|
+
onSort: y,
|
|
989
|
+
onResize: j,
|
|
953
990
|
sortIcon: D,
|
|
954
|
-
resizeable:
|
|
955
|
-
draggableColumns:
|
|
956
|
-
preset:
|
|
957
|
-
headerCellClassName:
|
|
958
|
-
headerCellStyle:
|
|
959
|
-
headerCellWrapperClassName:
|
|
960
|
-
headerCellWrapperStyle:
|
|
961
|
-
stickyHeader:
|
|
962
|
-
scrollContainerRef:
|
|
963
|
-
resizeThrottle:
|
|
991
|
+
resizeable: m,
|
|
992
|
+
draggableColumns: M,
|
|
993
|
+
preset: k,
|
|
994
|
+
headerCellClassName: L,
|
|
995
|
+
headerCellStyle: U,
|
|
996
|
+
headerCellWrapperClassName: G,
|
|
997
|
+
headerCellWrapperStyle: X,
|
|
998
|
+
stickyHeader: K,
|
|
999
|
+
scrollContainerRef: te,
|
|
1000
|
+
resizeThrottle: V
|
|
964
1001
|
}) {
|
|
965
|
-
var
|
|
1002
|
+
var B;
|
|
966
1003
|
if (t.hidden)
|
|
967
1004
|
return null;
|
|
968
|
-
const { activeColumn:
|
|
969
|
-
Ae(() => (s == null ? void 0 : s.some((
|
|
970
|
-
const
|
|
1005
|
+
const { activeColumn: d, isValidDropZone: $ } = zt(), x = !t.children || t.children.length === 0;
|
|
1006
|
+
Ae(() => (s == null ? void 0 : s.some((S) => S.children && S.children.length > 0)) || !1, [s]);
|
|
1007
|
+
const F = M, v = ne((S) => {
|
|
971
1008
|
if (!s) return null;
|
|
972
|
-
const
|
|
973
|
-
for (const u of
|
|
974
|
-
if (u.key ===
|
|
975
|
-
return
|
|
1009
|
+
const Z = (W, i, b = null) => {
|
|
1010
|
+
for (const u of W) {
|
|
1011
|
+
if (u.key === i)
|
|
1012
|
+
return b;
|
|
976
1013
|
if (u.children && u.children.length > 0) {
|
|
977
|
-
const
|
|
978
|
-
if (
|
|
1014
|
+
const o = Z(u.children, i, u);
|
|
1015
|
+
if (o !== null) return o;
|
|
979
1016
|
}
|
|
980
1017
|
}
|
|
981
1018
|
return null;
|
|
982
1019
|
};
|
|
983
|
-
return
|
|
984
|
-
}, [s])(t.key),
|
|
1020
|
+
return Z(s, S);
|
|
1021
|
+
}, [s])(t.key), f = t.fixed || (v == null ? void 0 : v.fixed) || !1, _ = ne((S) => {
|
|
985
1022
|
if (!s) return 0;
|
|
986
|
-
const
|
|
987
|
-
for (const u of
|
|
988
|
-
if (u.key ===
|
|
989
|
-
return
|
|
1023
|
+
const Z = (W, i, b = 0) => {
|
|
1024
|
+
for (const u of W) {
|
|
1025
|
+
if (u.key === i)
|
|
1026
|
+
return b;
|
|
990
1027
|
if (u.children && u.children.length > 0) {
|
|
991
|
-
const
|
|
992
|
-
if (
|
|
1028
|
+
const o = Z(u.children, i, b + 1);
|
|
1029
|
+
if (o !== -1) return o;
|
|
993
1030
|
}
|
|
994
1031
|
}
|
|
995
1032
|
return -1;
|
|
996
1033
|
};
|
|
997
|
-
return
|
|
1034
|
+
return Z(s, S);
|
|
998
1035
|
}, [s])(t.key), {
|
|
999
|
-
attributes:
|
|
1000
|
-
listeners:
|
|
1001
|
-
setNodeRef:
|
|
1002
|
-
isDragging:
|
|
1003
|
-
} =
|
|
1036
|
+
attributes: h,
|
|
1037
|
+
listeners: g,
|
|
1038
|
+
setNodeRef: C,
|
|
1039
|
+
isDragging: T
|
|
1040
|
+
} = $t({
|
|
1004
1041
|
id: `column-${t.key}`,
|
|
1005
1042
|
data: {
|
|
1006
1043
|
type: "table-column",
|
|
1007
1044
|
columnKey: t.key,
|
|
1008
|
-
isFixed:
|
|
1009
|
-
parentKey:
|
|
1010
|
-
level:
|
|
1045
|
+
isFixed: f,
|
|
1046
|
+
parentKey: v == null ? void 0 : v.key,
|
|
1047
|
+
level: _,
|
|
1011
1048
|
index: r,
|
|
1012
|
-
isLeaf:
|
|
1049
|
+
isLeaf: x
|
|
1013
1050
|
// ✅ Добавляем информацию о типе колонки
|
|
1014
1051
|
},
|
|
1015
|
-
disabled: !
|
|
1052
|
+
disabled: !F
|
|
1016
1053
|
}), {
|
|
1017
|
-
setNodeRef:
|
|
1018
|
-
isOver:
|
|
1019
|
-
} =
|
|
1054
|
+
setNodeRef: O,
|
|
1055
|
+
isOver: N
|
|
1056
|
+
} = It({
|
|
1020
1057
|
id: `drop-zone-${t.key}`,
|
|
1021
1058
|
data: {
|
|
1022
1059
|
type: "column-drop-zone",
|
|
1023
1060
|
columnKey: t.key,
|
|
1024
|
-
isFixed:
|
|
1025
|
-
accepts: [
|
|
1026
|
-
isLeaf:
|
|
1061
|
+
isFixed: f,
|
|
1062
|
+
accepts: [f ? "fixed" : "non-fixed"],
|
|
1063
|
+
isLeaf: x
|
|
1027
1064
|
// ✅ Добавляем информацию о типе колонки
|
|
1028
1065
|
},
|
|
1029
1066
|
disabled: !1
|
|
1030
|
-
}),
|
|
1031
|
-
|
|
1032
|
-
}, [
|
|
1033
|
-
if (!
|
|
1034
|
-
const
|
|
1067
|
+
}), ce = ne((S) => {
|
|
1068
|
+
C(S), O(S);
|
|
1069
|
+
}, [C, O]), ie = Ae(() => {
|
|
1070
|
+
if (!d || !N) return !1;
|
|
1071
|
+
const S = {
|
|
1035
1072
|
type: "column-drop-zone",
|
|
1036
1073
|
columnKey: t.key,
|
|
1037
|
-
isFixed:
|
|
1038
|
-
accepts: [
|
|
1039
|
-
isLeaf:
|
|
1074
|
+
isFixed: f,
|
|
1075
|
+
accepts: [f ? "fixed" : "non-fixed"],
|
|
1076
|
+
isLeaf: x
|
|
1040
1077
|
};
|
|
1041
|
-
return
|
|
1042
|
-
}, [
|
|
1043
|
-
let
|
|
1044
|
-
if (!
|
|
1045
|
-
return
|
|
1046
|
-
for (let
|
|
1047
|
-
const
|
|
1048
|
-
|
|
1049
|
-
}
|
|
1050
|
-
return
|
|
1051
|
-
}, [t.fixedLeft,
|
|
1078
|
+
return $(d, S);
|
|
1079
|
+
}, [d, N, t.key, f, $, x]), se = Ae(() => T ? "grabbing" : N && d ? ie ? "copy" : "not-allowed" : "default", [T, N, d, ie]), de = t.fixed && !t.width ? 200 : t.width, re = t.fixed && !t.minWidth ? 200 : t.minWidth, le = ne(() => {
|
|
1080
|
+
let S = t.fixedLeft || 0;
|
|
1081
|
+
if (!f)
|
|
1082
|
+
return S;
|
|
1083
|
+
for (let Z = 0; Z < r; Z++) {
|
|
1084
|
+
const W = l[Z];
|
|
1085
|
+
W.fixed && !W.hidden && (S += (W.width || W.minWidth || 200) + (W.fixedLeft || 0));
|
|
1086
|
+
}
|
|
1087
|
+
return S;
|
|
1088
|
+
}, [t.fixedLeft, l, r, f]), [he, A] = ge(() => le());
|
|
1052
1089
|
lt(() => {
|
|
1053
|
-
if (!
|
|
1054
|
-
|
|
1090
|
+
if (!f) {
|
|
1091
|
+
A(le());
|
|
1055
1092
|
return;
|
|
1056
1093
|
}
|
|
1057
|
-
let
|
|
1058
|
-
for (let
|
|
1059
|
-
const
|
|
1060
|
-
if (
|
|
1061
|
-
const
|
|
1062
|
-
|
|
1094
|
+
let S = t.fixedLeft || 0;
|
|
1095
|
+
for (let Z = 0; Z < r; Z++) {
|
|
1096
|
+
const W = l[Z];
|
|
1097
|
+
if (W.fixed && !W.hidden) {
|
|
1098
|
+
const i = W.width || W.minWidth || 200, b = Vt(W.key);
|
|
1099
|
+
S += Math.floor(b ?? i) + (W.fixedLeft || 0) - 0.05;
|
|
1063
1100
|
}
|
|
1064
1101
|
}
|
|
1065
|
-
|
|
1066
|
-
}, [t.fixedLeft, t.width, t.minWidth,
|
|
1067
|
-
const
|
|
1068
|
-
if (
|
|
1069
|
-
return
|
|
1102
|
+
A(S);
|
|
1103
|
+
}, [t.fixedLeft, t.width, t.minWidth, l, r, f, le]);
|
|
1104
|
+
const q = ((S) => {
|
|
1105
|
+
if (S.groupColor)
|
|
1106
|
+
return S.groupColor;
|
|
1070
1107
|
if (s) {
|
|
1071
|
-
const
|
|
1072
|
-
for (const u of
|
|
1108
|
+
const Z = (i, b) => {
|
|
1109
|
+
for (const u of i)
|
|
1073
1110
|
if (u.children) {
|
|
1074
|
-
if (u.children.some((
|
|
1111
|
+
if (u.children.some((R) => R.key === b))
|
|
1075
1112
|
return u;
|
|
1076
|
-
const
|
|
1077
|
-
if (
|
|
1113
|
+
const o = Z(u.children, b);
|
|
1114
|
+
if (o) return o;
|
|
1078
1115
|
}
|
|
1079
1116
|
return null;
|
|
1080
|
-
},
|
|
1081
|
-
return
|
|
1117
|
+
}, W = Z(s, S.key);
|
|
1118
|
+
return W == null ? void 0 : W.groupColor;
|
|
1082
1119
|
}
|
|
1083
1120
|
})(t);
|
|
1084
|
-
let
|
|
1085
|
-
return E.sort_field === t.key && (E.sort_order === "ASC" && (
|
|
1121
|
+
let Q = "currentColor", oe = "currentColor";
|
|
1122
|
+
return E.sort_field === t.key && (E.sort_order === "ASC" && (Q = "#5329FF"), E.sort_order === "DESC" && (oe = "#5329FF")), /* @__PURE__ */ n.jsx(
|
|
1086
1123
|
"th",
|
|
1087
1124
|
{
|
|
1088
|
-
ref:
|
|
1125
|
+
ref: ce,
|
|
1089
1126
|
"data-column-key": t.key,
|
|
1090
1127
|
className: `
|
|
1091
1128
|
radar-table__header-cell
|
|
1092
|
-
${
|
|
1093
|
-
${
|
|
1094
|
-
${
|
|
1095
|
-
${
|
|
1096
|
-
${
|
|
1097
|
-
${
|
|
1098
|
-
${
|
|
1129
|
+
${k ? k + "__header-cell" : ""}
|
|
1130
|
+
${L || ""}
|
|
1131
|
+
${T ? "dragging" : ""}
|
|
1132
|
+
${N ? "drag-over" : ""}
|
|
1133
|
+
${ie && N ? "valid-drop-zone" : ""}
|
|
1134
|
+
${N && !ie ? "invalid-drop-zone" : ""}
|
|
1135
|
+
${x ? "leaf-header" : "group-header"}
|
|
1099
1136
|
${t.className || ""}`,
|
|
1100
1137
|
colSpan: t.colSpan || 1,
|
|
1101
1138
|
rowSpan: t.rowSpan || 1,
|
|
1102
1139
|
style: {
|
|
1103
|
-
width:
|
|
1140
|
+
width: de,
|
|
1104
1141
|
minWidth: re,
|
|
1105
1142
|
position: t.fixed ? "sticky" : "static",
|
|
1106
|
-
top:
|
|
1143
|
+
top: K && typeof K == "number" ? K : 0,
|
|
1107
1144
|
left: he,
|
|
1108
|
-
borderRight: t.fixed && !((
|
|
1145
|
+
borderRight: t.fixed && !((B = l[r + 1]) != null && B.fixed) ? "1px solid #E8E8E8" : "none",
|
|
1109
1146
|
zIndex: t.fixed ? 2 : "auto",
|
|
1110
|
-
backgroundColor:
|
|
1111
|
-
cursor:
|
|
1112
|
-
...
|
|
1147
|
+
backgroundColor: q,
|
|
1148
|
+
cursor: se,
|
|
1149
|
+
...U,
|
|
1113
1150
|
...t.style
|
|
1114
1151
|
},
|
|
1115
|
-
children: /* @__PURE__ */
|
|
1152
|
+
children: /* @__PURE__ */ n.jsxs(
|
|
1116
1153
|
"div",
|
|
1117
1154
|
{
|
|
1118
1155
|
className: `
|
|
1119
1156
|
radar-table__header-cell-wrapper
|
|
1120
|
-
${
|
|
1121
|
-
${
|
|
1157
|
+
${k ? k + "__header-cell-wrapper" : ""}
|
|
1158
|
+
${G || ""}
|
|
1122
1159
|
`,
|
|
1123
|
-
style:
|
|
1160
|
+
style: X,
|
|
1124
1161
|
children: [
|
|
1125
|
-
|
|
1162
|
+
F && /* @__PURE__ */ n.jsx(
|
|
1126
1163
|
"div",
|
|
1127
1164
|
{
|
|
1128
|
-
className: `radar-table__drag-handle ${
|
|
1129
|
-
...
|
|
1130
|
-
...
|
|
1131
|
-
style: { cursor:
|
|
1132
|
-
children: /* @__PURE__ */
|
|
1133
|
-
/* @__PURE__ */
|
|
1134
|
-
/* @__PURE__ */
|
|
1135
|
-
/* @__PURE__ */
|
|
1136
|
-
/* @__PURE__ */
|
|
1137
|
-
/* @__PURE__ */
|
|
1138
|
-
/* @__PURE__ */
|
|
1165
|
+
className: `radar-table__drag-handle ${T ? "dragging" : ""} ${x ? "" : "group-drag-handle"}`,
|
|
1166
|
+
...h,
|
|
1167
|
+
...g,
|
|
1168
|
+
style: { cursor: T ? "grabbing" : "grab" },
|
|
1169
|
+
children: /* @__PURE__ */ n.jsxs("svg", { width: "8", height: "10", viewBox: "0 0 16 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
1170
|
+
/* @__PURE__ */ n.jsx("path", { d: "M2 2.62268e-07C3.10457 4.07115e-07 4 0.89543 4 2C4 3.10457 3.10457 4 2 4C0.895433 4 2.21557e-06 3.10457 2.36042e-06 2C2.50526e-06 0.89543 0.895433 1.17422e-07 2 2.62268e-07Z", fill: "#999999" }),
|
|
1171
|
+
/* @__PURE__ */ n.jsx("path", { d: "M14 16C15.1046 16 16 16.8954 16 18C16 19.1046 15.1046 20 14 20C12.8954 20 12 19.1046 12 18C12 16.8954 12.8954 16 14 16Z", fill: "#999999" }),
|
|
1172
|
+
/* @__PURE__ */ n.jsx("path", { d: "M2 16C3.10457 16 4 16.8954 4 18C4 19.1046 3.10457 20 2 20C0.895432 20 2.21557e-06 19.1046 2.36042e-06 18C2.50526e-06 16.8954 0.895433 16 2 16Z", fill: "#999999" }),
|
|
1173
|
+
/* @__PURE__ */ n.jsx("path", { d: "M14 8C15.1046 8 16 8.89543 16 10C16 11.1046 15.1046 12 14 12C12.8954 12 12 11.1046 12 10C12 8.89543 12.8954 8 14 8Z", fill: "#999999" }),
|
|
1174
|
+
/* @__PURE__ */ n.jsx("path", { d: "M2 8C3.10457 8 4 8.89543 4 10C4 11.1046 3.10457 12 2 12C0.895433 12 2.21557e-06 11.1046 2.36042e-06 10C2.50526e-06 8.89543 0.895433 8 2 8Z", fill: "#999999" }),
|
|
1175
|
+
/* @__PURE__ */ n.jsx("path", { d: "M14 -7.14702e-08C15.1046 7.33766e-08 16 0.89543 16 2C16 3.10457 15.1046 4 14 4C12.8954 4 12 3.10457 12 2C12 0.895429 12.8954 -2.16317e-07 14 -7.14702e-08Z", fill: "#999999" })
|
|
1139
1176
|
] })
|
|
1140
1177
|
}
|
|
1141
1178
|
),
|
|
1142
|
-
/* @__PURE__ */
|
|
1179
|
+
/* @__PURE__ */ n.jsx("div", { className: "radar-table__header-cell-text-wrapper", children: /* @__PURE__ */ n.jsx(
|
|
1143
1180
|
"span",
|
|
1144
1181
|
{
|
|
1145
1182
|
title: t.title,
|
|
1146
1183
|
onClick: () => {
|
|
1147
|
-
const { sort_field:
|
|
1148
|
-
let
|
|
1184
|
+
const { sort_field: S, sort_order: Z } = E;
|
|
1185
|
+
let W = {
|
|
1149
1186
|
columnKey: t.key,
|
|
1150
1187
|
direction: "ASC"
|
|
1151
1188
|
};
|
|
1152
|
-
|
|
1189
|
+
S === t.key ? Z === "ASC" ? W.direction = "DESC" : Z === "DESC" && (W.columnKey = void 0, W.direction = void 0) : (W.columnKey = t.key, W.direction = "ASC"), y(W.columnKey, W.direction);
|
|
1153
1190
|
},
|
|
1154
1191
|
style: {
|
|
1155
1192
|
cursor: t.sortable ? "pointer" : "default",
|
|
@@ -1158,37 +1195,36 @@ function Jt({
|
|
|
1158
1195
|
children: t.title
|
|
1159
1196
|
}
|
|
1160
1197
|
) }),
|
|
1161
|
-
t.sortable && !D &&
|
|
1162
|
-
/* @__PURE__ */
|
|
1198
|
+
t.sortable && !D && x && /* @__PURE__ */ n.jsxs("div", { className: "radar-table__sort-button-wrapper", children: [
|
|
1199
|
+
/* @__PURE__ */ n.jsx(
|
|
1163
1200
|
"button",
|
|
1164
1201
|
{
|
|
1165
1202
|
className: "radar-table__sort-button",
|
|
1166
|
-
onClick: (
|
|
1203
|
+
onClick: (S) => y(t.key, "ASC"),
|
|
1167
1204
|
title: `Сортировать по ${t.title}`,
|
|
1168
|
-
children: /* @__PURE__ */
|
|
1205
|
+
children: /* @__PURE__ */ n.jsx("svg", { width: "12", height: "7", viewBox: "0 0 12 7", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: { width: 12, height: 7 }, children: /* @__PURE__ */ n.jsx("path", { fill: Q, d: "M4.99264 0.21967C5.28553 -0.0732233 5.76041 -0.0732233 6.0533 0.21967L10.8263 4.99264C11.1192 5.28553 11.1192 5.76041 10.8263 6.0533C10.5334 6.34619 10.0585 6.34619 9.76561 6.0533L6.27297 2.56066L5.5 1.78769L4.77297 2.56066L1.28033 6.0533C0.987437 6.34619 0.512563 6.34619 0.21967 6.0533C-0.0732234 5.76041 -0.0732234 5.28553 0.21967 4.99264L4.99264 0.21967Z" }) })
|
|
1169
1206
|
}
|
|
1170
1207
|
),
|
|
1171
|
-
/* @__PURE__ */
|
|
1208
|
+
/* @__PURE__ */ n.jsx(
|
|
1172
1209
|
"button",
|
|
1173
1210
|
{
|
|
1174
1211
|
className: "radar-table__sort-button",
|
|
1175
|
-
onClick: (
|
|
1212
|
+
onClick: (S) => y(t.key, "DESC"),
|
|
1176
1213
|
title: `Сортировать по ${t.title}`,
|
|
1177
|
-
children: /* @__PURE__ */
|
|
1214
|
+
children: /* @__PURE__ */ n.jsx("svg", { width: "12", height: "7", viewBox: "0 0 12 7", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: { width: 12, height: 7 }, children: /* @__PURE__ */ n.jsx("path", { fill: oe, d: "M4.99264 6.78033C5.28553 7.07322 5.76041 7.07322 6.0533 6.78033L10.8263 2.00736C11.1192 1.71447 11.1192 1.23959 10.8263 0.946699C10.5334 0.653806 10.0585 0.653806 9.76561 0.946699L6.27297 4.43934L5.5 5.21231L4.77297 4.43934L1.28033 0.946699C0.987437 0.653806 0.512563 0.653806 0.21967 0.946699C-0.0732234 1.23959 -0.0732234 1.71447 0.21967 2.00736L4.99264 6.78033Z" }) })
|
|
1178
1215
|
}
|
|
1179
1216
|
)
|
|
1180
1217
|
] }),
|
|
1181
|
-
t.sortable && D &&
|
|
1182
|
-
t.tooltipText && /* @__PURE__ */
|
|
1183
|
-
|
|
1218
|
+
t.sortable && D && x && D(E.sort_field, E.sort_order),
|
|
1219
|
+
t.tooltipText && /* @__PURE__ */ n.jsx(At, { text: t.tooltipText, children: t.tooltipIcon }),
|
|
1220
|
+
m && x && /* @__PURE__ */ n.jsx(
|
|
1184
1221
|
Ft,
|
|
1185
1222
|
{
|
|
1186
1223
|
column: t,
|
|
1187
|
-
currWidth:
|
|
1224
|
+
currWidth: de,
|
|
1188
1225
|
currMinWidth: re,
|
|
1189
|
-
onResize:
|
|
1190
|
-
scrollContainerRef:
|
|
1191
|
-
resizeThrottle: b
|
|
1226
|
+
onResize: j,
|
|
1227
|
+
scrollContainerRef: te
|
|
1192
1228
|
}
|
|
1193
1229
|
)
|
|
1194
1230
|
]
|
|
@@ -1200,378 +1236,378 @@ function Jt({
|
|
|
1200
1236
|
function nt({
|
|
1201
1237
|
config: t,
|
|
1202
1238
|
fullConfig: r,
|
|
1203
|
-
onSort:
|
|
1239
|
+
onSort: l,
|
|
1204
1240
|
onResize: s,
|
|
1205
1241
|
onColumnReorder: E,
|
|
1206
1242
|
// ✅ Сохранен (понадобится для передачи в TableDndProvider)
|
|
1207
|
-
sortIcon:
|
|
1208
|
-
resizeable:
|
|
1243
|
+
sortIcon: y,
|
|
1244
|
+
resizeable: j,
|
|
1209
1245
|
draggableColumns: D,
|
|
1210
|
-
preset:
|
|
1211
|
-
headerClassName:
|
|
1212
|
-
headerStyle:
|
|
1213
|
-
headerRowClassName:
|
|
1214
|
-
headerRowStyle:
|
|
1215
|
-
headerCellClassName:
|
|
1216
|
-
headerCellStyle:
|
|
1217
|
-
headerCellWrapperClassName:
|
|
1218
|
-
headerCellWrapperStyle:
|
|
1219
|
-
stickyHeader:
|
|
1220
|
-
scrollContainerRef:
|
|
1246
|
+
preset: m,
|
|
1247
|
+
headerClassName: M,
|
|
1248
|
+
headerStyle: k,
|
|
1249
|
+
headerRowClassName: L,
|
|
1250
|
+
headerRowStyle: U,
|
|
1251
|
+
headerCellClassName: G,
|
|
1252
|
+
headerCellStyle: X,
|
|
1253
|
+
headerCellWrapperClassName: K,
|
|
1254
|
+
headerCellWrapperStyle: te,
|
|
1255
|
+
stickyHeader: V,
|
|
1256
|
+
scrollContainerRef: d,
|
|
1221
1257
|
// ✅ Сохранен (для передачи в HeaderCell)
|
|
1222
|
-
sorting:
|
|
1223
|
-
defaultSorting:
|
|
1224
|
-
resizeThrottle:
|
|
1258
|
+
sorting: $,
|
|
1259
|
+
defaultSorting: x,
|
|
1260
|
+
resizeThrottle: F
|
|
1225
1261
|
}) {
|
|
1226
|
-
const [
|
|
1227
|
-
|
|
1228
|
-
!
|
|
1229
|
-
}, [
|
|
1230
|
-
const
|
|
1231
|
-
const { sort_field:
|
|
1232
|
-
let
|
|
1233
|
-
sort_field:
|
|
1234
|
-
sort_order:
|
|
1262
|
+
const [H, v] = ge(() => x || { sort_field: void 0, sort_order: void 0 }), f = $ !== void 0, c = f ? $ : H;
|
|
1263
|
+
Pe(() => {
|
|
1264
|
+
!f && x && v(x);
|
|
1265
|
+
}, [x, f]);
|
|
1266
|
+
const _ = ne((h, g) => {
|
|
1267
|
+
const { sort_field: C, sort_order: T } = c;
|
|
1268
|
+
let O = {
|
|
1269
|
+
sort_field: h,
|
|
1270
|
+
sort_order: g
|
|
1235
1271
|
};
|
|
1236
|
-
|
|
1272
|
+
C === h && T === g && (O = {
|
|
1237
1273
|
sort_field: void 0,
|
|
1238
1274
|
sort_order: void 0
|
|
1239
|
-
}),
|
|
1240
|
-
}, [
|
|
1241
|
-
return /* @__PURE__ */
|
|
1275
|
+
}), f || v(O), l == null || l(O.sort_field, O.sort_order);
|
|
1276
|
+
}, [c, l, f]);
|
|
1277
|
+
return /* @__PURE__ */ n.jsx(
|
|
1242
1278
|
"tr",
|
|
1243
1279
|
{
|
|
1244
|
-
className: `radar-table__header-row ${
|
|
1245
|
-
style:
|
|
1246
|
-
children: t.map((
|
|
1247
|
-
|
|
1280
|
+
className: `radar-table__header-row ${m ? m + "__header-row" : ""} ${L || ""}`,
|
|
1281
|
+
style: U,
|
|
1282
|
+
children: t.map((h, g) => /* @__PURE__ */ n.jsx(
|
|
1283
|
+
Ht,
|
|
1248
1284
|
{
|
|
1249
|
-
column:
|
|
1250
|
-
index:
|
|
1285
|
+
column: h,
|
|
1286
|
+
index: g,
|
|
1251
1287
|
config: t,
|
|
1252
1288
|
fullConfig: r,
|
|
1253
|
-
sorting:
|
|
1254
|
-
onSort:
|
|
1289
|
+
sorting: c,
|
|
1290
|
+
onSort: _,
|
|
1255
1291
|
onResize: s,
|
|
1256
|
-
sortIcon:
|
|
1257
|
-
resizeable:
|
|
1292
|
+
sortIcon: y,
|
|
1293
|
+
resizeable: j,
|
|
1258
1294
|
draggableColumns: D,
|
|
1259
|
-
preset:
|
|
1260
|
-
headerCellClassName:
|
|
1261
|
-
headerCellStyle:
|
|
1262
|
-
headerCellWrapperClassName:
|
|
1263
|
-
headerCellWrapperStyle:
|
|
1264
|
-
stickyHeader:
|
|
1265
|
-
scrollContainerRef:
|
|
1266
|
-
resizeThrottle:
|
|
1295
|
+
preset: m,
|
|
1296
|
+
headerCellClassName: G,
|
|
1297
|
+
headerCellStyle: X,
|
|
1298
|
+
headerCellWrapperClassName: K,
|
|
1299
|
+
headerCellWrapperStyle: te,
|
|
1300
|
+
stickyHeader: V,
|
|
1301
|
+
scrollContainerRef: d,
|
|
1302
|
+
resizeThrottle: F
|
|
1267
1303
|
},
|
|
1268
|
-
|
|
1304
|
+
h.key
|
|
1269
1305
|
))
|
|
1270
1306
|
}
|
|
1271
1307
|
);
|
|
1272
1308
|
}
|
|
1273
|
-
function
|
|
1309
|
+
function Jt(t) {
|
|
1274
1310
|
const {
|
|
1275
1311
|
config: r,
|
|
1276
|
-
preset:
|
|
1312
|
+
preset: l,
|
|
1277
1313
|
headerClassName: s,
|
|
1278
1314
|
headerStyle: E,
|
|
1279
|
-
stickyHeader:
|
|
1280
|
-
headerRowClassName:
|
|
1315
|
+
stickyHeader: y,
|
|
1316
|
+
headerRowClassName: j,
|
|
1281
1317
|
headerRowStyle: D,
|
|
1282
|
-
headerCellClassName:
|
|
1283
|
-
headerCellStyle:
|
|
1284
|
-
headerCellWrapperClassName:
|
|
1285
|
-
headerCellWrapperStyle:
|
|
1286
|
-
onResize:
|
|
1287
|
-
onColumnReorder:
|
|
1288
|
-
sorting:
|
|
1289
|
-
defaultSorting:
|
|
1290
|
-
} = t,
|
|
1291
|
-
if (!
|
|
1318
|
+
headerCellClassName: m,
|
|
1319
|
+
headerCellStyle: M,
|
|
1320
|
+
headerCellWrapperClassName: k,
|
|
1321
|
+
headerCellWrapperStyle: L,
|
|
1322
|
+
onResize: U,
|
|
1323
|
+
onColumnReorder: G,
|
|
1324
|
+
sorting: X,
|
|
1325
|
+
defaultSorting: K
|
|
1326
|
+
} = t, te = r.some((x) => x.children && x.children.length > 0), V = Ae(() => {
|
|
1327
|
+
if (!te)
|
|
1292
1328
|
return null;
|
|
1293
|
-
const
|
|
1294
|
-
|
|
1295
|
-
|
|
1329
|
+
const x = {}, F = (H, v = 0) => {
|
|
1330
|
+
x[v] || (x[v] = []), H.forEach((f) => {
|
|
1331
|
+
f.hidden || (x[v].push(f), f.children && f.children.length > 0 && F(f.children, v + 1));
|
|
1296
1332
|
});
|
|
1297
1333
|
};
|
|
1298
|
-
return
|
|
1299
|
-
}, [r,
|
|
1300
|
-
if (!
|
|
1301
|
-
const
|
|
1302
|
-
for (const
|
|
1303
|
-
if (
|
|
1304
|
-
if (
|
|
1305
|
-
const
|
|
1306
|
-
if (
|
|
1334
|
+
return F(r), x;
|
|
1335
|
+
}, [r, te]), d = ne((x, F) => {
|
|
1336
|
+
if (!U) return;
|
|
1337
|
+
const H = (c, _) => {
|
|
1338
|
+
for (const h of c) {
|
|
1339
|
+
if (h.key === _) return h;
|
|
1340
|
+
if (h.children) {
|
|
1341
|
+
const g = H(h.children, _);
|
|
1342
|
+
if (g) return g;
|
|
1307
1343
|
}
|
|
1308
1344
|
}
|
|
1309
1345
|
return null;
|
|
1310
|
-
},
|
|
1311
|
-
if (!
|
|
1312
|
-
return [
|
|
1313
|
-
const
|
|
1314
|
-
return
|
|
1315
|
-
|
|
1316
|
-
}),
|
|
1317
|
-
},
|
|
1318
|
-
if (
|
|
1319
|
-
if (
|
|
1320
|
-
const
|
|
1321
|
-
if (
|
|
1322
|
-
const
|
|
1323
|
-
|
|
1324
|
-
const
|
|
1325
|
-
|
|
1346
|
+
}, v = (c) => {
|
|
1347
|
+
if (!c.children || c.children.length === 0)
|
|
1348
|
+
return [c];
|
|
1349
|
+
const _ = [];
|
|
1350
|
+
return c.children.forEach((h) => {
|
|
1351
|
+
h.hidden || _.push(...v(h));
|
|
1352
|
+
}), _;
|
|
1353
|
+
}, f = H(r, x);
|
|
1354
|
+
if (f)
|
|
1355
|
+
if (f.children && f.children.length > 0) {
|
|
1356
|
+
const c = v(f);
|
|
1357
|
+
if (c.length > 0) {
|
|
1358
|
+
const _ = c.reduce((g, C) => g + (C.width || C.minWidth || 200), 0), h = F / _;
|
|
1359
|
+
c.forEach((g) => {
|
|
1360
|
+
const C = Math.max(50, Math.round((g.width || g.minWidth || 200) * h));
|
|
1361
|
+
U(g.key, C);
|
|
1326
1362
|
});
|
|
1327
1363
|
}
|
|
1328
1364
|
} else
|
|
1329
|
-
|
|
1330
|
-
}, [r,
|
|
1331
|
-
if (!
|
|
1332
|
-
if (!
|
|
1333
|
-
|
|
1365
|
+
U(x, F);
|
|
1366
|
+
}, [r, U]), $ = ne((x) => {
|
|
1367
|
+
if (!G) return;
|
|
1368
|
+
if (!te) {
|
|
1369
|
+
G(x);
|
|
1334
1370
|
return;
|
|
1335
1371
|
}
|
|
1336
|
-
const
|
|
1337
|
-
for (let
|
|
1338
|
-
const
|
|
1339
|
-
if (
|
|
1372
|
+
const F = (A, P, q = [], Q = null) => {
|
|
1373
|
+
for (let oe = 0; oe < A.length; oe++) {
|
|
1374
|
+
const B = A[oe], S = [...q, oe];
|
|
1375
|
+
if (B.key === P)
|
|
1340
1376
|
return {
|
|
1341
|
-
column:
|
|
1342
|
-
parent:
|
|
1343
|
-
path:
|
|
1344
|
-
level:
|
|
1377
|
+
column: B,
|
|
1378
|
+
parent: Q,
|
|
1379
|
+
path: S,
|
|
1380
|
+
level: q.length
|
|
1345
1381
|
};
|
|
1346
|
-
if (
|
|
1347
|
-
const
|
|
1348
|
-
if (
|
|
1349
|
-
return
|
|
1382
|
+
if (B.children && B.children.length > 0) {
|
|
1383
|
+
const Z = F(B.children, P, S, B);
|
|
1384
|
+
if (Z)
|
|
1385
|
+
return Z;
|
|
1350
1386
|
}
|
|
1351
1387
|
}
|
|
1352
1388
|
return null;
|
|
1353
1389
|
};
|
|
1354
|
-
if (!Object.values(
|
|
1355
|
-
if (
|
|
1356
|
-
const
|
|
1357
|
-
return JSON.stringify(
|
|
1390
|
+
if (!Object.values(V).find((A) => {
|
|
1391
|
+
if (A.length !== x.length) return !1;
|
|
1392
|
+
const P = A.map((Q) => Q.key).sort(), q = x.map((Q) => Q.key).sort();
|
|
1393
|
+
return JSON.stringify(P) === JSON.stringify(q);
|
|
1358
1394
|
}))
|
|
1359
1395
|
return;
|
|
1360
|
-
const
|
|
1361
|
-
if (!(
|
|
1396
|
+
const v = x._dragInfo;
|
|
1397
|
+
if (!(v != null && v.draggedKey) || !(v != null && v.targetKey))
|
|
1362
1398
|
return;
|
|
1363
|
-
const { draggedKey:
|
|
1364
|
-
if (!
|
|
1365
|
-
const { column:
|
|
1366
|
-
if (
|
|
1399
|
+
const { draggedKey: f, targetKey: c } = v, _ = F(r, f), h = F(r, c);
|
|
1400
|
+
if (!_ || !h) return;
|
|
1401
|
+
const { column: g, parent: C, path: T, level: O } = _, { column: N, parent: ce, path: ie, level: se } = h, de = (A, P) => A.fixed || (P == null ? void 0 : P.fixed) || !1, re = de(g, C), le = de(N, ce);
|
|
1402
|
+
if (O !== se || C !== ce || C && ce && C.key !== ce.key || re !== le)
|
|
1367
1403
|
return;
|
|
1368
1404
|
const he = JSON.parse(JSON.stringify(r));
|
|
1369
|
-
if (
|
|
1370
|
-
const
|
|
1371
|
-
he.splice(
|
|
1405
|
+
if (O === 0) {
|
|
1406
|
+
const A = T[0], P = ie[0], [q] = he.splice(A, 1);
|
|
1407
|
+
he.splice(P, 0, q);
|
|
1372
1408
|
} else {
|
|
1373
|
-
const
|
|
1374
|
-
let
|
|
1375
|
-
for (let
|
|
1376
|
-
|
|
1377
|
-
if (!
|
|
1409
|
+
const A = T.slice(0, -1);
|
|
1410
|
+
let P = he;
|
|
1411
|
+
for (let B = 0; B < A.length; B++)
|
|
1412
|
+
B === 0 ? P = P[A[B]] : P = P.children[A[B]];
|
|
1413
|
+
if (!P || !P.children)
|
|
1378
1414
|
return;
|
|
1379
|
-
const
|
|
1380
|
-
if (
|
|
1415
|
+
const q = T[T.length - 1], Q = ie[ie.length - 1];
|
|
1416
|
+
if (q < 0 || q >= P.children.length || Q < 0 || Q >= P.children.length)
|
|
1381
1417
|
return;
|
|
1382
|
-
const [
|
|
1383
|
-
|
|
1418
|
+
const [oe] = P.children.splice(q, 1);
|
|
1419
|
+
P.children.splice(Q, 0, oe);
|
|
1384
1420
|
}
|
|
1385
|
-
|
|
1386
|
-
}, [r,
|
|
1387
|
-
return
|
|
1421
|
+
G(he);
|
|
1422
|
+
}, [r, G, V]);
|
|
1423
|
+
return te ? /* @__PURE__ */ n.jsx(
|
|
1388
1424
|
"thead",
|
|
1389
1425
|
{
|
|
1390
|
-
className: `radar-table__header ${
|
|
1426
|
+
className: `radar-table__header ${l ? l + "__header" : ""} ${s}`,
|
|
1391
1427
|
style: {
|
|
1392
|
-
position:
|
|
1393
|
-
top:
|
|
1428
|
+
position: y ? "sticky" : "static",
|
|
1429
|
+
top: y && typeof y == "number" ? y : 0,
|
|
1394
1430
|
...E
|
|
1395
1431
|
},
|
|
1396
|
-
children: Object.keys(
|
|
1397
|
-
const
|
|
1398
|
-
return /* @__PURE__ */
|
|
1432
|
+
children: Object.keys(V).map((x) => {
|
|
1433
|
+
const F = V[parseInt(x)], H = parseInt(x);
|
|
1434
|
+
return /* @__PURE__ */ n.jsx(
|
|
1399
1435
|
nt,
|
|
1400
1436
|
{
|
|
1401
|
-
config:
|
|
1437
|
+
config: F,
|
|
1402
1438
|
fullConfig: r,
|
|
1403
1439
|
onSort: t.onSort,
|
|
1404
|
-
onResize:
|
|
1405
|
-
onColumnReorder:
|
|
1440
|
+
onResize: d,
|
|
1441
|
+
onColumnReorder: $,
|
|
1406
1442
|
resizeable: t.resizeable,
|
|
1407
1443
|
draggableColumns: t.draggableColumns,
|
|
1408
|
-
preset:
|
|
1444
|
+
preset: l,
|
|
1409
1445
|
headerClassName: s,
|
|
1410
1446
|
headerStyle: E,
|
|
1411
|
-
headerRowClassName:
|
|
1447
|
+
headerRowClassName: j,
|
|
1412
1448
|
headerRowStyle: {
|
|
1413
1449
|
...D,
|
|
1414
|
-
position:
|
|
1415
|
-
top:
|
|
1450
|
+
position: y ? "sticky" : "static",
|
|
1451
|
+
top: y && typeof y == "number" ? y + (H - 1) * 50 : 0
|
|
1416
1452
|
},
|
|
1417
|
-
headerCellClassName:
|
|
1418
|
-
headerCellStyle:
|
|
1419
|
-
headerCellWrapperClassName:
|
|
1420
|
-
headerCellWrapperStyle:
|
|
1421
|
-
stickyHeader:
|
|
1453
|
+
headerCellClassName: m,
|
|
1454
|
+
headerCellStyle: M,
|
|
1455
|
+
headerCellWrapperClassName: k,
|
|
1456
|
+
headerCellWrapperStyle: L,
|
|
1457
|
+
stickyHeader: y,
|
|
1422
1458
|
sortIcon: t.sortIcon,
|
|
1423
1459
|
scrollContainerRef: t.scrollContainerRef,
|
|
1424
|
-
sorting:
|
|
1425
|
-
defaultSorting:
|
|
1460
|
+
sorting: X,
|
|
1461
|
+
defaultSorting: K,
|
|
1426
1462
|
resizeThrottle: t.resizeThrottle
|
|
1427
1463
|
},
|
|
1428
|
-
|
|
1464
|
+
x
|
|
1429
1465
|
);
|
|
1430
1466
|
})
|
|
1431
1467
|
}
|
|
1432
|
-
) : /* @__PURE__ */
|
|
1468
|
+
) : /* @__PURE__ */ n.jsx(
|
|
1433
1469
|
"thead",
|
|
1434
1470
|
{
|
|
1435
|
-
className: `radar-table__header ${
|
|
1471
|
+
className: `radar-table__header ${l ? l + "__header" : ""} ${s}`,
|
|
1436
1472
|
style: {
|
|
1437
|
-
position:
|
|
1438
|
-
top:
|
|
1473
|
+
position: y ? "sticky" : "static",
|
|
1474
|
+
top: y && typeof y == "number" ? y : 0,
|
|
1439
1475
|
...E
|
|
1440
1476
|
},
|
|
1441
|
-
children: /* @__PURE__ */
|
|
1477
|
+
children: /* @__PURE__ */ n.jsx(nt, { ...t, fullConfig: r, onResize: d, onColumnReorder: $, scrollContainerRef: t.scrollContainerRef, sorting: X, defaultSorting: K, resizeThrottle: t.resizeThrottle })
|
|
1442
1478
|
}
|
|
1443
1479
|
);
|
|
1444
1480
|
}
|
|
1445
|
-
const
|
|
1446
|
-
let
|
|
1481
|
+
const Yt = (t, r) => {
|
|
1482
|
+
let l = "0";
|
|
1447
1483
|
if (t != null) {
|
|
1448
1484
|
const s = parseFloat(t);
|
|
1449
1485
|
if (Number.isNaN(s))
|
|
1450
|
-
return r && (
|
|
1451
|
-
|
|
1486
|
+
return r && (l += ` ${r}`), l;
|
|
1487
|
+
l = s.toLocaleString("ru-RU", {
|
|
1452
1488
|
maximumFractionDigits: 2
|
|
1453
|
-
}), r && (
|
|
1489
|
+
}), r && (l += ` ${r}`);
|
|
1454
1490
|
}
|
|
1455
|
-
return
|
|
1456
|
-
},
|
|
1491
|
+
return l;
|
|
1492
|
+
}, Kt = (t) => {
|
|
1457
1493
|
var r;
|
|
1458
1494
|
return typeof window < "u" && ((r = window.CSS) != null && r.escape) ? window.CSS.escape(t) : t.replace(/([#.;?\[\]\s])/g, "\\$1");
|
|
1459
|
-
},
|
|
1495
|
+
}, Ut = (t) => {
|
|
1460
1496
|
if (typeof document > "u") return null;
|
|
1461
|
-
const r = `th[data-column-key="${
|
|
1462
|
-
return
|
|
1463
|
-
},
|
|
1464
|
-
function
|
|
1497
|
+
const r = `th[data-column-key="${Kt(t)}"]`, l = document.querySelector(r);
|
|
1498
|
+
return l ? l.getBoundingClientRect().width : null;
|
|
1499
|
+
}, qt = typeof navigator < "u" && navigator.userAgent.toLowerCase().includes("firefox");
|
|
1500
|
+
function Zt({
|
|
1465
1501
|
draggableRows: t = !1,
|
|
1466
1502
|
dataSource: r,
|
|
1467
|
-
config:
|
|
1503
|
+
config: l,
|
|
1468
1504
|
rowKey: s,
|
|
1469
1505
|
loading: E = !1,
|
|
1470
|
-
onRowReorder:
|
|
1471
|
-
preset:
|
|
1506
|
+
onRowReorder: y,
|
|
1507
|
+
preset: j,
|
|
1472
1508
|
customCellRender: D,
|
|
1473
|
-
treeMode:
|
|
1474
|
-
expandedRowKeys:
|
|
1475
|
-
defaultExpandedRowKeys:
|
|
1476
|
-
onExpandedRowsChange:
|
|
1477
|
-
indentSize:
|
|
1478
|
-
expandIcon:
|
|
1479
|
-
bodyClassName:
|
|
1480
|
-
bodyStyle:
|
|
1481
|
-
bodyRowClassName:
|
|
1482
|
-
bodyRowStyle:
|
|
1483
|
-
bodyCellClassName:
|
|
1484
|
-
bodyCellStyle:
|
|
1485
|
-
bodyCellWrapperClassName:
|
|
1486
|
-
bodyCellWrapperStyle:
|
|
1487
|
-
noDataRender:
|
|
1488
|
-
scrollContainerRef:
|
|
1489
|
-
recalculateRowHeight:
|
|
1509
|
+
treeMode: m,
|
|
1510
|
+
expandedRowKeys: M,
|
|
1511
|
+
defaultExpandedRowKeys: k,
|
|
1512
|
+
onExpandedRowsChange: L,
|
|
1513
|
+
indentSize: U,
|
|
1514
|
+
expandIcon: G,
|
|
1515
|
+
bodyClassName: X,
|
|
1516
|
+
bodyStyle: K,
|
|
1517
|
+
bodyRowClassName: te,
|
|
1518
|
+
bodyRowStyle: V,
|
|
1519
|
+
bodyCellClassName: d,
|
|
1520
|
+
bodyCellStyle: $,
|
|
1521
|
+
bodyCellWrapperClassName: x,
|
|
1522
|
+
bodyCellWrapperStyle: F,
|
|
1523
|
+
noDataRender: H,
|
|
1524
|
+
scrollContainerRef: v,
|
|
1525
|
+
recalculateRowHeight: f
|
|
1490
1526
|
}) {
|
|
1491
|
-
var
|
|
1492
|
-
const [
|
|
1493
|
-
|
|
1494
|
-
}, [
|
|
1495
|
-
if (!
|
|
1496
|
-
const
|
|
1497
|
-
return
|
|
1498
|
-
const
|
|
1499
|
-
|
|
1527
|
+
var W;
|
|
1528
|
+
const [c, _] = ge(null), [h, g] = ge(null), [C, T] = ge(() => k && k.length > 0 ? new Set(k) : /* @__PURE__ */ new Set()), O = Oe.useMemo(() => M ? new Set(M) : C, [M, C]), N = ne((i) => {
|
|
1529
|
+
M || T(new Set(i)), L == null || L(i);
|
|
1530
|
+
}, [M, L]), ce = ne((i) => s ? s(i) : JSON.stringify(i), [s]), ie = Oe.useMemo(() => {
|
|
1531
|
+
if (!m) return [];
|
|
1532
|
+
const i = [], b = r;
|
|
1533
|
+
return b.forEach((u, o) => {
|
|
1534
|
+
const R = ce(u), J = u == null ? void 0 : u.children;
|
|
1535
|
+
i.push({
|
|
1500
1536
|
record: u,
|
|
1501
|
-
key:
|
|
1537
|
+
key: R,
|
|
1502
1538
|
type: "parent",
|
|
1503
1539
|
depth: 0,
|
|
1504
|
-
indexWithinGroup:
|
|
1505
|
-
groupSize:
|
|
1506
|
-
}),
|
|
1507
|
-
|
|
1508
|
-
record:
|
|
1509
|
-
key:
|
|
1540
|
+
indexWithinGroup: o,
|
|
1541
|
+
groupSize: b.length
|
|
1542
|
+
}), J && J.length > 0 && O.has(R) && J.forEach((I, be) => {
|
|
1543
|
+
i.push({
|
|
1544
|
+
record: I,
|
|
1545
|
+
key: ce(I),
|
|
1510
1546
|
type: "child",
|
|
1511
|
-
parentKey:
|
|
1547
|
+
parentKey: R,
|
|
1512
1548
|
depth: 1,
|
|
1513
|
-
indexWithinGroup:
|
|
1514
|
-
groupSize:
|
|
1549
|
+
indexWithinGroup: be,
|
|
1550
|
+
groupSize: J.length
|
|
1515
1551
|
});
|
|
1516
1552
|
});
|
|
1517
|
-
}),
|
|
1518
|
-
}, [
|
|
1519
|
-
const
|
|
1520
|
-
return
|
|
1521
|
-
}, [
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
const
|
|
1525
|
-
document.querySelectorAll(".radar-table__header-row").forEach((
|
|
1526
|
-
const
|
|
1527
|
-
let
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
}),
|
|
1531
|
-
|
|
1553
|
+
}), i;
|
|
1554
|
+
}, [m, r, ce, O]), se = Oe.useMemo(() => {
|
|
1555
|
+
const i = /* @__PURE__ */ new Map();
|
|
1556
|
+
return ie.forEach((b) => i.set(b.key, b)), i;
|
|
1557
|
+
}, [ie]);
|
|
1558
|
+
Pe(() => {
|
|
1559
|
+
qt && f && (() => {
|
|
1560
|
+
const b = document.querySelectorAll(".radar-table__body-row");
|
|
1561
|
+
document.querySelectorAll(".radar-table__header-row").forEach((o) => {
|
|
1562
|
+
const R = o.querySelectorAll(".radar-table__header-cell-wrapper");
|
|
1563
|
+
let J = 0;
|
|
1564
|
+
R.forEach((I) => {
|
|
1565
|
+
I.style.height = "auto", J = Math.max(J, I.offsetHeight);
|
|
1566
|
+
}), R.forEach((I) => {
|
|
1567
|
+
I.style.height = J + "px";
|
|
1532
1568
|
});
|
|
1533
|
-
}),
|
|
1534
|
-
const
|
|
1535
|
-
let
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
}),
|
|
1539
|
-
|
|
1569
|
+
}), b.forEach((o) => {
|
|
1570
|
+
const R = o.querySelectorAll(".radar-table__body-cell-wrapper");
|
|
1571
|
+
let J = 0;
|
|
1572
|
+
R.forEach((I) => {
|
|
1573
|
+
I.style.height = "auto", J = Math.max(J, I.offsetHeight);
|
|
1574
|
+
}), R.forEach((I) => {
|
|
1575
|
+
I.style.height = J + "px";
|
|
1540
1576
|
});
|
|
1541
1577
|
});
|
|
1542
1578
|
})();
|
|
1543
|
-
}, [r,
|
|
1544
|
-
const re = ((
|
|
1545
|
-
const
|
|
1546
|
-
|
|
1547
|
-
|
|
1579
|
+
}, [r, l]);
|
|
1580
|
+
const re = ((i) => {
|
|
1581
|
+
const b = [], u = (o) => {
|
|
1582
|
+
o.forEach((R) => {
|
|
1583
|
+
R.children && R.children.length > 0 ? u(R.children) : b.push(R);
|
|
1548
1584
|
});
|
|
1549
1585
|
};
|
|
1550
|
-
return u(
|
|
1551
|
-
})(
|
|
1552
|
-
if (
|
|
1553
|
-
return
|
|
1554
|
-
const
|
|
1555
|
-
for (const
|
|
1556
|
-
if (
|
|
1557
|
-
if (
|
|
1558
|
-
return
|
|
1559
|
-
const
|
|
1560
|
-
if (
|
|
1586
|
+
return u(i), b;
|
|
1587
|
+
})(l), le = (i) => {
|
|
1588
|
+
if (i.groupColor)
|
|
1589
|
+
return i.groupColor;
|
|
1590
|
+
const b = (o, R) => {
|
|
1591
|
+
for (const J of o)
|
|
1592
|
+
if (J.children) {
|
|
1593
|
+
if (J.children.some((be) => be.key === R))
|
|
1594
|
+
return J;
|
|
1595
|
+
const I = b(J.children, R);
|
|
1596
|
+
if (I) return I;
|
|
1561
1597
|
}
|
|
1562
1598
|
return null;
|
|
1563
|
-
}, u =
|
|
1599
|
+
}, u = b(l, i.key);
|
|
1564
1600
|
return u == null ? void 0 : u.groupColor;
|
|
1565
|
-
}, he =
|
|
1566
|
-
if (!
|
|
1567
|
-
|
|
1601
|
+
}, he = ne((i, b) => {
|
|
1602
|
+
if (!b) {
|
|
1603
|
+
i.preventDefault();
|
|
1568
1604
|
return;
|
|
1569
1605
|
}
|
|
1570
|
-
|
|
1571
|
-
const u = r.find((
|
|
1606
|
+
_(b), i.dataTransfer.effectAllowed = "move", i.dataTransfer.setData("text/plain", b), document.body.style.cursor = "grabbing";
|
|
1607
|
+
const u = r.find((o) => (s ? s(o) : JSON.stringify(o)) === b);
|
|
1572
1608
|
if (u) {
|
|
1573
|
-
const
|
|
1574
|
-
|
|
1609
|
+
const o = document.createElement("div");
|
|
1610
|
+
o.style.cssText = `
|
|
1575
1611
|
background: white;
|
|
1576
1612
|
border-radius: 6px;
|
|
1577
1613
|
padding: 8px 12px;
|
|
@@ -1585,249 +1621,252 @@ function qt({
|
|
|
1585
1621
|
overflow: hidden;
|
|
1586
1622
|
text-overflow: ellipsis;
|
|
1587
1623
|
`;
|
|
1588
|
-
const
|
|
1589
|
-
if (
|
|
1590
|
-
const
|
|
1591
|
-
|
|
1624
|
+
const R = re[0];
|
|
1625
|
+
if (R) {
|
|
1626
|
+
const I = u[R.key];
|
|
1627
|
+
o.textContent = (I == null ? void 0 : I.toString()) || "Строка";
|
|
1592
1628
|
} else
|
|
1593
|
-
|
|
1594
|
-
document.body.appendChild(
|
|
1595
|
-
const
|
|
1596
|
-
document.body.contains(
|
|
1629
|
+
o.textContent = "Строка";
|
|
1630
|
+
document.body.appendChild(o), o.style.position = "absolute", o.style.top = "-1000px", o.style.left = "-1000px", i.dataTransfer.setDragImage(o, 10, 10);
|
|
1631
|
+
const J = setTimeout(() => {
|
|
1632
|
+
document.body.contains(o) && document.body.removeChild(o);
|
|
1597
1633
|
}, 0);
|
|
1598
|
-
return () => clearTimeout(
|
|
1634
|
+
return () => clearTimeout(J);
|
|
1599
1635
|
}
|
|
1600
|
-
}, []),
|
|
1601
|
-
|
|
1602
|
-
}, []),
|
|
1603
|
-
if (
|
|
1604
|
-
if (!
|
|
1605
|
-
|
|
1636
|
+
}, []), A = ne((i) => {
|
|
1637
|
+
i.preventDefault(), i.dataTransfer.dropEffect = "move";
|
|
1638
|
+
}, []), P = ne((i, b) => {
|
|
1639
|
+
if (i.preventDefault(), !c) return;
|
|
1640
|
+
if (!m) {
|
|
1641
|
+
c !== b && g(b);
|
|
1606
1642
|
return;
|
|
1607
1643
|
}
|
|
1608
|
-
const u =
|
|
1609
|
-
if (!u || !
|
|
1610
|
-
const
|
|
1611
|
-
|
|
1612
|
-
}, [
|
|
1613
|
-
|
|
1614
|
-
}, []),
|
|
1615
|
-
|
|
1616
|
-
}, []),
|
|
1617
|
-
if (
|
|
1644
|
+
const u = se.get(c), o = se.get(b);
|
|
1645
|
+
if (!u || !o) return;
|
|
1646
|
+
const R = u.type === "parent" && o.type === "parent" || u.type === "child" && o.type === "child" && u.parentKey === o.parentKey;
|
|
1647
|
+
g(R && c !== b ? b : null);
|
|
1648
|
+
}, [c, m, se]), q = ne((i) => {
|
|
1649
|
+
i.preventDefault(), g(null);
|
|
1650
|
+
}, []), Q = ne(() => {
|
|
1651
|
+
_(null), g(null), document.body.style.cursor = "";
|
|
1652
|
+
}, []), oe = ne((i, b) => {
|
|
1653
|
+
if (i.preventDefault(), !c || c === b)
|
|
1618
1654
|
return;
|
|
1619
|
-
if (!
|
|
1620
|
-
const
|
|
1621
|
-
if (
|
|
1655
|
+
if (!m) {
|
|
1656
|
+
const R = r.findIndex((pe) => (s ? s(pe) : JSON.stringify(pe)) === c), J = r.findIndex((pe) => (s ? s(pe) : JSON.stringify(pe)) === b);
|
|
1657
|
+
if (R === -1 || J === -1)
|
|
1622
1658
|
return;
|
|
1623
|
-
const
|
|
1624
|
-
|
|
1659
|
+
const I = [...r], [be] = I.splice(R, 1);
|
|
1660
|
+
I.splice(J, 0, be), y == null || y(I), _(null), g(null), document.body.style.cursor = "";
|
|
1625
1661
|
return;
|
|
1626
1662
|
}
|
|
1627
|
-
const u =
|
|
1628
|
-
if (!(!u || !
|
|
1629
|
-
if (u.type === "parent" &&
|
|
1630
|
-
const
|
|
1631
|
-
if (
|
|
1632
|
-
const
|
|
1633
|
-
|
|
1663
|
+
const u = se.get(c), o = se.get(b);
|
|
1664
|
+
if (!(!u || !o)) {
|
|
1665
|
+
if (u.type === "parent" && o.type === "parent") {
|
|
1666
|
+
const R = r.findIndex((pe) => (s ? s(pe) : JSON.stringify(pe)) === u.key), J = r.findIndex((pe) => (s ? s(pe) : JSON.stringify(pe)) === o.key);
|
|
1667
|
+
if (R === -1 || J === -1) return;
|
|
1668
|
+
const I = [...r], [be] = I.splice(R, 1);
|
|
1669
|
+
I.splice(J, 0, be), y == null || y(I), _(null), g(null), document.body.style.cursor = "";
|
|
1634
1670
|
return;
|
|
1635
1671
|
}
|
|
1636
|
-
if (u.type === "child" &&
|
|
1637
|
-
const
|
|
1638
|
-
if (
|
|
1639
|
-
const
|
|
1640
|
-
if (!
|
|
1641
|
-
const
|
|
1642
|
-
if (
|
|
1643
|
-
const
|
|
1644
|
-
if (
|
|
1645
|
-
const
|
|
1646
|
-
return
|
|
1672
|
+
if (u.type === "child" && o.type === "child" && u.parentKey === o.parentKey) {
|
|
1673
|
+
const R = r.findIndex((ve) => (s ? s(ve) : JSON.stringify(ve)) === u.parentKey);
|
|
1674
|
+
if (R === -1) return;
|
|
1675
|
+
const J = r[R], I = J == null ? void 0 : J.children;
|
|
1676
|
+
if (!I || I.length === 0) return;
|
|
1677
|
+
const be = I.findIndex((ve) => (s ? s(ve) : JSON.stringify(ve)) === u.key), pe = I.findIndex((ve) => (s ? s(ve) : JSON.stringify(ve)) === o.key);
|
|
1678
|
+
if (be === -1 || pe === -1) return;
|
|
1679
|
+
const _e = r.map((ve, Ee) => {
|
|
1680
|
+
if (Ee !== R) return ve;
|
|
1681
|
+
const ke = [...I], [Se] = ke.splice(be, 1);
|
|
1682
|
+
return ke.splice(pe, 0, Se), { ...ve, children: ke };
|
|
1647
1683
|
});
|
|
1648
|
-
|
|
1684
|
+
y == null || y(_e), _(null), g(null), document.body.style.cursor = "";
|
|
1649
1685
|
return;
|
|
1650
1686
|
}
|
|
1651
1687
|
}
|
|
1652
|
-
}, [
|
|
1688
|
+
}, [c, r, s, y, m, se]);
|
|
1653
1689
|
if (r.length === 0) {
|
|
1654
|
-
let
|
|
1655
|
-
return
|
|
1690
|
+
let i;
|
|
1691
|
+
return v && (i = ((W = v.current) == null ? void 0 : W.clientWidth) + "px"), /* @__PURE__ */ n.jsx("tbody", { className: `radar-table__body ${j ? j + "__body" : ""} ${X}`, style: K, children: /* @__PURE__ */ n.jsx(
|
|
1656
1692
|
"tr",
|
|
1657
1693
|
{
|
|
1658
|
-
className: `radar-table__body-row ${
|
|
1659
|
-
style:
|
|
1660
|
-
children: /* @__PURE__ */
|
|
1694
|
+
className: `radar-table__body-row ${j ? j + "__body-row" : ""} ${te}`,
|
|
1695
|
+
style: V,
|
|
1696
|
+
children: /* @__PURE__ */ n.jsxs(
|
|
1661
1697
|
"td",
|
|
1662
1698
|
{
|
|
1663
|
-
className: `radar-table__body-cell ${
|
|
1699
|
+
className: `radar-table__body-cell ${j ? j + "__body-cell" : ""} ${d}`,
|
|
1664
1700
|
colSpan: re.length,
|
|
1665
1701
|
style: {
|
|
1666
|
-
|
|
1702
|
+
...$
|
|
1667
1703
|
},
|
|
1668
1704
|
children: [
|
|
1669
|
-
|
|
1670
|
-
!
|
|
1705
|
+
H && H(),
|
|
1706
|
+
!H && /* @__PURE__ */ n.jsx("div", { className: `${i ? "radar-table__body-noData_width" : "radar-table__body-noData"}`, style: { width: i || "" }, children: "Нет данных" })
|
|
1671
1707
|
]
|
|
1672
1708
|
}
|
|
1673
1709
|
)
|
|
1674
1710
|
}
|
|
1675
1711
|
) });
|
|
1676
1712
|
}
|
|
1677
|
-
const
|
|
1678
|
-
record:
|
|
1679
|
-
key: s ? s(
|
|
1713
|
+
const B = m ? ie : r.map((i) => ({
|
|
1714
|
+
record: i,
|
|
1715
|
+
key: s ? s(i) : JSON.stringify(i),
|
|
1680
1716
|
type: "parent",
|
|
1681
1717
|
depth: 0,
|
|
1682
1718
|
indexWithinGroup: 0,
|
|
1683
1719
|
groupSize: r.length
|
|
1684
|
-
})),
|
|
1685
|
-
const
|
|
1686
|
-
|
|
1687
|
-
}, [
|
|
1688
|
-
function
|
|
1689
|
-
var
|
|
1690
|
-
const
|
|
1691
|
-
let
|
|
1692
|
-
D && D.idx.includes(
|
|
1693
|
-
if (!
|
|
1694
|
-
|
|
1720
|
+
})), S = ne((i) => {
|
|
1721
|
+
const b = new Set(O);
|
|
1722
|
+
b.has(i) ? b.delete(i) : b.add(i), N(Array.from(b));
|
|
1723
|
+
}, [O, N]);
|
|
1724
|
+
function Z({ column: i, index: b, row: u, item: o }) {
|
|
1725
|
+
var Le, $e;
|
|
1726
|
+
const R = je(null), [J, I] = ge(0), be = i.fixed && !i.width ? 200 : i.width, pe = i.fixed && !i.minWidth ? 200 : i.minWidth;
|
|
1727
|
+
let _e = !1;
|
|
1728
|
+
D && D.idx.includes(i.dataIndex) && (_e = !0), D && D.idx.length === 0 && (_e = !0), lt(() => {
|
|
1729
|
+
if (!i.fixed) {
|
|
1730
|
+
I(0);
|
|
1695
1731
|
return;
|
|
1696
1732
|
}
|
|
1697
|
-
let Fe =
|
|
1698
|
-
if (
|
|
1699
|
-
for (let Ce = 0; Ce <
|
|
1733
|
+
let Fe = i.fixedLeft || 0;
|
|
1734
|
+
if (b !== 0) {
|
|
1735
|
+
for (let Ce = 0; Ce < b; Ce++)
|
|
1700
1736
|
if (re[Ce].fixed && !re[Ce].hidden) {
|
|
1701
|
-
const
|
|
1702
|
-
Fe += Math.floor(
|
|
1737
|
+
const ze = re[Ce].width || re[Ce].minWidth || 200, Me = Ut(re[Ce].key);
|
|
1738
|
+
Fe += Math.floor(Me ?? ze) - 0.05;
|
|
1703
1739
|
}
|
|
1704
1740
|
}
|
|
1705
|
-
|
|
1706
|
-
}, [
|
|
1707
|
-
const
|
|
1708
|
-
return
|
|
1741
|
+
I(Fe);
|
|
1742
|
+
}, [i.fixed, i.fixedLeft, i.width, b]);
|
|
1743
|
+
const ve = le(i), Ee = b === 0, ke = m && Ee && u.depth > 0 ? u.depth * (U || 16) : void 0, Se = !!(m && u.type === "parent"), we = !!(m && O.has(u.key)), We = !!(m && Se && (o != null && o.children) && o.children.length > 0);
|
|
1744
|
+
return i.hidden ? null : /* @__PURE__ */ n.jsx(
|
|
1709
1745
|
"td",
|
|
1710
1746
|
{
|
|
1711
|
-
ref:
|
|
1712
|
-
className: `radar-table__body-cell ${
|
|
1747
|
+
ref: R,
|
|
1748
|
+
className: `radar-table__body-cell ${j ? j + "__body-cell" : ""} ${d}`,
|
|
1713
1749
|
style: {
|
|
1714
|
-
width:
|
|
1715
|
-
minWidth:
|
|
1716
|
-
position:
|
|
1717
|
-
left:
|
|
1718
|
-
borderRight:
|
|
1719
|
-
cursor:
|
|
1720
|
-
|
|
1750
|
+
width: be,
|
|
1751
|
+
minWidth: pe,
|
|
1752
|
+
position: i.fixed ? "sticky" : "static",
|
|
1753
|
+
left: J,
|
|
1754
|
+
borderRight: i.fixed && !((Le = re[b + 1]) != null && Le.fixed) ? "1px solid #E8E8E8" : "none",
|
|
1755
|
+
cursor: Ee && We ? "pointer" : "default",
|
|
1756
|
+
...$
|
|
1721
1757
|
},
|
|
1722
|
-
onClick:
|
|
1723
|
-
children: /* @__PURE__ */
|
|
1758
|
+
onClick: Ee && We ? () => S(u.key) : void 0,
|
|
1759
|
+
children: /* @__PURE__ */ n.jsxs(
|
|
1724
1760
|
"div",
|
|
1725
1761
|
{
|
|
1726
|
-
className: `radar-table__body-cell-wrapper ${
|
|
1762
|
+
className: `radar-table__body-cell-wrapper ${j ? j + "__body-cell-wrapper" : ""} ${x}`,
|
|
1727
1763
|
style: {
|
|
1728
|
-
backgroundColor:
|
|
1729
|
-
paddingLeft:
|
|
1730
|
-
...
|
|
1764
|
+
backgroundColor: ve || "white",
|
|
1765
|
+
paddingLeft: ke,
|
|
1766
|
+
...F
|
|
1731
1767
|
},
|
|
1732
1768
|
children: [
|
|
1733
|
-
|
|
1769
|
+
Ee && Se && m && (o == null ? void 0 : o.children) && o.children.length > 0 && /* @__PURE__ */ n.jsx(
|
|
1734
1770
|
"button",
|
|
1735
1771
|
{
|
|
1736
1772
|
type: "button",
|
|
1737
|
-
className: `radar-table__expander-btn ${
|
|
1738
|
-
"aria-expanded":
|
|
1739
|
-
onClick: () =>
|
|
1740
|
-
style: { marginRight: 8, background: "transparent", border: "none", transform:
|
|
1741
|
-
title:
|
|
1742
|
-
children:
|
|
1773
|
+
className: `radar-table__expander-btn ${we ? "expanded" : ""}`,
|
|
1774
|
+
"aria-expanded": we,
|
|
1775
|
+
onClick: () => S(u.key),
|
|
1776
|
+
style: { marginRight: 8, background: "transparent", border: "none", transform: we ? "rotate(180deg)" : "rotate(0deg)", transition: "transform 150ms ease" },
|
|
1777
|
+
title: we ? "Свернуть" : "Развернуть",
|
|
1778
|
+
children: G ? G(we, o) : /* @__PURE__ */ n.jsx("svg", { width: "12", height: "8", viewBox: "0 0 12 8", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ n.jsx("path", { d: "M4.99264 6.91705C5.28553 7.20994 5.76041 7.20994 6.0533 6.91705L10.8263 2.14408C11.1192 1.85118 11.1192 1.37631 10.8263 1.08342C10.5334 0.790524 10.0585 0.790524 9.76561 1.08342L6.27297 4.57606L5.5 5.34903L4.77297 4.57606L1.28033 1.08342C0.987437 0.790524 0.512563 0.790524 0.21967 1.08342C-0.0732234 1.37631 -0.0732234 1.85118 0.21967 2.14408L4.99264 6.91705Z", fill: "#8C8C8C" }) })
|
|
1743
1779
|
}
|
|
1744
1780
|
),
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
!
|
|
1781
|
+
_e ? D == null ? void 0 : D.renderer(o[i.dataIndex], o, b, i.dataIndex) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
1782
|
+
i.units && Yt((($e = o[i.key]) == null ? void 0 : $e.toString()) || "", i.units),
|
|
1783
|
+
!i.units && o[i.key]
|
|
1748
1784
|
] })
|
|
1749
1785
|
]
|
|
1750
1786
|
}
|
|
1751
1787
|
)
|
|
1752
1788
|
},
|
|
1753
|
-
|
|
1789
|
+
i.key
|
|
1754
1790
|
);
|
|
1755
1791
|
}
|
|
1756
|
-
return /* @__PURE__ */
|
|
1757
|
-
const
|
|
1758
|
-
return /* @__PURE__ */
|
|
1792
|
+
return /* @__PURE__ */ n.jsx("tbody", { className: `radar-table__body ${j ? j + "__body" : ""} ${X}`, style: K, children: B.map((i) => {
|
|
1793
|
+
const b = i.record, u = i.key;
|
|
1794
|
+
return /* @__PURE__ */ n.jsx(
|
|
1759
1795
|
"tr",
|
|
1760
1796
|
{
|
|
1761
|
-
className: `radar-table__body-row ${
|
|
1762
|
-
style:
|
|
1797
|
+
className: `radar-table__body-row ${j ? j + "__body-row" : ""} ${te} ${c === u ? "dragging" : ""} ${h === u ? "drag-over" : ""} ${m ? i.type === "parent" ? "radar-table__body-row--parent" : "radar-table__body-row--child" : ""}`,
|
|
1798
|
+
style: V,
|
|
1763
1799
|
draggable: t,
|
|
1764
|
-
onDragStart: (
|
|
1765
|
-
onDragOver:
|
|
1766
|
-
onDragEnter: (
|
|
1767
|
-
onDragLeave:
|
|
1768
|
-
onDrop: (
|
|
1769
|
-
onDragEnd:
|
|
1770
|
-
children: re.map((
|
|
1800
|
+
onDragStart: (o) => he(o, u),
|
|
1801
|
+
onDragOver: A,
|
|
1802
|
+
onDragEnter: (o) => P(o, u),
|
|
1803
|
+
onDragLeave: q,
|
|
1804
|
+
onDrop: (o) => oe(o, u),
|
|
1805
|
+
onDragEnd: Q,
|
|
1806
|
+
children: re.map((o, R) => /* @__PURE__ */ n.jsx(Z, { column: o, index: R, row: i, item: b }, o.key))
|
|
1771
1807
|
},
|
|
1772
1808
|
u
|
|
1773
1809
|
);
|
|
1774
1810
|
}) });
|
|
1775
1811
|
}
|
|
1776
|
-
const
|
|
1777
|
-
const
|
|
1778
|
-
|
|
1779
|
-
|
|
1812
|
+
const Gt = Oe.memo(Zt, (t, r) => !(t.dataSource !== r.dataSource || t.config.length !== r.config.length || t.config.some((s, E) => {
|
|
1813
|
+
const y = r.config[E];
|
|
1814
|
+
return y ? s.key !== y.key || s.hidden !== y.hidden || s.dataIndex !== y.dataIndex || s.fixed !== y.fixed || s.sortable !== y.sortable : !0;
|
|
1815
|
+
}) || t.customCellRender !== r.customCellRender || t.expandedRowKeys !== r.expandedRowKeys || t.draggableRows !== r.draggableRows || t.treeMode !== r.treeMode || t.loading !== r.loading || t.preset !== r.preset || t.recalculateRowHeight !== r.recalculateRowHeight)), at = ({ config: t }) => {
|
|
1816
|
+
const [{ current: r, pageSize: l, total: s, onChange: E, showQuickJumper: y, buttonsCount: j = 4, hideOnSinglePage: D = !1 }, m] = ge(t);
|
|
1817
|
+
Pe(() => {
|
|
1818
|
+
m(t);
|
|
1780
1819
|
}, [t]);
|
|
1781
|
-
const
|
|
1782
|
-
const
|
|
1783
|
-
!/^[0-9]$/.test(
|
|
1784
|
-
},
|
|
1785
|
-
if (
|
|
1786
|
-
const
|
|
1787
|
-
|
|
1788
|
-
}
|
|
1789
|
-
},
|
|
1790
|
-
const
|
|
1791
|
-
|
|
1792
|
-
},
|
|
1793
|
-
|
|
1794
|
-
const
|
|
1795
|
-
|
|
1796
|
-
},
|
|
1797
|
-
const
|
|
1798
|
-
|
|
1799
|
-
},
|
|
1800
|
-
|
|
1820
|
+
const M = Math.ceil(r / j), k = (M - 1) * j + 1, L = M * j, U = (d) => {
|
|
1821
|
+
const $ = ["Backspace", "Delete", "ArrowLeft", "ArrowRight", "Tab", "Enter"];
|
|
1822
|
+
!/^[0-9]$/.test(d.key) && !$.includes(d.key) && d.preventDefault();
|
|
1823
|
+
}, G = (d) => {
|
|
1824
|
+
if (d.key === "Enter") {
|
|
1825
|
+
const $ = parseInt(d.currentTarget.value);
|
|
1826
|
+
$ > 0 && $ <= s && (m({ ...t, current: $ }), E == null || E($, l), d.currentTarget.value = "");
|
|
1827
|
+
}
|
|
1828
|
+
}, X = (d) => {
|
|
1829
|
+
const x = d.target.value.replace(/[^0-9]/g, "");
|
|
1830
|
+
d.target.value = x;
|
|
1831
|
+
}, K = (d) => {
|
|
1832
|
+
d.preventDefault();
|
|
1833
|
+
const x = d.clipboardData.getData("text").replace(/[^0-9]/g, ""), F = d.target, H = F.selectionStart || 0, v = F.selectionEnd || 0, f = F.value.substring(0, H) + x + F.value.substring(v);
|
|
1834
|
+
F.value = f, F.setSelectionRange(H + x.length, H + x.length);
|
|
1835
|
+
}, te = (d) => {
|
|
1836
|
+
const $ = d.currentTarget.id;
|
|
1837
|
+
$ === "pagination_left_button" && r > 1 && (m({ ...t, current: r - 1 }), E == null || E(r - 1, l)), $ === "pagination_right_button" && r < s && (m({ ...t, current: r + 1 }), E == null || E(r + 1, l));
|
|
1838
|
+
}, V = (d) => {
|
|
1839
|
+
m({ ...t, current: d }), E == null || E(d, l);
|
|
1801
1840
|
};
|
|
1802
|
-
return D && s <= 1 ? null : /* @__PURE__ */
|
|
1803
|
-
/* @__PURE__ */
|
|
1841
|
+
return D && s <= 1 ? null : /* @__PURE__ */ n.jsxs("div", { className: "radar-table__pagination", children: [
|
|
1842
|
+
/* @__PURE__ */ n.jsxs(
|
|
1804
1843
|
"div",
|
|
1805
1844
|
{
|
|
1806
1845
|
className: "radar-table__pagination-main",
|
|
1807
1846
|
style: {
|
|
1808
|
-
gridTemplateColumns: `repeat(${
|
|
1847
|
+
gridTemplateColumns: `repeat(${j + 2}, 32px)`
|
|
1809
1848
|
},
|
|
1810
1849
|
children: [
|
|
1811
|
-
/* @__PURE__ */
|
|
1812
|
-
Array.from({ length: s }, (
|
|
1813
|
-
const
|
|
1814
|
-
if (
|
|
1815
|
-
return
|
|
1850
|
+
/* @__PURE__ */ n.jsx("button", { className: "radar-table__pagination-button radar-table__pagination-button_control", id: "pagination_left_button", onClick: te, title: "Назад", children: /* @__PURE__ */ n.jsx("svg", { width: "6", height: "10", viewBox: "0 0 6 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ n.jsx("path", { d: "M5 0.544067L1 4.54407L5 8.54407", stroke: "#8C8C8C", strokeLinecap: "round" }) }) }),
|
|
1851
|
+
Array.from({ length: s }, (d, $) => $ + 1).map((d) => {
|
|
1852
|
+
const $ = r === d;
|
|
1853
|
+
if (d >= k && d <= L)
|
|
1854
|
+
return $ ? /* @__PURE__ */ n.jsx("button", { className: "radar-table__pagination-button radar-table__pagination-button_active", children: d }, d) : /* @__PURE__ */ n.jsx("button", { className: "radar-table__pagination-button", onClick: () => V(d), children: d }, d);
|
|
1816
1855
|
}),
|
|
1817
|
-
/* @__PURE__ */
|
|
1856
|
+
/* @__PURE__ */ n.jsx("button", { className: "radar-table__pagination-button radar-table__pagination-button_control", id: "pagination_right_button", onClick: te, title: "Вперёд", children: /* @__PURE__ */ n.jsx("svg", { width: "6", height: "10", viewBox: "0 0 6 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ n.jsx("path", { d: "M1 8.54407L5 4.54407L1 0.544067", stroke: "#8C8C8C", strokeLinecap: "round" }) }) })
|
|
1818
1857
|
]
|
|
1819
1858
|
}
|
|
1820
1859
|
),
|
|
1821
|
-
|
|
1860
|
+
y && /* @__PURE__ */ n.jsxs("div", { className: "radar-table__pagination-quick-jumper", children: [
|
|
1822
1861
|
"Перейти на ",
|
|
1823
|
-
/* @__PURE__ */
|
|
1862
|
+
/* @__PURE__ */ n.jsx(
|
|
1824
1863
|
"input",
|
|
1825
1864
|
{
|
|
1826
1865
|
className: "radar-table__pagination-input",
|
|
1827
|
-
onKeyDown:
|
|
1828
|
-
onChange:
|
|
1829
|
-
onPaste:
|
|
1830
|
-
onKeyUp: (
|
|
1866
|
+
onKeyDown: U,
|
|
1867
|
+
onChange: X,
|
|
1868
|
+
onPaste: K,
|
|
1869
|
+
onKeyUp: (d) => G(d)
|
|
1831
1870
|
}
|
|
1832
1871
|
),
|
|
1833
1872
|
" стр. из ",
|
|
@@ -1835,430 +1874,431 @@ const at = ({ config: t }) => {
|
|
|
1835
1874
|
] })
|
|
1836
1875
|
] });
|
|
1837
1876
|
};
|
|
1838
|
-
function
|
|
1877
|
+
function nr({
|
|
1839
1878
|
dataSource: t,
|
|
1840
1879
|
preset: r,
|
|
1841
|
-
config:
|
|
1880
|
+
config: l,
|
|
1842
1881
|
rowKey: s,
|
|
1843
1882
|
loading: E = !1,
|
|
1844
|
-
pagination:
|
|
1845
|
-
stickyHeader:
|
|
1883
|
+
pagination: y,
|
|
1884
|
+
stickyHeader: j = !1,
|
|
1846
1885
|
resizeable: D = !1,
|
|
1847
|
-
draggableRows:
|
|
1848
|
-
draggableColumns:
|
|
1849
|
-
scrollContainerRef:
|
|
1850
|
-
onResize:
|
|
1851
|
-
onSort:
|
|
1852
|
-
onRowReorder:
|
|
1853
|
-
onColumnReorder:
|
|
1854
|
-
customCellRender:
|
|
1855
|
-
noDataRender:
|
|
1856
|
-
sortIcon:
|
|
1857
|
-
expandIcon:
|
|
1858
|
-
recalculateRowHeight:
|
|
1886
|
+
draggableRows: m = !1,
|
|
1887
|
+
draggableColumns: M = !1,
|
|
1888
|
+
scrollContainerRef: k,
|
|
1889
|
+
onResize: L,
|
|
1890
|
+
onSort: U,
|
|
1891
|
+
onRowReorder: G,
|
|
1892
|
+
onColumnReorder: X,
|
|
1893
|
+
customCellRender: K,
|
|
1894
|
+
noDataRender: te,
|
|
1895
|
+
sortIcon: V,
|
|
1896
|
+
expandIcon: d,
|
|
1897
|
+
recalculateRowHeight: $ = !1,
|
|
1859
1898
|
// sorting props
|
|
1860
|
-
sorting:
|
|
1861
|
-
defaultSorting:
|
|
1899
|
+
sorting: x,
|
|
1900
|
+
defaultSorting: F,
|
|
1862
1901
|
// tree props
|
|
1863
|
-
treeMode:
|
|
1864
|
-
expandedRowKeys:
|
|
1865
|
-
defaultExpandedRowKeys:
|
|
1866
|
-
onExpandedRowsChange:
|
|
1867
|
-
indentSize:
|
|
1868
|
-
className:
|
|
1869
|
-
style:
|
|
1870
|
-
headerClassName:
|
|
1871
|
-
headerStyle:
|
|
1872
|
-
headerCellClassName:
|
|
1873
|
-
headerCellStyle:
|
|
1874
|
-
headerRowClassName:
|
|
1875
|
-
headerRowStyle:
|
|
1876
|
-
headerCellWrapperClassName:
|
|
1877
|
-
headerCellWrapperStyle:
|
|
1902
|
+
treeMode: H,
|
|
1903
|
+
expandedRowKeys: v,
|
|
1904
|
+
defaultExpandedRowKeys: f,
|
|
1905
|
+
onExpandedRowsChange: c,
|
|
1906
|
+
indentSize: _,
|
|
1907
|
+
className: h = "",
|
|
1908
|
+
style: g,
|
|
1909
|
+
headerClassName: C = "",
|
|
1910
|
+
headerStyle: T,
|
|
1911
|
+
headerCellClassName: O = "",
|
|
1912
|
+
headerCellStyle: N,
|
|
1913
|
+
headerRowClassName: ce = "",
|
|
1914
|
+
headerRowStyle: ie,
|
|
1915
|
+
headerCellWrapperClassName: se = "",
|
|
1916
|
+
headerCellWrapperStyle: de,
|
|
1878
1917
|
bodyClassName: re = "",
|
|
1879
|
-
bodyStyle:
|
|
1918
|
+
bodyStyle: le,
|
|
1880
1919
|
bodyRowClassName: he = "",
|
|
1881
|
-
bodyRowStyle:
|
|
1882
|
-
bodyCellClassName:
|
|
1883
|
-
bodyCellStyle:
|
|
1884
|
-
bodyCellWrapperClassName:
|
|
1885
|
-
bodyCellWrapperStyle:
|
|
1886
|
-
headerGroupRowClassName:
|
|
1887
|
-
headerGroupRowStyle:
|
|
1888
|
-
headerGroupCellClassName:
|
|
1889
|
-
headerGroupCellStyle:
|
|
1890
|
-
headerGroupCellWrapperClassName:
|
|
1891
|
-
headerGroupCellWrapperStyle:
|
|
1920
|
+
bodyRowStyle: A,
|
|
1921
|
+
bodyCellClassName: P = "",
|
|
1922
|
+
bodyCellStyle: q,
|
|
1923
|
+
bodyCellWrapperClassName: Q = "",
|
|
1924
|
+
bodyCellWrapperStyle: oe,
|
|
1925
|
+
headerGroupRowClassName: B,
|
|
1926
|
+
headerGroupRowStyle: S,
|
|
1927
|
+
headerGroupCellClassName: Z,
|
|
1928
|
+
headerGroupCellStyle: W,
|
|
1929
|
+
headerGroupCellWrapperClassName: i,
|
|
1930
|
+
headerGroupCellWrapperStyle: b,
|
|
1892
1931
|
paginationContainerClassName: u = "",
|
|
1893
|
-
paginationContainerStyle:
|
|
1894
|
-
resizeThrottle:
|
|
1932
|
+
paginationContainerStyle: o,
|
|
1933
|
+
resizeThrottle: R = 0
|
|
1895
1934
|
}) {
|
|
1896
|
-
return
|
|
1897
|
-
/* @__PURE__ */
|
|
1898
|
-
|
|
1935
|
+
return M ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
1936
|
+
/* @__PURE__ */ n.jsx(
|
|
1937
|
+
Mt,
|
|
1899
1938
|
{
|
|
1900
|
-
fullConfig:
|
|
1901
|
-
onColumnReorder:
|
|
1902
|
-
|
|
1939
|
+
fullConfig: l,
|
|
1940
|
+
onColumnReorder: X,
|
|
1941
|
+
scrollContainerRef: k,
|
|
1942
|
+
children: /* @__PURE__ */ n.jsx(
|
|
1903
1943
|
it,
|
|
1904
1944
|
{
|
|
1905
1945
|
dataSource: t,
|
|
1906
1946
|
preset: r,
|
|
1907
|
-
config:
|
|
1947
|
+
config: l,
|
|
1908
1948
|
rowKey: s,
|
|
1909
1949
|
loading: E,
|
|
1910
|
-
pagination:
|
|
1911
|
-
stickyHeader:
|
|
1950
|
+
pagination: y,
|
|
1951
|
+
stickyHeader: j,
|
|
1912
1952
|
resizeable: D,
|
|
1913
|
-
draggableRows:
|
|
1914
|
-
draggableColumns:
|
|
1915
|
-
scrollContainerRef:
|
|
1916
|
-
onResize:
|
|
1917
|
-
onSort:
|
|
1918
|
-
onRowReorder:
|
|
1919
|
-
onColumnReorder:
|
|
1920
|
-
customCellRender:
|
|
1921
|
-
sortIcon:
|
|
1922
|
-
expandIcon:
|
|
1923
|
-
treeMode:
|
|
1924
|
-
expandedRowKeys:
|
|
1925
|
-
defaultExpandedRowKeys:
|
|
1926
|
-
onExpandedRowsChange:
|
|
1927
|
-
indentSize:
|
|
1928
|
-
className:
|
|
1929
|
-
style:
|
|
1930
|
-
headerClassName:
|
|
1931
|
-
headerStyle:
|
|
1932
|
-
headerCellClassName:
|
|
1933
|
-
headerCellStyle:
|
|
1934
|
-
headerRowClassName:
|
|
1935
|
-
headerRowStyle:
|
|
1936
|
-
headerCellWrapperClassName:
|
|
1937
|
-
headerCellWrapperStyle:
|
|
1953
|
+
draggableRows: m,
|
|
1954
|
+
draggableColumns: M,
|
|
1955
|
+
scrollContainerRef: k,
|
|
1956
|
+
onResize: L,
|
|
1957
|
+
onSort: U,
|
|
1958
|
+
onRowReorder: G,
|
|
1959
|
+
onColumnReorder: X,
|
|
1960
|
+
customCellRender: K,
|
|
1961
|
+
sortIcon: V,
|
|
1962
|
+
expandIcon: d,
|
|
1963
|
+
treeMode: H,
|
|
1964
|
+
expandedRowKeys: v,
|
|
1965
|
+
defaultExpandedRowKeys: f,
|
|
1966
|
+
onExpandedRowsChange: c,
|
|
1967
|
+
indentSize: _,
|
|
1968
|
+
className: h,
|
|
1969
|
+
style: g,
|
|
1970
|
+
headerClassName: C,
|
|
1971
|
+
headerStyle: T,
|
|
1972
|
+
headerCellClassName: O,
|
|
1973
|
+
headerCellStyle: N,
|
|
1974
|
+
headerRowClassName: ce,
|
|
1975
|
+
headerRowStyle: ie,
|
|
1976
|
+
headerCellWrapperClassName: se,
|
|
1977
|
+
headerCellWrapperStyle: de,
|
|
1938
1978
|
bodyClassName: re,
|
|
1939
|
-
bodyStyle:
|
|
1979
|
+
bodyStyle: le,
|
|
1940
1980
|
bodyRowClassName: he,
|
|
1941
|
-
bodyRowStyle:
|
|
1942
|
-
bodyCellClassName:
|
|
1943
|
-
bodyCellStyle:
|
|
1944
|
-
bodyCellWrapperClassName:
|
|
1945
|
-
bodyCellWrapperStyle:
|
|
1946
|
-
headerGroupRowClassName:
|
|
1947
|
-
headerGroupRowStyle:
|
|
1948
|
-
headerGroupCellClassName:
|
|
1949
|
-
headerGroupCellStyle:
|
|
1950
|
-
headerGroupCellWrapperClassName:
|
|
1951
|
-
headerGroupCellWrapperStyle:
|
|
1981
|
+
bodyRowStyle: A,
|
|
1982
|
+
bodyCellClassName: P,
|
|
1983
|
+
bodyCellStyle: q,
|
|
1984
|
+
bodyCellWrapperClassName: Q,
|
|
1985
|
+
bodyCellWrapperStyle: oe,
|
|
1986
|
+
headerGroupRowClassName: B,
|
|
1987
|
+
headerGroupRowStyle: S,
|
|
1988
|
+
headerGroupCellClassName: Z,
|
|
1989
|
+
headerGroupCellStyle: W,
|
|
1990
|
+
headerGroupCellWrapperClassName: i,
|
|
1991
|
+
headerGroupCellWrapperStyle: b,
|
|
1952
1992
|
paginationContainerClassName: u,
|
|
1953
|
-
paginationContainerStyle:
|
|
1954
|
-
noDataRender:
|
|
1955
|
-
recalculateRowHeight:
|
|
1956
|
-
sorting:
|
|
1957
|
-
defaultSorting:
|
|
1958
|
-
resizeThrottle:
|
|
1993
|
+
paginationContainerStyle: o,
|
|
1994
|
+
noDataRender: te,
|
|
1995
|
+
recalculateRowHeight: $,
|
|
1996
|
+
sorting: x,
|
|
1997
|
+
defaultSorting: F,
|
|
1998
|
+
resizeThrottle: R
|
|
1959
1999
|
}
|
|
1960
2000
|
)
|
|
1961
2001
|
}
|
|
1962
2002
|
),
|
|
1963
|
-
/* @__PURE__ */
|
|
1964
|
-
] }) : /* @__PURE__ */
|
|
1965
|
-
/* @__PURE__ */
|
|
2003
|
+
/* @__PURE__ */ n.jsx("div", { className: `radar-table-pagination-container ${u}`, style: o, children: y && /* @__PURE__ */ n.jsx(at, { config: y }) })
|
|
2004
|
+
] }) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
|
2005
|
+
/* @__PURE__ */ n.jsx(
|
|
1966
2006
|
it,
|
|
1967
2007
|
{
|
|
1968
2008
|
dataSource: t,
|
|
1969
2009
|
preset: r,
|
|
1970
|
-
config:
|
|
2010
|
+
config: l,
|
|
1971
2011
|
rowKey: s,
|
|
1972
2012
|
loading: E,
|
|
1973
|
-
pagination:
|
|
1974
|
-
stickyHeader:
|
|
2013
|
+
pagination: y,
|
|
2014
|
+
stickyHeader: j,
|
|
1975
2015
|
resizeable: D,
|
|
1976
|
-
draggableRows:
|
|
1977
|
-
draggableColumns:
|
|
1978
|
-
scrollContainerRef:
|
|
1979
|
-
onResize:
|
|
1980
|
-
onSort:
|
|
1981
|
-
onRowReorder:
|
|
1982
|
-
onColumnReorder:
|
|
1983
|
-
customCellRender:
|
|
1984
|
-
sortIcon:
|
|
1985
|
-
expandIcon:
|
|
1986
|
-
treeMode:
|
|
1987
|
-
expandedRowKeys:
|
|
1988
|
-
defaultExpandedRowKeys:
|
|
1989
|
-
onExpandedRowsChange:
|
|
1990
|
-
indentSize:
|
|
1991
|
-
className:
|
|
1992
|
-
style:
|
|
1993
|
-
headerClassName:
|
|
1994
|
-
headerStyle:
|
|
1995
|
-
headerCellClassName:
|
|
1996
|
-
headerCellStyle:
|
|
1997
|
-
headerRowClassName:
|
|
1998
|
-
headerRowStyle:
|
|
1999
|
-
headerCellWrapperClassName:
|
|
2000
|
-
headerCellWrapperStyle:
|
|
2016
|
+
draggableRows: m,
|
|
2017
|
+
draggableColumns: M,
|
|
2018
|
+
scrollContainerRef: k,
|
|
2019
|
+
onResize: L,
|
|
2020
|
+
onSort: U,
|
|
2021
|
+
onRowReorder: G,
|
|
2022
|
+
onColumnReorder: X,
|
|
2023
|
+
customCellRender: K,
|
|
2024
|
+
sortIcon: V,
|
|
2025
|
+
expandIcon: d,
|
|
2026
|
+
treeMode: H,
|
|
2027
|
+
expandedRowKeys: v,
|
|
2028
|
+
defaultExpandedRowKeys: f,
|
|
2029
|
+
onExpandedRowsChange: c,
|
|
2030
|
+
indentSize: _,
|
|
2031
|
+
className: h,
|
|
2032
|
+
style: g,
|
|
2033
|
+
headerClassName: C,
|
|
2034
|
+
headerStyle: T,
|
|
2035
|
+
headerCellClassName: O,
|
|
2036
|
+
headerCellStyle: N,
|
|
2037
|
+
headerRowClassName: ce,
|
|
2038
|
+
headerRowStyle: ie,
|
|
2039
|
+
headerCellWrapperClassName: se,
|
|
2040
|
+
headerCellWrapperStyle: de,
|
|
2001
2041
|
bodyClassName: re,
|
|
2002
|
-
bodyStyle:
|
|
2042
|
+
bodyStyle: le,
|
|
2003
2043
|
bodyRowClassName: he,
|
|
2004
|
-
bodyRowStyle:
|
|
2005
|
-
bodyCellClassName:
|
|
2006
|
-
bodyCellStyle:
|
|
2007
|
-
bodyCellWrapperClassName:
|
|
2008
|
-
bodyCellWrapperStyle:
|
|
2009
|
-
headerGroupRowClassName:
|
|
2010
|
-
headerGroupRowStyle:
|
|
2011
|
-
headerGroupCellClassName:
|
|
2012
|
-
headerGroupCellStyle:
|
|
2013
|
-
headerGroupCellWrapperClassName:
|
|
2014
|
-
headerGroupCellWrapperStyle:
|
|
2044
|
+
bodyRowStyle: A,
|
|
2045
|
+
bodyCellClassName: P,
|
|
2046
|
+
bodyCellStyle: q,
|
|
2047
|
+
bodyCellWrapperClassName: Q,
|
|
2048
|
+
bodyCellWrapperStyle: oe,
|
|
2049
|
+
headerGroupRowClassName: B,
|
|
2050
|
+
headerGroupRowStyle: S,
|
|
2051
|
+
headerGroupCellClassName: Z,
|
|
2052
|
+
headerGroupCellStyle: W,
|
|
2053
|
+
headerGroupCellWrapperClassName: i,
|
|
2054
|
+
headerGroupCellWrapperStyle: b,
|
|
2015
2055
|
paginationContainerClassName: u,
|
|
2016
|
-
paginationContainerStyle:
|
|
2017
|
-
noDataRender:
|
|
2018
|
-
recalculateRowHeight:
|
|
2019
|
-
sorting:
|
|
2020
|
-
defaultSorting:
|
|
2021
|
-
resizeThrottle:
|
|
2056
|
+
paginationContainerStyle: o,
|
|
2057
|
+
noDataRender: te,
|
|
2058
|
+
recalculateRowHeight: $,
|
|
2059
|
+
sorting: x,
|
|
2060
|
+
defaultSorting: F,
|
|
2061
|
+
resizeThrottle: R
|
|
2022
2062
|
}
|
|
2023
2063
|
),
|
|
2024
|
-
/* @__PURE__ */
|
|
2064
|
+
/* @__PURE__ */ n.jsx("div", { className: `radar-table-pagination-container ${u}`, style: o, children: y && /* @__PURE__ */ n.jsx(at, { config: y }) })
|
|
2025
2065
|
] });
|
|
2026
2066
|
}
|
|
2027
2067
|
function it(t) {
|
|
2028
2068
|
const {
|
|
2029
2069
|
dataSource: r,
|
|
2030
|
-
preset:
|
|
2070
|
+
preset: l,
|
|
2031
2071
|
config: s,
|
|
2032
2072
|
rowKey: E,
|
|
2033
|
-
loading:
|
|
2034
|
-
stickyHeader:
|
|
2073
|
+
loading: y,
|
|
2074
|
+
stickyHeader: j,
|
|
2035
2075
|
resizeable: D,
|
|
2036
|
-
draggableRows:
|
|
2037
|
-
draggableColumns:
|
|
2038
|
-
scrollContainerRef:
|
|
2039
|
-
onResize:
|
|
2040
|
-
onSort:
|
|
2041
|
-
onRowReorder:
|
|
2042
|
-
onColumnReorder:
|
|
2043
|
-
customCellRender:
|
|
2044
|
-
sortIcon:
|
|
2045
|
-
expandIcon:
|
|
2046
|
-
treeMode:
|
|
2047
|
-
expandedRowKeys:
|
|
2048
|
-
defaultExpandedRowKeys:
|
|
2049
|
-
onExpandedRowsChange:
|
|
2050
|
-
indentSize:
|
|
2051
|
-
className:
|
|
2052
|
-
style:
|
|
2053
|
-
headerClassName:
|
|
2054
|
-
headerStyle:
|
|
2055
|
-
headerCellClassName:
|
|
2056
|
-
headerCellStyle:
|
|
2057
|
-
headerRowClassName:
|
|
2058
|
-
headerRowStyle:
|
|
2059
|
-
headerCellWrapperClassName:
|
|
2060
|
-
headerCellWrapperStyle:
|
|
2061
|
-
bodyClassName:
|
|
2062
|
-
bodyStyle:
|
|
2063
|
-
bodyRowClassName:
|
|
2064
|
-
bodyRowStyle:
|
|
2076
|
+
draggableRows: m,
|
|
2077
|
+
draggableColumns: M,
|
|
2078
|
+
scrollContainerRef: k,
|
|
2079
|
+
onResize: L,
|
|
2080
|
+
onSort: U,
|
|
2081
|
+
onRowReorder: G,
|
|
2082
|
+
onColumnReorder: X,
|
|
2083
|
+
customCellRender: K,
|
|
2084
|
+
sortIcon: te,
|
|
2085
|
+
expandIcon: V,
|
|
2086
|
+
treeMode: d,
|
|
2087
|
+
expandedRowKeys: $,
|
|
2088
|
+
defaultExpandedRowKeys: x,
|
|
2089
|
+
onExpandedRowsChange: F,
|
|
2090
|
+
indentSize: H,
|
|
2091
|
+
className: v,
|
|
2092
|
+
style: f,
|
|
2093
|
+
headerClassName: c,
|
|
2094
|
+
headerStyle: _,
|
|
2095
|
+
headerCellClassName: h,
|
|
2096
|
+
headerCellStyle: g,
|
|
2097
|
+
headerRowClassName: C,
|
|
2098
|
+
headerRowStyle: T,
|
|
2099
|
+
headerCellWrapperClassName: O,
|
|
2100
|
+
headerCellWrapperStyle: N,
|
|
2101
|
+
bodyClassName: ce,
|
|
2102
|
+
bodyStyle: ie,
|
|
2103
|
+
bodyRowClassName: se,
|
|
2104
|
+
bodyRowStyle: de,
|
|
2065
2105
|
bodyCellClassName: re,
|
|
2066
|
-
bodyCellStyle:
|
|
2106
|
+
bodyCellStyle: le,
|
|
2067
2107
|
bodyCellWrapperClassName: he,
|
|
2068
|
-
bodyCellWrapperStyle:
|
|
2069
|
-
headerGroupRowClassName:
|
|
2070
|
-
headerGroupRowStyle:
|
|
2071
|
-
headerGroupCellClassName:
|
|
2072
|
-
headerGroupCellStyle:
|
|
2073
|
-
headerGroupCellWrapperClassName:
|
|
2074
|
-
headerGroupCellWrapperStyle:
|
|
2075
|
-
noDataRender:
|
|
2076
|
-
recalculateRowHeight:
|
|
2077
|
-
sorting:
|
|
2078
|
-
defaultSorting:
|
|
2108
|
+
bodyCellWrapperStyle: A,
|
|
2109
|
+
headerGroupRowClassName: P,
|
|
2110
|
+
headerGroupRowStyle: q,
|
|
2111
|
+
headerGroupCellClassName: Q,
|
|
2112
|
+
headerGroupCellStyle: oe,
|
|
2113
|
+
headerGroupCellWrapperClassName: B,
|
|
2114
|
+
headerGroupCellWrapperStyle: S,
|
|
2115
|
+
noDataRender: Z,
|
|
2116
|
+
recalculateRowHeight: W,
|
|
2117
|
+
sorting: i,
|
|
2118
|
+
defaultSorting: b,
|
|
2079
2119
|
resizeThrottle: u
|
|
2080
2120
|
} = t;
|
|
2081
|
-
return /* @__PURE__ */
|
|
2082
|
-
/* @__PURE__ */
|
|
2083
|
-
|
|
2121
|
+
return /* @__PURE__ */ n.jsxs("table", { className: `radar-table ${l || ""} ${v}`, style: f, children: [
|
|
2122
|
+
/* @__PURE__ */ n.jsx(
|
|
2123
|
+
Jt,
|
|
2084
2124
|
{
|
|
2085
|
-
draggableColumns:
|
|
2125
|
+
draggableColumns: M,
|
|
2086
2126
|
config: s,
|
|
2087
|
-
onSort:
|
|
2127
|
+
onSort: U,
|
|
2088
2128
|
resizeable: D,
|
|
2089
|
-
onResize:
|
|
2090
|
-
sortIcon:
|
|
2091
|
-
preset:
|
|
2092
|
-
headerClassName:
|
|
2093
|
-
headerStyle:
|
|
2094
|
-
headerRowClassName:
|
|
2095
|
-
headerRowStyle:
|
|
2096
|
-
headerCellClassName:
|
|
2097
|
-
headerCellStyle:
|
|
2098
|
-
headerCellWrapperClassName:
|
|
2099
|
-
headerCellWrapperStyle:
|
|
2100
|
-
headerGroupRowClassName:
|
|
2101
|
-
headerGroupRowStyle:
|
|
2102
|
-
headerGroupCellClassName:
|
|
2103
|
-
headerGroupCellStyle:
|
|
2104
|
-
headerGroupCellWrapperClassName:
|
|
2105
|
-
headerGroupCellWrapperStyle:
|
|
2106
|
-
stickyHeader:
|
|
2107
|
-
scrollContainerRef:
|
|
2108
|
-
onColumnReorder:
|
|
2109
|
-
sorting:
|
|
2110
|
-
defaultSorting:
|
|
2129
|
+
onResize: L,
|
|
2130
|
+
sortIcon: te,
|
|
2131
|
+
preset: l,
|
|
2132
|
+
headerClassName: c,
|
|
2133
|
+
headerStyle: _,
|
|
2134
|
+
headerRowClassName: C,
|
|
2135
|
+
headerRowStyle: T,
|
|
2136
|
+
headerCellClassName: h,
|
|
2137
|
+
headerCellStyle: g,
|
|
2138
|
+
headerCellWrapperClassName: O,
|
|
2139
|
+
headerCellWrapperStyle: N,
|
|
2140
|
+
headerGroupRowClassName: P,
|
|
2141
|
+
headerGroupRowStyle: q,
|
|
2142
|
+
headerGroupCellClassName: Q,
|
|
2143
|
+
headerGroupCellStyle: oe,
|
|
2144
|
+
headerGroupCellWrapperClassName: B,
|
|
2145
|
+
headerGroupCellWrapperStyle: S,
|
|
2146
|
+
stickyHeader: j,
|
|
2147
|
+
scrollContainerRef: k,
|
|
2148
|
+
onColumnReorder: X,
|
|
2149
|
+
sorting: i,
|
|
2150
|
+
defaultSorting: b,
|
|
2111
2151
|
resizeThrottle: u
|
|
2112
2152
|
}
|
|
2113
2153
|
),
|
|
2114
|
-
/* @__PURE__ */
|
|
2115
|
-
|
|
2154
|
+
/* @__PURE__ */ n.jsx(
|
|
2155
|
+
Gt,
|
|
2116
2156
|
{
|
|
2117
|
-
draggableRows:
|
|
2118
|
-
onRowReorder:
|
|
2157
|
+
draggableRows: m,
|
|
2158
|
+
onRowReorder: G,
|
|
2119
2159
|
dataSource: r,
|
|
2120
2160
|
config: s,
|
|
2121
2161
|
rowKey: E,
|
|
2122
|
-
loading:
|
|
2123
|
-
preset:
|
|
2124
|
-
customCellRender:
|
|
2125
|
-
expandIcon:
|
|
2126
|
-
treeMode:
|
|
2127
|
-
expandedRowKeys:
|
|
2128
|
-
defaultExpandedRowKeys:
|
|
2129
|
-
onExpandedRowsChange:
|
|
2130
|
-
indentSize:
|
|
2131
|
-
bodyClassName:
|
|
2132
|
-
bodyStyle:
|
|
2133
|
-
bodyRowClassName:
|
|
2134
|
-
bodyRowStyle:
|
|
2162
|
+
loading: y,
|
|
2163
|
+
preset: l,
|
|
2164
|
+
customCellRender: K,
|
|
2165
|
+
expandIcon: V,
|
|
2166
|
+
treeMode: d,
|
|
2167
|
+
expandedRowKeys: $,
|
|
2168
|
+
defaultExpandedRowKeys: x,
|
|
2169
|
+
onExpandedRowsChange: F,
|
|
2170
|
+
indentSize: H,
|
|
2171
|
+
bodyClassName: ce,
|
|
2172
|
+
bodyStyle: ie,
|
|
2173
|
+
bodyRowClassName: se,
|
|
2174
|
+
bodyRowStyle: de,
|
|
2135
2175
|
bodyCellClassName: re,
|
|
2136
|
-
bodyCellStyle:
|
|
2176
|
+
bodyCellStyle: le,
|
|
2137
2177
|
bodyCellWrapperClassName: he,
|
|
2138
|
-
bodyCellWrapperStyle:
|
|
2139
|
-
noDataRender:
|
|
2140
|
-
scrollContainerRef:
|
|
2141
|
-
recalculateRowHeight:
|
|
2178
|
+
bodyCellWrapperStyle: A,
|
|
2179
|
+
noDataRender: Z,
|
|
2180
|
+
scrollContainerRef: k,
|
|
2181
|
+
recalculateRowHeight: W
|
|
2142
2182
|
}
|
|
2143
2183
|
)
|
|
2144
2184
|
] });
|
|
2145
2185
|
}
|
|
2146
|
-
const
|
|
2186
|
+
const st = ({ children: t, tagType: r = "h1", ...l }) => {
|
|
2147
2187
|
if (r === "h1")
|
|
2148
|
-
return /* @__PURE__ */
|
|
2188
|
+
return /* @__PURE__ */ n.jsx(
|
|
2149
2189
|
"h1",
|
|
2150
2190
|
{
|
|
2151
2191
|
className: "radar-title radar-title_h1",
|
|
2152
|
-
...
|
|
2192
|
+
...l,
|
|
2153
2193
|
children: t
|
|
2154
2194
|
}
|
|
2155
2195
|
);
|
|
2156
2196
|
if (r === "h2")
|
|
2157
|
-
return /* @__PURE__ */
|
|
2197
|
+
return /* @__PURE__ */ n.jsx(
|
|
2158
2198
|
"h2",
|
|
2159
2199
|
{
|
|
2160
2200
|
className: "radar-title radar-title_h1",
|
|
2161
|
-
...
|
|
2201
|
+
...l,
|
|
2162
2202
|
children: t
|
|
2163
2203
|
}
|
|
2164
2204
|
);
|
|
2165
2205
|
if (r === "h3")
|
|
2166
|
-
return /* @__PURE__ */
|
|
2206
|
+
return /* @__PURE__ */ n.jsx(
|
|
2167
2207
|
"h3",
|
|
2168
2208
|
{
|
|
2169
2209
|
className: "radar-title radar-title_h1",
|
|
2170
|
-
...
|
|
2210
|
+
...l,
|
|
2171
2211
|
children: t
|
|
2172
2212
|
}
|
|
2173
2213
|
);
|
|
2174
2214
|
if (r === "h4")
|
|
2175
|
-
return /* @__PURE__ */
|
|
2215
|
+
return /* @__PURE__ */ n.jsx(
|
|
2176
2216
|
"h4",
|
|
2177
2217
|
{
|
|
2178
2218
|
className: "radar-title radar-title_h1",
|
|
2179
|
-
...
|
|
2219
|
+
...l,
|
|
2180
2220
|
children: t
|
|
2181
2221
|
}
|
|
2182
2222
|
);
|
|
2183
2223
|
if (r === "h5")
|
|
2184
|
-
return /* @__PURE__ */
|
|
2224
|
+
return /* @__PURE__ */ n.jsx(
|
|
2185
2225
|
"h5",
|
|
2186
2226
|
{
|
|
2187
2227
|
className: "radar-title radar-title_h1",
|
|
2188
|
-
...
|
|
2228
|
+
...l,
|
|
2189
2229
|
children: t
|
|
2190
2230
|
}
|
|
2191
2231
|
);
|
|
2192
2232
|
if (r === "h6")
|
|
2193
|
-
return /* @__PURE__ */
|
|
2233
|
+
return /* @__PURE__ */ n.jsx(
|
|
2194
2234
|
"h6",
|
|
2195
2235
|
{
|
|
2196
2236
|
className: "radar-title radar-title_h1",
|
|
2197
|
-
...
|
|
2237
|
+
...l,
|
|
2198
2238
|
children: t
|
|
2199
2239
|
}
|
|
2200
2240
|
);
|
|
2201
|
-
},
|
|
2241
|
+
}, Xt = ({ children: t, tagType: r = "h2", ...l }) => {
|
|
2202
2242
|
if (r === "h1")
|
|
2203
|
-
return /* @__PURE__ */
|
|
2243
|
+
return /* @__PURE__ */ n.jsx(
|
|
2204
2244
|
"h1",
|
|
2205
2245
|
{
|
|
2206
2246
|
className: "radar-title radar-title_h2",
|
|
2207
|
-
...
|
|
2247
|
+
...l,
|
|
2208
2248
|
children: t
|
|
2209
2249
|
}
|
|
2210
2250
|
);
|
|
2211
2251
|
if (r === "h2")
|
|
2212
|
-
return /* @__PURE__ */
|
|
2252
|
+
return /* @__PURE__ */ n.jsx(
|
|
2213
2253
|
"h2",
|
|
2214
2254
|
{
|
|
2215
2255
|
className: "radar-title radar-title_h2",
|
|
2216
|
-
...
|
|
2256
|
+
...l,
|
|
2217
2257
|
children: t
|
|
2218
2258
|
}
|
|
2219
2259
|
);
|
|
2220
2260
|
if (r === "h3")
|
|
2221
|
-
return /* @__PURE__ */
|
|
2261
|
+
return /* @__PURE__ */ n.jsx(
|
|
2222
2262
|
"h3",
|
|
2223
2263
|
{
|
|
2224
2264
|
className: "radar-title radar-title_h2",
|
|
2225
|
-
...
|
|
2265
|
+
...l,
|
|
2226
2266
|
children: t
|
|
2227
2267
|
}
|
|
2228
2268
|
);
|
|
2229
2269
|
if (r === "h4")
|
|
2230
|
-
return /* @__PURE__ */
|
|
2270
|
+
return /* @__PURE__ */ n.jsx(
|
|
2231
2271
|
"h4",
|
|
2232
2272
|
{
|
|
2233
2273
|
className: "radar-title radar-title_h2",
|
|
2234
|
-
...
|
|
2274
|
+
...l,
|
|
2235
2275
|
children: t
|
|
2236
2276
|
}
|
|
2237
2277
|
);
|
|
2238
2278
|
if (r === "h5")
|
|
2239
|
-
return /* @__PURE__ */
|
|
2279
|
+
return /* @__PURE__ */ n.jsx(
|
|
2240
2280
|
"h5",
|
|
2241
2281
|
{
|
|
2242
2282
|
className: "radar-title radar-title_h2",
|
|
2243
|
-
...
|
|
2283
|
+
...l,
|
|
2244
2284
|
children: t
|
|
2245
2285
|
}
|
|
2246
2286
|
);
|
|
2247
2287
|
if (r === "h6")
|
|
2248
|
-
return /* @__PURE__ */
|
|
2288
|
+
return /* @__PURE__ */ n.jsx(
|
|
2249
2289
|
"h6",
|
|
2250
2290
|
{
|
|
2251
2291
|
className: "radar-title radar-title_h2",
|
|
2252
|
-
...
|
|
2292
|
+
...l,
|
|
2253
2293
|
children: t
|
|
2254
2294
|
}
|
|
2255
2295
|
);
|
|
2256
|
-
},
|
|
2296
|
+
}, ar = Object.assign(st, { H1: st, H2: Xt }), ot = ({ children: t, fontStyle: r = "medium", ...l }) => /* @__PURE__ */ n.jsx("p", { className: `radar-text radar-text_m radar-text_${r}`, ...l, children: t }), Qt = ({ children: t, fontStyle: r = "medium", ...l }) => /* @__PURE__ */ n.jsx("p", { className: `radar-text radar-text_s radar-text_${r}`, ...l, children: t }), ir = Object.assign(ot, { M: ot, S: Qt });
|
|
2257
2297
|
export {
|
|
2258
|
-
|
|
2298
|
+
Ht as HeaderCell,
|
|
2259
2299
|
at as Pagination,
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2300
|
+
ir as RadarText,
|
|
2301
|
+
ar as RadarTitle,
|
|
2302
|
+
nr as Table,
|
|
2263
2303
|
At as Tooltip
|
|
2264
2304
|
};
|