@instructure/quiz-core 20.36.1-rc.38 → 20.36.1-rc.40
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/es/banks/components/CreateBankModal/presenter.js +22 -24
- package/es/banks/components/EditBankModal/presenter.js +24 -22
- package/es/banks/components/SharingModal/presenter.js +0 -4
- package/es/common/components/layout/navbar/SecondaryNavBarButton/index.js +13 -32
- package/es/common/components/layout/navbar/index.js +0 -3
- package/es/common/components/resources/item/ItemEdit/presenter.js +0 -5
- package/es/common/components/resources/quiz/AddContent/Popover/presenter.js +0 -4
- package/es/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +1 -1
- package/es/common/components/shared/PrintTrigger/presenter.js +0 -5
- package/es/reporting/components/resources/OutcomeAnalysis/presenter.js +1 -11
- package/lib/banks/components/CreateBankModal/presenter.js +23 -24
- package/lib/banks/components/EditBankModal/presenter.js +25 -22
- package/lib/banks/components/SharingModal/presenter.js +0 -4
- package/lib/common/components/layout/navbar/SecondaryNavBarButton/index.js +13 -32
- package/lib/common/components/layout/navbar/index.js +0 -3
- package/lib/common/components/resources/item/ItemEdit/presenter.js +0 -5
- package/lib/common/components/resources/quiz/AddContent/Popover/presenter.js +0 -4
- package/lib/common/components/resources/sessionItemResult/SessionItemResult/presenter.js +1 -1
- package/lib/common/components/shared/PrintTrigger/presenter.js +0 -5
- package/lib/reporting/components/resources/OutcomeAnalysis/presenter.js +1 -11
- package/package.json +55 -56
- package/es/banks/components/CreateBankModal/styles.js +0 -15
- package/es/banks/components/CreateBankModal/theme.js +0 -10
- package/es/banks/components/EditBankModal/styles.js +0 -12
- package/es/banks/components/EditBankModal/theme.js +0 -9
- package/es/common/components/layout/navbar/SecondaryNavBarButton/styles.js +0 -9
- package/es/common/components/layout/navbar/SecondaryNavBarButton/theme.js +0 -10
- package/lib/banks/components/CreateBankModal/styles.js +0 -22
- package/lib/banks/components/CreateBankModal/theme.js +0 -17
- package/lib/banks/components/EditBankModal/styles.js +0 -19
- package/lib/banks/components/EditBankModal/theme.js +0 -16
- package/lib/common/components/layout/navbar/SecondaryNavBarButton/styles.js +0 -16
- package/lib/common/components/layout/navbar/SecondaryNavBarButton/theme.js +0 -17
|
@@ -2,9 +2,9 @@ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
3
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
4
4
|
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
5
|
-
var
|
|
5
|
+
var _CreateBankModal;
|
|
6
6
|
/** @jsx jsx */
|
|
7
|
-
import { Component } from 'react';
|
|
7
|
+
import React, { Component } from 'react';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
9
9
|
import { Button, CloseButton } from '@instructure/ui-buttons';
|
|
10
10
|
import { Checkbox } from '@instructure/ui-checkbox';
|
|
@@ -14,19 +14,14 @@ import { jsx } from '@instructure/emotion';
|
|
|
14
14
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
15
15
|
import Bank from "../../../common/records/Bank.js";
|
|
16
16
|
import { toErrors } from "../../../common/util/instUIMessages.js";
|
|
17
|
-
import { Modal, ModalHeader, ModalBody, ModalFooter, TextInput, XSMALL_SIDE_MARGIN
|
|
18
|
-
|
|
19
|
-
import generateComponentTheme from "./theme.js";
|
|
20
|
-
export var CreateBankModal = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_CreateBankModal = /*#__PURE__*/function (_Component) {
|
|
17
|
+
import { Modal, ModalHeader, ModalBody, ModalFooter, TextInput, XSMALL_SIDE_MARGIN } from '@instructure/quiz-common';
|
|
18
|
+
export var CreateBankModal = /*#__PURE__*/function (_Component) {
|
|
21
19
|
_inherits(CreateBankModal, _Component);
|
|
22
20
|
var _super = _createSuper(CreateBankModal);
|
|
23
|
-
function CreateBankModal() {
|
|
21
|
+
function CreateBankModal(props) {
|
|
24
22
|
var _this;
|
|
25
23
|
_classCallCheck(this, CreateBankModal);
|
|
26
|
-
|
|
27
|
-
args[_key] = arguments[_key];
|
|
28
|
-
}
|
|
29
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
24
|
+
_this = _super.call(this, props);
|
|
30
25
|
_this.state = {
|
|
31
26
|
shareWithCourse: false
|
|
32
27
|
};
|
|
@@ -38,7 +33,8 @@ export var CreateBankModal = (_dec = withStyleOverrides(generateStyle, generateC
|
|
|
38
33
|
_this.props.onCreateBank();
|
|
39
34
|
_this.closeAction();
|
|
40
35
|
} else {
|
|
41
|
-
_this
|
|
36
|
+
var _this$bankNameInput$c;
|
|
37
|
+
(_this$bankNameInput$c = _this.bankNameInput.current) === null || _this$bankNameInput$c === void 0 ? void 0 : _this$bankNameInput$c.focus();
|
|
42
38
|
}
|
|
43
39
|
};
|
|
44
40
|
_this.closeAction = function () {
|
|
@@ -68,6 +64,7 @@ export var CreateBankModal = (_dec = withStyleOverrides(generateStyle, generateC
|
|
|
68
64
|
shareWithCourse: event.target.checked
|
|
69
65
|
});
|
|
70
66
|
};
|
|
67
|
+
_this.bankNameInput = /*#__PURE__*/React.createRef();
|
|
71
68
|
return _this;
|
|
72
69
|
}
|
|
73
70
|
_createClass(CreateBankModal, [{
|
|
@@ -92,17 +89,14 @@ export var CreateBankModal = (_dec = withStyleOverrides(generateStyle, generateC
|
|
|
92
89
|
}, {
|
|
93
90
|
key: "renderContent",
|
|
94
91
|
value: function renderContent() {
|
|
95
|
-
return jsx("div", {
|
|
96
|
-
css: this.props.styles.bankNameInput
|
|
97
|
-
}, jsx(TextInput, {
|
|
92
|
+
return jsx("div", null, jsx(TextInput, {
|
|
98
93
|
messages: this.getErrors(),
|
|
99
94
|
onChange: this.onNameChange,
|
|
100
|
-
renderLabel:
|
|
101
|
-
|
|
102
|
-
}, t('Bank Name')),
|
|
95
|
+
renderLabel: t('Bank Name'),
|
|
96
|
+
isRequired: true,
|
|
103
97
|
type: "text",
|
|
104
|
-
|
|
105
|
-
|
|
98
|
+
"data-automation": "sdk-create-bank-name-textinput",
|
|
99
|
+
ref: this.bankNameInput
|
|
106
100
|
}), this.renderCheckbox());
|
|
107
101
|
}
|
|
108
102
|
}, {
|
|
@@ -134,7 +128,6 @@ export var CreateBankModal = (_dec = withStyleOverrides(generateStyle, generateC
|
|
|
134
128
|
label: t('Item Bank'),
|
|
135
129
|
"data-automation": "sdk-create-bank-modal"
|
|
136
130
|
}, jsx(ModalHeader, null, jsx(Heading, {
|
|
137
|
-
level: "reset",
|
|
138
131
|
as: "h2"
|
|
139
132
|
}, t('New Item Bank')), jsx(CloseButton, {
|
|
140
133
|
onClick: this.closeAction,
|
|
@@ -146,7 +139,11 @@ export var CreateBankModal = (_dec = withStyleOverrides(generateStyle, generateC
|
|
|
146
139
|
}]);
|
|
147
140
|
CreateBankModal.displayName = "CreateBankModal";
|
|
148
141
|
return CreateBankModal;
|
|
149
|
-
}(Component)
|
|
142
|
+
}(Component);
|
|
143
|
+
_CreateBankModal = CreateBankModal;
|
|
144
|
+
CreateBankModal.displayName = 'CreateBankModal';
|
|
145
|
+
CreateBankModal.componentId = "Quizzes".concat(_CreateBankModal.displayName);
|
|
146
|
+
CreateBankModal.propTypes = {
|
|
150
147
|
modalOpen: PropTypes.bool.isRequired,
|
|
151
148
|
modalTrigger: PropTypes.instanceOf(Component),
|
|
152
149
|
temporaryBank: PropTypes.instanceOf(Bank).isRequired,
|
|
@@ -169,11 +166,12 @@ export var CreateBankModal = (_dec = withStyleOverrides(generateStyle, generateC
|
|
|
169
166
|
root_account_name: PropTypes.string
|
|
170
167
|
}),
|
|
171
168
|
styles: PropTypes.object
|
|
172
|
-
}
|
|
169
|
+
};
|
|
170
|
+
CreateBankModal.defaultProps = {
|
|
173
171
|
displayError: false,
|
|
174
172
|
modalTrigger: null,
|
|
175
173
|
showShareBankOnCreate: false,
|
|
176
174
|
itemBanksScope: {},
|
|
177
175
|
onCreateBank: function onCreateBank() {}
|
|
178
|
-
}
|
|
176
|
+
};
|
|
179
177
|
export default CreateBankModal;
|
|
@@ -2,34 +2,32 @@ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
3
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
4
4
|
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
5
|
-
var
|
|
5
|
+
var _EditBankModal;
|
|
6
6
|
/** @jsx jsx */
|
|
7
|
-
import { Component } from 'react';
|
|
7
|
+
import React, { Component } from 'react';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
9
9
|
import { Button, CloseButton } from '@instructure/ui-buttons';
|
|
10
10
|
import { Heading } from '@instructure/ui-heading';
|
|
11
11
|
import { jsx } from '@instructure/emotion';
|
|
12
12
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
13
13
|
import { toErrors } from "../../../common/util/instUIMessages.js";
|
|
14
|
-
import { Modal, ModalHeader, ModalBody, ModalFooter, TextInput, XSMALL_SIDE_MARGIN
|
|
14
|
+
import { Modal, ModalHeader, ModalBody, ModalFooter, TextInput, XSMALL_SIDE_MARGIN } from '@instructure/quiz-common';
|
|
15
15
|
import Bank from "../../../common/records/Bank.js";
|
|
16
|
-
|
|
17
|
-
import generateComponentTheme from "./theme.js";
|
|
18
|
-
export var EditBankModal = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_EditBankModal = /*#__PURE__*/function (_Component) {
|
|
16
|
+
export var EditBankModal = /*#__PURE__*/function (_Component) {
|
|
19
17
|
_inherits(EditBankModal, _Component);
|
|
20
18
|
var _super = _createSuper(EditBankModal);
|
|
21
|
-
function EditBankModal() {
|
|
19
|
+
function EditBankModal(props) {
|
|
22
20
|
var _this;
|
|
23
21
|
_classCallCheck(this, EditBankModal);
|
|
24
|
-
|
|
25
|
-
args[_key] = arguments[_key];
|
|
26
|
-
}
|
|
27
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
22
|
+
_this = _super.call(this, props);
|
|
28
23
|
_this.continueAction = function () {
|
|
29
24
|
_this.props.showError(_this.props.errorKey);
|
|
30
25
|
if (_this.props.workingBank.isValid()) {
|
|
31
26
|
_this.props.updateBank(_this.props.workingBank);
|
|
32
27
|
_this.closeAction();
|
|
28
|
+
} else {
|
|
29
|
+
var _this$bankNameInput$c;
|
|
30
|
+
(_this$bankNameInput$c = _this.bankNameInput.current) === null || _this$bankNameInput$c === void 0 ? void 0 : _this$bankNameInput$c.focus();
|
|
33
31
|
}
|
|
34
32
|
};
|
|
35
33
|
_this.closeAction = function () {
|
|
@@ -51,6 +49,7 @@ export var EditBankModal = (_dec = withStyleOverrides(generateStyle, generateCom
|
|
|
51
49
|
return toErrors(_this.props.workingBank.errorsFor('title').toJS());
|
|
52
50
|
}
|
|
53
51
|
};
|
|
52
|
+
_this.bankNameInput = /*#__PURE__*/React.createRef();
|
|
54
53
|
return _this;
|
|
55
54
|
}
|
|
56
55
|
_createClass(EditBankModal, [{
|
|
@@ -75,17 +74,16 @@ export var EditBankModal = (_dec = withStyleOverrides(generateStyle, generateCom
|
|
|
75
74
|
}, {
|
|
76
75
|
key: "renderContent",
|
|
77
76
|
value: function renderContent() {
|
|
78
|
-
return jsx(
|
|
79
|
-
css: this.props.styles.bankNameInput
|
|
80
|
-
}, jsx(TextInput, {
|
|
77
|
+
return jsx(TextInput, {
|
|
81
78
|
value: this.props.workingBank.title,
|
|
82
79
|
messages: this.getErrors(),
|
|
83
80
|
onChange: this.onNameChange,
|
|
84
|
-
renderLabel:
|
|
81
|
+
renderLabel: t('Bank Name'),
|
|
85
82
|
type: "text",
|
|
86
|
-
|
|
87
|
-
"data-automation": "sdk-edit-bank-name-textinput"
|
|
88
|
-
|
|
83
|
+
isRequired: true,
|
|
84
|
+
"data-automation": "sdk-edit-bank-name-textinput",
|
|
85
|
+
ref: this.bankNameInput
|
|
86
|
+
});
|
|
89
87
|
}
|
|
90
88
|
}, {
|
|
91
89
|
key: "render",
|
|
@@ -97,7 +95,6 @@ export var EditBankModal = (_dec = withStyleOverrides(generateStyle, generateCom
|
|
|
97
95
|
label: t('Item Bank'),
|
|
98
96
|
"data-automation": "sdk-edit-bank-modal"
|
|
99
97
|
}, jsx(ModalHeader, null, jsx(Heading, {
|
|
100
|
-
level: "reset",
|
|
101
98
|
as: "h2"
|
|
102
99
|
}, t('Edit Item Bank')), jsx(CloseButton, {
|
|
103
100
|
onClick: this.closeAction,
|
|
@@ -109,7 +106,11 @@ export var EditBankModal = (_dec = withStyleOverrides(generateStyle, generateCom
|
|
|
109
106
|
}]);
|
|
110
107
|
EditBankModal.displayName = "EditBankModal";
|
|
111
108
|
return EditBankModal;
|
|
112
|
-
}(Component)
|
|
109
|
+
}(Component);
|
|
110
|
+
_EditBankModal = EditBankModal;
|
|
111
|
+
EditBankModal.displayName = 'EditBankModal';
|
|
112
|
+
EditBankModal.componentId = "Quizzes".concat(_EditBankModal.displayName);
|
|
113
|
+
EditBankModal.propTypes = {
|
|
113
114
|
modalOpen: PropTypes.bool.isRequired,
|
|
114
115
|
modalTrigger: PropTypes.instanceOf(Component),
|
|
115
116
|
workingBank: PropTypes.instanceOf(Bank).isRequired,
|
|
@@ -122,8 +123,9 @@ export var EditBankModal = (_dec = withStyleOverrides(generateStyle, generateCom
|
|
|
122
123
|
hideError: PropTypes.func.isRequired,
|
|
123
124
|
closeModal: PropTypes.func.isRequired,
|
|
124
125
|
styles: PropTypes.object
|
|
125
|
-
}
|
|
126
|
+
};
|
|
127
|
+
EditBankModal.defaultProps = {
|
|
126
128
|
displayError: false,
|
|
127
129
|
modalTrigger: null
|
|
128
|
-
}
|
|
130
|
+
};
|
|
129
131
|
export default EditBankModal;
|
|
@@ -22,7 +22,6 @@ import { Grid } from '@instructure/ui-grid';
|
|
|
22
22
|
import { Tabs } from '@instructure/ui-tabs';
|
|
23
23
|
import { Text } from '@instructure/ui-text';
|
|
24
24
|
import { jsx } from '@instructure/emotion';
|
|
25
|
-
import elementsForSelectors from "../../../common/util/ElementsForSelectors.js";
|
|
26
25
|
import CustomPropTypes from "../../../common/util/CustomPropTypes.js";
|
|
27
26
|
import ShareList from "./ShareList/index.js";
|
|
28
27
|
import AsyncSearch from "../AsyncSearch/index.js";
|
|
@@ -54,9 +53,6 @@ export var SharingModalPresenter = (_dec = withStyleOverrides(generateStyle, gen
|
|
|
54
53
|
};
|
|
55
54
|
_this.shareListRef = null;
|
|
56
55
|
_this.shareButtonRef = null;
|
|
57
|
-
_this.applicationElement = function () {
|
|
58
|
-
return elementsForSelectors(_this.props.appContainer);
|
|
59
|
-
};
|
|
60
56
|
// =============
|
|
61
57
|
// LIFECYCLE
|
|
62
58
|
// =============
|
|
@@ -2,17 +2,14 @@ import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
|
2
2
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
3
3
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
4
4
|
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
5
|
-
var
|
|
5
|
+
var _SecondaryNavBarButton;
|
|
6
6
|
/** @jsx jsx */
|
|
7
7
|
import { Component } from 'react';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
9
9
|
import { TopNavBar } from '@instructure/ui-top-nav-bar';
|
|
10
|
-
import {
|
|
10
|
+
import { jsx } from '@instructure/emotion';
|
|
11
11
|
import { omitProps } from '@instructure/ui-react-utils';
|
|
12
|
-
|
|
13
|
-
import generateComponentTheme from "./theme.js";
|
|
14
|
-
import { withStyleOverrides } from '@instructure/quiz-common';
|
|
15
|
-
export var SecondaryNavBarButton = (_dec = withStyleOverrides(generateStyle, generateComponentTheme), _dec(_class = (_SecondaryNavBarButton = /*#__PURE__*/function (_Component) {
|
|
12
|
+
export var SecondaryNavBarButton = /*#__PURE__*/function (_Component) {
|
|
16
13
|
_inherits(SecondaryNavBarButton, _Component);
|
|
17
14
|
var _super = _createSuper(SecondaryNavBarButton);
|
|
18
15
|
function SecondaryNavBarButton() {
|
|
@@ -20,37 +17,21 @@ export var SecondaryNavBarButton = (_dec = withStyleOverrides(generateStyle, gen
|
|
|
20
17
|
return _super.apply(this, arguments);
|
|
21
18
|
}
|
|
22
19
|
_createClass(SecondaryNavBarButton, [{
|
|
23
|
-
key: "componentDidMount",
|
|
24
|
-
value: function componentDidMount() {
|
|
25
|
-
this.props.makeStyles();
|
|
26
|
-
}
|
|
27
|
-
}, {
|
|
28
|
-
key: "componentDidUpdate",
|
|
29
|
-
value: function componentDidUpdate() {
|
|
30
|
-
this.props.makeStyles();
|
|
31
|
-
}
|
|
32
|
-
}, {
|
|
33
20
|
key: "render",
|
|
34
21
|
value: function render() {
|
|
35
|
-
return jsx(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
BaseButton: {
|
|
39
|
-
primaryColor: this.props.styles.textColor,
|
|
40
|
-
primaryBackground: this.props.styles.backgroundColor,
|
|
41
|
-
primaryHoverBackground: this.props.styles.backgroundHoverColor,
|
|
42
|
-
primaryBorderColor: this.props.styles.borderColor
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
}, jsx(TopNavBar.Item, omitProps(this.props, this.constructor.propTypes), this.props.children));
|
|
22
|
+
return jsx(TopNavBar.Item, Object.assign({
|
|
23
|
+
color: "secondary"
|
|
24
|
+
}, omitProps(this.props, this.constructor.propTypes)), this.props.children);
|
|
47
25
|
}
|
|
48
26
|
}]);
|
|
49
27
|
SecondaryNavBarButton.displayName = "SecondaryNavBarButton";
|
|
50
28
|
return SecondaryNavBarButton;
|
|
51
|
-
}(Component)
|
|
29
|
+
}(Component);
|
|
30
|
+
_SecondaryNavBarButton = SecondaryNavBarButton;
|
|
31
|
+
SecondaryNavBarButton.displayName = 'TopNavBarItem';
|
|
32
|
+
SecondaryNavBarButton.componentId = "Quizzes".concat(_SecondaryNavBarButton.displayName);
|
|
33
|
+
SecondaryNavBarButton.propTypes = {
|
|
52
34
|
children: PropTypes.string.isRequired,
|
|
53
|
-
styles: PropTypes.object
|
|
54
|
-
|
|
55
|
-
}, _SecondaryNavBarButton)) || _class);
|
|
35
|
+
styles: PropTypes.object
|
|
36
|
+
};
|
|
56
37
|
export default SecondaryNavBarButton;
|
|
@@ -93,9 +93,6 @@ export var NavBar = (_dec = withStyleOverrides(generateStyle, generateComponentT
|
|
|
93
93
|
desktopBottomBorderInverse: false
|
|
94
94
|
} : {}),
|
|
95
95
|
navLabel: t('Quizzes navigation bar'),
|
|
96
|
-
desktopConfig: {
|
|
97
|
-
hideActionsUserSeparator: true
|
|
98
|
-
},
|
|
99
96
|
smallViewportConfig: {
|
|
100
97
|
dropdownMenuToggleButtonLabel: t('Toggle Menu'),
|
|
101
98
|
dropdownMenuLabel: t('Main Menu')
|
|
@@ -13,7 +13,6 @@ import componentForItem from "../../../../util/componentForItem.js";
|
|
|
13
13
|
import { liveRegion, COMPONENT_EDIT, FormFieldGroup } from '@instructure/quiz-common';
|
|
14
14
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
15
15
|
import { propsForInteractionEdit } from "../../../../util/interactionTypePropsHelper.js";
|
|
16
|
-
import elementsForSelectors from "../../../../../common/util/ElementsForSelectors.js";
|
|
17
16
|
import { toErrors } from "../../../../util/instUIMessages.js";
|
|
18
17
|
export var ItemEdit = /*#__PURE__*/function (_Component) {
|
|
19
18
|
_inherits(ItemEdit, _Component);
|
|
@@ -32,9 +31,6 @@ export var ItemEdit = /*#__PURE__*/function (_Component) {
|
|
|
32
31
|
}
|
|
33
32
|
return null;
|
|
34
33
|
};
|
|
35
|
-
_this.applicationElement = function () {
|
|
36
|
-
return elementsForSelectors(_this.props.appContainer);
|
|
37
|
-
};
|
|
38
34
|
_this.onModalOpen = function () {
|
|
39
35
|
_this.props.occludeQuizEntries(true);
|
|
40
36
|
};
|
|
@@ -97,7 +93,6 @@ export var ItemEdit = /*#__PURE__*/function (_Component) {
|
|
|
97
93
|
component: /*#__PURE__*/React.createElement(OutcomeAlignments, Object.assign({
|
|
98
94
|
artifactType: "quizEntry",
|
|
99
95
|
artifactId: itemId,
|
|
100
|
-
applicationElement: this.applicationElement,
|
|
101
96
|
alignmentSetId: outcomeAlignmentSetGuid,
|
|
102
97
|
contextUuid: this.props.contextUuid
|
|
103
98
|
}, launchContexts.length > 0 && {
|
|
@@ -9,7 +9,6 @@ import PropTypes from 'prop-types';
|
|
|
9
9
|
import { Popover } from '@instructure/ui-popover';
|
|
10
10
|
import { jsx } from '@instructure/emotion';
|
|
11
11
|
import CustomPropTypes from "../../../../../util/CustomPropTypes.js";
|
|
12
|
-
import elementsForSelectors from "../../../../../util/ElementsForSelectors.js";
|
|
13
12
|
import { onPhone, onTablet } from "../../../../../util/windowChecks.js";
|
|
14
13
|
import AddContentButton from "../Button/index.js";
|
|
15
14
|
import AddContentBody from "../Body/index.js";
|
|
@@ -26,9 +25,6 @@ export var AddContentPopover = (_dec = withStyleOverrides(generateStyle, generat
|
|
|
26
25
|
args[_key] = arguments[_key];
|
|
27
26
|
}
|
|
28
27
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
29
|
-
_this.applicationElement = function () {
|
|
30
|
-
return elementsForSelectors(_this.props.appContainer);
|
|
31
|
-
};
|
|
32
28
|
_this.showContent = function () {
|
|
33
29
|
_this.props.switchOnEditing();
|
|
34
30
|
};
|
|
@@ -108,7 +108,7 @@ export var SessionItemResult = (_dec = withStyleOverrides(generateStyle, generat
|
|
|
108
108
|
size: "small",
|
|
109
109
|
margin: "small"
|
|
110
110
|
}, jsx(Text, {
|
|
111
|
-
color: "
|
|
111
|
+
color: "alert"
|
|
112
112
|
}, t("Regrade score { possible, plural,\n one {{points, number} / # point}\n other {{points, number} / # points}\n }", {
|
|
113
113
|
points: this.props.sessionItemResult.regradeInfo.get('newScore') || 0,
|
|
114
114
|
possible: this.props.sessionItemResult.regradeInfo.get('newPointsPossible')
|
|
@@ -8,7 +8,6 @@ import PropTypes from 'prop-types';
|
|
|
8
8
|
import { Overlay, Mask } from '@instructure/ui-overlays';
|
|
9
9
|
import t from '@instructure/quiz-i18n/es/format-message';
|
|
10
10
|
import { QuizzesSpinner as Spinner } from "../spinner/Spinner.js";
|
|
11
|
-
import elementsForSelectors from "../../../util/ElementsForSelectors.js";
|
|
12
11
|
import CustomPropTypes from "../../../util/CustomPropTypes.js";
|
|
13
12
|
import { printWithCss, ensureImagesLoaded } from "../../../util/printUtils.js";
|
|
14
13
|
import PrintFontSizeModal from "../../PrintFontSizeModal/index.js";
|
|
@@ -74,9 +73,6 @@ export var PrintTrigger = /*#__PURE__*/function (_Component) {
|
|
|
74
73
|
});
|
|
75
74
|
_this.props.openPrintFontSizeModal();
|
|
76
75
|
};
|
|
77
|
-
_this.applicationElement = function () {
|
|
78
|
-
return elementsForSelectors(_this.props.appContainer);
|
|
79
|
-
};
|
|
80
76
|
_this.onExited = function () {};
|
|
81
77
|
_this.fontSize = '';
|
|
82
78
|
return _this;
|
|
@@ -85,7 +81,6 @@ export var PrintTrigger = /*#__PURE__*/function (_Component) {
|
|
|
85
81
|
key: "render",
|
|
86
82
|
value: function render() {
|
|
87
83
|
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Overlay, {
|
|
88
|
-
applicationElement: this.applicationElement,
|
|
89
84
|
open: this.state.waitingForPrintingToBeReady,
|
|
90
85
|
shouldContainFocus: true,
|
|
91
86
|
transition: "fade",
|
|
@@ -7,21 +7,12 @@ import PropTypes from 'prop-types';
|
|
|
7
7
|
import OutcomesPerStudentReport from '@instructure/outcomes-ui/es/containers/OutcomesPerStudentReport';
|
|
8
8
|
import { liveRegion } from '@instructure/quiz-common';
|
|
9
9
|
import CustomPropTypes from "../../../../common/util/CustomPropTypes.js";
|
|
10
|
-
import elementsForSelectors from "../../../../common/util/ElementsForSelectors.js";
|
|
11
10
|
export var OutcomeAnalysis = /*#__PURE__*/function (_Component) {
|
|
12
11
|
_inherits(OutcomeAnalysis, _Component);
|
|
13
12
|
var _super = _createSuper(OutcomeAnalysis);
|
|
14
13
|
function OutcomeAnalysis() {
|
|
15
|
-
var _this;
|
|
16
14
|
_classCallCheck(this, OutcomeAnalysis);
|
|
17
|
-
|
|
18
|
-
args[_key] = arguments[_key];
|
|
19
|
-
}
|
|
20
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
21
|
-
_this.applicationElement = function () {
|
|
22
|
-
return elementsForSelectors(_this.props.appContainer);
|
|
23
|
-
};
|
|
24
|
-
return _this;
|
|
15
|
+
return _super.apply(this, arguments);
|
|
25
16
|
}
|
|
26
17
|
_createClass(OutcomeAnalysis, [{
|
|
27
18
|
key: "render",
|
|
@@ -34,7 +25,6 @@ export var OutcomeAnalysis = /*#__PURE__*/function (_Component) {
|
|
|
34
25
|
loadUsersOverride = _this$props.loadUsersOverride,
|
|
35
26
|
showRollups = _this$props.showRollups;
|
|
36
27
|
return /*#__PURE__*/React.createElement(OutcomesPerStudentReport, {
|
|
37
|
-
applicationElement: this.applicationElement,
|
|
38
28
|
artifactType: "quizzes.quiz",
|
|
39
29
|
artifactId: quizId,
|
|
40
30
|
contextUuid: contextUuid,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
@@ -9,7 +10,7 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl
|
|
|
9
10
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
11
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
11
12
|
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
|
|
12
|
-
var _react = require("react");
|
|
13
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
13
14
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
14
15
|
var _uiButtons = require("@instructure/ui-buttons");
|
|
15
16
|
var _uiCheckbox = require("@instructure/ui-checkbox");
|
|
@@ -20,20 +21,15 @@ var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/f
|
|
|
20
21
|
var _Bank = _interopRequireDefault(require("../../../common/records/Bank.js"));
|
|
21
22
|
var _instUIMessages = require("../../../common/util/instUIMessages.js");
|
|
22
23
|
var _quizCommon = require("@instructure/quiz-common");
|
|
23
|
-
var
|
|
24
|
-
var _theme = _interopRequireDefault(require("./theme.js"));
|
|
25
|
-
var _dec, _class, _CreateBankModal;
|
|
24
|
+
var _CreateBankModal;
|
|
26
25
|
/** @jsx jsx */
|
|
27
|
-
var CreateBankModal =
|
|
26
|
+
var CreateBankModal = /*#__PURE__*/function (_Component) {
|
|
28
27
|
(0, _inherits2.default)(CreateBankModal, _Component);
|
|
29
28
|
var _super = (0, _createSuper2.default)(CreateBankModal);
|
|
30
|
-
function CreateBankModal() {
|
|
29
|
+
function CreateBankModal(props) {
|
|
31
30
|
var _this;
|
|
32
31
|
(0, _classCallCheck2.default)(this, CreateBankModal);
|
|
33
|
-
|
|
34
|
-
args[_key] = arguments[_key];
|
|
35
|
-
}
|
|
36
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
32
|
+
_this = _super.call(this, props);
|
|
37
33
|
_this.state = {
|
|
38
34
|
shareWithCourse: false
|
|
39
35
|
};
|
|
@@ -45,7 +41,8 @@ var CreateBankModal = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.defaul
|
|
|
45
41
|
_this.props.onCreateBank();
|
|
46
42
|
_this.closeAction();
|
|
47
43
|
} else {
|
|
48
|
-
_this
|
|
44
|
+
var _this$bankNameInput$c;
|
|
45
|
+
(_this$bankNameInput$c = _this.bankNameInput.current) === null || _this$bankNameInput$c === void 0 ? void 0 : _this$bankNameInput$c.focus();
|
|
49
46
|
}
|
|
50
47
|
};
|
|
51
48
|
_this.closeAction = function () {
|
|
@@ -75,6 +72,7 @@ var CreateBankModal = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.defaul
|
|
|
75
72
|
shareWithCourse: event.target.checked
|
|
76
73
|
});
|
|
77
74
|
};
|
|
75
|
+
_this.bankNameInput = /*#__PURE__*/_react.default.createRef();
|
|
78
76
|
return _this;
|
|
79
77
|
}
|
|
80
78
|
(0, _createClass2.default)(CreateBankModal, [{
|
|
@@ -99,17 +97,14 @@ var CreateBankModal = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.defaul
|
|
|
99
97
|
}, {
|
|
100
98
|
key: "renderContent",
|
|
101
99
|
value: function renderContent() {
|
|
102
|
-
return (0, _emotion.jsx)("div", {
|
|
103
|
-
css: this.props.styles.bankNameInput
|
|
104
|
-
}, (0, _emotion.jsx)(_quizCommon.TextInput, {
|
|
100
|
+
return (0, _emotion.jsx)("div", null, (0, _emotion.jsx)(_quizCommon.TextInput, {
|
|
105
101
|
messages: this.getErrors(),
|
|
106
102
|
onChange: this.onNameChange,
|
|
107
|
-
renderLabel: (0,
|
|
108
|
-
|
|
109
|
-
}, (0, _formatMessage.default)('Bank Name')),
|
|
103
|
+
renderLabel: (0, _formatMessage.default)('Bank Name'),
|
|
104
|
+
isRequired: true,
|
|
110
105
|
type: "text",
|
|
111
|
-
|
|
112
|
-
|
|
106
|
+
"data-automation": "sdk-create-bank-name-textinput",
|
|
107
|
+
ref: this.bankNameInput
|
|
113
108
|
}), this.renderCheckbox());
|
|
114
109
|
}
|
|
115
110
|
}, {
|
|
@@ -141,7 +136,6 @@ var CreateBankModal = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.defaul
|
|
|
141
136
|
label: (0, _formatMessage.default)('Item Bank'),
|
|
142
137
|
"data-automation": "sdk-create-bank-modal"
|
|
143
138
|
}, (0, _emotion.jsx)(_quizCommon.ModalHeader, null, (0, _emotion.jsx)(_uiHeading.Heading, {
|
|
144
|
-
level: "reset",
|
|
145
139
|
as: "h2"
|
|
146
140
|
}, (0, _formatMessage.default)('New Item Bank')), (0, _emotion.jsx)(_uiButtons.CloseButton, {
|
|
147
141
|
onClick: this.closeAction,
|
|
@@ -153,7 +147,12 @@ var CreateBankModal = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.defaul
|
|
|
153
147
|
}]);
|
|
154
148
|
CreateBankModal.displayName = "CreateBankModal";
|
|
155
149
|
return CreateBankModal;
|
|
156
|
-
}(_react.Component)
|
|
150
|
+
}(_react.Component);
|
|
151
|
+
exports.CreateBankModal = CreateBankModal;
|
|
152
|
+
_CreateBankModal = CreateBankModal;
|
|
153
|
+
CreateBankModal.displayName = 'CreateBankModal';
|
|
154
|
+
CreateBankModal.componentId = "Quizzes".concat(_CreateBankModal.displayName);
|
|
155
|
+
CreateBankModal.propTypes = {
|
|
157
156
|
modalOpen: _propTypes.default.bool.isRequired,
|
|
158
157
|
modalTrigger: _propTypes.default.instanceOf(_react.Component),
|
|
159
158
|
temporaryBank: _propTypes.default.instanceOf(_Bank.default).isRequired,
|
|
@@ -176,13 +175,13 @@ var CreateBankModal = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.defaul
|
|
|
176
175
|
root_account_name: _propTypes.default.string
|
|
177
176
|
}),
|
|
178
177
|
styles: _propTypes.default.object
|
|
179
|
-
}
|
|
178
|
+
};
|
|
179
|
+
CreateBankModal.defaultProps = {
|
|
180
180
|
displayError: false,
|
|
181
181
|
modalTrigger: null,
|
|
182
182
|
showShareBankOnCreate: false,
|
|
183
183
|
itemBanksScope: {},
|
|
184
184
|
onCreateBank: function onCreateBank() {}
|
|
185
|
-
}
|
|
186
|
-
exports.CreateBankModal = CreateBankModal;
|
|
185
|
+
};
|
|
187
186
|
var _default = CreateBankModal;
|
|
188
187
|
exports.default = _default;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
@@ -9,7 +10,7 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl
|
|
|
9
10
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
11
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
11
12
|
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
|
|
12
|
-
var _react = require("react");
|
|
13
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
13
14
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
14
15
|
var _uiButtons = require("@instructure/ui-buttons");
|
|
15
16
|
var _uiHeading = require("@instructure/ui-heading");
|
|
@@ -18,25 +19,23 @@ var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/f
|
|
|
18
19
|
var _instUIMessages = require("../../../common/util/instUIMessages.js");
|
|
19
20
|
var _quizCommon = require("@instructure/quiz-common");
|
|
20
21
|
var _Bank = _interopRequireDefault(require("../../../common/records/Bank.js"));
|
|
21
|
-
var
|
|
22
|
-
var _theme = _interopRequireDefault(require("./theme.js"));
|
|
23
|
-
var _dec, _class, _EditBankModal;
|
|
22
|
+
var _EditBankModal;
|
|
24
23
|
/** @jsx jsx */
|
|
25
|
-
var EditBankModal =
|
|
24
|
+
var EditBankModal = /*#__PURE__*/function (_Component) {
|
|
26
25
|
(0, _inherits2.default)(EditBankModal, _Component);
|
|
27
26
|
var _super = (0, _createSuper2.default)(EditBankModal);
|
|
28
|
-
function EditBankModal() {
|
|
27
|
+
function EditBankModal(props) {
|
|
29
28
|
var _this;
|
|
30
29
|
(0, _classCallCheck2.default)(this, EditBankModal);
|
|
31
|
-
|
|
32
|
-
args[_key] = arguments[_key];
|
|
33
|
-
}
|
|
34
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
30
|
+
_this = _super.call(this, props);
|
|
35
31
|
_this.continueAction = function () {
|
|
36
32
|
_this.props.showError(_this.props.errorKey);
|
|
37
33
|
if (_this.props.workingBank.isValid()) {
|
|
38
34
|
_this.props.updateBank(_this.props.workingBank);
|
|
39
35
|
_this.closeAction();
|
|
36
|
+
} else {
|
|
37
|
+
var _this$bankNameInput$c;
|
|
38
|
+
(_this$bankNameInput$c = _this.bankNameInput.current) === null || _this$bankNameInput$c === void 0 ? void 0 : _this$bankNameInput$c.focus();
|
|
40
39
|
}
|
|
41
40
|
};
|
|
42
41
|
_this.closeAction = function () {
|
|
@@ -58,6 +57,7 @@ var EditBankModal = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default,
|
|
|
58
57
|
return (0, _instUIMessages.toErrors)(_this.props.workingBank.errorsFor('title').toJS());
|
|
59
58
|
}
|
|
60
59
|
};
|
|
60
|
+
_this.bankNameInput = /*#__PURE__*/_react.default.createRef();
|
|
61
61
|
return _this;
|
|
62
62
|
}
|
|
63
63
|
(0, _createClass2.default)(EditBankModal, [{
|
|
@@ -82,17 +82,16 @@ var EditBankModal = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default,
|
|
|
82
82
|
}, {
|
|
83
83
|
key: "renderContent",
|
|
84
84
|
value: function renderContent() {
|
|
85
|
-
return (0, _emotion.jsx)(
|
|
86
|
-
css: this.props.styles.bankNameInput
|
|
87
|
-
}, (0, _emotion.jsx)(_quizCommon.TextInput, {
|
|
85
|
+
return (0, _emotion.jsx)(_quizCommon.TextInput, {
|
|
88
86
|
value: this.props.workingBank.title,
|
|
89
87
|
messages: this.getErrors(),
|
|
90
88
|
onChange: this.onNameChange,
|
|
91
|
-
renderLabel: (0,
|
|
89
|
+
renderLabel: (0, _formatMessage.default)('Bank Name'),
|
|
92
90
|
type: "text",
|
|
93
|
-
|
|
94
|
-
"data-automation": "sdk-edit-bank-name-textinput"
|
|
95
|
-
|
|
91
|
+
isRequired: true,
|
|
92
|
+
"data-automation": "sdk-edit-bank-name-textinput",
|
|
93
|
+
ref: this.bankNameInput
|
|
94
|
+
});
|
|
96
95
|
}
|
|
97
96
|
}, {
|
|
98
97
|
key: "render",
|
|
@@ -104,7 +103,6 @@ var EditBankModal = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default,
|
|
|
104
103
|
label: (0, _formatMessage.default)('Item Bank'),
|
|
105
104
|
"data-automation": "sdk-edit-bank-modal"
|
|
106
105
|
}, (0, _emotion.jsx)(_quizCommon.ModalHeader, null, (0, _emotion.jsx)(_uiHeading.Heading, {
|
|
107
|
-
level: "reset",
|
|
108
106
|
as: "h2"
|
|
109
107
|
}, (0, _formatMessage.default)('Edit Item Bank')), (0, _emotion.jsx)(_uiButtons.CloseButton, {
|
|
110
108
|
onClick: this.closeAction,
|
|
@@ -116,7 +114,12 @@ var EditBankModal = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default,
|
|
|
116
114
|
}]);
|
|
117
115
|
EditBankModal.displayName = "EditBankModal";
|
|
118
116
|
return EditBankModal;
|
|
119
|
-
}(_react.Component)
|
|
117
|
+
}(_react.Component);
|
|
118
|
+
exports.EditBankModal = EditBankModal;
|
|
119
|
+
_EditBankModal = EditBankModal;
|
|
120
|
+
EditBankModal.displayName = 'EditBankModal';
|
|
121
|
+
EditBankModal.componentId = "Quizzes".concat(_EditBankModal.displayName);
|
|
122
|
+
EditBankModal.propTypes = {
|
|
120
123
|
modalOpen: _propTypes.default.bool.isRequired,
|
|
121
124
|
modalTrigger: _propTypes.default.instanceOf(_react.Component),
|
|
122
125
|
workingBank: _propTypes.default.instanceOf(_Bank.default).isRequired,
|
|
@@ -129,10 +132,10 @@ var EditBankModal = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default,
|
|
|
129
132
|
hideError: _propTypes.default.func.isRequired,
|
|
130
133
|
closeModal: _propTypes.default.func.isRequired,
|
|
131
134
|
styles: _propTypes.default.object
|
|
132
|
-
}
|
|
135
|
+
};
|
|
136
|
+
EditBankModal.defaultProps = {
|
|
133
137
|
displayError: false,
|
|
134
138
|
modalTrigger: null
|
|
135
|
-
}
|
|
136
|
-
exports.EditBankModal = EditBankModal;
|
|
139
|
+
};
|
|
137
140
|
var _default = EditBankModal;
|
|
138
141
|
exports.default = _default;
|
|
@@ -28,7 +28,6 @@ var _uiGrid = require("@instructure/ui-grid");
|
|
|
28
28
|
var _uiTabs = require("@instructure/ui-tabs");
|
|
29
29
|
var _uiText = require("@instructure/ui-text");
|
|
30
30
|
var _emotion = require("@instructure/emotion");
|
|
31
|
-
var _ElementsForSelectors = _interopRequireDefault(require("../../../common/util/ElementsForSelectors.js"));
|
|
32
31
|
var _CustomPropTypes = _interopRequireDefault(require("../../../common/util/CustomPropTypes.js"));
|
|
33
32
|
var _index = _interopRequireDefault(require("./ShareList/index.js"));
|
|
34
33
|
var _index2 = _interopRequireDefault(require("../AsyncSearch/index.js"));
|
|
@@ -62,9 +61,6 @@ var SharingModalPresenter = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.
|
|
|
62
61
|
};
|
|
63
62
|
_this.shareListRef = null;
|
|
64
63
|
_this.shareButtonRef = null;
|
|
65
|
-
_this.applicationElement = function () {
|
|
66
|
-
return (0, _ElementsForSelectors.default)(_this.props.appContainer);
|
|
67
|
-
};
|
|
68
64
|
// =============
|
|
69
65
|
// LIFECYCLE
|
|
70
66
|
// =============
|
|
@@ -14,12 +14,9 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
14
14
|
var _uiTopNavBar = require("@instructure/ui-top-nav-bar");
|
|
15
15
|
var _emotion = require("@instructure/emotion");
|
|
16
16
|
var _uiReactUtils = require("@instructure/ui-react-utils");
|
|
17
|
-
var
|
|
18
|
-
var _theme = _interopRequireDefault(require("./theme.js"));
|
|
19
|
-
var _quizCommon = require("@instructure/quiz-common");
|
|
20
|
-
var _dec, _class, _SecondaryNavBarButton;
|
|
17
|
+
var _SecondaryNavBarButton;
|
|
21
18
|
/** @jsx jsx */
|
|
22
|
-
var SecondaryNavBarButton =
|
|
19
|
+
var SecondaryNavBarButton = /*#__PURE__*/function (_Component) {
|
|
23
20
|
(0, _inherits2.default)(SecondaryNavBarButton, _Component);
|
|
24
21
|
var _super = (0, _createSuper2.default)(SecondaryNavBarButton);
|
|
25
22
|
function SecondaryNavBarButton() {
|
|
@@ -27,39 +24,23 @@ var SecondaryNavBarButton = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.
|
|
|
27
24
|
return _super.apply(this, arguments);
|
|
28
25
|
}
|
|
29
26
|
(0, _createClass2.default)(SecondaryNavBarButton, [{
|
|
30
|
-
key: "componentDidMount",
|
|
31
|
-
value: function componentDidMount() {
|
|
32
|
-
this.props.makeStyles();
|
|
33
|
-
}
|
|
34
|
-
}, {
|
|
35
|
-
key: "componentDidUpdate",
|
|
36
|
-
value: function componentDidUpdate() {
|
|
37
|
-
this.props.makeStyles();
|
|
38
|
-
}
|
|
39
|
-
}, {
|
|
40
27
|
key: "render",
|
|
41
28
|
value: function render() {
|
|
42
|
-
return (0, _emotion.jsx)(
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
BaseButton: {
|
|
46
|
-
primaryColor: this.props.styles.textColor,
|
|
47
|
-
primaryBackground: this.props.styles.backgroundColor,
|
|
48
|
-
primaryHoverBackground: this.props.styles.backgroundHoverColor,
|
|
49
|
-
primaryBorderColor: this.props.styles.borderColor
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}, (0, _emotion.jsx)(_uiTopNavBar.TopNavBar.Item, (0, _uiReactUtils.omitProps)(this.props, this.constructor.propTypes), this.props.children));
|
|
29
|
+
return (0, _emotion.jsx)(_uiTopNavBar.TopNavBar.Item, Object.assign({
|
|
30
|
+
color: "secondary"
|
|
31
|
+
}, (0, _uiReactUtils.omitProps)(this.props, this.constructor.propTypes)), this.props.children);
|
|
54
32
|
}
|
|
55
33
|
}]);
|
|
56
34
|
SecondaryNavBarButton.displayName = "SecondaryNavBarButton";
|
|
57
35
|
return SecondaryNavBarButton;
|
|
58
|
-
}(_react.Component)
|
|
59
|
-
children: _propTypes.default.string.isRequired,
|
|
60
|
-
styles: _propTypes.default.object,
|
|
61
|
-
makeStyles: _propTypes.default.func
|
|
62
|
-
}, _SecondaryNavBarButton)) || _class);
|
|
36
|
+
}(_react.Component);
|
|
63
37
|
exports.SecondaryNavBarButton = SecondaryNavBarButton;
|
|
38
|
+
_SecondaryNavBarButton = SecondaryNavBarButton;
|
|
39
|
+
SecondaryNavBarButton.displayName = 'TopNavBarItem';
|
|
40
|
+
SecondaryNavBarButton.componentId = "Quizzes".concat(_SecondaryNavBarButton.displayName);
|
|
41
|
+
SecondaryNavBarButton.propTypes = {
|
|
42
|
+
children: _propTypes.default.string.isRequired,
|
|
43
|
+
styles: _propTypes.default.object
|
|
44
|
+
};
|
|
64
45
|
var _default = SecondaryNavBarButton;
|
|
65
46
|
exports.default = _default;
|
|
@@ -100,9 +100,6 @@ var NavBar = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default, _theme
|
|
|
100
100
|
desktopBottomBorderInverse: false
|
|
101
101
|
} : {}),
|
|
102
102
|
navLabel: (0, _formatMessage.default)('Quizzes navigation bar'),
|
|
103
|
-
desktopConfig: {
|
|
104
|
-
hideActionsUserSeparator: true
|
|
105
|
-
},
|
|
106
103
|
smallViewportConfig: {
|
|
107
104
|
dropdownMenuToggleButtonLabel: (0, _formatMessage.default)('Toggle Menu'),
|
|
108
105
|
dropdownMenuLabel: (0, _formatMessage.default)('Main Menu')
|
|
@@ -21,7 +21,6 @@ var _componentForItem = _interopRequireDefault(require("../../../../util/compone
|
|
|
21
21
|
var _quizCommon = require("@instructure/quiz-common");
|
|
22
22
|
var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
|
|
23
23
|
var _interactionTypePropsHelper = require("../../../../util/interactionTypePropsHelper.js");
|
|
24
|
-
var _ElementsForSelectors = _interopRequireDefault(require("../../../../../common/util/ElementsForSelectors.js"));
|
|
25
24
|
var _instUIMessages = require("../../../../util/instUIMessages.js");
|
|
26
25
|
var ItemEdit = /*#__PURE__*/function (_Component) {
|
|
27
26
|
(0, _inherits2.default)(ItemEdit, _Component);
|
|
@@ -40,9 +39,6 @@ var ItemEdit = /*#__PURE__*/function (_Component) {
|
|
|
40
39
|
}
|
|
41
40
|
return null;
|
|
42
41
|
};
|
|
43
|
-
_this.applicationElement = function () {
|
|
44
|
-
return (0, _ElementsForSelectors.default)(_this.props.appContainer);
|
|
45
|
-
};
|
|
46
42
|
_this.onModalOpen = function () {
|
|
47
43
|
_this.props.occludeQuizEntries(true);
|
|
48
44
|
};
|
|
@@ -105,7 +101,6 @@ var ItemEdit = /*#__PURE__*/function (_Component) {
|
|
|
105
101
|
component: /*#__PURE__*/_react.default.createElement(_OutcomeAlignments.default, Object.assign({
|
|
106
102
|
artifactType: "quizEntry",
|
|
107
103
|
artifactId: itemId,
|
|
108
|
-
applicationElement: this.applicationElement,
|
|
109
104
|
alignmentSetId: outcomeAlignmentSetGuid,
|
|
110
105
|
contextUuid: this.props.contextUuid
|
|
111
106
|
}, launchContexts.length > 0 && {
|
|
@@ -14,7 +14,6 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
14
14
|
var _uiPopover = require("@instructure/ui-popover");
|
|
15
15
|
var _emotion = require("@instructure/emotion");
|
|
16
16
|
var _CustomPropTypes = _interopRequireDefault(require("../../../../../util/CustomPropTypes.js"));
|
|
17
|
-
var _ElementsForSelectors = _interopRequireDefault(require("../../../../../util/ElementsForSelectors.js"));
|
|
18
17
|
var _windowChecks = require("../../../../../util/windowChecks.js");
|
|
19
18
|
var _index = _interopRequireDefault(require("../Button/index.js"));
|
|
20
19
|
var _index2 = _interopRequireDefault(require("../Body/index.js"));
|
|
@@ -33,9 +32,6 @@ var AddContentPopover = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.defa
|
|
|
33
32
|
args[_key] = arguments[_key];
|
|
34
33
|
}
|
|
35
34
|
_this = _super.call.apply(_super, [this].concat(args));
|
|
36
|
-
_this.applicationElement = function () {
|
|
37
|
-
return (0, _ElementsForSelectors.default)(_this.props.appContainer);
|
|
38
|
-
};
|
|
39
35
|
_this.showContent = function () {
|
|
40
36
|
_this.props.switchOnEditing();
|
|
41
37
|
};
|
|
@@ -115,7 +115,7 @@ var SessionItemResult = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.defa
|
|
|
115
115
|
size: "small",
|
|
116
116
|
margin: "small"
|
|
117
117
|
}, (0, _emotion.jsx)(_uiText.Text, {
|
|
118
|
-
color: "
|
|
118
|
+
color: "alert"
|
|
119
119
|
}, (0, _formatMessage.default)("Regrade score { possible, plural,\n one {{points, number} / # point}\n other {{points, number} / # points}\n }", {
|
|
120
120
|
points: this.props.sessionItemResult.regradeInfo.get('newScore') || 0,
|
|
121
121
|
possible: this.props.sessionItemResult.regradeInfo.get('newPointsPossible')
|
|
@@ -16,7 +16,6 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
16
16
|
var _uiOverlays = require("@instructure/ui-overlays");
|
|
17
17
|
var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
|
|
18
18
|
var _Spinner = require("../spinner/Spinner.js");
|
|
19
|
-
var _ElementsForSelectors = _interopRequireDefault(require("../../../util/ElementsForSelectors.js"));
|
|
20
19
|
var _CustomPropTypes = _interopRequireDefault(require("../../../util/CustomPropTypes.js"));
|
|
21
20
|
var _printUtils = require("../../../util/printUtils.js");
|
|
22
21
|
var _index = _interopRequireDefault(require("../../PrintFontSizeModal/index.js"));
|
|
@@ -82,9 +81,6 @@ var PrintTrigger = /*#__PURE__*/function (_Component) {
|
|
|
82
81
|
});
|
|
83
82
|
_this.props.openPrintFontSizeModal();
|
|
84
83
|
};
|
|
85
|
-
_this.applicationElement = function () {
|
|
86
|
-
return (0, _ElementsForSelectors.default)(_this.props.appContainer);
|
|
87
|
-
};
|
|
88
84
|
_this.onExited = function () {};
|
|
89
85
|
_this.fontSize = '';
|
|
90
86
|
return _this;
|
|
@@ -93,7 +89,6 @@ var PrintTrigger = /*#__PURE__*/function (_Component) {
|
|
|
93
89
|
key: "render",
|
|
94
90
|
value: function render() {
|
|
95
91
|
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_uiOverlays.Overlay, {
|
|
96
|
-
applicationElement: this.applicationElement,
|
|
97
92
|
open: this.state.waitingForPrintingToBeReady,
|
|
98
93
|
shouldContainFocus: true,
|
|
99
94
|
transition: "fade",
|
|
@@ -15,21 +15,12 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
15
15
|
var _OutcomesPerStudentReport = _interopRequireDefault(require("@instructure/outcomes-ui/es/containers/OutcomesPerStudentReport"));
|
|
16
16
|
var _quizCommon = require("@instructure/quiz-common");
|
|
17
17
|
var _CustomPropTypes = _interopRequireDefault(require("../../../../common/util/CustomPropTypes.js"));
|
|
18
|
-
var _ElementsForSelectors = _interopRequireDefault(require("../../../../common/util/ElementsForSelectors.js"));
|
|
19
18
|
var OutcomeAnalysis = /*#__PURE__*/function (_Component) {
|
|
20
19
|
(0, _inherits2.default)(OutcomeAnalysis, _Component);
|
|
21
20
|
var _super = (0, _createSuper2.default)(OutcomeAnalysis);
|
|
22
21
|
function OutcomeAnalysis() {
|
|
23
|
-
var _this;
|
|
24
22
|
(0, _classCallCheck2.default)(this, OutcomeAnalysis);
|
|
25
|
-
|
|
26
|
-
args[_key] = arguments[_key];
|
|
27
|
-
}
|
|
28
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
29
|
-
_this.applicationElement = function () {
|
|
30
|
-
return (0, _ElementsForSelectors.default)(_this.props.appContainer);
|
|
31
|
-
};
|
|
32
|
-
return _this;
|
|
23
|
+
return _super.apply(this, arguments);
|
|
33
24
|
}
|
|
34
25
|
(0, _createClass2.default)(OutcomeAnalysis, [{
|
|
35
26
|
key: "render",
|
|
@@ -42,7 +33,6 @@ var OutcomeAnalysis = /*#__PURE__*/function (_Component) {
|
|
|
42
33
|
loadUsersOverride = _this$props.loadUsersOverride,
|
|
43
34
|
showRollups = _this$props.showRollups;
|
|
44
35
|
return /*#__PURE__*/_react.default.createElement(_OutcomesPerStudentReport.default, {
|
|
45
|
-
applicationElement: this.applicationElement,
|
|
46
36
|
artifactType: "quizzes.quiz",
|
|
47
37
|
artifactId: quizId,
|
|
48
38
|
contextUuid: contextUuid,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/quiz-core",
|
|
3
|
-
"version": "20.36.1-rc.
|
|
3
|
+
"version": "20.36.1-rc.40+704bbd129",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "The Quiz React SDK by Instructure Inc.",
|
|
6
6
|
"author": "Instructure, Inc. Engineering and Product Design",
|
|
@@ -43,59 +43,58 @@
|
|
|
43
43
|
"lib"
|
|
44
44
|
],
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@instructure/emotion": "^
|
|
46
|
+
"@instructure/emotion": "^9.11.1",
|
|
47
47
|
"@instructure/grading-utils": "^1.0.0",
|
|
48
48
|
"@instructure/outcomes-ui": "^3.2.2",
|
|
49
|
-
"@instructure/quiz-common": "^20.36.1-rc.
|
|
50
|
-
"@instructure/quiz-i18n": "^20.36.1-rc.
|
|
51
|
-
"@instructure/quiz-interactions": "^20.36.1-rc.
|
|
52
|
-
"@instructure/quiz-number-input": "^20.36.1-rc.
|
|
53
|
-
"@instructure/quiz-rce": "^20.36.1-rc.
|
|
54
|
-
"@instructure/ui-a11y-content": "^
|
|
55
|
-
"@instructure/ui-alerts": "^
|
|
56
|
-
"@instructure/ui-avatar": "^
|
|
57
|
-
"@instructure/ui-billboard": "^
|
|
58
|
-
"@instructure/ui-breadcrumb": "^
|
|
59
|
-
"@instructure/ui-buttons": "^
|
|
60
|
-
"@instructure/ui-checkbox": "^
|
|
61
|
-
"@instructure/ui-color-utils": "^
|
|
62
|
-
"@instructure/ui-dialog": "^
|
|
63
|
-
"@instructure/ui-drilldown": "^
|
|
64
|
-
"@instructure/ui-focusable": "^
|
|
65
|
-
"@instructure/ui-grid": "^
|
|
66
|
-
"@instructure/ui-heading": "^
|
|
67
|
-
"@instructure/ui-i18n": "^
|
|
68
|
-
"@instructure/ui-icons": "^
|
|
69
|
-
"@instructure/ui-img": "^
|
|
70
|
-
"@instructure/ui-link": "^
|
|
71
|
-
"@instructure/ui-list": "^
|
|
72
|
-
"@instructure/ui-menu": "^
|
|
73
|
-
"@instructure/ui-metric": "^
|
|
74
|
-
"@instructure/ui-modal": "^
|
|
75
|
-
"@instructure/ui-motion": "^
|
|
76
|
-
"@instructure/ui-number-input": "^
|
|
77
|
-
"@instructure/ui-overlays": "^
|
|
78
|
-
"@instructure/ui-pagination": "^
|
|
79
|
-
"@instructure/ui-popover": "^
|
|
80
|
-
"@instructure/ui-portal": "^
|
|
81
|
-
"@instructure/ui-progress": "^
|
|
82
|
-
"@instructure/ui-prop-types": "^
|
|
83
|
-
"@instructure/ui-radio-input": "^
|
|
84
|
-
"@instructure/ui-react-utils": "^
|
|
85
|
-
"@instructure/ui-select": "^
|
|
86
|
-
"@instructure/ui-spinner": "^
|
|
87
|
-
"@instructure/ui-table": "^
|
|
88
|
-
"@instructure/ui-tabs": "^
|
|
89
|
-
"@instructure/ui-tag": "^
|
|
90
|
-
"@instructure/ui-text": "^
|
|
91
|
-
"@instructure/ui-themes": "^
|
|
92
|
-
"@instructure/ui-toggle-details": "^
|
|
93
|
-
"@instructure/ui-tooltip": "^
|
|
94
|
-
"@instructure/ui-top-nav-bar": "^
|
|
95
|
-
"@instructure/ui-tray": "
|
|
96
|
-
"@instructure/ui-truncate-text": "^
|
|
97
|
-
"@instructure/ui-
|
|
98
|
-
"@instructure/ui-view": "^8.56.3",
|
|
49
|
+
"@instructure/quiz-common": "^20.36.1-rc.40+704bbd129",
|
|
50
|
+
"@instructure/quiz-i18n": "^20.36.1-rc.40+704bbd129",
|
|
51
|
+
"@instructure/quiz-interactions": "^20.36.1-rc.40+704bbd129",
|
|
52
|
+
"@instructure/quiz-number-input": "^20.36.1-rc.40+704bbd129",
|
|
53
|
+
"@instructure/quiz-rce": "^20.36.1-rc.40+704bbd129",
|
|
54
|
+
"@instructure/ui-a11y-content": "^9.11.1",
|
|
55
|
+
"@instructure/ui-alerts": "^9.11.1",
|
|
56
|
+
"@instructure/ui-avatar": "^9.11.1",
|
|
57
|
+
"@instructure/ui-billboard": "^9.11.1",
|
|
58
|
+
"@instructure/ui-breadcrumb": "^9.11.1",
|
|
59
|
+
"@instructure/ui-buttons": "^9.11.1",
|
|
60
|
+
"@instructure/ui-checkbox": "^9.11.1",
|
|
61
|
+
"@instructure/ui-color-utils": "^9.11.1",
|
|
62
|
+
"@instructure/ui-dialog": "^9.11.1",
|
|
63
|
+
"@instructure/ui-drilldown": "^9.11.1",
|
|
64
|
+
"@instructure/ui-focusable": "^9.11.1",
|
|
65
|
+
"@instructure/ui-grid": "^9.11.1",
|
|
66
|
+
"@instructure/ui-heading": "^9.11.1",
|
|
67
|
+
"@instructure/ui-i18n": "^9.11.1",
|
|
68
|
+
"@instructure/ui-icons": "^9.11.1",
|
|
69
|
+
"@instructure/ui-img": "^9.11.1",
|
|
70
|
+
"@instructure/ui-link": "^9.11.1",
|
|
71
|
+
"@instructure/ui-list": "^9.11.1",
|
|
72
|
+
"@instructure/ui-menu": "^9.11.1",
|
|
73
|
+
"@instructure/ui-metric": "^9.11.1",
|
|
74
|
+
"@instructure/ui-modal": "^9.11.1",
|
|
75
|
+
"@instructure/ui-motion": "^9.11.1",
|
|
76
|
+
"@instructure/ui-number-input": "^9.11.1",
|
|
77
|
+
"@instructure/ui-overlays": "^9.11.1",
|
|
78
|
+
"@instructure/ui-pagination": "^9.11.1",
|
|
79
|
+
"@instructure/ui-popover": "^9.11.1",
|
|
80
|
+
"@instructure/ui-portal": "^9.11.1",
|
|
81
|
+
"@instructure/ui-progress": "^9.11.1",
|
|
82
|
+
"@instructure/ui-prop-types": "^9.11.1",
|
|
83
|
+
"@instructure/ui-radio-input": "^9.11.1",
|
|
84
|
+
"@instructure/ui-react-utils": "^9.11.1",
|
|
85
|
+
"@instructure/ui-select": "^9.11.1",
|
|
86
|
+
"@instructure/ui-spinner": "^9.11.1",
|
|
87
|
+
"@instructure/ui-table": "^9.11.1",
|
|
88
|
+
"@instructure/ui-tabs": "^9.11.1",
|
|
89
|
+
"@instructure/ui-tag": "^9.11.1",
|
|
90
|
+
"@instructure/ui-text": "^9.11.1",
|
|
91
|
+
"@instructure/ui-themes": "^9.11.1",
|
|
92
|
+
"@instructure/ui-toggle-details": "^9.11.1",
|
|
93
|
+
"@instructure/ui-tooltip": "^9.11.1",
|
|
94
|
+
"@instructure/ui-top-nav-bar": "^9.11.1",
|
|
95
|
+
"@instructure/ui-tray": "9.11.1",
|
|
96
|
+
"@instructure/ui-truncate-text": "^9.11.1",
|
|
97
|
+
"@instructure/ui-view": "^9.11.1",
|
|
99
98
|
"aws-sdk": "^2.3.2",
|
|
100
99
|
"aws4fetch": "^1.0.20",
|
|
101
100
|
"classnames": "^2.2.5",
|
|
@@ -110,7 +109,7 @@
|
|
|
110
109
|
"file-saver": "~2.0.5",
|
|
111
110
|
"humps": "^2.0.0",
|
|
112
111
|
"immutable": "^3.8.1",
|
|
113
|
-
"instructure-validations": "^20.36.1-rc.
|
|
112
|
+
"instructure-validations": "^20.36.1-rc.40+704bbd129",
|
|
114
113
|
"ipaddr.js": "^1.5.4",
|
|
115
114
|
"isomorphic-fetch": "^2.2.0",
|
|
116
115
|
"isuuid": "^0.1.0",
|
|
@@ -142,7 +141,7 @@
|
|
|
142
141
|
},
|
|
143
142
|
"devDependencies": {
|
|
144
143
|
"@instructure/quiz-scripts": "^20.35.0",
|
|
145
|
-
"@instructure/ui-axe-check": "^
|
|
144
|
+
"@instructure/ui-axe-check": "^9.11.1",
|
|
146
145
|
"@instructure/ui-babel-preset": "^7.22.1",
|
|
147
146
|
"@instructure/ui-test-utils": "^7.22.1",
|
|
148
147
|
"@testing-library/react": "^12.1.5",
|
|
@@ -160,7 +159,7 @@
|
|
|
160
159
|
"jquery": "^2.2.3",
|
|
161
160
|
"karma-junit-reporter": "^2.0.1",
|
|
162
161
|
"most-subject": "^5.3.0",
|
|
163
|
-
"quiz-presets": "^20.36.1-rc.
|
|
162
|
+
"quiz-presets": "^20.36.1-rc.40+704bbd129",
|
|
164
163
|
"react": "^16.8.6",
|
|
165
164
|
"react-addons-test-utils": "^15.6.2",
|
|
166
165
|
"react-dom": "^16.8.6",
|
|
@@ -176,5 +175,5 @@
|
|
|
176
175
|
"publishConfig": {
|
|
177
176
|
"access": "public"
|
|
178
177
|
},
|
|
179
|
-
"gitHead": "
|
|
178
|
+
"gitHead": "704bbd129829010a57ff45776d95682f1baef26d"
|
|
180
179
|
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
var generateStyle = function generateStyle(componentTheme) {
|
|
2
|
-
return {
|
|
3
|
-
bankNameInput: {
|
|
4
|
-
flex: '1 1 auto',
|
|
5
|
-
fontSize: componentTheme.bankNameInputFontSize,
|
|
6
|
-
whiteSpace: 'nowrap',
|
|
7
|
-
textOverflow: 'ellipsis',
|
|
8
|
-
padding: componentTheme.bankNamePadding
|
|
9
|
-
},
|
|
10
|
-
bankNameLabel: {
|
|
11
|
-
padding: componentTheme.bankNameLabelPadding
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
export default generateStyle;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
2
|
-
var typography = _ref.typography,
|
|
3
|
-
spacing = _ref.spacing;
|
|
4
|
-
return {
|
|
5
|
-
bankNameInputFontSize: typography.fontSizeMedium,
|
|
6
|
-
bankNamePadding: spacing.xSmall,
|
|
7
|
-
bankNameLabelPadding: spacing.xSmall
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
export default generateComponentTheme;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
var generateStyle = function generateStyle(componentTheme) {
|
|
2
|
-
return {
|
|
3
|
-
bankNameInput: {
|
|
4
|
-
flex: '1 1 auto',
|
|
5
|
-
fontSize: componentTheme.bankNameInputFontSize,
|
|
6
|
-
whiteSpace: 'nowrap',
|
|
7
|
-
textOverflow: 'ellipsis',
|
|
8
|
-
padding: "0 ".concat(componentTheme.bankNameInputFontSize)
|
|
9
|
-
}
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
export default generateStyle;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
2
|
-
var typography = _ref.typography,
|
|
3
|
-
spacing = _ref.spacing;
|
|
4
|
-
return {
|
|
5
|
-
bankNameInputFontSize: typography.fontSizeMedium,
|
|
6
|
-
bankNameInputPadding: spacing.xSmall
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
export default generateComponentTheme;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
var generateStyle = function generateStyle(componentTheme) {
|
|
2
|
-
return {
|
|
3
|
-
textColor: componentTheme.textColor,
|
|
4
|
-
backgroundColor: componentTheme.backgroundColor,
|
|
5
|
-
backgroundHoverColor: componentTheme.backgroundHoverColor,
|
|
6
|
-
borderColor: componentTheme.borderColor
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
export default generateStyle;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
2
|
-
var colors = _ref.colors;
|
|
3
|
-
return {
|
|
4
|
-
textColor: '#000',
|
|
5
|
-
backgroundColor: colors.porcelain,
|
|
6
|
-
backgroundHoverColor: '#d8d8d8',
|
|
7
|
-
borderColor: '#d8d8d8'
|
|
8
|
-
};
|
|
9
|
-
};
|
|
10
|
-
export default generateComponentTheme;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var generateStyle = function generateStyle(componentTheme) {
|
|
8
|
-
return {
|
|
9
|
-
bankNameInput: {
|
|
10
|
-
flex: '1 1 auto',
|
|
11
|
-
fontSize: componentTheme.bankNameInputFontSize,
|
|
12
|
-
whiteSpace: 'nowrap',
|
|
13
|
-
textOverflow: 'ellipsis',
|
|
14
|
-
padding: componentTheme.bankNamePadding
|
|
15
|
-
},
|
|
16
|
-
bankNameLabel: {
|
|
17
|
-
padding: componentTheme.bankNameLabelPadding
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
var _default = generateStyle;
|
|
22
|
-
exports.default = _default;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
8
|
-
var typography = _ref.typography,
|
|
9
|
-
spacing = _ref.spacing;
|
|
10
|
-
return {
|
|
11
|
-
bankNameInputFontSize: typography.fontSizeMedium,
|
|
12
|
-
bankNamePadding: spacing.xSmall,
|
|
13
|
-
bankNameLabelPadding: spacing.xSmall
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
var _default = generateComponentTheme;
|
|
17
|
-
exports.default = _default;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var generateStyle = function generateStyle(componentTheme) {
|
|
8
|
-
return {
|
|
9
|
-
bankNameInput: {
|
|
10
|
-
flex: '1 1 auto',
|
|
11
|
-
fontSize: componentTheme.bankNameInputFontSize,
|
|
12
|
-
whiteSpace: 'nowrap',
|
|
13
|
-
textOverflow: 'ellipsis',
|
|
14
|
-
padding: "0 ".concat(componentTheme.bankNameInputFontSize)
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
var _default = generateStyle;
|
|
19
|
-
exports.default = _default;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
8
|
-
var typography = _ref.typography,
|
|
9
|
-
spacing = _ref.spacing;
|
|
10
|
-
return {
|
|
11
|
-
bankNameInputFontSize: typography.fontSizeMedium,
|
|
12
|
-
bankNameInputPadding: spacing.xSmall
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
var _default = generateComponentTheme;
|
|
16
|
-
exports.default = _default;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var generateStyle = function generateStyle(componentTheme) {
|
|
8
|
-
return {
|
|
9
|
-
textColor: componentTheme.textColor,
|
|
10
|
-
backgroundColor: componentTheme.backgroundColor,
|
|
11
|
-
backgroundHoverColor: componentTheme.backgroundHoverColor,
|
|
12
|
-
borderColor: componentTheme.borderColor
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
var _default = generateStyle;
|
|
16
|
-
exports.default = _default;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var generateComponentTheme = function generateComponentTheme(_ref) {
|
|
8
|
-
var colors = _ref.colors;
|
|
9
|
-
return {
|
|
10
|
-
textColor: '#000',
|
|
11
|
-
backgroundColor: colors.porcelain,
|
|
12
|
-
backgroundHoverColor: '#d8d8d8',
|
|
13
|
-
borderColor: '#d8d8d8'
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
var _default = generateComponentTheme;
|
|
17
|
-
exports.default = _default;
|