@acorex/platform 20.9.9 → 20.9.11
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.
- package/fesm2022/acorex-platform-common.mjs +18 -0
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-core.mjs +40 -9
- package/fesm2022/acorex-platform-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +72 -47
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-views.mjs +34 -29
- package/fesm2022/acorex-platform-layout-views.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-widget-core.mjs +19 -1
- package/fesm2022/acorex-platform-layout-widget-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-widgets.mjs +145 -22
- package/fesm2022/acorex-platform-layout-widgets.mjs.map +1 -1
- package/package.json +1 -1
- package/types/acorex-platform-common.d.ts +6 -0
- package/types/acorex-platform-core.d.ts +34 -7
- package/types/acorex-platform-layout-entity.d.ts +4 -2
- package/types/acorex-platform-layout-widget-core.d.ts +5 -0
- package/types/acorex-platform-layout-widgets.d.ts +34 -0
|
@@ -1626,38 +1626,43 @@ const AXPLayoutDetailsViewViewModel = signalStore(withState(() => {
|
|
|
1626
1626
|
}
|
|
1627
1627
|
return true;
|
|
1628
1628
|
}
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
? rawText
|
|
1633
|
-
?
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1629
|
+
if (enableOperationToasts) {
|
|
1630
|
+
const rawText = result?.message?.text;
|
|
1631
|
+
const errorText = rawText
|
|
1632
|
+
? typeof rawText === 'string'
|
|
1633
|
+
? rawText.startsWith('@')
|
|
1634
|
+
? await translateService.translateAsync(rawText)
|
|
1635
|
+
: rawText
|
|
1636
|
+
: translateService.resolve(rawText)
|
|
1637
|
+
: await translateService.translateAsync('@general:messages.generic.error.description');
|
|
1638
|
+
toastService.show({
|
|
1639
|
+
color: 'danger',
|
|
1640
|
+
title: await translateService.translateAsync('@general:messages.generic.error.title'),
|
|
1641
|
+
content: errorText,
|
|
1642
|
+
location: 'bottom-center',
|
|
1643
|
+
closeButton: true,
|
|
1644
|
+
timeOut: 5000,
|
|
1645
|
+
timeOutProgress: true,
|
|
1646
|
+
});
|
|
1647
|
+
}
|
|
1646
1648
|
return false;
|
|
1647
1649
|
}
|
|
1648
1650
|
catch (error) {
|
|
1649
|
-
const
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1651
|
+
const enableOperationToasts = await settingsService.get(AXPCommonSettings.EnableOperationToasts);
|
|
1652
|
+
if (enableOperationToasts) {
|
|
1653
|
+
const errorText = error instanceof Error
|
|
1654
|
+
? error.message
|
|
1655
|
+
: await translateService.translateAsync('@general:messages.generic.error.description');
|
|
1656
|
+
toastService.show({
|
|
1657
|
+
color: 'danger',
|
|
1658
|
+
title: await translateService.translateAsync('@general:messages.generic.error.title'),
|
|
1659
|
+
content: errorText,
|
|
1660
|
+
location: 'bottom-center',
|
|
1661
|
+
closeButton: true,
|
|
1662
|
+
timeOut: 5000,
|
|
1663
|
+
timeOutProgress: true,
|
|
1664
|
+
});
|
|
1665
|
+
}
|
|
1661
1666
|
return false;
|
|
1662
1667
|
}
|
|
1663
1668
|
finally {
|