@atscript/vue-table 0.1.111 → 0.1.113
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-B6rWBo5O.cjs → as-action-menu-content-C7n_dJx0.cjs} +63 -7
- package/dist/{as-action-menu-content-CXG6BhWe.mjs → as-action-menu-content-CWmWeQam.mjs} +63 -7
- package/dist/as-column-menu.d.cts +1 -1
- package/dist/as-column-menu.d.mts +1 -1
- package/dist/{as-column-menu.vue-DZawdGvY.d.cts → as-column-menu.vue-DL5N9mKR.d.mts} +2 -2
- package/dist/{as-column-menu.vue-csCNmAYR.d.mts → as-column-menu.vue-u_DNy3f-.d.cts} +2 -2
- package/dist/{as-config-dialog-DAqSy8zx.mjs → as-config-dialog-0e-az0nn.mjs} +2 -2
- package/dist/{as-config-dialog-DKYI4uQ0.cjs → as-config-dialog-B6MFmBRW.cjs} +2 -2
- package/dist/as-config-dialog.cjs +1 -1
- package/dist/as-config-dialog.mjs +1 -1
- package/dist/{as-confirm-dialog-BqvOf3yo.cjs → as-confirm-dialog-CYiLQUP-.cjs} +1 -1
- package/dist/{as-confirm-dialog-B1zuisFu.mjs → as-confirm-dialog-DlZzfASO.mjs} +1 -1
- package/dist/as-confirm-dialog.cjs +1 -1
- package/dist/as-confirm-dialog.mjs +1 -1
- package/dist/{as-filter-dialog-BIj0ABzy.mjs → as-filter-dialog-Bole60UC.mjs} +7 -7
- package/dist/{as-filter-dialog-PBy9IDBz.cjs → as-filter-dialog-OiRuTYfh.cjs} +7 -7
- package/dist/as-filter-dialog.cjs +1 -1
- package/dist/as-filter-dialog.mjs +1 -1
- package/dist/{as-filter-field-BHPZtUwd.cjs → as-filter-field-iJbKFVSw.cjs} +3 -3
- package/dist/{as-filter-field-9mG-alNU.mjs → as-filter-field-xzcm2aGE.mjs} +3 -3
- package/dist/as-filter-field.cjs +1 -1
- package/dist/as-filter-field.mjs +1 -1
- package/dist/{as-filters-BSQ3nugx.mjs → as-filters-CGRd9vX0.mjs} +3 -3
- package/dist/{as-filters-7oIkmDHI.cjs → as-filters-DfkxKGNU.cjs} +3 -3
- package/dist/as-filters.cjs +1 -1
- package/dist/as-filters.mjs +1 -1
- package/dist/{as-preset-dialog-CuWw5fuN.mjs → as-preset-dialog-BbnwfYzC.mjs} +1 -1
- package/dist/{as-preset-dialog-BXO1O1q0.cjs → as-preset-dialog-D77Dg9ll.cjs} +1 -1
- package/dist/as-preset-dialog.cjs +1 -1
- package/dist/as-preset-dialog.mjs +1 -1
- package/dist/{as-preset-picker-CyBbOnBS.mjs → as-preset-picker-Bwr3kM4o.mjs} +1 -1
- package/dist/{as-preset-picker-BBkjl0fs.cjs → as-preset-picker-Divz_1ZG.cjs} +1 -1
- package/dist/as-preset-picker.cjs +1 -1
- package/dist/as-preset-picker.mjs +1 -1
- package/dist/{as-row-actions-DIpn-EYD.mjs → as-row-actions-CBVF6B2-.mjs} +55 -28
- package/dist/{as-row-actions-BoOAXAeW.cjs → as-row-actions-DC6-kpsJ.cjs} +54 -27
- package/dist/as-row-actions.cjs +1 -1
- package/dist/as-row-actions.mjs +1 -1
- package/dist/{as-table-QkKHAIh6.mjs → as-table-DQwYi63u.mjs} +2 -2
- package/dist/{as-table-C3Li7WTI.cjs → as-table-DaT2K-7n.cjs} +2 -2
- package/dist/{as-table-actions-Cd7KoTEK.cjs → as-table-actions-CEhZXH97.cjs} +48 -19
- package/dist/{as-table-actions-DQ3xaFXJ.mjs → as-table-actions-ChR9MGQt.mjs} +49 -20
- 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-DW-zOVP0.d.cts → as-table-actions.vue-DTGYOsZh.d.mts} +6 -6
- package/dist/{as-table-actions.vue-CTC9xl5i.d.mts → as-table-actions.vue-WXkllHVw.d.cts} +6 -6
- package/dist/{as-table-base-DImVUSKt.cjs → as-table-base-1uBBmFuL.cjs} +2 -2
- package/dist/{as-table-base-D4Otzbe4.mjs → as-table-base-DOvVedJg.mjs} +2 -2
- package/dist/{as-table-header-cell-BEwpWr4m.cjs → as-table-header-cell-DD6Tw87_.cjs} +1 -1
- package/dist/{as-table-header-cell-mCOAZsjL.mjs → as-table-header-cell-DfjfNeq4.mjs} +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-DsVfhlk3.d.mts → as-table-header-cell.vue-BCszzxtU.d.mts} +1 -1
- package/dist/{as-table-header-cell.vue-jvtDmqhR.d.cts → as-table-header-cell.vue-BzTzfGRo.d.cts} +1 -1
- package/dist/{as-table-root-BQNXfIvB.mjs → as-table-root-BSbO16CM.mjs} +25 -4
- package/dist/{as-table-root-BNJ1yqaD.cjs → as-table-root-BnW1SL4W.cjs} +25 -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-DFCZwH1h.d.cts → as-table-root.vue-DRv85M1N.d.cts} +58 -2
- package/dist/{as-table-root.vue-C5IrebWr.d.mts → as-table-root.vue-TUauKr31.d.mts} +58 -2
- package/dist/{as-table-status-C3A1WYwb.cjs → as-table-status-2eUIHBmk.cjs} +4 -4
- package/dist/{as-table-status-CxkiQ_EE.mjs → as-table-status-Dy3rA0T-.mjs} +4 -4
- 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-CAydq1n0.d.mts → as-table.vue-B2ywpIo_.d.mts} +7 -7
- package/dist/{as-table.vue-COtIbUsp.d.cts → as-table.vue-Co8kYS_o.d.cts} +7 -7
- package/dist/{as-window-table-DONQh4nM.mjs → as-window-table-B9k_nv4c.mjs} +2 -2
- package/dist/{as-window-table-BBtgpJ1h.cjs → as-window-table-iwpsLq0K.cjs} +2 -2
- 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-BycvdZ82.d.mts → as-window-table.vue-0ykWW1_K.d.mts} +6 -6
- package/dist/{as-window-table.vue-iLK4PSW_.d.cts → as-window-table.vue-DajUEg5q.d.cts} +6 -6
- package/dist/index.cjs +17 -17
- package/dist/index.d.cts +7 -7
- package/dist/index.d.mts +7 -7
- package/dist/index.mjs +17 -17
- package/dist/{types-BMvxn9iU.d.mts → types-ByU4O0Yf.d.mts} +18 -0
- package/dist/{types-CDJmLD-E.d.cts → types-CTMxE_zA.d.cts} +18 -0
- package/dist/{use-table-CaegBdPZ.cjs → use-table-BWgcmQS7.cjs} +5 -2
- package/dist/{use-table-CGxkBszK.mjs → use-table-DHN_frAf.mjs} +5 -2
- package/dist/{use-table-component-ClgvnuRH.mjs → use-table-component-Bu7CIG5I.mjs} +1 -1
- package/dist/{use-table-component-D-1kzctZ.cjs → use-table-component-QDcfYIBU.cjs} +1 -1
- package/dist/{use-table-nav-bridge-bZIH2d6Y.cjs → use-table-nav-bridge-BlqeY53w.cjs} +1 -1
- package/dist/{use-table-nav-bridge-C3gqHOIa.mjs → use-table-nav-bridge-CVO5_ttZ.mjs} +1 -1
- package/dist/{use-table-state-152Ejpyo.cjs → use-table-state-CElgF_iy.cjs} +139 -5
- package/dist/{use-table-state-BHAwfUKw.mjs → use-table-state-Dju5bxt8.mjs} +116 -6
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as TVueTableActionInfo } from "./types-
|
|
1
|
+
import { h as TVueTableActionInfo } from "./types-CTMxE_zA.cjs";
|
|
2
2
|
import * as vue from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/as-table-actions.vue.d.ts
|
|
@@ -18,20 +18,20 @@ declare var __VLS_1: {
|
|
|
18
18
|
defaultAction: TVueTableActionInfo | undefined;
|
|
19
19
|
otherActions: TVueTableActionInfo[];
|
|
20
20
|
trailingRowActions: TVueTableActionInfo[];
|
|
21
|
-
level: "
|
|
21
|
+
level: "row" | "rows" | "table";
|
|
22
22
|
ids: Record<string, unknown>[];
|
|
23
23
|
invoke: typeof invokeWith;
|
|
24
|
-
},
|
|
24
|
+
}, __VLS_12: {
|
|
25
25
|
action: TVueTableActionInfo;
|
|
26
|
-
},
|
|
26
|
+
}, __VLS_42: {
|
|
27
27
|
action: TVueTableActionInfo;
|
|
28
28
|
};
|
|
29
29
|
type __VLS_Slots = {} & {
|
|
30
30
|
default?: (props: typeof __VLS_1) => any;
|
|
31
31
|
} & {
|
|
32
|
-
button?: (props: typeof
|
|
32
|
+
button?: (props: typeof __VLS_12) => any;
|
|
33
33
|
} & {
|
|
34
|
-
'menu-item'?: (props: typeof
|
|
34
|
+
'menu-item'?: (props: typeof __VLS_42) => any;
|
|
35
35
|
};
|
|
36
36
|
declare const __VLS_base: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
37
37
|
level: "auto" | "table" | "rows" | "row";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_use_table_state = require("./use-table-state-
|
|
1
|
+
const require_use_table_state = require("./use-table-state-CElgF_iy.cjs");
|
|
2
2
|
const require_get_cell_value = require("./get-cell-value-4rHKP-TG.cjs");
|
|
3
|
-
const require_as_table_status = require("./as-table-status-
|
|
3
|
+
const require_as_table_status = require("./as-table-status-2eUIHBmk.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,6 +1,6 @@
|
|
|
1
|
-
import { o as useTableContextOptional } from "./use-table-state-
|
|
1
|
+
import { o as useTableContextOptional } from "./use-table-state-Dju5bxt8.mjs";
|
|
2
2
|
import { t as getCellValue } from "./get-cell-value-C8LLc_Rr.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-Dy3rA0T-.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,4 +1,4 @@
|
|
|
1
|
-
const require_use_table_component = require("./use-table-component-
|
|
1
|
+
const require_use_table_component = require("./use-table-component-QDcfYIBU.cjs");
|
|
2
2
|
const require_as_column_menu = require("./as-column-menu-fZVbJ9lU.cjs");
|
|
3
3
|
let vue = require("vue");
|
|
4
4
|
let _atscript_ui_table = require("@atscript/ui-table");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as useTableComponent } from "./use-table-component-
|
|
1
|
+
import { t as useTableComponent } from "./use-table-component-Bu7CIG5I.mjs";
|
|
2
2
|
import { t as as_column_menu_default } from "./as-column-menu-kTIQfLTi.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,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-DD6Tw87_.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-BzTzfGRo.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-BCszzxtU.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-DfjfNeq4.mjs";
|
|
2
2
|
export { as_table_header_cell_default as default };
|
package/dist/{as-table-header-cell.vue-DsVfhlk3.d.mts → as-table-header-cell.vue-BCszzxtU.d.mts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ColumnMenuConfig } from "./types-
|
|
1
|
+
import { n as ColumnMenuConfig } from "./types-ByU4O0Yf.mjs";
|
|
2
2
|
import { ColumnDef } from "@atscript/ui";
|
|
3
3
|
import * as vue from "vue";
|
|
4
4
|
import { ColumnWidthEntry, FilterCondition } from "@atscript/ui-table";
|
package/dist/{as-table-header-cell.vue-jvtDmqhR.d.cts → as-table-header-cell.vue-BzTzfGRo.d.cts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as ColumnMenuConfig } from "./types-
|
|
1
|
+
import { n as ColumnMenuConfig } from "./types-CTMxE_zA.cjs";
|
|
2
2
|
import * as vue from "vue";
|
|
3
3
|
import { ColumnDef } from "@atscript/ui";
|
|
4
4
|
import { ColumnWidthEntry, FilterCondition } from "@atscript/ui-table";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { i as useRegisterMainActionListener } from "./use-table-state-
|
|
2
|
-
import { n as useTable } from "./use-table-
|
|
3
|
-
import { t as useTableNavBridge } from "./use-table-nav-bridge-
|
|
1
|
+
import { i as useRegisterMainActionListener } from "./use-table-state-Dju5bxt8.mjs";
|
|
2
|
+
import { n as useTable } from "./use-table-DHN_frAf.mjs";
|
|
3
|
+
import { t as useTableNavBridge } from "./use-table-nav-bridge-CVO5_ttZ.mjs";
|
|
4
4
|
import { t as useHasEmitListener } from "./use-has-emit-listener-BTMDIv2e.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-DlZzfASO.mjs";
|
|
6
6
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, defineAsyncComponent, defineComponent, mergeModels, openBlock, ref, renderSlot, resolveDynamicComponent, unref, useModel, watch } from "vue";
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/components/as-table-root.vue
|
|
@@ -88,6 +88,10 @@ var as_table_root_default = /* @__PURE__ */ defineComponent({
|
|
|
88
88
|
required: false,
|
|
89
89
|
default: true
|
|
90
90
|
},
|
|
91
|
+
resolveHref: {
|
|
92
|
+
type: Function,
|
|
93
|
+
required: false
|
|
94
|
+
},
|
|
91
95
|
urlQuerySync: {
|
|
92
96
|
type: Object,
|
|
93
97
|
required: false
|
|
@@ -117,6 +121,11 @@ var as_table_root_default = /* @__PURE__ */ defineComponent({
|
|
|
117
121
|
default: () => []
|
|
118
122
|
},
|
|
119
123
|
"sortersModifiers": {},
|
|
124
|
+
"ignoreSortersWhenSearched": {
|
|
125
|
+
type: Boolean,
|
|
126
|
+
default: false
|
|
127
|
+
},
|
|
128
|
+
"ignoreSortersWhenSearchedModifiers": {},
|
|
120
129
|
"selectedRows": {
|
|
121
130
|
type: Array,
|
|
122
131
|
default: () => []
|
|
@@ -133,6 +142,7 @@ var as_table_root_default = /* @__PURE__ */ defineComponent({
|
|
|
133
142
|
"update:columnNames",
|
|
134
143
|
"update:columnWidths",
|
|
135
144
|
"update:sorters",
|
|
145
|
+
"update:ignoreSortersWhenSearched",
|
|
136
146
|
"update:selectedRows",
|
|
137
147
|
"update:urlQuery"
|
|
138
148
|
]),
|
|
@@ -147,6 +157,14 @@ var as_table_root_default = /* @__PURE__ */ defineComponent({
|
|
|
147
157
|
const columnNames = useModel(__props, "columnNames");
|
|
148
158
|
const columnWidths = useModel(__props, "columnWidths");
|
|
149
159
|
const sorters = useModel(__props, "sorters");
|
|
160
|
+
/**
|
|
161
|
+
* Opt-in for relevance-ranked backends (e.g. Atlas Search): while true AND a
|
|
162
|
+
* search term is active, user sorters are omitted from the query so relevance
|
|
163
|
+
* ranking survives (`forceSorters` still apply). Usable as a plain prop
|
|
164
|
+
* (`:ignore-sorters-when-searched="true"` sets the configured default) or as
|
|
165
|
+
* `v-model:ignore-sorters-when-searched` to observe/drive the runtime flag.
|
|
166
|
+
*/
|
|
167
|
+
const ignoreSortersWhenSearched = useModel(__props, "ignoreSortersWhenSearched");
|
|
150
168
|
const selectedRows = useModel(__props, "selectedRows");
|
|
151
169
|
/**
|
|
152
170
|
* Bidirectional URL bridge bound via `v-model:url-query`. When unbound the
|
|
@@ -175,6 +193,7 @@ var as_table_root_default = /* @__PURE__ */ defineComponent({
|
|
|
175
193
|
formTypes: props.formTypes,
|
|
176
194
|
formComponents: props.formComponents,
|
|
177
195
|
refreshOnAction: () => props.refreshOnAction,
|
|
196
|
+
resolveHref: props.resolveHref,
|
|
178
197
|
onActionResolved: (action, ids, result, event) => {
|
|
179
198
|
emit("action", action, ids, result, event);
|
|
180
199
|
},
|
|
@@ -182,6 +201,7 @@ var as_table_root_default = /* @__PURE__ */ defineComponent({
|
|
|
182
201
|
columnNames,
|
|
183
202
|
columnWidths,
|
|
184
203
|
sorters,
|
|
204
|
+
ignoreSortersWhenSearched,
|
|
185
205
|
selectedRows,
|
|
186
206
|
urlQueryReady: urlQueryActive ? urlQueryReady : void 0,
|
|
187
207
|
onUrlQueryChange: urlQueryActive ? (s) => urlQuery.value = s : void 0,
|
|
@@ -245,6 +265,7 @@ var as_table_root_default = /* @__PURE__ */ defineComponent({
|
|
|
245
265
|
metadataError: unref(state).metadataError.value,
|
|
246
266
|
mustRefresh: unref(state).mustRefresh.value,
|
|
247
267
|
searchTerm: unref(state).searchTerm.value,
|
|
268
|
+
ignoreSortersWhenSearched: unref(state).ignoreSortersWhenSearched.value,
|
|
248
269
|
selectedRows: unref(state).selectedRows.value,
|
|
249
270
|
selectedCount: unref(state).selectedCount.value,
|
|
250
271
|
navBridge: unref(navBridge),
|
|
@@ -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-CElgF_iy.cjs");
|
|
2
|
+
const require_use_table = require("./use-table-BWgcmQS7.cjs");
|
|
3
|
+
const require_use_table_nav_bridge = require("./use-table-nav-bridge-BlqeY53w.cjs");
|
|
4
4
|
const require_use_has_emit_listener = require("./use-has-emit-listener-hhOH8CBI.cjs");
|
|
5
|
-
const require_as_confirm_dialog = require("./as-confirm-dialog-
|
|
5
|
+
const require_as_confirm_dialog = require("./as-confirm-dialog-CYiLQUP-.cjs");
|
|
6
6
|
let vue = require("vue");
|
|
7
7
|
//#endregion
|
|
8
8
|
//#region src/components/as-table-root.vue
|
|
@@ -88,6 +88,10 @@ var as_table_root_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
88
88
|
required: false,
|
|
89
89
|
default: true
|
|
90
90
|
},
|
|
91
|
+
resolveHref: {
|
|
92
|
+
type: Function,
|
|
93
|
+
required: false
|
|
94
|
+
},
|
|
91
95
|
urlQuerySync: {
|
|
92
96
|
type: Object,
|
|
93
97
|
required: false
|
|
@@ -117,6 +121,11 @@ var as_table_root_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
117
121
|
default: () => []
|
|
118
122
|
},
|
|
119
123
|
"sortersModifiers": {},
|
|
124
|
+
"ignoreSortersWhenSearched": {
|
|
125
|
+
type: Boolean,
|
|
126
|
+
default: false
|
|
127
|
+
},
|
|
128
|
+
"ignoreSortersWhenSearchedModifiers": {},
|
|
120
129
|
"selectedRows": {
|
|
121
130
|
type: Array,
|
|
122
131
|
default: () => []
|
|
@@ -133,6 +142,7 @@ var as_table_root_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
133
142
|
"update:columnNames",
|
|
134
143
|
"update:columnWidths",
|
|
135
144
|
"update:sorters",
|
|
145
|
+
"update:ignoreSortersWhenSearched",
|
|
136
146
|
"update:selectedRows",
|
|
137
147
|
"update:urlQuery"
|
|
138
148
|
]),
|
|
@@ -147,6 +157,14 @@ var as_table_root_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
147
157
|
const columnNames = (0, vue.useModel)(__props, "columnNames");
|
|
148
158
|
const columnWidths = (0, vue.useModel)(__props, "columnWidths");
|
|
149
159
|
const sorters = (0, vue.useModel)(__props, "sorters");
|
|
160
|
+
/**
|
|
161
|
+
* Opt-in for relevance-ranked backends (e.g. Atlas Search): while true AND a
|
|
162
|
+
* search term is active, user sorters are omitted from the query so relevance
|
|
163
|
+
* ranking survives (`forceSorters` still apply). Usable as a plain prop
|
|
164
|
+
* (`:ignore-sorters-when-searched="true"` sets the configured default) or as
|
|
165
|
+
* `v-model:ignore-sorters-when-searched` to observe/drive the runtime flag.
|
|
166
|
+
*/
|
|
167
|
+
const ignoreSortersWhenSearched = (0, vue.useModel)(__props, "ignoreSortersWhenSearched");
|
|
150
168
|
const selectedRows = (0, vue.useModel)(__props, "selectedRows");
|
|
151
169
|
/**
|
|
152
170
|
* Bidirectional URL bridge bound via `v-model:url-query`. When unbound the
|
|
@@ -175,6 +193,7 @@ var as_table_root_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
175
193
|
formTypes: props.formTypes,
|
|
176
194
|
formComponents: props.formComponents,
|
|
177
195
|
refreshOnAction: () => props.refreshOnAction,
|
|
196
|
+
resolveHref: props.resolveHref,
|
|
178
197
|
onActionResolved: (action, ids, result, event) => {
|
|
179
198
|
emit("action", action, ids, result, event);
|
|
180
199
|
},
|
|
@@ -182,6 +201,7 @@ var as_table_root_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
182
201
|
columnNames,
|
|
183
202
|
columnWidths,
|
|
184
203
|
sorters,
|
|
204
|
+
ignoreSortersWhenSearched,
|
|
185
205
|
selectedRows,
|
|
186
206
|
urlQueryReady: urlQueryActive ? urlQueryReady : void 0,
|
|
187
207
|
onUrlQueryChange: urlQueryActive ? (s) => urlQuery.value = s : void 0,
|
|
@@ -245,6 +265,7 @@ var as_table_root_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
245
265
|
metadataError: (0, vue.unref)(state).metadataError.value,
|
|
246
266
|
mustRefresh: (0, vue.unref)(state).mustRefresh.value,
|
|
247
267
|
searchTerm: (0, vue.unref)(state).searchTerm.value,
|
|
268
|
+
ignoreSortersWhenSearched: (0, vue.unref)(state).ignoreSortersWhenSearched.value,
|
|
248
269
|
selectedRows: (0, vue.unref)(state).selectedRows.value,
|
|
249
270
|
selectedCount: (0, vue.unref)(state).selectedCount.value,
|
|
250
271
|
navBridge: (0, vue.unref)(navBridge),
|
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-BnW1SL4W.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-DRv85M1N.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-TUauKr31.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-BSbO16CM.mjs";
|
|
2
2
|
export { as_table_root_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as TableNavBridge, c as NavKeyOptions, d as ReactiveTableState, g as TableActionsState, h as TVueTableActionInfo, i as ConfirmOptions, l as PresetConfig, m as TAsTableControls, p as TAsCellTypeComponents, t as ActionResult } from "./types-
|
|
1
|
+
import { _ as TableNavBridge, c as NavKeyOptions, d as ReactiveTableState, g as TableActionsState, h as TVueTableActionInfo, i as ConfirmOptions, l as PresetConfig, m as TAsTableControls, p as TAsCellTypeComponents, t as ActionResult } from "./types-CTMxE_zA.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, TDbActionInfo } from "@atscript/db-client";
|
|
@@ -192,6 +192,12 @@ interface TableModelRefs {
|
|
|
192
192
|
columnNames?: Ref<string[]>;
|
|
193
193
|
columnWidths?: Ref<ColumnWidthsMap>;
|
|
194
194
|
sorters?: Ref<SortControl[]>;
|
|
195
|
+
/**
|
|
196
|
+
* Runtime "preserve search relevance" flag (see
|
|
197
|
+
* `ReactiveTableState.ignoreSortersWhenSearched`). Its initial value is the
|
|
198
|
+
* configured default the flag resets to on every new search session.
|
|
199
|
+
*/
|
|
200
|
+
ignoreSortersWhenSearched?: Ref<boolean>;
|
|
195
201
|
}
|
|
196
202
|
type TableSelectionOptions = SelectionApiOptions;
|
|
197
203
|
interface TableQueryOptions {
|
|
@@ -208,6 +214,15 @@ interface TableQueryOptions {
|
|
|
208
214
|
alwaysSelected?: string[];
|
|
209
215
|
/** When true, all triggers (query/queryNext/loadRange) early-return. */
|
|
210
216
|
blockQuery?: boolean;
|
|
217
|
+
/**
|
|
218
|
+
* Configured default for the runtime `ignoreSortersWhenSearched` flag
|
|
219
|
+
* (default `false`). Opt-in for relevance-ranked backends: while the
|
|
220
|
+
* runtime flag is true AND a search term is active, user `sorters` are
|
|
221
|
+
* omitted from the query (`forceSorters` still apply). Ignored when a
|
|
222
|
+
* `model.ignoreSortersWhenSearched` ref is wired — the ref's initial
|
|
223
|
+
* value is the default then.
|
|
224
|
+
*/
|
|
225
|
+
ignoreSortersWhenSearched?: boolean;
|
|
211
226
|
/** Auto-query when metadata loads (default: true). */
|
|
212
227
|
queryOnMount?: boolean;
|
|
213
228
|
/**
|
|
@@ -239,6 +254,12 @@ interface TableWindowOptions {
|
|
|
239
254
|
interface TableActionsOptions {
|
|
240
255
|
/** Refetch policy: when `true` (default), successful backend / __remove invocations call `state.query()`. */
|
|
241
256
|
refreshOnAction?: () => boolean;
|
|
257
|
+
/**
|
|
258
|
+
* Maps a navigate action's href before it lands in an anchor's `href` /
|
|
259
|
+
* a mod-click `window.open` target (e.g. router base-path resolution).
|
|
260
|
+
* Plain function passthrough — see `ReactiveTableState.resolveHref`.
|
|
261
|
+
*/
|
|
262
|
+
resolveHref?: (url: string) => string;
|
|
242
263
|
/**
|
|
243
264
|
* Bridge for `<AsTableRoot>`'s `@action` emit. Called once per settled
|
|
244
265
|
* `invoke` (success, error, custom). `ids` is the level-derived list:
|
|
@@ -371,6 +392,15 @@ interface UseTableOptions {
|
|
|
371
392
|
columnWidths?: Ref<ColumnWidthsMap>;
|
|
372
393
|
/** External ref for sorters (from defineModel). */
|
|
373
394
|
sorters?: Ref<SortControl[]>;
|
|
395
|
+
/**
|
|
396
|
+
* Opt-in for relevance-ranked backends: while true AND a search term is
|
|
397
|
+
* active, user sorters are omitted from the query (`forceSorters` still
|
|
398
|
+
* apply). Pass a boolean to set the configured default, or a `Ref` (from
|
|
399
|
+
* `defineModel`) to also v-model the runtime flag — the ref's initial
|
|
400
|
+
* value is the default the flag resets to on each new search session.
|
|
401
|
+
* Default `false`.
|
|
402
|
+
*/
|
|
403
|
+
ignoreSortersWhenSearched?: boolean | Ref<boolean>;
|
|
374
404
|
/**
|
|
375
405
|
* External ref for selected rows (from `defineModel`/v-model or any external
|
|
376
406
|
* source). Identity is preserved — the framework reads from and writes to
|
|
@@ -418,6 +448,13 @@ interface UseTableOptions {
|
|
|
418
448
|
* successful `'backend'` / `'__remove'` invocations call `state.query()`.
|
|
419
449
|
*/
|
|
420
450
|
refreshOnAction?: () => boolean;
|
|
451
|
+
/**
|
|
452
|
+
* Maps a navigate action's href before it is used as an anchor `href` /
|
|
453
|
+
* mod-click `window.open` target (e.g. `router.resolve(url).href` under a
|
|
454
|
+
* base path). Never applied on the plain-left-click invoke path. Default:
|
|
455
|
+
* identity.
|
|
456
|
+
*/
|
|
457
|
+
resolveHref?: (url: string) => string;
|
|
421
458
|
/** Bridge for `<AsTableRoot>`'s `@action` emit; see `TableActionsOptions.onResolved`. */
|
|
422
459
|
onActionResolved?: (action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: KeyboardEvent | MouseEvent) => void;
|
|
423
460
|
/**
|
|
@@ -2176,6 +2213,14 @@ type __VLS_Props = {
|
|
|
2176
2213
|
* `state.actions.invoke(action, pk, { suppressRefresh: true })` overrides.
|
|
2177
2214
|
*/
|
|
2178
2215
|
refreshOnAction?: boolean;
|
|
2216
|
+
/**
|
|
2217
|
+
* Maps a navigate action's interpolated href before it is used as an
|
|
2218
|
+
* anchor's `href` attribute or a mod/middle-click `window.open` target —
|
|
2219
|
+
* e.g. `(url) => router.resolve(url).href` for apps served under a
|
|
2220
|
+
* router base path. NOT applied on the plain-left-click invoke path (the
|
|
2221
|
+
* Client's `navigate` hook owns that URL). Default: identity.
|
|
2222
|
+
*/
|
|
2223
|
+
resolveHref?: (url: string) => string;
|
|
2179
2224
|
/**
|
|
2180
2225
|
* Per-aspect opt-in/out for `v-model:url-query`. Default (omitted): full
|
|
2181
2226
|
* sync — filters, sorters, `searchTerm`, and pagination all round-trip.
|
|
@@ -2196,6 +2241,14 @@ type __VLS_ModelProps = {
|
|
|
2196
2241
|
"columnNames"?: string[];
|
|
2197
2242
|
"columnWidths"?: ColumnWidthsMap;
|
|
2198
2243
|
"sorters"?: SortControl[];
|
|
2244
|
+
/**
|
|
2245
|
+
* Opt-in for relevance-ranked backends (e.g. Atlas Search): while true AND a
|
|
2246
|
+
* search term is active, user sorters are omitted from the query so relevance
|
|
2247
|
+
* ranking survives (`forceSorters` still apply). Usable as a plain prop
|
|
2248
|
+
* (`:ignore-sorters-when-searched="true"` sets the configured default) or as
|
|
2249
|
+
* `v-model:ignore-sorters-when-searched` to observe/drive the runtime flag.
|
|
2250
|
+
*/
|
|
2251
|
+
"ignoreSortersWhenSearched"?: boolean;
|
|
2199
2252
|
"selectedRows"?: unknown[];
|
|
2200
2253
|
/**
|
|
2201
2254
|
* Bidirectional URL bridge bound via `v-model:url-query`. When unbound the
|
|
@@ -2225,6 +2278,7 @@ declare var __VLS_1: {
|
|
|
2225
2278
|
metadataError: Error | null;
|
|
2226
2279
|
mustRefresh: boolean;
|
|
2227
2280
|
searchTerm: string;
|
|
2281
|
+
ignoreSortersWhenSearched: boolean;
|
|
2228
2282
|
selectedRows: unknown[];
|
|
2229
2283
|
selectedCount: number;
|
|
2230
2284
|
navBridge: TableNavBridge;
|
|
@@ -2252,6 +2306,7 @@ declare const __VLS_base: vue.DefineComponent<__VLS_PublicProps, {
|
|
|
2252
2306
|
"update:columnNames": (value: string[]) => any;
|
|
2253
2307
|
"update:columnWidths": (value: ColumnWidthsMap) => any;
|
|
2254
2308
|
"update:sorters": (value: SortControl[]) => any;
|
|
2309
|
+
"update:ignoreSortersWhenSearched": (value: boolean) => any;
|
|
2255
2310
|
"update:selectedRows": (value: unknown[]) => any;
|
|
2256
2311
|
"update:urlQuery": (value: string | undefined) => any;
|
|
2257
2312
|
} & {
|
|
@@ -2259,13 +2314,14 @@ declare const __VLS_base: vue.DefineComponent<__VLS_PublicProps, {
|
|
|
2259
2314
|
action: (action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any;
|
|
2260
2315
|
}, string, vue.PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
2261
2316
|
"onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any) | undefined;
|
|
2317
|
+
onAction?: ((action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any) | undefined;
|
|
2262
2318
|
"onUpdate:filterFields"?: ((value: string[]) => any) | undefined;
|
|
2263
2319
|
"onUpdate:columnNames"?: ((value: string[]) => any) | undefined;
|
|
2264
2320
|
"onUpdate:columnWidths"?: ((value: ColumnWidthsMap) => any) | undefined;
|
|
2265
2321
|
"onUpdate:sorters"?: ((value: SortControl[]) => any) | undefined;
|
|
2322
|
+
"onUpdate:ignoreSortersWhenSearched"?: ((value: boolean) => any) | undefined;
|
|
2266
2323
|
"onUpdate:selectedRows"?: ((value: unknown[]) => any) | undefined;
|
|
2267
2324
|
"onUpdate:urlQuery"?: ((value: string | undefined) => any) | undefined;
|
|
2268
|
-
onAction?: ((action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any) | undefined;
|
|
2269
2325
|
}>, {
|
|
2270
2326
|
queryOnMount: boolean;
|
|
2271
2327
|
selectionPersistence: SelectionPersistence;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as TableNavBridge, c as NavKeyOptions, d as ReactiveTableState, g as TableActionsState, h as TVueTableActionInfo, i as ConfirmOptions, l as PresetConfig, m as TAsTableControls, p as TAsCellTypeComponents, t as ActionResult } from "./types-
|
|
1
|
+
import { _ as TableNavBridge, c as NavKeyOptions, d as ReactiveTableState, g as TableActionsState, h as TVueTableActionInfo, i as ConfirmOptions, l as PresetConfig, m as TAsTableControls, p as TAsCellTypeComponents, t as ActionResult } from "./types-ByU4O0Yf.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";
|
|
@@ -192,6 +192,12 @@ interface TableModelRefs {
|
|
|
192
192
|
columnNames?: Ref<string[]>;
|
|
193
193
|
columnWidths?: Ref<ColumnWidthsMap>;
|
|
194
194
|
sorters?: Ref<SortControl[]>;
|
|
195
|
+
/**
|
|
196
|
+
* Runtime "preserve search relevance" flag (see
|
|
197
|
+
* `ReactiveTableState.ignoreSortersWhenSearched`). Its initial value is the
|
|
198
|
+
* configured default the flag resets to on every new search session.
|
|
199
|
+
*/
|
|
200
|
+
ignoreSortersWhenSearched?: Ref<boolean>;
|
|
195
201
|
}
|
|
196
202
|
type TableSelectionOptions = SelectionApiOptions;
|
|
197
203
|
interface TableQueryOptions {
|
|
@@ -208,6 +214,15 @@ interface TableQueryOptions {
|
|
|
208
214
|
alwaysSelected?: string[];
|
|
209
215
|
/** When true, all triggers (query/queryNext/loadRange) early-return. */
|
|
210
216
|
blockQuery?: boolean;
|
|
217
|
+
/**
|
|
218
|
+
* Configured default for the runtime `ignoreSortersWhenSearched` flag
|
|
219
|
+
* (default `false`). Opt-in for relevance-ranked backends: while the
|
|
220
|
+
* runtime flag is true AND a search term is active, user `sorters` are
|
|
221
|
+
* omitted from the query (`forceSorters` still apply). Ignored when a
|
|
222
|
+
* `model.ignoreSortersWhenSearched` ref is wired — the ref's initial
|
|
223
|
+
* value is the default then.
|
|
224
|
+
*/
|
|
225
|
+
ignoreSortersWhenSearched?: boolean;
|
|
211
226
|
/** Auto-query when metadata loads (default: true). */
|
|
212
227
|
queryOnMount?: boolean;
|
|
213
228
|
/**
|
|
@@ -239,6 +254,12 @@ interface TableWindowOptions {
|
|
|
239
254
|
interface TableActionsOptions {
|
|
240
255
|
/** Refetch policy: when `true` (default), successful backend / __remove invocations call `state.query()`. */
|
|
241
256
|
refreshOnAction?: () => boolean;
|
|
257
|
+
/**
|
|
258
|
+
* Maps a navigate action's href before it lands in an anchor's `href` /
|
|
259
|
+
* a mod-click `window.open` target (e.g. router base-path resolution).
|
|
260
|
+
* Plain function passthrough — see `ReactiveTableState.resolveHref`.
|
|
261
|
+
*/
|
|
262
|
+
resolveHref?: (url: string) => string;
|
|
242
263
|
/**
|
|
243
264
|
* Bridge for `<AsTableRoot>`'s `@action` emit. Called once per settled
|
|
244
265
|
* `invoke` (success, error, custom). `ids` is the level-derived list:
|
|
@@ -371,6 +392,15 @@ interface UseTableOptions {
|
|
|
371
392
|
columnWidths?: Ref<ColumnWidthsMap>;
|
|
372
393
|
/** External ref for sorters (from defineModel). */
|
|
373
394
|
sorters?: Ref<SortControl[]>;
|
|
395
|
+
/**
|
|
396
|
+
* Opt-in for relevance-ranked backends: while true AND a search term is
|
|
397
|
+
* active, user sorters are omitted from the query (`forceSorters` still
|
|
398
|
+
* apply). Pass a boolean to set the configured default, or a `Ref` (from
|
|
399
|
+
* `defineModel`) to also v-model the runtime flag — the ref's initial
|
|
400
|
+
* value is the default the flag resets to on each new search session.
|
|
401
|
+
* Default `false`.
|
|
402
|
+
*/
|
|
403
|
+
ignoreSortersWhenSearched?: boolean | Ref<boolean>;
|
|
374
404
|
/**
|
|
375
405
|
* External ref for selected rows (from `defineModel`/v-model or any external
|
|
376
406
|
* source). Identity is preserved — the framework reads from and writes to
|
|
@@ -418,6 +448,13 @@ interface UseTableOptions {
|
|
|
418
448
|
* successful `'backend'` / `'__remove'` invocations call `state.query()`.
|
|
419
449
|
*/
|
|
420
450
|
refreshOnAction?: () => boolean;
|
|
451
|
+
/**
|
|
452
|
+
* Maps a navigate action's href before it is used as an anchor `href` /
|
|
453
|
+
* mod-click `window.open` target (e.g. `router.resolve(url).href` under a
|
|
454
|
+
* base path). Never applied on the plain-left-click invoke path. Default:
|
|
455
|
+
* identity.
|
|
456
|
+
*/
|
|
457
|
+
resolveHref?: (url: string) => string;
|
|
421
458
|
/** Bridge for `<AsTableRoot>`'s `@action` emit; see `TableActionsOptions.onResolved`. */
|
|
422
459
|
onActionResolved?: (action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: KeyboardEvent | MouseEvent) => void;
|
|
423
460
|
/**
|
|
@@ -2176,6 +2213,14 @@ type __VLS_Props = {
|
|
|
2176
2213
|
* `state.actions.invoke(action, pk, { suppressRefresh: true })` overrides.
|
|
2177
2214
|
*/
|
|
2178
2215
|
refreshOnAction?: boolean;
|
|
2216
|
+
/**
|
|
2217
|
+
* Maps a navigate action's interpolated href before it is used as an
|
|
2218
|
+
* anchor's `href` attribute or a mod/middle-click `window.open` target —
|
|
2219
|
+
* e.g. `(url) => router.resolve(url).href` for apps served under a
|
|
2220
|
+
* router base path. NOT applied on the plain-left-click invoke path (the
|
|
2221
|
+
* Client's `navigate` hook owns that URL). Default: identity.
|
|
2222
|
+
*/
|
|
2223
|
+
resolveHref?: (url: string) => string;
|
|
2179
2224
|
/**
|
|
2180
2225
|
* Per-aspect opt-in/out for `v-model:url-query`. Default (omitted): full
|
|
2181
2226
|
* sync — filters, sorters, `searchTerm`, and pagination all round-trip.
|
|
@@ -2196,6 +2241,14 @@ type __VLS_ModelProps = {
|
|
|
2196
2241
|
"columnNames"?: string[];
|
|
2197
2242
|
"columnWidths"?: ColumnWidthsMap;
|
|
2198
2243
|
"sorters"?: SortControl[];
|
|
2244
|
+
/**
|
|
2245
|
+
* Opt-in for relevance-ranked backends (e.g. Atlas Search): while true AND a
|
|
2246
|
+
* search term is active, user sorters are omitted from the query so relevance
|
|
2247
|
+
* ranking survives (`forceSorters` still apply). Usable as a plain prop
|
|
2248
|
+
* (`:ignore-sorters-when-searched="true"` sets the configured default) or as
|
|
2249
|
+
* `v-model:ignore-sorters-when-searched` to observe/drive the runtime flag.
|
|
2250
|
+
*/
|
|
2251
|
+
"ignoreSortersWhenSearched"?: boolean;
|
|
2199
2252
|
"selectedRows"?: unknown[];
|
|
2200
2253
|
/**
|
|
2201
2254
|
* Bidirectional URL bridge bound via `v-model:url-query`. When unbound the
|
|
@@ -2225,6 +2278,7 @@ declare var __VLS_1: {
|
|
|
2225
2278
|
metadataError: Error | null;
|
|
2226
2279
|
mustRefresh: boolean;
|
|
2227
2280
|
searchTerm: string;
|
|
2281
|
+
ignoreSortersWhenSearched: boolean;
|
|
2228
2282
|
selectedRows: unknown[];
|
|
2229
2283
|
selectedCount: number;
|
|
2230
2284
|
navBridge: TableNavBridge;
|
|
@@ -2252,6 +2306,7 @@ declare const __VLS_base: vue.DefineComponent<__VLS_PublicProps, {
|
|
|
2252
2306
|
"update:columnNames": (value: string[]) => any;
|
|
2253
2307
|
"update:columnWidths": (value: ColumnWidthsMap) => any;
|
|
2254
2308
|
"update:sorters": (value: SortControl[]) => any;
|
|
2309
|
+
"update:ignoreSortersWhenSearched": (value: boolean) => any;
|
|
2255
2310
|
"update:selectedRows": (value: unknown[]) => any;
|
|
2256
2311
|
"update:urlQuery": (value: string | undefined) => any;
|
|
2257
2312
|
} & {
|
|
@@ -2259,13 +2314,14 @@ declare const __VLS_base: vue.DefineComponent<__VLS_PublicProps, {
|
|
|
2259
2314
|
action: (action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any;
|
|
2260
2315
|
}, string, vue.PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
2261
2316
|
"onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any) | undefined;
|
|
2317
|
+
onAction?: ((action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any) | undefined;
|
|
2262
2318
|
"onUpdate:filterFields"?: ((value: string[]) => any) | undefined;
|
|
2263
2319
|
"onUpdate:columnNames"?: ((value: string[]) => any) | undefined;
|
|
2264
2320
|
"onUpdate:columnWidths"?: ((value: ColumnWidthsMap) => any) | undefined;
|
|
2265
2321
|
"onUpdate:sorters"?: ((value: SortControl[]) => any) | undefined;
|
|
2322
|
+
"onUpdate:ignoreSortersWhenSearched"?: ((value: boolean) => any) | undefined;
|
|
2266
2323
|
"onUpdate:selectedRows"?: ((value: unknown[]) => any) | undefined;
|
|
2267
2324
|
"onUpdate:urlQuery"?: ((value: string | undefined) => any) | undefined;
|
|
2268
|
-
onAction?: ((action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any) | undefined;
|
|
2269
2325
|
}>, {
|
|
2270
2326
|
queryOnMount: boolean;
|
|
2271
2327
|
selectionPersistence: SelectionPersistence;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
const require_use_table_state = require("./use-table-state-
|
|
2
|
-
const require_use_table_component = require("./use-table-component-
|
|
3
|
-
const require_as_table_header_cell = require("./as-table-header-cell-
|
|
4
|
-
const require_as_row_actions = require("./as-row-actions-
|
|
1
|
+
const require_use_table_state = require("./use-table-state-CElgF_iy.cjs");
|
|
2
|
+
const require_use_table_component = require("./use-table-component-QDcfYIBU.cjs");
|
|
3
|
+
const require_as_table_header_cell = require("./as-table-header-cell-DD6Tw87_.cjs");
|
|
4
|
+
const require_as_row_actions = require("./as-row-actions-DC6-kpsJ.cjs");
|
|
5
5
|
const require_as_table_cell_value = require("./as-table-cell-value-D1JkTQt0.cjs");
|
|
6
6
|
let _atscript_ui = require("@atscript/ui");
|
|
7
7
|
let vue = require("vue");
|
|
@@ -1,7 +1,7 @@
|
|
|
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-
|
|
1
|
+
import { o as useTableContextOptional } from "./use-table-state-Dju5bxt8.mjs";
|
|
2
|
+
import { t as useTableComponent } from "./use-table-component-Bu7CIG5I.mjs";
|
|
3
|
+
import { t as as_table_header_cell_default } from "./as-table-header-cell-DfjfNeq4.mjs";
|
|
4
|
+
import { t as as_row_actions_default } from "./as-row-actions-CBVF6B2-.mjs";
|
|
5
5
|
import { t as as_table_cell_value_default } from "./as-table-cell-value-CPcFxSOj.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";
|
package/dist/as-table.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_table = require("./as-table-
|
|
1
|
+
const require_as_table = require("./as-table-DaT2K-7n.cjs");
|
|
2
2
|
module.exports = require_as_table.as_table_default;
|
package/dist/as-table.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-table.vue-
|
|
1
|
+
import { t as _default } from "./as-table.vue-Co8kYS_o.cjs";
|
|
2
2
|
export = _default;
|
package/dist/as-table.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-table.vue-
|
|
1
|
+
import { t as _default } from "./as-table.vue-B2ywpIo_.mjs";
|
|
2
2
|
export { _default as default };
|
package/dist/as-table.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_table_default } from "./as-table-
|
|
1
|
+
import { t as as_table_default } from "./as-table-DQwYi63u.mjs";
|
|
2
2
|
export { as_table_default as default };
|