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