@atscript/vue-table 0.1.110 → 0.1.112
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-CXG6BhWe.mjs → as-action-menu-content-CVZJpVPG.mjs} +1 -1
- package/dist/{as-action-menu-content-B6rWBo5O.cjs → as-action-menu-content-C_-ndF6S.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.vue-DZawdGvY.d.cts → as-column-menu.vue-BbdaVsNi.d.cts} +1 -1
- package/dist/{as-column-menu.vue-csCNmAYR.d.mts → as-column-menu.vue-CwhbMgzZ.d.mts} +1 -1
- package/dist/{as-config-dialog-DAqSy8zx.mjs → as-config-dialog-Dvnlubkp.mjs} +2 -2
- package/dist/{as-config-dialog-DKYI4uQ0.cjs → as-config-dialog-ulI6e9vX.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-B7SM0zxy.cjs} +1 -1
- package/dist/{as-confirm-dialog-B1zuisFu.mjs → as-confirm-dialog-DLR2ejrF.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-CiIPgmt8.mjs} +7 -7
- package/dist/{as-filter-dialog-PBy9IDBz.cjs → as-filter-dialog-DfX7ahsa.cjs} +7 -7
- package/dist/as-filter-dialog.cjs +1 -1
- package/dist/as-filter-dialog.mjs +1 -1
- package/dist/{as-filter-field-9mG-alNU.mjs → as-filter-field-C3wmTg22.mjs} +3 -3
- package/dist/{as-filter-field-BHPZtUwd.cjs → as-filter-field-D8kv8lOm.cjs} +3 -3
- package/dist/as-filter-field.cjs +1 -1
- package/dist/as-filter-field.mjs +1 -1
- package/dist/{as-filters-7oIkmDHI.cjs → as-filters-BhPQXswG.cjs} +3 -3
- package/dist/{as-filters-BSQ3nugx.mjs → as-filters-Dmn0ykIo.mjs} +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-B3fC0Eqc.mjs} +1 -1
- package/dist/{as-preset-dialog-BXO1O1q0.cjs → as-preset-dialog-DYxEVZ7V.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-B9hw2qc8.mjs} +1 -1
- package/dist/{as-preset-picker-BBkjl0fs.cjs → as-preset-picker-PbSNiBDr.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-C4mSAqeh.mjs} +2 -2
- package/dist/{as-row-actions-BoOAXAeW.cjs → as-row-actions-N30up8uG.cjs} +2 -2
- package/dist/as-row-actions.cjs +1 -1
- package/dist/as-row-actions.mjs +1 -1
- package/dist/{as-table-C3Li7WTI.cjs → as-table-3TbYx5tz.cjs} +2 -2
- package/dist/{as-table-QkKHAIh6.mjs → as-table-DnUc3TB1.mjs} +2 -2
- package/dist/{as-table-actions-Cd7KoTEK.cjs → as-table-actions-CoN68w6P.cjs} +2 -2
- package/dist/{as-table-actions-DQ3xaFXJ.mjs → as-table-actions-Ct3tEarY.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-DW-zOVP0.d.cts → as-table-actions.vue-62ZjZoIa.d.cts} +2 -2
- package/dist/{as-table-actions.vue-CTC9xl5i.d.mts → as-table-actions.vue-B2C_nC86.d.mts} +2 -2
- package/dist/{as-table-base-DImVUSKt.cjs → as-table-base-CbxfXR2t.cjs} +2 -2
- package/dist/{as-table-base-D4Otzbe4.mjs → as-table-base-O9cMoTBL.mjs} +2 -2
- package/dist/{as-table-header-cell-mCOAZsjL.mjs → as-table-header-cell-BlDhjZNp.mjs} +1 -1
- package/dist/{as-table-header-cell-BEwpWr4m.cjs → as-table-header-cell-D025cLjb.cjs} +1 -1
- package/dist/as-table-header-cell.cjs +1 -1
- package/dist/as-table-header-cell.d.cts +1 -1
- package/dist/as-table-header-cell.d.mts +1 -1
- package/dist/as-table-header-cell.mjs +1 -1
- package/dist/{as-table-header-cell.vue-DsVfhlk3.d.mts → as-table-header-cell.vue-BjQUPdmH.d.cts} +2 -2
- package/dist/{as-table-header-cell.vue-jvtDmqhR.d.cts → as-table-header-cell.vue-PEFiv40i.d.mts} +2 -2
- package/dist/{as-table-root-BNJ1yqaD.cjs → as-table-root-CeypME9M.cjs} +20 -4
- package/dist/{as-table-root-BQNXfIvB.mjs → as-table-root-IzffHCVo.mjs} +20 -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-D5Tp8U_d.d.cts} +40 -5
- package/dist/{as-table-root.vue-C5IrebWr.d.mts → as-table-root.vue-DtJBjtoC.d.mts} +40 -5
- package/dist/{as-table-status-CxkiQ_EE.mjs → as-table-status-d3iUSOoH.mjs} +4 -4
- package/dist/{as-table-status-C3A1WYwb.cjs → as-table-status-f4QmdAZ0.cjs} +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-53yyA7zP.d.cts} +8 -8
- package/dist/{as-table.vue-COtIbUsp.d.cts → as-table.vue-CdSb4IUc.d.mts} +8 -8
- package/dist/{as-window-table-BBtgpJ1h.cjs → as-window-table-BzyV1iDL.cjs} +2 -2
- package/dist/{as-window-table-DONQh4nM.mjs → as-window-table-C3o72zaM.mjs} +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-DQPjWA3T.d.mts} +6 -6
- package/dist/{as-window-table.vue-iLK4PSW_.d.cts → as-window-table.vue-DU6UdjA3.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-DAgdkjji.d.cts} +12 -2
- package/dist/{types-CDJmLD-E.d.cts → types-iSundY5p.d.mts} +12 -2
- package/dist/{use-table-CGxkBszK.mjs → use-table-ClKUAYU4.mjs} +4 -2
- package/dist/{use-table-CaegBdPZ.cjs → use-table-Dwl4JoZR.cjs} +4 -2
- package/dist/{use-table-component-ClgvnuRH.mjs → use-table-component-QIECHhdZ.mjs} +1 -1
- package/dist/{use-table-component-D-1kzctZ.cjs → use-table-component-xSoXI7Jm.cjs} +1 -1
- package/dist/{use-table-nav-bridge-C3gqHOIa.mjs → use-table-nav-bridge-0WVZrMv9.mjs} +1 -1
- package/dist/{use-table-nav-bridge-bZIH2d6Y.cjs → use-table-nav-bridge-Cs4R_6F2.cjs} +1 -1
- package/dist/{use-table-state-152Ejpyo.cjs → use-table-state-CI8i5m7s.cjs} +44 -4
- package/dist/{use-table-state-BHAwfUKw.mjs → use-table-state-kxv6_Biy.mjs} +44 -4
- package/package.json +7 -7
|
@@ -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-kxv6_Biy.mjs";
|
|
2
|
+
import { n as useTable } from "./use-table-ClKUAYU4.mjs";
|
|
3
|
+
import { t as useTableNavBridge } from "./use-table-nav-bridge-0WVZrMv9.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-DLR2ejrF.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
|
|
@@ -117,6 +117,11 @@ var as_table_root_default = /* @__PURE__ */ defineComponent({
|
|
|
117
117
|
default: () => []
|
|
118
118
|
},
|
|
119
119
|
"sortersModifiers": {},
|
|
120
|
+
"ignoreSortersWhenSearched": {
|
|
121
|
+
type: Boolean,
|
|
122
|
+
default: false
|
|
123
|
+
},
|
|
124
|
+
"ignoreSortersWhenSearchedModifiers": {},
|
|
120
125
|
"selectedRows": {
|
|
121
126
|
type: Array,
|
|
122
127
|
default: () => []
|
|
@@ -133,6 +138,7 @@ var as_table_root_default = /* @__PURE__ */ defineComponent({
|
|
|
133
138
|
"update:columnNames",
|
|
134
139
|
"update:columnWidths",
|
|
135
140
|
"update:sorters",
|
|
141
|
+
"update:ignoreSortersWhenSearched",
|
|
136
142
|
"update:selectedRows",
|
|
137
143
|
"update:urlQuery"
|
|
138
144
|
]),
|
|
@@ -147,6 +153,14 @@ var as_table_root_default = /* @__PURE__ */ defineComponent({
|
|
|
147
153
|
const columnNames = useModel(__props, "columnNames");
|
|
148
154
|
const columnWidths = useModel(__props, "columnWidths");
|
|
149
155
|
const sorters = useModel(__props, "sorters");
|
|
156
|
+
/**
|
|
157
|
+
* Opt-in for relevance-ranked backends (e.g. Atlas Search): while true AND a
|
|
158
|
+
* search term is active, user sorters are omitted from the query so relevance
|
|
159
|
+
* ranking survives (`forceSorters` still apply). Usable as a plain prop
|
|
160
|
+
* (`:ignore-sorters-when-searched="true"` sets the configured default) or as
|
|
161
|
+
* `v-model:ignore-sorters-when-searched` to observe/drive the runtime flag.
|
|
162
|
+
*/
|
|
163
|
+
const ignoreSortersWhenSearched = useModel(__props, "ignoreSortersWhenSearched");
|
|
150
164
|
const selectedRows = useModel(__props, "selectedRows");
|
|
151
165
|
/**
|
|
152
166
|
* Bidirectional URL bridge bound via `v-model:url-query`. When unbound the
|
|
@@ -182,6 +196,7 @@ var as_table_root_default = /* @__PURE__ */ defineComponent({
|
|
|
182
196
|
columnNames,
|
|
183
197
|
columnWidths,
|
|
184
198
|
sorters,
|
|
199
|
+
ignoreSortersWhenSearched,
|
|
185
200
|
selectedRows,
|
|
186
201
|
urlQueryReady: urlQueryActive ? urlQueryReady : void 0,
|
|
187
202
|
onUrlQueryChange: urlQueryActive ? (s) => urlQuery.value = s : void 0,
|
|
@@ -245,6 +260,7 @@ var as_table_root_default = /* @__PURE__ */ defineComponent({
|
|
|
245
260
|
metadataError: unref(state).metadataError.value,
|
|
246
261
|
mustRefresh: unref(state).mustRefresh.value,
|
|
247
262
|
searchTerm: unref(state).searchTerm.value,
|
|
263
|
+
ignoreSortersWhenSearched: unref(state).ignoreSortersWhenSearched.value,
|
|
248
264
|
selectedRows: unref(state).selectedRows.value,
|
|
249
265
|
selectedCount: unref(state).selectedCount.value,
|
|
250
266
|
navBridge: 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-CeypME9M.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-D5Tp8U_d.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-DtJBjtoC.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-IzffHCVo.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-DAgdkjji.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
|
/**
|
|
@@ -371,6 +386,15 @@ interface UseTableOptions {
|
|
|
371
386
|
columnWidths?: Ref<ColumnWidthsMap>;
|
|
372
387
|
/** External ref for sorters (from defineModel). */
|
|
373
388
|
sorters?: Ref<SortControl[]>;
|
|
389
|
+
/**
|
|
390
|
+
* Opt-in for relevance-ranked backends: while true AND a search term is
|
|
391
|
+
* active, user sorters are omitted from the query (`forceSorters` still
|
|
392
|
+
* apply). Pass a boolean to set the configured default, or a `Ref` (from
|
|
393
|
+
* `defineModel`) to also v-model the runtime flag — the ref's initial
|
|
394
|
+
* value is the default the flag resets to on each new search session.
|
|
395
|
+
* Default `false`.
|
|
396
|
+
*/
|
|
397
|
+
ignoreSortersWhenSearched?: boolean | Ref<boolean>;
|
|
374
398
|
/**
|
|
375
399
|
* External ref for selected rows (from `defineModel`/v-model or any external
|
|
376
400
|
* source). Identity is preserved — the framework reads from and writes to
|
|
@@ -2196,6 +2220,14 @@ type __VLS_ModelProps = {
|
|
|
2196
2220
|
"columnNames"?: string[];
|
|
2197
2221
|
"columnWidths"?: ColumnWidthsMap;
|
|
2198
2222
|
"sorters"?: SortControl[];
|
|
2223
|
+
/**
|
|
2224
|
+
* Opt-in for relevance-ranked backends (e.g. Atlas Search): while true AND a
|
|
2225
|
+
* search term is active, user sorters are omitted from the query so relevance
|
|
2226
|
+
* ranking survives (`forceSorters` still apply). Usable as a plain prop
|
|
2227
|
+
* (`:ignore-sorters-when-searched="true"` sets the configured default) or as
|
|
2228
|
+
* `v-model:ignore-sorters-when-searched` to observe/drive the runtime flag.
|
|
2229
|
+
*/
|
|
2230
|
+
"ignoreSortersWhenSearched"?: boolean;
|
|
2199
2231
|
"selectedRows"?: unknown[];
|
|
2200
2232
|
/**
|
|
2201
2233
|
* Bidirectional URL bridge bound via `v-model:url-query`. When unbound the
|
|
@@ -2225,6 +2257,7 @@ declare var __VLS_1: {
|
|
|
2225
2257
|
metadataError: Error | null;
|
|
2226
2258
|
mustRefresh: boolean;
|
|
2227
2259
|
searchTerm: string;
|
|
2260
|
+
ignoreSortersWhenSearched: boolean;
|
|
2228
2261
|
selectedRows: unknown[];
|
|
2229
2262
|
selectedCount: number;
|
|
2230
2263
|
navBridge: TableNavBridge;
|
|
@@ -2252,20 +2285,22 @@ declare const __VLS_base: vue.DefineComponent<__VLS_PublicProps, {
|
|
|
2252
2285
|
"update:columnNames": (value: string[]) => any;
|
|
2253
2286
|
"update:columnWidths": (value: ColumnWidthsMap) => any;
|
|
2254
2287
|
"update:sorters": (value: SortControl[]) => any;
|
|
2288
|
+
"update:ignoreSortersWhenSearched": (value: boolean) => any;
|
|
2255
2289
|
"update:selectedRows": (value: unknown[]) => any;
|
|
2256
2290
|
"update:urlQuery": (value: string | undefined) => any;
|
|
2257
2291
|
} & {
|
|
2258
|
-
|
|
2259
|
-
action: (
|
|
2292
|
+
action: (action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: KeyboardEvent | MouseEvent | undefined) => any;
|
|
2293
|
+
"main-action": (row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any;
|
|
2260
2294
|
}, string, vue.PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
2261
|
-
|
|
2295
|
+
onAction?: ((action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: KeyboardEvent | MouseEvent | undefined) => any) | undefined;
|
|
2296
|
+
"onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any) | undefined;
|
|
2262
2297
|
"onUpdate:filterFields"?: ((value: string[]) => any) | undefined;
|
|
2263
2298
|
"onUpdate:columnNames"?: ((value: string[]) => any) | undefined;
|
|
2264
2299
|
"onUpdate:columnWidths"?: ((value: ColumnWidthsMap) => any) | undefined;
|
|
2265
2300
|
"onUpdate:sorters"?: ((value: SortControl[]) => any) | undefined;
|
|
2301
|
+
"onUpdate:ignoreSortersWhenSearched"?: ((value: boolean) => any) | undefined;
|
|
2266
2302
|
"onUpdate:selectedRows"?: ((value: unknown[]) => any) | undefined;
|
|
2267
2303
|
"onUpdate:urlQuery"?: ((value: string | undefined) => any) | undefined;
|
|
2268
|
-
onAction?: ((action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any) | undefined;
|
|
2269
2304
|
}>, {
|
|
2270
2305
|
queryOnMount: boolean;
|
|
2271
2306
|
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-iSundY5p.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
|
/**
|
|
@@ -371,6 +386,15 @@ interface UseTableOptions {
|
|
|
371
386
|
columnWidths?: Ref<ColumnWidthsMap>;
|
|
372
387
|
/** External ref for sorters (from defineModel). */
|
|
373
388
|
sorters?: Ref<SortControl[]>;
|
|
389
|
+
/**
|
|
390
|
+
* Opt-in for relevance-ranked backends: while true AND a search term is
|
|
391
|
+
* active, user sorters are omitted from the query (`forceSorters` still
|
|
392
|
+
* apply). Pass a boolean to set the configured default, or a `Ref` (from
|
|
393
|
+
* `defineModel`) to also v-model the runtime flag — the ref's initial
|
|
394
|
+
* value is the default the flag resets to on each new search session.
|
|
395
|
+
* Default `false`.
|
|
396
|
+
*/
|
|
397
|
+
ignoreSortersWhenSearched?: boolean | Ref<boolean>;
|
|
374
398
|
/**
|
|
375
399
|
* External ref for selected rows (from `defineModel`/v-model or any external
|
|
376
400
|
* source). Identity is preserved — the framework reads from and writes to
|
|
@@ -2196,6 +2220,14 @@ type __VLS_ModelProps = {
|
|
|
2196
2220
|
"columnNames"?: string[];
|
|
2197
2221
|
"columnWidths"?: ColumnWidthsMap;
|
|
2198
2222
|
"sorters"?: SortControl[];
|
|
2223
|
+
/**
|
|
2224
|
+
* Opt-in for relevance-ranked backends (e.g. Atlas Search): while true AND a
|
|
2225
|
+
* search term is active, user sorters are omitted from the query so relevance
|
|
2226
|
+
* ranking survives (`forceSorters` still apply). Usable as a plain prop
|
|
2227
|
+
* (`:ignore-sorters-when-searched="true"` sets the configured default) or as
|
|
2228
|
+
* `v-model:ignore-sorters-when-searched` to observe/drive the runtime flag.
|
|
2229
|
+
*/
|
|
2230
|
+
"ignoreSortersWhenSearched"?: boolean;
|
|
2199
2231
|
"selectedRows"?: unknown[];
|
|
2200
2232
|
/**
|
|
2201
2233
|
* Bidirectional URL bridge bound via `v-model:url-query`. When unbound the
|
|
@@ -2225,6 +2257,7 @@ declare var __VLS_1: {
|
|
|
2225
2257
|
metadataError: Error | null;
|
|
2226
2258
|
mustRefresh: boolean;
|
|
2227
2259
|
searchTerm: string;
|
|
2260
|
+
ignoreSortersWhenSearched: boolean;
|
|
2228
2261
|
selectedRows: unknown[];
|
|
2229
2262
|
selectedCount: number;
|
|
2230
2263
|
navBridge: TableNavBridge;
|
|
@@ -2252,20 +2285,22 @@ declare const __VLS_base: vue.DefineComponent<__VLS_PublicProps, {
|
|
|
2252
2285
|
"update:columnNames": (value: string[]) => any;
|
|
2253
2286
|
"update:columnWidths": (value: ColumnWidthsMap) => any;
|
|
2254
2287
|
"update:sorters": (value: SortControl[]) => any;
|
|
2288
|
+
"update:ignoreSortersWhenSearched": (value: boolean) => any;
|
|
2255
2289
|
"update:selectedRows": (value: unknown[]) => any;
|
|
2256
2290
|
"update:urlQuery": (value: string | undefined) => any;
|
|
2257
2291
|
} & {
|
|
2258
|
-
|
|
2259
|
-
action: (
|
|
2292
|
+
action: (action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: KeyboardEvent | MouseEvent | undefined) => any;
|
|
2293
|
+
"main-action": (row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any;
|
|
2260
2294
|
}, string, vue.PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
2261
|
-
|
|
2295
|
+
onAction?: ((action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: KeyboardEvent | MouseEvent | undefined) => any) | undefined;
|
|
2296
|
+
"onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any) | undefined;
|
|
2262
2297
|
"onUpdate:filterFields"?: ((value: string[]) => any) | undefined;
|
|
2263
2298
|
"onUpdate:columnNames"?: ((value: string[]) => any) | undefined;
|
|
2264
2299
|
"onUpdate:columnWidths"?: ((value: ColumnWidthsMap) => any) | undefined;
|
|
2265
2300
|
"onUpdate:sorters"?: ((value: SortControl[]) => any) | undefined;
|
|
2301
|
+
"onUpdate:ignoreSortersWhenSearched"?: ((value: boolean) => any) | undefined;
|
|
2266
2302
|
"onUpdate:selectedRows"?: ((value: unknown[]) => any) | undefined;
|
|
2267
2303
|
"onUpdate:urlQuery"?: ((value: string | undefined) => any) | undefined;
|
|
2268
|
-
onAction?: ((action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any) | undefined;
|
|
2269
2304
|
}>, {
|
|
2270
2305
|
queryOnMount: boolean;
|
|
2271
2306
|
selectionPersistence: SelectionPersistence;
|
|
@@ -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-kxv6_Biy.mjs";
|
|
2
|
+
import { t as useTableComponent } from "./use-table-component-QIECHhdZ.mjs";
|
|
3
|
+
import { t as as_table_header_cell_default } from "./as-table-header-cell-BlDhjZNp.mjs";
|
|
4
|
+
import { t as as_row_actions_default } from "./as-row-actions-C4mSAqeh.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";
|
|
@@ -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-CI8i5m7s.cjs");
|
|
2
|
+
const require_use_table_component = require("./use-table-component-xSoXI7Jm.cjs");
|
|
3
|
+
const require_as_table_header_cell = require("./as-table-header-cell-D025cLjb.cjs");
|
|
4
|
+
const require_as_row_actions = require("./as-row-actions-N30up8uG.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");
|
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-3TbYx5tz.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-53yyA7zP.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-CdSb4IUc.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-DnUc3TB1.mjs";
|
|
2
2
|
export { as_table_default as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { f as RowDeleteOpt, n as ColumnMenuConfig } from "./types-
|
|
2
|
-
import { ColumnDef } from "@atscript/ui";
|
|
1
|
+
import { f as RowDeleteOpt, n as ColumnMenuConfig } from "./types-DAgdkjji.cjs";
|
|
3
2
|
import * as vue from "vue";
|
|
3
|
+
import { ColumnDef } from "@atscript/ui";
|
|
4
4
|
import { SelectionMode } from "@atscript/ui-table";
|
|
5
5
|
|
|
6
6
|
//#region src/components/as-table.vue.d.ts
|
|
@@ -60,23 +60,23 @@ type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_21>]?: (props: typeof _
|
|
|
60
60
|
'query-loading'?: (props: typeof __VLS_24) => any;
|
|
61
61
|
};
|
|
62
62
|
declare const __VLS_base: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
63
|
+
"main-action": (row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any;
|
|
63
64
|
"row-click": (row: Record<string, unknown>, event: MouseEvent) => any;
|
|
64
65
|
"row-dblclick": (row: Record<string, unknown>, event: MouseEvent) => any;
|
|
65
|
-
"main-action": (row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any;
|
|
66
66
|
}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
67
|
+
"onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any) | undefined;
|
|
67
68
|
"onRow-click"?: ((row: Record<string, unknown>, event: MouseEvent) => any) | undefined;
|
|
68
69
|
"onRow-dblclick"?: ((row: Record<string, unknown>, event: MouseEvent) => any) | undefined;
|
|
69
|
-
"onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any) | undefined;
|
|
70
70
|
}>, {
|
|
71
|
-
|
|
72
|
-
virtualOverscan: number;
|
|
71
|
+
select: SelectionMode;
|
|
73
72
|
reorderable: boolean;
|
|
74
73
|
resizable: boolean;
|
|
75
74
|
columnMinWidth: number;
|
|
76
|
-
select: SelectionMode;
|
|
77
75
|
rowDelete: boolean | RowDeleteOpt;
|
|
78
|
-
rowActionsColumn: "first" | "last" | "merge-select" | false;
|
|
79
76
|
headless: boolean;
|
|
77
|
+
stickyHeader: boolean;
|
|
78
|
+
virtualOverscan: number;
|
|
79
|
+
rowActionsColumn: "first" | "last" | "merge-select" | false;
|
|
80
80
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
81
81
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
82
82
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { f as RowDeleteOpt, n as ColumnMenuConfig } from "./types-
|
|
2
|
-
import * as vue from "vue";
|
|
1
|
+
import { f as RowDeleteOpt, n as ColumnMenuConfig } from "./types-iSundY5p.mjs";
|
|
3
2
|
import { ColumnDef } from "@atscript/ui";
|
|
3
|
+
import * as vue from "vue";
|
|
4
4
|
import { SelectionMode } from "@atscript/ui-table";
|
|
5
5
|
|
|
6
6
|
//#region src/components/as-table.vue.d.ts
|
|
@@ -60,23 +60,23 @@ type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_21>]?: (props: typeof _
|
|
|
60
60
|
'query-loading'?: (props: typeof __VLS_24) => any;
|
|
61
61
|
};
|
|
62
62
|
declare const __VLS_base: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
63
|
+
"main-action": (row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any;
|
|
63
64
|
"row-click": (row: Record<string, unknown>, event: MouseEvent) => any;
|
|
64
65
|
"row-dblclick": (row: Record<string, unknown>, event: MouseEvent) => any;
|
|
65
|
-
"main-action": (row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any;
|
|
66
66
|
}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
67
|
+
"onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any) | undefined;
|
|
67
68
|
"onRow-click"?: ((row: Record<string, unknown>, event: MouseEvent) => any) | undefined;
|
|
68
69
|
"onRow-dblclick"?: ((row: Record<string, unknown>, event: MouseEvent) => any) | undefined;
|
|
69
|
-
"onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any) | undefined;
|
|
70
70
|
}>, {
|
|
71
|
-
|
|
72
|
-
virtualOverscan: number;
|
|
71
|
+
select: SelectionMode;
|
|
73
72
|
reorderable: boolean;
|
|
74
73
|
resizable: boolean;
|
|
75
74
|
columnMinWidth: number;
|
|
76
|
-
select: SelectionMode;
|
|
77
75
|
rowDelete: boolean | RowDeleteOpt;
|
|
78
|
-
rowActionsColumn: "first" | "last" | "merge-select" | false;
|
|
79
76
|
headless: boolean;
|
|
77
|
+
stickyHeader: boolean;
|
|
78
|
+
virtualOverscan: number;
|
|
79
|
+
rowActionsColumn: "first" | "last" | "merge-select" | false;
|
|
80
80
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
81
81
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
82
82
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const require_use_table_state = require("./use-table-state-
|
|
1
|
+
const require_use_table_state = require("./use-table-state-CI8i5m7s.cjs");
|
|
2
2
|
const require_use_table_selection = require("./use-table-selection-Cmiu1h4S.cjs");
|
|
3
3
|
const require_use_has_emit_listener = require("./use-has-emit-listener-hhOH8CBI.cjs");
|
|
4
4
|
const require_get_cell_value = require("./get-cell-value-4rHKP-TG.cjs");
|
|
5
|
-
const require_as_table_status = require("./as-table-status-
|
|
5
|
+
const require_as_table_status = require("./as-table-status-f4QmdAZ0.cjs");
|
|
6
6
|
const require_use_table_column_handlers = require("./use-table-column-handlers-ehreEzcx.cjs");
|
|
7
7
|
let vue = require("vue");
|
|
8
8
|
let _atscript_ui_table = require("@atscript/ui-table");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as useTableContext, i as useRegisterMainActionListener } from "./use-table-state-
|
|
1
|
+
import { a as useTableContext, i as useRegisterMainActionListener } from "./use-table-state-kxv6_Biy.mjs";
|
|
2
2
|
import { t as useSelectModeReset } from "./use-table-selection-C84z4OZy.mjs";
|
|
3
3
|
import { t as useHasEmitListener } from "./use-has-emit-listener-BTMDIv2e.mjs";
|
|
4
4
|
import { t as getCellValue } from "./get-cell-value-C8LLc_Rr.mjs";
|
|
5
|
-
import { a as useCellComponents, i as useRafBatch, 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-
|
|
5
|
+
import { a as useCellComponents, i as useRafBatch, 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-d3iUSOoH.mjs";
|
|
6
6
|
import { t as useTableColumnHandlers } from "./use-table-column-handlers-CpiiIniD.mjs";
|
|
7
7
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, guardReactiveProps, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onBeforeUnmount, onMounted, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, unref, useSlots, watch, withCtx, withModifiers } from "vue";
|
|
8
8
|
import { DEFAULT_ROW_HEIGHT_PX, clampTopIndex, filledFilterCount } from "@atscript/ui-table";
|
package/dist/as-window-table.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_window_table = require("./as-window-table-
|
|
1
|
+
const require_as_window_table = require("./as-window-table-BzyV1iDL.cjs");
|
|
2
2
|
module.exports = require_as_window_table.as_window_table_default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-window-table.vue-
|
|
1
|
+
import { t as _default } from "./as-window-table.vue-DU6UdjA3.cjs";
|
|
2
2
|
export = _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-window-table.vue-
|
|
1
|
+
import { t as _default } from "./as-window-table.vue-DQPjWA3T.mjs";
|
|
2
2
|
export { _default as default };
|
package/dist/as-window-table.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_window_table_default } from "./as-window-table-
|
|
1
|
+
import { t as as_window_table_default } from "./as-window-table-C3o72zaM.mjs";
|
|
2
2
|
export { as_window_table_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as EnterAction, f as RowDeleteOpt, n as ColumnMenuConfig, u as QueryErrorKind } from "./types-
|
|
1
|
+
import { a as EnterAction, f as RowDeleteOpt, n as ColumnMenuConfig, u as QueryErrorKind } from "./types-iSundY5p.mjs";
|
|
2
2
|
import * as vue from "vue";
|
|
3
3
|
import { SelectionMode } from "@atscript/ui-table";
|
|
4
4
|
|
|
@@ -64,24 +64,24 @@ type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_13>]?: (props: typeof _
|
|
|
64
64
|
'query-loading'?: (props: typeof __VLS_16) => any;
|
|
65
65
|
};
|
|
66
66
|
declare const __VLS_base: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
67
|
+
"main-action": (row: Row, absIndex: number, event: KeyboardEvent | MouseEvent) => any;
|
|
67
68
|
"row-click": (row: Row, event: MouseEvent) => any;
|
|
68
69
|
"row-dblclick": (row: Row, event: MouseEvent) => any;
|
|
69
|
-
"main-action": (row: Row, absIndex: number, event: MouseEvent | KeyboardEvent) => any;
|
|
70
70
|
error: (error: Error, kind: QueryErrorKind) => any;
|
|
71
71
|
}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
72
|
+
"onMain-action"?: ((row: Row, absIndex: number, event: KeyboardEvent | MouseEvent) => any) | undefined;
|
|
72
73
|
"onRow-click"?: ((row: Row, event: MouseEvent) => any) | undefined;
|
|
73
74
|
"onRow-dblclick"?: ((row: Row, event: MouseEvent) => any) | undefined;
|
|
74
|
-
"onMain-action"?: ((row: Row, absIndex: number, event: MouseEvent | KeyboardEvent) => any) | undefined;
|
|
75
75
|
onError?: ((error: Error, kind: QueryErrorKind) => any) | undefined;
|
|
76
76
|
}>, {
|
|
77
|
+
select: SelectionMode;
|
|
78
|
+
rowHeight: number;
|
|
79
|
+
wheelRowsPerTick: number;
|
|
77
80
|
reorderable: boolean;
|
|
78
81
|
resizable: boolean;
|
|
79
82
|
columnMinWidth: number;
|
|
80
|
-
select: SelectionMode;
|
|
81
83
|
rowDelete: boolean | RowDeleteOpt;
|
|
82
84
|
headless: boolean;
|
|
83
|
-
rowHeight: number;
|
|
84
|
-
wheelRowsPerTick: number;
|
|
85
85
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
86
86
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
87
87
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as EnterAction, f as RowDeleteOpt, n as ColumnMenuConfig, u as QueryErrorKind } from "./types-
|
|
1
|
+
import { a as EnterAction, f as RowDeleteOpt, n as ColumnMenuConfig, u as QueryErrorKind } from "./types-DAgdkjji.cjs";
|
|
2
2
|
import * as vue from "vue";
|
|
3
3
|
import { SelectionMode } from "@atscript/ui-table";
|
|
4
4
|
|
|
@@ -64,24 +64,24 @@ type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_13>]?: (props: typeof _
|
|
|
64
64
|
'query-loading'?: (props: typeof __VLS_16) => any;
|
|
65
65
|
};
|
|
66
66
|
declare const __VLS_base: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
67
|
+
"main-action": (row: Row, absIndex: number, event: KeyboardEvent | MouseEvent) => any;
|
|
67
68
|
"row-click": (row: Row, event: MouseEvent) => any;
|
|
68
69
|
"row-dblclick": (row: Row, event: MouseEvent) => any;
|
|
69
|
-
"main-action": (row: Row, absIndex: number, event: MouseEvent | KeyboardEvent) => any;
|
|
70
70
|
error: (error: Error, kind: QueryErrorKind) => any;
|
|
71
71
|
}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
72
|
+
"onMain-action"?: ((row: Row, absIndex: number, event: KeyboardEvent | MouseEvent) => any) | undefined;
|
|
72
73
|
"onRow-click"?: ((row: Row, event: MouseEvent) => any) | undefined;
|
|
73
74
|
"onRow-dblclick"?: ((row: Row, event: MouseEvent) => any) | undefined;
|
|
74
|
-
"onMain-action"?: ((row: Row, absIndex: number, event: MouseEvent | KeyboardEvent) => any) | undefined;
|
|
75
75
|
onError?: ((error: Error, kind: QueryErrorKind) => any) | undefined;
|
|
76
76
|
}>, {
|
|
77
|
+
select: SelectionMode;
|
|
78
|
+
rowHeight: number;
|
|
79
|
+
wheelRowsPerTick: number;
|
|
77
80
|
reorderable: boolean;
|
|
78
81
|
resizable: boolean;
|
|
79
82
|
columnMinWidth: number;
|
|
80
|
-
select: SelectionMode;
|
|
81
83
|
rowDelete: boolean | RowDeleteOpt;
|
|
82
84
|
headless: boolean;
|
|
83
|
-
rowHeight: number;
|
|
84
|
-
wheelRowsPerTick: number;
|
|
85
85
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
86
86
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
87
87
|
declare const _default: typeof __VLS_export;
|
package/dist/index.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_use_table_state = require("./use-table-state-
|
|
2
|
+
const require_use_table_state = require("./use-table-state-CI8i5m7s.cjs");
|
|
3
3
|
const require_use_table_selection = require("./use-table-selection-Cmiu1h4S.cjs");
|
|
4
|
-
const require_use_table = require("./use-table-
|
|
5
|
-
const require_use_table_nav_bridge = require("./use-table-nav-bridge-
|
|
6
|
-
const require_use_table_component = require("./use-table-component-
|
|
4
|
+
const require_use_table = require("./use-table-Dwl4JoZR.cjs");
|
|
5
|
+
const require_use_table_nav_bridge = require("./use-table-nav-bridge-Cs4R_6F2.cjs");
|
|
6
|
+
const require_use_table_component = require("./use-table-component-xSoXI7Jm.cjs");
|
|
7
7
|
const require_get_cell_value = require("./get-cell-value-4rHKP-TG.cjs");
|
|
8
8
|
const require_as_cell_array = require("./as-cell-array-iPeUnk2G.cjs");
|
|
9
9
|
const require_as_cell_date = require("./as-cell-date-DyixWKuS.cjs");
|
|
@@ -13,21 +13,21 @@ const require_as_cell_number = require("./as-cell-number-DuPMOesI.cjs");
|
|
|
13
13
|
const require_format_cell = require("./format-cell-vCNTh4WZ.cjs");
|
|
14
14
|
const require_as_cell_union = require("./as-cell-union-DJNsEKTi.cjs");
|
|
15
15
|
const require_as_column_menu = require("./as-column-menu-fZVbJ9lU.cjs");
|
|
16
|
-
const require_as_config_dialog = require("./as-config-dialog-
|
|
17
|
-
const require_as_confirm_dialog = require("./as-confirm-dialog-
|
|
16
|
+
const require_as_config_dialog = require("./as-config-dialog-ulI6e9vX.cjs");
|
|
17
|
+
const require_as_confirm_dialog = require("./as-confirm-dialog-B7SM0zxy.cjs");
|
|
18
18
|
const require_as_filter_input = require("./as-filter-input-DJu2k9gO.cjs");
|
|
19
|
-
const require_as_filter_dialog = require("./as-filter-dialog-
|
|
20
|
-
const require_as_table_header_cell = require("./as-table-header-cell-
|
|
21
|
-
const require_as_window_table = require("./as-window-table-
|
|
22
|
-
const require_as_filter_field = require("./as-filter-field-
|
|
23
|
-
const require_as_filters = require("./as-filters-
|
|
24
|
-
const require_as_preset_dialog = require("./as-preset-dialog-
|
|
25
|
-
const require_as_row_actions = require("./as-row-actions-
|
|
19
|
+
const require_as_filter_dialog = require("./as-filter-dialog-DfX7ahsa.cjs");
|
|
20
|
+
const require_as_table_header_cell = require("./as-table-header-cell-D025cLjb.cjs");
|
|
21
|
+
const require_as_window_table = require("./as-window-table-BzyV1iDL.cjs");
|
|
22
|
+
const require_as_filter_field = require("./as-filter-field-D8kv8lOm.cjs");
|
|
23
|
+
const require_as_filters = require("./as-filters-BhPQXswG.cjs");
|
|
24
|
+
const require_as_preset_dialog = require("./as-preset-dialog-DYxEVZ7V.cjs");
|
|
25
|
+
const require_as_row_actions = require("./as-row-actions-N30up8uG.cjs");
|
|
26
26
|
const require_as_table_cell_value = require("./as-table-cell-value-D1JkTQt0.cjs");
|
|
27
|
-
const require_as_table_root = require("./as-table-root-
|
|
28
|
-
const require_as_table = require("./as-table-
|
|
29
|
-
const require_as_table_actions = require("./as-table-actions-
|
|
30
|
-
const require_as_preset_picker = require("./as-preset-picker-
|
|
27
|
+
const require_as_table_root = require("./as-table-root-CeypME9M.cjs");
|
|
28
|
+
const require_as_table = require("./as-table-3TbYx5tz.cjs");
|
|
29
|
+
const require_as_table_actions = require("./as-table-actions-CoN68w6P.cjs");
|
|
30
|
+
const require_as_preset_picker = require("./as-preset-picker-PbSNiBDr.cjs");
|
|
31
31
|
let _atscript_ui = require("@atscript/ui");
|
|
32
32
|
let vue = require("vue");
|
|
33
33
|
let _atscript_ui_table = require("@atscript/ui-table");
|