@atscript/vue-table 0.1.150 → 0.1.152
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-BBwL1YZU.mjs → as-action-menu-content-BubYpIBQ.mjs} +1 -1
- package/dist/{as-action-menu-content-DAOjkslC.cjs → as-action-menu-content-DYcj5oBL.cjs} +1 -1
- package/dist/as-cell-date-CB5L8NZ-.mjs +85 -0
- package/dist/as-cell-date-C_ak4iib.cjs +90 -0
- package/dist/as-cell-date.cjs +1 -1
- package/dist/as-cell-date.d.cts +1 -1
- package/dist/as-cell-date.d.mts +1 -1
- package/dist/as-cell-date.mjs +1 -1
- package/dist/as-cell-date.vue-DwTSTjsj.d.cts +14 -0
- package/dist/as-cell-date.vue-Dyq2-vg9.d.mts +14 -0
- package/dist/{as-cell-number-D-mSaE_G.mjs → as-cell-number-CXhVesLq.mjs} +12 -23
- package/dist/{as-cell-number-C4JMqvqa.cjs → as-cell-number-vsYD5pyO.cjs} +12 -23
- package/dist/as-cell-number.cjs +1 -1
- package/dist/as-cell-number.mjs +1 -1
- package/dist/{as-config-dialog-ZKMnfirD.mjs → as-config-dialog-DW4WfYEi.mjs} +2 -2
- package/dist/{as-config-dialog-CnIvMsK0.cjs → as-config-dialog-XSkaW1X0.cjs} +2 -2
- package/dist/as-config-dialog.cjs +1 -1
- package/dist/as-config-dialog.mjs +1 -1
- package/dist/{as-confirm-dialog-cSEHVFBq.cjs → as-confirm-dialog-pcKkl-Qo.cjs} +1 -1
- package/dist/{as-confirm-dialog-DMiGquH1.mjs → as-confirm-dialog-rWRl5z4R.mjs} +1 -1
- package/dist/as-confirm-dialog.cjs +1 -1
- package/dist/as-confirm-dialog.mjs +1 -1
- package/dist/{as-filter-dialog-DNFR30fV.mjs → as-filter-dialog-8xvnKXTd.mjs} +10 -10
- package/dist/{as-filter-dialog-KjvJdaMg.cjs → as-filter-dialog-Cd16xRfM.cjs} +10 -10
- package/dist/as-filter-dialog.cjs +1 -1
- package/dist/as-filter-dialog.mjs +1 -1
- package/dist/{as-filter-field-BsucQwbm.cjs → as-filter-field-BPPMOZ9M.cjs} +4 -4
- package/dist/{as-filter-field-DE6MJMx7.mjs → as-filter-field-DEBQQy_6.mjs} +4 -4
- package/dist/as-filter-field.cjs +1 -1
- package/dist/as-filter-field.mjs +1 -1
- package/dist/{as-filter-input-ChJ8JE6-.cjs → as-filter-input-DZkhoSWO.cjs} +2 -2
- package/dist/{as-filter-input-DmOW_jzK.mjs → as-filter-input-DeI85XVZ.mjs} +2 -2
- package/dist/as-filter-input.cjs +1 -1
- package/dist/as-filter-input.mjs +1 -1
- package/dist/{as-filters-CYC_SXaA.cjs → as-filters-C22XxgEx.cjs} +4 -4
- package/dist/{as-filters-DErM2bFq.mjs → as-filters-CT1ks7gu.mjs} +4 -4
- package/dist/as-filters.cjs +1 -1
- package/dist/as-filters.mjs +1 -1
- package/dist/{as-preset-dialog-CY5dPfZa.mjs → as-preset-dialog-BXL8yt8O.mjs} +2 -2
- package/dist/{as-preset-dialog-tM-jrQgs.cjs → as-preset-dialog-CFvmrXGP.cjs} +2 -2
- package/dist/as-preset-dialog.cjs +1 -1
- package/dist/as-preset-dialog.mjs +1 -1
- package/dist/{as-preset-picker-CjSXtx83.cjs → as-preset-picker-DjV1c6Kh.cjs} +2 -2
- package/dist/{as-preset-picker-DkZ7sinz.mjs → as-preset-picker-IVVvFw6r.mjs} +2 -2
- package/dist/as-preset-picker.cjs +1 -1
- package/dist/as-preset-picker.mjs +1 -1
- package/dist/{as-residual-filter-XkXnMQNu.cjs → as-residual-filter-BGz7pSdL.cjs} +2 -2
- package/dist/{as-residual-filter-DHfbtTQj.mjs → as-residual-filter-BoeOL9AJ.mjs} +2 -2
- package/dist/as-residual-filter.cjs +1 -1
- package/dist/as-residual-filter.mjs +1 -1
- package/dist/{as-row-actions-BNQ7jrie.mjs → as-row-actions-QN_UFuah.mjs} +2 -2
- package/dist/{as-row-actions-q_oMmUz1.cjs → as-row-actions-S_IVb5c2.cjs} +2 -2
- package/dist/as-row-actions.cjs +1 -1
- package/dist/as-row-actions.mjs +1 -1
- package/dist/{as-select-cell-Dc3lArvR.cjs → as-select-cell-BmLF217C.cjs} +5 -5
- package/dist/{as-select-cell-DjcPorVb.mjs → as-select-cell-C9T1NHmN.mjs} +5 -5
- package/dist/{as-selection-banner-CxPXBztW.cjs → as-selection-banner-CroHk4lr.cjs} +1 -1
- package/dist/{as-selection-banner-Ca9DWVdW.mjs → as-selection-banner-DHzfs4v9.mjs} +1 -1
- package/dist/{as-table-BIAkCI4g.cjs → as-table-BIKHGH4x.cjs} +5 -3
- package/dist/{as-table-Bcz-WOTS.mjs → as-table-DEjvo36o.mjs} +5 -3
- package/dist/{as-table-actions-TaI-NeVv.cjs → as-table-actions-CgMktjjD.cjs} +2 -2
- package/dist/{as-table-actions-DPq5SrGa.mjs → as-table-actions-m-QLy2Ys.mjs} +2 -2
- package/dist/as-table-actions.cjs +1 -1
- package/dist/as-table-actions.d.cts +1 -1
- package/dist/as-table-actions.d.mts +1 -1
- package/dist/as-table-actions.mjs +1 -1
- package/dist/{as-table-actions.vue-5yhKxcAo.d.mts → as-table-actions.vue-BMC3nQ5z.d.mts} +1 -1
- package/dist/{as-table-actions.vue-cexsRPT4.d.cts → as-table-actions.vue-D8KKwLdM.d.cts} +1 -1
- package/dist/{as-table-base-CsK79vYe.mjs → as-table-base-C1B_VVk-.mjs} +314 -96
- package/dist/{as-table-base-Dvey_Gie.cjs → as-table-base-D_Hmin8J.cjs} +313 -95
- package/dist/as-table-cell-value-BYJd-QRA.mjs +57 -0
- package/dist/as-table-cell-value-CGBk-KWx.cjs +68 -0
- package/dist/as-table-cell-value.cjs +1 -1
- package/dist/as-table-cell-value.mjs +1 -1
- package/dist/{as-table-header-cell-ahzAeHXj.mjs → as-table-header-cell-Bg5wAPHv.mjs} +1 -1
- package/dist/{as-table-header-cell-DB7Cdskr.cjs → as-table-header-cell-Ch0J_Axe.cjs} +1 -1
- package/dist/as-table-header-cell.cjs +1 -1
- package/dist/as-table-header-cell.mjs +1 -1
- package/dist/{as-table-root-Nsk-9XaH.cjs → as-table-root-BQ5PA2SL.cjs} +5 -5
- package/dist/{as-table-root-BnkF5-rh.mjs → as-table-root-BeyqcJUq.mjs} +5 -5
- 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-CupE2b2_.d.cts → as-table-root.vue-Mvmfeg6Y.d.cts} +19 -18
- package/dist/{as-table-root.vue-BsDBKgez.d.mts → as-table-root.vue-mhHmNm2I.d.mts} +19 -18
- 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-window-table-ubm2u8_i.cjs → as-window-table-BvUfaBj8.cjs} +7 -8
- package/dist/{as-window-table-DjplqWzr.mjs → as-window-table-Cf523h8Q.mjs} +7 -8
- 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/index.cjs +23 -23
- package/dist/index.d.cts +3 -3
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +23 -23
- package/dist/{use-cell-locale-BTJZ6UcP.mjs → use-cell-locale-Bye0ANIP.mjs} +11 -0
- package/dist/{use-cell-locale-Dv514-Al.cjs → use-cell-locale-Dy5Rf1yp.cjs} +11 -0
- package/dist/{use-condition-format-DrgfX6xL.cjs → use-condition-format-Dyb5CVYw.cjs} +1 -1
- package/dist/{use-condition-format-5LcuInDy.mjs → use-condition-format-ka5_XiSn.mjs} +1 -1
- package/dist/{use-table-C9qI-TL6.cjs → use-table-B3CvWW_y.cjs} +2 -2
- package/dist/{use-table-BYNBpLJt.mjs → use-table-CTCYFwrE.mjs} +2 -2
- package/dist/{use-table-component-Dy397695.mjs → use-table-component-B9QRSvoR.mjs} +1 -1
- package/dist/{use-table-component-CsdvdGJT.cjs → use-table-component-Daap95CE.cjs} +1 -1
- package/dist/{use-table-nav-bridge-Gm4ZfOjJ.cjs → use-table-nav-bridge-C43u266u.cjs} +1 -1
- package/dist/{use-table-nav-bridge-CJBERyPB.mjs → use-table-nav-bridge-Ch61msQs.mjs} +1 -1
- package/dist/{use-table-state-CIoWhwTD.mjs → use-table-state-DzvCmxEx.mjs} +2 -1
- package/dist/{use-table-state-BQchKxUr.cjs → use-table-state-zE3BpeA7.cjs} +1 -0
- package/package.json +11 -11
- package/dist/as-cell-date-DrnhvCr4.cjs +0 -71
- package/dist/as-cell-date-dhIM7hWA.mjs +0 -66
- package/dist/as-cell-date.vue-BcMgxBfm.d.cts +0 -12
- package/dist/as-cell-date.vue-Chs7WTZ9.d.mts +0 -12
- package/dist/as-table-cell-value-D-S127gr.mjs +0 -37
- package/dist/as-table-cell-value-VWlXc5dA.cjs +0 -42
- /package/dist/{error-message-CoUcpWal.cjs → error-message-B9iAuWYx.cjs} +0 -0
- /package/dist/{error-message-rziSiSjs.mjs → error-message-D3at_GXQ.mjs} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { c as warnUnsupportedFilter, i as useRegisterMainActionListener, s as warnFieldsDropped, t as createStaticTableState } from "./use-table-state-
|
|
2
|
-
import { n as finalizeTableState, r as useTable } from "./use-table-
|
|
3
|
-
import { n as useCellLocale, t as provideCellLocale } from "./use-cell-locale-
|
|
4
|
-
import { t as useTableNavBridge } from "./use-table-nav-bridge-
|
|
1
|
+
import { c as warnUnsupportedFilter, i as useRegisterMainActionListener, s as warnFieldsDropped, t as createStaticTableState } from "./use-table-state-DzvCmxEx.mjs";
|
|
2
|
+
import { n as finalizeTableState, r as useTable } from "./use-table-CTCYFwrE.mjs";
|
|
3
|
+
import { n as useCellLocale, t as provideCellLocale } from "./use-cell-locale-Bye0ANIP.mjs";
|
|
4
|
+
import { t as useTableNavBridge } from "./use-table-nav-bridge-Ch61msQs.mjs";
|
|
5
5
|
import { t as useHasEmitListener } from "./use-has-emit-listener-CsF2w9iT.mjs";
|
|
6
|
-
import { t as as_confirm_dialog_default } from "./as-confirm-dialog-
|
|
6
|
+
import { t as as_confirm_dialog_default } from "./as-confirm-dialog-rWRl5z4R.mjs";
|
|
7
7
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, defineAsyncComponent, defineComponent, mergeModels, openBlock, ref, renderSlot, resolveDynamicComponent, unref, useModel, watch } from "vue";
|
|
8
8
|
import { DEV, stableValueKey } from "@atscript/ui-table";
|
|
9
9
|
//#endregion
|
package/dist/as-table-root.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_table_root = require("./as-table-root-
|
|
1
|
+
const require_as_table_root = require("./as-table-root-BQ5PA2SL.cjs");
|
|
2
2
|
module.exports = require_as_table_root.as_table_root_default;
|
package/dist/as-table-root.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-table-root.vue-
|
|
1
|
+
import { t as _default } from "./as-table-root.vue-Mvmfeg6Y.cjs";
|
|
2
2
|
export = _default;
|
package/dist/as-table-root.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-table-root.vue-
|
|
1
|
+
import { t as _default } from "./as-table-root.vue-mhHmNm2I.mjs";
|
|
2
2
|
export { _default as default };
|
package/dist/as-table-root.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_table_root_default } from "./as-table-root-
|
|
1
|
+
import { t as as_table_root_default } from "./as-table-root-BeyqcJUq.mjs";
|
|
2
2
|
export { as_table_root_default as default };
|
|
@@ -1121,24 +1121,24 @@ type __VLS_Slots$2 = {} & { [K in NonNullable<typeof __VLS_28>]?: (props: typeof
|
|
|
1121
1121
|
'query-loading'?: (props: typeof __VLS_31) => any;
|
|
1122
1122
|
};
|
|
1123
1123
|
declare const __VLS_base$2: vue.DefineComponent<__VLS_Props$2, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
1124
|
-
"main-action": (row: Record<string, unknown>, absIndex: number, event:
|
|
1124
|
+
"main-action": (row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any;
|
|
1125
1125
|
"row-click": (row: Record<string, unknown>, event: MouseEvent) => any;
|
|
1126
1126
|
"row-dblclick": (row: Record<string, unknown>, event: MouseEvent) => any;
|
|
1127
1127
|
}, string, vue.PublicProps, Readonly<__VLS_Props$2> & Readonly<{
|
|
1128
|
-
"onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event:
|
|
1128
|
+
"onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any) | undefined;
|
|
1129
1129
|
"onRow-click"?: ((row: Record<string, unknown>, event: MouseEvent) => any) | undefined;
|
|
1130
1130
|
"onRow-dblclick"?: ((row: Record<string, unknown>, event: MouseEvent) => any) | undefined;
|
|
1131
1131
|
}>, {
|
|
1132
|
-
|
|
1133
|
-
|
|
1132
|
+
stickyHeader: boolean;
|
|
1133
|
+
virtualOverscan: number;
|
|
1134
1134
|
reorderable: boolean;
|
|
1135
1135
|
resizable: boolean;
|
|
1136
1136
|
columnMinWidth: number;
|
|
1137
|
+
select: SelectionMode;
|
|
1138
|
+
selectOn: SelectOn;
|
|
1137
1139
|
rowDelete: boolean | RowDeleteOpt;
|
|
1138
1140
|
rowActionsColumn: RowActionsColumnPlacement | false;
|
|
1139
1141
|
headless: boolean;
|
|
1140
|
-
stickyHeader: boolean;
|
|
1141
|
-
virtualOverscan: number;
|
|
1142
1142
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
1143
1143
|
declare const __VLS_export$2: __VLS_WithSlots$2<typeof __VLS_base$2, __VLS_Slots$2>;
|
|
1144
1144
|
declare const _default$2: typeof __VLS_export$2;
|
|
@@ -1256,26 +1256,26 @@ type __VLS_Slots$1 = {} & { [K in NonNullable<typeof __VLS_24>]?: (props: typeof
|
|
|
1256
1256
|
'query-loading'?: (props: typeof __VLS_27) => any;
|
|
1257
1257
|
};
|
|
1258
1258
|
declare const __VLS_base$1: vue.DefineComponent<__VLS_Props$1, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
1259
|
-
"main-action": (row: Row, absIndex: number, event:
|
|
1259
|
+
"main-action": (row: Row, absIndex: number, event: KeyboardEvent | MouseEvent) => any;
|
|
1260
1260
|
"row-click": (row: Row, event: MouseEvent) => any;
|
|
1261
1261
|
"row-dblclick": (row: Row, event: MouseEvent) => any;
|
|
1262
1262
|
error: (error: Error, kind: QueryErrorKind) => any;
|
|
1263
1263
|
}, string, vue.PublicProps, Readonly<__VLS_Props$1> & Readonly<{
|
|
1264
|
-
"onMain-action"?: ((row: Row, absIndex: number, event:
|
|
1264
|
+
"onMain-action"?: ((row: Row, absIndex: number, event: KeyboardEvent | MouseEvent) => any) | undefined;
|
|
1265
1265
|
"onRow-click"?: ((row: Row, event: MouseEvent) => any) | undefined;
|
|
1266
1266
|
"onRow-dblclick"?: ((row: Row, event: MouseEvent) => any) | undefined;
|
|
1267
1267
|
onError?: ((error: Error, kind: QueryErrorKind) => any) | undefined;
|
|
1268
1268
|
}>, {
|
|
1269
|
-
select: SelectionMode;
|
|
1270
|
-
rowHeight: number;
|
|
1271
|
-
wheelRowsPerTick: number;
|
|
1272
|
-
selectOn: SelectOn;
|
|
1273
1269
|
reorderable: boolean;
|
|
1274
1270
|
resizable: boolean;
|
|
1275
1271
|
columnMinWidth: number;
|
|
1272
|
+
select: SelectionMode;
|
|
1273
|
+
selectOn: SelectOn;
|
|
1276
1274
|
rowDelete: boolean | RowDeleteOpt;
|
|
1277
1275
|
rowActionsColumn: RowActionsColumnPlacement | false;
|
|
1278
1276
|
headless: boolean;
|
|
1277
|
+
rowHeight: number;
|
|
1278
|
+
wheelRowsPerTick: number;
|
|
1279
1279
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
1280
1280
|
declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
1281
1281
|
declare const _default$1: typeof __VLS_export$1;
|
|
@@ -1322,10 +1322,11 @@ interface CellLocale {
|
|
|
1322
1322
|
timezone?: string;
|
|
1323
1323
|
}
|
|
1324
1324
|
declare function provideCellLocale(source: MaybeRefOrGetter<CellLocale | undefined>): void;
|
|
1325
|
-
|
|
1325
|
+
interface CellLocaleRefs {
|
|
1326
1326
|
locale: ComputedRef<string>;
|
|
1327
1327
|
timezone: ComputedRef<string | undefined>;
|
|
1328
|
-
}
|
|
1328
|
+
}
|
|
1329
|
+
declare function useCellLocale(): CellLocaleRefs;
|
|
1329
1330
|
//#endregion
|
|
1330
1331
|
//#region src/utils/column-width.d.ts
|
|
1331
1332
|
/** Returns column width from annotation or type-based default. */
|
|
@@ -1553,14 +1554,12 @@ declare const __VLS_base: vue.DefineComponent<__VLS_PublicProps, {
|
|
|
1553
1554
|
"update:querySelection": (value: QuerySelection | null) => any;
|
|
1554
1555
|
"update:urlQuery": (value: string | undefined) => any;
|
|
1555
1556
|
} & {
|
|
1556
|
-
action: (action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any;
|
|
1557
|
-
"main-action": (row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any;
|
|
1558
1557
|
"unsupported-filter": (issue: UnsupportedFilter) => any;
|
|
1559
1558
|
"selection-reset": (event: SelectionResetEvent) => any;
|
|
1560
1559
|
"fields-dropped": (report: DroppedFieldsReport) => any;
|
|
1560
|
+
"main-action": (row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any;
|
|
1561
|
+
action: (action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: KeyboardEvent | MouseEvent | undefined) => any;
|
|
1561
1562
|
}, string, vue.PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
1562
|
-
onAction?: ((action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any) | undefined;
|
|
1563
|
-
"onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any) | undefined;
|
|
1564
1563
|
"onUnsupported-filter"?: ((issue: UnsupportedFilter) => any) | undefined;
|
|
1565
1564
|
"onSelection-reset"?: ((event: SelectionResetEvent) => any) | undefined;
|
|
1566
1565
|
"onFields-dropped"?: ((report: DroppedFieldsReport) => any) | undefined;
|
|
@@ -1572,6 +1571,8 @@ declare const __VLS_base: vue.DefineComponent<__VLS_PublicProps, {
|
|
|
1572
1571
|
"onUpdate:selectedRows"?: ((value: unknown[]) => any) | undefined;
|
|
1573
1572
|
"onUpdate:querySelection"?: ((value: QuerySelection | null) => any) | undefined;
|
|
1574
1573
|
"onUpdate:urlQuery"?: ((value: string | undefined) => any) | undefined;
|
|
1574
|
+
"onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any) | undefined;
|
|
1575
|
+
onAction?: ((action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: KeyboardEvent | MouseEvent | undefined) => any) | undefined;
|
|
1575
1576
|
}>, {
|
|
1576
1577
|
localSort: boolean;
|
|
1577
1578
|
queryOnMount: boolean;
|
|
@@ -1121,24 +1121,24 @@ type __VLS_Slots$2 = {} & { [K in NonNullable<typeof __VLS_28>]?: (props: typeof
|
|
|
1121
1121
|
'query-loading'?: (props: typeof __VLS_31) => any;
|
|
1122
1122
|
};
|
|
1123
1123
|
declare const __VLS_base$2: vue.DefineComponent<__VLS_Props$2, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
1124
|
-
"main-action": (row: Record<string, unknown>, absIndex: number, event:
|
|
1124
|
+
"main-action": (row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any;
|
|
1125
1125
|
"row-click": (row: Record<string, unknown>, event: MouseEvent) => any;
|
|
1126
1126
|
"row-dblclick": (row: Record<string, unknown>, event: MouseEvent) => any;
|
|
1127
1127
|
}, string, vue.PublicProps, Readonly<__VLS_Props$2> & Readonly<{
|
|
1128
|
-
"onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event:
|
|
1128
|
+
"onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any) | undefined;
|
|
1129
1129
|
"onRow-click"?: ((row: Record<string, unknown>, event: MouseEvent) => any) | undefined;
|
|
1130
1130
|
"onRow-dblclick"?: ((row: Record<string, unknown>, event: MouseEvent) => any) | undefined;
|
|
1131
1131
|
}>, {
|
|
1132
|
-
|
|
1133
|
-
|
|
1132
|
+
stickyHeader: boolean;
|
|
1133
|
+
virtualOverscan: number;
|
|
1134
1134
|
reorderable: boolean;
|
|
1135
1135
|
resizable: boolean;
|
|
1136
1136
|
columnMinWidth: number;
|
|
1137
|
+
select: SelectionMode;
|
|
1138
|
+
selectOn: SelectOn;
|
|
1137
1139
|
rowDelete: boolean | RowDeleteOpt;
|
|
1138
1140
|
rowActionsColumn: RowActionsColumnPlacement | false;
|
|
1139
1141
|
headless: boolean;
|
|
1140
|
-
stickyHeader: boolean;
|
|
1141
|
-
virtualOverscan: number;
|
|
1142
1142
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
1143
1143
|
declare const __VLS_export$2: __VLS_WithSlots$2<typeof __VLS_base$2, __VLS_Slots$2>;
|
|
1144
1144
|
declare const _default$2: typeof __VLS_export$2;
|
|
@@ -1256,26 +1256,26 @@ type __VLS_Slots$1 = {} & { [K in NonNullable<typeof __VLS_24>]?: (props: typeof
|
|
|
1256
1256
|
'query-loading'?: (props: typeof __VLS_27) => any;
|
|
1257
1257
|
};
|
|
1258
1258
|
declare const __VLS_base$1: vue.DefineComponent<__VLS_Props$1, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {} & {
|
|
1259
|
-
"main-action": (row: Row, absIndex: number, event:
|
|
1259
|
+
"main-action": (row: Row, absIndex: number, event: KeyboardEvent | MouseEvent) => any;
|
|
1260
1260
|
"row-click": (row: Row, event: MouseEvent) => any;
|
|
1261
1261
|
"row-dblclick": (row: Row, event: MouseEvent) => any;
|
|
1262
1262
|
error: (error: Error, kind: QueryErrorKind) => any;
|
|
1263
1263
|
}, string, vue.PublicProps, Readonly<__VLS_Props$1> & Readonly<{
|
|
1264
|
-
"onMain-action"?: ((row: Row, absIndex: number, event:
|
|
1264
|
+
"onMain-action"?: ((row: Row, absIndex: number, event: KeyboardEvent | MouseEvent) => any) | undefined;
|
|
1265
1265
|
"onRow-click"?: ((row: Row, event: MouseEvent) => any) | undefined;
|
|
1266
1266
|
"onRow-dblclick"?: ((row: Row, event: MouseEvent) => any) | undefined;
|
|
1267
1267
|
onError?: ((error: Error, kind: QueryErrorKind) => any) | undefined;
|
|
1268
1268
|
}>, {
|
|
1269
|
-
select: SelectionMode;
|
|
1270
|
-
rowHeight: number;
|
|
1271
|
-
wheelRowsPerTick: number;
|
|
1272
|
-
selectOn: SelectOn;
|
|
1273
1269
|
reorderable: boolean;
|
|
1274
1270
|
resizable: boolean;
|
|
1275
1271
|
columnMinWidth: number;
|
|
1272
|
+
select: SelectionMode;
|
|
1273
|
+
selectOn: SelectOn;
|
|
1276
1274
|
rowDelete: boolean | RowDeleteOpt;
|
|
1277
1275
|
rowActionsColumn: RowActionsColumnPlacement | false;
|
|
1278
1276
|
headless: boolean;
|
|
1277
|
+
rowHeight: number;
|
|
1278
|
+
wheelRowsPerTick: number;
|
|
1279
1279
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
1280
1280
|
declare const __VLS_export$1: __VLS_WithSlots$1<typeof __VLS_base$1, __VLS_Slots$1>;
|
|
1281
1281
|
declare const _default$1: typeof __VLS_export$1;
|
|
@@ -1322,10 +1322,11 @@ interface CellLocale {
|
|
|
1322
1322
|
timezone?: string;
|
|
1323
1323
|
}
|
|
1324
1324
|
declare function provideCellLocale(source: MaybeRefOrGetter<CellLocale | undefined>): void;
|
|
1325
|
-
|
|
1325
|
+
interface CellLocaleRefs {
|
|
1326
1326
|
locale: ComputedRef<string>;
|
|
1327
1327
|
timezone: ComputedRef<string | undefined>;
|
|
1328
|
-
}
|
|
1328
|
+
}
|
|
1329
|
+
declare function useCellLocale(): CellLocaleRefs;
|
|
1329
1330
|
//#endregion
|
|
1330
1331
|
//#region src/utils/column-width.d.ts
|
|
1331
1332
|
/** Returns column width from annotation or type-based default. */
|
|
@@ -1553,14 +1554,12 @@ declare const __VLS_base: vue.DefineComponent<__VLS_PublicProps, {
|
|
|
1553
1554
|
"update:querySelection": (value: QuerySelection | null) => any;
|
|
1554
1555
|
"update:urlQuery": (value: string | undefined) => any;
|
|
1555
1556
|
} & {
|
|
1556
|
-
action: (action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any;
|
|
1557
|
-
"main-action": (row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any;
|
|
1558
1557
|
"unsupported-filter": (issue: UnsupportedFilter) => any;
|
|
1559
1558
|
"selection-reset": (event: SelectionResetEvent) => any;
|
|
1560
1559
|
"fields-dropped": (report: DroppedFieldsReport) => any;
|
|
1560
|
+
"main-action": (row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any;
|
|
1561
|
+
action: (action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: KeyboardEvent | MouseEvent | undefined) => any;
|
|
1561
1562
|
}, string, vue.PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
1562
|
-
onAction?: ((action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: MouseEvent | KeyboardEvent | undefined) => any) | undefined;
|
|
1563
|
-
"onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: MouseEvent | KeyboardEvent) => any) | undefined;
|
|
1564
1563
|
"onUnsupported-filter"?: ((issue: UnsupportedFilter) => any) | undefined;
|
|
1565
1564
|
"onSelection-reset"?: ((event: SelectionResetEvent) => any) | undefined;
|
|
1566
1565
|
"onFields-dropped"?: ((report: DroppedFieldsReport) => any) | undefined;
|
|
@@ -1572,6 +1571,8 @@ declare const __VLS_base: vue.DefineComponent<__VLS_PublicProps, {
|
|
|
1572
1571
|
"onUpdate:selectedRows"?: ((value: unknown[]) => any) | undefined;
|
|
1573
1572
|
"onUpdate:querySelection"?: ((value: QuerySelection | null) => any) | undefined;
|
|
1574
1573
|
"onUpdate:urlQuery"?: ((value: string | undefined) => any) | undefined;
|
|
1574
|
+
"onMain-action"?: ((row: Record<string, unknown>, absIndex: number, event: KeyboardEvent | MouseEvent) => any) | undefined;
|
|
1575
|
+
onAction?: ((action: TVueTableActionInfo, ids: unknown[], result: ActionResult, event?: KeyboardEvent | MouseEvent | undefined) => any) | undefined;
|
|
1575
1576
|
}>, {
|
|
1576
1577
|
localSort: boolean;
|
|
1577
1578
|
queryOnMount: boolean;
|
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-BIKHGH4x.cjs");
|
|
2
2
|
module.exports = require_as_table.as_table_default;
|
package/dist/as-table.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { L as _default } from "./as-table-root.vue-
|
|
1
|
+
import { L as _default } from "./as-table-root.vue-Mvmfeg6Y.cjs";
|
|
2
2
|
export = _default;
|
package/dist/as-table.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { L as _default } from "./as-table-root.vue-
|
|
1
|
+
import { L as _default } from "./as-table-root.vue-mhHmNm2I.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-DEjvo36o.mjs";
|
|
2
2
|
export { as_table_default as default };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const require_use_table_state = require("./use-table-state-
|
|
1
|
+
const require_use_table_state = require("./use-table-state-zE3BpeA7.cjs");
|
|
2
2
|
const require_get_cell_value = require("./get-cell-value-CJT4fk4y.cjs");
|
|
3
3
|
const require_use_table_selection = require("./use-table-selection-Cs7-gjHg.cjs");
|
|
4
4
|
const require_use_has_emit_listener = require("./use-has-emit-listener-gD1aWp6N.cjs");
|
|
5
|
-
const require_as_selection_banner = require("./as-selection-banner-
|
|
6
|
-
const require_as_select_cell = require("./as-select-cell-
|
|
5
|
+
const require_as_selection_banner = require("./as-selection-banner-CroHk4lr.cjs");
|
|
6
|
+
const require_as_select_cell = require("./as-select-cell-BmLF217C.cjs");
|
|
7
7
|
let vue = require("vue");
|
|
8
8
|
let _atscript_ui_table = require("@atscript/ui-table");
|
|
9
9
|
let _vueuse_core = require("@vueuse/core");
|
|
@@ -590,11 +590,10 @@ var as_window_table_base_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
590
590
|
verdict: slot.selectable,
|
|
591
591
|
select: __props.select,
|
|
592
592
|
"select-on": __props.selectOn
|
|
593
|
-
},
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
} : void 0]), 1032, [
|
|
593
|
+
}, {
|
|
594
|
+
default: (0, vue.withCtx)((scope) => [(0, vue.renderSlot)(_ctx.$slots, "cell-__select", (0, vue.mergeProps)({ ref_for: true }, scope))]),
|
|
595
|
+
_: 3
|
|
596
|
+
}, 8, [
|
|
598
597
|
"row",
|
|
599
598
|
"index",
|
|
600
599
|
"selected",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { _ as toSelectAllState, a as useTableContext, i as useRegisterMainActionListener } from "./use-table-state-
|
|
1
|
+
import { _ as toSelectAllState, a as useTableContext, i as useRegisterMainActionListener } from "./use-table-state-DzvCmxEx.mjs";
|
|
2
2
|
import { t as getCellValue } from "./get-cell-value-Cb3X8nUn.mjs";
|
|
3
3
|
import { t as useSelectModeReset } from "./use-table-selection-CdaOPo1d.mjs";
|
|
4
4
|
import { t as useHasEmitListener } from "./use-has-emit-listener-CsF2w9iT.mjs";
|
|
5
|
-
import { n as useTableColumnHandlers, r as useRowActionsColumn, t as as_selection_banner_default } from "./as-selection-banner-
|
|
6
|
-
import { a as useRafBatch, i as as_table_colgroup_default, n as as_table_status_default, o as useCellComponents, r as as_table_header_default, s as useCellResolver, t as as_select_cell_default } from "./as-select-cell-
|
|
5
|
+
import { n as useTableColumnHandlers, r as useRowActionsColumn, t as as_selection_banner_default } from "./as-selection-banner-DHzfs4v9.mjs";
|
|
6
|
+
import { a as useRafBatch, i as as_table_colgroup_default, n as as_table_status_default, o as useCellComponents, r as as_table_header_default, s as useCellResolver, t as as_select_cell_default } from "./as-select-cell-C9T1NHmN.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, rowsToPks } from "@atscript/ui-table";
|
|
9
9
|
import { useElementSize, useResizeObserver } from "@vueuse/core";
|
|
@@ -590,11 +590,10 @@ var as_window_table_base_default = /* @__PURE__ */ defineComponent({
|
|
|
590
590
|
verdict: slot.selectable,
|
|
591
591
|
select: __props.select,
|
|
592
592
|
"select-on": __props.selectOn
|
|
593
|
-
},
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
} : void 0]), 1032, [
|
|
593
|
+
}, {
|
|
594
|
+
default: withCtx((scope) => [renderSlot(_ctx.$slots, "cell-__select", mergeProps({ ref_for: true }, scope))]),
|
|
595
|
+
_: 3
|
|
596
|
+
}, 8, [
|
|
598
597
|
"row",
|
|
599
598
|
"index",
|
|
600
599
|
"selected",
|
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-BvUfaBj8.cjs");
|
|
2
2
|
module.exports = require_as_window_table.as_window_table_default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { I as _default } from "./as-table-root.vue-
|
|
1
|
+
import { I as _default } from "./as-table-root.vue-Mvmfeg6Y.cjs";
|
|
2
2
|
export = _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { I as _default } from "./as-table-root.vue-
|
|
1
|
+
import { I as _default } from "./as-table-root.vue-mhHmNm2I.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-Cf523h8Q.mjs";
|
|
2
2
|
export { as_window_table_default as default };
|
package/dist/index.cjs
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
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-zE3BpeA7.cjs");
|
|
3
3
|
const require_get_cell_value = require("./get-cell-value-CJT4fk4y.cjs");
|
|
4
4
|
const require_use_table_selection = require("./use-table-selection-Cs7-gjHg.cjs");
|
|
5
|
-
const require_use_table = require("./use-table-
|
|
6
|
-
const require_use_cell_locale = require("./use-cell-locale-
|
|
7
|
-
const require_use_table_nav_bridge = require("./use-table-nav-bridge-
|
|
8
|
-
const require_use_table_component = require("./use-table-component-
|
|
5
|
+
const require_use_table = require("./use-table-B3CvWW_y.cjs");
|
|
6
|
+
const require_use_cell_locale = require("./use-cell-locale-Dy5Rf1yp.cjs");
|
|
7
|
+
const require_use_table_nav_bridge = require("./use-table-nav-bridge-C43u266u.cjs");
|
|
8
|
+
const require_use_table_component = require("./use-table-component-Daap95CE.cjs");
|
|
9
9
|
const require_as_cell_array = require("./as-cell-array-CB4Nt6Fo.cjs");
|
|
10
|
-
const require_as_cell_date = require("./as-cell-date-
|
|
10
|
+
const require_as_cell_date = require("./as-cell-date-C_ak4iib.cjs");
|
|
11
11
|
const require_as_cell_json = require("./as-cell-json-CzHTpkjS.cjs");
|
|
12
|
-
const require_as_cell_number = require("./as-cell-number-
|
|
12
|
+
const require_as_cell_number = require("./as-cell-number-vsYD5pyO.cjs");
|
|
13
13
|
const require_format_cell = require("./format-cell-vCNTh4WZ.cjs");
|
|
14
14
|
const require_as_cell_union = require("./as-cell-union-DpCEHLzN.cjs");
|
|
15
15
|
const require_as_column_menu = require("./as-column-menu-ChB7hzmr.cjs");
|
|
16
|
-
const require_as_config_dialog = require("./as-config-dialog-
|
|
17
|
-
const require_as_confirm_dialog = require("./as-confirm-dialog-
|
|
18
|
-
const require_as_filter_field = require("./as-filter-field-
|
|
19
|
-
const require_as_filter_input = require("./as-filter-input-
|
|
20
|
-
const require_as_filter_dialog = require("./as-filter-dialog-
|
|
21
|
-
const require_as_table_header_cell = require("./as-table-header-cell-
|
|
22
|
-
const require_as_window_table = require("./as-window-table-
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
const require_as_table_root = require("./as-table-root-
|
|
29
|
-
const require_as_table = require("./as-table-
|
|
30
|
-
const require_as_table_actions = require("./as-table-actions-
|
|
31
|
-
const require_as_preset_picker = require("./as-preset-picker-
|
|
16
|
+
const require_as_config_dialog = require("./as-config-dialog-XSkaW1X0.cjs");
|
|
17
|
+
const require_as_confirm_dialog = require("./as-confirm-dialog-pcKkl-Qo.cjs");
|
|
18
|
+
const require_as_filter_field = require("./as-filter-field-BPPMOZ9M.cjs");
|
|
19
|
+
const require_as_filter_input = require("./as-filter-input-DZkhoSWO.cjs");
|
|
20
|
+
const require_as_filter_dialog = require("./as-filter-dialog-Cd16xRfM.cjs");
|
|
21
|
+
const require_as_table_header_cell = require("./as-table-header-cell-Ch0J_Axe.cjs");
|
|
22
|
+
const require_as_window_table = require("./as-window-table-BvUfaBj8.cjs");
|
|
23
|
+
const require_as_table_cell_value = require("./as-table-cell-value-CGBk-KWx.cjs");
|
|
24
|
+
const require_as_residual_filter = require("./as-residual-filter-BGz7pSdL.cjs");
|
|
25
|
+
const require_as_filters = require("./as-filters-C22XxgEx.cjs");
|
|
26
|
+
const require_as_preset_dialog = require("./as-preset-dialog-CFvmrXGP.cjs");
|
|
27
|
+
const require_as_row_actions = require("./as-row-actions-S_IVb5c2.cjs");
|
|
28
|
+
const require_as_table_root = require("./as-table-root-BQ5PA2SL.cjs");
|
|
29
|
+
const require_as_table = require("./as-table-BIKHGH4x.cjs");
|
|
30
|
+
const require_as_table_actions = require("./as-table-actions-CgMktjjD.cjs");
|
|
31
|
+
const require_as_preset_picker = require("./as-preset-picker-DjV1c6Kh.cjs");
|
|
32
32
|
let _atscript_ui = require("@atscript/ui");
|
|
33
33
|
let vue = require("vue");
|
|
34
34
|
let _atscript_ui_table = require("@atscript/ui-table");
|
package/dist/index.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as _default$11 } from "./as-filters.vue-vH1FHn9L.cjs";
|
|
2
2
|
import { t as _default$13 } from "./as-preset-picker.vue-DfXS3pGl.cjs";
|
|
3
3
|
import { A as RowSelectableHook, B as TableSelection, C as ResolvedRowActions, D as RowClassHook, E as RowAttrsHook, F as TAsCellTypeComponents, I as TAsTableControls, L as TVueTableActionInfo, M as SelectAllState, N as SelectOn, O as RowDeleteOpt, P as SelectionResetEvent, R as TableActionsState, S as ReactiveTableState, T as RowActionsConfig, V as resolveRowActions, _ as MainActionRequest, a as identifierFieldsOf, b as QueryErrorKind, c as ActionResult, d as ConfigTab, g as LocalRowAction, h as InvokeOpts, i as extractIdentifier, j as RowSelectableVerdict, k as RowHookContext, l as ApplyUrlQueryOptions, n as QUERY_TARGET_UNSUPPORTED_REASON, o as queryTargetGate, p as DroppedFieldsReport, r as actionIdentifiers, s as ActionQueryTarget, u as ColumnMenuConfig, v as NavKeyOptions, x as QuerySelection, z as TableNavBridge } from "./intent-scope-CGch9yhy.cjs";
|
|
4
|
-
import { t as _default$16 } from "./as-table-actions.vue-
|
|
5
|
-
import { $ as ExportProgress, A as getColumnWidth, B as UseAppPrefsReturn, C as getDefaultClientFactory, Ct as UsePresetsOptions, D as setDefaultClientFactory, Dt as UseLocalDraftOptions, E as resolveSystemPresets, Et as StorageLike, F as createDefaultControls, G as TableUrlQueryRouter, H as AS_PRESETS_APP, I as _default$20, J as useTableActions, K as UseTableUrlQueryOptions, L as _default$15, M as provideCellLocale, N as useCellLocale, O as formatCellValue, Ot as UseLocalDraftReturn, P as createDefaultCellTypes, Q as ExportCellFormatter, R as useTableComponent, S as UserConfData, St as ActivePresetView, T as resetDefaultClientFactory, Tt as usePresets, U as injectPresetsApp, V as useAppPrefs, W as TableUrlQueryRoute, X as useTableFilter, Y as useTableSearch, Z as useTableNavBridge, _ as SYSTEM_PRESET_PREFIX, _t as createStaticTableState, a as CsvOptions, at as UseTableOptions, b as SystemPresetInput, bt as useTableContext, c as ExportScalar, ct as SelectionPersistence, d as PresetCapabilities, dt as CreateStaticTableStateOptions, et as ExportResult, f as PresetData, ft as CreateTableStateOptions, g as STANDARD_PRESET_ID, gt as TableStateInternals, h as QueryOptions, ht as TableModelRefs, i as ClientFactory, it as useTableExport, j as CellLocale, k as getCellValue, kt as useLocalDraft, l as PRESET_ASPECTS, lt as useTableSelection, m as PresetSnapshotWire, mt as TableContext, n as AppConfData, nt as UseTableExportReturn, o as DisplayColumnDef, ot as clearTableCache, p as PresetSnapshot, pt as QueryFn, q as useTableUrlQuery, r as AsPresetEntryRow, rt as downloadExport, s as ExportAbortError, st as useTable, t as _default$19, tt as ExportRowsOptions, u as PresetAspect, ut as BuildQueryOptions, v as SelectionQuery, vt as createTableState, w as isSystemPresetId, wt as UsePresetsReturn, x as UrlQuerySync, xt as useTableContextOptional, y as SystemPreset, yt as provideTableContext, z as UseAppPrefsOptions } from "./as-table-root.vue-
|
|
4
|
+
import { t as _default$16 } from "./as-table-actions.vue-D8KKwLdM.cjs";
|
|
5
|
+
import { $ as ExportProgress, A as getColumnWidth, B as UseAppPrefsReturn, C as getDefaultClientFactory, Ct as UsePresetsOptions, D as setDefaultClientFactory, Dt as UseLocalDraftOptions, E as resolveSystemPresets, Et as StorageLike, F as createDefaultControls, G as TableUrlQueryRouter, H as AS_PRESETS_APP, I as _default$20, J as useTableActions, K as UseTableUrlQueryOptions, L as _default$15, M as provideCellLocale, N as useCellLocale, O as formatCellValue, Ot as UseLocalDraftReturn, P as createDefaultCellTypes, Q as ExportCellFormatter, R as useTableComponent, S as UserConfData, St as ActivePresetView, T as resetDefaultClientFactory, Tt as usePresets, U as injectPresetsApp, V as useAppPrefs, W as TableUrlQueryRoute, X as useTableFilter, Y as useTableSearch, Z as useTableNavBridge, _ as SYSTEM_PRESET_PREFIX, _t as createStaticTableState, a as CsvOptions, at as UseTableOptions, b as SystemPresetInput, bt as useTableContext, c as ExportScalar, ct as SelectionPersistence, d as PresetCapabilities, dt as CreateStaticTableStateOptions, et as ExportResult, f as PresetData, ft as CreateTableStateOptions, g as STANDARD_PRESET_ID, gt as TableStateInternals, h as QueryOptions, ht as TableModelRefs, i as ClientFactory, it as useTableExport, j as CellLocale, k as getCellValue, kt as useLocalDraft, l as PRESET_ASPECTS, lt as useTableSelection, m as PresetSnapshotWire, mt as TableContext, n as AppConfData, nt as UseTableExportReturn, o as DisplayColumnDef, ot as clearTableCache, p as PresetSnapshot, pt as QueryFn, q as useTableUrlQuery, r as AsPresetEntryRow, rt as downloadExport, s as ExportAbortError, st as useTable, t as _default$19, tt as ExportRowsOptions, u as PresetAspect, ut as BuildQueryOptions, v as SelectionQuery, vt as createTableState, w as isSystemPresetId, wt as UsePresetsReturn, x as UrlQuerySync, xt as useTableContextOptional, y as SystemPreset, yt as provideTableContext, z as UseAppPrefsOptions } from "./as-table-root.vue-Mvmfeg6Y.cjs";
|
|
6
6
|
import { t as _default } from "./as-cell-array.vue-C4BTM8YW.cjs";
|
|
7
|
-
import { t as _default$1 } from "./as-cell-date.vue-
|
|
7
|
+
import { t as _default$1 } from "./as-cell-date.vue-DwTSTjsj.cjs";
|
|
8
8
|
import { t as _default$2 } from "./as-cell-json.vue-pwE9uJdv.cjs";
|
|
9
9
|
import { t as _default$3 } from "./as-cell-number.vue-pbgVCIWT.cjs";
|
|
10
10
|
import { t as _default$4 } from "./as-cell-union.vue-BK_M7opL.cjs";
|
package/dist/index.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as _default$11 } from "./as-filters.vue-Bu4wK0iD.mjs";
|
|
2
2
|
import { t as _default$13 } from "./as-preset-picker.vue-DAUZOlOD.mjs";
|
|
3
3
|
import { A as RowSelectableHook, B as TableSelection, C as ResolvedRowActions, D as RowClassHook, E as RowAttrsHook, F as TAsCellTypeComponents, I as TAsTableControls, L as TVueTableActionInfo, M as SelectAllState, N as SelectOn, O as RowDeleteOpt, P as SelectionResetEvent, R as TableActionsState, S as ReactiveTableState, T as RowActionsConfig, V as resolveRowActions, _ as MainActionRequest, a as identifierFieldsOf, b as QueryErrorKind, c as ActionResult, d as ConfigTab, g as LocalRowAction, h as InvokeOpts, i as extractIdentifier, j as RowSelectableVerdict, k as RowHookContext, l as ApplyUrlQueryOptions, n as QUERY_TARGET_UNSUPPORTED_REASON, o as queryTargetGate, p as DroppedFieldsReport, r as actionIdentifiers, s as ActionQueryTarget, u as ColumnMenuConfig, v as NavKeyOptions, x as QuerySelection, z as TableNavBridge } from "./intent-scope-CvD4YOvf.mjs";
|
|
4
|
-
import { t as _default$16 } from "./as-table-actions.vue-
|
|
5
|
-
import { $ as ExportProgress, A as getColumnWidth, B as UseAppPrefsReturn, C as getDefaultClientFactory, Ct as UsePresetsOptions, D as setDefaultClientFactory, Dt as UseLocalDraftOptions, E as resolveSystemPresets, Et as StorageLike, F as createDefaultControls, G as TableUrlQueryRouter, H as AS_PRESETS_APP, I as _default$20, J as useTableActions, K as UseTableUrlQueryOptions, L as _default$15, M as provideCellLocale, N as useCellLocale, O as formatCellValue, Ot as UseLocalDraftReturn, P as createDefaultCellTypes, Q as ExportCellFormatter, R as useTableComponent, S as UserConfData, St as ActivePresetView, T as resetDefaultClientFactory, Tt as usePresets, U as injectPresetsApp, V as useAppPrefs, W as TableUrlQueryRoute, X as useTableFilter, Y as useTableSearch, Z as useTableNavBridge, _ as SYSTEM_PRESET_PREFIX, _t as createStaticTableState, a as CsvOptions, at as UseTableOptions, b as SystemPresetInput, bt as useTableContext, c as ExportScalar, ct as SelectionPersistence, d as PresetCapabilities, dt as CreateStaticTableStateOptions, et as ExportResult, f as PresetData, ft as CreateTableStateOptions, g as STANDARD_PRESET_ID, gt as TableStateInternals, h as QueryOptions, ht as TableModelRefs, i as ClientFactory, it as useTableExport, j as CellLocale, k as getCellValue, kt as useLocalDraft, l as PRESET_ASPECTS, lt as useTableSelection, m as PresetSnapshotWire, mt as TableContext, n as AppConfData, nt as UseTableExportReturn, o as DisplayColumnDef, ot as clearTableCache, p as PresetSnapshot, pt as QueryFn, q as useTableUrlQuery, r as AsPresetEntryRow, rt as downloadExport, s as ExportAbortError, st as useTable, t as _default$19, tt as ExportRowsOptions, u as PresetAspect, ut as BuildQueryOptions, v as SelectionQuery, vt as createTableState, w as isSystemPresetId, wt as UsePresetsReturn, x as UrlQuerySync, xt as useTableContextOptional, y as SystemPreset, yt as provideTableContext, z as UseAppPrefsOptions } from "./as-table-root.vue-
|
|
4
|
+
import { t as _default$16 } from "./as-table-actions.vue-BMC3nQ5z.mjs";
|
|
5
|
+
import { $ as ExportProgress, A as getColumnWidth, B as UseAppPrefsReturn, C as getDefaultClientFactory, Ct as UsePresetsOptions, D as setDefaultClientFactory, Dt as UseLocalDraftOptions, E as resolveSystemPresets, Et as StorageLike, F as createDefaultControls, G as TableUrlQueryRouter, H as AS_PRESETS_APP, I as _default$20, J as useTableActions, K as UseTableUrlQueryOptions, L as _default$15, M as provideCellLocale, N as useCellLocale, O as formatCellValue, Ot as UseLocalDraftReturn, P as createDefaultCellTypes, Q as ExportCellFormatter, R as useTableComponent, S as UserConfData, St as ActivePresetView, T as resetDefaultClientFactory, Tt as usePresets, U as injectPresetsApp, V as useAppPrefs, W as TableUrlQueryRoute, X as useTableFilter, Y as useTableSearch, Z as useTableNavBridge, _ as SYSTEM_PRESET_PREFIX, _t as createStaticTableState, a as CsvOptions, at as UseTableOptions, b as SystemPresetInput, bt as useTableContext, c as ExportScalar, ct as SelectionPersistence, d as PresetCapabilities, dt as CreateStaticTableStateOptions, et as ExportResult, f as PresetData, ft as CreateTableStateOptions, g as STANDARD_PRESET_ID, gt as TableStateInternals, h as QueryOptions, ht as TableModelRefs, i as ClientFactory, it as useTableExport, j as CellLocale, k as getCellValue, kt as useLocalDraft, l as PRESET_ASPECTS, lt as useTableSelection, m as PresetSnapshotWire, mt as TableContext, n as AppConfData, nt as UseTableExportReturn, o as DisplayColumnDef, ot as clearTableCache, p as PresetSnapshot, pt as QueryFn, q as useTableUrlQuery, r as AsPresetEntryRow, rt as downloadExport, s as ExportAbortError, st as useTable, t as _default$19, tt as ExportRowsOptions, u as PresetAspect, ut as BuildQueryOptions, v as SelectionQuery, vt as createTableState, w as isSystemPresetId, wt as UsePresetsReturn, x as UrlQuerySync, xt as useTableContextOptional, y as SystemPreset, yt as provideTableContext, z as UseAppPrefsOptions } from "./as-table-root.vue-mhHmNm2I.mjs";
|
|
6
6
|
import { t as _default } from "./as-cell-array.vue-D4vS7C_D.mjs";
|
|
7
|
-
import { t as _default$1 } from "./as-cell-date.vue-
|
|
7
|
+
import { t as _default$1 } from "./as-cell-date.vue-Dyq2-vg9.mjs";
|
|
8
8
|
import { t as _default$2 } from "./as-cell-json.vue-C0_LDvQw.mjs";
|
|
9
9
|
import { t as _default$3 } from "./as-cell-number.vue-BBF0OuU8.mjs";
|
|
10
10
|
import { t as _default$4 } from "./as-cell-union.vue-CL-Lf-Rm.mjs";
|
package/dist/index.mjs
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { I as queryTargetGate, O as extractIdentifier, V as ROW_ACTIONS_TYPE, a as useTableContext, b as QUERY_TARGET_UNSUPPORTED_REASON, k as identifierFieldsOf, n as createTableState, o as useTableContextOptional, r as provideTableContext, t as createStaticTableState, v as resolveRowActions, x as actionIdentifiers } from "./use-table-state-
|
|
1
|
+
import { I as queryTargetGate, O as extractIdentifier, V as ROW_ACTIONS_TYPE, a as useTableContext, b as QUERY_TARGET_UNSUPPORTED_REASON, k as identifierFieldsOf, n as createTableState, o as useTableContextOptional, r as provideTableContext, t as createStaticTableState, v as resolveRowActions, x as actionIdentifiers } from "./use-table-state-DzvCmxEx.mjs";
|
|
2
2
|
import { t as getCellValue } from "./get-cell-value-Cb3X8nUn.mjs";
|
|
3
3
|
import { n as useTableSelection } from "./use-table-selection-CdaOPo1d.mjs";
|
|
4
|
-
import { a as useLocalDraft, i as usePresets, o as AS_PRESETS_APP, r as useTable, s as injectPresetsApp, t as clearTableCache } from "./use-table-
|
|
5
|
-
import { n as useCellLocale, t as provideCellLocale } from "./use-cell-locale-
|
|
6
|
-
import { t as useTableNavBridge } from "./use-table-nav-bridge-
|
|
7
|
-
import { t as useTableComponent } from "./use-table-component-
|
|
4
|
+
import { a as useLocalDraft, i as usePresets, o as AS_PRESETS_APP, r as useTable, s as injectPresetsApp, t as clearTableCache } from "./use-table-CTCYFwrE.mjs";
|
|
5
|
+
import { n as useCellLocale, t as provideCellLocale } from "./use-cell-locale-Bye0ANIP.mjs";
|
|
6
|
+
import { t as useTableNavBridge } from "./use-table-nav-bridge-Ch61msQs.mjs";
|
|
7
|
+
import { t as useTableComponent } from "./use-table-component-B9QRSvoR.mjs";
|
|
8
8
|
import { t as as_cell_array_default } from "./as-cell-array-CnoVd9ps.mjs";
|
|
9
|
-
import { t as as_cell_date_default } from "./as-cell-date-
|
|
9
|
+
import { t as as_cell_date_default } from "./as-cell-date-CB5L8NZ-.mjs";
|
|
10
10
|
import { t as as_cell_json_default } from "./as-cell-json-ChN_NDhO.mjs";
|
|
11
|
-
import { t as as_cell_number_default } from "./as-cell-number-
|
|
11
|
+
import { t as as_cell_number_default } from "./as-cell-number-CXhVesLq.mjs";
|
|
12
12
|
import { t as formatCellValue } from "./format-cell-D1Ziv96Q.mjs";
|
|
13
13
|
import { t as as_cell_union_default } from "./as-cell-union-C9Bbnkrg.mjs";
|
|
14
14
|
import { t as as_column_menu_default } from "./as-column-menu-CBtUfYEE.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-
|
|
17
|
-
import { t as as_filter_field_default } from "./as-filter-field-
|
|
18
|
-
import { t as as_filter_input_default } from "./as-filter-input-
|
|
19
|
-
import { t as as_filter_dialog_default } from "./as-filter-dialog-
|
|
20
|
-
import { t as as_table_header_cell_default } from "./as-table-header-cell-
|
|
21
|
-
import { t as as_window_table_default } from "./as-window-table-
|
|
22
|
-
import { t as
|
|
23
|
-
import { t as
|
|
24
|
-
import { t as
|
|
25
|
-
import { t as
|
|
26
|
-
import { t as
|
|
27
|
-
import { t as as_table_root_default } from "./as-table-root-
|
|
28
|
-
import { t as as_table_default } from "./as-table-
|
|
29
|
-
import { t as as_table_actions_default } from "./as-table-actions-
|
|
30
|
-
import { t as as_preset_picker_default } from "./as-preset-picker-
|
|
15
|
+
import { t as as_config_dialog_default } from "./as-config-dialog-DW4WfYEi.mjs";
|
|
16
|
+
import { t as as_confirm_dialog_default } from "./as-confirm-dialog-rWRl5z4R.mjs";
|
|
17
|
+
import { t as as_filter_field_default } from "./as-filter-field-DEBQQy_6.mjs";
|
|
18
|
+
import { t as as_filter_input_default } from "./as-filter-input-DeI85XVZ.mjs";
|
|
19
|
+
import { t as as_filter_dialog_default } from "./as-filter-dialog-8xvnKXTd.mjs";
|
|
20
|
+
import { t as as_table_header_cell_default } from "./as-table-header-cell-Bg5wAPHv.mjs";
|
|
21
|
+
import { t as as_window_table_default } from "./as-window-table-Cf523h8Q.mjs";
|
|
22
|
+
import { t as as_table_cell_value_default } from "./as-table-cell-value-BYJd-QRA.mjs";
|
|
23
|
+
import { t as as_residual_filter_default } from "./as-residual-filter-BoeOL9AJ.mjs";
|
|
24
|
+
import { t as as_filters_default } from "./as-filters-CT1ks7gu.mjs";
|
|
25
|
+
import { t as as_preset_dialog_default } from "./as-preset-dialog-BXL8yt8O.mjs";
|
|
26
|
+
import { t as as_row_actions_default } from "./as-row-actions-QN_UFuah.mjs";
|
|
27
|
+
import { t as as_table_root_default } from "./as-table-root-BeyqcJUq.mjs";
|
|
28
|
+
import { t as as_table_default } from "./as-table-DEjvo36o.mjs";
|
|
29
|
+
import { t as as_table_actions_default } from "./as-table-actions-m-QLy2Ys.mjs";
|
|
30
|
+
import { t as as_preset_picker_default } from "./as-preset-picker-IVVvFw6r.mjs";
|
|
31
31
|
import { getDefaultClientFactory, resetDefaultClientFactory, setDefaultClientFactory } from "@atscript/ui";
|
|
32
32
|
import { computed, effectScope, ref, shallowRef } from "vue";
|
|
33
33
|
import { AppPrefsClient, DEV, ExportAbortError, PRESET_ASPECTS, STANDARD_PRESET_ID, SYSTEM_PRESET_PREFIX, collectExportRows, columnFilter, isFilled, isSystemPresetId, isUnavailableError, leadingKey, mergeUrlQueryRecord, resolveExportValue, resolveSystemPresets, toCsv, urlQueryConsumesKey, urlQueryRecordToString, withStableOrder } from "@atscript/ui-table";
|
|
@@ -4,8 +4,19 @@ const CELL_LOCALE_KEY = "__as_cell_locale";
|
|
|
4
4
|
function provideCellLocale(source) {
|
|
5
5
|
provide(CELL_LOCALE_KEY, source);
|
|
6
6
|
}
|
|
7
|
+
/**
|
|
8
|
+
* One pair of computeds per provided source: every cell under the same
|
|
9
|
+
* provider shares them instead of allocating its own two per cell.
|
|
10
|
+
*/
|
|
11
|
+
const bySource = /* @__PURE__ */ new WeakMap();
|
|
7
12
|
function useCellLocale() {
|
|
8
13
|
const source = inject(CELL_LOCALE_KEY, void 0);
|
|
14
|
+
if (source === null || typeof source !== "object" && typeof source !== "function") return createCellLocale(source);
|
|
15
|
+
let refs = bySource.get(source);
|
|
16
|
+
if (!refs) bySource.set(source, refs = createCellLocale(source));
|
|
17
|
+
return refs;
|
|
18
|
+
}
|
|
19
|
+
function createCellLocale(source) {
|
|
9
20
|
return {
|
|
10
21
|
locale: computed(() => {
|
|
11
22
|
const lang = source ? toValue(source)?.language : void 0;
|
|
@@ -4,8 +4,19 @@ const CELL_LOCALE_KEY = "__as_cell_locale";
|
|
|
4
4
|
function provideCellLocale(source) {
|
|
5
5
|
(0, vue.provide)(CELL_LOCALE_KEY, source);
|
|
6
6
|
}
|
|
7
|
+
/**
|
|
8
|
+
* One pair of computeds per provided source: every cell under the same
|
|
9
|
+
* provider shares them instead of allocating its own two per cell.
|
|
10
|
+
*/
|
|
11
|
+
const bySource = /* @__PURE__ */ new WeakMap();
|
|
7
12
|
function useCellLocale() {
|
|
8
13
|
const source = (0, vue.inject)(CELL_LOCALE_KEY, void 0);
|
|
14
|
+
if (source === null || typeof source !== "object" && typeof source !== "function") return createCellLocale(source);
|
|
15
|
+
let refs = bySource.get(source);
|
|
16
|
+
if (!refs) bySource.set(source, refs = createCellLocale(source));
|
|
17
|
+
return refs;
|
|
18
|
+
}
|
|
19
|
+
function createCellLocale(source) {
|
|
9
20
|
return {
|
|
10
21
|
locale: (0, vue.computed)(() => {
|
|
11
22
|
const lang = source ? (0, vue.toValue)(source)?.language : void 0;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_use_cell_locale = require("./use-cell-locale-
|
|
1
|
+
const require_use_cell_locale = require("./use-cell-locale-Dy5Rf1yp.cjs");
|
|
2
2
|
let vue = require("vue");
|
|
3
3
|
let _atscript_ui_table = require("@atscript/ui-table");
|
|
4
4
|
//#region src/composables/use-condition-format.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as useCellLocale } from "./use-cell-locale-
|
|
1
|
+
import { n as useCellLocale } from "./use-cell-locale-Bye0ANIP.mjs";
|
|
2
2
|
import { computed } from "vue";
|
|
3
3
|
import { formatColumnCondition, formatColumnValue, formatFilterCondition } from "@atscript/ui-table";
|
|
4
4
|
//#region src/composables/use-condition-format.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_use_table_state = require("./use-table-state-
|
|
1
|
+
const require_use_table_state = require("./use-table-state-zE3BpeA7.cjs");
|
|
2
2
|
const require_use_table_selection = require("./use-table-selection-Cs7-gjHg.cjs");
|
|
3
|
-
const require_use_cell_locale = require("./use-cell-locale-
|
|
3
|
+
const require_use_cell_locale = require("./use-cell-locale-Dy5Rf1yp.cjs");
|
|
4
4
|
let _atscript_ui = require("@atscript/ui");
|
|
5
5
|
let vue = require("vue");
|
|
6
6
|
let _atscript_ui_table = require("@atscript/ui-table");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { l as DEFAULT_AVAILABLE_ASPECTS, n as createTableState, r as provideTableContext } from "./use-table-state-
|
|
1
|
+
import { l as DEFAULT_AVAILABLE_ASPECTS, n as createTableState, r as provideTableContext } from "./use-table-state-DzvCmxEx.mjs";
|
|
2
2
|
import { n as useTableSelection } from "./use-table-selection-CdaOPo1d.mjs";
|
|
3
|
-
import { n as useCellLocale } from "./use-cell-locale-
|
|
3
|
+
import { n as useCellLocale } from "./use-cell-locale-Bye0ANIP.mjs";
|
|
4
4
|
import { createTableDef, getMetaEntry, resetMetaCache } from "@atscript/ui";
|
|
5
5
|
import { computed, getCurrentInstance, inject, isRef, ref, shallowRef, toValue, watch } from "vue";
|
|
6
6
|
import { PresetsClient, STANDARD_PRESET_ID, debounce, deserializeDraft, isEmptyDraft, isSystemPresetId, isUnavailableError, resolveSystemPresets, serializeDraft, stableStringify } from "@atscript/ui-table";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as useTableContextOptional } from "./use-table-state-
|
|
1
|
+
import { o as useTableContextOptional } from "./use-table-state-DzvCmxEx.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,
|