@inf-monkeys-tech/monkeys-design 1.0.43 → 1.0.44
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/OverlayNodeHost-14bb9b0f18f4.d.mts +1 -1
- package/dist/OverlayNodeHost-3c763888b689.d.ts +1 -1
- package/dist/components/agent-workbench/index.js +3 -1
- package/dist/components/agent-workbench/index.js.map +1 -1
- package/dist/components/agent-workbench/index.mjs +3 -1
- package/dist/components/agent-workbench/index.mjs.map +1 -1
- package/dist/components/base/index.d.mts +2 -2
- package/dist/components/base/index.d.ts +2 -2
- package/dist/components/base/index.js +49 -4
- package/dist/components/base/index.js.map +1 -1
- package/dist/components/base/index.mjs +49 -5
- package/dist/components/base/index.mjs.map +1 -1
- package/dist/components/data-explorer/index.d.mts +1 -1
- package/dist/components/data-explorer/index.d.ts +1 -1
- package/dist/components/data-explorer/index.js +5058 -3364
- package/dist/components/data-explorer/index.js.map +1 -1
- package/dist/components/data-explorer/index.mjs +5059 -3365
- package/dist/components/data-explorer/index.mjs.map +1 -1
- package/dist/components/layout/index.d.mts +1 -1
- package/dist/components/layout/index.d.ts +1 -1
- package/dist/components/layout/index.js +3 -1
- package/dist/components/layout/index.js.map +1 -1
- package/dist/components/layout/index.mjs +3 -1
- package/dist/components/layout/index.mjs.map +1 -1
- package/dist/components/runtime/index.d.mts +1 -1
- package/dist/components/runtime/index.d.ts +1 -1
- package/dist/components/runtime/index.js +3 -1
- package/dist/components/runtime/index.js.map +1 -1
- package/dist/components/runtime/index.mjs +3 -1
- package/dist/components/runtime/index.mjs.map +1 -1
- package/dist/components/toast/index.d.mts +1 -1
- package/dist/components/toast/index.d.ts +1 -1
- package/dist/components/toast/index.js +3 -1
- package/dist/components/toast/index.js.map +1 -1
- package/dist/components/toast/index.mjs +3 -1
- package/dist/components/toast/index.mjs.map +1 -1
- package/dist/components/toolbar/index.js +3 -1
- package/dist/components/toolbar/index.js.map +1 -1
- package/dist/components/toolbar/index.mjs +3 -1
- package/dist/components/toolbar/index.mjs.map +1 -1
- package/dist/components/workbench/index.d.mts +1 -1
- package/dist/components/workbench/index.d.ts +1 -1
- package/dist/components/workbench/index.js +3 -1
- package/dist/components/workbench/index.js.map +1 -1
- package/dist/components/workbench/index.mjs +3 -1
- package/dist/components/workbench/index.mjs.map +1 -1
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +71 -145
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +70 -146
- package/dist/index.mjs.map +1 -1
- package/dist/locale/index.d.mts +10 -2
- package/dist/locale/index.d.ts +10 -2
- package/dist/locale/index.js +6 -2
- package/dist/locale/index.js.map +1 -1
- package/dist/locale/index.mjs +6 -2
- package/dist/locale/index.mjs.map +1 -1
- package/dist/provider/index.d.mts +17 -5
- package/dist/provider/index.d.ts +17 -5
- package/dist/provider/index.js +18 -3
- package/dist/provider/index.js.map +1 -1
- package/dist/provider/index.mjs +18 -4
- package/dist/provider/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/{theme-773c51458503.d.mts → theme-14445419d731.d.mts} +1 -1
- package/dist/{theme-17bde32ca128.d.ts → theme-2d676ff768b3.d.ts} +3 -2
- package/dist/{theme-39d2fdc145c2.d.mts → theme-860f405c9d2d.d.mts} +3 -2
- package/dist/{theme-830b2e68a8fb.d.ts → theme-c5a0144240a1.d.ts} +1 -1
- package/dist/{types-22bd2ecb535c.d.mts → types-15efbcf88674.d.mts} +4 -0
- package/dist/{types-22bd2ecb535c.d.ts → types-15efbcf88674.d.ts} +4 -0
- package/dist/{types-29dff278cb84.d.mts → types-c6ec8b90925b.d.mts} +36 -1
- package/dist/{types-29dff278cb84.d.ts → types-c6ec8b90925b.d.ts} +36 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2967,7 +2967,9 @@ var enUS = {
|
|
|
2967
2967
|
page: ({ page, pageCount }) => `Page ${page} of ${pageCount}`,
|
|
2968
2968
|
currentPage: ({ page, pageCount }) => `Page ${page} of ${pageCount}, current page`,
|
|
2969
2969
|
emptyResults: "0 results",
|
|
2970
|
-
range: ({ start, end, total }) => `${start}-${end} of ${total}
|
|
2970
|
+
range: ({ start, end, total }) => `${start}-${end} of ${total}`,
|
|
2971
|
+
selected: ({ count }) => `${count} selected`,
|
|
2972
|
+
pageSize: "Items per page"
|
|
2971
2973
|
},
|
|
2972
2974
|
dialog: {
|
|
2973
2975
|
close: "Close dialog"
|
|
@@ -3250,7 +3252,9 @@ var zhCN = {
|
|
|
3250
3252
|
page: ({ page, pageCount }) => `\u7B2C ${page} \u9875\uFF0C\u5171 ${pageCount} \u9875`,
|
|
3251
3253
|
currentPage: ({ page, pageCount }) => `\u7B2C ${page} \u9875\uFF0C\u5171 ${pageCount} \u9875\uFF0C\u5F53\u524D\u9875`,
|
|
3252
3254
|
emptyResults: "\u5171 0 \u6761",
|
|
3253
|
-
range: ({ start, end, total }) => `\u7B2C ${start}-${end} \u6761\uFF0C\u5171 ${total} \u6761
|
|
3255
|
+
range: ({ start, end, total }) => `\u7B2C ${start}-${end} \u6761\uFF0C\u5171 ${total} \u6761`,
|
|
3256
|
+
selected: ({ count }) => `\u5DF2\u9009\u62E9 ${count} \u9879`,
|
|
3257
|
+
pageSize: "\u6BCF\u9875\u663E\u793A\u6570\u91CF"
|
|
3254
3258
|
},
|
|
3255
3259
|
dialog: {
|
|
3256
3260
|
close: "\u5173\u95ED\u5BF9\u8BDD\u6846"
|
|
@@ -3830,6 +3834,9 @@ function useMonkeysDataExplorerAppearance(explicit) {
|
|
|
3830
3834
|
function useMonkeysStatusStates() {
|
|
3831
3835
|
return useContext(MonkeysThemeContext).statusStates ?? {};
|
|
3832
3836
|
}
|
|
3837
|
+
function useMonkeysListFooter() {
|
|
3838
|
+
return useContext(MonkeysThemeContext).listFooter ?? {};
|
|
3839
|
+
}
|
|
3833
3840
|
function useMonkeysDirection() {
|
|
3834
3841
|
return useContext(MonkeysDirectionContext).direction;
|
|
3835
3842
|
}
|
|
@@ -3916,7 +3923,8 @@ function MonkeysProvider({
|
|
|
3916
3923
|
appearance,
|
|
3917
3924
|
environment,
|
|
3918
3925
|
portal,
|
|
3919
|
-
statusStates
|
|
3926
|
+
statusStates,
|
|
3927
|
+
listFooter
|
|
3920
3928
|
}) {
|
|
3921
3929
|
const parentLocale = useContext(MonkeysLocaleContext);
|
|
3922
3930
|
const parentTheme = useContext(MonkeysThemeContext);
|
|
@@ -3980,6 +3988,11 @@ function MonkeysProvider({
|
|
|
3980
3988
|
empty: { ...parentTheme.statusStates?.empty, ...statusStates?.empty },
|
|
3981
3989
|
error: { ...parentTheme.statusStates?.error, ...statusStates?.error },
|
|
3982
3990
|
permission: { ...parentTheme.statusStates?.permission, ...statusStates?.permission }
|
|
3991
|
+
},
|
|
3992
|
+
listFooter: {
|
|
3993
|
+
...parentTheme.listFooter,
|
|
3994
|
+
...listFooter,
|
|
3995
|
+
...listFooter?.pageSizeOptions ? { pageSizeOptions: [...listFooter.pageSizeOptions] } : void 0
|
|
3983
3996
|
}
|
|
3984
3997
|
}),
|
|
3985
3998
|
[
|
|
@@ -3992,6 +4005,7 @@ function MonkeysProvider({
|
|
|
3992
4005
|
parentTheme.themeId,
|
|
3993
4006
|
resolvedTheme,
|
|
3994
4007
|
statusStates,
|
|
4008
|
+
listFooter,
|
|
3995
4009
|
themeId
|
|
3996
4010
|
]
|
|
3997
4011
|
);
|
|
@@ -11565,6 +11579,9 @@ var BasePagination = forwardRef(
|
|
|
11565
11579
|
defaultPage,
|
|
11566
11580
|
pageSize = 20,
|
|
11567
11581
|
total = 0,
|
|
11582
|
+
pageCount: pageCountProp,
|
|
11583
|
+
hasNext,
|
|
11584
|
+
hasPrevious,
|
|
11568
11585
|
mode = "compact",
|
|
11569
11586
|
siblingCount = 1,
|
|
11570
11587
|
boundaryCount = 1,
|
|
@@ -11596,6 +11613,7 @@ var BasePagination = forwardRef(
|
|
|
11596
11613
|
}
|
|
11597
11614
|
assertPositiveInteger(pageSize, "pageSize");
|
|
11598
11615
|
assertNonNegativeInteger(total, "total");
|
|
11616
|
+
if (pageCountProp !== void 0) assertPositiveInteger(pageCountProp, "pageCount");
|
|
11599
11617
|
assertNonNegativeInteger(siblingCount, "siblingCount");
|
|
11600
11618
|
assertNonNegativeInteger(boundaryCount, "boundaryCount");
|
|
11601
11619
|
if (!paginationModes.has(mode)) {
|
|
@@ -11617,7 +11635,7 @@ var BasePagination = forwardRef(
|
|
|
11617
11635
|
const previousMessage = assertLocaleString(messages.previous, "previous");
|
|
11618
11636
|
const nextMessage = assertLocaleString(messages.next, "next");
|
|
11619
11637
|
const lastMessage = assertLocaleString(messages.last, "last");
|
|
11620
|
-
const pageCount = Math.max(Math.ceil(total / pageSize), 1);
|
|
11638
|
+
const pageCount = pageCountProp ?? Math.max(Math.ceil(total / pageSize), 1);
|
|
11621
11639
|
const isControlled = page !== void 0;
|
|
11622
11640
|
const isUncontrolled = !isControlled && defaultPage !== void 0;
|
|
11623
11641
|
const currentPage = clampPage(
|
|
@@ -11626,8 +11644,8 @@ var BasePagination = forwardRef(
|
|
|
11626
11644
|
);
|
|
11627
11645
|
const start = total > 0 ? (currentPage - 1) * pageSize + 1 : 0;
|
|
11628
11646
|
const end = Math.min(currentPage * pageSize, total);
|
|
11629
|
-
const canPrevious = currentPage > 1;
|
|
11630
|
-
const canNext = currentPage < pageCount;
|
|
11647
|
+
const canPrevious = hasPrevious ?? currentPage > 1;
|
|
11648
|
+
const canNext = hasNext ?? currentPage < pageCount;
|
|
11631
11649
|
const pageItems = mode === "pages" ? getPageItems(currentPage, pageCount, boundaryCount, siblingCount) : [];
|
|
11632
11650
|
const requestPage = (requestedPage) => {
|
|
11633
11651
|
const nextPage = clampPage(requestedPage, pageCount);
|
|
@@ -11780,6 +11798,41 @@ var BasePagination = forwardRef(
|
|
|
11780
11798
|
);
|
|
11781
11799
|
}
|
|
11782
11800
|
);
|
|
11801
|
+
function LoadingIcon2() {
|
|
11802
|
+
return /* @__PURE__ */ jsxs("svg", { "aria-hidden": "true", viewBox: "0 0 24 24", className: "ml-1 inline-block h-3 w-3 animate-spin", fill: "none", children: [
|
|
11803
|
+
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "9", className: "opacity-25", stroke: "currentColor", strokeWidth: "3" }),
|
|
11804
|
+
/* @__PURE__ */ jsx("path", { className: "opacity-75", fill: "currentColor", d: "M12 3a9 9 0 0 1 9 9h-3a6 6 0 0 0-6-6V3Z" })
|
|
11805
|
+
] });
|
|
11806
|
+
}
|
|
11807
|
+
function BaseListFooter({ total = 0, loadedStart, loadedEnd, selectedCount, page = 1, pageCount, pageSize = 20, pageSizeOptions, showTotal, showPageSize, paginationMode, hasNext, hasPrevious, loading = false, totalLabel, selectedLabel, pageSizeLabel, appearance, className, classNames, onPageChange, onPageSizeChange, onSummaryClick, ...props }) {
|
|
11808
|
+
const config = useMonkeysListFooter();
|
|
11809
|
+
const messages = useMonkeysLocaleMessages().pagination;
|
|
11810
|
+
const options = [...new Set(pageSizeOptions ?? config.pageSizeOptions ?? [10, 20, 50, 100])].filter((value) => Number.isSafeInteger(value) && value > 0);
|
|
11811
|
+
const showTotalValue = showTotal ?? config.showTotal ?? true;
|
|
11812
|
+
const showPageSizeValue = showPageSize ?? config.showPageSize ?? true;
|
|
11813
|
+
const requestedMode = paginationMode ?? config.paginationMode ?? "auto";
|
|
11814
|
+
const mode = requestedMode === "auto" ? total > 0 ? "pages" : "compact" : requestedMode;
|
|
11815
|
+
const hasRange = loadedStart !== void 0 && loadedStart > 0 && loadedEnd !== void 0 && loadedEnd >= loadedStart;
|
|
11816
|
+
const summary = showTotalValue ? totalLabel ?? (hasRange ? messages.range({ start: loadedStart, end: loadedEnd, total }) : messages.range({ start: total > 0 ? (page - 1) * pageSize + 1 : 0, end: loadedEnd ?? 0, total })) : void 0;
|
|
11817
|
+
const showPagination = Boolean(onPageChange) && (hasNext !== void 0 || hasPrevious !== void 0 ? Boolean(hasNext || hasPrevious || total > pageSize) : total > pageSize);
|
|
11818
|
+
const align = config.alignment === "end" ? "justify-end" : config.alignment === "start" ? "justify-start" : "justify-between";
|
|
11819
|
+
return /* @__PURE__ */ jsxs("div", { ...props, className: cn("flex min-w-0 flex-wrap items-center gap-3 py-2 text-sm", align, classNames?.root, className), "data-monkeys-component": "list-footer", "data-density": config.density, children: [
|
|
11820
|
+
/* @__PURE__ */ jsx("div", { className: cn("min-w-0 text-muted-foreground", classNames?.summary), children: (() => {
|
|
11821
|
+
const content = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
11822
|
+
selectedLabel ?? (selectedCount !== void 0 ? messages.selected({ count: selectedCount }) : null),
|
|
11823
|
+
selectedCount !== void 0 && summary ? /* @__PURE__ */ jsx("span", { className: "mx-2", children: "\xB7" }) : null,
|
|
11824
|
+
summary,
|
|
11825
|
+
loading ? /* @__PURE__ */ jsx(LoadingIcon2, {}) : null
|
|
11826
|
+
] });
|
|
11827
|
+
return onSummaryClick ? /* @__PURE__ */ jsx("button", { type: "button", className: "inline-flex items-center", onClick: onSummaryClick, children: content }) : content;
|
|
11828
|
+
})() }),
|
|
11829
|
+
showPagination ? /* @__PURE__ */ jsx(BasePagination, { page, pageCount, pageSize, total, mode, hasNext, hasPrevious, onPageChange, appearance, className: classNames?.pagination, classNames: { info: "sr-only" } }) : null,
|
|
11830
|
+
showPageSizeValue && onPageSizeChange && options.length > 0 ? /* @__PURE__ */ jsxs("label", { className: cn("inline-flex items-center gap-2 whitespace-nowrap text-muted-foreground", classNames?.pageSize), children: [
|
|
11831
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: pageSizeLabel ?? messages.pageSize }),
|
|
11832
|
+
/* @__PURE__ */ jsx("select", { "aria-label": typeof pageSizeLabel === "string" ? pageSizeLabel : messages.pageSize, value: String(pageSize), className: "h-8 rounded-md border border-border bg-background px-2 text-sm text-foreground", onChange: (event) => onPageSizeChange(Number(event.currentTarget.value)), children: options.map((size) => /* @__PURE__ */ jsx("option", { value: size, children: size }, size)) })
|
|
11833
|
+
] }) : null
|
|
11834
|
+
] });
|
|
11835
|
+
}
|
|
11783
11836
|
function clamp2(value, min5, max5) {
|
|
11784
11837
|
return Math.min(Math.max(value, min5), max5);
|
|
11785
11838
|
}
|
|
@@ -26490,7 +26543,7 @@ function getDataExplorerMenuItemToneClassName(theme, tone) {
|
|
|
26490
26543
|
if (tone === "muted") return theme.slots.menuItemMuted;
|
|
26491
26544
|
return void 0;
|
|
26492
26545
|
}
|
|
26493
|
-
function
|
|
26546
|
+
function LoadingIcon3() {
|
|
26494
26547
|
return /* @__PURE__ */ jsxs(
|
|
26495
26548
|
"svg",
|
|
26496
26549
|
{
|
|
@@ -26581,7 +26634,7 @@ var DataExplorerButton = forwardRef(function DataExplorerButton2({
|
|
|
26581
26634
|
},
|
|
26582
26635
|
onClick: handleClick,
|
|
26583
26636
|
children: [
|
|
26584
|
-
loading ? /* @__PURE__ */ jsx("span", { className: cn4(theme.slots.controlButtonIcon, classNames?.icon), children: /* @__PURE__ */ jsx(
|
|
26637
|
+
loading ? /* @__PURE__ */ jsx("span", { className: cn4(theme.slots.controlButtonIcon, classNames?.icon), children: /* @__PURE__ */ jsx(LoadingIcon3, {}) }) : icon ? /* @__PURE__ */ jsx("span", { className: cn4(theme.slots.controlButtonIcon, classNames?.icon), children: icon }) : null,
|
|
26585
26638
|
iconOnly ? /* @__PURE__ */ jsx("span", { className: "sr-only", children: resolvedLabel }) : resolvedLabel ? /* @__PURE__ */ jsx("span", { className: cn4(theme.slots.controlButtonLabel, classNames?.label), children: resolvedLabel }) : null,
|
|
26586
26639
|
endIcon ? /* @__PURE__ */ jsx("span", { className: cn4(theme.slots.controlButtonIcon, classNames?.icon), children: endIcon }) : null
|
|
26587
26640
|
]
|
|
@@ -27041,144 +27094,15 @@ function DataExplorerActionBar({
|
|
|
27041
27094
|
}
|
|
27042
27095
|
);
|
|
27043
27096
|
}
|
|
27044
|
-
function
|
|
27045
|
-
|
|
27046
|
-
"svg",
|
|
27047
|
-
{
|
|
27048
|
-
"aria-hidden": "true",
|
|
27049
|
-
viewBox: "0 0 24 24",
|
|
27050
|
-
className: "h-3 w-3 animate-spin",
|
|
27051
|
-
fill: "none",
|
|
27052
|
-
children: [
|
|
27053
|
-
/* @__PURE__ */ jsx(
|
|
27054
|
-
"circle",
|
|
27055
|
-
{
|
|
27056
|
-
cx: "12",
|
|
27057
|
-
cy: "12",
|
|
27058
|
-
r: "9",
|
|
27059
|
-
className: "opacity-25",
|
|
27060
|
-
stroke: "currentColor",
|
|
27061
|
-
strokeWidth: "3"
|
|
27062
|
-
}
|
|
27063
|
-
),
|
|
27064
|
-
/* @__PURE__ */ jsx(
|
|
27065
|
-
"path",
|
|
27066
|
-
{
|
|
27067
|
-
className: "opacity-75",
|
|
27068
|
-
fill: "currentColor",
|
|
27069
|
-
d: "M12 3a9 9 0 0 1 9 9h-3a6 6 0 0 0-6-6V3Z"
|
|
27070
|
-
}
|
|
27071
|
-
)
|
|
27072
|
-
]
|
|
27073
|
-
}
|
|
27074
|
-
);
|
|
27075
|
-
}
|
|
27076
|
-
function DataExplorerCollectionFooter({
|
|
27077
|
-
selectedCount,
|
|
27078
|
-
loadedStart,
|
|
27079
|
-
loadedEnd,
|
|
27080
|
-
total,
|
|
27081
|
-
currentPage = 1,
|
|
27082
|
-
pageSize = Math.max(1, loadedEnd || 1),
|
|
27083
|
-
pageSizeOptions = [],
|
|
27084
|
-
loading,
|
|
27085
|
-
selectedLabel,
|
|
27086
|
-
loadedLabel,
|
|
27087
|
-
pageSizeLabel = "Page size",
|
|
27088
|
-
pageText,
|
|
27089
|
-
tone = "default",
|
|
27090
|
-
appearance,
|
|
27091
|
-
className,
|
|
27092
|
-
classNames,
|
|
27093
|
-
onJump,
|
|
27094
|
-
onPageSizeChange
|
|
27095
|
-
}) {
|
|
27096
|
-
const theme = resolveDataExplorerAppearance(
|
|
27097
|
-
appearance ?? (tone === "default" ? void 0 : { preset: tone })
|
|
27098
|
-
);
|
|
27099
|
-
const maxPage = total > 0 ? Math.max(1, Math.ceil(total / pageSize)) : 1;
|
|
27097
|
+
function DataExplorerCollectionFooter({ selectedCount, loadedStart, loadedEnd, total, currentPage = 1, pageSize = Math.max(1, loadedEnd || 1), pageSizeOptions = [], loading, selectedLabel, loadedLabel, pageSizeLabel, pageText, className, classNames, onJump, onPageSizeChange }) {
|
|
27098
|
+
const messages = useMonkeysLocaleMessages().pagination;
|
|
27100
27099
|
const hasRange = typeof loadedStart === "number" && loadedStart > 0 && loadedEnd >= loadedStart;
|
|
27101
|
-
const
|
|
27102
|
-
|
|
27103
|
-
|
|
27104
|
-
|
|
27105
|
-
|
|
27106
|
-
|
|
27107
|
-
{
|
|
27108
|
-
className: cn4(
|
|
27109
|
-
theme.slots.footerRoot,
|
|
27110
|
-
classNames?.root,
|
|
27111
|
-
className
|
|
27112
|
-
),
|
|
27113
|
-
style: theme.styles.footerRoot,
|
|
27114
|
-
children: [
|
|
27115
|
-
/* @__PURE__ */ jsxs(
|
|
27116
|
-
"div",
|
|
27117
|
-
{
|
|
27118
|
-
className: cn4(
|
|
27119
|
-
theme.slots.footerSummary,
|
|
27120
|
-
classNames?.summary
|
|
27121
|
-
),
|
|
27122
|
-
children: [
|
|
27123
|
-
resolvedSelectedLabel ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
27124
|
-
/* @__PURE__ */ jsx("span", { children: resolvedSelectedLabel }),
|
|
27125
|
-
/* @__PURE__ */ jsx("span", { children: "\xB7" })
|
|
27126
|
-
] }) : null,
|
|
27127
|
-
onJump ? /* @__PURE__ */ jsxs(
|
|
27128
|
-
"button",
|
|
27129
|
-
{
|
|
27130
|
-
type: "button",
|
|
27131
|
-
className: cn4(
|
|
27132
|
-
theme.slots.footerJumpButton,
|
|
27133
|
-
classNames?.jumpButton
|
|
27134
|
-
),
|
|
27135
|
-
onClick: onJump,
|
|
27136
|
-
children: [
|
|
27137
|
-
/* @__PURE__ */ jsx("span", { children: resolvedLoadedLabel }),
|
|
27138
|
-
/* @__PURE__ */ jsxs("span", { children: [
|
|
27139
|
-
"\uFF08",
|
|
27140
|
-
resolvedPageText,
|
|
27141
|
-
"\uFF09"
|
|
27142
|
-
] }),
|
|
27143
|
-
loading ? /* @__PURE__ */ jsx(LoadingIcon3, {}) : null
|
|
27144
|
-
]
|
|
27145
|
-
}
|
|
27146
|
-
) : /* @__PURE__ */ jsxs("span", { className: "inline-flex items-center gap-1", children: [
|
|
27147
|
-
/* @__PURE__ */ jsx("span", { children: resolvedLoadedLabel }),
|
|
27148
|
-
/* @__PURE__ */ jsxs("span", { children: [
|
|
27149
|
-
"\uFF08",
|
|
27150
|
-
resolvedPageText,
|
|
27151
|
-
"\uFF09"
|
|
27152
|
-
] }),
|
|
27153
|
-
loading ? /* @__PURE__ */ jsx(LoadingIcon3, {}) : null
|
|
27154
|
-
] })
|
|
27155
|
-
]
|
|
27156
|
-
}
|
|
27157
|
-
),
|
|
27158
|
-
canAdjustPageSize ? /* @__PURE__ */ jsxs("div", { className: cn4("ml-auto", classNames?.pageSizeControl), children: [
|
|
27159
|
-
/* @__PURE__ */ jsx("label", { className: "sr-only", children: pageSizeLabel }),
|
|
27160
|
-
/* @__PURE__ */ jsx(
|
|
27161
|
-
"select",
|
|
27162
|
-
{
|
|
27163
|
-
value: String(pageSize),
|
|
27164
|
-
className: cn4(
|
|
27165
|
-
theme.slots.footerPageSizeSelect,
|
|
27166
|
-
classNames?.pageSizeButton
|
|
27167
|
-
),
|
|
27168
|
-
onChange: (event) => {
|
|
27169
|
-
const next = Number(event.currentTarget.value);
|
|
27170
|
-
if (!Number.isFinite(next)) {
|
|
27171
|
-
return;
|
|
27172
|
-
}
|
|
27173
|
-
onPageSizeChange?.(next);
|
|
27174
|
-
},
|
|
27175
|
-
children: pageSizeOptions.map((size) => /* @__PURE__ */ jsx("option", { value: String(size), children: size }, size))
|
|
27176
|
-
}
|
|
27177
|
-
)
|
|
27178
|
-
] }) : null
|
|
27179
|
-
]
|
|
27180
|
-
}
|
|
27181
|
-
);
|
|
27100
|
+
const resolvedLoadedLabel = loadedLabel ?? (hasRange ? messages.range({ start: loadedStart, end: loadedEnd, total }) : messages.range({ start: 0, end: loadedEnd, total }));
|
|
27101
|
+
return /* @__PURE__ */ jsx(BaseListFooter, { total, loadedStart, loadedEnd, selectedCount, page: currentPage, pageSize, pageSizeOptions, loading, totalLabel: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
27102
|
+
resolvedLoadedLabel,
|
|
27103
|
+
" ",
|
|
27104
|
+
pageText ? `(${pageText})` : null
|
|
27105
|
+
] }), selectedLabel, pageSizeLabel, className, classNames: { root: classNames?.root, summary: classNames?.summary, pageSize: classNames?.pageSizeControl }, onSummaryClick: onJump, onPageSizeChange });
|
|
27182
27106
|
}
|
|
27183
27107
|
function DataExplorerDetailField({
|
|
27184
27108
|
field,
|
|
@@ -30706,6 +30630,6 @@ function useDarkMode() {
|
|
|
30706
30630
|
return { mode, setMode, resolvedMode };
|
|
30707
30631
|
}
|
|
30708
30632
|
|
|
30709
|
-
export { AgentWorkbenchActivity, AgentWorkbenchSidebar, AgentWorkbenchTaskDetails, AgentWorkbenchTool, AppHeader, AppLayout, AppShellSidebar, AppSidebar, ApplicationHandoffLink, BaseAccordion, BaseAspectRatio, BaseAvatar, BaseBadge, BaseBreadcrumb, BaseButton, BaseCheckbox, BaseCode, BaseContainer, BaseContextMenu, BaseContextMenuCheckboxItem, BaseContextMenuContent, BaseContextMenuItem, BaseContextMenuLabel, BaseContextMenuRadioGroup, BaseContextMenuRadioItem, BaseContextMenuSeparator, BaseContextMenuSub, BaseContextMenuSubContent, BaseContextMenuSubTrigger, BaseContextMenuTrigger, BaseDescriptionList, BaseDialog, BaseDivider, BaseDropdownMenu, BaseEmptyState, BaseField, BaseFieldset, BaseGrid, BaseHeading, BaseInline, BaseInput, BaseInputGroup, BaseKbd, BaseLayout, BaseLayoutPane, BaseLayoutResizeHandle, BaseLayoutSplit, BaseLink, BaseList, BaseListItem, BaseLoadingState, BaseMultiSelect, BaseNotice, BaseNumberInput, BasePagination, BasePanel, BasePasswordInput, BasePortal, BaseProgress, BaseRadioGroup, BaseScrollArea, BaseSectionHeader, BaseSegmentedControl, BaseSelect, BaseSkeleton, BaseSpinner, BaseStack, BaseSteps, BaseSwitch, BaseSystemState, BaseTable, BaseTableBody, BaseTableCaption, BaseTableCell, BaseTableContainer, BaseTableEmpty, BaseTableFooter, BaseTableFooterBar, BaseTableHead, BaseTableHeader, BaseTableLoading, BaseTableRow, BaseTabs, BaseText, BaseTextarea, BaseToolbar, BaseTooltip, BaseVisuallyHidden, DarkModeSelector, DarkModeSubMenu, DataExplorerActionBar, DataExplorerButton, DataExplorerCheckbox, DataExplorerCollectionFooter, DataExplorerDetailField, DataExplorerDetailSection, DataExplorerDetailShell, DataExplorerDisplayActionMenu, DataExplorerDisplayCard, DataExplorerDisplayCollectionView, DataExplorerDisplayListItem, DataExplorerDisplayMedia, DataExplorerImagePreview, DataExplorerPage, DataExplorerRecordCard, DataExplorerSelect, DataExplorerToolbarActions, DataExplorerToolbarShell, DataExplorerTree, DataExplorerTreeShell, DataExplorerView, DataExplorerViewCollection, DataExplorerViewItem, DataExplorerViewItemShell, DataExplorerViewShell, DataExplorerViewTree, I18nSelector, InteractiveTable, InteractiveTableEditableTextCell, InteractiveTableReadonlyCell, InteractiveTableSelectCell, LoginPage, MonkeysProvider, MonkeysToastProvider, MonkeysToaster, NavButton, NavigationLayout, OverlayNodeHost, RenderNodeHost, MonkeysToastProvider as ToastProvider, MonkeysToaster as Toaster, UserAccountMenu, WorkbenchAssetGallery, WorkbenchCollection, WorkbenchContentPane, WorkbenchContentToolbar, WorkbenchDetailSidebar, WorkbenchEvidenceList, WorkbenchGalleryCard, WorkbenchGallerySettingsButton, WorkbenchGallerySettingsPanel, WorkbenchGalleryView, WorkbenchJourneyNavigation, WorkbenchLaneView, WorkbenchMasonryLayout, WorkbenchMetricGrid, WorkbenchRadarFilterChip, WorkbenchRadarInspectorSection, WorkbenchRadarMatrix, WorkbenchRadarNavigation, WorkbenchRadarWorkspace, WorkbenchRankedList, WorkbenchRelationshipGraph, WorkbenchResizableSidebar, WorkbenchScatterPlot, WorkbenchSelectionTray, WorkbenchTableView, applyThemeTokens, browserOverlayHistoryAdapter, buildOverlayUrl, calculateHue, calculateLightness, calculateSaturation, cn2 as cn, compileThemeTokens, createAgentWorkbenchActivityModel, createAgentWorkbenchDetailsModel, createSolidColorScale, defaultMonkeysLocale, enUS, extractToastMessage, genTailwindTheme, getBaseBadgeToneClassName, getBaseButtonToneClassName, getBaseMenuItemToneClassName, getBaseNoticeToneClassName, getDataExplorerActionToneClassName, getDataExplorerMenuItemToneClassName, getOverlayPresentationClassNames, getOverlayZIndex, getRenderNodeDataAttributes, getThemeTokenCssValue, isOverlayUrlActive, markDarkColor, mergeMonkeysLocaleMessages, resolveBaseAppearance, resolveDataExplorerAppearance, resolveMonkeysLocale, resolveRenderNodePolicyState, resolveToastVariantForMessage, sessionRenderNodeScrollRestoration, setTailwindTheme, toast, useDarkMode, useMonkeysBaseAppearance, useMonkeysComponentAttributes, useMonkeysDataExplorerAppearance, useMonkeysDirection, useMonkeysEnvironment, useMonkeysLocale, useMonkeysLocaleMessages, useMonkeysPortalOptions, useMonkeysResolvedTheme, useMonkeysStatusStates, useToastFeed, useToastOnValue, zhCN };
|
|
30633
|
+
export { AgentWorkbenchActivity, AgentWorkbenchSidebar, AgentWorkbenchTaskDetails, AgentWorkbenchTool, AppHeader, AppLayout, AppShellSidebar, AppSidebar, ApplicationHandoffLink, BaseAccordion, BaseAspectRatio, BaseAvatar, BaseBadge, BaseBreadcrumb, BaseButton, BaseCheckbox, BaseCode, BaseContainer, BaseContextMenu, BaseContextMenuCheckboxItem, BaseContextMenuContent, BaseContextMenuItem, BaseContextMenuLabel, BaseContextMenuRadioGroup, BaseContextMenuRadioItem, BaseContextMenuSeparator, BaseContextMenuSub, BaseContextMenuSubContent, BaseContextMenuSubTrigger, BaseContextMenuTrigger, BaseDescriptionList, BaseDialog, BaseDivider, BaseDropdownMenu, BaseEmptyState, BaseField, BaseFieldset, BaseGrid, BaseHeading, BaseInline, BaseInput, BaseInputGroup, BaseKbd, BaseLayout, BaseLayoutPane, BaseLayoutResizeHandle, BaseLayoutSplit, BaseLink, BaseList, BaseListFooter, BaseListItem, BaseLoadingState, BaseMultiSelect, BaseNotice, BaseNumberInput, BasePagination, BasePanel, BasePasswordInput, BasePortal, BaseProgress, BaseRadioGroup, BaseScrollArea, BaseSectionHeader, BaseSegmentedControl, BaseSelect, BaseSkeleton, BaseSpinner, BaseStack, BaseSteps, BaseSwitch, BaseSystemState, BaseTable, BaseTableBody, BaseTableCaption, BaseTableCell, BaseTableContainer, BaseTableEmpty, BaseTableFooter, BaseTableFooterBar, BaseTableHead, BaseTableHeader, BaseTableLoading, BaseTableRow, BaseTabs, BaseText, BaseTextarea, BaseToolbar, BaseTooltip, BaseVisuallyHidden, DarkModeSelector, DarkModeSubMenu, DataExplorerActionBar, DataExplorerButton, DataExplorerCheckbox, DataExplorerCollectionFooter, DataExplorerDetailField, DataExplorerDetailSection, DataExplorerDetailShell, DataExplorerDisplayActionMenu, DataExplorerDisplayCard, DataExplorerDisplayCollectionView, DataExplorerDisplayListItem, DataExplorerDisplayMedia, DataExplorerImagePreview, DataExplorerPage, DataExplorerRecordCard, DataExplorerSelect, DataExplorerToolbarActions, DataExplorerToolbarShell, DataExplorerTree, DataExplorerTreeShell, DataExplorerView, DataExplorerViewCollection, DataExplorerViewItem, DataExplorerViewItemShell, DataExplorerViewShell, DataExplorerViewTree, I18nSelector, InteractiveTable, InteractiveTableEditableTextCell, InteractiveTableReadonlyCell, InteractiveTableSelectCell, LoginPage, MonkeysProvider, MonkeysToastProvider, MonkeysToaster, NavButton, NavigationLayout, OverlayNodeHost, RenderNodeHost, MonkeysToastProvider as ToastProvider, MonkeysToaster as Toaster, UserAccountMenu, WorkbenchAssetGallery, WorkbenchCollection, WorkbenchContentPane, WorkbenchContentToolbar, WorkbenchDetailSidebar, WorkbenchEvidenceList, WorkbenchGalleryCard, WorkbenchGallerySettingsButton, WorkbenchGallerySettingsPanel, WorkbenchGalleryView, WorkbenchJourneyNavigation, WorkbenchLaneView, WorkbenchMasonryLayout, WorkbenchMetricGrid, WorkbenchRadarFilterChip, WorkbenchRadarInspectorSection, WorkbenchRadarMatrix, WorkbenchRadarNavigation, WorkbenchRadarWorkspace, WorkbenchRankedList, WorkbenchRelationshipGraph, WorkbenchResizableSidebar, WorkbenchScatterPlot, WorkbenchSelectionTray, WorkbenchTableView, applyThemeTokens, browserOverlayHistoryAdapter, buildOverlayUrl, calculateHue, calculateLightness, calculateSaturation, cn2 as cn, compileThemeTokens, createAgentWorkbenchActivityModel, createAgentWorkbenchDetailsModel, createSolidColorScale, defaultMonkeysLocale, enUS, extractToastMessage, genTailwindTheme, getBaseBadgeToneClassName, getBaseButtonToneClassName, getBaseMenuItemToneClassName, getBaseNoticeToneClassName, getDataExplorerActionToneClassName, getDataExplorerMenuItemToneClassName, getOverlayPresentationClassNames, getOverlayZIndex, getRenderNodeDataAttributes, getThemeTokenCssValue, isOverlayUrlActive, markDarkColor, mergeMonkeysLocaleMessages, resolveBaseAppearance, resolveDataExplorerAppearance, resolveMonkeysLocale, resolveRenderNodePolicyState, resolveToastVariantForMessage, sessionRenderNodeScrollRestoration, setTailwindTheme, toast, useDarkMode, useMonkeysBaseAppearance, useMonkeysComponentAttributes, useMonkeysDataExplorerAppearance, useMonkeysDirection, useMonkeysEnvironment, useMonkeysListFooter, useMonkeysLocale, useMonkeysLocaleMessages, useMonkeysPortalOptions, useMonkeysResolvedTheme, useMonkeysStatusStates, useToastFeed, useToastOnValue, zhCN };
|
|
30710
30634
|
//# sourceMappingURL=index.mjs.map
|
|
30711
30635
|
//# sourceMappingURL=index.mjs.map
|