@topconsultnpm/sdkui-react-beta 6.9.95 → 6.9.97

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.
@@ -52,8 +52,6 @@ const TMDynDataListItemChooser = ({ tid, md, titleForm, openChooserBySingleClick
52
52
  return await SDK_Globals.tmSession?.NewSearchEngine().GetDynDataListValuesAsync(tid, md?.id, layoutMode, queryParamsDynDataList ?? []);
53
53
  };
54
54
  const getDescription = () => {
55
- if (!dataSource)
56
- return "";
57
55
  if (!Array.isArray(values))
58
56
  return "";
59
57
  if (!values || values.length <= 0)
@@ -66,8 +64,6 @@ const TMDynDataListItemChooser = ({ tid, md, titleForm, openChooserBySingleClick
66
64
  return description ?? values?.[0];
67
65
  };
68
66
  const getIcon = () => {
69
- if (!dataSource)
70
- return null;
71
67
  if (!Array.isArray(values))
72
68
  return null;
73
69
  if (!values || values.length <= 0)
@@ -7,6 +7,11 @@ interface ITMTextExpression extends ITMEditorBase {
7
7
  qd?: QueryDescriptor;
8
8
  formulaItems?: string[];
9
9
  label?: string;
10
+ titleChooser?: string;
11
+ captionColumnChooser?: string;
12
+ higthChooser?: string;
13
+ widthChooser?: string;
14
+ disableMultipleSelection?: boolean;
10
15
  validationItems?: ValidationItem[];
11
16
  onValueChanged?: (newText: string | undefined) => void;
12
17
  }
@@ -119,7 +119,7 @@ const TMTextExpression = (props) => {
119
119
  };
120
120
  const openFormulaChooseForm = () => {
121
121
  return (showFormulaChooser ?
122
- _jsx(TMChooserForm, { title: SDKUI_Localizator.Parameters, height: '300', width: '300', hasShowId: false, showDefaultColumns: false, allowMultipleSelection: true, columns: [_jsx(Column, { caption: SDKUI_Localizator.Name, dataField: "paramName", sortOrder: 'asc', alignment: 'left' }, 0)], dataSource: getFormulaDataSorce(), onClose: () => { setShowFormulaChooser(false); }, onChoose: (IDs) => {
122
+ _jsx(TMChooserForm, { title: props.titleChooser ? props.titleChooser : SDKUI_Localizator.Parameters, height: props.higthChooser ? props.higthChooser : '350', width: props.widthChooser ? props.widthChooser : '300', hasShowId: false, showDefaultColumns: false, allowMultipleSelection: props.disableMultipleSelection === true ? false : true, columns: [_jsx(Column, { caption: props.captionColumnChooser ? props.captionColumnChooser : SDKUI_Localizator.Name, dataField: "paramName", sortOrder: 'asc', alignment: 'left' }, 0)], dataSource: getFormulaDataSorce(), onClose: () => { setShowFormulaChooser(false); }, onChoose: (IDs) => {
123
123
  let expr = props.value ?? '';
124
124
  IDs.map(i => expr += props.formulaItems[i]);
125
125
  props.onValueChanged?.(expr);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@topconsultnpm/sdkui-react-beta",
3
- "version": "6.9.95",
3
+ "version": "6.9.97",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",
@@ -28,7 +28,7 @@
28
28
  "lib"
29
29
  ],
30
30
  "dependencies": {
31
- "@topconsultnpm/sdk-ts-beta": "^6.9.12",
31
+ "@topconsultnpm/sdk-ts-beta": "^6.9.13",
32
32
  "buffer": "^6.0.3",
33
33
  "devextreme": "24.2.3",
34
34
  "devextreme-react": "24.2.3",