@orient-ai/aurora-ui 1.0.0-alpha.14 → 1.0.0-alpha.15
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/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +614 -589
- 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
|
|
@@ -12829,8 +12829,8 @@ function wh({ fullwidth: e, children: t, ...n }) {
|
|
|
12829
12829
|
for (; e && !/auto|scroll|overlay|hidden/.test(getComputedStyle(e).overflowY);) e = e.parentElement;
|
|
12830
12830
|
i.current = e ?? document.documentElement;
|
|
12831
12831
|
}, []);
|
|
12832
|
-
let { scrollY: s } =
|
|
12833
|
-
return
|
|
12832
|
+
let { scrollY: s } = le({ container: i });
|
|
12833
|
+
return ce(s, "change", (e) => o(e > 0)), /* @__PURE__ */ x("div", {
|
|
12834
12834
|
ref: r,
|
|
12835
12835
|
className: Ch.root,
|
|
12836
12836
|
children: [/* @__PURE__ */ b(Sh, {
|
|
@@ -12853,10 +12853,10 @@ var Th = {
|
|
|
12853
12853
|
//#endregion
|
|
12854
12854
|
//#region src/components/Page/components/Surface/Surface.tsx
|
|
12855
12855
|
function Eh({ pageId: e, depth: t, offset: n, index: r, children: i }) {
|
|
12856
|
-
let a = h(null), o =
|
|
12856
|
+
let a = h(null), o = M(), s = se(), c = t === 0 && s;
|
|
12857
12857
|
return u(() => {
|
|
12858
12858
|
c && a.current?.focus({ preventScroll: !0 });
|
|
12859
|
-
}, [c]), /* @__PURE__ */ b(
|
|
12859
|
+
}, [c]), /* @__PURE__ */ b(j.div, {
|
|
12860
12860
|
role: "dialog",
|
|
12861
12861
|
tabIndex: -1,
|
|
12862
12862
|
className: Th.surface,
|
|
@@ -12921,7 +12921,7 @@ function kh() {
|
|
|
12921
12921
|
return l(Oh);
|
|
12922
12922
|
}
|
|
12923
12923
|
function Ah({ children: e }) {
|
|
12924
|
-
let [t, n] = g([]), r = h(t), i = h(null), a = h(null), o =
|
|
12924
|
+
let [t, n] = g([]), r = h(t), i = h(null), a = h(null), o = M(), s = t.length > 0, l = c((e, t) => {
|
|
12925
12925
|
r.current.some((t) => t.id === e) || (r.current = [...r.current, {
|
|
12926
12926
|
id: e,
|
|
12927
12927
|
onClose: t
|
|
@@ -12971,7 +12971,7 @@ function Ah({ children: e }) {
|
|
|
12971
12971
|
ref: a,
|
|
12972
12972
|
className: Th.viewport,
|
|
12973
12973
|
"data-page-viewport": "",
|
|
12974
|
-
children: [/* @__PURE__ */ b(
|
|
12974
|
+
children: [/* @__PURE__ */ b(j.div, {
|
|
12975
12975
|
className: Th.base,
|
|
12976
12976
|
"data-covered": s || void 0,
|
|
12977
12977
|
"data-hidden": t.length > 2 || void 0,
|
|
@@ -12990,7 +12990,7 @@ function Ah({ children: e }) {
|
|
|
12990
12990
|
style: { pointerEvents: s ? "auto" : "none" },
|
|
12991
12991
|
"aria-hidden": !s || void 0,
|
|
12992
12992
|
"data-page-stack-viewport": "",
|
|
12993
|
-
children: /* @__PURE__ */ b(
|
|
12993
|
+
children: /* @__PURE__ */ b(j.div, {
|
|
12994
12994
|
className: Th.backdrop,
|
|
12995
12995
|
"data-page-stack-backdrop": "",
|
|
12996
12996
|
initial: !1,
|
|
@@ -13014,9 +13014,9 @@ function jh({ onPageClose: e } = {}) {
|
|
|
13014
13014
|
},
|
|
13015
13015
|
Content({ children: e }) {
|
|
13016
13016
|
let t = kh(), r = t?.portalRef.current, i = t?.pages.findIndex((e) => e.id === n) ?? -1, a = (t?.pages.length ?? 0) - i - 1;
|
|
13017
|
-
return /* @__PURE__ */ b(
|
|
13017
|
+
return /* @__PURE__ */ b(oe, {
|
|
13018
13018
|
propagate: !0,
|
|
13019
|
-
children: t && r && i >= 0 && /* @__PURE__ */ b(
|
|
13019
|
+
children: t && r && i >= 0 && /* @__PURE__ */ b(de.Root, {
|
|
13020
13020
|
container: r,
|
|
13021
13021
|
style: { borderRadius: "inherit" },
|
|
13022
13022
|
children: /* @__PURE__ */ b(Eh, {
|
|
@@ -13048,7 +13048,7 @@ function Fh({ label: e, segments: t = [], open: n, disabled: r = !1, onClear: i,
|
|
|
13048
13048
|
function p(e) {
|
|
13049
13049
|
e.preventDefault(), e.stopPropagation(), !r && (i?.(), u.current?.focus());
|
|
13050
13050
|
}
|
|
13051
|
-
return
|
|
13051
|
+
return fe({
|
|
13052
13052
|
defaultTagName: "button",
|
|
13053
13053
|
render: a,
|
|
13054
13054
|
ref: [u, o ?? null],
|
|
@@ -13065,7 +13065,7 @@ function Fh({ label: e, segments: t = [], open: n, disabled: r = !1, onClear: i,
|
|
|
13065
13065
|
children: [/* @__PURE__ */ b("span", {
|
|
13066
13066
|
className: "truncate",
|
|
13067
13067
|
children: e
|
|
13068
|
-
}), !f && /* @__PURE__ */ b(
|
|
13068
|
+
}), !f && /* @__PURE__ */ b(z, {
|
|
13069
13069
|
type: "chevron-down",
|
|
13070
13070
|
size: "small"
|
|
13071
13071
|
})]
|
|
@@ -13085,7 +13085,7 @@ function Fh({ label: e, segments: t = [], open: n, disabled: r = !1, onClear: i,
|
|
|
13085
13085
|
onPointerDown: (e) => e.stopPropagation(),
|
|
13086
13086
|
onMouseDown: (e) => e.stopPropagation(),
|
|
13087
13087
|
onClick: p,
|
|
13088
|
-
children: /* @__PURE__ */ b(
|
|
13088
|
+
children: /* @__PURE__ */ b(z, { type: "x" })
|
|
13089
13089
|
})]
|
|
13090
13090
|
})] })
|
|
13091
13091
|
}
|
|
@@ -13146,10 +13146,10 @@ var Rh = {
|
|
|
13146
13146
|
//#endregion
|
|
13147
13147
|
//#region src/components/Filters/Date/components/Panel/Panel.tsx
|
|
13148
13148
|
function zh({ children: e, direction: t, type: n }) {
|
|
13149
|
-
let r = h(null), i =
|
|
13149
|
+
let r = h(null), i = se(), a = M(), o = a ? 0 : 12;
|
|
13150
13150
|
return p(() => {
|
|
13151
13151
|
r.current?.closest("[role=\"dialog\"]")?.focus({ preventScroll: !0 });
|
|
13152
|
-
}, [i]), /* @__PURE__ */ b(
|
|
13152
|
+
}, [i]), /* @__PURE__ */ b(j.div, {
|
|
13153
13153
|
ref: r,
|
|
13154
13154
|
className: v(Rh.panel, {
|
|
13155
13155
|
[Rh["calendar-panel"]]: n,
|
|
@@ -13194,14 +13194,14 @@ var Bh = {
|
|
|
13194
13194
|
//#endregion
|
|
13195
13195
|
//#region src/components/Filters/Date/utilities.ts
|
|
13196
13196
|
function Vh(e, t = /* @__PURE__ */ new Date()) {
|
|
13197
|
-
let n =
|
|
13197
|
+
let n = re(t), r = k(n, "uuuu-MM-dd");
|
|
13198
13198
|
switch (e) {
|
|
13199
13199
|
case "today": return [r];
|
|
13200
13200
|
case "3days": return [k(C(n, -2), "uuuu-MM-dd"), r];
|
|
13201
13201
|
case "7days": return [k(C(n, -6), "uuuu-MM-dd"), r];
|
|
13202
13202
|
case "month": {
|
|
13203
|
-
let e =
|
|
13204
|
-
return [k(
|
|
13203
|
+
let e = A(n, 1);
|
|
13204
|
+
return [k(ie(e), "uuuu-MM-dd"), k(D(e), "uuuu-MM-dd")];
|
|
13205
13205
|
}
|
|
13206
13206
|
}
|
|
13207
13207
|
}
|
|
@@ -13256,7 +13256,7 @@ function Hh({ id: e, label: n = "Date", preset: r, onPresetsChange: i, value: a,
|
|
|
13256
13256
|
onClear: () => O([]),
|
|
13257
13257
|
children: /* @__PURE__ */ b("div", {
|
|
13258
13258
|
className: Bh.content,
|
|
13259
|
-
children: /* @__PURE__ */ b(
|
|
13259
|
+
children: /* @__PURE__ */ b(oe, {
|
|
13260
13260
|
initial: !1,
|
|
13261
13261
|
mode: "wait",
|
|
13262
13262
|
custom: C,
|
|
@@ -13265,7 +13265,7 @@ function Hh({ id: e, label: n = "Date", preset: r, onPresetsChange: i, value: a,
|
|
|
13265
13265
|
type: v,
|
|
13266
13266
|
children: v ? /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b("div", {
|
|
13267
13267
|
className: Bh.header,
|
|
13268
|
-
children: /* @__PURE__ */ b(
|
|
13268
|
+
children: /* @__PURE__ */ b(B, {
|
|
13269
13269
|
icon: "arrow-left",
|
|
13270
13270
|
variant: "tertiary",
|
|
13271
13271
|
style: {
|
|
@@ -13357,7 +13357,7 @@ function Wh({ id: e, label: t, selectedOptions: n, options: r, value: i, onChang
|
|
|
13357
13357
|
value: o,
|
|
13358
13358
|
onChange: (e) => s?.(e.currentTarget.value),
|
|
13359
13359
|
placeholder: d,
|
|
13360
|
-
prefix: /* @__PURE__ */ b(
|
|
13360
|
+
prefix: /* @__PURE__ */ b(z, { type: "search" })
|
|
13361
13361
|
})
|
|
13362
13362
|
}), /* @__PURE__ */ x("div", {
|
|
13363
13363
|
className: Uh.scroll,
|
|
@@ -13386,7 +13386,7 @@ function Wh({ id: e, label: t, selectedOptions: n, options: r, value: i, onChang
|
|
|
13386
13386
|
})
|
|
13387
13387
|
}) : p ? /* @__PURE__ */ b("div", {
|
|
13388
13388
|
className: Uh.loading,
|
|
13389
|
-
children: /* @__PURE__ */ b(
|
|
13389
|
+
children: /* @__PURE__ */ b(R, {})
|
|
13390
13390
|
}) : _ ? null : /* @__PURE__ */ b("div", {
|
|
13391
13391
|
className: Uh.empty,
|
|
13392
13392
|
children: f
|
|
@@ -13396,7 +13396,7 @@ function Wh({ id: e, label: t, selectedOptions: n, options: r, value: i, onChang
|
|
|
13396
13396
|
children: _ && /* @__PURE__ */ b("div", {
|
|
13397
13397
|
className: Uh.loading,
|
|
13398
13398
|
role: "status",
|
|
13399
|
-
children: /* @__PURE__ */ b(
|
|
13399
|
+
children: /* @__PURE__ */ b(R, {})
|
|
13400
13400
|
})
|
|
13401
13401
|
})]
|
|
13402
13402
|
})]
|
|
@@ -13416,9 +13416,9 @@ var Gh = {
|
|
|
13416
13416
|
//#region src/components/Toolbar/components/Filter/Filter.tsx
|
|
13417
13417
|
function qh({ filters: e, filtersLayout: t = "wrap", showFilter: r = !1 }) {
|
|
13418
13418
|
let i = n.toArray(e);
|
|
13419
|
-
return /* @__PURE__ */ b(
|
|
13419
|
+
return /* @__PURE__ */ b(pe.Root, {
|
|
13420
13420
|
open: r && i.length > 0,
|
|
13421
|
-
children: /* @__PURE__ */ b(
|
|
13421
|
+
children: /* @__PURE__ */ b(pe.Panel, {
|
|
13422
13422
|
className: Kh.panel,
|
|
13423
13423
|
children: /* @__PURE__ */ b("div", {
|
|
13424
13424
|
className: Kh.filters,
|
|
@@ -13457,7 +13457,7 @@ function Yh({ selectedView: e, onViewUpdate: t, onViewCreate: n }) {
|
|
|
13457
13457
|
}]
|
|
13458
13458
|
}), /* @__PURE__ */ b(ch, {
|
|
13459
13459
|
heading: r("Save view as"),
|
|
13460
|
-
primaryAction: /* @__PURE__ */ b(
|
|
13460
|
+
primaryAction: /* @__PURE__ */ b(B, {
|
|
13461
13461
|
variant: "primary",
|
|
13462
13462
|
type: "submit",
|
|
13463
13463
|
form: i,
|
|
@@ -13465,7 +13465,7 @@ function Yh({ selectedView: e, onViewUpdate: t, onViewCreate: n }) {
|
|
|
13465
13465
|
children: r("Save")
|
|
13466
13466
|
}),
|
|
13467
13467
|
secondaryActions: /* @__PURE__ */ b(dh, {
|
|
13468
|
-
render: /* @__PURE__ */ b(
|
|
13468
|
+
render: /* @__PURE__ */ b(B, { variant: "secondary" }),
|
|
13469
13469
|
children: r("Discard")
|
|
13470
13470
|
}),
|
|
13471
13471
|
children: /* @__PURE__ */ x("form", {
|
|
@@ -13499,7 +13499,7 @@ var Xh = {
|
|
|
13499
13499
|
//#endregion
|
|
13500
13500
|
//#region src/components/Toolbar/components/ColumnButton/ColumnButton.tsx
|
|
13501
13501
|
function Zh({ column: e, hidden: t, index: n, onVisibilityChange: r }) {
|
|
13502
|
-
let i =
|
|
13502
|
+
let i = M(), { ref: a, handleRef: o, isDragSource: s } = ge({
|
|
13503
13503
|
id: e.id,
|
|
13504
13504
|
index: n,
|
|
13505
13505
|
transition: i ? null : { duration: 150 }
|
|
@@ -13514,7 +13514,7 @@ function Zh({ column: e, hidden: t, index: n, onVisibilityChange: r }) {
|
|
|
13514
13514
|
ref: o,
|
|
13515
13515
|
type: "button",
|
|
13516
13516
|
className: v("aurora-base", "aurora-button", Xh.dragHandle),
|
|
13517
|
-
children: /* @__PURE__ */ b(
|
|
13517
|
+
children: /* @__PURE__ */ b(z, { type: "drag-handle" })
|
|
13518
13518
|
}),
|
|
13519
13519
|
/* @__PURE__ */ b("span", {
|
|
13520
13520
|
className: Xh.columnLabel,
|
|
@@ -13524,7 +13524,7 @@ function Zh({ column: e, hidden: t, index: n, onVisibilityChange: r }) {
|
|
|
13524
13524
|
type: "button",
|
|
13525
13525
|
className: v("aurora-base", "aurora-button", Xh.visibility),
|
|
13526
13526
|
onClick: r,
|
|
13527
|
-
children: /* @__PURE__ */ b(
|
|
13527
|
+
children: /* @__PURE__ */ b(z, { type: t ? "hide" : "view" })
|
|
13528
13528
|
})
|
|
13529
13529
|
]
|
|
13530
13530
|
});
|
|
@@ -13551,7 +13551,7 @@ function $h({ sorts: e = [], sortState: t, onSortStateChange: n, columns: r = []
|
|
|
13551
13551
|
return !d && u.length === 0 ? null : /* @__PURE__ */ x(Wm, {
|
|
13552
13552
|
open: s,
|
|
13553
13553
|
onOpenChange: c,
|
|
13554
|
-
children: [/* @__PURE__ */ b(Gm, { render: /* @__PURE__ */ b(
|
|
13554
|
+
children: [/* @__PURE__ */ b(Gm, { render: /* @__PURE__ */ b(B, {
|
|
13555
13555
|
variant: "tertiary",
|
|
13556
13556
|
icon: "layout-columns-3"
|
|
13557
13557
|
}) }), /* @__PURE__ */ b(Vm, {
|
|
@@ -13562,7 +13562,7 @@ function $h({ sorts: e = [], sortState: t, onSortStateChange: n, columns: r = []
|
|
|
13562
13562
|
className: Qh.sortRow,
|
|
13563
13563
|
children: [/* @__PURE__ */ x("span", {
|
|
13564
13564
|
className: Qh.sortLabel,
|
|
13565
|
-
children: [/* @__PURE__ */ b(
|
|
13565
|
+
children: [/* @__PURE__ */ b(z, { type: "sort" }), o("Sort by")]
|
|
13566
13566
|
}), /* @__PURE__ */ b(gh, {
|
|
13567
13567
|
label: f?.label ?? o("Select field"),
|
|
13568
13568
|
icon: "select",
|
|
@@ -13601,11 +13601,11 @@ function $h({ sorts: e = [], sortState: t, onSortStateChange: n, columns: r = []
|
|
|
13601
13601
|
children: u.length > 0 && /* @__PURE__ */ x(y, { children: [/* @__PURE__ */ b("p", {
|
|
13602
13602
|
className: Qh.heading,
|
|
13603
13603
|
children: o("Columns")
|
|
13604
|
-
}), /* @__PURE__ */ b(
|
|
13604
|
+
}), /* @__PURE__ */ b(me, {
|
|
13605
13605
|
onDragEnd: (e) => {
|
|
13606
13606
|
if (e.canceled) return;
|
|
13607
13607
|
let { source: t } = e.operation;
|
|
13608
|
-
if (!
|
|
13608
|
+
if (!he(t) || t.initialIndex === t.index) return;
|
|
13609
13609
|
let n = u.map(({ state: e }) => e), [r] = n.splice(t.initialIndex, 1);
|
|
13610
13610
|
n.splice(t.index, 0, r);
|
|
13611
13611
|
let o = 0;
|
|
@@ -13633,7 +13633,7 @@ function $h({ sorts: e = [], sortState: t, onSortStateChange: n, columns: r = []
|
|
|
13633
13633
|
//#endregion
|
|
13634
13634
|
//#region src/components/Toolbar/Toolbar.tsx
|
|
13635
13635
|
function eg({ 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 }) {
|
|
13636
|
-
let E = gm(), D =
|
|
13636
|
+
let E = gm(), D = M(), O = {
|
|
13637
13637
|
duration: D ? 0 : .2,
|
|
13638
13638
|
ease: [
|
|
13639
13639
|
.2,
|
|
@@ -13641,7 +13641,7 @@ function eg({ searchPlacerholder: e, filters: t = [], filtersLayout: r = "wrap",
|
|
|
13641
13641
|
0,
|
|
13642
13642
|
1
|
|
13643
13643
|
]
|
|
13644
|
-
}, k = m.find((e) => e.id === g), ee = !!(k && h && C), te = !!((h || !k) && (S || k && y)),
|
|
13644
|
+
}, k = m.find((e) => e.id === g), ee = !!(k && h && C), te = !!((h || !k) && (S || k && y)), ne = n.toArray(t).length > 0;
|
|
13645
13645
|
return /* @__PURE__ */ x("div", {
|
|
13646
13646
|
ref: i,
|
|
13647
13647
|
className: v("aurora-base", Gh.root),
|
|
@@ -13664,7 +13664,7 @@ function eg({ searchPlacerholder: e, filters: t = [], filtersLayout: r = "wrap",
|
|
|
13664
13664
|
}),
|
|
13665
13665
|
/* @__PURE__ */ b(nh, {
|
|
13666
13666
|
placeholder: e ?? E("Search and filter"),
|
|
13667
|
-
prefix: /* @__PURE__ */ b(
|
|
13667
|
+
prefix: /* @__PURE__ */ b(z, { type: "search" }),
|
|
13668
13668
|
value: o,
|
|
13669
13669
|
onChange: (e) => s(e.currentTarget.value)
|
|
13670
13670
|
}),
|
|
@@ -13680,21 +13680,21 @@ function eg({ searchPlacerholder: e, filters: t = [], filtersLayout: r = "wrap",
|
|
|
13680
13680
|
columnsState: f,
|
|
13681
13681
|
onColumnsStateChange: p
|
|
13682
13682
|
}, g),
|
|
13683
|
-
|
|
13683
|
+
ne && /* @__PURE__ */ b(B, {
|
|
13684
13684
|
variant: "tertiary",
|
|
13685
13685
|
icon: "adjust",
|
|
13686
13686
|
"data-popup-open": w || void 0,
|
|
13687
13687
|
onClick: () => T(!w)
|
|
13688
13688
|
}),
|
|
13689
|
-
/* @__PURE__ */ b(
|
|
13689
|
+
/* @__PURE__ */ b(oe, {
|
|
13690
13690
|
initial: !1,
|
|
13691
|
-
children: (te || ee) && /* @__PURE__ */ b(
|
|
13691
|
+
children: (te || ee) && /* @__PURE__ */ b(j.div, {
|
|
13692
13692
|
className: Gh.saveAction,
|
|
13693
13693
|
initial: { width: 0 },
|
|
13694
13694
|
animate: { width: "auto" },
|
|
13695
13695
|
exit: { width: 0 },
|
|
13696
13696
|
transition: O,
|
|
13697
|
-
children: /* @__PURE__ */ x(
|
|
13697
|
+
children: /* @__PURE__ */ x(j.div, {
|
|
13698
13698
|
className: Gh.saveButton,
|
|
13699
13699
|
initial: {
|
|
13700
13700
|
x: D ? 0 : 16,
|
|
@@ -13709,7 +13709,7 @@ function eg({ searchPlacerholder: e, filters: t = [], filtersLayout: r = "wrap",
|
|
|
13709
13709
|
opacity: 0
|
|
13710
13710
|
},
|
|
13711
13711
|
transition: O,
|
|
13712
|
-
children: [ee && /* @__PURE__ */ b(
|
|
13712
|
+
children: [ee && /* @__PURE__ */ b(B, {
|
|
13713
13713
|
type: "button",
|
|
13714
13714
|
variant: "tertiary",
|
|
13715
13715
|
icon: "clock-revert",
|
|
@@ -13734,9 +13734,9 @@ function eg({ searchPlacerholder: e, filters: t = [], filtersLayout: r = "wrap",
|
|
|
13734
13734
|
});
|
|
13735
13735
|
}
|
|
13736
13736
|
var tg = {
|
|
13737
|
-
bulkBar: "
|
|
13738
|
-
actions: "
|
|
13739
|
-
visuallyHidden: "
|
|
13737
|
+
bulkBar: "_bulkBar_yakmu_1",
|
|
13738
|
+
actions: "_actions_yakmu_22",
|
|
13739
|
+
visuallyHidden: "_visuallyHidden_yakmu_37"
|
|
13740
13740
|
};
|
|
13741
13741
|
//#endregion
|
|
13742
13742
|
//#region src/components/Collection/DataTable/componnets/BulkActions/BulkActions.tsx
|
|
@@ -13768,7 +13768,7 @@ function rg({ checkbox: e, checkboxOffset: t = 0, count: n, disabled: r = !1, on
|
|
|
13768
13768
|
(a.length > 0 || o.length > 0) && /* @__PURE__ */ x("div", {
|
|
13769
13769
|
className: tg.actions,
|
|
13770
13770
|
"data-has-overflow": o.length > 0 || void 0,
|
|
13771
|
-
children: [a.map((e, t) => /* @__PURE__ */ b(
|
|
13771
|
+
children: [a.map((e, t) => /* @__PURE__ */ b(B, {
|
|
13772
13772
|
variant: "tertiary",
|
|
13773
13773
|
tone: e.destructive ? "critical" : "auto",
|
|
13774
13774
|
disabled: r || e.disabled,
|
|
@@ -13795,26 +13795,26 @@ function rg({ checkbox: e, checkboxOffset: t = 0, count: n, disabled: r = !1, on
|
|
|
13795
13795
|
]
|
|
13796
13796
|
});
|
|
13797
13797
|
}
|
|
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
|
-
HeaderViewport: "
|
|
13812
|
-
FooterViewport: "
|
|
13813
|
-
Empty: "
|
|
13814
|
-
BodyFrame: "
|
|
13815
|
-
LoadingOverlay: "
|
|
13816
|
-
BodyViewport: "
|
|
13817
|
-
BottomBar: "
|
|
13798
|
+
var J = {
|
|
13799
|
+
Table: "_Table_17w21_1",
|
|
13800
|
+
StickyHeader: "_StickyHeader_17w21_9",
|
|
13801
|
+
Root: "_Root_17w21_16",
|
|
13802
|
+
BulkCell: "_BulkCell_17w21_43",
|
|
13803
|
+
PinnedCell: "_PinnedCell_17w21_51",
|
|
13804
|
+
SelectionCell: "_SelectionCell_17w21_51",
|
|
13805
|
+
ExpansionCell: "_ExpansionCell_17w21_51",
|
|
13806
|
+
ExpandButton: "_ExpandButton_17w21_74",
|
|
13807
|
+
ExpandIcon: "_ExpandIcon_17w21_87",
|
|
13808
|
+
ExpandedCell: "_ExpandedCell_17w21_119",
|
|
13809
|
+
ExpandedViewport: "_ExpandedViewport_17w21_124",
|
|
13810
|
+
ExpandedContent: "_ExpandedContent_17w21_128",
|
|
13811
|
+
HeaderViewport: "_HeaderViewport_17w21_168",
|
|
13812
|
+
FooterViewport: "_FooterViewport_17w21_169",
|
|
13813
|
+
Empty: "_Empty_17w21_186",
|
|
13814
|
+
BodyFrame: "_BodyFrame_17w21_193",
|
|
13815
|
+
LoadingOverlay: "_LoadingOverlay_17w21_199",
|
|
13816
|
+
BodyViewport: "_BodyViewport_17w21_208",
|
|
13817
|
+
BottomBar: "_BottomBar_17w21_216"
|
|
13818
13818
|
};
|
|
13819
13819
|
//#endregion
|
|
13820
13820
|
//#region src/components/Collection/utils.ts
|
|
@@ -13829,7 +13829,7 @@ function ig(e) {
|
|
|
13829
13829
|
//#region src/components/Collection/DataTable/DataTable.tsx
|
|
13830
13830
|
var ag = 32, og = 32;
|
|
13831
13831
|
function sg({ 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 =
|
|
13832
|
+
let d = gm(), f = M(), g = {
|
|
13833
13833
|
type: "tween",
|
|
13834
13834
|
duration: f ? 0 : .2,
|
|
13835
13835
|
ease: [
|
|
@@ -13838,134 +13838,159 @@ 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 ? og : 0, ee = k + (n ? ag : 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:
|
|
13933
|
+
colSpan: se,
|
|
13934
|
+
className: J.BulkCell,
|
|
13910
13935
|
children: /* @__PURE__ */ b(rg, {
|
|
13911
|
-
checkbox:
|
|
13912
|
-
checkboxOffset:
|
|
13913
|
-
count:
|
|
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
13966
|
"data-alignment": ig(e.column.columnDef.meta),
|
|
13942
|
-
...
|
|
13943
|
-
children: e.isPlaceholder ? null : /* @__PURE__ */ b(
|
|
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
|
-
"data-selected": n &&
|
|
13978
|
+
"data-selected": n && Re(e) || void 0,
|
|
13954
13979
|
children: [
|
|
13955
|
-
|
|
13980
|
+
O && /* @__PURE__ */ b("td", {
|
|
13956
13981
|
role: "cell",
|
|
13957
|
-
className:
|
|
13958
|
-
children: o && /* @__PURE__ */ b(
|
|
13982
|
+
className: J.ExpansionCell,
|
|
13983
|
+
children: o && /* @__PURE__ */ b(j.button, {
|
|
13959
13984
|
type: "button",
|
|
13960
|
-
className:
|
|
13985
|
+
className: J.ExpandButton,
|
|
13961
13986
|
title: d(s ? "Collapse row" : "Expand row"),
|
|
13962
13987
|
"aria-expanded": s,
|
|
13963
13988
|
disabled: c,
|
|
13964
|
-
onClick:
|
|
13989
|
+
onClick: Be(e),
|
|
13965
13990
|
whileTap: f ? void 0 : { scale: .9 },
|
|
13966
13991
|
transition: g,
|
|
13967
|
-
children: /* @__PURE__ */ b(
|
|
13968
|
-
className:
|
|
13992
|
+
children: /* @__PURE__ */ b(j.span, {
|
|
13993
|
+
className: J.ExpandIcon,
|
|
13969
13994
|
"aria-hidden": "true",
|
|
13970
13995
|
initial: !1,
|
|
13971
13996
|
animate: {
|
|
@@ -13973,7 +13998,7 @@ function sg({ ref: e, stickyHeader: t = !1, selectable: n = !1, renderExpandedCo
|
|
|
13973
13998
|
color: s ? "var(--p-color-icon, #4a4a4a)" : "var(--p-color-icon-disabled, #707070)"
|
|
13974
13999
|
},
|
|
13975
14000
|
transition: g,
|
|
13976
|
-
children: /* @__PURE__ */ b(
|
|
14001
|
+
children: /* @__PURE__ */ b(z, {
|
|
13977
14002
|
type: "chevron-right",
|
|
13978
14003
|
size: "small",
|
|
13979
14004
|
style: { color: "inherit" }
|
|
@@ -13983,34 +14008,34 @@ function sg({ ref: e, stickyHeader: t = !1, selectable: n = !1, renderExpandedCo
|
|
|
13983
14008
|
}),
|
|
13984
14009
|
n && /* @__PURE__ */ b("td", {
|
|
13985
14010
|
role: "cell",
|
|
13986
|
-
className:
|
|
13987
|
-
style:
|
|
14011
|
+
className: J.SelectionCell,
|
|
14012
|
+
style: ne,
|
|
13988
14013
|
children: /* @__PURE__ */ b($m, {
|
|
13989
14014
|
label: d("Select {0}", [e.id]),
|
|
13990
14015
|
labelAccessibilityVisibility: "exclusive",
|
|
13991
|
-
checked:
|
|
13992
|
-
indeterminate:
|
|
13993
|
-
disabled: c || !
|
|
13994
|
-
onChange:
|
|
14016
|
+
checked: Re(e),
|
|
14017
|
+
indeterminate: ze(e),
|
|
14018
|
+
disabled: c || !Ie(e),
|
|
14019
|
+
onChange: Ve(e)
|
|
13995
14020
|
})
|
|
13996
14021
|
}),
|
|
13997
14022
|
a.map((e) => /* @__PURE__ */ b("td", {
|
|
13998
14023
|
role: "cell",
|
|
13999
14024
|
"data-alignment": ig(e.column.columnDef.meta),
|
|
14000
|
-
...
|
|
14001
|
-
children: /* @__PURE__ */ b(
|
|
14025
|
+
...N(e.column.id),
|
|
14026
|
+
children: /* @__PURE__ */ b(_e, { cell: e })
|
|
14002
14027
|
}, e.id))
|
|
14003
14028
|
]
|
|
14004
|
-
}), /* @__PURE__ */ b(
|
|
14029
|
+
}), /* @__PURE__ */ b(oe, {
|
|
14005
14030
|
initial: !1,
|
|
14006
|
-
children: s && /* @__PURE__ */ b(
|
|
14031
|
+
children: s && /* @__PURE__ */ b(j.tr, {
|
|
14007
14032
|
role: "row",
|
|
14008
14033
|
children: /* @__PURE__ */ b("td", {
|
|
14009
14034
|
role: "cell",
|
|
14010
|
-
colSpan: a.length + +!!
|
|
14011
|
-
className:
|
|
14012
|
-
children: /* @__PURE__ */ b(
|
|
14013
|
-
className:
|
|
14035
|
+
colSpan: a.length + +!!O + +!!n,
|
|
14036
|
+
className: J.ExpandedCell,
|
|
14037
|
+
children: /* @__PURE__ */ b(j.div, {
|
|
14038
|
+
className: J.ExpandedViewport,
|
|
14014
14039
|
initial: {
|
|
14015
14040
|
height: 0,
|
|
14016
14041
|
opacity: 0
|
|
@@ -14025,110 +14050,110 @@ function sg({ ref: e, stickyHeader: t = !1, selectable: n = !1, renderExpandedCo
|
|
|
14025
14050
|
},
|
|
14026
14051
|
transition: g,
|
|
14027
14052
|
children: /* @__PURE__ */ b("div", {
|
|
14028
|
-
className:
|
|
14029
|
-
style: { paddingInlineStart:
|
|
14053
|
+
className: J.ExpandedContent,
|
|
14054
|
+
style: { paddingInlineStart: `calc(var(--p-table-controls-width, ${ee}px) + 8px)` },
|
|
14030
14055
|
children: i?.(e)
|
|
14031
14056
|
})
|
|
14032
14057
|
})
|
|
14033
14058
|
})
|
|
14034
14059
|
}, `expanded-${e.id}`)
|
|
14035
14060
|
})] }, e.id);
|
|
14036
|
-
}),
|
|
14061
|
+
}), D.length === 0 && /* @__PURE__ */ b("tr", {
|
|
14037
14062
|
role: "row",
|
|
14038
14063
|
children: /* @__PURE__ */ b("td", {
|
|
14039
14064
|
role: "cell",
|
|
14040
|
-
colSpan:
|
|
14041
|
-
className:
|
|
14065
|
+
colSpan: se,
|
|
14066
|
+
className: J.Empty,
|
|
14042
14067
|
children: !c && (l ?? d("No results found"))
|
|
14043
14068
|
})
|
|
14044
14069
|
})]
|
|
14045
|
-
}),
|
|
14070
|
+
}), be = le && /* @__PURE__ */ b("tfoot", {
|
|
14046
14071
|
role: "rowgroup",
|
|
14047
|
-
children:
|
|
14072
|
+
children: ce.map((e) => /* @__PURE__ */ x("tr", {
|
|
14048
14073
|
role: "row",
|
|
14049
14074
|
children: [
|
|
14050
|
-
|
|
14075
|
+
O && /* @__PURE__ */ b("td", {
|
|
14051
14076
|
role: "cell",
|
|
14052
|
-
className:
|
|
14077
|
+
className: J.ExpansionCell
|
|
14053
14078
|
}),
|
|
14054
14079
|
n && /* @__PURE__ */ b("td", {
|
|
14055
14080
|
role: "cell",
|
|
14056
|
-
className:
|
|
14057
|
-
style:
|
|
14081
|
+
className: J.SelectionCell,
|
|
14082
|
+
style: ne
|
|
14058
14083
|
}),
|
|
14059
14084
|
e.headers.map((e) => /* @__PURE__ */ b("td", {
|
|
14060
14085
|
role: "cell",
|
|
14061
14086
|
colSpan: e.colSpan,
|
|
14062
14087
|
"data-alignment": ig(e.column.columnDef.meta),
|
|
14063
|
-
...
|
|
14064
|
-
children: e.isPlaceholder ? null : /* @__PURE__ */ b(
|
|
14088
|
+
...F(e),
|
|
14089
|
+
children: e.isPlaceholder ? null : /* @__PURE__ */ b(_e, { footer: e })
|
|
14065
14090
|
}, e.id))
|
|
14066
14091
|
]
|
|
14067
14092
|
}, e.id))
|
|
14068
|
-
}),
|
|
14069
|
-
|
|
14093
|
+
}), xe = C.atoms.columnSizing?.get(), Se = A.map(({ column: e }) => {
|
|
14094
|
+
let t = xe != null && Object.hasOwn(xe, e.id) && xe[e.id] != null, n = e.columnDef;
|
|
14095
|
+
return t || n.size != null ? je(e) : void 0;
|
|
14096
|
+
}), 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: [
|
|
14097
|
+
O && /* @__PURE__ */ b("col", { style: { width: og } }),
|
|
14070
14098
|
n && /* @__PURE__ */ b("col", { style: { width: ag } }),
|
|
14071
|
-
|
|
14099
|
+
A.map((e, t) => /* @__PURE__ */ b("col", { style: { width: Se[t] } }, e.column.id))
|
|
14072
14100
|
] });
|
|
14073
|
-
return /* @__PURE__ */ x(
|
|
14101
|
+
return /* @__PURE__ */ x(P.Root, {
|
|
14074
14102
|
ref: e,
|
|
14075
|
-
className: v("aurora-base",
|
|
14103
|
+
className: v("aurora-base", J.Root),
|
|
14076
14104
|
children: [/* @__PURE__ */ x("div", {
|
|
14077
14105
|
role: "table",
|
|
14078
14106
|
"aria-busy": c,
|
|
14079
14107
|
children: [/* @__PURE__ */ b("div", {
|
|
14080
|
-
ref:
|
|
14081
|
-
className: v(
|
|
14108
|
+
ref: I,
|
|
14109
|
+
className: v(J.HeaderViewport, t && J.StickyHeader),
|
|
14082
14110
|
children: /* @__PURE__ */ x("table", {
|
|
14083
14111
|
role: "presentation",
|
|
14084
|
-
className:
|
|
14085
|
-
style:
|
|
14086
|
-
children: [
|
|
14112
|
+
className: J.Table,
|
|
14113
|
+
style: we,
|
|
14114
|
+
children: [Te, ge]
|
|
14087
14115
|
})
|
|
14088
14116
|
}), /* @__PURE__ */ x("div", {
|
|
14089
|
-
className:
|
|
14090
|
-
children: [/* @__PURE__ */ b(
|
|
14091
|
-
ref:
|
|
14092
|
-
className:
|
|
14117
|
+
className: J.BodyFrame,
|
|
14118
|
+
children: [/* @__PURE__ */ b(P.Viewport, {
|
|
14119
|
+
ref: de,
|
|
14120
|
+
className: J.BodyViewport,
|
|
14093
14121
|
tabIndex: 0,
|
|
14094
14122
|
style: {
|
|
14095
14123
|
overflowX: "auto",
|
|
14096
14124
|
overflowY: "hidden"
|
|
14097
14125
|
},
|
|
14098
|
-
children: /* @__PURE__ */ x(
|
|
14126
|
+
children: /* @__PURE__ */ x(P.Content, {
|
|
14099
14127
|
render: /* @__PURE__ */ b("table", { role: "presentation" }),
|
|
14100
|
-
className:
|
|
14101
|
-
style:
|
|
14102
|
-
|
|
14103
|
-
minWidth: "100%"
|
|
14104
|
-
},
|
|
14105
|
-
children: [ye, pe]
|
|
14128
|
+
className: J.Table,
|
|
14129
|
+
style: we,
|
|
14130
|
+
children: [Te, ve]
|
|
14106
14131
|
})
|
|
14107
14132
|
}), c && /* @__PURE__ */ b("div", {
|
|
14108
|
-
className:
|
|
14133
|
+
className: J.LoadingOverlay,
|
|
14109
14134
|
role: "status",
|
|
14110
|
-
children: /* @__PURE__ */ b(
|
|
14135
|
+
children: /* @__PURE__ */ b(R, {})
|
|
14111
14136
|
})]
|
|
14112
14137
|
})]
|
|
14113
14138
|
}), /* @__PURE__ */ x("div", {
|
|
14114
|
-
className:
|
|
14139
|
+
className: J.BottomBar,
|
|
14115
14140
|
children: [
|
|
14116
14141
|
/* @__PURE__ */ b("div", {
|
|
14117
|
-
ref:
|
|
14118
|
-
className:
|
|
14119
|
-
hidden: !
|
|
14142
|
+
ref: fe,
|
|
14143
|
+
className: J.FooterViewport,
|
|
14144
|
+
hidden: !le,
|
|
14120
14145
|
children: /* @__PURE__ */ x("table", {
|
|
14121
14146
|
role: "presentation",
|
|
14122
|
-
className:
|
|
14123
|
-
style:
|
|
14124
|
-
children: [
|
|
14147
|
+
className: J.Table,
|
|
14148
|
+
style: we,
|
|
14149
|
+
children: [Te, be]
|
|
14125
14150
|
})
|
|
14126
14151
|
}),
|
|
14127
|
-
/* @__PURE__ */ b(
|
|
14152
|
+
/* @__PURE__ */ b(P.Scrollbar, {
|
|
14128
14153
|
orientation: "horizontal",
|
|
14129
14154
|
className: "aurora-scrollbar",
|
|
14130
14155
|
style: { position: "relative" },
|
|
14131
|
-
children: /* @__PURE__ */ b(
|
|
14156
|
+
children: /* @__PURE__ */ b(P.Thumb, { className: "aurora-scrollbar-thumb" })
|
|
14132
14157
|
}),
|
|
14133
14158
|
s
|
|
14134
14159
|
]
|
|
@@ -14138,16 +14163,16 @@ function sg({ ref: e, stickyHeader: t = !1, selectable: n = !1, renderExpandedCo
|
|
|
14138
14163
|
//#endregion
|
|
14139
14164
|
//#region src/components/Collection/DataReport/hooks/useColumnResizing.ts
|
|
14140
14165
|
function cg({ columns: e, onResizeStart: t, enabled: n, loading: r }) {
|
|
14141
|
-
let [i, a] = g(), o = n ? e.find(
|
|
14166
|
+
let [i, a] = g(), o = n ? e.find(ke) : void 0;
|
|
14142
14167
|
function s(i) {
|
|
14143
14168
|
let { column: o } = i;
|
|
14144
|
-
if (!(i.isPlaceholder || o.columns.length > 0 || !n || o.id === e.at(-1)?.id || !
|
|
14169
|
+
if (!(i.isPlaceholder || o.columns.length > 0 || !n || o.id === e.at(-1)?.id || !Ee(o))) return {
|
|
14145
14170
|
"data-disabled": r || void 0,
|
|
14146
14171
|
onMouseDown(e) {
|
|
14147
|
-
r || e.button !== 0 || (e.preventDefault(), e.stopPropagation(), t(),
|
|
14172
|
+
r || e.button !== 0 || (e.preventDefault(), e.stopPropagation(), t(), Pe(i, e.currentTarget.ownerDocument)(e));
|
|
14148
14173
|
},
|
|
14149
14174
|
onTouchStart(e) {
|
|
14150
|
-
!r && e.touches.length === 1 && (t(),
|
|
14175
|
+
!r && e.touches.length === 1 && (t(), Pe(i, e.currentTarget.ownerDocument)(e));
|
|
14151
14176
|
},
|
|
14152
14177
|
onPointerEnter: () => a(o.id),
|
|
14153
14178
|
onPointerLeave: () => a(void 0)
|
|
@@ -14185,7 +14210,7 @@ function lg({ columns: e, viewportRef: t }) {
|
|
|
14185
14210
|
];
|
|
14186
14211
|
}),
|
|
14187
14212
|
l ? o?.[l.id] : null
|
|
14188
|
-
]), f = e.map((e) =>
|
|
14213
|
+
]), f = e.map((e) => je(e));
|
|
14189
14214
|
if (f.length) {
|
|
14190
14215
|
let e = f.length - 1;
|
|
14191
14216
|
if (u !== void 0) {
|
|
@@ -14259,7 +14284,7 @@ function dg({ triggerRef: e, hasMore: t, loading: n, isLoadingMore: r, onLoadMor
|
|
|
14259
14284
|
a
|
|
14260
14285
|
]);
|
|
14261
14286
|
}
|
|
14262
|
-
var
|
|
14287
|
+
var Y = {
|
|
14263
14288
|
root: "_root_vqkdy_1",
|
|
14264
14289
|
tableContainer: "_tableContainer_vqkdy_1",
|
|
14265
14290
|
header: "_header_vqkdy_1",
|
|
@@ -14296,7 +14321,7 @@ function fg({ virtual: e = !1, stickyHeader: n = !1, loading: i = !1, hasMore: a
|
|
|
14296
14321
|
..."columns" in t && t.columns ? { columns: e(t.columns) } : {}
|
|
14297
14322
|
}));
|
|
14298
14323
|
return e(_.columns);
|
|
14299
|
-
}, [_.columns]), w =
|
|
14324
|
+
}, [_.columns]), w = ye({
|
|
14300
14325
|
columnResizeDirection: S,
|
|
14301
14326
|
columnResizeMode: "onChange",
|
|
14302
14327
|
..._,
|
|
@@ -14322,68 +14347,68 @@ function fg({ virtual: e = !1, stickyHeader: n = !1, loading: i = !1, hasMore: a
|
|
|
14322
14347
|
}, r = new ResizeObserver(n);
|
|
14323
14348
|
return r.observe(t), t.firstElementChild && r.observe(t.firstElementChild), n(), () => r.disconnect();
|
|
14324
14349
|
}, [S]);
|
|
14325
|
-
let te = We(T),
|
|
14350
|
+
let te = We(T), ne = te ? [
|
|
14326
14351
|
Ge(T),
|
|
14327
|
-
|
|
14352
|
+
He(T),
|
|
14328
14353
|
Ue(T)
|
|
14329
|
-
] : void 0,
|
|
14354
|
+
] : void 0, re = w.getHeaderGroups().map((e, t) => ne ? {
|
|
14330
14355
|
...e,
|
|
14331
|
-
headers:
|
|
14332
|
-
} : e),
|
|
14333
|
-
columns:
|
|
14356
|
+
headers: ne.flatMap((e) => e[t]?.headers ?? [])
|
|
14357
|
+
} : 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 } = lg({
|
|
14358
|
+
columns: A,
|
|
14334
14359
|
viewportRef: D
|
|
14335
|
-
}),
|
|
14360
|
+
}), se = oe.reduce((e, t) => e + t, 0), ce = /* @__PURE__ */ new Map(), M = 0;
|
|
14336
14361
|
if (te) {
|
|
14337
14362
|
let e = 0;
|
|
14338
|
-
for (let [e, t] of
|
|
14339
|
-
for (let t =
|
|
14340
|
-
let n =
|
|
14341
|
-
|
|
14363
|
+
for (let [e, t] of A.entries()) Oe(t) === "start" && (ce.set(t.id, { insetInlineStart: M }), M += oe[e]);
|
|
14364
|
+
for (let t = A.length - 1; t >= 0; t--) {
|
|
14365
|
+
let n = A[t];
|
|
14366
|
+
Oe(n) === "end" && (ce.set(n.id, { insetInlineEnd: e }), e += oe[t]);
|
|
14342
14367
|
}
|
|
14343
14368
|
}
|
|
14344
|
-
function
|
|
14369
|
+
function le(e) {
|
|
14345
14370
|
let t = e, n = e;
|
|
14346
14371
|
for (; t.subHeaders.length;) t = t.subHeaders[0];
|
|
14347
14372
|
for (; n.subHeaders.length;) n = n.subHeaders.at(-1);
|
|
14348
|
-
return
|
|
14373
|
+
return ce.get(Oe(t.column) === "end" ? n.column.id : t.column.id);
|
|
14349
14374
|
}
|
|
14350
|
-
let { resizing:
|
|
14351
|
-
columns:
|
|
14352
|
-
onResizeStart:
|
|
14375
|
+
let { resizing: ue, activeDivider: N, getResizeHandleProps: F } = cg({
|
|
14376
|
+
columns: A,
|
|
14377
|
+
onResizeStart: j,
|
|
14353
14378
|
enabled: !!_.features.columnResizingFeature,
|
|
14354
14379
|
loading: i
|
|
14355
|
-
}),
|
|
14380
|
+
}), I = w.getRowModel().rows, de = !!_.features.rowExpandingFeature, fe = c((e) => I[e].id, [I]), pe = ug({
|
|
14356
14381
|
contentRef: O,
|
|
14357
14382
|
enabled: e,
|
|
14358
|
-
count:
|
|
14359
|
-
getItemKey:
|
|
14360
|
-
}),
|
|
14361
|
-
function
|
|
14362
|
-
let n =
|
|
14383
|
+
count: I.length,
|
|
14384
|
+
getItemKey: fe
|
|
14385
|
+
}), me = pe.getVirtualItems(), he = pe.options.scrollMargin ?? 0;
|
|
14386
|
+
function ge(t) {
|
|
14387
|
+
let n = I[t], r = n.getAllCellsByColumnId(), a = de && Fe(n), o = de && Le(n);
|
|
14363
14388
|
return /* @__PURE__ */ b("div", {
|
|
14364
|
-
ref: e ?
|
|
14389
|
+
ref: e ? pe.measureElement : void 0,
|
|
14365
14390
|
"data-index": e ? t : void 0,
|
|
14366
|
-
className: v(
|
|
14367
|
-
children:
|
|
14368
|
-
let s = r[e.id], c =
|
|
14391
|
+
className: v(Y.gridRow, Y.row),
|
|
14392
|
+
children: ie.map(({ column: e }, t) => {
|
|
14393
|
+
let s = r[e.id], c = ce.get(e.id);
|
|
14369
14394
|
return /* @__PURE__ */ x("div", {
|
|
14370
|
-
className: v(
|
|
14395
|
+
className: v(Y.cell, c && Y.pinned),
|
|
14371
14396
|
"data-alignment": ig(e.columnDef.meta),
|
|
14372
|
-
"data-resize-active":
|
|
14397
|
+
"data-resize-active": N === e.id || void 0,
|
|
14373
14398
|
style: {
|
|
14374
|
-
...t === 0 &&
|
|
14399
|
+
...t === 0 && de && _.getSubRows ? { paddingInlineStart: 12 + n.depth * 20 } : void 0,
|
|
14375
14400
|
...c
|
|
14376
14401
|
},
|
|
14377
14402
|
children: [/* @__PURE__ */ b("div", {
|
|
14378
|
-
className:
|
|
14379
|
-
children: /* @__PURE__ */ b(
|
|
14403
|
+
className: Y.value,
|
|
14404
|
+
children: /* @__PURE__ */ b(_e, { cell: s })
|
|
14380
14405
|
}), t === 0 && a && /* @__PURE__ */ b("button", {
|
|
14381
14406
|
type: "button",
|
|
14382
|
-
className:
|
|
14407
|
+
className: Y.expandButton,
|
|
14383
14408
|
"data-expanded": o,
|
|
14384
14409
|
disabled: i,
|
|
14385
|
-
onClick:
|
|
14386
|
-
children: /* @__PURE__ */ b(
|
|
14410
|
+
onClick: Be(n),
|
|
14411
|
+
children: /* @__PURE__ */ b(z, {
|
|
14387
14412
|
color: o ? "base" : "subdued",
|
|
14388
14413
|
type: o ? "chevron-down" : "chevron-right"
|
|
14389
14414
|
})
|
|
@@ -14392,130 +14417,130 @@ function fg({ virtual: e = !1, stickyHeader: n = !1, loading: i = !1, hasMore: a
|
|
|
14392
14417
|
})
|
|
14393
14418
|
}, n.id);
|
|
14394
14419
|
}
|
|
14395
|
-
let
|
|
14420
|
+
let ve = (e) => e > 0 ? /* @__PURE__ */ b("div", {
|
|
14396
14421
|
"aria-hidden": "true",
|
|
14397
14422
|
style: { height: e }
|
|
14398
14423
|
}) : null;
|
|
14399
|
-
return /* @__PURE__ */ x(
|
|
14424
|
+
return /* @__PURE__ */ x(P.Root, {
|
|
14400
14425
|
ref: d,
|
|
14401
|
-
className: v("aurora-base",
|
|
14426
|
+
className: v("aurora-base", Y.root, g),
|
|
14402
14427
|
style: {
|
|
14403
|
-
"--report-columns":
|
|
14404
|
-
"--report-width":
|
|
14405
|
-
"--report-pinned-start-width":
|
|
14428
|
+
"--report-columns": oe.map((e) => e + "px").join(" "),
|
|
14429
|
+
"--report-width": se ? se + "px" : "100%",
|
|
14430
|
+
"--report-pinned-start-width": M + "px",
|
|
14406
14431
|
...f
|
|
14407
14432
|
},
|
|
14408
|
-
"data-resizing":
|
|
14433
|
+
"data-resizing": ue ? "" : void 0,
|
|
14409
14434
|
children: [
|
|
14410
14435
|
/* @__PURE__ */ x("div", {
|
|
14411
|
-
className:
|
|
14436
|
+
className: Y.tableContainer,
|
|
14412
14437
|
children: [/* @__PURE__ */ b("div", {
|
|
14413
|
-
className: v(
|
|
14438
|
+
className: v(Y.header, n && Y.stickyHeader),
|
|
14414
14439
|
children: /* @__PURE__ */ x("div", {
|
|
14415
14440
|
ref: E,
|
|
14416
|
-
className:
|
|
14417
|
-
children: [
|
|
14418
|
-
className:
|
|
14441
|
+
className: Y.horizontalScroll,
|
|
14442
|
+
children: [re.map((e) => /* @__PURE__ */ b("div", {
|
|
14443
|
+
className: Y.gridRow,
|
|
14419
14444
|
children: e.headers.map((e) => {
|
|
14420
|
-
let { column: t } = e, n = t.columnDef, r = !e.isPlaceholder && t.columns.length === 0 && !!_.features.rowSortingFeature &&
|
|
14445
|
+
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
14446
|
return /* @__PURE__ */ x("div", {
|
|
14422
|
-
className: v(
|
|
14447
|
+
className: v(Y.heading, s && Y.pinned),
|
|
14423
14448
|
style: {
|
|
14424
14449
|
gridColumn: "span " + e.colSpan,
|
|
14425
14450
|
...s
|
|
14426
14451
|
},
|
|
14427
|
-
"data-resize-active":
|
|
14452
|
+
"data-resize-active": N === t.id || void 0,
|
|
14428
14453
|
"data-alignment": ig(n.meta),
|
|
14429
14454
|
children: [r ? /* @__PURE__ */ b("button", {
|
|
14430
14455
|
type: "button",
|
|
14431
|
-
className:
|
|
14456
|
+
className: Y.sortButton,
|
|
14432
14457
|
disabled: i,
|
|
14433
|
-
onClick:
|
|
14458
|
+
onClick: Me(t),
|
|
14434
14459
|
children: /* @__PURE__ */ x("span", {
|
|
14435
|
-
className:
|
|
14460
|
+
className: Y.headingLabel,
|
|
14436
14461
|
children: [/* @__PURE__ */ b("span", {
|
|
14437
|
-
className:
|
|
14462
|
+
className: Y.headingText,
|
|
14438
14463
|
children: c
|
|
14439
|
-
}), /* @__PURE__ */ b(
|
|
14464
|
+
}), /* @__PURE__ */ b(z, {
|
|
14440
14465
|
type: a === "desc" ? "sort-descending" : "sort-ascending",
|
|
14441
|
-
className: v(
|
|
14466
|
+
className: v(Y.sortIcon, a && Y.activeSort)
|
|
14442
14467
|
})]
|
|
14443
14468
|
})
|
|
14444
14469
|
}) : /* @__PURE__ */ b("span", {
|
|
14445
|
-
className:
|
|
14470
|
+
className: Y.headingLabel,
|
|
14446
14471
|
children: c
|
|
14447
14472
|
}), o && /* @__PURE__ */ b("div", {
|
|
14448
14473
|
...o,
|
|
14449
|
-
className:
|
|
14474
|
+
className: Y.resizeHandle
|
|
14450
14475
|
})]
|
|
14451
14476
|
}, e.id);
|
|
14452
14477
|
})
|
|
14453
|
-
}, e.id)),
|
|
14454
|
-
className: v(
|
|
14478
|
+
}, e.id)), ae.map((e) => /* @__PURE__ */ b("div", {
|
|
14479
|
+
className: v(Y.gridRow, Y.totals),
|
|
14455
14480
|
children: e.headers.map((e) => {
|
|
14456
|
-
let t =
|
|
14481
|
+
let t = le(e);
|
|
14457
14482
|
return /* @__PURE__ */ b("div", {
|
|
14458
|
-
className: v(
|
|
14459
|
-
"data-resize-active":
|
|
14483
|
+
className: v(Y.cell, t && Y.pinned),
|
|
14484
|
+
"data-resize-active": N === e.column.id || void 0,
|
|
14460
14485
|
"data-alignment": ig(e.column.columnDef.meta),
|
|
14461
14486
|
style: {
|
|
14462
14487
|
gridColumn: "span " + e.colSpan,
|
|
14463
14488
|
...t
|
|
14464
14489
|
},
|
|
14465
14490
|
children: /* @__PURE__ */ b("div", {
|
|
14466
|
-
className:
|
|
14467
|
-
children: e.isPlaceholder ? null : /* @__PURE__ */ b(
|
|
14491
|
+
className: Y.value,
|
|
14492
|
+
children: e.isPlaceholder ? null : /* @__PURE__ */ b(_e, { footer: e })
|
|
14468
14493
|
})
|
|
14469
14494
|
}, e.id);
|
|
14470
14495
|
})
|
|
14471
14496
|
}, e.id))]
|
|
14472
14497
|
})
|
|
14473
14498
|
}), /* @__PURE__ */ x("div", {
|
|
14474
|
-
className:
|
|
14475
|
-
children: [/* @__PURE__ */ b(
|
|
14499
|
+
className: Y.bodyFrame,
|
|
14500
|
+
children: [/* @__PURE__ */ b(P.Viewport, {
|
|
14476
14501
|
ref: D,
|
|
14477
|
-
className:
|
|
14502
|
+
className: Y.horizontalScroll,
|
|
14478
14503
|
tabIndex: 0,
|
|
14479
|
-
children: /* @__PURE__ */ x(
|
|
14504
|
+
children: /* @__PURE__ */ x(P.Content, {
|
|
14480
14505
|
ref: O,
|
|
14481
|
-
className:
|
|
14506
|
+
className: Y.content,
|
|
14482
14507
|
children: [
|
|
14483
|
-
e ?
|
|
14484
|
-
e &&
|
|
14485
|
-
!
|
|
14486
|
-
className:
|
|
14508
|
+
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)),
|
|
14509
|
+
e && ve(pe.getTotalSize() - ((me.at(-1)?.end ?? he) - he)),
|
|
14510
|
+
!I.length && /* @__PURE__ */ b("div", {
|
|
14511
|
+
className: Y.gridRow,
|
|
14487
14512
|
children: /* @__PURE__ */ b("div", {
|
|
14488
|
-
className:
|
|
14513
|
+
className: Y.empty,
|
|
14489
14514
|
children: !i && !s && !a && (l ?? y("No data to display"))
|
|
14490
14515
|
})
|
|
14491
14516
|
})
|
|
14492
14517
|
]
|
|
14493
14518
|
})
|
|
14494
14519
|
}), i && /* @__PURE__ */ b("div", {
|
|
14495
|
-
className:
|
|
14520
|
+
className: Y.loading,
|
|
14496
14521
|
children: /* @__PURE__ */ b("div", {
|
|
14497
14522
|
className: "mx-auto py-5",
|
|
14498
|
-
children: /* @__PURE__ */ b(
|
|
14523
|
+
children: /* @__PURE__ */ b(R, {})
|
|
14499
14524
|
})
|
|
14500
14525
|
})]
|
|
14501
14526
|
})]
|
|
14502
14527
|
}),
|
|
14503
14528
|
(a || s) && /* @__PURE__ */ b("div", {
|
|
14504
14529
|
ref: k,
|
|
14505
|
-
className:
|
|
14530
|
+
className: Y.loadMore,
|
|
14506
14531
|
"aria-busy": s,
|
|
14507
14532
|
children: s && /* @__PURE__ */ b("div", {
|
|
14508
14533
|
className: "py-5",
|
|
14509
|
-
children: /* @__PURE__ */ b(
|
|
14534
|
+
children: /* @__PURE__ */ b(R, {})
|
|
14510
14535
|
})
|
|
14511
14536
|
}),
|
|
14512
14537
|
/* @__PURE__ */ x("div", {
|
|
14513
|
-
className:
|
|
14514
|
-
children: [/* @__PURE__ */ b(
|
|
14538
|
+
className: Y.bottomBar,
|
|
14539
|
+
children: [/* @__PURE__ */ b(P.Scrollbar, {
|
|
14515
14540
|
orientation: "horizontal",
|
|
14516
14541
|
className: "aurora-scrollbar",
|
|
14517
14542
|
style: { position: "relative" },
|
|
14518
|
-
children: /* @__PURE__ */ b(
|
|
14543
|
+
children: /* @__PURE__ */ b(P.Thumb, { className: "aurora-scrollbar-thumb" })
|
|
14519
14544
|
}), u]
|
|
14520
14545
|
})
|
|
14521
14546
|
]
|
|
@@ -14567,7 +14592,7 @@ function hg({ selected: e = !1, readOnly: t, selectionEdges: n = mg, dirty: a =
|
|
|
14567
14592
|
}),
|
|
14568
14593
|
o && /* @__PURE__ */ b("span", {
|
|
14569
14594
|
className: pg.Spinner,
|
|
14570
|
-
children: /* @__PURE__ */ b(
|
|
14595
|
+
children: /* @__PURE__ */ b(R, {})
|
|
14571
14596
|
})
|
|
14572
14597
|
]
|
|
14573
14598
|
})
|
|
@@ -14576,23 +14601,23 @@ function hg({ selected: e = !1, readOnly: t, selectionEdges: n = mg, dirty: a =
|
|
|
14576
14601
|
//#endregion
|
|
14577
14602
|
//#region src/components/Collection/DataGrid/hooks/useGridColumnResizing.ts
|
|
14578
14603
|
function gg({ table: e, enabled: t, direction: n }) {
|
|
14579
|
-
let [r, i] = g(), a = t ? e.getAllFlatColumns().find(
|
|
14604
|
+
let [r, i] = g(), a = t ? e.getAllFlatColumns().find(ke) : void 0;
|
|
14580
14605
|
function o(e) {
|
|
14581
14606
|
let { column: r } = e;
|
|
14582
|
-
if (!(!e.isPlaceholder && r.columns.length === 0 && t &&
|
|
14583
|
-
let a =
|
|
14607
|
+
if (!(!e.isPlaceholder && r.columns.length === 0 && t && Ee(r))) return;
|
|
14608
|
+
let a = je(r), { minSize: o = 80, maxSize: s = 2 ** 53 - 1 } = r.columnDef;
|
|
14584
14609
|
return {
|
|
14585
14610
|
role: "separator",
|
|
14586
14611
|
tabIndex: 0,
|
|
14587
14612
|
onMouseDown(t) {
|
|
14588
|
-
t.button === 0 && (t.preventDefault(), t.stopPropagation(),
|
|
14613
|
+
t.button === 0 && (t.preventDefault(), t.stopPropagation(), Pe(e)(t));
|
|
14589
14614
|
},
|
|
14590
|
-
onTouchStart:
|
|
14615
|
+
onTouchStart: Pe(e),
|
|
14591
14616
|
onPointerEnter: () => i(r.id),
|
|
14592
14617
|
onPointerLeave: () => i(void 0),
|
|
14593
14618
|
onFocus: () => i(r.id),
|
|
14594
14619
|
onBlur: () => i(void 0),
|
|
14595
|
-
onDoubleClick: () =>
|
|
14620
|
+
onDoubleClick: () => Ne(r),
|
|
14596
14621
|
onKeyDown(e) {
|
|
14597
14622
|
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
14623
|
i !== void 0 && (e.preventDefault(), qe(r.table, (e) => ({
|
|
@@ -14670,7 +14695,7 @@ function Sg({ table: e, tableRef: t }) {
|
|
|
14670
14695
|
tableRef: t,
|
|
14671
14696
|
onExtend(t) {
|
|
14672
14697
|
let n = e.getRowModel().rowsById[t.dataset.rowId ?? ""]?.getAllCellsByColumnId()[t.dataset.columnId ?? ""];
|
|
14673
|
-
n &&
|
|
14698
|
+
n && we(n)(void 0);
|
|
14674
14699
|
}
|
|
14675
14700
|
});
|
|
14676
14701
|
function c(e) {
|
|
@@ -14680,14 +14705,14 @@ function Sg({ table: e, tableRef: t }) {
|
|
|
14680
14705
|
let t = {
|
|
14681
14706
|
rowId: e.row.id,
|
|
14682
14707
|
columnId: e.column.id
|
|
14683
|
-
}, r =
|
|
14708
|
+
}, r = be(e), i = Se(e), l = Ce(e), u = [];
|
|
14684
14709
|
return l.top && u.push("top"), l.bottom && u.push("bottom"), l.left && u.push("start"), l.right && u.push("end"), {
|
|
14685
14710
|
canSelect: r,
|
|
14686
14711
|
isEditing: n?.rowId === e.row.id && n.columnId === e.column.id,
|
|
14687
14712
|
props: {
|
|
14688
14713
|
selected: i,
|
|
14689
14714
|
selectionEdges: u,
|
|
14690
|
-
tabIndex: r &&
|
|
14715
|
+
tabIndex: r && xe(e) ? 0 : -1,
|
|
14691
14716
|
onFocus(n) {
|
|
14692
14717
|
a(e.row.id), n.target !== n.currentTarget && c(t);
|
|
14693
14718
|
},
|
|
@@ -14699,7 +14724,7 @@ function Sg({ table: e, tableRef: t }) {
|
|
|
14699
14724
|
let n = t.target, a = n.closest("[role=\"combobox\"], [aria-haspopup]:not([aria-haspopup=\"false\"])");
|
|
14700
14725
|
if (!a && n.closest("a, button, select, summary, [role=\"button\"], input[type=\"checkbox\"], input[type=\"radio\"], input[type=\"range\"]")) return;
|
|
14701
14726
|
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,
|
|
14727
|
+
!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
14728
|
},
|
|
14704
14729
|
onClickCapture(e) {
|
|
14705
14730
|
o.current && e.detail > 0 && (o.current = !1, e.preventDefault(), e.stopPropagation());
|
|
@@ -14765,8 +14790,8 @@ function Cg({ tableRef: e, enabled: t, count: n, getItemKey: r, focusedRowIndex:
|
|
|
14765
14790
|
function wg(e) {
|
|
14766
14791
|
let { virtual: n = !1, stickyHeader: r = !1, updates: i } = e, a = t(), o = m(() => ({
|
|
14767
14792
|
...e.features,
|
|
14768
|
-
cellSelectionFeature:
|
|
14769
|
-
}), [e.features]), s =
|
|
14793
|
+
cellSelectionFeature: ve
|
|
14794
|
+
}), [e.features]), s = ye({
|
|
14770
14795
|
autoResetCellSelection: !1,
|
|
14771
14796
|
columnResizeDirection: a,
|
|
14772
14797
|
columnResizeMode: "onChange",
|
|
@@ -14789,7 +14814,7 @@ function wg(e) {
|
|
|
14789
14814
|
table: s,
|
|
14790
14815
|
enabled: !!e.features.columnResizingFeature,
|
|
14791
14816
|
direction: a
|
|
14792
|
-
}), v = s.getHeaderGroups(), y = v.at(-1)?.headers ?? [], b = y.map(({ column: e }) =>
|
|
14817
|
+
}), 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
14818
|
let e = /* @__PURE__ */ new Map();
|
|
14794
14819
|
for (let [t, n] of i ?? []) {
|
|
14795
14820
|
let r = e.get(t.rowId);
|
|
@@ -14860,7 +14885,7 @@ function Eg(e) {
|
|
|
14860
14885
|
key: e.id,
|
|
14861
14886
|
className: v(Tg.Cell, t && Tg.RangeCell),
|
|
14862
14887
|
"data-alignment": ig(e.column.columnDef.meta)
|
|
14863
|
-
}, /* @__PURE__ */ b(
|
|
14888
|
+
}, /* @__PURE__ */ b(_e, { cell: n }));
|
|
14864
14889
|
})
|
|
14865
14890
|
}, n.id);
|
|
14866
14891
|
}
|
|
@@ -14897,7 +14922,7 @@ function Eg(e) {
|
|
|
14897
14922
|
"data-resize-active": _ === e.column.id || void 0,
|
|
14898
14923
|
children: [/* @__PURE__ */ b("div", {
|
|
14899
14924
|
className: Tg.HeaderContent,
|
|
14900
|
-
children: /* @__PURE__ */ b("span", { children: e.isPlaceholder ? null : /* @__PURE__ */ b(
|
|
14925
|
+
children: /* @__PURE__ */ b("span", { children: e.isPlaceholder ? null : /* @__PURE__ */ b(_e, { header: e }) })
|
|
14901
14926
|
}), t && /* @__PURE__ */ b("div", {
|
|
14902
14927
|
...t,
|
|
14903
14928
|
className: Tg.ResizeHandle
|
|
@@ -14911,7 +14936,7 @@ function Eg(e) {
|
|
|
14911
14936
|
colSpan: e.colSpan,
|
|
14912
14937
|
"data-alignment": ig(e.column.columnDef.meta),
|
|
14913
14938
|
"data-resize-active": _ === e.column.id || void 0,
|
|
14914
|
-
children: e.isPlaceholder ? null : /* @__PURE__ */ b(
|
|
14939
|
+
children: e.isPlaceholder ? null : /* @__PURE__ */ b(_e, { footer: e })
|
|
14915
14940
|
}, e.id)) }, e.id)) })
|
|
14916
14941
|
]
|
|
14917
14942
|
});
|
|
@@ -14955,7 +14980,7 @@ function Dg({ total: e, pageNum: n, pageSize: r, onPageNumChange: i, onPageSizeC
|
|
|
14955
14980
|
className: "me-(--p-space-100,4px) whitespace-nowrap",
|
|
14956
14981
|
children: l("Page {0} of {1}", [d === 0 ? 0 : m + 1, p])
|
|
14957
14982
|
}),
|
|
14958
|
-
/* @__PURE__ */ b(
|
|
14983
|
+
/* @__PURE__ */ b(B, {
|
|
14959
14984
|
type: "button",
|
|
14960
14985
|
variant: "tertiary",
|
|
14961
14986
|
icon: u === "rtl" ? "chevron-right" : "chevron-left",
|
|
@@ -14963,7 +14988,7 @@ function Dg({ total: e, pageNum: n, pageSize: r, onPageNumChange: i, onPageSizeC
|
|
|
14963
14988
|
disabled: d === 0 || m === 0,
|
|
14964
14989
|
onClick: () => i(m - 1)
|
|
14965
14990
|
}),
|
|
14966
|
-
/* @__PURE__ */ b(
|
|
14991
|
+
/* @__PURE__ */ b(B, {
|
|
14967
14992
|
type: "button",
|
|
14968
14993
|
variant: "tertiary",
|
|
14969
14994
|
icon: u === "rtl" ? "chevron-left" : "chevron-right",
|
|
@@ -15221,7 +15246,7 @@ function y_(e) {
|
|
|
15221
15246
|
}
|
|
15222
15247
|
//#endregion
|
|
15223
15248
|
//#region src/utilities/command-key.ts
|
|
15224
|
-
var b_ = navigator.platform.startsWith("Mac") ? "⌘" : "Ctrl",
|
|
15249
|
+
var b_ = navigator.platform.startsWith("Mac") ? "⌘" : "Ctrl", X = {
|
|
15225
15250
|
item: "_item_9fbfw_2",
|
|
15226
15251
|
row: "_row_9fbfw_15",
|
|
15227
15252
|
icon: "_icon_9fbfw_72",
|
|
@@ -15243,27 +15268,27 @@ function x_(e = []) {
|
|
|
15243
15268
|
function S_({ item: e, collapsed: t }) {
|
|
15244
15269
|
let { icon: n, children: r } = e, i = !!e.active, a = !!r?.length, o = x_(r), s = a && (i || o), c = [e, ...r ?? []], l = /* @__PURE__ */ x(y, { children: [
|
|
15245
15270
|
n && /* @__PURE__ */ b("span", {
|
|
15246
|
-
className:
|
|
15247
|
-
children: /* @__PURE__ */ b(
|
|
15271
|
+
className: X.icon,
|
|
15272
|
+
children: /* @__PURE__ */ b(z, { type: n })
|
|
15248
15273
|
}),
|
|
15249
15274
|
/* @__PURE__ */ b("span", {
|
|
15250
|
-
className:
|
|
15275
|
+
className: X.label,
|
|
15251
15276
|
children: e.label
|
|
15252
15277
|
}),
|
|
15253
15278
|
e.badge && /* @__PURE__ */ b("span", {
|
|
15254
|
-
className:
|
|
15279
|
+
className: X.badge,
|
|
15255
15280
|
children: e.badge
|
|
15256
15281
|
})
|
|
15257
15282
|
] });
|
|
15258
15283
|
return /* @__PURE__ */ x("li", {
|
|
15259
|
-
className:
|
|
15284
|
+
className: X.item,
|
|
15260
15285
|
"data-active": i,
|
|
15261
15286
|
"data-child-active": o,
|
|
15262
15287
|
"data-expanded": s,
|
|
15263
|
-
children: [t && !e.disabled ? /* @__PURE__ */ x(
|
|
15288
|
+
children: [t && !e.disabled ? /* @__PURE__ */ x(I.Root, {
|
|
15264
15289
|
modal: !1,
|
|
15265
|
-
children: [/* @__PURE__ */ b(
|
|
15266
|
-
className: v("aurora-base", "aurora-button",
|
|
15290
|
+
children: [/* @__PURE__ */ b(I.Trigger, {
|
|
15291
|
+
className: v("aurora-base", "aurora-button", X.row),
|
|
15267
15292
|
disabled: e.disabled,
|
|
15268
15293
|
"data-disabled": !!e.disabled,
|
|
15269
15294
|
openOnHover: !0,
|
|
@@ -15271,8 +15296,8 @@ function S_({ item: e, collapsed: t }) {
|
|
|
15271
15296
|
closeDelay: 10,
|
|
15272
15297
|
onClick: e.onSelect,
|
|
15273
15298
|
children: l
|
|
15274
|
-
}), /* @__PURE__ */ b(
|
|
15275
|
-
className:
|
|
15299
|
+
}), /* @__PURE__ */ b(I.Portal, { children: /* @__PURE__ */ b(I.Positioner, {
|
|
15300
|
+
className: X.flyoutPositioner,
|
|
15276
15301
|
positionMethod: "fixed",
|
|
15277
15302
|
side: "right",
|
|
15278
15303
|
align: "start",
|
|
@@ -15282,15 +15307,15 @@ function S_({ item: e, collapsed: t }) {
|
|
|
15282
15307
|
side: "shift",
|
|
15283
15308
|
align: "shift"
|
|
15284
15309
|
},
|
|
15285
|
-
children: /* @__PURE__ */ b(
|
|
15286
|
-
className: v("aurora-base",
|
|
15310
|
+
children: /* @__PURE__ */ b(I.Popup, {
|
|
15311
|
+
className: v("aurora-base", X.flyout),
|
|
15287
15312
|
children: /* @__PURE__ */ b("ul", {
|
|
15288
|
-
className:
|
|
15313
|
+
className: X.flyoutList,
|
|
15289
15314
|
role: "none",
|
|
15290
15315
|
children: c.map((e, t) => /* @__PURE__ */ b("li", {
|
|
15291
15316
|
role: "none",
|
|
15292
|
-
children: /* @__PURE__ */ b(
|
|
15293
|
-
className:
|
|
15317
|
+
children: /* @__PURE__ */ b(I.Item, {
|
|
15318
|
+
className: X.flyoutRow,
|
|
15294
15319
|
"data-active": !!e.active,
|
|
15295
15320
|
"data-disabled": !!e.disabled,
|
|
15296
15321
|
disabled: e.disabled,
|
|
@@ -15303,15 +15328,15 @@ function S_({ item: e, collapsed: t }) {
|
|
|
15303
15328
|
}) })]
|
|
15304
15329
|
}) : /* @__PURE__ */ b("button", {
|
|
15305
15330
|
type: "button",
|
|
15306
|
-
className: v("aurora-base", "aurora-button",
|
|
15331
|
+
className: v("aurora-base", "aurora-button", X.row),
|
|
15307
15332
|
disabled: e.disabled,
|
|
15308
15333
|
"data-disabled": !!e.disabled,
|
|
15309
15334
|
onClick: e.onSelect,
|
|
15310
15335
|
children: l
|
|
15311
15336
|
}), a && /* @__PURE__ */ b("div", {
|
|
15312
|
-
className:
|
|
15337
|
+
className: X.children,
|
|
15313
15338
|
children: /* @__PURE__ */ b("ul", {
|
|
15314
|
-
className:
|
|
15339
|
+
className: X.childrenInner,
|
|
15315
15340
|
children: r?.map((e, n) => /* @__PURE__ */ b(S_, {
|
|
15316
15341
|
item: e,
|
|
15317
15342
|
collapsed: t
|
|
@@ -15320,7 +15345,7 @@ function S_({ item: e, collapsed: t }) {
|
|
|
15320
15345
|
})]
|
|
15321
15346
|
});
|
|
15322
15347
|
}
|
|
15323
|
-
var
|
|
15348
|
+
var Z = {
|
|
15324
15349
|
root: "_root_5hldm_1",
|
|
15325
15350
|
trigger: "_trigger_5hldm_6",
|
|
15326
15351
|
avatar: "_avatar_5hldm_56",
|
|
@@ -15336,55 +15361,55 @@ var Q = {
|
|
|
15336
15361
|
function C_({ sites: e, siteId: t, onSiteChange: n, onReload: r, collapsed: i }) {
|
|
15337
15362
|
let a = e.find((e) => e.id === t);
|
|
15338
15363
|
return e.length === 0 ? null : /* @__PURE__ */ b("div", {
|
|
15339
|
-
className:
|
|
15364
|
+
className: Z.root,
|
|
15340
15365
|
"data-collapsed": i,
|
|
15341
|
-
children: /* @__PURE__ */ x(
|
|
15366
|
+
children: /* @__PURE__ */ x(I.Root, {
|
|
15342
15367
|
modal: !1,
|
|
15343
|
-
children: [/* @__PURE__ */ x(
|
|
15344
|
-
className: v("aurora-base", "aurora-button",
|
|
15368
|
+
children: [/* @__PURE__ */ x(I.Trigger, {
|
|
15369
|
+
className: v("aurora-base", "aurora-button", Z.trigger),
|
|
15345
15370
|
openOnHover: i,
|
|
15346
15371
|
delay: 20,
|
|
15347
15372
|
closeDelay: 100,
|
|
15348
15373
|
children: [/* @__PURE__ */ b("span", {
|
|
15349
|
-
className:
|
|
15374
|
+
className: Z.avatar,
|
|
15350
15375
|
children: a?.intinal ?? "?"
|
|
15351
15376
|
}), /* @__PURE__ */ b("span", {
|
|
15352
|
-
className:
|
|
15377
|
+
className: Z.label,
|
|
15353
15378
|
children: a?.label ?? "Select site"
|
|
15354
15379
|
})]
|
|
15355
|
-
}), /* @__PURE__ */ b(
|
|
15356
|
-
className:
|
|
15380
|
+
}), /* @__PURE__ */ b(I.Portal, { children: /* @__PURE__ */ b(I.Positioner, {
|
|
15381
|
+
className: Z.positioner,
|
|
15357
15382
|
positionMethod: "fixed",
|
|
15358
15383
|
side: i ? "right" : "top",
|
|
15359
15384
|
align: i ? "end" : "start",
|
|
15360
15385
|
sideOffset: i ? 12 : 8,
|
|
15361
15386
|
collisionPadding: 8,
|
|
15362
|
-
children: /* @__PURE__ */ x(
|
|
15363
|
-
className: v("aurora-base",
|
|
15364
|
-
children: [/* @__PURE__ */ b(
|
|
15387
|
+
children: /* @__PURE__ */ x(I.Popup, {
|
|
15388
|
+
className: v("aurora-base", Z.popup),
|
|
15389
|
+
children: [/* @__PURE__ */ b(I.RadioGroup, {
|
|
15365
15390
|
value: t,
|
|
15366
15391
|
onValueChange: n,
|
|
15367
|
-
render: /* @__PURE__ */ b("ul", { className:
|
|
15392
|
+
render: /* @__PURE__ */ b("ul", { className: Z.list }),
|
|
15368
15393
|
children: e.map((e) => /* @__PURE__ */ b("li", {
|
|
15369
15394
|
role: "none",
|
|
15370
|
-
children: /* @__PURE__ */ x(
|
|
15371
|
-
className:
|
|
15395
|
+
children: /* @__PURE__ */ x(I.RadioItem, {
|
|
15396
|
+
className: Z.option,
|
|
15372
15397
|
value: e.id,
|
|
15373
15398
|
label: e.label,
|
|
15374
15399
|
closeOnClick: !0,
|
|
15375
15400
|
children: [/* @__PURE__ */ b("span", {
|
|
15376
|
-
className:
|
|
15401
|
+
className: Z.avatar,
|
|
15377
15402
|
children: e.intinal
|
|
15378
15403
|
}), /* @__PURE__ */ b("span", {
|
|
15379
|
-
className:
|
|
15404
|
+
className: Z.label,
|
|
15380
15405
|
children: e.label
|
|
15381
15406
|
})]
|
|
15382
15407
|
})
|
|
15383
15408
|
}, e.id))
|
|
15384
|
-
}), /* @__PURE__ */ b(
|
|
15385
|
-
className:
|
|
15386
|
-
children: /* @__PURE__ */ b(
|
|
15387
|
-
className: v("aurora-button",
|
|
15409
|
+
}), /* @__PURE__ */ b(I.Group, {
|
|
15410
|
+
className: Z.section,
|
|
15411
|
+
children: /* @__PURE__ */ b(I.Item, {
|
|
15412
|
+
className: v("aurora-button", Z.option),
|
|
15388
15413
|
nativeButton: !0,
|
|
15389
15414
|
render: /* @__PURE__ */ b("button", { type: "button" }),
|
|
15390
15415
|
onClick: r,
|
|
@@ -15401,8 +15426,8 @@ function C_({ sites: e, siteId: t, onSiteChange: n, onReload: r, collapsed: i })
|
|
|
15401
15426
|
//#region src/components/Frame/components/Navigation/Notification/Badges.tsx
|
|
15402
15427
|
var w_ = "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";
|
|
15403
15428
|
function T_({ children: e, hidden: t }) {
|
|
15404
|
-
let n =
|
|
15405
|
-
return /* @__PURE__ */ b(
|
|
15429
|
+
let n = M();
|
|
15430
|
+
return /* @__PURE__ */ b(j.span, {
|
|
15406
15431
|
className: v(w_, "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
15432
|
hidden: t,
|
|
15408
15433
|
initial: !n && {
|
|
@@ -15448,15 +15473,15 @@ var D_ = {
|
|
|
15448
15473
|
function O_({ collapsed: e, count: t = 0, label: n = "Notifications", onSelect: r }) {
|
|
15449
15474
|
let i = Math.max(0, Math.floor(t)), a = i > 0, o = i > 99 ? "99+" : i;
|
|
15450
15475
|
return /* @__PURE__ */ b("li", {
|
|
15451
|
-
className: v(
|
|
15476
|
+
className: v(X.item, D_.item),
|
|
15452
15477
|
"data-collapsed": e,
|
|
15453
15478
|
children: /* @__PURE__ */ x("button", {
|
|
15454
15479
|
type: "button",
|
|
15455
|
-
className: v("aurora-base", "aurora-button",
|
|
15480
|
+
className: v("aurora-base", "aurora-button", X.row, D_.row),
|
|
15456
15481
|
onClick: r,
|
|
15457
15482
|
children: [
|
|
15458
15483
|
/* @__PURE__ */ b("span", {
|
|
15459
|
-
className:
|
|
15484
|
+
className: X.icon,
|
|
15460
15485
|
children: /* @__PURE__ */ x("svg", {
|
|
15461
15486
|
className: D_.icon,
|
|
15462
15487
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -15498,7 +15523,7 @@ function O_({ collapsed: e, count: t = 0, label: n = "Notifications", onSelect:
|
|
|
15498
15523
|
})
|
|
15499
15524
|
});
|
|
15500
15525
|
}
|
|
15501
|
-
var
|
|
15526
|
+
var Q = {
|
|
15502
15527
|
sidebar: "_sidebar_bpadd_1",
|
|
15503
15528
|
header: "_header_bpadd_12",
|
|
15504
15529
|
brand: "_brand_bpadd_17",
|
|
@@ -15516,58 +15541,58 @@ var $ = {
|
|
|
15516
15541
|
//#region src/components/Frame/components/Navigation/index.tsx
|
|
15517
15542
|
function k_({ 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
15543
|
return /* @__PURE__ */ x("aside", {
|
|
15519
|
-
className:
|
|
15544
|
+
className: Q.sidebar,
|
|
15520
15545
|
"data-collapsed": t,
|
|
15521
15546
|
"data-drawer": f ? "" : void 0,
|
|
15522
15547
|
children: [/* @__PURE__ */ x("header", {
|
|
15523
|
-
className:
|
|
15548
|
+
className: Q.header,
|
|
15524
15549
|
children: [/* @__PURE__ */ x("div", {
|
|
15525
|
-
className:
|
|
15550
|
+
className: Q.brand,
|
|
15526
15551
|
children: [f ?? (e && /* @__PURE__ */ b("span", {
|
|
15527
|
-
className:
|
|
15552
|
+
className: Q.logo,
|
|
15528
15553
|
children: /* @__PURE__ */ b("img", {
|
|
15529
15554
|
src: e,
|
|
15530
15555
|
alt: "Logo"
|
|
15531
15556
|
})
|
|
15532
15557
|
})), /* @__PURE__ */ b("button", {
|
|
15533
15558
|
type: "button",
|
|
15534
|
-
className:
|
|
15559
|
+
className: Q.toggle,
|
|
15535
15560
|
"aria-label": t ? "Expand navigation" : "Collapse navigation",
|
|
15536
15561
|
onClick: () => n(!t),
|
|
15537
15562
|
children: /* @__PURE__ */ b(am, {})
|
|
15538
15563
|
})]
|
|
15539
15564
|
}), /* @__PURE__ */ x("button", {
|
|
15540
15565
|
type: "button",
|
|
15541
|
-
className:
|
|
15566
|
+
className: Q.search,
|
|
15542
15567
|
"aria-label": "Search",
|
|
15543
15568
|
onClick: a,
|
|
15544
15569
|
children: [
|
|
15545
15570
|
/* @__PURE__ */ b("span", {
|
|
15546
|
-
className:
|
|
15571
|
+
className: Q.searchIcon,
|
|
15547
15572
|
children: /* @__PURE__ */ b(Hu, {})
|
|
15548
15573
|
}),
|
|
15549
15574
|
/* @__PURE__ */ b("span", {
|
|
15550
|
-
className:
|
|
15575
|
+
className: Q.searchLabel,
|
|
15551
15576
|
children: "Search"
|
|
15552
15577
|
}),
|
|
15553
15578
|
/* @__PURE__ */ b("span", {
|
|
15554
|
-
className:
|
|
15579
|
+
className: Q.searchKey,
|
|
15555
15580
|
children: `${b_}K`
|
|
15556
15581
|
})
|
|
15557
15582
|
]
|
|
15558
15583
|
})]
|
|
15559
15584
|
}), /* @__PURE__ */ x("nav", {
|
|
15560
|
-
className:
|
|
15585
|
+
className: Q.navigation,
|
|
15561
15586
|
children: [
|
|
15562
15587
|
/* @__PURE__ */ b("ul", {
|
|
15563
|
-
className:
|
|
15588
|
+
className: Q.scroll,
|
|
15564
15589
|
children: r.map((e, n) => /* @__PURE__ */ b(S_, {
|
|
15565
15590
|
item: e,
|
|
15566
15591
|
collapsed: t
|
|
15567
15592
|
}, `${e.label}-${n}`))
|
|
15568
15593
|
}),
|
|
15569
15594
|
/* @__PURE__ */ x("ul", {
|
|
15570
|
-
className:
|
|
15595
|
+
className: Q.footer,
|
|
15571
15596
|
children: [/* @__PURE__ */ b(O_, {
|
|
15572
15597
|
collapsed: t,
|
|
15573
15598
|
count: o,
|
|
@@ -15592,7 +15617,7 @@ function k_({ logoUrl: e, collapsed: t, onCollapsedChange: n, items: r = [], onS
|
|
|
15592
15617
|
})]
|
|
15593
15618
|
});
|
|
15594
15619
|
}
|
|
15595
|
-
var
|
|
15620
|
+
var $ = {
|
|
15596
15621
|
root: "_root_1kfa4_1",
|
|
15597
15622
|
topbar: "_topbar_1kfa4_35",
|
|
15598
15623
|
actions: "_actions_1kfa4_45",
|
|
@@ -15601,19 +15626,19 @@ var A_ = {
|
|
|
15601
15626
|
notification: "_notification_1kfa4_94",
|
|
15602
15627
|
backdrop: "_backdrop_1kfa4_105",
|
|
15603
15628
|
drawer: "_drawer_1kfa4_112"
|
|
15604
|
-
},
|
|
15629
|
+
}, A_ = { viewport: "_viewport_jkjn8_1" };
|
|
15605
15630
|
//#endregion
|
|
15606
15631
|
//#region src/components/Frame/components/Viewport/Viewport.tsx
|
|
15607
|
-
function
|
|
15632
|
+
function j_({ children: e }) {
|
|
15608
15633
|
return /* @__PURE__ */ b("div", {
|
|
15609
|
-
className:
|
|
15634
|
+
className: A_.viewport,
|
|
15610
15635
|
children: e
|
|
15611
15636
|
});
|
|
15612
15637
|
}
|
|
15613
15638
|
//#endregion
|
|
15614
15639
|
//#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 =
|
|
15640
|
+
function M_({ children: e, collapsed: t, onCollapsedChange: n, ...r }) {
|
|
15641
|
+
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
15642
|
return p(() => {
|
|
15618
15643
|
if (!o) return;
|
|
15619
15644
|
let e = () => {
|
|
@@ -15625,19 +15650,19 @@ function N_({ children: e, collapsed: t, onCollapsedChange: n, ...r }) {
|
|
|
15625
15650
|
return t.observe(o), () => t.disconnect();
|
|
15626
15651
|
}, [o]), /* @__PURE__ */ x("div", {
|
|
15627
15652
|
ref: s,
|
|
15628
|
-
className: v("aurora-base",
|
|
15653
|
+
className: v("aurora-base", $.root),
|
|
15629
15654
|
"data-layout": c ? "compact" : "wide",
|
|
15630
15655
|
"data-collapsed": !c && t,
|
|
15631
|
-
children: [c ? /* @__PURE__ */ x(
|
|
15656
|
+
children: [c ? /* @__PURE__ */ x(F.Root, {
|
|
15632
15657
|
open: i,
|
|
15633
15658
|
actionsRef: u,
|
|
15634
15659
|
onOpenChange: (e, t) => {
|
|
15635
15660
|
e || t.preventUnmountOnClose(), a(e);
|
|
15636
15661
|
},
|
|
15637
15662
|
children: [/* @__PURE__ */ x("header", {
|
|
15638
|
-
className:
|
|
15639
|
-
children: [/* @__PURE__ */ b(
|
|
15640
|
-
className: v(
|
|
15663
|
+
className: $.topbar,
|
|
15664
|
+
children: [/* @__PURE__ */ b(F.Trigger, {
|
|
15665
|
+
className: v($.iconButton, $.logo),
|
|
15641
15666
|
"aria-label": "Open navigation",
|
|
15642
15667
|
title: "Open navigation",
|
|
15643
15668
|
children: f ? /* @__PURE__ */ b("img", {
|
|
@@ -15645,17 +15670,17 @@ function N_({ children: e, collapsed: t, onCollapsedChange: n, ...r }) {
|
|
|
15645
15670
|
alt: "Logo"
|
|
15646
15671
|
}) : /* @__PURE__ */ b(Qs, {})
|
|
15647
15672
|
}), /* @__PURE__ */ x("div", {
|
|
15648
|
-
className:
|
|
15673
|
+
className: $.actions,
|
|
15649
15674
|
children: [/* @__PURE__ */ b("button", {
|
|
15650
15675
|
type: "button",
|
|
15651
|
-
className:
|
|
15676
|
+
className: $.iconButton,
|
|
15652
15677
|
"aria-label": "Search",
|
|
15653
15678
|
title: "Search",
|
|
15654
15679
|
onClick: m,
|
|
15655
15680
|
children: /* @__PURE__ */ b(Hu, { "aria-hidden": "true" })
|
|
15656
15681
|
}), /* @__PURE__ */ x("button", {
|
|
15657
15682
|
type: "button",
|
|
15658
|
-
className: v(
|
|
15683
|
+
className: v($.iconButton, $.notification),
|
|
15659
15684
|
"aria-label": C,
|
|
15660
15685
|
title: C,
|
|
15661
15686
|
onClick: _,
|
|
@@ -15665,23 +15690,23 @@ function N_({ children: e, collapsed: t, onCollapsedChange: n, ...r }) {
|
|
|
15665
15690
|
})]
|
|
15666
15691
|
})]
|
|
15667
15692
|
})]
|
|
15668
|
-
}), /* @__PURE__ */ b(
|
|
15693
|
+
}), /* @__PURE__ */ b(F.Portal, {
|
|
15669
15694
|
container: o,
|
|
15670
15695
|
keepMounted: !0,
|
|
15671
|
-
children: /* @__PURE__ */ x(
|
|
15696
|
+
children: /* @__PURE__ */ x(oe, {
|
|
15672
15697
|
onExitComplete: () => u.current?.unmount(),
|
|
15673
|
-
children: [i && /* @__PURE__ */ b(
|
|
15674
|
-
className:
|
|
15675
|
-
render: /* @__PURE__ */ b(
|
|
15698
|
+
children: [i && /* @__PURE__ */ b(F.Backdrop, {
|
|
15699
|
+
className: $.backdrop,
|
|
15700
|
+
render: /* @__PURE__ */ b(j.div, {
|
|
15676
15701
|
initial: { opacity: 0 },
|
|
15677
15702
|
animate: { opacity: 1 },
|
|
15678
15703
|
exit: { opacity: 0 },
|
|
15679
15704
|
transition: { duration: d ? 0 : .2 }
|
|
15680
15705
|
})
|
|
15681
|
-
}, "backdrop"), i && /* @__PURE__ */ b(
|
|
15682
|
-
className:
|
|
15706
|
+
}, "backdrop"), i && /* @__PURE__ */ b(F.Popup, {
|
|
15707
|
+
className: $.drawer,
|
|
15683
15708
|
"aria-label": "Navigation",
|
|
15684
|
-
render: /* @__PURE__ */ b(
|
|
15709
|
+
render: /* @__PURE__ */ b(j.div, {
|
|
15685
15710
|
initial: { x: d ? 0 : "-100%" },
|
|
15686
15711
|
animate: { x: 0 },
|
|
15687
15712
|
exit: { x: d ? 0 : "-100%" },
|
|
@@ -15695,8 +15720,8 @@ function N_({ children: e, collapsed: t, onCollapsedChange: n, ...r }) {
|
|
|
15695
15720
|
...r,
|
|
15696
15721
|
collapsed: !1,
|
|
15697
15722
|
onCollapsedChange: () => u.current?.close(),
|
|
15698
|
-
logoAction: /* @__PURE__ */ b(
|
|
15699
|
-
className: v(
|
|
15723
|
+
logoAction: /* @__PURE__ */ b(F.Close, {
|
|
15724
|
+
className: v($.iconButton, $.logo),
|
|
15700
15725
|
"aria-label": "Close navigation",
|
|
15701
15726
|
title: "Close navigation",
|
|
15702
15727
|
children: f ? /* @__PURE__ */ b("img", {
|
|
@@ -15712,8 +15737,8 @@ function N_({ children: e, collapsed: t, onCollapsedChange: n, ...r }) {
|
|
|
15712
15737
|
...r,
|
|
15713
15738
|
collapsed: t,
|
|
15714
15739
|
onCollapsedChange: n
|
|
15715
|
-
}), /* @__PURE__ */ b(
|
|
15740
|
+
}), /* @__PURE__ */ b(j_, { children: e }, "viewport")]
|
|
15716
15741
|
});
|
|
15717
15742
|
}
|
|
15718
15743
|
//#endregion
|
|
15719
|
-
export { Og as Avatar, kg as Badge, Ag as Banner, Ym as Box,
|
|
15744
|
+
export { Og as Avatar, kg as Badge, Ag as Banner, Ym as Box, B as Button, jg as ButtonGroup, $m as Checkbox, Mg as Chip, Ng as Choice, Pg as ChoiceList, Fg as Clickable, Ig as ClickableChip, Lg as ColorField, Rg as ColorPicker, rh as Combobox, Eg as DataGrid, fg as DataReport, sg as DataTable, Jm as DateField, Hh as DateFilter, zm as DatePicker, e as DirectionProvider, Zm as Divider, zg as DropZone, Bg as EmailField, Vg as EmptyState, Fh as FilterTrigger, M_ as Frame, Qm as Grid, hg as GridCell, Hg as GridItem, Ug as Heading, hm as I18nProvider, z as Icon, Wg as Image, Bm as InputBase, dm as Key, oh as Labelled, Gg as Link, Kg as ListItem, ym as MOBILE_BREAKPOINT, gh as Menu, ch as Modal, dh as ModalClose, lh as ModalRoot, uh as ModalTrigger, qg as MoneyField, ih as MultipleSelect, Jg as Number, Yg as NumberField, Xg as Option, Zg as OptionGroup, Qg as OrderedList, Mh as Page, Sh as PageHeader, Ah as PageStackProvider, Dg as Pagination, vh as Paragraph, $g as PasswordField, Vm as Popover, Km as PopoverClose, Um as PopoverOption, Wm as PopoverRoot, Gm as PopoverTrigger, e_ as PressButton, t_ as Progress, n_ as QueryContainer, r_ as ScrollBox, i_ as SearchField, bh as Section, a_ as Select, Wh as SelectFilter, s_ as Skeleton, R as Spinner, Xm as Stack, eh as Switch, c_ as Table, l_ as TableBody, u_ as TableCell, d_ as TableHeader, f_ as TableHeaderRow, p_ as TableRow, m_ as Text, h_ as TextArea, nh as TextField, g_ as Thumbnail, eg as Toolbar, __ as Tooltip, y_ as URLField, v_ as UnorderedList, lm as buttonsFrom, Vh as getDateFilterPresetValue, gm as useI18n, bm as useIsMobile, vm as useMediaQuery, jh as usePage, kh as usePageStack };
|