@altinn/altinn-components 0.65.0 → 0.66.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/{ToolbarSearch-DeQTx93w.js → ToolbarSearch-DFYx6gIb.js} +704 -697
- 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/AuthEvidence/AuthEvidence.js +1 -1
- package/dist/components/AuthEvidence/AuthEvidenceItem.js +1 -1
- package/dist/components/AuthEvidence/AuthEvidenceOwner.js +1 -1
- package/dist/components/AuthEvidence/AuthEvidenceParent.js +1 -1
- package/dist/components/AuthEvidence/AuthEvidenceService.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 +1 -1
- package/dist/components/Dialog/DialogList.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/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/ListItemHeader.js +1 -1
- package/dist/components/List/ListItemIcon.js +1 -1
- package/dist/components/List/ListItemLabel.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/Pagination/Pagination.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/SettingsListVirtual.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 +36 -24
- package/dist/components/Toolbar/ToolbarFilterMenu.js +74 -71
- 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/dist/types/lib/components/Menu/MenuItem.d.ts +3 -1
- package/dist/types/lib/components/Menu/useMenuSearch.d.ts +1 -0
- package/dist/types/lib/components/Toolbar/Toolbar.stories.d.ts +1 -0
- package/dist/types/lib/components/Toolbar/ToolbarFilterButton.d.ts +3 -1
- package/dist/types/lib/components/Toolbar/ToolbarFilterMenu.d.ts +1 -1
- package/dist/types/lib/components/Toolbar/ToolbarMenu.d.ts +3 -1
- package/dist/types/lib/components/Toolbar/ToolbarSearch.d.ts +3 -1
- package/dist/types/lib/components/Toolbar/ToolbarSearch.stories.d.ts +3 -1
- package/dist/types/lib/components/Toolbar/useFilter.d.ts +7 -0
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as a, jsxs as x, Fragment as xe } from "react/jsx-runtime";
|
|
3
3
|
import * as G from "react";
|
|
4
|
-
import
|
|
4
|
+
import C, { forwardRef as Q, useRef as ee, useState as oe, useMemo as ie, useEffect as Y, Fragment as He, useLayoutEffect as Ce, createContext as ot, useContext as at, isValidElement as Ge, useId as De, useCallback as qe, memo as Oe, createElement as st } from "react";
|
|
5
5
|
import "./tooltip-Ct39-719.js";
|
|
6
|
-
import { c as
|
|
6
|
+
import { c as U } from "./index-p1eeF8LQ.js";
|
|
7
7
|
import { useEscapeKey as it } from "./hooks/useEscapeKey.js";
|
|
8
8
|
import "./components/Typography/Link.js";
|
|
9
9
|
import { Button as ve } from "./components/Button/Button.js";
|
|
@@ -19,7 +19,7 @@ import { Input as ut } from "./components/Forms/Input.js";
|
|
|
19
19
|
import { Field as mt } from "./components/Forms/Field.js";
|
|
20
20
|
import { Label as ft } from "./components/Forms/Label.js";
|
|
21
21
|
import { TypingIcon as pt } from "./components/Icon/TypingIcon.js";
|
|
22
|
-
import { u as
|
|
22
|
+
import { u as X } from "./useId-BVFxCjkq.js";
|
|
23
23
|
import { isAvatarProps as Ee, Avatar as je } from "./components/Avatar/Avatar.js";
|
|
24
24
|
import { isAvatarGroupProps as Se, AvatarGroup as be } from "./components/Avatar/AvatarGroup.js";
|
|
25
25
|
import { ItemControls as Re } from "./components/Item/ItemControls.js";
|
|
@@ -44,14 +44,14 @@ import './assets/ToolbarSearch.css';var Nt = function(e, o) {
|
|
|
44
44
|
o.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (n[t[r]] = e[t[r]]);
|
|
45
45
|
return n;
|
|
46
46
|
};
|
|
47
|
-
const kt =
|
|
47
|
+
const kt = Q((e, o) => {
|
|
48
48
|
var { title: n, titleId: t } = e, r = Nt(e, ["title", "titleId"]);
|
|
49
|
-
let s =
|
|
50
|
-
return s = n ? t || "title-" + s : void 0,
|
|
49
|
+
let s = X();
|
|
50
|
+
return s = n ? t || "title-" + s : void 0, C.createElement(
|
|
51
51
|
"svg",
|
|
52
52
|
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: o, "aria-labelledby": s }, r),
|
|
53
|
-
n ?
|
|
54
|
-
|
|
53
|
+
n ? C.createElement("title", { id: s }, n) : null,
|
|
54
|
+
C.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M4 3.25a.75.75 0 0 0-.75.75v3.5c0 .414.336.75.75.75h16a.75.75 0 0 0 .75-.75V4a.75.75 0 0 0-.75-.75zm15.5 6a.25.25 0 0 1 .25.25V19A1.75 1.75 0 0 1 18 20.75H6A1.75 1.75 0 0 1 4.25 19V9.5a.25.25 0 0 1 .25-.25zm-4.75 3.25a.75.75 0 0 1-.75.75h-4a.75.75 0 0 1 0-1.5h4a.75.75 0 0 1 .75.75", clipRule: "evenodd" })
|
|
55
55
|
);
|
|
56
56
|
});
|
|
57
57
|
var Ct = function(e, o) {
|
|
@@ -62,14 +62,14 @@ var Ct = function(e, o) {
|
|
|
62
62
|
o.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (n[t[r]] = e[t[r]]);
|
|
63
63
|
return n;
|
|
64
64
|
};
|
|
65
|
-
const Et =
|
|
65
|
+
const Et = Q((e, o) => {
|
|
66
66
|
var { title: n, titleId: t } = e, r = Ct(e, ["title", "titleId"]);
|
|
67
|
-
let s =
|
|
68
|
-
return s = n ? t || "title-" + s : void 0,
|
|
67
|
+
let s = X();
|
|
68
|
+
return s = n ? t || "title-" + s : void 0, C.createElement(
|
|
69
69
|
"svg",
|
|
70
70
|
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: o, "aria-labelledby": s }, r),
|
|
71
|
-
n ?
|
|
72
|
-
|
|
71
|
+
n ? C.createElement("title", { id: s }, n) : null,
|
|
72
|
+
C.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" })
|
|
73
73
|
);
|
|
74
74
|
});
|
|
75
75
|
var St = function(e, o) {
|
|
@@ -80,14 +80,14 @@ var St = function(e, o) {
|
|
|
80
80
|
o.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (n[t[r]] = e[t[r]]);
|
|
81
81
|
return n;
|
|
82
82
|
};
|
|
83
|
-
const Qe =
|
|
83
|
+
const Qe = Q((e, o) => {
|
|
84
84
|
var { title: n, titleId: t } = e, r = St(e, ["title", "titleId"]);
|
|
85
|
-
let s =
|
|
86
|
-
return s = n ? t || "title-" + s : void 0,
|
|
85
|
+
let s = X();
|
|
86
|
+
return s = n ? t || "title-" + s : void 0, C.createElement(
|
|
87
87
|
"svg",
|
|
88
88
|
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: o, "aria-labelledby": s }, r),
|
|
89
|
-
n ?
|
|
90
|
-
|
|
89
|
+
n ? C.createElement("title", { id: s }, n) : null,
|
|
90
|
+
C.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M18.998 6.94a.75.75 0 0 1 .063 1.058l-8 9a.75.75 0 0 1-1.091.032l-5-5a.75.75 0 1 1 1.06-1.06l4.438 4.437 7.471-8.405A.75.75 0 0 1 19 6.939", clipRule: "evenodd" })
|
|
91
91
|
);
|
|
92
92
|
});
|
|
93
93
|
var Rt = function(e, o) {
|
|
@@ -98,14 +98,14 @@ var Rt = function(e, o) {
|
|
|
98
98
|
o.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (n[t[r]] = e[t[r]]);
|
|
99
99
|
return n;
|
|
100
100
|
};
|
|
101
|
-
const zt =
|
|
101
|
+
const zt = Q((e, o) => {
|
|
102
102
|
var { title: n, titleId: t } = e, r = Rt(e, ["title", "titleId"]);
|
|
103
|
-
let s =
|
|
104
|
-
return s = n ? t || "title-" + s : void 0,
|
|
103
|
+
let s = X();
|
|
104
|
+
return s = n ? t || "title-" + s : void 0, C.createElement(
|
|
105
105
|
"svg",
|
|
106
106
|
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: o, "aria-labelledby": s }, r),
|
|
107
|
-
n ?
|
|
108
|
-
|
|
107
|
+
n ? C.createElement("title", { id: s }, n) : null,
|
|
108
|
+
C.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M9.47 5.97a.75.75 0 0 1 1.06 0l5.5 5.5a.75.75 0 0 1 0 1.06l-5.5 5.5a.75.75 0 1 1-1.06-1.06L14.44 12 9.47 7.03a.75.75 0 0 1 0-1.06", clipRule: "evenodd" })
|
|
109
109
|
);
|
|
110
110
|
});
|
|
111
111
|
var Pt = function(e, o) {
|
|
@@ -116,14 +116,14 @@ var Pt = function(e, o) {
|
|
|
116
116
|
o.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (n[t[r]] = e[t[r]]);
|
|
117
117
|
return n;
|
|
118
118
|
};
|
|
119
|
-
const Be =
|
|
119
|
+
const Be = Q((e, o) => {
|
|
120
120
|
var { title: n, titleId: t } = e, r = Pt(e, ["title", "titleId"]);
|
|
121
|
-
let s =
|
|
122
|
-
return s = n ? t || "title-" + s : void 0,
|
|
121
|
+
let s = X();
|
|
122
|
+
return s = n ? t || "title-" + s : void 0, C.createElement(
|
|
123
123
|
"svg",
|
|
124
124
|
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: o, "aria-labelledby": s }, r),
|
|
125
|
-
n ?
|
|
126
|
-
|
|
125
|
+
n ? C.createElement("title", { id: s }, n) : null,
|
|
126
|
+
C.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M12.53 4.47a.75.75 0 0 0-1.06 0l-3.5 3.5a.75.75 0 0 0 1.06 1.06L12 6.06l2.97 2.97a.75.75 0 1 0 1.06-1.06zm-3.5 10.5a.75.75 0 0 0-1.06 1.06l3.5 3.5a.75.75 0 0 0 1.06 0l3.5-3.5a.75.75 0 1 0-1.06-1.06L12 17.94z", clipRule: "evenodd" })
|
|
127
127
|
);
|
|
128
128
|
});
|
|
129
129
|
var Mt = function(e, o) {
|
|
@@ -134,14 +134,14 @@ var Mt = function(e, o) {
|
|
|
134
134
|
o.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (n[t[r]] = e[t[r]]);
|
|
135
135
|
return n;
|
|
136
136
|
};
|
|
137
|
-
const $t =
|
|
137
|
+
const $t = Q((e, o) => {
|
|
138
138
|
var { title: n, titleId: t } = e, r = Mt(e, ["title", "titleId"]);
|
|
139
|
-
let s =
|
|
140
|
-
return s = n ? t || "title-" + s : void 0,
|
|
139
|
+
let s = X();
|
|
140
|
+
return s = n ? t || "title-" + s : void 0, C.createElement(
|
|
141
141
|
"svg",
|
|
142
142
|
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: o, "aria-labelledby": s }, r),
|
|
143
|
-
n ?
|
|
144
|
-
|
|
143
|
+
n ? C.createElement("title", { id: s }, n) : null,
|
|
144
|
+
C.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M4.5 1.75a.75.75 0 0 1 .75.75v2.464a9.75 9.75 0 1 1 12.342 15.023.75.75 0 1 1-.86-1.229A8.251 8.251 0 1 0 6.084 6.25H9a.75.75 0 0 1 0 1.5H4.5A.75.75 0 0 1 3.75 7V2.5a.75.75 0 0 1 .75-.75M12.75 6a.75.75 0 0 0-1.5 0v6c0 .199.079.39.22.53l2.5 2.5a.75.75 0 1 0 1.06-1.06l-2.28-2.28zM3 11.25a.75.75 0 0 1 .75.75q0 .66.105 1.31a.75.75 0 0 1-1.481.24A10 10 0 0 1 2.25 12a.75.75 0 0 1 .75-.75m1.855 4.875a.75.75 0 0 0-1.299.75q.39.675.882 1.28a.75.75 0 1 0 1.163-.947 8 8 0 0 1-.746-1.083m1.995 3.294a.75.75 0 0 1 1.025-.274q.57.33 1.188.564a.75.75 0 1 1-.535 1.402 10 10 0 0 1-1.403-.667.75.75 0 0 1-.275-1.025m6.7 2.207a.75.75 0 1 0-.24-1.48q-.65.104-1.31.104a.75.75 0 0 0 0 1.5q.78 0 1.55-.124", clipRule: "evenodd" })
|
|
145
145
|
);
|
|
146
146
|
});
|
|
147
147
|
var jt = function(e, o) {
|
|
@@ -152,14 +152,14 @@ var jt = function(e, o) {
|
|
|
152
152
|
o.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (n[t[r]] = e[t[r]]);
|
|
153
153
|
return n;
|
|
154
154
|
};
|
|
155
|
-
const At =
|
|
155
|
+
const At = Q((e, o) => {
|
|
156
156
|
var { title: n, titleId: t } = e, r = jt(e, ["title", "titleId"]);
|
|
157
|
-
let s =
|
|
158
|
-
return s = n ? t || "title-" + s : void 0,
|
|
157
|
+
let s = X();
|
|
158
|
+
return s = n ? t || "title-" + s : void 0, C.createElement(
|
|
159
159
|
"svg",
|
|
160
160
|
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: o, "aria-labelledby": s }, r),
|
|
161
|
-
n ?
|
|
162
|
-
|
|
161
|
+
n ? C.createElement("title", { id: s }, n) : null,
|
|
162
|
+
C.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" })
|
|
163
163
|
);
|
|
164
164
|
});
|
|
165
165
|
var Dt = function(e, o) {
|
|
@@ -170,14 +170,14 @@ var Dt = function(e, o) {
|
|
|
170
170
|
o.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (n[t[r]] = e[t[r]]);
|
|
171
171
|
return n;
|
|
172
172
|
};
|
|
173
|
-
const Bt =
|
|
173
|
+
const Bt = Q((e, o) => {
|
|
174
174
|
var { title: n, titleId: t } = e, r = Dt(e, ["title", "titleId"]);
|
|
175
|
-
let s =
|
|
176
|
-
return s = n ? t || "title-" + s : void 0,
|
|
175
|
+
let s = X();
|
|
176
|
+
return s = n ? t || "title-" + s : void 0, C.createElement(
|
|
177
177
|
"svg",
|
|
178
178
|
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: o, "aria-labelledby": s }, r),
|
|
179
|
-
n ?
|
|
180
|
-
|
|
179
|
+
n ? C.createElement("title", { id: s }, n) : null,
|
|
180
|
+
C.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M10.5 3.25a7.25 7.25 0 1 0 4.569 12.88l5.411 5.41a.75.75 0 1 0 1.06-1.06l-5.41-5.411A7.25 7.25 0 0 0 10.5 3.25M4.75 10.5a5.75 5.75 0 1 1 11.5 0 5.75 5.75 0 0 1-11.5 0", clipRule: "evenodd" })
|
|
181
181
|
);
|
|
182
182
|
});
|
|
183
183
|
var Tt = function(e, o) {
|
|
@@ -188,14 +188,14 @@ var Tt = function(e, o) {
|
|
|
188
188
|
o.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (n[t[r]] = e[t[r]]);
|
|
189
189
|
return n;
|
|
190
190
|
};
|
|
191
|
-
const Lt =
|
|
191
|
+
const Lt = Q((e, o) => {
|
|
192
192
|
var { title: n, titleId: t } = e, r = Tt(e, ["title", "titleId"]);
|
|
193
|
-
let s =
|
|
194
|
-
return s = n ? t || "title-" + s : void 0,
|
|
193
|
+
let s = X();
|
|
194
|
+
return s = n ? t || "title-" + s : void 0, C.createElement(
|
|
195
195
|
"svg",
|
|
196
196
|
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: o, "aria-labelledby": s }, r),
|
|
197
|
-
n ?
|
|
198
|
-
|
|
197
|
+
n ? C.createElement("title", { id: s }, n) : null,
|
|
198
|
+
C.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M4.75 12a.75.75 0 0 1 .75-.75h13a.75.75 0 1 1 0 1.5h-13a.75.75 0 0 1-.75-.75", clipRule: "evenodd" })
|
|
199
199
|
);
|
|
200
200
|
});
|
|
201
201
|
var Ft = function(e, o) {
|
|
@@ -206,14 +206,14 @@ var Ft = function(e, o) {
|
|
|
206
206
|
o.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (n[t[r]] = e[t[r]]);
|
|
207
207
|
return n;
|
|
208
208
|
};
|
|
209
|
-
const Ht =
|
|
209
|
+
const Ht = Q((e, o) => {
|
|
210
210
|
var { title: n, titleId: t } = e, r = Ft(e, ["title", "titleId"]);
|
|
211
|
-
let s =
|
|
212
|
-
return s = n ? t || "title-" + s : void 0,
|
|
211
|
+
let s = X();
|
|
212
|
+
return s = n ? t || "title-" + s : void 0, C.createElement(
|
|
213
213
|
"svg",
|
|
214
214
|
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: o, "aria-labelledby": s }, r),
|
|
215
|
-
n ?
|
|
216
|
-
|
|
215
|
+
n ? C.createElement("title", { id: s }, n) : null,
|
|
216
|
+
C.createElement("path", { fill: "currentColor", fillRule: "evenodd", d: "M10 4.75c-.69 0-1.25.56-1.25 1.25v.25h6.5V6c0-.69-.56-1.25-1.25-1.25zm6.75 1.5V6A2.75 2.75 0 0 0 14 3.25h-4A2.75 2.75 0 0 0 7.25 6v.25H4.5a.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.875-11.384h.806a.75.75 0 0 0 0-1.5h-2.75m-6 4.25a.75.75 0 0 0-1.5 0v6a.75.75 0 0 0 1.5 0zM14 9.75a.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" })
|
|
217
217
|
);
|
|
218
218
|
});
|
|
219
219
|
var Gt = function(e, o) {
|
|
@@ -224,14 +224,14 @@ var Gt = function(e, o) {
|
|
|
224
224
|
o.indexOf(t[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[r]) && (n[t[r]] = e[t[r]]);
|
|
225
225
|
return n;
|
|
226
226
|
};
|
|
227
|
-
const Ae =
|
|
227
|
+
const Ae = Q((e, o) => {
|
|
228
228
|
var { title: n, titleId: t } = e, r = Gt(e, ["title", "titleId"]);
|
|
229
|
-
let s =
|
|
230
|
-
return s = n ? t || "title-" + s : void 0,
|
|
229
|
+
let s = X();
|
|
230
|
+
return s = n ? t || "title-" + s : void 0, C.createElement(
|
|
231
231
|
"svg",
|
|
232
232
|
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: o, "aria-labelledby": s }, r),
|
|
233
|
-
n ?
|
|
234
|
-
|
|
233
|
+
n ? C.createElement("title", { id: s }, n) : null,
|
|
234
|
+
C.createElement("path", { fill: "currentColor", d: "M6.53 5.47a.75.75 0 0 0-1.06 1.06L10.94 12l-5.47 5.47a.75.75 0 1 0 1.06 1.06L12 13.06l5.47 5.47a.75.75 0 1 0 1.06-1.06L13.06 12l5.47-5.47a.75.75 0 0 0-1.06-1.06L12 10.94z" })
|
|
235
235
|
);
|
|
236
236
|
}), qt = "_badge_5li3b_1", Kt = "_label_5li3b_33", ye = {
|
|
237
237
|
badge: qt,
|
|
@@ -243,14 +243,14 @@ const Ae = Y((e, o) => {
|
|
|
243
243
|
theme: t,
|
|
244
244
|
size: r = "sm",
|
|
245
245
|
tooltip: s,
|
|
246
|
-
className:
|
|
247
|
-
style:
|
|
246
|
+
className: m,
|
|
247
|
+
style: f,
|
|
248
248
|
children: l
|
|
249
249
|
}) => s ? /* @__PURE__ */ a($e, { content: s, children: /* @__PURE__ */ a(
|
|
250
250
|
"span",
|
|
251
251
|
{
|
|
252
|
-
className:
|
|
253
|
-
style:
|
|
252
|
+
className: U(ye.badge, m),
|
|
253
|
+
style: f,
|
|
254
254
|
"data-color": o,
|
|
255
255
|
"data-variant": n,
|
|
256
256
|
"data-theme": t,
|
|
@@ -261,8 +261,8 @@ const Ae = Y((e, o) => {
|
|
|
261
261
|
) }) : /* @__PURE__ */ a(
|
|
262
262
|
"span",
|
|
263
263
|
{
|
|
264
|
-
className:
|
|
265
|
-
style:
|
|
264
|
+
className: U(ye.badge, m),
|
|
265
|
+
style: f,
|
|
266
266
|
"data-color": o,
|
|
267
267
|
"data-variant": n,
|
|
268
268
|
"data-theme": t,
|
|
@@ -282,15 +282,15 @@ const Ae = Y((e, o) => {
|
|
|
282
282
|
size: t,
|
|
283
283
|
color: r,
|
|
284
284
|
iconUrl: s,
|
|
285
|
-
className:
|
|
286
|
-
style:
|
|
285
|
+
className: m,
|
|
286
|
+
style: f,
|
|
287
287
|
children: l
|
|
288
|
-
}) => /* @__PURE__ */ a("span", { "data-ui": "icon", "data-size": t, "data-color": r, className:
|
|
288
|
+
}) => /* @__PURE__ */ a("span", { "data-ui": "icon", "data-size": t, "data-color": r, className: U(fe.icon, m), style: f, children: /* @__PURE__ */ x(ue, { loading: e, variant: "circle", className: fe.shape, children: [
|
|
289
289
|
/* @__PURE__ */ a("span", { className: fe.shape }),
|
|
290
290
|
n && /* @__PURE__ */ a(n, { "aria-hidden": "true", "alt-label": o, className: fe.svg }),
|
|
291
291
|
s && /* @__PURE__ */ a("img", { src: s, alt: o, className: fe.image }),
|
|
292
292
|
l
|
|
293
|
-
] }) }), Qt = ({ size: e, color: o, label: n, htmlFor: t, helperText: r, children: s, ...
|
|
293
|
+
] }) }), Qt = ({ size: e, color: o, label: n, htmlFor: t, helperText: r, children: s, ...m }) => /* @__PURE__ */ x(mt, { size: e, color: o, ...m, children: [
|
|
294
294
|
n && /* @__PURE__ */ a(ft, { size: e, htmlFor: t, children: n }),
|
|
295
295
|
s,
|
|
296
296
|
r && /* @__PURE__ */ a(Ke, { size: "xs", children: r })
|
|
@@ -304,21 +304,21 @@ const Ae = Y((e, o) => {
|
|
|
304
304
|
value: t,
|
|
305
305
|
placeholder: r = "Search",
|
|
306
306
|
clearButtonAltText: s = "Clear search",
|
|
307
|
-
onChange:
|
|
308
|
-
onClear:
|
|
307
|
+
onChange: m,
|
|
308
|
+
onClear: f,
|
|
309
309
|
onNavigate: l,
|
|
310
|
-
combobox:
|
|
311
|
-
listId:
|
|
310
|
+
combobox: h = !1,
|
|
311
|
+
listId: p,
|
|
312
312
|
"aria-activedescendant": i,
|
|
313
313
|
onKeyDown: b,
|
|
314
|
-
onInput:
|
|
315
|
-
onFocus:
|
|
316
|
-
...
|
|
317
|
-
}) => /* @__PURE__ */ a("li", { className: ke.search, style: e, "data-index": o, "data-menu-search": "true", children:
|
|
314
|
+
onInput: g,
|
|
315
|
+
onFocus: y,
|
|
316
|
+
...M
|
|
317
|
+
}) => /* @__PURE__ */ a("li", { className: ke.search, style: e, "data-index": o, "data-menu-search": "true", children: h ? (
|
|
318
318
|
// biome-ignore lint/a11y/useFocusableInteractive: <explanation>
|
|
319
319
|
// biome-ignore lint/a11y/useAriaPropsForRole: <explanation>
|
|
320
320
|
// biome-ignore lint/a11y/useSemanticElements: <explanation>
|
|
321
|
-
/* @__PURE__ */ a("div", { role: "combobox", "aria-expanded": !0, "aria-haspopup": "listbox", "aria-owns":
|
|
321
|
+
/* @__PURE__ */ a("div", { role: "combobox", "aria-expanded": !0, "aria-haspopup": "listbox", "aria-owns": p, children: /* @__PURE__ */ a(
|
|
322
322
|
Pe,
|
|
323
323
|
{
|
|
324
324
|
size: "xs",
|
|
@@ -326,22 +326,22 @@ const Ae = Y((e, o) => {
|
|
|
326
326
|
name: n,
|
|
327
327
|
value: t,
|
|
328
328
|
placeholder: r,
|
|
329
|
-
onChange:
|
|
330
|
-
onClear:
|
|
329
|
+
onChange: m,
|
|
330
|
+
onClear: f,
|
|
331
331
|
clearButtonAltText: s,
|
|
332
332
|
autoComplete: "off",
|
|
333
333
|
autoCorrect: "off",
|
|
334
334
|
autoCapitalize: "off",
|
|
335
335
|
"aria-autocomplete": "list",
|
|
336
|
-
"aria-controls":
|
|
336
|
+
"aria-controls": p,
|
|
337
337
|
"aria-activedescendant": i,
|
|
338
338
|
autoFocus: !0,
|
|
339
339
|
onKeyDown: (v) => {
|
|
340
340
|
(v.key === "ArrowUp" || v.key === "ArrowDown") && (v.preventDefault(), l?.()), b?.(v);
|
|
341
341
|
},
|
|
342
|
-
onInput:
|
|
343
|
-
onFocus:
|
|
344
|
-
...
|
|
342
|
+
onInput: g,
|
|
343
|
+
onFocus: y,
|
|
344
|
+
...M
|
|
345
345
|
}
|
|
346
346
|
) })
|
|
347
347
|
) : /* @__PURE__ */ a(
|
|
@@ -352,8 +352,8 @@ const Ae = Y((e, o) => {
|
|
|
352
352
|
name: n,
|
|
353
353
|
value: t,
|
|
354
354
|
placeholder: r,
|
|
355
|
-
onChange:
|
|
356
|
-
onClear:
|
|
355
|
+
onChange: m,
|
|
356
|
+
onClear: f,
|
|
357
357
|
clearButtonAltText: s,
|
|
358
358
|
autoComplete: "off",
|
|
359
359
|
autoCorrect: "off",
|
|
@@ -362,9 +362,9 @@ const Ae = Y((e, o) => {
|
|
|
362
362
|
onKeyDown: (v) => {
|
|
363
363
|
(v.key === "ArrowUp" || v.key === "ArrowDown") && (v.preventDefault(), l?.()), b?.(v);
|
|
364
364
|
},
|
|
365
|
-
onInput:
|
|
366
|
-
onFocus:
|
|
367
|
-
...
|
|
365
|
+
onInput: g,
|
|
366
|
+
onFocus: y,
|
|
367
|
+
...M
|
|
368
368
|
}
|
|
369
369
|
) }), Je = ({
|
|
370
370
|
level: e = 0,
|
|
@@ -373,243 +373,243 @@ const Ae = Y((e, o) => {
|
|
|
373
373
|
a11yMode: t = "menu",
|
|
374
374
|
open: r,
|
|
375
375
|
scrollToTopOnOpen: s = !1,
|
|
376
|
-
autoActivateFirstItem:
|
|
377
|
-
autoFocusList:
|
|
376
|
+
autoActivateFirstItem: m = !0,
|
|
377
|
+
autoFocusList: f = !0,
|
|
378
378
|
announceNoResults: l = !1,
|
|
379
|
-
search:
|
|
380
|
-
items:
|
|
379
|
+
search: h,
|
|
380
|
+
items: p,
|
|
381
381
|
groups: i = {},
|
|
382
382
|
size: b,
|
|
383
|
-
id:
|
|
384
|
-
color:
|
|
385
|
-
variant:
|
|
383
|
+
id: g,
|
|
384
|
+
color: y,
|
|
385
|
+
variant: M,
|
|
386
386
|
scrollRefStyles: v = {},
|
|
387
387
|
keyboardEvents: I = !1,
|
|
388
|
-
onSelect:
|
|
388
|
+
onSelect: A = () => {
|
|
389
389
|
},
|
|
390
|
-
onActiveItemIdChange:
|
|
390
|
+
onActiveItemIdChange: E
|
|
391
391
|
}) => {
|
|
392
392
|
if (o && e >= o)
|
|
393
393
|
return null;
|
|
394
|
-
const O = t === "combobox", d = O &&
|
|
395
|
-
() =>
|
|
396
|
-
...
|
|
397
|
-
id:
|
|
394
|
+
const O = t === "combobox", d = O && g ? `${g}-listbox` : g, $ = ee(r), z = ee(r), [T, N] = oe(!1), P = ie(
|
|
395
|
+
() => p.map((u, k) => ({
|
|
396
|
+
...u,
|
|
397
|
+
id: u.id || `${g}-item-${k}`
|
|
398
398
|
})),
|
|
399
|
-
[
|
|
400
|
-
),
|
|
401
|
-
items:
|
|
399
|
+
[p, g]
|
|
400
|
+
), j = ee(null), { menu: S, setActiveIndex: R, activeItem: c } = Me({
|
|
401
|
+
items: P,
|
|
402
402
|
groups: i,
|
|
403
403
|
groupByKey: "groupId",
|
|
404
404
|
keyboardEvents: I,
|
|
405
|
-
autoActivateFirstItem:
|
|
406
|
-
onSelect:
|
|
407
|
-
ref:
|
|
405
|
+
autoActivateFirstItem: m,
|
|
406
|
+
onSelect: A,
|
|
407
|
+
ref: j
|
|
408
408
|
});
|
|
409
|
-
return
|
|
410
|
-
|
|
411
|
-
}, [
|
|
409
|
+
return Y(() => {
|
|
410
|
+
E?.(c?.id);
|
|
411
|
+
}, [c?.id, E]), Y(() => {
|
|
412
412
|
if (!s) {
|
|
413
|
-
|
|
413
|
+
$.current = r;
|
|
414
414
|
return;
|
|
415
415
|
}
|
|
416
|
-
const
|
|
417
|
-
|
|
418
|
-
}, [r, s]),
|
|
419
|
-
const
|
|
420
|
-
|
|
421
|
-
}, [r, I,
|
|
416
|
+
const u = $.current;
|
|
417
|
+
$.current = r, r && !u && j.current?.scrollTo({ top: 0 });
|
|
418
|
+
}, [r, s]), Y(() => {
|
|
419
|
+
const u = z.current;
|
|
420
|
+
z.current = r, !(!I || h || !f) && r && !u && requestAnimationFrame(() => j.current?.focus?.({ preventScroll: !0 }));
|
|
421
|
+
}, [r, I, h]), Y(() => {
|
|
422
422
|
if (O && l) {
|
|
423
|
-
|
|
423
|
+
R(0), N(!0);
|
|
424
424
|
return;
|
|
425
425
|
}
|
|
426
|
-
}, [l, O,
|
|
426
|
+
}, [l, O, R]), /* @__PURE__ */ x(
|
|
427
427
|
Ie,
|
|
428
428
|
{
|
|
429
|
-
variant:
|
|
429
|
+
variant: M,
|
|
430
430
|
expanded: n,
|
|
431
|
-
ref:
|
|
431
|
+
ref: j,
|
|
432
432
|
style: v,
|
|
433
433
|
id: d,
|
|
434
434
|
role: O ? "listbox" : void 0,
|
|
435
435
|
tabIndex: I ? -1 : void 0,
|
|
436
436
|
children: [
|
|
437
|
-
|
|
437
|
+
h && /* @__PURE__ */ a(
|
|
438
438
|
Xe,
|
|
439
439
|
{
|
|
440
|
-
...
|
|
440
|
+
...h,
|
|
441
441
|
combobox: O,
|
|
442
442
|
listId: d,
|
|
443
|
-
"aria-activedescendant": O &&
|
|
444
|
-
onNavigate: O ? () =>
|
|
445
|
-
onChange: (
|
|
446
|
-
|
|
443
|
+
"aria-activedescendant": O && T ? c?.id : void 0,
|
|
444
|
+
onNavigate: O ? () => N(!0) : void 0,
|
|
445
|
+
onChange: (u) => {
|
|
446
|
+
N(!1), h.onChange?.(u);
|
|
447
447
|
},
|
|
448
|
-
onFocus: (
|
|
449
|
-
|
|
448
|
+
onFocus: (u) => {
|
|
449
|
+
N(!1), h.onFocus?.(u);
|
|
450
450
|
},
|
|
451
|
-
onInput: (
|
|
452
|
-
|
|
451
|
+
onInput: (u) => {
|
|
452
|
+
N(!1), h.onInput?.(u);
|
|
453
453
|
},
|
|
454
|
-
onKeyDown: (
|
|
455
|
-
const
|
|
456
|
-
O && !
|
|
454
|
+
onKeyDown: (u) => {
|
|
455
|
+
const k = u.key === "ArrowUp" || u.key === "ArrowDown", L = u.key.length === 1 || u.key === "Backspace" || u.key === "Delete";
|
|
456
|
+
O && !k && L && N(!1), h.onKeyDown?.(u);
|
|
457
457
|
}
|
|
458
458
|
}
|
|
459
459
|
),
|
|
460
|
-
|
|
461
|
-
const L =
|
|
460
|
+
S.map((u, k) => {
|
|
461
|
+
const L = u?.props || {}, { title: F, hidden: K = !1, divider: H = !0 } = L;
|
|
462
462
|
return /* @__PURE__ */ x(He, { children: [
|
|
463
|
-
(e > 0 ||
|
|
464
|
-
/* @__PURE__ */ a(Ue, { hidden:
|
|
463
|
+
(e > 0 || k) && H ? /* @__PURE__ */ a(We, {}) : "",
|
|
464
|
+
/* @__PURE__ */ a(Ue, { hidden: K, children: /* @__PURE__ */ x(Ie, { role: "presentation", children: [
|
|
465
465
|
F && /* @__PURE__ */ a(Ye, { title: F, level: e }),
|
|
466
|
-
|
|
467
|
-
const { active: w, onMouseEnter:
|
|
466
|
+
u?.items.filter((q) => !q.props?.hidden).map((q, _) => {
|
|
467
|
+
const { active: w, onMouseEnter: D } = q, { groupId: W, ...B } = q.props || {}, { expanded: J } = B, le = Array.isArray(B?.items) && B.items.length > 0, ge = B.role === "checkbox" || B.role === "radio", Ne = O && !ge ? "option" : B.role;
|
|
468
468
|
return /* @__PURE__ */ x(
|
|
469
469
|
Ve,
|
|
470
470
|
{
|
|
471
|
-
expanded:
|
|
472
|
-
onMouseLeave: () =>
|
|
471
|
+
expanded: J,
|
|
472
|
+
onMouseLeave: () => R(-1),
|
|
473
473
|
role: O || ge ? "presentation" : void 0,
|
|
474
474
|
children: [
|
|
475
475
|
/* @__PURE__ */ a(
|
|
476
476
|
tt,
|
|
477
477
|
{
|
|
478
|
-
...
|
|
479
|
-
size:
|
|
480
|
-
color:
|
|
481
|
-
variant:
|
|
478
|
+
...B,
|
|
479
|
+
size: B?.size || L?.size || b,
|
|
480
|
+
color: B?.color || L?.color || y,
|
|
481
|
+
variant: B?.variant || L?.variant || M,
|
|
482
482
|
active: w,
|
|
483
483
|
role: Ne,
|
|
484
|
-
selected:
|
|
485
|
-
tabIndex:
|
|
486
|
-
onMouseEnter:
|
|
484
|
+
selected: B.selected,
|
|
485
|
+
tabIndex: B?.disabled || I ? -1 : B.tabIndex ?? 0,
|
|
486
|
+
onMouseEnter: D,
|
|
487
487
|
"aria-haspopup": le ? "menu" : void 0,
|
|
488
|
-
"aria-expanded": le ?
|
|
489
|
-
"aria-controls": le ?
|
|
488
|
+
"aria-expanded": le ? J : void 0,
|
|
489
|
+
"aria-controls": le ? B.id + "-menu" : void 0
|
|
490
490
|
}
|
|
491
491
|
),
|
|
492
|
-
|
|
492
|
+
J && B?.items && /* @__PURE__ */ a(
|
|
493
493
|
Je,
|
|
494
494
|
{
|
|
495
|
-
id:
|
|
496
|
-
expanded:
|
|
495
|
+
id: B.id + "-menu",
|
|
496
|
+
expanded: J,
|
|
497
497
|
level: e + 1,
|
|
498
498
|
maxLevels: o,
|
|
499
|
-
items:
|
|
499
|
+
items: B?.items,
|
|
500
500
|
groups: i,
|
|
501
501
|
size: b,
|
|
502
|
-
color:
|
|
503
|
-
variant:
|
|
502
|
+
color: y,
|
|
503
|
+
variant: M
|
|
504
504
|
}
|
|
505
505
|
)
|
|
506
506
|
]
|
|
507
507
|
},
|
|
508
|
-
|
|
508
|
+
_
|
|
509
509
|
);
|
|
510
510
|
})
|
|
511
|
-
] }) },
|
|
512
|
-
] },
|
|
511
|
+
] }) }, k)
|
|
512
|
+
] }, k);
|
|
513
513
|
})
|
|
514
514
|
]
|
|
515
515
|
}
|
|
516
516
|
);
|
|
517
517
|
}, Zt = (e) => {
|
|
518
|
-
const o =
|
|
518
|
+
const o = ee(null), n = ee(null), [t, r] = oe(0), {
|
|
519
519
|
search: s,
|
|
520
|
-
items:
|
|
521
|
-
groups:
|
|
520
|
+
items: m,
|
|
521
|
+
groups: f = {},
|
|
522
522
|
size: l,
|
|
523
|
-
color:
|
|
524
|
-
variant:
|
|
523
|
+
color: h,
|
|
524
|
+
variant: p,
|
|
525
525
|
keyboardEvents: i,
|
|
526
526
|
scrollRefStyles: b = {},
|
|
527
|
-
id:
|
|
528
|
-
expanded:
|
|
529
|
-
a11yMode:
|
|
527
|
+
id: g,
|
|
528
|
+
expanded: y,
|
|
529
|
+
a11yMode: M = "menu",
|
|
530
530
|
open: v,
|
|
531
531
|
scrollToTopOnOpen: I = !1,
|
|
532
|
-
autoActivateFirstItem:
|
|
533
|
-
announceNoResults:
|
|
532
|
+
autoActivateFirstItem: A = !0,
|
|
533
|
+
announceNoResults: E = !1,
|
|
534
534
|
onActiveItemIdChange: O
|
|
535
|
-
} = e, d =
|
|
536
|
-
() =>
|
|
537
|
-
...
|
|
538
|
-
id:
|
|
535
|
+
} = e, d = M === "combobox", $ = d && g ? `${g}-listbox` : g, z = ee(v), [T, N] = oe(!1), P = ie(
|
|
536
|
+
() => m.map((_, w) => ({
|
|
537
|
+
..._,
|
|
538
|
+
id: _.id || `${g}-item-${w}`
|
|
539
539
|
})),
|
|
540
|
-
[
|
|
541
|
-
), { menu:
|
|
542
|
-
items:
|
|
543
|
-
groups:
|
|
540
|
+
[m, g]
|
|
541
|
+
), { menu: j, activeItem: S, setActiveIndex: R, activeIndex: c } = Me({
|
|
542
|
+
items: P,
|
|
543
|
+
groups: f,
|
|
544
544
|
groupByKey: "groupId",
|
|
545
545
|
keyboardEvents: i,
|
|
546
|
-
autoActivateFirstItem:
|
|
546
|
+
autoActivateFirstItem: A,
|
|
547
547
|
ref: o
|
|
548
|
-
}), { flatMenu:
|
|
549
|
-
menu:
|
|
548
|
+
}), { flatMenu: u, virtualizer: k, scrollMaxHeight: L } = vt({
|
|
549
|
+
menu: j,
|
|
550
550
|
scrollRef: o
|
|
551
551
|
});
|
|
552
552
|
Ce(() => {
|
|
553
|
-
const
|
|
554
|
-
if (!
|
|
555
|
-
const w = Math.round(
|
|
556
|
-
r((
|
|
553
|
+
const _ = n.current;
|
|
554
|
+
if (!_) return;
|
|
555
|
+
const w = Math.round(_.offsetTop);
|
|
556
|
+
r((D) => D === w ? D : w);
|
|
557
557
|
});
|
|
558
558
|
const F = ie(() => {
|
|
559
|
-
const
|
|
560
|
-
if (
|
|
561
|
-
return
|
|
562
|
-
if (
|
|
559
|
+
const _ = S?.id;
|
|
560
|
+
if (_)
|
|
561
|
+
return u.findIndex((D) => D.type === "item" && D.itemProps?.id === _);
|
|
562
|
+
if (c < 0) return -1;
|
|
563
563
|
let w = -1;
|
|
564
|
-
for (let
|
|
565
|
-
if (
|
|
566
|
-
return
|
|
564
|
+
for (let D = 0; D < u.length; D++)
|
|
565
|
+
if (u[D]?.type === "item" && (w += 1, w === c))
|
|
566
|
+
return D;
|
|
567
567
|
return -1;
|
|
568
|
-
}, [
|
|
568
|
+
}, [S?.id, c, u]), K = ee(null);
|
|
569
569
|
Ce(() => {
|
|
570
|
-
const
|
|
571
|
-
|
|
572
|
-
const
|
|
570
|
+
const _ = K?.current, w = typeof _ == "number" ? F <= _ : !1;
|
|
571
|
+
K.current = F;
|
|
572
|
+
const D = w ? F : F + 2;
|
|
573
573
|
if (!w) {
|
|
574
|
-
const le =
|
|
574
|
+
const le = k.getOffsetForIndex(D, "auto");
|
|
575
575
|
if (!le) return;
|
|
576
576
|
const [ge, Ne] = le;
|
|
577
577
|
if (Ne === "auto") return;
|
|
578
|
-
|
|
578
|
+
k.scrollToOffset(ge + t + 10, { align: "start" });
|
|
579
579
|
return;
|
|
580
580
|
}
|
|
581
581
|
if (F <= 3) {
|
|
582
|
-
|
|
582
|
+
k.scrollToOffset(0);
|
|
583
583
|
return;
|
|
584
584
|
}
|
|
585
|
-
const
|
|
586
|
-
if (!
|
|
587
|
-
const [
|
|
588
|
-
|
|
589
|
-
}, [F, t,
|
|
590
|
-
const
|
|
591
|
-
const
|
|
585
|
+
const W = k.getOffsetForIndex(F - 1, "auto");
|
|
586
|
+
if (!W) return;
|
|
587
|
+
const [B, J] = W;
|
|
588
|
+
J !== "auto" && k.scrollToOffset(B + t + 10, { align: "start" });
|
|
589
|
+
}, [F, t, k, K]);
|
|
590
|
+
const H = ie(() => {
|
|
591
|
+
const _ = /* @__PURE__ */ new Map();
|
|
592
592
|
let w = 0;
|
|
593
|
-
return
|
|
594
|
-
|
|
595
|
-
}), { positions:
|
|
596
|
-
}, [
|
|
597
|
-
|
|
598
|
-
O?.(
|
|
599
|
-
}, [
|
|
600
|
-
if (d &&
|
|
601
|
-
|
|
593
|
+
return u.forEach((D, W) => {
|
|
594
|
+
D.type === "item" && (w += 1, _.set(W, w));
|
|
595
|
+
}), { positions: _, total: w };
|
|
596
|
+
}, [u]);
|
|
597
|
+
Y(() => {
|
|
598
|
+
O?.(S?.id);
|
|
599
|
+
}, [S?.id, O]), Y(() => {
|
|
600
|
+
if (d && E) {
|
|
601
|
+
R(0), N(!0);
|
|
602
602
|
return;
|
|
603
603
|
}
|
|
604
|
-
}, [
|
|
604
|
+
}, [E, d, R]), Y(() => {
|
|
605
605
|
if (!I) {
|
|
606
|
-
|
|
606
|
+
z.current = v;
|
|
607
607
|
return;
|
|
608
608
|
}
|
|
609
|
-
const
|
|
610
|
-
|
|
609
|
+
const _ = z.current;
|
|
610
|
+
z.current = v, v && !_ && o.current?.scrollTo({ top: 0 });
|
|
611
611
|
}, [v, I]);
|
|
612
|
-
const
|
|
612
|
+
const q = {
|
|
613
613
|
position: "relative",
|
|
614
614
|
maxHeight: b?.maxHeight || L,
|
|
615
615
|
margin: "-0.5rem",
|
|
@@ -622,11 +622,11 @@ const Ae = Y((e, o) => {
|
|
|
622
622
|
Ie,
|
|
623
623
|
{
|
|
624
624
|
ref: o,
|
|
625
|
-
style:
|
|
626
|
-
variant:
|
|
627
|
-
color:
|
|
628
|
-
expanded:
|
|
629
|
-
id:
|
|
625
|
+
style: q,
|
|
626
|
+
variant: p,
|
|
627
|
+
color: h,
|
|
628
|
+
expanded: y,
|
|
629
|
+
id: $,
|
|
630
630
|
role: d ? "listbox" : void 0,
|
|
631
631
|
children: [
|
|
632
632
|
s && /* @__PURE__ */ a(
|
|
@@ -634,21 +634,21 @@ const Ae = Y((e, o) => {
|
|
|
634
634
|
{
|
|
635
635
|
...s,
|
|
636
636
|
combobox: d,
|
|
637
|
-
listId:
|
|
638
|
-
"aria-activedescendant": d &&
|
|
639
|
-
onNavigate: d ? () =>
|
|
640
|
-
onChange: (
|
|
641
|
-
|
|
637
|
+
listId: $,
|
|
638
|
+
"aria-activedescendant": d && T ? S?.id : void 0,
|
|
639
|
+
onNavigate: d ? () => N(!0) : void 0,
|
|
640
|
+
onChange: (_) => {
|
|
641
|
+
N(!1), s.onChange?.(_);
|
|
642
642
|
},
|
|
643
|
-
onFocus: (
|
|
644
|
-
|
|
643
|
+
onFocus: (_) => {
|
|
644
|
+
N(!1), s.onFocus?.(_);
|
|
645
645
|
},
|
|
646
|
-
onInput: (
|
|
647
|
-
|
|
646
|
+
onInput: (_) => {
|
|
647
|
+
N(!1), s.onInput?.(_);
|
|
648
648
|
},
|
|
649
|
-
onKeyDown: (
|
|
650
|
-
const w =
|
|
651
|
-
d && !w &&
|
|
649
|
+
onKeyDown: (_) => {
|
|
650
|
+
const w = _.key === "ArrowUp" || _.key === "ArrowDown", D = _.key.length === 1 || _.key === "Backspace" || _.key === "Delete";
|
|
651
|
+
d && !w && D && N(!1), s.onKeyDown?.(_);
|
|
652
652
|
}
|
|
653
653
|
}
|
|
654
654
|
),
|
|
@@ -658,60 +658,60 @@ const Ae = Y((e, o) => {
|
|
|
658
658
|
ref: n,
|
|
659
659
|
style: {
|
|
660
660
|
position: "relative",
|
|
661
|
-
height: `${
|
|
661
|
+
height: `${k.getTotalSize()}px`,
|
|
662
662
|
width: "100%"
|
|
663
663
|
},
|
|
664
|
-
children: /* @__PURE__ */ a(Ie, { style: { width: "100%", minWidth: "100%" }, children:
|
|
665
|
-
const w =
|
|
664
|
+
children: /* @__PURE__ */ a(Ie, { style: { width: "100%", minWidth: "100%" }, children: k.getVirtualItems().map((_) => {
|
|
665
|
+
const w = u[_.index];
|
|
666
666
|
if (!w) return null;
|
|
667
|
-
const
|
|
667
|
+
const D = {
|
|
668
668
|
position: "absolute",
|
|
669
669
|
top: 0,
|
|
670
670
|
left: 0,
|
|
671
671
|
width: "100%",
|
|
672
|
-
transform: `translateY(${
|
|
673
|
-
},
|
|
674
|
-
style:
|
|
675
|
-
index:
|
|
676
|
-
"data-index":
|
|
677
|
-
ref:
|
|
672
|
+
transform: `translateY(${_.start}px)`
|
|
673
|
+
}, W = {
|
|
674
|
+
style: D,
|
|
675
|
+
index: _.index,
|
|
676
|
+
"data-index": _.index,
|
|
677
|
+
ref: k.measureElement
|
|
678
678
|
};
|
|
679
679
|
switch (w.type) {
|
|
680
680
|
case "divider":
|
|
681
681
|
return /* @__PURE__ */ a(
|
|
682
682
|
We,
|
|
683
683
|
{
|
|
684
|
-
...
|
|
685
|
-
style: { ...
|
|
684
|
+
...W,
|
|
685
|
+
style: { ...D, padding: "0.25rem 0" }
|
|
686
686
|
},
|
|
687
|
-
|
|
687
|
+
_.key
|
|
688
688
|
);
|
|
689
689
|
case "header":
|
|
690
|
-
return /* @__PURE__ */ a(Ye, { ...
|
|
690
|
+
return /* @__PURE__ */ a(Ye, { ...W, title: w.title || "", level: 1 }, _.key);
|
|
691
691
|
default: {
|
|
692
|
-
const
|
|
692
|
+
const B = w.itemProps?.role === "checkbox" || w.itemProps?.role === "radio", J = d && !B ? "option" : w.itemProps?.role;
|
|
693
693
|
return /* @__PURE__ */ a(
|
|
694
694
|
Ve,
|
|
695
695
|
{
|
|
696
|
-
...
|
|
697
|
-
role: d ||
|
|
696
|
+
...W,
|
|
697
|
+
role: d || B ? "presentation" : "menuitem",
|
|
698
698
|
children: /* @__PURE__ */ a(
|
|
699
699
|
tt,
|
|
700
700
|
{
|
|
701
701
|
...w.itemProps || {},
|
|
702
702
|
size: w.itemProps?.size || l,
|
|
703
|
-
color: w.itemProps?.color ||
|
|
704
|
-
variant: w.itemProps?.variant ||
|
|
703
|
+
color: w.itemProps?.color || h,
|
|
704
|
+
variant: w.itemProps?.variant || p,
|
|
705
705
|
active: w.active,
|
|
706
|
-
role:
|
|
706
|
+
role: J,
|
|
707
707
|
selected: w.itemProps?.selected,
|
|
708
|
-
"aria-posinset": d ?
|
|
709
|
-
"aria-setsize": d ?
|
|
708
|
+
"aria-posinset": d ? H.positions.get(_.index) : void 0,
|
|
709
|
+
"aria-setsize": d ? H.total : void 0,
|
|
710
710
|
tabIndex: w.itemProps?.disabled || i ? -1 : 0
|
|
711
711
|
}
|
|
712
712
|
)
|
|
713
713
|
},
|
|
714
|
-
|
|
714
|
+
_.key
|
|
715
715
|
);
|
|
716
716
|
}
|
|
717
717
|
}
|
|
@@ -733,15 +733,15 @@ const Ae = Y((e, o) => {
|
|
|
733
733
|
},
|
|
734
734
|
languageCode: "nb"
|
|
735
735
|
}, Ze = ot(en), Jr = ({ children: e, initialValue: o, debug: n, languageCode: t }) => {
|
|
736
|
-
const [r, s] = oe(o?.currentId || ""), [
|
|
736
|
+
const [r, s] = oe(o?.currentId || ""), [m, f] = oe(o?.previousId || "");
|
|
737
737
|
return /* @__PURE__ */ a(
|
|
738
738
|
Ze.Provider,
|
|
739
739
|
{
|
|
740
740
|
value: {
|
|
741
741
|
currentId: r,
|
|
742
742
|
setCurrentId: s,
|
|
743
|
-
setPreviousId:
|
|
744
|
-
previousId:
|
|
743
|
+
setPreviousId: f,
|
|
744
|
+
previousId: m,
|
|
745
745
|
debug: n,
|
|
746
746
|
languageCode: t
|
|
747
747
|
},
|
|
@@ -752,22 +752,22 @@ const Ae = Y((e, o) => {
|
|
|
752
752
|
const e = at(Ze);
|
|
753
753
|
if (!e)
|
|
754
754
|
throw new Error("useRootContext must be used within a RootProvider.");
|
|
755
|
-
const { currentId: o, setCurrentId: n, debug: t, setPreviousId: r, previousId: s, languageCode:
|
|
755
|
+
const { currentId: o, setCurrentId: n, debug: t, setPreviousId: r, previousId: s, languageCode: m } = e, f = (i) => {
|
|
756
756
|
o && r(o), n(i);
|
|
757
757
|
}, l = (i) => {
|
|
758
|
-
t && console.debug(`useRootContext: toggleId called with value: ${i}`),
|
|
759
|
-
},
|
|
760
|
-
t && console.debug("useRootContext: closeAll called"),
|
|
758
|
+
t && console.debug(`useRootContext: toggleId called with value: ${i}`), f(o === i ? "" : i);
|
|
759
|
+
}, h = () => {
|
|
760
|
+
t && console.debug("useRootContext: closeAll called"), f("");
|
|
761
761
|
};
|
|
762
|
-
return it(
|
|
762
|
+
return it(h), {
|
|
763
763
|
currentId: o,
|
|
764
764
|
previousId: s,
|
|
765
765
|
toggleId: l,
|
|
766
|
-
closeAll:
|
|
766
|
+
closeAll: h,
|
|
767
767
|
openId: (i) => {
|
|
768
|
-
t && console.debug(`useRootContext: openId called with value: ${i}`),
|
|
768
|
+
t && console.debug(`useRootContext: openId called with value: ${i}`), f(i);
|
|
769
769
|
},
|
|
770
|
-
languageCode:
|
|
770
|
+
languageCode: m
|
|
771
771
|
};
|
|
772
772
|
}, nn = (e) => {
|
|
773
773
|
switch (e) {
|
|
@@ -811,35 +811,35 @@ const Ae = Y((e, o) => {
|
|
|
811
811
|
onClear: t,
|
|
812
812
|
clearButtonAltText: r,
|
|
813
813
|
items: s = [],
|
|
814
|
-
groups:
|
|
814
|
+
groups: m = {}
|
|
815
815
|
}) => {
|
|
816
|
-
const { languageCode:
|
|
817
|
-
(
|
|
818
|
-
|
|
816
|
+
const { languageCode: f } = tn(), l = G.useMemo(() => nn(f), [f]), [h, p] = G.useState(""), i = G.useCallback(
|
|
817
|
+
(c) => {
|
|
818
|
+
p(c.target.value), n?.(c);
|
|
819
819
|
},
|
|
820
820
|
[n]
|
|
821
821
|
), b = G.useCallback(() => {
|
|
822
|
-
|
|
823
|
-
}, [t]),
|
|
822
|
+
p(""), t?.();
|
|
823
|
+
}, [t]), g = G.useMemo(() => h.trim().replace(/\s+/g, " "), [h]), y = g.length > 0, M = G.useMemo(() => g.toLowerCase(), [g]), v = G.useMemo(() => g ? g.split(" ") : [], [g]), I = G.useMemo(
|
|
824
824
|
() => ({
|
|
825
825
|
placeholder: e ?? l.placeholder,
|
|
826
826
|
name: o ?? "search",
|
|
827
|
-
value:
|
|
827
|
+
value: h,
|
|
828
828
|
onChange: i,
|
|
829
829
|
onClear: b,
|
|
830
830
|
clearButtonAltText: r
|
|
831
831
|
}),
|
|
832
|
-
[e, l.placeholder, o,
|
|
833
|
-
),
|
|
834
|
-
() => s.map((
|
|
835
|
-
const
|
|
832
|
+
[e, l.placeholder, o, h, i, b, r]
|
|
833
|
+
), A = G.useMemo(
|
|
834
|
+
() => s.map((c) => {
|
|
835
|
+
const u = c?.searchWords?.length ? c.searchWords : [c?.title, c?.description].filter(Boolean);
|
|
836
836
|
return {
|
|
837
|
-
...
|
|
838
|
-
searchWords:
|
|
837
|
+
...c,
|
|
838
|
+
searchWords: u ?? []
|
|
839
839
|
};
|
|
840
840
|
}),
|
|
841
841
|
[s]
|
|
842
|
-
),
|
|
842
|
+
), E = G.useMemo(
|
|
843
843
|
() => [
|
|
844
844
|
{
|
|
845
845
|
id: "emptySearch",
|
|
@@ -853,60 +853,60 @@ const Ae = Y((e, o) => {
|
|
|
853
853
|
],
|
|
854
854
|
[l.noResults]
|
|
855
855
|
), O = G.useMemo(() => {
|
|
856
|
-
const
|
|
857
|
-
return
|
|
858
|
-
}, [s,
|
|
859
|
-
if (!
|
|
860
|
-
const
|
|
861
|
-
for (const
|
|
862
|
-
|
|
863
|
-
...
|
|
856
|
+
const c = s.filter((u) => u.groupId === "emptySearch").map((u) => ({ ...u, hidden: !1 }));
|
|
857
|
+
return c.length ? c : E;
|
|
858
|
+
}, [s, E]), { selectedItems: d, results: $ } = G.useMemo(() => {
|
|
859
|
+
if (!y) return { selectedItems: [], results: [] };
|
|
860
|
+
const c = [], u = [];
|
|
861
|
+
for (const k of A)
|
|
862
|
+
k.checked === !0 && c.push({ ...k, groupId: "selected" }), (k.searchWords ?? []).some((K) => String(K).toLowerCase().includes(M)) && u.push({
|
|
863
|
+
...k,
|
|
864
864
|
groupId: "search",
|
|
865
865
|
highlightWords: v
|
|
866
866
|
});
|
|
867
|
-
return { selectedItems:
|
|
868
|
-
}, [
|
|
867
|
+
return { selectedItems: c, results: u };
|
|
868
|
+
}, [y, A, M, v]), z = $.length, T = d.length, N = G.useMemo(
|
|
869
869
|
() => ({
|
|
870
870
|
search: {
|
|
871
871
|
hidden: !0,
|
|
872
|
-
title: l.hits(
|
|
872
|
+
title: l.hits(z)
|
|
873
873
|
},
|
|
874
874
|
selected: {
|
|
875
875
|
hidden: !0,
|
|
876
|
-
title: l.selected(
|
|
876
|
+
title: l.selected(T)
|
|
877
877
|
},
|
|
878
878
|
emptySearch: {
|
|
879
879
|
hidden: !0,
|
|
880
880
|
title: l.noResults
|
|
881
881
|
},
|
|
882
|
-
...
|
|
882
|
+
...m
|
|
883
883
|
}),
|
|
884
|
-
[l,
|
|
885
|
-
),
|
|
884
|
+
[l, z, T, m]
|
|
885
|
+
), P = G.useMemo(
|
|
886
886
|
() => ({
|
|
887
|
-
...
|
|
887
|
+
...N,
|
|
888
888
|
search: {
|
|
889
|
-
hidden: !
|
|
890
|
-
title: l.hits(
|
|
889
|
+
hidden: !y,
|
|
890
|
+
title: l.hits(z)
|
|
891
891
|
},
|
|
892
892
|
selected: {
|
|
893
|
-
hidden:
|
|
894
|
-
title: l.selected(
|
|
893
|
+
hidden: T === 0,
|
|
894
|
+
title: l.selected(T)
|
|
895
895
|
},
|
|
896
896
|
emptySearch: {
|
|
897
|
-
hidden:
|
|
897
|
+
hidden: y && (z > 0 || T > 0),
|
|
898
898
|
title: l.noResults
|
|
899
899
|
}
|
|
900
900
|
}),
|
|
901
|
-
[
|
|
902
|
-
),
|
|
901
|
+
[N, y, l, z, T]
|
|
902
|
+
), j = G.useMemo(() => y ? rn([...$, ...d]) : [], [y, $, d]), S = G.useMemo(() => [...O || [], ...d || []], [O, d]), R = G.useMemo(() => y ? z ? j : S : s, [y, s, z, j, S]);
|
|
903
903
|
return {
|
|
904
904
|
search: I,
|
|
905
|
-
results:
|
|
906
|
-
resultCount:
|
|
907
|
-
hasQuery:
|
|
908
|
-
items:
|
|
909
|
-
groups:
|
|
905
|
+
results: $,
|
|
906
|
+
resultCount: z,
|
|
907
|
+
hasQuery: y,
|
|
908
|
+
items: R,
|
|
909
|
+
groups: P
|
|
910
910
|
};
|
|
911
911
|
}, et = ({
|
|
912
912
|
searchable: e,
|
|
@@ -915,60 +915,60 @@ const Ae = Y((e, o) => {
|
|
|
915
915
|
groups: t = {},
|
|
916
916
|
variant: r = "default",
|
|
917
917
|
size: s,
|
|
918
|
-
level:
|
|
919
|
-
maxLevels:
|
|
918
|
+
level: m = 0,
|
|
919
|
+
maxLevels: f = 3,
|
|
920
920
|
virtualized: l = !1,
|
|
921
|
-
keyboardEvents:
|
|
922
|
-
scrollRefStyles:
|
|
921
|
+
keyboardEvents: h = !1,
|
|
922
|
+
scrollRefStyles: p = {},
|
|
923
923
|
onActiveItemIdChange: i,
|
|
924
924
|
a11yMode: b = "menu",
|
|
925
|
-
open:
|
|
926
|
-
scrollToTopOnOpen:
|
|
927
|
-
autoFocusList:
|
|
925
|
+
open: g,
|
|
926
|
+
scrollToTopOnOpen: y,
|
|
927
|
+
autoFocusList: M,
|
|
928
928
|
id: v
|
|
929
929
|
}) => {
|
|
930
|
-
const I = on({ ...o, items: n, groups: t }),
|
|
930
|
+
const I = on({ ...o, items: n, groups: t }), A = e ? I.search : o, E = e && I.hasQuery && I.resultCount === 0, O = e ? I.items : n, d = e ? { ...t, ...I.groups } : t, $ = b !== "combobox";
|
|
931
931
|
return l ? /* @__PURE__ */ a(
|
|
932
932
|
Zt,
|
|
933
933
|
{
|
|
934
934
|
id: v,
|
|
935
|
-
search:
|
|
936
|
-
announceNoResults:
|
|
935
|
+
search: A,
|
|
936
|
+
announceNoResults: E,
|
|
937
937
|
items: O,
|
|
938
938
|
groups: d,
|
|
939
939
|
variant: r,
|
|
940
940
|
size: s,
|
|
941
|
-
level:
|
|
942
|
-
maxLevels:
|
|
943
|
-
keyboardEvents:
|
|
944
|
-
scrollRefStyles:
|
|
941
|
+
level: m,
|
|
942
|
+
maxLevels: f,
|
|
943
|
+
keyboardEvents: h,
|
|
944
|
+
scrollRefStyles: p,
|
|
945
945
|
onActiveItemIdChange: i,
|
|
946
946
|
a11yMode: b,
|
|
947
|
-
open:
|
|
948
|
-
scrollToTopOnOpen:
|
|
949
|
-
autoActivateFirstItem:
|
|
950
|
-
autoFocusList:
|
|
947
|
+
open: g,
|
|
948
|
+
scrollToTopOnOpen: y,
|
|
949
|
+
autoActivateFirstItem: $,
|
|
950
|
+
autoFocusList: M
|
|
951
951
|
}
|
|
952
952
|
) : /* @__PURE__ */ a(
|
|
953
953
|
Je,
|
|
954
954
|
{
|
|
955
955
|
id: v,
|
|
956
|
-
search:
|
|
957
|
-
announceNoResults:
|
|
956
|
+
search: A,
|
|
957
|
+
announceNoResults: E,
|
|
958
958
|
items: O,
|
|
959
959
|
groups: d,
|
|
960
960
|
variant: r,
|
|
961
961
|
size: s,
|
|
962
|
-
level:
|
|
963
|
-
maxLevels:
|
|
964
|
-
keyboardEvents:
|
|
965
|
-
scrollRefStyles:
|
|
962
|
+
level: m,
|
|
963
|
+
maxLevels: f,
|
|
964
|
+
keyboardEvents: h,
|
|
965
|
+
scrollRefStyles: p,
|
|
966
966
|
onActiveItemIdChange: i,
|
|
967
967
|
a11yMode: b,
|
|
968
|
-
open:
|
|
969
|
-
scrollToTopOnOpen:
|
|
970
|
-
autoActivateFirstItem:
|
|
971
|
-
autoFocusList:
|
|
968
|
+
open: g,
|
|
969
|
+
scrollToTopOnOpen: y,
|
|
970
|
+
autoActivateFirstItem: $,
|
|
971
|
+
autoFocusList: M
|
|
972
972
|
}
|
|
973
973
|
);
|
|
974
974
|
}, an = "_media_1089b_3", sn = "_icon_1089b_10", ln = "_avatar_1089b_14", cn = "_avatarGroup_1089b_18", ae = {
|
|
@@ -984,9 +984,9 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
|
|
|
984
984
|
if (!n)
|
|
985
985
|
return null;
|
|
986
986
|
if (o)
|
|
987
|
-
return /* @__PURE__ */ a("div", { className:
|
|
987
|
+
return /* @__PURE__ */ a("div", { className: U(ae.icon, e), children: /* @__PURE__ */ a(se, { svgElement: Ae, loading: !0 }) });
|
|
988
988
|
const r = Ee(n) ? "avatar" : Se(n) ? "avatarGroup" : (ze(n), "icon");
|
|
989
|
-
return /* @__PURE__ */ x("div", { className:
|
|
989
|
+
return /* @__PURE__ */ x("div", { className: U(ae.media, e), "data-variant": r, children: [
|
|
990
990
|
Ee(n) && /* @__PURE__ */ a(je, { ...n, className: ae.avatar }) || Se(n) && /* @__PURE__ */ a(be, { ...n, className: ae.avatarGroup }) || ze(n) && /* @__PURE__ */ a(se, { ...n, className: ae.icon }) || dn(n) && /* @__PURE__ */ a(se, { className: ae.icon, children: n }) || /* @__PURE__ */ a(se, { className: ae.icon, svgElement: n }),
|
|
991
991
|
t
|
|
992
992
|
] });
|
|
@@ -999,28 +999,28 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
|
|
|
999
999
|
as: t = "h2",
|
|
1000
1000
|
size: r,
|
|
1001
1001
|
leading: s = "tight",
|
|
1002
|
-
weight:
|
|
1003
|
-
color:
|
|
1002
|
+
weight: m = "medium",
|
|
1003
|
+
color: f,
|
|
1004
1004
|
variant: l,
|
|
1005
|
-
maxRows:
|
|
1006
|
-
className:
|
|
1005
|
+
maxRows: h,
|
|
1006
|
+
className: p,
|
|
1007
1007
|
style: i,
|
|
1008
1008
|
children: b
|
|
1009
1009
|
}) => {
|
|
1010
|
-
const
|
|
1010
|
+
const g = t, y = ct(b, n || []);
|
|
1011
1011
|
return /* @__PURE__ */ a(
|
|
1012
|
-
|
|
1012
|
+
g,
|
|
1013
1013
|
{
|
|
1014
1014
|
id: e,
|
|
1015
|
-
className:
|
|
1015
|
+
className: U(mn.heading, p),
|
|
1016
1016
|
style: i,
|
|
1017
1017
|
"data-size": r,
|
|
1018
1018
|
"data-leading": s,
|
|
1019
|
-
"data-weight":
|
|
1020
|
-
"data-color":
|
|
1019
|
+
"data-weight": m,
|
|
1020
|
+
"data-color": f,
|
|
1021
1021
|
"data-variant": r === "xxs" && "default" || l,
|
|
1022
|
-
"data-max-rows":
|
|
1023
|
-
children: /* @__PURE__ */ a(ue, { loading: o, children:
|
|
1022
|
+
"data-max-rows": h,
|
|
1023
|
+
children: /* @__PURE__ */ a(ue, { loading: o, children: y })
|
|
1024
1024
|
}
|
|
1025
1025
|
);
|
|
1026
1026
|
}, fn = "_label_e5q28_3", pn = {
|
|
@@ -1032,10 +1032,10 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
|
|
|
1032
1032
|
description: t,
|
|
1033
1033
|
descriptionProps: r = {},
|
|
1034
1034
|
highlightWords: s,
|
|
1035
|
-
loading:
|
|
1036
|
-
children:
|
|
1037
|
-
}) => /* @__PURE__ */ a("span", { className:
|
|
1038
|
-
o && /* @__PURE__ */ a(me, { ...n, as: "span", loading:
|
|
1035
|
+
loading: m,
|
|
1036
|
+
children: f
|
|
1037
|
+
}) => /* @__PURE__ */ a("span", { className: U(pn.label, e), children: f || /* @__PURE__ */ x(xe, { children: [
|
|
1038
|
+
o && /* @__PURE__ */ a(me, { ...n, as: "span", loading: m, highlightWords: s, maxRows: 2, children: o }),
|
|
1039
1039
|
t && /* @__PURE__ */ a(
|
|
1040
1040
|
me,
|
|
1041
1041
|
{
|
|
@@ -1043,13 +1043,13 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
|
|
|
1043
1043
|
as: "span",
|
|
1044
1044
|
weight: "normal",
|
|
1045
1045
|
leading: "inherit",
|
|
1046
|
-
loading:
|
|
1046
|
+
loading: m,
|
|
1047
1047
|
highlightWords: s,
|
|
1048
1048
|
maxRows: 2,
|
|
1049
1049
|
children: t
|
|
1050
1050
|
}
|
|
1051
1051
|
)
|
|
1052
|
-
] }) }), hn = "_item_h7sxa_3", vn = "_media_h7sxa_136", bn = "_label_h7sxa_157", gn = "_title_h7sxa_172", yn = "_description_h7sxa_176", _n = "_count_h7sxa_188", wn = "_linkIcon_h7sxa_196",
|
|
1052
|
+
] }) }), hn = "_item_h7sxa_3", vn = "_media_h7sxa_136", bn = "_label_h7sxa_157", gn = "_title_h7sxa_172", yn = "_description_h7sxa_176", _n = "_count_h7sxa_188", wn = "_linkIcon_h7sxa_196", V = {
|
|
1053
1053
|
item: hn,
|
|
1054
1054
|
media: vn,
|
|
1055
1055
|
label: bn,
|
|
@@ -1064,162 +1064,165 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
|
|
|
1064
1064
|
as: t,
|
|
1065
1065
|
href: r,
|
|
1066
1066
|
onClick: s,
|
|
1067
|
-
onChange:
|
|
1068
|
-
onKeyPress:
|
|
1067
|
+
onChange: m,
|
|
1068
|
+
onKeyPress: f,
|
|
1069
1069
|
onMouseEnter: l,
|
|
1070
|
-
size:
|
|
1071
|
-
variant:
|
|
1070
|
+
size: h = "sm",
|
|
1071
|
+
variant: p,
|
|
1072
1072
|
color: i,
|
|
1073
1073
|
name: b,
|
|
1074
|
-
value:
|
|
1075
|
-
checked:
|
|
1076
|
-
icon:
|
|
1074
|
+
value: g,
|
|
1075
|
+
checked: y,
|
|
1076
|
+
icon: M,
|
|
1077
1077
|
label: v,
|
|
1078
1078
|
badge: I,
|
|
1079
|
-
controls:
|
|
1080
|
-
title:
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1079
|
+
controls: A,
|
|
1080
|
+
title: E,
|
|
1081
|
+
htmlTitle: O,
|
|
1082
|
+
description: d,
|
|
1083
|
+
highlightWords: $,
|
|
1084
|
+
count: z,
|
|
1085
|
+
linkIcon: T = !1,
|
|
1086
|
+
disabled: N,
|
|
1087
|
+
selected: P,
|
|
1088
|
+
active: j,
|
|
1089
|
+
tabIndex: S = 0,
|
|
1090
|
+
className: R,
|
|
1091
|
+
"data-testid": c,
|
|
1091
1092
|
...u
|
|
1092
1093
|
}) => {
|
|
1093
|
-
const
|
|
1094
|
+
const k = typeof v == "function" ? v() : v, L = ht(u);
|
|
1094
1095
|
if (n === "checkbox" || n === "radio") {
|
|
1095
|
-
const H =
|
|
1096
|
+
const H = M || (y ? Qe : Lt);
|
|
1096
1097
|
return /* @__PURE__ */ x(
|
|
1097
1098
|
"label",
|
|
1098
1099
|
{
|
|
1099
|
-
...
|
|
1100
|
-
className: V
|
|
1100
|
+
...L,
|
|
1101
|
+
className: U(V.item, R),
|
|
1101
1102
|
id: e,
|
|
1102
1103
|
"data-id": e,
|
|
1103
1104
|
"data-group-id": o,
|
|
1104
|
-
"data-size":
|
|
1105
|
-
"data-variant":
|
|
1105
|
+
"data-size": h,
|
|
1106
|
+
"data-variant": p,
|
|
1106
1107
|
"data-color": i,
|
|
1107
|
-
"data-active":
|
|
1108
|
+
"data-active": j,
|
|
1108
1109
|
role: n,
|
|
1109
|
-
"aria-disabled":
|
|
1110
|
-
"aria-checked":
|
|
1111
|
-
"aria-selected":
|
|
1112
|
-
"data-selected":
|
|
1113
|
-
"aria-label":
|
|
1114
|
-
|
|
1110
|
+
"aria-disabled": N,
|
|
1111
|
+
"aria-checked": y,
|
|
1112
|
+
"aria-selected": y,
|
|
1113
|
+
"data-selected": y,
|
|
1114
|
+
"aria-label": E,
|
|
1115
|
+
title: O,
|
|
1116
|
+
"data-testid": c,
|
|
1115
1117
|
onKeyUp: (q) => {
|
|
1116
|
-
|
|
1118
|
+
N || (q.target === q.currentTarget && q.key === "Enter" && s?.(), f?.(q));
|
|
1117
1119
|
},
|
|
1118
1120
|
onClick: s,
|
|
1119
1121
|
onMouseEnter: l,
|
|
1120
|
-
tabIndex:
|
|
1122
|
+
tabIndex: S,
|
|
1121
1123
|
children: [
|
|
1122
1124
|
/* @__PURE__ */ a(
|
|
1123
1125
|
"input",
|
|
1124
1126
|
{
|
|
1125
1127
|
name: b,
|
|
1126
|
-
value:
|
|
1128
|
+
value: g,
|
|
1127
1129
|
type: n,
|
|
1128
|
-
checked: !!
|
|
1129
|
-
onChange:
|
|
1130
|
-
readOnly: !
|
|
1130
|
+
checked: !!y,
|
|
1131
|
+
onChange: m,
|
|
1132
|
+
readOnly: !m,
|
|
1131
1133
|
style: { opacity: 0, position: "absolute" },
|
|
1132
1134
|
tabIndex: -1
|
|
1133
1135
|
}
|
|
1134
1136
|
),
|
|
1135
|
-
/* @__PURE__ */ a(Te, { icon: H, className:
|
|
1137
|
+
/* @__PURE__ */ a(Te, { icon: H, className: V.media }),
|
|
1136
1138
|
/* @__PURE__ */ a(
|
|
1137
1139
|
Le,
|
|
1138
1140
|
{
|
|
1139
|
-
className:
|
|
1140
|
-
highlightWords:
|
|
1141
|
+
className: V.label,
|
|
1142
|
+
highlightWords: $,
|
|
1141
1143
|
title: /* @__PURE__ */ x(xe, { children: [
|
|
1142
|
-
|
|
1144
|
+
E,
|
|
1143
1145
|
" ",
|
|
1144
|
-
|
|
1146
|
+
z && /* @__PURE__ */ a("i", { className: V.count, children: z })
|
|
1145
1147
|
] }),
|
|
1146
1148
|
titleProps: {
|
|
1147
1149
|
weight: "medium",
|
|
1148
|
-
className:
|
|
1150
|
+
className: V.title
|
|
1149
1151
|
},
|
|
1150
|
-
description:
|
|
1152
|
+
description: d,
|
|
1151
1153
|
descriptionProps: {
|
|
1152
1154
|
weight: "normal",
|
|
1153
1155
|
variant: "subtle",
|
|
1154
|
-
className:
|
|
1156
|
+
className: V.description
|
|
1155
1157
|
},
|
|
1156
|
-
children:
|
|
1158
|
+
children: k
|
|
1157
1159
|
}
|
|
1158
1160
|
),
|
|
1159
1161
|
/* @__PURE__ */ x(Re, { children: [
|
|
1160
1162
|
I && /* @__PURE__ */ a(re, { ...I }),
|
|
1161
|
-
!
|
|
1163
|
+
!N && A
|
|
1162
1164
|
] })
|
|
1163
1165
|
]
|
|
1164
1166
|
}
|
|
1165
1167
|
);
|
|
1166
1168
|
}
|
|
1167
|
-
const
|
|
1169
|
+
const F = t || (r ? "a" : "button"), K = T && zt;
|
|
1168
1170
|
return /* @__PURE__ */ x(
|
|
1169
|
-
|
|
1171
|
+
F,
|
|
1170
1172
|
{
|
|
1171
1173
|
href: r,
|
|
1172
|
-
className: V
|
|
1174
|
+
className: U(V.item, R),
|
|
1173
1175
|
id: e,
|
|
1174
1176
|
"data-id": e,
|
|
1175
1177
|
"data-group-id": o,
|
|
1176
|
-
"data-size":
|
|
1177
|
-
"data-variant":
|
|
1178
|
+
"data-size": h,
|
|
1179
|
+
"data-variant": p,
|
|
1178
1180
|
"data-color": i,
|
|
1179
|
-
"data-active":
|
|
1180
|
-
"aria-disabled":
|
|
1181
|
-
...
|
|
1182
|
-
"aria-current": n !== "option" &&
|
|
1183
|
-
"aria-selected": n === "option" ?
|
|
1184
|
-
"data-selected":
|
|
1185
|
-
"aria-label":
|
|
1186
|
-
|
|
1181
|
+
"data-active": j,
|
|
1182
|
+
"aria-disabled": N,
|
|
1183
|
+
...N ? { disabled: N } : {},
|
|
1184
|
+
"aria-current": n !== "option" && P ? "page" : void 0,
|
|
1185
|
+
"aria-selected": n === "option" ? P : void 0,
|
|
1186
|
+
"data-selected": P,
|
|
1187
|
+
"aria-label": E,
|
|
1188
|
+
title: O,
|
|
1189
|
+
"data-testid": c,
|
|
1187
1190
|
onKeyUp: (H) => {
|
|
1188
|
-
|
|
1191
|
+
N || (H.target === H.currentTarget && H.key === "Enter" && s?.(), f?.(H));
|
|
1189
1192
|
},
|
|
1190
1193
|
onClick: s,
|
|
1191
1194
|
onMouseEnter: l,
|
|
1192
|
-
tabIndex:
|
|
1195
|
+
tabIndex: N ? -1 : S ?? 0,
|
|
1193
1196
|
role: n === "menuItem" ? "menuitem" : n,
|
|
1194
|
-
...
|
|
1197
|
+
...L,
|
|
1195
1198
|
children: [
|
|
1196
|
-
|
|
1199
|
+
M && /* @__PURE__ */ a(Te, { icon: M, className: V.media }),
|
|
1197
1200
|
/* @__PURE__ */ a(
|
|
1198
1201
|
Le,
|
|
1199
1202
|
{
|
|
1200
|
-
className:
|
|
1201
|
-
highlightWords:
|
|
1203
|
+
className: V.label,
|
|
1204
|
+
highlightWords: $,
|
|
1202
1205
|
title: /* @__PURE__ */ x(xe, { children: [
|
|
1203
|
-
|
|
1206
|
+
E,
|
|
1204
1207
|
" ",
|
|
1205
|
-
|
|
1208
|
+
z && /* @__PURE__ */ a("i", { className: V.count, children: z })
|
|
1206
1209
|
] }),
|
|
1207
1210
|
titleProps: {
|
|
1208
1211
|
weight: "medium",
|
|
1209
|
-
className:
|
|
1212
|
+
className: V.title
|
|
1210
1213
|
},
|
|
1211
|
-
description:
|
|
1214
|
+
description: d,
|
|
1212
1215
|
descriptionProps: {
|
|
1213
1216
|
variant: "subtle",
|
|
1214
|
-
className:
|
|
1217
|
+
className: V.description
|
|
1215
1218
|
},
|
|
1216
|
-
children:
|
|
1219
|
+
children: k
|
|
1217
1220
|
}
|
|
1218
1221
|
),
|
|
1219
1222
|
/* @__PURE__ */ x(Re, { children: [
|
|
1220
1223
|
I && /* @__PURE__ */ a(re, { ...I }),
|
|
1221
|
-
!
|
|
1222
|
-
|
|
1224
|
+
!N && A,
|
|
1225
|
+
T && /* @__PURE__ */ a(se, { svgElement: K, className: V.linkIcon })
|
|
1223
1226
|
] })
|
|
1224
1227
|
]
|
|
1225
1228
|
}
|
|
@@ -1240,58 +1243,58 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
|
|
|
1240
1243
|
loadingLabel: t = "Loading ...",
|
|
1241
1244
|
size: r,
|
|
1242
1245
|
color: s = "neutral",
|
|
1243
|
-
label:
|
|
1244
|
-
hideLabel:
|
|
1246
|
+
label: m,
|
|
1247
|
+
hideLabel: f,
|
|
1245
1248
|
value: l,
|
|
1246
|
-
onClear:
|
|
1247
|
-
clearButtonAltText:
|
|
1249
|
+
onClear: h,
|
|
1250
|
+
clearButtonAltText: p = "Clear search",
|
|
1248
1251
|
menu: i,
|
|
1249
1252
|
minLength: b,
|
|
1250
|
-
...
|
|
1253
|
+
...g
|
|
1251
1254
|
}) => {
|
|
1252
|
-
const
|
|
1253
|
-
...
|
|
1255
|
+
const y = De(), [M, v] = oe(!1), I = g.id || `search-field-${y}`, A = `${I}-listbox`, [E, O] = oe(void 0), d = "searchfield-clear-button-" + De(), $ = ie(() => !i || !l || typeof b == "number" && typeof l == "string" && l.length < b ? !1 : M, [i, M, b, l]), z = ie(() => (i?.items ?? []).map((c) => ({
|
|
1256
|
+
...c,
|
|
1254
1257
|
onClick: () => {
|
|
1255
|
-
|
|
1258
|
+
c.onClick?.(), v(!1);
|
|
1256
1259
|
}
|
|
1257
|
-
})), [i]),
|
|
1258
|
-
if (
|
|
1260
|
+
})), [i]), T = (c) => {
|
|
1261
|
+
if (c.key === "Enter" && $) {
|
|
1259
1262
|
i?.items?.[0]?.onClick?.(), v(!1);
|
|
1260
1263
|
return;
|
|
1261
1264
|
}
|
|
1262
|
-
if (
|
|
1263
|
-
|
|
1265
|
+
if (c.key === "Escape" && $) {
|
|
1266
|
+
c.preventDefault(), c.stopPropagation(), v(!1), i?.onClose(), document.getElementById(I)?.focus();
|
|
1264
1267
|
return;
|
|
1265
1268
|
}
|
|
1266
|
-
|
|
1267
|
-
},
|
|
1269
|
+
g.onKeyDown?.(c), v(!0);
|
|
1270
|
+
}, N = () => {
|
|
1268
1271
|
v(!0);
|
|
1269
|
-
},
|
|
1270
|
-
if (!
|
|
1271
|
-
const
|
|
1272
|
-
|
|
1273
|
-
},
|
|
1274
|
-
|
|
1275
|
-
},
|
|
1276
|
-
|
|
1277
|
-
},
|
|
1272
|
+
}, P = (c) => {
|
|
1273
|
+
if (!M) return;
|
|
1274
|
+
const u = c.relatedTarget;
|
|
1275
|
+
u && c.currentTarget.contains(u) || v(!1);
|
|
1276
|
+
}, j = (c) => {
|
|
1277
|
+
c.preventDefault();
|
|
1278
|
+
}, S = (c) => {
|
|
1279
|
+
c.relatedTarget?.id === d && O(void 0), g.onBlur?.(c);
|
|
1280
|
+
}, R = /* @__PURE__ */ x(
|
|
1278
1281
|
Qt,
|
|
1279
1282
|
{
|
|
1280
1283
|
size: r,
|
|
1281
1284
|
color: s,
|
|
1282
|
-
label:
|
|
1285
|
+
label: f ? void 0 : m,
|
|
1283
1286
|
htmlFor: I,
|
|
1284
|
-
className:
|
|
1287
|
+
className: U(te.field, e),
|
|
1285
1288
|
"data-collapsible": o ? !0 : void 0,
|
|
1286
|
-
onBlurCapture:
|
|
1289
|
+
onBlurCapture: P,
|
|
1287
1290
|
children: [
|
|
1288
1291
|
/* @__PURE__ */ a("span", { className: te.hiddenInput, "aria-hidden": "true", children: l + " " }),
|
|
1289
1292
|
/* @__PURE__ */ a(
|
|
1290
1293
|
ut,
|
|
1291
1294
|
{
|
|
1292
|
-
...
|
|
1295
|
+
...g,
|
|
1293
1296
|
id: I,
|
|
1294
|
-
"aria-label":
|
|
1297
|
+
"aria-label": f && typeof m == "string" ? m : void 0,
|
|
1295
1298
|
inputSize: 5,
|
|
1296
1299
|
type: "search",
|
|
1297
1300
|
value: l,
|
|
@@ -1300,21 +1303,21 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
|
|
|
1300
1303
|
autoCapitalize: "off",
|
|
1301
1304
|
autoComplete: "off",
|
|
1302
1305
|
minLength: b,
|
|
1303
|
-
onKeyDown:
|
|
1304
|
-
onBlur:
|
|
1306
|
+
onKeyDown: T,
|
|
1307
|
+
onBlur: S,
|
|
1305
1308
|
...i && {
|
|
1306
1309
|
role: "combobox",
|
|
1307
1310
|
"aria-autocomplete": "list",
|
|
1308
|
-
"aria-expanded":
|
|
1311
|
+
"aria-expanded": !!$,
|
|
1309
1312
|
"aria-haspopup": "listbox",
|
|
1310
|
-
"aria-controls":
|
|
1311
|
-
"aria-activedescendant":
|
|
1312
|
-
onFocus:
|
|
1313
|
+
"aria-controls": A,
|
|
1314
|
+
"aria-activedescendant": $ ? E : void 0,
|
|
1315
|
+
onFocus: N
|
|
1313
1316
|
}
|
|
1314
1317
|
}
|
|
1315
1318
|
),
|
|
1316
1319
|
n ? /* @__PURE__ */ a(pt, { "aria-hidden": !0, className: te.icon }) : /* @__PURE__ */ a(Bt, { "aria-hidden": !0, className: te.icon }),
|
|
1317
|
-
|
|
1320
|
+
h && !!l && /* @__PURE__ */ a("span", { className: te.clear, children: /* @__PURE__ */ a(
|
|
1318
1321
|
ve,
|
|
1319
1322
|
{
|
|
1320
1323
|
id: d,
|
|
@@ -1325,9 +1328,9 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
|
|
|
1325
1328
|
variant: "tinted",
|
|
1326
1329
|
className: te.clearButton,
|
|
1327
1330
|
onClick: () => {
|
|
1328
|
-
|
|
1331
|
+
h?.(), document.getElementById(I)?.focus();
|
|
1329
1332
|
},
|
|
1330
|
-
"aria-label":
|
|
1333
|
+
"aria-label": p,
|
|
1331
1334
|
"data-action": "clear-input",
|
|
1332
1335
|
children: /* @__PURE__ */ a(Ae, {})
|
|
1333
1336
|
}
|
|
@@ -1336,22 +1339,22 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
|
|
|
1336
1339
|
}
|
|
1337
1340
|
);
|
|
1338
1341
|
return i ? /* @__PURE__ */ x("div", { className: te.fieldContainer, children: [
|
|
1339
|
-
|
|
1340
|
-
|
|
1342
|
+
R,
|
|
1343
|
+
$ && /* @__PURE__ */ a("div", { className: te.autocomplete, "aria-hidden": !$, onMouseDown: j, children: /* @__PURE__ */ a(
|
|
1341
1344
|
et,
|
|
1342
1345
|
{
|
|
1343
1346
|
...i,
|
|
1344
|
-
id:
|
|
1345
|
-
items:
|
|
1347
|
+
id: A,
|
|
1348
|
+
items: z,
|
|
1346
1349
|
groups: i?.groups,
|
|
1347
1350
|
keyboardEvents: !0,
|
|
1348
1351
|
a11yMode: "combobox",
|
|
1349
|
-
open:
|
|
1352
|
+
open: $,
|
|
1350
1353
|
autoFocusList: !1,
|
|
1351
1354
|
onActiveItemIdChange: O
|
|
1352
1355
|
}
|
|
1353
1356
|
) })
|
|
1354
|
-
] }) :
|
|
1357
|
+
] }) : R;
|
|
1355
1358
|
}, Rn = "_byline_fzp7k_1", zn = "_avatar_fzp7k_7", Pn = "_avatarGroup_fzp7k_12", Mn = "_label_fzp7k_26", pe = {
|
|
1356
1359
|
byline: Rn,
|
|
1357
1360
|
avatar: zn,
|
|
@@ -1364,14 +1367,14 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
|
|
|
1364
1367
|
avatar: t,
|
|
1365
1368
|
avatarGroup: r,
|
|
1366
1369
|
datetime: s,
|
|
1367
|
-
children:
|
|
1368
|
-
as:
|
|
1370
|
+
children: m,
|
|
1371
|
+
as: f,
|
|
1369
1372
|
...l
|
|
1370
1373
|
}) => {
|
|
1371
|
-
const
|
|
1372
|
-
return /* @__PURE__ */ x(
|
|
1374
|
+
const h = f || "div", p = s ? "time" : "span";
|
|
1375
|
+
return /* @__PURE__ */ x(h, { ...l, className: pe.byline, "data-color": o, "data-size": n, children: [
|
|
1373
1376
|
(r || t) && /* @__PURE__ */ a(ue, { variant: "circle", className: pe.avatar, loading: e, children: r ? /* @__PURE__ */ a(be, { ...r, size: n, className: pe.avatarGroup }) : t && /* @__PURE__ */ a(je, { ...t, size: n, className: pe.avatar }) }),
|
|
1374
|
-
/* @__PURE__ */ a(
|
|
1377
|
+
/* @__PURE__ */ a(p, { "data-size": n, dateTime: s, className: pe.label, children: /* @__PURE__ */ a(ue, { loading: e, children: m }) })
|
|
1375
1378
|
] });
|
|
1376
1379
|
}, jn = "_dropdown_11cza_1", An = "_content_11cza_17", Dn = "_backdrop_11cza_47", Bn = "_header_11cza_76", Tn = "_footer_11cza_77", Ln = "_title_11cza_156", ce = {
|
|
1377
1380
|
dropdown: jn,
|
|
@@ -1403,95 +1406,95 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
|
|
|
1403
1406
|
backdrop: t = !0,
|
|
1404
1407
|
placement: r = "bottom-left",
|
|
1405
1408
|
variant: s = "dropdown",
|
|
1406
|
-
title:
|
|
1407
|
-
closeLabel:
|
|
1409
|
+
title: m = "Title",
|
|
1410
|
+
closeLabel: f = "Close",
|
|
1408
1411
|
submitLabel: l,
|
|
1409
|
-
trigger:
|
|
1410
|
-
children:
|
|
1412
|
+
trigger: h,
|
|
1413
|
+
children: p,
|
|
1411
1414
|
open: i,
|
|
1412
1415
|
onClose: b,
|
|
1413
|
-
color:
|
|
1414
|
-
onSubmit:
|
|
1415
|
-
activeDescendantId:
|
|
1416
|
+
color: g,
|
|
1417
|
+
onSubmit: y,
|
|
1418
|
+
activeDescendantId: M,
|
|
1416
1419
|
useFixedPosition: v = !1,
|
|
1417
1420
|
expanded: I = !1
|
|
1418
1421
|
}) => {
|
|
1419
|
-
const
|
|
1420
|
-
|
|
1422
|
+
const A = ee(null), E = ee(null), O = ee(i);
|
|
1423
|
+
Y(() => {
|
|
1421
1424
|
O.current = i;
|
|
1422
1425
|
}, [i]);
|
|
1423
|
-
const [d,
|
|
1426
|
+
const [d, $] = oe({
|
|
1424
1427
|
yDir: r.includes("top") ? "top" : "bottom",
|
|
1425
1428
|
xDir: r.includes("right") ? "right" : "left",
|
|
1426
1429
|
maxHeight: 300
|
|
1427
|
-
}),
|
|
1428
|
-
if (i &&
|
|
1429
|
-
const
|
|
1430
|
-
|
|
1430
|
+
}), z = qe(() => {
|
|
1431
|
+
if (i && A.current && E.current) {
|
|
1432
|
+
const P = A.current.getBoundingClientRect(), j = E.current.getBoundingClientRect(), S = window.innerHeight, R = window.innerWidth, c = 16, u = S - P.bottom, k = P.top, L = R - P.right - j.width, F = u < 250 && k > u, K = F ? "top" : "bottom", H = (F ? k : u) - c, _ = L < c ? "right" : "left";
|
|
1433
|
+
$((w) => ({
|
|
1431
1434
|
...w,
|
|
1432
|
-
yDir:
|
|
1433
|
-
maxHeight:
|
|
1434
|
-
xDir:
|
|
1435
|
-
triggerRect: v ?
|
|
1435
|
+
yDir: K,
|
|
1436
|
+
maxHeight: H,
|
|
1437
|
+
xDir: _,
|
|
1438
|
+
triggerRect: v ? P : void 0
|
|
1436
1439
|
}));
|
|
1437
1440
|
}
|
|
1438
1441
|
}, [i, v]);
|
|
1439
|
-
Ce(() => (
|
|
1440
|
-
window.removeEventListener("resize",
|
|
1441
|
-
}), [
|
|
1442
|
+
Ce(() => (z(), window.addEventListener("resize", z), v && window.addEventListener("scroll", z, !0), () => {
|
|
1443
|
+
window.removeEventListener("resize", z), v && window.removeEventListener("scroll", z, !0);
|
|
1444
|
+
}), [z, v]), Y(() => {
|
|
1442
1445
|
if (!i) return;
|
|
1443
|
-
const
|
|
1444
|
-
const
|
|
1445
|
-
if (
|
|
1446
|
-
const
|
|
1446
|
+
const P = requestAnimationFrame(() => {
|
|
1447
|
+
const j = E.current;
|
|
1448
|
+
if (!j) return;
|
|
1449
|
+
const S = j.querySelector(
|
|
1447
1450
|
'input[type="search"]:not([disabled]), input[role="searchbox"]:not([disabled]), input[data-dropdown-search]:not([disabled])'
|
|
1448
1451
|
);
|
|
1449
|
-
if (
|
|
1450
|
-
const
|
|
1451
|
-
|
|
1452
|
+
if (S) {
|
|
1453
|
+
const R = S.value.length;
|
|
1454
|
+
S.focus({ preventScroll: !0 });
|
|
1452
1455
|
try {
|
|
1453
|
-
|
|
1456
|
+
S.setSelectionRange(R, R);
|
|
1454
1457
|
} catch {
|
|
1455
1458
|
}
|
|
1456
1459
|
return;
|
|
1457
1460
|
}
|
|
1458
|
-
|
|
1461
|
+
j.focus?.({ preventScroll: !0 });
|
|
1459
1462
|
});
|
|
1460
|
-
return () => cancelAnimationFrame(
|
|
1461
|
-
}, [i]),
|
|
1462
|
-
const
|
|
1463
|
-
|
|
1464
|
-
},
|
|
1465
|
-
const
|
|
1466
|
-
!
|
|
1463
|
+
return () => cancelAnimationFrame(P);
|
|
1464
|
+
}, [i]), Y(() => {
|
|
1465
|
+
const P = (S) => {
|
|
1466
|
+
S.key === "Escape" && (S.preventDefault(), b());
|
|
1467
|
+
}, j = (S) => {
|
|
1468
|
+
const R = S.target, c = A.current?.contains(R), u = E.current?.contains(R);
|
|
1469
|
+
!c && !u && b();
|
|
1467
1470
|
};
|
|
1468
|
-
return i && (document.addEventListener("mousedown",
|
|
1469
|
-
document.removeEventListener("mousedown",
|
|
1471
|
+
return i && (document.addEventListener("mousedown", j), document.addEventListener("keydown", P)), () => {
|
|
1472
|
+
document.removeEventListener("mousedown", j), document.removeEventListener("keydown", P);
|
|
1470
1473
|
};
|
|
1471
|
-
}, [i, b]),
|
|
1474
|
+
}, [i, b]), Y(() => {
|
|
1472
1475
|
if (!i) return;
|
|
1473
|
-
const
|
|
1474
|
-
if (!
|
|
1475
|
-
const
|
|
1476
|
+
const P = E.current;
|
|
1477
|
+
if (!P) return;
|
|
1478
|
+
const j = (R) => {
|
|
1476
1479
|
if (!O.current)
|
|
1477
1480
|
return;
|
|
1478
|
-
const
|
|
1479
|
-
|
|
1480
|
-
},
|
|
1481
|
-
if (
|
|
1482
|
-
const
|
|
1483
|
-
if (
|
|
1484
|
-
|
|
1481
|
+
const c = R.target;
|
|
1482
|
+
c && !P.contains(c) && Hn(P);
|
|
1483
|
+
}, S = (R) => {
|
|
1484
|
+
if (R.key !== "Tab") return;
|
|
1485
|
+
const c = nt(P);
|
|
1486
|
+
if (c.length === 0) {
|
|
1487
|
+
R.preventDefault(), P.focus?.({ preventScroll: !0 });
|
|
1485
1488
|
return;
|
|
1486
1489
|
}
|
|
1487
|
-
const
|
|
1488
|
-
|
|
1490
|
+
const u = c[0], k = c[c.length - 1], L = document.activeElement;
|
|
1491
|
+
R.shiftKey ? L === u && (R.preventDefault(), k.focus({ preventScroll: !0 })) : L === k && (R.preventDefault(), u.focus({ preventScroll: !0 }));
|
|
1489
1492
|
};
|
|
1490
|
-
return document.addEventListener("focusin",
|
|
1491
|
-
document.removeEventListener("focusin",
|
|
1493
|
+
return document.addEventListener("focusin", j), document.addEventListener("keydown", S), () => {
|
|
1494
|
+
document.removeEventListener("focusin", j), document.removeEventListener("keydown", S);
|
|
1492
1495
|
};
|
|
1493
1496
|
}, [i]);
|
|
1494
|
-
const
|
|
1497
|
+
const T = v && d.triggerRect ? {
|
|
1495
1498
|
position: "fixed",
|
|
1496
1499
|
zIndex: 1e3,
|
|
1497
1500
|
width: "max-content",
|
|
@@ -1507,36 +1510,36 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
|
|
|
1507
1510
|
overflowY: "auto",
|
|
1508
1511
|
[d.xDir]: 0,
|
|
1509
1512
|
[d.yDir === "bottom" ? "top" : "bottom"]: "100%"
|
|
1510
|
-
},
|
|
1513
|
+
}, N = /* @__PURE__ */ x(
|
|
1511
1514
|
"div",
|
|
1512
1515
|
{
|
|
1513
|
-
ref:
|
|
1514
|
-
className:
|
|
1515
|
-
style:
|
|
1516
|
+
ref: E,
|
|
1517
|
+
className: U(ce.dropdown, n),
|
|
1518
|
+
style: T,
|
|
1516
1519
|
"aria-hidden": !i,
|
|
1517
1520
|
"data-variant": s,
|
|
1518
|
-
"data-color":
|
|
1521
|
+
"data-color": g,
|
|
1519
1522
|
"data-expanded": I,
|
|
1520
1523
|
"data-size": o,
|
|
1521
1524
|
tabIndex: -1,
|
|
1522
1525
|
role: "menu",
|
|
1523
1526
|
"aria-modal": s === "drawer-dropdown" ? !0 : void 0,
|
|
1524
|
-
"aria-activedescendant":
|
|
1527
|
+
"aria-activedescendant": M,
|
|
1525
1528
|
children: [
|
|
1526
1529
|
/* @__PURE__ */ x("header", { className: ce.header, children: [
|
|
1527
|
-
/* @__PURE__ */ a("h2", { className: ce.title, children:
|
|
1528
|
-
/* @__PURE__ */ a(ve, { size: "sm", variant: "outline", onClick: b, "aria-label":
|
|
1530
|
+
/* @__PURE__ */ a("h2", { className: ce.title, children: m }),
|
|
1531
|
+
/* @__PURE__ */ a(ve, { size: "sm", variant: "outline", onClick: b, "aria-label": f, children: /* @__PURE__ */ a(Ae, {}) })
|
|
1529
1532
|
] }),
|
|
1530
|
-
/* @__PURE__ */ a("div", { className: ce.content, children:
|
|
1531
|
-
l && /* @__PURE__ */ a("footer", { className: ce.footer, children: /* @__PURE__ */ a(ve, { size: "lg", variant: "solid", onClick:
|
|
1533
|
+
/* @__PURE__ */ a("div", { className: ce.content, children: p }),
|
|
1534
|
+
l && /* @__PURE__ */ a("footer", { className: ce.footer, children: /* @__PURE__ */ a(ve, { size: "lg", variant: "solid", onClick: y || b, rounded: !0, children: /* @__PURE__ */ a("span", { "data-size": "md", children: l }) }) })
|
|
1532
1535
|
]
|
|
1533
1536
|
}
|
|
1534
1537
|
);
|
|
1535
1538
|
return /* @__PURE__ */ x(xe, { children: [
|
|
1536
1539
|
t && /* @__PURE__ */ a("div", { className: ce.backdrop, "aria-hidden": !i }),
|
|
1537
|
-
/* @__PURE__ */ x("div", { id: e + "-root", ref:
|
|
1538
|
-
|
|
1539
|
-
v ? lt(
|
|
1540
|
+
/* @__PURE__ */ x("div", { id: e + "-root", ref: A, style: { position: "relative", display: "inline-block" }, children: [
|
|
1541
|
+
h,
|
|
1542
|
+
v ? lt(N, document.body) : N
|
|
1540
1543
|
] })
|
|
1541
1544
|
] });
|
|
1542
1545
|
}, qn = "_section_1v20z_1", Kn = "_header_1v20z_7", Vn = "_list_1v20z_13", _e = {
|
|
@@ -1544,34 +1547,34 @@ const Te = ({ className: e, loading: o, icon: n, children: t }) => {
|
|
|
1544
1547
|
header: Kn,
|
|
1545
1548
|
list: Vn
|
|
1546
1549
|
}, Un = Oe(
|
|
1547
|
-
({ title: e, description: o, items: n, groups: t = {}, sortGroupBy: r, highlightWords: s, isLoading:
|
|
1548
|
-
const { menu:
|
|
1550
|
+
({ title: e, description: o, items: n, groups: t = {}, sortGroupBy: r, highlightWords: s, isLoading: m }) => {
|
|
1551
|
+
const { menu: f } = Me({
|
|
1549
1552
|
items: n,
|
|
1550
1553
|
groups: t,
|
|
1551
1554
|
groupByKey: "groupId",
|
|
1552
1555
|
keyboardEvents: !1,
|
|
1553
1556
|
sortGroupBy: r
|
|
1554
1557
|
});
|
|
1555
|
-
return /* @__PURE__ */ x("section", { className: _e.section, "aria-busy":
|
|
1558
|
+
return /* @__PURE__ */ x("section", { className: _e.section, "aria-busy": m, children: [
|
|
1556
1559
|
e || o ? /* @__PURE__ */ x("header", { className: _e.header, children: [
|
|
1557
1560
|
e && /* @__PURE__ */ a(me, { as: "h1", size: "lg", children: e }),
|
|
1558
1561
|
o && /* @__PURE__ */ a(Ke, { as: "p", size: "sm", variant: "subtle", className: _e.description, children: o })
|
|
1559
1562
|
] }) : null,
|
|
1560
|
-
|
|
1561
|
-
const
|
|
1563
|
+
f?.map((l, h) => {
|
|
1564
|
+
const p = l.props || {};
|
|
1562
1565
|
return /* @__PURE__ */ x(He, { children: [
|
|
1563
|
-
|
|
1566
|
+
p?.title && /* @__PURE__ */ a(me, { as: "h2", size: "lg", children: p.title }),
|
|
1564
1567
|
/* @__PURE__ */ a("ul", { className: _e.list, children: l?.items.map((i, b) => {
|
|
1565
|
-
const
|
|
1566
|
-
return /* @__PURE__ */ st(rt, { ...
|
|
1568
|
+
const g = i.props || {};
|
|
1569
|
+
return /* @__PURE__ */ st(rt, { ...g, highlightWords: s, key: "dialog-list-item" + b });
|
|
1567
1570
|
}) })
|
|
1568
|
-
] }, "dialog-list-item" +
|
|
1571
|
+
] }, "dialog-list-item" + h);
|
|
1569
1572
|
})
|
|
1570
1573
|
] });
|
|
1571
1574
|
}
|
|
1572
1575
|
);
|
|
1573
1576
|
Un.displayName = "DialogList";
|
|
1574
|
-
const Wn = "_item_1cw3x_3", Yn = "_border_1cw3x_75", Qn = "_header_1cw3x_86", Xn = "_summary_1cw3x_102", Jn = "_controls_1cw3x_116", Zn = "_footer_1cw3x_123", er = "_seenBy_1cw3x_128", tr = "_link_1cw3x_138", nr = "_title_1cw3x_143",
|
|
1577
|
+
const Wn = "_item_1cw3x_3", Yn = "_border_1cw3x_75", Qn = "_header_1cw3x_86", Xn = "_summary_1cw3x_102", Jn = "_controls_1cw3x_116", Zn = "_footer_1cw3x_123", er = "_seenBy_1cw3x_128", tr = "_link_1cw3x_138", nr = "_title_1cw3x_143", Z = {
|
|
1575
1578
|
item: Wn,
|
|
1576
1579
|
border: Yn,
|
|
1577
1580
|
header: Qn,
|
|
@@ -1589,74 +1592,74 @@ const Wn = "_item_1cw3x_3", Yn = "_border_1cw3x_75", Qn = "_header_1cw3x_86", Xn
|
|
|
1589
1592
|
color: t,
|
|
1590
1593
|
loading: r,
|
|
1591
1594
|
controls: s,
|
|
1592
|
-
selectable:
|
|
1593
|
-
selected:
|
|
1595
|
+
selectable: m,
|
|
1596
|
+
selected: f,
|
|
1594
1597
|
status: l,
|
|
1595
|
-
extendedStatusLabel:
|
|
1596
|
-
sender:
|
|
1598
|
+
extendedStatusLabel: h,
|
|
1599
|
+
sender: p,
|
|
1597
1600
|
recipient: i,
|
|
1598
1601
|
recipientLabel: b = "to",
|
|
1599
|
-
grouped:
|
|
1600
|
-
updatedAt:
|
|
1601
|
-
updatedAtLabel:
|
|
1602
|
+
grouped: g = !1,
|
|
1603
|
+
updatedAt: y,
|
|
1604
|
+
updatedAtLabel: M,
|
|
1602
1605
|
archived: v,
|
|
1603
1606
|
archivedAt: I,
|
|
1604
|
-
archivedAtLabel:
|
|
1605
|
-
trashed:
|
|
1607
|
+
archivedAtLabel: A,
|
|
1608
|
+
trashed: E,
|
|
1606
1609
|
trashedAt: O,
|
|
1607
1610
|
trashedAtLabel: d,
|
|
1608
|
-
badge:
|
|
1609
|
-
dueAt:
|
|
1610
|
-
dueAtExpired:
|
|
1611
|
-
dueAtLabel:
|
|
1612
|
-
unread:
|
|
1613
|
-
unreadLabel:
|
|
1614
|
-
unreadItems:
|
|
1615
|
-
unreadItemsLabel:
|
|
1616
|
-
seenByLog:
|
|
1617
|
-
draftsLabel:
|
|
1618
|
-
sentCount:
|
|
1611
|
+
badge: $,
|
|
1612
|
+
dueAt: z,
|
|
1613
|
+
dueAtExpired: T,
|
|
1614
|
+
dueAtLabel: N,
|
|
1615
|
+
unread: P,
|
|
1616
|
+
unreadLabel: j = "Ulest",
|
|
1617
|
+
unreadItems: S,
|
|
1618
|
+
unreadItemsLabel: R = "Ulest innhold",
|
|
1619
|
+
seenByLog: c,
|
|
1620
|
+
draftsLabel: u,
|
|
1621
|
+
sentCount: k,
|
|
1619
1622
|
receivedCount: L,
|
|
1620
1623
|
attachmentsCount: F,
|
|
1621
|
-
attachmentsLabel:
|
|
1622
|
-
tooltips:
|
|
1623
|
-
title:
|
|
1624
|
-
description:
|
|
1624
|
+
attachmentsLabel: K,
|
|
1625
|
+
tooltips: H = {},
|
|
1626
|
+
title: q,
|
|
1627
|
+
description: _,
|
|
1625
1628
|
summary: w,
|
|
1626
|
-
highlightWords:
|
|
1627
|
-
id:
|
|
1628
|
-
...
|
|
1629
|
+
highlightWords: D,
|
|
1630
|
+
id: W,
|
|
1631
|
+
...B
|
|
1629
1632
|
}) => {
|
|
1630
|
-
const
|
|
1633
|
+
const J = m ? "select" : n;
|
|
1631
1634
|
return /* @__PURE__ */ x(
|
|
1632
1635
|
wt,
|
|
1633
1636
|
{
|
|
1634
1637
|
as: "li",
|
|
1635
|
-
id:
|
|
1636
|
-
className:
|
|
1638
|
+
id: W,
|
|
1639
|
+
className: Z.item,
|
|
1637
1640
|
size: o,
|
|
1638
1641
|
color: t,
|
|
1639
|
-
variant:
|
|
1640
|
-
"data-unread":
|
|
1641
|
-
"data-selected":
|
|
1642
|
-
"data-trashed":
|
|
1642
|
+
variant: J,
|
|
1643
|
+
"data-unread": P ? "true" : "false",
|
|
1644
|
+
"data-selected": f,
|
|
1645
|
+
"data-trashed": E,
|
|
1643
1646
|
"data-archived": v,
|
|
1644
1647
|
"data-loading": r,
|
|
1645
1648
|
children: [
|
|
1646
|
-
/* @__PURE__ */ a(xt, { ...
|
|
1647
|
-
/* @__PURE__ */ x("header", { className:
|
|
1649
|
+
/* @__PURE__ */ a(xt, { ...B, className: Z.link, as: e, children: /* @__PURE__ */ x("div", { className: Z.border, children: [
|
|
1650
|
+
/* @__PURE__ */ x("header", { className: Z.header, children: [
|
|
1648
1651
|
/* @__PURE__ */ x(
|
|
1649
1652
|
me,
|
|
1650
1653
|
{
|
|
1651
1654
|
as: "h2",
|
|
1652
|
-
highlightWords:
|
|
1653
|
-
weight:
|
|
1655
|
+
highlightWords: D,
|
|
1656
|
+
weight: P ? "bold" : "normal",
|
|
1654
1657
|
loading: r,
|
|
1655
1658
|
maxRows: 2,
|
|
1656
|
-
className:
|
|
1659
|
+
className: Z.title,
|
|
1657
1660
|
children: [
|
|
1658
|
-
|
|
1659
|
-
|
|
1661
|
+
q,
|
|
1662
|
+
P && /* @__PURE__ */ a(re, { label: j, variant: "tinted", style: { marginLeft: "0.75em", marginTop: "-2px" } }) || S && /* @__PURE__ */ a(re, { label: R, style: { marginLeft: "0.75em", marginTop: "-2px" } })
|
|
1660
1663
|
]
|
|
1661
1664
|
}
|
|
1662
1665
|
),
|
|
@@ -1665,19 +1668,19 @@ const Wn = "_item_1cw3x_3", Yn = "_border_1cw3x_75", Qn = "_header_1cw3x_86", Xn
|
|
|
1665
1668
|
{
|
|
1666
1669
|
size: "xs",
|
|
1667
1670
|
loading: r,
|
|
1668
|
-
sender:
|
|
1671
|
+
sender: p,
|
|
1669
1672
|
recipient: i,
|
|
1670
1673
|
recipientLabel: b,
|
|
1671
|
-
grouped:
|
|
1674
|
+
grouped: g
|
|
1672
1675
|
}
|
|
1673
1676
|
),
|
|
1674
1677
|
w && /* @__PURE__ */ a(
|
|
1675
1678
|
me,
|
|
1676
1679
|
{
|
|
1677
1680
|
as: "h3",
|
|
1678
|
-
highlightWords:
|
|
1681
|
+
highlightWords: D,
|
|
1679
1682
|
weight: "normal",
|
|
1680
|
-
className:
|
|
1683
|
+
className: Z.summary,
|
|
1681
1684
|
loading: r,
|
|
1682
1685
|
maxRows: 2,
|
|
1683
1686
|
children: w
|
|
@@ -1687,31 +1690,31 @@ const Wn = "_item_1cw3x_3", Yn = "_border_1cw3x_75", Qn = "_header_1cw3x_86", Xn
|
|
|
1687
1690
|
/* @__PURE__ */ a(
|
|
1688
1691
|
rr,
|
|
1689
1692
|
{
|
|
1690
|
-
className:
|
|
1693
|
+
className: Z.footer,
|
|
1691
1694
|
loading: r,
|
|
1692
|
-
badge:
|
|
1695
|
+
badge: $,
|
|
1693
1696
|
status: l,
|
|
1694
|
-
extendedStatusLabel:
|
|
1695
|
-
draftsLabel:
|
|
1696
|
-
sentCount:
|
|
1697
|
+
extendedStatusLabel: h,
|
|
1698
|
+
draftsLabel: u,
|
|
1699
|
+
sentCount: k,
|
|
1697
1700
|
receivedCount: L,
|
|
1698
|
-
updatedAt:
|
|
1699
|
-
updatedAtLabel:
|
|
1701
|
+
updatedAt: y,
|
|
1702
|
+
updatedAtLabel: M,
|
|
1700
1703
|
archivedAt: I,
|
|
1701
|
-
archivedAtLabel:
|
|
1704
|
+
archivedAtLabel: A,
|
|
1702
1705
|
trashedAt: O,
|
|
1703
1706
|
trashedAtLabel: d,
|
|
1704
|
-
dueAt:
|
|
1705
|
-
dueAtExpired:
|
|
1706
|
-
dueAtLabel:
|
|
1707
|
+
dueAt: z,
|
|
1708
|
+
dueAtExpired: T,
|
|
1709
|
+
dueAtLabel: N,
|
|
1707
1710
|
attachmentsCount: F,
|
|
1708
|
-
attachmentsLabel:
|
|
1709
|
-
tooltips:
|
|
1711
|
+
attachmentsLabel: K,
|
|
1712
|
+
tooltips: H
|
|
1710
1713
|
}
|
|
1711
1714
|
),
|
|
1712
|
-
|
|
1715
|
+
c && H?.seenBy ? /* @__PURE__ */ a($e, { placement: "bottom", content: H?.seenBy, children: /* @__PURE__ */ a("span", { className: Z.seenBy, children: /* @__PURE__ */ a(be, { items: c.items }) }) }) : c && /* @__PURE__ */ a(be, { items: c.items, className: Z.seenBy })
|
|
1713
1716
|
] }) }),
|
|
1714
|
-
/* @__PURE__ */ a(Re, { className:
|
|
1717
|
+
/* @__PURE__ */ a(Re, { className: Z.controls, children: s })
|
|
1715
1718
|
]
|
|
1716
1719
|
}
|
|
1717
1720
|
);
|
|
@@ -1725,42 +1728,42 @@ const rr = ({
|
|
|
1725
1728
|
sender: t,
|
|
1726
1729
|
updatedAt: r,
|
|
1727
1730
|
updatedAtLabel: s,
|
|
1728
|
-
dueAt:
|
|
1729
|
-
dueAtExpired:
|
|
1731
|
+
dueAt: m,
|
|
1732
|
+
dueAtExpired: f,
|
|
1730
1733
|
dueAtLabel: l,
|
|
1731
|
-
archivedAt:
|
|
1732
|
-
archivedAtLabel:
|
|
1734
|
+
archivedAt: h,
|
|
1735
|
+
archivedAtLabel: p,
|
|
1733
1736
|
trashedAt: i,
|
|
1734
1737
|
trashedAtLabel: b,
|
|
1735
|
-
draftsLabel:
|
|
1736
|
-
sentCount:
|
|
1737
|
-
receivedCount:
|
|
1738
|
+
draftsLabel: g,
|
|
1739
|
+
sentCount: y = 0,
|
|
1740
|
+
receivedCount: M = 0,
|
|
1738
1741
|
attachmentsCount: v = 0,
|
|
1739
1742
|
attachmentsLabel: I,
|
|
1740
|
-
transmissionsLabel:
|
|
1741
|
-
activityLog:
|
|
1743
|
+
transmissionsLabel: A,
|
|
1744
|
+
activityLog: E,
|
|
1742
1745
|
extendedStatusLabel: O,
|
|
1743
1746
|
tooltips: d = {}
|
|
1744
1747
|
}) => /* @__PURE__ */ x(It, { className: e, size: "xs", children: [
|
|
1745
1748
|
n && /* @__PURE__ */ a(mr, { tooltip: d.status, loading: o, ...n }),
|
|
1746
1749
|
O && /* @__PURE__ */ a(re, { tooltip: d.extendedStatus, variant: "outline", children: O }),
|
|
1747
|
-
|
|
1750
|
+
g && /* @__PURE__ */ a(re, { tooltip: d.drafts, variant: "dotted", children: g }),
|
|
1748
1751
|
r && /* @__PURE__ */ x(ne, { tooltip: d.updatedAt, loading: o, datetime: r, size: "xs", children: [
|
|
1749
1752
|
/* @__PURE__ */ a("strong", { children: t && t.name + ", " }),
|
|
1750
1753
|
s
|
|
1751
1754
|
] }),
|
|
1752
1755
|
v > 0 && /* @__PURE__ */ a(ne, { tooltip: d.attachments, loading: o, size: "xs", icon: gt, children: I || v }),
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1756
|
+
A && /* @__PURE__ */ a(ne, { tooltip: d.transmissions, loading: o, size: "xs", icon: At, children: A }),
|
|
1757
|
+
y > 0 && /* @__PURE__ */ a(ne, { tooltip: d.sent, size: "xs", icon: Qe, children: y }),
|
|
1758
|
+
M > 0 && /* @__PURE__ */ a(ne, { tooltip: d.received, size: "xs", icon: Et, children: M }),
|
|
1759
|
+
m && l && /* @__PURE__ */ a(
|
|
1757
1760
|
ne,
|
|
1758
1761
|
{
|
|
1759
1762
|
variant: "tinted",
|
|
1760
|
-
color:
|
|
1763
|
+
color: f ? "danger" : "warning",
|
|
1761
1764
|
tooltip: d.dueAt,
|
|
1762
1765
|
loading: o,
|
|
1763
|
-
datetime:
|
|
1766
|
+
datetime: m,
|
|
1764
1767
|
size: "xs",
|
|
1765
1768
|
icon: yt,
|
|
1766
1769
|
children: l
|
|
@@ -1778,29 +1781,29 @@ const rr = ({
|
|
|
1778
1781
|
icon: Ht,
|
|
1779
1782
|
children: b
|
|
1780
1783
|
}
|
|
1781
|
-
) ||
|
|
1784
|
+
) || p && /* @__PURE__ */ a(
|
|
1782
1785
|
ne,
|
|
1783
1786
|
{
|
|
1784
1787
|
variant: "tinted",
|
|
1785
1788
|
color: "neutral",
|
|
1786
1789
|
tooltip: d.archivedAt,
|
|
1787
1790
|
loading: o,
|
|
1788
|
-
datetime:
|
|
1791
|
+
datetime: h,
|
|
1789
1792
|
size: "xs",
|
|
1790
1793
|
icon: kt,
|
|
1791
|
-
children:
|
|
1794
|
+
children: p
|
|
1792
1795
|
}
|
|
1793
1796
|
),
|
|
1794
|
-
|
|
1797
|
+
E && /* @__PURE__ */ a(
|
|
1795
1798
|
ne,
|
|
1796
1799
|
{
|
|
1797
1800
|
tooltip: d.activityLog,
|
|
1798
1801
|
loading: o,
|
|
1799
1802
|
size: "xs",
|
|
1800
1803
|
icon: $t,
|
|
1801
|
-
as:
|
|
1802
|
-
onClick:
|
|
1803
|
-
children:
|
|
1804
|
+
as: E?.onClick ? "button" : "span",
|
|
1805
|
+
onClick: E?.onClick,
|
|
1806
|
+
children: E?.label || "Activity log"
|
|
1804
1807
|
}
|
|
1805
1808
|
)
|
|
1806
1809
|
] }), or = ({
|
|
@@ -1837,25 +1840,25 @@ const Fe = ({ size: e = "xs", icon: o, progress: n }) => !o && typeof n != "numb
|
|
|
1837
1840
|
reverse: t,
|
|
1838
1841
|
size: r = "xs",
|
|
1839
1842
|
variant: s,
|
|
1840
|
-
color:
|
|
1841
|
-
icon:
|
|
1843
|
+
color: m,
|
|
1844
|
+
icon: f,
|
|
1842
1845
|
children: l,
|
|
1843
|
-
datetime:
|
|
1844
|
-
tooltip:
|
|
1846
|
+
datetime: h,
|
|
1847
|
+
tooltip: p,
|
|
1845
1848
|
...i
|
|
1846
1849
|
}) => {
|
|
1847
|
-
const b = e || (
|
|
1848
|
-
return
|
|
1850
|
+
const b = e || (h ? "time" : "span");
|
|
1851
|
+
return p ? /* @__PURE__ */ a($e, { content: p, placement: "bottom", children: /* @__PURE__ */ a(
|
|
1849
1852
|
b,
|
|
1850
1853
|
{
|
|
1851
1854
|
"data-size": r,
|
|
1852
|
-
"data-color":
|
|
1855
|
+
"data-color": m,
|
|
1853
1856
|
"data-variant": s,
|
|
1854
|
-
dateTime:
|
|
1855
|
-
className:
|
|
1857
|
+
dateTime: h,
|
|
1858
|
+
className: U(we.item, n),
|
|
1856
1859
|
...i,
|
|
1857
1860
|
children: /* @__PURE__ */ x(ue, { loading: o, children: [
|
|
1858
|
-
!o &&
|
|
1861
|
+
!o && f && /* @__PURE__ */ a(Fe, { size: r, icon: f }),
|
|
1859
1862
|
/* @__PURE__ */ a("span", { className: we.label, children: l })
|
|
1860
1863
|
] })
|
|
1861
1864
|
}
|
|
@@ -1863,13 +1866,13 @@ const Fe = ({ size: e = "xs", icon: o, progress: n }) => !o && typeof n != "numb
|
|
|
1863
1866
|
b,
|
|
1864
1867
|
{
|
|
1865
1868
|
"data-size": r,
|
|
1866
|
-
"data-color":
|
|
1869
|
+
"data-color": m,
|
|
1867
1870
|
"data-variant": s,
|
|
1868
|
-
dateTime:
|
|
1869
|
-
className:
|
|
1871
|
+
dateTime: h,
|
|
1872
|
+
className: U(we.item, n),
|
|
1870
1873
|
...i,
|
|
1871
1874
|
children: /* @__PURE__ */ x(ue, { loading: o, children: [
|
|
1872
|
-
!o &&
|
|
1875
|
+
!o && f && /* @__PURE__ */ a(Fe, { size: r, icon: f }),
|
|
1873
1876
|
/* @__PURE__ */ a("span", { className: we.label, children: l })
|
|
1874
1877
|
] })
|
|
1875
1878
|
}
|
|
@@ -1899,25 +1902,26 @@ const mr = ({ loading: e, value: o = "not-applicable", label: n, tooltip: t }) =
|
|
|
1899
1902
|
label: o = "Label",
|
|
1900
1903
|
variant: n = "solid",
|
|
1901
1904
|
title: t = "Title",
|
|
1902
|
-
|
|
1903
|
-
|
|
1905
|
+
htmlTitle: r,
|
|
1906
|
+
items: s = [],
|
|
1907
|
+
dropdownSize: m = "sm",
|
|
1904
1908
|
id: f = "toolbar-menu",
|
|
1905
|
-
onSelectId:
|
|
1906
|
-
...
|
|
1909
|
+
onSelectId: l,
|
|
1910
|
+
...h
|
|
1907
1911
|
}) => {
|
|
1908
|
-
const
|
|
1909
|
-
(
|
|
1910
|
-
|
|
1912
|
+
const p = _t({ id: f, returnFocusOnClose: !0 }), i = h.searchable ? "combobox" : "menu", b = qe(
|
|
1913
|
+
(y) => {
|
|
1914
|
+
l?.(y?.id ?? ""), y?.role !== "checkbox" && p.setOpen(!1);
|
|
1911
1915
|
},
|
|
1912
|
-
[
|
|
1913
|
-
),
|
|
1914
|
-
() =>
|
|
1915
|
-
...
|
|
1916
|
-
onClick: () =>
|
|
1916
|
+
[l, p]
|
|
1917
|
+
), g = ie(
|
|
1918
|
+
() => s.map((y) => ({
|
|
1919
|
+
...y,
|
|
1920
|
+
onClick: () => b(y)
|
|
1917
1921
|
})),
|
|
1918
|
-
[
|
|
1922
|
+
[s, b]
|
|
1919
1923
|
);
|
|
1920
|
-
return e ? /* @__PURE__ */ x(ve, { className: he.button, variant: n, disabled: !0, children: [
|
|
1924
|
+
return e ? /* @__PURE__ */ x(ve, { className: he.button, variant: n, title: r, disabled: !0, children: [
|
|
1921
1925
|
/* @__PURE__ */ a("span", { className: he.label, children: o }),
|
|
1922
1926
|
/* @__PURE__ */ a(Be, { "aria-hidden": "true", focusable: "false" })
|
|
1923
1927
|
] }) : /* @__PURE__ */ a("span", { className: he.menu, children: /* @__PURE__ */ a(
|
|
@@ -1926,36 +1930,37 @@ const mr = ({ loading: e, value: o = "not-applicable", label: n, tooltip: t }) =
|
|
|
1926
1930
|
id: f,
|
|
1927
1931
|
variant: "drawer-dropdown",
|
|
1928
1932
|
title: t,
|
|
1929
|
-
size:
|
|
1933
|
+
size: m,
|
|
1930
1934
|
trigger: /* @__PURE__ */ x(
|
|
1931
1935
|
ve,
|
|
1932
1936
|
{
|
|
1933
1937
|
className: he.button,
|
|
1934
1938
|
variant: n,
|
|
1935
|
-
|
|
1936
|
-
|
|
1939
|
+
title: r,
|
|
1940
|
+
onClick: p.toggleMenu,
|
|
1941
|
+
"aria-expanded": p.open,
|
|
1937
1942
|
"aria-haspopup": "menu",
|
|
1938
|
-
"aria-controls":
|
|
1939
|
-
ref:
|
|
1943
|
+
"aria-controls": p.open ? p.menuId : void 0,
|
|
1944
|
+
ref: p.triggerRef,
|
|
1940
1945
|
children: [
|
|
1941
1946
|
/* @__PURE__ */ a("span", { className: he.label, children: o }),
|
|
1942
1947
|
/* @__PURE__ */ a(Be, { "aria-hidden": "true", focusable: "false" })
|
|
1943
1948
|
]
|
|
1944
1949
|
}
|
|
1945
1950
|
),
|
|
1946
|
-
open:
|
|
1947
|
-
onClose: () =>
|
|
1948
|
-
...
|
|
1951
|
+
open: p.open,
|
|
1952
|
+
onClose: () => p.setOpen(!1),
|
|
1953
|
+
...h?.searchable ? {} : p.dropdownA11yProps,
|
|
1949
1954
|
children: /* @__PURE__ */ a(
|
|
1950
1955
|
et,
|
|
1951
1956
|
{
|
|
1952
|
-
...
|
|
1953
|
-
items:
|
|
1954
|
-
keyboardEvents:
|
|
1955
|
-
a11yMode:
|
|
1956
|
-
open:
|
|
1957
|
-
scrollToTopOnOpen:
|
|
1958
|
-
...
|
|
1957
|
+
...h,
|
|
1958
|
+
items: g,
|
|
1959
|
+
keyboardEvents: p.open,
|
|
1960
|
+
a11yMode: i,
|
|
1961
|
+
open: p.open,
|
|
1962
|
+
scrollToTopOnOpen: h.virtualized,
|
|
1963
|
+
...i === "combobox" ? { id: p.menuId } : p.menuA11yProps
|
|
1959
1964
|
}
|
|
1960
1965
|
)
|
|
1961
1966
|
}
|
|
@@ -1969,14 +1974,15 @@ const mr = ({ loading: e, value: o = "not-applicable", label: n, tooltip: t }) =
|
|
|
1969
1974
|
name: t,
|
|
1970
1975
|
placeholder: r = "Search",
|
|
1971
1976
|
loading: s,
|
|
1972
|
-
collapsible:
|
|
1973
|
-
clearButtonAltText:
|
|
1977
|
+
collapsible: m,
|
|
1978
|
+
clearButtonAltText: f = "Clear search",
|
|
1974
1979
|
onChange: l,
|
|
1975
|
-
onClear:
|
|
1976
|
-
onKeyDown:
|
|
1980
|
+
onClear: h,
|
|
1981
|
+
onKeyDown: p,
|
|
1977
1982
|
menu: i,
|
|
1978
1983
|
minLength: b,
|
|
1979
|
-
disabled:
|
|
1984
|
+
disabled: g,
|
|
1985
|
+
htmlTitle: y
|
|
1980
1986
|
}) => /* @__PURE__ */ a(
|
|
1981
1987
|
Pe,
|
|
1982
1988
|
{
|
|
@@ -1985,19 +1991,20 @@ const mr = ({ loading: e, value: o = "not-applicable", label: n, tooltip: t }) =
|
|
|
1985
1991
|
hideLabel: o,
|
|
1986
1992
|
value: n,
|
|
1987
1993
|
name: t,
|
|
1994
|
+
title: y,
|
|
1988
1995
|
placeholder: r,
|
|
1989
|
-
clearButtonAltText:
|
|
1996
|
+
clearButtonAltText: f,
|
|
1990
1997
|
onChange: l,
|
|
1991
|
-
onClear:
|
|
1992
|
-
onKeyDown:
|
|
1993
|
-
collapsible:
|
|
1998
|
+
onClear: h,
|
|
1999
|
+
onKeyDown: p,
|
|
2000
|
+
collapsible: m,
|
|
1994
2001
|
autoComplete: "off",
|
|
1995
2002
|
autoCapitalize: "off",
|
|
1996
2003
|
type: "search",
|
|
1997
2004
|
minLength: b,
|
|
1998
2005
|
loading: s,
|
|
1999
2006
|
menu: i,
|
|
2000
|
-
disabled:
|
|
2007
|
+
disabled: g
|
|
2001
2008
|
}
|
|
2002
2009
|
)
|
|
2003
2010
|
);
|