@topconsultnpm/sdkui-react 6.19.0-dev2.1 → 6.19.0-test.1

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.
Files changed (122) hide show
  1. package/lib/assets/IconsS4t/add.svg +12 -12
  2. package/lib/assets/IconsS4t/aggiorna.svg +18 -18
  3. package/lib/assets/IconsS4t/bookmark.svg +42 -42
  4. package/lib/assets/IconsS4t/cancella.svg +15 -15
  5. package/lib/assets/IconsS4t/check-box.svg +19 -19
  6. package/lib/assets/IconsS4t/down-arrow-signBook.svg +40 -40
  7. package/lib/assets/IconsS4t/down.svg +28 -28
  8. package/lib/assets/IconsS4t/edit-file.svg +19 -19
  9. package/lib/assets/IconsS4t/edita.svg +32 -32
  10. package/lib/assets/IconsS4t/firma.svg +19 -19
  11. package/lib/assets/IconsS4t/icona_download.svg +16 -16
  12. package/lib/assets/IconsS4t/info.svg +51 -51
  13. package/lib/assets/IconsS4t/left.svg +20 -20
  14. package/lib/assets/IconsS4t/line.svg +40 -40
  15. package/lib/assets/IconsS4t/more.svg +19 -19
  16. package/lib/assets/IconsS4t/plus.svg +23 -23
  17. package/lib/assets/IconsS4t/printer.svg +49 -49
  18. package/lib/assets/IconsS4t/radio-on-button.svg +25 -25
  19. package/lib/assets/IconsS4t/rectangle.svg +41 -41
  20. package/lib/assets/IconsS4t/redo.svg +19 -19
  21. package/lib/assets/IconsS4t/right-arrow-signBook-finish.svg +40 -40
  22. package/lib/assets/IconsS4t/right-arrow-signBook.svg +40 -40
  23. package/lib/assets/IconsS4t/right.svg +22 -22
  24. package/lib/assets/IconsS4t/searchbar.svg +21 -21
  25. package/lib/assets/IconsS4t/text-box.svg +36 -36
  26. package/lib/assets/IconsS4t/tick.svg +8 -8
  27. package/lib/assets/IconsS4t/trash-white.svg +10 -10
  28. package/lib/assets/IconsS4t/undo.svg +19 -19
  29. package/lib/assets/IconsS4t/up.svg +32 -32
  30. package/lib/assets/IconsS4t/video-streaming.svg +2 -2
  31. package/lib/assets/IconsS4t/zoom-in.svg +58 -58
  32. package/lib/assets/IconsS4t/zoom-out.svg +56 -56
  33. package/lib/assets/icomoon.svg +96 -96
  34. package/lib/assets/italy.svg +16 -16
  35. package/lib/assets/six.svg +3 -3
  36. package/lib/assets/thumbnails/index.ts +39 -39
  37. package/lib/assets/topmedia-six.svg +65 -65
  38. package/lib/assets/topmeida-six-bianco.svg +65 -65
  39. package/lib/components/base/Styled.js +302 -302
  40. package/lib/components/base/TMAccordion.js +43 -43
  41. package/lib/components/base/TMAreaManager.js +23 -23
  42. package/lib/components/base/TMButton.js +130 -130
  43. package/lib/components/base/TMClosableList.js +46 -46
  44. package/lib/components/base/TMConfirm.js +20 -20
  45. package/lib/components/base/TMContextMenu.js +4 -4
  46. package/lib/components/base/TMContextMenuOLD.js +25 -25
  47. package/lib/components/base/TMCounterBar.js +32 -32
  48. package/lib/components/base/TMCounterContainer.js +30 -30
  49. package/lib/components/base/TMCustomButton.js +7 -7
  50. package/lib/components/base/TMDropDownMenu.js +24 -24
  51. package/lib/components/base/TMFileManagerUtils.js +19 -19
  52. package/lib/components/base/TMFloatingToolbar.js +34 -34
  53. package/lib/components/base/TMLayout.js +44 -44
  54. package/lib/components/base/TMList.js +34 -34
  55. package/lib/components/base/TMModal.js +31 -31
  56. package/lib/components/base/TMPanel.js +57 -57
  57. package/lib/components/base/TMPopUp.js +114 -114
  58. package/lib/components/base/TMProgressBar.js +20 -20
  59. package/lib/components/base/TMResizableMenu.js +28 -28
  60. package/lib/components/base/TMRightSidebar.js +40 -40
  61. package/lib/components/base/TMSpinner.js +121 -121
  62. package/lib/components/base/TMTab.js +11 -11
  63. package/lib/components/base/TMToggleButton.js +36 -36
  64. package/lib/components/base/TMToolbarCard.js +35 -35
  65. package/lib/components/base/TMTreeView.js +16 -16
  66. package/lib/components/base/TMUserAvatar.js +7 -7
  67. package/lib/components/base/TMWaitPanel.js +22 -22
  68. package/lib/components/choosers/TMCultureIDPicker.js +35 -35
  69. package/lib/components/choosers/TMDataListItemPicker.js +54 -54
  70. package/lib/components/editors/TMCheckBox.js +24 -24
  71. package/lib/components/editors/TMDropDown.js +43 -43
  72. package/lib/components/editors/TMEditorStyled.js +71 -71
  73. package/lib/components/editors/TMHtmlContentDisplay.js +16 -16
  74. package/lib/components/editors/TMLocalizedTextBox.js +31 -31
  75. package/lib/components/editors/TMMetadataValues.js +17 -17
  76. package/lib/components/editors/TMRadioButton.js +39 -39
  77. package/lib/components/editors/TMSummary.js +39 -39
  78. package/lib/components/editors/TMTextArea.js +12 -12
  79. package/lib/components/editors/TMTextBox.js +19 -19
  80. package/lib/components/features/assistant/ToppyHelpCenter.js +114 -114
  81. package/lib/components/features/blog/TMBlogCommentForm.js +3 -3
  82. package/lib/components/features/documents/TMDcmtIcon.js +8 -8
  83. package/lib/components/features/documents/TMDcmtPreview.js +30 -30
  84. package/lib/components/features/documents/TMFileUploader.js +21 -21
  85. package/lib/components/features/search/TMSavedQuerySelector.js +51 -51
  86. package/lib/components/features/search/TMSearchQueryEditor.js +13 -13
  87. package/lib/components/features/search/TMSearchQueryPanel.js +30 -30
  88. package/lib/components/features/search/TMSearchResult.js +3 -3
  89. package/lib/components/features/search/TMTreeSelector.js +66 -66
  90. package/lib/components/features/tasks/TMTaskForm.js +31 -31
  91. package/lib/components/features/wg/TMWGsCopyMoveForm.js +9 -9
  92. package/lib/components/features/workflow/TMWorkflowPopup.js +41 -41
  93. package/lib/components/features/workflow/diagram/ConnectionComponent.js +29 -29
  94. package/lib/components/features/workflow/diagram/ConnectionForm.js +10 -10
  95. package/lib/components/features/workflow/diagram/DiagramItemComponent.js +57 -57
  96. package/lib/components/features/workflow/diagram/DiagramItemForm.js +29 -29
  97. package/lib/components/features/workflow/diagram/DiagramItemSvgContent.js +12 -12
  98. package/lib/components/features/workflow/diagram/RecipientList.js +38 -38
  99. package/lib/components/features/workflow/diagram/WFDiagram.js +278 -278
  100. package/lib/components/features/workflow/diagram/WorkitemRecipientsEditor.js +4 -4
  101. package/lib/components/forms/Login/Chooser.js +35 -35
  102. package/lib/components/forms/Login/Menu.js +22 -22
  103. package/lib/components/forms/Login/SelectBox.js +46 -46
  104. package/lib/components/forms/Login/TMLoginForm.js +14 -14
  105. package/lib/components/forms/Login/TextBox.js +57 -57
  106. package/lib/components/grids/TMBlogsPostUtils.js +5 -5
  107. package/lib/components/grids/TMRecentsManager.js +50 -50
  108. package/lib/components/grids/TMValidationItemsList.js +48 -48
  109. package/lib/components/layout/panelManager/TMPanelManagerContainer.js +12 -12
  110. package/lib/components/layout/panelManager/TMPanelManagerToolbar.js +34 -34
  111. package/lib/components/query/TMQueryEditor.js +17 -17
  112. package/lib/components/query/TMQuerySummary.js +12 -12
  113. package/lib/components/sidebar/TMCommandsPanel.js +10 -10
  114. package/lib/components/sidebar/TMHeader.js +307 -307
  115. package/lib/components/sidebar/TMSidebar.js +24 -24
  116. package/lib/components/sidebar/TMSidebarItem.js +21 -21
  117. package/lib/components/wizard/TMStepIndicator.js +102 -102
  118. package/lib/components/wizard/TMWizard.js +29 -29
  119. package/lib/helper/TMIcons.js +1 -1
  120. package/lib/helper/TMToppyMessage.js +30 -30
  121. package/lib/helper/TMUtils.js +37 -37
  122. package/package.json +54 -54
@@ -1,39 +1,39 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import TMTooltip from './TMTooltip';
3
3
  import styled from 'styled-components';
4
- const StyledList = styled.div `
5
- background-color: #f0f0f0;
6
- display: flex;
7
- align-items: center;
8
- /* border: 1px solid #dadada; */
9
- border-bottom-left-radius: 5px;
10
- border-bottom-right-radius: 5px;
11
- border-top: 0;
12
- width: 100%;
13
- margin-top: -3px;
4
+ const StyledList = styled.div `
5
+ background-color: #f0f0f0;
6
+ display: flex;
7
+ align-items: center;
8
+ /* border: 1px solid #dadada; */
9
+ border-bottom-left-radius: 5px;
10
+ border-bottom-right-radius: 5px;
11
+ border-top: 0;
12
+ width: 100%;
13
+ margin-top: -3px;
14
14
  `;
15
- const StyledListItem = styled.div `
16
- display: flex;
17
- align-items: center;
18
- border-right: 1px dashed lightgray;
19
- padding: 4px 12px;
20
- gap: 3px;
21
- transition: all .5s ease-in;
22
- &:hover {
23
- background-color: white;
24
- svg, span {
25
- color: orange;
26
- }
27
- }
28
- svg {
29
- margin-right: 3px;
30
- font-size: 12px;
31
- color: gray;
32
- }
33
- span {
34
- color: gray;
35
- cursor: default;
36
- }
15
+ const StyledListItem = styled.div `
16
+ display: flex;
17
+ align-items: center;
18
+ border-right: 1px dashed lightgray;
19
+ padding: 4px 12px;
20
+ gap: 3px;
21
+ transition: all .5s ease-in;
22
+ &:hover {
23
+ background-color: white;
24
+ svg, span {
25
+ color: orange;
26
+ }
27
+ }
28
+ svg {
29
+ margin-right: 3px;
30
+ font-size: 12px;
31
+ color: gray;
32
+ }
33
+ span {
34
+ color: gray;
35
+ cursor: default;
36
+ }
37
37
  `;
38
38
  const TMCounterBar = ({ items }) => {
39
39
  return (_jsx(StyledList, { children: parseInt(items[0].text) !== -1 && items.map((item, index) => {
@@ -2,38 +2,38 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import styled from "styled-components";
3
3
  import TMTooltip from './TMTooltip';
4
4
  /* Styled container component that holds all counter items */
5
- const Container = styled.div `
6
- background: ${({ bgColor }) => bgColor || 'linear-gradient(to right, #f8f9fa, #e9ecef)'};
7
- display: flex;
8
- align-items: center;
9
- width: 100%;
10
- padding: 4px 8px;
11
- box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.1);
12
- gap: 8px;
5
+ const Container = styled.div `
6
+ background: ${({ bgColor }) => bgColor || 'linear-gradient(to right, #f8f9fa, #e9ecef)'};
7
+ display: flex;
8
+ align-items: center;
9
+ width: 100%;
10
+ padding: 4px 8px;
11
+ box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.1);
12
+ gap: 8px;
13
13
  `;
14
14
  /* Styled counter item component with customizable styles */
15
- const Counter = styled.div `
16
- display: flex;
17
- align-items: center;
18
- border-right: 1px solid rgba(211, 211, 211, 0.5);
19
- padding: 4px 10px;
20
- gap: 8px;
21
- transition: all 0.3s ease-in-out;
22
- background: ${({ color }) => color || 'rgba(255, 255, 255, 0.6)'};
23
-
24
- &:last-child {
25
- border-right: none;
26
- }
27
-
28
- svg {
29
- color: ${({ textColor }) => textColor || '#495057'};
30
- transition: color 0.3s ease-in-out;
31
- }
32
-
33
- span {
34
- color: ${({ textColor }) => textColor || '#495057'};
35
- transition: color 0.3s ease-in-out;
36
- }
15
+ const Counter = styled.div `
16
+ display: flex;
17
+ align-items: center;
18
+ border-right: 1px solid rgba(211, 211, 211, 0.5);
19
+ padding: 4px 10px;
20
+ gap: 8px;
21
+ transition: all 0.3s ease-in-out;
22
+ background: ${({ color }) => color || 'rgba(255, 255, 255, 0.6)'};
23
+
24
+ &:last-child {
25
+ border-right: none;
26
+ }
27
+
28
+ svg {
29
+ color: ${({ textColor }) => textColor || '#495057'};
30
+ transition: color 0.3s ease-in-out;
31
+ }
32
+
33
+ span {
34
+ color: ${({ textColor }) => textColor || '#495057'};
35
+ transition: color 0.3s ease-in-out;
36
+ }
37
37
  `;
38
38
  /* Enum for possible counter item keys */
39
39
  export var CounterItemKey;
@@ -4,14 +4,14 @@ import { useEffect, useRef, useState } from 'react';
4
4
  import TMModal from './TMModal';
5
5
  import styled from 'styled-components';
6
6
  import { processButtonAttributes } from '../../helper/dcmtsHelper';
7
- const IframeContainer = styled.div `
8
- display: flex;
9
- height: 100%;
10
- flex-direction: column;
7
+ const IframeContainer = styled.div `
8
+ display: flex;
9
+ height: 100%;
10
+ flex-direction: column;
11
11
  `;
12
- const StyledIframe = styled.iframe `
13
- border: none;
14
- flex: 1;
12
+ const StyledIframe = styled.iframe `
13
+ border: none;
14
+ flex: 1;
15
15
  `;
16
16
  const TMCustomButton = (props) => {
17
17
  const { button, isModal = true, formData, selectedItems, onClose } = props;
@@ -4,31 +4,31 @@ import styled from 'styled-components';
4
4
  import ContextMenu from 'devextreme-react/context-menu';
5
5
  import { FontSize, TMColors } from '../../utils/theme';
6
6
  import { genUniqueId } from '../../helper';
7
- const StyledContent = styled.div `
8
- cursor: pointer;
9
- border-radius: ${props => props.$borderRadius};
10
- color: ${props => props.$color};
11
- /* background-color: ${props => props.$backgroundColor}; */
12
- background-color: transparent;
13
- opacity: ${props => props.$disabled ? 0.4 : 1};
14
- pointer-events: ${props => props.$disabled ? 'none' : ''};
15
- user-select: none;
16
- display: flex;
17
- align-items: center;
18
-
19
- &:focus {
20
- outline: none;
21
- border-bottom: ${props => props.$disabled ? '' : '2px solid'};
22
- border-bottom-color: ${TMColors.primary};
23
- }
7
+ const StyledContent = styled.div `
8
+ cursor: pointer;
9
+ border-radius: ${props => props.$borderRadius};
10
+ color: ${props => props.$color};
11
+ /* background-color: ${props => props.$backgroundColor}; */
12
+ background-color: transparent;
13
+ opacity: ${props => props.$disabled ? 0.4 : 1};
14
+ pointer-events: ${props => props.$disabled ? 'none' : ''};
15
+ user-select: none;
16
+ display: flex;
17
+ align-items: center;
18
+
19
+ &:focus {
20
+ outline: none;
21
+ border-bottom: ${props => props.$disabled ? '' : '2px solid'};
22
+ border-bottom-color: ${TMColors.primary};
23
+ }
24
24
  `;
25
- const StyledMenuItem = styled.div `
26
- display: flex;
27
- align-items: center;
28
- justify-content: space-between;
29
- gap: 6px;
30
- width: 100%;
31
- font-size: ${FontSize.defaultFontSize};
25
+ const StyledMenuItem = styled.div `
26
+ display: flex;
27
+ align-items: center;
28
+ justify-content: space-between;
29
+ gap: 6px;
30
+ width: 100%;
31
+ font-size: ${FontSize.defaultFontSize};
32
32
  `;
33
33
  const TMDropDownMenu = forwardRef(({ content, items, disabled = false, color = TMColors.text_normal, backgroundColor = TMColors.default_background, borderRadius, onMenuShown }, ref) => {
34
34
  const [id, setID] = useState('');
@@ -15,25 +15,25 @@ export const colors = {
15
15
  LIGHT_YELLOW: "#fff9c4",
16
16
  MEDIUM_GREEN: "#28a745",
17
17
  };
18
- export const TMFileItemContainer = styled.div `
19
- border: 1px solid #ddd;
20
- border-radius: 8px;
21
- background-color: ${({ $backgroundColor }) => $backgroundColor ?? colors.LIGHT_GRAY};
22
- color: ${({ $textColor }) => $textColor ?? colors.BLACK};
23
- cursor: pointer;
24
- margin: 10px 5px;
25
- padding: 8px;
26
- display: flex;
27
- flex-direction: column;
28
- min-width: 100px;
29
- gap: 4px;
30
- &:hover {
31
- background-color: ${({ $bgHoverColor }) => $bgHoverColor ?? '#e0e0e0'};
32
- border-color: #999;
33
- }
34
- &:focus {
35
- outline: none;
36
- }
18
+ export const TMFileItemContainer = styled.div `
19
+ border: 1px solid #ddd;
20
+ border-radius: 8px;
21
+ background-color: ${({ $backgroundColor }) => $backgroundColor ?? colors.LIGHT_GRAY};
22
+ color: ${({ $textColor }) => $textColor ?? colors.BLACK};
23
+ cursor: pointer;
24
+ margin: 10px 5px;
25
+ padding: 8px;
26
+ display: flex;
27
+ flex-direction: column;
28
+ min-width: 100px;
29
+ gap: 4px;
30
+ &:hover {
31
+ background-color: ${({ $bgHoverColor }) => $bgHoverColor ?? '#e0e0e0'};
32
+ border-color: #999;
33
+ }
34
+ &:focus {
35
+ outline: none;
36
+ }
37
37
  `;
38
38
  // Function to find a specific file or folder based on its ID (used for finding nested items)
39
39
  export const findFileItems = (items, id) => {
@@ -2,42 +2,42 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useEffect, useRef } from 'react';
3
3
  import styled from 'styled-components';
4
4
  import { IconDraggabledots } from '../../helper/TMIcons';
5
- const StyledFloatingToolbarContainer = styled.div `
6
- position: absolute;
7
- width: max-content;
8
- height: max-content;
9
- display: flex;
10
- flex-direction: row;
11
- background-color: ${props => `${props.$backgroundColor}a6`};
12
- left: calc(50% - 90px);
13
- top: calc(100% - 40px);
14
- border-radius: 8px;
15
- z-index: 10;
16
- &:hover {
17
- background: ${props => props.$backgroundColor};
18
- }
5
+ const StyledFloatingToolbarContainer = styled.div `
6
+ position: absolute;
7
+ width: max-content;
8
+ height: max-content;
9
+ display: flex;
10
+ flex-direction: row;
11
+ background-color: ${props => `${props.$backgroundColor}a6`};
12
+ left: calc(50% - 90px);
13
+ top: calc(100% - 40px);
14
+ border-radius: 8px;
15
+ z-index: 10;
16
+ &:hover {
17
+ background: ${props => props.$backgroundColor};
18
+ }
19
19
  `;
20
- const StyledFloatingToolbarDraggable = styled.div `
21
- display: flex;
22
- align-items: center;
23
- justify-content: center;
24
- width: 25px;
25
- height: 100%;
26
- background-color: ${props => `${props.$backgroundColor}FF`};
27
- border-top-left-radius: 8px;
28
- border-bottom-left-radius: 8px;
29
- padding: 10px 0px 10px 0px;
30
- &:hover {
31
- cursor: grab;
32
- }
20
+ const StyledFloatingToolbarDraggable = styled.div `
21
+ display: flex;
22
+ align-items: center;
23
+ justify-content: center;
24
+ width: 25px;
25
+ height: 100%;
26
+ background-color: ${props => `${props.$backgroundColor}FF`};
27
+ border-top-left-radius: 8px;
28
+ border-bottom-left-radius: 8px;
29
+ padding: 10px 0px 10px 0px;
30
+ &:hover {
31
+ cursor: grab;
32
+ }
33
33
  `;
34
- const StyledFloatingToolbar = styled.div `
35
- width: max-content;
36
- display: flex;
37
- flex-direction: row;
38
- padding: 10px 10px 10px 20px;
39
- gap: 8px;
40
- border-radius: 8px;
34
+ const StyledFloatingToolbar = styled.div `
35
+ width: max-content;
36
+ display: flex;
37
+ flex-direction: row;
38
+ padding: 10px 10px 10px 20px;
39
+ gap: 8px;
40
+ border-radius: 8px;
41
41
  `;
42
42
  const TMFloatingToolbar = ({ children, backgroundColor, initialLeft, initialTop }) => {
43
43
  const boxRef = useRef(null);
@@ -2,53 +2,53 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import React, { useEffect, useRef, useState } from 'react';
3
3
  import styled from 'styled-components';
4
4
  import { FontSize, TMColors } from '../../utils/theme';
5
- const StyledLayoutContainer = styled.div `
6
- width: 100%;
7
- position: relative;
8
- height: 100%;
9
- /* min-height: max-content; */
10
- /* min-width: max-content; */
11
- display: flex;
12
- flex-direction: ${props => props.$direction === 'horizontal' ? 'row' : 'column'};
13
- justify-content: ${props => props.$justifyContent};
14
- align-items: ${props => props.$alignItems};
15
- /* overflow: ${props => props.$direction === 'horizontal' ? 'auto' : 'hidden'}; */
16
- /* gap: 3px; */
5
+ const StyledLayoutContainer = styled.div `
6
+ width: 100%;
7
+ position: relative;
8
+ height: 100%;
9
+ /* min-height: max-content; */
10
+ /* min-width: max-content; */
11
+ display: flex;
12
+ flex-direction: ${props => props.$direction === 'horizontal' ? 'row' : 'column'};
13
+ justify-content: ${props => props.$justifyContent};
14
+ align-items: ${props => props.$alignItems};
15
+ /* overflow: ${props => props.$direction === 'horizontal' ? 'auto' : 'hidden'}; */
16
+ /* gap: 3px; */
17
17
  `;
18
- const StyledLayoutItem = styled.div `
19
- width: ${props => props.$width};
20
- min-width: ${props => props.$minWidth};
21
- max-width: ${props => props.$maxWidth};
22
- max-height: ${props => props.$maxHeight};
23
- min-height: ${props => props.$minHeight};
24
- height: ${props => props.$height};
25
- position: relative;
18
+ const StyledLayoutItem = styled.div `
19
+ width: ${props => props.$width};
20
+ min-width: ${props => props.$minWidth};
21
+ max-width: ${props => props.$maxWidth};
22
+ max-height: ${props => props.$maxHeight};
23
+ min-height: ${props => props.$minHeight};
24
+ height: ${props => props.$height};
25
+ position: relative;
26
26
  `;
27
- const StyledCardHeader = styled.div `
28
- width:100% ;
29
- display: flex;
30
- flex-direction: row;
31
- align-items: center;
32
- justify-content: flex-start;
33
- padding: 4px 5px;
34
- background-color: ${props => props.$backgroundColor ?? TMColors.backgroundColorHeader};
35
- color: ${props => props.$color ?? TMColors.colorHeader};
36
- border-top-right-radius: ${props => props.$borderRadius && '3px'};
37
- border-top-left-radius: ${props => props.$borderRadius && '3px'};
38
- overflow: hidden;
39
- position: sticky;
40
- top: 0;
41
- font-weight: ${props => props.$fontWeight ?? 'normal'};
27
+ const StyledCardHeader = styled.div `
28
+ width:100% ;
29
+ display: flex;
30
+ flex-direction: row;
31
+ align-items: center;
32
+ justify-content: flex-start;
33
+ padding: 4px 5px;
34
+ background-color: ${props => props.$backgroundColor ?? TMColors.backgroundColorHeader};
35
+ color: ${props => props.$color ?? TMColors.colorHeader};
36
+ border-top-right-radius: ${props => props.$borderRadius && '3px'};
37
+ border-top-left-radius: ${props => props.$borderRadius && '3px'};
38
+ overflow: hidden;
39
+ position: sticky;
40
+ top: 0;
41
+ font-weight: ${props => props.$fontWeight ?? 'normal'};
42
42
  `;
43
- const StyledCardContext = styled.div `
44
- width: 100%;
45
- height: ${props => props.$showHeader ? 'calc(100% - 25px);' : '100%'} ;
46
- overflow: ${props => props.$scroll && 'auto'};
47
- overflow-y: ${props => props.$scrollY && 'auto'};
48
- overflow-x: ${props => props.$scrollX && 'auto'};
49
- background-color: white;
50
- top: 0;
51
- padding: ${props => props.$padding ? '5px' : '0'};
43
+ const StyledCardContext = styled.div `
44
+ width: 100%;
45
+ height: ${props => props.$showHeader ? 'calc(100% - 25px);' : '100%'} ;
46
+ overflow: ${props => props.$scroll && 'auto'};
47
+ overflow-y: ${props => props.$scrollY && 'auto'};
48
+ overflow-x: ${props => props.$scrollX && 'auto'};
49
+ background-color: white;
50
+ top: 0;
51
+ padding: ${props => props.$padding ? '5px' : '0'};
52
52
  `;
53
53
  const TMCard = ({ borderRadius = true, onClick, scrollX = false, scrollY = false, width = '100%', height = '100%', children, title = '', fontSize = FontSize.defaultFontSize, fontWeight, showBorder = true, padding = true, scroll = false, backgroundColor, color }) => {
54
54
  return (_jsxs("div", { onClick: onClick, style: { width: width, height: height, fontSize: fontSize, overflow: 'hidden' }, children: [title.length > 0 && _jsx(StyledCardHeader, { "$borderRadius": borderRadius, "$fontWeight": fontWeight, "$backgroundColor": backgroundColor, "$color": color, children: title }), _jsxs(StyledCardContext, { "$scrollX": scrollX, "$scrollY": scrollY, "$scroll": scroll, "$padding": padding, "$showHeader": title.length > 0, style: { border: showBorder ? '2px solid #CAD9EB' : 'none', borderBottomLeftRadius: showBorder ? '3px' : '0', borderBottomRightRadius: showBorder ? '3px' : '0' }, children: [" ", children, " "] })] }));
@@ -2,42 +2,42 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useState } from 'react';
3
3
  import styled from 'styled-components';
4
4
  import { TMColors } from '../../utils/theme';
5
- const StyledListItem = styled.li `
6
- display: flex;
7
- flex-direction: row;
8
- align-items: center;
9
- justify-content: flex-start;
10
- gap: 10px;
11
- position: relative;
12
- color: ${TMColors.text_normal};
13
- padding: 4px 5px;
14
- height: 40px;
15
- width: 100%;
16
- font-size: 1rem;
17
- letter-spacing: 0px;
18
- background-color: ${({ $isSelected }) => ($isSelected ? '#d0e5fb' : 'transparent')};
19
-
20
- &:hover {
21
- background-color: ${TMColors.border_normal};
22
- cursor: pointer;
23
- }
5
+ const StyledListItem = styled.li `
6
+ display: flex;
7
+ flex-direction: row;
8
+ align-items: center;
9
+ justify-content: flex-start;
10
+ gap: 10px;
11
+ position: relative;
12
+ color: ${TMColors.text_normal};
13
+ padding: 4px 5px;
14
+ height: 40px;
15
+ width: 100%;
16
+ font-size: 1rem;
17
+ letter-spacing: 0px;
18
+ background-color: ${({ $isSelected }) => ($isSelected ? '#d0e5fb' : 'transparent')};
19
+
20
+ &:hover {
21
+ background-color: ${TMColors.border_normal};
22
+ cursor: pointer;
23
+ }
24
24
  `;
25
- const StyledListContainer = styled.div `
26
- height: 100%;
27
- width: 100%;
28
- background-color: ${TMColors.default_background};
29
- padding: 3px;
30
- border-radius: 2px;
31
- box-shadow: 1px 1px 7px rgba(0,0,0,0.15);
25
+ const StyledListContainer = styled.div `
26
+ height: 100%;
27
+ width: 100%;
28
+ background-color: ${TMColors.default_background};
29
+ padding: 3px;
30
+ border-radius: 2px;
31
+ box-shadow: 1px 1px 7px rgba(0,0,0,0.15);
32
32
  `;
33
- const StyledIconWrapper = styled.span `
34
- display: flex;
35
- align-items: center;
36
- justify-content: center;
37
- width: 24px;
38
- height: 24px;
39
- min-width: 24px;
40
- min-height: 24px;
33
+ const StyledIconWrapper = styled.span `
34
+ display: flex;
35
+ align-items: center;
36
+ justify-content: center;
37
+ width: 24px;
38
+ height: 24px;
39
+ min-width: 24px;
40
+ min-height: 24px;
41
41
  `;
42
42
  ;
43
43
  const TMList = ({ items }) => {
@@ -4,39 +4,39 @@ import { Popup } from 'devextreme-react';
4
4
  import styled from 'styled-components';
5
5
  import TMLayoutContainer, { TMCard, TMLayoutItem } from './TMLayout';
6
6
  import { FontSize, TMColors } from '../../utils/theme';
7
- const StyledModal = styled.div `
8
- width: ${props => props.$width};
9
- height: ${props => props.$height};
10
- position: ${props => (props.$isModal ? 'relative' : 'fixed')};
11
- background-color: white;
12
- box-shadow: 2px 2px 10px #939393;
13
- border-radius: 5px;
14
- display: flex;
15
- flex-direction: column;
16
- align-items: flex-start;
17
- justify-content: flex-start;
18
- font-size: ${props => props.$fontSize};
19
- overflow: hidden;
20
- min-height: 33px;
21
- min-width: 250px;
22
- max-width: 95%;
23
- max-height: 95%;
24
- z-index: 2000000000;
7
+ const StyledModal = styled.div `
8
+ width: ${props => props.$width};
9
+ height: ${props => props.$height};
10
+ position: ${props => (props.$isModal ? 'relative' : 'fixed')};
11
+ background-color: white;
12
+ box-shadow: 2px 2px 10px #939393;
13
+ border-radius: 5px;
14
+ display: flex;
15
+ flex-direction: column;
16
+ align-items: flex-start;
17
+ justify-content: flex-start;
18
+ font-size: ${props => props.$fontSize};
19
+ overflow: hidden;
20
+ min-height: 33px;
21
+ min-width: 250px;
22
+ max-width: 95%;
23
+ max-height: 95%;
24
+ z-index: 2000000000;
25
25
  `;
26
- const StyledModalToolbar = styled.div `
27
- width: 100%;
28
- display: flex;
29
- align-items: center;
30
- justify-content: flex-start;
31
- padding: 5px;
32
- flex-direction: row;
33
- background-color: ${TMColors.toolbar_background};
34
- border-bottom: 1px solid gray;
26
+ const StyledModalToolbar = styled.div `
27
+ width: 100%;
28
+ display: flex;
29
+ align-items: center;
30
+ justify-content: flex-start;
31
+ padding: 5px;
32
+ flex-direction: row;
33
+ background-color: ${TMColors.toolbar_background};
34
+ border-bottom: 1px solid gray;
35
35
  `;
36
- const StyledModalContext = styled.div `
37
- width: 100%;
38
- overflow: auto;
39
- height: 100%;
36
+ const StyledModalContext = styled.div `
37
+ width: 100%;
38
+ overflow: auto;
39
+ height: 100%;
40
40
  `;
41
41
  const TMModal = ({ resizable = true, isModal = true, title = '', toolbar, onClose, children, width = '100%', height = '100%', fontSize = FontSize.defaultFontSize, hidePopup = true, askClosingConfirm = false }) => {
42
42
  const [initialWidth, setInitialWidth] = useState(width);