@shtabapp/ui-kit 1.75.0 → 1.76.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/dist/{SButton-CLTNdnCK.cjs → SButton-BCgdXE_B.cjs} +1 -1
- package/dist/{SButton-LAOBxpd4.js → SButton-DIWMMCSc.js} +1 -0
- package/dist/{SButtonGroup-DPq5g7bZ.js → SButtonGroup-BqW5Rz1p.js} +0 -2
- package/dist/{SButtonGroup-Co1AUbsm.cjs → SButtonGroup-DSi8mQSz.cjs} +1 -1
- package/dist/{SCard-DKZYyR5b.cjs → SCard-B210wsTH.cjs} +1 -1
- package/dist/{SCard-DgGxjBUV.js → SCard-DJuyINB7.js} +1 -1
- package/dist/SCheckbox-Dkbk21Id.cjs +1 -0
- package/dist/SCheckbox-Dulusx5v.js +105 -0
- package/dist/{SChip-Dcvk3JI8.cjs → SChip-BCB1bvua.cjs} +1 -1
- package/dist/{SChip-NDTK29yq.js → SChip-C6d9oIYL.js} +1 -1
- package/dist/{SColorPicker-Ct8FVU0D.cjs → SColorPicker-CcPnyXE0.cjs} +1 -1
- package/dist/{SColorPicker-BjtlrGHZ.js → SColorPicker-XXyDOuDg.js} +2 -2
- package/dist/{SInput-D8NftspL.js → SInput-CGlUBCkW.js} +57 -54
- package/dist/SInput-fT-S-Tko.cjs +1 -0
- package/dist/SList-BuuCfuHg.js +471 -0
- package/dist/SList-Vg9nx1oe.cjs +1 -0
- package/dist/SListItem-CDlsjhA3.js +227 -0
- package/dist/SListItem-DMjtJXxV.cjs +1 -0
- package/dist/{SPhotoEdit-CShhPLJt.cjs → SPhotoEdit-B4ujF5Dh.cjs} +1 -1
- package/dist/{SPhotoEdit-r63G2NZI.js → SPhotoEdit-BxxycqvA.js} +1 -1
- package/dist/SRadio-B9qQ-PEk.cjs +1 -0
- package/dist/SRadio-BhoLtFUS.js +60 -0
- package/dist/SSelect-Bn4kifqp.js +666 -0
- package/dist/SSelect-DyngcoP9.cjs +1 -0
- package/dist/STab-BkQzKaLY.cjs +1 -0
- package/dist/STab-D7SATMfv.js +242 -0
- package/dist/{STable-G2k-tI4g.js → STable-BVGHC_FJ.js} +156 -133
- package/dist/STable-QYXxMVAw.cjs +1 -0
- package/dist/STabs-BYbsRtvi.js +151 -0
- package/dist/STabs-DDP-2p6T.cjs +1 -0
- package/dist/{STag-C5KhPWjQ.js → STag-DWjv_Za8.js} +1 -1
- package/dist/{STag-ZPrc5q4N.cjs → STag-nqzlv8OZ.cjs} +1 -1
- package/dist/{STagGroup-ccEvIkK7.cjs → STagGroup-CYEI9OXO.cjs} +1 -1
- package/dist/{STagGroup-BGwvunuu.js → STagGroup-DEPpEU5C.js} +1 -1
- package/dist/SToggle-BNgLiIrQ.cjs +1 -0
- package/dist/SToggle-MSdprnRP.js +62 -0
- package/dist/components/SButton/SButton.vue.d.ts.map +1 -1
- package/dist/components/SButtonGroup/SButtonGroup.vue.d.ts.map +1 -1
- package/dist/components/SCheckbox/SCheckbox.vue.d.ts.map +1 -1
- package/dist/components/SInput/SInput.vue.d.ts.map +1 -1
- package/dist/components/SInput/utils/fieldLabelId.d.ts +6 -0
- package/dist/components/SInput/utils/fieldLabelId.d.ts.map +1 -0
- package/dist/components/SList/SList.vue.d.ts.map +1 -1
- package/dist/components/SList/utils/context.d.ts +3 -0
- package/dist/components/SList/utils/context.d.ts.map +1 -1
- package/dist/components/SListItem/SListItem.types.d.ts +22 -0
- package/dist/components/SListItem/SListItem.types.d.ts.map +1 -1
- package/dist/components/SListItem/SListItem.vue.d.ts.map +1 -1
- package/dist/components/SListItem/index.d.ts +2 -2
- package/dist/components/SListItem/index.d.ts.map +1 -1
- package/dist/components/SListItem/utils/listItemAria.d.ts +31 -0
- package/dist/components/SListItem/utils/listItemAria.d.ts.map +1 -0
- package/dist/components/SRadio/SRadio.vue.d.ts.map +1 -1
- package/dist/components/SSelect/SSelect.vue.d.ts.map +1 -1
- package/dist/components/STab/STab.types.d.ts +5 -0
- package/dist/components/STab/STab.types.d.ts.map +1 -1
- package/dist/components/STab/STab.vue.d.ts +2 -0
- package/dist/components/STab/STab.vue.d.ts.map +1 -1
- package/dist/components/STable/STable.vue.d.ts.map +1 -1
- package/dist/components/STable/parts/STableGroupRow.vue.d.ts +2 -0
- package/dist/components/STable/parts/STableGroupRow.vue.d.ts.map +1 -1
- package/dist/components/STable/parts/STableRow.vue.d.ts +2 -0
- package/dist/components/STable/parts/STableRow.vue.d.ts.map +1 -1
- package/dist/components/STabs/STabs.vue.d.ts.map +1 -1
- package/dist/components/SToggle/SToggle.vue.d.ts.map +1 -1
- package/dist/composables/useAriaAttrs.d.ts +21 -0
- package/dist/composables/useAriaAttrs.d.ts.map +1 -0
- package/dist/entries/button-group.cjs +1 -1
- package/dist/entries/button-group.js +1 -1
- package/dist/entries/button.cjs +1 -1
- package/dist/entries/button.js +1 -1
- package/dist/entries/card.cjs +1 -1
- package/dist/entries/card.js +1 -1
- package/dist/entries/checkbox.cjs +1 -1
- package/dist/entries/checkbox.js +1 -1
- package/dist/entries/chip.cjs +1 -1
- package/dist/entries/chip.js +1 -1
- package/dist/entries/color-picker.cjs +1 -1
- package/dist/entries/color-picker.js +1 -1
- package/dist/entries/input.cjs +1 -1
- package/dist/entries/input.js +1 -1
- package/dist/entries/list-item.cjs +1 -1
- package/dist/entries/list-item.d.ts +2 -2
- package/dist/entries/list-item.d.ts.map +1 -1
- package/dist/entries/list-item.js +2 -2
- package/dist/entries/list.cjs +1 -1
- package/dist/entries/list.js +1 -1
- package/dist/entries/photo-edit.cjs +1 -1
- package/dist/entries/photo-edit.js +1 -1
- package/dist/entries/radio.cjs +1 -1
- package/dist/entries/radio.js +1 -1
- package/dist/entries/select.cjs +1 -1
- package/dist/entries/select.js +1 -1
- package/dist/entries/tab.cjs +1 -1
- package/dist/entries/tab.js +1 -1
- package/dist/entries/table.cjs +1 -1
- package/dist/entries/table.js +1 -1
- package/dist/entries/tabs.cjs +1 -1
- package/dist/entries/tabs.js +2 -2
- package/dist/entries/tag-group.cjs +1 -1
- package/dist/entries/tag-group.js +2 -2
- package/dist/entries/tag.cjs +1 -1
- package/dist/entries/tag.js +1 -1
- package/dist/entries/toggle.cjs +1 -1
- package/dist/entries/toggle.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +209 -209
- package/dist/uikit-components.css +1 -1
- package/dist/useAriaAttrs-CxGRTeye.js +15 -0
- package/dist/useAriaAttrs-D748yeJ_.cjs +1 -0
- package/package.json +3 -3
- package/dist/SCheckbox-BMkOc5cn.js +0 -102
- package/dist/SCheckbox-DnnC5mOH.cjs +0 -1
- package/dist/SInput-B4So5LGW.cjs +0 -1
- package/dist/SList-BuXrkB03.js +0 -465
- package/dist/SList-CvP0U6U1.cjs +0 -1
- package/dist/SListItem-BOSQGRWA.js +0 -209
- package/dist/SListItem-BeaflFVf.cjs +0 -1
- package/dist/SRadio-D6_Pd6XX.js +0 -57
- package/dist/SRadio-DRo_GU5A.cjs +0 -1
- package/dist/SSelect-mnobObXO.cjs +0 -1
- package/dist/SSelect-rpJCD5PL.js +0 -652
- package/dist/STab-C06drUMG.cjs +0 -1
- package/dist/STab-ltjZBvbK.js +0 -218
- package/dist/STable-BXVhLjSQ.cjs +0 -1
- package/dist/STabs-BARXqgoB.js +0 -149
- package/dist/STabs-n5hMERTK.cjs +0 -1
- package/dist/SToggle-CGd0Mh0R.cjs +0 -1
- package/dist/SToggle-sGw-LSNd.js +0 -59
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { n as e, t } from "./contrastSurfaceTextColor-BDlLSSXC.js";
|
|
2
2
|
import { t as n } from "./colorValue-CSh0chxp.js";
|
|
3
|
-
import { i as r, n as i, r as a, t as o } from "./SButton-
|
|
4
|
-
import { i as s, t as c } from "./SCheckbox-
|
|
3
|
+
import { i as r, n as i, r as a, t as o } from "./SButton-DIWMMCSc.js";
|
|
4
|
+
import { i as s, t as c } from "./SCheckbox-Dulusx5v.js";
|
|
5
5
|
import { s as l } from "./useFloatingOverlay-TxzVisMJ.js";
|
|
6
6
|
import { t as u } from "./SDropdown-cNmJ5Lrz.js";
|
|
7
7
|
import { t as d } from "./SDropdownMenu-2koPU6IG.js";
|
|
8
8
|
import { a as f, o as p, r as m } from "./treeKeyboardNavigation-SmxTdnDz.js";
|
|
9
|
-
import { t as h } from "./SListItem-
|
|
10
|
-
import { n as g, r as _, t as v } from "./SToggle-
|
|
9
|
+
import { t as h } from "./SListItem-CDlsjhA3.js";
|
|
10
|
+
import { n as g, r as _, t as v } from "./SToggle-MSdprnRP.js";
|
|
11
11
|
import { Fragment as y, computed as b, createBlock as x, createCommentVNode as S, createElementBlock as C, createElementVNode as w, createSlots as T, createTextVNode as E, createVNode as D, defineComponent as O, isMemoSame as k, markRaw as A, mergeModels as j, mergeProps as M, nextTick as ee, normalizeClass as N, normalizeStyle as P, onBeforeUnmount as F, onMounted as I, openBlock as L, ref as R, renderList as z, renderSlot as B, shallowRef as V, toDisplayString as H, toRaw as te, toValue as U, unref as W, useId as ne, useModel as re, useSlots as ie, useTemplateRef as ae, watch as G, withCtx as K, withModifiers as oe } from "vue";
|
|
12
12
|
import { ESSkeletonType as se, SIcon as ce, SSeparator as le, SSkeleton as ue, useUiKitI18n as de } from "@shtabapp/ui-kit-primitives";
|
|
13
13
|
import { tryOnScopeDispose as fe, useElementSize as pe, useEventListener as me, useRafFn as he, useResizeObserver as ge, useTimeoutFn as _e } from "@vueuse/core";
|
|
@@ -554,7 +554,11 @@ var J = /* @__PURE__ */ function(e) {
|
|
|
554
554
|
},
|
|
555
555
|
dropPosition: {},
|
|
556
556
|
cellIdPrefix: {},
|
|
557
|
-
focusColumnKey: {}
|
|
557
|
+
focusColumnKey: {},
|
|
558
|
+
treegrid: {
|
|
559
|
+
type: Boolean,
|
|
560
|
+
default: !1
|
|
561
|
+
}
|
|
558
562
|
},
|
|
559
563
|
emits: [
|
|
560
564
|
"toggle",
|
|
@@ -581,8 +585,8 @@ var J = /* @__PURE__ */ function(e) {
|
|
|
581
585
|
style: P(e.extraRowStyle),
|
|
582
586
|
"data-index": e.rowIndex,
|
|
583
587
|
"aria-rowindex": e.rowIndex + 2,
|
|
584
|
-
"aria-level": e.row.depth + 1,
|
|
585
|
-
"aria-expanded": e.row.hasChildren ? e.expanded : void 0,
|
|
588
|
+
"aria-level": e.treegrid ? e.row.depth + 1 : void 0,
|
|
589
|
+
"aria-expanded": e.treegrid && e.row.hasChildren ? e.expanded : void 0,
|
|
586
590
|
onClick: b[3] ||= (e) => n("rowClick", e)
|
|
587
591
|
}, [
|
|
588
592
|
(L(!0), C(y, null, z(e.leadingPlans, (m) => (L(), C("td", {
|
|
@@ -1112,7 +1116,11 @@ var J = /* @__PURE__ */ function(e) {
|
|
|
1112
1116
|
},
|
|
1113
1117
|
placeholderHeight: {},
|
|
1114
1118
|
cellIdPrefix: {},
|
|
1115
|
-
focusColumnKey: {}
|
|
1119
|
+
focusColumnKey: {},
|
|
1120
|
+
treegrid: {
|
|
1121
|
+
type: Boolean,
|
|
1122
|
+
default: !1
|
|
1123
|
+
}
|
|
1116
1124
|
},
|
|
1117
1125
|
emits: [
|
|
1118
1126
|
"rowClick",
|
|
@@ -1195,8 +1203,8 @@ var J = /* @__PURE__ */ function(e) {
|
|
|
1195
1203
|
style: P(h.value),
|
|
1196
1204
|
"data-index": e.rowIndex,
|
|
1197
1205
|
"aria-rowindex": e.rowIndex + 2,
|
|
1198
|
-
"aria-level": e.row.depth + 1,
|
|
1199
|
-
"aria-expanded": e.row.hasChildren ? e.rowExpanded : void 0,
|
|
1206
|
+
"aria-level": e.treegrid ? e.row.depth + 1 : void 0,
|
|
1207
|
+
"aria-expanded": e.treegrid && e.row.hasChildren ? e.rowExpanded : void 0,
|
|
1200
1208
|
"aria-selected": e.selected || void 0,
|
|
1201
1209
|
onClick: F,
|
|
1202
1210
|
onContextmenu: p[3] ||= (e) => n("rowContextMenu", e)
|
|
@@ -2482,6 +2490,10 @@ var J = /* @__PURE__ */ function(e) {
|
|
|
2482
2490
|
class: "s-ui-table__columns-manager"
|
|
2483
2491
|
}, Un = { class: "s-ui-table__columns-item-main" }, Wn = { class: "s-ui-table__columns-item-title" }, Gn = [
|
|
2484
2492
|
"aria-label",
|
|
2493
|
+
"aria-valuenow",
|
|
2494
|
+
"aria-valuemin",
|
|
2495
|
+
"aria-valuemax",
|
|
2496
|
+
"aria-valuetext",
|
|
2485
2497
|
"onPointerdown",
|
|
2486
2498
|
"onKeydown",
|
|
2487
2499
|
"onDblclick"
|
|
@@ -2760,7 +2772,7 @@ var J = /* @__PURE__ */ function(e) {
|
|
|
2760
2772
|
onTreeDrop: (e) => {
|
|
2761
2773
|
j("rowsDrop", e);
|
|
2762
2774
|
},
|
|
2763
|
-
resolveRowPreviewTitle: (e) =>
|
|
2775
|
+
resolveRowPreviewTitle: (e) => On(e) ?? e.key
|
|
2764
2776
|
}), ht = (e) => {
|
|
2765
2777
|
(e instanceof Element || e === null) && dt(e);
|
|
2766
2778
|
}, gt = (e) => {
|
|
@@ -2806,7 +2818,10 @@ var J = /* @__PURE__ */ function(e) {
|
|
|
2806
2818
|
}
|
|
2807
2819
|
}), Lt = V(), Rt = (e, t) => {
|
|
2808
2820
|
Lt.value = t ? e : void 0;
|
|
2809
|
-
}, zt = (
|
|
2821
|
+
}, zt = (e) => {
|
|
2822
|
+
let t = e.column?.title;
|
|
2823
|
+
return t ? I("table.resizeNamedColumn", { title: t }) : I("table.resizeColumn");
|
|
2824
|
+
}, Bt = (t, n) => {
|
|
2810
2825
|
if (!e.columnsResizable || !t.resizable) return;
|
|
2811
2826
|
let r = Math.min(t.maxWidth ?? Infinity, Math.max(t.minWidth, t.width + n * 8));
|
|
2812
2827
|
r !== t.width && (h.value = {
|
|
@@ -2816,9 +2831,9 @@ var J = /* @__PURE__ */ function(e) {
|
|
|
2816
2831
|
key: t.key,
|
|
2817
2832
|
width: r
|
|
2818
2833
|
}));
|
|
2819
|
-
},
|
|
2820
|
-
let e =
|
|
2821
|
-
let t =
|
|
2834
|
+
}, Vt = V(!1), Ut = b(() => e.columns.filter((e) => e.key !== me.value && (e.hideable ?? !0))), Wt = (e) => (O.value ?? []).includes(e), Gt = b(() => {
|
|
2835
|
+
let e = Ut.value.map((e) => {
|
|
2836
|
+
let t = Wt(e.key);
|
|
2822
2837
|
return {
|
|
2823
2838
|
column: e,
|
|
2824
2839
|
hidden: t,
|
|
@@ -2826,22 +2841,22 @@ var J = /* @__PURE__ */ function(e) {
|
|
|
2826
2841
|
};
|
|
2827
2842
|
});
|
|
2828
2843
|
return [e.filter((e) => !e.hidden), e.filter((e) => e.hidden)].filter((e) => e.length > 0);
|
|
2829
|
-
}),
|
|
2844
|
+
}), qt = (e) => {
|
|
2830
2845
|
let t = new Set(O.value ?? []);
|
|
2831
2846
|
t.has(e) ? t.delete(e) : t.add(e), O.value = [...t];
|
|
2832
|
-
},
|
|
2847
|
+
}, Jt = (e) => {
|
|
2833
2848
|
let t = new Set(O.value ?? []);
|
|
2834
2849
|
t.add(e), O.value = [...t];
|
|
2835
|
-
},
|
|
2850
|
+
}, Yt = yn({
|
|
2836
2851
|
selected: c,
|
|
2837
2852
|
cascade: () => e.cascadeSelection,
|
|
2838
2853
|
treeIndex: ye,
|
|
2839
2854
|
groupRow: () => e.groupRow,
|
|
2840
2855
|
disabledKey: () => e.disabledKey,
|
|
2841
2856
|
isItemSelectable: () => e.isItemSelectable
|
|
2842
|
-
}),
|
|
2843
|
-
|
|
2844
|
-
},
|
|
2857
|
+
}), Xt = Yt.headerCheckState, Zt = (e) => Yt.isSelected(e), Qt = (t) => e.cascadeSelection && Yt.getCheckState(t) === Z.INDETERMINATE, $t = (e) => {
|
|
2858
|
+
Yt.toggleRow(e);
|
|
2859
|
+
}, en = (t) => Ht(t.item, e.disabledKey), tn = ({ row: t, spacerHeight: n, rowHeight: r, stuckTop: i, stuckBottom: a, stuckBottomLeaving: o, stuckBottomSliding: c, stuckBottomCoverHeight: l, stuckBottomFar: u }, d) => [
|
|
2845
2860
|
t ?? n,
|
|
2846
2861
|
t?.index,
|
|
2847
2862
|
t?.expanded,
|
|
@@ -2850,10 +2865,10 @@ var J = /* @__PURE__ */ function(e) {
|
|
|
2850
2865
|
t?.hasChildren,
|
|
2851
2866
|
t?.depth,
|
|
2852
2867
|
t?.parentKey,
|
|
2853
|
-
t ? Xt(t.key) : !1,
|
|
2854
2868
|
t ? Zt(t.key) : !1,
|
|
2869
|
+
t ? Qt(t.key) : !1,
|
|
2855
2870
|
t ? s.value === t.key : !1,
|
|
2856
|
-
t ?
|
|
2871
|
+
t ? vr(t.key) : void 0,
|
|
2857
2872
|
t ? pt.value === t.key : !1,
|
|
2858
2873
|
t ? gt(t.key) : void 0,
|
|
2859
2874
|
r,
|
|
@@ -2864,8 +2879,8 @@ var J = /* @__PURE__ */ function(e) {
|
|
|
2864
2879
|
l,
|
|
2865
2880
|
u,
|
|
2866
2881
|
he.value,
|
|
2867
|
-
|
|
2868
|
-
|
|
2882
|
+
un.value,
|
|
2883
|
+
Cn.value,
|
|
2869
2884
|
d,
|
|
2870
2885
|
e.loadingMoreChildrenKeys,
|
|
2871
2886
|
e.treeIndent,
|
|
@@ -2875,30 +2890,31 @@ var J = /* @__PURE__ */ function(e) {
|
|
|
2875
2890
|
e.rowColor,
|
|
2876
2891
|
e.selectable,
|
|
2877
2892
|
e.cascadeSelection,
|
|
2878
|
-
e.rowsDraggable
|
|
2879
|
-
|
|
2893
|
+
e.rowsDraggable,
|
|
2894
|
+
Ae.value
|
|
2895
|
+
], nn = (e) => {
|
|
2880
2896
|
if (e !== void 0) return { "--s-ui-table-stuck-cover-height": `${e}px` };
|
|
2881
|
-
},
|
|
2897
|
+
}, an = b(() => wt.value.map((e) => {
|
|
2882
2898
|
let t = e.row?.kind === Q.ROW && !$e(e.row.key);
|
|
2883
2899
|
return {
|
|
2884
2900
|
...e,
|
|
2885
2901
|
placeholder: t,
|
|
2886
|
-
memoKeys:
|
|
2902
|
+
memoKeys: tn(e, t)
|
|
2887
2903
|
};
|
|
2888
|
-
})),
|
|
2904
|
+
})), on = b(() => Object.keys(F).filter((e) => e.startsWith("cell:"))), cn = (e) => `s-ui-table-${R}-row-${e}`, ln = (e) => ({
|
|
2889
2905
|
...e,
|
|
2890
|
-
selected:
|
|
2906
|
+
selected: Zt(e.key),
|
|
2891
2907
|
indeterminate: !1,
|
|
2892
2908
|
active: s.value === e.key,
|
|
2893
|
-
disabled:
|
|
2909
|
+
disabled: en(e),
|
|
2894
2910
|
group: e.kind === Q.GROUP,
|
|
2895
2911
|
toggleExpanded: () => {
|
|
2896
2912
|
xe(e.key);
|
|
2897
2913
|
},
|
|
2898
2914
|
toggleSelected: () => {
|
|
2899
|
-
|
|
2915
|
+
$t(e.key);
|
|
2900
2916
|
}
|
|
2901
|
-
}), { depthFooterColumnKey:
|
|
2917
|
+
}), { depthFooterColumnKey: un, groupColumnKey: dn, creationColumnKey: pn, loadMoreColumnKey: Cn, getGroupCount: Tn, getGroupTotal: Dn, getGroupTitle: On, getDepthIndentStyle: kn, emitDepthFooterClick: An, getDepthFooterSlotScope: jn, isLoadMoreRowLoading: Mn, emitLoadMoreChildren: Nn, getLoadMoreSlotScope: Pn, getFooterValueText: Fn, getFooterToneClass: ir, getFooterSlotScope: ar } = bn({
|
|
2902
2918
|
columns: () => e.columns,
|
|
2903
2919
|
primaryColumnKey: me,
|
|
2904
2920
|
treeNodeByKey: b(() => ye.value.nodeByKey),
|
|
@@ -2917,35 +2933,35 @@ var J = /* @__PURE__ */ function(e) {
|
|
|
2917
2933
|
onLoadMoreChildren: (e) => {
|
|
2918
2934
|
j("loadMoreChildren", e);
|
|
2919
2935
|
}
|
|
2920
|
-
}),
|
|
2921
|
-
...
|
|
2922
|
-
count:
|
|
2923
|
-
total:
|
|
2924
|
-
}),
|
|
2925
|
-
|
|
2936
|
+
}), or = (e) => ({
|
|
2937
|
+
...ln(e),
|
|
2938
|
+
count: Tn(e),
|
|
2939
|
+
total: Dn(e)
|
|
2940
|
+
}), sr = (t, n) => {
|
|
2941
|
+
en(t) || (s.value = t.key, e.expandOnClick && (t.hasChildren || t.kind === Q.GROUP) && xe(t.key), j("rowClick", {
|
|
2926
2942
|
key: t.key,
|
|
2927
2943
|
item: t.item,
|
|
2928
2944
|
event: n
|
|
2929
2945
|
}));
|
|
2930
|
-
},
|
|
2946
|
+
}, cr = (e, t) => {
|
|
2931
2947
|
j("rowContextMenu", {
|
|
2932
2948
|
key: e.key,
|
|
2933
2949
|
item: e.item,
|
|
2934
2950
|
event: t
|
|
2935
2951
|
});
|
|
2936
|
-
},
|
|
2952
|
+
}, lr = b(() => {
|
|
2937
2953
|
let e = /* @__PURE__ */ new Set();
|
|
2938
2954
|
return he.value.forEach((t) => {
|
|
2939
2955
|
t.column && e.add(t.key);
|
|
2940
2956
|
}), e;
|
|
2941
|
-
}),
|
|
2942
|
-
!
|
|
2957
|
+
}), ur = (e, t, n) => {
|
|
2958
|
+
!lr.value.has(t) || en(e) || j("cellClick", {
|
|
2943
2959
|
key: e.key,
|
|
2944
2960
|
item: e.item,
|
|
2945
2961
|
columnKey: t,
|
|
2946
2962
|
event: n
|
|
2947
2963
|
});
|
|
2948
|
-
},
|
|
2964
|
+
}, dr = (e) => e ? !en(e) : !1, fr = b(() => {
|
|
2949
2965
|
let t = fe.value - 40 - Re.value;
|
|
2950
2966
|
return Math.max(1, Math.floor(t / e.estimateRowSize));
|
|
2951
2967
|
});
|
|
@@ -2956,59 +2972,59 @@ var J = /* @__PURE__ */ function(e) {
|
|
|
2956
2972
|
j("endReached", { direction: "bottom" });
|
|
2957
2973
|
}
|
|
2958
2974
|
});
|
|
2959
|
-
let
|
|
2975
|
+
let pr = (e, t) => {
|
|
2960
2976
|
let n = be.value.getRowIndexByKey(e);
|
|
2961
2977
|
if (n !== void 0) {
|
|
2962
2978
|
if (Ie.value) {
|
|
2963
2979
|
Ue(n, t?.align ?? "auto");
|
|
2964
2980
|
return;
|
|
2965
2981
|
}
|
|
2966
|
-
document.getElementById(
|
|
2982
|
+
document.getElementById(cn(e))?.scrollIntoView({ block: t?.align === "center" ? "center" : "nearest" });
|
|
2967
2983
|
}
|
|
2968
|
-
},
|
|
2984
|
+
}, mr = (e) => `s-ui-table-${R}-cell-${e.section}-${e.rowKey ?? ""}-${e.columnKey}`, hr = ft({
|
|
2969
2985
|
tableRootElement: se,
|
|
2970
2986
|
tableElement: U,
|
|
2971
2987
|
scrollElement: te,
|
|
2972
2988
|
columnDescriptors: he,
|
|
2973
2989
|
flatRows: q,
|
|
2974
2990
|
snapshot: be,
|
|
2975
|
-
groupColumnKey:
|
|
2976
|
-
depthFooterColumnKey:
|
|
2977
|
-
loadMoreColumnKey:
|
|
2978
|
-
creationColumnKey:
|
|
2991
|
+
groupColumnKey: dn,
|
|
2992
|
+
depthFooterColumnKey: un,
|
|
2993
|
+
loadMoreColumnKey: Cn,
|
|
2994
|
+
creationColumnKey: pn,
|
|
2979
2995
|
hasCreationRow: () => !!e.creationRow,
|
|
2980
2996
|
hasAggregateRow: () => !!e.footerValues,
|
|
2981
|
-
isRowNavigable:
|
|
2982
|
-
pageSize:
|
|
2983
|
-
buildCellDomId:
|
|
2997
|
+
isRowNavigable: dr,
|
|
2998
|
+
pageSize: fr,
|
|
2999
|
+
buildCellDomId: mr,
|
|
2984
3000
|
onBodyRowFocused: (e) => {
|
|
2985
3001
|
s.value = e;
|
|
2986
3002
|
},
|
|
2987
3003
|
scrollToRowIndex: (e) => {
|
|
2988
3004
|
let t = q.value[e];
|
|
2989
|
-
t &&
|
|
3005
|
+
t && pr(t.key);
|
|
2990
3006
|
}
|
|
2991
|
-
}),
|
|
2992
|
-
let t =
|
|
3007
|
+
}), gr = `s-ui-table-${R}-cell-${$.BODY}-`, _r = `s-ui-table-${R}-cell-${$.CREATION}-`, vr = (e) => hr.focusedBodyRowKey.value === e ? hr.focusAddress.value.columnKey : void 0, yr = (e) => {
|
|
3008
|
+
let t = hr.focusAddress.value;
|
|
2993
3009
|
return t.section === e ? t.columnKey : void 0;
|
|
2994
|
-
},
|
|
2995
|
-
gridFocus:
|
|
3010
|
+
}, br = (e, t, n) => hr.getCellTabIndex(e, t, n), { handleGridFocusIn: xr, handleGridKeydown: Sr } = gn({
|
|
3011
|
+
gridFocus: hr,
|
|
2996
3012
|
columnDescriptors: he,
|
|
2997
3013
|
flatRows: q,
|
|
2998
3014
|
expandColumnKey: () => e.expandColumnKey,
|
|
2999
3015
|
primaryColumnKey: me,
|
|
3000
|
-
groupColumnKey:
|
|
3016
|
+
groupColumnKey: dn,
|
|
3001
3017
|
selectable: () => e.selectable,
|
|
3002
3018
|
openMenuColumnKey: Lt,
|
|
3003
3019
|
toggleExpanded: xe,
|
|
3004
3020
|
toggleRowSelected: (e) => {
|
|
3005
|
-
|
|
3021
|
+
Yt.toggleRow(e);
|
|
3006
3022
|
},
|
|
3007
3023
|
applySortCycle: Nt,
|
|
3008
3024
|
setColumnMenuOpen: Rt,
|
|
3009
|
-
resizeColumnByKeyboard:
|
|
3010
|
-
onDepthFooterActivate:
|
|
3011
|
-
onLoadMoreActivate:
|
|
3025
|
+
resizeColumnByKeyboard: Bt,
|
|
3026
|
+
onDepthFooterActivate: An,
|
|
3027
|
+
onLoadMoreActivate: Nn,
|
|
3012
3028
|
onRowActivate: (e, t) => {
|
|
3013
3029
|
j("rowClick", {
|
|
3014
3030
|
key: e.key,
|
|
@@ -3019,13 +3035,13 @@ var J = /* @__PURE__ */ function(e) {
|
|
|
3019
3035
|
});
|
|
3020
3036
|
return t({
|
|
3021
3037
|
focusNavigation: async () => {
|
|
3022
|
-
|
|
3038
|
+
hr.focusAddressNow(hr.focusAddress.value), await ee();
|
|
3023
3039
|
},
|
|
3024
|
-
scrollToRow:
|
|
3040
|
+
scrollToRow: pr,
|
|
3025
3041
|
expandAll: Se,
|
|
3026
3042
|
collapseAll: Ce,
|
|
3027
3043
|
clearSelection: () => {
|
|
3028
|
-
|
|
3044
|
+
Yt.clearSelection();
|
|
3029
3045
|
},
|
|
3030
3046
|
getScrollElement: () => te.value ?? void 0
|
|
3031
3047
|
}), (t, n) => (L(), C("div", {
|
|
@@ -3048,8 +3064,8 @@ var J = /* @__PURE__ */ function(e) {
|
|
|
3048
3064
|
ref_key: "tableElementRef",
|
|
3049
3065
|
ref: U,
|
|
3050
3066
|
tabindex: "-1",
|
|
3051
|
-
onKeydown: n[5] ||= (...e) => W(
|
|
3052
|
-
onFocusin: n[6] ||= (...e) => W(
|
|
3067
|
+
onKeydown: n[5] ||= (...e) => W(Sr) && W(Sr)(...e),
|
|
3068
|
+
onFocusin: n[6] ||= (...e) => W(xr) && W(xr)(...e)
|
|
3053
3069
|
}, [
|
|
3054
3070
|
w("colgroup", null, [
|
|
3055
3071
|
(L(!0), C(y, null, z(W(we), (e) => (L(), C("col", {
|
|
@@ -3064,7 +3080,7 @@ var J = /* @__PURE__ */ function(e) {
|
|
|
3064
3080
|
]),
|
|
3065
3081
|
w("thead", Rn, [w("tr", zn, [(L(!0), C(y, null, z(W(Ee), ({ key: s, descriptor: c }) => (L(), C(y, { key: s }, [c ? (L(), C("th", {
|
|
3066
3082
|
key: 1,
|
|
3067
|
-
id:
|
|
3083
|
+
id: mr({
|
|
3068
3084
|
section: W($).HEADER,
|
|
3069
3085
|
columnKey: c.key
|
|
3070
3086
|
}),
|
|
@@ -3076,7 +3092,7 @@ var J = /* @__PURE__ */ function(e) {
|
|
|
3076
3092
|
"data-section": W($).HEADER,
|
|
3077
3093
|
"aria-colindex": c.colIndex,
|
|
3078
3094
|
"aria-sort": W(Ft)(c),
|
|
3079
|
-
tabindex:
|
|
3095
|
+
tabindex: br(W($).HEADER, void 0, c.key),
|
|
3080
3096
|
scope: "col"
|
|
3081
3097
|
}, [c.column ? (L(), x(Dt, {
|
|
3082
3098
|
key: 0,
|
|
@@ -3088,7 +3104,7 @@ var J = /* @__PURE__ */ function(e) {
|
|
|
3088
3104
|
"onUpdate:menuOpen": (e) => Rt(c.key, e),
|
|
3089
3105
|
onSortToggle: (e) => W(Nt)(c.key, e),
|
|
3090
3106
|
onSortSet: (e) => W(Pt)(c.key, e),
|
|
3091
|
-
onHide: (e) =>
|
|
3107
|
+
onHide: (e) => Jt(c.key)
|
|
3092
3108
|
}, T({ _: 2 }, [W(F)[`header:${c.key}`] ? {
|
|
3093
3109
|
name: "default",
|
|
3094
3110
|
fn: K(() => [B(t.$slots, `header:${c.key}`, M({ ref_for: !0 }, W(It)(c)))]),
|
|
@@ -3109,19 +3125,19 @@ var J = /* @__PURE__ */ function(e) {
|
|
|
3109
3125
|
"onHide"
|
|
3110
3126
|
])) : c.service === W(qe).CHECKBOX ? (L(), x(We, {
|
|
3111
3127
|
key: 1,
|
|
3112
|
-
class: N(["s-ui-table__header-checkbox", { "s-ui-table__header-checkbox--active": W(
|
|
3113
|
-
"model-value": W(
|
|
3114
|
-
indeterminate: W(
|
|
3115
|
-
"screen-reader-label": W(
|
|
3116
|
-
"onUpdate:modelValue": n[0] ||= (e) => W(
|
|
3128
|
+
class: N(["s-ui-table__header-checkbox", { "s-ui-table__header-checkbox--active": W(Xt) !== W(Z).UNCHECKED }]),
|
|
3129
|
+
"model-value": W(Xt) === W(Z).CHECKED,
|
|
3130
|
+
indeterminate: W(Xt) === W(Z).INDETERMINATE,
|
|
3131
|
+
"screen-reader-label": W(Xt) === W(Z).CHECKED ? W(I)("table.deselectAll") : W(I)("table.selectAll"),
|
|
3132
|
+
"onUpdate:modelValue": n[0] ||= (e) => W(Yt).toggleSelectAll()
|
|
3117
3133
|
}, null, 8, [
|
|
3118
3134
|
"class",
|
|
3119
3135
|
"model-value",
|
|
3120
3136
|
"indeterminate",
|
|
3121
3137
|
"screen-reader-label"
|
|
3122
3138
|
])) : c.service === W(qe).COLUMNS_MANAGER ? (L(), C("div", Hn, [D(W(u), {
|
|
3123
|
-
modelValue:
|
|
3124
|
-
"onUpdate:modelValue": n[1] ||= (e) =>
|
|
3139
|
+
modelValue: Vt.value,
|
|
3140
|
+
"onUpdate:modelValue": n[1] ||= (e) => Vt.value = e,
|
|
3125
3141
|
placement: W(l).BOTTOM_END,
|
|
3126
3142
|
shift: "",
|
|
3127
3143
|
"fit-viewport": ""
|
|
@@ -3147,10 +3163,10 @@ var J = /* @__PURE__ */ function(e) {
|
|
|
3147
3163
|
width: 300
|
|
3148
3164
|
}, {
|
|
3149
3165
|
default: K(() => [B(t.$slots, "columns-menu", {
|
|
3150
|
-
columns:
|
|
3151
|
-
isColumnHidden:
|
|
3152
|
-
toggleColumn:
|
|
3153
|
-
}, () => [(L(!0), C(y, null, z(
|
|
3166
|
+
columns: Ut.value,
|
|
3167
|
+
isColumnHidden: Wt,
|
|
3168
|
+
toggleColumn: qt
|
|
3169
|
+
}, () => [(L(!0), C(y, null, z(Gt.value, (e, t) => (L(), C(y, { key: t }, [t > 0 ? (L(), x(W(le), {
|
|
3154
3170
|
key: 0,
|
|
3155
3171
|
class: "s-ui-table__columns-separator"
|
|
3156
3172
|
})) : S("", !0), (L(!0), C(y, null, z(e, (e) => (L(), x(W(v), {
|
|
@@ -3159,7 +3175,7 @@ var J = /* @__PURE__ */ function(e) {
|
|
|
3159
3175
|
size: W(_).SMALL,
|
|
3160
3176
|
"label-placement": W(g).LEFT,
|
|
3161
3177
|
"model-value": !e.hidden,
|
|
3162
|
-
"onUpdate:modelValue": (t) =>
|
|
3178
|
+
"onUpdate:modelValue": (t) => qt(e.column.key)
|
|
3163
3179
|
}, {
|
|
3164
3180
|
default: K(() => [w("span", Un, [e.column.icon ? (L(), x(W(ce), {
|
|
3165
3181
|
key: 0,
|
|
@@ -3182,7 +3198,11 @@ var J = /* @__PURE__ */ function(e) {
|
|
|
3182
3198
|
class: N(["s-ui-table__resize-handle", { "s-ui-table__resize-handle--active": W(tt) === c.key }]),
|
|
3183
3199
|
role: "separator",
|
|
3184
3200
|
"aria-orientation": "vertical",
|
|
3185
|
-
"aria-label":
|
|
3201
|
+
"aria-label": zt(c),
|
|
3202
|
+
"aria-valuenow": c.width,
|
|
3203
|
+
"aria-valuemin": c.minWidth,
|
|
3204
|
+
"aria-valuemax": c.maxWidth,
|
|
3205
|
+
"aria-valuetext": W(I)("table.columnWidth", { width: String(c.width) }),
|
|
3186
3206
|
tabindex: "-1",
|
|
3187
3207
|
onPointerdown: (e) => W(nt)(e, c.key),
|
|
3188
3208
|
onKeydown: (e) => W(rt)(e, c.key),
|
|
@@ -3202,7 +3222,7 @@ var J = /* @__PURE__ */ function(e) {
|
|
|
3202
3222
|
name: "default",
|
|
3203
3223
|
fn: K((e) => [B(t.$slots, "skeleton-row", { column: e.descriptor.column })]),
|
|
3204
3224
|
key: "0"
|
|
3205
|
-
} : void 0]), 1032, ["leading-plans", "trailing-plans"]))), 128)) : (L(!0), C(y, { key: 2 }, z(
|
|
3225
|
+
} : void 0]), 1032, ["leading-plans", "trailing-plans"]))), 128)) : (L(!0), C(y, { key: 2 }, z(an.value, ({ row: n, renderKey: c, spacer: l, spacerHeight: u, rowHeight: d, stuckTop: f, stuckBottom: p, stuckBottomLeaving: m, stuckBottomSliding: h, stuckBottomCoverHeight: g, stuckBottomFar: _, placeholder: v, memoKeys: b }, O, A, ee) => {
|
|
3206
3226
|
let R = b;
|
|
3207
3227
|
if (ee && ee.el && ee.key === c && k(ee, R)) return ee;
|
|
3208
3228
|
let V = (L(), C(y, { key: c }, [l ? (L(), C("tr", Zn, [w("td", {
|
|
@@ -3211,7 +3231,7 @@ var J = /* @__PURE__ */ function(e) {
|
|
|
3211
3231
|
style: P({ height: `${u}px` })
|
|
3212
3232
|
}, null, 12, Qn)])) : n && n.kind === W(Q).GROUP ? (L(), x(yt, {
|
|
3213
3233
|
key: 1,
|
|
3214
|
-
id:
|
|
3234
|
+
id: cn(n.key),
|
|
3215
3235
|
stuck: f,
|
|
3216
3236
|
row: n,
|
|
3217
3237
|
"dnd-ref": e.rowsDraggable ? ht : void 0,
|
|
@@ -3220,18 +3240,19 @@ var J = /* @__PURE__ */ function(e) {
|
|
|
3220
3240
|
"row-index": n.index,
|
|
3221
3241
|
"leading-plans": W(ke),
|
|
3222
3242
|
"trailing-plans": W(J),
|
|
3223
|
-
"group-column-key": W(
|
|
3243
|
+
"group-column-key": W(dn),
|
|
3224
3244
|
"tree-indent": e.treeIndent,
|
|
3225
|
-
count: W(
|
|
3226
|
-
total: W(
|
|
3227
|
-
title: W(
|
|
3245
|
+
count: W(Tn)(n),
|
|
3246
|
+
total: W(Dn)(n),
|
|
3247
|
+
title: W(On)(n),
|
|
3228
3248
|
"extra-row-style": e.rowStyle?.(n.item, n),
|
|
3229
3249
|
expanded: n.expanded,
|
|
3230
3250
|
active: s.value === n.key,
|
|
3231
|
-
"cell-id-prefix":
|
|
3232
|
-
"focus-column-key":
|
|
3251
|
+
"cell-id-prefix": gr,
|
|
3252
|
+
"focus-column-key": vr(n.key),
|
|
3253
|
+
treegrid: Ae.value,
|
|
3233
3254
|
onToggle: (e) => W(xe)(n.key),
|
|
3234
|
-
onRowClick: (e) =>
|
|
3255
|
+
onRowClick: (e) => sr(n, e),
|
|
3235
3256
|
onMenuOpen: (e) => j("groupMenuOpen", {
|
|
3236
3257
|
key: n.key,
|
|
3237
3258
|
item: n.item
|
|
@@ -3239,30 +3260,30 @@ var J = /* @__PURE__ */ function(e) {
|
|
|
3239
3260
|
}, T({ _: 2 }, [
|
|
3240
3261
|
W(F)["group-menu"] ? {
|
|
3241
3262
|
name: "menu",
|
|
3242
|
-
fn: K(() => [B(t.$slots, "group-menu", M({ ref_for: !0 },
|
|
3263
|
+
fn: K(() => [B(t.$slots, "group-menu", M({ ref_for: !0 }, or(n)))]),
|
|
3243
3264
|
key: "0"
|
|
3244
3265
|
} : void 0,
|
|
3245
3266
|
W(F)["group-row"] ? {
|
|
3246
3267
|
name: "row",
|
|
3247
|
-
fn: K(() => [B(t.$slots, "group-row", M({ ref_for: !0 },
|
|
3268
|
+
fn: K(() => [B(t.$slots, "group-row", M({ ref_for: !0 }, or(n)))]),
|
|
3248
3269
|
key: "1"
|
|
3249
3270
|
} : void 0,
|
|
3250
3271
|
W(F)["group-cell"] ? {
|
|
3251
3272
|
name: "group-cell",
|
|
3252
3273
|
fn: K((e) => [B(t.$slots, "group-cell", M({ ref_for: !0 }, {
|
|
3253
|
-
...
|
|
3274
|
+
...or(n),
|
|
3254
3275
|
...e
|
|
3255
3276
|
}))]),
|
|
3256
3277
|
key: "2"
|
|
3257
3278
|
} : void 0,
|
|
3258
3279
|
W(F)["group-title"] ? {
|
|
3259
3280
|
name: "title",
|
|
3260
|
-
fn: K(() => [B(t.$slots, "group-title", M({ ref_for: !0 },
|
|
3281
|
+
fn: K(() => [B(t.$slots, "group-title", M({ ref_for: !0 }, or(n)))]),
|
|
3261
3282
|
key: "3"
|
|
3262
3283
|
} : void 0,
|
|
3263
3284
|
W(F)["group-actions"] ? {
|
|
3264
3285
|
name: "actions",
|
|
3265
|
-
fn: K(() => [B(t.$slots, "group-actions", M({ ref_for: !0 },
|
|
3286
|
+
fn: K(() => [B(t.$slots, "group-actions", M({ ref_for: !0 }, or(n)))]),
|
|
3266
3287
|
key: "4"
|
|
3267
3288
|
} : void 0
|
|
3268
3289
|
]), 1032, [
|
|
@@ -3284,6 +3305,7 @@ var J = /* @__PURE__ */ function(e) {
|
|
|
3284
3305
|
"expanded",
|
|
3285
3306
|
"active",
|
|
3286
3307
|
"focus-column-key",
|
|
3308
|
+
"treegrid",
|
|
3287
3309
|
"onToggle",
|
|
3288
3310
|
"onRowClick",
|
|
3289
3311
|
"onMenuOpen"
|
|
@@ -3296,20 +3318,20 @@ var J = /* @__PURE__ */ function(e) {
|
|
|
3296
3318
|
"s-ui-table__depth-footer-row--stuck-covered": g !== void 0,
|
|
3297
3319
|
"s-ui-table__depth-footer-row--stuck-covered-far": _
|
|
3298
3320
|
}]),
|
|
3299
|
-
style: P(
|
|
3321
|
+
style: P(nn(g)),
|
|
3300
3322
|
"data-index": n.index,
|
|
3301
3323
|
"aria-rowindex": n.index + 2,
|
|
3302
3324
|
cells: W(Y),
|
|
3303
|
-
"content-column-key": W(
|
|
3325
|
+
"content-column-key": W(un),
|
|
3304
3326
|
"cell-class": "s-ui-table__depth-footer-cell",
|
|
3305
3327
|
"content-class": "s-ui-table__depth-footer-content",
|
|
3306
|
-
"content-style": W(
|
|
3328
|
+
"content-style": W(kn)(n.depth),
|
|
3307
3329
|
section: W($).BODY,
|
|
3308
3330
|
"row-key": n.key,
|
|
3309
|
-
"cell-id-prefix":
|
|
3310
|
-
"focus-column-key":
|
|
3331
|
+
"cell-id-prefix": gr,
|
|
3332
|
+
"focus-column-key": vr(n.key)
|
|
3311
3333
|
}, {
|
|
3312
|
-
default: K(() => [B(t.$slots, "depth-footer", M({ ref_for: !0 }, W(
|
|
3334
|
+
default: K(() => [B(t.$slots, "depth-footer", M({ ref_for: !0 }, W(jn)(n)))]),
|
|
3313
3335
|
_: 2
|
|
3314
3336
|
}, 1032, [
|
|
3315
3337
|
"class",
|
|
@@ -3328,21 +3350,21 @@ var J = /* @__PURE__ */ function(e) {
|
|
|
3328
3350
|
"data-index": n.index,
|
|
3329
3351
|
"aria-rowindex": n.index + 2,
|
|
3330
3352
|
cells: W(Y),
|
|
3331
|
-
"content-column-key": W(
|
|
3353
|
+
"content-column-key": W(Cn),
|
|
3332
3354
|
"content-class": "s-ui-table__load-more-content",
|
|
3333
|
-
"content-style": W(
|
|
3355
|
+
"content-style": W(kn)(n.depth),
|
|
3334
3356
|
section: W($).BODY,
|
|
3335
3357
|
"row-key": n.key,
|
|
3336
|
-
"cell-id-prefix":
|
|
3337
|
-
"focus-column-key":
|
|
3358
|
+
"cell-id-prefix": gr,
|
|
3359
|
+
"focus-column-key": vr(n.key)
|
|
3338
3360
|
}, {
|
|
3339
|
-
default: K(() => [B(t.$slots, "load-more", M({ ref_for: !0 }, W(
|
|
3361
|
+
default: K(() => [B(t.$slots, "load-more", M({ ref_for: !0 }, W(Pn)(n)), () => [D(W(o), {
|
|
3340
3362
|
appearance: W(i).BARE,
|
|
3341
3363
|
variant: W(r).NEUTRAL,
|
|
3342
3364
|
size: W(a).SMALL,
|
|
3343
|
-
loading: W(
|
|
3365
|
+
loading: W(Mn)(n),
|
|
3344
3366
|
tabindex: "-1",
|
|
3345
|
-
onClick: (e) => W(
|
|
3367
|
+
onClick: (e) => W(Nn)(n)
|
|
3346
3368
|
}, {
|
|
3347
3369
|
default: K(() => [E(H(W(I)("table.loadMore")), 1)]),
|
|
3348
3370
|
_: 1
|
|
@@ -3385,26 +3407,27 @@ var J = /* @__PURE__ */ function(e) {
|
|
|
3385
3407
|
dragging: W(pt) === n.key,
|
|
3386
3408
|
"drop-position": gt(n.key),
|
|
3387
3409
|
"placeholder-height": d,
|
|
3388
|
-
"dom-id":
|
|
3389
|
-
selected:
|
|
3390
|
-
indeterminate:
|
|
3391
|
-
"row-selectable": e.selectable && W(
|
|
3410
|
+
"dom-id": cn(n.key),
|
|
3411
|
+
selected: Zt(n.key),
|
|
3412
|
+
indeterminate: Qt(n.key),
|
|
3413
|
+
"row-selectable": e.selectable && W(Yt).isNodeSelectable(n.key),
|
|
3392
3414
|
active: s.value === n.key,
|
|
3393
|
-
disabled:
|
|
3415
|
+
disabled: en(n),
|
|
3394
3416
|
"tree-indent": e.treeIndent,
|
|
3395
3417
|
"row-state": e.rowState?.(n.item),
|
|
3396
3418
|
"row-color": e.rowColor?.(n.item, n),
|
|
3397
3419
|
"extra-row-class": e.rowClass?.(n.item, n),
|
|
3398
3420
|
"extra-row-style": e.rowStyle?.(n.item, n),
|
|
3399
|
-
"cell-id-prefix":
|
|
3400
|
-
"focus-column-key":
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3421
|
+
"cell-id-prefix": gr,
|
|
3422
|
+
"focus-column-key": vr(n.key),
|
|
3423
|
+
treegrid: Ae.value,
|
|
3424
|
+
onRowClick: (e) => sr(n, e),
|
|
3425
|
+
onRowContextMenu: (e) => cr(n, e),
|
|
3426
|
+
onCellClick: (e, t) => ur(n, e, t),
|
|
3404
3427
|
onToggleExpand: (e) => W(xe)(n.key),
|
|
3405
|
-
onToggleSelected: (e) =>
|
|
3428
|
+
onToggleSelected: (e) => $t(n.key)
|
|
3406
3429
|
}, T({ _: 2 }, [
|
|
3407
|
-
z(
|
|
3430
|
+
z(on.value, (e) => ({
|
|
3408
3431
|
name: e,
|
|
3409
3432
|
fn: K((n) => [B(t.$slots, e, M({ ref_for: !0 }, n))])
|
|
3410
3433
|
})),
|
|
@@ -3433,7 +3456,7 @@ var J = /* @__PURE__ */ function(e) {
|
|
|
3433
3456
|
fn: K((e) => [B(t.$slots, "right-edge", M({ ref_for: !0 }, e))]),
|
|
3434
3457
|
key: "4"
|
|
3435
3458
|
} : void 0
|
|
3436
|
-
]), 1032, /* @__PURE__ */ "row.row-index.row-expanded.leading-plans.trailing-plans.dnd-ref.dragging.drop-position.placeholder-height.dom-id.selected.indeterminate.row-selectable.active.disabled.tree-indent.row-state.row-color.extra-row-class.extra-row-style.focus-column-key.onRowClick.onRowContextMenu.onCellClick.onToggleExpand.onToggleSelected".split("."))) : S("", !0)], 64));
|
|
3459
|
+
]), 1032, /* @__PURE__ */ "row.row-index.row-expanded.leading-plans.trailing-plans.dnd-ref.dragging.drop-position.placeholder-height.dom-id.selected.indeterminate.row-selectable.active.disabled.tree-indent.row-state.row-color.extra-row-class.extra-row-style.focus-column-key.treegrid.onRowClick.onRowContextMenu.onCellClick.onToggleExpand.onToggleSelected".split("."))) : S("", !0)], 64));
|
|
3437
3460
|
return V.memo = R, V;
|
|
3438
3461
|
}, n, 3), 128)),
|
|
3439
3462
|
e.loadingMore && !e.loading ? (L(!0), C(y, { key: 3 }, z(Math.min(3, e.skeletonRowCount), (e) => (L(), x(sn, {
|
|
@@ -3451,12 +3474,12 @@ var J = /* @__PURE__ */ function(e) {
|
|
|
3451
3474
|
class: "s-ui-table__create-row",
|
|
3452
3475
|
"aria-rowindex": W(q).length + 2,
|
|
3453
3476
|
cells: W(Y),
|
|
3454
|
-
"content-column-key": W(
|
|
3477
|
+
"content-column-key": W(pn),
|
|
3455
3478
|
"cell-class": "s-ui-table__create-cell",
|
|
3456
3479
|
"content-class": "s-ui-table__create-content",
|
|
3457
3480
|
section: W($).CREATION,
|
|
3458
|
-
"cell-id-prefix":
|
|
3459
|
-
"focus-column-key":
|
|
3481
|
+
"cell-id-prefix": _r,
|
|
3482
|
+
"focus-column-key": yr(W($).CREATION)
|
|
3460
3483
|
}, {
|
|
3461
3484
|
default: K(() => [B(t.$slots, "creation-row")]),
|
|
3462
3485
|
_: 3
|
|
@@ -3472,20 +3495,20 @@ var J = /* @__PURE__ */ function(e) {
|
|
|
3472
3495
|
"aria-rowindex": W(q).length + 2 + +!!e.creationRow
|
|
3473
3496
|
}, [(L(!0), C(y, null, z(W(Y), ({ key: e, cellPlan: n }) => (L(), C(y, { key: e }, [n ? (L(), C("td", {
|
|
3474
3497
|
key: 1,
|
|
3475
|
-
id:
|
|
3498
|
+
id: mr({
|
|
3476
3499
|
section: W($).AGGREGATE,
|
|
3477
3500
|
columnKey: n.descriptor.key
|
|
3478
3501
|
}),
|
|
3479
|
-
class: N(["s-ui-table__aggregate-cell", [n.cellClass, W(
|
|
3502
|
+
class: N(["s-ui-table__aggregate-cell", [n.cellClass, W(ir)(n.descriptor.key)]]),
|
|
3480
3503
|
style: P(n.style),
|
|
3481
3504
|
"aria-colindex": n.descriptor.colIndex,
|
|
3482
3505
|
"data-column-key": n.descriptor.key,
|
|
3483
3506
|
"data-section": W($).AGGREGATE,
|
|
3484
|
-
tabindex:
|
|
3507
|
+
tabindex: br(W($).AGGREGATE, void 0, n.descriptor.key)
|
|
3485
3508
|
}, [n.descriptor.column ? (L(), C(y, { key: 0 }, [W(F)[`footer:${n.descriptor.key}`] ? B(t.$slots, `footer:${n.descriptor.key}`, M({
|
|
3486
3509
|
key: 0,
|
|
3487
3510
|
ref_for: !0
|
|
3488
|
-
}, W(
|
|
3511
|
+
}, W(ar)(n.descriptor.key))) : (L(), C("span", rr, H(W(Fn)(n.descriptor.key)), 1))], 64)) : S("", !0)], 14, nr)) : (L(), C("td", tr))], 64))), 128))], 8, er)) : S("", !0)])) : S("", !0)
|
|
3489
3512
|
], 44, Ln)], 4), W(lt) ? (L(), C("div", {
|
|
3490
3513
|
key: 0,
|
|
3491
3514
|
class: "s-ui-table__column-drop-line",
|