@atscript/vue-table 0.1.138 → 0.1.140
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-D8f60mY-.cjs → as-action-menu-content-B5RFt7Hc.cjs} +1 -1
- package/dist/{as-action-menu-content-CVlExEpl.mjs → as-action-menu-content-KNJr1EkO.mjs} +1 -1
- package/dist/{as-cell-array-BWHkJX3I.mjs → as-cell-array-Bgc4GYZf.mjs} +1 -1
- package/dist/{as-cell-array-D-8Pqlgo.cjs → as-cell-array-CCZ0Ajj9.cjs} +1 -1
- package/dist/as-cell-array.cjs +1 -1
- package/dist/as-cell-array.d.mts +1 -1
- package/dist/as-cell-array.mjs +1 -1
- package/dist/{as-cell-date-mGlnDeLP.mjs → as-cell-date-B9mu0OOD.mjs} +1 -1
- package/dist/{as-cell-date-DviMJEqs.cjs → as-cell-date-RU5JPJhI.cjs} +1 -1
- package/dist/as-cell-date.cjs +1 -1
- package/dist/as-cell-date.d.mts +1 -1
- package/dist/as-cell-date.mjs +1 -1
- package/dist/{as-cell-json-2I081xnO.mjs → as-cell-json-ByEGYRST.mjs} +1 -1
- package/dist/{as-cell-json-CaVB6e7V.cjs → as-cell-json-w5YJxNuF.cjs} +1 -1
- package/dist/as-cell-json.cjs +1 -1
- package/dist/as-cell-json.d.mts +1 -1
- package/dist/as-cell-json.mjs +1 -1
- package/dist/{as-cell-number-CP2AZI9g.mjs → as-cell-number-CNDT6gfw.mjs} +1 -1
- package/dist/{as-cell-number-BnYbxOiG.cjs → as-cell-number-DGJCTXDf.cjs} +1 -1
- package/dist/as-cell-number.cjs +1 -1
- package/dist/as-cell-number.d.mts +1 -1
- package/dist/as-cell-number.mjs +1 -1
- package/dist/{as-cell-union-NHpDCXty.mjs → as-cell-union-DMnoa7RM.mjs} +2 -2
- package/dist/{as-cell-union-BjMP91PS.cjs → as-cell-union-LOGvhPeK.cjs} +2 -2
- package/dist/as-cell-union.cjs +1 -1
- package/dist/as-cell-union.d.mts +1 -1
- package/dist/as-cell-union.mjs +1 -1
- package/dist/{as-column-menu-BMTS3DO2.mjs → as-column-menu-CBtUfYEE.mjs} +2 -2
- package/dist/{as-column-menu-D_8NxujZ.cjs → as-column-menu-ChB7hzmr.cjs} +1 -1
- package/dist/as-column-menu.cjs +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.mjs +1 -1
- package/dist/{as-column-menu.vue-SRkxrvo_.d.mts → as-column-menu.vue-DKQNY5gh.d.cts} +2 -2
- package/dist/{as-column-menu.vue-CgvDp7JK.d.cts → as-column-menu.vue-hOmuVcKf.d.mts} +2 -2
- package/dist/{as-config-dialog-BrVhIV_e.cjs → as-config-dialog-B1KJJSHE.cjs} +4 -4
- package/dist/{as-config-dialog-DHdpmRo9.mjs → as-config-dialog-JXNkCCrh.mjs} +5 -5
- package/dist/as-config-dialog.cjs +1 -1
- package/dist/as-config-dialog.d.mts +1 -1
- package/dist/as-config-dialog.mjs +1 -1
- package/dist/{as-confirm-dialog-BG5vlbvV.mjs → as-confirm-dialog-CC6U8nLZ.mjs} +1 -1
- package/dist/{as-confirm-dialog-iytk-urB.cjs → as-confirm-dialog-a736BLOm.cjs} +1 -1
- package/dist/as-confirm-dialog.cjs +1 -1
- package/dist/as-confirm-dialog.d.mts +1 -1
- package/dist/as-confirm-dialog.mjs +1 -1
- package/dist/{as-filter-dialog-Dis7tkN_.mjs → as-filter-dialog-C3wltqrN.mjs} +16 -16
- package/dist/{as-filter-dialog-CW8-zoag.cjs → as-filter-dialog-IflKkOd8.cjs} +15 -15
- package/dist/as-filter-dialog.cjs +1 -1
- package/dist/as-filter-dialog.d.mts +1 -1
- package/dist/as-filter-dialog.mjs +1 -1
- package/dist/{as-filter-field-BKoxTudl.mjs → as-filter-field-D_6DlFcp.mjs} +5 -6
- package/dist/{as-filter-field-bVIXoH3j.cjs → as-filter-field-pygBjA-K.cjs} +4 -5
- package/dist/as-filter-field.cjs +1 -1
- package/dist/as-filter-field.d.mts +1 -1
- package/dist/as-filter-field.mjs +1 -1
- package/dist/as-filter-input.cjs +1 -1
- package/dist/as-filter-input.d.mts +1 -1
- package/dist/as-filter-input.mjs +1 -1
- package/dist/{as-filters-CxVy00LQ.mjs → as-filters-BDzQ2SM_.mjs} +19 -4
- package/dist/{as-filters-Dx8WkGiA.cjs → as-filters-BIoEsPD0.cjs} +19 -4
- 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-DcxDnWAU.d.cts → as-filters.vue-BSgUEh4D.d.mts} +23 -1
- package/dist/{as-filters.vue-BG_ysCkC.d.mts → as-filters.vue-DMXZhQW3.d.cts} +23 -1
- package/dist/{as-preset-dialog-D8o2ChtM.cjs → as-preset-dialog-BgZB8xyk.cjs} +2 -2
- package/dist/{as-preset-dialog-C0f_6VxJ.mjs → as-preset-dialog-D_w4cxKS.mjs} +2 -2
- package/dist/as-preset-dialog.cjs +1 -1
- package/dist/as-preset-dialog.d.mts +1 -1
- package/dist/as-preset-dialog.mjs +1 -1
- package/dist/{as-preset-picker-CDItDinB.mjs → as-preset-picker-B8d6l3U1.mjs} +12 -7
- package/dist/{as-preset-picker-DonMQ8Ia.cjs → as-preset-picker-XnGrqHyF.cjs} +12 -7
- package/dist/as-preset-picker.cjs +1 -1
- package/dist/as-preset-picker.d.mts +1 -1
- package/dist/as-preset-picker.mjs +1 -1
- package/dist/as-residual-filter-C65QsWxr.mjs +49 -0
- package/dist/as-residual-filter-ihvXCtpH.cjs +54 -0
- package/dist/as-residual-filter.cjs +2 -0
- package/dist/as-residual-filter.d.cts +2 -0
- package/dist/as-residual-filter.d.mts +2 -0
- package/dist/as-residual-filter.mjs +2 -0
- package/dist/as-residual-filter.vue-Dfw1l2wS.d.cts +21 -0
- package/dist/as-residual-filter.vue-N89YqlCz.d.mts +21 -0
- package/dist/{as-row-actions-CAiCfw8d.cjs → as-row-actions-C6N0lcZb.cjs} +2 -2
- package/dist/{as-row-actions-B8YANdb4.mjs → as-row-actions-xQ9M1PrO.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-BCgHsU18.d.mts → as-row-actions.vue-B3XAxDAL.d.cts} +1 -1
- package/dist/{as-row-actions.vue-C49h8PpE.d.cts → as-row-actions.vue-C8vslg0n.d.mts} +1 -1
- package/dist/{as-table-BAoJ60tx.mjs → as-table-B49x0hDM.mjs} +3 -3
- package/dist/{as-table-actions-8yf2QIER.cjs → as-table-actions-B-jY3s6f.cjs} +2 -2
- package/dist/{as-table-actions-z5xUWtvK.mjs → as-table-actions-B2Hy3h7v.mjs} +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-BTGQnFH_.d.mts → as-table-actions.vue-BgTJuXEH.d.cts} +2 -2
- package/dist/{as-table-actions.vue-oxyikRAt.d.cts → as-table-actions.vue-BnLH2NqO.d.mts} +2 -2
- package/dist/{as-table-base-DA5T7x_K.mjs → as-table-base-DErJfFYz.mjs} +2 -2
- package/dist/{as-table-base-wPJuru7P.cjs → as-table-base-ceywcVRq.cjs} +2 -2
- package/dist/{as-table-cell-value-BAi5yadc.cjs → as-table-cell-value-COyZnwUj.cjs} +1 -1
- package/dist/{as-table-cell-value-BVcfhhCb.mjs → as-table-cell-value-DoH8Mieo.mjs} +1 -1
- package/dist/as-table-cell-value.cjs +1 -1
- package/dist/as-table-cell-value.d.cts +1 -1
- package/dist/as-table-cell-value.d.mts +1 -1
- package/dist/as-table-cell-value.mjs +1 -1
- package/dist/{as-table-header-cell-Cl8waY_g.mjs → as-table-header-cell-Ccf06b2_.mjs} +2 -2
- package/dist/{as-table-header-cell-CiRLNVJz.cjs → as-table-header-cell-ZCk3XD_d.cjs} +2 -2
- 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-BjgxfKhi.d.cts → as-table-header-cell.vue-C7jNmdDh.d.mts} +2 -2
- package/dist/{as-table-header-cell.vue-zGeuzm3w.d.mts → as-table-header-cell.vue-DkClJBAT.d.cts} +2 -2
- package/dist/{as-table-QoXP-NZr.cjs → as-table-ouPxssqv.cjs} +3 -3
- package/dist/{as-table-root-Bza3ZGJZ.mjs → as-table-root-CG7bLzcQ.mjs} +18 -29
- package/dist/{as-table-root-C6a6iO6M.cjs → as-table-root-_58hdHAi.cjs} +19 -30
- 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-Dze91qga.d.cts → as-table-root.vue-D8hH1xGK.d.cts} +29 -5
- package/dist/{as-table-root.vue-DnOHVQtA.d.mts → as-table-root.vue-DpPRMy3v.d.mts} +29 -5
- package/dist/{as-table-status-aebsG7bR.mjs → as-table-status-2rA91OFT.mjs} +5 -5
- package/dist/{as-table-status-B2O3hLGg.cjs → as-table-status-UWTPJJUL.cjs} +5 -5
- 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-emq84QmP.d.mts → as-table.vue-Bv6sKnL5.d.cts} +3 -3
- package/dist/{as-table.vue-BSKifGzD.d.cts → as-table.vue-CudFoZTF.d.mts} +3 -3
- package/dist/{as-window-table-DS30wumm.cjs → as-window-table-C9YtzepV.cjs} +3 -3
- package/dist/{as-window-table-ByTXS8yA.mjs → as-window-table-KyS6YUpa.mjs} +3 -3
- 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-DJNJ-6dd.d.cts → as-window-table.vue-COVl3die.d.mts} +2 -2
- package/dist/{as-window-table.vue-DUJgZDXy.d.mts → as-window-table.vue-CRWdhOgC.d.cts} +2 -2
- package/dist/index.cjs +45 -71
- package/dist/index.d.cts +10 -10
- package/dist/index.d.mts +22 -22
- package/dist/index.mjs +46 -72
- package/dist/{types-CsgAGRfG.d.mts → types-BCixOa8x.d.cts} +41 -11
- package/dist/{types-DvWLY5zQ.d.cts → types-D7qVxU_y.d.mts} +41 -11
- package/dist/{use-table-DRN4nlZs.mjs → use-table-2xPxoNRX.mjs} +3 -2
- package/dist/{use-table-JU7BAX4e.cjs → use-table-B45WZLwg.cjs} +3 -2
- package/dist/{use-table-column-handlers-DGn4ZW9j.mjs → use-table-column-handlers-p_xK-l0e.mjs} +1 -1
- package/dist/{use-table-column-handlers-r47WDxEh.cjs → use-table-column-handlers-rqFo9HLz.cjs} +1 -1
- package/dist/{use-table-component-VUFlxIk-.mjs → use-table-component-BYO0zMQj.mjs} +1 -1
- package/dist/{use-table-component-DIWiP_Vs.cjs → use-table-component-XQ-Qt_sp.cjs} +1 -1
- package/dist/{use-table-nav-bridge-DT8oU-6r.mjs → use-table-nav-bridge-BDBnRc4C.mjs} +1 -1
- package/dist/{use-table-nav-bridge-BBtXE70x.cjs → use-table-nav-bridge-DvrsPanF.cjs} +1 -1
- package/dist/{use-table-state-CqU1N4Q9.mjs → use-table-state-BzjbnpBA.mjs} +100 -12
- package/dist/{use-table-state-CoVe_8NI.cjs → use-table-state-pF_9gnTG.cjs} +104 -10
- package/package.json +14 -7
- /package/dist/{as-cell-array.vue-D4vS7C_D.d.mts → as-cell-array.vue-ow34clSF.d.mts} +0 -0
- /package/dist/{as-cell-date.vue-Chs7WTZ9.d.mts → as-cell-date.vue-B4JCr1qP.d.mts} +0 -0
- /package/dist/{as-cell-json-popover-vty5vMjW.cjs → as-cell-json-popover-BM2QLgfk.cjs} +0 -0
- /package/dist/{as-cell-json-popover-CH5bAcLE.mjs → as-cell-json-popover-Dkdv5Y9E.mjs} +0 -0
- /package/dist/{as-cell-json.vue-C0_LDvQw.d.mts → as-cell-json.vue-B-T3TuFj.d.mts} +0 -0
- /package/dist/{as-cell-number.vue-BBF0OuU8.d.mts → as-cell-number.vue-CNH2fbCB.d.mts} +0 -0
- /package/dist/{as-cell-union.vue-CL-Lf-Rm.d.mts → as-cell-union.vue-CZwN81H4.d.mts} +0 -0
- /package/dist/{as-config-dialog.vue-BvFZZRuY.d.mts → as-config-dialog.vue-BKo2GpzN.d.mts} +0 -0
- /package/dist/{as-confirm-dialog.vue-Cz52-v6c.d.mts → as-confirm-dialog.vue-BN_yzu3h.d.mts} +0 -0
- /package/dist/{as-filter-dialog.vue-likNLqzF.d.mts → as-filter-dialog.vue-Bl8OIKOf.d.mts} +0 -0
- /package/dist/{as-filter-field.vue-BbXLhd6O.d.mts → as-filter-field.vue-DD0IZXS1.d.mts} +0 -0
- /package/dist/{as-filter-input-C8KmOus8.mjs → as-filter-input-BM23TNeh.mjs} +0 -0
- /package/dist/{as-filter-input-DUqpkTkg.cjs → as-filter-input-DJu2k9gO.cjs} +0 -0
- /package/dist/{as-filter-input.vue-B9ma2l9j.d.mts → as-filter-input.vue-CFZ33B--.d.mts} +0 -0
- /package/dist/{as-preset-dialog.vue-BRjjfPty.d.mts → as-preset-dialog.vue-ChM7H7B4.d.mts} +0 -0
- /package/dist/{as-preset-picker.vue-BPjsiaVt.d.mts → as-preset-picker.vue-OaAV2v9z.d.mts} +0 -0
- /package/dist/{as-table-cell-value.vue-BgFDv2JQ.d.cts → as-table-cell-value.vue-C0VR9GRK.d.cts} +0 -0
- /package/dist/{as-table-cell-value.vue-kfNgVhzn.d.mts → as-table-cell-value.vue-DphckGq-.d.mts} +0 -0
- /package/dist/{format-cell-Bx7wNc4X.mjs → format-cell-D1Ziv96Q.mjs} +0 -0
- /package/dist/{format-cell-DaxV6WIJ.cjs → format-cell-vCNTh4WZ.cjs} +0 -0
- /package/dist/{use-cell-locale-caG2Fzpc.cjs → use-cell-locale-BGBRQB7s.cjs} +0 -0
- /package/dist/{use-cell-locale-CxQOQsns.mjs → use-cell-locale-MQXoONh5.mjs} +0 -0
- /package/dist/{use-seed-on-open-DSh4XFyp.mjs → use-seed-on-open-DO3A1kIb.mjs} +0 -0
- /package/dist/{use-seed-on-open-9TSm1Vbv.cjs → use-seed-on-open-Dg9I89fU.cjs} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-table-actions.vue-
|
|
1
|
+
import { t as _default } from "./as-table-actions.vue-BnLH2NqO.mjs";
|
|
2
2
|
export { _default as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_table_actions_default } from "./as-table-actions-
|
|
1
|
+
import { t as as_table_actions_default } from "./as-table-actions-B2Hy3h7v.mjs";
|
|
2
2
|
export { as_table_actions_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { w as TVueTableActionInfo } from "./types-
|
|
1
|
+
import { w as TVueTableActionInfo } from "./types-BCixOa8x.cjs";
|
|
2
2
|
import * as vue from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/as-table-actions.vue.d.ts
|
|
@@ -18,7 +18,7 @@ declare var __VLS_1: {
|
|
|
18
18
|
defaultAction: TVueTableActionInfo | undefined;
|
|
19
19
|
otherActions: TVueTableActionInfo[];
|
|
20
20
|
trailingRowActions: TVueTableActionInfo[];
|
|
21
|
-
level: "row" | "
|
|
21
|
+
level: "row" | "rows" | "table";
|
|
22
22
|
ids: Record<string, unknown>[];
|
|
23
23
|
invoke: typeof invokeWith;
|
|
24
24
|
}, __VLS_12: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { w as TVueTableActionInfo } from "./types-
|
|
1
|
+
import { w as TVueTableActionInfo } from "./types-D7qVxU_y.mjs";
|
|
2
2
|
import * as vue from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/as-table-actions.vue.d.ts
|
|
@@ -18,7 +18,7 @@ declare var __VLS_1: {
|
|
|
18
18
|
defaultAction: TVueTableActionInfo | undefined;
|
|
19
19
|
otherActions: TVueTableActionInfo[];
|
|
20
20
|
trailingRowActions: TVueTableActionInfo[];
|
|
21
|
-
level: "row" | "
|
|
21
|
+
level: "row" | "rows" | "table";
|
|
22
22
|
ids: Record<string, unknown>[];
|
|
23
23
|
invoke: typeof invokeWith;
|
|
24
24
|
}, __VLS_12: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { m as onSelectControlKeydown, o as useTableContextOptional } from "./use-table-state-BzjbnpBA.mjs";
|
|
2
2
|
import { t as getCellValue } from "./get-cell-value-Cb3X8nUn.mjs";
|
|
3
|
-
import { a as useCellComponents, n as as_table_header_default, o as useCellResolver, r as as_table_colgroup_default, t as as_table_status_default } from "./as-table-status-
|
|
3
|
+
import { a as useCellComponents, n as as_table_header_default, o as useCellResolver, r as as_table_colgroup_default, t as as_table_status_default } from "./as-table-status-2rA91OFT.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";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_use_table_state = require("./use-table-state-
|
|
1
|
+
const require_use_table_state = require("./use-table-state-pF_9gnTG.cjs");
|
|
2
2
|
const require_get_cell_value = require("./get-cell-value-CJT4fk4y.cjs");
|
|
3
|
-
const require_as_table_status = require("./as-table-status-
|
|
3
|
+
const require_as_table_status = require("./as-table-status-UWTPJJUL.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");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_get_cell_value = require("./get-cell-value-CJT4fk4y.cjs");
|
|
2
|
-
const require_format_cell = require("./format-cell-
|
|
2
|
+
const require_format_cell = require("./format-cell-vCNTh4WZ.cjs");
|
|
3
3
|
let vue = require("vue");
|
|
4
4
|
//#endregion
|
|
5
5
|
//#region src/components/defaults/as-table-cell-value.vue
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as getCellValue } from "./get-cell-value-Cb3X8nUn.mjs";
|
|
2
|
-
import { t as formatCellValue } from "./format-cell-
|
|
2
|
+
import { t as formatCellValue } from "./format-cell-D1Ziv96Q.mjs";
|
|
3
3
|
import { createElementBlock, defineComponent, normalizeClass, openBlock, toDisplayString, unref } from "vue";
|
|
4
4
|
//#endregion
|
|
5
5
|
//#region src/components/defaults/as-table-cell-value.vue
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_table_cell_value = require("./as-table-cell-value-
|
|
1
|
+
const require_as_table_cell_value = require("./as-table-cell-value-COyZnwUj.cjs");
|
|
2
2
|
module.exports = require_as_table_cell_value.as_table_cell_value_default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-table-cell-value.vue-
|
|
1
|
+
import { t as _default } from "./as-table-cell-value.vue-C0VR9GRK.cjs";
|
|
2
2
|
export = _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-table-cell-value.vue-
|
|
1
|
+
import { t as _default } from "./as-table-cell-value.vue-DphckGq-.mjs";
|
|
2
2
|
export { _default as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_table_cell_value_default } from "./as-table-cell-value-
|
|
1
|
+
import { t as as_table_cell_value_default } from "./as-table-cell-value-DoH8Mieo.mjs";
|
|
2
2
|
export { as_table_cell_value_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as useTableComponent } from "./use-table-component-
|
|
2
|
-
import { t as as_column_menu_default } from "./as-column-menu-
|
|
1
|
+
import { t as useTableComponent } from "./use-table-component-BYO0zMQj.mjs";
|
|
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";
|
|
5
5
|
//#region src/components/defaults/as-table-header-cell.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_use_table_component = require("./use-table-component-
|
|
2
|
-
const require_as_column_menu = require("./as-column-menu-
|
|
1
|
+
const require_use_table_component = require("./use-table-component-XQ-Qt_sp.cjs");
|
|
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");
|
|
5
5
|
//#region src/components/defaults/as-table-header-cell.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -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-ZCk3XD_d.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-DkClJBAT.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-C7jNmdDh.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-Ccf06b2_.mjs";
|
|
2
2
|
export { as_table_header_cell_default as default };
|
package/dist/{as-table-header-cell.vue-BjgxfKhi.d.cts → as-table-header-cell.vue-C7jNmdDh.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-D7qVxU_y.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-zGeuzm3w.d.mts → as-table-header-cell.vue-DkClJBAT.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-BCixOa8x.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
|
-
const require_use_table_state = require("./use-table-state-
|
|
1
|
+
const require_use_table_state = require("./use-table-state-pF_9gnTG.cjs");
|
|
2
2
|
const require_use_table_selection = require("./use-table-selection-DtCV3rhu.cjs");
|
|
3
3
|
const require_use_has_emit_listener = require("./use-has-emit-listener-BaGFZDyM.cjs");
|
|
4
|
-
const require_use_table_column_handlers = require("./use-table-column-handlers-
|
|
5
|
-
const require_as_table_base = require("./as-table-base-
|
|
4
|
+
const require_use_table_column_handlers = require("./use-table-column-handlers-rqFo9HLz.cjs");
|
|
5
|
+
const require_as_table_base = require("./as-table-base-ceywcVRq.cjs");
|
|
6
6
|
let vue = require("vue");
|
|
7
7
|
//#region src/components/as-table.vue?vue&type=script&setup=true&lang.ts
|
|
8
8
|
const _hoisted_1 = { class: "as-table-outer-wrap" };
|
|
@@ -1,28 +1,10 @@
|
|
|
1
|
-
import { i as useRegisterMainActionListener, 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 { i as useRegisterMainActionListener, s as warnUnsupportedFilter, t as createStaticTableState } from "./use-table-state-BzjbnpBA.mjs";
|
|
2
|
+
import { n as finalizeTableState, r as useTable } from "./use-table-2xPxoNRX.mjs";
|
|
3
|
+
import { t as useTableNavBridge } from "./use-table-nav-bridge-BDBnRc4C.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-CC6U8nLZ.mjs";
|
|
6
6
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, defineAsyncComponent, defineComponent, mergeModels, openBlock, ref, renderSlot, resolveDynamicComponent, unref, useModel, watch } from "vue";
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* `true` outside a production build — the gate for authoring-time warnings, so
|
|
10
|
-
* their strings and checks cost a shipped app nothing.
|
|
11
|
-
*
|
|
12
|
-
* Read from `process.env.NODE_ENV` rather than `import.meta.env`: bundlers
|
|
13
|
-
* replace this expression with a literal in both the ESM and the CJS output,
|
|
14
|
-
* while `import.meta` only exists in the former. Where neither a bundler nor a
|
|
15
|
-
* `process` shim is present the read throws — warnings stay on, which is the
|
|
16
|
-
* safe side of the trade.
|
|
17
|
-
*/
|
|
18
|
-
function detectDev() {
|
|
19
|
-
try {
|
|
20
|
-
return process.env.NODE_ENV !== "production";
|
|
21
|
-
} catch {
|
|
22
|
-
return true;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
const DEV = detectDev();
|
|
7
|
+
import { DEV } from "@atscript/ui-table";
|
|
26
8
|
//#endregion
|
|
27
9
|
//#region src/components/as-table-root.vue
|
|
28
10
|
var as_table_root_default = /* @__PURE__ */ defineComponent({
|
|
@@ -181,7 +163,11 @@ var as_table_root_default = /* @__PURE__ */ defineComponent({
|
|
|
181
163
|
},
|
|
182
164
|
"urlQueryModifiers": {}
|
|
183
165
|
}),
|
|
184
|
-
emits: /* @__PURE__ */ mergeModels([
|
|
166
|
+
emits: /* @__PURE__ */ mergeModels([
|
|
167
|
+
"main-action",
|
|
168
|
+
"action",
|
|
169
|
+
"unsupported-filter"
|
|
170
|
+
], [
|
|
185
171
|
"update:filterFields",
|
|
186
172
|
"update:columnNames",
|
|
187
173
|
"update:columnWidths",
|
|
@@ -272,6 +258,7 @@ var as_table_root_default = /* @__PURE__ */ defineComponent({
|
|
|
272
258
|
watch(() => props.rows, () => localState.query({ silent: true }));
|
|
273
259
|
return localState;
|
|
274
260
|
}
|
|
261
|
+
const hasUnsupportedFilterListener = useHasEmitListener("onUnsupportedFilter");
|
|
275
262
|
const state = localMode ? createLocalState() : useTable(props.url, {
|
|
276
263
|
limit: props.limit,
|
|
277
264
|
rowValueFn: props.rowValueFn,
|
|
@@ -304,6 +291,7 @@ var as_table_root_default = /* @__PURE__ */ defineComponent({
|
|
|
304
291
|
urlQueryReady: urlQueryActive ? urlQueryReady : void 0,
|
|
305
292
|
onUrlQueryChange: urlQueryActive ? (s) => urlQuery.value = s : void 0,
|
|
306
293
|
urlQuerySync: props.urlQuerySync,
|
|
294
|
+
onUnsupportedFilter: (issue) => hasUnsupportedFilterListener.value ? emit("unsupported-filter", issue) : warnUnsupportedFilter(issue),
|
|
307
295
|
preset: props.preset,
|
|
308
296
|
displayColumns: props.displayColumns
|
|
309
297
|
});
|
|
@@ -311,7 +299,7 @@ var as_table_root_default = /* @__PURE__ */ defineComponent({
|
|
|
311
299
|
state.rowActions.value = value;
|
|
312
300
|
}, { immediate: true });
|
|
313
301
|
if (urlQueryActive && !localMode) {
|
|
314
|
-
let lastSeenQuery
|
|
302
|
+
let lastSeenQuery;
|
|
315
303
|
watch([
|
|
316
304
|
() => state.tableDef.value,
|
|
317
305
|
() => urlQuery.value,
|
|
@@ -319,11 +307,9 @@ var as_table_root_default = /* @__PURE__ */ defineComponent({
|
|
|
319
307
|
], ([def, q, presetReady]) => {
|
|
320
308
|
if (def === null || !presetReady) return;
|
|
321
309
|
const query = typeof q === "string" ? q : "";
|
|
322
|
-
if (
|
|
323
|
-
if (query !== "") state.applyUrlQuery(query, { mode: "merge" });
|
|
324
|
-
urlQueryReady.value = true;
|
|
325
|
-
} else if (query !== lastSeenQuery) state.applyUrlQuery(query, { mode: "replace" });
|
|
310
|
+
if (query !== lastSeenQuery) state.applyUrlQuery(query);
|
|
326
311
|
lastSeenQuery = query;
|
|
312
|
+
urlQueryReady.value = true;
|
|
327
313
|
}, { immediate: true });
|
|
328
314
|
}
|
|
329
315
|
useRegisterMainActionListener(state, (req) => emit("main-action", req.row, req.absIndex, req.event), useHasEmitListener("onMainAction"));
|
|
@@ -363,6 +349,7 @@ var as_table_root_default = /* @__PURE__ */ defineComponent({
|
|
|
363
349
|
columns: unref(state).columns.value,
|
|
364
350
|
filterFields: unref(state).filterFields.value,
|
|
365
351
|
filters: unref(state).filters.value,
|
|
352
|
+
residualFilters: unref(state).residualFilters.value,
|
|
366
353
|
sorters: unref(state).sorters.value,
|
|
367
354
|
results: unref(state).results.value,
|
|
368
355
|
querying: unref(state).querying.value,
|
|
@@ -386,6 +373,8 @@ var as_table_root_default = /* @__PURE__ */ defineComponent({
|
|
|
386
373
|
closeFilterDialog: unref(state).closeFilterDialog,
|
|
387
374
|
setFieldFilter: unref(state).setFieldFilter,
|
|
388
375
|
removeFieldFilter: unref(state).removeFieldFilter,
|
|
376
|
+
setResidualFilters: unref(state).setResidualFilters,
|
|
377
|
+
removeResidualFilter: unref(state).removeResidualFilter,
|
|
389
378
|
addFilterField: unref(state).addFilterField,
|
|
390
379
|
removeFilterField: unref(state).removeFilterField,
|
|
391
380
|
actions: unref(state).actions,
|
|
@@ -1,28 +1,10 @@
|
|
|
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-pF_9gnTG.cjs");
|
|
2
|
+
const require_use_table = require("./use-table-B45WZLwg.cjs");
|
|
3
|
+
const require_use_table_nav_bridge = require("./use-table-nav-bridge-DvrsPanF.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-a736BLOm.cjs");
|
|
6
6
|
let vue = require("vue");
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* `true` outside a production build — the gate for authoring-time warnings, so
|
|
10
|
-
* their strings and checks cost a shipped app nothing.
|
|
11
|
-
*
|
|
12
|
-
* Read from `process.env.NODE_ENV` rather than `import.meta.env`: bundlers
|
|
13
|
-
* replace this expression with a literal in both the ESM and the CJS output,
|
|
14
|
-
* while `import.meta` only exists in the former. Where neither a bundler nor a
|
|
15
|
-
* `process` shim is present the read throws — warnings stay on, which is the
|
|
16
|
-
* safe side of the trade.
|
|
17
|
-
*/
|
|
18
|
-
function detectDev() {
|
|
19
|
-
try {
|
|
20
|
-
return process.env.NODE_ENV !== "production";
|
|
21
|
-
} catch {
|
|
22
|
-
return true;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
const DEV = detectDev();
|
|
7
|
+
let _atscript_ui_table = require("@atscript/ui-table");
|
|
26
8
|
//#endregion
|
|
27
9
|
//#region src/components/as-table-root.vue
|
|
28
10
|
var as_table_root_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
@@ -181,7 +163,11 @@ var as_table_root_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
181
163
|
},
|
|
182
164
|
"urlQueryModifiers": {}
|
|
183
165
|
}),
|
|
184
|
-
emits: /* @__PURE__ */ (0, vue.mergeModels)([
|
|
166
|
+
emits: /* @__PURE__ */ (0, vue.mergeModels)([
|
|
167
|
+
"main-action",
|
|
168
|
+
"action",
|
|
169
|
+
"unsupported-filter"
|
|
170
|
+
], [
|
|
185
171
|
"update:filterFields",
|
|
186
172
|
"update:columnNames",
|
|
187
173
|
"update:columnWidths",
|
|
@@ -232,7 +218,7 @@ var as_table_root_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
232
218
|
* Features that need a client are inert here and warned about once.
|
|
233
219
|
*/
|
|
234
220
|
function createLocalState() {
|
|
235
|
-
if (DEV) {
|
|
221
|
+
if (_atscript_ui_table.DEV) {
|
|
236
222
|
if (props.url) console.warn("[vue-table] <AsTableRoot>: :rows is set, so :url is ignored (local mode).");
|
|
237
223
|
if (props.preset) console.warn("[vue-table] <AsTableRoot>: presets need a server and are off in local mode.");
|
|
238
224
|
if (urlQueryActive) console.warn("[vue-table] <AsTableRoot>: v-model:urlQuery is not wired in local mode.");
|
|
@@ -272,6 +258,7 @@ var as_table_root_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
272
258
|
(0, vue.watch)(() => props.rows, () => localState.query({ silent: true }));
|
|
273
259
|
return localState;
|
|
274
260
|
}
|
|
261
|
+
const hasUnsupportedFilterListener = require_use_has_emit_listener.useHasEmitListener("onUnsupportedFilter");
|
|
275
262
|
const state = localMode ? createLocalState() : require_use_table.useTable(props.url, {
|
|
276
263
|
limit: props.limit,
|
|
277
264
|
rowValueFn: props.rowValueFn,
|
|
@@ -304,6 +291,7 @@ var as_table_root_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
304
291
|
urlQueryReady: urlQueryActive ? urlQueryReady : void 0,
|
|
305
292
|
onUrlQueryChange: urlQueryActive ? (s) => urlQuery.value = s : void 0,
|
|
306
293
|
urlQuerySync: props.urlQuerySync,
|
|
294
|
+
onUnsupportedFilter: (issue) => hasUnsupportedFilterListener.value ? emit("unsupported-filter", issue) : require_use_table_state.warnUnsupportedFilter(issue),
|
|
307
295
|
preset: props.preset,
|
|
308
296
|
displayColumns: props.displayColumns
|
|
309
297
|
});
|
|
@@ -311,7 +299,7 @@ var as_table_root_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
311
299
|
state.rowActions.value = value;
|
|
312
300
|
}, { immediate: true });
|
|
313
301
|
if (urlQueryActive && !localMode) {
|
|
314
|
-
let lastSeenQuery
|
|
302
|
+
let lastSeenQuery;
|
|
315
303
|
(0, vue.watch)([
|
|
316
304
|
() => state.tableDef.value,
|
|
317
305
|
() => urlQuery.value,
|
|
@@ -319,11 +307,9 @@ var as_table_root_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
319
307
|
], ([def, q, presetReady]) => {
|
|
320
308
|
if (def === null || !presetReady) return;
|
|
321
309
|
const query = typeof q === "string" ? q : "";
|
|
322
|
-
if (
|
|
323
|
-
if (query !== "") state.applyUrlQuery(query, { mode: "merge" });
|
|
324
|
-
urlQueryReady.value = true;
|
|
325
|
-
} else if (query !== lastSeenQuery) state.applyUrlQuery(query, { mode: "replace" });
|
|
310
|
+
if (query !== lastSeenQuery) state.applyUrlQuery(query);
|
|
326
311
|
lastSeenQuery = query;
|
|
312
|
+
urlQueryReady.value = true;
|
|
327
313
|
}, { immediate: true });
|
|
328
314
|
}
|
|
329
315
|
require_use_table_state.useRegisterMainActionListener(state, (req) => emit("main-action", req.row, req.absIndex, req.event), require_use_has_emit_listener.useHasEmitListener("onMainAction"));
|
|
@@ -363,6 +349,7 @@ var as_table_root_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
363
349
|
columns: (0, vue.unref)(state).columns.value,
|
|
364
350
|
filterFields: (0, vue.unref)(state).filterFields.value,
|
|
365
351
|
filters: (0, vue.unref)(state).filters.value,
|
|
352
|
+
residualFilters: (0, vue.unref)(state).residualFilters.value,
|
|
366
353
|
sorters: (0, vue.unref)(state).sorters.value,
|
|
367
354
|
results: (0, vue.unref)(state).results.value,
|
|
368
355
|
querying: (0, vue.unref)(state).querying.value,
|
|
@@ -386,6 +373,8 @@ var as_table_root_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
386
373
|
closeFilterDialog: (0, vue.unref)(state).closeFilterDialog,
|
|
387
374
|
setFieldFilter: (0, vue.unref)(state).setFieldFilter,
|
|
388
375
|
removeFieldFilter: (0, vue.unref)(state).removeFieldFilter,
|
|
376
|
+
setResidualFilters: (0, vue.unref)(state).setResidualFilters,
|
|
377
|
+
removeResidualFilter: (0, vue.unref)(state).removeResidualFilter,
|
|
389
378
|
addFilterField: (0, vue.unref)(state).addFilterField,
|
|
390
379
|
removeFilterField: (0, vue.unref)(state).removeFilterField,
|
|
391
380
|
actions: (0, vue.unref)(state).actions,
|
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-_58hdHAi.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-D8hH1xGK.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-DpPRMy3v.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-CG7bLzcQ.mjs";
|
|
2
2
|
export { as_table_root_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as TAsTableControls, E as TableNavBridge, S as TAsCellTypeComponents, T as TableActionsState, a as ConfirmOptions, d as PresetConfig, h as RowActionsConfig, p as ReactiveTableState, t as ActionResult, u as NavKeyOptions, w as TVueTableActionInfo } from "./types-
|
|
1
|
+
import { C as TAsTableControls, E as TableNavBridge, S as TAsCellTypeComponents, T as TableActionsState, a as ConfirmOptions, d as PresetConfig, h as RowActionsConfig, p as ReactiveTableState, t as ActionResult, u as NavKeyOptions, w as TVueTableActionInfo } from "./types-BCixOa8x.cjs";
|
|
2
2
|
import * as vue from "vue";
|
|
3
3
|
import { AllowedComponentProps, AnchorHTMLAttributes, App, Component as Component$1, ComponentCustomProps, ComponentPublicInstance, ComputedRef, DefineComponent, InjectionKey, MaybeRef, MaybeRefOrGetter, Ref, ShallowRef, UnwrapRef, VNode, VNodeProps, WritableComputedRef } from "vue";
|
|
4
4
|
import { Client, PageResult } from "@atscript/db-client";
|
|
@@ -6,7 +6,7 @@ import { FilterExpr, Uniquery } from "@uniqu/core";
|
|
|
6
6
|
import * as _atscript_ui0 from "@atscript/ui";
|
|
7
7
|
import { ClientFactory, ClientFactory as ClientFactory$1, ColumnDef, SortControl, TableDef, getDefaultClientFactory, resetDefaultClientFactory, setDefaultClientFactory } from "@atscript/ui";
|
|
8
8
|
import * as _atscript_ui_table0 from "@atscript/ui-table";
|
|
9
|
-
import { AppConfData, AppConfData as AppConfData$1, AsPresetEntryRow, AsPresetEntryRow as AsPresetEntryRow$1, ColumnWidthsMap, CsvOptions, CsvOptions as CsvOptions$1, DisplayColumnDef, DisplayColumnDef as DisplayColumnDef$1, ExportAbortError, ExportScalar, ExportScalar as ExportScalar$1, FilterCondition, PRESET_ASPECTS, PresetAspect, PresetAspect as PresetAspect$1, PresetCapabilities, PresetCapabilities as PresetCapabilities$1, PresetData, PresetDraft, PresetSnapshot, PresetSnapshot as PresetSnapshot$1, PresetSnapshotWire, QueryOptions, STANDARD_PRESET_ID, SYSTEM_PRESET_PREFIX, SelectionMode, SystemPreset, SystemPreset as SystemPreset$1, SystemPresetInput, SystemPresetInput as SystemPresetInput$1, UrlQuerySync, UrlQuerySync as UrlQuerySync$1, UserConfData, isSystemPresetId, resolveSystemPresets } from "@atscript/ui-table";
|
|
9
|
+
import { AppConfData, AppConfData as AppConfData$1, AsPresetEntryRow, AsPresetEntryRow as AsPresetEntryRow$1, ColumnWidthsMap, CsvOptions, CsvOptions as CsvOptions$1, DisplayColumnDef, DisplayColumnDef as DisplayColumnDef$1, ExportAbortError, ExportScalar, ExportScalar as ExportScalar$1, FilterCondition, PRESET_ASPECTS, PresetAspect, PresetAspect as PresetAspect$1, PresetCapabilities, PresetCapabilities as PresetCapabilities$1, PresetData, PresetDraft, PresetSnapshot, PresetSnapshot as PresetSnapshot$1, PresetSnapshotWire, QueryOptions, STANDARD_PRESET_ID, SYSTEM_PRESET_PREFIX, SelectionMode, SystemPreset, SystemPreset as SystemPreset$1, SystemPresetInput, SystemPresetInput as SystemPresetInput$1, UnsupportedFilter, UrlQuerySync, UrlQuerySync as UrlQuerySync$1, UserConfData, isSystemPresetId, resolveSystemPresets } from "@atscript/ui-table";
|
|
10
10
|
import { TAsTypeComponents } from "@atscript/vue-form";
|
|
11
11
|
|
|
12
12
|
//#region src/composables/state/create-selection.d.ts
|
|
@@ -278,6 +278,18 @@ interface TableQueryOptions {
|
|
|
278
278
|
* behaviour). Static — captured at setup; to change sync, re-mount.
|
|
279
279
|
*/
|
|
280
280
|
urlQuerySync?: UrlQuerySync;
|
|
281
|
+
/**
|
|
282
|
+
* Receives each piece of a restored URL's filter that field filters cannot
|
|
283
|
+
* express (a cross-field OR, an unknown operator, …) and that was left out
|
|
284
|
+
* of the restored state — the table then shows a broader result than the
|
|
285
|
+
* link described. When omitted, each one is reported with a dev-mode
|
|
286
|
+
* `console.warn`. Since 0.1.139.
|
|
287
|
+
*
|
|
288
|
+
* Since 0.1.140 such pieces are carried as `residualFilters` instead
|
|
289
|
+
* whenever every field they reference is a server-backed column (and
|
|
290
|
+
* `urlQuerySync.residual` is not `false`); only the rest are reported.
|
|
291
|
+
*/
|
|
292
|
+
onUnsupportedFilter?: (issue: UnsupportedFilter) => void;
|
|
281
293
|
}
|
|
282
294
|
interface TableWindowOptions {
|
|
283
295
|
/** Page-alignment unit for `loadRange` and the `queryNext` extension. */
|
|
@@ -543,6 +555,12 @@ interface UseTableOptions {
|
|
|
543
555
|
* Default (omitted): full sync.
|
|
544
556
|
*/
|
|
545
557
|
urlQuerySync?: UrlQuerySync;
|
|
558
|
+
/**
|
|
559
|
+
* Receives each piece of a restored URL's filter that was left out because
|
|
560
|
+
* field filters cannot express it — see `TableQueryOptions.onUnsupportedFilter`.
|
|
561
|
+
* Since 0.1.139.
|
|
562
|
+
*/
|
|
563
|
+
onUnsupportedFilter?: (issue: UnsupportedFilter) => void;
|
|
546
564
|
/**
|
|
547
565
|
* Preset feature config — opt-in. Omit to disable presets entirely
|
|
548
566
|
* (`<AsPresetPicker>` / `<AsPresetDialog>` render nothing). When set,
|
|
@@ -2176,7 +2194,8 @@ interface UseTableUrlQueryOptions {
|
|
|
2176
2194
|
* write therefore agree in both directions: a key the parser ignores (a host
|
|
2177
2195
|
* flag, an unrecognised `$control`) is never removed, and a key the parser
|
|
2178
2196
|
* reads is the bridge's to remove. Every write merges into the current
|
|
2179
|
-
* `route.query
|
|
2197
|
+
* `route.query`: foreign keys stay where they are, the table's own keys are
|
|
2198
|
+
* written as one block in the table's order.
|
|
2180
2199
|
*
|
|
2181
2200
|
* Without a `prefix` the bridge cannot tell a plain `field=value` filter from
|
|
2182
2201
|
* a page-owned flag of the same shape, so a plain key that was already in the
|
|
@@ -2482,6 +2501,7 @@ declare var __VLS_1: {
|
|
|
2482
2501
|
columns: ColumnDef[];
|
|
2483
2502
|
filterFields: string[];
|
|
2484
2503
|
filters: _atscript_ui_table0.FieldFilters;
|
|
2504
|
+
residualFilters: FilterExpr[];
|
|
2485
2505
|
sorters: SortControl[];
|
|
2486
2506
|
results: Record<string, unknown>[];
|
|
2487
2507
|
querying: boolean;
|
|
@@ -2505,6 +2525,8 @@ declare var __VLS_1: {
|
|
|
2505
2525
|
closeFilterDialog: () => void;
|
|
2506
2526
|
setFieldFilter: (path: string, conditions: _atscript_ui_table0.FilterCondition[]) => void;
|
|
2507
2527
|
removeFieldFilter: (path: string) => void;
|
|
2528
|
+
setResidualFilters: (exprs: FilterExpr[]) => void;
|
|
2529
|
+
removeResidualFilter: (index: number) => void;
|
|
2508
2530
|
addFilterField: (path: string) => void;
|
|
2509
2531
|
removeFilterField: (path: string) => void;
|
|
2510
2532
|
actions: TableActionsState;
|
|
@@ -2525,11 +2547,12 @@ declare const __VLS_base: vue.DefineComponent<__VLS_PublicProps, {
|
|
|
2525
2547
|
"update:selectedRows": (value: unknown[]) => any;
|
|
2526
2548
|
"update:urlQuery": (value: string | undefined) => any;
|
|
2527
2549
|
} & {
|
|
2528
|
-
action: (action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any;
|
|
2529
2550
|
"main-action": (row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any;
|
|
2551
|
+
"unsupported-filter": (issue: UnsupportedFilter) => any;
|
|
2552
|
+
action: (action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any;
|
|
2530
2553
|
}, string, vue.PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
2531
|
-
onAction?: ((action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any) | undefined;
|
|
2532
2554
|
"onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any) | undefined;
|
|
2555
|
+
"onUnsupported-filter"?: ((issue: UnsupportedFilter) => any) | undefined;
|
|
2533
2556
|
"onUpdate:filterFields"?: ((value: string[]) => any) | undefined;
|
|
2534
2557
|
"onUpdate:columnNames"?: ((value: string[]) => any) | undefined;
|
|
2535
2558
|
"onUpdate:columnWidths"?: ((value: ColumnWidthsMap) => any) | undefined;
|
|
@@ -2537,6 +2560,7 @@ declare const __VLS_base: vue.DefineComponent<__VLS_PublicProps, {
|
|
|
2537
2560
|
"onUpdate:ignoreSortersWhenSearched"?: ((value: boolean) => any) | undefined;
|
|
2538
2561
|
"onUpdate:selectedRows"?: ((value: unknown[]) => any) | undefined;
|
|
2539
2562
|
"onUpdate:urlQuery"?: ((value: string | undefined) => any) | undefined;
|
|
2563
|
+
onAction?: ((action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any) | undefined;
|
|
2540
2564
|
}>, {
|
|
2541
2565
|
localSort: boolean;
|
|
2542
2566
|
queryOnMount: boolean;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { C as TAsTableControls, E as TableNavBridge, S as TAsCellTypeComponents, T as TableActionsState, a as ConfirmOptions, d as PresetConfig, h as RowActionsConfig, p as ReactiveTableState, t as ActionResult, u as NavKeyOptions, w as TVueTableActionInfo } from "./types-
|
|
1
|
+
import { C as TAsTableControls, E as TableNavBridge, S as TAsCellTypeComponents, T as TableActionsState, a as ConfirmOptions, d as PresetConfig, h as RowActionsConfig, p as ReactiveTableState, t as ActionResult, u as NavKeyOptions, w as TVueTableActionInfo } from "./types-D7qVxU_y.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";
|
|
5
5
|
import { AllowedComponentProps, AnchorHTMLAttributes, App, Component as Component$1, ComponentCustomProps, ComponentPublicInstance, ComputedRef, DefineComponent, InjectionKey, MaybeRef, MaybeRefOrGetter, Ref, ShallowRef, UnwrapRef, VNode, VNodeProps, WritableComputedRef } from "vue";
|
|
6
6
|
import * as _atscript_ui_table0 from "@atscript/ui-table";
|
|
7
|
-
import { AppConfData, AppConfData as AppConfData$1, AsPresetEntryRow, AsPresetEntryRow as AsPresetEntryRow$1, ColumnWidthsMap, CsvOptions, CsvOptions as CsvOptions$1, DisplayColumnDef, DisplayColumnDef as DisplayColumnDef$1, ExportAbortError, ExportScalar, ExportScalar as ExportScalar$1, FilterCondition, PRESET_ASPECTS, PresetAspect, PresetAspect as PresetAspect$1, PresetCapabilities, PresetCapabilities as PresetCapabilities$1, PresetData, PresetDraft, PresetSnapshot, PresetSnapshot as PresetSnapshot$1, PresetSnapshotWire, QueryOptions, STANDARD_PRESET_ID as STANDARD_PRESET_ID$1, SYSTEM_PRESET_PREFIX, SelectionMode, SystemPreset, SystemPreset as SystemPreset$1, SystemPresetInput, SystemPresetInput as SystemPresetInput$1, UrlQuerySync, UrlQuerySync as UrlQuerySync$1, UserConfData, isSystemPresetId as isSystemPresetId$1, resolveSystemPresets as resolveSystemPresets$1 } from "@atscript/ui-table";
|
|
7
|
+
import { AppConfData, AppConfData as AppConfData$1, AsPresetEntryRow, AsPresetEntryRow as AsPresetEntryRow$1, ColumnWidthsMap, CsvOptions, CsvOptions as CsvOptions$1, DisplayColumnDef, DisplayColumnDef as DisplayColumnDef$1, ExportAbortError, ExportScalar, ExportScalar as ExportScalar$1, FilterCondition, PRESET_ASPECTS, PresetAspect, PresetAspect as PresetAspect$1, PresetCapabilities, PresetCapabilities as PresetCapabilities$1, PresetData, PresetDraft, PresetSnapshot, PresetSnapshot as PresetSnapshot$1, PresetSnapshotWire, QueryOptions, STANDARD_PRESET_ID as STANDARD_PRESET_ID$1, SYSTEM_PRESET_PREFIX, SelectionMode, SystemPreset, SystemPreset as SystemPreset$1, SystemPresetInput, SystemPresetInput as SystemPresetInput$1, UnsupportedFilter, UrlQuerySync, UrlQuerySync as UrlQuerySync$1, UserConfData, isSystemPresetId as isSystemPresetId$1, resolveSystemPresets as resolveSystemPresets$1 } from "@atscript/ui-table";
|
|
8
8
|
import { Client, PageResult } from "@atscript/db-client";
|
|
9
9
|
import { TAsTypeComponents } from "@atscript/vue-form";
|
|
10
10
|
import { FilterExpr, Uniquery } from "@uniqu/core";
|
|
@@ -278,6 +278,18 @@ interface TableQueryOptions {
|
|
|
278
278
|
* behaviour). Static — captured at setup; to change sync, re-mount.
|
|
279
279
|
*/
|
|
280
280
|
urlQuerySync?: UrlQuerySync;
|
|
281
|
+
/**
|
|
282
|
+
* Receives each piece of a restored URL's filter that field filters cannot
|
|
283
|
+
* express (a cross-field OR, an unknown operator, …) and that was left out
|
|
284
|
+
* of the restored state — the table then shows a broader result than the
|
|
285
|
+
* link described. When omitted, each one is reported with a dev-mode
|
|
286
|
+
* `console.warn`. Since 0.1.139.
|
|
287
|
+
*
|
|
288
|
+
* Since 0.1.140 such pieces are carried as `residualFilters` instead
|
|
289
|
+
* whenever every field they reference is a server-backed column (and
|
|
290
|
+
* `urlQuerySync.residual` is not `false`); only the rest are reported.
|
|
291
|
+
*/
|
|
292
|
+
onUnsupportedFilter?: (issue: UnsupportedFilter) => void;
|
|
281
293
|
}
|
|
282
294
|
interface TableWindowOptions {
|
|
283
295
|
/** Page-alignment unit for `loadRange` and the `queryNext` extension. */
|
|
@@ -543,6 +555,12 @@ interface UseTableOptions {
|
|
|
543
555
|
* Default (omitted): full sync.
|
|
544
556
|
*/
|
|
545
557
|
urlQuerySync?: UrlQuerySync;
|
|
558
|
+
/**
|
|
559
|
+
* Receives each piece of a restored URL's filter that was left out because
|
|
560
|
+
* field filters cannot express it — see `TableQueryOptions.onUnsupportedFilter`.
|
|
561
|
+
* Since 0.1.139.
|
|
562
|
+
*/
|
|
563
|
+
onUnsupportedFilter?: (issue: UnsupportedFilter) => void;
|
|
546
564
|
/**
|
|
547
565
|
* Preset feature config — opt-in. Omit to disable presets entirely
|
|
548
566
|
* (`<AsPresetPicker>` / `<AsPresetDialog>` render nothing). When set,
|
|
@@ -2176,7 +2194,8 @@ interface UseTableUrlQueryOptions {
|
|
|
2176
2194
|
* write therefore agree in both directions: a key the parser ignores (a host
|
|
2177
2195
|
* flag, an unrecognised `$control`) is never removed, and a key the parser
|
|
2178
2196
|
* reads is the bridge's to remove. Every write merges into the current
|
|
2179
|
-
* `route.query
|
|
2197
|
+
* `route.query`: foreign keys stay where they are, the table's own keys are
|
|
2198
|
+
* written as one block in the table's order.
|
|
2180
2199
|
*
|
|
2181
2200
|
* Without a `prefix` the bridge cannot tell a plain `field=value` filter from
|
|
2182
2201
|
* a page-owned flag of the same shape, so a plain key that was already in the
|
|
@@ -2482,6 +2501,7 @@ declare var __VLS_1: {
|
|
|
2482
2501
|
columns: ColumnDef[];
|
|
2483
2502
|
filterFields: string[];
|
|
2484
2503
|
filters: _atscript_ui_table0.FieldFilters;
|
|
2504
|
+
residualFilters: FilterExpr[];
|
|
2485
2505
|
sorters: SortControl[];
|
|
2486
2506
|
results: Record<string, unknown>[];
|
|
2487
2507
|
querying: boolean;
|
|
@@ -2505,6 +2525,8 @@ declare var __VLS_1: {
|
|
|
2505
2525
|
closeFilterDialog: () => void;
|
|
2506
2526
|
setFieldFilter: (path: string, conditions: _atscript_ui_table0.FilterCondition[]) => void;
|
|
2507
2527
|
removeFieldFilter: (path: string) => void;
|
|
2528
|
+
setResidualFilters: (exprs: FilterExpr[]) => void;
|
|
2529
|
+
removeResidualFilter: (index: number) => void;
|
|
2508
2530
|
addFilterField: (path: string) => void;
|
|
2509
2531
|
removeFilterField: (path: string) => void;
|
|
2510
2532
|
actions: TableActionsState;
|
|
@@ -2525,11 +2547,12 @@ declare const __VLS_base: vue.DefineComponent<__VLS_PublicProps, {
|
|
|
2525
2547
|
"update:selectedRows": (value: unknown[]) => any;
|
|
2526
2548
|
"update:urlQuery": (value: string | undefined) => any;
|
|
2527
2549
|
} & {
|
|
2528
|
-
action: (action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any;
|
|
2529
2550
|
"main-action": (row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any;
|
|
2551
|
+
"unsupported-filter": (issue: UnsupportedFilter) => any;
|
|
2552
|
+
action: (action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any;
|
|
2530
2553
|
}, string, vue.PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
2531
|
-
onAction?: ((action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any) | undefined;
|
|
2532
2554
|
"onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any) | undefined;
|
|
2555
|
+
"onUnsupported-filter"?: ((issue: UnsupportedFilter) => any) | undefined;
|
|
2533
2556
|
"onUpdate:filterFields"?: ((value: string[]) => any) | undefined;
|
|
2534
2557
|
"onUpdate:columnNames"?: ((value: string[]) => any) | undefined;
|
|
2535
2558
|
"onUpdate:columnWidths"?: ((value: ColumnWidthsMap) => any) | undefined;
|
|
@@ -2537,6 +2560,7 @@ declare const __VLS_base: vue.DefineComponent<__VLS_PublicProps, {
|
|
|
2537
2560
|
"onUpdate:ignoreSortersWhenSearched"?: ((value: boolean) => any) | undefined;
|
|
2538
2561
|
"onUpdate:selectedRows"?: ((value: unknown[]) => any) | undefined;
|
|
2539
2562
|
"onUpdate:urlQuery"?: ((value: string | undefined) => any) | undefined;
|
|
2563
|
+
onAction?: ((action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any) | undefined;
|
|
2540
2564
|
}>, {
|
|
2541
2565
|
localSort: boolean;
|
|
2542
2566
|
queryOnMount: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { o as useTableContextOptional } from "./use-table-state-
|
|
2
|
-
import { t as useTableComponent } from "./use-table-component-
|
|
3
|
-
import { t as as_table_header_cell_default } from "./as-table-header-cell-
|
|
4
|
-
import { t as as_row_actions_default } from "./as-row-actions-
|
|
5
|
-
import { t as as_table_cell_value_default } from "./as-table-cell-value-
|
|
1
|
+
import { o as useTableContextOptional } from "./use-table-state-BzjbnpBA.mjs";
|
|
2
|
+
import { t as useTableComponent } from "./use-table-component-BYO0zMQj.mjs";
|
|
3
|
+
import { t as as_table_header_cell_default } from "./as-table-header-cell-Ccf06b2_.mjs";
|
|
4
|
+
import { t as as_row_actions_default } from "./as-row-actions-xQ9M1PrO.mjs";
|
|
5
|
+
import { t as as_table_cell_value_default } from "./as-table-cell-value-DoH8Mieo.mjs";
|
|
6
6
|
import { UI_TABLE_ATTR, UI_TABLE_CLASSES, UI_TABLE_FN_ATTR, UI_TABLE_FN_CLASSES, UI_TABLE_FN_STYLES, UI_TABLE_STYLES, getFieldMeta, parseStaticAttrs, resolveAttrs, resolveFieldProp } from "@atscript/ui";
|
|
7
7
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, normalizeClass, normalizeStyle, onBeforeUnmount, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, unref, withModifiers } from "vue";
|
|
8
8
|
//#region src/composables/use-cell-resolver.ts
|