@altinn/altinn-components 0.59.0 → 0.59.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/{Section-gR5R233Z.js → Section-BEuICoay.js} +119 -119
- package/dist/assets/Section.css +1 -1
- package/dist/components/AccessAreaListItem/AccessAreaListItem.js +1 -1
- package/dist/components/AccessPackageListItem/AccessPackageListItem.js +1 -1
- package/dist/components/Account/AccountList.js +1 -1
- package/dist/components/Account/AccountListItem.js +1 -1
- package/dist/components/Account/AccountListItemControls.js +1 -1
- package/dist/components/Account/AccountListItemDetails.js +1 -1
- package/dist/components/Account/AccountListVirtual.js +1 -1
- package/dist/components/Account/AccountMenu.js +1 -1
- package/dist/components/Account/AccountNotificationSettings.js +1 -1
- package/dist/components/Account/AccountOrganization.js +1 -1
- package/dist/components/AccountSelector/AccountSelector.js +1 -1
- package/dist/components/ActivityLog/ActivityLog.js +1 -1
- package/dist/components/ActivityLog/ActivityLogItem.js +1 -1
- package/dist/components/ActivityLog/ActivityLogSegment.js +1 -1
- package/dist/components/Alert/Alert.js +1 -1
- package/dist/components/Article/Article.js +1 -1
- package/dist/components/Article/ArticleContact.js +1 -1
- package/dist/components/Article/ArticleHeader.js +1 -1
- package/dist/components/Attachment/AttachmentLink.js +1 -1
- package/dist/components/Badge/Badge.js +1 -1
- package/dist/components/Badge/index.js +1 -1
- package/dist/components/Banner/Banner.js +1 -1
- package/dist/components/Bookmarks/BookmarkModal.js +1 -1
- package/dist/components/Bookmarks/BookmarkSettingsItem.js +1 -1
- package/dist/components/Bookmarks/BookmarkSettingsItemLabel.js +1 -1
- package/dist/components/Bookmarks/BookmarkSettingsList.js +1 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.js +1 -1
- package/dist/components/Bulk/BulkHeader.js +1 -1
- package/dist/components/Button/ButtonIcon.js +1 -1
- package/dist/components/Button/ComboButton.js +1 -1
- package/dist/components/Button/FloatingActionButton.js +1 -1
- package/dist/components/Button/IconButton.js +1 -1
- package/dist/components/Byline/Byline.js +1 -1
- package/dist/components/Byline/index.js +1 -1
- package/dist/components/ContextMenu/ContextMenu.js +1 -1
- package/dist/components/Dashboard/DashboardCard.js +1 -1
- package/dist/components/Dashboard/DashboardHeader.js +1 -1
- package/dist/components/Datepicker/Datepicker.js +1 -1
- package/dist/components/Datepicker/DatepickerHeader.js +1 -1
- package/dist/components/Datepicker/DatepickerTable.js +1 -1
- package/dist/components/Dialog/Dialog.js +1 -1
- package/dist/components/Dialog/DialogActions.js +1 -1
- package/dist/components/Dialog/DialogActivityLog.js +1 -1
- package/dist/components/Dialog/DialogAttachments.js +1 -1
- package/dist/components/Dialog/DialogBody.js +1 -1
- package/dist/components/Dialog/DialogByline.js +1 -1
- package/dist/components/Dialog/DialogContact.js +1 -1
- package/dist/components/Dialog/DialogHeader.js +1 -1
- package/dist/components/Dialog/DialogHistory.js +1 -1
- package/dist/components/Dialog/DialogHistoryItem.js +1 -1
- package/dist/components/Dialog/DialogHistorySegment.js +1 -1
- package/dist/components/Dialog/DialogLayout.js +16 -16
- package/dist/components/Dialog/DialogList.js +1 -1
- package/dist/components/Dialog/DialogListGroup.js +1 -1
- package/dist/components/Dialog/DialogListItem.js +1 -1
- package/dist/components/Dialog/DialogMetadata.js +1 -1
- package/dist/components/Dialog/DialogSection.js +1 -1
- package/dist/components/Dialog/DialogSeenBy.js +1 -1
- package/dist/components/Dialog/DialogSelect.js +1 -1
- package/dist/components/Dialog/DialogStatus.js +1 -1
- package/dist/components/Dialog/DialogTabs.js +1 -1
- package/dist/components/Dialog/SeenByLog.js +1 -1
- package/dist/components/Dialog/SeenByLogButton.js +1 -1
- package/dist/components/Dialog/SeenByLogItem.js +1 -1
- package/dist/components/Dialog/index.js +1 -1
- package/dist/components/Dropdown/DrawerButton.js +1 -1
- package/dist/components/Dropdown/DrawerHeader.js +1 -1
- package/dist/components/Dropdown/Dropdown.js +1 -1
- package/dist/components/Dropdown/DropdownBase.js +1 -1
- package/dist/components/Dropdown/FloatingDropdown.js +1 -1
- package/dist/components/Dropdown/index.js +1 -1
- package/dist/components/Forms/Checkbox.js +1 -1
- package/dist/components/Forms/CheckboxOptions.js +1 -1
- package/dist/components/Forms/FieldBase.js +1 -1
- package/dist/components/Forms/FieldsetBase.js +1 -1
- package/dist/components/Forms/Radio.js +1 -1
- package/dist/components/Forms/RadioOptions.js +1 -1
- package/dist/components/Forms/SearchField.js +1 -1
- package/dist/components/Forms/SelectField.js +1 -1
- package/dist/components/Forms/Switch.js +1 -1
- package/dist/components/Forms/SwitchOptions.js +1 -1
- package/dist/components/Forms/TextField.js +1 -1
- package/dist/components/Forms/TextFieldDropdown.js +1 -1
- package/dist/components/Forms/TextareaField.js +1 -1
- package/dist/components/Forms/index.js +1 -1
- package/dist/components/GlobalHeader/GlobalAccountButton.js +1 -1
- package/dist/components/GlobalHeader/GlobalHeader.js +1 -1
- package/dist/components/GlobalHeader/GlobalMenuButton.js +1 -1
- package/dist/components/GlobalHeader/HeaderDrawer.js +1 -1
- package/dist/components/GlobalHeader/HeaderDropdown.js +1 -1
- package/dist/components/GlobalHeader/HeaderLogo.js +1 -1
- package/dist/components/GlobalMenu/GlobalMenu.js +1 -1
- package/dist/components/GlobalMenu/LocaleSwitcher.js +1 -1
- package/dist/components/GlobalMenu/LogoutButton.js +1 -1
- package/dist/components/GlobalMenu_old/BackButton.js +1 -1
- package/dist/components/GlobalMenu_old/CurrentAccount.js +1 -1
- package/dist/components/GlobalMenu_old/GlobalMenu.js +1 -1
- package/dist/components/GlobalMenu_old/GlobalMenuButton.js +1 -1
- package/dist/components/GlobalMenu_old/LogoutButton.js +1 -1
- package/dist/components/Header/Header.js +1 -1
- package/dist/components/Header/HeaderBase.js +1 -1
- package/dist/components/Header/HeaderButton.js +1 -1
- package/dist/components/Header/HeaderLogo.js +1 -1
- package/dist/components/Header/LocaleButton.js +1 -1
- package/dist/components/Header/LocaleSwitcher.js +1 -1
- package/dist/components/Icon/Icon.js +1 -1
- package/dist/components/Icon/index.js +1 -1
- package/dist/components/Inbox/InboxPage.js +1 -1
- package/dist/components/InboxSearch/InboxSearch.js +1 -1
- package/dist/components/Item/ItemLabel.js +1 -1
- package/dist/components/Item/ItemMedia.js +1 -1
- package/dist/components/Item/ItemSelect.js +1 -1
- package/dist/components/Item/index.js +1 -1
- package/dist/components/Layout/Layout.js +1 -1
- package/dist/components/List/List.js +1 -1
- package/dist/components/List/ListBase.js +1 -1
- package/dist/components/List/ListItem.js +1 -1
- package/dist/components/List/ListItemHeader.js +1 -1
- package/dist/components/List/ListItemIcon.js +1 -1
- package/dist/components/List/ListItemLabel.js +1 -1
- package/dist/components/List/index.js +1 -1
- package/dist/components/Menu/Menu.js +1 -1
- package/dist/components/Menu/MenuItem.js +1 -1
- package/dist/components/Menu/MenuItems.js +1 -1
- package/dist/components/Menu/MenuListSearch.js +1 -1
- package/dist/components/Menu/MenuOption.js +1 -1
- package/dist/components/Menu/TabMenu.js +1 -1
- package/dist/components/Menu/VirtualizedMenuItems.js +1 -1
- package/dist/components/Menu/index.js +1 -1
- package/dist/components/Menu/useMenuSearch.js +1 -1
- package/dist/components/Metadata/MetaItem.js +1 -1
- package/dist/components/Metadata/MetaItemIcon.js +1 -1
- package/dist/components/Metadata/MetaTimestamp.js +1 -1
- package/dist/components/Metadata/Metadata.js +1 -1
- package/dist/components/Metadata/index.js +1 -1
- package/dist/components/Modal/Modal.js +1 -1
- package/dist/components/Modal/ModalBase.js +1 -1
- package/dist/components/Modal/ModalHeader.js +1 -1
- package/dist/components/Modal/ModalIcon.js +1 -1
- package/dist/components/Notifications/NotificationItem.js +1 -1
- package/dist/components/Notifications/NotificationItemBase.js +1 -1
- package/dist/components/Notifications/NotificationItemControls.js +1 -1
- package/dist/components/Notifications/NotificationItemIcon.js +1 -1
- package/dist/components/Page/AccordionSection.js +1 -1
- package/dist/components/Page/ContactButtons.js +1 -1
- package/dist/components/Page/ContactSection.js +1 -1
- package/dist/components/Page/PageMenu.js +1 -1
- package/dist/components/Page/PageNav.js +1 -1
- package/dist/components/Page/Section.js +1 -1
- package/dist/components/Page/index.js +1 -1
- package/dist/components/ResourceListItem/ResourceListItem.js +1 -1
- package/dist/components/RootProvider/RootProvider.js +1 -1
- package/dist/components/RootProvider/index.js +1 -1
- package/dist/components/Search/SearchItem.js +1 -1
- package/dist/components/Searchbar/Autocomplete.js +1 -1
- package/dist/components/Searchbar/AutocompleteItem.js +1 -1
- package/dist/components/Searchbar/Searchbar.js +1 -1
- package/dist/components/Searchbar/SearchbarField.js +1 -1
- package/dist/components/Settings/SettingsItem.js +1 -1
- package/dist/components/Settings/SettingsItemBase.js +1 -1
- package/dist/components/Settings/SettingsList.js +1 -1
- package/dist/components/Settings/SettingsModal.js +1 -1
- package/dist/components/Settings/SettingsSection.js +1 -1
- package/dist/components/Settings/UsedByLog.js +1 -1
- package/dist/components/Settings/UsedByLogItem.js +1 -1
- package/dist/components/Snackbar/SnackbarItem.js +1 -1
- package/dist/components/Timeline/Timeline.js +1 -1
- package/dist/components/Timeline/TimelineActivity.js +1 -1
- package/dist/components/Timeline/TimelineBase.js +1 -1
- package/dist/components/Timeline/TimelineFooter.js +1 -1
- package/dist/components/Timeline/TimelineHeader.js +1 -1
- package/dist/components/Timeline/TimelineIcon.js +1 -1
- package/dist/components/Timeline/TimelineSection.js +1 -1
- package/dist/components/Timeline/TimelineSegment.js +1 -1
- package/dist/components/Toolbar/DatepickerFilter.js +1 -1
- package/dist/components/Toolbar/SelectDateFilter.js +1 -1
- package/dist/components/Toolbar/Toolbar.js +1 -1
- package/dist/components/Toolbar/ToolbarFilter.js +1 -1
- package/dist/components/Toolbar/ToolbarFilterAddMenu.js +1 -1
- package/dist/components/Toolbar/ToolbarFilterButton.js +1 -1
- package/dist/components/Toolbar/ToolbarFilterMenu.js +1 -1
- package/dist/components/Toolbar/ToolbarMenu.js +1 -1
- package/dist/components/Toolbar/ToolbarSearch.js +1 -1
- package/dist/components/Toolbar/index.js +1 -1
- package/dist/components/Transmission/Transmission.js +1 -1
- package/dist/components/Transmission/TransmissionList.js +1 -1
- package/dist/components/Transmission/TransmissionType.js +1 -1
- package/dist/components/Typography/Heading.js +1 -1
- package/dist/components/Typography/index.js +1 -1
- package/dist/components/UserListItem/UserListItem.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/hooks/useAccountSelector.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as a, jsxs as x, Fragment as pe } from "react/jsx-runtime";
|
|
3
3
|
import { c as T } from "./index-p1eeF8LQ.js";
|
|
4
4
|
import * as H from "react";
|
|
5
|
-
import N, { forwardRef as V, useRef as Z, useState as le, useMemo as de, useEffect as Y, Fragment as ht, useLayoutEffect as Me, createContext as vt, useContext as bt, isValidElement as we, useId as
|
|
5
|
+
import N, { forwardRef as V, useRef as Z, useState as le, useMemo as de, useEffect as Y, Fragment as ht, useLayoutEffect as Me, createContext as vt, useContext as bt, isValidElement as we, useId as ke, useCallback as Ye, memo as Ie, createElement as Ae } from "react";
|
|
6
6
|
import { useEscapeKey as gt } from "./hooks/useEscapeKey.js";
|
|
7
7
|
import "./components/Typography/Link.js";
|
|
8
8
|
import { Button as he } from "./components/Button/Button.js";
|
|
@@ -18,8 +18,8 @@ import { Field as It } from "./components/Forms/Field.js";
|
|
|
18
18
|
import { Label as xt } from "./components/Forms/Label.js";
|
|
19
19
|
import { TypingIcon as Ot } from "./components/Icon/TypingIcon.js";
|
|
20
20
|
import { u as U } from "./useId-BVFxCjkq.js";
|
|
21
|
-
import { isAvatarProps as
|
|
22
|
-
import { isAvatarGroupProps as
|
|
21
|
+
import { isAvatarProps as Ce, Avatar as $e } from "./components/Avatar/Avatar.js";
|
|
22
|
+
import { isAvatarGroupProps as Ee, AvatarGroup as be } from "./components/Avatar/AvatarGroup.js";
|
|
23
23
|
import { ItemControls as De } from "./components/Item/ItemControls.js";
|
|
24
24
|
import { pickAriaProps as Nt } from "./components/Menu/aria.js";
|
|
25
25
|
import { MenuList as ze } from "./components/Menu/MenuList.js";
|
|
@@ -27,8 +27,8 @@ import { MenuListItem as Je } from "./components/Menu/MenuListItem.js";
|
|
|
27
27
|
import { MenuListGroup as Ze } from "./components/Menu/MenuListGroup.js";
|
|
28
28
|
import { MenuListDivider as et } from "./components/Menu/MenuListDivider.js";
|
|
29
29
|
import { MenuListHeading as tt } from "./components/Menu/MenuListHeading.js";
|
|
30
|
-
import { a as
|
|
31
|
-
import { S as
|
|
30
|
+
import { a as kt } from "./useMenuVirtualization-Cs426RCN.js";
|
|
31
|
+
import { S as Ct, a as Et, b as zt } from "./Paperclip-DjN7qVfQ.js";
|
|
32
32
|
import { useDropdownMenuController as Pt } from "./components/Menu/useDropdownMenuController.js";
|
|
33
33
|
import { ItemBase as $t } from "./components/Item/ItemBase.js";
|
|
34
34
|
import { ItemLink as St } from "./components/Item/ItemLink.js";
|
|
@@ -351,7 +351,7 @@ const Se = V((e, o) => {
|
|
|
351
351
|
onKeyDown: v,
|
|
352
352
|
onInput: g,
|
|
353
353
|
onFocus: _,
|
|
354
|
-
...
|
|
354
|
+
...k
|
|
355
355
|
}) => /* @__PURE__ */ a("li", { className: je.search, style: e, "data-index": o, "data-menu-search": "true", children: l ? (
|
|
356
356
|
// biome-ignore lint/a11y/useFocusableInteractive: <explanation>
|
|
357
357
|
// biome-ignore lint/a11y/useAriaPropsForRole: <explanation>
|
|
@@ -379,7 +379,7 @@ const Se = V((e, o) => {
|
|
|
379
379
|
},
|
|
380
380
|
onInput: g,
|
|
381
381
|
onFocus: _,
|
|
382
|
-
...
|
|
382
|
+
...k
|
|
383
383
|
}
|
|
384
384
|
) })
|
|
385
385
|
) : /* @__PURE__ */ a(
|
|
@@ -402,7 +402,7 @@ const Se = V((e, o) => {
|
|
|
402
402
|
},
|
|
403
403
|
onInput: g,
|
|
404
404
|
onFocus: _,
|
|
405
|
-
...
|
|
405
|
+
...k
|
|
406
406
|
}
|
|
407
407
|
) }), at = ({
|
|
408
408
|
level: e = 0,
|
|
@@ -420,9 +420,9 @@ const Se = V((e, o) => {
|
|
|
420
420
|
size: v,
|
|
421
421
|
id: g,
|
|
422
422
|
color: _,
|
|
423
|
-
variant:
|
|
423
|
+
variant: k,
|
|
424
424
|
scrollRefStyles: b = {},
|
|
425
|
-
keyboardEvents:
|
|
425
|
+
keyboardEvents: E = !1,
|
|
426
426
|
onSelect: j = () => {
|
|
427
427
|
},
|
|
428
428
|
onActiveItemIdChange: O
|
|
@@ -439,7 +439,7 @@ const Se = V((e, o) => {
|
|
|
439
439
|
items: A,
|
|
440
440
|
groups: i,
|
|
441
441
|
groupByKey: "groupId",
|
|
442
|
-
keyboardEvents:
|
|
442
|
+
keyboardEvents: E,
|
|
443
443
|
autoActivateFirstItem: d,
|
|
444
444
|
onSelect: j,
|
|
445
445
|
ref: S
|
|
@@ -455,8 +455,8 @@ const Se = V((e, o) => {
|
|
|
455
455
|
D.current = r, r && !p && S.current?.scrollTo({ top: 0 });
|
|
456
456
|
}, [r, s]), Y(() => {
|
|
457
457
|
const p = z.current;
|
|
458
|
-
z.current = r, !(!
|
|
459
|
-
}, [r,
|
|
458
|
+
z.current = r, !(!E || l || !u) && r && !p && requestAnimationFrame(() => S.current?.focus?.({ preventScroll: !0 }));
|
|
459
|
+
}, [r, E, l]), Y(() => {
|
|
460
460
|
if (h && c) {
|
|
461
461
|
y(0), P(!0);
|
|
462
462
|
return;
|
|
@@ -464,13 +464,13 @@ const Se = V((e, o) => {
|
|
|
464
464
|
}, [c, h, y]), /* @__PURE__ */ x(
|
|
465
465
|
ze,
|
|
466
466
|
{
|
|
467
|
-
variant:
|
|
467
|
+
variant: k,
|
|
468
468
|
expanded: n,
|
|
469
469
|
ref: S,
|
|
470
470
|
style: b,
|
|
471
471
|
id: f,
|
|
472
472
|
role: h ? "listbox" : void 0,
|
|
473
|
-
tabIndex:
|
|
473
|
+
tabIndex: E ? -1 : void 0,
|
|
474
474
|
children: [
|
|
475
475
|
l && /* @__PURE__ */ a(
|
|
476
476
|
ot,
|
|
@@ -502,7 +502,7 @@ const Se = V((e, o) => {
|
|
|
502
502
|
/* @__PURE__ */ a(Ze, { hidden: K, children: /* @__PURE__ */ x(ze, { role: "presentation", children: [
|
|
503
503
|
G && /* @__PURE__ */ a(tt, { title: G, level: e }),
|
|
504
504
|
p?.items.filter((X) => !X.props?.hidden).map((X, I) => {
|
|
505
|
-
const { active:
|
|
505
|
+
const { active: C, onMouseEnter: B } = X, { groupId: te, ...L } = X.props || {}, { expanded: se } = L, ue = Array.isArray(L?.items) && L.items.length > 0, xe = L.role === "checkbox" || L.role === "radio", Re = h && !xe ? "option" : L.role;
|
|
506
506
|
return /* @__PURE__ */ x(
|
|
507
507
|
Je,
|
|
508
508
|
{
|
|
@@ -516,11 +516,11 @@ const Se = V((e, o) => {
|
|
|
516
516
|
...L,
|
|
517
517
|
size: L?.size || F?.size || v,
|
|
518
518
|
color: L?.color || F?.color || _,
|
|
519
|
-
variant: L?.variant || F?.variant ||
|
|
520
|
-
active:
|
|
519
|
+
variant: L?.variant || F?.variant || k,
|
|
520
|
+
active: C,
|
|
521
521
|
role: Re,
|
|
522
522
|
selected: L.selected,
|
|
523
|
-
tabIndex: L?.disabled ||
|
|
523
|
+
tabIndex: L?.disabled || E ? -1 : L.tabIndex ?? 0,
|
|
524
524
|
onMouseEnter: B,
|
|
525
525
|
"aria-haspopup": ue ? "menu" : void 0,
|
|
526
526
|
"aria-expanded": ue ? se : void 0,
|
|
@@ -538,7 +538,7 @@ const Se = V((e, o) => {
|
|
|
538
538
|
groups: i,
|
|
539
539
|
size: v,
|
|
540
540
|
color: _,
|
|
541
|
-
variant:
|
|
541
|
+
variant: k
|
|
542
542
|
}
|
|
543
543
|
)
|
|
544
544
|
]
|
|
@@ -564,16 +564,16 @@ const Se = V((e, o) => {
|
|
|
564
564
|
scrollRefStyles: v = {},
|
|
565
565
|
id: g,
|
|
566
566
|
expanded: _,
|
|
567
|
-
a11yMode:
|
|
567
|
+
a11yMode: k = "menu",
|
|
568
568
|
open: b,
|
|
569
|
-
scrollToTopOnOpen:
|
|
569
|
+
scrollToTopOnOpen: E = !1,
|
|
570
570
|
autoActivateFirstItem: j = !0,
|
|
571
571
|
announceNoResults: O = !1,
|
|
572
572
|
onActiveItemIdChange: h
|
|
573
|
-
} = e, f =
|
|
574
|
-
() => d.map((I,
|
|
573
|
+
} = e, f = k === "combobox", D = f && g ? `${g}-listbox` : g, z = Z(b), [M, P] = le(!1), A = de(
|
|
574
|
+
() => d.map((I, C) => ({
|
|
575
575
|
...I,
|
|
576
|
-
id: I.id || `${g}-item-${
|
|
576
|
+
id: I.id || `${g}-item-${C}`
|
|
577
577
|
})),
|
|
578
578
|
[d, g]
|
|
579
579
|
), { menu: S, activeItem: $, setActiveIndex: y, activeIndex: w } = Le({
|
|
@@ -583,32 +583,32 @@ const Se = V((e, o) => {
|
|
|
583
583
|
keyboardEvents: i,
|
|
584
584
|
autoActivateFirstItem: j,
|
|
585
585
|
ref: o
|
|
586
|
-
}), { flatMenu: p, virtualizer: R, scrollMaxHeight: F } =
|
|
586
|
+
}), { flatMenu: p, virtualizer: R, scrollMaxHeight: F } = kt({
|
|
587
587
|
menu: S,
|
|
588
588
|
scrollRef: o
|
|
589
589
|
});
|
|
590
590
|
Me(() => {
|
|
591
591
|
const I = n.current;
|
|
592
592
|
if (!I) return;
|
|
593
|
-
const
|
|
594
|
-
r((B) => B ===
|
|
593
|
+
const C = Math.round(I.offsetTop);
|
|
594
|
+
r((B) => B === C ? B : C);
|
|
595
595
|
});
|
|
596
596
|
const G = de(() => {
|
|
597
597
|
const I = $?.id;
|
|
598
598
|
if (I)
|
|
599
599
|
return p.findIndex((B) => B.type === "item" && B.itemProps?.id === I);
|
|
600
600
|
if (w < 0) return -1;
|
|
601
|
-
let
|
|
601
|
+
let C = -1;
|
|
602
602
|
for (let B = 0; B < p.length; B++)
|
|
603
|
-
if (p[B]?.type === "item" && (
|
|
603
|
+
if (p[B]?.type === "item" && (C += 1, C === w))
|
|
604
604
|
return B;
|
|
605
605
|
return -1;
|
|
606
606
|
}, [$?.id, w, p]), K = Z(null);
|
|
607
607
|
Me(() => {
|
|
608
|
-
const I = K?.current,
|
|
608
|
+
const I = K?.current, C = typeof I == "number" ? G <= I : !1;
|
|
609
609
|
K.current = G;
|
|
610
|
-
const B =
|
|
611
|
-
if (!
|
|
610
|
+
const B = C ? G : G + 2;
|
|
611
|
+
if (!C) {
|
|
612
612
|
const ue = R.getOffsetForIndex(B, "auto");
|
|
613
613
|
if (!ue) return;
|
|
614
614
|
const [xe, Re] = ue;
|
|
@@ -627,10 +627,10 @@ const Se = V((e, o) => {
|
|
|
627
627
|
}, [G, t, R, K]);
|
|
628
628
|
const W = de(() => {
|
|
629
629
|
const I = /* @__PURE__ */ new Map();
|
|
630
|
-
let
|
|
630
|
+
let C = 0;
|
|
631
631
|
return p.forEach((B, te) => {
|
|
632
|
-
B.type === "item" && (
|
|
633
|
-
}), { positions: I, total:
|
|
632
|
+
B.type === "item" && (C += 1, I.set(te, C));
|
|
633
|
+
}), { positions: I, total: C };
|
|
634
634
|
}, [p]);
|
|
635
635
|
Y(() => {
|
|
636
636
|
h?.($?.id);
|
|
@@ -640,13 +640,13 @@ const Se = V((e, o) => {
|
|
|
640
640
|
return;
|
|
641
641
|
}
|
|
642
642
|
}, [O, f, y]), Y(() => {
|
|
643
|
-
if (!
|
|
643
|
+
if (!E) {
|
|
644
644
|
z.current = b;
|
|
645
645
|
return;
|
|
646
646
|
}
|
|
647
647
|
const I = z.current;
|
|
648
648
|
z.current = b, b && !I && o.current?.scrollTo({ top: 0 });
|
|
649
|
-
}, [b,
|
|
649
|
+
}, [b, E]);
|
|
650
650
|
const X = {
|
|
651
651
|
position: "relative",
|
|
652
652
|
maxHeight: v?.maxHeight || F,
|
|
@@ -685,8 +685,8 @@ const Se = V((e, o) => {
|
|
|
685
685
|
P(!1), s.onInput?.(I);
|
|
686
686
|
},
|
|
687
687
|
onKeyDown: (I) => {
|
|
688
|
-
const
|
|
689
|
-
f && !
|
|
688
|
+
const C = I.key === "ArrowUp" || I.key === "ArrowDown", B = I.key.length === 1 || I.key === "Backspace" || I.key === "Delete";
|
|
689
|
+
f && !C && B && P(!1), s.onKeyDown?.(I);
|
|
690
690
|
}
|
|
691
691
|
}
|
|
692
692
|
),
|
|
@@ -700,8 +700,8 @@ const Se = V((e, o) => {
|
|
|
700
700
|
width: "100%"
|
|
701
701
|
},
|
|
702
702
|
children: /* @__PURE__ */ a(ze, { style: { width: "100%", minWidth: "100%" }, children: R.getVirtualItems().map((I) => {
|
|
703
|
-
const
|
|
704
|
-
if (!
|
|
703
|
+
const C = p[I.index];
|
|
704
|
+
if (!C) return null;
|
|
705
705
|
const B = {
|
|
706
706
|
position: "absolute",
|
|
707
707
|
top: 0,
|
|
@@ -714,7 +714,7 @@ const Se = V((e, o) => {
|
|
|
714
714
|
"data-index": I.index,
|
|
715
715
|
ref: R.measureElement
|
|
716
716
|
};
|
|
717
|
-
switch (
|
|
717
|
+
switch (C.type) {
|
|
718
718
|
case "divider":
|
|
719
719
|
return /* @__PURE__ */ a(
|
|
720
720
|
et,
|
|
@@ -725,9 +725,9 @@ const Se = V((e, o) => {
|
|
|
725
725
|
I.key
|
|
726
726
|
);
|
|
727
727
|
case "header":
|
|
728
|
-
return /* @__PURE__ */ a(tt, { ...te, title:
|
|
728
|
+
return /* @__PURE__ */ a(tt, { ...te, title: C.title || "", level: 1 }, I.key);
|
|
729
729
|
default: {
|
|
730
|
-
const L =
|
|
730
|
+
const L = C.itemProps?.role === "checkbox" || C.itemProps?.role === "radio", se = f && !L ? "option" : C.itemProps?.role;
|
|
731
731
|
return /* @__PURE__ */ a(
|
|
732
732
|
Je,
|
|
733
733
|
{
|
|
@@ -736,16 +736,16 @@ const Se = V((e, o) => {
|
|
|
736
736
|
children: /* @__PURE__ */ a(
|
|
737
737
|
it,
|
|
738
738
|
{
|
|
739
|
-
...
|
|
740
|
-
size:
|
|
741
|
-
color:
|
|
742
|
-
variant:
|
|
743
|
-
active:
|
|
739
|
+
...C.itemProps || {},
|
|
740
|
+
size: C.itemProps?.size || c,
|
|
741
|
+
color: C.itemProps?.color || l,
|
|
742
|
+
variant: C.itemProps?.variant || m,
|
|
743
|
+
active: C.active,
|
|
744
744
|
role: se,
|
|
745
|
-
selected:
|
|
745
|
+
selected: C.itemProps?.selected,
|
|
746
746
|
"aria-posinset": f ? W.positions.get(I.index) : void 0,
|
|
747
747
|
"aria-setsize": f ? W.total : void 0,
|
|
748
|
-
tabIndex:
|
|
748
|
+
tabIndex: C.itemProps?.disabled || i ? -1 : 0
|
|
749
749
|
}
|
|
750
750
|
)
|
|
751
751
|
},
|
|
@@ -858,7 +858,7 @@ const Se = V((e, o) => {
|
|
|
858
858
|
[n]
|
|
859
859
|
), v = H.useCallback(() => {
|
|
860
860
|
m(""), t?.();
|
|
861
|
-
}, [t]), g = H.useMemo(() => l.trim().replace(/\s+/g, " "), [l]), _ = g.length > 0,
|
|
861
|
+
}, [t]), g = H.useMemo(() => l.trim().replace(/\s+/g, " "), [l]), _ = g.length > 0, k = H.useMemo(() => g.toLowerCase(), [g]), b = H.useMemo(() => g ? g.split(" ") : [], [g]), E = H.useMemo(
|
|
862
862
|
() => ({
|
|
863
863
|
placeholder: e ?? c.placeholder,
|
|
864
864
|
name: o ?? "search",
|
|
@@ -884,7 +884,7 @@ const Se = V((e, o) => {
|
|
|
884
884
|
"aria-disabled": !0,
|
|
885
885
|
title: c.noResults,
|
|
886
886
|
groupId: "emptySearch",
|
|
887
|
-
icon:
|
|
887
|
+
icon: Ct,
|
|
888
888
|
size: "sm",
|
|
889
889
|
as: "div"
|
|
890
890
|
}
|
|
@@ -897,13 +897,13 @@ const Se = V((e, o) => {
|
|
|
897
897
|
if (!_) return { selectedItems: [], results: [] };
|
|
898
898
|
const w = [], p = [];
|
|
899
899
|
for (const R of j)
|
|
900
|
-
R.checked === !0 && w.push({ ...R, groupId: "selected" }), (R.searchWords ?? []).some((K) => String(K).toLowerCase().includes(
|
|
900
|
+
R.checked === !0 && w.push({ ...R, groupId: "selected" }), (R.searchWords ?? []).some((K) => String(K).toLowerCase().includes(k)) && p.push({
|
|
901
901
|
...R,
|
|
902
902
|
groupId: "search",
|
|
903
903
|
highlightWords: b
|
|
904
904
|
});
|
|
905
905
|
return { selectedItems: w, results: p };
|
|
906
|
-
}, [_, j,
|
|
906
|
+
}, [_, j, k, b]), z = D.length, M = f.length, P = H.useMemo(
|
|
907
907
|
() => ({
|
|
908
908
|
search: {
|
|
909
909
|
hidden: !0,
|
|
@@ -939,7 +939,7 @@ const Se = V((e, o) => {
|
|
|
939
939
|
[P, _, c, z, M]
|
|
940
940
|
), S = H.useMemo(() => _ ? _n([...D, ...f]) : [], [_, D, f]), $ = H.useMemo(() => [...h || [], ...f || []], [h, f]), y = H.useMemo(() => _ ? z ? S : $ : s, [_, s, z, S, $]);
|
|
941
941
|
return {
|
|
942
|
-
search:
|
|
942
|
+
search: E,
|
|
943
943
|
results: D,
|
|
944
944
|
resultCount: z,
|
|
945
945
|
hasQuery: _,
|
|
@@ -962,10 +962,10 @@ const Se = V((e, o) => {
|
|
|
962
962
|
a11yMode: v = "menu",
|
|
963
963
|
open: g,
|
|
964
964
|
scrollToTopOnOpen: _,
|
|
965
|
-
autoFocusList:
|
|
965
|
+
autoFocusList: k,
|
|
966
966
|
id: b
|
|
967
967
|
}) => {
|
|
968
|
-
const
|
|
968
|
+
const E = wn({ ...o, items: n, groups: t }), j = e ? E.search : o, O = e && E.hasQuery && E.resultCount === 0, h = e ? E.items : n, f = e ? { ...t, ...E.groups } : t, D = v !== "combobox";
|
|
969
969
|
return c ? /* @__PURE__ */ a(
|
|
970
970
|
vn,
|
|
971
971
|
{
|
|
@@ -985,7 +985,7 @@ const Se = V((e, o) => {
|
|
|
985
985
|
open: g,
|
|
986
986
|
scrollToTopOnOpen: _,
|
|
987
987
|
autoActivateFirstItem: D,
|
|
988
|
-
autoFocusList:
|
|
988
|
+
autoFocusList: k
|
|
989
989
|
}
|
|
990
990
|
) : /* @__PURE__ */ a(
|
|
991
991
|
at,
|
|
@@ -1006,7 +1006,7 @@ const Se = V((e, o) => {
|
|
|
1006
1006
|
open: g,
|
|
1007
1007
|
scrollToTopOnOpen: _,
|
|
1008
1008
|
autoActivateFirstItem: D,
|
|
1009
|
-
autoFocusList:
|
|
1009
|
+
autoFocusList: k
|
|
1010
1010
|
}
|
|
1011
1011
|
);
|
|
1012
1012
|
}, In = "_media_1089b_3", xn = "_icon_1089b_10", On = "_avatar_1089b_14", Nn = "_avatarGroup_1089b_18", ie = {
|
|
@@ -1015,7 +1015,7 @@ const Se = V((e, o) => {
|
|
|
1015
1015
|
avatar: On,
|
|
1016
1016
|
avatarGroup: Nn
|
|
1017
1017
|
};
|
|
1018
|
-
function
|
|
1018
|
+
function kn(e) {
|
|
1019
1019
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null || we(e);
|
|
1020
1020
|
}
|
|
1021
1021
|
const He = ({ className: e, loading: o, icon: n, children: t }) => {
|
|
@@ -1023,13 +1023,13 @@ const He = ({ className: e, loading: o, icon: n, children: t }) => {
|
|
|
1023
1023
|
return null;
|
|
1024
1024
|
if (o)
|
|
1025
1025
|
return /* @__PURE__ */ a("div", { className: T(ie.icon, e), children: /* @__PURE__ */ a(Q, { svgElement: Se, loading: !0 }) });
|
|
1026
|
-
const r =
|
|
1026
|
+
const r = Ce(n) ? "avatar" : Ee(n) ? "avatarGroup" : (Pe(n), "icon");
|
|
1027
1027
|
return /* @__PURE__ */ x("div", { className: T(ie.media, e), "data-variant": r, children: [
|
|
1028
|
-
|
|
1028
|
+
Ce(n) && /* @__PURE__ */ a($e, { ...n, className: ie.avatar }) || Ee(n) && /* @__PURE__ */ a(be, { ...n, className: ie.avatarGroup }) || Pe(n) && /* @__PURE__ */ a(Q, { ...n, className: ie.icon }) || kn(n) && /* @__PURE__ */ a(Q, { className: ie.icon, children: n }) || /* @__PURE__ */ a(Q, { className: ie.icon, svgElement: n }),
|
|
1029
1029
|
t
|
|
1030
1030
|
] });
|
|
1031
|
-
},
|
|
1032
|
-
heading:
|
|
1031
|
+
}, Cn = "_heading_1dyne_1", En = {
|
|
1032
|
+
heading: Cn
|
|
1033
1033
|
}, ae = ({
|
|
1034
1034
|
id: e,
|
|
1035
1035
|
loading: o,
|
|
@@ -1050,7 +1050,7 @@ const He = ({ className: e, loading: o, icon: n, children: t }) => {
|
|
|
1050
1050
|
g,
|
|
1051
1051
|
{
|
|
1052
1052
|
id: e,
|
|
1053
|
-
className: T(
|
|
1053
|
+
className: T(En.heading, m),
|
|
1054
1054
|
style: i,
|
|
1055
1055
|
"data-size": r,
|
|
1056
1056
|
"data-leading": s,
|
|
@@ -1111,9 +1111,9 @@ const He = ({ className: e, loading: o, icon: n, children: t }) => {
|
|
|
1111
1111
|
name: v,
|
|
1112
1112
|
value: g,
|
|
1113
1113
|
checked: _,
|
|
1114
|
-
icon:
|
|
1114
|
+
icon: k,
|
|
1115
1115
|
label: b,
|
|
1116
|
-
badge:
|
|
1116
|
+
badge: E,
|
|
1117
1117
|
controls: j,
|
|
1118
1118
|
title: O,
|
|
1119
1119
|
description: h,
|
|
@@ -1130,7 +1130,7 @@ const He = ({ className: e, loading: o, icon: n, children: t }) => {
|
|
|
1130
1130
|
}) => {
|
|
1131
1131
|
const p = typeof b == "function" ? b() : b, R = Nt(w);
|
|
1132
1132
|
if (n === "checkbox" || n === "radio") {
|
|
1133
|
-
const K =
|
|
1133
|
+
const K = k || (_ ? nt : nn);
|
|
1134
1134
|
return /* @__PURE__ */ x(
|
|
1135
1135
|
"label",
|
|
1136
1136
|
{
|
|
@@ -1195,7 +1195,7 @@ const He = ({ className: e, loading: o, icon: n, children: t }) => {
|
|
|
1195
1195
|
}
|
|
1196
1196
|
),
|
|
1197
1197
|
/* @__PURE__ */ x(De, { children: [
|
|
1198
|
-
|
|
1198
|
+
E && /* @__PURE__ */ a(ee, { ...E }),
|
|
1199
1199
|
!M && j
|
|
1200
1200
|
] })
|
|
1201
1201
|
]
|
|
@@ -1230,7 +1230,7 @@ const He = ({ className: e, loading: o, icon: n, children: t }) => {
|
|
|
1230
1230
|
role: n === "menuItem" ? "menuitem" : n,
|
|
1231
1231
|
...R,
|
|
1232
1232
|
children: [
|
|
1233
|
-
|
|
1233
|
+
k && /* @__PURE__ */ a(He, { icon: k, className: q.media }),
|
|
1234
1234
|
/* @__PURE__ */ a(
|
|
1235
1235
|
Ke,
|
|
1236
1236
|
{
|
|
@@ -1254,7 +1254,7 @@ const He = ({ className: e, loading: o, icon: n, children: t }) => {
|
|
|
1254
1254
|
}
|
|
1255
1255
|
),
|
|
1256
1256
|
/* @__PURE__ */ x(De, { children: [
|
|
1257
|
-
|
|
1257
|
+
E && /* @__PURE__ */ a(ee, { ...E }),
|
|
1258
1258
|
!M && j,
|
|
1259
1259
|
z && /* @__PURE__ */ a(Q, { svgElement: G, className: q.linkIcon })
|
|
1260
1260
|
] })
|
|
@@ -1285,27 +1285,27 @@ const He = ({ className: e, loading: o, icon: n, children: t }) => {
|
|
|
1285
1285
|
minLength: i,
|
|
1286
1286
|
...v
|
|
1287
1287
|
}) => {
|
|
1288
|
-
const g =
|
|
1288
|
+
const g = ke(), [_, k] = le(!1), b = v.id || `search-field-${g}`, E = `${b}-listbox`, [j, O] = le(void 0), h = "searchfield-clear-button-" + ke(), f = de(() => !m || !u || typeof i == "number" && typeof u == "string" && u.length < i ? !1 : _, [m, _, i, u]), D = de(() => (m?.items ?? []).map((y) => ({
|
|
1289
1289
|
...y,
|
|
1290
1290
|
onClick: () => {
|
|
1291
|
-
y.onClick?.(),
|
|
1291
|
+
y.onClick?.(), k(!1);
|
|
1292
1292
|
}
|
|
1293
1293
|
})), [m]), z = (y) => {
|
|
1294
1294
|
if (y.key === "Enter" && f) {
|
|
1295
|
-
m?.items?.[0]?.onClick?.(),
|
|
1295
|
+
m?.items?.[0]?.onClick?.(), k(!1);
|
|
1296
1296
|
return;
|
|
1297
1297
|
}
|
|
1298
1298
|
if (y.key === "Escape" && f) {
|
|
1299
|
-
y.preventDefault(), y.stopPropagation(),
|
|
1299
|
+
y.preventDefault(), y.stopPropagation(), k(!1), m?.onClose(), document.getElementById(b)?.focus();
|
|
1300
1300
|
return;
|
|
1301
1301
|
}
|
|
1302
|
-
v.onKeyDown?.(y),
|
|
1302
|
+
v.onKeyDown?.(y), k(!0);
|
|
1303
1303
|
}, M = () => {
|
|
1304
|
-
|
|
1304
|
+
k(!0);
|
|
1305
1305
|
}, P = (y) => {
|
|
1306
1306
|
if (!_) return;
|
|
1307
1307
|
const w = y.relatedTarget;
|
|
1308
|
-
w && y.currentTarget.contains(w) ||
|
|
1308
|
+
w && y.currentTarget.contains(w) || k(!1);
|
|
1309
1309
|
}, A = (y) => {
|
|
1310
1310
|
y.preventDefault();
|
|
1311
1311
|
}, S = (y) => {
|
|
@@ -1341,7 +1341,7 @@ const He = ({ className: e, loading: o, icon: n, children: t }) => {
|
|
|
1341
1341
|
"aria-autocomplete": "list",
|
|
1342
1342
|
"aria-expanded": !!f,
|
|
1343
1343
|
"aria-haspopup": "listbox",
|
|
1344
|
-
"aria-controls":
|
|
1344
|
+
"aria-controls": E,
|
|
1345
1345
|
"aria-activedescendant": f ? j : void 0,
|
|
1346
1346
|
onFocus: M
|
|
1347
1347
|
}
|
|
@@ -1375,7 +1375,7 @@ const He = ({ className: e, loading: o, icon: n, children: t }) => {
|
|
|
1375
1375
|
lt,
|
|
1376
1376
|
{
|
|
1377
1377
|
...m,
|
|
1378
|
-
id:
|
|
1378
|
+
id: E,
|
|
1379
1379
|
items: D,
|
|
1380
1380
|
groups: m?.groups,
|
|
1381
1381
|
keyboardEvents: !0,
|
|
@@ -1446,9 +1446,9 @@ const He = ({ className: e, loading: o, icon: n, children: t }) => {
|
|
|
1446
1446
|
onClose: v,
|
|
1447
1447
|
color: g,
|
|
1448
1448
|
onSubmit: _,
|
|
1449
|
-
activeDescendantId:
|
|
1449
|
+
activeDescendantId: k,
|
|
1450
1450
|
useFixedPosition: b = !1,
|
|
1451
|
-
expanded:
|
|
1451
|
+
expanded: E = !1
|
|
1452
1452
|
}) => {
|
|
1453
1453
|
const j = Z(null), O = Z(null), h = Z(i);
|
|
1454
1454
|
Y(() => {
|
|
@@ -1461,8 +1461,8 @@ const He = ({ className: e, loading: o, icon: n, children: t }) => {
|
|
|
1461
1461
|
}), z = Ye(() => {
|
|
1462
1462
|
if (i && j.current && O.current) {
|
|
1463
1463
|
const A = j.current.getBoundingClientRect(), S = O.current.getBoundingClientRect(), $ = window.innerHeight, y = window.innerWidth, w = 16, p = $ - A.bottom, R = A.top, F = y - A.right - S.width, G = p < 250 && R > p, K = G ? "top" : "bottom", W = (G ? R : p) - w, I = F < w ? "right" : "left";
|
|
1464
|
-
D((
|
|
1465
|
-
...
|
|
1464
|
+
D((C) => ({
|
|
1465
|
+
...C,
|
|
1466
1466
|
yDir: K,
|
|
1467
1467
|
maxHeight: W,
|
|
1468
1468
|
xDir: I,
|
|
@@ -1550,12 +1550,12 @@ const He = ({ className: e, loading: o, icon: n, children: t }) => {
|
|
|
1550
1550
|
"aria-hidden": !i,
|
|
1551
1551
|
"data-variant": s,
|
|
1552
1552
|
"data-color": g,
|
|
1553
|
-
"data-expanded":
|
|
1553
|
+
"data-expanded": E,
|
|
1554
1554
|
"data-size": o,
|
|
1555
1555
|
tabIndex: -1,
|
|
1556
1556
|
role: "menu",
|
|
1557
1557
|
"aria-modal": s === "drawer-dropdown" ? !0 : void 0,
|
|
1558
|
-
"aria-activedescendant":
|
|
1558
|
+
"aria-activedescendant": k,
|
|
1559
1559
|
children: [
|
|
1560
1560
|
/* @__PURE__ */ x("header", { className: me.header, children: [
|
|
1561
1561
|
/* @__PURE__ */ a("h2", { className: me.title, children: d }),
|
|
@@ -1625,9 +1625,9 @@ const ir = "_item_he2p8_3", cr = "_border_he2p8_75", dr = "_header_he2p8_86", ur
|
|
|
1625
1625
|
recipientLabel: v = "to",
|
|
1626
1626
|
grouped: g = !1,
|
|
1627
1627
|
updatedAt: _,
|
|
1628
|
-
updatedAtLabel:
|
|
1628
|
+
updatedAtLabel: k,
|
|
1629
1629
|
archived: b,
|
|
1630
|
-
archivedAt:
|
|
1630
|
+
archivedAt: E,
|
|
1631
1631
|
archivedAtLabel: j,
|
|
1632
1632
|
trashed: O,
|
|
1633
1633
|
trashedAt: h,
|
|
@@ -1649,7 +1649,7 @@ const ir = "_item_he2p8_3", cr = "_border_he2p8_75", dr = "_header_he2p8_86", ur
|
|
|
1649
1649
|
summary: W,
|
|
1650
1650
|
highlightWords: X,
|
|
1651
1651
|
id: I,
|
|
1652
|
-
...
|
|
1652
|
+
...C
|
|
1653
1653
|
}) => {
|
|
1654
1654
|
const B = d ? "select" : n;
|
|
1655
1655
|
return /* @__PURE__ */ x(
|
|
@@ -1667,7 +1667,7 @@ const ir = "_item_he2p8_3", cr = "_border_he2p8_75", dr = "_header_he2p8_86", ur
|
|
|
1667
1667
|
"data-archived": b,
|
|
1668
1668
|
"data-loading": r,
|
|
1669
1669
|
children: [
|
|
1670
|
-
/* @__PURE__ */ a(St, { ...
|
|
1670
|
+
/* @__PURE__ */ a(St, { ...C, className: J.link, as: e, children: /* @__PURE__ */ x("div", { className: J.border, children: [
|
|
1671
1671
|
/* @__PURE__ */ x("header", { className: J.header, children: [
|
|
1672
1672
|
/* @__PURE__ */ x(
|
|
1673
1673
|
ae,
|
|
@@ -1720,8 +1720,8 @@ const ir = "_item_he2p8_3", cr = "_border_he2p8_75", dr = "_header_he2p8_86", ur
|
|
|
1720
1720
|
sentCount: y,
|
|
1721
1721
|
receivedCount: w,
|
|
1722
1722
|
updatedAt: _,
|
|
1723
|
-
updatedAtLabel:
|
|
1724
|
-
archivedAt:
|
|
1723
|
+
updatedAtLabel: k,
|
|
1724
|
+
archivedAt: E,
|
|
1725
1725
|
archivedAtLabel: j,
|
|
1726
1726
|
trashedAt: h,
|
|
1727
1727
|
trashedAtLabel: f,
|
|
@@ -1757,23 +1757,23 @@ const br = ({
|
|
|
1757
1757
|
draftsLabel: v,
|
|
1758
1758
|
sentCount: g = 0,
|
|
1759
1759
|
receivedCount: _ = 0,
|
|
1760
|
-
attachmentsCount:
|
|
1760
|
+
attachmentsCount: k = 0,
|
|
1761
1761
|
attachmentsLabel: b,
|
|
1762
|
-
transmissionsLabel:
|
|
1762
|
+
transmissionsLabel: E,
|
|
1763
1763
|
activityLog: j,
|
|
1764
1764
|
extendedStatusLabel: O,
|
|
1765
1765
|
tooltips: h = {}
|
|
1766
1766
|
}) => /* @__PURE__ */ x(Rt, { className: e, size: "xs", children: [
|
|
1767
|
-
n && /* @__PURE__ */ a(
|
|
1767
|
+
n && /* @__PURE__ */ a(kr, { tooltip: h.status, loading: o, ...n }),
|
|
1768
1768
|
O && /* @__PURE__ */ a(ee, { tooltip: h.extendedStatus, variant: "outline", children: O }),
|
|
1769
1769
|
v && /* @__PURE__ */ a(ee, { tooltip: h.drafts, variant: "dotted", children: v }),
|
|
1770
1770
|
r && /* @__PURE__ */ x(re, { tooltip: h.updatedAt, loading: o, datetime: r, size: "xs", children: [
|
|
1771
1771
|
/* @__PURE__ */ a("strong", { children: t && t.name + ", " }),
|
|
1772
1772
|
s
|
|
1773
1773
|
] }),
|
|
1774
|
-
d && u && /* @__PURE__ */ a(re, { tooltip: h.dueAt, loading: o, datetime: d, size: "xs", icon:
|
|
1775
|
-
|
|
1776
|
-
|
|
1774
|
+
d && u && /* @__PURE__ */ a(re, { tooltip: h.dueAt, loading: o, datetime: d, size: "xs", icon: Et, children: u }),
|
|
1775
|
+
k > 0 && /* @__PURE__ */ a(re, { tooltip: h.attachments, loading: o, size: "xs", icon: zt, children: b || k }),
|
|
1776
|
+
E && /* @__PURE__ */ a(re, { tooltip: h.transmissions, loading: o, size: "xs", icon: Jt, children: E }),
|
|
1777
1777
|
g > 0 && /* @__PURE__ */ a(re, { tooltip: h.sent, size: "xs", icon: nt, children: g }),
|
|
1778
1778
|
_ > 0 && /* @__PURE__ */ a(re, { tooltip: h.received, size: "xs", icon: Tt, children: _ }),
|
|
1779
1779
|
i && /* @__PURE__ */ a(
|
|
@@ -1835,9 +1835,9 @@ function Ir(e) {
|
|
|
1835
1835
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null || we(e);
|
|
1836
1836
|
}
|
|
1837
1837
|
const qe = ({ size: e = "xs", icon: o, progress: n }) => !o && typeof n != "number" ? !1 : /* @__PURE__ */ x("span", { className: fe.media, "data-size": e, children: [
|
|
1838
|
-
|
|
1838
|
+
Ce(o) && /* @__PURE__ */ a($e, { ...o, className: fe.avatar }) || Ee(o) && /* @__PURE__ */ a(be, { ...o, className: fe.avatarGroup }) || Pe(o) && /* @__PURE__ */ a(Q, { ...o, className: fe.icon }) || Ir(o) && o || /* @__PURE__ */ a(Q, { svgElement: o, className: fe.icon }),
|
|
1839
1839
|
n && /* @__PURE__ */ a(jt, { value: n, className: fe.icon })
|
|
1840
|
-
] }), xr = "
|
|
1840
|
+
] }), xr = "_item_ugak2_1", Or = "_label_ugak2_53", Ne = {
|
|
1841
1841
|
item: xr,
|
|
1842
1842
|
label: Or
|
|
1843
1843
|
}, re = ({
|
|
@@ -1854,7 +1854,7 @@ const qe = ({ size: e = "xs", icon: o, progress: n }) => !o && typeof n != "numb
|
|
|
1854
1854
|
tooltip: m,
|
|
1855
1855
|
...i
|
|
1856
1856
|
}) => {
|
|
1857
|
-
const v = e || l ? "time" : "span";
|
|
1857
|
+
const v = e || (l ? "time" : "span");
|
|
1858
1858
|
return m ? /* @__PURE__ */ a(Fe, { content: m, placement: "bottom", children: /* @__PURE__ */ a(
|
|
1859
1859
|
v,
|
|
1860
1860
|
{
|
|
@@ -1886,7 +1886,7 @@ const qe = ({ size: e = "xs", icon: o, progress: n }) => !o && typeof n != "numb
|
|
|
1886
1886
|
);
|
|
1887
1887
|
};
|
|
1888
1888
|
var Nr = /* @__PURE__ */ ((e) => (e["not-applicable"] = "NOT_APPLICABLE", e.draft = "DRAFT", e.awaiting = "AWAITING", e.completed = "COMPLETED", e["in-progress"] = "IN_PROGRESS", e["requires-attention"] = "REQUIRES_ATTENTION", e))(Nr || {});
|
|
1889
|
-
const
|
|
1889
|
+
const kr = ({ loading: e, value: o = "not-applicable", label: n, tooltip: t }) => {
|
|
1890
1890
|
if (e)
|
|
1891
1891
|
return null;
|
|
1892
1892
|
switch (o) {
|
|
@@ -1899,9 +1899,9 @@ const Cr = ({ loading: e, value: o = "not-applicable", label: n, tooltip: t }) =
|
|
|
1899
1899
|
default:
|
|
1900
1900
|
return /* @__PURE__ */ a(ee, { tooltip: t, variant: "outline", children: n || o });
|
|
1901
1901
|
}
|
|
1902
|
-
},
|
|
1903
|
-
header:
|
|
1904
|
-
label:
|
|
1902
|
+
}, Cr = "_header_29hv7_1", Er = "_label_29hv7_27", zr = "_link_29hv7_43", Pr = "_badge_29hv7_47", $r = "_linkIcon_29hv7_51", Sr = "_linkFocus_29hv7_61", Rr = "_controls_29hv7_69", oe = {
|
|
1903
|
+
header: Cr,
|
|
1904
|
+
label: Er,
|
|
1905
1905
|
link: zr,
|
|
1906
1906
|
badge: Pr,
|
|
1907
1907
|
linkIcon: $r,
|
|
@@ -1923,9 +1923,9 @@ const Cr = ({ loading: e, value: o = "not-applicable", label: n, tooltip: t }) =
|
|
|
1923
1923
|
onKeyPress: v,
|
|
1924
1924
|
tabIndex: g,
|
|
1925
1925
|
size: _,
|
|
1926
|
-
title:
|
|
1926
|
+
title: k,
|
|
1927
1927
|
description: b,
|
|
1928
|
-
icon:
|
|
1928
|
+
icon: E,
|
|
1929
1929
|
active: j,
|
|
1930
1930
|
badge: O,
|
|
1931
1931
|
controls: h,
|
|
@@ -1934,7 +1934,7 @@ const Cr = ({ loading: e, value: o = "not-applicable", label: n, tooltip: t }) =
|
|
|
1934
1934
|
ariaLabel: z,
|
|
1935
1935
|
ariaControlsId: M
|
|
1936
1936
|
}) => {
|
|
1937
|
-
const P = d ? c ? Ut : Kt : u ? rt : void 0, A = () => O && !r && typeof O == "object" && "label" in O ? /* @__PURE__ */ a(ee, { ...O, className: oe.badge }) : we(O) ? O : null, S = z !== void 0 ? z : typeof
|
|
1937
|
+
const P = d ? c ? Ut : Kt : u ? rt : void 0, A = () => O && !r && typeof O == "object" && "label" in O ? /* @__PURE__ */ a(ee, { ...O, className: oe.badge }) : we(O) ? O : null, S = z !== void 0 ? z : typeof k == "string" ? k : void 0, $ = ke();
|
|
1938
1938
|
return /* @__PURE__ */ x(
|
|
1939
1939
|
"div",
|
|
1940
1940
|
{
|
|
@@ -1964,14 +1964,14 @@ const Cr = ({ loading: e, value: o = "not-applicable", label: n, tooltip: t }) =
|
|
|
1964
1964
|
children: [
|
|
1965
1965
|
n && /* @__PURE__ */ a("div", { className: oe.linkFocus, "aria-hidden": "true" }),
|
|
1966
1966
|
l && /* @__PURE__ */ a($n, { ...l, className: oe.select }),
|
|
1967
|
-
/* @__PURE__ */ a(Gr, { loading: r, icon:
|
|
1967
|
+
/* @__PURE__ */ a(Gr, { loading: r, icon: E }),
|
|
1968
1968
|
/* @__PURE__ */ a(
|
|
1969
1969
|
Ar,
|
|
1970
1970
|
{
|
|
1971
1971
|
size: _,
|
|
1972
1972
|
loading: r,
|
|
1973
1973
|
highlightWords: o,
|
|
1974
|
-
title:
|
|
1974
|
+
title: k,
|
|
1975
1975
|
description: b,
|
|
1976
1976
|
id: $,
|
|
1977
1977
|
className: oe.label,
|
|
@@ -2056,7 +2056,7 @@ function Tr(e) {
|
|
|
2056
2056
|
return typeof e == "string" || typeof e == "number" || typeof e == "boolean" || e === null || we(e);
|
|
2057
2057
|
}
|
|
2058
2058
|
const Gr = ({ loading: e, size: o, icon: n, theme: t, badge: r }) => n ? e ? /* @__PURE__ */ a(Q, { className: ce.wrapper, svgElement: Se, loading: !0 }) : /* @__PURE__ */ x("div", { className: ce.wrapper, "data-size": o, children: [
|
|
2059
|
-
|
|
2059
|
+
Ce(n) && /* @__PURE__ */ a($e, { ...n, className: ce.avatar }) || Ee(n) && /* @__PURE__ */ a(be, { ...n, className: ce.avatarGroup }) || Pe(n) && /* @__PURE__ */ a(Q, { ...n, theme: n.theme || t, className: ce.icon }) || Tr(n) && n || /* @__PURE__ */ a(Q, { theme: t, svgElement: n, className: ce.icon }),
|
|
2060
2060
|
r && /* @__PURE__ */ a(ee, { ...r, className: ce.badge })
|
|
2061
2061
|
] }) : null, Hr = "_item_1nwey_3", Kr = {
|
|
2062
2062
|
item: Hr
|
|
@@ -2076,9 +2076,9 @@ const Gr = ({ loading: e, size: o, icon: n, theme: t, badge: r }) => n ? e ? /*
|
|
|
2076
2076
|
title: v,
|
|
2077
2077
|
description: g,
|
|
2078
2078
|
badge: _,
|
|
2079
|
-
linkIcon:
|
|
2079
|
+
linkIcon: k = !1,
|
|
2080
2080
|
select: b,
|
|
2081
|
-
selected:
|
|
2081
|
+
selected: E,
|
|
2082
2082
|
controls: j,
|
|
2083
2083
|
children: O,
|
|
2084
2084
|
interactive: h,
|
|
@@ -2086,7 +2086,7 @@ const Gr = ({ loading: e, size: o, icon: n, theme: t, badge: r }) => n ? e ? /*
|
|
|
2086
2086
|
containerAs: D,
|
|
2087
2087
|
...z
|
|
2088
2088
|
}) => {
|
|
2089
|
-
const M = typeof i == "function" ? i() : i, P =
|
|
2089
|
+
const M = typeof i == "function" ? i() : i, P = ke();
|
|
2090
2090
|
return /* @__PURE__ */ x(
|
|
2091
2091
|
Mt,
|
|
2092
2092
|
{
|
|
@@ -2097,7 +2097,7 @@ const Gr = ({ loading: e, size: o, icon: n, theme: t, badge: r }) => n ? e ? /*
|
|
|
2097
2097
|
shadow: t,
|
|
2098
2098
|
border: r,
|
|
2099
2099
|
disabled: d,
|
|
2100
|
-
selected:
|
|
2100
|
+
selected: E,
|
|
2101
2101
|
expanded: c,
|
|
2102
2102
|
loading: s,
|
|
2103
2103
|
interactive: h,
|
|
@@ -2109,7 +2109,7 @@ const Gr = ({ loading: e, size: o, icon: n, theme: t, badge: r }) => n ? e ? /*
|
|
|
2109
2109
|
{
|
|
2110
2110
|
color: o,
|
|
2111
2111
|
loading: s,
|
|
2112
|
-
linkIcon:
|
|
2112
|
+
linkIcon: k,
|
|
2113
2113
|
disabled: d,
|
|
2114
2114
|
collapsible: u,
|
|
2115
2115
|
expanded: c,
|
|
@@ -2286,7 +2286,7 @@ export {
|
|
|
2286
2286
|
br as d,
|
|
2287
2287
|
gr as e,
|
|
2288
2288
|
Nr as f,
|
|
2289
|
-
|
|
2289
|
+
kr as g,
|
|
2290
2290
|
sr as h,
|
|
2291
2291
|
Pe as i,
|
|
2292
2292
|
He as j,
|