@gravitee/graphene-core 2.30.0 → 2.31.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/icons/index.d.ts +15 -1
- package/dist/icons/index.d.ts.map +1 -1
- package/dist/icons/index.js +2 -2
- package/dist/icons/products/GioAgentManagementIcon.d.ts +3 -0
- package/dist/icons/products/GioAgentManagementIcon.d.ts.map +1 -0
- package/dist/icons/products/GioApiManagementIcon.d.ts +3 -0
- package/dist/icons/products/GioApiManagementIcon.d.ts.map +1 -0
- package/dist/icons/products/GioAuthorizationIcon.d.ts +3 -0
- package/dist/icons/products/GioAuthorizationIcon.d.ts.map +1 -0
- package/dist/icons/products/GioCatalogIcon.d.ts +3 -0
- package/dist/icons/products/GioCatalogIcon.d.ts.map +1 -0
- package/dist/icons/products/GioDeveloperPortalIcon.d.ts +3 -0
- package/dist/icons/products/GioDeveloperPortalIcon.d.ts.map +1 -0
- package/dist/icons/products/GioEventApiManagementIcon.d.ts +3 -0
- package/dist/icons/products/GioEventApiManagementIcon.d.ts.map +1 -0
- package/dist/icons/products/GioGammaIcon.d.ts +3 -0
- package/dist/icons/products/GioGammaIcon.d.ts.map +1 -0
- package/dist/icons/products/GioHomeIcon.d.ts +3 -0
- package/dist/icons/products/GioHomeIcon.d.ts.map +1 -0
- package/dist/icons/products/GioIamIcon.d.ts +3 -0
- package/dist/icons/products/GioIamIcon.d.ts.map +1 -0
- package/dist/icons/products/GioObservabilityIcon.d.ts +3 -0
- package/dist/icons/products/GioObservabilityIcon.d.ts.map +1 -0
- package/dist/icons/products/GioObserveIcon.d.ts +3 -0
- package/dist/icons/products/GioObserveIcon.d.ts.map +1 -0
- package/dist/icons/products/GioPlatformIcon.d.ts +3 -0
- package/dist/icons/products/GioPlatformIcon.d.ts.map +1 -0
- package/dist/icons/products/GioProductizeIcon.d.ts +3 -0
- package/dist/icons/products/GioProductizeIcon.d.ts.map +1 -0
- package/dist/icons/products/GioSecureIcon.d.ts +3 -0
- package/dist/icons/products/GioSecureIcon.d.ts.map +1 -0
- package/dist/icons-D_4R9XrW.js +3219 -0
- package/dist/index.js +82 -82
- package/dist/styles/globals.css +1 -1
- package/package.json +1 -1
- package/dist/icons-C8Z7SFgk.js +0 -290
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as e, A as t, At as n, D as r,
|
|
1
|
+
import { $ as e, A as t, At as n, D as r, Kt as i, M as a, Nt as o, O as s, P as c, Pt as l, Q as u, Qt as d, T as f, W as p, Z as m, bn as h, c as g, ct as _, f as v, j as y, k as b, ln as x, p as S, pt as C, sn as w, tt as T, xt as E, yt as D, zt as O } from "./icons-D_4R9XrW.js";
|
|
2
2
|
import { n as k, t as A } from "./ThemeProvider-C_Ea8dI-.js";
|
|
3
3
|
import * as j from "react";
|
|
4
4
|
import M, { Fragment as N, createContext as P, createElement as F, forwardRef as I, useCallback as L, useContext as ee, useDebugValue as te, useEffect as R, useId as z, useImperativeHandle as ne, useLayoutEffect as re, useMemo as ie, useReducer as B, useRef as ae, useState as V, useSyncExternalStore as oe, useSyncExternalStore as H } from "react";
|
|
@@ -8521,7 +8521,7 @@ function Uy({ className: e, children: t, ...n }) {
|
|
|
8521
8521
|
"data-slot": "accordion-trigger",
|
|
8522
8522
|
className: Y("flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180", e),
|
|
8523
8523
|
...n,
|
|
8524
|
-
children: [t, /* @__PURE__ */ W(
|
|
8524
|
+
children: [t, /* @__PURE__ */ W(s, {
|
|
8525
8525
|
"aria-hidden": "true",
|
|
8526
8526
|
className: "pointer-events-none size-4 shrink-0 translate-y-0.5 text-muted-foreground transition-transform duration-200"
|
|
8527
8527
|
})]
|
|
@@ -11896,15 +11896,15 @@ function Nw(e) {
|
|
|
11896
11896
|
}
|
|
11897
11897
|
//#endregion
|
|
11898
11898
|
//#region src/base/Calendar/Calendar.tsx
|
|
11899
|
-
function Pw({ className: e, classNames: n, showOutsideDays: r = !0, captionLayout: i = "label", buttonVariant: a = "ghost", locale:
|
|
11899
|
+
function Pw({ className: e, classNames: n, showOutsideDays: r = !0, captionLayout: i = "label", buttonVariant: a = "ghost", locale: o, formatters: c, components: l, ...u }) {
|
|
11900
11900
|
let d = gC();
|
|
11901
11901
|
return /* @__PURE__ */ W(Nw, {
|
|
11902
11902
|
showOutsideDays: r,
|
|
11903
11903
|
className: Y("group/calendar bg-background p-2 [--cell-radius:var(--radius-md)] [--cell-size:var(--spacing-7)] in-data-[slot=card-content]:bg-transparent in-data-[slot=popover-content]:bg-transparent", String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`, String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`, e),
|
|
11904
11904
|
captionLayout: i,
|
|
11905
|
-
locale:
|
|
11905
|
+
locale: o,
|
|
11906
11906
|
formatters: {
|
|
11907
|
-
formatMonthDropdown: (e) => e.toLocaleString(
|
|
11907
|
+
formatMonthDropdown: (e) => e.toLocaleString(o?.code, { month: "short" }),
|
|
11908
11908
|
...c
|
|
11909
11909
|
},
|
|
11910
11910
|
classNames: {
|
|
@@ -11942,7 +11942,7 @@ function Pw({ className: e, classNames: n, showOutsideDays: r = !0, captionLayou
|
|
|
11942
11942
|
className: Y(e),
|
|
11943
11943
|
...n
|
|
11944
11944
|
}),
|
|
11945
|
-
Chevron: ({ className: e, orientation: n, ...r }) => W(n === "left" ?
|
|
11945
|
+
Chevron: ({ className: e, orientation: n, ...r }) => W(n === "left" ? b : n === "right" ? t : s, {
|
|
11946
11946
|
"aria-hidden": "true",
|
|
11947
11947
|
className: Y("size-4", e),
|
|
11948
11948
|
...r
|
|
@@ -17506,7 +17506,7 @@ function mM({ className: e, children: t, "aria-label": n, ...r }) {
|
|
|
17506
17506
|
"aria-label": t ? n : n ?? "Open",
|
|
17507
17507
|
className: Y("[&_svg:not([class*='size-'])]:size-4", e),
|
|
17508
17508
|
...r,
|
|
17509
|
-
children: [t, /* @__PURE__ */ W(
|
|
17509
|
+
children: [t, /* @__PURE__ */ W(a, {
|
|
17510
17510
|
"aria-hidden": "true",
|
|
17511
17511
|
className: "pointer-events-none size-4 text-muted-foreground"
|
|
17512
17512
|
})]
|
|
@@ -17521,26 +17521,26 @@ function hM({ "aria-label": e = "Clear", ...t }) {
|
|
|
17521
17521
|
size: "icon-xs"
|
|
17522
17522
|
}),
|
|
17523
17523
|
...t,
|
|
17524
|
-
children: /* @__PURE__ */ W(
|
|
17524
|
+
children: /* @__PURE__ */ W(h, {
|
|
17525
17525
|
"aria-hidden": "true",
|
|
17526
17526
|
className: "pointer-events-none"
|
|
17527
17527
|
})
|
|
17528
17528
|
});
|
|
17529
17529
|
}
|
|
17530
|
-
function gM({ className: e, children: t, disabled: n = !1, showTrigger: r = !0, showClear:
|
|
17530
|
+
function gM({ className: e, children: t, disabled: n = !1, showTrigger: r = !0, showClear: a = !1, ...o }) {
|
|
17531
17531
|
return /* @__PURE__ */ G(iM, {
|
|
17532
17532
|
className: Y("w-auto", e),
|
|
17533
17533
|
children: [
|
|
17534
17534
|
/* @__PURE__ */ W(oM, {
|
|
17535
17535
|
align: "inline-start",
|
|
17536
|
-
children: /* @__PURE__ */ W(
|
|
17536
|
+
children: /* @__PURE__ */ W(i, {
|
|
17537
17537
|
"aria-hidden": "true",
|
|
17538
17538
|
className: "pointer-events-none"
|
|
17539
17539
|
})
|
|
17540
17540
|
}),
|
|
17541
17541
|
/* @__PURE__ */ W(oj, {
|
|
17542
17542
|
render: /* @__PURE__ */ W(uM, { disabled: n }),
|
|
17543
|
-
...
|
|
17543
|
+
...o
|
|
17544
17544
|
}),
|
|
17545
17545
|
/* @__PURE__ */ G(oM, {
|
|
17546
17546
|
align: "inline-end",
|
|
@@ -17552,7 +17552,7 @@ function gM({ className: e, children: t, disabled: n = !1, showTrigger: r = !0,
|
|
|
17552
17552
|
className: "group-has-data-[slot=combobox-clear]/input-group:hidden data-pressed:bg-transparent",
|
|
17553
17553
|
disabled: n,
|
|
17554
17554
|
children: /* @__PURE__ */ W(mM, {})
|
|
17555
|
-
}),
|
|
17555
|
+
}), a && /* @__PURE__ */ W(hM, { disabled: n })]
|
|
17556
17556
|
}),
|
|
17557
17557
|
t
|
|
17558
17558
|
]
|
|
@@ -17652,7 +17652,7 @@ function EM({ className: e, children: t, showRemove: n = !0, removeAriaLabel: r
|
|
|
17652
17652
|
className: "-ml-1 opacity-50 hover:opacity-100",
|
|
17653
17653
|
"data-slot": "combobox-chip-remove",
|
|
17654
17654
|
"aria-label": r,
|
|
17655
|
-
children: /* @__PURE__ */ W(
|
|
17655
|
+
children: /* @__PURE__ */ W(h, {
|
|
17656
17656
|
"aria-hidden": "true",
|
|
17657
17657
|
className: "pointer-events-none"
|
|
17658
17658
|
})
|
|
@@ -18263,7 +18263,7 @@ function BN({ className: e, children: t, showCloseButton: n = !0, ...r }) {
|
|
|
18263
18263
|
variant: "ghost",
|
|
18264
18264
|
className: "absolute top-2 right-2",
|
|
18265
18265
|
size: "icon-sm",
|
|
18266
|
-
children: [/* @__PURE__ */ W(
|
|
18266
|
+
children: [/* @__PURE__ */ W(h, { "aria-hidden": "true" }), /* @__PURE__ */ W("span", {
|
|
18267
18267
|
className: "sr-only",
|
|
18268
18268
|
children: "Close"
|
|
18269
18269
|
})]
|
|
@@ -18338,7 +18338,7 @@ function qN({ className: e, ...t }) {
|
|
|
18338
18338
|
"data-slot": "command-input",
|
|
18339
18339
|
className: Y("w-full text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50", e),
|
|
18340
18340
|
...t
|
|
18341
|
-
}), /* @__PURE__ */ W(oM, { children: /* @__PURE__ */ W(
|
|
18341
|
+
}), /* @__PURE__ */ W(oM, { children: /* @__PURE__ */ W(i, {
|
|
18342
18342
|
"aria-hidden": "true",
|
|
18343
18343
|
className: "size-4 shrink-0 opacity-50"
|
|
18344
18344
|
}) })]
|
|
@@ -22363,7 +22363,7 @@ function rR({ accept: e, className: t, disabled: n, hint: r, icon: i, invalid: a
|
|
|
22363
22363
|
/* @__PURE__ */ W("div", {
|
|
22364
22364
|
"aria-hidden": "true",
|
|
22365
22365
|
className: Y("flex items-center justify-center text-muted-foreground", b === null && y === null && "h-full w-full"),
|
|
22366
|
-
children: i ?? /* @__PURE__ */ W(
|
|
22366
|
+
children: i ?? /* @__PURE__ */ W(x, { className: "size-8" })
|
|
22367
22367
|
}),
|
|
22368
22368
|
b ? /* @__PURE__ */ W(QF, {
|
|
22369
22369
|
id: _,
|
|
@@ -22590,7 +22590,7 @@ function OR({ className: e, text: t = "Previous", ...n }) {
|
|
|
22590
22590
|
size: "default",
|
|
22591
22591
|
className: Y("pl-1.5!", e),
|
|
22592
22592
|
...n,
|
|
22593
|
-
children: [/* @__PURE__ */ W(
|
|
22593
|
+
children: [/* @__PURE__ */ W(b, {
|
|
22594
22594
|
"aria-hidden": "true",
|
|
22595
22595
|
"data-icon": "inline-start"
|
|
22596
22596
|
}), /* @__PURE__ */ W("span", {
|
|
@@ -24360,7 +24360,7 @@ function WB({ className: e, size: t = "default", children: n, ...r }) {
|
|
|
24360
24360
|
...r,
|
|
24361
24361
|
children: [n, /* @__PURE__ */ W(z_, {
|
|
24362
24362
|
asChild: !0,
|
|
24363
|
-
children: /* @__PURE__ */ W(
|
|
24363
|
+
children: /* @__PURE__ */ W(s, {
|
|
24364
24364
|
"aria-hidden": "true",
|
|
24365
24365
|
className: "pointer-events-none size-4 text-muted-foreground"
|
|
24366
24366
|
})
|
|
@@ -24423,7 +24423,7 @@ function YB({ className: e, ...t }) {
|
|
|
24423
24423
|
"data-slot": "select-scroll-up-button",
|
|
24424
24424
|
className: Y("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4", e),
|
|
24425
24425
|
...t,
|
|
24426
|
-
children: /* @__PURE__ */ W(
|
|
24426
|
+
children: /* @__PURE__ */ W(y, { "aria-hidden": "true" })
|
|
24427
24427
|
});
|
|
24428
24428
|
}
|
|
24429
24429
|
function XB({ className: e, ...t }) {
|
|
@@ -24431,7 +24431,7 @@ function XB({ className: e, ...t }) {
|
|
|
24431
24431
|
"data-slot": "select-scroll-down-button",
|
|
24432
24432
|
className: Y("z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4", e),
|
|
24433
24433
|
...t,
|
|
24434
|
-
children: /* @__PURE__ */ W(
|
|
24434
|
+
children: /* @__PURE__ */ W(s, { "aria-hidden": "true" })
|
|
24435
24435
|
});
|
|
24436
24436
|
}
|
|
24437
24437
|
//#endregion
|
|
@@ -24480,7 +24480,7 @@ function nV({ className: e, children: t, side: n = "right", showCloseButton: r =
|
|
|
24480
24480
|
variant: "ghost",
|
|
24481
24481
|
className: "absolute top-3 right-3",
|
|
24482
24482
|
size: "icon-sm",
|
|
24483
|
-
children: [/* @__PURE__ */ W(
|
|
24483
|
+
children: [/* @__PURE__ */ W(h, { "aria-hidden": "true" }), /* @__PURE__ */ W("span", {
|
|
24484
24484
|
className: "sr-only",
|
|
24485
24485
|
children: "Close"
|
|
24486
24486
|
})]
|
|
@@ -24696,7 +24696,7 @@ function DV({ className: e, onClick: t, ...n }) {
|
|
|
24696
24696
|
t?.(e), r();
|
|
24697
24697
|
},
|
|
24698
24698
|
...n,
|
|
24699
|
-
children: [/* @__PURE__ */ W(
|
|
24699
|
+
children: [/* @__PURE__ */ W(l, { "aria-hidden": "true" }), /* @__PURE__ */ W("span", {
|
|
24700
24700
|
className: "sr-only",
|
|
24701
24701
|
children: "Toggle Sidebar"
|
|
24702
24702
|
})]
|
|
@@ -25521,7 +25521,7 @@ var wH = /* @__PURE__ */ M.forwardRef(function(e, t) {
|
|
|
25521
25521
|
}), TH = ({ ...e }) => /* @__PURE__ */ W(wH, {
|
|
25522
25522
|
className: "group",
|
|
25523
25523
|
icons: {
|
|
25524
|
-
success: /* @__PURE__ */ W(
|
|
25524
|
+
success: /* @__PURE__ */ W(c, {
|
|
25525
25525
|
"aria-hidden": "true",
|
|
25526
25526
|
className: "size-4"
|
|
25527
25527
|
}),
|
|
@@ -25529,15 +25529,15 @@ var wH = /* @__PURE__ */ M.forwardRef(function(e, t) {
|
|
|
25529
25529
|
"aria-hidden": "true",
|
|
25530
25530
|
className: "size-4"
|
|
25531
25531
|
}),
|
|
25532
|
-
warning: /* @__PURE__ */ W(
|
|
25532
|
+
warning: /* @__PURE__ */ W(w, {
|
|
25533
25533
|
"aria-hidden": "true",
|
|
25534
25534
|
className: "size-4"
|
|
25535
25535
|
}),
|
|
25536
|
-
error: /* @__PURE__ */ W(
|
|
25536
|
+
error: /* @__PURE__ */ W(o, {
|
|
25537
25537
|
"aria-hidden": "true",
|
|
25538
25538
|
className: "size-4"
|
|
25539
25539
|
}),
|
|
25540
|
-
loading: /* @__PURE__ */ W(
|
|
25540
|
+
loading: /* @__PURE__ */ W(E, {
|
|
25541
25541
|
"aria-hidden": "true",
|
|
25542
25542
|
className: "size-4 animate-spin"
|
|
25543
25543
|
})
|
|
@@ -25553,7 +25553,7 @@ var wH = /* @__PURE__ */ M.forwardRef(function(e, t) {
|
|
|
25553
25553
|
//#endregion
|
|
25554
25554
|
//#region src/base/Spinner/Spinner.tsx
|
|
25555
25555
|
function EH({ className: e, ...t }) {
|
|
25556
|
-
return /* @__PURE__ */ W(
|
|
25556
|
+
return /* @__PURE__ */ W(E, {
|
|
25557
25557
|
role: "status",
|
|
25558
25558
|
"aria-label": "Loading",
|
|
25559
25559
|
className: Y("size-4 animate-spin", e),
|
|
@@ -25807,7 +25807,7 @@ function $H({ className: e }) {
|
|
|
25807
25807
|
size: "icon",
|
|
25808
25808
|
className: Y("size-8 text-sidebar-foreground/70", e),
|
|
25809
25809
|
"aria-label": "Sidebar display mode",
|
|
25810
|
-
children: /* @__PURE__ */ W(
|
|
25810
|
+
children: /* @__PURE__ */ W(l, {
|
|
25811
25811
|
"aria-hidden": "true",
|
|
25812
25812
|
className: "size-4"
|
|
25813
25813
|
})
|
|
@@ -25960,7 +25960,7 @@ function iU({ apps: e, activeKey: t, onChange: n, onOpenChange: r, className: i
|
|
|
25960
25960
|
size: "icon",
|
|
25961
25961
|
className: Y("size-8 shrink-0", i),
|
|
25962
25962
|
"aria-label": "Switch application",
|
|
25963
|
-
children: /* @__PURE__ */ W(
|
|
25963
|
+
children: /* @__PURE__ */ W(D, { className: "size-4" })
|
|
25964
25964
|
})
|
|
25965
25965
|
}), /* @__PURE__ */ W(NR, {
|
|
25966
25966
|
side: s ? "bottom" : "right",
|
|
@@ -26026,7 +26026,7 @@ function oU({ activeOption: e, emptyLabel: t = "Select...", className: n, ...r }
|
|
|
26026
26026
|
children: [
|
|
26027
26027
|
e?.icon,
|
|
26028
26028
|
/* @__PURE__ */ W("span", { children: e?.label ?? t }),
|
|
26029
|
-
/* @__PURE__ */ W(
|
|
26029
|
+
/* @__PURE__ */ W(a, { className: "ml-auto size-4 shrink-0 opacity-60" })
|
|
26030
26030
|
]
|
|
26031
26031
|
});
|
|
26032
26032
|
}
|
|
@@ -26074,7 +26074,7 @@ function cU({ environments: e, activeKey: t, onEnvironmentChange: n, onOpenChang
|
|
|
26074
26074
|
children: [
|
|
26075
26075
|
/* @__PURE__ */ W("div", {
|
|
26076
26076
|
className: "flex size-8 shrink-0 items-center justify-center rounded-md bg-primary text-primary-foreground [&_svg]:size-4",
|
|
26077
|
-
children: e?.icon ?? /* @__PURE__ */ W(
|
|
26077
|
+
children: e?.icon ?? /* @__PURE__ */ W(_, { className: "size-4" })
|
|
26078
26078
|
}),
|
|
26079
26079
|
/* @__PURE__ */ G("div", {
|
|
26080
26080
|
className: "grid min-w-0 flex-1 text-left text-sm/tight",
|
|
@@ -26086,20 +26086,20 @@ function cU({ environments: e, activeKey: t, onEnvironmentChange: n, onOpenChang
|
|
|
26086
26086
|
children: "Environment"
|
|
26087
26087
|
})]
|
|
26088
26088
|
}),
|
|
26089
|
-
/* @__PURE__ */ W(
|
|
26089
|
+
/* @__PURE__ */ W(a, { className: "ml-auto size-4 shrink-0 opacity-60" })
|
|
26090
26090
|
]
|
|
26091
26091
|
})
|
|
26092
26092
|
});
|
|
26093
26093
|
}
|
|
26094
26094
|
function lU({ className: e, apps: t, activeAppKey: n, onAppChange: r, environments: i, activeEnvironmentKey: a, onEnvironmentChange: o, renderNavigation: s }) {
|
|
26095
|
-
let { setOpen: c } = wV(), l = i && i.length > 0, u = t?.find((e) => e.key === n), d = a ?? i?.[0]?.key ?? "", f = i?.find((e) => e.key === d), { mode: p } = JH(), m = ae(null), { popoverOpened: h, popoverClosed: g, handleMouseEnter:
|
|
26095
|
+
let { setOpen: c } = wV(), l = i && i.length > 0, u = t?.find((e) => e.key === n), d = a ?? i?.[0]?.key ?? "", f = i?.find((e) => e.key === d), { mode: p } = JH(), m = ae(null), { popoverOpened: h, popoverClosed: g, handleMouseEnter: v, handleMouseLeave: y } = sU(m, {
|
|
26096
26096
|
mode: p,
|
|
26097
26097
|
setOpen: c
|
|
26098
26098
|
}), b = L((e) => e ? h() : g(), [h, g]);
|
|
26099
26099
|
return /* @__PURE__ */ W("div", {
|
|
26100
26100
|
className: e,
|
|
26101
26101
|
ref: m,
|
|
26102
|
-
onMouseEnter:
|
|
26102
|
+
onMouseEnter: v,
|
|
26103
26103
|
onMouseLeave: y,
|
|
26104
26104
|
children: /* @__PURE__ */ W(cV, {
|
|
26105
26105
|
delayDuration: 0,
|
|
@@ -26196,7 +26196,7 @@ function lU({ className: e, apps: t, activeAppKey: n, onAppChange: r, environmen
|
|
|
26196
26196
|
className: "flex size-8 items-center justify-center rounded-md text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",
|
|
26197
26197
|
children: /* @__PURE__ */ W("div", {
|
|
26198
26198
|
className: "flex size-6 items-center justify-center rounded-sm bg-primary text-primary-foreground [&_svg]:size-3.5",
|
|
26199
|
-
children: e?.icon ?? /* @__PURE__ */ W(
|
|
26199
|
+
children: e?.icon ?? /* @__PURE__ */ W(_, { className: "size-3.5" })
|
|
26200
26200
|
})
|
|
26201
26201
|
})
|
|
26202
26202
|
})
|
|
@@ -26267,7 +26267,7 @@ function fU({ expanded: e, onToggle: t, className: n }) {
|
|
|
26267
26267
|
className: Y("size-7", n),
|
|
26268
26268
|
onClick: t,
|
|
26269
26269
|
"aria-label": "Toggle context sidebar",
|
|
26270
|
-
children: /* @__PURE__ */ W(
|
|
26270
|
+
children: /* @__PURE__ */ W(l, { className: e ? "size-4" : "size-4 opacity-50" })
|
|
26271
26271
|
});
|
|
26272
26272
|
}
|
|
26273
26273
|
fU.displayName = "ContextToggleButton";
|
|
@@ -26345,7 +26345,7 @@ function hU({ value: e, className: t, copyLabel: n = "Click to copy", copiedLabe
|
|
|
26345
26345
|
}), s ? /* @__PURE__ */ W(r, {
|
|
26346
26346
|
className: "size-3.5 text-primary",
|
|
26347
26347
|
"aria-hidden": "true"
|
|
26348
|
-
}) : /* @__PURE__ */ W(
|
|
26348
|
+
}) : /* @__PURE__ */ W(p, {
|
|
26349
26349
|
className: "size-3.5",
|
|
26350
26350
|
"aria-hidden": "true"
|
|
26351
26351
|
})]
|
|
@@ -27890,7 +27890,7 @@ function WW({ table: e }) {
|
|
|
27890
27890
|
children: /* @__PURE__ */ G(hb, {
|
|
27891
27891
|
variant: "outline",
|
|
27892
27892
|
size: "sm",
|
|
27893
|
-
children: [/* @__PURE__ */ W(
|
|
27893
|
+
children: [/* @__PURE__ */ W(d, { className: "size-4" }), "View"]
|
|
27894
27894
|
})
|
|
27895
27895
|
}), /* @__PURE__ */ G(NF, {
|
|
27896
27896
|
align: "end",
|
|
@@ -28076,7 +28076,7 @@ function ZW({ column: e, title: t, className: n, ...r }) {
|
|
|
28076
28076
|
size: "xs",
|
|
28077
28077
|
className: "-ml-2 text-sm",
|
|
28078
28078
|
onClick: () => e.toggleSorting(i === "asc"),
|
|
28079
|
-
children: [t, W(i === "asc" ? S : i === "desc" ?
|
|
28079
|
+
children: [t, W(i === "asc" ? S : i === "desc" ? g : v, { className: "size-3.5" })]
|
|
28080
28080
|
})
|
|
28081
28081
|
});
|
|
28082
28082
|
}
|
|
@@ -28132,7 +28132,7 @@ function QW({ page: e, pageSize: n, totalCount: r, pageSizeOptions: i = [
|
|
|
28132
28132
|
disabled: e <= 1,
|
|
28133
28133
|
onClick: () => a(e - 1),
|
|
28134
28134
|
"aria-label": "Previous page",
|
|
28135
|
-
children: /* @__PURE__ */ W(
|
|
28135
|
+
children: /* @__PURE__ */ W(b, { className: "size-4" })
|
|
28136
28136
|
}), /* @__PURE__ */ W(hb, {
|
|
28137
28137
|
variant: "ghost",
|
|
28138
28138
|
size: "icon-xs",
|
|
@@ -29313,7 +29313,7 @@ function sK({ id: e, value: t, onChange: n, placeholder: r = "Pick a date", disa
|
|
|
29313
29313
|
"aria-expanded": l,
|
|
29314
29314
|
"aria-label": c,
|
|
29315
29315
|
className: Y("w-full min-w-[9rem] justify-between font-normal", !t && "text-muted-foreground", s),
|
|
29316
|
-
children: [t ? aK(t, a) : /* @__PURE__ */ W("span", { children: r }), /* @__PURE__ */ W(
|
|
29316
|
+
children: [t ? aK(t, a) : /* @__PURE__ */ W("span", { children: r }), /* @__PURE__ */ W(f, { "aria-hidden": "true" })]
|
|
29317
29317
|
})
|
|
29318
29318
|
}), /* @__PURE__ */ W(NR, {
|
|
29319
29319
|
className: "w-auto p-0",
|
|
@@ -29331,10 +29331,10 @@ function sK({ id: e, value: t, onChange: n, placeholder: r = "Pick a date", disa
|
|
|
29331
29331
|
//#endregion
|
|
29332
29332
|
//#region src/composed/DatePicker/DateRangePicker.tsx
|
|
29333
29333
|
function cK({ id: e, value: t, onChange: n, placeholder: r = "Pick a date", disabled: i = !1, dateFormat: a = "LLL dd, y", locale: o, numberOfMonths: s = 2, className: c, "aria-label": l }) {
|
|
29334
|
-
let [u,
|
|
29334
|
+
let [u, d] = V(!1);
|
|
29335
29335
|
return /* @__PURE__ */ G(jR, {
|
|
29336
29336
|
open: u,
|
|
29337
|
-
onOpenChange:
|
|
29337
|
+
onOpenChange: d,
|
|
29338
29338
|
children: [/* @__PURE__ */ W(MR, {
|
|
29339
29339
|
asChild: !0,
|
|
29340
29340
|
children: /* @__PURE__ */ G(hb, {
|
|
@@ -29350,7 +29350,7 @@ function cK({ id: e, value: t, onChange: n, placeholder: r = "Pick a date", disa
|
|
|
29350
29350
|
aK(t.from, a),
|
|
29351
29351
|
" → ",
|
|
29352
29352
|
aK(t.to, a)
|
|
29353
|
-
] }) : /* @__PURE__ */ G(U, { children: [aK(t.from, a), " → …"] }) : /* @__PURE__ */ G(U, { children: ["… → ", aK(t.to, a)] }) : /* @__PURE__ */ W("span", { children: r }), /* @__PURE__ */ W(
|
|
29353
|
+
] }) : /* @__PURE__ */ G(U, { children: [aK(t.from, a), " → …"] }) : /* @__PURE__ */ G(U, { children: ["… → ", aK(t.to, a)] }) : /* @__PURE__ */ W("span", { children: r }), /* @__PURE__ */ W(f, { "aria-hidden": "true" })]
|
|
29354
29354
|
})
|
|
29355
29355
|
}), /* @__PURE__ */ W(NR, {
|
|
29356
29356
|
className: "w-auto p-0",
|
|
@@ -29380,7 +29380,7 @@ function uK(e, t) {
|
|
|
29380
29380
|
//#endregion
|
|
29381
29381
|
//#region src/composed/DatePicker/DateTimePicker.tsx
|
|
29382
29382
|
function dK({ id: e, value: t, onChange: n, placeholder: r = "Pick a date and time", disabled: i = !1, dateTimeFormat: a = "PP '@' HH:mm:ss", locale: o, className: s, side: c = "bottom", align: l = "start", "aria-label": u }) {
|
|
29383
|
-
let
|
|
29383
|
+
let d = (/* @__PURE__ */ new Date()).getFullYear(), p = new Date(d - 10, 0), m = new Date(d + 10, 11), h = z(), g = e ?? h, [_, v] = V(!1);
|
|
29384
29384
|
function y(e) {
|
|
29385
29385
|
if (!e) {
|
|
29386
29386
|
n?.(void 0);
|
|
@@ -29405,7 +29405,7 @@ function dK({ id: e, value: t, onChange: n, placeholder: r = "Pick a date and ti
|
|
|
29405
29405
|
"aria-expanded": _,
|
|
29406
29406
|
"aria-label": u,
|
|
29407
29407
|
className: Y("w-full min-w-[13rem] justify-between font-normal", !t && "text-muted-foreground", s),
|
|
29408
|
-
children: [t ? aK(t, a) : r, /* @__PURE__ */ W(
|
|
29408
|
+
children: [t ? aK(t, a) : r, /* @__PURE__ */ W(f, { "aria-hidden": "true" })]
|
|
29409
29409
|
})
|
|
29410
29410
|
}), /* @__PURE__ */ G(NR, {
|
|
29411
29411
|
className: "w-auto overflow-hidden p-0",
|
|
@@ -29445,7 +29445,7 @@ function dK({ id: e, value: t, onChange: n, placeholder: r = "Pick a date and ti
|
|
|
29445
29445
|
//#endregion
|
|
29446
29446
|
//#region src/composed/DatePicker/DateTimeRangePicker.tsx
|
|
29447
29447
|
var fK = "00:00:00", pK = "23:59:59";
|
|
29448
|
-
function mK({ id: e, value: t, onChange: n, placeholder: r = "Pick a date and time range", disabled: i = !1, fromLabel: a = "From", toLabel: o = "To", dateTimeFormat: s = "PP '@' HH:mm", locale: c, className: l, side: u = "bottom", align:
|
|
29448
|
+
function mK({ id: e, value: t, onChange: n, placeholder: r = "Pick a date and time range", disabled: i = !1, fromLabel: a = "From", toLabel: o = "To", dateTimeFormat: s = "PP '@' HH:mm", locale: c, className: l, side: u = "bottom", align: d = "start", numberOfMonths: p = 2, "aria-label": m }) {
|
|
29449
29449
|
let h = (/* @__PURE__ */ new Date()).getFullYear(), g = new Date(h - 10, 0), _ = new Date(h + 10, 11), v = z(), y = e ?? v, [b, x] = V(!1), S = lK(t?.from, fK), C = lK(t?.to, pK);
|
|
29450
29450
|
function w(e) {
|
|
29451
29451
|
if (!e) {
|
|
@@ -29489,12 +29489,12 @@ function mK({ id: e, value: t, onChange: n, placeholder: r = "Pick a date and ti
|
|
|
29489
29489
|
"aria-expanded": b,
|
|
29490
29490
|
"aria-label": m,
|
|
29491
29491
|
className: Y("w-full min-w-[22rem] justify-between font-normal", !(t?.from || t?.to) && "text-muted-foreground", l),
|
|
29492
|
-
children: [D(), /* @__PURE__ */ W(
|
|
29492
|
+
children: [D(), /* @__PURE__ */ W(f, { "aria-hidden": "true" })]
|
|
29493
29493
|
})
|
|
29494
29494
|
}), /* @__PURE__ */ G(NR, {
|
|
29495
29495
|
className: "w-auto overflow-hidden p-0",
|
|
29496
29496
|
side: u,
|
|
29497
|
-
align:
|
|
29497
|
+
align: d,
|
|
29498
29498
|
children: [
|
|
29499
29499
|
/* @__PURE__ */ W(Pw, {
|
|
29500
29500
|
mode: "range",
|
|
@@ -29660,7 +29660,7 @@ function yK({ className: e, item: t, onRemove: n, ...r }) {
|
|
|
29660
29660
|
onClick: () => n(t.id),
|
|
29661
29661
|
"aria-label": `Remove ${t.file.name}`,
|
|
29662
29662
|
className: "text-muted-foreground",
|
|
29663
|
-
children: /* @__PURE__ */ W(
|
|
29663
|
+
children: /* @__PURE__ */ W(h, {})
|
|
29664
29664
|
}) }) : null
|
|
29665
29665
|
]
|
|
29666
29666
|
});
|
|
@@ -30479,17 +30479,17 @@ function eJ(e, t) {
|
|
|
30479
30479
|
//#endregion
|
|
30480
30480
|
//#region src/composed/JsonSchemaForm/fields/array/ArrayField.tsx
|
|
30481
30481
|
function tJ({ schema: e, name: t, depth: n }) {
|
|
30482
|
-
let { ctx: r, path: i, fields: a, append: o, remove: s, fieldState: c, isDisabled: l, atMin:
|
|
30483
|
-
function
|
|
30484
|
-
o(rJ(
|
|
30482
|
+
let { ctx: r, path: i, fields: a, append: o, remove: s, fieldState: c, isDisabled: l, atMin: u, atMax: d } = eJ(e, t), f = e.items, p = RK(e, t), m = e.gioConfig?.uiBorder === "full";
|
|
30483
|
+
function h() {
|
|
30484
|
+
o(rJ(f), { shouldFocus: !1 });
|
|
30485
30485
|
}
|
|
30486
30486
|
return /* @__PURE__ */ G($F, {
|
|
30487
30487
|
"aria-required": e.isRequired || void 0,
|
|
30488
|
-
className:
|
|
30488
|
+
className: m ? "rounded-lg border border-border px-5 pt-2 pb-5" : void 0,
|
|
30489
30489
|
children: [
|
|
30490
30490
|
/* @__PURE__ */ W(eI, {
|
|
30491
|
-
className:
|
|
30492
|
-
children:
|
|
30491
|
+
className: m ? "px-2 text-base font-semibold" : "text-base font-semibold",
|
|
30492
|
+
children: p
|
|
30493
30493
|
}),
|
|
30494
30494
|
e.description && /* @__PURE__ */ W(sI, { children: e.description }),
|
|
30495
30495
|
/* @__PURE__ */ W("div", {
|
|
@@ -30497,10 +30497,10 @@ function tJ({ schema: e, name: t, depth: n }) {
|
|
|
30497
30497
|
children: a.map((e, t) => /* @__PURE__ */ W(nJ, {
|
|
30498
30498
|
index: t,
|
|
30499
30499
|
path: i,
|
|
30500
|
-
itemsSchema:
|
|
30500
|
+
itemsSchema: f,
|
|
30501
30501
|
depth: n,
|
|
30502
30502
|
disabled: l,
|
|
30503
|
-
canRemove: !l && !
|
|
30503
|
+
canRemove: !l && !u,
|
|
30504
30504
|
onRemove: () => s(t),
|
|
30505
30505
|
ctx: r
|
|
30506
30506
|
}, e.id))
|
|
@@ -30511,16 +30511,16 @@ function tJ({ schema: e, name: t, depth: n }) {
|
|
|
30511
30511
|
type: "button",
|
|
30512
30512
|
variant: "outline",
|
|
30513
30513
|
size: "sm",
|
|
30514
|
-
disabled: l ||
|
|
30515
|
-
onClick:
|
|
30516
|
-
children: [/* @__PURE__ */ W(
|
|
30514
|
+
disabled: l || d,
|
|
30515
|
+
onClick: h,
|
|
30516
|
+
children: [/* @__PURE__ */ W(O, { "aria-hidden": "true" }), "Add"]
|
|
30517
30517
|
})
|
|
30518
30518
|
}),
|
|
30519
30519
|
/* @__PURE__ */ W(lI, { errors: FK(c.error) })
|
|
30520
30520
|
]
|
|
30521
30521
|
});
|
|
30522
30522
|
}
|
|
30523
|
-
function nJ({ index: e, path: t, itemsSchema: n, depth: r, disabled: i, canRemove: a, onRemove:
|
|
30523
|
+
function nJ({ index: e, path: t, itemsSchema: n, depth: r, disabled: i, canRemove: a, onRemove: o, ctx: c }) {
|
|
30524
30524
|
let l = `${t}.${e}`;
|
|
30525
30525
|
return /* @__PURE__ */ G(Ww, {
|
|
30526
30526
|
defaultOpen: !0,
|
|
@@ -30533,7 +30533,7 @@ function nJ({ index: e, path: t, itemsSchema: n, depth: r, disabled: i, canRemov
|
|
|
30533
30533
|
type: "button",
|
|
30534
30534
|
className: "group/array-item-trigger flex flex-1 items-center gap-2 px-1 py-2 text-left text-sm font-medium outline-none focus-visible:ring-2 focus-visible:ring-ring/50",
|
|
30535
30535
|
"aria-label": `Toggle item ${e + 1}`,
|
|
30536
|
-
children: [/* @__PURE__ */ W(
|
|
30536
|
+
children: [/* @__PURE__ */ W(s, {
|
|
30537
30537
|
"aria-hidden": "true",
|
|
30538
30538
|
className: "size-4 text-muted-foreground transition-transform duration-150 group-data-[state=closed]/array-item-trigger:-rotate-90"
|
|
30539
30539
|
}), /* @__PURE__ */ G("span", { children: ["Item ", e + 1] })]
|
|
@@ -30544,8 +30544,8 @@ function nJ({ index: e, path: t, itemsSchema: n, depth: r, disabled: i, canRemov
|
|
|
30544
30544
|
size: "icon-xs",
|
|
30545
30545
|
disabled: !a,
|
|
30546
30546
|
"aria-label": `Remove item ${e + 1}`,
|
|
30547
|
-
onClick:
|
|
30548
|
-
children: /* @__PURE__ */ W(
|
|
30547
|
+
onClick: o,
|
|
30548
|
+
children: /* @__PURE__ */ W(h, { "aria-hidden": "true" })
|
|
30549
30549
|
})]
|
|
30550
30550
|
}), /* @__PURE__ */ W(Kw, { children: /* @__PURE__ */ W("div", {
|
|
30551
30551
|
className: "pt-2 pb-4 pl-6",
|
|
@@ -30571,10 +30571,10 @@ function rJ(e) {
|
|
|
30571
30571
|
//#endregion
|
|
30572
30572
|
//#region src/composed/JsonSchemaForm/fields/array/HeadersArrayField.tsx
|
|
30573
30573
|
function iJ({ schema: e, name: t }) {
|
|
30574
|
-
let { path: n, fields: r, append: i, remove: a, fieldState: o, isDisabled: s, atMin: c, atMax: l } = eJ(e, t),
|
|
30575
|
-
function
|
|
30574
|
+
let { path: n, fields: r, append: i, remove: a, fieldState: o, isDisabled: s, atMin: c, atMax: l } = eJ(e, t), u = e.items, d = u && !Array.isArray(u) ? u.properties ?? {} : {}, f = Object.keys(d), p = RK(e, t);
|
|
30575
|
+
function m() {
|
|
30576
30576
|
let e = {};
|
|
30577
|
-
for (let t of
|
|
30577
|
+
for (let t of f) e[t] = zK(d[t]);
|
|
30578
30578
|
i(e, { shouldFocus: !1 });
|
|
30579
30579
|
}
|
|
30580
30580
|
return /* @__PURE__ */ G($F, {
|
|
@@ -30582,22 +30582,22 @@ function iJ({ schema: e, name: t }) {
|
|
|
30582
30582
|
children: [
|
|
30583
30583
|
/* @__PURE__ */ W(eI, {
|
|
30584
30584
|
className: "text-base font-semibold",
|
|
30585
|
-
children:
|
|
30585
|
+
children: p
|
|
30586
30586
|
}),
|
|
30587
30587
|
e.description && /* @__PURE__ */ W(sI, { children: e.description }),
|
|
30588
30588
|
/* @__PURE__ */ W("div", {
|
|
30589
30589
|
className: "overflow-hidden rounded-lg border",
|
|
30590
|
-
children: /* @__PURE__ */ G(OH, { children: [/* @__PURE__ */ W(kH, { children: /* @__PURE__ */ G(MH, { children: [
|
|
30590
|
+
children: /* @__PURE__ */ G(OH, { children: [/* @__PURE__ */ W(kH, { children: /* @__PURE__ */ G(MH, { children: [f.map((e) => /* @__PURE__ */ W(NH, {
|
|
30591
30591
|
scope: "col",
|
|
30592
|
-
children: sJ(
|
|
30592
|
+
children: sJ(d[e], e)
|
|
30593
30593
|
}, e)), /* @__PURE__ */ W(NH, {
|
|
30594
30594
|
"aria-hidden": "true",
|
|
30595
30595
|
className: "w-px"
|
|
30596
30596
|
})] }) }), /* @__PURE__ */ W(AH, { children: r.map((e, t) => /* @__PURE__ */ W(aJ, {
|
|
30597
30597
|
rowIndex: t,
|
|
30598
30598
|
rowPath: `${n}.${t}`,
|
|
30599
|
-
columnKeys:
|
|
30600
|
-
itemProperties:
|
|
30599
|
+
columnKeys: f,
|
|
30600
|
+
itemProperties: d,
|
|
30601
30601
|
disabled: s,
|
|
30602
30602
|
canRemove: !s && !c,
|
|
30603
30603
|
onRemove: () => a(t)
|
|
@@ -30608,8 +30608,8 @@ function iJ({ schema: e, name: t }) {
|
|
|
30608
30608
|
variant: "outline",
|
|
30609
30609
|
size: "sm",
|
|
30610
30610
|
disabled: s || l,
|
|
30611
|
-
onClick:
|
|
30612
|
-
children: [/* @__PURE__ */ W(
|
|
30611
|
+
onClick: m,
|
|
30612
|
+
children: [/* @__PURE__ */ W(O, { "aria-hidden": "true" }), "Add"]
|
|
30613
30613
|
}) }),
|
|
30614
30614
|
/* @__PURE__ */ W(lI, { errors: FK(o.error) })
|
|
30615
30615
|
]
|
|
@@ -30631,7 +30631,7 @@ function aJ({ rowIndex: e, rowPath: t, columnKeys: n, itemProperties: r, disable
|
|
|
30631
30631
|
disabled: !a,
|
|
30632
30632
|
"aria-label": `Remove row ${e + 1}`,
|
|
30633
30633
|
onClick: o,
|
|
30634
|
-
children: /* @__PURE__ */ W(
|
|
30634
|
+
children: /* @__PURE__ */ W(h, { "aria-hidden": "true" })
|
|
30635
30635
|
})
|
|
30636
30636
|
})] });
|
|
30637
30637
|
}
|
|
@@ -30998,7 +30998,7 @@ function FJ({ schema: e, name: t }) {
|
|
|
30998
30998
|
let { control: n, basePath: r, disabled: i } = PK(), a = t ? r ? `${r}.${t}` : t : r, { field: o, fieldState: s } = vq({
|
|
30999
30999
|
control: n,
|
|
31000
31000
|
name: a
|
|
31001
|
-
}), [c,
|
|
31001
|
+
}), [c, l] = V(!1), d = RK(e, t), f = i || e.readOnly === !0, p = s.invalid, h = {
|
|
31002
31002
|
id: a,
|
|
31003
31003
|
value: typeof o.value == "string" ? o.value : "",
|
|
31004
31004
|
onChange: o.onChange,
|
|
@@ -31016,22 +31016,22 @@ function FJ({ schema: e, name: t }) {
|
|
|
31016
31016
|
htmlFor: a,
|
|
31017
31017
|
children: d
|
|
31018
31018
|
}),
|
|
31019
|
-
e.format === "text" ? /* @__PURE__ */ W(rM, { ...
|
|
31020
|
-
...
|
|
31019
|
+
e.format === "text" ? /* @__PURE__ */ W(rM, { ...h }) : e.format === "password" ? /* @__PURE__ */ G(iM, { children: [/* @__PURE__ */ W(uM, {
|
|
31020
|
+
...h,
|
|
31021
31021
|
type: c ? "text" : "password",
|
|
31022
31022
|
pattern: e.pattern
|
|
31023
31023
|
}), /* @__PURE__ */ W(oM, {
|
|
31024
31024
|
align: "inline-end",
|
|
31025
31025
|
children: /* @__PURE__ */ W(cM, {
|
|
31026
31026
|
size: "icon-xs",
|
|
31027
|
-
onClick: () =>
|
|
31027
|
+
onClick: () => l((e) => !e),
|
|
31028
31028
|
"aria-label": c ? "Hide password" : "Show password",
|
|
31029
31029
|
"aria-pressed": c,
|
|
31030
31030
|
disabled: f,
|
|
31031
|
-
children: W(c ?
|
|
31031
|
+
children: W(c ? u : m, { "aria-hidden": "true" })
|
|
31032
31032
|
})
|
|
31033
31033
|
})] }) : /* @__PURE__ */ W(nM, {
|
|
31034
|
-
...
|
|
31034
|
+
...h,
|
|
31035
31035
|
type: "text",
|
|
31036
31036
|
pattern: e.pattern
|
|
31037
31037
|
}),
|