@hortiview/shared-components 1.2.0 → 1.2.2
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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
## [1.2.2](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/compare/v1.2.1...v1.2.2) (2025-04-08)
|
|
2
|
+
|
|
3
|
+
## [1.2.1](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/compare/v1.2.0...v1.2.1) (2025-04-08)
|
|
4
|
+
|
|
1
5
|
# [1.2.0](https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared/compare/v1.1.2...v1.2.0) (2025-04-02)
|
|
2
6
|
|
|
3
7
|
|
package/README.md
CHANGED
|
@@ -90,7 +90,7 @@ import { AlertBanner } from '@hortiview/shared-components';
|
|
|
90
90
|
|
|
91
91
|
### BaseView
|
|
92
92
|
|
|
93
|
-
Can used to show a kind off main and detail view. On the left side you will have a list of elements and on the right a detail section of the element selected.
|
|
93
|
+
Can be used to show a kind off main and detail view. On the left side you will have a list of elements and on the right a detail section of the element selected.
|
|
94
94
|
|
|
95
95
|
```jsx
|
|
96
96
|
import { BaseListElement, BaseView } from '@hortiview/shared-components';
|
|
@@ -1058,4 +1058,4 @@ The supported countries are:
|
|
|
1058
1058
|
const languageCode = 'en' as AVAILABLE_LANGUAGE_CODES;
|
|
1059
1059
|
const languageCountryCode = LANGUAGE_CODES_MAPPER[languageCode];
|
|
1060
1060
|
console.log(languageCountryCode); // 'en-US'
|
|
1061
|
-
```
|
|
1061
|
+
```
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { CheckboxProps } from '@element-public/react-checkbox';
|
|
1
2
|
import { FieldValues, Path, RegisterOptions } from 'react-hook-form';
|
|
2
3
|
|
|
3
4
|
type FormCheckProps<T extends FieldValues> = {
|
|
4
5
|
/** The name of the property that this checkbox represents. */
|
|
5
6
|
propertyName: Path<T>;
|
|
6
7
|
/** Label to be displayed with the checkbox. */
|
|
7
|
-
label:
|
|
8
|
+
label: CheckboxProps['label'];
|
|
8
9
|
/** Validation rules for the checkbox. */
|
|
9
10
|
validate?: RegisterOptions<T>['validate'];
|
|
10
11
|
/** Determines if this input is mandatory. */
|
|
@@ -12,7 +13,7 @@ type FormCheckProps<T extends FieldValues> = {
|
|
|
12
13
|
/** Function to be called when the checkbox value changes. */
|
|
13
14
|
onChange?: () => void;
|
|
14
15
|
/** Determines if this input is disabled. */
|
|
15
|
-
disabled?:
|
|
16
|
+
disabled?: CheckboxProps['disabled'];
|
|
16
17
|
};
|
|
17
18
|
/**
|
|
18
19
|
* FormCheckBox is a custom form input component for selecting checkboxes.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hortiview/shared-components",
|
|
3
3
|
"description": "This is a shared component library. It should used in the HortiView platform and its modules.",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.2",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": "https://dev.azure.com/sdundc/HV%20Platform/_git/HortiView-Frontend-Shared",
|
|
7
7
|
"author": "Falk Menge <falk.menge.ext@bayer.com>",
|
|
@@ -30,8 +30,60 @@
|
|
|
30
30
|
},
|
|
31
31
|
"release": {
|
|
32
32
|
"plugins": [
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
[
|
|
34
|
+
"@semantic-release/commit-analyzer",
|
|
35
|
+
{
|
|
36
|
+
"releaseRules": [
|
|
37
|
+
{
|
|
38
|
+
"type": "docs",
|
|
39
|
+
"scope": "README",
|
|
40
|
+
"release": "patch"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"type": "refactor",
|
|
44
|
+
"release": "patch"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"type": "style",
|
|
48
|
+
"release": "patch"
|
|
49
|
+
}
|
|
50
|
+
]
|
|
51
|
+
}
|
|
52
|
+
],
|
|
53
|
+
[
|
|
54
|
+
"@semantic-release/release-notes-generator",
|
|
55
|
+
{
|
|
56
|
+
"presetConfig": {
|
|
57
|
+
"types": [
|
|
58
|
+
{
|
|
59
|
+
"type": "docs",
|
|
60
|
+
"section": "Documentation",
|
|
61
|
+
"hidden": false
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"type": "feat",
|
|
65
|
+
"section": "Features",
|
|
66
|
+
"hidden": false
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"type": "fix",
|
|
70
|
+
"section": "Bug Fixes",
|
|
71
|
+
"hidden": false
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"type": "refactor",
|
|
75
|
+
"section": "Code Refactoring",
|
|
76
|
+
"hidden": false
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"type": "style",
|
|
80
|
+
"section": "Styles",
|
|
81
|
+
"hidden": false
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
],
|
|
35
87
|
"semantic-release-ado",
|
|
36
88
|
[
|
|
37
89
|
"@semantic-release/npm",
|