@uipath/apollo-vertex 0.1.0 → 0.4.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/README.md +15 -21
- package/dist/entries/index.d.ts +102 -1
- package/dist/entries/index.js +77 -2
- package/dist/lib/i18n.d.ts +11 -0
- package/dist/lib/i18n.js +32 -2
- package/dist/lib/vertex-translation.d.ts +14 -0
- package/dist/lib/vertex-translation.js +4 -0
- package/dist/registry/ai-caveat/ai-caveat.js +2 -2
- package/dist/registry/ai-chat/charts/no-data-message.js +2 -2
- package/dist/registry/ai-chat/charts/tool-resolution-error.js +2 -2
- package/dist/registry/ai-chat/components/ai-chat-code-block.js +2 -2
- package/dist/registry/ai-chat/components/ai-chat-empty-state.js +2 -2
- package/dist/registry/ai-chat/components/ai-chat-error-banner.js +2 -2
- package/dist/registry/ai-chat/components/ai-chat-header.js +2 -2
- package/dist/registry/ai-chat/components/ai-chat-image-preview.js +2 -2
- package/dist/registry/ai-chat/components/ai-chat-input.js +2 -2
- package/dist/registry/ai-chat/components/ai-chat-loading.js +2 -2
- package/dist/registry/ai-chat/components/ai-chat-message-actions.js +3 -3
- package/dist/registry/ai-chat/components/ai-chat-message.js +2 -2
- package/dist/registry/ai-chat/components/ai-chat-pending-files.js +2 -2
- package/dist/registry/ai-chat/components/ai-chat-scroll-to-bottom-button.js +2 -2
- package/dist/registry/ai-chat/components/ai-chat-selection-menu.js +2 -2
- package/dist/registry/ai-chat/components/ai-chat.js +2 -2
- package/dist/registry/bar-chart/bar-chart-with-adapter.js +2 -2
- package/dist/registry/breadcrumb/breadcrumb.js +2 -2
- package/dist/registry/card/card.d.ts +3 -1
- package/dist/registry/card/card.js +4 -5
- package/dist/registry/carousel/carousel.js +3 -3
- package/dist/registry/charts-core/charts-core.d.ts +2 -2
- package/dist/registry/charts-core/error-boundary.js +2 -2
- package/dist/registry/combobox/combobox.js +2 -2
- package/dist/registry/confidence-signal/confidence-signal.js +2 -2
- package/dist/registry/data-fabric-adapter/contract.d.ts +1 -1
- package/dist/registry/data-fabric-adapter/schemas/query-schema.d.ts +2 -2
- package/dist/registry/data-table/data-table-expand-toggle.js +2 -2
- package/dist/registry/data-table/data-table-pagination.js +2 -2
- package/dist/registry/data-table/data-table-search.js +2 -2
- package/dist/registry/data-table/data-table-view-options.js +2 -2
- package/dist/registry/data-table/data-table.d.ts +1 -0
- package/dist/registry/data-table/data-table.js +2 -2
- package/dist/registry/date-picker/date-picker.js +2 -2
- package/dist/registry/dialog/dialog.js +2 -2
- package/dist/registry/distribution-chart/distribution-chart-with-adapter.js +2 -2
- package/dist/registry/filter-dropdown/filter-dropdown.js +2 -2
- package/dist/registry/form/use-translated-errors.js +2 -2
- package/dist/registry/form-wizard/form-wizard-nav.js +2 -2
- package/dist/registry/kpi-chart/kpi-chart-with-adapter.js +2 -2
- package/dist/registry/line-chart/line-chart-with-adapter.js +2 -2
- package/dist/registry/multi-line-chart/multi-line-chart-with-adapter.js +2 -2
- package/dist/registry/pagination/pagination.js +4 -4
- package/dist/registry/sheet/sheet.js +2 -2
- package/dist/registry/shell/group-membership-guard.js +1 -0
- package/dist/registry/shell/group-membership-screens.js +4 -3
- package/dist/registry/shell/shell-auth-provider.js +1 -0
- package/dist/registry/shell/shell-company.js +3 -3
- package/dist/registry/shell/shell-layout.js +1 -0
- package/dist/registry/shell/shell-locale-provider.js +3 -2
- package/dist/registry/shell/shell-login.js +3 -2
- package/dist/registry/shell/shell-sidebar.js +3 -2
- package/dist/registry/shell/shell-text.js +4 -2
- package/dist/registry/shell/shell-theme-provider.js +1 -0
- package/dist/registry/shell/shell-user-profile-menu-items.js +2 -2
- package/dist/registry/shell/shell-user-profile.js +2 -2
- package/dist/registry/shell/shell-user-provider.js +1 -0
- package/dist/registry/shell/shell.js +1 -0
- package/dist/registry/shell/use-group-id.js +1 -0
- package/dist/registry/shell/use-group-members.js +1 -0
- package/dist/registry/shell/use-is-group-member.js +1 -0
- package/dist/registry/sidebar/sidebar-trigger.js +2 -2
- package/dist/registry/sidebar/sidebar.js +2 -2
- package/dist/registry/solution-tests/baseline-compare.js +2 -2
- package/dist/registry/solution-tests/delete-confirm-dialog.js +2 -2
- package/dist/registry/solution-tests/evaluators/case-evaluation/case-evaluation-result.js +7 -7
- package/dist/registry/solution-tests/evaluators/generic-evaluator-result.js +2 -2
- package/dist/registry/solution-tests/evaluators/ixp-extraction/internal/document-row.js +3 -3
- package/dist/registry/solution-tests/evaluators/ixp-extraction/internal/field-group.js +2 -2
- package/dist/registry/solution-tests/evaluators/ixp-extraction/internal/provenance-bar.js +2 -2
- package/dist/registry/solution-tests/evaluators/ixp-extraction/internal/summary-bar.js +2 -2
- package/dist/registry/solution-tests/evaluators/ixp-extraction/internal/verdict-badge.js +2 -2
- package/dist/registry/solution-tests/evaluators/ixp-extraction/ixp-extraction-result.js +2 -2
- package/dist/registry/solution-tests/expanded-agents-view.js +2 -2
- package/dist/registry/solution-tests/expanded-run-tests-view.js +2 -2
- package/dist/registry/solution-tests/expanded-run-tests.js +2 -2
- package/dist/registry/solution-tests/hooks.d.ts +0 -1
- package/dist/registry/solution-tests/kpi-bar.js +2 -2
- package/dist/registry/solution-tests/outputs/case-evaluation/case-evaluation-output.js +3 -3
- package/dist/registry/solution-tests/outputs/ixp-extraction/ixp-output-result.js +5 -5
- package/dist/registry/solution-tests/process-results-viewer-dialog.js +2 -2
- package/dist/registry/solution-tests/result-expanded-content.js +2 -2
- package/dist/registry/solution-tests/run-confirm-dialog.js +2 -2
- package/dist/registry/solution-tests/run-details-agent-list.js +2 -2
- package/dist/registry/solution-tests/run-details-view.js +4 -4
- package/dist/registry/solution-tests/run-details.js +2 -2
- package/dist/registry/solution-tests/save-as-test-button.js +2 -2
- package/dist/registry/solution-tests/solution-tests-view.js +2 -2
- package/dist/registry/solution-tests/solution-tests.js +2 -2
- package/dist/registry/solution-tests/user-messages-view.js +3 -3
- package/dist/registry/solution-tests/version-delta-glyph.js +2 -2
- package/dist/registry/stepper/index.d.ts +1 -7
- package/dist/registry/stepper/index.js +1 -6
- package/dist/registry/table-chart/table-chart-view.js +2 -2
- package/dist/registry/table-chart/table-chart-with-adapter.js +2 -2
- package/package.json +27 -88
- package/skills/use-vertex-components/SKILL.md +168 -0
- package/dist/entries/ai-chat/index.d.ts +0 -17
- package/dist/entries/ai-chat/index.js +0 -14
- package/dist/entries/charts/index.d.ts +0 -10
- package/dist/entries/charts/index.js +0 -10
- package/dist/entries/feature-flags/index.d.ts +0 -5
- package/dist/entries/feature-flags/index.js +0 -5
- package/dist/entries/feature-flags/proteus.d.ts +0 -1
- package/dist/entries/feature-flags/proteus.js +0 -2
- package/dist/entries/shell/entities.d.ts +0 -6
- package/dist/entries/shell/entities.js +0 -8
- package/dist/entries/shell/index.d.ts +0 -14
- package/dist/entries/shell/index.js +0 -14
- package/dist/entries/solution-tests/data.d.ts +0 -6
- package/dist/entries/solution-tests/data.js +0 -6
- package/dist/entries/solution-tests/index.d.ts +0 -36
- package/dist/entries/solution-tests/index.js +0 -21
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useTextSelection } from "@mantine/hooks";
|
|
4
4
|
import { AnimatePresence, motion } from "framer-motion";
|
|
5
|
-
import {
|
|
5
|
+
import { useVertexTranslation } from "../../../lib/vertex-translation.js";
|
|
6
6
|
import { Button } from "../../button/button.js";
|
|
7
7
|
import { POP_ANIMATE, POP_EXIT, POP_INITIAL, POP_TRANSITION } from "../animations.js";
|
|
8
8
|
import { AutopilotIcon } from "./icons/autopilot.js";
|
|
@@ -25,7 +25,7 @@ function deriveMenuState(selection, container) {
|
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
27
|
function AiChatSelectionMenu({ onAskAi, containerRef }) {
|
|
28
|
-
const { t } =
|
|
28
|
+
const { t } = useVertexTranslation();
|
|
29
29
|
const selection = useTextSelection();
|
|
30
30
|
const menu = deriveMenuState(selection, containerRef?.current ?? null);
|
|
31
31
|
return /*#__PURE__*/ jsx(AnimatePresence, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { Fragment, useEffect, useRef, useState } from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { useVertexTranslation } from "../../../lib/vertex-translation.js";
|
|
5
5
|
import { cn } from "../../../lib/utils.js";
|
|
6
6
|
import { asBlockquote, isVisibleAssistant } from "../content-parts.js";
|
|
7
7
|
import { useStickyScroll } from "../hooks/use-sticky-scroll.js";
|
|
@@ -15,7 +15,7 @@ import { AiChatMessage } from "./ai-chat-message.js";
|
|
|
15
15
|
import { AiChatScrollToBottomButton } from "./ai-chat-scroll-to-bottom-button.js";
|
|
16
16
|
import { AiChatSelectionMenu } from "./ai-chat-selection-menu.js";
|
|
17
17
|
function AiChat({ messages, status, onSendMessage, onStop, onClearChat, onRetry, onFeedback, getFeedback, onRegenerate, onEditMessage, renderToolPart, assistantName, title, header, emptyState, suggestions, onSuggestionClick, placeholder, acceptedFileTypes, enableTextSelection = false, error }) {
|
|
18
|
-
const { t } =
|
|
18
|
+
const { t } = useVertexTranslation();
|
|
19
19
|
const [input, setInput] = useState("");
|
|
20
20
|
const [quotedText, setQuotedText] = useState(null);
|
|
21
21
|
const { attachScrollListeners, scrollElement, contentRef, isStuck, scrollToBottom } = useStickyScroll();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useIsFetching, useSuspenseQuery } from "@tanstack/react-query";
|
|
3
3
|
import { useDeferredValue } from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { useVertexTranslation } from "../../lib/vertex-translation.js";
|
|
5
5
|
import { assertNumberOrNull } from "../../lib/asserts/assert-number-or-null.js";
|
|
6
6
|
import { ChartLoadingBoundary, SpinnerWithChildren, format, formatMetricValue, formatPercentage } from "../charts-core/charts-core.js";
|
|
7
7
|
import { BarChart } from "./bar-chart-view.js";
|
|
@@ -18,7 +18,7 @@ function BarChartWithAdapter({ configuration, dataModel, dataAdapter }) {
|
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
20
|
function BarChartResolver({ configuration, dataModel, dataAdapter }) {
|
|
21
|
-
const { i18n: { language } } =
|
|
21
|
+
const { i18n: { language } } = useVertexTranslation();
|
|
22
22
|
const deferrableProps = useDeferredValue({
|
|
23
23
|
configuration,
|
|
24
24
|
dataModel,
|
|
@@ -3,7 +3,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { Slot } from "@radix-ui/react-slot";
|
|
4
4
|
import { ChevronRight, MoreHorizontal } from "lucide-react";
|
|
5
5
|
import "react";
|
|
6
|
-
import {
|
|
6
|
+
import { useVertexTranslation } from "../../lib/vertex-translation.js";
|
|
7
7
|
import { cn } from "../../lib/utils.js";
|
|
8
8
|
function Breadcrumb({ ...props }) {
|
|
9
9
|
return /*#__PURE__*/ jsx("nav", {
|
|
@@ -55,7 +55,7 @@ function BreadcrumbSeparator({ children, className, ...props }) {
|
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
function BreadcrumbEllipsis({ className, ...props }) {
|
|
58
|
-
const { t } =
|
|
58
|
+
const { t } = useVertexTranslation();
|
|
59
59
|
return /*#__PURE__*/ jsxs("span", {
|
|
60
60
|
"data-slot": "breadcrumb-ellipsis",
|
|
61
61
|
role: "presentation",
|
|
@@ -7,8 +7,10 @@ declare const cardVariants: (props?: ({
|
|
|
7
7
|
interface CardProps extends React.ComponentProps<"div">, VariantProps<typeof cardVariants> {
|
|
8
8
|
selectable?: "standard" | "ai";
|
|
9
9
|
selected?: boolean;
|
|
10
|
+
/** Classes for the outermost element, e.g. `col-span-*`. When `selectable` is set, `className` and all other props go to the inner button. */
|
|
11
|
+
wrapperClassName?: string;
|
|
10
12
|
}
|
|
11
|
-
declare function Card({ className, variant, selectable, selected, children, ...props }: CardProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
declare function Card({ className, wrapperClassName, variant, selectable, selected, children, ...props }: CardProps): import("react/jsx-runtime").JSX.Element;
|
|
12
14
|
declare function CardHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
13
15
|
declare function CardTitle({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
14
16
|
declare function CardDescription({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
@@ -24,11 +24,11 @@ const cardVariants = cva("flex flex-col gap-6 py-6 text-card-foreground", {
|
|
|
24
24
|
variant: "default"
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
|
-
function Card({ className, variant, selectable, selected = false, children, ...props }) {
|
|
27
|
+
function Card({ className, wrapperClassName, variant, selectable, selected = false, children, ...props }) {
|
|
28
28
|
if (selectable) {
|
|
29
29
|
const isAi = "ai" === selectable;
|
|
30
30
|
return /*#__PURE__*/ jsxs("div", {
|
|
31
|
-
className: "relative group/card h-full",
|
|
31
|
+
className: cn("relative group/card h-full", wrapperClassName),
|
|
32
32
|
"data-slot": "card",
|
|
33
33
|
"data-variant": variant,
|
|
34
34
|
"data-selectable": selectable,
|
|
@@ -58,9 +58,8 @@ function Card({ className, variant, selectable, selected = false, children, ...p
|
|
|
58
58
|
"data-slot": "card",
|
|
59
59
|
"data-variant": variant,
|
|
60
60
|
className: cn(cardVariants({
|
|
61
|
-
variant
|
|
62
|
-
|
|
63
|
-
})),
|
|
61
|
+
variant
|
|
62
|
+
}), className, wrapperClassName),
|
|
64
63
|
...props,
|
|
65
64
|
children: children
|
|
66
65
|
});
|
|
@@ -3,7 +3,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import embla_carousel_react from "embla-carousel-react";
|
|
4
4
|
import { ArrowLeft, ArrowRight } from "lucide-react";
|
|
5
5
|
import { createContext, useContext, useEffect, useState } from "react";
|
|
6
|
-
import {
|
|
6
|
+
import { useVertexTranslation } from "../../lib/vertex-translation.js";
|
|
7
7
|
import { Button } from "../button/button.js";
|
|
8
8
|
import { cn } from "../../lib/utils.js";
|
|
9
9
|
const CarouselContext = /*#__PURE__*/ createContext(null);
|
|
@@ -103,7 +103,7 @@ function CarouselItem({ className, ...props }) {
|
|
|
103
103
|
});
|
|
104
104
|
}
|
|
105
105
|
function CarouselPrevious({ className, variant = "outline", size = "icon", ...props }) {
|
|
106
|
-
const { t } =
|
|
106
|
+
const { t } = useVertexTranslation();
|
|
107
107
|
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
108
108
|
return /*#__PURE__*/ jsxs(Button, {
|
|
109
109
|
"data-slot": "carousel-previous",
|
|
@@ -123,7 +123,7 @@ function CarouselPrevious({ className, variant = "outline", size = "icon", ...pr
|
|
|
123
123
|
});
|
|
124
124
|
}
|
|
125
125
|
function CarouselNext({ className, variant = "outline", size = "icon", ...props }) {
|
|
126
|
-
const { t } =
|
|
126
|
+
const { t } = useVertexTranslation();
|
|
127
127
|
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
128
128
|
return /*#__PURE__*/ jsxs(Button, {
|
|
129
129
|
"data-slot": "carousel-next",
|
|
@@ -15,8 +15,8 @@ export { type LineChartConfiguration, LineChartConfigurationSchema, } from "./mo
|
|
|
15
15
|
export { type MultiLineChartConfiguration, MultiLineChartConfigurationSchema, } from "./models/configurations/multi-line-chart-configuration";
|
|
16
16
|
export { type TableChartConfiguration, TableChartConfigurationSchema, } from "./models/configurations/table-chart-configuration";
|
|
17
17
|
export type { DataModelAggregate, AggregationKind, MetricExpression, } from "./models/expression";
|
|
18
|
-
export type { ListFilter } from "./models/filter";
|
|
19
|
-
export type { FilterValues } from "./models/filter-values";
|
|
18
|
+
export type { ListFilter, PeriodFilter } from "./models/filter";
|
|
19
|
+
export type { BooleanListFilterValues, FilterValues, ListFilterValues, NumberListFilterValues, NumberRangeFilterValues, PeriodFilterValues, StringListFilterValues, StringSearchFilterValues, } from "./models/filter-values";
|
|
20
20
|
export { type FromConfig, FromConfigSchema, type JoinConfig, JoinConfigSchema, } from "./models/join-schema";
|
|
21
21
|
export type { PrimitiveValue } from "./models/primitive-value";
|
|
22
22
|
export { SpinnerWithChildren } from "./spinner-with-children";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { ErrorBoundary } from "react-error-boundary";
|
|
3
|
-
import {
|
|
3
|
+
import { useVertexTranslation } from "../../lib/vertex-translation.js";
|
|
4
4
|
function Fallback({ error, resetErrorBoundary }) {
|
|
5
|
-
const { t } =
|
|
5
|
+
const { t } = useVertexTranslation();
|
|
6
6
|
const message = error instanceof Error ? error.message : String(error);
|
|
7
7
|
return /*#__PURE__*/ jsxs("div", {
|
|
8
8
|
role: "alert",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { AlertTriangleIcon, CheckIcon, ChevronsUpDownIcon, XIcon } from "lucide-react";
|
|
4
4
|
import { createContext, use, useState } from "react";
|
|
5
|
-
import {
|
|
5
|
+
import { useVertexTranslation } from "../../lib/vertex-translation.js";
|
|
6
6
|
import { Badge } from "../badge/badge.js";
|
|
7
7
|
import { buttonVariants } from "../button/button.js";
|
|
8
8
|
import { Command, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList } from "../command/command.js";
|
|
@@ -150,7 +150,7 @@ function ComboboxBadgeList({ className, ...props }) {
|
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
152
|
function ComboboxBadge({ className, value: itemValue, onRemove, children, ...props }) {
|
|
153
|
-
const { t } =
|
|
153
|
+
const { t } = useVertexTranslation();
|
|
154
154
|
const { value: selectedValues, onValueChange } = useComboboxContext();
|
|
155
155
|
function handleRemove(e) {
|
|
156
156
|
e.preventDefault();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useState } from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { useVertexTranslation } from "../../lib/vertex-translation.js";
|
|
5
5
|
import { Popover, PopoverContent, PopoverTrigger } from "../popover/popover.js";
|
|
6
6
|
import { Tooltip, TooltipContent, TooltipTrigger } from "../tooltip/tooltip.js";
|
|
7
7
|
import { SignalBars } from "./confidence-signal-bars.js";
|
|
@@ -10,7 +10,7 @@ import { ConfidenceSignalCta } from "./confidence-signal-cta.js";
|
|
|
10
10
|
import { ConfidenceSignalFactors } from "./confidence-signal-factors.js";
|
|
11
11
|
import { LEVEL_CONFIG } from "./confidence-signal-levels.js";
|
|
12
12
|
function ConfidenceSignal({ level, variant = "med", explanation, factors, explainCta, nextStep, animateIn = false, className, ...props }) {
|
|
13
|
-
const { t } =
|
|
13
|
+
const { t } = useVertexTranslation();
|
|
14
14
|
const [tooltipOpen, setTooltipOpen] = useState(false);
|
|
15
15
|
const [detailsOpen, setDetailsOpen] = useState(false);
|
|
16
16
|
const config = LEVEL_CONFIG[level];
|
|
@@ -18,7 +18,6 @@ export declare const dataFabricContract: {
|
|
|
18
18
|
fieldName: z.ZodString;
|
|
19
19
|
operator: z.ZodEnum<{
|
|
20
20
|
in: "in";
|
|
21
|
-
contains: "contains";
|
|
22
21
|
"=": "=";
|
|
23
22
|
"!=": "!=";
|
|
24
23
|
">": ">";
|
|
@@ -26,6 +25,7 @@ export declare const dataFabricContract: {
|
|
|
26
25
|
">=": ">=";
|
|
27
26
|
"<=": "<=";
|
|
28
27
|
"not in": "not in";
|
|
28
|
+
contains: "contains";
|
|
29
29
|
"not contains": "not contains";
|
|
30
30
|
startswith: "startswith";
|
|
31
31
|
endswith: "endswith";
|
|
@@ -3,7 +3,6 @@ export declare const DataFabricQueryFilterSchema: z.ZodObject<{
|
|
|
3
3
|
fieldName: z.ZodString;
|
|
4
4
|
operator: z.ZodEnum<{
|
|
5
5
|
in: "in";
|
|
6
|
-
contains: "contains";
|
|
7
6
|
"=": "=";
|
|
8
7
|
"!=": "!=";
|
|
9
8
|
">": ">";
|
|
@@ -11,6 +10,7 @@ export declare const DataFabricQueryFilterSchema: z.ZodObject<{
|
|
|
11
10
|
">=": ">=";
|
|
12
11
|
"<=": "<=";
|
|
13
12
|
"not in": "not in";
|
|
13
|
+
contains: "contains";
|
|
14
14
|
"not contains": "not contains";
|
|
15
15
|
startswith: "startswith";
|
|
16
16
|
endswith: "endswith";
|
|
@@ -50,7 +50,6 @@ export declare const DataFabricQueryRequestSchema: z.ZodObject<{
|
|
|
50
50
|
fieldName: z.ZodString;
|
|
51
51
|
operator: z.ZodEnum<{
|
|
52
52
|
in: "in";
|
|
53
|
-
contains: "contains";
|
|
54
53
|
"=": "=";
|
|
55
54
|
"!=": "!=";
|
|
56
55
|
">": ">";
|
|
@@ -58,6 +57,7 @@ export declare const DataFabricQueryRequestSchema: z.ZodObject<{
|
|
|
58
57
|
">=": ">=";
|
|
59
58
|
"<=": "<=";
|
|
60
59
|
"not in": "not in";
|
|
60
|
+
contains: "contains";
|
|
61
61
|
"not contains": "not contains";
|
|
62
62
|
startswith: "startswith";
|
|
63
63
|
endswith: "endswith";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { ChevronsDownUp, ChevronsUpDown } from "lucide-react";
|
|
4
|
-
import {
|
|
4
|
+
import { useVertexTranslation } from "../../lib/vertex-translation.js";
|
|
5
5
|
import { Button } from "../button/button.js";
|
|
6
6
|
function DataTableExpandAllToggle({ table }) {
|
|
7
|
-
const { t } =
|
|
7
|
+
const { t } = useVertexTranslation();
|
|
8
8
|
const allExpanded = table.getIsAllRowsExpanded();
|
|
9
9
|
return /*#__PURE__*/ jsx(Button, {
|
|
10
10
|
type: "button",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { ChevronLeftIcon, ChevronRightIcon, ChevronsLeftIcon, ChevronsRightIcon } from "lucide-react";
|
|
4
|
-
import {
|
|
4
|
+
import { useVertexTranslation } from "../../lib/vertex-translation.js";
|
|
5
5
|
import { Button } from "../button/button.js";
|
|
6
6
|
import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "../select/select.js";
|
|
7
7
|
import { cn } from "../../lib/utils.js";
|
|
@@ -12,7 +12,7 @@ function DataTablePagination({ table, paginationSizes = [
|
|
|
12
12
|
100
|
|
13
13
|
], className }) {
|
|
14
14
|
"use no memo";
|
|
15
|
-
const { t } =
|
|
15
|
+
const { t } = useVertexTranslation();
|
|
16
16
|
const { pageIndex, pageSize } = table.getState().pagination;
|
|
17
17
|
const totalRows = table.getFilteredRowModel().rows.length;
|
|
18
18
|
const pageCount = table.getPageCount();
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { SearchIcon } from "lucide-react";
|
|
4
|
-
import {
|
|
4
|
+
import { useVertexTranslation } from "../../lib/vertex-translation.js";
|
|
5
5
|
import { Input } from "../input/input.js";
|
|
6
6
|
import { cn } from "../../lib/utils.js";
|
|
7
7
|
function DataTableSearch({ table, placeholder, className }) {
|
|
8
|
-
const { t } =
|
|
8
|
+
const { t } = useVertexTranslation();
|
|
9
9
|
return /*#__PURE__*/ jsxs("div", {
|
|
10
10
|
"data-slot": "data-table-search",
|
|
11
11
|
className: cn("relative", className),
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { Columns3Icon } from "lucide-react";
|
|
4
|
-
import {
|
|
4
|
+
import { useVertexTranslation } from "../../lib/vertex-translation.js";
|
|
5
5
|
import { Button } from "../button/button.js";
|
|
6
6
|
import { DropdownMenu, DropdownMenuContent, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger } from "../dropdown-menu/dropdown-menu.js";
|
|
7
7
|
import { Tooltip, TooltipContent, TooltipTrigger } from "../tooltip/tooltip.js";
|
|
8
8
|
import { SortableColumnList } from "./sortable-column-list.js";
|
|
9
9
|
function DataTableViewOptions({ table, className }) {
|
|
10
|
-
const { t } =
|
|
10
|
+
const { t } = useVertexTranslation();
|
|
11
11
|
const allReorderableColumns = table.getAllColumns().filter((column)=>null != column.accessorFn && column.getCanHide());
|
|
12
12
|
const currentOrder = table.getState().columnOrder;
|
|
13
13
|
const orderedColumns = ()=>{
|
|
@@ -45,4 +45,5 @@ interface DataTableProps<TData, TValue> {
|
|
|
45
45
|
declare function DataTable<TData, TValue>({ columns, data, className, isLoading, onRowClick, sorting, onSortingChange, columnFilters, onColumnFiltersChange, columnVisibility, onColumnVisibilityChange, columnOrder, onColumnOrderChange, rowSelection, onRowSelectionChange, globalFilter, onGlobalFilterChange, pagination, onPaginationChange, getRowId, globalFilterFn, enableSearch, enableViewOptions, enableColumnResizing, toolbarContent, noResultsMessage, stickyHeader, expanded, onExpandedChange, renderExpandedRow, getRowClassName, skeletonColumnWidths, plain, }: DataTableProps<TData, TValue>): import("react/jsx-runtime").JSX.Element;
|
|
46
46
|
export { DataTable };
|
|
47
47
|
export type { DataTableProps };
|
|
48
|
+
/** @public */
|
|
48
49
|
export { DataTableColumnHeader } from "./data-table-column-header";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { flexRender, getCoreRowModel, getExpandedRowModel, getFilteredRowModel, getPaginationRowModel, getSortedRowModel } from "@tanstack/react-table";
|
|
4
4
|
import { Fragment } from "react";
|
|
5
|
-
import {
|
|
5
|
+
import { useVertexTranslation } from "../../lib/vertex-translation.js";
|
|
6
6
|
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "../table/table.js";
|
|
7
7
|
import { useReactTableCompat } from "../use-data-table/useReactTableCompat.js";
|
|
8
8
|
import { cn } from "../../lib/utils.js";
|
|
@@ -15,7 +15,7 @@ import { DataTableToolbar } from "./data-table-toolbar.js";
|
|
|
15
15
|
import { DataTableColumnHeader } from "./data-table-column-header.js";
|
|
16
16
|
const GLASS_CLASSES = "bg-white/55 border border-white/80 rounded-2xl backdrop-blur-sm shadow-[0_2px_16px_2px_rgba(0,0,0,0.05),inset_0_1px_0_0_rgba(255,255,255,0.6)] dark:bg-white/[0.055] dark:border-white/[0.03] dark:shadow-[0_2px_16px_2px_rgba(0,0,0,0.2),inset_0_1px_0_0_rgba(255,255,255,0.04)]";
|
|
17
17
|
function DataTable({ columns, data, className, isLoading = false, onRowClick, sorting, onSortingChange, columnFilters, onColumnFiltersChange, columnVisibility, onColumnVisibilityChange, columnOrder, onColumnOrderChange, rowSelection, onRowSelectionChange, globalFilter, onGlobalFilterChange, pagination, onPaginationChange, getRowId, globalFilterFn, enableSearch = true, enableViewOptions = true, enableColumnResizing = false, toolbarContent, noResultsMessage, stickyHeader = false, expanded, onExpandedChange, renderExpandedRow, getRowClassName, skeletonColumnWidths, plain = false }) {
|
|
18
|
-
const { t } =
|
|
18
|
+
const { t } = useVertexTranslation();
|
|
19
19
|
const isRowSelectionEnabled = !!(rowSelection && onRowSelectionChange);
|
|
20
20
|
const isPaginationEnabled = !!(pagination && onPaginationChange);
|
|
21
21
|
const resetPageIndex = ()=>{
|
|
@@ -3,12 +3,12 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { DateTime } from "luxon";
|
|
4
4
|
import { ChevronDownIcon } from "lucide-react";
|
|
5
5
|
import "react";
|
|
6
|
-
import {
|
|
6
|
+
import { useVertexTranslation } from "../../lib/vertex-translation.js";
|
|
7
7
|
import { Button } from "../button/button.js";
|
|
8
8
|
import { Calendar } from "../calendar/calendar.js";
|
|
9
9
|
import { Popover, PopoverContent, PopoverTrigger } from "../popover/popover.js";
|
|
10
10
|
function DatePicker({ value, onValueChanged }) {
|
|
11
|
-
const { t } =
|
|
11
|
+
const { t } = useVertexTranslation();
|
|
12
12
|
return /*#__PURE__*/ jsxs(Popover, {
|
|
13
13
|
children: [
|
|
14
14
|
/*#__PURE__*/ jsx(PopoverTrigger, {
|
|
@@ -3,7 +3,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { Close, Content, Description, Overlay, Portal, Root, Title, Trigger } from "@radix-ui/react-dialog";
|
|
4
4
|
import { XIcon } from "lucide-react";
|
|
5
5
|
import "react";
|
|
6
|
-
import {
|
|
6
|
+
import { useVertexTranslation } from "../../lib/vertex-translation.js";
|
|
7
7
|
import { cn } from "../../lib/utils.js";
|
|
8
8
|
function Dialog({ ...props }) {
|
|
9
9
|
return /*#__PURE__*/ jsx(Root, {
|
|
@@ -37,7 +37,7 @@ function DialogOverlay({ className, ...props }) {
|
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
39
|
function DialogContent({ className, children, showCloseButton = true, fullscreen, ...props }) {
|
|
40
|
-
const { t } =
|
|
40
|
+
const { t } = useVertexTranslation();
|
|
41
41
|
return /*#__PURE__*/ jsxs(DialogPortal, {
|
|
42
42
|
"data-slot": "dialog-portal",
|
|
43
43
|
children: [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useIsFetching, useSuspenseQuery } from "@tanstack/react-query";
|
|
3
3
|
import { useDeferredValue } from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { useVertexTranslation } from "../../lib/vertex-translation.js";
|
|
5
5
|
import { assert } from "../../lib/asserts/assert.js";
|
|
6
6
|
import { assertDefined } from "../../lib/asserts/assert-defined.js";
|
|
7
7
|
import { ChartLoadingBoundary, SpinnerWithChildren, binLabel, formatMetricValue, getChartRange } from "../charts-core/charts-core.js";
|
|
@@ -18,7 +18,7 @@ function DistributionChartWithAdapter({ configuration, dataModel, dataAdapter })
|
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
20
|
function DistributionChartResolver({ configuration, dataModel, dataAdapter }) {
|
|
21
|
-
const { i18n: { language } } =
|
|
21
|
+
const { i18n: { language } } = useVertexTranslation();
|
|
22
22
|
const deferrableProps = useDeferredValue({
|
|
23
23
|
configuration,
|
|
24
24
|
dataModel
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { ChevronDownIcon, SearchIcon, XIcon } from "lucide-react";
|
|
4
4
|
import { useState } from "react";
|
|
5
|
-
import {
|
|
5
|
+
import { useVertexTranslation } from "../../lib/vertex-translation.js";
|
|
6
6
|
import { Button } from "../button/button.js";
|
|
7
7
|
import { Input } from "../input/input.js";
|
|
8
8
|
import { Popover, PopoverContent, PopoverTrigger } from "../popover/popover.js";
|
|
@@ -13,7 +13,7 @@ import { FILTER_DROPDOWN_LIST_SLOT, FilterDropdownError, FilterDropdownLoadingMo
|
|
|
13
13
|
import { useFilterDropdownSearch } from "./use-filter-dropdown-search.js";
|
|
14
14
|
function FilterDropdown({ title, options, className, multiSelect = true, column, value: valueProp, onChange: onChangeProp, enableSearch = "auto", searchThreshold = 8, searchPlaceholder = "Search...", noOptionsMessage, noResultsMessage = "No results found", align = "start", popoverWidth = "w-[220px]", isLoading = false, hasMore = false, onLoadMore, loadingMessage, onSearchChange, searchDebounceMs = 300, error, errorMessage, onRetry, retryLabel, selectedOptions }) {
|
|
15
15
|
"use no memo";
|
|
16
|
-
const { t } =
|
|
16
|
+
const { t } = useVertexTranslation();
|
|
17
17
|
const [open, setOpen] = useState(false);
|
|
18
18
|
const { searchQuery, updateSearch, resetSearch } = useFilterDropdownSearch({
|
|
19
19
|
onSearchChange,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { useVertexTranslation } from "../../lib/vertex-translation.js";
|
|
3
3
|
import { normalizeErrors } from "./field-utils.js";
|
|
4
4
|
function useTranslatedErrors(errors) {
|
|
5
|
-
const { t } =
|
|
5
|
+
const { t } = useVertexTranslation();
|
|
6
6
|
return normalizeErrors(errors).map((error)=>({
|
|
7
7
|
message: t(error.message, {
|
|
8
8
|
defaultValue: error.message
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
|
-
import {
|
|
3
|
+
import { useVertexTranslation } from "../../lib/vertex-translation.js";
|
|
4
4
|
import { Button } from "../button/button.js";
|
|
5
5
|
import { cn } from "../../lib/utils.js";
|
|
6
6
|
import { useFormWizardContext } from "./form-wizard.js";
|
|
7
7
|
function FormWizardNav({ className, children, ...props }) {
|
|
8
8
|
const { form, isFirst, isLast, back, next } = useFormWizardContext();
|
|
9
|
-
const { t } =
|
|
9
|
+
const { t } = useVertexTranslation();
|
|
10
10
|
if ("function" == typeof children) return /*#__PURE__*/ jsx(Fragment, {
|
|
11
11
|
children: children({
|
|
12
12
|
back,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useIsFetching, useSuspenseQuery } from "@tanstack/react-query";
|
|
3
3
|
import { useDeferredValue } from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { useVertexTranslation } from "../../lib/vertex-translation.js";
|
|
5
5
|
import { assertNumber } from "../../lib/asserts/assert-number.js";
|
|
6
6
|
import { ChartLoadingBoundary, SpinnerWithChildren, formatMetricValue } from "../charts-core/charts-core.js";
|
|
7
7
|
import { KpiChart } from "./kpi-chart-view.js";
|
|
@@ -17,7 +17,7 @@ function KpiChartWithAdapter({ configuration, dataModel, dataAdapter }) {
|
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
19
|
function KpiChartResolver({ configuration, dataModel, dataAdapter }) {
|
|
20
|
-
const { i18n: { language } } =
|
|
20
|
+
const { i18n: { language } } = useVertexTranslation();
|
|
21
21
|
const deferrableProps = useDeferredValue({
|
|
22
22
|
configuration,
|
|
23
23
|
dataModel
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useIsFetching, useSuspenseQuery } from "@tanstack/react-query";
|
|
3
3
|
import { useDeferredValue } from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { useVertexTranslation } from "../../lib/vertex-translation.js";
|
|
5
5
|
import { assert } from "../../lib/asserts/assert.js";
|
|
6
6
|
import { assertDefined } from "../../lib/asserts/assert-defined.js";
|
|
7
7
|
import { ChartLoadingBoundary, SpinnerWithChildren, binLabel, formatMetricValue, getChartRange } from "../charts-core/charts-core.js";
|
|
@@ -18,7 +18,7 @@ function LineChartWithAdapter({ configuration, dataModel, dataAdapter }) {
|
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
20
|
function LineChartResolver({ configuration, dataModel, dataAdapter }) {
|
|
21
|
-
const { i18n: { language } } =
|
|
21
|
+
const { i18n: { language } } = useVertexTranslation();
|
|
22
22
|
const deferrableProps = useDeferredValue({
|
|
23
23
|
configuration,
|
|
24
24
|
dataModel
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useIsFetching, useSuspenseQuery } from "@tanstack/react-query";
|
|
3
3
|
import { useDeferredValue } from "react";
|
|
4
|
-
import {
|
|
4
|
+
import { useVertexTranslation } from "../../lib/vertex-translation.js";
|
|
5
5
|
import { assert } from "../../lib/asserts/assert.js";
|
|
6
6
|
import { assertDefined } from "../../lib/asserts/assert-defined.js";
|
|
7
7
|
import { ChartLoadingBoundary, SpinnerWithChildren, binLabel, formatMetricValue, getChartRange } from "../charts-core/charts-core.js";
|
|
@@ -22,7 +22,7 @@ function MultiLineChartWithAdapter({ configuration, dataModel, dataAdapter }) {
|
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
24
|
function MultiLineChartResolver({ configuration, dataModel, dataAdapter }) {
|
|
25
|
-
const { t, i18n: { language } } =
|
|
25
|
+
const { t, i18n: { language } } = useVertexTranslation();
|
|
26
26
|
const deferrableProps = useDeferredValue({
|
|
27
27
|
configuration,
|
|
28
28
|
dataModel
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { ChevronLeftIcon, ChevronRightIcon, MoreHorizontalIcon } from "lucide-react";
|
|
4
4
|
import "react";
|
|
5
|
-
import {
|
|
5
|
+
import { useVertexTranslation } from "../../lib/vertex-translation.js";
|
|
6
6
|
import { buttonVariants } from "../button/button.js";
|
|
7
7
|
import { cn } from "../../lib/utils.js";
|
|
8
8
|
function Pagination({ className, ...props }) {
|
|
@@ -42,7 +42,7 @@ function PaginationLink({ className, isActive, size = "icon", ...props }) {
|
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
44
|
function PaginationPrevious({ className, ...props }) {
|
|
45
|
-
const { t } =
|
|
45
|
+
const { t } = useVertexTranslation();
|
|
46
46
|
return /*#__PURE__*/ jsxs(PaginationLink, {
|
|
47
47
|
"aria-label": t("go_to_previous_page"),
|
|
48
48
|
size: "default",
|
|
@@ -58,7 +58,7 @@ function PaginationPrevious({ className, ...props }) {
|
|
|
58
58
|
});
|
|
59
59
|
}
|
|
60
60
|
function PaginationNext({ className, ...props }) {
|
|
61
|
-
const { t } =
|
|
61
|
+
const { t } = useVertexTranslation();
|
|
62
62
|
return /*#__PURE__*/ jsxs(PaginationLink, {
|
|
63
63
|
"aria-label": t("go_to_next_page"),
|
|
64
64
|
size: "default",
|
|
@@ -74,7 +74,7 @@ function PaginationNext({ className, ...props }) {
|
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
76
|
function PaginationEllipsis({ className, ...props }) {
|
|
77
|
-
const { t } =
|
|
77
|
+
const { t } = useVertexTranslation();
|
|
78
78
|
return /*#__PURE__*/ jsxs("span", {
|
|
79
79
|
"aria-hidden": true,
|
|
80
80
|
"data-slot": "pagination-ellipsis",
|
|
@@ -3,7 +3,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { Close, Content, Description, Overlay, Portal, Root, Title, Trigger } from "@radix-ui/react-dialog";
|
|
4
4
|
import { XIcon } from "lucide-react";
|
|
5
5
|
import "react";
|
|
6
|
-
import {
|
|
6
|
+
import { useVertexTranslation } from "../../lib/vertex-translation.js";
|
|
7
7
|
import { cn } from "../../lib/utils.js";
|
|
8
8
|
function Sheet({ ...props }) {
|
|
9
9
|
return /*#__PURE__*/ jsx(Root, {
|
|
@@ -37,7 +37,7 @@ function SheetOverlay({ className, ...props }) {
|
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
39
|
function SheetContent({ className, children, side = "right", ...props }) {
|
|
40
|
-
const { t } =
|
|
40
|
+
const { t } = useVertexTranslation();
|
|
41
41
|
return /*#__PURE__*/ jsxs(SheetPortal, {
|
|
42
42
|
children: [
|
|
43
43
|
/*#__PURE__*/ jsx(SheetOverlay, {}),
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
3
|
import { ShieldX } from "lucide-react";
|
|
3
|
-
import {
|
|
4
|
+
import { useVertexTranslation } from "../../lib/vertex-translation.js";
|
|
4
5
|
import { Button } from "../button/button.js";
|
|
5
6
|
const VerifyingMembership = ()=>{
|
|
6
|
-
const { t } =
|
|
7
|
+
const { t } = useVertexTranslation();
|
|
7
8
|
return /*#__PURE__*/ jsx("div", {
|
|
8
9
|
className: "flex h-screen items-center justify-center bg-background",
|
|
9
10
|
children: /*#__PURE__*/ jsx("div", {
|
|
@@ -13,7 +14,7 @@ const VerifyingMembership = ()=>{
|
|
|
13
14
|
});
|
|
14
15
|
};
|
|
15
16
|
const MembershipDenied = ({ user, onLogout, description })=>{
|
|
16
|
-
const { t } =
|
|
17
|
+
const { t } = useVertexTranslation();
|
|
17
18
|
return /*#__PURE__*/ jsx("div", {
|
|
18
19
|
className: "flex h-screen items-center justify-center bg-background",
|
|
19
20
|
children: /*#__PURE__*/ jsx("div", {
|
|
@@ -3,7 +3,7 @@ import { Link } from "@tanstack/react-router";
|
|
|
3
3
|
import { AnimatePresence, motion } from "framer-motion";
|
|
4
4
|
import { PanelLeft } from "lucide-react";
|
|
5
5
|
import { useState } from "react";
|
|
6
|
-
import {
|
|
6
|
+
import { useVertexTranslation } from "../../lib/vertex-translation.js";
|
|
7
7
|
import { Button } from "../button/button.js";
|
|
8
8
|
import { useSidebar } from "../sidebar/sidebar.js";
|
|
9
9
|
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "../tooltip/tooltip.js";
|
|
@@ -11,7 +11,7 @@ import { cn } from "../../lib/utils.js";
|
|
|
11
11
|
import { fastFadeTransition, iconHoverScale, scaleVariants, textFadeVariants } from "./shell-animations.js";
|
|
12
12
|
import { CompanyLogoIcon } from "./shell-company-logo.js";
|
|
13
13
|
function CollapsedLogo({ companyLogo, sidebarHovered, onExpand }) {
|
|
14
|
-
const { t } =
|
|
14
|
+
const { t } = useVertexTranslation();
|
|
15
15
|
const [buttonHovered, setButtonHovered] = useState(false);
|
|
16
16
|
const isCustomLogo = companyLogo?.isCustom ?? false;
|
|
17
17
|
const panelBgClass = isCustomLogo ? "bg-white border border-border" : "bg-[oklch(0.6533_0.2227_34.41)]";
|
|
@@ -92,7 +92,7 @@ function CollapsedLogo({ companyLogo, sidebarHovered, onExpand }) {
|
|
|
92
92
|
});
|
|
93
93
|
}
|
|
94
94
|
const Company = ({ companyName, productName, companyLogo, sidebarHovered = false })=>{
|
|
95
|
-
const { t } =
|
|
95
|
+
const { t } = useVertexTranslation();
|
|
96
96
|
const { state, toggleSidebar } = useSidebar();
|
|
97
97
|
const isCollapsed = "collapsed" === state;
|
|
98
98
|
const isCustomLogo = companyLogo?.isCustom ?? false;
|