@wirecore/wirelayer-react 0.12.0 → 0.12.1
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/CopyButton-C_LAuCkR.js +47 -0
- package/dist/Tree-DLHbcH3-.js +602 -0
- package/dist/chart/Chart.d.ts +3 -3
- package/dist/chart/Chart.d.ts.map +1 -1
- package/dist/chart/PieChart.d.ts +3 -3
- package/dist/chart/PieChart.d.ts.map +1 -1
- package/dist/chart/SeriesChartView.d.ts +1 -1
- package/dist/chart/SeriesChartView.d.ts.map +1 -1
- package/dist/chart/Sparkline.d.ts +3 -3
- package/dist/chart/Sparkline.d.ts.map +1 -1
- package/dist/chart/WaterfallChart.d.ts +3 -3
- package/dist/chart/WaterfallChart.d.ts.map +1 -1
- package/dist/chart/types.d.ts +2 -2
- package/dist/chart/types.d.ts.map +1 -1
- package/dist/chart.js +148 -143
- package/dist/code.js +1 -1
- package/dist/components/AngleSlider/AngleSlider.d.ts +3 -3
- package/dist/components/AngleSlider/AngleSlider.d.ts.map +1 -1
- package/dist/components/BlockUi/BlockUi.d.ts +3 -3
- package/dist/components/BlockUi/BlockUi.d.ts.map +1 -1
- package/dist/components/Calendar/Calendar.d.ts +3 -3
- package/dist/components/Calendar/Calendar.d.ts.map +1 -1
- package/dist/components/Carousel/Carousel.d.ts +3 -3
- package/dist/components/Carousel/Carousel.d.ts.map +1 -1
- package/dist/components/CascadeSelect/CascadeSelect.d.ts +4 -3
- package/dist/components/CascadeSelect/CascadeSelect.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPicker.d.ts +4 -4
- package/dist/components/ColorPicker/ColorPicker.d.ts.map +1 -1
- package/dist/components/CopyButton/CopyButton.d.ts +3 -3
- package/dist/components/CopyButton/CopyButton.d.ts.map +1 -1
- package/dist/components/DataView/DataView.d.ts +3 -3
- package/dist/components/DataView/DataView.d.ts.map +1 -1
- package/dist/components/Fieldset/Fieldset.d.ts +5 -3
- package/dist/components/Fieldset/Fieldset.d.ts.map +1 -1
- package/dist/components/Gallery/Gallery.d.ts +3 -3
- package/dist/components/Gallery/Gallery.d.ts.map +1 -1
- package/dist/components/JsonViewer/JsonViewer.d.ts +4 -3
- package/dist/components/JsonViewer/JsonViewer.d.ts.map +1 -1
- package/dist/components/Knob/Knob.d.ts +4 -3
- package/dist/components/Knob/Knob.d.ts.map +1 -1
- package/dist/components/Listbox/Listbox.d.ts +4 -4
- package/dist/components/Listbox/Listbox.d.ts.map +1 -1
- package/dist/components/LogViewer/LogViewer.d.ts +3 -3
- package/dist/components/LogViewer/LogViewer.d.ts.map +1 -1
- package/dist/components/MeterGroup/MeterGroup.d.ts +3 -3
- package/dist/components/MeterGroup/MeterGroup.d.ts.map +1 -1
- package/dist/components/NavigationMenu/NavigationMenu.d.ts +3 -3
- package/dist/components/NavigationMenu/NavigationMenu.d.ts.map +1 -1
- package/dist/components/OrderList/OrderList.d.ts +3 -3
- package/dist/components/OrderList/OrderList.d.ts.map +1 -1
- package/dist/components/OrgChart/OrgChart.d.ts +3 -3
- package/dist/components/OrgChart/OrgChart.d.ts.map +1 -1
- package/dist/components/Panel/Panel.d.ts +3 -3
- package/dist/components/Panel/Panel.d.ts.map +1 -1
- package/dist/components/PickList/PickList.d.ts +3 -3
- package/dist/components/PickList/PickList.d.ts.map +1 -1
- package/dist/components/PinInput/PinInput.d.ts +4 -4
- package/dist/components/PinInput/PinInput.d.ts.map +1 -1
- package/dist/components/ProgressCircle/ProgressCircle.d.ts +3 -3
- package/dist/components/ProgressCircle/ProgressCircle.d.ts.map +1 -1
- package/dist/components/Rating/Rating.d.ts +3 -3
- package/dist/components/Rating/Rating.d.ts.map +1 -1
- package/dist/components/ScrollPanel/ScrollPanel.d.ts +3 -3
- package/dist/components/ScrollPanel/ScrollPanel.d.ts.map +1 -1
- package/dist/components/ScrollTop/ScrollTop.d.ts +3 -2
- package/dist/components/ScrollTop/ScrollTop.d.ts.map +1 -1
- package/dist/components/SidebarNav/SidebarNav.d.ts +3 -3
- package/dist/components/SidebarNav/SidebarNav.d.ts.map +1 -1
- package/dist/components/SignaturePad/SignaturePad.d.ts +3 -3
- package/dist/components/SignaturePad/SignaturePad.d.ts.map +1 -1
- package/dist/components/Sortable/Sortable.d.ts +4 -3
- package/dist/components/Sortable/Sortable.d.ts.map +1 -1
- package/dist/components/SpeedDial/SpeedDial.d.ts +3 -3
- package/dist/components/SpeedDial/SpeedDial.d.ts.map +1 -1
- package/dist/components/SplitButton/SplitButton.d.ts +3 -3
- package/dist/components/SplitButton/SplitButton.d.ts.map +1 -1
- package/dist/components/Splitter/Splitter.d.ts +3 -3
- package/dist/components/Splitter/Splitter.d.ts.map +1 -1
- package/dist/components/Spoiler/Spoiler.d.ts +3 -3
- package/dist/components/Spoiler/Spoiler.d.ts.map +1 -1
- package/dist/components/Stepper/Stepper.d.ts +3 -3
- package/dist/components/Stepper/Stepper.d.ts.map +1 -1
- package/dist/components/TableOfContents/TableOfContents.d.ts +3 -3
- package/dist/components/TableOfContents/TableOfContents.d.ts.map +1 -1
- package/dist/components/Timeline/Timeline.d.ts +3 -3
- package/dist/components/Timeline/Timeline.d.ts.map +1 -1
- package/dist/components/Toolbar/Toolbar.d.ts +3 -3
- package/dist/components/Toolbar/Toolbar.d.ts.map +1 -1
- package/dist/components/Tree/Tree.d.ts +3 -3
- package/dist/components/Tree/Tree.d.ts.map +1 -1
- package/dist/components/Tree/useTree.d.ts +2 -0
- package/dist/components/Tree/useTree.d.ts.map +1 -1
- package/dist/components/TreeSelect/TreeSelect.d.ts +4 -4
- package/dist/components/TreeSelect/TreeSelect.d.ts.map +1 -1
- package/dist/data-table.js +1 -1
- package/dist/editor/Editor.d.ts +4 -4
- package/dist/editor/Editor.d.ts.map +1 -1
- package/dist/editor.js +184 -183
- package/dist/index.js +1272 -1216
- package/dist/pdf.js +1 -1
- package/dist/virtual/VirtualList.d.ts +3 -3
- package/dist/virtual/VirtualList.d.ts.map +1 -1
- package/dist/virtual/VirtualTree.d.ts.map +1 -1
- package/dist/virtual.js +224 -219
- package/llms-full.txt +66 -10
- package/package.json +1 -1
- package/dist/CopyButton-0e1pHR3f.js +0 -45
- package/dist/Tree-DVjwp6FG.js +0 -568
package/dist/index.js
CHANGED
|
@@ -11,8 +11,8 @@ import { t as I } from "./label-for-DYgV5EwH.js";
|
|
|
11
11
|
import { a as L, c as R, i as z, n as B, o as V, r as H, s as ee, t as U } from "./Highlight-43-H9459.js";
|
|
12
12
|
import { a as W, c as G, i as te, l as K, n as ne, o as re, r as q, s as ie, t as ae, u as oe } from "./PasswordInput-CxZXGV2m.js";
|
|
13
13
|
import { t as se } from "./Slider-Bfm_jjYE.js";
|
|
14
|
-
import { a as ce, t as le } from "./Tree-
|
|
15
|
-
import { t as ue } from "./CopyButton-
|
|
14
|
+
import { a as ce, t as le } from "./Tree-DLHbcH3-.js";
|
|
15
|
+
import { t as ue } from "./CopyButton-C_LAuCkR.js";
|
|
16
16
|
import { ChildrenLoader as de, FLIP_KEY_ATTRIBUTE as fe, FileTypes as pe, GAUGE_ARC as me, SCHEDULER_DRAG_TYPE as he, SCHEDULER_DRAG_TYPE as ge, SORTABLE_HANDLE as J, SUBMENU_GUTTER as _e, UploadQueue as ve, accordion as ye, actionBar as be, activeSection as xe, addDays as Se, addIsoDays as Ce, addMinutes as we, addRecentEmoji as Te, affix as Ee, aiLabel as De, alert as Oe, allListOptionsState as ke, angleSlider as Ae, animateNumber as je, announce as Me, announce as Ne, announcer as Pe, appShell as Fe, applyEventChange as Ie, aspectRatio as Le, avatar as Re, avatarColor as ze, avatarGroup as Be, badge as Ve, banner as He, barsList as Ue, barsListWidths as We, blobToCanvas as Ge, blockUi as Ke, bottomNavigation as qe, breadcrumb as Je, bulletChart as Ye, bulletScale as Xe, button as Ze, buttonColorKey as Qe, buttonGroup as $e, card as et, cardParts as tt, caretAfterDigits as nt, carousel as rt, carouselBreakpoint as it, cascadeSelect as at, center as ot, chart as st, chatDayKey as ct, chatDetails as lt, chatEntries as ut, chatMessage as dt, chatMessages as ft, chatPrompt as pt, chatPromptAction as mt, checkEventDrop as ht, checkJson as gt, checkboxGroup as _t, chip as vt, chipGroup as yt, clampPan as bt, clampSize as xt, closedRanges as St, closedTimes as Ct, collapse as wt, colorChannelRanges as Tt, colorChannels as Et, colorFromChannels as Dt, colorPicker as Ot, colorSwatchPicker as kt, columnVariables as At, combobox as jt, commandPalette as Mt, compare as Nt, configProvider as Pt, confirmPopup as Ft, container as It, controlIds as Lt, copyText as Rt, countdown as zt, countdownParts as Bt, countryFlag as Vt, countryName as Ht, createDataController as Ut, createHoverIntent as Wt, createLongPress as Gt, createPausableTimer as Kt, criticalPath as qt, dataAnnouncement as Jt, dataList as Yt, dataView as Xt, datePicker as Zt, dayLabel as Qt, dayStrip as $t, daysBetween as en, daysRange as tn, debounce as nn, defaultEmojis as rn, dependencyCycle as an, dependencyPath as on, describeRecurrence as sn, describeRecurrence as cn, descriptions as ln, detectLogLevel as un, dialog as dn, divider as fn, downloadText as pn, dragFilesState as mn, drawer as hn, durationToParts as gn, durationUnit as _n, emojiCategories as vn, emojiPicker as yn, emptyConditionGroup as bn, emptyState as xn, enterFullscreen as Sn, eventCounts as Cn, eventsOn as wn, exitFullscreen as Tn, expandRecurrence as En, expandRecurrence as Dn, fieldset as On, fileUpload as kn, filterChips as An, filterLogLines as jn, filterPanel as Mn, findPhoneCountry as Nn, flipRelease as Pn, flipSync as Fn, floatingPanel as In, focusFirst as Ln, focusFirst as Rn, focusFormControl as zn, focusHandle as Bn, formErrorSummary as Vn, formatBytes as Hn, formatColor as Un, formatColor as Wn, formatCount as Gn, formatDate as Kn, formatDateTime as qn, formatDuration as Jn, formatFileSize as Yn, formatHotkey as Xn, formatHotkey as Zn, formatHotkeyText as Qn, formatJson as $n, formatList as er, formatNumber as tr, formatPhoneNumber as nr, formatRelativeTime as rr, formatRemaining as ir, formatTime as ar, formatTrend as or, formatValue as sr, fromWallIso as cr, fullscreenElement as lr, funnel as ur, funnelStages as dr, gallery as fr, gantt as pr, ganttBar as mr, ganttGroupIds as hr, ganttPredecessors as gr, ganttRows as _r, ganttScale as vr, gauge as yr, getInitials as br, gridIndexForKey as xr, group as Sr, groupByDay as Cr, headroomHidden as wr, heatLevel as Tr, heatmap as Er, highlightChunks as Dr, historyInit as Or, historyPush as kr, historyRedo as Ar, historyUndo as jr, hotkeyRegistry as Mr, hotkeyRegistry as Nr, hotkeysDialog as Pr, hoverCard as Fr, iconButton as Ir, imageCropper as Lr, imagePreview as Rr, inColumn as zr, inSelection as Br, inTimeRange as Vr, inlineArrowStep as Hr, inlineCode as Ur, inlineEdit as Wr, inplace as Gr, inputGroup as Kr, insertMention as qr, insertTreeNode as Jr, isApplePlatform as Yr, isAtBottom as Xr, isBranchNode as Zr, isCurrentLink as Qr, isEyeDropperSupported as $r, isLazyNode as ei, isPreviewableImage as ti, isSwipeDismiss as ni, isTruncated as ri, isValidPhoneNumber as ii, jsonCopyText as ai, jsonExpandedIds as oi, jsonInput as si, jsonTree as ci, jsonValueText as li, jsonViewer as ui, kanban as di, kanbanLimitState as fi, kbd as pi, kbdGroup as mi, knob as hi, knobArc as gi, knobValueAt as _i, knobValueForKey as vi, layoutDay as yi, layoutTimeline as bi, linkTarget as xi, listValueKey as Si, listbox as Ci, liveAnnouncer as wi, localeEmojis as Ti, localeWeekInfo as Ei, logViewer as Di, logWindow as Oi, markdownElements as ki, markdownToText as Ai, marquee as ji, maskIsComplete as Mi, maskIsNumeric as Ni, maskPlaceholder as Pi, maskValue as Fi, masonry as Ii, masonrySpan as Li, matchesCondition as Ri, matchesMedia as zi, megaMenu as Bi, mentionQuery as Vi, mentionSegments as Hi, mentions as Ui, menu as Wi, menubar as Gi, meterGroup as Ki, miniCalendar as qi, moveTreeNode as Ji, nativeSelect as Yi, navigationMenu as Xi, navigationProgress as Zi, newUnread as Qi, newestTime as $i, notificationCenter as ea, notificationTime as ta, nowIn as na, numberFormatter as ra, openFileDialog as ia, orderList as aa, orgChart as oa, overflowList as sa, overflowVisibleCount as ca, overlayBadge as la, pageHeader as ua, panel as da, panelRectForKey as fa, parseColorText as pa, parseColorText as ma, parseICalendar as ha, parseLocal as ga, parseMentionMarkup as _a, parseMentionMarkup as va, parsePhoneNumber as ya, parseQuarter as ba, parseTimeText as xa, partsToDuration as Sa, periodPreset as Ca, persona as wa, phoneCountries as Ta, phoneCountries as Ea, phoneInput as Da, phonePlaceholder as Oa, pickList as ka, pickScreenColor as Aa, pinInput as ja, pinchZoom as Ma, pluralText as Na, popover as Pa, prefersMotion as Fa, prepareTourStep as Ia, presetDateRange as La, progress as Ra, progressCircle as za, promptHeight as Ba, prose as Va, qrCode as Ha, quarterOf as Ua, radialBar as Wa, radialBarRings as Ga, radioGroup as Ka, rankItems as qa, rating as Ja, readNetwork as Ya, readStorage as Xa, readStored as Za, registerLocale as Qa, relativeTimeRefresh as $a, removeTreeNode as eo, resizeForKey as to, resourcePage as no, result as ro, ringParts as io, ringProgress as ao, sameDay as oo, sankey as so, sankeyLayout as co, sankeyPath as lo, saveStatus as uo, scheduler as fo, schedulerColumns as po, schedulerDays as mo, scrollEdges as ho, scrollPanel as go, scrollTop as _o, scroller as vo, searchCascade as yo, searchEmojis as bo, searchField as xo, searchJson as So, segmentedControl as Co, select as wo, selectionCard as To, sessionTimeout as Eo, sessionTimeoutState as Do, setTextControlValue as Oo, setupLandmarkNavigation as ko, setupToolbar as Ao, shiftEvent as jo, shiftTask as Mo, shiftView as No, sidebarNav as Po, signaturePad as Fo, simpleGrid as Io, sizeOverrides as Lo, skipLinks as Ro, sortable as zo, sortableController as Bo, sourceHost as Vo, speedDial as Ho, speedDialPositions as Uo, splitButton as Wo, splitter as Go, spoiler as Ko, squarify as qo, stack as Jo, startOfDay as Yo, startOfIsoWeekRow as Xo, statistic as Zo, statisticTrend as Qo, statusDot as $o, stepZoom as es, stepper as ts, steps as ns, sticky as rs, swipeDirection as is, switchControl as as, tableOfContents as os, tagsInput as ss, taskDuration as cs, throttle as ls, timeGrid as us, timeGridSlots as ds, timeToSeconds as fs, timeWithZoneOffset as ps, timeZoneLabel as ms, timeZoneLongLabel as hs, timeline as gs, timelineOffset as _s, timelineSegments as vs, timelineTimeAt as ys, toDateTimeAttribute as bs, toE164 as xs, toICalendar as Ss, toIsoDate as Cs, toIsoDateTime as ws, toListOption as Ts, toListOptions as Es, toLogLines as Ds, toMentionMarkup as Os, toMentionMarkup as ks, toWallIso as As, toast as js, toastDuration as Ms, todayIso as Ns, toggleAllListOptions as Ps, toggleButton as Fs, toggleSelection as Is, toneAt as Ls, toolbar as Rs, toolbarRegion as zs, tooltip as Bs, topBar as Vs, tour as Hs, tourSkipTarget as Us, trapFocus as Ws, treeSelect as Gs, treemap as Ks, truncate as qs, typedSignature as Js, unmaskValue as Ys, updateMentions as Xs, visibleDays as Zs, visuallyHidden as Qs, walkTree as $s, warnInDevelopment as ec, watchIdle as tc, watchMedia as nc, watchNetwork as rc, watchStorage as ic, watermark as ac, watermarkBackground as oc, weekendDays as sc, withLoadedChildren as cc, withZoneOffset as lc, wizard as uc, writeStorage as dc, writeStored as fc, zonedEvent as pc, zonedTime as mc, zonedToInstant as hc, zoomLimits as gc } from "@wirecore/wirelayer-recipes";
|
|
17
17
|
import { ArrowDown as _c, ArrowLeft as vc, ArrowRight as yc, ArrowUp as bc, Bell as xc, Brain as Sc, Bug as Cc, CalendarDays as wc, Check as Tc, CheckCheck as Ec, ChevronDown as Dc, ChevronLeft as Oc, ChevronRight as kc, ChevronUp as Ac, ChevronsDown as jc, ChevronsLeft as Mc, ChevronsLeftRight as Nc, ChevronsRight as Pc, ChevronsUp as Fc, Circle as Ic, CircleAlert as Lc, CircleCheck as Rc, CircleX as zc, Clock as Bc, Copy as Vc, Download as Hc, Ellipsis as Uc, Eraser as Wc, FileText as Gc, FlipHorizontal2 as Kc, GripHorizontal as qc, GripVertical as Jc, Info as Yc, Keyboard as Xc, LayoutGrid as Zc, Link as Qc, List as $c, LoaderCircle as el, Maximize as tl, Maximize2 as nl, Megaphone as rl, Menu as il, Minimize as al, Minimize2 as ol, Minus as sl, OctagonX as cl, PanelLeftClose as ll, PanelLeftOpen as ul, Paperclip as dl, Pause as fl, PenLine as pl, Pencil as ml, Pipette as hl, Play as gl, Plus as _l, Repeat as vl, RotateCcw as yl, RotateCcwSquare as bl, RotateCw as xl, RotateCwSquare as Sl, Scan as Cl, Search as wl, SearchX as Tl, ServerCrash as El, ShieldX as Dl, SlidersHorizontal as Ol, Sparkles as kl, Square as Al, Star as jl, TrendingDown as Ml, TrendingUp as Nl, TriangleAlert as Pl, Undo2 as Fl, Upload as Il, User as Ll, Wrench as Rl, X as zl, ZoomIn as Bl, ZoomOut as Vl } from "lucide-react";
|
|
18
18
|
import { Fragment as Hl, createContext as Ul, createElement as Wl, useCallback as Gl, useContext as Kl, useEffect as Y, useId as ql, useImperativeHandle as Jl, useLayoutEffect as Yl, useMemo as Xl, useRef as X, useState as Z, useSyncExternalStore as Zl } from "react";
|
|
@@ -1980,49 +1980,50 @@ function Df({ alpha: t, swatches: r, withPicker: i, eyeDropper: a, channelInputs
|
|
|
1980
1980
|
}
|
|
1981
1981
|
//#endregion
|
|
1982
1982
|
//#region src/components/ColorPicker/ColorPicker.tsx
|
|
1983
|
-
function Of({ classes: t, value: r, defaultValue: i = "#000000", onValueChange: a, onValueChangeEnd: o, alpha: s = !1, swatches: c, format: l = "hex", withPicker: u = !0, eyeDropper: d = !1, channelInputs: f = !1, disabled: p, readOnly: m, invalid: h, name: g, "aria-label": _, id: v, className: y, style: b }) {
|
|
1984
|
-
let
|
|
1983
|
+
function Of({ classes: t, value: r, defaultValue: i = "#000000", onValueChange: a, onValueChangeEnd: o, alpha: s = !1, swatches: c, format: l = "hex", withPicker: u = !0, eyeDropper: d = !1, channelInputs: f = !1, disabled: p, readOnly: m, invalid: h, name: g, "aria-label": _, id: v, className: y, style: b, ...x }) {
|
|
1984
|
+
let S = n("colorPicker", Ot, t)({ cssText: l !== "hex" }), C = e().colorPicker, w = au(), T = ql(), E = `${T}name`, D = `${T}value`, O = !w && !!v && !_, k = s ? "hexa" : "hex", A = Xl(() => r === void 0 ? void 0 : ju(ma(r) ?? r), [r]), j = Xl(() => ju(ma(i) ?? i), [i]), M = (e) => l === "hex" ? e.toString(k) : Wn(e.toString(k), l);
|
|
1985
1985
|
return /* @__PURE__ */ $(Au.Root, {
|
|
1986
|
-
|
|
1986
|
+
...x,
|
|
1987
|
+
className: S.base({ class: y }),
|
|
1987
1988
|
style: b,
|
|
1988
|
-
value:
|
|
1989
|
-
defaultValue:
|
|
1990
|
-
onValueChange: (e) => a?.(
|
|
1991
|
-
onValueChangeEnd: (e) => o?.(
|
|
1992
|
-
disabled: p ??
|
|
1993
|
-
readOnly: m ??
|
|
1994
|
-
invalid: h ??
|
|
1989
|
+
value: A,
|
|
1990
|
+
defaultValue: j,
|
|
1991
|
+
onValueChange: (e) => a?.(M(e.value)),
|
|
1992
|
+
onValueChangeEnd: (e) => o?.(M(e.value)),
|
|
1993
|
+
disabled: p ?? w?.disabled,
|
|
1994
|
+
readOnly: m ?? w?.readOnly,
|
|
1995
|
+
invalid: h ?? w?.invalid,
|
|
1995
1996
|
name: g,
|
|
1996
1997
|
positioning: {
|
|
1997
1998
|
placement: "bottom-start",
|
|
1998
1999
|
gutter: 4
|
|
1999
2000
|
},
|
|
2000
2001
|
...Lt(v, "trigger", {
|
|
2001
|
-
label:
|
|
2002
|
-
input:
|
|
2002
|
+
label: w?.ids.label,
|
|
2003
|
+
input: w?.ids.control
|
|
2003
2004
|
}),
|
|
2004
2005
|
lazyMount: !0,
|
|
2005
2006
|
unmountOnExit: !0,
|
|
2006
2007
|
children: [
|
|
2007
2008
|
/* @__PURE__ */ Q(Au.Context, { children: (e) => {
|
|
2008
|
-
let t =
|
|
2009
|
+
let t = M(e.value);
|
|
2009
2010
|
return /* @__PURE__ */ Q(Au.Control, {
|
|
2010
|
-
className:
|
|
2011
|
+
className: S.control(),
|
|
2011
2012
|
children: /* @__PURE__ */ $(Au.Trigger, {
|
|
2012
|
-
className:
|
|
2013
|
-
"aria-label":
|
|
2014
|
-
"aria-labelledby":
|
|
2015
|
-
"aria-describedby":
|
|
2013
|
+
className: S.trigger(),
|
|
2014
|
+
"aria-label": O ? "" : C.trigger(t),
|
|
2015
|
+
"aria-labelledby": O ? void 0 : `${w ? w.ids.label : E} ${D}`,
|
|
2016
|
+
"aria-describedby": O ? D : w?.ariaDescribedby,
|
|
2016
2017
|
children: [
|
|
2017
|
-
!
|
|
2018
|
-
id:
|
|
2019
|
-
className:
|
|
2020
|
-
children: _ ??
|
|
2018
|
+
!w && !O && /* @__PURE__ */ Q("span", {
|
|
2019
|
+
id: E,
|
|
2020
|
+
className: S.hiddenName(),
|
|
2021
|
+
children: _ ?? C.name
|
|
2021
2022
|
}),
|
|
2022
|
-
/* @__PURE__ */ Q(Au.ValueSwatch, { className:
|
|
2023
|
+
/* @__PURE__ */ Q(Au.ValueSwatch, { className: S.swatch() }),
|
|
2023
2024
|
/* @__PURE__ */ Q("span", {
|
|
2024
|
-
id:
|
|
2025
|
-
className:
|
|
2025
|
+
id: D,
|
|
2026
|
+
className: S.valueText(),
|
|
2026
2027
|
children: t
|
|
2027
2028
|
})
|
|
2028
2029
|
]
|
|
@@ -2043,77 +2044,78 @@ function Of({ classes: t, value: r, defaultValue: i = "#000000", onValueChange:
|
|
|
2043
2044
|
}
|
|
2044
2045
|
//#endregion
|
|
2045
2046
|
//#region src/components/Knob/Knob.tsx
|
|
2046
|
-
function kf({ classes: e, value: t, defaultValue: r = 0, onValueChange: i, min: a = 0, max: o = 100, step: s = 1, label: c, "aria-label": l, id: u, formatValue: d, valueTemplate: f, strokeWidth: p = 8, color: m = "primary", size: h, disabled: g = !1, name: _, className: v, style: y }) {
|
|
2047
|
+
function kf({ classes: e, value: t, defaultValue: r = 0, onValueChange: i, min: a = 0, max: o = 100, step: s = 1, label: c, "aria-label": l, id: u, formatValue: d, valueTemplate: f, strokeWidth: p = 8, color: m = "primary", size: h, disabled: g = !1, name: _, className: v, style: y, ...b }) {
|
|
2047
2048
|
I("Knob", u);
|
|
2048
|
-
let
|
|
2049
|
+
let x = n("knob", hi, e)({
|
|
2049
2050
|
size: h,
|
|
2050
2051
|
color: m
|
|
2051
|
-
}),
|
|
2052
|
-
e !==
|
|
2053
|
-
},
|
|
2052
|
+
}), S = au(), C = `${ql()}label`, [w, T] = Z(r), [E, D] = Z(!1), O = t ?? w, k = (e) => {
|
|
2053
|
+
e !== O && (T(e), i?.(e));
|
|
2054
|
+
}, A = (e) => {
|
|
2054
2055
|
let t = e.currentTarget.getBoundingClientRect(), n = e.clientX - t.left - t.width / 2, r = e.clientY - t.top - t.height / 2;
|
|
2055
|
-
|
|
2056
|
-
},
|
|
2056
|
+
k(_i(n, r, a, o, s));
|
|
2057
|
+
}, j = d ? d(O) : f?.replaceAll("{value}", String(O)) ?? String(O);
|
|
2057
2058
|
return /* @__PURE__ */ $("div", {
|
|
2058
|
-
|
|
2059
|
+
...b,
|
|
2060
|
+
className: x.base({ class: v }),
|
|
2059
2061
|
style: y,
|
|
2060
2062
|
children: [
|
|
2061
2063
|
c && /* @__PURE__ */ Q("span", {
|
|
2062
|
-
id:
|
|
2063
|
-
className:
|
|
2064
|
+
id: C,
|
|
2065
|
+
className: x.label(),
|
|
2064
2066
|
children: c
|
|
2065
2067
|
}),
|
|
2066
2068
|
/* @__PURE__ */ $("div", {
|
|
2067
2069
|
id: u,
|
|
2068
2070
|
role: "slider",
|
|
2069
2071
|
tabIndex: g ? void 0 : 0,
|
|
2070
|
-
"aria-labelledby": c ?
|
|
2071
|
-
"aria-label": c ||
|
|
2072
|
-
"aria-describedby":
|
|
2072
|
+
"aria-labelledby": c ? C : S?.ids.label,
|
|
2073
|
+
"aria-label": c || S ? void 0 : l,
|
|
2074
|
+
"aria-describedby": S?.ariaDescribedby,
|
|
2073
2075
|
"aria-valuemin": a,
|
|
2074
2076
|
"aria-valuemax": o,
|
|
2075
|
-
"aria-valuenow":
|
|
2076
|
-
"aria-valuetext":
|
|
2077
|
+
"aria-valuenow": O,
|
|
2078
|
+
"aria-valuetext": j,
|
|
2077
2079
|
"aria-disabled": g || void 0,
|
|
2078
2080
|
"data-disabled": g || void 0,
|
|
2079
|
-
"data-dragging":
|
|
2080
|
-
className:
|
|
2081
|
+
"data-dragging": E || void 0,
|
|
2082
|
+
className: x.control(),
|
|
2081
2083
|
onKeyDown: (e) => {
|
|
2082
2084
|
if (g) return;
|
|
2083
|
-
let t = vi(e.key,
|
|
2084
|
-
t !== void 0 && (e.preventDefault(),
|
|
2085
|
+
let t = vi(e.key, O, a, o, s);
|
|
2086
|
+
t !== void 0 && (e.preventDefault(), k(t));
|
|
2085
2087
|
},
|
|
2086
2088
|
onPointerDown: (e) => {
|
|
2087
|
-
g || (e.currentTarget.setPointerCapture(e.pointerId),
|
|
2089
|
+
g || (e.currentTarget.setPointerCapture(e.pointerId), D(!0), A(e));
|
|
2088
2090
|
},
|
|
2089
|
-
onPointerMove: (e) =>
|
|
2090
|
-
onPointerUp: () =>
|
|
2091
|
-
onPointerCancel: () =>
|
|
2091
|
+
onPointerMove: (e) => E && A(e),
|
|
2092
|
+
onPointerUp: () => D(!1),
|
|
2093
|
+
onPointerCancel: () => D(!1),
|
|
2092
2094
|
children: [/* @__PURE__ */ $("svg", {
|
|
2093
2095
|
viewBox: "0 0 100 100",
|
|
2094
|
-
className:
|
|
2096
|
+
className: x.svg(),
|
|
2095
2097
|
"aria-hidden": "true",
|
|
2096
2098
|
children: [/* @__PURE__ */ Q("path", {
|
|
2097
2099
|
d: gi(1),
|
|
2098
|
-
className:
|
|
2100
|
+
className: x.track(),
|
|
2099
2101
|
strokeWidth: p,
|
|
2100
2102
|
strokeLinecap: "round"
|
|
2101
2103
|
}), /* @__PURE__ */ Q("path", {
|
|
2102
|
-
d: gi((
|
|
2103
|
-
className:
|
|
2104
|
+
d: gi((O - a) / (o - a)),
|
|
2105
|
+
className: x.range(),
|
|
2104
2106
|
strokeWidth: p,
|
|
2105
2107
|
strokeLinecap: "round"
|
|
2106
2108
|
})]
|
|
2107
2109
|
}), /* @__PURE__ */ Q("span", {
|
|
2108
|
-
className:
|
|
2110
|
+
className: x.value(),
|
|
2109
2111
|
"aria-hidden": "true",
|
|
2110
|
-
children:
|
|
2112
|
+
children: j
|
|
2111
2113
|
})]
|
|
2112
2114
|
}),
|
|
2113
2115
|
_ && /* @__PURE__ */ Q("input", {
|
|
2114
2116
|
type: "hidden",
|
|
2115
2117
|
name: _,
|
|
2116
|
-
value:
|
|
2118
|
+
value: O
|
|
2117
2119
|
})
|
|
2118
2120
|
]
|
|
2119
2121
|
});
|
|
@@ -2147,12 +2149,13 @@ function Af({ mask: e, value: t, defaultValue: n = "", onValueChange: r, onCompl
|
|
|
2147
2149
|
//#endregion
|
|
2148
2150
|
//#region src/components/PinInput/PinInput.tsx
|
|
2149
2151
|
var jf = (e) => e === void 0 ? void 0 : e.split("");
|
|
2150
|
-
function Mf({ classes: t, length: r = 6, value: i, defaultValue: a, onValueChange: o, onValueComplete: s, type: c = "numeric", otp: l = !0, mask: u, placeholder: d = "", invalid: f, disabled: p, name: m, "aria-label": h, id: g, className: _, style: v }) {
|
|
2152
|
+
function Mf({ classes: t, length: r = 6, value: i, defaultValue: a, onValueChange: o, onValueComplete: s, type: c = "numeric", otp: l = !0, mask: u, placeholder: d = "", invalid: f, disabled: p, name: m, "aria-label": h, id: g, className: _, style: v, ...y }) {
|
|
2151
2153
|
I("PinInput", g);
|
|
2152
|
-
let
|
|
2154
|
+
let b = n("pinInput", ja, t)(), x = e(), S = au();
|
|
2153
2155
|
return /* @__PURE__ */ $(Mu.Root, {
|
|
2156
|
+
...y,
|
|
2154
2157
|
...Lt(g, "root"),
|
|
2155
|
-
className:
|
|
2158
|
+
className: b.base({ class: _ }),
|
|
2156
2159
|
style: v,
|
|
2157
2160
|
count: r,
|
|
2158
2161
|
value: jf(i),
|
|
@@ -2167,28 +2170,29 @@ function Mf({ classes: t, length: r = 6, value: i, defaultValue: a, onValueChang
|
|
|
2167
2170
|
invalid: f,
|
|
2168
2171
|
disabled: p,
|
|
2169
2172
|
name: m,
|
|
2170
|
-
translations:
|
|
2173
|
+
translations: x.pinInput,
|
|
2171
2174
|
children: [/* @__PURE__ */ Q(Mu.Control, {
|
|
2172
|
-
className:
|
|
2175
|
+
className: b.control(),
|
|
2173
2176
|
role: "group",
|
|
2174
|
-
"aria-labelledby":
|
|
2175
|
-
"aria-label":
|
|
2176
|
-
"aria-describedby":
|
|
2177
|
+
"aria-labelledby": S?.ids.label,
|
|
2178
|
+
"aria-label": S ? void 0 : h,
|
|
2179
|
+
"aria-describedby": S?.ariaDescribedby,
|
|
2177
2180
|
children: Array.from({ length: r }, (e, t) => /* @__PURE__ */ Q(Mu.Input, {
|
|
2178
2181
|
index: t,
|
|
2179
|
-
className:
|
|
2182
|
+
className: b.input()
|
|
2180
2183
|
}, t))
|
|
2181
2184
|
}), /* @__PURE__ */ Q(Mu.HiddenInput, {})]
|
|
2182
2185
|
});
|
|
2183
2186
|
}
|
|
2184
2187
|
//#endregion
|
|
2185
2188
|
//#region src/components/Rating/Rating.tsx
|
|
2186
|
-
function Nf({ classes: t, value: r, defaultValue: i, onValueChange: a, count: o = 5, allowHalf: s, allowClear: c = !1, icon: l = jl, readOnly: u, disabled: d, label: f, "aria-label": p, id: m, size: h, name: g, className: _, style: v }) {
|
|
2189
|
+
function Nf({ classes: t, value: r, defaultValue: i, onValueChange: a, count: o = 5, allowHalf: s, allowClear: c = !1, icon: l = jl, readOnly: u, disabled: d, label: f, "aria-label": p, id: m, size: h, name: g, className: _, style: v, ...y }) {
|
|
2187
2190
|
I("Rating", m);
|
|
2188
|
-
let
|
|
2191
|
+
let b = n("rating", Ja, t), x = e(), S = b({ size: h }), C = X(null);
|
|
2189
2192
|
return /* @__PURE__ */ $(Nu.Root, {
|
|
2193
|
+
...y,
|
|
2190
2194
|
...Lt(m, "root"),
|
|
2191
|
-
className:
|
|
2195
|
+
className: S.base({ class: _ }),
|
|
2192
2196
|
style: v,
|
|
2193
2197
|
count: o,
|
|
2194
2198
|
value: r,
|
|
@@ -2199,33 +2203,33 @@ function Nf({ classes: t, value: r, defaultValue: i, onValueChange: a, count: o
|
|
|
2199
2203
|
disabled: d,
|
|
2200
2204
|
name: g,
|
|
2201
2205
|
"aria-label": f ? void 0 : p,
|
|
2202
|
-
translations:
|
|
2206
|
+
translations: x.rating,
|
|
2203
2207
|
children: [
|
|
2204
2208
|
f && /* @__PURE__ */ Q(Nu.Label, {
|
|
2205
|
-
className:
|
|
2209
|
+
className: S.label(),
|
|
2206
2210
|
children: f
|
|
2207
2211
|
}),
|
|
2208
2212
|
/* @__PURE__ */ Q(Nu.Control, {
|
|
2209
|
-
className:
|
|
2213
|
+
className: S.control(),
|
|
2210
2214
|
children: /* @__PURE__ */ Q(Nu.Context, { children: (e) => e.items.map((t) => /* @__PURE__ */ Q(Nu.Item, {
|
|
2211
2215
|
index: t,
|
|
2212
|
-
className:
|
|
2213
|
-
onPointerDown: () =>
|
|
2216
|
+
className: S.item(),
|
|
2217
|
+
onPointerDown: () => C.current = e.value,
|
|
2214
2218
|
onClick: () => {
|
|
2215
2219
|
let n = e.hoveredValue > 0 ? e.hoveredValue : t;
|
|
2216
|
-
c &&
|
|
2220
|
+
c && C.current === n && e.clearValue(), C.current = null;
|
|
2217
2221
|
},
|
|
2218
2222
|
onKeyDown: (t) => {
|
|
2219
2223
|
!c || t.key !== "Delete" && t.key !== "Backspace" || (t.preventDefault(), e.clearValue());
|
|
2220
2224
|
},
|
|
2221
2225
|
children: /* @__PURE__ */ Q(Nu.ItemContext, { children: (e) => /* @__PURE__ */ $($l, { children: [/* @__PURE__ */ Q(l, {
|
|
2222
|
-
className:
|
|
2226
|
+
className: S.icon(),
|
|
2223
2227
|
fill: e.highlighted && !e.half ? "currentColor" : "none",
|
|
2224
2228
|
"aria-hidden": "true"
|
|
2225
2229
|
}), e.half && /* @__PURE__ */ Q("span", {
|
|
2226
|
-
className:
|
|
2230
|
+
className: S.half(),
|
|
2227
2231
|
children: /* @__PURE__ */ Q(l, {
|
|
2228
|
-
className:
|
|
2232
|
+
className: S.icon(),
|
|
2229
2233
|
fill: "currentColor",
|
|
2230
2234
|
"aria-hidden": "true"
|
|
2231
2235
|
})
|
|
@@ -2243,102 +2247,102 @@ var Pf = {
|
|
|
2243
2247
|
children: {},
|
|
2244
2248
|
errors: {}
|
|
2245
2249
|
};
|
|
2246
|
-
function Ff({ classes: e, items: r, value: i, defaultValue: a = null, onValueChange: o, placeholder: s, separator: c = " › ", disabled: l, invalid: u, valueKey: d, changeOnSelect: f = !1, expandTrigger: p = "hover", filter: m = !1, clearable: h = !1, loading: g = !1, size: _, loadChildren: v, onLoadChildren: y, dataSource: b, "aria-label": x, id: S, className: C, style: w }) {
|
|
2247
|
-
let
|
|
2250
|
+
function Ff({ classes: e, items: r, value: i, defaultValue: a = null, onValueChange: o, placeholder: s, separator: c = " › ", disabled: l, invalid: u, valueKey: d, changeOnSelect: f = !1, expandTrigger: p = "hover", filter: m = !1, clearable: h = !1, loading: g = !1, size: _, loadChildren: v, onLoadChildren: y, dataSource: b, "aria-label": x, id: S, className: C, style: w, ...T }) {
|
|
2251
|
+
let E = n("cascadeSelect", at, e)({
|
|
2248
2252
|
size: _,
|
|
2249
2253
|
clearable: h && !m
|
|
2250
|
-
}), { translations:
|
|
2254
|
+
}), { translations: D, locale: O } = t(), k = au(), A = ql(), j = (e) => Si(e.value, d), [M, N] = Z(""), [P, F] = Z(Pf), I = X(Pf), [L, R] = Z(() => /* @__PURE__ */ new Set()), z = Xl(() => cc(r, P.children, (e) => Si(e.value, d)), [
|
|
2251
2255
|
r,
|
|
2252
|
-
|
|
2256
|
+
P.children,
|
|
2253
2257
|
d
|
|
2254
|
-
]),
|
|
2258
|
+
]), B = X({
|
|
2255
2259
|
loadChildren: v,
|
|
2256
2260
|
dataSource: b,
|
|
2257
2261
|
valueKey: d,
|
|
2258
|
-
items:
|
|
2262
|
+
items: z
|
|
2259
2263
|
});
|
|
2260
2264
|
Y(() => {
|
|
2261
|
-
|
|
2265
|
+
B.current = {
|
|
2262
2266
|
loadChildren: v,
|
|
2263
2267
|
dataSource: b,
|
|
2264
2268
|
valueKey: d,
|
|
2265
|
-
items:
|
|
2269
|
+
items: z
|
|
2266
2270
|
};
|
|
2267
2271
|
});
|
|
2268
|
-
let
|
|
2272
|
+
let V = (e, t = z, n = []) => {
|
|
2269
2273
|
if (e !== null) for (let r of t) {
|
|
2270
|
-
if (
|
|
2271
|
-
let t = r.children &&
|
|
2274
|
+
if (j(r) === e) return [...n, r];
|
|
2275
|
+
let t = r.children && V(e, r.children, [...n, r]);
|
|
2272
2276
|
if (t) return t;
|
|
2273
2277
|
}
|
|
2274
|
-
},
|
|
2275
|
-
key: (e) => Si(e.value,
|
|
2276
|
-
load: (e, t) =>
|
|
2278
|
+
}, H = X(void 0), ee = () => H.current ??= new de({
|
|
2279
|
+
key: (e) => Si(e.value, B.current.valueKey),
|
|
2280
|
+
load: (e, t) => B.current.loadChildren ? B.current.loadChildren(e, t) : B.current.dataSource.getChildren(e, t).then((e) => e.items),
|
|
2277
2281
|
onChange: (e) => {
|
|
2278
|
-
let t =
|
|
2279
|
-
|
|
2282
|
+
let t = I.current.status;
|
|
2283
|
+
I.current = e;
|
|
2280
2284
|
for (let [n, r] of Object.entries(e.status)) {
|
|
2281
2285
|
if (t[n] === r) continue;
|
|
2282
|
-
let i =
|
|
2283
|
-
|
|
2286
|
+
let i = V(n, B.current.items)?.at(-1)?.label ?? n;
|
|
2287
|
+
N(r === "loading" ? D.tree.loadingNode(i) : r === "error" ? D.tree.loadError(i) : Na(D.tree.loadedNode, e.children[n]?.length ?? 0, O).replace("{label}", i));
|
|
2284
2288
|
}
|
|
2285
|
-
|
|
2289
|
+
F(e);
|
|
2286
2290
|
}
|
|
2287
2291
|
});
|
|
2288
2292
|
Y(() => () => {
|
|
2289
|
-
|
|
2293
|
+
H.current?.dispose(), H.current = void 0;
|
|
2290
2294
|
}, []);
|
|
2291
|
-
let
|
|
2292
|
-
ei(e) && (
|
|
2293
|
-
},
|
|
2294
|
-
|
|
2295
|
-
}, [
|
|
2296
|
-
let t =
|
|
2295
|
+
let W = !!v || !!b?.getChildren, G = (e) => ei(e) ? P.status[j(e)] ?? (L.has(j(e)) ? "loading" : void 0) : void 0, te = (e) => {
|
|
2296
|
+
ei(e) && (W ? ee().load(e) : L.has(j(e)) || (R((t) => /* @__PURE__ */ new Set([...t, j(e)])), N(D.tree.loadingNode(e.label)), y?.(e)));
|
|
2297
|
+
}, K = (e) => {
|
|
2298
|
+
W ? ee().load(e, { force: !0 }) : y?.(e);
|
|
2299
|
+
}, [ne, re] = Z(a), q = i === void 0 ? ne : i, ie = q == null ? null : Si(q, d), [ae, oe] = Z(void 0), se = V(ie) ?? (ae && j(ae.at(-1)) === ie ? ae : void 0), ce = se?.map((e) => e.label).join(c), le = s ?? D.common.placeholder, ue = ce ?? le, fe = l ?? k?.disabled, pe = u ?? k?.invalid, me = (e) => {
|
|
2300
|
+
let t = V(e);
|
|
2297
2301
|
if (!t) return;
|
|
2298
|
-
|
|
2302
|
+
oe(t);
|
|
2299
2303
|
let n = t.at(-1).value;
|
|
2300
|
-
|
|
2301
|
-
},
|
|
2302
|
-
|
|
2303
|
-
},
|
|
2304
|
-
h &&
|
|
2305
|
-
},
|
|
2306
|
-
value:
|
|
2307
|
-
onValueChange: (e) =>
|
|
2304
|
+
re(n), o?.(n);
|
|
2305
|
+
}, he = () => {
|
|
2306
|
+
re(null), o?.(null);
|
|
2307
|
+
}, ge = (e) => {
|
|
2308
|
+
h && se && (e.key === "Backspace" || e.key === "Delete") && (e.preventDefault(), he());
|
|
2309
|
+
}, J = p === "click" ? { onPointerMoveCapture: (e) => e.stopPropagation() } : {}, ve = (e, t, n) => /* @__PURE__ */ $(tu.RadioItemGroup, {
|
|
2310
|
+
value: ie ?? "",
|
|
2311
|
+
onValueChange: (e) => me(e.value),
|
|
2308
2312
|
children: [
|
|
2309
2313
|
t && f && /* @__PURE__ */ $(tu.RadioItem, {
|
|
2310
|
-
value:
|
|
2311
|
-
className:
|
|
2314
|
+
value: j(t),
|
|
2315
|
+
className: E.item(),
|
|
2312
2316
|
children: [/* @__PURE__ */ Q(tu.ItemText, {
|
|
2313
|
-
className:
|
|
2314
|
-
children:
|
|
2317
|
+
className: E.text(),
|
|
2318
|
+
children: D.cascadeSelect.choose(t.label)
|
|
2315
2319
|
}), /* @__PURE__ */ Q(tu.ItemIndicator, { children: /* @__PURE__ */ Q(Tc, {
|
|
2316
|
-
className:
|
|
2320
|
+
className: E.check(),
|
|
2317
2321
|
"aria-hidden": "true"
|
|
2318
2322
|
}) })]
|
|
2319
2323
|
}),
|
|
2320
2324
|
n === "loading" ? /* @__PURE__ */ $(tu.Item, {
|
|
2321
2325
|
value: "",
|
|
2322
2326
|
disabled: !0,
|
|
2323
|
-
className:
|
|
2327
|
+
className: E.item(),
|
|
2324
2328
|
children: [/* @__PURE__ */ Q(el, {
|
|
2325
|
-
className:
|
|
2329
|
+
className: E.loadingIcon(),
|
|
2326
2330
|
"aria-hidden": "true"
|
|
2327
2331
|
}), /* @__PURE__ */ Q("span", {
|
|
2328
|
-
className:
|
|
2329
|
-
children:
|
|
2332
|
+
className: E.text(),
|
|
2333
|
+
children: D.common.loading
|
|
2330
2334
|
})]
|
|
2331
2335
|
}) : n === "error" && t ? /* @__PURE__ */ $(tu.Item, {
|
|
2332
|
-
value: `${
|
|
2336
|
+
value: `${j(t)}\u0000retry`,
|
|
2333
2337
|
closeOnSelect: !1,
|
|
2334
|
-
className:
|
|
2335
|
-
onSelect: () =>
|
|
2338
|
+
className: E.item({ class: E.retry() }),
|
|
2339
|
+
onSelect: () => K(t),
|
|
2336
2340
|
children: [/* @__PURE__ */ Q(xl, {
|
|
2337
|
-
className:
|
|
2341
|
+
className: E.icon({ class: E.retry() }),
|
|
2338
2342
|
"aria-hidden": "true"
|
|
2339
2343
|
}), /* @__PURE__ */ Q("span", {
|
|
2340
|
-
className:
|
|
2341
|
-
children:
|
|
2344
|
+
className: E.text(),
|
|
2345
|
+
children: D.tree.retry
|
|
2342
2346
|
})]
|
|
2343
2347
|
}) : null,
|
|
2344
2348
|
e.map((e) => e.children || ei(e) ? /* @__PURE__ */ $(tu.Root, {
|
|
@@ -2346,108 +2350,109 @@ function Ff({ classes: e, items: r, value: i, defaultValue: a = null, onValueCha
|
|
|
2346
2350
|
placement: "right-start",
|
|
2347
2351
|
offset: { mainAxis: _e }
|
|
2348
2352
|
},
|
|
2349
|
-
onOpenChange: (t) => t.open &&
|
|
2353
|
+
onOpenChange: (t) => t.open && te(e),
|
|
2350
2354
|
children: [/* @__PURE__ */ $(tu.TriggerItem, {
|
|
2351
|
-
className:
|
|
2352
|
-
...
|
|
2355
|
+
className: E.item(),
|
|
2356
|
+
...J,
|
|
2353
2357
|
children: [
|
|
2354
2358
|
e.icon && /* @__PURE__ */ Q(e.icon, {
|
|
2355
|
-
className:
|
|
2359
|
+
className: E.icon(),
|
|
2356
2360
|
"aria-hidden": "true"
|
|
2357
2361
|
}),
|
|
2358
2362
|
/* @__PURE__ */ Q("span", {
|
|
2359
|
-
className:
|
|
2363
|
+
className: E.text(),
|
|
2360
2364
|
children: e.label
|
|
2361
2365
|
}),
|
|
2362
2366
|
/* @__PURE__ */ Q(kc, {
|
|
2363
|
-
className:
|
|
2367
|
+
className: E.submenuIcon(),
|
|
2364
2368
|
"aria-hidden": "true"
|
|
2365
2369
|
})
|
|
2366
2370
|
]
|
|
2367
2371
|
}), /* @__PURE__ */ Q(nu, { children: /* @__PURE__ */ Q(tu.Positioner, { children: /* @__PURE__ */ Q(tu.Content, {
|
|
2368
|
-
className:
|
|
2369
|
-
children:
|
|
2372
|
+
className: E.content(),
|
|
2373
|
+
children: ve(e.children ?? [], e, G(e))
|
|
2370
2374
|
}) }) })]
|
|
2371
|
-
},
|
|
2372
|
-
value:
|
|
2375
|
+
}, j(e)) : /* @__PURE__ */ $(tu.RadioItem, {
|
|
2376
|
+
value: j(e),
|
|
2373
2377
|
disabled: e.disabled,
|
|
2374
|
-
className:
|
|
2378
|
+
className: E.item(),
|
|
2375
2379
|
children: [
|
|
2376
2380
|
e.icon && /* @__PURE__ */ Q(e.icon, {
|
|
2377
|
-
className:
|
|
2381
|
+
className: E.icon(),
|
|
2378
2382
|
"aria-hidden": "true"
|
|
2379
2383
|
}),
|
|
2380
2384
|
/* @__PURE__ */ Q(tu.ItemText, {
|
|
2381
|
-
className:
|
|
2385
|
+
className: E.text(),
|
|
2382
2386
|
children: e.label
|
|
2383
2387
|
}),
|
|
2384
2388
|
/* @__PURE__ */ Q(tu.ItemIndicator, { children: /* @__PURE__ */ Q(Tc, {
|
|
2385
|
-
className:
|
|
2389
|
+
className: E.check(),
|
|
2386
2390
|
"aria-hidden": "true"
|
|
2387
2391
|
}) })
|
|
2388
2392
|
]
|
|
2389
|
-
},
|
|
2393
|
+
}, j(e)))
|
|
2390
2394
|
]
|
|
2391
|
-
}), [
|
|
2392
|
-
|
|
2393
|
-
|
|
2395
|
+
}), [ye, be] = Z(!1), [xe, Se] = Z(""), Ce = Xl(() => yo(z, xe, (e) => e.label, { changeOnSelect: f }), [
|
|
2396
|
+
z,
|
|
2397
|
+
xe,
|
|
2394
2398
|
f
|
|
2395
|
-
]),
|
|
2396
|
-
items:
|
|
2399
|
+
]), we = Xl(() => du({
|
|
2400
|
+
items: Ce,
|
|
2397
2401
|
itemToString: (e) => e.labels.join(c),
|
|
2398
2402
|
itemToValue: (e) => Si(e.node.value, d),
|
|
2399
2403
|
isItemDisabled: () => !1
|
|
2400
2404
|
}), [
|
|
2401
|
-
|
|
2405
|
+
Ce,
|
|
2402
2406
|
c,
|
|
2403
2407
|
d
|
|
2404
|
-
]),
|
|
2408
|
+
]), Te = v || b || L.size ? /* @__PURE__ */ Q("span", {
|
|
2405
2409
|
role: "status",
|
|
2406
|
-
className:
|
|
2407
|
-
children:
|
|
2410
|
+
className: E.status(),
|
|
2411
|
+
children: M
|
|
2408
2412
|
}) : null;
|
|
2409
2413
|
if (m) return /* @__PURE__ */ $(Cu.Root, {
|
|
2410
|
-
|
|
2414
|
+
...T,
|
|
2415
|
+
className: E.base({ class: C }),
|
|
2411
2416
|
style: w,
|
|
2412
|
-
collection:
|
|
2413
|
-
value:
|
|
2414
|
-
inputValue:
|
|
2415
|
-
disabled:
|
|
2416
|
-
invalid:
|
|
2417
|
-
placeholder:
|
|
2417
|
+
collection: we,
|
|
2418
|
+
value: ie ? [ie] : [],
|
|
2419
|
+
inputValue: ye ? xe : ce ?? "",
|
|
2420
|
+
disabled: fe,
|
|
2421
|
+
invalid: pe,
|
|
2422
|
+
placeholder: le,
|
|
2418
2423
|
positioning: {
|
|
2419
2424
|
sameWidth: !0,
|
|
2420
2425
|
gutter: 4
|
|
2421
2426
|
},
|
|
2422
|
-
translations:
|
|
2427
|
+
translations: D.combobox,
|
|
2423
2428
|
openOnClick: !1,
|
|
2424
2429
|
...Lt(S, "input", {
|
|
2425
|
-
label:
|
|
2426
|
-
input:
|
|
2430
|
+
label: k?.ids.label,
|
|
2431
|
+
input: k?.ids.control
|
|
2427
2432
|
}),
|
|
2428
2433
|
lazyMount: !0,
|
|
2429
2434
|
unmountOnExit: !0,
|
|
2430
2435
|
onValueChange: (e) => {
|
|
2431
|
-
|
|
2436
|
+
be(!1), Se(""), e.value[0] ? me(e.value[0]) : he();
|
|
2432
2437
|
},
|
|
2433
2438
|
onInputValueChange: (e) => {
|
|
2434
2439
|
let t = e.reason === "input-change";
|
|
2435
|
-
|
|
2440
|
+
be(t), Se(t ? e.inputValue : "");
|
|
2436
2441
|
},
|
|
2437
2442
|
children: [
|
|
2438
2443
|
/* @__PURE__ */ $(Cu.Control, {
|
|
2439
|
-
className:
|
|
2440
|
-
"data-invalid":
|
|
2444
|
+
className: E.searchControl(),
|
|
2445
|
+
"data-invalid": pe || void 0,
|
|
2441
2446
|
children: [
|
|
2442
2447
|
/* @__PURE__ */ Q(Cu.Input, {
|
|
2443
|
-
className:
|
|
2444
|
-
"aria-label":
|
|
2448
|
+
className: E.searchInput(),
|
|
2449
|
+
"aria-label": k ? void 0 : x ?? D.cascadeSelect.search,
|
|
2445
2450
|
"aria-busy": g || void 0
|
|
2446
2451
|
}),
|
|
2447
2452
|
h && /* @__PURE__ */ Q(Cu.ClearTrigger, {
|
|
2448
|
-
className:
|
|
2453
|
+
className: E.levelsTrigger(),
|
|
2449
2454
|
children: /* @__PURE__ */ Q(zl, {
|
|
2450
|
-
className:
|
|
2455
|
+
className: E.clearIcon(),
|
|
2451
2456
|
"aria-hidden": "true"
|
|
2452
2457
|
})
|
|
2453
2458
|
}),
|
|
@@ -2459,80 +2464,80 @@ function Ff({ classes: e, items: r, value: i, defaultValue: a = null, onValueCha
|
|
|
2459
2464
|
lazyMount: !0,
|
|
2460
2465
|
unmountOnExit: !0,
|
|
2461
2466
|
children: [/* @__PURE__ */ Q(tu.Trigger, {
|
|
2462
|
-
className:
|
|
2463
|
-
disabled:
|
|
2464
|
-
"aria-label":
|
|
2467
|
+
className: E.levelsTrigger(),
|
|
2468
|
+
disabled: fe,
|
|
2469
|
+
"aria-label": D.cascadeSelect.showLevels,
|
|
2465
2470
|
children: g ? /* @__PURE__ */ Q(el, {
|
|
2466
|
-
className:
|
|
2471
|
+
className: E.loadingIcon(),
|
|
2467
2472
|
"aria-hidden": "true"
|
|
2468
2473
|
}) : /* @__PURE__ */ Q(Dc, {
|
|
2469
|
-
className:
|
|
2474
|
+
className: E.indicatorIcon(),
|
|
2470
2475
|
"aria-hidden": "true"
|
|
2471
2476
|
})
|
|
2472
2477
|
}), /* @__PURE__ */ Q(nu, { children: /* @__PURE__ */ Q(tu.Positioner, { children: /* @__PURE__ */ Q(tu.Content, {
|
|
2473
|
-
className:
|
|
2474
|
-
children:
|
|
2478
|
+
className: E.content(),
|
|
2479
|
+
children: ve(z)
|
|
2475
2480
|
}) }) })]
|
|
2476
2481
|
})
|
|
2477
2482
|
]
|
|
2478
2483
|
}),
|
|
2479
2484
|
/* @__PURE__ */ Q(nu, { children: /* @__PURE__ */ Q(Cu.Positioner, { children: /* @__PURE__ */ $(Cu.Content, {
|
|
2480
|
-
className:
|
|
2485
|
+
className: E.results(),
|
|
2481
2486
|
children: [/* @__PURE__ */ Q(Cu.Empty, {
|
|
2482
|
-
className:
|
|
2483
|
-
children:
|
|
2484
|
-
}),
|
|
2487
|
+
className: E.empty(),
|
|
2488
|
+
children: D.common.noResults
|
|
2489
|
+
}), Ce.map((e) => /* @__PURE__ */ $(Cu.Item, {
|
|
2485
2490
|
item: e,
|
|
2486
|
-
className:
|
|
2491
|
+
className: E.item(),
|
|
2487
2492
|
children: [
|
|
2488
2493
|
e.node.icon && /* @__PURE__ */ Q(e.node.icon, {
|
|
2489
|
-
className:
|
|
2494
|
+
className: E.icon(),
|
|
2490
2495
|
"aria-hidden": "true"
|
|
2491
2496
|
}),
|
|
2492
2497
|
/* @__PURE__ */ Q(Cu.ItemText, {
|
|
2493
|
-
className:
|
|
2498
|
+
className: E.path(),
|
|
2494
2499
|
children: /* @__PURE__ */ Q(U, {
|
|
2495
2500
|
text: e.labels.join(c),
|
|
2496
|
-
query:
|
|
2501
|
+
query: xe.split(/\s+/),
|
|
2497
2502
|
ignoreAccents: !0
|
|
2498
2503
|
})
|
|
2499
2504
|
}),
|
|
2500
2505
|
/* @__PURE__ */ Q(Cu.ItemIndicator, { children: /* @__PURE__ */ Q(Tc, {
|
|
2501
|
-
className:
|
|
2506
|
+
className: E.check(),
|
|
2502
2507
|
"aria-hidden": "true"
|
|
2503
2508
|
}) })
|
|
2504
2509
|
]
|
|
2505
|
-
},
|
|
2510
|
+
}, j(e.node)))]
|
|
2506
2511
|
}) }) }),
|
|
2507
2512
|
/* @__PURE__ */ Q("span", {
|
|
2508
2513
|
role: "status",
|
|
2509
|
-
className:
|
|
2510
|
-
children:
|
|
2514
|
+
className: E.status(),
|
|
2515
|
+
children: M
|
|
2511
2516
|
})
|
|
2512
2517
|
]
|
|
2513
2518
|
});
|
|
2514
|
-
let
|
|
2515
|
-
className:
|
|
2516
|
-
disabled:
|
|
2517
|
-
"data-invalid":
|
|
2518
|
-
"data-disabled":
|
|
2519
|
-
"aria-invalid":
|
|
2519
|
+
let Ee = {
|
|
2520
|
+
className: E.trigger(),
|
|
2521
|
+
disabled: fe,
|
|
2522
|
+
"data-invalid": pe || void 0,
|
|
2523
|
+
"data-disabled": fe || void 0,
|
|
2524
|
+
"aria-invalid": pe || void 0,
|
|
2520
2525
|
"aria-busy": g || void 0,
|
|
2521
|
-
"aria-label":
|
|
2522
|
-
"aria-labelledby":
|
|
2523
|
-
"aria-describedby":
|
|
2524
|
-
},
|
|
2525
|
-
id: `${
|
|
2526
|
-
className:
|
|
2527
|
-
"data-placeholder-shown": !
|
|
2528
|
-
children:
|
|
2526
|
+
"aria-label": k ? void 0 : x ? `${x}: ${ue}` : void 0,
|
|
2527
|
+
"aria-labelledby": k ? `${k.ids.label} ${A}value` : void 0,
|
|
2528
|
+
"aria-describedby": k ? k.ariaDescribedby : S && !x ? `${A}value` : void 0
|
|
2529
|
+
}, De = /* @__PURE__ */ $($l, { children: [/* @__PURE__ */ Q("span", {
|
|
2530
|
+
id: `${A}value`,
|
|
2531
|
+
className: E.value(),
|
|
2532
|
+
"data-placeholder-shown": !se || void 0,
|
|
2533
|
+
children: ue
|
|
2529
2534
|
}), /* @__PURE__ */ Q(tu.Indicator, {
|
|
2530
|
-
className:
|
|
2535
|
+
className: E.indicator(),
|
|
2531
2536
|
children: g ? /* @__PURE__ */ Q(el, {
|
|
2532
|
-
className:
|
|
2537
|
+
className: E.spinner(),
|
|
2533
2538
|
"aria-hidden": "true"
|
|
2534
2539
|
}) : /* @__PURE__ */ Q(Dc, {
|
|
2535
|
-
className:
|
|
2540
|
+
className: E.indicatorIcon(),
|
|
2536
2541
|
"aria-hidden": "true"
|
|
2537
2542
|
})
|
|
2538
2543
|
})] });
|
|
@@ -2546,168 +2551,169 @@ function Ff({ classes: e, items: r, value: i, defaultValue: a = null, onValueCha
|
|
|
2546
2551
|
unmountOnExit: !0,
|
|
2547
2552
|
children: [
|
|
2548
2553
|
/* @__PURE__ */ Q("div", {
|
|
2549
|
-
|
|
2554
|
+
...T,
|
|
2555
|
+
className: E.base({ class: C }),
|
|
2550
2556
|
style: w,
|
|
2551
2557
|
children: h ? /* @__PURE__ */ $("div", {
|
|
2552
|
-
className:
|
|
2558
|
+
className: E.control(),
|
|
2553
2559
|
children: [/* @__PURE__ */ Q(tu.Trigger, {
|
|
2554
|
-
...
|
|
2555
|
-
onKeyDown:
|
|
2556
|
-
children:
|
|
2557
|
-
}),
|
|
2560
|
+
...Ee,
|
|
2561
|
+
onKeyDown: ge,
|
|
2562
|
+
children: De
|
|
2563
|
+
}), se && !fe && /* @__PURE__ */ Q("button", {
|
|
2558
2564
|
type: "button",
|
|
2559
2565
|
tabIndex: -1,
|
|
2560
|
-
className:
|
|
2561
|
-
"aria-label":
|
|
2562
|
-
onClick:
|
|
2566
|
+
className: E.clear(),
|
|
2567
|
+
"aria-label": D.select.clear,
|
|
2568
|
+
onClick: he,
|
|
2563
2569
|
children: /* @__PURE__ */ Q(zl, {
|
|
2564
|
-
className:
|
|
2570
|
+
className: E.clearIcon(),
|
|
2565
2571
|
"aria-hidden": "true"
|
|
2566
2572
|
})
|
|
2567
2573
|
})]
|
|
2568
2574
|
}) : /* @__PURE__ */ Q(tu.Trigger, {
|
|
2569
|
-
...
|
|
2570
|
-
children:
|
|
2575
|
+
...Ee,
|
|
2576
|
+
children: De
|
|
2571
2577
|
})
|
|
2572
2578
|
}),
|
|
2573
2579
|
/* @__PURE__ */ Q(nu, { children: /* @__PURE__ */ Q(tu.Positioner, { children: /* @__PURE__ */ Q(tu.Content, {
|
|
2574
|
-
className:
|
|
2575
|
-
children:
|
|
2580
|
+
className: E.content(),
|
|
2581
|
+
children: ve(z)
|
|
2576
2582
|
}) }) }),
|
|
2577
|
-
|
|
2583
|
+
Te
|
|
2578
2584
|
]
|
|
2579
2585
|
});
|
|
2580
2586
|
}
|
|
2581
2587
|
//#endregion
|
|
2582
2588
|
//#region src/components/TreeSelect/TreeSelect.tsx
|
|
2583
|
-
function If({ classes: t, items: r, value: i, defaultValue: a, onValueChange: o, placeholder: s, leavesOnly: c = !1, defaultExpandedValue: l, disabled: u, invalid: d, multiple: f = !1, checkedStrategy: p = "parent", checkStrictly: m = !1, maxShown: h, filter: g = !1, clearable: _ = !1, loading: v = !1, size: y, loadChildren: b, onLoadChildren: x, dataSource: S, "aria-label": C, id: w, className: T, style: E }) {
|
|
2584
|
-
let
|
|
2589
|
+
function If({ classes: t, items: r, value: i, defaultValue: a, onValueChange: o, placeholder: s, leavesOnly: c = !1, defaultExpandedValue: l, disabled: u, invalid: d, multiple: f = !1, checkedStrategy: p = "parent", checkStrictly: m = !1, maxShown: h, filter: g = !1, clearable: _ = !1, loading: v = !1, size: y, loadChildren: b, onLoadChildren: x, dataSource: S, "aria-label": C, id: w, className: T, style: E, ...D }) {
|
|
2590
|
+
let O = n("treeSelect", Gs, t)({
|
|
2585
2591
|
size: y,
|
|
2586
2592
|
clearable: _ && !f
|
|
2587
|
-
}),
|
|
2588
|
-
let e = (e) => (t) => (
|
|
2593
|
+
}), k = e(), A = k.treeSelect, j = s ?? k.common.placeholder, M = au(), N = ql(), [P, F] = Z(!1), [I, L] = Z(a ?? (f ? [] : null)), R = i === void 0 ? I : i, z = Array.isArray(R) ? R : R == null ? [] : [R], [B, V] = Z({}), H = Xl(() => cc(r, B), [r, B]), ee = Xl(() => {
|
|
2594
|
+
let e = (e) => (t) => (V((n) => ({
|
|
2589
2595
|
...n,
|
|
2590
2596
|
[e.id]: t
|
|
2591
2597
|
})), t);
|
|
2592
2598
|
if (b) return (t, n) => b(t, n).then(e(t));
|
|
2593
2599
|
if (S?.getChildren) return (t, n) => S.getChildren(t, n).then((n) => e(t)(n.items));
|
|
2594
|
-
}, [b, S]),
|
|
2600
|
+
}, [b, S]), U = f ? void 0 : ce(H, z[0]), W = U?.at(-1), G = z.map((e) => ce(H, e)?.at(-1) ?? {
|
|
2595
2601
|
id: e,
|
|
2596
2602
|
label: e
|
|
2597
|
-
}),
|
|
2598
|
-
|
|
2599
|
-
},
|
|
2600
|
-
|
|
2601
|
-
},
|
|
2602
|
-
|
|
2603
|
-
},
|
|
2604
|
-
className:
|
|
2603
|
+
}), te = h === void 0 ? G : G.slice(0, h), K = G.length - te.length, ne = u ?? M?.disabled, re = d ?? M?.invalid, q = l ?? (f ? [...new Set(z.flatMap((e) => ce(H, e)?.slice(0, -1).map((e) => e.id) ?? []))] : U?.slice(0, -1).map((e) => e.id)), [ie, ae] = Z(""), oe = (e) => {
|
|
2604
|
+
L(e), o?.(e);
|
|
2605
|
+
}, se = (e) => {
|
|
2606
|
+
oe(z.filter((t) => t !== e.id)), ae(k.select.removed(e.label));
|
|
2607
|
+
}, ue = () => oe(f ? [] : null), de = (e) => {
|
|
2608
|
+
z.length && !ne && (f && e.key === "Backspace" ? (e.preventDefault(), se(G.at(-1))) : _ && (e.key === "Delete" || e.key === "Backspace") && (e.preventDefault(), ue()));
|
|
2609
|
+
}, fe = f ? G.map((e) => e.label).join(", ") : W?.label ?? "", pe = M ? void 0 : C ? `${C}: ${fe || j}` : void 0, me = v ? /* @__PURE__ */ Q("span", {
|
|
2610
|
+
className: O.indicator(),
|
|
2605
2611
|
"aria-hidden": "true",
|
|
2606
|
-
children: /* @__PURE__ */ Q(el, { className:
|
|
2612
|
+
children: /* @__PURE__ */ Q(el, { className: O.spinner() })
|
|
2607
2613
|
}) : /* @__PURE__ */ Q(Dc, {
|
|
2608
|
-
className:
|
|
2609
|
-
"data-state":
|
|
2614
|
+
className: O.indicator(),
|
|
2615
|
+
"data-state": P ? "open" : "closed",
|
|
2610
2616
|
"aria-hidden": "true"
|
|
2611
|
-
}),
|
|
2612
|
-
disabled:
|
|
2613
|
-
"aria-invalid":
|
|
2617
|
+
}), he = {
|
|
2618
|
+
disabled: ne,
|
|
2619
|
+
"aria-invalid": re || void 0,
|
|
2614
2620
|
"aria-busy": v || void 0,
|
|
2615
|
-
"aria-label":
|
|
2616
|
-
"aria-labelledby":
|
|
2617
|
-
"aria-describedby":
|
|
2618
|
-
onKeyDown:
|
|
2619
|
-
},
|
|
2620
|
-
if (f)
|
|
2621
|
-
className:
|
|
2622
|
-
"data-state":
|
|
2623
|
-
"data-invalid":
|
|
2624
|
-
"data-disabled":
|
|
2621
|
+
"aria-label": pe,
|
|
2622
|
+
"aria-labelledby": M ? `${M.ids.label} ${N}value` : void 0,
|
|
2623
|
+
"aria-describedby": M ? M.ariaDescribedby : w && !C ? `${N}value` : void 0,
|
|
2624
|
+
onKeyDown: de
|
|
2625
|
+
}, ge;
|
|
2626
|
+
if (f) ge = /* @__PURE__ */ $("div", {
|
|
2627
|
+
className: O.chipsControl(),
|
|
2628
|
+
"data-state": P ? "open" : "closed",
|
|
2629
|
+
"data-invalid": re || void 0,
|
|
2630
|
+
"data-disabled": ne || void 0,
|
|
2625
2631
|
children: [
|
|
2626
|
-
|
|
2627
|
-
className:
|
|
2632
|
+
te.map((e) => /* @__PURE__ */ $("span", {
|
|
2633
|
+
className: O.chip(),
|
|
2628
2634
|
children: [/* @__PURE__ */ Q("span", {
|
|
2629
|
-
className:
|
|
2635
|
+
className: O.chipText(),
|
|
2630
2636
|
children: e.label
|
|
2631
|
-
}), !
|
|
2637
|
+
}), !ne && /* @__PURE__ */ Q("button", {
|
|
2632
2638
|
type: "button",
|
|
2633
2639
|
tabIndex: -1,
|
|
2634
|
-
className:
|
|
2635
|
-
"aria-label":
|
|
2636
|
-
onClick: () =>
|
|
2640
|
+
className: O.chipRemove(),
|
|
2641
|
+
"aria-label": k.select.removeItem(e.label),
|
|
2642
|
+
onClick: () => se(e),
|
|
2637
2643
|
children: /* @__PURE__ */ Q(zl, {
|
|
2638
|
-
className:
|
|
2644
|
+
className: O.chipRemoveIcon(),
|
|
2639
2645
|
"aria-hidden": "true"
|
|
2640
2646
|
})
|
|
2641
2647
|
})]
|
|
2642
2648
|
}, e.id)),
|
|
2643
|
-
|
|
2644
|
-
className:
|
|
2645
|
-
title:
|
|
2646
|
-
children:
|
|
2649
|
+
K > 0 && /* @__PURE__ */ Q("span", {
|
|
2650
|
+
className: O.chipMore(),
|
|
2651
|
+
title: A.moreLabel(K),
|
|
2652
|
+
children: A.more(K)
|
|
2647
2653
|
}),
|
|
2648
2654
|
/* @__PURE__ */ $(xu.Trigger, {
|
|
2649
|
-
className:
|
|
2650
|
-
"data-disabled":
|
|
2651
|
-
...
|
|
2655
|
+
className: O.chipsTrigger(),
|
|
2656
|
+
"data-disabled": ne || void 0,
|
|
2657
|
+
...he,
|
|
2652
2658
|
children: [/* @__PURE__ */ Q("span", {
|
|
2653
|
-
id: `${
|
|
2654
|
-
className:
|
|
2655
|
-
"data-placeholder-shown": !
|
|
2656
|
-
children:
|
|
2657
|
-
className:
|
|
2658
|
-
children:
|
|
2659
|
-
}) :
|
|
2660
|
-
}),
|
|
2661
|
-
}),
|
|
2662
|
-
_ &&
|
|
2659
|
+
id: `${N}value`,
|
|
2660
|
+
className: O.value(),
|
|
2661
|
+
"data-placeholder-shown": !G.length || void 0,
|
|
2662
|
+
children: G.length ? /* @__PURE__ */ Q("span", {
|
|
2663
|
+
className: O.hiddenValue(),
|
|
2664
|
+
children: fe
|
|
2665
|
+
}) : j
|
|
2666
|
+
}), me]
|
|
2667
|
+
}),
|
|
2668
|
+
_ && G.length > 0 && !ne && /* @__PURE__ */ Q("button", {
|
|
2663
2669
|
type: "button",
|
|
2664
2670
|
tabIndex: -1,
|
|
2665
|
-
className:
|
|
2666
|
-
"aria-label":
|
|
2667
|
-
onClick:
|
|
2671
|
+
className: O.chipsClear(),
|
|
2672
|
+
"aria-label": k.select.clear,
|
|
2673
|
+
onClick: ue,
|
|
2668
2674
|
children: /* @__PURE__ */ Q(zl, {
|
|
2669
|
-
className:
|
|
2675
|
+
className: O.clearIcon(),
|
|
2670
2676
|
"aria-hidden": "true"
|
|
2671
2677
|
})
|
|
2672
2678
|
}),
|
|
2673
2679
|
/* @__PURE__ */ Q("span", {
|
|
2674
2680
|
role: "status",
|
|
2675
|
-
className:
|
|
2676
|
-
children:
|
|
2681
|
+
className: O.status(),
|
|
2682
|
+
children: ie
|
|
2677
2683
|
})
|
|
2678
2684
|
]
|
|
2679
2685
|
});
|
|
2680
2686
|
else {
|
|
2681
2687
|
let e = /* @__PURE__ */ $(xu.Trigger, {
|
|
2682
|
-
className:
|
|
2683
|
-
"data-invalid":
|
|
2684
|
-
"data-disabled":
|
|
2685
|
-
...
|
|
2688
|
+
className: O.trigger(),
|
|
2689
|
+
"data-invalid": re || void 0,
|
|
2690
|
+
"data-disabled": ne || void 0,
|
|
2691
|
+
...he,
|
|
2686
2692
|
children: [/* @__PURE__ */ Q("span", {
|
|
2687
|
-
id: `${
|
|
2688
|
-
className:
|
|
2689
|
-
"data-placeholder-shown": !
|
|
2690
|
-
children:
|
|
2691
|
-
}),
|
|
2693
|
+
id: `${N}value`,
|
|
2694
|
+
className: O.value(),
|
|
2695
|
+
"data-placeholder-shown": !W || void 0,
|
|
2696
|
+
children: W?.label ?? j
|
|
2697
|
+
}), me]
|
|
2692
2698
|
});
|
|
2693
|
-
|
|
2694
|
-
className:
|
|
2695
|
-
children: [e,
|
|
2699
|
+
ge = _ ? /* @__PURE__ */ $("div", {
|
|
2700
|
+
className: O.control(),
|
|
2701
|
+
children: [e, W && !ne && /* @__PURE__ */ Q("button", {
|
|
2696
2702
|
type: "button",
|
|
2697
2703
|
tabIndex: -1,
|
|
2698
|
-
className:
|
|
2699
|
-
"aria-label":
|
|
2700
|
-
onClick:
|
|
2704
|
+
className: O.clear(),
|
|
2705
|
+
"aria-label": k.select.clear,
|
|
2706
|
+
onClick: ue,
|
|
2701
2707
|
children: /* @__PURE__ */ Q(zl, {
|
|
2702
|
-
className:
|
|
2708
|
+
className: O.clearIcon(),
|
|
2703
2709
|
"aria-hidden": "true"
|
|
2704
2710
|
})
|
|
2705
2711
|
})]
|
|
2706
2712
|
}) : e;
|
|
2707
2713
|
}
|
|
2708
2714
|
return /* @__PURE__ */ $(xu.Root, {
|
|
2709
|
-
open:
|
|
2710
|
-
onOpenChange: (e) =>
|
|
2715
|
+
open: P,
|
|
2716
|
+
onOpenChange: (e) => F(e.open),
|
|
2711
2717
|
positioning: {
|
|
2712
2718
|
placement: "bottom-start",
|
|
2713
2719
|
gutter: 4,
|
|
@@ -2717,35 +2723,36 @@ function If({ classes: t, items: r, value: i, defaultValue: a, onValueChange: o,
|
|
|
2717
2723
|
lazyMount: !0,
|
|
2718
2724
|
unmountOnExit: !0,
|
|
2719
2725
|
children: [/* @__PURE__ */ Q("div", {
|
|
2720
|
-
|
|
2726
|
+
...D,
|
|
2727
|
+
className: O.base({ class: T }),
|
|
2721
2728
|
style: E,
|
|
2722
|
-
children:
|
|
2729
|
+
children: ge
|
|
2723
2730
|
}), /* @__PURE__ */ Q(nu, { children: /* @__PURE__ */ Q(xu.Positioner, { children: /* @__PURE__ */ Q(xu.Content, {
|
|
2724
|
-
className:
|
|
2725
|
-
"aria-label": C ??
|
|
2731
|
+
className: O.content(),
|
|
2732
|
+
"aria-label": C ?? j,
|
|
2726
2733
|
children: f ? /* @__PURE__ */ Q(le, {
|
|
2727
|
-
items:
|
|
2728
|
-
"aria-label": C ??
|
|
2734
|
+
items: H,
|
|
2735
|
+
"aria-label": C ?? j,
|
|
2729
2736
|
checkable: !0,
|
|
2730
2737
|
checkedStrategy: p,
|
|
2731
2738
|
checkStrictly: m,
|
|
2732
|
-
checkedValue:
|
|
2733
|
-
onCheckedChange:
|
|
2734
|
-
defaultExpandedValue:
|
|
2739
|
+
checkedValue: z,
|
|
2740
|
+
onCheckedChange: oe,
|
|
2741
|
+
defaultExpandedValue: q,
|
|
2735
2742
|
filter: g,
|
|
2736
|
-
loadChildren:
|
|
2743
|
+
loadChildren: ee,
|
|
2737
2744
|
onLoadChildren: x
|
|
2738
2745
|
}) : /* @__PURE__ */ Q(le, {
|
|
2739
|
-
items:
|
|
2740
|
-
"aria-label": C ??
|
|
2741
|
-
selectedValue:
|
|
2742
|
-
defaultExpandedValue:
|
|
2746
|
+
items: H,
|
|
2747
|
+
"aria-label": C ?? j,
|
|
2748
|
+
selectedValue: R ? [R] : [],
|
|
2749
|
+
defaultExpandedValue: q,
|
|
2743
2750
|
filter: g,
|
|
2744
|
-
loadChildren:
|
|
2751
|
+
loadChildren: ee,
|
|
2745
2752
|
onLoadChildren: x,
|
|
2746
2753
|
onSelectionChange: (e) => {
|
|
2747
|
-
let t = e[0] ?? null, n = ce(
|
|
2748
|
-
!t || c && n?.children || (
|
|
2754
|
+
let t = e[0] ?? null, n = ce(H, t)?.at(-1);
|
|
2755
|
+
!t || c && n?.children || (oe(t), F(!1));
|
|
2749
2756
|
}
|
|
2750
2757
|
})
|
|
2751
2758
|
}) }) })]
|
|
@@ -2753,96 +2760,98 @@ function If({ classes: t, items: r, value: i, defaultValue: a, onValueChange: o,
|
|
|
2753
2760
|
}
|
|
2754
2761
|
//#endregion
|
|
2755
2762
|
//#region src/components/Carousel/Carousel.tsx
|
|
2756
|
-
function Lf({ classes: t, items: r, label: i, children: a, slidesPerPage: o = 1, slidesToScroll: s, orientation: c = "horizontal", height: l, breakpoints: u, allowMouseDrag: d = !1, spacing: f = "16px", loop: p = !1, autoplay: m = !1, indicators: h = !0, controlsPosition: g = "bottom", page: _, defaultPage: v = 0, onPageChange: y, className: b, style: x }) {
|
|
2757
|
-
let
|
|
2763
|
+
function Lf({ classes: t, items: r, label: i, children: a, slidesPerPage: o = 1, slidesToScroll: s, orientation: c = "horizontal", height: l, breakpoints: u, allowMouseDrag: d = !1, spacing: f = "16px", loop: p = !1, autoplay: m = !1, indicators: h = !0, controlsPosition: g = "bottom", page: _, defaultPage: v = 0, onPageChange: y, className: b, style: x, ...S }) {
|
|
2764
|
+
let C = n("carousel", rt, t), w = n("iconButton", Ir), T = g === "sides", E = C({
|
|
2758
2765
|
vertical: c === "vertical",
|
|
2759
|
-
controlsPosition:
|
|
2760
|
-
}),
|
|
2766
|
+
controlsPosition: T ? "sides" : void 0
|
|
2767
|
+
}), D = w({
|
|
2761
2768
|
variant: "outline",
|
|
2762
2769
|
size: "sm"
|
|
2763
|
-
}),
|
|
2770
|
+
}), O = e(), [k, A] = Z(v), j = X(null), [M, N] = Z(0), P = !!u?.length;
|
|
2764
2771
|
Y(() => {
|
|
2765
|
-
if (!
|
|
2766
|
-
let e = new ResizeObserver(([e]) =>
|
|
2767
|
-
return e.observe(
|
|
2768
|
-
}, [
|
|
2769
|
-
let
|
|
2772
|
+
if (!P || typeof ResizeObserver > "u" || !j.current) return;
|
|
2773
|
+
let e = new ResizeObserver(([e]) => N(e?.contentRect.width ?? 0));
|
|
2774
|
+
return e.observe(j.current), () => e.disconnect();
|
|
2775
|
+
}, [P]);
|
|
2776
|
+
let F = it(M, {
|
|
2770
2777
|
slidesPerPage: o,
|
|
2771
2778
|
slidesPerMove: s,
|
|
2772
2779
|
spacing: f
|
|
2773
|
-
}, u),
|
|
2774
|
-
className:
|
|
2780
|
+
}, u), I = /* @__PURE__ */ Q(Iu.ItemGroup, {
|
|
2781
|
+
className: E.itemGroup(),
|
|
2775
2782
|
tabIndex: 0,
|
|
2776
2783
|
style: l ? { height: l } : void 0,
|
|
2777
2784
|
children: r.map((e, t) => /* @__PURE__ */ Q(Iu.Item, {
|
|
2778
2785
|
index: t,
|
|
2779
|
-
className:
|
|
2786
|
+
className: E.item(),
|
|
2780
2787
|
children: a(e, t)
|
|
2781
2788
|
}, t))
|
|
2782
|
-
}),
|
|
2783
|
-
className:
|
|
2789
|
+
}), L = /* @__PURE__ */ Q(Iu.PrevTrigger, {
|
|
2790
|
+
className: D.base(),
|
|
2784
2791
|
children: /* @__PURE__ */ Q(Oc, {
|
|
2785
|
-
className:
|
|
2792
|
+
className: D.icon(),
|
|
2786
2793
|
"aria-hidden": "true"
|
|
2787
2794
|
})
|
|
2788
|
-
}),
|
|
2789
|
-
className:
|
|
2795
|
+
}), R = /* @__PURE__ */ Q(Iu.NextTrigger, {
|
|
2796
|
+
className: D.base(),
|
|
2790
2797
|
children: /* @__PURE__ */ Q(kc, {
|
|
2791
|
-
className:
|
|
2798
|
+
className: D.icon(),
|
|
2792
2799
|
"aria-hidden": "true"
|
|
2793
2800
|
})
|
|
2794
2801
|
});
|
|
2795
2802
|
return /* @__PURE__ */ $(Iu.Root, {
|
|
2796
|
-
|
|
2797
|
-
|
|
2803
|
+
...S,
|
|
2804
|
+
...Lt(S.id, "root"),
|
|
2805
|
+
ref: j,
|
|
2806
|
+
className: E.base({ class: b }),
|
|
2798
2807
|
style: x,
|
|
2799
2808
|
"aria-label": i,
|
|
2800
2809
|
slideCount: r.length,
|
|
2801
|
-
slidesPerPage:
|
|
2802
|
-
slidesPerMove:
|
|
2810
|
+
slidesPerPage: F.slidesPerPage,
|
|
2811
|
+
slidesPerMove: F.slidesPerMove,
|
|
2803
2812
|
orientation: c,
|
|
2804
2813
|
allowMouseDrag: d,
|
|
2805
|
-
spacing:
|
|
2814
|
+
spacing: F.spacing,
|
|
2806
2815
|
loop: p,
|
|
2807
2816
|
autoplay: m,
|
|
2808
|
-
page: _ ??
|
|
2809
|
-
translations:
|
|
2817
|
+
page: _ ?? k,
|
|
2818
|
+
translations: O.carousel,
|
|
2810
2819
|
onPageChange: (e) => {
|
|
2811
|
-
|
|
2820
|
+
A(e.page), y?.(e.page);
|
|
2812
2821
|
},
|
|
2813
|
-
children: [
|
|
2814
|
-
className:
|
|
2822
|
+
children: [T ? /* @__PURE__ */ $("div", {
|
|
2823
|
+
className: E.stage(),
|
|
2815
2824
|
children: [
|
|
2825
|
+
L,
|
|
2816
2826
|
I,
|
|
2817
|
-
|
|
2818
|
-
L
|
|
2827
|
+
R
|
|
2819
2828
|
]
|
|
2820
|
-
}) :
|
|
2821
|
-
className:
|
|
2829
|
+
}) : I, /* @__PURE__ */ $(Iu.Control, {
|
|
2830
|
+
className: E.control(),
|
|
2822
2831
|
children: [
|
|
2823
2832
|
m && /* @__PURE__ */ Q(Iu.AutoplayTrigger, {
|
|
2824
|
-
className:
|
|
2833
|
+
className: D.base(),
|
|
2825
2834
|
children: /* @__PURE__ */ Q(Iu.AutoplayIndicator, {
|
|
2826
2835
|
fallback: /* @__PURE__ */ Q(gl, {
|
|
2827
|
-
className:
|
|
2836
|
+
className: D.icon(),
|
|
2828
2837
|
"aria-hidden": "true"
|
|
2829
2838
|
}),
|
|
2830
2839
|
children: /* @__PURE__ */ Q(fl, {
|
|
2831
|
-
className:
|
|
2840
|
+
className: D.icon(),
|
|
2832
2841
|
"aria-hidden": "true"
|
|
2833
2842
|
})
|
|
2834
2843
|
})
|
|
2835
2844
|
}),
|
|
2836
|
-
!
|
|
2845
|
+
!T && L,
|
|
2837
2846
|
/* @__PURE__ */ Q(Iu.Context, { children: (e) => /* @__PURE__ */ Q(Iu.IndicatorGroup, {
|
|
2838
|
-
className:
|
|
2847
|
+
className: E.indicatorGroup(),
|
|
2839
2848
|
children: (h ? e.pageSnapPoints : []).map((t, n) => /* @__PURE__ */ Q(Iu.Indicator, {
|
|
2840
2849
|
index: n,
|
|
2841
|
-
className:
|
|
2850
|
+
className: E.indicator(),
|
|
2842
2851
|
"aria-current": n === e.page ? "true" : void 0
|
|
2843
2852
|
}, n))
|
|
2844
2853
|
}) }),
|
|
2845
|
-
!
|
|
2854
|
+
!T && R
|
|
2846
2855
|
]
|
|
2847
2856
|
})]
|
|
2848
2857
|
});
|
|
@@ -3130,109 +3139,110 @@ function zf({ images: e, label: r, page: i, onPageChange: a }) {
|
|
|
3130
3139
|
}
|
|
3131
3140
|
//#endregion
|
|
3132
3141
|
//#region src/components/Gallery/Gallery.tsx
|
|
3133
|
-
function Bf({ classes: t, images: r, label: i, thumbnails: a = !0, fullscreen: o = !0, tools: s = !1, lazy: c = !1, hasMore: l = !1, loading: u = !1, onLoadMore: d, page: f, defaultPage: p = 0, onPageChange: m, className: h, style: g }) {
|
|
3134
|
-
let
|
|
3142
|
+
function Bf({ classes: t, images: r, label: i, thumbnails: a = !0, fullscreen: o = !0, tools: s = !1, lazy: c = !1, hasMore: l = !1, loading: u = !1, onLoadMore: d, page: f, defaultPage: p = 0, onPageChange: m, className: h, style: g, ..._ }) {
|
|
3143
|
+
let v = n("dialog", dn), y = n("gallery", fr, t), b = n("iconButton", Ir), x = y(), S = b({
|
|
3135
3144
|
variant: "outline",
|
|
3136
3145
|
size: "sm"
|
|
3137
|
-
}),
|
|
3138
|
-
|
|
3139
|
-
},
|
|
3146
|
+
}), C = v(), w = e(), [T, E] = Z(p), D = f ?? T, O = (e) => {
|
|
3147
|
+
E(e), m?.(e);
|
|
3148
|
+
}, k = c ? {
|
|
3140
3149
|
loading: "lazy",
|
|
3141
3150
|
decoding: "async"
|
|
3142
|
-
} : {},
|
|
3151
|
+
} : {}, A = X(null), j = X(D);
|
|
3143
3152
|
Y(() => {
|
|
3144
|
-
|
|
3153
|
+
j.current !== D && (j.current = D, A.current?.querySelector("[aria-current=\"true\"]")?.scrollIntoView?.({
|
|
3145
3154
|
block: "nearest",
|
|
3146
3155
|
inline: "nearest"
|
|
3147
3156
|
}));
|
|
3148
|
-
}, [
|
|
3149
|
-
let
|
|
3157
|
+
}, [D]);
|
|
3158
|
+
let M = X(-1);
|
|
3150
3159
|
return Y(() => {
|
|
3151
|
-
!l || u ||
|
|
3160
|
+
!l || u || D < r.length - 2 || M.current === r.length || (M.current = r.length, d?.());
|
|
3152
3161
|
}, [
|
|
3153
|
-
|
|
3162
|
+
D,
|
|
3154
3163
|
r.length,
|
|
3155
3164
|
l,
|
|
3156
3165
|
u,
|
|
3157
3166
|
d
|
|
3158
3167
|
]), /* @__PURE__ */ $("div", {
|
|
3159
|
-
|
|
3168
|
+
..._,
|
|
3169
|
+
className: x.base({ class: h }),
|
|
3160
3170
|
style: g,
|
|
3161
3171
|
"aria-busy": u || void 0,
|
|
3162
3172
|
children: [/* @__PURE__ */ $(hu.Root, {
|
|
3163
3173
|
lazyMount: !0,
|
|
3164
3174
|
unmountOnExit: !0,
|
|
3165
3175
|
children: [/* @__PURE__ */ $("div", {
|
|
3166
|
-
className:
|
|
3176
|
+
className: x.stage(),
|
|
3167
3177
|
children: [/* @__PURE__ */ Q(Lf, {
|
|
3168
3178
|
items: r,
|
|
3169
3179
|
label: i,
|
|
3170
|
-
page:
|
|
3180
|
+
page: D,
|
|
3171
3181
|
indicators: !a,
|
|
3172
|
-
onPageChange:
|
|
3182
|
+
onPageChange: O,
|
|
3173
3183
|
children: (e, t) => /* @__PURE__ */ $("figure", {
|
|
3174
|
-
className:
|
|
3184
|
+
className: x.figure(),
|
|
3175
3185
|
children: [e.type === "video" ? /* @__PURE__ */ Q(Rf, {
|
|
3176
3186
|
item: e,
|
|
3177
|
-
className:
|
|
3178
|
-
inactive: t !==
|
|
3187
|
+
className: x.video(),
|
|
3188
|
+
inactive: t !== D
|
|
3179
3189
|
}) : /* @__PURE__ */ Q("img", {
|
|
3180
3190
|
src: e.src,
|
|
3181
3191
|
alt: e.alt,
|
|
3182
|
-
className:
|
|
3183
|
-
...
|
|
3192
|
+
className: x.image(),
|
|
3193
|
+
...k
|
|
3184
3194
|
}), e.caption && /* @__PURE__ */ Q("figcaption", {
|
|
3185
|
-
className:
|
|
3195
|
+
className: x.caption(),
|
|
3186
3196
|
children: e.caption
|
|
3187
3197
|
})]
|
|
3188
3198
|
})
|
|
3189
3199
|
}), o && /* @__PURE__ */ Q(hu.Trigger, {
|
|
3190
|
-
className:
|
|
3191
|
-
"aria-label":
|
|
3200
|
+
className: S.base({ class: x.fullscreenTrigger() }),
|
|
3201
|
+
"aria-label": w.gallery.fullscreen,
|
|
3192
3202
|
children: /* @__PURE__ */ Q(nl, {
|
|
3193
|
-
className:
|
|
3203
|
+
className: S.icon(),
|
|
3194
3204
|
"aria-hidden": "true"
|
|
3195
3205
|
})
|
|
3196
3206
|
})]
|
|
3197
|
-
}), /* @__PURE__ */ $(nu, { children: [/* @__PURE__ */ Q(hu.Backdrop, { className:
|
|
3198
|
-
className:
|
|
3207
|
+
}), /* @__PURE__ */ $(nu, { children: [/* @__PURE__ */ Q(hu.Backdrop, { className: C.backdrop() }), /* @__PURE__ */ Q(hu.Positioner, {
|
|
3208
|
+
className: x.positioner(),
|
|
3199
3209
|
children: s ? /* @__PURE__ */ Q(zf, {
|
|
3200
3210
|
images: r,
|
|
3201
3211
|
label: i,
|
|
3202
|
-
page:
|
|
3203
|
-
onPageChange:
|
|
3212
|
+
page: D,
|
|
3213
|
+
onPageChange: O
|
|
3204
3214
|
}) : /* @__PURE__ */ $(hu.Content, {
|
|
3205
|
-
className:
|
|
3215
|
+
className: x.content(),
|
|
3206
3216
|
children: [/* @__PURE__ */ $("div", {
|
|
3207
|
-
className:
|
|
3217
|
+
className: x.header(),
|
|
3208
3218
|
children: [/* @__PURE__ */ Q(hu.Title, {
|
|
3209
|
-
className:
|
|
3219
|
+
className: x.title(),
|
|
3210
3220
|
children: i
|
|
3211
3221
|
}), /* @__PURE__ */ Q(hu.CloseTrigger, {
|
|
3212
|
-
className:
|
|
3213
|
-
"aria-label":
|
|
3222
|
+
className: C.close(),
|
|
3223
|
+
"aria-label": w.gallery.close,
|
|
3214
3224
|
children: /* @__PURE__ */ Q(zl, {
|
|
3215
|
-
className:
|
|
3225
|
+
className: C.closeIcon(),
|
|
3216
3226
|
"aria-hidden": "true"
|
|
3217
3227
|
})
|
|
3218
3228
|
})]
|
|
3219
3229
|
}), /* @__PURE__ */ Q(Lf, {
|
|
3220
3230
|
items: r,
|
|
3221
3231
|
label: i,
|
|
3222
|
-
page:
|
|
3223
|
-
onPageChange:
|
|
3232
|
+
page: D,
|
|
3233
|
+
onPageChange: O,
|
|
3224
3234
|
children: (e, t) => /* @__PURE__ */ $("figure", {
|
|
3225
|
-
className:
|
|
3235
|
+
className: x.figure(),
|
|
3226
3236
|
children: [e.type === "video" ? /* @__PURE__ */ Q(Rf, {
|
|
3227
3237
|
item: e,
|
|
3228
|
-
className:
|
|
3229
|
-
inactive: t !==
|
|
3238
|
+
className: x.video(),
|
|
3239
|
+
inactive: t !== D
|
|
3230
3240
|
}) : /* @__PURE__ */ Q("img", {
|
|
3231
3241
|
src: e.src,
|
|
3232
3242
|
alt: e.alt,
|
|
3233
|
-
className:
|
|
3243
|
+
className: x.fullscreenImage()
|
|
3234
3244
|
}), e.caption && /* @__PURE__ */ Q("figcaption", {
|
|
3235
|
-
className:
|
|
3245
|
+
className: x.caption(),
|
|
3236
3246
|
children: e.caption
|
|
3237
3247
|
})]
|
|
3238
3248
|
})
|
|
@@ -3240,21 +3250,21 @@ function Bf({ classes: t, images: r, label: i, thumbnails: a = !0, fullscreen: o
|
|
|
3240
3250
|
})
|
|
3241
3251
|
})] })]
|
|
3242
3252
|
}), a && /* @__PURE__ */ Q("div", {
|
|
3243
|
-
ref:
|
|
3253
|
+
ref: A,
|
|
3244
3254
|
role: "group",
|
|
3245
|
-
"aria-label":
|
|
3246
|
-
className:
|
|
3255
|
+
"aria-label": w.gallery.thumbnails,
|
|
3256
|
+
className: x.thumbnails(),
|
|
3247
3257
|
children: r.map((e, t) => /* @__PURE__ */ Q("button", {
|
|
3248
3258
|
type: "button",
|
|
3249
|
-
className:
|
|
3250
|
-
"aria-label":
|
|
3251
|
-
"aria-current": t ===
|
|
3252
|
-
onClick: () =>
|
|
3259
|
+
className: x.thumbnail(),
|
|
3260
|
+
"aria-label": w.gallery.thumbnail(t, r.length),
|
|
3261
|
+
"aria-current": t === D ? "true" : void 0,
|
|
3262
|
+
onClick: () => O(t),
|
|
3253
3263
|
children: /* @__PURE__ */ Q("img", {
|
|
3254
3264
|
src: e.thumbnail ?? e.poster ?? e.src,
|
|
3255
3265
|
alt: "",
|
|
3256
|
-
className:
|
|
3257
|
-
...
|
|
3266
|
+
className: x.thumbnailImage(),
|
|
3267
|
+
...k
|
|
3258
3268
|
})
|
|
3259
3269
|
}, t))
|
|
3260
3270
|
})]
|
|
@@ -4210,35 +4220,36 @@ function ep({ classes: t, menus: r, onSelect: i, onCheckedChange: a, onValueChan
|
|
|
4210
4220
|
//#endregion
|
|
4211
4221
|
//#region src/components/AppShell/context.ts
|
|
4212
4222
|
var tp = Ul(null), np = (e, t) => t(e) || !!e.children?.some((e) => np(e, t));
|
|
4213
|
-
function rp({ classes: e, items: t, label: r, onNavigate: i, linkAs: a = "a", currentHref: o, isCurrent: s, rail: c, expandOnHover: l, header: u, footer: d, className: f, style: p }) {
|
|
4214
|
-
let
|
|
4223
|
+
function rp({ classes: e, items: t, label: r, onNavigate: i, linkAs: a = "a", currentHref: o, isCurrent: s, rail: c, expandOnHover: l, header: u, footer: d, className: f, style: p, ...m }) {
|
|
4224
|
+
let h = n("sidebarNav", Po, e), g = Kl(tp), _ = c ?? g?.rail ?? !1, v = _ && (l ?? g?.expandOnHover ?? !1), y = h(_ ? {
|
|
4215
4225
|
rail: !0,
|
|
4216
|
-
expandOnHover:
|
|
4217
|
-
} : void 0);
|
|
4226
|
+
expandOnHover: v
|
|
4227
|
+
} : void 0), b = (e) => Qr(e, o, s);
|
|
4218
4228
|
return /* @__PURE__ */ $("nav", {
|
|
4229
|
+
...m,
|
|
4219
4230
|
"aria-label": r,
|
|
4220
|
-
className:
|
|
4231
|
+
className: y.base({ class: f }),
|
|
4221
4232
|
style: p,
|
|
4222
|
-
"data-rail":
|
|
4233
|
+
"data-rail": _ ? "" : void 0,
|
|
4223
4234
|
children: [
|
|
4224
4235
|
u && /* @__PURE__ */ Q("div", {
|
|
4225
|
-
className:
|
|
4236
|
+
className: y.header(),
|
|
4226
4237
|
children: u
|
|
4227
4238
|
}),
|
|
4228
4239
|
/* @__PURE__ */ Q("ul", {
|
|
4229
|
-
className:
|
|
4240
|
+
className: y.list(),
|
|
4230
4241
|
children: /* @__PURE__ */ Q(ip, {
|
|
4231
4242
|
items: t,
|
|
4232
4243
|
depth: 0,
|
|
4233
4244
|
onNavigate: i,
|
|
4234
4245
|
linkAs: a,
|
|
4235
|
-
check:
|
|
4236
|
-
rail:
|
|
4237
|
-
expandOnHover:
|
|
4246
|
+
check: b,
|
|
4247
|
+
rail: _,
|
|
4248
|
+
expandOnHover: v
|
|
4238
4249
|
})
|
|
4239
4250
|
}),
|
|
4240
4251
|
d && /* @__PURE__ */ Q("div", {
|
|
4241
|
-
className:
|
|
4252
|
+
className: y.footer(),
|
|
4242
4253
|
children: d
|
|
4243
4254
|
})
|
|
4244
4255
|
]
|
|
@@ -4312,13 +4323,15 @@ function ip({ items: e, depth: t, onNavigate: r, linkAs: i, check: a, rail: o, e
|
|
|
4312
4323
|
//#endregion
|
|
4313
4324
|
//#region src/components/Stepper/Stepper.tsx
|
|
4314
4325
|
var ap = null;
|
|
4315
|
-
function op({ classes: t, items: r, step: i, defaultStep: a = 0, onStepChange: o, linear: s = !1, isStepValid: c, orientation: l = "horizontal", labelPlacement: u = "end", finishLabel: d, children: f, completed: p, className: m, style: h }) {
|
|
4316
|
-
let
|
|
4326
|
+
function op({ classes: t, items: r, step: i, defaultStep: a = 0, onStepChange: o, linear: s = !1, isStepValid: c, orientation: l = "horizontal", labelPlacement: u = "end", finishLabel: d, children: f, completed: p, className: m, style: h, ...g }) {
|
|
4327
|
+
let _ = n("stepper", ts, t)({
|
|
4317
4328
|
vertical: l === "vertical",
|
|
4318
4329
|
labelBottom: u === "bottom"
|
|
4319
|
-
}),
|
|
4330
|
+
}), v = e().stepper;
|
|
4320
4331
|
return /* @__PURE__ */ $(Ru.Root, {
|
|
4321
|
-
|
|
4332
|
+
...g,
|
|
4333
|
+
...Lt(g.id, "root"),
|
|
4334
|
+
className: _.base({ class: m }),
|
|
4322
4335
|
style: h,
|
|
4323
4336
|
count: r.length,
|
|
4324
4337
|
step: i,
|
|
@@ -4329,60 +4342,60 @@ function op({ classes: t, items: r, step: i, defaultStep: a = 0, onStepChange: o
|
|
|
4329
4342
|
orientation: l,
|
|
4330
4343
|
children: [
|
|
4331
4344
|
/* @__PURE__ */ Q(Ru.List, {
|
|
4332
|
-
className:
|
|
4345
|
+
className: _.list(),
|
|
4333
4346
|
children: r.map((e, t) => /* @__PURE__ */ $(Ru.Item, {
|
|
4334
4347
|
index: t,
|
|
4335
|
-
className:
|
|
4348
|
+
className: _.item(),
|
|
4336
4349
|
role: "presentation",
|
|
4337
4350
|
"aria-current": ap,
|
|
4338
4351
|
children: [/* @__PURE__ */ $(Ru.Trigger, {
|
|
4339
|
-
className:
|
|
4352
|
+
className: _.trigger(),
|
|
4340
4353
|
"aria-busy": e.loading || void 0,
|
|
4341
4354
|
children: [/* @__PURE__ */ Q(Ru.Indicator, {
|
|
4342
|
-
className:
|
|
4355
|
+
className: _.indicator(),
|
|
4343
4356
|
children: /* @__PURE__ */ Q(Ru.ItemContext, { children: (n) => e.loading ? /* @__PURE__ */ Q(el, {
|
|
4344
|
-
className:
|
|
4357
|
+
className: _.spinner(),
|
|
4345
4358
|
"aria-hidden": "true"
|
|
4346
4359
|
}) : n.completed ? /* @__PURE__ */ Q(Tc, {
|
|
4347
|
-
className:
|
|
4360
|
+
className: _.indicatorIcon(),
|
|
4348
4361
|
"aria-hidden": "true"
|
|
4349
4362
|
}) : t + 1 })
|
|
4350
4363
|
}), /* @__PURE__ */ $("span", {
|
|
4351
|
-
className:
|
|
4364
|
+
className: _.text(),
|
|
4352
4365
|
children: [/* @__PURE__ */ Q("span", {
|
|
4353
|
-
className:
|
|
4366
|
+
className: _.label(),
|
|
4354
4367
|
children: e.label
|
|
4355
4368
|
}), e.description && /* @__PURE__ */ Q("span", {
|
|
4356
|
-
className:
|
|
4369
|
+
className: _.description(),
|
|
4357
4370
|
children: e.description
|
|
4358
4371
|
})]
|
|
4359
4372
|
})]
|
|
4360
|
-
}), t < r.length - 1 && /* @__PURE__ */ Q(Ru.Separator, { className:
|
|
4373
|
+
}), t < r.length - 1 && /* @__PURE__ */ Q(Ru.Separator, { className: _.separator() })]
|
|
4361
4374
|
}, t))
|
|
4362
4375
|
}),
|
|
4363
4376
|
r.map((e, t) => /* @__PURE__ */ Q(Ru.Content, {
|
|
4364
4377
|
index: t,
|
|
4365
|
-
className:
|
|
4378
|
+
className: _.content(),
|
|
4366
4379
|
children: f(t)
|
|
4367
4380
|
}, t)),
|
|
4368
4381
|
/* @__PURE__ */ Q(Ru.CompletedContent, {
|
|
4369
|
-
className:
|
|
4382
|
+
className: _.content(),
|
|
4370
4383
|
children: p
|
|
4371
4384
|
}),
|
|
4372
4385
|
/* @__PURE__ */ Q(Ru.Context, { children: (e) => !e.isCompleted && /* @__PURE__ */ $("div", {
|
|
4373
|
-
className:
|
|
4386
|
+
className: _.actions(),
|
|
4374
4387
|
children: [/* @__PURE__ */ Q(Ru.PrevTrigger, {
|
|
4375
4388
|
asChild: !0,
|
|
4376
4389
|
children: /* @__PURE__ */ Q(D, {
|
|
4377
4390
|
variant: "outline",
|
|
4378
|
-
children:
|
|
4391
|
+
children: v.prev
|
|
4379
4392
|
})
|
|
4380
4393
|
}), /* @__PURE__ */ Q(Ru.NextTrigger, {
|
|
4381
4394
|
asChild: !0,
|
|
4382
4395
|
children: /* @__PURE__ */ Q(D, {
|
|
4383
4396
|
disabled: s && !e.isStepValid(e.value),
|
|
4384
4397
|
loading: r[e.value]?.loading,
|
|
4385
|
-
children: e.value === e.count - 1 ? d ??
|
|
4398
|
+
children: e.value === e.count - 1 ? d ?? v.finish : v.next
|
|
4386
4399
|
})
|
|
4387
4400
|
})]
|
|
4388
4401
|
}) })
|
|
@@ -4526,43 +4539,44 @@ function _p({ classes: t, closeLabel: r }) {
|
|
|
4526
4539
|
}
|
|
4527
4540
|
//#endregion
|
|
4528
4541
|
//#region src/components/Fieldset/Fieldset.tsx
|
|
4529
|
-
function vp({ classes: e, legend: t, helperText: r, errorText: i, invalid: a = !1, disabled: o = !1, collapsible: s = !1, open: c, defaultOpen: l = !0, onOpenChange: u, children: d, className: f, style: p }) {
|
|
4530
|
-
let
|
|
4542
|
+
function vp({ classes: e, legend: t, helperText: r, errorText: i, invalid: a = !1, disabled: o = !1, collapsible: s = !1, open: c, defaultOpen: l = !0, onOpenChange: u, children: d, className: f, style: p, ...m }) {
|
|
4543
|
+
let h = n("fieldset", On, e)(), g = ql(), [_, v] = Z(l), y = c ?? _;
|
|
4531
4544
|
return /* @__PURE__ */ $(zu.Root, {
|
|
4532
|
-
|
|
4545
|
+
...m,
|
|
4546
|
+
className: h.base({ class: f }),
|
|
4533
4547
|
style: p,
|
|
4534
4548
|
invalid: a,
|
|
4535
4549
|
disabled: o,
|
|
4536
4550
|
children: [
|
|
4537
4551
|
/* @__PURE__ */ Q(zu.Legend, {
|
|
4538
|
-
className:
|
|
4552
|
+
className: h.legend(),
|
|
4539
4553
|
children: s ? /* @__PURE__ */ $("button", {
|
|
4540
4554
|
type: "button",
|
|
4541
|
-
className:
|
|
4542
|
-
"aria-expanded":
|
|
4543
|
-
"aria-controls":
|
|
4555
|
+
className: h.trigger(),
|
|
4556
|
+
"aria-expanded": y,
|
|
4557
|
+
"aria-controls": g,
|
|
4544
4558
|
onClick: () => {
|
|
4545
|
-
|
|
4559
|
+
v(!y), u?.(!y);
|
|
4546
4560
|
},
|
|
4547
4561
|
children: [/* @__PURE__ */ Q(kc, {
|
|
4548
|
-
className:
|
|
4549
|
-
"data-state":
|
|
4562
|
+
className: h.indicator(),
|
|
4563
|
+
"data-state": y ? "open" : "closed",
|
|
4550
4564
|
"aria-hidden": "true"
|
|
4551
4565
|
}), t]
|
|
4552
4566
|
}) : t
|
|
4553
4567
|
}),
|
|
4554
4568
|
r && /* @__PURE__ */ Q(zu.HelperText, {
|
|
4555
|
-
className:
|
|
4569
|
+
className: h.helperText(),
|
|
4556
4570
|
children: r
|
|
4557
4571
|
}),
|
|
4558
4572
|
s ? /* @__PURE__ */ Q("div", {
|
|
4559
|
-
id:
|
|
4560
|
-
className:
|
|
4561
|
-
hidden: !
|
|
4573
|
+
id: g,
|
|
4574
|
+
className: h.content(),
|
|
4575
|
+
hidden: !y || void 0,
|
|
4562
4576
|
children: d
|
|
4563
4577
|
}) : d,
|
|
4564
4578
|
i && /* @__PURE__ */ Q(zu.ErrorText, {
|
|
4565
|
-
className:
|
|
4579
|
+
className: h.errorText(),
|
|
4566
4580
|
children: i
|
|
4567
4581
|
})
|
|
4568
4582
|
]
|
|
@@ -4586,116 +4600,117 @@ function bp({ children: e }) {
|
|
|
4586
4600
|
}
|
|
4587
4601
|
//#endregion
|
|
4588
4602
|
//#region src/components/Listbox/Listbox.tsx
|
|
4589
|
-
function xp({ classes: t, items: r, label: i, "aria-label": a, id: o, multiple: s = !1, value: c, defaultValue: l, onValueChange: u, disabled: d = !1, itemValue: f, itemLabel: p, itemDisabled: m, itemGroup: h, valueKey: g, filter: _, manualFilter: v, onFilterChange: y, emptyText: b, loading: x, loadingText: S, hasMore: C, onLoadMore: w, checkboxes: T = !1, selectAll: E = !1, dataSource: D, minSearchLength: O, pageSize: k, draggableItems: A = !1, renderItem: j, className: M, style: N }) {
|
|
4603
|
+
function xp({ classes: t, items: r, label: i, "aria-label": a, id: o, multiple: s = !1, value: c, defaultValue: l, onValueChange: u, disabled: d = !1, itemValue: f, itemLabel: p, itemDisabled: m, itemGroup: h, valueKey: g, filter: _, manualFilter: v, onFilterChange: y, emptyText: b, loading: x, loadingText: S, hasMore: C, onLoadMore: w, checkboxes: T = !1, selectAll: E = !1, dataSource: D, minSearchLength: O, pageSize: k, draggableItems: A = !1, renderItem: j, className: M, style: N, ...P }) {
|
|
4590
4604
|
I("Listbox", o);
|
|
4591
|
-
let
|
|
4605
|
+
let F = n("listbox", Ci, t)(), z = e(), H = {
|
|
4592
4606
|
itemValue: f,
|
|
4593
4607
|
itemLabel: p,
|
|
4594
4608
|
itemDisabled: m,
|
|
4595
4609
|
itemGroup: h,
|
|
4596
4610
|
valueKey: g
|
|
4597
|
-
}, [
|
|
4611
|
+
}, [ee, U] = Z(""), W = R({
|
|
4598
4612
|
items: r,
|
|
4599
4613
|
source: D,
|
|
4600
|
-
accessors:
|
|
4614
|
+
accessors: H,
|
|
4601
4615
|
pageSize: k,
|
|
4602
4616
|
minSearchLength: O
|
|
4603
|
-
}), { options:
|
|
4617
|
+
}), { options: G, visible: te, groups: K, ordered: ne } = L(W.items, H, _ && !v && !D ? ee : ""), re = Xl(() => [...G, ...W.resolvedOptions], [G, W.resolvedOptions]), { selected: q, keys: ie, commit: ae, commitKeys: oe } = V({
|
|
4604
4618
|
multiple: !0,
|
|
4605
4619
|
value: c,
|
|
4606
4620
|
defaultValue: l,
|
|
4607
|
-
accessors:
|
|
4608
|
-
items:
|
|
4621
|
+
accessors: H,
|
|
4622
|
+
items: re,
|
|
4609
4623
|
onChange: u,
|
|
4610
4624
|
check: {
|
|
4611
4625
|
component: "Listbox",
|
|
4612
4626
|
ready: !D && !x && r.length > 0
|
|
4613
4627
|
}
|
|
4614
|
-
}),
|
|
4628
|
+
}), se = ie.join("\0");
|
|
4615
4629
|
Y(() => {
|
|
4616
|
-
|
|
4630
|
+
W.open();
|
|
4617
4631
|
}, [D]), Y(() => {
|
|
4618
|
-
|
|
4619
|
-
}, [
|
|
4620
|
-
let
|
|
4621
|
-
items:
|
|
4632
|
+
W.resolve(ie, re);
|
|
4633
|
+
}, [se, D]);
|
|
4634
|
+
let ce = x || W.loading, le = te.filter((e) => !e.disabled), ue = ke(q, le), de = Xl(() => Vu({
|
|
4635
|
+
items: ne,
|
|
4622
4636
|
itemToString: (e) => e.label,
|
|
4623
4637
|
itemToValue: (e) => e.key,
|
|
4624
4638
|
isItemDisabled: (e) => e.disabled
|
|
4625
|
-
}), [
|
|
4639
|
+
}), [ne]);
|
|
4626
4640
|
return /* @__PURE__ */ $(Bu.Root, {
|
|
4641
|
+
...P,
|
|
4627
4642
|
...Lt(o, "root"),
|
|
4628
|
-
className:
|
|
4643
|
+
className: F.base({ class: M }),
|
|
4629
4644
|
style: N,
|
|
4630
|
-
collection:
|
|
4645
|
+
collection: de,
|
|
4631
4646
|
selectionMode: s ? "multiple" : "single",
|
|
4632
|
-
value:
|
|
4633
|
-
onValueChange: (e) =>
|
|
4647
|
+
value: ie,
|
|
4648
|
+
onValueChange: (e) => oe(e.value, e.items),
|
|
4634
4649
|
disabled: d,
|
|
4635
4650
|
children: [
|
|
4636
4651
|
i && /* @__PURE__ */ Q(Bu.Label, {
|
|
4637
|
-
className:
|
|
4652
|
+
className: F.label(),
|
|
4638
4653
|
children: i
|
|
4639
4654
|
}),
|
|
4640
4655
|
_ && /* @__PURE__ */ Q(Bu.Input, {
|
|
4641
|
-
className:
|
|
4642
|
-
"aria-label":
|
|
4643
|
-
placeholder:
|
|
4656
|
+
className: F.search(),
|
|
4657
|
+
"aria-label": z.select.filter,
|
|
4658
|
+
placeholder: z.combobox.search,
|
|
4644
4659
|
onChange: (e) => {
|
|
4645
|
-
|
|
4660
|
+
U(e.target.value), y?.(e.target.value), D && W.search(e.target.value);
|
|
4646
4661
|
}
|
|
4647
4662
|
}),
|
|
4648
|
-
s && E &&
|
|
4663
|
+
s && E && le.length > 0 && /* @__PURE__ */ $("button", {
|
|
4649
4664
|
type: "button",
|
|
4650
4665
|
role: "checkbox",
|
|
4651
|
-
"aria-checked":
|
|
4666
|
+
"aria-checked": ue,
|
|
4652
4667
|
disabled: d,
|
|
4653
|
-
className:
|
|
4654
|
-
onClick: () =>
|
|
4668
|
+
className: F.selectAll(),
|
|
4669
|
+
onClick: () => ae(Ps(q, te)),
|
|
4655
4670
|
children: [/* @__PURE__ */ Q("span", {
|
|
4656
|
-
className:
|
|
4657
|
-
"data-state":
|
|
4671
|
+
className: F.check(),
|
|
4672
|
+
"data-state": ue === "mixed" ? "indeterminate" : ue ? "checked" : "unchecked",
|
|
4658
4673
|
"aria-hidden": "true",
|
|
4659
|
-
children:
|
|
4660
|
-
}),
|
|
4674
|
+
children: ue === "mixed" ? /* @__PURE__ */ Q(sl, { className: F.checkIcon() }) : ue ? /* @__PURE__ */ Q(Tc, { className: F.checkIcon() }) : null
|
|
4675
|
+
}), z.select.selectAll]
|
|
4661
4676
|
}),
|
|
4662
4677
|
/* @__PURE__ */ Q(Bu.Content, {
|
|
4663
|
-
className:
|
|
4678
|
+
className: F.content(),
|
|
4664
4679
|
"aria-label": i ? void 0 : a,
|
|
4665
|
-
"aria-busy":
|
|
4680
|
+
"aria-busy": ce || void 0,
|
|
4666
4681
|
children: /* @__PURE__ */ Q(B, {
|
|
4667
4682
|
parts: Bu,
|
|
4668
|
-
groups:
|
|
4683
|
+
groups: K,
|
|
4669
4684
|
classes: {
|
|
4670
|
-
item:
|
|
4671
|
-
itemText:
|
|
4672
|
-
icon:
|
|
4673
|
-
itemIndicator:
|
|
4674
|
-
itemBody:
|
|
4675
|
-
itemDescription:
|
|
4676
|
-
group:
|
|
4677
|
-
groupLabel:
|
|
4678
|
-
loading:
|
|
4679
|
-
loadingIcon:
|
|
4680
|
-
sentinel:
|
|
4681
|
-
empty:
|
|
4682
|
-
check:
|
|
4683
|
-
checkIcon:
|
|
4685
|
+
item: F.item(),
|
|
4686
|
+
itemText: F.itemText(),
|
|
4687
|
+
icon: F.icon(),
|
|
4688
|
+
itemIndicator: F.itemIndicator(),
|
|
4689
|
+
itemBody: F.itemBody(),
|
|
4690
|
+
itemDescription: F.itemDescription(),
|
|
4691
|
+
group: F.group(),
|
|
4692
|
+
groupLabel: F.groupLabel(),
|
|
4693
|
+
loading: F.loading(),
|
|
4694
|
+
loadingIcon: F.loadingIcon(),
|
|
4695
|
+
sentinel: F.sentinel(),
|
|
4696
|
+
empty: F.empty(),
|
|
4697
|
+
check: F.check(),
|
|
4698
|
+
checkIcon: F.checkIcon()
|
|
4684
4699
|
},
|
|
4685
4700
|
checkbox: T,
|
|
4686
4701
|
draggable: A,
|
|
4687
|
-
loading:
|
|
4688
|
-
loadingText: S ??
|
|
4689
|
-
hasMore: C ||
|
|
4690
|
-
onLoadMore: () => D ?
|
|
4691
|
-
emptyText: b ??
|
|
4702
|
+
loading: ce,
|
|
4703
|
+
loadingText: S ?? z.common.loading,
|
|
4704
|
+
hasMore: C || W.hasMore,
|
|
4705
|
+
onLoadMore: () => D ? W.loadMore() : w?.(),
|
|
4706
|
+
emptyText: b ?? W.emptyText ?? (ee ? z.common.noResults : z.common.empty),
|
|
4692
4707
|
renderItem: j
|
|
4693
4708
|
})
|
|
4694
4709
|
}),
|
|
4695
4710
|
D && /* @__PURE__ */ Q("p", {
|
|
4696
4711
|
role: "status",
|
|
4697
|
-
className:
|
|
4698
|
-
children:
|
|
4712
|
+
className: F.status(),
|
|
4713
|
+
children: W.announcement
|
|
4699
4714
|
})
|
|
4700
4715
|
]
|
|
4701
4716
|
});
|
|
@@ -4725,78 +4740,82 @@ function Sp({ classes: e, count: t, max: r = 99, label: i, children: a }) {
|
|
|
4725
4740
|
}
|
|
4726
4741
|
//#endregion
|
|
4727
4742
|
//#region src/components/Panel/Panel.tsx
|
|
4728
|
-
function Cp({ classes: e, title: t, headingLevel: r = 3, toggleable: i = !1, open: a, defaultOpen: o = !0, onOpenChange: s, actions: c, footer: l, children: u, className: d, style: f }) {
|
|
4729
|
-
let
|
|
4730
|
-
className:
|
|
4743
|
+
function Cp({ classes: e, title: t, headingLevel: r = 3, toggleable: i = !1, open: a, defaultOpen: o = !0, onOpenChange: s, actions: c, footer: l, children: u, className: d, style: f, ...p }) {
|
|
4744
|
+
let m = n("panel", da, e)(), h = `h${r}`, g = /* @__PURE__ */ $($l, { children: [/* @__PURE__ */ Q("div", {
|
|
4745
|
+
className: m.body(),
|
|
4731
4746
|
children: u
|
|
4732
4747
|
}), l && /* @__PURE__ */ Q("div", {
|
|
4733
|
-
className:
|
|
4748
|
+
className: m.footer(),
|
|
4734
4749
|
children: l
|
|
4735
|
-
})] }),
|
|
4736
|
-
className:
|
|
4750
|
+
})] }), _ = c && /* @__PURE__ */ Q("div", {
|
|
4751
|
+
className: m.actions(),
|
|
4737
4752
|
children: c
|
|
4738
4753
|
});
|
|
4739
4754
|
return i ? /* @__PURE__ */ $(Lu.Root, {
|
|
4740
|
-
|
|
4755
|
+
...p,
|
|
4756
|
+
...Lt(p.id, "root"),
|
|
4757
|
+
className: m.base({ class: d }),
|
|
4741
4758
|
style: f,
|
|
4742
4759
|
open: a,
|
|
4743
4760
|
defaultOpen: o,
|
|
4744
4761
|
onOpenChange: (e) => s?.(e.open),
|
|
4745
4762
|
children: [/* @__PURE__ */ $("div", {
|
|
4746
|
-
className:
|
|
4747
|
-
children: [/* @__PURE__ */ Q(
|
|
4748
|
-
className:
|
|
4763
|
+
className: m.header(),
|
|
4764
|
+
children: [/* @__PURE__ */ Q(h, {
|
|
4765
|
+
className: m.title(),
|
|
4749
4766
|
children: /* @__PURE__ */ $(Lu.Trigger, {
|
|
4750
|
-
className:
|
|
4767
|
+
className: m.trigger(),
|
|
4751
4768
|
children: [/* @__PURE__ */ Q(Lu.Indicator, {
|
|
4752
4769
|
asChild: !0,
|
|
4753
4770
|
children: /* @__PURE__ */ Q(kc, {
|
|
4754
|
-
className:
|
|
4771
|
+
className: m.indicator(),
|
|
4755
4772
|
"aria-hidden": "true"
|
|
4756
4773
|
})
|
|
4757
4774
|
}), t]
|
|
4758
4775
|
})
|
|
4759
|
-
}),
|
|
4776
|
+
}), _]
|
|
4760
4777
|
}), /* @__PURE__ */ Q(Lu.Content, {
|
|
4761
|
-
className:
|
|
4762
|
-
children:
|
|
4778
|
+
className: m.content(),
|
|
4779
|
+
children: g
|
|
4763
4780
|
})]
|
|
4764
4781
|
}) : /* @__PURE__ */ $("section", {
|
|
4765
|
-
|
|
4782
|
+
...p,
|
|
4783
|
+
className: m.base({ class: d }),
|
|
4766
4784
|
style: f,
|
|
4767
4785
|
children: [/* @__PURE__ */ $("div", {
|
|
4768
|
-
className:
|
|
4769
|
-
children: [/* @__PURE__ */ Q(
|
|
4770
|
-
className:
|
|
4786
|
+
className: m.header(),
|
|
4787
|
+
children: [/* @__PURE__ */ Q(h, {
|
|
4788
|
+
className: m.title(),
|
|
4771
4789
|
children: t
|
|
4772
|
-
}),
|
|
4790
|
+
}), _]
|
|
4773
4791
|
}), /* @__PURE__ */ Q("div", {
|
|
4774
|
-
className:
|
|
4775
|
-
children:
|
|
4792
|
+
className: m.content(),
|
|
4793
|
+
children: g
|
|
4776
4794
|
})]
|
|
4777
4795
|
});
|
|
4778
4796
|
}
|
|
4779
4797
|
//#endregion
|
|
4780
4798
|
//#region src/components/SplitButton/SplitButton.tsx
|
|
4781
|
-
function wp({ classes: t, label: r, items: i, variant: a = "primary", color: o, size: s = "md", shape: c, icon: l, disabled: u = !1, menuLabel: d, onClick: f, onSelect: p, className: m, style: h }) {
|
|
4782
|
-
let
|
|
4799
|
+
function wp({ classes: t, label: r, items: i, variant: a = "primary", color: o, size: s = "md", shape: c, icon: l, disabled: u = !1, menuLabel: d, onClick: f, onSelect: p, className: m, style: h, ...g }) {
|
|
4800
|
+
let _ = n("button", Ze), v = n("splitButton", Wo, t)(), y = e(), b = d ?? y.splitButton.more, x = _({
|
|
4783
4801
|
variant: a,
|
|
4784
4802
|
color: Qe(o),
|
|
4785
4803
|
size: s,
|
|
4786
4804
|
shape: c
|
|
4787
4805
|
});
|
|
4788
4806
|
return /* @__PURE__ */ $("div", {
|
|
4807
|
+
...g,
|
|
4789
4808
|
role: "group",
|
|
4790
|
-
className:
|
|
4809
|
+
className: v.base({ class: m }),
|
|
4791
4810
|
style: h,
|
|
4792
4811
|
"aria-label": r,
|
|
4793
4812
|
children: [/* @__PURE__ */ $("button", {
|
|
4794
4813
|
type: "button",
|
|
4795
|
-
className:
|
|
4814
|
+
className: x.base({ class: v.main() }),
|
|
4796
4815
|
disabled: u,
|
|
4797
4816
|
onClick: f,
|
|
4798
4817
|
children: [l && /* @__PURE__ */ Q(l, {
|
|
4799
|
-
className:
|
|
4818
|
+
className: x.icon(),
|
|
4800
4819
|
"aria-hidden": "true"
|
|
4801
4820
|
}), r]
|
|
4802
4821
|
}), /* @__PURE__ */ Q(E, {
|
|
@@ -4804,11 +4823,11 @@ function wp({ classes: t, label: r, items: i, variant: a = "primary", color: o,
|
|
|
4804
4823
|
onSelect: p,
|
|
4805
4824
|
children: /* @__PURE__ */ Q("button", {
|
|
4806
4825
|
type: "button",
|
|
4807
|
-
className:
|
|
4826
|
+
className: x.base({ class: v.toggle() }),
|
|
4808
4827
|
disabled: u,
|
|
4809
|
-
"aria-label":
|
|
4828
|
+
"aria-label": b,
|
|
4810
4829
|
children: /* @__PURE__ */ Q(Dc, {
|
|
4811
|
-
className:
|
|
4830
|
+
className: v.toggleIcon(),
|
|
4812
4831
|
"aria-hidden": "true"
|
|
4813
4832
|
})
|
|
4814
4833
|
})
|
|
@@ -4844,31 +4863,32 @@ function Tp({ classes: e, pressed: t, defaultPressed: r = !1, onPressedChange: i
|
|
|
4844
4863
|
}
|
|
4845
4864
|
//#endregion
|
|
4846
4865
|
//#region src/components/Toolbar/Toolbar.tsx
|
|
4847
|
-
function Ep({ classes: e, label: t, orientation: r = "horizontal", children: i, start: a, center: o, end: s, className: c, style: l }) {
|
|
4848
|
-
let
|
|
4849
|
-
Y(() => Ao(
|
|
4850
|
-
let
|
|
4866
|
+
function Ep({ classes: e, label: t, orientation: r = "horizontal", children: i, start: a, center: o, end: s, className: c, style: l, ...u }) {
|
|
4867
|
+
let d = n("toolbar", Rs, e), f = n("toolbarRegion", zs), p = X(null);
|
|
4868
|
+
Y(() => Ao(p.current, r), [r]);
|
|
4869
|
+
let m = !!(a || o || s);
|
|
4851
4870
|
return /* @__PURE__ */ Q("div", {
|
|
4852
|
-
|
|
4871
|
+
...u,
|
|
4872
|
+
ref: p,
|
|
4853
4873
|
role: "toolbar",
|
|
4854
4874
|
"aria-label": t,
|
|
4855
4875
|
"aria-orientation": r,
|
|
4856
|
-
className:
|
|
4857
|
-
regions:
|
|
4876
|
+
className: d({
|
|
4877
|
+
regions: m || void 0,
|
|
4858
4878
|
class: c
|
|
4859
4879
|
}),
|
|
4860
4880
|
style: l,
|
|
4861
|
-
children:
|
|
4881
|
+
children: m ? /* @__PURE__ */ $($l, { children: [
|
|
4862
4882
|
/* @__PURE__ */ $("div", {
|
|
4863
|
-
className:
|
|
4883
|
+
className: f({ region: "start" }),
|
|
4864
4884
|
children: [a, i]
|
|
4865
4885
|
}),
|
|
4866
4886
|
/* @__PURE__ */ Q("div", {
|
|
4867
|
-
className:
|
|
4887
|
+
className: f({ region: "center" }),
|
|
4868
4888
|
children: o
|
|
4869
4889
|
}),
|
|
4870
4890
|
/* @__PURE__ */ Q("div", {
|
|
4871
|
-
className:
|
|
4891
|
+
className: f({ region: "end" }),
|
|
4872
4892
|
children: s
|
|
4873
4893
|
})
|
|
4874
4894
|
] }) : i
|
|
@@ -4899,150 +4919,151 @@ function Dp({ classes: e, start: t, end: r, children: i, className: a, ...o }) {
|
|
|
4899
4919
|
}
|
|
4900
4920
|
//#endregion
|
|
4901
4921
|
//#region src/components/DataView/DataView.tsx
|
|
4902
|
-
function Op({ classes: e, items: r = [], label: i, layout: a, defaultLayout: s = "list", onLayoutChange: c, layoutToggle: l = !0, pageSize: u, onPageSizeChange: d, pageSizes: p, page: m, defaultPage: h = 1, onPageChange: g, manual: _ = !1, totalCount: v, dataSource: y, query: b, loadMode: x = "pages", autoLoad: S = !1, hasMore: C = !1, onLoadMore: w, loading: T = !1, skeletonCount: E, filtered: O = !1, error: k, emptyText: A, header: j, toolbar: M, empty: N, noResults: P, renderError: F, children: I, className: L, style: R }) {
|
|
4903
|
-
let
|
|
4904
|
-
|
|
4905
|
-
}, [
|
|
4906
|
-
u !==
|
|
4907
|
-
let
|
|
4908
|
-
|
|
4909
|
-
},
|
|
4922
|
+
function Op({ classes: e, items: r = [], label: i, layout: a, defaultLayout: s = "list", onLayoutChange: c, layoutToggle: l = !0, pageSize: u, onPageSizeChange: d, pageSizes: p, page: m, defaultPage: h = 1, onPageChange: g, manual: _ = !1, totalCount: v, dataSource: y, query: b, loadMode: x = "pages", autoLoad: S = !1, hasMore: C = !1, onLoadMore: w, loading: T = !1, skeletonCount: E, filtered: O = !1, error: k, emptyText: A, header: j, toolbar: M, empty: N, noResults: P, renderError: F, children: I, className: L, style: R, ...z }) {
|
|
4923
|
+
let B = n("dataView", Xt, e), { translations: V, locale: U } = t(), W = V.dataView, [G, te] = Z(s), K = a ?? G, [ne, re] = Z(h), q = m ?? ne, ie = (e) => {
|
|
4924
|
+
re(e), g?.(e);
|
|
4925
|
+
}, [ae, oe] = Z(u), [se, ce] = Z(u);
|
|
4926
|
+
u !== se && (ce(u), oe(u));
|
|
4927
|
+
let le = ae, ue = (e) => {
|
|
4928
|
+
oe(e), d?.(e), ie(1);
|
|
4929
|
+
}, de = x === "infinite", fe = JSON.stringify(b ?? {}), [pe, me] = Z({
|
|
4910
4930
|
status: "idle",
|
|
4911
4931
|
items: []
|
|
4912
|
-
}), [
|
|
4932
|
+
}), [he] = Z(() => Ut({
|
|
4913
4933
|
source: { getItems: async () => ({ items: [] }) },
|
|
4914
|
-
onChange:
|
|
4915
|
-
})),
|
|
4916
|
-
|
|
4917
|
-
let
|
|
4934
|
+
onChange: me
|
|
4935
|
+
})), ge = y && !de ? y : void 0, [J, _e] = Z(fe);
|
|
4936
|
+
J !== fe && (_e(fe), re(1));
|
|
4937
|
+
let ve = X(fe);
|
|
4918
4938
|
Y(() => {
|
|
4919
|
-
|
|
4939
|
+
ge && (m !== void 0 && m !== 1 && ve.current !== fe ? (ve.current = fe, g?.(1)) : (ve.current = fe, he.configure({ source: ge }), he.load({
|
|
4920
4940
|
...b,
|
|
4921
|
-
page:
|
|
4922
|
-
pageSize:
|
|
4941
|
+
page: q,
|
|
4942
|
+
pageSize: le
|
|
4923
4943
|
})));
|
|
4924
4944
|
}, [
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
]), Y(() => () =>
|
|
4930
|
-
let { search:
|
|
4931
|
-
source:
|
|
4932
|
-
pageSize:
|
|
4933
|
-
query: b ?
|
|
4934
|
-
}),
|
|
4945
|
+
ge,
|
|
4946
|
+
q,
|
|
4947
|
+
le,
|
|
4948
|
+
fe
|
|
4949
|
+
]), Y(() => () => he.abort(), [he]);
|
|
4950
|
+
let { search: ye, ...be } = b ?? {}, xe = ee({
|
|
4951
|
+
source: de ? y : void 0,
|
|
4952
|
+
pageSize: le,
|
|
4953
|
+
query: b ? be : void 0
|
|
4954
|
+
}), Se = X(null);
|
|
4935
4955
|
Y(() => {
|
|
4936
|
-
if (!
|
|
4937
|
-
let e =
|
|
4938
|
-
|
|
4956
|
+
if (!de || !y) return;
|
|
4957
|
+
let e = Se.current === null;
|
|
4958
|
+
Se.current = ye ?? "", xe.search(ye ?? "", !e);
|
|
4939
4959
|
}, [
|
|
4940
|
-
|
|
4960
|
+
de,
|
|
4941
4961
|
y,
|
|
4942
|
-
|
|
4962
|
+
ye
|
|
4943
4963
|
]);
|
|
4944
|
-
let
|
|
4945
|
-
|
|
4946
|
-
},
|
|
4947
|
-
y ?
|
|
4948
|
-
},
|
|
4949
|
-
return
|
|
4964
|
+
let Ce = y ? de ? xe.state : pe : void 0, we = Ce?.items ?? r, Te = Ce ? Ce.totalCount ?? we.length : v ?? r.length, Ee = le && !de && !(_ || ge) ? we.slice((q - 1) * le, q * le) : we, De = Ce?.status === "error" ? Ce.error : k, Oe = T || Ce?.status === "loading", ke = Oe && !we.length, Ae = E ?? Math.min(le ?? 6, 6), je = y ? !!xe.state.hasMore : C, Me = O || !!b?.search || !!Object.keys(b?.filters ?? {}).length, Ne = !!y || T || _, Pe = Ce ? Jt(Ce, V, U) : T ? V.common.loading : "", Fe = () => {
|
|
4965
|
+
de ? xe.retry() : he.refresh();
|
|
4966
|
+
}, Ie = () => {
|
|
4967
|
+
y ? xe.loadMore() : w?.();
|
|
4968
|
+
}, Le = B({ layout: K }), Re;
|
|
4969
|
+
return Re = De ? /* @__PURE__ */ Q("div", {
|
|
4950
4970
|
role: "alert",
|
|
4951
|
-
className:
|
|
4952
|
-
children: F ? F(
|
|
4971
|
+
className: Le.error(),
|
|
4972
|
+
children: F ? F(De, Fe) : /* @__PURE__ */ $($l, { children: [V.dataSource.error, y && /* @__PURE__ */ Q(D, {
|
|
4953
4973
|
variant: "outline",
|
|
4954
4974
|
size: "sm",
|
|
4955
|
-
onClick:
|
|
4956
|
-
children:
|
|
4975
|
+
onClick: Fe,
|
|
4976
|
+
children: V.dataSource.retry
|
|
4957
4977
|
})] })
|
|
4958
|
-
}) :
|
|
4959
|
-
className:
|
|
4978
|
+
}) : ke ? /* @__PURE__ */ Q("ul", {
|
|
4979
|
+
className: Le.items(),
|
|
4960
4980
|
"aria-label": i,
|
|
4961
4981
|
"aria-busy": "true",
|
|
4962
|
-
children: Array.from({ length:
|
|
4963
|
-
className:
|
|
4982
|
+
children: Array.from({ length: Ae }, (e, t) => /* @__PURE__ */ Q("li", {
|
|
4983
|
+
className: Le.item(),
|
|
4964
4984
|
children: /* @__PURE__ */ $("div", {
|
|
4965
|
-
className:
|
|
4985
|
+
className: Le.skeleton(),
|
|
4966
4986
|
children: [/* @__PURE__ */ Q(f, { width: "60%" }), /* @__PURE__ */ Q(f, { width: "85%" })]
|
|
4967
4987
|
})
|
|
4968
4988
|
}, t))
|
|
4969
|
-
}) :
|
|
4970
|
-
className:
|
|
4989
|
+
}) : we.length ? /* @__PURE__ */ Q("ul", {
|
|
4990
|
+
className: Le.items(),
|
|
4971
4991
|
"aria-label": i,
|
|
4972
|
-
"aria-busy":
|
|
4973
|
-
children:
|
|
4974
|
-
className:
|
|
4975
|
-
children: I(e,
|
|
4992
|
+
"aria-busy": Ne && Oe || void 0,
|
|
4993
|
+
children: Ee.map((e, t) => /* @__PURE__ */ Q("li", {
|
|
4994
|
+
className: Le.item(),
|
|
4995
|
+
children: I(e, K)
|
|
4976
4996
|
}, t))
|
|
4977
|
-
}) :
|
|
4978
|
-
className:
|
|
4997
|
+
}) : Me && P ? /* @__PURE__ */ Q("p", {
|
|
4998
|
+
className: Le.empty(),
|
|
4979
4999
|
children: P
|
|
4980
5000
|
}) : /* @__PURE__ */ Q("p", {
|
|
4981
|
-
className:
|
|
4982
|
-
children: N ?? A ?? (
|
|
5001
|
+
className: Le.empty(),
|
|
5002
|
+
children: N ?? A ?? (Me ? V.common.noResults : V.common.empty)
|
|
4983
5003
|
}), /* @__PURE__ */ $("div", {
|
|
4984
|
-
|
|
5004
|
+
...z,
|
|
5005
|
+
className: Le.base({ class: L }),
|
|
4985
5006
|
style: R,
|
|
4986
5007
|
children: [
|
|
4987
5008
|
(l || j) && /* @__PURE__ */ $("div", {
|
|
4988
|
-
className:
|
|
5009
|
+
className: Le.header(),
|
|
4989
5010
|
children: [j, l && /* @__PURE__ */ $(Id, {
|
|
4990
|
-
value:
|
|
4991
|
-
label:
|
|
5011
|
+
value: K,
|
|
5012
|
+
label: W.layout,
|
|
4992
5013
|
onValueChange: (e) => {
|
|
4993
|
-
(e === "list" || e === "grid") && (
|
|
5014
|
+
(e === "list" || e === "grid") && (te(e), c?.(e));
|
|
4994
5015
|
},
|
|
4995
5016
|
children: [/* @__PURE__ */ Q(zd, {
|
|
4996
5017
|
value: "list",
|
|
4997
5018
|
icon: $c,
|
|
4998
|
-
children:
|
|
5019
|
+
children: W.list
|
|
4999
5020
|
}), /* @__PURE__ */ Q(zd, {
|
|
5000
5021
|
value: "grid",
|
|
5001
5022
|
icon: Zc,
|
|
5002
|
-
children:
|
|
5023
|
+
children: W.grid
|
|
5003
5024
|
})]
|
|
5004
5025
|
})]
|
|
5005
5026
|
}),
|
|
5006
5027
|
M && /* @__PURE__ */ Q("div", {
|
|
5007
|
-
className:
|
|
5028
|
+
className: Le.header(),
|
|
5008
5029
|
children: M
|
|
5009
5030
|
}),
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
className:
|
|
5031
|
+
Re,
|
|
5032
|
+
de && !De && we.length > 0 && (je || Te > we.length) && /* @__PURE__ */ $("div", {
|
|
5033
|
+
className: Le.footer(),
|
|
5013
5034
|
children: [
|
|
5014
|
-
|
|
5015
|
-
className:
|
|
5016
|
-
children:
|
|
5035
|
+
Te > we.length && /* @__PURE__ */ Q("span", {
|
|
5036
|
+
className: Le.summary(),
|
|
5037
|
+
children: W.shown(we.length, Te)
|
|
5017
5038
|
}),
|
|
5018
|
-
|
|
5039
|
+
je && /* @__PURE__ */ Q(D, {
|
|
5019
5040
|
variant: "outline",
|
|
5020
5041
|
size: "sm",
|
|
5021
|
-
loading:
|
|
5022
|
-
onClick:
|
|
5023
|
-
children:
|
|
5042
|
+
loading: Oe,
|
|
5043
|
+
onClick: Ie,
|
|
5044
|
+
children: Oe ? V.dataSource.loadingMore : W.loadMore
|
|
5024
5045
|
}),
|
|
5025
|
-
S &&
|
|
5026
|
-
className:
|
|
5027
|
-
active: !
|
|
5028
|
-
count:
|
|
5029
|
-
onLoad:
|
|
5046
|
+
S && je && /* @__PURE__ */ Q(H, {
|
|
5047
|
+
className: Le.sentinel(),
|
|
5048
|
+
active: !Oe,
|
|
5049
|
+
count: we.length,
|
|
5050
|
+
onLoad: Ie
|
|
5030
5051
|
})
|
|
5031
5052
|
]
|
|
5032
5053
|
}),
|
|
5033
|
-
!
|
|
5034
|
-
count:
|
|
5035
|
-
pageSize:
|
|
5054
|
+
!de && !!le && Te > le && /* @__PURE__ */ Q(o, {
|
|
5055
|
+
count: Te,
|
|
5056
|
+
pageSize: le,
|
|
5036
5057
|
pageSizes: p,
|
|
5037
|
-
page:
|
|
5038
|
-
translations: { rootLabel: `${i}: ${
|
|
5039
|
-
onPageChange:
|
|
5040
|
-
onPageSizeChange:
|
|
5058
|
+
page: q,
|
|
5059
|
+
translations: { rootLabel: `${i}: ${V.pagination.rootLabel}` },
|
|
5060
|
+
onPageChange: ie,
|
|
5061
|
+
onPageSizeChange: ue
|
|
5041
5062
|
}),
|
|
5042
|
-
|
|
5063
|
+
Ne && /* @__PURE__ */ Q("p", {
|
|
5043
5064
|
role: "status",
|
|
5044
|
-
className:
|
|
5045
|
-
children:
|
|
5065
|
+
className: Le.status(),
|
|
5066
|
+
children: Pe
|
|
5046
5067
|
})
|
|
5047
5068
|
]
|
|
5048
5069
|
});
|
|
@@ -5057,47 +5078,48 @@ var kp = [
|
|
|
5057
5078
|
"danger",
|
|
5058
5079
|
"muted"
|
|
5059
5080
|
], Ap = (e, t) => `${Math.round(e / t * 100)} %`;
|
|
5060
|
-
function jp({ classes: e, items: t, label: r, max: i, formatValue: a = Ap, orientation: o, legendPosition: s, legendOrientation: c, className: l, style: u }) {
|
|
5061
|
-
let
|
|
5081
|
+
function jp({ classes: e, items: t, label: r, max: i, formatValue: a = Ap, orientation: o, legendPosition: s, legendOrientation: c, className: l, style: u, ...d }) {
|
|
5082
|
+
let f = n("meterGroup", Ki, e), p = f({
|
|
5062
5083
|
orientation: o,
|
|
5063
5084
|
legendPosition: s,
|
|
5064
5085
|
legendLayout: c === "vertical" ? "stacked" : void 0
|
|
5065
|
-
}),
|
|
5086
|
+
}), m = o === "vertical" ? "height" : "width", h = ql(), g = i ?? t.reduce((e, t) => e + t.value, 0), _ = (e, t) => e.color ?? kp[t % kp.length];
|
|
5066
5087
|
return /* @__PURE__ */ $("div", {
|
|
5088
|
+
...d,
|
|
5067
5089
|
role: "group",
|
|
5068
|
-
"aria-labelledby": `${
|
|
5069
|
-
className:
|
|
5090
|
+
"aria-labelledby": `${h}label`,
|
|
5091
|
+
className: p.base({ class: l }),
|
|
5070
5092
|
style: u,
|
|
5071
5093
|
children: [
|
|
5072
5094
|
/* @__PURE__ */ Q("span", {
|
|
5073
|
-
id: `${
|
|
5074
|
-
className:
|
|
5095
|
+
id: `${h}label`,
|
|
5096
|
+
className: p.label(),
|
|
5075
5097
|
children: r
|
|
5076
5098
|
}),
|
|
5077
5099
|
/* @__PURE__ */ Q("div", {
|
|
5078
|
-
className:
|
|
5100
|
+
className: p.bar(),
|
|
5079
5101
|
"aria-hidden": "true",
|
|
5080
5102
|
children: t.map((e, t) => /* @__PURE__ */ Q("span", {
|
|
5081
|
-
className:
|
|
5082
|
-
color:
|
|
5103
|
+
className: f({
|
|
5104
|
+
color: _(e, t),
|
|
5083
5105
|
orientation: o
|
|
5084
5106
|
}).segment(),
|
|
5085
|
-
style: { [
|
|
5107
|
+
style: { [m]: `${e.value / g * 100}%` }
|
|
5086
5108
|
}, e.label))
|
|
5087
5109
|
}),
|
|
5088
5110
|
/* @__PURE__ */ Q("ul", {
|
|
5089
|
-
className:
|
|
5111
|
+
className: p.legend(),
|
|
5090
5112
|
children: t.map((e, t) => /* @__PURE__ */ $("li", {
|
|
5091
|
-
className:
|
|
5113
|
+
className: p.legendItem(),
|
|
5092
5114
|
children: [
|
|
5093
5115
|
/* @__PURE__ */ Q("span", {
|
|
5094
|
-
className:
|
|
5116
|
+
className: f({ color: _(e, t) }).swatch(),
|
|
5095
5117
|
"aria-hidden": "true"
|
|
5096
5118
|
}),
|
|
5097
5119
|
`${e.label} `,
|
|
5098
5120
|
/* @__PURE__ */ Q("span", {
|
|
5099
|
-
className:
|
|
5100
|
-
children: a(e.value,
|
|
5121
|
+
className: p.value(),
|
|
5122
|
+
children: a(e.value, g)
|
|
5101
5123
|
})
|
|
5102
5124
|
]
|
|
5103
5125
|
}, e.label))
|
|
@@ -5107,95 +5129,96 @@ function jp({ classes: e, items: t, label: r, max: i, formatValue: a = Ap, orien
|
|
|
5107
5129
|
}
|
|
5108
5130
|
//#endregion
|
|
5109
5131
|
//#region src/components/OrderList/OrderList.tsx
|
|
5110
|
-
function Mp({ classes: t, value: r, defaultValue: i = [], onValueChange: a, label: o, itemValue: s, itemLabel: c, itemDisabled: l, valueKey: u, filter: d = !1, draggable: f = !1, renderItem: p, className: m, style: h }) {
|
|
5111
|
-
let
|
|
5132
|
+
function Mp({ classes: t, value: r, defaultValue: i = [], onValueChange: a, label: o, itemValue: s, itemLabel: c, itemDisabled: l, valueKey: u, filter: d = !1, draggable: f = !1, renderItem: p, className: m, style: h, ...g }) {
|
|
5133
|
+
let _ = n("orderList", aa, t)(), v = e().orderList, y = {
|
|
5112
5134
|
itemValue: s,
|
|
5113
5135
|
itemLabel: c,
|
|
5114
5136
|
itemDisabled: l,
|
|
5115
5137
|
valueKey: u
|
|
5116
|
-
}, [
|
|
5138
|
+
}, [b, x] = Z(i), S = r ?? b, C = S.map((e) => Ts(e, y)), [w, T] = Z([]), [E, D] = Z(""), O = (e) => Si(e, u), k = w.length ? C.findIndex((e) => e.key === O(w[0])) : -1, A = (e, t) => {
|
|
5117
5139
|
if (e < 0) return;
|
|
5118
|
-
let n = Math.max(0, Math.min(
|
|
5140
|
+
let n = Math.max(0, Math.min(S.length - 1, t));
|
|
5119
5141
|
if (n === e) return;
|
|
5120
|
-
let r = [...
|
|
5121
|
-
r.splice(n, 0, i),
|
|
5122
|
-
},
|
|
5123
|
-
!e.altKey || e.key !== "ArrowUp" && e.key !== "ArrowDown" || (e.preventDefault(),
|
|
5124
|
-
}, [
|
|
5125
|
-
|
|
5142
|
+
let r = [...S], [i] = r.splice(e, 1);
|
|
5143
|
+
r.splice(n, 0, i), x(r), a?.(r), D(v.moved(C[e].label, n + 1, r.length));
|
|
5144
|
+
}, M = (e) => A(k, e), N = (e) => {
|
|
5145
|
+
!e.altKey || e.key !== "ArrowUp" && e.key !== "ArrowDown" || (e.preventDefault(), M(k + (e.key === "ArrowUp" ? -1 : 1)));
|
|
5146
|
+
}, [P, F] = Z(null), [I, L] = Z(!1), R = (e) => C.findIndex((t) => t.key === e), B = (e) => e.target.closest("[data-part=\"item\"]")?.dataset.value, V = () => {
|
|
5147
|
+
F(null), L(!1);
|
|
5126
5148
|
};
|
|
5127
5149
|
return /* @__PURE__ */ $("div", {
|
|
5128
|
-
|
|
5150
|
+
...g,
|
|
5151
|
+
className: _.base({ class: m }),
|
|
5129
5152
|
style: h,
|
|
5130
5153
|
children: [
|
|
5131
5154
|
/* @__PURE__ */ Q("div", {
|
|
5132
|
-
className:
|
|
5133
|
-
"data-drop":
|
|
5134
|
-
onKeyDown:
|
|
5155
|
+
className: _.list({ class: f ? _.dropZone() : void 0 }),
|
|
5156
|
+
"data-drop": I || void 0,
|
|
5157
|
+
onKeyDown: N,
|
|
5135
5158
|
onMouseDownCapture: z,
|
|
5136
5159
|
onDragStart: (e) => {
|
|
5137
|
-
let t =
|
|
5138
|
-
t !== void 0 && (
|
|
5160
|
+
let t = B(e);
|
|
5161
|
+
t !== void 0 && (F(t), e.dataTransfer.setData("text/plain", C[R(t)]?.label ?? t), e.dataTransfer.effectAllowed = "move");
|
|
5139
5162
|
},
|
|
5140
5163
|
onDragOver: (e) => {
|
|
5141
|
-
|
|
5164
|
+
P !== null && (e.preventDefault(), L(!0));
|
|
5142
5165
|
},
|
|
5143
|
-
onDragLeave: () =>
|
|
5166
|
+
onDragLeave: () => L(!1),
|
|
5144
5167
|
onDrop: (e) => {
|
|
5145
|
-
if (
|
|
5168
|
+
if (P === null) return;
|
|
5146
5169
|
e.preventDefault();
|
|
5147
|
-
let t =
|
|
5148
|
-
|
|
5170
|
+
let t = R(B(e));
|
|
5171
|
+
A(R(P), t < 0 ? S.length - 1 : t), V();
|
|
5149
5172
|
},
|
|
5150
|
-
onDragEnd:
|
|
5173
|
+
onDragEnd: V,
|
|
5151
5174
|
children: /* @__PURE__ */ Q(xp, {
|
|
5152
|
-
items:
|
|
5175
|
+
items: S,
|
|
5153
5176
|
label: o,
|
|
5154
|
-
...
|
|
5177
|
+
...y,
|
|
5155
5178
|
filter: d,
|
|
5156
5179
|
draggableItems: f,
|
|
5157
5180
|
renderItem: p,
|
|
5158
|
-
value:
|
|
5159
|
-
onValueChange:
|
|
5181
|
+
value: w,
|
|
5182
|
+
onValueChange: T
|
|
5160
5183
|
})
|
|
5161
5184
|
}),
|
|
5162
5185
|
/* @__PURE__ */ $("div", {
|
|
5163
|
-
className:
|
|
5186
|
+
className: _.controls(),
|
|
5164
5187
|
children: [
|
|
5165
5188
|
/* @__PURE__ */ Q(j, {
|
|
5166
5189
|
icon: Fc,
|
|
5167
|
-
label:
|
|
5190
|
+
label: v.top,
|
|
5168
5191
|
size: "sm",
|
|
5169
|
-
disabled:
|
|
5170
|
-
onClick: () =>
|
|
5192
|
+
disabled: k <= 0,
|
|
5193
|
+
onClick: () => M(0)
|
|
5171
5194
|
}),
|
|
5172
5195
|
/* @__PURE__ */ Q(j, {
|
|
5173
5196
|
icon: Ac,
|
|
5174
|
-
label:
|
|
5197
|
+
label: v.up,
|
|
5175
5198
|
size: "sm",
|
|
5176
|
-
disabled:
|
|
5177
|
-
onClick: () =>
|
|
5199
|
+
disabled: k <= 0,
|
|
5200
|
+
onClick: () => M(k - 1)
|
|
5178
5201
|
}),
|
|
5179
5202
|
/* @__PURE__ */ Q(j, {
|
|
5180
5203
|
icon: Dc,
|
|
5181
|
-
label:
|
|
5204
|
+
label: v.down,
|
|
5182
5205
|
size: "sm",
|
|
5183
|
-
disabled:
|
|
5184
|
-
onClick: () =>
|
|
5206
|
+
disabled: k < 0 || k === S.length - 1,
|
|
5207
|
+
onClick: () => M(k + 1)
|
|
5185
5208
|
}),
|
|
5186
5209
|
/* @__PURE__ */ Q(j, {
|
|
5187
5210
|
icon: jc,
|
|
5188
|
-
label:
|
|
5211
|
+
label: v.bottom,
|
|
5189
5212
|
size: "sm",
|
|
5190
|
-
disabled:
|
|
5191
|
-
onClick: () =>
|
|
5213
|
+
disabled: k < 0 || k === S.length - 1,
|
|
5214
|
+
onClick: () => M(S.length - 1)
|
|
5192
5215
|
})
|
|
5193
5216
|
]
|
|
5194
5217
|
}),
|
|
5195
5218
|
/* @__PURE__ */ Q("p", {
|
|
5196
5219
|
role: "status",
|
|
5197
|
-
className:
|
|
5198
|
-
children:
|
|
5220
|
+
className: _.status(),
|
|
5221
|
+
children: E
|
|
5199
5222
|
})
|
|
5200
5223
|
]
|
|
5201
5224
|
});
|
|
@@ -5207,72 +5230,73 @@ var Np = Ul(null), Pp = {
|
|
|
5207
5230
|
children: {},
|
|
5208
5231
|
errors: {}
|
|
5209
5232
|
}, Fp = (e) => e.id ?? e.label;
|
|
5210
|
-
function Ip({ classes: e, node: r, label: i, collapsible: a = !1, collapsedKeys: o, defaultCollapsedKeys: s = [], onCollapsedKeysChange: c, selectionMode: l = "none", selectedKeys: u, defaultSelectedKeys: d = [], onSelectedKeysChange: f, loadChildren: p, onLoadChildren: m, dataSource: h, renderContent: g, className: _, style: v }) {
|
|
5211
|
-
let
|
|
5233
|
+
function Ip({ classes: e, node: r, label: i, collapsible: a = !1, collapsedKeys: o, defaultCollapsedKeys: s = [], onCollapsedKeysChange: c, selectionMode: l = "none", selectedKeys: u, defaultSelectedKeys: d = [], onSelectedKeysChange: f, loadChildren: p, onLoadChildren: m, dataSource: h, renderContent: g, className: _, style: v, ...y }) {
|
|
5234
|
+
let b = n("orgChart", oa, e)(), { translations: x, locale: S } = t(), [C, w] = Z(""), [T, E] = Z(Pp), D = X(Pp), [O, k] = Z(() => /* @__PURE__ */ new Set()), A = X(/* @__PURE__ */ new Map()), j = X({
|
|
5212
5235
|
loadChildren: p,
|
|
5213
5236
|
dataSource: h
|
|
5214
5237
|
});
|
|
5215
5238
|
Y(() => {
|
|
5216
|
-
|
|
5239
|
+
j.current = {
|
|
5217
5240
|
loadChildren: p,
|
|
5218
5241
|
dataSource: h
|
|
5219
5242
|
};
|
|
5220
5243
|
});
|
|
5221
|
-
let
|
|
5244
|
+
let M = X(void 0), N = () => M.current ??= new de({
|
|
5222
5245
|
key: Fp,
|
|
5223
|
-
load: (e, t) =>
|
|
5246
|
+
load: (e, t) => j.current.loadChildren ? j.current.loadChildren(e, t) : j.current.dataSource.getChildren(e, t).then((e) => e.items),
|
|
5224
5247
|
onChange: (e) => {
|
|
5225
|
-
let t =
|
|
5226
|
-
|
|
5248
|
+
let t = D.current.status;
|
|
5249
|
+
D.current = e;
|
|
5227
5250
|
for (let [n, r] of Object.entries(e.status)) {
|
|
5228
5251
|
if (t[n] === r) continue;
|
|
5229
|
-
let i =
|
|
5230
|
-
|
|
5252
|
+
let i = A.current.get(n) ?? n;
|
|
5253
|
+
w(r === "loading" ? x.tree.loadingNode(i) : r === "error" ? x.tree.loadError(i) : Na(x.tree.loadedNode, e.children[n]?.length ?? 0, S).replace("{label}", i));
|
|
5231
5254
|
}
|
|
5232
|
-
|
|
5255
|
+
E(e);
|
|
5233
5256
|
}
|
|
5234
5257
|
});
|
|
5235
5258
|
Y(() => () => {
|
|
5236
|
-
|
|
5259
|
+
M.current?.dispose(), M.current = void 0;
|
|
5237
5260
|
}, []);
|
|
5238
|
-
let
|
|
5239
|
-
|
|
5240
|
-
}, [
|
|
5261
|
+
let P = !!p || !!h?.getChildren, F = Xl(() => cc([r], T.children, Fp)[0], [r, T.children]), [I, L] = Z(s), R = new Set(o ?? I), z = (e) => {
|
|
5262
|
+
L(e), c?.(e);
|
|
5263
|
+
}, [B, V] = Z(d), H = u ?? B, ee = {
|
|
5241
5264
|
collapsible: a,
|
|
5242
5265
|
selectable: l !== "none",
|
|
5243
|
-
expanded: (e, t) => !
|
|
5244
|
-
selected: (e) =>
|
|
5245
|
-
loading: (e) =>
|
|
5246
|
-
failed: (e) =>
|
|
5266
|
+
expanded: (e, t) => !R.has(t) && !ei(e),
|
|
5267
|
+
selected: (e) => H.includes(e),
|
|
5268
|
+
loading: (e) => T.status[e] === "loading" || !P && O.has(e),
|
|
5269
|
+
failed: (e) => T.status[e] === "error",
|
|
5247
5270
|
toggle(e, t) {
|
|
5248
|
-
ei(e) ? (
|
|
5271
|
+
ei(e) ? (A.current.set(t, e.label), R.has(t) && z([...R].filter((e) => e !== t)), P ? N().load(e, { force: T.status[t] === "error" }) : O.has(t) || (k((e) => /* @__PURE__ */ new Set([...e, t])), w(x.tree.loadingNode(e.label)), m?.(e))) : z(R.has(t) ? [...R].filter((e) => e !== t) : [...R, t]);
|
|
5249
5272
|
},
|
|
5250
5273
|
select(e) {
|
|
5251
|
-
let t = l === "multiple" ?
|
|
5252
|
-
|
|
5274
|
+
let t = l === "multiple" ? H.includes(e) ? H.filter((t) => t !== e) : [...H, e] : H.includes(e) ? [] : [e];
|
|
5275
|
+
V(t), f?.(t);
|
|
5253
5276
|
},
|
|
5254
5277
|
renderContent: g
|
|
5255
5278
|
};
|
|
5256
5279
|
return /* @__PURE__ */ $("div", {
|
|
5257
|
-
|
|
5280
|
+
...y,
|
|
5281
|
+
className: b.base({ class: _ }),
|
|
5258
5282
|
style: v,
|
|
5259
5283
|
children: [/* @__PURE__ */ Q(Np, {
|
|
5260
|
-
value:
|
|
5284
|
+
value: ee,
|
|
5261
5285
|
children: /* @__PURE__ */ Q("ul", {
|
|
5262
5286
|
"aria-label": i,
|
|
5263
|
-
className:
|
|
5287
|
+
className: b.rootList(),
|
|
5264
5288
|
children: /* @__PURE__ */ Q("li", {
|
|
5265
|
-
className:
|
|
5289
|
+
className: b.rootItem(),
|
|
5266
5290
|
children: /* @__PURE__ */ Q(Lp, {
|
|
5267
|
-
node:
|
|
5291
|
+
node: F,
|
|
5268
5292
|
path: "0"
|
|
5269
5293
|
})
|
|
5270
5294
|
})
|
|
5271
5295
|
})
|
|
5272
|
-
}), a && (p || h ||
|
|
5296
|
+
}), a && (p || h || O.size > 0) && /* @__PURE__ */ Q("p", {
|
|
5273
5297
|
role: "status",
|
|
5274
|
-
className:
|
|
5275
|
-
children:
|
|
5298
|
+
className: b.status(),
|
|
5299
|
+
children: C
|
|
5276
5300
|
})]
|
|
5277
5301
|
});
|
|
5278
5302
|
}
|
|
@@ -5330,8 +5354,8 @@ function Lp({ node: e, path: r }) {
|
|
|
5330
5354
|
}
|
|
5331
5355
|
//#endregion
|
|
5332
5356
|
//#region src/components/PickList/PickList.tsx
|
|
5333
|
-
function Rp({ classes: t, items: r, value: i, defaultValue: a = [], onValueChange: o, sourceLabel: s, targetLabel: c, itemValue: l, itemLabel: u, itemDisabled: d, valueKey: f, filter: p = !1, manualFilter: m, onFilterChange: h, loading: g, hasMore: _, onLoadMore: v, selectAll: y = !1, draggable: b = !1, renderItem: x, className: S, style: C }) {
|
|
5334
|
-
let
|
|
5357
|
+
function Rp({ classes: t, items: r, value: i, defaultValue: a = [], onValueChange: o, sourceLabel: s, targetLabel: c, itemValue: l, itemLabel: u, itemDisabled: d, valueKey: f, filter: p = !1, manualFilter: m, onFilterChange: h, loading: g, hasMore: _, onLoadMore: v, selectAll: y = !1, draggable: b = !1, renderItem: x, className: S, style: C, ...w }) {
|
|
5358
|
+
let T = n("pickList", ka, t)(), E = e().pickList, D = s ?? E.source, O = c ?? E.target, k = (e) => Si(e, f), A = Xl(() => Es(r, {
|
|
5335
5359
|
itemValue: l,
|
|
5336
5360
|
itemLabel: u,
|
|
5337
5361
|
itemDisabled: d,
|
|
@@ -5342,45 +5366,45 @@ function Rp({ classes: t, items: r, value: i, defaultValue: a = [], onValueChang
|
|
|
5342
5366
|
u,
|
|
5343
5367
|
d,
|
|
5344
5368
|
f
|
|
5345
|
-
]), [
|
|
5346
|
-
|
|
5347
|
-
},
|
|
5348
|
-
e.length && (m &&
|
|
5369
|
+
]), [M, N] = Z(a), P = i ?? M, F = new Set(P.map(k)), I = new Map(A.map((e) => [e.key, e])), [L, R] = Z(() => new Map(P.flatMap((e) => I.has(k(e)) ? [[k(e), I.get(k(e))]] : []))), B = A.filter((e) => !F.has(e.key)), V = P.map((e) => I.get(k(e)) ?? L.get(k(e))).filter((e) => e !== void 0), [H, ee] = Z([]), [U, W] = Z([]), [G, te] = Z(""), K = (e, t, n) => {
|
|
5370
|
+
N(e), o?.(e), te(E.moved(t, n));
|
|
5371
|
+
}, ne = (e) => {
|
|
5372
|
+
e.length && (m && R((t) => {
|
|
5349
5373
|
let n = new Map(t);
|
|
5350
5374
|
for (let t of e) {
|
|
5351
|
-
let e =
|
|
5375
|
+
let e = I.get(k(t));
|
|
5352
5376
|
e && n.set(e.key, e);
|
|
5353
5377
|
}
|
|
5354
5378
|
return n;
|
|
5355
|
-
}),
|
|
5356
|
-
},
|
|
5379
|
+
}), K([...P, ...e.filter((e) => !F.has(k(e)))], e.length, O), ee([]));
|
|
5380
|
+
}, re = (e) => {
|
|
5357
5381
|
if (!e.length) return;
|
|
5358
|
-
let t = new Set(e.map(
|
|
5359
|
-
|
|
5360
|
-
}, [
|
|
5361
|
-
className:
|
|
5362
|
-
"data-drop":
|
|
5382
|
+
let t = new Set(e.map(k));
|
|
5383
|
+
K(P.filter((e) => !t.has(k(e))), e.length, D), W([]);
|
|
5384
|
+
}, [q, ie] = Z(null), [ae, oe] = Z(null), se = (e) => ({
|
|
5385
|
+
className: T.dropZone(),
|
|
5386
|
+
"data-drop": ae === e || void 0,
|
|
5363
5387
|
onDragStart: (t) => {
|
|
5364
|
-
let n = t.target.closest("[data-part=\"item\"]")?.dataset.value, r = n === void 0 ? void 0 :
|
|
5388
|
+
let n = t.target.closest("[data-part=\"item\"]")?.dataset.value, r = n === void 0 ? void 0 : I.get(n);
|
|
5365
5389
|
if (!r) return;
|
|
5366
|
-
let i = e === "source" ?
|
|
5367
|
-
|
|
5390
|
+
let i = e === "source" ? H : U, a = new Set(i.map(k));
|
|
5391
|
+
ie({
|
|
5368
5392
|
from: e,
|
|
5369
5393
|
values: a.has(r.key) ? i : [r.value]
|
|
5370
5394
|
}), t.dataTransfer.setData("text/plain", r.label), t.dataTransfer.effectAllowed = "move";
|
|
5371
5395
|
},
|
|
5372
5396
|
onDragOver: (t) => {
|
|
5373
|
-
|
|
5397
|
+
q && q.from !== e && (t.preventDefault(), oe(e));
|
|
5374
5398
|
},
|
|
5375
5399
|
onMouseDownCapture: z,
|
|
5376
|
-
onDragLeave: () =>
|
|
5400
|
+
onDragLeave: () => oe(null),
|
|
5377
5401
|
onDrop: (t) => {
|
|
5378
|
-
|
|
5402
|
+
q && q.from !== e && (t.preventDefault(), e === "target" ? ne(q.values) : re(q.values), ie(null), oe(null));
|
|
5379
5403
|
},
|
|
5380
5404
|
onDragEnd: () => {
|
|
5381
|
-
|
|
5405
|
+
ie(null), oe(null);
|
|
5382
5406
|
}
|
|
5383
|
-
}),
|
|
5407
|
+
}), ce = {
|
|
5384
5408
|
itemValue: l,
|
|
5385
5409
|
itemLabel: u,
|
|
5386
5410
|
itemDisabled: d,
|
|
@@ -5391,139 +5415,143 @@ function Rp({ classes: t, items: r, value: i, defaultValue: a = [], onValueChang
|
|
|
5391
5415
|
selectAll: y,
|
|
5392
5416
|
draggableItems: b,
|
|
5393
5417
|
renderItem: x
|
|
5394
|
-
},
|
|
5395
|
-
...
|
|
5418
|
+
}, le = /* @__PURE__ */ Q(xp, {
|
|
5419
|
+
...ce,
|
|
5396
5420
|
manualFilter: m,
|
|
5397
5421
|
onFilterChange: h,
|
|
5398
5422
|
loading: g,
|
|
5399
5423
|
hasMore: _,
|
|
5400
5424
|
onLoadMore: v,
|
|
5401
|
-
items: R.map((e) => e.item),
|
|
5402
|
-
label: E,
|
|
5403
|
-
value: V,
|
|
5404
|
-
onValueChange: H
|
|
5405
|
-
}), le = /* @__PURE__ */ Q(xp, {
|
|
5406
|
-
...se,
|
|
5407
5425
|
items: B.map((e) => e.item),
|
|
5408
5426
|
label: D,
|
|
5409
|
-
value:
|
|
5410
|
-
onValueChange:
|
|
5427
|
+
value: H,
|
|
5428
|
+
onValueChange: ee
|
|
5429
|
+
}), ue = /* @__PURE__ */ Q(xp, {
|
|
5430
|
+
...ce,
|
|
5431
|
+
items: V.map((e) => e.item),
|
|
5432
|
+
label: O,
|
|
5433
|
+
value: U,
|
|
5434
|
+
onValueChange: W
|
|
5411
5435
|
});
|
|
5412
5436
|
return /* @__PURE__ */ $("div", {
|
|
5413
|
-
|
|
5437
|
+
...w,
|
|
5438
|
+
className: T.base({ class: S }),
|
|
5414
5439
|
style: C,
|
|
5415
5440
|
children: [
|
|
5416
5441
|
b ? /* @__PURE__ */ Q("div", {
|
|
5417
|
-
...
|
|
5418
|
-
children:
|
|
5419
|
-
}) :
|
|
5442
|
+
...se("source"),
|
|
5443
|
+
children: le
|
|
5444
|
+
}) : le,
|
|
5420
5445
|
/* @__PURE__ */ $("div", {
|
|
5421
|
-
className:
|
|
5446
|
+
className: T.controls(),
|
|
5422
5447
|
children: [
|
|
5423
5448
|
/* @__PURE__ */ Q(j, {
|
|
5424
5449
|
icon: kc,
|
|
5425
|
-
label:
|
|
5450
|
+
label: E.add,
|
|
5426
5451
|
size: "sm",
|
|
5427
|
-
disabled: !
|
|
5428
|
-
onClick: () =>
|
|
5452
|
+
disabled: !H.length,
|
|
5453
|
+
onClick: () => ne(H)
|
|
5429
5454
|
}),
|
|
5430
5455
|
/* @__PURE__ */ Q(j, {
|
|
5431
5456
|
icon: Pc,
|
|
5432
|
-
label:
|
|
5457
|
+
label: E.addAll,
|
|
5433
5458
|
size: "sm",
|
|
5434
|
-
disabled: !
|
|
5435
|
-
onClick: () =>
|
|
5459
|
+
disabled: !B.length,
|
|
5460
|
+
onClick: () => ne(B.map((e) => e.value))
|
|
5436
5461
|
}),
|
|
5437
5462
|
/* @__PURE__ */ Q(j, {
|
|
5438
5463
|
icon: Oc,
|
|
5439
|
-
label:
|
|
5464
|
+
label: E.remove,
|
|
5440
5465
|
size: "sm",
|
|
5441
|
-
disabled: !
|
|
5442
|
-
onClick: () =>
|
|
5466
|
+
disabled: !U.length,
|
|
5467
|
+
onClick: () => re(U)
|
|
5443
5468
|
}),
|
|
5444
5469
|
/* @__PURE__ */ Q(j, {
|
|
5445
5470
|
icon: Mc,
|
|
5446
|
-
label:
|
|
5471
|
+
label: E.removeAll,
|
|
5447
5472
|
size: "sm",
|
|
5448
|
-
disabled: !
|
|
5449
|
-
onClick: () =>
|
|
5473
|
+
disabled: !V.length,
|
|
5474
|
+
onClick: () => re(P)
|
|
5450
5475
|
})
|
|
5451
5476
|
]
|
|
5452
5477
|
}),
|
|
5453
5478
|
b ? /* @__PURE__ */ Q("div", {
|
|
5454
|
-
...
|
|
5455
|
-
children:
|
|
5456
|
-
}) :
|
|
5479
|
+
...se("target"),
|
|
5480
|
+
children: ue
|
|
5481
|
+
}) : ue,
|
|
5457
5482
|
/* @__PURE__ */ Q("p", {
|
|
5458
5483
|
role: "status",
|
|
5459
|
-
className:
|
|
5460
|
-
children:
|
|
5484
|
+
className: T.status(),
|
|
5485
|
+
children: G
|
|
5461
5486
|
})
|
|
5462
5487
|
]
|
|
5463
5488
|
});
|
|
5464
5489
|
}
|
|
5465
5490
|
//#endregion
|
|
5466
5491
|
//#region src/components/Timeline/Timeline.tsx
|
|
5467
|
-
function zp({ classes: t, items: r, label: i, align: a = "start", orientation: o = "vertical", activeIndex: s, renderContent: c, renderOpposite: l, renderMarker: u, feed: d = !1, hasMore: f = !1, loading: p = !1, autoLoad: m = !1, setSize: h, onLoadMore: g, className: _, style: v }) {
|
|
5468
|
-
let
|
|
5492
|
+
function zp({ classes: t, items: r, label: i, align: a = "start", orientation: o = "vertical", activeIndex: s, renderContent: c, renderOpposite: l, renderMarker: u, feed: d = !1, hasMore: f = !1, loading: p = !1, autoLoad: m = !1, setSize: h, onLoadMore: g, className: _, style: v, ...y }) {
|
|
5493
|
+
let b = e(), x = ql(), S = h ?? (f ? -1 : r.length), C = (e) => {
|
|
5469
5494
|
if (e.key !== "PageDown" && e.key !== "PageUp") return;
|
|
5470
5495
|
let t = [...e.currentTarget.querySelectorAll(":scope > article")], n = t[t.findIndex((t) => t.contains(e.target)) + (e.key === "PageDown" ? 1 : -1)];
|
|
5471
5496
|
n && (e.preventDefault(), n.focus());
|
|
5472
|
-
},
|
|
5497
|
+
}, w = n("timeline", gs, t), T = o === "horizontal", E = T ? "start" : a, O = E === "alternate" || !!l || r.some((e) => e.opposite), k = (e, t) => w({
|
|
5473
5498
|
status: e?.status,
|
|
5474
5499
|
active: t !== void 0 && t === s,
|
|
5475
|
-
align:
|
|
5476
|
-
horizontal:
|
|
5477
|
-
withOpposite:
|
|
5478
|
-
}),
|
|
5500
|
+
align: E,
|
|
5501
|
+
horizontal: T,
|
|
5502
|
+
withOpposite: O
|
|
5503
|
+
}), A = k(), j = d ? "div" : "ol", M = d ? "article" : "li", N = /* @__PURE__ */ Q(j, {
|
|
5504
|
+
...y,
|
|
5479
5505
|
"aria-label": i,
|
|
5480
|
-
className:
|
|
5506
|
+
className: A.base({ class: _ }),
|
|
5481
5507
|
style: v,
|
|
5482
5508
|
...d ? {
|
|
5483
5509
|
role: "feed",
|
|
5484
5510
|
"aria-busy": p || void 0,
|
|
5485
|
-
onKeyDown:
|
|
5511
|
+
onKeyDown: (e) => {
|
|
5512
|
+
y.onKeyDown?.(e), C(e);
|
|
5513
|
+
}
|
|
5486
5514
|
} : {},
|
|
5487
5515
|
children: r.map((e, t) => {
|
|
5488
|
-
let n = e.icon, r =
|
|
5489
|
-
return /* @__PURE__ */ $(
|
|
5490
|
-
className:
|
|
5516
|
+
let n = e.icon, r = k(e, t);
|
|
5517
|
+
return /* @__PURE__ */ $(M, {
|
|
5518
|
+
className: A.item({ class: d ? A.article() : void 0 }),
|
|
5491
5519
|
"aria-current": t === s ? "step" : void 0,
|
|
5492
5520
|
...d ? {
|
|
5493
5521
|
tabIndex: 0,
|
|
5494
5522
|
"aria-posinset": t + 1,
|
|
5495
|
-
"aria-setsize":
|
|
5496
|
-
...c ? { "aria-label": e.title } : { "aria-labelledby": `${
|
|
5523
|
+
"aria-setsize": S,
|
|
5524
|
+
...c ? { "aria-label": e.title } : { "aria-labelledby": `${x}-${t}` }
|
|
5497
5525
|
} : {},
|
|
5498
5526
|
children: [
|
|
5499
5527
|
/* @__PURE__ */ Q("span", {
|
|
5500
|
-
className:
|
|
5528
|
+
className: A.rail(),
|
|
5501
5529
|
"aria-hidden": "true"
|
|
5502
5530
|
}),
|
|
5503
|
-
|
|
5504
|
-
className:
|
|
5531
|
+
O && /* @__PURE__ */ Q("div", {
|
|
5532
|
+
className: A.opposite(),
|
|
5505
5533
|
children: l ? l(e, t) : e.opposite
|
|
5506
5534
|
}),
|
|
5507
5535
|
/* @__PURE__ */ Q("span", {
|
|
5508
5536
|
className: r.marker(),
|
|
5509
5537
|
"aria-hidden": "true",
|
|
5510
|
-
children: u ? u(e, t) : n && /* @__PURE__ */ Q(n, { className:
|
|
5538
|
+
children: u ? u(e, t) : n && /* @__PURE__ */ Q(n, { className: A.markerIcon() })
|
|
5511
5539
|
}),
|
|
5512
5540
|
/* @__PURE__ */ Q("div", {
|
|
5513
5541
|
className: r.content(),
|
|
5514
5542
|
children: c ? c(e, t) : /* @__PURE__ */ $($l, { children: [
|
|
5515
5543
|
/* @__PURE__ */ Q("time", {
|
|
5516
5544
|
dateTime: e.datetime,
|
|
5517
|
-
className:
|
|
5545
|
+
className: A.time(),
|
|
5518
5546
|
children: e.time
|
|
5519
5547
|
}),
|
|
5520
5548
|
/* @__PURE__ */ Q("span", {
|
|
5521
|
-
id: d ? `${
|
|
5549
|
+
id: d ? `${x}-${t}` : void 0,
|
|
5522
5550
|
className: r.title(),
|
|
5523
5551
|
children: e.title
|
|
5524
5552
|
}),
|
|
5525
5553
|
e.description && /* @__PURE__ */ Q("span", {
|
|
5526
|
-
className:
|
|
5554
|
+
className: A.description(),
|
|
5527
5555
|
children: e.description
|
|
5528
5556
|
})
|
|
5529
5557
|
] })
|
|
@@ -5533,17 +5561,17 @@ function zp({ classes: t, items: r, label: i, align: a = "start", orientation: o
|
|
|
5533
5561
|
})
|
|
5534
5562
|
});
|
|
5535
5563
|
return d ? /* @__PURE__ */ $($l, { children: [
|
|
5536
|
-
|
|
5564
|
+
N,
|
|
5537
5565
|
f && /* @__PURE__ */ $("div", {
|
|
5538
|
-
className:
|
|
5566
|
+
className: A.more(),
|
|
5539
5567
|
children: [/* @__PURE__ */ Q(D, {
|
|
5540
5568
|
variant: "outline",
|
|
5541
5569
|
size: "sm",
|
|
5542
5570
|
loading: p,
|
|
5543
5571
|
onClick: g,
|
|
5544
|
-
children: p ?
|
|
5572
|
+
children: p ? b.timeline.loading : b.timeline.loadMore
|
|
5545
5573
|
}), m && /* @__PURE__ */ Q(H, {
|
|
5546
|
-
className:
|
|
5574
|
+
className: A.sentinel(),
|
|
5547
5575
|
active: !p,
|
|
5548
5576
|
count: r.length,
|
|
5549
5577
|
onLoad: () => g?.()
|
|
@@ -5551,26 +5579,27 @@ function zp({ classes: t, items: r, label: i, align: a = "start", orientation: o
|
|
|
5551
5579
|
}),
|
|
5552
5580
|
/* @__PURE__ */ Q("p", {
|
|
5553
5581
|
role: "status",
|
|
5554
|
-
className:
|
|
5555
|
-
children: p ?
|
|
5582
|
+
className: A.status(),
|
|
5583
|
+
children: p ? b.timeline.loading : ""
|
|
5556
5584
|
})
|
|
5557
|
-
] }) :
|
|
5585
|
+
] }) : N;
|
|
5558
5586
|
}
|
|
5559
5587
|
//#endregion
|
|
5560
5588
|
//#region src/components/BlockUi/BlockUi.tsx
|
|
5561
|
-
function Bp({ classes: t, blocked: r = !1, label: i, children: a, className: o, style: s }) {
|
|
5562
|
-
let
|
|
5589
|
+
function Bp({ classes: t, blocked: r = !1, label: i, children: a, className: o, style: s, ...c }) {
|
|
5590
|
+
let l = n("blockUi", Ke, t)(), u = e(), d = i ?? u.blockUi.label;
|
|
5563
5591
|
return /* @__PURE__ */ $("div", {
|
|
5564
|
-
|
|
5592
|
+
...c,
|
|
5593
|
+
className: l.base({ class: o }),
|
|
5565
5594
|
style: s,
|
|
5566
5595
|
"aria-busy": r || void 0,
|
|
5567
5596
|
children: [/* @__PURE__ */ Q("div", {
|
|
5568
5597
|
inert: r || void 0,
|
|
5569
5598
|
children: a
|
|
5570
5599
|
}), r && /* @__PURE__ */ $("div", {
|
|
5571
|
-
className:
|
|
5600
|
+
className: l.overlay(),
|
|
5572
5601
|
role: "status",
|
|
5573
|
-
children: [/* @__PURE__ */ Q(N, { label:
|
|
5602
|
+
children: [/* @__PURE__ */ Q(N, { label: d }), d]
|
|
5574
5603
|
})]
|
|
5575
5604
|
});
|
|
5576
5605
|
}
|
|
@@ -5717,44 +5746,46 @@ function Up({ classes: t, active: r, onActiveChange: i, editLabel: a, display: o
|
|
|
5717
5746
|
}
|
|
5718
5747
|
//#endregion
|
|
5719
5748
|
//#region src/components/ScrollPanel/ScrollPanel.tsx
|
|
5720
|
-
function Wp({ classes: e, label: t, children: r, scrollbars: i, fade: a, reachThreshold: o = 0, onReachStart: s, onReachEnd: c, className: l, style: u }) {
|
|
5721
|
-
let
|
|
5749
|
+
function Wp({ classes: e, label: t, children: r, scrollbars: i, fade: a, reachThreshold: o = 0, onReachStart: s, onReachEnd: c, className: l, style: u, ...d }) {
|
|
5750
|
+
let f = n("scrollPanel", go, e)({
|
|
5722
5751
|
scrollbars: i,
|
|
5723
5752
|
fade: a
|
|
5724
|
-
}),
|
|
5753
|
+
}), p = X({
|
|
5725
5754
|
start: !0,
|
|
5726
5755
|
end: !1
|
|
5727
|
-
})
|
|
5756
|
+
}), m = (e) => {
|
|
5757
|
+
let t = e.currentTarget, n = t.scrollTop <= o, r = t.scrollTop + t.clientHeight >= t.scrollHeight - o - 1;
|
|
5758
|
+
n && !p.current.start && s?.(), r && !p.current.end && c?.(), p.current = {
|
|
5759
|
+
start: n,
|
|
5760
|
+
end: r
|
|
5761
|
+
};
|
|
5762
|
+
};
|
|
5728
5763
|
return /* @__PURE__ */ $(Uu.Root, {
|
|
5729
|
-
|
|
5764
|
+
...d,
|
|
5765
|
+
...Lt(d.id, "root"),
|
|
5766
|
+
className: f.base({ class: l }),
|
|
5730
5767
|
style: u,
|
|
5731
5768
|
children: [
|
|
5732
5769
|
/* @__PURE__ */ Q(Uu.Viewport, {
|
|
5733
|
-
className:
|
|
5770
|
+
className: f.viewport(),
|
|
5734
5771
|
tabIndex: 0,
|
|
5735
5772
|
role: "region",
|
|
5736
5773
|
"aria-label": t,
|
|
5737
|
-
onScroll:
|
|
5738
|
-
let t = e.currentTarget, n = t.scrollTop <= o, r = t.scrollTop + t.clientHeight >= t.scrollHeight - o - 1;
|
|
5739
|
-
n && !f.current.start && s?.(), r && !f.current.end && c?.(), f.current = {
|
|
5740
|
-
start: n,
|
|
5741
|
-
end: r
|
|
5742
|
-
};
|
|
5743
|
-
},
|
|
5774
|
+
onScroll: m,
|
|
5744
5775
|
children: /* @__PURE__ */ Q(Uu.Content, {
|
|
5745
|
-
className:
|
|
5776
|
+
className: f.content(),
|
|
5746
5777
|
children: r
|
|
5747
5778
|
})
|
|
5748
5779
|
}),
|
|
5749
5780
|
/* @__PURE__ */ Q(Uu.Scrollbar, {
|
|
5750
5781
|
orientation: "vertical",
|
|
5751
|
-
className:
|
|
5752
|
-
children: /* @__PURE__ */ Q(Uu.Thumb, { className:
|
|
5782
|
+
className: f.scrollbar(),
|
|
5783
|
+
children: /* @__PURE__ */ Q(Uu.Thumb, { className: f.thumb() })
|
|
5753
5784
|
}),
|
|
5754
5785
|
/* @__PURE__ */ Q(Uu.Scrollbar, {
|
|
5755
5786
|
orientation: "horizontal",
|
|
5756
|
-
className:
|
|
5757
|
-
children: /* @__PURE__ */ Q(Uu.Thumb, { className:
|
|
5787
|
+
className: f.scrollbar(),
|
|
5788
|
+
children: /* @__PURE__ */ Q(Uu.Thumb, { className: f.thumb() })
|
|
5758
5789
|
})
|
|
5759
5790
|
]
|
|
5760
5791
|
});
|
|
@@ -5768,69 +5799,74 @@ function Gp() {
|
|
|
5768
5799
|
behavior: e ? "smooth" : "auto"
|
|
5769
5800
|
}), document.body.setAttribute("tabindex", "-1"), document.body.focus({ preventScroll: !0 }), document.body.addEventListener("blur", () => document.body.removeAttribute("tabindex"), { once: !0 });
|
|
5770
5801
|
}
|
|
5771
|
-
function Kp({ classes: t, threshold: r = 400, label: i, className: a }) {
|
|
5772
|
-
let
|
|
5802
|
+
function Kp({ classes: t, threshold: r = 400, label: i, className: a, ...o }) {
|
|
5803
|
+
let s = n("scrollTop", _o, t), c = e(), l = i ?? c.scrollTop.label, [u, d] = Z(!1), f = X(null);
|
|
5773
5804
|
return Y(() => {
|
|
5774
5805
|
let e = () => {
|
|
5775
5806
|
let e = window.scrollY > r;
|
|
5776
|
-
!e && document.activeElement ===
|
|
5807
|
+
!e && document.activeElement === f.current && f.current?.blur(), d(e);
|
|
5777
5808
|
};
|
|
5778
5809
|
return e(), window.addEventListener("scroll", e, { passive: !0 }), () => window.removeEventListener("scroll", e);
|
|
5779
5810
|
}, [r]), /* @__PURE__ */ Q(j, {
|
|
5780
|
-
|
|
5811
|
+
...o,
|
|
5812
|
+
ref: f,
|
|
5781
5813
|
icon: bc,
|
|
5782
|
-
label:
|
|
5814
|
+
label: l,
|
|
5783
5815
|
variant: "primary",
|
|
5784
|
-
className:
|
|
5785
|
-
"data-state":
|
|
5786
|
-
tabIndex:
|
|
5787
|
-
"aria-hidden":
|
|
5788
|
-
onClick:
|
|
5816
|
+
className: s({ class: a }),
|
|
5817
|
+
"data-state": u ? "visible" : "hidden",
|
|
5818
|
+
tabIndex: u ? void 0 : -1,
|
|
5819
|
+
"aria-hidden": u ? void 0 : "true",
|
|
5820
|
+
onClick: (e) => {
|
|
5821
|
+
o.onClick?.(e), Gp();
|
|
5822
|
+
}
|
|
5789
5823
|
});
|
|
5790
5824
|
}
|
|
5791
5825
|
//#endregion
|
|
5792
5826
|
//#region src/components/SpeedDial/SpeedDial.tsx
|
|
5793
|
-
function qp({ classes: r, items: i, label: a, layout: o = "column", direction: s = "up", radius: c = 80, onSelect: l, className: u, style: d }) {
|
|
5794
|
-
let
|
|
5827
|
+
function qp({ classes: r, items: i, label: a, layout: o = "column", direction: s = "up", radius: c = 80, onSelect: l, className: u, style: d, ...f }) {
|
|
5828
|
+
let p = n("speedDial", Ho, r)(o === "column" ? void 0 : { layout: o }), m = e(), { dir: h } = t(), g = a ?? m.speedDial.label, _ = o === "column" ? {
|
|
5795
5829
|
placement: s === "down" ? "bottom-end" : "top-end",
|
|
5796
5830
|
gutter: 12
|
|
5797
5831
|
} : {
|
|
5798
5832
|
placement: "top",
|
|
5799
5833
|
gutter: -28
|
|
5800
|
-
},
|
|
5834
|
+
}, v = o === "column" ? [] : Uo(i.length, o, s, c, h === "rtl");
|
|
5801
5835
|
return /* @__PURE__ */ $(tu.Root, {
|
|
5802
|
-
|
|
5836
|
+
...Lt(f.id, "trigger"),
|
|
5837
|
+
positioning: _,
|
|
5803
5838
|
lazyMount: !0,
|
|
5804
5839
|
unmountOnExit: !0,
|
|
5805
5840
|
onSelect: (e) => l?.(e.value),
|
|
5806
5841
|
children: [/* @__PURE__ */ Q(tu.Trigger, {
|
|
5807
|
-
|
|
5842
|
+
...f,
|
|
5843
|
+
className: p.trigger({ class: u }),
|
|
5808
5844
|
style: d,
|
|
5809
|
-
"aria-label":
|
|
5845
|
+
"aria-label": g,
|
|
5810
5846
|
children: /* @__PURE__ */ Q(tu.Context, { children: (e) => /* @__PURE__ */ Q(_l, {
|
|
5811
|
-
className:
|
|
5847
|
+
className: p.triggerIcon(),
|
|
5812
5848
|
"data-state": e.open ? "open" : "closed",
|
|
5813
5849
|
"aria-hidden": "true"
|
|
5814
5850
|
}) })
|
|
5815
5851
|
}), /* @__PURE__ */ Q(nu, { children: /* @__PURE__ */ Q(tu.Positioner, { children: /* @__PURE__ */ Q(tu.Content, {
|
|
5816
|
-
className:
|
|
5852
|
+
className: p.content(),
|
|
5817
5853
|
children: i.map((e, t) => {
|
|
5818
|
-
let n = e.icon, r =
|
|
5854
|
+
let n = e.icon, r = v[t];
|
|
5819
5855
|
return /* @__PURE__ */ $(tu.Item, {
|
|
5820
5856
|
value: e.value,
|
|
5821
5857
|
disabled: e.disabled,
|
|
5822
|
-
className:
|
|
5858
|
+
className: p.item(),
|
|
5823
5859
|
style: r ? {
|
|
5824
5860
|
"--wc-x": `${r.x}px`,
|
|
5825
5861
|
"--wc-y": `${r.y}px`
|
|
5826
5862
|
} : void 0,
|
|
5827
5863
|
children: [/* @__PURE__ */ Q("span", {
|
|
5828
|
-
className:
|
|
5864
|
+
className: p.label(),
|
|
5829
5865
|
children: e.label
|
|
5830
5866
|
}), /* @__PURE__ */ Q("span", {
|
|
5831
|
-
className:
|
|
5867
|
+
className: p.action(),
|
|
5832
5868
|
"aria-hidden": "true",
|
|
5833
|
-
children: /* @__PURE__ */ Q(n, { className:
|
|
5869
|
+
children: /* @__PURE__ */ Q(n, { className: p.actionIcon() })
|
|
5834
5870
|
})]
|
|
5835
5871
|
}, e.value);
|
|
5836
5872
|
})
|
|
@@ -5839,8 +5875,8 @@ function qp({ classes: r, items: i, label: a, layout: o = "column", direction: s
|
|
|
5839
5875
|
}
|
|
5840
5876
|
//#endregion
|
|
5841
5877
|
//#region src/components/Splitter/Splitter.tsx
|
|
5842
|
-
function Jp({ classes: t, panels: r, orientation: i = "horizontal", step: a, shiftStep: o, storageKey: s, onResize: c, onResizeEnd: l, onCollapse: u, onExpand: d, children: f, className: p, style: m }) {
|
|
5843
|
-
let
|
|
5878
|
+
function Jp({ classes: t, panels: r, orientation: i = "horizontal", step: a, shiftStep: o, storageKey: s, onResize: c, onResizeEnd: l, onCollapse: u, onExpand: d, children: f, className: p, style: m, ...h }) {
|
|
5879
|
+
let g = n("splitter", Go, t)(), _ = e(), v = r.some((e) => typeof e.defaultSize == "string"), y = r.reduce((e, t) => e + (t.defaultSize ?? 0), 0), b = r.filter((e) => e.defaultSize === void 0).length, x = Gu({
|
|
5844
5880
|
orientation: i,
|
|
5845
5881
|
panels: r.map((e) => ({
|
|
5846
5882
|
id: e.id,
|
|
@@ -5851,51 +5887,52 @@ function Jp({ classes: t, panels: r, orientation: i = "horizontal", step: a, shi
|
|
|
5851
5887
|
collapsedSize: e.collapsedSize ?? 0
|
|
5852
5888
|
} : {}
|
|
5853
5889
|
})),
|
|
5854
|
-
defaultSize:
|
|
5890
|
+
defaultSize: v ? r.map((e) => e.defaultSize) : r.map((e) => e.defaultSize ?? (100 - y) / b),
|
|
5855
5891
|
...a === void 0 ? {} : { keyboardResizeBy: a },
|
|
5856
5892
|
onResize: (e) => c?.(e.size),
|
|
5857
5893
|
onResizeEnd: (e) => {
|
|
5858
5894
|
fc(s, e.size), l?.(e.size);
|
|
5859
5895
|
},
|
|
5860
5896
|
onCollapse: (e) => {
|
|
5861
|
-
fc(s,
|
|
5897
|
+
fc(s, x.getSizes()), u?.(e.panelId);
|
|
5862
5898
|
},
|
|
5863
5899
|
onExpand: (e) => {
|
|
5864
|
-
fc(s,
|
|
5900
|
+
fc(s, x.getSizes()), d?.(e.panelId);
|
|
5865
5901
|
}
|
|
5866
|
-
}), { setSizes:
|
|
5902
|
+
}), { setSizes: S } = x;
|
|
5867
5903
|
Y(() => {
|
|
5868
5904
|
let e = Za(s);
|
|
5869
|
-
Array.isArray(e) && e.length === r.length &&
|
|
5905
|
+
Array.isArray(e) && e.length === r.length && S(e);
|
|
5870
5906
|
}, []);
|
|
5871
|
-
let
|
|
5907
|
+
let C = (e) => (t) => {
|
|
5872
5908
|
if (!t.shiftKey || o === void 0) return;
|
|
5873
5909
|
let n = getComputedStyle(t.currentTarget).direction === "rtl", r = i === "vertical" ? "ArrowDown" : n ? "ArrowLeft" : "ArrowRight", a = i === "vertical" ? "ArrowUp" : n ? "ArrowRight" : "ArrowLeft", c = t.key === r ? 1 : t.key === a ? -1 : 0;
|
|
5874
|
-
c && (t.preventDefault(),
|
|
5875
|
-
},
|
|
5876
|
-
|
|
5910
|
+
c && (t.preventDefault(), x.resizePanel(e, x.getPanelSize(e) + c * o), fc(s, x.getSizes()), l?.(x.getSizes()));
|
|
5911
|
+
}, w = () => {
|
|
5912
|
+
x.resetSizes(), fc(s, x.getSizes()), l?.(x.getSizes());
|
|
5877
5913
|
};
|
|
5878
5914
|
return /* @__PURE__ */ Q("div", {
|
|
5879
|
-
|
|
5915
|
+
...h,
|
|
5916
|
+
className: g.base({ class: p }),
|
|
5880
5917
|
style: m,
|
|
5881
5918
|
children: /* @__PURE__ */ Q(Wu.RootProvider, {
|
|
5882
|
-
value:
|
|
5883
|
-
className:
|
|
5919
|
+
value: x,
|
|
5920
|
+
className: g.root(),
|
|
5884
5921
|
children: r.map((e, t) => /* @__PURE__ */ $(Hl, { children: [t > 0 && /* @__PURE__ */ Q(Wu.ResizeTrigger, {
|
|
5885
5922
|
id: `${r[t - 1].id}:${e.id}`,
|
|
5886
|
-
className:
|
|
5887
|
-
"aria-label":
|
|
5888
|
-
onKeyDownCapture:
|
|
5889
|
-
onDoubleClick:
|
|
5923
|
+
className: g.handle(),
|
|
5924
|
+
"aria-label": _.splitter.resize(r[t - 1].label),
|
|
5925
|
+
onKeyDownCapture: C(r[t - 1].id),
|
|
5926
|
+
onDoubleClick: w,
|
|
5890
5927
|
children: /* @__PURE__ */ Q("span", {
|
|
5891
|
-
className:
|
|
5928
|
+
className: g.grip(),
|
|
5892
5929
|
"data-orientation": i,
|
|
5893
5930
|
"aria-hidden": "true",
|
|
5894
|
-
children: Q(i === "horizontal" ? Jc : qc, { className:
|
|
5931
|
+
children: Q(i === "horizontal" ? Jc : qc, { className: g.gripIcon() })
|
|
5895
5932
|
})
|
|
5896
5933
|
}), /* @__PURE__ */ Q(Wu.Panel, {
|
|
5897
5934
|
id: e.id,
|
|
5898
|
-
className:
|
|
5935
|
+
className: g.panel(),
|
|
5899
5936
|
children: f(e.id)
|
|
5900
5937
|
})] }, e.id))
|
|
5901
5938
|
})
|
|
@@ -6120,31 +6157,32 @@ function rm({ classes: t, header: r, navbar: i, aside: a, footer: o, children: s
|
|
|
6120
6157
|
}
|
|
6121
6158
|
//#endregion
|
|
6122
6159
|
//#region src/components/Calendar/Calendar.tsx
|
|
6123
|
-
function im({ classes: r, selectionMode: i = "single", value: a, defaultValue: o, onValueChange: c, valueType: u = "string", min: f, max: m, isDateUnavailable: h, excludeDates: _, presets: v, locale: y, disabled: b = !1, showButtonBar: x, showWeekNumbers: S, numberOfMonths: C, highlightToday: w = !0, hideOutsideDays: T, firstDayOfWeek: E, weekendDays: D, allowDeselect: O, timeZone: k, renderDay: A, className: j, style: M }) {
|
|
6124
|
-
let
|
|
6160
|
+
function im({ classes: r, selectionMode: i = "single", value: a, defaultValue: o, onValueChange: c, valueType: u = "string", min: f, max: m, isDateUnavailable: h, excludeDates: _, presets: v, locale: y, disabled: b = !1, showButtonBar: x, showWeekNumbers: S, numberOfMonths: C, highlightToday: w = !0, hideOutsideDays: T, firstDayOfWeek: E, weekendDays: D, allowDeselect: O, timeZone: k, renderDay: A, className: j, style: M, ...N }) {
|
|
6161
|
+
let P = n("datePicker", Zt, r)((C ?? 1) > 1 ? { multiMonth: !0 } : {}), F = t(), I = y ?? F.locale, L = e(), [R, z] = Z(o ?? []), B = a ?? R, V = (e) => e.map((e) => p(e, !1)).join(), H = `${ql()}calendar`;
|
|
6125
6162
|
return /* @__PURE__ */ Q(wu.Root, {
|
|
6126
|
-
|
|
6163
|
+
...N,
|
|
6164
|
+
className: P.inline({ class: j }),
|
|
6127
6165
|
style: M,
|
|
6128
6166
|
ids: {
|
|
6129
|
-
root:
|
|
6130
|
-
content:
|
|
6167
|
+
root: N.id ?? H,
|
|
6168
|
+
content: N.id ?? H
|
|
6131
6169
|
},
|
|
6132
6170
|
inline: !0,
|
|
6133
|
-
value:
|
|
6171
|
+
value: B.map((e) => l(e, !1)).filter((e) => !!e),
|
|
6134
6172
|
onValueChange: (e) => {
|
|
6135
6173
|
let t = e.value.map((e) => d(e, !1, u));
|
|
6136
|
-
|
|
6174
|
+
V(t) !== V(B) && (z(t), c?.(t));
|
|
6137
6175
|
},
|
|
6138
6176
|
selectionMode: i,
|
|
6139
6177
|
min: l(f, !1),
|
|
6140
6178
|
max: l(m, !1),
|
|
6141
6179
|
isDateUnavailable: g(h, _),
|
|
6142
|
-
locale:
|
|
6143
|
-
startOfWeek: E ?? Ei(
|
|
6180
|
+
locale: I,
|
|
6181
|
+
startOfWeek: E ?? Ei(I).firstDay,
|
|
6144
6182
|
numOfMonths: C,
|
|
6145
6183
|
timeZone: k,
|
|
6146
6184
|
disabled: b,
|
|
6147
|
-
translations:
|
|
6185
|
+
translations: L.datePicker,
|
|
6148
6186
|
children: /* @__PURE__ */ Q(s, {
|
|
6149
6187
|
presets: i === "range" ? v : void 0,
|
|
6150
6188
|
showWeekNumbers: S,
|
|
@@ -6608,41 +6646,43 @@ function bm({ classes: e, items: t, onValueChange: r, placeholder: i, size: a =
|
|
|
6608
6646
|
}
|
|
6609
6647
|
//#endregion
|
|
6610
6648
|
//#region src/components/NavigationMenu/NavigationMenu.tsx
|
|
6611
|
-
function xm({ classes: t, items: r, label: i, className: a, style: o }) {
|
|
6612
|
-
let
|
|
6649
|
+
function xm({ classes: t, items: r, label: i, className: a, style: o, ...s }) {
|
|
6650
|
+
let c = n("navigationMenu", Xi, t)(), l = e(), u = i ?? l.navigationMenu.rootLabel;
|
|
6613
6651
|
return /* @__PURE__ */ Q(Ju.Root, {
|
|
6614
|
-
|
|
6652
|
+
...s,
|
|
6653
|
+
...Lt(s.id, "root"),
|
|
6654
|
+
className: c.base({ class: a }),
|
|
6615
6655
|
style: o,
|
|
6616
|
-
translations: { rootLabel:
|
|
6656
|
+
translations: { rootLabel: u },
|
|
6617
6657
|
children: /* @__PURE__ */ Q(Ju.List, {
|
|
6618
|
-
className:
|
|
6658
|
+
className: c.list(),
|
|
6619
6659
|
children: r.map((e) => /* @__PURE__ */ Q(Ju.Item, {
|
|
6620
6660
|
value: e.label,
|
|
6621
|
-
className:
|
|
6661
|
+
className: c.item(),
|
|
6622
6662
|
children: e.children ? /* @__PURE__ */ $($l, { children: [/* @__PURE__ */ $(Ju.Trigger, {
|
|
6623
|
-
className:
|
|
6663
|
+
className: c.trigger(),
|
|
6624
6664
|
children: [e.label, /* @__PURE__ */ Q(Dc, {
|
|
6625
|
-
className:
|
|
6665
|
+
className: c.triggerIcon(),
|
|
6626
6666
|
"aria-hidden": "true"
|
|
6627
6667
|
})]
|
|
6628
6668
|
}), /* @__PURE__ */ Q(Ju.Content, {
|
|
6629
|
-
className:
|
|
6669
|
+
className: c.content(),
|
|
6630
6670
|
children: e.children.map((e) => {
|
|
6631
6671
|
let t = e.icon;
|
|
6632
6672
|
return /* @__PURE__ */ $(Ju.Link, {
|
|
6633
6673
|
href: e.href,
|
|
6634
6674
|
current: e.current,
|
|
6635
|
-
className:
|
|
6675
|
+
className: c.panelLink(),
|
|
6636
6676
|
children: [t && /* @__PURE__ */ Q(t, {
|
|
6637
|
-
className:
|
|
6677
|
+
className: c.panelIcon(),
|
|
6638
6678
|
"aria-hidden": "true"
|
|
6639
6679
|
}), /* @__PURE__ */ $("span", {
|
|
6640
|
-
className:
|
|
6680
|
+
className: c.panelText(),
|
|
6641
6681
|
children: [/* @__PURE__ */ Q("span", {
|
|
6642
|
-
className:
|
|
6682
|
+
className: c.panelLabel(),
|
|
6643
6683
|
children: e.label
|
|
6644
6684
|
}), e.description && /* @__PURE__ */ Q("span", {
|
|
6645
|
-
className:
|
|
6685
|
+
className: c.panelDescription(),
|
|
6646
6686
|
children: e.description
|
|
6647
6687
|
})]
|
|
6648
6688
|
})]
|
|
@@ -6651,7 +6691,7 @@ function xm({ classes: t, items: r, label: i, className: a, style: o }) {
|
|
|
6651
6691
|
})] }) : /* @__PURE__ */ Q(Ju.Link, {
|
|
6652
6692
|
href: e.href,
|
|
6653
6693
|
current: e.current,
|
|
6654
|
-
className:
|
|
6694
|
+
className: c.link(),
|
|
6655
6695
|
children: e.label
|
|
6656
6696
|
})
|
|
6657
6697
|
}, e.label))
|
|
@@ -6702,94 +6742,99 @@ function Om({ label: t, classes: r }) {
|
|
|
6702
6742
|
//#endregion
|
|
6703
6743
|
//#region src/components/ProgressCircle/ProgressCircle.tsx
|
|
6704
6744
|
var km = (e, t) => `${Math.round(e / t * 100)} %`;
|
|
6705
|
-
function Am({ classes: e, value: t, max: r = 100, label: i, size: a = "md", status: o = "neutral", formatValue: s = km, className: c, style: l }) {
|
|
6706
|
-
let
|
|
6745
|
+
function Am({ classes: e, value: t, max: r = 100, label: i, size: a = "md", status: o = "neutral", formatValue: s = km, className: c, style: l, ...u }) {
|
|
6746
|
+
let d = n("progressCircle", za, e)({
|
|
6707
6747
|
size: a,
|
|
6708
6748
|
status: o
|
|
6709
|
-
}),
|
|
6749
|
+
}), f = s(t, r);
|
|
6710
6750
|
return /* @__PURE__ */ $(mu.Root, {
|
|
6711
|
-
|
|
6751
|
+
...u,
|
|
6752
|
+
...Lt(u.id, "root"),
|
|
6753
|
+
className: d.base({ class: c }),
|
|
6712
6754
|
style: l,
|
|
6713
6755
|
value: t,
|
|
6714
6756
|
max: r,
|
|
6715
|
-
translations: { value: () =>
|
|
6757
|
+
translations: { value: () => f },
|
|
6716
6758
|
children: [/* @__PURE__ */ $("div", {
|
|
6717
|
-
className:
|
|
6759
|
+
className: d.circle(),
|
|
6718
6760
|
children: [/* @__PURE__ */ $(mu.Circle, {
|
|
6719
6761
|
"aria-label": i,
|
|
6720
|
-
"aria-valuetext":
|
|
6721
|
-
children: [/* @__PURE__ */ Q(mu.CircleTrack, { className:
|
|
6762
|
+
"aria-valuetext": f,
|
|
6763
|
+
children: [/* @__PURE__ */ Q(mu.CircleTrack, { className: d.track() }), /* @__PURE__ */ Q(mu.CircleRange, { className: d.range() })]
|
|
6722
6764
|
}), /* @__PURE__ */ Q("span", {
|
|
6723
|
-
className:
|
|
6765
|
+
className: d.value(),
|
|
6724
6766
|
"aria-hidden": "true",
|
|
6725
|
-
children:
|
|
6767
|
+
children: f
|
|
6726
6768
|
})]
|
|
6727
6769
|
}), /* @__PURE__ */ Q(mu.Label, {
|
|
6728
|
-
className:
|
|
6770
|
+
className: d.label(),
|
|
6729
6771
|
children: i
|
|
6730
6772
|
})]
|
|
6731
6773
|
});
|
|
6732
6774
|
}
|
|
6733
6775
|
//#endregion
|
|
6734
6776
|
//#region src/components/Spoiler/Spoiler.tsx
|
|
6735
|
-
function jm({ classes: t, maxHeight: r = 120, open: i, onOpenChange: a, showLabel: o, hideLabel: s, children: c, className: l, style: u }) {
|
|
6736
|
-
let
|
|
6777
|
+
function jm({ classes: t, maxHeight: r = 120, open: i, onOpenChange: a, showLabel: o, hideLabel: s, children: c, className: l, style: u, ...d }) {
|
|
6778
|
+
let f = n("spoiler", Ko, t)(), p = e(), m = o ?? p.spoiler.show, h = s ?? p.spoiler.hide, g = ql(), [_, v] = Z(!1), y = i ?? _, b = X(null), [x, S] = Z(0);
|
|
6737
6779
|
Y(() => {
|
|
6738
|
-
let e =
|
|
6780
|
+
let e = b.current;
|
|
6739
6781
|
if (!e) return;
|
|
6740
|
-
let t = () =>
|
|
6782
|
+
let t = () => S(e.scrollHeight);
|
|
6741
6783
|
t();
|
|
6742
6784
|
let n = new ResizeObserver(t);
|
|
6743
6785
|
return n.observe(e), () => n.disconnect();
|
|
6744
6786
|
}, []);
|
|
6745
|
-
let
|
|
6787
|
+
let C = x > r;
|
|
6746
6788
|
return /* @__PURE__ */ $("div", {
|
|
6747
|
-
|
|
6789
|
+
...d,
|
|
6790
|
+
className: f.base({ class: l }),
|
|
6748
6791
|
style: u,
|
|
6749
6792
|
children: [/* @__PURE__ */ Q("div", {
|
|
6750
|
-
id: `${
|
|
6751
|
-
className:
|
|
6752
|
-
"data-state":
|
|
6753
|
-
style: { maxHeight:
|
|
6793
|
+
id: `${g}content`,
|
|
6794
|
+
className: f.content(),
|
|
6795
|
+
"data-state": C && !y ? "closed" : "open",
|
|
6796
|
+
style: { maxHeight: C && !y ? `${r}px` : C ? `${x}px` : void 0 },
|
|
6754
6797
|
children: /* @__PURE__ */ Q("div", {
|
|
6755
|
-
ref:
|
|
6798
|
+
ref: b,
|
|
6756
6799
|
children: c
|
|
6757
6800
|
})
|
|
6758
|
-
}),
|
|
6801
|
+
}), C && /* @__PURE__ */ Q("button", {
|
|
6759
6802
|
type: "button",
|
|
6760
|
-
className:
|
|
6761
|
-
"aria-expanded":
|
|
6762
|
-
"aria-controls": `${
|
|
6803
|
+
className: f.toggle(),
|
|
6804
|
+
"aria-expanded": y,
|
|
6805
|
+
"aria-controls": `${g}content`,
|
|
6763
6806
|
onClick: () => {
|
|
6764
|
-
|
|
6807
|
+
v(!y), a?.(!y);
|
|
6765
6808
|
},
|
|
6766
|
-
children:
|
|
6809
|
+
children: y ? h : m
|
|
6767
6810
|
})]
|
|
6768
6811
|
});
|
|
6769
6812
|
}
|
|
6770
6813
|
//#endregion
|
|
6771
6814
|
//#region src/components/TableOfContents/TableOfContents.tsx
|
|
6772
|
-
function Mm({ classes: t, items: r, title: i, className: a, style: o }) {
|
|
6773
|
-
let
|
|
6815
|
+
function Mm({ classes: t, items: r, title: i, className: a, style: o, ...s }) {
|
|
6816
|
+
let c = n("tableOfContents", os, t)(), l = e(), u = i ?? l.tableOfContents.title, d = r.map((e) => ({
|
|
6774
6817
|
value: e.id,
|
|
6775
6818
|
depth: e.depth ?? 1
|
|
6776
6819
|
}));
|
|
6777
6820
|
return /* @__PURE__ */ Q(Xu.Root, {
|
|
6778
|
-
|
|
6779
|
-
|
|
6821
|
+
...s,
|
|
6822
|
+
...Lt(s.id, "root"),
|
|
6823
|
+
items: d,
|
|
6824
|
+
className: c.base({ class: a }),
|
|
6780
6825
|
style: o,
|
|
6781
6826
|
children: /* @__PURE__ */ $(Xu.Nav, {
|
|
6782
|
-
"aria-label":
|
|
6827
|
+
"aria-label": u,
|
|
6783
6828
|
children: [/* @__PURE__ */ Q(Xu.Title, {
|
|
6784
|
-
className:
|
|
6785
|
-
children:
|
|
6829
|
+
className: c.title(),
|
|
6830
|
+
children: u
|
|
6786
6831
|
}), /* @__PURE__ */ Q(Xu.List, {
|
|
6787
|
-
className:
|
|
6788
|
-
children:
|
|
6832
|
+
className: c.list(),
|
|
6833
|
+
children: d.map((e, t) => /* @__PURE__ */ Q(Xu.Item, {
|
|
6789
6834
|
item: e,
|
|
6790
6835
|
children: /* @__PURE__ */ Q(Xu.Link, {
|
|
6791
6836
|
href: `#${e.value}`,
|
|
6792
|
-
className:
|
|
6837
|
+
className: c.link(),
|
|
6793
6838
|
children: r[t].label
|
|
6794
6839
|
})
|
|
6795
6840
|
}, e.value))
|
|
@@ -11584,118 +11629,122 @@ function kg({ classes: t, value: r, size: i = 160, errorCorrection: a, logo: o,
|
|
|
11584
11629
|
}
|
|
11585
11630
|
//#endregion
|
|
11586
11631
|
//#region src/components/SignaturePad/SignaturePad.tsx
|
|
11587
|
-
function Ag({ classes: t, value: r, onValueChange: i, paths: a, defaultPaths: o, onPathsChange: s, format: c = "png", label: l, color: u = "#000000", strokeWidth: d = 2, typedAlternative: f, typedName: p, onTypedNameChange: m, disabled: h, readOnly: g, invalid: _, required: v, name: y, className: b, style: x }) {
|
|
11588
|
-
let
|
|
11589
|
-
|
|
11590
|
-
},
|
|
11591
|
-
|
|
11592
|
-
},
|
|
11593
|
-
id:
|
|
11594
|
-
ids: {
|
|
11595
|
-
|
|
11632
|
+
function Ag({ classes: t, value: r, onValueChange: i, paths: a, defaultPaths: o, onPathsChange: s, format: c = "png", label: l, color: u = "#000000", strokeWidth: d = 2, typedAlternative: f, typedName: p, onTypedNameChange: m, disabled: h, readOnly: g, invalid: _, required: v, name: y, className: b, style: x, ...S }) {
|
|
11633
|
+
let C = n("signaturePad", Fo, t)(), w = au(), T = e().signaturePad, E = ql(), O = `${E}label`, [k, A] = Z(o ?? []), j = a ?? k, [N, P] = Z(""), F = p ?? N, [I, L] = Z(!1), [R, z] = Z(r ?? ""), B = r ?? R, V = h ?? w?.disabled, H = g ?? w?.readOnly, ee = _ ?? w?.invalid, U = l ?? T.label, W = c === "svg" ? "image/svg+xml" : "image/png", G = X(!1), te = (e) => {
|
|
11634
|
+
z(e), i?.(e);
|
|
11635
|
+
}, K = (e, t = !0) => {
|
|
11636
|
+
A(e), s?.(e), G.current = t;
|
|
11637
|
+
}, ne = sd({
|
|
11638
|
+
id: E,
|
|
11639
|
+
ids: {
|
|
11640
|
+
label: O,
|
|
11641
|
+
root: S.id
|
|
11642
|
+
},
|
|
11643
|
+
paths: j,
|
|
11596
11644
|
drawing: {
|
|
11597
11645
|
fill: u,
|
|
11598
11646
|
size: d,
|
|
11599
11647
|
simulatePressure: !0
|
|
11600
11648
|
},
|
|
11601
|
-
disabled:
|
|
11602
|
-
readOnly:
|
|
11603
|
-
required: v ??
|
|
11649
|
+
disabled: V,
|
|
11650
|
+
readOnly: H,
|
|
11651
|
+
required: v ?? w?.required,
|
|
11604
11652
|
name: y,
|
|
11605
11653
|
translations: {
|
|
11606
|
-
control:
|
|
11607
|
-
clearTrigger:
|
|
11654
|
+
control: U,
|
|
11655
|
+
clearTrigger: T.clear
|
|
11608
11656
|
},
|
|
11609
11657
|
onDrawEnd: (e) => {
|
|
11610
|
-
|
|
11658
|
+
K(e.paths, !1), e.getDataUrl(W).then(te, () => void 0);
|
|
11611
11659
|
}
|
|
11612
11660
|
});
|
|
11613
11661
|
Y(() => {
|
|
11614
|
-
|
|
11615
|
-
});
|
|
11616
|
-
let
|
|
11617
|
-
|
|
11662
|
+
G.current && (G.current = !1, ne.getDataUrl(W).then(te, () => void 0));
|
|
11663
|
+
});
|
|
11664
|
+
let re = (e) => {
|
|
11665
|
+
P(e), m?.(e), te(e.trim() ? Js(e.trim(), { color: u }) : "");
|
|
11666
|
+
}, q = () => {
|
|
11667
|
+
I ? re("") : K([]), Ne(T.cleared);
|
|
11668
|
+
}, ie = () => {
|
|
11669
|
+
let e = !I;
|
|
11670
|
+
L(e), e ? re(F) : K(j);
|
|
11618
11671
|
};
|
|
11619
11672
|
return /* @__PURE__ */ $(od.RootProvider, {
|
|
11620
|
-
|
|
11621
|
-
|
|
11673
|
+
...S,
|
|
11674
|
+
value: ne,
|
|
11675
|
+
className: C.base({ class: b }),
|
|
11622
11676
|
style: x,
|
|
11623
|
-
"data-invalid":
|
|
11677
|
+
"data-invalid": ee || void 0,
|
|
11624
11678
|
children: [
|
|
11625
|
-
(l || !
|
|
11626
|
-
className:
|
|
11627
|
-
children:
|
|
11679
|
+
(l || !w) && /* @__PURE__ */ Q(od.Label, {
|
|
11680
|
+
className: C.label(),
|
|
11681
|
+
children: U
|
|
11628
11682
|
}),
|
|
11629
|
-
|
|
11630
|
-
className:
|
|
11683
|
+
I ? /* @__PURE__ */ $("div", {
|
|
11684
|
+
className: C.typed(),
|
|
11631
11685
|
children: [/* @__PURE__ */ Q(M, {
|
|
11632
|
-
value:
|
|
11633
|
-
onChange: (e) =>
|
|
11634
|
-
"aria-label":
|
|
11635
|
-
"aria-describedby":
|
|
11636
|
-
disabled:
|
|
11637
|
-
readOnly:
|
|
11686
|
+
value: F,
|
|
11687
|
+
onChange: (e) => re(e.currentTarget.value),
|
|
11688
|
+
"aria-label": T.typedLabel,
|
|
11689
|
+
"aria-describedby": w?.ariaDescribedby,
|
|
11690
|
+
disabled: V,
|
|
11691
|
+
readOnly: H,
|
|
11638
11692
|
autoComplete: "name"
|
|
11639
11693
|
}), /* @__PURE__ */ Q("div", {
|
|
11640
|
-
className:
|
|
11694
|
+
className: C.preview(),
|
|
11641
11695
|
"aria-hidden": "true",
|
|
11642
|
-
children:
|
|
11696
|
+
children: F
|
|
11643
11697
|
})]
|
|
11644
11698
|
}) : /* @__PURE__ */ $(od.Control, {
|
|
11645
|
-
className:
|
|
11646
|
-
"aria-labelledby": l || !
|
|
11647
|
-
"aria-roledescription":
|
|
11648
|
-
"aria-describedby":
|
|
11649
|
-
"aria-invalid":
|
|
11650
|
-
"data-invalid":
|
|
11699
|
+
className: C.control(),
|
|
11700
|
+
"aria-labelledby": l || !w ? O : w.ids.label,
|
|
11701
|
+
"aria-roledescription": T.roleDescription,
|
|
11702
|
+
"aria-describedby": w?.ariaDescribedby,
|
|
11703
|
+
"aria-invalid": ee || void 0,
|
|
11704
|
+
"data-invalid": ee || void 0,
|
|
11651
11705
|
children: [
|
|
11652
11706
|
/* @__PURE__ */ Q(od.Segment, {
|
|
11653
|
-
className:
|
|
11707
|
+
className: C.segment(),
|
|
11654
11708
|
"aria-hidden": "true"
|
|
11655
11709
|
}),
|
|
11656
|
-
/* @__PURE__ */ Q(od.Guide, { className:
|
|
11657
|
-
!
|
|
11658
|
-
className:
|
|
11710
|
+
/* @__PURE__ */ Q(od.Guide, { className: C.guide() }),
|
|
11711
|
+
!j.length && /* @__PURE__ */ Q("span", {
|
|
11712
|
+
className: C.placeholder(),
|
|
11659
11713
|
"aria-hidden": "true",
|
|
11660
|
-
children:
|
|
11714
|
+
children: T.placeholder
|
|
11661
11715
|
})
|
|
11662
11716
|
]
|
|
11663
11717
|
}),
|
|
11664
|
-
!
|
|
11665
|
-
className:
|
|
11718
|
+
!H && /* @__PURE__ */ $("div", {
|
|
11719
|
+
className: C.toolbar(),
|
|
11666
11720
|
children: [
|
|
11667
|
-
!
|
|
11721
|
+
!I && /* @__PURE__ */ Q(D, {
|
|
11668
11722
|
variant: "outline",
|
|
11669
11723
|
size: "sm",
|
|
11670
11724
|
leadingIcon: Fl,
|
|
11671
|
-
disabled:
|
|
11672
|
-
onClick: () =>
|
|
11673
|
-
children:
|
|
11725
|
+
disabled: V || !j.length,
|
|
11726
|
+
onClick: () => K(j.slice(0, -1)),
|
|
11727
|
+
children: T.undo
|
|
11674
11728
|
}),
|
|
11675
11729
|
/* @__PURE__ */ Q(D, {
|
|
11676
11730
|
variant: "outline",
|
|
11677
11731
|
size: "sm",
|
|
11678
11732
|
leadingIcon: Wc,
|
|
11679
|
-
disabled:
|
|
11680
|
-
onClick:
|
|
11681
|
-
|
|
11682
|
-
},
|
|
11683
|
-
children: w.clear
|
|
11733
|
+
disabled: V || !B,
|
|
11734
|
+
onClick: q,
|
|
11735
|
+
children: T.clear
|
|
11684
11736
|
}),
|
|
11685
11737
|
f && /* @__PURE__ */ Q(D, {
|
|
11686
11738
|
variant: "text",
|
|
11687
11739
|
size: "sm",
|
|
11688
|
-
leadingIcon:
|
|
11689
|
-
disabled:
|
|
11690
|
-
onClick:
|
|
11691
|
-
|
|
11692
|
-
I(e), e ? ne(P) : te(A);
|
|
11693
|
-
},
|
|
11694
|
-
children: F ? w.draw : w.type
|
|
11740
|
+
leadingIcon: I ? pl : Xc,
|
|
11741
|
+
disabled: V,
|
|
11742
|
+
onClick: ie,
|
|
11743
|
+
children: I ? T.draw : T.type
|
|
11695
11744
|
})
|
|
11696
11745
|
]
|
|
11697
11746
|
}),
|
|
11698
|
-
y && /* @__PURE__ */ Q(od.HiddenInput, { value:
|
|
11747
|
+
y && /* @__PURE__ */ Q(od.HiddenInput, { value: B })
|
|
11699
11748
|
]
|
|
11700
11749
|
});
|
|
11701
11750
|
}
|
|
@@ -11961,8 +12010,8 @@ function Pg({ classes: t, title: r, open: i, defaultOpen: a = !1, onOpenChange:
|
|
|
11961
12010
|
//#endregion
|
|
11962
12011
|
//#region src/components/JsonViewer/JsonViewer.tsx
|
|
11963
12012
|
var Fg = Ul(null);
|
|
11964
|
-
function Ig({ classes: t, data: r, label: i, defaultExpandedDepth: a = 1, search: o, copyable: s = !0, showTypes: c, onCopy: l, "aria-label": u, className: d, style: f }) {
|
|
11965
|
-
let
|
|
12013
|
+
function Ig({ classes: t, data: r, label: i, defaultExpandedDepth: a = 1, search: o, copyable: s = !0, showTypes: c, onCopy: l, "aria-label": u, className: d, style: f, ...p }) {
|
|
12014
|
+
let m = n("jsonViewer", ui, t)(), h = e().jsonViewer, g = Xl(() => ci(r), [r]), _ = Xl(() => g.children ?? [g], [g]), v = Xl(() => Fu({
|
|
11966
12015
|
nodeToValue: (e) => e.id,
|
|
11967
12016
|
nodeToString: (e) => String(e.key ?? ""),
|
|
11968
12017
|
rootNode: {
|
|
@@ -11970,58 +12019,62 @@ function Ig({ classes: t, data: r, label: i, defaultExpandedDepth: a = 1, search
|
|
|
11970
12019
|
key: null,
|
|
11971
12020
|
type: "object",
|
|
11972
12021
|
value: null,
|
|
11973
|
-
children:
|
|
12022
|
+
children: _
|
|
11974
12023
|
}
|
|
11975
|
-
}), [
|
|
11976
|
-
|
|
11977
|
-
let
|
|
12024
|
+
}), [_]), y = () => oi(g, a + 1).filter((e) => e !== g.id), [b, x] = Z(y), [S, C] = Z(g), [w, T] = Z(""), E = Xl(() => So(g, w), [g, w]);
|
|
12025
|
+
S !== g && (C(g), x(y()));
|
|
12026
|
+
let D = Xl(() => {
|
|
11978
12027
|
let e = /* @__PURE__ */ new Map();
|
|
11979
|
-
return $s([
|
|
11980
|
-
}, [
|
|
11981
|
-
|
|
11982
|
-
let t = So(
|
|
11983
|
-
t.expand.length &&
|
|
11984
|
-
},
|
|
12028
|
+
return $s([g], (t) => void e.set(t.id, t)), e;
|
|
12029
|
+
}, [g]), O = (e) => {
|
|
12030
|
+
T(e);
|
|
12031
|
+
let t = So(g, e);
|
|
12032
|
+
t.expand.length && x((e) => [.../* @__PURE__ */ new Set([...e, ...t.expand])]);
|
|
12033
|
+
}, k = (e) => {
|
|
11985
12034
|
let t = ai(e.value);
|
|
11986
12035
|
Rt(t).then(() => {
|
|
11987
|
-
Ne(
|
|
12036
|
+
Ne(h.copied(e.id)), l?.(e.id, t);
|
|
11988
12037
|
}).catch(() => void 0);
|
|
11989
|
-
},
|
|
12038
|
+
}, A = (e) => {
|
|
11990
12039
|
if (!s || !(e.ctrlKey || e.metaKey) || e.key.toLowerCase() !== "c") return;
|
|
11991
|
-
let t = e.target.closest("[data-node-id]")?.dataset.nodeId, n = t ?
|
|
11992
|
-
n && !window.getSelection()?.toString() && (e.preventDefault(),
|
|
11993
|
-
},
|
|
11994
|
-
query:
|
|
11995
|
-
matches: new Set(
|
|
12040
|
+
let t = e.target.closest("[data-node-id]")?.dataset.nodeId, n = t ? D.get(t) : void 0;
|
|
12041
|
+
n && !window.getSelection()?.toString() && (e.preventDefault(), k(n));
|
|
12042
|
+
}, j = {
|
|
12043
|
+
query: w,
|
|
12044
|
+
matches: new Set(E.matches),
|
|
11996
12045
|
copyable: s,
|
|
11997
12046
|
showTypes: !!c,
|
|
11998
|
-
copy:
|
|
12047
|
+
copy: k,
|
|
11999
12048
|
classes: t
|
|
12000
12049
|
};
|
|
12001
12050
|
return /* @__PURE__ */ $(Pu.Root, {
|
|
12002
|
-
|
|
12051
|
+
...p,
|
|
12052
|
+
...Lt(p.id, "root"),
|
|
12053
|
+
className: m.base({ class: d }),
|
|
12003
12054
|
style: f,
|
|
12004
|
-
collection:
|
|
12005
|
-
expandedValue:
|
|
12006
|
-
onExpandedChange: (e) =>
|
|
12007
|
-
translations: { treeLabel: i ?? u ??
|
|
12008
|
-
onKeyDown:
|
|
12055
|
+
collection: v,
|
|
12056
|
+
expandedValue: b,
|
|
12057
|
+
onExpandedChange: (e) => x(e.expandedValue),
|
|
12058
|
+
translations: { treeLabel: i ?? u ?? h.label },
|
|
12059
|
+
onKeyDown: (e) => {
|
|
12060
|
+
p.onKeyDown?.(e), A(e);
|
|
12061
|
+
},
|
|
12009
12062
|
children: [
|
|
12010
12063
|
o && /* @__PURE__ */ Q(M, {
|
|
12011
|
-
value:
|
|
12012
|
-
onChange: (e) =>
|
|
12064
|
+
value: w,
|
|
12065
|
+
onChange: (e) => O(e.currentTarget.value),
|
|
12013
12066
|
type: "search",
|
|
12014
12067
|
size: "sm",
|
|
12015
12068
|
leadingIcon: wl,
|
|
12016
12069
|
clearable: !0,
|
|
12017
|
-
placeholder:
|
|
12018
|
-
"aria-label":
|
|
12070
|
+
placeholder: h.search,
|
|
12071
|
+
"aria-label": h.search
|
|
12019
12072
|
}),
|
|
12020
12073
|
/* @__PURE__ */ Q(Pu.Tree, {
|
|
12021
|
-
className:
|
|
12074
|
+
className: m.tree(),
|
|
12022
12075
|
children: /* @__PURE__ */ Q(Fg.Provider, {
|
|
12023
|
-
value:
|
|
12024
|
-
children:
|
|
12076
|
+
value: j,
|
|
12077
|
+
children: _.map((e, t) => /* @__PURE__ */ Q(Lg, {
|
|
12025
12078
|
node: e,
|
|
12026
12079
|
indexPath: [t]
|
|
12027
12080
|
}, e.id))
|
|
@@ -12029,8 +12082,8 @@ function Ig({ classes: t, data: r, label: i, defaultExpandedDepth: a = 1, search
|
|
|
12029
12082
|
}),
|
|
12030
12083
|
o && /* @__PURE__ */ Q("span", {
|
|
12031
12084
|
role: "status",
|
|
12032
|
-
className:
|
|
12033
|
-
children:
|
|
12085
|
+
className: m.status(),
|
|
12086
|
+
children: w.trim() ? h.matches(E.matches.length) : ""
|
|
12034
12087
|
})
|
|
12035
12088
|
]
|
|
12036
12089
|
});
|
|
@@ -12272,49 +12325,50 @@ function Bg({ classes: t, label: r, side: i = "start", speed: a = 50, spacing: o
|
|
|
12272
12325
|
}
|
|
12273
12326
|
//#endregion
|
|
12274
12327
|
//#region src/components/AngleSlider/AngleSlider.tsx
|
|
12275
|
-
function Vg({ classes: t, value: r, defaultValue: i = 0, onValueChange: a, onValueChangeEnd: o, step: s = 1, label: c, marks: l, showValue: u = !0, formatValue: d, disabled: f, readOnly: p, invalid: m, name: h, "aria-label": g, id: _, className: v, style: y }) {
|
|
12328
|
+
function Vg({ classes: t, value: r, defaultValue: i = 0, onValueChange: a, onValueChangeEnd: o, step: s = 1, label: c, marks: l, showValue: u = !0, formatValue: d, disabled: f, readOnly: p, invalid: m, name: h, "aria-label": g, id: _, className: v, style: y, ...b }) {
|
|
12276
12329
|
I("AngleSlider", _);
|
|
12277
|
-
let
|
|
12330
|
+
let x = n("angleSlider", Ae, t)(), S = au(), C = e().angleSlider, [w, T] = Z(i), E = r ?? w, D = d ? d(E) : `${E}°`, O = d ? d(E) : C.value(E);
|
|
12278
12331
|
return /* @__PURE__ */ $(md.Root, {
|
|
12332
|
+
...b,
|
|
12279
12333
|
...Lt(_, "root"),
|
|
12280
|
-
className:
|
|
12334
|
+
className: x.base({ class: v }),
|
|
12281
12335
|
style: y,
|
|
12282
12336
|
value: r,
|
|
12283
12337
|
defaultValue: i,
|
|
12284
12338
|
step: s,
|
|
12285
|
-
disabled: f ??
|
|
12286
|
-
readOnly: p ??
|
|
12287
|
-
invalid: m ??
|
|
12339
|
+
disabled: f ?? S?.disabled,
|
|
12340
|
+
readOnly: p ?? S?.readOnly,
|
|
12341
|
+
invalid: m ?? S?.invalid,
|
|
12288
12342
|
name: h,
|
|
12289
|
-
"aria-label": c ||
|
|
12290
|
-
"aria-labelledby": !c &&
|
|
12343
|
+
"aria-label": c || S ? void 0 : g ?? C.label,
|
|
12344
|
+
"aria-labelledby": !c && S ? S.ids.label : void 0,
|
|
12291
12345
|
onValueChange: (e) => {
|
|
12292
|
-
|
|
12346
|
+
T(e.value), a?.(e.value);
|
|
12293
12347
|
},
|
|
12294
12348
|
onValueChangeEnd: (e) => o?.(e.value),
|
|
12295
12349
|
children: [
|
|
12296
12350
|
c && /* @__PURE__ */ Q(md.Label, {
|
|
12297
|
-
className:
|
|
12351
|
+
className: x.label(),
|
|
12298
12352
|
children: c
|
|
12299
12353
|
}),
|
|
12300
12354
|
/* @__PURE__ */ $(md.Control, {
|
|
12301
|
-
className:
|
|
12355
|
+
className: x.control(),
|
|
12302
12356
|
children: [!!l?.length && /* @__PURE__ */ Q(md.MarkerGroup, {
|
|
12303
|
-
className:
|
|
12357
|
+
className: x.markers(),
|
|
12304
12358
|
children: l.map((e) => /* @__PURE__ */ Q(md.Marker, {
|
|
12305
12359
|
value: e,
|
|
12306
|
-
className:
|
|
12360
|
+
className: x.marker()
|
|
12307
12361
|
}, e))
|
|
12308
12362
|
}), /* @__PURE__ */ Q(md.Thumb, {
|
|
12309
|
-
className:
|
|
12310
|
-
"aria-valuetext":
|
|
12311
|
-
"aria-describedby":
|
|
12363
|
+
className: x.thumb(),
|
|
12364
|
+
"aria-valuetext": O,
|
|
12365
|
+
"aria-describedby": S?.ariaDescribedby
|
|
12312
12366
|
})]
|
|
12313
12367
|
}),
|
|
12314
12368
|
u && /* @__PURE__ */ Q("span", {
|
|
12315
|
-
className:
|
|
12369
|
+
className: x.value(),
|
|
12316
12370
|
"aria-hidden": "true",
|
|
12317
|
-
children:
|
|
12371
|
+
children: D
|
|
12318
12372
|
}),
|
|
12319
12373
|
/* @__PURE__ */ Q(md.HiddenInput, {})
|
|
12320
12374
|
]
|
|
@@ -12963,13 +13017,13 @@ function s_(e, t, n) {
|
|
|
12963
13017
|
let r = e;
|
|
12964
13018
|
for (let e of t ? [t] : n) if (r[e] !== void 0) return r[e];
|
|
12965
13019
|
}
|
|
12966
|
-
function c_({ classes: t, value: r, defaultValue: i = [], onValueChange: a, onMove: o, itemKey: s, itemLabel: c, label: l, group: u, name: d, orientation: f = "vertical", columns: p = 3, accepts: m, clone: h, animate: g = !0, disabled: _, emptyText: v, renderItem: y, "aria-label": b, className: x, style: S }) {
|
|
12967
|
-
let
|
|
13020
|
+
function c_({ classes: t, value: r, defaultValue: i = [], onValueChange: a, onMove: o, itemKey: s, itemLabel: c, label: l, group: u, name: d, orientation: f = "vertical", columns: p = 3, accepts: m, clone: h, animate: g = !0, disabled: _, emptyText: v, renderItem: y, "aria-label": b, className: x, style: S, ...C }) {
|
|
13021
|
+
let w = n("sortable", zo, t)({ orientation: f }), T = e().sortable, E = ql(), D = d ?? E, O = `${E}label`, k = `${E}instructions`, A = X(null), [j, M] = Z(i), N = r ?? j, P = (e) => String(s_(e, c, [
|
|
12968
13022
|
"label",
|
|
12969
13023
|
"name",
|
|
12970
13024
|
"title"
|
|
12971
|
-
]) ?? e),
|
|
12972
|
-
items:
|
|
13025
|
+
]) ?? e), F = (e, t) => s_(e, s, ["id", "value"]) ?? (typeof e == "object" ? t : String(e)), I = X({
|
|
13026
|
+
items: N,
|
|
12973
13027
|
group: u,
|
|
12974
13028
|
label: l,
|
|
12975
13029
|
orientation: f,
|
|
@@ -12979,11 +13033,11 @@ function c_({ classes: t, value: r, defaultValue: i = [], onValueChange: a, onMo
|
|
|
12979
13033
|
clone: h,
|
|
12980
13034
|
onValueChange: a,
|
|
12981
13035
|
onMove: o,
|
|
12982
|
-
t:
|
|
12983
|
-
}),
|
|
13036
|
+
t: T
|
|
13037
|
+
}), L = X(null);
|
|
12984
13038
|
Y(() => {
|
|
12985
|
-
|
|
12986
|
-
items:
|
|
13039
|
+
I.current = {
|
|
13040
|
+
items: N,
|
|
12987
13041
|
group: u,
|
|
12988
13042
|
label: l,
|
|
12989
13043
|
orientation: f,
|
|
@@ -12993,103 +13047,104 @@ function c_({ classes: t, value: r, defaultValue: i = [], onValueChange: a, onMo
|
|
|
12993
13047
|
clone: h,
|
|
12994
13048
|
onValueChange: a,
|
|
12995
13049
|
onMove: o,
|
|
12996
|
-
t:
|
|
12997
|
-
},
|
|
13050
|
+
t: T
|
|
13051
|
+
}, L.current = null;
|
|
12998
13052
|
}), o_(() => {
|
|
12999
|
-
g && Fn(
|
|
13053
|
+
g && Fn(A.current, u ?? D);
|
|
13000
13054
|
}), Y(() => {
|
|
13001
|
-
let e =
|
|
13055
|
+
let e = A.current;
|
|
13002
13056
|
return () => Pn(e);
|
|
13003
13057
|
}, []);
|
|
13004
|
-
let
|
|
13058
|
+
let R = X(P);
|
|
13005
13059
|
Y(() => {
|
|
13006
|
-
|
|
13060
|
+
R.current = P;
|
|
13007
13061
|
}), Y(() => Bo.register({
|
|
13008
|
-
id:
|
|
13009
|
-
group: () =>
|
|
13010
|
-
element: () =>
|
|
13011
|
-
items: () =>
|
|
13062
|
+
id: D,
|
|
13063
|
+
group: () => I.current.group,
|
|
13064
|
+
element: () => A.current,
|
|
13065
|
+
items: () => L.current ?? I.current.items,
|
|
13012
13066
|
setItems: (e) => {
|
|
13013
|
-
|
|
13014
|
-
|
|
13067
|
+
L.current = e, hd(() => {
|
|
13068
|
+
M(e), I.current.onValueChange?.(e);
|
|
13015
13069
|
});
|
|
13016
13070
|
},
|
|
13017
|
-
onMove: (e) =>
|
|
13018
|
-
itemLabel: (e) =>
|
|
13019
|
-
label: () =>
|
|
13020
|
-
orientation: () =>
|
|
13021
|
-
columns: () =>
|
|
13022
|
-
disabled: () => !!
|
|
13023
|
-
accepts: (e, t) =>
|
|
13071
|
+
onMove: (e) => I.current.onMove?.(e),
|
|
13072
|
+
itemLabel: (e) => R.current(e),
|
|
13073
|
+
label: () => I.current.label ?? "",
|
|
13074
|
+
orientation: () => I.current.orientation,
|
|
13075
|
+
columns: () => I.current.columns,
|
|
13076
|
+
disabled: () => !!I.current.disabled,
|
|
13077
|
+
accepts: (e, t) => I.current.accepts?.(e, t) ?? !0,
|
|
13024
13078
|
clone: () => {
|
|
13025
|
-
let e =
|
|
13079
|
+
let e = I.current.clone;
|
|
13026
13080
|
return e ? (t) => e(t) : void 0;
|
|
13027
13081
|
},
|
|
13028
|
-
texts: () =>
|
|
13082
|
+
texts: () => I.current.t,
|
|
13029
13083
|
focus: (e) => Bn({
|
|
13030
|
-
id:
|
|
13031
|
-
element: () =>
|
|
13084
|
+
id: D,
|
|
13085
|
+
element: () => A.current
|
|
13032
13086
|
}, e)
|
|
13033
|
-
}), [
|
|
13034
|
-
let
|
|
13087
|
+
}), [D]);
|
|
13088
|
+
let z = Gl((e) => Bo.subscribe(e), []), B = Zl(z, () => Bo.state(D), () => Bo.state(D));
|
|
13035
13089
|
return /* @__PURE__ */ $("div", {
|
|
13036
|
-
|
|
13090
|
+
...C,
|
|
13091
|
+
className: w.base({ class: x }),
|
|
13037
13092
|
style: S,
|
|
13038
13093
|
children: [
|
|
13039
13094
|
l && /* @__PURE__ */ Q("span", {
|
|
13040
|
-
id:
|
|
13041
|
-
className:
|
|
13095
|
+
id: O,
|
|
13096
|
+
className: w.label(),
|
|
13042
13097
|
children: l
|
|
13043
13098
|
}),
|
|
13044
13099
|
/* @__PURE__ */ $("ul", {
|
|
13045
|
-
ref:
|
|
13046
|
-
className:
|
|
13100
|
+
ref: A,
|
|
13101
|
+
className: w.list(),
|
|
13047
13102
|
role: "list",
|
|
13048
|
-
"aria-labelledby": l ?
|
|
13103
|
+
"aria-labelledby": l ? O : void 0,
|
|
13049
13104
|
"aria-label": l ? void 0 : b,
|
|
13050
|
-
"data-sortable-container":
|
|
13051
|
-
"data-active":
|
|
13105
|
+
"data-sortable-container": D,
|
|
13106
|
+
"data-active": B.active && B.grabbed === null || void 0,
|
|
13052
13107
|
style: f === "grid" ? { "--wc-columns": String(p) } : void 0,
|
|
13053
|
-
onClick: (e) => Bo.containerClick(
|
|
13054
|
-
children: [
|
|
13055
|
-
className:
|
|
13108
|
+
onClick: (e) => Bo.containerClick(D, e),
|
|
13109
|
+
children: [N.map((e, t) => /* @__PURE__ */ $("li", {
|
|
13110
|
+
className: w.item(),
|
|
13056
13111
|
"data-sortable-index": t,
|
|
13057
|
-
...g ? { [fe]: String(
|
|
13058
|
-
"data-grabbed":
|
|
13059
|
-
"data-dragging":
|
|
13112
|
+
...g ? { [fe]: String(F(e, t)) } : {},
|
|
13113
|
+
"data-grabbed": B.grabbed === t || void 0,
|
|
13114
|
+
"data-dragging": B.dragging && B.grabbed === t || void 0,
|
|
13060
13115
|
children: [/* @__PURE__ */ Q("button", {
|
|
13061
13116
|
type: "button",
|
|
13062
|
-
className:
|
|
13063
|
-
[J]:
|
|
13064
|
-
"aria-label": h ?
|
|
13065
|
-
"aria-pressed":
|
|
13066
|
-
"aria-describedby":
|
|
13117
|
+
className: w.handle(),
|
|
13118
|
+
[J]: D,
|
|
13119
|
+
"aria-label": h ? T.copyHandle(P(e)) : T.handle(P(e)),
|
|
13120
|
+
"aria-pressed": B.grabbed === t,
|
|
13121
|
+
"aria-describedby": k,
|
|
13067
13122
|
disabled: _,
|
|
13068
|
-
onKeyDown: (e) => Bo.keydown(
|
|
13069
|
-
onPointerDown: (e) => Bo.pointerdown(
|
|
13123
|
+
onKeyDown: (e) => Bo.keydown(D, t, e),
|
|
13124
|
+
onPointerDown: (e) => Bo.pointerdown(D, t, e),
|
|
13070
13125
|
onPointerMove: (e) => Bo.pointermove(e),
|
|
13071
13126
|
onPointerUp: (e) => Bo.pointerup(e),
|
|
13072
13127
|
onPointerCancel: () => Bo.pointercancel(),
|
|
13073
13128
|
children: /* @__PURE__ */ Q(Jc, {
|
|
13074
|
-
className:
|
|
13129
|
+
className: w.handleIcon(),
|
|
13075
13130
|
"aria-hidden": "true"
|
|
13076
13131
|
})
|
|
13077
13132
|
}), /* @__PURE__ */ Q("div", {
|
|
13078
|
-
className:
|
|
13133
|
+
className: w.content(),
|
|
13079
13134
|
children: y ? y(e, {
|
|
13080
13135
|
index: t,
|
|
13081
|
-
grabbed:
|
|
13082
|
-
}) :
|
|
13136
|
+
grabbed: B.grabbed === t
|
|
13137
|
+
}) : P(e)
|
|
13083
13138
|
})]
|
|
13084
|
-
},
|
|
13085
|
-
className:
|
|
13086
|
-
children: v ??
|
|
13139
|
+
}, F(e, t))), !N.length && /* @__PURE__ */ Q("li", {
|
|
13140
|
+
className: w.empty(),
|
|
13141
|
+
children: v ?? T.empty
|
|
13087
13142
|
})]
|
|
13088
13143
|
}),
|
|
13089
13144
|
/* @__PURE__ */ Q("span", {
|
|
13090
|
-
id:
|
|
13091
|
-
className:
|
|
13092
|
-
children: h ?
|
|
13145
|
+
id: k,
|
|
13146
|
+
className: w.instructions(),
|
|
13147
|
+
children: h ? T.copyInstructions : T.instructions
|
|
13093
13148
|
})
|
|
13094
13149
|
]
|
|
13095
13150
|
});
|
|
@@ -13107,163 +13162,164 @@ var l_ = {
|
|
|
13107
13162
|
"info",
|
|
13108
13163
|
"debug"
|
|
13109
13164
|
];
|
|
13110
|
-
function f_({ classes: e, lines: r = u_, dataSource: i, pageSize: a = 200, label: o, search: s = !0, levelFilter: c = !0, levels: l, onLevelsChange: u, detectLevels: d = !0, autoScroll: f = !0, onAutoScrollChange: p, lineNumbers: m = !0, hasMore: h, onLoadMore: g, loading: _, rowHeight: v = 20, className: y, style: b }) {
|
|
13111
|
-
let
|
|
13165
|
+
function f_({ classes: e, lines: r = u_, dataSource: i, pageSize: a = 200, label: o, search: s = !0, levelFilter: c = !0, levels: l, onLevelsChange: u, detectLevels: d = !0, autoScroll: f = !0, onAutoScrollChange: p, lineNumbers: m = !0, hasMore: h, onLoadMore: g, loading: _, rowHeight: v = 20, className: y, style: b, ...x }) {
|
|
13166
|
+
let S = n("logViewer", Di, e), C = S(), { locale: w, translations: T } = t(), E = T.logViewer, O = X(null), k = X(0), A = ee({
|
|
13112
13167
|
source: i,
|
|
13113
13168
|
pageSize: a
|
|
13114
|
-
}),
|
|
13169
|
+
}), j = X(A.open);
|
|
13115
13170
|
Y(() => {
|
|
13116
|
-
|
|
13171
|
+
j.current = A.open;
|
|
13117
13172
|
}), Y(() => {
|
|
13118
|
-
i &&
|
|
13173
|
+
i && j.current();
|
|
13119
13174
|
}, [i]);
|
|
13120
|
-
let
|
|
13175
|
+
let N = A.active ? A.state.items : u_, P = A.active ? A.state.hasMore : h, F = !!_ || A.active && A.state.status === "loading", I = Xl(() => Ds(N.length ? [...N].reverse().concat(r) : r).map((e) => e.level || !d ? e : {
|
|
13121
13176
|
...e,
|
|
13122
13177
|
level: un(e.text)
|
|
13123
13178
|
}), [
|
|
13124
|
-
|
|
13179
|
+
N,
|
|
13125
13180
|
r,
|
|
13126
13181
|
d
|
|
13127
|
-
]),
|
|
13128
|
-
query:
|
|
13129
|
-
levels:
|
|
13182
|
+
]), L = d_.filter((e) => I.some((t) => t.level === e)), [R, z] = Z(d_), B = l ?? R, [V, H] = Z(""), W = Xl(() => jn(I, {
|
|
13183
|
+
query: V,
|
|
13184
|
+
levels: B
|
|
13130
13185
|
}), [
|
|
13131
|
-
|
|
13132
|
-
|
|
13133
|
-
|
|
13134
|
-
]), [
|
|
13135
|
-
|
|
13136
|
-
let [
|
|
13186
|
+
I,
|
|
13187
|
+
V,
|
|
13188
|
+
B
|
|
13189
|
+
]), [G, te] = Z(0), [K, ne] = Z(0), re = Oi(G, K, v, W.length), [q, ie] = Z(f), [ae, oe] = Z(f);
|
|
13190
|
+
ae !== f && (oe(f), ie(f));
|
|
13191
|
+
let [se, ce] = Z(!0), le = Xl(() => new Intl.DateTimeFormat(w, { timeStyle: "medium" }), [w]), ue = (e) => {
|
|
13137
13192
|
if (e === void 0) return "";
|
|
13138
13193
|
let t = e instanceof Date ? e : new Date(e);
|
|
13139
|
-
return Number.isNaN(t.getTime()) ? String(e) :
|
|
13140
|
-
}, [
|
|
13141
|
-
all:
|
|
13142
|
-
older:
|
|
13143
|
-
}), [
|
|
13144
|
-
if (
|
|
13145
|
-
let e =
|
|
13146
|
-
|
|
13147
|
-
all:
|
|
13148
|
-
older:
|
|
13149
|
-
}), t > 0 ?
|
|
13194
|
+
return Number.isNaN(t.getTime()) ? String(e) : le.format(t);
|
|
13195
|
+
}, [de, fe] = Z({
|
|
13196
|
+
all: I,
|
|
13197
|
+
older: N.length
|
|
13198
|
+
}), [pe, me] = Z(null);
|
|
13199
|
+
if (de.all !== I) {
|
|
13200
|
+
let e = de.all[0], t = N.length > de.older ? N.length - de.older : e ? I.indexOf(e) : -1;
|
|
13201
|
+
fe({
|
|
13202
|
+
all: I,
|
|
13203
|
+
older: N.length
|
|
13204
|
+
}), t > 0 ? me({ scroll: t * v }) : q && me({ scroll: "end" });
|
|
13150
13205
|
}
|
|
13151
13206
|
Yl(() => {
|
|
13152
|
-
let e =
|
|
13153
|
-
e &&
|
|
13154
|
-
}, [
|
|
13155
|
-
let e =
|
|
13207
|
+
let e = O.current;
|
|
13208
|
+
e && pe && (pe.scroll === "end" ? e.scrollTop = e.scrollHeight : e.scrollTop += pe.scroll);
|
|
13209
|
+
}, [pe]), Y(() => {
|
|
13210
|
+
let e = O.current;
|
|
13156
13211
|
if (!e) return;
|
|
13157
|
-
let t = new ResizeObserver(() =>
|
|
13158
|
-
return t.observe(e),
|
|
13212
|
+
let t = new ResizeObserver(() => ne(e.clientHeight));
|
|
13213
|
+
return t.observe(e), q && (e.scrollTop = e.scrollHeight), () => t.disconnect();
|
|
13159
13214
|
}, []);
|
|
13160
|
-
let
|
|
13161
|
-
let n = t ? [...
|
|
13162
|
-
|
|
13163
|
-
},
|
|
13164
|
-
|
|
13165
|
-
},
|
|
13166
|
-
let e =
|
|
13215
|
+
let he = (e, t) => {
|
|
13216
|
+
let n = t ? [...B, e] : B.filter((t) => t !== e);
|
|
13217
|
+
z(n), u?.(n);
|
|
13218
|
+
}, ge = (e) => {
|
|
13219
|
+
ie(e), p?.(e), e && O.current && (O.current.scrollTop = O.current.scrollHeight);
|
|
13220
|
+
}, J = () => {
|
|
13221
|
+
let e = O.current;
|
|
13167
13222
|
if (!e) return;
|
|
13168
|
-
|
|
13223
|
+
te(e.scrollTop);
|
|
13169
13224
|
let t = Xr(e);
|
|
13170
|
-
|
|
13171
|
-
},
|
|
13225
|
+
ce(t), e.scrollTop < k.current && !t && q && ge(!1), k.current = e.scrollTop;
|
|
13226
|
+
}, _e = W.slice(re.start, re.end).map((e, t) => ({
|
|
13172
13227
|
index: e,
|
|
13173
|
-
position:
|
|
13174
|
-
line:
|
|
13175
|
-
})),
|
|
13228
|
+
position: re.start + t,
|
|
13229
|
+
line: I[e]
|
|
13230
|
+
})), ve = V.trim().split(/\s+/);
|
|
13176
13231
|
return /* @__PURE__ */ $("div", {
|
|
13177
|
-
|
|
13232
|
+
...x,
|
|
13233
|
+
className: C.base({ class: y }),
|
|
13178
13234
|
style: b,
|
|
13179
13235
|
children: [
|
|
13180
13236
|
/* @__PURE__ */ $("div", {
|
|
13181
|
-
className:
|
|
13237
|
+
className: C.toolbar(),
|
|
13182
13238
|
children: [
|
|
13183
13239
|
s && /* @__PURE__ */ Q(M, {
|
|
13184
|
-
value:
|
|
13185
|
-
onChange: (e) =>
|
|
13240
|
+
value: V,
|
|
13241
|
+
onChange: (e) => H(e.currentTarget.value),
|
|
13186
13242
|
type: "search",
|
|
13187
13243
|
size: "sm",
|
|
13188
13244
|
leadingIcon: wl,
|
|
13189
13245
|
clearable: !0,
|
|
13190
|
-
placeholder:
|
|
13191
|
-
"aria-label":
|
|
13192
|
-
className:
|
|
13246
|
+
placeholder: E.search,
|
|
13247
|
+
"aria-label": E.search,
|
|
13248
|
+
className: C.search()
|
|
13193
13249
|
}),
|
|
13194
|
-
c &&
|
|
13250
|
+
c && L.length > 0 && /* @__PURE__ */ Q("div", {
|
|
13195
13251
|
role: "group",
|
|
13196
|
-
"aria-label":
|
|
13197
|
-
className:
|
|
13198
|
-
children:
|
|
13252
|
+
"aria-label": E.levelFilter,
|
|
13253
|
+
className: C.levels(),
|
|
13254
|
+
children: L.map((e) => /* @__PURE__ */ Q(Tp, {
|
|
13199
13255
|
size: "sm",
|
|
13200
13256
|
icon: l_[e],
|
|
13201
|
-
pressed:
|
|
13202
|
-
onPressedChange: (t) =>
|
|
13203
|
-
children:
|
|
13257
|
+
pressed: B.includes(e),
|
|
13258
|
+
onPressedChange: (t) => he(e, t),
|
|
13259
|
+
children: E.levels[e]
|
|
13204
13260
|
}, e))
|
|
13205
13261
|
}),
|
|
13206
13262
|
/* @__PURE__ */ Q(Tp, {
|
|
13207
13263
|
size: "sm",
|
|
13208
13264
|
icon: _c,
|
|
13209
|
-
pressed:
|
|
13210
|
-
onPressedChange:
|
|
13211
|
-
children:
|
|
13265
|
+
pressed: q,
|
|
13266
|
+
onPressedChange: ge,
|
|
13267
|
+
children: E.autoScroll
|
|
13212
13268
|
})
|
|
13213
13269
|
]
|
|
13214
13270
|
}),
|
|
13215
13271
|
/* @__PURE__ */ $("div", {
|
|
13216
|
-
className:
|
|
13272
|
+
className: C.body(),
|
|
13217
13273
|
children: [/* @__PURE__ */ $("div", {
|
|
13218
|
-
ref:
|
|
13219
|
-
className:
|
|
13274
|
+
ref: O,
|
|
13275
|
+
className: C.viewport(),
|
|
13220
13276
|
tabIndex: 0,
|
|
13221
13277
|
role: "region",
|
|
13222
|
-
"aria-label": o ??
|
|
13223
|
-
onScroll:
|
|
13224
|
-
children: [
|
|
13225
|
-
className:
|
|
13278
|
+
"aria-label": o ?? E.label,
|
|
13279
|
+
onScroll: J,
|
|
13280
|
+
children: [P && /* @__PURE__ */ Q("div", {
|
|
13281
|
+
className: C.more(),
|
|
13226
13282
|
children: /* @__PURE__ */ Q(D, {
|
|
13227
13283
|
variant: "outline",
|
|
13228
13284
|
size: "sm",
|
|
13229
|
-
loading:
|
|
13230
|
-
onClick: () =>
|
|
13231
|
-
children:
|
|
13285
|
+
loading: F,
|
|
13286
|
+
onClick: () => A.active ? A.loadMore() : g?.(),
|
|
13287
|
+
children: E.loadMore
|
|
13232
13288
|
})
|
|
13233
|
-
}),
|
|
13234
|
-
className:
|
|
13289
|
+
}), W.length ? /* @__PURE__ */ Q("ol", {
|
|
13290
|
+
className: C.list(),
|
|
13235
13291
|
style: {
|
|
13236
|
-
paddingTop: `${
|
|
13237
|
-
paddingBottom: `${
|
|
13292
|
+
paddingTop: `${re.before}px`,
|
|
13293
|
+
paddingBottom: `${re.after}px`
|
|
13238
13294
|
},
|
|
13239
|
-
children:
|
|
13295
|
+
children: _e.map((e) => {
|
|
13240
13296
|
let t = e.line.level ? l_[e.line.level] : void 0;
|
|
13241
13297
|
return /* @__PURE__ */ $("li", {
|
|
13242
|
-
className:
|
|
13243
|
-
"aria-setsize":
|
|
13298
|
+
className: S({ level: e.line.level ?? "none" }).line(),
|
|
13299
|
+
"aria-setsize": W.length,
|
|
13244
13300
|
"aria-posinset": e.position + 1,
|
|
13245
13301
|
children: [
|
|
13246
13302
|
m && /* @__PURE__ */ Q("span", {
|
|
13247
|
-
className:
|
|
13303
|
+
className: C.number(),
|
|
13248
13304
|
"aria-hidden": "true",
|
|
13249
13305
|
children: e.index + 1
|
|
13250
13306
|
}),
|
|
13251
13307
|
e.line.level && t && /* @__PURE__ */ $("span", {
|
|
13252
|
-
className:
|
|
13308
|
+
className: S({ level: e.line.level }).level(),
|
|
13253
13309
|
children: [/* @__PURE__ */ Q(t, {
|
|
13254
|
-
className:
|
|
13310
|
+
className: C.levelIcon(),
|
|
13255
13311
|
"aria-hidden": "true"
|
|
13256
|
-
}),
|
|
13312
|
+
}), E.levels[e.line.level]]
|
|
13257
13313
|
}),
|
|
13258
13314
|
e.line.time !== void 0 && /* @__PURE__ */ Q("span", {
|
|
13259
|
-
className:
|
|
13260
|
-
children:
|
|
13315
|
+
className: C.time(),
|
|
13316
|
+
children: ue(e.line.time)
|
|
13261
13317
|
}),
|
|
13262
13318
|
/* @__PURE__ */ Q("span", {
|
|
13263
|
-
className:
|
|
13264
|
-
children:
|
|
13319
|
+
className: C.text(),
|
|
13320
|
+
children: V.trim() ? /* @__PURE__ */ Q(U, {
|
|
13265
13321
|
text: e.line.text,
|
|
13266
|
-
query:
|
|
13322
|
+
query: ve,
|
|
13267
13323
|
ignoreAccents: !0
|
|
13268
13324
|
}) : e.line.text
|
|
13269
13325
|
})
|
|
@@ -13271,26 +13327,26 @@ function f_({ classes: e, lines: r = u_, dataSource: i, pageSize: a = 200, label
|
|
|
13271
13327
|
}, e.line.id === void 0 ? `#${e.index}` : `id:${e.line.id}`);
|
|
13272
13328
|
})
|
|
13273
13329
|
}) : /* @__PURE__ */ Q("p", {
|
|
13274
|
-
className:
|
|
13275
|
-
children:
|
|
13330
|
+
className: C.empty(),
|
|
13331
|
+
children: E.empty
|
|
13276
13332
|
})]
|
|
13277
|
-
}), !
|
|
13333
|
+
}), !se && W.length > 0 && /* @__PURE__ */ Q(D, {
|
|
13278
13334
|
variant: "secondary",
|
|
13279
13335
|
size: "sm",
|
|
13280
13336
|
leadingIcon: _c,
|
|
13281
|
-
className:
|
|
13282
|
-
onClick: () =>
|
|
13283
|
-
children:
|
|
13337
|
+
className: C.jump(),
|
|
13338
|
+
onClick: () => ge(!0),
|
|
13339
|
+
children: E.jumpToEnd
|
|
13284
13340
|
})]
|
|
13285
13341
|
}),
|
|
13286
13342
|
/* @__PURE__ */ $("div", {
|
|
13287
|
-
className:
|
|
13288
|
-
children: [/* @__PURE__ */ Q("span", { children:
|
|
13343
|
+
className: C.footer(),
|
|
13344
|
+
children: [/* @__PURE__ */ Q("span", { children: E.lines(W.length, I.length) }), !q && /* @__PURE__ */ Q("span", { children: E.paused })]
|
|
13289
13345
|
}),
|
|
13290
13346
|
/* @__PURE__ */ Q("span", {
|
|
13291
13347
|
role: "status",
|
|
13292
|
-
className:
|
|
13293
|
-
children:
|
|
13348
|
+
className: C.status(),
|
|
13349
|
+
children: V.trim() ? E.lines(W.length, I.length) : ""
|
|
13294
13350
|
})
|
|
13295
13351
|
]
|
|
13296
13352
|
});
|