asma-ui-core 3.76.0 → 3.76.1

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.
@@ -15,12 +15,12 @@ import { compact as R } from "../../../../../helpers/arrays.js";
15
15
  import { jsx as o, jsxs as f } from "react/jsx-runtime";
16
16
  import { DndContext as V, PointerSensor as E, closestCenter as M, useSensor as P, useSensors as w } from "@dnd-kit/core";
17
17
  import { restrictToParentElement as W, restrictToVerticalAxis as z } from "@dnd-kit/modifiers";
18
- import { SortableContext as j, arrayMove as U, useSortable as B, verticalListSortingStrategy as Y } from "@dnd-kit/sortable";
18
+ import { SortableContext as j, arrayMove as B, useSortable as U, verticalListSortingStrategy as Y } from "@dnd-kit/sortable";
19
19
  import { CSS as $ } from "@dnd-kit/utilities";
20
- function q({ id: n, disabled: p, children: u }) {
21
- const { attributes: c, listeners: h, setNodeRef: b, transform: g, transition: l } = B({
20
+ function q({ id: n, disabled: u, children: p }) {
21
+ const { attributes: c, listeners: h, setNodeRef: b, transform: g, transition: l } = U({
22
22
  id: n,
23
- disabled: p
23
+ disabled: u
24
24
  });
25
25
  return /* @__PURE__ */ o("div", {
26
26
  ref: b,
@@ -29,20 +29,20 @@ function q({ id: n, disabled: p, children: u }) {
29
29
  transition: l
30
30
  },
31
31
  className: d["drag-item"],
32
- children: u({
32
+ children: p({
33
33
  attributes: c,
34
34
  listeners: h
35
35
  })
36
36
  });
37
37
  }
38
- function fe({ headerData: n, locale: p }) {
39
- const { anchorEl: u, open: c, handleClose: h, handleOpen: b } = L(), g = n.table.getAllLeafColumns().some((e) => e.getCanHide() && !e.getIsVisible() && !S.includes(e.id)), l = n.table.getAllLeafColumns(), y = (e) => {
38
+ function fe({ headerData: n, locale: u }) {
39
+ const { anchorEl: p, open: c, handleClose: h, handleOpen: b } = L(), g = n.table.getAllLeafColumns().some((e) => e.getCanHide() && !e.getIsVisible() && !S.includes(e.id)), l = n.table.getAllLeafColumns(), y = (e) => {
40
40
  const { active: r, over: t } = e;
41
41
  !r || !t || r.id === t.id || l.find((i) => i.id === t.id)?.columnDef.fixedLeft || l.find((i) => i.id === t.id)?.columnDef.fixedRight || n.table.setColumnOrder((i) => {
42
42
  const a = R(i ?? []).length ? i : n.table.getAllLeafColumns().map((C) => C.id);
43
- return U(a, a.indexOf(r.id), a.indexOf(t.id));
43
+ return B(a, a.indexOf(r.id), a.indexOf(t.id));
44
44
  });
45
- }, N = w(P(E, { activationConstraint: { distance: 8 } })), s = I(p), x = l.filter((e) => !S.includes(e.id) && !!e.columnDef.header);
45
+ }, N = w(P(E, { activationConstraint: { distance: 8 } })), s = I(u), x = l.filter((e) => !S.includes(e.id) && !!e.columnDef.header);
46
46
  return /* @__PURE__ */ f("div", {
47
47
  className: m["actions-header-wrapper"],
48
48
  children: [/* @__PURE__ */ f("button", {
@@ -54,7 +54,7 @@ function fe({ headerData: n, locale: p }) {
54
54
  onClick: b,
55
55
  children: [/* @__PURE__ */ o(k, { className: m["pin-icon"] }), g && /* @__PURE__ */ o("div", { className: m["pin-indicator"] })]
56
56
  }), /* @__PURE__ */ f(D, {
57
- anchorEl: u,
57
+ anchorEl: p,
58
58
  anchorOrigin: {
59
59
  horizontal: "left",
60
60
  vertical: "bottom"
@@ -135,7 +135,7 @@ function fe({ headerData: n, locale: p }) {
135
135
  variant: "text",
136
136
  className: "h-10",
137
137
  onClick: () => {
138
- n.table.resetColumnOrder(), v.info(s.column_order_reset);
138
+ n.table.resetColumnOrder(), v.info(s.column_order_reset, { closeButton: !0 });
139
139
  },
140
140
  children: s.reset_order
141
141
  })
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "3.76.0",
6
+ "version": "3.76.1",
7
7
  "type": "module",
8
8
  "sideEffects": [
9
9
  "**/*.css",