@altinn/altinn-components 0.33.2 → 0.33.4
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/dist/assets/DialogListItem.css +1 -1
- package/dist/assets/MetaItemBase.css +1 -1
- package/dist/assets/MetaItemIcon.css +1 -1
- package/dist/components/ContextMenu/ContextMenu.js +44 -41
- package/dist/components/Dialog/Dialog.js +15 -14
- package/dist/components/Dialog/DialogBody.js +19 -12
- package/dist/components/Dialog/DialogHeader.js +19 -17
- package/dist/components/Dialog/DialogListItem.js +87 -89
- package/dist/components/Dialog/DialogMetadata.js +45 -47
- package/dist/components/Dialog/SeenByLog.js +5 -5
- package/dist/components/Dialog/SeenByLogButton.js +6 -24
- package/dist/components/Metadata/MetaItemBase.js +17 -17
- package/dist/components/Metadata/MetaItemIcon.js +17 -10
- package/dist/components/Transmission/Transmission.js +20 -20
- package/dist/components/Transmission/TransmissionType.js +7 -7
- package/dist/types/lib/components/ContextMenu/ContextMenu.d.ts +2 -1
- package/dist/types/lib/components/Dialog/Dialog.d.ts +1 -1
- package/dist/types/lib/components/Dialog/DialogBody.d.ts +1 -1
- package/dist/types/lib/components/Dialog/DialogBody.stories.d.ts +1 -1
- package/dist/types/lib/components/Dialog/DialogHeader.d.ts +1 -1
- package/dist/types/lib/components/Dialog/DialogHeader.stories.d.ts +1 -1
- package/dist/types/lib/components/Dialog/DialogListItem.d.ts +2 -4
- package/dist/types/lib/components/Dialog/DialogMetadata.d.ts +2 -4
- package/dist/types/lib/components/Dialog/DialogMetadata.stories.d.ts +1 -1
- package/dist/types/lib/components/Dialog/SeenByLogButton.d.ts +3 -7
- package/dist/types/lib/components/Metadata/MetaItem.d.ts +2 -3
- package/dist/types/lib/components/Metadata/MetaItemIcon.d.ts +4 -5
- package/dist/types/lib/components/Metadata/MetaTimestamp.d.ts +2 -3
- package/dist/types/lib/components/Transmission/TransmissionType.d.ts +3 -1
- package/package.json +1 -1
- package/dist/assets/SeenByLogButton.css +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._border_1cz0s_1{pointer-events:none;border-left:.25rem solid;border-color:var(--dsc-border-color);display:flex;flex-direction:column;margin-top:.25em;margin-bottom:.25em;--dsc-item-my: 0;--dsc-border-color: var(--ds-color-neutral-surface-tinted);--dsc-title-weight: 400;--dsc-title-font-size: 1rem;--dsc-title-line-height: 1.25;--dsc-summary-font-size: .875rem}._border_1cz0s_1[data-selected=true]{--dsc-border-color: var(--ds-color-surface-tinted)}._border_1cz0s_1[data-unread=true]{--dsc-border-color: var(--ds-color-surface-active);--dsc-title-weight: 600}._border_1cz0s_1[data-trashed=true] ._title_1cz0s_27{text-decoration:line-through}._border_1cz0s_1[data-size=xs],._border_1cz0s_1[data-size=sm]{width:100%;flex-direction:row;align-items:center;padding-left:.75rem}._border_1cz0s_1[data-size=md]{padding-left:.75rem;row-gap:.5rem}._border_1cz0s_1[data-size=lg]{--dsc-title-font-size: 1.25rem;--dsc-summary-font-size: 1rem;padding-left:.875rem;row-gap:.875rem}._border_1cz0s_1[data-size=xl]{--dsc-title-font-size: 1.25rem;--dsc-summary-font-size: 1rem;padding-left:1rem;row-gap:1rem}._controls_1cz0s_58{position:absolute;top:0;right:0;margin:.25em}._header_1cz0s_65{position:relative;display:flex;flex-direction:column;row-gap:.25rem}._header_1cz0s_65[data-size=xs],._header_1cz0s_65[data-size=sm]{display:flex;flex-direction:row}._summary_1cz0s_78{font-size:var(--dsc-summary-font-size);font-weight:400;line-height:1.375;color:var(--ds-color-neutral-text-subtle);display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;margin:0}._footer_1cz0s_92{width:100%;padding-right:2rem}._seenBy_1cz0s_97{position:absolute;right:0;bottom:0;margin:.25rem -1rem}._heading_1cz0s_104{padding-right:1.25rem;display:inline-flex;align-items:center;column-gap:.5em}._title_1cz0s_27{font-size:var(--dsc-title-font-size);font-weight:var(--dsc-title-font-weight);line-height:var(--dsc-title-line-height);margin:0}._title_1cz0s_27[data-size=md],._title_1cz0s_27[data-size=lg],._title_1cz0s_27[data-size=xl]{display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._item_ytjib_1{padding:0;border:0;background-color:transparent;color:inherit;font:inherit;text-align:inherit;text-decoration:none;line-height:normal;-webkit-font-smoothing:inherit;-moz-osx-font-smoothing:inherit;-webkit-appearance:none;-moz-appearance:none;appearance:none;-webkit-user-select:none;user-select:none}._item_ytjib_1{border:1px;border-radius:2px;color:var(--ds-color-text-subtle);display:inline-flex;align-items:center;column-gap:.25em;white-space:nowrap;text-decoration:none}._reverse_ytjib_27{flex-direction:row-reverse}._item_ytjib_1 strong{font-weight:500;color:var(--ds-color-text-default)}button._item_ytjib_1:hover,a._item_ytjib_1:hover,button._item_ytjib_1:hover strong,a._item_ytjib_1:hover strong{color:var(--ds-color-base-hover);cursor:pointer}button._item_ytjib_1:hover,a._item_ytjib_1:hover{text-decoration:underline}._item_ytjib_1[data-size=xs]{font-size:.875rem;height:1.5rem}._item_ytjib_1[data-size=sm]{font-size:1rem}._item_ytjib_1[data-size=md]{font-size:1.125rem}._item_ytjib_1[data-variant=text]{border-color:transparent;padding-left:0;padding-right:0}._item_ytjib_1[data-variant=outline]{border-color:var(--ds-color-border-subtle);border-style:solid}._item_ytjib_1[data-variant=rounded]{border-color:var(--ds-color-border-subtle);border-style:solid;border-radius:.75rem}._item_ytjib_1[data-variant=dotted]{border-color:var(--ds-color-base-hover);border-style:dashed}._item_ytjib_1[data-variant=solid]{border-color:var(--ds-color-base-hover);background-color:var(--ds-color-base-hover);color:var(--ds-color-base-contrast-default)}._item_ytjib_1[data-variant=rounded],._item_ytjib_1[data-variant=outline],._item_ytjib_1[data-variant=dotted],._item_ytjib_1[data-variant=solid]{padding:0 .25em}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._media_13vkl_1{display:inline-flex;align-items:center;justify-content:center}._icon_13vkl_7{font-size:1.25em}._icon_13vkl_7:hover{color:var(--color-primary)}._avatarGroup_13vkl_15{font-size:1.25rem}
|
|
@@ -1,66 +1,69 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
3
|
-
import { c as
|
|
2
|
+
import { jsxs as v, jsx as s } from "react/jsx-runtime";
|
|
3
|
+
import { c as O } from "../../index-L8X2o7IH.js";
|
|
4
4
|
import * as a from "react";
|
|
5
|
-
import { forwardRef as
|
|
6
|
-
import { IconButton as
|
|
7
|
-
import { useClickOutside as
|
|
8
|
-
import { DropdownBase as
|
|
9
|
-
import { MenuItems as
|
|
10
|
-
import { useRootContext as
|
|
5
|
+
import { forwardRef as b, useRef as h, useMemo as w } from "react";
|
|
6
|
+
import { IconButton as y } from "../Button/IconButton.js";
|
|
7
|
+
import { useClickOutside as I } from "../../hooks/useClickOutside.js";
|
|
8
|
+
import { DropdownBase as j } from "../Dropdown/DropdownBase.js";
|
|
9
|
+
import { MenuItems as C } from "../Menu/MenuItems.js";
|
|
10
|
+
import { useRootContext as _ } from "../RootProvider/RootProvider.js";
|
|
11
11
|
import "../Searchbar/AutocompleteBase.js";
|
|
12
12
|
import "../Snackbar/useSnackbar.js";
|
|
13
|
-
import { u as
|
|
14
|
-
import '../../assets/ContextMenu.css';var
|
|
13
|
+
import { u as R } from "../../useId-BVFxCjkq.js";
|
|
14
|
+
import '../../assets/ContextMenu.css';var E = function(e, l) {
|
|
15
15
|
var r = {};
|
|
16
|
-
for (var
|
|
17
|
-
if (
|
|
18
|
-
for (var o = 0,
|
|
19
|
-
|
|
16
|
+
for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && l.indexOf(t) < 0 && (r[t] = e[t]);
|
|
17
|
+
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
18
|
+
for (var o = 0, t = Object.getOwnPropertySymbols(e); o < t.length; o++)
|
|
19
|
+
l.indexOf(t[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[o]) && (r[t[o]] = e[t[o]]);
|
|
20
20
|
return r;
|
|
21
21
|
};
|
|
22
|
-
const
|
|
23
|
-
var { title: r, titleId:
|
|
24
|
-
let
|
|
25
|
-
return
|
|
22
|
+
const M = b((e, l) => {
|
|
23
|
+
var { title: r, titleId: t } = e, o = E(e, ["title", "titleId"]);
|
|
24
|
+
let n = R();
|
|
25
|
+
return n = r ? t || "title-" + n : void 0, a.createElement(
|
|
26
26
|
"svg",
|
|
27
|
-
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref:
|
|
28
|
-
r ? a.createElement("title", { id:
|
|
27
|
+
Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", fill: "none", viewBox: "0 0 24 24", focusable: !1, role: "img", ref: l, "aria-labelledby": n }, o),
|
|
28
|
+
r ? a.createElement("title", { id: n }, r) : null,
|
|
29
29
|
a.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M6 10.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3m4.5 1.5a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0m6 0a1.5 1.5 0 1 1 3 0 1.5 1.5 0 0 1-3 0", clipRule: "evenodd" })
|
|
30
30
|
);
|
|
31
|
-
}),
|
|
32
|
-
toggle:
|
|
33
|
-
},
|
|
34
|
-
id:
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
31
|
+
}), k = "_toggle_nol5i_1", B = {
|
|
32
|
+
toggle: k
|
|
33
|
+
}, F = ({
|
|
34
|
+
id: e = "context-menu",
|
|
35
|
+
ariaLabel: l,
|
|
36
|
+
placement: r = "right",
|
|
37
|
+
groups: t = {},
|
|
38
|
+
className: o,
|
|
39
|
+
items: n
|
|
39
40
|
}) => {
|
|
40
|
-
const { currentId:
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
const { currentId: d, toggleId: m, closeAll: u } = _(), f = h(null), g = () => m(e), c = d === e;
|
|
42
|
+
I(f, () => {
|
|
43
|
+
c && m(e);
|
|
44
|
+
});
|
|
45
|
+
const x = w(() => n.map((i) => ({
|
|
43
46
|
...i,
|
|
44
47
|
onClick: () => {
|
|
45
|
-
var
|
|
46
|
-
(
|
|
48
|
+
var p;
|
|
49
|
+
(p = i.onClick) == null || p.call(i), u();
|
|
47
50
|
}
|
|
48
|
-
})), [
|
|
49
|
-
return /* @__PURE__ */
|
|
51
|
+
})), [n, u]);
|
|
52
|
+
return /* @__PURE__ */ v("div", { className: O(B.toggle, o), "data-color": "neutral", ref: f, children: [
|
|
50
53
|
/* @__PURE__ */ s(
|
|
51
|
-
|
|
54
|
+
y,
|
|
52
55
|
{
|
|
53
56
|
size: "xs",
|
|
54
57
|
rounded: !0,
|
|
55
|
-
icon:
|
|
58
|
+
icon: M,
|
|
56
59
|
variant: "text",
|
|
57
|
-
onClick:
|
|
58
|
-
iconAltText: `Open ${
|
|
60
|
+
onClick: g,
|
|
61
|
+
iconAltText: l || `Open ${e}`
|
|
59
62
|
}
|
|
60
63
|
),
|
|
61
|
-
/* @__PURE__ */ s(
|
|
64
|
+
c && /* @__PURE__ */ s(j, { placement: r, open: c, children: /* @__PURE__ */ s(C, { groups: t, items: x }) })
|
|
62
65
|
] });
|
|
63
66
|
};
|
|
64
67
|
export {
|
|
65
|
-
|
|
68
|
+
F as ContextMenu
|
|
66
69
|
};
|
|
@@ -2,16 +2,16 @@ import { jsxs as r, jsx as o, Fragment as f } from "react/jsx-runtime";
|
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "../RootProvider/RootProvider.js";
|
|
5
|
-
import { DialogLayout as
|
|
6
|
-
import { DialogHeader as
|
|
7
|
-
import { DialogBody as
|
|
8
|
-
import { DialogSection as
|
|
9
|
-
import { DialogContact as
|
|
10
|
-
import { DialogHistory as
|
|
5
|
+
import { DialogLayout as d } from "./DialogLayout.js";
|
|
6
|
+
import { DialogHeader as j } from "./DialogHeader.js";
|
|
7
|
+
import { DialogBody as u } from "./DialogBody.js";
|
|
8
|
+
import { DialogSection as y } from "./DialogSection.js";
|
|
9
|
+
import { DialogContact as H } from "./DialogContact.js";
|
|
10
|
+
import { DialogHistory as h } from "./DialogHistory.js";
|
|
11
11
|
import { Divider as g } from "../Divider/Divider.js";
|
|
12
12
|
import "../Searchbar/AutocompleteBase.js";
|
|
13
13
|
import "../Snackbar/useSnackbar.js";
|
|
14
|
-
const
|
|
14
|
+
const G = ({
|
|
15
15
|
loading: m,
|
|
16
16
|
backButton: l,
|
|
17
17
|
contextMenu: c,
|
|
@@ -20,22 +20,23 @@ const E = ({
|
|
|
20
20
|
title: i,
|
|
21
21
|
history: t,
|
|
22
22
|
additionalInfo: p,
|
|
23
|
+
seenByLog: x,
|
|
23
24
|
contact: e,
|
|
24
25
|
children: D,
|
|
25
26
|
...a
|
|
26
|
-
}) => /* @__PURE__ */ r(
|
|
27
|
-
i && /* @__PURE__ */ o(
|
|
28
|
-
D && /* @__PURE__ */ o(
|
|
29
|
-
t && /* @__PURE__ */ o(
|
|
27
|
+
}) => /* @__PURE__ */ r(d, { backButton: l, contextMenu: c, pageMenu: n, children: [
|
|
28
|
+
i && /* @__PURE__ */ o(j, { loading: m, ...a, title: i }),
|
|
29
|
+
D && /* @__PURE__ */ o(u, { loading: m, sender: s, seenByLog: x, ...a, children: D }),
|
|
30
|
+
t && /* @__PURE__ */ o(h, { ...t }),
|
|
30
31
|
p && /* @__PURE__ */ r(f, { children: [
|
|
31
32
|
/* @__PURE__ */ o(g, {}),
|
|
32
|
-
/* @__PURE__ */ o(
|
|
33
|
+
/* @__PURE__ */ o(y, { ...p })
|
|
33
34
|
] }),
|
|
34
35
|
e && /* @__PURE__ */ r(f, { children: [
|
|
35
36
|
/* @__PURE__ */ o(g, {}),
|
|
36
|
-
/* @__PURE__ */ o(
|
|
37
|
+
/* @__PURE__ */ o(H, { ...e })
|
|
37
38
|
] })
|
|
38
39
|
] });
|
|
39
40
|
export {
|
|
40
|
-
|
|
41
|
+
G as Dialog
|
|
41
42
|
};
|
|
@@ -1,24 +1,31 @@
|
|
|
1
|
-
import { jsxs as t, jsx as r, Fragment as
|
|
1
|
+
import { jsxs as t, jsx as r, Fragment as c } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "../RootProvider/RootProvider.js";
|
|
5
|
-
import { Timeline as
|
|
5
|
+
import { Timeline as h } from "../Timeline/Timeline.js";
|
|
6
6
|
import { TimelineSection as n } from "../Timeline/TimelineSection.js";
|
|
7
|
-
import { TimelineHeader as
|
|
8
|
-
import { Typography as
|
|
9
|
-
import { SeenByLog as
|
|
7
|
+
import { TimelineHeader as e } from "../Timeline/TimelineHeader.js";
|
|
8
|
+
import { Typography as f } from "../Typography/Typography.js";
|
|
9
|
+
import { SeenByLog as T } from "./SeenByLog.js";
|
|
10
10
|
import "../Searchbar/AutocompleteBase.js";
|
|
11
11
|
import "../Snackbar/useSnackbar.js";
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
const D = ({
|
|
13
|
+
loading: o,
|
|
14
|
+
sender: m,
|
|
15
|
+
recipient: i,
|
|
16
|
+
recipientLabel: l = "to",
|
|
17
|
+
children: a,
|
|
18
|
+
seenByLog: p
|
|
19
|
+
}) => /* @__PURE__ */ t(h, { children: [
|
|
20
|
+
/* @__PURE__ */ t(e, { loading: o, icon: m, children: [
|
|
21
|
+
/* @__PURE__ */ r("strong", { children: m == null ? void 0 : m.name }),
|
|
15
22
|
l + " " + (i == null ? void 0 : i.name)
|
|
16
23
|
] }),
|
|
17
|
-
/* @__PURE__ */ r(n, { loading:
|
|
18
|
-
/* @__PURE__ */ r(
|
|
19
|
-
p && /* @__PURE__ */ r(
|
|
24
|
+
/* @__PURE__ */ r(n, { loading: o, spacing: 4, color: o ? "neutral" : void 0, children: !o && /* @__PURE__ */ t(c, { children: [
|
|
25
|
+
/* @__PURE__ */ r(f, { maxWidth: "60ch", style: { marginTop: "0.5em" }, children: a }),
|
|
26
|
+
p && /* @__PURE__ */ r(T, { ...p, collapsible: !0 })
|
|
20
27
|
] }) })
|
|
21
28
|
] });
|
|
22
29
|
export {
|
|
23
|
-
|
|
30
|
+
D as DialogBody
|
|
24
31
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { jsxs as t, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import { Badge as
|
|
4
|
+
import { Badge as h } from "../Badge/Badge.js";
|
|
5
5
|
import "../RootProvider/RootProvider.js";
|
|
6
|
-
import { Heading as
|
|
7
|
-
import { DialogMetadata as
|
|
6
|
+
import { Heading as x } from "../Typography/Heading.js";
|
|
7
|
+
import { DialogMetadata as j } from "./DialogMetadata.js";
|
|
8
8
|
import "../Searchbar/AutocompleteBase.js";
|
|
9
9
|
import "../Snackbar/useSnackbar.js";
|
|
10
|
-
import { Flex as
|
|
11
|
-
import { Section as
|
|
12
|
-
const
|
|
10
|
+
import { Flex as D } from "../Page/Flex.js";
|
|
11
|
+
import { Section as H } from "../Page/Section.js";
|
|
12
|
+
const A = ({
|
|
13
13
|
loading: i,
|
|
14
14
|
title: e,
|
|
15
15
|
badge: o,
|
|
@@ -19,16 +19,17 @@ const y = ({
|
|
|
19
19
|
receivedCount: n,
|
|
20
20
|
updatedAt: l,
|
|
21
21
|
updatedAtLabel: s,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
attachmentsCount: c,
|
|
23
|
+
dueAt: d,
|
|
24
|
+
dueAtLabel: f,
|
|
25
|
+
activityLog: g
|
|
26
|
+
}) => /* @__PURE__ */ t(H, { as: "header", spacing: 3, align: "start", children: [
|
|
27
|
+
/* @__PURE__ */ r(x, { loading: i, size: "xl", children: /* @__PURE__ */ t(D, { align: "center", children: [
|
|
27
28
|
/* @__PURE__ */ r("span", { children: e }),
|
|
28
|
-
o && /* @__PURE__ */ r(
|
|
29
|
+
o && /* @__PURE__ */ r(h, { ...o })
|
|
29
30
|
] }) }),
|
|
30
31
|
/* @__PURE__ */ r(
|
|
31
|
-
|
|
32
|
+
j,
|
|
32
33
|
{
|
|
33
34
|
loading: i,
|
|
34
35
|
status: m,
|
|
@@ -37,12 +38,13 @@ const y = ({
|
|
|
37
38
|
receivedCount: n,
|
|
38
39
|
updatedAt: l,
|
|
39
40
|
updatedAtLabel: s,
|
|
40
|
-
dueAt:
|
|
41
|
-
dueAtLabel:
|
|
42
|
-
|
|
41
|
+
dueAt: d,
|
|
42
|
+
dueAtLabel: f,
|
|
43
|
+
attachmentsCount: c,
|
|
44
|
+
activityLog: g
|
|
43
45
|
}
|
|
44
46
|
)
|
|
45
47
|
] });
|
|
46
48
|
export {
|
|
47
|
-
|
|
49
|
+
A as DialogHeader
|
|
48
50
|
};
|
|
@@ -1,154 +1,152 @@
|
|
|
1
|
-
import { jsx as a, jsxs as
|
|
1
|
+
import { jsx as a, jsxs as n } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
|
-
import { Skeleton as
|
|
5
|
-
import { Badge as
|
|
4
|
+
import { Skeleton as G } from "../Skeleton/Skeleton.js";
|
|
5
|
+
import { Badge as J } from "../Badge/Badge.js";
|
|
6
6
|
import "../RootProvider/RootProvider.js";
|
|
7
|
-
import { Heading as
|
|
8
|
-
import { DialogMetadata as
|
|
9
|
-
import { DialogByline as
|
|
10
|
-
import {
|
|
7
|
+
import { Heading as K } from "../Typography/Heading.js";
|
|
8
|
+
import { DialogMetadata as z } from "./DialogMetadata.js";
|
|
9
|
+
import { DialogByline as O } from "./DialogByline.js";
|
|
10
|
+
import { MetaItem as P } from "../Metadata/MetaItem.js";
|
|
11
11
|
import "../Searchbar/AutocompleteBase.js";
|
|
12
|
-
import { ListItemLabel as
|
|
13
|
-
import { ListItem as
|
|
12
|
+
import { ListItemLabel as Q } from "../List/ListItemLabel.js";
|
|
13
|
+
import { ListItem as B } from "../List/ListItem.js";
|
|
14
14
|
import "../Snackbar/useSnackbar.js";
|
|
15
|
-
import '../../assets/DialogListItem.css';const
|
|
16
|
-
border:
|
|
17
|
-
title:
|
|
18
|
-
controls:
|
|
19
|
-
header:
|
|
20
|
-
summary:
|
|
21
|
-
footer:
|
|
22
|
-
seenBy:
|
|
23
|
-
heading:
|
|
24
|
-
},
|
|
15
|
+
import '../../assets/DialogListItem.css';const T = "_border_1cz0s_1", U = "_title_1cz0s_27", W = "_controls_1cz0s_58", X = "_header_1cz0s_65", Y = "_summary_1cz0s_78", Z = "_footer_1cz0s_92", $ = "_seenBy_1cz0s_97", A = "_heading_1cz0s_104", e = {
|
|
16
|
+
border: T,
|
|
17
|
+
title: U,
|
|
18
|
+
controls: W,
|
|
19
|
+
header: X,
|
|
20
|
+
summary: Y,
|
|
21
|
+
footer: Z,
|
|
22
|
+
seenBy: $,
|
|
23
|
+
heading: A
|
|
24
|
+
}, fa = ({
|
|
25
25
|
size: r = "xl",
|
|
26
|
-
state:
|
|
26
|
+
state: u = "normal",
|
|
27
27
|
loading: o,
|
|
28
|
-
controls:
|
|
29
|
-
select:
|
|
30
|
-
selected:
|
|
28
|
+
controls: g,
|
|
29
|
+
select: aa,
|
|
30
|
+
selected: m,
|
|
31
31
|
status: t,
|
|
32
|
-
sender:
|
|
33
|
-
recipient:
|
|
34
|
-
recipientLabel:
|
|
35
|
-
grouped:
|
|
36
|
-
updatedAt:
|
|
32
|
+
sender: l,
|
|
33
|
+
recipient: I,
|
|
34
|
+
recipientLabel: D = "to",
|
|
35
|
+
grouped: L = !1,
|
|
36
|
+
updatedAt: d,
|
|
37
37
|
updatedAtLabel: _,
|
|
38
38
|
archived: h,
|
|
39
|
-
archivedAt:
|
|
40
|
-
archivedAtLabel:
|
|
41
|
-
trashed:
|
|
42
|
-
trashedAt:
|
|
43
|
-
trashedAtLabel:
|
|
44
|
-
badge:
|
|
45
|
-
dueAt:
|
|
39
|
+
archivedAt: j,
|
|
40
|
+
archivedAtLabel: w,
|
|
41
|
+
trashed: p,
|
|
42
|
+
trashedAt: M,
|
|
43
|
+
trashedAtLabel: k,
|
|
44
|
+
badge: f,
|
|
45
|
+
dueAt: H,
|
|
46
46
|
dueAtLabel: R,
|
|
47
|
-
unread:
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
title: m,
|
|
47
|
+
unread: c,
|
|
48
|
+
seenByLog: b,
|
|
49
|
+
draftsLabel: S,
|
|
50
|
+
sentCount: V,
|
|
51
|
+
receivedCount: q,
|
|
52
|
+
attachmentsCount: C,
|
|
53
|
+
attachmentsLabel: E,
|
|
54
|
+
title: s,
|
|
56
55
|
description: v,
|
|
57
|
-
summary:
|
|
58
|
-
variant:
|
|
56
|
+
summary: i,
|
|
57
|
+
variant: F = "default",
|
|
59
58
|
id: x,
|
|
60
59
|
...N
|
|
61
60
|
}) => {
|
|
62
|
-
const y =
|
|
61
|
+
const y = m ? "tinted" : F;
|
|
63
62
|
return r === "xs" || r === "sm" ? /* @__PURE__ */ a(
|
|
64
|
-
|
|
63
|
+
B,
|
|
65
64
|
{
|
|
66
65
|
...N,
|
|
67
66
|
id: x,
|
|
68
67
|
size: r,
|
|
69
|
-
selected:
|
|
68
|
+
selected: m,
|
|
70
69
|
variant: y,
|
|
71
|
-
ariaLabel:
|
|
70
|
+
ariaLabel: s,
|
|
72
71
|
label: /* @__PURE__ */ a(
|
|
73
72
|
"div",
|
|
74
73
|
{
|
|
75
74
|
className: e.border,
|
|
76
75
|
"data-status": t == null ? void 0 : t.value,
|
|
77
|
-
"data-selected":
|
|
76
|
+
"data-selected": m,
|
|
78
77
|
"data-size": r,
|
|
79
|
-
"data-unread":
|
|
78
|
+
"data-unread": c,
|
|
80
79
|
"data-archived": h,
|
|
81
|
-
"data-trashed":
|
|
80
|
+
"data-trashed": p,
|
|
82
81
|
"data-loading": o,
|
|
83
|
-
children: /* @__PURE__ */ a(
|
|
82
|
+
children: /* @__PURE__ */ a(Q, { loading: o, size: r, title: s, description: i || v })
|
|
84
83
|
}
|
|
85
84
|
),
|
|
86
|
-
badge: /* @__PURE__ */ a(
|
|
87
|
-
title:
|
|
85
|
+
badge: /* @__PURE__ */ a(z, { loading: o, sender: l, updatedAt: d, updatedAtLabel: _ }),
|
|
86
|
+
title: s
|
|
88
87
|
}
|
|
89
88
|
) : /* @__PURE__ */ a(
|
|
90
|
-
|
|
89
|
+
B,
|
|
91
90
|
{
|
|
92
91
|
...N,
|
|
93
92
|
id: x,
|
|
94
93
|
size: r,
|
|
95
|
-
selected:
|
|
94
|
+
selected: m,
|
|
96
95
|
variant: y,
|
|
97
|
-
controls: /* @__PURE__ */ a("div", { className: e.controls, children:
|
|
98
|
-
title:
|
|
99
|
-
label: /* @__PURE__ */
|
|
96
|
+
controls: /* @__PURE__ */ a("div", { className: e.controls, children: g }),
|
|
97
|
+
title: s,
|
|
98
|
+
label: /* @__PURE__ */ n(
|
|
100
99
|
"div",
|
|
101
100
|
{
|
|
102
101
|
className: e.border,
|
|
103
|
-
"data-selected":
|
|
102
|
+
"data-selected": m,
|
|
104
103
|
"data-status": t == null ? void 0 : t.value,
|
|
105
104
|
"data-size": r,
|
|
106
|
-
"data-unread":
|
|
105
|
+
"data-unread": c,
|
|
107
106
|
"data-archived": h,
|
|
108
|
-
"data-trashed":
|
|
107
|
+
"data-trashed": p,
|
|
109
108
|
"data-loading": o,
|
|
110
109
|
children: [
|
|
111
|
-
/* @__PURE__ */
|
|
112
|
-
/* @__PURE__ */
|
|
113
|
-
/* @__PURE__ */ a(
|
|
114
|
-
|
|
110
|
+
/* @__PURE__ */ n("header", { className: e.header, "data-size": r, children: [
|
|
111
|
+
/* @__PURE__ */ n("span", { className: e.heading, children: [
|
|
112
|
+
/* @__PURE__ */ a(K, { weight: c ? "bold" : "normal", loading: o, maxRows: 2, className: e.title, children: s }),
|
|
113
|
+
f && /* @__PURE__ */ a(J, { variant: "tinted", size: "xs", ...f })
|
|
115
114
|
] }),
|
|
116
115
|
/* @__PURE__ */ a(
|
|
117
|
-
|
|
116
|
+
O,
|
|
118
117
|
{
|
|
119
118
|
size: "xs",
|
|
120
119
|
loading: o,
|
|
121
|
-
sender:
|
|
122
|
-
recipient:
|
|
123
|
-
recipientLabel:
|
|
124
|
-
grouped:
|
|
120
|
+
sender: l,
|
|
121
|
+
recipient: I,
|
|
122
|
+
recipientLabel: D,
|
|
123
|
+
grouped: L
|
|
125
124
|
}
|
|
126
125
|
),
|
|
127
|
-
r === "xl" &&
|
|
126
|
+
r === "xl" && i && /* @__PURE__ */ a(G, { loading: o, children: /* @__PURE__ */ a("p", { "data-size": r, className: e.summary, children: i || v }) })
|
|
128
127
|
] }),
|
|
129
128
|
/* @__PURE__ */ a(
|
|
130
|
-
|
|
129
|
+
z,
|
|
131
130
|
{
|
|
132
131
|
className: e.footer,
|
|
133
132
|
loading: o,
|
|
134
133
|
status: t,
|
|
135
|
-
draftsLabel:
|
|
136
|
-
sentCount:
|
|
137
|
-
receivedCount:
|
|
138
|
-
updatedAt:
|
|
134
|
+
draftsLabel: S,
|
|
135
|
+
sentCount: V,
|
|
136
|
+
receivedCount: q,
|
|
137
|
+
updatedAt: d,
|
|
139
138
|
updatedAtLabel: _,
|
|
140
|
-
archivedAt:
|
|
141
|
-
archivedAtLabel:
|
|
142
|
-
trashedAt:
|
|
143
|
-
trashedAtLabel:
|
|
144
|
-
dueAt:
|
|
139
|
+
archivedAt: j,
|
|
140
|
+
archivedAtLabel: w,
|
|
141
|
+
trashedAt: M,
|
|
142
|
+
trashedAtLabel: k,
|
|
143
|
+
dueAt: H,
|
|
145
144
|
dueAtLabel: R,
|
|
146
|
-
attachmentsCount:
|
|
147
|
-
attachmentsLabel:
|
|
148
|
-
seenBy: V
|
|
145
|
+
attachmentsCount: C,
|
|
146
|
+
attachmentsLabel: E
|
|
149
147
|
}
|
|
150
148
|
),
|
|
151
|
-
|
|
149
|
+
b && /* @__PURE__ */ a(P, { className: e.seenBy, icon: { items: b.items } })
|
|
152
150
|
]
|
|
153
151
|
}
|
|
154
152
|
)
|
|
@@ -156,5 +154,5 @@ import '../../assets/DialogListItem.css';const W = "_border_1n3p9_1", X = "_titl
|
|
|
156
154
|
);
|
|
157
155
|
};
|
|
158
156
|
export {
|
|
159
|
-
|
|
157
|
+
fa as DialogListItem
|
|
160
158
|
};
|