@autoafleveren/ui 1.8.3 → 1.8.4
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/ui.js
CHANGED
|
@@ -22338,9 +22338,9 @@ const $D = { class: "relative z-50 w-full rounded-2xl bg-white px-4 py-3 shadow-
|
|
|
22338
22338
|
function y(C, x, A) {
|
|
22339
22339
|
r.onContextMenu?.(C, x, A) !== !1 && s.open(C, x, { confirmed: A });
|
|
22340
22340
|
}
|
|
22341
|
-
return t({ dataTableInstance: f }), i.onResetSelection.value = (C) => {
|
|
22341
|
+
return t({ dataTableInstance: f }), r.actionBarSelection && (i.onResetSelection.value = (C) => {
|
|
22342
22342
|
r?.modelValue !== void 0 && (d.value = C);
|
|
22343
|
-
}, (C, x) => (E(), $("div", {
|
|
22343
|
+
}), (C, x) => (E(), $("div", {
|
|
22344
22344
|
class: oe([{ "app-table-without-selection": r?.modelValue === void 0 }, "app-data-table-wrapper"])
|
|
22345
22345
|
}, [
|
|
22346
22346
|
Ee(w(pb), ot({
|
package/package.json
CHANGED
|
@@ -143,12 +143,14 @@
|
|
|
143
143
|
|
|
144
144
|
defineOptions({ inheritAttrs: false });
|
|
145
145
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
146
|
+
if (props.actionBarSelection) {
|
|
147
|
+
actionBar.onResetSelection.value = (selection: Array<number | string>): void => {
|
|
148
|
+
if (props?.modelValue !== undefined) {
|
|
149
|
+
// @ts-expect-error 'tableSelection' is not assignable to type 'Ref<unknown[]>'
|
|
150
|
+
tableSelection.value = selection;
|
|
151
|
+
}
|
|
152
|
+
};
|
|
153
|
+
}
|
|
152
154
|
</script>
|
|
153
155
|
|
|
154
156
|
<template>
|