awing-library 2.1.2-dev.575 → 2.1.2-dev.577
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../src/AWING/MultipleChoice/component.tsx"],"names":[],"mappings":"AAkBA,OAAO,EAAE,6BAA6B,EAAyB,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../src/AWING/MultipleChoice/component.tsx"],"names":[],"mappings":"AAkBA,OAAO,EAAE,6BAA6B,EAAyB,MAAM,aAAa,CAAC;AAiEnF,MAAM,CAAC,OAAO,UAAU,uBAAuB,CAAC,KAAK,EAAE,6BAA6B,2CAwUnF"}
|
|
@@ -6,6 +6,7 @@ import { Autocomplete, Box, Checkbox, Chip, IconButton, TextField, Typography }
|
|
|
6
6
|
import { makeStyles } from "@mui/styles";
|
|
7
7
|
import { SimpleTreeView } from "@mui/x-tree-view";
|
|
8
8
|
import { TreeItem } from "@mui/x-tree-view/TreeItem";
|
|
9
|
+
import i18n from "../../translate/i18n.js";
|
|
9
10
|
const TREE_SENTINEL_ID = '__multiple_choice_tree__';
|
|
10
11
|
const TREE_SENTINEL_OPTION = {
|
|
11
12
|
id: TREE_SENTINEL_ID,
|
|
@@ -314,9 +315,9 @@ function MultipleChoiceComponent(props) {
|
|
|
314
315
|
width: '100%'
|
|
315
316
|
},
|
|
316
317
|
children: renderTreeNodes(options).some(Boolean) ? renderTreeNodes(options) : /*#__PURE__*/ jsx(Typography, {
|
|
317
|
-
padding:
|
|
318
|
+
padding: 1,
|
|
318
319
|
paddingLeft: 2,
|
|
319
|
-
children:
|
|
320
|
+
children: i18n.t('Common.NoOptions')
|
|
320
321
|
})
|
|
321
322
|
}));
|
|
322
323
|
}
|