@atscript/vue-table 0.1.61 → 0.1.62

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-root.vue-CAQzVgay.cjs";
1
+ import { t as _default } from "./as-table-root.vue-CSqEtIll.cjs";
2
2
  export = _default;
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-table-root.vue-Bnooi1I6.mjs";
1
+ import { t as _default } from "./as-table-root.vue-5_OhVwse.mjs";
2
2
  export { _default as default };
@@ -2235,13 +2235,13 @@ declare const __VLS_base: vue.DefineComponent<__VLS_PublicProps, {
2235
2235
  "main-action": (row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any;
2236
2236
  }, string, vue.PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
2237
2237
  onAction?: ((action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: KeyboardEvent | MouseEvent | undefined) => any) | undefined;
2238
+ "onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any) | undefined;
2238
2239
  "onUpdate:filterFields"?: ((value: string[]) => any) | undefined;
2239
2240
  "onUpdate:columnNames"?: ((value: string[]) => any) | undefined;
2240
2241
  "onUpdate:columnWidths"?: ((value: ColumnWidthsMap) => any) | undefined;
2241
2242
  "onUpdate:sorters"?: ((value: SortControl[]) => any) | undefined;
2242
2243
  "onUpdate:selectedRows"?: ((value: unknown[]) => any) | undefined;
2243
2244
  "onUpdate:urlQuery"?: ((value: string | undefined) => any) | undefined;
2244
- "onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any) | undefined;
2245
2245
  }>, {
2246
2246
  queryOnMount: boolean;
2247
2247
  selectionPersistence: SelectionPersistence;
@@ -2235,13 +2235,13 @@ declare const __VLS_base: vue.DefineComponent<__VLS_PublicProps, {
2235
2235
  "main-action": (row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any;
2236
2236
  }, string, vue.PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
2237
2237
  onAction?: ((action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: KeyboardEvent | MouseEvent | undefined) => any) | undefined;
2238
+ "onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any) | undefined;
2238
2239
  "onUpdate:filterFields"?: ((value: string[]) => any) | undefined;
2239
2240
  "onUpdate:columnNames"?: ((value: string[]) => any) | undefined;
2240
2241
  "onUpdate:columnWidths"?: ((value: ColumnWidthsMap) => any) | undefined;
2241
2242
  "onUpdate:sorters"?: ((value: SortControl[]) => any) | undefined;
2242
2243
  "onUpdate:selectedRows"?: ((value: unknown[]) => any) | undefined;
2243
2244
  "onUpdate:urlQuery"?: ((value: string | undefined) => any) | undefined;
2244
- "onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any) | undefined;
2245
2245
  }>, {
2246
2246
  queryOnMount: boolean;
2247
2247
  selectionPersistence: SelectionPersistence;
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-table.vue-vxuudXjo.cjs";
1
+ import { t as _default } from "./as-table.vue-Dk6YH5ls.cjs";
2
2
  export = _default;
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-table.vue-CH7WH6qe.mjs";
1
+ import { t as _default } from "./as-table.vue-Bab-ISDO.mjs";
2
2
  export { _default as default };
@@ -53,13 +53,13 @@ type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_21>]?: (props: typeof _
53
53
  'query-loading'?: (props: typeof __VLS_24) => any;
54
54
  };
55
55
  declare const __VLS_base: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
56
- "main-action": (row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any;
57
56
  "row-click": (row: Record<string, unknown>, event: MouseEvent) => any;
58
57
  "row-dblclick": (row: Record<string, unknown>, event: MouseEvent) => any;
58
+ "main-action": (row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any;
59
59
  }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
60
- "onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any) | undefined;
61
60
  "onRow-click"?: ((row: Record<string, unknown>, event: MouseEvent) => any) | undefined;
62
61
  "onRow-dblclick"?: ((row: Record<string, unknown>, event: MouseEvent) => any) | undefined;
62
+ "onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any) | undefined;
63
63
  }>, {
64
64
  select: SelectionMode;
65
65
  stickyHeader: boolean;
@@ -53,13 +53,13 @@ type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_21>]?: (props: typeof _
53
53
  'query-loading'?: (props: typeof __VLS_24) => any;
54
54
  };
55
55
  declare const __VLS_base: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
56
- "main-action": (row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any;
57
56
  "row-click": (row: Record<string, unknown>, event: MouseEvent) => any;
58
57
  "row-dblclick": (row: Record<string, unknown>, event: MouseEvent) => any;
58
+ "main-action": (row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any;
59
59
  }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
60
- "onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any) | undefined;
61
60
  "onRow-click"?: ((row: Record<string, unknown>, event: MouseEvent) => any) | undefined;
62
61
  "onRow-dblclick"?: ((row: Record<string, unknown>, event: MouseEvent) => any) | undefined;
62
+ "onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any) | undefined;
63
63
  }>, {
64
64
  select: SelectionMode;
65
65
  stickyHeader: boolean;
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-window-table.vue-DXB5Qan7.cjs";
1
+ import { t as _default } from "./as-window-table.vue-BJFSC4Rq.cjs";
2
2
  export = _default;
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-window-table.vue-7cJ3TUZX.mjs";
1
+ import { t as _default } from "./as-window-table.vue-DjTUqghh.mjs";
2
2
  export { _default as default };
@@ -57,14 +57,14 @@ type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_13>]?: (props: typeof _
57
57
  'query-loading'?: (props: typeof __VLS_16) => any;
58
58
  };
59
59
  declare const __VLS_base: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
60
- "main-action": (row: Row, absIndex: number, event: KeyboardEvent | MouseEvent) => any;
61
60
  "row-click": (row: Row, event: MouseEvent) => any;
62
61
  "row-dblclick": (row: Row, event: MouseEvent) => any;
62
+ "main-action": (row: Row, absIndex: number, event: KeyboardEvent | MouseEvent) => any;
63
63
  error: (error: Error, kind: QueryErrorKind) => any;
64
64
  }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
65
- "onMain-action"?: ((row: Row, absIndex: number, event: KeyboardEvent | MouseEvent) => any) | undefined;
66
65
  "onRow-click"?: ((row: Row, event: MouseEvent) => any) | undefined;
67
66
  "onRow-dblclick"?: ((row: Row, event: MouseEvent) => any) | undefined;
67
+ "onMain-action"?: ((row: Row, absIndex: number, event: KeyboardEvent | MouseEvent) => any) | undefined;
68
68
  onError?: ((error: Error, kind: QueryErrorKind) => any) | undefined;
69
69
  }>, {
70
70
  select: SelectionMode;
@@ -57,14 +57,14 @@ type __VLS_Slots = {} & { [K in NonNullable<typeof __VLS_13>]?: (props: typeof _
57
57
  'query-loading'?: (props: typeof __VLS_16) => any;
58
58
  };
59
59
  declare const __VLS_base: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
60
- "main-action": (row: Row, absIndex: number, event: KeyboardEvent | MouseEvent) => any;
61
60
  "row-click": (row: Row, event: MouseEvent) => any;
62
61
  "row-dblclick": (row: Row, event: MouseEvent) => any;
62
+ "main-action": (row: Row, absIndex: number, event: KeyboardEvent | MouseEvent) => any;
63
63
  error: (error: Error, kind: QueryErrorKind) => any;
64
64
  }, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{
65
- "onMain-action"?: ((row: Row, absIndex: number, event: KeyboardEvent | MouseEvent) => any) | undefined;
66
65
  "onRow-click"?: ((row: Row, event: MouseEvent) => any) | undefined;
67
66
  "onRow-dblclick"?: ((row: Row, event: MouseEvent) => any) | undefined;
67
+ "onMain-action"?: ((row: Row, absIndex: number, event: KeyboardEvent | MouseEvent) => any) | undefined;
68
68
  onError?: ((error: Error, kind: QueryErrorKind) => any) | undefined;
69
69
  }>, {
70
70
  select: SelectionMode;
package/dist/index.d.cts CHANGED
@@ -2,9 +2,9 @@ import { t as _default$9 } from "./as-filters.vue-fv-tRL2H.cjs";
2
2
  import { t as _default$11 } 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-CNMmF6W2.cjs";
4
4
  import { t as _default$14 } from "./as-table-actions.vue-B7Q-JA3z.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$17, 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-CAQzVgay.cjs";
6
- import { t as _default$13 } from "./as-table.vue-vxuudXjo.cjs";
7
- import { t as _default$18 } from "./as-window-table.vue-DXB5Qan7.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$17, 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-CSqEtIll.cjs";
6
+ import { t as _default$13 } from "./as-table.vue-Dk6YH5ls.cjs";
7
+ import { t as _default$18 } from "./as-window-table.vue-BJFSC4Rq.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
@@ -2,9 +2,9 @@ import { t as _default$9 } from "./as-filters.vue-BsMgYUcX.mjs";
2
2
  import { t as _default$11 } from "./as-preset-picker.vue-CTBk6leV.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-BvvXN72P.mjs";
4
4
  import { t as _default$14 } from "./as-table-actions.vue-Bs1Jl1ep.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$17, 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-Bnooi1I6.mjs";
6
- import { t as _default$13 } from "./as-table.vue-CH7WH6qe.mjs";
7
- import { t as _default$18 } from "./as-window-table.vue-7cJ3TUZX.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$17, 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-5_OhVwse.mjs";
6
+ import { t as _default$13 } from "./as-table.vue-Bab-ISDO.mjs";
7
+ import { t as _default$18 } from "./as-window-table.vue-DjTUqghh.mjs";
8
8
  import { t as _default } from "./as-cell-array.vue-DZGM2VHh.mjs";
9
9
  import { t as _default$1 } from "./as-cell-date.vue-Zlt4mHWb.mjs";
10
10
  import { t as _default$2 } from "./as-cell-json.vue-CESWuCer.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atscript/vue-table",
3
- "version": "0.1.61",
3
+ "version": "0.1.62",
4
4
  "description": "Type-driven table components for Atscript with Vue 3",
5
5
  "keywords": [
6
6
  "atscript",
@@ -159,13 +159,13 @@
159
159
  "access": "public"
160
160
  },
161
161
  "dependencies": {
162
- "@atscript/ui": "^0.1.61",
163
- "@atscript/ui-table": "^0.1.61",
164
- "@atscript/vue-form": "^0.1.61"
162
+ "@atscript/ui-table": "^0.1.62",
163
+ "@atscript/ui": "^0.1.62",
164
+ "@atscript/vue-form": "^0.1.62"
165
165
  },
166
166
  "devDependencies": {
167
- "@atscript/db-client": "^0.1.75",
168
- "@atscript/typescript": "^0.1.54",
167
+ "@atscript/db-client": "^0.1.76",
168
+ "@atscript/typescript": "^0.1.55",
169
169
  "@tanstack/vue-virtual": "^3.13.23",
170
170
  "@uniqu/core": "^0.1.6",
171
171
  "@vitejs/plugin-vue": "^6",
@@ -180,7 +180,7 @@
180
180
  "vunor": "^0.2"
181
181
  },
182
182
  "peerDependencies": {
183
- "@atscript/db-client": "^0.1.75",
183
+ "@atscript/db-client": "^0.1.76",
184
184
  "@tanstack/vue-virtual": "^3.13.23",
185
185
  "@vueuse/core": "^14.2.1",
186
186
  "reka-ui": "^2.9.2",