@nice2dev/ui 1.3.15 → 1.3.17

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 (38) hide show
  1. package/CHANGELOG.md +90 -0
  2. package/dist/{NiceDataGrid-BwiBkE3u.cjs → NiceDataGrid-aNPAHsWy.cjs} +1 -1
  3. package/dist/NiceEventOrchestrator.doc-Dwtq2s_L.cjs +6 -0
  4. package/dist/{NiceForm-Cxvh2O6y.cjs → NiceForm-BtRBLffD.cjs} +1 -1
  5. package/dist/{NiceMention-CYTx04JY.cjs → NiceMention-CMqAGvO0.cjs} +1 -1
  6. package/dist/NiceModuleLifecyclePanel-ugNtHimh.cjs +1 -0
  7. package/dist/{NicePagination-CKsAP38Q.cjs → NicePagination-D7XxeNFz.cjs} +1 -1
  8. package/dist/{NiceSavedQueryPanel-CN1rCPFs.cjs → NiceSavedQueryPanel-JHrSlHAV.cjs} +1 -1
  9. package/dist/{NiceScheduler-K8ZAqFCQ.cjs → NiceScheduler-2TwOZq-y.cjs} +1 -1
  10. package/dist/{core-lazy-DfNWyf__.cjs → core-lazy-Cda-D35m.cjs} +1 -1
  11. package/dist/data.cjs +1 -1
  12. package/dist/docs/NiceEventOrchestrator.doc.json.mjs +19 -19
  13. package/dist/editors/inputs/NiceNumberInput.mjs +27 -27
  14. package/dist/editors.cjs +1 -1
  15. package/dist/index.cjs +220 -220
  16. package/dist/index.d.ts +129 -62
  17. package/dist/index.mjs +912 -910
  18. package/dist/lazy.cjs +1 -1
  19. package/dist/navigation/NiceFirstRunPreferences.mjs +55 -54
  20. package/dist/navigation/NiceNavShell.mjs +429 -429
  21. package/dist/navigation/NiceSetupWizard.mjs +333 -317
  22. package/dist/navigation/NiceSidebarNav.mjs +1111 -1039
  23. package/dist/navigation/menuBuilderModel.mjs +1 -1
  24. package/dist/navigation/sidebarColors.mjs +67 -39
  25. package/dist/navigation/sidebarNavTypes.mjs +16 -14
  26. package/dist/navigation/sidebarPrefs/NiceSidebarPrefsDisplay.mjs +120 -42
  27. package/dist/navigation.cjs +1 -1
  28. package/dist/navigation.d.ts +32 -6
  29. package/dist/{no-code-BQqK8mvU.cjs → no-code-B3BHeyG-.cjs} +1 -1
  30. package/dist/no-code.cjs +1 -1
  31. package/dist/style.css +2 -2
  32. package/dist/tools/NiceThemeDesigner.mjs +1359 -900
  33. package/dist/tools/NiceThemePreview.mjs +18 -18
  34. package/dist/tools/themeCatalog.mjs +50 -0
  35. package/dist/workflow/NiceWorkflowDesigner.mjs +452 -898
  36. package/package.json +5 -5
  37. package/dist/NiceEventOrchestrator.doc-CxjsLxBG.cjs +0 -6
  38. package/dist/NiceModuleLifecyclePanel-DHHAjwQx.cjs +0 -1
@@ -1,5 +1,5 @@
1
1
  import { jsx as r, jsxs as s, Fragment as p } from "react/jsx-runtime";
2
- import { useNiceTranslation as y, useControlId as $, themeToCssVars as M, NiceIcon as n } from "@nice2dev/ui-core";
2
+ import { useNiceTranslation as y, useControlId as $, themeToCssVars as M, NiceIcon as o } from "@nice2dev/ui-core";
3
3
  import { forwardRef as z, useState as D, useCallback as u, useMemo as L } from "react";
4
4
  import { NiceTreeView as E } from "../data/NiceTreeView.mjs";
5
5
  import { NiceMenu as F } from "../navigation/NiceMenu.mjs";
@@ -88,17 +88,17 @@ const A = [
88
88
  },
89
89
  [v]
90
90
  ), T = L(() => {
91
- const c = M(e), o = {};
91
+ const c = M(e), n = {};
92
92
  for (const [d, R] of Object.entries(c))
93
- o[d] = R;
93
+ n[d] = R;
94
94
  const t = e.backgroundImage;
95
95
  if (t && t.type && t.type !== "none") {
96
96
  let d = "";
97
- t.type === "gradient" && t.gradient ? d = t.gradient : t.type === "image" && t.imageUrl ? d = `url("${t.imageUrl}")` : t.type === "pattern" && t.pattern && (d = t.pattern.startsWith("url") || t.pattern.includes("gradient") ? t.pattern : ""), d && (o.backgroundImage = d), t.imageSize && (o.backgroundSize = t.imageSize), t.imagePosition && (o.backgroundPosition = t.imagePosition), t.imageAttachment && (o.backgroundAttachment = t.imageAttachment), t.imageRepeat && (o.backgroundRepeat = t.imageRepeat), t.blendMode && (o.backgroundBlendMode = t.blendMode), typeof t.opacity == "number" && (o["--ntd-bg-image-opacity"] = String(t.opacity));
97
+ t.type === "gradient" && t.gradient ? d = t.gradient : t.type === "image" && t.imageUrl ? d = `url("${t.imageUrl}")` : t.type === "pattern" && t.pattern && (d = t.pattern.startsWith("url") || t.pattern.includes("gradient") ? t.pattern : ""), d && (n.backgroundImage = d), t.imageSize && (n.backgroundSize = t.imageSize), t.imagePosition && (n.backgroundPosition = t.imagePosition), t.imageAttachment && (n.backgroundAttachment = t.imageAttachment), t.imageRepeat && (n.backgroundRepeat = t.imageRepeat), t.blendMode && (n.backgroundBlendMode = t.blendMode), typeof t.opacity == "number" && (n["--ntd-bg-image-opacity"] = String(t.opacity));
98
98
  }
99
- return { ...o, ...w };
99
+ return { ...n, ...w };
100
100
  }, [e, w]), a = u(
101
- (c, o, t) => /* @__PURE__ */ r(
101
+ (c, n, t) => /* @__PURE__ */ r(
102
102
  I,
103
103
  {
104
104
  token: c,
@@ -106,7 +106,7 @@ const A = [
106
106
  as: t?.as,
107
107
  className: t?.className,
108
108
  style: t?.style,
109
- children: o
109
+ children: n
110
110
  }
111
111
  ),
112
112
  [b]
@@ -132,7 +132,7 @@ const A = [
132
132
  className: `nice-theme-preview__tab ${h === c.key ? "nice-theme-preview__tab--active" : ""}`,
133
133
  onClick: () => S(c.key),
134
134
  children: [
135
- /* @__PURE__ */ r("span", { className: "nice-theme-preview__tab-icon", children: /* @__PURE__ */ r(n, { name: c.icon, size: 16 }) }),
135
+ /* @__PURE__ */ r("span", { className: "nice-theme-preview__tab-icon", children: /* @__PURE__ */ r(o, { name: c.icon, size: 16 }) }),
136
136
  c.label
137
137
  ]
138
138
  },
@@ -493,7 +493,7 @@ const A = [
493
493
  /* @__PURE__ */ r("td", { children: /* @__PURE__ */ r(
494
494
  "span",
495
495
  {
496
- className: "nice-theme-preview__badge",
496
+ className: "nice-theme-preview__badge nice-theme-preview__badge--success",
497
497
  style: { background: e.colors.success },
498
498
  children: i("themePreview.active", "Active")
499
499
  }
@@ -508,7 +508,7 @@ const A = [
508
508
  /* @__PURE__ */ r("td", { children: /* @__PURE__ */ r(
509
509
  "span",
510
510
  {
511
- className: "nice-theme-preview__badge",
511
+ className: "nice-theme-preview__badge nice-theme-preview__badge--warning",
512
512
  style: { background: e.colors.warning },
513
513
  children: i("themePreview.pending", "Pending")
514
514
  }
@@ -523,7 +523,7 @@ const A = [
523
523
  /* @__PURE__ */ r("td", { children: /* @__PURE__ */ r(
524
524
  "span",
525
525
  {
526
- className: "nice-theme-preview__badge",
526
+ className: "nice-theme-preview__badge nice-theme-preview__badge--error",
527
527
  style: { background: e.colors.error },
528
528
  children: i("themePreview.inactive", "Inactive")
529
529
  }
@@ -874,7 +874,7 @@ const A = [
874
874
  "--nice-row-active-bg": `var(--nice-sidebar-level-${c}-active-bg, transparent)`
875
875
  },
876
876
  children: [
877
- c === 1 ? /* @__PURE__ */ r(n, { name: "folder", size: 14 }) : c === 2 ? /* @__PURE__ */ r(n, { name: "folder", size: 14 }) : c === 3 ? /* @__PURE__ */ r(n, { name: "file", size: 14 }) : c === 4 ? "· " : "— ",
877
+ c === 1 ? /* @__PURE__ */ r(o, { name: "folder", size: 14 }) : c === 2 ? /* @__PURE__ */ r(o, { name: "folder", size: 14 }) : c === 3 ? /* @__PURE__ */ r(o, { name: "file", size: 14 }) : c === 4 ? "· " : "— ",
878
878
  " ",
879
879
  i("themePreview.levelItem", "Level {level} item").replace(
880
880
  "{level}",
@@ -904,7 +904,7 @@ const A = [
904
904
  className: "nice-theme-preview__sidebar-item nice-theme-preview__sidebar-item--active",
905
905
  style: { background: `${e.colors.primary}15`, color: e.colors.primary },
906
906
  children: [
907
- /* @__PURE__ */ r(n, { name: "bar-chart", size: 16 }),
907
+ /* @__PURE__ */ r(o, { name: "bar-chart", size: 16 }),
908
908
  " ",
909
909
  i("themePreview.dashboard", "Dashboard")
910
910
  ]
@@ -919,7 +919,7 @@ const A = [
919
919
  className: "nice-theme-preview__sidebar-item",
920
920
  style: { color: e.text.primary },
921
921
  children: [
922
- /* @__PURE__ */ r(n, { name: "users", size: 16 }),
922
+ /* @__PURE__ */ r(o, { name: "users", size: 16 }),
923
923
  " ",
924
924
  i("themePreview.users", "Users")
925
925
  ]
@@ -934,7 +934,7 @@ const A = [
934
934
  className: "nice-theme-preview__sidebar-item",
935
935
  style: { color: e.text.primary },
936
936
  children: [
937
- /* @__PURE__ */ r(n, { name: "box", size: 16 }),
937
+ /* @__PURE__ */ r(o, { name: "box", size: 16 }),
938
938
  " ",
939
939
  i("themePreview.products", "Products")
940
940
  ]
@@ -949,7 +949,7 @@ const A = [
949
949
  className: "nice-theme-preview__sidebar-item",
950
950
  style: { color: e.text.secondary },
951
951
  children: [
952
- /* @__PURE__ */ r(n, { name: "settings", size: 16 }),
952
+ /* @__PURE__ */ r(o, { name: "settings", size: 16 }),
953
953
  " ",
954
954
  i("themePreview.settings", "Settings")
955
955
  ]
@@ -1029,7 +1029,7 @@ const A = [
1029
1029
  className: "nice-theme-preview__page-btn",
1030
1030
  "aria-label": i("themePreview.previousPage", "Previous page"),
1031
1031
  style: { borderColor: e.borders.color, color: e.text.secondary },
1032
- children: /* @__PURE__ */ r(n, { name: "chevron-left", size: 16 })
1032
+ children: /* @__PURE__ */ r(o, { name: "chevron-left", size: 16 })
1033
1033
  }
1034
1034
  )
1035
1035
  ),
@@ -1074,7 +1074,7 @@ const A = [
1074
1074
  className: "nice-theme-preview__page-btn",
1075
1075
  "aria-label": i("themePreview.nextPage", "Next page"),
1076
1076
  style: { borderColor: e.borders.color, color: e.text.secondary },
1077
- children: /* @__PURE__ */ r(n, { name: "chevron-right", size: 16 })
1077
+ children: /* @__PURE__ */ r(o, { name: "chevron-right", size: 16 })
1078
1078
  }
1079
1079
  )
1080
1080
  )
@@ -0,0 +1,50 @@
1
+ import { NICE_THEME_GALLERY as s, NICE_THEME_PACK_LIST as o, NICE_THEME_PACK_LIST_EXTENDED as l, niceThemeLight as m, niceThemeDark as E, niceThemeBlue as T, niceThemeHighContrast as h, niceThemeMaterial as u, niceThemeBootstrap as _, niceThemeFluent as C } from "@nice2dev/ui-core";
2
+ const e = (t, a, c) => ({
3
+ id: t,
4
+ label: a,
5
+ entries: c.map((n) => ({ name: n.name, theme: n, category: t }))
6
+ }), i = (t, a, c, n) => ({
7
+ id: t,
8
+ label: a,
9
+ entries: c.map((r) => ({
10
+ name: r.theme.name,
11
+ theme: r.theme,
12
+ pack: r,
13
+ packList: n,
14
+ category: t
15
+ }))
16
+ }), y = [
17
+ i("packs", "Theme Packs", o, "base"),
18
+ i("packs-2", "Theme Packs Vol. 2", l, "extended"),
19
+ e("core", "Core", [
20
+ m,
21
+ E,
22
+ T,
23
+ h,
24
+ u,
25
+ _,
26
+ C
27
+ ]),
28
+ e("neutral", "Neutral", s.slice(0, 8)),
29
+ e("vibrant", "Vibrant", s.slice(8, 22)),
30
+ e("dark", "Dark", s.slice(22, 32)),
31
+ e("nature", "Nature", s.slice(32, 42)),
32
+ e("pastel", "Pastel", s.slice(42, 50)),
33
+ e("industry", "Industry", s.slice(50, 58)),
34
+ e("design-system", "Design System", s.slice(58, 64)),
35
+ e("retro", "Retro", s.slice(64, 72)),
36
+ e("seasonal", "Seasonal", s.slice(72, 80)),
37
+ e("cultural", "Cultural", s.slice(80, 88)),
38
+ e("accessibility", "Accessibility", s.slice(88, 92)),
39
+ e("modern-ui", "Modern UI", s.slice(92))
40
+ ], N = /* @__PURE__ */ (() => {
41
+ const t = /* @__PURE__ */ new Set(), a = [];
42
+ for (const c of y)
43
+ for (const n of c.entries)
44
+ t.has(n.name) || (t.add(n.name), a.push(n));
45
+ return a;
46
+ })();
47
+ export {
48
+ y as NICE_THEME_CATALOG,
49
+ N as NICE_THEME_CATALOG_ENTRIES
50
+ };