@smwb/ui-solid 0.10.0 → 0.11.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.
Files changed (35) hide show
  1. package/README.md +16 -0
  2. package/dist/assets/styles/less/components/table/table.entry.css +1 -1
  3. package/dist/assets/styles/less/components/treeView/treeView.entry.css +1 -1
  4. package/dist/components/dataDisplay/table/tableHeadCell.js +32 -23
  5. package/dist/components/dataDisplay/table/tableHeadCell.js.map +1 -1
  6. package/dist/components/layout/floatingWindow/floatingWindow.js +186 -173
  7. package/dist/components/layout/floatingWindow/floatingWindow.js.map +1 -1
  8. package/dist/connects/rt/index.d.ts +2 -0
  9. package/dist/connects/rt/table/index.d.ts +2 -0
  10. package/dist/connects/rt/table/table.d.ts +48 -0
  11. package/dist/headless/components/dataDisplay/table/tableHeadCell.js +32 -23
  12. package/dist/headless/components/dataDisplay/table/tableHeadCell.js.map +1 -1
  13. package/dist/headless/components/layout/floatingWindow/floatingWindow.js +186 -173
  14. package/dist/headless/components/layout/floatingWindow/floatingWindow.js.map +1 -1
  15. package/dist/headless/source/components/dataDisplay/table/tableHeadCell.jsx +7 -4
  16. package/dist/headless/source/components/dataDisplay/table/tableHeadCell.jsx.map +1 -1
  17. package/dist/headless/source/components/layout/floatingWindow/floatingWindow.jsx +20 -5
  18. package/dist/headless/source/components/layout/floatingWindow/floatingWindow.jsx.map +1 -1
  19. package/dist/headless/source/connects/rt/index.js +5 -0
  20. package/dist/headless/source/connects/rt/index.js.map +7 -0
  21. package/dist/headless/source/connects/rt/table/index.js +6 -0
  22. package/dist/headless/source/connects/rt/table/index.js.map +7 -0
  23. package/dist/headless/source/connects/rt/table/table.jsx +183 -0
  24. package/dist/headless/source/connects/rt/table/table.jsx.map +1 -0
  25. package/dist/source/components/dataDisplay/table/tableHeadCell.jsx +7 -4
  26. package/dist/source/components/dataDisplay/table/tableHeadCell.jsx.map +1 -1
  27. package/dist/source/components/layout/floatingWindow/floatingWindow.jsx +20 -5
  28. package/dist/source/components/layout/floatingWindow/floatingWindow.jsx.map +1 -1
  29. package/dist/source/connects/rt/index.js +5 -0
  30. package/dist/source/connects/rt/index.js.map +7 -0
  31. package/dist/source/connects/rt/table/index.js +6 -0
  32. package/dist/source/connects/rt/table/index.js.map +7 -0
  33. package/dist/source/connects/rt/table/table.jsx +183 -0
  34. package/dist/source/connects/rt/table/table.jsx.map +1 -0
  35. package/package.json +18 -5
@@ -1,13 +1,13 @@
1
- import { isServer as C, createComponent as d, Portal as ee, use as te, spread as I, mergeProps as W, insert as c, setAttribute as x, effect as $, memo as ne, template as b, delegateEvents as ie } from "solid-js/web";
2
- import { mergeProps as oe, splitProps as re, createMemo as ae, createEffect as K, onCleanup as T, Show as y, For as le } from "solid-js";
3
- import V from "clsx";
4
- import { createCssTransition as se } from "../../../primitives/createCssTransition.js";
5
- import { createControllableState as A } from "../../../primitives/createControllableState.js";
6
- import { createId as de } from "../../../primitives/createId.js";
7
- import { mergeRefs as ce } from "../../../primitives/mergeRefs.js";
8
- import { Icon as M } from "../../base/icon/icon.js";
9
- var he = /* @__PURE__ */ b("<span class=smwb-floating-window__title>"), we = /* @__PURE__ */ b("<button type=button class=smwb-floating-window__action data-testid=floating-window-collapse>"), pe = /* @__PURE__ */ b("<button type=button class=smwb-floating-window__action data-testid=floating-window-close>"), ue = /* @__PURE__ */ b("<div class=smwb-floating-window__body data-testid=floating-window-body>"), me = /* @__PURE__ */ b("<div><div class=smwb-floating-window__header data-testid=floating-window-header><span class=smwb-floating-window__grip data-testid=floating-window-move role=button tabindex=0></span><div class=smwb-floating-window__actions data-no-drag>"), ge = /* @__PURE__ */ b("<div>");
10
- const fe = {
1
+ import { isServer as $, createComponent as d, Portal as ie, use as oe, spread as K, mergeProps as T, insert as c, setAttribute as x, effect as M, memo as ae, template as _, delegateEvents as re } from "solid-js/web";
2
+ import { mergeProps as le, splitProps as se, createSignal as de, createMemo as ce, createEffect as A, onCleanup as V, Show as y, For as he } from "solid-js";
3
+ import O from "clsx";
4
+ import { createCssTransition as we } from "../../../primitives/createCssTransition.js";
5
+ import { createControllableState as E } from "../../../primitives/createControllableState.js";
6
+ import { createId as pe } from "../../../primitives/createId.js";
7
+ import { mergeRefs as ue } from "../../../primitives/mergeRefs.js";
8
+ import { Icon as P } from "../../base/icon/icon.js";
9
+ var me = /* @__PURE__ */ _("<span class=smwb-floating-window__title>"), ge = /* @__PURE__ */ _("<button type=button class=smwb-floating-window__action data-testid=floating-window-collapse>"), fe = /* @__PURE__ */ _("<button type=button class=smwb-floating-window__action data-testid=floating-window-close>"), xe = /* @__PURE__ */ _("<div class=smwb-floating-window__body data-testid=floating-window-body>"), ye = /* @__PURE__ */ _("<div><div class=smwb-floating-window__header data-testid=floating-window-header><span class=smwb-floating-window__grip data-testid=floating-window-move role=button tabindex=0></span><div class=smwb-floating-window__actions data-no-drag>"), be = /* @__PURE__ */ _("<div>");
10
+ const _e = {
11
11
  n: {
12
12
  dx: 0,
13
13
  dy: 1,
@@ -56,15 +56,15 @@ const fe = {
56
56
  dw: -1,
57
57
  dh: 1
58
58
  }
59
- }, xe = ["n", "s", "e", "w", "ne", "nw", "se", "sw"], v = () => typeof window > "u" ? {
59
+ }, ve = ["n", "s", "e", "w", "ne", "nw", "se", "sw"], b = () => typeof window > "u" ? {
60
60
  width: 0,
61
61
  height: 0
62
62
  } : {
63
63
  width: window.innerWidth,
64
64
  height: window.innerHeight
65
65
  };
66
- function Me(O) {
67
- const X = oe({
66
+ function Re(X) {
67
+ const Y = le({
68
68
  minWidth: 200,
69
69
  minHeight: 120,
70
70
  keepVisible: 56,
@@ -88,10 +88,10 @@ function Me(O) {
88
88
  closeAriaLabel: "Close window",
89
89
  collapseAriaLabel: "Collapse window",
90
90
  expandAriaLabel: "Expand window"
91
- }, O), [n, Y] = re(X, ["open", "title", "headerActions", "position", "defaultPosition", "onPositionChange", "onMoveEnd", "size", "defaultSize", "onResize", "onResizeEnd", "minWidth", "minHeight", "maxWidth", "maxHeight", "keepVisible", "moveStep", "resizeStep", "zIndex", "onActivate", "collapsed", "defaultCollapsed", "onCollapsedChange", "collapsible", "movable", "resizable", "closeOnEsc", "onClose", "moveHandleAriaLabel", "resizeHandleAriaLabel", "closeAriaLabel", "collapseAriaLabel", "expandAriaLabel", "class", "style", "children", "ref"]);
91
+ }, X), [t, U] = se(Y, ["open", "title", "headerActions", "position", "defaultPosition", "onPositionChange", "onMoveEnd", "size", "defaultSize", "onResize", "onResizeEnd", "minWidth", "minHeight", "maxWidth", "maxHeight", "keepVisible", "moveStep", "resizeStep", "zIndex", "onActivate", "collapsed", "defaultCollapsed", "onCollapsedChange", "collapsible", "movable", "resizable", "closeOnEsc", "onClose", "moveHandleAriaLabel", "resizeHandleAriaLabel", "closeAriaLabel", "collapseAriaLabel", "expandAriaLabel", "class", "style", "children", "ref"]);
92
92
  let f;
93
- const E = de(void 0, "smwb-floating-window-title"), P = se({
94
- in: () => n.open,
93
+ const H = pe(void 0, "smwb-floating-window-title"), R = we({
94
+ in: () => t.open,
95
95
  timeout: {
96
96
  enter: 120,
97
97
  exit: 120
@@ -100,199 +100,212 @@ function Me(O) {
100
100
  enterDone: "smwb-floating-window_entered"
101
101
  },
102
102
  appear: !0
103
- }), [_, U] = A({
104
- value: () => n.position,
105
- defaultValue: n.defaultPosition,
106
- onChange: (e) => n.onPositionChange?.(e)
107
- }), [z, F] = A({
108
- value: () => n.size,
109
- defaultValue: n.defaultSize,
110
- onChange: (e) => n.onResize?.(e)
111
- }), [m, Z] = A({
112
- value: () => n.collapsed,
113
- defaultValue: n.defaultCollapsed,
114
- onChange: (e) => n.onCollapsedChange?.(e)
115
- }), H = (e, t) => {
116
- const r = n.maxWidth ?? t.width, a = n.maxHeight ?? t.height, o = Math.max(n.minWidth, Math.min(r, e.width)), i = Math.max(n.minHeight, Math.min(a, e.height)), l = Math.min(n.keepVisible, o), u = Math.max(l - o, Math.min(t.width - l, e.x)), g = Math.max(0, Math.min(Math.max(0, t.height - l), e.y));
103
+ }), [v, F] = E({
104
+ value: () => t.position,
105
+ defaultValue: t.defaultPosition,
106
+ onChange: (e) => t.onPositionChange?.(e)
107
+ }), [z, Z] = E({
108
+ value: () => t.size,
109
+ defaultValue: t.defaultSize,
110
+ onChange: (e) => t.onResize?.(e)
111
+ }), [m, j] = E({
112
+ value: () => t.collapsed,
113
+ defaultValue: t.defaultCollapsed,
114
+ onChange: (e) => t.onCollapsedChange?.(e)
115
+ }), C = (e, n) => {
116
+ const i = t.maxWidth ?? n.width, r = t.maxHeight ?? n.height, a = Math.max(t.minWidth, Math.min(i, e.width)), o = Math.max(t.minHeight, Math.min(r, e.height)), l = Math.min(t.keepVisible, a), u = Math.max(l - a, Math.min(n.width - l, e.x)), g = Math.max(0, Math.min(Math.max(0, n.height - l), e.y));
117
117
  return {
118
118
  x: u,
119
119
  y: g,
120
- width: o,
121
- height: i
120
+ width: a,
121
+ height: o
122
122
  };
123
- }, s = ae(() => H({
124
- x: _().x,
125
- y: _().y,
126
- width: z().width,
127
- height: z().height
128
- }, v())), h = (e) => {
129
- const t = H(e, v()), r = _(), a = z();
130
- (t.x !== r.x || t.y !== r.y) && U({
131
- x: t.x,
132
- y: t.y
133
- }), (t.width !== a.width || t.height !== a.height) && F({
134
- width: t.width,
135
- height: t.height
123
+ }, G = (e, n) => {
124
+ const i = C(e, n);
125
+ return {
126
+ ...i,
127
+ x: Math.max(0, Math.min(i.x, n.width - i.width)),
128
+ y: Math.max(0, Math.min(i.y, n.height - i.height))
129
+ };
130
+ }, [N, L] = de(!1), s = ce(() => {
131
+ const e = {
132
+ x: v().x,
133
+ y: v().y,
134
+ width: z().width,
135
+ height: z().height
136
+ };
137
+ return N() ? C(e, b()) : G(e, b());
138
+ }), h = (e, n = !0) => {
139
+ n && L(!0);
140
+ const i = C(e, b()), r = v(), a = z();
141
+ (i.x !== r.x || i.y !== r.y) && F({
142
+ x: i.x,
143
+ y: i.y
144
+ }), (i.width !== a.width || i.height !== a.height) && Z({
145
+ width: i.width,
146
+ height: i.height
136
147
  });
137
148
  };
138
- K(() => {
139
- if (C || !n.open) return;
140
- const e = () => h(s());
141
- window.addEventListener("resize", e), T(() => window.removeEventListener("resize", e));
142
- }), K(() => {
143
- if (C || !n.open || !n.closeOnEsc || !n.onClose) return;
144
- const e = (t) => {
145
- t.key === "Escape" && (!f || !f.contains(document.activeElement) || n.onClose?.());
149
+ A(() => {
150
+ t.open || L(!1);
151
+ }), A(() => {
152
+ if ($ || !t.open) return;
153
+ const e = () => h(s(), !1);
154
+ window.addEventListener("resize", e), V(() => window.removeEventListener("resize", e));
155
+ }), A(() => {
156
+ if ($ || !t.open || !t.closeOnEsc || !t.onClose) return;
157
+ const e = (n) => {
158
+ n.key === "Escape" && (!f || !f.contains(document.activeElement) || t.onClose?.());
146
159
  };
147
- document.addEventListener("keydown", e), T(() => document.removeEventListener("keydown", e));
160
+ document.addEventListener("keydown", e), V(() => document.removeEventListener("keydown", e));
148
161
  });
149
- const L = () => {
150
- n.onActivate?.(), f && !f.contains(document.activeElement) && f.focus({
162
+ const k = () => {
163
+ t.onActivate?.(), f && !f.contains(document.activeElement) && f.focus({
151
164
  preventScroll: !0
152
165
  });
153
166
  };
154
167
  let w = null;
155
- const j = (e) => {
156
- if (!n.movable || e.target?.closest("button,[data-no-drag]")) return;
168
+ const q = (e) => {
169
+ if (!t.movable || e.target?.closest("button,[data-no-drag]")) return;
157
170
  e.preventDefault();
158
- const t = s();
171
+ const n = s();
159
172
  w = {
160
173
  px: e.clientX,
161
174
  py: e.clientY,
162
- x: t.x,
163
- y: t.y
175
+ x: n.x,
176
+ y: n.y
164
177
  };
165
178
  try {
166
179
  e.currentTarget.setPointerCapture?.(e.pointerId);
167
180
  } catch {
168
181
  }
169
- }, G = (e) => {
182
+ }, B = (e) => {
170
183
  if (!w) return;
171
- const t = s();
184
+ const n = s();
172
185
  h({
173
- ...t,
186
+ ...n,
174
187
  x: w.x + e.clientX - w.px,
175
188
  y: w.y + e.clientY - w.py
176
189
  });
177
- }, R = (e) => {
190
+ }, S = (e) => {
178
191
  if (w) {
179
192
  w = null;
180
- const t = s();
181
- n.onMoveEnd?.({
182
- x: t.x,
183
- y: t.y
193
+ const n = s();
194
+ t.onMoveEnd?.({
195
+ x: n.x,
196
+ y: n.y
184
197
  });
185
198
  }
186
199
  e.currentTarget.hasPointerCapture?.(e.pointerId) && e.currentTarget.releasePointerCapture?.(e.pointerId);
187
200
  };
188
201
  let p = null;
189
- const N = (e, t) => {
190
- t.preventDefault(), t.stopPropagation(), p = {
202
+ const J = (e, n) => {
203
+ n.preventDefault(), n.stopPropagation(), p = {
191
204
  dir: e,
192
- px: t.clientX,
193
- py: t.clientY,
205
+ px: n.clientX,
206
+ py: n.clientY,
194
207
  rect: s()
195
- }, L();
208
+ }, k();
196
209
  try {
197
- t.currentTarget.setPointerCapture?.(t.pointerId);
210
+ n.currentTarget.setPointerCapture?.(n.pointerId);
198
211
  } catch {
199
212
  }
200
- }, q = (e) => {
213
+ }, Q = (e) => {
201
214
  if (!p) return;
202
- const t = fe[p.dir], r = e.clientX - p.px, a = e.clientY - p.py, o = p.rect, i = v(), l = n.maxWidth ?? i.width, u = n.maxHeight ?? i.height, g = Math.min(l, Math.max(n.minWidth, o.width + t.dw * r)), S = Math.min(u, Math.max(n.minHeight, o.height + t.dh * a));
215
+ const n = _e[p.dir], i = e.clientX - p.px, r = e.clientY - p.py, a = p.rect, o = b(), l = t.maxWidth ?? o.width, u = t.maxHeight ?? o.height, g = Math.min(l, Math.max(t.minWidth, a.width + n.dw * i)), W = Math.min(u, Math.max(t.minHeight, a.height + n.dh * r));
203
216
  h({
204
- x: t.dx ? o.x + o.width - g : o.x,
205
- y: t.dy ? o.y + o.height - S : o.y,
217
+ x: n.dx ? a.x + a.width - g : a.x,
218
+ y: n.dy ? a.y + a.height - W : a.y,
206
219
  width: g,
207
- height: S
220
+ height: W
208
221
  });
209
- }, k = (e) => {
222
+ }, D = (e) => {
210
223
  if (p) {
211
224
  p = null;
212
- const t = s();
213
- n.onResizeEnd?.({
214
- width: t.width,
215
- height: t.height
225
+ const n = s();
226
+ t.onResizeEnd?.({
227
+ width: n.width,
228
+ height: n.height
216
229
  });
217
230
  }
218
231
  e.currentTarget.hasPointerCapture?.(e.pointerId) && e.currentTarget.releasePointerCapture?.(e.pointerId);
219
- }, D = (e) => {
220
- const t = s();
221
- e ? n.onResizeEnd?.({
222
- width: t.width,
223
- height: t.height
224
- }) : n.onMoveEnd?.({
225
- x: t.x,
226
- y: t.y
232
+ }, I = (e) => {
233
+ const n = s();
234
+ e ? t.onResizeEnd?.({
235
+ width: n.width,
236
+ height: n.height
237
+ }) : t.onMoveEnd?.({
238
+ x: n.x,
239
+ y: n.y
227
240
  });
228
- }, B = (e) => {
229
- const t = s(), r = e.shiftKey ? n.resizeStep : n.moveStep, o = {
230
- ArrowLeft: [-r, 0],
231
- ArrowRight: [r, 0],
232
- ArrowUp: [0, -r],
233
- ArrowDown: [0, r]
241
+ }, ee = (e) => {
242
+ const n = s(), i = e.shiftKey ? t.resizeStep : t.moveStep, a = {
243
+ ArrowLeft: [-i, 0],
244
+ ArrowRight: [i, 0],
245
+ ArrowUp: [0, -i],
246
+ ArrowDown: [0, i]
234
247
  }[e.key];
235
- o && (e.preventDefault(), e.shiftKey ? h({
236
- ...t,
237
- width: t.width + o[0],
238
- height: t.height + o[1]
248
+ a && (e.preventDefault(), e.shiftKey ? h({
249
+ ...n,
250
+ width: n.width + a[0],
251
+ height: n.height + a[1]
239
252
  }) : h({
240
- ...t,
241
- x: t.x + o[0],
242
- y: t.y + o[1]
243
- }), D(e.shiftKey));
244
- }, J = (e) => {
245
- const t = s(), r = v();
253
+ ...n,
254
+ x: n.x + a[0],
255
+ y: n.y + a[1]
256
+ }), I(e.shiftKey));
257
+ }, te = (e) => {
258
+ const n = s(), i = b();
246
259
  if (e.key === "ArrowLeft" || e.key === "ArrowRight") {
247
260
  e.preventDefault();
248
- const a = e.key === "ArrowRight" ? 1 : -1;
261
+ const r = e.key === "ArrowRight" ? 1 : -1;
249
262
  h({
250
- ...t,
251
- width: t.width + a * n.resizeStep
263
+ ...n,
264
+ width: n.width + r * t.resizeStep
252
265
  });
253
266
  } else if (e.key === "ArrowUp" || e.key === "ArrowDown") {
254
267
  e.preventDefault();
255
- const a = e.key === "ArrowDown" ? 1 : -1;
268
+ const r = e.key === "ArrowDown" ? 1 : -1;
256
269
  h({
257
- ...t,
258
- height: t.height + a * n.resizeStep
270
+ ...n,
271
+ height: n.height + r * t.resizeStep
259
272
  });
260
273
  } else if (e.key === "Home")
261
274
  e.preventDefault(), h({
262
- ...t,
263
- width: n.minWidth,
264
- height: n.minHeight
275
+ ...n,
276
+ width: t.minWidth,
277
+ height: t.minHeight
265
278
  });
266
279
  else if (e.key === "End")
267
280
  e.preventDefault(), h({
268
- ...t,
269
- width: n.maxWidth ?? r.width,
270
- height: n.maxHeight ?? r.height
281
+ ...n,
282
+ width: t.maxWidth ?? i.width,
283
+ height: t.maxHeight ?? i.height
271
284
  });
272
285
  else
273
286
  return;
274
- D(!0);
275
- }, Q = () => Z((e) => !e);
287
+ I(!0);
288
+ }, ne = () => j((e) => !e);
276
289
  return d(y, {
277
290
  get when() {
278
- return P.mounted();
291
+ return R.mounted();
279
292
  },
280
293
  get children() {
281
- return d(ee, {
294
+ return d(ie, {
282
295
  get mount() {
283
- return C ? void 0 : document.body;
296
+ return $ ? void 0 : document.body;
284
297
  },
285
298
  get children() {
286
- var e = me(), t = e.firstChild, r = t.firstChild, a = r.nextSibling, o = ce(n.ref, (i) => f = i);
287
- return typeof o == "function" && te(o, e), I(e, W(Y, {
299
+ var e = ye(), n = e.firstChild, i = n.firstChild, r = i.nextSibling, a = ue(t.ref, (o) => f = o);
300
+ return typeof a == "function" && oe(a, e), K(e, T(U, {
288
301
  "data-testid": "floating-window",
289
302
  role: "dialog",
290
303
  tabindex: -1,
291
304
  get "aria-labelledby"() {
292
- return n.title ? E : void 0;
305
+ return t.title ? H : void 0;
293
306
  },
294
307
  get class() {
295
- return V("smwb-floating-window", n.class, P.classes(), {
308
+ return O("smwb-floating-window", t.class, R.classes(), {
296
309
  "smwb-collapsed": m()
297
310
  });
298
311
  },
@@ -304,100 +317,100 @@ function Me(O) {
304
317
  ...m() ? {} : {
305
318
  height: `${s().height}px`
306
319
  },
307
- ...n.zIndex === void 0 ? {} : {
308
- "z-index": n.zIndex
320
+ ...t.zIndex === void 0 ? {} : {
321
+ "z-index": t.zIndex
309
322
  },
310
- ...typeof n.style == "object" && n.style ? n.style : {}
323
+ ...typeof t.style == "object" && t.style ? t.style : {}
311
324
  };
312
325
  },
313
- "on:pointerdown": L
314
- }), !1, !0), t.addEventListener("pointercancel", R), t.$$pointerup = R, t.$$pointermove = G, t.$$pointerdown = j, r.$$keydown = B, c(r, d(M, {
326
+ "on:pointerdown": k
327
+ }), !1, !0), n.addEventListener("pointercancel", S), n.$$pointerup = S, n.$$pointermove = B, n.$$pointerdown = q, i.$$keydown = ee, c(i, d(P, {
315
328
  name: "drag_indicator"
316
- })), c(t, d(y, {
329
+ })), c(n, d(y, {
317
330
  get when() {
318
- return n.title;
331
+ return t.title;
319
332
  },
320
333
  get children() {
321
- var i = he();
322
- return x(i, "id", E), c(i, () => n.title), i;
334
+ var o = me();
335
+ return x(o, "id", H), c(o, () => t.title), o;
323
336
  }
324
- }), a), c(a, () => n.headerActions, null), c(a, d(y, {
337
+ }), r), c(r, () => t.headerActions, null), c(r, d(y, {
325
338
  get when() {
326
- return n.collapsible;
339
+ return t.collapsible;
327
340
  },
328
341
  get children() {
329
- var i = we();
330
- return i.$$click = Q, c(i, d(M, {
342
+ var o = ge();
343
+ return o.$$click = ne, c(o, d(P, {
331
344
  get name() {
332
345
  return m() ? "open_in_full" : "close_fullscreen";
333
346
  }
334
- })), $((l) => {
335
- var u = m() ? n.expandAriaLabel : n.collapseAriaLabel, g = !m();
336
- return u !== l.e && x(i, "aria-label", l.e = u), g !== l.t && x(i, "aria-expanded", l.t = g), l;
347
+ })), M((l) => {
348
+ var u = m() ? t.expandAriaLabel : t.collapseAriaLabel, g = !m();
349
+ return u !== l.e && x(o, "aria-label", l.e = u), g !== l.t && x(o, "aria-expanded", l.t = g), l;
337
350
  }, {
338
351
  e: void 0,
339
352
  t: void 0
340
- }), i;
353
+ }), o;
341
354
  }
342
- }), null), c(a, d(y, {
355
+ }), null), c(r, d(y, {
343
356
  get when() {
344
- return n.onClose;
357
+ return t.onClose;
345
358
  },
346
359
  get children() {
347
- var i = pe();
348
- return i.$$click = () => n.onClose?.(), c(i, d(M, {
360
+ var o = fe();
361
+ return o.$$click = () => t.onClose?.(), c(o, d(P, {
349
362
  name: "close"
350
- })), $(() => x(i, "aria-label", n.closeAriaLabel)), i;
363
+ })), M(() => x(o, "aria-label", t.closeAriaLabel)), o;
351
364
  }
352
365
  }), null), c(e, d(y, {
353
366
  get when() {
354
367
  return !m();
355
368
  },
356
369
  get children() {
357
- var i = ue();
358
- return c(i, () => n.children), i;
370
+ var o = xe();
371
+ return c(o, () => t.children), o;
359
372
  }
360
373
  }), null), c(e, d(y, {
361
374
  get when() {
362
- return ne(() => !!n.resizable)() && !m();
375
+ return ae(() => !!t.resizable)() && !m();
363
376
  },
364
377
  get children() {
365
- return d(le, {
366
- each: xe,
367
- children: (i) => (() => {
368
- var l = ge();
369
- return x(l, "data-testid", `floating-window-resize-${i}`), I(l, W({
378
+ return d(he, {
379
+ each: ve,
380
+ children: (o) => (() => {
381
+ var l = be();
382
+ return x(l, "data-testid", `floating-window-resize-${o}`), K(l, T({
370
383
  get class() {
371
- return V("smwb-floating-window__resize", `smwb-floating-window__resize_${i}`);
384
+ return O("smwb-floating-window__resize", `smwb-floating-window__resize_${o}`);
372
385
  }
373
- }, () => i === "se" ? {
386
+ }, () => o === "se" ? {
374
387
  role: "separator",
375
388
  tabindex: 0,
376
- "aria-label": n.resizeHandleAriaLabel,
377
- "aria-valuemin": n.minWidth,
378
- "aria-valuemax": Math.round(n.maxWidth ?? v().width),
389
+ "aria-label": t.resizeHandleAriaLabel,
390
+ "aria-valuemin": t.minWidth,
391
+ "aria-valuemax": Math.round(t.maxWidth ?? b().width),
379
392
  "aria-valuenow": Math.round(s().width),
380
- onKeyDown: J
393
+ onKeyDown: te
381
394
  } : {
382
395
  "aria-hidden": !0,
383
396
  tabindex: -1
384
397
  }, {
385
- onPointerDown: (u) => N(i, u),
386
- onPointerMove: q,
387
- onPointerUp: k,
388
- onPointerCancel: k
398
+ onPointerDown: (u) => J(o, u),
399
+ onPointerMove: Q,
400
+ onPointerUp: D,
401
+ onPointerCancel: D
389
402
  }), !1, !1), l;
390
403
  })()
391
404
  });
392
405
  }
393
- }), null), $(() => x(r, "aria-label", n.moveHandleAriaLabel)), e;
406
+ }), null), M(() => x(i, "aria-label", t.moveHandleAriaLabel)), e;
394
407
  }
395
408
  });
396
409
  }
397
410
  });
398
411
  }
399
- ie(["pointerdown", "pointermove", "pointerup", "keydown", "click"]);
412
+ re(["pointerdown", "pointermove", "pointerup", "keydown", "click"]);
400
413
  export {
401
- Me as FloatingWindow
414
+ Re as FloatingWindow
402
415
  };
403
416
  //# sourceMappingURL=floatingWindow.js.map