@altinn/altinn-components 0.30.3 → 0.31.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/dist/assets/Badge.css +1 -1
- package/dist/assets/DialogListItem.css +1 -1
- package/dist/assets/DrawerBase.css +1 -1
- package/dist/assets/DrawerOrDropdown.css +1 -0
- package/dist/assets/DropdownBase.css +1 -1
- package/dist/assets/ListItemHeader.css +1 -1
- package/dist/assets/MenuItemBase.css +1 -1
- package/dist/assets/Transmission.css +1 -0
- package/dist/components/Account/AccountList.js +6 -6
- package/dist/components/Account/AccountListItem.js +1 -1
- package/dist/components/Account/AccountListItemControls.js +1 -1
- package/dist/components/Badge/Badge.js +12 -11
- package/dist/components/Bookmarks/BookmarksListItem.js +1 -1
- package/dist/components/Bookmarks/BookmarksSection.js +1 -1
- package/dist/components/Dialog/DialogActivity.js +6 -6
- package/dist/components/Dialog/DialogByline.js +1 -1
- package/dist/components/Dialog/DialogHeader.js +19 -13
- package/dist/components/Dialog/DialogHistory.js +22 -21
- package/dist/components/Dialog/DialogHistoryItem.js +6 -39
- package/dist/components/Dialog/DialogHistorySegment.js +11 -50
- package/dist/components/Dialog/DialogListGroup.js +4 -4
- package/dist/components/Dialog/DialogListItem.js +112 -98
- package/dist/components/Dialog/DialogMetadata.js +102 -85
- package/dist/components/Dialog/SeenByLog.js +4 -4
- package/dist/components/Dialog/index.js +8 -10
- package/dist/components/Dropdown/DrawerBase.js +15 -17
- package/dist/components/Dropdown/DrawerOrDropdown.js +20 -19
- package/dist/components/Dropdown/DropdownBase.js +1 -1
- package/dist/components/GlobalMenu/GlobalMenu.js +44 -43
- package/dist/components/GlobalMenu/GlobalMenuBase.js +7 -7
- package/dist/components/Header/Header.js +26 -26
- package/dist/components/List/List.js +1 -1
- package/dist/components/List/ListItemHeader.js +56 -56
- package/dist/components/Menu/MenuItemBase.js +15 -15
- package/dist/components/Menu/MenuOption.js +11 -12
- package/dist/components/Search/SearchItem.js +2 -2
- package/dist/components/Searchbar/AutocompleteItem.js +1 -1
- package/dist/components/Searchbar/SuggestListItem.js +1 -1
- package/dist/components/Settings/SettingsItem.js +7 -7
- package/dist/components/Settings/SettingsList.js +1 -1
- package/dist/components/Transmission/Transmission.js +53 -48
- package/dist/components/Transmission/TransmissionList.js +2 -2
- package/dist/components/Transmission/TransmissionType.js +28 -0
- package/dist/components/Transmission/index.js +5 -2
- package/dist/components/index.js +345 -344
- package/dist/index.js +354 -353
- package/dist/types/lib/components/Badge/Badge.d.ts +1 -1
- package/dist/types/lib/components/Dialog/DialogHeader.d.ts +9 -3
- package/dist/types/lib/components/Dialog/DialogHeader.stories.d.ts +1 -1
- package/dist/types/lib/components/Dialog/DialogHistory.d.ts +2 -1
- package/dist/types/lib/components/Dialog/DialogHistory.stories.d.ts +3 -7
- package/dist/types/lib/components/Dialog/DialogHistoryItem.d.ts +4 -7
- package/dist/types/lib/components/Dialog/DialogHistorySegment.d.ts +7 -8
- package/dist/types/lib/components/Dialog/DialogListItem.d.ts +13 -35
- package/dist/types/lib/components/Dialog/DialogListItem.stories.d.ts +252 -28
- package/dist/types/lib/components/Dialog/DialogMetadata.d.ts +7 -5
- package/dist/types/lib/components/Dialog/DialogMetadata.stories.d.ts +1 -1
- package/dist/types/lib/components/Dialog/index.d.ts +0 -1
- package/dist/types/lib/components/Dropdown/DrawerBase.d.ts +1 -3
- package/dist/types/lib/components/Forms/Radio.stories.d.ts +1 -0
- package/dist/types/lib/components/GlobalMenu/GlobalMenu.d.ts +2 -1
- package/dist/types/lib/components/GlobalMenu/GlobalMenu.stories.d.ts +2 -1
- package/dist/types/lib/components/GlobalMenu/GlobalMenuBase.d.ts +3 -3
- package/dist/types/lib/components/Transmission/Transmission.d.ts +8 -5
- package/dist/types/lib/components/Transmission/Transmission.stories.d.ts +5 -3
- package/dist/types/lib/components/Transmission/TransmissionList.stories.d.ts +16 -0
- package/dist/types/lib/components/Transmission/TransmissionType.d.ts +22 -0
- package/dist/types/lib/components/Transmission/index.d.ts +1 -0
- package/dist/types/lib/stories/Dialog/Dialog.stories.d.ts +17 -0
- package/dist/types/lib/stories/Inbox.stories.d.ts +3 -6
- package/package.json +2 -2
- package/dist/ArrowDown-DtiYfZHZ.js +0 -25
- package/dist/assets/DialogHeading.css +0 -1
- package/dist/components/Dialog/DialogHeading.js +0 -18
- package/dist/types/lib/components/Dialog/DialogHeading.d.ts +0 -19
- package/dist/types/lib/components/Dialog/DialogLayout.stories.d.ts +0 -20
|
@@ -1,138 +1,152 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as a, jsxs as s } from "react/jsx-runtime";
|
|
2
2
|
import "../../index-L8X2o7IH.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import { Skeleton as K } from "../Skeleton/Skeleton.js";
|
|
5
|
+
import { Badge as O } from "../Badge/Badge.js";
|
|
5
6
|
import "../RootProvider/RootProvider.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { DialogHeading as Q } from "./DialogHeading.js";
|
|
11
|
-
import { SeenByLogButton as R } from "./SeenByLogButton.js";
|
|
7
|
+
import { Heading as P } from "../Typography/Heading.js";
|
|
8
|
+
import { DialogMetadata as y } from "./DialogMetadata.js";
|
|
9
|
+
import { DialogByline as Q } from "./DialogByline.js";
|
|
10
|
+
import { SeenByLogButton as T } from "./SeenByLogButton.js";
|
|
12
11
|
import "../Searchbar/AutocompleteBase.js";
|
|
12
|
+
import { ListItemLabel as U } from "../List/ListItemLabel.js";
|
|
13
|
+
import { ListItem as B } from "../List/ListItem.js";
|
|
13
14
|
import "../Snackbar/useSnackbar.js";
|
|
14
|
-
import '../../assets/DialogListItem.css';const
|
|
15
|
-
border:
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
15
|
+
import '../../assets/DialogListItem.css';const W = "_border_1ij7d_1", X = "_title_1ij7d_23", Y = "_controls_1ij7d_54", Z = "_header_1ij7d_61", $ = "_summary_1ij7d_74", u = "_footer_1ij7d_88", A = "_seenBy_1ij7d_92", z = "_heading_1ij7d_99", e = {
|
|
16
|
+
border: W,
|
|
17
|
+
title: X,
|
|
18
|
+
controls: Y,
|
|
19
|
+
header: Z,
|
|
20
|
+
summary: $,
|
|
21
|
+
footer: u,
|
|
22
|
+
seenBy: A,
|
|
23
|
+
heading: z
|
|
24
|
+
}, ba = ({
|
|
25
|
+
size: r = "xl",
|
|
26
|
+
state: aa = "normal",
|
|
24
27
|
loading: o,
|
|
25
|
-
controls:
|
|
26
|
-
select:
|
|
27
|
-
selected:
|
|
28
|
-
status:
|
|
29
|
-
sender:
|
|
30
|
-
recipient:
|
|
31
|
-
recipientLabel:
|
|
32
|
-
grouped:
|
|
33
|
-
updatedAt:
|
|
34
|
-
updatedAtLabel:
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
28
|
+
controls: g,
|
|
29
|
+
select: ra,
|
|
30
|
+
selected: m,
|
|
31
|
+
status: t,
|
|
32
|
+
sender: c,
|
|
33
|
+
recipient: L,
|
|
34
|
+
recipientLabel: D = "to",
|
|
35
|
+
grouped: I = !1,
|
|
36
|
+
updatedAt: _,
|
|
37
|
+
updatedAtLabel: h,
|
|
38
|
+
archived: p,
|
|
39
|
+
archivedAt: w,
|
|
40
|
+
archivedAtLabel: S,
|
|
41
|
+
trashed: f,
|
|
42
|
+
trashedAt: k,
|
|
38
43
|
trashedAtLabel: H,
|
|
39
|
-
badge:
|
|
40
|
-
dueAt:
|
|
41
|
-
dueAtLabel:
|
|
42
|
-
|
|
43
|
-
seenBy:
|
|
44
|
-
seenByLog:
|
|
45
|
-
draftsLabel:
|
|
44
|
+
badge: b,
|
|
45
|
+
dueAt: M,
|
|
46
|
+
dueAtLabel: R,
|
|
47
|
+
unread: d,
|
|
48
|
+
seenBy: V,
|
|
49
|
+
seenByLog: l,
|
|
50
|
+
draftsLabel: q,
|
|
46
51
|
sentCount: C,
|
|
47
52
|
receivedCount: E,
|
|
48
53
|
attachmentsCount: F,
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
54
|
+
attachmentsLabel: G,
|
|
55
|
+
title: i,
|
|
56
|
+
description: j,
|
|
57
|
+
summary: n,
|
|
58
|
+
variant: J = "default",
|
|
59
|
+
id: v,
|
|
60
|
+
...x
|
|
55
61
|
}) => {
|
|
56
|
-
const
|
|
57
|
-
return
|
|
58
|
-
|
|
62
|
+
const N = m ? "tinted" : J;
|
|
63
|
+
return r === "xs" || r === "sm" ? /* @__PURE__ */ a(
|
|
64
|
+
B,
|
|
59
65
|
{
|
|
60
|
-
...
|
|
61
|
-
id:
|
|
62
|
-
size:
|
|
63
|
-
selected:
|
|
64
|
-
variant:
|
|
65
|
-
ariaLabel:
|
|
66
|
-
label: /* @__PURE__ */
|
|
66
|
+
...x,
|
|
67
|
+
id: v,
|
|
68
|
+
size: r,
|
|
69
|
+
selected: m,
|
|
70
|
+
variant: N,
|
|
71
|
+
ariaLabel: i,
|
|
72
|
+
label: /* @__PURE__ */ a(
|
|
67
73
|
"div",
|
|
68
74
|
{
|
|
69
|
-
className:
|
|
70
|
-
"data-status":
|
|
71
|
-
"data-size":
|
|
72
|
-
"data-
|
|
75
|
+
className: e.border,
|
|
76
|
+
"data-status": t == null ? void 0 : t.value,
|
|
77
|
+
"data-size": r,
|
|
78
|
+
"data-unread": d,
|
|
79
|
+
"data-archived": p,
|
|
80
|
+
"data-trashed": f,
|
|
73
81
|
"data-loading": o,
|
|
74
|
-
children: /* @__PURE__ */
|
|
82
|
+
children: /* @__PURE__ */ a(U, { loading: o, size: r, title: i, description: n || j })
|
|
75
83
|
}
|
|
76
84
|
),
|
|
77
|
-
badge: /* @__PURE__ */
|
|
78
|
-
title:
|
|
85
|
+
badge: /* @__PURE__ */ a(y, { loading: o, sender: c, updatedAt: _, updatedAtLabel: h }),
|
|
86
|
+
title: i
|
|
79
87
|
}
|
|
80
|
-
) : /* @__PURE__ */
|
|
81
|
-
|
|
88
|
+
) : /* @__PURE__ */ a(
|
|
89
|
+
B,
|
|
82
90
|
{
|
|
83
|
-
...
|
|
84
|
-
id:
|
|
85
|
-
size:
|
|
86
|
-
selected:
|
|
87
|
-
variant:
|
|
88
|
-
controls: /* @__PURE__ */
|
|
89
|
-
title:
|
|
90
|
-
label: /* @__PURE__ */
|
|
91
|
+
...x,
|
|
92
|
+
id: v,
|
|
93
|
+
size: r,
|
|
94
|
+
selected: m,
|
|
95
|
+
variant: N,
|
|
96
|
+
controls: /* @__PURE__ */ a("div", { className: e.controls, children: g }),
|
|
97
|
+
title: i,
|
|
98
|
+
label: /* @__PURE__ */ s(
|
|
91
99
|
"div",
|
|
92
100
|
{
|
|
93
|
-
className:
|
|
94
|
-
"data-status":
|
|
95
|
-
"data-size":
|
|
96
|
-
"data-
|
|
101
|
+
className: e.border,
|
|
102
|
+
"data-status": t == null ? void 0 : t.value,
|
|
103
|
+
"data-size": r,
|
|
104
|
+
"data-unread": d,
|
|
105
|
+
"data-archived": p,
|
|
106
|
+
"data-trashed": f,
|
|
97
107
|
"data-loading": o,
|
|
98
108
|
children: [
|
|
99
|
-
/* @__PURE__ */
|
|
100
|
-
/* @__PURE__ */
|
|
101
|
-
|
|
102
|
-
|
|
109
|
+
/* @__PURE__ */ s("header", { className: e.header, "data-size": r, children: [
|
|
110
|
+
/* @__PURE__ */ s("span", { className: e.heading, children: [
|
|
111
|
+
/* @__PURE__ */ a(P, { weight: d ? "bold" : "normal", loading: o, maxRows: 2, className: e.title, children: i }),
|
|
112
|
+
b && /* @__PURE__ */ a(O, { variant: "tinted", size: "xs", ...b })
|
|
113
|
+
] }),
|
|
114
|
+
/* @__PURE__ */ a(
|
|
115
|
+
Q,
|
|
103
116
|
{
|
|
104
117
|
size: "xs",
|
|
105
118
|
loading: o,
|
|
106
|
-
sender:
|
|
107
|
-
recipient:
|
|
108
|
-
recipientLabel:
|
|
109
|
-
grouped:
|
|
119
|
+
sender: c,
|
|
120
|
+
recipient: L,
|
|
121
|
+
recipientLabel: D,
|
|
122
|
+
grouped: I
|
|
110
123
|
}
|
|
111
124
|
),
|
|
112
|
-
|
|
125
|
+
r === "xl" && n && /* @__PURE__ */ a(K, { loading: o, children: /* @__PURE__ */ a("p", { "data-size": r, className: e.summary, children: n || j }) })
|
|
113
126
|
] }),
|
|
114
|
-
/* @__PURE__ */
|
|
115
|
-
|
|
127
|
+
/* @__PURE__ */ a(
|
|
128
|
+
y,
|
|
116
129
|
{
|
|
117
|
-
className:
|
|
130
|
+
className: e.footer,
|
|
118
131
|
loading: o,
|
|
119
|
-
status:
|
|
120
|
-
draftsLabel:
|
|
132
|
+
status: t,
|
|
133
|
+
draftsLabel: q,
|
|
121
134
|
sentCount: C,
|
|
122
135
|
receivedCount: E,
|
|
123
|
-
updatedAt:
|
|
124
|
-
updatedAtLabel:
|
|
125
|
-
archivedAt:
|
|
126
|
-
archivedAtLabel:
|
|
127
|
-
trashedAt:
|
|
136
|
+
updatedAt: _,
|
|
137
|
+
updatedAtLabel: h,
|
|
138
|
+
archivedAt: w,
|
|
139
|
+
archivedAtLabel: S,
|
|
140
|
+
trashedAt: k,
|
|
128
141
|
trashedAtLabel: H,
|
|
129
|
-
dueAt:
|
|
130
|
-
dueAtLabel:
|
|
142
|
+
dueAt: M,
|
|
143
|
+
dueAtLabel: R,
|
|
131
144
|
attachmentsCount: F,
|
|
132
|
-
|
|
145
|
+
attachmentsLabel: G,
|
|
146
|
+
seenBy: V
|
|
133
147
|
}
|
|
134
148
|
),
|
|
135
|
-
|
|
149
|
+
l && /* @__PURE__ */ a(T, { className: e.seenBy, ariaLabel: l.title, items: l.items })
|
|
136
150
|
]
|
|
137
151
|
}
|
|
138
152
|
)
|
|
@@ -140,5 +154,5 @@ import '../../assets/DialogListItem.css';const T = "_border_1fmch_1", U = "_cont
|
|
|
140
154
|
);
|
|
141
155
|
};
|
|
142
156
|
export {
|
|
143
|
-
|
|
157
|
+
ba as DialogListItem
|
|
144
158
|
};
|
|
@@ -1,127 +1,144 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as
|
|
2
|
+
import { jsxs as z, jsx as a } from "react/jsx-runtime";
|
|
3
3
|
import "../../index-L8X2o7IH.js";
|
|
4
|
-
import * as
|
|
5
|
-
import { forwardRef as
|
|
4
|
+
import * as o from "react";
|
|
5
|
+
import { forwardRef as f } from "react";
|
|
6
6
|
import "../RootProvider/RootProvider.js";
|
|
7
7
|
import { S as E, D as _ } from "../../DialogActivityLog-BoPREh7Y.js";
|
|
8
8
|
import { DialogSeenBy as P } from "./DialogSeenBy.js";
|
|
9
|
-
import { DialogStatus as
|
|
9
|
+
import { DialogStatus as M } from "./DialogStatus.js";
|
|
10
10
|
import "../Searchbar/AutocompleteBase.js";
|
|
11
|
-
import { MetaBase as
|
|
11
|
+
import { MetaBase as R } from "../Metadata/MetaBase.js";
|
|
12
12
|
import { MetaItem as c } from "../Metadata/MetaItem.js";
|
|
13
|
-
import { MetaTimestamp as
|
|
13
|
+
import { MetaTimestamp as m } from "../Metadata/MetaTimestamp.js";
|
|
14
14
|
import "../Snackbar/useSnackbar.js";
|
|
15
15
|
import { S as D } from "../../Checkmark-D17Nyv_u.js";
|
|
16
|
-
import { S as V } from "../../ArrowDown-DtiYfZHZ.js";
|
|
17
16
|
import { u as d } from "../../useId-BVFxCjkq.js";
|
|
18
|
-
var B = function(t,
|
|
19
|
-
var
|
|
20
|
-
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) &&
|
|
17
|
+
var B = function(t, n) {
|
|
18
|
+
var r = {};
|
|
19
|
+
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (r[e] = t[e]);
|
|
21
20
|
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
22
|
-
for (var
|
|
23
|
-
|
|
24
|
-
return
|
|
21
|
+
for (var l = 0, e = Object.getOwnPropertySymbols(t); l < e.length; l++)
|
|
22
|
+
n.indexOf(e[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[l]) && (r[e[l]] = t[e[l]]);
|
|
23
|
+
return r;
|
|
25
24
|
};
|
|
26
|
-
const
|
|
27
|
-
var { title:
|
|
28
|
-
let
|
|
29
|
-
return
|
|
25
|
+
const V = f((t, n) => {
|
|
26
|
+
var { title: r, titleId: e } = t, l = B(t, ["title", "titleId"]);
|
|
27
|
+
let i = d();
|
|
28
|
+
return i = r ? e || "title-" + i : void 0, o.createElement(
|
|
30
29
|
"svg",
|
|
31
|
-
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:
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
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: n, "aria-labelledby": i }, l),
|
|
31
|
+
r ? o.createElement("title", { id: i }, r) : null,
|
|
32
|
+
o.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M3.25 4A.75.75 0 0 1 4 3.25h16a.75.75 0 0 1 .75.75v4a.75.75 0 0 1-.75.75h-.25V19A1.75 1.75 0 0 1 18 20.75H6A1.75 1.75 0 0 1 4.25 19V8.75H4A.75.75 0 0 1 3.25 8zm2.5 4.75h12.5V19a.25.25 0 0 1-.25.25H6a.25.25 0 0 1-.25-.25zm-1-4v2.5h14.5v-2.5zm9.25 8.5a.75.75 0 0 0 0-1.5h-4a.75.75 0 0 0 0 1.5z", clipRule: "evenodd" })
|
|
34
33
|
);
|
|
35
34
|
});
|
|
36
|
-
var
|
|
37
|
-
var
|
|
38
|
-
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) &&
|
|
35
|
+
var H = function(t, n) {
|
|
36
|
+
var r = {};
|
|
37
|
+
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (r[e] = t[e]);
|
|
39
38
|
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
40
|
-
for (var
|
|
41
|
-
|
|
42
|
-
return
|
|
39
|
+
for (var l = 0, e = Object.getOwnPropertySymbols(t); l < e.length; l++)
|
|
40
|
+
n.indexOf(e[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[l]) && (r[e[l]] = t[e[l]]);
|
|
41
|
+
return r;
|
|
43
42
|
};
|
|
44
|
-
const C =
|
|
45
|
-
var { title:
|
|
46
|
-
let
|
|
47
|
-
return
|
|
43
|
+
const C = f((t, n) => {
|
|
44
|
+
var { title: r, titleId: e } = t, l = H(t, ["title", "titleId"]);
|
|
45
|
+
let i = d();
|
|
46
|
+
return i = r ? e || "title-" + i : void 0, o.createElement(
|
|
48
47
|
"svg",
|
|
49
|
-
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:
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
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: n, "aria-labelledby": i }, l),
|
|
49
|
+
r ? o.createElement("title", { id: i }, r) : null,
|
|
50
|
+
o.createElement("path", { fill: "currentColor", d: "M12.75 5a.75.75 0 0 0-1.5 0v12.19l-3.22-3.22a.75.75 0 0 0-1.06 1.06l4.5 4.5a.75.75 0 0 0 1.06 0l4.5-4.5a.75.75 0 1 0-1.06-1.06l-3.22 3.22z" })
|
|
52
51
|
);
|
|
53
52
|
});
|
|
54
|
-
var $ = function(t,
|
|
55
|
-
var
|
|
56
|
-
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) &&
|
|
53
|
+
var $ = function(t, n) {
|
|
54
|
+
var r = {};
|
|
55
|
+
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (r[e] = t[e]);
|
|
57
56
|
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
58
|
-
for (var
|
|
59
|
-
|
|
60
|
-
return
|
|
57
|
+
for (var l = 0, e = Object.getOwnPropertySymbols(t); l < e.length; l++)
|
|
58
|
+
n.indexOf(e[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[l]) && (r[e[l]] = t[e[l]]);
|
|
59
|
+
return r;
|
|
61
60
|
};
|
|
62
|
-
const
|
|
63
|
-
var { title:
|
|
64
|
-
let
|
|
65
|
-
return
|
|
61
|
+
const k = f((t, n) => {
|
|
62
|
+
var { title: r, titleId: e } = t, l = $(t, ["title", "titleId"]);
|
|
63
|
+
let i = d();
|
|
64
|
+
return i = r ? e || "title-" + i : void 0, o.createElement(
|
|
66
65
|
"svg",
|
|
67
|
-
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:
|
|
68
|
-
|
|
69
|
-
|
|
66
|
+
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: n, "aria-labelledby": i }, l),
|
|
67
|
+
r ? o.createElement("title", { id: i }, r) : null,
|
|
68
|
+
o.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M8.25 3.5c0-.69.56-1.25 1.25-1.25H14a.75.75 0 0 1 .53.22l5 5c.141.14.22.331.22.53v8.5c0 .69-.56 1.25-1.25 1.25h-9c-.69 0-1.25-.56-1.25-1.25zm6.25 5.25c-.69 0-1.25-.56-1.25-1.25V3.75h-3.5v12.5h8.5v-7.5zm.25-3.94 2.44 2.44h-2.44zM6.502 7.75H5.75v12.5h8.5v-.748a.75.75 0 0 1 1.5 0v.998c0 .69-.56 1.25-1.25 1.25h-9c-.69 0-1.25-.56-1.25-1.25v-13c0-.69.56-1.25 1.25-1.25h1.002a.75.75 0 1 1 0 1.5", clipRule: "evenodd" })
|
|
70
69
|
);
|
|
71
70
|
});
|
|
72
|
-
var
|
|
73
|
-
var
|
|
74
|
-
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) &&
|
|
71
|
+
var A = function(t, n) {
|
|
72
|
+
var r = {};
|
|
73
|
+
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (r[e] = t[e]);
|
|
75
74
|
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
76
|
-
for (var
|
|
77
|
-
|
|
78
|
-
return
|
|
75
|
+
for (var l = 0, e = Object.getOwnPropertySymbols(t); l < e.length; l++)
|
|
76
|
+
n.indexOf(e[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[l]) && (r[e[l]] = t[e[l]]);
|
|
77
|
+
return r;
|
|
79
78
|
};
|
|
80
|
-
const
|
|
81
|
-
var { title:
|
|
82
|
-
let
|
|
83
|
-
return
|
|
79
|
+
const T = f((t, n) => {
|
|
80
|
+
var { title: r, titleId: e } = t, l = A(t, ["title", "titleId"]);
|
|
81
|
+
let i = d();
|
|
82
|
+
return i = r ? e || "title-" + i : void 0, o.createElement(
|
|
84
83
|
"svg",
|
|
85
|
-
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:
|
|
86
|
-
|
|
87
|
-
|
|
84
|
+
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: n, "aria-labelledby": i }, l),
|
|
85
|
+
r ? o.createElement("title", { id: i }, r) : null,
|
|
86
|
+
o.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M15.912 4.382c-.546.032-1.086.292-1.503.71l-8.132 8.131c-1.2 1.201-1.754 3.549 0 5.304 1.755 1.754 4.103 1.2 5.304 0l7.424-7.425a.75.75 0 0 1 1.06 1.06l-7.424 7.425c-1.627 1.628-4.936 2.488-7.424 0s-1.628-5.797 0-7.424l8.131-8.132c.644-.643 1.518-1.09 2.475-1.146.976-.058 1.978.295 2.829 1.146.85.851 1.203 1.853 1.146 2.828-.056.957-.503 1.832-1.146 2.475l-7.425 7.425c-.316.316-.838.553-1.376.613-.568.063-1.255-.062-1.806-.613-.55-.55-.676-1.238-.613-1.806.06-.538.297-1.06.613-1.376l6.718-6.718a.75.75 0 0 1 1.06 1.061l-6.717 6.718a.95.95 0 0 0-.183.48c-.025.227.026.424.183.58.156.157.353.208.58.183a.95.95 0 0 0 .48-.183l7.425-7.424c.417-.418.678-.957.71-1.503.03-.527-.147-1.116-.71-1.68s-1.152-.74-1.68-.71", clipRule: "evenodd" })
|
|
88
87
|
);
|
|
89
|
-
})
|
|
88
|
+
});
|
|
89
|
+
var F = function(t, n) {
|
|
90
|
+
var r = {};
|
|
91
|
+
for (var e in t) Object.prototype.hasOwnProperty.call(t, e) && n.indexOf(e) < 0 && (r[e] = t[e]);
|
|
92
|
+
if (t != null && typeof Object.getOwnPropertySymbols == "function")
|
|
93
|
+
for (var l = 0, e = Object.getOwnPropertySymbols(t); l < e.length; l++)
|
|
94
|
+
n.indexOf(e[l]) < 0 && Object.prototype.propertyIsEnumerable.call(t, e[l]) && (r[e[l]] = t[e[l]]);
|
|
95
|
+
return r;
|
|
96
|
+
};
|
|
97
|
+
const q = f((t, n) => {
|
|
98
|
+
var { title: r, titleId: e } = t, l = F(t, ["title", "titleId"]);
|
|
99
|
+
let i = d();
|
|
100
|
+
return i = r ? e || "title-" + i : void 0, o.createElement(
|
|
101
|
+
"svg",
|
|
102
|
+
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: n, "aria-labelledby": i }, l),
|
|
103
|
+
r ? o.createElement("title", { id: i }, r) : null,
|
|
104
|
+
o.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M4.5 6.25a.75.75 0 0 0 0 1.5h.805l.876 11.384a1.75 1.75 0 0 0 1.745 1.616h8.148a1.75 1.75 0 0 0 1.745-1.616l.876-11.384h.805a.75.75 0 0 0 0-1.5h-2.75V6A2.75 2.75 0 0 0 14 3.25h-4A2.75 2.75 0 0 0 7.25 6v.25zm5.5-1.5c-.69 0-1.25.56-1.25 1.25v.25h6.5V6c0-.69-.56-1.25-1.25-1.25zm-3.19 3 .867 11.27c.01.13.118.23.249.23h8.148c.13 0 .24-.1.25-.23l.866-11.27zm3.19 2a.75.75 0 0 1 .75.75v6a.75.75 0 0 1-1.5 0v-6a.75.75 0 0 1 .75-.75m4 0a.75.75 0 0 1 .75.75v6a.75.75 0 0 1-1.5 0v-6a.75.75 0 0 1 .75-.75", clipRule: "evenodd" })
|
|
105
|
+
);
|
|
106
|
+
}), re = ({
|
|
90
107
|
className: t,
|
|
91
|
-
loading:
|
|
92
|
-
status:
|
|
108
|
+
loading: n,
|
|
109
|
+
status: r,
|
|
93
110
|
sender: e,
|
|
94
|
-
updatedAt:
|
|
95
|
-
updatedAtLabel:
|
|
111
|
+
updatedAt: l,
|
|
112
|
+
updatedAtLabel: i,
|
|
96
113
|
dueAt: p,
|
|
97
114
|
dueAtLabel: s,
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
115
|
+
archivedAt: v,
|
|
116
|
+
archivedAtLabel: u,
|
|
117
|
+
trashedAt: h,
|
|
118
|
+
trashedAtLabel: b,
|
|
102
119
|
seenBy: y,
|
|
103
120
|
draftsLabel: O,
|
|
104
|
-
sentCount:
|
|
105
|
-
receivedCount:
|
|
121
|
+
sentCount: g = 0,
|
|
122
|
+
receivedCount: w = 0,
|
|
106
123
|
attachmentsCount: x = 0,
|
|
107
|
-
attachmentsLabel:
|
|
124
|
+
attachmentsLabel: S,
|
|
108
125
|
transmissionsLabel: j,
|
|
109
126
|
activityLog: I
|
|
110
|
-
}) => /* @__PURE__ */
|
|
111
|
-
|
|
112
|
-
O && /* @__PURE__ */
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
/* @__PURE__ */
|
|
117
|
-
|
|
127
|
+
}) => /* @__PURE__ */ z(R, { className: t, size: "xs", children: [
|
|
128
|
+
r && /* @__PURE__ */ a(M, { loading: n, size: "xs", ...r }),
|
|
129
|
+
O && /* @__PURE__ */ a(c, { size: "xs", variant: "dotted", children: O }),
|
|
130
|
+
g > 0 && /* @__PURE__ */ a(c, { size: "xs", variant: "outline", icon: D, children: g }),
|
|
131
|
+
w > 0 && /* @__PURE__ */ a(c, { size: "xs", variant: "outline", icon: C, children: w }),
|
|
132
|
+
l && /* @__PURE__ */ z(m, { loading: n, datetime: l, size: "xs", children: [
|
|
133
|
+
/* @__PURE__ */ a("strong", { children: e && e.name + ", " }),
|
|
134
|
+
i
|
|
118
135
|
] }),
|
|
119
|
-
p && s && /* @__PURE__ */
|
|
120
|
-
|
|
121
|
-
j && /* @__PURE__ */
|
|
122
|
-
|
|
123
|
-
I && /* @__PURE__ */
|
|
136
|
+
p && s && /* @__PURE__ */ a(m, { loading: n, datetime: p, size: "xs", icon: E, children: s }),
|
|
137
|
+
x > 0 && /* @__PURE__ */ a(c, { loading: n, size: "xs", icon: T, children: S || x }),
|
|
138
|
+
j && /* @__PURE__ */ a(c, { loading: n, size: "xs", icon: k, children: j }),
|
|
139
|
+
h && b && /* @__PURE__ */ a(m, { loading: n, datetime: h, size: "xs", icon: q, children: b }) || v && u && /* @__PURE__ */ a(m, { loading: n, datetime: v, size: "xs", icon: V, children: u }) || y && /* @__PURE__ */ a(P, { size: "xs", ...y, loading: n }),
|
|
140
|
+
I && /* @__PURE__ */ a(_, { ...I, loading: n, size: "xs" })
|
|
124
141
|
] });
|
|
125
142
|
export {
|
|
126
|
-
|
|
143
|
+
re as DialogMetadata
|
|
127
144
|
};
|
|
@@ -5,9 +5,9 @@ import "../../index-L8X2o7IH.js";
|
|
|
5
5
|
import { Badge as _ } from "../Badge/Badge.js";
|
|
6
6
|
import { Byline as y } from "../Byline/Byline.js";
|
|
7
7
|
import "../RootProvider/RootProvider.js";
|
|
8
|
-
import {
|
|
9
|
-
import { SeenByLogButton as L } from "./SeenByLogButton.js";
|
|
8
|
+
import { SeenByLogButton as B } from "./SeenByLogButton.js";
|
|
10
9
|
import "../Searchbar/AutocompleteBase.js";
|
|
10
|
+
import { List as L } from "../List/List.js";
|
|
11
11
|
import "../Snackbar/useSnackbar.js";
|
|
12
12
|
import { Section as S } from "../Page/Section.js";
|
|
13
13
|
import '../../assets/SeenByLog.css';const x = "_list_1cnrr_19", j = "_item_1cnrr_25", s = {
|
|
@@ -16,10 +16,10 @@ import '../../assets/SeenByLog.css';const x = "_list_1cnrr_19", j = "_item_1cnrr
|
|
|
16
16
|
}, q = ({ collapsible: c, expanded: m, title: n, items: r, endUserLabel: l = "You" }) => {
|
|
17
17
|
const [p, a] = u(m || !c);
|
|
18
18
|
return /* @__PURE__ */ t(S, { spacing: 2, children: [
|
|
19
|
-
n && /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
19
|
+
n && /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(B, { items: r, onClick: () => {
|
|
20
20
|
a((o) => !o);
|
|
21
21
|
}, children: n }) }),
|
|
22
|
-
p && /* @__PURE__ */ e(
|
|
22
|
+
p && /* @__PURE__ */ e(L, { className: s.list, children: r == null ? void 0 : r.map((o) => {
|
|
23
23
|
const { id: d, name: i, seenAt: g, seenAtLabel: h, isEndUser: f } = o;
|
|
24
24
|
return /* @__PURE__ */ t("li", { className: s.item, children: [
|
|
25
25
|
/* @__PURE__ */ t(y, { size: "sm", datetime: g, avatar: { name: i, type: "person" }, children: [
|
|
@@ -4,7 +4,7 @@ import { DialogHeader as m } from "./DialogHeader.js";
|
|
|
4
4
|
import { DialogBody as l } from "./DialogBody.js";
|
|
5
5
|
import { DialogTabs as f } from "./DialogTabs.js";
|
|
6
6
|
import { DialogSection as D } from "./DialogSection.js";
|
|
7
|
-
import { DialogContact as
|
|
7
|
+
import { DialogContact as n } from "./DialogContact.js";
|
|
8
8
|
import { DialogHistory as S } from "./DialogHistory.js";
|
|
9
9
|
import { DialogHistorySegment as c } from "./DialogHistorySegment.js";
|
|
10
10
|
import { DialogHistoryItem as B } from "./DialogHistoryItem.js";
|
|
@@ -18,20 +18,18 @@ import { D as k } from "../../DialogActivityLog-BoPREh7Y.js";
|
|
|
18
18
|
import { DialogSeenBy as w } from "./DialogSeenBy.js";
|
|
19
19
|
import { DialogSelect as F } from "./DialogSelect.js";
|
|
20
20
|
import { DialogStatus as K, DialogStatusEnum as N } from "./DialogStatus.js";
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import { SeenByLogButton as X } from "./SeenByLogButton.js";
|
|
21
|
+
import { DialogAttachments as P } from "./DialogAttachments.js";
|
|
22
|
+
import { SeenByLog as R } from "./SeenByLog.js";
|
|
23
|
+
import { SeenByLogButton as V } from "./SeenByLogButton.js";
|
|
25
24
|
export {
|
|
26
25
|
t as Dialog,
|
|
27
26
|
T as DialogActions,
|
|
28
27
|
k as DialogActivityLog,
|
|
29
|
-
|
|
28
|
+
P as DialogAttachments,
|
|
30
29
|
l as DialogBody,
|
|
31
30
|
G as DialogByline,
|
|
32
|
-
|
|
31
|
+
n as DialogContact,
|
|
33
32
|
m as DialogHeader,
|
|
34
|
-
P as DialogHeading,
|
|
35
33
|
S as DialogHistory,
|
|
36
34
|
B as DialogHistoryItem,
|
|
37
35
|
c as DialogHistorySegment,
|
|
@@ -46,6 +44,6 @@ export {
|
|
|
46
44
|
K as DialogStatus,
|
|
47
45
|
N as DialogStatusEnum,
|
|
48
46
|
f as DialogTabs,
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
R as SeenByLog,
|
|
48
|
+
V as SeenByLogButton
|
|
51
49
|
};
|
|
@@ -1,24 +1,22 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
3
|
-
import '../../assets/DrawerBase.css';const
|
|
4
|
-
drawer:
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { c as d } from "../../index-L8X2o7IH.js";
|
|
3
|
+
import '../../assets/DrawerBase.css';const s = "_drawer_tvpob_1", c = {
|
|
4
|
+
drawer: s
|
|
5
5
|
}, i = ({
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
open: t = !1,
|
|
6
|
+
placement: a = "inline",
|
|
7
|
+
open: e = !1,
|
|
9
8
|
className: r,
|
|
10
|
-
children:
|
|
11
|
-
as:
|
|
12
|
-
}) => /* @__PURE__ */
|
|
13
|
-
|
|
9
|
+
children: t,
|
|
10
|
+
as: o = "div"
|
|
11
|
+
}) => /* @__PURE__ */ n(
|
|
12
|
+
o,
|
|
14
13
|
{
|
|
15
|
-
className:
|
|
16
|
-
"data-placement":
|
|
17
|
-
"data-
|
|
18
|
-
"data-theme": "default",
|
|
14
|
+
className: d(c.drawer, r),
|
|
15
|
+
"data-placement": a,
|
|
16
|
+
"data-variant": "default",
|
|
19
17
|
"data-color": "company",
|
|
20
|
-
"data-expanded":
|
|
21
|
-
children:
|
|
18
|
+
"data-expanded": e,
|
|
19
|
+
children: t
|
|
22
20
|
}
|
|
23
21
|
);
|
|
24
22
|
export {
|