@autoafleveren/ui 1.8.2 → 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
@@ -7007,7 +7007,7 @@ const Ph = /* @__PURE__ */ dr(SC, [["render", xC]]), CC = {
7007
7007
  "right-0 origin-top-right": i.horizontalAlign === "right",
7008
7008
  "left-0 origin-top-left": i.horizontalAlign === "left",
7009
7009
  "bottom-full mb-2": i.openDirection === "up"
7010
- }, "absolute z-10 mt-4 w-48 rounded-lg bg-secondary p-2 drop-shadow-card focus:outline-hidden"]),
7010
+ }, "absolute z-10 mt-4 w-52 rounded-lg bg-secondary p-2 drop-shadow-card focus:outline-hidden"]),
7011
7011
  role: "menu",
7012
7012
  "aria-orientation": "vertical",
7013
7013
  "aria-labelledby": "menu-button",
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autoafleveren/ui",
3
- "version": "1.8.2",
3
+ "version": "1.8.4",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist/*",
@@ -143,12 +143,14 @@
143
143
 
144
144
  defineOptions({ inheritAttrs: false });
145
145
 
146
- actionBar.onResetSelection.value = (selection: Array<number | string>): void => {
147
- if (props?.modelValue !== undefined) {
148
- // @ts-expect-error 'tableSelection' is not assignable to type 'Ref<unknown[]>'
149
- tableSelection.value = selection;
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>
@@ -58,7 +58,7 @@
58
58
  'left-0 origin-top-left': horizontalAlign === 'left',
59
59
  'bottom-full mb-2': openDirection === 'up',
60
60
  }"
61
- class="absolute z-10 mt-4 w-48 rounded-lg bg-secondary p-2 drop-shadow-card focus:outline-hidden"
61
+ class="absolute z-10 mt-4 w-52 rounded-lg bg-secondary p-2 drop-shadow-card focus:outline-hidden"
62
62
  role="menu"
63
63
  aria-orientation="vertical"
64
64
  aria-labelledby="menu-button"