@atscript/vue-table 0.1.147 → 0.1.148
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-35yQWbLF.mjs → as-action-menu-content-BBwL1YZU.mjs} +1 -1
- package/dist/{as-action-menu-content-BJ0tn6jq.cjs → as-action-menu-content-DAOjkslC.cjs} +1 -1
- package/dist/{as-cell-array-CCZ0Ajj9.cjs → as-cell-array-CB4Nt6Fo.cjs} +3 -2
- package/dist/{as-cell-array-Bgc4GYZf.mjs → as-cell-array-CnoVd9ps.mjs} +4 -3
- package/dist/as-cell-array.cjs +1 -1
- package/dist/as-cell-array.d.mts +1 -1
- package/dist/as-cell-array.mjs +1 -1
- package/dist/{as-cell-date-RU5JPJhI.cjs → as-cell-date-DrnhvCr4.cjs} +3 -14
- package/dist/{as-cell-date-B9mu0OOD.mjs → as-cell-date-dhIM7hWA.mjs} +2 -13
- package/dist/as-cell-date.cjs +1 -1
- package/dist/as-cell-date.d.mts +1 -1
- package/dist/as-cell-date.mjs +1 -1
- package/dist/{as-cell-json-ByEGYRST.mjs → as-cell-json-ChN_NDhO.mjs} +1 -1
- package/dist/{as-cell-json-w5YJxNuF.cjs → as-cell-json-CzHTpkjS.cjs} +1 -1
- package/dist/as-cell-json.cjs +1 -1
- package/dist/as-cell-json.d.mts +1 -1
- package/dist/as-cell-json.mjs +1 -1
- package/dist/{as-cell-number-DGJCTXDf.cjs → as-cell-number-C4JMqvqa.cjs} +1 -1
- package/dist/{as-cell-number-CNDT6gfw.mjs → as-cell-number-D-mSaE_G.mjs} +1 -1
- package/dist/as-cell-number.cjs +1 -1
- package/dist/as-cell-number.d.mts +1 -1
- package/dist/as-cell-number.mjs +1 -1
- package/dist/{as-cell-union-DMnoa7RM.mjs → as-cell-union-C9Bbnkrg.mjs} +1 -1
- package/dist/{as-cell-union-LOGvhPeK.cjs → as-cell-union-DpCEHLzN.cjs} +1 -1
- package/dist/as-cell-union.cjs +1 -1
- package/dist/as-cell-union.d.mts +1 -1
- package/dist/as-cell-union.mjs +1 -1
- package/dist/as-column-menu.d.cts +1 -1
- package/dist/as-column-menu.d.mts +1 -1
- package/dist/{as-column-menu.vue-B6iuKmIj.d.cts → as-column-menu.vue-4zJmC_M6.d.mts} +2 -2
- package/dist/{as-column-menu.vue-wxb2f92k.d.mts → as-column-menu.vue-CS_8jHG3.d.cts} +2 -2
- package/dist/{as-config-dialog-BJkBzaku.cjs → as-config-dialog-CnIvMsK0.cjs} +10 -5
- package/dist/{as-config-dialog-D503Ek_m.mjs → as-config-dialog-ZKMnfirD.mjs} +10 -5
- package/dist/as-config-dialog.cjs +1 -1
- package/dist/as-config-dialog.d.mts +1 -1
- package/dist/as-config-dialog.mjs +1 -1
- package/dist/{as-confirm-dialog-CJfDnaiU.mjs → as-confirm-dialog-DMiGquH1.mjs} +1 -1
- package/dist/{as-confirm-dialog-C5xPbkox.cjs → as-confirm-dialog-cSEHVFBq.cjs} +1 -1
- package/dist/as-confirm-dialog.cjs +1 -1
- package/dist/as-confirm-dialog.d.mts +1 -1
- package/dist/as-confirm-dialog.mjs +1 -1
- package/dist/{as-filter-dialog-CxjO-Ge5.mjs → as-filter-dialog-DNFR30fV.mjs} +61 -38
- package/dist/{as-filter-dialog-Co0WfWOe.cjs → as-filter-dialog-KjvJdaMg.cjs} +60 -37
- package/dist/as-filter-dialog.cjs +1 -1
- package/dist/as-filter-dialog.d.mts +1 -1
- package/dist/as-filter-dialog.mjs +1 -1
- package/dist/{as-filter-field-FTrxFkTw.cjs → as-filter-field-BsucQwbm.cjs} +247 -35
- package/dist/{as-filter-field-ByPlGyWz.mjs → as-filter-field-DE6MJMx7.mjs} +227 -39
- package/dist/as-filter-field.cjs +1 -1
- package/dist/as-filter-field.d.mts +1 -1
- package/dist/as-filter-field.mjs +1 -1
- package/dist/as-filter-input-ChJ8JE6-.cjs +254 -0
- package/dist/as-filter-input-DmOW_jzK.mjs +249 -0
- package/dist/as-filter-input.cjs +1 -1
- package/dist/as-filter-input.d.cts +1 -1
- package/dist/as-filter-input.d.mts +1 -1
- package/dist/as-filter-input.mjs +1 -1
- package/dist/{as-filter-input.vue-CksJOtqw.d.cts → as-filter-input.vue-BLTzA2Iy.d.cts} +9 -0
- package/dist/{as-filter-input.vue-DMwr0ArL.d.mts → as-filter-input.vue-CmWQGQCv.d.mts} +9 -0
- package/dist/{as-filters-W3iMELuL.cjs → as-filters-CYC_SXaA.cjs} +4 -4
- package/dist/{as-filters-CJZJiOXb.mjs → as-filters-DErM2bFq.mjs} +4 -4
- package/dist/as-filters.cjs +1 -1
- package/dist/as-filters.d.mts +1 -1
- package/dist/as-filters.mjs +1 -1
- package/dist/{as-preset-dialog-CLOVEpWZ.mjs → as-preset-dialog-CY5dPfZa.mjs} +2 -2
- package/dist/{as-preset-dialog-Dvvx0jmU.cjs → as-preset-dialog-tM-jrQgs.cjs} +2 -2
- package/dist/as-preset-dialog.cjs +1 -1
- package/dist/as-preset-dialog.d.mts +1 -1
- package/dist/as-preset-dialog.mjs +1 -1
- package/dist/{as-preset-picker-DFLhbm59.cjs → as-preset-picker-CjSXtx83.cjs} +2 -2
- package/dist/{as-preset-picker-CwFObhME.mjs → as-preset-picker-DkZ7sinz.mjs} +2 -2
- package/dist/as-preset-picker.cjs +1 -1
- package/dist/as-preset-picker.d.mts +1 -1
- package/dist/as-preset-picker.mjs +1 -1
- package/dist/{as-residual-filter-BRsEs8oe.mjs → as-residual-filter-DHfbtTQj.mjs} +4 -5
- package/dist/{as-residual-filter-sZlsFPDS.cjs → as-residual-filter-XkXnMQNu.cjs} +4 -5
- package/dist/as-residual-filter.cjs +1 -1
- package/dist/as-residual-filter.d.mts +1 -1
- package/dist/as-residual-filter.mjs +1 -1
- package/dist/{as-row-actions-DyjIXePd.mjs → as-row-actions-BNQ7jrie.mjs} +2 -2
- package/dist/{as-row-actions-DFv2cSrP.cjs → as-row-actions-q_oMmUz1.cjs} +2 -2
- package/dist/as-row-actions.cjs +1 -1
- package/dist/as-row-actions.d.cts +1 -1
- package/dist/as-row-actions.d.mts +1 -1
- package/dist/as-row-actions.mjs +1 -1
- package/dist/{as-row-actions.vue-BHrZBXVU.d.cts → as-row-actions.vue-BB8ATWBY.d.mts} +1 -1
- package/dist/{as-row-actions.vue-D4MylwCW.d.mts → as-row-actions.vue-CnjcRD0P.d.cts} +1 -1
- package/dist/{as-select-cell-CoQJjhnq.cjs → as-select-cell-Dc3lArvR.cjs} +5 -5
- package/dist/{as-select-cell-Dl8fohIj.mjs → as-select-cell-DjcPorVb.mjs} +5 -5
- package/dist/{as-selection-banner-DBtLjulh.mjs → as-selection-banner-Ca9DWVdW.mjs} +1 -1
- package/dist/{as-selection-banner-BI5gKHqW.cjs → as-selection-banner-CxPXBztW.cjs} +1 -1
- package/dist/{as-table-B1FowaPF.cjs → as-table-BIAkCI4g.cjs} +4 -4
- package/dist/{as-table-Cpvfv9zA.mjs → as-table-Bcz-WOTS.mjs} +4 -4
- package/dist/{as-table-actions-BlbAps1h.mjs → as-table-actions-DPq5SrGa.mjs} +2 -2
- package/dist/{as-table-actions-B0xaicfv.cjs → as-table-actions-TaI-NeVv.cjs} +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-7ml3JiOO.d.mts → as-table-actions.vue-C2szPEXd.d.mts} +2 -2
- package/dist/{as-table-actions.vue-BKRqHprR.d.cts → as-table-actions.vue-CBD_tEpe.d.cts} +2 -2
- package/dist/{as-table-base-EzKaChOp.mjs → as-table-base-CsK79vYe.mjs} +2 -2
- package/dist/{as-table-base-LZ26YlWp.cjs → as-table-base-Dvey_Gie.cjs} +2 -2
- package/dist/{as-table-cell-value-DoH8Mieo.mjs → as-table-cell-value-D-S127gr.mjs} +13 -2
- package/dist/{as-table-cell-value-COyZnwUj.cjs → as-table-cell-value-VWlXc5dA.cjs} +12 -1
- package/dist/as-table-cell-value.cjs +1 -1
- package/dist/as-table-cell-value.d.mts +1 -1
- package/dist/as-table-cell-value.mjs +1 -1
- package/dist/{as-table-header-cell-gHhCdxJX.cjs → as-table-header-cell-DB7Cdskr.cjs} +1 -1
- package/dist/{as-table-header-cell-DrVzYaof.mjs → as-table-header-cell-ahzAeHXj.mjs} +1 -1
- package/dist/as-table-header-cell.cjs +1 -1
- package/dist/as-table-header-cell.d.cts +1 -1
- package/dist/as-table-header-cell.d.mts +1 -1
- package/dist/as-table-header-cell.mjs +1 -1
- package/dist/{as-table-header-cell.vue-BCk4NPYT.d.cts → as-table-header-cell.vue-D2s9YLSJ.d.cts} +1 -1
- package/dist/{as-table-header-cell.vue-BZU8s9CT.d.mts → as-table-header-cell.vue-DfDNma_Z.d.mts} +1 -1
- package/dist/{as-table-root-BYHXuNPI.mjs → as-table-root-BnkF5-rh.mjs} +49 -9
- package/dist/{as-table-root-K6fWKHtF.cjs → as-table-root-Nsk-9XaH.cjs} +48 -8
- 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-Bm2DxAqU.d.mts → as-table-root.vue-D56WcudY.d.mts} +313 -1638
- package/dist/{as-table-root.vue-CF03c4vu.d.cts → as-table-root.vue-DXXcBPu_.d.cts} +313 -1638
- 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-CygDqZMU.mjs → as-window-table-DjplqWzr.mjs} +4 -4
- package/dist/{as-window-table-_flc8o64.cjs → as-window-table-ubm2u8_i.cjs} +4 -4
- 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 +68 -90
- package/dist/index.d.cts +8 -8
- package/dist/index.d.mts +21 -21
- package/dist/index.mjs +69 -91
- package/dist/{intent-scope-BXPEN5kJ.d.cts → intent-scope-CGch9yhy.d.cts} +13 -0
- package/dist/{intent-scope-Ck7RZ0dK.d.mts → intent-scope-CvD4YOvf.d.mts} +13 -0
- package/dist/use-condition-format-5LcuInDy.mjs +34 -0
- package/dist/use-condition-format-DrgfX6xL.cjs +39 -0
- package/dist/{use-table-DP6Y0kbl.mjs → use-table-BYNBpLJt.mjs} +23 -2
- package/dist/{use-table-CydIJZbx.cjs → use-table-C9qI-TL6.cjs} +22 -1
- package/dist/{use-table-component-aqfGzECx.cjs → use-table-component-CsdvdGJT.cjs} +1 -1
- package/dist/{use-table-component-DNGUvhf7.mjs → use-table-component-Dy397695.mjs} +1 -1
- package/dist/{use-table-nav-bridge-BhOPIT2R.mjs → use-table-nav-bridge-CJBERyPB.mjs} +1 -1
- package/dist/{use-table-nav-bridge-B7A30yja.cjs → use-table-nav-bridge-Gm4ZfOjJ.cjs} +1 -1
- package/dist/{use-table-state-sDnqOi3b.cjs → use-table-state-BQchKxUr.cjs} +53 -6
- package/dist/{use-table-state-1OZfdhQi.mjs → use-table-state-CIoWhwTD.mjs} +54 -7
- package/package.json +11 -11
- package/dist/as-filter-input-BM23TNeh.mjs +0 -101
- package/dist/as-filter-input-DJu2k9gO.cjs +0 -106
- /package/dist/{as-cell-array.vue-Dj3nZop3.d.mts → as-cell-array.vue-D4vS7C_D.d.mts} +0 -0
- /package/dist/{as-cell-date.vue-BPuyH7q3.d.mts → as-cell-date.vue-Chs7WTZ9.d.mts} +0 -0
- /package/dist/{as-cell-json-popover-Dkdv5Y9E.mjs → as-cell-json-popover-CH5bAcLE.mjs} +0 -0
- /package/dist/{as-cell-json-popover-BM2QLgfk.cjs → as-cell-json-popover-vty5vMjW.cjs} +0 -0
- /package/dist/{as-cell-json.vue-D8J7YwVV.d.mts → as-cell-json.vue-C0_LDvQw.d.mts} +0 -0
- /package/dist/{as-cell-number.vue-sUoZvuat.d.mts → as-cell-number.vue-BBF0OuU8.d.mts} +0 -0
- /package/dist/{as-cell-union.vue-DZBejMxR.d.mts → as-cell-union.vue-CL-Lf-Rm.d.mts} +0 -0
- /package/dist/{as-config-dialog.vue-D2AVR1a5.d.mts → as-config-dialog.vue-BvFZZRuY.d.mts} +0 -0
- /package/dist/{as-confirm-dialog.vue-BxAaCuYf.d.mts → as-confirm-dialog.vue-Cz52-v6c.d.mts} +0 -0
- /package/dist/{as-filter-dialog.vue-WYXGtymZ.d.mts → as-filter-dialog.vue-likNLqzF.d.mts} +0 -0
- /package/dist/{as-filter-field.vue-DTpuDkHh.d.mts → as-filter-field.vue-BbXLhd6O.d.mts} +0 -0
- /package/dist/{as-filters.vue-dHbGmcbr.d.mts → as-filters.vue-Bu4wK0iD.d.mts} +0 -0
- /package/dist/{as-preset-dialog.vue-BrnvBWxJ.d.mts → as-preset-dialog.vue-BRjjfPty.d.mts} +0 -0
- /package/dist/{as-preset-picker.vue-OaAV2v9z.d.mts → as-preset-picker.vue-DAUZOlOD.d.mts} +0 -0
- /package/dist/{as-residual-filter.vue-Cev_8Wy7.d.mts → as-residual-filter.vue-DbeOOtR7.d.mts} +0 -0
- /package/dist/{as-table-cell-value.vue-kfNgVhzn.d.mts → as-table-cell-value.vue-BXIH_yfq.d.mts} +0 -0
- /package/dist/{error-message-CfKpn_5w.cjs → error-message-CoUcpWal.cjs} +0 -0
- /package/dist/{error-message-gNEXnnbb.mjs → error-message-rziSiSjs.mjs} +0 -0
- /package/dist/{use-cell-locale-MQXoONh5.mjs → use-cell-locale-BTJZ6UcP.mjs} +0 -0
- /package/dist/{use-cell-locale-BGBRQB7s.cjs → use-cell-locale-Dv514-Al.cjs} +0 -0
- /package/dist/{use-has-emit-listener-DrBbsLHQ.mjs → use-has-emit-listener-CsF2w9iT.mjs} +0 -0
- /package/dist/{use-has-emit-listener-BaGFZDyM.cjs → use-has-emit-listener-gD1aWp6N.cjs} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-preset-picker.vue-
|
|
1
|
+
import { t as _default } from "./as-preset-picker.vue-DAUZOlOD.mjs";
|
|
2
2
|
export { _default as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_preset_picker_default } from "./as-preset-picker-
|
|
1
|
+
import { t as as_preset_picker_default } from "./as-preset-picker-DkZ7sinz.mjs";
|
|
2
2
|
export { as_preset_picker_default as default };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { a as useTableContext } from "./use-table-state-
|
|
1
|
+
import { a as useTableContext } from "./use-table-state-CIoWhwTD.mjs";
|
|
2
|
+
import { t as useConditionFormat } from "./use-condition-format-5LcuInDy.mjs";
|
|
2
3
|
import { computed, createElementBlock, createElementVNode, defineComponent, openBlock, toDisplayString, unref } from "vue";
|
|
3
4
|
import { formatFilterExpr } from "@atscript/ui-table";
|
|
4
5
|
//#region src/components/defaults/as-residual-filter.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -21,10 +22,8 @@ var as_residual_filter_default = /* @__PURE__ */ defineComponent({
|
|
|
21
22
|
setup(__props) {
|
|
22
23
|
const props = __props;
|
|
23
24
|
const { state } = useTableContext();
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
return formatFilterExpr(props.expr, (path) => labels.get(path));
|
|
27
|
-
});
|
|
25
|
+
const { formatValue, labelOf } = useConditionFormat(state);
|
|
26
|
+
const text = computed(() => formatFilterExpr(props.expr, labelOf, formatValue));
|
|
28
27
|
return (_ctx, _cache) => {
|
|
29
28
|
return openBlock(), createElementBlock("div", {
|
|
30
29
|
class: "as-residual-filter",
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
const require_use_table_state = require("./use-table-state-
|
|
1
|
+
const require_use_table_state = require("./use-table-state-BQchKxUr.cjs");
|
|
2
|
+
const require_use_condition_format = require("./use-condition-format-DrgfX6xL.cjs");
|
|
2
3
|
let vue = require("vue");
|
|
3
4
|
let _atscript_ui_table = require("@atscript/ui-table");
|
|
4
5
|
//#region src/components/defaults/as-residual-filter.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -21,10 +22,8 @@ var as_residual_filter_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
21
22
|
setup(__props) {
|
|
22
23
|
const props = __props;
|
|
23
24
|
const { state } = require_use_table_state.useTableContext();
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
return (0, _atscript_ui_table.formatFilterExpr)(props.expr, (path) => labels.get(path));
|
|
27
|
-
});
|
|
25
|
+
const { formatValue, labelOf } = require_use_condition_format.useConditionFormat(state);
|
|
26
|
+
const text = (0, vue.computed)(() => (0, _atscript_ui_table.formatFilterExpr)(props.expr, labelOf, formatValue));
|
|
28
27
|
return (_ctx, _cache) => {
|
|
29
28
|
return (0, vue.openBlock)(), (0, vue.createElementBlock)("div", {
|
|
30
29
|
class: "as-residual-filter",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_residual_filter = require("./as-residual-filter-
|
|
1
|
+
const require_as_residual_filter = require("./as-residual-filter-XkXnMQNu.cjs");
|
|
2
2
|
module.exports = require_as_residual_filter.as_residual_filter_default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-residual-filter.vue-
|
|
1
|
+
import { t as _default } from "./as-residual-filter.vue-DbeOOtR7.mjs";
|
|
2
2
|
export { _default as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_residual_filter_default } from "./as-residual-filter-
|
|
1
|
+
import { t as as_residual_filter_default } from "./as-residual-filter-DHfbtTQj.mjs";
|
|
2
2
|
export { as_residual_filter_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as intentClass, D as createNavigateGestures, O as extractIdentifier, R as triggerAction, a as useTableContext, k as identifierFieldsOf, v as resolveRowActions, y as rowActionHref, z as triggerBindings } from "./use-table-state-
|
|
2
|
-
import { t as as_action_menu_content_default } from "./as-action-menu-content-
|
|
1
|
+
import { A as intentClass, D as createNavigateGestures, O as extractIdentifier, R as triggerAction, a as useTableContext, k as identifierFieldsOf, v as resolveRowActions, y as rowActionHref, z as triggerBindings } from "./use-table-state-CIoWhwTD.mjs";
|
|
2
|
+
import { t as as_action_menu_content_default } from "./as-action-menu-content-BBwL1YZU.mjs";
|
|
3
3
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, mergeProps, normalizeClass, openBlock, resolveDynamicComponent, toDisplayString, unref, withCtx, withModifiers } from "vue";
|
|
4
4
|
import { DropdownMenuPortal, DropdownMenuRoot, DropdownMenuTrigger } from "reka-ui";
|
|
5
5
|
//#region src/components/defaults/as-row-actions.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_use_table_state = require("./use-table-state-
|
|
2
|
-
const require_as_action_menu_content = require("./as-action-menu-content-
|
|
1
|
+
const require_use_table_state = require("./use-table-state-BQchKxUr.cjs");
|
|
2
|
+
const require_as_action_menu_content = require("./as-action-menu-content-DAOjkslC.cjs");
|
|
3
3
|
let vue = require("vue");
|
|
4
4
|
let reka_ui = require("reka-ui");
|
|
5
5
|
//#region src/components/defaults/as-row-actions.vue?vue&type=script&setup=true&lang.ts
|
package/dist/as-row-actions.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_row_actions = require("./as-row-actions-
|
|
1
|
+
const require_as_row_actions = require("./as-row-actions-q_oMmUz1.cjs");
|
|
2
2
|
module.exports = require_as_row_actions.as_row_actions_default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-row-actions.vue-
|
|
1
|
+
import { t as _default } from "./as-row-actions.vue-CnjcRD0P.cjs";
|
|
2
2
|
export = _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-row-actions.vue-
|
|
1
|
+
import { t as _default } from "./as-row-actions.vue-BB8ATWBY.mjs";
|
|
2
2
|
export { _default as default };
|
package/dist/as-row-actions.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_row_actions_default } from "./as-row-actions-
|
|
1
|
+
import { t as as_row_actions_default } from "./as-row-actions-BNQ7jrie.mjs";
|
|
2
2
|
export { as_row_actions_default as default };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const require_use_table_state = require("./use-table-state-
|
|
2
|
-
const require_use_table_component = require("./use-table-component-
|
|
3
|
-
const require_as_table_header_cell = require("./as-table-header-cell-
|
|
4
|
-
const require_as_row_actions = require("./as-row-actions-
|
|
5
|
-
const require_as_table_cell_value = require("./as-table-cell-value-
|
|
1
|
+
const require_use_table_state = require("./use-table-state-BQchKxUr.cjs");
|
|
2
|
+
const require_use_table_component = require("./use-table-component-CsdvdGJT.cjs");
|
|
3
|
+
const require_as_table_header_cell = require("./as-table-header-cell-DB7Cdskr.cjs");
|
|
4
|
+
const require_as_row_actions = require("./as-row-actions-q_oMmUz1.cjs");
|
|
5
|
+
const require_as_table_cell_value = require("./as-table-cell-value-VWlXc5dA.cjs");
|
|
6
6
|
let _atscript_ui = require("@atscript/ui");
|
|
7
7
|
let vue = require("vue");
|
|
8
8
|
//#region src/composables/use-cell-resolver.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { g as toggleRowAt, h as onSelectControlKeydown, o as useTableContextOptional } from "./use-table-state-
|
|
2
|
-
import { t as useTableComponent } from "./use-table-component-
|
|
3
|
-
import { t as as_table_header_cell_default } from "./as-table-header-cell-
|
|
4
|
-
import { t as as_row_actions_default } from "./as-row-actions-
|
|
5
|
-
import { t as as_table_cell_value_default } from "./as-table-cell-value-
|
|
1
|
+
import { g as toggleRowAt, h as onSelectControlKeydown, o as useTableContextOptional } from "./use-table-state-CIoWhwTD.mjs";
|
|
2
|
+
import { t as useTableComponent } from "./use-table-component-Dy397695.mjs";
|
|
3
|
+
import { t as as_table_header_cell_default } from "./as-table-header-cell-ahzAeHXj.mjs";
|
|
4
|
+
import { t as as_row_actions_default } from "./as-row-actions-BNQ7jrie.mjs";
|
|
5
|
+
import { t as as_table_cell_value_default } from "./as-table-cell-value-D-S127gr.mjs";
|
|
6
6
|
import { UI_TABLE_ATTR, UI_TABLE_CLASSES, UI_TABLE_FN_ATTR, UI_TABLE_FN_CLASSES, UI_TABLE_FN_STYLES, UI_TABLE_STYLES, getFieldMeta, parseStaticAttrs, resolveAttrs, resolveFieldProp } from "@atscript/ui";
|
|
7
7
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, normalizeClass, normalizeStyle, onBeforeUnmount, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, unref, withModifiers } from "vue";
|
|
8
8
|
//#region src/composables/use-cell-resolver.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as ROW_ACTIONS_PATH, V as ROW_ACTIONS_TYPE, a as useTableContext, v as resolveRowActions } from "./use-table-state-
|
|
1
|
+
import { B as ROW_ACTIONS_PATH, V as ROW_ACTIONS_TYPE, a as useTableContext, v as resolveRowActions } from "./use-table-state-CIoWhwTD.mjs";
|
|
2
2
|
import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, defineComponent, nextTick, normalizeClass, openBlock, ref, renderSlot, toDisplayString, unref, watch } from "vue";
|
|
3
3
|
import { reorderColumnNames } from "@atscript/ui-table";
|
|
4
4
|
//#region src/composables/use-row-actions-column.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_use_table_state = require("./use-table-state-
|
|
1
|
+
const require_use_table_state = require("./use-table-state-BQchKxUr.cjs");
|
|
2
2
|
let vue = require("vue");
|
|
3
3
|
let _atscript_ui_table = require("@atscript/ui-table");
|
|
4
4
|
//#region src/composables/use-row-actions-column.ts
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const require_use_table_state = require("./use-table-state-
|
|
1
|
+
const require_use_table_state = require("./use-table-state-BQchKxUr.cjs");
|
|
2
2
|
const require_use_table_selection = require("./use-table-selection-Cs7-gjHg.cjs");
|
|
3
|
-
const require_use_has_emit_listener = require("./use-has-emit-listener-
|
|
4
|
-
const require_as_selection_banner = require("./as-selection-banner-
|
|
5
|
-
const require_as_table_base = require("./as-table-base-
|
|
3
|
+
const require_use_has_emit_listener = require("./use-has-emit-listener-gD1aWp6N.cjs");
|
|
4
|
+
const require_as_selection_banner = require("./as-selection-banner-CxPXBztW.cjs");
|
|
5
|
+
const require_as_table_base = require("./as-table-base-Dvey_Gie.cjs");
|
|
6
6
|
let vue = require("vue");
|
|
7
7
|
//#region src/components/as-table.vue?vue&type=script&setup=true&lang.ts
|
|
8
8
|
const _hoisted_1 = { class: "as-table-outer-wrap" };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as useTableContext, i as useRegisterMainActionListener } from "./use-table-state-
|
|
1
|
+
import { a as useTableContext, i as useRegisterMainActionListener } from "./use-table-state-CIoWhwTD.mjs";
|
|
2
2
|
import { t as useSelectModeReset } from "./use-table-selection-CdaOPo1d.mjs";
|
|
3
|
-
import { t as useHasEmitListener } from "./use-has-emit-listener-
|
|
4
|
-
import { n as useTableColumnHandlers, r as useRowActionsColumn, t as as_selection_banner_default } from "./as-selection-banner-
|
|
5
|
-
import { t as as_table_base_default } from "./as-table-base-
|
|
3
|
+
import { t as useHasEmitListener } from "./use-has-emit-listener-CsF2w9iT.mjs";
|
|
4
|
+
import { n as useTableColumnHandlers, r as useRowActionsColumn, t as as_selection_banner_default } from "./as-selection-banner-Ca9DWVdW.mjs";
|
|
5
|
+
import { t as as_table_base_default } from "./as-table-base-CsK79vYe.mjs";
|
|
6
6
|
import { computed, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, guardReactiveProps, normalizeProps, openBlock, renderList, renderSlot, unref, watch, withCtx } from "vue";
|
|
7
7
|
//#region src/components/as-table.vue?vue&type=script&setup=true&lang.ts
|
|
8
8
|
const _hoisted_1 = { class: "as-table-outer-wrap" };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as intentClass, C as applyRowsGate, D as createNavigateGestures, E as collectIdentifiers, I as queryTargetGate, R as triggerAction, S as applyGate, T as ariaLabelFor, a as useTableContext, k as identifierFieldsOf, v as resolveRowActions, y as rowActionHref, z as triggerBindings } from "./use-table-state-
|
|
2
|
-
import { t as as_action_menu_content_default } from "./as-action-menu-content-
|
|
1
|
+
import { A as intentClass, C as applyRowsGate, D as createNavigateGestures, E as collectIdentifiers, I as queryTargetGate, R as triggerAction, S as applyGate, T as ariaLabelFor, a as useTableContext, k as identifierFieldsOf, v as resolveRowActions, y as rowActionHref, z as triggerBindings } from "./use-table-state-CIoWhwTD.mjs";
|
|
2
|
+
import { t as as_action_menu_content_default } from "./as-action-menu-content-BBwL1YZU.mjs";
|
|
3
3
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, mergeProps, normalizeClass, openBlock, ref, renderSlot, resolveDynamicComponent, toDisplayString, unref, watch, withCtx } from "vue";
|
|
4
4
|
import { DropdownMenuPortal, DropdownMenuRoot, DropdownMenuTrigger } from "reka-ui";
|
|
5
5
|
//#region src/components/as-table-actions.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_use_table_state = require("./use-table-state-
|
|
2
|
-
const require_as_action_menu_content = require("./as-action-menu-content-
|
|
1
|
+
const require_use_table_state = require("./use-table-state-BQchKxUr.cjs");
|
|
2
|
+
const require_as_action_menu_content = require("./as-action-menu-content-DAOjkslC.cjs");
|
|
3
3
|
let vue = require("vue");
|
|
4
4
|
let reka_ui = require("reka-ui");
|
|
5
5
|
//#region src/components/as-table-actions.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_table_actions = require("./as-table-actions-
|
|
1
|
+
const require_as_table_actions = require("./as-table-actions-TaI-NeVv.cjs");
|
|
2
2
|
module.exports = require_as_table_actions.as_table_actions_default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-table-actions.vue-
|
|
1
|
+
import { t as _default } from "./as-table-actions.vue-CBD_tEpe.cjs";
|
|
2
2
|
export = _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-table-actions.vue-
|
|
1
|
+
import { t as _default } from "./as-table-actions.vue-C2szPEXd.mjs";
|
|
2
2
|
export { _default as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_table_actions_default } from "./as-table-actions-
|
|
1
|
+
import { t as as_table_actions_default } from "./as-table-actions-DPq5SrGa.mjs";
|
|
2
2
|
export { as_table_actions_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { L as TVueTableActionInfo, t as PromptTarget } from "./intent-scope-
|
|
1
|
+
import { L as TVueTableActionInfo, t as PromptTarget } from "./intent-scope-CvD4YOvf.mjs";
|
|
2
2
|
import * as vue from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/as-table-actions.vue.d.ts
|
|
@@ -23,7 +23,7 @@ declare var __VLS_1: {
|
|
|
23
23
|
defaultAction: TVueTableActionInfo | undefined;
|
|
24
24
|
otherActions: TVueTableActionInfo[];
|
|
25
25
|
trailingRowActions: TVueTableActionInfo[];
|
|
26
|
-
level: "row" | "
|
|
26
|
+
level: "row" | "rows" | "table";
|
|
27
27
|
ids: Record<string, unknown>[];
|
|
28
28
|
target: PromptTarget | undefined;
|
|
29
29
|
count: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { L as TVueTableActionInfo, t as PromptTarget } from "./intent-scope-
|
|
1
|
+
import { L as TVueTableActionInfo, t as PromptTarget } from "./intent-scope-CGch9yhy.cjs";
|
|
2
2
|
import * as vue from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/as-table-actions.vue.d.ts
|
|
@@ -23,7 +23,7 @@ declare var __VLS_1: {
|
|
|
23
23
|
defaultAction: TVueTableActionInfo | undefined;
|
|
24
24
|
otherActions: TVueTableActionInfo[];
|
|
25
25
|
trailingRowActions: TVueTableActionInfo[];
|
|
26
|
-
level: "row" | "
|
|
26
|
+
level: "row" | "rows" | "table";
|
|
27
27
|
ids: Record<string, unknown>[];
|
|
28
28
|
target: PromptTarget | undefined;
|
|
29
29
|
count: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { _ as toSelectAllState, o as useTableContextOptional } from "./use-table-state-
|
|
1
|
+
import { _ as toSelectAllState, o as useTableContextOptional } from "./use-table-state-CIoWhwTD.mjs";
|
|
2
2
|
import { t as getCellValue } from "./get-cell-value-Cb3X8nUn.mjs";
|
|
3
|
-
import { 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-
|
|
3
|
+
import { 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-DjcPorVb.mjs";
|
|
4
4
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, guardReactiveProps, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onMounted, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, unref, useSlots, watch, withCtx } from "vue";
|
|
5
5
|
import { DEFAULT_ROW_HEIGHT_PX, filledFilterCount } from "@atscript/ui-table";
|
|
6
6
|
import { useParentElement, useResizeObserver } from "@vueuse/core";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_use_table_state = require("./use-table-state-
|
|
1
|
+
const require_use_table_state = require("./use-table-state-BQchKxUr.cjs");
|
|
2
2
|
const require_get_cell_value = require("./get-cell-value-CJT4fk4y.cjs");
|
|
3
|
-
const require_as_select_cell = require("./as-select-cell-
|
|
3
|
+
const require_as_select_cell = require("./as-select-cell-Dc3lArvR.cjs");
|
|
4
4
|
let vue = require("vue");
|
|
5
5
|
let _atscript_ui_table = require("@atscript/ui-table");
|
|
6
6
|
let _vueuse_core = require("@vueuse/core");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as getCellValue } from "./get-cell-value-Cb3X8nUn.mjs";
|
|
2
2
|
import { t as formatCellValue } from "./format-cell-D1Ziv96Q.mjs";
|
|
3
|
-
import { createElementBlock, defineComponent, normalizeClass, openBlock, toDisplayString
|
|
3
|
+
import { createElementBlock, defineComponent, normalizeClass, openBlock, toDisplayString } from "vue";
|
|
4
4
|
//#endregion
|
|
5
5
|
//#region src/components/defaults/as-table-cell-value.vue
|
|
6
6
|
var as_table_cell_value_default = /* @__PURE__ */ defineComponent({
|
|
@@ -17,8 +17,19 @@ var as_table_cell_value_default = /* @__PURE__ */ defineComponent({
|
|
|
17
17
|
},
|
|
18
18
|
setup(__props) {
|
|
19
19
|
const props = __props;
|
|
20
|
+
/** Union columns show the option label (`@ui.literalLabel`); anything else formats by type. */
|
|
21
|
+
function display() {
|
|
22
|
+
const value = getCellValue(props.row, props.column.path);
|
|
23
|
+
const options = props.column.options;
|
|
24
|
+
if (options?.length && value !== null && typeof value !== "object") {
|
|
25
|
+
const key = String(value);
|
|
26
|
+
const hit = options.find((o) => o.key === key);
|
|
27
|
+
if (hit) return hit.label;
|
|
28
|
+
}
|
|
29
|
+
return formatCellValue(value, props.column.type);
|
|
30
|
+
}
|
|
20
31
|
return (_ctx, _cache) => {
|
|
21
|
-
return openBlock(), createElementBlock("td", { class: normalizeClass({ "as-cell-number": props.column.type === "number" }) }, toDisplayString(
|
|
32
|
+
return openBlock(), createElementBlock("td", { class: normalizeClass({ "as-cell-number": props.column.type === "number" }) }, toDisplayString(display()), 3);
|
|
22
33
|
};
|
|
23
34
|
}
|
|
24
35
|
});
|
|
@@ -17,8 +17,19 @@ var as_table_cell_value_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
17
17
|
},
|
|
18
18
|
setup(__props) {
|
|
19
19
|
const props = __props;
|
|
20
|
+
/** Union columns show the option label (`@ui.literalLabel`); anything else formats by type. */
|
|
21
|
+
function display() {
|
|
22
|
+
const value = require_get_cell_value.getCellValue(props.row, props.column.path);
|
|
23
|
+
const options = props.column.options;
|
|
24
|
+
if (options?.length && value !== null && typeof value !== "object") {
|
|
25
|
+
const key = String(value);
|
|
26
|
+
const hit = options.find((o) => o.key === key);
|
|
27
|
+
if (hit) return hit.label;
|
|
28
|
+
}
|
|
29
|
+
return require_format_cell.formatCellValue(value, props.column.type);
|
|
30
|
+
}
|
|
20
31
|
return (_ctx, _cache) => {
|
|
21
|
-
return (0, vue.openBlock)(), (0, vue.createElementBlock)("td", { class: (0, vue.normalizeClass)({ "as-cell-number": props.column.type === "number" }) }, (0, vue.toDisplayString)((
|
|
32
|
+
return (0, vue.openBlock)(), (0, vue.createElementBlock)("td", { class: (0, vue.normalizeClass)({ "as-cell-number": props.column.type === "number" }) }, (0, vue.toDisplayString)(display()), 3);
|
|
22
33
|
};
|
|
23
34
|
}
|
|
24
35
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_table_cell_value = require("./as-table-cell-value-
|
|
1
|
+
const require_as_table_cell_value = require("./as-table-cell-value-VWlXc5dA.cjs");
|
|
2
2
|
module.exports = require_as_table_cell_value.as_table_cell_value_default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-table-cell-value.vue-
|
|
1
|
+
import { t as _default } from "./as-table-cell-value.vue-BXIH_yfq.mjs";
|
|
2
2
|
export { _default as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_table_cell_value_default } from "./as-table-cell-value-
|
|
1
|
+
import { t as as_table_cell_value_default } from "./as-table-cell-value-D-S127gr.mjs";
|
|
2
2
|
export { as_table_cell_value_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_use_table_component = require("./use-table-component-
|
|
1
|
+
const require_use_table_component = require("./use-table-component-CsdvdGJT.cjs");
|
|
2
2
|
const require_as_column_menu = require("./as-column-menu-ChB7hzmr.cjs");
|
|
3
3
|
let vue = require("vue");
|
|
4
4
|
let _atscript_ui_table = require("@atscript/ui-table");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as useTableComponent } from "./use-table-component-
|
|
1
|
+
import { t as useTableComponent } from "./use-table-component-Dy397695.mjs";
|
|
2
2
|
import { t as as_column_menu_default } from "./as-column-menu-CBtUfYEE.mjs";
|
|
3
3
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, normalizeClass, openBlock, resolveDynamicComponent, toDisplayString, unref, withCtx, withModifiers } from "vue";
|
|
4
4
|
import { isFilled } from "@atscript/ui-table";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_table_header_cell = require("./as-table-header-cell-
|
|
1
|
+
const require_as_table_header_cell = require("./as-table-header-cell-DB7Cdskr.cjs");
|
|
2
2
|
module.exports = require_as_table_header_cell.as_table_header_cell_default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-table-header-cell.vue-
|
|
1
|
+
import { t as _default } from "./as-table-header-cell.vue-D2s9YLSJ.cjs";
|
|
2
2
|
export = _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-table-header-cell.vue-
|
|
1
|
+
import { t as _default } from "./as-table-header-cell.vue-DfDNma_Z.mjs";
|
|
2
2
|
export { _default as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_table_header_cell_default } from "./as-table-header-cell-
|
|
1
|
+
import { t as as_table_header_cell_default } from "./as-table-header-cell-ahzAeHXj.mjs";
|
|
2
2
|
export { as_table_header_cell_default as default };
|
package/dist/{as-table-header-cell.vue-BCk4NPYT.d.cts → as-table-header-cell.vue-D2s9YLSJ.d.cts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as ColumnMenuConfig } from "./intent-scope-
|
|
1
|
+
import { u as ColumnMenuConfig } from "./intent-scope-CGch9yhy.cjs";
|
|
2
2
|
import * as vue from "vue";
|
|
3
3
|
import { ColumnDef } from "@atscript/ui";
|
|
4
4
|
import { ColumnWidthEntry, FilterCondition } from "@atscript/ui-table";
|
package/dist/{as-table-header-cell.vue-BZU8s9CT.d.mts → as-table-header-cell.vue-DfDNma_Z.d.mts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as ColumnMenuConfig } from "./intent-scope-
|
|
1
|
+
import { u as ColumnMenuConfig } from "./intent-scope-CvD4YOvf.mjs";
|
|
2
2
|
import { ColumnDef } from "@atscript/ui";
|
|
3
3
|
import * as vue from "vue";
|
|
4
4
|
import { ColumnWidthEntry, FilterCondition } from "@atscript/ui-table";
|
|
@@ -1,10 +1,11 @@
|
|
|
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 { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
1
|
+
import { c as warnUnsupportedFilter, i as useRegisterMainActionListener, s as warnFieldsDropped, t as createStaticTableState } from "./use-table-state-CIoWhwTD.mjs";
|
|
2
|
+
import { n as finalizeTableState, r as useTable } from "./use-table-BYNBpLJt.mjs";
|
|
3
|
+
import { n as useCellLocale, t as provideCellLocale } from "./use-cell-locale-BTJZ6UcP.mjs";
|
|
4
|
+
import { t as useTableNavBridge } from "./use-table-nav-bridge-CJBERyPB.mjs";
|
|
5
|
+
import { t as useHasEmitListener } from "./use-has-emit-listener-CsF2w9iT.mjs";
|
|
6
|
+
import { t as as_confirm_dialog_default } from "./as-confirm-dialog-DMiGquH1.mjs";
|
|
6
7
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, defineAsyncComponent, defineComponent, mergeModels, openBlock, ref, renderSlot, resolveDynamicComponent, unref, useModel, watch } from "vue";
|
|
7
|
-
import { DEV } from "@atscript/ui-table";
|
|
8
|
+
import { DEV, stableValueKey } from "@atscript/ui-table";
|
|
8
9
|
//#endregion
|
|
9
10
|
//#region src/components/as-table-root.vue
|
|
10
11
|
var as_table_root_default = /* @__PURE__ */ defineComponent({
|
|
@@ -67,6 +68,10 @@ var as_table_root_default = /* @__PURE__ */ defineComponent({
|
|
|
67
68
|
type: Number,
|
|
68
69
|
required: false
|
|
69
70
|
},
|
|
71
|
+
timeZone: {
|
|
72
|
+
type: String,
|
|
73
|
+
required: false
|
|
74
|
+
},
|
|
70
75
|
forceFilters: {
|
|
71
76
|
type: null,
|
|
72
77
|
required: false
|
|
@@ -276,15 +281,21 @@ var as_table_root_default = /* @__PURE__ */ defineComponent({
|
|
|
276
281
|
watch(() => props.rows, () => localState.query({ silent: true }));
|
|
277
282
|
return localState;
|
|
278
283
|
}
|
|
284
|
+
const parentLocale = useCellLocale();
|
|
285
|
+
provideCellLocale(() => ({
|
|
286
|
+
language: parentLocale.locale.value,
|
|
287
|
+
timezone: props.timeZone ?? parentLocale.timezone.value
|
|
288
|
+
}));
|
|
279
289
|
const hasUnsupportedFilterListener = useHasEmitListener("onUnsupportedFilter");
|
|
280
290
|
const hasFieldsDroppedListener = useHasEmitListener("onFieldsDropped");
|
|
281
291
|
const state = localMode ? createLocalState() : useTable(props.url, {
|
|
282
292
|
limit: props.limit,
|
|
283
293
|
rowValueFn: props.rowValueFn,
|
|
284
294
|
selectionPersistence: props.selectionPersistence,
|
|
285
|
-
forceFilters: props.forceFilters,
|
|
286
|
-
forceSorters: props.forceSorters,
|
|
287
|
-
alwaysSelected: props.alwaysSelected,
|
|
295
|
+
forceFilters: () => props.forceFilters,
|
|
296
|
+
forceSorters: () => props.forceSorters,
|
|
297
|
+
alwaysSelected: () => props.alwaysSelected,
|
|
298
|
+
timeZone: () => props.timeZone,
|
|
288
299
|
queryFn: props.queryFn,
|
|
289
300
|
queryOnMount: props.queryOnMount,
|
|
290
301
|
blockQuery: () => props.blockQuery === true,
|
|
@@ -317,6 +328,35 @@ var as_table_root_default = /* @__PURE__ */ defineComponent({
|
|
|
317
328
|
preset: props.preset,
|
|
318
329
|
displayColumns: props.displayColumns
|
|
319
330
|
});
|
|
331
|
+
/** A column's key in a `displayColumns` / `columns` list. */
|
|
332
|
+
const listKey = (c) => c.key ?? c.path;
|
|
333
|
+
if (DEV) {
|
|
334
|
+
const setupOnly = [
|
|
335
|
+
"url",
|
|
336
|
+
"queryFn",
|
|
337
|
+
"preset",
|
|
338
|
+
"urlQuerySync",
|
|
339
|
+
"displayColumns",
|
|
340
|
+
"limit",
|
|
341
|
+
"clientFactory",
|
|
342
|
+
...localMode ? ["columns"] : []
|
|
343
|
+
];
|
|
344
|
+
const sameValue = (a, b) => {
|
|
345
|
+
if (typeof a === "function" || typeof b === "function") return typeof a === typeof b;
|
|
346
|
+
if (Array.isArray(a) && Array.isArray(b)) return a.length === b.length && a.every((c, i) => listKey(c) === listKey(b[i]));
|
|
347
|
+
try {
|
|
348
|
+
return stableValueKey(a ?? null) === stableValueKey(b ?? null);
|
|
349
|
+
} catch {
|
|
350
|
+
return false;
|
|
351
|
+
}
|
|
352
|
+
};
|
|
353
|
+
const warned = /* @__PURE__ */ new Set();
|
|
354
|
+
for (const name of setupOnly) watch(() => props[name], (next, prev) => {
|
|
355
|
+
if (next === prev || warned.has(name) || sameValue(next, prev)) return;
|
|
356
|
+
warned.add(name);
|
|
357
|
+
console.warn(`[vue-table] <AsTableRoot>: :${name} ${typeof next === "function" || typeof prev === "function" ? "provided/removed" : "changed"} after mount; it is read once — key the component (:key) to switch it.`);
|
|
358
|
+
});
|
|
359
|
+
}
|
|
320
360
|
watch(() => props.rowActions, (value) => {
|
|
321
361
|
state.rowActions.value = value;
|
|
322
362
|
}, { immediate: true });
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
const require_use_table_state = require("./use-table-state-
|
|
2
|
-
const require_use_table = require("./use-table-
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
1
|
+
const require_use_table_state = require("./use-table-state-BQchKxUr.cjs");
|
|
2
|
+
const require_use_table = require("./use-table-C9qI-TL6.cjs");
|
|
3
|
+
const require_use_cell_locale = require("./use-cell-locale-Dv514-Al.cjs");
|
|
4
|
+
const require_use_table_nav_bridge = require("./use-table-nav-bridge-Gm4ZfOjJ.cjs");
|
|
5
|
+
const require_use_has_emit_listener = require("./use-has-emit-listener-gD1aWp6N.cjs");
|
|
6
|
+
const require_as_confirm_dialog = require("./as-confirm-dialog-cSEHVFBq.cjs");
|
|
6
7
|
let vue = require("vue");
|
|
7
8
|
let _atscript_ui_table = require("@atscript/ui-table");
|
|
8
9
|
//#endregion
|
|
@@ -67,6 +68,10 @@ var as_table_root_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
67
68
|
type: Number,
|
|
68
69
|
required: false
|
|
69
70
|
},
|
|
71
|
+
timeZone: {
|
|
72
|
+
type: String,
|
|
73
|
+
required: false
|
|
74
|
+
},
|
|
70
75
|
forceFilters: {
|
|
71
76
|
type: null,
|
|
72
77
|
required: false
|
|
@@ -276,15 +281,21 @@ var as_table_root_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
276
281
|
(0, vue.watch)(() => props.rows, () => localState.query({ silent: true }));
|
|
277
282
|
return localState;
|
|
278
283
|
}
|
|
284
|
+
const parentLocale = require_use_cell_locale.useCellLocale();
|
|
285
|
+
require_use_cell_locale.provideCellLocale(() => ({
|
|
286
|
+
language: parentLocale.locale.value,
|
|
287
|
+
timezone: props.timeZone ?? parentLocale.timezone.value
|
|
288
|
+
}));
|
|
279
289
|
const hasUnsupportedFilterListener = require_use_has_emit_listener.useHasEmitListener("onUnsupportedFilter");
|
|
280
290
|
const hasFieldsDroppedListener = require_use_has_emit_listener.useHasEmitListener("onFieldsDropped");
|
|
281
291
|
const state = localMode ? createLocalState() : require_use_table.useTable(props.url, {
|
|
282
292
|
limit: props.limit,
|
|
283
293
|
rowValueFn: props.rowValueFn,
|
|
284
294
|
selectionPersistence: props.selectionPersistence,
|
|
285
|
-
forceFilters: props.forceFilters,
|
|
286
|
-
forceSorters: props.forceSorters,
|
|
287
|
-
alwaysSelected: props.alwaysSelected,
|
|
295
|
+
forceFilters: () => props.forceFilters,
|
|
296
|
+
forceSorters: () => props.forceSorters,
|
|
297
|
+
alwaysSelected: () => props.alwaysSelected,
|
|
298
|
+
timeZone: () => props.timeZone,
|
|
288
299
|
queryFn: props.queryFn,
|
|
289
300
|
queryOnMount: props.queryOnMount,
|
|
290
301
|
blockQuery: () => props.blockQuery === true,
|
|
@@ -317,6 +328,35 @@ var as_table_root_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
317
328
|
preset: props.preset,
|
|
318
329
|
displayColumns: props.displayColumns
|
|
319
330
|
});
|
|
331
|
+
/** A column's key in a `displayColumns` / `columns` list. */
|
|
332
|
+
const listKey = (c) => c.key ?? c.path;
|
|
333
|
+
if (_atscript_ui_table.DEV) {
|
|
334
|
+
const setupOnly = [
|
|
335
|
+
"url",
|
|
336
|
+
"queryFn",
|
|
337
|
+
"preset",
|
|
338
|
+
"urlQuerySync",
|
|
339
|
+
"displayColumns",
|
|
340
|
+
"limit",
|
|
341
|
+
"clientFactory",
|
|
342
|
+
...localMode ? ["columns"] : []
|
|
343
|
+
];
|
|
344
|
+
const sameValue = (a, b) => {
|
|
345
|
+
if (typeof a === "function" || typeof b === "function") return typeof a === typeof b;
|
|
346
|
+
if (Array.isArray(a) && Array.isArray(b)) return a.length === b.length && a.every((c, i) => listKey(c) === listKey(b[i]));
|
|
347
|
+
try {
|
|
348
|
+
return (0, _atscript_ui_table.stableValueKey)(a ?? null) === (0, _atscript_ui_table.stableValueKey)(b ?? null);
|
|
349
|
+
} catch {
|
|
350
|
+
return false;
|
|
351
|
+
}
|
|
352
|
+
};
|
|
353
|
+
const warned = /* @__PURE__ */ new Set();
|
|
354
|
+
for (const name of setupOnly) (0, vue.watch)(() => props[name], (next, prev) => {
|
|
355
|
+
if (next === prev || warned.has(name) || sameValue(next, prev)) return;
|
|
356
|
+
warned.add(name);
|
|
357
|
+
console.warn(`[vue-table] <AsTableRoot>: :${name} ${typeof next === "function" || typeof prev === "function" ? "provided/removed" : "changed"} after mount; it is read once — key the component (:key) to switch it.`);
|
|
358
|
+
});
|
|
359
|
+
}
|
|
320
360
|
(0, vue.watch)(() => props.rowActions, (value) => {
|
|
321
361
|
state.rowActions.value = value;
|
|
322
362
|
}, { immediate: true });
|
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-Nsk-9XaH.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-DXXcBPu_.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-D56WcudY.mjs";
|
|
2
2
|
export { _default as default };
|