@topconsultnpm/sdkui-react-beta 6.11.97 → 6.11.98

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.
@@ -144,6 +144,6 @@ const TMDistinctValues = ({ tid, mid, layoutMode = LayoutModes.None, allowAppend
144
144
  if (showPrompt) {
145
145
  return (_jsxs(StyledPanelContainer, { children: [_jsx(IconDataList, { fontSize: 96 }), _jsxs("p", { children: ["Caricare i valori distinti di ", _jsx("strong", { children: `"${md?.nameLoc}" ` }), "? "] }), _jsx(TMButton, { caption: SDKUI_Localizator.Yes, onClick: handleLoadData, showTooltip: false })] }));
146
146
  }
147
- return (_jsx(TMToolbarCard, { title: 'Valori distinti ' + (md?.nameLoc ? `(${md?.nameLoc})` : ''), showHeader: showHeader, onClose: onClosePanelCallback, children: _jsxs(StyledDistinctValues, { children: [isVisibleAppend() && _jsx(TMCheckBox, { elementStyle: { position: 'absolute', right: '15px', top: '15px', zIndex: 10000 }, label: 'Accoda', value: isAppendMode, onValueChanged: () => { setIsAppendMode(!isAppendMode); } }), _jsx(TMDataGrid, { focusedRowKey: focusedItem ? focusedItem.rowIndex : undefined, selection: { showCheckBoxesMode: 'none' }, searchPanel: { highlightCaseSensitive: true, visible: true }, dataColumns: customColumns, dataSource: dataSource, keyExpr: 'rowIndex', height: 'calc(100%)', onFocusedRowChanged: onFocusedRowChanged, paging: { pageSize: 30 }, summary: customSummary })] }) }));
147
+ return (_jsx(TMToolbarCard, { title: SDKUI_Localizator.DistinctValues + (md?.nameLoc ? ` (${md?.nameLoc})` : ''), showHeader: showHeader, onClose: onClosePanelCallback, children: _jsxs(StyledDistinctValues, { children: [isVisibleAppend() && _jsx(TMCheckBox, { elementStyle: { position: 'absolute', right: '15px', top: '15px', zIndex: 10000 }, label: 'Accoda', value: isAppendMode, onValueChanged: () => { setIsAppendMode(!isAppendMode); } }), _jsx(TMDataGrid, { focusedRowKey: focusedItem ? focusedItem.rowIndex : undefined, selection: { showCheckBoxesMode: 'none' }, searchPanel: { highlightCaseSensitive: true, visible: true }, dataColumns: customColumns, dataSource: dataSource, keyExpr: 'rowIndex', height: 'calc(100%)', onFocusedRowChanged: onFocusedRowChanged, paging: { pageSize: 30 }, summary: customSummary })] }) }));
148
148
  };
149
149
  export default TMDistinctValues;
@@ -2,7 +2,7 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
2
2
  import { useEffect, useState } from "react";
3
3
  import styled from "styled-components";
4
4
  import { DcmtTypeListCacheService, LayoutModes, MetadataDataDomains, MetadataDataTypes, MetadataValueDescriptor, SDK_Globals } from '@topconsultnpm/sdk-ts-beta';
5
- import { IconUndo, IconPencil, IconFunction, IconClear, IconMenuVertical, IconDataList } from "../../helper";
5
+ import { IconUndo, IconPencil, IconFunction, IconClear, IconMenuVertical, IconDataList, SDKUI_Localizator } from "../../helper";
6
6
  import { TMColors } from "../../utils/theme";
7
7
  import TMButton from "../base/TMButton";
8
8
  import TMDropDownMenu from "../base/TMDropDownMenu";
@@ -150,17 +150,17 @@ const TMMetadataValues = ({ showCheckBoxes, showAdvancedMenu = false, customMenu
150
150
  let isEditable = isEditableList(mid);
151
151
  let menu = [
152
152
  {
153
- text: isEditable ? "Ripristina" : "Rendi editabile",
153
+ text: isEditable ? SDKUI_Localizator.Restore : SDKUI_Localizator.MakeEditable,
154
154
  icon: isEditable ? _jsx(IconUndo, {}) : _jsx(IconPencil, {}),
155
155
  disabled: md.dataDomain === MetadataDataDomains.Computed,
156
156
  onClick: () => {
157
157
  addOrRemoveEditableList(mid);
158
- onAdvancedMenuClick?.({ tid: tid, mid: mid, button: AdvancedMenuButtons.FormulaEditor });
158
+ onAdvancedMenuClick?.({ tid: tid, mid: mid, button: AdvancedMenuButtons.MakeEditable });
159
159
  onValueChanged?.(metadataValues.map((item) => item.tid == tid && item.mid === mid ? { ...item, isEditable: !item.isEditable } : item));
160
160
  }
161
161
  },
162
- { text: "Editor delle formule", icon: _jsx(IconFunction, {}), onClick: () => onAdvancedMenuClick?.({ tid: tid, mid: mid, button: AdvancedMenuButtons.FormulaEditor }) },
163
- { text: "Valori distinti", icon: _jsx(IconDataList, {}), onClick: () => onAdvancedMenuClick?.({ tid: tid, mid: mid, button: AdvancedMenuButtons.DistinctValues }) }
162
+ { text: SDKUI_Localizator.FormulaEditorTitle, icon: _jsx(IconFunction, {}), onClick: () => onAdvancedMenuClick?.({ tid: tid, mid: mid, button: AdvancedMenuButtons.FormulaEditor }) },
163
+ { text: SDKUI_Localizator.DistinctValues, icon: _jsx(IconDataList, {}), onClick: () => onAdvancedMenuClick?.({ tid: tid, mid: mid, button: AdvancedMenuButtons.DistinctValues }) }
164
164
  ];
165
165
  if (customMenuItems.length > 0)
166
166
  menu.push(...customMenuItems);
@@ -87,6 +87,7 @@ export declare class SDKUI_Localizator {
87
87
  static get Destination(): "Bestimmung" | "Destination" | "Destino" | "Destinazione";
88
88
  static get DetailsView(): string;
89
89
  static get Disabled(): "Deaktiviert" | "Disabled" | "Deshabilitado" | "Désactivé" | "Desabilitado" | "Disabilitato";
90
+ static get DistinctValues(): "Unterschiedliche Werte" | "Distinct values" | "Valores distintos" | "Valeurs distinctes" | "Valori distinti";
90
91
  static get Domain(): "Domäne" | "Domain" | "Dominio" | "Domaine";
91
92
  static get Download_in_Process(): "Download läuft" | "Download in progress" | "Descarga en curso" | "Téléchargement en cours" | "Download em progresso" | "Download in corso";
92
93
  static get Drafts(): string;
@@ -140,6 +141,7 @@ export declare class SDKUI_Localizator {
140
141
  static get FormulaEditor_Instructions(): "Anweisungen" | "Instructions" | "Instrucciones" | "Instruções" | "Istruzioni";
141
142
  static get FormulaEditor_Variables(): "Variablen" | "Variables" | "Variáveis" | "Variabili";
142
143
  static get FormulaEditor_ValidateOK(): "Erfolgreich validierte Formel" | "Formula successfully validated" | "Fórmula validada correctamente" | "La formule est valide" | "Fórmula utilizada com sucesso" | "Formula validata con successo";
144
+ static get FormulaEditorTitle(): "Formeleditor" | "Formula editor" | "Editor de las fórmulas" | "Outil des formules" | "Editor de Fórmula" | "Editor delle formule";
143
145
  static get File_Downloading(): "Datei wird heruntergeladen" | "File is downloading..." | "El archivo se está descargando" | "Le fichier est en cours de téléchargement" | "O arquivo está sendo baixado" | "Il file è in fase di download";
144
146
  static get File_Size(): "Dateigröße" | "File size" | "Tamaño del archivo" | "Taille du fichier" | "Tamanho do arquivo" | "Dimensione del file";
145
147
  static get FromTime(): "wurde" | "from" | "par" | "dal";
@@ -168,6 +170,7 @@ export declare class SDKUI_Localizator {
168
170
  static get Loading(): "Laden" | "Loading" | "Carga" | "Chargement" | "Caricamento";
169
171
  static get Login(): string;
170
172
  static get LogDelete(): "Löschen der Logik" | "Logical delete" | "Cancelación lógica" | "Suppression logique" | "Lógica de cancelamento" | "Cancellazione logica";
173
+ static get MakeEditable(): "Bearbeitbar machen" | "Make editable" | "Hacer editable" | "Rendre modifiable" | "Faça editável" | "Rendi editabile";
171
174
  static get MaxDcmtsToBeReturned(): "Maximale Anzahl von Dokumenten" | "Max number of documents" | "Número máximo de documentos" | "Nombre maximum de documents" | "O número máximo de documentos" | "Numero massimo di documenti";
172
175
  static get MetadataFlag(): "Markieren von Methadaten" | "Flag metadata" | "Metadato de indicador" | "Mètadonnée de marque" | "Marcação de metadados" | "Metadato di contrassegno";
173
176
  static get MetadataFormats_CodiceFiscale(): "Steuerkennzeichen" | "Fiscal code" | "Código fiscal" | "Code général des impôts" | "Código tributário" | "Codice Fiscale";
@@ -819,6 +819,16 @@ export class SDKUI_Localizator {
819
819
  default: return "Disabilitato";
820
820
  }
821
821
  }
822
+ static get DistinctValues() {
823
+ switch (this._cultureID) {
824
+ case CultureIDs.De_DE: return "Unterschiedliche Werte";
825
+ case CultureIDs.En_US: return "Distinct values";
826
+ case CultureIDs.Es_ES: return "Valores distintos";
827
+ case CultureIDs.Fr_FR: return "Valeurs distinctes";
828
+ case CultureIDs.Pt_PT: return "Valores distintos";
829
+ default: return "Valori distinti";
830
+ }
831
+ }
822
832
  static get Domain() {
823
833
  switch (this._cultureID) {
824
834
  case CultureIDs.De_DE: return "Domäne";
@@ -1361,6 +1371,16 @@ export class SDKUI_Localizator {
1361
1371
  default: return "Formula validata con successo";
1362
1372
  }
1363
1373
  }
1374
+ static get FormulaEditorTitle() {
1375
+ switch (this._cultureID) {
1376
+ case CultureIDs.De_DE: return "Formeleditor";
1377
+ case CultureIDs.En_US: return "Formula editor";
1378
+ case CultureIDs.Es_ES: return "Editor de las fórmulas";
1379
+ case CultureIDs.Fr_FR: return "Outil des formules";
1380
+ case CultureIDs.Pt_PT: return "Editor de Fórmula";
1381
+ default: return "Editor delle formule";
1382
+ }
1383
+ }
1364
1384
  static get File_Downloading() {
1365
1385
  switch (this._cultureID) {
1366
1386
  case CultureIDs.De_DE: return "Datei wird heruntergeladen";
@@ -1640,6 +1660,16 @@ export class SDKUI_Localizator {
1640
1660
  default: return "Cancellazione logica";
1641
1661
  }
1642
1662
  }
1663
+ static get MakeEditable() {
1664
+ switch (this._cultureID) {
1665
+ case CultureIDs.De_DE: return "Bearbeitbar machen";
1666
+ case CultureIDs.En_US: return "Make editable";
1667
+ case CultureIDs.Es_ES: return "Hacer editable";
1668
+ case CultureIDs.Fr_FR: return "Rendre modifiable";
1669
+ case CultureIDs.Pt_PT: return "Faça editável";
1670
+ default: return "Rendi editabile";
1671
+ }
1672
+ }
1643
1673
  static get MaxDcmtsToBeReturned() {
1644
1674
  switch (this._cultureID) {
1645
1675
  case CultureIDs.De_DE: return "Maximale Anzahl von Dokumenten";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@topconsultnpm/sdkui-react-beta",
3
- "version": "6.11.97",
3
+ "version": "6.11.98",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",