@moh-sso/announcements 1.4.0 → 1.5.1
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/_types/packages/ui/src/accessibility/useFocusTrap.d.ts +2 -1
- package/dist/_types/packages/ui/src/overlays/header-panel/ReusableHeaderPanel.d.ts +2 -1
- package/dist/_types/packages/ui/src/overlays/header-panel/header-panel.context.d.ts +3 -1
- package/dist/assets/{root.component-BuA-VwR7.js → root.component-DrKm8-Vm.js} +47 -49
- package/dist/assets/root.component-DrKm8-Vm.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/single-spa.js +1 -1
- package/package.json +9 -9
- package/dist/assets/root.component-BuA-VwR7.js.map +0 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { type RefObject } from "react";
|
|
2
2
|
type FocusTrapOptions = {
|
|
3
3
|
active: boolean;
|
|
4
|
+
trapFocus?: boolean;
|
|
4
5
|
containerRef: RefObject<HTMLElement | null>;
|
|
5
6
|
restoreFocus?: boolean;
|
|
6
7
|
initialFocusRef?: RefObject<HTMLElement | HTMLButtonElement | null>;
|
|
7
8
|
initialFocusSelector?: string;
|
|
8
9
|
};
|
|
9
|
-
export declare function useFocusTrap({ active, containerRef, restoreFocus, initialFocusRef, initialFocusSelector, }: FocusTrapOptions): void;
|
|
10
|
+
export declare function useFocusTrap({ active, trapFocus, containerRef, restoreFocus, initialFocusRef, initialFocusSelector, }: FocusTrapOptions): void;
|
|
10
11
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { PanelSize } from "./header-panel.context";
|
|
2
2
|
type Props = {
|
|
3
3
|
isOpen: boolean;
|
|
4
|
+
dockOnDesktop?: boolean;
|
|
4
5
|
title?: string;
|
|
5
6
|
content?: React.ReactNode;
|
|
6
7
|
onClose: () => void;
|
|
@@ -13,5 +14,5 @@ type Props = {
|
|
|
13
14
|
maximizable?: boolean;
|
|
14
15
|
defaultMaximized?: boolean;
|
|
15
16
|
};
|
|
16
|
-
export declare function ReusableHeaderPanel({ isOpen, title, content, onClose, size, primaryActionLabel, secondaryActionLabel, onPrimaryAction, onSecondaryAction, disablePrimaryAction, maximizable, defaultMaximized, }: Props): import("react").JSX.Element;
|
|
17
|
+
export declare function ReusableHeaderPanel({ isOpen, dockOnDesktop, title, content, onClose, size, primaryActionLabel, secondaryActionLabel, onPrimaryAction, onSecondaryAction, disablePrimaryAction, maximizable, defaultMaximized, }: Props): import("react").JSX.Element;
|
|
17
18
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
export type PanelSize = "sm" | "md" | "lg";
|
|
3
3
|
type OpenPanelOptions = {
|
|
4
|
+
dockOnDesktop?: boolean;
|
|
4
5
|
title?: string;
|
|
5
6
|
content: React.ReactNode;
|
|
6
7
|
size?: PanelSize;
|
|
@@ -16,8 +17,9 @@ type HeaderPanelContextType = {
|
|
|
16
17
|
openPanel: (opts: OpenPanelOptions) => void;
|
|
17
18
|
closePanel: () => void;
|
|
18
19
|
};
|
|
19
|
-
export declare function HeaderPanelProvider({ children }: {
|
|
20
|
+
export declare function HeaderPanelProvider({ children, dockOnDesktop, }: {
|
|
20
21
|
children: React.ReactNode;
|
|
22
|
+
dockOnDesktop?: boolean;
|
|
21
23
|
}): React.JSX.Element;
|
|
22
24
|
export declare function useHeaderPanel(): HeaderPanelContextType;
|
|
23
25
|
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs as d, jsx as a, Fragment as j } from "react/jsx-runtime";
|
|
2
|
-
import { Search as He, Dropdown as oe, Button as
|
|
2
|
+
import { Search as He, Dropdown as oe, Button as A, InlineLoading as z, OverflowMenu as ze, OverflowMenuItem as Y, Form as Qe, Stack as le, TextInput as B, TextArea as Ce, Select as ye, SelectItem as v, DatePicker as ve, DatePickerInput as Ae, FormGroup as Be, MultiSelect as te, Checkbox as ne, Tile as ge, Tag as q, Link as je, DataTable as Xe, Table as Ve, TableHead as Ye, TableRow as Ie, TableSelectAll as Ke, TableHeader as We, TableBody as Je, TableSelectRow as Ze, TableCell as F, Pagination as et } from "@carbon/react";
|
|
3
3
|
import { Send as tt, Save as nt, Add as be, Download as at, TrashCan as st, Link as $e, Attachment as _e } from "@carbon/react/icons";
|
|
4
4
|
import { useState as w, useEffect as Re, useMemo as H, useRef as it } from "react";
|
|
5
5
|
import { n as ot, j as rt, w as lt, t as ct, e as dt, b as ut, d as mt, v as pt, k as yt, o as ht, u as gt, f as _t, r as Rt, g as bt } from "./announcement.api-Di1LFSh_.js";
|
|
6
6
|
import { useToast as ce, useHeaderPanel as St, useModal as ft, PageShell as Tt, ErrorState as Ct } from "@moh-sso/ui";
|
|
7
|
-
import { formatDateTime as Ue, isAnnouncementActive as Le, getTagType as vt, getStatusTagType as
|
|
8
|
-
import { useAvailableHealthContexts as
|
|
7
|
+
import { formatDateTime as Ue, isAnnouncementActive as Le, getTagType as vt, getStatusTagType as At } from "@moh-sso/utils";
|
|
8
|
+
import { useAvailableHealthContexts as It } from "@moh-sso/auth";
|
|
9
9
|
import { baseApi as Se } from "@moh-sso/api";
|
|
10
10
|
import "react-redux";
|
|
11
11
|
import { API as D } from "@moh-sso/config";
|
|
@@ -20,7 +20,7 @@ function Ut({
|
|
|
20
20
|
audienceOptions: C,
|
|
21
21
|
pinOptions: o,
|
|
22
22
|
onSearchChange: f,
|
|
23
|
-
onStatusChange:
|
|
23
|
+
onStatusChange: I,
|
|
24
24
|
onLevelChange: b,
|
|
25
25
|
onAudienceChange: E,
|
|
26
26
|
onPinChange: U,
|
|
@@ -48,7 +48,7 @@ function Ut({
|
|
|
48
48
|
itemToString: (c) => c?.label ?? "",
|
|
49
49
|
selectedItem: L.find((c) => c.id === e),
|
|
50
50
|
onChange: ({ selectedItem: c }) => {
|
|
51
|
-
c &&
|
|
51
|
+
c && I(c.id);
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
),
|
|
@@ -94,7 +94,7 @@ function Ut({
|
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
),
|
|
97
|
-
/* @__PURE__ */ a(
|
|
97
|
+
/* @__PURE__ */ a(A, { kind: "ghost", onClick: P, children: "Clear filters" })
|
|
98
98
|
] });
|
|
99
99
|
}
|
|
100
100
|
function Lt({
|
|
@@ -116,12 +116,12 @@ function Lt({
|
|
|
116
116
|
] }),
|
|
117
117
|
/* @__PURE__ */ d("div", { className: "announcement-bulk-actions__buttons", children: [
|
|
118
118
|
o && /* @__PURE__ */ a(z, { description: "Processing…" }),
|
|
119
|
-
/* @__PURE__ */ a(
|
|
120
|
-
/* @__PURE__ */ a(
|
|
121
|
-
/* @__PURE__ */ a(
|
|
122
|
-
/* @__PURE__ */ a(
|
|
123
|
-
/* @__PURE__ */ a(
|
|
124
|
-
/* @__PURE__ */ a(
|
|
119
|
+
/* @__PURE__ */ a(A, { size: "sm", kind: "secondary", disabled: o, onClick: n, children: "Publish" }),
|
|
120
|
+
/* @__PURE__ */ a(A, { size: "sm", kind: "ghost", disabled: o, onClick: s, children: "Move to draft" }),
|
|
121
|
+
/* @__PURE__ */ a(A, { size: "sm", kind: "ghost", disabled: o, onClick: T, children: "Pin" }),
|
|
122
|
+
/* @__PURE__ */ a(A, { size: "sm", kind: "ghost", disabled: o, onClick: p, children: "Unpin" }),
|
|
123
|
+
/* @__PURE__ */ a(A, { size: "sm", kind: "ghost", disabled: o, onClick: u, children: "Archive" }),
|
|
124
|
+
/* @__PURE__ */ a(A, { size: "sm", kind: "danger--tertiary", disabled: o, onClick: C, children: "Delete" })
|
|
125
125
|
] })
|
|
126
126
|
] });
|
|
127
127
|
}
|
|
@@ -167,10 +167,7 @@ const l = "/admin/rbac", Pt = Se.injectEndpoints({
|
|
|
167
167
|
body: n
|
|
168
168
|
}),
|
|
169
169
|
transformResponse: (e) => e.data,
|
|
170
|
-
invalidatesTags: (e, n, { clientId: s }) => [
|
|
171
|
-
{ type: "RbacSystem", id: "LIST" },
|
|
172
|
-
{ type: "RbacSystem", id: s }
|
|
173
|
-
]
|
|
170
|
+
invalidatesTags: (e, n, { clientId: s }) => n ? [] : [{ type: "RbacSystem", id: "LIST" }, { type: "RbacSystem", id: s }, "Auth"]
|
|
174
171
|
}),
|
|
175
172
|
transitionRbacSystem: t.mutation({
|
|
176
173
|
query: ({ clientId: e, ...n }) => ({
|
|
@@ -182,7 +179,8 @@ const l = "/admin/rbac", Pt = Se.injectEndpoints({
|
|
|
182
179
|
invalidatesTags: (e, n, { clientId: s }) => [
|
|
183
180
|
{ type: "RbacSystem", id: "LIST" },
|
|
184
181
|
{ type: "RbacSystem", id: s },
|
|
185
|
-
{ type: "RbacAudit", id: "LIST" }
|
|
182
|
+
{ type: "RbacAudit", id: "LIST" },
|
|
183
|
+
...n ? [] : ["Auth"]
|
|
186
184
|
]
|
|
187
185
|
}),
|
|
188
186
|
listRbacPermissions: t.query({
|
|
@@ -437,14 +435,14 @@ const l = "/admin/rbac", Pt = Se.injectEndpoints({
|
|
|
437
435
|
method: "POST",
|
|
438
436
|
body: n
|
|
439
437
|
}),
|
|
440
|
-
invalidatesTags: (e, n, { clientId: s }) => [{ type: "RbacSystem", id: s }]
|
|
438
|
+
invalidatesTags: (e, n, { clientId: s }) => n ? [] : [{ type: "RbacSystem", id: s }, "Auth"]
|
|
441
439
|
}),
|
|
442
440
|
removeSystemAccessRole: t.mutation({
|
|
443
441
|
query: ({ clientId: e, roleName: n, force: s }) => ({
|
|
444
442
|
url: `${l}/systems/${encodeURIComponent(e)}/access-roles/${encodeURIComponent(n)}${s ? "?force=true" : ""}`,
|
|
445
443
|
method: "DELETE"
|
|
446
444
|
}),
|
|
447
|
-
invalidatesTags: (e, n, { clientId: s }) => [{ type: "RbacSystem", id: s }]
|
|
445
|
+
invalidatesTags: (e, n, { clientId: s }) => n ? [] : [{ type: "RbacSystem", id: s }, "Auth"]
|
|
448
446
|
}),
|
|
449
447
|
getRbacDrift: t.query({
|
|
450
448
|
query: () => `${l}/drift`,
|
|
@@ -630,8 +628,8 @@ const l = "/admin/rbac", Pt = Se.injectEndpoints({
|
|
|
630
628
|
useCreateAccessRequestMutation: Tn,
|
|
631
629
|
useCreateChangeRequestMutation: Cn,
|
|
632
630
|
useCreateRoleFromTemplateMutation: vn,
|
|
633
|
-
useCreateSystemRoleMutation:
|
|
634
|
-
useDecideAccessRequestMutation:
|
|
631
|
+
useCreateSystemRoleMutation: An,
|
|
632
|
+
useDecideAccessRequestMutation: In,
|
|
635
633
|
useDecideChangeRequestMutation: Un,
|
|
636
634
|
useDeleteSystemRoleMutation: Ln,
|
|
637
635
|
useExportRbacSeedQuery: xn,
|
|
@@ -811,7 +809,7 @@ const l = "/admin/rbac", Pt = Se.injectEndpoints({
|
|
|
811
809
|
useReplaceUserHealthContextsMutation: Ta,
|
|
812
810
|
usePreviewHealthContextSyncMutation: Ca,
|
|
813
811
|
useUpdateHealthContextMutation: va,
|
|
814
|
-
useUpsertHealthContextAliasMutation:
|
|
812
|
+
useUpsertHealthContextAliasMutation: Aa
|
|
815
813
|
} = wt, re = (t) => {
|
|
816
814
|
const e = t.enabled ?? t.isActive ?? !1;
|
|
817
815
|
return {
|
|
@@ -998,7 +996,7 @@ const l = "/admin/rbac", Pt = Se.injectEndpoints({
|
|
|
998
996
|
})
|
|
999
997
|
}), {
|
|
1000
998
|
useListUsersQuery: Mt,
|
|
1001
|
-
useGetUserQuery:
|
|
999
|
+
useGetUserQuery: Ia,
|
|
1002
1000
|
useCreateUserMutation: Ua,
|
|
1003
1001
|
useUpdateUserMutation: La,
|
|
1004
1002
|
useResetUserPasswordMutation: xa,
|
|
@@ -1068,7 +1066,7 @@ function Ot({
|
|
|
1068
1066
|
onCancel: u,
|
|
1069
1067
|
submitLabel: T
|
|
1070
1068
|
}) {
|
|
1071
|
-
const p = ce(), C =
|
|
1069
|
+
const p = ce(), C = It(), [o, f] = w(he(e)), { data: I = [], isLoading: b, isError: E } = Et(), {
|
|
1072
1070
|
data: U = [],
|
|
1073
1071
|
isLoading: P,
|
|
1074
1072
|
isError: L
|
|
@@ -1081,11 +1079,11 @@ function Ot({
|
|
|
1081
1079
|
f(he(e));
|
|
1082
1080
|
}, [e]);
|
|
1083
1081
|
const se = H(
|
|
1084
|
-
() =>
|
|
1082
|
+
() => I.map((i) => ({
|
|
1085
1083
|
id: i.id,
|
|
1086
1084
|
text: i.displayName || i.clientId
|
|
1087
1085
|
})),
|
|
1088
|
-
[
|
|
1086
|
+
[I]
|
|
1089
1087
|
), X = H(
|
|
1090
1088
|
() => U.map((i) => ({
|
|
1091
1089
|
id: i.realmRole,
|
|
@@ -1291,7 +1289,7 @@ function Ot({
|
|
|
1291
1289
|
);
|
|
1292
1290
|
},
|
|
1293
1291
|
children: /* @__PURE__ */ a(
|
|
1294
|
-
|
|
1292
|
+
Ae,
|
|
1295
1293
|
{
|
|
1296
1294
|
id: "announcement-publish-date",
|
|
1297
1295
|
labelText: "Publish date",
|
|
@@ -1313,7 +1311,7 @@ function Ot({
|
|
|
1313
1311
|
);
|
|
1314
1312
|
},
|
|
1315
1313
|
children: /* @__PURE__ */ a(
|
|
1316
|
-
|
|
1314
|
+
Ae,
|
|
1317
1315
|
{
|
|
1318
1316
|
id: "announcement-expiry-date",
|
|
1319
1317
|
labelText: "Expiry date",
|
|
@@ -1434,7 +1432,7 @@ function Ot({
|
|
|
1434
1432
|
),
|
|
1435
1433
|
/* @__PURE__ */ d("div", { className: "announcement-form__audience-preview", children: [
|
|
1436
1434
|
/* @__PURE__ */ a(
|
|
1437
|
-
|
|
1435
|
+
A,
|
|
1438
1436
|
{
|
|
1439
1437
|
type: "button",
|
|
1440
1438
|
kind: "tertiary",
|
|
@@ -1513,7 +1511,7 @@ function Ot({
|
|
|
1513
1511
|
] }),
|
|
1514
1512
|
/* @__PURE__ */ d("div", { className: "announcement-form__actions", children: [
|
|
1515
1513
|
/* @__PURE__ */ a(
|
|
1516
|
-
|
|
1514
|
+
A,
|
|
1517
1515
|
{
|
|
1518
1516
|
type: "submit",
|
|
1519
1517
|
renderIcon: t === "create" ? tt : nt,
|
|
@@ -1522,7 +1520,7 @@ function Ot({
|
|
|
1522
1520
|
}
|
|
1523
1521
|
),
|
|
1524
1522
|
/* @__PURE__ */ a(
|
|
1525
|
-
|
|
1523
|
+
A,
|
|
1526
1524
|
{
|
|
1527
1525
|
type: "button",
|
|
1528
1526
|
kind: "secondary",
|
|
@@ -1532,7 +1530,7 @@ function Ot({
|
|
|
1532
1530
|
children: "Reset form"
|
|
1533
1531
|
}
|
|
1534
1532
|
),
|
|
1535
|
-
u ? /* @__PURE__ */ a(
|
|
1533
|
+
u ? /* @__PURE__ */ a(A, { type: "button", kind: "ghost", onClick: u, disabled: n, children: "Cancel" }) : null
|
|
1536
1534
|
] })
|
|
1537
1535
|
] }) });
|
|
1538
1536
|
}
|
|
@@ -1548,7 +1546,7 @@ function Qt({ announcementId: t }) {
|
|
|
1548
1546
|
data: C = [],
|
|
1549
1547
|
isFetching: o,
|
|
1550
1548
|
refetch: f
|
|
1551
|
-
} = rt(t), [
|
|
1549
|
+
} = rt(t), [I, b] = lt(), [E] = ct(), [U, P] = dt(), L = async (h) => {
|
|
1552
1550
|
const c = h?.[0];
|
|
1553
1551
|
if (c) {
|
|
1554
1552
|
if (c.size > Ft) {
|
|
@@ -1560,7 +1558,7 @@ function Qt({ announcementId: t }) {
|
|
|
1560
1558
|
return;
|
|
1561
1559
|
}
|
|
1562
1560
|
try {
|
|
1563
|
-
await
|
|
1561
|
+
await I({
|
|
1564
1562
|
announcementId: t,
|
|
1565
1563
|
file: c,
|
|
1566
1564
|
include_in_email: s,
|
|
@@ -1602,7 +1600,7 @@ function Qt({ announcementId: t }) {
|
|
|
1602
1600
|
}
|
|
1603
1601
|
),
|
|
1604
1602
|
/* @__PURE__ */ a(
|
|
1605
|
-
|
|
1603
|
+
A,
|
|
1606
1604
|
{
|
|
1607
1605
|
kind: "tertiary",
|
|
1608
1606
|
renderIcon: be,
|
|
@@ -1637,7 +1635,7 @@ function Qt({ announcementId: t }) {
|
|
|
1637
1635
|
)
|
|
1638
1636
|
] }),
|
|
1639
1637
|
/* @__PURE__ */ a(
|
|
1640
|
-
|
|
1638
|
+
A,
|
|
1641
1639
|
{
|
|
1642
1640
|
hasIconOnly: !0,
|
|
1643
1641
|
kind: "ghost",
|
|
@@ -1651,7 +1649,7 @@ function Qt({ announcementId: t }) {
|
|
|
1651
1649
|
}
|
|
1652
1650
|
),
|
|
1653
1651
|
/* @__PURE__ */ a(
|
|
1654
|
-
|
|
1652
|
+
A,
|
|
1655
1653
|
{
|
|
1656
1654
|
hasIconOnly: !0,
|
|
1657
1655
|
kind: "danger--ghost",
|
|
@@ -1669,7 +1667,7 @@ function Pe({
|
|
|
1669
1667
|
onSuccess: n,
|
|
1670
1668
|
onCancel: s
|
|
1671
1669
|
}) {
|
|
1672
|
-
const u = ce(), [T, p] = mt(), [C, o] = pt(), f = p.isLoading || o.isLoading,
|
|
1670
|
+
const u = ce(), [T, p] = mt(), [C, o] = pt(), f = p.isLoading || o.isLoading, I = e?.attachment_count ?? e?.attachments?.length ?? 0, b = e?.link_url?.trim(), E = e?.link_label?.trim() || "Open related link";
|
|
1673
1671
|
return /* @__PURE__ */ a(ge, { className: "manage-announcement-panel", children: /* @__PURE__ */ d(le, { gap: 6, children: [
|
|
1674
1672
|
/* @__PURE__ */ d("div", { children: [
|
|
1675
1673
|
/* @__PURE__ */ a("h3", { className: "manage-announcement-panel__title", children: t === "create" ? "Create Announcement" : "Edit Announcement" }),
|
|
@@ -1709,7 +1707,7 @@ function Pe({
|
|
|
1709
1707
|
onCancel: s
|
|
1710
1708
|
}
|
|
1711
1709
|
),
|
|
1712
|
-
t === "edit" && (b ||
|
|
1710
|
+
t === "edit" && (b || I > 0) ? /* @__PURE__ */ d(
|
|
1713
1711
|
"section",
|
|
1714
1712
|
{
|
|
1715
1713
|
"aria-label": "Announcement publishing assets",
|
|
@@ -1721,9 +1719,9 @@ function Pe({
|
|
|
1721
1719
|
/* @__PURE__ */ a($e, { size: 12 }),
|
|
1722
1720
|
"Related link"
|
|
1723
1721
|
] }) }),
|
|
1724
|
-
|
|
1722
|
+
I > 0 && /* @__PURE__ */ a(q, { type: "cyan", size: "sm", children: /* @__PURE__ */ d("span", { className: "announcements-page__tag-content", children: [
|
|
1725
1723
|
/* @__PURE__ */ a(_e, { size: 12 }),
|
|
1726
|
-
|
|
1724
|
+
I === 1 ? "1 attachment" : `${I} attachments`
|
|
1727
1725
|
] }) })
|
|
1728
1726
|
] }),
|
|
1729
1727
|
b && /* @__PURE__ */ a(je, { href: b, target: "_blank", rel: "noopener noreferrer", children: E })
|
|
@@ -1775,7 +1773,7 @@ const jt = [
|
|
|
1775
1773
|
// hidden
|
|
1776
1774
|
];
|
|
1777
1775
|
function Wt() {
|
|
1778
|
-
const t = ce(), { openPanel: e, closePanel: n } = St(), { openModal: s, closeModal: u } = ft(), [T, p] = w(null), [C, o] = w(""), [f,
|
|
1776
|
+
const t = ce(), { openPanel: e, closePanel: n } = St(), { openModal: s, closeModal: u } = ft(), [T, p] = w(null), [C, o] = w(""), [f, I] = w("all"), [b, E] = w("all"), [U, P] = w("all"), [L, k] = w("all"), [x, h] = w(1), [c, G] = w(10), {
|
|
1779
1777
|
data: K = [],
|
|
1780
1778
|
isLoading: ae,
|
|
1781
1779
|
isError: O,
|
|
@@ -1945,7 +1943,7 @@ function Wt() {
|
|
|
1945
1943
|
{
|
|
1946
1944
|
title: "Announcements",
|
|
1947
1945
|
subtitle: "Manage platform notices, alerts, drafts, schedules, and archived updates.",
|
|
1948
|
-
actions: /* @__PURE__ */ a(
|
|
1946
|
+
actions: /* @__PURE__ */ a(A, { renderIcon: be, onClick: i, disabled: ae || O, children: "New announcement" }),
|
|
1949
1947
|
children: ae ? /* @__PURE__ */ a(z, { description: "Loading announcements…" }) : O ? /* @__PURE__ */ a(
|
|
1950
1948
|
Ct,
|
|
1951
1949
|
{
|
|
@@ -1967,12 +1965,12 @@ function Wt() {
|
|
|
1967
1965
|
audienceOptions: Vt,
|
|
1968
1966
|
pinOptions: Yt,
|
|
1969
1967
|
onSearchChange: o,
|
|
1970
|
-
onStatusChange:
|
|
1968
|
+
onStatusChange: I,
|
|
1971
1969
|
onLevelChange: E,
|
|
1972
1970
|
onAudienceChange: P,
|
|
1973
1971
|
onPinChange: k,
|
|
1974
1972
|
onReset: () => {
|
|
1975
|
-
o(""),
|
|
1973
|
+
o(""), I("all"), E("all"), P("all"), k("all");
|
|
1976
1974
|
}
|
|
1977
1975
|
}
|
|
1978
1976
|
) }),
|
|
@@ -2088,7 +2086,7 @@ function Wt() {
|
|
|
2088
2086
|
}
|
|
2089
2087
|
),
|
|
2090
2088
|
/* @__PURE__ */ d(Ve, { children: [
|
|
2091
|
-
/* @__PURE__ */ a(Ye, { children: /* @__PURE__ */ d(
|
|
2089
|
+
/* @__PURE__ */ a(Ye, { children: /* @__PURE__ */ d(Ie, { children: [
|
|
2092
2090
|
/* @__PURE__ */ a(Ke, { ...ie() }),
|
|
2093
2091
|
S.filter((_) => _.key !== "raw").map((_) => {
|
|
2094
2092
|
const { key: y, ...pe } = ue({ header: _ });
|
|
@@ -2097,7 +2095,7 @@ function Wt() {
|
|
|
2097
2095
|
] }) }),
|
|
2098
2096
|
/* @__PURE__ */ a(Je, { children: r.map((_) => {
|
|
2099
2097
|
const y = _.cells.find((R) => R.info.header === "raw")?.value, { key: pe, ...Fe } = me({ row: _ });
|
|
2100
|
-
return /* @__PURE__ */ d(
|
|
2098
|
+
return /* @__PURE__ */ d(Ie, { ...Fe, children: [
|
|
2101
2099
|
/* @__PURE__ */ a(Ze, { ...ie({ row: _ }) }),
|
|
2102
2100
|
_.cells.map((R) => {
|
|
2103
2101
|
if (R.info.header === "raw") return null;
|
|
@@ -2129,7 +2127,7 @@ function Wt() {
|
|
|
2129
2127
|
if (R.info.header === "level")
|
|
2130
2128
|
return /* @__PURE__ */ a(F, { children: /* @__PURE__ */ a(q, { type: vt(y.level), children: y.level }) }, R.id);
|
|
2131
2129
|
if (R.info.header === "status")
|
|
2132
|
-
return /* @__PURE__ */ a(F, { children: /* @__PURE__ */ a(q, { type:
|
|
2130
|
+
return /* @__PURE__ */ a(F, { children: /* @__PURE__ */ a(q, { type: At(y.status), children: y.status }) }, R.id);
|
|
2133
2131
|
if (R.info.header === "pinned")
|
|
2134
2132
|
return /* @__PURE__ */ a(F, { children: /* @__PURE__ */ a(q, { type: y.is_pinned ? "warm-gray" : "gray", children: y.is_pinned ? "Pinned" : "No" }) }, R.id);
|
|
2135
2133
|
if (R.info.header === "active") {
|
|
@@ -2224,4 +2222,4 @@ export {
|
|
|
2224
2222
|
Pe as M,
|
|
2225
2223
|
ka as a
|
|
2226
2224
|
};
|
|
2227
|
-
//# sourceMappingURL=root.component-
|
|
2225
|
+
//# sourceMappingURL=root.component-DrKm8-Vm.js.map
|