@topconsultnpm/sdkui-react-beta 6.7.20 → 6.7.21
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/assets/icomoon.svg +96 -96
- package/lib/components/base/Styled.d.ts +22 -1919
- package/lib/components/base/TMAlert.d.ts +2 -3
- package/lib/components/base/TMButton.d.ts +7 -7
- package/lib/components/base/TMContextMenuOLD.d.ts +3 -274
- package/lib/components/base/TMDropDownMenu.d.ts +0 -1
- package/lib/components/base/TMEditorBase.d.ts +0 -1
- package/lib/components/base/TMLayout.d.ts +36 -36
- package/lib/components/base/TMTab.d.ts +4 -4
- package/lib/components/base/TMVilViewer.d.ts +1 -1
- package/lib/components/choosers/TMUserChooser.d.ts +5 -5
- package/lib/components/editors/TMDropDown.js +3 -3
- package/lib/components/editors/TMEditorStyled.d.ts +22 -20
- package/lib/components/editors/TMEditorStyled.js +5 -3
- package/lib/components/editors/TMSummary.js +3 -3
- package/lib/components/editors/TMTextArea.js +1 -1
- package/lib/components/editors/TMTextBox.js +1 -1
- package/lib/components/forms/TMLoginForm.d.ts +5 -5
- package/lib/components/forms/TMSaveForm.d.ts +7 -7
- package/lib/components/query/TMQueryEditor.d.ts +8 -550
- package/lib/components/query/TMQueryResult.d.ts +5 -5
- package/lib/components/query/TMQueryResultForm.d.ts +10 -10
- package/lib/components/sidebar/TMHeader.d.ts +2 -2
- package/lib/components/viewers/TMDataListItemViewer.d.ts +3 -3
- package/lib/components/viewers/TMMidViewer.d.ts +5 -5
- package/lib/components/viewers/TMTidViewer.d.ts +5 -5
- package/lib/helper/helpers.d.ts +1 -1
- package/lib/hooks/useForm.d.ts +0 -1
- package/lib/hooks/useOutsideClick.d.ts +0 -1
- package/package.json +1 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
import { FontSize, TMColors } from '../../utils/theme';
|
|
4
|
-
import { StyledEditorContainer, StyledEditorIcon, StyledEditorLabel, editorColorManager } from './TMEditorStyled';
|
|
4
|
+
import { StyledEditorContainer, StyledEditorIcon, StyledEditorLabel, TMEditorsDefaultBorderRadius, editorColorManager } from './TMEditorStyled';
|
|
5
5
|
import { IconClearButton, IconPencil, SDKUI_Localizator } from '../../helper';
|
|
6
6
|
import TMLayoutContainer, { TMLayoutItem } from '../base/TMLayout';
|
|
7
7
|
import TMVilViewer from '../base/TMVilViewer';
|
|
@@ -16,7 +16,7 @@ const StyledSummaryTemplateInput = styled.div `
|
|
|
16
16
|
border-bottom: ${props => !props.$showBorder ? '' : (props.$vil.length > 0) ? '3px solid' : '1px solid'} ;
|
|
17
17
|
border-bottom-color: ${props => (props.$vil.length === 0) ? !props.$isModified ? TMColors.border_normal : TMColors.isModified : editorColorManager(props.$vil)};
|
|
18
18
|
color: ${props => !props.$disabled ? (props.$vil.length === 0) ? !props.$isModified ? 'black' : TMColors.isModified : editorColorManager(props.$vil) : TMColors.disabled};
|
|
19
|
-
border-radius: ${props => !props.$showBorder ? props.$borderRadius :
|
|
19
|
+
border-radius: ${props => !props.$showBorder ? props.$borderRadius : TMEditorsDefaultBorderRadius};
|
|
20
20
|
display: flex;
|
|
21
21
|
align-items: center;
|
|
22
22
|
/* min-width: 70px; */
|
|
@@ -55,7 +55,7 @@ const TMSummary = ({ labelColor, hasValue, borderRadius = '4px', validationItems
|
|
|
55
55
|
})] })] }) }));
|
|
56
56
|
};
|
|
57
57
|
const renderLabel = () => {
|
|
58
|
-
return (_jsx(StyledEditorLabel, { "$color": labelColor, "$isFocused": false, "$labelPosition": labelPosition, "$disabled": disabled,
|
|
58
|
+
return (_jsx(StyledEditorLabel, { "$color": labelColor, "$isFocused": false, "$labelPosition": labelPosition, "$disabled": disabled, children: _jsx("div", { style: { flexDirection: "row", display: "flex", alignItems: "start", justifyContent: "start" }, children: label }) }));
|
|
59
59
|
};
|
|
60
60
|
const renderSummary = () => {
|
|
61
61
|
return (_jsxs(TMLayoutContainer, { direction: 'horizontal', children: [icon && _jsx(TMLayoutItem, { width: '20px', children: icon && _jsx(StyledEditorIcon, { "$disabled": disabled, "$vil": validationItems, "$isModified": isModifiedWhen, children: icon }) }), _jsx(TMLayoutItem, { children: _jsxs(StyledEditorContainer, { "$width": width, children: [label && renderLabel(), renderTemplateField(), _jsx(TMVilViewer, { vil: validationItems })] }) })] }));
|
|
@@ -64,7 +64,7 @@ const TMTextArea = (props) => {
|
|
|
64
64
|
}), formulaItems.length > 0 && clicked && (_jsx(TMContextMenu, { menuData: formulaMenuItems, top: points.y, left: points.x, onMenuItemClick: (formula) => insertText(formula) })), _jsx(TMVilViewer, { vil: validationItems })] });
|
|
65
65
|
};
|
|
66
66
|
const renderedLeftLabelTextArea = () => {
|
|
67
|
-
return (_jsxs(TMLayoutContainer, { direction: 'horizontal', children: [icon && _jsx(TMLayoutItem, { width: '20px', children: _jsx(StyledEditorIcon, { "$disabled": disabled, "$vil": validationItems, "$isModified": isModifiedWhen, children: icon }) }), _jsx(TMLayoutItem, { children: _jsxs(StyledEditorContainer, { "$width": width, children: [label && _jsx(StyledEditorLabel, { "$isFocused": isFocused, "$labelPosition": labelPosition, "$disabled": disabled,
|
|
67
|
+
return (_jsxs(TMLayoutContainer, { direction: 'horizontal', children: [icon && _jsx(TMLayoutItem, { width: '20px', children: _jsx(StyledEditorIcon, { "$disabled": disabled, "$vil": validationItems, "$isModified": isModifiedWhen, children: icon }) }), _jsx(TMLayoutItem, { children: _jsxs(StyledEditorContainer, { "$width": width, children: [label && _jsx(StyledEditorLabel, { "$isFocused": isFocused, "$labelPosition": labelPosition, "$disabled": disabled, children: label ?? '' }), renderTextArea()] }) })] }));
|
|
68
68
|
};
|
|
69
69
|
return (_jsx("div", { style: elementStyle, children: renderedLeftLabelTextArea() }));
|
|
70
70
|
};
|
|
@@ -151,7 +151,7 @@ const TMTextBox = ({ autoFocus, maxLength, labelColor, precision, scale, showCle
|
|
|
151
151
|
})] }), formulaItems.length > 0 && (_jsx(ContextMenu, { dataSource: formulaMenuItems, target: `#text-${id}`, onItemClick: (e) => { insertText(e.itemData?.text ?? ''); } })), _jsx(TMVilViewer, { vil: validationItems })] }));
|
|
152
152
|
};
|
|
153
153
|
const renderedLeftLabelTextBox = () => {
|
|
154
|
-
return (_jsxs(TMLayoutContainer, { direction: 'horizontal', children: [icon && _jsx(TMLayoutItem, { width: '20px', children: _jsx(StyledEditorIcon, { "$disabled": disabled, "$vil": validationItems, "$isModified": isModifiedWhen, children: icon }) }), _jsx(TMLayoutItem, { children: _jsxs(StyledEditorContainer, { "$width": width, children: [label && _jsx(StyledEditorLabel, { "$color": labelColor, "$isFocused": isFocused, "$labelPosition": labelPosition, "$disabled": disabled,
|
|
154
|
+
return (_jsxs(TMLayoutContainer, { direction: 'horizontal', children: [icon && _jsx(TMLayoutItem, { width: '20px', children: _jsx(StyledEditorIcon, { "$disabled": disabled, "$vil": validationItems, "$isModified": isModifiedWhen, children: icon }) }), _jsx(TMLayoutItem, { children: _jsxs(StyledEditorContainer, { "$width": width, children: [label && _jsx(StyledEditorLabel, { "$color": labelColor, "$isFocused": isFocused, "$labelPosition": labelPosition, "$disabled": disabled, children: label }), renderInputField()] }) })] }));
|
|
155
155
|
};
|
|
156
156
|
return (_jsx("div", { style: elementStyle, children: renderedLeftLabelTextBox() }));
|
|
157
157
|
};
|
|
@@ -38,11 +38,11 @@ export declare const cultureIDsDataSource: {
|
|
|
38
38
|
}[];
|
|
39
39
|
declare const TMLoginForm: React.FunctionComponent<ITMLoginFormProps>;
|
|
40
40
|
export declare const TMChangePassword: ({ deviceType, tmSession, username, onClose, enable, hasBack }: {
|
|
41
|
-
deviceType?: DeviceType
|
|
42
|
-
hasBack?: boolean
|
|
43
|
-
tmSession?: ITopMediaSession
|
|
41
|
+
deviceType?: DeviceType;
|
|
42
|
+
hasBack?: boolean;
|
|
43
|
+
tmSession?: ITopMediaSession;
|
|
44
44
|
username: string;
|
|
45
|
-
onClose?: (
|
|
46
|
-
enable?: boolean
|
|
45
|
+
onClose?: () => void;
|
|
46
|
+
enable?: boolean;
|
|
47
47
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
48
48
|
export default TMLoginForm;
|
|
@@ -3,15 +3,15 @@ import { FormModes, ITMSaveFormBaseProps } from '../../ts/types';
|
|
|
3
3
|
declare const TMSaveForm: React.FC<ITMSaveFormBaseProps>;
|
|
4
4
|
export default TMSaveForm;
|
|
5
5
|
export declare const TMSaveFormStandardToolbar: ({ btnStyle, formMode, hasNavigation, isModified, errorsCount, onNext, onPrev, canNext, canPrev, onSaveAsync, onUndo }: {
|
|
6
|
-
btnStyle:
|
|
6
|
+
btnStyle: "normal" | "toolbar" | "icon" | "text";
|
|
7
7
|
formMode: FormModes;
|
|
8
8
|
hasNavigation: boolean;
|
|
9
9
|
isModified: boolean;
|
|
10
10
|
errorsCount: number;
|
|
11
|
-
onNext?: (
|
|
12
|
-
onPrev?: (
|
|
13
|
-
canNext?: boolean
|
|
14
|
-
canPrev?: boolean
|
|
15
|
-
onSaveAsync?: (
|
|
16
|
-
onUndo?: (
|
|
11
|
+
onNext?: () => void;
|
|
12
|
+
onPrev?: () => void;
|
|
13
|
+
canNext?: boolean;
|
|
14
|
+
canPrev?: boolean;
|
|
15
|
+
onSaveAsync?: () => Promise<void>;
|
|
16
|
+
onUndo?: () => void;
|
|
17
17
|
}) => import("react/jsx-runtime").JSX.Element;
|