@rh-support/troubleshoot 2.1.20 → 2.1.21

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.
Files changed (49) hide show
  1. package/lib/esm/components/AccountInfo/OwnerSelector.d.ts.map +1 -1
  2. package/lib/esm/components/AccountInfo/OwnerSelector.js +3 -1
  3. package/lib/esm/components/CaseEditView/CaseDetailsTabs.js +1 -1
  4. package/lib/esm/components/CaseEditView/CaseOverview/CaseStatus.d.ts.map +1 -1
  5. package/lib/esm/components/CaseEditView/CaseOverview/CaseStatus.js +4 -2
  6. package/lib/esm/components/CaseEditView/CaseOverview/CaseType.d.ts.map +1 -1
  7. package/lib/esm/components/CaseEditView/CaseOverview/CaseType.js +4 -2
  8. package/lib/esm/components/CaseEditView/CaseOverview/DateTime.d.ts.map +1 -1
  9. package/lib/esm/components/CaseEditView/CaseOverview/DateTime.js +4 -2
  10. package/lib/esm/components/CaseEditView/CaseOverview/index.d.ts.map +1 -1
  11. package/lib/esm/components/CaseEditView/CaseOverview/index.js +4 -9
  12. package/lib/esm/components/CaseEditView/PDFContainer.js +1 -1
  13. package/lib/esm/components/CaseEditView/Tabs/CaseActionPlan/CaseActionPlan.d.ts.map +1 -1
  14. package/lib/esm/components/CaseEditView/Tabs/CaseActionPlan/CaseActionPlan.js +4 -2
  15. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.d.ts.map +1 -1
  16. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.js +23 -36
  17. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenshiftClusterId.d.ts.map +1 -1
  18. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenshiftClusterId.js +3 -1
  19. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseReferenceNumber.d.ts.map +1 -1
  20. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseReferenceNumber.js +5 -3
  21. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/ProductVersion.d.ts.map +1 -1
  22. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/ProductVersion.js +3 -1
  23. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/Summary.d.ts.map +1 -1
  24. package/lib/esm/components/CaseEditView/Tabs/CaseDetails/Summary.js +4 -2
  25. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseComments.d.ts.map +1 -1
  26. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseComments.js +3 -1
  27. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.d.ts.map +1 -1
  28. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.js +1 -1
  29. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment.d.ts.map +1 -1
  30. package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment.js +3 -1
  31. package/lib/esm/components/CaseInformation/ContactPhoneNumber.d.ts.map +1 -1
  32. package/lib/esm/components/CaseInformation/ContactPhoneNumber.js +9 -17
  33. package/lib/esm/components/CaseInformation/Fts.d.ts.map +1 -1
  34. package/lib/esm/components/CaseInformation/Fts.js +4 -2
  35. package/lib/esm/components/CaseInformation/Severity.d.ts.map +1 -1
  36. package/lib/esm/components/CaseInformation/Severity.js +4 -3
  37. package/lib/esm/components/CaseManagement/Cep.d.ts.map +1 -1
  38. package/lib/esm/components/CaseManagement/Cep.js +4 -2
  39. package/lib/esm/components/CaseManagement/NoClusterIDReasonSelector.d.ts.map +1 -1
  40. package/lib/esm/components/CaseManagement/NoClusterIDReasonSelector.js +7 -3
  41. package/lib/esm/components/CaseManagement/OpenShiftV3Inputbox.d.ts.map +1 -1
  42. package/lib/esm/components/CaseManagement/OpenShiftV3Inputbox.js +4 -2
  43. package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.d.ts.map +1 -1
  44. package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.js +6 -4
  45. package/lib/esm/components/ProductSelector/ProductVersionDropdownSelector.d.ts.map +1 -1
  46. package/lib/esm/components/ProductSelector/ProductVersionDropdownSelector.js +6 -8
  47. package/lib/esm/scss/_main.scss +1 -221
  48. package/lib/esm/scss/_pf4-overrides.scss +10 -0
  49. package/package.json +4 -4
@@ -30,6 +30,7 @@ import { markdownFilePasteEvent } from '../../../shared/Constants';
30
30
  import { AttachmentDispatchContext, AttachmentStateContext, hasSomeSelectedFiles, hasSomeUnUploadedAttachments, isUploadingAttachment, resetAttachment, } from '../../../shared/fileUpload';
31
31
  import FileSelectorButton from '../../../shared/fileUpload/fileSelectors/FileSelectorButton';
32
32
  import FileUpload from '../../../shared/fileUpload/FileUpload';
33
+ import { PDFContext } from '../../PDFContainer';
33
34
  import { useMarkdownFileUploader } from './PostComment/useMarkdownFileUploader';
34
35
  import { VerifyCaseStatusModal } from './VerifyCaseStatusModal/VerifyCaseStatusModal';
35
36
  export function PostComment(props) {
@@ -53,6 +54,7 @@ export function PostComment(props) {
53
54
  const hasSomeSelectedFilesLocal = hasSomeSelectedFiles(attachmentState.caseFiles.selectedLocalFiles);
54
55
  const [commentType, setCommentType] = useState(EditorMode.PLAIN);
55
56
  const [commentSignature, setCommentSignature] = useState('');
57
+ const { isExportingPDF } = useContext(PDFContext);
56
58
  const { getCommentTypeFromPreference, getCommentSignature } = useUserPreferences();
57
59
  const userOriginalCommentPrefs = () => __awaiter(this, void 0, void 0, function* () {
58
60
  try {
@@ -311,7 +313,7 @@ export function PostComment(props) {
311
313
  return (parsedPassedReply === null || parsedPassedReply === void 0 ? void 0 : parsedPassedReply.trim()) === (commentText === null || commentText === void 0 ? void 0 : commentText.trim());
312
314
  };
313
315
  const isSubmitDisabled = isReplyDisabled() || isCommentEmpty || isPostCommentDisabled;
314
- return (React.createElement("div", { className: "pf-u-mb-md hide-in-pdf", ref: componentRef },
316
+ return (React.createElement("div", { className: `pf-u-mb-md ${isExportingPDF ? 'hide-in-pdf' : ''}`, ref: componentRef },
315
317
  React.createElement(MarkdownEditor, { className: `${!isPublic && canPostPrivateComments ? 'is-private' : ''}`, disabled: isProcessing || canEditCase.isCaseNotEditable, "aria-label": "comment text area", showMarkdownPlainTextToggle: true, editorMode: commentType, onFocus: () => setIsTextAreaFocused(true), onBlur: onTextAreaBlur, onChange: onCommentTextChange, value: commentText, rows: isTextAreaFocused ? 12 : 4, bindTextArea: textAreaRef, onCommentExceedCharsLimit: onCommentExceedCharsLimit, mdPlaceholder: isPublic || !canPostPrivateComments
316
318
  ? 'Add a comment using markdown'
317
319
  : 'Add a comment or attach a file privately', plainTextPlaceholder: isPublic || !canPostPrivateComments
@@ -1 +1 @@
1
- {"version":3,"file":"ContactPhoneNumber.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/ContactPhoneNumber.tsx"],"names":[],"mappings":"AAYA,wBAAgB,kBAAkB,gBAiDjC"}
1
+ {"version":3,"file":"ContactPhoneNumber.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/ContactPhoneNumber.tsx"],"names":[],"mappings":"AAaA,wBAAgB,kBAAkB,gBA8CjC"}
@@ -1,13 +1,5 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
- import { TextInput, ValidatedOptions } from '@patternfly/react-core';
1
+ import { ValidatedOptions } from '@patternfly/react-core';
2
+ import { PhoneInput } from '@rh-support/components';
11
3
  import isEmpty from 'lodash/isEmpty';
12
4
  import isEqual from 'lodash/isEqual';
13
5
  import React from 'react';
@@ -18,29 +10,29 @@ import { PHONE_LIMIT } from '../../reducers/CaseConstNTypes';
18
10
  import { setCaseDetails } from '../../reducers/CaseReducer';
19
11
  import { ContactPhoneNumberPopOver } from './ContactPhoneNumberPopOver';
20
12
  export function ContactPhoneNumber() {
21
- var _a;
13
+ var _a, _b;
22
14
  const { caseDetails } = useCaseSelector((state) => ({
23
15
  caseDetails: state.caseDetails,
24
16
  selectedOwner: state.selectedOwner,
25
17
  }), isEqual);
26
18
  const caseDispatch = useCaseDispatch();
27
19
  const { t } = useTranslation();
28
- const handlePhoneChange = (phone) => __awaiter(this, void 0, void 0, function* () {
29
- setCaseDetails(caseDispatch, { phone: phone.trim() });
30
- });
20
+ const onPhoneChange = (phone) => {
21
+ setCaseDetails(caseDispatch, { phone });
22
+ };
31
23
  const maxLengthErrorMessage = t('Phone number cannot be more than {{limit}} characters.', {
32
24
  limit: PHONE_LIMIT,
33
25
  });
34
26
  return (React.createElement("div", { className: "form-group", style: { minWidth: '200px' } },
35
- React.createElement("h3", { className: "subheading subheading-sm" },
27
+ React.createElement("label", { className: "subheading subheading-sm" },
36
28
  React.createElement(Trans, null, "Case owner's phone number"),
37
29
  ContactPhoneNumberPopOver()),
38
- React.createElement(TextInput, { id: "case-phone-number", placeholder: "+1 555-555-5555", value: caseDetails.phone, onChange: handlePhoneChange, validated: ((_a = caseDetails.phone) === null || _a === void 0 ? void 0 : _a.length) > PHONE_LIMIT
30
+ React.createElement(PhoneInput, { phoneValue: caseDetails.phone, onPhoneValueChange: onPhoneChange, validations: ((_a = caseDetails.phone) === null || _a === void 0 ? void 0 : _a.length) > PHONE_LIMIT
39
31
  ? ValidatedOptions.error
40
32
  : caseDetails.severity === "1 (Urgent)" /* SEV_1 */ &&
41
33
  isEmpty(caseDetails.suppliedPhoneNumberVerified)
42
34
  ? ValidatedOptions.warning
43
35
  : ValidatedOptions.default }),
44
- caseDetails.phone.length > PHONE_LIMIT ? (React.createElement("p", { className: "form-instructions form-invalid" }, maxLengthErrorMessage)) : (React.createElement("p", { className: "form-instructions" },
36
+ ((_b = caseDetails.phone) === null || _b === void 0 ? void 0 : _b.length) > PHONE_LIMIT ? (React.createElement("p", { className: "form-instructions form-invalid" }, maxLengthErrorMessage)) : (React.createElement("p", { className: "form-instructions" },
45
37
  React.createElement(Trans, null, PHONE_INSTRUCTION)))));
46
38
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Fts.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/Fts.tsx"],"names":[],"mappings":"AAkBA,UAAU,MAAM;IACZ,cAAc,EAAE,OAAO,CAAC;IACxB,cAAc,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAQD,iBAAS,GAAG,CAAC,KAAK,EAAE,MAAM,eAkLzB;kBAlLQ,GAAG;;;AAqLZ,eAAe,GAAG,CAAC"}
1
+ {"version":3,"file":"Fts.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/Fts.tsx"],"names":[],"mappings":"AAoBA,UAAU,MAAM;IACZ,cAAc,EAAE,OAAO,CAAC;IACxB,cAAc,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAQD,iBAAS,GAAG,CAAC,KAAK,EAAE,MAAM,eAqLzB;kBArLQ,GAAG;;;AAwLZ,eAAe,GAAG,CAAC"}
@@ -12,12 +12,13 @@ import { useCanEditCase } from '@rh-support/react-context';
12
12
  import { isFtsEditableOnEditPage, PreviousCaseTypes, showFtsOnCaseViewEditPage, showFtsOnCreateCasePage, } from '@rh-support/utils';
13
13
  import isEmpty from 'lodash/isEmpty';
14
14
  import isEqual from 'lodash/isEqual';
15
- import React, { useEffect, useState } from 'react';
15
+ import React, { useContext, useEffect, useState } from 'react';
16
16
  import { Trans, useTranslation } from 'react-i18next';
17
17
  import { useCaseDispatch, useCaseSelector } from '../../context/CaseContext';
18
18
  import { useCaseUpdateErrorMessage } from '../../hooks/useCaseUpdateErrorMessage';
19
19
  import { CONTACT_INFO_24X7_LIMIT } from '../../reducers/CaseConstNTypes';
20
20
  import { setCaseDetails, updateCaseDetails } from '../../reducers/CaseReducer';
21
+ import { PDFContext } from '../CaseEditView/PDFContainer';
21
22
  const defaultProps = {
22
23
  inlineEditable: false,
23
24
  hideSaveCancel: false,
@@ -35,6 +36,7 @@ function Fts(props) {
35
36
  caseType: state.caseDetails.caseType,
36
37
  }), isEqual);
37
38
  const isIdea = caseType === PreviousCaseTypes.FEATURE_ENHANCEMENT;
39
+ const { isExportingPDF } = useContext(PDFContext);
38
40
  const caseDispatch = useCaseDispatch();
39
41
  const oldFts = usePrevious(fts);
40
42
  const onCaseDetailsChange = (caseDetails) => {
@@ -138,7 +140,7 @@ function Fts(props) {
138
140
  React.createElement(Trans, null, "24x7 Support")),
139
141
  React.createElement(LoadingIndicator, { size: "sm", isInline: true, show: isFtsUpdating, className: "pf-u-ml-sm" })),
140
142
  fts === true && (React.createElement(React.Fragment, null,
141
- React.createElement(InlineEdit, { labelProps: { htmlFor: 'get-support-24-7-contact' }, labelContent: React.createElement(Trans, null, "24x7 Contact"), allowInlineEdit: props.inlineEditable && !disableFtsNContact, hideSaveCancel: props.hideSaveCancel, initialIsEditing: props.initialIsEditing, content: contactInfo24x7, onSave: onSave, onCancel: onCancel, saveDisabled: isSaveDisabled, loadingIndicator: isFtsContactUpdating ? React.createElement(LoadingIndicator, { isInline: true }) : undefined },
143
+ React.createElement(InlineEdit, { labelProps: { htmlFor: 'get-support-24-7-contact' }, labelContent: React.createElement(Trans, null, "24x7 Contact"), allowInlineEdit: props.inlineEditable && !disableFtsNContact, hideSaveCancel: props.hideSaveCancel, initialIsEditing: props.initialIsEditing, content: contactInfo24x7, onSave: onSave, onCancel: onCancel, saveDisabled: isSaveDisabled, loadingIndicator: isFtsContactUpdating ? React.createElement(LoadingIndicator, { isInline: true }) : undefined, isExportingPDF: isExportingPDF },
142
144
  React.createElement(TextAreaAutosize, { id: "get-support-24-7-contact", className: `form-control`, name: "get-support-24-7-contact", value: contactInfo24X7State, onChange: onFtsContactChange, disabled: disableFtsNContact, "data-tracking-id": "get-support-24-7-contact" }),
143
145
  React.createElement("p", { className: "form-instructions" },
144
146
  React.createElement(Trans, null, "Please provide contact information where you can be reached at any time to help you with your case."))),
@@ -1 +1 @@
1
- {"version":3,"file":"Severity.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/Severity.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AAMvE,OAAO,EAAE,gBAAgB,EAAW,MAAM,0BAA0B,CAAC;AAwBrE,UAAU,MAAO,SAAQ,gBAAgB;IACrC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,gBAAgB,CAAC,EAAE,CAAC,WAAW,EAAE,OAAO,CAAC,YAAY,CAAC,KAAK,IAAI,CAAC;IAChE,oBAAoB,EAAE,OAAO,CAAC;CACjC;AASD,MAAM,WAAW,gBAAgB;IAC7B,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,GAAG,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC;CACxD;AAED,iBAAS,QAAQ,CAAC,KAAK,EAAE,MAAM,eAqR9B;kBArRQ,QAAQ;;;AAuRjB,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"Severity.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/Severity.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AAKvE,OAAO,EAAE,gBAAgB,EAAW,MAAM,0BAA0B,CAAC;AAyBrE,UAAU,MAAO,SAAQ,gBAAgB;IACrC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,gBAAgB,CAAC,EAAE,CAAC,WAAW,EAAE,OAAO,CAAC,YAAY,CAAC,KAAK,IAAI,CAAC;IAChE,oBAAoB,EAAE,OAAO,CAAC;CACjC;AASD,MAAM,WAAW,gBAAgB;IAC7B,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,GAAG,GAAG,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC;CACxD;AAED,iBAAS,QAAQ,CAAC,KAAK,EAAE,MAAM,eAuR9B;kBAvRQ,QAAQ;;;AAyRjB,eAAe,QAAQ,CAAC"}
@@ -1,5 +1,4 @@
1
1
  import { Popover, PopoverPosition, Tooltip, TooltipPosition } from '@patternfly/react-core';
2
- import QuestionCircleIcon from '@patternfly/react-icons/dist/js/icons/question-circle-icon';
3
2
  import WarningTriangleIcon from '@patternfly/react-icons/dist/js/icons/warning-triangle-icon';
4
3
  import { Dropdown, ValueChangedIcon } from '@rh-support/components';
5
4
  import { GlobalMetadataStateContext } from '@rh-support/react-context';
@@ -15,6 +14,7 @@ import { Trans, useTranslation } from 'react-i18next';
15
14
  import { useCaseDispatch, useCaseSelector } from '../../context/CaseContext';
16
15
  import { getIrtForSLAAndSeverity, getOrtForSLAAndSeverity, getSeverityDescription } from '../../reducers/CaseHelpers';
17
16
  import { setCaseDetails } from '../../reducers/CaseReducer';
17
+ import { PDFContext } from '../CaseEditView/PDFContainer';
18
18
  import { CaseValuesToWatch } from '../shared/Constants';
19
19
  import { getChangedValueTooltip } from '../shared/utils';
20
20
  import UpdateSeverityModal from '../UpdateSeverityModal/UpdateSeverityModal';
@@ -36,6 +36,7 @@ function Severity(props) {
36
36
  versionsDetails: state.versionsDetails,
37
37
  }), isEqual);
38
38
  const { globalMetadataState: { allCaseSeverities, allProducts }, } = useContext(GlobalMetadataStateContext);
39
+ const { isExportingPDF } = useContext(PDFContext);
39
40
  const [isSeverityInValid, setIsSeverityInValid] = useState(false);
40
41
  const [seviritiesOptions, setSeveritiesOptions] = useState([]);
41
42
  const [doNotShowIRT, setDoNotShowIRT] = useState(false);
@@ -154,13 +155,13 @@ function Severity(props) {
154
155
  React.createElement("label", null,
155
156
  React.createElement(Trans, null, "Severity")),
156
157
  React.createElement(ValueChangedIcon, { afterLocalChange: afterLocalChange, comparator: valueComparator, isLocalChange: localSeverityChange, value: doesDropdownSeverityEqualSeverity ? selectedSeverity : null, getTooltipContent: getChangedValueTooltip(() => CaseValuesToWatch.severity, (v) => v.name) }),
157
- React.createElement("span", { className: "form-required", "aria-hidden": true }, "*"),
158
+ React.createElement("span", { className: `form-required ${isExportingPDF ? 'hide-in-pdf' : ''}`, "aria-hidden": true }, "*"),
158
159
  !!props.showSeverityInfoIcon && (React.createElement(Popover, { "aria-label": "Support Severity Level info", position: PopoverPosition.right, bodyContent: React.createElement("p", null,
159
160
  React.createElement(Trans, null, "To learn more view the"),
160
161
  ' ',
161
162
  React.createElement("a", { href: "/support/policy/severity", target: "_blank" },
162
163
  React.createElement(Trans, null, "Red Hat Support Severity Level Definitions"))), closeBtnAriaLabel: "Close" },
163
- React.createElement(QuestionCircleIcon, { className: "pf-u-ml-xs icon-size", "aria-label": "Support Severity Level Info" }))),
164
+ React.createElement("i", { "aria-label": "Support Severity Level info", className: "fa fa-question-circle" }))),
164
165
  "\u00A0",
165
166
  filteredSeverities.filter((s) => s.disabled).length !== 0 && (React.createElement(Tooltip, { position: TooltipPosition.top, content: React.createElement(Trans, null, "Only the enabled severity levels are supported for selected product and version.") },
166
167
  React.createElement(WarningTriangleIcon, { color: "#ec7a08", size: "sm", title: "Support Severity Level warning" }))),
@@ -1 +1 @@
1
- {"version":3,"file":"Cep.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseManagement/Cep.tsx"],"names":[],"mappings":"AAsCA,UAAU,MAAM;CAAG;AAEnB,wBAAgB,GAAG,CAAC,KAAK,EAAE,MAAM,eAkShC"}
1
+ {"version":3,"file":"Cep.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseManagement/Cep.tsx"],"names":[],"mappings":"AAuCA,UAAU,MAAM;CAAG;AAEnB,wBAAgB,GAAG,CAAC,KAAK,EAAE,MAAM,eAwShC"}
@@ -22,6 +22,7 @@ import { useCaseDiscussionTabDispatchContext, useCaseDiscussionTabStateContext,
22
22
  import { useCaseUpdateErrorMessage } from '../../hooks/useCaseUpdateErrorMessage';
23
23
  import { updateDiscussionStateComments } from '../../reducers/CaseDiscussionTabReducer';
24
24
  import { checkForCaseStatusToggleOnAttachOrComment, postCepDetails, setCaseDetails, setCaseState, updateCaseDetails, } from '../../reducers/CaseReducer';
25
+ import { PDFContext } from '../CaseEditView/PDFContainer';
25
26
  export function Cep(props) {
26
27
  var _a, _b, _c, _d, _e, _f;
27
28
  const { t } = useTranslation();
@@ -46,6 +47,7 @@ export function Cep(props) {
46
47
  const { caseDetailsPageState: { caseFeedbacksHydra }, } = useCaseDetailsPageStateContext();
47
48
  const canEditCase = useCanEditCase();
48
49
  const [saveButtonIsClicked, setSaveButtonIsClicked] = useState(false);
50
+ const { isExportingPDF } = useContext(PDFContext);
49
51
  /** Sync cepDetailsLocal with cepDetails from reducer */
50
52
  useEffect(() => {
51
53
  setCepDetailsLocal(cepDetails);
@@ -139,8 +141,8 @@ export function Cep(props) {
139
141
  React.createElement("input", { type: "checkbox", id: "get-support-cep", name: "get-support-cep", checked: isEqual(cep, undefined) ? false : cep, onChange: onCepChange, "data-tracking-id": "get-support-cep" }),
140
142
  React.createElement("label", { htmlFor: "get-support-cep" },
141
143
  React.createElement(Trans, null, "Consultant has been engaged")),
142
- React.createElement(Popover, { "aria-label": "CEP info", position: PopoverPosition.top, bodyContent: React.createElement(Trans, null, "Used by consultants to indicate that a consulting engagement is in progress and the issue requires increased attention from support resources."), closeBtnAriaLabel: "Close" },
143
- React.createElement(QuestionCircleIcon, { className: "pf-u-ml-xs icon-size", "aria-label": "CEP Info" })),
144
+ !isExportingPDF ? (React.createElement(Popover, { "aria-label": "CEP info", position: PopoverPosition.top, bodyContent: React.createElement(Trans, null, "Used by consultants to indicate that a consulting engagement is in progress and the issue requires increased attention from support resources."), closeBtnAriaLabel: "Close" },
145
+ React.createElement(QuestionCircleIcon, { className: "pf-u-ml-xs icon-size", "aria-label": "CEP Info" }))) : (''),
144
146
  React.createElement(LoadingIndicator, { show: isCaseUpdating && isPostingCep, isInline: true, size: "sm" }),
145
147
  React.createElement(Modal, { id: "cep-details-modal", title: t('Consultant engagement is in progress'), "aria-describedby": "cep-modal-description", isOpen: isCepModalOpen, showClose: true, variant: ModalVariant.large, onClose: onCancel, actions: [
146
148
  React.createElement(Button, { key: "confirm", variant: "primary", className: "btn btn-app btn-primary", onClick: onSubmit, isDisabled: saveButtonIsClicked && isFormInvalid, "data-tracking-id": "cep-details-save" },
@@ -1 +1 @@
1
- {"version":3,"file":"NoClusterIDReasonSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseManagement/NoClusterIDReasonSelector.tsx"],"names":[],"mappings":"AAcA,UAAU,MAAM;IACZ,uBAAuB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAClD,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,4BAA4B,EAAE,MAAM,CAAC;IACrC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AA0BD,QAAA,MAAM,yBAAyB,UAAW,MAAM,gBAqI/C,CAAC;AAEF,OAAO,EAAE,yBAAyB,EAAE,CAAC"}
1
+ {"version":3,"file":"NoClusterIDReasonSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseManagement/NoClusterIDReasonSelector.tsx"],"names":[],"mappings":"AAgBA,UAAU,MAAM;IACZ,uBAAuB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAClD,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,4BAA4B,EAAE,MAAM,CAAC;IACrC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AAeD,QAAA,MAAM,yBAAyB,UAAW,MAAM,gBAmJ/C,CAAC;AAEF,OAAO,EAAE,yBAAyB,EAAE,CAAC"}
@@ -6,6 +6,7 @@ import { haventLoadedMetadata } from '@rh-support/utils';
6
6
  import filter from 'lodash/filter';
7
7
  import React, { useContext, useEffect, useRef, useState } from 'react';
8
8
  import { Trans, useTranslation } from 'react-i18next';
9
+ import { PDFContext } from '../CaseEditView/PDFContainer';
9
10
  const createState = (display_value, display_name) => {
10
11
  return {
11
12
  display_name,
@@ -18,8 +19,6 @@ const createState = (display_value, display_name) => {
18
19
  },
19
20
  };
20
21
  };
21
- const registerMyClusterID = () => (React.createElement("a", { className: "show-target", href: "https://console.redhat.com/openshift/register ", target: "_blank", rel: "noopener noreferrer" },
22
- React.createElement(Trans, null, "Register my Cluster ID")));
23
22
  const NoClusterIDReasonSelector = (props) => {
24
23
  const { t } = useTranslation();
25
24
  const [isOpen, setIsOpen] = useState(false);
@@ -28,6 +27,7 @@ const NoClusterIDReasonSelector = (props) => {
28
27
  const [notRegistered, setNotRegistered] = useState(false);
29
28
  const globalDispatch = useGlobalDispatchContext();
30
29
  const { globalMetadataState: { caseNoClusterIdReasons }, } = useContext(GlobalMetadataStateContext);
30
+ const { isExportingPDF } = useContext(PDFContext);
31
31
  const onToggle = (isOpen) => {
32
32
  setIsOpen(isOpen);
33
33
  };
@@ -90,10 +90,14 @@ const NoClusterIDReasonSelector = (props) => {
90
90
  }
91
91
  }, [props.isInValid]);
92
92
  const titleId = 'Reason-name-select';
93
+ const registerMyClusterID = () => (React.createElement("a", { className: `show-target ${isExportingPDF ? 'hide-in-pdf' : ''}`, href: "https://console.redhat.com/openshift/register ", target: "_blank", rel: "noopener noreferrer" },
94
+ React.createElement(Trans, null, "Register my Cluster ID")));
93
95
  return (React.createElement("div", { className: "form-group" },
94
96
  React.createElement("label", { id: titleId },
95
97
  React.createElement(Trans, null, "I don't have my Cluster ID, because:"),
96
- React.createElement("span", { className: "form-required", "aria-hidden": true }, "*")),
98
+ React.createElement("span", { className: `form-required ${isExportingPDF ? 'hide-in-pdf' : ''}`, "aria-hidden": true },
99
+ ' ',
100
+ "*")),
97
101
  React.createElement(Select, { variant: SelectVariant.typeahead, typeAheadAriaLabel: t('Select an option or briefly describe your reason'), onToggle: onToggle, onSelect: onSelect, selections: getSelectedItem(), isOpen: isOpen, placeholderText: t('Select an option or briefly describe your reason'), noValidate: props.isInValid, "aria-labelledby": titleId, "aria-invalid": props.isInValid, "aria-describedby": "validate-reason-helper", validated: validated, className: `form-control${props.isInValid ? ' form-invalid' : ''}`, isDisabled: caseNoClusterIdReasons.isFetching || props.isDisabled, required: true, onFilter: () => null, ref: selectRef, onTypeaheadInputChanged: onTypeaheadInputChanged }, (caseNoClusterIdReasonsList || []).map((option, index) => (React.createElement(SelectOption, { key: index, value: createState(option, t(option)) })))),
98
102
  React.createElement(LoadingIndicator, { show: caseNoClusterIdReasons.isFetching, size: "xs" }),
99
103
  React.createElement("p", { id: "validate-reason-helper", className: `form-instructions ${props.isInValid ? 'form-invalid' : ''}` },
@@ -1 +1 @@
1
- {"version":3,"file":"OpenShiftV3Inputbox.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseManagement/OpenShiftV3Inputbox.tsx"],"names":[],"mappings":"AAOA,UAAU,MAAM;IACZ,uBAAuB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAClD,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;CACvB;AAED,iBAAS,mBAAmB,CAAC,KAAK,EAAE,MAAM,eA4BzC;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
1
+ {"version":3,"file":"OpenShiftV3Inputbox.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseManagement/OpenShiftV3Inputbox.tsx"],"names":[],"mappings":"AAQA,UAAU,MAAM;IACZ,uBAAuB,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAClD,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,EAAE,OAAO,CAAC;CACvB;AAED,iBAAS,mBAAmB,CAAC,KAAK,EAAE,MAAM,eA8BzC;AAED,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
@@ -1,10 +1,12 @@
1
1
  import { TextInput } from '@patternfly/react-core';
2
- import React from 'react';
2
+ import React, { useContext } from 'react';
3
3
  import { Trans, useTranslation } from 'react-i18next';
4
+ import { PDFContext } from '../CaseEditView/PDFContainer';
4
5
  import CaseOpenShiftV3Popover from '../CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenShiftV3Popover';
5
6
  import { v3Tov4TransitionLink } from './OpenShiftClusterId';
6
7
  function OpenShiftV3Inputbox(props) {
7
8
  const { t } = useTranslation();
9
+ const { isExportingPDF } = useContext(PDFContext);
8
10
  return (React.createElement("div", { className: "form-group" },
9
11
  React.createElement("label", { htmlFor: "case-details-v3-cluster-name" },
10
12
  React.createElement(Trans, null, "OpenShift Cluster Name"),
@@ -14,6 +16,6 @@ function OpenShiftV3Inputbox(props) {
14
16
  React.createElement("p", { id: "validated-helper", className: `form-instructions ${props.isInValid ? 'form-invalid' : ''}` },
15
17
  "If you do not have your Cluster Name available, briefly explain why.",
16
18
  ' ',
17
- !props.v3Selected && v3Tov4TransitionLink())));
19
+ !props.v3Selected && !isExportingPDF && v3Tov4TransitionLink())));
18
20
  }
19
21
  export { OpenShiftV3Inputbox };
@@ -1 +1 @@
1
- {"version":3,"file":"OpenshiftDropdownV4.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseManagement/OpenshiftDropdownV4.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAG5E,OAAO,EAAE,gBAAgB,EAAuB,MAAM,0BAA0B,CAAC;AAUjF,UAAU,MAAO,SAAQ,gBAAgB;IACrC,uBAAuB,EAAE,MAAM,CAAC;IAChC,sBAAsB,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,oBAAoB,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACzF,kBAAkB,EAAE,OAAO,CAAC;IAC5B,iCAAiC,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAChD,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,IAAI,EAAE,OAAO,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC,oBAAoB,CAAC,EAAE,MAAM,CAAC;CACjC;AAuBD,iBAAS,mBAAmB,CAAC,KAAK,EAAE,MAAM,eA8WzC;kBA9WQ,mBAAmB;;;AAiX5B,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
1
+ {"version":3,"file":"OpenshiftDropdownV4.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseManagement/OpenshiftDropdownV4.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAC;AAG5E,OAAO,EAAE,gBAAgB,EAAuB,MAAM,0BAA0B,CAAC;AAWjF,UAAU,MAAO,SAAQ,gBAAgB;IACrC,uBAAuB,EAAE,MAAM,CAAC;IAChC,sBAAsB,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,oBAAoB,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACzF,kBAAkB,EAAE,OAAO,CAAC;IAC5B,iCAAiC,CAAC,EAAE,GAAG,CAAC,OAAO,CAAC;IAChD,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,IAAI,EAAE,OAAO,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC,oBAAoB,CAAC,EAAE,MAAM,CAAC;CACjC;AAuBD,iBAAS,mBAAmB,CAAC,KAAK,EAAE,MAAM,eAgXzC;kBAhXQ,mBAAmB;;;AAmX5B,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
@@ -13,9 +13,10 @@ import { useLRUCache } from '@rh-support/components';
13
13
  import debounce from 'lodash/debounce';
14
14
  import groupBy from 'lodash/groupBy';
15
15
  import isEmpty from 'lodash/isEmpty';
16
- import React, { useEffect, useMemo, useRef, useState } from 'react';
16
+ import React, { useContext, useEffect, useMemo, useRef, useState } from 'react';
17
17
  import { Trans, useTranslation } from 'react-i18next';
18
18
  import { getDisplayNameForCluster } from '../../utils/caseOpenshiftClusterIdUtils';
19
+ import { PDFContext } from '../CaseEditView/PDFContainer';
19
20
  import CaseOpenShiftPopover from '../CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenShiftPopover';
20
21
  const defaultProps = {
21
22
  className: '',
@@ -49,6 +50,7 @@ function OpenshiftDropdownV4(props) {
49
50
  const [isFetchingClusters, setIsFetchingClusters] = useState(false);
50
51
  const [totalResultsNo, setTotalResultsNo] = useState(0);
51
52
  const { getFromCache, setInCache } = useLRUCache(50);
53
+ const { isExportingPDF } = useContext(PDFContext);
52
54
  // gets a cluster id and returns display name
53
55
  const getDisplayName = (id, noClusterIdReasonExplanation, display_name) => {
54
56
  if (isEmpty(id))
@@ -283,10 +285,10 @@ function OpenshiftDropdownV4(props) {
283
285
  React.createElement("div", { className: `${props.className} form-group` },
284
286
  React.createElement("label", { htmlFor: "case-details-cluster-nickname-selector" },
285
287
  React.createElement(Trans, null, "OpenShift Cluster ID"),
286
- React.createElement("span", { className: "form-required", "aria-hidden": true }, "*"),
287
- React.createElement(CaseOpenShiftPopover, null)),
288
+ React.createElement("span", { className: `form-required ${isExportingPDF ? 'hide-in-pdf' : ''}`, "aria-hidden": true }, "*"),
289
+ !isExportingPDF ? React.createElement(CaseOpenShiftPopover, null) : ''),
288
290
  React.createElement("span", { id: titleId, hidden: true }, "Select a state"),
289
- React.createElement(Select, Object.assign({ variant: SelectVariant.typeahead, isDisabled: props.isDisabled, typeAheadAriaLabel: t('Search by Cluster ID, alias, and domain or manually enter your Cluster ID'), onToggle: onToggle, onSelect: onSelect, onClear: onDropdownClear, selections: getSelectedItem(), isOpen: isOpen, "aria-labelledby": titleId, placeholderText: t('Search by Cluster ID, alias, and domain or manually enter your Cluster ID'), hasInlineFilter: false, onTypeaheadInputChanged: debounceFn, onFilter: () => undefined, validated: validated, "aria-invalid": props.isClusterIdInvalid, "aria-describedby": "clusterID-validate-helper", required: true }, (isFetchingClusters && { loadingVariant: 'spinner' }), (!isFetchingClusters &&
291
+ React.createElement(Select, Object.assign({ variant: SelectVariant.typeahead, isDisabled: props.isDisabled, typeAheadAriaLabel: t('Search by Cluster ID, alias, and domain or manually enter your Cluster ID'), onToggle: onToggle, onSelect: onSelect, onClear: !isExportingPDF ? onDropdownClear : undefined, selections: getSelectedItem(), isOpen: isOpen, "aria-labelledby": titleId, placeholderText: t('Search by Cluster ID, alias, and domain or manually enter your Cluster ID'), hasInlineFilter: false, onTypeaheadInputChanged: debounceFn, onFilter: () => undefined, validated: validated, "aria-invalid": props.isClusterIdInvalid, "aria-describedby": "clusterID-validate-helper", required: true }, (isFetchingClusters && { loadingVariant: 'spinner' }), (!isFetchingClusters &&
290
292
  clustersRawResponse.length < totalResultsNo && {
291
293
  loadingVariant: {
292
294
  text: 'Display additional results',
@@ -1 +1 @@
1
- {"version":3,"file":"ProductVersionDropdownSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/ProductSelector/ProductVersionDropdownSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAiC,MAAM,OAAO,CAAC;AAOtD,UAAU,MAAO,SAAQ,gBAAgB;IACrC,QAAQ,EAAE,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC;IAChC,eAAe,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC;IACrC,eAAe,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK,GAAG,CAAC;IACvD,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,GAAG,CAAC;IAC1C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;CACnB;AAOD,QAAA,MAAM,8BAA8B,wEA2ClC,CAAC;AAEH,OAAO,EAAE,8BAA8B,EAAE,CAAC"}
1
+ {"version":3,"file":"ProductVersionDropdownSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/ProductSelector/ProductVersionDropdownSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAiC,MAAM,OAAO,CAAC;AAOtD,UAAU,MAAO,SAAQ,gBAAgB;IACrC,QAAQ,EAAE,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC;IAChC,eAAe,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC;IACrC,eAAe,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK,GAAG,CAAC;IACvD,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,GAAG,CAAC;IAC1C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;CACnB;AAOD,QAAA,MAAM,8BAA8B,wEAuClC,CAAC;AAEH,OAAO,EAAE,8BAA8B,EAAE,CAAC"}
@@ -12,17 +12,15 @@ const ProductVersionDropdownSelector = forwardRef((props, ref) => {
12
12
  return (React.createElement(React.Fragment, null,
13
13
  React.createElement("div", { className: "product-selector-wrapper" },
14
14
  React.createElement("label", { htmlFor: "product-selector-dropdown-downshift-search", ref: ref },
15
- React.createElement("h3", { className: "subheading subheading-sm" },
16
- React.createElement(Trans, null, "Product"),
17
- ' ',
18
- React.createElement("span", { className: "form-required", "aria-hidden": true }, "*"))),
15
+ React.createElement(Trans, null, "Product"),
16
+ ' ',
17
+ React.createElement("span", { className: "form-required", "aria-hidden": true }, "*")),
19
18
  React.createElement(NewProductDropdownSelector, { products: props.products, onProductChange: props.onProductChange, selectedProduct: props.selectedProduct, onVersionChange: props.onVersionChange, isNextBtnClickedToShowValidationError: isNextBtnClickedToShowValidationError, isCaseCreate: isCaseCreate })),
20
19
  React.createElement("div", { className: "version-selector-wrapper" },
21
20
  React.createElement("label", { htmlFor: "version-selector-dropdown-toggle" },
22
- React.createElement("h3", { className: "subheading subheading-sm" },
23
- React.createElement(Trans, null, "Version"),
24
- ' ',
25
- React.createElement("span", { className: "form-required", "aria-hidden": true }, "*"))),
21
+ React.createElement(Trans, null, "Version"),
22
+ ' ',
23
+ React.createElement("span", { className: "form-required", "aria-hidden": true }, "*")),
26
24
  React.createElement(NewProductVersionSelector, { selectedProduct: props.selectedProduct, onVersionChange: props.onVersionChange, versionState: props.version, isNextBtnClickedToShowValidationError: isNextBtnClickedToShowValidationError }))));
27
25
  });
28
26
  ProductVersionDropdownSelector.defaultProps = defaultProps;
@@ -11,129 +11,6 @@ div.support-grid-case-details.support-case {
11
11
  margin-bottom: -2.5rem;
12
12
  padding: 0;
13
13
 
14
- /* Layout - progress section */
15
- .grid-progress {
16
- grid-area: progress;
17
- }
18
-
19
- .grid-progress .grid-progress-content {
20
- padding: 1.5rem 1rem 1.5rem 2rem;
21
-
22
- & > button {
23
- margin-top: 0.5rem;
24
- margin-bottom: 1rem;
25
- }
26
-
27
- & > .back-to-app {
28
- margin-left: -0.8rem;
29
- margin-bottom: 2rem;
30
- }
31
-
32
- .grid-progress-steps {
33
- counter-reset: wizard-step-count;
34
- display: -webkit-box;
35
- display: -ms-flexbox;
36
- display: flex;
37
- -webkit-box-orient: horizontal;
38
- -webkit-box-direction: normal;
39
- -ms-flex-direction: row;
40
- flex-direction: row;
41
- -webkit-box-align: center;
42
- -ms-flex-align: center;
43
- align-items: center;
44
- -webkit-box-pack: start;
45
- -ms-flex-pack: start;
46
- justify-content: flex-start;
47
- margin: 0;
48
- padding: 0 0.5rem;
49
- list-style: none;
50
-
51
- li {
52
- padding: 0 1rem;
53
-
54
- button {
55
- position: relative;
56
- text-align: left;
57
- font-weight: 400;
58
-
59
- &::before {
60
- position: absolute;
61
- display: inline-flex;
62
- align-items: center;
63
- justify-content: center;
64
- top: 0px;
65
- left: 0px;
66
- color: #fff;
67
- counter-increment: wizard-step-count;
68
- content: counter(wizard-step-count);
69
- font-size: 12px;
70
- font-weight: 600;
71
- line-height: 1;
72
- width: 1.5rem;
73
- height: 1.5rem;
74
- border-radius: 50%;
75
- transform: matrix(1, 0, 0, 1, -18, 4);
76
- }
77
-
78
- span {
79
- display: none;
80
- }
81
- }
82
-
83
- &.on button {
84
- background-color: #06c;
85
- font-weight: 600;
86
-
87
- &::before {
88
- background-color: #06c;
89
- border-color: #06c;
90
- }
91
- }
92
-
93
- &.next button,
94
- &.future button {
95
- color: #151515;
96
-
97
- &::before {
98
- background-color: #ededed;
99
- color: #151515;
100
- }
101
-
102
- &[disabled] {
103
- background-color: transparent;
104
- border-color: #8b8d8f;
105
- color: #8b8d8f;
106
-
107
- &::before {
108
- color: #8d8e8f;
109
- }
110
- }
111
-
112
- &:hover {
113
- color: #06c;
114
- }
115
- }
116
-
117
- &.completed button {
118
- color: #151515;
119
-
120
- &::before {
121
- background-color: #ededed;
122
- color: #151515;
123
- }
124
-
125
- &:hover {
126
- color: #06c;
127
- }
128
- }
129
-
130
- &:last-child {
131
- margin-bottom: 0;
132
- }
133
- }
134
- }
135
- }
136
-
137
14
  .grid-main {
138
15
  -ms-grid-row: 1;
139
16
  -ms-grid-column: 1;
@@ -156,32 +33,6 @@ div.support-grid-case-details.support-case {
156
33
  } /* ONLY until step refactoring */
157
34
  }
158
35
 
159
- .grid-navigation {
160
- -ms-grid-row: 2;
161
- -ms-grid-column: 1;
162
- grid-area: nav;
163
- position: -webkit-sticky;
164
- position: sticky;
165
- bottom: 0;
166
- display: -webkit-box;
167
- display: -ms-flexbox;
168
- display: flex;
169
- padding: 1rem;
170
- background-color: #fff;
171
- border: 1px solid #d9d9d9;
172
- border-bottom: initial;
173
- border-left: initial;
174
-
175
- /* Layout - navigation section */
176
- button:first-child {
177
- margin-right: 1em;
178
- }
179
-
180
- button:last-child:not(.btn-primary) {
181
- margin-left: auto;
182
- }
183
- }
184
-
185
36
  .grid-aside {
186
37
  grid-area: aside;
187
38
  background-color: #e7e7e7;
@@ -243,51 +94,6 @@ div.support-grid-case-details.support-case {
243
94
  'progress main'
244
95
  'progress nav';
245
96
 
246
- .grid-progress {
247
- -ms-grid-row: 1;
248
- -ms-grid-row-span: 2;
249
- -ms-grid-column: 1;
250
- display: inline-block;
251
- border-right: 1px solid #d9d9d9;
252
- padding: 1rem;
253
-
254
- & > button {
255
- margin-top: 0;
256
- margin-bottom: 1.5rem;
257
- margin-left: -0.9rem;
258
- }
259
-
260
- .grid-progress-content {
261
- position: -webkit-sticky;
262
- position: sticky;
263
- top: 8rem;
264
-
265
- .grid-progress-steps {
266
- -webkit-box-orient: vertical;
267
- -ms-flex-direction: column;
268
- flex-direction: column;
269
- -webkit-box-align: start;
270
- -ms-flex-align: start;
271
- align-items: flex-start;
272
- -webkit-box-pack: center;
273
- -ms-flex-pack: center;
274
- justify-content: center;
275
- padding: 0;
276
-
277
- li {
278
- margin-right: 0;
279
- margin-bottom: 1.5rem;
280
- padding: 0;
281
-
282
- button {
283
- white-space: nowrap;
284
- font-size: 15px;
285
- }
286
- }
287
- }
288
- }
289
- }
290
-
291
97
  .grid-main {
292
98
  -ms-grid-row: 1;
293
99
  -ms-grid-column: 2;
@@ -299,12 +105,6 @@ div.support-grid-case-details.support-case {
299
105
  position: sticky;
300
106
  top: 8rem;
301
107
  }
302
-
303
- .grid-navigation {
304
- -ms-grid-row: 2;
305
- -ms-grid-column: 2;
306
- padding: 1rem 2rem;
307
- }
308
108
  }
309
109
 
310
110
  /* Large devices - add aside */
@@ -317,8 +117,7 @@ div.support-grid-case-details.support-case {
317
117
  'progress main aside'
318
118
  'progress nav aside';
319
119
 
320
- .grid-main,
321
- .grid-navigation {
120
+ .grid-main {
322
121
  border-right: 1px solid #e7e7e7;
323
122
  }
324
123
 
@@ -337,21 +136,6 @@ div.support-grid-case-details.support-case {
337
136
  padding: 2.5rem 1.5rem;
338
137
  }
339
138
  }
340
-
341
- .grid-navigation {
342
- -ms-grid-row: 2;
343
- -ms-grid-column: 2;
344
- }
345
-
346
- .grid-progress {
347
- -ms-grid-row: 1;
348
- -ms-grid-row-span: 2;
349
- -ms-grid-column: 1;
350
-
351
- & > .grid-main-section {
352
- padding: 2rem 1rem;
353
- }
354
- }
355
139
  }
356
140
 
357
141
  /* XL devices - Add step names to progress section */
@@ -364,10 +148,6 @@ div.support-grid-case-details.support-case {
364
148
  @media (min-width: 2000px) {
365
149
  -ms-grid-columns: 300px 1fr 33%;
366
150
  grid-template-columns: 300px auto 33%;
367
-
368
- .grid-progress {
369
- padding: 1rem;
370
- }
371
151
  }
372
152
 
373
153
  /* Case details grid */