@atscript/vue-table 0.1.125 → 0.1.127

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.
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-table-actions.vue-TlWMTbFG.cjs";
1
+ import { t as _default } from "./as-table-actions.vue-IyPKQZSd.cjs";
2
2
  export = _default;
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-table-actions.vue-lEHkmijR.mjs";
1
+ import { t as _default } from "./as-table-actions.vue-DVLiF5wq.mjs";
2
2
  export { _default as default };
@@ -18,7 +18,7 @@ declare var __VLS_1: {
18
18
  defaultAction: TVueTableActionInfo | undefined;
19
19
  otherActions: TVueTableActionInfo[];
20
20
  trailingRowActions: TVueTableActionInfo[];
21
- level: "rows" | "row" | "table";
21
+ level: "table" | "rows" | "row";
22
22
  ids: Record<string, unknown>[];
23
23
  invoke: typeof invokeWith;
24
24
  }, __VLS_12: {
@@ -18,7 +18,7 @@ declare var __VLS_1: {
18
18
  defaultAction: TVueTableActionInfo | undefined;
19
19
  otherActions: TVueTableActionInfo[];
20
20
  trailingRowActions: TVueTableActionInfo[];
21
- level: "rows" | "row" | "table";
21
+ level: "table" | "rows" | "row";
22
22
  ids: Record<string, unknown>[];
23
23
  invoke: typeof invokeWith;
24
24
  }, __VLS_12: {
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-table-root.vue-CL-zJqV4.cjs";
1
+ import { t as _default } from "./as-table-root.vue-C3UGJCbC.cjs";
2
2
  export = _default;
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-table-root.vue-CYFZz2wv.mjs";
1
+ import { t as _default } from "./as-table-root.vue-BTCHdMfu.mjs";
2
2
  export { _default as default };
@@ -2310,10 +2310,9 @@ declare const __VLS_base: vue.DefineComponent<__VLS_PublicProps, {
2310
2310
  "update:selectedRows": (value: unknown[]) => any;
2311
2311
  "update:urlQuery": (value: string | undefined) => any;
2312
2312
  } & {
2313
- "main-action": (row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any;
2314
2313
  action: (action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any;
2314
+ "main-action": (row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any;
2315
2315
  }, string, vue.PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
2316
- "onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any) | undefined;
2317
2316
  onAction?: ((action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any) | undefined;
2318
2317
  "onUpdate:filterFields"?: ((value: string[]) => any) | undefined;
2319
2318
  "onUpdate:columnNames"?: ((value: string[]) => any) | undefined;
@@ -2322,6 +2321,7 @@ declare const __VLS_base: vue.DefineComponent<__VLS_PublicProps, {
2322
2321
  "onUpdate:ignoreSortersWhenSearched"?: ((value: boolean) => any) | undefined;
2323
2322
  "onUpdate:selectedRows"?: ((value: unknown[]) => any) | undefined;
2324
2323
  "onUpdate:urlQuery"?: ((value: string | undefined) => any) | undefined;
2324
+ "onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any) | undefined;
2325
2325
  }>, {
2326
2326
  queryOnMount: boolean;
2327
2327
  selectionPersistence: SelectionPersistence;
@@ -2310,10 +2310,9 @@ declare const __VLS_base: vue.DefineComponent<__VLS_PublicProps, {
2310
2310
  "update:selectedRows": (value: unknown[]) => any;
2311
2311
  "update:urlQuery": (value: string | undefined) => any;
2312
2312
  } & {
2313
- "main-action": (row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any;
2314
2313
  action: (action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any;
2314
+ "main-action": (row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any;
2315
2315
  }, string, vue.PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
2316
- "onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any) | undefined;
2317
2316
  onAction?: ((action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any) | undefined;
2318
2317
  "onUpdate:filterFields"?: ((value: string[]) => any) | undefined;
2319
2318
  "onUpdate:columnNames"?: ((value: string[]) => any) | undefined;
@@ -2322,6 +2321,7 @@ declare const __VLS_base: vue.DefineComponent<__VLS_PublicProps, {
2322
2321
  "onUpdate:ignoreSortersWhenSearched"?: ((value: boolean) => any) | undefined;
2323
2322
  "onUpdate:selectedRows"?: ((value: unknown[]) => any) | undefined;
2324
2323
  "onUpdate:urlQuery"?: ((value: string | undefined) => any) | undefined;
2324
+ "onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any) | undefined;
2325
2325
  }>, {
2326
2326
  queryOnMount: boolean;
2327
2327
  selectionPersistence: SelectionPersistence;
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-table.vue-Co8kYS_o.cjs";
1
+ import { t as _default } from "./as-table.vue-Dy13tCJD.cjs";
2
2
  export = _default;
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-table.vue-B2ywpIo_.mjs";
1
+ import { t as _default } from "./as-table.vue-Cp5jssaw.mjs";
2
2
  export { _default as default };
@@ -69,14 +69,14 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.C
69
69
  "onRow-dblclick"?: ((row: Record<string, unknown>, event: MouseEvent) => any) | undefined;
70
70
  }>, {
71
71
  select: SelectionMode;
72
+ stickyHeader: boolean;
73
+ virtualOverscan: number;
72
74
  reorderable: boolean;
73
75
  resizable: boolean;
74
76
  columnMinWidth: number;
75
77
  rowDelete: boolean | RowDeleteOpt;
76
- headless: boolean;
77
- stickyHeader: boolean;
78
- virtualOverscan: number;
79
78
  rowActionsColumn: "first" | "last" | "merge-select" | false;
79
+ headless: boolean;
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;
@@ -69,14 +69,14 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.C
69
69
  "onRow-dblclick"?: ((row: Record<string, unknown>, event: MouseEvent) => any) | undefined;
70
70
  }>, {
71
71
  select: SelectionMode;
72
+ stickyHeader: boolean;
73
+ virtualOverscan: number;
72
74
  reorderable: boolean;
73
75
  resizable: boolean;
74
76
  columnMinWidth: number;
75
77
  rowDelete: boolean | RowDeleteOpt;
76
- headless: boolean;
77
- stickyHeader: boolean;
78
- virtualOverscan: number;
79
78
  rowActionsColumn: "first" | "last" | "merge-select" | false;
79
+ headless: boolean;
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,2 +1,2 @@
1
- import { t as _default } from "./as-window-table.vue-DajUEg5q.cjs";
1
+ import { t as _default } from "./as-window-table.vue-QjkRPxgd.cjs";
2
2
  export = _default;
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-window-table.vue-0ykWW1_K.mjs";
1
+ import { t as _default } from "./as-window-table.vue-72rfWBMZ.mjs";
2
2
  export { _default as default };
@@ -74,14 +74,14 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.C
74
74
  "onRow-dblclick"?: ((row: Row, event: MouseEvent) => any) | undefined;
75
75
  onError?: ((error: Error, kind: QueryErrorKind) => any) | undefined;
76
76
  }>, {
77
- rowHeight: number;
78
- wheelRowsPerTick: number;
79
77
  select: SelectionMode;
80
78
  reorderable: boolean;
81
79
  resizable: boolean;
82
80
  columnMinWidth: number;
83
81
  rowDelete: boolean | RowDeleteOpt;
84
82
  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;
@@ -74,14 +74,14 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.C
74
74
  "onRow-dblclick"?: ((row: Row, event: MouseEvent) => any) | undefined;
75
75
  onError?: ((error: Error, kind: QueryErrorKind) => any) | undefined;
76
76
  }>, {
77
- rowHeight: number;
78
- wheelRowsPerTick: number;
79
77
  select: SelectionMode;
80
78
  reorderable: boolean;
81
79
  resizable: boolean;
82
80
  columnMinWidth: number;
83
81
  rowDelete: boolean | RowDeleteOpt;
84
82
  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.d.cts CHANGED
@@ -1,10 +1,10 @@
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
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-CTMxE_zA.cjs";
4
- import { t as _default$16 } from "./as-table-actions.vue-TlWMTbFG.cjs";
5
- import { $ as createStaticTableState, A as createDefaultCellTypes, B as useTableActions, C as extractIdentifier, D as CellLocale, E as getColumnWidth, F as useAppPrefs, G as clearTableCache, H as useTableFilter, I as AS_PRESETS_APP, J as useTableSelection, K as useTable, L as injectPresetsApp, M as useTableComponent, N as UseAppPrefsOptions, O as provideCellLocale, P as UseAppPrefsReturn, Q as TableStateInternals, R as UseTableUrlQueryOptions, S as setDefaultClientFactory, T as getCellValue, U as useTableNavBridge, V as useTableSearch, W as UseTableOptions, X as CreateTableStateOptions, Y as CreateStaticTableStateOptions, Z as TableContext, _ as UserConfData, a as PRESET_ASPECTS, at as UsePresetsReturn, b as resetDefaultClientFactory, c as PresetData, ct as UseLocalDraftOptions, d as QueryOptions, et as createTableState, f as STANDARD_PRESET_ID, g as UrlQuerySync, h as SystemPresetInput, i as ClientFactory, it as UsePresetsOptions, j as createDefaultControls, k as useCellLocale, l as PresetSnapshot, lt as UseLocalDraftReturn, m as SystemPreset, n as AppConfData, nt as useTableContextOptional, o as PresetAspect, ot as usePresets, p as SYSTEM_PRESET_PREFIX, q as SelectionPersistence, r as AsPresetEntryRow, rt as ActivePresetView, s as PresetCapabilities, st as StorageLike, t as _default$19, tt as useTableContext, u as PresetSnapshotWire, ut as useLocalDraft, v as getDefaultClientFactory, w as formatCellValue, x as resolveSystemPresets, y as isSystemPresetId, z as useTableUrlQuery } from "./as-table-root.vue-CL-zJqV4.cjs";
6
- import { t as _default$15 } from "./as-table.vue-Co8kYS_o.cjs";
7
- import { t as _default$20 } from "./as-window-table.vue-DajUEg5q.cjs";
4
+ import { t as _default$16 } from "./as-table-actions.vue-IyPKQZSd.cjs";
5
+ import { $ as createStaticTableState, A as createDefaultCellTypes, B as useTableActions, C as extractIdentifier, D as CellLocale, E as getColumnWidth, F as useAppPrefs, G as clearTableCache, H as useTableFilter, I as AS_PRESETS_APP, J as useTableSelection, K as useTable, L as injectPresetsApp, M as useTableComponent, N as UseAppPrefsOptions, O as provideCellLocale, P as UseAppPrefsReturn, Q as TableStateInternals, R as UseTableUrlQueryOptions, S as setDefaultClientFactory, T as getCellValue, U as useTableNavBridge, V as useTableSearch, W as UseTableOptions, X as CreateTableStateOptions, Y as CreateStaticTableStateOptions, Z as TableContext, _ as UserConfData, a as PRESET_ASPECTS, at as UsePresetsReturn, b as resetDefaultClientFactory, c as PresetData, ct as UseLocalDraftOptions, d as QueryOptions, et as createTableState, f as STANDARD_PRESET_ID, g as UrlQuerySync, h as SystemPresetInput, i as ClientFactory, it as UsePresetsOptions, j as createDefaultControls, k as useCellLocale, l as PresetSnapshot, lt as UseLocalDraftReturn, m as SystemPreset, n as AppConfData, nt as useTableContextOptional, o as PresetAspect, ot as usePresets, p as SYSTEM_PRESET_PREFIX, q as SelectionPersistence, r as AsPresetEntryRow, rt as ActivePresetView, s as PresetCapabilities, st as StorageLike, t as _default$19, tt as useTableContext, u as PresetSnapshotWire, ut as useLocalDraft, v as getDefaultClientFactory, w as formatCellValue, x as resolveSystemPresets, y as isSystemPresetId, z as useTableUrlQuery } from "./as-table-root.vue-C3UGJCbC.cjs";
6
+ import { t as _default$15 } from "./as-table.vue-Dy13tCJD.cjs";
7
+ import { t as _default$20 } from "./as-window-table.vue-QjkRPxgd.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";
package/dist/index.d.mts CHANGED
@@ -1,10 +1,10 @@
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
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-ByU4O0Yf.mjs";
4
- import { t as _default$16 } from "./as-table-actions.vue-lEHkmijR.mjs";
5
- import { $ as createStaticTableState, A as createDefaultCellTypes, B as useTableActions, C as extractIdentifier, D as CellLocale, E as getColumnWidth, F as useAppPrefs, G as clearTableCache, H as useTableFilter, I as AS_PRESETS_APP, J as useTableSelection, K as useTable, L as injectPresetsApp, M as useTableComponent, N as UseAppPrefsOptions, O as provideCellLocale, P as UseAppPrefsReturn, Q as TableStateInternals, R as UseTableUrlQueryOptions, S as setDefaultClientFactory, T as getCellValue, U as useTableNavBridge, V as useTableSearch, W as UseTableOptions, X as CreateTableStateOptions, Y as CreateStaticTableStateOptions, Z as TableContext, _ as UserConfData, a as PRESET_ASPECTS, at as UsePresetsReturn, b as resetDefaultClientFactory, c as PresetData, ct as UseLocalDraftOptions, d as QueryOptions, et as createTableState, f as STANDARD_PRESET_ID, g as UrlQuerySync, h as SystemPresetInput, i as ClientFactory, it as UsePresetsOptions, j as createDefaultControls, k as useCellLocale, l as PresetSnapshot, lt as UseLocalDraftReturn, m as SystemPreset, n as AppConfData, nt as useTableContextOptional, o as PresetAspect, ot as usePresets, p as SYSTEM_PRESET_PREFIX, q as SelectionPersistence, r as AsPresetEntryRow, rt as ActivePresetView, s as PresetCapabilities, st as StorageLike, t as _default$19, tt as useTableContext, u as PresetSnapshotWire, ut as useLocalDraft, v as getDefaultClientFactory, w as formatCellValue, x as resolveSystemPresets, y as isSystemPresetId, z as useTableUrlQuery } from "./as-table-root.vue-CYFZz2wv.mjs";
6
- import { t as _default$15 } from "./as-table.vue-B2ywpIo_.mjs";
7
- import { t as _default$20 } from "./as-window-table.vue-0ykWW1_K.mjs";
4
+ import { t as _default$16 } from "./as-table-actions.vue-DVLiF5wq.mjs";
5
+ import { $ as createStaticTableState, A as createDefaultCellTypes, B as useTableActions, C as extractIdentifier, D as CellLocale, E as getColumnWidth, F as useAppPrefs, G as clearTableCache, H as useTableFilter, I as AS_PRESETS_APP, J as useTableSelection, K as useTable, L as injectPresetsApp, M as useTableComponent, N as UseAppPrefsOptions, O as provideCellLocale, P as UseAppPrefsReturn, Q as TableStateInternals, R as UseTableUrlQueryOptions, S as setDefaultClientFactory, T as getCellValue, U as useTableNavBridge, V as useTableSearch, W as UseTableOptions, X as CreateTableStateOptions, Y as CreateStaticTableStateOptions, Z as TableContext, _ as UserConfData, a as PRESET_ASPECTS, at as UsePresetsReturn, b as resetDefaultClientFactory, c as PresetData, ct as UseLocalDraftOptions, d as QueryOptions, et as createTableState, f as STANDARD_PRESET_ID, g as UrlQuerySync, h as SystemPresetInput, i as ClientFactory, it as UsePresetsOptions, j as createDefaultControls, k as useCellLocale, l as PresetSnapshot, lt as UseLocalDraftReturn, m as SystemPreset, n as AppConfData, nt as useTableContextOptional, o as PresetAspect, ot as usePresets, p as SYSTEM_PRESET_PREFIX, q as SelectionPersistence, r as AsPresetEntryRow, rt as ActivePresetView, s as PresetCapabilities, st as StorageLike, t as _default$19, tt as useTableContext, u as PresetSnapshotWire, ut as useLocalDraft, v as getDefaultClientFactory, w as formatCellValue, x as resolveSystemPresets, y as isSystemPresetId, z as useTableUrlQuery } from "./as-table-root.vue-BTCHdMfu.mjs";
6
+ import { t as _default$15 } from "./as-table.vue-Cp5jssaw.mjs";
7
+ import { t as _default$20 } from "./as-window-table.vue-72rfWBMZ.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";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atscript/vue-table",
3
- "version": "0.1.125",
3
+ "version": "0.1.127",
4
4
  "description": "Type-driven table components for Atscript with Vue 3",
5
5
  "keywords": [
6
6
  "atscript",
@@ -162,13 +162,13 @@
162
162
  "access": "public"
163
163
  },
164
164
  "dependencies": {
165
- "@atscript/ui": "^0.1.125",
166
- "@atscript/ui-table": "^0.1.125",
167
- "@atscript/vue-form": "^0.1.125"
165
+ "@atscript/ui": "^0.1.127",
166
+ "@atscript/ui-table": "^0.1.127",
167
+ "@atscript/vue-form": "^0.1.127"
168
168
  },
169
169
  "devDependencies": {
170
- "@atscript/db-client": "^0.1.120",
171
- "@atscript/typescript": "^0.1.84",
170
+ "@atscript/db-client": "^0.1.122",
171
+ "@atscript/typescript": "^0.1.85",
172
172
  "@tanstack/vue-virtual": "^3.13.26",
173
173
  "@uniqu/core": "^0.1.7",
174
174
  "@vitejs/plugin-vue": "^6",
@@ -183,7 +183,7 @@
183
183
  "vunor": "^0.2.1"
184
184
  },
185
185
  "peerDependencies": {
186
- "@atscript/db-client": "^0.1.120",
186
+ "@atscript/db-client": "^0.1.122",
187
187
  "@tanstack/vue-virtual": "^3.13.26",
188
188
  "@vueuse/core": "^14.3.0",
189
189
  "reka-ui": "^2.9.8",