@topconsultnpm/sdkui-react-beta 6.7.88 → 6.7.90
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.
|
@@ -7,7 +7,7 @@ import { SDKUI_Localizator } from '../../helper';
|
|
|
7
7
|
// The TMTreeDropDown functional component
|
|
8
8
|
const TMTreeDropDown = (props) => {
|
|
9
9
|
// Destructure props for easy access
|
|
10
|
-
const { dataSource, values, setValues, isValidKey, elementStyle } = props;
|
|
10
|
+
const { dataSource, values, setValues, displayExpr, isValidKey, elementStyle } = props;
|
|
11
11
|
// Reference to the TreeView component for programmatic control
|
|
12
12
|
const treeViewRef = useRef(null);
|
|
13
13
|
// Helper function to get a comma-separated string of labels for the selected IDs
|
|
@@ -49,6 +49,6 @@ const TMTreeDropDown = (props) => {
|
|
|
49
49
|
filteredKeys = selectedKeys.filter(isValidKey); // If a validation function is provided, filter the selected keys
|
|
50
50
|
setValues(filteredKeys);
|
|
51
51
|
}, []);
|
|
52
|
-
return _jsx(TMTooltip, { content: getLabelsByIds(values, 'formatted'), children: _jsx(DropDownBox, { width: "100%", style: elementStyle, valueExpr: "id", displayExpr: "label", value: values, dataSource: dataSource, placeholder: SDKUI_Localizator.SelectDesiredFilters, onContentReady: syncTreeViewSelection, focusStateEnabled: true, contentRender: () => _jsx(TreeView, { ref: treeViewRef, keyExpr: "id", dataSource: dataSource, selectByClick: true, selectNodesRecursive: true, selectionMode: "multiple", displayExpr: "label", parentIdExpr: "categoryId", dataStructure: "plain", showCheckBoxesMode: "normal", onContentReady: syncTreeViewSelection, onItemSelectionChanged: (e) => treeViewItemSelectionChanged(e) }) }) });
|
|
52
|
+
return _jsx(TMTooltip, { content: getLabelsByIds(values, 'formatted'), children: _jsx(DropDownBox, { width: "100%", style: elementStyle, valueExpr: "id", displayExpr: displayExpr ? "label" : () => SDKUI_Localizator.Filters, value: values, dataSource: dataSource, placeholder: SDKUI_Localizator.SelectDesiredFilters, onContentReady: syncTreeViewSelection, focusStateEnabled: true, contentRender: () => _jsx(TreeView, { ref: treeViewRef, keyExpr: "id", dataSource: dataSource, selectByClick: true, selectNodesRecursive: true, selectionMode: "multiple", displayExpr: "label", parentIdExpr: "categoryId", dataStructure: "plain", showCheckBoxesMode: "normal", onContentReady: syncTreeViewSelection, onItemSelectionChanged: (e) => treeViewItemSelectionChanged(e) }) }) });
|
|
53
53
|
};
|
|
54
54
|
export default TMTreeDropDown;
|
|
@@ -242,4 +242,5 @@ export declare class SDKUI_Localizator {
|
|
|
242
242
|
static get Export(): "Exportieren" | "Export" | "Exportar" | "Exporter" | "Esporta";
|
|
243
243
|
static get ErrorParsingFileContent(): "Fehler beim Parsen des Dateiinhalts. Stellen Sie sicher, dass die Datei im richtigen Format vorliegt." | "Error parsing the file content. Ensure the file is in the correct format." | "Error al analizar el contenido del archivo. Asegúrese de que el archivo esté en el formato correcto." | "Erreur lors de l'analyse du contenu du fichier. Assurez-vous que le fichier est dans le bon format." | "Erro ao analisar o conteúdo do arquivo. Certifique-se de que o arquivo está no formato correto." | "Errore durante l'analisi del contenuto del file. Assicurati che il file sia nel formato corretto.";
|
|
244
244
|
static get SelectDesiredFilters(): "Wählen Sie die gewünschten Filter aus" | "Select the desired filters" | "Selecciona los filtros deseados" | "Sélectionnez les filtres souhaités" | "Selecione os filtros desejados" | "Seleziona i filtri desiderati";
|
|
245
|
+
static get Filters(): "Filter" | "Filters" | "Filtros" | "Filtres" | "Filtri";
|
|
245
246
|
}
|
|
@@ -2449,4 +2449,14 @@ export class SDKUI_Localizator {
|
|
|
2449
2449
|
default: return "Seleziona i filtri desiderati";
|
|
2450
2450
|
}
|
|
2451
2451
|
}
|
|
2452
|
+
static get Filters() {
|
|
2453
|
+
switch (this._cultureID) {
|
|
2454
|
+
case CultureIDs.De_DE: return "Filter";
|
|
2455
|
+
case CultureIDs.En_US: return "Filters";
|
|
2456
|
+
case CultureIDs.Es_ES: return "Filtros";
|
|
2457
|
+
case CultureIDs.Fr_FR: return "Filtres";
|
|
2458
|
+
case CultureIDs.Pt_PT: return "Filtros";
|
|
2459
|
+
default: return "Filtri";
|
|
2460
|
+
}
|
|
2461
|
+
}
|
|
2452
2462
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@topconsultnpm/sdkui-react-beta",
|
|
3
|
-
"version": "6.7.
|
|
3
|
+
"version": "6.7.90",
|
|
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.7.
|
|
31
|
+
"@topconsultnpm/sdk-ts-beta": "^6.7.25",
|
|
32
32
|
"@topconsultnpm/sdkui-react-beta": "^6.7.37",
|
|
33
33
|
"buffer": "^6.0.3",
|
|
34
34
|
"devextreme": "24.1.6",
|