@docsvision/management-console 6.2.0-beta.23 → 6.2.0-beta.25

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/index.d.ts CHANGED
@@ -318,7 +318,7 @@ export declare function actionWithThemeCssVariables(theme: Theme, action: Action
318
318
 
319
319
  export declare function addCssVariables(theme: Theme): void;
320
320
 
321
- export declare function AlertBanner({ text }: IAlertBanner): JSX.Element;
321
+ export declare function AlertBanner({ text, typographyProps }: IAlertBanner): JSX.Element;
322
322
 
323
323
  export declare function AlertTile(props: IAlertTile): JSX.Element;
324
324
 
@@ -529,7 +529,7 @@ export declare class DomEntryPointService implements IDomEntryPointService {
529
529
 
530
530
  export declare function DropdownBody(props: IDropdownBodyProps): JSX.Element;
531
531
 
532
- export declare const DropdownOption: React_2.ForwardRefExoticComponent<Pick<IDropdownOptionProps, "slot" | "style" | "title" | "onClick" | "color" | "children" | "className" | "id" | "classes" | "onChange" | "sx" | "translate" | "disabled" | "disableGutters" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "autoFocus" | "value" | "action" | "selected" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "component" | "dense" | "displayName" | "divider"> & React_2.RefAttributes<HTMLLIElement>>;
532
+ export declare const DropdownOption: React_2.ForwardRefExoticComponent<Pick<IDropdownOptionProps, "slot" | "style" | "title" | "onClick" | "color" | "children" | "className" | "id" | "classes" | "onChange" | "sx" | "translate" | "disabled" | "disableGutters" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "autoFocus" | "value" | "action" | "selected" | "centerRipple" | "disableRipple" | "disableTouchRipple" | "focusRipple" | "focusVisibleClassName" | "LinkComponent" | "onFocusVisible" | "TouchRippleProps" | "touchRippleRef" | "dense" | "component" | "displayName" | "divider"> & React_2.RefAttributes<HTMLLIElement>>;
533
533
 
534
534
  export declare function DropdownWithEllipsis(props: IDropdownWithEllipsisProps): JSX.Element;
535
535
 
@@ -740,6 +740,7 @@ export declare interface IAccordionProps {
740
740
 
741
741
  declare interface IAlertBanner {
742
742
  text: string;
743
+ typographyProps?: TypographyProps;
743
744
  }
744
745
 
745
746
  export declare interface IAlertTile {
@@ -1268,7 +1269,7 @@ export declare interface IDropdownOptionProps extends Omit<MenuItemProps, "butto
1268
1269
 
1269
1270
  export declare interface IDropdownWithEllipsisProps {
1270
1271
  options: IPageElementOption_2[];
1271
- value: string;
1272
+ value?: string | number;
1272
1273
  label: string;
1273
1274
  handleChange: (value: string) => void;
1274
1275
  field: ControllerRenderProps<FieldValues, string>;
package/index.js CHANGED
@@ -64,9 +64,9 @@ function Accordion(props) {
64
64
  /* @__PURE__ */ jsx(AccordionDetails, { children: details() })
65
65
  ] }) });
66
66
  }
67
- function AlertBanner({ text }) {
67
+ function AlertBanner({ text, typographyProps }) {
68
68
  if (text) {
69
- return /* @__PURE__ */ jsx("div", { className: "alert-banner", children: /* @__PURE__ */ jsx(Typography$3, { color: "inherit", children: text }) });
69
+ return /* @__PURE__ */ jsx("div", { className: "alert-banner", "data-testid": "alert-banner", children: /* @__PURE__ */ jsx(Typography$3, { color: "inherit", ...typographyProps, children: text }) });
70
70
  }
71
71
  }
72
72
  const defaultGenerator = (componentName) => componentName;
@@ -37659,7 +37659,8 @@ const theme = createTheme$3({
37659
37659
  typography: {
37660
37660
  h1: {
37661
37661
  fontSize: "2rem",
37662
- fontWeight: 600
37662
+ fontWeight: 400,
37663
+ textTransform: "uppercase"
37663
37664
  },
37664
37665
  h4: {
37665
37666
  fontSize: "1.2rem",
@@ -37689,6 +37690,13 @@ const theme = createTheme$3({
37689
37690
  },
37690
37691
  caption: {
37691
37692
  fontSize: ".8rem"
37693
+ },
37694
+ overline: {
37695
+ fontSize: ".7rem",
37696
+ color: "var(--grey-700-color)",
37697
+ lineHeight: "normal",
37698
+ letterSpacing: "normal",
37699
+ textTransform: "none"
37692
37700
  }
37693
37701
  },
37694
37702
  components: {
@@ -59277,10 +59285,10 @@ function DropdownWithEllipsis(props) {
59277
59285
  select: true,
59278
59286
  "data-testid": dataTestId,
59279
59287
  ...field,
59280
- value,
59288
+ value: value?.toString() ?? "",
59281
59289
  inputRef: field.ref,
59282
59290
  ref: anchorRef,
59283
- onChange: (event) => handleChange(event.target.value),
59291
+ onChange: (event) => handleChange(String(event.target.value)),
59284
59292
  className,
59285
59293
  variant: "outlined",
59286
59294
  size: "small",
@@ -59290,15 +59298,18 @@ function DropdownWithEllipsis(props) {
59290
59298
  label: shouldShowFloatingLabel ? label : void 0,
59291
59299
  InputLabelProps: shouldShowFloatingLabel ? { shrink: true } : void 0,
59292
59300
  children: [
59293
- options?.map((option) => /* @__PURE__ */ jsx(
59294
- DropdownOption2,
59295
- {
59296
- "data-testid": `${dataTestId}-option-${option.value}`,
59297
- value: option.value,
59298
- displayName: option.displayName
59299
- },
59300
- `${field.name}_${option.value}`
59301
- )),
59301
+ options?.map((option) => {
59302
+ const optionValue = option.value?.toString() ?? "";
59303
+ return /* @__PURE__ */ jsx(
59304
+ DropdownOption2,
59305
+ {
59306
+ "data-testid": `${dataTestId}-option-${optionValue}`,
59307
+ value: optionValue,
59308
+ displayName: option.displayName
59309
+ },
59310
+ `${field.name}_${optionValue}`
59311
+ );
59312
+ }),
59302
59313
  options.length === 0 && noOptionsText && /* @__PURE__ */ jsx(NoOptionMenuItem, { text: noOptionsText })
59303
59314
  ]
59304
59315
  }
@@ -61091,6 +61102,10 @@ function ListPanel(props) {
61091
61102
  const changeItem = async (index2, value2) => {
61092
61103
  setItems(items.map((item, i2) => i2 === index2 ? value2 : item));
61093
61104
  };
61105
+ const handleInputEnter = (e2) => {
61106
+ if (e2.key !== "Enter") return;
61107
+ addItem();
61108
+ };
61094
61109
  return /* @__PURE__ */ jsxs(List$4, { component: Paper$3, className, children: [
61095
61110
  items && items.map((item, index2) => /* @__PURE__ */ jsx(
61096
61111
  ListItem,
@@ -61111,6 +61126,7 @@ function ListPanel(props) {
61111
61126
  value,
61112
61127
  onChange: (e2) => setValue(e2.target.value),
61113
61128
  fullWidth: true,
61129
+ onKeyPress: handleInputEnter,
61114
61130
  slotProps: { htmlInput: { "data-testid": "add-item-input" } }
61115
61131
  }
61116
61132
  ),
@@ -63635,7 +63651,7 @@ class LoginLogic extends ComponentLogic {
63635
63651
  } else {
63636
63652
  const data = await response.json();
63637
63653
  if (data && data.message) {
63638
- this.setErrorAndUrlMessage(data.message);
63654
+ this.setError(data.message);
63639
63655
  }
63640
63656
  }
63641
63657
  }
@@ -63656,7 +63672,7 @@ class LoginLogic extends ComponentLogic {
63656
63672
  } else {
63657
63673
  const data = await response.json();
63658
63674
  if (data && data.message) {
63659
- this.setErrorAndUrlMessage(data.message);
63675
+ this.setError(data.message);
63660
63676
  }
63661
63677
  }
63662
63678
  } finally {
@@ -63681,16 +63697,14 @@ class LoginLogic extends ComponentLogic {
63681
63697
  fn: ({ userName, password }, event) => ({ userName, password, event }),
63682
63698
  target: this.login
63683
63699
  });
63684
- const queryParams = parseQueryString(location.search.substring(1));
63685
- const errorMessage = queryParams["message"]?.replaceAll("+", " ") || "";
63686
- this.setError(errorMessage);
63687
- }
63688
- setErrorAndUrlMessage(message) {
63689
- this.setError(message);
63690
63700
  const url = new URL(location.href);
63691
- const messageParamValue = message.replaceAll(" ", "+");
63692
- url.searchParams.set("message", messageParamValue);
63693
- history.pushState({}, "", url.toString());
63701
+ const hasMessageQueryParam = url.searchParams.has("message");
63702
+ const errorMessage = (url.searchParams.get("message") || "").replaceAll("+", " ");
63703
+ if (hasMessageQueryParam) {
63704
+ url.searchParams.delete("message");
63705
+ history.replaceState({}, "", url.toString());
63706
+ }
63707
+ this.setError(errorMessage);
63694
63708
  }
63695
63709
  }
63696
63710
  function LoginPage(props) {
@@ -70282,9 +70296,9 @@ class SettingsPageLogic extends ComponentLogic {
70282
70296
  const isCurrentService = data?.serviceId === notification.serviceId;
70283
70297
  const queryStringParams = new URLSearchParams(queryString);
70284
70298
  const extendedLayoutId = queryStringParams.get("extendedLayoutId");
70285
- const isCurrentPage = extendedLayoutId === notification.pageId;
70299
+ const isCurrentPage = extendedLayoutId ? extendedLayoutId === notification.pageId : data.layoutId === notification.pageId;
70286
70300
  const isLocalScope = notification.scope === ILongOperationScope.Local;
70287
- if (isLocalScope && !isCurrentPage) return;
70301
+ if (isLocalScope && (!isCurrentPage || !isCurrentService)) return;
70288
70302
  const buttonsProps = isCurrentService ? [{ text: resources.RefreshPage, onClick: () => location.reload(), dataTestId: "reload-button" }] : [];
70289
70303
  const notyType = notification.status === ILongOperationCompleteStatus.Success ? "info" : "error";
70290
70304
  const note = showNote({ type: notyType, timeout: 0, text: notification.message, buttonsProps });
@@ -71471,7 +71485,8 @@ function ComponentMenu(props) {
71471
71485
  const closeMenu = () => {
71472
71486
  setAnchorEl(null);
71473
71487
  };
71474
- const handleCloseMenu = () => {
71488
+ const handleCloseMenu = (event) => {
71489
+ event?.stopPropagation();
71475
71490
  setOpenedDialog(false);
71476
71491
  closeMenu();
71477
71492
  };
@@ -71517,7 +71532,7 @@ function ComponentMenu(props) {
71517
71532
  open,
71518
71533
  id: "component-menu",
71519
71534
  onClose: handleCloseMenu,
71520
- onClick: handleCloseMenu,
71535
+ onClick: (e2) => handleCloseMenu(e2),
71521
71536
  transformOrigin: { horizontal: "right", vertical: "top" },
71522
71537
  anchorOrigin: { horizontal: "right", vertical: "bottom" },
71523
71538
  children: [
@@ -109933,7 +109948,7 @@ function Dropdown(props) {
109933
109948
  const { required, id: fieldName, value, options, label } = props;
109934
109949
  const services = React__default.useContext(ServicesContext);
109935
109950
  const { resetField, control } = useCustomFormContext();
109936
- const defaultValue = value ?? "";
109951
+ const defaultValue = value !== void 0 && value !== null ? value.toString() : "";
109937
109952
  const {
109938
109953
  field,
109939
109954
  fieldState: { isDirty, error }