@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.
- package/CHANGELOG.md +90 -0
- package/dist/{NiceDataGrid-BwiBkE3u.cjs → NiceDataGrid-aNPAHsWy.cjs} +1 -1
- package/dist/NiceEventOrchestrator.doc-Dwtq2s_L.cjs +6 -0
- package/dist/{NiceForm-Cxvh2O6y.cjs → NiceForm-BtRBLffD.cjs} +1 -1
- package/dist/{NiceMention-CYTx04JY.cjs → NiceMention-CMqAGvO0.cjs} +1 -1
- package/dist/NiceModuleLifecyclePanel-ugNtHimh.cjs +1 -0
- package/dist/{NicePagination-CKsAP38Q.cjs → NicePagination-D7XxeNFz.cjs} +1 -1
- package/dist/{NiceSavedQueryPanel-CN1rCPFs.cjs → NiceSavedQueryPanel-JHrSlHAV.cjs} +1 -1
- package/dist/{NiceScheduler-K8ZAqFCQ.cjs → NiceScheduler-2TwOZq-y.cjs} +1 -1
- package/dist/{core-lazy-DfNWyf__.cjs → core-lazy-Cda-D35m.cjs} +1 -1
- package/dist/data.cjs +1 -1
- package/dist/docs/NiceEventOrchestrator.doc.json.mjs +19 -19
- package/dist/editors/inputs/NiceNumberInput.mjs +27 -27
- package/dist/editors.cjs +1 -1
- package/dist/index.cjs +220 -220
- package/dist/index.d.ts +129 -62
- package/dist/index.mjs +912 -910
- package/dist/lazy.cjs +1 -1
- package/dist/navigation/NiceFirstRunPreferences.mjs +55 -54
- package/dist/navigation/NiceNavShell.mjs +429 -429
- package/dist/navigation/NiceSetupWizard.mjs +333 -317
- package/dist/navigation/NiceSidebarNav.mjs +1111 -1039
- package/dist/navigation/menuBuilderModel.mjs +1 -1
- package/dist/navigation/sidebarColors.mjs +67 -39
- package/dist/navigation/sidebarNavTypes.mjs +16 -14
- package/dist/navigation/sidebarPrefs/NiceSidebarPrefsDisplay.mjs +120 -42
- package/dist/navigation.cjs +1 -1
- package/dist/navigation.d.ts +32 -6
- package/dist/{no-code-BQqK8mvU.cjs → no-code-B3BHeyG-.cjs} +1 -1
- package/dist/no-code.cjs +1 -1
- package/dist/style.css +2 -2
- package/dist/tools/NiceThemeDesigner.mjs +1359 -900
- package/dist/tools/NiceThemePreview.mjs +18 -18
- package/dist/tools/themeCatalog.mjs +50 -0
- package/dist/workflow/NiceWorkflowDesigner.mjs +452 -898
- package/package.json +5 -5
- package/dist/NiceEventOrchestrator.doc-CxjsLxBG.cjs +0 -6
- package/dist/NiceModuleLifecyclePanel-DHHAjwQx.cjs +0 -1
package/dist/lazy.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),n=a.lazy(()=>Promise.resolve().then(()=>require("./devops-cgRBnZVX.cjs")).then(e=>e.NiceGitGraph$1).then(e=>({default:e.NiceGitGraph}))),o=a.lazy(()=>Promise.resolve().then(()=>require("./devops-cgRBnZVX.cjs")).then(e=>e.NiceBranchManager$1).then(e=>({default:e.NiceBranchManager}))),l=a.lazy(()=>Promise.resolve().then(()=>require("./devops-cgRBnZVX.cjs")).then(e=>e.NiceGitDiffViewer$1).then(e=>({default:e.NiceGitDiffViewer}))),s=a.lazy(()=>Promise.resolve().then(()=>require("./devops-cgRBnZVX.cjs")).then(e=>e.NiceGitBlame$1).then(e=>({default:e.NiceGitBlame}))),h=a.lazy(()=>Promise.resolve().then(()=>require("./devops-cgRBnZVX.cjs")).then(e=>e.NiceGitConflictResolver$1).then(e=>({default:e.NiceGitConflictResolver}))),c=a.lazy(()=>Promise.resolve().then(()=>require("./devops-cgRBnZVX.cjs")).then(e=>e.NicePipelineEditor$1).then(e=>({default:e.NicePipelineEditor}))),y=a.lazy(()=>Promise.resolve().then(()=>require("./devops-cgRBnZVX.cjs")).then(e=>e.NicePipelineMonitor$1).then(e=>({default:e.NicePipelineMonitor}))),u=a.lazy(()=>Promise.resolve().then(()=>require("./devops-cgRBnZVX.cjs")).then(e=>e.NiceGitHooks$1).then(e=>({default:e.NiceGitHooks}))),z=a.lazy(()=>Promise.resolve().then(()=>require("./devops-cgRBnZVX.cjs")).then(e=>e.NiceMergeRequestBuilder$1).then(e=>({default:e.NiceMergeRequestBuilder}))),d=a.lazy(()=>Promise.resolve().then(()=>require("./no-code-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),n=a.lazy(()=>Promise.resolve().then(()=>require("./devops-cgRBnZVX.cjs")).then(e=>e.NiceGitGraph$1).then(e=>({default:e.NiceGitGraph}))),o=a.lazy(()=>Promise.resolve().then(()=>require("./devops-cgRBnZVX.cjs")).then(e=>e.NiceBranchManager$1).then(e=>({default:e.NiceBranchManager}))),l=a.lazy(()=>Promise.resolve().then(()=>require("./devops-cgRBnZVX.cjs")).then(e=>e.NiceGitDiffViewer$1).then(e=>({default:e.NiceGitDiffViewer}))),s=a.lazy(()=>Promise.resolve().then(()=>require("./devops-cgRBnZVX.cjs")).then(e=>e.NiceGitBlame$1).then(e=>({default:e.NiceGitBlame}))),h=a.lazy(()=>Promise.resolve().then(()=>require("./devops-cgRBnZVX.cjs")).then(e=>e.NiceGitConflictResolver$1).then(e=>({default:e.NiceGitConflictResolver}))),c=a.lazy(()=>Promise.resolve().then(()=>require("./devops-cgRBnZVX.cjs")).then(e=>e.NicePipelineEditor$1).then(e=>({default:e.NicePipelineEditor}))),y=a.lazy(()=>Promise.resolve().then(()=>require("./devops-cgRBnZVX.cjs")).then(e=>e.NicePipelineMonitor$1).then(e=>({default:e.NicePipelineMonitor}))),u=a.lazy(()=>Promise.resolve().then(()=>require("./devops-cgRBnZVX.cjs")).then(e=>e.NiceGitHooks$1).then(e=>({default:e.NiceGitHooks}))),z=a.lazy(()=>Promise.resolve().then(()=>require("./devops-cgRBnZVX.cjs")).then(e=>e.NiceMergeRequestBuilder$1).then(e=>({default:e.NiceMergeRequestBuilder}))),d=a.lazy(()=>Promise.resolve().then(()=>require("./no-code-B3BHeyG-.cjs")).then(e=>e.NiceAPIFlow$1).then(e=>({default:e.NiceAPIFlow}))),f=a.lazy(()=>Promise.resolve().then(()=>require("./no-code-B3BHeyG-.cjs")).then(e=>e.NiceCodeTemplate$1).then(e=>({default:e.NiceCodeTemplate}))),N=a.lazy(()=>Promise.resolve().then(()=>require("./no-code-B3BHeyG-.cjs")).then(e=>e.NiceDataMapper$1).then(e=>({default:e.NiceDataMapper}))),L=a.lazy(()=>Promise.resolve().then(()=>require("./no-code-B3BHeyG-.cjs")).then(e=>e.NiceEventOrchestrator$1).then(e=>({default:e.NiceEventOrchestrator}))),p=a.lazy(()=>Promise.resolve().then(()=>require("./no-code-B3BHeyG-.cjs")).then(e=>e.NiceStateDesigner$1).then(e=>({default:e.NiceStateDesigner}))),v=a.lazy(()=>Promise.resolve().then(()=>require("./no-code-B3BHeyG-.cjs")).then(e=>e.NiceTestBuilder$1).then(e=>({default:e.NiceTestBuilder}))),D=a.lazy(()=>Promise.resolve().then(()=>require("./data-branching-7rpktFJ-.cjs")).then(e=>e.NiceDataBranchManager$1).then(e=>({default:e.NiceDataBranchManager}))),P=a.lazy(()=>Promise.resolve().then(()=>require("./data-branching-7rpktFJ-.cjs")).then(e=>e.NiceDataDiffViewer$1).then(e=>({default:e.NiceDataDiffViewer}))),m=a.lazy(()=>Promise.resolve().then(()=>require("./data-branching-7rpktFJ-.cjs")).then(e=>e.NiceDataBranchGraph$1).then(e=>({default:e.NiceDataBranchGraph}))),q=a.lazy(()=>Promise.resolve().then(()=>require("./data-branching-7rpktFJ-.cjs")).then(e=>e.NiceDataMergeBuilder$1).then(e=>({default:e.NiceDataMergeBuilder}))),B=a.lazy(()=>Promise.resolve().then(()=>require("./data-branching-7rpktFJ-.cjs")).then(e=>e.NiceDataConflictResolver$1).then(e=>({default:e.NiceDataConflictResolver}))),M=a.lazy(()=>Promise.resolve().then(()=>require("./data-branching-7rpktFJ-.cjs")).then(e=>e.NiceDataSnapshot$1).then(e=>({default:e.NiceDataSnapshot}))),G=a.lazy(()=>Promise.resolve().then(()=>require("./charts-B0tHOpJ7.cjs")).then(e=>e.NiceChart$1).then(e=>({default:e.NiceChart}))),g=a.lazy(()=>Promise.resolve().then(()=>require("./charts-B0tHOpJ7.cjs")).then(e=>e.NiceTreeMap$1).then(e=>({default:e.NiceTreeMap}))),$=a.lazy(()=>Promise.resolve().then(()=>require("./charts-B0tHOpJ7.cjs")).then(e=>e.NiceSankey$1).then(e=>({default:e.NiceSankey}))),t=()=>{Promise.resolve().then(()=>require("./devops.cjs"))},r=()=>{Promise.resolve().then(()=>require("./no-code.cjs"))},i=()=>{Promise.resolve().then(()=>require("./data-branching.cjs"))},C=()=>{"requestIdleCallback"in window?requestIdleCallback(()=>{t(),r(),i()}):setTimeout(()=>{t(),r(),i()},2e3)};exports.LazyAPIFlow=d;exports.LazyBranchManager=o;exports.LazyChart=G;exports.LazyCodeTemplate=f;exports.LazyDataBranchGraph=m;exports.LazyDataBranchManager=D;exports.LazyDataConflictResolver=B;exports.LazyDataDiffViewer=P;exports.LazyDataMapper=N;exports.LazyDataMergeBuilder=q;exports.LazyDataSnapshot=M;exports.LazyEventOrchestrator=L;exports.LazyGitBlame=s;exports.LazyGitConflictResolver=h;exports.LazyGitDiffViewer=l;exports.LazyGitGraph=n;exports.LazyGitHooks=u;exports.LazyMergeRequestBuilder=z;exports.LazyPipelineEditor=c;exports.LazyPipelineMonitor=y;exports.LazySankey=$;exports.LazyStateDesigner=p;exports.LazyTestBuilder=v;exports.LazyTreemap=g;exports.preloadDataBranching=i;exports.preloadDevOps=t;exports.preloadHeavyModules=C;exports.preloadNoCode=r;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
2
2
|
import { useNiceTranslation as O } from "@nice2dev/ui-core";
|
|
3
|
-
import { useState as N, useMemo as
|
|
3
|
+
import { useState as N, useMemo as T } from "react";
|
|
4
4
|
import { NiceButton as R } from "../buttons/NiceButton.mjs";
|
|
5
5
|
import { NiceSegmentedControl as d } from "../display/NiceSegmentedControl.mjs";
|
|
6
|
-
import { NiceLanguagePicker as
|
|
7
|
-
import { NiceThemePicker as
|
|
6
|
+
import { NiceLanguagePicker as E } from "../editors/pickers/NiceLanguagePicker.mjs";
|
|
7
|
+
import { NiceThemePicker as P } from "../editors/pickers/NiceThemePicker.mjs";
|
|
8
8
|
import { NiceModal as A } from "../feedback/NiceModal.mjs";
|
|
9
9
|
/* empty css */
|
|
10
10
|
const D = ["single", "tabs"];
|
|
@@ -19,76 +19,76 @@ function F({
|
|
|
19
19
|
languages: f,
|
|
20
20
|
priorityLanguages: _,
|
|
21
21
|
title: w,
|
|
22
|
-
description:
|
|
23
|
-
"data-testid":
|
|
22
|
+
description: S,
|
|
23
|
+
"data-testid": m = "nice-first-run-preferences"
|
|
24
24
|
}) {
|
|
25
|
-
const { t:
|
|
26
|
-
i !==
|
|
27
|
-
const s = (
|
|
25
|
+
const { t: e } = O(), [r, b] = N(h ?? {}), [k, C] = N(i);
|
|
26
|
+
i !== k && (C(i), i && b(h ?? {}));
|
|
27
|
+
const s = (t, n) => b((p) => ({ ...p, [t]: n })), x = T(
|
|
28
28
|
() => v ?? ["pages", "theme", "language", "menu"].filter(
|
|
29
|
-
(
|
|
29
|
+
(t) => (t !== "theme" || (u?.length ?? 0) > 0) && (t !== "language" || (f?.length ?? 0) > 0)
|
|
30
30
|
),
|
|
31
31
|
[v, u, f]
|
|
32
32
|
), M = {
|
|
33
|
-
auto:
|
|
34
|
-
single:
|
|
35
|
-
tabs:
|
|
36
|
-
}, l = (
|
|
37
|
-
/* @__PURE__ */
|
|
38
|
-
|
|
39
|
-
] },
|
|
40
|
-
return /* @__PURE__ */
|
|
33
|
+
auto: e("firstRun.pagesAuto", "Automatically"),
|
|
34
|
+
single: e("firstRun.pagesSingle", "One at a time"),
|
|
35
|
+
tabs: e("firstRun.pagesTabs", "In tabs")
|
|
36
|
+
}, l = (t, n, p) => /* @__PURE__ */ o("section", { className: "nice-first-run__section", "aria-label": n, children: [
|
|
37
|
+
/* @__PURE__ */ a("h3", { className: "nice-first-run__heading", children: n }),
|
|
38
|
+
p
|
|
39
|
+
] }, t);
|
|
40
|
+
return /* @__PURE__ */ a(
|
|
41
41
|
A,
|
|
42
42
|
{
|
|
43
43
|
open: i,
|
|
44
44
|
onClose: g,
|
|
45
45
|
size: "md",
|
|
46
46
|
closeOnOverlay: !1,
|
|
47
|
-
title: w ??
|
|
48
|
-
"data-testid":
|
|
47
|
+
title: w ?? e("firstRun.title", "Set up your workspace"),
|
|
48
|
+
"data-testid": m,
|
|
49
49
|
footer: /* @__PURE__ */ o("div", { className: "nice-first-run__footer", children: [
|
|
50
|
-
/* @__PURE__ */
|
|
51
|
-
/* @__PURE__ */
|
|
50
|
+
/* @__PURE__ */ a(R, { variant: "ghost", onClick: g, "data-testid": `${m}-skip`, children: e("firstRun.skip", "Skip") }),
|
|
51
|
+
/* @__PURE__ */ a(
|
|
52
52
|
R,
|
|
53
53
|
{
|
|
54
54
|
variant: "primary",
|
|
55
55
|
onClick: () => y(r),
|
|
56
|
-
"data-testid": `${
|
|
57
|
-
children:
|
|
56
|
+
"data-testid": `${m}-save`,
|
|
57
|
+
children: e("firstRun.save", "Save")
|
|
58
58
|
}
|
|
59
59
|
)
|
|
60
60
|
] }),
|
|
61
61
|
children: /* @__PURE__ */ o("div", { className: "nice-first-run", children: [
|
|
62
|
-
/* @__PURE__ */
|
|
62
|
+
/* @__PURE__ */ a("p", { className: "nice-first-run__intro", children: S ?? e(
|
|
63
63
|
"firstRun.intro",
|
|
64
64
|
"Choose how you want to work. You can change all of it later in the preferences."
|
|
65
65
|
) }),
|
|
66
|
-
x.map((
|
|
67
|
-
switch (
|
|
66
|
+
x.map((t) => {
|
|
67
|
+
switch (t) {
|
|
68
68
|
case "pages":
|
|
69
69
|
return l(
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
/* @__PURE__ */
|
|
70
|
+
t,
|
|
71
|
+
e("firstRun.pages", "Opening pages"),
|
|
72
|
+
/* @__PURE__ */ a(
|
|
73
73
|
d,
|
|
74
74
|
{
|
|
75
75
|
block: !0,
|
|
76
|
-
options: c.map((
|
|
76
|
+
options: c.map((n) => ({ value: n, label: M[n] })),
|
|
77
77
|
value: r.pageMode && c.includes(r.pageMode) ? r.pageMode : c[0],
|
|
78
|
-
onChange: (
|
|
78
|
+
onChange: (n) => s("pageMode", n)
|
|
79
79
|
}
|
|
80
80
|
)
|
|
81
81
|
);
|
|
82
82
|
case "theme":
|
|
83
83
|
return l(
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
/* @__PURE__ */
|
|
87
|
-
|
|
84
|
+
t,
|
|
85
|
+
e("firstRun.theme", "Theme"),
|
|
86
|
+
/* @__PURE__ */ a(
|
|
87
|
+
P,
|
|
88
88
|
{
|
|
89
89
|
themes: u,
|
|
90
90
|
value: r.theme,
|
|
91
|
-
onChange: (
|
|
91
|
+
onChange: (n) => s("theme", n?.id),
|
|
92
92
|
showPreviewInValue: !0,
|
|
93
93
|
showPreviewInMenu: !0,
|
|
94
94
|
showTextInValue: !0,
|
|
@@ -98,13 +98,13 @@ function F({
|
|
|
98
98
|
);
|
|
99
99
|
case "language":
|
|
100
100
|
return l(
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
/* @__PURE__ */
|
|
104
|
-
|
|
101
|
+
t,
|
|
102
|
+
e("firstRun.language", "Language"),
|
|
103
|
+
/* @__PURE__ */ a(
|
|
104
|
+
E,
|
|
105
105
|
{
|
|
106
106
|
value: r.language,
|
|
107
|
-
onChange: (
|
|
107
|
+
onChange: (n) => s("language", n?.code),
|
|
108
108
|
allowedCodes: f,
|
|
109
109
|
priorityCodes: _,
|
|
110
110
|
displayName: "native"
|
|
@@ -113,32 +113,33 @@ function F({
|
|
|
113
113
|
);
|
|
114
114
|
case "menu":
|
|
115
115
|
return l(
|
|
116
|
-
|
|
117
|
-
|
|
116
|
+
t,
|
|
117
|
+
e("firstRun.menu", "Menu"),
|
|
118
118
|
/* @__PURE__ */ o("div", { className: "nice-first-run__stack", children: [
|
|
119
|
-
/* @__PURE__ */
|
|
119
|
+
/* @__PURE__ */ a(
|
|
120
120
|
d,
|
|
121
121
|
{
|
|
122
122
|
block: !0,
|
|
123
123
|
options: [
|
|
124
|
-
{ value: "expanded", label:
|
|
125
|
-
{ value: "icons", label:
|
|
124
|
+
{ value: "expanded", label: e("firstRun.menuExpanded", "Expanded") },
|
|
125
|
+
{ value: "icons", label: e("firstRun.menuIcons", "Icons only") }
|
|
126
126
|
],
|
|
127
127
|
value: r.collapsed ? "icons" : "expanded",
|
|
128
|
-
onChange: (
|
|
128
|
+
onChange: (n) => s("collapsed", n === "icons")
|
|
129
129
|
}
|
|
130
130
|
),
|
|
131
|
-
/* @__PURE__ */
|
|
132
|
-
/* @__PURE__ */
|
|
131
|
+
/* @__PURE__ */ a("span", { className: "nice-first-run__label", children: e("firstRun.colorStyle", "Branch colours") }),
|
|
132
|
+
/* @__PURE__ */ a(
|
|
133
133
|
d,
|
|
134
134
|
{
|
|
135
135
|
block: !0,
|
|
136
136
|
options: [
|
|
137
|
-
{ value: "
|
|
138
|
-
{ value: "
|
|
137
|
+
{ value: "theme", label: e("firstRun.colorStyleTheme", "Theme colours") },
|
|
138
|
+
{ value: "bar", label: e("firstRun.colorStyleBar", "A bar by each item") },
|
|
139
|
+
{ value: "fill", label: e("firstRun.colorStyleFill", "Whole items filled") }
|
|
139
140
|
],
|
|
140
|
-
value: r.colorStyle
|
|
141
|
-
onChange: (
|
|
141
|
+
value: r.colorStyle ?? "theme",
|
|
142
|
+
onChange: (n) => s("colorStyle", n)
|
|
142
143
|
}
|
|
143
144
|
)
|
|
144
145
|
] })
|