@hortiview/shared-components 2.28.3 → 2.29.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/CHANGELOG.md +833 -0
- package/README.md +1387 -0
- package/components/AllowedButton/AllowedButton.d.ts +1 -1
- package/components/AllowedButton/AllowedButton.js +24 -21
- package/components/AllowedIconButton/AllowedIconButton.d.ts +1 -1
- package/components/AllowedIconButton/AllowedIconButton.js +20 -17
- package/components/FormComponents/FormText/FormText.js +101 -109
- package/main.d.ts +0 -1
- package/main.js +33 -35
- package/package.json +2 -2
- package/types/Permission.d.ts +2 -148
- package/types/Permission.js +1 -4
- package/components/PermissionChecks/mockedPermissions.d.ts +0 -24
- package/components/PermissionChecks/mockedPermissions.js +0 -299
|
@@ -47,4 +47,4 @@ export type AllowedButtonProps = Omit<ButtonProps & React.HTMLProps<HTMLButtonEl
|
|
|
47
47
|
* @param {AllowedButtonProps} props - Component properties
|
|
48
48
|
* @returns {JSX.Element | null} The button component or null if permissions are not met
|
|
49
49
|
*/
|
|
50
|
-
export declare const AllowedButton: ({ buttonType, variant, "data-testid": testId, label, size, isLoading, ...props }: AllowedButtonProps) => import("react").JSX.Element;
|
|
50
|
+
export declare const AllowedButton: ({ buttonType, variant, "data-testid": testId, label, size, isLoading, formId, permissions, entityIds, ...props }: AllowedButtonProps) => import("react").JSX.Element;
|
|
@@ -1,28 +1,31 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { B as
|
|
3
|
-
import { Allowed as
|
|
4
|
-
import { LoadingSpinner as
|
|
5
|
-
const
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { B as u } from "../../index.es-B9C7vzr4.js";
|
|
3
|
+
import { Allowed as f } from "../Allowed/Allowed.js";
|
|
4
|
+
import { LoadingSpinner as p } from "../LoadingSpinner/Default/LoadingSpinner.js";
|
|
5
|
+
const h = ({
|
|
6
6
|
buttonType: d = "button",
|
|
7
|
-
variant:
|
|
8
|
-
"data-testid":
|
|
9
|
-
label:
|
|
10
|
-
size:
|
|
11
|
-
isLoading:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
7
|
+
variant: i = "filled",
|
|
8
|
+
"data-testid": r,
|
|
9
|
+
label: n,
|
|
10
|
+
size: l = "medium",
|
|
11
|
+
isLoading: e = !1,
|
|
12
|
+
formId: m,
|
|
13
|
+
permissions: s,
|
|
14
|
+
entityIds: a,
|
|
15
|
+
...o
|
|
16
|
+
}) => /* @__PURE__ */ t(f, { neededPermissions: s, entityIds: a, children: /* @__PURE__ */ t(
|
|
17
|
+
u,
|
|
15
18
|
{
|
|
16
|
-
...
|
|
17
|
-
buttonSize:
|
|
18
|
-
"data-testid": `allowed-button-${
|
|
19
|
-
disabled:
|
|
20
|
-
form:
|
|
19
|
+
...o,
|
|
20
|
+
buttonSize: l,
|
|
21
|
+
"data-testid": `allowed-button-${r}`,
|
|
22
|
+
disabled: o.disabled || e,
|
|
23
|
+
form: m,
|
|
21
24
|
type: d,
|
|
22
|
-
variant:
|
|
23
|
-
children:
|
|
25
|
+
variant: i,
|
|
26
|
+
children: e ? /* @__PURE__ */ t(p, { size: "sm", spinnerOnly: !0 }) : n
|
|
24
27
|
}
|
|
25
28
|
) });
|
|
26
29
|
export {
|
|
27
|
-
|
|
30
|
+
h as AllowedButton
|
|
28
31
|
};
|
|
@@ -39,4 +39,4 @@ export type AllowedIconButtonProps = Omit<IconButtonProps & React.HTMLProps<HTML
|
|
|
39
39
|
* @param {AllowedIconButtonProps} props - Component properties
|
|
40
40
|
* @returns {JSX.Element | null} The icon button component or null if permissions are not met
|
|
41
41
|
*/
|
|
42
|
-
export declare const AllowedIconButton: ({ "data-testid": testId, variant, iconType, size, ...props }: AllowedIconButtonProps) => import("react").JSX.Element;
|
|
42
|
+
export declare const AllowedIconButton: ({ "data-testid": testId, variant, iconType, size, formId, permissions, entityIds, ...props }: AllowedIconButtonProps) => import("react").JSX.Element;
|
|
@@ -1,23 +1,26 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { I as
|
|
3
|
-
import { Allowed as
|
|
4
|
-
const
|
|
5
|
-
"data-testid":
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { I as s } from "../../index.es-BwhRJBEH.js";
|
|
3
|
+
import { Allowed as a } from "../Allowed/Allowed.js";
|
|
4
|
+
const u = ({
|
|
5
|
+
"data-testid": t,
|
|
6
6
|
variant: e = "filled-primary",
|
|
7
|
-
iconType:
|
|
8
|
-
size:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
m,
|
|
7
|
+
iconType: i = "filled",
|
|
8
|
+
size: d = "medium",
|
|
9
|
+
formId: r,
|
|
10
|
+
permissions: l,
|
|
11
|
+
entityIds: m,
|
|
12
|
+
...n
|
|
13
|
+
}) => /* @__PURE__ */ o(a, { neededPermissions: l, entityIds: m, children: /* @__PURE__ */ o(
|
|
14
|
+
s,
|
|
12
15
|
{
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
...n,
|
|
17
|
+
"data-testid": `allowed-icon-button-${t}`,
|
|
18
|
+
form: r,
|
|
19
|
+
iconSize: d,
|
|
20
|
+
iconType: i,
|
|
21
|
+
variant: e
|
|
19
22
|
}
|
|
20
23
|
) });
|
|
21
24
|
export {
|
|
22
|
-
|
|
25
|
+
u as AllowedIconButton
|
|
23
26
|
};
|
|
@@ -1,131 +1,123 @@
|
|
|
1
|
-
import { jsx as t, Fragment as
|
|
2
|
-
import { T as
|
|
3
|
-
import { a as
|
|
4
|
-
import {
|
|
5
|
-
import { useFormContext as
|
|
6
|
-
import { useHelperText as
|
|
7
|
-
import '../../../assets/FormText.css';const
|
|
8
|
-
formTextAreaHelperText:
|
|
9
|
-
invalid:
|
|
10
|
-
required:
|
|
11
|
-
formTextArea:
|
|
12
|
-
characterCount:
|
|
13
|
-
withoutCharacterCount:
|
|
14
|
-
formText:
|
|
15
|
-
},
|
|
1
|
+
import { jsx as t, Fragment as g, jsxs as R } from "react/jsx-runtime";
|
|
2
|
+
import { T as k } from "../../../index.es-CJIPOFSz.js";
|
|
3
|
+
import { a as z } from "../../../index.es-CdZp67J9.js";
|
|
4
|
+
import { useMemo as u } from "react";
|
|
5
|
+
import { useFormContext as M, Controller as C } from "react-hook-form";
|
|
6
|
+
import { useHelperText as P } from "../../../hooks/useHelperText.js";
|
|
7
|
+
import '../../../assets/FormText.css';const V = "_formTextAreaHelperText_x4g1e_1", W = "_invalid_x4g1e_7", b = "_required_x4g1e_11", D = "_formTextArea_x4g1e_1", E = "_characterCount_x4g1e_25", G = "_withoutCharacterCount_x4g1e_31", I = "_formText_x4g1e_1", r = {
|
|
8
|
+
formTextAreaHelperText: V,
|
|
9
|
+
invalid: W,
|
|
10
|
+
required: b,
|
|
11
|
+
formTextArea: D,
|
|
12
|
+
characterCount: E,
|
|
13
|
+
withoutCharacterCount: G,
|
|
14
|
+
formText: I
|
|
15
|
+
}, J = ({
|
|
16
16
|
count: e,
|
|
17
|
-
maxCount:
|
|
18
|
-
invalid:
|
|
19
|
-
hasRequiredText:
|
|
17
|
+
maxCount: c,
|
|
18
|
+
invalid: x = !1,
|
|
19
|
+
hasRequiredText: o = !1
|
|
20
20
|
}) => /* @__PURE__ */ t(
|
|
21
21
|
"div",
|
|
22
22
|
{
|
|
23
23
|
"data-testid": "character-counter-container",
|
|
24
|
-
className: `${r.formTextAreaHelperText} ${
|
|
25
|
-
children: /* @__PURE__ */ t(
|
|
24
|
+
className: `${r.formTextAreaHelperText} ${x ? r.invalid : ""} ${o ? r.required : ""}`,
|
|
25
|
+
children: /* @__PURE__ */ t(z, { children: `${e}/${c}` })
|
|
26
26
|
}
|
|
27
|
-
),
|
|
27
|
+
), p = (e) => e.textarea ? /* @__PURE__ */ t(K, { ...e }) : /* @__PURE__ */ t(O, { ...e }), K = (e) => /* @__PURE__ */ t("div", { "data-testid": "form-text-area", className: r.formTextArea, children: /* @__PURE__ */ t(_, { ...e }) }), O = (e) => /* @__PURE__ */ t(
|
|
28
28
|
"div",
|
|
29
29
|
{
|
|
30
30
|
"data-testid": "form-text-field",
|
|
31
31
|
className: `${e.hasCharacterCount ? r.characterCount : r.withoutCharacterCount}`,
|
|
32
|
-
children: /* @__PURE__ */ t(
|
|
32
|
+
children: /* @__PURE__ */ t(_, { ...e })
|
|
33
33
|
}
|
|
34
|
-
),
|
|
34
|
+
), _ = ({
|
|
35
35
|
propertyName: e,
|
|
36
|
-
label:
|
|
37
|
-
disabled:
|
|
38
|
-
textarea:
|
|
39
|
-
hasCharacterCount:
|
|
40
|
-
hidden:
|
|
41
|
-
placeholder:
|
|
42
|
-
type:
|
|
43
|
-
prefixText:
|
|
44
|
-
inputMode:
|
|
45
|
-
trailingIcon:
|
|
46
|
-
trigger:
|
|
47
|
-
rules:
|
|
48
|
-
...
|
|
36
|
+
label: c,
|
|
37
|
+
disabled: x = !1,
|
|
38
|
+
textarea: o = !1,
|
|
39
|
+
hasCharacterCount: d = !1,
|
|
40
|
+
hidden: v = !1,
|
|
41
|
+
placeholder: A,
|
|
42
|
+
type: $,
|
|
43
|
+
prefixText: F,
|
|
44
|
+
inputMode: q,
|
|
45
|
+
trailingIcon: H,
|
|
46
|
+
trigger: s = "likeForm",
|
|
47
|
+
rules: n,
|
|
48
|
+
...a
|
|
49
49
|
}) => {
|
|
50
|
-
const { control:
|
|
51
|
-
(
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
[i, n]
|
|
61
|
-
), l = d(
|
|
62
|
-
() => o.maxlength ? o.maxlength : a?.maxLength?.value,
|
|
63
|
-
[a, o.maxlength]
|
|
64
|
-
), j = d(
|
|
65
|
-
() => a?.minLength?.value,
|
|
66
|
-
[a]
|
|
67
|
-
), C = d(
|
|
68
|
-
() => a?.required?.message,
|
|
69
|
-
[a]
|
|
70
|
-
), { helperText: k, helperTextPersistent: R } = E({
|
|
50
|
+
const { control: h, getFieldState: m, trigger: f } = M(), i = u(
|
|
51
|
+
() => a.maxlength ? a.maxlength : n?.maxLength?.value,
|
|
52
|
+
[n, a.maxlength]
|
|
53
|
+
), L = u(
|
|
54
|
+
() => n?.minLength?.value,
|
|
55
|
+
[n]
|
|
56
|
+
), T = u(
|
|
57
|
+
() => n?.required?.message,
|
|
58
|
+
[n]
|
|
59
|
+
), { helperText: w, helperTextPersistent: B } = P({
|
|
71
60
|
propertyName: e,
|
|
72
|
-
helperText:
|
|
73
|
-
requiredText:
|
|
74
|
-
maxLength:
|
|
75
|
-
hasCharacterCount:
|
|
61
|
+
helperText: a.helperText,
|
|
62
|
+
requiredText: T,
|
|
63
|
+
maxLength: i,
|
|
64
|
+
hasCharacterCount: o || d
|
|
76
65
|
});
|
|
77
|
-
return
|
|
78
|
-
|
|
66
|
+
return v ? /* @__PURE__ */ t(C, { name: e, control: h, render: () => /* @__PURE__ */ t(g, {}) }) : /* @__PURE__ */ t(
|
|
67
|
+
C,
|
|
79
68
|
{
|
|
80
69
|
name: e,
|
|
81
|
-
rules:
|
|
82
|
-
control:
|
|
83
|
-
render: ({ field: { ref:
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
70
|
+
rules: n,
|
|
71
|
+
control: h,
|
|
72
|
+
render: ({ field: { ref: Q, ...l } }) => {
|
|
73
|
+
const S = String(l.value ?? "").length;
|
|
74
|
+
return /* @__PURE__ */ R(g, { children: [
|
|
75
|
+
/* @__PURE__ */ t(
|
|
76
|
+
k,
|
|
77
|
+
{
|
|
78
|
+
...a,
|
|
79
|
+
...l,
|
|
80
|
+
value: l.value ?? "",
|
|
81
|
+
type: $,
|
|
82
|
+
fullWidth: !0,
|
|
83
|
+
"data-testid": `textfield-${e}`,
|
|
84
|
+
inputMode: q,
|
|
85
|
+
placeholder: A,
|
|
86
|
+
prefixText: F,
|
|
87
|
+
disabled: x,
|
|
88
|
+
helperText: w,
|
|
89
|
+
helperTextPersistent: B,
|
|
90
|
+
label: c,
|
|
91
|
+
variant: "outlined",
|
|
92
|
+
maxlength: i,
|
|
93
|
+
minLength: L,
|
|
94
|
+
textarea: o,
|
|
95
|
+
noResize: !1,
|
|
96
|
+
onBlur: () => {
|
|
97
|
+
s === "onBlur" && f(e), a.onBlur?.();
|
|
98
|
+
},
|
|
99
|
+
onChange: (j) => {
|
|
100
|
+
l.onChange(j), s === "onChange" && f(e);
|
|
101
|
+
},
|
|
102
|
+
valid: !m(e).invalid,
|
|
103
|
+
className: `${r.formText} ${m(e).invalid ? r.invalid : ""}`,
|
|
104
|
+
trailingIcon: H
|
|
105
|
+
}
|
|
106
|
+
),
|
|
107
|
+
i !== void 0 && (d || o) && /* @__PURE__ */ t(
|
|
108
|
+
J,
|
|
109
|
+
{
|
|
110
|
+
count: S,
|
|
111
|
+
maxCount: i,
|
|
112
|
+
invalid: m(e).invalid,
|
|
113
|
+
hasRequiredText: !!a.helperText || !!T
|
|
114
|
+
}
|
|
115
|
+
)
|
|
116
|
+
] });
|
|
117
|
+
}
|
|
126
118
|
}
|
|
127
119
|
);
|
|
128
120
|
};
|
|
129
121
|
export {
|
|
130
|
-
|
|
122
|
+
p as FormText
|
|
131
123
|
};
|
package/main.d.ts
CHANGED
|
@@ -75,5 +75,4 @@ export { getPermissionsFromModulePermissionToken, useIsAllowed } from './compone
|
|
|
75
75
|
export type { IsAllowedProps } from './components/PermissionChecks/PermissionService';
|
|
76
76
|
export { SharedComponentsPermissionProvider } from './components/SharedComponentsPermissionProvider/SharedComponentsPermissionProvider';
|
|
77
77
|
export { createPermissionWrapper, renderWithPermissions } from './test-utils';
|
|
78
|
-
export { HVMainPermissions } from './types/Permission';
|
|
79
78
|
export type { HVPermissions, ModulePermissionTokenParsed, PermissionsByEntity } from './types/Permission';
|
package/main.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { A as e } from "./AlertBanner-2rv7mRmR.js";
|
|
2
2
|
import { LinkBanner as m } from "./components/AlertBanner/LinkBanner.js";
|
|
3
3
|
import { BaseView as f } from "./components/BaseView/BaseView.js";
|
|
4
|
-
import { BasicHeading as
|
|
4
|
+
import { BasicHeading as i } from "./components/BasicHeading/BasicHeading.js";
|
|
5
5
|
import { BlockView as n } from "./components/BlockView/BlockView.js";
|
|
6
|
-
import { ButtonCard as
|
|
6
|
+
import { ButtonCard as A } from "./components/ButtonCard/ButtonCard.js";
|
|
7
7
|
import { ChipCard as d } from "./components/ChipCard/ChipCard.js";
|
|
8
8
|
import { ConfirmationModal as c } from "./components/ConfirmationModal/ConfirmationModal.js";
|
|
9
9
|
import { ContextMenu as T } from "./components/ContextMenu/ContextMenu.js";
|
|
@@ -11,13 +11,13 @@ import { DeleteModal as L } from "./components/DeleteModal/DeleteModal.js";
|
|
|
11
11
|
import { DetailContentWrapper as B } from "./components/DetailContentWrapper/DetailContentWrapper.js";
|
|
12
12
|
import { Disclaimer as u } from "./components/Disclaimer/Disclaimer.js";
|
|
13
13
|
import { EmptyView as G } from "./components/EmptyView/EmptyView.js";
|
|
14
|
-
import { Filter as
|
|
15
|
-
import { FloatingActionButton as
|
|
14
|
+
import { Filter as g } from "./components/Filter/Filter.js";
|
|
15
|
+
import { FloatingActionButton as N } from "./components/FloatingActionButton/FloatingActionButton.js";
|
|
16
16
|
import { FormattedNumberDisplay as b } from "./components/FormattedNumberDisplay/FormattedNumberDisplay.js";
|
|
17
17
|
import { GenericTable as O } from "./components/GenericTable/GenericTable.js";
|
|
18
|
-
import { HashTabView as
|
|
19
|
-
import { HeaderFilter as
|
|
20
|
-
import { Iconify as
|
|
18
|
+
import { HashTabView as h } from "./components/HashTabView/HashTabView.js";
|
|
19
|
+
import { HeaderFilter as U } from "./components/HeaderFilter/HeaderFilter.js";
|
|
20
|
+
import { Iconify as H } from "./components/Iconify/Iconify.js";
|
|
21
21
|
import { InfoCard as y } from "./components/InfoCard/InfoCard.js";
|
|
22
22
|
import { InfoGroup as Y } from "./components/InfoGroup/InfoGroup.js";
|
|
23
23
|
import { ListArea as j } from "./components/ListArea/ListArea.js";
|
|
@@ -27,10 +27,10 @@ import { ModulePadding as Z } from "./components/ModulePadding/ModulePadding.js"
|
|
|
27
27
|
import { OfflineView as rr } from "./components/OfflineView/OfflineView.js";
|
|
28
28
|
import { OnboardingBanner as er } from "./components/OnboardingBanner/OnboardingBanner.js";
|
|
29
29
|
import { OverflowTooltip as mr } from "./components/OverflowTooltip/OverflowTooltip.js";
|
|
30
|
-
import { ScrollbarX as fr, ScrollbarY as
|
|
30
|
+
import { ScrollbarX as fr, ScrollbarY as xr } from "./components/Scrollbar/Scrollbar.js";
|
|
31
31
|
import { SearchBar as ar } from "./components/SearchBar/SearchBar.js";
|
|
32
32
|
import { Select as lr } from "./components/Select/Select.js";
|
|
33
|
-
import { StepperHeader as
|
|
33
|
+
import { StepperHeader as sr } from "./components/Stepper/components/StepperHeader.js";
|
|
34
34
|
import { Stepper as Sr } from "./components/Stepper/Stepper.js";
|
|
35
35
|
import { TopBarBanner as Er } from "./components/TopBarBanner/TopBarBanner.js";
|
|
36
36
|
import { VerticalDivider as Fr } from "./components/VerticalDivider/VerticalDivider.js";
|
|
@@ -38,38 +38,37 @@ import { FormCheckBox as _r } from "./components/FormComponents/FormCheckBox/For
|
|
|
38
38
|
import { FormDatePicker as Ir } from "./components/FormComponents/FormDatePicker/FormDatePicker.js";
|
|
39
39
|
import { FormNumber as Dr } from "./components/FormComponents/FormNumber/FormNumber.js";
|
|
40
40
|
import { FormRadio as Cr } from "./components/FormComponents/FormRadio/FormRadio.js";
|
|
41
|
-
import { FormSelect as
|
|
42
|
-
import { FormSlider as
|
|
41
|
+
import { FormSelect as Mr } from "./components/FormComponents/FormSelect/FormSelect.js";
|
|
42
|
+
import { FormSlider as Pr } from "./components/FormComponents/FormSlider/FormSlider.js";
|
|
43
43
|
import { FormText as wr } from "./components/FormComponents/FormText/FormText.js";
|
|
44
44
|
import { FormToggle as Rr } from "./components/FormComponents/FormToggle/FormToggle.js";
|
|
45
|
-
import { SafeForm as
|
|
46
|
-
import { AvailableCustomIcons as
|
|
45
|
+
import { SafeForm as kr } from "./components/SafeForm/SafeForm.js";
|
|
46
|
+
import { AvailableCustomIcons as Vr } from "./enums/AvailableCustomIcons.js";
|
|
47
47
|
import { ThemeColor as vr } from "./enums/ThemeColor.js";
|
|
48
48
|
import { u as Wr, a as Yr } from "./useBreakpoints-DDrM9Cfx.js";
|
|
49
49
|
import { useContainerWidth as jr } from "./hooks/useContainerWidth.js";
|
|
50
50
|
import { capitalizeFirstLetters as Xr, flattenObjectToString as qr, getFormattedDateTime as Jr, getNumberAsLocaleString as Qr, trimLeadingAndTrailingSpaces as Zr } from "./services/UtilService.js";
|
|
51
51
|
import { StepperStyle as ro } from "./components/Stepper/stepperStyles.js";
|
|
52
52
|
import { DATE_FORMAT as eo, DATE_TIME_FORMAT as to, TIME_FORMAT as mo } from "./types/Time.js";
|
|
53
|
-
import { AVAILABLE_COUNTRY_KEYS as fo, AVAILABLE_LOCALES as
|
|
53
|
+
import { AVAILABLE_COUNTRY_KEYS as fo, AVAILABLE_LOCALES as xo, ENGLISH_LANGUAGE_ID as io, GERMAN_LANGUAGE_ID as ao, LANGUAGE_CODES_MAPPER as no, LANGUAGE_ID_MAPPER as lo, SPANISH_LANGUAGE_ID as Ao, TURKISH_LANGUAGE_ID as so } from "./types/Languages.js";
|
|
54
54
|
import { Allowed as co } from "./components/Allowed/Allowed.js";
|
|
55
55
|
import { AllowedButton as To } from "./components/AllowedButton/AllowedButton.js";
|
|
56
56
|
import { AllowedIconButton as Lo } from "./components/AllowedIconButton/AllowedIconButton.js";
|
|
57
57
|
import { getPermissionsFromModulePermissionToken as Bo, useIsAllowed as Io } from "./components/PermissionChecks/PermissionService.js";
|
|
58
58
|
import { SharedComponentsPermissionProvider as Do } from "./components/SharedComponentsPermissionProvider/SharedComponentsPermissionProvider.js";
|
|
59
|
-
import { createPermissionWrapper as Co, renderWithPermissions as
|
|
60
|
-
import { HVMainPermissions as Po } from "./types/Permission.js";
|
|
59
|
+
import { createPermissionWrapper as Co, renderWithPermissions as go } from "./test-utils.js";
|
|
61
60
|
export {
|
|
62
61
|
fo as AVAILABLE_COUNTRY_KEYS,
|
|
63
|
-
|
|
62
|
+
xo as AVAILABLE_LOCALES,
|
|
64
63
|
e as AlertBanner,
|
|
65
64
|
co as Allowed,
|
|
66
65
|
To as AllowedButton,
|
|
67
66
|
Lo as AllowedIconButton,
|
|
68
|
-
|
|
67
|
+
Vr as AvailableCustomIcons,
|
|
69
68
|
f as BaseView,
|
|
70
|
-
|
|
69
|
+
i as BasicHeading,
|
|
71
70
|
n as BlockView,
|
|
72
|
-
|
|
71
|
+
A as ButtonCard,
|
|
73
72
|
d as ChipCard,
|
|
74
73
|
c as ConfirmationModal,
|
|
75
74
|
T as ContextMenu,
|
|
@@ -78,25 +77,24 @@ export {
|
|
|
78
77
|
L as DeleteModal,
|
|
79
78
|
B as DetailContentWrapper,
|
|
80
79
|
u as Disclaimer,
|
|
81
|
-
|
|
80
|
+
io as ENGLISH_LANGUAGE_ID,
|
|
82
81
|
G as EmptyView,
|
|
83
|
-
|
|
84
|
-
|
|
82
|
+
g as Filter,
|
|
83
|
+
N as FloatingActionButton,
|
|
85
84
|
_r as FormCheckBox,
|
|
86
85
|
Ir as FormDatePicker,
|
|
87
86
|
Dr as FormNumber,
|
|
88
87
|
Cr as FormRadio,
|
|
89
|
-
|
|
90
|
-
|
|
88
|
+
Mr as FormSelect,
|
|
89
|
+
Pr as FormSlider,
|
|
91
90
|
wr as FormText,
|
|
92
91
|
Rr as FormToggle,
|
|
93
92
|
b as FormattedNumberDisplay,
|
|
94
93
|
ao as GERMAN_LANGUAGE_ID,
|
|
95
94
|
O as GenericTable,
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
U as Iconify,
|
|
95
|
+
h as HashTabView,
|
|
96
|
+
U as HeaderFilter,
|
|
97
|
+
H as Iconify,
|
|
100
98
|
y as InfoCard,
|
|
101
99
|
Y as InfoGroup,
|
|
102
100
|
no as LANGUAGE_CODES_MAPPER,
|
|
@@ -109,18 +107,18 @@ export {
|
|
|
109
107
|
rr as OfflineView,
|
|
110
108
|
er as OnboardingBanner,
|
|
111
109
|
mr as OverflowTooltip,
|
|
112
|
-
|
|
113
|
-
|
|
110
|
+
Ao as SPANISH_LANGUAGE_ID,
|
|
111
|
+
kr as SafeForm,
|
|
114
112
|
fr as ScrollbarX,
|
|
115
|
-
|
|
113
|
+
xr as ScrollbarY,
|
|
116
114
|
ar as SearchBar,
|
|
117
115
|
lr as Select,
|
|
118
116
|
Do as SharedComponentsPermissionProvider,
|
|
119
117
|
Sr as Stepper,
|
|
120
|
-
|
|
118
|
+
sr as StepperHeader,
|
|
121
119
|
ro as StepperStyle,
|
|
122
120
|
mo as TIME_FORMAT,
|
|
123
|
-
|
|
121
|
+
so as TURKISH_LANGUAGE_ID,
|
|
124
122
|
vr as ThemeColor,
|
|
125
123
|
Er as TopBarBanner,
|
|
126
124
|
Fr as VerticalDivider,
|
|
@@ -130,7 +128,7 @@ export {
|
|
|
130
128
|
Jr as getFormattedDateTime,
|
|
131
129
|
Qr as getNumberAsLocaleString,
|
|
132
130
|
Bo as getPermissionsFromModulePermissionToken,
|
|
133
|
-
|
|
131
|
+
go as renderWithPermissions,
|
|
134
132
|
Zr as trimLeadingAndTrailingSpaces,
|
|
135
133
|
Wr as useBreakpoints,
|
|
136
134
|
jr as useContainerWidth,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hortiview/shared-components",
|
|
3
|
-
"version": "2.
|
|
4
|
-
"description": "This is a shared component library. It should used in the HortiView platform and its modules.",
|
|
3
|
+
"version": "2.29.0",
|
|
4
|
+
"description": "This is a shared component library. It should be used in the HortiView platform and its modules.",
|
|
5
5
|
"license": "GPL-3.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./main.js",
|