@nar-bus/ui-kit 1.23.0 → 1.24.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/index.js +150 -150
- package/dist/organisms/Sheet.d.ts +14 -4
- package/dist/organisms/Sheet.d.ts.map +1 -1
- package/dist/templates/ListPageLayout.d.ts.map +1 -1
- package/dist/theme.css +1 -1
- package/dist/ui-kit.css +1 -1
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as r, jsxs as v, Fragment as be } from "react/jsx-runtime";
|
|
2
2
|
import { c as Q, a as m, L as Pr, B as se } from "./Button-BN_yX87x.js";
|
|
3
3
|
import { initReactI18next as za, useTranslation as ie } from "react-i18next";
|
|
4
|
-
import { createContext as Wt, useState as
|
|
5
|
-
import { createPortal as
|
|
6
|
-
import { flexRender as Br, useReactTable as Oa, getFilteredRowModel as
|
|
4
|
+
import { createContext as Wt, useState as F, useEffect as J, useCallback as $, useMemo as ke, useContext as Xt, useSyncExternalStore as Ra, forwardRef as re, useRef as _, useId as ye, useLayoutEffect as _e, isValidElement as La, cloneElement as Pa, Fragment as Ba } from "react";
|
|
5
|
+
import { createPortal as Ve } from "react-dom";
|
|
6
|
+
import { flexRender as Br, useReactTable as Oa, getFilteredRowModel as Va, getSortedRowModel as Fa, getCoreRowModel as ja } from "@tanstack/react-table";
|
|
7
7
|
import { useVirtualizer as Or } from "@tanstack/react-virtual";
|
|
8
|
-
import { format as we, formatDistanceToNow as Ha, startOfMonth as xt, endOfMonth as Bt, startOfWeek as lt, endOfWeek as It, addDays as ze, isSameDay as Ie, subMonths as Qe, addMonths as St, isToday as
|
|
8
|
+
import { format as we, formatDistanceToNow as Ha, startOfMonth as xt, endOfMonth as Bt, startOfWeek as lt, endOfWeek as It, addDays as ze, isSameDay as Ie, subMonths as Qe, addMonths as St, isToday as Vr, isSameMonth as Dt, startOfDay as je, endOfDay as Te, subDays as at, startOfYear as cr, endOfYear as Wa, subYears as dr } from "date-fns";
|
|
9
9
|
import { Toaster as Xa, toast as Ue } from "sonner";
|
|
10
10
|
import { useEditor as _a, EditorContent as Ua } from "@tiptap/react";
|
|
11
11
|
import qa from "@tiptap/starter-kit";
|
|
@@ -14,7 +14,7 @@ import Ka from "@tiptap/extension-placeholder";
|
|
|
14
14
|
import nt from "i18next";
|
|
15
15
|
import { e as ur, t as mr } from "./resources-CoEb9GVG.js";
|
|
16
16
|
import { r as wd, u as kd } from "./resources-CoEb9GVG.js";
|
|
17
|
-
const
|
|
17
|
+
const Fr = Wt(null), jr = "lena-theme", Hr = "lena-density", Ot = "lena-motion", vr = "dark", fr = "comfortable";
|
|
18
18
|
function Ja() {
|
|
19
19
|
if (typeof window > "u") return vr;
|
|
20
20
|
const e = localStorage.getItem(jr);
|
|
@@ -40,7 +40,7 @@ function en(e) {
|
|
|
40
40
|
document.documentElement.dataset.motion = e;
|
|
41
41
|
}
|
|
42
42
|
function Ec({ children: e, defaultTheme: t }) {
|
|
43
|
-
const [a, n] =
|
|
43
|
+
const [a, n] = F(() => t ?? Ja()), [o, s] = F(() => Za()), [i, l] = F(() => Ga());
|
|
44
44
|
J(() => {
|
|
45
45
|
Ya(a);
|
|
46
46
|
}, [a]), J(() => {
|
|
@@ -67,10 +67,10 @@ function Ec({ children: e, defaultTheme: t }) {
|
|
|
67
67
|
() => ({ theme: a, density: o, motion: i, setTheme: d, setDensity: c, setMotion: u, toggleTheme: f }),
|
|
68
68
|
[a, o, i, d, c, u, f]
|
|
69
69
|
);
|
|
70
|
-
return /* @__PURE__ */ r(
|
|
70
|
+
return /* @__PURE__ */ r(Fr.Provider, { value: h, children: e });
|
|
71
71
|
}
|
|
72
72
|
function Ic() {
|
|
73
|
-
const e = Xt(
|
|
73
|
+
const e = Xt(Fr);
|
|
74
74
|
if (!e) throw new Error("useTheme must be used within ThemeProvider");
|
|
75
75
|
return e;
|
|
76
76
|
}
|
|
@@ -599,12 +599,12 @@ const nn = {
|
|
|
599
599
|
long: "HH:mm:ss z",
|
|
600
600
|
medium: "HH:mm:ss",
|
|
601
601
|
short: "HH:mm"
|
|
602
|
-
},
|
|
602
|
+
}, Vn = {
|
|
603
603
|
full: "{{date}} 'saat' {{time}}",
|
|
604
604
|
long: "{{date}} 'saat' {{time}}",
|
|
605
605
|
medium: "{{date}}, {{time}}",
|
|
606
606
|
short: "{{date}}, {{time}}"
|
|
607
|
-
},
|
|
607
|
+
}, Fn = {
|
|
608
608
|
date: Ke({
|
|
609
609
|
formats: Bn,
|
|
610
610
|
defaultWidth: "full"
|
|
@@ -614,7 +614,7 @@ const nn = {
|
|
|
614
614
|
defaultWidth: "full"
|
|
615
615
|
}),
|
|
616
616
|
dateTime: Ke({
|
|
617
|
-
formats:
|
|
617
|
+
formats: Vn,
|
|
618
618
|
defaultWidth: "full"
|
|
619
619
|
})
|
|
620
620
|
}, jn = {
|
|
@@ -887,7 +887,7 @@ const nn = {
|
|
|
887
887
|
}, Ut = {
|
|
888
888
|
code: "tr",
|
|
889
889
|
formatDistance: Pn,
|
|
890
|
-
formatLong:
|
|
890
|
+
formatLong: Fn,
|
|
891
891
|
formatRelative: Hn,
|
|
892
892
|
localize: Jn,
|
|
893
893
|
match: lo,
|
|
@@ -948,14 +948,14 @@ function Lc(e, t = "tr") {
|
|
|
948
948
|
return o === 0 ? `${n} ${a.sa}` : `${n} ${a.sa} ${o} ${a.dk}`;
|
|
949
949
|
}
|
|
950
950
|
function _r(e, t = 300) {
|
|
951
|
-
const [a, n] =
|
|
951
|
+
const [a, n] = F(e);
|
|
952
952
|
return J(() => {
|
|
953
953
|
const o = setTimeout(() => n(e), t);
|
|
954
954
|
return () => clearTimeout(o);
|
|
955
955
|
}, [e, t]), a;
|
|
956
956
|
}
|
|
957
957
|
function ho(e = 2e3) {
|
|
958
|
-
const [t, a] =
|
|
958
|
+
const [t, a] = F(!1), n = $(
|
|
959
959
|
async (o) => {
|
|
960
960
|
try {
|
|
961
961
|
await navigator.clipboard.writeText(o), a(!0), setTimeout(() => a(!1), e);
|
|
@@ -968,7 +968,7 @@ function ho(e = 2e3) {
|
|
|
968
968
|
return [t, n];
|
|
969
969
|
}
|
|
970
970
|
function qt(e) {
|
|
971
|
-
const [t, a] =
|
|
971
|
+
const [t, a] = F(() => typeof window > "u" ? !1 : window.matchMedia(e).matches);
|
|
972
972
|
return J(() => {
|
|
973
973
|
const n = window.matchMedia(e), o = (s) => a(s.matches);
|
|
974
974
|
return n.addEventListener("change", o), a(n.matches), () => n.removeEventListener("change", o);
|
|
@@ -983,8 +983,8 @@ function Bc() {
|
|
|
983
983
|
function Oc() {
|
|
984
984
|
return qt("(min-width: 1280px)");
|
|
985
985
|
}
|
|
986
|
-
function
|
|
987
|
-
const { initialPageSize: t = 50, initialSorting: a = [] } = e, [n, o] =
|
|
986
|
+
function Vc(e = {}) {
|
|
987
|
+
const { initialPageSize: t = 50, initialSorting: a = [] } = e, [n, o] = F(a), [s, i] = F({ pageIndex: 0, pageSize: t }), [l, d] = F([]), [c, u] = F({}), [f, h] = F(""), g = $(() => u({}), []), w = $(() => {
|
|
988
988
|
d([]), h("");
|
|
989
989
|
}, []), p = Object.keys(c).length;
|
|
990
990
|
return {
|
|
@@ -1037,7 +1037,7 @@ function go() {
|
|
|
1037
1037
|
const e = ut();
|
|
1038
1038
|
e.snapshot = { items: [] }, Ur();
|
|
1039
1039
|
}
|
|
1040
|
-
function
|
|
1040
|
+
function Fc() {
|
|
1041
1041
|
return Ra(bo, pr, pr);
|
|
1042
1042
|
}
|
|
1043
1043
|
function Qt(e, t) {
|
|
@@ -1156,17 +1156,17 @@ const Oo = [["path", { d: "m15 18-6-6 6-6", key: "1wnfg3" }]], Kt = Q("ChevronLe
|
|
|
1156
1156
|
* This source code is licensed under the ISC license.
|
|
1157
1157
|
* See the LICENSE file in the root directory of this source tree.
|
|
1158
1158
|
*/
|
|
1159
|
-
const
|
|
1159
|
+
const Vo = [["path", { d: "m9 18 6-6-6-6", key: "mthhwq" }]], Ge = Q("ChevronRight", Vo);
|
|
1160
1160
|
/**
|
|
1161
1161
|
* @license lucide-react v0.475.0 - ISC
|
|
1162
1162
|
*
|
|
1163
1163
|
* This source code is licensed under the ISC license.
|
|
1164
1164
|
* See the LICENSE file in the root directory of this source tree.
|
|
1165
1165
|
*/
|
|
1166
|
-
const
|
|
1166
|
+
const Fo = [
|
|
1167
1167
|
["path", { d: "m11 17-5-5 5-5", key: "13zhaf" }],
|
|
1168
1168
|
["path", { d: "m18 17-5-5 5-5", key: "h8a8et" }]
|
|
1169
|
-
], jo = Q("ChevronsLeft",
|
|
1169
|
+
], jo = Q("ChevronsLeft", Fo);
|
|
1170
1170
|
/**
|
|
1171
1171
|
* @license lucide-react v0.475.0 - ISC
|
|
1172
1172
|
*
|
|
@@ -1500,7 +1500,7 @@ const Rs = [
|
|
|
1500
1500
|
const Ps = [
|
|
1501
1501
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
|
|
1502
1502
|
["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
|
|
1503
|
-
],
|
|
1503
|
+
], Vt = Q("Search", Ps);
|
|
1504
1504
|
/**
|
|
1505
1505
|
* @license lucide-react v0.475.0 - ISC
|
|
1506
1506
|
*
|
|
@@ -1524,11 +1524,11 @@ const Bs = [
|
|
|
1524
1524
|
* This source code is licensed under the ISC license.
|
|
1525
1525
|
* See the LICENSE file in the root directory of this source tree.
|
|
1526
1526
|
*/
|
|
1527
|
-
const
|
|
1527
|
+
const Vs = [
|
|
1528
1528
|
["path", { d: "M16 4H9a3 3 0 0 0-2.83 4", key: "43sutm" }],
|
|
1529
1529
|
["path", { d: "M14 12a4 4 0 0 1 0 8H6", key: "nlfj13" }],
|
|
1530
1530
|
["line", { x1: "4", x2: "20", y1: "12", y2: "12", key: "1e0a9i" }]
|
|
1531
|
-
],
|
|
1531
|
+
], Fs = Q("Strikethrough", Vs);
|
|
1532
1532
|
/**
|
|
1533
1533
|
* @license lucide-react v0.475.0 - ISC
|
|
1534
1534
|
*
|
|
@@ -1627,7 +1627,7 @@ const Gs = [
|
|
|
1627
1627
|
disabled: c,
|
|
1628
1628
|
...u
|
|
1629
1629
|
}, f) => {
|
|
1630
|
-
const { t: h } = ie(), [g, w] =
|
|
1630
|
+
const { t: h } = ie(), [g, w] = F(!1), p = e === "password", x = e === "search", k = e === "number", b = p && g ? "text" : e, A = x ? Vt : a, N = i === "sm" ? 14 : 16, S = d !== void 0 && d !== "", y = u["aria-invalid"] ?? (t ? !0 : void 0);
|
|
1631
1631
|
return /* @__PURE__ */ v(
|
|
1632
1632
|
"div",
|
|
1633
1633
|
{
|
|
@@ -1694,7 +1694,7 @@ function ei({
|
|
|
1694
1694
|
onChange: o,
|
|
1695
1695
|
panelRef: s
|
|
1696
1696
|
}) {
|
|
1697
|
-
const [i, l] =
|
|
1697
|
+
const [i, l] = F(!1), [d, c] = F(""), [u, f] = F(-1), h = _(null), g = _(null), w = _({ buffer: "", stamp: 0 }), p = ye(), x = (z) => n && z ? e.filter(
|
|
1698
1698
|
(j) => j.label.toLowerCase().includes(z.toLowerCase())
|
|
1699
1699
|
) : e, k = x(d), b = (z) => `${p}-option-${z}`, A = (z) => z.findIndex((j) => !j.disabled), N = (z, j) => {
|
|
1700
1700
|
var C;
|
|
@@ -1839,7 +1839,7 @@ function Gt({
|
|
|
1839
1839
|
clampToContentWidth: s = !1,
|
|
1840
1840
|
gap: i = 4
|
|
1841
1841
|
}) {
|
|
1842
|
-
const [l, d] =
|
|
1842
|
+
const [l, d] = F(hr), c = $(() => {
|
|
1843
1843
|
if (typeof window > "u") return;
|
|
1844
1844
|
const u = t.current, f = a.current;
|
|
1845
1845
|
if (!u || !f) return;
|
|
@@ -1988,7 +1988,7 @@ const zt = re(
|
|
|
1988
1988
|
}
|
|
1989
1989
|
),
|
|
1990
1990
|
c && /* @__PURE__ */ r("span", { className: "input-console-baseline", "aria-hidden": !0 }),
|
|
1991
|
-
b &&
|
|
1991
|
+
b && Ve(
|
|
1992
1992
|
// Options panel — matte-glass console readout (--select-panel-* theme
|
|
1993
1993
|
// family). NB-POPOVER-01: portaled to document.body + fixed-positioned
|
|
1994
1994
|
// via useAnchoredPanel (width/maxHeight from the trigger measurement)
|
|
@@ -2093,7 +2093,7 @@ const zt = re(
|
|
|
2093
2093
|
}
|
|
2094
2094
|
);
|
|
2095
2095
|
zt.displayName = "Select";
|
|
2096
|
-
const ri = "has-[:focus-visible]:[box-shadow:0_0_0_1px_var(--color-primary),0_0_0_4px_color-mix(in_oklab,var(--color-primary)_25%,transparent),0_2px_14px_-2px_color-mix(in_oklab,var(--color-primary)_55%,transparent)]",
|
|
2096
|
+
const ri = "has-[:focus-visible]:[box-shadow:0_0_0_1px_var(--color-primary),0_0_0_4px_color-mix(in_oklab,var(--color-primary)_25%,transparent),0_2px_14px_-2px_color-mix(in_oklab,var(--color-primary)_55%,transparent)]", Ft = re(
|
|
2097
2097
|
({ label: e, indeterminate: t, checked: a, disabled: n, className: o, ...s }, i) => /* @__PURE__ */ v(
|
|
2098
2098
|
"label",
|
|
2099
2099
|
{
|
|
@@ -2136,7 +2136,7 @@ const ri = "has-[:focus-visible]:[box-shadow:0_0_0_1px_var(--color-primary),0_0_
|
|
|
2136
2136
|
}
|
|
2137
2137
|
)
|
|
2138
2138
|
);
|
|
2139
|
-
|
|
2139
|
+
Ft.displayName = "Checkbox";
|
|
2140
2140
|
const ai = "has-[:focus-visible]:[box-shadow:0_0_0_1px_var(--color-primary),0_0_0_4px_color-mix(in_oklab,var(--color-primary)_25%,transparent),0_2px_14px_-2px_color-mix(in_oklab,var(--color-primary)_55%,transparent)]", Gr = re(
|
|
2141
2141
|
({
|
|
2142
2142
|
options: e,
|
|
@@ -2348,7 +2348,7 @@ const ci = {
|
|
|
2348
2348
|
lg: "w-10 h-10 text-[length:var(--font-md)]"
|
|
2349
2349
|
}, Yr = re(
|
|
2350
2350
|
({ src: e, alt: t, fallback: a, size: n = "md", className: o, ...s }, i) => {
|
|
2351
|
-
const [l, d] =
|
|
2351
|
+
const [l, d] = F(!1), c = !e || l, u = a ?? (t ? t.split(" ").map((f) => f[0]).join("").slice(0, 2).toUpperCase() : "?");
|
|
2352
2352
|
return /* @__PURE__ */ r(
|
|
2353
2353
|
"div",
|
|
2354
2354
|
{
|
|
@@ -2657,7 +2657,7 @@ function ki(e, t, a, n, o = 8, s = 4) {
|
|
|
2657
2657
|
return i === "top" || i === "bottom" ? c = Math.max(s, Math.min(c, n.width - t.width - s)) : d = Math.max(s, Math.min(d, n.height - t.height - s)), { top: d, left: c, side: i };
|
|
2658
2658
|
}
|
|
2659
2659
|
function ra({ content: e, children: t, side: a = "top", delay: n = 300, className: o }) {
|
|
2660
|
-
const [s, i] =
|
|
2660
|
+
const [s, i] = F(!1), [l, d] = F({ top: 0, left: 0 }), [c, u] = F(!1), f = _(null), h = _(null), g = _(void 0), w = _(void 0), p = () => {
|
|
2661
2661
|
g.current = setTimeout(() => {
|
|
2662
2662
|
i(!0);
|
|
2663
2663
|
}, n);
|
|
@@ -2696,7 +2696,7 @@ function ra({ content: e, children: t, side: a = "top", delay: n = 300, classNam
|
|
|
2696
2696
|
children: t
|
|
2697
2697
|
}
|
|
2698
2698
|
),
|
|
2699
|
-
s &&
|
|
2699
|
+
s && Ve(
|
|
2700
2700
|
/* @__PURE__ */ r(
|
|
2701
2701
|
"div",
|
|
2702
2702
|
{
|
|
@@ -3068,7 +3068,7 @@ function Xc({
|
|
|
3068
3068
|
] });
|
|
3069
3069
|
}
|
|
3070
3070
|
function _c({ value: e, onSearch: t, placeholder: a, delay: n = 300, className: o, inputSize: s }) {
|
|
3071
|
-
const { t: i } = ie(), [l, d] =
|
|
3071
|
+
const { t: i } = ie(), [l, d] = F(e ?? ""), c = _r(l, n);
|
|
3072
3072
|
J(() => {
|
|
3073
3073
|
t(c);
|
|
3074
3074
|
}, [c, t]), J(() => {
|
|
@@ -3146,7 +3146,7 @@ const Bi = {
|
|
|
3146
3146
|
function Oi(e) {
|
|
3147
3147
|
return e != null && Bi[e] || "default";
|
|
3148
3148
|
}
|
|
3149
|
-
const
|
|
3149
|
+
const Vi = {
|
|
3150
3150
|
INSTALLED: "success",
|
|
3151
3151
|
ONLINE: "success",
|
|
3152
3152
|
COMPLETED: "success",
|
|
@@ -3192,14 +3192,14 @@ function qc({
|
|
|
3192
3192
|
style: l,
|
|
3193
3193
|
...d
|
|
3194
3194
|
}) {
|
|
3195
|
-
const c = (e != null && e !== "" ? e : t) ?? "", f = Oi((a ?? n ??
|
|
3195
|
+
const c = (e != null && e !== "" ? e : t) ?? "", f = Oi((a ?? n ?? Vi)[c]), h = (o == null ? void 0 : o[c]) ?? c, g = {
|
|
3196
3196
|
paddingInline: "var(--status-badge-padding-x, var(--space-2))",
|
|
3197
3197
|
"--badge-dot-size": "var(--status-badge-dot-size, 6px)",
|
|
3198
3198
|
...l
|
|
3199
3199
|
};
|
|
3200
3200
|
return /* @__PURE__ */ r(Oe, { ...d, variant: f, dot: s, pulse: i, style: g, children: h });
|
|
3201
3201
|
}
|
|
3202
|
-
const
|
|
3202
|
+
const Fi = "border border-[var(--kpi-card-surface-border)] bg-[image:var(--kpi-card-aurora-wash),var(--kpi-card-surface-bg)]", ji = {
|
|
3203
3203
|
default: { chip: 34, icon: 17, valueFontSize: 21 },
|
|
3204
3204
|
compact: { chip: 28, icon: 14, valueFontSize: 17 }
|
|
3205
3205
|
}, wr = { lineHeight: 1.2, letterSpacing: "-0.015em" }, Hi = { letterSpacing: "0.08em" };
|
|
@@ -3265,7 +3265,7 @@ function Qc({
|
|
|
3265
3265
|
"relative overflow-hidden",
|
|
3266
3266
|
"rounded-[var(--kpi-card-radius,var(--radius-lg))]",
|
|
3267
3267
|
w ? "p-[var(--kpi-card-padding-compact,var(--space-3))]" : "p-[var(--kpi-card-padding,var(--space-4))]",
|
|
3268
|
-
|
|
3268
|
+
Fi,
|
|
3269
3269
|
b && "cursor-pointer transition-shadow hover:shadow-[var(--elevation-2)] focus-visible:[box-shadow:0_0_0_1px_var(--color-border-focus),0_0_0_4px_color-mix(in_oklab,var(--color-border-focus)_30%,transparent)] focus-visible:outline-none",
|
|
3270
3270
|
u && "cursor-not-allowed opacity-60",
|
|
3271
3271
|
l
|
|
@@ -3439,7 +3439,7 @@ function Ui({
|
|
|
3439
3439
|
} catch {
|
|
3440
3440
|
}
|
|
3441
3441
|
};
|
|
3442
|
-
}, [e]), e ?
|
|
3442
|
+
}, [e]), e ? Ve(
|
|
3443
3443
|
// z-10000 = the "modal-safe" tier (same as the DatePicker/Combobox anchored
|
|
3444
3444
|
// panels), deliberately ABOVE Dialog/Sheet's 9999: a confirm is raised BY an
|
|
3445
3445
|
// already-open modal surface — e.g. the discard guard inside `OrderCreateSheet`
|
|
@@ -3609,7 +3609,7 @@ function da({
|
|
|
3609
3609
|
"aria-required": w,
|
|
3610
3610
|
id: p
|
|
3611
3611
|
}) {
|
|
3612
|
-
const { t: x, i18n: k } = ie(), [b, A] =
|
|
3612
|
+
const { t: x, i18n: k } = ie(), [b, A] = F(!1), [N, S] = F(e ?? /* @__PURE__ */ new Date()), [y, T] = F(e ?? /* @__PURE__ */ new Date()), [P, B] = F("grid"), [L, O] = F(0), D = _(null), W = _(null), H = _(null), G = (k.resolvedLanguage ?? k.language ?? "").startsWith("tr"), K = G ? Ut : _t, de = G ? "dd.MM.yyyy" : "MM/dd/yyyy", z = h ?? (i ? !0 : void 0), j = z === !0 || z === "true", { style: C } = Gt({
|
|
3613
3613
|
open: b,
|
|
3614
3614
|
triggerRef: W,
|
|
3615
3615
|
panelRef: H,
|
|
@@ -3632,7 +3632,7 @@ function da({
|
|
|
3632
3632
|
let ge = X;
|
|
3633
3633
|
for (; ge <= ue; )
|
|
3634
3634
|
fe.push(ge), ge = ze(ge, 1);
|
|
3635
|
-
const xe = (E) => !!(n && E < je(n) || o && E > Te(o)),
|
|
3635
|
+
const xe = (E) => !!(n && E < je(n) || o && E > Te(o)), V = (E) => {
|
|
3636
3636
|
var q;
|
|
3637
3637
|
if (!xe(E)) {
|
|
3638
3638
|
if (c) {
|
|
@@ -3730,7 +3730,7 @@ function da({
|
|
|
3730
3730
|
break;
|
|
3731
3731
|
case "Enter":
|
|
3732
3732
|
case " ":
|
|
3733
|
-
E.preventDefault(),
|
|
3733
|
+
E.preventDefault(), V(y);
|
|
3734
3734
|
break;
|
|
3735
3735
|
case "Escape":
|
|
3736
3736
|
case "Tab":
|
|
@@ -3785,7 +3785,7 @@ function da({
|
|
|
3785
3785
|
}
|
|
3786
3786
|
),
|
|
3787
3787
|
/* @__PURE__ */ r("span", { className: "input-console-baseline", "aria-hidden": !0 }),
|
|
3788
|
-
b &&
|
|
3788
|
+
b && Ve(
|
|
3789
3789
|
/* @__PURE__ */ v(
|
|
3790
3790
|
"div",
|
|
3791
3791
|
{
|
|
@@ -3873,17 +3873,17 @@ function da({
|
|
|
3873
3873
|
/* @__PURE__ */ v("div", { className: "grid grid-cols-7 gap-[var(--space-0-5)] text-center", children: [
|
|
3874
3874
|
fe.slice(0, 7).map((E) => /* @__PURE__ */ r("span", { className: "py-1 text-[length:var(--font-xs)] text-[var(--color-text-muted)]", children: we(E, "EEEEEE", { locale: K }) }, E.toISOString())),
|
|
3875
3875
|
fe.map((E, q) => {
|
|
3876
|
-
const Y = e && Ie(E, e), Ee =
|
|
3876
|
+
const Y = e && Ie(E, e), Ee = Vr(E), Me = !Dt(E, N), Re = xe(E), Fe = Ie(E, y);
|
|
3877
3877
|
return /* @__PURE__ */ r(
|
|
3878
3878
|
"button",
|
|
3879
3879
|
{
|
|
3880
3880
|
type: "button",
|
|
3881
3881
|
"aria-disabled": Re || void 0,
|
|
3882
|
-
tabIndex:
|
|
3883
|
-
"data-focused":
|
|
3882
|
+
tabIndex: Fe ? 0 : -1,
|
|
3883
|
+
"data-focused": Fe ? "true" : void 0,
|
|
3884
3884
|
"aria-selected": Y ? !0 : void 0,
|
|
3885
3885
|
onClick: () => {
|
|
3886
|
-
B("grid"),
|
|
3886
|
+
B("grid"), V(E);
|
|
3887
3887
|
},
|
|
3888
3888
|
onFocus: () => {
|
|
3889
3889
|
B("grid"), he(E);
|
|
@@ -3957,7 +3957,7 @@ function Ji({
|
|
|
3957
3957
|
"aria-required": g,
|
|
3958
3958
|
id: w
|
|
3959
3959
|
}) {
|
|
3960
|
-
const { t: p, i18n: x } = ie(), [k, b] =
|
|
3960
|
+
const { t: p, i18n: x } = ie(), [k, b] = F(!1), [A, N] = F(e.start ?? /* @__PURE__ */ new Date()), [S, y] = F(e.start ?? /* @__PURE__ */ new Date()), [T, P] = F(null), [B, L] = F(null), [O, D] = F("grid"), [W, H] = F({ start: null, end: null }), [G, K] = F(0), [de, z] = F(0), j = _(null), C = _(null), M = _(null), U = (x.resolvedLanguage ?? x.language ?? "").startsWith("tr"), X = U ? Ut : _t, ue = U ? "dd.MM.yyyy" : "MM/dd/yyyy", fe = f ?? (c ? !0 : void 0), ge = fe === !0 || fe === "true", { style: xe } = Gt({
|
|
3961
3961
|
open: k,
|
|
3962
3962
|
triggerRef: C,
|
|
3963
3963
|
panelRef: M,
|
|
@@ -3981,7 +3981,7 @@ function Ji({
|
|
|
3981
3981
|
const I = O === "time" ? `[data-time-input="${de === 0 ? "start" : "end"}"]` : O === "presets" ? '[data-preset-focused="true"]' : '[data-focused="true"]';
|
|
3982
3982
|
(te = (me = M.current) == null ? void 0 : me.querySelector(I)) == null || te.focus();
|
|
3983
3983
|
}, [k, S, O, G, de]);
|
|
3984
|
-
const
|
|
3984
|
+
const V = xt(A), le = Bt(A), Z = lt(V, { locale: X }), ae = It(le, { locale: X }), R = [];
|
|
3985
3985
|
let oe = Z;
|
|
3986
3986
|
for (; oe <= ae; )
|
|
3987
3987
|
R.push(oe), oe = ze(oe, 1);
|
|
@@ -4044,7 +4044,7 @@ function Ji({
|
|
|
4044
4044
|
D("time"), z(0);
|
|
4045
4045
|
}
|
|
4046
4046
|
}
|
|
4047
|
-
),
|
|
4047
|
+
), Fe = /* @__PURE__ */ r(
|
|
4048
4048
|
Se,
|
|
4049
4049
|
{
|
|
4050
4050
|
type: "time",
|
|
@@ -4208,7 +4208,7 @@ function Ji({
|
|
|
4208
4208
|
}
|
|
4209
4209
|
),
|
|
4210
4210
|
/* @__PURE__ */ r("span", { className: "input-console-baseline", "aria-hidden": !0 }),
|
|
4211
|
-
k &&
|
|
4211
|
+
k && Ve(
|
|
4212
4212
|
/* @__PURE__ */ v(
|
|
4213
4213
|
"div",
|
|
4214
4214
|
{
|
|
@@ -4313,7 +4313,7 @@ function Ji({
|
|
|
4313
4313
|
children: [
|
|
4314
4314
|
R.slice(0, 7).map((I) => /* @__PURE__ */ r("span", { className: "py-1 text-[length:var(--font-xs)] text-[var(--color-text-muted)]", children: we(I, "EEEEEE", { locale: X }) }, I.toISOString())),
|
|
4315
4315
|
R.map((I, me) => {
|
|
4316
|
-
const te = !!ht && Ie(I, ht) || !!bt && Ie(I, bt), Ne = !!ht && !!bt && !te && I > ht && I < bt, De =
|
|
4316
|
+
const te = !!ht && Ie(I, ht) || !!bt && Ie(I, bt), Ne = !!ht && !!bt && !te && I > ht && I < bt, De = Vr(I), Ae = !Dt(I, A), Xe = pe(I), lr = Ie(I, S);
|
|
4317
4317
|
return /* @__PURE__ */ r(
|
|
4318
4318
|
"button",
|
|
4319
4319
|
{
|
|
@@ -4365,7 +4365,7 @@ function Ji({
|
|
|
4365
4365
|
] }),
|
|
4366
4366
|
/* @__PURE__ */ v("label", { className: "flex flex-col gap-[var(--space-1)] text-[length:var(--font-xs)] text-[var(--color-text-secondary)]", children: [
|
|
4367
4367
|
p("date.bitis_saati", { defaultValue: "Bitiş saati" }),
|
|
4368
|
-
|
|
4368
|
+
Fe
|
|
4369
4369
|
] })
|
|
4370
4370
|
]
|
|
4371
4371
|
}
|
|
@@ -4380,7 +4380,7 @@ function Ji({
|
|
|
4380
4380
|
/* @__PURE__ */ r("span", { className: "text-[length:var(--font-xs)] text-[var(--color-text-secondary)]", children: p("date.baslangic") }),
|
|
4381
4381
|
Re,
|
|
4382
4382
|
/* @__PURE__ */ r("span", { className: "text-[length:var(--font-xs)] text-[var(--color-text-secondary)]", children: p("date.bitis") }),
|
|
4383
|
-
|
|
4383
|
+
Fe
|
|
4384
4384
|
]
|
|
4385
4385
|
}
|
|
4386
4386
|
)
|
|
@@ -4475,7 +4475,7 @@ const Yi = re(
|
|
|
4475
4475
|
"aria-describedby": c,
|
|
4476
4476
|
...u
|
|
4477
4477
|
}, f) => {
|
|
4478
|
-
const { t: h } = ie(), g = a ?? Gi(h), [w, p] =
|
|
4478
|
+
const { t: h } = ie(), g = a ?? Gi(h), [w, p] = F(e.replace(/^#/, ""));
|
|
4479
4479
|
J(() => {
|
|
4480
4480
|
p(e.replace(/^#/, ""));
|
|
4481
4481
|
}, [e]);
|
|
@@ -4723,7 +4723,7 @@ function ol(e) {
|
|
|
4723
4723
|
className: "select-console-panel overflow-auto",
|
|
4724
4724
|
children: [
|
|
4725
4725
|
/* @__PURE__ */ v("div", { className: "flex items-center gap-[var(--space-1)] border-b border-[var(--color-border-subtle)] p-[var(--space-1)]", children: [
|
|
4726
|
-
/* @__PURE__ */ r(
|
|
4726
|
+
/* @__PURE__ */ r(Vt, { size: 14, "aria-hidden": "true", className: "shrink-0 text-[var(--color-text-muted)]" }),
|
|
4727
4727
|
/* @__PURE__ */ r(
|
|
4728
4728
|
"input",
|
|
4729
4729
|
{
|
|
@@ -4745,7 +4745,7 @@ function ol(e) {
|
|
|
4745
4745
|
e.loading ? /* @__PURE__ */ r("div", { className: "flex items-center justify-center py-[var(--space-4)]", children: /* @__PURE__ */ r(dt, { size: "sm" }) }) : e.displayOptions.length === 0 ? (
|
|
4746
4746
|
// Outcome B (STORY-202): inline empty state preserved — EmptyState molecule is too tall for 240px dropdown.
|
|
4747
4747
|
/* @__PURE__ */ v("div", { className: "flex flex-col items-center justify-center gap-[var(--space-1)] px-[var(--space-3)] py-[var(--space-4)]", children: [
|
|
4748
|
-
/* @__PURE__ */ r(
|
|
4748
|
+
/* @__PURE__ */ r(Vt, { size: 16, "aria-hidden": "true", className: "text-[var(--color-text-muted)]" }),
|
|
4749
4749
|
/* @__PURE__ */ r("span", { className: "text-[length:var(--font-sm)] text-[var(--color-text-muted)]", children: e.emptyLabel })
|
|
4750
4750
|
] })
|
|
4751
4751
|
) : e.displayOptions.map((n, o) => nl({
|
|
@@ -4778,7 +4778,7 @@ function sl({
|
|
|
4778
4778
|
creatable: f = !1,
|
|
4779
4779
|
createHint: h
|
|
4780
4780
|
}) {
|
|
4781
|
-
const { t: g } = ie(), w = ye(), [p, x] =
|
|
4781
|
+
const { t: g } = ie(), w = ye(), [p, x] = F(!1), [k, b] = F(""), [A, N] = F(0), [S, y] = F(null), T = _(null), P = _(null), B = _(null), L = _r(k, 300), O = $(() => {
|
|
4782
4782
|
if (!P.current) return null;
|
|
4783
4783
|
const C = P.current.getBoundingClientRect(), M = window.innerHeight - C.bottom, U = C.top, X = M < el && U > M, ue = X ? Math.min(Pt, U - 8) : Math.min(Pt, M - 8);
|
|
4784
4784
|
return { top: X ? C.top - Math.min(Pt, U) - 4 : C.bottom + 4, left: C.left, width: C.width, maxHeight: ue, openUp: X };
|
|
@@ -4883,7 +4883,7 @@ function sl({
|
|
|
4883
4883
|
}
|
|
4884
4884
|
),
|
|
4885
4885
|
/* @__PURE__ */ r("span", { className: "input-console-baseline", "aria-hidden": !0 }),
|
|
4886
|
-
p && S && typeof document < "u" &&
|
|
4886
|
+
p && S && typeof document < "u" && Ve(
|
|
4887
4887
|
/* @__PURE__ */ r(
|
|
4888
4888
|
ol,
|
|
4889
4889
|
{
|
|
@@ -5081,7 +5081,7 @@ const fl = re(
|
|
|
5081
5081
|
id: k,
|
|
5082
5082
|
"aria-label": b
|
|
5083
5083
|
}, A) => {
|
|
5084
|
-
const N = _(null), [S, y] =
|
|
5084
|
+
const N = _(null), [S, y] = F(!1), { t: T } = ie(), P = u ?? T("common.kaldir", { defaultValue: "Kaldır" }), B = i == null ? [] : Array.isArray(i) ? i : [i], O = (l ?? i !== void 0) && B.length > 0;
|
|
5085
5085
|
function D(M) {
|
|
5086
5086
|
N.current = M, typeof A == "function" ? A(M) : A && (A.current = M);
|
|
5087
5087
|
}
|
|
@@ -5378,7 +5378,7 @@ function $c({ open: e, onClose: t, title: a, description: n, children: o, footer
|
|
|
5378
5378
|
} catch {
|
|
5379
5379
|
}
|
|
5380
5380
|
};
|
|
5381
|
-
}, [e]), e ?
|
|
5381
|
+
}, [e]), e ? Ve(
|
|
5382
5382
|
/* @__PURE__ */ v("div", { className: "fixed inset-0 z-[9998] flex items-center justify-center", children: [
|
|
5383
5383
|
/* @__PURE__ */ r("div", { className: "absolute inset-0 bg-black/50 backdrop-blur-sm", onClick: t }),
|
|
5384
5384
|
/* @__PURE__ */ v(
|
|
@@ -5454,7 +5454,7 @@ function ed({
|
|
|
5454
5454
|
onInteractOutside: x,
|
|
5455
5455
|
onEscapeKeyDown: k
|
|
5456
5456
|
}) {
|
|
5457
|
-
const { t: b } = ie(), A = ye(), N = ye(), S = _(null), y = _(null), [T, P] =
|
|
5457
|
+
const { t: b } = ie(), A = ye(), N = ye(), S = _(null), y = _(null), [T, P] = F(!1), B = n ?? (a === "left" ? "280px" : "30vw"), L = _({ onClose: t, onEscapeKeyDown: k, closeOnEscape: p });
|
|
5458
5458
|
if (L.current = { onClose: t, onEscapeKeyDown: k, closeOnEscape: p }, J(() => {
|
|
5459
5459
|
if (!e) return;
|
|
5460
5460
|
y.current = document.activeElement;
|
|
@@ -5504,7 +5504,7 @@ function ed({
|
|
|
5504
5504
|
children: /* @__PURE__ */ r(Be, { size: 16, "aria-hidden": "true" })
|
|
5505
5505
|
}
|
|
5506
5506
|
);
|
|
5507
|
-
return
|
|
5507
|
+
return Ve(
|
|
5508
5508
|
/* @__PURE__ */ v(be, { children: [
|
|
5509
5509
|
/* @__PURE__ */ r(
|
|
5510
5510
|
"div",
|
|
@@ -5599,7 +5599,7 @@ function gl(e, t) {
|
|
|
5599
5599
|
}
|
|
5600
5600
|
function ma({ tabs: e, defaultTab: t, activeTab: a, onTabChange: n, className: o }) {
|
|
5601
5601
|
var x, k;
|
|
5602
|
-
const [s, i] =
|
|
5602
|
+
const [s, i] = F(t ?? ((x = e[0]) == null ? void 0 : x.key) ?? ""), l = a ?? s, d = ye(), c = _([]), u = (b) => {
|
|
5603
5603
|
a || i(b), n == null || n(b);
|
|
5604
5604
|
}, f = (k = e.find((b) => b.key === l)) == null ? void 0 : k.content, h = (b) => `${d}-tab-${b.replace(/\s+/g, "_")}`, g = (b) => `${d}-tabpanel-${b.replace(/\s+/g, "_")}`, w = h(l), p = g(l);
|
|
5605
5605
|
return /* @__PURE__ */ v("div", { className: m("flex flex-col", o), children: [
|
|
@@ -5722,7 +5722,7 @@ function td({
|
|
|
5722
5722
|
className: d
|
|
5723
5723
|
}) {
|
|
5724
5724
|
var L, O;
|
|
5725
|
-
const { t: c } = ie(), u = ye(), f = a ?? ((L = e.find((D) => !D.disabled)) == null ? void 0 : L.key) ?? ((O = e[0]) == null ? void 0 : O.key) ?? "", h = a ?? f, [g, w] =
|
|
5725
|
+
const { t: c } = ie(), u = ye(), f = a ?? ((L = e.find((D) => !D.disabled)) == null ? void 0 : L.key) ?? ((O = e[0]) == null ? void 0 : O.key) ?? "", h = a ?? f, [g, w] = F(f), p = t !== void 0, x = p ? t : g, k = _({}), b = xl(s), A = _(!1), N = $(
|
|
5726
5726
|
(D) => {
|
|
5727
5727
|
D !== x && (p || w(D), n == null || n(D));
|
|
5728
5728
|
},
|
|
@@ -5847,7 +5847,7 @@ function td({
|
|
|
5847
5847
|
] }) });
|
|
5848
5848
|
}
|
|
5849
5849
|
function wl({ label: e, items: t, activeKey: a, onSelect: n, resolveCount: o }) {
|
|
5850
|
-
const [s, i] =
|
|
5850
|
+
const [s, i] = F(!1), l = _(null), d = t.some((c) => c.key === a);
|
|
5851
5851
|
return J(() => {
|
|
5852
5852
|
if (!s) return;
|
|
5853
5853
|
const c = (f) => {
|
|
@@ -5977,7 +5977,7 @@ function ba({
|
|
|
5977
5977
|
onOpenChange: s,
|
|
5978
5978
|
className: i
|
|
5979
5979
|
}) {
|
|
5980
|
-
const [l, d] =
|
|
5980
|
+
const [l, d] = F(!1), c = o ?? l, u = _(null), f = _(null), h = _(null), [g, w] = F(null), p = (x) => {
|
|
5981
5981
|
if (!x) {
|
|
5982
5982
|
w(null);
|
|
5983
5983
|
const k = h.current ?? u.current;
|
|
@@ -6047,7 +6047,7 @@ function ba({
|
|
|
6047
6047
|
};
|
|
6048
6048
|
}, [c]), /* @__PURE__ */ v(be, { children: [
|
|
6049
6049
|
/* @__PURE__ */ r("div", { ref: u, className: "inline-flex", onClick: () => p(!c), children: e }),
|
|
6050
|
-
c &&
|
|
6050
|
+
c && Ve(
|
|
6051
6051
|
/* @__PURE__ */ r(
|
|
6052
6052
|
"div",
|
|
6053
6053
|
{
|
|
@@ -6099,29 +6099,29 @@ function Sl({
|
|
|
6099
6099
|
gap: k = Nl,
|
|
6100
6100
|
className: b
|
|
6101
6101
|
}) {
|
|
6102
|
-
const [A, N] =
|
|
6102
|
+
const [A, N] = F(!1), [S, y] = F(-1), [T, P] = F({
|
|
6103
6103
|
top: 0,
|
|
6104
6104
|
left: 0,
|
|
6105
6105
|
width: x
|
|
6106
6106
|
}), B = _(null), L = _(null), O = _(null), D = _(null), W = ye(), H = a.trim().length > 0, G = A && (H || e.length > 0), K = ke(() => {
|
|
6107
|
-
const
|
|
6107
|
+
const V = /* @__PURE__ */ new Map(), le = [];
|
|
6108
6108
|
for (const ae of e) {
|
|
6109
6109
|
const R = ae.group;
|
|
6110
|
-
|
|
6110
|
+
V.has(R) || (V.set(R, []), le.push(R)), V.get(R).push(ae);
|
|
6111
6111
|
}
|
|
6112
6112
|
let Z = le;
|
|
6113
6113
|
if (s && s.length > 0) {
|
|
6114
|
-
const ae = s.filter((oe) =>
|
|
6114
|
+
const ae = s.filter((oe) => V.has(oe)), R = le.filter(
|
|
6115
6115
|
(oe) => oe === void 0 || !s.includes(oe)
|
|
6116
6116
|
);
|
|
6117
6117
|
Z = [...ae, ...R];
|
|
6118
6118
|
}
|
|
6119
|
-
return Z.map((ae) => ({ group: ae, items:
|
|
6119
|
+
return Z.map((ae) => ({ group: ae, items: V.get(ae) }));
|
|
6120
6120
|
}, [e, s]), de = ke(
|
|
6121
|
-
() => K.flatMap((
|
|
6121
|
+
() => K.flatMap((V) => V.items),
|
|
6122
6122
|
[K]
|
|
6123
6123
|
), z = ke(
|
|
6124
|
-
() => de.reduce((
|
|
6124
|
+
() => de.reduce((V, le, Z) => (le.disabled || V.push(Z), V), []),
|
|
6125
6125
|
[de]
|
|
6126
6126
|
);
|
|
6127
6127
|
J(() => {
|
|
@@ -6129,11 +6129,11 @@ function Sl({
|
|
|
6129
6129
|
}, [e]);
|
|
6130
6130
|
const j = $(() => {
|
|
6131
6131
|
if (!B.current) return;
|
|
6132
|
-
const
|
|
6132
|
+
const V = B.current.getBoundingClientRect();
|
|
6133
6133
|
P({
|
|
6134
|
-
top:
|
|
6135
|
-
left:
|
|
6136
|
-
width: Math.max(
|
|
6134
|
+
top: V.bottom + k,
|
|
6135
|
+
left: V.left,
|
|
6136
|
+
width: Math.max(V.width, x)
|
|
6137
6137
|
});
|
|
6138
6138
|
}, [k, x]);
|
|
6139
6139
|
_e(() => {
|
|
@@ -6142,58 +6142,58 @@ function Sl({
|
|
|
6142
6142
|
window.removeEventListener("resize", j), window.removeEventListener("scroll", j, !0);
|
|
6143
6143
|
};
|
|
6144
6144
|
}, [G, j]), J(() => {
|
|
6145
|
-
var
|
|
6146
|
-
S < 0 || !O.current || (le = (
|
|
6145
|
+
var V, le;
|
|
6146
|
+
S < 0 || !O.current || (le = (V = O.current.querySelector(`[data-index="${S}"]`)) == null ? void 0 : V.scrollIntoView) == null || le.call(V, { block: "nearest" });
|
|
6147
6147
|
}, [S]), J(() => {
|
|
6148
6148
|
if (!g) return;
|
|
6149
|
-
function
|
|
6149
|
+
function V(le) {
|
|
6150
6150
|
var Z;
|
|
6151
6151
|
(le.metaKey || le.ctrlKey) && le.key === "k" && (le.preventDefault(), (Z = L.current) == null || Z.focus());
|
|
6152
6152
|
}
|
|
6153
|
-
return document.addEventListener("keydown",
|
|
6153
|
+
return document.addEventListener("keydown", V), () => document.removeEventListener("keydown", V);
|
|
6154
6154
|
}, [g]), J(() => {
|
|
6155
|
-
function
|
|
6155
|
+
function V(le) {
|
|
6156
6156
|
var ae, R;
|
|
6157
6157
|
const Z = le.target;
|
|
6158
6158
|
!((ae = B.current) != null && ae.contains(Z)) && !((R = O.current) != null && R.contains(Z)) && N(!1);
|
|
6159
6159
|
}
|
|
6160
|
-
return document.addEventListener("mousedown",
|
|
6160
|
+
return document.addEventListener("mousedown", V), () => document.removeEventListener("mousedown", V);
|
|
6161
6161
|
}, []), J(() => () => {
|
|
6162
6162
|
D.current && clearTimeout(D.current);
|
|
6163
6163
|
}, []);
|
|
6164
6164
|
const C = $(
|
|
6165
|
-
(
|
|
6165
|
+
(V) => {
|
|
6166
6166
|
z.length !== 0 && y((le) => {
|
|
6167
6167
|
const Z = z.indexOf(le);
|
|
6168
6168
|
let ae;
|
|
6169
|
-
return Z === -1 ? ae =
|
|
6169
|
+
return Z === -1 ? ae = V > 0 ? 0 : z.length - 1 : (ae = Z + V, ae < 0 ? ae = h ? z.length - 1 : 0 : ae >= z.length && (ae = h ? 0 : z.length - 1)), z[ae];
|
|
6170
6170
|
});
|
|
6171
6171
|
},
|
|
6172
6172
|
[z, h]
|
|
6173
6173
|
), M = $(() => {
|
|
6174
|
-
var
|
|
6175
|
-
N(!1), y(-1), (
|
|
6174
|
+
var V;
|
|
6175
|
+
N(!1), y(-1), (V = L.current) == null || V.blur();
|
|
6176
6176
|
}, []), U = $(
|
|
6177
|
-
(
|
|
6178
|
-
|
|
6177
|
+
(V) => {
|
|
6178
|
+
V.disabled || t(V);
|
|
6179
6179
|
},
|
|
6180
6180
|
[t]
|
|
6181
6181
|
);
|
|
6182
|
-
function X(
|
|
6183
|
-
if (
|
|
6184
|
-
|
|
6182
|
+
function X(V) {
|
|
6183
|
+
if (V.key === "Escape") {
|
|
6184
|
+
V.preventDefault(), M();
|
|
6185
6185
|
return;
|
|
6186
6186
|
}
|
|
6187
6187
|
if (!(!G || de.length === 0))
|
|
6188
|
-
switch (
|
|
6188
|
+
switch (V.key) {
|
|
6189
6189
|
case "ArrowDown":
|
|
6190
|
-
|
|
6190
|
+
V.preventDefault(), C(1);
|
|
6191
6191
|
break;
|
|
6192
6192
|
case "ArrowUp":
|
|
6193
|
-
|
|
6193
|
+
V.preventDefault(), C(-1);
|
|
6194
6194
|
break;
|
|
6195
6195
|
case "Enter":
|
|
6196
|
-
S >= 0 && S < de.length && (
|
|
6196
|
+
S >= 0 && S < de.length && (V.preventDefault(), U(de[S]));
|
|
6197
6197
|
break;
|
|
6198
6198
|
}
|
|
6199
6199
|
}
|
|
@@ -6219,7 +6219,7 @@ function Sl({
|
|
|
6219
6219
|
inputSize: p,
|
|
6220
6220
|
placeholder: w,
|
|
6221
6221
|
value: a,
|
|
6222
|
-
onChange: (
|
|
6222
|
+
onChange: (V) => n(V.target.value),
|
|
6223
6223
|
onFocus: ue,
|
|
6224
6224
|
onBlur: fe,
|
|
6225
6225
|
onKeyDown: X,
|
|
@@ -6229,7 +6229,7 @@ function Sl({
|
|
|
6229
6229
|
}
|
|
6230
6230
|
}
|
|
6231
6231
|
),
|
|
6232
|
-
G && typeof document < "u" &&
|
|
6232
|
+
G && typeof document < "u" && Ve(
|
|
6233
6233
|
/* @__PURE__ */ v(
|
|
6234
6234
|
"div",
|
|
6235
6235
|
{
|
|
@@ -6246,11 +6246,11 @@ function Sl({
|
|
|
6246
6246
|
"animate-in fade-in-0 slide-in-from-top-1 duration-150"
|
|
6247
6247
|
),
|
|
6248
6248
|
style: { top: T.top, left: T.left, width: T.width },
|
|
6249
|
-
onMouseDown: (
|
|
6249
|
+
onMouseDown: (V) => V.preventDefault(),
|
|
6250
6250
|
children: [
|
|
6251
|
-
K.map((
|
|
6251
|
+
K.map((V, le) => /* @__PURE__ */ v("div", { children: [
|
|
6252
6252
|
le > 0 && /* @__PURE__ */ r("div", { className: "border-t border-[var(--color-border-subtle)]" }),
|
|
6253
|
-
|
|
6253
|
+
V.group !== void 0 && o && /* @__PURE__ */ v(
|
|
6254
6254
|
"div",
|
|
6255
6255
|
{
|
|
6256
6256
|
className: m(
|
|
@@ -6260,12 +6260,12 @@ function Sl({
|
|
|
6260
6260
|
"text-[var(--color-text-muted)]"
|
|
6261
6261
|
),
|
|
6262
6262
|
children: [
|
|
6263
|
-
o(
|
|
6264
|
-
(l == null ? void 0 : l[
|
|
6263
|
+
o(V.group),
|
|
6264
|
+
(l == null ? void 0 : l[V.group]) && /* @__PURE__ */ r(dt, { size: "sm" })
|
|
6265
6265
|
]
|
|
6266
6266
|
}
|
|
6267
6267
|
),
|
|
6268
|
-
|
|
6268
|
+
V.items.map((Z) => {
|
|
6269
6269
|
xe++;
|
|
6270
6270
|
const ae = xe, R = ae === S, oe = f && typeof Z.label == "string" ? Il(Z.label, f) : Z.label;
|
|
6271
6271
|
return /* @__PURE__ */ v(
|
|
@@ -6294,7 +6294,7 @@ function Sl({
|
|
|
6294
6294
|
Z.id
|
|
6295
6295
|
);
|
|
6296
6296
|
})
|
|
6297
|
-
] },
|
|
6297
|
+
] }, V.group ?? "__ungrouped__")),
|
|
6298
6298
|
i && /* @__PURE__ */ r("div", { className: "flex justify-center py-[var(--space-3)]", children: /* @__PURE__ */ r(dt, { size: "sm" }) }),
|
|
6299
6299
|
ge && c && !i && d && /* @__PURE__ */ r("div", { className: "px-[var(--space-3)] py-[var(--space-4)]", children: d }),
|
|
6300
6300
|
u && /* @__PURE__ */ r("div", { className: "border-t border-[var(--color-border-subtle)]", children: u })
|
|
@@ -6596,7 +6596,7 @@ function Ir({
|
|
|
6596
6596
|
);
|
|
6597
6597
|
}
|
|
6598
6598
|
function zl({ row: e, actions: t }) {
|
|
6599
|
-
const { t: a } = ie(), [n, o] =
|
|
6599
|
+
const { t: a } = ie(), [n, o] = F(!1), s = t.filter((i) => {
|
|
6600
6600
|
var l;
|
|
6601
6601
|
return !((l = i.hidden) != null && l.call(i, e));
|
|
6602
6602
|
});
|
|
@@ -6663,7 +6663,7 @@ const Rl = 5, Ll = [], Pl = {}, Bl = {
|
|
|
6663
6663
|
}, Ol = 40, yt = "border border-[var(--data-table-surface-border)] bg-[image:var(--data-table-surface-bg)] shadow-[var(--data-table-surface-shadow)]", Sr = "blur(var(--data-table-surface-blur)) saturate(var(--data-table-surface-saturate))", gt = {
|
|
6664
6664
|
backdropFilter: Sr,
|
|
6665
6665
|
WebkitBackdropFilter: Sr
|
|
6666
|
-
},
|
|
6666
|
+
}, Vl = {
|
|
6667
6667
|
dark: "#27272A",
|
|
6668
6668
|
navy: "#1E3A8A",
|
|
6669
6669
|
cherry: "#B91C1C",
|
|
@@ -6723,7 +6723,7 @@ function sd({
|
|
|
6723
6723
|
return;
|
|
6724
6724
|
}
|
|
6725
6725
|
h == null || h(ne);
|
|
6726
|
-
}, xe = de ?
|
|
6726
|
+
}, xe = de ? Vl[de] : void 0, { t: V } = ie(), le = _(null), Z = d !== void 0 ? d : t.length > 500, ae = ke(() => {
|
|
6727
6727
|
const ne = W ? Bl[W] : Ol;
|
|
6728
6728
|
if (typeof document > "u") return ne;
|
|
6729
6729
|
const E = getComputedStyle(document.documentElement).getPropertyValue("--data-table-row-height").trim();
|
|
@@ -6735,7 +6735,7 @@ function sd({
|
|
|
6735
6735
|
if (l && (ne = [{
|
|
6736
6736
|
id: "select",
|
|
6737
6737
|
header: ({ table: q }) => /* @__PURE__ */ r(
|
|
6738
|
-
|
|
6738
|
+
Ft,
|
|
6739
6739
|
{
|
|
6740
6740
|
checked: q.getIsAllRowsSelected(),
|
|
6741
6741
|
indeterminate: q.getIsSomeRowsSelected(),
|
|
@@ -6743,7 +6743,7 @@ function sd({
|
|
|
6743
6743
|
}
|
|
6744
6744
|
),
|
|
6745
6745
|
cell: ({ row: q }) => /* @__PURE__ */ r("div", { onClick: (Y) => Y.stopPropagation(), children: /* @__PURE__ */ r(
|
|
6746
|
-
|
|
6746
|
+
Ft,
|
|
6747
6747
|
{
|
|
6748
6748
|
checked: q.getIsSelected(),
|
|
6749
6749
|
onChange: q.getToggleSelectedHandler()
|
|
@@ -6772,8 +6772,8 @@ function sd({
|
|
|
6772
6772
|
onSortingChange: ge,
|
|
6773
6773
|
onRowSelectionChange: k,
|
|
6774
6774
|
getCoreRowModel: ja(),
|
|
6775
|
-
getSortedRowModel: i ?
|
|
6776
|
-
getFilteredRowModel:
|
|
6775
|
+
getSortedRowModel: i ? Fa() : void 0,
|
|
6776
|
+
getFilteredRowModel: Va(),
|
|
6777
6777
|
getRowId: B,
|
|
6778
6778
|
enableRowSelection: l,
|
|
6779
6779
|
enableSorting: i
|
|
@@ -6809,7 +6809,7 @@ function sd({
|
|
|
6809
6809
|
children: /* @__PURE__ */ r(
|
|
6810
6810
|
ca,
|
|
6811
6811
|
{
|
|
6812
|
-
title: n ??
|
|
6812
|
+
title: n ?? V("empty.kayit_bulunamadi"),
|
|
6813
6813
|
description: o,
|
|
6814
6814
|
action: s
|
|
6815
6815
|
}
|
|
@@ -6925,7 +6925,7 @@ function sd({
|
|
|
6925
6925
|
style: gt,
|
|
6926
6926
|
children: [
|
|
6927
6927
|
/* @__PURE__ */ r("span", { className: "text-[length:var(--font-sm)] text-[var(--color-text-secondary)]", children: z ? z(pe) : /* @__PURE__ */ v(be, { children: [
|
|
6928
|
-
|
|
6928
|
+
V("table.secili"),
|
|
6929
6929
|
":",
|
|
6930
6930
|
" ",
|
|
6931
6931
|
/* @__PURE__ */ r("span", { className: "text-[var(--color-primary)] tabular-nums", children: pe })
|
|
@@ -6960,7 +6960,7 @@ function sd({
|
|
|
6960
6960
|
})()
|
|
6961
6961
|
] });
|
|
6962
6962
|
}
|
|
6963
|
-
const
|
|
6963
|
+
const Fl = re(
|
|
6964
6964
|
({ className: e, ...t }, a) => /* @__PURE__ */ r("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ r(
|
|
6965
6965
|
"table",
|
|
6966
6966
|
{
|
|
@@ -6970,7 +6970,7 @@ const Vl = re(
|
|
|
6970
6970
|
}
|
|
6971
6971
|
) })
|
|
6972
6972
|
);
|
|
6973
|
-
|
|
6973
|
+
Fl.displayName = "Table";
|
|
6974
6974
|
const ya = re(
|
|
6975
6975
|
({ className: e, ...t }, a) => /* @__PURE__ */ r("thead", { ref: a, className: m("[&_tr]:border-b [&_tr]:border-[var(--data-table-surface-border)]", e), ...t })
|
|
6976
6976
|
);
|
|
@@ -7093,7 +7093,7 @@ function Dr(e, t, a) {
|
|
|
7093
7093
|
});
|
|
7094
7094
|
}
|
|
7095
7095
|
function Kl({ operators: e, value: t, onChange: a }) {
|
|
7096
|
-
const { t: n } = ie(), [o, s] =
|
|
7096
|
+
const { t: n } = ie(), [o, s] = F(!1), i = _(null), l = ye(), d = e.find((c) => c.value === t) ?? e[0];
|
|
7097
7097
|
return J(() => {
|
|
7098
7098
|
if (!o) return;
|
|
7099
7099
|
const c = (f) => {
|
|
@@ -7181,7 +7181,7 @@ function id({
|
|
|
7181
7181
|
onDraftChange: s,
|
|
7182
7182
|
showOperators: i = !0
|
|
7183
7183
|
}) {
|
|
7184
|
-
const { t: l } = ie(), d = _(null), c = ye(), [u, f] =
|
|
7184
|
+
const { t: l } = ie(), d = _(null), c = ye(), [u, f] = F(() => {
|
|
7185
7185
|
const y = /* @__PURE__ */ new Map();
|
|
7186
7186
|
e.forEach((P) => {
|
|
7187
7187
|
if (P.type !== "daterange") return;
|
|
@@ -7373,7 +7373,7 @@ function ld({
|
|
|
7373
7373
|
height: o = "300px",
|
|
7374
7374
|
className: s
|
|
7375
7375
|
}) {
|
|
7376
|
-
const { t: i } = ie(), [l, d] =
|
|
7376
|
+
const { t: i } = ie(), [l, d] = F("raw"), [c, u] = F(null), f = ke(() => {
|
|
7377
7377
|
try {
|
|
7378
7378
|
return JSON.parse(e || "{}");
|
|
7379
7379
|
} catch {
|
|
@@ -7595,7 +7595,7 @@ const Jl = {
|
|
|
7595
7595
|
isActive: (e) => e.isActive("italic")
|
|
7596
7596
|
},
|
|
7597
7597
|
strike: {
|
|
7598
|
-
icon:
|
|
7598
|
+
icon: Fs,
|
|
7599
7599
|
run: (e) => e.chain().focus().toggleStrike().run(),
|
|
7600
7600
|
isActive: (e) => e.isActive("strike")
|
|
7601
7601
|
},
|
|
@@ -7641,7 +7641,7 @@ const Jl = {
|
|
|
7641
7641
|
}
|
|
7642
7642
|
}, Tr = "bg-[var(--color-bg-muted)] text-[var(--color-text-primary)]";
|
|
7643
7643
|
function Zl({ editor: e, toolbar: t, labels: a, disabled: n }) {
|
|
7644
|
-
const { t: o } = ie(), [s, i] =
|
|
7644
|
+
const { t: o } = ie(), [s, i] = F(!1), [l, d] = F(""), c = _(null);
|
|
7645
7645
|
if (J(() => {
|
|
7646
7646
|
var w;
|
|
7647
7647
|
s && ((w = c.current) == null || w.focus());
|
|
@@ -7902,7 +7902,7 @@ function wa({
|
|
|
7902
7902
|
query: s,
|
|
7903
7903
|
isRoot: i
|
|
7904
7904
|
}) {
|
|
7905
|
-
const l = xa(t), d = l === "object" || l === "array", [c, u] =
|
|
7905
|
+
const l = xa(t), d = l === "object" || l === "array", [c, u] = F(!i && o), f = s !== "", h = n && c && !f, g = e !== void 0 ? /* @__PURE__ */ r("span", { className: "text-[var(--color-primary)]", children: zr(e, s) }) : null;
|
|
7906
7906
|
if (!d) {
|
|
7907
7907
|
const b = l === "string" ? `"${String(t)}"` : String(t);
|
|
7908
7908
|
return /* @__PURE__ */ v("div", { className: "flex gap-1 leading-5", children: [
|
|
@@ -7964,7 +7964,7 @@ function dd({
|
|
|
7964
7964
|
emptyContent: i = "—",
|
|
7965
7965
|
className: l
|
|
7966
7966
|
}) {
|
|
7967
|
-
const { t: d } = ie(), [c, u] =
|
|
7967
|
+
const { t: d } = ie(), [c, u] = F(""), f = ke(() => Yl(e), [e]), h = $(() => {
|
|
7968
7968
|
const x = typeof f == "string" ? f : JSON.stringify(f, null, 2);
|
|
7969
7969
|
navigator.clipboard.writeText(x ?? "").then(() => {
|
|
7970
7970
|
ha.success(d("json_editor.kopyalandi"));
|
|
@@ -8340,7 +8340,7 @@ const ic = re(
|
|
|
8340
8340
|
}), j = $(
|
|
8341
8341
|
(R) => (c == null ? void 0 : c[R]) ?? S(`editablegrid.status_${R}`),
|
|
8342
8342
|
[c, S]
|
|
8343
|
-
), [C, M] =
|
|
8343
|
+
), [C, M] = F(null), U = $(
|
|
8344
8344
|
() => Object.fromEntries(P.map((R) => [R, ""])),
|
|
8345
8345
|
[P]
|
|
8346
8346
|
), X = $(
|
|
@@ -8388,8 +8388,8 @@ const ic = re(
|
|
|
8388
8388
|
Ee = { rowId: Rr(), cells: U() }, Ce.push(Ee);
|
|
8389
8389
|
}
|
|
8390
8390
|
E.forEach((Me, Re) => {
|
|
8391
|
-
const
|
|
8392
|
-
|
|
8391
|
+
const Fe = P[ve + Re];
|
|
8392
|
+
Fe !== void 0 && !L.has(Fe) && (Ee.cells[Fe] = Me);
|
|
8393
8393
|
});
|
|
8394
8394
|
}), a(Ce), ne > 0 && (x == null || x(ne));
|
|
8395
8395
|
},
|
|
@@ -8401,7 +8401,7 @@ const ic = re(
|
|
|
8401
8401
|
const R = t.findIndex((ee) => ee.rowId === u);
|
|
8402
8402
|
R < 0 || (H ? G.scrollToIndex(R, { align: "center" }) : (oe = T.current.get(u)) == null || oe.scrollIntoView({ block: "nearest" }));
|
|
8403
8403
|
}, [u, t, H, G]);
|
|
8404
|
-
const
|
|
8404
|
+
const V = (R, oe) => /* @__PURE__ */ v(
|
|
8405
8405
|
wt,
|
|
8406
8406
|
{
|
|
8407
8407
|
ref: (ee) => {
|
|
@@ -8528,7 +8528,7 @@ const ic = re(
|
|
|
8528
8528
|
}
|
|
8529
8529
|
) }) : H ? /* @__PURE__ */ v(be, { children: [
|
|
8530
8530
|
le.length > 0 && /* @__PURE__ */ r("tr", { "aria-hidden": !0, children: /* @__PURE__ */ r("td", { colSpan: W, style: { height: ((Z = le[0]) == null ? void 0 : Z.start) ?? 0 } }) }),
|
|
8531
|
-
le.map((R) =>
|
|
8531
|
+
le.map((R) => V(t[R.index], R.index)),
|
|
8532
8532
|
le.length > 0 && /* @__PURE__ */ r("tr", { "aria-hidden": !0, children: /* @__PURE__ */ r(
|
|
8533
8533
|
"td",
|
|
8534
8534
|
{
|
|
@@ -8538,7 +8538,7 @@ const ic = re(
|
|
|
8538
8538
|
}
|
|
8539
8539
|
}
|
|
8540
8540
|
) })
|
|
8541
|
-
] }) : t.map(
|
|
8541
|
+
] }) : t.map(V) })
|
|
8542
8542
|
]
|
|
8543
8543
|
}
|
|
8544
8544
|
)
|
|
@@ -8656,7 +8656,7 @@ function fd({
|
|
|
8656
8656
|
children: n,
|
|
8657
8657
|
className: o
|
|
8658
8658
|
}) {
|
|
8659
|
-
const s = Na(), [i, l] =
|
|
8659
|
+
const s = Na(), [i, l] = F(a);
|
|
8660
8660
|
return /* @__PURE__ */ v("div", { className: o, children: [
|
|
8661
8661
|
s ? !t && /* @__PURE__ */ r("div", { className: "mx-[var(--space-2)] my-[var(--space-1)]", children: /* @__PURE__ */ r("div", { className: "h-px bg-[var(--sidebar-border)]" }) }) : /* @__PURE__ */ v(be, { children: [
|
|
8662
8662
|
!t && /* @__PURE__ */ r("div", { className: "mx-[var(--space-2)] my-[var(--space-1)] h-px bg-[var(--sidebar-border)]" }),
|
|
@@ -8781,19 +8781,19 @@ function hd({
|
|
|
8781
8781
|
/* @__PURE__ */ v("div", { className: "flex items-center gap-2", children: [
|
|
8782
8782
|
u && /* @__PURE__ */ r("div", { className: "flex items-center gap-2", children: u }),
|
|
8783
8783
|
a && /* @__PURE__ */ r("div", { className: "max-w-md flex-1", children: a }),
|
|
8784
|
-
o && /* @__PURE__ */ v(
|
|
8785
|
-
|
|
8786
|
-
|
|
8787
|
-
|
|
8788
|
-
|
|
8789
|
-
|
|
8790
|
-
|
|
8791
|
-
|
|
8792
|
-
|
|
8793
|
-
|
|
8794
|
-
|
|
8795
|
-
|
|
8796
|
-
|
|
8784
|
+
(o || f || t) && /* @__PURE__ */ v("div", { className: "ml-auto flex items-center gap-2", children: [
|
|
8785
|
+
o && /* @__PURE__ */ v(
|
|
8786
|
+
se,
|
|
8787
|
+
{
|
|
8788
|
+
variant: "outline",
|
|
8789
|
+
leftIcon: Os,
|
|
8790
|
+
onClick: o,
|
|
8791
|
+
children: [
|
|
8792
|
+
w("common.filtre"),
|
|
8793
|
+
n !== void 0 && n > 0 && /* @__PURE__ */ r(Oe, { variant: "info", size: "sm", className: "ml-1", children: n })
|
|
8794
|
+
]
|
|
8795
|
+
}
|
|
8796
|
+
),
|
|
8797
8797
|
f,
|
|
8798
8798
|
t && /* @__PURE__ */ r(se, { variant: "primary", onClick: t.onClick, children: t.label })
|
|
8799
8799
|
] })
|
|
@@ -8948,7 +8948,7 @@ function gd({
|
|
|
8948
8948
|
var x;
|
|
8949
8949
|
const { t: g } = ie();
|
|
8950
8950
|
Qt(e);
|
|
8951
|
-
const [w, p] =
|
|
8951
|
+
const [w, p] = F(
|
|
8952
8952
|
((x = s == null ? void 0 : s[0]) == null ? void 0 : x.value) ?? ""
|
|
8953
8953
|
);
|
|
8954
8954
|
return /* @__PURE__ */ v(
|
|
@@ -9024,7 +9024,7 @@ export {
|
|
|
9024
9024
|
Di as CardFooter,
|
|
9025
9025
|
oa as CardHeader,
|
|
9026
9026
|
sa as CardTitle,
|
|
9027
|
-
|
|
9027
|
+
Ft as Checkbox,
|
|
9028
9028
|
Yi as ColorPicker,
|
|
9029
9029
|
sl as Combobox,
|
|
9030
9030
|
Ui as ConfirmDialog,
|
|
@@ -9078,7 +9078,7 @@ export {
|
|
|
9078
9078
|
qc as StatusBadge,
|
|
9079
9079
|
md as Stepper,
|
|
9080
9080
|
si as Switch,
|
|
9081
|
-
|
|
9081
|
+
Fl as Table,
|
|
9082
9082
|
ga as TableBody,
|
|
9083
9083
|
Hl as TableCaption,
|
|
9084
9084
|
it as TableCell,
|
|
@@ -9110,9 +9110,9 @@ export {
|
|
|
9110
9110
|
ha as toast,
|
|
9111
9111
|
kd as uiKitResources,
|
|
9112
9112
|
Qt as useBreadcrumb,
|
|
9113
|
-
|
|
9113
|
+
Fc as useBreadcrumbStore,
|
|
9114
9114
|
ho as useCopyToClipboard,
|
|
9115
|
-
|
|
9115
|
+
Vc as useDataTable,
|
|
9116
9116
|
_r as useDebounce,
|
|
9117
9117
|
Oc as useIsDesktop,
|
|
9118
9118
|
Pc as useIsMobile,
|