@orchestrator-ui/orchestrator-ui-components 7.7.0 → 8.0.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 +9 -9
- package/CHANGELOG.md +6 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +11 -9
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/WfoPydanticForm/fields/WfoArrayField/WfoArrayField.tsx +1 -1
- package/src/components/WfoPydanticForm/fields/WfoInteger.tsx +8 -6
- package/src/components/WfoPydanticForm/fields/WfoObjectField/WfoObjectField.tsx +1 -1
- package/src/configuration/version.ts +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
|
-
> @orchestrator-ui/orchestrator-ui-components@
|
|
2
|
+
> @orchestrator-ui/orchestrator-ui-components@8.0.0 build
|
|
3
3
|
> npm run generate-version && tsup src/index.ts
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> @orchestrator-ui/orchestrator-ui-components@
|
|
6
|
+
> @orchestrator-ui/orchestrator-ui-components@8.0.0 generate-version
|
|
7
7
|
> node -p "'export const ORCHESTRATOR_UI_LIBRARY_VERSION = ' + JSON.stringify(require('./package.json').version) + ';'" > src/configuration/version.ts && prettier --write src/configuration/version.ts
|
|
8
8
|
|
|
9
|
-
src/configuration/version.ts
|
|
9
|
+
src/configuration/version.ts 47ms
|
|
10
10
|
[34mCLI[39m Building entry: src/index.ts
|
|
11
11
|
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
12
12
|
[34mCLI[39m tsup v8.5.1
|
|
@@ -14,9 +14,9 @@ src/configuration/version.ts 48ms
|
|
|
14
14
|
[34mCLI[39m Target: es2022
|
|
15
15
|
[34mCLI[39m Cleaning output folder
|
|
16
16
|
[34mESM[39m Build start
|
|
17
|
-
[32mESM[39m [1mdist/index.js [22m[32m814.
|
|
17
|
+
[32mESM[39m [1mdist/index.js [22m[32m814.88 KB[39m
|
|
18
18
|
[32mESM[39m [1mdist/index.js.map [22m[32m1.39 MB[39m
|
|
19
|
-
[32mESM[39m ⚡️ Build success in
|
|
19
|
+
[32mESM[39m ⚡️ Build success in 301ms
|
|
20
20
|
[34mDTS[39m Build start
|
|
21
|
-
[32mDTS[39m ⚡️ Build success in
|
|
21
|
+
[32mDTS[39m ⚡️ Build success in 26475ms
|
|
22
22
|
[32mDTS[39m [1mdist/index.d.ts [22m[32m1.50 MB[39m
|
package/.turbo/turbo-lint.log
CHANGED
package/.turbo/turbo-test.log
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
|
|
2
|
-
> @orchestrator-ui/orchestrator-ui-components@
|
|
2
|
+
> @orchestrator-ui/orchestrator-ui-components@8.0.0 test
|
|
3
3
|
> jest
|
|
4
4
|
|
|
5
5
|
PASS Wfo-UI Tests src/components/WfoTree/treeUtils.spec.ts
|
|
6
|
-
PASS Wfo-UI Tests src/utils/date.spec.ts
|
|
7
6
|
PASS Wfo-UI Tests src/pages/processes/timelineUtils.spec.ts
|
|
8
|
-
PASS Wfo-UI Tests src/
|
|
7
|
+
PASS Wfo-UI Tests src/utils/date.spec.ts
|
|
9
8
|
PASS Wfo-UI Tests src/components/WfoSubscription/utils/utils.spec.ts
|
|
10
9
|
PASS Wfo-UI Tests src/utils/string.spec.ts
|
|
10
|
+
PASS Wfo-UI Tests src/components/WfoTable/utils/tableUtils.spec.ts
|
|
11
11
|
PASS Wfo-UI Tests src/utils/getProductNamesFromProcess.spec.ts
|
|
12
12
|
PASS Wfo-UI Tests src/components/WfoTable/WfoTable/WfoGroupedTable/utils.spec.ts
|
|
13
|
-
PASS Wfo-UI Tests src/components/WfoTable/WfoTableWithFilter/updateQueryString.spec.ts
|
|
14
13
|
PASS Wfo-UI Tests src/utils/compareVersions.spec.ts
|
|
14
|
+
PASS Wfo-UI Tests src/components/WfoTable/WfoTableWithFilter/updateQueryString.spec.ts
|
|
15
15
|
PASS Wfo-UI Tests src/components/WfoTable/utils/tableConfigPersistence.spec.ts
|
|
16
|
-
PASS Wfo-UI Tests src/utils/optionalArray.spec.ts
|
|
17
16
|
PASS Wfo-UI Tests src/rtk/utils.spec.ts
|
|
18
|
-
PASS Wfo-UI Tests src/utils/
|
|
17
|
+
PASS Wfo-UI Tests src/utils/optionalArray.spec.ts
|
|
19
18
|
PASS Wfo-UI Tests src/utils/resultFlattener.spec.ts
|
|
20
|
-
PASS Wfo-UI Tests src/
|
|
19
|
+
PASS Wfo-UI Tests src/utils/getQueryParams.spec.ts
|
|
21
20
|
PASS Wfo-UI Tests src/utils/getEnvironmentVariables.spec.ts
|
|
21
|
+
PASS Wfo-UI Tests src/messages/getTranslationMessages.spec.ts
|
|
22
22
|
PASS Wfo-UI Tests src/components/WfoPageTemplate/WfoSidebar/utils/menuItemIsAllowed.spec.ts
|
|
23
23
|
PASS Wfo-UI Tests src/utils/getToastMessage.spec.ts
|
|
24
24
|
PASS Wfo-UI Tests src/components/WfoTable/utils/columns.spec.ts
|
|
@@ -36,10 +36,10 @@ PASS Wfo-UI Tests src/utils/getQueryVariablesForExport.spec.ts
|
|
|
36
36
|
PASS Wfo-UI Tests src/components/WfoPageTemplate/WfoPageHeader/utils/toHexColorWithOpacity.spec.ts
|
|
37
37
|
PASS Wfo-UI Tests src/utils/getQueryUrl.spec.ts
|
|
38
38
|
PASS Wfo-UI Tests src/components/WfoPydanticForm/fields/wfoPydanticFormUtils.spec.ts
|
|
39
|
-
PASS Wfo-UI Tests src/components/WfoTable/WfoTable/utils.spec.ts (5.
|
|
39
|
+
PASS Wfo-UI Tests src/components/WfoTable/WfoTable/utils.spec.ts (5.776 s)
|
|
40
40
|
|
|
41
41
|
Test Suites: 35 passed, 35 total
|
|
42
42
|
Tests: 227 passed, 227 total
|
|
43
43
|
Snapshots: 0 total
|
|
44
|
-
Time:
|
|
44
|
+
Time: 8.449 s
|
|
45
45
|
Ran all test suites.
|
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -27695,7 +27695,7 @@ declare const METADATA_WORKFLOWS_ENDPOINT = "workflows";
|
|
|
27695
27695
|
declare const METADATA_SCHEDULES_ENDPOINT = "schedules";
|
|
27696
27696
|
declare const SEARCH_QUERY_RESULTS_ENDPOINT = "search/queries";
|
|
27697
27697
|
|
|
27698
|
-
declare const ORCHESTRATOR_UI_LIBRARY_VERSION = "
|
|
27698
|
+
declare const ORCHESTRATOR_UI_LIBRARY_VERSION = "8.0.0";
|
|
27699
27699
|
|
|
27700
27700
|
declare const useGetTranslationMessages: (locale: string | undefined) => {
|
|
27701
27701
|
pydanticForms: {
|
package/dist/index.js
CHANGED
|
@@ -64,7 +64,7 @@ var PolicyResource = /* @__PURE__ */ ((PolicyResource2) => {
|
|
|
64
64
|
})(PolicyResource || {});
|
|
65
65
|
|
|
66
66
|
// src/configuration/version.ts
|
|
67
|
-
var ORCHESTRATOR_UI_LIBRARY_VERSION = "
|
|
67
|
+
var ORCHESTRATOR_UI_LIBRARY_VERSION = "8.0.0";
|
|
68
68
|
|
|
69
69
|
// src/types/types.ts
|
|
70
70
|
var EngineStatus = /* @__PURE__ */ ((EngineStatus2) => {
|
|
@@ -5499,7 +5499,7 @@ var WfoObjectField = ({ pydanticFormField }) => {
|
|
|
5499
5499
|
const config = useGetConfig();
|
|
5500
5500
|
const disabled = pydanticFormField.attributes?.disabled || false;
|
|
5501
5501
|
const { wfoObjectFieldStyles } = getWfoObjectFieldStyles();
|
|
5502
|
-
const components2 = getPydanticFormComponents(pydanticFormField.properties || {}, config?.
|
|
5502
|
+
const components2 = getPydanticFormComponents(pydanticFormField.properties || {}, config?.componentMatcher);
|
|
5503
5503
|
if (disabled) {
|
|
5504
5504
|
components2.forEach((component) => {
|
|
5505
5505
|
component.pydanticFormField = disableField(component.pydanticFormField);
|
|
@@ -5597,7 +5597,7 @@ var WfoArrayField = ({ pydanticFormField }) => {
|
|
|
5597
5597
|
const showMinus = (!minItems || fields.length > minItems) && !disabled;
|
|
5598
5598
|
const showPlus = (!maxItems || fields.length < maxItems) && !disabled;
|
|
5599
5599
|
if (!arrayItem) return null;
|
|
5600
|
-
const component = fieldToComponentMatcher(arrayItem, config?.
|
|
5600
|
+
const component = fieldToComponentMatcher(arrayItem, config?.componentMatcher);
|
|
5601
5601
|
const renderField = (field, index) => {
|
|
5602
5602
|
const itemizedField = itemizeArrayItem(index, arrayItem, arrayName);
|
|
5603
5603
|
const arrayItemField = disabled ? disableField2(itemizedField) : itemizedField;
|
|
@@ -5667,18 +5667,20 @@ var WfoInteger = ({ pydanticFormField, onChange, value, disabled }) => {
|
|
|
5667
5667
|
const { formFieldBaseStyle } = useWithOrchestratorTheme(getFormFieldsBaseStyle2);
|
|
5668
5668
|
const fieldName = getFormFieldIdWithPath2(pydanticFormField.id);
|
|
5669
5669
|
const fieldValue = _2.isObject(value) && _2.has(value, fieldName) ? _2.get(value, fieldName) : value;
|
|
5670
|
-
const [userInput, setUserInput] = React12.useState();
|
|
5670
|
+
const [userInput, setUserInput] = React12.useState("");
|
|
5671
5671
|
useEffect3(() => {
|
|
5672
5672
|
if (fieldValue !== void 0 && fieldValue !== null) {
|
|
5673
5673
|
setUserInput(fieldValue);
|
|
5674
|
-
} else {
|
|
5675
|
-
setUserInput("");
|
|
5676
5674
|
}
|
|
5677
5675
|
}, [fieldValue, value]);
|
|
5678
5676
|
const handleOnChange = (event) => {
|
|
5679
|
-
const newValue = event.target.value;
|
|
5680
|
-
if (value === null
|
|
5681
|
-
|
|
5677
|
+
const newValue = event.target.value || "";
|
|
5678
|
+
if (value === null || newValue !== value) {
|
|
5679
|
+
if (!isNaN(parseInt(newValue))) {
|
|
5680
|
+
onChange(parseInt(newValue));
|
|
5681
|
+
} else {
|
|
5682
|
+
onChange("");
|
|
5683
|
+
}
|
|
5682
5684
|
}
|
|
5683
5685
|
setUserInput(newValue);
|
|
5684
5686
|
};
|