@vention/machine-apps-components 1.31.4 → 1.31.5
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/index.esm.js +92 -71
- package/package.json +1 -1
- package/src/i18n/locales/de.d.ts +2 -0
- package/src/i18n/locales/en.d.ts +2 -0
- package/src/i18n/locales/es.d.ts +2 -0
- package/src/i18n/locales/fr.d.ts +2 -0
package/index.esm.js
CHANGED
|
@@ -1741,7 +1741,7 @@ var enTranslations = {
|
|
|
1741
1741
|
logs: {
|
|
1742
1742
|
table: {
|
|
1743
1743
|
date: "Date",
|
|
1744
|
-
type: "
|
|
1744
|
+
type: "Severity",
|
|
1745
1745
|
code: "Code",
|
|
1746
1746
|
message: "Message",
|
|
1747
1747
|
description: "Description"
|
|
@@ -1763,7 +1763,7 @@ var enTranslations = {
|
|
|
1763
1763
|
filter: {
|
|
1764
1764
|
from: "From",
|
|
1765
1765
|
to: "To",
|
|
1766
|
-
type: "
|
|
1766
|
+
type: "Severity",
|
|
1767
1767
|
sort: "Sort",
|
|
1768
1768
|
reset: "Reset",
|
|
1769
1769
|
typeOptions: {
|
|
@@ -1776,7 +1776,7 @@ var enTranslations = {
|
|
|
1776
1776
|
latest: "From latest",
|
|
1777
1777
|
oldest: "From oldest"
|
|
1778
1778
|
},
|
|
1779
|
-
chooseType: "Choose
|
|
1779
|
+
chooseType: "Choose severity level"
|
|
1780
1780
|
}
|
|
1781
1781
|
},
|
|
1782
1782
|
navigation: {
|
|
@@ -1810,7 +1810,9 @@ var enTranslations = {
|
|
|
1810
1810
|
},
|
|
1811
1811
|
pagination: {
|
|
1812
1812
|
page: "Page",
|
|
1813
|
-
of: "of"
|
|
1813
|
+
of: "of",
|
|
1814
|
+
previous: "Previous page",
|
|
1815
|
+
next: "Next page"
|
|
1814
1816
|
},
|
|
1815
1817
|
fileUploadPanel: {
|
|
1816
1818
|
defaultTitle: "Upload Files",
|
|
@@ -1920,7 +1922,7 @@ var frTranslations = {
|
|
|
1920
1922
|
logs: {
|
|
1921
1923
|
table: {
|
|
1922
1924
|
date: "Date",
|
|
1923
|
-
type: "
|
|
1925
|
+
type: "Gravité",
|
|
1924
1926
|
code: "Code",
|
|
1925
1927
|
message: "Message",
|
|
1926
1928
|
description: "Description"
|
|
@@ -1942,7 +1944,7 @@ var frTranslations = {
|
|
|
1942
1944
|
filter: {
|
|
1943
1945
|
from: "De",
|
|
1944
1946
|
to: "À",
|
|
1945
|
-
type: "
|
|
1947
|
+
type: "Gravité",
|
|
1946
1948
|
sort: "Trier",
|
|
1947
1949
|
reset: "Réinitialiser",
|
|
1948
1950
|
typeOptions: {
|
|
@@ -1955,7 +1957,7 @@ var frTranslations = {
|
|
|
1955
1957
|
latest: "Du plus récent",
|
|
1956
1958
|
oldest: "Du plus ancien"
|
|
1957
1959
|
},
|
|
1958
|
-
chooseType: "Choisir le
|
|
1960
|
+
chooseType: "Choisir le niveau de gravité"
|
|
1959
1961
|
}
|
|
1960
1962
|
},
|
|
1961
1963
|
navigation: {
|
|
@@ -1989,7 +1991,9 @@ var frTranslations = {
|
|
|
1989
1991
|
},
|
|
1990
1992
|
pagination: {
|
|
1991
1993
|
page: "Page",
|
|
1992
|
-
of: "sur"
|
|
1994
|
+
of: "sur",
|
|
1995
|
+
previous: "Page précédente",
|
|
1996
|
+
next: "Page suivante"
|
|
1993
1997
|
},
|
|
1994
1998
|
fileUploadPanel: {
|
|
1995
1999
|
defaultTitle: "Téléverser des fichiers",
|
|
@@ -2099,7 +2103,7 @@ var deTranslations = {
|
|
|
2099
2103
|
logs: {
|
|
2100
2104
|
table: {
|
|
2101
2105
|
date: "Datum",
|
|
2102
|
-
type: "
|
|
2106
|
+
type: "Schweregrad",
|
|
2103
2107
|
code: "Code",
|
|
2104
2108
|
message: "Nachricht",
|
|
2105
2109
|
description: "Beschreibung"
|
|
@@ -2121,7 +2125,7 @@ var deTranslations = {
|
|
|
2121
2125
|
filter: {
|
|
2122
2126
|
from: "Von",
|
|
2123
2127
|
to: "Bis",
|
|
2124
|
-
type: "
|
|
2128
|
+
type: "Schweregrad",
|
|
2125
2129
|
sort: "Sortieren",
|
|
2126
2130
|
reset: "Zurücksetzen",
|
|
2127
2131
|
typeOptions: {
|
|
@@ -2134,7 +2138,7 @@ var deTranslations = {
|
|
|
2134
2138
|
latest: "Neueste zuerst",
|
|
2135
2139
|
oldest: "Älteste zuerst"
|
|
2136
2140
|
},
|
|
2137
|
-
chooseType: "
|
|
2141
|
+
chooseType: "Schweregrad auswählen"
|
|
2138
2142
|
}
|
|
2139
2143
|
},
|
|
2140
2144
|
navigation: {
|
|
@@ -2168,7 +2172,9 @@ var deTranslations = {
|
|
|
2168
2172
|
},
|
|
2169
2173
|
pagination: {
|
|
2170
2174
|
page: "Seite",
|
|
2171
|
-
of: "von"
|
|
2175
|
+
of: "von",
|
|
2176
|
+
previous: "Vorherige Seite",
|
|
2177
|
+
next: "Nächste Seite"
|
|
2172
2178
|
},
|
|
2173
2179
|
fileUploadPanel: {
|
|
2174
2180
|
defaultTitle: "Dateien hochladen",
|
|
@@ -2278,7 +2284,7 @@ var esTranslations = {
|
|
|
2278
2284
|
logs: {
|
|
2279
2285
|
table: {
|
|
2280
2286
|
date: "Fecha",
|
|
2281
|
-
type: "
|
|
2287
|
+
type: "Gravedad",
|
|
2282
2288
|
code: "Código",
|
|
2283
2289
|
message: "Mensaje",
|
|
2284
2290
|
description: "Descripción"
|
|
@@ -2300,7 +2306,7 @@ var esTranslations = {
|
|
|
2300
2306
|
filter: {
|
|
2301
2307
|
from: "Desde",
|
|
2302
2308
|
to: "Hasta",
|
|
2303
|
-
type: "
|
|
2309
|
+
type: "Gravedad",
|
|
2304
2310
|
sort: "Ordenar",
|
|
2305
2311
|
reset: "Restablecer",
|
|
2306
2312
|
typeOptions: {
|
|
@@ -2313,7 +2319,7 @@ var esTranslations = {
|
|
|
2313
2319
|
latest: "Más recientes",
|
|
2314
2320
|
oldest: "Más antiguos"
|
|
2315
2321
|
},
|
|
2316
|
-
chooseType: "Elegir
|
|
2322
|
+
chooseType: "Elegir nivel de gravedad"
|
|
2317
2323
|
}
|
|
2318
2324
|
},
|
|
2319
2325
|
navigation: {
|
|
@@ -2347,7 +2353,9 @@ var esTranslations = {
|
|
|
2347
2353
|
},
|
|
2348
2354
|
pagination: {
|
|
2349
2355
|
page: "Página",
|
|
2350
|
-
of: "de"
|
|
2356
|
+
of: "de",
|
|
2357
|
+
previous: "Página anterior",
|
|
2358
|
+
next: "Página siguiente"
|
|
2351
2359
|
},
|
|
2352
2360
|
fileUploadPanel: {
|
|
2353
2361
|
defaultTitle: "Subir archivos",
|
|
@@ -7257,18 +7265,6 @@ const LogsTable = /*#__PURE__*/memo(({
|
|
|
7257
7265
|
})
|
|
7258
7266
|
});
|
|
7259
7267
|
}
|
|
7260
|
-
const getTypeClassName = level => {
|
|
7261
|
-
switch (level) {
|
|
7262
|
-
case "error":
|
|
7263
|
-
return classes.errorType;
|
|
7264
|
-
case "warning":
|
|
7265
|
-
return classes.warningType;
|
|
7266
|
-
case "info":
|
|
7267
|
-
return classes.infoType;
|
|
7268
|
-
default:
|
|
7269
|
-
return "";
|
|
7270
|
-
}
|
|
7271
|
-
};
|
|
7272
7268
|
const renderTypeIcon = level => {
|
|
7273
7269
|
if (level === "error") {
|
|
7274
7270
|
return jsx(VentionIcon, {
|
|
@@ -7343,7 +7339,7 @@ const LogsTable = /*#__PURE__*/memo(({
|
|
|
7343
7339
|
variant: "heading24Medium",
|
|
7344
7340
|
className: classes.tableText,
|
|
7345
7341
|
children: t("logs.table.type", {
|
|
7346
|
-
defaultValue: "
|
|
7342
|
+
defaultValue: "Severity"
|
|
7347
7343
|
})
|
|
7348
7344
|
})
|
|
7349
7345
|
}), jsx(TableCell, {
|
|
@@ -7394,7 +7390,7 @@ const LogsTable = /*#__PURE__*/memo(({
|
|
|
7394
7390
|
children: formatLogDate(log.date)
|
|
7395
7391
|
})
|
|
7396
7392
|
}), jsx(TableCell, {
|
|
7397
|
-
className: cx(classes.typeCell, classes.truncateCell
|
|
7393
|
+
className: cx(classes.typeCell, classes.truncateCell),
|
|
7398
7394
|
children: jsx(Typography, {
|
|
7399
7395
|
variant: "heading24Medium",
|
|
7400
7396
|
className: cx(classes.tableText, classes.truncateText),
|
|
@@ -7546,15 +7542,6 @@ const useStyles$c = tss.withParams().create(({
|
|
|
7546
7542
|
textTransform: "capitalize",
|
|
7547
7543
|
fontWeight: 500
|
|
7548
7544
|
},
|
|
7549
|
-
errorType: {
|
|
7550
|
-
color: theme.palette.error.main
|
|
7551
|
-
},
|
|
7552
|
-
warningType: {
|
|
7553
|
-
color: theme.palette.warning.main
|
|
7554
|
-
},
|
|
7555
|
-
infoType: {
|
|
7556
|
-
color: theme.palette.info.main
|
|
7557
|
-
},
|
|
7558
7545
|
loadMoreTrigger: {
|
|
7559
7546
|
display: "flex",
|
|
7560
7547
|
flexDirection: "column",
|
|
@@ -7675,25 +7662,21 @@ const LogFilterForm = /*#__PURE__*/memo(({
|
|
|
7675
7662
|
className: classes.filterSection,
|
|
7676
7663
|
children: [jsx(Box, {
|
|
7677
7664
|
className: classes.filterInput,
|
|
7678
|
-
children: jsx(
|
|
7679
|
-
size: "xx-large",
|
|
7665
|
+
children: jsx(DateInput, {
|
|
7680
7666
|
label: t("logs.filter.from", {
|
|
7681
7667
|
defaultValue: "From"
|
|
7682
7668
|
}),
|
|
7683
7669
|
value: fromDate,
|
|
7684
|
-
onChange:
|
|
7685
|
-
type: "date"
|
|
7670
|
+
onChange: setFromDate
|
|
7686
7671
|
})
|
|
7687
7672
|
}), jsx(Box, {
|
|
7688
7673
|
className: classes.filterInput,
|
|
7689
|
-
children: jsx(
|
|
7690
|
-
size: "xx-large",
|
|
7674
|
+
children: jsx(DateInput, {
|
|
7691
7675
|
label: t("logs.filter.to", {
|
|
7692
7676
|
defaultValue: "To"
|
|
7693
7677
|
}),
|
|
7694
7678
|
value: toDate,
|
|
7695
|
-
onChange:
|
|
7696
|
-
type: "date"
|
|
7679
|
+
onChange: setToDate
|
|
7697
7680
|
})
|
|
7698
7681
|
}), jsx(Box, {
|
|
7699
7682
|
className: classes.filterInput,
|
|
@@ -7701,7 +7684,7 @@ const LogFilterForm = /*#__PURE__*/memo(({
|
|
|
7701
7684
|
size: "xx-large",
|
|
7702
7685
|
variant: "outlined",
|
|
7703
7686
|
labelText: t("logs.filter.type", {
|
|
7704
|
-
defaultValue: "
|
|
7687
|
+
defaultValue: "Severity"
|
|
7705
7688
|
}),
|
|
7706
7689
|
value: logType !== null && logType !== void 0 ? logType : "",
|
|
7707
7690
|
onChange: event => {
|
|
@@ -7709,7 +7692,7 @@ const LogFilterForm = /*#__PURE__*/memo(({
|
|
|
7709
7692
|
setLogType(value === "" ? null : value);
|
|
7710
7693
|
},
|
|
7711
7694
|
placeholder: t("logs.filter.chooseType", {
|
|
7712
|
-
defaultValue: "Choose
|
|
7695
|
+
defaultValue: "Choose severity level"
|
|
7713
7696
|
}),
|
|
7714
7697
|
menuItems: typeOptions
|
|
7715
7698
|
})
|
|
@@ -7726,9 +7709,9 @@ const LogFilterForm = /*#__PURE__*/memo(({
|
|
|
7726
7709
|
menuItems: sortOptions
|
|
7727
7710
|
})
|
|
7728
7711
|
}), jsx(VentionButton, {
|
|
7729
|
-
size: "
|
|
7712
|
+
size: "xx-large",
|
|
7713
|
+
variant: "outline",
|
|
7730
7714
|
onClick: handleReset,
|
|
7731
|
-
className: classes.resetButton,
|
|
7732
7715
|
children: t("logs.filter.reset", {
|
|
7733
7716
|
defaultValue: "Reset"
|
|
7734
7717
|
})
|
|
@@ -7736,6 +7719,40 @@ const LogFilterForm = /*#__PURE__*/memo(({
|
|
|
7736
7719
|
});
|
|
7737
7720
|
});
|
|
7738
7721
|
LogFilterForm.displayName = "LogFilterForm";
|
|
7722
|
+
/** A date field with the design's calendar icon instead of the browser's. Clicking anywhere in it opens the picker. */
|
|
7723
|
+
function DateInput({
|
|
7724
|
+
label,
|
|
7725
|
+
value,
|
|
7726
|
+
onChange
|
|
7727
|
+
}) {
|
|
7728
|
+
const {
|
|
7729
|
+
classes
|
|
7730
|
+
} = useStyles$b();
|
|
7731
|
+
const inputRef = useRef(null);
|
|
7732
|
+
return jsx(VentionTextInput, {
|
|
7733
|
+
size: "xx-large",
|
|
7734
|
+
label: label,
|
|
7735
|
+
value: value,
|
|
7736
|
+
onChange: event => onChange(event.target.value),
|
|
7737
|
+
type: "date",
|
|
7738
|
+
fullWidth: true,
|
|
7739
|
+
inputRef: inputRef,
|
|
7740
|
+
className: classes.dateInput,
|
|
7741
|
+
InputProps: {
|
|
7742
|
+
onClick: () => {
|
|
7743
|
+
var _a, _b;
|
|
7744
|
+
return (_b = (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.showPicker) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
7745
|
+
},
|
|
7746
|
+
endAdornment: jsx(InputAdornment, {
|
|
7747
|
+
position: "end",
|
|
7748
|
+
children: jsx(VentionIcon, {
|
|
7749
|
+
type: "calendar-month",
|
|
7750
|
+
size: 28
|
|
7751
|
+
})
|
|
7752
|
+
})
|
|
7753
|
+
}
|
|
7754
|
+
});
|
|
7755
|
+
}
|
|
7739
7756
|
const useStyles$b = tss.create(({
|
|
7740
7757
|
theme
|
|
7741
7758
|
}) => ({
|
|
@@ -7750,13 +7767,10 @@ const useStyles$b = tss.create(({
|
|
|
7750
7767
|
flex: "1 1 200px",
|
|
7751
7768
|
minWidth: "200px"
|
|
7752
7769
|
},
|
|
7753
|
-
|
|
7754
|
-
|
|
7755
|
-
|
|
7756
|
-
|
|
7757
|
-
color: theme.palette.text.primary,
|
|
7758
|
-
"&:hover": {
|
|
7759
|
-
backgroundColor: theme.palette.background.default
|
|
7770
|
+
dateInput: {
|
|
7771
|
+
cursor: "pointer",
|
|
7772
|
+
"& input::-webkit-calendar-picker-indicator": {
|
|
7773
|
+
display: "none"
|
|
7760
7774
|
}
|
|
7761
7775
|
}
|
|
7762
7776
|
}));
|
|
@@ -7996,12 +8010,19 @@ const LogsPagination = /*#__PURE__*/memo(({
|
|
|
7996
8010
|
};
|
|
7997
8011
|
return jsxs(Box, {
|
|
7998
8012
|
className: classes.paginationSection,
|
|
7999
|
-
children: [jsx(
|
|
8013
|
+
children: [jsx(VentionIconButton, {
|
|
8000
8014
|
size: "x-large",
|
|
8015
|
+
variant: "outline",
|
|
8001
8016
|
className: classes.paginationButton,
|
|
8002
8017
|
onClick: handlePrevious,
|
|
8003
8018
|
disabled: currentPage === 1,
|
|
8004
|
-
|
|
8019
|
+
"aria-label": t("pagination.previous", {
|
|
8020
|
+
defaultValue: "Previous page"
|
|
8021
|
+
}),
|
|
8022
|
+
children: jsx(VentionIcon, {
|
|
8023
|
+
type: "arrow-left",
|
|
8024
|
+
size: 32
|
|
8025
|
+
})
|
|
8005
8026
|
}), jsxs(Typography, {
|
|
8006
8027
|
variant: "heading18SemiBold",
|
|
8007
8028
|
children: [t("pagination.page", {
|
|
@@ -8009,12 +8030,19 @@ const LogsPagination = /*#__PURE__*/memo(({
|
|
|
8009
8030
|
}), " ", currentPage, " ", t("pagination.of", {
|
|
8010
8031
|
defaultValue: "of"
|
|
8011
8032
|
}), " ", totalPages]
|
|
8012
|
-
}), jsx(
|
|
8033
|
+
}), jsx(VentionIconButton, {
|
|
8013
8034
|
size: "x-large",
|
|
8035
|
+
variant: "outline",
|
|
8014
8036
|
className: classes.paginationButton,
|
|
8015
8037
|
onClick: handleNext,
|
|
8016
8038
|
disabled: currentPage === totalPages,
|
|
8017
|
-
|
|
8039
|
+
"aria-label": t("pagination.next", {
|
|
8040
|
+
defaultValue: "Next page"
|
|
8041
|
+
}),
|
|
8042
|
+
children: jsx(VentionIcon, {
|
|
8043
|
+
type: "arrow-right",
|
|
8044
|
+
size: 32
|
|
8045
|
+
})
|
|
8018
8046
|
})]
|
|
8019
8047
|
});
|
|
8020
8048
|
});
|
|
@@ -8027,20 +8055,13 @@ const useStyles$a = tss.create(({
|
|
|
8027
8055
|
justifyContent: "center",
|
|
8028
8056
|
alignItems: "center",
|
|
8029
8057
|
alignSelf: "stretch",
|
|
8030
|
-
gap: theme.spacing(
|
|
8058
|
+
gap: theme.spacing(7)
|
|
8031
8059
|
},
|
|
8032
8060
|
paginationButton: {
|
|
8033
8061
|
width: "64px",
|
|
8034
8062
|
height: "64px",
|
|
8035
|
-
backgroundColor: theme.palette.background.default,
|
|
8036
|
-
color: theme.palette.text.primary,
|
|
8037
|
-
"&:hover": {
|
|
8038
|
-
backgroundColor: theme.palette.grey[300]
|
|
8039
|
-
},
|
|
8040
8063
|
"&:disabled": {
|
|
8041
|
-
opacity: 0.5
|
|
8042
|
-
cursor: "not-allowed",
|
|
8043
|
-
backgroundColor: theme.palette.background.slate
|
|
8064
|
+
opacity: 0.5
|
|
8044
8065
|
}
|
|
8045
8066
|
}
|
|
8046
8067
|
}));
|
package/package.json
CHANGED
package/src/i18n/locales/de.d.ts
CHANGED
package/src/i18n/locales/en.d.ts
CHANGED
package/src/i18n/locales/es.d.ts
CHANGED