@topconsultnpm/sdkui-react-beta 6.9.26 → 6.9.28

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.
@@ -18,7 +18,7 @@ export const StyledEditorContainer = styled.div `
18
18
  `;
19
19
  export const StyledEditor = styled.input `
20
20
  width: ${props => props.$width};
21
- padding: ${props => props.$type === 'password' ? '4px 10px 4px 13px' : props.$type === 'number' ? '4px 4px 5px 8px' : '4px 13px'};
21
+ padding: ${props => props.$type === 'password' ? '4px 10px 4px 13px' : props.$type === 'number' ? '4px 4px 5px 8px' : '4px 8px'};
22
22
  border: 1px solid;
23
23
  border-color: ${props => props.$isModified ? TMColors.isModified : TMColors.border_normal};
24
24
  border-bottom: ${props => (props.$vil.length > 0) ? '3px' : '1px'} solid ;
@@ -9,7 +9,7 @@ import TMTooltip from '../base/TMTooltip';
9
9
  const StyledSummaryTemplateInput = styled.div `
10
10
  width: ${props => props.$width};
11
11
  height: ${props => props.$height};
12
- padding: ${props => !props.$showBorder ? '0px 5px' : '5px 5px'};
12
+ padding: ${props => !props.$showBorder ? '0px 5px' : '5px'};
13
13
  border: ${props => !props.$showBorder ? '' : '1px solid'};
14
14
  background: ${props => props.$readOnly ? 'linear-gradient(white 20%, #d6d6d6 80%)' : props.$backgroundColor};
15
15
  border-color: ${props => props.$isModified ? TMColors.isModified : TMColors.border_normal};
@@ -799,6 +799,7 @@ const TMQdWhereItemValue = ({ whereItem, index, queryParamsDynDataList, onlyEdit
799
799
  const [numberOfOperands, setNumberOfOperands] = useState(0);
800
800
  const [md, setMd] = useState();
801
801
  const [editingMode, setEditingMode] = useState(EditingModes.Editing);
802
+ const [isEditableList, setIsEditableList] = useState(false);
802
803
  const [showDataListChooseForm, setShowDataListChooseForm] = useState(false);
803
804
  const [dataList, setDataList] = useState();
804
805
  const [showDynDataListChooseForm, setShowDynDataListChooseForm] = useState(false);
@@ -862,6 +863,7 @@ const TMQdWhereItemValue = ({ whereItem, index, queryParamsDynDataList, onlyEdit
862
863
  if (mdOut?.dynDL_IsMultiCfg == 1)
863
864
  d = mdOut?.dynDL_Cfgs?.[1];
864
865
  setDynDl(d);
866
+ setIsEditableList(d?.qd?.from?.tid == whereItem.tid);
865
867
  mdOut?.id && SDK_Globals.tmSession?.NewSearchEngine().GetDynDataListValuesAsync(whereItem.tid, mdOut?.id, LayoutModes.None, queryParamsDynDataList ?? []).then((result) => {
866
868
  TMSpinner.hide();
867
869
  setDataSource(result);
@@ -930,7 +932,7 @@ const TMQdWhereItemValue = ({ whereItem, index, queryParamsDynDataList, onlyEdit
930
932
  };
931
933
  const mdValueEmptyDescr = `<${SDKUI_Localizator.Search_EnterValue}...>`;
932
934
  return (_jsxs("div", { ref: ref, id: containerId, style: { width: isEditing && whereItem.operator == QueryOperators.Custom && !onlyEditing ? "100%" : undefined }, children: [(isEditing || onlyEditing) &&
933
- _jsxs(StyledRowItem, { children: [showValue1 && _jsx(TMMetadataEditor, { tid: whereItem.tid, mid: whereItem.mid, layoutMode: LayoutModes.None, value: whereItem.value1, queryOperator: whereItem.operator, autoFocus: !onlyEditing, containerElement: containerElement, onValueChange: (value) => setCurrentValue1(value), onValueChanged: (value) => { normalizeValue(value, true); } }), showValue2 && _jsx(TMMetadataEditor, { tid: whereItem.tid, mid: whereItem.mid, layoutMode: LayoutModes.None, value: whereItem.value1, queryOperator: whereItem.operator, autoFocus: !onlyEditing, containerElement: containerElement, onValueChange: (value) => setCurrentValue2(value), onValueChanged: (value) => { normalizeValue(value, false); } })] }), !isEditing && !onlyEditing && (showValue1 || showValue2) &&
935
+ _jsxs(StyledRowItem, { children: [showValue1 && _jsx(TMMetadataEditor, { tid: whereItem.tid, mid: whereItem.mid, layoutMode: LayoutModes.None, isEditableList: isEditableList, value: whereItem.value1, queryOperator: whereItem.operator, autoFocus: !onlyEditing, containerElement: containerElement, onValueChange: (value) => setCurrentValue1(value), onValueChanged: (value) => { normalizeValue(value, true); } }), showValue2 && _jsx(TMMetadataEditor, { tid: whereItem.tid, mid: whereItem.mid, layoutMode: LayoutModes.None, isEditableList: isEditableList, value: whereItem.value1, queryOperator: whereItem.operator, autoFocus: !onlyEditing, containerElement: containerElement, onValueChange: (value) => setCurrentValue2(value), onValueChanged: (value) => { normalizeValue(value, false); } })] }), !isEditing && !onlyEditing && (showValue1 || showValue2) &&
934
936
  _jsxs(StyledDivHorizontal, { children: [(editingMode == EditingModes.Chooser) &&
935
937
  _jsxs(_Fragment, { children: [showDataListChooseForm &&
936
938
  _jsx(TMDataListItemChooserForm, { height: '500px', width: '450px', allowMultipleSelection: whereItem.operator == QueryOperators.In || whereItem.operator == QueryOperators.NotIn, dataListId: md?.dataListID, selectedIDs: whereItem.value1?.split(',').map((item) => !item.startsWith("'") ? item : item.slice(1, -1)) ?? [], onClose: () => setShowDataListChooseForm(false), onChoose: (IDs) => { IDs && normalizeValue(IDs.length == 1 ? IDs[0] : IDs.map((item) => `${item}`).join(","), true); } }), showDynDataListChooseForm &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@topconsultnpm/sdkui-react-beta",
3
- "version": "6.9.26",
3
+ "version": "6.9.28",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",