studiokit-scaffolding-js 7.0.12-next.1.1 → 7.0.12-next.1.4
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/lib/components/ActionList.js +3 -38
- package/lib/components/AlertDialog.js +3 -5
- package/lib/components/AlertWithIcon.js +6 -19
- package/lib/components/ConnectedModal.js +3 -16
- package/lib/components/Dropdowns/GroupsDropdown.d.ts +2 -2
- package/lib/components/Dropdowns/ManagedNavDropdown.d.ts +1 -1
- package/lib/components/Dropdowns/UserDropdown.js +3 -16
- package/lib/components/Dropdowns/index.js +2 -4
- package/lib/components/EntityOwnerList.d.ts +2 -2
- package/lib/components/ErrorBoundary.js +6 -52
- package/lib/components/ErrorMessage.js +2 -4
- package/lib/components/Forms/DateField.d.ts +1 -1
- package/lib/components/Forms/DateField.js +3 -5
- package/lib/components/Forms/TimeField.d.ts +1 -1
- package/lib/components/Forms/TimeField.js +4 -6
- package/lib/components/Forms/index.js +3 -16
- package/lib/components/Groups/CreateEditCopySaveButtons.js +3 -5
- package/lib/components/Groups/ExternalGroups/Attach.d.ts +3 -3
- package/lib/components/Groups/ExternalGroups/Table.js +4 -17
- package/lib/components/Groups/RosterSyncInfo.js +4 -6
- package/lib/components/HOC/AccessibleAppComponent.js +2 -34
- package/lib/components/HOC/ActivityRequiredComponent.d.ts +2 -2
- package/lib/components/HOC/ActivityRequiredComponent.js +2 -12
- package/lib/components/HOC/AsyncComponent.d.ts +1 -1
- package/lib/components/HOC/AsyncComponent.js +2 -10
- package/lib/components/HOC/AuthenticatedComponent.js +2 -12
- package/lib/components/HOC/CollectionComponent.d.ts +1 -1
- package/lib/components/HOC/CollectionComponent.js +3 -16
- package/lib/components/HOC/CollectionFirstItemComponent.d.ts +2 -2
- package/lib/components/HOC/CollectionFirstItemComponent.js +2 -4
- package/lib/components/HOC/CollectionItemComponent.d.ts +1 -1
- package/lib/components/HOC/CollectionItemComponent.js +3 -16
- package/lib/components/HOC/ConnectedModalComponent.d.ts +1 -1
- package/lib/components/HOC/ConnectedModalComponent.js +2 -12
- package/lib/components/HOC/DataDependentComponent.js +2 -12
- package/lib/components/HOC/EntityComponent.d.ts +2 -2
- package/lib/components/HOC/EntityComponent.js +3 -5
- package/lib/components/HOC/FullscreenModalComponent.d.ts +1 -1
- package/lib/components/HOC/FullscreenModalComponent.js +3 -16
- package/lib/components/HOC/ModelContextDependencyVerifyComponent.d.ts +6 -6
- package/lib/components/HOC/ModelErrorRedirectComponent.d.ts +2 -2
- package/lib/components/HOC/UnauthenticatedComponent.d.ts +2 -2
- package/lib/components/HOC/UnauthenticatedComponent.js +2 -12
- package/lib/components/HOC/UserComponent.js +3 -5
- package/lib/components/Icons/IconAlphaList.js +2 -4
- package/lib/components/Icons/IconExternalUser.js +2 -4
- package/lib/components/Icons/IconImpersonation.js +2 -4
- package/lib/components/Icons/IconStopImpersonating.js +2 -4
- package/lib/components/Icons/IconTable.js +2 -4
- package/lib/components/Icons/IconTableDeleteCol.js +2 -4
- package/lib/components/Icons/IconTableDeleteRow.js +2 -4
- package/lib/components/Icons/IconTableInsertCol.js +2 -4
- package/lib/components/Icons/IconTableInsertRow.js +2 -4
- package/lib/components/Impersonation/Button.js +3 -16
- package/lib/components/Impersonation/Link.js +2 -12
- package/lib/components/LockDownBrowser/Check.js +3 -5
- package/lib/components/LockDownBrowser/ExitButton.js +2 -4
- package/lib/components/LockDownBrowser/Launch.js +2 -34
- package/lib/components/Lti/Confirm.js +3 -5
- package/lib/components/Lti/CreateNonLtiGroupAlertDialog.js +2 -12
- package/lib/components/ManageTable.d.ts +1 -1
- package/lib/components/ManageTable.js +2 -4
- package/lib/components/NewVersionAlert.d.ts +1 -1
- package/lib/components/NewVersionAlert.js +4 -6
- package/lib/components/Notifications.d.ts +1 -1
- package/lib/components/Notifications.js +2 -4
- package/lib/components/PaginationNextButton.js +2 -4
- package/lib/components/PaginationPreviousButton.js +2 -4
- package/lib/components/Quill/CustomToolbar.js +4 -39
- package/lib/components/Quill/ImageWarning.js +3 -5
- package/lib/components/Quill/ImageWithAltTextModal.d.ts +0 -1
- package/lib/components/Quill/ImageWithAltTextModal.js +12 -12
- package/lib/components/Quill/index.js +2 -4
- package/lib/components/RefreshIndicator/Bordered.js +2 -12
- package/lib/components/RefreshIndicator/Inline.js +3 -16
- package/lib/components/RefreshIndicator/index.js +3 -38
- package/lib/components/SearchControls.js +4 -6
- package/lib/components/SentryRoute.js +2 -34
- package/lib/components/Tables/RoleFilter.d.ts +1 -1
- package/lib/components/Tables/TextFilter.d.ts +1 -1
- package/lib/components/Tables/TextFilter.js +2 -4
- package/lib/components/UserRoles/Add.d.ts +1 -1
- package/lib/components/UserRoles/Add.js +4 -6
- package/lib/components/UserRoles/Context.js +2 -4
- package/lib/components/UserRoles/RoleCell.js +2 -4
- package/lib/components/UserRoles/Select.js +3 -16
- package/lib/components/UserRoles/Table.js +3 -38
- package/lib/components/UserRoles/index.d.ts +2 -2
- package/lib/config/eslint/index.d.ts +1 -1
- package/lib/config/eslint/index.js +8 -10
- package/lib/config/eslint/lib/typescript.d.ts +1 -1
- package/lib/config/eslint/lib/typescript.js +8 -10
- package/lib/config/eslint/react.d.ts +1 -1
- package/lib/config/eslint/react.js +8 -12
- package/lib/constants/index.js +13 -26
- package/lib/constants/userRole.d.ts +1 -1
- package/lib/hooks/usePrevious.js +1 -0
- package/lib/index.js +7 -23
- package/lib/redux/actions/ModelAction.d.ts +2 -1
- package/lib/redux/actions/index.js +6 -19
- package/lib/redux/configureReducers.js +2 -4
- package/lib/redux/configureStore.js +5 -40
- package/lib/redux/reducers/index.js +6 -8
- package/lib/redux/reducers/modalsReducer.js +2 -12
- package/lib/redux/reducers/modelsReducer.js +2 -4
- package/lib/redux/sagas/clockOffsetSaga.js +2 -4
- package/lib/redux/sagas/errorSaga.js +2 -4
- package/lib/redux/sagas/googleAnalyticsSaga.js +2 -4
- package/lib/redux/sagas/modelFetchSaga.js +2 -4
- package/lib/redux/sagas/rootSaga.js +19 -54
- package/lib/redux/sagas/sentrySaga.js +2 -34
- package/lib/services/codeProviderService.js +2 -12
- package/lib/services/dateService.js +2 -4
- package/lib/services/persistenceService.js +2 -4
- package/lib/services/ticketProviderService.js +2 -12
- package/lib/startup.js +4 -39
- package/lib/types/auth/index.js +8 -21
- package/lib/types/index.js +29 -42
- package/lib/types/net/index.js +17 -30
- package/lib/utils/collection.js +2 -4
- package/lib/utils/cookies.js +2 -34
- package/lib/utils/date.js +3 -5
- package/lib/utils/events.js +2 -4
- package/lib/utils/groupRoles.js +2 -4
- package/lib/utils/quill.js +2 -4
- package/lib/utils/route.js +3 -5
- package/lib/utils/shard.js +2 -4
- package/lib/utils/timezone.js +2 -34
- package/lib/utils/url.js +2 -10
- package/package.json +41 -42
|
@@ -1,46 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
-
};
|
|
38
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
3
|
exports.ActionList = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
40
5
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
41
6
|
const core_1 = require("@material-ui/core");
|
|
42
|
-
const MoreVert_1 = __importDefault(require("@material-ui/icons/MoreVert"));
|
|
43
|
-
const react_1 = __importStar(require("react"));
|
|
7
|
+
const MoreVert_1 = tslib_1.__importDefault(require("@material-ui/icons/MoreVert"));
|
|
8
|
+
const react_1 = tslib_1.__importStar(require("react"));
|
|
44
9
|
const ActionList = ({ actions = [], model = null, className, alwaysShowKebab }) => {
|
|
45
10
|
const anchorRef = react_1.default.useRef(null);
|
|
46
11
|
const [infoMenuAnchorElement, setInfoMenuAnchorElement] = (0, react_1.useState)(undefined);
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.AlertDialog = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
7
5
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const Button_1 = __importDefault(require("@material-ui/core/Button"));
|
|
6
|
+
const Button_1 = tslib_1.__importDefault(require("@material-ui/core/Button"));
|
|
9
7
|
const react_bootstrap_1 = require("react-bootstrap");
|
|
10
|
-
const ConnectedModal_1 = __importDefault(require("./ConnectedModal"));
|
|
8
|
+
const ConnectedModal_1 = tslib_1.__importDefault(require("./ConnectedModal"));
|
|
11
9
|
const AlertDialog = (props) => {
|
|
12
10
|
const { isOpen, title, description, onProceed, proceedText, onCancel, cancelText, hideCancel, onDestroy, destroyText, manualBackground } = props;
|
|
13
11
|
return ((0, jsx_runtime_1.jsxs)(ConnectedModal_1.default, { show: isOpen, onHide: onCancel, className: `z-9999${manualBackground ? ' bg-black-50' : ''}`, children: [(0, jsx_runtime_1.jsx)(react_bootstrap_1.Modal.Header, { closeButton: true, children: (0, jsx_runtime_1.jsx)(react_bootstrap_1.Modal.Title, { children: title }) }), !!description && (0, jsx_runtime_1.jsx)(react_bootstrap_1.Modal.Body, { children: description }), (0, jsx_runtime_1.jsxs)(react_bootstrap_1.Modal.Footer, { children: [!!onProceed && ((0, jsx_runtime_1.jsx)(Button_1.default, { id: "alert-dialog-proceed-btn", "aria-label": proceedText || 'Confirm', className: "btn-primary ttc fr mb1", color: "primary", onClick: onProceed, children: proceedText || 'Confirm' })), !hideCancel && ((0, jsx_runtime_1.jsx)(Button_1.default, { id: "alert-dialog-cancel-btn", color: "primary", "aria-label": cancelText || 'Cancel', className: `btn-text ttc${onDestroy ? ' fr' : ' fl'} ${onProceed ? ' mr1' : ''}`, onClick: onCancel, children: cancelText || 'Cancel' })), !!onDestroy && ((0, jsx_runtime_1.jsx)(Button_1.default, { id: "alert-dialog-destroy-btn", "aria-label": destroyText || 'Destroy', color: "secondary", className: "btn-text color-red ttc fl", onClick: onDestroy, children: destroyText || 'Destroy' }))] })] }));
|
|
@@ -1,25 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
-
var t = {};
|
|
4
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
-
t[p] = s[p];
|
|
6
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
-
t[p[i]] = s[p[i]];
|
|
10
|
-
}
|
|
11
|
-
return t;
|
|
12
|
-
};
|
|
13
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
3
|
exports.AlertWithIcon = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
18
5
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
|
-
const CheckCircle_1 = __importDefault(require("@material-ui/icons/CheckCircle"));
|
|
20
|
-
const Error_1 = __importDefault(require("@material-ui/icons/Error"));
|
|
21
|
-
const Info_1 = __importDefault(require("@material-ui/icons/Info"));
|
|
22
|
-
const Warning_1 = __importDefault(require("@material-ui/icons/Warning"));
|
|
6
|
+
const CheckCircle_1 = tslib_1.__importDefault(require("@material-ui/icons/CheckCircle"));
|
|
7
|
+
const Error_1 = tslib_1.__importDefault(require("@material-ui/icons/Error"));
|
|
8
|
+
const Info_1 = tslib_1.__importDefault(require("@material-ui/icons/Info"));
|
|
9
|
+
const Warning_1 = tslib_1.__importDefault(require("@material-ui/icons/Warning"));
|
|
23
10
|
const react_bootstrap_1 = require("react-bootstrap");
|
|
24
11
|
function getIconForVariant(variant, iconClassName) {
|
|
25
12
|
const combinedIconClassName = `self-start mr2 ${iconClassName ? ` ${iconClassName}` : ''}`;
|
|
@@ -37,7 +24,7 @@ function getIconForVariant(variant, iconClassName) {
|
|
|
37
24
|
}
|
|
38
25
|
}
|
|
39
26
|
const AlertWithIcon = props => {
|
|
40
|
-
const { iconClassName, className, children, variant } = props, otherProps = __rest(props, ["iconClassName", "className", "children", "variant"]);
|
|
27
|
+
const { iconClassName, className, children, variant } = props, otherProps = tslib_1.__rest(props, ["iconClassName", "className", "children", "variant"]);
|
|
41
28
|
const combinedClassName = `alert-with-icon${className ? ` ${className}` : ''}`;
|
|
42
29
|
const Icon = getIconForVariant(variant, iconClassName);
|
|
43
30
|
return ((0, jsx_runtime_1.jsxs)(react_bootstrap_1.Alert, Object.assign({ className: combinedClassName, variant: variant }, otherProps, { children: [Icon, props.children] })));
|
|
@@ -1,26 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
-
var t = {};
|
|
4
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
-
t[p] = s[p];
|
|
6
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
-
t[p[i]] = s[p[i]];
|
|
10
|
-
}
|
|
11
|
-
return t;
|
|
12
|
-
};
|
|
13
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
17
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
18
5
|
const react_bootstrap_1 = require("react-bootstrap");
|
|
19
|
-
const ConnectedModalComponent_1 = __importDefault(require("./HOC/ConnectedModalComponent"));
|
|
6
|
+
const ConnectedModalComponent_1 = tslib_1.__importDefault(require("./HOC/ConnectedModalComponent"));
|
|
20
7
|
const ConnectedModal = (_a) => {
|
|
21
8
|
var {
|
|
22
9
|
// exclude props that shouldn't be passed to the Modal
|
|
23
|
-
guid, modals, isTopOpenFullscreenModal, dispatch } = _a, modalProps = __rest(_a, ["guid", "modals", "isTopOpenFullscreenModal", "dispatch"]);
|
|
10
|
+
guid, modals, isTopOpenFullscreenModal, dispatch } = _a, modalProps = tslib_1.__rest(_a, ["guid", "modals", "isTopOpenFullscreenModal", "dispatch"]);
|
|
24
11
|
return (0, jsx_runtime_1.jsx)(react_bootstrap_1.Modal, Object.assign({}, modalProps));
|
|
25
12
|
};
|
|
26
13
|
/**
|
|
@@ -10,8 +10,8 @@ interface Props {
|
|
|
10
10
|
declare class GroupsDropdown extends Component<Props> {
|
|
11
11
|
loadGroups: () => void;
|
|
12
12
|
didToggle: (isOpen: boolean) => void;
|
|
13
|
-
renderGroupMenu: (groups: Group[]) => JSX.Element[];
|
|
14
|
-
render(): JSX.Element | null;
|
|
13
|
+
renderGroupMenu: (groups: Group[]) => import("react/jsx-runtime").JSX.Element[];
|
|
14
|
+
render(): import("react/jsx-runtime").JSX.Element | null;
|
|
15
15
|
}
|
|
16
16
|
declare const _default: import("react-redux").ConnectedComponent<typeof GroupsDropdown, import("react-redux").Omit<import("react").ClassAttributes<GroupsDropdown> & Props, "externalTerms" | "groups">>;
|
|
17
17
|
export default _default;
|
|
@@ -27,6 +27,6 @@ export declare class ManagedNavDropdown extends Component<ManagedNavDropdownProp
|
|
|
27
27
|
onMouseLeave: () => void;
|
|
28
28
|
onToggle: (nextIsOpen: boolean, event: any, source: Record<string, unknown>) => void;
|
|
29
29
|
didToggle: () => void;
|
|
30
|
-
render(): JSX.Element;
|
|
30
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
31
31
|
}
|
|
32
32
|
export {};
|
|
@@ -1,22 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
-
var t = {};
|
|
4
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
-
t[p] = s[p];
|
|
6
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
-
t[p[i]] = s[p[i]];
|
|
10
|
-
}
|
|
11
|
-
return t;
|
|
12
|
-
};
|
|
13
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
3
|
exports.UserDropdown = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
18
5
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
|
-
const Lock_1 = __importDefault(require("@material-ui/icons/Lock"));
|
|
6
|
+
const Lock_1 = tslib_1.__importDefault(require("@material-ui/icons/Lock"));
|
|
20
7
|
const react_1 = require("react");
|
|
21
8
|
const react_bootstrap_1 = require("react-bootstrap");
|
|
22
9
|
const uuid_1 = require("uuid");
|
|
@@ -30,7 +17,7 @@ const doLogOut = () => {
|
|
|
30
17
|
(0, actionCreator_1.dispatchAction)({ type: actions_1.AUTH_ACTION_TYPE.LOG_OUT_REQUESTED });
|
|
31
18
|
};
|
|
32
19
|
const UserDropdown = (_a) => {
|
|
33
|
-
var { userInfo, children } = _a, props = __rest(_a, ["userInfo", "children"]);
|
|
20
|
+
var { userInfo, children } = _a, props = tslib_1.__rest(_a, ["userInfo", "children"]);
|
|
34
21
|
const [guid] = (0, react_1.useState)((0, uuid_1.v4)());
|
|
35
22
|
const dropdownTitle = userInfo.isImpersonated ? ((0, jsx_runtime_1.jsx)(UserDetail_1.ImpersonationUserDetail, Object.assign({ userInfo: userInfo }, props))) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Hi, ", (0, user_1.displayFirstName)(userInfo)] }));
|
|
36
23
|
return ((0, jsx_runtime_1.jsxs)(ManagedNavDropdown_1.ManagedNavDropdown, { id: "user-menu", className: `user-menu${userInfo.isImpersonated ? ' user-menu-impersonated' : ''}`, title: dropdownTitle, children: [children, userInfo.isImpersonated && ((0, jsx_runtime_1.jsxs)(react_bootstrap_1.NavDropdown.Item, { onSelect: () => {
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.UserDropdown = exports.ManagedNavDropdown = exports.GroupsDropdown = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
7
5
|
var GroupsDropdown_1 = require("./GroupsDropdown");
|
|
8
|
-
Object.defineProperty(exports, "GroupsDropdown", { enumerable: true, get: function () { return __importDefault(GroupsDropdown_1).default; } });
|
|
6
|
+
Object.defineProperty(exports, "GroupsDropdown", { enumerable: true, get: function () { return tslib_1.__importDefault(GroupsDropdown_1).default; } });
|
|
9
7
|
var ManagedNavDropdown_1 = require("./ManagedNavDropdown");
|
|
10
8
|
Object.defineProperty(exports, "ManagedNavDropdown", { enumerable: true, get: function () { return ManagedNavDropdown_1.ManagedNavDropdown; } });
|
|
11
9
|
var UserDropdown_1 = require("./UserDropdown");
|
|
@@ -6,6 +6,6 @@ export interface EntityOwnerListProps {
|
|
|
6
6
|
displayAsInstructors?: boolean;
|
|
7
7
|
}
|
|
8
8
|
export declare class EntityOwnerList extends Component<EntityOwnerListProps> {
|
|
9
|
-
renderOwner: (owner: User, className: string) => JSX.Element;
|
|
10
|
-
render(): JSX.Element;
|
|
9
|
+
renderOwner: (owner: User, className: string) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
}
|
|
@@ -1,58 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
36
|
-
var t = {};
|
|
37
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
38
|
-
t[p] = s[p];
|
|
39
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
40
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
41
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
42
|
-
t[p[i]] = s[p[i]];
|
|
43
|
-
}
|
|
44
|
-
return t;
|
|
45
|
-
};
|
|
46
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
47
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
48
|
-
};
|
|
49
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
50
3
|
exports.ErrorBoundary = exports.ShowReportDialogButton = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
51
5
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
52
|
-
const Button_1 = __importDefault(require("@material-ui/core/Button"));
|
|
53
|
-
const BugReport_1 = __importDefault(require("@material-ui/icons/BugReport"));
|
|
54
|
-
const Refresh_1 = __importDefault(require("@material-ui/icons/Refresh"));
|
|
55
|
-
const Sentry = __importStar(require("@sentry/react"));
|
|
6
|
+
const Button_1 = tslib_1.__importDefault(require("@material-ui/core/Button"));
|
|
7
|
+
const BugReport_1 = tslib_1.__importDefault(require("@material-ui/icons/BugReport"));
|
|
8
|
+
const Refresh_1 = tslib_1.__importDefault(require("@material-ui/icons/Refresh"));
|
|
9
|
+
const Sentry = tslib_1.__importStar(require("@sentry/react"));
|
|
56
10
|
const react_1 = require("react");
|
|
57
11
|
const react_bootstrap_1 = require("react-bootstrap");
|
|
58
12
|
const react_redux_1 = require("react-redux");
|
|
@@ -75,7 +29,7 @@ const ShowReportDialogButton = ({ className, eventId }) => {
|
|
|
75
29
|
};
|
|
76
30
|
exports.ShowReportDialogButton = ShowReportDialogButton;
|
|
77
31
|
const ErrorBoundary = (_a) => {
|
|
78
|
-
var { children } = _a, props = __rest(_a, ["children"]);
|
|
32
|
+
var { children } = _a, props = tslib_1.__rest(_a, ["children"]);
|
|
79
33
|
return ((0, jsx_runtime_1.jsx)(Sentry.ErrorBoundary
|
|
80
34
|
// set default props
|
|
81
35
|
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.ErrorMessage = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
7
5
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const ErrorOutline_1 = __importDefault(require("@material-ui/icons/ErrorOutline"));
|
|
6
|
+
const ErrorOutline_1 = tslib_1.__importDefault(require("@material-ui/icons/ErrorOutline"));
|
|
9
7
|
const ErrorMessage = ({ message, hideIcon }) => {
|
|
10
8
|
if (!message) {
|
|
11
9
|
return null;
|
|
@@ -9,5 +9,5 @@ export interface DateFieldProps extends Pick<StandardTextFieldProps, Exclude<key
|
|
|
9
9
|
export declare class DateField extends Component<DateFieldProps> {
|
|
10
10
|
onChange: React.ChangeEventHandler<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>;
|
|
11
11
|
isDateValid: (dateString: string) => boolean;
|
|
12
|
-
render(): JSX.Element;
|
|
12
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
13
13
|
}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.DateField = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
7
5
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const TextField_1 = __importDefault(require("@material-ui/core/TextField"));
|
|
9
|
-
const moment_1 = __importDefault(require("moment"));
|
|
6
|
+
const TextField_1 = tslib_1.__importDefault(require("@material-ui/core/TextField"));
|
|
7
|
+
const moment_1 = tslib_1.__importDefault(require("moment"));
|
|
10
8
|
const react_1 = require("react");
|
|
11
9
|
const date_1 = require("../../utils/date");
|
|
12
10
|
const datePattern = '^[0-9]{4}-[0-9]{2}-[0-9]{2}$';
|
|
@@ -7,5 +7,5 @@ export interface TimeFieldProps extends Pick<StandardTextFieldProps, Exclude<key
|
|
|
7
7
|
export declare class TimeField extends Component<TimeFieldProps> {
|
|
8
8
|
onChange: React.ChangeEventHandler<HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement>;
|
|
9
9
|
isTimeValid: (timeString: string) => boolean;
|
|
10
|
-
render(): JSX.Element;
|
|
10
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.TimeField = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
7
5
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const TextField_1 = __importDefault(require("@material-ui/core/TextField"));
|
|
9
|
-
const Help_1 = __importDefault(require("@material-ui/icons/Help"));
|
|
10
|
-
const moment_1 = __importDefault(require("moment"));
|
|
6
|
+
const TextField_1 = tslib_1.__importDefault(require("@material-ui/core/TextField"));
|
|
7
|
+
const Help_1 = tslib_1.__importDefault(require("@material-ui/icons/Help"));
|
|
8
|
+
const moment_1 = tslib_1.__importDefault(require("moment"));
|
|
11
9
|
const react_1 = require("react");
|
|
12
10
|
const react_bootstrap_1 = require("react-bootstrap");
|
|
13
11
|
const date_1 = require("../../utils/date");
|
|
@@ -1,18 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
__exportStar(require("./
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./DateField"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./TimeField"), exports);
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.GroupCreateEditCopySaveButtons = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
7
5
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const Button_1 = __importDefault(require("@material-ui/core/Button"));
|
|
9
|
-
const CircularProgress_1 = __importDefault(require("@material-ui/core/CircularProgress"));
|
|
6
|
+
const Button_1 = tslib_1.__importDefault(require("@material-ui/core/Button"));
|
|
7
|
+
const CircularProgress_1 = tslib_1.__importDefault(require("@material-ui/core/CircularProgress"));
|
|
10
8
|
const GroupCreateEditCopySaveButtons = ({ disabled, cannotSave, cannotSaveAndAddOwners, canAddInstructors, save, cancel }) => {
|
|
11
9
|
return ((0, jsx_runtime_1.jsxs)("div", { children: [!!disabled && (0, jsx_runtime_1.jsx)(CircularProgress_1.default, { size: 30, className: "fr" }), (0, jsx_runtime_1.jsx)(Button_1.default, { onClick: () => {
|
|
12
10
|
save();
|
|
@@ -28,8 +28,8 @@ export declare class ExternalGroupsAttach extends Component<ExternalGroupsAttach
|
|
|
28
28
|
handleSelectExternalGroups: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
29
29
|
getOwnerUniTimeGroups: (ownerSchedule: OwnerSchedule, userId: string, externalTermId: number) => void;
|
|
30
30
|
setUserUniTimeGroups: (userId: string, externalGroups: UniTimeGroup[]) => void;
|
|
31
|
-
displayOwnerSchedules: (ownerSchedules: Dictionary<OwnerSchedule>) => (JSX.Element | undefined)[];
|
|
32
|
-
displayUniTimeGroups: (externalGroups: Array<ExternalGroup | LtiLaunch | UniTimeGroup>) => (JSX.Element | null)[];
|
|
33
|
-
render(): JSX.Element;
|
|
31
|
+
displayOwnerSchedules: (ownerSchedules: Dictionary<OwnerSchedule>) => (import("react/jsx-runtime").JSX.Element | undefined)[];
|
|
32
|
+
displayUniTimeGroups: (externalGroups: Array<ExternalGroup | LtiLaunch | UniTimeGroup>) => (import("react/jsx-runtime").JSX.Element | null)[];
|
|
33
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
34
34
|
}
|
|
35
35
|
export {};
|
|
@@ -1,23 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
-
var t = {};
|
|
4
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
-
t[p] = s[p];
|
|
6
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
-
t[p[i]] = s[p[i]];
|
|
10
|
-
}
|
|
11
|
-
return t;
|
|
12
|
-
};
|
|
13
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
3
|
exports.ExternalGroupsTable = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
18
5
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
19
|
-
const ToggleButton_1 = __importDefault(require("@material-ui/lab/ToggleButton"));
|
|
20
|
-
const ToggleButtonGroup_1 = __importDefault(require("@material-ui/lab/ToggleButtonGroup"));
|
|
6
|
+
const ToggleButton_1 = tslib_1.__importDefault(require("@material-ui/lab/ToggleButton"));
|
|
7
|
+
const ToggleButtonGroup_1 = tslib_1.__importDefault(require("@material-ui/lab/ToggleButtonGroup"));
|
|
21
8
|
const lodash_1 = require("lodash");
|
|
22
9
|
const react_super_responsive_table_1 = require("react-super-responsive-table");
|
|
23
10
|
const constants_1 = require("../../../constants");
|
|
@@ -54,7 +41,7 @@ const renderTableBodyRow = (key, externalGroup, owner, hasGradePushEnabled, hasA
|
|
|
54
41
|
return ((0, jsx_runtime_1.jsx)(react_super_responsive_table_1.Tr, { children: cells.map((value, i) => ((0, jsx_runtime_1.jsx)(react_super_responsive_table_1.Td, { children: value }, i))) }, key));
|
|
55
42
|
};
|
|
56
43
|
const ExternalGroupsTable = (_a) => {
|
|
57
|
-
var { group, externalGroups, hasGradePushEnabled, hasAnyLtiExternalGroup, canEditExternalGroups, groupUserRoles, updateExternalGroup } = _a, other = __rest(_a, ["group", "externalGroups", "hasGradePushEnabled", "hasAnyLtiExternalGroup", "canEditExternalGroups", "groupUserRoles", "updateExternalGroup"]) // for passing aria-describedby to tables
|
|
44
|
+
var { group, externalGroups, hasGradePushEnabled, hasAnyLtiExternalGroup, canEditExternalGroups, groupUserRoles, updateExternalGroup } = _a, other = tslib_1.__rest(_a, ["group", "externalGroups", "hasGradePushEnabled", "hasAnyLtiExternalGroup", "canEditExternalGroups", "groupUserRoles", "updateExternalGroup"]) // for passing aria-describedby to tables
|
|
58
45
|
;
|
|
59
46
|
return ((0, jsx_runtime_1.jsx)("div", { className: "table-container", children: (0, jsx_runtime_1.jsxs)(react_super_responsive_table_1.Table, Object.assign({}, other, { className: "w-100 mb4", children: [(0, jsx_runtime_1.jsx)(react_super_responsive_table_1.Thead, { children: renderTableHeaderRow(hasAnyLtiExternalGroup, group, hasGradePushEnabled) }), (0, jsx_runtime_1.jsx)(react_super_responsive_table_1.Tbody, { children: externalGroups.map((externalGroup, i) => {
|
|
60
47
|
var _a;
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.RosterSyncInfo = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
7
5
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
8
|
-
const Button_1 = __importDefault(require("@material-ui/core/Button"));
|
|
9
|
-
const Highlight_1 = __importDefault(require("@material-ui/icons/Highlight"));
|
|
6
|
+
const Button_1 = tslib_1.__importDefault(require("@material-ui/core/Button"));
|
|
7
|
+
const Highlight_1 = tslib_1.__importDefault(require("@material-ui/icons/Highlight"));
|
|
10
8
|
const react_1 = require("react");
|
|
11
9
|
const react_bootstrap_1 = require("react-bootstrap");
|
|
12
10
|
const configuration_1 = require("../../constants/configuration");
|
|
13
|
-
const ConnectedModal_1 = __importDefault(require("../ConnectedModal"));
|
|
11
|
+
const ConnectedModal_1 = tslib_1.__importDefault(require("../ConnectedModal"));
|
|
14
12
|
const RosterSyncInfo = ({ hasLtiRosterSync }) => {
|
|
15
13
|
const [isModalOpen, setIsModalOpen] = (0, react_1.useState)(false);
|
|
16
14
|
const lmsName = (0, configuration_1.getAppConfig)().LMS_NAME;
|
|
@@ -1,42 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
3
|
exports.setupAccessibleComponent = setupAccessibleComponent;
|
|
37
4
|
exports.default = accessibleAppComponent;
|
|
5
|
+
const tslib_1 = require("tslib");
|
|
38
6
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
39
|
-
const react_1 = __importStar(require("react"));
|
|
7
|
+
const react_1 = tslib_1.__importStar(require("react"));
|
|
40
8
|
const react_router_dom_1 = require("react-router-dom");
|
|
41
9
|
const configuration_1 = require("../../constants/configuration");
|
|
42
10
|
const documentService_1 = require("../../services/documentService");
|
|
@@ -7,7 +7,7 @@ export interface ActivityRequiredStateProps {
|
|
|
7
7
|
}
|
|
8
8
|
export declare const configureActivityRequiredComponent: <TOwnProps extends object>(WrappedComponent: ComponentType<TOwnProps>) => {
|
|
9
9
|
new (props: (TOwnProps & ActivityRequiredStateProps) | Readonly<TOwnProps & ActivityRequiredStateProps>): {
|
|
10
|
-
render(): JSX.Element;
|
|
10
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
context: any;
|
|
12
12
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<TOwnProps & ActivityRequiredStateProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
13
13
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
@@ -32,7 +32,7 @@ export declare const configureActivityRequiredComponent: <TOwnProps extends obje
|
|
|
32
32
|
UNSAFE_componentWillUpdate?(nextProps: Readonly<TOwnProps & ActivityRequiredStateProps>, nextState: Readonly<{}>, nextContext: any): void;
|
|
33
33
|
};
|
|
34
34
|
new (props: TOwnProps & ActivityRequiredStateProps, context: any): {
|
|
35
|
-
render(): JSX.Element;
|
|
35
|
+
render(): import("react/jsx-runtime").JSX.Element;
|
|
36
36
|
context: any;
|
|
37
37
|
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<TOwnProps & ActivityRequiredStateProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
|
|
38
38
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
@@ -1,18 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
-
var t = {};
|
|
4
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
-
t[p] = s[p];
|
|
6
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
-
t[p[i]] = s[p[i]];
|
|
10
|
-
}
|
|
11
|
-
return t;
|
|
12
|
-
};
|
|
13
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
3
|
exports.configureMapStateToProps = exports.configureActivityRequiredComponent = void 0;
|
|
15
4
|
exports.default = activityRequiredComponent;
|
|
5
|
+
const tslib_1 = require("tslib");
|
|
16
6
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
17
7
|
const react_1 = require("react");
|
|
18
8
|
const react_redux_1 = require("react-redux");
|
|
@@ -21,7 +11,7 @@ const baseActivity_1 = require("../../utils/baseActivity");
|
|
|
21
11
|
const configureActivityRequiredComponent = (WrappedComponent) => {
|
|
22
12
|
return class ActivityRequiredComponent extends react_1.Component {
|
|
23
13
|
render() {
|
|
24
|
-
const _a = this.props, { hasAccess, redirectPath } = _a, rest = __rest(_a, ["hasAccess", "redirectPath"]);
|
|
14
|
+
const _a = this.props, { hasAccess, redirectPath } = _a, rest = tslib_1.__rest(_a, ["hasAccess", "redirectPath"]);
|
|
25
15
|
if (!hasAccess) {
|
|
26
16
|
return (0, jsx_runtime_1.jsx)(react_router_dom_1.Redirect, { to: redirectPath });
|
|
27
17
|
}
|
|
@@ -10,7 +10,7 @@ export default function asyncComponent<TOwnProps extends object>(importComponent
|
|
|
10
10
|
_isMounted: boolean;
|
|
11
11
|
componentDidMount(): Promise<void>;
|
|
12
12
|
componentWillUnmount(): void;
|
|
13
|
-
render(): JSX.Element | null;
|
|
13
|
+
render(): import("react/jsx-runtime").JSX.Element | null;
|
|
14
14
|
context: any;
|
|
15
15
|
setState<K extends "component">(state: AsyncComponentState<TOwnProps> | ((prevState: Readonly<AsyncComponentState<TOwnProps>>, props: Readonly<TOwnProps>) => AsyncComponentState<TOwnProps> | Pick<AsyncComponentState<TOwnProps>, K> | null) | Pick<AsyncComponentState<TOwnProps>, K> | null, callback?: (() => void) | undefined): void;
|
|
16
16
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.default = asyncComponent;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
13
5
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
14
6
|
const react_1 = require("react");
|
|
15
7
|
const ErrorBoundary_1 = require("../ErrorBoundary");
|
|
@@ -26,7 +18,7 @@ function asyncComponent(importComponent, showLoader = true) {
|
|
|
26
18
|
}
|
|
27
19
|
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
|
28
20
|
componentDidMount() {
|
|
29
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
30
22
|
this._isMounted = true;
|
|
31
23
|
const { default: component } = yield importComponent();
|
|
32
24
|
// component may have unmounted while awaiting importComponent()
|