@caspeco/casper-ui-library 9.8.0 → 9.9.0

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.
@@ -1,2 +1,3 @@
1
1
  export declare function arrayMove<T>(array: T[], fromIndex: number, toIndex: number): T[];
2
+ export declare function getColumnLabel(header: unknown, columnId: string): string;
2
3
  //# sourceMappingURL=helper.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../../lib/components/table/helper.ts"],"names":[],"mappings":"AAAA,wBAAgB,SAAS,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,CAAC,EAAE,CAShF"}
1
+ {"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../../lib/components/table/helper.ts"],"names":[],"mappings":"AAAA,wBAAgB,SAAS,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,CAAC,EAAE,CAShF;AAED,wBAAgB,cAAc,CAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAExE"}
@@ -1,7 +1,11 @@
1
- function c(r, n, t) {
2
- const e = [...r], [o] = e.splice(n, 1);
3
- return o !== void 0 && e.splice(t, 0, o), e;
1
+ function i(n, t, r) {
2
+ const o = [...n], [e] = o.splice(t, 1);
3
+ return e !== void 0 && o.splice(r, 0, e), o;
4
+ }
5
+ function c(n, t) {
6
+ return typeof n == "string" || typeof n == "number" ? String(n) : t;
4
7
  }
5
8
  export {
6
- c as arrayMove
9
+ i as arrayMove,
10
+ c as getColumnLabel
7
11
  };
@@ -1 +1 @@
1
- {"version":3,"file":"table-toolbar-settings.d.ts","sourceRoot":"","sources":["../../../lib/components/table/table-toolbar-settings.tsx"],"names":[],"mappings":"AAaA,KAAK,yBAAyB,GAAG;IAChC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;CACjD,CAAC;AAiGF;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,uEApGkC,yBAAyB,6CAoGzB,CAAC"}
1
+ {"version":3,"file":"table-toolbar-settings.d.ts","sourceRoot":"","sources":["../../../lib/components/table/table-toolbar-settings.tsx"],"names":[],"mappings":"AAqBA,KAAK,yBAAyB,GAAG;IAChC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;CACjD,CAAC;AA6OF;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,uEAxNkC,yBAAyB,6CAwNzB,CAAC"}
@@ -1,86 +1,202 @@
1
- import { jsx as t, jsxs as o, Fragment as u } from "react/jsx-runtime";
2
- import { Flex as S, Portal as k, Box as T } from "@chakra-ui/react";
3
- import { memo as x, useCallback as h } from "react";
4
- import { useTableContext as I } from "./table-context.js";
5
- import { DEFAULT_PAGE_SIZE_OPTIONS as v } from "./table.constants.js";
6
- import { translations as B } from "./translations.js";
7
- import { Menu as M } from "../menu/menu.js";
8
- import { MenuButton as w } from "../menu/menu-button.js";
9
- import { SlidersIcon as y } from "../icon/icons/sliders-icon.js";
10
- import { MenuList as O } from "../menu/menu-list.js";
11
- import { Text as d } from "../text/text.js";
12
- import { MenuItem as i } from "../menu/menu-item.js";
13
- import { GripMoreIcon as V } from "../icon/icons/grip-more-icon.js";
14
- import { Checkbox as A } from "../checkbox/checkbox.js";
15
- import { MenuDivider as b } from "../menu/menu-divider.js";
16
- import { RadioGroup as F } from "../radio/radio-group.js";
17
- import { Radio as G } from "../radio/radio.js";
18
- import { Switch as P } from "../switch/switch.js";
19
- import { ThemeIconSizeVariable as j, ThemeSpaceVariable as a, ThemeColorVariable as g } from "../../theme/theme-types.js";
20
- const D = ({ pageSize: m, onPageSizeChange: s }) => {
21
- const r = I(), l = B[r.localeString], p = !!s && Number.isInteger(m), C = h(() => r.table.getAllColumns().length === Object.keys(r.breakingContentState).length && !Object.values(r.breakingContentState).includes(!1), [r.breakingContentState, r.table]), f = h(
1
+ import { jsx as t, jsxs as c, Fragment as h } from "react/jsx-runtime";
2
+ import { Flex as y, Portal as w, Box as I } from "@chakra-ui/react";
3
+ import { closestCenter as P } from "../../node_modules/@dnd-kit/collision/dist/index.js";
4
+ import { isSortableOperation as E, SortableKeyboardPlugin as L } from "../../node_modules/@dnd-kit/dom/sortable.js";
5
+ import { DragDropProvider as A } from "../../node_modules/@dnd-kit/react/index.js";
6
+ import { useSortable as G } from "../../node_modules/@dnd-kit/react/sortable.js";
7
+ import { memo as R, useState as F, useCallback as x } from "react";
8
+ import { flushSync as Y } from "react-dom";
9
+ import { getColumnLabel as O } from "./helper.js";
10
+ import { useTableContext as j } from "./table-context.js";
11
+ import { DEFAULT_PAGE_SIZE_OPTIONS as N } from "./table.constants.js";
12
+ import { translations as _ } from "./translations.js";
13
+ import { Menu as z } from "../menu/menu.js";
14
+ import { MenuButton as H } from "../menu/menu-button.js";
15
+ import { SlidersIcon as U } from "../icon/icons/sliders-icon.js";
16
+ import { MenuList as K } from "../menu/menu-list.js";
17
+ import { Text as C } from "../text/text.js";
18
+ import { MenuDivider as k } from "../menu/menu-divider.js";
19
+ import { MenuItem as b } from "../menu/menu-item.js";
20
+ import { Checkbox as D } from "../checkbox/checkbox.js";
21
+ import { RadioGroup as X } from "../radio/radio-group.js";
22
+ import { Radio as Z } from "../radio/radio.js";
23
+ import { Switch as q } from "../switch/switch.js";
24
+ import { GripMoreIcon as J } from "../icon/icons/grip-more-icon.js";
25
+ import { ThemeIconSizeVariable as B, ThemeSpaceVariable as u, ThemeColorVariable as f, ThemeShadowVariable as Q } from "../../theme/theme-types.js";
26
+ const W = (i, l, r, o) => {
27
+ if (!o || o.sourceId === i) return "none";
28
+ const s = r.findIndex((a) => a.id === o.sourceId), d = r.findIndex((a) => a.id === o.targetId);
29
+ return s < 0 || d < 0 || s === d ? "none" : s < d && l > s && l <= d ? "translateY(-100%)" : s > d && l >= d && l < s ? "translateY(100%)" : "none";
30
+ }, v = (i) => {
31
+ if (!E(i)) return null;
32
+ const { source: l, target: r } = i;
33
+ return l && r ? { source: l, target: r } : null;
34
+ }, $ = ({ pageSize: i, onPageSizeChange: l }) => {
35
+ const r = j(), o = _[r.localeString], s = !!l && Number.isInteger(i), [d, a] = F(null), g = r.table.getAllLeafColumns().filter((e) => e.getCanHide()), p = g.filter((e) => e.getIsVisible()), T = g.filter((e) => !e.getIsVisible()).sort((e, n) => {
36
+ const m = O(e.columnDef.header, e.id), S = O(n.columnDef.header, n.id);
37
+ return m.localeCompare(S, r.localeString, { sensitivity: "base" });
38
+ }), M = x(() => r.table.getAllColumns().length === Object.keys(r.breakingContentState).length && !Object.values(r.breakingContentState).includes(!1), [r.breakingContentState, r.table]), V = x(
22
39
  ({ checked: e }) => {
23
40
  const n = {};
24
- r.table.getAllColumns().forEach((c) => {
25
- n[c.id] = e;
41
+ r.table.getAllColumns().forEach((m) => {
42
+ n[m.id] = e;
26
43
  }), r.setBreakingContentState(n), r.onBreakingContentChange?.(n);
27
44
  },
28
45
  [r]
29
46
  );
30
- return /* @__PURE__ */ t(S, { children: /* @__PURE__ */ o(M, { closeOnSelect: !1, isLazy: !0, children: [
31
- /* @__PURE__ */ t(w, { "aria-label": l.presets, variant: "ghost", p: "unset", w: "40px", h: "40px", children: /* @__PURE__ */ t(y, { size: j.Medium }) }),
32
- /* @__PURE__ */ t(k, { children: /* @__PURE__ */ o(O, { children: [
47
+ return /* @__PURE__ */ t(y, { children: /* @__PURE__ */ c(z, { closeOnSelect: !1, isLazy: !0, children: [
48
+ /* @__PURE__ */ t(H, { "aria-label": o.presets, variant: "ghost", p: "unset", w: "40px", h: "40px", children: /* @__PURE__ */ t(U, { size: B.Medium }) }),
49
+ /* @__PURE__ */ t(w, { children: /* @__PURE__ */ c(K, { children: [
33
50
  /* @__PURE__ */ t(
34
- d,
51
+ C,
35
52
  {
36
- color: g.OnSurfaceSubdued,
37
- py: a.Small,
38
- px: a.Medium,
39
- children: l.showColumns
53
+ color: f.OnSurfaceSubdued,
54
+ py: u.Small,
55
+ px: u.Medium,
56
+ children: o.shownInTable
40
57
  }
41
58
  ),
42
- /* @__PURE__ */ t(T, { maxHeight: "320px", overflowY: "auto", children: r.table.getAllLeafColumns().filter((e) => e.getCanHide()).map((e) => /* @__PURE__ */ o(i, { itemType: "checkbox", leftIcon: V, value: e.id, children: [
43
- /* @__PURE__ */ t(u, { children: e.columnDef.header }),
59
+ /* @__PURE__ */ c(I, { maxHeight: "400px", overflowY: "auto", children: [
44
60
  /* @__PURE__ */ t(
45
61
  A,
46
62
  {
47
- isChecked: e.getIsVisible(),
48
- onCheckedChange: ({ checked: n }) => e.toggleVisibility(!!n)
63
+ onDragOver: (e) => {
64
+ const n = v(e.operation);
65
+ n && a({
66
+ sourceId: String(n.source.id),
67
+ targetId: String(n.target.id)
68
+ });
69
+ },
70
+ onDragEnd: (e) => {
71
+ const n = v(e.operation);
72
+ Y(() => {
73
+ a(null), n && r.handleDragEnd(String(n.source.id), String(n.target.id));
74
+ });
75
+ },
76
+ children: p.map((e, n) => /* @__PURE__ */ t(
77
+ re,
78
+ {
79
+ column: e,
80
+ index: n,
81
+ isDisabled: p.length === 1,
82
+ translateY: W(e.id, n, p, d)
83
+ },
84
+ e.id
85
+ ))
49
86
  }
50
- )
51
- ] }, e.id)) }),
52
- /* @__PURE__ */ t(b, {}),
53
- p && /* @__PURE__ */ o(u, { children: [
87
+ ),
88
+ T.length > 0 && /* @__PURE__ */ c(h, { children: [
89
+ /* @__PURE__ */ t(k, {}),
90
+ /* @__PURE__ */ t(
91
+ C,
92
+ {
93
+ color: f.OnSurfaceSubdued,
94
+ py: u.Small,
95
+ px: u.Medium,
96
+ children: o.hiddenInTable
97
+ }
98
+ ),
99
+ T.map((e) => /* @__PURE__ */ c(b, { itemType: "checkbox", value: e.id, children: [
100
+ /* @__PURE__ */ t(h, { children: e.columnDef.header }),
101
+ /* @__PURE__ */ t(
102
+ D,
103
+ {
104
+ isChecked: e.getIsVisible(),
105
+ onCheckedChange: ({ checked: n }) => {
106
+ if (e.toggleVisibility(!!n), n) {
107
+ const m = r.columnOrder.filter((S) => S !== e.id);
108
+ m.push(e.id), r.setColumnOrder(m);
109
+ }
110
+ }
111
+ }
112
+ )
113
+ ] }, e.id))
114
+ ] })
115
+ ] }),
116
+ /* @__PURE__ */ t(k, {}),
117
+ s && /* @__PURE__ */ c(h, { children: [
54
118
  /* @__PURE__ */ t(
55
- d,
119
+ C,
56
120
  {
57
- color: g.OnSurfaceSubdued,
58
- py: a.Small,
59
- px: a.Medium,
60
- children: l.rowsPerPage
121
+ color: f.OnSurfaceSubdued,
122
+ py: u.Small,
123
+ px: u.Medium,
124
+ children: o.rowsPerPage
61
125
  }
62
126
  ),
63
127
  /* @__PURE__ */ t(
64
- F,
128
+ X,
65
129
  {
66
130
  gap: "unset",
67
- value: String(m),
68
- onValueChange: (e) => s?.(Number(e.value)),
69
- children: v.map((e) => /* @__PURE__ */ o(i, { itemType: "radio", value: String(e), children: [
70
- l.numberOfRows.replace("{count}", String(e)),
71
- /* @__PURE__ */ t(G, { value: String(e) })
131
+ value: String(i),
132
+ onValueChange: (e) => l?.(Number(e.value)),
133
+ children: N.map((e) => /* @__PURE__ */ c(b, { itemType: "radio", value: String(e), children: [
134
+ o.numberOfRows.replace("{count}", String(e)),
135
+ /* @__PURE__ */ t(Z, { value: String(e) })
72
136
  ] }, e))
73
137
  }
74
138
  ),
75
- /* @__PURE__ */ t(b, {})
139
+ /* @__PURE__ */ t(k, {})
76
140
  ] }),
77
- /* @__PURE__ */ o(i, { itemType: "switch", value: "breakingContent", children: [
78
- l.breakingContent,
79
- /* @__PURE__ */ t(P, { onCheckedChange: f, isChecked: C() })
141
+ /* @__PURE__ */ c(b, { itemType: "switch", value: "breakingContent", children: [
142
+ o.breakingContent,
143
+ /* @__PURE__ */ t(q, { onCheckedChange: V, isChecked: M() })
80
144
  ] })
81
145
  ] }) })
82
146
  ] }) });
83
- }, re = x(D);
147
+ }, ee = [L], re = ({
148
+ column: i,
149
+ index: l,
150
+ isDisabled: r,
151
+ translateY: o
152
+ }) => {
153
+ const {
154
+ ref: s,
155
+ handleRef: d,
156
+ isDragging: a
157
+ } = G({
158
+ id: i.id,
159
+ index: l,
160
+ collisionDetector: P,
161
+ plugins: ee
162
+ });
163
+ return /* @__PURE__ */ t(
164
+ I,
165
+ {
166
+ ref: s,
167
+ role: "none",
168
+ opacity: a ? 0.95 : 1,
169
+ backgroundColor: f.Background,
170
+ transform: o,
171
+ transition: a ? void 0 : "transform 200ms ease",
172
+ boxShadow: a ? Q.Medium : void 0,
173
+ children: /* @__PURE__ */ c(b, { itemType: "checkbox", value: i.id, children: [
174
+ /* @__PURE__ */ c(y, { alignItems: "center", gap: u.XSmall, children: [
175
+ /* @__PURE__ */ t(
176
+ I,
177
+ {
178
+ ref: d,
179
+ cursor: a ? "grabbing" : "grab",
180
+ display: "inline-flex",
181
+ alignItems: "center",
182
+ flexShrink: 0,
183
+ children: /* @__PURE__ */ t(J, { size: B.Medium })
184
+ }
185
+ ),
186
+ /* @__PURE__ */ t(h, { children: i.columnDef.header })
187
+ ] }),
188
+ !a && /* @__PURE__ */ t(
189
+ D,
190
+ {
191
+ isDisabled: r,
192
+ isChecked: i.getIsVisible(),
193
+ onCheckedChange: ({ checked: g }) => i.toggleVisibility(!!g)
194
+ }
195
+ )
196
+ ] })
197
+ }
198
+ );
199
+ }, De = R($);
84
200
  export {
85
- re as TableToolbarSettings
201
+ De as TableToolbarSettings
86
202
  };
@@ -31,6 +31,8 @@ export declare const translations: {
31
31
  selectedWithTotal: string;
32
32
  action: string;
33
33
  deleteSelectedRows: string;
34
+ shownInTable: string;
35
+ hiddenInTable: string;
34
36
  };
35
37
  "en-US": {
36
38
  sortUp: string;
@@ -60,6 +62,8 @@ export declare const translations: {
60
62
  selectedWithTotal: string;
61
63
  action: string;
62
64
  deleteSelectedRows: string;
65
+ shownInTable: string;
66
+ hiddenInTable: string;
63
67
  };
64
68
  "en-GB": {
65
69
  sortUp: string;
@@ -89,6 +93,8 @@ export declare const translations: {
89
93
  selectedWithTotal: string;
90
94
  action: string;
91
95
  deleteSelectedRows: string;
96
+ shownInTable: string;
97
+ hiddenInTable: string;
92
98
  };
93
99
  "nb-NO": {
94
100
  sortUp: string;
@@ -118,6 +124,8 @@ export declare const translations: {
118
124
  selectedWithTotal: string;
119
125
  action: string;
120
126
  deleteSelectedRows: string;
127
+ shownInTable: string;
128
+ hiddenInTable: string;
121
129
  };
122
130
  "da-DK": {
123
131
  sortUp: string;
@@ -147,6 +155,8 @@ export declare const translations: {
147
155
  selectedWithTotal: string;
148
156
  action: string;
149
157
  deleteSelectedRows: string;
158
+ shownInTable: string;
159
+ hiddenInTable: string;
150
160
  };
151
161
  "fr-FR": {
152
162
  sortUp: string;
@@ -176,6 +186,8 @@ export declare const translations: {
176
186
  selectedWithTotal: string;
177
187
  action: string;
178
188
  deleteSelectedRows: string;
189
+ shownInTable: string;
190
+ hiddenInTable: string;
179
191
  };
180
192
  "nl-BE": {
181
193
  sortUp: string;
@@ -205,6 +217,8 @@ export declare const translations: {
205
217
  selectedWithTotal: string;
206
218
  action: string;
207
219
  deleteSelectedRows: string;
220
+ shownInTable: string;
221
+ hiddenInTable: string;
208
222
  };
209
223
  };
210
224
  //# sourceMappingURL=translations.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../lib/components/table/translations.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC;AAE1F,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAA;CAAE,UAE1F;AAgCD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoJxB,CAAC"}
1
+ {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../lib/components/table/translations.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC;AAE1F,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAA;CAAE,UAE1F;AAkCD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8JxB,CAAC"}
@@ -1,5 +1,5 @@
1
- function l(t, n) {
2
- return t.replace(/{(\w+)}/g, (r, o) => String(n[o] ?? ""));
1
+ function r(n, t) {
2
+ return n.replace(/{(\w+)}/g, (l, o) => String(t[o] ?? ""));
3
3
  }
4
4
  const e = {
5
5
  sortUp: "Sort up",
@@ -28,7 +28,9 @@ const e = {
28
28
  numberOfRows: "{count} rows",
29
29
  selectedWithTotal: "{count} of {total} selected",
30
30
  action: "Action",
31
- deleteSelectedRows: "Delete selected rows"
31
+ deleteSelectedRows: "Delete selected rows",
32
+ shownInTable: "Shown in table",
33
+ hiddenInTable: "Hidden in table"
32
34
  }, s = {
33
35
  "sv-SE": {
34
36
  sortUp: "Sortera stigande",
@@ -57,7 +59,9 @@ const e = {
57
59
  numberOfRows: "{count} rader",
58
60
  selectedWithTotal: "{count} av {total} valda",
59
61
  action: "Åtgärd",
60
- deleteSelectedRows: "Ta bort valda rader"
62
+ deleteSelectedRows: "Ta bort valda rader",
63
+ shownInTable: "Visas i tabellen",
64
+ hiddenInTable: "Dold i tabellen"
61
65
  },
62
66
  "en-US": e,
63
67
  "en-GB": e,
@@ -88,7 +92,9 @@ const e = {
88
92
  numberOfRows: "{count} rader",
89
93
  selectedWithTotal: "{count} av {total} valgt",
90
94
  action: "Handling",
91
- deleteSelectedRows: "Fjern valgte rader"
95
+ deleteSelectedRows: "Fjern valgte rader",
96
+ shownInTable: "Vises i tabellen",
97
+ hiddenInTable: "Dold i tabellen"
92
98
  },
93
99
  "da-DK": {
94
100
  sortUp: "Sorter stigende",
@@ -117,7 +123,9 @@ const e = {
117
123
  numberOfRows: "{count} rækker",
118
124
  selectedWithTotal: "{count} af {total} valgt",
119
125
  action: "Handling",
120
- deleteSelectedRows: "Fjern valgte rækker"
126
+ deleteSelectedRows: "Fjern valgte rækker",
127
+ shownInTable: "Vises i tabellen",
128
+ hiddenInTable: "Dold i tabellen"
121
129
  },
122
130
  "fr-FR": {
123
131
  sortUp: "Trier par ordre croissant",
@@ -146,7 +154,9 @@ const e = {
146
154
  numberOfRows: "{count} lignes",
147
155
  selectedWithTotal: "{count} sur {total} sélectionnés",
148
156
  action: "Action",
149
- deleteSelectedRows: "Supprimer les lignes sélectionnées"
157
+ deleteSelectedRows: "Supprimer les lignes sélectionnées",
158
+ shownInTable: "Affiché dans le tableau",
159
+ hiddenInTable: "Masqué dans le tableau"
150
160
  },
151
161
  "nl-BE": {
152
162
  sortUp: "Oplopend sorteren",
@@ -175,10 +185,12 @@ const e = {
175
185
  numberOfRows: "{count} rijen",
176
186
  selectedWithTotal: "{count} van {total} geselecteerd",
177
187
  action: "Actie",
178
- deleteSelectedRows: "Verwijder geselecteerde rijen"
188
+ deleteSelectedRows: "Verwijder geselecteerde rijen",
189
+ shownInTable: "Getoond in tabel",
190
+ hiddenInTable: "Verborgen in tabel"
179
191
  }
180
192
  };
181
193
  export {
182
- l as interpolate,
194
+ r as interpolate,
183
195
  s as translations
184
196
  };
@@ -1,5 +1,5 @@
1
- import { Plugin as he, DragDropManager as xr, resolveCustomizable as it, Sensor as ze, ActivationController as kr, CorePlugin as St, descriptor as Ar, Droppable as Dr, Draggable as Or, configurator as Ce, ActivationConstraint as wn } from "../abstract/index.js";
2
- import { getRoot as Ne, generateUniqueId as ct, isSafari as Cr, scheduler as je, Listeners as Sn, isElement as le, isHTMLElement as En, getFrameTransform as Xe, getEventCoordinates as ce, getDocuments as Pr, getDocument as Et, scrollIntoViewIfNeeded as Tr, DOMRectangle as V, canScroll as $r, detectScrollIntent as Ir, isKeyboardEvent as xt, isInteractiveElement as Mr, isTextInput as Rr, ScrollDirection as F, getScrollableAncestors as an, PositionObserver as Lr, isDocument as Wr, isShadowRoot as Fr, getComputedStyles as xn, parseTransform as zr, parseTranslate as kn, getFixedPositionOffset as An, Styles as Nr, supportsPopover as ln, showPopover as ae, getWindow as Dn, prefersReducedMotion as On, getElementFromPoint as jr, isPointerEvent as Xr, getFrameElement as cn, cloneElement as Kr, supportsStyle as dn, getFinalKeyframe as Ur, animateTransform as Yr, ProxiedElements as un } from "./utilities.js";
1
+ import { DragDropManager as xr, resolveCustomizable as it, Plugin as he, Sensor as ze, ActivationController as kr, CorePlugin as St, descriptor as Ar, Droppable as Dr, Draggable as Or, configurator as Ce, ActivationConstraint as wn } from "../abstract/index.js";
2
+ import { generateUniqueId as ct, isSafari as Cr, scheduler as Ne, Listeners as Sn, isElement as le, isHTMLElement as En, getFrameTransform as je, getEventCoordinates as ce, getDocuments as Pr, getDocument as Et, scrollIntoViewIfNeeded as Tr, DOMRectangle as V, getRoot as Xe, canScroll as $r, detectScrollIntent as Ir, isKeyboardEvent as xt, isInteractiveElement as Mr, isTextInput as Rr, ScrollDirection as F, getScrollableAncestors as an, PositionObserver as Lr, isDocument as Wr, isShadowRoot as Fr, getComputedStyles as xn, parseTransform as zr, parseTranslate as kn, getFixedPositionOffset as An, Styles as Nr, supportsPopover as ln, showPopover as ae, getWindow as Dn, prefersReducedMotion as On, getElementFromPoint as jr, isPointerEvent as Xr, getFrameElement as cn, cloneElement as Kr, supportsStyle as dn, getFinalKeyframe as Ur, animateTransform as Yr, ProxiedElements as un } from "./utilities.js";
3
3
  import { computed as hn, deepEqual as Br, effects as Vr, reactive as j, derived as st } from "../state/dist/index.js";
4
4
  import { Axes as Cn, Point as Hr, Rectangle as kt, exceedsDistance as dt } from "../geometry/dist/index.js";
5
5
  import { defaultCollisionDetection as qr } from "../collision/dist/index.js";
@@ -84,7 +84,7 @@ var di = ["dragover", "dragmove"], ui = class extends he {
84
84
  let u, l, h, v;
85
85
  const g = (y = v) => {
86
86
  !h || !y || h?.nodeValue !== y && (h.nodeValue = y);
87
- }, w = () => je.schedule(g), D = hi(
87
+ }, w = () => Ne.schedule(g), D = hi(
88
88
  w,
89
89
  o
90
90
  ), x = Object.entries(s).map(
@@ -134,7 +134,7 @@ var di = ["dragover", "dragmove"], ui = class extends he {
134
134
  );
135
135
  }
136
136
  }
137
- m.size > 0 && je.schedule(p);
137
+ m.size > 0 && Ne.schedule(p);
138
138
  }), this.destroy = () => {
139
139
  super.destroy(), u?.remove(), l?.remove(), x.forEach((y) => y());
140
140
  };
@@ -181,12 +181,12 @@ var Ue = /* @__PURE__ */ new Map(), Ln, Wn, Fn, zn, ht, Ee, N, Ct, de, Nn, jn, X
181
181
  get sourceRoot() {
182
182
  var t;
183
183
  const { source: n } = this.manager.dragOperation;
184
- return Ne((t = n?.element) != null ? t : null);
184
+ return Xe((t = n?.element) != null ? t : null);
185
185
  }
186
186
  get targetRoot() {
187
187
  var t;
188
188
  const { target: n } = this.manager.dragOperation;
189
- return Ne((t = n?.element) != null ? t : null);
189
+ return Xe((t = n?.element) != null ? t : null);
190
190
  }
191
191
  get roots() {
192
192
  const { status: t } = this.manager.dragOperation;
@@ -585,7 +585,7 @@ Fe = /* @__PURE__ */ new WeakSet();
585
585
  Bn = function(e) {
586
586
  const { overlay: t } = this;
587
587
  if (!t || !e) return;
588
- const n = Ne(t);
588
+ const n = Xe(t);
589
589
  if (n)
590
590
  return e.addRoot(n);
591
591
  };
@@ -600,7 +600,7 @@ Vn = function() {
600
600
  const { element: g } = h, w = h.pluginConfig(ue), D = (t = (e = w?.feedback) != null ? e : c?.feedback) != null ? t : "default", x = typeof D == "function" ? D(h, d) : D;
601
601
  if (!g || x === "none" || !v.initialized || v.initializing)
602
602
  return;
603
- const { initial: f } = o, m = (n = this.overlay) != null ? n : g, p = Xe(m), y = Xe(g), C = !Un(g, m), E = new V(g, {
603
+ const { initial: f } = o, m = (n = this.overlay) != null ? n : g, p = je(m), y = je(g), C = !Un(g, m), E = new V(g, {
604
604
  frameTransform: C ? y : null,
605
605
  ignoreTransforms: !C
606
606
  }), L = {
@@ -908,7 +908,7 @@ var Qn, mt, Oe, It, K, gt, qe = class extends (mt = St, Qn = [j], mt) {
908
908
  x: p,
909
909
  y
910
910
  }
911
- }), je.schedule(_(this, gt)), !0;
911
+ }), Ne.schedule(_(this, gt)), !0;
912
912
  }
913
913
  }
914
914
  }
@@ -922,7 +922,7 @@ var Qn, mt, Oe, It, K, gt, qe = class extends (mt = St, Qn = [j], mt) {
922
922
  if (!s)
923
923
  return null;
924
924
  const o = jr(
925
- Ne(a?.element),
925
+ Xe(a?.element),
926
926
  s.current
927
927
  );
928
928
  return o && (t = o), o ?? t;
@@ -1312,7 +1312,7 @@ var bt = Object.freeze({
1312
1312
  const { preventActivation: i = bt.preventActivation } = r ?? {};
1313
1313
  if (i?.(t, n))
1314
1314
  return;
1315
- const { target: s } = t, a = En(s) && s.draggable && s.getAttribute("draggable") === "true", o = Xe(n.element), { x: d, y: c } = ce(t);
1315
+ const { target: s } = t, a = En(s) && s.draggable && s.getAttribute("draggable") === "true", o = je(n.element), { x: d, y: c } = ce(t);
1316
1316
  this.initialCoordinates = {
1317
1317
  x: d * o.scaleX + o.x,
1318
1318
  y: c * o.scaleY + o.y
@@ -1360,8 +1360,8 @@ var bt = Object.freeze({
1360
1360
  return;
1361
1361
  }
1362
1362
  if (this.manager.dragOperation.status.dragging) {
1363
- const s = ce(t), a = Xe(n.element);
1364
- s.x = s.x * a.scaleX + a.x, s.y = s.y * a.scaleY + a.y, t.preventDefault(), t.stopPropagation(), this.latest.event = t, this.latest.coordinates = s, je.schedule(this.handleMove);
1363
+ const s = ce(t), a = je(n.element);
1364
+ s.x = s.x * a.scaleX + a.x, s.y = s.y * a.scaleY + a.y, t.preventDefault(), t.stopPropagation(), this.latest.event = t, this.latest.coordinates = s, Ne.schedule(this.handleMove);
1365
1365
  }
1366
1366
  }
1367
1367
  handlePointerUp(t) {
@@ -2,7 +2,7 @@ import { WeakStore as Pe, reactive as te } from "../state/dist/index.js";
2
2
  import { Plugin as he, resolveCustomizable as re } from "../abstract/index.js";
3
3
  import { closestCorners as Se, defaultCollisionDetection as De } from "../collision/dist/index.js";
4
4
  import { Droppable as Ee, Draggable as Ge, Scroller as ke, Feedback as Te } from "./index.js";
5
- import { isKeyboardEvent as ne, DOMRectangle as ie, getVisibleBoundingRectangle as je, scrollIntoViewIfNeeded as Ce, getComputedStyles as Me, computeTranslate as se, prefersReducedMotion as Ae, getWindow as Re, animateTransform as ze, ProxiedElements as We } from "./utilities.js";
5
+ import { isKeyboardEvent as ne, DOMRectangle as ie, getVisibleBoundingRectangle as je, scrollIntoViewIfNeeded as Ce, ProxiedElements as Me, getComputedStyles as Ae, computeTranslate as se, prefersReducedMotion as Re, getWindow as ze, animateTransform as We } from "./utilities.js";
6
6
  import { Rectangle as oe } from "../geometry/dist/index.js";
7
7
  import { effect as $e, batch as m, untracked as ae } from "../../@preact/signals-core/dist/signals-core.module.js";
8
8
  var Be = Object.create, be = Object.defineProperty, Le = Object.defineProperties, Ne = Object.getOwnPropertyDescriptor, Ve = Object.getOwnPropertyDescriptors, J = Object.getOwnPropertySymbols, ve = Object.prototype.hasOwnProperty, _e = Object.prototype.propertyIsEnumerable, qe = (e, t) => (t = Symbol[e]) ? t : /* @__PURE__ */ Symbol.for("Symbol." + e), N = (e) => {
@@ -32,20 +32,23 @@ var Be = Object.create, be = Object.defineProperty, Le = Object.defineProperties
32
32
  for (var n, s, _, b, h, g = t & 7, a = !1, c = !1, f = e.length + 1, v = xe[g + 5], y = e[f - 1] = [], w = e[f] || (e[f] = []), I = (o = o.prototype, Ne({ get [r]() {
33
33
  return $(this, p);
34
34
  }, set [r](d) {
35
- return G(this, p, d);
35
+ return k(this, p, d);
36
36
  } }, r)), P = i.length - 1; P >= 0; P--)
37
37
  b = He(g, r, _ = {}, e[3], w), b.static = a, b.private = c, h = b.access = { has: (d) => r in d }, h.get = (d) => d[r], h.set = (d, l) => d[r] = l, s = (0, i[P])({ get: I.get, set: I.set }, b), _._ = 1, s === void 0 ? W(s) && (I[v] = s) : typeof s != "object" || s === null ? N("Object expected") : (W(n = s.get) && (I.get = n), W(n = s.set) && (I.set = n), W(n = s.init) && y.unshift(n));
38
38
  return I && be(o, r, I), o;
39
- }, Ie = (e, t, r) => t.has(e) || N("Cannot " + r), $ = (e, t, r) => (Ie(e, t, "read from private field"), t.get(e)), z = (e, t, r) => t.has(e) ? N("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), G = (e, t, r, i) => (Ie(e, t, "write to private field"), t.set(e, r), r);
40
- function k(e) {
39
+ }, Ie = (e, t, r) => t.has(e) || N("Cannot " + r), $ = (e, t, r) => (Ie(e, t, "read from private field"), t.get(e)), z = (e, t, r) => t.has(e) ? N("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, r), k = (e, t, r, i) => (Ie(e, t, "write to private field"), t.set(e, r), r);
40
+ function D(e) {
41
41
  return e instanceof ee || e instanceof we;
42
42
  }
43
+ function ht(e) {
44
+ return D(e.source) && D(e.target);
45
+ }
43
46
  var F = 10, Qe = class extends he {
44
47
  constructor(e) {
45
48
  super(e);
46
49
  const t = $e(() => {
47
50
  const { dragOperation: i } = e;
48
- if (ne(i.activatorEvent) && k(i.source) && i.status.initialized) {
51
+ if (ne(i.activatorEvent) && D(i.source) && i.status.initialized) {
49
52
  const o = e.registry.plugins.get(ke);
50
53
  if (o)
51
54
  return o.disable(), () => o.enable();
@@ -57,7 +60,7 @@ var F = 10, Qe = class extends he {
57
60
  if (this.disabled || i.defaultPrevented || !i.nativeEvent)
58
61
  return;
59
62
  const { dragOperation: p } = o;
60
- if (!ne(i.nativeEvent) || !k(p.source) || !p.shape)
63
+ if (!ne(i.nativeEvent) || !D(p.source) || !p.shape)
61
64
  return;
62
65
  const { actions: n, collisionObserver: s, registry: _ } = o, { by: b } = i;
63
66
  if (!b)
@@ -66,7 +69,7 @@ var F = 10, Qe = class extends he {
66
69
  m(() => {
67
70
  for (const l of _.droppables) {
68
71
  const { id: u } = l;
69
- if (!l.accepts(g) || u === a?.id && k(l) || !l.element)
72
+ if (!l.accepts(g) || u === a?.id && D(l) || !l.element)
70
73
  continue;
71
74
  let x = l.shape;
72
75
  const O = new ie(l.element, {
@@ -86,13 +89,13 @@ var F = 10, Qe = class extends he {
86
89
  const { id: I } = w, { index: P, group: d } = g.sortable;
87
90
  n.setDropTarget(I).then(() => {
88
91
  const { source: l, target: u, shape: x } = p;
89
- if (!l || !k(l) || !x)
92
+ if (!l || !D(l) || !x)
90
93
  return;
91
94
  const {
92
95
  index: O,
93
96
  group: M,
94
- target: D
95
- } = l.sortable, S = P !== O || d !== M, A = S ? D : u?.element;
97
+ target: E
98
+ } = l.sortable, S = P !== O || d !== M, A = S ? E : u?.element;
96
99
  if (!A) return;
97
100
  Ce(A);
98
101
  const V = new ie(A);
@@ -267,17 +270,17 @@ var pe = "__default__", st = class extends he {
267
270
  if (this.disabled)
268
271
  return;
269
272
  const { dragOperation: p } = o, { source: n, target: s } = p;
270
- if (!k(n) || !k(s) || n.sortable === s.sortable)
273
+ if (!D(n) || !D(s) || n.sortable === s.sortable)
271
274
  return;
272
275
  const _ = t(), b = n.sortable.group === s.sortable.group, h = _.get(n.sortable.group), g = b ? h : _.get(s.sortable.group);
273
276
  !h || !g || queueMicrotask(() => {
274
277
  i.defaultPrevented || o.renderer.rendering.then(() => {
275
278
  var a, c, f;
276
279
  const v = t();
277
- for (const [D, S] of _.entries()) {
280
+ for (const [E, S] of _.entries()) {
278
281
  const A = Array.from(S).entries();
279
282
  for (const [V, R] of A)
280
- if (R.index !== V || R.group !== D || !((a = v.get(D)) != null && a.has(R)))
283
+ if (R.index !== V || R.group !== E || !((a = v.get(E)) != null && a.has(R)))
281
284
  return;
282
285
  }
283
286
  const y = n.sortable.element, w = s.sortable.element;
@@ -290,11 +293,11 @@ var pe = "__default__", st = class extends he {
290
293
  if (u === x) return;
291
294
  const O = x[l].indexOf(n.sortable), M = x[l].indexOf(s.sortable);
292
295
  o.collisionObserver.disable(), ge(y, O, w, M), m(() => {
293
- for (const [D, S] of x[d].entries())
294
- S.index = D;
296
+ for (const [E, S] of x[d].entries())
297
+ S.index = E;
295
298
  if (!b)
296
- for (const [D, S] of x[l].entries())
297
- S.group = s.sortable.group, S.index = D;
299
+ for (const [E, S] of x[l].entries())
300
+ S.group = s.sortable.group, S.index = E;
298
301
  }), o.actions.setDropTarget(n.id).then(() => o.collisionObserver.enable());
299
302
  });
300
303
  });
@@ -303,7 +306,7 @@ var pe = "__default__", st = class extends he {
303
306
  if (!i.canceled)
304
307
  return;
305
308
  const { dragOperation: p } = o, { source: n } = p;
306
- k(n) && (n.sortable.initialIndex === n.sortable.index && n.sortable.initialGroup === n.sortable.group || queueMicrotask(() => {
309
+ D(n) && (n.sortable.initialIndex === n.sortable.index && n.sortable.initialGroup === n.sortable.group || queueMicrotask(() => {
307
310
  const s = t(), _ = s.get(
308
311
  n.sortable.initialGroup
309
312
  );
@@ -349,11 +352,11 @@ var fe = [
349
352
  duration: 250,
350
353
  easing: "cubic-bezier(0.25, 1, 0.5, 1)",
351
354
  idle: !1
352
- }, H = new Pe(), Oe, me, E, X, B, L, Y, C;
355
+ }, H = new Pe(), Oe, me, G, X, B, L, Y, C;
353
356
  me = [te], Oe = [te];
354
357
  var Z = class {
355
358
  constructor(e, t) {
356
- z(this, X, q(E, 8, this)), q(E, 11, this), z(this, B), z(this, L), z(this, Y, q(E, 12, this)), q(E, 15, this), z(this, C), this.register = () => (m(() => {
359
+ z(this, X, q(G, 8, this)), q(G, 11, this), z(this, B), z(this, L), z(this, Y, q(G, 12, this)), q(G, 15, this), z(this, C), this.register = () => (m(() => {
357
360
  var a, c;
358
361
  (a = this.manager) == null || a.registry.register(this.droppable), (c = this.manager) == null || c.registry.register(this.draggable);
359
362
  }), () => this.unregister()), this.unregister = () => {
@@ -402,7 +405,7 @@ var Z = class {
402
405
  },
403
406
  () => {
404
407
  const { index: a, group: c, manager: f } = this, v = $(this, L), y = $(this, B);
405
- (a !== v || c !== y) && (G(this, L, a), G(this, B, c), this.animate());
408
+ (a !== v || c !== y) && (k(this, L, a), k(this, B, c), this.animate());
406
409
  },
407
410
  () => {
408
411
  var a, c;
@@ -416,7 +419,7 @@ var Z = class {
416
419
  }),
417
420
  t,
418
421
  this
419
- ), G(this, C, h.element), this.manager = t, this.index = p, G(this, L, p), this.group = o, G(this, B, o), this.type = s, this.transition = _;
422
+ ), k(this, C, h.element), this.manager = t, this.index = p, k(this, L, p), this.group = o, k(this, B, o), this.type = s, this.transition = _;
420
423
  }
421
424
  get initialIndex() {
422
425
  var e, t;
@@ -443,10 +446,10 @@ var Z = class {
443
446
  const n = {
444
447
  x: r.boundingRectangle.left - p.boundingRectangle.left,
445
448
  y: r.boundingRectangle.top - p.boundingRectangle.top
446
- }, { translate: s } = Me(o), _ = se(o, s, !1), b = se(o, s);
449
+ }, { translate: s } = Ae(o), _ = se(o, s, !1), b = se(o, s);
447
450
  if (n.x || n.y) {
448
- const h = Ae(Re(o)) ? de(le({}, t), { duration: 0 }) : t;
449
- ze({
451
+ const h = Re(ze(o)) ? de(le({}, t), { duration: 0 }) : t;
452
+ We({
450
453
  element: o,
451
454
  keyframes: {
452
455
  translate: [
@@ -473,14 +476,14 @@ var Z = class {
473
476
  set element(e) {
474
477
  m(() => {
475
478
  const t = $(this, C), r = this.droppable.element, i = this.draggable.element;
476
- (!r || r === t) && (this.droppable.element = e), (!i || i === t) && (this.draggable.element = e), G(this, C, e);
479
+ (!r || r === t) && (this.droppable.element = e), (!i || i === t) && (this.draggable.element = e), k(this, C, e);
477
480
  });
478
481
  }
479
482
  get element() {
480
483
  var e, t;
481
484
  const r = $(this, C);
482
485
  if (r)
483
- return (t = (e = We.get(r)) != null ? e : r) != null ? t : this.droppable.element;
486
+ return (t = (e = Me.get(r)) != null ? e : r) != null ? t : this.droppable.element;
484
487
  }
485
488
  set target(e) {
486
489
  this.droppable.element = e;
@@ -582,15 +585,15 @@ var Z = class {
582
585
  return this.droppable.accepts(e);
583
586
  }
584
587
  };
585
- E = Ke();
588
+ G = Ke();
586
589
  X = /* @__PURE__ */ new WeakMap();
587
590
  B = /* @__PURE__ */ new WeakMap();
588
591
  L = /* @__PURE__ */ new WeakMap();
589
592
  Y = /* @__PURE__ */ new WeakMap();
590
593
  C = /* @__PURE__ */ new WeakMap();
591
- ye(E, 4, "index", me, Z, X);
592
- ye(E, 4, "group", Oe, Z, Y);
593
- Je(E, Z);
594
+ ye(G, 4, "index", me, Z, X);
595
+ ye(G, 4, "group", Oe, Z, Y);
596
+ Je(G, Z);
594
597
  var we = class extends Ge {
595
598
  constructor(e, t, r) {
596
599
  super(e, t), this.sortable = r;
@@ -625,5 +628,6 @@ export {
625
628
  ee as SortableDroppable,
626
629
  Qe as SortableKeyboardPlugin,
627
630
  at as defaultSortableTransition,
628
- k as isSortable
631
+ D as isSortable,
632
+ ht as isSortableOperation
629
633
  };
@@ -1,7 +1,7 @@
1
1
  import { useCallback as d } from "react";
2
2
  import { deepEqual as p } from "../state/dist/index.js";
3
3
  import { defaultSortableTransition as x, Sortable as R } from "../dom/sortable.js";
4
- import { isSortable as rr } from "../dom/sortable.js";
4
+ import { isSortable as rr, isSortableOperation as er } from "../dom/sortable.js";
5
5
  import { useInstance as T } from "./index.js";
6
6
  import { useDeepSignal as V, useOnValueChange as i, useIsomorphicLayoutEffect as q, useImmediateEffect as L, useOnElementChange as f } from "./hooks.js";
7
7
  import { currentValue as m } from "./utilities.js";
@@ -24,10 +24,10 @@ function Y(o) {
24
24
  element: O,
25
25
  handle: h,
26
26
  index: c,
27
- group: y,
28
- disabled: D,
29
- modifiers: P,
30
- sensors: S,
27
+ group: S,
28
+ disabled: y,
29
+ modifiers: D,
30
+ sensors: P,
31
31
  target: w,
32
32
  type: C,
33
33
  plugins: E
@@ -43,9 +43,9 @@ function Y(o) {
43
43
  )), u = V(r, G);
44
44
  return i(b, () => r.id = b), q(() => {
45
45
  N(() => {
46
- r.group = y, r.index = c;
46
+ r.group = S, r.index = c;
47
47
  });
48
- }, [r, y, c]), i(C, () => r.type = C), i(
48
+ }, [r, S, c]), i(C, () => r.type = C), i(
49
49
  t,
50
50
  () => r.accept = t,
51
51
  void 0,
@@ -57,7 +57,7 @@ function Y(o) {
57
57
  (e = r.manager) != null && e.dragOperation.status.idle && l?.idle && r.refreshShape();
58
58
  },
59
59
  L
60
- ), f(h, (e) => r.handle = e), f(O, (e) => r.element = e), f(w, (e) => r.target = e), i(D, () => r.disabled = D === !0), i(S, () => r.sensors = S), i(
60
+ ), f(h, (e) => r.handle = e), f(O, (e) => r.element = e), f(w, (e) => r.target = e), i(y, () => r.disabled = y === !0), i(P, () => r.sensors = P), i(
61
61
  a,
62
62
  () => r.collisionDetector = a
63
63
  ), i(
@@ -69,8 +69,8 @@ function Y(o) {
69
69
  void 0,
70
70
  p
71
71
  ), i(
72
- P,
73
- () => r.modifiers = P,
72
+ D,
73
+ () => r.modifiers = D,
74
74
  void 0,
75
75
  p
76
76
  ), i(
@@ -124,5 +124,6 @@ function G(o, t, a) {
124
124
  }
125
125
  export {
126
126
  rr as isSortable,
127
+ er as isSortableOperation,
127
128
  Y as useSortable
128
129
  };
@@ -1,4 +1,4 @@
1
- import { computed as U, effect as le, untracked as x, batch as X, signal as fe } from "../../../@preact/signals-core/dist/signals-core.module.js";
1
+ import { effect as le, computed as U, untracked as x, batch as X, signal as fe } from "../../../@preact/signals-core/dist/signals-core.module.js";
2
2
  import { Signal as Ie } from "../../../@preact/signals-core/dist/signals-core.module.js";
3
3
  var _e = Object.create, G = Object.defineProperty, he = Object.defineProperties, pe = Object.getOwnPropertyDescriptor, ve = Object.getOwnPropertyDescriptors, Y = Object.getOwnPropertySymbols, de = Object.prototype.hasOwnProperty, ge = Object.prototype.propertyIsEnumerable, Oe = (e, t) => (t = Symbol[e]) ? t : /* @__PURE__ */ Symbol.for("Symbol." + e), O = (e) => {
4
4
  throw TypeError(e);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caspeco/casper-ui-library",
3
- "version": "9.8.0",
3
+ "version": "9.9.0",
4
4
  "prettier": "@caspeco/prettier-config",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -46,7 +46,8 @@
46
46
  "@types/react": "^18.3.12",
47
47
  "@types/react-dom": "^18.3.1",
48
48
  "@vitejs/plugin-react-swc": "^4.3.0",
49
- "@vitest/browser-playwright": "^4.1.5",
49
+ "@vitest/browser-playwright": "^4.1.8",
50
+ "playwright": "1.60.0",
50
51
  "@vitest/ui": "^4.1.5",
51
52
  "eslint": "^9.39.2",
52
53
  "eslint-plugin-react-hooks": "^7.1.1",