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