@altinn/altinn-components 0.18.7 → 0.18.9
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.
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
import { jsxs as
|
|
1
|
+
import { jsxs as m, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "../RootProvider/RootProvider.js";
|
|
5
|
-
import { DialogMetadata as
|
|
5
|
+
import { DialogMetadata as t } from "./DialogMetadata.js";
|
|
6
6
|
import { DialogByline as g } from "./DialogByline.js";
|
|
7
|
-
import { Skeleton as
|
|
7
|
+
import { Skeleton as S } from "../Skeleton/Skeleton.js";
|
|
8
8
|
import { Typography as x } from "../Typography/Typography.js";
|
|
9
9
|
import "../Search/AutocompleteBase.js";
|
|
10
10
|
import "../Snackbar/useSnackbar.js";
|
|
11
11
|
import { TimelineSection as D } from "../Timeline/TimelineSection.js";
|
|
12
|
-
import { Section as
|
|
13
|
-
const
|
|
12
|
+
import { Section as p } from "../Page/Section.js";
|
|
13
|
+
const q = ({
|
|
14
14
|
loading: i,
|
|
15
15
|
loadingText: e = "Loading ...",
|
|
16
|
-
grouped:
|
|
16
|
+
grouped: c,
|
|
17
17
|
sender: n,
|
|
18
|
-
recipient:
|
|
18
|
+
recipient: d,
|
|
19
19
|
recipientLabel: l,
|
|
20
|
-
updatedAt:
|
|
21
|
-
updatedAtLabel:
|
|
22
|
-
children:
|
|
23
|
-
seenBy:
|
|
20
|
+
updatedAt: h,
|
|
21
|
+
updatedAtLabel: s,
|
|
22
|
+
children: f,
|
|
23
|
+
seenBy: o,
|
|
24
24
|
activityLog: a
|
|
25
|
-
}) => /* @__PURE__ */
|
|
25
|
+
}) => /* @__PURE__ */ m(p, { spacing: 6, children: [
|
|
26
26
|
/* @__PURE__ */ r(
|
|
27
27
|
g,
|
|
28
28
|
{
|
|
29
29
|
size: "lg",
|
|
30
30
|
sender: n,
|
|
31
|
-
recipient:
|
|
31
|
+
recipient: d,
|
|
32
32
|
recipientLabel: l,
|
|
33
|
-
grouped:
|
|
33
|
+
grouped: c,
|
|
34
34
|
loading: i
|
|
35
35
|
}
|
|
36
36
|
),
|
|
37
|
-
/* @__PURE__ */ r(D, { children: /* @__PURE__ */
|
|
38
|
-
/* @__PURE__ */
|
|
39
|
-
/* @__PURE__ */ r(
|
|
40
|
-
/* @__PURE__ */ r(x, { loading: i, size: "md", children: i && /* @__PURE__ */ r("p", { children: /* @__PURE__ */ r(
|
|
37
|
+
/* @__PURE__ */ r(D, { isSeenByEndUser: o == null ? void 0 : o.seenByEndUser, children: /* @__PURE__ */ m(p, { spacing: 4, margin: "section", children: [
|
|
38
|
+
/* @__PURE__ */ m("div", { children: [
|
|
39
|
+
/* @__PURE__ */ r(t, { loading: i, updatedAt: h, updatedAtLabel: s }),
|
|
40
|
+
/* @__PURE__ */ r(x, { loading: i, size: "md", children: i && /* @__PURE__ */ r("p", { children: /* @__PURE__ */ r(S, { loading: i, children: e }) }) || f })
|
|
41
41
|
] }),
|
|
42
|
-
/* @__PURE__ */ r(
|
|
42
|
+
/* @__PURE__ */ r(t, { loading: i, seenBy: o, activityLog: a })
|
|
43
43
|
] }) })
|
|
44
44
|
] });
|
|
45
45
|
export {
|
|
46
|
-
|
|
46
|
+
q as DialogBody
|
|
47
47
|
};
|
|
@@ -18,14 +18,14 @@ import '../../assets/Header.css';const S = "_drawer_d2s9o_1", I = "_dropdown_d2s
|
|
|
18
18
|
drawer: S,
|
|
19
19
|
dropdown: I
|
|
20
20
|
}, K = ({ search: d, menu: r, currentAccount: a, logo: l = {}, badge: i }) => {
|
|
21
|
-
const { currentId: o, toggleId:
|
|
21
|
+
const { currentId: o, toggleId: m, openId: c, closeAll: n } = C(), h = () => {
|
|
22
22
|
c("search");
|
|
23
23
|
}, f = () => {
|
|
24
|
-
|
|
24
|
+
m("search");
|
|
25
25
|
}, w = () => {
|
|
26
|
-
|
|
26
|
+
m("menu");
|
|
27
27
|
};
|
|
28
|
-
return /* @__PURE__ */ p(H, { currentId: o, open: o === "search" || o === "menu", onClose:
|
|
28
|
+
return /* @__PURE__ */ p(H, { currentId: o, open: o === "search" || o === "menu", onClose: n, children: [
|
|
29
29
|
/* @__PURE__ */ e(_, { ...l, className: s.logo }),
|
|
30
30
|
/* @__PURE__ */ p(B, { className: s.menu, children: [
|
|
31
31
|
/* @__PURE__ */ e(
|
|
@@ -43,10 +43,10 @@ import '../../assets/Header.css';const S = "_drawer_d2s9o_1", I = "_dropdown_d2s
|
|
|
43
43
|
label: r == null ? void 0 : r.menuLabel
|
|
44
44
|
}
|
|
45
45
|
),
|
|
46
|
-
r && /* @__PURE__ */ e(g, { padding: !0, placement: "right", open: o === "menu", className: s.dropdown, children: /* @__PURE__ */ e(t, { ...r, currentAccount: a, onClose:
|
|
46
|
+
r && /* @__PURE__ */ e(g, { padding: !0, placement: "right", open: o === "menu", className: s.dropdown, children: /* @__PURE__ */ e(t, { ...r, currentAccount: a, onClose: n }) })
|
|
47
47
|
] }),
|
|
48
48
|
d && /* @__PURE__ */ e(N, { expanded: o === "search", children: /* @__PURE__ */ e(y, { ...d, expanded: o === "search", onClose: f, onFocus: h }) }),
|
|
49
|
-
r && /* @__PURE__ */ e(x, { open: o === "menu", className: s.drawer, children: /* @__PURE__ */ e(t, { ...r, currentAccount: a }) })
|
|
49
|
+
r && /* @__PURE__ */ e(x, { open: o === "menu", className: s.drawer, children: /* @__PURE__ */ e(t, { ...r, currentAccount: a, onClose: n }) })
|
|
50
50
|
] });
|
|
51
51
|
};
|
|
52
52
|
export {
|