@topconsultnpm/sdkui-react 6.22.0-dev3.3 → 6.22.0-dev3.5
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/lib/components/NewComponents/ContextMenu/styles.d.ts +45 -43
- package/lib/components/NewComponents/FloatingMenuBar/styles.d.ts +67 -60
- package/lib/components/base/Styled.d.ts +93 -77
- package/lib/components/base/Styled.js +7 -5
- package/lib/components/base/TMCounterBar.d.ts +2 -2
- package/lib/components/base/TMCounterContainer.d.ts +2 -1
- package/lib/components/base/TMCustomButton.d.ts +1 -1
- package/lib/components/base/TMDataGrid.js +221 -221
- package/lib/components/base/TMDataGridExportForm.d.ts +2 -1
- package/lib/components/base/TMFileManager.d.ts +2 -1
- package/lib/components/base/TMFileManagerDataGridView.d.ts +2 -1
- package/lib/components/base/TMFileManagerThumbnailItems.d.ts +1 -1
- package/lib/components/base/TMFileManagerThumbnailsView.d.ts +1 -1
- package/lib/components/base/TMFileManagerUtils.d.ts +4 -6
- package/lib/components/base/TMLayout.d.ts +4 -4
- package/lib/components/base/TMList.d.ts +2 -1
- package/lib/components/base/TMListView.d.ts +1 -1
- package/lib/components/base/TMPanel.js +167 -167
- package/lib/components/base/TMSpinner.d.ts +2 -1
- package/lib/components/base/TMTab.d.ts +4 -3
- package/lib/components/base/TMTabControl.d.ts +99 -0
- package/lib/components/base/TMTabControl.js +652 -0
- package/lib/components/base/TMTooltip.d.ts +1 -1
- package/lib/components/base/TMTreeView.d.ts +14 -8
- package/lib/components/base/TMUserAvatar.d.ts +2 -1
- package/lib/components/base/TMVilViewer.d.ts +2 -1
- package/lib/components/base/TMWaitPanel.d.ts +3 -2
- package/lib/components/choosers/TMDynDataListItemChooser.d.ts +1 -1
- package/lib/components/choosers/TMInvoiceRetrieveFormats.d.ts +2 -1
- package/lib/components/choosers/TMOrderRetrieveFormats.d.ts +2 -1
- package/lib/components/choosers/TMQuickSearchInfo.d.ts +2 -1
- package/lib/components/choosers/TMRelationChooser.d.ts +3 -3
- package/lib/components/choosers/TMUserChooser.d.ts +2 -2
- package/lib/components/editors/TMEditorStyled.d.ts +20 -42
- package/lib/components/editors/TMFormulaEditor.d.ts +1 -1
- package/lib/components/editors/TMHtmlContentDisplay.d.ts +2 -1
- package/lib/components/editors/TMHtmlEditor.d.ts +2 -1
- package/lib/components/editors/TMMetadataValues.js +5 -5
- package/lib/components/editors/TMTreeDropDown.d.ts +1 -1
- package/lib/components/features/assistant/TMToppyDraggableHelpCenter.d.ts +1 -1
- package/lib/components/features/blog/TMBlogCommentForm.d.ts +2 -1
- package/lib/components/features/documents/TMDcmtForm.js +1 -1
- package/lib/components/features/documents/TMDcmtFormActionButtons.d.ts +1 -1
- package/lib/components/features/documents/TMDcmtIcon.d.ts +2 -1
- package/lib/components/features/documents/TMDcmtPreview.d.ts +8 -6
- package/lib/components/features/documents/TMDcmtTasks.d.ts +2 -1
- package/lib/components/features/documents/TMDragDropOverlay.d.ts +1 -1
- package/lib/components/features/documents/TMMasterInfoFields.d.ts +2 -1
- package/lib/components/features/documents/TMMergeToPdfForm.d.ts +2 -1
- package/lib/components/features/documents/TMMultiMasterDetailDcmtsForm.d.ts +2 -1
- package/lib/components/features/documents/TMMultiMasterDetailDcmtsForm.js +13 -15
- package/lib/components/features/documents/TMMultiMasterDetailDcmtsUtils.d.ts +4 -4
- package/lib/components/features/search/TMDcmtCheckoutInfoForm.d.ts +2 -1
- package/lib/components/features/search/TMMetadataOutputForm.d.ts +2 -1
- package/lib/components/features/search/TMMetadataSorterForm.d.ts +2 -1
- package/lib/components/features/search/TMSavedQuerySelector.d.ts +2 -2
- package/lib/components/features/search/TMSearch.d.ts +1 -1
- package/lib/components/features/search/TMSearch.js +68 -9
- package/lib/components/features/search/TMSearchQueryPanel.d.ts +9 -3
- package/lib/components/features/search/TMSearchResult.js +87 -79
- package/lib/components/features/search/TMSearchResultFloatingActionButton.d.ts +1 -1
- package/lib/components/features/search/TMSignatureInfoContent.d.ts +2 -1
- package/lib/components/features/search/TMTreeSelector.js +15 -9
- package/lib/components/features/search/TMViewHistoryDcmt.d.ts +2 -1
- package/lib/components/features/tasks/TMTaskForm.d.ts +1 -1
- package/lib/components/features/tasks/TMTaskFormUtils.d.ts +10 -10
- package/lib/components/features/tasks/TMTasksAgenda.d.ts +1 -1
- package/lib/components/features/tasks/TMTasksCalendar.d.ts +1 -1
- package/lib/components/features/tasks/TMTasksHeader.d.ts +1 -1
- package/lib/components/features/tasks/TMTasksPanelContent.d.ts +1 -1
- package/lib/components/features/tasks/TMTasksUtilsView.d.ts +5 -5
- package/lib/components/features/tasks/TMTasksView.d.ts +1 -1
- package/lib/components/features/tasks/TMTasksView.js +6 -12
- package/lib/components/features/wg/TMWGsCopyMoveForm.d.ts +3 -2
- package/lib/components/features/workflow/TMWorkflowPopup.d.ts +8 -7
- package/lib/components/features/workflow/diagram/WorkitemRecipientsEditor.d.ts +3 -1
- package/lib/components/forms/Login/ChangePasswordInputs.d.ts +3 -1
- package/lib/components/forms/Login/Chooser.d.ts +2 -2
- package/lib/components/forms/TMChooserForm.d.ts +2 -1
- package/lib/components/forms/TMSaveForm.d.ts +4 -4
- package/lib/components/grids/TMBlogAttachments.d.ts +2 -1
- package/lib/components/grids/TMBlogHeader.d.ts +1 -1
- package/lib/components/grids/TMBlogsPost.d.ts +1 -1
- package/lib/components/grids/TMBlogsPostUtils.d.ts +9 -9
- package/lib/components/grids/TMValidationItemsList.d.ts +2 -1
- package/lib/components/index.d.ts +2 -0
- package/lib/components/index.js +2 -0
- package/lib/components/layout/panelManager/TMPanelManagerContainer.d.ts +2 -1
- package/lib/components/layout/panelManager/TMPanelManagerContext.d.ts +2 -2
- package/lib/components/layout/panelManager/TMPanelManagerToolbar.d.ts +5 -6
- package/lib/components/layout/panelManager/TMPanelManagerWithPersistenceProvider.d.ts +2 -2
- package/lib/components/layout/panelManager/TMPanelWrapper.d.ts +2 -2
- package/lib/components/pages/TMPage.d.ts +1 -1
- package/lib/components/query/TMQueryEditor.d.ts +14 -10
- package/lib/components/settings/SettingsAppearance.d.ts +2 -1
- package/lib/components/sidebar/TMAboutApp.d.ts +2 -1
- package/lib/components/sidebar/TMCommandsPanel.d.ts +4 -4
- package/lib/components/sidebar/TMHeader.d.ts +3 -3
- package/lib/components/viewers/TMDataListItemViewer.d.ts +3 -2
- package/lib/components/viewers/TMDataUserIdItemViewer.d.ts +3 -2
- package/lib/components/viewers/TMMidViewer.d.ts +2 -2
- package/lib/components/viewers/TMTidViewer.d.ts +2 -2
- package/lib/helper/SDKUI_Localizator.d.ts +4 -0
- package/lib/helper/SDKUI_Localizator.js +40 -0
- package/lib/helper/TMAppUpdatedModal.d.ts +2 -1
- package/lib/helper/TMAppUpdatedModal.js +93 -93
- package/lib/helper/TMCommandsContextMenu.d.ts +1 -1
- package/lib/helper/TMIcons.d.ts +280 -280
- package/lib/helper/TMPdfViewer.d.ts +2 -1
- package/lib/helper/TMToppyMessage.d.ts +2 -2
- package/lib/helper/TMUtils.d.ts +10 -4
- package/lib/helper/helpers.d.ts +1 -1
- package/lib/hooks/useInputDialog.d.ts +2 -1
- package/lib/services/platform_services.d.ts +3 -2
- package/package.json +71 -71
|
@@ -23,7 +23,7 @@ const TMDataGrid = React.forwardRef((props, ref) => {
|
|
|
23
23
|
// events and callbacks
|
|
24
24
|
onSelectionChanged, onFocusedRowChanged, onRowDblClick, onRowClick, onCellClick, onCellDblClick, onOptionChanged, onContentReady, onContextMenuPreparing, onInitialized, onEditorPreparing, onCellPrepared, onRowPrepared, onRowUpdating, onRowExpanded, onRowCollapsed, onRowUpdated, onSaved, onEditCanceled, onEditingStart, onEditingChange, customizeColumns, onKeyDown, scrolling = { mode: 'standard', useNative: SDKUI_Globals.userSettings?.themeSettings.gridSettings.useNativeScrollbar === 1 }, paging = { enabled: true, pageSize: pageSize }, pager = { visible: true, showInfo: true, showNavigationButtons: true }, selection = { mode: 'multiple', showCheckBoxesMode: "always", selectAllMode: "allPages" }, sorting, summary, stateStoring, grouping, groupPanel, filterRow, headerFilter, editing, rowDragging, masterDetail,
|
|
25
25
|
// other properties
|
|
26
|
-
disabled = false, autoNavigateToFocusedRow = true, columnResizingMode = 'widget', columnHidingEnabled = true, columnAutoWidth = true, allowColumnResizing = true, allowColumnReordering = true, showBorders = true, showRowLines = SDKUI_Globals.userSettings?.themeSettings.gridSettings.showRowLines === 1, showColumnLines = SDKUI_Globals.userSettings?.themeSettings.gridSettings.showColumnLines === 1, showColumnHeaders = true, rowAlternationEnabled = false, wordWrapEnabled = false, noDataText, columnMinWidth,
|
|
26
|
+
disabled = false, autoNavigateToFocusedRow = true, columnResizingMode = 'widget', columnHidingEnabled = true, columnAutoWidth = true, allowColumnResizing = true, allowColumnReordering = true, showBorders = true, showRowLines = SDKUI_Globals.userSettings?.themeSettings.gridSettings.showRowLines === 1, showColumnLines = SDKUI_Globals.userSettings?.themeSettings.gridSettings.showColumnLines === 1, showColumnHeaders = true, rowAlternationEnabled = false, repaintChangesOnly = false, wordWrapEnabled = false, noDataText, columnMinWidth,
|
|
27
27
|
// styles
|
|
28
28
|
id, width = '100%', height = '100%', } = props;
|
|
29
29
|
const internalRef = React.useRef(null);
|
|
@@ -416,7 +416,7 @@ const TMDataGrid = React.forwardRef((props, ref) => {
|
|
|
416
416
|
// events and callbacks
|
|
417
417
|
onSelectionChanged: onSelectionChangedCallback, onRowDblClick: onRowDblClickCallback, onRowPrepared: onRowPrepared, onContextMenuPreparing: onContextMenuPreparingCallback, onToolbarPreparing: onToolbarPreparingCallback, onFocusedRowChanged: onFocusedRowChanged, onRowClick: onRowClick, onCellClick: onCellClick, onCellDblClick: onCellDblClick, onOptionChanged: onOptionChangedCallback, onContentReady: onContentReadyCallback, onInitialized: onInitialized, customizeColumns: customizeColumns, onEditorPreparing: onEditorPreparing, onCellPrepared: onCellPrepared, onRowUpdating: onRowUpdating, onRowExpanded: onRowExpanded, onRowCollapsed: onRowCollapsed, onRowUpdated: onRowUpdated, onSaved: onSaved, onEditCanceled: onEditCanceled, onEditingStart: onEditingStart, onEditingChange: onEditingChange, onKeyDown: onKeyDown,
|
|
418
418
|
// other properties
|
|
419
|
-
disabled: disabled, autoNavigateToFocusedRow: autoNavigateToFocusedRow, focusedRowKey: focusedRowKey, columnHidingEnabled: columnHidingEnabled, columnResizingMode: columnResizingMode, columnAutoWidth: columnAutoWidth, allowColumnResizing: allowColumnResizing, allowColumnReordering: allowColumnReordering, showBorders: showBorders, showRowLines: showRowLines, showColumnLines: showColumnLines, showColumnHeaders: showColumnHeaders, rowAlternationEnabled: rowAlternationEnabled, wordWrapEnabled: wordWrapEnabled, columnMinWidth: columnMinWidth, noDataText: noDataText,
|
|
419
|
+
disabled: disabled, autoNavigateToFocusedRow: autoNavigateToFocusedRow, focusedRowKey: focusedRowKey, columnHidingEnabled: columnHidingEnabled, columnResizingMode: columnResizingMode, columnAutoWidth: columnAutoWidth, allowColumnResizing: allowColumnResizing, allowColumnReordering: allowColumnReordering, showBorders: showBorders, showRowLines: showRowLines, showColumnLines: showColumnLines, showColumnHeaders: showColumnHeaders, rowAlternationEnabled: rowAlternationEnabled, repaintChangesOnly: repaintChangesOnly, wordWrapEnabled: wordWrapEnabled, columnMinWidth: columnMinWidth, noDataText: noDataText,
|
|
420
420
|
// styles
|
|
421
421
|
width: width, height: height, style: {
|
|
422
422
|
userSelect: 'none',
|
|
@@ -434,229 +434,229 @@ export default TMDataGrid;
|
|
|
434
434
|
// (padding, altezza minima, font e dimensione dei pulsanti di pagina).
|
|
435
435
|
// Con compactPager = false non emette nessuna regola: width/height restano inline come in precedenza,
|
|
436
436
|
// così il rendering è identico a quello del div originale.
|
|
437
|
-
const StyledDataGridContainer = styled.div `
|
|
438
|
-
${({ $compactPager }) => $compactPager && css `
|
|
439
|
-
& .dx-datagrid-pager {
|
|
440
|
-
padding: 2px 4px !important;
|
|
441
|
-
min-height: 0 !important;
|
|
442
|
-
font-size: 11px;
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
& .dx-datagrid-pager .dx-page,
|
|
446
|
-
& .dx-datagrid-pager .dx-page-size,
|
|
447
|
-
& .dx-datagrid-pager .dx-selection,
|
|
448
|
-
& .dx-datagrid-pager .dx-navigate-button {
|
|
449
|
-
min-width: 18px !important;
|
|
450
|
-
min-height: 18px !important;
|
|
451
|
-
height: auto !important;
|
|
452
|
-
padding: 1px 5px !important;
|
|
453
|
-
line-height: 16px !important;
|
|
454
|
-
font-size: 11px;
|
|
455
|
-
}
|
|
456
|
-
|
|
457
|
-
& .dx-datagrid-pager .dx-pages,
|
|
458
|
-
& .dx-datagrid-pager .dx-page-sizes,
|
|
459
|
-
& .dx-datagrid-pager .dx-info,
|
|
460
|
-
& .dx-datagrid-pager .dx-page-index,
|
|
461
|
-
& .dx-datagrid-pager .dx-pages .dx-info {
|
|
462
|
-
font-size: 11px;
|
|
463
|
-
margin-top: 0 !important;
|
|
464
|
-
margin-bottom: 0 !important;
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
& .dx-datagrid-pager .dx-info {
|
|
468
|
-
margin-left: 4px !important;
|
|
469
|
-
margin-right: 4px !important;
|
|
470
|
-
}
|
|
471
|
-
|
|
472
|
-
/* Editor del numero di pagina (displayMode compact) */
|
|
473
|
-
& .dx-datagrid-pager .dx-page-index .dx-texteditor-input,
|
|
474
|
-
& .dx-datagrid-pager .dx-page-sizes .dx-texteditor-input {
|
|
475
|
-
min-height: 18px !important;
|
|
476
|
-
height: 18px !important;
|
|
477
|
-
padding: 0 4px !important;
|
|
478
|
-
font-size: 11px;
|
|
479
|
-
}
|
|
480
|
-
`}
|
|
437
|
+
const StyledDataGridContainer = styled.div `
|
|
438
|
+
${({ $compactPager }) => $compactPager && css `
|
|
439
|
+
& .dx-datagrid-pager {
|
|
440
|
+
padding: 2px 4px !important;
|
|
441
|
+
min-height: 0 !important;
|
|
442
|
+
font-size: 11px;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
& .dx-datagrid-pager .dx-page,
|
|
446
|
+
& .dx-datagrid-pager .dx-page-size,
|
|
447
|
+
& .dx-datagrid-pager .dx-selection,
|
|
448
|
+
& .dx-datagrid-pager .dx-navigate-button {
|
|
449
|
+
min-width: 18px !important;
|
|
450
|
+
min-height: 18px !important;
|
|
451
|
+
height: auto !important;
|
|
452
|
+
padding: 1px 5px !important;
|
|
453
|
+
line-height: 16px !important;
|
|
454
|
+
font-size: 11px;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
& .dx-datagrid-pager .dx-pages,
|
|
458
|
+
& .dx-datagrid-pager .dx-page-sizes,
|
|
459
|
+
& .dx-datagrid-pager .dx-info,
|
|
460
|
+
& .dx-datagrid-pager .dx-page-index,
|
|
461
|
+
& .dx-datagrid-pager .dx-pages .dx-info {
|
|
462
|
+
font-size: 11px;
|
|
463
|
+
margin-top: 0 !important;
|
|
464
|
+
margin-bottom: 0 !important;
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
& .dx-datagrid-pager .dx-info {
|
|
468
|
+
margin-left: 4px !important;
|
|
469
|
+
margin-right: 4px !important;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
/* Editor del numero di pagina (displayMode compact) */
|
|
473
|
+
& .dx-datagrid-pager .dx-page-index .dx-texteditor-input,
|
|
474
|
+
& .dx-datagrid-pager .dx-page-sizes .dx-texteditor-input {
|
|
475
|
+
min-height: 18px !important;
|
|
476
|
+
height: 18px !important;
|
|
477
|
+
padding: 0 4px !important;
|
|
478
|
+
font-size: 11px;
|
|
479
|
+
}
|
|
480
|
+
`}
|
|
481
481
|
`;
|
|
482
482
|
// Stile del pannello del filtro d'intestazione (ricerca, elenco valori, OK/Annulla).
|
|
483
483
|
// Il popup è in portale sul body, fuori da StyledDataGridContainer: le regole sono globali
|
|
484
484
|
// ma tutte sotto .dx-header-filter-menu, classe che DevExtreme applica solo a questo popup.
|
|
485
|
-
const HeaderFilterMenuGlobalStyle = createGlobalStyle `
|
|
486
|
-
.dx-header-filter-menu {
|
|
487
|
-
|
|
488
|
-
&.dx-popup-wrapper > .dx-overlay-content.dx-popup-normal {
|
|
489
|
-
border: 1px solid #E4E8EE;
|
|
490
|
-
border-radius: 8px;
|
|
491
|
-
box-shadow: 0 2px 6px rgba(18, 44, 76, .08), 0 12px 28px rgba(18, 44, 76, .14);
|
|
492
|
-
overflow: hidden;
|
|
493
|
-
}
|
|
494
|
-
|
|
495
|
-
&.dx-popup-wrapper .dx-popup-content {
|
|
496
|
-
padding: 10px 10px 4px;
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
/* Campo di ricerca: TextBox mode "search" resa da List o da TreeView (filtri gerarchici) */
|
|
500
|
-
.dx-searchbox.dx-list-search,
|
|
501
|
-
.dx-searchbox.dx-treeview-search {
|
|
502
|
-
margin-bottom: 8px;
|
|
503
|
-
border-radius: 6px;
|
|
504
|
-
border: 1px solid #CDD2D8;
|
|
505
|
-
background-color: #F4F6F9;
|
|
506
|
-
box-shadow: none;
|
|
507
|
-
transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
|
|
508
|
-
|
|
509
|
-
/* fluent disegna qui la barretta di focus, sostituita da bordo + alone */
|
|
510
|
-
&::before,
|
|
511
|
-
&::after {
|
|
512
|
-
display: none;
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
&.dx-state-hover:not(.dx-state-focused) {
|
|
516
|
-
border-color: #AEB6C1;
|
|
517
|
-
background-color: #EEF2F7;
|
|
518
|
-
}
|
|
519
|
-
|
|
520
|
-
&.dx-state-focused {
|
|
521
|
-
border-color: #2559A5;
|
|
522
|
-
background-color: #FFFFFF;
|
|
523
|
-
box-shadow: 0 0 0 2px rgba(37, 89, 165, .16);
|
|
524
|
-
}
|
|
525
|
-
|
|
526
|
-
.dx-icon-search {
|
|
527
|
-
width: 28px;
|
|
528
|
-
color: #8A929B;
|
|
529
|
-
transition: color .15s ease;
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
&.dx-state-focused .dx-icon-search {
|
|
533
|
-
color: #2559A5;
|
|
534
|
-
}
|
|
535
|
-
|
|
536
|
-
.dx-texteditor-input {
|
|
537
|
-
min-height: 28px;
|
|
538
|
-
padding-inline-start: 28px;
|
|
539
|
-
padding-inline-end: 8px;
|
|
540
|
-
font-size: 12px;
|
|
541
|
-
background-color: transparent;
|
|
542
|
-
}
|
|
543
|
-
|
|
544
|
-
.dx-placeholder {
|
|
545
|
-
color: #9AA3AD;
|
|
546
|
-
font-size: 12px;
|
|
547
|
-
|
|
548
|
-
&::before {
|
|
549
|
-
padding-inline-start: 28px;
|
|
550
|
-
padding-inline-end: 8px;
|
|
551
|
-
}
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
.dx-clear-button-area .dx-icon-clear {
|
|
555
|
-
color: #8A929B;
|
|
556
|
-
transition: color .15s ease;
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
.dx-clear-button-area:hover .dx-icon-clear {
|
|
560
|
-
color: #2559A5;
|
|
561
|
-
}
|
|
562
|
-
}
|
|
563
|
-
|
|
564
|
-
.dx-list-item {
|
|
565
|
-
border-radius: 4px;
|
|
566
|
-
transition: background-color .12s ease;
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
.dx-list-item-content {
|
|
570
|
-
padding: 4px 6px;
|
|
571
|
-
}
|
|
572
|
-
|
|
573
|
-
.dx-list-item.dx-state-hover,
|
|
574
|
-
.dx-list-item.dx-state-focused {
|
|
575
|
-
background-color: #F1F6FD;
|
|
576
|
-
color: #122C4C;
|
|
577
|
-
}
|
|
578
|
-
|
|
579
|
-
.dx-list-select-all {
|
|
580
|
-
padding: 2px 0 6px;
|
|
581
|
-
margin-bottom: 4px;
|
|
582
|
-
border-bottom: 1px solid #ECEFF3;
|
|
583
|
-
}
|
|
584
|
-
|
|
585
|
-
.dx-list-select-all-label {
|
|
586
|
-
font-weight: 600;
|
|
587
|
-
color: #122C4C;
|
|
588
|
-
}
|
|
589
|
-
|
|
590
|
-
.dx-checkbox-checked .dx-checkbox-icon,
|
|
591
|
-
.dx-checkbox-indeterminate .dx-checkbox-icon {
|
|
592
|
-
border-color: #2559A5;
|
|
593
|
-
background-color: #2559A5;
|
|
594
|
-
}
|
|
595
|
-
|
|
596
|
-
.dx-checkbox.dx-state-hover:not(.dx-checkbox-checked) .dx-checkbox-icon {
|
|
597
|
-
border-color: #2559A5;
|
|
598
|
-
}
|
|
599
|
-
|
|
600
|
-
/* il :not() lascia intatto il fade-out nativo della scrollbar */
|
|
601
|
-
.dx-scrollable-scroll:not(.dx-state-invisible) .dx-scrollable-scroll-content {
|
|
602
|
-
background-color: rgba(18, 44, 76, .28);
|
|
603
|
-
border-radius: 3px;
|
|
604
|
-
}
|
|
605
|
-
|
|
606
|
-
&.dx-popup-wrapper .dx-popup-bottom.dx-toolbar {
|
|
607
|
-
padding: 8px 10px 10px;
|
|
608
|
-
border-top: 1px solid #ECEFF3;
|
|
609
|
-
}
|
|
610
|
-
|
|
611
|
-
.dx-popup-bottom .dx-button {
|
|
612
|
-
border-radius: 5px;
|
|
613
|
-
min-width: 76px;
|
|
614
|
-
margin: 0;
|
|
615
|
-
}
|
|
616
|
-
|
|
617
|
-
.dx-popup-bottom .dx-toolbar-button + .dx-toolbar-button {
|
|
618
|
-
margin-inline-start: 6px;
|
|
619
|
-
|
|
620
|
-
.dx-button {
|
|
621
|
-
margin: 0;
|
|
622
|
-
}
|
|
623
|
-
}
|
|
624
|
-
|
|
625
|
-
/* DevExtreme aggiunge prima OK e poi Annulla: individuarli per posizione li rende indipendenti dalla lingua */
|
|
626
|
-
.dx-popup-bottom .dx-toolbar-after > .dx-toolbar-button:first-child .dx-button {
|
|
627
|
-
border-color: transparent;
|
|
628
|
-
background-color: #2559A5;
|
|
629
|
-
|
|
630
|
-
.dx-button-text {
|
|
631
|
-
color: #FFFFFF;
|
|
632
|
-
}
|
|
633
|
-
|
|
634
|
-
&.dx-state-hover {
|
|
635
|
-
background-color: #1E4A8C;
|
|
636
|
-
}
|
|
637
|
-
|
|
638
|
-
&.dx-state-active {
|
|
639
|
-
background-color: #1A3F78;
|
|
640
|
-
}
|
|
641
|
-
}
|
|
642
|
-
|
|
643
|
-
.dx-popup-bottom .dx-toolbar-after > .dx-toolbar-button + .dx-toolbar-button .dx-button {
|
|
644
|
-
border-color: transparent;
|
|
645
|
-
background-color: transparent;
|
|
646
|
-
|
|
647
|
-
.dx-button-text {
|
|
648
|
-
color: #44506B;
|
|
649
|
-
}
|
|
650
|
-
|
|
651
|
-
&.dx-state-hover {
|
|
652
|
-
background-color: #F0F3F7;
|
|
653
|
-
}
|
|
654
|
-
|
|
655
|
-
&.dx-state-active {
|
|
656
|
-
background-color: #E6EBF2;
|
|
657
|
-
}
|
|
658
|
-
}
|
|
659
|
-
}
|
|
485
|
+
const HeaderFilterMenuGlobalStyle = createGlobalStyle `
|
|
486
|
+
.dx-header-filter-menu {
|
|
487
|
+
|
|
488
|
+
&.dx-popup-wrapper > .dx-overlay-content.dx-popup-normal {
|
|
489
|
+
border: 1px solid #E4E8EE;
|
|
490
|
+
border-radius: 8px;
|
|
491
|
+
box-shadow: 0 2px 6px rgba(18, 44, 76, .08), 0 12px 28px rgba(18, 44, 76, .14);
|
|
492
|
+
overflow: hidden;
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
&.dx-popup-wrapper .dx-popup-content {
|
|
496
|
+
padding: 10px 10px 4px;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
/* Campo di ricerca: TextBox mode "search" resa da List o da TreeView (filtri gerarchici) */
|
|
500
|
+
.dx-searchbox.dx-list-search,
|
|
501
|
+
.dx-searchbox.dx-treeview-search {
|
|
502
|
+
margin-bottom: 8px;
|
|
503
|
+
border-radius: 6px;
|
|
504
|
+
border: 1px solid #CDD2D8;
|
|
505
|
+
background-color: #F4F6F9;
|
|
506
|
+
box-shadow: none;
|
|
507
|
+
transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
|
|
508
|
+
|
|
509
|
+
/* fluent disegna qui la barretta di focus, sostituita da bordo + alone */
|
|
510
|
+
&::before,
|
|
511
|
+
&::after {
|
|
512
|
+
display: none;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
&.dx-state-hover:not(.dx-state-focused) {
|
|
516
|
+
border-color: #AEB6C1;
|
|
517
|
+
background-color: #EEF2F7;
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
&.dx-state-focused {
|
|
521
|
+
border-color: #2559A5;
|
|
522
|
+
background-color: #FFFFFF;
|
|
523
|
+
box-shadow: 0 0 0 2px rgba(37, 89, 165, .16);
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
.dx-icon-search {
|
|
527
|
+
width: 28px;
|
|
528
|
+
color: #8A929B;
|
|
529
|
+
transition: color .15s ease;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
&.dx-state-focused .dx-icon-search {
|
|
533
|
+
color: #2559A5;
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
.dx-texteditor-input {
|
|
537
|
+
min-height: 28px;
|
|
538
|
+
padding-inline-start: 28px;
|
|
539
|
+
padding-inline-end: 8px;
|
|
540
|
+
font-size: 12px;
|
|
541
|
+
background-color: transparent;
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
.dx-placeholder {
|
|
545
|
+
color: #9AA3AD;
|
|
546
|
+
font-size: 12px;
|
|
547
|
+
|
|
548
|
+
&::before {
|
|
549
|
+
padding-inline-start: 28px;
|
|
550
|
+
padding-inline-end: 8px;
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
.dx-clear-button-area .dx-icon-clear {
|
|
555
|
+
color: #8A929B;
|
|
556
|
+
transition: color .15s ease;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
.dx-clear-button-area:hover .dx-icon-clear {
|
|
560
|
+
color: #2559A5;
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
.dx-list-item {
|
|
565
|
+
border-radius: 4px;
|
|
566
|
+
transition: background-color .12s ease;
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
.dx-list-item-content {
|
|
570
|
+
padding: 4px 6px;
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
.dx-list-item.dx-state-hover,
|
|
574
|
+
.dx-list-item.dx-state-focused {
|
|
575
|
+
background-color: #F1F6FD;
|
|
576
|
+
color: #122C4C;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
.dx-list-select-all {
|
|
580
|
+
padding: 2px 0 6px;
|
|
581
|
+
margin-bottom: 4px;
|
|
582
|
+
border-bottom: 1px solid #ECEFF3;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
.dx-list-select-all-label {
|
|
586
|
+
font-weight: 600;
|
|
587
|
+
color: #122C4C;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
.dx-checkbox-checked .dx-checkbox-icon,
|
|
591
|
+
.dx-checkbox-indeterminate .dx-checkbox-icon {
|
|
592
|
+
border-color: #2559A5;
|
|
593
|
+
background-color: #2559A5;
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
.dx-checkbox.dx-state-hover:not(.dx-checkbox-checked) .dx-checkbox-icon {
|
|
597
|
+
border-color: #2559A5;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
/* il :not() lascia intatto il fade-out nativo della scrollbar */
|
|
601
|
+
.dx-scrollable-scroll:not(.dx-state-invisible) .dx-scrollable-scroll-content {
|
|
602
|
+
background-color: rgba(18, 44, 76, .28);
|
|
603
|
+
border-radius: 3px;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
&.dx-popup-wrapper .dx-popup-bottom.dx-toolbar {
|
|
607
|
+
padding: 8px 10px 10px;
|
|
608
|
+
border-top: 1px solid #ECEFF3;
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
.dx-popup-bottom .dx-button {
|
|
612
|
+
border-radius: 5px;
|
|
613
|
+
min-width: 76px;
|
|
614
|
+
margin: 0;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
.dx-popup-bottom .dx-toolbar-button + .dx-toolbar-button {
|
|
618
|
+
margin-inline-start: 6px;
|
|
619
|
+
|
|
620
|
+
.dx-button {
|
|
621
|
+
margin: 0;
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
/* DevExtreme aggiunge prima OK e poi Annulla: individuarli per posizione li rende indipendenti dalla lingua */
|
|
626
|
+
.dx-popup-bottom .dx-toolbar-after > .dx-toolbar-button:first-child .dx-button {
|
|
627
|
+
border-color: transparent;
|
|
628
|
+
background-color: #2559A5;
|
|
629
|
+
|
|
630
|
+
.dx-button-text {
|
|
631
|
+
color: #FFFFFF;
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
&.dx-state-hover {
|
|
635
|
+
background-color: #1E4A8C;
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
&.dx-state-active {
|
|
639
|
+
background-color: #1A3F78;
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
.dx-popup-bottom .dx-toolbar-after > .dx-toolbar-button + .dx-toolbar-button .dx-button {
|
|
644
|
+
border-color: transparent;
|
|
645
|
+
background-color: transparent;
|
|
646
|
+
|
|
647
|
+
.dx-button-text {
|
|
648
|
+
color: #44506B;
|
|
649
|
+
}
|
|
650
|
+
|
|
651
|
+
&.dx-state-hover {
|
|
652
|
+
background-color: #F0F3F7;
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
&.dx-state-active {
|
|
656
|
+
background-color: #E6EBF2;
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
660
|
`;
|
|
661
661
|
const getRecordCount = (dataSource) => {
|
|
662
662
|
if (Array.isArray(dataSource)) {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { IColumnProps } from 'devextreme-react/data-grid';
|
|
2
3
|
import { SearchResultDescriptor } from '@topconsultnpm/sdk-ts';
|
|
3
4
|
export type FormatOption = {
|
|
@@ -11,5 +12,5 @@ interface TMDataGridExportFormProps {
|
|
|
11
12
|
selectedRowKeys: Array<number>;
|
|
12
13
|
onCloseExportForm: () => void;
|
|
13
14
|
}
|
|
14
|
-
declare const TMDataGridExportForm: (props: TMDataGridExportFormProps) =>
|
|
15
|
+
declare const TMDataGridExportForm: (props: TMDataGridExportFormProps) => React.JSX.Element;
|
|
15
16
|
export default TMDataGridExportForm;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { FileItem } from "./TMFileManagerUtils";
|
|
2
3
|
import { TMContextMenuItemProps } from '../NewComponents/ContextMenu/types';
|
|
3
4
|
interface TMFileManagerProps {
|
|
@@ -42,5 +43,5 @@ interface TMFileManagerProps {
|
|
|
42
43
|
/** Optional: Callback to handle back button */
|
|
43
44
|
onMaximizePanel?: () => void;
|
|
44
45
|
}
|
|
45
|
-
declare const TMFileManager: (props: TMFileManagerProps) =>
|
|
46
|
+
declare const TMFileManager: (props: TMFileManagerProps) => React.JSX.Element;
|
|
46
47
|
export default TMFileManager;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from "react";
|
|
1
2
|
import { FileItem } from "./TMFileManagerUtils";
|
|
2
3
|
import { UserDescriptor } from "@topconsultnpm/sdk-ts";
|
|
3
4
|
import { TMContextMenuItemProps } from "../NewComponents/ContextMenu/types";
|
|
@@ -13,5 +14,5 @@ interface TMFileManagerDataGridViewProps {
|
|
|
13
14
|
userID?: number;
|
|
14
15
|
onDoubleClickHandler?: (fileItem: FileItem | undefined) => void;
|
|
15
16
|
}
|
|
16
|
-
declare const TMFileManagerDataGridView: (props: TMFileManagerDataGridViewProps) =>
|
|
17
|
+
declare const TMFileManagerDataGridView: (props: TMFileManagerDataGridViewProps) => React.JSX.Element;
|
|
17
18
|
export default TMFileManagerDataGridView;
|
|
@@ -20,5 +20,5 @@ export interface TMFileManagerThumbnailItemsProps {
|
|
|
20
20
|
onDoubleClick?: (file: FileItem) => void;
|
|
21
21
|
userID?: number;
|
|
22
22
|
}
|
|
23
|
-
declare const TMFileManagerThumbnailItems: (props: TMFileManagerThumbnailItemsProps) =>
|
|
23
|
+
declare const TMFileManagerThumbnailItems: (props: TMFileManagerThumbnailItemsProps) => React.JSX.Element;
|
|
24
24
|
export default TMFileManagerThumbnailItems;
|
|
@@ -28,5 +28,5 @@ interface TMFileManagerThumbnailsViewProps {
|
|
|
28
28
|
};
|
|
29
29
|
}>>;
|
|
30
30
|
}
|
|
31
|
-
declare const TMFileManagerThumbnailsView: (props: TMFileManagerThumbnailsViewProps) =>
|
|
31
|
+
declare const TMFileManagerThumbnailsView: (props: TMFileManagerThumbnailsViewProps) => React.JSX.Element;
|
|
32
32
|
export default TMFileManagerThumbnailsView;
|
|
@@ -48,15 +48,13 @@ export declare const colors: {
|
|
|
48
48
|
LIGHT_YELLOW: string;
|
|
49
49
|
MEDIUM_GREEN: string;
|
|
50
50
|
};
|
|
51
|
-
export declare const TMFileItemContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").
|
|
51
|
+
export declare const TMFileItemContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Merged<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "style"> & {
|
|
52
|
+
style?: React.CSSProperties | import("styled-components/dist/types").CSSPropertiesWithVars | undefined;
|
|
53
|
+
}, {
|
|
52
54
|
$backgroundColor?: string;
|
|
53
55
|
$textColor?: string;
|
|
54
56
|
$bgHoverColor?: string;
|
|
55
|
-
}
|
|
56
|
-
$backgroundColor?: string;
|
|
57
|
-
$textColor?: string;
|
|
58
|
-
$bgHoverColor?: string;
|
|
59
|
-
}, never>>> & string;
|
|
57
|
+
}>> & string;
|
|
60
58
|
export declare const getFileItemLinkUrl: (fileItem: FileItem | undefined) => string | undefined;
|
|
61
59
|
export declare const findFileItems: (items: Array<FileItem>, id: number) => FileItem | undefined;
|
|
62
60
|
export declare const setFolderTreeViewItems: (items: Array<FileItem>) => Array<TMFileManagerTreeViewDirectory>;
|
|
@@ -17,7 +17,7 @@ declare const TMCard: ({ borderRadius, onClick, scrollX, scrollY, width, height,
|
|
|
17
17
|
scroll?: boolean;
|
|
18
18
|
backgroundColor?: string;
|
|
19
19
|
color?: string;
|
|
20
|
-
}) =>
|
|
20
|
+
}) => React.JSX.Element;
|
|
21
21
|
declare const TMSplitterLayout: ({ animation, showSeparator, separatorColor, overflow, separatorActiveColor, separatorSize, direction, children, start, min, }: {
|
|
22
22
|
animation?: boolean;
|
|
23
23
|
separatorColor?: string;
|
|
@@ -29,7 +29,7 @@ declare const TMSplitterLayout: ({ animation, showSeparator, separatorColor, ove
|
|
|
29
29
|
children?: React.ReactNode;
|
|
30
30
|
start?: string[];
|
|
31
31
|
min?: string[];
|
|
32
|
-
}) =>
|
|
32
|
+
}) => React.JSX.Element;
|
|
33
33
|
declare const TMLayoutItem: ({ onClick, children, width, minWidth, maxWidth, maxHeight, height, minHeight }: {
|
|
34
34
|
onClick?: () => void;
|
|
35
35
|
children: React.ReactNode;
|
|
@@ -40,7 +40,7 @@ declare const TMLayoutItem: ({ onClick, children, width, minWidth, maxWidth, max
|
|
|
40
40
|
fixed?: boolean;
|
|
41
41
|
height?: string;
|
|
42
42
|
minHeight?: string;
|
|
43
|
-
}) =>
|
|
43
|
+
}) => React.JSX.Element;
|
|
44
44
|
export interface ITMLayoutContainerProps {
|
|
45
45
|
children: React.ReactNode;
|
|
46
46
|
gap?: number;
|
|
@@ -50,6 +50,6 @@ export interface ITMLayoutContainerProps {
|
|
|
50
50
|
onClick?: () => void;
|
|
51
51
|
onContextMenu?: (e: React.MouseEvent) => void;
|
|
52
52
|
}
|
|
53
|
-
declare const TMLayoutContainer: ({ gap, onClick, justifyContent, alignItems, children, direction, onContextMenu }: ITMLayoutContainerProps) =>
|
|
53
|
+
declare const TMLayoutContainer: ({ gap, onClick, justifyContent, alignItems, children, direction, onContextMenu }: ITMLayoutContainerProps) => React.JSX.Element;
|
|
54
54
|
export { TMCard, TMLayoutItem, TMSplitterLayout };
|
|
55
55
|
export default TMLayoutContainer;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
interface ITMListItem {
|
|
2
3
|
icon: any;
|
|
3
4
|
text?: string;
|
|
@@ -5,5 +6,5 @@ interface ITMListItem {
|
|
|
5
6
|
}
|
|
6
7
|
declare const TMList: ({ items }: {
|
|
7
8
|
items: ITMListItem[];
|
|
8
|
-
}) =>
|
|
9
|
+
}) => React.JSX.Element;
|
|
9
10
|
export default TMList;
|
|
@@ -37,6 +37,6 @@ interface ListProps<T> {
|
|
|
37
37
|
onItemDblClick?: (item: T) => void;
|
|
38
38
|
itemTemplate?: (item: T) => JSX.Element;
|
|
39
39
|
}
|
|
40
|
-
declare const TMListView: <T>({ customGroupingHeaders, headerBackGroundColor, header, showId, setShowId, showSearch, setShowSearch, grouping, orderBy, id, onScrollChange, scroll, searchKeys, searchable, itemTemplate, customColor, dataSource, exprKey, onSelectionChanged, onItemClick, onItemDblClick, selectedItem, autoScrollToSelectedItem }: ListProps<T>) =>
|
|
40
|
+
declare const TMListView: <T>({ customGroupingHeaders, headerBackGroundColor, header, showId, setShowId, showSearch, setShowSearch, grouping, orderBy, id, onScrollChange, scroll, searchKeys, searchable, itemTemplate, customColor, dataSource, exprKey, onSelectionChanged, onItemClick, onItemDblClick, selectedItem, autoScrollToSelectedItem }: ListProps<T>) => React.JSX.Element;
|
|
41
41
|
export default TMListView;
|
|
42
42
|
export declare const CustomListViewHeader: React.FC<ITMListViewHeader>;
|