@topconsultnpm/sdkui-react-beta 6.12.130 → 6.12.131
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/base/Styled.d.ts +2 -0
- package/lib/components/base/Styled.js +5 -3
- package/lib/components/choosers/TMInvoiceRetrieveFormats.js +1 -1
- package/lib/components/choosers/TMOrderRetrieveFormats.js +1 -1
- package/lib/helper/SDKUI_Globals.d.ts +1 -0
- package/lib/helper/SDKUI_Globals.js +2 -0
- package/package.json +1 -1
@@ -13,6 +13,8 @@ export declare const StyledPanelPage: import("styled-components/dist/types").ISt
|
|
13
13
|
}>> & string;
|
14
14
|
export declare const StyledOffCanvasPanel: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
15
15
|
$isOpen: boolean;
|
16
|
+
$width?: string;
|
17
|
+
$mobileHeight?: string;
|
16
18
|
}>> & string;
|
17
19
|
export declare const StyledOverlay: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
18
20
|
$isOpen: boolean;
|
@@ -53,7 +53,7 @@ export const StyledOffCanvasPanel = styled.div `
|
|
53
53
|
position: fixed;
|
54
54
|
background-color: ${TMColors.default_background};
|
55
55
|
box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
|
56
|
-
transition: transform 0.3s ease;
|
56
|
+
transition: transform 0.3s ease, visibility 0.3s ease;
|
57
57
|
z-index: 1502;
|
58
58
|
display: flex;
|
59
59
|
flex-direction: column;
|
@@ -63,10 +63,11 @@ export const StyledOffCanvasPanel = styled.div `
|
|
63
63
|
/* Default: Open from the right */
|
64
64
|
top: 0;
|
65
65
|
right: 0;
|
66
|
-
width: 550px;
|
66
|
+
width: ${({ $width }) => $width ?? '550px'}; /* Use $width or default to 550px */
|
67
67
|
max-width: 100%;
|
68
68
|
height: 100%;
|
69
69
|
transform: ${({ $isOpen }) => ($isOpen ? 'translateX(0)' : 'translateX(100%)')};
|
70
|
+
visibility: ${({ $isOpen }) => ($isOpen ? 'visible' : 'hidden')};
|
70
71
|
|
71
72
|
/* Mobile: Open from the bottom */
|
72
73
|
@media (max-width: 768px) {
|
@@ -74,8 +75,9 @@ export const StyledOffCanvasPanel = styled.div `
|
|
74
75
|
bottom: 0;
|
75
76
|
right: 0;
|
76
77
|
width: 100%;
|
77
|
-
height:
|
78
|
+
height: ${({ $mobileHeight }) => $mobileHeight ?? '90%'}; /* Use $mobileHeight or default to 90% */
|
78
79
|
transform: ${({ $isOpen }) => ($isOpen ? 'translateY(0)' : 'translateY(100%)')};
|
80
|
+
visibility: ${({ $isOpen }) => ($isOpen ? 'visible' : 'hidden')};
|
79
81
|
border-top-left-radius: 10px;
|
80
82
|
border-top-right-radius: 10px;
|
81
83
|
border-bottom-left-radius: 0;
|
@@ -17,6 +17,6 @@ const TMInvoiceRetrieveFormats = ({ value, valueOrig, onValueChanged, valuesToEx
|
|
17
17
|
}
|
18
18
|
return dataSource;
|
19
19
|
};
|
20
|
-
return (_jsx(TMDropDown, { label: label, elementStyle: { marginBottom: TMMargin.defultMargin }, dataSource: getDataSource(), value: value, onValueChanged: (e) => { onValueChanged?.(e.target.value); }, isModifiedWhen: value != valueOrig, width: width }));
|
20
|
+
return (_jsx(TMDropDown, { label: label, elementStyle: { marginBottom: TMMargin.defultMargin, width: width }, dataSource: getDataSource(), value: value, onValueChanged: (e) => { onValueChanged?.(e.target.value); }, isModifiedWhen: value != valueOrig, width: width }));
|
21
21
|
};
|
22
22
|
export default TMInvoiceRetrieveFormats;
|
@@ -17,6 +17,6 @@ const TMOrderRetrieveFormats = ({ value, valueOrig, onValueChanged, valuesToExcl
|
|
17
17
|
}
|
18
18
|
return dataSource;
|
19
19
|
};
|
20
|
-
return (_jsx(TMDropDown, { label: label, elementStyle: { marginBottom: TMMargin.defultMargin }, dataSource: getDataSource(), value: value, isModifiedWhen: value != valueOrig, onValueChanged: (e) => { onValueChanged?.(e.target.value); }, width: width }));
|
20
|
+
return (_jsx(TMDropDown, { label: label, elementStyle: { marginBottom: TMMargin.defultMargin, width: width }, dataSource: getDataSource(), value: value, isModifiedWhen: value != valueOrig, onValueChanged: (e) => { onValueChanged?.(e.target.value); }, width: width }));
|
21
21
|
};
|
22
22
|
export default TMOrderRetrieveFormats;
|
@@ -58,6 +58,8 @@ export class ThemeSettings {
|
|
58
58
|
this.fontSize = FontSize.defaultFontSizeInPixel;
|
59
59
|
this.gridSettings = new DataGridSettings();
|
60
60
|
this.gutters = '20px';
|
61
|
+
// Automatically update the CSS variable for font size
|
62
|
+
document.documentElement.style.setProperty('--base-font-size', this.fontSize);
|
61
63
|
}
|
62
64
|
}
|
63
65
|
export class SearchSettings {
|