@docsvision/management-console 6.2.0-beta.8 → 6.2.0-beta.9

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.js CHANGED
@@ -66,7 +66,7 @@ function Accordion(props) {
66
66
  }
67
67
  function AlertBanner({ text }) {
68
68
  if (text) {
69
- return /* @__PURE__ */ jsx("div", { className: "alert-banner", children: /* @__PURE__ */ jsx(Typography$3, { variant: "subtitle2", color: "inherit", children: text }) });
69
+ return /* @__PURE__ */ jsx("div", { className: "alert-banner", children: /* @__PURE__ */ jsx(Typography$3, { color: "inherit", children: text }) });
70
70
  }
71
71
  }
72
72
  function ButtonWithLoading(props) {
@@ -52799,7 +52799,7 @@ function ErrorBlock({ text, close }) {
52799
52799
  ] });
52800
52800
  }
52801
52801
  function ErrorMessage(props) {
52802
- return /* @__PURE__ */ jsx("p", { className: classNames("error-message", props.className), children: props.message });
52802
+ return /* @__PURE__ */ jsx(Typography$3, { component: "p", variant: "caption", className: classNames("error-message", props.className), children: props.message });
52803
52803
  }
52804
52804
  function ExpandButton$1(props) {
52805
52805
  const { expanded, dataTestId, className, ...buttonProps } = props;
@@ -58959,14 +58959,14 @@ function TextMessage(props) {
58959
58959
  const { content, wrapperClassName, footer, footerClassName, header, headerClassName, contentClassName } = props;
58960
58960
  const textContent = getTextContent$1(content, contentClassName);
58961
58961
  return /* @__PURE__ */ jsxs("div", { className: classNames("text-message__wrapper", wrapperClassName), children: [
58962
- header && /* @__PURE__ */ jsx("p", { className: headerClassName, children: header }),
58962
+ header && /* @__PURE__ */ jsx(Typography$3, { component: "p", className: headerClassName, children: header }),
58963
58963
  textContent,
58964
- footer && /* @__PURE__ */ jsx("p", { className: footerClassName, children: footer })
58964
+ footer && /* @__PURE__ */ jsx(Typography$3, { component: "p", className: footerClassName, children: footer })
58965
58965
  ] });
58966
58966
  }
58967
58967
  function getTextContent$1(content, className) {
58968
58968
  if (typeof content === "string") {
58969
- return /* @__PURE__ */ jsx("p", { className, children: content });
58969
+ return /* @__PURE__ */ jsx(Typography$3, { component: "p", className, children: content });
58970
58970
  }
58971
58971
  return /* @__PURE__ */ jsx("ul", { className: classNames("text-message__list", className), children: content.map((m2) => /* @__PURE__ */ jsx("li", { children: m2 }, m2)) });
58972
58972
  }
@@ -59004,7 +59004,7 @@ function CellTextContent({ content, multiline = false }) {
59004
59004
  const shouldShowTooltip = isWidthOverflowing || isHeightOverflowing;
59005
59005
  setShowTooltip(shouldShowTooltip);
59006
59006
  }, [contentRef, content]);
59007
- return /* @__PURE__ */ jsx(LightTooltip, { title: content, placement: "top-start", disableHoverListener: !showTooltip, children: /* @__PURE__ */ jsx("div", { ref: contentRef, className: multiline ? "cell-text-content-multiline" : "cell-text-content", children: /* @__PURE__ */ jsx("span", { children: content }) }) });
59007
+ return /* @__PURE__ */ jsx(LightTooltip, { title: content, placement: "top-start", disableHoverListener: !showTooltip, children: /* @__PURE__ */ jsx("div", { ref: contentRef, className: multiline ? "cell-text-content-multiline" : "cell-text-content", children: /* @__PURE__ */ jsx(Typography$3, { variant: "body2", children: content }) }) });
59008
59008
  }
59009
59009
  function CellWithFixedWidth(props) {
59010
59010
  const { content, maxWidth: maxWidth2 } = props;
@@ -59054,7 +59054,7 @@ function DatabaseSettingsCard(props) {
59054
59054
  /* @__PURE__ */ jsxs(Grid$1, { container: true, alignItems: "center", justifyContent: "space-between", wrap: "nowrap", className: "database-settings-card__head", children: [
59055
59055
  /* @__PURE__ */ jsxs(Grid$1, { container: true, alignItems: "center", children: [
59056
59056
  /* @__PURE__ */ jsx(StorageRounded, { color: "secondary", fontSize: "large" }),
59057
- /* @__PURE__ */ jsx("p", { className: "database-settings-card__title", children: title })
59057
+ /* @__PURE__ */ jsx(Typography$3, { variant: "h5", className: "database-settings-card__title", children: title })
59058
59058
  ] }),
59059
59059
  /* @__PURE__ */ jsx(Grid$1, { children: isDefault && /* @__PURE__ */ jsx(Chip$1, { className: "database-settings-card__chip", size: "small", label }) })
59060
59060
  ] }),
@@ -59070,7 +59070,7 @@ function DropdownBody(props) {
59070
59070
  const shouldShowTooltip = contentRef.current?.scrollWidth > contentRef.current?.offsetWidth;
59071
59071
  setShowTooltip(shouldShowTooltip);
59072
59072
  }, [displayName]);
59073
- return /* @__PURE__ */ jsx(LightTooltip, { placement: "top", title: showTooltip ? displayName : "", disableFocusListener: true, disableTouchListener: true, children: /* @__PURE__ */ jsx("span", { ref: contentRef, className: "dropdown-body", children: displayName }) });
59073
+ return /* @__PURE__ */ jsx(LightTooltip, { placement: "top", title: showTooltip ? displayName : "", disableFocusListener: true, disableTouchListener: true, children: /* @__PURE__ */ jsx(Typography$3, { component: "span", ref: contentRef, className: "dropdown-body", children: displayName }) });
59074
59074
  }
59075
59075
  function getDisplayName(label, options, value) {
59076
59076
  if (typeof value === "undefined" || value === null) return label;
@@ -59080,7 +59080,7 @@ function getDisplayName(label, options, value) {
59080
59080
  const DropdownOption2 = React__default.forwardRef(function DropdownOption22({ displayName, ...menuItemProps }, ref2) {
59081
59081
  const contentRef = React__default.useRef(null);
59082
59082
  const showTooltip = contentRef.current?.scrollWidth > contentRef.current?.offsetWidth;
59083
- return /* @__PURE__ */ jsx(MenuItem$2, { ref: ref2, ...menuItemProps, children: /* @__PURE__ */ jsx(LightTooltip, { placement: "top", title: showTooltip ? displayName : "", disableFocusListener: true, disableTouchListener: true, children: /* @__PURE__ */ jsx("span", { ref: contentRef, className: "dropdown-option__content", children: displayName }) }) });
59083
+ return /* @__PURE__ */ jsx(MenuItem$2, { ref: ref2, ...menuItemProps, children: /* @__PURE__ */ jsx(LightTooltip, { placement: "top", title: showTooltip ? displayName : "", disableFocusListener: true, disableTouchListener: true, children: /* @__PURE__ */ jsx(Typography$3, { component: "span", ref: contentRef, className: "dropdown-option__content", children: displayName }) }) });
59084
59084
  });
59085
59085
  function EditorWrapper({ children, isChanged, isEditable }) {
59086
59086
  return /* @__PURE__ */ jsx("div", { className: classNames(classIf(isChanged, "changed"), classIf(isEditable, "editable"), "editor-wrapper"), children });
@@ -59124,10 +59124,10 @@ function EditorCollectionEditor(props) {
59124
59124
  ] });
59125
59125
  }
59126
59126
  function EditorDescription({ text }) {
59127
- return text ? /* @__PURE__ */ jsx("div", { className: "editor-description", children: text }) : null;
59127
+ return text ? /* @__PURE__ */ jsx(Typography$3, { variant: "body2", className: "editor-description", children: text }) : null;
59128
59128
  }
59129
59129
  function EditorName({ text }) {
59130
- return /* @__PURE__ */ jsx("div", { className: "editor-name", children: text });
59130
+ return /* @__PURE__ */ jsx(Typography$3, { variant: "h5", className: "editor-name", children: text });
59131
59131
  }
59132
59132
  function EditorInnerWrapper(props) {
59133
59133
  const { label, description, children, className } = props;
@@ -59142,7 +59142,7 @@ function GroupPanel(props) {
59142
59142
  return /* @__PURE__ */ jsx(List$4, { component: Paper$3, children: groups && Object.keys(groups).map((group) => {
59143
59143
  return /* @__PURE__ */ jsxs(ListItemButton, { onClick: () => selectGroup(group), selected: selectedGroup === group, children: [
59144
59144
  /* @__PURE__ */ jsx(ListItemIcon$1, { children: /* @__PURE__ */ jsx(GroupIcon, {}) }),
59145
- /* @__PURE__ */ jsx(ListItemText$1, { primary: group })
59145
+ /* @__PURE__ */ jsx(ListItemText$1, { slotProps: { primary: { variant: "body2" } }, primary: group })
59146
59146
  ] }, group);
59147
59147
  }) });
59148
59148
  }
@@ -82321,6 +82321,35 @@ const theme = createTheme$3({
82321
82321
  h1: {
82322
82322
  fontSize: "2rem",
82323
82323
  fontWeight: 600
82324
+ },
82325
+ h4: {
82326
+ fontSize: "1.2rem",
82327
+ fontWeight: 600
82328
+ },
82329
+ h5: {
82330
+ fontSize: "1.1rem",
82331
+ fontWeight: 600
82332
+ },
82333
+ h6: {
82334
+ fontSize: "1rem",
82335
+ fontWeight: 600,
82336
+ lineHeight: "normal"
82337
+ },
82338
+ subtitle1: {
82339
+ fontSize: "1.5rem",
82340
+ fontWeight: 400,
82341
+ lineHeight: 1.5
82342
+ },
82343
+ subtitle2: {
82344
+ fontSize: "1.2rem",
82345
+ fontWeight: 400
82346
+ },
82347
+ body2: {
82348
+ fontSize: ".85rem",
82349
+ lineHeight: 1.5
82350
+ },
82351
+ caption: {
82352
+ fontSize: ".8rem"
82324
82353
  }
82325
82354
  },
82326
82355
  components: {
@@ -84367,7 +84396,7 @@ function DropdownWithTooltip(props) {
84367
84396
  },
84368
84397
  renderValue: (selected) => {
84369
84398
  const selectedOption = options.find((option) => option.value === Number(selected));
84370
- return /* @__PURE__ */ jsx(LightTooltip, { placement: "top", title: selectedOption?.tooltip, children: /* @__PURE__ */ jsx("span", { className: "database-generation-settings__selected-value", children: selectedOption?.displayName }) });
84399
+ return /* @__PURE__ */ jsx(LightTooltip, { placement: "top", title: selectedOption?.tooltip, children: /* @__PURE__ */ jsx(Typography$3, { component: "span", className: "database-generation-settings__selected-value", children: selectedOption?.displayName }) });
84371
84400
  }
84372
84401
  };
84373
84402
  return /* @__PURE__ */ jsx(
@@ -84381,7 +84410,7 @@ function DropdownWithTooltip(props) {
84381
84410
  className,
84382
84411
  size: "small",
84383
84412
  slotProps: { select: { ...selectProps, inputProps: { "data-testid": dataTestId } } },
84384
- children: options.map((option) => /* @__PURE__ */ jsx(MenuItem, { value: option.value, "data-testid": `${dataTestId}-option-${option.value}`, children: /* @__PURE__ */ jsx(LightTooltip, { placement: "top", title: option.tooltip, children: /* @__PURE__ */ jsx("span", { children: option.displayName }) }) }, `${name}_${option.value}`))
84413
+ children: options.map((option) => /* @__PURE__ */ jsx(MenuItem, { value: option.value, "data-testid": `${dataTestId}-option-${option.value}`, children: /* @__PURE__ */ jsx(LightTooltip, { placement: "top", title: option.tooltip, children: /* @__PURE__ */ jsx(Typography$3, { component: "span", children: option.displayName }) }) }, `${name}_${option.value}`))
84385
84414
  }
84386
84415
  );
84387
84416
  }
@@ -87667,7 +87696,6 @@ function ReloadIcon(props) {
87667
87696
  const { className, color: color2, loading, onClick } = props;
87668
87697
  return /* @__PURE__ */ jsx("div", { onClick, className: classNames("reload-icon", className, classIf(loading, "loading")), children: /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: color2, children: /* @__PURE__ */ jsx("path", { d: "M12,18A6,6 0 0,1 6,12C6,11 6.25,10.03 6.7,9.2L5.24,7.74C4.46,8.97 4,10.43 4,12A8,8 0 0,0 12,20V23L16,19L12,15M12,4V1L8,5L12,9V6A6,6 0 0,1 18,12C18,13 17.75,13.97 17.3,14.8L18.76,16.26C19.54,15.03 20,13.57 20,12A8,8 0 0,0 12,4Z" }) }) });
87669
87698
  }
87670
- const ICON_COLOR = "#607d8b";
87671
87699
  function ExpandButton(props) {
87672
87700
  const { expanded, dataTestId, className, disabled, ...elementProps } = props;
87673
87701
  const expandedClass = expanded ? "expand-button__expanded" : "expand-button__collapsed";
@@ -87681,12 +87709,13 @@ function ExpandButton(props) {
87681
87709
  }
87682
87710
  );
87683
87711
  }
87712
+ const ICON_COLOR = "#607d8b";
87684
87713
  function ServerList(props) {
87685
87714
  const { services, servers, selectServer, reloadServerList, selectedServerId, loading } = props;
87686
87715
  const [expanded, setExpanded] = useState(true);
87687
87716
  return /* @__PURE__ */ jsxs("div", { className: "server-list", children: [
87688
87717
  /* @__PURE__ */ jsxs("div", { className: "server-list__title", children: [
87689
- /* @__PURE__ */ jsxs("div", { className: "server-list__title__text", children: [
87718
+ /* @__PURE__ */ jsxs(Typography$3, { variant: "h5", className: "server-list__title__text", children: [
87690
87719
  /* @__PURE__ */ jsx(ExpandButton, { onClick: () => setExpanded(!expanded), expanded: servers?.length > 0 && expanded, disabled: !servers?.length }),
87691
87720
  `${services.resources.Servers} (${servers?.length ?? 0})`
87692
87721
  ] }),
@@ -87700,7 +87729,7 @@ function ServerList(props) {
87700
87729
  {
87701
87730
  className: "server-list__item-content" + classIf(selectedServerId === server.id, "selected"),
87702
87731
  onClick: () => selectServer(server),
87703
- children: server.name
87732
+ children: /* @__PURE__ */ jsx(Typography$3, { variant: "body2", component: "span", children: server.name })
87704
87733
  }
87705
87734
  )
87706
87735
  ] }, server.id);
@@ -87779,23 +87808,6 @@ class ServersPageLogic extends ComponentLogic {
87779
87808
  function ServerIcon() {
87780
87809
  return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "24px", height: "24px", fill: ICON_COLOR, children: /* @__PURE__ */ jsx("path", { d: "M2 4.6V9.4C2 10.3 2.5 11 3.2 11H20.9C21.5 11 22.1 10.3 22.1 9.4V4.6C22 3.7 21.5 3 20.8 3H3.2C2.5 3 2 3.7 2 4.6M10 8V6H9V8H10M5 8H7V6H5V8M20 9H4V5H20V9M2 14.6V19.4C2 20.3 2.5 21 3.2 21H20.9C21.5 21 22.1 20.3 22.1 19.4V14.6C22.1 13.7 21.6 13 20.9 13H3.2C2.5 13 2 13.7 2 14.6M10 18V16H9V18H10M5 18H7V16H5V18M20 19H4V15H20V19Z" }) });
87781
87810
  }
87782
- function ServerDescriptionCard(props) {
87783
- const { name, operatingSystem, services } = props;
87784
- const resources = services.resources;
87785
- const fields = [
87786
- { label: resources.ServerName, value: name },
87787
- { label: resources.OperatingSystem, value: operatingSystem }
87788
- ];
87789
- return /* @__PURE__ */ jsxs("div", { className: "server-description-card", children: [
87790
- /* @__PURE__ */ jsx(InformationIcon, { className: "server-description-card__info-icon", color: ICON_COLOR }),
87791
- /* @__PURE__ */ jsx("div", { className: "server-description-card__data", children: fields.map((field) => {
87792
- return /* @__PURE__ */ jsxs(React__default.Fragment, { children: [
87793
- /* @__PURE__ */ jsx("label", { children: field.label }),
87794
- /* @__PURE__ */ jsx("div", { children: field.value })
87795
- ] }, field.label);
87796
- }) })
87797
- ] });
87798
- }
87799
87811
  function ComponentList(props) {
87800
87812
  const { components, services, onComponentClick, onDeleteClick } = props;
87801
87813
  const onDeleteIconClick = async (event, component) => {
@@ -87816,7 +87828,7 @@ function ComponentList(props) {
87816
87828
  components.map((component) => {
87817
87829
  return /* @__PURE__ */ jsxs("div", { className: "component-list__item", onClick: () => onComponentClick(component), children: [
87818
87830
  /* @__PURE__ */ jsx(ComponentIcon, { color: ICON_COLOR }),
87819
- /* @__PURE__ */ jsx("div", { className: "component-list__item__content", children: component.serviceName }),
87831
+ /* @__PURE__ */ jsx(Typography$3, { className: "component-list__item__content", children: component.serviceName }),
87820
87832
  /* @__PURE__ */ jsx(
87821
87833
  DeleteIcon,
87822
87834
  {
@@ -87830,6 +87842,26 @@ function ComponentList(props) {
87830
87842
  })
87831
87843
  ] });
87832
87844
  }
87845
+ function ServerDescriptionCard(props) {
87846
+ const { name, operatingSystem, services } = props;
87847
+ const resources = services.resources;
87848
+ const fields = [
87849
+ { label: resources.ServerName, value: name },
87850
+ { label: resources.OperatingSystem, value: operatingSystem }
87851
+ ];
87852
+ return /* @__PURE__ */ jsxs("div", { className: "server-description-card", children: [
87853
+ /* @__PURE__ */ jsx(InformationIcon, { className: "server-description-card__info-icon", color: ICON_COLOR }),
87854
+ /* @__PURE__ */ jsx("div", { className: "server-description-card__data", children: fields.map((field) => {
87855
+ return /* @__PURE__ */ jsxs(React__default.Fragment, { children: [
87856
+ /* @__PURE__ */ jsxs("label", { children: [
87857
+ field.label,
87858
+ ":"
87859
+ ] }),
87860
+ /* @__PURE__ */ jsx(Typography$3, { component: "span", variant: "body2", children: field.value })
87861
+ ] }, field.label);
87862
+ }) })
87863
+ ] });
87864
+ }
87833
87865
  function ServerDescriptionPanel(props) {
87834
87866
  const { serverDescription, loadingServices, services } = props;
87835
87867
  const onComponentClick = (component) => {
@@ -87843,7 +87875,7 @@ function ServerDescriptionPanel(props) {
87843
87875
  return /* @__PURE__ */ jsx(LoadingMore, { loading: true });
87844
87876
  }
87845
87877
  if (!serverDescription) {
87846
- return /* @__PURE__ */ jsx("div", { className: "server-description-panel__title", children: services.resources.SelectServer });
87878
+ return /* @__PURE__ */ jsx(Typography$3, { variant: "subtitle2", className: "server-description-panel__title", children: services.resources.SelectServer });
87847
87879
  }
87848
87880
  return /* @__PURE__ */ jsxs(Fragment, { children: [
87849
87881
  /* @__PURE__ */ jsx(
@@ -121426,7 +121458,7 @@ function ExtendedConfiguration(props) {
121426
121458
  ] })
121427
121459
  ] }),
121428
121460
  /* @__PURE__ */ jsxs("div", { className: "extended-configuration", children: [
121429
- /* @__PURE__ */ jsx(Typography$3, { variant: "h4", color: "secondary", children: resources.AdvancedSettings }),
121461
+ /* @__PURE__ */ jsx(Typography$3, { variant: "h1", color: "secondary", children: resources.AdvancedSettings }),
121430
121462
  /* @__PURE__ */ jsx(SearchRow, { changeSearchText: (searchText2) => logic.changeSearchText(searchText2), searchText, services: props.services }),
121431
121463
  /* @__PURE__ */ jsx(Paper$3, { className: "extended-configuration__table", children: /* @__PURE__ */ jsx(
121432
121464
  DataGrid,
@@ -124504,7 +124536,7 @@ function ConfigurationLocksPage(props) {
124504
124536
  resources,
124505
124537
  pendingUnlockOperations
124506
124538
  }
124507
- ) : /* @__PURE__ */ jsx("p", { className: "configuration-locks-page__text", children: resources.ConfigurationLocks_Empty }))
124539
+ ) : /* @__PURE__ */ jsx(Typography$3, { component: "p", className: "configuration-locks-page__text", children: resources.ConfigurationLocks_Empty }))
124508
124540
  ] }) });
124509
124541
  }
124510
124542
  function ConfigurationLocksRouteComponent(props) {