@nice2dev/ui 1.0.30 → 1.1.5
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 +848 -0
- package/README.md +30 -31
- package/dist/NiceCalendarScheduler.doc-BEtQkZjV.cjs +9 -0
- package/dist/NiceCalendarScheduler.doc-D__LRgOx.js +33 -0
- package/dist/NiceCodeEditor-BVUwp9yX.js +1134 -0
- package/dist/NiceCodeEditor-cIqUSk3j.cjs +260 -0
- package/dist/NiceColorPicker-C8NZZcXE.js +596 -0
- package/dist/NiceColorPicker-CKVbjicN.cjs +1 -0
- package/dist/NiceConfirmDialog-B57cl_F7.cjs +1 -0
- package/dist/NiceConfirmDialog-DmBX1Iea.js +81 -0
- package/dist/NiceConfirmDialog-N9fBTLYm.js +81 -0
- package/dist/NiceConfirmDialog-oSxVpsCs.cjs +1 -0
- package/dist/NiceDataGrid-3AIf2D3t.cjs +10 -0
- package/dist/NiceDataGrid-CXCUAkRb.js +1736 -0
- package/dist/NiceDocumentViewer-B-uEPZAf.js +672 -0
- package/dist/NiceDocumentViewer-BE0gKBlw.cjs +180 -0
- package/dist/NiceDrawingCanvas.doc-Dv5vB4gY.js +32 -0
- package/dist/NiceDrawingCanvas.doc-Ww9zz17x.cjs +8 -0
- package/dist/NiceErrorBoundary-BD-uqk_q.js +709 -0
- package/dist/NiceErrorBoundary-CIPXaYik.cjs +1 -0
- package/dist/NiceFileManagerViews.doc-CKlnm6cX.cjs +1 -0
- package/dist/NiceFileManagerViews.doc-Cg21DArG.js +25 -0
- package/dist/NiceForm-BNZB31Pg.js +4499 -0
- package/dist/NiceForm-C6F0HvrX.cjs +1 -0
- package/dist/NiceForm-CCyfWgIs.js +4805 -0
- package/dist/NiceForm-CPyAXxBO.cjs +1 -0
- package/dist/NiceGantt-CSFLZD2y.js +328 -0
- package/dist/NiceGantt-_ysNSVYR.cjs +1 -0
- package/dist/NiceHtmlEditor-B8B8AcSC.js +841 -0
- package/dist/NiceHtmlEditor-D8RQcBNp.cjs +10 -0
- package/dist/NiceLoginForm-Bai7aN8V.js +708 -0
- package/dist/NiceLoginForm-BrvIc-wq.cjs +1 -0
- package/dist/NiceMegaMenu.doc-7UyOCd3l.cjs +7 -0
- package/dist/NiceMegaMenu.doc-zeIyVa65.js +31 -0
- package/dist/NiceMention-CWoLD0SE.js +11082 -0
- package/dist/NiceMention-J1lUDLhg.cjs +430 -0
- package/dist/NiceMention.css +1 -0
- package/dist/NiceModal-0UxviEYE.cjs +1 -0
- package/dist/NiceModal-Bj53SKLI.js +95 -0
- package/dist/NiceModal-D-iOonog.js +95 -0
- package/dist/NiceModal-DC0UlQhc.cjs +1 -0
- package/dist/NiceModuleLifecyclePanel-4hzDw6it.js +6999 -0
- package/dist/NiceModuleLifecyclePanel-BBOg9g0b.cjs +1 -0
- package/dist/NiceModuleLifecyclePanel-Df_1k5qW.cjs +1 -0
- package/dist/NiceModuleLifecyclePanel-DtuXRiLR.js +6991 -0
- package/dist/NiceModuleLifecyclePanel.css +1 -1
- package/dist/NicePagination-Bjxy9aEc.js +172 -0
- package/dist/NicePagination-CPn-Q1h_.js +172 -0
- package/dist/NicePagination-CfFfNwrg.cjs +1 -0
- package/dist/NicePagination-EEQ6o1dF.cjs +1 -0
- package/dist/NicePivotGrid-Cmiolup9.cjs +152 -0
- package/dist/NicePivotGrid-DX_iUj2X.js +1167 -0
- package/dist/NiceSavedQueryPanel-BhjFJBvn.cjs +586 -0
- package/dist/NiceSavedQueryPanel-CH5c3rUG.js +6988 -0
- package/dist/NiceSavedQueryPanel-KvyXTnFx.js +5129 -0
- package/dist/NiceSavedQueryPanel-aQrEmmcC.cjs +596 -0
- package/dist/NiceScannerControl-Cd5KXJA9.js +12769 -0
- package/dist/NiceScannerControl-DZsERSw_.cjs +698 -0
- package/dist/NiceScannerControl.css +1 -0
- package/dist/NiceScheduler-DuxPzQQZ.js +1645 -0
- package/dist/NiceScheduler-nW7fMzKL.cjs +5 -0
- package/dist/NiceSelect-BVoqtfYN.cjs +1 -0
- package/dist/NiceSelect-DHowflmX.js +433 -0
- package/dist/NiceWindow-BoDzlGk-.js +1621 -0
- package/dist/NiceWindow-DdD9k4nc.cjs +1 -0
- package/dist/NiceWindow-DgONWxBm.cjs +1 -0
- package/dist/NiceWindow-xnTSHdHv.js +1623 -0
- package/dist/charts-B-sl1V9y.cjs +882 -0
- package/dist/charts-Bs0aDM0X.js +4671 -0
- package/dist/charts-DO2z6Ziu.js +31920 -0
- package/dist/charts-DjjKkw0q.cjs +761 -0
- package/dist/charts.cjs +1 -1
- package/dist/charts.mjs +7 -7
- package/dist/core-BUsZ7_vI.js +27914 -0
- package/dist/core-C2KhqEaU.cjs +1 -0
- package/dist/core-CLfcCDKc.cjs +122 -0
- package/dist/core-K2DIxXLn.js +795 -0
- package/dist/data-branching-D7l_kILW.cjs +1 -0
- package/dist/data-branching-DC6hcBQN.cjs +1 -0
- package/dist/data-branching-DykdTpjJ.js +6255 -0
- package/dist/data-branching-lJ07lDN-.js +6255 -0
- package/dist/data-branching.cjs +1 -1
- package/dist/data-branching.mjs +1 -1
- package/dist/data.cjs +1 -1
- package/dist/data.d.ts +70 -44
- package/dist/data.mjs +17 -16
- package/dist/devops-Bi8MXtko.js +8165 -0
- package/dist/devops-CU0sOVEA.cjs +17 -0
- package/dist/devops-CXyEwQeM.js +8165 -0
- package/dist/devops-On_1wRf9.cjs +17 -0
- package/dist/devops.cjs +1 -1
- package/dist/devops.mjs +1 -1
- package/dist/editors.cjs +1 -1
- package/dist/editors.d.ts +288 -432
- package/dist/editors.mjs +58 -62
- package/dist/feedback.cjs +1 -1
- package/dist/feedback.d.ts +1 -1
- package/dist/feedback.mjs +3 -3
- package/dist/index-BDH1yDSg.js +69235 -0
- package/dist/index-C9njkNOD.cjs +5470 -0
- package/dist/index.cjs +5137 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +556 -929
- package/dist/index.mjs +66371 -1017
- package/dist/lazy.cjs +1 -1
- package/dist/lazy.mjs +24 -24
- package/dist/navigation.cjs +1 -1
- package/dist/navigation.d.ts +31 -213
- package/dist/navigation.mjs +105 -113
- package/dist/no-code-8lO7o6xi.js +7425 -0
- package/dist/no-code-C58g8_fb.cjs +332 -0
- package/dist/no-code-Cj4xJ3w9.js +7425 -0
- package/dist/no-code-K8tOLNew.cjs +332 -0
- package/dist/no-code.cjs +1 -1
- package/dist/no-code.mjs +1 -1
- package/dist/overlays.cjs +1 -1
- package/dist/overlays.d.ts +10 -0
- package/dist/overlays.mjs +36 -36
- package/dist/pickerCommons-B-wOzHFh.cjs +1 -0
- package/dist/pickerCommons-CORo9j2a.js +2119 -0
- package/dist/pickerCommons-COiSUiP2.js +1122 -0
- package/dist/pickerCommons-D3WShRrR.cjs +1 -0
- package/dist/style.css +6 -6
- package/dist/vendor-BPVpdtPp.js +271 -0
- package/dist/vendor-Bo2Q64AF.cjs +1 -0
- package/package.json +17 -17
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-CU0sOVEA.cjs")).then(e=>e.NiceGitGraph$1).then(e=>({default:e.NiceGitGraph}))),o=a.lazy(()=>Promise.resolve().then(()=>require("./devops-CU0sOVEA.cjs")).then(e=>e.NiceBranchManager$1).then(e=>({default:e.NiceBranchManager}))),l=a.lazy(()=>Promise.resolve().then(()=>require("./devops-CU0sOVEA.cjs")).then(e=>e.NiceGitDiffViewer$1).then(e=>({default:e.NiceGitDiffViewer}))),s=a.lazy(()=>Promise.resolve().then(()=>require("./devops-CU0sOVEA.cjs")).then(e=>e.NiceGitBlame$1).then(e=>({default:e.NiceGitBlame}))),h=a.lazy(()=>Promise.resolve().then(()=>require("./devops-CU0sOVEA.cjs")).then(e=>e.NiceGitConflictResolver$1).then(e=>({default:e.NiceGitConflictResolver}))),c=a.lazy(()=>Promise.resolve().then(()=>require("./devops-CU0sOVEA.cjs")).then(e=>e.NicePipelineEditor$1).then(e=>({default:e.NicePipelineEditor}))),y=a.lazy(()=>Promise.resolve().then(()=>require("./devops-CU0sOVEA.cjs")).then(e=>e.NicePipelineMonitor$1).then(e=>({default:e.NicePipelineMonitor}))),u=a.lazy(()=>Promise.resolve().then(()=>require("./devops-CU0sOVEA.cjs")).then(e=>e.NiceGitHooks$1).then(e=>({default:e.NiceGitHooks}))),z=a.lazy(()=>Promise.resolve().then(()=>require("./devops-CU0sOVEA.cjs")).then(e=>e.NiceMergeRequestBuilder$1).then(e=>({default:e.NiceMergeRequestBuilder}))),d=a.lazy(()=>Promise.resolve().then(()=>require("./no-code-C58g8_fb.cjs")).then(e=>e.NiceAPIFlow$1).then(e=>({default:e.NiceAPIFlow}))),f=a.lazy(()=>Promise.resolve().then(()=>require("./no-code-C58g8_fb.cjs")).then(e=>e.NiceCodeTemplate$1).then(e=>({default:e.NiceCodeTemplate}))),N=a.lazy(()=>Promise.resolve().then(()=>require("./no-code-C58g8_fb.cjs")).then(e=>e.NiceDataMapper$1).then(e=>({default:e.NiceDataMapper}))),L=a.lazy(()=>Promise.resolve().then(()=>require("./no-code-C58g8_fb.cjs")).then(e=>e.NiceEventOrchestrator$1).then(e=>({default:e.NiceEventOrchestrator}))),p=a.lazy(()=>Promise.resolve().then(()=>require("./no-code-C58g8_fb.cjs")).then(e=>e.NiceStateDesigner$1).then(e=>({default:e.NiceStateDesigner}))),v=a.lazy(()=>Promise.resolve().then(()=>require("./no-code-C58g8_fb.cjs")).then(e=>e.NiceTestBuilder$1).then(e=>({default:e.NiceTestBuilder}))),D=a.lazy(()=>Promise.resolve().then(()=>require("./data-branching-DC6hcBQN.cjs")).then(e=>e.NiceDataBranchManager$1).then(e=>({default:e.NiceDataBranchManager}))),P=a.lazy(()=>Promise.resolve().then(()=>require("./data-branching-DC6hcBQN.cjs")).then(e=>e.NiceDataDiffViewer$1).then(e=>({default:e.NiceDataDiffViewer}))),m=a.lazy(()=>Promise.resolve().then(()=>require("./data-branching-DC6hcBQN.cjs")).then(e=>e.NiceDataBranchGraph$1).then(e=>({default:e.NiceDataBranchGraph}))),q=a.lazy(()=>Promise.resolve().then(()=>require("./data-branching-DC6hcBQN.cjs")).then(e=>e.NiceDataMergeBuilder$1).then(e=>({default:e.NiceDataMergeBuilder}))),B=a.lazy(()=>Promise.resolve().then(()=>require("./data-branching-DC6hcBQN.cjs")).then(e=>e.NiceDataConflictResolver$1).then(e=>({default:e.NiceDataConflictResolver}))),M=a.lazy(()=>Promise.resolve().then(()=>require("./data-branching-DC6hcBQN.cjs")).then(e=>e.NiceDataSnapshot$1).then(e=>({default:e.NiceDataSnapshot}))),G=a.lazy(()=>Promise.resolve().then(()=>require("./charts-B-sl1V9y.cjs")).then(e=>e.NiceChart$1).then(e=>({default:e.NiceChart}))),g=a.lazy(()=>Promise.resolve().then(()=>require("./charts-B-sl1V9y.cjs")).then(e=>e.NiceTreeMap$1).then(e=>({default:e.NiceTreeMap}))),$=a.lazy(()=>Promise.resolve().then(()=>require("./charts-B-sl1V9y.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.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-CXyEwQeM.js").then((e) => e.j).then((e) => ({ default: e.NiceGitGraph }))
|
|
4
4
|
), c = t(
|
|
5
|
-
() => import("./devops-
|
|
5
|
+
() => import("./devops-CXyEwQeM.js").then((e) => e.k).then((e) => ({ default: e.NiceBranchManager }))
|
|
6
6
|
), h = t(
|
|
7
|
-
() => import("./devops-
|
|
7
|
+
() => import("./devops-CXyEwQeM.js").then((e) => e.m).then((e) => ({ default: e.NiceGitDiffViewer }))
|
|
8
8
|
), l = t(
|
|
9
|
-
() => import("./devops-
|
|
9
|
+
() => import("./devops-CXyEwQeM.js").then((e) => e.n).then((e) => ({ default: e.NiceGitBlame }))
|
|
10
10
|
), p = t(
|
|
11
|
-
() => import("./devops-
|
|
11
|
+
() => import("./devops-CXyEwQeM.js").then((e) => e.o).then((e) => ({ default: e.NiceGitConflictResolver }))
|
|
12
12
|
), s = t(
|
|
13
|
-
() => import("./devops-
|
|
13
|
+
() => import("./devops-CXyEwQeM.js").then((e) => e.q).then((e) => ({ default: e.NicePipelineEditor }))
|
|
14
14
|
), d = t(
|
|
15
|
-
() => import("./devops-
|
|
15
|
+
() => import("./devops-CXyEwQeM.js").then((e) => e.r).then((e) => ({ default: e.NicePipelineMonitor }))
|
|
16
16
|
), f = t(
|
|
17
|
-
() => import("./devops-
|
|
17
|
+
() => import("./devops-CXyEwQeM.js").then((e) => e.p).then((e) => ({ default: e.NiceGitHooks }))
|
|
18
18
|
), m = t(
|
|
19
|
-
() => import("./devops-
|
|
19
|
+
() => import("./devops-CXyEwQeM.js").then((e) => e.l).then((e) => ({ default: e.NiceMergeRequestBuilder }))
|
|
20
20
|
), u = t(
|
|
21
|
-
() => import("./no-code-
|
|
21
|
+
() => import("./no-code-Cj4xJ3w9.js").then((e) => e.k).then((e) => ({ default: e.NiceAPIFlow }))
|
|
22
22
|
), y = t(
|
|
23
|
-
() => import("./no-code-
|
|
23
|
+
() => import("./no-code-Cj4xJ3w9.js").then((e) => e.o).then((e) => ({ default: e.NiceCodeTemplate }))
|
|
24
24
|
), z = t(
|
|
25
|
-
() => import("./no-code-
|
|
25
|
+
() => import("./no-code-Cj4xJ3w9.js").then((e) => e.l).then((e) => ({ default: e.NiceDataMapper }))
|
|
26
26
|
), N = t(
|
|
27
|
-
() => import("./no-code-
|
|
27
|
+
() => import("./no-code-Cj4xJ3w9.js").then((e) => e.m).then((e) => ({ default: e.NiceEventOrchestrator }))
|
|
28
28
|
), L = t(
|
|
29
|
-
() => import("./no-code-
|
|
29
|
+
() => import("./no-code-Cj4xJ3w9.js").then((e) => e.j).then((e) => ({ default: e.NiceStateDesigner }))
|
|
30
30
|
), D = t(
|
|
31
|
-
() => import("./no-code-
|
|
31
|
+
() => import("./no-code-Cj4xJ3w9.js").then((e) => e.n).then((e) => ({ default: e.NiceTestBuilder }))
|
|
32
32
|
), B = t(
|
|
33
|
-
() => import("./data-branching-
|
|
33
|
+
() => import("./data-branching-DykdTpjJ.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-DykdTpjJ.js").then((e) => e.g).then((e) => ({ default: e.NiceDataDiffViewer }))
|
|
38
38
|
), M = t(
|
|
39
|
-
() => import("./data-branching-
|
|
39
|
+
() => import("./data-branching-DykdTpjJ.js").then((e) => e.h).then((e) => ({ default: e.NiceDataBranchGraph }))
|
|
40
40
|
), g = t(
|
|
41
|
-
() => import("./data-branching-
|
|
41
|
+
() => import("./data-branching-DykdTpjJ.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-DykdTpjJ.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-DykdTpjJ.js").then((e) => e.k).then((e) => ({ default: e.NiceDataSnapshot }))
|
|
50
50
|
), v = t(
|
|
51
|
-
() => import("./charts-
|
|
51
|
+
() => import("./charts-DO2z6Ziu.js").then((e) => e.fC).then((e) => ({ default: e.NiceChart }))
|
|
52
52
|
), w = t(
|
|
53
|
-
() => import("./charts-
|
|
53
|
+
() => import("./charts-DO2z6Ziu.js").then((e) => e.fE).then((e) => ({ default: e.NiceTreeMap }))
|
|
54
54
|
), T = t(
|
|
55
|
-
() => import("./charts-
|
|
55
|
+
() => import("./charts-DO2z6Ziu.js").then((e) => e.fD).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-Ch7HRRoy.cjs"),e=require("react/jsx-runtime"),b=require("./core-CESNSRyS.cjs"),_=require("react"),U=require("./pickerCommons-CrITwM88.cjs"),V=require("./NicePagination-CaohvQsY.cjs"),I=_.forwardRef(({items:N,activeKey:h,collapsed:a=!1,width:x=240,collapsedWidth:r=52,onItemClick:k,onCollapseChange:C,header:j,footer:d,size:m="md",className:g,style:M,id:y,accessMode:S,...w},v)=>{const s=b.hc(y),l=b.$c(S,y),[t,u]=_.useState(new Set),o=_.useCallback(i=>{u(D=>{const c=new Set(D);return c.has(i)?c.delete(i):c.add(i),c})},[]);if(l==="hidden")return null;const p=(i,D=0)=>{const c=i.children&&i.children.length>0,E=t.has(i.key),$=i.key===h;return e.jsxs("li",{className:"nice-sidebar-menu__item",children:[e.jsxs("button",{className:`nice-sidebar-menu__btn ${$?"nice-sidebar-menu__btn--active":""} ${i.disabled?"nice-sidebar-menu__btn--disabled":""}`,style:{paddingLeft:a?void 0:12+D*16},onClick:()=>c?o(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.jsx(b.oa,{name:E?"chevron-down":"chevron-right",size:14})})]}),c&&E&&!a&&e.jsx("ul",{className:"nice-sidebar-menu__children",children:i.children.map(T=>p(T,D+1))})]},i.key)};return e.jsxs("nav",{ref:v,id:s,className:`nice-sidebar-menu nice-sidebar-menu--${m} ${a?"nice-sidebar-menu--collapsed":""} ${g??""}`,style:{...M,width:a?r:x},...w,children:[j&&e.jsx("div",{className:"nice-sidebar-menu__header",children:j}),e.jsx("ul",{className:"nice-sidebar-menu__list",role:"list",children:N.map(i=>p(i))}),d&&e.jsx("div",{className:"nice-sidebar-menu__footer",children:d})]})});I.displayName="NiceSidebarMenu";const P=_.forwardRef(({items:N,activeKey:h,onItemClick:a,brand:x,actions:r,size:k="md",className:C,style:j,id:d,accessMode:m,...g},M)=>{const y=b.hc(d),S=b.$c(m,d),[w,v]=_.useState(null);return S==="hidden"?null:e.jsxs("nav",{ref:M,id:y,className:`nice-top-menu nice-top-menu--${k} ${C??""}`,style:j,...g,children:[x&&e.jsx("div",{className:"nice-top-menu__brand",children:x}),e.jsx("ul",{className:"nice-top-menu__items",role:"menubar",children:N.map(s=>{const l=s.children&&s.children.length>0,t=w===s.key;return e.jsxs("li",{className:"nice-top-menu__item",onMouseEnter:()=>l&&v(s.key),onMouseLeave:()=>l&&v(null),children:[e.jsxs("button",{className:`nice-top-menu__btn ${s.key===h?"nice-top-menu__btn--active":""}`,onClick:()=>l?v(t?null:s.key):a?.(s),role:"menuitem","aria-haspopup":l,"aria-expanded":t,disabled:s.disabled,type:"button",children:[s.icon&&e.jsx("span",{children:s.icon}),e.jsx("span",{children:s.text}),l&&e.jsx("span",{className:"nice-top-menu__chevron",children:e.jsx(b.oa,{name:"chevron-down",size:14})})]}),l&&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===h?"nice-top-menu__dropdown-btn--active":""}`,onClick:()=>{a?.(u),v(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)})}),r&&e.jsx("div",{className:"nice-top-menu__actions",children:r})]})});P.displayName="NiceTopMenu";const B=_.forwardRef(({tabs:N,activeTab:h,onTabChange:a,onItemClick:x,minimized:r=!1,onMinimizeToggle:k,size:C="md",className:j,style:d,id:m,accessMode:g,...M},y)=>{const S=b.hc(m),w=b.$c(g,m),[v,s]=_.useState(h??N[0]?.key),l=h??v,t=N.find(o=>o.key===l),u=_.useCallback(o=>{s(o),a?.(o)},[a]);return w==="hidden"?null:e.jsxs("div",{ref:y,id:S,className:`nice-ribbon-menu nice-ribbon-menu--${C} ${r?"nice-ribbon-menu--minimized":""} ${j??""}`,style:d,...M,children:[e.jsxs("div",{className:"nice-ribbon-menu__tabs",role:"tablist",children:[N.map(o=>e.jsx("button",{className:`nice-ribbon-menu__tab ${o.key===l?"nice-ribbon-menu__tab--active":""}`,onClick:()=>u(o.key),role:"tab","aria-selected":o.key===l,type:"button",children:o.label},o.key)),e.jsx("button",{className:"nice-ribbon-menu__minimize",onClick:()=>k?.(!r),type:"button","aria-label":r?"Expand":"Minimize",children:e.jsx(b.oa,{name:r?"chevron-down":"chevron-up",size:14})})]}),!r&&t&&e.jsx("div",{className:"nice-ribbon-menu__panel",role:"tabpanel",children:t.groups.map((o,p)=>e.jsxs("div",{className:"nice-ribbon-menu__group",children:[e.jsx("div",{className:"nice-ribbon-menu__group-items",children:o.items.map(i=>e.jsxs("button",{className:"nice-ribbon-menu__item",onClick:()=>x?.(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:o.label})]},p))})]})});B.displayName="NiceRibbonMenu";const W=_.forwardRef(({items:N,activeKey:h,onItemClick:a,position:x="bottom",autoHide:r=!1,iconSize:k=40,size:C="md",className:j,style:d,id:m,accessMode:g,...M},y)=>{const S=b.hc(m),w=b.$c(g,m),[v,s]=_.useState(!1),l=!r||v;return w==="hidden"?null:e.jsx("div",{ref:y,id:S,className:`nice-dock-menu nice-dock-menu--${x} nice-dock-menu--${C} ${r&&!l?"nice-dock-menu--hidden":""} ${j??""}`,style:d,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),...M,children:e.jsx("div",{className:"nice-dock-menu__items",children:N.map(t=>e.jsxs("button",{className:`nice-dock-menu__item ${t.key===h?"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:N,activeKey:h,onItemClick:a,open:x,onOpenChange:r,position:k="left",panelWidth:C=280,header:j,footer:d,size:m="md",className:g,style:M,id:y,accessMode:S,...w},v)=>{const s=b.hc(y),l=b.$c(S,y),{t}=b.Gt(),[u,o]=_.useState(!1),p=x??u,i=_.useCallback(()=>{const c=!p;o(c),r?.(c)},[p,r]),D=_.useCallback(c=>{a?.(c),o(!1),r?.(!1)},[a,r]);return l==="hidden"?null:e.jsxs("div",{ref:v,id:s,className:`nice-hamburger-menu nice-hamburger-menu--${m} ${g??""}`,style:M,...w,children:[e.jsx("button",{className:"nice-hamburger-menu__trigger",onClick:i,"aria-label":t("nav.menu","Menu"),"aria-expanded":p,type:"button",children:e.jsxs("span",{className:`nice-hamburger-menu__icon ${p?"nice-hamburger-menu__icon--open":""}`,children:[e.jsx("span",{}),e.jsx("span",{}),e.jsx("span",{})]})}),p&&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} ${p?"nice-hamburger-menu__panel--open":""}`,style:{width:C},children:[j&&e.jsx("div",{className:"nice-hamburger-menu__header",children:j}),e.jsx("ul",{className:"nice-hamburger-menu__list",role:"menu",children:N.map(c=>e.jsx("li",{children:e.jsxs("button",{className:`nice-hamburger-menu__item ${c.key===h?"nice-hamburger-menu__item--active":""}`,onClick:()=>D(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 z=_.forwardRef(({canGoBack:N=!1,canGoForward:h=!1,onBack:a,onForward:x,onRefresh:r,enableShortcuts:k=!0,showRefresh:C=!0,showStop:j=!0,isLoading:d=!1,onStop:m,size:g="md",variant:M="default",tooltipPosition:y="bottom",backIcon:S,forwardIcon:w,refreshIcon:v,stopIcon:s,className:l,style:t,id:u,accessMode:o,disabled:p,...i},D)=>{const c=b.hc(u),E=b.$c(o,u),{t:$}=b.Gt();if(_.useEffect(()=>{if(!k||p)return;const A=f=>{const R=f.altKey,H=f.ctrlKey||f.metaKey;R&&f.key==="ArrowLeft"?(f.preventDefault(),N&&a?.()):R&&f.key==="ArrowRight"?(f.preventDefault(),h&&x?.()):f.key==="F5"||H&&f.key==="r"?(f.preventDefault(),d?m?.():r?.()):f.key==="Escape"&&d&&(f.preventDefault(),m?.())};return window.addEventListener("keydown",A),()=>window.removeEventListener("keydown",A)},[k,p,N,h,d,a,x,r,m]),E==="hidden")return null;const T=E==="disabled"||p,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=w??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=v??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:D,id:c,className:`nice-nav-controls nice-nav-controls--${g} nice-nav-controls--${M}${T?" nice-nav-controls--disabled":""}${l?` ${l}`:""}`,style:t,role:"navigation","aria-label":$("nav.controls","Navigation controls"),...i,children:[e.jsx("button",{type:"button",className:`nice-nav-controls__btn nice-nav-controls__btn--back${N?"":" nice-nav-controls__btn--disabled"}`,onClick:a,disabled:T||!N,"aria-label":$("nav.back","Back"),title:`${$("nav.back","Back")} (Alt+←)`,children:O}),e.jsx("button",{type:"button",className:`nice-nav-controls__btn nice-nav-controls__btn--forward${h?"":" nice-nav-controls__btn--disabled"}`,onClick:x,disabled:T||!h,"aria-label":$("nav.forward","Forward"),title:`${$("nav.forward","Forward")} (Alt+→)`,children:q}),(C||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":$("nav.stop","Stop"),title:`${$("nav.stop","Stop")} (Esc)`,children:K}):e.jsx("button",{type:"button",className:"nice-nav-controls__btn nice-nav-controls__btn--refresh",onClick:r,disabled:T,"aria-label":$("nav.refresh","Refresh"),title:`${$("nav.refresh","Refresh")} (F5)`,children:F}))]})});z.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=z;exports.NiceRibbonMenu=B;exports.NiceSidebarMenu=I;exports.NiceTopMenu=P;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./NiceModuleLifecyclePanel-Df_1k5qW.cjs"),e=require("react/jsx-runtime"),b=require("./charts-B-sl1V9y.cjs"),_=require("react"),U=require("./pickerCommons-B-wOzHFh.cjs"),V=require("./NicePagination-EEQ6o1dF.cjs"),I=_.forwardRef(({items:m,activeKey:h,collapsed:a=!1,width:x=240,collapsedWidth:t=52,onItemClick:k,onCollapseChange:C,header:j,footer:d,size:N="md",className:g,style:M,id:y,accessMode:D,...S},v)=>{const c=b.bc(y),l=b.Dc(D,y),[r,u]=_.useState(new Set),o=_.useCallback(i=>{u($=>{const s=new Set($);return s.has(i)?s.delete(i):s.add(i),s})},[]);if(l==="hidden")return null;const p=(i,$=0)=>{const s=i.children&&i.children.length>0,A=r.has(i.key),w=i.key===h;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?o(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.jsx(b.oa,{name:A?"chevron-down":"chevron-right",size:14})})]}),s&&A&&!a&&e.jsx("ul",{className:"nice-sidebar-menu__children",children:i.children.map(E=>p(E,$+1))})]},i.key)};return e.jsxs("nav",{ref:v,id:c,className:`nice-sidebar-menu nice-sidebar-menu--${N} ${a?"nice-sidebar-menu--collapsed":""} ${g??""}`,style:{...M,width:a?t:x},...S,children:[j&&e.jsx("div",{className:"nice-sidebar-menu__header",children:j}),e.jsx("ul",{className:"nice-sidebar-menu__list",role:"list",children:m.map(i=>p(i))}),d&&e.jsx("div",{className:"nice-sidebar-menu__footer",children:d})]})});I.displayName="NiceSidebarMenu";const P=_.forwardRef(({items:m,activeKey:h,onItemClick:a,brand:x,actions:t,size:k="md",className:C,style:j,id:d,accessMode:N,...g},M)=>{const y=b.bc(d),D=b.Dc(N,d),[S,v]=_.useState(null);return D==="hidden"?null:e.jsxs("nav",{ref:M,id:y,className:`nice-top-menu nice-top-menu--${k} ${C??""}`,style:j,...g,children:[x&&e.jsx("div",{className:"nice-top-menu__brand",children:x}),e.jsx("ul",{className:"nice-top-menu__items",role:"menubar",children:m.map(c=>{const l=c.children&&c.children.length>0,r=S===c.key;return e.jsxs("li",{className:"nice-top-menu__item",onMouseEnter:()=>l&&v(c.key),onMouseLeave:()=>l&&v(null),children:[e.jsxs("button",{className:`nice-top-menu__btn ${c.key===h?"nice-top-menu__btn--active":""}`,onClick:()=>l?v(r?null:c.key):a?.(c),role:"menuitem","aria-haspopup":l,"aria-expanded":r,disabled:c.disabled,type:"button",children:[c.icon&&e.jsx("span",{children:c.icon}),e.jsx("span",{children:c.text}),l&&e.jsx("span",{className:"nice-top-menu__chevron",children:e.jsx(b.oa,{name:"chevron-down",size:14})})]}),l&&r&&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===h?"nice-top-menu__dropdown-btn--active":""}`,onClick:()=>{a?.(u),v(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)})}),t&&e.jsx("div",{className:"nice-top-menu__actions",children:t})]})});P.displayName="NiceTopMenu";const L=_.forwardRef(({tabs:m,activeTab:h,onTabChange:a,onItemClick:x,minimized:t=!1,onMinimizeToggle:k,size:C="md",className:j,style:d,id:N,accessMode:g,...M},y)=>{const D=b.bc(N),S=b.Dc(g,N),[v,c]=_.useState(h??m[0]?.key),l=h??v,r=m.find(o=>o.key===l),u=_.useCallback(o=>{c(o),a?.(o)},[a]);return S==="hidden"?null:e.jsxs("div",{ref:y,id:D,className:`nice-ribbon-menu nice-ribbon-menu--${C} ${t?"nice-ribbon-menu--minimized":""} ${j??""}`,style:d,...M,children:[e.jsxs("div",{className:"nice-ribbon-menu__tabs",role:"tablist",children:[m.map(o=>e.jsx("button",{className:`nice-ribbon-menu__tab ${o.key===l?"nice-ribbon-menu__tab--active":""}`,onClick:()=>u(o.key),role:"tab","aria-selected":o.key===l,type:"button",children:o.label},o.key)),e.jsx("button",{className:"nice-ribbon-menu__minimize",onClick:()=>k?.(!t),type:"button","aria-label":t?"Expand":"Minimize",children:e.jsx(b.oa,{name:t?"chevron-down":"chevron-up",size:14})})]}),!t&&r&&e.jsx("div",{className:"nice-ribbon-menu__panel",role:"tabpanel",children:r.groups.map((o,p)=>e.jsxs("div",{className:"nice-ribbon-menu__group",children:[e.jsx("div",{className:"nice-ribbon-menu__group-items",children:o.items.map(i=>e.jsxs("button",{className:"nice-ribbon-menu__item",onClick:()=>x?.(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:o.label})]},p))})]})});L.displayName="NiceRibbonMenu";const B=_.forwardRef(({items:m,activeKey:h,onItemClick:a,position:x="bottom",autoHide:t=!1,iconSize:k=40,size:C="md",className:j,style:d,id:N,accessMode:g,...M},y)=>{const D=b.bc(N),S=b.Dc(g,N),[v,c]=_.useState(!1),l=!t||v;return S==="hidden"?null:e.jsx("div",{ref:y,id:D,className:`nice-dock-menu nice-dock-menu--${x} nice-dock-menu--${C} ${t&&!l?"nice-dock-menu--hidden":""} ${j??""}`,style:d,onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),...M,children:e.jsx("div",{className:"nice-dock-menu__items",children:m.map(r=>e.jsxs("button",{className:`nice-dock-menu__item ${r.key===h?"nice-dock-menu__item--active":""}`,onClick:()=>a?.(r),disabled:r.disabled,title:r.text,type:"button",style:{width:k,height:k},children:[r.icon?e.jsx("span",{className:"nice-dock-menu__icon",children:r.icon}):e.jsx("span",{children:r.text[0]}),r.badge!==void 0&&e.jsx("span",{className:"nice-dock-menu__badge",children:r.badge})]},r.key))})})});B.displayName="NiceDockMenu";const W=_.forwardRef(({items:m,activeKey:h,onItemClick:a,open:x,onOpenChange:t,position:k="left",panelWidth:C=280,header:j,footer:d,size:N="md",className:g,style:M,id:y,accessMode:D,...S},v)=>{const c=b.bc(y),l=b.Dc(D,y),{t:r}=b.Gt(),[u,o]=_.useState(!1),p=x??u,i=_.useCallback(()=>{const s=!p;o(s),t?.(s)},[p,t]),$=_.useCallback(s=>{a?.(s),o(!1),t?.(!1)},[a,t]);return l==="hidden"?null:e.jsxs("div",{ref:v,id:c,className:`nice-hamburger-menu nice-hamburger-menu--${N} ${g??""}`,style:M,...S,children:[e.jsx("button",{className:"nice-hamburger-menu__trigger",onClick:i,"aria-label":r("nav.menu","Menu"),"aria-expanded":p,type:"button",children:e.jsxs("span",{className:`nice-hamburger-menu__icon ${p?"nice-hamburger-menu__icon--open":""}`,children:[e.jsx("span",{}),e.jsx("span",{}),e.jsx("span",{})]})}),p&&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} ${p?"nice-hamburger-menu__panel--open":""}`,style:{width:C},children:[j&&e.jsx("div",{className:"nice-hamburger-menu__header",children:j}),e.jsx("ul",{className:"nice-hamburger-menu__list",role:"menu",children:m.map(s=>e.jsx("li",{children:e.jsxs("button",{className:`nice-hamburger-menu__item ${s.key===h?"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})]})]})});W.displayName="NiceHamburgerMenu";const z=_.forwardRef(({canGoBack:m=!1,canGoForward:h=!1,onBack:a,onForward:x,onRefresh:t,enableShortcuts:k=!0,showRefresh:C=!0,showStop:j=!0,isLoading:d=!1,onStop:N,size:g="md",variant:M="default",tooltipPosition:y="bottom",backIcon:D,forwardIcon:S,refreshIcon:v,stopIcon:c,className:l,style:r,id:u,accessMode:o,disabled:p,...i},$)=>{const s=b.bc(u),A=b.Dc(o,u),{t:w}=b.Gt();if(_.useEffect(()=>{if(!k||p)return;const R=f=>{const T=f.altKey,H=f.ctrlKey||f.metaKey;T&&f.key==="ArrowLeft"?(f.preventDefault(),m&&a?.()):T&&f.key==="ArrowRight"?(f.preventDefault(),h&&x?.()):f.key==="F5"||H&&f.key==="r"?(f.preventDefault(),d?N?.():t?.()):f.key==="Escape"&&d&&(f.preventDefault(),N?.())};return window.addEventListener("keydown",R),()=>window.removeEventListener("keydown",R)},[k,p,m,h,d,a,x,t,N]),A==="hidden")return null;const E=A==="disabled"||p,O=D??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=S??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=v??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=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}${E?" nice-nav-controls--disabled":""}${l?` ${l}`:""}`,style:r,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${m?"":" nice-nav-controls__btn--disabled"}`,onClick:a,disabled:E||!m,"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${h?"":" nice-nav-controls__btn--disabled"}`,onClick:x,disabled:E||!h,"aria-label":w("nav.forward","Forward"),title:`${w("nav.forward","Forward")} (Alt+→)`,children:q}),(C||j&&d)&&(d?e.jsx("button",{type:"button",className:"nice-nav-controls__btn nice-nav-controls__btn--stop nice-nav-controls__btn--loading",onClick:N,disabled:E,"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:t,disabled:E,"aria-label":w("nav.refresh","Refresh"),title:`${w("nav.refresh","Refresh")} (F5)`,children:F}))]})});z.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.NiceBreadcrumb=n.NiceBreadcrumb;exports.NiceCard=n.NiceCard;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.NiceNavMenu=n.NiceNavMenu;exports.NiceNavbar=n.NiceNavbar;exports.NiceOrganizationProfileForm=n.NiceOrganizationProfileForm;exports.NicePwaShell=n.NicePwaShell;exports.NiceSetupWizard=n.NiceSetupWizard;exports.NiceSidebarNav=n.NiceSidebarNav;exports.NiceSplitter=n.NiceSplitter;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=B;exports.NiceHamburgerMenu=W;exports.NiceNavigationControls=z;exports.NiceRibbonMenu=L;exports.NiceSidebarMenu=I;exports.NiceTopMenu=P;
|
package/dist/navigation.d.ts
CHANGED
|
@@ -8,8 +8,6 @@ import { NiceFormFieldProps } from '@nice2dev/ui-core';
|
|
|
8
8
|
import { NiceModeInfo } from '@nice2dev/ui-core';
|
|
9
9
|
import { NiceModuleInfo } from '@nice2dev/ui-core';
|
|
10
10
|
import { NiceModuleStatus } from '@nice2dev/ui-core';
|
|
11
|
-
import { NiceOnboardingAnswer } from '@nice2dev/ui-core';
|
|
12
|
-
import { NiceOnboardingQuestion } from '@nice2dev/ui-core';
|
|
13
11
|
import { NiceOrganizationProfile } from '@nice2dev/ui-core';
|
|
14
12
|
import { NiceSize } from '@nice2dev/ui-core';
|
|
15
13
|
import { NiceTabDescriptor } from '@nice2dev/ui-core';
|
|
@@ -204,34 +202,6 @@ export declare interface NiceAuthUser {
|
|
|
204
202
|
status?: 'online' | 'away' | 'busy' | 'offline';
|
|
205
203
|
}
|
|
206
204
|
|
|
207
|
-
export declare const NiceBottomNavigation: default_2.ForwardRefExoticComponent<NiceBottomNavigationProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
208
|
-
|
|
209
|
-
/** A navigation item in the {@link NiceBottomNavigation} bar. */
|
|
210
|
-
declare interface NiceBottomNavigationItem {
|
|
211
|
-
/** Unique key. */
|
|
212
|
-
key: string;
|
|
213
|
-
/** Label text. */
|
|
214
|
-
label: string;
|
|
215
|
-
/** Icon element. */
|
|
216
|
-
icon?: default_2.ReactNode;
|
|
217
|
-
/** Disable the item. */
|
|
218
|
-
disabled?: boolean;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
/** Props for the {@link NiceBottomNavigation} component — a mobile-style bottom tab bar. */
|
|
222
|
-
export declare interface NiceBottomNavigationProps extends NiceBaseProps {
|
|
223
|
-
/** Navigation items. */
|
|
224
|
-
items: NiceBottomNavigationItem[];
|
|
225
|
-
/** Currently active item key. */
|
|
226
|
-
activeKey?: string;
|
|
227
|
-
/** Called when the active item changes. */
|
|
228
|
-
onChange?: (key: string) => void;
|
|
229
|
-
/** Bar size preset. */
|
|
230
|
-
size?: NiceSize;
|
|
231
|
-
/** Show text labels below icons. */
|
|
232
|
-
showLabels?: boolean;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
205
|
export declare const NiceBreadcrumb: default_2.FC<NiceBreadcrumbProps>;
|
|
236
206
|
|
|
237
207
|
/** A single crumb in the {@link NiceBreadcrumb} trail. */
|
|
@@ -277,35 +247,30 @@ export declare interface NiceCardProps extends NiceBaseProps {
|
|
|
277
247
|
/**
|
|
278
248
|
* Make the card behave as a selectable option (radio): cursor/hover affordance,
|
|
279
249
|
* `role="radio"` + `aria-checked`, keyboard select (Space/Enter). Inside a
|
|
280
|
-
* {@link
|
|
250
|
+
* {@link NiceCardGroup} this is implied for cards that carry a `value`.
|
|
281
251
|
*/
|
|
282
252
|
selectable?: boolean;
|
|
283
|
-
/** Whether the card is currently selected (controlled; auto-wired inside a
|
|
253
|
+
/** Whether the card is currently selected (controlled; auto-wired inside a NiceCardGroup). */
|
|
284
254
|
selected?: boolean;
|
|
285
255
|
/** The option value bound to this card (used for selection + the group's onChange). */
|
|
286
256
|
value?: NiceCardValue;
|
|
287
257
|
/** Fired with `value` when the card is selected. */
|
|
288
258
|
onSelect?: (value: NiceCardValue) => void;
|
|
289
|
-
/** Radio group name (auto-wired inside a
|
|
259
|
+
/** Radio group name (auto-wired inside a NiceCardGroup). */
|
|
290
260
|
name?: string;
|
|
261
|
+
/** Disabled: dimmed + non-interactive (blocks click/select). */
|
|
262
|
+
disabled?: boolean;
|
|
263
|
+
/** Read-only: inert (blocks selection) without the dimmed look. */
|
|
264
|
+
readOnly?: boolean;
|
|
265
|
+
/** Loading: a spinner overlay + `aria-busy`; interaction is blocked. */
|
|
266
|
+
loading?: boolean;
|
|
267
|
+
/** Error state — adds an error border; a non-empty string also renders a message. */
|
|
268
|
+
error?: string | boolean;
|
|
291
269
|
}
|
|
292
270
|
|
|
293
271
|
/** Value type used by selectable cards / card radio groups. */
|
|
294
272
|
declare type NiceCardValue = string | number;
|
|
295
273
|
|
|
296
|
-
export declare const NiceClassicShell: ForwardRefExoticComponent<NiceShellProps & RefAttributes<HTMLDivElement>>;
|
|
297
|
-
|
|
298
|
-
export declare const NiceCompactShell: ForwardRefExoticComponent<NiceCompactShellProps & RefAttributes<HTMLDivElement>>;
|
|
299
|
-
|
|
300
|
-
export declare interface NiceCompactShellProps extends NiceBaseProps {
|
|
301
|
-
/** Top bar (minimal, icon-only navigation). */
|
|
302
|
-
topBar?: React.ReactNode;
|
|
303
|
-
/** Bottom navigation (mobile-style). */
|
|
304
|
-
bottomNav?: React.ReactNode;
|
|
305
|
-
/** Main content. */
|
|
306
|
-
children?: React.ReactNode;
|
|
307
|
-
}
|
|
308
|
-
|
|
309
274
|
export declare const NiceConsole: ForwardRefExoticComponent<NiceConsoleProps & RefAttributes<HTMLDivElement>>;
|
|
310
275
|
|
|
311
276
|
/** A command registered in the {@link NiceConsole} command palette. */
|
|
@@ -842,6 +807,8 @@ export declare interface NiceMenuProps extends NiceBaseProps {
|
|
|
842
807
|
density?: NiceMenuDensity;
|
|
843
808
|
/** Size preset. */
|
|
844
809
|
size?: NiceSize;
|
|
810
|
+
/** Loading: dims the bar, shows a spinner and blocks interaction. */
|
|
811
|
+
loading?: boolean;
|
|
845
812
|
/** Stretch top-level items to fill the container. */
|
|
846
813
|
fullWidth?: boolean;
|
|
847
814
|
/** Show vertical separators between top items. */
|
|
@@ -1017,43 +984,6 @@ export declare interface NiceModuleLifecyclePanelProps extends NiceBaseProps {
|
|
|
1017
984
|
onModuleClick?: (module: NiceModuleInfo) => void;
|
|
1018
985
|
}
|
|
1019
986
|
|
|
1020
|
-
export declare const NiceMultiView: default_2.FC<NiceMultiViewProps>;
|
|
1021
|
-
|
|
1022
|
-
/** A view entry in the {@link NiceMultiView}. */
|
|
1023
|
-
declare interface NiceMultiViewItem {
|
|
1024
|
-
/** Unique key. */
|
|
1025
|
-
key: string;
|
|
1026
|
-
/** Optional label shown in tabs / header. */
|
|
1027
|
-
label?: string;
|
|
1028
|
-
/** Optional icon shown in tabs / header. */
|
|
1029
|
-
icon?: string;
|
|
1030
|
-
/** Content renderer. */
|
|
1031
|
-
render: () => default_2.ReactNode;
|
|
1032
|
-
}
|
|
1033
|
-
|
|
1034
|
-
/** Navigation style for the NiceMultiView. */
|
|
1035
|
-
declare type NiceMultiViewNav = 'tabs' | 'dots' | 'arrows' | 'none';
|
|
1036
|
-
|
|
1037
|
-
/** Props for the {@link NiceMultiView} component. */
|
|
1038
|
-
export declare interface NiceMultiViewProps extends NiceBaseProps {
|
|
1039
|
-
/** Size variant. */
|
|
1040
|
-
size?: NiceSize;
|
|
1041
|
-
/** View definitions. */
|
|
1042
|
-
items: NiceMultiViewItem[];
|
|
1043
|
-
/** Currently visible view index (controlled). */
|
|
1044
|
-
selectedIndex?: number;
|
|
1045
|
-
/** Called when the visible index changes. */
|
|
1046
|
-
onSelectedIndexChange?: (index: number) => void;
|
|
1047
|
-
/** Enable slide transition animation (default: true). */
|
|
1048
|
-
animationEnabled?: boolean;
|
|
1049
|
-
/** Navigation style (default: 'tabs'). */
|
|
1050
|
-
nav?: NiceMultiViewNav;
|
|
1051
|
-
/** Show prev/next arrows alongside any nav style (default: true for 'dots' / 'none'). */
|
|
1052
|
-
showArrows?: boolean;
|
|
1053
|
-
/** Auto-cycle interval in ms (0 = disabled). */
|
|
1054
|
-
autoPlay?: number;
|
|
1055
|
-
}
|
|
1056
|
-
|
|
1057
987
|
/**
|
|
1058
988
|
* {@link NiceNavbar} — Top navigation bar with logo, breadcrumbs, centre content,
|
|
1059
989
|
* and right-side slots for tenant switcher, notifications, and user menu.
|
|
@@ -1216,35 +1146,6 @@ export declare interface NiceNavMenuProps {
|
|
|
1216
1146
|
|
|
1217
1147
|
export declare type NiceNavMenuSize = 'sm' | 'md' | 'lg';
|
|
1218
1148
|
|
|
1219
|
-
export declare const NiceOnboardingWizard: ForwardRefExoticComponent<NiceOnboardingWizardProps & RefAttributes<HTMLDivElement>>;
|
|
1220
|
-
|
|
1221
|
-
export declare interface NiceOnboardingWizardProps extends NiceBaseProps {
|
|
1222
|
-
/** Size variant. */
|
|
1223
|
-
size?: NiceSize;
|
|
1224
|
-
/** All onboarding questions. */
|
|
1225
|
-
questions: NiceOnboardingQuestion[];
|
|
1226
|
-
/** Pre-filled answers. */
|
|
1227
|
-
initialAnswers?: NiceOnboardingAnswer[];
|
|
1228
|
-
/** Step labels (if different from category names). */
|
|
1229
|
-
stepLabels?: string[];
|
|
1230
|
-
/** Called when user submits final answers. */
|
|
1231
|
-
onComplete?: (answers: NiceOnboardingAnswer[]) => void;
|
|
1232
|
-
/** Called when user leaves the wizard without finishing. */
|
|
1233
|
-
onCancel?: () => void;
|
|
1234
|
-
/** Called on each step transition. */
|
|
1235
|
-
onStepChange?: (step: number) => void;
|
|
1236
|
-
/** Welcome screen content (shown before step 1). */
|
|
1237
|
-
welcomeContent?: React.ReactNode;
|
|
1238
|
-
/** Completion screen content (shown after last step). */
|
|
1239
|
-
completionContent?: React.ReactNode;
|
|
1240
|
-
/** Show progress bar. */
|
|
1241
|
-
showProgress?: boolean;
|
|
1242
|
-
/** Allow going back to previous steps. */
|
|
1243
|
-
allowBack?: boolean;
|
|
1244
|
-
/** Logo / branding element for the wizard header. */
|
|
1245
|
-
logo?: React.ReactNode;
|
|
1246
|
-
}
|
|
1247
|
-
|
|
1248
1149
|
export declare const NiceOrganizationProfileForm: ForwardRefExoticComponent<NiceOrganizationProfileFormProps & RefAttributes<HTMLDivElement>>;
|
|
1249
1150
|
|
|
1250
1151
|
export declare interface NiceOrganizationProfileFormProps extends NiceBaseProps {
|
|
@@ -1300,9 +1201,15 @@ export declare interface NicePaginationProps extends NiceBaseProps {
|
|
|
1300
1201
|
totalPages: number;
|
|
1301
1202
|
/** Called when the page changes. */
|
|
1302
1203
|
onChange: (page: number) => void;
|
|
1303
|
-
/**
|
|
1204
|
+
/**
|
|
1205
|
+
* Show "Page X of Y" info text.
|
|
1206
|
+
* @default true
|
|
1207
|
+
*/
|
|
1304
1208
|
showInfo?: boolean;
|
|
1305
|
-
/**
|
|
1209
|
+
/**
|
|
1210
|
+
* Number of page buttons shown on each side of the current page.
|
|
1211
|
+
* @default 2
|
|
1212
|
+
*/
|
|
1306
1213
|
siblingCount?: number;
|
|
1307
1214
|
/** Show ⏮ / ⏭ first/last page buttons. */
|
|
1308
1215
|
showFirstLast?: boolean;
|
|
@@ -1758,38 +1665,6 @@ declare interface NiceTabItem {
|
|
|
1758
1665
|
content?: default_2.ReactNode;
|
|
1759
1666
|
}
|
|
1760
1667
|
|
|
1761
|
-
export declare const NiceTabPanel: default_2.FC<NiceTabPanelProps>;
|
|
1762
|
-
|
|
1763
|
-
/** A tab definition for the {@link NiceTabPanel}. */
|
|
1764
|
-
declare interface NiceTabPanelItem {
|
|
1765
|
-
/** Unique key. */
|
|
1766
|
-
key: string;
|
|
1767
|
-
/** Tab header label. */
|
|
1768
|
-
title: string;
|
|
1769
|
-
/** Optional tab icon. */
|
|
1770
|
-
icon?: default_2.ReactNode;
|
|
1771
|
-
/** Badge element shown after the title (e.g. count). */
|
|
1772
|
-
badge?: default_2.ReactNode;
|
|
1773
|
-
/** Disable the tab. */
|
|
1774
|
-
disabled?: boolean;
|
|
1775
|
-
/** Content renderer. */
|
|
1776
|
-
render: () => default_2.ReactNode;
|
|
1777
|
-
}
|
|
1778
|
-
|
|
1779
|
-
/** Props for the {@link NiceTabPanel} component — a keyed tab strip with content panels and flexible position. */
|
|
1780
|
-
export declare interface NiceTabPanelProps extends NiceBaseProps {
|
|
1781
|
-
/** Tab panel size. */
|
|
1782
|
-
size?: NiceSize;
|
|
1783
|
-
/** Tab definitions. */
|
|
1784
|
-
items: NiceTabPanelItem[];
|
|
1785
|
-
/** Currently active tab key (controlled). */
|
|
1786
|
-
selectedKey?: string;
|
|
1787
|
-
/** Called when the active tab changes. */
|
|
1788
|
-
onSelectedKeyChange?: (key: string) => void;
|
|
1789
|
-
/** Side on which the tab strip is rendered. */
|
|
1790
|
-
tabPosition?: 'top' | 'bottom' | 'left' | 'right';
|
|
1791
|
-
}
|
|
1792
|
-
|
|
1793
1668
|
export declare const NiceTabs: default_2.FC<NiceTabsProps>;
|
|
1794
1669
|
|
|
1795
1670
|
/** Props for the {@link NiceTabs} component — a tabbed content panel. */
|
|
@@ -1806,6 +1681,16 @@ export declare interface NiceTabsProps extends NiceBaseProps {
|
|
|
1806
1681
|
size?: NiceSize;
|
|
1807
1682
|
/** Stack tabs vertically. */
|
|
1808
1683
|
vertical?: boolean;
|
|
1684
|
+
/** Show only the tab icons (labels move to the tooltip / aria-label). */
|
|
1685
|
+
iconOnly?: boolean;
|
|
1686
|
+
/** Center the tab strip. `'auto'` (default) centers only when `iconOnly`. */
|
|
1687
|
+
centered?: boolean | 'auto';
|
|
1688
|
+
/**
|
|
1689
|
+
* Where a tab's `badge`/count sits relative to the icon+label:
|
|
1690
|
+
* `'right'` (default) — inline after the label; `'bottom'` — stacked under the
|
|
1691
|
+
* icon as a heavily-rounded pill rectangle (not a circle).
|
|
1692
|
+
*/
|
|
1693
|
+
countLocation?: 'right' | 'bottom';
|
|
1809
1694
|
}
|
|
1810
1695
|
|
|
1811
1696
|
/** A running-window entry in the {@link NiceDesktop} taskbar. */
|
|
@@ -1827,30 +1712,6 @@ export declare interface NiceTaskbarItem {
|
|
|
1827
1712
|
/** Where the taskbar is placed on the desktop. */
|
|
1828
1713
|
export declare type NiceTaskbarPosition = 'top' | 'bottom' | 'left' | 'right';
|
|
1829
1714
|
|
|
1830
|
-
/**
|
|
1831
|
-
* {@link NiceTenantSwitcher} — Tenant/organization selector dropdown
|
|
1832
|
-
* for multi-tenant SaaS applications.
|
|
1833
|
-
*/
|
|
1834
|
-
export declare const NiceTenantSwitcher: default_2.ForwardRefExoticComponent<NiceTenantSwitcherProps & default_2.RefAttributes<HTMLDivElement>>;
|
|
1835
|
-
|
|
1836
|
-
/** Props for the {@link NiceTenantSwitcher} component. */
|
|
1837
|
-
export declare interface NiceTenantSwitcherProps extends NiceFormFieldProps {
|
|
1838
|
-
/** Available tenants. */
|
|
1839
|
-
tenants: TenantEntry[];
|
|
1840
|
-
/** Currently selected tenant id. */
|
|
1841
|
-
currentTenantId?: string | number;
|
|
1842
|
-
/** Fires when tenant is switched. */
|
|
1843
|
-
onSwitch?: (tenantId: string | number) => void;
|
|
1844
|
-
/** Fires when "Manage tenants" is clicked. */
|
|
1845
|
-
onManage?: () => void;
|
|
1846
|
-
/** Fires when "Create tenant" is clicked. */
|
|
1847
|
-
onCreate?: () => void;
|
|
1848
|
-
/** Variant (inline selector or dropdown). */
|
|
1849
|
-
variant?: 'dropdown' | 'inline';
|
|
1850
|
-
/** Search filter enabled. */
|
|
1851
|
-
searchable?: boolean;
|
|
1852
|
-
}
|
|
1853
|
-
|
|
1854
1715
|
/**
|
|
1855
1716
|
* Descriptor of a single theme available in the switcher. The `preview`
|
|
1856
1717
|
* colours are used to render the mini page-thumbnail in the trigger and
|
|
@@ -1997,36 +1858,6 @@ declare interface NiceThemePickerProps extends NiceFormFieldProps, DualVisibilit
|
|
|
1997
1858
|
'data-testid'?: string;
|
|
1998
1859
|
}
|
|
1999
1860
|
|
|
2000
|
-
export declare const NiceToolbar: default_2.FC<NiceToolbarProps>;
|
|
2001
|
-
|
|
2002
|
-
/** A toolbar entry in the {@link NiceToolbar}. */
|
|
2003
|
-
declare interface NiceToolbarItem {
|
|
2004
|
-
/** Unique key. */
|
|
2005
|
-
key: string;
|
|
2006
|
-
/** Custom render function (overrides widget/text/icon). */
|
|
2007
|
-
render?: () => default_2.ReactNode;
|
|
2008
|
-
/** Built-in widget type: button, visual separator, or flexible spacer. */
|
|
2009
|
-
widget?: 'button' | 'separator' | 'spacer';
|
|
2010
|
-
/** Button label text. */
|
|
2011
|
-
text?: string;
|
|
2012
|
-
/** Button icon. */
|
|
2013
|
-
icon?: default_2.ReactNode;
|
|
2014
|
-
/** Disable the item. */
|
|
2015
|
-
disabled?: boolean;
|
|
2016
|
-
/** Click handler. */
|
|
2017
|
-
onClick?: () => void;
|
|
2018
|
-
/** Alignment group within the toolbar. */
|
|
2019
|
-
location?: 'before' | 'center' | 'after';
|
|
2020
|
-
}
|
|
2021
|
-
|
|
2022
|
-
/** Props for the {@link NiceToolbar} component — a horizontal strip of action buttons and widgets. */
|
|
2023
|
-
export declare interface NiceToolbarProps extends NiceBaseProps {
|
|
2024
|
-
/** Toolbar items. */
|
|
2025
|
-
items: NiceToolbarItem[];
|
|
2026
|
-
/** Toolbar size preset. */
|
|
2027
|
-
size?: NiceSize;
|
|
2028
|
-
}
|
|
2029
|
-
|
|
2030
1861
|
export declare const NiceTopMenu: ForwardRefExoticComponent<NiceTopMenuProps & RefAttributes<HTMLElement>>;
|
|
2031
1862
|
|
|
2032
1863
|
export declare interface NiceTopMenuProps extends NiceBaseProps {
|
|
@@ -2406,19 +2237,6 @@ declare interface TaskbarProps {
|
|
|
2406
2237
|
onItemClick?: (key: string) => void;
|
|
2407
2238
|
}
|
|
2408
2239
|
|
|
2409
|
-
/** A tenant/organization entry. */
|
|
2410
|
-
declare interface TenantEntry {
|
|
2411
|
-
id: string | number;
|
|
2412
|
-
/** Display name. */
|
|
2413
|
-
name: string;
|
|
2414
|
-
/** Logo/icon URL. */
|
|
2415
|
-
logoUrl?: string;
|
|
2416
|
-
/** Subtitle (e.g. role, plan). */
|
|
2417
|
-
subtitle?: string;
|
|
2418
|
-
/** Whether the tenant is active/current. */
|
|
2419
|
-
isCurrent?: boolean;
|
|
2420
|
-
}
|
|
2421
|
-
|
|
2422
2240
|
/** Colours used to render a theme preview thumbnail. All optional except `background`. */
|
|
2423
2241
|
declare interface ThemePreviewColors {
|
|
2424
2242
|
/** Main page background. */
|