@atscript/vue-table 0.1.96 → 0.1.98
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-cell-array-DOQKR6t5.mjs → as-cell-array-2qmJ1lT2.mjs} +2 -2
- package/dist/{as-cell-array-CXeZzZqt.cjs → as-cell-array-iPeUnk2G.cjs} +2 -2
- 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-DPWBlhyM.mjs → as-cell-date-BwFgi6O0.mjs} +2 -2
- package/dist/{as-cell-date-D0rowX5E.cjs → as-cell-date-DyixWKuS.cjs} +2 -2
- 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-BynWIs1d.mjs → as-cell-json--95Xq6yq.mjs} +2 -2
- package/dist/{as-cell-json-DvHvQ6IL.cjs → as-cell-json-Bvv2P7YV.cjs} +2 -2
- 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-Bc1C97Vg.mjs → as-cell-number-DKRaS9pM.mjs} +2 -2
- package/dist/{as-cell-number-0_WrSCzu.cjs → as-cell-number-DuPMOesI.cjs} +2 -2
- 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-CFAI0utz.cjs → as-cell-union-CT0rIvQq.cjs} +3 -3
- package/dist/{as-cell-union-C1w3B38J.mjs → as-cell-union-sAOSdepj.mjs} +3 -3
- 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.cjs +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.mjs +1 -1
- package/dist/{as-column-menu.vue-C9e6wJ3z.d.mts → as-column-menu.vue-BtXVQywl.d.cts} +2 -2
- package/dist/{as-column-menu.vue-o0qFdzoL.d.cts → as-column-menu.vue-D3Z5BVLx.d.mts} +2 -2
- package/dist/{as-config-dialog-BB6BDa1E.mjs → as-config-dialog-COwDabdW.mjs} +15 -13
- package/dist/{as-config-dialog-BCvtSxi6.cjs → as-config-dialog-vOUtx5zq.cjs} +14 -12
- 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.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-O62-CnIQ.cjs → as-filter-dialog-BcPI27cn.cjs} +19 -70
- package/dist/{as-filter-dialog-KGyPqr2P.mjs → as-filter-dialog-DuFgEjqE.mjs} +20 -65
- 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-jL7cnKUR.cjs → as-filter-field-B8idz2UD.cjs} +3 -473
- package/dist/{as-filter-field-CkiRXHVx.mjs → as-filter-field-Dsk1l3Et.mjs} +7 -441
- 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.cjs +1 -1
- package/dist/as-filter-input.d.mts +1 -1
- package/dist/as-filter-input.mjs +1 -1
- package/dist/{as-filters-BJM-NjUn.mjs → as-filters-BS7kWJfI.mjs} +5 -3
- package/dist/{as-filters-BFpZKtAU.cjs → as-filters-BzdQ4HUx.cjs} +4 -2
- 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-1Xl8DIiN.cjs → as-preset-dialog-DOdrDDKy.cjs} +7 -8
- package/dist/{as-preset-dialog-DXbqMVI1.mjs → as-preset-dialog-DoEpCt2j.mjs} +7 -8
- 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-CkaaKzYB.cjs → as-preset-picker-2DkH7QfW.cjs} +1 -1
- package/dist/{as-preset-picker-DJTF47_V.mjs → as-preset-picker-ByUCQpnX.mjs} +1 -1
- 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-row-actions-C78cvaf3.cjs → as-row-actions-05pQX_om.cjs} +1 -1
- package/dist/{as-row-actions-CpEMa5NU.mjs → as-row-actions-D7YgGt0x.mjs} +1 -1
- package/dist/as-row-actions.cjs +1 -1
- package/dist/as-row-actions.d.mts +1 -1
- package/dist/as-row-actions.mjs +1 -1
- package/dist/{as-table-v42bV1ea.cjs → as-table-DyuL_hUo.cjs} +6 -5
- package/dist/{as-table-DDyvnBFL.mjs → as-table-H5uKWieH.mjs} +4 -3
- package/dist/{as-table-actions-DtCjMMCI.cjs → as-table-actions-CsdY2_BG.cjs} +1 -1
- package/dist/{as-table-actions-D2-MBvoy.mjs → as-table-actions-DCEGQiHi.mjs} +1 -1
- 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-BuqEk4zM.d.cts → as-table-actions.vue-33oeDXOg.d.cts} +2 -2
- package/dist/{as-table-actions.vue-q8hQPcZp.d.mts → as-table-actions.vue-DMf6-R5o.d.mts} +2 -2
- package/dist/{as-table-base-CSrtmIN2.mjs → as-table-base-DReD74pJ.mjs} +2 -2
- package/dist/{as-table-base-CHzULili.cjs → as-table-base-GEf95oXP.cjs} +2 -2
- package/dist/{as-table-cell-value-B1CiJYFn.mjs → as-table-cell-value-Byrb_Zyh.mjs} +2 -2
- package/dist/{as-table-cell-value-CuxRtFn9.cjs → as-table-cell-value-CcWR5oG4.cjs} +2 -2
- 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-CBn_ioCe.mjs → as-table-header-cell-BUf8wvrw.mjs} +6 -4
- package/dist/{as-table-header-cell-C3zeZUZo.cjs → as-table-header-cell-DWONx2MI.cjs} +5 -3
- 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-Bc_DSsGY.d.cts → as-table-header-cell.vue-CzqTEpyk.d.cts} +1 -1
- package/dist/{as-table-header-cell.vue-DNMOHfek.d.mts → as-table-header-cell.vue-Dj_Tl7dZ.d.mts} +1 -1
- package/dist/{as-table-root-zJdmNnsC.cjs → as-table-root-Cg2zkxR5.cjs} +8 -20
- package/dist/{as-table-root-Bc23Z7we.mjs → as-table-root-DpQUTbQ8.mjs} +4 -16
- 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-DtjHgOVP.d.mts → as-table-root.vue-Boq6pDr1.d.mts} +15 -6
- package/dist/{as-table-root.vue-DL3BnZOe.d.cts → as-table-root.vue-CYmnf5SH.d.cts} +15 -6
- package/dist/{as-table-status-DKXFSCzE.cjs → as-table-status-DZP8dFpm.cjs} +17 -74
- package/dist/{as-table-status-B11orhFu.mjs → as-table-status-Dinns93w.mjs} +19 -64
- 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-table.vue-CLBXcYRv.d.cts → as-table.vue-CE_7OC_h.d.mts} +5 -5
- package/dist/{as-table.vue-Co7gHZ8C.d.mts → as-table.vue-kFORh8Vg.d.cts} +5 -5
- package/dist/{as-window-table-CDTjX7W5.mjs → as-window-table-BwF2t4Zy.mjs} +5 -3
- package/dist/{as-window-table-DuwMCDUh.cjs → as-window-table-CCRJKpoE.cjs} +7 -5
- 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/{as-window-table.vue-CLXZuY3h.d.cts → as-window-table.vue-C60NtRtq.d.cts} +4 -4
- package/dist/{as-window-table.vue-BA2S6YQr.d.mts → as-window-table.vue-C88OoW5d.d.mts} +4 -4
- package/dist/index.cjs +46 -44
- package/dist/index.d.cts +19 -17
- package/dist/index.d.mts +23 -21
- package/dist/index.mjs +35 -35
- package/dist/{types-BvvXN72P.d.mts → types-BPFBxUS_.d.cts} +2 -4
- package/dist/{types-CNMmF6W2.d.cts → types-BWeFiZKk.d.mts} +2 -4
- package/dist/use-has-emit-listener-BTMDIv2e.mjs +14 -0
- package/dist/use-has-emit-listener-hhOH8CBI.cjs +19 -0
- package/dist/use-seed-on-open-DO3A1kIb.mjs +30 -0
- package/dist/use-seed-on-open-Dg9I89fU.cjs +35 -0
- package/dist/use-table-CLsp2mAu.cjs +475 -0
- package/dist/use-table-CRsFMyJb.mjs +440 -0
- package/dist/{use-table-column-handlers-CGYAY2xH.cjs → use-table-column-handlers-BgC4gUJV.cjs} +0 -19
- package/dist/{use-table-column-handlers-t6xi1yCE.mjs → use-table-column-handlers-cm0GxR2u.mjs} +1 -14
- package/dist/use-table-component-BbETnUuy.mjs +12 -0
- package/dist/use-table-component-CirEOQ_P.cjs +17 -0
- package/dist/use-table-nav-bridge-Bh1tpG0X.cjs +57 -0
- package/dist/use-table-nav-bridge-i8AjtjIt.mjs +52 -0
- package/dist/use-table-selection-C84z4OZy.mjs +59 -0
- package/dist/use-table-selection-Cmiu1h4S.cjs +70 -0
- package/package.json +10 -7
- /package/dist/{as-action-menu-content-CSPPMACR.cjs → as-action-menu-content-BChqFX3E.cjs} +0 -0
- /package/dist/{as-action-menu-content-DXWuttt_.mjs → as-action-menu-content-D2yf0zD2.mjs} +0 -0
- /package/dist/{as-cell-array.vue-DZGM2VHh.d.mts → as-cell-array.vue-D4vS7C_D.d.mts} +0 -0
- /package/dist/{as-cell-date.vue-Zlt4mHWb.d.mts → as-cell-date.vue-Chs7WTZ9.d.mts} +0 -0
- /package/dist/{as-cell-json-popover-BWdNs1YU.cjs → as-cell-json-popover-BM2QLgfk.cjs} +0 -0
- /package/dist/{as-cell-json-popover-DUq25I0L.mjs → as-cell-json-popover-Dkdv5Y9E.mjs} +0 -0
- /package/dist/{as-cell-json.vue-CESWuCer.d.mts → as-cell-json.vue-C0_LDvQw.d.mts} +0 -0
- /package/dist/{as-cell-number.vue-1Oq7nVI3.d.mts → as-cell-number.vue-BBF0OuU8.d.mts} +0 -0
- /package/dist/{as-cell-union.vue-NnDmQZOA.d.mts → as-cell-union.vue-CL-Lf-Rm.d.mts} +0 -0
- /package/dist/{as-column-menu-CH9Htz0Q.cjs → as-column-menu-fZVbJ9lU.cjs} +0 -0
- /package/dist/{as-column-menu-DCfhorMP.mjs → as-column-menu-kTIQfLTi.mjs} +0 -0
- /package/dist/{as-config-dialog.vue-C6Q62xF5.d.mts → as-config-dialog.vue-BvFZZRuY.d.mts} +0 -0
- /package/dist/{as-confirm-dialog-Xtw2wE1X.cjs → as-confirm-dialog-C6HAGzrj.cjs} +0 -0
- /package/dist/{as-confirm-dialog-DL0mCEeX.mjs → as-confirm-dialog-ClVKU1Dm.mjs} +0 -0
- /package/dist/{as-confirm-dialog.vue-pas8jGhv.d.mts → as-confirm-dialog.vue-Cz52-v6c.d.mts} +0 -0
- /package/dist/{as-filter-dialog.vue-RDZjp4gJ.d.mts → as-filter-dialog.vue-likNLqzF.d.mts} +0 -0
- /package/dist/{as-filter-field.vue-QY8wi5S5.d.mts → as-filter-field.vue-BbXLhd6O.d.mts} +0 -0
- /package/dist/{as-filter-input-P1i0CW2-.mjs → as-filter-input-BM23TNeh.mjs} +0 -0
- /package/dist/{as-filter-input--nr72iwX.cjs → as-filter-input-DJu2k9gO.cjs} +0 -0
- /package/dist/{as-filter-input.vue-CBQ71eNg.d.mts → as-filter-input.vue-B9ma2l9j.d.mts} +0 -0
- /package/dist/{as-filters.vue-BsMgYUcX.d.mts → as-filters.vue-DmECMd1v.d.mts} +0 -0
- /package/dist/{as-preset-dialog.vue-Bzv-ON9W.d.mts → as-preset-dialog.vue-BRjjfPty.d.mts} +0 -0
- /package/dist/{as-preset-picker.vue-CTBk6leV.d.mts → as-preset-picker.vue-BPjsiaVt.d.mts} +0 -0
- /package/dist/{as-row-actions.vue-BPaQfGev.d.mts → as-row-actions.vue-DUSDuoR2.d.mts} +0 -0
- /package/dist/{as-table-cell-value.vue-BuPCQ8YA.d.mts → as-table-cell-value.vue-kfNgVhzn.d.mts} +0 -0
- /package/dist/{format-cell-B2xMDYO9.mjs → format-cell-CNQ6BpvR.mjs} +0 -0
- /package/dist/{format-cell-D4mqaN0E.cjs → format-cell-CSbJgz5B.cjs} +0 -0
- /package/dist/{get-cell-value-CZSVfDLg.cjs → get-cell-value-4rHKP-TG.cjs} +0 -0
- /package/dist/{get-cell-value-DiH84HKL.mjs → get-cell-value-C8LLc_Rr.mjs} +0 -0
- /package/dist/{preset-aspect-display-BYeiSgcc.mjs → preset-aspect-display-IICxAlVo.mjs} +0 -0
- /package/dist/{preset-aspect-display-y8aal_EF.cjs → preset-aspect-display-TWwf6j1B.cjs} +0 -0
- /package/dist/{use-cell-locale-B480_QYK.cjs → use-cell-locale-BGBRQB7s.cjs} +0 -0
- /package/dist/{use-cell-locale-1uQaFTLQ.mjs → use-cell-locale-MQXoONh5.mjs} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -1,30 +1,33 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_use_table_state = require("./use-table-state-DFQ30m-j.cjs");
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
const
|
|
3
|
+
const require_use_table_selection = require("./use-table-selection-Cmiu1h4S.cjs");
|
|
4
|
+
const require_use_table = require("./use-table-CLsp2mAu.cjs");
|
|
5
|
+
const require_use_table_nav_bridge = require("./use-table-nav-bridge-Bh1tpG0X.cjs");
|
|
6
|
+
const require_use_table_component = require("./use-table-component-CirEOQ_P.cjs");
|
|
7
|
+
const require_get_cell_value = require("./get-cell-value-4rHKP-TG.cjs");
|
|
8
|
+
const require_as_cell_array = require("./as-cell-array-iPeUnk2G.cjs");
|
|
9
|
+
const require_as_cell_date = require("./as-cell-date-DyixWKuS.cjs");
|
|
10
|
+
const require_use_cell_locale = require("./use-cell-locale-BGBRQB7s.cjs");
|
|
11
|
+
const require_as_cell_json = require("./as-cell-json-Bvv2P7YV.cjs");
|
|
12
|
+
const require_as_cell_number = require("./as-cell-number-DuPMOesI.cjs");
|
|
13
|
+
const require_format_cell = require("./format-cell-CSbJgz5B.cjs");
|
|
14
|
+
const require_as_cell_union = require("./as-cell-union-CT0rIvQq.cjs");
|
|
15
|
+
const require_as_column_menu = require("./as-column-menu-fZVbJ9lU.cjs");
|
|
16
|
+
const require_as_config_dialog = require("./as-config-dialog-vOUtx5zq.cjs");
|
|
17
|
+
const require_as_confirm_dialog = require("./as-confirm-dialog-C6HAGzrj.cjs");
|
|
18
|
+
const require_as_filter_input = require("./as-filter-input-DJu2k9gO.cjs");
|
|
19
|
+
const require_as_filter_dialog = require("./as-filter-dialog-BcPI27cn.cjs");
|
|
20
|
+
const require_as_table_header_cell = require("./as-table-header-cell-DWONx2MI.cjs");
|
|
21
|
+
const require_as_window_table = require("./as-window-table-CCRJKpoE.cjs");
|
|
22
|
+
const require_as_filter_field = require("./as-filter-field-B8idz2UD.cjs");
|
|
23
|
+
const require_as_filters = require("./as-filters-BzdQ4HUx.cjs");
|
|
24
|
+
const require_as_preset_dialog = require("./as-preset-dialog-DOdrDDKy.cjs");
|
|
25
|
+
const require_as_row_actions = require("./as-row-actions-05pQX_om.cjs");
|
|
26
|
+
const require_as_table_cell_value = require("./as-table-cell-value-CcWR5oG4.cjs");
|
|
27
|
+
const require_as_table_root = require("./as-table-root-Cg2zkxR5.cjs");
|
|
28
|
+
const require_as_table = require("./as-table-DyuL_hUo.cjs");
|
|
29
|
+
const require_as_table_actions = require("./as-table-actions-CsdY2_BG.cjs");
|
|
30
|
+
const require_as_preset_picker = require("./as-preset-picker-2DkH7QfW.cjs");
|
|
28
31
|
let _atscript_ui = require("@atscript/ui");
|
|
29
32
|
let vue = require("vue");
|
|
30
33
|
let _atscript_ui_table = require("@atscript/ui-table");
|
|
@@ -254,7 +257,7 @@ function instanceKey(app, url) {
|
|
|
254
257
|
* ```
|
|
255
258
|
*/
|
|
256
259
|
function useAppPrefs(opts) {
|
|
257
|
-
const app =
|
|
260
|
+
const app = require_use_table.injectPresetsApp(opts.app);
|
|
258
261
|
const key = instanceKey(app, opts.url);
|
|
259
262
|
const existing = REGISTRY.get(key);
|
|
260
263
|
if (existing) {
|
|
@@ -423,13 +426,6 @@ function createChannel(app) {
|
|
|
423
426
|
}
|
|
424
427
|
}
|
|
425
428
|
//#endregion
|
|
426
|
-
//#region src/composables/use-table-component.ts
|
|
427
|
-
/** Resolve a single skin-slot component from the injected `controls` map, falling back to the default. */
|
|
428
|
-
function useTableComponent(key, fallback) {
|
|
429
|
-
const { controls } = require_use_table_state.useTableContext();
|
|
430
|
-
return controls[key] ?? fallback;
|
|
431
|
-
}
|
|
432
|
-
//#endregion
|
|
433
429
|
//#region src/composables/create-default-controls.ts
|
|
434
430
|
/**
|
|
435
431
|
* Returns a fresh skin-slot map pre-filled with all built-in defaults.
|
|
@@ -439,6 +435,11 @@ function useTableComponent(key, fallback) {
|
|
|
439
435
|
* const controls = { ...createDefaultControls(), filterDialog: MyFilterDialog }
|
|
440
436
|
* ```
|
|
441
437
|
*
|
|
438
|
+
* `rowActions` is intentionally not seeded — the row-actions column
|
|
439
|
+
* already falls back to the `types` map's `__actions` entry and then the
|
|
440
|
+
* built-in renderer. Set `controls.rowActions` only to override explicitly
|
|
441
|
+
* (it wins over the `types` entry).
|
|
442
|
+
*
|
|
442
443
|
* `actionFormDialog` is intentionally not seeded — the table root
|
|
443
444
|
* lazy-mounts it only when an `@InputForm` action is detected. To override
|
|
444
445
|
* or eager-load, import from `@atscript/vue-table/as-action-form-dialog`
|
|
@@ -452,8 +453,7 @@ function createDefaultControls() {
|
|
|
452
453
|
filterInput: require_as_filter_input.as_filter_input_default,
|
|
453
454
|
filterField: require_as_filter_field.as_filter_field_default,
|
|
454
455
|
configDialog: require_as_config_dialog.as_config_dialog_default,
|
|
455
|
-
confirmDialog: require_as_confirm_dialog.as_confirm_dialog_default
|
|
456
|
-
rowActions: require_as_row_actions.as_row_actions_default
|
|
456
|
+
confirmDialog: require_as_confirm_dialog.as_confirm_dialog_default
|
|
457
457
|
};
|
|
458
458
|
}
|
|
459
459
|
//#endregion
|
|
@@ -498,13 +498,15 @@ function getColumnWidth(column) {
|
|
|
498
498
|
return column.width || DEFAULT_WIDTHS[column.type] || "15em";
|
|
499
499
|
}
|
|
500
500
|
//#endregion
|
|
501
|
-
exports.AS_PRESETS_APP =
|
|
501
|
+
exports.AS_PRESETS_APP = require_use_table.AS_PRESETS_APP;
|
|
502
502
|
exports.AsCellArray = require_as_cell_array.as_cell_array_default;
|
|
503
503
|
exports.AsCellDate = require_as_cell_date.as_cell_date_default;
|
|
504
504
|
exports.AsCellJson = require_as_cell_json.as_cell_json_default;
|
|
505
505
|
exports.AsCellNumber = require_as_cell_number.as_cell_number_default;
|
|
506
|
+
exports.AsCellUnion = require_as_cell_union.as_cell_union_default;
|
|
506
507
|
exports.AsColumnMenu = require_as_column_menu.as_column_menu_default;
|
|
507
508
|
exports.AsConfigDialog = require_as_config_dialog.as_config_dialog_default;
|
|
509
|
+
exports.AsConfirmDialog = require_as_confirm_dialog.as_confirm_dialog_default;
|
|
508
510
|
exports.AsFilterDialog = require_as_filter_dialog.as_filter_dialog_default;
|
|
509
511
|
exports.AsFilterField = require_as_filter_field.as_filter_field_default;
|
|
510
512
|
exports.AsFilterInput = require_as_filter_input.as_filter_input_default;
|
|
@@ -536,7 +538,7 @@ Object.defineProperty(exports, "SYSTEM_PRESET_PREFIX", {
|
|
|
536
538
|
return _atscript_ui_table.SYSTEM_PRESET_PREFIX;
|
|
537
539
|
}
|
|
538
540
|
});
|
|
539
|
-
exports.clearTableCache =
|
|
541
|
+
exports.clearTableCache = require_use_table.clearTableCache;
|
|
540
542
|
exports.createDefaultCellTypes = createDefaultCellTypes;
|
|
541
543
|
exports.createDefaultControls = createDefaultControls;
|
|
542
544
|
exports.createStaticTableState = require_use_table_state.createStaticTableState;
|
|
@@ -551,7 +553,7 @@ Object.defineProperty(exports, "getDefaultClientFactory", {
|
|
|
551
553
|
return _atscript_ui.getDefaultClientFactory;
|
|
552
554
|
}
|
|
553
555
|
});
|
|
554
|
-
exports.injectPresetsApp =
|
|
556
|
+
exports.injectPresetsApp = require_use_table.injectPresetsApp;
|
|
555
557
|
Object.defineProperty(exports, "isSystemPresetId", {
|
|
556
558
|
enumerable: true,
|
|
557
559
|
get: function() {
|
|
@@ -579,15 +581,15 @@ Object.defineProperty(exports, "setDefaultClientFactory", {
|
|
|
579
581
|
});
|
|
580
582
|
exports.useAppPrefs = useAppPrefs;
|
|
581
583
|
exports.useCellLocale = require_use_cell_locale.useCellLocale;
|
|
582
|
-
exports.useLocalDraft =
|
|
583
|
-
exports.usePresets =
|
|
584
|
-
exports.useTable =
|
|
584
|
+
exports.useLocalDraft = require_use_table.useLocalDraft;
|
|
585
|
+
exports.usePresets = require_use_table.usePresets;
|
|
586
|
+
exports.useTable = require_use_table.useTable;
|
|
585
587
|
exports.useTableActions = useTableActions;
|
|
586
|
-
exports.useTableComponent = useTableComponent;
|
|
588
|
+
exports.useTableComponent = require_use_table_component.useTableComponent;
|
|
587
589
|
exports.useTableContext = require_use_table_state.useTableContext;
|
|
588
590
|
exports.useTableContextOptional = require_use_table_state.useTableContextOptional;
|
|
589
591
|
exports.useTableFilter = useTableFilter;
|
|
590
|
-
exports.useTableNavBridge =
|
|
592
|
+
exports.useTableNavBridge = require_use_table_nav_bridge.useTableNavBridge;
|
|
591
593
|
exports.useTableSearch = useTableSearch;
|
|
592
|
-
exports.useTableSelection =
|
|
594
|
+
exports.useTableSelection = require_use_table_selection.useTableSelection;
|
|
593
595
|
exports.useTableUrlQuery = useTableUrlQuery;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,21 +1,23 @@
|
|
|
1
|
-
import { t as _default$
|
|
2
|
-
import { t as _default$
|
|
3
|
-
import { _ as TableNavBridge, c as NavKeyOptions, d as ReactiveTableState, f as RowDeleteOpt, g as TableActionsState, h as TVueTableActionInfo, m as TAsTableControls, n as ColumnMenuConfig, o as InvokeOpts, p as TAsCellTypeComponents, r as ConfigTab, s as MainActionRequest, t as ActionResult, u as QueryErrorKind } from "./types-
|
|
4
|
-
import { t as _default$
|
|
5
|
-
import { $ as createTableState, A as createDefaultControls, B as useTableSearch, C as formatCellValue, D as provideCellLocale, E as CellLocale, F as AS_PRESETS_APP, G as useTable, H as useTableNavBridge, I as injectPresetsApp, J as CreateStaticTableStateOptions, K as SelectionPersistence, L as UseTableUrlQueryOptions, M as UseAppPrefsOptions, N as UseAppPrefsReturn, O as useCellLocale, P as useAppPrefs, Q as createStaticTableState, R as useTableUrlQuery, S as extractIdentifier, T as getColumnWidth, U as UseTableOptions, V as useTableFilter, W as clearTableCache, X as TableContext, Y as CreateTableStateOptions, Z as TableStateInternals, _ as getDefaultClientFactory, a as PRESET_ASPECTS, at as usePresets, b as resolveSystemPresets, c as PresetData, ct as UseLocalDraftReturn, d as STANDARD_PRESET_ID, et as useTableContext, f as SYSTEM_PRESET_PREFIX, g as UserConfData, h as UrlQuerySync, i as ClientFactory, it as UsePresetsReturn, j as useTableComponent, k as createDefaultCellTypes, l as PresetSnapshot, lt as useLocalDraft, m as SystemPresetInput, n as AppConfData, nt as ActivePresetView, o as PresetAspect, ot as StorageLike, p as SystemPreset, q as useTableSelection, r as AsPresetEntryRow, rt as UsePresetsOptions, s as PresetCapabilities, st as UseLocalDraftOptions, t as _default$
|
|
6
|
-
import { t as _default$
|
|
7
|
-
import { t as _default$
|
|
1
|
+
import { t as _default$11 } from "./as-filters.vue-fv-tRL2H.cjs";
|
|
2
|
+
import { t as _default$13 } from "./as-preset-picker.vue-DfXS3pGl.cjs";
|
|
3
|
+
import { _ as TableNavBridge, c as NavKeyOptions, d as ReactiveTableState, f as RowDeleteOpt, g as TableActionsState, h as TVueTableActionInfo, m as TAsTableControls, n as ColumnMenuConfig, o as InvokeOpts, p as TAsCellTypeComponents, r as ConfigTab, s as MainActionRequest, t as ActionResult, u as QueryErrorKind } from "./types-BPFBxUS_.cjs";
|
|
4
|
+
import { t as _default$16 } from "./as-table-actions.vue-33oeDXOg.cjs";
|
|
5
|
+
import { $ as createTableState, A as createDefaultControls, B as useTableSearch, C as formatCellValue, D as provideCellLocale, E as CellLocale, F as AS_PRESETS_APP, G as useTable, H as useTableNavBridge, I as injectPresetsApp, J as CreateStaticTableStateOptions, K as SelectionPersistence, L as UseTableUrlQueryOptions, M as UseAppPrefsOptions, N as UseAppPrefsReturn, O as useCellLocale, P as useAppPrefs, Q as createStaticTableState, R as useTableUrlQuery, S as extractIdentifier, T as getColumnWidth, U as UseTableOptions, V as useTableFilter, W as clearTableCache, X as TableContext, Y as CreateTableStateOptions, Z as TableStateInternals, _ as getDefaultClientFactory, a as PRESET_ASPECTS, at as usePresets, b as resolveSystemPresets, c as PresetData, ct as UseLocalDraftReturn, d as STANDARD_PRESET_ID, et as useTableContext, f as SYSTEM_PRESET_PREFIX, g as UserConfData, h as UrlQuerySync, i as ClientFactory, it as UsePresetsReturn, j as useTableComponent, k as createDefaultCellTypes, l as PresetSnapshot, lt as useLocalDraft, m as SystemPresetInput, n as AppConfData, nt as ActivePresetView, o as PresetAspect, ot as StorageLike, p as SystemPreset, q as useTableSelection, r as AsPresetEntryRow, rt as UsePresetsOptions, s as PresetCapabilities, st as UseLocalDraftOptions, t as _default$19, tt as useTableContextOptional, u as PresetSnapshotWire, v as isSystemPresetId, w as getCellValue, x as setDefaultClientFactory, y as resetDefaultClientFactory, z as useTableActions } from "./as-table-root.vue-CYmnf5SH.cjs";
|
|
6
|
+
import { t as _default$15 } from "./as-table.vue-kFORh8Vg.cjs";
|
|
7
|
+
import { t as _default$20 } from "./as-window-table.vue-C60NtRtq.cjs";
|
|
8
8
|
import { t as _default } from "./as-cell-array.vue-pFs5GcCR.cjs";
|
|
9
9
|
import { t as _default$1 } from "./as-cell-date.vue-BBSps2B2.cjs";
|
|
10
10
|
import { t as _default$2 } from "./as-cell-json.vue-C6wg4ARZ.cjs";
|
|
11
11
|
import { t as _default$3 } from "./as-cell-number.vue-CJ2K5zeM.cjs";
|
|
12
|
-
import { t as _default$4 } from "./as-
|
|
13
|
-
import { t as _default$5 } from "./as-
|
|
14
|
-
import { t as _default$6 } from "./as-
|
|
15
|
-
import { t as _default$7 } from "./as-
|
|
16
|
-
import { t as _default$8 } from "./as-filter-
|
|
17
|
-
import { t as _default$
|
|
18
|
-
import { t as _default$
|
|
19
|
-
import { t as _default$
|
|
20
|
-
import { t as _default$
|
|
21
|
-
|
|
12
|
+
import { t as _default$4 } from "./as-cell-union.vue-CslPM_c2.cjs";
|
|
13
|
+
import { t as _default$5 } from "./as-column-menu.vue-BtXVQywl.cjs";
|
|
14
|
+
import { t as _default$6 } from "./as-config-dialog.vue-DvvJi3xx.cjs";
|
|
15
|
+
import { t as _default$7 } from "./as-confirm-dialog.vue-CXxLpzbu.cjs";
|
|
16
|
+
import { t as _default$8 } from "./as-filter-dialog.vue-BV2J8PgZ.cjs";
|
|
17
|
+
import { t as _default$9 } from "./as-filter-field.vue-ByQ8xIGq.cjs";
|
|
18
|
+
import { t as _default$10 } from "./as-filter-input.vue-CS4nOk_Q.cjs";
|
|
19
|
+
import { t as _default$12 } from "./as-preset-dialog.vue-DP9fy00Y.cjs";
|
|
20
|
+
import { t as _default$14 } from "./as-row-actions.vue-Bvcc2tUN.cjs";
|
|
21
|
+
import { t as _default$17 } from "./as-table-cell-value.vue-BgFDv2JQ.cjs";
|
|
22
|
+
import { t as _default$18 } from "./as-table-header-cell.vue-CzqTEpyk.cjs";
|
|
23
|
+
export { AS_PRESETS_APP, ActionResult, ActivePresetView, AppConfData, _default as AsCellArray, _default$1 as AsCellDate, _default$2 as AsCellJson, _default$3 as AsCellNumber, _default$4 as AsCellUnion, _default$5 as AsColumnMenu, _default$6 as AsConfigDialog, _default$7 as AsConfirmDialog, _default$8 as AsFilterDialog, _default$9 as AsFilterField, _default$10 as AsFilterInput, _default$11 as AsFilters, _default$12 as AsPresetDialog, AsPresetEntryRow, _default$13 as AsPresetPicker, _default$14 as AsRowActions, _default$15 as AsTable, _default$16 as AsTableActions, _default$17 as AsTableCellValue, _default$18 as AsTableHeaderCell, _default$19 as AsTableRoot, _default$20 as AsWindowTable, CellLocale, ClientFactory, ColumnMenuConfig, ConfigTab, CreateStaticTableStateOptions, CreateTableStateOptions, InvokeOpts, MainActionRequest, NavKeyOptions, PRESET_ASPECTS, PresetAspect, PresetCapabilities, PresetData, PresetSnapshot, PresetSnapshotWire, QueryErrorKind, ReactiveTableState, RowDeleteOpt, STANDARD_PRESET_ID, SYSTEM_PRESET_PREFIX, SelectionPersistence, StorageLike, SystemPreset, SystemPresetInput, TAsCellTypeComponents, TAsTableControls, TVueTableActionInfo, TableActionsState, TableContext, TableNavBridge, TableStateInternals, UrlQuerySync, UseAppPrefsOptions, UseAppPrefsReturn, UseLocalDraftOptions, UseLocalDraftReturn, UsePresetsOptions, UsePresetsReturn, UseTableOptions, UseTableUrlQueryOptions, UserConfData, clearTableCache, createDefaultCellTypes, createDefaultControls, createStaticTableState, createTableState, extractIdentifier, formatCellValue, getCellValue, getColumnWidth, getDefaultClientFactory, injectPresetsApp, isSystemPresetId, provideCellLocale, resetDefaultClientFactory, resolveSystemPresets, setDefaultClientFactory, useAppPrefs, useCellLocale, useLocalDraft, usePresets, useTable, useTableActions, useTableComponent, useTableContext, useTableContextOptional, useTableFilter, useTableNavBridge, useTableSearch, useTableSelection, useTableUrlQuery };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,21 +1,23 @@
|
|
|
1
|
-
import { t as _default$
|
|
2
|
-
import { t as _default$
|
|
3
|
-
import { _ as TableNavBridge, c as NavKeyOptions, d as ReactiveTableState, f as RowDeleteOpt, g as TableActionsState, h as TVueTableActionInfo, m as TAsTableControls, n as ColumnMenuConfig, o as InvokeOpts, p as TAsCellTypeComponents, r as ConfigTab, s as MainActionRequest, t as ActionResult, u as QueryErrorKind } from "./types-
|
|
4
|
-
import { t as _default$
|
|
5
|
-
import { $ as createTableState, A as createDefaultControls, B as useTableSearch, C as formatCellValue, D as provideCellLocale, E as CellLocale, F as AS_PRESETS_APP, G as useTable, H as useTableNavBridge, I as injectPresetsApp, J as CreateStaticTableStateOptions, K as SelectionPersistence, L as UseTableUrlQueryOptions, M as UseAppPrefsOptions, N as UseAppPrefsReturn, O as useCellLocale, P as useAppPrefs, Q as createStaticTableState, R as useTableUrlQuery, S as extractIdentifier, T as getColumnWidth, U as UseTableOptions, V as useTableFilter, W as clearTableCache, X as TableContext, Y as CreateTableStateOptions, Z as TableStateInternals, _ as getDefaultClientFactory, a as PRESET_ASPECTS, at as usePresets, b as resolveSystemPresets, c as PresetData, ct as UseLocalDraftReturn, d as STANDARD_PRESET_ID, et as useTableContext, f as SYSTEM_PRESET_PREFIX, g as UserConfData, h as UrlQuerySync, i as ClientFactory, it as UsePresetsReturn, j as useTableComponent, k as createDefaultCellTypes, l as PresetSnapshot, lt as useLocalDraft, m as SystemPresetInput, n as AppConfData, nt as ActivePresetView, o as PresetAspect, ot as StorageLike, p as SystemPreset, q as useTableSelection, r as AsPresetEntryRow, rt as UsePresetsOptions, s as PresetCapabilities, st as UseLocalDraftOptions, t as _default$
|
|
6
|
-
import { t as _default$
|
|
7
|
-
import { t as _default$
|
|
8
|
-
import { t as _default } from "./as-cell-array.vue-
|
|
9
|
-
import { t as _default$1 } from "./as-cell-date.vue-
|
|
10
|
-
import { t as _default$2 } from "./as-cell-json.vue-
|
|
11
|
-
import { t as _default$3 } from "./as-cell-number.vue-
|
|
12
|
-
import { t as _default$4 } from "./as-
|
|
13
|
-
import { t as _default$5 } from "./as-
|
|
14
|
-
import { t as _default$6 } from "./as-
|
|
15
|
-
import { t as _default$7 } from "./as-
|
|
16
|
-
import { t as _default$8 } from "./as-filter-
|
|
17
|
-
import { t as _default$
|
|
18
|
-
import { t as _default$
|
|
19
|
-
import { t as _default$
|
|
20
|
-
import { t as _default$
|
|
21
|
-
|
|
1
|
+
import { t as _default$11 } from "./as-filters.vue-DmECMd1v.mjs";
|
|
2
|
+
import { t as _default$13 } from "./as-preset-picker.vue-BPjsiaVt.mjs";
|
|
3
|
+
import { _ as TableNavBridge, c as NavKeyOptions, d as ReactiveTableState, f as RowDeleteOpt, g as TableActionsState, h as TVueTableActionInfo, m as TAsTableControls, n as ColumnMenuConfig, o as InvokeOpts, p as TAsCellTypeComponents, r as ConfigTab, s as MainActionRequest, t as ActionResult, u as QueryErrorKind } from "./types-BWeFiZKk.mjs";
|
|
4
|
+
import { t as _default$16 } from "./as-table-actions.vue-DMf6-R5o.mjs";
|
|
5
|
+
import { $ as createTableState, A as createDefaultControls, B as useTableSearch, C as formatCellValue, D as provideCellLocale, E as CellLocale, F as AS_PRESETS_APP, G as useTable, H as useTableNavBridge, I as injectPresetsApp, J as CreateStaticTableStateOptions, K as SelectionPersistence, L as UseTableUrlQueryOptions, M as UseAppPrefsOptions, N as UseAppPrefsReturn, O as useCellLocale, P as useAppPrefs, Q as createStaticTableState, R as useTableUrlQuery, S as extractIdentifier, T as getColumnWidth, U as UseTableOptions, V as useTableFilter, W as clearTableCache, X as TableContext, Y as CreateTableStateOptions, Z as TableStateInternals, _ as getDefaultClientFactory, a as PRESET_ASPECTS, at as usePresets, b as resolveSystemPresets, c as PresetData, ct as UseLocalDraftReturn, d as STANDARD_PRESET_ID, et as useTableContext, f as SYSTEM_PRESET_PREFIX, g as UserConfData, h as UrlQuerySync, i as ClientFactory, it as UsePresetsReturn, j as useTableComponent, k as createDefaultCellTypes, l as PresetSnapshot, lt as useLocalDraft, m as SystemPresetInput, n as AppConfData, nt as ActivePresetView, o as PresetAspect, ot as StorageLike, p as SystemPreset, q as useTableSelection, r as AsPresetEntryRow, rt as UsePresetsOptions, s as PresetCapabilities, st as UseLocalDraftOptions, t as _default$19, tt as useTableContextOptional, u as PresetSnapshotWire, v as isSystemPresetId, w as getCellValue, x as setDefaultClientFactory, y as resetDefaultClientFactory, z as useTableActions } from "./as-table-root.vue-Boq6pDr1.mjs";
|
|
6
|
+
import { t as _default$15 } from "./as-table.vue-CE_7OC_h.mjs";
|
|
7
|
+
import { t as _default$20 } from "./as-window-table.vue-C88OoW5d.mjs";
|
|
8
|
+
import { t as _default } from "./as-cell-array.vue-D4vS7C_D.mjs";
|
|
9
|
+
import { t as _default$1 } from "./as-cell-date.vue-Chs7WTZ9.mjs";
|
|
10
|
+
import { t as _default$2 } from "./as-cell-json.vue-C0_LDvQw.mjs";
|
|
11
|
+
import { t as _default$3 } from "./as-cell-number.vue-BBF0OuU8.mjs";
|
|
12
|
+
import { t as _default$4 } from "./as-cell-union.vue-CL-Lf-Rm.mjs";
|
|
13
|
+
import { t as _default$5 } from "./as-column-menu.vue-D3Z5BVLx.mjs";
|
|
14
|
+
import { t as _default$6 } from "./as-config-dialog.vue-BvFZZRuY.mjs";
|
|
15
|
+
import { t as _default$7 } from "./as-confirm-dialog.vue-Cz52-v6c.mjs";
|
|
16
|
+
import { t as _default$8 } from "./as-filter-dialog.vue-likNLqzF.mjs";
|
|
17
|
+
import { t as _default$9 } from "./as-filter-field.vue-BbXLhd6O.mjs";
|
|
18
|
+
import { t as _default$10 } from "./as-filter-input.vue-B9ma2l9j.mjs";
|
|
19
|
+
import { t as _default$12 } from "./as-preset-dialog.vue-BRjjfPty.mjs";
|
|
20
|
+
import { t as _default$14 } from "./as-row-actions.vue-DUSDuoR2.mjs";
|
|
21
|
+
import { t as _default$17 } from "./as-table-cell-value.vue-kfNgVhzn.mjs";
|
|
22
|
+
import { t as _default$18 } from "./as-table-header-cell.vue-Dj_Tl7dZ.mjs";
|
|
23
|
+
export { AS_PRESETS_APP, ActionResult, ActivePresetView, AppConfData, _default as AsCellArray, _default$1 as AsCellDate, _default$2 as AsCellJson, _default$3 as AsCellNumber, _default$4 as AsCellUnion, _default$5 as AsColumnMenu, _default$6 as AsConfigDialog, _default$7 as AsConfirmDialog, _default$8 as AsFilterDialog, _default$9 as AsFilterField, _default$10 as AsFilterInput, _default$11 as AsFilters, _default$12 as AsPresetDialog, AsPresetEntryRow, _default$13 as AsPresetPicker, _default$14 as AsRowActions, _default$15 as AsTable, _default$16 as AsTableActions, _default$17 as AsTableCellValue, _default$18 as AsTableHeaderCell, _default$19 as AsTableRoot, _default$20 as AsWindowTable, CellLocale, ClientFactory, ColumnMenuConfig, ConfigTab, CreateStaticTableStateOptions, CreateTableStateOptions, InvokeOpts, MainActionRequest, NavKeyOptions, PRESET_ASPECTS, PresetAspect, PresetCapabilities, PresetData, PresetSnapshot, PresetSnapshotWire, QueryErrorKind, ReactiveTableState, RowDeleteOpt, STANDARD_PRESET_ID, SYSTEM_PRESET_PREFIX, SelectionPersistence, StorageLike, SystemPreset, SystemPresetInput, TAsCellTypeComponents, TAsTableControls, TVueTableActionInfo, TableActionsState, TableContext, TableNavBridge, TableStateInternals, UrlQuerySync, UseAppPrefsOptions, UseAppPrefsReturn, UseLocalDraftOptions, UseLocalDraftReturn, UsePresetsOptions, UsePresetsReturn, UseTableOptions, UseTableUrlQueryOptions, UserConfData, clearTableCache, createDefaultCellTypes, createDefaultControls, createStaticTableState, createTableState, extractIdentifier, formatCellValue, getCellValue, getColumnWidth, getDefaultClientFactory, injectPresetsApp, isSystemPresetId, provideCellLocale, resetDefaultClientFactory, resolveSystemPresets, setDefaultClientFactory, useAppPrefs, useCellLocale, useLocalDraft, usePresets, useTable, useTableActions, useTableComponent, useTableContext, useTableContextOptional, useTableFilter, useTableNavBridge, useTableSearch, useTableSelection, useTableUrlQuery };
|
package/dist/index.mjs
CHANGED
|
@@ -1,29 +1,32 @@
|
|
|
1
1
|
import { a as useTableContext, d as extractIdentifier, g as ROW_ACTIONS_TYPE, n as createTableState, o as useTableContextOptional, t as createStaticTableState } from "./use-table-state-CuZ2OXoY.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { a as
|
|
4
|
-
import {
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import {
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import { t as
|
|
17
|
-
import { t as
|
|
18
|
-
import { t as
|
|
19
|
-
import { t as
|
|
20
|
-
import { t as
|
|
21
|
-
import { t as
|
|
22
|
-
import { t as
|
|
23
|
-
import { t as
|
|
24
|
-
import { t as
|
|
25
|
-
import { t as
|
|
26
|
-
import { t as
|
|
2
|
+
import { n as useTableSelection } from "./use-table-selection-C84z4OZy.mjs";
|
|
3
|
+
import { a as AS_PRESETS_APP, i as useLocalDraft, n as useTable, o as injectPresetsApp, r as usePresets, t as clearTableCache } from "./use-table-CRsFMyJb.mjs";
|
|
4
|
+
import { t as useTableNavBridge } from "./use-table-nav-bridge-i8AjtjIt.mjs";
|
|
5
|
+
import { t as useTableComponent } from "./use-table-component-BbETnUuy.mjs";
|
|
6
|
+
import { t as getCellValue } from "./get-cell-value-C8LLc_Rr.mjs";
|
|
7
|
+
import { t as as_cell_array_default } from "./as-cell-array-2qmJ1lT2.mjs";
|
|
8
|
+
import { t as as_cell_date_default } from "./as-cell-date-BwFgi6O0.mjs";
|
|
9
|
+
import { n as useCellLocale, t as provideCellLocale } from "./use-cell-locale-MQXoONh5.mjs";
|
|
10
|
+
import { t as as_cell_json_default } from "./as-cell-json--95Xq6yq.mjs";
|
|
11
|
+
import { t as as_cell_number_default } from "./as-cell-number-DKRaS9pM.mjs";
|
|
12
|
+
import { t as formatCellValue } from "./format-cell-CNQ6BpvR.mjs";
|
|
13
|
+
import { t as as_cell_union_default } from "./as-cell-union-sAOSdepj.mjs";
|
|
14
|
+
import { t as as_column_menu_default } from "./as-column-menu-kTIQfLTi.mjs";
|
|
15
|
+
import { t as as_config_dialog_default } from "./as-config-dialog-COwDabdW.mjs";
|
|
16
|
+
import { t as as_confirm_dialog_default } from "./as-confirm-dialog-ClVKU1Dm.mjs";
|
|
17
|
+
import { t as as_filter_input_default } from "./as-filter-input-BM23TNeh.mjs";
|
|
18
|
+
import { t as as_filter_dialog_default } from "./as-filter-dialog-DuFgEjqE.mjs";
|
|
19
|
+
import { t as as_table_header_cell_default } from "./as-table-header-cell-BUf8wvrw.mjs";
|
|
20
|
+
import { t as as_window_table_default } from "./as-window-table-BwF2t4Zy.mjs";
|
|
21
|
+
import { t as as_filter_field_default } from "./as-filter-field-Dsk1l3Et.mjs";
|
|
22
|
+
import { t as as_filters_default } from "./as-filters-BS7kWJfI.mjs";
|
|
23
|
+
import { t as as_preset_dialog_default } from "./as-preset-dialog-DoEpCt2j.mjs";
|
|
24
|
+
import { t as as_row_actions_default } from "./as-row-actions-D7YgGt0x.mjs";
|
|
25
|
+
import { t as as_table_cell_value_default } from "./as-table-cell-value-Byrb_Zyh.mjs";
|
|
26
|
+
import { t as as_table_root_default } from "./as-table-root-DpQUTbQ8.mjs";
|
|
27
|
+
import { t as as_table_default } from "./as-table-H5uKWieH.mjs";
|
|
28
|
+
import { t as as_table_actions_default } from "./as-table-actions-DCEGQiHi.mjs";
|
|
29
|
+
import { t as as_preset_picker_default } from "./as-preset-picker-ByUCQpnX.mjs";
|
|
27
30
|
import { getDefaultClientFactory, resetDefaultClientFactory, setDefaultClientFactory } from "@atscript/ui";
|
|
28
31
|
import { computed, effectScope, ref, shallowRef } from "vue";
|
|
29
32
|
import { AppPrefsClient, PRESET_ASPECTS, STANDARD_PRESET_ID, SYSTEM_PRESET_PREFIX, columnFilterType, conditionsForType, defaultCondition, isAuthError, isFilled, isSystemPresetId, resolveSystemPresets } from "@atscript/ui-table";
|
|
@@ -422,13 +425,6 @@ function createChannel(app) {
|
|
|
422
425
|
}
|
|
423
426
|
}
|
|
424
427
|
//#endregion
|
|
425
|
-
//#region src/composables/use-table-component.ts
|
|
426
|
-
/** Resolve a single skin-slot component from the injected `controls` map, falling back to the default. */
|
|
427
|
-
function useTableComponent(key, fallback) {
|
|
428
|
-
const { controls } = useTableContext();
|
|
429
|
-
return controls[key] ?? fallback;
|
|
430
|
-
}
|
|
431
|
-
//#endregion
|
|
432
428
|
//#region src/composables/create-default-controls.ts
|
|
433
429
|
/**
|
|
434
430
|
* Returns a fresh skin-slot map pre-filled with all built-in defaults.
|
|
@@ -438,6 +434,11 @@ function useTableComponent(key, fallback) {
|
|
|
438
434
|
* const controls = { ...createDefaultControls(), filterDialog: MyFilterDialog }
|
|
439
435
|
* ```
|
|
440
436
|
*
|
|
437
|
+
* `rowActions` is intentionally not seeded — the row-actions column
|
|
438
|
+
* already falls back to the `types` map's `__actions` entry and then the
|
|
439
|
+
* built-in renderer. Set `controls.rowActions` only to override explicitly
|
|
440
|
+
* (it wins over the `types` entry).
|
|
441
|
+
*
|
|
441
442
|
* `actionFormDialog` is intentionally not seeded — the table root
|
|
442
443
|
* lazy-mounts it only when an `@InputForm` action is detected. To override
|
|
443
444
|
* or eager-load, import from `@atscript/vue-table/as-action-form-dialog`
|
|
@@ -451,8 +452,7 @@ function createDefaultControls() {
|
|
|
451
452
|
filterInput: as_filter_input_default,
|
|
452
453
|
filterField: as_filter_field_default,
|
|
453
454
|
configDialog: as_config_dialog_default,
|
|
454
|
-
confirmDialog: as_confirm_dialog_default
|
|
455
|
-
rowActions: as_row_actions_default
|
|
455
|
+
confirmDialog: as_confirm_dialog_default
|
|
456
456
|
};
|
|
457
457
|
}
|
|
458
458
|
//#endregion
|
|
@@ -497,4 +497,4 @@ function getColumnWidth(column) {
|
|
|
497
497
|
return column.width || DEFAULT_WIDTHS[column.type] || "15em";
|
|
498
498
|
}
|
|
499
499
|
//#endregion
|
|
500
|
-
export { AS_PRESETS_APP, as_cell_array_default as AsCellArray, as_cell_date_default as AsCellDate, as_cell_json_default as AsCellJson, as_cell_number_default as AsCellNumber, as_column_menu_default as AsColumnMenu, as_config_dialog_default as AsConfigDialog, as_filter_dialog_default as AsFilterDialog, as_filter_field_default as AsFilterField, as_filter_input_default as AsFilterInput, as_filters_default as AsFilters, as_preset_dialog_default as AsPresetDialog, as_preset_picker_default as AsPresetPicker, as_row_actions_default as AsRowActions, as_table_default as AsTable, as_table_actions_default as AsTableActions, as_table_cell_value_default as AsTableCellValue, as_table_header_cell_default as AsTableHeaderCell, as_table_root_default as AsTableRoot, as_window_table_default as AsWindowTable, PRESET_ASPECTS, STANDARD_PRESET_ID, SYSTEM_PRESET_PREFIX, clearTableCache, createDefaultCellTypes, createDefaultControls, createStaticTableState, createTableState, extractIdentifier, formatCellValue, getCellValue, getColumnWidth, getDefaultClientFactory, injectPresetsApp, isSystemPresetId, provideCellLocale, resetDefaultClientFactory, resolveSystemPresets, setDefaultClientFactory, useAppPrefs, useCellLocale, useLocalDraft, usePresets, useTable, useTableActions, useTableComponent, useTableContext, useTableContextOptional, useTableFilter, useTableNavBridge, useTableSearch, useTableSelection, useTableUrlQuery };
|
|
500
|
+
export { AS_PRESETS_APP, as_cell_array_default as AsCellArray, as_cell_date_default as AsCellDate, as_cell_json_default as AsCellJson, as_cell_number_default as AsCellNumber, as_cell_union_default as AsCellUnion, as_column_menu_default as AsColumnMenu, as_config_dialog_default as AsConfigDialog, as_confirm_dialog_default as AsConfirmDialog, as_filter_dialog_default as AsFilterDialog, as_filter_field_default as AsFilterField, as_filter_input_default as AsFilterInput, as_filters_default as AsFilters, as_preset_dialog_default as AsPresetDialog, as_preset_picker_default as AsPresetPicker, as_row_actions_default as AsRowActions, as_table_default as AsTable, as_table_actions_default as AsTableActions, as_table_cell_value_default as AsTableCellValue, as_table_header_cell_default as AsTableHeaderCell, as_table_root_default as AsTableRoot, as_window_table_default as AsWindowTable, PRESET_ASPECTS, STANDARD_PRESET_ID, SYSTEM_PRESET_PREFIX, clearTableCache, createDefaultCellTypes, createDefaultControls, createStaticTableState, createTableState, extractIdentifier, formatCellValue, getCellValue, getColumnWidth, getDefaultClientFactory, injectPresetsApp, isSystemPresetId, provideCellLocale, resetDefaultClientFactory, resolveSystemPresets, setDefaultClientFactory, useAppPrefs, useCellLocale, useLocalDraft, usePresets, useTable, useTableActions, useTableComponent, useTableContext, useTableContextOptional, useTableFilter, useTableNavBridge, useTableSearch, useTableSelection, useTableUrlQuery };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ColumnDef, PaginationControl, SortControl, TableDef } from "@atscript/ui";
|
|
2
1
|
import { Component, ComputedRef, Ref, ShallowRef } from "vue";
|
|
3
|
-
import { AsPresetEntryRow, AspectMask, ColumnWidthsMap, ConfigTab, FieldFilters, PresetAspect, PresetCapabilities, PresetSnapshot, SelectionMode, SystemPreset, SystemPresetInput, TableStateMethods } from "@atscript/ui-table";
|
|
4
2
|
import { ClientError, TDbActionInfo, TDbActionProcessor, TDbDeleteResult } from "@atscript/db-client";
|
|
3
|
+
import { ColumnDef, PaginationControl, SortControl, TableDef } from "@atscript/ui";
|
|
4
|
+
import { AsPresetEntryRow, AspectMask, ColumnWidthsMap, ConfigTab, FieldFilters, PresetAspect, PresetCapabilities, PresetSnapshot, SelectionMode, SystemPreset, SystemPresetInput, TableStateMethods } from "@atscript/ui-table";
|
|
5
5
|
|
|
6
6
|
//#region src/types.d.ts
|
|
7
7
|
/** UI-side sentinel for the synthesised row-delete processor. */
|
|
@@ -239,8 +239,6 @@ interface TAsTableControls {
|
|
|
239
239
|
* `<AsTableRoot>`'s `#actionForm` slot (forwarded through to this dialog).
|
|
240
240
|
*/
|
|
241
241
|
actionFormDialog?: Component;
|
|
242
|
-
/** Tier-1 dropdown picker. Renders the presets menu (Save / Save as / Reset / Manage). */
|
|
243
|
-
presetPicker?: Component;
|
|
244
242
|
/** Tier-2 management dialog (rename / delete / public-toggle / favorite / default). */
|
|
245
243
|
presetDialog?: Component;
|
|
246
244
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { Component, ComputedRef, Ref, ShallowRef } from "vue";
|
|
2
|
-
import { ClientError, TDbActionInfo, TDbActionProcessor, TDbDeleteResult } from "@atscript/db-client";
|
|
3
1
|
import { ColumnDef, PaginationControl, SortControl, TableDef } from "@atscript/ui";
|
|
2
|
+
import { Component, ComputedRef, Ref, ShallowRef } from "vue";
|
|
4
3
|
import { AsPresetEntryRow, AspectMask, ColumnWidthsMap, ConfigTab, FieldFilters, PresetAspect, PresetCapabilities, PresetSnapshot, SelectionMode, SystemPreset, SystemPresetInput, TableStateMethods } from "@atscript/ui-table";
|
|
4
|
+
import { ClientError, TDbActionInfo, TDbActionProcessor, TDbDeleteResult } from "@atscript/db-client";
|
|
5
5
|
|
|
6
6
|
//#region src/types.d.ts
|
|
7
7
|
/** UI-side sentinel for the synthesised row-delete processor. */
|
|
@@ -239,8 +239,6 @@ interface TAsTableControls {
|
|
|
239
239
|
* `<AsTableRoot>`'s `#actionForm` slot (forwarded through to this dialog).
|
|
240
240
|
*/
|
|
241
241
|
actionFormDialog?: Component;
|
|
242
|
-
/** Tier-1 dropdown picker. Renders the presets menu (Save / Save as / Reset / Manage). */
|
|
243
|
-
presetPicker?: Component;
|
|
244
242
|
/** Tier-2 management dialog (rename / delete / public-toggle / favorite / default). */
|
|
245
243
|
presetDialog?: Component;
|
|
246
244
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { computed, getCurrentInstance } from "vue";
|
|
2
|
+
//#region src/composables/use-has-emit-listener.ts
|
|
3
|
+
/**
|
|
4
|
+
* Returns true when the parent component bound a v-on listener for `emitName`
|
|
5
|
+
* (e.g. `onMainAction` for `@main-action`). Reads `inst.vnode.props` — the
|
|
6
|
+
* same property Vue uses to dispatch emit listeners. Non-reactive: a parent
|
|
7
|
+
* remount via `v-if` re-evaluates at the new mount.
|
|
8
|
+
*/
|
|
9
|
+
function useHasEmitListener(emitName) {
|
|
10
|
+
const inst = getCurrentInstance();
|
|
11
|
+
return computed(() => !!inst?.vnode.props?.[emitName]);
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
export { useHasEmitListener as t };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
let vue = require("vue");
|
|
2
|
+
//#region src/composables/use-has-emit-listener.ts
|
|
3
|
+
/**
|
|
4
|
+
* Returns true when the parent component bound a v-on listener for `emitName`
|
|
5
|
+
* (e.g. `onMainAction` for `@main-action`). Reads `inst.vnode.props` — the
|
|
6
|
+
* same property Vue uses to dispatch emit listeners. Non-reactive: a parent
|
|
7
|
+
* remount via `v-if` re-evaluates at the new mount.
|
|
8
|
+
*/
|
|
9
|
+
function useHasEmitListener(emitName) {
|
|
10
|
+
const inst = (0, vue.getCurrentInstance)();
|
|
11
|
+
return (0, vue.computed)(() => !!inst?.vnode.props?.[emitName]);
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
Object.defineProperty(exports, "useHasEmitListener", {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function() {
|
|
17
|
+
return useHasEmitListener;
|
|
18
|
+
}
|
|
19
|
+
});
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { onMounted, toValue, watch } from "vue";
|
|
2
|
+
//#region src/composables/use-seed-on-open.ts
|
|
3
|
+
/**
|
|
4
|
+
* Run `seed` whenever a dialog's open source becomes (or changes while)
|
|
5
|
+
* truthy, AND once on mount when it is already truthy.
|
|
6
|
+
*
|
|
7
|
+
* The mount-time run exists because `<AsTableRoot>` lazy-mounts its default
|
|
8
|
+
* dialogs: the component is created only after the open state is already
|
|
9
|
+
* true, so the false→true transition happens before any watcher exists and
|
|
10
|
+
* the draft must snapshot current state on setup too. Using `onMounted`
|
|
11
|
+
* instead of `{ immediate: true }` keeps the initial run out of setup, so
|
|
12
|
+
* `seed` may safely reference refs/functions declared after the call site
|
|
13
|
+
* (no temporal-dead-zone hazard).
|
|
14
|
+
*
|
|
15
|
+
* `isOpen` may be a boolean, or any value whose truthiness means "open"
|
|
16
|
+
* (e.g. the column a filter dialog edits) — re-seeding also fires when that
|
|
17
|
+
* value changes from one truthy value to another.
|
|
18
|
+
*
|
|
19
|
+
* Internal (Tier 3) — not exported from the package entry.
|
|
20
|
+
*/
|
|
21
|
+
function useSeedOnOpen(isOpen, seed) {
|
|
22
|
+
watch(() => toValue(isOpen), (open) => {
|
|
23
|
+
if (open) seed();
|
|
24
|
+
});
|
|
25
|
+
onMounted(() => {
|
|
26
|
+
if (toValue(isOpen)) seed();
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
export { useSeedOnOpen as t };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
let vue = require("vue");
|
|
2
|
+
//#region src/composables/use-seed-on-open.ts
|
|
3
|
+
/**
|
|
4
|
+
* Run `seed` whenever a dialog's open source becomes (or changes while)
|
|
5
|
+
* truthy, AND once on mount when it is already truthy.
|
|
6
|
+
*
|
|
7
|
+
* The mount-time run exists because `<AsTableRoot>` lazy-mounts its default
|
|
8
|
+
* dialogs: the component is created only after the open state is already
|
|
9
|
+
* true, so the false→true transition happens before any watcher exists and
|
|
10
|
+
* the draft must snapshot current state on setup too. Using `onMounted`
|
|
11
|
+
* instead of `{ immediate: true }` keeps the initial run out of setup, so
|
|
12
|
+
* `seed` may safely reference refs/functions declared after the call site
|
|
13
|
+
* (no temporal-dead-zone hazard).
|
|
14
|
+
*
|
|
15
|
+
* `isOpen` may be a boolean, or any value whose truthiness means "open"
|
|
16
|
+
* (e.g. the column a filter dialog edits) — re-seeding also fires when that
|
|
17
|
+
* value changes from one truthy value to another.
|
|
18
|
+
*
|
|
19
|
+
* Internal (Tier 3) — not exported from the package entry.
|
|
20
|
+
*/
|
|
21
|
+
function useSeedOnOpen(isOpen, seed) {
|
|
22
|
+
(0, vue.watch)(() => (0, vue.toValue)(isOpen), (open) => {
|
|
23
|
+
if (open) seed();
|
|
24
|
+
});
|
|
25
|
+
(0, vue.onMounted)(() => {
|
|
26
|
+
if ((0, vue.toValue)(isOpen)) seed();
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
Object.defineProperty(exports, "useSeedOnOpen", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
get: function() {
|
|
33
|
+
return useSeedOnOpen;
|
|
34
|
+
}
|
|
35
|
+
});
|