@atscript/vue-table 0.1.133 → 0.1.134
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-DiS37BYK.cjs → as-action-menu-content-C_D_Fepo.cjs} +1 -1
- package/dist/{as-action-menu-content-4D7CJNgr.mjs → as-action-menu-content-rim8hAO9.mjs} +1 -1
- package/dist/{as-cell-array-2qmJ1lT2.mjs → as-cell-array-BWHkJX3I.mjs} +2 -2
- package/dist/{as-cell-array-iPeUnk2G.cjs → as-cell-array-D-8Pqlgo.cjs} +2 -2
- package/dist/as-cell-array.cjs +1 -1
- package/dist/as-cell-array.mjs +1 -1
- package/dist/{as-cell-date-DyixWKuS.cjs → as-cell-date-DviMJEqs.cjs} +2 -2
- package/dist/{as-cell-date-BwFgi6O0.mjs → as-cell-date-mGlnDeLP.mjs} +2 -2
- package/dist/as-cell-date.cjs +1 -1
- package/dist/as-cell-date.mjs +1 -1
- package/dist/{as-cell-json--95Xq6yq.mjs → as-cell-json-2I081xnO.mjs} +2 -2
- package/dist/{as-cell-json-Bvv2P7YV.cjs → as-cell-json-CaVB6e7V.cjs} +2 -2
- package/dist/as-cell-json.cjs +1 -1
- package/dist/as-cell-json.mjs +1 -1
- package/dist/{as-cell-number-DuPMOesI.cjs → as-cell-number-BnYbxOiG.cjs} +2 -2
- package/dist/{as-cell-number-DKRaS9pM.mjs → as-cell-number-CP2AZI9g.mjs} +2 -2
- package/dist/as-cell-number.cjs +1 -1
- package/dist/as-cell-number.mjs +1 -1
- package/dist/{as-cell-union-DJNsEKTi.cjs → as-cell-union-BjMP91PS.cjs} +3 -3
- package/dist/{as-cell-union-C9FukGqF.mjs → as-cell-union-NHpDCXty.mjs} +3 -3
- package/dist/as-cell-union.cjs +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-Cuelpv3p.d.mts → as-column-menu.vue-De7SRhj6.d.cts} +2 -2
- package/dist/{as-column-menu.vue-CZ8XqHl0.d.cts → as-column-menu.vue-Dg0H1dOd.d.mts} +2 -2
- package/dist/{as-config-dialog-BKsm8OHR.mjs → as-config-dialog-BUBHiVlf.mjs} +28 -15
- package/dist/{as-config-dialog-Bt8oP8qg.cjs → as-config-dialog-DvBptYMS.cjs} +28 -15
- package/dist/as-config-dialog.cjs +1 -1
- package/dist/as-config-dialog.mjs +1 -1
- package/dist/{as-confirm-dialog-Cw7KErhz.cjs → as-confirm-dialog-ByMfIG0A.cjs} +1 -1
- package/dist/{as-confirm-dialog-BV01t7dn.mjs → as-confirm-dialog-G4ZoL_Xo.mjs} +1 -1
- package/dist/as-confirm-dialog.cjs +1 -1
- package/dist/as-confirm-dialog.mjs +1 -1
- package/dist/{as-filter-dialog-Ckrl79kU.mjs → as-filter-dialog-BJWH8cvc.mjs} +9 -9
- package/dist/{as-filter-dialog-Bxii-mYH.cjs → as-filter-dialog-C2oyT0yt.cjs} +9 -9
- package/dist/as-filter-dialog.cjs +1 -1
- package/dist/as-filter-dialog.mjs +1 -1
- package/dist/{as-filter-field-C-IFnj8K.mjs → as-filter-field-B2skq4K0.mjs} +3 -3
- package/dist/{as-filter-field-xBr6TtKo.cjs → as-filter-field-DxGfasQj.cjs} +3 -3
- package/dist/as-filter-field.cjs +1 -1
- package/dist/as-filter-field.mjs +1 -1
- package/dist/as-filter-input.cjs +1 -1
- package/dist/as-filter-input.mjs +1 -1
- package/dist/{as-filters-DuCk8nkk.cjs → as-filters-Bhte22La.cjs} +3 -3
- package/dist/{as-filters-DJEQj7_p.mjs → as-filters-DogNVlqr.mjs} +3 -3
- package/dist/as-filters.cjs +1 -1
- package/dist/as-filters.mjs +1 -1
- package/dist/{as-preset-dialog-CCIacZ2C.mjs → as-preset-dialog-BwHV6Y77.mjs} +3 -3
- package/dist/{as-preset-dialog-jZeyXJeJ.cjs → as-preset-dialog-D2a6nxEX.cjs} +3 -3
- package/dist/as-preset-dialog.cjs +1 -1
- package/dist/as-preset-dialog.mjs +1 -1
- package/dist/{as-preset-picker-DGSqQl9A.mjs → as-preset-picker-B0JnyAPA.mjs} +2 -2
- package/dist/{as-preset-picker-4xXU1KQz.cjs → as-preset-picker-DbkmapBx.cjs} +2 -2
- package/dist/as-preset-picker.cjs +1 -1
- package/dist/as-preset-picker.mjs +1 -1
- package/dist/{as-row-actions-pukI1JT7.mjs → as-row-actions-BkIsJVBm.mjs} +24 -11
- package/dist/{as-row-actions-B_OHWIAt.cjs → as-row-actions-CRg8LHGk.cjs} +24 -11
- 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-DUSDuoR2.d.mts → as-row-actions.vue-VpJsBAJ4.d.mts} +8 -0
- package/dist/{as-row-actions.vue-Bvcc2tUN.d.cts → as-row-actions.vue-dn_DKcMm.d.cts} +8 -0
- package/dist/{as-table-D5_bQ0p5.mjs → as-table-BEvsX87E.mjs} +6 -6
- package/dist/{as-table-actions-DKYK_mTO.mjs → as-table-actions-B5upF1bQ.mjs} +14 -9
- package/dist/{as-table-actions-qb0gQz2D.cjs → as-table-actions-B6sKd4sl.cjs} +14 -9
- 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-CckRRsL6.d.cts → as-table-actions.vue-CoxhpIlJ.d.mts} +2 -2
- package/dist/{as-table-actions.vue-DsqauvXR.d.mts → as-table-actions.vue-Kic8m28V.d.cts} +2 -2
- package/dist/{as-table-base-B0arhJI8.mjs → as-table-base-BxKBdIdS.mjs} +3 -3
- package/dist/{as-table-base-Dfw012G5.cjs → as-table-base-DLuhKz69.cjs} +3 -3
- package/dist/{as-table-cell-value-D1JkTQt0.cjs → as-table-cell-value-BAi5yadc.cjs} +2 -2
- package/dist/{as-table-cell-value-CPcFxSOj.mjs → as-table-cell-value-BVcfhhCb.mjs} +2 -2
- package/dist/as-table-cell-value.cjs +1 -1
- package/dist/as-table-cell-value.mjs +1 -1
- package/dist/{as-table-header-cell-Bb4ddLmQ.cjs → as-table-header-cell-Bv6q5iKA.cjs} +2 -2
- package/dist/{as-table-header-cell-q-c_QklI.mjs → as-table-header-cell-Xd3cvnII.mjs} +2 -2
- 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-BjVOEFqz.d.mts → as-table-header-cell.vue-AS6u4e6v.d.cts} +2 -2
- package/dist/{as-table-header-cell.vue-qS1Xfc-U.d.cts → as-table-header-cell.vue-zKOmlzhT.d.mts} +2 -2
- package/dist/{as-table-root-Bpsrp0Vz.mjs → as-table-root-C1A6JkwL.mjs} +111 -9
- package/dist/{as-table-root-CUDO9ybm.cjs → as-table-root-DlYjnZax.cjs} +111 -9
- 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-szvjZsCn.d.cts → as-table-root.vue-CWk9YgpG.d.mts} +205 -32
- package/dist/{as-table-root.vue-BPU92_Ns.d.mts → as-table-root.vue-D94eypcL.d.cts} +206 -33
- package/dist/{as-table-status-BgDexT2x.cjs → as-table-status-B2HPerJT.cjs} +5 -5
- package/dist/{as-table-status-B9jlzPPV.mjs → as-table-status-QzlBdSiR.mjs} +5 -5
- package/dist/{as-table-BejpMVid.cjs → as-table-vJbZyZVx.cjs} +6 -6
- 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-4WhMA8AM.d.mts → as-table.vue-BB1vaNL6.d.cts} +4 -4
- package/dist/{as-table.vue-_urybtQj.d.cts → as-table.vue-BUDFTCpo.d.mts} +4 -4
- package/dist/{as-window-table-S1XWpDHQ.mjs → as-window-table-BH0tDDnr.mjs} +11 -7
- package/dist/{as-window-table-CXq6UuUx.cjs → as-window-table-Bl_q72WL.cjs} +11 -7
- 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-h1bdyMv7.d.cts → as-window-table.vue-Be2IA0Eb.d.cts} +3 -3
- package/dist/{as-window-table.vue-CWsJvOkL.d.mts → as-window-table.vue-CLqFM2ff.d.mts} +3 -3
- package/dist/index.cjs +193 -29
- package/dist/index.d.cts +9 -9
- package/dist/index.d.mts +9 -9
- package/dist/index.mjs +186 -31
- package/dist/{types-BZ0HssRY.d.cts → types--ex8BJIO.d.cts} +138 -2
- package/dist/{types-CXz-4dPz.d.mts → types-CBGaTR2Z.d.mts} +138 -2
- package/dist/{use-table-Bk-jSxOM.mjs → use-table-BFhbfWgY.mjs} +23 -13
- package/dist/{use-table-component-KuzZxAP8.mjs → use-table-component-CRmLHdqi.mjs} +1 -1
- package/dist/{use-table-component-DlLganVc.cjs → use-table-component-DS5NJPzs.cjs} +1 -1
- package/dist/{use-table-nav-bridge-CVUmTjDr.cjs → use-table-nav-bridge-DS14D_rG.cjs} +1 -1
- package/dist/{use-table-nav-bridge-B9SSEajW.mjs → use-table-nav-bridge-DzJN5v9a.mjs} +1 -1
- package/dist/{use-table-CdFFqaEx.cjs → use-table-nvuZdgUd.cjs} +28 -12
- package/dist/{use-table-state-DLJbW753.mjs → use-table-state-mBXx11aH.mjs} +208 -52
- package/dist/{use-table-state-D6dHOFrA.cjs → use-table-state-mhm-YWnu.cjs} +212 -56
- package/package.json +4 -4
- /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-column-menu-kTIQfLTi.mjs → as-column-menu-BMTS3DO2.mjs} +0 -0
- /package/dist/{as-column-menu-fZVbJ9lU.cjs → as-column-menu-D_8NxujZ.cjs} +0 -0
- /package/dist/{as-filter-input-BM23TNeh.mjs → as-filter-input-C8KmOus8.mjs} +0 -0
- /package/dist/{as-filter-input-DJu2k9gO.cjs → as-filter-input-DUqpkTkg.cjs} +0 -0
- /package/dist/{error-message-CglODWl4.cjs → error-message-CfKpn_5w.cjs} +0 -0
- /package/dist/{error-message-hPSAu8Ug.mjs → error-message-gNEXnnbb.mjs} +0 -0
- /package/dist/{format-cell-D1Ziv96Q.mjs → format-cell-Bx7wNc4X.mjs} +0 -0
- /package/dist/{format-cell-vCNTh4WZ.cjs → format-cell-DaxV6WIJ.cjs} +0 -0
- /package/dist/{get-cell-value-4rHKP-TG.cjs → get-cell-value-CJT4fk4y.cjs} +0 -0
- /package/dist/{get-cell-value-C8LLc_Rr.mjs → get-cell-value-Cb3X8nUn.mjs} +0 -0
- /package/dist/{use-cell-locale-MQXoONh5.mjs → use-cell-locale-CxQOQsns.mjs} +0 -0
- /package/dist/{use-cell-locale-BGBRQB7s.cjs → use-cell-locale-caG2Fzpc.cjs} +0 -0
- /package/dist/{use-has-emit-listener-hhOH8CBI.cjs → use-has-emit-listener-BaGFZDyM.cjs} +0 -0
- /package/dist/{use-has-emit-listener-BTMDIv2e.mjs → use-has-emit-listener-DrBbsLHQ.mjs} +0 -0
- /package/dist/{use-seed-on-open-Dg9I89fU.cjs → use-seed-on-open-9TSm1Vbv.cjs} +0 -0
- /package/dist/{use-seed-on-open-DO3A1kIb.mjs → use-seed-on-open-DSh4XFyp.mjs} +0 -0
- /package/dist/{use-table-column-handlers-ehreEzcx.cjs → use-table-column-handlers-BMrP0WY2.cjs} +0 -0
- /package/dist/{use-table-column-handlers-CpiiIniD.mjs → use-table-column-handlers-Bx3JERqs.mjs} +0 -0
- /package/dist/{use-table-selection-Cmiu1h4S.cjs → use-table-selection-DtCV3rhu.cjs} +0 -0
- /package/dist/{use-table-selection-C84z4OZy.mjs → use-table-selection-ULbKT2xW.mjs} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as useTableContext, c as ASPECT_ICONS, d as readPresetLabel, l as ASPECT_LABELS, u as ownerNameOf } from "./use-table-state-
|
|
2
|
-
import { t as useSeedOnOpen } from "./use-seed-on-open-
|
|
3
|
-
import { t as errorMessage } from "./error-message-
|
|
1
|
+
import { a as useTableContext, c as ASPECT_ICONS, d as readPresetLabel, l as ASPECT_LABELS, u as ownerNameOf } from "./use-table-state-mBXx11aH.mjs";
|
|
2
|
+
import { t as useSeedOnOpen } from "./use-seed-on-open-DSh4XFyp.mjs";
|
|
3
|
+
import { t as errorMessage } from "./error-message-gNEXnnbb.mjs";
|
|
4
4
|
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";
|
|
5
5
|
import { isSystemPresetId, setsEqual } from "@atscript/ui-table";
|
|
6
6
|
import { DialogClose, DialogContent, DialogDescription, DialogOverlay, DialogPortal, DialogRoot, DialogTitle } from "reka-ui";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_use_table_state = require("./use-table-state-
|
|
2
|
-
const require_use_seed_on_open = require("./use-seed-on-open-
|
|
3
|
-
const require_error_message = require("./error-message-
|
|
1
|
+
const require_use_table_state = require("./use-table-state-mhm-YWnu.cjs");
|
|
2
|
+
const require_use_seed_on_open = require("./use-seed-on-open-9TSm1Vbv.cjs");
|
|
3
|
+
const require_error_message = require("./error-message-CfKpn_5w.cjs");
|
|
4
4
|
let vue = require("vue");
|
|
5
5
|
let _atscript_ui_table = require("@atscript/ui-table");
|
|
6
6
|
let reka_ui = require("reka-ui");
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_preset_dialog = require("./as-preset-dialog-
|
|
1
|
+
const require_as_preset_dialog = require("./as-preset-dialog-D2a6nxEX.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-BwHV6Y77.mjs";
|
|
2
2
|
export { as_preset_dialog_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as useTableContext, c as ASPECT_ICONS, d as readPresetLabel, l as ASPECT_LABELS, u as ownerNameOf } from "./use-table-state-
|
|
2
|
-
import { t as errorMessage } from "./error-message-
|
|
1
|
+
import { a as useTableContext, c as ASPECT_ICONS, d as readPresetLabel, l as ASPECT_LABELS, u as ownerNameOf } from "./use-table-state-mBXx11aH.mjs";
|
|
2
|
+
import { t as errorMessage } from "./error-message-gNEXnnbb.mjs";
|
|
3
3
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, h, nextTick, normalizeClass, onScopeDispose, openBlock, ref, renderList, shallowRef, toDisplayString, unref, vModelCheckbox, vModelText, watch, withCtx, withDirectives, withKeys, withModifiers } from "vue";
|
|
4
4
|
import { isSystemPresetId } from "@atscript/ui-table";
|
|
5
5
|
import { DropdownMenuContent, DropdownMenuItem, DropdownMenuPortal, DropdownMenuRoot, DropdownMenuSeparator, DropdownMenuTrigger } from "reka-ui";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_use_table_state = require("./use-table-state-
|
|
2
|
-
const require_error_message = require("./error-message-
|
|
1
|
+
const require_use_table_state = require("./use-table-state-mhm-YWnu.cjs");
|
|
2
|
+
const require_error_message = require("./error-message-CfKpn_5w.cjs");
|
|
3
3
|
let vue = require("vue");
|
|
4
4
|
let _atscript_ui_table = require("@atscript/ui-table");
|
|
5
5
|
let reka_ui = require("reka-ui");
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_preset_picker = require("./as-preset-picker-
|
|
1
|
+
const require_as_preset_picker = require("./as-preset-picker-DbkmapBx.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-B0JnyAPA.mjs";
|
|
2
2
|
export { as_preset_picker_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as triggerAction, _ as ariaLabelFor, a as useTableContext, b as extractIdentifier, h as applyRowGate, m as
|
|
2
|
-
import { t as as_action_menu_content_default } from "./as-action-menu-content-
|
|
1
|
+
import { T as triggerAction, _ as ariaLabelFor, a as useTableContext, b as extractIdentifier, h as applyRowGate, m as rowActionHref, x as intentClass, y as createNavigateGestures } from "./use-table-state-mBXx11aH.mjs";
|
|
2
|
+
import { t as as_action_menu_content_default } from "./as-action-menu-content-rim8hAO9.mjs";
|
|
3
3
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeClass, openBlock, resolveDynamicComponent, toDisplayString, unref, withCtx, withModifiers } from "vue";
|
|
4
4
|
import { DropdownMenuPortal, DropdownMenuRoot, DropdownMenuTrigger } from "reka-ui";
|
|
5
5
|
//#region src/components/defaults/as-row-actions.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -31,6 +31,10 @@ var as_row_actions_default = /* @__PURE__ */ defineComponent({
|
|
|
31
31
|
pk: {
|
|
32
32
|
type: Object,
|
|
33
33
|
required: false
|
|
34
|
+
},
|
|
35
|
+
actions: {
|
|
36
|
+
type: Array,
|
|
37
|
+
required: false
|
|
34
38
|
}
|
|
35
39
|
},
|
|
36
40
|
setup(__props) {
|
|
@@ -45,19 +49,27 @@ var as_row_actions_default = /* @__PURE__ */ defineComponent({
|
|
|
45
49
|
const id = identifierOf();
|
|
46
50
|
return {
|
|
47
51
|
identifiers: id === void 0 ? [] : [id],
|
|
48
|
-
preferredId: state.tableDef.value?.preferredId ?? []
|
|
52
|
+
preferredId: state.tableDef.value?.preferredId ?? [],
|
|
53
|
+
row: props.row
|
|
49
54
|
};
|
|
50
55
|
}
|
|
51
56
|
const view = computed(() => {
|
|
52
|
-
const
|
|
53
|
-
const
|
|
57
|
+
const explicit = props.actions;
|
|
58
|
+
const sourceDefault = explicit ? void 0 : state.actions.default.row;
|
|
59
|
+
const policy = state.rowActionsPolicy.value;
|
|
60
|
+
const filtered = explicit ? {
|
|
61
|
+
default: void 0,
|
|
62
|
+
others: explicit,
|
|
63
|
+
rows: []
|
|
64
|
+
} : policy.apply(applyRowGate({
|
|
54
65
|
default: sourceDefault,
|
|
55
66
|
others: state.actions.others.row,
|
|
56
67
|
rows: state.actions.rows
|
|
57
|
-
}, props.row);
|
|
58
|
-
const
|
|
59
|
-
const
|
|
60
|
-
const
|
|
68
|
+
}, props.row));
|
|
69
|
+
const extra = explicit ? [] : policy.extra(props.row);
|
|
70
|
+
const total = (filtered.default ? 1 : 0) + filtered.others.length + filtered.rows.length + extra.length;
|
|
71
|
+
const single = total === 1 ? filtered.default ?? filtered.others[0] ?? filtered.rows[0] ?? extra[0] : void 0;
|
|
72
|
+
const singleHref = single ? hrefFor(single) : void 0;
|
|
61
73
|
return {
|
|
62
74
|
total,
|
|
63
75
|
default: filtered.default,
|
|
@@ -70,7 +82,8 @@ var as_row_actions_default = /* @__PURE__ */ defineComponent({
|
|
|
70
82
|
menuGroups: [
|
|
71
83
|
filtered.default ? [filtered.default] : [],
|
|
72
84
|
filtered.others,
|
|
73
|
-
filtered.rows
|
|
85
|
+
filtered.rows,
|
|
86
|
+
extra
|
|
74
87
|
]
|
|
75
88
|
};
|
|
76
89
|
});
|
|
@@ -78,7 +91,7 @@ var as_row_actions_default = /* @__PURE__ */ defineComponent({
|
|
|
78
91
|
await triggerAction(state, action, promptCtx(), event);
|
|
79
92
|
}
|
|
80
93
|
function hrefFor(action) {
|
|
81
|
-
return
|
|
94
|
+
return rowActionHref(state, action, identifierOf(), props.row);
|
|
82
95
|
}
|
|
83
96
|
const { onTriggerClick, onTriggerAuxClick, openNewTab } = createNavigateGestures(state, promptCtx, hrefFor);
|
|
84
97
|
return (_ctx, _cache) => {
|
|
@@ -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-mhm-YWnu.cjs");
|
|
2
|
+
const require_as_action_menu_content = require("./as-action-menu-content-C_D_Fepo.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
|
|
@@ -31,6 +31,10 @@ var as_row_actions_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
31
31
|
pk: {
|
|
32
32
|
type: Object,
|
|
33
33
|
required: false
|
|
34
|
+
},
|
|
35
|
+
actions: {
|
|
36
|
+
type: Array,
|
|
37
|
+
required: false
|
|
34
38
|
}
|
|
35
39
|
},
|
|
36
40
|
setup(__props) {
|
|
@@ -45,19 +49,27 @@ var as_row_actions_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
45
49
|
const id = identifierOf();
|
|
46
50
|
return {
|
|
47
51
|
identifiers: id === void 0 ? [] : [id],
|
|
48
|
-
preferredId: state.tableDef.value?.preferredId ?? []
|
|
52
|
+
preferredId: state.tableDef.value?.preferredId ?? [],
|
|
53
|
+
row: props.row
|
|
49
54
|
};
|
|
50
55
|
}
|
|
51
56
|
const view = (0, vue.computed)(() => {
|
|
52
|
-
const
|
|
53
|
-
const
|
|
57
|
+
const explicit = props.actions;
|
|
58
|
+
const sourceDefault = explicit ? void 0 : state.actions.default.row;
|
|
59
|
+
const policy = state.rowActionsPolicy.value;
|
|
60
|
+
const filtered = explicit ? {
|
|
61
|
+
default: void 0,
|
|
62
|
+
others: explicit,
|
|
63
|
+
rows: []
|
|
64
|
+
} : policy.apply(require_use_table_state.applyRowGate({
|
|
54
65
|
default: sourceDefault,
|
|
55
66
|
others: state.actions.others.row,
|
|
56
67
|
rows: state.actions.rows
|
|
57
|
-
}, props.row);
|
|
58
|
-
const
|
|
59
|
-
const
|
|
60
|
-
const
|
|
68
|
+
}, props.row));
|
|
69
|
+
const extra = explicit ? [] : policy.extra(props.row);
|
|
70
|
+
const total = (filtered.default ? 1 : 0) + filtered.others.length + filtered.rows.length + extra.length;
|
|
71
|
+
const single = total === 1 ? filtered.default ?? filtered.others[0] ?? filtered.rows[0] ?? extra[0] : void 0;
|
|
72
|
+
const singleHref = single ? hrefFor(single) : void 0;
|
|
61
73
|
return {
|
|
62
74
|
total,
|
|
63
75
|
default: filtered.default,
|
|
@@ -70,7 +82,8 @@ var as_row_actions_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
70
82
|
menuGroups: [
|
|
71
83
|
filtered.default ? [filtered.default] : [],
|
|
72
84
|
filtered.others,
|
|
73
|
-
filtered.rows
|
|
85
|
+
filtered.rows,
|
|
86
|
+
extra
|
|
74
87
|
]
|
|
75
88
|
};
|
|
76
89
|
});
|
|
@@ -78,7 +91,7 @@ var as_row_actions_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
78
91
|
await require_use_table_state.triggerAction(state, action, promptCtx(), event);
|
|
79
92
|
}
|
|
80
93
|
function hrefFor(action) {
|
|
81
|
-
return require_use_table_state.
|
|
94
|
+
return require_use_table_state.rowActionHref(state, action, identifierOf(), props.row);
|
|
82
95
|
}
|
|
83
96
|
const { onTriggerClick, onTriggerAuxClick, openNewTab } = require_use_table_state.createNavigateGestures(state, promptCtx, hrefFor);
|
|
84
97
|
return (_ctx, _cache) => {
|
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-CRg8LHGk.cjs");
|
|
2
2
|
module.exports = require_as_row_actions.as_row_actions_default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-row-actions.vue-
|
|
1
|
+
import { t as _default } from "./as-row-actions.vue-dn_DKcMm.cjs";
|
|
2
2
|
export = _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-row-actions.vue-
|
|
1
|
+
import { t as _default } from "./as-row-actions.vue-VpJsBAJ4.mjs";
|
|
2
2
|
export { _default as default };
|
package/dist/as-row-actions.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_row_actions_default } from "./as-row-actions-
|
|
1
|
+
import { t as as_row_actions_default } from "./as-row-actions-BkIsJVBm.mjs";
|
|
2
2
|
export { as_row_actions_default as default };
|
|
@@ -1,9 +1,17 @@
|
|
|
1
|
+
import { S as TVueTableActionInfo } from "./types-CBGaTR2Z.mjs";
|
|
1
2
|
import * as vue from "vue";
|
|
2
3
|
|
|
3
4
|
//#region src/components/defaults/as-row-actions.vue.d.ts
|
|
4
5
|
type __VLS_Props = {
|
|
5
6
|
row?: Record<string, unknown>;
|
|
6
7
|
pk?: Record<string, unknown>;
|
|
8
|
+
/**
|
|
9
|
+
* Render exactly these actions, bypassing the server's action set AND the
|
|
10
|
+
* root's `:row-actions` policy. For a standalone `<AsRowActions>` that must
|
|
11
|
+
* show a hand-picked list; omit it inside the table so the shared policy
|
|
12
|
+
* applies. Since 0.1.134.
|
|
13
|
+
*/
|
|
14
|
+
actions?: TVueTableActionInfo[];
|
|
7
15
|
};
|
|
8
16
|
declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
9
17
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,9 +1,17 @@
|
|
|
1
|
+
import { S as TVueTableActionInfo } from "./types--ex8BJIO.cjs";
|
|
1
2
|
import * as vue from "vue";
|
|
2
3
|
|
|
3
4
|
//#region src/components/defaults/as-row-actions.vue.d.ts
|
|
4
5
|
type __VLS_Props = {
|
|
5
6
|
row?: Record<string, unknown>;
|
|
6
7
|
pk?: Record<string, unknown>;
|
|
8
|
+
/**
|
|
9
|
+
* Render exactly these actions, bypassing the server's action set AND the
|
|
10
|
+
* root's `:row-actions` policy. For a standalone `<AsRowActions>` that must
|
|
11
|
+
* show a hand-picked list; omit it inside the table so the shared policy
|
|
12
|
+
* applies. Since 0.1.134.
|
|
13
|
+
*/
|
|
14
|
+
actions?: TVueTableActionInfo[];
|
|
7
15
|
};
|
|
8
16
|
declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
9
17
|
declare const _default: typeof __VLS_export;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { D as ROW_ACTIONS_TYPE, E as ROW_ACTIONS_PATH, a as useTableContext, i as useRegisterMainActionListener } from "./use-table-state-
|
|
2
|
-
import { t as useSelectModeReset } from "./use-table-selection-
|
|
3
|
-
import { t as useHasEmitListener } from "./use-has-emit-listener-
|
|
4
|
-
import { t as useTableColumnHandlers } from "./use-table-column-handlers-
|
|
5
|
-
import { t as as_table_base_default } from "./as-table-base-
|
|
1
|
+
import { D as ROW_ACTIONS_TYPE, E as ROW_ACTIONS_PATH, a as useTableContext, i as useRegisterMainActionListener } from "./use-table-state-mBXx11aH.mjs";
|
|
2
|
+
import { t as useSelectModeReset } from "./use-table-selection-ULbKT2xW.mjs";
|
|
3
|
+
import { t as useHasEmitListener } from "./use-has-emit-listener-DrBbsLHQ.mjs";
|
|
4
|
+
import { t as useTableColumnHandlers } from "./use-table-column-handlers-Bx3JERqs.mjs";
|
|
5
|
+
import { t as as_table_base_default } from "./as-table-base-BxKBdIdS.mjs";
|
|
6
6
|
import { computed, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, guardReactiveProps, normalizeProps, openBlock, renderList, renderSlot, unref, watch, withCtx } from "vue";
|
|
7
7
|
//#region src/components/as-table.vue?vue&type=script&setup=true&lang.ts
|
|
8
8
|
const _hoisted_1 = { class: "as-table-outer-wrap" };
|
|
@@ -113,7 +113,7 @@ var as_table_default = /* @__PURE__ */ defineComponent({
|
|
|
113
113
|
}, (on) => {
|
|
114
114
|
state.includeActions.value = on;
|
|
115
115
|
}, { immediate: true });
|
|
116
|
-
const effectiveRows = computed(() => props.rows ?? state.results.value);
|
|
116
|
+
const effectiveRows = computed(() => state.applyLocalSort(props.rows ?? state.results.value));
|
|
117
117
|
const actionsCol = computed(() => {
|
|
118
118
|
const acts = state.actions.row;
|
|
119
119
|
return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as triggerAction, _ as ariaLabelFor, a as useTableContext, g as applyRowsGate, h as applyRowGate, m as
|
|
2
|
-
import { t as as_action_menu_content_default } from "./as-action-menu-content-
|
|
1
|
+
import { T as triggerAction, _ as ariaLabelFor, a as useTableContext, g as applyRowsGate, h as applyRowGate, m as rowActionHref, v as collectIdentifiers, x as intentClass, y as createNavigateGestures } from "./use-table-state-mBXx11aH.mjs";
|
|
2
|
+
import { t as as_action_menu_content_default } from "./as-action-menu-content-rim8hAO9.mjs";
|
|
3
3
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, normalizeClass, openBlock, ref, renderSlot, resolveDynamicComponent, toDisplayString, unref, watch, withCtx } from "vue";
|
|
4
4
|
import { DropdownMenuPortal, DropdownMenuRoot, DropdownMenuTrigger } from "reka-ui";
|
|
5
5
|
//#region src/components/as-table-actions.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -46,7 +46,7 @@ var as_table_actions_default = /* @__PURE__ */ defineComponent({
|
|
|
46
46
|
const preferredId = computed(() => state.tableDef.value?.preferredId ?? []);
|
|
47
47
|
const resolved = computed(() => {
|
|
48
48
|
const r = resolveBuckets();
|
|
49
|
-
const defaultHref = r.defaultAction ?
|
|
49
|
+
const defaultHref = r.defaultAction ? rowActionHref(state, r.defaultAction, r.ids[0], r.row) : void 0;
|
|
50
50
|
return {
|
|
51
51
|
...r,
|
|
52
52
|
defaultHref,
|
|
@@ -67,17 +67,21 @@ var as_table_actions_default = /* @__PURE__ */ defineComponent({
|
|
|
67
67
|
});
|
|
68
68
|
if (effectiveLevel === "row") {
|
|
69
69
|
const source = explicit === "auto" && selectedCount === 1 ? state.selectedRows.value[0] : state.getActiveRow();
|
|
70
|
-
const
|
|
70
|
+
const policy = state.rowActionsPolicy.value;
|
|
71
|
+
const filtered = policy.apply(applyRowGate({
|
|
71
72
|
default: state.actions.default.row,
|
|
72
73
|
others: state.actions.others.row,
|
|
73
74
|
rows: explicit === "auto" && selectedCount === 1 ? state.actions.rows : []
|
|
74
|
-
}, source);
|
|
75
|
+
}, source));
|
|
76
|
+
const row = source;
|
|
77
|
+
const extra = policy.extra(row);
|
|
75
78
|
return collapseSingle({
|
|
76
79
|
defaultAction: filtered.default,
|
|
77
|
-
otherActions: filtered.others,
|
|
80
|
+
otherActions: extra.length > 0 ? [...filtered.others, ...extra] : filtered.others,
|
|
78
81
|
trailingRowActions: filtered.rows,
|
|
79
82
|
level: "row",
|
|
80
|
-
ids: collectIdentifiers(state, [source], pid)
|
|
83
|
+
ids: collectIdentifiers(state, [source], pid),
|
|
84
|
+
row
|
|
81
85
|
});
|
|
82
86
|
}
|
|
83
87
|
const filtered = applyRowsGate({
|
|
@@ -97,7 +101,8 @@ var as_table_actions_default = /* @__PURE__ */ defineComponent({
|
|
|
97
101
|
function promptCtx() {
|
|
98
102
|
return {
|
|
99
103
|
identifiers: resolved.value.ids,
|
|
100
|
-
preferredId: preferredId.value
|
|
104
|
+
preferredId: preferredId.value,
|
|
105
|
+
row: resolved.value.row
|
|
101
106
|
};
|
|
102
107
|
}
|
|
103
108
|
async function invokeWith(action, event) {
|
|
@@ -105,7 +110,7 @@ var as_table_actions_default = /* @__PURE__ */ defineComponent({
|
|
|
105
110
|
}
|
|
106
111
|
/** Resolved navigate href for `action` against the toolbar's current ids. */
|
|
107
112
|
function hrefFor(action) {
|
|
108
|
-
return
|
|
113
|
+
return rowActionHref(state, action, resolved.value.ids[0], resolved.value.row);
|
|
109
114
|
}
|
|
110
115
|
const { onTriggerClick, onTriggerAuxClick, openNewTab } = createNavigateGestures(state, promptCtx, hrefFor);
|
|
111
116
|
const running = computed(() => state.actions.invoking.value);
|
|
@@ -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-mhm-YWnu.cjs");
|
|
2
|
+
const require_as_action_menu_content = require("./as-action-menu-content-C_D_Fepo.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
|
|
@@ -46,7 +46,7 @@ var as_table_actions_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
46
46
|
const preferredId = (0, vue.computed)(() => state.tableDef.value?.preferredId ?? []);
|
|
47
47
|
const resolved = (0, vue.computed)(() => {
|
|
48
48
|
const r = resolveBuckets();
|
|
49
|
-
const defaultHref = r.defaultAction ? require_use_table_state.
|
|
49
|
+
const defaultHref = r.defaultAction ? require_use_table_state.rowActionHref(state, r.defaultAction, r.ids[0], r.row) : void 0;
|
|
50
50
|
return {
|
|
51
51
|
...r,
|
|
52
52
|
defaultHref,
|
|
@@ -67,17 +67,21 @@ var as_table_actions_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
67
67
|
});
|
|
68
68
|
if (effectiveLevel === "row") {
|
|
69
69
|
const source = explicit === "auto" && selectedCount === 1 ? state.selectedRows.value[0] : state.getActiveRow();
|
|
70
|
-
const
|
|
70
|
+
const policy = state.rowActionsPolicy.value;
|
|
71
|
+
const filtered = policy.apply(require_use_table_state.applyRowGate({
|
|
71
72
|
default: state.actions.default.row,
|
|
72
73
|
others: state.actions.others.row,
|
|
73
74
|
rows: explicit === "auto" && selectedCount === 1 ? state.actions.rows : []
|
|
74
|
-
}, source);
|
|
75
|
+
}, source));
|
|
76
|
+
const row = source;
|
|
77
|
+
const extra = policy.extra(row);
|
|
75
78
|
return collapseSingle({
|
|
76
79
|
defaultAction: filtered.default,
|
|
77
|
-
otherActions: filtered.others,
|
|
80
|
+
otherActions: extra.length > 0 ? [...filtered.others, ...extra] : filtered.others,
|
|
78
81
|
trailingRowActions: filtered.rows,
|
|
79
82
|
level: "row",
|
|
80
|
-
ids: require_use_table_state.collectIdentifiers(state, [source], pid)
|
|
83
|
+
ids: require_use_table_state.collectIdentifiers(state, [source], pid),
|
|
84
|
+
row
|
|
81
85
|
});
|
|
82
86
|
}
|
|
83
87
|
const filtered = require_use_table_state.applyRowsGate({
|
|
@@ -97,7 +101,8 @@ var as_table_actions_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
97
101
|
function promptCtx() {
|
|
98
102
|
return {
|
|
99
103
|
identifiers: resolved.value.ids,
|
|
100
|
-
preferredId: preferredId.value
|
|
104
|
+
preferredId: preferredId.value,
|
|
105
|
+
row: resolved.value.row
|
|
101
106
|
};
|
|
102
107
|
}
|
|
103
108
|
async function invokeWith(action, event) {
|
|
@@ -105,7 +110,7 @@ var as_table_actions_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
105
110
|
}
|
|
106
111
|
/** Resolved navigate href for `action` against the toolbar's current ids. */
|
|
107
112
|
function hrefFor(action) {
|
|
108
|
-
return require_use_table_state.
|
|
113
|
+
return require_use_table_state.rowActionHref(state, action, resolved.value.ids[0], resolved.value.row);
|
|
109
114
|
}
|
|
110
115
|
const { onTriggerClick, onTriggerAuxClick, openNewTab } = require_use_table_state.createNavigateGestures(state, promptCtx, hrefFor);
|
|
111
116
|
const running = (0, vue.computed)(() => state.actions.invoking.value);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_table_actions = require("./as-table-actions-
|
|
1
|
+
const require_as_table_actions = require("./as-table-actions-B6sKd4sl.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-Kic8m28V.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-CoxhpIlJ.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-B5upF1bQ.mjs";
|
|
2
2
|
export { as_table_actions_default as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { S as TVueTableActionInfo } from "./types-CBGaTR2Z.mjs";
|
|
2
2
|
import * as vue from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/as-table-actions.vue.d.ts
|
|
@@ -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" | "table" | "row";
|
|
22
22
|
ids: Record<string, unknown>[];
|
|
23
23
|
invoke: typeof invokeWith;
|
|
24
24
|
}, __VLS_12: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { S as TVueTableActionInfo } from "./types--ex8BJIO.cjs";
|
|
2
2
|
import * as vue from "vue";
|
|
3
3
|
|
|
4
4
|
//#region src/components/as-table-actions.vue.d.ts
|
|
@@ -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" | "table" | "row";
|
|
22
22
|
ids: Record<string, unknown>[];
|
|
23
23
|
invoke: typeof invokeWith;
|
|
24
24
|
}, __VLS_12: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { o as useTableContextOptional, p as onSelectControlKeydown } from "./use-table-state-
|
|
2
|
-
import { t as getCellValue } from "./get-cell-value-
|
|
3
|
-
import { a as useCellComponents, n as as_table_header_default, o as useCellResolver, r as as_table_colgroup_default, t as as_table_status_default } from "./as-table-status-
|
|
1
|
+
import { o as useTableContextOptional, p as onSelectControlKeydown } from "./use-table-state-mBXx11aH.mjs";
|
|
2
|
+
import { t as getCellValue } from "./get-cell-value-Cb3X8nUn.mjs";
|
|
3
|
+
import { a as useCellComponents, n as as_table_header_default, o as useCellResolver, r as as_table_colgroup_default, t as as_table_status_default } from "./as-table-status-QzlBdSiR.mjs";
|
|
4
4
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createVNode, defineComponent, guardReactiveProps, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onMounted, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, unref, useSlots, watch, withCtx } from "vue";
|
|
5
5
|
import { DEFAULT_ROW_HEIGHT_PX, filledFilterCount } from "@atscript/ui-table";
|
|
6
6
|
import { useParentElement, useResizeObserver } from "@vueuse/core";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const require_use_table_state = require("./use-table-state-
|
|
2
|
-
const require_get_cell_value = require("./get-cell-value-
|
|
3
|
-
const require_as_table_status = require("./as-table-status-
|
|
1
|
+
const require_use_table_state = require("./use-table-state-mhm-YWnu.cjs");
|
|
2
|
+
const require_get_cell_value = require("./get-cell-value-CJT4fk4y.cjs");
|
|
3
|
+
const require_as_table_status = require("./as-table-status-B2HPerJT.cjs");
|
|
4
4
|
let vue = require("vue");
|
|
5
5
|
let _atscript_ui_table = require("@atscript/ui-table");
|
|
6
6
|
let _vueuse_core = require("@vueuse/core");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_get_cell_value = require("./get-cell-value-
|
|
2
|
-
const require_format_cell = require("./format-cell-
|
|
1
|
+
const require_get_cell_value = require("./get-cell-value-CJT4fk4y.cjs");
|
|
2
|
+
const require_format_cell = require("./format-cell-DaxV6WIJ.cjs");
|
|
3
3
|
let vue = require("vue");
|
|
4
4
|
//#endregion
|
|
5
5
|
//#region src/components/defaults/as-table-cell-value.vue
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as getCellValue } from "./get-cell-value-
|
|
2
|
-
import { t as formatCellValue } from "./format-cell-
|
|
1
|
+
import { t as getCellValue } from "./get-cell-value-Cb3X8nUn.mjs";
|
|
2
|
+
import { t as formatCellValue } from "./format-cell-Bx7wNc4X.mjs";
|
|
3
3
|
import { createElementBlock, defineComponent, normalizeClass, openBlock, toDisplayString, unref } from "vue";
|
|
4
4
|
//#endregion
|
|
5
5
|
//#region src/components/defaults/as-table-cell-value.vue
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_table_cell_value = require("./as-table-cell-value-
|
|
1
|
+
const require_as_table_cell_value = require("./as-table-cell-value-BAi5yadc.cjs");
|
|
2
2
|
module.exports = require_as_table_cell_value.as_table_cell_value_default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_table_cell_value_default } from "./as-table-cell-value-
|
|
1
|
+
import { t as as_table_cell_value_default } from "./as-table-cell-value-BVcfhhCb.mjs";
|
|
2
2
|
export { as_table_cell_value_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
const require_use_table_component = require("./use-table-component-
|
|
2
|
-
const require_as_column_menu = require("./as-column-menu-
|
|
1
|
+
const require_use_table_component = require("./use-table-component-DS5NJPzs.cjs");
|
|
2
|
+
const require_as_column_menu = require("./as-column-menu-D_8NxujZ.cjs");
|
|
3
3
|
let vue = require("vue");
|
|
4
4
|
let _atscript_ui_table = require("@atscript/ui-table");
|
|
5
5
|
//#region src/components/defaults/as-table-header-cell.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as useTableComponent } from "./use-table-component-
|
|
2
|
-
import { t as as_column_menu_default } from "./as-column-menu-
|
|
1
|
+
import { t as useTableComponent } from "./use-table-component-CRmLHdqi.mjs";
|
|
2
|
+
import { t as as_column_menu_default } from "./as-column-menu-BMTS3DO2.mjs";
|
|
3
3
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, defineComponent, normalizeClass, openBlock, resolveDynamicComponent, toDisplayString, unref, withCtx, withModifiers } from "vue";
|
|
4
4
|
import { isFilled } from "@atscript/ui-table";
|
|
5
5
|
//#region src/components/defaults/as-table-header-cell.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const require_as_table_header_cell = require("./as-table-header-cell-
|
|
1
|
+
const require_as_table_header_cell = require("./as-table-header-cell-Bv6q5iKA.cjs");
|
|
2
2
|
module.exports = require_as_table_header_cell.as_table_header_cell_default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-table-header-cell.vue-
|
|
1
|
+
import { t as _default } from "./as-table-header-cell.vue-AS6u4e6v.cjs";
|
|
2
2
|
export = _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as _default } from "./as-table-header-cell.vue-
|
|
1
|
+
import { t as _default } from "./as-table-header-cell.vue-zKOmlzhT.mjs";
|
|
2
2
|
export { _default as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as as_table_header_cell_default } from "./as-table-header-cell-
|
|
1
|
+
import { t as as_table_header_cell_default } from "./as-table-header-cell-Xd3cvnII.mjs";
|
|
2
2
|
export { as_table_header_cell_default as default };
|
package/dist/{as-table-header-cell.vue-BjVOEFqz.d.mts → as-table-header-cell.vue-AS6u4e6v.d.cts}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as ColumnMenuConfig } from "./types
|
|
2
|
-
import { ColumnDef } from "@atscript/ui";
|
|
1
|
+
import { n as ColumnMenuConfig } from "./types--ex8BJIO.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-table-header-cell.vue.d.ts
|
package/dist/{as-table-header-cell.vue-qS1Xfc-U.d.cts → as-table-header-cell.vue-zKOmlzhT.d.mts}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as ColumnMenuConfig } from "./types-
|
|
2
|
-
import * as vue from "vue";
|
|
1
|
+
import { n as ColumnMenuConfig } from "./types-CBGaTR2Z.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-table-header-cell.vue.d.ts
|