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