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