@orchestrator-ui/orchestrator-ui-components 3.5.1 → 3.6.0
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/.turbo/turbo-build.log +6 -6
- package/.turbo/turbo-lint.log +1 -1
- package/.turbo/turbo-test.log +7 -7
- package/CHANGELOG.md +14 -0
- package/dist/index.d.ts +9 -4
- package/dist/index.js +178 -152
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/WfoInlineEdit/WfoInlineEdit.tsx +3 -4
- package/src/components/WfoPageTemplate/WfoSidebar/WfoSidebar.tsx +10 -5
- package/src/components/WfoPydanticForm/fields/TextArea.tsx +1 -0
- package/src/components/WfoSettings/WfoModifySettings.tsx +4 -2
- package/src/components/WfoTable/WfoTable/WfoDragHandler.tsx +35 -22
- package/src/components/WfoTable/WfoTable/WfoGroupedTable/WfoGroupedTable.tsx +1 -0
- package/src/components/WfoTable/WfoTable/WfoTable.tsx +18 -18
- package/src/components/WfoTable/WfoTable/WfoToolTip.tsx +1 -1
- package/src/components/WfoTable/WfoTable/styles.ts +4 -3
- package/src/components/WfoTable/WfoTable/utils.ts +14 -1
- package/src/configuration/version.ts +1 -1
- package/src/icons/WfoQuestionCircle.tsx +2 -2
- package/src/utils/optionalArray.spec.ts +41 -1
- package/src/utils/optionalArray.ts +5 -0
package/dist/index.js
CHANGED
|
@@ -26797,7 +26797,7 @@ var PolicyResource = /* @__PURE__ */ ((PolicyResource2) => {
|
|
|
26797
26797
|
})(PolicyResource || {});
|
|
26798
26798
|
|
|
26799
26799
|
// src/configuration/version.ts
|
|
26800
|
-
var ORCHESTRATOR_UI_LIBRARY_VERSION = "3.
|
|
26800
|
+
var ORCHESTRATOR_UI_LIBRARY_VERSION = "3.6.0";
|
|
26801
26801
|
|
|
26802
26802
|
// src/types/types.ts
|
|
26803
26803
|
var EngineStatus = /* @__PURE__ */ ((EngineStatus3) => {
|
|
@@ -36501,8 +36501,8 @@ var WfoQuestionCircle = ({
|
|
|
36501
36501
|
children: /* @__PURE__ */ jsx56("g", { id: "icon/play-circle", fill: "none", fillRule: "nonzero", children: /* @__PURE__ */ jsx56(
|
|
36502
36502
|
"path",
|
|
36503
36503
|
{
|
|
36504
|
-
|
|
36505
|
-
|
|
36504
|
+
strokeLinecap: "round",
|
|
36505
|
+
strokeLinejoin: "round",
|
|
36506
36506
|
d: "M9.879 7.519c1.171-1.025 3.071-1.025 4.242 0 1.172 1.025 1.172 2.687 0 3.712-.203.179-.43.326-.67.442-.745.361-1.45.999-1.45 1.827v.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9 5.25h.008v.008H12v-.008Z"
|
|
36507
36507
|
}
|
|
36508
36508
|
) })
|
|
@@ -36846,6 +36846,7 @@ var onlyUnique = (value, index, array) => {
|
|
|
36846
36846
|
|
|
36847
36847
|
// src/utils/optionalArray.ts
|
|
36848
36848
|
var toOptionalArrayEntry = (data, condition) => condition ? [data] : [];
|
|
36849
|
+
var toOptionalArrayEntries = (data, condition) => condition ? Array.isArray(data) ? data : [data] : [];
|
|
36849
36850
|
var optionalArrayMapper = (data = [], mapper) => data.map(mapper);
|
|
36850
36851
|
|
|
36851
36852
|
// src/utils/resultFlattener.ts
|
|
@@ -37227,9 +37228,14 @@ var WfoPageTemplate = ({
|
|
|
37227
37228
|
|
|
37228
37229
|
// src/components/WfoPageTemplate/WfoSidebar/WfoSidebar.tsx
|
|
37229
37230
|
import { useState as useState10 } from "react";
|
|
37230
|
-
import { useTranslations as
|
|
37231
|
+
import { useTranslations as useTranslations7 } from "next-intl";
|
|
37231
37232
|
import { useRouter as useRouter2 } from "next/router";
|
|
37232
|
-
import {
|
|
37233
|
+
import {
|
|
37234
|
+
EuiHorizontalRule,
|
|
37235
|
+
EuiSideNav,
|
|
37236
|
+
EuiSpacer as EuiSpacer3,
|
|
37237
|
+
htmlIdGenerator
|
|
37238
|
+
} from "@elastic/eui";
|
|
37233
37239
|
|
|
37234
37240
|
// src/components/WfoPageTemplate/WfoSidebar/styles.ts
|
|
37235
37241
|
import { css as css4 } from "@emotion/react";
|
|
@@ -37474,41 +37480,8 @@ var WfoCopyright = () => {
|
|
|
37474
37480
|
] }) }) }) });
|
|
37475
37481
|
};
|
|
37476
37482
|
|
|
37477
|
-
// src/components/WfoPageTemplate/WfoSidebar/WfoMenuLink.tsx
|
|
37478
|
-
import { useTranslations as useTranslations7 } from "next-intl";
|
|
37479
|
-
import Link from "next/link";
|
|
37480
|
-
import { jsx as jsx64 } from "@emotion/react/jsx-runtime";
|
|
37481
|
-
var WfoMenuItemLink = ({
|
|
37482
|
-
path,
|
|
37483
|
-
target,
|
|
37484
|
-
translationString,
|
|
37485
|
-
isSelected,
|
|
37486
|
-
isSubItem,
|
|
37487
|
-
hasSubItems
|
|
37488
|
-
}) => {
|
|
37489
|
-
const {
|
|
37490
|
-
menuItemStyle,
|
|
37491
|
-
selectedMenuItem,
|
|
37492
|
-
selectedSubMenuItem,
|
|
37493
|
-
subMenuHeaderStyle,
|
|
37494
|
-
subMenuItemStyle
|
|
37495
|
-
} = useWithOrchestratorTheme(getMenuItemStyles);
|
|
37496
|
-
const getMenuItemStyle = () => {
|
|
37497
|
-
if (isSubItem) {
|
|
37498
|
-
return isSelected ? selectedSubMenuItem : subMenuItemStyle;
|
|
37499
|
-
} else if (isSelected && hasSubItems) {
|
|
37500
|
-
return subMenuHeaderStyle;
|
|
37501
|
-
} else {
|
|
37502
|
-
return isSelected ? selectedMenuItem : menuItemStyle;
|
|
37503
|
-
}
|
|
37504
|
-
};
|
|
37505
|
-
const t = useTranslations7("main");
|
|
37506
|
-
const linkText = t(translationString) === `main.${translationString}` ? translationString : t(translationString);
|
|
37507
|
-
return /* @__PURE__ */ jsx64(Link, { css: getMenuItemStyle(), href: path, target, children: linkText });
|
|
37508
|
-
};
|
|
37509
|
-
|
|
37510
37483
|
// src/components/WfoPageTemplate/WfoSidebar/WfoSidebar.tsx
|
|
37511
|
-
import { Fragment as Fragment4, jsx as
|
|
37484
|
+
import { Fragment as Fragment4, jsx as jsx64, jsxs as jsxs42 } from "@emotion/react/jsx-runtime";
|
|
37512
37485
|
var urlPolicyMap = /* @__PURE__ */ new Map([
|
|
37513
37486
|
[PATH_WORKFLOWS, "/orchestrator/processes/" /* NAVIGATION_WORKFLOWS */],
|
|
37514
37487
|
[PATH_SUBSCRIPTIONS, "/orchestrator/subscriptions/" /* NAVIGATION_SUBSCRIPTIONS */],
|
|
@@ -37516,14 +37489,14 @@ var urlPolicyMap = /* @__PURE__ */ new Map([
|
|
|
37516
37489
|
[PATH_TASKS, "/orchestrator/tasks/" /* NAVIGATION_TASKS */],
|
|
37517
37490
|
[PATH_SETTINGS, "/orchestrator/settings/" /* NAVIGATION_SETTINGS */]
|
|
37518
37491
|
]);
|
|
37519
|
-
var
|
|
37492
|
+
var createSideNavDivider = () => ({
|
|
37520
37493
|
name: "",
|
|
37521
|
-
id: "menuDivider",
|
|
37522
|
-
renderItem: () => /* @__PURE__ */
|
|
37523
|
-
};
|
|
37494
|
+
id: htmlIdGenerator("menuDivider")(),
|
|
37495
|
+
renderItem: () => /* @__PURE__ */ jsx64(EuiHorizontalRule, { margin: "xs" })
|
|
37496
|
+
});
|
|
37524
37497
|
var WfoSidebar = ({ overrideMenuItems }) => {
|
|
37525
37498
|
const { menuStyle } = useWithOrchestratorTheme(getMenuStyles);
|
|
37526
|
-
const t =
|
|
37499
|
+
const t = useTranslations7("main");
|
|
37527
37500
|
const router = useRouter2();
|
|
37528
37501
|
const [isSideNavOpenOnMobile, setIsSideNavOpenOnMobile] = useState10(false);
|
|
37529
37502
|
const { isAllowed } = usePolicy();
|
|
@@ -37536,7 +37509,7 @@ var WfoSidebar = ({ overrideMenuItems }) => {
|
|
|
37536
37509
|
id: "start",
|
|
37537
37510
|
isSelected: router.pathname === PATH_START,
|
|
37538
37511
|
href: PATH_START,
|
|
37539
|
-
renderItem: () => /* @__PURE__ */
|
|
37512
|
+
renderItem: () => /* @__PURE__ */ jsx64(
|
|
37540
37513
|
WfoMenuItemLink,
|
|
37541
37514
|
{
|
|
37542
37515
|
path: PATH_START,
|
|
@@ -37550,7 +37523,7 @@ var WfoSidebar = ({ overrideMenuItems }) => {
|
|
|
37550
37523
|
id: "subscriptions",
|
|
37551
37524
|
isSelected: router.pathname.startsWith(PATH_SUBSCRIPTIONS),
|
|
37552
37525
|
href: PATH_SUBSCRIPTIONS,
|
|
37553
|
-
renderItem: () => /* @__PURE__ */
|
|
37526
|
+
renderItem: () => /* @__PURE__ */ jsx64(
|
|
37554
37527
|
WfoMenuItemLink,
|
|
37555
37528
|
{
|
|
37556
37529
|
path: PATH_SUBSCRIPTIONS,
|
|
@@ -37564,7 +37537,7 @@ var WfoSidebar = ({ overrideMenuItems }) => {
|
|
|
37564
37537
|
id: "workflows",
|
|
37565
37538
|
isSelected: router.pathname.startsWith(PATH_WORKFLOWS),
|
|
37566
37539
|
href: PATH_WORKFLOWS,
|
|
37567
|
-
renderItem: () => /* @__PURE__ */
|
|
37540
|
+
renderItem: () => /* @__PURE__ */ jsx64(
|
|
37568
37541
|
WfoMenuItemLink,
|
|
37569
37542
|
{
|
|
37570
37543
|
path: PATH_WORKFLOWS,
|
|
@@ -37578,7 +37551,7 @@ var WfoSidebar = ({ overrideMenuItems }) => {
|
|
|
37578
37551
|
isSelected: router.pathname.startsWith(PATH_TASKS),
|
|
37579
37552
|
id: "tasks",
|
|
37580
37553
|
href: PATH_TASKS,
|
|
37581
|
-
renderItem: () => /* @__PURE__ */
|
|
37554
|
+
renderItem: () => /* @__PURE__ */ jsx64(
|
|
37582
37555
|
WfoMenuItemLink,
|
|
37583
37556
|
{
|
|
37584
37557
|
path: PATH_TASKS,
|
|
@@ -37592,7 +37565,7 @@ var WfoSidebar = ({ overrideMenuItems }) => {
|
|
|
37592
37565
|
id: "metadata",
|
|
37593
37566
|
href: PATH_METADATA,
|
|
37594
37567
|
isSelected: router.pathname.substring(0, PATH_METADATA.length) === PATH_METADATA,
|
|
37595
|
-
renderItem: () => /* @__PURE__ */
|
|
37568
|
+
renderItem: () => /* @__PURE__ */ jsx64(
|
|
37596
37569
|
WfoMenuItemLink,
|
|
37597
37570
|
{
|
|
37598
37571
|
path: PATH_METADATA_PRODUCTS,
|
|
@@ -37605,7 +37578,7 @@ var WfoSidebar = ({ overrideMenuItems }) => {
|
|
|
37605
37578
|
name: t("metadataProducts"),
|
|
37606
37579
|
id: "metadata-products",
|
|
37607
37580
|
href: PATH_METADATA_PRODUCTS,
|
|
37608
|
-
renderItem: () => /* @__PURE__ */
|
|
37581
|
+
renderItem: () => /* @__PURE__ */ jsx64(
|
|
37609
37582
|
WfoMenuItemLink,
|
|
37610
37583
|
{
|
|
37611
37584
|
path: PATH_METADATA_PRODUCTS,
|
|
@@ -37620,7 +37593,7 @@ var WfoSidebar = ({ overrideMenuItems }) => {
|
|
|
37620
37593
|
id: "metadata-productblocks",
|
|
37621
37594
|
isSelected: router.pathname === PATH_METADATA_PRODUCT_BLOCKS,
|
|
37622
37595
|
href: PATH_METADATA_PRODUCT_BLOCKS,
|
|
37623
|
-
renderItem: () => /* @__PURE__ */
|
|
37596
|
+
renderItem: () => /* @__PURE__ */ jsx64(
|
|
37624
37597
|
WfoMenuItemLink,
|
|
37625
37598
|
{
|
|
37626
37599
|
path: PATH_METADATA_PRODUCT_BLOCKS,
|
|
@@ -37635,7 +37608,7 @@ var WfoSidebar = ({ overrideMenuItems }) => {
|
|
|
37635
37608
|
id: "metadata-resourceTypes",
|
|
37636
37609
|
href: PATH_METADATA_RESOURCE_TYPES,
|
|
37637
37610
|
isSelected: router.pathname === PATH_METADATA_RESOURCE_TYPES,
|
|
37638
|
-
renderItem: () => /* @__PURE__ */
|
|
37611
|
+
renderItem: () => /* @__PURE__ */ jsx64(
|
|
37639
37612
|
WfoMenuItemLink,
|
|
37640
37613
|
{
|
|
37641
37614
|
path: PATH_METADATA_RESOURCE_TYPES,
|
|
@@ -37650,7 +37623,7 @@ var WfoSidebar = ({ overrideMenuItems }) => {
|
|
|
37650
37623
|
id: "metadata-workflows",
|
|
37651
37624
|
isSelected: router.pathname === PATH_METADATA_WORKFLOWS,
|
|
37652
37625
|
href: PATH_METADATA_WORKFLOWS,
|
|
37653
|
-
renderItem: () => /* @__PURE__ */
|
|
37626
|
+
renderItem: () => /* @__PURE__ */ jsx64(
|
|
37654
37627
|
WfoMenuItemLink,
|
|
37655
37628
|
{
|
|
37656
37629
|
path: PATH_METADATA_WORKFLOWS,
|
|
@@ -37665,7 +37638,7 @@ var WfoSidebar = ({ overrideMenuItems }) => {
|
|
|
37665
37638
|
id: "metadata-tasks",
|
|
37666
37639
|
isSelected: router.pathname === PATH_METADATA_TASKS,
|
|
37667
37640
|
href: PATH_METADATA_TASKS,
|
|
37668
|
-
renderItem: () => /* @__PURE__ */
|
|
37641
|
+
renderItem: () => /* @__PURE__ */ jsx64(
|
|
37669
37642
|
WfoMenuItemLink,
|
|
37670
37643
|
{
|
|
37671
37644
|
path: PATH_METADATA_TASKS,
|
|
@@ -37682,7 +37655,7 @@ var WfoSidebar = ({ overrideMenuItems }) => {
|
|
|
37682
37655
|
id: "settings",
|
|
37683
37656
|
isSelected: router.pathname === PATH_SETTINGS,
|
|
37684
37657
|
href: PATH_SETTINGS,
|
|
37685
|
-
renderItem: () => /* @__PURE__ */
|
|
37658
|
+
renderItem: () => /* @__PURE__ */ jsx64(
|
|
37686
37659
|
WfoMenuItemLink,
|
|
37687
37660
|
{
|
|
37688
37661
|
path: PATH_SETTINGS,
|
|
@@ -37698,22 +37671,22 @@ var WfoSidebar = ({ overrideMenuItems }) => {
|
|
|
37698
37671
|
const defaultMenu = [
|
|
37699
37672
|
{
|
|
37700
37673
|
renderItem: () => /* @__PURE__ */ jsxs42(Fragment4, { children: [
|
|
37701
|
-
/* @__PURE__ */
|
|
37674
|
+
/* @__PURE__ */ jsx64(
|
|
37702
37675
|
WfoIsAllowedToRender,
|
|
37703
37676
|
{
|
|
37704
37677
|
resource: "/orchestrator/processes/create/process/menu" /* SUBSCRIPTION_CREATE */,
|
|
37705
|
-
children: /* @__PURE__ */
|
|
37678
|
+
children: /* @__PURE__ */ jsx64(WfoStartWorkflowButtonComboBox, {})
|
|
37706
37679
|
}
|
|
37707
37680
|
),
|
|
37708
|
-
/* @__PURE__ */
|
|
37709
|
-
/* @__PURE__ */
|
|
37681
|
+
/* @__PURE__ */ jsx64(EuiSpacer3, { size: "xl" }),
|
|
37682
|
+
/* @__PURE__ */ jsx64(WfoCopyright, {})
|
|
37710
37683
|
] }),
|
|
37711
37684
|
name: "Menu",
|
|
37712
37685
|
id: "1",
|
|
37713
37686
|
items: overrideMenuItems ? overrideMenuItems(defaultMenuItemsFilteredByPolicy) : defaultMenuItemsFilteredByPolicy
|
|
37714
37687
|
}
|
|
37715
37688
|
];
|
|
37716
|
-
return /* @__PURE__ */
|
|
37689
|
+
return /* @__PURE__ */ jsx64(
|
|
37717
37690
|
EuiSideNav,
|
|
37718
37691
|
{
|
|
37719
37692
|
css: menuStyle,
|
|
@@ -37725,6 +37698,39 @@ var WfoSidebar = ({ overrideMenuItems }) => {
|
|
|
37725
37698
|
);
|
|
37726
37699
|
};
|
|
37727
37700
|
|
|
37701
|
+
// src/components/WfoPageTemplate/WfoSidebar/WfoMenuLink.tsx
|
|
37702
|
+
import { useTranslations as useTranslations8 } from "next-intl";
|
|
37703
|
+
import Link from "next/link";
|
|
37704
|
+
import { jsx as jsx65 } from "@emotion/react/jsx-runtime";
|
|
37705
|
+
var WfoMenuItemLink = ({
|
|
37706
|
+
path,
|
|
37707
|
+
target,
|
|
37708
|
+
translationString,
|
|
37709
|
+
isSelected,
|
|
37710
|
+
isSubItem,
|
|
37711
|
+
hasSubItems
|
|
37712
|
+
}) => {
|
|
37713
|
+
const {
|
|
37714
|
+
menuItemStyle,
|
|
37715
|
+
selectedMenuItem,
|
|
37716
|
+
selectedSubMenuItem,
|
|
37717
|
+
subMenuHeaderStyle,
|
|
37718
|
+
subMenuItemStyle
|
|
37719
|
+
} = useWithOrchestratorTheme(getMenuItemStyles);
|
|
37720
|
+
const getMenuItemStyle = () => {
|
|
37721
|
+
if (isSubItem) {
|
|
37722
|
+
return isSelected ? selectedSubMenuItem : subMenuItemStyle;
|
|
37723
|
+
} else if (isSelected && hasSubItems) {
|
|
37724
|
+
return subMenuHeaderStyle;
|
|
37725
|
+
} else {
|
|
37726
|
+
return isSelected ? selectedMenuItem : menuItemStyle;
|
|
37727
|
+
}
|
|
37728
|
+
};
|
|
37729
|
+
const t = useTranslations8("main");
|
|
37730
|
+
const linkText = t(translationString) === `main.${translationString}` ? translationString : t(translationString);
|
|
37731
|
+
return /* @__PURE__ */ jsx65(Link, { css: getMenuItemStyle(), href: path, target, children: linkText });
|
|
37732
|
+
};
|
|
37733
|
+
|
|
37728
37734
|
// src/components/WfoPageTemplate/WfoSidebar/utils/menuItemIsAllowed.ts
|
|
37729
37735
|
var menuItemIsAllowed = (url, urlPolicyMap2, isAllowedHandler) => {
|
|
37730
37736
|
if (!url) {
|
|
@@ -40047,7 +40053,7 @@ var getWfoTableStyles = ({ theme, isDarkThemeActive }) => {
|
|
|
40047
40053
|
overflowX: "auto"
|
|
40048
40054
|
});
|
|
40049
40055
|
const tableStyle = css14({
|
|
40050
|
-
width: "
|
|
40056
|
+
width: "100%"
|
|
40051
40057
|
});
|
|
40052
40058
|
const headerStyle = css14({
|
|
40053
40059
|
backgroundColor: theme.colors.lightShade,
|
|
@@ -40103,7 +40109,8 @@ var getWfoTableStyles = ({ theme, isDarkThemeActive }) => {
|
|
|
40103
40109
|
verticalAlign: "middle"
|
|
40104
40110
|
});
|
|
40105
40111
|
const cellContentStyle = css14({
|
|
40106
|
-
display: "inline-block"
|
|
40112
|
+
display: "inline-block",
|
|
40113
|
+
width: "100%"
|
|
40107
40114
|
});
|
|
40108
40115
|
const emptyTableMessageStyle = css14({
|
|
40109
40116
|
textAlign: "center"
|
|
@@ -40129,7 +40136,7 @@ var getWfoTableStyles = ({ theme, isDarkThemeActive }) => {
|
|
|
40129
40136
|
position: "absolute",
|
|
40130
40137
|
height: "100%",
|
|
40131
40138
|
zIndex: theme.levels.menu,
|
|
40132
|
-
"&:
|
|
40139
|
+
"&:active, &:focus": {
|
|
40133
40140
|
transition: "background-color 0.15s",
|
|
40134
40141
|
backgroundColor: isDarkThemeActive ? theme.colors.mediumShade : theme.colors.header
|
|
40135
40142
|
},
|
|
@@ -40144,7 +40151,7 @@ var getWfoTableStyles = ({ theme, isDarkThemeActive }) => {
|
|
|
40144
40151
|
opacity: 0.6,
|
|
40145
40152
|
zIndex: theme.levels.navigation
|
|
40146
40153
|
},
|
|
40147
|
-
"&:
|
|
40154
|
+
"&:active::after": {
|
|
40148
40155
|
transition: "opacity 0.15s",
|
|
40149
40156
|
opacity: 0
|
|
40150
40157
|
}
|
|
@@ -40204,6 +40211,15 @@ function mapSortableAndFilterableValuesToTableColumnConfig(tableColumnConfig, so
|
|
|
40204
40211
|
);
|
|
40205
40212
|
return Object.fromEntries(tableColumnConfigUpdatedEntries);
|
|
40206
40213
|
}
|
|
40214
|
+
var getColumnWidthsFromConfig = (columnConfig) => {
|
|
40215
|
+
const columnEntries = Object.entries(columnConfig);
|
|
40216
|
+
return columnEntries.reduce((columnWidths, [key, config]) => {
|
|
40217
|
+
if (config.columnType === "data" /* DATA */) {
|
|
40218
|
+
columnWidths[key] = config.width ?? "auto";
|
|
40219
|
+
}
|
|
40220
|
+
return columnWidths;
|
|
40221
|
+
}, {});
|
|
40222
|
+
};
|
|
40207
40223
|
|
|
40208
40224
|
// src/components/WfoTable/WfoTable/WfoTableDataRows.tsx
|
|
40209
40225
|
import { Fragment as Fragment17, jsx as jsx101, jsxs as jsxs56 } from "@emotion/react/jsx-runtime";
|
|
@@ -40317,38 +40333,48 @@ var WfoDragHandler = ({
|
|
|
40317
40333
|
onUpdateColumWidth
|
|
40318
40334
|
}) => {
|
|
40319
40335
|
const [position, setPosition] = useState12({ x: 0, y: 0 });
|
|
40336
|
+
const [isDragging, setIsDragging] = useState12(false);
|
|
40337
|
+
const { dragAndDropStyle } = useWithOrchestratorTheme(getWfoTableStyles);
|
|
40338
|
+
const resetPosition = () => {
|
|
40339
|
+
setPosition({ x: 0, y: 0 });
|
|
40340
|
+
};
|
|
40341
|
+
const onStart = () => {
|
|
40342
|
+
setIsDragging(false);
|
|
40343
|
+
};
|
|
40320
40344
|
const onDrag = (_2, data) => {
|
|
40345
|
+
setIsDragging(true);
|
|
40321
40346
|
setPosition({ x: data.x, y: data.y });
|
|
40322
40347
|
};
|
|
40323
|
-
const
|
|
40324
|
-
|
|
40348
|
+
const onStop = (_2, data) => {
|
|
40349
|
+
if (headerRowRef.current && isDragging) {
|
|
40350
|
+
const newWidth = startWidth + data.x;
|
|
40351
|
+
onUpdateColumWidth(
|
|
40352
|
+
fieldName,
|
|
40353
|
+
newWidth > MINIMUM_COLUMN_WIDTH ? newWidth : MINIMUM_COLUMN_WIDTH
|
|
40354
|
+
);
|
|
40355
|
+
resetPosition();
|
|
40356
|
+
setIsDragging(false);
|
|
40357
|
+
}
|
|
40325
40358
|
};
|
|
40326
|
-
const { dragAndDropStyle } = useWithOrchestratorTheme(getWfoTableStyles);
|
|
40327
40359
|
const thElement = headerRowRef.current && headerRowRef.current.querySelector(
|
|
40328
40360
|
`th[data-field-name="${fieldName}"]`
|
|
40329
40361
|
);
|
|
40330
40362
|
const startWidth = thElement?.getBoundingClientRect().width ?? MINIMUM_COLUMN_WIDTH;
|
|
40363
|
+
const bounds = {
|
|
40364
|
+
left: MINIMUM_COLUMN_WIDTH - startWidth,
|
|
40365
|
+
top: 0,
|
|
40366
|
+
bottom: 0
|
|
40367
|
+
};
|
|
40331
40368
|
return /* @__PURE__ */ jsx102("div", { children: /* @__PURE__ */ jsx102(
|
|
40332
40369
|
Draggable,
|
|
40333
40370
|
{
|
|
40371
|
+
allowAnyClick: false,
|
|
40334
40372
|
axis: "x",
|
|
40335
40373
|
position,
|
|
40374
|
+
onStart,
|
|
40336
40375
|
onDrag,
|
|
40337
|
-
bounds
|
|
40338
|
-
|
|
40339
|
-
top: 0,
|
|
40340
|
-
bottom: 0
|
|
40341
|
-
},
|
|
40342
|
-
onStop: (_2, data) => {
|
|
40343
|
-
if (headerRowRef.current) {
|
|
40344
|
-
const newWidth = startWidth + data.x;
|
|
40345
|
-
onUpdateColumWidth(
|
|
40346
|
-
fieldName,
|
|
40347
|
-
newWidth > MINIMUM_COLUMN_WIDTH ? newWidth : MINIMUM_COLUMN_WIDTH
|
|
40348
|
-
);
|
|
40349
|
-
resetPosition();
|
|
40350
|
-
}
|
|
40351
|
-
},
|
|
40376
|
+
bounds,
|
|
40377
|
+
onStop,
|
|
40352
40378
|
children: /* @__PURE__ */ jsx102("div", { css: dragAndDropStyle })
|
|
40353
40379
|
}
|
|
40354
40380
|
) });
|
|
@@ -40574,20 +40600,19 @@ var WfoTable = ({
|
|
|
40574
40600
|
onUpdateDataSorting,
|
|
40575
40601
|
onUpdateDataSearch,
|
|
40576
40602
|
onRowClick,
|
|
40603
|
+
appendFillerColumn = true,
|
|
40577
40604
|
className
|
|
40578
40605
|
}) => {
|
|
40579
|
-
const getColumnWidthsFromConfig = (columnConfig2) => {
|
|
40580
|
-
return Object.entries(columnConfig2).reduce(
|
|
40581
|
-
(columnWidths, [key, config]) => {
|
|
40582
|
-
if (config.columnType === "data" /* DATA */) {
|
|
40583
|
-
columnWidths[key] = config.width ?? "auto";
|
|
40584
|
-
}
|
|
40585
|
-
return columnWidths;
|
|
40586
|
-
},
|
|
40587
|
-
{}
|
|
40588
|
-
);
|
|
40589
|
-
};
|
|
40590
40606
|
const [localColumnWidths, setLocalColumnWidths] = useState14(getColumnWidthsFromConfig(columnConfig));
|
|
40607
|
+
const columnConfigWithFiller = appendFillerColumn ? {
|
|
40608
|
+
...columnConfig,
|
|
40609
|
+
filler: {
|
|
40610
|
+
columnType: "control" /* CONTROL */,
|
|
40611
|
+
label: "",
|
|
40612
|
+
width: "100%",
|
|
40613
|
+
renderControl: () => null
|
|
40614
|
+
}
|
|
40615
|
+
} : columnConfig;
|
|
40591
40616
|
const {
|
|
40592
40617
|
tableContainerStyle,
|
|
40593
40618
|
tableStyle,
|
|
@@ -40600,7 +40625,7 @@ var WfoTable = ({
|
|
|
40600
40625
|
} = useWithOrchestratorTheme(getWfoTableStyles);
|
|
40601
40626
|
const t = useTranslations24("common");
|
|
40602
40627
|
const sortedVisibleColumns = getSortedVisibleColumns(
|
|
40603
|
-
|
|
40628
|
+
columnConfigWithFiller,
|
|
40604
40629
|
columnOrder,
|
|
40605
40630
|
hiddenColumns
|
|
40606
40631
|
);
|
|
@@ -40613,7 +40638,7 @@ var WfoTable = ({
|
|
|
40613
40638
|
});
|
|
40614
40639
|
};
|
|
40615
40640
|
const configWithLocalWidths = Object.entries(
|
|
40616
|
-
|
|
40641
|
+
columnConfigWithFiller
|
|
40617
40642
|
).reduce((mergedConfig, [fieldName, fieldConfig]) => {
|
|
40618
40643
|
const key = fieldName;
|
|
40619
40644
|
if (fieldConfig.columnType === "data" /* DATA */) {
|
|
@@ -41088,7 +41113,8 @@ var WfoGroupedTable = ({
|
|
|
41088
41113
|
uniqueRowId: "groupName",
|
|
41089
41114
|
uniqueRowIdToExpandedRowMap
|
|
41090
41115
|
},
|
|
41091
|
-
onRowClick: ({ groupName }) => toggleExpandedRow(groupName)
|
|
41116
|
+
onRowClick: ({ groupName }) => toggleExpandedRow(groupName),
|
|
41117
|
+
appendFillerColumn: false
|
|
41092
41118
|
}
|
|
41093
41119
|
)
|
|
41094
41120
|
] });
|
|
@@ -41152,7 +41178,7 @@ var WfoToolTip = ({
|
|
|
41152
41178
|
content: tooltipContent,
|
|
41153
41179
|
css: { maxWidth: "fit-content" },
|
|
41154
41180
|
repositionOnScroll: true,
|
|
41155
|
-
children: /* @__PURE__ */ jsx115("div", { children })
|
|
41181
|
+
children: /* @__PURE__ */ jsx115("div", { css: { width: "100%" }, children })
|
|
41156
41182
|
}
|
|
41157
41183
|
);
|
|
41158
41184
|
};
|
|
@@ -42628,7 +42654,6 @@ var WfoInlineEdit = ({
|
|
|
42628
42654
|
onSave = () => {
|
|
42629
42655
|
}
|
|
42630
42656
|
}) => {
|
|
42631
|
-
const { theme } = useOrchestratorTheme();
|
|
42632
42657
|
const [note, setValue] = useState21(value);
|
|
42633
42658
|
const [isTooltipVisible, setIsTooltipVisible] = useState21(true);
|
|
42634
42659
|
const handleSave = () => {
|
|
@@ -42651,6 +42676,9 @@ var WfoInlineEdit = ({
|
|
|
42651
42676
|
".euiIcon": {
|
|
42652
42677
|
visibility: "visible"
|
|
42653
42678
|
}
|
|
42679
|
+
},
|
|
42680
|
+
"& > .euiToolTipAnchor": {
|
|
42681
|
+
width: "100%"
|
|
42654
42682
|
}
|
|
42655
42683
|
},
|
|
42656
42684
|
children: /* @__PURE__ */ jsx132(
|
|
@@ -42672,7 +42700,6 @@ var WfoInlineEdit = ({
|
|
|
42672
42700
|
onSave: handleSave,
|
|
42673
42701
|
size: "s",
|
|
42674
42702
|
css: {
|
|
42675
|
-
width: theme.base * 16,
|
|
42676
42703
|
".euiFlexItem:nth-of-type(2)": {
|
|
42677
42704
|
justifyContent: "center"
|
|
42678
42705
|
},
|
|
@@ -42704,8 +42731,7 @@ var WfoInlineEdit = ({
|
|
|
42704
42731
|
justifyContent: "left",
|
|
42705
42732
|
height: "32px",
|
|
42706
42733
|
paddingLeft: "4px",
|
|
42707
|
-
margin: "0"
|
|
42708
|
-
width: "98%"
|
|
42734
|
+
margin: "0"
|
|
42709
42735
|
}
|
|
42710
42736
|
},
|
|
42711
42737
|
formRowProps: {
|
|
@@ -49416,6 +49442,7 @@ var TextArea = ({
|
|
|
49416
49442
|
name: pydanticFormField.id,
|
|
49417
49443
|
onChange: (event) => onChange(event.target.value),
|
|
49418
49444
|
value: value ?? "",
|
|
49445
|
+
id: `input-${pydanticFormField.id}`,
|
|
49419
49446
|
fullWidth: true
|
|
49420
49447
|
}
|
|
49421
49448
|
);
|
|
@@ -51659,78 +51686,59 @@ var WfoEngineStatusButton = () => {
|
|
|
51659
51686
|
};
|
|
51660
51687
|
|
|
51661
51688
|
// src/components/WfoSettings/WfoModifySettings.tsx
|
|
51662
|
-
import { useTranslations as useTranslations75 } from "next-intl";
|
|
51663
|
-
import { EuiFlexItem as EuiFlexItem28, EuiPanel as EuiPanel7, EuiSpacer as EuiSpacer25, EuiText as EuiText42 } from "@elastic/eui";
|
|
51664
|
-
|
|
51665
|
-
// src/components/WfoSettings/WfoResetTextSearchIndexButton.tsx
|
|
51666
51689
|
import { useTranslations as useTranslations74 } from "next-intl";
|
|
51667
|
-
import {
|
|
51668
|
-
import { jsx as jsx224 } from "@emotion/react/jsx-runtime";
|
|
51669
|
-
var WfoResetTextSearchIndexButton = () => {
|
|
51670
|
-
const [resetTextSearchIndex] = useResetTextSearchIndexMutation();
|
|
51671
|
-
const t = useTranslations74("settings.page");
|
|
51672
|
-
return /* @__PURE__ */ jsx224(
|
|
51673
|
-
EuiButton17,
|
|
51674
|
-
{
|
|
51675
|
-
onClick: () => resetTextSearchIndex(null),
|
|
51676
|
-
iconType: "refresh",
|
|
51677
|
-
children: t("resetTextSearchIndexButton")
|
|
51678
|
-
}
|
|
51679
|
-
);
|
|
51680
|
-
};
|
|
51681
|
-
|
|
51682
|
-
// src/components/WfoSettings/WfoModifySettings.tsx
|
|
51683
|
-
import { jsx as jsx225, jsxs as jsxs122 } from "@emotion/react/jsx-runtime";
|
|
51690
|
+
import { EuiFlexItem as EuiFlexItem28, EuiPanel as EuiPanel7, EuiSpacer as EuiSpacer25, EuiText as EuiText42 } from "@elastic/eui";
|
|
51691
|
+
import { jsx as jsx224, jsxs as jsxs122 } from "@emotion/react/jsx-runtime";
|
|
51684
51692
|
var WfoModifySettings = () => {
|
|
51685
|
-
const t =
|
|
51693
|
+
const t = useTranslations74("settings.page");
|
|
51686
51694
|
return /* @__PURE__ */ jsxs122(EuiFlexItem28, { children: [
|
|
51687
51695
|
/* @__PURE__ */ jsxs122(EuiPanel7, { hasShadow: false, color: "subdued", paddingSize: "l", children: [
|
|
51688
|
-
/* @__PURE__ */
|
|
51689
|
-
/* @__PURE__ */
|
|
51690
|
-
/* @__PURE__ */
|
|
51696
|
+
/* @__PURE__ */ jsx224(EuiText42, { size: "s", children: /* @__PURE__ */ jsx224("h4", { children: t("resetTextSearchIndex") }) }),
|
|
51697
|
+
/* @__PURE__ */ jsx224(EuiSpacer25, { size: "m" }),
|
|
51698
|
+
/* @__PURE__ */ jsx224(WfoResetTextSearchIndexButton, {})
|
|
51691
51699
|
] }),
|
|
51692
|
-
/* @__PURE__ */
|
|
51700
|
+
/* @__PURE__ */ jsx224(EuiSpacer25, {}),
|
|
51693
51701
|
/* @__PURE__ */ jsxs122(EuiPanel7, { hasShadow: false, color: "subdued", paddingSize: "l", children: [
|
|
51694
|
-
/* @__PURE__ */
|
|
51695
|
-
/* @__PURE__ */
|
|
51696
|
-
/* @__PURE__ */
|
|
51702
|
+
/* @__PURE__ */ jsx224(EuiText42, { size: "s", children: /* @__PURE__ */ jsx224("h4", { children: t("modifyEngine") }) }),
|
|
51703
|
+
/* @__PURE__ */ jsx224(EuiSpacer25, { size: "m" }),
|
|
51704
|
+
/* @__PURE__ */ jsx224(WfoEngineStatusButton, {})
|
|
51697
51705
|
] })
|
|
51698
51706
|
] });
|
|
51699
51707
|
};
|
|
51700
51708
|
|
|
51701
51709
|
// src/components/WfoSettings/WfoEngineStatus.tsx
|
|
51702
|
-
import { useTranslations as
|
|
51710
|
+
import { useTranslations as useTranslations75 } from "next-intl";
|
|
51703
51711
|
import { EuiFlexGroup as EuiFlexGroup26, EuiFlexItem as EuiFlexItem29, EuiPanel as EuiPanel8, EuiText as EuiText43 } from "@elastic/eui";
|
|
51704
|
-
import { jsx as
|
|
51712
|
+
import { jsx as jsx225, jsxs as jsxs123 } from "@emotion/react/jsx-runtime";
|
|
51705
51713
|
var WfoEngineStatus = () => {
|
|
51706
51714
|
const { theme } = useOrchestratorTheme();
|
|
51707
51715
|
const { data } = useGetEngineStatusQuery();
|
|
51708
51716
|
const { engineStatus, runningProcesses } = data || {};
|
|
51709
51717
|
const isRunning = engineStatus === "RUNNING" /* RUNNING */;
|
|
51710
|
-
const t =
|
|
51711
|
-
return /* @__PURE__ */
|
|
51712
|
-
/* @__PURE__ */
|
|
51718
|
+
const t = useTranslations75("settings.page");
|
|
51719
|
+
return /* @__PURE__ */ jsx225(EuiPanel8, { hasShadow: false, color: "subdued", paddingSize: "l", children: /* @__PURE__ */ jsxs123(EuiFlexGroup26, { direction: "column", gutterSize: "s", children: [
|
|
51720
|
+
/* @__PURE__ */ jsx225(EuiFlexItem29, { children: /* @__PURE__ */ jsx225(EuiText43, { size: "s", children: /* @__PURE__ */ jsx225("h4", { children: t("engineStatusTitle") }) }) }),
|
|
51713
51721
|
/* @__PURE__ */ jsxs123(EuiFlexItem29, { css: { flexDirection: "row" }, children: [
|
|
51714
|
-
/* @__PURE__ */
|
|
51715
|
-
/* @__PURE__ */
|
|
51722
|
+
/* @__PURE__ */ jsx225(EuiText43, { size: "s", style: { minWidth: 200 }, children: t("runningProcesses") }),
|
|
51723
|
+
/* @__PURE__ */ jsx225(EuiText43, { size: "s", children: runningProcesses || "-" })
|
|
51716
51724
|
] }),
|
|
51717
51725
|
/* @__PURE__ */ jsxs123(EuiFlexItem29, { css: { flexDirection: "row" }, children: [
|
|
51718
|
-
/* @__PURE__ */
|
|
51719
|
-
/* @__PURE__ */
|
|
51726
|
+
/* @__PURE__ */ jsx225(EuiText43, { size: "s", style: { minWidth: 190 }, children: t("status") }),
|
|
51727
|
+
/* @__PURE__ */ jsx225(
|
|
51720
51728
|
WfoStatusDotIcon,
|
|
51721
51729
|
{
|
|
51722
51730
|
color: isRunning ? theme.colors.success : theme.colors.warning
|
|
51723
51731
|
}
|
|
51724
51732
|
),
|
|
51725
|
-
/* @__PURE__ */
|
|
51733
|
+
/* @__PURE__ */ jsx225(EuiText43, { size: "xs", css: { paddingTop: theme.size.xs }, children: /* @__PURE__ */ jsx225("p", { children: engineStatus }) })
|
|
51726
51734
|
] })
|
|
51727
51735
|
] }) });
|
|
51728
51736
|
};
|
|
51729
51737
|
|
|
51730
51738
|
// src/components/WfoSettings/WfoWorkerStatus.tsx
|
|
51731
|
-
import { useTranslations as
|
|
51739
|
+
import { useTranslations as useTranslations76 } from "next-intl";
|
|
51732
51740
|
import { EuiFlexGroup as EuiFlexGroup27, EuiFlexItem as EuiFlexItem30, EuiPanel as EuiPanel9, EuiText as EuiText44 } from "@elastic/eui";
|
|
51733
|
-
import { jsx as
|
|
51741
|
+
import { jsx as jsx226, jsxs as jsxs124 } from "@emotion/react/jsx-runtime";
|
|
51734
51742
|
var WfoWorkerStatus = () => {
|
|
51735
51743
|
const { data } = useGetWorkerStatusQuery();
|
|
51736
51744
|
const {
|
|
@@ -51739,24 +51747,41 @@ var WfoWorkerStatus = () => {
|
|
|
51739
51747
|
numberOfRunningJobs,
|
|
51740
51748
|
numberOfWorkersOnline
|
|
51741
51749
|
} = data || {};
|
|
51742
|
-
const t =
|
|
51743
|
-
return executorType?.toUpperCase() === "CELERY" /* CELERY */ && /* @__PURE__ */
|
|
51744
|
-
/* @__PURE__ */
|
|
51750
|
+
const t = useTranslations76("settings.page");
|
|
51751
|
+
return executorType?.toUpperCase() === "CELERY" /* CELERY */ && /* @__PURE__ */ jsx226(EuiPanel9, { hasShadow: false, color: "subdued", paddingSize: "l", children: /* @__PURE__ */ jsxs124(EuiFlexGroup27, { direction: "column", gutterSize: "s", children: [
|
|
51752
|
+
/* @__PURE__ */ jsx226(EuiFlexItem30, { children: /* @__PURE__ */ jsx226(EuiText44, { size: "s", children: /* @__PURE__ */ jsx226("h4", { children: t("workerStatusTitle") }) }) }),
|
|
51745
51753
|
/* @__PURE__ */ jsxs124(EuiFlexItem30, { css: { flexDirection: "row" }, children: [
|
|
51746
|
-
/* @__PURE__ */
|
|
51747
|
-
/* @__PURE__ */
|
|
51754
|
+
/* @__PURE__ */ jsx226(EuiText44, { size: "s", style: { minWidth: 200 }, children: t("numberOfQueuedJobs") }),
|
|
51755
|
+
/* @__PURE__ */ jsx226(EuiText44, { size: "s", children: numberOfQueuedJobs || "-" })
|
|
51748
51756
|
] }),
|
|
51749
51757
|
/* @__PURE__ */ jsxs124(EuiFlexItem30, { css: { flexDirection: "row" }, children: [
|
|
51750
|
-
/* @__PURE__ */
|
|
51751
|
-
/* @__PURE__ */
|
|
51758
|
+
/* @__PURE__ */ jsx226(EuiText44, { size: "s", style: { minWidth: 200 }, children: t("numberOfRunningJobs") }),
|
|
51759
|
+
/* @__PURE__ */ jsx226(EuiText44, { size: "s", children: numberOfRunningJobs || "-" })
|
|
51752
51760
|
] }),
|
|
51753
51761
|
/* @__PURE__ */ jsxs124(EuiFlexItem30, { css: { flexDirection: "row" }, children: [
|
|
51754
|
-
/* @__PURE__ */
|
|
51755
|
-
/* @__PURE__ */
|
|
51762
|
+
/* @__PURE__ */ jsx226(EuiText44, { size: "s", style: { minWidth: 200 }, children: t("numberOfWorkersOnline") }),
|
|
51763
|
+
/* @__PURE__ */ jsx226(EuiText44, { size: "s", children: numberOfWorkersOnline || "-" })
|
|
51756
51764
|
] })
|
|
51757
51765
|
] }) }) || null;
|
|
51758
51766
|
};
|
|
51759
51767
|
|
|
51768
|
+
// src/components/WfoSettings/WfoResetTextSearchIndexButton.tsx
|
|
51769
|
+
import { useTranslations as useTranslations77 } from "next-intl";
|
|
51770
|
+
import { EuiButton as EuiButton17 } from "@elastic/eui";
|
|
51771
|
+
import { jsx as jsx227 } from "@emotion/react/jsx-runtime";
|
|
51772
|
+
var WfoResetTextSearchIndexButton = () => {
|
|
51773
|
+
const [resetTextSearchIndex] = useResetTextSearchIndexMutation();
|
|
51774
|
+
const t = useTranslations77("settings.page");
|
|
51775
|
+
return /* @__PURE__ */ jsx227(
|
|
51776
|
+
EuiButton17,
|
|
51777
|
+
{
|
|
51778
|
+
onClick: () => resetTextSearchIndex(null),
|
|
51779
|
+
iconType: "refresh",
|
|
51780
|
+
children: t("resetTextSearchIndexButton")
|
|
51781
|
+
}
|
|
51782
|
+
);
|
|
51783
|
+
};
|
|
51784
|
+
|
|
51760
51785
|
// src/components/WfoErrorBoundary/WfoErrorBoundary.tsx
|
|
51761
51786
|
import React74 from "react";
|
|
51762
51787
|
import { jsx as jsx228, jsxs as jsxs125 } from "@emotion/react/jsx-runtime";
|
|
@@ -54312,6 +54337,7 @@ export {
|
|
|
54312
54337
|
camelToHuman,
|
|
54313
54338
|
catchErrorResponse,
|
|
54314
54339
|
clearTableConfigFromLocalStorage,
|
|
54340
|
+
createSideNavDivider,
|
|
54315
54341
|
csvDownloadHandler,
|
|
54316
54342
|
defaultOrchestratorTheme,
|
|
54317
54343
|
defaultTasksListTabs,
|
|
@@ -54414,7 +54440,6 @@ export {
|
|
|
54414
54440
|
resourceTypesQuery,
|
|
54415
54441
|
selectOrchestratorConfig,
|
|
54416
54442
|
setTableConfigToLocalStorage,
|
|
54417
|
-
sideNavMenuDivider,
|
|
54418
54443
|
snakeToHuman,
|
|
54419
54444
|
snakeToKebab,
|
|
54420
54445
|
sortProcessesByDate,
|
|
@@ -54432,6 +54457,7 @@ export {
|
|
|
54432
54457
|
toObjectWithSerializedValues,
|
|
54433
54458
|
toObjectWithSortedKeys,
|
|
54434
54459
|
toObjectWithSortedProperties,
|
|
54460
|
+
toOptionalArrayEntries,
|
|
54435
54461
|
toOptionalArrayEntry,
|
|
54436
54462
|
toSortedTableColumnConfig,
|
|
54437
54463
|
toastMessagesReducer,
|