@instructure/quiz-core 20.36.1-rc.9 → 20.36.2
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/AddToBankModal/presenter.js +2 -1
- package/es/banks/components/AsyncSearch/index.js +2 -1
- package/es/banks/components/BankEntry/presenter.js +2 -1
- package/es/banks/components/BankSearch/presenter.js +2 -1
- package/es/banks/components/Banks/index.js +1 -0
- package/es/banks/components/Banks/presenter.js +9 -5
- package/es/banks/components/CopyMoveBankEntryModal/presenter.js +2 -1
- package/es/banks/components/CreateBankModal/presenter.js +2 -1
- package/es/banks/components/EditBankModal/presenter.js +2 -1
- package/es/banks/components/NavWrapper/styles.js +3 -4
- package/es/banks/components/SharingModal/RootAccountSharing.js +2 -1
- package/es/banks/components/SharingModal/ShareList/index.js +2 -1
- package/es/banks/components/SharingModal/index.js +2 -0
- package/es/banks/components/SharingModal/presenter.js +78 -18
- package/es/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +2 -1
- package/es/common/components/ImportModal/presenter.js +2 -1
- package/es/common/components/layout/Page/styles.js +1 -1
- package/es/common/components/layout/header/Calculator/presenter.js +2 -2
- package/es/common/components/layout/navbar/styles.js +5 -4
- package/es/common/components/layout/sidebar/Sidebar/styles.js +6 -4
- package/es/common/components/resources/item/ItemEdit/presenter.js +4 -2
- package/es/common/components/resources/quiz/instructions/styles.js +1 -1
- package/es/common/components/resources/stimulus/StimulusEditInfo/presenter.js +4 -2
- package/es/common/components/shared/GenericAsyncSearch/GenericAsyncSearch.js +2 -1
- package/es/common/components/shared/TagSelect/presenter.js +2 -1
- package/es/common/components/shared/TimeUnitsInput/index.js +1 -2
- package/es/index.js +1 -3
- package/es/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/index.js +2 -2
- package/es/moderating/components/resources/AccommodationsModal/index.js +13 -5
- package/es/moderating/components/resources/ModerateTable/presenter.js +2 -4
- package/es/moderating/components/sidebar/ModerateTray/presenter.js +29 -20
- package/lib/banks/components/AddToBankModal/presenter.js +2 -1
- package/lib/banks/components/AsyncSearch/index.js +9 -8
- package/lib/banks/components/BankEntry/presenter.js +2 -1
- package/lib/banks/components/BankSearch/presenter.js +2 -1
- package/lib/banks/components/Banks/index.js +1 -0
- package/lib/banks/components/Banks/presenter.js +13 -9
- package/lib/banks/components/CopyMoveBankEntryModal/presenter.js +2 -1
- package/lib/banks/components/CreateBankModal/presenter.js +2 -1
- package/lib/banks/components/EditBankModal/presenter.js +2 -1
- package/lib/banks/components/NavWrapper/styles.js +3 -5
- package/lib/banks/components/SharingModal/RootAccountSharing.js +4 -3
- package/lib/banks/components/SharingModal/ShareList/index.js +4 -3
- package/lib/banks/components/SharingModal/index.js +2 -0
- package/lib/banks/components/SharingModal/presenter.js +80 -20
- package/lib/building/components/resources/quizEntry/QuizEntryEdit/Header/index.js +2 -1
- package/lib/common/components/ImportModal/presenter.js +2 -1
- package/lib/common/components/layout/Page/styles.js +1 -1
- package/lib/common/components/layout/header/Calculator/presenter.js +2 -2
- package/lib/common/components/layout/navbar/styles.js +5 -5
- package/lib/common/components/layout/sidebar/Sidebar/styles.js +6 -4
- package/lib/common/components/resources/item/ItemEdit/presenter.js +4 -2
- package/lib/common/components/resources/quiz/instructions/styles.js +1 -1
- package/lib/common/components/resources/stimulus/StimulusEditInfo/presenter.js +9 -7
- package/lib/common/components/shared/GenericAsyncSearch/GenericAsyncSearch.js +4 -3
- package/lib/common/components/shared/TagSelect/presenter.js +5 -4
- package/lib/common/components/shared/TimeUnitsInput/index.js +1 -2
- package/lib/index.js +6 -22
- package/lib/moderating/components/resources/AccommodationsModal/ExtraTimeSettings/index.js +7 -7
- package/lib/moderating/components/resources/AccommodationsModal/index.js +13 -5
- package/lib/moderating/components/resources/ModerateTable/presenter.js +2 -4
- package/lib/moderating/components/sidebar/ModerateTray/presenter.js +29 -20
- package/package.json +30 -32
- package/es/banks/components/NavWrapper/externalStyles.js +0 -5
- package/es/common/components/AccessCodeTextInput/AccessCodeTextInput.stories.js +0 -11
- package/es/common/components/AccessCodeTextInput/index.js +0 -47
- package/es/common/components/MaskedTextInput/MaskedTextInput.stories.js +0 -19
- package/es/common/components/MaskedTextInput/index.js +0 -64
- package/es/common/components/layout/navbar/externalStyles.js +0 -7
- package/es/common/components/layout/sidebar/Sidebar/externalStyles.js +0 -10
- package/lib/banks/components/NavWrapper/externalStyles.js +0 -12
- package/lib/common/components/AccessCodeTextInput/AccessCodeTextInput.stories.js +0 -20
- package/lib/common/components/AccessCodeTextInput/index.js +0 -57
- package/lib/common/components/MaskedTextInput/MaskedTextInput.stories.js +0 -29
- package/lib/common/components/MaskedTextInput/index.js +0 -74
- package/lib/common/components/layout/navbar/externalStyles.js +0 -14
- package/lib/common/components/layout/sidebar/Sidebar/externalStyles.js +0 -17
|
@@ -11,12 +11,14 @@ var _reactRedux = require("../../../common/react-redux.js");
|
|
|
11
11
|
var _banks = require("../../api/banks.js");
|
|
12
12
|
var _sharedBanks = require("../../../common/actions/sharedBanks.js");
|
|
13
13
|
var _modal = require("../../../common/actions/modal.js");
|
|
14
|
+
var _featureCheck = require("../../../common/util/featureCheck.js");
|
|
14
15
|
var _presenter = _interopRequireDefault(require("./presenter.js"));
|
|
15
16
|
function mapStateToProps(state, ownProps) {
|
|
16
17
|
var sharedBanks = state.get('sharedBanks', (0, _immutable.Map)()).filter(function (sharedBank) {
|
|
17
18
|
return sharedBank.get('bankId') === ownProps.bank.id;
|
|
18
19
|
}).toList();
|
|
19
20
|
return {
|
|
21
|
+
subAccountBankSharingEnabled: (0, _featureCheck.featureOn)('sub_account_bank_sharing'),
|
|
20
22
|
sharedBanks: sharedBanks
|
|
21
23
|
};
|
|
22
24
|
}
|
|
@@ -6,9 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = exports.SharingModalPresenter = void 0;
|
|
9
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
9
|
var _regenerator = _interopRequireDefault(require("@babel/runtime/regenerator"));
|
|
11
10
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
|
|
11
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
12
12
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
13
13
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
14
14
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
@@ -27,6 +27,7 @@ var _uiView = require("@instructure/ui-view");
|
|
|
27
27
|
var _uiGrid = require("@instructure/ui-grid");
|
|
28
28
|
var _uiTabs = require("@instructure/ui-tabs");
|
|
29
29
|
var _uiText = require("@instructure/ui-text");
|
|
30
|
+
var _uiSimpleSelect = require("@instructure/ui-simple-select");
|
|
30
31
|
var _emotion = require("@instructure/emotion");
|
|
31
32
|
var _ElementsForSelectors = _interopRequireDefault(require("../../../common/util/ElementsForSelectors.js"));
|
|
32
33
|
var _CustomPropTypes = _interopRequireDefault(require("../../../common/util/CustomPropTypes.js"));
|
|
@@ -184,7 +185,27 @@ var SharingModalPresenter = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.
|
|
|
184
185
|
return originalEntity.get('permission', _quizCommon.CAN_EDIT);
|
|
185
186
|
};
|
|
186
187
|
_this.handleEntityRemove = function (entity, undoRemove) {
|
|
187
|
-
_this.
|
|
188
|
+
if (_this.props.subAccountBankSharingEnabled) {
|
|
189
|
+
_this.confirmPermissionChange(entity, _quizCommon.REMOVED_ACCESS);
|
|
190
|
+
} else {
|
|
191
|
+
var permission = undoRemove ? _this.originalPermissionForEntity(entity) : _quizCommon.REMOVED_ACCESS;
|
|
192
|
+
_this.setState(function (prevState) {
|
|
193
|
+
var sharesIndex = prevState.shares.findIndex(function (e) {
|
|
194
|
+
return e.get('id') == entity.get('id');
|
|
195
|
+
});
|
|
196
|
+
var newEntitiesIndex = prevState.newEntities.findIndex(function (e) {
|
|
197
|
+
return e.get('id') == entity.get('id');
|
|
198
|
+
});
|
|
199
|
+
var removedNewEntity = newEntitiesIndex > -1;
|
|
200
|
+
var newShares = removedNewEntity ? prevState.shares.delete(sharesIndex) : prevState.shares.setIn([sharesIndex, 'permission'], permission);
|
|
201
|
+
var newEntities = removedNewEntity ? prevState.newEntities.delete(newEntitiesIndex) : prevState.newEntities;
|
|
202
|
+
return {
|
|
203
|
+
shares: newShares,
|
|
204
|
+
newEntities: newEntities,
|
|
205
|
+
entitiesWithChangedPermission: Object.assign({}, prevState.entitiesWithChangedPermission, (0, _defineProperty2.default)({}, entity.get('id'), permission))
|
|
206
|
+
};
|
|
207
|
+
}, _this.updateEntitiesCount);
|
|
208
|
+
}
|
|
188
209
|
};
|
|
189
210
|
_this.handleSearchPermissionChange = function (e, _ref4) {
|
|
190
211
|
var value = _ref4.value;
|
|
@@ -211,13 +232,21 @@ var SharingModalPresenter = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.
|
|
|
211
232
|
permission: _this.state.searchPermission
|
|
212
233
|
});
|
|
213
234
|
}));
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
235
|
+
if (_this.props.subAccountBankSharingEnabled) {
|
|
236
|
+
newEntities.forEach(function (entity) {
|
|
237
|
+
_this.props.onShare(entity.toJS());
|
|
238
|
+
_this.props.shareBank(_this.sharedBankForEntity(entity), _this.props.getUserInfo);
|
|
239
|
+
});
|
|
240
|
+
_this.setState({
|
|
241
|
+
searchSelection: []
|
|
242
|
+
});
|
|
243
|
+
} else {
|
|
244
|
+
_this.setState({
|
|
245
|
+
searchSelection: [],
|
|
246
|
+
shares: newEntities.concat(_this.state.shares),
|
|
247
|
+
newEntities: newEntities.concat(_this.state.newEntities)
|
|
248
|
+
}, _this.updateEntitiesCount);
|
|
249
|
+
}
|
|
221
250
|
};
|
|
222
251
|
_this.updatePermission = /*#__PURE__*/function () {
|
|
223
252
|
var _ref5 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(entity, permission) {
|
|
@@ -262,7 +291,19 @@ var SharingModalPresenter = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.
|
|
|
262
291
|
});
|
|
263
292
|
};
|
|
264
293
|
_this.handleEntityPermissionChange = function (entity, permission) {
|
|
265
|
-
_this.
|
|
294
|
+
if (_this.props.subAccountBankSharingEnabled) {
|
|
295
|
+
_this.confirmPermissionChange(entity, permission);
|
|
296
|
+
} else {
|
|
297
|
+
_this.setState(function (prevState) {
|
|
298
|
+
var index = prevState.shares.findIndex(function (share) {
|
|
299
|
+
return share.get('id') === entity.get('id');
|
|
300
|
+
});
|
|
301
|
+
return {
|
|
302
|
+
shares: prevState.shares.setIn([index, 'permission'], permission),
|
|
303
|
+
entitiesWithChangedPermission: Object.assign({}, prevState.entitiesWithChangedPermission, (0, _defineProperty2.default)({}, entity.get('id'), permission))
|
|
304
|
+
};
|
|
305
|
+
});
|
|
306
|
+
}
|
|
266
307
|
};
|
|
267
308
|
_this.toggleAccountShare = function (event) {
|
|
268
309
|
_this.setState(function (prevState) {
|
|
@@ -299,14 +340,14 @@ var SharingModalPresenter = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.
|
|
|
299
340
|
selectionFilter: _this.handleSearchFilter
|
|
300
341
|
})), (0, _emotion.jsx)(_uiGrid.Grid.Col, {
|
|
301
342
|
width: "auto"
|
|
302
|
-
}, (0, _emotion.jsx)(
|
|
343
|
+
}, (0, _emotion.jsx)(_uiSimpleSelect.SimpleSelect, {
|
|
303
344
|
onChange: _this.handleSearchPermissionChange,
|
|
304
345
|
value: _this.state.searchPermission,
|
|
305
346
|
renderLabel: (0, _formatMessage.default)('Access')
|
|
306
|
-
}, (0, _emotion.jsx)(
|
|
347
|
+
}, (0, _emotion.jsx)(_uiSimpleSelect.SimpleSelect.Option, {
|
|
307
348
|
id: "sharing-modal-search-section-select-option-can-view",
|
|
308
349
|
value: _quizCommon.READ_ONLY
|
|
309
|
-
}, (0, _formatMessage.default)('Can view')), (0, _emotion.jsx)(
|
|
350
|
+
}, (0, _formatMessage.default)('Can view')), (0, _emotion.jsx)(_uiSimpleSelect.SimpleSelect.Option, {
|
|
310
351
|
id: "sharing-modal-search-section-select-option-can-edit",
|
|
311
352
|
value: _quizCommon.CAN_EDIT
|
|
312
353
|
}, (0, _formatMessage.default)('Can edit')))), (0, _emotion.jsx)(_uiGrid.Grid.Col, {
|
|
@@ -351,7 +392,7 @@ var SharingModalPresenter = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.
|
|
|
351
392
|
}, {
|
|
352
393
|
key: "componentDidUpdate",
|
|
353
394
|
value: function componentDidUpdate(prevProps, prevState) {
|
|
354
|
-
if (this.state.accountPermission !== prevState.accountPermission && this.state.accountPermission !== this.props.bank.accountPermission) {
|
|
395
|
+
if (this.props.subAccountBankSharingEnabled && this.state.accountPermission !== prevState.accountPermission && this.state.accountPermission !== this.props.bank.accountPermission) {
|
|
355
396
|
var updatedBank = this.props.bank.set('accountPermission', this.state.accountPermission);
|
|
356
397
|
this.props.updateBank(updatedBank, false);
|
|
357
398
|
}
|
|
@@ -470,20 +511,37 @@ var SharingModalPresenter = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.
|
|
|
470
511
|
var existingAccounts = existingShares.filter(function (s) {
|
|
471
512
|
return s.get('entityType') === _quizCommon.SHARED_WITH_ACCOUNT;
|
|
472
513
|
});
|
|
473
|
-
|
|
514
|
+
if (this.props.subAccountBankSharingEnabled) {
|
|
515
|
+
return this.renderSubaccountSharingEnabledEntities(existingPeople, existingCourses, existingAccounts);
|
|
516
|
+
}
|
|
517
|
+
return this.renderOriginalDesignEntities(existingPeople, existingCourses);
|
|
474
518
|
}
|
|
475
519
|
}, {
|
|
476
520
|
key: "renderFooter",
|
|
477
521
|
value: function renderFooter() {
|
|
478
|
-
|
|
522
|
+
if (this.props.subAccountBankSharingEnabled) {
|
|
523
|
+
return (0, _emotion.jsx)(_uiButtons.Button, {
|
|
524
|
+
color: "primary",
|
|
525
|
+
margin: "0 x-small 0 0",
|
|
526
|
+
onClick: this.handleDismiss
|
|
527
|
+
}, (0, _formatMessage.default)('Close'));
|
|
528
|
+
}
|
|
529
|
+
return (0, _emotion.jsx)(_react.default.Fragment, null, (0, _emotion.jsx)(_uiButtons.Button, {
|
|
530
|
+
"data-automation": "sdk-shared-bank-cancel-button",
|
|
531
|
+
color: "primary-inverse",
|
|
532
|
+
onClick: this.handleDismiss,
|
|
533
|
+
margin: "0 x-small 0 0"
|
|
534
|
+
}, (0, _formatMessage.default)('Cancel')), (0, _emotion.jsx)(_uiButtons.Button, {
|
|
535
|
+
"data-automation": "sdk-shared-bank-done-button",
|
|
479
536
|
color: "primary",
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
}, (0, _formatMessage.default)('
|
|
537
|
+
onClick: this.handleSubmit,
|
|
538
|
+
margin: "0 x-small 0 0"
|
|
539
|
+
}, (0, _formatMessage.default)('Done')));
|
|
483
540
|
}
|
|
484
541
|
}, {
|
|
485
542
|
key: "render",
|
|
486
543
|
value: function render() {
|
|
544
|
+
var subAccountBankSharingEnabled = this.props.subAccountBankSharingEnabled;
|
|
487
545
|
return (0, _emotion.jsx)(_quizCommon.Modal, {
|
|
488
546
|
open: this.props.isOpen,
|
|
489
547
|
onDismiss: this.handleDismiss,
|
|
@@ -496,7 +554,7 @@ var SharingModalPresenter = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.
|
|
|
496
554
|
placement: "end",
|
|
497
555
|
offset: "medium",
|
|
498
556
|
screenReaderLabel: (0, _formatMessage.default)('Close')
|
|
499
|
-
})), (0, _emotion.jsx)(_quizCommon.ModalBody, null, this.state.shares.size >= 0 ? this.renderEntitiesSection() : _ref7), (0, _emotion.jsx)(_quizCommon.ModalFooter, null, this.renderFooter()));
|
|
557
|
+
})), (0, _emotion.jsx)(_quizCommon.ModalBody, null, !subAccountBankSharingEnabled && this.renderRootAccountSharing(), !subAccountBankSharingEnabled && this.renderSearchSection(), this.state.shares.size >= 0 ? this.renderEntitiesSection() : _ref7), (0, _emotion.jsx)(_quizCommon.ModalFooter, null, this.renderFooter()));
|
|
500
558
|
}
|
|
501
559
|
}]);
|
|
502
560
|
SharingModalPresenter.displayName = "SharingModalPresenter";
|
|
@@ -531,6 +589,7 @@ var SharingModalPresenter = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.
|
|
|
531
589
|
removeSharedBank: _propTypes.default.func.isRequired,
|
|
532
590
|
shareBank: _propTypes.default.func.isRequired,
|
|
533
591
|
sharedBanks: _reactImmutableProptypes.default.list,
|
|
592
|
+
subAccountBankSharingEnabled: _propTypes.default.bool,
|
|
534
593
|
updateBank: _propTypes.default.func.isRequired,
|
|
535
594
|
updateSharedBankPermission: _propTypes.default.func.isRequired,
|
|
536
595
|
updateSharedCount: _propTypes.default.func,
|
|
@@ -545,6 +604,7 @@ var SharingModalPresenter = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.
|
|
|
545
604
|
onDismiss: noop,
|
|
546
605
|
onShare: function onShare() {},
|
|
547
606
|
sharedBanks: (0, _immutable.List)(),
|
|
607
|
+
subAccountBankSharingEnabled: false,
|
|
548
608
|
updateSharedCount: Function.prototype
|
|
549
609
|
}, _SharingModalPresenter)) || _class);
|
|
550
610
|
exports.SharingModalPresenter = SharingModalPresenter;
|
|
@@ -17,6 +17,7 @@ var _reactImmutableProptypes = _interopRequireDefault(require("react-immutable-p
|
|
|
17
17
|
var _partial = _interopRequireDefault(require("lodash/partial"));
|
|
18
18
|
var _uiA11yContent = require("@instructure/ui-a11y-content");
|
|
19
19
|
var _uiButtons = require("@instructure/ui-buttons");
|
|
20
|
+
var _uiTextInput = require("@instructure/ui-text-input");
|
|
20
21
|
var _emotion = require("@instructure/emotion");
|
|
21
22
|
var _quizInteractions = require("@instructure/quiz-interactions");
|
|
22
23
|
var _uiIcons = require("@instructure/ui-icons");
|
|
@@ -221,7 +222,7 @@ var QuizEntryHeader = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.defaul
|
|
|
221
222
|
css: this.props.styles.titleHolder
|
|
222
223
|
}, (0, _emotion.jsx)("span", {
|
|
223
224
|
css: this.props.styles.titleInput
|
|
224
|
-
}, (0, _emotion.jsx)(
|
|
225
|
+
}, (0, _emotion.jsx)(_uiTextInput.TextInput, {
|
|
225
226
|
ref: this.storeTitleRef,
|
|
226
227
|
renderLabel: (0, _emotion.jsx)(_uiA11yContent.ScreenReaderContent, null, titleLabelText),
|
|
227
228
|
type: "text",
|
|
@@ -19,6 +19,7 @@ var _uiProgress = require("@instructure/ui-progress");
|
|
|
19
19
|
var _uiHeading = require("@instructure/ui-heading");
|
|
20
20
|
var _uiTabs = require("@instructure/ui-tabs");
|
|
21
21
|
var _uiToggleDetails = require("@instructure/ui-toggle-details");
|
|
22
|
+
var _uiTextInput = require("@instructure/ui-text-input");
|
|
22
23
|
var _emotion = require("@instructure/emotion");
|
|
23
24
|
var _quizCommon = require("@instructure/quiz-common");
|
|
24
25
|
var _styles = _interopRequireDefault(require("./styles.js"));
|
|
@@ -199,7 +200,7 @@ var ImportModal = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.default, _
|
|
|
199
200
|
"data-automation": "sdk-import-file-selector"
|
|
200
201
|
}), fileType === 'image/*' && (0, _emotion.jsx)("div", {
|
|
201
202
|
css: this.props.styles.altTextWrapper
|
|
202
|
-
}, (0, _emotion.jsx)(
|
|
203
|
+
}, (0, _emotion.jsx)(_uiTextInput.TextInput, {
|
|
203
204
|
ref: this.setRef('altTextInput'),
|
|
204
205
|
onChange: this.onAltTextChange,
|
|
205
206
|
value: this.props.altText,
|
|
@@ -26,7 +26,7 @@ var generateStyle = function generateStyle(componentTheme, props) {
|
|
|
26
26
|
transition: componentTheme.contentTransition,
|
|
27
27
|
width: '100%',
|
|
28
28
|
'.user_content p': {
|
|
29
|
-
margin:
|
|
29
|
+
margin: componentTheme.userContentMargin,
|
|
30
30
|
'&:first-of-type': {
|
|
31
31
|
marginTop: componentTheme.userContentZeroMargin
|
|
32
32
|
},
|
|
@@ -30,8 +30,8 @@ var CalculatorButton = function CalculatorButton(_ref) {
|
|
|
30
30
|
variant: "icon",
|
|
31
31
|
renderIcon: _ref2,
|
|
32
32
|
disabled: !enabled,
|
|
33
|
-
tooltip: (0, _formatMessage.default)('
|
|
34
|
-
}, (0, _formatMessage.default)('Calculator')
|
|
33
|
+
tooltip: (0, _formatMessage.default)('Calculator')
|
|
34
|
+
}, (0, _formatMessage.default)('Calculator'));
|
|
35
35
|
}
|
|
36
36
|
return /*#__PURE__*/_react.default.createElement(_uiButtons.Button, {
|
|
37
37
|
renderIcon: _uiIcons.IconCalculatorLine,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
6
|
exports.default = void 0;
|
|
8
|
-
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
9
|
-
var _externalStyles = require("./externalStyles.js");
|
|
10
7
|
var generateStyle = function generateStyle(componentTheme) {
|
|
11
|
-
return
|
|
8
|
+
return {
|
|
9
|
+
showBrandIcon: true,
|
|
10
|
+
desktopBottomBorder: true,
|
|
11
|
+
desktopBottomBorderInverse: true,
|
|
12
12
|
backgroundColor: componentTheme.backgroundColor,
|
|
13
13
|
phoneBreakPoint: componentTheme.phoneBreakPoint
|
|
14
|
-
}
|
|
14
|
+
};
|
|
15
15
|
};
|
|
16
16
|
var _default = generateStyle;
|
|
17
17
|
exports.default = _default;
|
|
@@ -7,17 +7,19 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
9
|
var _objectSpread3 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
10
|
-
var _merge = _interopRequireDefault(require("lodash/merge"));
|
|
11
|
-
var _externalStyles = require("./externalStyles.js");
|
|
12
10
|
var generateStyle = function generateStyle(componentTheme, props) {
|
|
13
11
|
var _commonContainer;
|
|
14
12
|
var mq = "@media screen and (".concat(componentTheme.phoneBreakPoint, ")");
|
|
15
13
|
var mp = '@media print';
|
|
16
|
-
return
|
|
14
|
+
return {
|
|
17
15
|
sidebar: (0, _objectSpread3.default)((0, _objectSpread3.default)((0, _defineProperty2.default)({
|
|
18
16
|
boxSizing: 'border-box',
|
|
19
17
|
width: componentTheme.sidebarWidthClosed,
|
|
20
18
|
backgroundColor: componentTheme.sidebarBackgroundColor,
|
|
19
|
+
borderTop: "".concat(componentTheme.sidebarBorderWidth, " solid ").concat(componentTheme.sidebarBorderColor),
|
|
20
|
+
borderRight: "".concat(componentTheme.sidebarBorderWidth, " solid ").concat(componentTheme.sidebarBorderColor),
|
|
21
|
+
borderBottom: "".concat(componentTheme.sidebarBorderWidth, " solid ").concat(componentTheme.sidebarBorderColor),
|
|
22
|
+
borderLeft: "".concat(componentTheme.sidebarBorderWidth, " solid ").concat(componentTheme.sidebarBorderColor),
|
|
21
23
|
color: componentTheme.sidebarColor,
|
|
22
24
|
height: '100%',
|
|
23
25
|
overflow: 'hidden',
|
|
@@ -116,7 +118,7 @@ var generateStyle = function generateStyle(componentTheme, props) {
|
|
|
116
118
|
}), (0, _defineProperty2.default)(_commonContainer, mp, {
|
|
117
119
|
display: 'none'
|
|
118
120
|
}), _commonContainer)
|
|
119
|
-
}
|
|
121
|
+
};
|
|
120
122
|
};
|
|
121
123
|
var _default = generateStyle;
|
|
122
124
|
exports.default = _default;
|
|
@@ -15,6 +15,7 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
15
15
|
var _reactImmutableProptypes = _interopRequireDefault(require("react-immutable-proptypes"));
|
|
16
16
|
var _OutcomeAlignments = _interopRequireDefault(require("@instructure/outcomes-ui/es/containers/OutcomeAlignments"));
|
|
17
17
|
var _OutcomeCount = _interopRequireDefault(require("@instructure/outcomes-ui/es/containers/OutcomeCount"));
|
|
18
|
+
var _uiFormField = require("@instructure/ui-form-field");
|
|
18
19
|
var _uiA11yContent = require("@instructure/ui-a11y-content");
|
|
19
20
|
var _CustomPropTypes = _interopRequireDefault(require("../../../../../common/util/CustomPropTypes.js"));
|
|
20
21
|
var _componentForItem = _interopRequireDefault(require("../../../../util/componentForItem.js"));
|
|
@@ -23,6 +24,7 @@ var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/f
|
|
|
23
24
|
var _interactionTypePropsHelper = require("../../../../util/interactionTypePropsHelper.js");
|
|
24
25
|
var _ElementsForSelectors = _interopRequireDefault(require("../../../../../common/util/ElementsForSelectors.js"));
|
|
25
26
|
var _instUIMessages = require("../../../../util/instUIMessages.js");
|
|
27
|
+
var _featureCheck = require("../../../../../common/util/featureCheck.js");
|
|
26
28
|
var ItemEdit = /*#__PURE__*/function (_Component) {
|
|
27
29
|
(0, _inherits2.default)(ItemEdit, _Component);
|
|
28
30
|
var _super = (0, _createSuper2.default)(ItemEdit);
|
|
@@ -70,7 +72,7 @@ var ItemEdit = /*#__PURE__*/function (_Component) {
|
|
|
70
72
|
var launchContextUuid = this.props.scope.launch_context_uuid;
|
|
71
73
|
var launchContextTitle = this.props.scope.title;
|
|
72
74
|
// If editing within a quiz, there is no account launch context
|
|
73
|
-
if (rootAccountName) {
|
|
75
|
+
if ((0, _featureCheck.featureOn)('sub_account_bank_sharing') && rootAccountName) {
|
|
74
76
|
launchContexts.push({
|
|
75
77
|
uuid: this.props.rootAccountUuid,
|
|
76
78
|
name: rootAccountName
|
|
@@ -134,7 +136,7 @@ var ItemEdit = /*#__PURE__*/function (_Component) {
|
|
|
134
136
|
var interactionType = item.getInteractionType().slug;
|
|
135
137
|
var Interaction = (0, _componentForItem.default)(interactionType, _quizCommon.COMPONENT_EDIT);
|
|
136
138
|
var propsForInteraction = (0, _interactionTypePropsHelper.propsForInteractionEdit)(this.props, this.additionalEditOptions());
|
|
137
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
139
|
+
return /*#__PURE__*/_react.default.createElement(_uiFormField.FormFieldGroup, {
|
|
138
140
|
messages: this.getError('onSelf'),
|
|
139
141
|
description: /*#__PURE__*/_react.default.createElement(_uiA11yContent.ScreenReaderContent, null, (0, _formatMessage.default)('Edit question:')),
|
|
140
142
|
name: "edit_item_".concat(this.props.guid)
|
|
@@ -18,7 +18,7 @@ var generateStyle = function generateStyle(componentTheme) {
|
|
|
18
18
|
display: 'table'
|
|
19
19
|
},
|
|
20
20
|
'.user_content p': {
|
|
21
|
-
margin:
|
|
21
|
+
margin: componentTheme.userContentMargin,
|
|
22
22
|
'&:first-of-type': {
|
|
23
23
|
marginTop: componentTheme.userContentZeroMargin
|
|
24
24
|
},
|
|
@@ -13,11 +13,13 @@ var _react = require("react");
|
|
|
13
13
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
14
14
|
var _reactImmutableProptypes = _interopRequireDefault(require("react-immutable-proptypes"));
|
|
15
15
|
var _uiA11yContent = require("@instructure/ui-a11y-content");
|
|
16
|
+
var _uiTextInput = require("@instructure/ui-text-input");
|
|
16
17
|
var _uiFormField = require("@instructure/ui-form-field");
|
|
17
18
|
var _emotion = require("@instructure/emotion");
|
|
18
19
|
var _uiHeading = require("@instructure/ui-heading");
|
|
19
20
|
var _quizRce = require("@instructure/quiz-rce");
|
|
20
21
|
var _instUIMessages = require("../../../../util/instUIMessages.js");
|
|
22
|
+
var _uiSimpleSelect = require("@instructure/ui-simple-select");
|
|
21
23
|
var _uiIcons = require("@instructure/ui-icons");
|
|
22
24
|
var _uiToggleDetails = require("@instructure/ui-toggle-details");
|
|
23
25
|
var _quizCommon = require("@instructure/quiz-common");
|
|
@@ -83,18 +85,18 @@ var StimulusEditInfo = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.defau
|
|
|
83
85
|
var stimulusOrientation = this.props.workingStimulus.get('orientation');
|
|
84
86
|
return (0, _emotion.jsx)("div", {
|
|
85
87
|
css: this.props.styles.section
|
|
86
|
-
}, (0, _emotion.jsx)(
|
|
88
|
+
}, (0, _emotion.jsx)(_uiSimpleSelect.SimpleSelect, {
|
|
87
89
|
renderLabel: (0, _formatMessage.default)('Orientation'),
|
|
88
90
|
onChange: this.onOrientationChange,
|
|
89
91
|
value: stimulusOrientation,
|
|
90
92
|
renderBeforeInput: (0, _emotion.jsx)(_uiIcons.IconUpdownLine, {
|
|
91
93
|
rotate: stimulusOrientation === _quizCommon.TOP ? '0' : '90'
|
|
92
94
|
})
|
|
93
|
-
}, (0, _emotion.jsx)(
|
|
95
|
+
}, (0, _emotion.jsx)(_uiSimpleSelect.SimpleSelect.Option, {
|
|
94
96
|
renderBeforeLabel: _ref3,
|
|
95
97
|
id: "stimulus-orientation-select-option-left",
|
|
96
98
|
value: "left"
|
|
97
|
-
}, (0, _formatMessage.default)('Questions to the right')), (0, _emotion.jsx)(
|
|
99
|
+
}, (0, _formatMessage.default)('Questions to the right')), (0, _emotion.jsx)(_uiSimpleSelect.SimpleSelect.Option, {
|
|
98
100
|
renderBeforeLabel: _ref4,
|
|
99
101
|
id: "stimulus-orientation-select-option-top",
|
|
100
102
|
value: "top"
|
|
@@ -106,7 +108,7 @@ var StimulusEditInfo = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.defau
|
|
|
106
108
|
var stimulus = this.props.workingStimulus;
|
|
107
109
|
var textAreaId = "stimulusBodyEdit_".concat(stimulus.id, "_").concat(this.props.isBankedContent);
|
|
108
110
|
var stimulusBodyId = "stimulusBodyEdit_".concat(stimulus.id, "_body");
|
|
109
|
-
return (0, _emotion.jsx)(
|
|
111
|
+
return (0, _emotion.jsx)(_uiFormField.FormFieldGroup, {
|
|
110
112
|
messages: this.inputErrors('onSelf'),
|
|
111
113
|
description: (0, _emotion.jsx)(_uiA11yContent.ScreenReaderContent, null, (0, _formatMessage.default)('Edit Stimulus'))
|
|
112
114
|
}, (0, _emotion.jsx)(_uiHeading.Heading, {
|
|
@@ -114,7 +116,7 @@ var StimulusEditInfo = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.defau
|
|
|
114
116
|
as: "h2"
|
|
115
117
|
}, this.headerText()), (0, _emotion.jsx)("div", {
|
|
116
118
|
css: this.props.styles.section
|
|
117
|
-
}, (0, _emotion.jsx)(
|
|
119
|
+
}, (0, _emotion.jsx)(_uiTextInput.TextInput, {
|
|
118
120
|
messages: this.inputErrors('title'),
|
|
119
121
|
renderLabel: (0, _formatMessage.default)('Title'),
|
|
120
122
|
type: "text",
|
|
@@ -124,7 +126,7 @@ var StimulusEditInfo = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.defau
|
|
|
124
126
|
"data-automation": "sdk-stimulus-title-input"
|
|
125
127
|
})), (0, _emotion.jsx)("div", {
|
|
126
128
|
css: this.props.styles.section
|
|
127
|
-
}, (0, _emotion.jsx)(
|
|
129
|
+
}, (0, _emotion.jsx)(_uiTextInput.TextInput, {
|
|
128
130
|
renderLabel: this.renderOptionalLabel((0, _formatMessage.default)('Instructions')),
|
|
129
131
|
type: "text",
|
|
130
132
|
onChange: this.onTextInputChange('instructions'),
|
|
@@ -155,7 +157,7 @@ var StimulusEditInfo = (_dec = (0, _quizCommon.withStyleOverrides)(_styles.defau
|
|
|
155
157
|
summary: (0, _formatMessage.default)('Options')
|
|
156
158
|
}, this.props.stimulusOrientationEnabled ? this.renderStimulusOrientationSelect() : null, (0, _emotion.jsx)("div", {
|
|
157
159
|
css: this.props.styles.section
|
|
158
|
-
}, (0, _emotion.jsx)(
|
|
160
|
+
}, (0, _emotion.jsx)(_uiTextInput.TextInput, {
|
|
159
161
|
renderLabel: this.renderOptionalLabel((0, _formatMessage.default)('Source URL'), (0, _formatMessage.default)('(optional - not visible to students)')),
|
|
160
162
|
type: "text",
|
|
161
163
|
onChange: this.onTextInputChange('sourceUrl'),
|
|
@@ -13,6 +13,7 @@ var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
|
|
|
13
13
|
var _react = _interopRequireWildcard(require("react"));
|
|
14
14
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
15
15
|
var _debounce = _interopRequireDefault(require("lodash/fp/debounce"));
|
|
16
|
+
var _uiSelect = require("@instructure/ui-select");
|
|
16
17
|
var _uiSpinner = require("@instructure/ui-spinner");
|
|
17
18
|
var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
|
|
18
19
|
var _quizCommon = require("@instructure/quiz-common");
|
|
@@ -90,7 +91,7 @@ var GenericAsyncSearch = /*#__PURE__*/function (_Component) {
|
|
|
90
91
|
};
|
|
91
92
|
_this.actualOptions = function () {
|
|
92
93
|
return _this.state.options.map(function (option) {
|
|
93
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
94
|
+
return /*#__PURE__*/_react.default.createElement(_uiSelect.Select.Option, {
|
|
94
95
|
id: option.id,
|
|
95
96
|
key: option.id,
|
|
96
97
|
isHighlighted: option.id === _this.state.highlightedOptionId
|
|
@@ -106,7 +107,7 @@ var GenericAsyncSearch = /*#__PURE__*/function (_Component) {
|
|
|
106
107
|
return _this.state.inputValue === '' ? (0, _formatMessage.default)('Write to search') : (0, _formatMessage.default)('No Results');
|
|
107
108
|
};
|
|
108
109
|
_this.emptyOrLoadingOption = function () {
|
|
109
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
110
|
+
return /*#__PURE__*/_react.default.createElement(_uiSelect.Select.Option, {
|
|
110
111
|
id: _quizCommon.SELECT_EMPTY_OPTION,
|
|
111
112
|
key: _quizCommon.SELECT_EMPTY_OPTION
|
|
112
113
|
}, _this.state.isLoading ? /*#__PURE__*/_react.default.createElement(_uiSpinner.Spinner, {
|
|
@@ -140,7 +141,7 @@ var GenericAsyncSearch = /*#__PURE__*/function (_Component) {
|
|
|
140
141
|
}, {
|
|
141
142
|
key: "render",
|
|
142
143
|
value: function render() {
|
|
143
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
144
|
+
return /*#__PURE__*/_react.default.createElement(_uiSelect.Select, {
|
|
144
145
|
"data-automation": this.props.selectAutomation,
|
|
145
146
|
renderLabel: this.props.label,
|
|
146
147
|
placeholder: this.props.placeholder,
|
|
@@ -13,6 +13,7 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
|
|
|
13
13
|
var _createSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/createSuper"));
|
|
14
14
|
var _react = _interopRequireWildcard(require("react"));
|
|
15
15
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
16
|
+
var _uiSelect = require("@instructure/ui-select");
|
|
16
17
|
var _index = _interopRequireDefault(require("../TagWrapper/index.js"));
|
|
17
18
|
var _differenceBy = _interopRequireDefault(require("lodash/differenceBy"));
|
|
18
19
|
var _formatMessage = _interopRequireDefault(require("@instructure/quiz-i18n/es/format-message"));
|
|
@@ -180,7 +181,7 @@ var TagSelect = /*#__PURE__*/function (_Component) {
|
|
|
180
181
|
tagSuggestions = _this$props2.tagSuggestions;
|
|
181
182
|
var notSelectedTagSuggestions = (0, _differenceBy.default)(tagSuggestions, tags, 'value');
|
|
182
183
|
var options = notSelectedTagSuggestions.map(function (tag) {
|
|
183
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
184
|
+
return /*#__PURE__*/_react.default.createElement(_uiSelect.Select.Option, {
|
|
184
185
|
key: _this3.encodeTag(tag),
|
|
185
186
|
id: _this3.encodeTag(tag),
|
|
186
187
|
isHighlighted: _this3.encodeTag(tag) === _this3.state.highlightedOptionId
|
|
@@ -192,7 +193,7 @@ var TagSelect = /*#__PURE__*/function (_Component) {
|
|
|
192
193
|
return tag.value === inputValue;
|
|
193
194
|
})) {
|
|
194
195
|
if (allowNewTags && inputValue.length > 0) {
|
|
195
|
-
options.push(/*#__PURE__*/_react.default.createElement(
|
|
196
|
+
options.push(/*#__PURE__*/_react.default.createElement(_uiSelect.Select.Option, {
|
|
196
197
|
id: this.encodeTag({
|
|
197
198
|
value: inputValue
|
|
198
199
|
}),
|
|
@@ -206,7 +207,7 @@ var TagSelect = /*#__PURE__*/function (_Component) {
|
|
|
206
207
|
}
|
|
207
208
|
}
|
|
208
209
|
if (options.length === 0) {
|
|
209
|
-
options.push(/*#__PURE__*/_react.default.createElement(
|
|
210
|
+
options.push(/*#__PURE__*/_react.default.createElement(_uiSelect.Select.Option, {
|
|
210
211
|
id: _quizCommon.SELECT_EMPTY_OPTION,
|
|
211
212
|
key: _quizCommon.SELECT_EMPTY_OPTION
|
|
212
213
|
}, this.emptyOption()));
|
|
@@ -219,7 +220,7 @@ var TagSelect = /*#__PURE__*/function (_Component) {
|
|
|
219
220
|
var _this$state = this.state,
|
|
220
221
|
inputValue = _this$state.inputValue,
|
|
221
222
|
isShowingOptions = _this$state.isShowingOptions;
|
|
222
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
223
|
+
return /*#__PURE__*/_react.default.createElement(_uiSelect.Select, {
|
|
223
224
|
renderLabel: (0, _formatMessage.default)('Tags and Metadata'),
|
|
224
225
|
inputValue: inputValue,
|
|
225
226
|
isShowingOptions: isShowingOptions,
|
|
@@ -144,8 +144,7 @@ var TimeUnitsInput = /*#__PURE__*/function (_Component) {
|
|
|
144
144
|
newHours = _breakdownSeconds4.hours,
|
|
145
145
|
newMinutes = _breakdownSeconds4.minutes;
|
|
146
146
|
if (_this.state.shouldResetOnNormalize) {
|
|
147
|
-
|
|
148
|
-
(_this$props$onReset = (_this$props = _this.props).onReset) === null || _this$props$onReset === void 0 ? void 0 : _this$props$onReset.call(_this$props);
|
|
147
|
+
_this.props.onReset();
|
|
149
148
|
}
|
|
150
149
|
_this.setState({
|
|
151
150
|
days: newDays,
|
package/lib/index.js
CHANGED
|
@@ -82,8 +82,6 @@ var _exportNames = {
|
|
|
82
82
|
TagWrapper: true,
|
|
83
83
|
RetryGradePassbackButton: true,
|
|
84
84
|
GenericAsyncSearch: true,
|
|
85
|
-
MaskedTextInput: true,
|
|
86
|
-
AccessCodeTextInput: true,
|
|
87
85
|
config: true,
|
|
88
86
|
Fetcher: true,
|
|
89
87
|
httpHeaders: true,
|
|
@@ -675,18 +673,6 @@ Object.defineProperty(exports, "GenericAsyncSearch", {
|
|
|
675
673
|
return _GenericAsyncSearch.GenericAsyncSearch;
|
|
676
674
|
}
|
|
677
675
|
});
|
|
678
|
-
Object.defineProperty(exports, "MaskedTextInput", {
|
|
679
|
-
enumerable: true,
|
|
680
|
-
get: function get() {
|
|
681
|
-
return _index58.MaskedTextInput;
|
|
682
|
-
}
|
|
683
|
-
});
|
|
684
|
-
Object.defineProperty(exports, "AccessCodeTextInput", {
|
|
685
|
-
enumerable: true,
|
|
686
|
-
get: function get() {
|
|
687
|
-
return _index59.AccessCodeTextInput;
|
|
688
|
-
}
|
|
689
|
-
});
|
|
690
676
|
Object.defineProperty(exports, "config", {
|
|
691
677
|
enumerable: true,
|
|
692
678
|
get: function get() {
|
|
@@ -798,7 +784,7 @@ Object.defineProperty(exports, "formatTime", {
|
|
|
798
784
|
Object.defineProperty(exports, "generateImportModalId", {
|
|
799
785
|
enumerable: true,
|
|
800
786
|
get: function get() {
|
|
801
|
-
return
|
|
787
|
+
return _index58.generateImportModalId;
|
|
802
788
|
}
|
|
803
789
|
});
|
|
804
790
|
Object.defineProperty(exports, "TimerService", {
|
|
@@ -1547,8 +1533,6 @@ var _index55 = require("./common/components/shared/FormattedDuration/index.js");
|
|
|
1547
1533
|
var _index56 = _interopRequireDefault(require("./common/components/shared/TagWrapper/index.js"));
|
|
1548
1534
|
var _index57 = require("./moderating/components/resources/RetryGradePassbackButton/index.js");
|
|
1549
1535
|
var _GenericAsyncSearch = require("./common/components/shared/GenericAsyncSearch/GenericAsyncSearch.js");
|
|
1550
|
-
var _index58 = require("./common/components/MaskedTextInput/index.js");
|
|
1551
|
-
var _index59 = require("./common/components/AccessCodeTextInput/index.js");
|
|
1552
1536
|
var _config = require("./config.js");
|
|
1553
1537
|
var _Fetcher = require("./common/util/Fetcher.js");
|
|
1554
1538
|
var _httpHeaders = require("./common/util/httpHeaders.js");
|
|
@@ -1561,7 +1545,7 @@ var _interactionTypePropsHelper = require("./common/util/interactionTypePropsHel
|
|
|
1561
1545
|
var _generateDisplayPositions = require("./common/util/generateDisplayPositions.js");
|
|
1562
1546
|
var _makeScrollable = require("./common/components/shared/functionality/makeScrollable.js");
|
|
1563
1547
|
var _formatTimespan = require("./common/util/formatTimespan.js");
|
|
1564
|
-
var
|
|
1548
|
+
var _index58 = require("./common/components/ImportModal/index.js");
|
|
1565
1549
|
var _TimerService = require("./common/util/TimerService.js");
|
|
1566
1550
|
var _TimeRecordingService = require("./common/util/TimeRecordingService.js");
|
|
1567
1551
|
var _windowChecks = require("./common/util/windowChecks.js");
|
|
@@ -1608,15 +1592,15 @@ var _rce2 = require("./common/selectors/rce.js");
|
|
|
1608
1592
|
var _quizSessions4 = require("./common/selectors/quizSessions.js");
|
|
1609
1593
|
var _sessionItems = require("./common/selectors/sessionItems.js");
|
|
1610
1594
|
var _sessionItemResults = require("./common/selectors/sessionItemResults.js");
|
|
1611
|
-
var
|
|
1612
|
-
Object.keys(
|
|
1595
|
+
var _index59 = require("./common/records/index.js");
|
|
1596
|
+
Object.keys(_index59).forEach(function (key) {
|
|
1613
1597
|
if (key === "default" || key === "__esModule") return;
|
|
1614
1598
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
1615
|
-
if (key in exports && exports[key] ===
|
|
1599
|
+
if (key in exports && exports[key] === _index59[key]) return;
|
|
1616
1600
|
Object.defineProperty(exports, key, {
|
|
1617
1601
|
enumerable: true,
|
|
1618
1602
|
get: function get() {
|
|
1619
|
-
return
|
|
1603
|
+
return _index59[key];
|
|
1620
1604
|
}
|
|
1621
1605
|
});
|
|
1622
1606
|
});
|