@atscript/vue-table 0.1.146 → 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 +3 -2
- package/dist/as-action-form-dialog.mjs +3 -2
- package/dist/{as-action-menu-content-DoZnQP0I.mjs → as-action-menu-content-BBwL1YZU.mjs} +1 -1
- package/dist/{as-action-menu-content-FQ2miGid.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.cts +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.cts +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.cts +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.cts +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.cts +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-ByTECTbX.d.cts → as-column-menu.vue-4zJmC_M6.d.mts} +2 -2
- package/dist/{as-column-menu.vue-TChT482i.d.mts → as-column-menu.vue-CS_8jHG3.d.cts} +2 -2
- package/dist/{as-config-dialog-CpW1Qemf.cjs → as-config-dialog-CnIvMsK0.cjs} +10 -5
- package/dist/{as-config-dialog-ObHtungs.mjs → as-config-dialog-ZKMnfirD.mjs} +10 -5
- package/dist/as-config-dialog.cjs +1 -1
- package/dist/as-config-dialog.d.cts +1 -1
- package/dist/as-config-dialog.d.mts +1 -1
- package/dist/as-config-dialog.mjs +1 -1
- package/dist/{as-confirm-dialog-zg7jmS3u.mjs → as-confirm-dialog-DMiGquH1.mjs} +1 -1
- package/dist/{as-confirm-dialog-D3Vu1Rb_.cjs → as-confirm-dialog-cSEHVFBq.cjs} +1 -1
- package/dist/as-confirm-dialog.cjs +1 -1
- package/dist/as-confirm-dialog.d.cts +1 -1
- package/dist/as-confirm-dialog.d.mts +1 -1
- package/dist/as-confirm-dialog.mjs +1 -1
- package/dist/{as-filter-dialog-CWy0mjZl.mjs → as-filter-dialog-DNFR30fV.mjs} +61 -38
- package/dist/{as-filter-dialog-C4EyRr2_.cjs → as-filter-dialog-KjvJdaMg.cjs} +60 -37
- package/dist/as-filter-dialog.cjs +1 -1
- package/dist/as-filter-dialog.d.cts +1 -1
- package/dist/as-filter-dialog.d.mts +1 -1
- package/dist/as-filter-dialog.mjs +1 -1
- package/dist/{as-filter-field-BQ9UlV0y.cjs → as-filter-field-BsucQwbm.cjs} +247 -35
- package/dist/{as-filter-field-CW1_GHZT.mjs → as-filter-field-DE6MJMx7.mjs} +227 -39
- package/dist/as-filter-field.cjs +1 -1
- package/dist/as-filter-field.d.cts +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-CFZ33B--.d.mts → as-filter-input.vue-BLTzA2Iy.d.cts} +10 -1
- package/dist/{as-filter-input.vue-CS4nOk_Q.d.cts → as-filter-input.vue-CmWQGQCv.d.mts} +10 -1
- package/dist/{as-filters-DUfFkXAo.cjs → as-filters-CYC_SXaA.cjs} +4 -4
- package/dist/{as-filters-BLFSS_VP.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-CI2Hw8vi.mjs → as-preset-dialog-CY5dPfZa.mjs} +2 -2
- package/dist/{as-preset-dialog-BlXqTZiT.cjs → as-preset-dialog-tM-jrQgs.cjs} +2 -2
- package/dist/as-preset-dialog.cjs +1 -1
- package/dist/as-preset-dialog.d.cts +1 -1
- package/dist/as-preset-dialog.d.mts +1 -1
- package/dist/as-preset-dialog.mjs +1 -1
- package/dist/{as-preset-picker-CVgyZBG7.cjs → as-preset-picker-CjSXtx83.cjs} +2 -2
- package/dist/{as-preset-picker-CbZDGPaf.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-CUTouIn5.mjs → as-residual-filter-DHfbtTQj.mjs} +4 -5
- package/dist/{as-residual-filter-C8n7kdGW.cjs → as-residual-filter-XkXnMQNu.cjs} +4 -5
- package/dist/as-residual-filter.cjs +1 -1
- package/dist/as-residual-filter.d.cts +1 -1
- package/dist/as-residual-filter.d.mts +1 -1
- package/dist/as-residual-filter.mjs +1 -1
- package/dist/{as-row-actions-ed1P6GEJ.mjs → as-row-actions-BNQ7jrie.mjs} +7 -5
- package/dist/{as-row-actions-DfUL9sYB.cjs → as-row-actions-q_oMmUz1.cjs} +7 -5
- 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-Ba3VO9W-.d.cts → as-row-actions.vue-BB8ATWBY.d.mts} +1 -1
- package/dist/{as-row-actions.vue-CKOnE0eb.d.mts → as-row-actions.vue-CnjcRD0P.d.cts} +1 -1
- package/dist/{as-select-cell-DwMfqBMV.cjs → as-select-cell-Dc3lArvR.cjs} +11 -6
- package/dist/{as-select-cell-BMptU5sQ.mjs → as-select-cell-DjcPorVb.mjs} +11 -6
- package/dist/as-selection-banner-Ca9DWVdW.mjs +189 -0
- package/dist/as-selection-banner-CxPXBztW.cjs +206 -0
- package/dist/as-table-BIAkCI4g.cjs +215 -0
- package/dist/as-table-Bcz-WOTS.mjs +210 -0
- package/dist/{as-table-actions-DQco4pGu.mjs → as-table-actions-DPq5SrGa.mjs} +32 -6
- package/dist/{as-table-actions-DplblFlK.cjs → as-table-actions-TaI-NeVv.cjs} +32 -6
- 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-BYphfAe2.d.cts → as-table-actions.vue-C2szPEXd.d.mts} +8 -1
- package/dist/{as-table-actions.vue-C6hzRtS7.d.mts → as-table-actions.vue-CBD_tEpe.d.cts} +8 -1
- package/dist/{as-table-base-lfyjPgsO.mjs → as-table-base-CsK79vYe.mjs} +3 -3
- package/dist/{as-table-base-CNAn-vpa.cjs → as-table-base-Dvey_Gie.cjs} +3 -3
- 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.cts +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-BwaOPYwI.cjs → as-table-header-cell-DB7Cdskr.cjs} +1 -1
- package/dist/{as-table-header-cell-Csv1KQDa.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-DU5h-2C_.d.cts → as-table-header-cell.vue-D2s9YLSJ.d.cts} +1 -1
- package/dist/{as-table-header-cell.vue-KkANwimG.d.mts → as-table-header-cell.vue-DfDNma_Z.d.mts} +1 -1
- package/dist/{as-table-root-BreMYhnv.mjs → as-table-root-BnkF5-rh.mjs} +78 -11
- package/dist/{as-table-root-DXewWV9h.cjs → as-table-root-Nsk-9XaH.cjs} +77 -10
- 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-XtDgUjO2.d.mts → as-table-root.vue-D56WcudY.d.mts} +515 -1530
- package/dist/{as-table-root.vue-Bjzp8TJl.d.cts → as-table-root.vue-DXXcBPu_.d.cts} +511 -1526
- 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-JOTOi_Nm.mjs → as-window-table-DjplqWzr.mjs} +100 -54
- package/dist/{as-window-table-Bj1dXOS6.cjs → as-window-table-ubm2u8_i.cjs} +102 -56
- 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 +73 -91
- package/dist/index.d.cts +19 -21
- package/dist/index.d.mts +21 -23
- package/dist/index.mjs +71 -93
- package/dist/{types-D1NxhrpW.d.cts → intent-scope-CGch9yhy.d.cts} +215 -35
- package/dist/{types-BEZ4_erB.d.mts → intent-scope-CvD4YOvf.d.mts} +215 -35
- package/dist/use-condition-format-5LcuInDy.mjs +34 -0
- package/dist/use-condition-format-DrgfX6xL.cjs +39 -0
- package/dist/{use-table-BTsNGBVx.mjs → use-table-BYNBpLJt.mjs} +27 -4
- package/dist/{use-table-W0KmaJ6L.cjs → use-table-C9qI-TL6.cjs} +26 -3
- package/dist/{use-table-component-BvAC82_c.cjs → use-table-component-CsdvdGJT.cjs} +1 -1
- package/dist/{use-table-component-DRMXTk9M.mjs → use-table-component-Dy397695.mjs} +1 -1
- package/dist/{use-table-nav-bridge-Bw0NFDSf.mjs → use-table-nav-bridge-CJBERyPB.mjs} +1 -1
- package/dist/{use-table-nav-bridge-CPI1tql6.cjs → use-table-nav-bridge-Gm4ZfOjJ.cjs} +1 -1
- package/dist/{use-table-selection-ULbKT2xW.mjs → use-table-selection-CdaOPo1d.mjs} +8 -3
- package/dist/{use-table-selection-DtCV3rhu.cjs → use-table-selection-Cs7-gjHg.cjs} +8 -3
- package/dist/{use-table-state-Ddr2UZzB.cjs → use-table-state-BQchKxUr.cjs} +499 -43
- package/dist/{use-table-state-DuY-Mf8e.mjs → use-table-state-CIoWhwTD.mjs} +466 -46
- package/package.json +11 -10
- package/dist/as-filter-input-BM23TNeh.mjs +0 -101
- package/dist/as-filter-input-DJu2k9gO.cjs +0 -106
- package/dist/as-table-BjKzKB0a.cjs +0 -207
- package/dist/as-table-DGWfzV4w.mjs +0 -202
- package/dist/as-table.vue-BULJe49x.d.cts +0 -115
- package/dist/as-table.vue-DgCtlV4u.d.mts +0 -115
- package/dist/as-window-table.vue-CYFgK10g.d.mts +0 -132
- package/dist/as-window-table.vue-ijutqrJ0.d.cts +0 -132
- package/dist/use-table-column-handlers-BitvioH4.mjs +0 -85
- package/dist/use-table-column-handlers-DksXpbON.cjs +0 -96
- /package/dist/{as-cell-array.vue-pFs5GcCR.d.cts → as-cell-array.vue-C4BTM8YW.d.cts} +0 -0
- /package/dist/{as-cell-array.vue-ow34clSF.d.mts → as-cell-array.vue-D4vS7C_D.d.mts} +0 -0
- /package/dist/{as-cell-date.vue-BBSps2B2.d.cts → as-cell-date.vue-BcMgxBfm.d.cts} +0 -0
- /package/dist/{as-cell-date.vue-B4JCr1qP.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-B-T3TuFj.d.mts → as-cell-json.vue-C0_LDvQw.d.mts} +0 -0
- /package/dist/{as-cell-json.vue-C6wg4ARZ.d.cts → as-cell-json.vue-pwE9uJdv.d.cts} +0 -0
- /package/dist/{as-cell-number.vue-CNH2fbCB.d.mts → as-cell-number.vue-BBF0OuU8.d.mts} +0 -0
- /package/dist/{as-cell-number.vue-CJ2K5zeM.d.cts → as-cell-number.vue-pbgVCIWT.d.cts} +0 -0
- /package/dist/{as-cell-union.vue-CslPM_c2.d.cts → as-cell-union.vue-BK_M7opL.d.cts} +0 -0
- /package/dist/{as-cell-union.vue-CZwN81H4.d.mts → as-cell-union.vue-CL-Lf-Rm.d.mts} +0 -0
- /package/dist/{as-config-dialog.vue-BKo2GpzN.d.mts → as-config-dialog.vue-BvFZZRuY.d.mts} +0 -0
- /package/dist/{as-config-dialog.vue-DvvJi3xx.d.cts → as-config-dialog.vue-C-Jw_rb7.d.cts} +0 -0
- /package/dist/{as-confirm-dialog.vue-BN_yzu3h.d.mts → as-confirm-dialog.vue-Cz52-v6c.d.mts} +0 -0
- /package/dist/{as-confirm-dialog.vue-CXxLpzbu.d.cts → as-confirm-dialog.vue-D8hJ5qPY.d.cts} +0 -0
- /package/dist/{as-filter-dialog.vue-BV2J8PgZ.d.cts → as-filter-dialog.vue-CyD6qtuX.d.cts} +0 -0
- /package/dist/{as-filter-dialog.vue-Bl8OIKOf.d.mts → as-filter-dialog.vue-likNLqzF.d.mts} +0 -0
- /package/dist/{as-filter-field.vue-DD0IZXS1.d.mts → as-filter-field.vue-BbXLhd6O.d.mts} +0 -0
- /package/dist/{as-filter-field.vue-ByQ8xIGq.d.cts → as-filter-field.vue-ajAFhraz.d.cts} +0 -0
- /package/dist/{as-filters.vue-dHbGmcbr.d.mts → as-filters.vue-Bu4wK0iD.d.mts} +0 -0
- /package/dist/{as-preset-dialog.vue-ChM7H7B4.d.mts → as-preset-dialog.vue-BEM-L4BY.d.cts} +0 -0
- /package/dist/{as-preset-dialog.vue-DP9fy00Y.d.cts → 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-Dfw1l2wS.d.cts → as-residual-filter.vue-CGXCipEn.d.cts} +0 -0
- /package/dist/{as-residual-filter.vue-N89YqlCz.d.mts → as-residual-filter.vue-DbeOOtR7.d.mts} +0 -0
- /package/dist/{as-table-cell-value.vue-DphckGq-.d.mts → as-table-cell-value.vue-BXIH_yfq.d.mts} +0 -0
- /package/dist/{as-table-cell-value.vue-C0VR9GRK.d.cts → as-table-cell-value.vue-UkAuJanv.d.cts} +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,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 _atscript_ui = require("@atscript/ui");
|
|
3
3
|
let vue = require("vue");
|
|
4
4
|
let _atscript_db_client = require("@atscript/db-client");
|
|
@@ -93,8 +93,9 @@ var as_action_form_dialog_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
93
93
|
const allIds = (idTotal > MEASURE_CAP ? ids.slice(0, MEASURE_CAP) : ids).map((id) => (0, _atscript_db_client.formatIdentifier)(id, r.preferredId));
|
|
94
94
|
const intent = r.action.intent;
|
|
95
95
|
const scope = intent ? require_use_table_state.intentToScope(intent) : void 0;
|
|
96
|
+
const title = (d ? (0, _atscript_ui.getFieldMeta)(d.type, _atscript_ui.META_LABEL) : void 0) ?? r.action.label ?? r.action.name;
|
|
96
97
|
return {
|
|
97
|
-
title:
|
|
98
|
+
title: r.count === void 0 ? title : `${title} · ${require_use_table_state.rowsLabel(r.count)}`,
|
|
98
99
|
submitText: d && (0, _atscript_ui.getFieldMeta)(d.type, _atscript_ui.UI_FORM_SUBMIT_TEXT) || "Proceed",
|
|
99
100
|
submitClass: scope ? `as-action-form-submit-${scope}` : void 0,
|
|
100
101
|
description: r.action.description ?? "",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { L as rowsLabel, a as useTableContext, j as intentToScope } from "./use-table-state-CIoWhwTD.mjs";
|
|
2
2
|
import { META_LABEL, UI_FORM_SUBMIT_TEXT, createFormData, createFormDef, getFieldMeta } from "@atscript/ui";
|
|
3
3
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, openBlock, ref, renderList, toDisplayString, unref, useId, watch, withCtx } from "vue";
|
|
4
4
|
import { formatIdentifier } from "@atscript/db-client";
|
|
@@ -93,8 +93,9 @@ var as_action_form_dialog_default = /* @__PURE__ */ defineComponent({
|
|
|
93
93
|
const allIds = (idTotal > MEASURE_CAP ? ids.slice(0, MEASURE_CAP) : ids).map((id) => formatIdentifier(id, r.preferredId));
|
|
94
94
|
const intent = r.action.intent;
|
|
95
95
|
const scope = intent ? intentToScope(intent) : void 0;
|
|
96
|
+
const title = (d ? getFieldMeta(d.type, META_LABEL) : void 0) ?? r.action.label ?? r.action.name;
|
|
96
97
|
return {
|
|
97
|
-
title:
|
|
98
|
+
title: r.count === void 0 ? title : `${title} · ${rowsLabel(r.count)}`,
|
|
98
99
|
submitText: d && getFieldMeta(d.type, UI_FORM_SUBMIT_TEXT) || "Proceed",
|
|
99
100
|
submitClass: scope ? `as-action-form-submit-${scope}` : void 0,
|
|
100
101
|
description: r.action.description ?? "",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as
|
|
1
|
+
import { A as intentClass, F as isPlainLeftClick, M as isActionDisabled, N as isLinkTrigger, P as isModClick, T as ariaLabelFor, w as ariaDisabled } from "./use-table-state-CIoWhwTD.mjs";
|
|
2
2
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, normalizeClass, openBlock, renderList, renderSlot, resolveDynamicComponent, toDisplayString, unref, useSlots, withCtx } from "vue";
|
|
3
3
|
import { DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator } from "reka-ui";
|
|
4
4
|
//#endregion
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const require_get_cell_value = require("./get-cell-value-CJT4fk4y.cjs");
|
|
2
|
-
const require_as_cell_json_popover = require("./as-cell-json-popover-
|
|
2
|
+
const require_as_cell_json_popover = require("./as-cell-json-popover-vty5vMjW.cjs");
|
|
3
|
+
let _atscript_ui = require("@atscript/ui");
|
|
3
4
|
let vue = require("vue");
|
|
4
5
|
//#region src/components/defaults/as-cell-array.vue?vue&type=script&setup=true&lang.ts
|
|
5
6
|
const _hoisted_1 = {
|
|
@@ -45,7 +46,7 @@ var as_cell_array_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
45
46
|
return (0, vue.openBlock)(), (0, vue.createElementBlock)("span", {
|
|
46
47
|
key: i,
|
|
47
48
|
class: "as-cell-chip"
|
|
48
|
-
}, (0, vue.toDisplayString)(item), 1);
|
|
49
|
+
}, (0, vue.toDisplayString)((0, vue.unref)(_atscript_ui.optionLabel)(__props.column, item) ?? item), 1);
|
|
49
50
|
}), 128))])) : view.value ? ((0, vue.openBlock)(), (0, vue.createBlock)(require_as_cell_json_popover.as_cell_json_popover_default, {
|
|
50
51
|
key: 1,
|
|
51
52
|
value: view.value.items
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { t as getCellValue } from "./get-cell-value-Cb3X8nUn.mjs";
|
|
2
|
-
import { t as as_cell_json_popover_default } from "./as-cell-json-popover-
|
|
3
|
-
import {
|
|
2
|
+
import { t as as_cell_json_popover_default } from "./as-cell-json-popover-CH5bAcLE.mjs";
|
|
3
|
+
import { optionLabel } from "@atscript/ui";
|
|
4
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, openBlock, renderList, toDisplayString, unref, withCtx } from "vue";
|
|
4
5
|
//#region src/components/defaults/as-cell-array.vue?vue&type=script&setup=true&lang.ts
|
|
5
6
|
const _hoisted_1 = {
|
|
6
7
|
key: 0,
|
|
@@ -45,7 +46,7 @@ var as_cell_array_default = /* @__PURE__ */ defineComponent({
|
|
|
45
46
|
return openBlock(), createElementBlock("span", {
|
|
46
47
|
key: i,
|
|
47
48
|
class: "as-cell-chip"
|
|
48
|
-
}, toDisplayString(item), 1);
|
|
49
|
+
}, toDisplayString(unref(optionLabel)(__props.column, item) ?? item), 1);
|
|
49
50
|
}), 128))])) : view.value ? (openBlock(), createBlock(as_cell_json_popover_default, {
|
|
50
51
|
key: 1,
|
|
51
52
|
value: view.value.items
|
package/dist/as-cell-array.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_cell_array = require("./as-cell-array-
|
|
1
|
+
const require_as_cell_array = require("./as-cell-array-CB4Nt6Fo.cjs");
|
|
2
2
|
module.exports = require_as_cell_array.as_cell_array_default;
|
package/dist/as-cell-array.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-cell-array.vue-
|
|
1
|
+
import { t as _default } from "./as-cell-array.vue-C4BTM8YW.cjs";
|
|
2
2
|
export = _default;
|
package/dist/as-cell-array.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-cell-array.vue-
|
|
1
|
+
import { t as _default } from "./as-cell-array.vue-D4vS7C_D.mjs";
|
|
2
2
|
export { _default as default };
|
package/dist/as-cell-array.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_cell_array_default } from "./as-cell-array-
|
|
1
|
+
import { t as as_cell_array_default } from "./as-cell-array-CnoVd9ps.mjs";
|
|
2
2
|
export { as_cell_array_default as default };
|
|
@@ -1,19 +1,8 @@
|
|
|
1
1
|
const require_get_cell_value = require("./get-cell-value-CJT4fk4y.cjs");
|
|
2
|
-
const require_use_cell_locale = require("./use-cell-locale-
|
|
2
|
+
const require_use_cell_locale = require("./use-cell-locale-Dv514-Al.cjs");
|
|
3
3
|
let vue = require("vue");
|
|
4
|
+
let _atscript_ui_table = require("@atscript/ui-table");
|
|
4
5
|
let _vueuse_core = require("@vueuse/core");
|
|
5
|
-
//#region src/utils/intl-cache.ts
|
|
6
|
-
const dateTimeCache = /* @__PURE__ */ new Map();
|
|
7
|
-
function getDateTimeFormat(locale, opts = {}) {
|
|
8
|
-
const key = `${locale}|${opts.timeZone ?? ""}|${opts.year ?? ""}|${opts.month ?? ""}|${opts.day ?? ""}|${opts.hour ?? ""}|${opts.minute ?? ""}`;
|
|
9
|
-
let f = dateTimeCache.get(key);
|
|
10
|
-
if (!f) {
|
|
11
|
-
f = new Intl.DateTimeFormat(locale, opts);
|
|
12
|
-
dateTimeCache.set(key, f);
|
|
13
|
-
}
|
|
14
|
-
return f;
|
|
15
|
-
}
|
|
16
|
-
//#endregion
|
|
17
6
|
//#region src/components/defaults/as-cell-date.vue?vue&type=script&setup=true&lang.ts
|
|
18
7
|
const _hoisted_1 = ["title"];
|
|
19
8
|
//#endregion
|
|
@@ -66,7 +55,7 @@ var as_cell_date_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
66
55
|
...base,
|
|
67
56
|
timeZone: tz
|
|
68
57
|
} : base;
|
|
69
|
-
return getDateTimeFormat(locale.value, opts).format(d);
|
|
58
|
+
return (0, _atscript_ui_table.getDateTimeFormat)(locale.value, opts).format(d);
|
|
70
59
|
});
|
|
71
60
|
return (_ctx, _cache) => {
|
|
72
61
|
return (0, vue.openBlock)(), (0, vue.createElementBlock)("td", { title: date.value?.toISOString() ?? "" }, (0, vue.toDisplayString)(formatted.value), 9, _hoisted_1);
|
|
@@ -1,19 +1,8 @@
|
|
|
1
1
|
import { t as getCellValue } from "./get-cell-value-Cb3X8nUn.mjs";
|
|
2
|
-
import { n as useCellLocale } from "./use-cell-locale-
|
|
2
|
+
import { n as useCellLocale } from "./use-cell-locale-BTJZ6UcP.mjs";
|
|
3
3
|
import { computed, createElementBlock, defineComponent, openBlock, toDisplayString } from "vue";
|
|
4
|
+
import { getDateTimeFormat } from "@atscript/ui-table";
|
|
4
5
|
import { formatTimeAgoIntl } from "@vueuse/core";
|
|
5
|
-
//#region src/utils/intl-cache.ts
|
|
6
|
-
const dateTimeCache = /* @__PURE__ */ new Map();
|
|
7
|
-
function getDateTimeFormat(locale, opts = {}) {
|
|
8
|
-
const key = `${locale}|${opts.timeZone ?? ""}|${opts.year ?? ""}|${opts.month ?? ""}|${opts.day ?? ""}|${opts.hour ?? ""}|${opts.minute ?? ""}`;
|
|
9
|
-
let f = dateTimeCache.get(key);
|
|
10
|
-
if (!f) {
|
|
11
|
-
f = new Intl.DateTimeFormat(locale, opts);
|
|
12
|
-
dateTimeCache.set(key, f);
|
|
13
|
-
}
|
|
14
|
-
return f;
|
|
15
|
-
}
|
|
16
|
-
//#endregion
|
|
17
6
|
//#region src/components/defaults/as-cell-date.vue?vue&type=script&setup=true&lang.ts
|
|
18
7
|
const _hoisted_1 = ["title"];
|
|
19
8
|
//#endregion
|
package/dist/as-cell-date.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_cell_date = require("./as-cell-date-
|
|
1
|
+
const require_as_cell_date = require("./as-cell-date-DrnhvCr4.cjs");
|
|
2
2
|
module.exports = require_as_cell_date.as_cell_date_default;
|
package/dist/as-cell-date.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-cell-date.vue-
|
|
1
|
+
import { t as _default } from "./as-cell-date.vue-BcMgxBfm.cjs";
|
|
2
2
|
export = _default;
|
package/dist/as-cell-date.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-cell-date.vue-
|
|
1
|
+
import { t as _default } from "./as-cell-date.vue-Chs7WTZ9.mjs";
|
|
2
2
|
export { _default as default };
|
package/dist/as-cell-date.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_cell_date_default } from "./as-cell-date-
|
|
1
|
+
import { t as as_cell_date_default } from "./as-cell-date-dhIM7hWA.mjs";
|
|
2
2
|
export { as_cell_date_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as getCellValue } from "./get-cell-value-Cb3X8nUn.mjs";
|
|
2
|
-
import { t as as_cell_json_popover_default } from "./as-cell-json-popover-
|
|
2
|
+
import { t as as_cell_json_popover_default } from "./as-cell-json-popover-CH5bAcLE.mjs";
|
|
3
3
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, openBlock, withCtx } from "vue";
|
|
4
4
|
//#endregion
|
|
5
5
|
//#region src/components/defaults/as-cell-json.vue
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_get_cell_value = require("./get-cell-value-CJT4fk4y.cjs");
|
|
2
|
-
const require_as_cell_json_popover = require("./as-cell-json-popover-
|
|
2
|
+
const require_as_cell_json_popover = require("./as-cell-json-popover-vty5vMjW.cjs");
|
|
3
3
|
let vue = require("vue");
|
|
4
4
|
//#endregion
|
|
5
5
|
//#region src/components/defaults/as-cell-json.vue
|
package/dist/as-cell-json.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_cell_json = require("./as-cell-json-
|
|
1
|
+
const require_as_cell_json = require("./as-cell-json-CzHTpkjS.cjs");
|
|
2
2
|
module.exports = require_as_cell_json.as_cell_json_default;
|
package/dist/as-cell-json.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-cell-json.vue-
|
|
1
|
+
import { t as _default } from "./as-cell-json.vue-pwE9uJdv.cjs";
|
|
2
2
|
export = _default;
|
package/dist/as-cell-json.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-cell-json.vue-
|
|
1
|
+
import { t as _default } from "./as-cell-json.vue-C0_LDvQw.mjs";
|
|
2
2
|
export { _default as default };
|
package/dist/as-cell-json.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_cell_json_default } from "./as-cell-json-
|
|
1
|
+
import { t as as_cell_json_default } from "./as-cell-json-ChN_NDhO.mjs";
|
|
2
2
|
export { as_cell_json_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_get_cell_value = require("./get-cell-value-CJT4fk4y.cjs");
|
|
2
|
-
const require_use_cell_locale = require("./use-cell-locale-
|
|
2
|
+
const require_use_cell_locale = require("./use-cell-locale-Dv514-Al.cjs");
|
|
3
3
|
let _atscript_ui = require("@atscript/ui");
|
|
4
4
|
let vue = require("vue");
|
|
5
5
|
//#region src/components/defaults/as-cell-number.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as getCellValue } from "./get-cell-value-Cb3X8nUn.mjs";
|
|
2
|
-
import { n as useCellLocale } from "./use-cell-locale-
|
|
2
|
+
import { n as useCellLocale } from "./use-cell-locale-BTJZ6UcP.mjs";
|
|
3
3
|
import { formatDecimalForDisplay } from "@atscript/ui";
|
|
4
4
|
import { computed, createElementBlock, defineComponent, openBlock, toDisplayString } from "vue";
|
|
5
5
|
//#region src/components/defaults/as-cell-number.vue?vue&type=script&setup=true&lang.ts
|
package/dist/as-cell-number.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_cell_number = require("./as-cell-number-
|
|
1
|
+
const require_as_cell_number = require("./as-cell-number-C4JMqvqa.cjs");
|
|
2
2
|
module.exports = require_as_cell_number.as_cell_number_default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-cell-number.vue-
|
|
1
|
+
import { t as _default } from "./as-cell-number.vue-pbgVCIWT.cjs";
|
|
2
2
|
export = _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-cell-number.vue-
|
|
1
|
+
import { t as _default } from "./as-cell-number.vue-BBF0OuU8.mjs";
|
|
2
2
|
export { _default as default };
|
package/dist/as-cell-number.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_cell_number_default } from "./as-cell-number-
|
|
1
|
+
import { t as as_cell_number_default } from "./as-cell-number-D-mSaE_G.mjs";
|
|
2
2
|
export { as_cell_number_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as getCellValue } from "./get-cell-value-Cb3X8nUn.mjs";
|
|
2
|
-
import { t as as_cell_json_popover_default } from "./as-cell-json-popover-
|
|
2
|
+
import { t as as_cell_json_popover_default } from "./as-cell-json-popover-CH5bAcLE.mjs";
|
|
3
3
|
import { t as formatCellValue } from "./format-cell-D1Ziv96Q.mjs";
|
|
4
4
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, openBlock, renderList, toDisplayString, unref, withCtx } from "vue";
|
|
5
5
|
//#region src/components/defaults/as-cell-union.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const require_get_cell_value = require("./get-cell-value-CJT4fk4y.cjs");
|
|
2
|
-
const require_as_cell_json_popover = require("./as-cell-json-popover-
|
|
2
|
+
const require_as_cell_json_popover = require("./as-cell-json-popover-vty5vMjW.cjs");
|
|
3
3
|
const require_format_cell = require("./format-cell-vCNTh4WZ.cjs");
|
|
4
4
|
let vue = require("vue");
|
|
5
5
|
//#region src/components/defaults/as-cell-union.vue?vue&type=script&setup=true&lang.ts
|
package/dist/as-cell-union.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_cell_union = require("./as-cell-union-
|
|
1
|
+
const require_as_cell_union = require("./as-cell-union-DpCEHLzN.cjs");
|
|
2
2
|
module.exports = require_as_cell_union.as_cell_union_default;
|
package/dist/as-cell-union.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-cell-union.vue-
|
|
1
|
+
import { t as _default } from "./as-cell-union.vue-BK_M7opL.cjs";
|
|
2
2
|
export = _default;
|
package/dist/as-cell-union.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-cell-union.vue-
|
|
1
|
+
import { t as _default } from "./as-cell-union.vue-CL-Lf-Rm.mjs";
|
|
2
2
|
export { _default as default };
|
package/dist/as-cell-union.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_cell_union_default } from "./as-cell-union-
|
|
1
|
+
import { t as as_cell_union_default } from "./as-cell-union-C9Bbnkrg.mjs";
|
|
2
2
|
export { as_cell_union_default as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-column-menu.vue-
|
|
1
|
+
import { t as _default } from "./as-column-menu.vue-CS_8jHG3.cjs";
|
|
2
2
|
export = _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-column-menu.vue-
|
|
1
|
+
import { t as _default } from "./as-column-menu.vue-4zJmC_M6.mjs";
|
|
2
2
|
export { _default as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import * as vue from "vue";
|
|
1
|
+
import { u as ColumnMenuConfig } from "./intent-scope-CvD4YOvf.mjs";
|
|
3
2
|
import { ColumnDef } from "@atscript/ui";
|
|
3
|
+
import * as vue from "vue";
|
|
4
4
|
import { ColumnWidthEntry, FilterCondition } from "@atscript/ui-table";
|
|
5
5
|
|
|
6
6
|
//#region src/components/defaults/as-column-menu.vue.d.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ColumnDef } from "@atscript/ui";
|
|
1
|
+
import { u as ColumnMenuConfig } from "./intent-scope-CGch9yhy.cjs";
|
|
3
2
|
import * as vue from "vue";
|
|
3
|
+
import { ColumnDef } from "@atscript/ui";
|
|
4
4
|
import { ColumnWidthEntry, FilterCondition } from "@atscript/ui-table";
|
|
5
5
|
|
|
6
6
|
//#region src/components/defaults/as-column-menu.vue.d.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_use_table_state = require("./use-table-state-
|
|
2
|
-
const require_use_table_component = require("./use-table-component-
|
|
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
3
|
const require_use_seed_on_open = require("./use-seed-on-open-Dg9I89fU.cjs");
|
|
4
4
|
let vue = require("vue");
|
|
5
5
|
let _atscript_ui_table = require("@atscript/ui-table");
|
|
@@ -391,7 +391,7 @@ var as_sorters_config_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
391
391
|
const props = __props;
|
|
392
392
|
const externalModel = (0, vue.useModel)(__props, "modelValue");
|
|
393
393
|
const forceSortersList = (0, vue.computed)(() => props.forceSorters?.map((s) => s.field) ?? void 0);
|
|
394
|
-
const selected = (0, vue.ref)([...forceSortersList.value ?? [], ...externalModel.value.map((s) => s.field)]);
|
|
394
|
+
const selected = (0, vue.ref)([...new Set([...forceSortersList.value ?? [], ...externalModel.value.map((s) => s.field)])]);
|
|
395
395
|
const directionMap = (0, vue.reactive)(/* @__PURE__ */ new Map());
|
|
396
396
|
for (const s of externalModel.value) directionMap.set(s.field, s.direction);
|
|
397
397
|
for (const s of props.forceSorters ?? []) directionMap.set(s.field, s.direction);
|
|
@@ -407,7 +407,7 @@ var as_sorters_config_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
407
407
|
updateExternalModel();
|
|
408
408
|
}
|
|
409
409
|
function updateExternalModel() {
|
|
410
|
-
externalModel.value = selected.value.map((field) => ({
|
|
410
|
+
externalModel.value = selected.value.filter((field) => !forceMap.has(field)).map((field) => ({
|
|
411
411
|
field,
|
|
412
412
|
direction: directionMap.get(field) ?? "asc"
|
|
413
413
|
}));
|
|
@@ -677,9 +677,14 @@ var as_config_dialog_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
677
677
|
}, {
|
|
678
678
|
default: (0, vue.withCtx)(() => [((0, vue.openBlock)(), (0, vue.createBlock)((0, vue.resolveDynamicComponent)((0, vue.unref)(SortersConfig)), {
|
|
679
679
|
columns: sortableColumns.value,
|
|
680
|
+
"force-sorters": (0, vue.unref)(state).forceSorters.value,
|
|
680
681
|
modelValue: sortersModel.value,
|
|
681
682
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => sortersModel.value = $event)
|
|
682
|
-
}, null, 8, [
|
|
683
|
+
}, null, 8, [
|
|
684
|
+
"columns",
|
|
685
|
+
"force-sorters",
|
|
686
|
+
"modelValue"
|
|
687
|
+
]))]),
|
|
683
688
|
_: 1
|
|
684
689
|
})
|
|
685
690
|
]),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as useTableContext } from "./use-table-state-
|
|
2
|
-
import { t as useTableComponent } from "./use-table-component-
|
|
1
|
+
import { a as useTableContext } from "./use-table-state-CIoWhwTD.mjs";
|
|
2
|
+
import { t as useTableComponent } from "./use-table-component-Dy397695.mjs";
|
|
3
3
|
import { t as useSeedOnOpen } from "./use-seed-on-open-DO3A1kIb.mjs";
|
|
4
4
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, guardReactiveProps, mergeModels, nextTick, normalizeClass, normalizeProps, openBlock, reactive, ref, renderList, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, unref, useModel, vModelText, watch, withCtx, withDirectives, withModifiers } from "vue";
|
|
5
5
|
import { arraysEqual, isColumnFilterable, sortersEqual } from "@atscript/ui-table";
|
|
@@ -391,7 +391,7 @@ var as_sorters_config_default = /* @__PURE__ */ defineComponent({
|
|
|
391
391
|
const props = __props;
|
|
392
392
|
const externalModel = useModel(__props, "modelValue");
|
|
393
393
|
const forceSortersList = computed(() => props.forceSorters?.map((s) => s.field) ?? void 0);
|
|
394
|
-
const selected = ref([...forceSortersList.value ?? [], ...externalModel.value.map((s) => s.field)]);
|
|
394
|
+
const selected = ref([...new Set([...forceSortersList.value ?? [], ...externalModel.value.map((s) => s.field)])]);
|
|
395
395
|
const directionMap = reactive(/* @__PURE__ */ new Map());
|
|
396
396
|
for (const s of externalModel.value) directionMap.set(s.field, s.direction);
|
|
397
397
|
for (const s of props.forceSorters ?? []) directionMap.set(s.field, s.direction);
|
|
@@ -407,7 +407,7 @@ var as_sorters_config_default = /* @__PURE__ */ defineComponent({
|
|
|
407
407
|
updateExternalModel();
|
|
408
408
|
}
|
|
409
409
|
function updateExternalModel() {
|
|
410
|
-
externalModel.value = selected.value.map((field) => ({
|
|
410
|
+
externalModel.value = selected.value.filter((field) => !forceMap.has(field)).map((field) => ({
|
|
411
411
|
field,
|
|
412
412
|
direction: directionMap.get(field) ?? "asc"
|
|
413
413
|
}));
|
|
@@ -677,9 +677,14 @@ var as_config_dialog_default = /* @__PURE__ */ defineComponent({
|
|
|
677
677
|
}, {
|
|
678
678
|
default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(unref(SortersConfig)), {
|
|
679
679
|
columns: sortableColumns.value,
|
|
680
|
+
"force-sorters": unref(state).forceSorters.value,
|
|
680
681
|
modelValue: sortersModel.value,
|
|
681
682
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => sortersModel.value = $event)
|
|
682
|
-
}, null, 8, [
|
|
683
|
+
}, null, 8, [
|
|
684
|
+
"columns",
|
|
685
|
+
"force-sorters",
|
|
686
|
+
"modelValue"
|
|
687
|
+
]))]),
|
|
683
688
|
_: 1
|
|
684
689
|
})
|
|
685
690
|
]),
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_config_dialog = require("./as-config-dialog-
|
|
1
|
+
const require_as_config_dialog = require("./as-config-dialog-CnIvMsK0.cjs");
|
|
2
2
|
module.exports = require_as_config_dialog.as_config_dialog_default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-config-dialog.vue-
|
|
1
|
+
import { t as _default } from "./as-config-dialog.vue-C-Jw_rb7.cjs";
|
|
2
2
|
export = _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-config-dialog.vue-
|
|
1
|
+
import { t as _default } from "./as-config-dialog.vue-BvFZZRuY.mjs";
|
|
2
2
|
export { _default as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_config_dialog_default } from "./as-config-dialog-
|
|
1
|
+
import { t as as_config_dialog_default } from "./as-config-dialog-ZKMnfirD.mjs";
|
|
2
2
|
export { as_config_dialog_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as useTableContext } from "./use-table-state-
|
|
1
|
+
import { a as useTableContext } from "./use-table-state-CIoWhwTD.mjs";
|
|
2
2
|
import { computed, createBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, openBlock, toDisplayString, unref, withCtx } from "vue";
|
|
3
3
|
import { AlertDialogContent, AlertDialogDescription, AlertDialogOverlay, AlertDialogPortal, AlertDialogRoot, AlertDialogTitle } from "reka-ui";
|
|
4
4
|
//#region src/components/defaults/as-confirm-dialog.vue?vue&type=script&setup=true&lang.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 reka_ui = require("reka-ui");
|
|
4
4
|
//#region src/components/defaults/as-confirm-dialog.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_confirm_dialog = require("./as-confirm-dialog-
|
|
1
|
+
const require_as_confirm_dialog = require("./as-confirm-dialog-cSEHVFBq.cjs");
|
|
2
2
|
module.exports = require_as_confirm_dialog.as_confirm_dialog_default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-confirm-dialog.vue-
|
|
1
|
+
import { t as _default } from "./as-confirm-dialog.vue-D8hJ5qPY.cjs";
|
|
2
2
|
export = _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-confirm-dialog.vue-
|
|
1
|
+
import { t as _default } from "./as-confirm-dialog.vue-Cz52-v6c.mjs";
|
|
2
2
|
export { _default as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_confirm_dialog_default } from "./as-confirm-dialog-
|
|
1
|
+
import { t as as_confirm_dialog_default } from "./as-confirm-dialog-DMiGquH1.mjs";
|
|
2
2
|
export { as_confirm_dialog_default as default };
|