@fluxo-dev/shell 25.1.7 → 25.1.9

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.
Files changed (2) hide show
  1. package/index.esm.js +127 -16
  2. package/package.json +12 -12
package/index.esm.js CHANGED
@@ -10503,6 +10503,41 @@ var IconLockAccess = createReactComponent("lock-access", "IconLockAccess", [
10503
10503
  */
10504
10504
 
10505
10505
 
10506
+ var IconLockCheck = createReactComponent("lock-check", "IconLockCheck", [
10507
+ [
10508
+ "path",
10509
+ {
10510
+ d: "M11.5 21h-4.5a2 2 0 0 1 -2 -2v-6a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v.5",
10511
+ key: "svg-0"
10512
+ }
10513
+ ],
10514
+ ["path", { d: "M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0", key: "svg-1" }],
10515
+ ["path", { d: "M8 11v-4a4 4 0 1 1 8 0v4", key: "svg-2" }],
10516
+ ["path", { d: "M15 19l2 2l4 -4", key: "svg-3" }]
10517
+ ]);
10518
+
10519
+ /**
10520
+ * @tabler/icons-react v2.47.0 - MIT
10521
+ */
10522
+
10523
+
10524
+ var IconLockOpen = createReactComponent("lock-open", "IconLockOpen", [
10525
+ [
10526
+ "path",
10527
+ {
10528
+ d: "M5 11m0 2a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2z",
10529
+ key: "svg-0"
10530
+ }
10531
+ ],
10532
+ ["path", { d: "M12 16m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0", key: "svg-1" }],
10533
+ ["path", { d: "M8 11v-5a4 4 0 0 1 8 0", key: "svg-2" }]
10534
+ ]);
10535
+
10536
+ /**
10537
+ * @tabler/icons-react v2.47.0 - MIT
10538
+ */
10539
+
10540
+
10506
10541
  var IconLock = createReactComponent("lock", "IconLock", [
10507
10542
  [
10508
10543
  "path",
@@ -10634,6 +10669,22 @@ var IconSearch = createReactComponent("search", "IconSearch", [
10634
10669
  */
10635
10670
 
10636
10671
 
10672
+ var IconSend = createReactComponent("send", "IconSend", [
10673
+ ["path", { d: "M10 14l11 -11", key: "svg-0" }],
10674
+ [
10675
+ "path",
10676
+ {
10677
+ d: "M21 3l-6.5 18a.55 .55 0 0 1 -1 0l-3.5 -7l-7 -3.5a.55 .55 0 0 1 0 -1l18 -6.5",
10678
+ key: "svg-1"
10679
+ }
10680
+ ]
10681
+ ]);
10682
+
10683
+ /**
10684
+ * @tabler/icons-react v2.47.0 - MIT
10685
+ */
10686
+
10687
+
10637
10688
  var IconServer = createReactComponent("server", "IconServer", [
10638
10689
  [
10639
10690
  "path",
@@ -38101,7 +38152,7 @@ function UserForm(props) {
38101
38152
  fw: 500,
38102
38153
  size: "sm",
38103
38154
  c: "dimmed",
38104
- children: "Tipo di accesso"
38155
+ children: "Tipo account"
38105
38156
  }), jsx(SegmentedControl, {
38106
38157
  fullWidth: true,
38107
38158
  value: newUserAccessType.toString(),
@@ -38529,6 +38580,14 @@ const NOTIFICATIONS = {
38529
38580
  delete: {
38530
38581
  title: "Cancellazione completata",
38531
38582
  message: "L'utente è stato cancellato con successo"
38583
+ },
38584
+ forceActivate: {
38585
+ title: "Attivazione forzata con successo",
38586
+ message: "L'utente è stato attivato con successo"
38587
+ },
38588
+ resendActivationToken: {
38589
+ title: "Token di attivazione inviato",
38590
+ message: "Il token di attivazione è stato inviato all'utente con successo"
38532
38591
  }
38533
38592
  },
38534
38593
  error: {
@@ -38587,6 +38646,12 @@ function UsersGrid() {
38587
38646
  case "delete":
38588
38647
  response = yield FluxoClientSys.Instance.security.user.deleteUser(userId);
38589
38648
  break;
38649
+ case "forceActivate":
38650
+ response = yield FluxoClientSys.Instance.security.user.forceActivateUser(userId);
38651
+ break;
38652
+ case "resendActivationToken":
38653
+ response = yield FluxoClientSys.Instance.security.user.resendActivationToken(userId);
38654
+ break;
38590
38655
  }
38591
38656
  if (response.success) {
38592
38657
  showNotification({
@@ -38628,7 +38693,10 @@ function UsersGrid() {
38628
38693
  highlightOnHover: true,
38629
38694
  children: [jsx(Table.Thead, {
38630
38695
  children: jsxs(Table.Tr, {
38631
- children: [jsx(Table.Th, {}), jsx(Table.Th, {
38696
+ children: [jsx(Table.Th, {
38697
+ w: 80,
38698
+ children: "Stato"
38699
+ }), jsx(Table.Th, {
38632
38700
  children: "Username"
38633
38701
  }), jsx(Table.Th, {
38634
38702
  children: "Email"
@@ -38645,18 +38713,45 @@ function UsersGrid() {
38645
38713
  }), jsx(Table.Tbody, {
38646
38714
  children: users.map((element, i) => jsxs(Table.Tr, {
38647
38715
  children: [jsx(Table.Td, {
38648
- children: element.isLockedOut ? jsx(IconCircleFilled, {
38649
- style: {
38650
- color: "red",
38651
- marginTop: 5
38652
- },
38653
- size: 18
38654
- }) : jsx(IconCircleFilled, {
38655
- style: {
38656
- color: "green",
38657
- marginTop: 5
38658
- },
38659
- size: 18
38716
+ w: 80,
38717
+ children: jsxs(Group, {
38718
+ children: [element.isLockedOut ? jsx(Tooltip, {
38719
+ label: 'Accesso non permesso',
38720
+ children: jsx(IconLock, {
38721
+ style: {
38722
+ color: "red",
38723
+ marginTop: 5
38724
+ },
38725
+ size: 18
38726
+ })
38727
+ }) : jsx(Tooltip, {
38728
+ label: 'Accesso permesso',
38729
+ children: jsx(IconLockOpen, {
38730
+ style: {
38731
+ color: "green",
38732
+ marginTop: 5
38733
+ },
38734
+ size: 18
38735
+ })
38736
+ }), element.emailConfirmed ? jsx(Tooltip, {
38737
+ label: 'Account confermato',
38738
+ children: jsx(IconChecks, {
38739
+ style: {
38740
+ color: "green",
38741
+ marginTop: 5
38742
+ },
38743
+ size: 18
38744
+ })
38745
+ }) : jsx(Tooltip, {
38746
+ label: 'Account non ancora confermato',
38747
+ children: jsx(IconChecks, {
38748
+ style: {
38749
+ color: "red",
38750
+ marginTop: 5
38751
+ },
38752
+ size: 18
38753
+ })
38754
+ })]
38660
38755
  })
38661
38756
  }), jsxs(Table.Td, {
38662
38757
  children: [element.userName, " ", element.id === FluxoClientSys.Instance.security.currentUser.getUserInfo().id ? jsx("b", {
@@ -38746,7 +38841,23 @@ function UsersGrid() {
38746
38841
  size: 14
38747
38842
  }),
38748
38843
  children: element.isLockedOut ? "Sblocca accesso" : "Blocca accesso"
38749
- }), jsx(Menu$1.Item, {
38844
+ }), !element.emailConfirmed && jsx(Menu$1.Divider, {}), !element.emailConfirmed && jsx(Menu$1.Item, {
38845
+ onClick: () => {
38846
+ handleUserAction('forceActivate', element.id);
38847
+ },
38848
+ leftSection: jsx(IconLockCheck, {
38849
+ size: 14
38850
+ }),
38851
+ children: "Forza attivazione"
38852
+ }), !element.emailConfirmed && jsx(Menu$1.Item, {
38853
+ onClick: () => {
38854
+ handleUserAction('resendActivationToken', element.id);
38855
+ },
38856
+ leftSection: jsx(IconSend, {
38857
+ size: 14
38858
+ }),
38859
+ children: "Invia link attivazione"
38860
+ }), jsx(Menu$1.Divider, {}), jsx(Menu$1.Item, {
38750
38861
  disabled: element.userName === "admin" || element.id === FluxoClientSys.Instance.security.currentUser.getUserInfo().id,
38751
38862
  color: "red",
38752
38863
  onClick: () => handleUserAction("delete", element.id),
@@ -51399,7 +51510,7 @@ function EmailTemplate() {
51399
51510
  mb: 16
51400
51511
  }), jsx(Datagrid, {
51401
51512
  uiProps: {
51402
- borderless: true
51513
+ tableBorder: false
51403
51514
  },
51404
51515
  data: (_a = emailTemplates === null || emailTemplates === void 0 ? void 0 : emailTemplates.results.filter(a => a.type === +item)) !== null && _a !== void 0 ? _a : [],
51405
51516
  waitingForData: loading,
package/package.json CHANGED
@@ -1,23 +1,23 @@
1
1
  {
2
2
  "name": "@fluxo-dev/shell",
3
- "version": "25.1.7",
3
+ "version": "25.1.9",
4
4
  "peerDependencies": {
5
5
  "react": "^18.3.1",
6
6
  "@mantine/core": "^7.12.2",
7
7
  "react-router-dom": "^6.11.2",
8
8
  "react-redux": "^8.0.5",
9
9
  "@reduxjs/toolkit": "^1.9.1",
10
- "@fluxo-dev/api-client-base": "^25.1.7",
11
- "@fluxo-dev/shell-bi": "^25.1.7",
12
- "@fluxo-dev/shell-hub": "^25.1.7",
13
- "@fluxo-dev/shell-korebi": "^25.1.7",
14
- "@fluxo-dev/shell-mfe": "^25.1.7",
15
- "@fluxo-dev/shell-printing": "^25.1.7",
16
- "@fluxo-dev/shell-reporting": "^25.1.7",
17
- "@fluxo-dev/shell-workflow": "^25.1.7",
18
- "@fluxo-dev/shell-ravify": "^25.1.7",
19
- "@fluxo-dev/state": "^25.1.7",
20
- "@fluxo-dev/ui-components": "^25.1.7",
10
+ "@fluxo-dev/api-client-base": "^25.1.9",
11
+ "@fluxo-dev/shell-bi": "^25.1.9",
12
+ "@fluxo-dev/shell-hub": "^25.1.9",
13
+ "@fluxo-dev/shell-korebi": "^25.1.9",
14
+ "@fluxo-dev/shell-mfe": "^25.1.9",
15
+ "@fluxo-dev/shell-printing": "^25.1.9",
16
+ "@fluxo-dev/shell-reporting": "^25.1.9",
17
+ "@fluxo-dev/shell-workflow": "^25.1.9",
18
+ "@fluxo-dev/shell-ravify": "^25.1.9",
19
+ "@fluxo-dev/state": "^25.1.9",
20
+ "@fluxo-dev/ui-components": "^25.1.9",
21
21
  "@scalar/api-reference-react": "^0.3.142",
22
22
  "@devexpress/analytics-core": "23.1.3",
23
23
  "devexpress-dashboard": "23.1.3",