@nice2dev/ui 1.0.21 → 1.0.23
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 +198 -0
- package/dist/NiceErrorBoundary-B0262Ffc.js +770 -0
- package/dist/NiceErrorBoundary-BNhkOZtq.cjs +1 -0
- package/dist/NiceErrorBoundary-BXOLv-zG.cjs +1 -0
- package/dist/NiceErrorBoundary-DsreAsON.cjs +1 -0
- package/dist/NiceErrorBoundary-DyPWyuki.js +770 -0
- package/dist/NiceErrorBoundary-HMfrXIir.js +770 -0
- package/dist/NiceForm-B7D1MASh.js +5383 -0
- package/dist/NiceForm-BA9zZdm8.cjs +382 -0
- package/dist/NiceForm-Ba9rvBoT.cjs +382 -0
- package/dist/NiceForm-DAGMJpgx.js +5383 -0
- package/dist/NiceForm-D_ifvkIf.js +5386 -0
- package/dist/NiceForm-kd4essRP.cjs +382 -0
- package/dist/NiceForm.css +1 -1
- package/dist/NiceModal-4DLpDmAl.js +95 -0
- package/dist/NiceModal-BVT9cZbf.cjs +1 -0
- package/dist/NiceModal-CiOYOWJy.cjs +1 -0
- package/dist/NiceModal-D2xJTZZf.cjs +1 -0
- package/dist/NiceModal-DZbHCdKq.js +95 -0
- package/dist/NiceModal-MeC1cNtW.js +95 -0
- package/dist/NiceModuleLifecyclePanel-BZMUuDad.js +6807 -0
- package/dist/NiceModuleLifecyclePanel-BiX4KxaK.js +6781 -0
- package/dist/NiceModuleLifecyclePanel-C54g5eV_.cjs +1 -0
- package/dist/NiceModuleLifecyclePanel-CDo0iVfr.js +6781 -0
- package/dist/NiceModuleLifecyclePanel-DEJpoz5a.cjs +1 -0
- package/dist/NiceModuleLifecyclePanel-DrDTpH6K.cjs +1 -0
- package/dist/NiceModuleLifecyclePanel.css +1 -1
- package/dist/NicePagination-3be3_sVK.js +171 -0
- package/dist/NicePagination-BCRsVzkR.cjs +1 -0
- package/dist/NicePagination-C8gx6Bcl.js +171 -0
- package/dist/NicePagination-CNxEAb4C.cjs +1 -0
- package/dist/NicePagination-Cg_WEf-R.cjs +1 -0
- package/dist/NicePagination-DQXdzx7W.js +171 -0
- package/dist/NicePinCodeInput-3WugpLHi.js +12240 -0
- package/dist/NicePinCodeInput-BD2bMmVF.cjs +696 -0
- package/dist/NicePinCodeInput-CSfRHs4v.cjs +419 -0
- package/dist/NicePinCodeInput-CjwFvOEQ.js +13092 -0
- package/dist/NicePinCodeInput-DCLRLR8a.js +13097 -0
- package/dist/NicePinCodeInput-DoBQnMj9.cjs +694 -0
- package/dist/NiceSavedQueryPanel-DFDDuKWd.js +6597 -0
- package/dist/NiceSavedQueryPanel-DT9v7kUB.cjs +596 -0
- package/dist/NiceSavedQueryPanel-DTU4eiIH.cjs +596 -0
- package/dist/NiceSavedQueryPanel-RLj3BnDR.js +6866 -0
- package/dist/NiceSavedQueryPanel-qtWETcRP.cjs +596 -0
- package/dist/NiceSavedQueryPanel-z29D7N_A.js +6584 -0
- package/dist/NiceTabs-B4dM77y_.js +1657 -0
- package/dist/NiceTabs-BTVTtRZR.cjs +1 -0
- package/dist/NiceTabs-BXGmot7J.cjs +1 -0
- package/dist/NiceTabs-CFA8DGYR.cjs +1 -0
- package/dist/NiceTabs-Cx9DN6QD.js +1657 -0
- package/dist/NiceTabs-DJdhKste.js +1657 -0
- package/dist/NiceWindow-5VCSBJrc.js +1592 -0
- package/dist/NiceWindow-BEFAUTLp.cjs +1 -0
- package/dist/NiceWindow-Cs6-Dbci.js +1592 -0
- package/dist/NiceWindow-DYw4NCeb.js +1592 -0
- package/dist/NiceWindow-O_g8StvA.cjs +1 -0
- package/dist/NiceWindow-a4wB_m30.cjs +1 -0
- package/dist/NiceWindow.css +1 -0
- package/dist/charts-BDr6B81L.js +4657 -0
- package/dist/charts-Ci_KrAoU.cjs +761 -0
- package/dist/charts-ClxW-i5q.js +4657 -0
- package/dist/charts-De7FYS1U.cjs +761 -0
- package/dist/charts-DjFvhCdD.js +4657 -0
- package/dist/charts-Dr_FIPZT.cjs +761 -0
- package/dist/charts.cjs +1 -1
- package/dist/charts.mjs +1 -1
- package/dist/core-BIz6zQ5u.cjs +122 -0
- package/dist/core-BYxnKGOi.js +23141 -0
- package/dist/core-CT5vpy5U.js +25248 -0
- package/dist/core-CZE5v34h.cjs +122 -0
- package/dist/core-Cjw8oBvC.cjs +96 -0
- package/dist/core-xcuNJ-DB.js +24948 -0
- package/dist/data-branching-B7dCyaWr.cjs +1 -0
- package/dist/data-branching-BPAeL45o.js +6133 -0
- package/dist/data-branching-Byz79mmA.cjs +1 -0
- package/dist/data-branching-DjuerHfS.js +6133 -0
- package/dist/data-branching.cjs +1 -1
- package/dist/data-branching.d.ts +3 -0
- package/dist/data-branching.mjs +1 -1
- package/dist/data.cjs +1 -1
- package/dist/data.d.ts +45 -7
- package/dist/data.mjs +1 -1
- package/dist/devops-C3Pmbnxc.js +7684 -0
- package/dist/devops-CrXz348W.cjs +17 -0
- package/dist/devops-DYFov8j3.js +7684 -0
- package/dist/devops-g4qcLXah.cjs +17 -0
- package/dist/devops.cjs +1 -1
- package/dist/devops.d.ts +5 -0
- package/dist/devops.mjs +1 -1
- package/dist/editors.cjs +1 -1
- package/dist/editors.d.ts +175 -1
- package/dist/editors.mjs +44 -41
- package/dist/feedback.cjs +1 -1
- package/dist/feedback.d.ts +1 -2
- package/dist/feedback.mjs +2 -2
- package/dist/index-9Gi1mNY7.js +67912 -0
- package/dist/index-AEO3cK4T.cjs +5194 -0
- package/dist/index-BMQ-F0zE.js +65054 -0
- package/dist/index-BNb9q4Ll.cjs +5490 -0
- package/dist/index-CjdfogVa.js +66711 -0
- package/dist/index-Di3Cgr1P.cjs +5518 -0
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +752 -62
- package/dist/index.mjs +982 -963
- package/dist/lazy.cjs +1 -1
- package/dist/lazy.d.ts +11 -0
- package/dist/lazy.mjs +24 -24
- package/dist/navigation.cjs +1 -1
- package/dist/navigation.d.ts +30 -4
- package/dist/navigation.mjs +34 -34
- package/dist/no-code-CHvv1KjZ.cjs +332 -0
- package/dist/no-code-CyvddsYt.js +7133 -0
- package/dist/no-code-Dl3ima61.cjs +332 -0
- package/dist/no-code-ktRzFaET.js +7133 -0
- package/dist/no-code.cjs +1 -1
- package/dist/no-code.d.ts +11 -0
- package/dist/no-code.mjs +1 -1
- package/dist/overlays.cjs +1 -1
- package/dist/overlays.d.ts +38 -0
- package/dist/overlays.mjs +52 -52
- package/dist/style.css +7 -4
- package/package.json +1 -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-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),n=a.lazy(()=>Promise.resolve().then(()=>require("./devops-CrXz348W.cjs")).then(e=>e.NiceGitGraph$1).then(e=>({default:e.NiceGitGraph}))),o=a.lazy(()=>Promise.resolve().then(()=>require("./devops-CrXz348W.cjs")).then(e=>e.NiceBranchManager$1).then(e=>({default:e.NiceBranchManager}))),l=a.lazy(()=>Promise.resolve().then(()=>require("./devops-CrXz348W.cjs")).then(e=>e.NiceGitDiffViewer$1).then(e=>({default:e.NiceGitDiffViewer}))),s=a.lazy(()=>Promise.resolve().then(()=>require("./devops-CrXz348W.cjs")).then(e=>e.NiceGitBlame$1).then(e=>({default:e.NiceGitBlame}))),h=a.lazy(()=>Promise.resolve().then(()=>require("./devops-CrXz348W.cjs")).then(e=>e.NiceGitConflictResolver$1).then(e=>({default:e.NiceGitConflictResolver}))),c=a.lazy(()=>Promise.resolve().then(()=>require("./devops-CrXz348W.cjs")).then(e=>e.NicePipelineEditor$1).then(e=>({default:e.NicePipelineEditor}))),y=a.lazy(()=>Promise.resolve().then(()=>require("./devops-CrXz348W.cjs")).then(e=>e.NicePipelineMonitor$1).then(e=>({default:e.NicePipelineMonitor}))),u=a.lazy(()=>Promise.resolve().then(()=>require("./devops-CrXz348W.cjs")).then(e=>e.NiceGitHooks$1).then(e=>({default:e.NiceGitHooks}))),z=a.lazy(()=>Promise.resolve().then(()=>require("./devops-CrXz348W.cjs")).then(e=>e.NiceMergeRequestBuilder$1).then(e=>({default:e.NiceMergeRequestBuilder}))),d=a.lazy(()=>Promise.resolve().then(()=>require("./no-code-CHvv1KjZ.cjs")).then(e=>e.NiceAPIFlow$1).then(e=>({default:e.NiceAPIFlow}))),f=a.lazy(()=>Promise.resolve().then(()=>require("./no-code-CHvv1KjZ.cjs")).then(e=>e.NiceCodeTemplate$1).then(e=>({default:e.NiceCodeTemplate}))),N=a.lazy(()=>Promise.resolve().then(()=>require("./no-code-CHvv1KjZ.cjs")).then(e=>e.NiceDataMapper$1).then(e=>({default:e.NiceDataMapper}))),L=a.lazy(()=>Promise.resolve().then(()=>require("./no-code-CHvv1KjZ.cjs")).then(e=>e.NiceEventOrchestrator$1).then(e=>({default:e.NiceEventOrchestrator}))),p=a.lazy(()=>Promise.resolve().then(()=>require("./no-code-CHvv1KjZ.cjs")).then(e=>e.NiceStateDesigner$1).then(e=>({default:e.NiceStateDesigner}))),v=a.lazy(()=>Promise.resolve().then(()=>require("./no-code-CHvv1KjZ.cjs")).then(e=>e.NiceTestBuilder$1).then(e=>({default:e.NiceTestBuilder}))),D=a.lazy(()=>Promise.resolve().then(()=>require("./data-branching-B7dCyaWr.cjs")).then(e=>e.NiceDataBranchManager$1).then(e=>({default:e.NiceDataBranchManager}))),P=a.lazy(()=>Promise.resolve().then(()=>require("./data-branching-B7dCyaWr.cjs")).then(e=>e.NiceDataDiffViewer$1).then(e=>({default:e.NiceDataDiffViewer}))),m=a.lazy(()=>Promise.resolve().then(()=>require("./data-branching-B7dCyaWr.cjs")).then(e=>e.NiceDataBranchGraph$1).then(e=>({default:e.NiceDataBranchGraph}))),q=a.lazy(()=>Promise.resolve().then(()=>require("./data-branching-B7dCyaWr.cjs")).then(e=>e.NiceDataMergeBuilder$1).then(e=>({default:e.NiceDataMergeBuilder}))),B=a.lazy(()=>Promise.resolve().then(()=>require("./data-branching-B7dCyaWr.cjs")).then(e=>e.NiceDataConflictResolver$1).then(e=>({default:e.NiceDataConflictResolver}))),M=a.lazy(()=>Promise.resolve().then(()=>require("./data-branching-B7dCyaWr.cjs")).then(e=>e.NiceDataSnapshot$1).then(e=>({default:e.NiceDataSnapshot}))),G=a.lazy(()=>Promise.resolve().then(()=>require("./charts-De7FYS1U.cjs")).then(e=>e.NiceChart$1).then(e=>({default:e.NiceChart}))),g=a.lazy(()=>Promise.resolve().then(()=>require("./charts-De7FYS1U.cjs")).then(e=>e.NiceTreeMap$1).then(e=>({default:e.NiceTreeMap}))),$=a.lazy(()=>Promise.resolve().then(()=>require("./charts-De7FYS1U.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;
|
package/dist/lazy.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { FC } from 'react';
|
|
|
2
2
|
import { ForwardRefExoticComponent } from 'react';
|
|
3
3
|
import { LazyExoticComponent } from 'react';
|
|
4
4
|
import { NiceBaseProps } from '@nice2dev/ui-core';
|
|
5
|
+
import { NiceComponentTutorial } from '@nice2dev/ui-core';
|
|
5
6
|
import { NiceStandardProps } from '@nice2dev/ui-core';
|
|
6
7
|
import { RefAttributes } from 'react';
|
|
7
8
|
|
|
@@ -973,6 +974,8 @@ declare interface NiceDataMergeBuilderProps extends NiceBaseProps {
|
|
|
973
974
|
onPreview?: (sourceId: string, targetId: string) => void;
|
|
974
975
|
onMerge?: (config: MergeConfig) => void;
|
|
975
976
|
onCancel?: () => void;
|
|
977
|
+
/** Optional "?" guided tour. Off by default; `true` uses the built-in tour. */
|
|
978
|
+
tutorial?: NiceComponentTutorial;
|
|
976
979
|
}
|
|
977
980
|
|
|
978
981
|
declare interface NiceDataSnapshotProps extends NiceBaseProps {
|
|
@@ -1176,6 +1179,8 @@ declare interface NiceMergeRequestBuilderProps extends NiceBaseProps {
|
|
|
1176
1179
|
onCancel?: () => void;
|
|
1177
1180
|
onBranchChange?: (source: string, target: string) => void;
|
|
1178
1181
|
onPreview?: (data: MergeRequestData) => void;
|
|
1182
|
+
/** Optional "?" guided tour. Off by default; `true` uses the built-in tour. */
|
|
1183
|
+
tutorial?: NiceComponentTutorial;
|
|
1179
1184
|
}
|
|
1180
1185
|
|
|
1181
1186
|
declare interface NicePipelineEditorProps extends NiceBaseProps {
|
|
@@ -1208,6 +1213,8 @@ declare interface NicePipelineEditorProps extends NiceBaseProps {
|
|
|
1208
1213
|
onSave: () => void;
|
|
1209
1214
|
onRun: () => void;
|
|
1210
1215
|
onValidate: () => void;
|
|
1216
|
+
/** Optional "?" guided tour. Off by default; `true` uses the built-in tour. */
|
|
1217
|
+
tutorial?: NiceComponentTutorial;
|
|
1211
1218
|
}
|
|
1212
1219
|
|
|
1213
1220
|
declare interface NicePipelineMonitorProps extends NiceBaseProps {
|
|
@@ -1271,6 +1278,8 @@ declare interface NiceStateDesignerProps extends NiceBaseProps {
|
|
|
1271
1278
|
onStoreChange?: (store: StoreDefinition) => void;
|
|
1272
1279
|
onExport?: (code: string, format: ExportFormat) => void;
|
|
1273
1280
|
onSave?: (store: StoreDefinition) => void;
|
|
1281
|
+
/** Optional "?" guided tour. Off by default; `true` uses the built-in tour. */
|
|
1282
|
+
tutorial?: NiceComponentTutorial;
|
|
1274
1283
|
}
|
|
1275
1284
|
|
|
1276
1285
|
declare interface NiceTestBuilderProps extends NiceBaseProps {
|
|
@@ -1284,6 +1293,8 @@ declare interface NiceTestBuilderProps extends NiceBaseProps {
|
|
|
1284
1293
|
onExport?: (code: string) => void;
|
|
1285
1294
|
onRun?: (suiteId: string) => void;
|
|
1286
1295
|
onRunAll?: () => void;
|
|
1296
|
+
/** Optional "?" guided tour. Off by default; `true` uses the built-in tour. */
|
|
1297
|
+
tutorial?: NiceComponentTutorial;
|
|
1287
1298
|
}
|
|
1288
1299
|
|
|
1289
1300
|
/** A hierarchical node in the {@link NiceTreeMap}. */
|
package/dist/lazy.mjs
CHANGED
|
@@ -1,58 +1,58 @@
|
|
|
1
1
|
import { lazy as t } from "react";
|
|
2
2
|
const r = t(
|
|
3
|
-
() => import("./devops-
|
|
3
|
+
() => import("./devops-C3Pmbnxc.js").then((e) => e.i).then((e) => ({ default: e.NiceGitGraph }))
|
|
4
4
|
), c = t(
|
|
5
|
-
() => import("./devops-
|
|
5
|
+
() => import("./devops-C3Pmbnxc.js").then((e) => e.j).then((e) => ({ default: e.NiceBranchManager }))
|
|
6
6
|
), h = t(
|
|
7
|
-
() => import("./devops-
|
|
7
|
+
() => import("./devops-C3Pmbnxc.js").then((e) => e.l).then((e) => ({ default: e.NiceGitDiffViewer }))
|
|
8
8
|
), l = t(
|
|
9
|
-
() => import("./devops-
|
|
9
|
+
() => import("./devops-C3Pmbnxc.js").then((e) => e.m).then((e) => ({ default: e.NiceGitBlame }))
|
|
10
10
|
), p = t(
|
|
11
|
-
() => import("./devops-
|
|
11
|
+
() => import("./devops-C3Pmbnxc.js").then((e) => e.n).then((e) => ({ default: e.NiceGitConflictResolver }))
|
|
12
12
|
), s = t(
|
|
13
|
-
() => import("./devops-
|
|
13
|
+
() => import("./devops-C3Pmbnxc.js").then((e) => e.p).then((e) => ({ default: e.NicePipelineEditor }))
|
|
14
14
|
), d = t(
|
|
15
|
-
() => import("./devops-
|
|
15
|
+
() => import("./devops-C3Pmbnxc.js").then((e) => e.q).then((e) => ({ default: e.NicePipelineMonitor }))
|
|
16
16
|
), f = t(
|
|
17
|
-
() => import("./devops-
|
|
17
|
+
() => import("./devops-C3Pmbnxc.js").then((e) => e.o).then((e) => ({ default: e.NiceGitHooks }))
|
|
18
18
|
), m = t(
|
|
19
|
-
() => import("./devops-
|
|
19
|
+
() => import("./devops-C3Pmbnxc.js").then((e) => e.k).then((e) => ({ default: e.NiceMergeRequestBuilder }))
|
|
20
20
|
), u = t(
|
|
21
|
-
() => import("./no-code-
|
|
21
|
+
() => import("./no-code-CyvddsYt.js").then((e) => e.k).then((e) => ({ default: e.NiceAPIFlow }))
|
|
22
22
|
), y = t(
|
|
23
|
-
() => import("./no-code-
|
|
23
|
+
() => import("./no-code-CyvddsYt.js").then((e) => e.o).then((e) => ({ default: e.NiceCodeTemplate }))
|
|
24
24
|
), z = t(
|
|
25
|
-
() => import("./no-code-
|
|
25
|
+
() => import("./no-code-CyvddsYt.js").then((e) => e.l).then((e) => ({ default: e.NiceDataMapper }))
|
|
26
26
|
), N = t(
|
|
27
|
-
() => import("./no-code-
|
|
27
|
+
() => import("./no-code-CyvddsYt.js").then((e) => e.m).then((e) => ({ default: e.NiceEventOrchestrator }))
|
|
28
28
|
), L = t(
|
|
29
|
-
() => import("./no-code-
|
|
29
|
+
() => import("./no-code-CyvddsYt.js").then((e) => e.j).then((e) => ({ default: e.NiceStateDesigner }))
|
|
30
30
|
), D = t(
|
|
31
|
-
() => import("./no-code-
|
|
31
|
+
() => import("./no-code-CyvddsYt.js").then((e) => e.n).then((e) => ({ default: e.NiceTestBuilder }))
|
|
32
32
|
), B = t(
|
|
33
|
-
() => import("./data-branching-
|
|
33
|
+
() => import("./data-branching-BPAeL45o.js").then((e) => e.f).then((e) => ({
|
|
34
34
|
default: e.NiceDataBranchManager
|
|
35
35
|
}))
|
|
36
36
|
), G = t(
|
|
37
|
-
() => import("./data-branching-
|
|
37
|
+
() => import("./data-branching-BPAeL45o.js").then((e) => e.g).then((e) => ({ default: e.NiceDataDiffViewer }))
|
|
38
38
|
), M = t(
|
|
39
|
-
() => import("./data-branching-
|
|
39
|
+
() => import("./data-branching-BPAeL45o.js").then((e) => e.h).then((e) => ({ default: e.NiceDataBranchGraph }))
|
|
40
40
|
), g = t(
|
|
41
|
-
() => import("./data-branching-
|
|
41
|
+
() => import("./data-branching-BPAeL45o.js").then((e) => e.i).then((e) => ({
|
|
42
42
|
default: e.NiceDataMergeBuilder
|
|
43
43
|
}))
|
|
44
44
|
), C = t(
|
|
45
|
-
() => import("./data-branching-
|
|
45
|
+
() => import("./data-branching-BPAeL45o.js").then((e) => e.j).then((e) => ({
|
|
46
46
|
default: e.NiceDataConflictResolver
|
|
47
47
|
}))
|
|
48
48
|
), k = t(
|
|
49
|
-
() => import("./data-branching-
|
|
49
|
+
() => import("./data-branching-BPAeL45o.js").then((e) => e.k).then((e) => ({ default: e.NiceDataSnapshot }))
|
|
50
50
|
), v = t(
|
|
51
|
-
() => import("./charts-
|
|
51
|
+
() => import("./charts-DjFvhCdD.js").then((e) => e.A).then((e) => ({ default: e.NiceChart }))
|
|
52
52
|
), w = t(
|
|
53
|
-
() => import("./charts-
|
|
53
|
+
() => import("./charts-DjFvhCdD.js").then((e) => e.E).then((e) => ({ default: e.NiceTreeMap }))
|
|
54
54
|
), T = t(
|
|
55
|
-
() => import("./charts-
|
|
55
|
+
() => import("./charts-DjFvhCdD.js").then((e) => e.B).then((e) => ({ default: e.NiceSankey }))
|
|
56
56
|
), a = () => {
|
|
57
57
|
import("./devops.mjs");
|
|
58
58
|
}, n = () => {
|
package/dist/navigation.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./NiceModuleLifecyclePanel-C4jlm9tl.cjs"),e=require("react/jsx-runtime"),v=require("./core-D0ElqRZA.cjs"),h=require("react"),Z=require("./NiceTabs-dwNCzbJ2.cjs"),U=require("./NicePagination-CJqksuAl.cjs"),I=h.forwardRef(({items:b,activeKey:N,collapsed:a=!1,width:p=240,collapsedWidth:l=52,onItemClick:k,onCollapseChange:D,header:j,footer:d,size:m="md",className:g,style:M,id:y,accessMode:S,...C},x)=>{const c=v.Hs(y),o=v.Zs(S,y),[t,u]=h.useState(new Set),r=h.useCallback(i=>{u($=>{const s=new Set($);return s.has(i)?s.delete(i):s.add(i),s})},[]);if(o==="hidden")return null;const _=(i,$=0)=>{const s=i.children&&i.children.length>0,E=t.has(i.key),w=i.key===N;return e.jsxs("li",{className:"nice-sidebar-menu__item",children:[e.jsxs("button",{className:`nice-sidebar-menu__btn ${w?"nice-sidebar-menu__btn--active":""} ${i.disabled?"nice-sidebar-menu__btn--disabled":""}`,style:{paddingLeft:a?void 0:12+$*16},onClick:()=>s?r(i.key):k?.(i),disabled:i.disabled,title:a?i.text:void 0,type:"button",children:[i.icon&&e.jsx("span",{className:"nice-sidebar-menu__icon",children:i.icon}),!a&&e.jsx("span",{className:"nice-sidebar-menu__label",children:i.text}),!a&&i.badge!==void 0&&e.jsx("span",{className:"nice-sidebar-menu__badge",children:i.badge}),!a&&s&&e.jsx("span",{className:"nice-sidebar-menu__chevron",children:E?"▾":"▸"})]}),s&&E&&!a&&e.jsx("ul",{className:"nice-sidebar-menu__children",children:i.children.map(T=>_(T,$+1))})]},i.key)};return e.jsxs("nav",{ref:x,id:c,className:`nice-sidebar-menu nice-sidebar-menu--${m} ${a?"nice-sidebar-menu--collapsed":""} ${g??""}`,style:{...M,width:a?l:p},...C,children:[j&&e.jsx("div",{className:"nice-sidebar-menu__header",children:j}),e.jsx("ul",{className:"nice-sidebar-menu__list",role:"list",children:b.map(i=>_(i))}),d&&e.jsx("div",{className:"nice-sidebar-menu__footer",children:d})]})});I.displayName="NiceSidebarMenu";const P=h.forwardRef(({items:b,activeKey:N,onItemClick:a,brand:p,actions:l,size:k="md",className:D,style:j,id:d,accessMode:m,...g},M)=>{const y=v.Hs(d),S=v.Zs(m,d),[C,x]=h.useState(null);return S==="hidden"?null:e.jsxs("nav",{ref:M,id:y,className:`nice-top-menu nice-top-menu--${k} ${D??""}`,style:j,...g,children:[p&&e.jsx("div",{className:"nice-top-menu__brand",children:p}),e.jsx("ul",{className:"nice-top-menu__items",role:"menubar",children:b.map(c=>{const o=c.children&&c.children.length>0,t=C===c.key;return e.jsxs("li",{className:"nice-top-menu__item",onMouseEnter:()=>o&&x(c.key),onMouseLeave:()=>o&&x(null),children:[e.jsxs("button",{className:`nice-top-menu__btn ${c.key===N?"nice-top-menu__btn--active":""}`,onClick:()=>o?x(t?null:c.key):a?.(c),role:"menuitem","aria-haspopup":o,"aria-expanded":t,disabled:c.disabled,type:"button",children:[c.icon&&e.jsx("span",{children:c.icon}),e.jsx("span",{children:c.text}),o&&e.jsx("span",{className:"nice-top-menu__chevron",children:"▾"})]}),o&&t&&e.jsx("ul",{className:"nice-top-menu__dropdown",role:"menu",children:c.children.map(u=>e.jsx("li",{children:e.jsxs("button",{className:`nice-top-menu__dropdown-btn ${u.key===N?"nice-top-menu__dropdown-btn--active":""}`,onClick:()=>{a?.(u),x(null)},disabled:u.disabled,role:"menuitem",type:"button",children:[u.icon&&e.jsx("span",{children:u.icon}),e.jsx("span",{children:u.text}),u.badge!==void 0&&e.jsx("span",{className:"nice-top-menu__badge",children:u.badge})]})},u.key))})]},c.key)})}),l&&e.jsx("div",{className:"nice-top-menu__actions",children:l})]})});P.displayName="NiceTopMenu";const B=h.forwardRef(({tabs:b,activeTab:N,onTabChange:a,onItemClick:p,minimized:l=!1,onMinimizeToggle:k,size:D="md",className:j,style:d,id:m,accessMode:g,...M},y)=>{const S=v.Hs(m),C=v.Zs(g,m),[x,c]=h.useState(N??b[0]?.key),o=N??x,t=b.find(r=>r.key===o),u=h.useCallback(r=>{c(r),a?.(r)},[a]);return C==="hidden"?null:e.jsxs("div",{ref:y,id:S,className:`nice-ribbon-menu nice-ribbon-menu--${D} ${l?"nice-ribbon-menu--minimized":""} ${j??""}`,style:d,...M,children:[e.jsxs("div",{className:"nice-ribbon-menu__tabs",role:"tablist",children:[b.map(r=>e.jsx("button",{className:`nice-ribbon-menu__tab ${r.key===o?"nice-ribbon-menu__tab--active":""}`,onClick:()=>u(r.key),role:"tab","aria-selected":r.key===o,type:"button",children:r.label},r.key)),e.jsx("button",{className:"nice-ribbon-menu__minimize",onClick:()=>k?.(!l),type:"button","aria-label":l?"Expand":"Minimize",children:l?"▼":"▲"})]}),!l&&t&&e.jsx("div",{className:"nice-ribbon-menu__panel",role:"tabpanel",children:t.groups.map((r,_)=>e.jsxs("div",{className:"nice-ribbon-menu__group",children:[e.jsx("div",{className:"nice-ribbon-menu__group-items",children:r.items.map(i=>e.jsxs("button",{className:"nice-ribbon-menu__item",onClick:()=>p?.(i),disabled:i.disabled,type:"button",children:[i.icon&&e.jsx("span",{className:"nice-ribbon-menu__item-icon",children:i.icon}),e.jsx("span",{className:"nice-ribbon-menu__item-label",children:i.text})]},i.key))}),e.jsx("div",{className:"nice-ribbon-menu__group-label",children:r.label})]},_))})]})});B.displayName="NiceRibbonMenu";const W=h.forwardRef(({items:b,activeKey:N,onItemClick:a,position:p="bottom",autoHide:l=!1,iconSize:k=40,size:D="md",className:j,style:d,id:m,accessMode:g,...M},y)=>{const S=v.Hs(m),C=v.Zs(g,m),[x,c]=h.useState(!1),o=!l||x;return C==="hidden"?null:e.jsx("div",{ref:y,id:S,className:`nice-dock-menu nice-dock-menu--${p} nice-dock-menu--${D} ${l&&!o?"nice-dock-menu--hidden":""} ${j??""}`,style:d,onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),...M,children:e.jsx("div",{className:"nice-dock-menu__items",children:b.map(t=>e.jsxs("button",{className:`nice-dock-menu__item ${t.key===N?"nice-dock-menu__item--active":""}`,onClick:()=>a?.(t),disabled:t.disabled,title:t.text,type:"button",style:{width:k,height:k},children:[t.icon?e.jsx("span",{className:"nice-dock-menu__icon",children:t.icon}):e.jsx("span",{children:t.text[0]}),t.badge!==void 0&&e.jsx("span",{className:"nice-dock-menu__badge",children:t.badge})]},t.key))})})});W.displayName="NiceDockMenu";const H=h.forwardRef(({items:b,activeKey:N,onItemClick:a,open:p,onOpenChange:l,position:k="left",panelWidth:D=280,header:j,footer:d,size:m="md",className:g,style:M,id:y,accessMode:S,...C},x)=>{const c=v.Hs(y),o=v.Zs(S,y),{t}=v.Jo(),[u,r]=h.useState(!1),_=p??u,i=h.useCallback(()=>{const s=!_;r(s),l?.(s)},[_,l]),$=h.useCallback(s=>{a?.(s),r(!1),l?.(!1)},[a,l]);return o==="hidden"?null:e.jsxs("div",{ref:x,id:c,className:`nice-hamburger-menu nice-hamburger-menu--${m} ${g??""}`,style:M,...C,children:[e.jsx("button",{className:"nice-hamburger-menu__trigger",onClick:i,"aria-label":t("nav.menu","Menu"),"aria-expanded":_,type:"button",children:e.jsxs("span",{className:`nice-hamburger-menu__icon ${_?"nice-hamburger-menu__icon--open":""}`,children:[e.jsx("span",{}),e.jsx("span",{}),e.jsx("span",{})]})}),_&&e.jsx("div",{className:"nice-hamburger-menu__backdrop",onClick:i,"aria-hidden":!0}),e.jsxs("div",{className:`nice-hamburger-menu__panel nice-hamburger-menu__panel--${k} ${_?"nice-hamburger-menu__panel--open":""}`,style:{width:D},children:[j&&e.jsx("div",{className:"nice-hamburger-menu__header",children:j}),e.jsx("ul",{className:"nice-hamburger-menu__list",role:"menu",children:b.map(s=>e.jsx("li",{children:e.jsxs("button",{className:`nice-hamburger-menu__item ${s.key===N?"nice-hamburger-menu__item--active":""}`,onClick:()=>$(s),disabled:s.disabled,role:"menuitem",type:"button",children:[s.icon&&e.jsx("span",{className:"nice-hamburger-menu__item-icon",children:s.icon}),e.jsx("span",{children:s.text}),s.badge!==void 0&&e.jsx("span",{className:"nice-hamburger-menu__item-badge",children:s.badge})]})},s.key))}),d&&e.jsx("div",{className:"nice-hamburger-menu__footer",children:d})]})]})});H.displayName="NiceHamburgerMenu";const L=h.forwardRef(({canGoBack:b=!1,canGoForward:N=!1,onBack:a,onForward:p,onRefresh:l,enableShortcuts:k=!0,showRefresh:D=!0,showStop:j=!0,isLoading:d=!1,onStop:m,size:g="md",variant:M="default",tooltipPosition:y="bottom",backIcon:S,forwardIcon:C,refreshIcon:x,stopIcon:c,className:o,style:t,id:u,accessMode:r,disabled:_,...i},$)=>{const s=v.Hs(u),E=v.Zs(r,u),{t:w}=v.Jo();if(h.useEffect(()=>{if(!k||_)return;const A=f=>{const R=f.altKey,K=f.ctrlKey||f.metaKey;R&&f.key==="ArrowLeft"?(f.preventDefault(),b&&a?.()):R&&f.key==="ArrowRight"?(f.preventDefault(),N&&p?.()):f.key==="F5"||K&&f.key==="r"?(f.preventDefault(),d?m?.():l?.()):f.key==="Escape"&&d&&(f.preventDefault(),m?.())};return window.addEventListener("keydown",A),()=>window.removeEventListener("keydown",A)},[k,_,b,N,d,a,p,l,m]),E==="hidden")return null;const T=E==="disabled"||_,O=S??e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:e.jsx("polyline",{points:"15 18 9 12 15 6"})}),q=C??e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:e.jsx("polyline",{points:"9 18 15 12 9 6"})}),z=x??e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[e.jsx("polyline",{points:"23 4 23 10 17 10"}),e.jsx("path",{d:"M20.49 15a9 9 0 1 1-2.12-9.36L23 10"})]}),F=c??e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[e.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]});return e.jsxs("div",{ref:$,id:s,className:`nice-nav-controls nice-nav-controls--${g} nice-nav-controls--${M}${T?" nice-nav-controls--disabled":""}${o?` ${o}`:""}`,style:t,role:"navigation","aria-label":w("nav.controls","Navigation controls"),...i,children:[e.jsx("button",{type:"button",className:`nice-nav-controls__btn nice-nav-controls__btn--back${b?"":" nice-nav-controls__btn--disabled"}`,onClick:a,disabled:T||!b,"aria-label":w("nav.back","Back"),title:`${w("nav.back","Back")} (Alt+←)`,children:O}),e.jsx("button",{type:"button",className:`nice-nav-controls__btn nice-nav-controls__btn--forward${N?"":" nice-nav-controls__btn--disabled"}`,onClick:p,disabled:T||!N,"aria-label":w("nav.forward","Forward"),title:`${w("nav.forward","Forward")} (Alt+→)`,children:q}),(D||j&&d)&&(d?e.jsx("button",{type:"button",className:"nice-nav-controls__btn nice-nav-controls__btn--stop nice-nav-controls__btn--loading",onClick:m,disabled:T,"aria-label":w("nav.stop","Stop"),title:`${w("nav.stop","Stop")} (Esc)`,children:F}):e.jsx("button",{type:"button",className:"nice-nav-controls__btn nice-nav-controls__btn--refresh",onClick:l,disabled:T,"aria-label":w("nav.refresh","Refresh"),title:`${w("nav.refresh","Refresh")} (F5)`,children:z}))]})});L.displayName="NiceNavigationControls";exports.DEFAULT_SIDEBAR_PREFS=n.DEFAULT_SIDEBAR_PREFS;exports.DesktopContextMenu=n.DesktopContextMenu;exports.DesktopGrid=n.DesktopGrid;exports.DesktopStartMenu=n.DesktopStartMenu;exports.DesktopSystemTray=n.DesktopSystemTray;exports.DesktopTaskbar=n.DesktopTaskbar;exports.NiceAccordion=n.NiceAccordion;exports.NiceAppLayout=n.NiceAppLayout;exports.NiceAuthButtons=n.NiceAuthButtons;exports.NiceBottomNavigation=n.NiceBottomNavigation;exports.NiceBreadcrumb=n.NiceBreadcrumb;exports.NiceCard=n.NiceCard;exports.NiceClassicShell=n.NiceClassicShell;exports.NiceCompactShell=n.NiceCompactShell;exports.NiceConsole=n.NiceConsole;exports.NiceContextMenu=n.NiceContextMenu;exports.NiceDashboardLayout=n.NiceDashboardLayout;exports.NiceDashboardShell=n.NiceDashboardShell;exports.NiceDesktop=n.NiceDesktop;exports.NiceDock=n.NiceDock;exports.NiceDynamicSidebar=n.NiceDynamicSidebar;exports.NiceHybridShell=n.NiceHybridShell;exports.NiceKioskShell=n.NiceKioskShell;exports.NiceMdiWorkspace=n.NiceMdiWorkspace;exports.NiceMenu=n.NiceMenu;exports.NiceMinimalShell=n.NiceMinimalShell;exports.NiceModeSelector=n.NiceModeSelector;exports.NiceModernShell=n.NiceModernShell;exports.NiceModuleLifecyclePanel=n.NiceModuleLifecyclePanel;exports.NiceMultiView=n.NiceMultiView;exports.NiceNavMenu=n.NiceNavMenu;exports.NiceNavbar=n.NiceNavbar;exports.NiceOnboardingWizard=n.NiceOnboardingWizard;exports.NiceOrganizationProfileForm=n.NiceOrganizationProfileForm;exports.NicePwaShell=n.NicePwaShell;exports.NiceSetupWizard=n.NiceSetupWizard;exports.NiceSidebarNav=n.NiceSidebarNav;exports.NiceSplitter=n.NiceSplitter;exports.NiceTabPanel=n.NiceTabPanel;exports.NiceTenantSwitcher=n.NiceTenantSwitcher;exports.NiceToolbar=n.NiceToolbar;exports.NiceUserMenu=n.NiceUserMenu;exports.NiceWizard=n.NiceWizard;exports.SIDEBAR_MODE_META=n.SIDEBAR_MODE_META;exports.NiceTabs=Z.NiceTabs;exports.NicePagination=U.NicePagination;exports.NiceDockMenu=W;exports.NiceHamburgerMenu=H;exports.NiceNavigationControls=L;exports.NiceRibbonMenu=B;exports.NiceSidebarMenu=I;exports.NiceTopMenu=P;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./NiceModuleLifecyclePanel-C54g5eV_.cjs"),e=require("react/jsx-runtime"),v=require("./core-CZE5v34h.cjs"),_=require("react"),U=require("./NiceTabs-CFA8DGYR.cjs"),V=require("./NicePagination-BCRsVzkR.cjs"),I=_.forwardRef(({items:b,activeKey:N,collapsed:a=!1,width:p=240,collapsedWidth:l=52,onItemClick:k,onCollapseChange:D,header:j,footer:d,size:m="md",className:g,style:M,id:y,accessMode:S,...C},x)=>{const s=v._s(y),o=v.sc(S,y),[t,u]=_.useState(new Set),r=_.useCallback(i=>{u($=>{const c=new Set($);return c.has(i)?c.delete(i):c.add(i),c})},[]);if(o==="hidden")return null;const h=(i,$=0)=>{const c=i.children&&i.children.length>0,E=t.has(i.key),w=i.key===N;return e.jsxs("li",{className:"nice-sidebar-menu__item",children:[e.jsxs("button",{className:`nice-sidebar-menu__btn ${w?"nice-sidebar-menu__btn--active":""} ${i.disabled?"nice-sidebar-menu__btn--disabled":""}`,style:{paddingLeft:a?void 0:12+$*16},onClick:()=>c?r(i.key):k?.(i),disabled:i.disabled,title:a?i.text:void 0,type:"button",children:[i.icon&&e.jsx("span",{className:"nice-sidebar-menu__icon",children:i.icon}),!a&&e.jsx("span",{className:"nice-sidebar-menu__label",children:i.text}),!a&&i.badge!==void 0&&e.jsx("span",{className:"nice-sidebar-menu__badge",children:i.badge}),!a&&c&&e.jsx("span",{className:"nice-sidebar-menu__chevron",children:E?"▾":"▸"})]}),c&&E&&!a&&e.jsx("ul",{className:"nice-sidebar-menu__children",children:i.children.map(T=>h(T,$+1))})]},i.key)};return e.jsxs("nav",{ref:x,id:s,className:`nice-sidebar-menu nice-sidebar-menu--${m} ${a?"nice-sidebar-menu--collapsed":""} ${g??""}`,style:{...M,width:a?l:p},...C,children:[j&&e.jsx("div",{className:"nice-sidebar-menu__header",children:j}),e.jsx("ul",{className:"nice-sidebar-menu__list",role:"list",children:b.map(i=>h(i))}),d&&e.jsx("div",{className:"nice-sidebar-menu__footer",children:d})]})});I.displayName="NiceSidebarMenu";const P=_.forwardRef(({items:b,activeKey:N,onItemClick:a,brand:p,actions:l,size:k="md",className:D,style:j,id:d,accessMode:m,...g},M)=>{const y=v._s(d),S=v.sc(m,d),[C,x]=_.useState(null);return S==="hidden"?null:e.jsxs("nav",{ref:M,id:y,className:`nice-top-menu nice-top-menu--${k} ${D??""}`,style:j,...g,children:[p&&e.jsx("div",{className:"nice-top-menu__brand",children:p}),e.jsx("ul",{className:"nice-top-menu__items",role:"menubar",children:b.map(s=>{const o=s.children&&s.children.length>0,t=C===s.key;return e.jsxs("li",{className:"nice-top-menu__item",onMouseEnter:()=>o&&x(s.key),onMouseLeave:()=>o&&x(null),children:[e.jsxs("button",{className:`nice-top-menu__btn ${s.key===N?"nice-top-menu__btn--active":""}`,onClick:()=>o?x(t?null:s.key):a?.(s),role:"menuitem","aria-haspopup":o,"aria-expanded":t,disabled:s.disabled,type:"button",children:[s.icon&&e.jsx("span",{children:s.icon}),e.jsx("span",{children:s.text}),o&&e.jsx("span",{className:"nice-top-menu__chevron",children:"▾"})]}),o&&t&&e.jsx("ul",{className:"nice-top-menu__dropdown",role:"menu",children:s.children.map(u=>e.jsx("li",{children:e.jsxs("button",{className:`nice-top-menu__dropdown-btn ${u.key===N?"nice-top-menu__dropdown-btn--active":""}`,onClick:()=>{a?.(u),x(null)},disabled:u.disabled,role:"menuitem",type:"button",children:[u.icon&&e.jsx("span",{children:u.icon}),e.jsx("span",{children:u.text}),u.badge!==void 0&&e.jsx("span",{className:"nice-top-menu__badge",children:u.badge})]})},u.key))})]},s.key)})}),l&&e.jsx("div",{className:"nice-top-menu__actions",children:l})]})});P.displayName="NiceTopMenu";const B=_.forwardRef(({tabs:b,activeTab:N,onTabChange:a,onItemClick:p,minimized:l=!1,onMinimizeToggle:k,size:D="md",className:j,style:d,id:m,accessMode:g,...M},y)=>{const S=v._s(m),C=v.sc(g,m),[x,s]=_.useState(N??b[0]?.key),o=N??x,t=b.find(r=>r.key===o),u=_.useCallback(r=>{s(r),a?.(r)},[a]);return C==="hidden"?null:e.jsxs("div",{ref:y,id:S,className:`nice-ribbon-menu nice-ribbon-menu--${D} ${l?"nice-ribbon-menu--minimized":""} ${j??""}`,style:d,...M,children:[e.jsxs("div",{className:"nice-ribbon-menu__tabs",role:"tablist",children:[b.map(r=>e.jsx("button",{className:`nice-ribbon-menu__tab ${r.key===o?"nice-ribbon-menu__tab--active":""}`,onClick:()=>u(r.key),role:"tab","aria-selected":r.key===o,type:"button",children:r.label},r.key)),e.jsx("button",{className:"nice-ribbon-menu__minimize",onClick:()=>k?.(!l),type:"button","aria-label":l?"Expand":"Minimize",children:l?"▼":"▲"})]}),!l&&t&&e.jsx("div",{className:"nice-ribbon-menu__panel",role:"tabpanel",children:t.groups.map((r,h)=>e.jsxs("div",{className:"nice-ribbon-menu__group",children:[e.jsx("div",{className:"nice-ribbon-menu__group-items",children:r.items.map(i=>e.jsxs("button",{className:"nice-ribbon-menu__item",onClick:()=>p?.(i),disabled:i.disabled,type:"button",children:[i.icon&&e.jsx("span",{className:"nice-ribbon-menu__item-icon",children:i.icon}),e.jsx("span",{className:"nice-ribbon-menu__item-label",children:i.text})]},i.key))}),e.jsx("div",{className:"nice-ribbon-menu__group-label",children:r.label})]},h))})]})});B.displayName="NiceRibbonMenu";const W=_.forwardRef(({items:b,activeKey:N,onItemClick:a,position:p="bottom",autoHide:l=!1,iconSize:k=40,size:D="md",className:j,style:d,id:m,accessMode:g,...M},y)=>{const S=v._s(m),C=v.sc(g,m),[x,s]=_.useState(!1),o=!l||x;return C==="hidden"?null:e.jsx("div",{ref:y,id:S,className:`nice-dock-menu nice-dock-menu--${p} nice-dock-menu--${D} ${l&&!o?"nice-dock-menu--hidden":""} ${j??""}`,style:d,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),...M,children:e.jsx("div",{className:"nice-dock-menu__items",children:b.map(t=>e.jsxs("button",{className:`nice-dock-menu__item ${t.key===N?"nice-dock-menu__item--active":""}`,onClick:()=>a?.(t),disabled:t.disabled,title:t.text,type:"button",style:{width:k,height:k},children:[t.icon?e.jsx("span",{className:"nice-dock-menu__icon",children:t.icon}):e.jsx("span",{children:t.text[0]}),t.badge!==void 0&&e.jsx("span",{className:"nice-dock-menu__badge",children:t.badge})]},t.key))})})});W.displayName="NiceDockMenu";const L=_.forwardRef(({items:b,activeKey:N,onItemClick:a,open:p,onOpenChange:l,position:k="left",panelWidth:D=280,header:j,footer:d,size:m="md",className:g,style:M,id:y,accessMode:S,...C},x)=>{const s=v._s(y),o=v.sc(S,y),{t}=v.Zt(),[u,r]=_.useState(!1),h=p??u,i=_.useCallback(()=>{const c=!h;r(c),l?.(c)},[h,l]),$=_.useCallback(c=>{a?.(c),r(!1),l?.(!1)},[a,l]);return o==="hidden"?null:e.jsxs("div",{ref:x,id:s,className:`nice-hamburger-menu nice-hamburger-menu--${m} ${g??""}`,style:M,...C,children:[e.jsx("button",{className:"nice-hamburger-menu__trigger",onClick:i,"aria-label":t("nav.menu","Menu"),"aria-expanded":h,type:"button",children:e.jsxs("span",{className:`nice-hamburger-menu__icon ${h?"nice-hamburger-menu__icon--open":""}`,children:[e.jsx("span",{}),e.jsx("span",{}),e.jsx("span",{})]})}),h&&e.jsx("div",{className:"nice-hamburger-menu__backdrop",onClick:i,"aria-hidden":!0}),e.jsxs("div",{className:`nice-hamburger-menu__panel nice-hamburger-menu__panel--${k} ${h?"nice-hamburger-menu__panel--open":""}`,style:{width:D},children:[j&&e.jsx("div",{className:"nice-hamburger-menu__header",children:j}),e.jsx("ul",{className:"nice-hamburger-menu__list",role:"menu",children:b.map(c=>e.jsx("li",{children:e.jsxs("button",{className:`nice-hamburger-menu__item ${c.key===N?"nice-hamburger-menu__item--active":""}`,onClick:()=>$(c),disabled:c.disabled,role:"menuitem",type:"button",children:[c.icon&&e.jsx("span",{className:"nice-hamburger-menu__item-icon",children:c.icon}),e.jsx("span",{children:c.text}),c.badge!==void 0&&e.jsx("span",{className:"nice-hamburger-menu__item-badge",children:c.badge})]})},c.key))}),d&&e.jsx("div",{className:"nice-hamburger-menu__footer",children:d})]})]})});L.displayName="NiceHamburgerMenu";const O=_.forwardRef(({canGoBack:b=!1,canGoForward:N=!1,onBack:a,onForward:p,onRefresh:l,enableShortcuts:k=!0,showRefresh:D=!0,showStop:j=!0,isLoading:d=!1,onStop:m,size:g="md",variant:M="default",tooltipPosition:y="bottom",backIcon:S,forwardIcon:C,refreshIcon:x,stopIcon:s,className:o,style:t,id:u,accessMode:r,disabled:h,...i},$)=>{const c=v._s(u),E=v.sc(r,u),{t:w}=v.Zt();if(_.useEffect(()=>{if(!k||h)return;const A=f=>{const R=f.altKey,H=f.ctrlKey||f.metaKey;R&&f.key==="ArrowLeft"?(f.preventDefault(),b&&a?.()):R&&f.key==="ArrowRight"?(f.preventDefault(),N&&p?.()):f.key==="F5"||H&&f.key==="r"?(f.preventDefault(),d?m?.():l?.()):f.key==="Escape"&&d&&(f.preventDefault(),m?.())};return window.addEventListener("keydown",A),()=>window.removeEventListener("keydown",A)},[k,h,b,N,d,a,p,l,m]),E==="hidden")return null;const T=E==="disabled"||h,q=S??e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:e.jsx("polyline",{points:"15 18 9 12 15 6"})}),z=C??e.jsx("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:e.jsx("polyline",{points:"9 18 15 12 9 6"})}),F=x??e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[e.jsx("polyline",{points:"23 4 23 10 17 10"}),e.jsx("path",{d:"M20.49 15a9 9 0 1 1-2.12-9.36L23 10"})]}),K=s??e.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[e.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),e.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]});return e.jsxs("div",{ref:$,id:c,className:`nice-nav-controls nice-nav-controls--${g} nice-nav-controls--${M}${T?" nice-nav-controls--disabled":""}${o?` ${o}`:""}`,style:t,role:"navigation","aria-label":w("nav.controls","Navigation controls"),...i,children:[e.jsx("button",{type:"button",className:`nice-nav-controls__btn nice-nav-controls__btn--back${b?"":" nice-nav-controls__btn--disabled"}`,onClick:a,disabled:T||!b,"aria-label":w("nav.back","Back"),title:`${w("nav.back","Back")} (Alt+←)`,children:q}),e.jsx("button",{type:"button",className:`nice-nav-controls__btn nice-nav-controls__btn--forward${N?"":" nice-nav-controls__btn--disabled"}`,onClick:p,disabled:T||!N,"aria-label":w("nav.forward","Forward"),title:`${w("nav.forward","Forward")} (Alt+→)`,children:z}),(D||j&&d)&&(d?e.jsx("button",{type:"button",className:"nice-nav-controls__btn nice-nav-controls__btn--stop nice-nav-controls__btn--loading",onClick:m,disabled:T,"aria-label":w("nav.stop","Stop"),title:`${w("nav.stop","Stop")} (Esc)`,children:K}):e.jsx("button",{type:"button",className:"nice-nav-controls__btn nice-nav-controls__btn--refresh",onClick:l,disabled:T,"aria-label":w("nav.refresh","Refresh"),title:`${w("nav.refresh","Refresh")} (F5)`,children:F}))]})});O.displayName="NiceNavigationControls";exports.DEFAULT_SIDEBAR_PREFS=n.DEFAULT_SIDEBAR_PREFS;exports.DesktopContextMenu=n.DesktopContextMenu;exports.DesktopGrid=n.DesktopGrid;exports.DesktopStartMenu=n.DesktopStartMenu;exports.DesktopSystemTray=n.DesktopSystemTray;exports.DesktopTaskbar=n.DesktopTaskbar;exports.NiceAccordion=n.NiceAccordion;exports.NiceAppLayout=n.NiceAppLayout;exports.NiceAuthButtons=n.NiceAuthButtons;exports.NiceBottomNavigation=n.NiceBottomNavigation;exports.NiceBreadcrumb=n.NiceBreadcrumb;exports.NiceCard=n.NiceCard;exports.NiceClassicShell=n.NiceClassicShell;exports.NiceCompactShell=n.NiceCompactShell;exports.NiceConsole=n.NiceConsole;exports.NiceContextMenu=n.NiceContextMenu;exports.NiceDashboardLayout=n.NiceDashboardLayout;exports.NiceDashboardShell=n.NiceDashboardShell;exports.NiceDesktop=n.NiceDesktop;exports.NiceDock=n.NiceDock;exports.NiceDynamicSidebar=n.NiceDynamicSidebar;exports.NiceHybridShell=n.NiceHybridShell;exports.NiceKioskShell=n.NiceKioskShell;exports.NiceMdiWorkspace=n.NiceMdiWorkspace;exports.NiceMenu=n.NiceMenu;exports.NiceMinimalShell=n.NiceMinimalShell;exports.NiceModeSelector=n.NiceModeSelector;exports.NiceModernShell=n.NiceModernShell;exports.NiceModuleLifecyclePanel=n.NiceModuleLifecyclePanel;exports.NiceMultiView=n.NiceMultiView;exports.NiceNavMenu=n.NiceNavMenu;exports.NiceNavbar=n.NiceNavbar;exports.NiceOnboardingWizard=n.NiceOnboardingWizard;exports.NiceOrganizationProfileForm=n.NiceOrganizationProfileForm;exports.NicePwaShell=n.NicePwaShell;exports.NiceSetupWizard=n.NiceSetupWizard;exports.NiceSidebarNav=n.NiceSidebarNav;exports.NiceSplitter=n.NiceSplitter;exports.NiceTabPanel=n.NiceTabPanel;exports.NiceTenantSwitcher=n.NiceTenantSwitcher;exports.NiceToolbar=n.NiceToolbar;exports.NiceUserMenu=n.NiceUserMenu;exports.NiceWizard=n.NiceWizard;exports.SIDEBAR_MODE_META=n.SIDEBAR_MODE_META;exports.NiceTabs=U.NiceTabs;exports.NicePagination=V.NicePagination;exports.NiceDockMenu=W;exports.NiceHamburgerMenu=L;exports.NiceNavigationControls=O;exports.NiceRibbonMenu=B;exports.NiceSidebarMenu=I;exports.NiceTopMenu=P;
|
package/dist/navigation.d.ts
CHANGED
|
@@ -1360,6 +1360,9 @@ export declare interface NiceShellProps extends NiceBaseProps {
|
|
|
1360
1360
|
children?: React.ReactNode;
|
|
1361
1361
|
}
|
|
1362
1362
|
|
|
1363
|
+
/** Context-menu / gesture actions that can be selectively disabled (e.g. for guests). */
|
|
1364
|
+
export declare type NiceSidebarContextMenuAction = 'hide' | 'reorder' | 'rename' | 'newGroup' | 'collapseToggle';
|
|
1365
|
+
|
|
1363
1366
|
export declare const NiceSidebarMenu: ForwardRefExoticComponent<NiceSidebarMenuProps & RefAttributes<HTMLElement>>;
|
|
1364
1367
|
|
|
1365
1368
|
export declare interface NiceSidebarMenuProps extends NiceBaseProps {
|
|
@@ -1403,6 +1406,21 @@ export declare interface NiceSidebarNavProps {
|
|
|
1403
1406
|
routeToUrl?: (route: string) => string;
|
|
1404
1407
|
/** Enable the right-click context menu on view nodes. Default `true`. */
|
|
1405
1408
|
contextMenu?: boolean;
|
|
1409
|
+
/**
|
|
1410
|
+
* Disable individual destructive context-menu actions (and the matching
|
|
1411
|
+
* gestures). Listed actions render greyed-out; non-destructive actions
|
|
1412
|
+
* ("Open in new tab", "Copy link", favorites) stay enabled. Useful for guest
|
|
1413
|
+
* / demo panels that have no Preferences page to recover from accidental edits.
|
|
1414
|
+
*/
|
|
1415
|
+
disabledContextMenuActions?: NiceSidebarContextMenuAction[];
|
|
1416
|
+
/**
|
|
1417
|
+
* Shorthand for read-only mode: disables every destructive context-menu
|
|
1418
|
+
* action ('hide', 'reorder', 'rename', 'newGroup') and drag-reorder, while
|
|
1419
|
+
* keeping navigation, expand/collapse and "Open in new tab" / "Copy link".
|
|
1420
|
+
* Equivalent to passing the full destructive list to
|
|
1421
|
+
* {@link disabledContextMenuActions}. Default `false`.
|
|
1422
|
+
*/
|
|
1423
|
+
readonly?: boolean;
|
|
1406
1424
|
/**
|
|
1407
1425
|
* Override the initial enableModeIcons flag.
|
|
1408
1426
|
* Can be toggled later via Preferences.
|
|
@@ -1426,12 +1444,20 @@ export declare interface NiceSidebarNavProps {
|
|
|
1426
1444
|
*/
|
|
1427
1445
|
position?: 'left' | 'right';
|
|
1428
1446
|
/**
|
|
1429
|
-
* **Minimal mode** — hides the mode strip,
|
|
1430
|
-
* preferences, leaving only the navigation
|
|
1431
|
-
*
|
|
1432
|
-
* Default `false`.
|
|
1447
|
+
* **Minimal mode** — shorthand that hides the mode strip, source headers,
|
|
1448
|
+
* the favorites view and the footer preferences, leaving only the navigation
|
|
1449
|
+
* tree. Equivalent to setting all four `show*` flags below to `false`. The
|
|
1450
|
+
* granular flags override it when set explicitly. Default `false`.
|
|
1433
1451
|
*/
|
|
1434
1452
|
minimal?: boolean;
|
|
1453
|
+
/** Show the mode-icon strip (Pinned / Recent / All / Prefs). Default `!minimal`. */
|
|
1454
|
+
showModeStrip?: boolean;
|
|
1455
|
+
/** Show source section headers above their trees. Default `!minimal`. */
|
|
1456
|
+
showSources?: boolean;
|
|
1457
|
+
/** Allow the Favorites view/mode. Default `!minimal`. */
|
|
1458
|
+
showFavorites?: boolean;
|
|
1459
|
+
/** Allow the footer Preferences view/mode. Default `!minimal`. */
|
|
1460
|
+
showFooterPreferences?: boolean;
|
|
1435
1461
|
/**
|
|
1436
1462
|
* **Embedded mode** — render the sidebar inside another container (e.g. a
|
|
1437
1463
|
* mobile drawer / hamburger menu). Forces full width, drops the footer with
|
package/dist/navigation.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { D as ae, a as ie, b as ce, c as se, d as le, e as te, N as re, 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 we, w as Me, x as Ce, y as De, z as Se, A as Ee, B as Ie, C as Te, E as Ae, F as Pe, G as Be, H as Le, I as Re, J as We, K as
|
|
1
|
+
import { D as ae, a as ie, b as ce, c as se, d as le, e as te, N as re, 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 we, w as Me, x as Ce, y as De, z as Se, A as Ee, B as Ie, C as Te, E as Ae, F as Pe, G as Be, H as Le, I as Re, J as We, K as Ke, L as Oe, M as Fe, O as He, P as je, Q as ze, S as Ue } from "./NiceModuleLifecyclePanel-BZMUuDad.js";
|
|
2
2
|
import { jsx as e, jsxs as o } from "react/jsx-runtime";
|
|
3
|
-
import {
|
|
3
|
+
import { _ as E, a as I, Z as W } from "./core-CT5vpy5U.js";
|
|
4
4
|
import { forwardRef as T, useState as P, useCallback as B, useEffect as z } from "react";
|
|
5
|
-
import { f as
|
|
6
|
-
import { N as
|
|
7
|
-
const
|
|
5
|
+
import { f as Ze } from "./NiceTabs-Cx9DN6QD.js";
|
|
6
|
+
import { N as Je } from "./NicePagination-3be3_sVK.js";
|
|
7
|
+
const U = T(
|
|
8
8
|
({
|
|
9
9
|
items: b,
|
|
10
10
|
activeKey: m,
|
|
@@ -70,8 +70,8 @@ const J = T(
|
|
|
70
70
|
);
|
|
71
71
|
}
|
|
72
72
|
);
|
|
73
|
-
|
|
74
|
-
const
|
|
73
|
+
U.displayName = "NiceSidebarMenu";
|
|
74
|
+
const V = T(
|
|
75
75
|
({
|
|
76
76
|
items: b,
|
|
77
77
|
activeKey: m,
|
|
@@ -150,8 +150,8 @@ const U = T(
|
|
|
150
150
|
);
|
|
151
151
|
}
|
|
152
152
|
);
|
|
153
|
-
|
|
154
|
-
const
|
|
153
|
+
V.displayName = "NiceTopMenu";
|
|
154
|
+
const Z = T(
|
|
155
155
|
({
|
|
156
156
|
tabs: b,
|
|
157
157
|
activeTab: m,
|
|
@@ -227,8 +227,8 @@ const V = T(
|
|
|
227
227
|
);
|
|
228
228
|
}
|
|
229
229
|
);
|
|
230
|
-
|
|
231
|
-
const
|
|
230
|
+
Z.displayName = "NiceRibbonMenu";
|
|
231
|
+
const q = T(
|
|
232
232
|
({
|
|
233
233
|
items: b,
|
|
234
234
|
activeKey: m,
|
|
@@ -274,8 +274,8 @@ const Z = T(
|
|
|
274
274
|
);
|
|
275
275
|
}
|
|
276
276
|
);
|
|
277
|
-
|
|
278
|
-
const
|
|
277
|
+
q.displayName = "NiceDockMenu";
|
|
278
|
+
const J = T(
|
|
279
279
|
({
|
|
280
280
|
items: b,
|
|
281
281
|
activeKey: m,
|
|
@@ -364,7 +364,7 @@ const q = T(
|
|
|
364
364
|
);
|
|
365
365
|
}
|
|
366
366
|
);
|
|
367
|
-
|
|
367
|
+
J.displayName = "NiceHamburgerMenu";
|
|
368
368
|
const Q = T(
|
|
369
369
|
({
|
|
370
370
|
canGoBack: b = !1,
|
|
@@ -412,7 +412,7 @@ const Q = T(
|
|
|
412
412
|
_
|
|
413
413
|
]), A === "hidden")
|
|
414
414
|
return null;
|
|
415
|
-
const S = A === "disabled" || h,
|
|
415
|
+
const S = A === "disabled" || h, K = x ?? /* @__PURE__ */ e(
|
|
416
416
|
"svg",
|
|
417
417
|
{
|
|
418
418
|
width: "16",
|
|
@@ -423,7 +423,7 @@ const Q = T(
|
|
|
423
423
|
strokeWidth: "2",
|
|
424
424
|
children: /* @__PURE__ */ e("polyline", { points: "15 18 9 12 15 6" })
|
|
425
425
|
}
|
|
426
|
-
),
|
|
426
|
+
), O = w ?? /* @__PURE__ */ e(
|
|
427
427
|
"svg",
|
|
428
428
|
{
|
|
429
429
|
width: "16",
|
|
@@ -434,7 +434,7 @@ const Q = T(
|
|
|
434
434
|
strokeWidth: "2",
|
|
435
435
|
children: /* @__PURE__ */ e("polyline", { points: "9 18 15 12 9 6" })
|
|
436
436
|
}
|
|
437
|
-
),
|
|
437
|
+
), F = N ?? /* @__PURE__ */ o(
|
|
438
438
|
"svg",
|
|
439
439
|
{
|
|
440
440
|
width: "16",
|
|
@@ -448,7 +448,7 @@ const Q = T(
|
|
|
448
448
|
/* @__PURE__ */ e("path", { d: "M20.49 15a9 9 0 1 1-2.12-9.36L23 10" })
|
|
449
449
|
]
|
|
450
450
|
}
|
|
451
|
-
),
|
|
451
|
+
), H = i ?? /* @__PURE__ */ o(
|
|
452
452
|
"svg",
|
|
453
453
|
{
|
|
454
454
|
width: "16",
|
|
@@ -483,7 +483,7 @@ const Q = T(
|
|
|
483
483
|
disabled: S || !b,
|
|
484
484
|
"aria-label": M("nav.back", "Back"),
|
|
485
485
|
title: `${M("nav.back", "Back")} (Alt+←)`,
|
|
486
|
-
children:
|
|
486
|
+
children: K
|
|
487
487
|
}
|
|
488
488
|
),
|
|
489
489
|
/* @__PURE__ */ e(
|
|
@@ -495,7 +495,7 @@ const Q = T(
|
|
|
495
495
|
disabled: S || !m,
|
|
496
496
|
"aria-label": M("nav.forward", "Forward"),
|
|
497
497
|
title: `${M("nav.forward", "Forward")} (Alt+→)`,
|
|
498
|
-
children:
|
|
498
|
+
children: O
|
|
499
499
|
}
|
|
500
500
|
),
|
|
501
501
|
(C || k && d) && (d ? /* @__PURE__ */ e(
|
|
@@ -507,7 +507,7 @@ const Q = T(
|
|
|
507
507
|
disabled: S,
|
|
508
508
|
"aria-label": M("nav.stop", "Stop"),
|
|
509
509
|
title: `${M("nav.stop", "Stop")} (Esc)`,
|
|
510
|
-
children:
|
|
510
|
+
children: H
|
|
511
511
|
}
|
|
512
512
|
) : /* @__PURE__ */ e(
|
|
513
513
|
"button",
|
|
@@ -518,7 +518,7 @@ const Q = T(
|
|
|
518
518
|
disabled: S,
|
|
519
519
|
"aria-label": M("nav.refresh", "Refresh"),
|
|
520
520
|
title: `${M("nav.refresh", "Refresh")} (F5)`,
|
|
521
|
-
children:
|
|
521
|
+
children: F
|
|
522
522
|
}
|
|
523
523
|
))
|
|
524
524
|
]
|
|
@@ -548,9 +548,9 @@ export {
|
|
|
548
548
|
ke as NiceDashboardShell,
|
|
549
549
|
ye as NiceDesktop,
|
|
550
550
|
fe as NiceDock,
|
|
551
|
-
|
|
551
|
+
q as NiceDockMenu,
|
|
552
552
|
ge as NiceDynamicSidebar,
|
|
553
|
-
|
|
553
|
+
J as NiceHamburgerMenu,
|
|
554
554
|
$e as NiceHybridShell,
|
|
555
555
|
xe as NiceKioskShell,
|
|
556
556
|
we as NiceMdiWorkspace,
|
|
@@ -565,19 +565,19 @@ export {
|
|
|
565
565
|
Q as NiceNavigationControls,
|
|
566
566
|
Pe as NiceOnboardingWizard,
|
|
567
567
|
Be as NiceOrganizationProfileForm,
|
|
568
|
-
|
|
568
|
+
Je as NicePagination,
|
|
569
569
|
Le as NicePwaShell,
|
|
570
|
-
|
|
570
|
+
Z as NiceRibbonMenu,
|
|
571
571
|
Re as NiceSetupWizard,
|
|
572
|
-
|
|
572
|
+
U as NiceSidebarMenu,
|
|
573
573
|
We as NiceSidebarNav,
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
574
|
+
Ke as NiceSplitter,
|
|
575
|
+
Oe as NiceTabPanel,
|
|
576
|
+
Ze as NiceTabs,
|
|
577
|
+
Fe as NiceTenantSwitcher,
|
|
578
|
+
He as NiceToolbar,
|
|
579
|
+
V as NiceTopMenu,
|
|
580
580
|
je as NiceUserMenu,
|
|
581
581
|
ze as NiceWizard,
|
|
582
|
-
|
|
582
|
+
Ue as SIDEBAR_MODE_META
|
|
583
583
|
};
|