@orient-ai/aurora-ui 1.0.0-alpha.14 → 1.0.0-alpha.16
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/components/Collection/DataTable/DataTable.d.ts.map +1 -1
- package/dist/components/Collection/DataTable/componnets/BulkActions/BulkActions.d.ts +2 -2
- package/dist/components/Collection/DataTable/componnets/BulkActions/BulkActions.d.ts.map +1 -1
- package/dist/components/Page/components/Page/Page.d.ts.map +1 -1
- package/dist/components/Page/context.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +862 -836
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3,23 +3,23 @@ import { Children as n, Fragment as r, cloneElement as i, createContext as a, cr
|
|
|
3
3
|
import v from "clsx";
|
|
4
4
|
import { Fragment as y, jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
5
5
|
import { Popover as S } from "@base-ui/react/popover";
|
|
6
|
-
import { addDays as C, addMonths as w, eachDayOfInterval as T, eachWeekOfInterval as E, endOfMonth as D, endOfWeek as O, format as k, isSameMonth as ee, isValid as te, parseISO as
|
|
7
|
-
import { AnimatePresence as
|
|
8
|
-
import { enUS as
|
|
9
|
-
import { Combobox as
|
|
10
|
-
import { ScrollArea as
|
|
11
|
-
import { Dialog as
|
|
12
|
-
import { Menu as
|
|
13
|
-
import * as
|
|
14
|
-
import { useRender as
|
|
15
|
-
import { Collapsible as
|
|
16
|
-
import { DragDropProvider as
|
|
17
|
-
import { isSortable as
|
|
18
|
-
import { FlexRender as
|
|
19
|
-
import { cell_getCanSelect as
|
|
6
|
+
import { addDays as C, addMonths as w, eachDayOfInterval as T, eachWeekOfInterval as E, endOfMonth as D, endOfWeek as O, format as k, isSameMonth as ee, isValid as te, parseISO as ne, startOfDay as re, startOfMonth as ie, startOfWeek as ae, subMonths as A } from "date-fns";
|
|
7
|
+
import { AnimatePresence as oe, motion as j, useIsPresent as se, useMotionValueEvent as ce, useReducedMotion as M, useScroll as le } from "motion/react";
|
|
8
|
+
import { enUS as ue } from "date-fns/locale/en-US";
|
|
9
|
+
import { Combobox as N } from "@base-ui/react/combobox";
|
|
10
|
+
import { ScrollArea as P } from "@base-ui/react/scroll-area";
|
|
11
|
+
import { Dialog as F } from "@base-ui/react/dialog";
|
|
12
|
+
import { Menu as I } from "@base-ui/react/menu";
|
|
13
|
+
import * as de from "@radix-ui/react-portal";
|
|
14
|
+
import { useRender as fe } from "@base-ui/react/use-render";
|
|
15
|
+
import { Collapsible as pe } from "@base-ui/react/collapsible";
|
|
16
|
+
import { DragDropProvider as me } from "@dnd-kit/react";
|
|
17
|
+
import { isSortable as he, useSortable as ge } from "@dnd-kit/react/sortable";
|
|
18
|
+
import { FlexRender as _e, cellSelectionFeature as ve, useTable as ye } from "@tanstack/react-table";
|
|
19
|
+
import { cell_getCanSelect as be, cell_getIsFocused as xe, cell_getIsSelected as Se, cell_getSelectionEdges as Ce, cell_getSelectionExtendHandler as we, cell_getSelectionStartHandler as Te, column_getCanResize as Ee, column_getCanSort as De, column_getIsPinned as Oe, column_getIsResizing as ke, column_getIsSorted as Ae, column_getSize as je, column_getToggleSortingHandler as Me, column_resetSize as Ne, header_getResizeHandler as Pe, row_getCanExpand as Fe, row_getCanSelect as Ie, row_getIsExpanded as Le, row_getIsSelected as Re, row_getIsSomeSelected as ze, row_getToggleExpandedHandler as Be, row_getToggleSelectedHandler as Ve, table_getCenterHeaderGroups as He, table_getEndHeaderGroups as Ue, table_getIsSomeColumnsPinned as We, table_getStartHeaderGroups as Ge, table_resetCellSelection as Ke, table_setColumnSizing as qe } from "@tanstack/react-table/static-functions";
|
|
20
20
|
import { useScrollSync as Je } from "react-use-scroll-sync";
|
|
21
21
|
import { defaultRangeExtractor as Ye, useWindowVirtualizer as Xe } from "@tanstack/react-virtual";
|
|
22
|
-
var
|
|
22
|
+
var L = {
|
|
23
23
|
button: "_button_1iodc_1",
|
|
24
24
|
content: "_content_1iodc_41",
|
|
25
25
|
"text-wrapper": "_text-wrapper_1iodc_47",
|
|
@@ -47,7 +47,7 @@ var R = {
|
|
|
47
47
|
};
|
|
48
48
|
//#endregion
|
|
49
49
|
//#region src/components/Spinner/Spinner.tsx
|
|
50
|
-
function
|
|
50
|
+
function R({ size: e = "base" }) {
|
|
51
51
|
let t = e === "base", n = v("aurora-base", Ze.spinner, !t && Ze["size-large"]), r = {
|
|
52
52
|
r: t ? 14 : 19,
|
|
53
53
|
strokeWidth: t ? 3 : 2,
|
|
@@ -11505,7 +11505,7 @@ var om = {
|
|
|
11505
11505
|
}, cm = /* @__PURE__ */ new Set(/* @__PURE__ */ "activity.alert-bubble.alert-bubble-filled.alert-circle.alert-circle-filled.alert-diamond.alert-diamond-filled.alert-location.alert-location-filled.alert-octagon.alert-octagon-filled.alert-triangle.alert-triangle-filled.app-extension.apps.apps-filled.archive.arrow-diagonal.arrow-down.arrow-left.arrow-right.arrow-up.arrows-in-horizontal.arrows-out-horizontal.arrows-out-horizontal-filled.bank.bill.bolt.bullet.calendar.cart.cash-dollar.channels.chat.check.check-circle.check-circle-filled.chevron-down.chevron-left.chevron-right.chevron-up.clock.clock-half-dotted.clock-revert.collection.collection-filled.compose.content.content-filled.contract.corner-pill.corner-round.corner-square.credit-card.cursor.data-table.delete.delivery.discount.dock-floating.dock-side.dock.domain.drag-handle.duplicate.edit.email.enter.exchange.exit.export.external.external-small.filter.grid.grid-square-circle-plus.home.home-filled.image.import.incoming.info.info-filled.inheritance.keyboard.language.layout-block.layout-block-ai.layout-buy-button.layout-buy-button-horizontal.layout-buy-button-vertical.layout-column-1.layout-columns-2.layout-columns-3.layout-footer.layout-header.layout-logo-block.layout-popup.layout-rows-2.layout-section.layout-sidebar-left.layout-sidebar-right.list-bulleted.list-bulleted-filled.list-numbered.location.location-filled.lock.markets.maximize.measurement-size.measurement-size-list.mention.menu.menu-horizontal.menu-vertical.merge.metafields.minimize.mobile.notification.notification-filled.order.organization.organization-filled.outdent.outgoing.package.payables.payment.person.person-filled.pin.pin-filled.pin-remove.plan.plus.print.product.product-add.product-cost.product-discount.product-filled.product-list.product-remove.profile.question-circle.receivables.redo.referral-code.refresh.replace.replay.reset.return.save.search.select.settings.share.skeleton-icon.sort.split.store.store-filled.table.table-masonry.tablet.target.tax.team.text.text-ai.text-align-center.text-align-left.text-align-right.text-block.text-bold.text-color.text-font.text-font-list.text-grammar.text-in-columns.text-in-rows.text-in-rows-filled.text-indent.text-italic.text-quote.text-title.text-underline.text-with-image.theme.theme-edit.theme-store.theme-template.transaction.transfer.transfer-in.transfer-internal.transfer-out.undo.unknown-device.upload.users.viewport-narrow.viewport-short.viewport-tall.viewport-wide.x".split("."));
|
|
11506
11506
|
//#endregion
|
|
11507
11507
|
//#region src/components/Icon/Icon.tsx
|
|
11508
|
-
function
|
|
11508
|
+
function z({ type: e, tone: t = "auto", color: n = "base", size: r = "base", className: i, style: a }) {
|
|
11509
11509
|
if (!e || !Object.hasOwn(om, e)) return null;
|
|
11510
11510
|
let o = cm.has(e), s = (!o && r === "small" ? sm[e] : void 0) ?? om[e];
|
|
11511
11511
|
return /* @__PURE__ */ b("span", {
|
|
@@ -11516,27 +11516,27 @@ function B({ type: e, tone: t = "auto", color: n = "base", size: r = "base", cla
|
|
|
11516
11516
|
}
|
|
11517
11517
|
//#endregion
|
|
11518
11518
|
//#region src/components/Button/Button.tsx
|
|
11519
|
-
function
|
|
11520
|
-
let d = !!a, f = n.toArray(e).some((e) => typeof e != "string" || e.trim().length > 0), p = a ? /* @__PURE__ */ b(
|
|
11521
|
-
[
|
|
11522
|
-
[
|
|
11523
|
-
[
|
|
11524
|
-
[
|
|
11525
|
-
[
|
|
11519
|
+
function B({ children: e, variant: t = "auto", tone: r = "auto", inlineSize: i = "auto", icon: a, iconPosition: o = "start", disabled: s = !1, loading: c = !1, className: l, ...u }) {
|
|
11520
|
+
let d = !!a, f = n.toArray(e).some((e) => typeof e != "string" || e.trim().length > 0), p = a ? /* @__PURE__ */ b(z, { type: a }) : null, m = v("aurora-base", "aurora-button", L.button, L["size-base"], L[`variant-${t}`], L[`tone-${r}`], L[`inline-size-${i}`], l, {
|
|
11521
|
+
[L.disabled]: s || c,
|
|
11522
|
+
[L.loading]: c,
|
|
11523
|
+
[L["icon-only"]]: d && !f,
|
|
11524
|
+
[L["icon-with-text"]]: d && f,
|
|
11525
|
+
[L["icon-end"]]: d && o === "end"
|
|
11526
11526
|
});
|
|
11527
11527
|
return /* @__PURE__ */ x("button", {
|
|
11528
11528
|
...u,
|
|
11529
11529
|
className: m,
|
|
11530
11530
|
disabled: s || c,
|
|
11531
11531
|
children: [c && /* @__PURE__ */ b("span", {
|
|
11532
|
-
className:
|
|
11533
|
-
children: /* @__PURE__ */ b(
|
|
11532
|
+
className: L.spinner,
|
|
11533
|
+
children: /* @__PURE__ */ b(R, {})
|
|
11534
11534
|
}), /* @__PURE__ */ x("span", {
|
|
11535
|
-
className:
|
|
11535
|
+
className: L.content,
|
|
11536
11536
|
children: [
|
|
11537
11537
|
o === "start" && p,
|
|
11538
11538
|
/* @__PURE__ */ b("span", {
|
|
11539
|
-
className:
|
|
11539
|
+
className: L["text-wrapper"],
|
|
11540
11540
|
children: e
|
|
11541
11541
|
}),
|
|
11542
11542
|
o === "end" && p
|
|
@@ -11551,7 +11551,7 @@ function lm(e, t = {}) {
|
|
|
11551
11551
|
}
|
|
11552
11552
|
function um({ content: e, onAction: t, variant: n, destructive: r, ...i }, a, o) {
|
|
11553
11553
|
let s = !a?.tone && r ? "critical" : a?.tone;
|
|
11554
|
-
return /* @__PURE__ */ b(
|
|
11554
|
+
return /* @__PURE__ */ b(B, {
|
|
11555
11555
|
onClick: t,
|
|
11556
11556
|
tone: s,
|
|
11557
11557
|
variant: n,
|
|
@@ -11604,7 +11604,7 @@ function bm() {
|
|
|
11604
11604
|
}
|
|
11605
11605
|
//#endregion
|
|
11606
11606
|
//#region src/components/DatePicker/utils.ts
|
|
11607
|
-
var xm =
|
|
11607
|
+
var xm = ne("2000-01-02"), Sm = { locale: ue }, Cm = Array.from({ length: 7 }, (e, t) => k(C(xm, t), "EEEE", Sm));
|
|
11608
11608
|
function wm(e) {
|
|
11609
11609
|
return k(e, "uuuu-MM-dd");
|
|
11610
11610
|
}
|
|
@@ -11613,14 +11613,14 @@ function Tm(e) {
|
|
|
11613
11613
|
}
|
|
11614
11614
|
function Em(e) {
|
|
11615
11615
|
if (!/^\d{4}-\d{2}-\d{2}$/.test(e)) return null;
|
|
11616
|
-
let t =
|
|
11616
|
+
let t = ne(e);
|
|
11617
11617
|
return te(t) ? t : null;
|
|
11618
11618
|
}
|
|
11619
11619
|
function Dm(e) {
|
|
11620
11620
|
return /^\d{4}-\d{2}$/.test(e) ? Em(`${e}-01`) : null;
|
|
11621
11621
|
}
|
|
11622
11622
|
function Om(e, t) {
|
|
11623
|
-
return w(
|
|
11623
|
+
return w(ie(e), t);
|
|
11624
11624
|
}
|
|
11625
11625
|
function km(e, t) {
|
|
11626
11626
|
let [n, r] = e;
|
|
@@ -11648,7 +11648,7 @@ function Nm(e, t, n, r = !1) {
|
|
|
11648
11648
|
case "ArrowRight": return C(e, n === "rtl" ? -1 : 1);
|
|
11649
11649
|
case "ArrowUp": return C(e, -7);
|
|
11650
11650
|
case "ArrowDown": return C(e, 7);
|
|
11651
|
-
case "Home": return
|
|
11651
|
+
case "Home": return ae(e, { weekStartsOn: 0 });
|
|
11652
11652
|
case "End": return O(e, { weekStartsOn: 0 });
|
|
11653
11653
|
case "PageUp": return w(e, r ? -12 : -1);
|
|
11654
11654
|
case "PageDown": return w(e, r ? 12 : 1);
|
|
@@ -11657,7 +11657,7 @@ function Nm(e, t, n, r = !1) {
|
|
|
11657
11657
|
}
|
|
11658
11658
|
function Pm(e) {
|
|
11659
11659
|
return E({
|
|
11660
|
-
start:
|
|
11660
|
+
start: ie(e),
|
|
11661
11661
|
end: D(e)
|
|
11662
11662
|
}, { weekStartsOn: 0 }).map((t) => T({
|
|
11663
11663
|
start: t,
|
|
@@ -11671,8 +11671,8 @@ var Fm = {
|
|
|
11671
11671
|
//#endregion
|
|
11672
11672
|
//#region src/components/DatePicker/components/MonthDays/MonthDays.tsx
|
|
11673
11673
|
function Im({ children: e, direction: t }) {
|
|
11674
|
-
let n =
|
|
11675
|
-
return /* @__PURE__ */ b(
|
|
11674
|
+
let n = se(), r = M(), i = r ? 0 : 100;
|
|
11675
|
+
return /* @__PURE__ */ b(j.div, {
|
|
11676
11676
|
className: v(Fm.days, { [Fm.exiting]: !n }),
|
|
11677
11677
|
inert: !n,
|
|
11678
11678
|
custom: t,
|
|
@@ -11697,7 +11697,7 @@ function Im({ children: e, direction: t }) {
|
|
|
11697
11697
|
children: e
|
|
11698
11698
|
});
|
|
11699
11699
|
}
|
|
11700
|
-
var
|
|
11700
|
+
var V = {
|
|
11701
11701
|
month: "_month_21oyw_1",
|
|
11702
11702
|
header: "_header_21oyw_11",
|
|
11703
11703
|
title: "_title_21oyw_21",
|
|
@@ -11740,13 +11740,13 @@ function Lm({ month: e, type: t, start: n, end: r, today: i, previewDate: a, tab
|
|
|
11740
11740
|
m("Sat")
|
|
11741
11741
|
], _ = m("{0} {1}", [h[e.getMonth()], e.getFullYear()]), y = Pm(e), S = r || a || n, C = n < S ? n : S, w = n > S ? n : S, T = t === "range" && !!(n && (r || a));
|
|
11742
11742
|
return /* @__PURE__ */ x("div", {
|
|
11743
|
-
className:
|
|
11743
|
+
className: V.month,
|
|
11744
11744
|
children: [/* @__PURE__ */ x("div", {
|
|
11745
|
-
className:
|
|
11745
|
+
className: V.header,
|
|
11746
11746
|
children: [
|
|
11747
11747
|
c ? /* @__PURE__ */ b("span", {
|
|
11748
|
-
className:
|
|
11749
|
-
children: /* @__PURE__ */ b(
|
|
11748
|
+
className: V.navigation,
|
|
11749
|
+
children: /* @__PURE__ */ b(B, {
|
|
11750
11750
|
type: "button",
|
|
11751
11751
|
variant: "tertiary",
|
|
11752
11752
|
icon: "chevron-left",
|
|
@@ -11754,12 +11754,12 @@ function Lm({ month: e, type: t, start: n, end: r, today: i, previewDate: a, tab
|
|
|
11754
11754
|
})
|
|
11755
11755
|
}) : /* @__PURE__ */ b("span", {}),
|
|
11756
11756
|
/* @__PURE__ */ b("span", {
|
|
11757
|
-
className:
|
|
11757
|
+
className: V.title,
|
|
11758
11758
|
children: _
|
|
11759
11759
|
}),
|
|
11760
11760
|
l ? /* @__PURE__ */ b("span", {
|
|
11761
|
-
className:
|
|
11762
|
-
children: /* @__PURE__ */ b(
|
|
11761
|
+
className: V.navigation,
|
|
11762
|
+
children: /* @__PURE__ */ b(B, {
|
|
11763
11763
|
type: "button",
|
|
11764
11764
|
variant: "tertiary",
|
|
11765
11765
|
icon: "chevron-right",
|
|
@@ -11768,35 +11768,35 @@ function Lm({ month: e, type: t, start: n, end: r, today: i, previewDate: a, tab
|
|
|
11768
11768
|
}) : /* @__PURE__ */ b("span", {})
|
|
11769
11769
|
]
|
|
11770
11770
|
}), /* @__PURE__ */ b("div", {
|
|
11771
|
-
className:
|
|
11772
|
-
children: /* @__PURE__ */ b(
|
|
11771
|
+
className: V.viewport,
|
|
11772
|
+
children: /* @__PURE__ */ b(oe, {
|
|
11773
11773
|
initial: !1,
|
|
11774
11774
|
custom: s,
|
|
11775
11775
|
children: /* @__PURE__ */ b(Im, {
|
|
11776
11776
|
direction: s,
|
|
11777
11777
|
children: /* @__PURE__ */ x("table", {
|
|
11778
11778
|
role: "grid",
|
|
11779
|
-
className:
|
|
11779
|
+
className: V.table,
|
|
11780
11780
|
children: [/* @__PURE__ */ b("thead", { children: /* @__PURE__ */ b("tr", { children: Cm.map((e, t) => /* @__PURE__ */ b("th", {
|
|
11781
11781
|
scope: "col",
|
|
11782
|
-
className:
|
|
11782
|
+
className: V.weekday,
|
|
11783
11783
|
children: g[t]
|
|
11784
11784
|
}, e)) }) }), /* @__PURE__ */ b("tbody", { children: y.map((t, s) => /* @__PURE__ */ b("tr", { children: t.map((t, c) => {
|
|
11785
11785
|
let l = t ? wm(t) : "", m = t ? l : `${Tm(e)}-${s === 0 ? "00" : "32"}`, h = T && m >= C && m <= w, g = !(!l || l !== n && l !== r);
|
|
11786
11786
|
return /* @__PURE__ */ b("td", {
|
|
11787
|
-
className: v(
|
|
11788
|
-
[
|
|
11789
|
-
[
|
|
11790
|
-
[
|
|
11787
|
+
className: v(V.cell, {
|
|
11788
|
+
[V["in-range"]]: h,
|
|
11789
|
+
[V["range-start"]]: h && l === C,
|
|
11790
|
+
[V["range-end"]]: h && l === w
|
|
11791
11791
|
}),
|
|
11792
11792
|
children: t && /* @__PURE__ */ b("button", {
|
|
11793
11793
|
type: "button",
|
|
11794
11794
|
"data-date": l,
|
|
11795
11795
|
tabIndex: l === o ? 0 : -1,
|
|
11796
|
-
className: v("aurora-base", "aurora-button",
|
|
11797
|
-
[
|
|
11798
|
-
[
|
|
11799
|
-
[
|
|
11796
|
+
className: v("aurora-base", "aurora-button", V.day, {
|
|
11797
|
+
[V.today]: l === i,
|
|
11798
|
+
[V.selected]: g,
|
|
11799
|
+
[V.preview]: l === a && !g
|
|
11800
11800
|
}),
|
|
11801
11801
|
onClick: () => u(t),
|
|
11802
11802
|
onMouseEnter: () => d(l),
|
|
@@ -11891,7 +11891,7 @@ function zm({ value: e, onChange: n, type: r = "single", visibleMonths: i = "aut
|
|
|
11891
11891
|
}, i))
|
|
11892
11892
|
});
|
|
11893
11893
|
}
|
|
11894
|
-
var
|
|
11894
|
+
var H = {
|
|
11895
11895
|
root: "_root_1t5yg_2",
|
|
11896
11896
|
control: "_control_1t5yg_2",
|
|
11897
11897
|
field: "_field_1t5yg_18",
|
|
@@ -11904,28 +11904,28 @@ var U = {
|
|
|
11904
11904
|
//#endregion
|
|
11905
11905
|
//#region src/components/InputBase/InputBase.tsx
|
|
11906
11906
|
function Bm({ children: e, prefix: t, suffix: n, disabled: a = !1, readOnly: o = !1 }) {
|
|
11907
|
-
let c = v("aurora-base",
|
|
11908
|
-
[
|
|
11909
|
-
[
|
|
11910
|
-
}), l = s(e) && e.type !== r ? i(e, { className: v(
|
|
11911
|
-
className:
|
|
11907
|
+
let c = v("aurora-base", H.root, H.field, {
|
|
11908
|
+
[H.disabled]: a,
|
|
11909
|
+
[H["read-only"]]: o
|
|
11910
|
+
}), l = s(e) && e.type !== r ? i(e, { className: v(H.control, e.props.className) }) : /* @__PURE__ */ b("span", {
|
|
11911
|
+
className: H.control,
|
|
11912
11912
|
children: e
|
|
11913
11913
|
});
|
|
11914
11914
|
return /* @__PURE__ */ x("span", {
|
|
11915
11915
|
className: c,
|
|
11916
11916
|
children: [/* @__PURE__ */ x("span", {
|
|
11917
|
-
className:
|
|
11917
|
+
className: H.content,
|
|
11918
11918
|
children: [t && /* @__PURE__ */ b("span", {
|
|
11919
|
-
className:
|
|
11919
|
+
className: H["prefix-wrapper"],
|
|
11920
11920
|
children: t
|
|
11921
11921
|
}), l]
|
|
11922
11922
|
}), n && /* @__PURE__ */ b("span", {
|
|
11923
|
-
className:
|
|
11923
|
+
className: H["connected-right"],
|
|
11924
11924
|
children: n
|
|
11925
11925
|
})]
|
|
11926
11926
|
});
|
|
11927
11927
|
}
|
|
11928
|
-
var
|
|
11928
|
+
var U = {
|
|
11929
11929
|
positioner: "_positioner_17pgo_1",
|
|
11930
11930
|
popover: "_popover_17pgo_9",
|
|
11931
11931
|
header: "_header_17pgo_62",
|
|
@@ -11949,11 +11949,11 @@ function Vm({ children: e, header: n, blockSize: r = "auto", minBlockSize: i = "
|
|
|
11949
11949
|
alignOffset: g,
|
|
11950
11950
|
collisionPadding: _,
|
|
11951
11951
|
collisionAvoidance: y,
|
|
11952
|
-
className:
|
|
11952
|
+
className: U.positioner,
|
|
11953
11953
|
children: /* @__PURE__ */ x(S.Popup, {
|
|
11954
11954
|
initialFocus: C,
|
|
11955
11955
|
finalFocus: w,
|
|
11956
|
-
className: v("aurora-base",
|
|
11956
|
+
className: v("aurora-base", U.popover),
|
|
11957
11957
|
style: {
|
|
11958
11958
|
blockSize: r === "auto" ? "fit-content" : r,
|
|
11959
11959
|
minBlockSize: i,
|
|
@@ -11963,11 +11963,11 @@ function Vm({ children: e, header: n, blockSize: r = "auto", minBlockSize: i = "
|
|
|
11963
11963
|
"--popover-max-inline-size": c === "none" ? "100vw" : c
|
|
11964
11964
|
},
|
|
11965
11965
|
children: [n != null && /* @__PURE__ */ b("div", {
|
|
11966
|
-
className:
|
|
11966
|
+
className: U.header,
|
|
11967
11967
|
children: n
|
|
11968
11968
|
}), /* @__PURE__ */ b("div", {
|
|
11969
11969
|
ref: u,
|
|
11970
|
-
className: v(
|
|
11970
|
+
className: v(U.scroll, U.spacious),
|
|
11971
11971
|
tabIndex: d,
|
|
11972
11972
|
children: e
|
|
11973
11973
|
})]
|
|
@@ -11999,15 +11999,15 @@ function Um({ children: e, className: t, type: n = "button", selectable: r = !1,
|
|
|
11999
11999
|
}),
|
|
12000
12000
|
children: [s && /* @__PURE__ */ b("span", {
|
|
12001
12001
|
className: Hm.spinner,
|
|
12002
|
-
children: /* @__PURE__ */ b(
|
|
12002
|
+
children: /* @__PURE__ */ b(R, {})
|
|
12003
12003
|
}), /* @__PURE__ */ x("span", {
|
|
12004
12004
|
className: Hm.content,
|
|
12005
12005
|
children: [
|
|
12006
12006
|
r && /* @__PURE__ */ b("span", {
|
|
12007
12007
|
className: Hm.indicator,
|
|
12008
|
-
children: /* @__PURE__ */ b(
|
|
12008
|
+
children: /* @__PURE__ */ b(z, { type: "check" })
|
|
12009
12009
|
}),
|
|
12010
|
-
a && /* @__PURE__ */ b(
|
|
12010
|
+
a && /* @__PURE__ */ b(z, { type: a }),
|
|
12011
12011
|
/* @__PURE__ */ b("span", {
|
|
12012
12012
|
className: Hm.label,
|
|
12013
12013
|
children: e
|
|
@@ -12043,7 +12043,7 @@ function Jm({ id: e, value: t, onChange: n, type: r = "single", visibleMonths: i
|
|
|
12043
12043
|
children: /* @__PURE__ */ b(Bm, {
|
|
12044
12044
|
readOnly: o,
|
|
12045
12045
|
disabled: s,
|
|
12046
|
-
prefix: /* @__PURE__ */ b(
|
|
12046
|
+
prefix: /* @__PURE__ */ b(z, { type: "calendar" }),
|
|
12047
12047
|
children: /* @__PURE__ */ b("span", {
|
|
12048
12048
|
className: v(qm.value, { [qm.placeholder]: !f }),
|
|
12049
12049
|
children: f || a
|
|
@@ -12130,7 +12130,7 @@ function nh({ value: e, autoComplete: t = "off", disabled: n = !1, readOnly: r =
|
|
|
12130
12130
|
})
|
|
12131
12131
|
});
|
|
12132
12132
|
}
|
|
12133
|
-
var
|
|
12133
|
+
var W = {
|
|
12134
12134
|
root: "_root_1x1ay_1",
|
|
12135
12135
|
content: "_content_1x1ay_5",
|
|
12136
12136
|
scrollArea: "_scrollArea_1x1ay_10",
|
|
@@ -12148,23 +12148,23 @@ var G = {
|
|
|
12148
12148
|
//#endregion
|
|
12149
12149
|
//#region src/components/Combobox/Combobox.tsx
|
|
12150
12150
|
function rh({ id: e, trigger: n, options: r, value: i, onChange: a, inputValue: o, onInputChange: s, emptyState: l = "No results found", footer: d, loading: f = !1, hasMore: p = !1, loadMore: _, isLoadingMore: y = !1, disabled: S = !1, readOnly: C = !1, busy: w = !1 }) {
|
|
12151
|
-
let T = t(), E = C || w, [D, O] = g(!1), k = h(null), ee = h(null), te = h(null), [
|
|
12151
|
+
let T = t(), E = C || w, [D, O] = g(!1), k = h(null), ee = h(null), te = h(null), [ne, re] = g(null), ie = c(() => {
|
|
12152
12152
|
O(!1), k.current?.focus();
|
|
12153
|
-
}, []),
|
|
12153
|
+
}, []), ae = typeof d == "function" ? d({ close: ie }) : d, A = m(() => N.createItems(r, {
|
|
12154
12154
|
getValue: (e) => e.value,
|
|
12155
12155
|
getLabel: (e) => e.text
|
|
12156
12156
|
}), [r]);
|
|
12157
12157
|
return u(() => {
|
|
12158
12158
|
E && O(!1);
|
|
12159
12159
|
}, [E]), u(() => {
|
|
12160
|
-
if (!D || S || E || f || y || !p || !_ || !
|
|
12160
|
+
if (!D || S || E || f || y || !p || !_ || !ne) return;
|
|
12161
12161
|
let e = new IntersectionObserver(([t]) => {
|
|
12162
12162
|
t.isIntersecting && (e.disconnect(), _());
|
|
12163
12163
|
}, {
|
|
12164
12164
|
root: te.current,
|
|
12165
12165
|
rootMargin: "0px 0px 32px 0px"
|
|
12166
12166
|
});
|
|
12167
|
-
return e.observe(
|
|
12167
|
+
return e.observe(ne), () => e.disconnect();
|
|
12168
12168
|
}, [
|
|
12169
12169
|
D,
|
|
12170
12170
|
S,
|
|
@@ -12173,10 +12173,10 @@ function rh({ id: e, trigger: n, options: r, value: i, onChange: a, inputValue:
|
|
|
12173
12173
|
y,
|
|
12174
12174
|
p,
|
|
12175
12175
|
_,
|
|
12176
|
-
|
|
12176
|
+
ne,
|
|
12177
12177
|
r.length
|
|
12178
|
-
]), /* @__PURE__ */ x(
|
|
12179
|
-
items:
|
|
12178
|
+
]), /* @__PURE__ */ x(N.Root, {
|
|
12179
|
+
items: A,
|
|
12180
12180
|
filter: null,
|
|
12181
12181
|
value: i === "" ? null : i,
|
|
12182
12182
|
onValueChange: (e, t) => {
|
|
@@ -12196,13 +12196,13 @@ function rh({ id: e, trigger: n, options: r, value: i, onChange: a, inputValue:
|
|
|
12196
12196
|
autoHighlight: !0,
|
|
12197
12197
|
children: [/* @__PURE__ */ b("div", {
|
|
12198
12198
|
ref: ee,
|
|
12199
|
-
className: v("aurora-base",
|
|
12200
|
-
children: /* @__PURE__ */ b(
|
|
12199
|
+
className: v("aurora-base", W.root),
|
|
12200
|
+
children: /* @__PURE__ */ b(N.Input, {
|
|
12201
12201
|
id: e,
|
|
12202
12202
|
ref: k,
|
|
12203
12203
|
render: n
|
|
12204
12204
|
})
|
|
12205
|
-
}), /* @__PURE__ */ b(
|
|
12205
|
+
}), /* @__PURE__ */ b(N.Portal, { children: /* @__PURE__ */ b(N.Positioner, {
|
|
12206
12206
|
anchor: ee,
|
|
12207
12207
|
dir: T,
|
|
12208
12208
|
align: "start",
|
|
@@ -12213,65 +12213,65 @@ function rh({ id: e, trigger: n, options: r, value: i, onChange: a, inputValue:
|
|
|
12213
12213
|
align: "shift",
|
|
12214
12214
|
fallbackAxisSide: "none"
|
|
12215
12215
|
},
|
|
12216
|
-
className:
|
|
12217
|
-
children: /* @__PURE__ */ x(
|
|
12218
|
-
className: v("aurora-base",
|
|
12219
|
-
children: [/* @__PURE__ */ x(
|
|
12220
|
-
className:
|
|
12221
|
-
children: [/* @__PURE__ */ b(
|
|
12216
|
+
className: U.positioner,
|
|
12217
|
+
children: /* @__PURE__ */ x(N.Popup, {
|
|
12218
|
+
className: v("aurora-base", U.popover, W.content),
|
|
12219
|
+
children: [/* @__PURE__ */ x(P.Root, {
|
|
12220
|
+
className: W.scrollArea,
|
|
12221
|
+
children: [/* @__PURE__ */ b(P.Viewport, {
|
|
12222
12222
|
ref: te,
|
|
12223
|
-
className:
|
|
12223
|
+
className: W.viewport,
|
|
12224
12224
|
tabIndex: -1,
|
|
12225
|
-
children: /* @__PURE__ */ x(
|
|
12226
|
-
/* @__PURE__ */ b(
|
|
12227
|
-
className:
|
|
12225
|
+
children: /* @__PURE__ */ x(P.Content, { children: [
|
|
12226
|
+
/* @__PURE__ */ b(N.List, {
|
|
12227
|
+
className: W.listbox,
|
|
12228
12228
|
"aria-busy": f || y,
|
|
12229
|
-
children: (e) => /* @__PURE__ */ x(
|
|
12229
|
+
children: (e) => /* @__PURE__ */ x(N.Item, {
|
|
12230
12230
|
value: e.value,
|
|
12231
12231
|
disabled: f || e.disabled,
|
|
12232
|
-
className:
|
|
12232
|
+
className: W.option,
|
|
12233
12233
|
children: [/* @__PURE__ */ b("span", {
|
|
12234
|
-
className:
|
|
12234
|
+
className: W["option-label"],
|
|
12235
12235
|
children: e.label
|
|
12236
|
-
}), /* @__PURE__ */ b(
|
|
12237
|
-
className:
|
|
12238
|
-
children: /* @__PURE__ */ b(
|
|
12236
|
+
}), /* @__PURE__ */ b(N.ItemIndicator, {
|
|
12237
|
+
className: W["option-indicator"],
|
|
12238
|
+
children: /* @__PURE__ */ b(z, { type: "check" })
|
|
12239
12239
|
})]
|
|
12240
12240
|
}, e.value)
|
|
12241
12241
|
}),
|
|
12242
|
-
/* @__PURE__ */ b(
|
|
12243
|
-
className:
|
|
12244
|
-
children: /* @__PURE__ */ b(
|
|
12242
|
+
/* @__PURE__ */ b(N.Empty, { children: f ? /* @__PURE__ */ b("div", {
|
|
12243
|
+
className: W.loading,
|
|
12244
|
+
children: /* @__PURE__ */ b(R, {})
|
|
12245
12245
|
}) : y ? null : /* @__PURE__ */ b("div", {
|
|
12246
|
-
className:
|
|
12246
|
+
className: W.empty,
|
|
12247
12247
|
children: l
|
|
12248
12248
|
}) }),
|
|
12249
12249
|
(p || y) && /* @__PURE__ */ b("div", {
|
|
12250
|
-
ref:
|
|
12251
|
-
className:
|
|
12250
|
+
ref: re,
|
|
12251
|
+
className: W.loadMore,
|
|
12252
12252
|
children: y && /* @__PURE__ */ b("div", {
|
|
12253
|
-
className:
|
|
12253
|
+
className: W.loading,
|
|
12254
12254
|
role: "status",
|
|
12255
12255
|
"aria-label": "Loading more options",
|
|
12256
|
-
children: /* @__PURE__ */ b(
|
|
12256
|
+
children: /* @__PURE__ */ b(R, {})
|
|
12257
12257
|
})
|
|
12258
12258
|
})
|
|
12259
12259
|
] })
|
|
12260
|
-
}), /* @__PURE__ */ b(
|
|
12260
|
+
}), /* @__PURE__ */ b(P.Scrollbar, {
|
|
12261
12261
|
orientation: "vertical",
|
|
12262
|
-
className: v("aurora-scrollbar",
|
|
12262
|
+
className: v("aurora-scrollbar", W.scrollbar),
|
|
12263
12263
|
style: { position: "relative" },
|
|
12264
|
-
children: /* @__PURE__ */ b(
|
|
12264
|
+
children: /* @__PURE__ */ b(P.Thumb, { className: "aurora-scrollbar-thumb" })
|
|
12265
12265
|
})]
|
|
12266
|
-
}),
|
|
12267
|
-
className:
|
|
12268
|
-
children:
|
|
12266
|
+
}), ae != null && ae !== !1 && /* @__PURE__ */ b("div", {
|
|
12267
|
+
className: W.footer,
|
|
12268
|
+
children: ae
|
|
12269
12269
|
})]
|
|
12270
12270
|
})
|
|
12271
12271
|
}) })]
|
|
12272
12272
|
});
|
|
12273
12273
|
}
|
|
12274
|
-
var
|
|
12274
|
+
var G = {
|
|
12275
12275
|
root: "_root_1pm47_1",
|
|
12276
12276
|
field: "_field_1pm47_5",
|
|
12277
12277
|
trigger: "_trigger_1pm47_12",
|
|
@@ -12288,11 +12288,11 @@ var K = {
|
|
|
12288
12288
|
//#endregion
|
|
12289
12289
|
//#region src/components/MultiSelect/MultipleSelect.tsx
|
|
12290
12290
|
function ih({ id: e, options: n, filteredOptions: r, value: i, onChange: a, inputValue: o, onInputChange: s, open: c, onOpenChange: l, placeholder: u = "Select options", searchPlaceholder: d = "Search options", emptyState: f = "No results found", loading: p = !1, disabled: g = !1 }) {
|
|
12291
|
-
let _ = t(), y = h(null), S = m(() =>
|
|
12291
|
+
let _ = t(), y = h(null), S = m(() => N.createItems(n, {
|
|
12292
12292
|
getValue: (e) => e.value,
|
|
12293
12293
|
getLabel: (e) => e.text
|
|
12294
12294
|
}), [n]), C = m(() => new Map(n.map((e) => [e.value, e])), [n]);
|
|
12295
|
-
return /* @__PURE__ */ x(
|
|
12295
|
+
return /* @__PURE__ */ x(N.Root, {
|
|
12296
12296
|
multiple: !0,
|
|
12297
12297
|
items: S,
|
|
12298
12298
|
filteredItems: r,
|
|
@@ -12308,33 +12308,33 @@ function ih({ id: e, options: n, filteredOptions: r, value: i, onChange: a, inpu
|
|
|
12308
12308
|
disabled: g,
|
|
12309
12309
|
autoHighlight: !0,
|
|
12310
12310
|
children: [/* @__PURE__ */ b("div", {
|
|
12311
|
-
className: v("aurora-base",
|
|
12311
|
+
className: v("aurora-base", H.root, G.root),
|
|
12312
12312
|
children: /* @__PURE__ */ x("div", {
|
|
12313
|
-
className: v(
|
|
12314
|
-
children: [/* @__PURE__ */ b(
|
|
12313
|
+
className: v(H.field, G.field, { [H.disabled]: g }),
|
|
12314
|
+
children: [/* @__PURE__ */ b(N.Trigger, {
|
|
12315
12315
|
ref: y,
|
|
12316
12316
|
id: e,
|
|
12317
|
-
className: v("aurora-base", "aurora-button",
|
|
12317
|
+
className: v("aurora-base", "aurora-button", H.control, G.trigger),
|
|
12318
12318
|
children: i.length === 0 && /* @__PURE__ */ b("span", {
|
|
12319
|
-
className:
|
|
12319
|
+
className: G.placeholder,
|
|
12320
12320
|
children: u
|
|
12321
12321
|
})
|
|
12322
|
-
}), /* @__PURE__ */ b(
|
|
12323
|
-
className:
|
|
12322
|
+
}), /* @__PURE__ */ b(N.Chips, {
|
|
12323
|
+
className: G.chips,
|
|
12324
12324
|
children: i.map((e) => {
|
|
12325
12325
|
let t = C.get(e)?.text ?? e;
|
|
12326
|
-
return /* @__PURE__ */ x(
|
|
12327
|
-
className:
|
|
12326
|
+
return /* @__PURE__ */ x(N.Chip, {
|
|
12327
|
+
className: G.chip,
|
|
12328
12328
|
children: [/* @__PURE__ */ b("span", {
|
|
12329
|
-
className:
|
|
12329
|
+
className: G["chip-text"],
|
|
12330
12330
|
children: t
|
|
12331
|
-
}), /* @__PURE__ */ b(
|
|
12332
|
-
className: v("aurora-base", "aurora-button",
|
|
12331
|
+
}), /* @__PURE__ */ b(N.ChipRemove, {
|
|
12332
|
+
className: v("aurora-base", "aurora-button", G["chip-remove"]),
|
|
12333
12333
|
tabIndex: 0,
|
|
12334
12334
|
onClick: () => {
|
|
12335
12335
|
c || y.current?.focus();
|
|
12336
12336
|
},
|
|
12337
|
-
children: /* @__PURE__ */ b(
|
|
12337
|
+
children: /* @__PURE__ */ b(z, {
|
|
12338
12338
|
type: "x",
|
|
12339
12339
|
size: "small"
|
|
12340
12340
|
})
|
|
@@ -12343,7 +12343,7 @@ function ih({ id: e, options: n, filteredOptions: r, value: i, onChange: a, inpu
|
|
|
12343
12343
|
})
|
|
12344
12344
|
})]
|
|
12345
12345
|
})
|
|
12346
|
-
}), /* @__PURE__ */ b(
|
|
12346
|
+
}), /* @__PURE__ */ b(N.Portal, { children: /* @__PURE__ */ b(N.Positioner, {
|
|
12347
12347
|
dir: _,
|
|
12348
12348
|
align: "start",
|
|
12349
12349
|
sideOffset: 4,
|
|
@@ -12353,43 +12353,43 @@ function ih({ id: e, options: n, filteredOptions: r, value: i, onChange: a, inpu
|
|
|
12353
12353
|
align: "shift",
|
|
12354
12354
|
fallbackAxisSide: "none"
|
|
12355
12355
|
},
|
|
12356
|
-
className:
|
|
12357
|
-
children: /* @__PURE__ */ x(
|
|
12356
|
+
className: U.positioner,
|
|
12357
|
+
children: /* @__PURE__ */ x(N.Popup, {
|
|
12358
12358
|
initialFocus: !1,
|
|
12359
12359
|
finalFocus: !1,
|
|
12360
|
-
className: v("aurora-base",
|
|
12360
|
+
className: v("aurora-base", U.popover, G.popup),
|
|
12361
12361
|
children: [/* @__PURE__ */ b("div", {
|
|
12362
|
-
className: v(
|
|
12363
|
-
children: /* @__PURE__ */ b(
|
|
12362
|
+
className: v(U.header, G.search),
|
|
12363
|
+
children: /* @__PURE__ */ b(N.Input, {
|
|
12364
12364
|
placeholder: d,
|
|
12365
|
-
render: /* @__PURE__ */ b(nh, { prefix: /* @__PURE__ */ b(
|
|
12365
|
+
render: /* @__PURE__ */ b(nh, { prefix: /* @__PURE__ */ b(z, { type: "search" }) })
|
|
12366
12366
|
})
|
|
12367
12367
|
}), /* @__PURE__ */ x("div", {
|
|
12368
|
-
className: v(
|
|
12368
|
+
className: v(U.scroll, U.spacious),
|
|
12369
12369
|
tabIndex: -1,
|
|
12370
|
-
children: [/* @__PURE__ */ b(
|
|
12371
|
-
className:
|
|
12372
|
-
children: (e) => /* @__PURE__ */ x(
|
|
12370
|
+
children: [/* @__PURE__ */ b(N.List, {
|
|
12371
|
+
className: W.listbox,
|
|
12372
|
+
children: (e) => /* @__PURE__ */ x(N.Item, {
|
|
12373
12373
|
value: e.value,
|
|
12374
12374
|
disabled: p || e.disabled,
|
|
12375
|
-
className: v(
|
|
12375
|
+
className: v(W.option, G.option),
|
|
12376
12376
|
children: [/* @__PURE__ */ b("span", {
|
|
12377
|
-
className:
|
|
12377
|
+
className: G.checkbox,
|
|
12378
12378
|
inert: !0,
|
|
12379
12379
|
children: /* @__PURE__ */ b($m, {
|
|
12380
12380
|
checked: i.includes(e.value),
|
|
12381
12381
|
disabled: p || e.disabled
|
|
12382
12382
|
})
|
|
12383
12383
|
}), /* @__PURE__ */ b("span", {
|
|
12384
|
-
className:
|
|
12384
|
+
className: W["option-label"],
|
|
12385
12385
|
children: e.label
|
|
12386
12386
|
})]
|
|
12387
12387
|
}, e.value)
|
|
12388
|
-
}), /* @__PURE__ */ b(
|
|
12389
|
-
className:
|
|
12390
|
-
children: /* @__PURE__ */ b(
|
|
12388
|
+
}), /* @__PURE__ */ b(N.Empty, { children: p ? /* @__PURE__ */ b("div", {
|
|
12389
|
+
className: W.loading,
|
|
12390
|
+
children: /* @__PURE__ */ b(R, {})
|
|
12391
12391
|
}) : /* @__PURE__ */ b("div", {
|
|
12392
|
-
className:
|
|
12392
|
+
className: W.empty,
|
|
12393
12393
|
children: f
|
|
12394
12394
|
}) })]
|
|
12395
12395
|
})]
|
|
@@ -12452,7 +12452,7 @@ function oh({ children: e, label: t, action: n, showActionOnFocus: r = !1, requi
|
|
|
12452
12452
|
}
|
|
12453
12453
|
//#endregion
|
|
12454
12454
|
//#region src/utilities/overlay-context.ts
|
|
12455
|
-
var sh = a(!1),
|
|
12455
|
+
var sh = a(!1), K = {
|
|
12456
12456
|
backdrop: "_backdrop_nmb4o_2",
|
|
12457
12457
|
viewport: "_viewport_nmb4o_20",
|
|
12458
12458
|
modal: "_modal_nmb4o_32",
|
|
@@ -12483,51 +12483,51 @@ var sh = a(!1), q = {
|
|
|
12483
12483
|
//#region src/components/Modal/Modal.tsx
|
|
12484
12484
|
function ch({ children: e, heading: n, padding: r = "base", size: i = "base", primaryAction: a, secondaryActions: o, ...s }) {
|
|
12485
12485
|
let c = t(), u = l(sh), d = !!n, f = a != null || o != null, p = /* @__PURE__ */ b("div", {
|
|
12486
|
-
className:
|
|
12487
|
-
children: /* @__PURE__ */ b(
|
|
12486
|
+
className: K.close,
|
|
12487
|
+
children: /* @__PURE__ */ b(F.Close, { render: /* @__PURE__ */ b(B, {
|
|
12488
12488
|
icon: "x",
|
|
12489
12489
|
variant: "secondary"
|
|
12490
12490
|
}) })
|
|
12491
12491
|
});
|
|
12492
12492
|
return /* @__PURE__ */ b(sh.Provider, {
|
|
12493
12493
|
value: !1,
|
|
12494
|
-
children: /* @__PURE__ */ x(
|
|
12494
|
+
children: /* @__PURE__ */ x(F.Portal, { children: [/* @__PURE__ */ b(F.Backdrop, {
|
|
12495
12495
|
forceRender: u,
|
|
12496
|
-
className:
|
|
12497
|
-
}), /* @__PURE__ */ b(
|
|
12496
|
+
className: K.backdrop
|
|
12497
|
+
}), /* @__PURE__ */ b(F.Viewport, {
|
|
12498
12498
|
dir: c,
|
|
12499
|
-
className:
|
|
12500
|
-
children: /* @__PURE__ */ x(
|
|
12499
|
+
className: K.viewport,
|
|
12500
|
+
children: /* @__PURE__ */ x(F.Popup, {
|
|
12501
12501
|
...s,
|
|
12502
|
-
className: v("aurora-base",
|
|
12503
|
-
[
|
|
12504
|
-
[
|
|
12502
|
+
className: v("aurora-base", K.modal, K[`size-${i}`], {
|
|
12503
|
+
[K["header-hidden"]]: !d,
|
|
12504
|
+
[K["footer-hidden"]]: !f
|
|
12505
12505
|
}),
|
|
12506
12506
|
children: [!d && p, /* @__PURE__ */ x("div", {
|
|
12507
|
-
className:
|
|
12507
|
+
className: K.layout,
|
|
12508
12508
|
children: [
|
|
12509
12509
|
d && /* @__PURE__ */ x("div", {
|
|
12510
|
-
className:
|
|
12511
|
-
children: [/* @__PURE__ */ b(
|
|
12512
|
-
className:
|
|
12510
|
+
className: K.header,
|
|
12511
|
+
children: [/* @__PURE__ */ b(F.Title, {
|
|
12512
|
+
className: K.heading,
|
|
12513
12513
|
children: n
|
|
12514
12514
|
}), p]
|
|
12515
12515
|
}),
|
|
12516
12516
|
/* @__PURE__ */ x("div", {
|
|
12517
|
-
className:
|
|
12517
|
+
className: K.scroll,
|
|
12518
12518
|
children: [
|
|
12519
|
-
/* @__PURE__ */ b("div", { className: v(
|
|
12519
|
+
/* @__PURE__ */ b("div", { className: v(K["scroll-fade"], K["scroll-fade-start"]) }),
|
|
12520
12520
|
/* @__PURE__ */ b("div", {
|
|
12521
|
-
className: v(
|
|
12521
|
+
className: v(K.content, K[`padding-${r}`]),
|
|
12522
12522
|
children: e
|
|
12523
12523
|
}),
|
|
12524
|
-
/* @__PURE__ */ b("div", { className: v(
|
|
12524
|
+
/* @__PURE__ */ b("div", { className: v(K["scroll-fade"], K["scroll-fade-end"]) })
|
|
12525
12525
|
]
|
|
12526
12526
|
}),
|
|
12527
12527
|
f && /* @__PURE__ */ b("div", {
|
|
12528
|
-
className:
|
|
12528
|
+
className: K.footer,
|
|
12529
12529
|
children: /* @__PURE__ */ x("div", {
|
|
12530
|
-
className:
|
|
12530
|
+
className: K["footer-actions"],
|
|
12531
12531
|
children: [o, a]
|
|
12532
12532
|
})
|
|
12533
12533
|
})
|
|
@@ -12539,11 +12539,11 @@ function ch({ children: e, heading: n, padding: r = "base", size: i = "base", pr
|
|
|
12539
12539
|
}
|
|
12540
12540
|
//#endregion
|
|
12541
12541
|
//#region src/components/Modal/index.ts
|
|
12542
|
-
var lh =
|
|
12542
|
+
var lh = F.Root, uh = F.Trigger, dh = F.Close;
|
|
12543
12543
|
//#endregion
|
|
12544
12544
|
//#region src/components/Menu/components/Item/Item.tsx
|
|
12545
12545
|
function fh({ id: e, content: t, icon: n, disabled: r = !1, loading: i = !1, destructive: a = !1, onAction: o, onMouseEnter: s, onTouchStart: c, selectable: l = !1, value: u, closeOnSelect: d = !0 }) {
|
|
12546
|
-
let f = l ?
|
|
12546
|
+
let f = l ? I.RadioItem : I.Item;
|
|
12547
12547
|
return /* @__PURE__ */ b("li", {
|
|
12548
12548
|
role: "none",
|
|
12549
12549
|
children: /* @__PURE__ */ b(f, {
|
|
@@ -12576,7 +12576,7 @@ var ph = {
|
|
|
12576
12576
|
//#endregion
|
|
12577
12577
|
//#region src/components/Menu/components/Section/Section.tsx
|
|
12578
12578
|
function mh({ children: e, heading: t, selectable: n = !1, value: r, onValueChange: i }) {
|
|
12579
|
-
let a = n ?
|
|
12579
|
+
let a = n ? I.RadioGroup : I.Group, o = n ? {
|
|
12580
12580
|
value: r ?? null,
|
|
12581
12581
|
onValueChange: i
|
|
12582
12582
|
} : {};
|
|
@@ -12585,7 +12585,7 @@ function mh({ children: e, heading: t, selectable: n = !1, value: r, onValueChan
|
|
|
12585
12585
|
className: ph.section,
|
|
12586
12586
|
children: /* @__PURE__ */ x(a, {
|
|
12587
12587
|
...o,
|
|
12588
|
-
children: [t && /* @__PURE__ */ b(
|
|
12588
|
+
children: [t && /* @__PURE__ */ b(I.GroupLabel, {
|
|
12589
12589
|
render: /* @__PURE__ */ b("h3", {}),
|
|
12590
12590
|
className: ph["section-heading"],
|
|
12591
12591
|
children: t
|
|
@@ -12612,18 +12612,18 @@ function gh({ label: e = "Actions", icon: n = "chevron-down", variant: r = "auto
|
|
|
12612
12612
|
...n,
|
|
12613
12613
|
children: f(t, n.selectable)
|
|
12614
12614
|
}, e)) : f(i, c);
|
|
12615
|
-
return /* @__PURE__ */ x(
|
|
12615
|
+
return /* @__PURE__ */ x(I.Root, {
|
|
12616
12616
|
disabled: o,
|
|
12617
12617
|
highlightItemOnHover: !1,
|
|
12618
|
-
children: [/* @__PURE__ */ b(
|
|
12618
|
+
children: [/* @__PURE__ */ b(I.Trigger, {
|
|
12619
12619
|
disabled: o,
|
|
12620
|
-
render: /* @__PURE__ */ b(
|
|
12620
|
+
render: /* @__PURE__ */ b(B, {
|
|
12621
12621
|
variant: r,
|
|
12622
12622
|
icon: n,
|
|
12623
12623
|
iconPosition: "end"
|
|
12624
12624
|
}),
|
|
12625
12625
|
children: e
|
|
12626
|
-
}), /* @__PURE__ */ b(
|
|
12626
|
+
}), /* @__PURE__ */ b(I.Portal, { children: /* @__PURE__ */ b(I.Positioner, {
|
|
12627
12627
|
dir: d,
|
|
12628
12628
|
side: "bottom",
|
|
12629
12629
|
align: "start",
|
|
@@ -12635,13 +12635,13 @@ function gh({ label: e = "Actions", icon: n = "chevron-down", variant: r = "auto
|
|
|
12635
12635
|
align: "shift",
|
|
12636
12636
|
fallbackAxisSide: "none"
|
|
12637
12637
|
},
|
|
12638
|
-
className:
|
|
12639
|
-
children: /* @__PURE__ */ b(
|
|
12638
|
+
className: U.positioner,
|
|
12639
|
+
children: /* @__PURE__ */ b(I.Popup, {
|
|
12640
12640
|
finalFocus: !0,
|
|
12641
|
-
className: v("aurora-base",
|
|
12641
|
+
className: v("aurora-base", U.popover, hh.popover),
|
|
12642
12642
|
children: /* @__PURE__ */ b("div", {
|
|
12643
|
-
className:
|
|
12644
|
-
children: c ? /* @__PURE__ */ b(
|
|
12643
|
+
className: U.scroll,
|
|
12644
|
+
children: c ? /* @__PURE__ */ b(I.RadioGroup, {
|
|
12645
12645
|
value: l ?? null,
|
|
12646
12646
|
onValueChange: u,
|
|
12647
12647
|
render: /* @__PURE__ */ b("ul", { className: hh.menu }),
|
|
@@ -12690,7 +12690,7 @@ function vh({ id: e, children: t, color: n = "base", tone: r = "auto", fontSize:
|
|
|
12690
12690
|
children: t
|
|
12691
12691
|
});
|
|
12692
12692
|
}
|
|
12693
|
-
var
|
|
12693
|
+
var q = {
|
|
12694
12694
|
section: "_section_11hjp_1",
|
|
12695
12695
|
layout: "_layout_11hjp_9",
|
|
12696
12696
|
"has-actions": "_has-actions_11hjp_15",
|
|
@@ -12724,40 +12724,40 @@ function bh({ accessibilityLabel: e, heading: t, subheading: n, padding: r = "ba
|
|
|
12724
12724
|
...p,
|
|
12725
12725
|
"aria-label": e ?? p["aria-label"],
|
|
12726
12726
|
"data-aurora-section": "",
|
|
12727
|
-
className: v("aurora-base",
|
|
12727
|
+
className: v("aurora-base", q.section, h && q["heading-outside"], t && q["has-heading"], f),
|
|
12728
12728
|
children: /* @__PURE__ */ x("div", {
|
|
12729
|
-
className: v(
|
|
12729
|
+
className: v(q.layout, C && q["has-actions"], S && q["has-header-end"]),
|
|
12730
12730
|
children: [
|
|
12731
12731
|
(y || S) && /* @__PURE__ */ x("div", {
|
|
12732
|
-
className:
|
|
12732
|
+
className: q["header-wrapper"],
|
|
12733
12733
|
children: [y && /* @__PURE__ */ x("div", {
|
|
12734
|
-
className:
|
|
12734
|
+
className: q["header-inline-start"],
|
|
12735
12735
|
children: [(t || s) && /* @__PURE__ */ x("div", {
|
|
12736
|
-
className:
|
|
12736
|
+
className: q["section-heading"],
|
|
12737
12737
|
children: [t && /* @__PURE__ */ x("div", {
|
|
12738
|
-
className:
|
|
12738
|
+
className: q["section-heading-group"],
|
|
12739
12739
|
children: [o && /* @__PURE__ */ b("div", {
|
|
12740
|
-
className:
|
|
12740
|
+
className: q["section-graphic"],
|
|
12741
12741
|
children: o
|
|
12742
12742
|
}), /* @__PURE__ */ b(w, {
|
|
12743
|
-
className:
|
|
12743
|
+
className: q.heading,
|
|
12744
12744
|
children: t
|
|
12745
12745
|
})]
|
|
12746
12746
|
}), s && /* @__PURE__ */ b("div", {
|
|
12747
|
-
className:
|
|
12747
|
+
className: q["section-accessory"],
|
|
12748
12748
|
children: s
|
|
12749
12749
|
})]
|
|
12750
12750
|
}), n && /* @__PURE__ */ b("div", {
|
|
12751
|
-
className:
|
|
12751
|
+
className: q["section-subheading"],
|
|
12752
12752
|
children: /* @__PURE__ */ b(vh, {
|
|
12753
12753
|
color: "subdued",
|
|
12754
12754
|
children: n
|
|
12755
12755
|
})
|
|
12756
12756
|
})]
|
|
12757
12757
|
}), S && /* @__PURE__ */ x("div", {
|
|
12758
|
-
className:
|
|
12758
|
+
className: q["header-inline-end"],
|
|
12759
12759
|
children: [c && /* @__PURE__ */ b("div", {
|
|
12760
|
-
className:
|
|
12760
|
+
className: q.supplemental,
|
|
12761
12761
|
children: c
|
|
12762
12762
|
}), _.length > 0 && /* @__PURE__ */ b(gh, {
|
|
12763
12763
|
label: null,
|
|
@@ -12768,16 +12768,16 @@ function bh({ accessibilityLabel: e, heading: t, subheading: n, padding: r = "ba
|
|
|
12768
12768
|
})]
|
|
12769
12769
|
}),
|
|
12770
12770
|
C && /* @__PURE__ */ x("div", {
|
|
12771
|
-
className: v(
|
|
12771
|
+
className: v(q.actions, i && q["has-primary"]),
|
|
12772
12772
|
children: [lm(g), i]
|
|
12773
12773
|
}),
|
|
12774
12774
|
/* @__PURE__ */ x("div", {
|
|
12775
|
-
className: v(
|
|
12775
|
+
className: v(q.content, h && q.card),
|
|
12776
12776
|
children: [/* @__PURE__ */ b("div", {
|
|
12777
|
-
className: v(
|
|
12777
|
+
className: v(q.body, q[`padding-${r}`]),
|
|
12778
12778
|
children: d
|
|
12779
12779
|
}), u && /* @__PURE__ */ b("div", {
|
|
12780
|
-
className:
|
|
12780
|
+
className: q.footer,
|
|
12781
12781
|
children: u
|
|
12782
12782
|
})]
|
|
12783
12783
|
})
|
|
@@ -12797,12 +12797,12 @@ function Sh({ icon: e, heading: t, actions: n = [], moreActions: r, border: i, o
|
|
|
12797
12797
|
children: [/* @__PURE__ */ x("div", {
|
|
12798
12798
|
className: "flex items-center gap-(--p-space-200)",
|
|
12799
12799
|
children: [
|
|
12800
|
-
a && /* @__PURE__ */ b(
|
|
12800
|
+
a && /* @__PURE__ */ b(B, {
|
|
12801
12801
|
icon: "chevron-left",
|
|
12802
12802
|
variant: "secondary",
|
|
12803
12803
|
onClick: a
|
|
12804
12804
|
}),
|
|
12805
|
-
e && /* @__PURE__ */ b(
|
|
12805
|
+
e && /* @__PURE__ */ b(z, { type: e }),
|
|
12806
12806
|
/* @__PURE__ */ b("span", {
|
|
12807
12807
|
className: "font-medium",
|
|
12808
12808
|
children: t
|
|
@@ -12819,30 +12819,29 @@ function Sh({ icon: e, heading: t, actions: n = [], moreActions: r, border: i, o
|
|
|
12819
12819
|
})]
|
|
12820
12820
|
});
|
|
12821
12821
|
}
|
|
12822
|
-
var Ch = { root: "_root_1nhq1_1" };
|
|
12823
12822
|
//#endregion
|
|
12824
12823
|
//#region src/components/Page/components/Page/Page.tsx
|
|
12825
|
-
function
|
|
12824
|
+
function Ch({ fullwidth: e, children: t, ...n }) {
|
|
12826
12825
|
let r = h(null), i = h(null), [a, o] = g(!1);
|
|
12827
12826
|
p(() => {
|
|
12828
12827
|
let e = r.current?.parentElement ?? null;
|
|
12829
12828
|
for (; e && !/auto|scroll|overlay|hidden/.test(getComputedStyle(e).overflowY);) e = e.parentElement;
|
|
12830
12829
|
i.current = e ?? document.documentElement;
|
|
12831
12830
|
}, []);
|
|
12832
|
-
let { scrollY: s } =
|
|
12833
|
-
return
|
|
12831
|
+
let { scrollY: s } = le({ container: i });
|
|
12832
|
+
return ce(s, "change", (e) => o(e > 0)), /* @__PURE__ */ x("div", {
|
|
12834
12833
|
ref: r,
|
|
12835
|
-
className:
|
|
12834
|
+
className: "flex min-h-full min-w-0 flex-col bg-(--p-color-bg-surface)",
|
|
12836
12835
|
children: [/* @__PURE__ */ b(Sh, {
|
|
12837
12836
|
...n,
|
|
12838
12837
|
border: a
|
|
12839
12838
|
}), /* @__PURE__ */ b("div", {
|
|
12840
|
-
className: v("w-full", !e && "max-w-6xl mx-auto"),
|
|
12839
|
+
className: v("flex w-full min-w-0 flex-1 flex-col", !e && "max-w-6xl mx-auto"),
|
|
12841
12840
|
children: t
|
|
12842
12841
|
})]
|
|
12843
12842
|
});
|
|
12844
12843
|
}
|
|
12845
|
-
var
|
|
12844
|
+
var wh = {
|
|
12846
12845
|
viewport: "_viewport_18aai_1",
|
|
12847
12846
|
base: "_base_18aai_7",
|
|
12848
12847
|
surface: "_surface_18aai_24",
|
|
@@ -12852,14 +12851,14 @@ var Th = {
|
|
|
12852
12851
|
};
|
|
12853
12852
|
//#endregion
|
|
12854
12853
|
//#region src/components/Page/components/Surface/Surface.tsx
|
|
12855
|
-
function
|
|
12856
|
-
let a = h(null), o =
|
|
12854
|
+
function Th({ pageId: e, depth: t, offset: n, index: r, children: i }) {
|
|
12855
|
+
let a = h(null), o = M(), s = se(), c = t === 0 && s;
|
|
12857
12856
|
return u(() => {
|
|
12858
12857
|
c && a.current?.focus({ preventScroll: !0 });
|
|
12859
|
-
}, [c]), /* @__PURE__ */ b(
|
|
12858
|
+
}, [c]), /* @__PURE__ */ b(j.div, {
|
|
12860
12859
|
role: "dialog",
|
|
12861
12860
|
tabIndex: -1,
|
|
12862
|
-
className:
|
|
12861
|
+
className: wh.surface,
|
|
12863
12862
|
"data-page-stack-page": e,
|
|
12864
12863
|
"data-page-stack-top": c ? "" : void 0,
|
|
12865
12864
|
"data-covered": !c || void 0,
|
|
@@ -12884,7 +12883,7 @@ function Eh({ pageId: e, depth: t, offset: n, index: r, children: i }) {
|
|
|
12884
12883
|
},
|
|
12885
12884
|
children: /* @__PURE__ */ b("div", {
|
|
12886
12885
|
ref: a,
|
|
12887
|
-
className:
|
|
12886
|
+
className: wh.scrollable,
|
|
12888
12887
|
tabIndex: -1,
|
|
12889
12888
|
children: i
|
|
12890
12889
|
})
|
|
@@ -12892,7 +12891,7 @@ function Eh({ pageId: e, depth: t, offset: n, index: r, children: i }) {
|
|
|
12892
12891
|
}
|
|
12893
12892
|
//#endregion
|
|
12894
12893
|
//#region src/components/Page/utils.ts
|
|
12895
|
-
function
|
|
12894
|
+
function Eh(e) {
|
|
12896
12895
|
let t = e.getBoundingClientRect(), n = window.visualViewport, r = Math.max(t.top, n?.offsetTop ?? 0), i = Math.max(t.left, n?.offsetLeft ?? 0), a = Math.min(t.right, (n?.offsetLeft ?? 0) + (n?.width ?? window.innerWidth)), o = (n?.offsetTop ?? 0) + (n?.height ?? window.innerHeight);
|
|
12897
12896
|
for (let t = e.parentElement; t; t = t.parentElement) {
|
|
12898
12897
|
if (t === document.body || t === document.documentElement) continue;
|
|
@@ -12916,12 +12915,12 @@ function Dh(e) {
|
|
|
12916
12915
|
}
|
|
12917
12916
|
//#endregion
|
|
12918
12917
|
//#region src/components/Page/context.tsx
|
|
12919
|
-
var
|
|
12920
|
-
function
|
|
12921
|
-
return l(
|
|
12918
|
+
var Dh = a(null);
|
|
12919
|
+
function Oh() {
|
|
12920
|
+
return l(Dh);
|
|
12922
12921
|
}
|
|
12923
|
-
function
|
|
12924
|
-
let [t, n] = g([]), r = h(t), i = h(null), a = h(null), o =
|
|
12922
|
+
function kh({ children: e }) {
|
|
12923
|
+
let [t, n] = g([]), r = h(t), i = h(null), a = h(null), o = M(), s = t.length > 0, l = c((e, t) => {
|
|
12925
12924
|
r.current.some((t) => t.id === e) || (r.current = [...r.current, {
|
|
12926
12925
|
id: e,
|
|
12927
12926
|
onClose: t
|
|
@@ -12936,7 +12935,7 @@ function Ah({ children: e }) {
|
|
|
12936
12935
|
let e = a.current, t = i.current;
|
|
12937
12936
|
if (!s || !e || !t) return;
|
|
12938
12937
|
let n, r = () => {
|
|
12939
|
-
for (let [n, r] of Object.entries(
|
|
12938
|
+
for (let [n, r] of Object.entries(Eh(e))) t.style.setProperty(n, `${r}px`);
|
|
12940
12939
|
}, o = () => {
|
|
12941
12940
|
n === void 0 && (n = requestAnimationFrame(() => {
|
|
12942
12941
|
n = void 0, r();
|
|
@@ -12951,16 +12950,16 @@ function Ah({ children: e }) {
|
|
|
12951
12950
|
if (!s || !e) return;
|
|
12952
12951
|
let t = (t) => {
|
|
12953
12952
|
if (t.key !== "Escape" || t.defaultPrevented || t.repeat || t.isComposing) return;
|
|
12954
|
-
let n = e.querySelector("[data-page-stack-top]"), r = t.target;
|
|
12955
|
-
n && r instanceof Element && r.closest("[role=\"dialog\"], [role=\"alertdialog\"], [role=\"menu\"], [role=\"listbox\"]") === n && !r.closest("[data-popup-open]") && (t.preventDefault(), t.stopPropagation(), d());
|
|
12953
|
+
let n = e.querySelector("[data-page-stack-top]"), r = t.target, i = e.ownerDocument, a = (r === i.body || r === i.documentElement) && i.querySelectorAll("[data-page-stack-top]").length === 1;
|
|
12954
|
+
n && r instanceof Element && (a || r.closest("[role=\"dialog\"], [role=\"alertdialog\"], [role=\"menu\"], [role=\"listbox\"]") === n) && !r.closest("[data-popup-open]") && (t.preventDefault(), t.stopPropagation(), d());
|
|
12956
12955
|
}, n = (e) => {
|
|
12957
12956
|
let t = e.target;
|
|
12958
12957
|
t instanceof Element && !t.closest("[data-page-stack-top]") && e.preventDefault();
|
|
12959
12958
|
};
|
|
12960
|
-
return window.addEventListener("keydown", t
|
|
12961
|
-
window.removeEventListener("keydown", t
|
|
12959
|
+
return window.addEventListener("keydown", t), e.addEventListener("wheel", n, { passive: !1 }), e.addEventListener("touchmove", n, { passive: !1 }), () => {
|
|
12960
|
+
window.removeEventListener("keydown", t), e.removeEventListener("wheel", n), e.removeEventListener("touchmove", n);
|
|
12962
12961
|
};
|
|
12963
|
-
}, [s, d]), /* @__PURE__ */ b(
|
|
12962
|
+
}, [s, d]), /* @__PURE__ */ b(Dh.Provider, {
|
|
12964
12963
|
value: {
|
|
12965
12964
|
pages: t,
|
|
12966
12965
|
portalRef: i,
|
|
@@ -12969,10 +12968,10 @@ function Ah({ children: e }) {
|
|
|
12969
12968
|
},
|
|
12970
12969
|
children: /* @__PURE__ */ x("div", {
|
|
12971
12970
|
ref: a,
|
|
12972
|
-
className:
|
|
12971
|
+
className: wh.viewport,
|
|
12973
12972
|
"data-page-viewport": "",
|
|
12974
|
-
children: [/* @__PURE__ */ b(
|
|
12975
|
-
className:
|
|
12973
|
+
children: [/* @__PURE__ */ b(j.div, {
|
|
12974
|
+
className: wh.base,
|
|
12976
12975
|
"data-covered": s || void 0,
|
|
12977
12976
|
"data-hidden": t.length > 2 || void 0,
|
|
12978
12977
|
inert: s,
|
|
@@ -12986,12 +12985,12 @@ function Ah({ children: e }) {
|
|
|
12986
12985
|
children: e
|
|
12987
12986
|
}), /* @__PURE__ */ b("div", {
|
|
12988
12987
|
ref: i,
|
|
12989
|
-
className: `aurora-base ${
|
|
12988
|
+
className: `aurora-base ${wh.layer}`,
|
|
12990
12989
|
style: { pointerEvents: s ? "auto" : "none" },
|
|
12991
12990
|
"aria-hidden": !s || void 0,
|
|
12992
12991
|
"data-page-stack-viewport": "",
|
|
12993
|
-
children: /* @__PURE__ */ b(
|
|
12994
|
-
className:
|
|
12992
|
+
children: /* @__PURE__ */ b(j.div, {
|
|
12993
|
+
className: wh.backdrop,
|
|
12995
12994
|
"data-page-stack-backdrop": "",
|
|
12996
12995
|
initial: !1,
|
|
12997
12996
|
animate: { opacity: +!!s },
|
|
@@ -13001,8 +13000,8 @@ function Ah({ children: e }) {
|
|
|
13001
13000
|
})
|
|
13002
13001
|
});
|
|
13003
13002
|
}
|
|
13004
|
-
function
|
|
13005
|
-
let t =
|
|
13003
|
+
function Ah({ onPageClose: e } = {}) {
|
|
13004
|
+
let t = Oh(), n = f(), r = h(e);
|
|
13006
13005
|
return p(() => {
|
|
13007
13006
|
r.current = e;
|
|
13008
13007
|
}), m(() => t ? {
|
|
@@ -13013,13 +13012,13 @@ function jh({ onPageClose: e } = {}) {
|
|
|
13013
13012
|
t.close(n);
|
|
13014
13013
|
},
|
|
13015
13014
|
Content({ children: e }) {
|
|
13016
|
-
let t =
|
|
13017
|
-
return /* @__PURE__ */ b(
|
|
13015
|
+
let t = Oh(), r = t?.portalRef.current, i = t?.pages.findIndex((e) => e.id === n) ?? -1, a = (t?.pages.length ?? 0) - i - 1;
|
|
13016
|
+
return /* @__PURE__ */ b(oe, {
|
|
13018
13017
|
propagate: !0,
|
|
13019
|
-
children: t && r && i >= 0 && /* @__PURE__ */ b(
|
|
13018
|
+
children: t && r && i >= 0 && /* @__PURE__ */ b(de.Root, {
|
|
13020
13019
|
container: r,
|
|
13021
13020
|
style: { borderRadius: "inherit" },
|
|
13022
|
-
children: /* @__PURE__ */ b(
|
|
13021
|
+
children: /* @__PURE__ */ b(Th, {
|
|
13023
13022
|
pageId: n,
|
|
13024
13023
|
depth: a,
|
|
13025
13024
|
offset: (Math.min(t.pages.length, 2) - Math.min(a, 2)) * 12,
|
|
@@ -13037,18 +13036,18 @@ function jh({ onPageClose: e } = {}) {
|
|
|
13037
13036
|
}
|
|
13038
13037
|
//#endregion
|
|
13039
13038
|
//#region src/components/Page/Page.tsx
|
|
13040
|
-
function
|
|
13041
|
-
return
|
|
13039
|
+
function jh(e) {
|
|
13040
|
+
return Oh() ? /* @__PURE__ */ b(Ch, { ...e }) : /* @__PURE__ */ b(kh, { children: /* @__PURE__ */ b(Ch, { ...e }) });
|
|
13042
13041
|
}
|
|
13043
13042
|
//#endregion
|
|
13044
13043
|
//#region src/components/Filters/components/Trigger/Trigger.tsx
|
|
13045
|
-
var
|
|
13046
|
-
function
|
|
13044
|
+
var Mh = "inline-flex min-w-0 items-center py-[var(--p-space-050)]", Nh = "group-data-disabled/filter-trigger:bg-(--p-color-bg-surface-disabled)";
|
|
13045
|
+
function Ph({ label: e, segments: t = [], open: n, disabled: r = !1, onClear: i, renderTrigger: a, ref: o, className: s, onKeyDown: c, ...l }) {
|
|
13047
13046
|
let u = h(null), d = t.filter((e) => e.values.length > 0), f = d.length > 0;
|
|
13048
13047
|
function p(e) {
|
|
13049
13048
|
e.preventDefault(), e.stopPropagation(), !r && (i?.(), u.current?.focus());
|
|
13050
13049
|
}
|
|
13051
|
-
return
|
|
13050
|
+
return fe({
|
|
13052
13051
|
defaultTagName: "button",
|
|
13053
13052
|
render: a,
|
|
13054
13053
|
ref: [u, o ?? null],
|
|
@@ -13061,16 +13060,16 @@ function Fh({ label: e, segments: t = [], open: n, disabled: r = !1, onClear: i,
|
|
|
13061
13060
|
"data-disabled": r || void 0,
|
|
13062
13061
|
className: v("aurora-base", "aurora-button", "group/filter-trigger inline-flex min-h-[var(--p-height-700)] min-w-0 max-w-full items-stretch gap-[var(--p-space-050)] rounded-full align-middle text-[length:var(--p-font-size-300)]", "focus-visible:focus-ring", "data-disabled:text-(--p-color-text-disabled) data-disabled:[--s-icon-color:currentColor]", s),
|
|
13063
13062
|
children: /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ x("span", {
|
|
13064
|
-
className: v(
|
|
13063
|
+
className: v(Mh, "rounded-full px-(--p-space-200)", "bg-(--p-color-bg-surface-secondary) group-[:not([data-disabled]):hover]/filter-trigger:bg-(--p-color-bg-surface-secondary-hover)", "group-data-selected/filter-trigger:rounded-e-(--p-border-radius-tag-seam)", Nh),
|
|
13065
13064
|
children: [/* @__PURE__ */ b("span", {
|
|
13066
13065
|
className: "truncate",
|
|
13067
13066
|
children: e
|
|
13068
|
-
}), !f && /* @__PURE__ */ b(
|
|
13067
|
+
}), !f && /* @__PURE__ */ b(z, {
|
|
13069
13068
|
type: "chevron-down",
|
|
13070
13069
|
size: "small"
|
|
13071
13070
|
})]
|
|
13072
13071
|
}), f && /* @__PURE__ */ x("span", {
|
|
13073
|
-
className: v(
|
|
13072
|
+
className: v(Mh, "flex-1 rounded-s-(--p-border-radius-tag-seam) rounded-e-full ps-(--p-space-200) pe-(--p-space-100)", "bg-(--p-color-bg-surface-info)", "group-[:not([data-disabled]):hover]/filter-trigger:bg-(--p-color-bg-surface-info-hover)", "group-[:not([data-disabled]):active]/filter-trigger:bg-(--p-color-bg-surface-info-active)", Nh),
|
|
13074
13073
|
children: [/* @__PURE__ */ b("span", {
|
|
13075
13074
|
className: "truncate text-(--p-color-text-highlight)",
|
|
13076
13075
|
children: d.map((e, t) => /* @__PURE__ */ x("span", {
|
|
@@ -13085,21 +13084,21 @@ function Fh({ label: e, segments: t = [], open: n, disabled: r = !1, onClear: i,
|
|
|
13085
13084
|
onPointerDown: (e) => e.stopPropagation(),
|
|
13086
13085
|
onMouseDown: (e) => e.stopPropagation(),
|
|
13087
13086
|
onClick: p,
|
|
13088
|
-
children: /* @__PURE__ */ b(
|
|
13087
|
+
children: /* @__PURE__ */ b(z, { type: "x" })
|
|
13089
13088
|
})]
|
|
13090
13089
|
})] })
|
|
13091
13090
|
}
|
|
13092
13091
|
});
|
|
13093
13092
|
}
|
|
13094
|
-
var
|
|
13093
|
+
var Fh = { pageContent: "_pageContent_w08ff_1" };
|
|
13095
13094
|
//#endregion
|
|
13096
13095
|
//#region src/components/Filters/components/Filter/Filter.tsx
|
|
13097
|
-
function
|
|
13096
|
+
function Ih({ open: e, onOpenChange: t, children: n, disabled: r = !1, ...i }) {
|
|
13098
13097
|
let a = h(null), o = bm();
|
|
13099
13098
|
function s(e) {
|
|
13100
13099
|
r && e || t?.(e);
|
|
13101
13100
|
}
|
|
13102
|
-
let c =
|
|
13101
|
+
let c = Ah({ onPageClose: () => {
|
|
13103
13102
|
o && e && s(!1);
|
|
13104
13103
|
} });
|
|
13105
13104
|
return p(() => {
|
|
@@ -13108,24 +13107,24 @@ function Lh({ open: e, onOpenChange: t, children: n, disabled: r = !1, ...i }) {
|
|
|
13108
13107
|
o,
|
|
13109
13108
|
e,
|
|
13110
13109
|
c
|
|
13111
|
-
]), o && c ? /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b(
|
|
13110
|
+
]), o && c ? /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b(Ph, {
|
|
13112
13111
|
...i,
|
|
13113
13112
|
ref: a,
|
|
13114
13113
|
open: e,
|
|
13115
13114
|
disabled: r,
|
|
13116
13115
|
onClick: () => s(!e)
|
|
13117
|
-
}), /* @__PURE__ */ b(c.Content, { children: /* @__PURE__ */ b(
|
|
13116
|
+
}), /* @__PURE__ */ b(c.Content, { children: /* @__PURE__ */ b(jh, {
|
|
13118
13117
|
heading: i.label,
|
|
13119
13118
|
fullwidth: !0,
|
|
13120
13119
|
onBack: c.close,
|
|
13121
13120
|
children: /* @__PURE__ */ b("div", {
|
|
13122
|
-
className:
|
|
13121
|
+
className: Fh.pageContent,
|
|
13123
13122
|
children: n
|
|
13124
13123
|
})
|
|
13125
13124
|
}) })] }) : /* @__PURE__ */ x(Wm, {
|
|
13126
13125
|
open: e,
|
|
13127
13126
|
onOpenChange: s,
|
|
13128
|
-
children: [/* @__PURE__ */ b(
|
|
13127
|
+
children: [/* @__PURE__ */ b(Ph, {
|
|
13129
13128
|
...i,
|
|
13130
13129
|
ref: a,
|
|
13131
13130
|
open: e,
|
|
@@ -13138,22 +13137,22 @@ function Lh({ open: e, onOpenChange: t, children: n, disabled: r = !1, ...i }) {
|
|
|
13138
13137
|
})]
|
|
13139
13138
|
});
|
|
13140
13139
|
}
|
|
13141
|
-
var
|
|
13140
|
+
var Lh = {
|
|
13142
13141
|
panel: "_panel_vnd2i_1",
|
|
13143
13142
|
"calendar-panel": "_calendar-panel_vnd2i_12",
|
|
13144
13143
|
"range-panel": "_range-panel_vnd2i_16"
|
|
13145
13144
|
};
|
|
13146
13145
|
//#endregion
|
|
13147
13146
|
//#region src/components/Filters/Date/components/Panel/Panel.tsx
|
|
13148
|
-
function
|
|
13149
|
-
let r = h(null), i =
|
|
13147
|
+
function Rh({ children: e, direction: t, type: n }) {
|
|
13148
|
+
let r = h(null), i = se(), a = M(), o = a ? 0 : 12;
|
|
13150
13149
|
return p(() => {
|
|
13151
13150
|
r.current?.closest("[role=\"dialog\"]")?.focus({ preventScroll: !0 });
|
|
13152
|
-
}, [i]), /* @__PURE__ */ b(
|
|
13151
|
+
}, [i]), /* @__PURE__ */ b(j.div, {
|
|
13153
13152
|
ref: r,
|
|
13154
|
-
className: v(
|
|
13155
|
-
[
|
|
13156
|
-
[
|
|
13153
|
+
className: v(Lh.panel, {
|
|
13154
|
+
[Lh["calendar-panel"]]: n,
|
|
13155
|
+
[Lh["range-panel"]]: n === "range"
|
|
13157
13156
|
}),
|
|
13158
13157
|
inert: !i,
|
|
13159
13158
|
custom: t,
|
|
@@ -13185,7 +13184,7 @@ function zh({ children: e, direction: t, type: n }) {
|
|
|
13185
13184
|
children: e
|
|
13186
13185
|
});
|
|
13187
13186
|
}
|
|
13188
|
-
var
|
|
13187
|
+
var zh = {
|
|
13189
13188
|
content: "_content_1g02u_1",
|
|
13190
13189
|
options: "_options_1g02u_5",
|
|
13191
13190
|
header: "_header_1g02u_11",
|
|
@@ -13193,43 +13192,43 @@ var Bh = {
|
|
|
13193
13192
|
};
|
|
13194
13193
|
//#endregion
|
|
13195
13194
|
//#region src/components/Filters/Date/utilities.ts
|
|
13196
|
-
function
|
|
13197
|
-
let n =
|
|
13195
|
+
function Bh(e, t = /* @__PURE__ */ new Date()) {
|
|
13196
|
+
let n = re(t), r = k(n, "uuuu-MM-dd");
|
|
13198
13197
|
switch (e) {
|
|
13199
13198
|
case "today": return [r];
|
|
13200
13199
|
case "3days": return [k(C(n, -2), "uuuu-MM-dd"), r];
|
|
13201
13200
|
case "7days": return [k(C(n, -6), "uuuu-MM-dd"), r];
|
|
13202
13201
|
case "month": {
|
|
13203
|
-
let e =
|
|
13204
|
-
return [k(
|
|
13202
|
+
let e = A(n, 1);
|
|
13203
|
+
return [k(ie(e), "uuuu-MM-dd"), k(D(e), "uuuu-MM-dd")];
|
|
13205
13204
|
}
|
|
13206
13205
|
}
|
|
13207
13206
|
}
|
|
13208
13207
|
//#endregion
|
|
13209
13208
|
//#region src/components/Filters/Date/Date.tsx
|
|
13210
|
-
function
|
|
13209
|
+
function Vh({ id: e, label: n = "Date", preset: r, onPresetsChange: i, value: a, onChange: o, open: s, onOpenChange: c, disabled: l = !1 }) {
|
|
13211
13210
|
let d = gm(), f = t(), p = m(() => {
|
|
13212
13211
|
let e = /* @__PURE__ */ new Date();
|
|
13213
13212
|
return [
|
|
13214
13213
|
{
|
|
13215
13214
|
preset: "today",
|
|
13216
13215
|
label: d("Today"),
|
|
13217
|
-
value:
|
|
13216
|
+
value: Bh("today", e)
|
|
13218
13217
|
},
|
|
13219
13218
|
{
|
|
13220
13219
|
preset: "3days",
|
|
13221
13220
|
label: d("Last 3 Days"),
|
|
13222
|
-
value:
|
|
13221
|
+
value: Bh("3days", e)
|
|
13223
13222
|
},
|
|
13224
13223
|
{
|
|
13225
13224
|
preset: "7days",
|
|
13226
13225
|
label: d("Last 7 Days"),
|
|
13227
|
-
value:
|
|
13226
|
+
value: Bh("7days", e)
|
|
13228
13227
|
},
|
|
13229
13228
|
{
|
|
13230
13229
|
preset: "month",
|
|
13231
13230
|
label: d("Last Month"),
|
|
13232
|
-
value:
|
|
13231
|
+
value: Bh("month", e)
|
|
13233
13232
|
}
|
|
13234
13233
|
];
|
|
13235
13234
|
}, [d]), h = p.find((e) => e.preset === r), _ = !a.length || h ? null : a.length === 1 ? "single" : "range", [v, S] = g(_);
|
|
@@ -13246,7 +13245,7 @@ function Hh({ id: e, label: n = "Date", preset: r, onPresetsChange: i, value: a,
|
|
|
13246
13245
|
function O(e, t) {
|
|
13247
13246
|
i?.(t), o?.(e, t), c?.(!1);
|
|
13248
13247
|
}
|
|
13249
|
-
return /* @__PURE__ */ b(
|
|
13248
|
+
return /* @__PURE__ */ b(Ih, {
|
|
13250
13249
|
id: e,
|
|
13251
13250
|
label: n,
|
|
13252
13251
|
segments: D,
|
|
@@ -13255,17 +13254,17 @@ function Hh({ id: e, label: n = "Date", preset: r, onPresetsChange: i, value: a,
|
|
|
13255
13254
|
disabled: l,
|
|
13256
13255
|
onClear: () => O([]),
|
|
13257
13256
|
children: /* @__PURE__ */ b("div", {
|
|
13258
|
-
className:
|
|
13259
|
-
children: /* @__PURE__ */ b(
|
|
13257
|
+
className: zh.content,
|
|
13258
|
+
children: /* @__PURE__ */ b(oe, {
|
|
13260
13259
|
initial: !1,
|
|
13261
13260
|
mode: "wait",
|
|
13262
13261
|
custom: C,
|
|
13263
|
-
children: /* @__PURE__ */ b(
|
|
13262
|
+
children: /* @__PURE__ */ b(Rh, {
|
|
13264
13263
|
direction: C,
|
|
13265
13264
|
type: v,
|
|
13266
13265
|
children: v ? /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b("div", {
|
|
13267
|
-
className:
|
|
13268
|
-
children: /* @__PURE__ */ b(
|
|
13266
|
+
className: zh.header,
|
|
13267
|
+
children: /* @__PURE__ */ b(B, {
|
|
13269
13268
|
icon: "arrow-left",
|
|
13270
13269
|
variant: "tertiary",
|
|
13271
13270
|
style: {
|
|
@@ -13276,7 +13275,7 @@ function Hh({ id: e, label: n = "Date", preset: r, onPresetsChange: i, value: a,
|
|
|
13276
13275
|
children: d("Back")
|
|
13277
13276
|
})
|
|
13278
13277
|
}), /* @__PURE__ */ b("div", {
|
|
13279
|
-
className:
|
|
13278
|
+
className: zh.calendar,
|
|
13280
13279
|
children: /* @__PURE__ */ b(zm, {
|
|
13281
13280
|
type: v,
|
|
13282
13281
|
visibleMonths: v === "range" ? "2" : "1",
|
|
@@ -13286,7 +13285,7 @@ function Hh({ id: e, label: n = "Date", preset: r, onPresetsChange: i, value: a,
|
|
|
13286
13285
|
}
|
|
13287
13286
|
}, v)
|
|
13288
13287
|
})] }) : /* @__PURE__ */ x("div", {
|
|
13289
|
-
className:
|
|
13288
|
+
className: zh.options,
|
|
13290
13289
|
children: [
|
|
13291
13290
|
p.map((e) => /* @__PURE__ */ b(Um, {
|
|
13292
13291
|
selectable: !0,
|
|
@@ -13311,7 +13310,7 @@ function Hh({ id: e, label: n = "Date", preset: r, onPresetsChange: i, value: a,
|
|
|
13311
13310
|
})
|
|
13312
13311
|
});
|
|
13313
13312
|
}
|
|
13314
|
-
var
|
|
13313
|
+
var Hh = {
|
|
13315
13314
|
content: "_content_1kios_1",
|
|
13316
13315
|
search: "_search_1kios_17",
|
|
13317
13316
|
scroll: "_scroll_1kios_24",
|
|
@@ -13325,7 +13324,7 @@ var Uh = {
|
|
|
13325
13324
|
};
|
|
13326
13325
|
//#endregion
|
|
13327
13326
|
//#region src/components/Filters/Select/Select.tsx
|
|
13328
|
-
function
|
|
13327
|
+
function Uh({ id: e, label: t, selectedOptions: n, options: r, value: i, onChange: a, inputValue: o, onInputChange: s, open: c, onOpenChange: l, searchPlaceholder: d = "Search options", emptyState: f = "No results found", loading: p = !1, hasMore: m = !1, loadMore: h, isLoadingMore: _ = !1, disabled: y = !1 }) {
|
|
13329
13328
|
let [S, C] = g(null);
|
|
13330
13329
|
return u(() => {
|
|
13331
13330
|
if (!c || p || _ || !m || !h || !S) return;
|
|
@@ -13341,7 +13340,7 @@ function Wh({ id: e, label: t, selectedOptions: n, options: r, value: i, onChang
|
|
|
13341
13340
|
h,
|
|
13342
13341
|
S,
|
|
13343
13342
|
r.length
|
|
13344
|
-
]), /* @__PURE__ */ b(
|
|
13343
|
+
]), /* @__PURE__ */ b(Ih, {
|
|
13345
13344
|
id: e,
|
|
13346
13345
|
label: t,
|
|
13347
13346
|
segments: [{ values: n.map((e) => e.text) }],
|
|
@@ -13350,88 +13349,88 @@ function Wh({ id: e, label: t, selectedOptions: n, options: r, value: i, onChang
|
|
|
13350
13349
|
disabled: y,
|
|
13351
13350
|
onClear: () => a?.([]),
|
|
13352
13351
|
children: /* @__PURE__ */ x("div", {
|
|
13353
|
-
className:
|
|
13352
|
+
className: Hh.content,
|
|
13354
13353
|
children: [/* @__PURE__ */ b("div", {
|
|
13355
|
-
className:
|
|
13354
|
+
className: Hh.search,
|
|
13356
13355
|
children: /* @__PURE__ */ b(nh, {
|
|
13357
13356
|
value: o,
|
|
13358
13357
|
onChange: (e) => s?.(e.currentTarget.value),
|
|
13359
13358
|
placeholder: d,
|
|
13360
|
-
prefix: /* @__PURE__ */ b(
|
|
13359
|
+
prefix: /* @__PURE__ */ b(z, { type: "search" })
|
|
13361
13360
|
})
|
|
13362
13361
|
}), /* @__PURE__ */ x("div", {
|
|
13363
|
-
className:
|
|
13362
|
+
className: Hh.scroll,
|
|
13364
13363
|
children: [r.length > 0 ? /* @__PURE__ */ b("div", {
|
|
13365
|
-
className:
|
|
13364
|
+
className: Hh.options,
|
|
13366
13365
|
children: r.map((e) => {
|
|
13367
13366
|
let t = i.includes(e.value);
|
|
13368
13367
|
return /* @__PURE__ */ x("button", {
|
|
13369
13368
|
type: "button",
|
|
13370
13369
|
disabled: p || e.disabled,
|
|
13371
13370
|
"data-selected": t || void 0,
|
|
13372
|
-
className: v("aurora-base", "aurora-button",
|
|
13371
|
+
className: v("aurora-base", "aurora-button", Hh.option),
|
|
13373
13372
|
onClick: () => a?.(t ? i.filter((t) => t !== e.value) : [...i, e.value]),
|
|
13374
13373
|
children: [/* @__PURE__ */ b("span", {
|
|
13375
|
-
className:
|
|
13374
|
+
className: Hh.checkbox,
|
|
13376
13375
|
inert: !0,
|
|
13377
13376
|
children: /* @__PURE__ */ b($m, {
|
|
13378
13377
|
checked: t,
|
|
13379
13378
|
disabled: p || e.disabled
|
|
13380
13379
|
})
|
|
13381
13380
|
}), /* @__PURE__ */ b("span", {
|
|
13382
|
-
className:
|
|
13381
|
+
className: Hh["option-label"],
|
|
13383
13382
|
children: e.label
|
|
13384
13383
|
})]
|
|
13385
13384
|
}, e.value);
|
|
13386
13385
|
})
|
|
13387
13386
|
}) : p ? /* @__PURE__ */ b("div", {
|
|
13388
|
-
className:
|
|
13389
|
-
children: /* @__PURE__ */ b(
|
|
13387
|
+
className: Hh.loading,
|
|
13388
|
+
children: /* @__PURE__ */ b(R, {})
|
|
13390
13389
|
}) : _ ? null : /* @__PURE__ */ b("div", {
|
|
13391
|
-
className:
|
|
13390
|
+
className: Hh.empty,
|
|
13392
13391
|
children: f
|
|
13393
13392
|
}), (m || _) && /* @__PURE__ */ b("div", {
|
|
13394
13393
|
ref: C,
|
|
13395
|
-
className:
|
|
13394
|
+
className: Hh.loadMore,
|
|
13396
13395
|
children: _ && /* @__PURE__ */ b("div", {
|
|
13397
|
-
className:
|
|
13396
|
+
className: Hh.loading,
|
|
13398
13397
|
role: "status",
|
|
13399
|
-
children: /* @__PURE__ */ b(
|
|
13398
|
+
children: /* @__PURE__ */ b(R, {})
|
|
13400
13399
|
})
|
|
13401
13400
|
})]
|
|
13402
13401
|
})]
|
|
13403
13402
|
})
|
|
13404
13403
|
});
|
|
13405
13404
|
}
|
|
13406
|
-
var
|
|
13405
|
+
var Wh = {
|
|
13407
13406
|
root: "_root_5ekpf_1",
|
|
13408
13407
|
toolbar: "_toolbar_5ekpf_8",
|
|
13409
13408
|
saveAction: "_saveAction_5ekpf_43",
|
|
13410
13409
|
saveButton: "_saveButton_5ekpf_53"
|
|
13411
|
-
},
|
|
13410
|
+
}, Gh = {
|
|
13412
13411
|
panel: "_panel_rq47c_1",
|
|
13413
13412
|
filters: "_filters_rq47c_12"
|
|
13414
13413
|
};
|
|
13415
13414
|
//#endregion
|
|
13416
13415
|
//#region src/components/Toolbar/components/Filter/Filter.tsx
|
|
13417
|
-
function
|
|
13416
|
+
function Kh({ filters: e, filtersLayout: t = "wrap", showFilter: r = !1 }) {
|
|
13418
13417
|
let i = n.toArray(e);
|
|
13419
|
-
return /* @__PURE__ */ b(
|
|
13418
|
+
return /* @__PURE__ */ b(pe.Root, {
|
|
13420
13419
|
open: r && i.length > 0,
|
|
13421
|
-
children: /* @__PURE__ */ b(
|
|
13422
|
-
className:
|
|
13420
|
+
children: /* @__PURE__ */ b(pe.Panel, {
|
|
13421
|
+
className: Gh.panel,
|
|
13423
13422
|
children: /* @__PURE__ */ b("div", {
|
|
13424
|
-
className:
|
|
13423
|
+
className: Gh.filters,
|
|
13425
13424
|
"data-layout": t,
|
|
13426
13425
|
children: i
|
|
13427
13426
|
})
|
|
13428
13427
|
})
|
|
13429
13428
|
});
|
|
13430
13429
|
}
|
|
13431
|
-
var
|
|
13430
|
+
var qh = { form: "_form_1jnhx_1" };
|
|
13432
13431
|
//#endregion
|
|
13433
13432
|
//#region src/components/Toolbar/components/SaveView/SaveView.tsx
|
|
13434
|
-
function
|
|
13433
|
+
function Jh({ selectedView: e, onViewUpdate: t, onViewCreate: n }) {
|
|
13435
13434
|
let r = gm(), i = f(), a = `${i}-name`, [o, s] = g(!1), [c, l] = g("");
|
|
13436
13435
|
return /* @__PURE__ */ x(lh, {
|
|
13437
13436
|
open: o,
|
|
@@ -13457,7 +13456,7 @@ function Yh({ selectedView: e, onViewUpdate: t, onViewCreate: n }) {
|
|
|
13457
13456
|
}]
|
|
13458
13457
|
}), /* @__PURE__ */ b(ch, {
|
|
13459
13458
|
heading: r("Save view as"),
|
|
13460
|
-
primaryAction: /* @__PURE__ */ b(
|
|
13459
|
+
primaryAction: /* @__PURE__ */ b(B, {
|
|
13461
13460
|
variant: "primary",
|
|
13462
13461
|
type: "submit",
|
|
13463
13462
|
form: i,
|
|
@@ -13465,12 +13464,12 @@ function Yh({ selectedView: e, onViewUpdate: t, onViewCreate: n }) {
|
|
|
13465
13464
|
children: r("Save")
|
|
13466
13465
|
}),
|
|
13467
13466
|
secondaryActions: /* @__PURE__ */ b(dh, {
|
|
13468
|
-
render: /* @__PURE__ */ b(
|
|
13467
|
+
render: /* @__PURE__ */ b(B, { variant: "secondary" }),
|
|
13469
13468
|
children: r("Discard")
|
|
13470
13469
|
}),
|
|
13471
13470
|
children: /* @__PURE__ */ x("form", {
|
|
13472
13471
|
id: i,
|
|
13473
|
-
className:
|
|
13472
|
+
className: qh.form,
|
|
13474
13473
|
onSubmit: (e) => {
|
|
13475
13474
|
e.preventDefault();
|
|
13476
13475
|
let t = c.trim();
|
|
@@ -13490,7 +13489,7 @@ function Yh({ selectedView: e, onViewUpdate: t, onViewCreate: n }) {
|
|
|
13490
13489
|
})]
|
|
13491
13490
|
});
|
|
13492
13491
|
}
|
|
13493
|
-
var
|
|
13492
|
+
var Yh = {
|
|
13494
13493
|
column: "_column_71gsx_1",
|
|
13495
13494
|
columnLabel: "_columnLabel_71gsx_15",
|
|
13496
13495
|
dragHandle: "_dragHandle_71gsx_27",
|
|
@@ -13498,38 +13497,38 @@ var Xh = {
|
|
|
13498
13497
|
};
|
|
13499
13498
|
//#endregion
|
|
13500
13499
|
//#region src/components/Toolbar/components/ColumnButton/ColumnButton.tsx
|
|
13501
|
-
function
|
|
13502
|
-
let i =
|
|
13500
|
+
function Xh({ column: e, hidden: t, index: n, onVisibilityChange: r }) {
|
|
13501
|
+
let i = M(), { ref: a, handleRef: o, isDragSource: s } = ge({
|
|
13503
13502
|
id: e.id,
|
|
13504
13503
|
index: n,
|
|
13505
13504
|
transition: i ? null : { duration: 150 }
|
|
13506
13505
|
});
|
|
13507
13506
|
return /* @__PURE__ */ x("li", {
|
|
13508
13507
|
ref: a,
|
|
13509
|
-
className: v("aurora-base",
|
|
13508
|
+
className: v("aurora-base", Yh.column),
|
|
13510
13509
|
"data-hidden": t || void 0,
|
|
13511
13510
|
"data-dragging": s || void 0,
|
|
13512
13511
|
children: [
|
|
13513
13512
|
/* @__PURE__ */ b("button", {
|
|
13514
13513
|
ref: o,
|
|
13515
13514
|
type: "button",
|
|
13516
|
-
className: v("aurora-base", "aurora-button",
|
|
13517
|
-
children: /* @__PURE__ */ b(
|
|
13515
|
+
className: v("aurora-base", "aurora-button", Yh.dragHandle),
|
|
13516
|
+
children: /* @__PURE__ */ b(z, { type: "drag-handle" })
|
|
13518
13517
|
}),
|
|
13519
13518
|
/* @__PURE__ */ b("span", {
|
|
13520
|
-
className:
|
|
13519
|
+
className: Yh.columnLabel,
|
|
13521
13520
|
children: e.label
|
|
13522
13521
|
}),
|
|
13523
13522
|
/* @__PURE__ */ b("button", {
|
|
13524
13523
|
type: "button",
|
|
13525
|
-
className: v("aurora-base", "aurora-button",
|
|
13524
|
+
className: v("aurora-base", "aurora-button", Yh.visibility),
|
|
13526
13525
|
onClick: r,
|
|
13527
|
-
children: /* @__PURE__ */ b(
|
|
13526
|
+
children: /* @__PURE__ */ b(z, { type: t ? "hide" : "view" })
|
|
13528
13527
|
})
|
|
13529
13528
|
]
|
|
13530
13529
|
});
|
|
13531
13530
|
}
|
|
13532
|
-
var
|
|
13531
|
+
var Zh = {
|
|
13533
13532
|
sortRow: "_sortRow_7saxt_1",
|
|
13534
13533
|
sortLabel: "_sortLabel_7saxt_11",
|
|
13535
13534
|
heading: "_heading_7saxt_28",
|
|
@@ -13537,7 +13536,7 @@ var Qh = {
|
|
|
13537
13536
|
};
|
|
13538
13537
|
//#endregion
|
|
13539
13538
|
//#region src/components/Toolbar/components/SortAndColumns/SortAndColumns.tsx
|
|
13540
|
-
function
|
|
13539
|
+
function Qh({ sorts: e = [], sortState: t, onSortStateChange: n, columns: r = [], columnsState: i = [], onColumnsStateChange: a }) {
|
|
13541
13540
|
let o = gm(), [s, c] = g(!1), l = new Map(r.map((e) => [e.id, e])), u = a ? i.flatMap((e) => {
|
|
13542
13541
|
let t = l.get(e.id);
|
|
13543
13542
|
return t && !t.fixed ? [{
|
|
@@ -13551,7 +13550,7 @@ function $h({ sorts: e = [], sortState: t, onSortStateChange: n, columns: r = []
|
|
|
13551
13550
|
return !d && u.length === 0 ? null : /* @__PURE__ */ x(Wm, {
|
|
13552
13551
|
open: s,
|
|
13553
13552
|
onOpenChange: c,
|
|
13554
|
-
children: [/* @__PURE__ */ b(Gm, { render: /* @__PURE__ */ b(
|
|
13553
|
+
children: [/* @__PURE__ */ b(Gm, { render: /* @__PURE__ */ b(B, {
|
|
13555
13554
|
variant: "tertiary",
|
|
13556
13555
|
icon: "layout-columns-3"
|
|
13557
13556
|
}) }), /* @__PURE__ */ b(Vm, {
|
|
@@ -13559,10 +13558,10 @@ function $h({ sorts: e = [], sortState: t, onSortStateChange: n, columns: r = []
|
|
|
13559
13558
|
inlineSize: "276px",
|
|
13560
13559
|
maxBlockSize: "480px",
|
|
13561
13560
|
header: d ? /* @__PURE__ */ x("div", {
|
|
13562
|
-
className:
|
|
13561
|
+
className: Zh.sortRow,
|
|
13563
13562
|
children: [/* @__PURE__ */ x("span", {
|
|
13564
|
-
className:
|
|
13565
|
-
children: [/* @__PURE__ */ b(
|
|
13563
|
+
className: Zh.sortLabel,
|
|
13564
|
+
children: [/* @__PURE__ */ b(z, { type: "sort" }), o("Sort by")]
|
|
13566
13565
|
}), /* @__PURE__ */ b(gh, {
|
|
13567
13566
|
label: f?.label ?? o("Select field"),
|
|
13568
13567
|
icon: "select",
|
|
@@ -13599,13 +13598,13 @@ function $h({ sorts: e = [], sortState: t, onSortStateChange: n, columns: r = []
|
|
|
13599
13598
|
})]
|
|
13600
13599
|
}) : void 0,
|
|
13601
13600
|
children: u.length > 0 && /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b("p", {
|
|
13602
|
-
className:
|
|
13601
|
+
className: Zh.heading,
|
|
13603
13602
|
children: o("Columns")
|
|
13604
|
-
}), /* @__PURE__ */ b(
|
|
13603
|
+
}), /* @__PURE__ */ b(me, {
|
|
13605
13604
|
onDragEnd: (e) => {
|
|
13606
13605
|
if (e.canceled) return;
|
|
13607
13606
|
let { source: t } = e.operation;
|
|
13608
|
-
if (!
|
|
13607
|
+
if (!he(t) || t.initialIndex === t.index) return;
|
|
13609
13608
|
let n = u.map(({ state: e }) => e), [r] = n.splice(t.initialIndex, 1);
|
|
13610
13609
|
n.splice(t.index, 0, r);
|
|
13611
13610
|
let o = 0;
|
|
@@ -13615,8 +13614,8 @@ function $h({ sorts: e = [], sortState: t, onSortStateChange: n, columns: r = []
|
|
|
13615
13614
|
}));
|
|
13616
13615
|
},
|
|
13617
13616
|
children: /* @__PURE__ */ b("ul", {
|
|
13618
|
-
className:
|
|
13619
|
-
children: u.map(({ definition: e, state: t }, n) => /* @__PURE__ */ b(
|
|
13617
|
+
className: Zh.columns,
|
|
13618
|
+
children: u.map(({ definition: e, state: t }, n) => /* @__PURE__ */ b(Xh, {
|
|
13620
13619
|
column: e,
|
|
13621
13620
|
hidden: t.hidden,
|
|
13622
13621
|
index: n,
|
|
@@ -13632,8 +13631,8 @@ function $h({ sorts: e = [], sortState: t, onSortStateChange: n, columns: r = []
|
|
|
13632
13631
|
}
|
|
13633
13632
|
//#endregion
|
|
13634
13633
|
//#region src/components/Toolbar/Toolbar.tsx
|
|
13635
|
-
function
|
|
13636
|
-
let E = gm(), D =
|
|
13634
|
+
function $h({ searchPlacerholder: e, filters: t = [], filtersLayout: r = "wrap", ref: i, style: a, search: o, onSearchChange: s, sorts: c, sortState: l, onSortStateChange: u, columns: d, columnsState: f, onColumnsStateChange: p, views: m = [], isViewDirty: h = !1, selectedView: g, onViewChange: _, onViewUpdate: y, onViewCreate: S, onViewReset: C, showFilter: w = !1, onShowFilterChange: T }) {
|
|
13635
|
+
let E = gm(), D = M(), O = {
|
|
13637
13636
|
duration: D ? 0 : .2,
|
|
13638
13637
|
ease: [
|
|
13639
13638
|
.2,
|
|
@@ -13641,13 +13640,13 @@ function eg({ searchPlacerholder: e, filters: t = [], filtersLayout: r = "wrap",
|
|
|
13641
13640
|
0,
|
|
13642
13641
|
1
|
|
13643
13642
|
]
|
|
13644
|
-
}, k = m.find((e) => e.id === g), ee = !!(k && h && C), te = !!((h || !k) && (S || k && y)),
|
|
13643
|
+
}, k = m.find((e) => e.id === g), ee = !!(k && h && C), te = !!((h || !k) && (S || k && y)), ne = n.toArray(t).length > 0;
|
|
13645
13644
|
return /* @__PURE__ */ x("div", {
|
|
13646
13645
|
ref: i,
|
|
13647
|
-
className: v("aurora-base",
|
|
13646
|
+
className: v("aurora-base", Wh.root),
|
|
13648
13647
|
style: a,
|
|
13649
13648
|
children: [/* @__PURE__ */ x("div", {
|
|
13650
|
-
className:
|
|
13649
|
+
className: Wh.toolbar,
|
|
13651
13650
|
"data-has-view": m.length > 0 || void 0,
|
|
13652
13651
|
children: [
|
|
13653
13652
|
m.length > 0 && /* @__PURE__ */ b(gh, {
|
|
@@ -13664,7 +13663,7 @@ function eg({ searchPlacerholder: e, filters: t = [], filtersLayout: r = "wrap",
|
|
|
13664
13663
|
}),
|
|
13665
13664
|
/* @__PURE__ */ b(nh, {
|
|
13666
13665
|
placeholder: e ?? E("Search and filter"),
|
|
13667
|
-
prefix: /* @__PURE__ */ b(
|
|
13666
|
+
prefix: /* @__PURE__ */ b(z, { type: "search" }),
|
|
13668
13667
|
value: o,
|
|
13669
13668
|
onChange: (e) => s(e.currentTarget.value)
|
|
13670
13669
|
}),
|
|
@@ -13672,7 +13671,7 @@ function eg({ searchPlacerholder: e, filters: t = [], filtersLayout: r = "wrap",
|
|
|
13672
13671
|
direction: "inline",
|
|
13673
13672
|
gap: "small-500",
|
|
13674
13673
|
children: [
|
|
13675
|
-
/* @__PURE__ */ b(
|
|
13674
|
+
/* @__PURE__ */ b(Qh, {
|
|
13676
13675
|
sorts: c,
|
|
13677
13676
|
sortState: l,
|
|
13678
13677
|
onSortStateChange: u,
|
|
@@ -13680,22 +13679,22 @@ function eg({ searchPlacerholder: e, filters: t = [], filtersLayout: r = "wrap",
|
|
|
13680
13679
|
columnsState: f,
|
|
13681
13680
|
onColumnsStateChange: p
|
|
13682
13681
|
}, g),
|
|
13683
|
-
|
|
13682
|
+
ne && /* @__PURE__ */ b(B, {
|
|
13684
13683
|
variant: "tertiary",
|
|
13685
13684
|
icon: "adjust",
|
|
13686
13685
|
"data-popup-open": w || void 0,
|
|
13687
13686
|
onClick: () => T(!w)
|
|
13688
13687
|
}),
|
|
13689
|
-
/* @__PURE__ */ b(
|
|
13688
|
+
/* @__PURE__ */ b(oe, {
|
|
13690
13689
|
initial: !1,
|
|
13691
|
-
children: (te || ee) && /* @__PURE__ */ b(
|
|
13692
|
-
className:
|
|
13690
|
+
children: (te || ee) && /* @__PURE__ */ b(j.div, {
|
|
13691
|
+
className: Wh.saveAction,
|
|
13693
13692
|
initial: { width: 0 },
|
|
13694
13693
|
animate: { width: "auto" },
|
|
13695
13694
|
exit: { width: 0 },
|
|
13696
13695
|
transition: O,
|
|
13697
|
-
children: /* @__PURE__ */ x(
|
|
13698
|
-
className:
|
|
13696
|
+
children: /* @__PURE__ */ x(j.div, {
|
|
13697
|
+
className: Wh.saveButton,
|
|
13699
13698
|
initial: {
|
|
13700
13699
|
x: D ? 0 : 16,
|
|
13701
13700
|
opacity: 0
|
|
@@ -13709,13 +13708,13 @@ function eg({ searchPlacerholder: e, filters: t = [], filtersLayout: r = "wrap",
|
|
|
13709
13708
|
opacity: 0
|
|
13710
13709
|
},
|
|
13711
13710
|
transition: O,
|
|
13712
|
-
children: [ee && /* @__PURE__ */ b(
|
|
13711
|
+
children: [ee && /* @__PURE__ */ b(B, {
|
|
13713
13712
|
type: "button",
|
|
13714
13713
|
variant: "tertiary",
|
|
13715
13714
|
icon: "clock-revert",
|
|
13716
13715
|
title: E("Reset view"),
|
|
13717
13716
|
onClick: C
|
|
13718
|
-
}), te && /* @__PURE__ */ b(
|
|
13717
|
+
}), te && /* @__PURE__ */ b(Jh, {
|
|
13719
13718
|
selectedView: k?.id,
|
|
13720
13719
|
onViewUpdate: y,
|
|
13721
13720
|
onViewCreate: S
|
|
@@ -13726,31 +13725,31 @@ function eg({ searchPlacerholder: e, filters: t = [], filtersLayout: r = "wrap",
|
|
|
13726
13725
|
]
|
|
13727
13726
|
})
|
|
13728
13727
|
]
|
|
13729
|
-
}), /* @__PURE__ */ b(
|
|
13728
|
+
}), /* @__PURE__ */ b(Kh, {
|
|
13730
13729
|
filters: t,
|
|
13731
13730
|
filtersLayout: r,
|
|
13732
13731
|
showFilter: w
|
|
13733
13732
|
})]
|
|
13734
13733
|
});
|
|
13735
13734
|
}
|
|
13736
|
-
var
|
|
13737
|
-
bulkBar: "
|
|
13738
|
-
actions: "
|
|
13739
|
-
visuallyHidden: "
|
|
13735
|
+
var eg = {
|
|
13736
|
+
bulkBar: "_bulkBar_yakmu_1",
|
|
13737
|
+
actions: "_actions_yakmu_22",
|
|
13738
|
+
visuallyHidden: "_visuallyHidden_yakmu_37"
|
|
13740
13739
|
};
|
|
13741
13740
|
//#endregion
|
|
13742
13741
|
//#region src/components/Collection/DataTable/componnets/BulkActions/BulkActions.tsx
|
|
13743
|
-
function
|
|
13742
|
+
function tg(e) {
|
|
13744
13743
|
return () => {
|
|
13745
13744
|
if (e.onAction?.(), !e.url) return;
|
|
13746
13745
|
let t = e.target ?? (e.external ? "_blank" : "_self");
|
|
13747
13746
|
t === "_self" ? window.location.assign(e.url) : window.open(e.url, t, "noopener,noreferrer");
|
|
13748
13747
|
};
|
|
13749
13748
|
}
|
|
13750
|
-
function
|
|
13749
|
+
function ng({ checkbox: e, checkboxOffset: t = 0, count: n, disabled: r = !1, onClear: i, promotedActions: a = [], actions: o = [] }) {
|
|
13751
13750
|
let s = gm();
|
|
13752
13751
|
return /* @__PURE__ */ x("div", {
|
|
13753
|
-
className: v("aurora-base",
|
|
13752
|
+
className: v("aurora-base", eg.bulkBar),
|
|
13754
13753
|
role: "toolbar",
|
|
13755
13754
|
"aria-label": s("Bulk actions"),
|
|
13756
13755
|
style: { paddingInlineStart: t },
|
|
@@ -13766,21 +13765,21 @@ function rg({ checkbox: e, checkboxOffset: t = 0, count: n, disabled: r = !1, on
|
|
|
13766
13765
|
}]
|
|
13767
13766
|
}),
|
|
13768
13767
|
(a.length > 0 || o.length > 0) && /* @__PURE__ */ x("div", {
|
|
13769
|
-
className:
|
|
13768
|
+
className: eg.actions,
|
|
13770
13769
|
"data-has-overflow": o.length > 0 || void 0,
|
|
13771
|
-
children: [a.map((e, t) => /* @__PURE__ */ b(
|
|
13770
|
+
children: [a.map((e, t) => /* @__PURE__ */ b(B, {
|
|
13772
13771
|
variant: "tertiary",
|
|
13773
13772
|
tone: e.destructive ? "critical" : "auto",
|
|
13774
13773
|
disabled: r || e.disabled,
|
|
13775
13774
|
loading: e.loading,
|
|
13776
13775
|
icon: e.icon,
|
|
13777
|
-
onClick:
|
|
13776
|
+
onClick: tg(e),
|
|
13778
13777
|
onMouseEnter: e.onMouseEnter,
|
|
13779
13778
|
onTouchStart: e.onTouchStart,
|
|
13780
13779
|
children: e.content
|
|
13781
13780
|
}, e.id ?? t)), o.length > 0 && /* @__PURE__ */ b(gh, {
|
|
13782
13781
|
label: /* @__PURE__ */ b("span", {
|
|
13783
|
-
className:
|
|
13782
|
+
className: eg.visuallyHidden,
|
|
13784
13783
|
children: s("More actions")
|
|
13785
13784
|
}),
|
|
13786
13785
|
icon: "menu-horizontal",
|
|
@@ -13788,37 +13787,38 @@ function rg({ checkbox: e, checkboxOffset: t = 0, count: n, disabled: r = !1, on
|
|
|
13788
13787
|
disabled: r,
|
|
13789
13788
|
actions: o.map((e) => ({
|
|
13790
13789
|
...e,
|
|
13791
|
-
onAction:
|
|
13790
|
+
onAction: tg(e)
|
|
13792
13791
|
}))
|
|
13793
13792
|
})]
|
|
13794
13793
|
})
|
|
13795
13794
|
]
|
|
13796
13795
|
});
|
|
13797
13796
|
}
|
|
13798
|
-
var
|
|
13799
|
-
Table: "
|
|
13800
|
-
StickyHeader: "
|
|
13801
|
-
Root: "
|
|
13802
|
-
BulkCell: "
|
|
13803
|
-
PinnedCell: "
|
|
13804
|
-
SelectionCell: "
|
|
13805
|
-
ExpansionCell: "
|
|
13806
|
-
ExpandButton: "
|
|
13807
|
-
ExpandIcon: "
|
|
13808
|
-
ExpandedCell: "
|
|
13809
|
-
ExpandedViewport: "
|
|
13810
|
-
ExpandedContent: "
|
|
13811
|
-
|
|
13812
|
-
|
|
13813
|
-
|
|
13814
|
-
|
|
13815
|
-
|
|
13816
|
-
|
|
13817
|
-
|
|
13797
|
+
var J = {
|
|
13798
|
+
Table: "_Table_1snky_1",
|
|
13799
|
+
StickyHeader: "_StickyHeader_1snky_9",
|
|
13800
|
+
Root: "_Root_1snky_16",
|
|
13801
|
+
BulkCell: "_BulkCell_1snky_43",
|
|
13802
|
+
PinnedCell: "_PinnedCell_1snky_51",
|
|
13803
|
+
SelectionCell: "_SelectionCell_1snky_51",
|
|
13804
|
+
ExpansionCell: "_ExpansionCell_1snky_51",
|
|
13805
|
+
ExpandButton: "_ExpandButton_1snky_74",
|
|
13806
|
+
ExpandIcon: "_ExpandIcon_1snky_87",
|
|
13807
|
+
ExpandedCell: "_ExpandedCell_1snky_119",
|
|
13808
|
+
ExpandedViewport: "_ExpandedViewport_1snky_124",
|
|
13809
|
+
ExpandedContent: "_ExpandedContent_1snky_128",
|
|
13810
|
+
Row: "_Row_1snky_147",
|
|
13811
|
+
HeaderViewport: "_HeaderViewport_1snky_168",
|
|
13812
|
+
FooterViewport: "_FooterViewport_1snky_169",
|
|
13813
|
+
Empty: "_Empty_1snky_186",
|
|
13814
|
+
BodyFrame: "_BodyFrame_1snky_193",
|
|
13815
|
+
LoadingOverlay: "_LoadingOverlay_1snky_199",
|
|
13816
|
+
BodyViewport: "_BodyViewport_1snky_208",
|
|
13817
|
+
BottomBar: "_BottomBar_1snky_217"
|
|
13818
13818
|
};
|
|
13819
13819
|
//#endregion
|
|
13820
13820
|
//#region src/components/Collection/utils.ts
|
|
13821
|
-
function
|
|
13821
|
+
function rg(e) {
|
|
13822
13822
|
if (e && "alignment" in e) {
|
|
13823
13823
|
let t = e.alignment;
|
|
13824
13824
|
if (t === "center" || t === "end") return t;
|
|
@@ -13827,9 +13827,9 @@ function ig(e) {
|
|
|
13827
13827
|
}
|
|
13828
13828
|
//#endregion
|
|
13829
13829
|
//#region src/components/Collection/DataTable/DataTable.tsx
|
|
13830
|
-
var
|
|
13831
|
-
function
|
|
13832
|
-
let d = gm(), f =
|
|
13830
|
+
var ig = 32, ag = 32;
|
|
13831
|
+
function og({ ref: e, stickyHeader: t = !1, selectable: n = !1, renderExpandedContent: i, promotedBulkActions: a = [], bulkActions: o = [], footer: s, loading: c = !1, emptyState: l, ...u }) {
|
|
13832
|
+
let d = gm(), f = M(), g = {
|
|
13833
13833
|
type: "tween",
|
|
13834
13834
|
duration: f ? 0 : .2,
|
|
13835
13835
|
ease: [
|
|
@@ -13838,134 +13838,160 @@ function sg({ ref: e, stickyHeader: t = !1, selectable: n = !1, renderExpandedCo
|
|
|
13838
13838
|
.36,
|
|
13839
13839
|
1
|
|
13840
13840
|
]
|
|
13841
|
-
}, _ =
|
|
13842
|
-
|
|
13843
|
-
|
|
13844
|
-
|
|
13845
|
-
|
|
13846
|
-
|
|
13847
|
-
|
|
13848
|
-
}
|
|
13849
|
-
|
|
13850
|
-
|
|
13851
|
-
|
|
13852
|
-
|
|
13853
|
-
|
|
13854
|
-
|
|
13841
|
+
}, _ = m(() => ({
|
|
13842
|
+
size: void 0,
|
|
13843
|
+
...u.defaultColumn
|
|
13844
|
+
}), [u.defaultColumn]), y = m(() => [...u.columns], [u.columns, _]), S = ye({
|
|
13845
|
+
...u,
|
|
13846
|
+
columns: y,
|
|
13847
|
+
defaultColumn: _
|
|
13848
|
+
}), C = S, w = S, T = n ? w.getFilteredSelectedRowModel().flatRows.length : 0, E = n && T > 0, D = S.getRowModel().rows, O = i != null, k = O ? ag : 0, ee = k + (n ? ig : 0), te = O ? `var(--p-table-expansion-width, ${k}px)` : 0, ne = { insetInlineStart: te }, re = We(C), ie = re ? [
|
|
13849
|
+
Ge(C),
|
|
13850
|
+
He(C),
|
|
13851
|
+
Ue(C)
|
|
13852
|
+
] : void 0, ae = S.getHeaderGroups().map((e, t) => ie ? {
|
|
13853
|
+
...e,
|
|
13854
|
+
headers: ie.flatMap((e) => e[t]?.headers ?? [])
|
|
13855
|
+
} : e), A = ae.at(-1)?.headers ?? [], se = Math.max(1, A.length + Number(O) + Number(n)), ce = [...ae].reverse().filter((e) => e.headers.some((e) => !e.isPlaceholder && e.column.columnDef.footer != null)), le = ce.length > 0, ue = /* @__PURE__ */ new Map();
|
|
13856
|
+
if (re) for (let [e, { column: t }] of A.entries()) {
|
|
13857
|
+
let n = Oe(t);
|
|
13858
|
+
n === "start" ? ue.set(t.id, { insetInlineStart: `var(--p-table-column-start-${e}, ${ee}px)` }) : n === "end" && ue.set(t.id, { insetInlineEnd: `var(--p-table-column-end-${e}, 0px)` });
|
|
13855
13859
|
}
|
|
13856
|
-
let
|
|
13857
|
-
let t =
|
|
13860
|
+
let N = (e) => {
|
|
13861
|
+
let t = ue.get(e);
|
|
13858
13862
|
return {
|
|
13859
|
-
className: t ?
|
|
13863
|
+
className: t ? J.PinnedCell : void 0,
|
|
13860
13864
|
style: t
|
|
13861
13865
|
};
|
|
13862
|
-
},
|
|
13866
|
+
}, F = (e) => {
|
|
13863
13867
|
let t = e, n = e;
|
|
13864
13868
|
for (; t.subHeaders.length;) t = t.subHeaders[0];
|
|
13865
13869
|
for (; n.subHeaders.length;) n = n.subHeaders.at(-1);
|
|
13866
|
-
return
|
|
13867
|
-
},
|
|
13868
|
-
|
|
13869
|
-
|
|
13870
|
-
|
|
13871
|
-
] : [
|
|
13872
|
-
Je(
|
|
13870
|
+
return N(Oe(t.column) === "end" ? n.column.id : t.column.id);
|
|
13871
|
+
}, I = h(null), de = h(null), fe = h(null), pe = m(() => le ? [
|
|
13872
|
+
I,
|
|
13873
|
+
de,
|
|
13874
|
+
fe
|
|
13875
|
+
] : [I, de], [le]);
|
|
13876
|
+
Je(pe, {
|
|
13873
13877
|
horizontal: !0,
|
|
13874
13878
|
vertical: !1,
|
|
13875
13879
|
proportional: !1,
|
|
13876
13880
|
throttleWaitTime: 0
|
|
13877
13881
|
}), p(() => {
|
|
13878
|
-
let e =
|
|
13882
|
+
let e = I.current, t = de.current, r = fe.current;
|
|
13879
13883
|
if (!e || !t) return;
|
|
13880
|
-
let
|
|
13881
|
-
|
|
13884
|
+
let i = () => {
|
|
13885
|
+
if (re || O || n) {
|
|
13886
|
+
let i = Array.from(e.querySelector("colgroup")?.children ?? []).map((e) => e.getBoundingClientRect().width), a = Number(O) + Number(n), o = i.slice(0, a).reduce((e, t) => e + t, 0), s = (n, i) => {
|
|
13887
|
+
for (let a of [
|
|
13888
|
+
e,
|
|
13889
|
+
t,
|
|
13890
|
+
r
|
|
13891
|
+
]) a?.style.setProperty(n, `${i}px`);
|
|
13892
|
+
};
|
|
13893
|
+
s("--p-table-expansion-width", O ? i[0] ?? 0 : 0), s("--p-table-selection-width", n ? i[Number(O)] ?? 0 : 0), s("--p-table-controls-width", o);
|
|
13894
|
+
let c = o, l = 0;
|
|
13895
|
+
for (let [e, { column: t }] of A.entries()) Oe(t) === "start" && (s(`--p-table-column-start-${e}`, c), c += i[e + a]);
|
|
13896
|
+
for (let e = A.length - 1; e >= 0; e--) Oe(A[e].column) === "end" && (s(`--p-table-column-end-${e}`, l), l += i[e + a]);
|
|
13897
|
+
}
|
|
13898
|
+
for (let n of [e, r]) n && n.scrollLeft !== t.scrollLeft && (n.scrollLeft = t.scrollLeft);
|
|
13882
13899
|
};
|
|
13883
|
-
|
|
13884
|
-
let
|
|
13885
|
-
for (let
|
|
13900
|
+
i();
|
|
13901
|
+
let a = new ResizeObserver(i);
|
|
13902
|
+
for (let n of [
|
|
13886
13903
|
e,
|
|
13887
13904
|
t,
|
|
13888
|
-
|
|
13905
|
+
r,
|
|
13889
13906
|
e.firstElementChild,
|
|
13890
13907
|
t.firstElementChild,
|
|
13891
|
-
|
|
13892
|
-
])
|
|
13893
|
-
return () =>
|
|
13894
|
-
}, [
|
|
13895
|
-
|
|
13908
|
+
r?.firstElementChild
|
|
13909
|
+
]) n && a.observe(n);
|
|
13910
|
+
return () => a.disconnect();
|
|
13911
|
+
}, [
|
|
13912
|
+
le,
|
|
13913
|
+
E,
|
|
13914
|
+
re,
|
|
13915
|
+
A,
|
|
13916
|
+
O,
|
|
13917
|
+
n,
|
|
13918
|
+
ee
|
|
13919
|
+
]);
|
|
13920
|
+
let me = n && w.getIsAllRowsSelected(), he = n && /* @__PURE__ */ b($m, {
|
|
13896
13921
|
label: d("Select all"),
|
|
13897
13922
|
labelAccessibilityVisibility: "exclusive",
|
|
13898
|
-
checked:
|
|
13899
|
-
indeterminate: !
|
|
13900
|
-
disabled: c || !
|
|
13901
|
-
onChange:
|
|
13902
|
-
}),
|
|
13923
|
+
checked: me,
|
|
13924
|
+
indeterminate: !me && T > 0,
|
|
13925
|
+
disabled: c || !S.getFilteredRowModel().flatRows.some(Ie),
|
|
13926
|
+
onChange: w.getToggleAllRowsSelectedHandler()
|
|
13927
|
+
}), ge = /* @__PURE__ */ b("thead", {
|
|
13903
13928
|
role: "rowgroup",
|
|
13904
|
-
children:
|
|
13929
|
+
children: E ? /* @__PURE__ */ b("tr", {
|
|
13905
13930
|
role: "row",
|
|
13906
13931
|
children: /* @__PURE__ */ b("th", {
|
|
13907
13932
|
role: "columnheader",
|
|
13908
|
-
colSpan:
|
|
13909
|
-
className:
|
|
13910
|
-
children: /* @__PURE__ */ b(
|
|
13911
|
-
checkbox:
|
|
13912
|
-
checkboxOffset:
|
|
13913
|
-
count:
|
|
13933
|
+
colSpan: se,
|
|
13934
|
+
className: J.BulkCell,
|
|
13935
|
+
children: /* @__PURE__ */ b(ng, {
|
|
13936
|
+
checkbox: he,
|
|
13937
|
+
checkboxOffset: te,
|
|
13938
|
+
count: T,
|
|
13914
13939
|
disabled: c,
|
|
13915
|
-
onClear: () =>
|
|
13940
|
+
onClear: () => w.resetRowSelection(!0),
|
|
13916
13941
|
promotedActions: a,
|
|
13917
13942
|
actions: o
|
|
13918
13943
|
})
|
|
13919
13944
|
})
|
|
13920
|
-
}) :
|
|
13945
|
+
}) : ae.map((e, t) => /* @__PURE__ */ x("tr", {
|
|
13921
13946
|
role: "row",
|
|
13922
13947
|
children: [
|
|
13923
|
-
|
|
13948
|
+
O && t === 0 && /* @__PURE__ */ b("th", {
|
|
13924
13949
|
role: "columnheader",
|
|
13925
13950
|
scope: "col",
|
|
13926
|
-
rowSpan:
|
|
13927
|
-
className:
|
|
13951
|
+
rowSpan: ae.length,
|
|
13952
|
+
className: J.ExpansionCell
|
|
13928
13953
|
}),
|
|
13929
13954
|
n && t === 0 && /* @__PURE__ */ b("th", {
|
|
13930
13955
|
role: "columnheader",
|
|
13931
13956
|
scope: "col",
|
|
13932
|
-
rowSpan:
|
|
13933
|
-
className:
|
|
13934
|
-
style:
|
|
13935
|
-
children:
|
|
13957
|
+
rowSpan: ae.length,
|
|
13958
|
+
className: J.SelectionCell,
|
|
13959
|
+
style: ne,
|
|
13960
|
+
children: he
|
|
13936
13961
|
}),
|
|
13937
13962
|
e.headers.map((e) => /* @__PURE__ */ b("th", {
|
|
13938
13963
|
role: "columnheader",
|
|
13939
13964
|
colSpan: e.colSpan,
|
|
13940
13965
|
scope: e.column.columns.length ? "colgroup" : "col",
|
|
13941
|
-
"data-alignment":
|
|
13942
|
-
...
|
|
13943
|
-
children: e.isPlaceholder ? null : /* @__PURE__ */ b(
|
|
13966
|
+
"data-alignment": rg(e.column.columnDef.meta),
|
|
13967
|
+
...F(e),
|
|
13968
|
+
children: e.isPlaceholder ? null : /* @__PURE__ */ b(_e, { header: e })
|
|
13944
13969
|
}, e.id))
|
|
13945
13970
|
]
|
|
13946
13971
|
}, e.id))
|
|
13947
|
-
}),
|
|
13972
|
+
}), ve = /* @__PURE__ */ x("tbody", {
|
|
13948
13973
|
role: "rowgroup",
|
|
13949
|
-
children: [
|
|
13950
|
-
let t = e.getAllCellsByColumnId(), a =
|
|
13974
|
+
children: [D.map((e) => {
|
|
13975
|
+
let t = e.getAllCellsByColumnId(), a = A.map(({ column: e }) => t[e.id]), o = O && Fe(e), s = o && Le(e);
|
|
13951
13976
|
return /* @__PURE__ */ x(r, { children: [/* @__PURE__ */ x("tr", {
|
|
13952
13977
|
role: "row",
|
|
13953
|
-
|
|
13978
|
+
className: J.Row,
|
|
13979
|
+
"data-selected": n && Re(e) || void 0,
|
|
13954
13980
|
children: [
|
|
13955
|
-
|
|
13981
|
+
O && /* @__PURE__ */ b("td", {
|
|
13956
13982
|
role: "cell",
|
|
13957
|
-
className:
|
|
13958
|
-
children: o && /* @__PURE__ */ b(
|
|
13983
|
+
className: J.ExpansionCell,
|
|
13984
|
+
children: o && /* @__PURE__ */ b(j.button, {
|
|
13959
13985
|
type: "button",
|
|
13960
|
-
className:
|
|
13986
|
+
className: J.ExpandButton,
|
|
13961
13987
|
title: d(s ? "Collapse row" : "Expand row"),
|
|
13962
13988
|
"aria-expanded": s,
|
|
13963
13989
|
disabled: c,
|
|
13964
|
-
onClick:
|
|
13990
|
+
onClick: Be(e),
|
|
13965
13991
|
whileTap: f ? void 0 : { scale: .9 },
|
|
13966
13992
|
transition: g,
|
|
13967
|
-
children: /* @__PURE__ */ b(
|
|
13968
|
-
className:
|
|
13993
|
+
children: /* @__PURE__ */ b(j.span, {
|
|
13994
|
+
className: J.ExpandIcon,
|
|
13969
13995
|
"aria-hidden": "true",
|
|
13970
13996
|
initial: !1,
|
|
13971
13997
|
animate: {
|
|
@@ -13973,7 +13999,7 @@ function sg({ ref: e, stickyHeader: t = !1, selectable: n = !1, renderExpandedCo
|
|
|
13973
13999
|
color: s ? "var(--p-color-icon, #4a4a4a)" : "var(--p-color-icon-disabled, #707070)"
|
|
13974
14000
|
},
|
|
13975
14001
|
transition: g,
|
|
13976
|
-
children: /* @__PURE__ */ b(
|
|
14002
|
+
children: /* @__PURE__ */ b(z, {
|
|
13977
14003
|
type: "chevron-right",
|
|
13978
14004
|
size: "small",
|
|
13979
14005
|
style: { color: "inherit" }
|
|
@@ -13983,34 +14009,34 @@ function sg({ ref: e, stickyHeader: t = !1, selectable: n = !1, renderExpandedCo
|
|
|
13983
14009
|
}),
|
|
13984
14010
|
n && /* @__PURE__ */ b("td", {
|
|
13985
14011
|
role: "cell",
|
|
13986
|
-
className:
|
|
13987
|
-
style:
|
|
14012
|
+
className: J.SelectionCell,
|
|
14013
|
+
style: ne,
|
|
13988
14014
|
children: /* @__PURE__ */ b($m, {
|
|
13989
14015
|
label: d("Select {0}", [e.id]),
|
|
13990
14016
|
labelAccessibilityVisibility: "exclusive",
|
|
13991
|
-
checked:
|
|
13992
|
-
indeterminate:
|
|
13993
|
-
disabled: c || !
|
|
13994
|
-
onChange:
|
|
14017
|
+
checked: Re(e),
|
|
14018
|
+
indeterminate: ze(e),
|
|
14019
|
+
disabled: c || !Ie(e),
|
|
14020
|
+
onChange: Ve(e)
|
|
13995
14021
|
})
|
|
13996
14022
|
}),
|
|
13997
14023
|
a.map((e) => /* @__PURE__ */ b("td", {
|
|
13998
14024
|
role: "cell",
|
|
13999
|
-
"data-alignment":
|
|
14000
|
-
...
|
|
14001
|
-
children: /* @__PURE__ */ b(
|
|
14025
|
+
"data-alignment": rg(e.column.columnDef.meta),
|
|
14026
|
+
...N(e.column.id),
|
|
14027
|
+
children: /* @__PURE__ */ b(_e, { cell: e })
|
|
14002
14028
|
}, e.id))
|
|
14003
14029
|
]
|
|
14004
|
-
}), /* @__PURE__ */ b(
|
|
14030
|
+
}), /* @__PURE__ */ b(oe, {
|
|
14005
14031
|
initial: !1,
|
|
14006
|
-
children: s && /* @__PURE__ */ b(
|
|
14032
|
+
children: s && /* @__PURE__ */ b(j.tr, {
|
|
14007
14033
|
role: "row",
|
|
14008
14034
|
children: /* @__PURE__ */ b("td", {
|
|
14009
14035
|
role: "cell",
|
|
14010
|
-
colSpan: a.length + +!!
|
|
14011
|
-
className:
|
|
14012
|
-
children: /* @__PURE__ */ b(
|
|
14013
|
-
className:
|
|
14036
|
+
colSpan: a.length + +!!O + +!!n,
|
|
14037
|
+
className: J.ExpandedCell,
|
|
14038
|
+
children: /* @__PURE__ */ b(j.div, {
|
|
14039
|
+
className: J.ExpandedViewport,
|
|
14014
14040
|
initial: {
|
|
14015
14041
|
height: 0,
|
|
14016
14042
|
opacity: 0
|
|
@@ -14025,110 +14051,110 @@ function sg({ ref: e, stickyHeader: t = !1, selectable: n = !1, renderExpandedCo
|
|
|
14025
14051
|
},
|
|
14026
14052
|
transition: g,
|
|
14027
14053
|
children: /* @__PURE__ */ b("div", {
|
|
14028
|
-
className:
|
|
14029
|
-
style: { paddingInlineStart:
|
|
14054
|
+
className: J.ExpandedContent,
|
|
14055
|
+
style: { paddingInlineStart: `calc(var(--p-table-controls-width, ${ee}px) + 8px)` },
|
|
14030
14056
|
children: i?.(e)
|
|
14031
14057
|
})
|
|
14032
14058
|
})
|
|
14033
14059
|
})
|
|
14034
14060
|
}, `expanded-${e.id}`)
|
|
14035
14061
|
})] }, e.id);
|
|
14036
|
-
}),
|
|
14062
|
+
}), D.length === 0 && /* @__PURE__ */ b("tr", {
|
|
14037
14063
|
role: "row",
|
|
14038
14064
|
children: /* @__PURE__ */ b("td", {
|
|
14039
14065
|
role: "cell",
|
|
14040
|
-
colSpan:
|
|
14041
|
-
className:
|
|
14066
|
+
colSpan: se,
|
|
14067
|
+
className: J.Empty,
|
|
14042
14068
|
children: !c && (l ?? d("No results found"))
|
|
14043
14069
|
})
|
|
14044
14070
|
})]
|
|
14045
|
-
}),
|
|
14071
|
+
}), be = le && /* @__PURE__ */ b("tfoot", {
|
|
14046
14072
|
role: "rowgroup",
|
|
14047
|
-
children:
|
|
14073
|
+
children: ce.map((e) => /* @__PURE__ */ x("tr", {
|
|
14048
14074
|
role: "row",
|
|
14049
14075
|
children: [
|
|
14050
|
-
|
|
14076
|
+
O && /* @__PURE__ */ b("td", {
|
|
14051
14077
|
role: "cell",
|
|
14052
|
-
className:
|
|
14078
|
+
className: J.ExpansionCell
|
|
14053
14079
|
}),
|
|
14054
14080
|
n && /* @__PURE__ */ b("td", {
|
|
14055
14081
|
role: "cell",
|
|
14056
|
-
className:
|
|
14057
|
-
style:
|
|
14082
|
+
className: J.SelectionCell,
|
|
14083
|
+
style: ne
|
|
14058
14084
|
}),
|
|
14059
14085
|
e.headers.map((e) => /* @__PURE__ */ b("td", {
|
|
14060
14086
|
role: "cell",
|
|
14061
14087
|
colSpan: e.colSpan,
|
|
14062
|
-
"data-alignment":
|
|
14063
|
-
...
|
|
14064
|
-
children: e.isPlaceholder ? null : /* @__PURE__ */ b(
|
|
14088
|
+
"data-alignment": rg(e.column.columnDef.meta),
|
|
14089
|
+
...F(e),
|
|
14090
|
+
children: e.isPlaceholder ? null : /* @__PURE__ */ b(_e, { footer: e })
|
|
14065
14091
|
}, e.id))
|
|
14066
14092
|
]
|
|
14067
14093
|
}, e.id))
|
|
14068
|
-
}),
|
|
14069
|
-
|
|
14070
|
-
|
|
14071
|
-
|
|
14094
|
+
}), xe = C.atoms.columnSizing?.get(), Se = A.map(({ column: e }) => {
|
|
14095
|
+
let t = xe != null && Object.hasOwn(xe, e.id) && xe[e.id] != null, n = e.columnDef;
|
|
14096
|
+
return t || n.size != null ? je(e) : void 0;
|
|
14097
|
+
}), Ce = Math.max(0, ...A.map(({ column: e }, t) => Se[t] == null ? e.columnDef.minSize ?? 20 : 0)), we = { minWidth: `max(100%, ${Se.reduce((e, t) => e + (t ?? Ce), ee)}px)` }, Te = /* @__PURE__ */ x("colgroup", { children: [
|
|
14098
|
+
O && /* @__PURE__ */ b("col", { style: { width: ag } }),
|
|
14099
|
+
n && /* @__PURE__ */ b("col", { style: { width: ig } }),
|
|
14100
|
+
A.map((e, t) => /* @__PURE__ */ b("col", { style: { width: Se[t] } }, e.column.id))
|
|
14072
14101
|
] });
|
|
14073
|
-
return /* @__PURE__ */ x(
|
|
14102
|
+
return /* @__PURE__ */ x(P.Root, {
|
|
14074
14103
|
ref: e,
|
|
14075
|
-
className: v("aurora-base",
|
|
14104
|
+
className: v("aurora-base", J.Root),
|
|
14076
14105
|
children: [/* @__PURE__ */ x("div", {
|
|
14077
14106
|
role: "table",
|
|
14078
14107
|
"aria-busy": c,
|
|
14079
14108
|
children: [/* @__PURE__ */ b("div", {
|
|
14080
|
-
ref:
|
|
14081
|
-
className: v(
|
|
14109
|
+
ref: I,
|
|
14110
|
+
className: v(J.HeaderViewport, t && J.StickyHeader),
|
|
14082
14111
|
children: /* @__PURE__ */ x("table", {
|
|
14083
14112
|
role: "presentation",
|
|
14084
|
-
className:
|
|
14085
|
-
style:
|
|
14086
|
-
children: [
|
|
14113
|
+
className: J.Table,
|
|
14114
|
+
style: we,
|
|
14115
|
+
children: [Te, ge]
|
|
14087
14116
|
})
|
|
14088
14117
|
}), /* @__PURE__ */ x("div", {
|
|
14089
|
-
className:
|
|
14090
|
-
children: [/* @__PURE__ */ b(
|
|
14091
|
-
ref:
|
|
14092
|
-
className:
|
|
14093
|
-
tabIndex:
|
|
14118
|
+
className: J.BodyFrame,
|
|
14119
|
+
children: [/* @__PURE__ */ b(P.Viewport, {
|
|
14120
|
+
ref: de,
|
|
14121
|
+
className: J.BodyViewport,
|
|
14122
|
+
tabIndex: -1,
|
|
14094
14123
|
style: {
|
|
14095
14124
|
overflowX: "auto",
|
|
14096
14125
|
overflowY: "hidden"
|
|
14097
14126
|
},
|
|
14098
|
-
children: /* @__PURE__ */ x(
|
|
14127
|
+
children: /* @__PURE__ */ x(P.Content, {
|
|
14099
14128
|
render: /* @__PURE__ */ b("table", { role: "presentation" }),
|
|
14100
|
-
className:
|
|
14101
|
-
style:
|
|
14102
|
-
|
|
14103
|
-
minWidth: "100%"
|
|
14104
|
-
},
|
|
14105
|
-
children: [ye, pe]
|
|
14129
|
+
className: J.Table,
|
|
14130
|
+
style: we,
|
|
14131
|
+
children: [Te, ve]
|
|
14106
14132
|
})
|
|
14107
14133
|
}), c && /* @__PURE__ */ b("div", {
|
|
14108
|
-
className:
|
|
14134
|
+
className: J.LoadingOverlay,
|
|
14109
14135
|
role: "status",
|
|
14110
|
-
children: /* @__PURE__ */ b(
|
|
14136
|
+
children: /* @__PURE__ */ b(R, {})
|
|
14111
14137
|
})]
|
|
14112
14138
|
})]
|
|
14113
14139
|
}), /* @__PURE__ */ x("div", {
|
|
14114
|
-
className:
|
|
14140
|
+
className: J.BottomBar,
|
|
14115
14141
|
children: [
|
|
14116
14142
|
/* @__PURE__ */ b("div", {
|
|
14117
|
-
ref:
|
|
14118
|
-
className:
|
|
14119
|
-
hidden: !
|
|
14143
|
+
ref: fe,
|
|
14144
|
+
className: J.FooterViewport,
|
|
14145
|
+
hidden: !le,
|
|
14120
14146
|
children: /* @__PURE__ */ x("table", {
|
|
14121
14147
|
role: "presentation",
|
|
14122
|
-
className:
|
|
14123
|
-
style:
|
|
14124
|
-
children: [
|
|
14148
|
+
className: J.Table,
|
|
14149
|
+
style: we,
|
|
14150
|
+
children: [Te, be]
|
|
14125
14151
|
})
|
|
14126
14152
|
}),
|
|
14127
|
-
/* @__PURE__ */ b(
|
|
14153
|
+
/* @__PURE__ */ b(P.Scrollbar, {
|
|
14128
14154
|
orientation: "horizontal",
|
|
14129
14155
|
className: "aurora-scrollbar",
|
|
14130
14156
|
style: { position: "relative" },
|
|
14131
|
-
children: /* @__PURE__ */ b(
|
|
14157
|
+
children: /* @__PURE__ */ b(P.Thumb, { className: "aurora-scrollbar-thumb" })
|
|
14132
14158
|
}),
|
|
14133
14159
|
s
|
|
14134
14160
|
]
|
|
@@ -14137,17 +14163,17 @@ function sg({ ref: e, stickyHeader: t = !1, selectable: n = !1, renderExpandedCo
|
|
|
14137
14163
|
}
|
|
14138
14164
|
//#endregion
|
|
14139
14165
|
//#region src/components/Collection/DataReport/hooks/useColumnResizing.ts
|
|
14140
|
-
function
|
|
14141
|
-
let [i, a] = g(), o = n ? e.find(
|
|
14166
|
+
function sg({ columns: e, onResizeStart: t, enabled: n, loading: r }) {
|
|
14167
|
+
let [i, a] = g(), o = n ? e.find(ke) : void 0;
|
|
14142
14168
|
function s(i) {
|
|
14143
14169
|
let { column: o } = i;
|
|
14144
|
-
if (!(i.isPlaceholder || o.columns.length > 0 || !n || o.id === e.at(-1)?.id || !
|
|
14170
|
+
if (!(i.isPlaceholder || o.columns.length > 0 || !n || o.id === e.at(-1)?.id || !Ee(o))) return {
|
|
14145
14171
|
"data-disabled": r || void 0,
|
|
14146
14172
|
onMouseDown(e) {
|
|
14147
|
-
r || e.button !== 0 || (e.preventDefault(), e.stopPropagation(), t(),
|
|
14173
|
+
r || e.button !== 0 || (e.preventDefault(), e.stopPropagation(), t(), Pe(i, e.currentTarget.ownerDocument)(e));
|
|
14148
14174
|
},
|
|
14149
14175
|
onTouchStart(e) {
|
|
14150
|
-
!r && e.touches.length === 1 && (t(),
|
|
14176
|
+
!r && e.touches.length === 1 && (t(), Pe(i, e.currentTarget.ownerDocument)(e));
|
|
14151
14177
|
},
|
|
14152
14178
|
onPointerEnter: () => a(o.id),
|
|
14153
14179
|
onPointerLeave: () => a(void 0)
|
|
@@ -14161,7 +14187,7 @@ function cg({ columns: e, onResizeStart: t, enabled: n, loading: r }) {
|
|
|
14161
14187
|
}
|
|
14162
14188
|
//#endregion
|
|
14163
14189
|
//#region src/components/Collection/DataReport/hooks/useColumnLayout.ts
|
|
14164
|
-
function
|
|
14190
|
+
function cg({ columns: e, viewportRef: t }) {
|
|
14165
14191
|
let [n, r] = g(0), [i, a] = g(() => /* @__PURE__ */ new Map());
|
|
14166
14192
|
p(() => {
|
|
14167
14193
|
let e = t.current, n = e?.ownerDocument.defaultView;
|
|
@@ -14185,7 +14211,7 @@ function lg({ columns: e, viewportRef: t }) {
|
|
|
14185
14211
|
];
|
|
14186
14212
|
}),
|
|
14187
14213
|
l ? o?.[l.id] : null
|
|
14188
|
-
]), f = e.map((e) =>
|
|
14214
|
+
]), f = e.map((e) => je(e));
|
|
14189
14215
|
if (f.length) {
|
|
14190
14216
|
let e = f.length - 1;
|
|
14191
14217
|
if (u !== void 0) {
|
|
@@ -14208,7 +14234,7 @@ function lg({ columns: e, viewportRef: t }) {
|
|
|
14208
14234
|
}
|
|
14209
14235
|
//#endregion
|
|
14210
14236
|
//#region src/components/Collection/DataReport/hooks/useReportVirtualizer.ts
|
|
14211
|
-
function
|
|
14237
|
+
function lg({ contentRef: e, enabled: t, count: n, getItemKey: r }) {
|
|
14212
14238
|
let i = e.current?.ownerDocument.defaultView, [a, o] = g(0), s = Xe({
|
|
14213
14239
|
enabled: t,
|
|
14214
14240
|
count: n,
|
|
@@ -14242,7 +14268,7 @@ function ug({ contentRef: e, enabled: t, count: n, getItemKey: r }) {
|
|
|
14242
14268
|
}
|
|
14243
14269
|
//#endregion
|
|
14244
14270
|
//#region src/components/Collection/DataReport/hooks/useReportInfiniteLoading.ts
|
|
14245
|
-
function
|
|
14271
|
+
function ug({ triggerRef: e, hasMore: t, loading: n, isLoadingMore: r, onLoadMore: i, count: a }) {
|
|
14246
14272
|
let o = d(() => i?.()), s = t && !n && !r && !!i;
|
|
14247
14273
|
u(() => {
|
|
14248
14274
|
let t = e.current, n = t?.ownerDocument.defaultView;
|
|
@@ -14259,7 +14285,7 @@ function dg({ triggerRef: e, hasMore: t, loading: n, isLoadingMore: r, onLoadMor
|
|
|
14259
14285
|
a
|
|
14260
14286
|
]);
|
|
14261
14287
|
}
|
|
14262
|
-
var
|
|
14288
|
+
var Y = {
|
|
14263
14289
|
root: "_root_vqkdy_1",
|
|
14264
14290
|
tableContainer: "_tableContainer_vqkdy_1",
|
|
14265
14291
|
header: "_header_vqkdy_1",
|
|
@@ -14288,7 +14314,7 @@ var X = {
|
|
|
14288
14314
|
};
|
|
14289
14315
|
//#endregion
|
|
14290
14316
|
//#region src/components/Collection/DataReport/DataReport.tsx
|
|
14291
|
-
function
|
|
14317
|
+
function dg({ virtual: e = !1, stickyHeader: n = !1, loading: i = !1, hasMore: a = !1, onLoadMore: o, isLoadingMore: s = !1, emptyState: l, footer: u, ref: d, style: f, className: g, ..._ }) {
|
|
14292
14318
|
let y = gm(), S = t(), C = m(() => {
|
|
14293
14319
|
let e = (t) => t.map((t) => ({
|
|
14294
14320
|
minSize: void 0,
|
|
@@ -14296,13 +14322,13 @@ function fg({ virtual: e = !1, stickyHeader: n = !1, loading: i = !1, hasMore: a
|
|
|
14296
14322
|
..."columns" in t && t.columns ? { columns: e(t.columns) } : {}
|
|
14297
14323
|
}));
|
|
14298
14324
|
return e(_.columns);
|
|
14299
|
-
}, [_.columns]), w =
|
|
14325
|
+
}, [_.columns]), w = ye({
|
|
14300
14326
|
columnResizeDirection: S,
|
|
14301
14327
|
columnResizeMode: "onChange",
|
|
14302
14328
|
..._,
|
|
14303
14329
|
columns: C
|
|
14304
14330
|
}), T = w, E = h(null), D = h(null), O = h(null), k = h(null), ee = m(() => [E, D], []);
|
|
14305
|
-
|
|
14331
|
+
ug({
|
|
14306
14332
|
triggerRef: k,
|
|
14307
14333
|
hasMore: a,
|
|
14308
14334
|
loading: i,
|
|
@@ -14322,68 +14348,68 @@ function fg({ virtual: e = !1, stickyHeader: n = !1, loading: i = !1, hasMore: a
|
|
|
14322
14348
|
}, r = new ResizeObserver(n);
|
|
14323
14349
|
return r.observe(t), t.firstElementChild && r.observe(t.firstElementChild), n(), () => r.disconnect();
|
|
14324
14350
|
}, [S]);
|
|
14325
|
-
let te = We(T),
|
|
14351
|
+
let te = We(T), ne = te ? [
|
|
14326
14352
|
Ge(T),
|
|
14327
|
-
|
|
14353
|
+
He(T),
|
|
14328
14354
|
Ue(T)
|
|
14329
|
-
] : void 0,
|
|
14355
|
+
] : void 0, re = w.getHeaderGroups().map((e, t) => ne ? {
|
|
14330
14356
|
...e,
|
|
14331
|
-
headers:
|
|
14332
|
-
} : e),
|
|
14333
|
-
columns:
|
|
14357
|
+
headers: ne.flatMap((e) => e[t]?.headers ?? [])
|
|
14358
|
+
} : e), ie = re.at(-1)?.headers ?? [], ae = [...re].reverse().filter((e) => e.headers.some((e) => !e.isPlaceholder && e.column.columnDef.footer != null)), A = ie.map(({ column: e }) => e), { columnSizes: oe, onResizeStart: j } = cg({
|
|
14359
|
+
columns: A,
|
|
14334
14360
|
viewportRef: D
|
|
14335
|
-
}),
|
|
14361
|
+
}), se = oe.reduce((e, t) => e + t, 0), ce = /* @__PURE__ */ new Map(), M = 0;
|
|
14336
14362
|
if (te) {
|
|
14337
14363
|
let e = 0;
|
|
14338
|
-
for (let [e, t] of
|
|
14339
|
-
for (let t =
|
|
14340
|
-
let n =
|
|
14341
|
-
|
|
14364
|
+
for (let [e, t] of A.entries()) Oe(t) === "start" && (ce.set(t.id, { insetInlineStart: M }), M += oe[e]);
|
|
14365
|
+
for (let t = A.length - 1; t >= 0; t--) {
|
|
14366
|
+
let n = A[t];
|
|
14367
|
+
Oe(n) === "end" && (ce.set(n.id, { insetInlineEnd: e }), e += oe[t]);
|
|
14342
14368
|
}
|
|
14343
14369
|
}
|
|
14344
|
-
function
|
|
14370
|
+
function le(e) {
|
|
14345
14371
|
let t = e, n = e;
|
|
14346
14372
|
for (; t.subHeaders.length;) t = t.subHeaders[0];
|
|
14347
14373
|
for (; n.subHeaders.length;) n = n.subHeaders.at(-1);
|
|
14348
|
-
return
|
|
14374
|
+
return ce.get(Oe(t.column) === "end" ? n.column.id : t.column.id);
|
|
14349
14375
|
}
|
|
14350
|
-
let { resizing:
|
|
14351
|
-
columns:
|
|
14352
|
-
onResizeStart:
|
|
14376
|
+
let { resizing: ue, activeDivider: N, getResizeHandleProps: F } = sg({
|
|
14377
|
+
columns: A,
|
|
14378
|
+
onResizeStart: j,
|
|
14353
14379
|
enabled: !!_.features.columnResizingFeature,
|
|
14354
14380
|
loading: i
|
|
14355
|
-
}),
|
|
14381
|
+
}), I = w.getRowModel().rows, de = !!_.features.rowExpandingFeature, fe = c((e) => I[e].id, [I]), pe = lg({
|
|
14356
14382
|
contentRef: O,
|
|
14357
14383
|
enabled: e,
|
|
14358
|
-
count:
|
|
14359
|
-
getItemKey:
|
|
14360
|
-
}),
|
|
14361
|
-
function
|
|
14362
|
-
let n =
|
|
14384
|
+
count: I.length,
|
|
14385
|
+
getItemKey: fe
|
|
14386
|
+
}), me = pe.getVirtualItems(), he = pe.options.scrollMargin ?? 0;
|
|
14387
|
+
function ge(t) {
|
|
14388
|
+
let n = I[t], r = n.getAllCellsByColumnId(), a = de && Fe(n), o = de && Le(n);
|
|
14363
14389
|
return /* @__PURE__ */ b("div", {
|
|
14364
|
-
ref: e ?
|
|
14390
|
+
ref: e ? pe.measureElement : void 0,
|
|
14365
14391
|
"data-index": e ? t : void 0,
|
|
14366
|
-
className: v(
|
|
14367
|
-
children:
|
|
14368
|
-
let s = r[e.id], c =
|
|
14392
|
+
className: v(Y.gridRow, Y.row),
|
|
14393
|
+
children: ie.map(({ column: e }, t) => {
|
|
14394
|
+
let s = r[e.id], c = ce.get(e.id);
|
|
14369
14395
|
return /* @__PURE__ */ x("div", {
|
|
14370
|
-
className: v(
|
|
14371
|
-
"data-alignment":
|
|
14372
|
-
"data-resize-active":
|
|
14396
|
+
className: v(Y.cell, c && Y.pinned),
|
|
14397
|
+
"data-alignment": rg(e.columnDef.meta),
|
|
14398
|
+
"data-resize-active": N === e.id || void 0,
|
|
14373
14399
|
style: {
|
|
14374
|
-
...t === 0 &&
|
|
14400
|
+
...t === 0 && de && _.getSubRows ? { paddingInlineStart: 12 + n.depth * 20 } : void 0,
|
|
14375
14401
|
...c
|
|
14376
14402
|
},
|
|
14377
14403
|
children: [/* @__PURE__ */ b("div", {
|
|
14378
|
-
className:
|
|
14379
|
-
children: /* @__PURE__ */ b(
|
|
14404
|
+
className: Y.value,
|
|
14405
|
+
children: /* @__PURE__ */ b(_e, { cell: s })
|
|
14380
14406
|
}), t === 0 && a && /* @__PURE__ */ b("button", {
|
|
14381
14407
|
type: "button",
|
|
14382
|
-
className:
|
|
14408
|
+
className: Y.expandButton,
|
|
14383
14409
|
"data-expanded": o,
|
|
14384
14410
|
disabled: i,
|
|
14385
|
-
onClick:
|
|
14386
|
-
children: /* @__PURE__ */ b(
|
|
14411
|
+
onClick: Be(n),
|
|
14412
|
+
children: /* @__PURE__ */ b(z, {
|
|
14387
14413
|
color: o ? "base" : "subdued",
|
|
14388
14414
|
type: o ? "chevron-down" : "chevron-right"
|
|
14389
14415
|
})
|
|
@@ -14392,136 +14418,136 @@ function fg({ virtual: e = !1, stickyHeader: n = !1, loading: i = !1, hasMore: a
|
|
|
14392
14418
|
})
|
|
14393
14419
|
}, n.id);
|
|
14394
14420
|
}
|
|
14395
|
-
let
|
|
14421
|
+
let ve = (e) => e > 0 ? /* @__PURE__ */ b("div", {
|
|
14396
14422
|
"aria-hidden": "true",
|
|
14397
14423
|
style: { height: e }
|
|
14398
14424
|
}) : null;
|
|
14399
|
-
return /* @__PURE__ */ x(
|
|
14425
|
+
return /* @__PURE__ */ x(P.Root, {
|
|
14400
14426
|
ref: d,
|
|
14401
|
-
className: v("aurora-base",
|
|
14427
|
+
className: v("aurora-base", Y.root, g),
|
|
14402
14428
|
style: {
|
|
14403
|
-
"--report-columns":
|
|
14404
|
-
"--report-width":
|
|
14405
|
-
"--report-pinned-start-width":
|
|
14429
|
+
"--report-columns": oe.map((e) => e + "px").join(" "),
|
|
14430
|
+
"--report-width": se ? se + "px" : "100%",
|
|
14431
|
+
"--report-pinned-start-width": M + "px",
|
|
14406
14432
|
...f
|
|
14407
14433
|
},
|
|
14408
|
-
"data-resizing":
|
|
14434
|
+
"data-resizing": ue ? "" : void 0,
|
|
14409
14435
|
children: [
|
|
14410
14436
|
/* @__PURE__ */ x("div", {
|
|
14411
|
-
className:
|
|
14437
|
+
className: Y.tableContainer,
|
|
14412
14438
|
children: [/* @__PURE__ */ b("div", {
|
|
14413
|
-
className: v(
|
|
14439
|
+
className: v(Y.header, n && Y.stickyHeader),
|
|
14414
14440
|
children: /* @__PURE__ */ x("div", {
|
|
14415
14441
|
ref: E,
|
|
14416
|
-
className:
|
|
14417
|
-
children: [
|
|
14418
|
-
className:
|
|
14442
|
+
className: Y.horizontalScroll,
|
|
14443
|
+
children: [re.map((e) => /* @__PURE__ */ b("div", {
|
|
14444
|
+
className: Y.gridRow,
|
|
14419
14445
|
children: e.headers.map((e) => {
|
|
14420
|
-
let { column: t } = e, n = t.columnDef, r = !e.isPlaceholder && t.columns.length === 0 && !!_.features.rowSortingFeature &&
|
|
14446
|
+
let { column: t } = e, n = t.columnDef, r = !e.isPlaceholder && t.columns.length === 0 && !!_.features.rowSortingFeature && De(t), a = r && Ae(t), o = F(e), s = le(e), c = e.isPlaceholder ? null : /* @__PURE__ */ b(_e, { header: e });
|
|
14421
14447
|
return /* @__PURE__ */ x("div", {
|
|
14422
|
-
className: v(
|
|
14448
|
+
className: v(Y.heading, s && Y.pinned),
|
|
14423
14449
|
style: {
|
|
14424
14450
|
gridColumn: "span " + e.colSpan,
|
|
14425
14451
|
...s
|
|
14426
14452
|
},
|
|
14427
|
-
"data-resize-active":
|
|
14428
|
-
"data-alignment":
|
|
14453
|
+
"data-resize-active": N === t.id || void 0,
|
|
14454
|
+
"data-alignment": rg(n.meta),
|
|
14429
14455
|
children: [r ? /* @__PURE__ */ b("button", {
|
|
14430
14456
|
type: "button",
|
|
14431
|
-
className:
|
|
14457
|
+
className: Y.sortButton,
|
|
14432
14458
|
disabled: i,
|
|
14433
|
-
onClick:
|
|
14459
|
+
onClick: Me(t),
|
|
14434
14460
|
children: /* @__PURE__ */ x("span", {
|
|
14435
|
-
className:
|
|
14461
|
+
className: Y.headingLabel,
|
|
14436
14462
|
children: [/* @__PURE__ */ b("span", {
|
|
14437
|
-
className:
|
|
14463
|
+
className: Y.headingText,
|
|
14438
14464
|
children: c
|
|
14439
|
-
}), /* @__PURE__ */ b(
|
|
14465
|
+
}), /* @__PURE__ */ b(z, {
|
|
14440
14466
|
type: a === "desc" ? "sort-descending" : "sort-ascending",
|
|
14441
|
-
className: v(
|
|
14467
|
+
className: v(Y.sortIcon, a && Y.activeSort)
|
|
14442
14468
|
})]
|
|
14443
14469
|
})
|
|
14444
14470
|
}) : /* @__PURE__ */ b("span", {
|
|
14445
|
-
className:
|
|
14471
|
+
className: Y.headingLabel,
|
|
14446
14472
|
children: c
|
|
14447
14473
|
}), o && /* @__PURE__ */ b("div", {
|
|
14448
14474
|
...o,
|
|
14449
|
-
className:
|
|
14475
|
+
className: Y.resizeHandle
|
|
14450
14476
|
})]
|
|
14451
14477
|
}, e.id);
|
|
14452
14478
|
})
|
|
14453
|
-
}, e.id)),
|
|
14454
|
-
className: v(
|
|
14479
|
+
}, e.id)), ae.map((e) => /* @__PURE__ */ b("div", {
|
|
14480
|
+
className: v(Y.gridRow, Y.totals),
|
|
14455
14481
|
children: e.headers.map((e) => {
|
|
14456
|
-
let t =
|
|
14482
|
+
let t = le(e);
|
|
14457
14483
|
return /* @__PURE__ */ b("div", {
|
|
14458
|
-
className: v(
|
|
14459
|
-
"data-resize-active":
|
|
14460
|
-
"data-alignment":
|
|
14484
|
+
className: v(Y.cell, t && Y.pinned),
|
|
14485
|
+
"data-resize-active": N === e.column.id || void 0,
|
|
14486
|
+
"data-alignment": rg(e.column.columnDef.meta),
|
|
14461
14487
|
style: {
|
|
14462
14488
|
gridColumn: "span " + e.colSpan,
|
|
14463
14489
|
...t
|
|
14464
14490
|
},
|
|
14465
14491
|
children: /* @__PURE__ */ b("div", {
|
|
14466
|
-
className:
|
|
14467
|
-
children: e.isPlaceholder ? null : /* @__PURE__ */ b(
|
|
14492
|
+
className: Y.value,
|
|
14493
|
+
children: e.isPlaceholder ? null : /* @__PURE__ */ b(_e, { footer: e })
|
|
14468
14494
|
})
|
|
14469
14495
|
}, e.id);
|
|
14470
14496
|
})
|
|
14471
14497
|
}, e.id))]
|
|
14472
14498
|
})
|
|
14473
14499
|
}), /* @__PURE__ */ x("div", {
|
|
14474
|
-
className:
|
|
14475
|
-
children: [/* @__PURE__ */ b(
|
|
14500
|
+
className: Y.bodyFrame,
|
|
14501
|
+
children: [/* @__PURE__ */ b(P.Viewport, {
|
|
14476
14502
|
ref: D,
|
|
14477
|
-
className:
|
|
14503
|
+
className: Y.horizontalScroll,
|
|
14478
14504
|
tabIndex: 0,
|
|
14479
|
-
children: /* @__PURE__ */ x(
|
|
14505
|
+
children: /* @__PURE__ */ x(P.Content, {
|
|
14480
14506
|
ref: O,
|
|
14481
|
-
className:
|
|
14507
|
+
className: Y.content,
|
|
14482
14508
|
children: [
|
|
14483
|
-
e ?
|
|
14484
|
-
e &&
|
|
14485
|
-
!
|
|
14486
|
-
className:
|
|
14509
|
+
e ? me.map((e, t) => /* @__PURE__ */ x(r, { children: [ve(e.start - (me[t - 1]?.end ?? he)), ge(e.index)] }, e.key)) : I.map((e, t) => /* @__PURE__ */ b(r, { children: ge(t) }, e.id)),
|
|
14510
|
+
e && ve(pe.getTotalSize() - ((me.at(-1)?.end ?? he) - he)),
|
|
14511
|
+
!I.length && /* @__PURE__ */ b("div", {
|
|
14512
|
+
className: Y.gridRow,
|
|
14487
14513
|
children: /* @__PURE__ */ b("div", {
|
|
14488
|
-
className:
|
|
14514
|
+
className: Y.empty,
|
|
14489
14515
|
children: !i && !s && !a && (l ?? y("No data to display"))
|
|
14490
14516
|
})
|
|
14491
14517
|
})
|
|
14492
14518
|
]
|
|
14493
14519
|
})
|
|
14494
14520
|
}), i && /* @__PURE__ */ b("div", {
|
|
14495
|
-
className:
|
|
14521
|
+
className: Y.loading,
|
|
14496
14522
|
children: /* @__PURE__ */ b("div", {
|
|
14497
14523
|
className: "mx-auto py-5",
|
|
14498
|
-
children: /* @__PURE__ */ b(
|
|
14524
|
+
children: /* @__PURE__ */ b(R, {})
|
|
14499
14525
|
})
|
|
14500
14526
|
})]
|
|
14501
14527
|
})]
|
|
14502
14528
|
}),
|
|
14503
14529
|
(a || s) && /* @__PURE__ */ b("div", {
|
|
14504
14530
|
ref: k,
|
|
14505
|
-
className:
|
|
14531
|
+
className: Y.loadMore,
|
|
14506
14532
|
"aria-busy": s,
|
|
14507
14533
|
children: s && /* @__PURE__ */ b("div", {
|
|
14508
14534
|
className: "py-5",
|
|
14509
|
-
children: /* @__PURE__ */ b(
|
|
14535
|
+
children: /* @__PURE__ */ b(R, {})
|
|
14510
14536
|
})
|
|
14511
14537
|
}),
|
|
14512
14538
|
/* @__PURE__ */ x("div", {
|
|
14513
|
-
className:
|
|
14514
|
-
children: [/* @__PURE__ */ b(
|
|
14539
|
+
className: Y.bottomBar,
|
|
14540
|
+
children: [/* @__PURE__ */ b(P.Scrollbar, {
|
|
14515
14541
|
orientation: "horizontal",
|
|
14516
14542
|
className: "aurora-scrollbar",
|
|
14517
14543
|
style: { position: "relative" },
|
|
14518
|
-
children: /* @__PURE__ */ b(
|
|
14544
|
+
children: /* @__PURE__ */ b(P.Thumb, { className: "aurora-scrollbar-thumb" })
|
|
14519
14545
|
}), u]
|
|
14520
14546
|
})
|
|
14521
14547
|
]
|
|
14522
14548
|
});
|
|
14523
14549
|
}
|
|
14524
|
-
var
|
|
14550
|
+
var fg = {
|
|
14525
14551
|
Cell: "_Cell_622ax_1",
|
|
14526
14552
|
Content: "_Content_622ax_12",
|
|
14527
14553
|
Value: "_Value_622ax_22",
|
|
@@ -14529,20 +14555,20 @@ var pg = {
|
|
|
14529
14555
|
Prefix: "_Prefix_622ax_68",
|
|
14530
14556
|
Suffix: "_Suffix_622ax_69",
|
|
14531
14557
|
Spinner: "_Spinner_622ax_70"
|
|
14532
|
-
},
|
|
14558
|
+
}, pg = [
|
|
14533
14559
|
"top",
|
|
14534
14560
|
"bottom",
|
|
14535
14561
|
"start",
|
|
14536
14562
|
"end"
|
|
14537
14563
|
];
|
|
14538
|
-
function
|
|
14539
|
-
let m = s(u) && u.type !== r ? i(u, { className: v(
|
|
14540
|
-
className:
|
|
14564
|
+
function mg({ selected: e = !1, readOnly: t, selectionEdges: n = pg, dirty: a = !1, busy: o, error: c, className: l, children: u, prefix: d, suffix: f, ...p }) {
|
|
14565
|
+
let m = s(u) && u.type !== r ? i(u, { className: v(fg.Control, u.props.className) }) : /* @__PURE__ */ b("span", {
|
|
14566
|
+
className: fg.Control,
|
|
14541
14567
|
children: u
|
|
14542
14568
|
});
|
|
14543
14569
|
return /* @__PURE__ */ b("td", {
|
|
14544
14570
|
...p,
|
|
14545
|
-
className: v("aurora-base",
|
|
14571
|
+
className: v("aurora-base", fg.Cell, l),
|
|
14546
14572
|
"data-grid-cell": "",
|
|
14547
14573
|
"data-selected": e || void 0,
|
|
14548
14574
|
"data-readonly": t || void 0,
|
|
@@ -14551,23 +14577,23 @@ function hg({ selected: e = !1, readOnly: t, selectionEdges: n = mg, dirty: a =
|
|
|
14551
14577
|
"data-busy": o || void 0,
|
|
14552
14578
|
"data-error": c || void 0,
|
|
14553
14579
|
children: /* @__PURE__ */ x("div", {
|
|
14554
|
-
className:
|
|
14580
|
+
className: fg.Content,
|
|
14555
14581
|
children: [
|
|
14556
14582
|
d != null && /* @__PURE__ */ b("span", {
|
|
14557
|
-
className:
|
|
14583
|
+
className: fg.Prefix,
|
|
14558
14584
|
children: d
|
|
14559
14585
|
}),
|
|
14560
14586
|
/* @__PURE__ */ b("div", {
|
|
14561
|
-
className:
|
|
14587
|
+
className: fg.Value,
|
|
14562
14588
|
children: m
|
|
14563
14589
|
}),
|
|
14564
14590
|
f != null && /* @__PURE__ */ b("span", {
|
|
14565
|
-
className:
|
|
14591
|
+
className: fg.Suffix,
|
|
14566
14592
|
children: f
|
|
14567
14593
|
}),
|
|
14568
14594
|
o && /* @__PURE__ */ b("span", {
|
|
14569
|
-
className:
|
|
14570
|
-
children: /* @__PURE__ */ b(
|
|
14595
|
+
className: fg.Spinner,
|
|
14596
|
+
children: /* @__PURE__ */ b(R, {})
|
|
14571
14597
|
})
|
|
14572
14598
|
]
|
|
14573
14599
|
})
|
|
@@ -14575,24 +14601,24 @@ function hg({ selected: e = !1, readOnly: t, selectionEdges: n = mg, dirty: a =
|
|
|
14575
14601
|
}
|
|
14576
14602
|
//#endregion
|
|
14577
14603
|
//#region src/components/Collection/DataGrid/hooks/useGridColumnResizing.ts
|
|
14578
|
-
function
|
|
14579
|
-
let [r, i] = g(), a = t ? e.getAllFlatColumns().find(
|
|
14604
|
+
function hg({ table: e, enabled: t, direction: n }) {
|
|
14605
|
+
let [r, i] = g(), a = t ? e.getAllFlatColumns().find(ke) : void 0;
|
|
14580
14606
|
function o(e) {
|
|
14581
14607
|
let { column: r } = e;
|
|
14582
|
-
if (!(!e.isPlaceholder && r.columns.length === 0 && t &&
|
|
14583
|
-
let a =
|
|
14608
|
+
if (!(!e.isPlaceholder && r.columns.length === 0 && t && Ee(r))) return;
|
|
14609
|
+
let a = je(r), { minSize: o = 80, maxSize: s = 2 ** 53 - 1 } = r.columnDef;
|
|
14584
14610
|
return {
|
|
14585
14611
|
role: "separator",
|
|
14586
14612
|
tabIndex: 0,
|
|
14587
14613
|
onMouseDown(t) {
|
|
14588
|
-
t.button === 0 && (t.preventDefault(), t.stopPropagation(),
|
|
14614
|
+
t.button === 0 && (t.preventDefault(), t.stopPropagation(), Pe(e)(t));
|
|
14589
14615
|
},
|
|
14590
|
-
onTouchStart:
|
|
14616
|
+
onTouchStart: Pe(e),
|
|
14591
14617
|
onPointerEnter: () => i(r.id),
|
|
14592
14618
|
onPointerLeave: () => i(void 0),
|
|
14593
14619
|
onFocus: () => i(r.id),
|
|
14594
14620
|
onBlur: () => i(void 0),
|
|
14595
|
-
onDoubleClick: () =>
|
|
14621
|
+
onDoubleClick: () => Ne(r),
|
|
14596
14622
|
onKeyDown(e) {
|
|
14597
14623
|
let t = (e.shiftKey ? 50 : 10) * (n === "rtl" ? -1 : 1), i = e.key === "ArrowRight" ? a + t : e.key === "ArrowLeft" ? a - t : e.key === "Home" ? o : e.key === "End" ? s : void 0;
|
|
14598
14624
|
i !== void 0 && (e.preventDefault(), qe(r.table, (e) => ({
|
|
@@ -14610,11 +14636,11 @@ function gg({ table: e, enabled: t, direction: n }) {
|
|
|
14610
14636
|
}
|
|
14611
14637
|
//#endregion
|
|
14612
14638
|
//#region src/components/Collection/DataGrid/hooks/useGridDragSelection.ts
|
|
14613
|
-
var
|
|
14614
|
-
function
|
|
14615
|
-
return e <
|
|
14639
|
+
var gg = 24, _g = 18;
|
|
14640
|
+
function vg(e, t) {
|
|
14641
|
+
return e < gg ? -18 * Math.min(1, (gg - e) / gg) : e > t - gg ? _g * Math.min(1, (e - t + gg) / gg) : 0;
|
|
14616
14642
|
}
|
|
14617
|
-
function
|
|
14643
|
+
function yg({ tableRef: e, onExtend: t }) {
|
|
14618
14644
|
let [n, r] = g(!1), i = h(t), a = h(void 0);
|
|
14619
14645
|
return u(() => {
|
|
14620
14646
|
i.current = t;
|
|
@@ -14640,7 +14666,7 @@ function bg({ tableRef: e, onExtend: t }) {
|
|
|
14640
14666
|
if (!f) return;
|
|
14641
14667
|
let e = n.tBodies[0]?.getBoundingClientRect();
|
|
14642
14668
|
if (e) {
|
|
14643
|
-
let t = n.getBoundingClientRect(), r = Math.max(0, n.tHead?.getBoundingClientRect().bottom ?? 0), i =
|
|
14669
|
+
let t = n.getBoundingClientRect(), r = Math.max(0, n.tHead?.getBoundingClientRect().bottom ?? 0), i = vg(c, s.innerWidth), a = vg(l, s.innerHeight), o = Math.max(Math.min(0, t.left), Math.min(Math.max(0, t.right - s.innerWidth), i)), u = Math.max(Math.min(0, e.top - r), Math.min(Math.max(0, e.bottom - s.innerHeight), a));
|
|
14644
14670
|
(o || u) && s.scrollBy({
|
|
14645
14671
|
left: o,
|
|
14646
14672
|
top: u,
|
|
@@ -14661,16 +14687,16 @@ function bg({ tableRef: e, onExtend: t }) {
|
|
|
14661
14687
|
}
|
|
14662
14688
|
//#endregion
|
|
14663
14689
|
//#region src/components/Collection/DataGrid/hooks/useGridSelection.ts
|
|
14664
|
-
function
|
|
14690
|
+
function bg(e) {
|
|
14665
14691
|
let t = e.querySelector("input:not(:disabled):not([readonly]), textarea:not(:disabled):not([readonly]), select:not(:disabled), [contenteditable=\"true\"]");
|
|
14666
14692
|
t?.focus(), t?.matches("input, textarea") && t.select();
|
|
14667
14693
|
}
|
|
14668
|
-
function
|
|
14669
|
-
let [n, r] = g(), [i, a] = g(), o = h(!1), s =
|
|
14694
|
+
function xg({ table: e, tableRef: t }) {
|
|
14695
|
+
let [n, r] = g(), [i, a] = g(), o = h(!1), s = yg({
|
|
14670
14696
|
tableRef: t,
|
|
14671
14697
|
onExtend(t) {
|
|
14672
14698
|
let n = e.getRowModel().rowsById[t.dataset.rowId ?? ""]?.getAllCellsByColumnId()[t.dataset.columnId ?? ""];
|
|
14673
|
-
n &&
|
|
14699
|
+
n && we(n)(void 0);
|
|
14674
14700
|
}
|
|
14675
14701
|
});
|
|
14676
14702
|
function c(e) {
|
|
@@ -14680,14 +14706,14 @@ function Sg({ table: e, tableRef: t }) {
|
|
|
14680
14706
|
let t = {
|
|
14681
14707
|
rowId: e.row.id,
|
|
14682
14708
|
columnId: e.column.id
|
|
14683
|
-
}, r =
|
|
14709
|
+
}, r = be(e), i = Se(e), l = Ce(e), u = [];
|
|
14684
14710
|
return l.top && u.push("top"), l.bottom && u.push("bottom"), l.left && u.push("start"), l.right && u.push("end"), {
|
|
14685
14711
|
canSelect: r,
|
|
14686
14712
|
isEditing: n?.rowId === e.row.id && n.columnId === e.column.id,
|
|
14687
14713
|
props: {
|
|
14688
14714
|
selected: i,
|
|
14689
14715
|
selectionEdges: u,
|
|
14690
|
-
tabIndex: r &&
|
|
14716
|
+
tabIndex: r && xe(e) ? 0 : -1,
|
|
14691
14717
|
onFocus(n) {
|
|
14692
14718
|
a(e.row.id), n.target !== n.currentTarget && c(t);
|
|
14693
14719
|
},
|
|
@@ -14699,16 +14725,16 @@ function Sg({ table: e, tableRef: t }) {
|
|
|
14699
14725
|
let n = t.target, a = n.closest("[role=\"combobox\"], [aria-haspopup]:not([aria-haspopup=\"false\"])");
|
|
14700
14726
|
if (!a && n.closest("a, button, select, summary, [role=\"button\"], input[type=\"checkbox\"], input[type=\"radio\"], input[type=\"range\"]")) return;
|
|
14701
14727
|
let c = n.closest("input, textarea, [contenteditable=\"true\"], [role=\"textbox\"]");
|
|
14702
|
-
!t.shiftKey && !t.ctrlKey && !t.metaKey && (a ? i && t.currentTarget.contains(t.currentTarget.ownerDocument.activeElement) : c && (c === t.currentTarget.ownerDocument.activeElement || t.detail > 1)) || (t.preventDefault(), a && t.stopPropagation(), o.current = !0,
|
|
14728
|
+
!t.shiftKey && !t.ctrlKey && !t.metaKey && (a ? i && t.currentTarget.contains(t.currentTarget.ownerDocument.activeElement) : c && (c === t.currentTarget.ownerDocument.activeElement || t.detail > 1)) || (t.preventDefault(), a && t.stopPropagation(), o.current = !0, Te(e, t.currentTarget.ownerDocument)(t), t.currentTarget.focus({ preventScroll: !0 }), s.start(t));
|
|
14703
14729
|
},
|
|
14704
14730
|
onClickCapture(e) {
|
|
14705
14731
|
o.current && e.detail > 0 && (o.current = !1, e.preventDefault(), e.stopPropagation());
|
|
14706
14732
|
},
|
|
14707
14733
|
onDoubleClick(e) {
|
|
14708
|
-
!e.defaultPrevented && e.button === 0 && r && !e.target.closest("a, button, select, summary, [role=\"button\"], [role=\"combobox\"], input[type=\"checkbox\"], input[type=\"radio\"], input[type=\"range\"]") &&
|
|
14734
|
+
!e.defaultPrevented && e.button === 0 && r && !e.target.closest("a, button, select, summary, [role=\"button\"], [role=\"combobox\"], input[type=\"checkbox\"], input[type=\"radio\"], input[type=\"range\"]") && bg(e.currentTarget);
|
|
14709
14735
|
},
|
|
14710
14736
|
onKeyDown(t) {
|
|
14711
|
-
t.defaultPrevented || t.nativeEvent.isComposing || (t.key === "Escape" ? (t.preventDefault(), t.target === t.currentTarget ? Ke(e.table, !0) : t.currentTarget.focus()) : t.target === t.currentTarget && (t.key === "Enter" || t.key === "F2") && (t.preventDefault(),
|
|
14737
|
+
t.defaultPrevented || t.nativeEvent.isComposing || (t.key === "Escape" ? (t.preventDefault(), t.target === t.currentTarget ? Ke(e.table, !0) : t.currentTarget.focus()) : t.target === t.currentTarget && (t.key === "Enter" || t.key === "F2") && (t.preventDefault(), bg(t.currentTarget)));
|
|
14712
14738
|
}
|
|
14713
14739
|
}
|
|
14714
14740
|
};
|
|
@@ -14721,7 +14747,7 @@ function Sg({ table: e, tableRef: t }) {
|
|
|
14721
14747
|
}
|
|
14722
14748
|
//#endregion
|
|
14723
14749
|
//#region src/components/Collection/DataGrid/hooks/useGridVirtualizer.ts
|
|
14724
|
-
function
|
|
14750
|
+
function Sg({ tableRef: e, enabled: t, count: n, getItemKey: r, focusedRowIndex: i }) {
|
|
14725
14751
|
let a = e.current?.ownerDocument.defaultView, [o, s] = g(0), l = c((e) => {
|
|
14726
14752
|
let t = new Set(Ye(e));
|
|
14727
14753
|
if (i >= 0 && i < e.count) for (let n = Math.max(0, i - 1); n <= Math.min(e.count - 1, i + 1); n++) t.add(n);
|
|
@@ -14762,11 +14788,11 @@ function Cg({ tableRef: e, enabled: t, count: n, getItemKey: r, focusedRowIndex:
|
|
|
14762
14788
|
}
|
|
14763
14789
|
//#endregion
|
|
14764
14790
|
//#region src/components/Collection/DataGrid/hooks/useGrid.ts
|
|
14765
|
-
function
|
|
14791
|
+
function Cg(e) {
|
|
14766
14792
|
let { virtual: n = !1, stickyHeader: r = !1, updates: i } = e, a = t(), o = m(() => ({
|
|
14767
14793
|
...e.features,
|
|
14768
|
-
cellSelectionFeature:
|
|
14769
|
-
}), [e.features]), s =
|
|
14794
|
+
cellSelectionFeature: ve
|
|
14795
|
+
}), [e.features]), s = ye({
|
|
14770
14796
|
autoResetCellSelection: !1,
|
|
14771
14797
|
columnResizeDirection: a,
|
|
14772
14798
|
columnResizeMode: "onChange",
|
|
@@ -14776,20 +14802,20 @@ function wg(e) {
|
|
|
14776
14802
|
...e.defaultColumn
|
|
14777
14803
|
},
|
|
14778
14804
|
features: o
|
|
14779
|
-
}), l = h(null), u = s.getRowModel().rows, d =
|
|
14805
|
+
}), l = h(null), u = s.getRowModel().rows, d = xg({
|
|
14780
14806
|
table: s,
|
|
14781
14807
|
tableRef: l
|
|
14782
|
-
}), f = m(() => u.findIndex((e) => e.id === d.activeRowId), [u, d.activeRowId]), p = c((e) => u[e].id, [u]), g =
|
|
14808
|
+
}), f = m(() => u.findIndex((e) => e.id === d.activeRowId), [u, d.activeRowId]), p = c((e) => u[e].id, [u]), g = Sg({
|
|
14783
14809
|
tableRef: l,
|
|
14784
14810
|
enabled: n,
|
|
14785
14811
|
count: u.length,
|
|
14786
14812
|
getItemKey: p,
|
|
14787
14813
|
focusedRowIndex: f
|
|
14788
|
-
}), _ =
|
|
14814
|
+
}), _ = hg({
|
|
14789
14815
|
table: s,
|
|
14790
14816
|
enabled: !!e.features.columnResizingFeature,
|
|
14791
14817
|
direction: a
|
|
14792
|
-
}), v = s.getHeaderGroups(), y = v.at(-1)?.headers ?? [], b = y.map(({ column: e }) =>
|
|
14818
|
+
}), v = s.getHeaderGroups(), y = v.at(-1)?.headers ?? [], b = y.map(({ column: e }) => je(e)), x = s.getFooterGroups().filter((e) => e.headers.some((e) => !e.isPlaceholder && e.column.columnDef.footer != null)), S = m(() => {
|
|
14793
14819
|
let e = /* @__PURE__ */ new Map();
|
|
14794
14820
|
for (let [t, n] of i ?? []) {
|
|
14795
14821
|
let r = e.get(t.rowId);
|
|
@@ -14835,7 +14861,7 @@ function wg(e) {
|
|
|
14835
14861
|
getCell: C
|
|
14836
14862
|
};
|
|
14837
14863
|
}
|
|
14838
|
-
var
|
|
14864
|
+
var wg = {
|
|
14839
14865
|
Table: "_Table_g0ck7_1",
|
|
14840
14866
|
Header: "_Header_g0ck7_6",
|
|
14841
14867
|
Cell: "_Cell_g0ck7_6",
|
|
@@ -14846,8 +14872,8 @@ var Tg = {
|
|
|
14846
14872
|
};
|
|
14847
14873
|
//#endregion
|
|
14848
14874
|
//#region src/components/Collection/DataGrid/DataGrid.tsx
|
|
14849
|
-
function
|
|
14850
|
-
let { virtual: t, stickyHeader: n, tableRef: i, rows: a, headerGroups: s, leafHeaders: c, columnWidths: l, tableWidth: u, footerGroups: d, virtualizer: f, virtualRows: p, scrollMargin: m, dragging: h, resizing: g, activeDivider: _, getCell: y, getResizeHandleProps: S } =
|
|
14875
|
+
function Tg(e) {
|
|
14876
|
+
let { virtual: t, stickyHeader: n, tableRef: i, rows: a, headerGroups: s, leafHeaders: c, columnWidths: l, tableWidth: u, footerGroups: d, virtualizer: f, virtualRows: p, scrollMargin: m, dragging: h, resizing: g, activeDivider: _, getCell: y, getResizeHandleProps: S } = Cg(e);
|
|
14851
14877
|
function C(e) {
|
|
14852
14878
|
let n = a[e], r = "getVisibleCells" in n ? n.getVisibleCells() : n.getAllCells();
|
|
14853
14879
|
return /* @__PURE__ */ b("tr", {
|
|
@@ -14855,12 +14881,12 @@ function Eg(e) {
|
|
|
14855
14881
|
"data-index": t ? e : void 0,
|
|
14856
14882
|
children: r.map((e) => {
|
|
14857
14883
|
let { canSelect: t, renderedCell: n, props: r } = y(e);
|
|
14858
|
-
return /* @__PURE__ */ o(
|
|
14884
|
+
return /* @__PURE__ */ o(mg, {
|
|
14859
14885
|
...r,
|
|
14860
14886
|
key: e.id,
|
|
14861
|
-
className: v(
|
|
14862
|
-
"data-alignment":
|
|
14863
|
-
}, /* @__PURE__ */ b(
|
|
14887
|
+
className: v(wg.Cell, t && wg.RangeCell),
|
|
14888
|
+
"data-alignment": rg(e.column.columnDef.meta)
|
|
14889
|
+
}, /* @__PURE__ */ b(_e, { cell: n }));
|
|
14864
14890
|
})
|
|
14865
14891
|
}, n.id);
|
|
14866
14892
|
}
|
|
@@ -14874,7 +14900,7 @@ function Eg(e) {
|
|
|
14874
14900
|
}) }) : null;
|
|
14875
14901
|
return /* @__PURE__ */ x("table", {
|
|
14876
14902
|
ref: i,
|
|
14877
|
-
className: v("aurora-base",
|
|
14903
|
+
className: v("aurora-base", wg.Table),
|
|
14878
14904
|
"data-dragging": h || void 0,
|
|
14879
14905
|
"data-resizing": g ? "" : void 0,
|
|
14880
14906
|
style: {
|
|
@@ -14886,39 +14912,39 @@ function Eg(e) {
|
|
|
14886
14912
|
children: [
|
|
14887
14913
|
/* @__PURE__ */ b("colgroup", { children: c.map((e, t) => /* @__PURE__ */ b("col", { style: { width: l[t] } }, e.column.id)) }),
|
|
14888
14914
|
/* @__PURE__ */ b("thead", {
|
|
14889
|
-
className: n ?
|
|
14915
|
+
className: n ? wg.StickyHeader : void 0,
|
|
14890
14916
|
children: s.map((e) => /* @__PURE__ */ b("tr", { children: e.headers.map((e) => {
|
|
14891
14917
|
let t = S(e);
|
|
14892
14918
|
return /* @__PURE__ */ x("th", {
|
|
14893
|
-
className:
|
|
14919
|
+
className: wg.Header,
|
|
14894
14920
|
colSpan: e.colSpan,
|
|
14895
14921
|
scope: e.column.columns.length ? "colgroup" : "col",
|
|
14896
|
-
"data-alignment":
|
|
14922
|
+
"data-alignment": rg(e.column.columnDef.meta),
|
|
14897
14923
|
"data-resize-active": _ === e.column.id || void 0,
|
|
14898
14924
|
children: [/* @__PURE__ */ b("div", {
|
|
14899
|
-
className:
|
|
14900
|
-
children: /* @__PURE__ */ b("span", { children: e.isPlaceholder ? null : /* @__PURE__ */ b(
|
|
14925
|
+
className: wg.HeaderContent,
|
|
14926
|
+
children: /* @__PURE__ */ b("span", { children: e.isPlaceholder ? null : /* @__PURE__ */ b(_e, { header: e }) })
|
|
14901
14927
|
}), t && /* @__PURE__ */ b("div", {
|
|
14902
14928
|
...t,
|
|
14903
|
-
className:
|
|
14929
|
+
className: wg.ResizeHandle
|
|
14904
14930
|
})]
|
|
14905
14931
|
}, e.id);
|
|
14906
14932
|
}) }, e.id))
|
|
14907
14933
|
}),
|
|
14908
14934
|
/* @__PURE__ */ x("tbody", { children: [t ? p.map((e, t) => /* @__PURE__ */ x(r, { children: [w(e.start - (p[t - 1]?.end ?? m)), C(e.index)] }, e.key)) : a.map((e, t) => /* @__PURE__ */ b(r, { children: C(t) }, e.id)), t && w(f.getTotalSize() - ((p.at(-1)?.end ?? m) - m))] }),
|
|
14909
|
-
d.length > 0 && /* @__PURE__ */ b("tfoot", { children: d.map((e) => /* @__PURE__ */ b("tr", { children: e.headers.map((e) => /* @__PURE__ */ b(
|
|
14910
|
-
className:
|
|
14935
|
+
d.length > 0 && /* @__PURE__ */ b("tfoot", { children: d.map((e) => /* @__PURE__ */ b("tr", { children: e.headers.map((e) => /* @__PURE__ */ b(mg, {
|
|
14936
|
+
className: wg.Cell,
|
|
14911
14937
|
colSpan: e.colSpan,
|
|
14912
|
-
"data-alignment":
|
|
14938
|
+
"data-alignment": rg(e.column.columnDef.meta),
|
|
14913
14939
|
"data-resize-active": _ === e.column.id || void 0,
|
|
14914
|
-
children: e.isPlaceholder ? null : /* @__PURE__ */ b(
|
|
14940
|
+
children: e.isPlaceholder ? null : /* @__PURE__ */ b(_e, { footer: e })
|
|
14915
14941
|
}, e.id)) }, e.id)) })
|
|
14916
14942
|
]
|
|
14917
14943
|
});
|
|
14918
14944
|
}
|
|
14919
14945
|
//#endregion
|
|
14920
14946
|
//#region src/components/Collection/Pagination/Pagination.tsx
|
|
14921
|
-
function
|
|
14947
|
+
function Eg({ total: e, pageNum: n, pageSize: r, onPageNumChange: i, onPageSizeChange: a, pageSizeOptions: o = [
|
|
14922
14948
|
10,
|
|
14923
14949
|
20,
|
|
14924
14950
|
50,
|
|
@@ -14955,7 +14981,7 @@ function Dg({ total: e, pageNum: n, pageSize: r, onPageNumChange: i, onPageSizeC
|
|
|
14955
14981
|
className: "me-(--p-space-100,4px) whitespace-nowrap",
|
|
14956
14982
|
children: l("Page {0} of {1}", [d === 0 ? 0 : m + 1, p])
|
|
14957
14983
|
}),
|
|
14958
|
-
/* @__PURE__ */ b(
|
|
14984
|
+
/* @__PURE__ */ b(B, {
|
|
14959
14985
|
type: "button",
|
|
14960
14986
|
variant: "tertiary",
|
|
14961
14987
|
icon: u === "rtl" ? "chevron-right" : "chevron-left",
|
|
@@ -14963,7 +14989,7 @@ function Dg({ total: e, pageNum: n, pageSize: r, onPageNumChange: i, onPageSizeC
|
|
|
14963
14989
|
disabled: d === 0 || m === 0,
|
|
14964
14990
|
onClick: () => i(m - 1)
|
|
14965
14991
|
}),
|
|
14966
|
-
/* @__PURE__ */ b(
|
|
14992
|
+
/* @__PURE__ */ b(B, {
|
|
14967
14993
|
type: "button",
|
|
14968
14994
|
variant: "tertiary",
|
|
14969
14995
|
icon: u === "rtl" ? "chevron-left" : "chevron-right",
|
|
@@ -14978,165 +15004,165 @@ function Dg({ total: e, pageNum: n, pageSize: r, onPageNumChange: i, onPageSizeC
|
|
|
14978
15004
|
}
|
|
14979
15005
|
//#endregion
|
|
14980
15006
|
//#region src/components/Avatar/Avatar.tsx
|
|
14981
|
-
function
|
|
15007
|
+
function Dg(e) {
|
|
14982
15008
|
return /* @__PURE__ */ b("s-avatar", { ...e });
|
|
14983
15009
|
}
|
|
14984
15010
|
//#endregion
|
|
14985
15011
|
//#region src/components/Badge/Badge.tsx
|
|
14986
|
-
function
|
|
15012
|
+
function Og(e) {
|
|
14987
15013
|
return /* @__PURE__ */ b("s-badge", { ...e });
|
|
14988
15014
|
}
|
|
14989
15015
|
//#endregion
|
|
14990
15016
|
//#region src/components/Banner/Banner.tsx
|
|
14991
|
-
function
|
|
15017
|
+
function kg(e) {
|
|
14992
15018
|
return /* @__PURE__ */ b("s-banner", { ...e });
|
|
14993
15019
|
}
|
|
14994
15020
|
//#endregion
|
|
14995
15021
|
//#region src/components/ButtonGroup/ButtonGroup.tsx
|
|
14996
|
-
function
|
|
15022
|
+
function Ag(e) {
|
|
14997
15023
|
return /* @__PURE__ */ b("s-button-group", { ...e });
|
|
14998
15024
|
}
|
|
14999
15025
|
//#endregion
|
|
15000
15026
|
//#region src/components/Chip/Chip.tsx
|
|
15001
|
-
function
|
|
15027
|
+
function jg(e) {
|
|
15002
15028
|
return /* @__PURE__ */ b("s-chip", { ...e });
|
|
15003
15029
|
}
|
|
15004
15030
|
//#endregion
|
|
15005
15031
|
//#region src/components/Choice/Choice.tsx
|
|
15006
|
-
function
|
|
15032
|
+
function Mg(e) {
|
|
15007
15033
|
return /* @__PURE__ */ b("s-choice", { ...e });
|
|
15008
15034
|
}
|
|
15009
15035
|
//#endregion
|
|
15010
15036
|
//#region src/components/ChoiceList/ChoiceList.tsx
|
|
15011
|
-
function
|
|
15037
|
+
function Ng(e) {
|
|
15012
15038
|
return /* @__PURE__ */ b("s-choice-list", { ...e });
|
|
15013
15039
|
}
|
|
15014
15040
|
//#endregion
|
|
15015
15041
|
//#region src/components/Clickable/Clickable.tsx
|
|
15016
|
-
function
|
|
15042
|
+
function Pg(e) {
|
|
15017
15043
|
return /* @__PURE__ */ b("s-clickable", { ...e });
|
|
15018
15044
|
}
|
|
15019
15045
|
//#endregion
|
|
15020
15046
|
//#region src/components/ClickableChip/ClickableChip.tsx
|
|
15021
|
-
function
|
|
15047
|
+
function Fg(e) {
|
|
15022
15048
|
return /* @__PURE__ */ b("s-clickable-chip", { ...e });
|
|
15023
15049
|
}
|
|
15024
15050
|
//#endregion
|
|
15025
15051
|
//#region src/components/ColorField/ColorField.tsx
|
|
15026
|
-
function
|
|
15052
|
+
function Ig(e) {
|
|
15027
15053
|
return /* @__PURE__ */ b("s-color-field", { ...e });
|
|
15028
15054
|
}
|
|
15029
15055
|
//#endregion
|
|
15030
15056
|
//#region src/components/ColorPicker/ColorPicker.tsx
|
|
15031
|
-
function
|
|
15057
|
+
function Lg(e) {
|
|
15032
15058
|
return /* @__PURE__ */ b("s-color-picker", { ...e });
|
|
15033
15059
|
}
|
|
15034
15060
|
//#endregion
|
|
15035
15061
|
//#region src/components/DropZone/DropZone.tsx
|
|
15036
|
-
function
|
|
15062
|
+
function Rg(e) {
|
|
15037
15063
|
return /* @__PURE__ */ b("s-drop-zone", { ...e });
|
|
15038
15064
|
}
|
|
15039
15065
|
//#endregion
|
|
15040
15066
|
//#region src/components/EmailField/EmailField.tsx
|
|
15041
|
-
function
|
|
15067
|
+
function zg(e) {
|
|
15042
15068
|
return /* @__PURE__ */ b("s-email-field", { ...e });
|
|
15043
15069
|
}
|
|
15044
15070
|
//#endregion
|
|
15045
15071
|
//#region src/components/EmptyState/EmptyState.tsx
|
|
15046
|
-
function
|
|
15072
|
+
function Bg(e) {
|
|
15047
15073
|
return /* @__PURE__ */ b("s-empty-state", { ...e });
|
|
15048
15074
|
}
|
|
15049
15075
|
//#endregion
|
|
15050
15076
|
//#region src/components/GridItem/GridItem.tsx
|
|
15051
|
-
function
|
|
15077
|
+
function Vg(e) {
|
|
15052
15078
|
return /* @__PURE__ */ b("s-grid-item", { ...e });
|
|
15053
15079
|
}
|
|
15054
15080
|
//#endregion
|
|
15055
15081
|
//#region src/components/Heading/Heading.tsx
|
|
15056
|
-
function
|
|
15082
|
+
function Hg(e) {
|
|
15057
15083
|
return /* @__PURE__ */ b("s-heading", { ...e });
|
|
15058
15084
|
}
|
|
15059
15085
|
//#endregion
|
|
15060
15086
|
//#region src/components/Image/Image.tsx
|
|
15061
|
-
function
|
|
15087
|
+
function Ug(e) {
|
|
15062
15088
|
return /* @__PURE__ */ b("s-image", { ...e });
|
|
15063
15089
|
}
|
|
15064
15090
|
//#endregion
|
|
15065
15091
|
//#region src/components/Link/Link.tsx
|
|
15066
|
-
function
|
|
15092
|
+
function Wg(e) {
|
|
15067
15093
|
return /* @__PURE__ */ b("s-link", { ...e });
|
|
15068
15094
|
}
|
|
15069
15095
|
//#endregion
|
|
15070
15096
|
//#region src/components/ListItem/ListItem.tsx
|
|
15071
|
-
function
|
|
15097
|
+
function Gg(e) {
|
|
15072
15098
|
return /* @__PURE__ */ b("s-list-item", { ...e });
|
|
15073
15099
|
}
|
|
15074
15100
|
//#endregion
|
|
15075
15101
|
//#region src/components/MoneyField/MoneyField.tsx
|
|
15076
|
-
function
|
|
15102
|
+
function Kg(e) {
|
|
15077
15103
|
return /* @__PURE__ */ b("s-money-field", { ...e });
|
|
15078
15104
|
}
|
|
15079
15105
|
//#endregion
|
|
15080
15106
|
//#region src/components/Number/Number.tsx
|
|
15081
|
-
function
|
|
15107
|
+
function qg(e) {
|
|
15082
15108
|
return /* @__PURE__ */ b("s-number", { ...e });
|
|
15083
15109
|
}
|
|
15084
15110
|
//#endregion
|
|
15085
15111
|
//#region src/components/NumberField/NumberField.tsx
|
|
15086
|
-
function
|
|
15112
|
+
function Jg(e) {
|
|
15087
15113
|
return /* @__PURE__ */ b("s-number-field", { ...e });
|
|
15088
15114
|
}
|
|
15089
15115
|
//#endregion
|
|
15090
15116
|
//#region src/components/Option/Option.tsx
|
|
15091
|
-
function
|
|
15117
|
+
function Yg(e) {
|
|
15092
15118
|
return /* @__PURE__ */ b("s-option", { ...e });
|
|
15093
15119
|
}
|
|
15094
15120
|
//#endregion
|
|
15095
15121
|
//#region src/components/OptionGroup/OptionGroup.tsx
|
|
15096
|
-
function
|
|
15122
|
+
function Xg(e) {
|
|
15097
15123
|
return /* @__PURE__ */ b("s-option-group", { ...e });
|
|
15098
15124
|
}
|
|
15099
15125
|
//#endregion
|
|
15100
15126
|
//#region src/components/OrderedList/OrderedList.tsx
|
|
15101
|
-
function
|
|
15127
|
+
function Zg(e) {
|
|
15102
15128
|
return /* @__PURE__ */ b("s-ordered-list", { ...e });
|
|
15103
15129
|
}
|
|
15104
15130
|
//#endregion
|
|
15105
15131
|
//#region src/components/PasswordField/PasswordField.tsx
|
|
15106
|
-
function
|
|
15132
|
+
function Qg(e) {
|
|
15107
15133
|
return /* @__PURE__ */ b("s-password-field", { ...e });
|
|
15108
15134
|
}
|
|
15109
15135
|
//#endregion
|
|
15110
15136
|
//#region src/components/PressButton/PressButton.tsx
|
|
15111
|
-
function
|
|
15137
|
+
function $g(e) {
|
|
15112
15138
|
return /* @__PURE__ */ b("s-press-button", { ...e });
|
|
15113
15139
|
}
|
|
15114
15140
|
//#endregion
|
|
15115
15141
|
//#region src/components/Progress/Progress.tsx
|
|
15116
|
-
function
|
|
15142
|
+
function e_(e) {
|
|
15117
15143
|
return /* @__PURE__ */ b("s-progress", { ...e });
|
|
15118
15144
|
}
|
|
15119
15145
|
//#endregion
|
|
15120
15146
|
//#region src/components/QueryContainer/QueryContainer.tsx
|
|
15121
|
-
function
|
|
15147
|
+
function t_(e) {
|
|
15122
15148
|
return /* @__PURE__ */ b("s-query-container", { ...e });
|
|
15123
15149
|
}
|
|
15124
15150
|
//#endregion
|
|
15125
15151
|
//#region src/components/ScrollBox/ScrollBox.tsx
|
|
15126
|
-
function
|
|
15152
|
+
function n_(e) {
|
|
15127
15153
|
return /* @__PURE__ */ b("s-scroll-box", { ...e });
|
|
15128
15154
|
}
|
|
15129
15155
|
//#endregion
|
|
15130
15156
|
//#region src/components/SearchField/SearchField.tsx
|
|
15131
|
-
function
|
|
15157
|
+
function r_(e) {
|
|
15132
15158
|
return /* @__PURE__ */ b("s-search-field", { ...e });
|
|
15133
15159
|
}
|
|
15134
15160
|
//#endregion
|
|
15135
15161
|
//#region src/components/Select/Select.tsx
|
|
15136
|
-
function
|
|
15162
|
+
function i_(e) {
|
|
15137
15163
|
return /* @__PURE__ */ b("s-select", { ...e });
|
|
15138
15164
|
}
|
|
15139
|
-
var
|
|
15165
|
+
var a_ = {
|
|
15140
15166
|
skeleton: "_skeleton_1av3v_1",
|
|
15141
15167
|
text: "_text_1av3v_14",
|
|
15142
15168
|
circular: "_circular_1av3v_18",
|
|
@@ -15147,11 +15173,11 @@ var o_ = {
|
|
|
15147
15173
|
};
|
|
15148
15174
|
//#endregion
|
|
15149
15175
|
//#region src/components/Skeleton/Skeleton.tsx
|
|
15150
|
-
function
|
|
15176
|
+
function o_({ variant: e = "text", width: t, height: n, animation: r = "pulse", className: i, style: a, ...o }) {
|
|
15151
15177
|
return /* @__PURE__ */ b("div", {
|
|
15152
15178
|
...o,
|
|
15153
15179
|
"aria-hidden": "true",
|
|
15154
|
-
className: v("aurora-base",
|
|
15180
|
+
className: v("aurora-base", a_.skeleton, a_[e], r && a_[r], i),
|
|
15155
15181
|
style: {
|
|
15156
15182
|
width: t,
|
|
15157
15183
|
height: n,
|
|
@@ -15161,67 +15187,67 @@ function s_({ variant: e = "text", width: t, height: n, animation: r = "pulse",
|
|
|
15161
15187
|
}
|
|
15162
15188
|
//#endregion
|
|
15163
15189
|
//#region src/components/Table/Table.tsx
|
|
15164
|
-
function
|
|
15190
|
+
function s_(e) {
|
|
15165
15191
|
return /* @__PURE__ */ b("s-table", { ...e });
|
|
15166
15192
|
}
|
|
15167
15193
|
//#endregion
|
|
15168
15194
|
//#region src/components/TableBody/TableBody.tsx
|
|
15169
|
-
function
|
|
15195
|
+
function c_(e) {
|
|
15170
15196
|
return /* @__PURE__ */ b("s-table-body", { ...e });
|
|
15171
15197
|
}
|
|
15172
15198
|
//#endregion
|
|
15173
15199
|
//#region src/components/TableCell/TableCell.tsx
|
|
15174
|
-
function
|
|
15200
|
+
function l_(e) {
|
|
15175
15201
|
return /* @__PURE__ */ b("s-table-cell", { ...e });
|
|
15176
15202
|
}
|
|
15177
15203
|
//#endregion
|
|
15178
15204
|
//#region src/components/TableHeader/TableHeader.tsx
|
|
15179
|
-
function
|
|
15205
|
+
function u_(e) {
|
|
15180
15206
|
return /* @__PURE__ */ b("s-table-header", { ...e });
|
|
15181
15207
|
}
|
|
15182
15208
|
//#endregion
|
|
15183
15209
|
//#region src/components/TableHeaderRow/TableHeaderRow.tsx
|
|
15184
|
-
function
|
|
15210
|
+
function d_(e) {
|
|
15185
15211
|
return /* @__PURE__ */ b("s-table-header-row", { ...e });
|
|
15186
15212
|
}
|
|
15187
15213
|
//#endregion
|
|
15188
15214
|
//#region src/components/TableRow/TableRow.tsx
|
|
15189
|
-
function
|
|
15215
|
+
function f_(e) {
|
|
15190
15216
|
return /* @__PURE__ */ b("s-table-row", { ...e });
|
|
15191
15217
|
}
|
|
15192
15218
|
//#endregion
|
|
15193
15219
|
//#region src/components/Text/Text.tsx
|
|
15194
|
-
function
|
|
15220
|
+
function p_(e) {
|
|
15195
15221
|
return /* @__PURE__ */ b("s-text", { ...e });
|
|
15196
15222
|
}
|
|
15197
15223
|
//#endregion
|
|
15198
15224
|
//#region src/components/TextArea/TextArea.tsx
|
|
15199
|
-
function
|
|
15225
|
+
function m_(e) {
|
|
15200
15226
|
return /* @__PURE__ */ b("s-text-area", { ...e });
|
|
15201
15227
|
}
|
|
15202
15228
|
//#endregion
|
|
15203
15229
|
//#region src/components/Thumbnail/Thumbnail.tsx
|
|
15204
|
-
function
|
|
15230
|
+
function h_(e) {
|
|
15205
15231
|
return /* @__PURE__ */ b("s-thumbnail", { ...e });
|
|
15206
15232
|
}
|
|
15207
15233
|
//#endregion
|
|
15208
15234
|
//#region src/components/Tooltip/Tooltip.tsx
|
|
15209
|
-
function
|
|
15235
|
+
function g_(e) {
|
|
15210
15236
|
return /* @__PURE__ */ b("s-tooltip", { ...e });
|
|
15211
15237
|
}
|
|
15212
15238
|
//#endregion
|
|
15213
15239
|
//#region src/components/UnorderedList/UnorderedList.tsx
|
|
15214
|
-
function
|
|
15240
|
+
function __(e) {
|
|
15215
15241
|
return /* @__PURE__ */ b("s-unordered-list", { ...e });
|
|
15216
15242
|
}
|
|
15217
15243
|
//#endregion
|
|
15218
15244
|
//#region src/components/URLField/URLField.tsx
|
|
15219
|
-
function
|
|
15245
|
+
function v_(e) {
|
|
15220
15246
|
return /* @__PURE__ */ b("s-url-field", { ...e });
|
|
15221
15247
|
}
|
|
15222
15248
|
//#endregion
|
|
15223
15249
|
//#region src/utilities/command-key.ts
|
|
15224
|
-
var
|
|
15250
|
+
var y_ = navigator.platform.startsWith("Mac") ? "⌘" : "Ctrl", X = {
|
|
15225
15251
|
item: "_item_9fbfw_2",
|
|
15226
15252
|
row: "_row_9fbfw_15",
|
|
15227
15253
|
icon: "_icon_9fbfw_72",
|
|
@@ -15237,33 +15263,33 @@ var b_ = navigator.platform.startsWith("Mac") ? "⌘" : "Ctrl", Z = {
|
|
|
15237
15263
|
};
|
|
15238
15264
|
//#endregion
|
|
15239
15265
|
//#region src/components/Frame/components/Navigation/NavigationItem/NavigationItem.tsx
|
|
15240
|
-
function
|
|
15241
|
-
return e.some((e) => !!e.active ||
|
|
15266
|
+
function b_(e = []) {
|
|
15267
|
+
return e.some((e) => !!e.active || b_(e.children));
|
|
15242
15268
|
}
|
|
15243
|
-
function
|
|
15244
|
-
let { icon: n, children: r } = e, i = !!e.active, a = !!r?.length, o =
|
|
15269
|
+
function x_({ item: e, collapsed: t }) {
|
|
15270
|
+
let { icon: n, children: r } = e, i = !!e.active, a = !!r?.length, o = b_(r), s = a && (i || o), c = [e, ...r ?? []], l = /* @__PURE__ */ x(y, { children: [
|
|
15245
15271
|
n && /* @__PURE__ */ b("span", {
|
|
15246
|
-
className:
|
|
15247
|
-
children: /* @__PURE__ */ b(
|
|
15272
|
+
className: X.icon,
|
|
15273
|
+
children: /* @__PURE__ */ b(z, { type: n })
|
|
15248
15274
|
}),
|
|
15249
15275
|
/* @__PURE__ */ b("span", {
|
|
15250
|
-
className:
|
|
15276
|
+
className: X.label,
|
|
15251
15277
|
children: e.label
|
|
15252
15278
|
}),
|
|
15253
15279
|
e.badge && /* @__PURE__ */ b("span", {
|
|
15254
|
-
className:
|
|
15280
|
+
className: X.badge,
|
|
15255
15281
|
children: e.badge
|
|
15256
15282
|
})
|
|
15257
15283
|
] });
|
|
15258
15284
|
return /* @__PURE__ */ x("li", {
|
|
15259
|
-
className:
|
|
15285
|
+
className: X.item,
|
|
15260
15286
|
"data-active": i,
|
|
15261
15287
|
"data-child-active": o,
|
|
15262
15288
|
"data-expanded": s,
|
|
15263
|
-
children: [t && !e.disabled ? /* @__PURE__ */ x(
|
|
15289
|
+
children: [t && !e.disabled ? /* @__PURE__ */ x(I.Root, {
|
|
15264
15290
|
modal: !1,
|
|
15265
|
-
children: [/* @__PURE__ */ b(
|
|
15266
|
-
className: v("aurora-base", "aurora-button",
|
|
15291
|
+
children: [/* @__PURE__ */ b(I.Trigger, {
|
|
15292
|
+
className: v("aurora-base", "aurora-button", X.row),
|
|
15267
15293
|
disabled: e.disabled,
|
|
15268
15294
|
"data-disabled": !!e.disabled,
|
|
15269
15295
|
openOnHover: !0,
|
|
@@ -15271,8 +15297,8 @@ function S_({ item: e, collapsed: t }) {
|
|
|
15271
15297
|
closeDelay: 10,
|
|
15272
15298
|
onClick: e.onSelect,
|
|
15273
15299
|
children: l
|
|
15274
|
-
}), /* @__PURE__ */ b(
|
|
15275
|
-
className:
|
|
15300
|
+
}), /* @__PURE__ */ b(I.Portal, { children: /* @__PURE__ */ b(I.Positioner, {
|
|
15301
|
+
className: X.flyoutPositioner,
|
|
15276
15302
|
positionMethod: "fixed",
|
|
15277
15303
|
side: "right",
|
|
15278
15304
|
align: "start",
|
|
@@ -15282,15 +15308,15 @@ function S_({ item: e, collapsed: t }) {
|
|
|
15282
15308
|
side: "shift",
|
|
15283
15309
|
align: "shift"
|
|
15284
15310
|
},
|
|
15285
|
-
children: /* @__PURE__ */ b(
|
|
15286
|
-
className: v("aurora-base",
|
|
15311
|
+
children: /* @__PURE__ */ b(I.Popup, {
|
|
15312
|
+
className: v("aurora-base", X.flyout),
|
|
15287
15313
|
children: /* @__PURE__ */ b("ul", {
|
|
15288
|
-
className:
|
|
15314
|
+
className: X.flyoutList,
|
|
15289
15315
|
role: "none",
|
|
15290
15316
|
children: c.map((e, t) => /* @__PURE__ */ b("li", {
|
|
15291
15317
|
role: "none",
|
|
15292
|
-
children: /* @__PURE__ */ b(
|
|
15293
|
-
className:
|
|
15318
|
+
children: /* @__PURE__ */ b(I.Item, {
|
|
15319
|
+
className: X.flyoutRow,
|
|
15294
15320
|
"data-active": !!e.active,
|
|
15295
15321
|
"data-disabled": !!e.disabled,
|
|
15296
15322
|
disabled: e.disabled,
|
|
@@ -15303,16 +15329,16 @@ function S_({ item: e, collapsed: t }) {
|
|
|
15303
15329
|
}) })]
|
|
15304
15330
|
}) : /* @__PURE__ */ b("button", {
|
|
15305
15331
|
type: "button",
|
|
15306
|
-
className: v("aurora-base", "aurora-button",
|
|
15332
|
+
className: v("aurora-base", "aurora-button", X.row),
|
|
15307
15333
|
disabled: e.disabled,
|
|
15308
15334
|
"data-disabled": !!e.disabled,
|
|
15309
15335
|
onClick: e.onSelect,
|
|
15310
15336
|
children: l
|
|
15311
15337
|
}), a && /* @__PURE__ */ b("div", {
|
|
15312
|
-
className:
|
|
15338
|
+
className: X.children,
|
|
15313
15339
|
children: /* @__PURE__ */ b("ul", {
|
|
15314
|
-
className:
|
|
15315
|
-
children: r?.map((e, n) => /* @__PURE__ */ b(
|
|
15340
|
+
className: X.childrenInner,
|
|
15341
|
+
children: r?.map((e, n) => /* @__PURE__ */ b(x_, {
|
|
15316
15342
|
item: e,
|
|
15317
15343
|
collapsed: t
|
|
15318
15344
|
}, `${e.label}-${n}`))
|
|
@@ -15320,7 +15346,7 @@ function S_({ item: e, collapsed: t }) {
|
|
|
15320
15346
|
})]
|
|
15321
15347
|
});
|
|
15322
15348
|
}
|
|
15323
|
-
var
|
|
15349
|
+
var Z = {
|
|
15324
15350
|
root: "_root_5hldm_1",
|
|
15325
15351
|
trigger: "_trigger_5hldm_6",
|
|
15326
15352
|
avatar: "_avatar_5hldm_56",
|
|
@@ -15333,58 +15359,58 @@ var Q = {
|
|
|
15333
15359
|
};
|
|
15334
15360
|
//#endregion
|
|
15335
15361
|
//#region src/components/Frame/components/Navigation/SiteSwitcher/SiteSwitcher.tsx
|
|
15336
|
-
function
|
|
15362
|
+
function S_({ sites: e, siteId: t, onSiteChange: n, onReload: r, collapsed: i }) {
|
|
15337
15363
|
let a = e.find((e) => e.id === t);
|
|
15338
15364
|
return e.length === 0 ? null : /* @__PURE__ */ b("div", {
|
|
15339
|
-
className:
|
|
15365
|
+
className: Z.root,
|
|
15340
15366
|
"data-collapsed": i,
|
|
15341
|
-
children: /* @__PURE__ */ x(
|
|
15367
|
+
children: /* @__PURE__ */ x(I.Root, {
|
|
15342
15368
|
modal: !1,
|
|
15343
|
-
children: [/* @__PURE__ */ x(
|
|
15344
|
-
className: v("aurora-base", "aurora-button",
|
|
15369
|
+
children: [/* @__PURE__ */ x(I.Trigger, {
|
|
15370
|
+
className: v("aurora-base", "aurora-button", Z.trigger),
|
|
15345
15371
|
openOnHover: i,
|
|
15346
15372
|
delay: 20,
|
|
15347
15373
|
closeDelay: 100,
|
|
15348
15374
|
children: [/* @__PURE__ */ b("span", {
|
|
15349
|
-
className:
|
|
15375
|
+
className: Z.avatar,
|
|
15350
15376
|
children: a?.intinal ?? "?"
|
|
15351
15377
|
}), /* @__PURE__ */ b("span", {
|
|
15352
|
-
className:
|
|
15378
|
+
className: Z.label,
|
|
15353
15379
|
children: a?.label ?? "Select site"
|
|
15354
15380
|
})]
|
|
15355
|
-
}), /* @__PURE__ */ b(
|
|
15356
|
-
className:
|
|
15381
|
+
}), /* @__PURE__ */ b(I.Portal, { children: /* @__PURE__ */ b(I.Positioner, {
|
|
15382
|
+
className: Z.positioner,
|
|
15357
15383
|
positionMethod: "fixed",
|
|
15358
15384
|
side: i ? "right" : "top",
|
|
15359
15385
|
align: i ? "end" : "start",
|
|
15360
15386
|
sideOffset: i ? 12 : 8,
|
|
15361
15387
|
collisionPadding: 8,
|
|
15362
|
-
children: /* @__PURE__ */ x(
|
|
15363
|
-
className: v("aurora-base",
|
|
15364
|
-
children: [/* @__PURE__ */ b(
|
|
15388
|
+
children: /* @__PURE__ */ x(I.Popup, {
|
|
15389
|
+
className: v("aurora-base", Z.popup),
|
|
15390
|
+
children: [/* @__PURE__ */ b(I.RadioGroup, {
|
|
15365
15391
|
value: t,
|
|
15366
15392
|
onValueChange: n,
|
|
15367
|
-
render: /* @__PURE__ */ b("ul", { className:
|
|
15393
|
+
render: /* @__PURE__ */ b("ul", { className: Z.list }),
|
|
15368
15394
|
children: e.map((e) => /* @__PURE__ */ b("li", {
|
|
15369
15395
|
role: "none",
|
|
15370
|
-
children: /* @__PURE__ */ x(
|
|
15371
|
-
className:
|
|
15396
|
+
children: /* @__PURE__ */ x(I.RadioItem, {
|
|
15397
|
+
className: Z.option,
|
|
15372
15398
|
value: e.id,
|
|
15373
15399
|
label: e.label,
|
|
15374
15400
|
closeOnClick: !0,
|
|
15375
15401
|
children: [/* @__PURE__ */ b("span", {
|
|
15376
|
-
className:
|
|
15402
|
+
className: Z.avatar,
|
|
15377
15403
|
children: e.intinal
|
|
15378
15404
|
}), /* @__PURE__ */ b("span", {
|
|
15379
|
-
className:
|
|
15405
|
+
className: Z.label,
|
|
15380
15406
|
children: e.label
|
|
15381
15407
|
})]
|
|
15382
15408
|
})
|
|
15383
15409
|
}, e.id))
|
|
15384
|
-
}), /* @__PURE__ */ b(
|
|
15385
|
-
className:
|
|
15386
|
-
children: /* @__PURE__ */ b(
|
|
15387
|
-
className: v("aurora-button",
|
|
15410
|
+
}), /* @__PURE__ */ b(I.Group, {
|
|
15411
|
+
className: Z.section,
|
|
15412
|
+
children: /* @__PURE__ */ b(I.Item, {
|
|
15413
|
+
className: v("aurora-button", Z.option),
|
|
15388
15414
|
nativeButton: !0,
|
|
15389
15415
|
render: /* @__PURE__ */ b("button", { type: "button" }),
|
|
15390
15416
|
onClick: r,
|
|
@@ -15399,11 +15425,11 @@ function C_({ sites: e, siteId: t, onSiteChange: n, onReload: r, collapsed: i })
|
|
|
15399
15425
|
}
|
|
15400
15426
|
//#endregion
|
|
15401
15427
|
//#region src/components/Frame/components/Navigation/Notification/Badges.tsx
|
|
15402
|
-
var
|
|
15403
|
-
function
|
|
15404
|
-
let n =
|
|
15405
|
-
return /* @__PURE__ */ b(
|
|
15406
|
-
className: v(
|
|
15428
|
+
var C_ = "pointer-events-none inline-flex flex-none items-center justify-center rounded-lg border-0 bg-[#c70a24] text-white [font-weight:var(--p-font-weight-bold,600)] [&[hidden]]:hidden";
|
|
15429
|
+
function w_({ children: e, hidden: t }) {
|
|
15430
|
+
let n = M();
|
|
15431
|
+
return /* @__PURE__ */ b(j.span, {
|
|
15432
|
+
className: v(C_, "absolute inset-bs-[calc(50%-11px)] inset-e-1.25 z-1 h-3 min-w-3 px-0.75 py-0.5 text-[8px] leading-2"),
|
|
15407
15433
|
hidden: t,
|
|
15408
15434
|
initial: !n && {
|
|
15409
15435
|
opacity: 0,
|
|
@@ -15423,14 +15449,14 @@ function T_({ children: e, hidden: t }) {
|
|
|
15423
15449
|
children: e
|
|
15424
15450
|
});
|
|
15425
15451
|
}
|
|
15426
|
-
function
|
|
15452
|
+
function T_({ children: e, hidden: t }) {
|
|
15427
15453
|
return /* @__PURE__ */ b("span", {
|
|
15428
|
-
className: v(
|
|
15454
|
+
className: v(C_, "h-4 min-w-4 px-1 py-0.5 text-[10px] leading-2.5"),
|
|
15429
15455
|
hidden: t,
|
|
15430
15456
|
children: e
|
|
15431
15457
|
});
|
|
15432
15458
|
}
|
|
15433
|
-
var
|
|
15459
|
+
var E_ = {
|
|
15434
15460
|
row: "_row_14xi8_1",
|
|
15435
15461
|
item: "_item_14xi8_5",
|
|
15436
15462
|
expandedContent: "_expandedContent_14xi8_14",
|
|
@@ -15445,35 +15471,35 @@ var D_ = {
|
|
|
15445
15471
|
};
|
|
15446
15472
|
//#endregion
|
|
15447
15473
|
//#region src/components/Frame/components/Navigation/Notification/Notification.tsx
|
|
15448
|
-
function
|
|
15474
|
+
function D_({ collapsed: e, count: t = 0, label: n = "Notifications", onSelect: r }) {
|
|
15449
15475
|
let i = Math.max(0, Math.floor(t)), a = i > 0, o = i > 99 ? "99+" : i;
|
|
15450
15476
|
return /* @__PURE__ */ b("li", {
|
|
15451
|
-
className: v(
|
|
15477
|
+
className: v(X.item, E_.item),
|
|
15452
15478
|
"data-collapsed": e,
|
|
15453
15479
|
children: /* @__PURE__ */ x("button", {
|
|
15454
15480
|
type: "button",
|
|
15455
|
-
className: v("aurora-base", "aurora-button",
|
|
15481
|
+
className: v("aurora-base", "aurora-button", X.row, E_.row),
|
|
15456
15482
|
onClick: r,
|
|
15457
15483
|
children: [
|
|
15458
15484
|
/* @__PURE__ */ b("span", {
|
|
15459
|
-
className:
|
|
15485
|
+
className: X.icon,
|
|
15460
15486
|
children: /* @__PURE__ */ x("svg", {
|
|
15461
|
-
className:
|
|
15487
|
+
className: E_.icon,
|
|
15462
15488
|
xmlns: "http://www.w3.org/2000/svg",
|
|
15463
15489
|
viewBox: "0 0 16 16",
|
|
15464
15490
|
focusable: "false",
|
|
15465
15491
|
children: [/* @__PURE__ */ b("g", {
|
|
15466
15492
|
transform: "translate(1.0752 0.5)",
|
|
15467
15493
|
children: /* @__PURE__ */ b("g", {
|
|
15468
|
-
className:
|
|
15494
|
+
className: E_.shell,
|
|
15469
15495
|
children: /* @__PURE__ */ b("path", { d: "M6.9248 0.75C8.99587 0.75 10.6748 2.42893 10.6748 4.5V5.00977C10.6748 6.29017 11.3489 7.47646 12.4482 8.13281L12.5127 8.1709C13.4997 8.76015 13.1761 10.266 12.0342 10.3975L9.51367 10.6865L8.06641 10.75H5.69531L4.23926 10.6758L1.81641 10.3975C0.674456 10.2661 0.350866 8.76017 1.33789 8.1709L1.40234 8.13281C2.50173 7.47646 3.17478 6.29017 3.1748 5.00977V4.5C3.1748 2.42908 4.85394 0.750245 6.9248 0.75Z" })
|
|
15470
15496
|
})
|
|
15471
15497
|
}), /* @__PURE__ */ b("g", {
|
|
15472
15498
|
transform: "translate(5.31836 10.75)",
|
|
15473
15499
|
children: /* @__PURE__ */ b("g", {
|
|
15474
|
-
className:
|
|
15500
|
+
className: E_.clapperTranslation,
|
|
15475
15501
|
children: /* @__PURE__ */ b("g", {
|
|
15476
|
-
className:
|
|
15502
|
+
className: E_.clapperRotation,
|
|
15477
15503
|
children: /* @__PURE__ */ b("path", { d: "M4.48926 0.75C4.50624 0.83121 4.52166 0.919096 4.53613 1.01074C4.58832 1.34113 4.61426 1.67011 4.61426 1.84961C4.61423 2.85179 3.77009 3.70215 2.68164 3.70215C1.59342 3.7019 0.750024 2.85165 0.75 1.84961C0.75 1.67011 0.775937 1.34113 0.828125 1.01074C0.842603 0.919093 0.858015 0.831212 0.875 0.75H4.48926Z" })
|
|
15478
15504
|
})
|
|
15479
15505
|
})
|
|
@@ -15481,16 +15507,16 @@ function O_({ collapsed: e, count: t = 0, label: n = "Notifications", onSelect:
|
|
|
15481
15507
|
})
|
|
15482
15508
|
}),
|
|
15483
15509
|
/* @__PURE__ */ x("span", {
|
|
15484
|
-
className:
|
|
15510
|
+
className: E_.expandedContent,
|
|
15485
15511
|
children: [/* @__PURE__ */ b("span", {
|
|
15486
|
-
className:
|
|
15512
|
+
className: E_.label,
|
|
15487
15513
|
children: n
|
|
15488
|
-
}), a && /* @__PURE__ */ b(
|
|
15514
|
+
}), a && /* @__PURE__ */ b(T_, {
|
|
15489
15515
|
hidden: e,
|
|
15490
15516
|
children: o
|
|
15491
15517
|
})]
|
|
15492
15518
|
}),
|
|
15493
|
-
a && /* @__PURE__ */ b(
|
|
15519
|
+
a && /* @__PURE__ */ b(w_, {
|
|
15494
15520
|
hidden: !e,
|
|
15495
15521
|
children: o
|
|
15496
15522
|
})
|
|
@@ -15498,7 +15524,7 @@ function O_({ collapsed: e, count: t = 0, label: n = "Notifications", onSelect:
|
|
|
15498
15524
|
})
|
|
15499
15525
|
});
|
|
15500
15526
|
}
|
|
15501
|
-
var
|
|
15527
|
+
var Q = {
|
|
15502
15528
|
sidebar: "_sidebar_bpadd_1",
|
|
15503
15529
|
header: "_header_bpadd_12",
|
|
15504
15530
|
brand: "_brand_bpadd_17",
|
|
@@ -15514,65 +15540,65 @@ var $ = {
|
|
|
15514
15540
|
};
|
|
15515
15541
|
//#endregion
|
|
15516
15542
|
//#region src/components/Frame/components/Navigation/index.tsx
|
|
15517
|
-
function
|
|
15543
|
+
function O_({ logoUrl: e, collapsed: t, onCollapsedChange: n, items: r = [], onSettingsSelect: i, onSearchSelect: a, notificationCount: o = 0, onNotificationSelect: s, sites: c, siteId: l, onSiteChange: u, onReload: d, logoAction: f }) {
|
|
15518
15544
|
return /* @__PURE__ */ x("aside", {
|
|
15519
|
-
className:
|
|
15545
|
+
className: Q.sidebar,
|
|
15520
15546
|
"data-collapsed": t,
|
|
15521
15547
|
"data-drawer": f ? "" : void 0,
|
|
15522
15548
|
children: [/* @__PURE__ */ x("header", {
|
|
15523
|
-
className:
|
|
15549
|
+
className: Q.header,
|
|
15524
15550
|
children: [/* @__PURE__ */ x("div", {
|
|
15525
|
-
className:
|
|
15551
|
+
className: Q.brand,
|
|
15526
15552
|
children: [f ?? (e && /* @__PURE__ */ b("span", {
|
|
15527
|
-
className:
|
|
15553
|
+
className: Q.logo,
|
|
15528
15554
|
children: /* @__PURE__ */ b("img", {
|
|
15529
15555
|
src: e,
|
|
15530
15556
|
alt: "Logo"
|
|
15531
15557
|
})
|
|
15532
15558
|
})), /* @__PURE__ */ b("button", {
|
|
15533
15559
|
type: "button",
|
|
15534
|
-
className:
|
|
15560
|
+
className: Q.toggle,
|
|
15535
15561
|
"aria-label": t ? "Expand navigation" : "Collapse navigation",
|
|
15536
15562
|
onClick: () => n(!t),
|
|
15537
15563
|
children: /* @__PURE__ */ b(am, {})
|
|
15538
15564
|
})]
|
|
15539
15565
|
}), /* @__PURE__ */ x("button", {
|
|
15540
15566
|
type: "button",
|
|
15541
|
-
className:
|
|
15567
|
+
className: Q.search,
|
|
15542
15568
|
"aria-label": "Search",
|
|
15543
15569
|
onClick: a,
|
|
15544
15570
|
children: [
|
|
15545
15571
|
/* @__PURE__ */ b("span", {
|
|
15546
|
-
className:
|
|
15572
|
+
className: Q.searchIcon,
|
|
15547
15573
|
children: /* @__PURE__ */ b(Hu, {})
|
|
15548
15574
|
}),
|
|
15549
15575
|
/* @__PURE__ */ b("span", {
|
|
15550
|
-
className:
|
|
15576
|
+
className: Q.searchLabel,
|
|
15551
15577
|
children: "Search"
|
|
15552
15578
|
}),
|
|
15553
15579
|
/* @__PURE__ */ b("span", {
|
|
15554
|
-
className:
|
|
15555
|
-
children: `${
|
|
15580
|
+
className: Q.searchKey,
|
|
15581
|
+
children: `${y_}K`
|
|
15556
15582
|
})
|
|
15557
15583
|
]
|
|
15558
15584
|
})]
|
|
15559
15585
|
}), /* @__PURE__ */ x("nav", {
|
|
15560
|
-
className:
|
|
15586
|
+
className: Q.navigation,
|
|
15561
15587
|
children: [
|
|
15562
15588
|
/* @__PURE__ */ b("ul", {
|
|
15563
|
-
className:
|
|
15564
|
-
children: r.map((e, n) => /* @__PURE__ */ b(
|
|
15589
|
+
className: Q.scroll,
|
|
15590
|
+
children: r.map((e, n) => /* @__PURE__ */ b(x_, {
|
|
15565
15591
|
item: e,
|
|
15566
15592
|
collapsed: t
|
|
15567
15593
|
}, `${e.label}-${n}`))
|
|
15568
15594
|
}),
|
|
15569
15595
|
/* @__PURE__ */ x("ul", {
|
|
15570
|
-
className:
|
|
15571
|
-
children: [/* @__PURE__ */ b(
|
|
15596
|
+
className: Q.footer,
|
|
15597
|
+
children: [/* @__PURE__ */ b(D_, {
|
|
15572
15598
|
collapsed: t,
|
|
15573
15599
|
count: o,
|
|
15574
15600
|
onSelect: s
|
|
15575
|
-
}), /* @__PURE__ */ b(
|
|
15601
|
+
}), /* @__PURE__ */ b(x_, {
|
|
15576
15602
|
item: {
|
|
15577
15603
|
icon: "settings",
|
|
15578
15604
|
label: "Settings",
|
|
@@ -15581,7 +15607,7 @@ function k_({ logoUrl: e, collapsed: t, onCollapsedChange: n, items: r = [], onS
|
|
|
15581
15607
|
collapsed: t
|
|
15582
15608
|
})]
|
|
15583
15609
|
}),
|
|
15584
|
-
/* @__PURE__ */ b(
|
|
15610
|
+
/* @__PURE__ */ b(S_, {
|
|
15585
15611
|
sites: c,
|
|
15586
15612
|
siteId: l,
|
|
15587
15613
|
onSiteChange: u,
|
|
@@ -15592,7 +15618,7 @@ function k_({ logoUrl: e, collapsed: t, onCollapsedChange: n, items: r = [], onS
|
|
|
15592
15618
|
})]
|
|
15593
15619
|
});
|
|
15594
15620
|
}
|
|
15595
|
-
var
|
|
15621
|
+
var $ = {
|
|
15596
15622
|
root: "_root_1kfa4_1",
|
|
15597
15623
|
topbar: "_topbar_1kfa4_35",
|
|
15598
15624
|
actions: "_actions_1kfa4_45",
|
|
@@ -15601,19 +15627,19 @@ var A_ = {
|
|
|
15601
15627
|
notification: "_notification_1kfa4_94",
|
|
15602
15628
|
backdrop: "_backdrop_1kfa4_105",
|
|
15603
15629
|
drawer: "_drawer_1kfa4_112"
|
|
15604
|
-
},
|
|
15630
|
+
}, k_ = { viewport: "_viewport_jkjn8_1" };
|
|
15605
15631
|
//#endregion
|
|
15606
15632
|
//#region src/components/Frame/components/Viewport/Viewport.tsx
|
|
15607
|
-
function
|
|
15633
|
+
function A_({ children: e }) {
|
|
15608
15634
|
return /* @__PURE__ */ b("div", {
|
|
15609
|
-
className:
|
|
15635
|
+
className: k_.viewport,
|
|
15610
15636
|
children: e
|
|
15611
15637
|
});
|
|
15612
15638
|
}
|
|
15613
15639
|
//#endregion
|
|
15614
15640
|
//#region src/components/Frame/Frame.tsx
|
|
15615
|
-
function
|
|
15616
|
-
let [i, a] = g(!1), [o, s] = g(null), [c, l] = g(!0), u = h(null), d =
|
|
15641
|
+
function j_({ children: e, collapsed: t, onCollapsedChange: n, ...r }) {
|
|
15642
|
+
let [i, a] = g(!1), [o, s] = g(null), [c, l] = g(!0), u = h(null), d = M(), { logoUrl: f, onSearchSelect: m, onNotificationSelect: _, notificationCount: y = 0 } = r, S = Math.max(0, Math.floor(y)), C = S > 0 ? `Notifications (${S} unread)` : "Notifications";
|
|
15617
15643
|
return p(() => {
|
|
15618
15644
|
if (!o) return;
|
|
15619
15645
|
let e = () => {
|
|
@@ -15625,19 +15651,19 @@ function N_({ children: e, collapsed: t, onCollapsedChange: n, ...r }) {
|
|
|
15625
15651
|
return t.observe(o), () => t.disconnect();
|
|
15626
15652
|
}, [o]), /* @__PURE__ */ x("div", {
|
|
15627
15653
|
ref: s,
|
|
15628
|
-
className: v("aurora-base",
|
|
15654
|
+
className: v("aurora-base", $.root),
|
|
15629
15655
|
"data-layout": c ? "compact" : "wide",
|
|
15630
15656
|
"data-collapsed": !c && t,
|
|
15631
|
-
children: [c ? /* @__PURE__ */ x(
|
|
15657
|
+
children: [c ? /* @__PURE__ */ x(F.Root, {
|
|
15632
15658
|
open: i,
|
|
15633
15659
|
actionsRef: u,
|
|
15634
15660
|
onOpenChange: (e, t) => {
|
|
15635
15661
|
e || t.preventUnmountOnClose(), a(e);
|
|
15636
15662
|
},
|
|
15637
15663
|
children: [/* @__PURE__ */ x("header", {
|
|
15638
|
-
className:
|
|
15639
|
-
children: [/* @__PURE__ */ b(
|
|
15640
|
-
className: v(
|
|
15664
|
+
className: $.topbar,
|
|
15665
|
+
children: [/* @__PURE__ */ b(F.Trigger, {
|
|
15666
|
+
className: v($.iconButton, $.logo),
|
|
15641
15667
|
"aria-label": "Open navigation",
|
|
15642
15668
|
title: "Open navigation",
|
|
15643
15669
|
children: f ? /* @__PURE__ */ b("img", {
|
|
@@ -15645,43 +15671,43 @@ function N_({ children: e, collapsed: t, onCollapsedChange: n, ...r }) {
|
|
|
15645
15671
|
alt: "Logo"
|
|
15646
15672
|
}) : /* @__PURE__ */ b(Qs, {})
|
|
15647
15673
|
}), /* @__PURE__ */ x("div", {
|
|
15648
|
-
className:
|
|
15674
|
+
className: $.actions,
|
|
15649
15675
|
children: [/* @__PURE__ */ b("button", {
|
|
15650
15676
|
type: "button",
|
|
15651
|
-
className:
|
|
15677
|
+
className: $.iconButton,
|
|
15652
15678
|
"aria-label": "Search",
|
|
15653
15679
|
title: "Search",
|
|
15654
15680
|
onClick: m,
|
|
15655
15681
|
children: /* @__PURE__ */ b(Hu, { "aria-hidden": "true" })
|
|
15656
15682
|
}), /* @__PURE__ */ x("button", {
|
|
15657
15683
|
type: "button",
|
|
15658
|
-
className: v(
|
|
15684
|
+
className: v($.iconButton, $.notification),
|
|
15659
15685
|
"aria-label": C,
|
|
15660
15686
|
title: C,
|
|
15661
15687
|
onClick: _,
|
|
15662
|
-
children: [/* @__PURE__ */ b(xc, { "aria-hidden": "true" }), S > 0 && /* @__PURE__ */ b(
|
|
15688
|
+
children: [/* @__PURE__ */ b(xc, { "aria-hidden": "true" }), S > 0 && /* @__PURE__ */ b(w_, {
|
|
15663
15689
|
hidden: !1,
|
|
15664
15690
|
children: S > 99 ? "99+" : S
|
|
15665
15691
|
})]
|
|
15666
15692
|
})]
|
|
15667
15693
|
})]
|
|
15668
|
-
}), /* @__PURE__ */ b(
|
|
15694
|
+
}), /* @__PURE__ */ b(F.Portal, {
|
|
15669
15695
|
container: o,
|
|
15670
15696
|
keepMounted: !0,
|
|
15671
|
-
children: /* @__PURE__ */ x(
|
|
15697
|
+
children: /* @__PURE__ */ x(oe, {
|
|
15672
15698
|
onExitComplete: () => u.current?.unmount(),
|
|
15673
|
-
children: [i && /* @__PURE__ */ b(
|
|
15674
|
-
className:
|
|
15675
|
-
render: /* @__PURE__ */ b(
|
|
15699
|
+
children: [i && /* @__PURE__ */ b(F.Backdrop, {
|
|
15700
|
+
className: $.backdrop,
|
|
15701
|
+
render: /* @__PURE__ */ b(j.div, {
|
|
15676
15702
|
initial: { opacity: 0 },
|
|
15677
15703
|
animate: { opacity: 1 },
|
|
15678
15704
|
exit: { opacity: 0 },
|
|
15679
15705
|
transition: { duration: d ? 0 : .2 }
|
|
15680
15706
|
})
|
|
15681
|
-
}, "backdrop"), i && /* @__PURE__ */ b(
|
|
15682
|
-
className:
|
|
15707
|
+
}, "backdrop"), i && /* @__PURE__ */ b(F.Popup, {
|
|
15708
|
+
className: $.drawer,
|
|
15683
15709
|
"aria-label": "Navigation",
|
|
15684
|
-
render: /* @__PURE__ */ b(
|
|
15710
|
+
render: /* @__PURE__ */ b(j.div, {
|
|
15685
15711
|
initial: { x: d ? 0 : "-100%" },
|
|
15686
15712
|
animate: { x: 0 },
|
|
15687
15713
|
exit: { x: d ? 0 : "-100%" },
|
|
@@ -15691,12 +15717,12 @@ function N_({ children: e, collapsed: t, onCollapsedChange: n, ...r }) {
|
|
|
15691
15717
|
damping: 40
|
|
15692
15718
|
}
|
|
15693
15719
|
}),
|
|
15694
|
-
children: /* @__PURE__ */ b(
|
|
15720
|
+
children: /* @__PURE__ */ b(O_, {
|
|
15695
15721
|
...r,
|
|
15696
15722
|
collapsed: !1,
|
|
15697
15723
|
onCollapsedChange: () => u.current?.close(),
|
|
15698
|
-
logoAction: /* @__PURE__ */ b(
|
|
15699
|
-
className: v(
|
|
15724
|
+
logoAction: /* @__PURE__ */ b(F.Close, {
|
|
15725
|
+
className: v($.iconButton, $.logo),
|
|
15700
15726
|
"aria-label": "Close navigation",
|
|
15701
15727
|
title: "Close navigation",
|
|
15702
15728
|
children: f ? /* @__PURE__ */ b("img", {
|
|
@@ -15708,12 +15734,12 @@ function N_({ children: e, collapsed: t, onCollapsedChange: n, ...r }) {
|
|
|
15708
15734
|
}, "navigation")]
|
|
15709
15735
|
})
|
|
15710
15736
|
})]
|
|
15711
|
-
}) : /* @__PURE__ */ b(
|
|
15737
|
+
}) : /* @__PURE__ */ b(O_, {
|
|
15712
15738
|
...r,
|
|
15713
15739
|
collapsed: t,
|
|
15714
15740
|
onCollapsedChange: n
|
|
15715
|
-
}), /* @__PURE__ */ b(
|
|
15741
|
+
}), /* @__PURE__ */ b(A_, { children: e }, "viewport")]
|
|
15716
15742
|
});
|
|
15717
15743
|
}
|
|
15718
15744
|
//#endregion
|
|
15719
|
-
export {
|
|
15745
|
+
export { Dg as Avatar, Og as Badge, kg as Banner, Ym as Box, B as Button, Ag as ButtonGroup, $m as Checkbox, jg as Chip, Mg as Choice, Ng as ChoiceList, Pg as Clickable, Fg as ClickableChip, Ig as ColorField, Lg as ColorPicker, rh as Combobox, Tg as DataGrid, dg as DataReport, og as DataTable, Jm as DateField, Vh as DateFilter, zm as DatePicker, e as DirectionProvider, Zm as Divider, Rg as DropZone, zg as EmailField, Bg as EmptyState, Ph as FilterTrigger, j_ as Frame, Qm as Grid, mg as GridCell, Vg as GridItem, Hg as Heading, hm as I18nProvider, z as Icon, Ug as Image, Bm as InputBase, dm as Key, oh as Labelled, Wg as Link, Gg as ListItem, ym as MOBILE_BREAKPOINT, gh as Menu, ch as Modal, dh as ModalClose, lh as ModalRoot, uh as ModalTrigger, Kg as MoneyField, ih as MultipleSelect, qg as Number, Jg as NumberField, Yg as Option, Xg as OptionGroup, Zg as OrderedList, jh as Page, Sh as PageHeader, kh as PageStackProvider, Eg as Pagination, vh as Paragraph, Qg as PasswordField, Vm as Popover, Km as PopoverClose, Um as PopoverOption, Wm as PopoverRoot, Gm as PopoverTrigger, $g as PressButton, e_ as Progress, t_ as QueryContainer, n_ as ScrollBox, r_ as SearchField, bh as Section, i_ as Select, Uh as SelectFilter, o_ as Skeleton, R as Spinner, Xm as Stack, eh as Switch, s_ as Table, c_ as TableBody, l_ as TableCell, u_ as TableHeader, d_ as TableHeaderRow, f_ as TableRow, p_ as Text, m_ as TextArea, nh as TextField, h_ as Thumbnail, $h as Toolbar, g_ as Tooltip, v_ as URLField, __ as UnorderedList, lm as buttonsFrom, Bh as getDateFilterPresetValue, gm as useI18n, bm as useIsMobile, vm as useMediaQuery, Ah as usePage, Oh as usePageStack };
|