radar-ui 1.1.32 → 1.1.34
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/HeaderRow.d.ts +1 -3
- package/dist/components/Table/HeaderRow.d.ts.map +1 -1
- package/dist/components/Table/Resizer.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/TableBody.d.ts +3 -2
- package/dist/components/Table/TableBody.d.ts.map +1 -1
- package/dist/index.js +2284 -1596
- package/dist/types/index.d.ts +6 -0
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +3 -2
package/dist/index.js
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
|
|
2
2
|
(function() {
|
|
3
3
|
const style = document.createElement('style');
|
|
4
|
-
style.textContent = ".radar-table-container{display:flex;flex-direction:column;gap:16px;position:relative}.radar-table{width:100%;border-collapse:separate;border-spacing:0;font-family:inherit;overflow:clip;scroll-snap-type:x mandatory;scroll-behavior:smooth;table-layout:auto;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.radar-table-default{border-radius:12px;background-color:#fff}.radar-table-pagination-container{position:sticky;bottom:-16px;left:0;background-color:#fff;padding:16px;border-top:1px solid #E8E8E8;width:100%}.radar-table *,.radar-table *:before,.radar-table *:after{box-sizing:border-box}@-moz-document url-prefix(){.radar-table{border-collapse:separate;border-spacing:0}.radar-table__body-row{box-sizing:border-box}.radar-table__body-cell{vertical-align:top;box-sizing:border-box}.radar-table__body-cell-wrapper,.radar-table__header-cell-wrapper{display:flex!important;align-items:center!important;box-sizing:border-box!important;padding:9px 12px!important;height:1px;min-height:32px;vertical-align:top}.radar-table-default__body-cell-wrapper,.radar-table-simple__body-cell-wrapper{line-height:1!important;padding:9px 12px!important;font-size:14px!important}.radar-table-default__header-cell-wrapper{padding:9px 12px!important}.radar-table-simple__header-cell-wrapper{padding:20px 10px!important}}.radar-table__header{text-align:left;z-index:1}.radar-table-default__header{background-color:#f7f6fe}.radar-table-simple__header{background-color:#fff}.radar-table__header-group-cell{scroll-snap-align:start}.radar-table-simple__header-group-cell{font-family:inherit;font-weight:700;font-size:18px;line-height:1.2;letter-spacing:0%;color:#1a1a1a;box-sizing:border-box;vertical-align:top}.radar-table__header-group-cell-wrapper{width:100%}.radar-table-simple__header-group-cell-wrapper{padding:12px 10px;display:flex;gap:8px;align-items:center;box-sizing:border-box;min-height:44px}.radar-table__header-cell{scroll-snap-align:start;box-sizing:border-box}.radar-table-default__header-cell{font-family:Manrope,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen;font-weight:500!important;font-size:14px;line-height:100%;letter-spacing:0%;color:#8c8c8c;background-color:#f7f6fe;box-sizing:border-box}.radar-table-simple__header-cell{font-weight:500!important;font-size:16px;line-height:1.2;letter-spacing:0%;color:#8c8c8c;background-color:#fff;box-sizing:border-box;vertical-align:top}.radar-table-default__header-cell:first-child{border-top-left-radius:12px;border-bottom-left-radius:12px}.radar-table-default__header-cell:last-child{border-top-right-radius:12px;border-bottom-right-radius:12px}.radar-table__header-cell-wrapper{width:100%;position:relative;box-sizing:border-box;padding-right:25px!important}.radar-table__header-cell-wrapper:hover .radar-table__resize-button{opacity:1}.radar-table__header-cell-wrapper:hover{width:100%;position:relative;box-sizing:border-box;padding-right:25px!important}.radar-table-default__header-cell-wrapper{padding:9px 12px;display:flex;gap:8px;align-items:center;box-sizing:border-box}.radar-table-simple__header-cell-wrapper{padding:20px 10px;display:flex;gap:8px;align-items:center;box-sizing:border-box;min-height:60px}.radar-table__header-cell-text-wrapper{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-overflow:ellipsis}.radar-table__sort-button-wrapper{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}.radar-table__sort-button{border:none;background-color:transparent;color:inherit;cursor:pointer;font-size:inherit;display:flex;align-items:center;justify-content:center;transition:all .2s ease}.radar-table__sort-button svg{width:1em;height:1em}.radar-table__sort-button:hover{opacity:.75}.radar-table__drag-handle{display:flex;align-items:center;justify-content:center;cursor:move;opacity:.5;transition:opacity .2s ease;padding:2px;margin-right:4px}.radar-table__drag-handle:hover{opacity:.8}.radar-table__drag-handle.dragging{opacity:1}.radar-table__header-cell.dragging{opacity:.5;transform:rotate(2deg);z-index:1000}.radar-table__header-cell.drag-over.valid-drop-zone,.radar-table__header-cell.drag-over.invalid-drop-zone{transition:all .2s ease;z-index:1000}.radar-table__drag-handle{cursor:grab;transition:transform .2s ease}.radar-table__drag-handle:hover{transform:scale(1.1)}.radar-table__drag-handle.dragging{cursor:grabbing}.radar-table__header-cell.group-header{cursor:default!important}.radar-table__header-cell.group-header{cursor:grab}.radar-table__header-cell.group-header.dragging{cursor:grabbing}.radar-table__body-row[draggable=true]{user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.radar-table__body-row.dragging{opacity:.25;cursor:grabbing;border-radius:20px}.radar-table__body-row.drag-over{border-top:2px solid #5329FF!important}.radar-table__body-row[draggable=true]{cursor:grab}.radar-table__body-row[draggable=true]:active{cursor:grabbing}.radar-table__body-cell{scroll-snap-align:start;box-sizing:border-box;vertical-align:top}.radar-table-default__body-cell,.radar-table-simple__body-cell{height:1px}.radar-table__body-cell-wrapper{width:100%;height:100%;font-family:inherit;background-color:#fff;display:flex;align-items:center}.radar-table__expander-btn{width:16px;height:16px;display:inline-flex;align-items:center;justify-content:center;padding:0;line-height:16px;font-size:12px;color:#1a1a1a;cursor:pointer;transition:transform .15s ease}.radar-table__expander-btn:focus{outline:none}.radar-table-default__body-cell-wrapper{padding:7px 12px;display:flex;gap:8px;border-bottom:1px solid #E8E8E8;font-weight:500;font-size:14px;line-height:1.2;letter-spacing:0%;color:#1a1a1a;box-sizing:border-box;align-items:center}.radar-table-simple__body-cell-wrapper{padding:18px 12px;display:flex;gap:8px;border-bottom:1px solid #E8E8E8;font-weight:500;font-size:16px;line-height:1.2;letter-spacing:0%;color:#1a1a1a;box-sizing:border-box;align-items:center}.radar-table-default__body-row:last-of-type .radar-table-default__body-cell-wrapper{border-bottom:none}.radar-table-simple__body-row:last-of-type .radar-table-simple__body-cell-wrapper{border-bottom:none}.radar-table__body-noData{padding:18px 12px;display:flex;align-items:center;font-size:16px;line-height:1.2;width:100%}.radar-table__body-noData_width{padding:18px 12px;display:flex;justify-content:center;align-items:center;font-size:16px;line-height:1.2}.radar-table__body-cell-wrapper--stretch,.radar-table-default__body-cell-wrapper--stretch,.radar-table-simple__body-cell-wrapper--stretch{align-items:stretch!important}.radar-table__body-cell-wrapper .salary-cell,.radar-table-default__body-cell-wrapper .salary-cell,.radar-table-simple__body-cell-wrapper .salary-cell{width:100%;height:auto;min-height:auto}.radar-table__custom-content-wrapper{width:100%;height:auto;min-height:100%}.radar-table__footer{pointer-events:auto}.radar-table__footer.resizing{pointer-events:none}.radar-table-default__footer,.radar-table-simple__footer{background-color:#fff}.radar-table-default__footer-cell,.radar-table-simple__footer-cell{border-top:1px solid #E8E8E8}.radar-table__footer-cell-wrapper{width:100%;font-family:inherit}.radar-table-default__footer-cell-wrapper,.radar-table-simple__footer-cell-wrapper{padding:12px 0;display:flex;gap:8px}.radar-table__resize-button{opacity:0;position:absolute;right:0;top:50%;transform:translateY(-50%);height:32px;width:20px;padding-right:6px;background-color:transparent;cursor:col-resize;border:none;display:flex;justify-content:flex-end;align-items:center;transition:all .2s cubic-bezier(.4,0,.2,1)}.radar-table__resize-button:hover{cursor:col-resize!important}.radar-table__resize-button div{background-color:#8c8c8c;width:2px;height:50%;opacity:1;transition:all .3s cubic-bezier(.4,0,.2,1);border-radius:1px}.radar-table__resize-button:hover div{opacity:.5}.radar-table__resize-button:active div{background-color:#5329ff80;opacity:0}.radar-table__resize-line{position:fixed;width:2px;background-color:#5329ff80;z-index:9999;pointer-events:none;opacity:.5;will-change:transform;transform:translateZ(0);backface-visibility:hidden}.radar-table__pagination{display:flex;align-items:center;gap:24px}.radar-table__pagination-main{display:grid;grid-template-rows:32px;gap:4px}.radar-table__pagination-button{width:100%;height:100%;max-width:32px;max-height:32px;border-radius:8px;border:none;cursor:pointer;background-color:#f7f7f7;font-family:inherit;font-weight:500;font-size:14px;line-height:100%;letter-spacing:0%;color:#8c8c8c;opacity:1;transition:all .2s ease;display:flex;align-items:center;justify-content:center;border:1px solid #F7F7F7}.radar-table__pagination-button_active{color:#5329ff;background-color:#eeeaff;border:1px solid #5329FF}.radar-table__pagination-button_control{background-color:transparent;border:none}.radar-table__pagination-button_control:hover{background-color:#f7f7f7}.radar-table__pagination-button:hover{opacity:.75}.radar-table__pagination-quick-jumper{display:flex;align-items:center;gap:8px;font-family:inherit;font-weight:500;font-style:Medium;font-size:14px;line-height:100%;letter-spacing:0%;color:#1a1a1a}.radar-table__pagination-input{width:32px;height:32px;border-radius:8px;border:1px solid #F7F7F7;background-color:#f7f7f7;font-family:inherit;font-weight:500;font-size:14px;line-height:100%;letter-spacing:0%;color:#5329ff;background-color:#eeeaff;text-align:center;outline:none;border:none}.radar-table__tooltip-button{border:none;display:flex;align-items:center;justify-content:center;background-color:transparent;color:inherit;cursor:pointer;font-size:inherit;position:relative}.radar-table__tooltip-button:hover{color:#5329ff}.radar-table__tooltip-text{position:absolute;top:calc(100% + 10px);left:0;background-color:#fff;padding:8px;width:250px;transform:scale(0);opacity:0;transition:all .2s ease;transform-origin:top left;border-radius:8px;box-shadow:0 0 20px #00000014;white-space:pre-line;text-align:left;font-family:inherit;font-weight:500;font-size:14px;line-height:100%;letter-spacing:0%;color:#1a1a1a;z-index:1000}.radar-table__tooltip-text_visible{transform:scale(1);opacity:1}.radar-table__tooltip-text--right{left:auto!important;right:0!important;transform-origin:top right!important}.radar-table__tooltip-text--right.radar-table__tooltip-text_visible{transform:scale(1)!important}.radar-table__drag-handle{height:20px;cursor:grab;border-radius:4px;border:none}.radar-title{font-family:Manrope,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen;color:#1a1a1a;margin:0;padding:0}.radar-title_h1{font-size:22px;font-weight:600;line-height:100%;letter-spacing:0%}.radar-title_h2{font-size:18px;font-weight:600;line-height:100%;letter-spacing:0%}.radar-text{font-family:Manrope,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen;color:#1a1a1a;margin:0;padding:0}.radar-text_m{font-size:14px}.radar-text_s{font-size:12px}.radar-text_medium{font-weight:500}.radar-text_semibold{font-weight:600}.radar-text_bold{font-weight:700}\n";
|
|
4
|
+
style.textContent = ".radar-table-container{display:flex;flex-direction:column;gap:16px;position:relative}.radar-table{width:100%;border-collapse:separate;border-spacing:0;font-family:inherit;overflow:clip;scroll-snap-type:x mandatory;scroll-behavior:smooth;table-layout:auto;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}.radar-table-default{border-radius:12px;background-color:#fff}.radar-table-pagination-container{position:sticky;bottom:-16px;left:0;background-color:#fff;padding:16px;border-top:1px solid #E8E8E8;width:100%}.radar-table *,.radar-table *:before,.radar-table *:after{box-sizing:border-box}@-moz-document url-prefix(){.radar-table{border-collapse:separate;border-spacing:0}.radar-table__body-row{box-sizing:border-box}.radar-table__body-cell{vertical-align:top;box-sizing:border-box}.radar-table__body-cell-wrapper,.radar-table__header-cell-wrapper{display:flex!important;align-items:center!important;box-sizing:border-box!important;padding:9px 12px!important;height:1px;min-height:32px;vertical-align:top}.radar-table-default__body-cell-wrapper,.radar-table-simple__body-cell-wrapper{line-height:1!important;padding:9px 12px!important;font-size:14px!important}.radar-table-default__header-cell-wrapper{padding:9px 12px!important}.radar-table-simple__header-cell-wrapper{padding:20px 10px!important}}.radar-table__header{text-align:left;z-index:1}.radar-table-default__header{background-color:#f7f6fe}.radar-table-simple__header{background-color:#fff}.radar-table__header-group-cell{scroll-snap-align:start}.radar-table-simple__header-group-cell{font-family:inherit;font-weight:700;font-size:18px;line-height:1.2;letter-spacing:0%;color:#1a1a1a;box-sizing:border-box;vertical-align:top}.radar-table__header-group-cell-wrapper{width:100%}.radar-table-simple__header-group-cell-wrapper{padding:12px 10px;display:flex;gap:8px;align-items:center;box-sizing:border-box;min-height:44px}.radar-table__header-cell{scroll-snap-align:start;box-sizing:border-box}.radar-table-default__header-cell{font-family:Manrope,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen;font-weight:500!important;font-size:14px;line-height:100%;letter-spacing:0%;color:#8c8c8c;background-color:#f7f6fe;box-sizing:border-box}.radar-table-simple__header-cell{font-weight:500!important;font-size:16px;line-height:1.2;letter-spacing:0%;color:#8c8c8c;background-color:#fff;box-sizing:border-box;vertical-align:top}.radar-table-default__header-cell:first-child{border-top-left-radius:12px;border-bottom-left-radius:12px}.radar-table-default__header-cell:last-child{border-top-right-radius:12px;border-bottom-right-radius:12px}.radar-table__header-cell-wrapper{width:100%;position:relative;box-sizing:border-box;padding-right:25px!important}.radar-table__header-cell-wrapper:hover .radar-table__resize-button{opacity:1}.radar-table__header-cell-wrapper:hover{width:100%;position:relative;box-sizing:border-box;padding-right:25px!important}.radar-table-default__header-cell-wrapper{padding:9px 12px;display:flex;gap:8px;align-items:center;box-sizing:border-box}.radar-table-simple__header-cell-wrapper{padding:20px 10px;display:flex;gap:8px;align-items:center;box-sizing:border-box;min-height:60px}.radar-table__header-cell-text-wrapper{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-overflow:ellipsis}.radar-table__sort-button-wrapper{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px}.radar-table__sort-button{border:none;background-color:transparent;color:inherit;cursor:pointer;font-size:inherit;display:flex;align-items:center;justify-content:center;transition:all .2s ease}.radar-table__sort-button svg{width:1em;height:1em}.radar-table__sort-button:hover{opacity:.75}.radar-table__drag-handle{display:flex;align-items:center;justify-content:center;cursor:move;opacity:.5;transition:opacity .2s ease;padding:2px;margin-right:4px}.radar-table__drag-handle:hover{opacity:.8}.radar-table__drag-handle.dragging{opacity:1}.radar-table__header-cell.dragging{opacity:.5;transform:rotate(2deg);z-index:1000}.radar-table__header-cell.drag-over.valid-drop-zone,.radar-table__header-cell.drag-over.invalid-drop-zone{transition:all .2s ease;z-index:1000}.radar-table__drag-handle{cursor:grab;transition:transform .2s ease}.radar-table__drag-handle:hover{transform:scale(1.1)}.radar-table__drag-handle.dragging{cursor:grabbing}.radar-table__header-cell.group-header{cursor:default!important}.radar-table__header-cell.group-header{cursor:grab}.radar-table__header-cell.group-header.dragging{cursor:grabbing}.radar-table__body-row[draggable=true]{user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.radar-table__body-row.dragging{opacity:.25;cursor:grabbing;border-radius:20px}.radar-table__body-row.drag-over{border-top:2px solid #5329FF!important}.radar-table__body-row[draggable=true]{cursor:grab}.radar-table__body-row[draggable=true]:active{cursor:grabbing}.radar-table__body-cell{scroll-snap-align:start;box-sizing:border-box;vertical-align:top}.radar-table-default__body-cell,.radar-table-simple__body-cell{height:1px}.radar-table__body-cell-wrapper{width:100%;height:100%;font-family:inherit;background-color:#fff;display:flex;align-items:center}.radar-table__expander-btn{width:16px;height:16px;display:inline-flex;align-items:center;justify-content:center;padding:0;line-height:16px;font-size:12px;color:#1a1a1a;cursor:pointer;transition:transform .15s ease}.radar-table__expander-btn:focus{outline:none}.radar-table-default__body-cell-wrapper{padding:7px 12px;display:flex;gap:8px;border-bottom:1px solid #E8E8E8;font-weight:500;font-size:14px;line-height:1.2;letter-spacing:0%;color:#1a1a1a;box-sizing:border-box;align-items:center}.radar-table-simple__body-cell-wrapper{padding:18px 12px;display:flex;gap:8px;border-bottom:1px solid #E8E8E8;font-weight:500;font-size:16px;line-height:1.2;letter-spacing:0%;color:#1a1a1a;box-sizing:border-box;align-items:center}.radar-table-default__body-row:last-of-type .radar-table-default__body-cell-wrapper{border-bottom:none}.radar-table-simple__body-row:last-of-type .radar-table-simple__body-cell-wrapper{border-bottom:none}.radar-table__body-noData{padding:18px 12px;display:flex;align-items:center;font-size:16px;line-height:1.2;width:100%}.radar-table__body-noData_width{padding:18px 12px;display:flex;justify-content:center;align-items:center;font-size:16px;line-height:1.2}.radar-table__body-cell-wrapper--stretch,.radar-table-default__body-cell-wrapper--stretch,.radar-table-simple__body-cell-wrapper--stretch{align-items:stretch!important}.radar-table__body-cell-wrapper .salary-cell,.radar-table-default__body-cell-wrapper .salary-cell,.radar-table-simple__body-cell-wrapper .salary-cell{width:100%;height:auto;min-height:auto}.radar-table__custom-content-wrapper{width:100%;height:auto;min-height:100%}.radar-table__footer{pointer-events:auto}.radar-table__footer.resizing{pointer-events:none}.radar-table-default__footer,.radar-table-simple__footer{background-color:#fff}.radar-table-default__footer-cell,.radar-table-simple__footer-cell{border-top:1px solid #E8E8E8}.radar-table__footer-cell-wrapper{width:100%;font-family:inherit}.radar-table-default__footer-cell-wrapper,.radar-table-simple__footer-cell-wrapper{padding:12px 0;display:flex;gap:8px}.radar-table__resize-button{opacity:0;position:absolute;right:0;top:50%;transform:translateY(-50%);height:32px;width:20px;padding-right:6px;background-color:transparent;cursor:col-resize;border:none;display:flex;justify-content:flex-end;align-items:center;transition:all .2s cubic-bezier(.4,0,.2,1)}.radar-table__resize-button:hover{cursor:col-resize!important}.radar-table__resize-button div{background-color:#8c8c8c;width:2px;height:50%;opacity:1;transition:all .3s cubic-bezier(.4,0,.2,1);border-radius:1px}.radar-table__resize-button:hover div{opacity:.5}.radar-table__resize-button:active div{background-color:#5329ff;opacity:1}.radar-table__resize-line{display:none;position:fixed;width:2px;background-color:#5329ff80;z-index:9999;pointer-events:none;opacity:.5;will-change:transform;transform:translateZ(0);backface-visibility:hidden}.radar-table__pagination{display:flex;align-items:center;gap:24px}.radar-table__pagination-main{display:grid;grid-template-rows:32px;gap:4px}.radar-table__pagination-button{width:100%;height:100%;max-width:32px;max-height:32px;border-radius:8px;border:none;cursor:pointer;background-color:#f7f7f7;font-family:inherit;font-weight:500;font-size:14px;line-height:100%;letter-spacing:0%;color:#8c8c8c;opacity:1;transition:all .2s ease;display:flex;align-items:center;justify-content:center;border:1px solid #F7F7F7}.radar-table__pagination-button_active{color:#5329ff;background-color:#eeeaff;border:1px solid #5329FF}.radar-table__pagination-button_control{background-color:transparent;border:none}.radar-table__pagination-button_control:hover{background-color:#f7f7f7}.radar-table__pagination-button:hover{opacity:.75}.radar-table__pagination-quick-jumper{display:flex;align-items:center;gap:8px;font-family:inherit;font-weight:500;font-style:Medium;font-size:14px;line-height:100%;letter-spacing:0%;color:#1a1a1a}.radar-table__pagination-input{width:32px;height:32px;border-radius:8px;border:1px solid #F7F7F7;background-color:#f7f7f7;font-family:inherit;font-weight:500;font-size:14px;line-height:100%;letter-spacing:0%;color:#5329ff;background-color:#eeeaff;text-align:center;outline:none;border:none}.radar-table__tooltip-button{border:none;display:flex;align-items:center;justify-content:center;background-color:transparent;color:inherit;cursor:pointer;font-size:inherit;position:relative}.radar-table__tooltip-button:hover{color:#5329ff}.radar-table__tooltip-text{position:absolute;top:calc(100% + 10px);left:0;background-color:#fff;padding:8px;width:250px;transform:scale(0);opacity:0;transition:all .2s ease;transform-origin:top left;border-radius:8px;box-shadow:0 0 20px #00000014;white-space:pre-line;text-align:left;font-family:inherit;font-weight:500;font-size:14px;line-height:100%;letter-spacing:0%;color:#1a1a1a;z-index:1000}.radar-table__tooltip-text_visible{transform:scale(1);opacity:1}.radar-table__tooltip-text--right{left:auto!important;right:0!important;transform-origin:top right!important}.radar-table__tooltip-text--right.radar-table__tooltip-text_visible{transform:scale(1)!important}.radar-table__drag-handle{height:20px;cursor:grab;border-radius:4px;border:none}.radar-title{font-family:Manrope,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen;color:#1a1a1a;margin:0;padding:0}.radar-title_h1{font-size:22px;font-weight:600;line-height:100%;letter-spacing:0%}.radar-title_h2{font-size:18px;font-weight:600;line-height:100%;letter-spacing:0%}.radar-text{font-family:Manrope,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen;color:#1a1a1a;margin:0;padding:0}.radar-text_m{font-size:14px}.radar-text_s{font-size:12px}.radar-text_medium{font-weight:500}.radar-text_semibold{font-weight:600}.radar-text_bold{font-weight:700}\n";
|
|
5
5
|
document.head.appendChild(style);
|
|
6
6
|
})();
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
7
|
+
import * as Ze from "react";
|
|
8
|
+
import qe, { useState as ye, useRef as je, useCallback as ue, startTransition as Tt, useEffect as He, createContext as $t, useContext as It, useMemo as Ye, useLayoutEffect as Qe } from "react";
|
|
9
|
+
import { useSensors as Lt, useSensor as ot, PointerSensor as Nt, KeyboardSensor as Wt, pointerWithin as Pt, rectIntersection as Mt, DndContext as At, DragOverlay as zt, useDraggable as Ft, useDroppable as Bt } from "@dnd-kit/core";
|
|
10
|
+
import { sortableKeyboardCoordinates as Vt } from "@dnd-kit/sortable";
|
|
11
|
+
import { flushSync as qt } from "react-dom";
|
|
12
|
+
var Xe = { exports: {} }, Be = {};
|
|
11
13
|
/**
|
|
12
14
|
* @license React
|
|
13
15
|
* react-jsx-runtime.production.min.js
|
|
@@ -17,21 +19,21 @@ var Ye = { exports: {} }, Pe = {};
|
|
|
17
19
|
* This source code is licensed under the MIT license found in the
|
|
18
20
|
* LICENSE file in the root directory of this source tree.
|
|
19
21
|
*/
|
|
20
|
-
var
|
|
21
|
-
function
|
|
22
|
-
if (
|
|
23
|
-
|
|
24
|
-
var
|
|
25
|
-
function
|
|
26
|
-
var
|
|
27
|
-
|
|
28
|
-
for (
|
|
29
|
-
if (
|
|
30
|
-
return { $$typeof:
|
|
22
|
+
var at;
|
|
23
|
+
function Ht() {
|
|
24
|
+
if (at) return Be;
|
|
25
|
+
at = 1;
|
|
26
|
+
var n = qe, i = Symbol.for("react.element"), t = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, s = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
27
|
+
function a(c, u, j) {
|
|
28
|
+
var g, T = {}, q = null, X = null;
|
|
29
|
+
j !== void 0 && (q = "" + j), u.key !== void 0 && (q = "" + u.key), u.ref !== void 0 && (X = u.ref);
|
|
30
|
+
for (g in u) r.call(u, g) && !o.hasOwnProperty(g) && (T[g] = u[g]);
|
|
31
|
+
if (c && c.defaultProps) for (g in u = c.defaultProps, u) T[g] === void 0 && (T[g] = u[g]);
|
|
32
|
+
return { $$typeof: i, type: c, key: q, ref: X, props: T, _owner: s.current };
|
|
31
33
|
}
|
|
32
|
-
return
|
|
34
|
+
return Be.Fragment = t, Be.jsx = a, Be.jsxs = a, Be;
|
|
33
35
|
}
|
|
34
|
-
var
|
|
36
|
+
var Ve = {};
|
|
35
37
|
/**
|
|
36
38
|
* @license React
|
|
37
39
|
* react-jsx-runtime.development.js
|
|
@@ -41,91 +43,91 @@ var Le = {};
|
|
|
41
43
|
* This source code is licensed under the MIT license found in the
|
|
42
44
|
* LICENSE file in the root directory of this source tree.
|
|
43
45
|
*/
|
|
44
|
-
var
|
|
45
|
-
function
|
|
46
|
-
return
|
|
47
|
-
var
|
|
48
|
-
function
|
|
46
|
+
var lt;
|
|
47
|
+
function Kt() {
|
|
48
|
+
return lt || (lt = 1, process.env.NODE_ENV !== "production" && function() {
|
|
49
|
+
var n = qe, i = Symbol.for("react.element"), t = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), s = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), a = Symbol.for("react.provider"), c = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), j = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), T = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), X = Symbol.for("react.offscreen"), U = Symbol.iterator, K = "@@iterator";
|
|
50
|
+
function ae(e) {
|
|
49
51
|
if (e === null || typeof e != "object")
|
|
50
52
|
return null;
|
|
51
|
-
var
|
|
52
|
-
return typeof
|
|
53
|
+
var d = U && e[U] || e[K];
|
|
54
|
+
return typeof d == "function" ? d : null;
|
|
53
55
|
}
|
|
54
|
-
var
|
|
55
|
-
function
|
|
56
|
+
var I = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
57
|
+
function f(e) {
|
|
56
58
|
{
|
|
57
|
-
for (var
|
|
58
|
-
|
|
59
|
-
|
|
59
|
+
for (var d = arguments.length, C = new Array(d > 1 ? d - 1 : 0), F = 1; F < d; F++)
|
|
60
|
+
C[F - 1] = arguments[F];
|
|
61
|
+
Y("error", e, C);
|
|
60
62
|
}
|
|
61
63
|
}
|
|
62
|
-
function
|
|
64
|
+
function Y(e, d, C) {
|
|
63
65
|
{
|
|
64
|
-
var
|
|
65
|
-
|
|
66
|
-
var
|
|
67
|
-
return String(
|
|
66
|
+
var F = I.ReactDebugCurrentFrame, de = F.getStackAddendum();
|
|
67
|
+
de !== "" && (d += "%s", C = C.concat([de]));
|
|
68
|
+
var fe = C.map(function(oe) {
|
|
69
|
+
return String(oe);
|
|
68
70
|
});
|
|
69
|
-
|
|
71
|
+
fe.unshift("Warning: " + d), Function.prototype.apply.call(console[e], console, fe);
|
|
70
72
|
}
|
|
71
73
|
}
|
|
72
|
-
var
|
|
73
|
-
|
|
74
|
-
function
|
|
75
|
-
return !!(typeof e == "string" || typeof e == "function" || e ===
|
|
74
|
+
var k = !1, B = !1, ie = !1, y = !1, _ = !1, m;
|
|
75
|
+
m = Symbol.for("react.module.reference");
|
|
76
|
+
function v(e) {
|
|
77
|
+
return !!(typeof e == "string" || typeof e == "function" || e === r || e === o || _ || e === s || e === j || e === g || y || e === X || k || B || ie || typeof e == "object" && e !== null && (e.$$typeof === q || e.$$typeof === T || e.$$typeof === a || e.$$typeof === c || e.$$typeof === u || // This needs to include all possible module reference object
|
|
76
78
|
// types supported by any Flight configuration anywhere since
|
|
77
79
|
// we don't know which Flight build this will end up being used
|
|
78
80
|
// with.
|
|
79
|
-
e.$$typeof ===
|
|
81
|
+
e.$$typeof === m || e.getModuleId !== void 0));
|
|
80
82
|
}
|
|
81
|
-
function
|
|
82
|
-
var
|
|
83
|
-
if (
|
|
84
|
-
return
|
|
85
|
-
var
|
|
86
|
-
return
|
|
83
|
+
function p(e, d, C) {
|
|
84
|
+
var F = e.displayName;
|
|
85
|
+
if (F)
|
|
86
|
+
return F;
|
|
87
|
+
var de = d.displayName || d.name || "";
|
|
88
|
+
return de !== "" ? C + "(" + de + ")" : C;
|
|
87
89
|
}
|
|
88
|
-
function
|
|
90
|
+
function b(e) {
|
|
89
91
|
return e.displayName || "Context";
|
|
90
92
|
}
|
|
91
|
-
function
|
|
93
|
+
function x(e) {
|
|
92
94
|
if (e == null)
|
|
93
95
|
return null;
|
|
94
|
-
if (typeof e.tag == "number" &&
|
|
96
|
+
if (typeof e.tag == "number" && f("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
95
97
|
return e.displayName || e.name || null;
|
|
96
98
|
if (typeof e == "string")
|
|
97
99
|
return e;
|
|
98
100
|
switch (e) {
|
|
99
|
-
case
|
|
101
|
+
case r:
|
|
100
102
|
return "Fragment";
|
|
101
|
-
case
|
|
103
|
+
case t:
|
|
102
104
|
return "Portal";
|
|
103
|
-
case
|
|
105
|
+
case o:
|
|
104
106
|
return "Profiler";
|
|
105
|
-
case
|
|
107
|
+
case s:
|
|
106
108
|
return "StrictMode";
|
|
107
|
-
case
|
|
109
|
+
case j:
|
|
108
110
|
return "Suspense";
|
|
109
|
-
case
|
|
111
|
+
case g:
|
|
110
112
|
return "SuspenseList";
|
|
111
113
|
}
|
|
112
114
|
if (typeof e == "object")
|
|
113
115
|
switch (e.$$typeof) {
|
|
114
|
-
case
|
|
115
|
-
var
|
|
116
|
-
return
|
|
117
|
-
case
|
|
118
|
-
var
|
|
119
|
-
return
|
|
120
|
-
case
|
|
121
|
-
return
|
|
122
|
-
case
|
|
123
|
-
var
|
|
124
|
-
return
|
|
125
|
-
case
|
|
126
|
-
var
|
|
116
|
+
case c:
|
|
117
|
+
var d = e;
|
|
118
|
+
return b(d) + ".Consumer";
|
|
119
|
+
case a:
|
|
120
|
+
var C = e;
|
|
121
|
+
return b(C._context) + ".Provider";
|
|
122
|
+
case u:
|
|
123
|
+
return p(e, e.render, "ForwardRef");
|
|
124
|
+
case T:
|
|
125
|
+
var F = e.displayName || null;
|
|
126
|
+
return F !== null ? F : x(e.type) || "Memo";
|
|
127
|
+
case q: {
|
|
128
|
+
var de = e, fe = de._payload, oe = de._init;
|
|
127
129
|
try {
|
|
128
|
-
return
|
|
130
|
+
return x(oe(fe));
|
|
129
131
|
} catch {
|
|
130
132
|
return null;
|
|
131
133
|
}
|
|
@@ -133,18 +135,18 @@ function Wt() {
|
|
|
133
135
|
}
|
|
134
136
|
return null;
|
|
135
137
|
}
|
|
136
|
-
var
|
|
137
|
-
function
|
|
138
|
+
var O = Object.assign, P = 0, D, H, Z, G, L, ce, R;
|
|
139
|
+
function J() {
|
|
138
140
|
}
|
|
139
|
-
|
|
140
|
-
function
|
|
141
|
+
J.__reactDisabledLog = !0;
|
|
142
|
+
function S() {
|
|
141
143
|
{
|
|
142
|
-
if (
|
|
143
|
-
|
|
144
|
+
if (P === 0) {
|
|
145
|
+
D = console.log, H = console.info, Z = console.warn, G = console.error, L = console.group, ce = console.groupCollapsed, R = console.groupEnd;
|
|
144
146
|
var e = {
|
|
145
147
|
configurable: !0,
|
|
146
148
|
enumerable: !0,
|
|
147
|
-
value:
|
|
149
|
+
value: J,
|
|
148
150
|
writable: !0
|
|
149
151
|
};
|
|
150
152
|
Object.defineProperties(console, {
|
|
@@ -157,332 +159,332 @@ function Wt() {
|
|
|
157
159
|
groupEnd: e
|
|
158
160
|
});
|
|
159
161
|
}
|
|
160
|
-
|
|
162
|
+
P++;
|
|
161
163
|
}
|
|
162
164
|
}
|
|
163
|
-
function
|
|
165
|
+
function E() {
|
|
164
166
|
{
|
|
165
|
-
if (
|
|
167
|
+
if (P--, P === 0) {
|
|
166
168
|
var e = {
|
|
167
169
|
configurable: !0,
|
|
168
170
|
enumerable: !0,
|
|
169
171
|
writable: !0
|
|
170
172
|
};
|
|
171
173
|
Object.defineProperties(console, {
|
|
172
|
-
log:
|
|
173
|
-
value:
|
|
174
|
+
log: O({}, e, {
|
|
175
|
+
value: D
|
|
174
176
|
}),
|
|
175
|
-
info:
|
|
176
|
-
value:
|
|
177
|
+
info: O({}, e, {
|
|
178
|
+
value: H
|
|
177
179
|
}),
|
|
178
|
-
warn:
|
|
179
|
-
value:
|
|
180
|
+
warn: O({}, e, {
|
|
181
|
+
value: Z
|
|
180
182
|
}),
|
|
181
|
-
error:
|
|
182
|
-
value:
|
|
183
|
+
error: O({}, e, {
|
|
184
|
+
value: G
|
|
183
185
|
}),
|
|
184
|
-
group:
|
|
185
|
-
value:
|
|
186
|
+
group: O({}, e, {
|
|
187
|
+
value: L
|
|
186
188
|
}),
|
|
187
|
-
groupCollapsed:
|
|
188
|
-
value:
|
|
189
|
+
groupCollapsed: O({}, e, {
|
|
190
|
+
value: ce
|
|
189
191
|
}),
|
|
190
|
-
groupEnd:
|
|
191
|
-
value:
|
|
192
|
+
groupEnd: O({}, e, {
|
|
193
|
+
value: R
|
|
192
194
|
})
|
|
193
195
|
});
|
|
194
196
|
}
|
|
195
|
-
|
|
197
|
+
P < 0 && f("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
196
198
|
}
|
|
197
199
|
}
|
|
198
|
-
var
|
|
199
|
-
function
|
|
200
|
+
var A = I.ReactCurrentDispatcher, N;
|
|
201
|
+
function Q(e, d, C) {
|
|
200
202
|
{
|
|
201
|
-
if (
|
|
203
|
+
if (N === void 0)
|
|
202
204
|
try {
|
|
203
205
|
throw Error();
|
|
204
|
-
} catch (
|
|
205
|
-
var
|
|
206
|
-
|
|
206
|
+
} catch (de) {
|
|
207
|
+
var F = de.stack.trim().match(/\n( *(at )?)/);
|
|
208
|
+
N = F && F[1] || "";
|
|
207
209
|
}
|
|
208
210
|
return `
|
|
209
|
-
` +
|
|
211
|
+
` + N + e;
|
|
210
212
|
}
|
|
211
213
|
}
|
|
212
|
-
var
|
|
214
|
+
var V = !1, M;
|
|
213
215
|
{
|
|
214
|
-
var
|
|
215
|
-
|
|
216
|
+
var ne = typeof WeakMap == "function" ? WeakMap : Map;
|
|
217
|
+
M = new ne();
|
|
216
218
|
}
|
|
217
|
-
function
|
|
218
|
-
if (!e ||
|
|
219
|
+
function ee(e, d) {
|
|
220
|
+
if (!e || V)
|
|
219
221
|
return "";
|
|
220
222
|
{
|
|
221
|
-
var
|
|
222
|
-
if (
|
|
223
|
-
return
|
|
223
|
+
var C = M.get(e);
|
|
224
|
+
if (C !== void 0)
|
|
225
|
+
return C;
|
|
224
226
|
}
|
|
225
|
-
var
|
|
226
|
-
|
|
227
|
-
var
|
|
227
|
+
var F;
|
|
228
|
+
V = !0;
|
|
229
|
+
var de = Error.prepareStackTrace;
|
|
228
230
|
Error.prepareStackTrace = void 0;
|
|
229
|
-
var
|
|
230
|
-
|
|
231
|
+
var fe;
|
|
232
|
+
fe = A.current, A.current = null, S();
|
|
231
233
|
try {
|
|
232
|
-
if (
|
|
233
|
-
var
|
|
234
|
+
if (d) {
|
|
235
|
+
var oe = function() {
|
|
234
236
|
throw Error();
|
|
235
237
|
};
|
|
236
|
-
if (Object.defineProperty(
|
|
238
|
+
if (Object.defineProperty(oe.prototype, "props", {
|
|
237
239
|
set: function() {
|
|
238
240
|
throw Error();
|
|
239
241
|
}
|
|
240
242
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
241
243
|
try {
|
|
242
|
-
Reflect.construct(
|
|
243
|
-
} catch (
|
|
244
|
-
|
|
244
|
+
Reflect.construct(oe, []);
|
|
245
|
+
} catch (Ee) {
|
|
246
|
+
F = Ee;
|
|
245
247
|
}
|
|
246
|
-
Reflect.construct(e, [],
|
|
248
|
+
Reflect.construct(e, [], oe);
|
|
247
249
|
} else {
|
|
248
250
|
try {
|
|
249
|
-
|
|
250
|
-
} catch (
|
|
251
|
-
|
|
251
|
+
oe.call();
|
|
252
|
+
} catch (Ee) {
|
|
253
|
+
F = Ee;
|
|
252
254
|
}
|
|
253
|
-
e.call(
|
|
255
|
+
e.call(oe.prototype);
|
|
254
256
|
}
|
|
255
257
|
} else {
|
|
256
258
|
try {
|
|
257
259
|
throw Error();
|
|
258
|
-
} catch (
|
|
259
|
-
|
|
260
|
+
} catch (Ee) {
|
|
261
|
+
F = Ee;
|
|
260
262
|
}
|
|
261
263
|
e();
|
|
262
264
|
}
|
|
263
|
-
} catch (
|
|
264
|
-
if (
|
|
265
|
-
for (var
|
|
266
|
-
`),
|
|
267
|
-
`),
|
|
268
|
-
|
|
269
|
-
for (;
|
|
270
|
-
if (
|
|
271
|
-
if (
|
|
265
|
+
} catch (Ee) {
|
|
266
|
+
if (Ee && F && typeof Ee.stack == "string") {
|
|
267
|
+
for (var se = Ee.stack.split(`
|
|
268
|
+
`), _e = F.stack.split(`
|
|
269
|
+
`), ge = se.length - 1, pe = _e.length - 1; ge >= 1 && pe >= 0 && se[ge] !== _e[pe]; )
|
|
270
|
+
pe--;
|
|
271
|
+
for (; ge >= 1 && pe >= 0; ge--, pe--)
|
|
272
|
+
if (se[ge] !== _e[pe]) {
|
|
273
|
+
if (ge !== 1 || pe !== 1)
|
|
272
274
|
do
|
|
273
|
-
if (
|
|
274
|
-
var
|
|
275
|
-
` +
|
|
276
|
-
return e.displayName &&
|
|
275
|
+
if (ge--, pe--, pe < 0 || se[ge] !== _e[pe]) {
|
|
276
|
+
var Se = `
|
|
277
|
+
` + se[ge].replace(" at new ", " at ");
|
|
278
|
+
return e.displayName && Se.includes("<anonymous>") && (Se = Se.replace("<anonymous>", e.displayName)), typeof e == "function" && M.set(e, Se), Se;
|
|
277
279
|
}
|
|
278
|
-
while (
|
|
280
|
+
while (ge >= 1 && pe >= 0);
|
|
279
281
|
break;
|
|
280
282
|
}
|
|
281
283
|
}
|
|
282
284
|
} finally {
|
|
283
|
-
|
|
285
|
+
V = !1, A.current = fe, E(), Error.prepareStackTrace = de;
|
|
284
286
|
}
|
|
285
|
-
var
|
|
286
|
-
return typeof e == "function" &&
|
|
287
|
+
var Pe = e ? e.displayName || e.name : "", Le = Pe ? Q(Pe) : "";
|
|
288
|
+
return typeof e == "function" && M.set(e, Le), Le;
|
|
287
289
|
}
|
|
288
|
-
function
|
|
289
|
-
return
|
|
290
|
+
function ve(e, d, C) {
|
|
291
|
+
return ee(e, !1);
|
|
290
292
|
}
|
|
291
|
-
function
|
|
292
|
-
var
|
|
293
|
-
return !!(
|
|
293
|
+
function be(e) {
|
|
294
|
+
var d = e.prototype;
|
|
295
|
+
return !!(d && d.isReactComponent);
|
|
294
296
|
}
|
|
295
|
-
function
|
|
297
|
+
function le(e, d, C) {
|
|
296
298
|
if (e == null)
|
|
297
299
|
return "";
|
|
298
300
|
if (typeof e == "function")
|
|
299
|
-
return
|
|
301
|
+
return ee(e, be(e));
|
|
300
302
|
if (typeof e == "string")
|
|
301
|
-
return
|
|
303
|
+
return Q(e);
|
|
302
304
|
switch (e) {
|
|
303
|
-
case
|
|
304
|
-
return
|
|
305
|
-
case
|
|
306
|
-
return
|
|
305
|
+
case j:
|
|
306
|
+
return Q("Suspense");
|
|
307
|
+
case g:
|
|
308
|
+
return Q("SuspenseList");
|
|
307
309
|
}
|
|
308
310
|
if (typeof e == "object")
|
|
309
311
|
switch (e.$$typeof) {
|
|
310
|
-
case
|
|
311
|
-
return
|
|
312
|
-
case
|
|
313
|
-
return
|
|
314
|
-
case
|
|
315
|
-
var
|
|
312
|
+
case u:
|
|
313
|
+
return ve(e.render);
|
|
314
|
+
case T:
|
|
315
|
+
return le(e.type, d, C);
|
|
316
|
+
case q: {
|
|
317
|
+
var F = e, de = F._payload, fe = F._init;
|
|
316
318
|
try {
|
|
317
|
-
return
|
|
319
|
+
return le(fe(de), d, C);
|
|
318
320
|
} catch {
|
|
319
321
|
}
|
|
320
322
|
}
|
|
321
323
|
}
|
|
322
324
|
return "";
|
|
323
325
|
}
|
|
324
|
-
var
|
|
325
|
-
function
|
|
326
|
+
var he = Object.prototype.hasOwnProperty, Oe = {}, Re = I.ReactDebugCurrentFrame;
|
|
327
|
+
function Te(e) {
|
|
326
328
|
if (e) {
|
|
327
|
-
var
|
|
328
|
-
|
|
329
|
+
var d = e._owner, C = le(e.type, e._source, d ? d.type : null);
|
|
330
|
+
Re.setExtraStackFrame(C);
|
|
329
331
|
} else
|
|
330
|
-
|
|
332
|
+
Re.setExtraStackFrame(null);
|
|
331
333
|
}
|
|
332
|
-
function
|
|
334
|
+
function Ke(e, d, C, F, de) {
|
|
333
335
|
{
|
|
334
|
-
var
|
|
335
|
-
for (var
|
|
336
|
-
if (
|
|
337
|
-
var
|
|
336
|
+
var fe = Function.call.bind(he);
|
|
337
|
+
for (var oe in e)
|
|
338
|
+
if (fe(e, oe)) {
|
|
339
|
+
var se = void 0;
|
|
338
340
|
try {
|
|
339
|
-
if (typeof e[
|
|
340
|
-
var
|
|
341
|
-
throw
|
|
341
|
+
if (typeof e[oe] != "function") {
|
|
342
|
+
var _e = Error((F || "React class") + ": " + C + " type `" + oe + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[oe] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
343
|
+
throw _e.name = "Invariant Violation", _e;
|
|
342
344
|
}
|
|
343
|
-
|
|
344
|
-
} catch (
|
|
345
|
-
|
|
345
|
+
se = e[oe](d, oe, F, C, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
346
|
+
} catch (ge) {
|
|
347
|
+
se = ge;
|
|
346
348
|
}
|
|
347
|
-
|
|
349
|
+
se && !(se instanceof Error) && (Te(de), f("%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).", F || "React class", C, oe, typeof se), Te(null)), se instanceof Error && !(se.message in Oe) && (Oe[se.message] = !0, Te(de), f("Failed %s type: %s", C, se.message), Te(null));
|
|
348
350
|
}
|
|
349
351
|
}
|
|
350
352
|
}
|
|
351
|
-
var
|
|
352
|
-
function
|
|
353
|
-
return
|
|
353
|
+
var h = Array.isArray;
|
|
354
|
+
function $(e) {
|
|
355
|
+
return h(e);
|
|
354
356
|
}
|
|
355
|
-
function
|
|
357
|
+
function z(e) {
|
|
356
358
|
{
|
|
357
|
-
var
|
|
358
|
-
return
|
|
359
|
+
var d = typeof Symbol == "function" && Symbol.toStringTag, C = d && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
360
|
+
return C;
|
|
359
361
|
}
|
|
360
362
|
}
|
|
361
|
-
function
|
|
363
|
+
function w(e) {
|
|
362
364
|
try {
|
|
363
|
-
return
|
|
365
|
+
return W(e), !1;
|
|
364
366
|
} catch {
|
|
365
367
|
return !0;
|
|
366
368
|
}
|
|
367
369
|
}
|
|
368
|
-
function
|
|
370
|
+
function W(e) {
|
|
369
371
|
return "" + e;
|
|
370
372
|
}
|
|
371
|
-
function
|
|
372
|
-
if (
|
|
373
|
-
return
|
|
373
|
+
function re(e) {
|
|
374
|
+
if (w(e))
|
|
375
|
+
return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", z(e)), W(e);
|
|
374
376
|
}
|
|
375
|
-
var
|
|
377
|
+
var te = I.ReactCurrentOwner, Ce = {
|
|
376
378
|
key: !0,
|
|
377
379
|
ref: !0,
|
|
378
380
|
__self: !0,
|
|
379
381
|
__source: !0
|
|
380
|
-
},
|
|
381
|
-
function
|
|
382
|
-
if (
|
|
383
|
-
var
|
|
384
|
-
if (
|
|
382
|
+
}, me, ke;
|
|
383
|
+
function xe(e) {
|
|
384
|
+
if (he.call(e, "ref")) {
|
|
385
|
+
var d = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
386
|
+
if (d && d.isReactWarning)
|
|
385
387
|
return !1;
|
|
386
388
|
}
|
|
387
389
|
return e.ref !== void 0;
|
|
388
390
|
}
|
|
389
|
-
function
|
|
390
|
-
if (
|
|
391
|
-
var
|
|
392
|
-
if (
|
|
391
|
+
function De(e) {
|
|
392
|
+
if (he.call(e, "key")) {
|
|
393
|
+
var d = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
394
|
+
if (d && d.isReactWarning)
|
|
393
395
|
return !1;
|
|
394
396
|
}
|
|
395
397
|
return e.key !== void 0;
|
|
396
398
|
}
|
|
397
|
-
function
|
|
398
|
-
typeof e.ref == "string" &&
|
|
399
|
+
function $e(e, d) {
|
|
400
|
+
typeof e.ref == "string" && te.current;
|
|
399
401
|
}
|
|
400
|
-
function
|
|
402
|
+
function Ne(e, d) {
|
|
401
403
|
{
|
|
402
|
-
var
|
|
403
|
-
|
|
404
|
+
var C = function() {
|
|
405
|
+
me || (me = !0, f("%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)", d));
|
|
404
406
|
};
|
|
405
|
-
|
|
406
|
-
get:
|
|
407
|
+
C.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
408
|
+
get: C,
|
|
407
409
|
configurable: !0
|
|
408
410
|
});
|
|
409
411
|
}
|
|
410
412
|
}
|
|
411
|
-
function
|
|
413
|
+
function Ie(e, d) {
|
|
412
414
|
{
|
|
413
|
-
var
|
|
414
|
-
|
|
415
|
+
var C = function() {
|
|
416
|
+
ke || (ke = !0, f("%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)", d));
|
|
415
417
|
};
|
|
416
|
-
|
|
417
|
-
get:
|
|
418
|
+
C.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
419
|
+
get: C,
|
|
418
420
|
configurable: !0
|
|
419
421
|
});
|
|
420
422
|
}
|
|
421
423
|
}
|
|
422
|
-
var
|
|
423
|
-
var
|
|
424
|
+
var Je = function(e, d, C, F, de, fe, oe) {
|
|
425
|
+
var se = {
|
|
424
426
|
// This tag allows us to uniquely identify this as a React Element
|
|
425
|
-
$$typeof:
|
|
427
|
+
$$typeof: i,
|
|
426
428
|
// Built-in properties that belong on the element
|
|
427
429
|
type: e,
|
|
428
|
-
key:
|
|
429
|
-
ref:
|
|
430
|
-
props:
|
|
430
|
+
key: d,
|
|
431
|
+
ref: C,
|
|
432
|
+
props: oe,
|
|
431
433
|
// Record the component responsible for creating this element.
|
|
432
|
-
_owner:
|
|
434
|
+
_owner: fe
|
|
433
435
|
};
|
|
434
|
-
return
|
|
436
|
+
return se._store = {}, Object.defineProperty(se._store, "validated", {
|
|
435
437
|
configurable: !1,
|
|
436
438
|
enumerable: !1,
|
|
437
439
|
writable: !0,
|
|
438
440
|
value: !1
|
|
439
|
-
}), Object.defineProperty(
|
|
441
|
+
}), Object.defineProperty(se, "_self", {
|
|
440
442
|
configurable: !1,
|
|
441
443
|
enumerable: !1,
|
|
442
444
|
writable: !1,
|
|
443
|
-
value:
|
|
444
|
-
}), Object.defineProperty(
|
|
445
|
+
value: F
|
|
446
|
+
}), Object.defineProperty(se, "_source", {
|
|
445
447
|
configurable: !1,
|
|
446
448
|
enumerable: !1,
|
|
447
449
|
writable: !1,
|
|
448
|
-
value:
|
|
449
|
-
}), Object.freeze && (Object.freeze(
|
|
450
|
+
value: de
|
|
451
|
+
}), Object.freeze && (Object.freeze(se.props), Object.freeze(se)), se;
|
|
450
452
|
};
|
|
451
|
-
function
|
|
453
|
+
function Ue(e, d, C, F, de) {
|
|
452
454
|
{
|
|
453
|
-
var
|
|
454
|
-
|
|
455
|
-
for (
|
|
456
|
-
|
|
455
|
+
var fe, oe = {}, se = null, _e = null;
|
|
456
|
+
C !== void 0 && (re(C), se = "" + C), De(d) && (re(d.key), se = "" + d.key), xe(d) && (_e = d.ref, $e(d, de));
|
|
457
|
+
for (fe in d)
|
|
458
|
+
he.call(d, fe) && !Ce.hasOwnProperty(fe) && (oe[fe] = d[fe]);
|
|
457
459
|
if (e && e.defaultProps) {
|
|
458
|
-
var
|
|
459
|
-
for (
|
|
460
|
-
|
|
460
|
+
var ge = e.defaultProps;
|
|
461
|
+
for (fe in ge)
|
|
462
|
+
oe[fe] === void 0 && (oe[fe] = ge[fe]);
|
|
461
463
|
}
|
|
462
|
-
if (
|
|
463
|
-
var
|
|
464
|
-
|
|
464
|
+
if (se || _e) {
|
|
465
|
+
var pe = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
466
|
+
se && Ne(oe, pe), _e && Ie(oe, pe);
|
|
465
467
|
}
|
|
466
|
-
return
|
|
468
|
+
return Je(e, se, _e, de, F, te.current, oe);
|
|
467
469
|
}
|
|
468
470
|
}
|
|
469
|
-
var
|
|
470
|
-
function
|
|
471
|
+
var We = I.ReactCurrentOwner, Ae = I.ReactDebugCurrentFrame;
|
|
472
|
+
function we(e) {
|
|
471
473
|
if (e) {
|
|
472
|
-
var
|
|
473
|
-
|
|
474
|
+
var d = e._owner, C = le(e.type, e._source, d ? d.type : null);
|
|
475
|
+
Ae.setExtraStackFrame(C);
|
|
474
476
|
} else
|
|
475
|
-
|
|
477
|
+
Ae.setExtraStackFrame(null);
|
|
476
478
|
}
|
|
477
|
-
var
|
|
478
|
-
|
|
479
|
-
function
|
|
480
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
479
|
+
var ze;
|
|
480
|
+
ze = !1;
|
|
481
|
+
function Fe(e) {
|
|
482
|
+
return typeof e == "object" && e !== null && e.$$typeof === i;
|
|
481
483
|
}
|
|
482
|
-
function
|
|
484
|
+
function et() {
|
|
483
485
|
{
|
|
484
|
-
if (
|
|
485
|
-
var e =
|
|
486
|
+
if (We.current) {
|
|
487
|
+
var e = x(We.current.type);
|
|
486
488
|
if (e)
|
|
487
489
|
return `
|
|
488
490
|
|
|
@@ -491,488 +493,522 @@ Check the render method of \`` + e + "`.";
|
|
|
491
493
|
return "";
|
|
492
494
|
}
|
|
493
495
|
}
|
|
494
|
-
function
|
|
496
|
+
function _t(e) {
|
|
495
497
|
return "";
|
|
496
498
|
}
|
|
497
|
-
var
|
|
498
|
-
function
|
|
499
|
+
var tt = {};
|
|
500
|
+
function Ct(e) {
|
|
499
501
|
{
|
|
500
|
-
var
|
|
501
|
-
if (!
|
|
502
|
-
var
|
|
503
|
-
|
|
502
|
+
var d = et();
|
|
503
|
+
if (!d) {
|
|
504
|
+
var C = typeof e == "string" ? e : e.displayName || e.name;
|
|
505
|
+
C && (d = `
|
|
504
506
|
|
|
505
|
-
Check the top-level render call using <` +
|
|
507
|
+
Check the top-level render call using <` + C + ">.");
|
|
506
508
|
}
|
|
507
|
-
return
|
|
509
|
+
return d;
|
|
508
510
|
}
|
|
509
511
|
}
|
|
510
|
-
function
|
|
512
|
+
function nt(e, d) {
|
|
511
513
|
{
|
|
512
514
|
if (!e._store || e._store.validated || e.key != null)
|
|
513
515
|
return;
|
|
514
516
|
e._store.validated = !0;
|
|
515
|
-
var
|
|
516
|
-
if (
|
|
517
|
+
var C = Ct(d);
|
|
518
|
+
if (tt[C])
|
|
517
519
|
return;
|
|
518
|
-
|
|
519
|
-
var
|
|
520
|
-
e && e._owner && e._owner !==
|
|
520
|
+
tt[C] = !0;
|
|
521
|
+
var F = "";
|
|
522
|
+
e && e._owner && e._owner !== We.current && (F = " It was passed a child from " + x(e._owner.type) + "."), we(e), f('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', C, F), we(null);
|
|
521
523
|
}
|
|
522
524
|
}
|
|
523
|
-
function
|
|
525
|
+
function rt(e, d) {
|
|
524
526
|
{
|
|
525
527
|
if (typeof e != "object")
|
|
526
528
|
return;
|
|
527
|
-
if (
|
|
528
|
-
for (var
|
|
529
|
-
var
|
|
530
|
-
|
|
529
|
+
if ($(e))
|
|
530
|
+
for (var C = 0; C < e.length; C++) {
|
|
531
|
+
var F = e[C];
|
|
532
|
+
Fe(F) && nt(F, d);
|
|
531
533
|
}
|
|
532
|
-
else if (
|
|
534
|
+
else if (Fe(e))
|
|
533
535
|
e._store && (e._store.validated = !0);
|
|
534
536
|
else if (e) {
|
|
535
|
-
var
|
|
536
|
-
if (typeof
|
|
537
|
-
for (var
|
|
538
|
-
|
|
537
|
+
var de = ae(e);
|
|
538
|
+
if (typeof de == "function" && de !== e.entries)
|
|
539
|
+
for (var fe = de.call(e), oe; !(oe = fe.next()).done; )
|
|
540
|
+
Fe(oe.value) && nt(oe.value, d);
|
|
539
541
|
}
|
|
540
542
|
}
|
|
541
543
|
}
|
|
542
|
-
function
|
|
544
|
+
function wt(e) {
|
|
543
545
|
{
|
|
544
|
-
var
|
|
545
|
-
if (
|
|
546
|
+
var d = e.type;
|
|
547
|
+
if (d == null || typeof d == "string")
|
|
546
548
|
return;
|
|
547
|
-
var
|
|
548
|
-
if (typeof
|
|
549
|
-
|
|
550
|
-
else if (typeof
|
|
549
|
+
var C;
|
|
550
|
+
if (typeof d == "function")
|
|
551
|
+
C = d.propTypes;
|
|
552
|
+
else if (typeof d == "object" && (d.$$typeof === u || // Note: Memo only checks outer props here.
|
|
551
553
|
// Inner props are checked in the reconciler.
|
|
552
|
-
|
|
553
|
-
|
|
554
|
+
d.$$typeof === T))
|
|
555
|
+
C = d.propTypes;
|
|
554
556
|
else
|
|
555
557
|
return;
|
|
556
|
-
if (
|
|
557
|
-
var
|
|
558
|
-
|
|
559
|
-
} else if (
|
|
560
|
-
|
|
561
|
-
var
|
|
562
|
-
|
|
558
|
+
if (C) {
|
|
559
|
+
var F = x(d);
|
|
560
|
+
Ke(C, e.props, "prop", F, e);
|
|
561
|
+
} else if (d.PropTypes !== void 0 && !ze) {
|
|
562
|
+
ze = !0;
|
|
563
|
+
var de = x(d);
|
|
564
|
+
f("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", de || "Unknown");
|
|
563
565
|
}
|
|
564
|
-
typeof
|
|
566
|
+
typeof d.getDefaultProps == "function" && !d.getDefaultProps.isReactClassApproved && f("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
565
567
|
}
|
|
566
568
|
}
|
|
567
|
-
function
|
|
569
|
+
function Et(e) {
|
|
568
570
|
{
|
|
569
|
-
for (var
|
|
570
|
-
var
|
|
571
|
-
if (
|
|
572
|
-
|
|
571
|
+
for (var d = Object.keys(e.props), C = 0; C < d.length; C++) {
|
|
572
|
+
var F = d[C];
|
|
573
|
+
if (F !== "children" && F !== "key") {
|
|
574
|
+
we(e), f("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", F), we(null);
|
|
573
575
|
break;
|
|
574
576
|
}
|
|
575
577
|
}
|
|
576
|
-
e.ref !== null && (
|
|
578
|
+
e.ref !== null && (we(e), f("Invalid attribute `ref` supplied to `React.Fragment`."), we(null));
|
|
577
579
|
}
|
|
578
580
|
}
|
|
579
|
-
var
|
|
580
|
-
function
|
|
581
|
+
var st = {};
|
|
582
|
+
function it(e, d, C, F, de, fe) {
|
|
581
583
|
{
|
|
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 ?
|
|
584
|
+
var oe = v(e);
|
|
585
|
+
if (!oe) {
|
|
586
|
+
var se = "";
|
|
587
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (se += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
588
|
+
var _e = _t();
|
|
589
|
+
_e ? se += _e : se += et();
|
|
590
|
+
var ge;
|
|
591
|
+
e === null ? ge = "null" : $(e) ? ge = "array" : e !== void 0 && e.$$typeof === i ? (ge = "<" + (x(e.type) || "Unknown") + " />", se = " Did you accidentally export a JSX literal instead of a component?") : ge = typeof e, f("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ge, se);
|
|
590
592
|
}
|
|
591
|
-
var
|
|
592
|
-
if (
|
|
593
|
-
return
|
|
594
|
-
if (
|
|
595
|
-
var
|
|
596
|
-
if (
|
|
597
|
-
if (
|
|
598
|
-
if (
|
|
599
|
-
for (var
|
|
600
|
-
|
|
601
|
-
Object.freeze && Object.freeze(
|
|
593
|
+
var pe = Ue(e, d, C, de, fe);
|
|
594
|
+
if (pe == null)
|
|
595
|
+
return pe;
|
|
596
|
+
if (oe) {
|
|
597
|
+
var Se = d.children;
|
|
598
|
+
if (Se !== void 0)
|
|
599
|
+
if (F)
|
|
600
|
+
if ($(Se)) {
|
|
601
|
+
for (var Pe = 0; Pe < Se.length; Pe++)
|
|
602
|
+
rt(Se[Pe], e);
|
|
603
|
+
Object.freeze && Object.freeze(Se);
|
|
602
604
|
} else
|
|
603
|
-
|
|
605
|
+
f("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
606
|
else
|
|
605
|
-
|
|
607
|
+
rt(Se, e);
|
|
606
608
|
}
|
|
607
|
-
if (
|
|
608
|
-
var
|
|
609
|
-
return
|
|
610
|
-
}),
|
|
611
|
-
if (!
|
|
612
|
-
var
|
|
613
|
-
|
|
609
|
+
if (he.call(d, "key")) {
|
|
610
|
+
var Le = x(e), Ee = Object.keys(d).filter(function(Dt) {
|
|
611
|
+
return Dt !== "key";
|
|
612
|
+
}), Ge = Ee.length > 0 ? "{key: someKey, " + Ee.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
613
|
+
if (!st[Le + Ge]) {
|
|
614
|
+
var Rt = Ee.length > 0 ? "{" + Ee.join(": ..., ") + ": ...}" : "{}";
|
|
615
|
+
f(`A props object containing a "key" prop is being spread into JSX:
|
|
614
616
|
let props = %s;
|
|
615
617
|
<%s {...props} />
|
|
616
618
|
React keys must be passed directly to JSX without using spread:
|
|
617
619
|
let props = %s;
|
|
618
|
-
<%s key={someKey} {...props} />`,
|
|
620
|
+
<%s key={someKey} {...props} />`, Ge, Le, Rt, Le), st[Le + Ge] = !0;
|
|
619
621
|
}
|
|
620
622
|
}
|
|
621
|
-
return e ===
|
|
623
|
+
return e === r ? Et(pe) : wt(pe), pe;
|
|
622
624
|
}
|
|
623
625
|
}
|
|
624
|
-
function
|
|
625
|
-
return
|
|
626
|
+
function St(e, d, C) {
|
|
627
|
+
return it(e, d, C, !0);
|
|
626
628
|
}
|
|
627
|
-
function
|
|
628
|
-
return
|
|
629
|
+
function kt(e, d, C) {
|
|
630
|
+
return it(e, d, C, !1);
|
|
629
631
|
}
|
|
630
|
-
var
|
|
631
|
-
|
|
632
|
-
}()),
|
|
632
|
+
var jt = kt, Ot = St;
|
|
633
|
+
Ve.Fragment = r, Ve.jsx = jt, Ve.jsxs = Ot;
|
|
634
|
+
}()), Ve;
|
|
633
635
|
}
|
|
634
|
-
process.env.NODE_ENV === "production" ?
|
|
635
|
-
var
|
|
636
|
-
const
|
|
637
|
-
column:
|
|
638
|
-
currWidth:
|
|
639
|
-
currMinWidth:
|
|
640
|
-
onResize:
|
|
641
|
-
scrollContainerRef:
|
|
636
|
+
process.env.NODE_ENV === "production" ? Xe.exports = Ht() : Xe.exports = Kt();
|
|
637
|
+
var l = Xe.exports;
|
|
638
|
+
const Jt = ({
|
|
639
|
+
column: n,
|
|
640
|
+
currWidth: i,
|
|
641
|
+
currMinWidth: t,
|
|
642
|
+
onResize: r,
|
|
643
|
+
scrollContainerRef: s
|
|
642
644
|
}) => {
|
|
643
|
-
const [
|
|
644
|
-
|
|
645
|
-
const
|
|
646
|
-
!
|
|
647
|
-
var
|
|
648
|
-
const
|
|
649
|
-
let
|
|
650
|
-
|
|
651
|
-
const
|
|
652
|
-
|
|
653
|
-
const
|
|
654
|
-
var
|
|
655
|
-
return typeof window < "u" && ((
|
|
656
|
-
}
|
|
657
|
-
if (
|
|
658
|
-
const
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
})
|
|
645
|
+
const [o, a] = ye(!1), [c, u] = ye(null), [j, g] = ye(0), [T, q] = ye(0), [X, U] = ye(null), K = je(null);
|
|
646
|
+
je(0);
|
|
647
|
+
const ae = je(!1), I = je(null), f = je(0), Y = je(0), k = je(null), B = je(null), ie = ue((m) => {
|
|
648
|
+
!o || !c || !n || (B.current && cancelAnimationFrame(B.current), B.current = requestAnimationFrame(() => {
|
|
649
|
+
var G;
|
|
650
|
+
const v = m.clientX - j, p = n.minWidth || 50;
|
|
651
|
+
let b = T + v;
|
|
652
|
+
b < p && (b = p), n.maxWidth && b > n.maxWidth && (b = n.maxWidth), f.current = b;
|
|
653
|
+
const x = b - T;
|
|
654
|
+
k.current && (k.current.style.transform = `translateX(${x}px)`);
|
|
655
|
+
const O = (L) => {
|
|
656
|
+
var ce;
|
|
657
|
+
return typeof window < "u" && ((ce = window.CSS) != null && ce.escape) ? window.CSS.escape(L) : L.replace(/([#.;?\[\]\s])/g, "\\$1");
|
|
658
|
+
}, P = O(n.key), D = (G = I.current) == null ? void 0 : G.closest("table");
|
|
659
|
+
if (!D) return;
|
|
660
|
+
const H = D.querySelector(`th[data-column-key="${P}"]`);
|
|
661
|
+
if (H && (H.style.width = `${b}px`, H.style.minWidth = `${b}px`), D.querySelectorAll(`td[data-column-key="${P}"]`).forEach((L) => {
|
|
662
|
+
L.style.width = `${b}px`;
|
|
663
|
+
}), n.fixed) {
|
|
664
|
+
const L = (E) => window.getComputedStyle(E).position === "sticky", R = Array.from(
|
|
665
|
+
D.querySelectorAll("th.radar-table__header-cell.leaf-header")
|
|
666
|
+
).filter((E) => L(E)), J = H, S = J ? R.indexOf(J) : -1;
|
|
667
|
+
if (S !== -1) {
|
|
668
|
+
let E = parseFloat(R[S].style.left || "0") || 0, A = R[S].getBoundingClientRect().width;
|
|
669
|
+
for (let N = S + 1; N < R.length; N++) {
|
|
670
|
+
E += Math.floor(A), R[N].style.left = `${E}px`;
|
|
671
|
+
const Q = R[N].getAttribute("data-column-key");
|
|
672
|
+
if (Q) {
|
|
673
|
+
const V = O(Q);
|
|
674
|
+
D.querySelectorAll(`td[data-column-key="${V}"]`).forEach((ne) => {
|
|
675
|
+
ne.style.left = `${E}px`;
|
|
676
|
+
});
|
|
677
|
+
}
|
|
678
|
+
A = R[N].getBoundingClientRect().width;
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
}
|
|
662
682
|
}));
|
|
663
|
-
}, [
|
|
664
|
-
var
|
|
665
|
-
if (
|
|
666
|
-
const
|
|
667
|
-
let
|
|
668
|
-
|
|
669
|
-
const
|
|
670
|
-
|
|
671
|
-
const
|
|
672
|
-
var
|
|
673
|
-
return typeof window < "u" && ((
|
|
674
|
-
}
|
|
675
|
-
if (!
|
|
676
|
-
const
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
})
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
683
|
+
}, [o, j, T, c, s, n, k, B, f]), y = ue(() => {
|
|
684
|
+
var G;
|
|
685
|
+
if (I.current.style.opacity = "", !o || !c) return;
|
|
686
|
+
const m = n.minWidth || 50;
|
|
687
|
+
let v = f.current || T;
|
|
688
|
+
v < m && (v = m), n != null && n.maxWidth && v > n.maxWidth && (v = n.maxWidth);
|
|
689
|
+
const p = v, b = c;
|
|
690
|
+
B.current && (cancelAnimationFrame(B.current), B.current = null), K.current && (clearInterval(K.current), K.current = null), ae.current = !1, k.current && (k.current.style.transform = "translateX(0px)"), a(!1), g(0), q(0), u(null), U(null), f.current = 0, Y.current = 0, document.removeEventListener("mousemove", ie), document.removeEventListener("mouseup", y);
|
|
691
|
+
const x = (L) => {
|
|
692
|
+
var ce;
|
|
693
|
+
return typeof window < "u" && ((ce = window.CSS) != null && ce.escape) ? window.CSS.escape(L) : L.replace(/([#.;?\[\]\s])/g, "\\$1");
|
|
694
|
+
}, O = x(b), P = (G = I.current) == null ? void 0 : G.closest("table");
|
|
695
|
+
if (!P) return;
|
|
696
|
+
const D = P.querySelector(`th[data-column-key="${O}"]`);
|
|
697
|
+
if (D && (D.style.width = `${p}px`, D.style.minWidth = `${p}px`), P.querySelectorAll(`td[data-column-key="${O}"]`).forEach((L) => {
|
|
698
|
+
L.style.width = `${p}px`;
|
|
699
|
+
}), n.fixed) {
|
|
700
|
+
const L = (E) => window.getComputedStyle(E).position === "sticky", R = Array.from(
|
|
701
|
+
P.querySelectorAll("th.radar-table__header-cell.leaf-header")
|
|
702
|
+
).filter((E) => L(E)), J = D, S = J ? R.indexOf(J) : -1;
|
|
703
|
+
if (S !== -1) {
|
|
704
|
+
let E = parseFloat(R[S].style.left || "0") || 0, A = R[S].getBoundingClientRect().width;
|
|
705
|
+
for (let N = S + 1; N < R.length; N++) {
|
|
706
|
+
E += Math.floor(A), R[N].style.left = `${E}px`;
|
|
707
|
+
const Q = R[N].getAttribute("data-column-key");
|
|
708
|
+
if (Q) {
|
|
709
|
+
const V = x(Q);
|
|
710
|
+
P.querySelectorAll(`td[data-column-key="${V}"]`).forEach((ne) => {
|
|
711
|
+
ne.style.left = `${E}px`;
|
|
712
|
+
});
|
|
713
|
+
}
|
|
714
|
+
A = R[N].getBoundingClientRect().width;
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
const Z = setTimeout(() => {
|
|
719
|
+
var R;
|
|
720
|
+
const L = (R = I == null ? void 0 : I.current) == null ? void 0 : R.closest("th"), ce = (L == null ? void 0 : L.getBoundingClientRect().width) ?? p;
|
|
721
|
+
Tt(() => {
|
|
722
|
+
r == null || r(b, ce);
|
|
685
723
|
});
|
|
686
724
|
}, 0);
|
|
687
|
-
return () => clearTimeout(
|
|
688
|
-
}, [
|
|
689
|
-
if (
|
|
690
|
-
const
|
|
691
|
-
|
|
692
|
-
const
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
top: J.top + E.height * 2,
|
|
699
|
-
height: J.height - E.height * 2
|
|
725
|
+
return () => clearTimeout(Z);
|
|
726
|
+
}, [o, c, n, T, r, ie]), _ = ue((m, v, p) => {
|
|
727
|
+
if (m.preventDefault(), !I.current) return;
|
|
728
|
+
const b = I.current.closest("th"), x = (b == null ? void 0 : b.getBoundingClientRect().width) ?? p;
|
|
729
|
+
a(!0), g(m.clientX), q(x), u(v), I.current.style.opacity = "1", I.current.classList.add("radar-table__resize-button_active");
|
|
730
|
+
const O = I.current.getBoundingClientRect(), P = s == null ? void 0 : s.current, D = I.current.closest("table");
|
|
731
|
+
if (P) {
|
|
732
|
+
const H = P.getBoundingClientRect();
|
|
733
|
+
U({
|
|
734
|
+
top: H.top + O.height * 2,
|
|
735
|
+
height: H.height - O.height * 2
|
|
700
736
|
});
|
|
701
|
-
} else if (
|
|
702
|
-
const
|
|
703
|
-
|
|
704
|
-
top:
|
|
705
|
-
height:
|
|
737
|
+
} else if (D) {
|
|
738
|
+
const H = D.getBoundingClientRect();
|
|
739
|
+
U({
|
|
740
|
+
top: H.top,
|
|
741
|
+
height: H.height
|
|
706
742
|
});
|
|
707
743
|
}
|
|
708
|
-
}, [
|
|
709
|
-
return
|
|
710
|
-
|
|
711
|
-
}, [
|
|
712
|
-
|
|
713
|
-
}, [
|
|
714
|
-
/* @__PURE__ */
|
|
744
|
+
}, [s]);
|
|
745
|
+
return He(() => {
|
|
746
|
+
o && (document.addEventListener("mousemove", ie), document.addEventListener("mouseup", y));
|
|
747
|
+
}, [o, ie, y]), He(() => () => {
|
|
748
|
+
B.current && (cancelAnimationFrame(B.current), B.current = null), document.removeEventListener("mousemove", ie), document.removeEventListener("mouseup", y);
|
|
749
|
+
}, [ie, y]), /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
750
|
+
/* @__PURE__ */ l.jsx(
|
|
715
751
|
"button",
|
|
716
752
|
{
|
|
717
|
-
ref:
|
|
753
|
+
ref: I,
|
|
718
754
|
className: "radar-table__resize-button",
|
|
719
|
-
onMouseDown: (
|
|
755
|
+
onMouseDown: (m) => _(m, n.key, i || t || 200),
|
|
720
756
|
title: "Изменить ширину колонки",
|
|
721
|
-
children: /* @__PURE__ */
|
|
757
|
+
children: /* @__PURE__ */ l.jsx("div", {})
|
|
722
758
|
}
|
|
723
759
|
),
|
|
724
|
-
|
|
760
|
+
o && X && /* @__PURE__ */ l.jsx(
|
|
725
761
|
"div",
|
|
726
762
|
{
|
|
727
|
-
ref:
|
|
763
|
+
ref: k,
|
|
728
764
|
className: "radar-table__resize-line",
|
|
729
765
|
style: {
|
|
730
|
-
left: `${
|
|
731
|
-
top: `${
|
|
732
|
-
height: `${
|
|
766
|
+
left: `${Y.current}px`,
|
|
767
|
+
top: `${X.top}px`,
|
|
768
|
+
height: `${X.height}px`,
|
|
733
769
|
transform: "translateX(0px)",
|
|
734
770
|
willChange: "transform"
|
|
735
771
|
}
|
|
736
772
|
}
|
|
737
773
|
)
|
|
738
774
|
] });
|
|
739
|
-
},
|
|
740
|
-
const [
|
|
741
|
-
if (
|
|
742
|
-
const
|
|
743
|
-
|
|
775
|
+
}, Ut = ({ text: n, children: i }) => {
|
|
776
|
+
const [t, r] = ye(!1), [s, o] = ye("left"), a = je(null), c = () => {
|
|
777
|
+
if (a.current) {
|
|
778
|
+
const u = a.current.getBoundingClientRect(), j = window.innerWidth, g = 250, T = 20, q = j - u.left, X = u.right;
|
|
779
|
+
q < g + T && X > g + T ? o("right") : o("left");
|
|
744
780
|
}
|
|
745
|
-
|
|
781
|
+
r(!0);
|
|
746
782
|
};
|
|
747
|
-
return /* @__PURE__ */
|
|
783
|
+
return /* @__PURE__ */ l.jsxs(
|
|
748
784
|
"button",
|
|
749
785
|
{
|
|
750
|
-
ref:
|
|
786
|
+
ref: a,
|
|
751
787
|
className: "radar-table__tooltip-button",
|
|
752
|
-
onMouseOver:
|
|
753
|
-
onMouseOut: () =>
|
|
788
|
+
onMouseOver: c,
|
|
789
|
+
onMouseOut: () => r(!1),
|
|
754
790
|
children: [
|
|
755
|
-
|
|
756
|
-
/* @__PURE__ */
|
|
757
|
-
/* @__PURE__ */
|
|
791
|
+
i || /* @__PURE__ */ l.jsxs("svg", { width: "1.5em", height: "1em", viewBox: "0 0 24 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
792
|
+
/* @__PURE__ */ l.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" }),
|
|
793
|
+
/* @__PURE__ */ l.jsx("path", { fill: "currentColor", d: "M9.064 15V7.958H10.338V15H9.064ZM8.952 6.418V5.046H10.464V6.418H8.952Z", fillOpacity: "0.5" })
|
|
758
794
|
] }),
|
|
759
|
-
/* @__PURE__ */
|
|
795
|
+
/* @__PURE__ */ l.jsx(
|
|
760
796
|
"div",
|
|
761
797
|
{
|
|
762
|
-
className: `radar-table__tooltip-text ${
|
|
763
|
-
children:
|
|
798
|
+
className: `radar-table__tooltip-text ${t ? "radar-table__tooltip-text_visible" : ""} radar-table__tooltip-text--${s}`,
|
|
799
|
+
children: n
|
|
764
800
|
}
|
|
765
801
|
)
|
|
766
802
|
]
|
|
767
803
|
}
|
|
768
804
|
);
|
|
769
|
-
},
|
|
770
|
-
const
|
|
771
|
-
return
|
|
805
|
+
}, bt = $t(null), Yt = () => {
|
|
806
|
+
const n = It(bt);
|
|
807
|
+
return n || {
|
|
772
808
|
activeColumn: null,
|
|
773
809
|
isValidDropZone: () => !1
|
|
774
810
|
};
|
|
775
811
|
};
|
|
776
|
-
function
|
|
777
|
-
children:
|
|
778
|
-
fullConfig:
|
|
779
|
-
onColumnReorder:
|
|
780
|
-
scrollContainerRef:
|
|
812
|
+
function Zt({
|
|
813
|
+
children: n,
|
|
814
|
+
fullConfig: i,
|
|
815
|
+
onColumnReorder: t,
|
|
816
|
+
scrollContainerRef: r
|
|
781
817
|
}) {
|
|
782
|
-
const [
|
|
783
|
-
|
|
818
|
+
const [s, o] = ye(null), [a, c] = ye(40), [u, j] = ye(200), [g, T] = ye(null), q = Lt(
|
|
819
|
+
ot(Nt, {
|
|
784
820
|
activationConstraint: {
|
|
785
821
|
distance: 5
|
|
786
822
|
// Уменьшили дистанцию
|
|
787
823
|
}
|
|
788
824
|
}),
|
|
789
|
-
|
|
790
|
-
coordinateGetter:
|
|
825
|
+
ot(Wt, {
|
|
826
|
+
coordinateGetter: Vt
|
|
791
827
|
})
|
|
792
|
-
),
|
|
793
|
-
const
|
|
794
|
-
if (
|
|
795
|
-
const
|
|
796
|
-
(
|
|
828
|
+
), X = ue((y) => {
|
|
829
|
+
const _ = Pt(y);
|
|
830
|
+
if (_.length > 0) {
|
|
831
|
+
const p = _.filter(
|
|
832
|
+
(b) => b.id.toString().startsWith("drop-zone-")
|
|
797
833
|
);
|
|
798
|
-
if (
|
|
799
|
-
return
|
|
834
|
+
if (p.length > 0)
|
|
835
|
+
return p;
|
|
800
836
|
}
|
|
801
|
-
const
|
|
802
|
-
(
|
|
837
|
+
const v = Mt(y).filter(
|
|
838
|
+
(p) => p.id.toString().startsWith("drop-zone-")
|
|
803
839
|
);
|
|
804
|
-
return
|
|
805
|
-
}, []),
|
|
806
|
-
const
|
|
807
|
-
for (const
|
|
808
|
-
if (
|
|
809
|
-
return { column:
|
|
810
|
-
if (
|
|
811
|
-
const
|
|
812
|
-
if (
|
|
840
|
+
return v.length > 0 ? [v[0]] : [];
|
|
841
|
+
}, []), U = ue((y) => y.some((_) => _.children && _.children.length > 0), []), K = ue((y, _) => {
|
|
842
|
+
const m = (v, p, b = 0, x = null) => {
|
|
843
|
+
for (const O of v) {
|
|
844
|
+
if (O.key === p)
|
|
845
|
+
return { column: O, parent: x, level: b };
|
|
846
|
+
if (O.children && O.children.length > 0) {
|
|
847
|
+
const P = m(O.children, p, b + 1, O);
|
|
848
|
+
if (P) return P;
|
|
813
849
|
}
|
|
814
850
|
}
|
|
815
851
|
return null;
|
|
816
852
|
};
|
|
817
|
-
return
|
|
818
|
-
}, []),
|
|
819
|
-
var
|
|
820
|
-
const
|
|
821
|
-
return
|
|
822
|
-
}, [
|
|
823
|
-
if (y.columnKey ===
|
|
853
|
+
return m(y, _);
|
|
854
|
+
}, []), ae = ue((y, _) => {
|
|
855
|
+
var v;
|
|
856
|
+
const m = K(_, y);
|
|
857
|
+
return m && (m.column.fixed || ((v = m.parent) == null ? void 0 : v.fixed)) || !1;
|
|
858
|
+
}, [K]), I = ue((y, _) => {
|
|
859
|
+
if (y.columnKey === _.columnKey)
|
|
824
860
|
return !1;
|
|
825
|
-
const
|
|
826
|
-
if (
|
|
861
|
+
const m = ae(y.columnKey, i), v = ae(_.columnKey, i);
|
|
862
|
+
if (m !== v)
|
|
827
863
|
return !1;
|
|
828
|
-
if (
|
|
829
|
-
const
|
|
830
|
-
if (!
|
|
864
|
+
if (U(i)) {
|
|
865
|
+
const p = K(i, y.columnKey), b = K(i, _.columnKey);
|
|
866
|
+
if (!p || !b)
|
|
831
867
|
return !1;
|
|
832
|
-
const
|
|
833
|
-
if (!
|
|
834
|
-
const
|
|
835
|
-
return
|
|
868
|
+
const x = y.isLeaf, O = _.isLeaf;
|
|
869
|
+
if (!x && !O) {
|
|
870
|
+
const P = p.level === b.level, D = p.parent === null && b.parent === null || p.parent !== null && b.parent !== null && p.parent.key === b.parent.key;
|
|
871
|
+
return P && D;
|
|
836
872
|
}
|
|
837
|
-
if (
|
|
838
|
-
const
|
|
839
|
-
return
|
|
873
|
+
if (x && O) {
|
|
874
|
+
const P = p.level === b.level, D = p.parent === null && b.parent === null || p.parent !== null && b.parent !== null && p.parent.key === b.parent.key;
|
|
875
|
+
return P && D;
|
|
840
876
|
}
|
|
841
877
|
return !1;
|
|
842
878
|
}
|
|
843
879
|
return !0;
|
|
844
|
-
}, [
|
|
845
|
-
var
|
|
846
|
-
if (!
|
|
847
|
-
const
|
|
848
|
-
if (
|
|
849
|
-
return
|
|
850
|
-
const
|
|
851
|
-
|
|
852
|
-
const
|
|
853
|
-
return
|
|
854
|
-
}
|
|
855
|
-
const
|
|
856
|
-
if (!
|
|
857
|
-
return
|
|
858
|
-
const
|
|
859
|
-
if (
|
|
860
|
-
return { container:
|
|
861
|
-
const
|
|
862
|
-
for (const
|
|
863
|
-
if (
|
|
864
|
-
return
|
|
865
|
-
if (
|
|
866
|
-
const
|
|
867
|
-
if (
|
|
880
|
+
}, [i, U, K, ae]), f = ue((y, _, m) => {
|
|
881
|
+
var R, J;
|
|
882
|
+
if (!U(i)) {
|
|
883
|
+
const S = m.findIndex((V) => V.key === y), E = m.findIndex((V) => V.key === _);
|
|
884
|
+
if (S === -1 || E === -1)
|
|
885
|
+
return m;
|
|
886
|
+
const A = [...m], N = A[S];
|
|
887
|
+
A.splice(S, 1);
|
|
888
|
+
const Q = (S < E, E);
|
|
889
|
+
return A.splice(Q, 0, N), A;
|
|
890
|
+
}
|
|
891
|
+
const v = K(i, y), p = K(i, _);
|
|
892
|
+
if (!v || !p)
|
|
893
|
+
return m;
|
|
894
|
+
const b = JSON.parse(JSON.stringify(i)), x = (S, E) => {
|
|
895
|
+
if (E === null)
|
|
896
|
+
return { container: S, parentObj: null };
|
|
897
|
+
const A = (Q) => {
|
|
898
|
+
for (const V of Q) {
|
|
899
|
+
if (V.key === E)
|
|
900
|
+
return V;
|
|
901
|
+
if (V.children) {
|
|
902
|
+
const M = A(V.children);
|
|
903
|
+
if (M) return M;
|
|
868
904
|
}
|
|
869
905
|
}
|
|
870
906
|
return null;
|
|
871
|
-
},
|
|
907
|
+
}, N = A(S);
|
|
872
908
|
return {
|
|
873
|
-
container: (
|
|
874
|
-
parentObj:
|
|
909
|
+
container: (N == null ? void 0 : N.children) || S,
|
|
910
|
+
parentObj: N
|
|
875
911
|
};
|
|
876
|
-
},
|
|
877
|
-
if (
|
|
878
|
-
return
|
|
879
|
-
const
|
|
880
|
-
if (
|
|
881
|
-
return
|
|
882
|
-
const [
|
|
883
|
-
return
|
|
884
|
-
}, [
|
|
885
|
-
const
|
|
886
|
-
|
|
887
|
-
const
|
|
888
|
-
if (
|
|
889
|
-
const
|
|
890
|
-
|
|
891
|
-
const
|
|
892
|
-
|
|
893
|
-
const
|
|
894
|
-
if (
|
|
895
|
-
const
|
|
896
|
-
|
|
912
|
+
}, O = ((R = v.parent) == null ? void 0 : R.key) || null, P = ((J = p.parent) == null ? void 0 : J.key) || null, { container: D } = x(b, O), { container: H } = x(b, P);
|
|
913
|
+
if (D !== H)
|
|
914
|
+
return m;
|
|
915
|
+
const Z = D.findIndex((S) => S.key === y), G = D.findIndex((S) => S.key === _);
|
|
916
|
+
if (Z === -1 || G === -1)
|
|
917
|
+
return m;
|
|
918
|
+
const [L] = D.splice(Z, 1), ce = (Z < G, G);
|
|
919
|
+
return D.splice(ce, 0, L), b;
|
|
920
|
+
}, [i, U, K]), Y = ue((y) => {
|
|
921
|
+
const _ = y.active.data.current;
|
|
922
|
+
o(_);
|
|
923
|
+
const m = document.querySelector(`[data-column-key="${_.columnKey}"]`);
|
|
924
|
+
if (m) {
|
|
925
|
+
const v = m.getBoundingClientRect();
|
|
926
|
+
j(v.width);
|
|
927
|
+
const p = m.closest("table");
|
|
928
|
+
m.closest('[style*="overflow"]');
|
|
929
|
+
const b = p;
|
|
930
|
+
if (b) {
|
|
931
|
+
const x = b.getBoundingClientRect();
|
|
932
|
+
c(x.height);
|
|
897
933
|
} else
|
|
898
|
-
|
|
934
|
+
c(400);
|
|
899
935
|
} else
|
|
900
|
-
|
|
936
|
+
c(400), j(200);
|
|
901
937
|
document.body.style.cursor = "grabbing";
|
|
902
|
-
}, []),
|
|
903
|
-
const { active:
|
|
904
|
-
if (!
|
|
905
|
-
document.body.style.cursor = "grabbing",
|
|
938
|
+
}, []), k = ue((y) => {
|
|
939
|
+
const { active: _, over: m } = y;
|
|
940
|
+
if (!m || !_.data.current) {
|
|
941
|
+
document.body.style.cursor = "grabbing", T(null);
|
|
906
942
|
return;
|
|
907
943
|
}
|
|
908
|
-
const
|
|
909
|
-
if (!
|
|
910
|
-
document.body.style.cursor = "grabbing",
|
|
944
|
+
const v = _.data.current, p = m.data.current;
|
|
945
|
+
if (!p) {
|
|
946
|
+
document.body.style.cursor = "grabbing", T(null);
|
|
911
947
|
return;
|
|
912
948
|
}
|
|
913
|
-
const
|
|
914
|
-
document.body.style.cursor =
|
|
915
|
-
const
|
|
916
|
-
if (
|
|
917
|
-
const
|
|
918
|
-
let
|
|
919
|
-
const
|
|
920
|
-
let
|
|
921
|
-
if (
|
|
922
|
-
const
|
|
923
|
-
|
|
924
|
-
} else if (
|
|
925
|
-
const
|
|
926
|
-
|
|
949
|
+
const b = I(v, p);
|
|
950
|
+
document.body.style.cursor = b ? "copy" : "not-allowed";
|
|
951
|
+
const x = document.querySelectorAll(`th[data-column-key="${p.columnKey}"]`), O = U(i), P = x.length > 0 ? O && p.isLeaf ? x[x.length - 1] : x[0] : null;
|
|
952
|
+
if (P) {
|
|
953
|
+
const D = P.getBoundingClientRect(), H = P.closest("table");
|
|
954
|
+
let Z = D.left;
|
|
955
|
+
const G = r == null ? void 0 : r.current;
|
|
956
|
+
let L, ce;
|
|
957
|
+
if (G) {
|
|
958
|
+
const R = G.getBoundingClientRect();
|
|
959
|
+
L = R.top, ce = R.height;
|
|
960
|
+
} else if (H) {
|
|
961
|
+
const R = H.getBoundingClientRect();
|
|
962
|
+
L = R.top, ce = R.height;
|
|
927
963
|
} else
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
left:
|
|
931
|
-
top:
|
|
932
|
-
height:
|
|
933
|
-
color:
|
|
964
|
+
L = D.top, ce = D.height * 10;
|
|
965
|
+
T({
|
|
966
|
+
left: Z,
|
|
967
|
+
top: L,
|
|
968
|
+
height: ce,
|
|
969
|
+
color: b ? "#5329FF" : "#ff3b3b"
|
|
934
970
|
});
|
|
935
971
|
} else
|
|
936
|
-
|
|
937
|
-
}, [
|
|
938
|
-
const { active:
|
|
939
|
-
if (document.body.style.cursor = "",
|
|
972
|
+
T(null);
|
|
973
|
+
}, [I]), B = ue((y) => {
|
|
974
|
+
const { active: _, over: m } = y;
|
|
975
|
+
if (document.body.style.cursor = "", o(null), c(40), j(200), T(null), !m || !_.data.current || !m.data.current)
|
|
940
976
|
return;
|
|
941
|
-
const
|
|
942
|
-
if (
|
|
943
|
-
const
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
977
|
+
const v = _.data.current, p = m.data.current;
|
|
978
|
+
if (I(v, p) && t) {
|
|
979
|
+
const b = f(
|
|
980
|
+
v.columnKey,
|
|
981
|
+
p.columnKey,
|
|
982
|
+
i
|
|
947
983
|
);
|
|
948
|
-
|
|
949
|
-
draggedKey:
|
|
950
|
-
targetKey:
|
|
951
|
-
draggedIndex:
|
|
984
|
+
b._dragInfo = {
|
|
985
|
+
draggedKey: v.columnKey,
|
|
986
|
+
targetKey: p.columnKey,
|
|
987
|
+
draggedIndex: v.index,
|
|
952
988
|
targetIndex: -1
|
|
953
989
|
// будет вычислен в TableHeader если нужно
|
|
954
|
-
},
|
|
990
|
+
}, t(b);
|
|
955
991
|
}
|
|
956
|
-
}, [
|
|
957
|
-
activeColumn:
|
|
958
|
-
isValidDropZone:
|
|
992
|
+
}, [I, t, f, i]), ie = {
|
|
993
|
+
activeColumn: s,
|
|
994
|
+
isValidDropZone: I
|
|
959
995
|
};
|
|
960
|
-
return /* @__PURE__ */
|
|
961
|
-
|
|
996
|
+
return /* @__PURE__ */ l.jsx(bt.Provider, { value: ie, children: /* @__PURE__ */ l.jsxs(
|
|
997
|
+
At,
|
|
962
998
|
{
|
|
963
|
-
sensors:
|
|
964
|
-
collisionDetection:
|
|
965
|
-
onDragStart:
|
|
966
|
-
onDragOver:
|
|
967
|
-
onDragEnd:
|
|
999
|
+
sensors: q,
|
|
1000
|
+
collisionDetection: X,
|
|
1001
|
+
onDragStart: Y,
|
|
1002
|
+
onDragOver: k,
|
|
1003
|
+
onDragEnd: B,
|
|
968
1004
|
children: [
|
|
969
|
-
|
|
970
|
-
/* @__PURE__ */
|
|
1005
|
+
n,
|
|
1006
|
+
/* @__PURE__ */ l.jsx(zt, { dropAnimation: null, children: s ? /* @__PURE__ */ l.jsx(
|
|
971
1007
|
"div",
|
|
972
1008
|
{
|
|
973
1009
|
style: {
|
|
974
|
-
width: `${
|
|
975
|
-
height: `${
|
|
1010
|
+
width: `${u}px`,
|
|
1011
|
+
height: `${a}px`,
|
|
976
1012
|
backgroundColor: "#5329FF",
|
|
977
1013
|
opacity: 0.5,
|
|
978
1014
|
borderRadius: "4px",
|
|
@@ -981,16 +1017,16 @@ function Mt({
|
|
|
981
1017
|
}
|
|
982
1018
|
}
|
|
983
1019
|
) : null }),
|
|
984
|
-
|
|
1020
|
+
g && /* @__PURE__ */ l.jsx(
|
|
985
1021
|
"div",
|
|
986
1022
|
{
|
|
987
1023
|
style: {
|
|
988
1024
|
position: "fixed",
|
|
989
|
-
left: `${
|
|
990
|
-
top: `${
|
|
1025
|
+
left: `${g.left}px`,
|
|
1026
|
+
top: `${g.top}px`,
|
|
991
1027
|
width: "2px",
|
|
992
|
-
height: `${
|
|
993
|
-
backgroundColor:
|
|
1028
|
+
height: `${g.height}px`,
|
|
1029
|
+
backgroundColor: g.color,
|
|
994
1030
|
zIndex: 1e4,
|
|
995
1031
|
pointerEvents: "none",
|
|
996
1032
|
opacity: 0.2
|
|
@@ -1001,260 +1037,260 @@ function Mt({
|
|
|
1001
1037
|
}
|
|
1002
1038
|
) });
|
|
1003
1039
|
}
|
|
1004
|
-
const
|
|
1005
|
-
var
|
|
1006
|
-
return typeof window < "u" && ((
|
|
1007
|
-
},
|
|
1040
|
+
const Gt = (n) => {
|
|
1041
|
+
var i;
|
|
1042
|
+
return typeof window < "u" && ((i = window.CSS) != null && i.escape) ? window.CSS.escape(n) : n.replace(/([#.;?\[\]\s])/g, "\\$1");
|
|
1043
|
+
}, Xt = (n) => {
|
|
1008
1044
|
if (typeof document > "u") return null;
|
|
1009
|
-
const
|
|
1010
|
-
return
|
|
1045
|
+
const i = `th[data-column-key="${Gt(n)}"]`, t = document.querySelector(i);
|
|
1046
|
+
return t ? t.getBoundingClientRect().width : null;
|
|
1011
1047
|
};
|
|
1012
|
-
function
|
|
1013
|
-
column:
|
|
1014
|
-
index:
|
|
1015
|
-
config:
|
|
1016
|
-
fullConfig:
|
|
1017
|
-
sorting:
|
|
1018
|
-
onSort:
|
|
1019
|
-
onResize:
|
|
1020
|
-
sortIcon:
|
|
1021
|
-
resizeable:
|
|
1022
|
-
draggableColumns:
|
|
1023
|
-
preset:
|
|
1024
|
-
headerCellClassName:
|
|
1025
|
-
headerCellStyle:
|
|
1026
|
-
headerCellWrapperClassName:
|
|
1027
|
-
headerCellWrapperStyle:
|
|
1028
|
-
stickyHeader:
|
|
1029
|
-
scrollContainerRef:
|
|
1030
|
-
resizeThrottle:
|
|
1048
|
+
function Qt({
|
|
1049
|
+
column: n,
|
|
1050
|
+
index: i,
|
|
1051
|
+
config: t,
|
|
1052
|
+
fullConfig: r,
|
|
1053
|
+
sorting: s,
|
|
1054
|
+
onSort: o,
|
|
1055
|
+
onResize: a,
|
|
1056
|
+
sortIcon: c,
|
|
1057
|
+
resizeable: u,
|
|
1058
|
+
draggableColumns: j,
|
|
1059
|
+
preset: g,
|
|
1060
|
+
headerCellClassName: T,
|
|
1061
|
+
headerCellStyle: q,
|
|
1062
|
+
headerCellWrapperClassName: X,
|
|
1063
|
+
headerCellWrapperStyle: U,
|
|
1064
|
+
stickyHeader: K,
|
|
1065
|
+
scrollContainerRef: ae,
|
|
1066
|
+
resizeThrottle: I
|
|
1031
1067
|
}) {
|
|
1032
|
-
var
|
|
1033
|
-
if (
|
|
1068
|
+
var V;
|
|
1069
|
+
if (n.hidden)
|
|
1034
1070
|
return null;
|
|
1035
|
-
const { activeColumn:
|
|
1036
|
-
|
|
1037
|
-
const
|
|
1038
|
-
if (!
|
|
1039
|
-
const
|
|
1040
|
-
for (const
|
|
1041
|
-
if (
|
|
1042
|
-
return
|
|
1043
|
-
if (
|
|
1044
|
-
const
|
|
1045
|
-
if (
|
|
1071
|
+
const { activeColumn: f, isValidDropZone: Y } = Yt(), k = !n.children || n.children.length === 0;
|
|
1072
|
+
Ye(() => (r == null ? void 0 : r.some((M) => M.children && M.children.length > 0)) || !1, [r]);
|
|
1073
|
+
const B = j, y = ue((M) => {
|
|
1074
|
+
if (!r) return null;
|
|
1075
|
+
const ne = (ee, ve, be = null) => {
|
|
1076
|
+
for (const le of ee) {
|
|
1077
|
+
if (le.key === ve)
|
|
1078
|
+
return be;
|
|
1079
|
+
if (le.children && le.children.length > 0) {
|
|
1080
|
+
const he = ne(le.children, ve, le);
|
|
1081
|
+
if (he !== null) return he;
|
|
1046
1082
|
}
|
|
1047
1083
|
}
|
|
1048
1084
|
return null;
|
|
1049
1085
|
};
|
|
1050
|
-
return
|
|
1051
|
-
}, [
|
|
1052
|
-
if (!
|
|
1053
|
-
const
|
|
1054
|
-
for (const
|
|
1055
|
-
if (
|
|
1056
|
-
return
|
|
1057
|
-
if (
|
|
1058
|
-
const
|
|
1059
|
-
if (
|
|
1086
|
+
return ne(r, M);
|
|
1087
|
+
}, [r])(n.key), _ = n.fixed || (y == null ? void 0 : y.fixed) || !1, v = ue((M) => {
|
|
1088
|
+
if (!r) return 0;
|
|
1089
|
+
const ne = (ee, ve, be = 0) => {
|
|
1090
|
+
for (const le of ee) {
|
|
1091
|
+
if (le.key === ve)
|
|
1092
|
+
return be;
|
|
1093
|
+
if (le.children && le.children.length > 0) {
|
|
1094
|
+
const he = ne(le.children, ve, be + 1);
|
|
1095
|
+
if (he !== -1) return he;
|
|
1060
1096
|
}
|
|
1061
1097
|
}
|
|
1062
1098
|
return -1;
|
|
1063
1099
|
};
|
|
1064
|
-
return
|
|
1065
|
-
}, [
|
|
1066
|
-
attributes:
|
|
1067
|
-
listeners:
|
|
1068
|
-
setNodeRef:
|
|
1069
|
-
isDragging:
|
|
1070
|
-
} =
|
|
1071
|
-
id: `column-${
|
|
1100
|
+
return ne(r, M);
|
|
1101
|
+
}, [r])(n.key), {
|
|
1102
|
+
attributes: p,
|
|
1103
|
+
listeners: b,
|
|
1104
|
+
setNodeRef: x,
|
|
1105
|
+
isDragging: O
|
|
1106
|
+
} = Ft({
|
|
1107
|
+
id: `column-${n.key}`,
|
|
1072
1108
|
data: {
|
|
1073
1109
|
type: "table-column",
|
|
1074
|
-
columnKey:
|
|
1075
|
-
isFixed:
|
|
1110
|
+
columnKey: n.key,
|
|
1111
|
+
isFixed: _,
|
|
1076
1112
|
parentKey: y == null ? void 0 : y.key,
|
|
1077
|
-
level:
|
|
1078
|
-
index:
|
|
1079
|
-
isLeaf:
|
|
1113
|
+
level: v,
|
|
1114
|
+
index: i,
|
|
1115
|
+
isLeaf: k
|
|
1080
1116
|
// ✅ Добавляем информацию о типе колонки
|
|
1081
1117
|
},
|
|
1082
|
-
disabled: !
|
|
1118
|
+
disabled: !B
|
|
1083
1119
|
}), {
|
|
1084
|
-
setNodeRef:
|
|
1085
|
-
isOver:
|
|
1086
|
-
} =
|
|
1087
|
-
id: `drop-zone-${
|
|
1120
|
+
setNodeRef: P,
|
|
1121
|
+
isOver: D
|
|
1122
|
+
} = Bt({
|
|
1123
|
+
id: `drop-zone-${n.key}`,
|
|
1088
1124
|
data: {
|
|
1089
1125
|
type: "column-drop-zone",
|
|
1090
|
-
columnKey:
|
|
1091
|
-
isFixed:
|
|
1092
|
-
accepts: [
|
|
1093
|
-
isLeaf:
|
|
1126
|
+
columnKey: n.key,
|
|
1127
|
+
isFixed: _,
|
|
1128
|
+
accepts: [_ ? "fixed" : "non-fixed"],
|
|
1129
|
+
isLeaf: k
|
|
1094
1130
|
// ✅ Добавляем информацию о типе колонки
|
|
1095
1131
|
},
|
|
1096
1132
|
disabled: !1
|
|
1097
|
-
}),
|
|
1098
|
-
|
|
1099
|
-
}, [
|
|
1100
|
-
if (!
|
|
1101
|
-
const
|
|
1133
|
+
}), H = ue((M) => {
|
|
1134
|
+
x(M), P(M);
|
|
1135
|
+
}, [x, P]), Z = Ye(() => {
|
|
1136
|
+
if (!f || !D) return !1;
|
|
1137
|
+
const M = {
|
|
1102
1138
|
type: "column-drop-zone",
|
|
1103
|
-
columnKey:
|
|
1104
|
-
isFixed:
|
|
1105
|
-
accepts: [
|
|
1106
|
-
isLeaf:
|
|
1139
|
+
columnKey: n.key,
|
|
1140
|
+
isFixed: _,
|
|
1141
|
+
accepts: [_ ? "fixed" : "non-fixed"],
|
|
1142
|
+
isLeaf: k
|
|
1107
1143
|
};
|
|
1108
|
-
return
|
|
1109
|
-
}, [
|
|
1110
|
-
let
|
|
1111
|
-
if (!
|
|
1112
|
-
return
|
|
1113
|
-
for (let
|
|
1114
|
-
const
|
|
1115
|
-
|
|
1116
|
-
}
|
|
1117
|
-
return
|
|
1118
|
-
}, [
|
|
1119
|
-
|
|
1120
|
-
if (!
|
|
1121
|
-
|
|
1144
|
+
return Y(f, M);
|
|
1145
|
+
}, [f, D, n.key, _, Y, k]), G = Ye(() => O ? "grabbing" : D && f ? Z ? "copy" : "not-allowed" : "default", [O, D, f, Z]), L = n.fixed && !n.width ? 200 : n.width, ce = n.fixed && !n.minWidth ? 200 : n.minWidth, R = ue(() => {
|
|
1146
|
+
let M = n.fixedLeft || 0;
|
|
1147
|
+
if (!_)
|
|
1148
|
+
return M;
|
|
1149
|
+
for (let ne = 0; ne < i; ne++) {
|
|
1150
|
+
const ee = t[ne];
|
|
1151
|
+
ee.fixed && !ee.hidden && (M += (ee.width || ee.minWidth || 200) + (ee.fixedLeft || 0));
|
|
1152
|
+
}
|
|
1153
|
+
return M;
|
|
1154
|
+
}, [n.fixedLeft, t, i, _]), [J, S] = ye(() => R());
|
|
1155
|
+
Qe(() => {
|
|
1156
|
+
if (!_) {
|
|
1157
|
+
S(R());
|
|
1122
1158
|
return;
|
|
1123
1159
|
}
|
|
1124
|
-
let
|
|
1125
|
-
for (let
|
|
1126
|
-
const
|
|
1127
|
-
if (
|
|
1128
|
-
const
|
|
1129
|
-
|
|
1130
|
-
}
|
|
1131
|
-
}
|
|
1132
|
-
|
|
1133
|
-
}, [
|
|
1134
|
-
const
|
|
1135
|
-
if (
|
|
1136
|
-
return
|
|
1137
|
-
if (
|
|
1138
|
-
const
|
|
1139
|
-
for (const
|
|
1140
|
-
if (
|
|
1141
|
-
if (
|
|
1142
|
-
return
|
|
1143
|
-
const
|
|
1144
|
-
if (
|
|
1160
|
+
let M = n.fixedLeft || 0;
|
|
1161
|
+
for (let ne = 0; ne < i; ne++) {
|
|
1162
|
+
const ee = t[ne];
|
|
1163
|
+
if (ee.fixed && !ee.hidden) {
|
|
1164
|
+
const ve = ee.width || ee.minWidth || 200, be = Xt(ee.key);
|
|
1165
|
+
M += Math.floor(be ?? ve) + (ee.fixedLeft || 0) - 0.05;
|
|
1166
|
+
}
|
|
1167
|
+
}
|
|
1168
|
+
S(M);
|
|
1169
|
+
}, [n.fixedLeft, n.width, n.minWidth, t, i, _, R]);
|
|
1170
|
+
const A = ((M) => {
|
|
1171
|
+
if (M.groupColor)
|
|
1172
|
+
return M.groupColor;
|
|
1173
|
+
if (r) {
|
|
1174
|
+
const ne = (ve, be) => {
|
|
1175
|
+
for (const le of ve)
|
|
1176
|
+
if (le.children) {
|
|
1177
|
+
if (le.children.some((Oe) => Oe.key === be))
|
|
1178
|
+
return le;
|
|
1179
|
+
const he = ne(le.children, be);
|
|
1180
|
+
if (he) return he;
|
|
1145
1181
|
}
|
|
1146
1182
|
return null;
|
|
1147
|
-
},
|
|
1148
|
-
return
|
|
1183
|
+
}, ee = ne(r, M.key);
|
|
1184
|
+
return ee == null ? void 0 : ee.groupColor;
|
|
1149
1185
|
}
|
|
1150
|
-
})(
|
|
1151
|
-
let
|
|
1152
|
-
return
|
|
1186
|
+
})(n);
|
|
1187
|
+
let N = "currentColor", Q = "currentColor";
|
|
1188
|
+
return s.sort_field === n.key && (s.sort_order === "ASC" && (N = "#5329FF"), s.sort_order === "DESC" && (Q = "#5329FF")), /* @__PURE__ */ l.jsx(
|
|
1153
1189
|
"th",
|
|
1154
1190
|
{
|
|
1155
|
-
ref:
|
|
1156
|
-
"data-column-key":
|
|
1191
|
+
ref: H,
|
|
1192
|
+
"data-column-key": n.key,
|
|
1157
1193
|
className: `
|
|
1158
1194
|
radar-table__header-cell
|
|
1159
|
-
${
|
|
1160
|
-
${
|
|
1161
|
-
${
|
|
1162
|
-
${
|
|
1163
|
-
${
|
|
1164
|
-
${
|
|
1165
|
-
${
|
|
1166
|
-
${
|
|
1167
|
-
colSpan:
|
|
1168
|
-
rowSpan:
|
|
1195
|
+
${g ? g + "__header-cell" : ""}
|
|
1196
|
+
${T || ""}
|
|
1197
|
+
${O ? "dragging" : ""}
|
|
1198
|
+
${D ? "drag-over" : ""}
|
|
1199
|
+
${Z && D ? "valid-drop-zone" : ""}
|
|
1200
|
+
${D && !Z ? "invalid-drop-zone" : ""}
|
|
1201
|
+
${k ? "leaf-header" : "group-header"}
|
|
1202
|
+
${n.className || ""}`,
|
|
1203
|
+
colSpan: n.colSpan || 1,
|
|
1204
|
+
rowSpan: n.rowSpan || 1,
|
|
1169
1205
|
style: {
|
|
1170
|
-
width:
|
|
1206
|
+
width: L,
|
|
1171
1207
|
//minWidth: currWidth,
|
|
1172
|
-
position:
|
|
1173
|
-
top:
|
|
1174
|
-
left:
|
|
1175
|
-
borderRight:
|
|
1176
|
-
zIndex:
|
|
1177
|
-
backgroundColor:
|
|
1178
|
-
cursor:
|
|
1179
|
-
...
|
|
1180
|
-
...
|
|
1208
|
+
position: n.fixed ? "sticky" : "static",
|
|
1209
|
+
top: K && typeof K == "number" ? K : 0,
|
|
1210
|
+
left: J,
|
|
1211
|
+
borderRight: n.fixed && !((V = t[i + 1]) != null && V.fixed) ? "1px solid #E8E8E8" : "none",
|
|
1212
|
+
zIndex: n.fixed ? 2 : "auto",
|
|
1213
|
+
backgroundColor: A,
|
|
1214
|
+
cursor: G,
|
|
1215
|
+
...q,
|
|
1216
|
+
...n.style
|
|
1181
1217
|
},
|
|
1182
|
-
children: /* @__PURE__ */
|
|
1218
|
+
children: /* @__PURE__ */ l.jsxs(
|
|
1183
1219
|
"div",
|
|
1184
1220
|
{
|
|
1185
1221
|
className: `
|
|
1186
1222
|
radar-table__header-cell-wrapper
|
|
1187
|
-
${
|
|
1188
|
-
${
|
|
1223
|
+
${g ? g + "__header-cell-wrapper" : ""}
|
|
1224
|
+
${X || ""}
|
|
1189
1225
|
`,
|
|
1190
|
-
style:
|
|
1226
|
+
style: U,
|
|
1191
1227
|
children: [
|
|
1192
|
-
|
|
1228
|
+
B && /* @__PURE__ */ l.jsx(
|
|
1193
1229
|
"div",
|
|
1194
1230
|
{
|
|
1195
|
-
className: `radar-table__drag-handle ${
|
|
1196
|
-
...
|
|
1197
|
-
...
|
|
1198
|
-
style: { cursor:
|
|
1199
|
-
children: /* @__PURE__ */
|
|
1200
|
-
/* @__PURE__ */
|
|
1201
|
-
/* @__PURE__ */
|
|
1202
|
-
/* @__PURE__ */
|
|
1203
|
-
/* @__PURE__ */
|
|
1204
|
-
/* @__PURE__ */
|
|
1205
|
-
/* @__PURE__ */
|
|
1231
|
+
className: `radar-table__drag-handle ${O ? "dragging" : ""} ${k ? "" : "group-drag-handle"}`,
|
|
1232
|
+
...p,
|
|
1233
|
+
...b,
|
|
1234
|
+
style: { cursor: O ? "grabbing" : "grab" },
|
|
1235
|
+
children: /* @__PURE__ */ l.jsxs("svg", { width: "8", height: "10", viewBox: "0 0 16 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
1236
|
+
/* @__PURE__ */ l.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" }),
|
|
1237
|
+
/* @__PURE__ */ l.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" }),
|
|
1238
|
+
/* @__PURE__ */ l.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" }),
|
|
1239
|
+
/* @__PURE__ */ l.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" }),
|
|
1240
|
+
/* @__PURE__ */ l.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" }),
|
|
1241
|
+
/* @__PURE__ */ l.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" })
|
|
1206
1242
|
] })
|
|
1207
1243
|
}
|
|
1208
1244
|
),
|
|
1209
|
-
/* @__PURE__ */
|
|
1245
|
+
/* @__PURE__ */ l.jsx("div", { className: "radar-table__header-cell-text-wrapper", children: /* @__PURE__ */ l.jsx(
|
|
1210
1246
|
"span",
|
|
1211
1247
|
{
|
|
1212
|
-
title:
|
|
1248
|
+
title: n.title,
|
|
1213
1249
|
onClick: () => {
|
|
1214
|
-
const { sort_field:
|
|
1215
|
-
let
|
|
1216
|
-
columnKey:
|
|
1250
|
+
const { sort_field: M, sort_order: ne } = s;
|
|
1251
|
+
let ee = {
|
|
1252
|
+
columnKey: n.key,
|
|
1217
1253
|
direction: "ASC"
|
|
1218
1254
|
};
|
|
1219
|
-
|
|
1255
|
+
M === n.key ? ne === "ASC" ? ee.direction = "DESC" : ne === "DESC" && (ee.columnKey = void 0, ee.direction = void 0) : (ee.columnKey = n.key, ee.direction = "ASC"), o(ee.columnKey, ee.direction);
|
|
1220
1256
|
},
|
|
1221
1257
|
style: {
|
|
1222
|
-
cursor:
|
|
1258
|
+
cursor: n.sortable ? "pointer" : "default",
|
|
1223
1259
|
userSelect: "none"
|
|
1224
1260
|
},
|
|
1225
|
-
children:
|
|
1261
|
+
children: n.title
|
|
1226
1262
|
}
|
|
1227
1263
|
) }),
|
|
1228
|
-
|
|
1229
|
-
/* @__PURE__ */
|
|
1264
|
+
n.sortable && !c && k && /* @__PURE__ */ l.jsxs("div", { className: "radar-table__sort-button-wrapper", children: [
|
|
1265
|
+
/* @__PURE__ */ l.jsx(
|
|
1230
1266
|
"button",
|
|
1231
1267
|
{
|
|
1232
1268
|
className: "radar-table__sort-button",
|
|
1233
|
-
onClick: (
|
|
1234
|
-
title: `Сортировать по ${
|
|
1235
|
-
children: /* @__PURE__ */
|
|
1269
|
+
onClick: (M) => o(n.key, "ASC"),
|
|
1270
|
+
title: `Сортировать по ${n.title}`,
|
|
1271
|
+
children: /* @__PURE__ */ l.jsx("svg", { width: "12", height: "7", viewBox: "0 0 12 7", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: { width: 12, height: 7 }, children: /* @__PURE__ */ l.jsx("path", { fill: N, d: "M4.99264 0.21967C5.28553 -0.0732233 5.76041 -0.0732233 6.0533 0.21967L10.8263 4.99264C11.1192 5.28553 11.1192 5.76041 10.8263 6.0533C10.5334 6.34619 10.0585 6.34619 9.76561 6.0533L6.27297 2.56066L5.5 1.78769L4.77297 2.56066L1.28033 6.0533C0.987437 6.34619 0.512563 6.34619 0.21967 6.0533C-0.0732234 5.76041 -0.0732234 5.28553 0.21967 4.99264L4.99264 0.21967Z" }) })
|
|
1236
1272
|
}
|
|
1237
1273
|
),
|
|
1238
|
-
/* @__PURE__ */
|
|
1274
|
+
/* @__PURE__ */ l.jsx(
|
|
1239
1275
|
"button",
|
|
1240
1276
|
{
|
|
1241
1277
|
className: "radar-table__sort-button",
|
|
1242
|
-
onClick: (
|
|
1243
|
-
title: `Сортировать по ${
|
|
1244
|
-
children: /* @__PURE__ */
|
|
1278
|
+
onClick: (M) => o(n.key, "DESC"),
|
|
1279
|
+
title: `Сортировать по ${n.title}`,
|
|
1280
|
+
children: /* @__PURE__ */ l.jsx("svg", { width: "12", height: "7", viewBox: "0 0 12 7", fill: "none", xmlns: "http://www.w3.org/2000/svg", style: { width: 12, height: 7 }, children: /* @__PURE__ */ l.jsx("path", { fill: Q, d: "M4.99264 6.78033C5.28553 7.07322 5.76041 7.07322 6.0533 6.78033L10.8263 2.00736C11.1192 1.71447 11.1192 1.23959 10.8263 0.946699C10.5334 0.653806 10.0585 0.653806 9.76561 0.946699L6.27297 4.43934L5.5 5.21231L4.77297 4.43934L1.28033 0.946699C0.987437 0.653806 0.512563 0.653806 0.21967 0.946699C-0.0732234 1.23959 -0.0732234 1.71447 0.21967 2.00736L4.99264 6.78033Z" }) })
|
|
1245
1281
|
}
|
|
1246
1282
|
)
|
|
1247
1283
|
] }),
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1284
|
+
n.sortable && c && k && c(s.sort_field, s.sort_order),
|
|
1285
|
+
n.tooltipText && /* @__PURE__ */ l.jsx(Ut, { text: n.tooltipText, children: n.tooltipIcon }),
|
|
1286
|
+
u && k && /* @__PURE__ */ l.jsx(
|
|
1287
|
+
Jt,
|
|
1252
1288
|
{
|
|
1253
|
-
column:
|
|
1254
|
-
currWidth:
|
|
1255
|
-
currMinWidth:
|
|
1256
|
-
onResize:
|
|
1257
|
-
scrollContainerRef:
|
|
1289
|
+
column: n,
|
|
1290
|
+
currWidth: L,
|
|
1291
|
+
currMinWidth: ce,
|
|
1292
|
+
onResize: a,
|
|
1293
|
+
scrollContainerRef: ae
|
|
1258
1294
|
}
|
|
1259
1295
|
)
|
|
1260
1296
|
]
|
|
@@ -1263,381 +1299,986 @@ function Jt({
|
|
|
1263
1299
|
}
|
|
1264
1300
|
);
|
|
1265
1301
|
}
|
|
1266
|
-
function
|
|
1267
|
-
config:
|
|
1268
|
-
fullConfig:
|
|
1269
|
-
onSort:
|
|
1270
|
-
onResize:
|
|
1271
|
-
onColumnReorder:
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
defaultSorting: v,
|
|
1290
|
-
resizeThrottle: T
|
|
1302
|
+
function ct({
|
|
1303
|
+
config: n,
|
|
1304
|
+
fullConfig: i,
|
|
1305
|
+
onSort: t,
|
|
1306
|
+
onResize: r,
|
|
1307
|
+
onColumnReorder: s,
|
|
1308
|
+
sortIcon: o,
|
|
1309
|
+
resizeable: a,
|
|
1310
|
+
draggableColumns: c,
|
|
1311
|
+
preset: u,
|
|
1312
|
+
headerClassName: j,
|
|
1313
|
+
headerStyle: g,
|
|
1314
|
+
headerRowClassName: T,
|
|
1315
|
+
headerRowStyle: q,
|
|
1316
|
+
headerCellClassName: X,
|
|
1317
|
+
headerCellStyle: U,
|
|
1318
|
+
headerCellWrapperClassName: K,
|
|
1319
|
+
headerCellWrapperStyle: ae,
|
|
1320
|
+
stickyHeader: I,
|
|
1321
|
+
scrollContainerRef: f,
|
|
1322
|
+
sorting: Y,
|
|
1323
|
+
defaultSorting: k,
|
|
1324
|
+
resizeThrottle: B
|
|
1291
1325
|
}) {
|
|
1292
|
-
const [
|
|
1293
|
-
|
|
1294
|
-
!
|
|
1295
|
-
}, [
|
|
1296
|
-
const b =
|
|
1297
|
-
const { sort_field:
|
|
1298
|
-
let
|
|
1299
|
-
sort_field:
|
|
1300
|
-
sort_order:
|
|
1326
|
+
const [ie, y] = ye(() => k || { sort_field: void 0, sort_order: void 0 }), [_, m] = ye(null), v = Y !== void 0, p = v ? Y : ie;
|
|
1327
|
+
He(() => {
|
|
1328
|
+
!v && k && y(k);
|
|
1329
|
+
}, [k, v]);
|
|
1330
|
+
const b = ue((x, O) => {
|
|
1331
|
+
const { sort_field: P, sort_order: D } = p;
|
|
1332
|
+
let H = {
|
|
1333
|
+
sort_field: x,
|
|
1334
|
+
sort_order: O
|
|
1301
1335
|
};
|
|
1302
|
-
|
|
1336
|
+
P === x && D === O && (H = {
|
|
1303
1337
|
sort_field: void 0,
|
|
1304
1338
|
sort_order: void 0
|
|
1305
|
-
}),
|
|
1306
|
-
}, [
|
|
1307
|
-
return
|
|
1339
|
+
}), v || y(H), t == null || t(H.sort_field, H.sort_order);
|
|
1340
|
+
}, [p, t, v]);
|
|
1341
|
+
return Qe(() => {
|
|
1342
|
+
if (n.some((x) => x.children || !a)) {
|
|
1343
|
+
m(n);
|
|
1344
|
+
return;
|
|
1345
|
+
} else {
|
|
1346
|
+
const x = () => {
|
|
1347
|
+
const O = f == null ? void 0 : f.current;
|
|
1348
|
+
if (!O) return;
|
|
1349
|
+
const P = O.clientWidth, D = n.reduce((Z, G) => Z + ((G == null ? void 0 : G.width) ?? 0), 0);
|
|
1350
|
+
if (D > P) {
|
|
1351
|
+
m(n);
|
|
1352
|
+
return;
|
|
1353
|
+
}
|
|
1354
|
+
const H = n.map((Z) => {
|
|
1355
|
+
const G = ((Z == null ? void 0 : Z.width) ?? 0) / D, L = Math.floor(P * G);
|
|
1356
|
+
return Z.width = Math.round(L), Z.maxWidth = L * 2, Z;
|
|
1357
|
+
});
|
|
1358
|
+
m([...H]), requestAnimationFrame(() => {
|
|
1359
|
+
const Z = (J) => {
|
|
1360
|
+
var S;
|
|
1361
|
+
return typeof window < "u" && ((S = window.CSS) != null && S.escape) ? window.CSS.escape(J) : J.replace(/([#.;?\[\]\s])/g, "\\$1");
|
|
1362
|
+
}, G = O.querySelector("table");
|
|
1363
|
+
if (!G) return;
|
|
1364
|
+
H.forEach((J) => {
|
|
1365
|
+
if (J.hidden) return;
|
|
1366
|
+
const S = Z(J.key), E = J.width || J.minWidth || 200, A = G.querySelector(`th[data-column-key="${S}"]`);
|
|
1367
|
+
A && (A.style.width = `${E}px`, A.style.minWidth = `${E}px`), G.querySelectorAll(`td[data-column-key="${S}"]`).forEach((Q) => {
|
|
1368
|
+
Q.style.width = `${E}px`;
|
|
1369
|
+
});
|
|
1370
|
+
});
|
|
1371
|
+
const L = (J) => window.getComputedStyle(J).position === "sticky", R = Array.from(
|
|
1372
|
+
G.querySelectorAll("th.radar-table__header-cell.leaf-header")
|
|
1373
|
+
).filter((J) => L(J));
|
|
1374
|
+
if (R.length > 0) {
|
|
1375
|
+
let J = 0;
|
|
1376
|
+
R.forEach((S, E) => {
|
|
1377
|
+
if (E === 0) {
|
|
1378
|
+
const N = S.getAttribute("data-column-key"), Q = H.find((V) => V.key === N);
|
|
1379
|
+
J = (Q == null ? void 0 : Q.fixedLeft) || 0, S.style.left = `${J}px`;
|
|
1380
|
+
} else {
|
|
1381
|
+
const N = R[E - 1].getBoundingClientRect().width;
|
|
1382
|
+
J += Math.floor(N), S.style.left = `${J}px`;
|
|
1383
|
+
}
|
|
1384
|
+
const A = S.getAttribute("data-column-key");
|
|
1385
|
+
if (A) {
|
|
1386
|
+
const N = Z(A);
|
|
1387
|
+
G.querySelectorAll(`td[data-column-key="${N}"]`).forEach((V) => {
|
|
1388
|
+
V.style.left = `${S.style.left}`;
|
|
1389
|
+
});
|
|
1390
|
+
}
|
|
1391
|
+
});
|
|
1392
|
+
}
|
|
1393
|
+
});
|
|
1394
|
+
};
|
|
1395
|
+
return x(), window.addEventListener("resize", x), () => window.removeEventListener("resize", x);
|
|
1396
|
+
}
|
|
1397
|
+
}, [n]), /* @__PURE__ */ l.jsx(
|
|
1308
1398
|
"tr",
|
|
1309
1399
|
{
|
|
1310
|
-
className: `radar-table__header-row ${
|
|
1311
|
-
style:
|
|
1312
|
-
children:
|
|
1313
|
-
|
|
1400
|
+
className: `radar-table__header-row ${u ? u + "__header-row" : ""} ${T || ""}`,
|
|
1401
|
+
style: q,
|
|
1402
|
+
children: _ == null ? void 0 : _.map((x, O) => /* @__PURE__ */ l.jsx(
|
|
1403
|
+
Qt,
|
|
1314
1404
|
{
|
|
1315
|
-
column:
|
|
1316
|
-
index:
|
|
1317
|
-
config:
|
|
1318
|
-
fullConfig:
|
|
1319
|
-
sorting:
|
|
1405
|
+
column: x,
|
|
1406
|
+
index: O,
|
|
1407
|
+
config: n,
|
|
1408
|
+
fullConfig: i,
|
|
1409
|
+
sorting: p,
|
|
1320
1410
|
onSort: b,
|
|
1321
|
-
onResize:
|
|
1322
|
-
sortIcon:
|
|
1323
|
-
resizeable:
|
|
1324
|
-
draggableColumns:
|
|
1325
|
-
preset:
|
|
1326
|
-
headerCellClassName:
|
|
1327
|
-
headerCellStyle:
|
|
1328
|
-
headerCellWrapperClassName:
|
|
1329
|
-
headerCellWrapperStyle:
|
|
1330
|
-
stickyHeader:
|
|
1331
|
-
scrollContainerRef:
|
|
1332
|
-
resizeThrottle:
|
|
1411
|
+
onResize: r,
|
|
1412
|
+
sortIcon: o,
|
|
1413
|
+
resizeable: a,
|
|
1414
|
+
draggableColumns: c,
|
|
1415
|
+
preset: u,
|
|
1416
|
+
headerCellClassName: X,
|
|
1417
|
+
headerCellStyle: U,
|
|
1418
|
+
headerCellWrapperClassName: K,
|
|
1419
|
+
headerCellWrapperStyle: ae,
|
|
1420
|
+
stickyHeader: I,
|
|
1421
|
+
scrollContainerRef: f,
|
|
1422
|
+
resizeThrottle: B
|
|
1333
1423
|
},
|
|
1334
|
-
|
|
1424
|
+
x.key
|
|
1335
1425
|
))
|
|
1336
1426
|
}
|
|
1337
1427
|
);
|
|
1338
1428
|
}
|
|
1339
|
-
function
|
|
1429
|
+
function en(n) {
|
|
1340
1430
|
const {
|
|
1341
|
-
config:
|
|
1342
|
-
preset:
|
|
1343
|
-
headerClassName:
|
|
1344
|
-
headerStyle:
|
|
1345
|
-
stickyHeader:
|
|
1346
|
-
headerRowClassName:
|
|
1347
|
-
headerRowStyle:
|
|
1348
|
-
headerCellClassName:
|
|
1349
|
-
headerCellStyle:
|
|
1350
|
-
headerCellWrapperClassName:
|
|
1351
|
-
headerCellWrapperStyle:
|
|
1352
|
-
onResize:
|
|
1353
|
-
onColumnReorder:
|
|
1354
|
-
sorting:
|
|
1355
|
-
defaultSorting:
|
|
1356
|
-
} =
|
|
1357
|
-
if (!
|
|
1431
|
+
config: i,
|
|
1432
|
+
preset: t,
|
|
1433
|
+
headerClassName: r,
|
|
1434
|
+
headerStyle: s,
|
|
1435
|
+
stickyHeader: o,
|
|
1436
|
+
headerRowClassName: a,
|
|
1437
|
+
headerRowStyle: c,
|
|
1438
|
+
headerCellClassName: u,
|
|
1439
|
+
headerCellStyle: j,
|
|
1440
|
+
headerCellWrapperClassName: g,
|
|
1441
|
+
headerCellWrapperStyle: T,
|
|
1442
|
+
onResize: q,
|
|
1443
|
+
onColumnReorder: X,
|
|
1444
|
+
sorting: U,
|
|
1445
|
+
defaultSorting: K
|
|
1446
|
+
} = n, ae = i.some((k) => k.children && k.children.length > 0), I = Ye(() => {
|
|
1447
|
+
if (!ae)
|
|
1358
1448
|
return null;
|
|
1359
|
-
const
|
|
1360
|
-
|
|
1361
|
-
|
|
1449
|
+
const k = {}, B = (ie, y = 0) => {
|
|
1450
|
+
k[y] || (k[y] = []), ie.forEach((_) => {
|
|
1451
|
+
_.hidden || (k[y].push(_), _.children && _.children.length > 0 && B(_.children, y + 1));
|
|
1362
1452
|
});
|
|
1363
1453
|
};
|
|
1364
|
-
return
|
|
1365
|
-
}, [
|
|
1366
|
-
if (!
|
|
1367
|
-
const
|
|
1368
|
-
for (const
|
|
1369
|
-
if (
|
|
1370
|
-
if (
|
|
1371
|
-
const
|
|
1372
|
-
if (
|
|
1454
|
+
return B(i), k;
|
|
1455
|
+
}, [i, ae]), f = ue((k, B) => {
|
|
1456
|
+
if (!q) return;
|
|
1457
|
+
const ie = (m, v) => {
|
|
1458
|
+
for (const p of m) {
|
|
1459
|
+
if (p.key === v) return p;
|
|
1460
|
+
if (p.children) {
|
|
1461
|
+
const b = ie(p.children, v);
|
|
1462
|
+
if (b) return b;
|
|
1373
1463
|
}
|
|
1374
1464
|
}
|
|
1375
1465
|
return null;
|
|
1376
|
-
}, y = (
|
|
1377
|
-
if (!
|
|
1378
|
-
return [
|
|
1379
|
-
const
|
|
1380
|
-
return
|
|
1381
|
-
|
|
1382
|
-
}),
|
|
1383
|
-
},
|
|
1384
|
-
if (
|
|
1385
|
-
if (
|
|
1386
|
-
const
|
|
1387
|
-
if (
|
|
1388
|
-
const
|
|
1389
|
-
|
|
1390
|
-
const
|
|
1391
|
-
|
|
1466
|
+
}, y = (m) => {
|
|
1467
|
+
if (!m.children || m.children.length === 0)
|
|
1468
|
+
return [m];
|
|
1469
|
+
const v = [];
|
|
1470
|
+
return m.children.forEach((p) => {
|
|
1471
|
+
p.hidden || v.push(...y(p));
|
|
1472
|
+
}), v;
|
|
1473
|
+
}, _ = ie(i, k);
|
|
1474
|
+
if (_)
|
|
1475
|
+
if (_.children && _.children.length > 0) {
|
|
1476
|
+
const m = y(_);
|
|
1477
|
+
if (m.length > 0) {
|
|
1478
|
+
const v = m.reduce((b, x) => b + (x.width || x.minWidth || 200), 0), p = B / v;
|
|
1479
|
+
m.forEach((b) => {
|
|
1480
|
+
const x = Math.max(50, Math.round((b.width || b.minWidth || 200) * p));
|
|
1481
|
+
q(b.key, x);
|
|
1392
1482
|
});
|
|
1393
1483
|
}
|
|
1394
1484
|
} else
|
|
1395
|
-
|
|
1396
|
-
}, [
|
|
1397
|
-
if (!
|
|
1398
|
-
if (!
|
|
1399
|
-
|
|
1485
|
+
q(k, B);
|
|
1486
|
+
}, [i, q]), Y = ue((k) => {
|
|
1487
|
+
if (!X) return;
|
|
1488
|
+
if (!ae) {
|
|
1489
|
+
X(k);
|
|
1400
1490
|
return;
|
|
1401
1491
|
}
|
|
1402
|
-
const
|
|
1403
|
-
for (let
|
|
1404
|
-
const
|
|
1405
|
-
if (
|
|
1492
|
+
const B = (S, E, A = [], N = null) => {
|
|
1493
|
+
for (let Q = 0; Q < S.length; Q++) {
|
|
1494
|
+
const V = S[Q], M = [...A, Q];
|
|
1495
|
+
if (V.key === E)
|
|
1406
1496
|
return {
|
|
1407
|
-
column:
|
|
1408
|
-
parent:
|
|
1409
|
-
path:
|
|
1410
|
-
level:
|
|
1497
|
+
column: V,
|
|
1498
|
+
parent: N,
|
|
1499
|
+
path: M,
|
|
1500
|
+
level: A.length
|
|
1411
1501
|
};
|
|
1412
|
-
if (
|
|
1413
|
-
const
|
|
1414
|
-
if (
|
|
1415
|
-
return
|
|
1502
|
+
if (V.children && V.children.length > 0) {
|
|
1503
|
+
const ne = B(V.children, E, M, V);
|
|
1504
|
+
if (ne)
|
|
1505
|
+
return ne;
|
|
1416
1506
|
}
|
|
1417
1507
|
}
|
|
1418
1508
|
return null;
|
|
1419
1509
|
};
|
|
1420
|
-
if (!Object.values(
|
|
1421
|
-
if (
|
|
1422
|
-
const
|
|
1423
|
-
return JSON.stringify(
|
|
1510
|
+
if (!Object.values(I).find((S) => {
|
|
1511
|
+
if (S.length !== k.length) return !1;
|
|
1512
|
+
const E = S.map((N) => N.key).sort(), A = k.map((N) => N.key).sort();
|
|
1513
|
+
return JSON.stringify(E) === JSON.stringify(A);
|
|
1424
1514
|
}))
|
|
1425
1515
|
return;
|
|
1426
|
-
const y =
|
|
1516
|
+
const y = k._dragInfo;
|
|
1427
1517
|
if (!(y != null && y.draggedKey) || !(y != null && y.targetKey))
|
|
1428
1518
|
return;
|
|
1429
|
-
const { draggedKey:
|
|
1430
|
-
if (!
|
|
1431
|
-
const { column:
|
|
1432
|
-
if (
|
|
1519
|
+
const { draggedKey: _, targetKey: m } = y, v = B(i, _), p = B(i, m);
|
|
1520
|
+
if (!v || !p) return;
|
|
1521
|
+
const { column: b, parent: x, path: O, level: P } = v, { column: D, parent: H, path: Z, level: G } = p, L = (S, E) => S.fixed || (E == null ? void 0 : E.fixed) || !1, ce = L(b, x), R = L(D, H);
|
|
1522
|
+
if (P !== G || x !== H || x && H && x.key !== H.key || ce !== R)
|
|
1433
1523
|
return;
|
|
1434
|
-
const
|
|
1435
|
-
if (
|
|
1436
|
-
const
|
|
1437
|
-
|
|
1524
|
+
const J = JSON.parse(JSON.stringify(i));
|
|
1525
|
+
if (P === 0) {
|
|
1526
|
+
const S = O[0], E = Z[0], [A] = J.splice(S, 1);
|
|
1527
|
+
J.splice(E, 0, A);
|
|
1438
1528
|
} else {
|
|
1439
|
-
const
|
|
1440
|
-
let
|
|
1441
|
-
for (let
|
|
1442
|
-
|
|
1443
|
-
if (!
|
|
1529
|
+
const S = O.slice(0, -1);
|
|
1530
|
+
let E = J;
|
|
1531
|
+
for (let V = 0; V < S.length; V++)
|
|
1532
|
+
V === 0 ? E = E[S[V]] : E = E.children[S[V]];
|
|
1533
|
+
if (!E || !E.children)
|
|
1444
1534
|
return;
|
|
1445
|
-
const
|
|
1446
|
-
if (
|
|
1535
|
+
const A = O[O.length - 1], N = Z[Z.length - 1];
|
|
1536
|
+
if (A < 0 || A >= E.children.length || N < 0 || N >= E.children.length)
|
|
1447
1537
|
return;
|
|
1448
|
-
const [
|
|
1449
|
-
|
|
1538
|
+
const [Q] = E.children.splice(A, 1);
|
|
1539
|
+
E.children.splice(N, 0, Q);
|
|
1450
1540
|
}
|
|
1451
|
-
|
|
1452
|
-
}, [
|
|
1453
|
-
return
|
|
1541
|
+
X(J);
|
|
1542
|
+
}, [i, X, I]);
|
|
1543
|
+
return ae ? /* @__PURE__ */ l.jsx(
|
|
1454
1544
|
"thead",
|
|
1455
1545
|
{
|
|
1456
|
-
className: `radar-table__header ${
|
|
1546
|
+
className: `radar-table__header ${t ? t + "__header" : ""} ${r}`,
|
|
1457
1547
|
style: {
|
|
1458
|
-
position:
|
|
1459
|
-
top:
|
|
1460
|
-
...
|
|
1548
|
+
position: o ? "sticky" : "static",
|
|
1549
|
+
top: o && typeof o == "number" ? o : 0,
|
|
1550
|
+
...s
|
|
1461
1551
|
},
|
|
1462
|
-
children: Object.keys(
|
|
1463
|
-
const
|
|
1464
|
-
return /* @__PURE__ */
|
|
1465
|
-
|
|
1552
|
+
children: Object.keys(I).map((k) => {
|
|
1553
|
+
const B = I[parseInt(k)], ie = parseInt(k);
|
|
1554
|
+
return /* @__PURE__ */ l.jsx(
|
|
1555
|
+
ct,
|
|
1466
1556
|
{
|
|
1467
|
-
config:
|
|
1468
|
-
fullConfig:
|
|
1469
|
-
onSort:
|
|
1470
|
-
onResize:
|
|
1471
|
-
onColumnReorder:
|
|
1472
|
-
resizeable:
|
|
1473
|
-
draggableColumns:
|
|
1474
|
-
preset:
|
|
1475
|
-
headerClassName:
|
|
1476
|
-
headerStyle:
|
|
1477
|
-
headerRowClassName:
|
|
1557
|
+
config: B,
|
|
1558
|
+
fullConfig: i,
|
|
1559
|
+
onSort: n.onSort,
|
|
1560
|
+
onResize: f,
|
|
1561
|
+
onColumnReorder: Y,
|
|
1562
|
+
resizeable: n.resizeable,
|
|
1563
|
+
draggableColumns: n.draggableColumns,
|
|
1564
|
+
preset: t,
|
|
1565
|
+
headerClassName: r,
|
|
1566
|
+
headerStyle: s,
|
|
1567
|
+
headerRowClassName: a,
|
|
1478
1568
|
headerRowStyle: {
|
|
1479
|
-
...
|
|
1480
|
-
position:
|
|
1481
|
-
top:
|
|
1569
|
+
...c,
|
|
1570
|
+
position: o ? "sticky" : "static",
|
|
1571
|
+
top: o && typeof o == "number" ? o + (ie - 1) * 50 : 0
|
|
1482
1572
|
},
|
|
1483
|
-
headerCellClassName:
|
|
1484
|
-
headerCellStyle:
|
|
1485
|
-
headerCellWrapperClassName:
|
|
1486
|
-
headerCellWrapperStyle:
|
|
1487
|
-
stickyHeader:
|
|
1488
|
-
sortIcon:
|
|
1489
|
-
scrollContainerRef:
|
|
1490
|
-
sorting:
|
|
1491
|
-
defaultSorting:
|
|
1492
|
-
resizeThrottle:
|
|
1573
|
+
headerCellClassName: u,
|
|
1574
|
+
headerCellStyle: j,
|
|
1575
|
+
headerCellWrapperClassName: g,
|
|
1576
|
+
headerCellWrapperStyle: T,
|
|
1577
|
+
stickyHeader: o,
|
|
1578
|
+
sortIcon: n.sortIcon,
|
|
1579
|
+
scrollContainerRef: n.scrollContainerRef,
|
|
1580
|
+
sorting: U,
|
|
1581
|
+
defaultSorting: K,
|
|
1582
|
+
resizeThrottle: n.resizeThrottle
|
|
1493
1583
|
},
|
|
1494
|
-
|
|
1584
|
+
k
|
|
1495
1585
|
);
|
|
1496
1586
|
})
|
|
1497
1587
|
}
|
|
1498
|
-
) : /* @__PURE__ */
|
|
1588
|
+
) : /* @__PURE__ */ l.jsx(
|
|
1499
1589
|
"thead",
|
|
1500
1590
|
{
|
|
1501
|
-
className: `radar-table__header ${
|
|
1591
|
+
className: `radar-table__header ${t ? t + "__header" : ""} ${r}`,
|
|
1502
1592
|
style: {
|
|
1503
|
-
position:
|
|
1504
|
-
top:
|
|
1505
|
-
...
|
|
1593
|
+
position: o ? "sticky" : "static",
|
|
1594
|
+
top: o && typeof o == "number" ? o : 0,
|
|
1595
|
+
...s
|
|
1506
1596
|
},
|
|
1507
|
-
children: /* @__PURE__ */
|
|
1597
|
+
children: /* @__PURE__ */ l.jsx(ct, { ...n, fullConfig: i, onResize: f, onColumnReorder: Y, scrollContainerRef: n.scrollContainerRef, sorting: U, defaultSorting: K, resizeThrottle: n.resizeThrottle })
|
|
1508
1598
|
}
|
|
1509
1599
|
);
|
|
1510
1600
|
}
|
|
1511
|
-
const
|
|
1512
|
-
let
|
|
1513
|
-
if (
|
|
1514
|
-
const
|
|
1515
|
-
if (Number.isNaN(
|
|
1516
|
-
return
|
|
1517
|
-
|
|
1601
|
+
const tn = (n, i) => {
|
|
1602
|
+
let t = "0";
|
|
1603
|
+
if (n != null) {
|
|
1604
|
+
const r = parseFloat(n);
|
|
1605
|
+
if (Number.isNaN(r))
|
|
1606
|
+
return i && (t += ` ${i}`), t;
|
|
1607
|
+
t = r.toLocaleString("ru-RU", {
|
|
1518
1608
|
maximumFractionDigits: 2
|
|
1519
|
-
}),
|
|
1609
|
+
}), i && (t += ` ${i}`);
|
|
1610
|
+
}
|
|
1611
|
+
return t;
|
|
1612
|
+
};
|
|
1613
|
+
function Me(n, i, t) {
|
|
1614
|
+
let r = t.initialDeps ?? [], s;
|
|
1615
|
+
function o() {
|
|
1616
|
+
var a, c, u, j;
|
|
1617
|
+
let g;
|
|
1618
|
+
t.key && ((a = t.debug) != null && a.call(t)) && (g = Date.now());
|
|
1619
|
+
const T = n();
|
|
1620
|
+
if (!(T.length !== r.length || T.some((U, K) => r[K] !== U)))
|
|
1621
|
+
return s;
|
|
1622
|
+
r = T;
|
|
1623
|
+
let X;
|
|
1624
|
+
if (t.key && ((c = t.debug) != null && c.call(t)) && (X = Date.now()), s = i(...T), t.key && ((u = t.debug) != null && u.call(t))) {
|
|
1625
|
+
const U = Math.round((Date.now() - g) * 100) / 100, K = Math.round((Date.now() - X) * 100) / 100, ae = K / 16, I = (f, Y) => {
|
|
1626
|
+
for (f = String(f); f.length < Y; )
|
|
1627
|
+
f = " " + f;
|
|
1628
|
+
return f;
|
|
1629
|
+
};
|
|
1630
|
+
console.info(
|
|
1631
|
+
`%c⏱ ${I(K, 5)} /${I(U, 5)} ms`,
|
|
1632
|
+
`
|
|
1633
|
+
font-size: .6rem;
|
|
1634
|
+
font-weight: bold;
|
|
1635
|
+
color: hsl(${Math.max(
|
|
1636
|
+
0,
|
|
1637
|
+
Math.min(120 - 120 * ae, 120)
|
|
1638
|
+
)}deg 100% 31%);`,
|
|
1639
|
+
t == null ? void 0 : t.key
|
|
1640
|
+
);
|
|
1641
|
+
}
|
|
1642
|
+
return (j = t == null ? void 0 : t.onChange) == null || j.call(t, s), s;
|
|
1643
|
+
}
|
|
1644
|
+
return o.updateDeps = (a) => {
|
|
1645
|
+
r = a;
|
|
1646
|
+
}, o;
|
|
1647
|
+
}
|
|
1648
|
+
function dt(n, i) {
|
|
1649
|
+
if (n === void 0)
|
|
1650
|
+
throw new Error("Unexpected undefined");
|
|
1651
|
+
return n;
|
|
1652
|
+
}
|
|
1653
|
+
const nn = (n, i) => Math.abs(n - i) < 1.01, rn = (n, i, t) => {
|
|
1654
|
+
let r;
|
|
1655
|
+
return function(...s) {
|
|
1656
|
+
n.clearTimeout(r), r = n.setTimeout(() => i.apply(this, s), t);
|
|
1657
|
+
};
|
|
1658
|
+
}, ut = (n) => {
|
|
1659
|
+
const { offsetWidth: i, offsetHeight: t } = n;
|
|
1660
|
+
return { width: i, height: t };
|
|
1661
|
+
}, sn = (n) => n, on = (n) => {
|
|
1662
|
+
const i = Math.max(n.startIndex - n.overscan, 0), t = Math.min(n.endIndex + n.overscan, n.count - 1), r = [];
|
|
1663
|
+
for (let s = i; s <= t; s++)
|
|
1664
|
+
r.push(s);
|
|
1665
|
+
return r;
|
|
1666
|
+
}, an = (n, i) => {
|
|
1667
|
+
const t = n.scrollElement;
|
|
1668
|
+
if (!t)
|
|
1669
|
+
return;
|
|
1670
|
+
const r = n.targetWindow;
|
|
1671
|
+
if (!r)
|
|
1672
|
+
return;
|
|
1673
|
+
const s = (a) => {
|
|
1674
|
+
const { width: c, height: u } = a;
|
|
1675
|
+
i({ width: Math.round(c), height: Math.round(u) });
|
|
1676
|
+
};
|
|
1677
|
+
if (s(ut(t)), !r.ResizeObserver)
|
|
1678
|
+
return () => {
|
|
1679
|
+
};
|
|
1680
|
+
const o = new r.ResizeObserver((a) => {
|
|
1681
|
+
const c = () => {
|
|
1682
|
+
const u = a[0];
|
|
1683
|
+
if (u != null && u.borderBoxSize) {
|
|
1684
|
+
const j = u.borderBoxSize[0];
|
|
1685
|
+
if (j) {
|
|
1686
|
+
s({ width: j.inlineSize, height: j.blockSize });
|
|
1687
|
+
return;
|
|
1688
|
+
}
|
|
1689
|
+
}
|
|
1690
|
+
s(ut(t));
|
|
1691
|
+
};
|
|
1692
|
+
n.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(c) : c();
|
|
1693
|
+
});
|
|
1694
|
+
return o.observe(t, { box: "border-box" }), () => {
|
|
1695
|
+
o.unobserve(t);
|
|
1696
|
+
};
|
|
1697
|
+
}, ft = {
|
|
1698
|
+
passive: !0
|
|
1699
|
+
}, ht = typeof window > "u" ? !0 : "onscrollend" in window, ln = (n, i) => {
|
|
1700
|
+
const t = n.scrollElement;
|
|
1701
|
+
if (!t)
|
|
1702
|
+
return;
|
|
1703
|
+
const r = n.targetWindow;
|
|
1704
|
+
if (!r)
|
|
1705
|
+
return;
|
|
1706
|
+
let s = 0;
|
|
1707
|
+
const o = n.options.useScrollendEvent && ht ? () => {
|
|
1708
|
+
} : rn(
|
|
1709
|
+
r,
|
|
1710
|
+
() => {
|
|
1711
|
+
i(s, !1);
|
|
1712
|
+
},
|
|
1713
|
+
n.options.isScrollingResetDelay
|
|
1714
|
+
), a = (g) => () => {
|
|
1715
|
+
const { horizontal: T, isRtl: q } = n.options;
|
|
1716
|
+
s = T ? t.scrollLeft * (q && -1 || 1) : t.scrollTop, o(), i(s, g);
|
|
1717
|
+
}, c = a(!0), u = a(!1);
|
|
1718
|
+
u(), t.addEventListener("scroll", c, ft);
|
|
1719
|
+
const j = n.options.useScrollendEvent && ht;
|
|
1720
|
+
return j && t.addEventListener("scrollend", u, ft), () => {
|
|
1721
|
+
t.removeEventListener("scroll", c), j && t.removeEventListener("scrollend", u);
|
|
1722
|
+
};
|
|
1723
|
+
}, cn = (n, i, t) => {
|
|
1724
|
+
if (i != null && i.borderBoxSize) {
|
|
1725
|
+
const r = i.borderBoxSize[0];
|
|
1726
|
+
if (r)
|
|
1727
|
+
return Math.round(
|
|
1728
|
+
r[t.options.horizontal ? "inlineSize" : "blockSize"]
|
|
1729
|
+
);
|
|
1520
1730
|
}
|
|
1521
|
-
return
|
|
1522
|
-
},
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
},
|
|
1731
|
+
return n[t.options.horizontal ? "offsetWidth" : "offsetHeight"];
|
|
1732
|
+
}, dn = (n, {
|
|
1733
|
+
adjustments: i = 0,
|
|
1734
|
+
behavior: t
|
|
1735
|
+
}, r) => {
|
|
1736
|
+
var s, o;
|
|
1737
|
+
const a = n + i;
|
|
1738
|
+
(o = (s = r.scrollElement) == null ? void 0 : s.scrollTo) == null || o.call(s, {
|
|
1739
|
+
[r.options.horizontal ? "left" : "top"]: a,
|
|
1740
|
+
behavior: t
|
|
1741
|
+
});
|
|
1742
|
+
};
|
|
1743
|
+
class un {
|
|
1744
|
+
constructor(i) {
|
|
1745
|
+
this.unsubs = [], this.scrollElement = null, this.targetWindow = null, this.isScrolling = !1, this.measurementsCache = [], this.itemSizeCache = /* @__PURE__ */ new Map(), this.pendingMeasuredCacheIndexes = [], this.scrollRect = null, this.scrollOffset = null, this.scrollDirection = null, this.scrollAdjustments = 0, this.elementsCache = /* @__PURE__ */ new Map(), this.observer = /* @__PURE__ */ (() => {
|
|
1746
|
+
let t = null;
|
|
1747
|
+
const r = () => t || (!this.targetWindow || !this.targetWindow.ResizeObserver ? null : t = new this.targetWindow.ResizeObserver((s) => {
|
|
1748
|
+
s.forEach((o) => {
|
|
1749
|
+
const a = () => {
|
|
1750
|
+
this._measureElement(o.target, o);
|
|
1751
|
+
};
|
|
1752
|
+
this.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(a) : a();
|
|
1753
|
+
});
|
|
1754
|
+
}));
|
|
1755
|
+
return {
|
|
1756
|
+
disconnect: () => {
|
|
1757
|
+
var s;
|
|
1758
|
+
(s = r()) == null || s.disconnect(), t = null;
|
|
1759
|
+
},
|
|
1760
|
+
observe: (s) => {
|
|
1761
|
+
var o;
|
|
1762
|
+
return (o = r()) == null ? void 0 : o.observe(s, { box: "border-box" });
|
|
1763
|
+
},
|
|
1764
|
+
unobserve: (s) => {
|
|
1765
|
+
var o;
|
|
1766
|
+
return (o = r()) == null ? void 0 : o.unobserve(s);
|
|
1767
|
+
}
|
|
1768
|
+
};
|
|
1769
|
+
})(), this.range = null, this.setOptions = (t) => {
|
|
1770
|
+
Object.entries(t).forEach(([r, s]) => {
|
|
1771
|
+
typeof s > "u" && delete t[r];
|
|
1772
|
+
}), this.options = {
|
|
1773
|
+
debug: !1,
|
|
1774
|
+
initialOffset: 0,
|
|
1775
|
+
overscan: 1,
|
|
1776
|
+
paddingStart: 0,
|
|
1777
|
+
paddingEnd: 0,
|
|
1778
|
+
scrollPaddingStart: 0,
|
|
1779
|
+
scrollPaddingEnd: 0,
|
|
1780
|
+
horizontal: !1,
|
|
1781
|
+
getItemKey: sn,
|
|
1782
|
+
rangeExtractor: on,
|
|
1783
|
+
onChange: () => {
|
|
1784
|
+
},
|
|
1785
|
+
measureElement: cn,
|
|
1786
|
+
initialRect: { width: 0, height: 0 },
|
|
1787
|
+
scrollMargin: 0,
|
|
1788
|
+
gap: 0,
|
|
1789
|
+
indexAttribute: "data-index",
|
|
1790
|
+
initialMeasurementsCache: [],
|
|
1791
|
+
lanes: 1,
|
|
1792
|
+
isScrollingResetDelay: 150,
|
|
1793
|
+
enabled: !0,
|
|
1794
|
+
isRtl: !1,
|
|
1795
|
+
useScrollendEvent: !1,
|
|
1796
|
+
useAnimationFrameWithResizeObserver: !1,
|
|
1797
|
+
...t
|
|
1798
|
+
};
|
|
1799
|
+
}, this.notify = (t) => {
|
|
1800
|
+
var r, s;
|
|
1801
|
+
(s = (r = this.options).onChange) == null || s.call(r, this, t);
|
|
1802
|
+
}, this.maybeNotify = Me(
|
|
1803
|
+
() => (this.calculateRange(), [
|
|
1804
|
+
this.isScrolling,
|
|
1805
|
+
this.range ? this.range.startIndex : null,
|
|
1806
|
+
this.range ? this.range.endIndex : null
|
|
1807
|
+
]),
|
|
1808
|
+
(t) => {
|
|
1809
|
+
this.notify(t);
|
|
1810
|
+
},
|
|
1811
|
+
{
|
|
1812
|
+
key: process.env.NODE_ENV !== "production" && "maybeNotify",
|
|
1813
|
+
debug: () => this.options.debug,
|
|
1814
|
+
initialDeps: [
|
|
1815
|
+
this.isScrolling,
|
|
1816
|
+
this.range ? this.range.startIndex : null,
|
|
1817
|
+
this.range ? this.range.endIndex : null
|
|
1818
|
+
]
|
|
1819
|
+
}
|
|
1820
|
+
), this.cleanup = () => {
|
|
1821
|
+
this.unsubs.filter(Boolean).forEach((t) => t()), this.unsubs = [], this.observer.disconnect(), this.scrollElement = null, this.targetWindow = null;
|
|
1822
|
+
}, this._didMount = () => () => {
|
|
1823
|
+
this.cleanup();
|
|
1824
|
+
}, this._willUpdate = () => {
|
|
1825
|
+
var t;
|
|
1826
|
+
const r = this.options.enabled ? this.options.getScrollElement() : null;
|
|
1827
|
+
if (this.scrollElement !== r) {
|
|
1828
|
+
if (this.cleanup(), !r) {
|
|
1829
|
+
this.maybeNotify();
|
|
1830
|
+
return;
|
|
1831
|
+
}
|
|
1832
|
+
this.scrollElement = r, this.scrollElement && "ownerDocument" in this.scrollElement ? this.targetWindow = this.scrollElement.ownerDocument.defaultView : this.targetWindow = ((t = this.scrollElement) == null ? void 0 : t.window) ?? null, this.elementsCache.forEach((s) => {
|
|
1833
|
+
this.observer.observe(s);
|
|
1834
|
+
}), this._scrollToOffset(this.getScrollOffset(), {
|
|
1835
|
+
adjustments: void 0,
|
|
1836
|
+
behavior: void 0
|
|
1837
|
+
}), this.unsubs.push(
|
|
1838
|
+
this.options.observeElementRect(this, (s) => {
|
|
1839
|
+
this.scrollRect = s, this.maybeNotify();
|
|
1840
|
+
})
|
|
1841
|
+
), this.unsubs.push(
|
|
1842
|
+
this.options.observeElementOffset(this, (s, o) => {
|
|
1843
|
+
this.scrollAdjustments = 0, this.scrollDirection = o ? this.getScrollOffset() < s ? "forward" : "backward" : null, this.scrollOffset = s, this.isScrolling = o, this.maybeNotify();
|
|
1844
|
+
})
|
|
1845
|
+
);
|
|
1846
|
+
}
|
|
1847
|
+
}, this.getSize = () => this.options.enabled ? (this.scrollRect = this.scrollRect ?? this.options.initialRect, this.scrollRect[this.options.horizontal ? "width" : "height"]) : (this.scrollRect = null, 0), this.getScrollOffset = () => this.options.enabled ? (this.scrollOffset = this.scrollOffset ?? (typeof this.options.initialOffset == "function" ? this.options.initialOffset() : this.options.initialOffset), this.scrollOffset) : (this.scrollOffset = null, 0), this.getFurthestMeasurement = (t, r) => {
|
|
1848
|
+
const s = /* @__PURE__ */ new Map(), o = /* @__PURE__ */ new Map();
|
|
1849
|
+
for (let a = r - 1; a >= 0; a--) {
|
|
1850
|
+
const c = t[a];
|
|
1851
|
+
if (s.has(c.lane))
|
|
1852
|
+
continue;
|
|
1853
|
+
const u = o.get(
|
|
1854
|
+
c.lane
|
|
1855
|
+
);
|
|
1856
|
+
if (u == null || c.end > u.end ? o.set(c.lane, c) : c.end < u.end && s.set(c.lane, !0), s.size === this.options.lanes)
|
|
1857
|
+
break;
|
|
1858
|
+
}
|
|
1859
|
+
return o.size === this.options.lanes ? Array.from(o.values()).sort((a, c) => a.end === c.end ? a.index - c.index : a.end - c.end)[0] : void 0;
|
|
1860
|
+
}, this.getMeasurementOptions = Me(
|
|
1861
|
+
() => [
|
|
1862
|
+
this.options.count,
|
|
1863
|
+
this.options.paddingStart,
|
|
1864
|
+
this.options.scrollMargin,
|
|
1865
|
+
this.options.getItemKey,
|
|
1866
|
+
this.options.enabled
|
|
1867
|
+
],
|
|
1868
|
+
(t, r, s, o, a) => (this.pendingMeasuredCacheIndexes = [], {
|
|
1869
|
+
count: t,
|
|
1870
|
+
paddingStart: r,
|
|
1871
|
+
scrollMargin: s,
|
|
1872
|
+
getItemKey: o,
|
|
1873
|
+
enabled: a
|
|
1874
|
+
}),
|
|
1875
|
+
{
|
|
1876
|
+
key: !1
|
|
1877
|
+
}
|
|
1878
|
+
), this.getMeasurements = Me(
|
|
1879
|
+
() => [this.getMeasurementOptions(), this.itemSizeCache],
|
|
1880
|
+
({ count: t, paddingStart: r, scrollMargin: s, getItemKey: o, enabled: a }, c) => {
|
|
1881
|
+
if (!a)
|
|
1882
|
+
return this.measurementsCache = [], this.itemSizeCache.clear(), [];
|
|
1883
|
+
this.measurementsCache.length === 0 && (this.measurementsCache = this.options.initialMeasurementsCache, this.measurementsCache.forEach((g) => {
|
|
1884
|
+
this.itemSizeCache.set(g.key, g.size);
|
|
1885
|
+
}));
|
|
1886
|
+
const u = this.pendingMeasuredCacheIndexes.length > 0 ? Math.min(...this.pendingMeasuredCacheIndexes) : 0;
|
|
1887
|
+
this.pendingMeasuredCacheIndexes = [];
|
|
1888
|
+
const j = this.measurementsCache.slice(0, u);
|
|
1889
|
+
for (let g = u; g < t; g++) {
|
|
1890
|
+
const T = o(g), q = this.options.lanes === 1 ? j[g - 1] : this.getFurthestMeasurement(j, g), X = q ? q.end + this.options.gap : r + s, U = c.get(T), K = typeof U == "number" ? U : this.options.estimateSize(g), ae = X + K, I = q ? q.lane : g % this.options.lanes;
|
|
1891
|
+
j[g] = {
|
|
1892
|
+
index: g,
|
|
1893
|
+
start: X,
|
|
1894
|
+
size: K,
|
|
1895
|
+
end: ae,
|
|
1896
|
+
key: T,
|
|
1897
|
+
lane: I
|
|
1898
|
+
};
|
|
1899
|
+
}
|
|
1900
|
+
return this.measurementsCache = j, j;
|
|
1901
|
+
},
|
|
1902
|
+
{
|
|
1903
|
+
key: process.env.NODE_ENV !== "production" && "getMeasurements",
|
|
1904
|
+
debug: () => this.options.debug
|
|
1905
|
+
}
|
|
1906
|
+
), this.calculateRange = Me(
|
|
1907
|
+
() => [
|
|
1908
|
+
this.getMeasurements(),
|
|
1909
|
+
this.getSize(),
|
|
1910
|
+
this.getScrollOffset(),
|
|
1911
|
+
this.options.lanes
|
|
1912
|
+
],
|
|
1913
|
+
(t, r, s, o) => this.range = t.length > 0 && r > 0 ? fn({
|
|
1914
|
+
measurements: t,
|
|
1915
|
+
outerSize: r,
|
|
1916
|
+
scrollOffset: s,
|
|
1917
|
+
lanes: o
|
|
1918
|
+
}) : null,
|
|
1919
|
+
{
|
|
1920
|
+
key: process.env.NODE_ENV !== "production" && "calculateRange",
|
|
1921
|
+
debug: () => this.options.debug
|
|
1922
|
+
}
|
|
1923
|
+
), this.getVirtualIndexes = Me(
|
|
1924
|
+
() => {
|
|
1925
|
+
let t = null, r = null;
|
|
1926
|
+
const s = this.calculateRange();
|
|
1927
|
+
return s && (t = s.startIndex, r = s.endIndex), this.maybeNotify.updateDeps([this.isScrolling, t, r]), [
|
|
1928
|
+
this.options.rangeExtractor,
|
|
1929
|
+
this.options.overscan,
|
|
1930
|
+
this.options.count,
|
|
1931
|
+
t,
|
|
1932
|
+
r
|
|
1933
|
+
];
|
|
1934
|
+
},
|
|
1935
|
+
(t, r, s, o, a) => o === null || a === null ? [] : t({
|
|
1936
|
+
startIndex: o,
|
|
1937
|
+
endIndex: a,
|
|
1938
|
+
overscan: r,
|
|
1939
|
+
count: s
|
|
1940
|
+
}),
|
|
1941
|
+
{
|
|
1942
|
+
key: process.env.NODE_ENV !== "production" && "getVirtualIndexes",
|
|
1943
|
+
debug: () => this.options.debug
|
|
1944
|
+
}
|
|
1945
|
+
), this.indexFromElement = (t) => {
|
|
1946
|
+
const r = this.options.indexAttribute, s = t.getAttribute(r);
|
|
1947
|
+
return s ? parseInt(s, 10) : (console.warn(
|
|
1948
|
+
`Missing attribute name '${r}={index}' on measured element.`
|
|
1949
|
+
), -1);
|
|
1950
|
+
}, this._measureElement = (t, r) => {
|
|
1951
|
+
const s = this.indexFromElement(t), o = this.measurementsCache[s];
|
|
1952
|
+
if (!o)
|
|
1953
|
+
return;
|
|
1954
|
+
const a = o.key, c = this.elementsCache.get(a);
|
|
1955
|
+
c !== t && (c && this.observer.unobserve(c), this.observer.observe(t), this.elementsCache.set(a, t)), t.isConnected && this.resizeItem(s, this.options.measureElement(t, r, this));
|
|
1956
|
+
}, this.resizeItem = (t, r) => {
|
|
1957
|
+
const s = this.measurementsCache[t];
|
|
1958
|
+
if (!s)
|
|
1959
|
+
return;
|
|
1960
|
+
const o = this.itemSizeCache.get(s.key) ?? s.size, a = r - o;
|
|
1961
|
+
a !== 0 && ((this.shouldAdjustScrollPositionOnItemSizeChange !== void 0 ? this.shouldAdjustScrollPositionOnItemSizeChange(s, a, this) : s.start < this.getScrollOffset() + this.scrollAdjustments) && (process.env.NODE_ENV !== "production" && this.options.debug && console.info("correction", a), this._scrollToOffset(this.getScrollOffset(), {
|
|
1962
|
+
adjustments: this.scrollAdjustments += a,
|
|
1963
|
+
behavior: void 0
|
|
1964
|
+
})), this.pendingMeasuredCacheIndexes.push(s.index), this.itemSizeCache = new Map(this.itemSizeCache.set(s.key, r)), this.notify(!1));
|
|
1965
|
+
}, this.measureElement = (t) => {
|
|
1966
|
+
if (!t) {
|
|
1967
|
+
this.elementsCache.forEach((r, s) => {
|
|
1968
|
+
r.isConnected || (this.observer.unobserve(r), this.elementsCache.delete(s));
|
|
1969
|
+
});
|
|
1970
|
+
return;
|
|
1971
|
+
}
|
|
1972
|
+
this._measureElement(t, void 0);
|
|
1973
|
+
}, this.getVirtualItems = Me(
|
|
1974
|
+
() => [this.getVirtualIndexes(), this.getMeasurements()],
|
|
1975
|
+
(t, r) => {
|
|
1976
|
+
const s = [];
|
|
1977
|
+
for (let o = 0, a = t.length; o < a; o++) {
|
|
1978
|
+
const c = t[o], u = r[c];
|
|
1979
|
+
s.push(u);
|
|
1980
|
+
}
|
|
1981
|
+
return s;
|
|
1982
|
+
},
|
|
1983
|
+
{
|
|
1984
|
+
key: process.env.NODE_ENV !== "production" && "getVirtualItems",
|
|
1985
|
+
debug: () => this.options.debug
|
|
1986
|
+
}
|
|
1987
|
+
), this.getVirtualItemForOffset = (t) => {
|
|
1988
|
+
const r = this.getMeasurements();
|
|
1989
|
+
if (r.length !== 0)
|
|
1990
|
+
return dt(
|
|
1991
|
+
r[xt(
|
|
1992
|
+
0,
|
|
1993
|
+
r.length - 1,
|
|
1994
|
+
(s) => dt(r[s]).start,
|
|
1995
|
+
t
|
|
1996
|
+
)]
|
|
1997
|
+
);
|
|
1998
|
+
}, this.getOffsetForAlignment = (t, r, s = 0) => {
|
|
1999
|
+
const o = this.getSize(), a = this.getScrollOffset();
|
|
2000
|
+
r === "auto" && (r = t >= a + o ? "end" : "start"), r === "center" ? t += (s - o) / 2 : r === "end" && (t -= o);
|
|
2001
|
+
const c = this.getTotalSize() + this.options.scrollMargin - o;
|
|
2002
|
+
return Math.max(Math.min(c, t), 0);
|
|
2003
|
+
}, this.getOffsetForIndex = (t, r = "auto") => {
|
|
2004
|
+
t = Math.max(0, Math.min(t, this.options.count - 1));
|
|
2005
|
+
const s = this.measurementsCache[t];
|
|
2006
|
+
if (!s)
|
|
2007
|
+
return;
|
|
2008
|
+
const o = this.getSize(), a = this.getScrollOffset();
|
|
2009
|
+
if (r === "auto")
|
|
2010
|
+
if (s.end >= a + o - this.options.scrollPaddingEnd)
|
|
2011
|
+
r = "end";
|
|
2012
|
+
else if (s.start <= a + this.options.scrollPaddingStart)
|
|
2013
|
+
r = "start";
|
|
2014
|
+
else
|
|
2015
|
+
return [a, r];
|
|
2016
|
+
const c = r === "end" ? s.end + this.options.scrollPaddingEnd : s.start - this.options.scrollPaddingStart;
|
|
2017
|
+
return [
|
|
2018
|
+
this.getOffsetForAlignment(c, r, s.size),
|
|
2019
|
+
r
|
|
2020
|
+
];
|
|
2021
|
+
}, this.isDynamicMode = () => this.elementsCache.size > 0, this.scrollToOffset = (t, { align: r = "start", behavior: s } = {}) => {
|
|
2022
|
+
s === "smooth" && this.isDynamicMode() && console.warn(
|
|
2023
|
+
"The `smooth` scroll behavior is not fully supported with dynamic size."
|
|
2024
|
+
), this._scrollToOffset(this.getOffsetForAlignment(t, r), {
|
|
2025
|
+
adjustments: void 0,
|
|
2026
|
+
behavior: s
|
|
2027
|
+
});
|
|
2028
|
+
}, this.scrollToIndex = (t, { align: r = "auto", behavior: s } = {}) => {
|
|
2029
|
+
s === "smooth" && this.isDynamicMode() && console.warn(
|
|
2030
|
+
"The `smooth` scroll behavior is not fully supported with dynamic size."
|
|
2031
|
+
), t = Math.max(0, Math.min(t, this.options.count - 1));
|
|
2032
|
+
let o = 0;
|
|
2033
|
+
const a = 10, c = (j) => {
|
|
2034
|
+
if (!this.targetWindow) return;
|
|
2035
|
+
const g = this.getOffsetForIndex(t, j);
|
|
2036
|
+
if (!g) {
|
|
2037
|
+
console.warn("Failed to get offset for index:", t);
|
|
2038
|
+
return;
|
|
2039
|
+
}
|
|
2040
|
+
const [T, q] = g;
|
|
2041
|
+
this._scrollToOffset(T, { adjustments: void 0, behavior: s }), this.targetWindow.requestAnimationFrame(() => {
|
|
2042
|
+
const X = this.getScrollOffset(), U = this.getOffsetForIndex(t, q);
|
|
2043
|
+
if (!U) {
|
|
2044
|
+
console.warn("Failed to get offset for index:", t);
|
|
2045
|
+
return;
|
|
2046
|
+
}
|
|
2047
|
+
nn(U[0], X) || u(q);
|
|
2048
|
+
});
|
|
2049
|
+
}, u = (j) => {
|
|
2050
|
+
this.targetWindow && (o++, o < a ? (process.env.NODE_ENV !== "production" && this.options.debug && console.info("Schedule retry", o, a), this.targetWindow.requestAnimationFrame(() => c(j))) : console.warn(
|
|
2051
|
+
`Failed to scroll to index ${t} after ${a} attempts.`
|
|
2052
|
+
));
|
|
2053
|
+
};
|
|
2054
|
+
c(r);
|
|
2055
|
+
}, this.scrollBy = (t, { behavior: r } = {}) => {
|
|
2056
|
+
r === "smooth" && this.isDynamicMode() && console.warn(
|
|
2057
|
+
"The `smooth` scroll behavior is not fully supported with dynamic size."
|
|
2058
|
+
), this._scrollToOffset(this.getScrollOffset() + t, {
|
|
2059
|
+
adjustments: void 0,
|
|
2060
|
+
behavior: r
|
|
2061
|
+
});
|
|
2062
|
+
}, this.getTotalSize = () => {
|
|
2063
|
+
var t;
|
|
2064
|
+
const r = this.getMeasurements();
|
|
2065
|
+
let s;
|
|
2066
|
+
if (r.length === 0)
|
|
2067
|
+
s = this.options.paddingStart;
|
|
2068
|
+
else if (this.options.lanes === 1)
|
|
2069
|
+
s = ((t = r[r.length - 1]) == null ? void 0 : t.end) ?? 0;
|
|
2070
|
+
else {
|
|
2071
|
+
const o = Array(this.options.lanes).fill(null);
|
|
2072
|
+
let a = r.length - 1;
|
|
2073
|
+
for (; a >= 0 && o.some((c) => c === null); ) {
|
|
2074
|
+
const c = r[a];
|
|
2075
|
+
o[c.lane] === null && (o[c.lane] = c.end), a--;
|
|
2076
|
+
}
|
|
2077
|
+
s = Math.max(...o.filter((c) => c !== null));
|
|
2078
|
+
}
|
|
2079
|
+
return Math.max(
|
|
2080
|
+
s - this.options.scrollMargin + this.options.paddingEnd,
|
|
2081
|
+
0
|
|
2082
|
+
);
|
|
2083
|
+
}, this._scrollToOffset = (t, {
|
|
2084
|
+
adjustments: r,
|
|
2085
|
+
behavior: s
|
|
2086
|
+
}) => {
|
|
2087
|
+
this.options.scrollToFn(t, { behavior: s, adjustments: r }, this);
|
|
2088
|
+
}, this.measure = () => {
|
|
2089
|
+
this.itemSizeCache = /* @__PURE__ */ new Map(), this.notify(!1);
|
|
2090
|
+
}, this.setOptions(i);
|
|
2091
|
+
}
|
|
2092
|
+
}
|
|
2093
|
+
const xt = (n, i, t, r) => {
|
|
2094
|
+
for (; n <= i; ) {
|
|
2095
|
+
const s = (n + i) / 2 | 0, o = t(s);
|
|
2096
|
+
if (o < r)
|
|
2097
|
+
n = s + 1;
|
|
2098
|
+
else if (o > r)
|
|
2099
|
+
i = s - 1;
|
|
2100
|
+
else
|
|
2101
|
+
return s;
|
|
2102
|
+
}
|
|
2103
|
+
return n > 0 ? n - 1 : 0;
|
|
2104
|
+
};
|
|
2105
|
+
function fn({
|
|
2106
|
+
measurements: n,
|
|
2107
|
+
outerSize: i,
|
|
2108
|
+
scrollOffset: t,
|
|
2109
|
+
lanes: r
|
|
2110
|
+
}) {
|
|
2111
|
+
const s = n.length - 1, o = (u) => n[u].start;
|
|
2112
|
+
if (n.length <= r)
|
|
2113
|
+
return {
|
|
2114
|
+
startIndex: 0,
|
|
2115
|
+
endIndex: s
|
|
2116
|
+
};
|
|
2117
|
+
let a = xt(
|
|
2118
|
+
0,
|
|
2119
|
+
s,
|
|
2120
|
+
o,
|
|
2121
|
+
t
|
|
2122
|
+
), c = a;
|
|
2123
|
+
if (r === 1)
|
|
2124
|
+
for (; c < s && n[c].end < t + i; )
|
|
2125
|
+
c++;
|
|
2126
|
+
else if (r > 1) {
|
|
2127
|
+
const u = Array(r).fill(0);
|
|
2128
|
+
for (; c < s && u.some((g) => g < t + i); ) {
|
|
2129
|
+
const g = n[c];
|
|
2130
|
+
u[g.lane] = g.end, c++;
|
|
2131
|
+
}
|
|
2132
|
+
const j = Array(r).fill(t + i);
|
|
2133
|
+
for (; a >= 0 && j.some((g) => g >= t); ) {
|
|
2134
|
+
const g = n[a];
|
|
2135
|
+
j[g.lane] = g.start, a--;
|
|
2136
|
+
}
|
|
2137
|
+
a = Math.max(0, a - a % r), c = Math.min(s, c + (r - 1 - c % r));
|
|
2138
|
+
}
|
|
2139
|
+
return { startIndex: a, endIndex: c };
|
|
2140
|
+
}
|
|
2141
|
+
const gt = typeof document < "u" ? Ze.useLayoutEffect : Ze.useEffect;
|
|
2142
|
+
function hn(n) {
|
|
2143
|
+
const i = Ze.useReducer(() => ({}), {})[1], t = {
|
|
2144
|
+
...n,
|
|
2145
|
+
onChange: (s, o) => {
|
|
2146
|
+
var a;
|
|
2147
|
+
o ? qt(i) : i(), (a = n.onChange) == null || a.call(n, s, o);
|
|
2148
|
+
}
|
|
2149
|
+
}, [r] = Ze.useState(
|
|
2150
|
+
() => new un(t)
|
|
2151
|
+
);
|
|
2152
|
+
return r.setOptions(t), gt(() => r._didMount(), []), gt(() => r._willUpdate()), r;
|
|
2153
|
+
}
|
|
2154
|
+
function gn(n) {
|
|
2155
|
+
return hn({
|
|
2156
|
+
observeElementRect: an,
|
|
2157
|
+
observeElementOffset: ln,
|
|
2158
|
+
scrollToFn: dn,
|
|
2159
|
+
...n
|
|
2160
|
+
});
|
|
2161
|
+
}
|
|
2162
|
+
const pn = (n) => {
|
|
2163
|
+
var i;
|
|
2164
|
+
return typeof window < "u" && ((i = window.CSS) != null && i.escape) ? window.CSS.escape(n) : n.replace(/([#.;?\[\]\s])/g, "\\$1");
|
|
2165
|
+
}, mn = (n) => {
|
|
1526
2166
|
if (typeof document > "u") return null;
|
|
1527
|
-
const
|
|
1528
|
-
return
|
|
1529
|
-
},
|
|
1530
|
-
function
|
|
1531
|
-
draggableRows:
|
|
1532
|
-
dataSource:
|
|
1533
|
-
config:
|
|
1534
|
-
rowKey:
|
|
1535
|
-
loading:
|
|
1536
|
-
onRowReorder:
|
|
1537
|
-
preset:
|
|
1538
|
-
customCellRender:
|
|
1539
|
-
treeMode:
|
|
1540
|
-
expandedRowKeys:
|
|
1541
|
-
defaultExpandedRowKeys:
|
|
1542
|
-
onExpandedRowsChange:
|
|
1543
|
-
indentSize:
|
|
1544
|
-
expandIcon:
|
|
1545
|
-
bodyClassName:
|
|
1546
|
-
bodyStyle:
|
|
1547
|
-
bodyRowClassName:
|
|
1548
|
-
bodyRowStyle:
|
|
1549
|
-
bodyCellClassName:
|
|
1550
|
-
bodyCellStyle:
|
|
1551
|
-
bodyCellWrapperClassName:
|
|
1552
|
-
bodyCellWrapperStyle:
|
|
1553
|
-
noDataRender:
|
|
2167
|
+
const i = `th[data-column-key="${pn(n)}"]`, t = document.querySelector(i);
|
|
2168
|
+
return t ? t.getBoundingClientRect().width : null;
|
|
2169
|
+
}, yn = typeof navigator < "u" && navigator.userAgent.toLowerCase().includes("firefox");
|
|
2170
|
+
function vn({
|
|
2171
|
+
draggableRows: n = !1,
|
|
2172
|
+
dataSource: i,
|
|
2173
|
+
config: t,
|
|
2174
|
+
rowKey: r,
|
|
2175
|
+
loading: s = !1,
|
|
2176
|
+
onRowReorder: o,
|
|
2177
|
+
preset: a,
|
|
2178
|
+
customCellRender: c,
|
|
2179
|
+
treeMode: u,
|
|
2180
|
+
expandedRowKeys: j,
|
|
2181
|
+
defaultExpandedRowKeys: g,
|
|
2182
|
+
onExpandedRowsChange: T,
|
|
2183
|
+
indentSize: q,
|
|
2184
|
+
expandIcon: X,
|
|
2185
|
+
bodyClassName: U,
|
|
2186
|
+
bodyStyle: K,
|
|
2187
|
+
bodyRowClassName: ae,
|
|
2188
|
+
bodyRowStyle: I,
|
|
2189
|
+
bodyCellClassName: f,
|
|
2190
|
+
bodyCellStyle: Y,
|
|
2191
|
+
bodyCellWrapperClassName: k,
|
|
2192
|
+
bodyCellWrapperStyle: B,
|
|
2193
|
+
noDataRender: ie,
|
|
1554
2194
|
scrollContainerRef: y,
|
|
1555
|
-
recalculateRowHeight:
|
|
2195
|
+
recalculateRowHeight: _,
|
|
2196
|
+
virtualization: m
|
|
1556
2197
|
}) {
|
|
1557
|
-
var
|
|
1558
|
-
const [
|
|
1559
|
-
|
|
1560
|
-
}, [
|
|
1561
|
-
if (!
|
|
1562
|
-
const
|
|
1563
|
-
return
|
|
1564
|
-
const
|
|
1565
|
-
|
|
1566
|
-
record:
|
|
1567
|
-
key:
|
|
2198
|
+
var Ke;
|
|
2199
|
+
const [v, p] = ye(null), [b, x] = ye(null), [O, P] = ye(() => g && g.length > 0 ? new Set(g) : /* @__PURE__ */ new Set()), D = qe.useMemo(() => j ? new Set(j) : O, [j, O]), H = ue((h) => {
|
|
2200
|
+
j || P(new Set(h)), T == null || T(h);
|
|
2201
|
+
}, [j, T]), Z = ue((h) => r ? r(h) : JSON.stringify(h), [r]), G = qe.useMemo(() => {
|
|
2202
|
+
if (!u) return [];
|
|
2203
|
+
const h = [], $ = i;
|
|
2204
|
+
return $.forEach((z, w) => {
|
|
2205
|
+
const W = Z(z), re = z == null ? void 0 : z.children;
|
|
2206
|
+
h.push({
|
|
2207
|
+
record: z,
|
|
2208
|
+
key: W,
|
|
1568
2209
|
type: "parent",
|
|
1569
2210
|
depth: 0,
|
|
1570
|
-
indexWithinGroup:
|
|
1571
|
-
groupSize:
|
|
1572
|
-
}),
|
|
1573
|
-
|
|
1574
|
-
record:
|
|
1575
|
-
key:
|
|
2211
|
+
indexWithinGroup: w,
|
|
2212
|
+
groupSize: $.length
|
|
2213
|
+
}), re && re.length > 0 && D.has(W) && re.forEach((te, Ce) => {
|
|
2214
|
+
h.push({
|
|
2215
|
+
record: te,
|
|
2216
|
+
key: Z(te),
|
|
1576
2217
|
type: "child",
|
|
1577
|
-
parentKey:
|
|
2218
|
+
parentKey: W,
|
|
1578
2219
|
depth: 1,
|
|
1579
|
-
indexWithinGroup:
|
|
1580
|
-
groupSize:
|
|
2220
|
+
indexWithinGroup: Ce,
|
|
2221
|
+
groupSize: re.length
|
|
1581
2222
|
});
|
|
1582
2223
|
});
|
|
1583
|
-
}),
|
|
1584
|
-
}, [
|
|
1585
|
-
const
|
|
1586
|
-
return
|
|
1587
|
-
}, [
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
const
|
|
1591
|
-
document.querySelectorAll(".radar-table__header-row").forEach((
|
|
1592
|
-
const
|
|
1593
|
-
let
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
}),
|
|
1597
|
-
|
|
2224
|
+
}), h;
|
|
2225
|
+
}, [u, i, Z, D]), L = qe.useMemo(() => {
|
|
2226
|
+
const h = /* @__PURE__ */ new Map();
|
|
2227
|
+
return G.forEach(($) => h.set($.key, $)), h;
|
|
2228
|
+
}, [G]);
|
|
2229
|
+
He(() => {
|
|
2230
|
+
yn && _ && (() => {
|
|
2231
|
+
const $ = document.querySelectorAll(".radar-table__body-row");
|
|
2232
|
+
document.querySelectorAll(".radar-table__header-row").forEach((w) => {
|
|
2233
|
+
const W = w.querySelectorAll(".radar-table__header-cell-wrapper");
|
|
2234
|
+
let re = 0;
|
|
2235
|
+
W.forEach((te) => {
|
|
2236
|
+
te.style.height = "auto", re = Math.max(re, te.offsetHeight);
|
|
2237
|
+
}), W.forEach((te) => {
|
|
2238
|
+
te.style.height = re + "px";
|
|
1598
2239
|
});
|
|
1599
|
-
}),
|
|
1600
|
-
const
|
|
1601
|
-
let
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
}),
|
|
1605
|
-
|
|
2240
|
+
}), $.forEach((w) => {
|
|
2241
|
+
const W = w.querySelectorAll(".radar-table__body-cell-wrapper");
|
|
2242
|
+
let re = 0;
|
|
2243
|
+
W.forEach((te) => {
|
|
2244
|
+
te.style.height = "auto", re = Math.max(re, te.offsetHeight);
|
|
2245
|
+
}), W.forEach((te) => {
|
|
2246
|
+
te.style.height = re + "px";
|
|
1606
2247
|
});
|
|
1607
2248
|
});
|
|
1608
2249
|
})();
|
|
1609
|
-
}, [
|
|
1610
|
-
const
|
|
1611
|
-
const
|
|
1612
|
-
|
|
1613
|
-
|
|
2250
|
+
}, [i, t]);
|
|
2251
|
+
const R = ((h) => {
|
|
2252
|
+
const $ = [], z = (w) => {
|
|
2253
|
+
w.forEach((W) => {
|
|
2254
|
+
W.children && W.children.length > 0 ? z(W.children) : $.push(W);
|
|
1614
2255
|
});
|
|
1615
2256
|
};
|
|
1616
|
-
return h
|
|
1617
|
-
})(
|
|
1618
|
-
if (
|
|
1619
|
-
return
|
|
1620
|
-
const
|
|
1621
|
-
for (const
|
|
1622
|
-
if (
|
|
1623
|
-
if (
|
|
1624
|
-
return
|
|
1625
|
-
const
|
|
1626
|
-
if (
|
|
2257
|
+
return z(h), $;
|
|
2258
|
+
})(t), J = (h) => {
|
|
2259
|
+
if (h.groupColor)
|
|
2260
|
+
return h.groupColor;
|
|
2261
|
+
const $ = (w, W) => {
|
|
2262
|
+
for (const re of w)
|
|
2263
|
+
if (re.children) {
|
|
2264
|
+
if (re.children.some((Ce) => Ce.key === W))
|
|
2265
|
+
return re;
|
|
2266
|
+
const te = $(re.children, W);
|
|
2267
|
+
if (te) return te;
|
|
1627
2268
|
}
|
|
1628
2269
|
return null;
|
|
1629
|
-
},
|
|
1630
|
-
return
|
|
1631
|
-
},
|
|
1632
|
-
if (
|
|
1633
|
-
|
|
2270
|
+
}, z = $(t, h.key);
|
|
2271
|
+
return z == null ? void 0 : z.groupColor;
|
|
2272
|
+
}, S = ue((h, $) => {
|
|
2273
|
+
if (!$) {
|
|
2274
|
+
h.preventDefault();
|
|
1634
2275
|
return;
|
|
1635
2276
|
}
|
|
1636
|
-
|
|
1637
|
-
const
|
|
1638
|
-
if (
|
|
1639
|
-
const
|
|
1640
|
-
|
|
2277
|
+
p($), h.dataTransfer.effectAllowed = "move", h.dataTransfer.setData("text/plain", $), document.body.style.cursor = "grabbing";
|
|
2278
|
+
const z = i.find((w) => (r ? r(w) : JSON.stringify(w)) === $);
|
|
2279
|
+
if (z) {
|
|
2280
|
+
const w = document.createElement("div");
|
|
2281
|
+
w.style.cssText = `
|
|
1641
2282
|
background: white;
|
|
1642
2283
|
border-radius: 6px;
|
|
1643
2284
|
padding: 8px 12px;
|
|
@@ -1651,682 +2292,729 @@ function Zt({
|
|
|
1651
2292
|
overflow: hidden;
|
|
1652
2293
|
text-overflow: ellipsis;
|
|
1653
2294
|
`;
|
|
1654
|
-
const
|
|
1655
|
-
if (
|
|
1656
|
-
const
|
|
1657
|
-
|
|
2295
|
+
const W = R[0];
|
|
2296
|
+
if (W) {
|
|
2297
|
+
const te = z[W.key];
|
|
2298
|
+
w.textContent = (te == null ? void 0 : te.toString()) || "Строка";
|
|
1658
2299
|
} else
|
|
1659
|
-
|
|
1660
|
-
document.body.appendChild(
|
|
1661
|
-
const
|
|
1662
|
-
document.body.contains(
|
|
2300
|
+
w.textContent = "Строка";
|
|
2301
|
+
document.body.appendChild(w), w.style.position = "absolute", w.style.top = "-1000px", w.style.left = "-1000px", h.dataTransfer.setDragImage(w, 10, 10);
|
|
2302
|
+
const re = setTimeout(() => {
|
|
2303
|
+
document.body.contains(w) && document.body.removeChild(w);
|
|
1663
2304
|
}, 0);
|
|
1664
|
-
return () => clearTimeout(
|
|
1665
|
-
}
|
|
1666
|
-
}, []),
|
|
1667
|
-
|
|
1668
|
-
}, []),
|
|
1669
|
-
if (
|
|
1670
|
-
if (!
|
|
1671
|
-
|
|
2305
|
+
return () => clearTimeout(re);
|
|
2306
|
+
}
|
|
2307
|
+
}, []), E = ue((h) => {
|
|
2308
|
+
h.preventDefault(), h.dataTransfer.dropEffect = "move";
|
|
2309
|
+
}, []), A = ue((h, $) => {
|
|
2310
|
+
if (h.preventDefault(), !v) return;
|
|
2311
|
+
if (!u) {
|
|
2312
|
+
v !== $ && x($);
|
|
1672
2313
|
return;
|
|
1673
2314
|
}
|
|
1674
|
-
const
|
|
1675
|
-
if (!
|
|
1676
|
-
const
|
|
1677
|
-
|
|
1678
|
-
}, [
|
|
1679
|
-
|
|
1680
|
-
}, []),
|
|
1681
|
-
|
|
1682
|
-
}, []),
|
|
1683
|
-
if (
|
|
2315
|
+
const z = L.get(v), w = L.get($);
|
|
2316
|
+
if (!z || !w) return;
|
|
2317
|
+
const W = z.type === "parent" && w.type === "parent" || z.type === "child" && w.type === "child" && z.parentKey === w.parentKey;
|
|
2318
|
+
x(W && v !== $ ? $ : null);
|
|
2319
|
+
}, [v, u, L]), N = ue((h) => {
|
|
2320
|
+
h.preventDefault(), x(null);
|
|
2321
|
+
}, []), Q = ue(() => {
|
|
2322
|
+
p(null), x(null), document.body.style.cursor = "";
|
|
2323
|
+
}, []), V = ue((h, $) => {
|
|
2324
|
+
if (h.preventDefault(), !v || v === $)
|
|
1684
2325
|
return;
|
|
1685
|
-
if (!
|
|
1686
|
-
const
|
|
1687
|
-
if (
|
|
2326
|
+
if (!u) {
|
|
2327
|
+
const W = i.findIndex((me) => (r ? r(me) : JSON.stringify(me)) === v), re = i.findIndex((me) => (r ? r(me) : JSON.stringify(me)) === $);
|
|
2328
|
+
if (W === -1 || re === -1)
|
|
1688
2329
|
return;
|
|
1689
|
-
const
|
|
1690
|
-
|
|
2330
|
+
const te = [...i], [Ce] = te.splice(W, 1);
|
|
2331
|
+
te.splice(re, 0, Ce), o == null || o(te), p(null), x(null), document.body.style.cursor = "";
|
|
1691
2332
|
return;
|
|
1692
2333
|
}
|
|
1693
|
-
const
|
|
1694
|
-
if (!(!
|
|
1695
|
-
if (
|
|
1696
|
-
const
|
|
1697
|
-
if (
|
|
1698
|
-
const
|
|
1699
|
-
|
|
2334
|
+
const z = L.get(v), w = L.get($);
|
|
2335
|
+
if (!(!z || !w)) {
|
|
2336
|
+
if (z.type === "parent" && w.type === "parent") {
|
|
2337
|
+
const W = i.findIndex((me) => (r ? r(me) : JSON.stringify(me)) === z.key), re = i.findIndex((me) => (r ? r(me) : JSON.stringify(me)) === w.key);
|
|
2338
|
+
if (W === -1 || re === -1) return;
|
|
2339
|
+
const te = [...i], [Ce] = te.splice(W, 1);
|
|
2340
|
+
te.splice(re, 0, Ce), o == null || o(te), p(null), x(null), document.body.style.cursor = "";
|
|
1700
2341
|
return;
|
|
1701
2342
|
}
|
|
1702
|
-
if (
|
|
1703
|
-
const
|
|
1704
|
-
if (
|
|
1705
|
-
const
|
|
1706
|
-
if (!
|
|
1707
|
-
const
|
|
1708
|
-
if (
|
|
1709
|
-
const
|
|
1710
|
-
if (
|
|
1711
|
-
const
|
|
1712
|
-
return
|
|
2343
|
+
if (z.type === "child" && w.type === "child" && z.parentKey === w.parentKey) {
|
|
2344
|
+
const W = i.findIndex((xe) => (r ? r(xe) : JSON.stringify(xe)) === z.parentKey);
|
|
2345
|
+
if (W === -1) return;
|
|
2346
|
+
const re = i[W], te = re == null ? void 0 : re.children;
|
|
2347
|
+
if (!te || te.length === 0) return;
|
|
2348
|
+
const Ce = te.findIndex((xe) => (r ? r(xe) : JSON.stringify(xe)) === z.key), me = te.findIndex((xe) => (r ? r(xe) : JSON.stringify(xe)) === w.key);
|
|
2349
|
+
if (Ce === -1 || me === -1) return;
|
|
2350
|
+
const ke = i.map((xe, De) => {
|
|
2351
|
+
if (De !== W) return xe;
|
|
2352
|
+
const $e = [...te], [Ne] = $e.splice(Ce, 1);
|
|
2353
|
+
return $e.splice(me, 0, Ne), { ...xe, children: $e };
|
|
1713
2354
|
});
|
|
1714
|
-
|
|
2355
|
+
o == null || o(ke), p(null), x(null), document.body.style.cursor = "";
|
|
1715
2356
|
return;
|
|
1716
2357
|
}
|
|
1717
2358
|
}
|
|
1718
|
-
}, [
|
|
1719
|
-
if (
|
|
1720
|
-
let
|
|
1721
|
-
return y && (
|
|
2359
|
+
}, [v, i, r, o, u, L]);
|
|
2360
|
+
if (i.length === 0) {
|
|
2361
|
+
let h;
|
|
2362
|
+
return y && (h = ((Ke = y.current) == null ? void 0 : Ke.clientWidth) + "px"), /* @__PURE__ */ l.jsx("tbody", { className: `radar-table__body ${a ? a + "__body" : ""} ${U}`, style: K, children: /* @__PURE__ */ l.jsx(
|
|
1722
2363
|
"tr",
|
|
1723
2364
|
{
|
|
1724
|
-
className: `radar-table__body-row ${
|
|
1725
|
-
style:
|
|
1726
|
-
children: /* @__PURE__ */
|
|
2365
|
+
className: `radar-table__body-row ${a ? a + "__body-row" : ""} ${ae}`,
|
|
2366
|
+
style: I,
|
|
2367
|
+
children: /* @__PURE__ */ l.jsxs(
|
|
1727
2368
|
"td",
|
|
1728
2369
|
{
|
|
1729
|
-
className: `radar-table__body-cell ${
|
|
1730
|
-
colSpan:
|
|
2370
|
+
className: `radar-table__body-cell ${a ? a + "__body-cell" : ""} ${f}`,
|
|
2371
|
+
colSpan: R.length,
|
|
1731
2372
|
style: {
|
|
1732
|
-
...
|
|
2373
|
+
...Y
|
|
1733
2374
|
},
|
|
1734
2375
|
children: [
|
|
1735
|
-
|
|
1736
|
-
!
|
|
2376
|
+
ie && ie(),
|
|
2377
|
+
!ie && /* @__PURE__ */ l.jsx("div", { className: `${h ? "radar-table__body-noData_width" : "radar-table__body-noData"}`, style: { width: h || "" }, children: "Нет данных" })
|
|
1737
2378
|
]
|
|
1738
2379
|
}
|
|
1739
2380
|
)
|
|
1740
2381
|
}
|
|
1741
2382
|
) });
|
|
1742
2383
|
}
|
|
1743
|
-
const
|
|
1744
|
-
record:
|
|
1745
|
-
key:
|
|
2384
|
+
const M = u ? G : i.map((h) => ({
|
|
2385
|
+
record: h,
|
|
2386
|
+
key: r ? r(h) : JSON.stringify(h),
|
|
1746
2387
|
type: "parent",
|
|
1747
2388
|
depth: 0,
|
|
1748
2389
|
indexWithinGroup: 0,
|
|
1749
|
-
groupSize:
|
|
1750
|
-
})),
|
|
1751
|
-
const
|
|
1752
|
-
|
|
1753
|
-
}, [
|
|
1754
|
-
function
|
|
1755
|
-
var
|
|
1756
|
-
const
|
|
1757
|
-
let
|
|
1758
|
-
|
|
1759
|
-
if (!
|
|
1760
|
-
|
|
2390
|
+
groupSize: i.length
|
|
2391
|
+
})), ne = ue((h) => {
|
|
2392
|
+
const $ = new Set(D);
|
|
2393
|
+
$.has(h) ? $.delete(h) : $.add(h), H(Array.from($));
|
|
2394
|
+
}, [D, H]);
|
|
2395
|
+
function ee({ column: h, index: $, row: z, item: w }) {
|
|
2396
|
+
var Ue, We;
|
|
2397
|
+
const W = je(null), [re, te] = ye(0), Ce = h.fixed && !h.width ? 200 : h.width, me = h.fixed && !h.minWidth ? 200 : h.minWidth;
|
|
2398
|
+
let ke = !1;
|
|
2399
|
+
c && c.idx.includes(h.dataIndex) && (ke = !0), c && c.idx.length === 0 && (ke = !0), Qe(() => {
|
|
2400
|
+
if (!h.fixed) {
|
|
2401
|
+
te(0);
|
|
1761
2402
|
return;
|
|
1762
2403
|
}
|
|
1763
|
-
let
|
|
1764
|
-
if (
|
|
1765
|
-
for (let we = 0; we <
|
|
1766
|
-
if (
|
|
1767
|
-
const ze =
|
|
1768
|
-
|
|
2404
|
+
let Ae = h.fixedLeft || 0;
|
|
2405
|
+
if ($ !== 0) {
|
|
2406
|
+
for (let we = 0; we < $; we++)
|
|
2407
|
+
if (R[we].fixed && !R[we].hidden) {
|
|
2408
|
+
const ze = R[we].width || R[we].minWidth || 200, Fe = mn(R[we].key);
|
|
2409
|
+
Ae += Math.floor(Fe ?? ze) - 0.05;
|
|
1769
2410
|
}
|
|
1770
2411
|
}
|
|
1771
|
-
|
|
1772
|
-
}, [
|
|
1773
|
-
const
|
|
1774
|
-
return
|
|
2412
|
+
te(Ae);
|
|
2413
|
+
}, [h.fixed, h.fixedLeft, h.width, $]);
|
|
2414
|
+
const xe = J(h), De = $ === 0, $e = u && De && z.depth > 0 ? z.depth * (q || 16) : void 0, Ne = !!(u && z.type === "parent"), Ie = !!(u && D.has(z.key)), Je = !!(u && Ne && (w != null && w.children) && w.children.length > 0);
|
|
2415
|
+
return h.hidden ? null : /* @__PURE__ */ l.jsx(
|
|
1775
2416
|
"td",
|
|
1776
2417
|
{
|
|
1777
|
-
ref:
|
|
1778
|
-
"data-column-key":
|
|
1779
|
-
className: `radar-table__body-cell ${
|
|
2418
|
+
ref: W,
|
|
2419
|
+
"data-column-key": h.key,
|
|
2420
|
+
className: `radar-table__body-cell ${a ? a + "__body-cell" : ""} ${f}`,
|
|
1780
2421
|
style: {
|
|
1781
|
-
width:
|
|
1782
|
-
minWidth:
|
|
1783
|
-
position:
|
|
1784
|
-
left:
|
|
1785
|
-
borderRight:
|
|
1786
|
-
cursor:
|
|
1787
|
-
...
|
|
2422
|
+
width: Ce,
|
|
2423
|
+
minWidth: me,
|
|
2424
|
+
position: h.fixed ? "sticky" : "static",
|
|
2425
|
+
left: re,
|
|
2426
|
+
borderRight: h.fixed && !((Ue = R[$ + 1]) != null && Ue.fixed) ? "1px solid #E8E8E8" : "none",
|
|
2427
|
+
cursor: De && Je ? "pointer" : "default",
|
|
2428
|
+
...Y
|
|
1788
2429
|
},
|
|
1789
|
-
onClick:
|
|
1790
|
-
children: /* @__PURE__ */
|
|
2430
|
+
onClick: De && Je ? () => ne(z.key) : void 0,
|
|
2431
|
+
children: /* @__PURE__ */ l.jsxs(
|
|
1791
2432
|
"div",
|
|
1792
2433
|
{
|
|
1793
|
-
className: `radar-table__body-cell-wrapper ${
|
|
2434
|
+
className: `radar-table__body-cell-wrapper ${a ? a + "__body-cell-wrapper" : ""} ${k}`,
|
|
1794
2435
|
style: {
|
|
1795
|
-
backgroundColor:
|
|
1796
|
-
paddingLeft:
|
|
1797
|
-
...
|
|
2436
|
+
backgroundColor: xe || "white",
|
|
2437
|
+
paddingLeft: $e,
|
|
2438
|
+
...B
|
|
1798
2439
|
},
|
|
1799
2440
|
children: [
|
|
1800
|
-
|
|
2441
|
+
De && Ne && u && (w == null ? void 0 : w.children) && w.children.length > 0 && /* @__PURE__ */ l.jsx(
|
|
1801
2442
|
"button",
|
|
1802
2443
|
{
|
|
1803
2444
|
type: "button",
|
|
1804
|
-
className: `radar-table__expander-btn ${
|
|
1805
|
-
"aria-expanded":
|
|
1806
|
-
onClick: () =>
|
|
1807
|
-
style: { marginRight: 8, background: "transparent", border: "none", transform:
|
|
1808
|
-
title:
|
|
1809
|
-
children:
|
|
2445
|
+
className: `radar-table__expander-btn ${Ie ? "expanded" : ""}`,
|
|
2446
|
+
"aria-expanded": Ie,
|
|
2447
|
+
onClick: () => ne(z.key),
|
|
2448
|
+
style: { marginRight: 8, background: "transparent", border: "none", transform: Ie ? "rotate(180deg)" : "rotate(0deg)", transition: "transform 150ms ease" },
|
|
2449
|
+
title: Ie ? "Свернуть" : "Развернуть",
|
|
2450
|
+
children: X ? X(Ie, w) : /* @__PURE__ */ l.jsx("svg", { width: "12", height: "8", viewBox: "0 0 12 8", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ l.jsx("path", { d: "M4.99264 6.91705C5.28553 7.20994 5.76041 7.20994 6.0533 6.91705L10.8263 2.14408C11.1192 1.85118 11.1192 1.37631 10.8263 1.08342C10.5334 0.790524 10.0585 0.790524 9.76561 1.08342L6.27297 4.57606L5.5 5.34903L4.77297 4.57606L1.28033 1.08342C0.987437 0.790524 0.512563 0.790524 0.21967 1.08342C-0.0732234 1.37631 -0.0732234 1.85118 0.21967 2.14408L4.99264 6.91705Z", fill: "#8C8C8C" }) })
|
|
1810
2451
|
}
|
|
1811
2452
|
),
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
!
|
|
2453
|
+
ke ? c == null ? void 0 : c.renderer(w[h.dataIndex], w, $, h.dataIndex) : /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
2454
|
+
h.units && tn(((We = w[h.key]) == null ? void 0 : We.toString()) || "", h.units),
|
|
2455
|
+
!h.units && w[h.key]
|
|
1815
2456
|
] })
|
|
1816
2457
|
]
|
|
1817
2458
|
}
|
|
1818
2459
|
)
|
|
1819
2460
|
},
|
|
1820
|
-
|
|
2461
|
+
h.key
|
|
1821
2462
|
);
|
|
1822
2463
|
}
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
2464
|
+
if (!(m != null && m.enabled))
|
|
2465
|
+
return /* @__PURE__ */ l.jsx("tbody", { className: `radar-table__body ${a ? a + "__body" : ""} ${U}`, style: K, children: M.map((h) => {
|
|
2466
|
+
const $ = h.record, z = h.key;
|
|
2467
|
+
return /* @__PURE__ */ l.jsx(
|
|
2468
|
+
"tr",
|
|
2469
|
+
{
|
|
2470
|
+
className: `radar-table__body-row ${a ? a + "__body-row" : ""} ${ae} ${v === z ? "dragging" : ""} ${b === z ? "drag-over" : ""} ${u ? h.type === "parent" ? "radar-table__body-row--parent" : "radar-table__body-row--child" : ""}`,
|
|
2471
|
+
style: I,
|
|
2472
|
+
draggable: n,
|
|
2473
|
+
onDragStart: (w) => S(w, z),
|
|
2474
|
+
onDragOver: E,
|
|
2475
|
+
onDragEnter: (w) => A(w, z),
|
|
2476
|
+
onDragLeave: N,
|
|
2477
|
+
onDrop: (w) => V(w, z),
|
|
2478
|
+
onDragEnd: Q,
|
|
2479
|
+
children: R.map((w, W) => /* @__PURE__ */ l.jsx(ee, { column: w, index: W, row: h, item: $ }, w.key))
|
|
2480
|
+
},
|
|
2481
|
+
z
|
|
2482
|
+
);
|
|
2483
|
+
}) });
|
|
2484
|
+
const ve = m.estimateSize ?? 48, be = m.overscan ?? 12, le = gn({
|
|
2485
|
+
count: M.length,
|
|
2486
|
+
getScrollElement: () => y == null ? void 0 : y.current,
|
|
2487
|
+
estimateSize: () => ve,
|
|
2488
|
+
overscan: be,
|
|
2489
|
+
measureElement: (h) => h.getBoundingClientRect().height
|
|
2490
|
+
}), he = le.getVirtualItems(), Oe = le.getTotalSize(), Re = he.length ? he[0].start : 0, Te = he.length ? Oe - he[he.length - 1].end : 0;
|
|
2491
|
+
return /* @__PURE__ */ l.jsxs("tbody", { className: `radar-table__body ${a ? a + "__body" : ""} ${U}`, style: K, children: [
|
|
2492
|
+
Re > 0 && /* @__PURE__ */ l.jsx("tr", { style: { height: Re }, children: /* @__PURE__ */ l.jsx("td", { colSpan: R.length }) }),
|
|
2493
|
+
he.map((h) => {
|
|
2494
|
+
const $ = M[h.index], z = $.record, w = $.key;
|
|
2495
|
+
return /* @__PURE__ */ l.jsx(
|
|
2496
|
+
"tr",
|
|
2497
|
+
{
|
|
2498
|
+
ref: le.measureElement,
|
|
2499
|
+
className: `radar-table__body-row ${a ? a + "__body-row" : ""} ${ae} ${v === w ? "dragging" : ""} ${b === w ? "drag-over" : ""} ${u ? $.type === "parent" ? "radar-table__body-row--parent" : "radar-table__body-row--child" : ""}`,
|
|
2500
|
+
style: I,
|
|
2501
|
+
draggable: n,
|
|
2502
|
+
onDragStart: (W) => S(W, w),
|
|
2503
|
+
onDragOver: E,
|
|
2504
|
+
onDragEnter: (W) => A(W, w),
|
|
2505
|
+
onDragLeave: N,
|
|
2506
|
+
onDrop: (W) => V(W, w),
|
|
2507
|
+
onDragEnd: Q,
|
|
2508
|
+
children: R.map((W, re) => /* @__PURE__ */ l.jsx(ee, { column: W, index: re, row: $, item: z }, W.key))
|
|
2509
|
+
},
|
|
2510
|
+
w
|
|
2511
|
+
);
|
|
2512
|
+
}),
|
|
2513
|
+
Te > 0 && /* @__PURE__ */ l.jsx("tr", { style: { height: Te }, children: /* @__PURE__ */ l.jsx("td", { colSpan: R.length }) })
|
|
2514
|
+
] });
|
|
1842
2515
|
}
|
|
1843
|
-
const
|
|
1844
|
-
const [{ current:
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
}, [
|
|
1848
|
-
const
|
|
1849
|
-
const
|
|
1850
|
-
!/^[0-9]$/.test(
|
|
1851
|
-
},
|
|
1852
|
-
if (
|
|
1853
|
-
const
|
|
1854
|
-
|
|
1855
|
-
}
|
|
1856
|
-
},
|
|
1857
|
-
const
|
|
1858
|
-
|
|
1859
|
-
},
|
|
1860
|
-
|
|
1861
|
-
const
|
|
1862
|
-
|
|
1863
|
-
},
|
|
1864
|
-
const
|
|
1865
|
-
|
|
1866
|
-
},
|
|
1867
|
-
|
|
2516
|
+
const pt = ({ config: n }) => {
|
|
2517
|
+
const [{ current: i, pageSize: t, total: r, onChange: s, showQuickJumper: o, buttonsCount: a = 4, hideOnSinglePage: c = !1 }, u] = ye(n);
|
|
2518
|
+
He(() => {
|
|
2519
|
+
u(n);
|
|
2520
|
+
}, [n]);
|
|
2521
|
+
const j = Math.ceil(i / a), g = (j - 1) * a + 1, T = j * a, q = (f) => {
|
|
2522
|
+
const Y = ["Backspace", "Delete", "ArrowLeft", "ArrowRight", "Tab", "Enter"];
|
|
2523
|
+
!/^[0-9]$/.test(f.key) && !Y.includes(f.key) && f.preventDefault();
|
|
2524
|
+
}, X = (f) => {
|
|
2525
|
+
if (f.key === "Enter") {
|
|
2526
|
+
const Y = parseInt(f.currentTarget.value);
|
|
2527
|
+
Y > 0 && Y <= r && (u({ ...n, current: Y }), s == null || s(Y, t), f.currentTarget.value = "");
|
|
2528
|
+
}
|
|
2529
|
+
}, U = (f) => {
|
|
2530
|
+
const k = f.target.value.replace(/[^0-9]/g, "");
|
|
2531
|
+
f.target.value = k;
|
|
2532
|
+
}, K = (f) => {
|
|
2533
|
+
f.preventDefault();
|
|
2534
|
+
const k = f.clipboardData.getData("text").replace(/[^0-9]/g, ""), B = f.target, ie = B.selectionStart || 0, y = B.selectionEnd || 0, _ = B.value.substring(0, ie) + k + B.value.substring(y);
|
|
2535
|
+
B.value = _, B.setSelectionRange(ie + k.length, ie + k.length);
|
|
2536
|
+
}, ae = (f) => {
|
|
2537
|
+
const Y = f.currentTarget.id;
|
|
2538
|
+
Y === "pagination_left_button" && i > 1 && (u({ ...n, current: i - 1 }), s == null || s(i - 1, t)), Y === "pagination_right_button" && i < r && (u({ ...n, current: i + 1 }), s == null || s(i + 1, t));
|
|
2539
|
+
}, I = (f) => {
|
|
2540
|
+
u({ ...n, current: f }), s == null || s(f, t);
|
|
1868
2541
|
};
|
|
1869
|
-
return
|
|
1870
|
-
/* @__PURE__ */
|
|
2542
|
+
return c && r <= 1 ? null : /* @__PURE__ */ l.jsxs("div", { className: "radar-table__pagination", children: [
|
|
2543
|
+
/* @__PURE__ */ l.jsxs(
|
|
1871
2544
|
"div",
|
|
1872
2545
|
{
|
|
1873
2546
|
className: "radar-table__pagination-main",
|
|
1874
2547
|
style: {
|
|
1875
|
-
gridTemplateColumns: `repeat(${
|
|
2548
|
+
gridTemplateColumns: `repeat(${a + 2}, 32px)`
|
|
1876
2549
|
},
|
|
1877
2550
|
children: [
|
|
1878
|
-
/* @__PURE__ */
|
|
1879
|
-
Array.from({ length:
|
|
1880
|
-
const
|
|
1881
|
-
if (
|
|
1882
|
-
return
|
|
2551
|
+
/* @__PURE__ */ l.jsx("button", { className: "radar-table__pagination-button radar-table__pagination-button_control", id: "pagination_left_button", onClick: ae, title: "Назад", children: /* @__PURE__ */ l.jsx("svg", { width: "6", height: "10", viewBox: "0 0 6 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ l.jsx("path", { d: "M5 0.544067L1 4.54407L5 8.54407", stroke: "#8C8C8C", strokeLinecap: "round" }) }) }),
|
|
2552
|
+
Array.from({ length: r }, (f, Y) => Y + 1).map((f) => {
|
|
2553
|
+
const Y = i === f;
|
|
2554
|
+
if (f >= g && f <= T)
|
|
2555
|
+
return Y ? /* @__PURE__ */ l.jsx("button", { className: "radar-table__pagination-button radar-table__pagination-button_active", children: f }, f) : /* @__PURE__ */ l.jsx("button", { className: "radar-table__pagination-button", onClick: () => I(f), children: f }, f);
|
|
1883
2556
|
}),
|
|
1884
|
-
/* @__PURE__ */
|
|
2557
|
+
/* @__PURE__ */ l.jsx("button", { className: "radar-table__pagination-button radar-table__pagination-button_control", id: "pagination_right_button", onClick: ae, title: "Вперёд", children: /* @__PURE__ */ l.jsx("svg", { width: "6", height: "10", viewBox: "0 0 6 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ l.jsx("path", { d: "M1 8.54407L5 4.54407L1 0.544067", stroke: "#8C8C8C", strokeLinecap: "round" }) }) })
|
|
1885
2558
|
]
|
|
1886
2559
|
}
|
|
1887
2560
|
),
|
|
1888
|
-
|
|
2561
|
+
o && /* @__PURE__ */ l.jsxs("div", { className: "radar-table__pagination-quick-jumper", children: [
|
|
1889
2562
|
"Перейти на ",
|
|
1890
|
-
/* @__PURE__ */
|
|
2563
|
+
/* @__PURE__ */ l.jsx(
|
|
1891
2564
|
"input",
|
|
1892
2565
|
{
|
|
1893
2566
|
className: "radar-table__pagination-input",
|
|
1894
|
-
onKeyDown:
|
|
1895
|
-
onChange:
|
|
1896
|
-
onPaste:
|
|
1897
|
-
onKeyUp: (
|
|
2567
|
+
onKeyDown: q,
|
|
2568
|
+
onChange: U,
|
|
2569
|
+
onPaste: K,
|
|
2570
|
+
onKeyUp: (f) => X(f)
|
|
1898
2571
|
}
|
|
1899
2572
|
),
|
|
1900
2573
|
" стр. из ",
|
|
1901
|
-
|
|
2574
|
+
r
|
|
1902
2575
|
] })
|
|
1903
2576
|
] });
|
|
1904
2577
|
};
|
|
1905
|
-
function
|
|
1906
|
-
dataSource:
|
|
1907
|
-
preset:
|
|
1908
|
-
config:
|
|
1909
|
-
rowKey:
|
|
1910
|
-
loading:
|
|
1911
|
-
pagination:
|
|
1912
|
-
stickyHeader:
|
|
1913
|
-
resizeable:
|
|
1914
|
-
draggableRows:
|
|
1915
|
-
draggableColumns:
|
|
1916
|
-
scrollContainerRef:
|
|
1917
|
-
onResize:
|
|
1918
|
-
onSort:
|
|
1919
|
-
onRowReorder:
|
|
1920
|
-
onColumnReorder:
|
|
1921
|
-
customCellRender:
|
|
1922
|
-
noDataRender:
|
|
1923
|
-
sortIcon:
|
|
1924
|
-
expandIcon:
|
|
1925
|
-
recalculateRowHeight:
|
|
2578
|
+
function Sn({
|
|
2579
|
+
dataSource: n,
|
|
2580
|
+
preset: i,
|
|
2581
|
+
config: t,
|
|
2582
|
+
rowKey: r,
|
|
2583
|
+
loading: s = !1,
|
|
2584
|
+
pagination: o,
|
|
2585
|
+
stickyHeader: a = !1,
|
|
2586
|
+
resizeable: c = !1,
|
|
2587
|
+
draggableRows: u = !1,
|
|
2588
|
+
draggableColumns: j = !1,
|
|
2589
|
+
scrollContainerRef: g,
|
|
2590
|
+
onResize: T,
|
|
2591
|
+
onSort: q,
|
|
2592
|
+
onRowReorder: X,
|
|
2593
|
+
onColumnReorder: U,
|
|
2594
|
+
customCellRender: K,
|
|
2595
|
+
noDataRender: ae,
|
|
2596
|
+
sortIcon: I,
|
|
2597
|
+
expandIcon: f,
|
|
2598
|
+
recalculateRowHeight: Y = !1,
|
|
1926
2599
|
// sorting props
|
|
1927
|
-
sorting:
|
|
1928
|
-
defaultSorting:
|
|
2600
|
+
sorting: k,
|
|
2601
|
+
defaultSorting: B,
|
|
1929
2602
|
// tree props
|
|
1930
|
-
treeMode:
|
|
2603
|
+
treeMode: ie,
|
|
1931
2604
|
expandedRowKeys: y,
|
|
1932
|
-
defaultExpandedRowKeys:
|
|
1933
|
-
onExpandedRowsChange:
|
|
1934
|
-
indentSize:
|
|
1935
|
-
className:
|
|
1936
|
-
style:
|
|
1937
|
-
headerClassName:
|
|
1938
|
-
headerStyle:
|
|
1939
|
-
headerCellClassName:
|
|
1940
|
-
headerCellStyle:
|
|
1941
|
-
headerRowClassName:
|
|
1942
|
-
headerRowStyle:
|
|
1943
|
-
headerCellWrapperClassName:
|
|
1944
|
-
headerCellWrapperStyle:
|
|
1945
|
-
bodyClassName:
|
|
1946
|
-
bodyStyle:
|
|
1947
|
-
bodyRowClassName:
|
|
1948
|
-
bodyRowStyle:
|
|
1949
|
-
bodyCellClassName:
|
|
1950
|
-
bodyCellStyle:
|
|
1951
|
-
bodyCellWrapperClassName:
|
|
1952
|
-
bodyCellWrapperStyle:
|
|
1953
|
-
headerGroupRowClassName:
|
|
1954
|
-
headerGroupRowStyle:
|
|
1955
|
-
headerGroupCellClassName:
|
|
1956
|
-
headerGroupCellStyle:
|
|
1957
|
-
headerGroupCellWrapperClassName:
|
|
1958
|
-
headerGroupCellWrapperStyle:
|
|
1959
|
-
paginationContainerClassName:
|
|
1960
|
-
paginationContainerStyle:
|
|
1961
|
-
resizeThrottle:
|
|
2605
|
+
defaultExpandedRowKeys: _,
|
|
2606
|
+
onExpandedRowsChange: m,
|
|
2607
|
+
indentSize: v,
|
|
2608
|
+
className: p = "",
|
|
2609
|
+
style: b,
|
|
2610
|
+
headerClassName: x = "",
|
|
2611
|
+
headerStyle: O,
|
|
2612
|
+
headerCellClassName: P = "",
|
|
2613
|
+
headerCellStyle: D,
|
|
2614
|
+
headerRowClassName: H = "",
|
|
2615
|
+
headerRowStyle: Z,
|
|
2616
|
+
headerCellWrapperClassName: G = "",
|
|
2617
|
+
headerCellWrapperStyle: L,
|
|
2618
|
+
bodyClassName: ce = "",
|
|
2619
|
+
bodyStyle: R,
|
|
2620
|
+
bodyRowClassName: J = "",
|
|
2621
|
+
bodyRowStyle: S,
|
|
2622
|
+
bodyCellClassName: E = "",
|
|
2623
|
+
bodyCellStyle: A,
|
|
2624
|
+
bodyCellWrapperClassName: N = "",
|
|
2625
|
+
bodyCellWrapperStyle: Q,
|
|
2626
|
+
headerGroupRowClassName: V,
|
|
2627
|
+
headerGroupRowStyle: M,
|
|
2628
|
+
headerGroupCellClassName: ne,
|
|
2629
|
+
headerGroupCellStyle: ee,
|
|
2630
|
+
headerGroupCellWrapperClassName: ve,
|
|
2631
|
+
headerGroupCellWrapperStyle: be,
|
|
2632
|
+
paginationContainerClassName: le = "",
|
|
2633
|
+
paginationContainerStyle: he,
|
|
2634
|
+
resizeThrottle: Oe = 0,
|
|
2635
|
+
virtualization: Re
|
|
1962
2636
|
}) {
|
|
1963
|
-
return
|
|
1964
|
-
/* @__PURE__ */
|
|
1965
|
-
|
|
2637
|
+
return j ? /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
2638
|
+
/* @__PURE__ */ l.jsx(
|
|
2639
|
+
Zt,
|
|
1966
2640
|
{
|
|
1967
|
-
fullConfig:
|
|
1968
|
-
onColumnReorder:
|
|
1969
|
-
scrollContainerRef:
|
|
1970
|
-
children: /* @__PURE__ */
|
|
1971
|
-
|
|
2641
|
+
fullConfig: t,
|
|
2642
|
+
onColumnReorder: U,
|
|
2643
|
+
scrollContainerRef: g,
|
|
2644
|
+
children: /* @__PURE__ */ l.jsx(
|
|
2645
|
+
mt,
|
|
1972
2646
|
{
|
|
1973
|
-
dataSource:
|
|
1974
|
-
preset:
|
|
1975
|
-
config:
|
|
1976
|
-
rowKey:
|
|
1977
|
-
loading:
|
|
1978
|
-
pagination:
|
|
1979
|
-
stickyHeader:
|
|
1980
|
-
resizeable:
|
|
1981
|
-
draggableRows:
|
|
1982
|
-
draggableColumns:
|
|
1983
|
-
scrollContainerRef:
|
|
1984
|
-
onResize:
|
|
1985
|
-
onSort:
|
|
1986
|
-
onRowReorder:
|
|
1987
|
-
onColumnReorder:
|
|
1988
|
-
customCellRender:
|
|
1989
|
-
sortIcon:
|
|
1990
|
-
expandIcon:
|
|
1991
|
-
treeMode:
|
|
2647
|
+
dataSource: n,
|
|
2648
|
+
preset: i,
|
|
2649
|
+
config: t,
|
|
2650
|
+
rowKey: r,
|
|
2651
|
+
loading: s,
|
|
2652
|
+
pagination: o,
|
|
2653
|
+
stickyHeader: a,
|
|
2654
|
+
resizeable: c,
|
|
2655
|
+
draggableRows: u,
|
|
2656
|
+
draggableColumns: j,
|
|
2657
|
+
scrollContainerRef: g,
|
|
2658
|
+
onResize: T,
|
|
2659
|
+
onSort: q,
|
|
2660
|
+
onRowReorder: X,
|
|
2661
|
+
onColumnReorder: U,
|
|
2662
|
+
customCellRender: K,
|
|
2663
|
+
sortIcon: I,
|
|
2664
|
+
expandIcon: f,
|
|
2665
|
+
treeMode: ie,
|
|
1992
2666
|
expandedRowKeys: y,
|
|
1993
|
-
defaultExpandedRowKeys:
|
|
1994
|
-
onExpandedRowsChange:
|
|
1995
|
-
indentSize:
|
|
1996
|
-
className:
|
|
1997
|
-
style:
|
|
1998
|
-
headerClassName:
|
|
1999
|
-
headerStyle:
|
|
2000
|
-
headerCellClassName:
|
|
2001
|
-
headerCellStyle:
|
|
2002
|
-
headerRowClassName:
|
|
2003
|
-
headerRowStyle:
|
|
2004
|
-
headerCellWrapperClassName:
|
|
2005
|
-
headerCellWrapperStyle:
|
|
2006
|
-
bodyClassName:
|
|
2007
|
-
bodyStyle:
|
|
2008
|
-
bodyRowClassName:
|
|
2009
|
-
bodyRowStyle:
|
|
2010
|
-
bodyCellClassName:
|
|
2011
|
-
bodyCellStyle:
|
|
2012
|
-
bodyCellWrapperClassName:
|
|
2013
|
-
bodyCellWrapperStyle:
|
|
2014
|
-
headerGroupRowClassName:
|
|
2015
|
-
headerGroupRowStyle:
|
|
2016
|
-
headerGroupCellClassName:
|
|
2017
|
-
headerGroupCellStyle:
|
|
2018
|
-
headerGroupCellWrapperClassName:
|
|
2019
|
-
headerGroupCellWrapperStyle:
|
|
2020
|
-
paginationContainerClassName:
|
|
2021
|
-
paginationContainerStyle:
|
|
2022
|
-
noDataRender:
|
|
2023
|
-
recalculateRowHeight:
|
|
2024
|
-
sorting:
|
|
2025
|
-
defaultSorting:
|
|
2026
|
-
resizeThrottle:
|
|
2667
|
+
defaultExpandedRowKeys: _,
|
|
2668
|
+
onExpandedRowsChange: m,
|
|
2669
|
+
indentSize: v,
|
|
2670
|
+
className: p,
|
|
2671
|
+
style: b,
|
|
2672
|
+
headerClassName: x,
|
|
2673
|
+
headerStyle: O,
|
|
2674
|
+
headerCellClassName: P,
|
|
2675
|
+
headerCellStyle: D,
|
|
2676
|
+
headerRowClassName: H,
|
|
2677
|
+
headerRowStyle: Z,
|
|
2678
|
+
headerCellWrapperClassName: G,
|
|
2679
|
+
headerCellWrapperStyle: L,
|
|
2680
|
+
bodyClassName: ce,
|
|
2681
|
+
bodyStyle: R,
|
|
2682
|
+
bodyRowClassName: J,
|
|
2683
|
+
bodyRowStyle: S,
|
|
2684
|
+
bodyCellClassName: E,
|
|
2685
|
+
bodyCellStyle: A,
|
|
2686
|
+
bodyCellWrapperClassName: N,
|
|
2687
|
+
bodyCellWrapperStyle: Q,
|
|
2688
|
+
headerGroupRowClassName: V,
|
|
2689
|
+
headerGroupRowStyle: M,
|
|
2690
|
+
headerGroupCellClassName: ne,
|
|
2691
|
+
headerGroupCellStyle: ee,
|
|
2692
|
+
headerGroupCellWrapperClassName: ve,
|
|
2693
|
+
headerGroupCellWrapperStyle: be,
|
|
2694
|
+
paginationContainerClassName: le,
|
|
2695
|
+
paginationContainerStyle: he,
|
|
2696
|
+
noDataRender: ae,
|
|
2697
|
+
recalculateRowHeight: Y,
|
|
2698
|
+
sorting: k,
|
|
2699
|
+
defaultSorting: B,
|
|
2700
|
+
resizeThrottle: Oe,
|
|
2701
|
+
virtualization: Re
|
|
2027
2702
|
}
|
|
2028
2703
|
)
|
|
2029
2704
|
}
|
|
2030
2705
|
),
|
|
2031
|
-
/* @__PURE__ */
|
|
2032
|
-
] }) : /* @__PURE__ */
|
|
2033
|
-
/* @__PURE__ */
|
|
2034
|
-
|
|
2706
|
+
/* @__PURE__ */ l.jsx("div", { className: `radar-table-pagination-container ${le}`, style: he, children: o && /* @__PURE__ */ l.jsx(pt, { config: o }) })
|
|
2707
|
+
] }) : /* @__PURE__ */ l.jsxs(l.Fragment, { children: [
|
|
2708
|
+
/* @__PURE__ */ l.jsx(
|
|
2709
|
+
mt,
|
|
2035
2710
|
{
|
|
2036
|
-
dataSource:
|
|
2037
|
-
preset:
|
|
2038
|
-
config:
|
|
2039
|
-
rowKey:
|
|
2040
|
-
loading:
|
|
2041
|
-
pagination:
|
|
2042
|
-
stickyHeader:
|
|
2043
|
-
resizeable:
|
|
2044
|
-
draggableRows:
|
|
2045
|
-
draggableColumns:
|
|
2046
|
-
scrollContainerRef:
|
|
2047
|
-
onResize:
|
|
2048
|
-
onSort:
|
|
2049
|
-
onRowReorder:
|
|
2050
|
-
onColumnReorder:
|
|
2051
|
-
customCellRender:
|
|
2052
|
-
sortIcon:
|
|
2053
|
-
expandIcon:
|
|
2054
|
-
treeMode:
|
|
2711
|
+
dataSource: n,
|
|
2712
|
+
preset: i,
|
|
2713
|
+
config: t,
|
|
2714
|
+
rowKey: r,
|
|
2715
|
+
loading: s,
|
|
2716
|
+
pagination: o,
|
|
2717
|
+
stickyHeader: a,
|
|
2718
|
+
resizeable: c,
|
|
2719
|
+
draggableRows: u,
|
|
2720
|
+
draggableColumns: j,
|
|
2721
|
+
scrollContainerRef: g,
|
|
2722
|
+
onResize: T,
|
|
2723
|
+
onSort: q,
|
|
2724
|
+
onRowReorder: X,
|
|
2725
|
+
onColumnReorder: U,
|
|
2726
|
+
customCellRender: K,
|
|
2727
|
+
sortIcon: I,
|
|
2728
|
+
expandIcon: f,
|
|
2729
|
+
treeMode: ie,
|
|
2055
2730
|
expandedRowKeys: y,
|
|
2056
|
-
defaultExpandedRowKeys:
|
|
2057
|
-
onExpandedRowsChange:
|
|
2058
|
-
indentSize:
|
|
2059
|
-
className:
|
|
2060
|
-
style:
|
|
2061
|
-
headerClassName:
|
|
2062
|
-
headerStyle:
|
|
2063
|
-
headerCellClassName:
|
|
2064
|
-
headerCellStyle:
|
|
2065
|
-
headerRowClassName:
|
|
2066
|
-
headerRowStyle:
|
|
2067
|
-
headerCellWrapperClassName:
|
|
2068
|
-
headerCellWrapperStyle:
|
|
2069
|
-
bodyClassName:
|
|
2070
|
-
bodyStyle:
|
|
2071
|
-
bodyRowClassName:
|
|
2072
|
-
bodyRowStyle:
|
|
2073
|
-
bodyCellClassName:
|
|
2074
|
-
bodyCellStyle:
|
|
2075
|
-
bodyCellWrapperClassName:
|
|
2076
|
-
bodyCellWrapperStyle:
|
|
2077
|
-
headerGroupRowClassName:
|
|
2078
|
-
headerGroupRowStyle:
|
|
2079
|
-
headerGroupCellClassName:
|
|
2080
|
-
headerGroupCellStyle:
|
|
2081
|
-
headerGroupCellWrapperClassName:
|
|
2082
|
-
headerGroupCellWrapperStyle:
|
|
2083
|
-
paginationContainerClassName:
|
|
2084
|
-
paginationContainerStyle:
|
|
2085
|
-
noDataRender:
|
|
2086
|
-
recalculateRowHeight:
|
|
2087
|
-
sorting:
|
|
2088
|
-
defaultSorting:
|
|
2089
|
-
resizeThrottle:
|
|
2731
|
+
defaultExpandedRowKeys: _,
|
|
2732
|
+
onExpandedRowsChange: m,
|
|
2733
|
+
indentSize: v,
|
|
2734
|
+
className: p,
|
|
2735
|
+
style: b,
|
|
2736
|
+
headerClassName: x,
|
|
2737
|
+
headerStyle: O,
|
|
2738
|
+
headerCellClassName: P,
|
|
2739
|
+
headerCellStyle: D,
|
|
2740
|
+
headerRowClassName: H,
|
|
2741
|
+
headerRowStyle: Z,
|
|
2742
|
+
headerCellWrapperClassName: G,
|
|
2743
|
+
headerCellWrapperStyle: L,
|
|
2744
|
+
bodyClassName: ce,
|
|
2745
|
+
bodyStyle: R,
|
|
2746
|
+
bodyRowClassName: J,
|
|
2747
|
+
bodyRowStyle: S,
|
|
2748
|
+
bodyCellClassName: E,
|
|
2749
|
+
bodyCellStyle: A,
|
|
2750
|
+
bodyCellWrapperClassName: N,
|
|
2751
|
+
bodyCellWrapperStyle: Q,
|
|
2752
|
+
headerGroupRowClassName: V,
|
|
2753
|
+
headerGroupRowStyle: M,
|
|
2754
|
+
headerGroupCellClassName: ne,
|
|
2755
|
+
headerGroupCellStyle: ee,
|
|
2756
|
+
headerGroupCellWrapperClassName: ve,
|
|
2757
|
+
headerGroupCellWrapperStyle: be,
|
|
2758
|
+
paginationContainerClassName: le,
|
|
2759
|
+
paginationContainerStyle: he,
|
|
2760
|
+
noDataRender: ae,
|
|
2761
|
+
recalculateRowHeight: Y,
|
|
2762
|
+
sorting: k,
|
|
2763
|
+
defaultSorting: B,
|
|
2764
|
+
resizeThrottle: Oe,
|
|
2765
|
+
virtualization: Re
|
|
2090
2766
|
}
|
|
2091
2767
|
),
|
|
2092
|
-
/* @__PURE__ */
|
|
2768
|
+
/* @__PURE__ */ l.jsx("div", { className: `radar-table-pagination-container ${le}`, style: he, children: o && /* @__PURE__ */ l.jsx(pt, { config: o }) })
|
|
2093
2769
|
] });
|
|
2094
2770
|
}
|
|
2095
|
-
function
|
|
2771
|
+
function mt(n) {
|
|
2096
2772
|
const {
|
|
2097
|
-
dataSource:
|
|
2098
|
-
preset:
|
|
2099
|
-
config:
|
|
2100
|
-
rowKey:
|
|
2101
|
-
loading:
|
|
2102
|
-
stickyHeader:
|
|
2103
|
-
resizeable:
|
|
2104
|
-
draggableRows:
|
|
2105
|
-
draggableColumns:
|
|
2106
|
-
scrollContainerRef:
|
|
2107
|
-
onResize:
|
|
2108
|
-
onSort:
|
|
2109
|
-
onRowReorder:
|
|
2110
|
-
onColumnReorder:
|
|
2111
|
-
customCellRender:
|
|
2112
|
-
sortIcon:
|
|
2113
|
-
expandIcon:
|
|
2114
|
-
treeMode:
|
|
2115
|
-
expandedRowKeys:
|
|
2116
|
-
defaultExpandedRowKeys:
|
|
2117
|
-
onExpandedRowsChange:
|
|
2118
|
-
indentSize:
|
|
2773
|
+
dataSource: i,
|
|
2774
|
+
preset: t,
|
|
2775
|
+
config: r,
|
|
2776
|
+
rowKey: s,
|
|
2777
|
+
loading: o,
|
|
2778
|
+
stickyHeader: a,
|
|
2779
|
+
resizeable: c,
|
|
2780
|
+
draggableRows: u,
|
|
2781
|
+
draggableColumns: j,
|
|
2782
|
+
scrollContainerRef: g,
|
|
2783
|
+
onResize: T,
|
|
2784
|
+
onSort: q,
|
|
2785
|
+
onRowReorder: X,
|
|
2786
|
+
onColumnReorder: U,
|
|
2787
|
+
customCellRender: K,
|
|
2788
|
+
sortIcon: ae,
|
|
2789
|
+
expandIcon: I,
|
|
2790
|
+
treeMode: f,
|
|
2791
|
+
expandedRowKeys: Y,
|
|
2792
|
+
defaultExpandedRowKeys: k,
|
|
2793
|
+
onExpandedRowsChange: B,
|
|
2794
|
+
indentSize: ie,
|
|
2119
2795
|
className: y,
|
|
2120
|
-
style:
|
|
2121
|
-
headerClassName:
|
|
2122
|
-
headerStyle:
|
|
2123
|
-
headerCellClassName:
|
|
2124
|
-
headerCellStyle:
|
|
2125
|
-
headerRowClassName:
|
|
2126
|
-
headerRowStyle:
|
|
2127
|
-
headerCellWrapperClassName:
|
|
2128
|
-
headerCellWrapperStyle:
|
|
2129
|
-
bodyClassName:
|
|
2130
|
-
bodyStyle:
|
|
2131
|
-
bodyRowClassName:
|
|
2132
|
-
bodyRowStyle:
|
|
2133
|
-
bodyCellClassName:
|
|
2134
|
-
bodyCellStyle:
|
|
2135
|
-
bodyCellWrapperClassName:
|
|
2136
|
-
bodyCellWrapperStyle:
|
|
2137
|
-
headerGroupRowClassName:
|
|
2138
|
-
headerGroupRowStyle:
|
|
2139
|
-
headerGroupCellClassName:
|
|
2140
|
-
headerGroupCellStyle:
|
|
2141
|
-
headerGroupCellWrapperClassName:
|
|
2142
|
-
headerGroupCellWrapperStyle:
|
|
2143
|
-
noDataRender:
|
|
2144
|
-
recalculateRowHeight:
|
|
2145
|
-
sorting:
|
|
2146
|
-
defaultSorting:
|
|
2147
|
-
resizeThrottle:
|
|
2148
|
-
} =
|
|
2149
|
-
return /* @__PURE__ */
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
{
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2796
|
+
style: _,
|
|
2797
|
+
headerClassName: m,
|
|
2798
|
+
headerStyle: v,
|
|
2799
|
+
headerCellClassName: p,
|
|
2800
|
+
headerCellStyle: b,
|
|
2801
|
+
headerRowClassName: x,
|
|
2802
|
+
headerRowStyle: O,
|
|
2803
|
+
headerCellWrapperClassName: P,
|
|
2804
|
+
headerCellWrapperStyle: D,
|
|
2805
|
+
bodyClassName: H,
|
|
2806
|
+
bodyStyle: Z,
|
|
2807
|
+
bodyRowClassName: G,
|
|
2808
|
+
bodyRowStyle: L,
|
|
2809
|
+
bodyCellClassName: ce,
|
|
2810
|
+
bodyCellStyle: R,
|
|
2811
|
+
bodyCellWrapperClassName: J,
|
|
2812
|
+
bodyCellWrapperStyle: S,
|
|
2813
|
+
headerGroupRowClassName: E,
|
|
2814
|
+
headerGroupRowStyle: A,
|
|
2815
|
+
headerGroupCellClassName: N,
|
|
2816
|
+
headerGroupCellStyle: Q,
|
|
2817
|
+
headerGroupCellWrapperClassName: V,
|
|
2818
|
+
headerGroupCellWrapperStyle: M,
|
|
2819
|
+
noDataRender: ne,
|
|
2820
|
+
recalculateRowHeight: ee,
|
|
2821
|
+
sorting: ve,
|
|
2822
|
+
defaultSorting: be,
|
|
2823
|
+
resizeThrottle: le
|
|
2824
|
+
} = n;
|
|
2825
|
+
return /* @__PURE__ */ l.jsxs(
|
|
2826
|
+
"table",
|
|
2827
|
+
{
|
|
2828
|
+
className: `radar-table ${t || ""} ${y}`,
|
|
2829
|
+
style: {
|
|
2830
|
+
tableLayout: c ? "fixed" : "auto",
|
|
2831
|
+
width: c ? "max-content" : "auto",
|
|
2832
|
+
..._
|
|
2833
|
+
},
|
|
2834
|
+
children: [
|
|
2835
|
+
/* @__PURE__ */ l.jsx(
|
|
2836
|
+
en,
|
|
2837
|
+
{
|
|
2838
|
+
draggableColumns: j,
|
|
2839
|
+
config: r,
|
|
2840
|
+
onSort: q,
|
|
2841
|
+
resizeable: c,
|
|
2842
|
+
onResize: T,
|
|
2843
|
+
sortIcon: ae,
|
|
2844
|
+
preset: t,
|
|
2845
|
+
headerClassName: m,
|
|
2846
|
+
headerStyle: v,
|
|
2847
|
+
headerRowClassName: x,
|
|
2848
|
+
headerRowStyle: O,
|
|
2849
|
+
headerCellClassName: p,
|
|
2850
|
+
headerCellStyle: b,
|
|
2851
|
+
headerCellWrapperClassName: P,
|
|
2852
|
+
headerCellWrapperStyle: D,
|
|
2853
|
+
headerGroupRowClassName: E,
|
|
2854
|
+
headerGroupRowStyle: A,
|
|
2855
|
+
headerGroupCellClassName: N,
|
|
2856
|
+
headerGroupCellStyle: Q,
|
|
2857
|
+
headerGroupCellWrapperClassName: V,
|
|
2858
|
+
headerGroupCellWrapperStyle: M,
|
|
2859
|
+
stickyHeader: a,
|
|
2860
|
+
scrollContainerRef: g,
|
|
2861
|
+
onColumnReorder: U,
|
|
2862
|
+
sorting: ve,
|
|
2863
|
+
defaultSorting: be,
|
|
2864
|
+
resizeThrottle: le
|
|
2865
|
+
}
|
|
2866
|
+
),
|
|
2867
|
+
/* @__PURE__ */ l.jsx(
|
|
2868
|
+
vn,
|
|
2869
|
+
{
|
|
2870
|
+
draggableRows: u,
|
|
2871
|
+
onRowReorder: X,
|
|
2872
|
+
dataSource: i,
|
|
2873
|
+
config: r,
|
|
2874
|
+
rowKey: s,
|
|
2875
|
+
loading: o,
|
|
2876
|
+
preset: t,
|
|
2877
|
+
customCellRender: K,
|
|
2878
|
+
expandIcon: I,
|
|
2879
|
+
treeMode: f,
|
|
2880
|
+
expandedRowKeys: Y,
|
|
2881
|
+
defaultExpandedRowKeys: k,
|
|
2882
|
+
onExpandedRowsChange: B,
|
|
2883
|
+
indentSize: ie,
|
|
2884
|
+
bodyClassName: H,
|
|
2885
|
+
bodyStyle: Z,
|
|
2886
|
+
bodyRowClassName: G,
|
|
2887
|
+
bodyRowStyle: L,
|
|
2888
|
+
bodyCellClassName: ce,
|
|
2889
|
+
bodyCellStyle: R,
|
|
2890
|
+
bodyCellWrapperClassName: J,
|
|
2891
|
+
bodyCellWrapperStyle: S,
|
|
2892
|
+
noDataRender: ne,
|
|
2893
|
+
scrollContainerRef: g,
|
|
2894
|
+
recalculateRowHeight: ee,
|
|
2895
|
+
virtualization: n.virtualization
|
|
2896
|
+
}
|
|
2897
|
+
)
|
|
2898
|
+
]
|
|
2899
|
+
}
|
|
2900
|
+
);
|
|
2213
2901
|
}
|
|
2214
|
-
const
|
|
2215
|
-
if (
|
|
2216
|
-
return /* @__PURE__ */
|
|
2902
|
+
const yt = ({ children: n, tagType: i = "h1", ...t }) => {
|
|
2903
|
+
if (i === "h1")
|
|
2904
|
+
return /* @__PURE__ */ l.jsx(
|
|
2217
2905
|
"h1",
|
|
2218
2906
|
{
|
|
2219
2907
|
className: "radar-title radar-title_h1",
|
|
2220
|
-
...
|
|
2221
|
-
children:
|
|
2908
|
+
...t,
|
|
2909
|
+
children: n
|
|
2222
2910
|
}
|
|
2223
2911
|
);
|
|
2224
|
-
if (
|
|
2225
|
-
return /* @__PURE__ */
|
|
2912
|
+
if (i === "h2")
|
|
2913
|
+
return /* @__PURE__ */ l.jsx(
|
|
2226
2914
|
"h2",
|
|
2227
2915
|
{
|
|
2228
2916
|
className: "radar-title radar-title_h1",
|
|
2229
|
-
...
|
|
2230
|
-
children:
|
|
2917
|
+
...t,
|
|
2918
|
+
children: n
|
|
2231
2919
|
}
|
|
2232
2920
|
);
|
|
2233
|
-
if (
|
|
2234
|
-
return /* @__PURE__ */
|
|
2921
|
+
if (i === "h3")
|
|
2922
|
+
return /* @__PURE__ */ l.jsx(
|
|
2235
2923
|
"h3",
|
|
2236
2924
|
{
|
|
2237
2925
|
className: "radar-title radar-title_h1",
|
|
2238
|
-
...
|
|
2239
|
-
children:
|
|
2926
|
+
...t,
|
|
2927
|
+
children: n
|
|
2240
2928
|
}
|
|
2241
2929
|
);
|
|
2242
|
-
if (
|
|
2243
|
-
return /* @__PURE__ */
|
|
2930
|
+
if (i === "h4")
|
|
2931
|
+
return /* @__PURE__ */ l.jsx(
|
|
2244
2932
|
"h4",
|
|
2245
2933
|
{
|
|
2246
2934
|
className: "radar-title radar-title_h1",
|
|
2247
|
-
...
|
|
2248
|
-
children:
|
|
2935
|
+
...t,
|
|
2936
|
+
children: n
|
|
2249
2937
|
}
|
|
2250
2938
|
);
|
|
2251
|
-
if (
|
|
2252
|
-
return /* @__PURE__ */
|
|
2939
|
+
if (i === "h5")
|
|
2940
|
+
return /* @__PURE__ */ l.jsx(
|
|
2253
2941
|
"h5",
|
|
2254
2942
|
{
|
|
2255
2943
|
className: "radar-title radar-title_h1",
|
|
2256
|
-
...
|
|
2257
|
-
children:
|
|
2944
|
+
...t,
|
|
2945
|
+
children: n
|
|
2258
2946
|
}
|
|
2259
2947
|
);
|
|
2260
|
-
if (
|
|
2261
|
-
return /* @__PURE__ */
|
|
2948
|
+
if (i === "h6")
|
|
2949
|
+
return /* @__PURE__ */ l.jsx(
|
|
2262
2950
|
"h6",
|
|
2263
2951
|
{
|
|
2264
2952
|
className: "radar-title radar-title_h1",
|
|
2265
|
-
...
|
|
2266
|
-
children:
|
|
2953
|
+
...t,
|
|
2954
|
+
children: n
|
|
2267
2955
|
}
|
|
2268
2956
|
);
|
|
2269
|
-
},
|
|
2270
|
-
if (
|
|
2271
|
-
return /* @__PURE__ */
|
|
2957
|
+
}, bn = ({ children: n, tagType: i = "h2", ...t }) => {
|
|
2958
|
+
if (i === "h1")
|
|
2959
|
+
return /* @__PURE__ */ l.jsx(
|
|
2272
2960
|
"h1",
|
|
2273
2961
|
{
|
|
2274
2962
|
className: "radar-title radar-title_h2",
|
|
2275
|
-
...
|
|
2276
|
-
children:
|
|
2963
|
+
...t,
|
|
2964
|
+
children: n
|
|
2277
2965
|
}
|
|
2278
2966
|
);
|
|
2279
|
-
if (
|
|
2280
|
-
return /* @__PURE__ */
|
|
2967
|
+
if (i === "h2")
|
|
2968
|
+
return /* @__PURE__ */ l.jsx(
|
|
2281
2969
|
"h2",
|
|
2282
2970
|
{
|
|
2283
2971
|
className: "radar-title radar-title_h2",
|
|
2284
|
-
...
|
|
2285
|
-
children:
|
|
2972
|
+
...t,
|
|
2973
|
+
children: n
|
|
2286
2974
|
}
|
|
2287
2975
|
);
|
|
2288
|
-
if (
|
|
2289
|
-
return /* @__PURE__ */
|
|
2976
|
+
if (i === "h3")
|
|
2977
|
+
return /* @__PURE__ */ l.jsx(
|
|
2290
2978
|
"h3",
|
|
2291
2979
|
{
|
|
2292
2980
|
className: "radar-title radar-title_h2",
|
|
2293
|
-
...
|
|
2294
|
-
children:
|
|
2981
|
+
...t,
|
|
2982
|
+
children: n
|
|
2295
2983
|
}
|
|
2296
2984
|
);
|
|
2297
|
-
if (
|
|
2298
|
-
return /* @__PURE__ */
|
|
2985
|
+
if (i === "h4")
|
|
2986
|
+
return /* @__PURE__ */ l.jsx(
|
|
2299
2987
|
"h4",
|
|
2300
2988
|
{
|
|
2301
2989
|
className: "radar-title radar-title_h2",
|
|
2302
|
-
...
|
|
2303
|
-
children:
|
|
2990
|
+
...t,
|
|
2991
|
+
children: n
|
|
2304
2992
|
}
|
|
2305
2993
|
);
|
|
2306
|
-
if (
|
|
2307
|
-
return /* @__PURE__ */
|
|
2994
|
+
if (i === "h5")
|
|
2995
|
+
return /* @__PURE__ */ l.jsx(
|
|
2308
2996
|
"h5",
|
|
2309
2997
|
{
|
|
2310
2998
|
className: "radar-title radar-title_h2",
|
|
2311
|
-
...
|
|
2312
|
-
children:
|
|
2999
|
+
...t,
|
|
3000
|
+
children: n
|
|
2313
3001
|
}
|
|
2314
3002
|
);
|
|
2315
|
-
if (
|
|
2316
|
-
return /* @__PURE__ */
|
|
3003
|
+
if (i === "h6")
|
|
3004
|
+
return /* @__PURE__ */ l.jsx(
|
|
2317
3005
|
"h6",
|
|
2318
3006
|
{
|
|
2319
3007
|
className: "radar-title radar-title_h2",
|
|
2320
|
-
...
|
|
2321
|
-
children:
|
|
3008
|
+
...t,
|
|
3009
|
+
children: n
|
|
2322
3010
|
}
|
|
2323
3011
|
);
|
|
2324
|
-
},
|
|
3012
|
+
}, kn = Object.assign(yt, { H1: yt, H2: bn }), vt = ({ children: n, fontStyle: i = "medium", ...t }) => /* @__PURE__ */ l.jsx("p", { className: `radar-text radar-text_m radar-text_${i}`, ...t, children: n }), xn = ({ children: n, fontStyle: i = "medium", ...t }) => /* @__PURE__ */ l.jsx("p", { className: `radar-text radar-text_s radar-text_${i}`, ...t, children: n }), jn = Object.assign(vt, { M: vt, S: xn });
|
|
2325
3013
|
export {
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
3014
|
+
Qt as HeaderCell,
|
|
3015
|
+
pt as Pagination,
|
|
3016
|
+
jn as RadarText,
|
|
3017
|
+
kn as RadarTitle,
|
|
3018
|
+
Sn as Table,
|
|
3019
|
+
Ut as Tooltip
|
|
2332
3020
|
};
|