@docsvision/management-console 6.2.0-beta.12 → 6.2.0-beta.13

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;
@@ -59066,7 +59066,7 @@ function DatabaseSettingsCard(props) {
59066
59066
  /* @__PURE__ */ jsxs(Grid$1, { container: true, alignItems: "center", justifyContent: "space-between", wrap: "nowrap", className: "database-settings-card__head", children: [
59067
59067
  /* @__PURE__ */ jsxs(Grid$1, { container: true, alignItems: "center", children: [
59068
59068
  /* @__PURE__ */ jsx(StorageRounded, { color: "secondary", fontSize: "large" }),
59069
- /* @__PURE__ */ jsx("p", { className: "database-settings-card__title", children: title })
59069
+ /* @__PURE__ */ jsx(Typography$3, { variant: "h5", className: "database-settings-card__title", children: title })
59070
59070
  ] }),
59071
59071
  /* @__PURE__ */ jsx(Grid$1, { children: isDefault && /* @__PURE__ */ jsx(Chip$1, { className: "database-settings-card__chip", size: "small", label }) })
59072
59072
  ] }),
@@ -59082,7 +59082,7 @@ function DropdownBody(props) {
59082
59082
  const shouldShowTooltip = contentRef.current?.scrollWidth > contentRef.current?.offsetWidth;
59083
59083
  setShowTooltip(shouldShowTooltip);
59084
59084
  }, [displayName]);
59085
- return /* @__PURE__ */ jsx(LightTooltip, { placement: "top", title: showTooltip ? displayName : "", disableFocusListener: true, disableTouchListener: true, children: /* @__PURE__ */ jsx("span", { ref: contentRef, className: "dropdown-body", children: displayName }) });
59085
+ 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 }) });
59086
59086
  }
59087
59087
  function getDisplayName(label, options, value) {
59088
59088
  if (typeof value === "undefined" || value === null) return label;
@@ -59092,7 +59092,7 @@ function getDisplayName(label, options, value) {
59092
59092
  const DropdownOption2 = React__default.forwardRef(function DropdownOption22({ displayName, ...menuItemProps }, ref2) {
59093
59093
  const contentRef = React__default.useRef(null);
59094
59094
  const showTooltip = contentRef.current?.scrollWidth > contentRef.current?.offsetWidth;
59095
- 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 }) }) });
59095
+ 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 }) }) });
59096
59096
  });
59097
59097
  function EditorWrapper({ children, isChanged, isEditable }) {
59098
59098
  return /* @__PURE__ */ jsx("div", { className: classNames(classIf(isChanged, "changed"), classIf(isEditable, "editable"), "editor-wrapper"), children });
@@ -59136,10 +59136,10 @@ function EditorCollectionEditor(props) {
59136
59136
  ] });
59137
59137
  }
59138
59138
  function EditorDescription({ text }) {
59139
- return text ? /* @__PURE__ */ jsx("div", { className: "editor-description", children: text }) : null;
59139
+ return text ? /* @__PURE__ */ jsx(Typography$3, { variant: "body2", className: "editor-description", children: text }) : null;
59140
59140
  }
59141
59141
  function EditorName({ text }) {
59142
- return /* @__PURE__ */ jsx("div", { className: "editor-name", children: text });
59142
+ return /* @__PURE__ */ jsx(Typography$3, { variant: "h5", className: "editor-name", children: text });
59143
59143
  }
59144
59144
  function EditorInnerWrapper(props) {
59145
59145
  const { label, description, children, className } = props;
@@ -59154,7 +59154,7 @@ function GroupPanel(props) {
59154
59154
  return /* @__PURE__ */ jsx(List$4, { component: Paper$3, children: groups && Object.keys(groups).map((group) => {
59155
59155
  return /* @__PURE__ */ jsxs(ListItemButton, { onClick: () => selectGroup(group), selected: selectedGroup === group, children: [
59156
59156
  /* @__PURE__ */ jsx(ListItemIcon$1, { children: /* @__PURE__ */ jsx(GroupIcon, {}) }),
59157
- /* @__PURE__ */ jsx(ListItemText$1, { primary: group })
59157
+ /* @__PURE__ */ jsx(ListItemText$1, { slotProps: { primary: { variant: "body2" } }, primary: group })
59158
59158
  ] }, group);
59159
59159
  }) });
59160
59160
  }
@@ -83676,6 +83676,35 @@ const theme = createTheme$3({
83676
83676
  h1: {
83677
83677
  fontSize: "2rem",
83678
83678
  fontWeight: 600
83679
+ },
83680
+ h4: {
83681
+ fontSize: "1.2rem",
83682
+ fontWeight: 600
83683
+ },
83684
+ h5: {
83685
+ fontSize: "1.1rem",
83686
+ fontWeight: 600
83687
+ },
83688
+ h6: {
83689
+ fontSize: "1rem",
83690
+ fontWeight: 600,
83691
+ lineHeight: "normal"
83692
+ },
83693
+ subtitle1: {
83694
+ fontSize: "1.5rem",
83695
+ fontWeight: 400,
83696
+ lineHeight: 1.5
83697
+ },
83698
+ subtitle2: {
83699
+ fontSize: "1.2rem",
83700
+ fontWeight: 400
83701
+ },
83702
+ body2: {
83703
+ fontSize: ".85rem",
83704
+ lineHeight: 1.5
83705
+ },
83706
+ caption: {
83707
+ fontSize: ".8rem"
83679
83708
  }
83680
83709
  },
83681
83710
  components: {
@@ -85471,7 +85500,7 @@ function DropdownWithTooltip(props) {
85471
85500
  },
85472
85501
  renderValue: (selected) => {
85473
85502
  const selectedOption = options.find((option) => option.value === Number(selected));
85474
- return /* @__PURE__ */ jsx(LightTooltip, { placement: "top", title: selectedOption?.tooltip, children: /* @__PURE__ */ jsx("span", { className: "database-generation-settings__selected-value", children: selectedOption?.displayName }) });
85503
+ 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 }) });
85475
85504
  }
85476
85505
  };
85477
85506
  return /* @__PURE__ */ jsx(
@@ -85485,7 +85514,7 @@ function DropdownWithTooltip(props) {
85485
85514
  className,
85486
85515
  size: "small",
85487
85516
  slotProps: { select: { ...selectProps, inputProps: { "data-testid": dataTestId } } },
85488
- 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}`))
85517
+ 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}`))
85489
85518
  }
85490
85519
  );
85491
85520
  }
@@ -88568,7 +88597,6 @@ function ReloadIcon(props) {
88568
88597
  const { className, color: color2, loading, onClick } = props;
88569
88598
  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" }) }) });
88570
88599
  }
88571
- const ICON_COLOR = "#607d8b";
88572
88600
  function ExpandButton(props) {
88573
88601
  const { expanded, dataTestId, className, disabled, ...elementProps } = props;
88574
88602
  const expandedClass = expanded ? "expand-button__expanded" : "expand-button__collapsed";
@@ -88582,12 +88610,13 @@ function ExpandButton(props) {
88582
88610
  }
88583
88611
  );
88584
88612
  }
88613
+ const ICON_COLOR = "#607d8b";
88585
88614
  function ServerList(props) {
88586
88615
  const { services, servers, selectServer, reloadServerList, selectedServerId, loading } = props;
88587
88616
  const [expanded, setExpanded] = useState(true);
88588
88617
  return /* @__PURE__ */ jsxs("div", { className: "server-list", children: [
88589
88618
  /* @__PURE__ */ jsxs("div", { className: "server-list__title", children: [
88590
- /* @__PURE__ */ jsxs("div", { className: "server-list__title__text", children: [
88619
+ /* @__PURE__ */ jsxs(Typography$3, { variant: "h5", className: "server-list__title__text", children: [
88591
88620
  /* @__PURE__ */ jsx(ExpandButton, { onClick: () => setExpanded(!expanded), expanded: servers?.length > 0 && expanded, disabled: !servers?.length }),
88592
88621
  `${services.resources.Servers} (${servers?.length ?? 0})`
88593
88622
  ] }),
@@ -88601,7 +88630,7 @@ function ServerList(props) {
88601
88630
  {
88602
88631
  className: "server-list__item-content" + classIf(selectedServerId === server.id, "selected"),
88603
88632
  onClick: () => selectServer(server),
88604
- children: server.name
88633
+ children: /* @__PURE__ */ jsx(Typography$3, { variant: "body2", component: "span", children: server.name })
88605
88634
  }
88606
88635
  )
88607
88636
  ] }, server.id);
@@ -88680,23 +88709,6 @@ class ServersPageLogic extends ComponentLogic {
88680
88709
  function ServerIcon() {
88681
88710
  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" }) });
88682
88711
  }
88683
- function ServerDescriptionCard(props) {
88684
- const { name, operatingSystem, services } = props;
88685
- const resources = services.resources;
88686
- const fields = [
88687
- { label: resources.ServerName, value: name },
88688
- { label: resources.OperatingSystem, value: operatingSystem }
88689
- ];
88690
- return /* @__PURE__ */ jsxs("div", { className: "server-description-card", children: [
88691
- /* @__PURE__ */ jsx(InformationIcon, { className: "server-description-card__info-icon", color: ICON_COLOR }),
88692
- /* @__PURE__ */ jsx("div", { className: "server-description-card__data", children: fields.map((field) => {
88693
- return /* @__PURE__ */ jsxs(React__default.Fragment, { children: [
88694
- /* @__PURE__ */ jsx("label", { children: field.label }),
88695
- /* @__PURE__ */ jsx("div", { children: field.value })
88696
- ] }, field.label);
88697
- }) })
88698
- ] });
88699
- }
88700
88712
  function ComponentList(props) {
88701
88713
  const { components, services, onComponentClick, onDeleteClick } = props;
88702
88714
  const onDeleteIconClick = async (event, component) => {
@@ -88717,7 +88729,7 @@ function ComponentList(props) {
88717
88729
  components.map((component) => {
88718
88730
  return /* @__PURE__ */ jsxs("div", { className: "component-list__item", onClick: () => onComponentClick(component), children: [
88719
88731
  /* @__PURE__ */ jsx(ComponentIcon, { color: ICON_COLOR }),
88720
- /* @__PURE__ */ jsx("div", { className: "component-list__item__content", children: component.serviceName }),
88732
+ /* @__PURE__ */ jsx(Typography$3, { className: "component-list__item__content", children: component.serviceName }),
88721
88733
  /* @__PURE__ */ jsx(
88722
88734
  DeleteIcon,
88723
88735
  {
@@ -88731,6 +88743,26 @@ function ComponentList(props) {
88731
88743
  })
88732
88744
  ] });
88733
88745
  }
88746
+ function ServerDescriptionCard(props) {
88747
+ const { name, operatingSystem, services } = props;
88748
+ const resources = services.resources;
88749
+ const fields = [
88750
+ { label: resources.ServerName, value: name },
88751
+ { label: resources.OperatingSystem, value: operatingSystem }
88752
+ ];
88753
+ return /* @__PURE__ */ jsxs("div", { className: "server-description-card", children: [
88754
+ /* @__PURE__ */ jsx(InformationIcon, { className: "server-description-card__info-icon", color: ICON_COLOR }),
88755
+ /* @__PURE__ */ jsx("div", { className: "server-description-card__data", children: fields.map((field) => {
88756
+ return /* @__PURE__ */ jsxs(React__default.Fragment, { children: [
88757
+ /* @__PURE__ */ jsxs("label", { children: [
88758
+ field.label,
88759
+ ":"
88760
+ ] }),
88761
+ /* @__PURE__ */ jsx(Typography$3, { component: "span", variant: "body2", children: field.value })
88762
+ ] }, field.label);
88763
+ }) })
88764
+ ] });
88765
+ }
88734
88766
  function ServerDescriptionPanel(props) {
88735
88767
  const { serverDescription, loadingServices, services } = props;
88736
88768
  const onComponentClick = (component) => {
@@ -88744,7 +88776,7 @@ function ServerDescriptionPanel(props) {
88744
88776
  return /* @__PURE__ */ jsx(LoadingMore, { loading: true });
88745
88777
  }
88746
88778
  if (!serverDescription) {
88747
- return /* @__PURE__ */ jsx("div", { className: "server-description-panel__title", children: services.resources.SelectServer });
88779
+ return /* @__PURE__ */ jsx(Typography$3, { variant: "subtitle2", className: "server-description-panel__title", children: services.resources.SelectServer });
88748
88780
  }
88749
88781
  return /* @__PURE__ */ jsxs(Fragment, { children: [
88750
88782
  /* @__PURE__ */ jsx(
@@ -122316,7 +122348,7 @@ function ExtendedConfiguration(props) {
122316
122348
  ] })
122317
122349
  ] }),
122318
122350
  /* @__PURE__ */ jsxs("div", { className: "extended-configuration", children: [
122319
- /* @__PURE__ */ jsx(Typography$3, { variant: "h4", color: "secondary", children: resources.AdvancedSettings }),
122351
+ /* @__PURE__ */ jsx(Typography$3, { variant: "h1", color: "secondary", children: resources.AdvancedSettings }),
122320
122352
  /* @__PURE__ */ jsx(SearchRow, { changeSearchText: (searchText2) => logic.changeSearchText(searchText2), searchText, services: props.services }),
122321
122353
  /* @__PURE__ */ jsx(Paper$3, { className: "extended-configuration__table", children: /* @__PURE__ */ jsx(
122322
122354
  DataGrid,
@@ -125398,7 +125430,7 @@ function ConfigurationLocksPage(props) {
125398
125430
  resources,
125399
125431
  pendingUnlockOperations
125400
125432
  }
125401
- ) : /* @__PURE__ */ jsx("p", { className: "configuration-locks-page__text", children: resources.ConfigurationLocks_Empty }))
125433
+ ) : /* @__PURE__ */ jsx(Typography$3, { component: "p", className: "configuration-locks-page__text", children: resources.ConfigurationLocks_Empty }))
125402
125434
  ] }) });
125403
125435
  }
125404
125436
  function ConfigurationLocksRouteComponent(props) {