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