@topconsultnpm/sdkui-react-beta 6.12.64 → 6.12.66
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.
@@ -79,6 +79,8 @@ interface TMBlogsProps {
|
|
79
79
|
showCommentFormCallback?: () => void;
|
80
80
|
/** Show Task Form Callback */
|
81
81
|
showTaskFormCallback?: () => void;
|
82
|
+
/** Optional Whether to enable the context menu */
|
83
|
+
showContextMenu?: boolean;
|
82
84
|
}
|
83
85
|
declare const TMBlogs: (props: TMBlogsProps) => import("react/jsx-runtime").JSX.Element;
|
84
86
|
export default TMBlogs;
|
@@ -25,7 +25,7 @@ const TMBlogs = (props) => {
|
|
25
25
|
isRestoreEnabled: false,
|
26
26
|
isRefreshEnabled: false,
|
27
27
|
isCreateContextualTask: false,
|
28
|
-
}, refreshCallback, newPosts = [], showCommentFormCallback, showTaskFormCallback } = props;
|
28
|
+
}, refreshCallback, newPosts = [], showCommentFormCallback, showTaskFormCallback, showContextMenu = true } = props;
|
29
29
|
// Get the current device type (e.g., mobile, tablet, desktop) using a custom hook.
|
30
30
|
const deviceType = useDeviceType();
|
31
31
|
// This avoids unnecessary re-renders by only recalculating when deviceType changes.
|
@@ -537,7 +537,7 @@ const TMBlogs = (props) => {
|
|
537
537
|
return;
|
538
538
|
event.preventDefault();
|
539
539
|
setAnchorEl(event.currentTarget);
|
540
|
-
setMenuItems(contextMenuItems);
|
540
|
+
setMenuItems(showContextMenu ? contextMenuItems : []);
|
541
541
|
};
|
542
542
|
// Handle closing the context menu
|
543
543
|
const closeContextMenu = useCallback(() => {
|
@@ -231,6 +231,7 @@ export declare class SDKUI_Localizator {
|
|
231
231
|
static get NoDcmtFound(): "Kein Dokument gefunden" | "No documents found" | "Ningún documento encontrado" | "Pas de documents trouvés" | "Nenhum documento encontrado" | "Nessun documento trovato";
|
232
232
|
static get NoMessages(): string;
|
233
233
|
static get NoMessagesFound(): string;
|
234
|
+
static get NoResultsFound(): string;
|
234
235
|
static get NoneSelection(): "Keine Auswahl" | "No selection" | "Ninguna selección" | "Pas de sélections" | "Nenhuma seleção" | "Nessuna selezione";
|
235
236
|
static get OfSystem(): "Des Systems" | "Of system" | "Del sistema" | "Du système" | "Do sistema" | "Di sistema";
|
236
237
|
static get OldPassword(): "Altes Kennwort" | "Old password" | "Contraseña anterior" | "Ancien mot de passe" | "Senha Antiga" | "Password vecchia";
|
@@ -2261,6 +2261,16 @@ export class SDKUI_Localizator {
|
|
2261
2261
|
default: return "Nessun messaggio trovato";
|
2262
2262
|
}
|
2263
2263
|
}
|
2264
|
+
static get NoResultsFound() {
|
2265
|
+
switch (this._cultureID) {
|
2266
|
+
case CultureIDs.De_DE: return "Kein Ergebnis gefunden";
|
2267
|
+
case CultureIDs.En_US: return "No results found";
|
2268
|
+
case CultureIDs.Es_ES: return "No se encontraron resultados";
|
2269
|
+
case CultureIDs.Fr_FR: return "Aucun résultat trouvé";
|
2270
|
+
case CultureIDs.Pt_PT: return "Nenhum resultado encontrado";
|
2271
|
+
default: return "Nessun risultato trovato";
|
2272
|
+
}
|
2273
|
+
}
|
2264
2274
|
static get NoneSelection() {
|
2265
2275
|
switch (this._cultureID) {
|
2266
2276
|
case CultureIDs.De_DE: return "Keine Auswahl";
|