@atscript/vue-table 0.1.91 → 0.1.93
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/as-action-form-dialog.cjs +1 -1
- package/dist/as-action-form-dialog.mjs +1 -1
- package/dist/{as-action-menu-content-CyUfBrWH.cjs → as-action-menu-content-CSPPMACR.cjs} +1 -1
- package/dist/{as-action-menu-content-CXsdPn42.mjs → as-action-menu-content-DXWuttt_.mjs} +1 -1
- package/dist/{as-cell-date-CTrvxS1h.cjs → as-cell-date-D0rowX5E.cjs} +6 -2
- package/dist/{as-cell-date-Cq49RHmL.mjs → as-cell-date-DPWBlhyM.mjs} +6 -2
- package/dist/as-cell-date.cjs +1 -1
- package/dist/as-cell-date.mjs +1 -1
- package/dist/{as-config-dialog-vRklaKbi.mjs → as-config-dialog-BB6BDa1E.mjs} +1 -1
- package/dist/{as-config-dialog-d2k7_l0U.cjs → as-config-dialog-BCvtSxi6.cjs} +1 -1
- package/dist/as-config-dialog.cjs +1 -1
- package/dist/as-config-dialog.mjs +1 -1
- package/dist/{as-confirm-dialog-BLh3Ju4-.mjs → as-confirm-dialog-DL0mCEeX.mjs} +1 -1
- package/dist/{as-confirm-dialog-BgpIEE2z.cjs → as-confirm-dialog-Xtw2wE1X.cjs} +1 -1
- package/dist/as-confirm-dialog.cjs +1 -1
- package/dist/as-confirm-dialog.mjs +1 -1
- package/dist/{as-filter-dialog-C0HMpUPT.mjs → as-filter-dialog-KGyPqr2P.mjs} +5 -5
- package/dist/{as-filter-dialog-DcGvIV3h.cjs → as-filter-dialog-O62-CnIQ.cjs} +5 -5
- package/dist/as-filter-dialog.cjs +1 -1
- package/dist/as-filter-dialog.mjs +1 -1
- package/dist/{as-filter-field-Bqvu2ASN.mjs → as-filter-field-CkiRXHVx.mjs} +4 -3
- package/dist/{as-filter-field-B_tYzvvl.cjs → as-filter-field-jL7cnKUR.cjs} +4 -3
- package/dist/as-filter-field.cjs +1 -1
- package/dist/as-filter-field.mjs +1 -1
- package/dist/{as-filters-xRT2qv56.cjs → as-filters-BFpZKtAU.cjs} +2 -2
- package/dist/{as-filters-Bxa9ZEMm.mjs → as-filters-BJM-NjUn.mjs} +2 -2
- package/dist/as-filters.cjs +1 -1
- package/dist/as-filters.mjs +1 -1
- package/dist/{as-preset-dialog-BaTfwMnh.cjs → as-preset-dialog-1Xl8DIiN.cjs} +1 -1
- package/dist/{as-preset-dialog-BdDRgwf_.mjs → as-preset-dialog-DXbqMVI1.mjs} +1 -1
- package/dist/as-preset-dialog.cjs +1 -1
- package/dist/as-preset-dialog.mjs +1 -1
- package/dist/{as-preset-picker-Ce3crTQy.cjs → as-preset-picker-CkaaKzYB.cjs} +1 -1
- package/dist/{as-preset-picker-BQbNEiy9.mjs → as-preset-picker-DJTF47_V.mjs} +1 -1
- package/dist/as-preset-picker.cjs +1 -1
- package/dist/as-preset-picker.mjs +1 -1
- package/dist/{as-row-actions-B6Kob6gt.cjs → as-row-actions-C78cvaf3.cjs} +2 -2
- package/dist/{as-row-actions-CeWBBGqh.mjs → as-row-actions-CpEMa5NU.mjs} +2 -2
- package/dist/as-row-actions.cjs +1 -1
- package/dist/as-row-actions.mjs +1 -1
- package/dist/{as-table-Cnw2fOqZ.mjs → as-table-DDyvnBFL.mjs} +3 -3
- package/dist/{as-table-actions-BpMiNFni.mjs → as-table-actions-D2-MBvoy.mjs} +2 -2
- package/dist/{as-table-actions-BK1Thy2G.cjs → as-table-actions-DtCjMMCI.cjs} +2 -2
- package/dist/as-table-actions.cjs +1 -1
- package/dist/as-table-actions.d.cts +1 -1
- package/dist/as-table-actions.d.mts +1 -1
- package/dist/as-table-actions.mjs +1 -1
- package/dist/{as-table-actions.vue-pDtCQ0oB.d.cts → as-table-actions.vue-BzRGefEz.d.cts} +1 -1
- package/dist/{as-table-actions.vue-riwwEAGF.d.mts → as-table-actions.vue-CMgBBa4-.d.mts} +1 -1
- package/dist/{as-table-base-VIz-B_6_.cjs → as-table-base-CHzULili.cjs} +2 -2
- package/dist/{as-table-base-D0k4k7k_.mjs → as-table-base-CSrtmIN2.mjs} +2 -2
- package/dist/{as-table-root-Cd_g0Lhp.mjs → as-table-root-Bc23Z7we.mjs} +30 -12
- package/dist/{as-table-root-DRwM_vYa.cjs → as-table-root-zJdmNnsC.cjs} +30 -12
- 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-CAQzVgay.d.cts → as-table-root.vue-DL3BnZOe.d.cts} +19 -4
- package/dist/{as-table-root.vue-Bnooi1I6.d.mts → as-table-root.vue-DtjHgOVP.d.mts} +19 -4
- package/dist/{as-table-status-BjRGGuhC.mjs → as-table-status-B11orhFu.mjs} +1 -1
- package/dist/{as-table-status-DWYoJIMC.cjs → as-table-status-DKXFSCzE.cjs} +1 -1
- package/dist/{as-table-DlDFxdXI.cjs → as-table-v42bV1ea.cjs} +3 -3
- 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-vxuudXjo.d.cts → as-table.vue-C1PL0aFi.d.cts} +4 -4
- package/dist/{as-table.vue-CH7WH6qe.d.mts → as-table.vue-DHi9pCgA.d.mts} +4 -4
- package/dist/{as-window-table-CKIfo3M_.mjs → as-window-table-CDTjX7W5.mjs} +2 -2
- package/dist/{as-window-table-DE7_NyEP.cjs → as-window-table-DuwMCDUh.cjs} +2 -2
- 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-DXB5Qan7.d.cts → as-window-table.vue-CgvN_iua.d.cts} +4 -4
- package/dist/{as-window-table.vue-7cJ3TUZX.d.mts → as-window-table.vue-Ckjt9VU8.d.mts} +4 -4
- package/dist/index.cjs +15 -15
- package/dist/index.d.cts +4 -4
- package/dist/index.d.mts +4 -4
- package/dist/index.mjs +15 -15
- package/dist/{use-table-state-C4JbonEZ.mjs → use-table-state-CuZ2OXoY.mjs} +7 -0
- package/dist/{use-table-state-MU-vuzui.cjs → use-table-state-DFQ30m-j.cjs} +7 -0
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_use_table_state = require("./use-table-state-
|
|
1
|
+
const require_use_table_state = require("./use-table-state-DFQ30m-j.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");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as useTableContext, p as intentToScope } from "./use-table-state-
|
|
1
|
+
import { a as useTableContext, p as intentToScope } from "./use-table-state-CuZ2OXoY.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";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as intentClass, l as ariaLabelFor } from "./use-table-state-
|
|
1
|
+
import { f as intentClass, l as ariaLabelFor } from "./use-table-state-CuZ2OXoY.mjs";
|
|
2
2
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, defineComponent, normalizeClass, openBlock, renderList, renderSlot, toDisplayString, unref, useSlots, withCtx } from "vue";
|
|
3
3
|
import { DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator } from "reka-ui";
|
|
4
4
|
//#endregion
|
|
@@ -46,10 +46,14 @@ var as_cell_date_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
46
46
|
const date = (0, vue.computed)(() => {
|
|
47
47
|
const v = require_get_cell_value.getCellValue(props.row, props.column.path);
|
|
48
48
|
if (v === null || v === void 0 || v === "") return void 0;
|
|
49
|
-
if (v instanceof Date)
|
|
49
|
+
if (v instanceof Date) {
|
|
50
|
+
const t = v.getTime();
|
|
51
|
+
return Number.isFinite(t) && t !== 0 ? v : void 0;
|
|
52
|
+
}
|
|
50
53
|
if (typeof v === "number" || typeof v === "string") {
|
|
51
54
|
const d = new Date(v);
|
|
52
|
-
|
|
55
|
+
const t = d.getTime();
|
|
56
|
+
return Number.isFinite(t) && t !== 0 ? d : void 0;
|
|
53
57
|
}
|
|
54
58
|
});
|
|
55
59
|
const formatted = (0, vue.computed)(() => {
|
|
@@ -46,10 +46,14 @@ var as_cell_date_default = /* @__PURE__ */ defineComponent({
|
|
|
46
46
|
const date = computed(() => {
|
|
47
47
|
const v = getCellValue(props.row, props.column.path);
|
|
48
48
|
if (v === null || v === void 0 || v === "") return void 0;
|
|
49
|
-
if (v instanceof Date)
|
|
49
|
+
if (v instanceof Date) {
|
|
50
|
+
const t = v.getTime();
|
|
51
|
+
return Number.isFinite(t) && t !== 0 ? v : void 0;
|
|
52
|
+
}
|
|
50
53
|
if (typeof v === "number" || typeof v === "string") {
|
|
51
54
|
const d = new Date(v);
|
|
52
|
-
|
|
55
|
+
const t = d.getTime();
|
|
56
|
+
return Number.isFinite(t) && t !== 0 ? d : void 0;
|
|
53
57
|
}
|
|
54
58
|
});
|
|
55
59
|
const formatted = computed(() => {
|
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-D0rowX5E.cjs");
|
|
2
2
|
module.exports = require_as_cell_date.as_cell_date_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-DPWBlhyM.mjs";
|
|
2
2
|
export { as_cell_date_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-CuZ2OXoY.mjs";
|
|
2
2
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, guardReactiveProps, mergeModels, nextTick, normalizeClass, normalizeProps, openBlock, reactive, ref, renderList, renderSlot, shallowRef, toDisplayString, unref, useModel, vModelText, watch, withCtx, withDirectives, withModifiers } from "vue";
|
|
3
3
|
import { arraysEqual, sortersEqual } from "@atscript/ui-table";
|
|
4
4
|
import { DialogClose, DialogContent, DialogOverlay, DialogPortal, DialogRoot, DialogTitle, ListboxContent, ListboxFilter, ListboxItem, ListboxItemIndicator, ListboxRoot, TabsContent, TabsList, TabsRoot, TabsTrigger } from "reka-ui";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_use_table_state = require("./use-table-state-
|
|
1
|
+
const require_use_table_state = require("./use-table-state-DFQ30m-j.cjs");
|
|
2
2
|
let vue = require("vue");
|
|
3
3
|
let _atscript_ui_table = require("@atscript/ui-table");
|
|
4
4
|
let reka_ui = require("reka-ui");
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_config_dialog = require("./as-config-dialog-
|
|
1
|
+
const require_as_config_dialog = require("./as-config-dialog-BCvtSxi6.cjs");
|
|
2
2
|
module.exports = require_as_config_dialog.as_config_dialog_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-BB6BDa1E.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-CuZ2OXoY.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-DFQ30m-j.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-Xtw2wE1X.cjs");
|
|
2
2
|
module.exports = require_as_confirm_dialog.as_confirm_dialog_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-DL0mCEeX.mjs";
|
|
2
2
|
export { as_confirm_dialog_default as default };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { a as useTableContext, o as useTableContextOptional, r as provideTableContext, t as createStaticTableState } from "./use-table-state-
|
|
2
|
-
import { r as useTable } from "./as-filter-field-
|
|
3
|
-
import { n as useDialogTabKeyboard, t as as_config_dialog_default } from "./as-config-dialog-
|
|
1
|
+
import { a as useTableContext, o as useTableContextOptional, r as provideTableContext, t as createStaticTableState } from "./use-table-state-CuZ2OXoY.mjs";
|
|
2
|
+
import { r as useTable } from "./as-filter-field-CkiRXHVx.mjs";
|
|
3
|
+
import { n as useDialogTabKeyboard, t as as_config_dialog_default } from "./as-config-dialog-BB6BDa1E.mjs";
|
|
4
4
|
import { t as as_filter_input_default } from "./as-filter-input-P1i0CW2-.mjs";
|
|
5
|
-
import { t as as_window_table_default } from "./as-window-table-
|
|
6
|
-
import { t as as_filters_default } from "./as-filters-
|
|
5
|
+
import { t as as_window_table_default } from "./as-window-table-CDTjX7W5.mjs";
|
|
6
|
+
import { t as as_filters_default } from "./as-filters-BJM-NjUn.mjs";
|
|
7
7
|
import { resolveValueHelp, valueHelpDictPaths } from "@atscript/ui";
|
|
8
8
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeModels, normalizeClass, normalizeStyle, onMounted, openBlock, ref, renderList, shallowRef, toDisplayString, unref, useModel, watch, withCtx } from "vue";
|
|
9
9
|
import { columnFilterType, conditionLabel, conditionsForType, dateShortcuts, defaultCondition, filledFilterCount, formatFilterCondition, isFilled, isSimpleEq, sameColumnSet } from "@atscript/ui-table";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const require_use_table_state = require("./use-table-state-
|
|
2
|
-
const require_as_filter_field = require("./as-filter-field-
|
|
3
|
-
const require_as_config_dialog = require("./as-config-dialog-
|
|
1
|
+
const require_use_table_state = require("./use-table-state-DFQ30m-j.cjs");
|
|
2
|
+
const require_as_filter_field = require("./as-filter-field-jL7cnKUR.cjs");
|
|
3
|
+
const require_as_config_dialog = require("./as-config-dialog-BCvtSxi6.cjs");
|
|
4
4
|
const require_as_filter_input = require("./as-filter-input--nr72iwX.cjs");
|
|
5
|
-
const require_as_window_table = require("./as-window-table-
|
|
6
|
-
const require_as_filters = require("./as-filters-
|
|
5
|
+
const require_as_window_table = require("./as-window-table-DuwMCDUh.cjs");
|
|
6
|
+
const require_as_filters = require("./as-filters-BFpZKtAU.cjs");
|
|
7
7
|
let _atscript_ui = require("@atscript/ui");
|
|
8
8
|
let vue = require("vue");
|
|
9
9
|
let _atscript_ui_table = require("@atscript/ui-table");
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_filter_dialog = require("./as-filter-dialog-
|
|
1
|
+
const require_as_filter_dialog = require("./as-filter-dialog-O62-CnIQ.cjs");
|
|
2
2
|
module.exports = require_as_filter_dialog.as_filter_dialog_default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_filter_dialog_default } from "./as-filter-dialog-
|
|
1
|
+
import { t as as_filter_dialog_default } from "./as-filter-dialog-KGyPqr2P.mjs";
|
|
2
2
|
export { as_filter_dialog_default as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as useTableContext, n as createTableState, r as provideTableContext, s as DEFAULT_AVAILABLE_ASPECTS } from "./use-table-state-
|
|
2
|
-
import { s as useTableSelection } from "./as-table-status-
|
|
3
|
-
import { t as as_table_base_default } from "./as-table-base-
|
|
1
|
+
import { a as useTableContext, n as createTableState, r as provideTableContext, s as DEFAULT_AVAILABLE_ASPECTS } from "./use-table-state-CuZ2OXoY.mjs";
|
|
2
|
+
import { s as useTableSelection } from "./as-table-status-B11orhFu.mjs";
|
|
3
|
+
import { t as as_table_base_default } from "./as-table-base-CSrtmIN2.mjs";
|
|
4
4
|
import { ValueHelpClient, createTableDef, getMetaEntry, resetMetaCache, resolveValueHelp, valueHelpDictPaths } from "@atscript/ui";
|
|
5
5
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, inject, isRef, nextTick, onBeforeUnmount, openBlock, ref, renderList, shallowRef, toDisplayString, unref, useId, watch, withCtx, withKeys, withModifiers } from "vue";
|
|
6
6
|
import { PresetsClient, STANDARD_PRESET_ID, arraysEqual, columnFilterType, debounce, deserializeDraft, formatFilterCondition, isAuthError, isEmptyDraft, isFilled, isSimpleEq, isSystemPresetId, parseFilterInput, resolveSystemPresets, serializeDraft, stableStringify } from "@atscript/ui-table";
|
|
@@ -398,6 +398,7 @@ function useTable(url, opts) {
|
|
|
398
398
|
fn: opts?.queryFn,
|
|
399
399
|
forceFilters: opts?.forceFilters,
|
|
400
400
|
forceSorters: opts?.forceSorters,
|
|
401
|
+
alwaysSelected: opts?.alwaysSelected,
|
|
401
402
|
blockQuery: opts?.blockQuery,
|
|
402
403
|
queryOnMount: opts?.queryOnMount,
|
|
403
404
|
urlQueryReady: opts?.urlQueryReady,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_use_table_state = require("./use-table-state-
|
|
2
|
-
const require_as_table_status = require("./as-table-status-
|
|
3
|
-
const require_as_table_base = require("./as-table-base-
|
|
1
|
+
const require_use_table_state = require("./use-table-state-DFQ30m-j.cjs");
|
|
2
|
+
const require_as_table_status = require("./as-table-status-DKXFSCzE.cjs");
|
|
3
|
+
const require_as_table_base = require("./as-table-base-CHzULili.cjs");
|
|
4
4
|
let _atscript_ui = require("@atscript/ui");
|
|
5
5
|
let vue = require("vue");
|
|
6
6
|
let _atscript_ui_table = require("@atscript/ui-table");
|
|
@@ -398,6 +398,7 @@ function useTable(url, opts) {
|
|
|
398
398
|
fn: opts?.queryFn,
|
|
399
399
|
forceFilters: opts?.forceFilters,
|
|
400
400
|
forceSorters: opts?.forceSorters,
|
|
401
|
+
alwaysSelected: opts?.alwaysSelected,
|
|
401
402
|
blockQuery: opts?.blockQuery,
|
|
402
403
|
queryOnMount: opts?.queryOnMount,
|
|
403
404
|
urlQueryReady: opts?.urlQueryReady,
|
package/dist/as-filter-field.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_filter_field = require("./as-filter-field-
|
|
1
|
+
const require_as_filter_field = require("./as-filter-field-jL7cnKUR.cjs");
|
|
2
2
|
module.exports = require_as_filter_field.as_filter_field_default;
|
package/dist/as-filter-field.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_filter_field_default } from "./as-filter-field-
|
|
1
|
+
import { t as as_filter_field_default } from "./as-filter-field-CkiRXHVx.mjs";
|
|
2
2
|
export { as_filter_field_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_use_table_state = require("./use-table-state-
|
|
2
|
-
const require_as_filter_field = require("./as-filter-field-
|
|
1
|
+
const require_use_table_state = require("./use-table-state-DFQ30m-j.cjs");
|
|
2
|
+
const require_as_filter_field = require("./as-filter-field-jL7cnKUR.cjs");
|
|
3
3
|
let vue = require("vue");
|
|
4
4
|
//#endregion
|
|
5
5
|
//#region src/components/as-filters.vue
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as useTableContext } from "./use-table-state-
|
|
2
|
-
import { t as as_filter_field_default } from "./as-filter-field-
|
|
1
|
+
import { a as useTableContext } from "./use-table-state-CuZ2OXoY.mjs";
|
|
2
|
+
import { t as as_filter_field_default } from "./as-filter-field-CkiRXHVx.mjs";
|
|
3
3
|
import { Fragment, computed, createBlock, createElementBlock, defineComponent, mergeProps, openBlock, renderList } from "vue";
|
|
4
4
|
//#endregion
|
|
5
5
|
//#region src/components/as-filters.vue
|
package/dist/as-filters.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_filters = require("./as-filters-
|
|
1
|
+
const require_as_filters = require("./as-filters-BFpZKtAU.cjs");
|
|
2
2
|
module.exports = require_as_filters.as_filters_default;
|
package/dist/as-filters.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_filters_default } from "./as-filters-
|
|
1
|
+
import { t as as_filters_default } from "./as-filters-BJM-NjUn.mjs";
|
|
2
2
|
export { as_filters_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_use_table_state = require("./use-table-state-
|
|
1
|
+
const require_use_table_state = require("./use-table-state-DFQ30m-j.cjs");
|
|
2
2
|
const require_preset_aspect_display = require("./preset-aspect-display-y8aal_EF.cjs");
|
|
3
3
|
let vue = require("vue");
|
|
4
4
|
let _atscript_ui_table = require("@atscript/ui-table");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as useTableContext } from "./use-table-state-
|
|
1
|
+
import { a as useTableContext } from "./use-table-state-CuZ2OXoY.mjs";
|
|
2
2
|
import { a as readPresetLabel, i as ownerNameOf, n as ASPECT_LABELS, r as aspectsOf, t as ASPECT_ICONS } from "./preset-aspect-display-BYeiSgcc.mjs";
|
|
3
3
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, isRef, nextTick, normalizeClass, openBlock, ref, renderList, toDisplayString, unref, vModelText, watch, withCtx, withDirectives, withKeys, withModifiers } from "vue";
|
|
4
4
|
import { isSystemPresetId, setsEqual } from "@atscript/ui-table";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_preset_dialog = require("./as-preset-dialog-
|
|
1
|
+
const require_as_preset_dialog = require("./as-preset-dialog-1Xl8DIiN.cjs");
|
|
2
2
|
module.exports = require_as_preset_dialog.as_preset_dialog_default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_preset_dialog_default } from "./as-preset-dialog-
|
|
1
|
+
import { t as as_preset_dialog_default } from "./as-preset-dialog-DXbqMVI1.mjs";
|
|
2
2
|
export { as_preset_dialog_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_use_table_state = require("./use-table-state-
|
|
1
|
+
const require_use_table_state = require("./use-table-state-DFQ30m-j.cjs");
|
|
2
2
|
const require_preset_aspect_display = require("./preset-aspect-display-y8aal_EF.cjs");
|
|
3
3
|
let vue = require("vue");
|
|
4
4
|
let _atscript_ui_table = require("@atscript/ui-table");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as useTableContext } from "./use-table-state-
|
|
1
|
+
import { a as useTableContext } from "./use-table-state-CuZ2OXoY.mjs";
|
|
2
2
|
import { a as readPresetLabel, i as ownerNameOf, n as ASPECT_LABELS, r as aspectsOf, t as ASPECT_ICONS } from "./preset-aspect-display-BYeiSgcc.mjs";
|
|
3
3
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, nextTick, normalizeClass, onScopeDispose, openBlock, ref, renderList, toDisplayString, unref, vModelCheckbox, vModelText, watch, withCtx, withDirectives, withKeys, withModifiers } from "vue";
|
|
4
4
|
import { isSystemPresetId } from "@atscript/ui-table";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_preset_picker = require("./as-preset-picker-
|
|
1
|
+
const require_as_preset_picker = require("./as-preset-picker-CkaaKzYB.cjs");
|
|
2
2
|
module.exports = require_as_preset_picker.as_preset_picker_default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_preset_picker_default } from "./as-preset-picker-
|
|
1
|
+
import { t as as_preset_picker_default } from "./as-preset-picker-DJTF47_V.mjs";
|
|
2
2
|
export { as_preset_picker_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_use_table_state = require("./use-table-state-
|
|
2
|
-
const require_as_action_menu_content = require("./as-action-menu-content-
|
|
1
|
+
const require_use_table_state = require("./use-table-state-DFQ30m-j.cjs");
|
|
2
|
+
const require_as_action_menu_content = require("./as-action-menu-content-CSPPMACR.cjs");
|
|
3
3
|
let vue = require("vue");
|
|
4
4
|
let reka_ui = require("reka-ui");
|
|
5
5
|
//#region src/components/defaults/as-row-actions.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as useTableContext, c as applyRowGate, d as extractIdentifier, f as intentClass, l as ariaLabelFor, m as triggerAction } from "./use-table-state-
|
|
2
|
-
import { t as as_action_menu_content_default } from "./as-action-menu-content-
|
|
1
|
+
import { a as useTableContext, c as applyRowGate, d as extractIdentifier, f as intentClass, l as ariaLabelFor, m as triggerAction } from "./use-table-state-CuZ2OXoY.mjs";
|
|
2
|
+
import { t as as_action_menu_content_default } from "./as-action-menu-content-DXWuttt_.mjs";
|
|
3
3
|
import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeClass, openBlock, toDisplayString, unref, withCtx, withModifiers } from "vue";
|
|
4
4
|
import { DropdownMenuPortal, DropdownMenuRoot, DropdownMenuTrigger } from "reka-ui";
|
|
5
5
|
//#region src/components/defaults/as-row-actions.vue?vue&type=script&setup=true&lang.ts
|
package/dist/as-row-actions.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_row_actions = require("./as-row-actions-
|
|
1
|
+
const require_as_row_actions = require("./as-row-actions-C78cvaf3.cjs");
|
|
2
2
|
module.exports = require_as_row_actions.as_row_actions_default;
|
package/dist/as-row-actions.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_row_actions_default } from "./as-row-actions-
|
|
1
|
+
import { t as as_row_actions_default } from "./as-row-actions-CpEMa5NU.mjs";
|
|
2
2
|
export { as_row_actions_default as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as useTableContext, g as ROW_ACTIONS_TYPE, h as ROW_ACTIONS_PATH, i as useRegisterMainActionListener } from "./use-table-state-
|
|
2
|
-
import { o as useSelectModeReset } from "./as-table-status-
|
|
1
|
+
import { a as useTableContext, g as ROW_ACTIONS_TYPE, h as ROW_ACTIONS_PATH, i as useRegisterMainActionListener } from "./use-table-state-CuZ2OXoY.mjs";
|
|
2
|
+
import { o as useSelectModeReset } from "./as-table-status-B11orhFu.mjs";
|
|
3
3
|
import { n as useHasEmitListener, t as useTableColumnHandlers } from "./use-table-column-handlers-t6xi1yCE.mjs";
|
|
4
|
-
import { t as as_table_base_default } from "./as-table-base-
|
|
4
|
+
import { t as as_table_base_default } from "./as-table-base-CSrtmIN2.mjs";
|
|
5
5
|
import { computed, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, guardReactiveProps, normalizeProps, openBlock, renderList, renderSlot, unref, watch, withCtx } from "vue";
|
|
6
6
|
import { rowsToPks } from "@atscript/ui-table";
|
|
7
7
|
//#region src/components/as-table.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as useTableContext, c as applyRowGate, f as intentClass, l as ariaLabelFor, m as triggerAction, u as collectIdentifiers } from "./use-table-state-
|
|
2
|
-
import { t as as_action_menu_content_default } from "./as-action-menu-content-
|
|
1
|
+
import { a as useTableContext, c as applyRowGate, f as intentClass, l as ariaLabelFor, m as triggerAction, u as collectIdentifiers } from "./use-table-state-CuZ2OXoY.mjs";
|
|
2
|
+
import { t as as_action_menu_content_default } from "./as-action-menu-content-DXWuttt_.mjs";
|
|
3
3
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, normalizeClass, openBlock, renderSlot, toDisplayString, unref, withCtx } from "vue";
|
|
4
4
|
import { DropdownMenuPortal, DropdownMenuRoot, DropdownMenuTrigger } from "reka-ui";
|
|
5
5
|
//#region src/components/as-table-actions.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_use_table_state = require("./use-table-state-
|
|
2
|
-
const require_as_action_menu_content = require("./as-action-menu-content-
|
|
1
|
+
const require_use_table_state = require("./use-table-state-DFQ30m-j.cjs");
|
|
2
|
+
const require_as_action_menu_content = require("./as-action-menu-content-CSPPMACR.cjs");
|
|
3
3
|
let vue = require("vue");
|
|
4
4
|
let reka_ui = require("reka-ui");
|
|
5
5
|
//#region src/components/as-table-actions.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_table_actions = require("./as-table-actions-
|
|
1
|
+
const require_as_table_actions = require("./as-table-actions-DtCjMMCI.cjs");
|
|
2
2
|
module.exports = require_as_table_actions.as_table_actions_default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-table-actions.vue-
|
|
1
|
+
import { t as _default } from "./as-table-actions.vue-BzRGefEz.cjs";
|
|
2
2
|
export = _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-table-actions.vue-
|
|
1
|
+
import { t as _default } from "./as-table-actions.vue-CMgBBa4-.mjs";
|
|
2
2
|
export { _default as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_table_actions_default } from "./as-table-actions-
|
|
1
|
+
import { t as as_table_actions_default } from "./as-table-actions-D2-MBvoy.mjs";
|
|
2
2
|
export { as_table_actions_default as default };
|
|
@@ -18,7 +18,7 @@ declare var __VLS_1: {
|
|
|
18
18
|
defaultAction: TVueTableActionInfo | undefined;
|
|
19
19
|
otherActions: TVueTableActionInfo[];
|
|
20
20
|
trailingRowActions: TVueTableActionInfo[];
|
|
21
|
-
level: "
|
|
21
|
+
level: "rows" | "row" | "table";
|
|
22
22
|
ids: Record<string, unknown>[];
|
|
23
23
|
invoke: typeof invokeWith;
|
|
24
24
|
}, __VLS_3: {
|
|
@@ -18,7 +18,7 @@ declare var __VLS_1: {
|
|
|
18
18
|
defaultAction: TVueTableActionInfo | undefined;
|
|
19
19
|
otherActions: TVueTableActionInfo[];
|
|
20
20
|
trailingRowActions: TVueTableActionInfo[];
|
|
21
|
-
level: "
|
|
21
|
+
level: "rows" | "row" | "table";
|
|
22
22
|
ids: Record<string, unknown>[];
|
|
23
23
|
invoke: typeof invokeWith;
|
|
24
24
|
}, __VLS_3: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_use_table_state = require("./use-table-state-
|
|
2
|
-
const require_as_table_status = require("./as-table-status-
|
|
1
|
+
const require_use_table_state = require("./use-table-state-DFQ30m-j.cjs");
|
|
2
|
+
const require_as_table_status = require("./as-table-status-DKXFSCzE.cjs");
|
|
3
3
|
const require_get_cell_value = require("./get-cell-value-CZSVfDLg.cjs");
|
|
4
4
|
let vue = require("vue");
|
|
5
5
|
let _atscript_ui_table = require("@atscript/ui-table");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as useTableContextOptional } from "./use-table-state-
|
|
2
|
-
import { a as useCellResolver, i as useCellComponents, n as as_table_header_default, t as as_table_status_default } from "./as-table-status-
|
|
1
|
+
import { o as useTableContextOptional } from "./use-table-state-CuZ2OXoY.mjs";
|
|
2
|
+
import { a as useCellResolver, i as useCellComponents, n as as_table_header_default, t as as_table_status_default } from "./as-table-status-B11orhFu.mjs";
|
|
3
3
|
import { t as getCellValue } from "./get-cell-value-DiH84HKL.mjs";
|
|
4
4
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, guardReactiveProps, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onMounted, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, unref, useSlots, watch, withCtx } from "vue";
|
|
5
5
|
import { DEFAULT_ROW_HEIGHT_PX, filledFilterCount } from "@atscript/ui-table";
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { i as useRegisterMainActionListener } from "./use-table-state-
|
|
2
|
-
import { r as useTable } from "./as-filter-field-
|
|
3
|
-
import { n as useTableNavBridge
|
|
1
|
+
import { i as useRegisterMainActionListener } from "./use-table-state-CuZ2OXoY.mjs";
|
|
2
|
+
import { r as useTable } from "./as-filter-field-CkiRXHVx.mjs";
|
|
3
|
+
import { n as useTableNavBridge } from "./as-filter-dialog-KGyPqr2P.mjs";
|
|
4
4
|
import { n as useHasEmitListener } from "./use-table-column-handlers-t6xi1yCE.mjs";
|
|
5
5
|
import "./as-cell-array-DOQKR6t5.mjs";
|
|
6
|
-
import "./as-cell-date-
|
|
6
|
+
import "./as-cell-date-DPWBlhyM.mjs";
|
|
7
7
|
import "./as-cell-json-BynWIs1d.mjs";
|
|
8
8
|
import "./as-cell-number-Bc1C97Vg.mjs";
|
|
9
9
|
import "./as-cell-union-C1w3B38J.mjs";
|
|
10
10
|
import "./as-column-menu-DCfhorMP.mjs";
|
|
11
|
-
import
|
|
12
|
-
import { t as as_confirm_dialog_default } from "./as-confirm-dialog-
|
|
11
|
+
import "./as-config-dialog-BB6BDa1E.mjs";
|
|
12
|
+
import { t as as_confirm_dialog_default } from "./as-confirm-dialog-DL0mCEeX.mjs";
|
|
13
13
|
import "./as-filter-input-P1i0CW2-.mjs";
|
|
14
14
|
import "./as-table-cell-value-B1CiJYFn.mjs";
|
|
15
15
|
import "./as-table-header-cell-CBn_ioCe.mjs";
|
|
16
|
-
import
|
|
17
|
-
import "./as-row-actions-
|
|
16
|
+
import "./as-preset-dialog-DXbqMVI1.mjs";
|
|
17
|
+
import "./as-row-actions-CpEMa5NU.mjs";
|
|
18
18
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, defineAsyncComponent, defineComponent, mergeModels, openBlock, ref, renderSlot, resolveDynamicComponent, unref, useModel, watch } from "vue";
|
|
19
19
|
//#endregion
|
|
20
20
|
//#region src/components/as-table-root.vue
|
|
@@ -61,6 +61,10 @@ var as_table_root_default = /* @__PURE__ */ defineComponent({
|
|
|
61
61
|
type: Array,
|
|
62
62
|
required: false
|
|
63
63
|
},
|
|
64
|
+
alwaysSelected: {
|
|
65
|
+
type: Array,
|
|
66
|
+
required: false
|
|
67
|
+
},
|
|
64
68
|
queryOnMount: {
|
|
65
69
|
type: Boolean,
|
|
66
70
|
required: false,
|
|
@@ -145,6 +149,9 @@ var as_table_root_default = /* @__PURE__ */ defineComponent({
|
|
|
145
149
|
"update:urlQuery"
|
|
146
150
|
]),
|
|
147
151
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
152
|
+
const AsConfigDialog = defineAsyncComponent(() => import("./as-config-dialog.mjs"));
|
|
153
|
+
const AsFilterDialog = defineAsyncComponent(() => import("./as-filter-dialog.mjs"));
|
|
154
|
+
const AsPresetDialog = defineAsyncComponent(() => import("./as-preset-dialog.mjs"));
|
|
148
155
|
const LazyActionFormDialog = defineAsyncComponent(() => import("./as-action-form-dialog.mjs"));
|
|
149
156
|
const props = __props;
|
|
150
157
|
const emit = __emit;
|
|
@@ -167,6 +174,7 @@ var as_table_root_default = /* @__PURE__ */ defineComponent({
|
|
|
167
174
|
selectionPersistence: props.selectionPersistence,
|
|
168
175
|
forceFilters: props.forceFilters,
|
|
169
176
|
forceSorters: props.forceSorters,
|
|
177
|
+
alwaysSelected: props.alwaysSelected,
|
|
170
178
|
queryFn: props.queryFn,
|
|
171
179
|
queryOnMount: props.queryOnMount,
|
|
172
180
|
blockQuery: props.blockQuery,
|
|
@@ -203,6 +211,16 @@ var as_table_root_default = /* @__PURE__ */ defineComponent({
|
|
|
203
211
|
}, { immediate: true });
|
|
204
212
|
useRegisterMainActionListener(state, (req) => emit("main-action", req.row, req.absIndex, req.event), useHasEmitListener("onMainAction"));
|
|
205
213
|
const navBridge = useTableNavBridge(state);
|
|
214
|
+
function latchOpened(source) {
|
|
215
|
+
const latched = ref(false);
|
|
216
|
+
watch(source, (v) => {
|
|
217
|
+
if (v) latched.value = true;
|
|
218
|
+
});
|
|
219
|
+
return latched;
|
|
220
|
+
}
|
|
221
|
+
const everOpenedConfig = latchOpened(() => state.configDialogOpen.value);
|
|
222
|
+
const everOpenedFilter = latchOpened(() => state.filterDialogColumn.value);
|
|
223
|
+
const everOpenedPreset = latchOpened(() => state.preset.dialogOpen.value);
|
|
206
224
|
const hasInputFormActions = computed(() => {
|
|
207
225
|
const a = state.tableDef.value?.actions;
|
|
208
226
|
if (!a) return false;
|
|
@@ -255,11 +273,11 @@ var as_table_root_default = /* @__PURE__ */ defineComponent({
|
|
|
255
273
|
actions: unref(state).actions,
|
|
256
274
|
prompt: unref(state).prompt
|
|
257
275
|
}),
|
|
258
|
-
(openBlock(), createBlock(resolveDynamicComponent(props.controls?.filterDialog ?? unref(
|
|
259
|
-
(openBlock(), createBlock(resolveDynamicComponent(props.controls?.configDialog ?? unref(
|
|
276
|
+
unref(everOpenedFilter) || props.controls?.filterDialog ? (openBlock(), createBlock(resolveDynamicComponent(props.controls?.filterDialog ?? unref(AsFilterDialog)), { key: 0 })) : createCommentVNode("v-if", true),
|
|
277
|
+
unref(everOpenedConfig) || props.controls?.configDialog ? (openBlock(), createBlock(resolveDynamicComponent(props.controls?.configDialog ?? unref(AsConfigDialog)), { key: 1 })) : createCommentVNode("v-if", true),
|
|
260
278
|
(openBlock(), createBlock(resolveDynamicComponent(props.controls?.confirmDialog ?? unref(as_confirm_dialog_default)))),
|
|
261
|
-
unref(state).preset.available.value ? (openBlock(), createBlock(resolveDynamicComponent(props.controls?.presetDialog ?? unref(
|
|
262
|
-
hasInputFormActions.value || props.controls?.actionFormDialog ? (openBlock(), createBlock(resolveDynamicComponent(props.controls?.actionFormDialog ?? unref(LazyActionFormDialog)), { key:
|
|
279
|
+
unref(state).preset.available.value && (unref(everOpenedPreset) || props.controls?.presetDialog) ? (openBlock(), createBlock(resolveDynamicComponent(props.controls?.presetDialog ?? unref(AsPresetDialog)), { key: 2 })) : createCommentVNode("v-if", true),
|
|
280
|
+
hasInputFormActions.value || props.controls?.actionFormDialog ? (openBlock(), createBlock(resolveDynamicComponent(props.controls?.actionFormDialog ?? unref(LazyActionFormDialog)), { key: 3 })) : createCommentVNode("v-if", true)
|
|
263
281
|
], 64);
|
|
264
282
|
};
|
|
265
283
|
}
|