@nice2dev/ui 1.3.15 → 1.3.16

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 (30) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/{NiceDataGrid-BwiBkE3u.cjs → NiceDataGrid-aNPAHsWy.cjs} +1 -1
  3. package/dist/{NiceForm-Cxvh2O6y.cjs → NiceForm-BtRBLffD.cjs} +1 -1
  4. package/dist/{NiceMention-CYTx04JY.cjs → NiceMention-CMqAGvO0.cjs} +1 -1
  5. package/dist/NiceModuleLifecyclePanel-ugNtHimh.cjs +1 -0
  6. package/dist/{NicePagination-CKsAP38Q.cjs → NicePagination-D7XxeNFz.cjs} +1 -1
  7. package/dist/{NiceSavedQueryPanel-CN1rCPFs.cjs → NiceSavedQueryPanel-JHrSlHAV.cjs} +1 -1
  8. package/dist/{NiceScheduler-K8ZAqFCQ.cjs → NiceScheduler-2TwOZq-y.cjs} +1 -1
  9. package/dist/{core-lazy-DfNWyf__.cjs → core-lazy-Cda-D35m.cjs} +1 -1
  10. package/dist/data.cjs +1 -1
  11. package/dist/editors/inputs/NiceNumberInput.mjs +27 -27
  12. package/dist/editors.cjs +1 -1
  13. package/dist/index.cjs +53 -53
  14. package/dist/index.d.ts +48 -14
  15. package/dist/lazy.cjs +1 -1
  16. package/dist/navigation/NiceFirstRunPreferences.mjs +55 -54
  17. package/dist/navigation/NiceNavShell.mjs +429 -429
  18. package/dist/navigation/NiceSetupWizard.mjs +333 -317
  19. package/dist/navigation/NiceSidebarNav.mjs +1111 -1039
  20. package/dist/navigation/menuBuilderModel.mjs +1 -1
  21. package/dist/navigation/sidebarColors.mjs +67 -39
  22. package/dist/navigation/sidebarNavTypes.mjs +16 -14
  23. package/dist/navigation/sidebarPrefs/NiceSidebarPrefsDisplay.mjs +120 -42
  24. package/dist/navigation.cjs +1 -1
  25. package/dist/navigation.d.ts +32 -6
  26. package/dist/{no-code-BQqK8mvU.cjs → no-code-B3BHeyG-.cjs} +1 -1
  27. package/dist/no-code.cjs +1 -1
  28. package/dist/style.css +2 -2
  29. package/package.json +5 -5
  30. package/dist/NiceModuleLifecyclePanel-DHHAjwQx.cjs +0 -1
@@ -1,4 +1,4 @@
1
- import { insertTreeNode as x, walkTreeNodes as S, treeNodeLocation as w, updateTreeNode as M, removeTreeNode as y, moveTreeNode as T } from "../data/treeEdit.mjs";
1
+ import { insertTreeNode as x, walkTreeNodes as S, moveTreeNode as T, treeNodeLocation as w, updateTreeNode as M, removeTreeNode as y } from "../data/treeEdit.mjs";
2
2
  const k = /* @__PURE__ */ new WeakMap();
3
3
  function g(e) {
4
4
  const o = k.get(e);
@@ -1,69 +1,97 @@
1
- import { isDerivableColor as a, nestingLevelColors as u } from "@nice2dev/ui-core";
2
- const v = 10, b = 0.12, f = "var(--nice-text-on-warning, #0f172a)";
3
- function c(e) {
4
- return Math.min(Math.max(e, 1), v);
5
- }
1
+ import { isDerivableColor as u, nestingLevelColors as v } from "@nice2dev/ui-core";
2
+ const g = 10, d = 0.12, b = "var(--nice-text-on-warning, #0f172a)";
6
3
  function s(e) {
7
- return a(e) ? u(1, { palette: [e] }, e, f)[0] : {
4
+ return Math.min(Math.max(e, 1), g);
5
+ }
6
+ function a(e) {
7
+ return u(e) ? v(1, { palette: [e] }, e, b)[0] : {
8
8
  bg: e,
9
9
  text: "inherit",
10
10
  hoverBg: `color-mix(in srgb, ${e} 88%, currentColor)`,
11
11
  activeBg: `color-mix(in srgb, ${e} 76%, currentColor)`
12
12
  };
13
13
  }
14
- function g(e, r, n) {
15
- const l = v - c(r) + 1;
14
+ function h(e, r, n) {
15
+ const c = g - s(r) + 1;
16
16
  if (e.length === 0)
17
17
  return [];
18
- const t = e.slice(0, l).map(s), o = l - t.length;
18
+ const i = e.slice(0, c).map(a), o = c - i.length;
19
19
  if (o > 0) {
20
- const i = e[e.length - 1];
21
- if (a(i)) {
22
- const h = u(
20
+ const t = e[e.length - 1];
21
+ if (u(t)) {
22
+ const f = v(
23
23
  o + 1,
24
- { palette: [i], bgDerivation: n, bgStep: b },
25
- i,
26
- f
24
+ { palette: [t], bgDerivation: n, bgStep: d },
25
+ t,
26
+ b
27
27
  );
28
- t.push(...h.slice(1));
28
+ i.push(...f.slice(1));
29
29
  } else
30
- t.push(...Array.from({ length: o }, () => s(i)));
30
+ i.push(...Array.from({ length: o }, () => a(t)));
31
31
  }
32
- return t;
32
+ return i;
33
33
  }
34
34
  function m(e, r) {
35
35
  const n = {};
36
- return e.forEach((l, t) => {
37
- const o = c(r) + t;
38
- n[`--nice-sidebar-level-${o}-bg`] = l.bg, n[`--nice-sidebar-level-${o}-text`] = l.text, n[`--nice-sidebar-level-${o}-hover-bg`] = l.hoverBg, n[`--nice-sidebar-level-${o}-active-bg`] = l.activeBg;
36
+ return e.forEach((c, i) => {
37
+ const o = s(r) + i;
38
+ n[`--nice-sidebar-level-${o}-bg`] = c.bg, n[`--nice-sidebar-level-${o}-text`] = c.text, n[`--nice-sidebar-level-${o}-hover-bg`] = c.hoverBg, n[`--nice-sidebar-level-${o}-active-bg`] = c.activeBg;
39
39
  }), n;
40
40
  }
41
- function L(e, r) {
42
- return e && e.length > 0 ? { colors: g(e, 1, r), fromLevel: 1 } : { fromLevel: 1 };
41
+ function E(e, r) {
42
+ return e && e.length > 0 ? { colors: h(e, 1, r), fromLevel: 1 } : { fromLevel: 1 };
43
43
  }
44
- function p(e, r, n, l) {
45
- const t = r?.levelColors?.length ? r.levelColors : r?.color ? [r.color] : void 0;
46
- if (!t)
44
+ function p(e, r, n, c) {
45
+ const i = r?.levelColors?.length ? r.levelColors : r?.color ? [r.color] : void 0;
46
+ if (!i)
47
47
  return { scope: e };
48
- const o = c(n), i = g(t, o, l);
48
+ const o = s(n), t = h(i, o, c);
49
49
  return {
50
- scope: { colors: i, fromLevel: o, branchColor: t[0] },
51
- vars: m(i, o)
50
+ scope: { colors: t, fromLevel: o, branchColor: i[0] },
51
+ vars: m(t, o)
52
52
  };
53
53
  }
54
- function x(e, r) {
55
- return e.colors?.[c(r) - e.fromLevel];
54
+ function C(e, r) {
55
+ return e.colors?.[s(r) - e.fromLevel];
56
+ }
57
+ function S(e) {
58
+ return a(e);
56
59
  }
57
- function E(e) {
58
- return s(e);
60
+ const x = 6, L = "45%";
61
+ function l(e, r) {
62
+ const n = Math.min(e, x);
63
+ return `var(--nice-sidebar-level-${e}-${r}, var(--nice-sidebar-shade-${n}-${r}))`;
64
+ }
65
+ function B() {
66
+ return {
67
+ "--nice-source-head-bg": l(1, "bg"),
68
+ "--nice-source-head-color": l(1, "text"),
69
+ "--nice-source-head-bg-active": "var(--nice-source-head-bg)",
70
+ "--nice-source-head-accent": "var(--nice-source-head-color)"
71
+ };
72
+ }
73
+ function V(e, r) {
74
+ const n = s(e), c = l(n, "bg"), i = l(n, "text"), o = r ? c : `color-mix(in srgb, ${c} ${L}, var(--nice-bg-primary))`, t = r ? i : "var(--nice-text-primary)";
75
+ return {
76
+ "--nice-row-bg": o,
77
+ "--nice-row-text": t,
78
+ "--nice-row-hover-bg": `color-mix(in srgb, ${o} 88%, ${t})`,
79
+ "--nice-row-label": t,
80
+ "--nice-row-muted": t,
81
+ // the active row's bar and label: the header's text on a header, the primary on a page
82
+ "--nice-row-accent": r ? t : "var(--nice-color-primary)"
83
+ };
59
84
  }
60
85
  export {
61
- v as SIDEBAR_COLOR_LEVELS,
86
+ g as SIDEBAR_COLOR_LEVELS,
87
+ x as SIDEBAR_SHADE_LEVELS,
62
88
  p as branchColorScope,
63
- c as colorLevel,
64
- E as colorsOf,
89
+ s as colorLevel,
90
+ S as colorsOf,
65
91
  m as levelColorVars,
66
- g as levelColorsFrom,
67
- L as rootColorScope,
68
- x as rowColors
92
+ h as levelColorsFrom,
93
+ E as rootColorScope,
94
+ C as rowColors,
95
+ V as shadeRowVars,
96
+ B as shadeSourceHeadVars
69
97
  };
@@ -1,13 +1,13 @@
1
- import { NiceIcon as s } from "@nice2dev/ui-core";
1
+ import { NiceIcon as r } from "@nice2dev/ui-core";
2
2
  import { createElement as a } from "react";
3
- const e = (o) => a(s, { name: o, size: 18 }), n = /* @__PURE__ */ e("list"), i = /* @__PURE__ */ e("user"), c = /* @__PURE__ */ e("building"), l = /* @__PURE__ */ e("star"), b = /* @__PURE__ */ e("search"), E = /* @__PURE__ */ e("settings"), I = {
3
+ const e = (t) => a(r, { name: t, size: 18 }), n = /* @__PURE__ */ e("list"), i = /* @__PURE__ */ e("user"), c = /* @__PURE__ */ e("building"), l = /* @__PURE__ */ e("star"), E = /* @__PURE__ */ e("search"), b = /* @__PURE__ */ e("settings"), I = {
4
4
  all: { icon: n, label: "Everything" },
5
5
  "by-role": { icon: i, label: "By role" },
6
6
  "by-unit": { icon: c, label: "By unit" },
7
7
  favorites: { icon: l, label: "Favorites" },
8
- search: { icon: b, label: "Search" },
9
- preferences: { icon: E, label: "Preferences" }
10
- }, f = {
8
+ search: { icon: E, label: "Search" },
9
+ preferences: { icon: b, label: "Preferences" }
10
+ }, d = {
11
11
  all: "all",
12
12
  "by-role": "byRole",
13
13
  "by-unit": "byUnit",
@@ -15,11 +15,11 @@ const e = (o) => a(s, { name: o, size: 18 }), n = /* @__PURE__ */ e("list"), i =
15
15
  search: "search",
16
16
  preferences: "preferences"
17
17
  };
18
- function _(o, t) {
19
- const r = I[t];
20
- return r ? o(`sidebarNav.mode.${f[t]}`, r.label) : t;
18
+ function v(t, o) {
19
+ const s = I[o];
20
+ return s ? t(`sidebarNav.mode.${d[o]}`, s.label) : o;
21
21
  }
22
- const d = "favorites", p = {
22
+ const f = "favorites", _ = {
23
23
  enableModeIcons: !1,
24
24
  enabledModes: ["all", "by-role", "by-unit", "favorites", "search", "preferences"],
25
25
  activeMode: "all",
@@ -27,19 +27,21 @@ const d = "favorites", p = {
27
27
  hiddenItems: [],
28
28
  favorites: [],
29
29
  favoriteLists: [],
30
- activeFavoriteListId: d,
30
+ activeFavoriteListId: f,
31
31
  activeGroupId: {},
32
32
  maxDepth: {},
33
33
  collapsedIds: [],
34
34
  autoExpand: !0,
35
35
  leftClickBehavior: "focus-existing",
36
36
  itemOrder: {},
37
- colorStyle: "bar",
37
+ colorStyle: "theme",
38
+ indent: "steps",
39
+ stickyHeaders: "path",
38
40
  pageMode: "auto"
39
41
  };
40
42
  export {
41
- p as DEFAULT_SIDEBAR_PREFS,
42
- d as SIDEBAR_DEFAULT_FAVORITE_LIST,
43
+ _ as DEFAULT_SIDEBAR_PREFS,
44
+ f as SIDEBAR_DEFAULT_FAVORITE_LIST,
43
45
  I as SIDEBAR_MODE_META,
44
- _ as sidebarModeLabel
46
+ v as sidebarModeLabel
45
47
  };
@@ -1,21 +1,21 @@
1
1
  import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
- import { useNiceTranslation as u, useControlId as _ } from "@nice2dev/ui-core";
3
- import { useSidebarNavPrefs as N } from "../NiceSidebarNav.mjs";
4
- import { sidebarModeLabel as p } from "../sidebarNavTypes.mjs";
2
+ import { useNiceTranslation as _, useControlId as N } from "@nice2dev/ui-core";
3
+ import { useSidebarNavPrefs as u } from "../NiceSidebarNav.mjs";
4
+ import { sidebarModeLabel as t } from "../sidebarNavTypes.mjs";
5
5
  import { PrefsPageShell as g } from "./PrefsPageShell.mjs";
6
- import { useSidebarPrefsScope as S } from "./SidebarUserIdContext.mjs";
7
- const o = ["all", "by-role", "by-unit", "favorites", "search"], n = 10;
8
- function M({
9
- userId: t,
10
- embedded: f
6
+ import { useSidebarPrefsScope as k } from "./SidebarUserIdContext.mjs";
7
+ const p = ["all", "by-role", "by-unit", "favorites", "search"], c = 10;
8
+ function S({
9
+ userId: o,
10
+ embedded: h
11
11
  } = {}) {
12
- const { t: r } = u(), { userId: b, preferences: h, onPreferencesChange: m } = S({ userId: t }), [l, a] = N(b, void 0, h, m), c = _();
12
+ const { t: s } = _(), { userId: f, preferences: b, onPreferencesChange: y } = k({ userId: o }), [r, l] = u(f, void 0, b, y), d = N();
13
13
  return /* @__PURE__ */ i(
14
14
  g,
15
15
  {
16
- embedded: f,
17
- title: r("sidebar.prefs.display.title", "Display"),
18
- description: r(
16
+ embedded: h,
17
+ title: s("sidebar.prefs.display.title", "Display"),
18
+ description: s(
19
19
  "sidebar.prefs.display.desc",
20
20
  "Which modes appear in the strip and how deep the tree goes per mode."
21
21
  ),
@@ -25,76 +25,154 @@ function M({
25
25
  "input",
26
26
  {
27
27
  type: "checkbox",
28
- checked: l.enableModeIcons,
29
- onChange: (s) => a.setEnableModeIcons(s.target.checked)
28
+ checked: r.enableModeIcons,
29
+ onChange: (a) => l.setEnableModeIcons(a.target.checked)
30
30
  }
31
31
  ),
32
- /* @__PURE__ */ e("span", { children: r("sidebar.prefs.display.enableModeIcons", "Show mode switcher icons") })
32
+ /* @__PURE__ */ e("span", { children: s("sidebar.prefs.display.enableModeIcons", "Show mode switcher icons") })
33
33
  ] }) }),
34
34
  /* @__PURE__ */ i("fieldset", { className: "nice-sidebar-prefs-field", children: [
35
- /* @__PURE__ */ e("legend", { className: "nice-sidebar-prefs-field__legend", children: r("sidebar.prefs.display.enabledModes", "Visible modes") }),
36
- o.map((s) => {
37
- const d = l.enabledModes.includes(s);
35
+ /* @__PURE__ */ e("legend", { className: "nice-sidebar-prefs-field__legend", children: s("sidebar.prefs.display.enabledModes", "Visible modes") }),
36
+ p.map((a) => {
37
+ const n = r.enabledModes.includes(a);
38
38
  return /* @__PURE__ */ i("label", { className: "nice-sidebar-prefs-field__checkbox", children: [
39
- /* @__PURE__ */ e("input", { type: "checkbox", checked: d, onChange: () => a.toggleMode(s) }),
40
- /* @__PURE__ */ e("span", { children: p(r, s) })
41
- ] }, s);
39
+ /* @__PURE__ */ e("input", { type: "checkbox", checked: n, onChange: () => l.toggleMode(a) }),
40
+ /* @__PURE__ */ e("span", { children: t(s, a) })
41
+ ] }, a);
42
42
  }),
43
- /* @__PURE__ */ e("p", { className: "nice-sidebar-prefs-field__hint", children: r("sidebar.prefs.display.preferencesAlwaysOn", "Preferences is always shown.") })
43
+ /* @__PURE__ */ e("p", { className: "nice-sidebar-prefs-field__hint", children: s("sidebar.prefs.display.preferencesAlwaysOn", "Preferences is always shown.") })
44
44
  ] }),
45
45
  /* @__PURE__ */ i("fieldset", { className: "nice-sidebar-prefs-field", children: [
46
- /* @__PURE__ */ e("legend", { className: "nice-sidebar-prefs-field__legend", children: r("sidebar.prefs.display.maxDepth", "Tree depth per mode") }),
47
- o.filter((s) => s !== "favorites" && s !== "search").map((s) => {
48
- const d = Math.min(l.maxDepth[s] ?? n, n);
46
+ /* @__PURE__ */ e("legend", { className: "nice-sidebar-prefs-field__legend", children: s("sidebar.prefs.display.maxDepth", "Tree depth per mode") }),
47
+ p.filter((a) => a !== "favorites" && a !== "search").map((a) => {
48
+ const n = Math.min(r.maxDepth[a] ?? c, c);
49
49
  return /* @__PURE__ */ i("label", { className: "nice-sidebar-prefs-field__slider", children: [
50
- /* @__PURE__ */ e("span", { className: "nice-sidebar-prefs-field__slider-label", children: p(r, s) }),
50
+ /* @__PURE__ */ e("span", { className: "nice-sidebar-prefs-field__slider-label", children: t(s, a) }),
51
51
  /* @__PURE__ */ e(
52
52
  "input",
53
53
  {
54
54
  type: "range",
55
55
  min: 1,
56
- max: n,
56
+ max: c,
57
57
  step: 1,
58
- value: d,
59
- onChange: (y) => a.setMaxDepth(s, Number(y.target.value))
58
+ value: n,
59
+ onChange: (m) => l.setMaxDepth(a, Number(m.target.value))
60
60
  }
61
61
  ),
62
- /* @__PURE__ */ e("span", { className: "nice-sidebar-prefs-field__slider-value", children: d >= n ? r("sidebar.prefs.display.allLevels", "All") : d })
63
- ] }, s);
62
+ /* @__PURE__ */ e("span", { className: "nice-sidebar-prefs-field__slider-value", children: n >= c ? s("sidebar.prefs.display.allLevels", "All") : n })
63
+ ] }, a);
64
64
  })
65
65
  ] }),
66
66
  /* @__PURE__ */ i("fieldset", { className: "nice-sidebar-prefs-field", children: [
67
- /* @__PURE__ */ e("legend", { className: "nice-sidebar-prefs-field__legend", children: r("sidebar.prefs.display.colorStyle", "Branch colours") }),
67
+ /* @__PURE__ */ e("legend", { className: "nice-sidebar-prefs-field__legend", children: s("sidebar.prefs.display.colorStyle", "Branch colours") }),
68
68
  /* @__PURE__ */ i("label", { className: "nice-sidebar-prefs-field__radio", children: [
69
69
  /* @__PURE__ */ e(
70
70
  "input",
71
71
  {
72
72
  type: "radio",
73
- name: `${c}-color-style`,
74
- checked: l.colorStyle !== "fill",
75
- onChange: () => a.setColorStyle("bar")
73
+ name: `${d}-color-style`,
74
+ checked: r.colorStyle === "theme",
75
+ onChange: () => l.setColorStyle("theme")
76
76
  }
77
77
  ),
78
- /* @__PURE__ */ e("span", { children: r("sidebar.prefs.display.colorStyleBar", "A bar by each item and a line under tabs") })
78
+ /* @__PURE__ */ e("span", { children: s("sidebar.prefs.display.colorStyleTheme", "Theme colours only, shaded by level") })
79
79
  ] }),
80
80
  /* @__PURE__ */ i("label", { className: "nice-sidebar-prefs-field__radio", children: [
81
81
  /* @__PURE__ */ e(
82
82
  "input",
83
83
  {
84
84
  type: "radio",
85
- name: `${c}-color-style`,
86
- checked: l.colorStyle === "fill",
87
- onChange: () => a.setColorStyle("fill")
85
+ name: `${d}-color-style`,
86
+ checked: r.colorStyle === "bar",
87
+ onChange: () => l.setColorStyle("bar")
88
88
  }
89
89
  ),
90
- /* @__PURE__ */ e("span", { children: r("sidebar.prefs.display.colorStyleFill", "Whole items and tabs filled") })
90
+ /* @__PURE__ */ e("span", { children: s("sidebar.prefs.display.colorStyleBar", "A bar by each item and a line under tabs") })
91
+ ] }),
92
+ /* @__PURE__ */ i("label", { className: "nice-sidebar-prefs-field__radio", children: [
93
+ /* @__PURE__ */ e(
94
+ "input",
95
+ {
96
+ type: "radio",
97
+ name: `${d}-color-style`,
98
+ checked: r.colorStyle === "fill",
99
+ onChange: () => l.setColorStyle("fill")
100
+ }
101
+ ),
102
+ /* @__PURE__ */ e("span", { children: s("sidebar.prefs.display.colorStyleFill", "Whole items and tabs filled") })
103
+ ] })
104
+ ] }),
105
+ /* @__PURE__ */ i("fieldset", { className: "nice-sidebar-prefs-field", children: [
106
+ /* @__PURE__ */ e("legend", { className: "nice-sidebar-prefs-field__legend", children: s("sidebar.prefs.display.indent", "Indentation") }),
107
+ /* @__PURE__ */ i("label", { className: "nice-sidebar-prefs-field__radio", children: [
108
+ /* @__PURE__ */ e(
109
+ "input",
110
+ {
111
+ type: "radio",
112
+ name: `${d}-indent`,
113
+ checked: r.indent !== "none",
114
+ onChange: () => l.setIndent("steps")
115
+ }
116
+ ),
117
+ /* @__PURE__ */ e("span", { children: s("sidebar.prefs.display.indentSteps", "A step per level") })
118
+ ] }),
119
+ /* @__PURE__ */ i("label", { className: "nice-sidebar-prefs-field__radio", children: [
120
+ /* @__PURE__ */ e(
121
+ "input",
122
+ {
123
+ type: "radio",
124
+ name: `${d}-indent`,
125
+ checked: r.indent === "none",
126
+ onChange: () => l.setIndent("none")
127
+ }
128
+ ),
129
+ /* @__PURE__ */ e("span", { children: s("sidebar.prefs.display.indentNone", "None — the shading shows the level") })
130
+ ] })
131
+ ] }),
132
+ /* @__PURE__ */ i("fieldset", { className: "nice-sidebar-prefs-field", children: [
133
+ /* @__PURE__ */ e("legend", { className: "nice-sidebar-prefs-field__legend", children: s("sidebar.prefs.display.sticky", "Headers while scrolling") }),
134
+ /* @__PURE__ */ i("label", { className: "nice-sidebar-prefs-field__radio", children: [
135
+ /* @__PURE__ */ e(
136
+ "input",
137
+ {
138
+ type: "radio",
139
+ name: `${d}-sticky`,
140
+ checked: r.stickyHeaders === "path",
141
+ onChange: () => l.setStickyHeaders("path")
142
+ }
143
+ ),
144
+ /* @__PURE__ */ e("span", { children: s("sidebar.prefs.display.stickyPath", "Keep the way to the current place at the top") })
145
+ ] }),
146
+ /* @__PURE__ */ i("label", { className: "nice-sidebar-prefs-field__radio", children: [
147
+ /* @__PURE__ */ e(
148
+ "input",
149
+ {
150
+ type: "radio",
151
+ name: `${d}-sticky`,
152
+ checked: r.stickyHeaders === "root",
153
+ onChange: () => l.setStickyHeaders("root")
154
+ }
155
+ ),
156
+ /* @__PURE__ */ e("span", { children: s("sidebar.prefs.display.stickyRoot", "Keep only the top level") })
157
+ ] }),
158
+ /* @__PURE__ */ i("label", { className: "nice-sidebar-prefs-field__radio", children: [
159
+ /* @__PURE__ */ e(
160
+ "input",
161
+ {
162
+ type: "radio",
163
+ name: `${d}-sticky`,
164
+ checked: r.stickyHeaders === "none",
165
+ onChange: () => l.setStickyHeaders("none")
166
+ }
167
+ ),
168
+ /* @__PURE__ */ e("span", { children: s("sidebar.prefs.display.stickyNone", "Everything scrolls") })
91
169
  ] })
92
170
  ] })
93
171
  ]
94
172
  }
95
173
  );
96
174
  }
97
- process.env.NODE_ENV !== "production" && (M.displayName = "NiceSidebarPrefsDisplay");
175
+ process.env.NODE_ENV !== "production" && (S.displayName = "NiceSidebarPrefsDisplay");
98
176
  export {
99
- M as NiceSidebarPrefsDisplay
177
+ S as NiceSidebarPrefsDisplay
100
178
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./NiceModuleLifecyclePanel-DHHAjwQx.cjs"),e=require("react/jsx-runtime"),i=require("@nice2dev/ui-core"),a=require("react"),z=require("./pickerCommons-BWglYl6J.cjs"),K=require("./NicePagination-CKsAP38Q.cjs"),E=[],W=Object.assign(a.forwardRef(({items:p=E,activeKey:f,collapsed:l=!1,width:x=240,collapsedWidth:d=52,onItemClick:y,onCollapseChange:A,header:g,footer:b,size:_="md",className:R,style:I,id:S,accessMode:D,...C},m)=>{const j=i.useControlId(S),M=i.useNiceAccessMode(D,S),[k,h]=a.useState(new Set),c=a.useCallback(n=>{h(t=>{const o=new Set(t);return o.has(n)?o.delete(n):o.add(n),o})},[]);if(M==="hidden")return null;const u=(n,t=0)=>{const o=n.children&&n.children.length>0,r=k.has(n.key),N=n.key===f;return e.jsxs("li",{className:"nice-sidebar-menu__item",children:[e.jsxs("button",{className:`nice-sidebar-menu__btn ${N?"nice-sidebar-menu__btn--active":""} ${n.disabled?"nice-sidebar-menu__btn--disabled":""}`,style:{paddingLeft:l?void 0:12+t*16},onClick:()=>o?c(n.key):y?.(n),disabled:n.disabled,title:l?n.text:void 0,type:"button",children:[n.icon&&e.jsx("span",{className:"nice-sidebar-menu__icon",children:n.icon}),!l&&e.jsx("span",{className:"nice-sidebar-menu__label",children:n.text}),!l&&n.badge!==void 0&&e.jsx("span",{className:"nice-sidebar-menu__badge",children:n.badge}),!l&&o&&e.jsx("span",{className:"nice-sidebar-menu__chevron",children:e.jsx(i.NiceIcon,{name:r?"chevron-down":"chevron-right",size:14})})]}),o&&r&&!l&&e.jsx("ul",{className:"nice-sidebar-menu__children",children:n.children.map($=>u($,t+1))})]},n.key)};return e.jsxs("nav",{ref:m,id:j,className:`nice-sidebar-menu nice-sidebar-menu--${_} ${l?"nice-sidebar-menu--collapsed":""} ${R??""}`,style:{...I,width:l?d:x},...C,children:[g&&e.jsx("div",{className:"nice-sidebar-menu__header",children:g}),e.jsx("ul",{className:"nice-sidebar-menu__list",role:"list",children:p.map(n=>u(n))}),b&&e.jsx("div",{className:"nice-sidebar-menu__footer",children:b})]})}),{displayName:"NiceSidebarMenu"}),q=Object.assign(a.forwardRef(({items:p=E,activeKey:f,onItemClick:l,brand:x,actions:d,size:y="md",className:A,style:g,id:b,accessMode:_,...R},I)=>{const S=i.useControlId(b),D=i.useNiceAccessMode(_,b),[C,m]=a.useState(null),[j,M]=a.useState(!1),k=a.useRef(null),h=a.useRef(null);i.useRovingFocus(k,{orientation:"horizontal",wrap:!0,typeahead:!0}),i.useRovingFocus(h,{orientation:"vertical",wrap:!0,typeahead:!0}),i.useOverlayFocus(h,{open:C!=null&&!j,modal:!1,onClose:()=>m(null)});const c=n=>{M(!1),m(n)},u=n=>{if(n.key!=="ArrowLeft"&&n.key!=="ArrowRight")return;n.preventDefault();const t=[...k.current?.querySelectorAll(".nice-top-menu__btn")??[]],o=t.findIndex(N=>N.getAttribute("aria-expanded")==="true"),r=t[(o+(n.key==="ArrowRight"?1:-1)+t.length)%t.length];m(null),r?.focus()};return D==="hidden"?null:e.jsxs("nav",{ref:I,id:S,className:`nice-top-menu nice-top-menu--${y} ${A??""}`,style:g,...R,children:[x&&e.jsx("div",{className:"nice-top-menu__brand",children:x}),e.jsx("ul",{className:"nice-top-menu__items",role:"menubar",ref:k,children:p.map(n=>{const t=n.children&&n.children.length>0,o=C===n.key;return e.jsxs("li",{className:"nice-top-menu__item",onMouseEnter:()=>{t&&(M(!0),m(n.key))},onMouseLeave:()=>t&&m(null),children:[e.jsxs("button",{className:`nice-top-menu__btn ${n.key===f?"nice-top-menu__btn--active":""}`,onClick:()=>t?o?m(null):c(n.key):l?.(n),onKeyDown:r=>{const N=r.nativeEvent.niceSource;t&&r.key==="ArrowDown"&&N!=="gamepad"&&(r.preventDefault(),c(n.key))},role:"menuitem","aria-haspopup":t,"aria-expanded":o,disabled:n.disabled,type:"button",children:[n.icon&&e.jsx("span",{children:n.icon}),e.jsx("span",{children:n.text}),t&&e.jsx("span",{className:"nice-top-menu__chevron",children:e.jsx(i.NiceIcon,{name:"chevron-down",size:14})})]}),t&&o&&e.jsx("ul",{className:"nice-top-menu__dropdown",role:"menu",ref:h,onKeyDown:u,children:n.children.map(r=>e.jsx("li",{children:e.jsxs("button",{className:`nice-top-menu__dropdown-btn ${r.key===f?"nice-top-menu__dropdown-btn--active":""}`,onClick:()=>{l?.(r),m(null)},disabled:r.disabled,role:"menuitem",type:"button",children:[r.icon&&e.jsx("span",{children:r.icon}),e.jsx("span",{children:r.text}),r.badge!==void 0&&e.jsx("span",{className:"nice-top-menu__badge",children:r.badge})]})},r.key))})]},n.key)})}),d&&e.jsx("div",{className:"nice-top-menu__actions",children:d})]})}),{displayName:"NiceTopMenu"}),U=[],H=Object.assign(a.forwardRef(({tabs:p=U,activeTab:f,onTabChange:l,onItemClick:x,minimized:d=!1,onMinimizeToggle:y,size:A="md",className:g,style:b,id:_,accessMode:R,...I},S)=>{const D=a.useRef(null);i.useRovingFocus(D,{orientation:"horizontal",wrap:!0,activateOnMove:!0});const C=i.useControlId(_),m=i.useNiceAccessMode(R,_),{t:j}=i.useNiceTranslation(),[M,k]=a.useState(void 0),h=f??M??p[0]?.key,c=p.find(n=>n.key===h),u=a.useCallback(n=>{k(n),l?.(n)},[l]);return m==="hidden"?null:e.jsxs("div",{ref:S,id:C,className:`nice-ribbon-menu nice-ribbon-menu--${A} ${d?"nice-ribbon-menu--minimized":""} ${g??""}`,style:b,...I,children:[e.jsxs("div",{className:"nice-ribbon-menu__tabs",ref:D,role:"tablist",children:[p.map(n=>e.jsx("button",{className:`nice-ribbon-menu__tab ${n.key===h?"nice-ribbon-menu__tab--active":""}`,onClick:()=>u(n.key),role:"tab","aria-selected":n.key===h,type:"button",children:n.label},n.key)),e.jsx("button",{className:"nice-ribbon-menu__minimize",onClick:()=>y?.(!d),type:"button","aria-label":d?j("nav.expand","Expand"):j("nav.collapse","Collapse"),children:e.jsx(i.NiceIcon,{name:d?"chevron-down":"chevron-up",size:14})})]}),!d&&c&&e.jsx("div",{className:"nice-ribbon-menu__panel",role:"tabpanel",children:c.groups.map((n,t)=>e.jsxs("div",{className:"nice-ribbon-menu__group",children:[e.jsx("div",{className:"nice-ribbon-menu__group-items",children:n.items.map(o=>e.jsxs("button",{className:"nice-ribbon-menu__item",onClick:()=>x?.(o),disabled:o.disabled,type:"button",children:[o.icon&&e.jsx("span",{className:"nice-ribbon-menu__item-icon",children:o.icon}),e.jsx("span",{className:"nice-ribbon-menu__item-label",children:o.text})]},o.key))}),e.jsx("div",{className:"nice-ribbon-menu__group-label",children:n.label})]},t))})]})}),{displayName:"NiceRibbonMenu"}),V=Object.assign(a.forwardRef(({items:p=E,activeKey:f,onItemClick:l,position:x="bottom",autoHide:d=!1,iconSize:y=40,size:A="md",className:g,style:b,id:_,accessMode:R,...I},S)=>{const D=i.useControlId(_),C=i.useNiceAccessMode(R,_),[m,j]=a.useState(!1),[M,k]=a.useState(!1),h=!d||m||M;return C==="hidden"?null:e.jsx("div",{ref:S,id:D,className:`nice-dock-menu nice-dock-menu--${x} nice-dock-menu--${A} ${d&&!h?"nice-dock-menu--hidden":""} ${g??""}`,style:b,onMouseEnter:()=>j(!0),onMouseLeave:()=>j(!1),onFocus:()=>k(!0),onBlur:c=>{c.currentTarget.contains(c.relatedTarget)||k(!1)},...I,children:e.jsx("div",{className:"nice-dock-menu__items",children:p.map(c=>e.jsxs("button",{className:`nice-dock-menu__item ${c.key===f?"nice-dock-menu__item--active":""}`,onClick:()=>l?.(c),disabled:c.disabled,title:c.text,"aria-label":c.text,type:"button",style:{width:y,height:y},children:[c.icon?e.jsx("span",{className:"nice-dock-menu__icon",children:c.icon}):e.jsx("span",{children:c.text[0]}),c.badge!==void 0&&e.jsx("span",{className:"nice-dock-menu__badge",children:c.badge})]},c.key))})})}),{displayName:"NiceDockMenu"}),Y=Object.assign(a.forwardRef(({items:p=E,activeKey:f,onItemClick:l,open:x,onOpenChange:d,position:y="left",panelWidth:A=280,header:g,footer:b,size:_="md",className:R,style:I,id:S,accessMode:D,...C},m)=>{const j=i.useControlId(S),M=i.useNiceAccessMode(D,S),{t:k}=i.useNiceTranslation(),[h,c]=a.useState(!1),u=x??h,n=a.useCallback(v=>{c(v),d?.(v)},[d]),t=a.useCallback(()=>n(!u),[u,n]),o=a.useCallback(v=>{l?.(v),n(!1)},[l,n]),r=a.useRef(null),N=a.useRef(null),$=a.useRef(null);return a.useLayoutEffect(()=>{$.current?.toggleAttribute("inert",!u)},[u]),i.useMenuButton(r,N,{open:u,onOpenChange:n,closeOnFocusOut:!1,closeOnOutsidePress:!1}),M==="hidden"?null:e.jsxs("div",{ref:m,id:j,className:`nice-hamburger-menu nice-hamburger-menu--${_} ${R??""}`,style:I,...C,children:[e.jsx("button",{ref:r,className:"nice-hamburger-menu__trigger",onClick:t,"aria-label":k("nav.menu","Menu"),"aria-haspopup":"menu","aria-expanded":u,type:"button",children:e.jsxs("span",{className:`nice-hamburger-menu__icon ${u?"nice-hamburger-menu__icon--open":""}`,children:[e.jsx("span",{}),e.jsx("span",{}),e.jsx("span",{})]})}),u&&e.jsx("div",{className:"nice-hamburger-menu__backdrop",onClick:t,"aria-hidden":!0}),e.jsxs("div",{ref:$,className:`nice-hamburger-menu__panel nice-hamburger-menu__panel--${y} ${u?"nice-hamburger-menu__panel--open":""}`,style:{width:A},children:[g&&e.jsx("div",{className:"nice-hamburger-menu__header",children:g}),e.jsx("ul",{className:"nice-hamburger-menu__list",role:"menu",ref:N,children:p.map(v=>e.jsx("li",{children:e.jsxs("button",{className:`nice-hamburger-menu__item ${v.key===f?"nice-hamburger-menu__item--active":""}`,onClick:()=>o(v),disabled:v.disabled,role:"menuitem",type:"button",children:[v.icon&&e.jsx("span",{className:"nice-hamburger-menu__item-icon",children:v.icon}),e.jsx("span",{children:v.text}),v.badge!==void 0&&e.jsx("span",{className:"nice-hamburger-menu__item-badge",children:v.badge})]})},v.key))}),b&&e.jsx("div",{className:"nice-hamburger-menu__footer",children:b})]})]})}),{displayName:"NiceHamburgerMenu"}),J=Object.assign(a.forwardRef(({canGoBack:p=!1,canGoForward:f=!1,onBack:l,onForward:x,onRefresh:d,enableShortcuts:y=!0,showRefresh:A=!0,showStop:g=!0,isLoading:b=!1,onStop:_,size:R="md",variant:I="default",tooltipPosition:S="bottom",backIcon:D,forwardIcon:C,refreshIcon:m,stopIcon:j,className:M,style:k,id:h,accessMode:c,disabled:u,...n},t)=>{const o=i.useControlId(h),r=i.useNiceAccessMode(c,h),{t:N}=i.useNiceTranslation();if(a.useEffect(()=>{if(!y||u)return;const T=w=>{const O=w.altKey,B=w.ctrlKey||w.metaKey;O&&w.key==="ArrowLeft"?(w.preventDefault(),p&&l?.()):O&&w.key==="ArrowRight"?(w.preventDefault(),f&&x?.()):w.key==="F5"||B&&w.key==="r"?(w.preventDefault(),b?_?.():d?.()):w.key==="Escape"&&b&&(w.preventDefault(),_?.())};return window.addEventListener("keydown",T),()=>window.removeEventListener("keydown",T)},[y,u,p,f,b,l,x,d,_]),r==="hidden")return null;const $=r==="disabled"||u,v=D??e.jsx(i.NiceIcon,{name:"chevron-left",size:16}),F=C??e.jsx(i.NiceIcon,{name:"chevron-right",size:16}),L=m??e.jsx(i.NiceIcon,{name:"refresh",size:16}),P=j??e.jsx(i.NiceIcon,{name:"close",size:16});return e.jsxs("div",{ref:t,id:o,className:`nice-nav-controls nice-nav-controls--${R} nice-nav-controls--${I}${$?" nice-nav-controls--disabled":""}${M?` ${M}`:""}`,style:k,role:"navigation","aria-label":N("nav.controls","Navigation controls"),...n,children:[e.jsx("button",{type:"button",className:`nice-nav-controls__btn nice-nav-controls__btn--back${p?"":" nice-nav-controls__btn--disabled"}`,onClick:l,disabled:$||!p,"aria-label":N("nav.back","Back"),title:`${N("nav.back","Back")} (Alt+←)`,children:v}),e.jsx("button",{type:"button",className:`nice-nav-controls__btn nice-nav-controls__btn--forward${f?"":" nice-nav-controls__btn--disabled"}`,onClick:x,disabled:$||!f,"aria-label":N("nav.forward","Forward"),title:`${N("nav.forward","Forward")} (Alt+→)`,children:F}),(A||g&&b)&&(b?e.jsx("button",{type:"button",className:"nice-nav-controls__btn nice-nav-controls__btn--stop nice-nav-controls__btn--loading",onClick:_,disabled:$,"aria-label":N("nav.stop","Stop"),title:`${N("nav.stop","Stop")} (Esc)`,children:P}):e.jsx("button",{type:"button",className:"nice-nav-controls__btn nice-nav-controls__btn--refresh",onClick:d,disabled:$,"aria-label":N("nav.refresh","Refresh"),title:`${N("nav.refresh","Refresh")} (F5)`,children:L}))]})}),{displayName:"NiceNavigationControls"});exports.DEFAULT_SIDEBAR_PREFS=s.DEFAULT_SIDEBAR_PREFS;exports.DesktopContextMenu=s.DesktopContextMenu;exports.DesktopGrid=s.DesktopGrid;exports.DesktopStartMenu=s.DesktopStartMenu;exports.DesktopSystemTray=s.DesktopSystemTray;exports.DesktopTaskbar=s.DesktopTaskbar;exports.NiceAccordion=s.NiceAccordion;exports.NiceAppLayout=s.NiceAppLayout;exports.NiceAuthButtons=s.NiceAuthButtons;exports.NiceBreadcrumb=s.NiceBreadcrumb;exports.NiceCard=s.NiceCard;exports.NiceConsole=s.NiceConsole;exports.NiceContextMenu=s.NiceContextMenu;exports.NiceDashboardLayout=s.NiceDashboardLayout;exports.NiceDashboardShell=s.NiceDashboardShell;exports.NiceDesktop=s.NiceDesktop;exports.NiceDock=s.NiceDock;exports.NiceDynamicSidebar=s.NiceDynamicSidebar;exports.NiceHybridShell=s.NiceHybridShell;exports.NiceKioskShell=s.NiceKioskShell;exports.NiceMdiWorkspace=s.NiceMdiWorkspace;exports.NiceMenu=s.NiceMenu;exports.NiceMinimalShell=s.NiceMinimalShell;exports.NiceModeSelector=s.NiceModeSelector;exports.NiceModernShell=s.NiceModernShell;exports.NiceModuleLifecyclePanel=s.NiceModuleLifecyclePanel;exports.NiceNavMenu=s.NiceNavMenu;exports.NiceNavbar=s.NiceNavbar;exports.NiceOrganizationProfileForm=s.NiceOrganizationProfileForm;exports.NicePwaShell=s.NicePwaShell;exports.NiceSetupWizard=s.NiceSetupWizard;exports.NiceSidebarNav=s.NiceSidebarNav;exports.NiceSplitter=s.NiceSplitter;exports.NiceUserMenu=s.NiceUserMenu;exports.NiceWizard=s.NiceWizard;exports.SIDEBAR_DEFAULT_FAVORITE_LIST=s.SIDEBAR_DEFAULT_FAVORITE_LIST;exports.SIDEBAR_MODE_META=s.SIDEBAR_MODE_META;exports.findSidebarItemByRoute=s.findSidebarItemByRoute;exports.mapSidebarViews=s.mapSidebarViews;exports.sidebarModeLabel=s.sidebarModeLabel;exports.walkSidebarNav=s.walkSidebarNav;exports.NiceTabs=z.NiceTabs;exports.NicePagination=K.NicePagination;exports.NiceDockMenu=V;exports.NiceHamburgerMenu=Y;exports.NiceNavigationControls=J;exports.NiceRibbonMenu=H;exports.NiceSidebarMenu=W;exports.NiceTopMenu=q;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./NiceModuleLifecyclePanel-ugNtHimh.cjs"),e=require("react/jsx-runtime"),i=require("@nice2dev/ui-core"),a=require("react"),z=require("./pickerCommons-BWglYl6J.cjs"),K=require("./NicePagination-D7XxeNFz.cjs"),E=[],W=Object.assign(a.forwardRef(({items:p=E,activeKey:f,collapsed:l=!1,width:x=240,collapsedWidth:d=52,onItemClick:y,onCollapseChange:A,header:g,footer:b,size:_="md",className:R,style:I,id:S,accessMode:D,...C},m)=>{const j=i.useControlId(S),M=i.useNiceAccessMode(D,S),[k,h]=a.useState(new Set),c=a.useCallback(n=>{h(t=>{const o=new Set(t);return o.has(n)?o.delete(n):o.add(n),o})},[]);if(M==="hidden")return null;const u=(n,t=0)=>{const o=n.children&&n.children.length>0,r=k.has(n.key),N=n.key===f;return e.jsxs("li",{className:"nice-sidebar-menu__item",children:[e.jsxs("button",{className:`nice-sidebar-menu__btn ${N?"nice-sidebar-menu__btn--active":""} ${n.disabled?"nice-sidebar-menu__btn--disabled":""}`,style:{paddingLeft:l?void 0:12+t*16},onClick:()=>o?c(n.key):y?.(n),disabled:n.disabled,title:l?n.text:void 0,type:"button",children:[n.icon&&e.jsx("span",{className:"nice-sidebar-menu__icon",children:n.icon}),!l&&e.jsx("span",{className:"nice-sidebar-menu__label",children:n.text}),!l&&n.badge!==void 0&&e.jsx("span",{className:"nice-sidebar-menu__badge",children:n.badge}),!l&&o&&e.jsx("span",{className:"nice-sidebar-menu__chevron",children:e.jsx(i.NiceIcon,{name:r?"chevron-down":"chevron-right",size:14})})]}),o&&r&&!l&&e.jsx("ul",{className:"nice-sidebar-menu__children",children:n.children.map($=>u($,t+1))})]},n.key)};return e.jsxs("nav",{ref:m,id:j,className:`nice-sidebar-menu nice-sidebar-menu--${_} ${l?"nice-sidebar-menu--collapsed":""} ${R??""}`,style:{...I,width:l?d:x},...C,children:[g&&e.jsx("div",{className:"nice-sidebar-menu__header",children:g}),e.jsx("ul",{className:"nice-sidebar-menu__list",role:"list",children:p.map(n=>u(n))}),b&&e.jsx("div",{className:"nice-sidebar-menu__footer",children:b})]})}),{displayName:"NiceSidebarMenu"}),q=Object.assign(a.forwardRef(({items:p=E,activeKey:f,onItemClick:l,brand:x,actions:d,size:y="md",className:A,style:g,id:b,accessMode:_,...R},I)=>{const S=i.useControlId(b),D=i.useNiceAccessMode(_,b),[C,m]=a.useState(null),[j,M]=a.useState(!1),k=a.useRef(null),h=a.useRef(null);i.useRovingFocus(k,{orientation:"horizontal",wrap:!0,typeahead:!0}),i.useRovingFocus(h,{orientation:"vertical",wrap:!0,typeahead:!0}),i.useOverlayFocus(h,{open:C!=null&&!j,modal:!1,onClose:()=>m(null)});const c=n=>{M(!1),m(n)},u=n=>{if(n.key!=="ArrowLeft"&&n.key!=="ArrowRight")return;n.preventDefault();const t=[...k.current?.querySelectorAll(".nice-top-menu__btn")??[]],o=t.findIndex(N=>N.getAttribute("aria-expanded")==="true"),r=t[(o+(n.key==="ArrowRight"?1:-1)+t.length)%t.length];m(null),r?.focus()};return D==="hidden"?null:e.jsxs("nav",{ref:I,id:S,className:`nice-top-menu nice-top-menu--${y} ${A??""}`,style:g,...R,children:[x&&e.jsx("div",{className:"nice-top-menu__brand",children:x}),e.jsx("ul",{className:"nice-top-menu__items",role:"menubar",ref:k,children:p.map(n=>{const t=n.children&&n.children.length>0,o=C===n.key;return e.jsxs("li",{className:"nice-top-menu__item",onMouseEnter:()=>{t&&(M(!0),m(n.key))},onMouseLeave:()=>t&&m(null),children:[e.jsxs("button",{className:`nice-top-menu__btn ${n.key===f?"nice-top-menu__btn--active":""}`,onClick:()=>t?o?m(null):c(n.key):l?.(n),onKeyDown:r=>{const N=r.nativeEvent.niceSource;t&&r.key==="ArrowDown"&&N!=="gamepad"&&(r.preventDefault(),c(n.key))},role:"menuitem","aria-haspopup":t,"aria-expanded":o,disabled:n.disabled,type:"button",children:[n.icon&&e.jsx("span",{children:n.icon}),e.jsx("span",{children:n.text}),t&&e.jsx("span",{className:"nice-top-menu__chevron",children:e.jsx(i.NiceIcon,{name:"chevron-down",size:14})})]}),t&&o&&e.jsx("ul",{className:"nice-top-menu__dropdown",role:"menu",ref:h,onKeyDown:u,children:n.children.map(r=>e.jsx("li",{children:e.jsxs("button",{className:`nice-top-menu__dropdown-btn ${r.key===f?"nice-top-menu__dropdown-btn--active":""}`,onClick:()=>{l?.(r),m(null)},disabled:r.disabled,role:"menuitem",type:"button",children:[r.icon&&e.jsx("span",{children:r.icon}),e.jsx("span",{children:r.text}),r.badge!==void 0&&e.jsx("span",{className:"nice-top-menu__badge",children:r.badge})]})},r.key))})]},n.key)})}),d&&e.jsx("div",{className:"nice-top-menu__actions",children:d})]})}),{displayName:"NiceTopMenu"}),U=[],H=Object.assign(a.forwardRef(({tabs:p=U,activeTab:f,onTabChange:l,onItemClick:x,minimized:d=!1,onMinimizeToggle:y,size:A="md",className:g,style:b,id:_,accessMode:R,...I},S)=>{const D=a.useRef(null);i.useRovingFocus(D,{orientation:"horizontal",wrap:!0,activateOnMove:!0});const C=i.useControlId(_),m=i.useNiceAccessMode(R,_),{t:j}=i.useNiceTranslation(),[M,k]=a.useState(void 0),h=f??M??p[0]?.key,c=p.find(n=>n.key===h),u=a.useCallback(n=>{k(n),l?.(n)},[l]);return m==="hidden"?null:e.jsxs("div",{ref:S,id:C,className:`nice-ribbon-menu nice-ribbon-menu--${A} ${d?"nice-ribbon-menu--minimized":""} ${g??""}`,style:b,...I,children:[e.jsxs("div",{className:"nice-ribbon-menu__tabs",ref:D,role:"tablist",children:[p.map(n=>e.jsx("button",{className:`nice-ribbon-menu__tab ${n.key===h?"nice-ribbon-menu__tab--active":""}`,onClick:()=>u(n.key),role:"tab","aria-selected":n.key===h,type:"button",children:n.label},n.key)),e.jsx("button",{className:"nice-ribbon-menu__minimize",onClick:()=>y?.(!d),type:"button","aria-label":d?j("nav.expand","Expand"):j("nav.collapse","Collapse"),children:e.jsx(i.NiceIcon,{name:d?"chevron-down":"chevron-up",size:14})})]}),!d&&c&&e.jsx("div",{className:"nice-ribbon-menu__panel",role:"tabpanel",children:c.groups.map((n,t)=>e.jsxs("div",{className:"nice-ribbon-menu__group",children:[e.jsx("div",{className:"nice-ribbon-menu__group-items",children:n.items.map(o=>e.jsxs("button",{className:"nice-ribbon-menu__item",onClick:()=>x?.(o),disabled:o.disabled,type:"button",children:[o.icon&&e.jsx("span",{className:"nice-ribbon-menu__item-icon",children:o.icon}),e.jsx("span",{className:"nice-ribbon-menu__item-label",children:o.text})]},o.key))}),e.jsx("div",{className:"nice-ribbon-menu__group-label",children:n.label})]},t))})]})}),{displayName:"NiceRibbonMenu"}),V=Object.assign(a.forwardRef(({items:p=E,activeKey:f,onItemClick:l,position:x="bottom",autoHide:d=!1,iconSize:y=40,size:A="md",className:g,style:b,id:_,accessMode:R,...I},S)=>{const D=i.useControlId(_),C=i.useNiceAccessMode(R,_),[m,j]=a.useState(!1),[M,k]=a.useState(!1),h=!d||m||M;return C==="hidden"?null:e.jsx("div",{ref:S,id:D,className:`nice-dock-menu nice-dock-menu--${x} nice-dock-menu--${A} ${d&&!h?"nice-dock-menu--hidden":""} ${g??""}`,style:b,onMouseEnter:()=>j(!0),onMouseLeave:()=>j(!1),onFocus:()=>k(!0),onBlur:c=>{c.currentTarget.contains(c.relatedTarget)||k(!1)},...I,children:e.jsx("div",{className:"nice-dock-menu__items",children:p.map(c=>e.jsxs("button",{className:`nice-dock-menu__item ${c.key===f?"nice-dock-menu__item--active":""}`,onClick:()=>l?.(c),disabled:c.disabled,title:c.text,"aria-label":c.text,type:"button",style:{width:y,height:y},children:[c.icon?e.jsx("span",{className:"nice-dock-menu__icon",children:c.icon}):e.jsx("span",{children:c.text[0]}),c.badge!==void 0&&e.jsx("span",{className:"nice-dock-menu__badge",children:c.badge})]},c.key))})})}),{displayName:"NiceDockMenu"}),Y=Object.assign(a.forwardRef(({items:p=E,activeKey:f,onItemClick:l,open:x,onOpenChange:d,position:y="left",panelWidth:A=280,header:g,footer:b,size:_="md",className:R,style:I,id:S,accessMode:D,...C},m)=>{const j=i.useControlId(S),M=i.useNiceAccessMode(D,S),{t:k}=i.useNiceTranslation(),[h,c]=a.useState(!1),u=x??h,n=a.useCallback(v=>{c(v),d?.(v)},[d]),t=a.useCallback(()=>n(!u),[u,n]),o=a.useCallback(v=>{l?.(v),n(!1)},[l,n]),r=a.useRef(null),N=a.useRef(null),$=a.useRef(null);return a.useLayoutEffect(()=>{$.current?.toggleAttribute("inert",!u)},[u]),i.useMenuButton(r,N,{open:u,onOpenChange:n,closeOnFocusOut:!1,closeOnOutsidePress:!1}),M==="hidden"?null:e.jsxs("div",{ref:m,id:j,className:`nice-hamburger-menu nice-hamburger-menu--${_} ${R??""}`,style:I,...C,children:[e.jsx("button",{ref:r,className:"nice-hamburger-menu__trigger",onClick:t,"aria-label":k("nav.menu","Menu"),"aria-haspopup":"menu","aria-expanded":u,type:"button",children:e.jsxs("span",{className:`nice-hamburger-menu__icon ${u?"nice-hamburger-menu__icon--open":""}`,children:[e.jsx("span",{}),e.jsx("span",{}),e.jsx("span",{})]})}),u&&e.jsx("div",{className:"nice-hamburger-menu__backdrop",onClick:t,"aria-hidden":!0}),e.jsxs("div",{ref:$,className:`nice-hamburger-menu__panel nice-hamburger-menu__panel--${y} ${u?"nice-hamburger-menu__panel--open":""}`,style:{width:A},children:[g&&e.jsx("div",{className:"nice-hamburger-menu__header",children:g}),e.jsx("ul",{className:"nice-hamburger-menu__list",role:"menu",ref:N,children:p.map(v=>e.jsx("li",{children:e.jsxs("button",{className:`nice-hamburger-menu__item ${v.key===f?"nice-hamburger-menu__item--active":""}`,onClick:()=>o(v),disabled:v.disabled,role:"menuitem",type:"button",children:[v.icon&&e.jsx("span",{className:"nice-hamburger-menu__item-icon",children:v.icon}),e.jsx("span",{children:v.text}),v.badge!==void 0&&e.jsx("span",{className:"nice-hamburger-menu__item-badge",children:v.badge})]})},v.key))}),b&&e.jsx("div",{className:"nice-hamburger-menu__footer",children:b})]})]})}),{displayName:"NiceHamburgerMenu"}),J=Object.assign(a.forwardRef(({canGoBack:p=!1,canGoForward:f=!1,onBack:l,onForward:x,onRefresh:d,enableShortcuts:y=!0,showRefresh:A=!0,showStop:g=!0,isLoading:b=!1,onStop:_,size:R="md",variant:I="default",tooltipPosition:S="bottom",backIcon:D,forwardIcon:C,refreshIcon:m,stopIcon:j,className:M,style:k,id:h,accessMode:c,disabled:u,...n},t)=>{const o=i.useControlId(h),r=i.useNiceAccessMode(c,h),{t:N}=i.useNiceTranslation();if(a.useEffect(()=>{if(!y||u)return;const T=w=>{const O=w.altKey,B=w.ctrlKey||w.metaKey;O&&w.key==="ArrowLeft"?(w.preventDefault(),p&&l?.()):O&&w.key==="ArrowRight"?(w.preventDefault(),f&&x?.()):w.key==="F5"||B&&w.key==="r"?(w.preventDefault(),b?_?.():d?.()):w.key==="Escape"&&b&&(w.preventDefault(),_?.())};return window.addEventListener("keydown",T),()=>window.removeEventListener("keydown",T)},[y,u,p,f,b,l,x,d,_]),r==="hidden")return null;const $=r==="disabled"||u,v=D??e.jsx(i.NiceIcon,{name:"chevron-left",size:16}),F=C??e.jsx(i.NiceIcon,{name:"chevron-right",size:16}),L=m??e.jsx(i.NiceIcon,{name:"refresh",size:16}),P=j??e.jsx(i.NiceIcon,{name:"close",size:16});return e.jsxs("div",{ref:t,id:o,className:`nice-nav-controls nice-nav-controls--${R} nice-nav-controls--${I}${$?" nice-nav-controls--disabled":""}${M?` ${M}`:""}`,style:k,role:"navigation","aria-label":N("nav.controls","Navigation controls"),...n,children:[e.jsx("button",{type:"button",className:`nice-nav-controls__btn nice-nav-controls__btn--back${p?"":" nice-nav-controls__btn--disabled"}`,onClick:l,disabled:$||!p,"aria-label":N("nav.back","Back"),title:`${N("nav.back","Back")} (Alt+←)`,children:v}),e.jsx("button",{type:"button",className:`nice-nav-controls__btn nice-nav-controls__btn--forward${f?"":" nice-nav-controls__btn--disabled"}`,onClick:x,disabled:$||!f,"aria-label":N("nav.forward","Forward"),title:`${N("nav.forward","Forward")} (Alt+→)`,children:F}),(A||g&&b)&&(b?e.jsx("button",{type:"button",className:"nice-nav-controls__btn nice-nav-controls__btn--stop nice-nav-controls__btn--loading",onClick:_,disabled:$,"aria-label":N("nav.stop","Stop"),title:`${N("nav.stop","Stop")} (Esc)`,children:P}):e.jsx("button",{type:"button",className:"nice-nav-controls__btn nice-nav-controls__btn--refresh",onClick:d,disabled:$,"aria-label":N("nav.refresh","Refresh"),title:`${N("nav.refresh","Refresh")} (F5)`,children:L}))]})}),{displayName:"NiceNavigationControls"});exports.DEFAULT_SIDEBAR_PREFS=s.DEFAULT_SIDEBAR_PREFS;exports.DesktopContextMenu=s.DesktopContextMenu;exports.DesktopGrid=s.DesktopGrid;exports.DesktopStartMenu=s.DesktopStartMenu;exports.DesktopSystemTray=s.DesktopSystemTray;exports.DesktopTaskbar=s.DesktopTaskbar;exports.NiceAccordion=s.NiceAccordion;exports.NiceAppLayout=s.NiceAppLayout;exports.NiceAuthButtons=s.NiceAuthButtons;exports.NiceBreadcrumb=s.NiceBreadcrumb;exports.NiceCard=s.NiceCard;exports.NiceConsole=s.NiceConsole;exports.NiceContextMenu=s.NiceContextMenu;exports.NiceDashboardLayout=s.NiceDashboardLayout;exports.NiceDashboardShell=s.NiceDashboardShell;exports.NiceDesktop=s.NiceDesktop;exports.NiceDock=s.NiceDock;exports.NiceDynamicSidebar=s.NiceDynamicSidebar;exports.NiceHybridShell=s.NiceHybridShell;exports.NiceKioskShell=s.NiceKioskShell;exports.NiceMdiWorkspace=s.NiceMdiWorkspace;exports.NiceMenu=s.NiceMenu;exports.NiceMinimalShell=s.NiceMinimalShell;exports.NiceModeSelector=s.NiceModeSelector;exports.NiceModernShell=s.NiceModernShell;exports.NiceModuleLifecyclePanel=s.NiceModuleLifecyclePanel;exports.NiceNavMenu=s.NiceNavMenu;exports.NiceNavbar=s.NiceNavbar;exports.NiceOrganizationProfileForm=s.NiceOrganizationProfileForm;exports.NicePwaShell=s.NicePwaShell;exports.NiceSetupWizard=s.NiceSetupWizard;exports.NiceSidebarNav=s.NiceSidebarNav;exports.NiceSplitter=s.NiceSplitter;exports.NiceUserMenu=s.NiceUserMenu;exports.NiceWizard=s.NiceWizard;exports.SIDEBAR_DEFAULT_FAVORITE_LIST=s.SIDEBAR_DEFAULT_FAVORITE_LIST;exports.SIDEBAR_MODE_META=s.SIDEBAR_MODE_META;exports.findSidebarItemByRoute=s.findSidebarItemByRoute;exports.mapSidebarViews=s.mapSidebarViews;exports.sidebarModeLabel=s.sidebarModeLabel;exports.walkSidebarNav=s.walkSidebarNav;exports.NiceTabs=z.NiceTabs;exports.NicePagination=K.NicePagination;exports.NiceDockMenu=V;exports.NiceHamburgerMenu=Y;exports.NiceNavigationControls=J;exports.NiceRibbonMenu=H;exports.NiceSidebarMenu=W;exports.NiceTopMenu=q;
@@ -2296,6 +2296,11 @@ declare interface SetupWizardStep {
2296
2296
  * The step that completes the wizard (1.3.14). When any step is `final`, only such a step calls
2297
2297
  * `onComplete`; every other one — the last one in view included — goes on to its `nextStep`
2298
2298
  * (or the next one) with `labels.next`. Without any `final` step, the last step completes.
2299
+ *
2300
+ * `false` (1.3.16): this step never completes, even while it is the only one or the last one in
2301
+ * view — for steps the host adds after it (a first choice that decides every step after it). Its
2302
+ * main button reads `labels.next`; pressed before the next step exists (e.g. the host adds the
2303
+ * steps in `validate`), the wizard moves on as soon as that step arrives.
2299
2304
  */
2300
2305
  final?: boolean;
2301
2306
  }
@@ -2333,6 +2338,9 @@ export declare interface SidebarNavBranchColors {
2333
2338
  levelColors?: string[];
2334
2339
  }
2335
2340
 
2341
+ /** How the sidebar tree and NavShell's tabs show colour — see {@link SidebarNavUserPrefs.colorStyle}. */
2342
+ export declare type SidebarNavColorStyle = 'theme' | 'bar' | 'fill';
2343
+
2336
2344
  /**
2337
2345
  * Top-level data node: one data source with all its navigation children.
2338
2346
  * modules → used in 'all' mode (depth: source → module → view → …)
@@ -2533,16 +2541,34 @@ export declare interface SidebarNavUserPrefs {
2533
2541
  */
2534
2542
  itemOrder: Partial<Record<SidebarNavMode, string[]>>;
2535
2543
  /**
2536
- * How a level / branch colour shows (1.3.3; `levelColors`, a branch's `color`):
2537
- * - `'bar'` (default): a bar in the colour left of each row's arrow, and NavShell's tabs
2538
- * underlined in it;
2539
- * - `'fill'`: the whole row filled with it (text picked for contrast), and the tabs tinted
2540
- * with a bar along the top — the look of 1.3.2.
2544
+ * How the tree is coloured (1.3.3; `'theme'` and the default since 1.3.16):
2545
+ * - `'theme'` (default): the theme's colours, shaded by level — the source header in the
2546
+ * primary, each level under it lighter, pages a faint tint of their level; a theme's
2547
+ * `nesting.sidebar` or the sidebar's `levelColors` replaces the shades. Branch colours (e.g.
2548
+ * databases) paint nothing, and NavShell's tabs stay uncoloured;
2549
+ * - `'bar'`: the same shades, plus a branch's colour as a bar on the left edge of its rows and
2550
+ * NavShell's tabs underlined in it;
2551
+ * - `'fill'`: rows filled with the level / branch colours (text picked for contrast), and the
2552
+ * tabs tinted with a bar along the top — the look of 1.3.2.
2541
2553
  *
2542
2554
  * Set from the Display page of the preferences; `preferences={{ colorStyle: 'fill' }}` makes
2543
2555
  * `'fill'` the default.
2544
2556
  */
2545
- colorStyle: 'bar' | 'fill';
2557
+ colorStyle: SidebarNavColorStyle;
2558
+ /**
2559
+ * Indentation of the tree (1.3.16): `'steps'` (default) — a step per level; `'none'` — every
2560
+ * level starts at the same place and the shades alone show the level.
2561
+ */
2562
+ indent: 'steps' | 'none';
2563
+ /**
2564
+ * What stays in view while the tree scrolls (1.3.16):
2565
+ * - `'path'` (default): the source header above the tree, outside its scroll area (the
2566
+ * scrollbar starts a level lower), and the headers above the first visible row stuck under it,
2567
+ * one per level;
2568
+ * - `'root'`: only the source header stays;
2569
+ * - `'none'`: everything scrolls — the most room on a short screen.
2570
+ */
2571
+ stickyHeaders: 'path' | 'root' | 'none';
2546
2572
  /**
2547
2573
  * How NiceNavShell opens pages when it offers tabs (`tabsMode="enabled"`, 1.3.4):
2548
2574
  * - `'auto'` (default): in tabs in an installed app (a window of its own, no browser tab strip),