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