@nice2dev/ui 1.0.5 → 1.0.6
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/README.md +253 -207
- package/dist/NiceButton-B5RXLDwI.cjs +1 -0
- package/dist/NiceButton-DmTHNHet.js +450 -0
- package/dist/NiceErrorBoundary-D1hh5GGe.js +732 -0
- package/dist/NiceErrorBoundary-Dta4TGee.cjs +1 -0
- package/dist/NiceModuleLifecyclePanel-BapdidD6.js +4776 -0
- package/dist/NiceModuleLifecyclePanel-CsFsm534.cjs +1 -0
- package/dist/NicePinCodeInput-4q8yULuo.js +13359 -0
- package/dist/NicePinCodeInput-eD2q8nGa.cjs +692 -0
- package/dist/NicePinCodeInput.css +1 -0
- package/dist/NiceSavedQueryPanel-DUw8plYP.js +5666 -0
- package/dist/NiceSavedQueryPanel-xpk09zy1.cjs +596 -0
- package/dist/NiceSavedQueryPanel.css +1 -0
- package/dist/NiceStockChart-CHlOnWzN.cjs +287 -0
- package/dist/NiceStockChart-Cpmv9_Cc.js +2341 -0
- package/dist/NiceStockChart.css +1 -0
- package/dist/NiceToggle-C1UKGXmJ.js +209 -0
- package/dist/NiceToggle-lVi-ETi0.cjs +1 -0
- package/dist/NiceWindow-D1awkyFl.js +1636 -0
- package/dist/NiceWindow-yARTUJsg.cjs +1 -0
- package/dist/charts.cjs +1 -0
- package/dist/charts.d.ts +1043 -0
- package/dist/charts.mjs +23 -0
- package/dist/core-CfXsl755.js +16305 -0
- package/dist/core-DGJSUW64.cjs +96 -0
- package/dist/data.cjs +1 -0
- package/dist/data.d.ts +2003 -0
- package/dist/data.mjs +21 -0
- package/dist/editors.cjs +1 -0
- package/dist/editors.d.ts +2728 -0
- package/dist/editors.mjs +66 -0
- package/dist/feedback.cjs +1 -0
- package/dist/feedback.d.ts +339 -0
- package/dist/feedback.mjs +16 -0
- package/dist/index-C853adw1.cjs +6199 -0
- package/dist/index-CNwVELPJ.js +62857 -0
- package/dist/index-CUx_-gKK.cjs +1 -0
- package/dist/index-x8mRM4Jc.js +17 -0
- package/dist/index.cjs +1 -7866
- package/dist/index.css +1 -0
- package/dist/index.d.ts +1160 -2
- package/dist/index.mjs +972 -105889
- package/dist/navigation.cjs +1 -0
- package/dist/navigation.d.ts +1862 -0
- package/dist/navigation.mjs +519 -0
- package/dist/overlays.cjs +1 -0
- package/dist/overlays.d.ts +706 -0
- package/dist/overlays.mjs +26 -0
- package/package.json +31 -1
|
@@ -0,0 +1,519 @@
|
|
|
1
|
+
import { D as ae, a as ie, b as ce, c as se, d as le, e as re, N as te, f as oe, g as de, h as ue, i as be, j as me, k as _e, l as he, m as pe, n as Ne, o as ve, p as ke, q as ye, r as fe, s as ge, t as $e, u as xe, v as Me, w as we, x as Ce, y as De, z as Se, A as Ee, B as Ie, C as Te, E as Ae, F as Le, G as Re, H as We, I as Be, J as Ke, K as Pe, L as Oe, M as Fe, S as je } from "./NiceModuleLifecyclePanel-BapdidD6.js";
|
|
2
|
+
import { jsx as e, jsxs as o } from "react/jsx-runtime";
|
|
3
|
+
import { forwardRef as E, useState as L, useCallback as R, useEffect as H } from "react";
|
|
4
|
+
import { u as I, a as T, b as K } from "./core-CfXsl755.js";
|
|
5
|
+
const U = E(
|
|
6
|
+
({
|
|
7
|
+
items: b,
|
|
8
|
+
activeKey: m,
|
|
9
|
+
collapsed: c = !1,
|
|
10
|
+
width: p = 240,
|
|
11
|
+
collapsedWidth: l = 52,
|
|
12
|
+
onItemClick: v,
|
|
13
|
+
onCollapseChange: C,
|
|
14
|
+
header: k,
|
|
15
|
+
footer: d,
|
|
16
|
+
size: _ = "md",
|
|
17
|
+
className: g,
|
|
18
|
+
style: $,
|
|
19
|
+
id: y,
|
|
20
|
+
accessMode: x,
|
|
21
|
+
...M
|
|
22
|
+
}, N) => {
|
|
23
|
+
const i = I(y), t = T(x, y), [s, u] = L(/* @__PURE__ */ new Set()), r = R((n) => {
|
|
24
|
+
u((D) => {
|
|
25
|
+
const a = new Set(D);
|
|
26
|
+
return a.has(n) ? a.delete(n) : a.add(n), a;
|
|
27
|
+
});
|
|
28
|
+
}, []);
|
|
29
|
+
if (t === "hidden") return null;
|
|
30
|
+
const h = (n, D = 0) => {
|
|
31
|
+
const a = n.children && n.children.length > 0, A = s.has(n.key), w = n.key === m;
|
|
32
|
+
return /* @__PURE__ */ o("li", { className: "nice-sidebar-menu__item", children: [
|
|
33
|
+
/* @__PURE__ */ o(
|
|
34
|
+
"button",
|
|
35
|
+
{
|
|
36
|
+
className: `nice-sidebar-menu__btn ${w ? "nice-sidebar-menu__btn--active" : ""} ${n.disabled ? "nice-sidebar-menu__btn--disabled" : ""}`,
|
|
37
|
+
style: { paddingLeft: c ? void 0 : 12 + D * 16 },
|
|
38
|
+
onClick: () => a ? r(n.key) : v?.(n),
|
|
39
|
+
disabled: n.disabled,
|
|
40
|
+
title: c ? n.text : void 0,
|
|
41
|
+
type: "button",
|
|
42
|
+
children: [
|
|
43
|
+
n.icon && /* @__PURE__ */ e("span", { className: "nice-sidebar-menu__icon", children: n.icon }),
|
|
44
|
+
!c && /* @__PURE__ */ e("span", { className: "nice-sidebar-menu__label", children: n.text }),
|
|
45
|
+
!c && n.badge !== void 0 && /* @__PURE__ */ e("span", { className: "nice-sidebar-menu__badge", children: n.badge }),
|
|
46
|
+
!c && a && /* @__PURE__ */ e("span", { className: "nice-sidebar-menu__chevron", children: A ? "▾" : "▸" })
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
),
|
|
50
|
+
a && A && !c && /* @__PURE__ */ e("ul", { className: "nice-sidebar-menu__children", children: n.children.map((S) => h(S, D + 1)) })
|
|
51
|
+
] }, n.key);
|
|
52
|
+
};
|
|
53
|
+
return /* @__PURE__ */ o(
|
|
54
|
+
"nav",
|
|
55
|
+
{
|
|
56
|
+
ref: N,
|
|
57
|
+
id: i,
|
|
58
|
+
className: `nice-sidebar-menu nice-sidebar-menu--${_} ${c ? "nice-sidebar-menu--collapsed" : ""} ${g ?? ""}`,
|
|
59
|
+
style: { ...$, width: c ? l : p },
|
|
60
|
+
...M,
|
|
61
|
+
children: [
|
|
62
|
+
k && /* @__PURE__ */ e("div", { className: "nice-sidebar-menu__header", children: k }),
|
|
63
|
+
/* @__PURE__ */ e("ul", { className: "nice-sidebar-menu__list", role: "list", children: b.map((n) => h(n)) }),
|
|
64
|
+
d && /* @__PURE__ */ e("div", { className: "nice-sidebar-menu__footer", children: d })
|
|
65
|
+
]
|
|
66
|
+
}
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
);
|
|
70
|
+
U.displayName = "NiceSidebarMenu";
|
|
71
|
+
const V = E(
|
|
72
|
+
({
|
|
73
|
+
items: b,
|
|
74
|
+
activeKey: m,
|
|
75
|
+
onItemClick: c,
|
|
76
|
+
brand: p,
|
|
77
|
+
actions: l,
|
|
78
|
+
size: v = "md",
|
|
79
|
+
className: C,
|
|
80
|
+
style: k,
|
|
81
|
+
id: d,
|
|
82
|
+
accessMode: _,
|
|
83
|
+
...g
|
|
84
|
+
}, $) => {
|
|
85
|
+
const y = I(d), x = T(_, d), [M, N] = L(null);
|
|
86
|
+
return x === "hidden" ? null : /* @__PURE__ */ o(
|
|
87
|
+
"nav",
|
|
88
|
+
{
|
|
89
|
+
ref: $,
|
|
90
|
+
id: y,
|
|
91
|
+
className: `nice-top-menu nice-top-menu--${v} ${C ?? ""}`,
|
|
92
|
+
style: k,
|
|
93
|
+
...g,
|
|
94
|
+
children: [
|
|
95
|
+
p && /* @__PURE__ */ e("div", { className: "nice-top-menu__brand", children: p }),
|
|
96
|
+
/* @__PURE__ */ e("ul", { className: "nice-top-menu__items", role: "menubar", children: b.map((i) => {
|
|
97
|
+
const t = i.children && i.children.length > 0, s = M === i.key;
|
|
98
|
+
return /* @__PURE__ */ o(
|
|
99
|
+
"li",
|
|
100
|
+
{
|
|
101
|
+
className: "nice-top-menu__item",
|
|
102
|
+
onMouseEnter: () => t && N(i.key),
|
|
103
|
+
onMouseLeave: () => t && N(null),
|
|
104
|
+
children: [
|
|
105
|
+
/* @__PURE__ */ o(
|
|
106
|
+
"button",
|
|
107
|
+
{
|
|
108
|
+
className: `nice-top-menu__btn ${i.key === m ? "nice-top-menu__btn--active" : ""}`,
|
|
109
|
+
onClick: () => t ? N(s ? null : i.key) : c?.(i),
|
|
110
|
+
role: "menuitem",
|
|
111
|
+
"aria-haspopup": t,
|
|
112
|
+
"aria-expanded": s,
|
|
113
|
+
disabled: i.disabled,
|
|
114
|
+
type: "button",
|
|
115
|
+
children: [
|
|
116
|
+
i.icon && /* @__PURE__ */ e("span", { children: i.icon }),
|
|
117
|
+
/* @__PURE__ */ e("span", { children: i.text }),
|
|
118
|
+
t && /* @__PURE__ */ e("span", { className: "nice-top-menu__chevron", children: "▾" })
|
|
119
|
+
]
|
|
120
|
+
}
|
|
121
|
+
),
|
|
122
|
+
t && s && /* @__PURE__ */ e("ul", { className: "nice-top-menu__dropdown", role: "menu", children: i.children.map((u) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ o(
|
|
123
|
+
"button",
|
|
124
|
+
{
|
|
125
|
+
className: `nice-top-menu__dropdown-btn ${u.key === m ? "nice-top-menu__dropdown-btn--active" : ""}`,
|
|
126
|
+
onClick: () => {
|
|
127
|
+
c?.(u), N(null);
|
|
128
|
+
},
|
|
129
|
+
disabled: u.disabled,
|
|
130
|
+
role: "menuitem",
|
|
131
|
+
type: "button",
|
|
132
|
+
children: [
|
|
133
|
+
u.icon && /* @__PURE__ */ e("span", { children: u.icon }),
|
|
134
|
+
/* @__PURE__ */ e("span", { children: u.text }),
|
|
135
|
+
u.badge !== void 0 && /* @__PURE__ */ e("span", { className: "nice-top-menu__badge", children: u.badge })
|
|
136
|
+
]
|
|
137
|
+
}
|
|
138
|
+
) }, u.key)) })
|
|
139
|
+
]
|
|
140
|
+
},
|
|
141
|
+
i.key
|
|
142
|
+
);
|
|
143
|
+
}) }),
|
|
144
|
+
l && /* @__PURE__ */ e("div", { className: "nice-top-menu__actions", children: l })
|
|
145
|
+
]
|
|
146
|
+
}
|
|
147
|
+
);
|
|
148
|
+
}
|
|
149
|
+
);
|
|
150
|
+
V.displayName = "NiceTopMenu";
|
|
151
|
+
const q = E(
|
|
152
|
+
({
|
|
153
|
+
tabs: b,
|
|
154
|
+
activeTab: m,
|
|
155
|
+
onTabChange: c,
|
|
156
|
+
onItemClick: p,
|
|
157
|
+
minimized: l = !1,
|
|
158
|
+
onMinimizeToggle: v,
|
|
159
|
+
size: C = "md",
|
|
160
|
+
className: k,
|
|
161
|
+
style: d,
|
|
162
|
+
id: _,
|
|
163
|
+
accessMode: g,
|
|
164
|
+
...$
|
|
165
|
+
}, y) => {
|
|
166
|
+
const x = I(_), M = T(g, _), [N, i] = L(m ?? b[0]?.key), t = m ?? N, s = b.find((r) => r.key === t), u = R(
|
|
167
|
+
(r) => {
|
|
168
|
+
i(r), c?.(r);
|
|
169
|
+
},
|
|
170
|
+
[c]
|
|
171
|
+
);
|
|
172
|
+
return M === "hidden" ? null : /* @__PURE__ */ o(
|
|
173
|
+
"div",
|
|
174
|
+
{
|
|
175
|
+
ref: y,
|
|
176
|
+
id: x,
|
|
177
|
+
className: `nice-ribbon-menu nice-ribbon-menu--${C} ${l ? "nice-ribbon-menu--minimized" : ""} ${k ?? ""}`,
|
|
178
|
+
style: d,
|
|
179
|
+
...$,
|
|
180
|
+
children: [
|
|
181
|
+
/* @__PURE__ */ o("div", { className: "nice-ribbon-menu__tabs", role: "tablist", children: [
|
|
182
|
+
b.map((r) => /* @__PURE__ */ e(
|
|
183
|
+
"button",
|
|
184
|
+
{
|
|
185
|
+
className: `nice-ribbon-menu__tab ${r.key === t ? "nice-ribbon-menu__tab--active" : ""}`,
|
|
186
|
+
onClick: () => u(r.key),
|
|
187
|
+
role: "tab",
|
|
188
|
+
"aria-selected": r.key === t,
|
|
189
|
+
type: "button",
|
|
190
|
+
children: r.label
|
|
191
|
+
},
|
|
192
|
+
r.key
|
|
193
|
+
)),
|
|
194
|
+
/* @__PURE__ */ e(
|
|
195
|
+
"button",
|
|
196
|
+
{
|
|
197
|
+
className: "nice-ribbon-menu__minimize",
|
|
198
|
+
onClick: () => v?.(!l),
|
|
199
|
+
type: "button",
|
|
200
|
+
"aria-label": l ? "Expand" : "Minimize",
|
|
201
|
+
children: l ? "▼" : "▲"
|
|
202
|
+
}
|
|
203
|
+
)
|
|
204
|
+
] }),
|
|
205
|
+
!l && s && /* @__PURE__ */ e("div", { className: "nice-ribbon-menu__panel", role: "tabpanel", children: s.groups.map((r, h) => /* @__PURE__ */ o("div", { className: "nice-ribbon-menu__group", children: [
|
|
206
|
+
/* @__PURE__ */ e("div", { className: "nice-ribbon-menu__group-items", children: r.items.map((n) => /* @__PURE__ */ o(
|
|
207
|
+
"button",
|
|
208
|
+
{
|
|
209
|
+
className: "nice-ribbon-menu__item",
|
|
210
|
+
onClick: () => p?.(n),
|
|
211
|
+
disabled: n.disabled,
|
|
212
|
+
type: "button",
|
|
213
|
+
children: [
|
|
214
|
+
n.icon && /* @__PURE__ */ e("span", { className: "nice-ribbon-menu__item-icon", children: n.icon }),
|
|
215
|
+
/* @__PURE__ */ e("span", { className: "nice-ribbon-menu__item-label", children: n.text })
|
|
216
|
+
]
|
|
217
|
+
},
|
|
218
|
+
n.key
|
|
219
|
+
)) }),
|
|
220
|
+
/* @__PURE__ */ e("div", { className: "nice-ribbon-menu__group-label", children: r.label })
|
|
221
|
+
] }, h)) })
|
|
222
|
+
]
|
|
223
|
+
}
|
|
224
|
+
);
|
|
225
|
+
}
|
|
226
|
+
);
|
|
227
|
+
q.displayName = "NiceRibbonMenu";
|
|
228
|
+
const J = E(
|
|
229
|
+
({
|
|
230
|
+
items: b,
|
|
231
|
+
activeKey: m,
|
|
232
|
+
onItemClick: c,
|
|
233
|
+
position: p = "bottom",
|
|
234
|
+
autoHide: l = !1,
|
|
235
|
+
iconSize: v = 40,
|
|
236
|
+
size: C = "md",
|
|
237
|
+
className: k,
|
|
238
|
+
style: d,
|
|
239
|
+
id: _,
|
|
240
|
+
accessMode: g,
|
|
241
|
+
...$
|
|
242
|
+
}, y) => {
|
|
243
|
+
const x = I(_), M = T(g, _), [N, i] = L(!1), t = !l || N;
|
|
244
|
+
return M === "hidden" ? null : /* @__PURE__ */ e(
|
|
245
|
+
"div",
|
|
246
|
+
{
|
|
247
|
+
ref: y,
|
|
248
|
+
id: x,
|
|
249
|
+
className: `nice-dock-menu nice-dock-menu--${p} nice-dock-menu--${C} ${l && !t ? "nice-dock-menu--hidden" : ""} ${k ?? ""}`,
|
|
250
|
+
style: d,
|
|
251
|
+
onMouseEnter: () => i(!0),
|
|
252
|
+
onMouseLeave: () => i(!1),
|
|
253
|
+
...$,
|
|
254
|
+
children: /* @__PURE__ */ e("div", { className: "nice-dock-menu__items", children: b.map((s) => /* @__PURE__ */ o(
|
|
255
|
+
"button",
|
|
256
|
+
{
|
|
257
|
+
className: `nice-dock-menu__item ${s.key === m ? "nice-dock-menu__item--active" : ""}`,
|
|
258
|
+
onClick: () => c?.(s),
|
|
259
|
+
disabled: s.disabled,
|
|
260
|
+
title: s.text,
|
|
261
|
+
type: "button",
|
|
262
|
+
style: { width: v, height: v },
|
|
263
|
+
children: [
|
|
264
|
+
s.icon ? /* @__PURE__ */ e("span", { className: "nice-dock-menu__icon", children: s.icon }) : /* @__PURE__ */ e("span", { children: s.text[0] }),
|
|
265
|
+
s.badge !== void 0 && /* @__PURE__ */ e("span", { className: "nice-dock-menu__badge", children: s.badge })
|
|
266
|
+
]
|
|
267
|
+
},
|
|
268
|
+
s.key
|
|
269
|
+
)) })
|
|
270
|
+
}
|
|
271
|
+
);
|
|
272
|
+
}
|
|
273
|
+
);
|
|
274
|
+
J.displayName = "NiceDockMenu";
|
|
275
|
+
const Q = E(
|
|
276
|
+
({
|
|
277
|
+
items: b,
|
|
278
|
+
activeKey: m,
|
|
279
|
+
onItemClick: c,
|
|
280
|
+
open: p,
|
|
281
|
+
onOpenChange: l,
|
|
282
|
+
position: v = "left",
|
|
283
|
+
panelWidth: C = 280,
|
|
284
|
+
header: k,
|
|
285
|
+
footer: d,
|
|
286
|
+
size: _ = "md",
|
|
287
|
+
className: g,
|
|
288
|
+
style: $,
|
|
289
|
+
id: y,
|
|
290
|
+
accessMode: x,
|
|
291
|
+
...M
|
|
292
|
+
}, N) => {
|
|
293
|
+
const i = I(y), t = T(x, y), { t: s } = K(), [u, r] = L(!1), h = p ?? u, n = R(() => {
|
|
294
|
+
const a = !h;
|
|
295
|
+
r(a), l?.(a);
|
|
296
|
+
}, [h, l]), D = R(
|
|
297
|
+
(a) => {
|
|
298
|
+
c?.(a), r(!1), l?.(!1);
|
|
299
|
+
},
|
|
300
|
+
[c, l]
|
|
301
|
+
);
|
|
302
|
+
return t === "hidden" ? null : /* @__PURE__ */ o(
|
|
303
|
+
"div",
|
|
304
|
+
{
|
|
305
|
+
ref: N,
|
|
306
|
+
id: i,
|
|
307
|
+
className: `nice-hamburger-menu nice-hamburger-menu--${_} ${g ?? ""}`,
|
|
308
|
+
style: $,
|
|
309
|
+
...M,
|
|
310
|
+
children: [
|
|
311
|
+
/* @__PURE__ */ e(
|
|
312
|
+
"button",
|
|
313
|
+
{
|
|
314
|
+
className: "nice-hamburger-menu__trigger",
|
|
315
|
+
onClick: n,
|
|
316
|
+
"aria-label": s("nav.menu", "Menu"),
|
|
317
|
+
"aria-expanded": h,
|
|
318
|
+
type: "button",
|
|
319
|
+
children: /* @__PURE__ */ o(
|
|
320
|
+
"span",
|
|
321
|
+
{
|
|
322
|
+
className: `nice-hamburger-menu__icon ${h ? "nice-hamburger-menu__icon--open" : ""}`,
|
|
323
|
+
children: [
|
|
324
|
+
/* @__PURE__ */ e("span", {}),
|
|
325
|
+
/* @__PURE__ */ e("span", {}),
|
|
326
|
+
/* @__PURE__ */ e("span", {})
|
|
327
|
+
]
|
|
328
|
+
}
|
|
329
|
+
)
|
|
330
|
+
}
|
|
331
|
+
),
|
|
332
|
+
h && /* @__PURE__ */ e("div", { className: "nice-hamburger-menu__backdrop", onClick: n, "aria-hidden": !0 }),
|
|
333
|
+
/* @__PURE__ */ o(
|
|
334
|
+
"div",
|
|
335
|
+
{
|
|
336
|
+
className: `nice-hamburger-menu__panel nice-hamburger-menu__panel--${v} ${h ? "nice-hamburger-menu__panel--open" : ""}`,
|
|
337
|
+
style: { width: C },
|
|
338
|
+
children: [
|
|
339
|
+
k && /* @__PURE__ */ e("div", { className: "nice-hamburger-menu__header", children: k }),
|
|
340
|
+
/* @__PURE__ */ e("ul", { className: "nice-hamburger-menu__list", role: "menu", children: b.map((a) => /* @__PURE__ */ e("li", { children: /* @__PURE__ */ o(
|
|
341
|
+
"button",
|
|
342
|
+
{
|
|
343
|
+
className: `nice-hamburger-menu__item ${a.key === m ? "nice-hamburger-menu__item--active" : ""}`,
|
|
344
|
+
onClick: () => D(a),
|
|
345
|
+
disabled: a.disabled,
|
|
346
|
+
role: "menuitem",
|
|
347
|
+
type: "button",
|
|
348
|
+
children: [
|
|
349
|
+
a.icon && /* @__PURE__ */ e("span", { className: "nice-hamburger-menu__item-icon", children: a.icon }),
|
|
350
|
+
/* @__PURE__ */ e("span", { children: a.text }),
|
|
351
|
+
a.badge !== void 0 && /* @__PURE__ */ e("span", { className: "nice-hamburger-menu__item-badge", children: a.badge })
|
|
352
|
+
]
|
|
353
|
+
}
|
|
354
|
+
) }, a.key)) }),
|
|
355
|
+
d && /* @__PURE__ */ e("div", { className: "nice-hamburger-menu__footer", children: d })
|
|
356
|
+
]
|
|
357
|
+
}
|
|
358
|
+
)
|
|
359
|
+
]
|
|
360
|
+
}
|
|
361
|
+
);
|
|
362
|
+
}
|
|
363
|
+
);
|
|
364
|
+
Q.displayName = "NiceHamburgerMenu";
|
|
365
|
+
const X = E(
|
|
366
|
+
({
|
|
367
|
+
canGoBack: b = !1,
|
|
368
|
+
canGoForward: m = !1,
|
|
369
|
+
onBack: c,
|
|
370
|
+
onForward: p,
|
|
371
|
+
onRefresh: l,
|
|
372
|
+
enableShortcuts: v = !0,
|
|
373
|
+
showRefresh: C = !0,
|
|
374
|
+
showStop: k = !0,
|
|
375
|
+
isLoading: d = !1,
|
|
376
|
+
onStop: _,
|
|
377
|
+
size: g = "md",
|
|
378
|
+
variant: $ = "default",
|
|
379
|
+
tooltipPosition: y = "bottom",
|
|
380
|
+
backIcon: x,
|
|
381
|
+
forwardIcon: M,
|
|
382
|
+
refreshIcon: N,
|
|
383
|
+
stopIcon: i,
|
|
384
|
+
className: t,
|
|
385
|
+
style: s,
|
|
386
|
+
id: u,
|
|
387
|
+
accessMode: r,
|
|
388
|
+
disabled: h,
|
|
389
|
+
...n
|
|
390
|
+
}, D) => {
|
|
391
|
+
const a = I(u), A = T(r, u), { t: w } = K();
|
|
392
|
+
if (H(() => {
|
|
393
|
+
if (!v || h) return;
|
|
394
|
+
const W = (f) => {
|
|
395
|
+
const B = f.altKey, z = f.ctrlKey || f.metaKey;
|
|
396
|
+
B && f.key === "ArrowLeft" ? (f.preventDefault(), b && c?.()) : B && f.key === "ArrowRight" ? (f.preventDefault(), m && p?.()) : f.key === "F5" || z && f.key === "r" ? (f.preventDefault(), d ? _?.() : l?.()) : f.key === "Escape" && d && (f.preventDefault(), _?.());
|
|
397
|
+
};
|
|
398
|
+
return window.addEventListener("keydown", W), () => window.removeEventListener("keydown", W);
|
|
399
|
+
}, [v, h, b, m, d, c, p, l, _]), A === "hidden") return null;
|
|
400
|
+
const S = A === "disabled" || h, P = x ?? /* @__PURE__ */ e("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ e("polyline", { points: "15 18 9 12 15 6" }) }), O = M ?? /* @__PURE__ */ e("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ e("polyline", { points: "9 18 15 12 9 6" }) }), F = N ?? /* @__PURE__ */ o("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [
|
|
401
|
+
/* @__PURE__ */ e("polyline", { points: "23 4 23 10 17 10" }),
|
|
402
|
+
/* @__PURE__ */ e("path", { d: "M20.49 15a9 9 0 1 1-2.12-9.36L23 10" })
|
|
403
|
+
] }), j = i ?? /* @__PURE__ */ o("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [
|
|
404
|
+
/* @__PURE__ */ e("line", { x1: "18", y1: "6", x2: "6", y2: "18" }),
|
|
405
|
+
/* @__PURE__ */ e("line", { x1: "6", y1: "6", x2: "18", y2: "18" })
|
|
406
|
+
] });
|
|
407
|
+
return /* @__PURE__ */ o(
|
|
408
|
+
"div",
|
|
409
|
+
{
|
|
410
|
+
ref: D,
|
|
411
|
+
id: a,
|
|
412
|
+
className: `nice-nav-controls nice-nav-controls--${g} nice-nav-controls--${$}${S ? " nice-nav-controls--disabled" : ""}${t ? ` ${t}` : ""}`,
|
|
413
|
+
style: s,
|
|
414
|
+
role: "navigation",
|
|
415
|
+
"aria-label": w("nav.controls", "Navigation controls"),
|
|
416
|
+
...n,
|
|
417
|
+
children: [
|
|
418
|
+
/* @__PURE__ */ e(
|
|
419
|
+
"button",
|
|
420
|
+
{
|
|
421
|
+
type: "button",
|
|
422
|
+
className: `nice-nav-controls__btn nice-nav-controls__btn--back${b ? "" : " nice-nav-controls__btn--disabled"}`,
|
|
423
|
+
onClick: c,
|
|
424
|
+
disabled: S || !b,
|
|
425
|
+
"aria-label": w("nav.back", "Back"),
|
|
426
|
+
title: `${w("nav.back", "Back")} (Alt+←)`,
|
|
427
|
+
children: P
|
|
428
|
+
}
|
|
429
|
+
),
|
|
430
|
+
/* @__PURE__ */ e(
|
|
431
|
+
"button",
|
|
432
|
+
{
|
|
433
|
+
type: "button",
|
|
434
|
+
className: `nice-nav-controls__btn nice-nav-controls__btn--forward${m ? "" : " nice-nav-controls__btn--disabled"}`,
|
|
435
|
+
onClick: p,
|
|
436
|
+
disabled: S || !m,
|
|
437
|
+
"aria-label": w("nav.forward", "Forward"),
|
|
438
|
+
title: `${w("nav.forward", "Forward")} (Alt+→)`,
|
|
439
|
+
children: O
|
|
440
|
+
}
|
|
441
|
+
),
|
|
442
|
+
(C || k && d) && (d ? /* @__PURE__ */ e(
|
|
443
|
+
"button",
|
|
444
|
+
{
|
|
445
|
+
type: "button",
|
|
446
|
+
className: "nice-nav-controls__btn nice-nav-controls__btn--stop nice-nav-controls__btn--loading",
|
|
447
|
+
onClick: _,
|
|
448
|
+
disabled: S,
|
|
449
|
+
"aria-label": w("nav.stop", "Stop"),
|
|
450
|
+
title: `${w("nav.stop", "Stop")} (Esc)`,
|
|
451
|
+
children: j
|
|
452
|
+
}
|
|
453
|
+
) : /* @__PURE__ */ e(
|
|
454
|
+
"button",
|
|
455
|
+
{
|
|
456
|
+
type: "button",
|
|
457
|
+
className: "nice-nav-controls__btn nice-nav-controls__btn--refresh",
|
|
458
|
+
onClick: l,
|
|
459
|
+
disabled: S,
|
|
460
|
+
"aria-label": w("nav.refresh", "Refresh"),
|
|
461
|
+
title: `${w("nav.refresh", "Refresh")} (F5)`,
|
|
462
|
+
children: F
|
|
463
|
+
}
|
|
464
|
+
))
|
|
465
|
+
]
|
|
466
|
+
}
|
|
467
|
+
);
|
|
468
|
+
}
|
|
469
|
+
);
|
|
470
|
+
X.displayName = "NiceNavigationControls";
|
|
471
|
+
export {
|
|
472
|
+
ae as DEFAULT_SIDEBAR_PREFS,
|
|
473
|
+
ie as DesktopContextMenu,
|
|
474
|
+
ce as DesktopGrid,
|
|
475
|
+
se as DesktopStartMenu,
|
|
476
|
+
le as DesktopSystemTray,
|
|
477
|
+
re as DesktopTaskbar,
|
|
478
|
+
te as NiceAccordion,
|
|
479
|
+
oe as NiceAppLayout,
|
|
480
|
+
de as NiceBottomNavigation,
|
|
481
|
+
ue as NiceBreadcrumb,
|
|
482
|
+
be as NiceCard,
|
|
483
|
+
me as NiceClassicShell,
|
|
484
|
+
_e as NiceCompactShell,
|
|
485
|
+
he as NiceConsole,
|
|
486
|
+
pe as NiceContextMenu,
|
|
487
|
+
Ne as NiceDashboardLayout,
|
|
488
|
+
ve as NiceDashboardShell,
|
|
489
|
+
ke as NiceDesktop,
|
|
490
|
+
ye as NiceDock,
|
|
491
|
+
J as NiceDockMenu,
|
|
492
|
+
fe as NiceDynamicSidebar,
|
|
493
|
+
Q as NiceHamburgerMenu,
|
|
494
|
+
ge as NiceKioskShell,
|
|
495
|
+
$e as NiceMdiWorkspace,
|
|
496
|
+
xe as NiceMegaMenu,
|
|
497
|
+
Me as NiceMenu,
|
|
498
|
+
we as NiceModeSelector,
|
|
499
|
+
Ce as NiceModuleLifecyclePanel,
|
|
500
|
+
De as NiceMultiView,
|
|
501
|
+
Se as NiceNavbar,
|
|
502
|
+
X as NiceNavigationControls,
|
|
503
|
+
Ee as NiceOnboardingWizard,
|
|
504
|
+
Ie as NiceOrganizationProfileForm,
|
|
505
|
+
Te as NicePagination,
|
|
506
|
+
q as NiceRibbonMenu,
|
|
507
|
+
Ae as NiceSetupWizard,
|
|
508
|
+
U as NiceSidebarMenu,
|
|
509
|
+
Le as NiceSidebarNav,
|
|
510
|
+
Re as NiceSplitter,
|
|
511
|
+
We as NiceTabPanel,
|
|
512
|
+
Be as NiceTabs,
|
|
513
|
+
Ke as NiceTenantSwitcher,
|
|
514
|
+
Pe as NiceToolbar,
|
|
515
|
+
V as NiceTopMenu,
|
|
516
|
+
Oe as NiceUserMenu,
|
|
517
|
+
Fe as NiceWizard,
|
|
518
|
+
je as SIDEBAR_MODE_META
|
|
519
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./NiceWindow-yARTUJsg.cjs");exports.NiceActionSheet=e.NiceActionSheet;exports.NiceBlockUI=e.NiceBlockUI;exports.NiceBottomSheet=e.NiceBottomSheet;exports.NiceBox=e.NiceBox;exports.NiceCommandPaletteProvider=e.NiceCommandPaletteProvider;exports.NiceContextMenu=e.NiceContextMenu;exports.NiceDrawer=e.NiceDrawer;exports.NiceLoadPanel=e.NiceLoadPanel;exports.NiceModal=e.NiceModal;exports.NiceModalBody=e.NiceModalBody;exports.NiceModalFooter=e.NiceModalFooter;exports.NiceModalHeader=e.NiceModalHeader;exports.NiceOverlayPopover=e.NicePopover;exports.NicePopover=e.NicePopover$1;exports.NiceResizable=e.NiceResizable;exports.NiceResponsiveBox=e.NiceResponsiveBox;exports.NiceScrollView=e.NiceScrollView;exports.NiceTutorial=e.NiceTutorial;exports.NiceTutorialProvider=e.NiceTutorialProvider;exports.NiceWindow=e.NiceWindow;exports.NiceWindowManager=e.NiceWindowManager;exports.useCommandPalette=e.useCommandPalette;exports.useRegisterCommands=e.useRegisterCommands;
|