@atscript/vue-table 0.1.107 → 0.1.108
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-C566-BZi.cjs → as-action-menu-content-B6rWBo5O.cjs} +1 -1
- package/dist/{as-action-menu-content-QLqwcIyN.mjs → as-action-menu-content-CXG6BhWe.mjs} +1 -1
- package/dist/as-column-menu.d.cts +1 -1
- package/dist/as-column-menu.d.mts +1 -1
- package/dist/{as-column-menu.vue-BtXVQywl.d.cts → as-column-menu.vue-DZawdGvY.d.cts} +1 -1
- package/dist/{as-column-menu.vue-D3Z5BVLx.d.mts → as-column-menu.vue-csCNmAYR.d.mts} +1 -1
- package/dist/{as-config-dialog-mz5oML3g.mjs → as-config-dialog-DAqSy8zx.mjs} +2 -2
- package/dist/{as-config-dialog-6QNcUtFs.cjs → as-config-dialog-DKYI4uQ0.cjs} +2 -2
- package/dist/as-config-dialog.cjs +1 -1
- package/dist/as-config-dialog.mjs +1 -1
- package/dist/{as-confirm-dialog-Dj-nIpgR.mjs → as-confirm-dialog-B1zuisFu.mjs} +1 -1
- package/dist/{as-confirm-dialog-dnSPMGyB.cjs → as-confirm-dialog-BqvOf3yo.cjs} +1 -1
- package/dist/as-confirm-dialog.cjs +1 -1
- package/dist/as-confirm-dialog.mjs +1 -1
- package/dist/{as-filter-dialog-BBMHtQRx.cjs → as-filter-dialog-CPUVRQ7U.cjs} +7 -7
- package/dist/{as-filter-dialog-BFy5tg8o.mjs → as-filter-dialog-Gl5U-9OS.mjs} +7 -7
- package/dist/as-filter-dialog.cjs +1 -1
- package/dist/as-filter-dialog.mjs +1 -1
- package/dist/{as-filter-field-DiSwUOJG.mjs → as-filter-field-C4BI5jwc.mjs} +3 -3
- package/dist/{as-filter-field-BRSNhFa5.cjs → as-filter-field-DllWImJE.cjs} +3 -3
- package/dist/as-filter-field.cjs +1 -1
- package/dist/as-filter-field.mjs +1 -1
- package/dist/{as-filters-N95wOVF4.mjs → as-filters-DUSyWqRX.mjs} +3 -3
- package/dist/{as-filters-B82jw5f5.cjs → as-filters-bXSMPvBh.cjs} +3 -3
- package/dist/as-filters.cjs +1 -1
- package/dist/as-filters.mjs +1 -1
- package/dist/{as-preset-dialog-KUcH4G-M.cjs → as-preset-dialog-BXO1O1q0.cjs} +1 -1
- package/dist/{as-preset-dialog-DZ106BdC.mjs → as-preset-dialog-CuWw5fuN.mjs} +1 -1
- package/dist/as-preset-dialog.cjs +1 -1
- package/dist/as-preset-dialog.mjs +1 -1
- package/dist/{as-preset-picker-DrhvxmxV.cjs → as-preset-picker-BBkjl0fs.cjs} +1 -1
- package/dist/{as-preset-picker-DUEObd_i.mjs → as-preset-picker-CyBbOnBS.mjs} +1 -1
- package/dist/as-preset-picker.cjs +1 -1
- package/dist/as-preset-picker.mjs +1 -1
- package/dist/{as-row-actions-DSsKbKGO.cjs → as-row-actions-BoOAXAeW.cjs} +2 -2
- package/dist/{as-row-actions-CrqYfsva.mjs → as-row-actions-DIpn-EYD.mjs} +2 -2
- package/dist/as-row-actions.cjs +1 -1
- package/dist/as-row-actions.mjs +1 -1
- package/dist/{as-table-MKVsJZxT.cjs → as-table-B8zdNqeN.cjs} +2 -2
- package/dist/{as-table-Bo2dAWTD.mjs → as-table-BWWcR-0B.mjs} +2 -2
- package/dist/{as-table-actions-_kHRpDah.cjs → as-table-actions-Cd7KoTEK.cjs} +3 -3
- package/dist/{as-table-actions-CJfrl39w.mjs → as-table-actions-DQ3xaFXJ.mjs} +3 -3
- 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-l3DnLVxA.d.mts → as-table-actions.vue-CokIIKDL.d.mts} +2 -2
- package/dist/{as-table-actions.vue-CCCICVBr.d.cts → as-table-actions.vue-D1VcrsSM.d.cts} +2 -2
- package/dist/{as-table-base-D6VP4rrr.cjs → as-table-base-CryorP14.cjs} +2 -2
- package/dist/{as-table-base-BxruWtW2.mjs → as-table-base-ybGbySqt.mjs} +2 -2
- package/dist/{as-table-header-cell-BeHbNQjP.cjs → as-table-header-cell-BEwpWr4m.cjs} +1 -1
- package/dist/{as-table-header-cell-xKGgCjbF.mjs → as-table-header-cell-mCOAZsjL.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-CzqTEpyk.d.cts → as-table-header-cell.vue-DsVfhlk3.d.mts} +2 -2
- package/dist/{as-table-header-cell.vue-Dj_Tl7dZ.d.mts → as-table-header-cell.vue-jvtDmqhR.d.cts} +2 -2
- package/dist/{as-table-root-DFYbEtFF.cjs → as-table-root-BNJ1yqaD.cjs} +4 -4
- package/dist/{as-table-root-CqjewHJz.mjs → as-table-root-BQNXfIvB.mjs} +4 -4
- package/dist/as-table-root.cjs +1 -1
- package/dist/as-table-root.d.cts +1 -1
- package/dist/as-table-root.d.mts +1 -1
- package/dist/as-table-root.mjs +1 -1
- package/dist/{as-table-root.vue-BukHIoYu.d.cts → as-table-root.vue-D3FPtr3T.d.cts} +5 -5
- package/dist/{as-table-root.vue-BjeThuub.d.mts → as-table-root.vue-DVPxUP_F.d.mts} +5 -5
- package/dist/{as-table-status-4OaguC5n.mjs → as-table-status-DUJixKkQ.mjs} +4 -4
- package/dist/{as-table-status-Diyy3DFB.cjs → as-table-status-Dv8cYqEG.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-CDPbZQRG.d.cts → as-table.vue-ClTk8h2d.d.mts} +4 -4
- package/dist/{as-table.vue-DaVtNFIe.d.mts → as-table.vue-DjpQ5xKN.d.cts} +4 -4
- package/dist/{as-window-table-BUrMxrbr.mjs → as-window-table-DRbmDwi3.mjs} +2 -2
- package/dist/{as-window-table-DtnaCKyR.cjs → as-window-table-DVMMiLK6.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-Gs52IsYw.d.mts → as-window-table.vue-BPq-1zfL.d.cts} +4 -4
- package/dist/{as-window-table.vue-DvzoPu-B.d.cts → as-window-table.vue-DfAUpZp3.d.mts} +4 -4
- 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-BWeFiZKk.d.mts → types-BMvxn9iU.d.mts} +6 -0
- package/dist/{types-BPFBxUS_.d.cts → types-CDJmLD-E.d.cts} +6 -0
- package/dist/{use-table-BDkSpj7h.mjs → use-table-CGxkBszK.mjs} +1 -1
- package/dist/{use-table-w7Bpuk95.cjs → use-table-CaegBdPZ.cjs} +1 -1
- package/dist/{use-table-component-D1Ea4qv_.mjs → use-table-component-ClgvnuRH.mjs} +1 -1
- package/dist/{use-table-component-Bs1T8Mk3.cjs → use-table-component-D-1kzctZ.cjs} +1 -1
- package/dist/{use-table-nav-bridge-jZMWrBI8.mjs → use-table-nav-bridge-C3gqHOIa.mjs} +1 -1
- package/dist/{use-table-nav-bridge-DVAQCVrs.cjs → use-table-nav-bridge-bZIH2d6Y.cjs} +1 -1
- package/dist/{use-table-state-CmTX31G4.cjs → use-table-state-152Ejpyo.cjs} +8 -7
- package/dist/{use-table-state-C0m71e4n.mjs → use-table-state-BHAwfUKw.mjs} +8 -7
- package/package.json +4 -4
|
@@ -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-CDJmLD-E.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";
|
|
@@ -2255,17 +2255,17 @@ declare const __VLS_base: vue.DefineComponent<__VLS_PublicProps, {
|
|
|
2255
2255
|
"update:selectedRows": (value: unknown[]) => any;
|
|
2256
2256
|
"update:urlQuery": (value: string | undefined) => any;
|
|
2257
2257
|
} & {
|
|
2258
|
-
|
|
2259
|
-
action: (
|
|
2258
|
+
action: (action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: KeyboardEvent | MouseEvent | undefined) => any;
|
|
2259
|
+
"main-action": (row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any;
|
|
2260
2260
|
}, string, vue.PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
2261
|
-
|
|
2262
|
-
onAction?: ((action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any) | undefined;
|
|
2261
|
+
onAction?: ((action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: KeyboardEvent | MouseEvent | undefined) => any) | undefined;
|
|
2263
2262
|
"onUpdate:filterFields"?: ((value: string[]) => any) | undefined;
|
|
2264
2263
|
"onUpdate:columnNames"?: ((value: string[]) => any) | undefined;
|
|
2265
2264
|
"onUpdate:columnWidths"?: ((value: ColumnWidthsMap) => any) | undefined;
|
|
2266
2265
|
"onUpdate:sorters"?: ((value: SortControl[]) => any) | undefined;
|
|
2267
2266
|
"onUpdate:selectedRows"?: ((value: unknown[]) => any) | undefined;
|
|
2268
2267
|
"onUpdate:urlQuery"?: ((value: string | undefined) => any) | undefined;
|
|
2268
|
+
"onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any) | undefined;
|
|
2269
2269
|
}>, {
|
|
2270
2270
|
queryOnMount: boolean;
|
|
2271
2271
|
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-BMvxn9iU.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";
|
|
@@ -2255,17 +2255,17 @@ declare const __VLS_base: vue.DefineComponent<__VLS_PublicProps, {
|
|
|
2255
2255
|
"update:selectedRows": (value: unknown[]) => any;
|
|
2256
2256
|
"update:urlQuery": (value: string | undefined) => any;
|
|
2257
2257
|
} & {
|
|
2258
|
-
|
|
2259
|
-
action: (
|
|
2258
|
+
action: (action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: KeyboardEvent | MouseEvent | undefined) => any;
|
|
2259
|
+
"main-action": (row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any;
|
|
2260
2260
|
}, string, vue.PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
2261
|
-
|
|
2262
|
-
onAction?: ((action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any) | undefined;
|
|
2261
|
+
onAction?: ((action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: KeyboardEvent | MouseEvent | undefined) => any) | undefined;
|
|
2263
2262
|
"onUpdate:filterFields"?: ((value: string[]) => any) | undefined;
|
|
2264
2263
|
"onUpdate:columnNames"?: ((value: string[]) => any) | undefined;
|
|
2265
2264
|
"onUpdate:columnWidths"?: ((value: ColumnWidthsMap) => any) | undefined;
|
|
2266
2265
|
"onUpdate:sorters"?: ((value: SortControl[]) => any) | undefined;
|
|
2267
2266
|
"onUpdate:selectedRows"?: ((value: unknown[]) => any) | undefined;
|
|
2268
2267
|
"onUpdate:urlQuery"?: ((value: string | undefined) => any) | undefined;
|
|
2268
|
+
"onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any) | undefined;
|
|
2269
2269
|
}>, {
|
|
2270
2270
|
queryOnMount: boolean;
|
|
2271
2271
|
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-BHAwfUKw.mjs";
|
|
2
|
+
import { t as useTableComponent } from "./use-table-component-ClgvnuRH.mjs";
|
|
3
|
+
import { t as as_table_header_cell_default } from "./as-table-header-cell-mCOAZsjL.mjs";
|
|
4
|
+
import { t as as_row_actions_default } from "./as-row-actions-DIpn-EYD.mjs";
|
|
5
5
|
import { t as as_table_cell_value_default } from "./as-table-cell-value-Byrb_Zyh.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-152Ejpyo.cjs");
|
|
2
|
+
const require_use_table_component = require("./use-table-component-D-1kzctZ.cjs");
|
|
3
|
+
const require_as_table_header_cell = require("./as-table-header-cell-BEwpWr4m.cjs");
|
|
4
|
+
const require_as_row_actions = require("./as-row-actions-BoOAXAeW.cjs");
|
|
5
5
|
const require_as_table_cell_value = require("./as-table-cell-value-CcWR5oG4.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-B8zdNqeN.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-DjpQ5xKN.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-ClTk8h2d.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-BWWcR-0B.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 * as vue from "vue";
|
|
1
|
+
import { f as RowDeleteOpt, n as ColumnMenuConfig } from "./types-BMvxn9iU.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,11 +60,11 @@ 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:
|
|
63
|
+
"main-action": (row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any;
|
|
64
64
|
"row-click": (row: Record<string, unknown>, event: MouseEvent) => any;
|
|
65
65
|
"row-dblclick": (row: Record<string, unknown>, event: MouseEvent) => any;
|
|
66
66
|
}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
67
|
-
"onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event:
|
|
67
|
+
"onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any) | undefined;
|
|
68
68
|
"onRow-click"?: ((row: Record<string, unknown>, event: MouseEvent) => any) | undefined;
|
|
69
69
|
"onRow-dblclick"?: ((row: Record<string, unknown>, event: MouseEvent) => any) | undefined;
|
|
70
70
|
}>, {
|
|
@@ -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-CDJmLD-E.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,11 +60,11 @@ 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:
|
|
63
|
+
"main-action": (row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any;
|
|
64
64
|
"row-click": (row: Record<string, unknown>, event: MouseEvent) => any;
|
|
65
65
|
"row-dblclick": (row: Record<string, unknown>, event: MouseEvent) => any;
|
|
66
66
|
}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
67
|
-
"onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event:
|
|
67
|
+
"onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any) | undefined;
|
|
68
68
|
"onRow-click"?: ((row: Record<string, unknown>, event: MouseEvent) => any) | undefined;
|
|
69
69
|
"onRow-dblclick"?: ((row: Record<string, unknown>, event: MouseEvent) => any) | undefined;
|
|
70
70
|
}>, {
|
|
@@ -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-BHAwfUKw.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-DUJixKkQ.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";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const require_use_table_state = require("./use-table-state-
|
|
1
|
+
const require_use_table_state = require("./use-table-state-152Ejpyo.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-Dv8cYqEG.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");
|
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-DVMMiLK6.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-BPq-1zfL.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-DfAUpZp3.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-DRbmDwi3.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-CDJmLD-E.cjs";
|
|
2
2
|
import * as vue from "vue";
|
|
3
3
|
import { SelectionMode } from "@atscript/ui-table";
|
|
4
4
|
|
|
@@ -64,19 +64,19 @@ 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:
|
|
67
|
+
"main-action": (row: Row, absIndex: number, event: KeyboardEvent | MouseEvent) => any;
|
|
68
68
|
"row-click": (row: Row, event: MouseEvent) => any;
|
|
69
69
|
"row-dblclick": (row: Row, event: MouseEvent) => 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:
|
|
72
|
+
"onMain-action"?: ((row: Row, absIndex: number, event: KeyboardEvent | MouseEvent) => any) | undefined;
|
|
73
73
|
"onRow-click"?: ((row: Row, event: MouseEvent) => any) | undefined;
|
|
74
74
|
"onRow-dblclick"?: ((row: Row, event: MouseEvent) => any) | undefined;
|
|
75
75
|
onError?: ((error: Error, kind: QueryErrorKind) => any) | undefined;
|
|
76
76
|
}>, {
|
|
77
|
+
select: SelectionMode;
|
|
77
78
|
rowHeight: number;
|
|
78
79
|
wheelRowsPerTick: number;
|
|
79
|
-
select: SelectionMode;
|
|
80
80
|
reorderable: boolean;
|
|
81
81
|
resizable: boolean;
|
|
82
82
|
columnMinWidth: number;
|
|
@@ -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-BMvxn9iU.mjs";
|
|
2
2
|
import * as vue from "vue";
|
|
3
3
|
import { SelectionMode } from "@atscript/ui-table";
|
|
4
4
|
|
|
@@ -64,19 +64,19 @@ 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:
|
|
67
|
+
"main-action": (row: Row, absIndex: number, event: KeyboardEvent | MouseEvent) => any;
|
|
68
68
|
"row-click": (row: Row, event: MouseEvent) => any;
|
|
69
69
|
"row-dblclick": (row: Row, event: MouseEvent) => 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:
|
|
72
|
+
"onMain-action"?: ((row: Row, absIndex: number, event: KeyboardEvent | MouseEvent) => any) | undefined;
|
|
73
73
|
"onRow-click"?: ((row: Row, event: MouseEvent) => any) | undefined;
|
|
74
74
|
"onRow-dblclick"?: ((row: Row, event: MouseEvent) => any) | undefined;
|
|
75
75
|
onError?: ((error: Error, kind: QueryErrorKind) => any) | undefined;
|
|
76
76
|
}>, {
|
|
77
|
+
select: SelectionMode;
|
|
77
78
|
rowHeight: number;
|
|
78
79
|
wheelRowsPerTick: number;
|
|
79
|
-
select: SelectionMode;
|
|
80
80
|
reorderable: boolean;
|
|
81
81
|
resizable: boolean;
|
|
82
82
|
columnMinWidth: number;
|
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-152Ejpyo.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-CaegBdPZ.cjs");
|
|
5
|
+
const require_use_table_nav_bridge = require("./use-table-nav-bridge-bZIH2d6Y.cjs");
|
|
6
|
+
const require_use_table_component = require("./use-table-component-D-1kzctZ.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-CSbJgz5B.cjs");
|
|
14
14
|
const require_as_cell_union = require("./as-cell-union-CT0rIvQq.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-DKYI4uQ0.cjs");
|
|
17
|
+
const require_as_confirm_dialog = require("./as-confirm-dialog-BqvOf3yo.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-CPUVRQ7U.cjs");
|
|
20
|
+
const require_as_table_header_cell = require("./as-table-header-cell-BEwpWr4m.cjs");
|
|
21
|
+
const require_as_window_table = require("./as-window-table-DVMMiLK6.cjs");
|
|
22
|
+
const require_as_filter_field = require("./as-filter-field-DllWImJE.cjs");
|
|
23
|
+
const require_as_filters = require("./as-filters-bXSMPvBh.cjs");
|
|
24
|
+
const require_as_preset_dialog = require("./as-preset-dialog-BXO1O1q0.cjs");
|
|
25
|
+
const require_as_row_actions = require("./as-row-actions-BoOAXAeW.cjs");
|
|
26
26
|
const require_as_table_cell_value = require("./as-table-cell-value-CcWR5oG4.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-BNJ1yqaD.cjs");
|
|
28
|
+
const require_as_table = require("./as-table-B8zdNqeN.cjs");
|
|
29
|
+
const require_as_table_actions = require("./as-table-actions-Cd7KoTEK.cjs");
|
|
30
|
+
const require_as_preset_picker = require("./as-preset-picker-BBkjl0fs.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");
|
package/dist/index.d.cts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { t as _default$11 } from "./as-filters.vue-fv-tRL2H.cjs";
|
|
2
2
|
import { t as _default$13 } from "./as-preset-picker.vue-DfXS3pGl.cjs";
|
|
3
|
-
import { _ as TableNavBridge, c as NavKeyOptions, d as ReactiveTableState, f as RowDeleteOpt, g as TableActionsState, h as TVueTableActionInfo, m as TAsTableControls, n as ColumnMenuConfig, o as InvokeOpts, p as TAsCellTypeComponents, r as ConfigTab, s as MainActionRequest, t as ActionResult, u as QueryErrorKind } from "./types-
|
|
4
|
-
import { t as _default$16 } from "./as-table-actions.vue-
|
|
5
|
-
import { $ as createTableState, A as createDefaultControls, B as useTableSearch, C as formatCellValue, D as provideCellLocale, E as CellLocale, F as AS_PRESETS_APP, G as useTable, H as useTableNavBridge, I as injectPresetsApp, J as CreateStaticTableStateOptions, K as SelectionPersistence, L as UseTableUrlQueryOptions, M as UseAppPrefsOptions, N as UseAppPrefsReturn, O as useCellLocale, P as useAppPrefs, Q as createStaticTableState, R as useTableUrlQuery, S as extractIdentifier, T as getColumnWidth, U as UseTableOptions, V as useTableFilter, W as clearTableCache, X as TableContext, Y as CreateTableStateOptions, Z as TableStateInternals, _ as getDefaultClientFactory, a as PRESET_ASPECTS, at as usePresets, b as resolveSystemPresets, c as PresetData, ct as UseLocalDraftReturn, d as STANDARD_PRESET_ID, et as useTableContext, f as SYSTEM_PRESET_PREFIX, g as UserConfData, h as UrlQuerySync, i as ClientFactory, it as UsePresetsReturn, j as useTableComponent, k as createDefaultCellTypes, l as PresetSnapshot, lt as useLocalDraft, m as SystemPresetInput, n as AppConfData, nt as ActivePresetView, o as PresetAspect, ot as StorageLike, p as SystemPreset, q as useTableSelection, r as AsPresetEntryRow, rt as UsePresetsOptions, s as PresetCapabilities, st as UseLocalDraftOptions, t as _default$19, tt as useTableContextOptional, u as PresetSnapshotWire, v as isSystemPresetId, w as getCellValue, x as setDefaultClientFactory, y as resetDefaultClientFactory, z as useTableActions } from "./as-table-root.vue-
|
|
6
|
-
import { t as _default$15 } from "./as-table.vue-
|
|
7
|
-
import { t as _default$20 } from "./as-window-table.vue-
|
|
3
|
+
import { _ as TableNavBridge, c as NavKeyOptions, d as ReactiveTableState, f as RowDeleteOpt, g as TableActionsState, h as TVueTableActionInfo, m as TAsTableControls, n as ColumnMenuConfig, o as InvokeOpts, p as TAsCellTypeComponents, r as ConfigTab, s as MainActionRequest, t as ActionResult, u as QueryErrorKind } from "./types-CDJmLD-E.cjs";
|
|
4
|
+
import { t as _default$16 } from "./as-table-actions.vue-D1VcrsSM.cjs";
|
|
5
|
+
import { $ as createTableState, A as createDefaultControls, B as useTableSearch, C as formatCellValue, D as provideCellLocale, E as CellLocale, F as AS_PRESETS_APP, G as useTable, H as useTableNavBridge, I as injectPresetsApp, J as CreateStaticTableStateOptions, K as SelectionPersistence, L as UseTableUrlQueryOptions, M as UseAppPrefsOptions, N as UseAppPrefsReturn, O as useCellLocale, P as useAppPrefs, Q as createStaticTableState, R as useTableUrlQuery, S as extractIdentifier, T as getColumnWidth, U as UseTableOptions, V as useTableFilter, W as clearTableCache, X as TableContext, Y as CreateTableStateOptions, Z as TableStateInternals, _ as getDefaultClientFactory, a as PRESET_ASPECTS, at as usePresets, b as resolveSystemPresets, c as PresetData, ct as UseLocalDraftReturn, d as STANDARD_PRESET_ID, et as useTableContext, f as SYSTEM_PRESET_PREFIX, g as UserConfData, h as UrlQuerySync, i as ClientFactory, it as UsePresetsReturn, j as useTableComponent, k as createDefaultCellTypes, l as PresetSnapshot, lt as useLocalDraft, m as SystemPresetInput, n as AppConfData, nt as ActivePresetView, o as PresetAspect, ot as StorageLike, p as SystemPreset, q as useTableSelection, r as AsPresetEntryRow, rt as UsePresetsOptions, s as PresetCapabilities, st as UseLocalDraftOptions, t as _default$19, tt as useTableContextOptional, u as PresetSnapshotWire, v as isSystemPresetId, w as getCellValue, x as setDefaultClientFactory, y as resetDefaultClientFactory, z as useTableActions } from "./as-table-root.vue-D3FPtr3T.cjs";
|
|
6
|
+
import { t as _default$15 } from "./as-table.vue-DjpQ5xKN.cjs";
|
|
7
|
+
import { t as _default$20 } from "./as-window-table.vue-BPq-1zfL.cjs";
|
|
8
8
|
import { t as _default } from "./as-cell-array.vue-pFs5GcCR.cjs";
|
|
9
9
|
import { t as _default$1 } from "./as-cell-date.vue-BBSps2B2.cjs";
|
|
10
10
|
import { t as _default$2 } from "./as-cell-json.vue-C6wg4ARZ.cjs";
|
|
11
11
|
import { t as _default$3 } from "./as-cell-number.vue-CJ2K5zeM.cjs";
|
|
12
12
|
import { t as _default$4 } from "./as-cell-union.vue-CslPM_c2.cjs";
|
|
13
|
-
import { t as _default$5 } from "./as-column-menu.vue-
|
|
13
|
+
import { t as _default$5 } from "./as-column-menu.vue-DZawdGvY.cjs";
|
|
14
14
|
import { t as _default$6 } from "./as-config-dialog.vue-DvvJi3xx.cjs";
|
|
15
15
|
import { t as _default$7 } from "./as-confirm-dialog.vue-CXxLpzbu.cjs";
|
|
16
16
|
import { t as _default$8 } from "./as-filter-dialog.vue-BV2J8PgZ.cjs";
|
|
@@ -19,5 +19,5 @@ import { t as _default$10 } from "./as-filter-input.vue-CS4nOk_Q.cjs";
|
|
|
19
19
|
import { t as _default$12 } from "./as-preset-dialog.vue-DP9fy00Y.cjs";
|
|
20
20
|
import { t as _default$14 } from "./as-row-actions.vue-Bvcc2tUN.cjs";
|
|
21
21
|
import { t as _default$17 } from "./as-table-cell-value.vue-BgFDv2JQ.cjs";
|
|
22
|
-
import { t as _default$18 } from "./as-table-header-cell.vue-
|
|
22
|
+
import { t as _default$18 } from "./as-table-header-cell.vue-jvtDmqhR.cjs";
|
|
23
23
|
export { AS_PRESETS_APP, ActionResult, ActivePresetView, AppConfData, _default as AsCellArray, _default$1 as AsCellDate, _default$2 as AsCellJson, _default$3 as AsCellNumber, _default$4 as AsCellUnion, _default$5 as AsColumnMenu, _default$6 as AsConfigDialog, _default$7 as AsConfirmDialog, _default$8 as AsFilterDialog, _default$9 as AsFilterField, _default$10 as AsFilterInput, _default$11 as AsFilters, _default$12 as AsPresetDialog, AsPresetEntryRow, _default$13 as AsPresetPicker, _default$14 as AsRowActions, _default$15 as AsTable, _default$16 as AsTableActions, _default$17 as AsTableCellValue, _default$18 as AsTableHeaderCell, _default$19 as AsTableRoot, _default$20 as AsWindowTable, CellLocale, ClientFactory, ColumnMenuConfig, ConfigTab, CreateStaticTableStateOptions, CreateTableStateOptions, InvokeOpts, MainActionRequest, NavKeyOptions, PRESET_ASPECTS, PresetAspect, PresetCapabilities, PresetData, PresetSnapshot, PresetSnapshotWire, QueryErrorKind, ReactiveTableState, RowDeleteOpt, STANDARD_PRESET_ID, SYSTEM_PRESET_PREFIX, SelectionPersistence, StorageLike, SystemPreset, SystemPresetInput, TAsCellTypeComponents, TAsTableControls, TVueTableActionInfo, TableActionsState, TableContext, TableNavBridge, TableStateInternals, UrlQuerySync, UseAppPrefsOptions, UseAppPrefsReturn, UseLocalDraftOptions, UseLocalDraftReturn, UsePresetsOptions, UsePresetsReturn, UseTableOptions, UseTableUrlQueryOptions, UserConfData, clearTableCache, createDefaultCellTypes, createDefaultControls, createStaticTableState, createTableState, extractIdentifier, formatCellValue, getCellValue, getColumnWidth, getDefaultClientFactory, injectPresetsApp, isSystemPresetId, provideCellLocale, resetDefaultClientFactory, resolveSystemPresets, setDefaultClientFactory, useAppPrefs, useCellLocale, useLocalDraft, usePresets, useTable, useTableActions, useTableComponent, useTableContext, useTableContextOptional, useTableFilter, useTableNavBridge, useTableSearch, useTableSelection, useTableUrlQuery };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { t as _default$11 } from "./as-filters.vue-DmECMd1v.mjs";
|
|
2
2
|
import { t as _default$13 } from "./as-preset-picker.vue-BPjsiaVt.mjs";
|
|
3
|
-
import { _ as TableNavBridge, c as NavKeyOptions, d as ReactiveTableState, f as RowDeleteOpt, g as TableActionsState, h as TVueTableActionInfo, m as TAsTableControls, n as ColumnMenuConfig, o as InvokeOpts, p as TAsCellTypeComponents, r as ConfigTab, s as MainActionRequest, t as ActionResult, u as QueryErrorKind } from "./types-
|
|
4
|
-
import { t as _default$16 } from "./as-table-actions.vue-
|
|
5
|
-
import { $ as createTableState, A as createDefaultControls, B as useTableSearch, C as formatCellValue, D as provideCellLocale, E as CellLocale, F as AS_PRESETS_APP, G as useTable, H as useTableNavBridge, I as injectPresetsApp, J as CreateStaticTableStateOptions, K as SelectionPersistence, L as UseTableUrlQueryOptions, M as UseAppPrefsOptions, N as UseAppPrefsReturn, O as useCellLocale, P as useAppPrefs, Q as createStaticTableState, R as useTableUrlQuery, S as extractIdentifier, T as getColumnWidth, U as UseTableOptions, V as useTableFilter, W as clearTableCache, X as TableContext, Y as CreateTableStateOptions, Z as TableStateInternals, _ as getDefaultClientFactory, a as PRESET_ASPECTS, at as usePresets, b as resolveSystemPresets, c as PresetData, ct as UseLocalDraftReturn, d as STANDARD_PRESET_ID, et as useTableContext, f as SYSTEM_PRESET_PREFIX, g as UserConfData, h as UrlQuerySync, i as ClientFactory, it as UsePresetsReturn, j as useTableComponent, k as createDefaultCellTypes, l as PresetSnapshot, lt as useLocalDraft, m as SystemPresetInput, n as AppConfData, nt as ActivePresetView, o as PresetAspect, ot as StorageLike, p as SystemPreset, q as useTableSelection, r as AsPresetEntryRow, rt as UsePresetsOptions, s as PresetCapabilities, st as UseLocalDraftOptions, t as _default$19, tt as useTableContextOptional, u as PresetSnapshotWire, v as isSystemPresetId, w as getCellValue, x as setDefaultClientFactory, y as resetDefaultClientFactory, z as useTableActions } from "./as-table-root.vue-
|
|
6
|
-
import { t as _default$15 } from "./as-table.vue-
|
|
7
|
-
import { t as _default$20 } from "./as-window-table.vue-
|
|
3
|
+
import { _ as TableNavBridge, c as NavKeyOptions, d as ReactiveTableState, f as RowDeleteOpt, g as TableActionsState, h as TVueTableActionInfo, m as TAsTableControls, n as ColumnMenuConfig, o as InvokeOpts, p as TAsCellTypeComponents, r as ConfigTab, s as MainActionRequest, t as ActionResult, u as QueryErrorKind } from "./types-BMvxn9iU.mjs";
|
|
4
|
+
import { t as _default$16 } from "./as-table-actions.vue-CokIIKDL.mjs";
|
|
5
|
+
import { $ as createTableState, A as createDefaultControls, B as useTableSearch, C as formatCellValue, D as provideCellLocale, E as CellLocale, F as AS_PRESETS_APP, G as useTable, H as useTableNavBridge, I as injectPresetsApp, J as CreateStaticTableStateOptions, K as SelectionPersistence, L as UseTableUrlQueryOptions, M as UseAppPrefsOptions, N as UseAppPrefsReturn, O as useCellLocale, P as useAppPrefs, Q as createStaticTableState, R as useTableUrlQuery, S as extractIdentifier, T as getColumnWidth, U as UseTableOptions, V as useTableFilter, W as clearTableCache, X as TableContext, Y as CreateTableStateOptions, Z as TableStateInternals, _ as getDefaultClientFactory, a as PRESET_ASPECTS, at as usePresets, b as resolveSystemPresets, c as PresetData, ct as UseLocalDraftReturn, d as STANDARD_PRESET_ID, et as useTableContext, f as SYSTEM_PRESET_PREFIX, g as UserConfData, h as UrlQuerySync, i as ClientFactory, it as UsePresetsReturn, j as useTableComponent, k as createDefaultCellTypes, l as PresetSnapshot, lt as useLocalDraft, m as SystemPresetInput, n as AppConfData, nt as ActivePresetView, o as PresetAspect, ot as StorageLike, p as SystemPreset, q as useTableSelection, r as AsPresetEntryRow, rt as UsePresetsOptions, s as PresetCapabilities, st as UseLocalDraftOptions, t as _default$19, tt as useTableContextOptional, u as PresetSnapshotWire, v as isSystemPresetId, w as getCellValue, x as setDefaultClientFactory, y as resetDefaultClientFactory, z as useTableActions } from "./as-table-root.vue-DVPxUP_F.mjs";
|
|
6
|
+
import { t as _default$15 } from "./as-table.vue-ClTk8h2d.mjs";
|
|
7
|
+
import { t as _default$20 } from "./as-window-table.vue-DfAUpZp3.mjs";
|
|
8
8
|
import { t as _default } from "./as-cell-array.vue-D4vS7C_D.mjs";
|
|
9
9
|
import { t as _default$1 } from "./as-cell-date.vue-Chs7WTZ9.mjs";
|
|
10
10
|
import { t as _default$2 } from "./as-cell-json.vue-C0_LDvQw.mjs";
|
|
11
11
|
import { t as _default$3 } from "./as-cell-number.vue-BBF0OuU8.mjs";
|
|
12
12
|
import { t as _default$4 } from "./as-cell-union.vue-CL-Lf-Rm.mjs";
|
|
13
|
-
import { t as _default$5 } from "./as-column-menu.vue-
|
|
13
|
+
import { t as _default$5 } from "./as-column-menu.vue-csCNmAYR.mjs";
|
|
14
14
|
import { t as _default$6 } from "./as-config-dialog.vue-BvFZZRuY.mjs";
|
|
15
15
|
import { t as _default$7 } from "./as-confirm-dialog.vue-Cz52-v6c.mjs";
|
|
16
16
|
import { t as _default$8 } from "./as-filter-dialog.vue-likNLqzF.mjs";
|
|
@@ -19,5 +19,5 @@ import { t as _default$10 } from "./as-filter-input.vue-B9ma2l9j.mjs";
|
|
|
19
19
|
import { t as _default$12 } from "./as-preset-dialog.vue-BRjjfPty.mjs";
|
|
20
20
|
import { t as _default$14 } from "./as-row-actions.vue-DUSDuoR2.mjs";
|
|
21
21
|
import { t as _default$17 } from "./as-table-cell-value.vue-kfNgVhzn.mjs";
|
|
22
|
-
import { t as _default$18 } from "./as-table-header-cell.vue-
|
|
22
|
+
import { t as _default$18 } from "./as-table-header-cell.vue-DsVfhlk3.mjs";
|
|
23
23
|
export { AS_PRESETS_APP, ActionResult, ActivePresetView, AppConfData, _default as AsCellArray, _default$1 as AsCellDate, _default$2 as AsCellJson, _default$3 as AsCellNumber, _default$4 as AsCellUnion, _default$5 as AsColumnMenu, _default$6 as AsConfigDialog, _default$7 as AsConfirmDialog, _default$8 as AsFilterDialog, _default$9 as AsFilterField, _default$10 as AsFilterInput, _default$11 as AsFilters, _default$12 as AsPresetDialog, AsPresetEntryRow, _default$13 as AsPresetPicker, _default$14 as AsRowActions, _default$15 as AsTable, _default$16 as AsTableActions, _default$17 as AsTableCellValue, _default$18 as AsTableHeaderCell, _default$19 as AsTableRoot, _default$20 as AsWindowTable, CellLocale, ClientFactory, ColumnMenuConfig, ConfigTab, CreateStaticTableStateOptions, CreateTableStateOptions, InvokeOpts, MainActionRequest, NavKeyOptions, PRESET_ASPECTS, PresetAspect, PresetCapabilities, PresetData, PresetSnapshot, PresetSnapshotWire, QueryErrorKind, ReactiveTableState, RowDeleteOpt, STANDARD_PRESET_ID, SYSTEM_PRESET_PREFIX, SelectionPersistence, StorageLike, SystemPreset, SystemPresetInput, TAsCellTypeComponents, TAsTableControls, TVueTableActionInfo, TableActionsState, TableContext, TableNavBridge, TableStateInternals, UrlQuerySync, UseAppPrefsOptions, UseAppPrefsReturn, UseLocalDraftOptions, UseLocalDraftReturn, UsePresetsOptions, UsePresetsReturn, UseTableOptions, UseTableUrlQueryOptions, UserConfData, clearTableCache, createDefaultCellTypes, createDefaultControls, createStaticTableState, createTableState, extractIdentifier, formatCellValue, getCellValue, getColumnWidth, getDefaultClientFactory, injectPresetsApp, isSystemPresetId, provideCellLocale, resetDefaultClientFactory, resolveSystemPresets, setDefaultClientFactory, useAppPrefs, useCellLocale, useLocalDraft, usePresets, useTable, useTableActions, useTableComponent, useTableContext, useTableContextOptional, useTableFilter, useTableNavBridge, useTableSearch, useTableSelection, useTableUrlQuery };
|
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { _ as ROW_ACTIONS_TYPE, a as useTableContext, f as extractIdentifier, n as createTableState, o as useTableContextOptional, t as createStaticTableState } from "./use-table-state-
|
|
1
|
+
import { _ as ROW_ACTIONS_TYPE, a as useTableContext, f as extractIdentifier, n as createTableState, o as useTableContextOptional, t as createStaticTableState } from "./use-table-state-BHAwfUKw.mjs";
|
|
2
2
|
import { n as useTableSelection } from "./use-table-selection-C84z4OZy.mjs";
|
|
3
|
-
import { a as AS_PRESETS_APP, i as useLocalDraft, n as useTable, o as injectPresetsApp, r as usePresets, t as clearTableCache } from "./use-table-
|
|
4
|
-
import { t as useTableNavBridge } from "./use-table-nav-bridge-
|
|
5
|
-
import { t as useTableComponent } from "./use-table-component-
|
|
3
|
+
import { a as AS_PRESETS_APP, i as useLocalDraft, n as useTable, o as injectPresetsApp, r as usePresets, t as clearTableCache } from "./use-table-CGxkBszK.mjs";
|
|
4
|
+
import { t as useTableNavBridge } from "./use-table-nav-bridge-C3gqHOIa.mjs";
|
|
5
|
+
import { t as useTableComponent } from "./use-table-component-ClgvnuRH.mjs";
|
|
6
6
|
import { t as getCellValue } from "./get-cell-value-C8LLc_Rr.mjs";
|
|
7
7
|
import { t as as_cell_array_default } from "./as-cell-array-2qmJ1lT2.mjs";
|
|
8
8
|
import { t as as_cell_date_default } from "./as-cell-date-BwFgi6O0.mjs";
|
|
@@ -12,21 +12,21 @@ import { t as as_cell_number_default } from "./as-cell-number-DKRaS9pM.mjs";
|
|
|
12
12
|
import { t as formatCellValue } from "./format-cell-CNQ6BpvR.mjs";
|
|
13
13
|
import { t as as_cell_union_default } from "./as-cell-union-sAOSdepj.mjs";
|
|
14
14
|
import { t as as_column_menu_default } from "./as-column-menu-kTIQfLTi.mjs";
|
|
15
|
-
import { t as as_config_dialog_default } from "./as-config-dialog-
|
|
16
|
-
import { t as as_confirm_dialog_default } from "./as-confirm-dialog-
|
|
15
|
+
import { t as as_config_dialog_default } from "./as-config-dialog-DAqSy8zx.mjs";
|
|
16
|
+
import { t as as_confirm_dialog_default } from "./as-confirm-dialog-B1zuisFu.mjs";
|
|
17
17
|
import { t as as_filter_input_default } from "./as-filter-input-BM23TNeh.mjs";
|
|
18
|
-
import { t as as_filter_dialog_default } from "./as-filter-dialog-
|
|
19
|
-
import { t as as_table_header_cell_default } from "./as-table-header-cell-
|
|
20
|
-
import { t as as_window_table_default } from "./as-window-table-
|
|
21
|
-
import { t as as_filter_field_default } from "./as-filter-field-
|
|
22
|
-
import { t as as_filters_default } from "./as-filters-
|
|
23
|
-
import { t as as_preset_dialog_default } from "./as-preset-dialog-
|
|
24
|
-
import { t as as_row_actions_default } from "./as-row-actions-
|
|
18
|
+
import { t as as_filter_dialog_default } from "./as-filter-dialog-Gl5U-9OS.mjs";
|
|
19
|
+
import { t as as_table_header_cell_default } from "./as-table-header-cell-mCOAZsjL.mjs";
|
|
20
|
+
import { t as as_window_table_default } from "./as-window-table-DRbmDwi3.mjs";
|
|
21
|
+
import { t as as_filter_field_default } from "./as-filter-field-C4BI5jwc.mjs";
|
|
22
|
+
import { t as as_filters_default } from "./as-filters-DUSyWqRX.mjs";
|
|
23
|
+
import { t as as_preset_dialog_default } from "./as-preset-dialog-CuWw5fuN.mjs";
|
|
24
|
+
import { t as as_row_actions_default } from "./as-row-actions-DIpn-EYD.mjs";
|
|
25
25
|
import { t as as_table_cell_value_default } from "./as-table-cell-value-Byrb_Zyh.mjs";
|
|
26
|
-
import { t as as_table_root_default } from "./as-table-root-
|
|
27
|
-
import { t as as_table_default } from "./as-table-
|
|
28
|
-
import { t as as_table_actions_default } from "./as-table-actions-
|
|
29
|
-
import { t as as_preset_picker_default } from "./as-preset-picker-
|
|
26
|
+
import { t as as_table_root_default } from "./as-table-root-BQNXfIvB.mjs";
|
|
27
|
+
import { t as as_table_default } from "./as-table-BWWcR-0B.mjs";
|
|
28
|
+
import { t as as_table_actions_default } from "./as-table-actions-DQ3xaFXJ.mjs";
|
|
29
|
+
import { t as as_preset_picker_default } from "./as-preset-picker-CyBbOnBS.mjs";
|
|
30
30
|
import { getDefaultClientFactory, resetDefaultClientFactory, setDefaultClientFactory } from "@atscript/ui";
|
|
31
31
|
import { computed, effectScope, ref, shallowRef } from "vue";
|
|
32
32
|
import { AppPrefsClient, PRESET_ASPECTS, STANDARD_PRESET_ID, SYSTEM_PRESET_PREFIX, columnFilterType, conditionsForType, defaultCondition, isAuthError, isFilled, isSystemPresetId, resolveSystemPresets } from "@atscript/ui-table";
|
|
@@ -366,6 +366,12 @@ interface ReactiveTableState extends TableStateMethods {
|
|
|
366
366
|
* unloaded rows still navigable, the windowed renderer fetches them in).
|
|
367
367
|
*/
|
|
368
368
|
navMode: Ref<"pagination" | "window">;
|
|
369
|
+
/**
|
|
370
|
+
* The currently-active row, resolved correctly for the current nav mode
|
|
371
|
+
* (page-relative into `results` in pagination, absolute via `dataAt` in
|
|
372
|
+
* window). `undefined` when no row is active (`activeIndex < 0`).
|
|
373
|
+
*/
|
|
374
|
+
getActiveRow: () => Record<string, unknown> | undefined;
|
|
369
375
|
/** True when at least one of `<AsTableRoot>` / `<AsTable>` / `<AsWindowTable>` has a `main-action` listener bound. */
|
|
370
376
|
hasMainActionListener: Ref<boolean>;
|
|
371
377
|
/** Build a deterministic DOM `id` for the row at `absIndex` (per-state UID). */
|
|
@@ -366,6 +366,12 @@ interface ReactiveTableState extends TableStateMethods {
|
|
|
366
366
|
* unloaded rows still navigable, the windowed renderer fetches them in).
|
|
367
367
|
*/
|
|
368
368
|
navMode: Ref<"pagination" | "window">;
|
|
369
|
+
/**
|
|
370
|
+
* The currently-active row, resolved correctly for the current nav mode
|
|
371
|
+
* (page-relative into `results` in pagination, absolute via `dataAt` in
|
|
372
|
+
* window). `undefined` when no row is active (`activeIndex < 0`).
|
|
373
|
+
*/
|
|
374
|
+
getActiveRow: () => Record<string, unknown> | undefined;
|
|
369
375
|
/** True when at least one of `<AsTableRoot>` / `<AsTable>` / `<AsWindowTable>` has a `main-action` listener bound. */
|
|
370
376
|
hasMainActionListener: Ref<boolean>;
|
|
371
377
|
/** Build a deterministic DOM `id` for the row at `absIndex` (per-state UID). */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as createTableState, r as provideTableContext, s as DEFAULT_AVAILABLE_ASPECTS } from "./use-table-state-
|
|
1
|
+
import { n as createTableState, r as provideTableContext, s as DEFAULT_AVAILABLE_ASPECTS } from "./use-table-state-BHAwfUKw.mjs";
|
|
2
2
|
import { n as useTableSelection } from "./use-table-selection-C84z4OZy.mjs";
|
|
3
3
|
import { createTableDef, getMetaEntry, resetMetaCache } from "@atscript/ui";
|
|
4
4
|
import { computed, inject, isRef, ref, shallowRef, watch } from "vue";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_use_table_state = require("./use-table-state-
|
|
1
|
+
const require_use_table_state = require("./use-table-state-152Ejpyo.cjs");
|
|
2
2
|
const require_use_table_selection = require("./use-table-selection-Cmiu1h4S.cjs");
|
|
3
3
|
let _atscript_ui = require("@atscript/ui");
|
|
4
4
|
let vue = require("vue");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as useTableContextOptional } from "./use-table-state-
|
|
1
|
+
import { o as useTableContextOptional } from "./use-table-state-BHAwfUKw.mjs";
|
|
2
2
|
//#region src/composables/use-table-component.ts
|
|
3
3
|
/**
|
|
4
4
|
* Resolve a single skin-slot component from the injected `controls` map,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_use_table_state = require("./use-table-state-
|
|
1
|
+
const require_use_table_state = require("./use-table-state-152Ejpyo.cjs");
|
|
2
2
|
//#region src/composables/use-table-component.ts
|
|
3
3
|
/**
|
|
4
4
|
* Resolve a single skin-slot component from the injected `controls` map,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as useTableContextOptional } from "./use-table-state-
|
|
1
|
+
import { o as useTableContextOptional } from "./use-table-state-BHAwfUKw.mjs";
|
|
2
2
|
//#region src/composables/use-table-nav-bridge.ts
|
|
3
3
|
function isPassthroughKey(event) {
|
|
4
4
|
const key = event.key;
|
|
@@ -483,8 +483,7 @@ function createMainActionRegistry(opts) {
|
|
|
483
483
|
//#endregion
|
|
484
484
|
//#region src/composables/state/create-nav-controller.ts
|
|
485
485
|
function createNavController(inputs) {
|
|
486
|
-
const { activeIndex, totalCount, results, viewportRowCount, topIndex, hasMainActionAvailable, requestMainAction, toggleActiveSelection } = inputs;
|
|
487
|
-
const navMode = (0, vue.ref)("pagination");
|
|
486
|
+
const { activeIndex, navMode, totalCount, results, viewportRowCount, topIndex, hasMainActionAvailable, requestMainAction, toggleActiveSelection } = inputs;
|
|
488
487
|
const navViewportRowCount = (0, vue.ref)(0);
|
|
489
488
|
function clampActive(idx) {
|
|
490
489
|
let upper;
|
|
@@ -605,7 +604,6 @@ function createNavController(inputs) {
|
|
|
605
604
|
}
|
|
606
605
|
}
|
|
607
606
|
return {
|
|
608
|
-
navMode,
|
|
609
607
|
navViewportRowCount,
|
|
610
608
|
setActive,
|
|
611
609
|
clearActive,
|
|
@@ -1344,6 +1342,7 @@ function createTableState(opts) {
|
|
|
1344
1342
|
}
|
|
1345
1343
|
/** -1 == nothing active. */
|
|
1346
1344
|
const activeIndex = (0, vue.ref)(-1);
|
|
1345
|
+
const navMode = (0, vue.ref)("pagination");
|
|
1347
1346
|
const { windowCache, windowLoading, errors, topIndex, viewportRowCount, dataAt, loadingAt, errorAt, loadRange, queryNext, clearSettlements, resetWindow, disposeDebounces } = createWindowFetcher({
|
|
1348
1347
|
blockSize,
|
|
1349
1348
|
dragReleaseDebounceMs,
|
|
@@ -1359,9 +1358,9 @@ function createTableState(opts) {
|
|
|
1359
1358
|
reportError
|
|
1360
1359
|
});
|
|
1361
1360
|
function getActiveRow() {
|
|
1362
|
-
const
|
|
1363
|
-
if (
|
|
1364
|
-
return dataAt(
|
|
1361
|
+
const idx = activeIndex.value;
|
|
1362
|
+
if (idx < 0) return void 0;
|
|
1363
|
+
return navMode.value === "window" ? dataAt(idx) : results.value[idx];
|
|
1365
1364
|
}
|
|
1366
1365
|
const { selectedRows, selectedCount, rowValueFn, isPkSelected, toggleActiveSelection } = createSelectionApi(selectionOpts, getActiveRow);
|
|
1367
1366
|
const { actions } = createActions({
|
|
@@ -1387,8 +1386,9 @@ function createTableState(opts) {
|
|
|
1387
1386
|
}, event);
|
|
1388
1387
|
}
|
|
1389
1388
|
});
|
|
1390
|
-
const {
|
|
1389
|
+
const { navViewportRowCount, setActive, clearActive, handleNavKey } = createNavController({
|
|
1391
1390
|
activeIndex,
|
|
1391
|
+
navMode,
|
|
1392
1392
|
totalCount,
|
|
1393
1393
|
results,
|
|
1394
1394
|
viewportRowCount,
|
|
@@ -1521,6 +1521,7 @@ function createTableState(opts) {
|
|
|
1521
1521
|
includeActions,
|
|
1522
1522
|
activeIndex,
|
|
1523
1523
|
navMode,
|
|
1524
|
+
getActiveRow,
|
|
1524
1525
|
hasMainActionListener,
|
|
1525
1526
|
rowId,
|
|
1526
1527
|
setActive,
|