@atscript/vue-table 0.1.141 → 0.1.142
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/as-action-form-dialog.cjs +1 -1
- package/dist/as-action-form-dialog.mjs +1 -1
- package/dist/{as-action-menu-content-AKbIp4Ni.cjs → as-action-menu-content-BaNFBYn3.cjs} +1 -1
- package/dist/{as-action-menu-content-6dR5q8bs.mjs → as-action-menu-content-miQYVP7x.mjs} +1 -1
- package/dist/as-column-menu.d.cts +1 -1
- package/dist/as-column-menu.d.mts +1 -1
- package/dist/{as-column-menu.vue-DapdB_qF.d.cts → as-column-menu.vue-Ca3wSDxw.d.mts} +2 -2
- package/dist/{as-column-menu.vue-Ys_sx0VE.d.mts → as-column-menu.vue-Co7FtiEM.d.cts} +2 -2
- package/dist/{as-config-dialog-Chpw_2tu.cjs → as-config-dialog-CVSOrS9O.cjs} +2 -2
- package/dist/{as-config-dialog-UeMU7jTP.mjs → as-config-dialog-Di02V3bs.mjs} +2 -2
- package/dist/as-config-dialog.cjs +1 -1
- package/dist/as-config-dialog.mjs +1 -1
- package/dist/{as-confirm-dialog-SIqCOw2p.mjs → as-confirm-dialog-C9Qat2rG.mjs} +1 -1
- package/dist/{as-confirm-dialog-hHYVEX9E.cjs → as-confirm-dialog-fCwo1ty9.cjs} +1 -1
- package/dist/as-confirm-dialog.cjs +1 -1
- package/dist/as-confirm-dialog.mjs +1 -1
- package/dist/{as-filter-dialog-Xvj5q09A.cjs → as-filter-dialog-DYpbsNDx.cjs} +7 -7
- package/dist/{as-filter-dialog-DVRhCx6O.mjs → as-filter-dialog-DdtrTT5w.mjs} +7 -7
- package/dist/as-filter-dialog.cjs +1 -1
- package/dist/as-filter-dialog.mjs +1 -1
- package/dist/{as-filter-field-B7b2sEG0.cjs → as-filter-field-4-qFRsJx.cjs} +8 -10
- package/dist/{as-filter-field-D4vQCOEU.mjs → as-filter-field-DEQVodKG.mjs} +8 -10
- package/dist/as-filter-field.cjs +1 -1
- package/dist/as-filter-field.mjs +1 -1
- package/dist/{as-filters-CWQgQBCH.cjs → as-filters-C6ZkLrf4.cjs} +68 -25
- package/dist/{as-filters-CudeInPr.mjs → as-filters-Dd_j6_6G.mjs} +69 -26
- package/dist/as-filters.cjs +1 -1
- package/dist/as-filters.d.cts +1 -1
- package/dist/as-filters.d.mts +1 -1
- package/dist/as-filters.mjs +1 -1
- package/dist/{as-filters.vue-BSgUEh4D.d.mts → as-filters.vue-dHbGmcbr.d.mts} +56 -4
- package/dist/{as-filters.vue-DMXZhQW3.d.cts → as-filters.vue-vH1FHn9L.d.cts} +56 -4
- package/dist/{as-preset-dialog-BsWSuY9N.mjs → as-preset-dialog-Bap48oUv.mjs} +1 -1
- package/dist/{as-preset-dialog-l81WXBmf.cjs → as-preset-dialog-SYA-6lGR.cjs} +1 -1
- package/dist/as-preset-dialog.cjs +1 -1
- package/dist/as-preset-dialog.mjs +1 -1
- package/dist/{as-preset-picker-Bp4xMTua.cjs → as-preset-picker-BdKTZa95.cjs} +1 -1
- package/dist/{as-preset-picker-BTkMqSxH.mjs → as-preset-picker-NBrvsE6s.mjs} +1 -1
- package/dist/as-preset-picker.cjs +1 -1
- package/dist/as-preset-picker.mjs +1 -1
- package/dist/{as-residual-filter-D1SGFQ1p.mjs → as-residual-filter-BFnbI3h3.mjs} +1 -1
- package/dist/{as-residual-filter-BJ4cwFP4.cjs → as-residual-filter-CZ-Bytdj.cjs} +1 -1
- package/dist/as-residual-filter.cjs +1 -1
- package/dist/as-residual-filter.mjs +1 -1
- package/dist/{as-row-actions-9p_BJPga.cjs → as-row-actions-C3xHkX53.cjs} +2 -2
- package/dist/{as-row-actions-CH8WZ5kN.mjs → as-row-actions-KeoHo9Ex.mjs} +2 -2
- package/dist/as-row-actions.cjs +1 -1
- package/dist/as-row-actions.d.cts +1 -1
- package/dist/as-row-actions.d.mts +1 -1
- package/dist/as-row-actions.mjs +1 -1
- package/dist/{as-row-actions.vue-BezMFOr6.d.cts → as-row-actions.vue-D3_z3ytk.d.cts} +1 -1
- package/dist/{as-row-actions.vue-BOURuyjv.d.mts → as-row-actions.vue-nmaDuxBT.d.mts} +1 -1
- package/dist/{as-table-status-Bl9XmWqc.mjs → as-select-cell-KD_ns8DS.mjs} +149 -36
- package/dist/{as-table-status-bbuFDaaK.cjs → as-select-cell-XnzNuW2v.cjs} +154 -35
- package/dist/{as-table-DmmXWq94.mjs → as-table-NHqyekNd.mjs} +10 -11
- package/dist/{as-table-actions-CFBAxKIS.mjs → as-table-actions-BpEFcsgh.mjs} +2 -2
- package/dist/{as-table-actions-oxVqSH-G.cjs → as-table-actions-UQmFtRdJ.cjs} +2 -2
- package/dist/as-table-actions.cjs +1 -1
- package/dist/as-table-actions.d.cts +1 -1
- package/dist/as-table-actions.d.mts +1 -1
- package/dist/as-table-actions.mjs +1 -1
- package/dist/{as-table-actions.vue-CrZtcxAY.d.mts → as-table-actions.vue-BG3JVaBQ.d.mts} +2 -2
- package/dist/{as-table-actions.vue-Dls_1Vze.d.cts → as-table-actions.vue-DcuzNZoC.d.cts} +2 -2
- package/dist/{as-table-fOBpTDrI.cjs → as-table-ay1yel3u.cjs} +10 -11
- package/dist/{as-table-base-Cl1XJu4H.mjs → as-table-base-89DkDZ-1.mjs} +46 -60
- package/dist/{as-table-base--MfU8LVN.cjs → as-table-base-umzg4PBR.cjs} +51 -65
- package/dist/{as-table-header-cell-M8g9X9dR.mjs → as-table-header-cell-DU3ws2x9.mjs} +1 -1
- package/dist/{as-table-header-cell-10DQEs00.cjs → as-table-header-cell-f3YpgJX1.cjs} +1 -1
- package/dist/as-table-header-cell.cjs +1 -1
- package/dist/as-table-header-cell.d.cts +1 -1
- package/dist/as-table-header-cell.d.mts +1 -1
- package/dist/as-table-header-cell.mjs +1 -1
- package/dist/{as-table-header-cell.vue-D-iI_EJY.d.cts → as-table-header-cell.vue-5VGRc23o.d.mts} +2 -2
- package/dist/{as-table-header-cell.vue-SMBpzqU2.d.mts → as-table-header-cell.vue-XR90UlHO.d.cts} +2 -2
- package/dist/{as-table-root-Bl423S7X.mjs → as-table-root-47hiBEnq.mjs} +4 -4
- package/dist/{as-table-root-CGXKfCIk.cjs → as-table-root-DDeGktcl.cjs} +4 -4
- package/dist/as-table-root.cjs +1 -1
- package/dist/as-table-root.d.cts +1 -1
- package/dist/as-table-root.d.mts +1 -1
- package/dist/as-table-root.mjs +1 -1
- package/dist/{as-table-root.vue-BROdsTqv.d.mts → as-table-root.vue-BGx453_Q.d.mts} +5 -5
- package/dist/{as-table-root.vue-D5H8uXFK.d.cts → as-table-root.vue-yZ7ZcwdT.d.cts} +7 -7
- package/dist/as-table.cjs +1 -1
- package/dist/as-table.d.cts +1 -1
- package/dist/as-table.d.mts +1 -1
- package/dist/as-table.mjs +1 -1
- package/dist/{as-table.vue-B_7Y82yW.d.mts → as-table.vue-CwI5Z0y5.d.cts} +10 -8
- package/dist/{as-table.vue-B533pYs6.d.cts → as-table.vue-wdFf4hMW.d.mts} +10 -8
- package/dist/{as-window-table-CkTJOvu9.mjs → as-window-table-C312T_bc.mjs} +83 -62
- package/dist/{as-window-table-Dpbezh9D.cjs → as-window-table-hOYLNhX3.cjs} +89 -68
- package/dist/as-window-table.cjs +1 -1
- package/dist/as-window-table.d.cts +1 -1
- package/dist/as-window-table.d.mts +1 -1
- package/dist/as-window-table.mjs +1 -1
- package/dist/{as-window-table.vue-Bar8mWRL.d.cts → as-window-table.vue-D6UDA6td.d.cts} +6 -4
- package/dist/{as-window-table.vue-OL4KC7Y-.d.mts → as-window-table.vue-Deg1mj3t.d.mts} +6 -4
- package/dist/index.cjs +18 -18
- package/dist/index.d.cts +10 -10
- package/dist/index.d.mts +10 -10
- package/dist/index.mjs +18 -18
- package/dist/{types-Cdk5OH1-.d.cts → types-BU7J-a1r.d.mts} +41 -9
- package/dist/{types-Ev-A5h_D.d.mts → types-D4dK49sA.d.cts} +41 -9
- package/dist/{use-table-BG3IZyCO.mjs → use-table-DlqGHjPh.mjs} +1 -1
- package/dist/{use-table-column-handlers-CaT7dYnI.mjs → use-table-column-handlers-0myVzrZR.mjs} +1 -1
- package/dist/{use-table-column-handlers-CWHRcQbE.cjs → use-table-column-handlers-BHMCo_HR.cjs} +1 -1
- package/dist/{use-table-component-Tc_ZvZua.cjs → use-table-component-IziAm0vk.cjs} +1 -1
- package/dist/{use-table-component-OTdgA202.mjs → use-table-component-TLwFq4rx.mjs} +1 -1
- package/dist/{use-table-nav-bridge-BNjwR3qy.mjs → use-table-nav-bridge-CkQqimdS.mjs} +1 -1
- package/dist/{use-table-nav-bridge-ByQo00IH.cjs → use-table-nav-bridge-QU4jKhqx.cjs} +1 -1
- package/dist/{use-table-state-CgXY-ruN.cjs → use-table-state-BiklfjP0.cjs} +79 -28
- package/dist/{use-table-state-BgLIOO31.mjs → use-table-state-Cq-3tbVr.mjs} +69 -30
- package/dist/{use-table-rc6_sYU6.cjs → use-table-yZNJTfRq.cjs} +1 -1
- package/package.json +9 -9
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as toSelectAllState, o as useTableContextOptional } from "./use-table-state-Cq-3tbVr.mjs";
|
|
2
2
|
import { t as getCellValue } from "./get-cell-value-Cb3X8nUn.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { i as as_table_colgroup_default, n as as_table_status_default, o as useCellComponents, r as as_table_header_default, s as useCellResolver, t as as_select_cell_default } from "./as-select-cell-KD_ns8DS.mjs";
|
|
4
4
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, guardReactiveProps, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onMounted, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, unref, useSlots, watch, withCtx } from "vue";
|
|
5
5
|
import { DEFAULT_ROW_HEIGHT_PX, filledFilterCount } from "@atscript/ui-table";
|
|
6
6
|
import { useParentElement, useResizeObserver } from "@vueuse/core";
|
|
@@ -166,27 +166,9 @@ const _hoisted_6 = [
|
|
|
166
166
|
];
|
|
167
167
|
const _hoisted_7 = {
|
|
168
168
|
key: 0,
|
|
169
|
-
class: "as-td-select",
|
|
170
169
|
role: "gridcell"
|
|
171
170
|
};
|
|
172
|
-
const _hoisted_8 =
|
|
173
|
-
"tabindex",
|
|
174
|
-
"aria-checked",
|
|
175
|
-
"aria-disabled",
|
|
176
|
-
"aria-label",
|
|
177
|
-
"title",
|
|
178
|
-
"onKeydown"
|
|
179
|
-
];
|
|
180
|
-
const _hoisted_9 = {
|
|
181
|
-
key: 0,
|
|
182
|
-
class: "as-table-checkbox-tick",
|
|
183
|
-
"aria-hidden": "true"
|
|
184
|
-
};
|
|
185
|
-
const _hoisted_10 = {
|
|
186
|
-
key: 0,
|
|
187
|
-
role: "gridcell"
|
|
188
|
-
};
|
|
189
|
-
const _hoisted_11 = {
|
|
171
|
+
const _hoisted_8 = {
|
|
190
172
|
key: 3,
|
|
191
173
|
class: "as-td-filler",
|
|
192
174
|
role: "gridcell"
|
|
@@ -218,6 +200,11 @@ var as_table_base_default = /* @__PURE__ */ defineComponent({
|
|
|
218
200
|
required: false,
|
|
219
201
|
default: "none"
|
|
220
202
|
},
|
|
203
|
+
selectOn: {
|
|
204
|
+
type: String,
|
|
205
|
+
required: false,
|
|
206
|
+
default: "row"
|
|
207
|
+
},
|
|
221
208
|
renderMode: {
|
|
222
209
|
type: String,
|
|
223
210
|
required: false,
|
|
@@ -315,8 +302,6 @@ var as_table_base_default = /* @__PURE__ */ defineComponent({
|
|
|
315
302
|
"filters-off",
|
|
316
303
|
"row-click",
|
|
317
304
|
"row-dblclick",
|
|
318
|
-
"select-all",
|
|
319
|
-
"deselect-all",
|
|
320
305
|
"reorder",
|
|
321
306
|
"resize",
|
|
322
307
|
"reset-width"
|
|
@@ -382,18 +367,12 @@ var as_table_base_default = /* @__PURE__ */ defineComponent({
|
|
|
382
367
|
function metaFor(index) {
|
|
383
368
|
return rowHooks.value.metas[index] ?? DEFAULT_ROW_META;
|
|
384
369
|
}
|
|
385
|
-
/** Accessible name for a row's selection control, carrying the disabled reason. */
|
|
386
|
-
function selectLabel(verdict) {
|
|
387
|
-
if (verdict.ok) return "Select row";
|
|
388
|
-
return verdict.reason ? `Select row, ${verdict.reason}` : "Select row, not selectable";
|
|
389
|
-
}
|
|
390
370
|
const hasActiveFilters = computed(() => props.filters ? filledFilterCount(props.filters) > 0 : false);
|
|
391
371
|
const showSelectAllCheckbox = computed(() => isStandalone.value && props.select === "multi" && !!props.selectedRows);
|
|
392
372
|
const selectAllState = computed(() => {
|
|
393
373
|
if (!showSelectAllCheckbox.value) return void 0;
|
|
394
|
-
if ((props.selectedRows ?? []).length === 0) return "none";
|
|
395
374
|
const { selectable, selected } = rowHooks.value;
|
|
396
|
-
return
|
|
375
|
+
return toSelectAllState(selected, selectable);
|
|
397
376
|
});
|
|
398
377
|
const emit = __emit;
|
|
399
378
|
const slots = useSlots();
|
|
@@ -406,15 +385,15 @@ var as_table_base_default = /* @__PURE__ */ defineComponent({
|
|
|
406
385
|
if (!ctx || !props.rowValueFn) return false;
|
|
407
386
|
return ctx.state.isPkSelected(props.rowValueFn(row));
|
|
408
387
|
}
|
|
409
|
-
function ariaSelectedFor(
|
|
388
|
+
function ariaSelectedFor(selected) {
|
|
410
389
|
if (props.select === "none") return void 0;
|
|
411
|
-
return
|
|
390
|
+
return selected ? "true" : "false";
|
|
412
391
|
}
|
|
413
392
|
function onRowClick(row, event, index) {
|
|
414
393
|
emit("row-click", row, event);
|
|
415
394
|
if (!isStandalone.value) return;
|
|
416
395
|
if (ctx) ctx.state.setActive(index);
|
|
417
|
-
if (props.select === "none") return;
|
|
396
|
+
if (props.select === "none" || props.selectOn === "control") return;
|
|
418
397
|
if (!ctx) return;
|
|
419
398
|
ctx.state.toggleActiveSelection(props.select);
|
|
420
399
|
}
|
|
@@ -424,19 +403,14 @@ var as_table_base_default = /* @__PURE__ */ defineComponent({
|
|
|
424
403
|
ctx.state.setActive(index);
|
|
425
404
|
ctx.state.requestMainAction(event);
|
|
426
405
|
}
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
406
|
+
/** The header checkbox acts on the loaded (rendered) rows. */
|
|
407
|
+
function onToggleAll() {
|
|
408
|
+
ctx?.state.toggleAll(props.rows);
|
|
430
409
|
}
|
|
431
410
|
function onTbodyKeydown(event) {
|
|
432
411
|
if (!isStandalone.value || !ctx) return;
|
|
433
412
|
ctx.state.handleNavKey(event, { mode: props.select });
|
|
434
413
|
}
|
|
435
|
-
/** Space on a row's selection control toggles just that row. */
|
|
436
|
-
function onSelectCellKeydown(event, index) {
|
|
437
|
-
if (!ctx) return;
|
|
438
|
-
onSelectControlKeydown(event, index, props.select, ctx.state);
|
|
439
|
-
}
|
|
440
414
|
const scrollContainerRef = ref(null);
|
|
441
415
|
function alignActiveRow(idx) {
|
|
442
416
|
if (!ctx) return;
|
|
@@ -567,6 +541,7 @@ var as_table_base_default = /* @__PURE__ */ defineComponent({
|
|
|
567
541
|
"column-min-width": __props.columnMinWidth,
|
|
568
542
|
"has-select-column": hasValue.value,
|
|
569
543
|
"select-all-state": selectAllState.value,
|
|
544
|
+
"selected-count": unref(ctx)?.state.selectedCount.value ?? 0,
|
|
570
545
|
"with-filler": __props.stretch,
|
|
571
546
|
"enable-auto-fit": true,
|
|
572
547
|
"aria-rowindex": isStandalone.value ? 1 : void 0,
|
|
@@ -577,8 +552,11 @@ var as_table_base_default = /* @__PURE__ */ defineComponent({
|
|
|
577
552
|
onResetWidth: _cache[4] || (_cache[4] = (c) => emit("reset-width", c)),
|
|
578
553
|
onReorder: _cache[5] || (_cache[5] = (f, t, p) => emit("reorder", f, t, p)),
|
|
579
554
|
onResize: _cache[6] || (_cache[6] = (p, w) => emit("resize", p, w)),
|
|
580
|
-
|
|
581
|
-
}, createSlots({
|
|
555
|
+
onToggleAll
|
|
556
|
+
}, createSlots({
|
|
557
|
+
"header-__select": withCtx((scope) => [renderSlot(_ctx.$slots, "header-__select", normalizeProps(guardReactiveProps(scope)))]),
|
|
558
|
+
_: 2
|
|
559
|
+
}, [renderList(__props.columns, (col) => {
|
|
582
560
|
return {
|
|
583
561
|
name: `header-${col.path}`,
|
|
584
562
|
fn: withCtx((scope) => [renderSlot(_ctx.$slots, `header-${col.path}`, normalizeProps(guardReactiveProps(scope)))])
|
|
@@ -594,6 +572,7 @@ var as_table_base_default = /* @__PURE__ */ defineComponent({
|
|
|
594
572
|
"column-min-width",
|
|
595
573
|
"has-select-column",
|
|
596
574
|
"select-all-state",
|
|
575
|
+
"selected-count",
|
|
597
576
|
"with-filler",
|
|
598
577
|
"aria-rowindex"
|
|
599
578
|
])) : createCommentVNode("v-if", true),
|
|
@@ -674,7 +653,7 @@ var as_table_base_default = /* @__PURE__ */ defineComponent({
|
|
|
674
653
|
"aria-activedescendant": ariaActiveDescendant.value,
|
|
675
654
|
onKeydown: onTbodyKeydown
|
|
676
655
|
}, {
|
|
677
|
-
default: withCtx(({ item, index, spaceBefore }) => [createCommentVNode("\n `meta`
|
|
656
|
+
default: withCtx(({ item, index, spaceBefore }) => [createCommentVNode("\n `meta` (the row's hook results + its selectability verdict) and\n `selected` are resolved ONCE per row; `v-bind=\"meta.attrs\"` comes FIRST so every\n framework binding after it wins — consumer attrs can decorate a\n row but can never rewrite its id / role / aria / data contract.\n "), (openBlock(true), createElementBlock(Fragment, null, renderList([[metaFor(index), isPkSelected(item)]], ([meta, selected]) => {
|
|
678
657
|
return openBlock(), createElementBlock("tr", mergeProps({
|
|
679
658
|
key: 0,
|
|
680
659
|
ref_for: true
|
|
@@ -682,7 +661,7 @@ var as_table_base_default = /* @__PURE__ */ defineComponent({
|
|
|
682
661
|
id: rowIdFor(index),
|
|
683
662
|
role: "row",
|
|
684
663
|
"aria-rowindex": index + 2,
|
|
685
|
-
"aria-selected": ariaSelectedFor(
|
|
664
|
+
"aria-selected": ariaSelectedFor(selected),
|
|
686
665
|
"data-selectable": meta.selectable.ok ? void 0 : "false",
|
|
687
666
|
class: [{ "as-table-row-active": isActiveRow(index) }, meta.cls],
|
|
688
667
|
style: {
|
|
@@ -692,19 +671,26 @@ var as_table_base_default = /* @__PURE__ */ defineComponent({
|
|
|
692
671
|
onClick: ($event) => onRowClick(item, $event, index),
|
|
693
672
|
onDblclick: ($event) => onRowDblClick(item, $event, index)
|
|
694
673
|
}), [
|
|
695
|
-
hasValue.value ? (openBlock(),
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
"
|
|
703
|
-
|
|
704
|
-
"
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
}
|
|
674
|
+
hasValue.value ? (openBlock(), createBlock(as_select_cell_default, {
|
|
675
|
+
key: 0,
|
|
676
|
+
row: item,
|
|
677
|
+
index,
|
|
678
|
+
selected,
|
|
679
|
+
verdict: meta.selectable,
|
|
680
|
+
select: __props.select,
|
|
681
|
+
"select-on": __props.selectOn
|
|
682
|
+
}, createSlots({ _: 2 }, [unref(slots)["cell-__select"] ? {
|
|
683
|
+
name: "default",
|
|
684
|
+
fn: withCtx((scope) => [renderSlot(_ctx.$slots, "cell-__select", mergeProps({ ref_for: true }, scope))]),
|
|
685
|
+
key: "0"
|
|
686
|
+
} : void 0]), 1032, [
|
|
687
|
+
"row",
|
|
688
|
+
"index",
|
|
689
|
+
"selected",
|
|
690
|
+
"verdict",
|
|
691
|
+
"select",
|
|
692
|
+
"select-on"
|
|
693
|
+
])) : createCommentVNode("v-if", true),
|
|
708
694
|
unref(hasAnyCellBindings) ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(__props.columns, (col) => {
|
|
709
695
|
return openBlock(), createElementBlock(Fragment, { key: col.path }, [(openBlock(true), createElementBlock(Fragment, null, renderList([unref(cellResolver)(col, item, index)], (bindings) => {
|
|
710
696
|
return openBlock(), createElementBlock(Fragment, { key: 0 }, [cellSlotFlags.value[col.path] ? (openBlock(), createElementBlock("td", mergeProps({
|
|
@@ -722,7 +708,7 @@ var as_table_base_default = /* @__PURE__ */ defineComponent({
|
|
|
722
708
|
}, { ref_for: true }, bindings), null, 16, ["row", "column"]))], 64);
|
|
723
709
|
}), 128))], 64);
|
|
724
710
|
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 2 }, renderList(__props.columns, (col) => {
|
|
725
|
-
return openBlock(), createElementBlock(Fragment, { key: col.path }, [cellSlotFlags.value[col.path] ? (openBlock(), createElementBlock("td",
|
|
711
|
+
return openBlock(), createElementBlock(Fragment, { key: col.path }, [cellSlotFlags.value[col.path] ? (openBlock(), createElementBlock("td", _hoisted_7, [renderSlot(_ctx.$slots, `cell-${col.path}`, {
|
|
726
712
|
row: item,
|
|
727
713
|
value: unref(getCellValue)(item, col.path),
|
|
728
714
|
column: col
|
|
@@ -733,7 +719,7 @@ var as_table_base_default = /* @__PURE__ */ defineComponent({
|
|
|
733
719
|
role: "gridcell"
|
|
734
720
|
}, null, 8, ["row", "column"]))], 64);
|
|
735
721
|
}), 128)),
|
|
736
|
-
__props.stretch ? (openBlock(), createElementBlock("td",
|
|
722
|
+
__props.stretch ? (openBlock(), createElementBlock("td", _hoisted_8)) : createCommentVNode("v-if", true)
|
|
737
723
|
], 16, _hoisted_6);
|
|
738
724
|
}), 128))]),
|
|
739
725
|
_: 3
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_use_table_state = require("./use-table-state-
|
|
1
|
+
const require_use_table_state = require("./use-table-state-BiklfjP0.cjs");
|
|
2
2
|
const require_get_cell_value = require("./get-cell-value-CJT4fk4y.cjs");
|
|
3
|
-
const
|
|
3
|
+
const require_as_select_cell = require("./as-select-cell-XnzNuW2v.cjs");
|
|
4
4
|
let vue = require("vue");
|
|
5
5
|
let _atscript_ui_table = require("@atscript/ui-table");
|
|
6
6
|
let _vueuse_core = require("@vueuse/core");
|
|
@@ -166,27 +166,9 @@ const _hoisted_6 = [
|
|
|
166
166
|
];
|
|
167
167
|
const _hoisted_7 = {
|
|
168
168
|
key: 0,
|
|
169
|
-
class: "as-td-select",
|
|
170
169
|
role: "gridcell"
|
|
171
170
|
};
|
|
172
|
-
const _hoisted_8 =
|
|
173
|
-
"tabindex",
|
|
174
|
-
"aria-checked",
|
|
175
|
-
"aria-disabled",
|
|
176
|
-
"aria-label",
|
|
177
|
-
"title",
|
|
178
|
-
"onKeydown"
|
|
179
|
-
];
|
|
180
|
-
const _hoisted_9 = {
|
|
181
|
-
key: 0,
|
|
182
|
-
class: "as-table-checkbox-tick",
|
|
183
|
-
"aria-hidden": "true"
|
|
184
|
-
};
|
|
185
|
-
const _hoisted_10 = {
|
|
186
|
-
key: 0,
|
|
187
|
-
role: "gridcell"
|
|
188
|
-
};
|
|
189
|
-
const _hoisted_11 = {
|
|
171
|
+
const _hoisted_8 = {
|
|
190
172
|
key: 3,
|
|
191
173
|
class: "as-td-filler",
|
|
192
174
|
role: "gridcell"
|
|
@@ -218,6 +200,11 @@ var as_table_base_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
218
200
|
required: false,
|
|
219
201
|
default: "none"
|
|
220
202
|
},
|
|
203
|
+
selectOn: {
|
|
204
|
+
type: String,
|
|
205
|
+
required: false,
|
|
206
|
+
default: "row"
|
|
207
|
+
},
|
|
221
208
|
renderMode: {
|
|
222
209
|
type: String,
|
|
223
210
|
required: false,
|
|
@@ -315,8 +302,6 @@ var as_table_base_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
315
302
|
"filters-off",
|
|
316
303
|
"row-click",
|
|
317
304
|
"row-dblclick",
|
|
318
|
-
"select-all",
|
|
319
|
-
"deselect-all",
|
|
320
305
|
"reorder",
|
|
321
306
|
"resize",
|
|
322
307
|
"reset-width"
|
|
@@ -324,8 +309,8 @@ var as_table_base_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
324
309
|
setup(__props, { emit: __emit }) {
|
|
325
310
|
const props = __props;
|
|
326
311
|
const ctx = require_use_table_state.useTableContextOptional();
|
|
327
|
-
const { resolve: cellResolver, hasAnyCellBindings } =
|
|
328
|
-
const cellComponents =
|
|
312
|
+
const { resolve: cellResolver, hasAnyCellBindings } = require_as_select_cell.useCellResolver(() => ctx?.state.tableDef.value ?? null);
|
|
313
|
+
const cellComponents = require_as_select_cell.useCellComponents(() => props.columns);
|
|
329
314
|
const isStandalone = (0, vue.computed)(() => props.renderMode === "standalone");
|
|
330
315
|
const isCombobox = (0, vue.computed)(() => props.renderMode === "combobox");
|
|
331
316
|
const isListbox = (0, vue.computed)(() => props.renderMode === "listbox");
|
|
@@ -382,18 +367,12 @@ var as_table_base_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
382
367
|
function metaFor(index) {
|
|
383
368
|
return rowHooks.value.metas[index] ?? DEFAULT_ROW_META;
|
|
384
369
|
}
|
|
385
|
-
/** Accessible name for a row's selection control, carrying the disabled reason. */
|
|
386
|
-
function selectLabel(verdict) {
|
|
387
|
-
if (verdict.ok) return "Select row";
|
|
388
|
-
return verdict.reason ? `Select row, ${verdict.reason}` : "Select row, not selectable";
|
|
389
|
-
}
|
|
390
370
|
const hasActiveFilters = (0, vue.computed)(() => props.filters ? (0, _atscript_ui_table.filledFilterCount)(props.filters) > 0 : false);
|
|
391
371
|
const showSelectAllCheckbox = (0, vue.computed)(() => isStandalone.value && props.select === "multi" && !!props.selectedRows);
|
|
392
372
|
const selectAllState = (0, vue.computed)(() => {
|
|
393
373
|
if (!showSelectAllCheckbox.value) return void 0;
|
|
394
|
-
if ((props.selectedRows ?? []).length === 0) return "none";
|
|
395
374
|
const { selectable, selected } = rowHooks.value;
|
|
396
|
-
return
|
|
375
|
+
return require_use_table_state.toSelectAllState(selected, selectable);
|
|
397
376
|
});
|
|
398
377
|
const emit = __emit;
|
|
399
378
|
const slots = (0, vue.useSlots)();
|
|
@@ -406,15 +385,15 @@ var as_table_base_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
406
385
|
if (!ctx || !props.rowValueFn) return false;
|
|
407
386
|
return ctx.state.isPkSelected(props.rowValueFn(row));
|
|
408
387
|
}
|
|
409
|
-
function ariaSelectedFor(
|
|
388
|
+
function ariaSelectedFor(selected) {
|
|
410
389
|
if (props.select === "none") return void 0;
|
|
411
|
-
return
|
|
390
|
+
return selected ? "true" : "false";
|
|
412
391
|
}
|
|
413
392
|
function onRowClick(row, event, index) {
|
|
414
393
|
emit("row-click", row, event);
|
|
415
394
|
if (!isStandalone.value) return;
|
|
416
395
|
if (ctx) ctx.state.setActive(index);
|
|
417
|
-
if (props.select === "none") return;
|
|
396
|
+
if (props.select === "none" || props.selectOn === "control") return;
|
|
418
397
|
if (!ctx) return;
|
|
419
398
|
ctx.state.toggleActiveSelection(props.select);
|
|
420
399
|
}
|
|
@@ -424,19 +403,14 @@ var as_table_base_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
424
403
|
ctx.state.setActive(index);
|
|
425
404
|
ctx.state.requestMainAction(event);
|
|
426
405
|
}
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
406
|
+
/** The header checkbox acts on the loaded (rendered) rows. */
|
|
407
|
+
function onToggleAll() {
|
|
408
|
+
ctx?.state.toggleAll(props.rows);
|
|
430
409
|
}
|
|
431
410
|
function onTbodyKeydown(event) {
|
|
432
411
|
if (!isStandalone.value || !ctx) return;
|
|
433
412
|
ctx.state.handleNavKey(event, { mode: props.select });
|
|
434
413
|
}
|
|
435
|
-
/** Space on a row's selection control toggles just that row. */
|
|
436
|
-
function onSelectCellKeydown(event, index) {
|
|
437
|
-
if (!ctx) return;
|
|
438
|
-
require_use_table_state.onSelectControlKeydown(event, index, props.select, ctx.state);
|
|
439
|
-
}
|
|
440
414
|
const scrollContainerRef = (0, vue.ref)(null);
|
|
441
415
|
function alignActiveRow(idx) {
|
|
442
416
|
if (!ctx) return;
|
|
@@ -544,7 +518,7 @@ var as_table_base_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
544
518
|
"aria-rowcount": ariaRowCount.value,
|
|
545
519
|
"aria-multiselectable": isStandalone.value && __props.select === "multi" ? "true" : void 0
|
|
546
520
|
}, [
|
|
547
|
-
(0, vue.createVNode)(
|
|
521
|
+
(0, vue.createVNode)(require_as_select_cell.as_table_colgroup_default, {
|
|
548
522
|
columns: __props.columns,
|
|
549
523
|
"column-widths": __props.columnWidths,
|
|
550
524
|
"has-select": hasValue.value,
|
|
@@ -555,7 +529,7 @@ var as_table_base_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
555
529
|
"has-select",
|
|
556
530
|
"with-filler"
|
|
557
531
|
]),
|
|
558
|
-
!__props.headless ? ((0, vue.openBlock)(), (0, vue.createBlock)(
|
|
532
|
+
!__props.headless ? ((0, vue.openBlock)(), (0, vue.createBlock)(require_as_select_cell.as_table_header_default, {
|
|
559
533
|
key: 0,
|
|
560
534
|
columns: __props.columns,
|
|
561
535
|
sorters: __props.sorters,
|
|
@@ -567,6 +541,7 @@ var as_table_base_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
567
541
|
"column-min-width": __props.columnMinWidth,
|
|
568
542
|
"has-select-column": hasValue.value,
|
|
569
543
|
"select-all-state": selectAllState.value,
|
|
544
|
+
"selected-count": (0, vue.unref)(ctx)?.state.selectedCount.value ?? 0,
|
|
570
545
|
"with-filler": __props.stretch,
|
|
571
546
|
"enable-auto-fit": true,
|
|
572
547
|
"aria-rowindex": isStandalone.value ? 1 : void 0,
|
|
@@ -577,8 +552,11 @@ var as_table_base_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
577
552
|
onResetWidth: _cache[4] || (_cache[4] = (c) => emit("reset-width", c)),
|
|
578
553
|
onReorder: _cache[5] || (_cache[5] = (f, t, p) => emit("reorder", f, t, p)),
|
|
579
554
|
onResize: _cache[6] || (_cache[6] = (p, w) => emit("resize", p, w)),
|
|
580
|
-
|
|
581
|
-
}, (0, vue.createSlots)({
|
|
555
|
+
onToggleAll
|
|
556
|
+
}, (0, vue.createSlots)({
|
|
557
|
+
"header-__select": (0, vue.withCtx)((scope) => [(0, vue.renderSlot)(_ctx.$slots, "header-__select", (0, vue.normalizeProps)((0, vue.guardReactiveProps)(scope)))]),
|
|
558
|
+
_: 2
|
|
559
|
+
}, [(0, vue.renderList)(__props.columns, (col) => {
|
|
582
560
|
return {
|
|
583
561
|
name: `header-${col.path}`,
|
|
584
562
|
fn: (0, vue.withCtx)((scope) => [(0, vue.renderSlot)(_ctx.$slots, `header-${col.path}`, (0, vue.normalizeProps)((0, vue.guardReactiveProps)(scope)))])
|
|
@@ -594,6 +572,7 @@ var as_table_base_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
594
572
|
"column-min-width",
|
|
595
573
|
"has-select-column",
|
|
596
574
|
"select-all-state",
|
|
575
|
+
"selected-count",
|
|
597
576
|
"with-filler",
|
|
598
577
|
"aria-rowindex"
|
|
599
578
|
])) : (0, vue.createCommentVNode)("v-if", true),
|
|
@@ -674,7 +653,7 @@ var as_table_base_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
674
653
|
"aria-activedescendant": ariaActiveDescendant.value,
|
|
675
654
|
onKeydown: onTbodyKeydown
|
|
676
655
|
}, {
|
|
677
|
-
default: (0, vue.withCtx)(({ item, index, spaceBefore }) => [(0, vue.createCommentVNode)("\n `meta`
|
|
656
|
+
default: (0, vue.withCtx)(({ item, index, spaceBefore }) => [(0, vue.createCommentVNode)("\n `meta` (the row's hook results + its selectability verdict) and\n `selected` are resolved ONCE per row; `v-bind=\"meta.attrs\"` comes FIRST so every\n framework binding after it wins — consumer attrs can decorate a\n row but can never rewrite its id / role / aria / data contract.\n "), ((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, null, (0, vue.renderList)([[metaFor(index), isPkSelected(item)]], ([meta, selected]) => {
|
|
678
657
|
return (0, vue.openBlock)(), (0, vue.createElementBlock)("tr", (0, vue.mergeProps)({
|
|
679
658
|
key: 0,
|
|
680
659
|
ref_for: true
|
|
@@ -682,7 +661,7 @@ var as_table_base_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
682
661
|
id: rowIdFor(index),
|
|
683
662
|
role: "row",
|
|
684
663
|
"aria-rowindex": index + 2,
|
|
685
|
-
"aria-selected": ariaSelectedFor(
|
|
664
|
+
"aria-selected": ariaSelectedFor(selected),
|
|
686
665
|
"data-selectable": meta.selectable.ok ? void 0 : "false",
|
|
687
666
|
class: [{ "as-table-row-active": isActiveRow(index) }, meta.cls],
|
|
688
667
|
style: {
|
|
@@ -692,19 +671,26 @@ var as_table_base_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
692
671
|
onClick: ($event) => onRowClick(item, $event, index),
|
|
693
672
|
onDblclick: ($event) => onRowDblClick(item, $event, index)
|
|
694
673
|
}), [
|
|
695
|
-
hasValue.value ? ((0, vue.openBlock)(), (0, vue.
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
"
|
|
703
|
-
|
|
704
|
-
"
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
}
|
|
674
|
+
hasValue.value ? ((0, vue.openBlock)(), (0, vue.createBlock)(require_as_select_cell.as_select_cell_default, {
|
|
675
|
+
key: 0,
|
|
676
|
+
row: item,
|
|
677
|
+
index,
|
|
678
|
+
selected,
|
|
679
|
+
verdict: meta.selectable,
|
|
680
|
+
select: __props.select,
|
|
681
|
+
"select-on": __props.selectOn
|
|
682
|
+
}, (0, vue.createSlots)({ _: 2 }, [(0, vue.unref)(slots)["cell-__select"] ? {
|
|
683
|
+
name: "default",
|
|
684
|
+
fn: (0, vue.withCtx)((scope) => [(0, vue.renderSlot)(_ctx.$slots, "cell-__select", (0, vue.mergeProps)({ ref_for: true }, scope))]),
|
|
685
|
+
key: "0"
|
|
686
|
+
} : void 0]), 1032, [
|
|
687
|
+
"row",
|
|
688
|
+
"index",
|
|
689
|
+
"selected",
|
|
690
|
+
"verdict",
|
|
691
|
+
"select",
|
|
692
|
+
"select-on"
|
|
693
|
+
])) : (0, vue.createCommentVNode)("v-if", true),
|
|
708
694
|
(0, vue.unref)(hasAnyCellBindings) ? ((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, { key: 1 }, (0, vue.renderList)(__props.columns, (col) => {
|
|
709
695
|
return (0, vue.openBlock)(), (0, vue.createElementBlock)(vue.Fragment, { key: col.path }, [((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, null, (0, vue.renderList)([(0, vue.unref)(cellResolver)(col, item, index)], (bindings) => {
|
|
710
696
|
return (0, vue.openBlock)(), (0, vue.createElementBlock)(vue.Fragment, { key: 0 }, [cellSlotFlags.value[col.path] ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("td", (0, vue.mergeProps)({
|
|
@@ -722,7 +708,7 @@ var as_table_base_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
722
708
|
}, { ref_for: true }, bindings), null, 16, ["row", "column"]))], 64);
|
|
723
709
|
}), 128))], 64);
|
|
724
710
|
}), 128)) : ((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, { key: 2 }, (0, vue.renderList)(__props.columns, (col) => {
|
|
725
|
-
return (0, vue.openBlock)(), (0, vue.createElementBlock)(vue.Fragment, { key: col.path }, [cellSlotFlags.value[col.path] ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("td",
|
|
711
|
+
return (0, vue.openBlock)(), (0, vue.createElementBlock)(vue.Fragment, { key: col.path }, [cellSlotFlags.value[col.path] ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("td", _hoisted_7, [(0, vue.renderSlot)(_ctx.$slots, `cell-${col.path}`, {
|
|
726
712
|
row: item,
|
|
727
713
|
value: (0, vue.unref)(require_get_cell_value.getCellValue)(item, col.path),
|
|
728
714
|
column: col
|
|
@@ -733,7 +719,7 @@ var as_table_base_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
733
719
|
role: "gridcell"
|
|
734
720
|
}, null, 8, ["row", "column"]))], 64);
|
|
735
721
|
}), 128)),
|
|
736
|
-
__props.stretch ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("td",
|
|
722
|
+
__props.stretch ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("td", _hoisted_8)) : (0, vue.createCommentVNode)("v-if", true)
|
|
737
723
|
], 16, _hoisted_6);
|
|
738
724
|
}), 128))]),
|
|
739
725
|
_: 3
|
|
@@ -745,7 +731,7 @@ var as_table_base_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
745
731
|
"aria-activedescendant"
|
|
746
732
|
])], 2112)) : (0, vue.createCommentVNode)("v-if", true)
|
|
747
733
|
], 10, _hoisted_1),
|
|
748
|
-
(0, vue.createVNode)(
|
|
734
|
+
(0, vue.createVNode)(require_as_select_cell.as_table_status_default, {
|
|
749
735
|
"query-error": __props.queryError,
|
|
750
736
|
"is-empty": __props.rows.length === 0,
|
|
751
737
|
querying: !!__props.querying,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as useTableComponent } from "./use-table-component-
|
|
1
|
+
import { t as useTableComponent } from "./use-table-component-TLwFq4rx.mjs";
|
|
2
2
|
import { t as as_column_menu_default } from "./as-column-menu-CBtUfYEE.mjs";
|
|
3
3
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, normalizeClass, openBlock, resolveDynamicComponent, toDisplayString, unref, withCtx, withModifiers } from "vue";
|
|
4
4
|
import { isFilled } from "@atscript/ui-table";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_use_table_component = require("./use-table-component-
|
|
1
|
+
const require_use_table_component = require("./use-table-component-IziAm0vk.cjs");
|
|
2
2
|
const require_as_column_menu = require("./as-column-menu-ChB7hzmr.cjs");
|
|
3
3
|
let vue = require("vue");
|
|
4
4
|
let _atscript_ui_table = require("@atscript/ui-table");
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_table_header_cell = require("./as-table-header-cell-
|
|
1
|
+
const require_as_table_header_cell = require("./as-table-header-cell-f3YpgJX1.cjs");
|
|
2
2
|
module.exports = require_as_table_header_cell.as_table_header_cell_default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-table-header-cell.vue-
|
|
1
|
+
import { t as _default } from "./as-table-header-cell.vue-XR90UlHO.cjs";
|
|
2
2
|
export = _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-table-header-cell.vue-
|
|
1
|
+
import { t as _default } from "./as-table-header-cell.vue-5VGRc23o.mjs";
|
|
2
2
|
export { _default as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_table_header_cell_default } from "./as-table-header-cell-
|
|
1
|
+
import { t as as_table_header_cell_default } from "./as-table-header-cell-DU3ws2x9.mjs";
|
|
2
2
|
export { as_table_header_cell_default as default };
|
package/dist/{as-table-header-cell.vue-D-iI_EJY.d.cts → as-table-header-cell.vue-5VGRc23o.d.mts}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as ColumnMenuConfig } from "./types-
|
|
2
|
-
import * as vue from "vue";
|
|
1
|
+
import { r as ColumnMenuConfig } from "./types-BU7J-a1r.mjs";
|
|
3
2
|
import { ColumnDef } from "@atscript/ui";
|
|
3
|
+
import * as vue from "vue";
|
|
4
4
|
import { ColumnWidthEntry, FilterCondition } from "@atscript/ui-table";
|
|
5
5
|
|
|
6
6
|
//#region src/components/defaults/as-table-header-cell.vue.d.ts
|
package/dist/{as-table-header-cell.vue-SMBpzqU2.d.mts → as-table-header-cell.vue-XR90UlHO.d.cts}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { r as ColumnMenuConfig } from "./types-
|
|
2
|
-
import { ColumnDef } from "@atscript/ui";
|
|
1
|
+
import { r as ColumnMenuConfig } from "./types-D4dK49sA.cjs";
|
|
3
2
|
import * as vue from "vue";
|
|
3
|
+
import { ColumnDef } from "@atscript/ui";
|
|
4
4
|
import { ColumnWidthEntry, FilterCondition } from "@atscript/ui-table";
|
|
5
5
|
|
|
6
6
|
//#region src/components/defaults/as-table-header-cell.vue.d.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as warnUnsupportedFilter, i as useRegisterMainActionListener, s as warnFieldsDropped, t as createStaticTableState } from "./use-table-state-
|
|
2
|
-
import { n as finalizeTableState, r as useTable } from "./use-table-
|
|
3
|
-
import { t as useTableNavBridge } from "./use-table-nav-bridge-
|
|
1
|
+
import { c as warnUnsupportedFilter, i as useRegisterMainActionListener, s as warnFieldsDropped, t as createStaticTableState } from "./use-table-state-Cq-3tbVr.mjs";
|
|
2
|
+
import { n as finalizeTableState, r as useTable } from "./use-table-DlqGHjPh.mjs";
|
|
3
|
+
import { t as useTableNavBridge } from "./use-table-nav-bridge-CkQqimdS.mjs";
|
|
4
4
|
import { t as useHasEmitListener } from "./use-has-emit-listener-DrBbsLHQ.mjs";
|
|
5
|
-
import { t as as_confirm_dialog_default } from "./as-confirm-dialog-
|
|
5
|
+
import { t as as_confirm_dialog_default } from "./as-confirm-dialog-C9Qat2rG.mjs";
|
|
6
6
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, defineAsyncComponent, defineComponent, mergeModels, openBlock, ref, renderSlot, resolveDynamicComponent, unref, useModel, watch } from "vue";
|
|
7
7
|
import { DEV } from "@atscript/ui-table";
|
|
8
8
|
//#endregion
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const require_use_table_state = require("./use-table-state-
|
|
2
|
-
const require_use_table = require("./use-table-
|
|
3
|
-
const require_use_table_nav_bridge = require("./use-table-nav-bridge-
|
|
1
|
+
const require_use_table_state = require("./use-table-state-BiklfjP0.cjs");
|
|
2
|
+
const require_use_table = require("./use-table-yZNJTfRq.cjs");
|
|
3
|
+
const require_use_table_nav_bridge = require("./use-table-nav-bridge-QU4jKhqx.cjs");
|
|
4
4
|
const require_use_has_emit_listener = require("./use-has-emit-listener-BaGFZDyM.cjs");
|
|
5
|
-
const require_as_confirm_dialog = require("./as-confirm-dialog-
|
|
5
|
+
const require_as_confirm_dialog = require("./as-confirm-dialog-fCwo1ty9.cjs");
|
|
6
6
|
let vue = require("vue");
|
|
7
7
|
let _atscript_ui_table = require("@atscript/ui-table");
|
|
8
8
|
//#endregion
|
package/dist/as-table-root.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_table_root = require("./as-table-root-
|
|
1
|
+
const require_as_table_root = require("./as-table-root-DDeGktcl.cjs");
|
|
2
2
|
module.exports = require_as_table_root.as_table_root_default;
|
package/dist/as-table-root.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-table-root.vue-
|
|
1
|
+
import { t as _default } from "./as-table-root.vue-yZ7ZcwdT.cjs";
|
|
2
2
|
export = _default;
|
package/dist/as-table-root.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-table-root.vue-
|
|
1
|
+
import { t as _default } from "./as-table-root.vue-BGx453_Q.mjs";
|
|
2
2
|
export { _default as default };
|
package/dist/as-table-root.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_table_root_default } from "./as-table-root-
|
|
1
|
+
import { t as as_table_root_default } from "./as-table-root-47hiBEnq.mjs";
|
|
2
2
|
export { as_table_root_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { D as TVueTableActionInfo, E as TAsTableControls, O as TableActionsState, T as TAsCellTypeComponents, a as ConfirmOptions, d as NavKeyOptions, f as PresetConfig, g as RowActionsConfig, k as TableNavBridge, m as ReactiveTableState, o as DroppedFieldsReport, t as ActionResult } from "./types-BU7J-a1r.mjs";
|
|
2
2
|
import * as _atscript_ui0 from "@atscript/ui";
|
|
3
3
|
import { ClientFactory, ClientFactory as ClientFactory$1, ColumnDef, SortControl, TableDef, getDefaultClientFactory, resetDefaultClientFactory, setDefaultClientFactory } from "@atscript/ui";
|
|
4
4
|
import * as vue from "vue";
|
|
@@ -2571,11 +2571,12 @@ declare const __VLS_base: vue.DefineComponent<__VLS_PublicProps, {
|
|
|
2571
2571
|
"update:selectedRows": (value: unknown[]) => any;
|
|
2572
2572
|
"update:urlQuery": (value: string | undefined) => any;
|
|
2573
2573
|
} & {
|
|
2574
|
+
"main-action": (row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any;
|
|
2574
2575
|
"unsupported-filter": (issue: UnsupportedFilter) => any;
|
|
2575
2576
|
"fields-dropped": (report: DroppedFieldsReport) => any;
|
|
2576
|
-
action: (action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?:
|
|
2577
|
-
"main-action": (row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any;
|
|
2577
|
+
action: (action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any;
|
|
2578
2578
|
}, string, vue.PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
2579
|
+
"onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any) | undefined;
|
|
2579
2580
|
"onUnsupported-filter"?: ((issue: UnsupportedFilter) => any) | undefined;
|
|
2580
2581
|
"onFields-dropped"?: ((report: DroppedFieldsReport) => any) | undefined;
|
|
2581
2582
|
"onUpdate:filterFields"?: ((value: string[]) => any) | undefined;
|
|
@@ -2585,8 +2586,7 @@ declare const __VLS_base: vue.DefineComponent<__VLS_PublicProps, {
|
|
|
2585
2586
|
"onUpdate:ignoreSortersWhenSearched"?: ((value: boolean) => any) | undefined;
|
|
2586
2587
|
"onUpdate:selectedRows"?: ((value: unknown[]) => any) | undefined;
|
|
2587
2588
|
"onUpdate:urlQuery"?: ((value: string | undefined) => any) | undefined;
|
|
2588
|
-
onAction?: ((action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?:
|
|
2589
|
-
"onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any) | undefined;
|
|
2589
|
+
onAction?: ((action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any) | undefined;
|
|
2590
2590
|
}>, {
|
|
2591
2591
|
localSort: boolean;
|
|
2592
2592
|
queryOnMount: boolean;
|