@topconsultnpm/sdkui-react 6.20.0-dev1.73 → 6.20.0-dev1.75

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.
@@ -497,21 +497,21 @@ export const createTasksMenuItems = (taskDescriptor, showId, setShowId, showSear
497
497
  onClick: () => setShowSearch(prevShowSearch => !prevShowSearch),
498
498
  disabled: false,
499
499
  beginGroup: true,
500
- operationType: 'singleRow'
500
+ operationType: 'multiRow'
501
501
  },
502
502
  {
503
503
  name: showId ? SDKUI_Localizator.ID_Hide : SDKUI_Localizator.ID_Show,
504
504
  icon: _jsx("span", { className: showId ? "dx-icon-eyeclose" : "dx-icon-eyeopen" }),
505
505
  onClick: () => setShowId(prevShowId => !prevShowId),
506
506
  disabled: false,
507
- operationType: 'singleRow'
507
+ operationType: 'multiRow'
508
508
  },
509
509
  {
510
510
  name: SDKUI_Localizator.Refresh,
511
511
  icon: _jsx("span", { className: "dx-icon-refresh" }),
512
512
  onClick: () => getAllTasks(),
513
513
  disabled: false,
514
- operationType: 'singleRow'
514
+ operationType: 'multiRow'
515
515
  },
516
516
  ];
517
517
  // Apply filters
@@ -1,4 +1,4 @@
1
- declare const SettingsAppearance: ({ landingPagesOptions, permissions }: {
1
+ declare const SettingsAppearance: ({ landingPagesOptions, permissions, showConfirmPopup }: {
2
2
  landingPagesOptions?: {
3
3
  display: string;
4
4
  value: string;
@@ -10,5 +10,6 @@ declare const SettingsAppearance: ({ landingPagesOptions, permissions }: {
10
10
  dossiersLicense: boolean;
11
11
  workFlowLicense: boolean;
12
12
  };
13
+ showConfirmPopup: (title: string, onConfirm: () => void) => void;
13
14
  }) => import("react/jsx-runtime").JSX.Element;
14
15
  export default SettingsAppearance;
@@ -23,8 +23,15 @@ const fontFamilies = [
23
23
  { value: "Inter", display: "Inter" },
24
24
  { value: "Roboto", display: "Roboto" }
25
25
  ];
26
- const SettingsAppearance = ({ landingPagesOptions, permissions = { canArchive: true, canSearch: true, dossiersLicense: true, wgGroupLicense: true, workFlowLicense: true } }) => {
26
+ const SettingsAppearance = ({ landingPagesOptions, permissions = { canArchive: true, canSearch: true, dossiersLicense: true, wgGroupLicense: true, workFlowLicense: true }, showConfirmPopup }) => {
27
27
  const { showSavedBadge, lastChanged, triggerUIUpdate, closeBadge } = useSettingsFeedback();
28
+ const handleRestoreClick = () => {
29
+ showConfirmPopup(SDKUI_Localizator.ConfirmRestoreDefaultSettings, () => {
30
+ SDKUI_Globals.userSettings.themeSettings = new ThemeSettings();
31
+ SDKUI_Globals.userSettings.landingPage = LandingPages.DASHBOARD;
32
+ triggerUIUpdate(SDKUI_Localizator.Restore, 'Impostazioni predefinite', true);
33
+ });
34
+ };
28
35
  const filteredLandingPageOptopns = useMemo(() => {
29
36
  let options = landingPagesOptions ?? [];
30
37
  if (!permissions?.canArchive) {
@@ -44,17 +51,17 @@ const SettingsAppearance = ({ landingPagesOptions, permissions = { canArchive: t
44
51
  }
45
52
  return options;
46
53
  }, [permissions?.canArchive, permissions?.canSearch, permissions?.wgGroupLicense, permissions?.dossiersLicense, permissions?.workFlowLicense, landingPagesOptions]);
47
- return (_jsxs("div", { style: { width: "100%", height: "100%", display: "flex", flexDirection: "column", position: "relative" }, children: [_jsxs("div", { style: { flex: 1, overflowY: "auto", padding: "4px" }, children: [_jsxs("div", { style: {
54
+ return (_jsxs("div", { style: { width: "100%", height: "100%", display: "flex", flexDirection: "column", position: "relative" }, children: [_jsxs("div", { style: { flex: 1, overflowY: "auto" }, children: [_jsxs("div", { style: {
48
55
  backgroundColor: "rgba(var(--primary-rgb, 33, 150, 243), 0.04)",
49
56
  borderLeft: "3px solid var(--primary-color, #2196f3)",
50
57
  borderRadius: "4px",
51
58
  padding: "10px 12px",
52
- marginBottom: "6px"
59
+ marginBottom: "4px"
53
60
  }, children: [_jsxs("div", { style: {
54
61
  display: "flex",
55
62
  alignItems: "center",
56
63
  gap: "6px",
57
- marginBottom: "8px"
64
+ marginBottom: "4px"
58
65
  }, children: [_jsx("i", { className: "dx-icon-font", style: { fontSize: "1.1rem", color: "var(--primary-color, #2196f3)" } }), _jsx("p", { style: { fontSize: '1.05rem', fontWeight: '600', margin: 0, color: "var(--text-primary, #333)" }, children: "Font" })] }), _jsxs("div", { style: { display: "flex", flexDirection: "column", gap: "2px" }, children: [_jsx(TMDropDown, { label: SDKUI_Localizator.Name, dataSource: fontFamilies, width: '100%', value: SDKUI_Globals.userSettings.themeSettings.fontFamily, onValueChanged: (e) => {
59
66
  let newFamily = e.target.value;
60
67
  SDKUI_Globals.userSettings.themeSettings.fontFamily = newFamily;
@@ -68,12 +75,12 @@ const SettingsAppearance = ({ landingPagesOptions, permissions = { canArchive: t
68
75
  borderLeft: "3px solid var(--success-color, #4caf50)",
69
76
  borderRadius: "4px",
70
77
  padding: "10px 12px",
71
- marginBottom: "6px"
78
+ marginBottom: "4px"
72
79
  }, children: [_jsxs("div", { style: {
73
80
  display: "flex",
74
81
  alignItems: "center",
75
82
  gap: "6px",
76
- marginBottom: "8px"
83
+ marginBottom: "4px"
77
84
  }, children: [_jsx("i", { className: "dx-icon-tableproperties", style: { fontSize: "1.1rem", color: "var(--success-color, #4caf50)" } }), _jsx("p", { style: { fontSize: '1.05rem', fontWeight: '600', margin: 0, color: "var(--text-primary, #333)" }, children: SDKUI_Localizator.Grids })] }), _jsxs("div", { style: { display: "flex", flexDirection: "column", gap: "5px" }, children: [_jsx(TMCheckBox, { label: SDKUI_Localizator.ShowRowSeparatingLines, value: SDKUI_Globals.userSettings.themeSettings.gridSettings.showRowLines, onValueChanged: (newValue) => {
78
85
  SDKUI_Globals.userSettings.themeSettings.gridSettings.showRowLines = newValue;
79
86
  triggerUIUpdate(SDKUI_Localizator.ShowRowSeparatingLines, newValue ? 'Attivo' : 'Non attivo');
@@ -92,16 +99,12 @@ const SettingsAppearance = ({ landingPagesOptions, permissions = { canArchive: t
92
99
  display: "flex",
93
100
  alignItems: "center",
94
101
  gap: "6px",
95
- marginBottom: "8px"
102
+ marginBottom: "4px"
96
103
  }, children: [_jsx("i", { className: "dx-icon-home", style: { fontSize: "1.1rem", color: "var(--warning-color, #ff9800)" } }), _jsx("p", { style: { fontSize: '1.05rem', fontWeight: '600', margin: 0, color: "var(--text-primary, #333)" }, children: SDKUI_Localizator.LandingPage })] }), _jsx(TMDropDown, { dataSource: filteredLandingPageOptopns, value: SDKUI_Globals.userSettings.landingPage, width: '100%', onValueChanged: (e) => {
97
104
  const selectedOption = filteredLandingPageOptopns.find(opt => opt.value === e.target.value);
98
105
  SDKUI_Globals.userSettings.landingPage = e.target.value;
99
106
  triggerUIUpdate(SDKUI_Localizator.LandingPage, selectedOption?.display || e.target.value);
100
- } })] }))] }), _jsxs("div", { style: { borderTop: "1px solid #e0e0e0", flexShrink: 0, paddingTop: "5px", display: "flex", flexDirection: "column", alignItems: "flex-end" }, children: [_jsx(TMButton, { elementStyle: { marginTop: '0px' }, caption: SDKUI_Localizator.Restore, showTooltip: false, onClick: () => {
101
- SDKUI_Globals.userSettings.themeSettings = new ThemeSettings();
102
- SDKUI_Globals.userSettings.landingPage = LandingPages.DASHBOARD;
103
- triggerUIUpdate(SDKUI_Localizator.Restore, 'Impostazioni predefinite', true);
104
- } }), showSavedBadge && (_jsxs("div", { style: {
107
+ } })] }))] }), _jsxs("div", { style: { borderTop: "1px solid #e0e0e0", flexShrink: 0, paddingTop: "5px", display: "flex", flexDirection: "column", alignItems: "flex-end" }, children: [_jsx(TMButton, { elementStyle: { marginTop: '0px' }, caption: SDKUI_Localizator.Restore, showTooltip: false, onClick: handleRestoreClick }), showSavedBadge && (_jsxs("div", { style: {
105
108
  marginTop: "5px",
106
109
  backgroundColor: "#4caf50",
107
110
  color: "white",
@@ -118,6 +118,7 @@ export declare class SDKUI_Localizator {
118
118
  static get ConfirmDownload(): string;
119
119
  static get ConfirmPassword(): "Bestätige das Passwort" | "Confirm password" | "Confirmar Contraseña" | "Confirmez le mot de passe" | "Confirme sua senha" | "Conferma password";
120
120
  static get ConfirmOnCancel(): "Wenn wir fortfahren, gehen die vorgenommenen Änderungen verloren. Fortfahren?" | "All modifications will be lost. Continue?" | "Si sigue adelante, se perderán las modificaciones aportadas. ¿Seguir?" | "Continuant, les changements seront perdus. Continuer?" | "Continuando as alterações feitas serão perdidas. Continuar?" | "Proseguendo le modifiche apportate andranno perse. Proseguire?";
121
+ static get ConfirmRestoreDefaultSettings(): "Bestätigen Sie das Zurücksetzen der Standardeinstellungen?" | "Do you confirm you want to restore default settings?" | "¿Confirmas que quieres restaurar la configuración predeterminada?" | "Confirmez-vous vouloir restaurer les paramètres par défaut ?" | "Confirma que deseja restaurar as configurações padrão?" | "Confermi di voler ripristinare le impostazioni predefinite?";
121
122
  static get ConfirmSelectedDocumentsMessage(): string;
122
123
  static get ContextualTask(): "Kontextbezogene Aufgabe" | "Contextual Task" | "Tarea contextual" | "Tâche contextuelle" | "Tarefa contextual" | "Attività contestuale";
123
124
  static get Continue(): string;
@@ -1160,6 +1160,16 @@ export class SDKUI_Localizator {
1160
1160
  default: return "Proseguendo le modifiche apportate andranno perse. Proseguire?";
1161
1161
  }
1162
1162
  }
1163
+ static get ConfirmRestoreDefaultSettings() {
1164
+ switch (this._cultureID) {
1165
+ case CultureIDs.De_DE: return "Bestätigen Sie das Zurücksetzen der Standardeinstellungen?";
1166
+ case CultureIDs.En_US: return "Do you confirm you want to restore default settings?";
1167
+ case CultureIDs.Es_ES: return "¿Confirmas que quieres restaurar la configuración predeterminada?";
1168
+ case CultureIDs.Fr_FR: return "Confirmez-vous vouloir restaurer les paramètres par défaut ?";
1169
+ case CultureIDs.Pt_PT: return "Confirma que deseja restaurar as configurações padrão?";
1170
+ default: return "Confermi di voler ripristinare le impostazioni predefinite?";
1171
+ }
1172
+ }
1163
1173
  static get ConfirmSelectedDocumentsMessage() {
1164
1174
  switch (this._cultureID) {
1165
1175
  case CultureIDs.De_DE:
package/lib/index.js CHANGED
@@ -12,5 +12,5 @@ export * from './hooks/useRelatedDocuments';
12
12
  export * from './hooks/useSettingsFeedback';
13
13
  export * from './services';
14
14
  import config from 'devextreme/core/config';
15
- // DevExtreme License Key (valid for v25.1 and earlier versions)
16
- config({ licenseKey: 'ewogICJmb3JtYXQiOiAxLAogICJjdXN0b21lcklkIjogIjE1ODg1NDc4LTNjNTItNGUzYy1hNDI1LTU5NjAzMzQ0ZDVjMyIsCiAgIm1heFZlcnNpb25BbGxvd2VkIjogMjUxCn0=.sy0jZ9UWNR//KApWWp2wwKhxX90FmWl/0EHN4i7AnYQReSCtBSB2MlTTMYzYWv4kmD4lKynH4XC85dWwgGLU7RQmchZ916g5iBogVs6CpLeZErO1QJj7OGhLOM2BLfaODN5v9w==' });
15
+ // DevExtreme License Key (valid for v25.2 and earlier versions)
16
+ config({ licenseKey: 'ewogICJmb3JtYXQiOiAxLAogICJjdXN0b21lcklkIjogIjE1ODg1NDc4LTNjNTItNGUzYy1hNDI1LTU5NjAzMzQ0ZDVjMyIsCiAgIm1heFZlcnNpb25BbGxvd2VkIjogMjUyCn0=.ClI5PeQ2vnl48q0hwdwPHM6oDArs6XTeZ9u4JfN6kxaHoKgszVywO996SluAQfPdFhtzWz6OZsyDdenKv28UU2dOF5wppP88hGEJ17PAg+N/OpUkL1L/CMFNXlOIsYd2517GWA==' });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@topconsultnpm/sdkui-react",
3
- "version": "6.20.0-dev1.73",
3
+ "version": "6.20.0-dev1.75",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",
@@ -42,8 +42,8 @@
42
42
  "dependencies": {
43
43
  "@topconsultnpm/sdk-ts": "6.20.0-dev1.5",
44
44
  "buffer": "^6.0.3",
45
- "devextreme": "25.1.7",
46
- "devextreme-react": "25.1.7",
45
+ "devextreme": "25.2.4",
46
+ "devextreme-react": "25.2.4",
47
47
  "exceljs": "^4.4.0",
48
48
  "htmlparser2": "^10.0.0",
49
49
  "pdfjs-dist": "5.4.296",