@nice2dev/ui 1.0.10 → 1.0.12
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/README.md +44 -0
- package/dist/NiceErrorBoundary-BZEHCXNM.cjs +1 -0
- package/dist/NiceErrorBoundary-D6jw6wwD.js +762 -0
- package/dist/NiceErrorBoundary-DT5XPTeu.cjs +1 -0
- package/dist/NiceErrorBoundary-SqPtbIxK.js +762 -0
- package/dist/NiceForm-BgR-m8T9.cjs +382 -0
- package/dist/NiceForm-CI_vgkD4.cjs +382 -0
- package/dist/NiceForm-DYKciCeR.js +5131 -0
- package/dist/NiceForm-t9zdH8kU.js +5343 -0
- package/dist/NiceForm.css +1 -1
- package/dist/NiceModal-Br3J9jOV.cjs +1 -0
- package/dist/NiceModal-DQ7u-xVm.cjs +1 -0
- package/dist/NiceModal-DVAsBzHP.js +95 -0
- package/dist/NiceModal-IkSunDgK.js +95 -0
- package/dist/NiceModuleLifecyclePanel-Cj4x54sw.cjs +1 -0
- package/dist/NiceModuleLifecyclePanel-D-xBAp1_.js +5228 -0
- package/dist/NiceModuleLifecyclePanel-D3azLDdj.js +5249 -0
- package/dist/NiceModuleLifecyclePanel-DEfAIhFf.cjs +1 -0
- package/dist/NiceModuleLifecyclePanel.css +1 -1
- package/dist/NicePagination-CbB5P1N_.js +171 -0
- package/dist/NicePagination-DDFkSRr9.js +171 -0
- package/dist/NicePagination-DGHtXqy1.cjs +1 -0
- package/dist/NicePagination-UGjzvRUS.cjs +1 -0
- package/dist/NicePinCodeInput-BhIABBTV.cjs +419 -0
- package/dist/NicePinCodeInput-BmRO9HSQ.js +11830 -0
- package/dist/NicePinCodeInput-D91uvVsF.cjs +419 -0
- package/dist/NicePinCodeInput-jMNfPqOx.js +11866 -0
- package/dist/NicePinCodeInput.css +1 -1
- package/dist/NiceSavedQueryPanel-7nZe46t8.cjs +596 -0
- package/dist/NiceSavedQueryPanel-BSGzs7Oc.js +6449 -0
- package/dist/NiceSavedQueryPanel-BkYRk5cX.js +6441 -0
- package/dist/NiceSavedQueryPanel-CmFSi21-.cjs +596 -0
- package/dist/NiceSavedQueryPanel.css +1 -1
- package/dist/NiceTabs-BeaxZzAO.js +1636 -0
- package/dist/NiceTabs-C4H5un8J.cjs +1 -0
- package/dist/NiceTabs-DcbYFIWR.cjs +1 -0
- package/dist/NiceTabs-DlsCMth_.js +1622 -0
- package/dist/NiceWindow-BNrA5Dxq.js +1409 -0
- package/dist/NiceWindow-Bga9fOkg.js +1409 -0
- package/dist/NiceWindow-CbzJmurQ.cjs +1 -0
- package/dist/NiceWindow-CxWTj5xH.cjs +1 -0
- package/dist/charts-BcvKWYUl.cjs +759 -0
- package/dist/charts-DZvmvfhM.js +4621 -0
- package/dist/charts-F_b5-OR8.js +4621 -0
- package/dist/charts-e10jGjuF.cjs +759 -0
- package/dist/charts.cjs +1 -1
- package/dist/charts.css +1 -1
- package/dist/charts.mjs +1 -1
- package/dist/core-B4b1BmHt.js +22177 -0
- package/dist/core-CSfXTICE.cjs +96 -0
- package/dist/core-CjmLbclt.cjs +96 -0
- package/dist/core-ClmvtMVZ.js +22253 -0
- package/dist/data-branching-B_9C6-hE.cjs +1 -0
- package/dist/data-branching-BmCKIXgr.js +6121 -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 +2 -2
- package/dist/data.mjs +1 -1
- package/dist/devops-BL39OCVh.js +7660 -0
- package/dist/devops-CkuTC7RJ.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 +92 -6
- package/dist/editors.mjs +3 -3
- package/dist/feedback.cjs +1 -1
- package/dist/feedback.mjs +2 -2
- package/dist/index-BU6KCDpP.js +57872 -0
- package/dist/index-D7i7sZGV.cjs +5194 -0
- package/dist/index-DlHlXz8e.js +57319 -0
- package/dist/index-Dx726U90.cjs +5192 -0
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +448 -20
- package/dist/index.mjs +881 -868
- package/dist/lazy.cjs +1 -1
- package/dist/lazy.mjs +24 -24
- package/dist/navigation.cjs +1 -1
- package/dist/navigation.mjs +24 -24
- package/dist/no-code-Bb3QFKdm.cjs +332 -0
- package/dist/no-code-snLY0d6I.js +7065 -0
- package/dist/no-code.cjs +1 -1
- package/dist/no-code.mjs +1 -1
- package/dist/overlays.cjs +1 -1
- package/dist/overlays.mjs +81 -81
- package/dist/vendor-DF586kuF.js +271 -0
- package/dist/vendor-DHEorsoy.cjs +1 -0
- package/package.json +5 -4
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-CkuTC7RJ.cjs")).then(e=>e.NiceGitGraph$1).then(e=>({default:e.NiceGitGraph}))),o=a.lazy(()=>Promise.resolve().then(()=>require("./devops-CkuTC7RJ.cjs")).then(e=>e.NiceBranchManager$1).then(e=>({default:e.NiceBranchManager}))),l=a.lazy(()=>Promise.resolve().then(()=>require("./devops-CkuTC7RJ.cjs")).then(e=>e.NiceGitDiffViewer$1).then(e=>({default:e.NiceGitDiffViewer}))),s=a.lazy(()=>Promise.resolve().then(()=>require("./devops-CkuTC7RJ.cjs")).then(e=>e.NiceGitBlame$1).then(e=>({default:e.NiceGitBlame}))),h=a.lazy(()=>Promise.resolve().then(()=>require("./devops-CkuTC7RJ.cjs")).then(e=>e.NiceGitConflictResolver$1).then(e=>({default:e.NiceGitConflictResolver}))),c=a.lazy(()=>Promise.resolve().then(()=>require("./devops-CkuTC7RJ.cjs")).then(e=>e.NicePipelineEditor$1).then(e=>({default:e.NicePipelineEditor}))),y=a.lazy(()=>Promise.resolve().then(()=>require("./devops-CkuTC7RJ.cjs")).then(e=>e.NicePipelineMonitor$1).then(e=>({default:e.NicePipelineMonitor}))),u=a.lazy(()=>Promise.resolve().then(()=>require("./devops-CkuTC7RJ.cjs")).then(e=>e.NiceGitHooks$1).then(e=>({default:e.NiceGitHooks}))),z=a.lazy(()=>Promise.resolve().then(()=>require("./devops-CkuTC7RJ.cjs")).then(e=>e.NiceMergeRequestBuilder$1).then(e=>({default:e.NiceMergeRequestBuilder}))),d=a.lazy(()=>Promise.resolve().then(()=>require("./no-code-Bb3QFKdm.cjs")).then(e=>e.NiceAPIFlow$1).then(e=>({default:e.NiceAPIFlow}))),f=a.lazy(()=>Promise.resolve().then(()=>require("./no-code-Bb3QFKdm.cjs")).then(e=>e.NiceCodeTemplate$1).then(e=>({default:e.NiceCodeTemplate}))),N=a.lazy(()=>Promise.resolve().then(()=>require("./no-code-Bb3QFKdm.cjs")).then(e=>e.NiceDataMapper$1).then(e=>({default:e.NiceDataMapper}))),L=a.lazy(()=>Promise.resolve().then(()=>require("./no-code-Bb3QFKdm.cjs")).then(e=>e.NiceEventOrchestrator$1).then(e=>({default:e.NiceEventOrchestrator}))),p=a.lazy(()=>Promise.resolve().then(()=>require("./no-code-Bb3QFKdm.cjs")).then(e=>e.NiceStateDesigner$1).then(e=>({default:e.NiceStateDesigner}))),v=a.lazy(()=>Promise.resolve().then(()=>require("./no-code-Bb3QFKdm.cjs")).then(e=>e.NiceTestBuilder$1).then(e=>({default:e.NiceTestBuilder}))),D=a.lazy(()=>Promise.resolve().then(()=>require("./data-branching-B_9C6-hE.cjs")).then(e=>e.NiceDataBranchManager$1).then(e=>({default:e.NiceDataBranchManager}))),P=a.lazy(()=>Promise.resolve().then(()=>require("./data-branching-B_9C6-hE.cjs")).then(e=>e.NiceDataDiffViewer$1).then(e=>({default:e.NiceDataDiffViewer}))),m=a.lazy(()=>Promise.resolve().then(()=>require("./data-branching-B_9C6-hE.cjs")).then(e=>e.NiceDataBranchGraph$1).then(e=>({default:e.NiceDataBranchGraph}))),q=a.lazy(()=>Promise.resolve().then(()=>require("./data-branching-B_9C6-hE.cjs")).then(e=>e.NiceDataMergeBuilder$1).then(e=>({default:e.NiceDataMergeBuilder}))),B=a.lazy(()=>Promise.resolve().then(()=>require("./data-branching-B_9C6-hE.cjs")).then(e=>e.NiceDataConflictResolver$1).then(e=>({default:e.NiceDataConflictResolver}))),M=a.lazy(()=>Promise.resolve().then(()=>require("./data-branching-B_9C6-hE.cjs")).then(e=>e.NiceDataSnapshot$1).then(e=>({default:e.NiceDataSnapshot}))),G=a.lazy(()=>Promise.resolve().then(()=>require("./charts-e10jGjuF.cjs")).then(e=>e.NiceChart$1).then(e=>({default:e.NiceChart}))),g=a.lazy(()=>Promise.resolve().then(()=>require("./charts-e10jGjuF.cjs")).then(e=>e.NiceTreeMap$1).then(e=>({default:e.NiceTreeMap}))),$=a.lazy(()=>Promise.resolve().then(()=>require("./charts-e10jGjuF.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-BL39OCVh.js").then((e) => e.i).then((e) => ({ default: e.NiceGitGraph }))
|
|
4
4
|
), c = t(
|
|
5
|
-
() => import("./devops-
|
|
5
|
+
() => import("./devops-BL39OCVh.js").then((e) => e.j).then((e) => ({ default: e.NiceBranchManager }))
|
|
6
6
|
), h = t(
|
|
7
|
-
() => import("./devops-
|
|
7
|
+
() => import("./devops-BL39OCVh.js").then((e) => e.l).then((e) => ({ default: e.NiceGitDiffViewer }))
|
|
8
8
|
), l = t(
|
|
9
|
-
() => import("./devops-
|
|
9
|
+
() => import("./devops-BL39OCVh.js").then((e) => e.m).then((e) => ({ default: e.NiceGitBlame }))
|
|
10
10
|
), p = t(
|
|
11
|
-
() => import("./devops-
|
|
11
|
+
() => import("./devops-BL39OCVh.js").then((e) => e.n).then((e) => ({ default: e.NiceGitConflictResolver }))
|
|
12
12
|
), s = t(
|
|
13
|
-
() => import("./devops-
|
|
13
|
+
() => import("./devops-BL39OCVh.js").then((e) => e.p).then((e) => ({ default: e.NicePipelineEditor }))
|
|
14
14
|
), d = t(
|
|
15
|
-
() => import("./devops-
|
|
15
|
+
() => import("./devops-BL39OCVh.js").then((e) => e.q).then((e) => ({ default: e.NicePipelineMonitor }))
|
|
16
16
|
), f = t(
|
|
17
|
-
() => import("./devops-
|
|
17
|
+
() => import("./devops-BL39OCVh.js").then((e) => e.o).then((e) => ({ default: e.NiceGitHooks }))
|
|
18
18
|
), m = t(
|
|
19
|
-
() => import("./devops-
|
|
19
|
+
() => import("./devops-BL39OCVh.js").then((e) => e.k).then((e) => ({ default: e.NiceMergeRequestBuilder }))
|
|
20
20
|
), u = t(
|
|
21
|
-
() => import("./no-code-
|
|
21
|
+
() => import("./no-code-snLY0d6I.js").then((e) => e.k).then((e) => ({ default: e.NiceAPIFlow }))
|
|
22
22
|
), y = t(
|
|
23
|
-
() => import("./no-code-
|
|
23
|
+
() => import("./no-code-snLY0d6I.js").then((e) => e.o).then((e) => ({ default: e.NiceCodeTemplate }))
|
|
24
24
|
), z = t(
|
|
25
|
-
() => import("./no-code-
|
|
25
|
+
() => import("./no-code-snLY0d6I.js").then((e) => e.l).then((e) => ({ default: e.NiceDataMapper }))
|
|
26
26
|
), N = t(
|
|
27
|
-
() => import("./no-code-
|
|
27
|
+
() => import("./no-code-snLY0d6I.js").then((e) => e.m).then((e) => ({ default: e.NiceEventOrchestrator }))
|
|
28
28
|
), L = t(
|
|
29
|
-
() => import("./no-code-
|
|
29
|
+
() => import("./no-code-snLY0d6I.js").then((e) => e.j).then((e) => ({ default: e.NiceStateDesigner }))
|
|
30
30
|
), D = t(
|
|
31
|
-
() => import("./no-code-
|
|
31
|
+
() => import("./no-code-snLY0d6I.js").then((e) => e.n).then((e) => ({ default: e.NiceTestBuilder }))
|
|
32
32
|
), B = t(
|
|
33
|
-
() => import("./data-branching-
|
|
33
|
+
() => import("./data-branching-BmCKIXgr.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-BmCKIXgr.js").then((e) => e.g).then((e) => ({ default: e.NiceDataDiffViewer }))
|
|
38
38
|
), M = t(
|
|
39
|
-
() => import("./data-branching-
|
|
39
|
+
() => import("./data-branching-BmCKIXgr.js").then((e) => e.h).then((e) => ({ default: e.NiceDataBranchGraph }))
|
|
40
40
|
), g = t(
|
|
41
|
-
() => import("./data-branching-
|
|
41
|
+
() => import("./data-branching-BmCKIXgr.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-BmCKIXgr.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-BmCKIXgr.js").then((e) => e.k).then((e) => ({ default: e.NiceDataSnapshot }))
|
|
50
50
|
), v = t(
|
|
51
|
-
() => import("./charts-
|
|
51
|
+
() => import("./charts-F_b5-OR8.js").then((e) => e.A).then((e) => ({ default: e.NiceChart }))
|
|
52
52
|
), w = t(
|
|
53
|
-
() => import("./charts-
|
|
53
|
+
() => import("./charts-F_b5-OR8.js").then((e) => e.E).then((e) => ({ default: e.NiceTreeMap }))
|
|
54
54
|
), T = t(
|
|
55
|
-
() => import("./charts-
|
|
55
|
+
() => import("./charts-F_b5-OR8.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-C9xMSjOF.cjs"),e=require("react/jsx-runtime"),h=require("react"),v=require("./core-C2ZmWe_u.cjs"),U=require("./NiceTabs-DvOmxKyQ.cjs"),V=require("./NicePagination-DlealakT.cjs"),R=h.forwardRef(({items:b,activeKey:N,collapsed:a=!1,width:p=240,collapsedWidth:o=52,onItemClick:k,onCollapseChange:D,header:y,footer:d,size:m="md",className:g,style:M,id:j,accessMode:S,...C},x)=>{const s=v.useControlId(j),t=v.useNiceAccessMode(S,j),[l,u]=h.useState(new Set),r=h.useCallback(i=>{u($=>{const c=new Set($);return c.has(i)?c.delete(i):c.add(i),c})},[]);if(t==="hidden")return null;const _=(i,$=0)=>{const c=i.children&&i.children.length>0,A=l.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:A?"▾":"▸"})]}),c&&A&&!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:s,className:`nice-sidebar-menu nice-sidebar-menu--${m} ${a?"nice-sidebar-menu--collapsed":""} ${g??""}`,style:{...M,width:a?o:p},...C,children:[y&&e.jsx("div",{className:"nice-sidebar-menu__header",children:y}),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})]})});R.displayName="NiceSidebarMenu";const P=h.forwardRef(({items:b,activeKey:N,onItemClick:a,brand:p,actions:o,size:k="md",className:D,style:y,id:d,accessMode:m,...g},M)=>{const j=v.useControlId(d),S=v.useNiceAccessMode(m,d),[C,x]=h.useState(null);return S==="hidden"?null:e.jsxs("nav",{ref:M,id:j,className:`nice-top-menu nice-top-menu--${k} ${D??""}`,style:y,...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 t=s.children&&s.children.length>0,l=C===s.key;return e.jsxs("li",{className:"nice-top-menu__item",onMouseEnter:()=>t&&x(s.key),onMouseLeave:()=>t&&x(null),children:[e.jsxs("button",{className:`nice-top-menu__btn ${s.key===N?"nice-top-menu__btn--active":""}`,onClick:()=>t?x(l?null:s.key):a?.(s),role:"menuitem","aria-haspopup":t,"aria-expanded":l,disabled:s.disabled,type:"button",children:[s.icon&&e.jsx("span",{children:s.icon}),e.jsx("span",{children:s.text}),t&&e.jsx("span",{className:"nice-top-menu__chevron",children:"▾"})]}),t&&l&&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)})}),o&&e.jsx("div",{className:"nice-top-menu__actions",children:o})]})});P.displayName="NiceTopMenu";const W=h.forwardRef(({tabs:b,activeTab:N,onTabChange:a,onItemClick:p,minimized:o=!1,onMinimizeToggle:k,size:D="md",className:y,style:d,id:m,accessMode:g,...M},j)=>{const S=v.useControlId(m),C=v.useNiceAccessMode(g,m),[x,s]=h.useState(N??b[0]?.key),t=N??x,l=b.find(r=>r.key===t),u=h.useCallback(r=>{s(r),a?.(r)},[a]);return C==="hidden"?null:e.jsxs("div",{ref:j,id:S,className:`nice-ribbon-menu nice-ribbon-menu--${D} ${o?"nice-ribbon-menu--minimized":""} ${y??""}`,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===t?"nice-ribbon-menu__tab--active":""}`,onClick:()=>u(r.key),role:"tab","aria-selected":r.key===t,type:"button",children:r.label},r.key)),e.jsx("button",{className:"nice-ribbon-menu__minimize",onClick:()=>k?.(!o),type:"button","aria-label":o?"Expand":"Minimize",children:o?"▼":"▲"})]}),!o&&l&&e.jsx("div",{className:"nice-ribbon-menu__panel",role:"tabpanel",children:l.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})]},_))})]})});W.displayName="NiceRibbonMenu";const L=h.forwardRef(({items:b,activeKey:N,onItemClick:a,position:p="bottom",autoHide:o=!1,iconSize:k=40,size:D="md",className:y,style:d,id:m,accessMode:g,...M},j)=>{const S=v.useControlId(m),C=v.useNiceAccessMode(g,m),[x,s]=h.useState(!1),t=!o||x;return C==="hidden"?null:e.jsx("div",{ref:j,id:S,className:`nice-dock-menu nice-dock-menu--${p} nice-dock-menu--${D} ${o&&!t?"nice-dock-menu--hidden":""} ${y??""}`,style:d,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),...M,children:e.jsx("div",{className:"nice-dock-menu__items",children:b.map(l=>e.jsxs("button",{className:`nice-dock-menu__item ${l.key===N?"nice-dock-menu__item--active":""}`,onClick:()=>a?.(l),disabled:l.disabled,title:l.text,type:"button",style:{width:k,height:k},children:[l.icon?e.jsx("span",{className:"nice-dock-menu__icon",children:l.icon}):e.jsx("span",{children:l.text[0]}),l.badge!==void 0&&e.jsx("span",{className:"nice-dock-menu__badge",children:l.badge})]},l.key))})})});L.displayName="NiceDockMenu";const B=h.forwardRef(({items:b,activeKey:N,onItemClick:a,open:p,onOpenChange:o,position:k="left",panelWidth:D=280,header:y,footer:d,size:m="md",className:g,style:M,id:j,accessMode:S,...C},x)=>{const s=v.useControlId(j),t=v.useNiceAccessMode(S,j),{t:l}=v.Wo(),[u,r]=h.useState(!1),_=p??u,i=h.useCallback(()=>{const c=!_;r(c),o?.(c)},[_,o]),$=h.useCallback(c=>{a?.(c),r(!1),o?.(!1)},[a,o]);return t==="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":l("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:[y&&e.jsx("div",{className:"nice-hamburger-menu__header",children:y}),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})]})]})});B.displayName="NiceHamburgerMenu";const O=h.forwardRef(({canGoBack:b=!1,canGoForward:N=!1,onBack:a,onForward:p,onRefresh:o,enableShortcuts:k=!0,showRefresh:D=!0,showStop:y=!0,isLoading:d=!1,onStop:m,size:g="md",variant:M="default",tooltipPosition:j="bottom",backIcon:S,forwardIcon:C,refreshIcon:x,stopIcon:s,className:t,style:l,id:u,accessMode:r,disabled:_,...i},$)=>{const c=v.useControlId(u),A=v.useNiceAccessMode(r,u),{t:w}=v.Wo();if(h.useEffect(()=>{if(!k||_)return;const E=f=>{const I=f.altKey,H=f.ctrlKey||f.metaKey;I&&f.key==="ArrowLeft"?(f.preventDefault(),b&&a?.()):I&&f.key==="ArrowRight"?(f.preventDefault(),N&&p?.()):f.key==="F5"||H&&f.key==="r"?(f.preventDefault(),d?m?.():o?.()):f.key==="Escape"&&d&&(f.preventDefault(),m?.())};return window.addEventListener("keydown",E),()=>window.removeEventListener("keydown",E)},[k,_,b,N,d,a,p,o,m]),A==="hidden")return null;const T=A==="disabled"||_,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":""}${t?` ${t}`:""}`,style:l,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||y&&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:o,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.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.NiceMegaMenu=n.NiceMegaMenu;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.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=L;exports.NiceHamburgerMenu=B;exports.NiceNavigationControls=O;exports.NiceRibbonMenu=W;exports.NiceSidebarMenu=R;exports.NiceTopMenu=P;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./NiceModuleLifecyclePanel-Cj4x54sw.cjs"),e=require("react/jsx-runtime"),v=require("./core-CSfXTICE.cjs"),h=require("react"),U=require("./NiceTabs-C4H5un8J.cjs"),V=require("./NicePagination-DGHtXqy1.cjs"),P=h.forwardRef(({items:b,activeKey:N,collapsed:a=!1,width:p=240,collapsedWidth:r=52,onItemClick:k,onCollapseChange:D,header:y,footer:d,size:m="md",className:g,style:M,id:j,accessMode:S,...w},x)=>{const c=v.Ss(j),o=v.Bs(S,j),[l,u]=h.useState(new Set),t=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=l.has(i.key),C=i.key===N;return e.jsxs("li",{className:"nice-sidebar-menu__item",children:[e.jsxs("button",{className:`nice-sidebar-menu__btn ${C?"nice-sidebar-menu__btn--active":""} ${i.disabled?"nice-sidebar-menu__btn--disabled":""}`,style:{paddingLeft:a?void 0:12+$*16},onClick:()=>s?t(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?r:p},...w,children:[y&&e.jsx("div",{className:"nice-sidebar-menu__header",children:y}),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})]})});P.displayName="NiceSidebarMenu";const B=h.forwardRef(({items:b,activeKey:N,onItemClick:a,brand:p,actions:r,size:k="md",className:D,style:y,id:d,accessMode:m,...g},M)=>{const j=v.Ss(d),S=v.Bs(m,d),[w,x]=h.useState(null);return S==="hidden"?null:e.jsxs("nav",{ref:M,id:j,className:`nice-top-menu nice-top-menu--${k} ${D??""}`,style:y,...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,l=w===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(l?null:c.key):a?.(c),role:"menuitem","aria-haspopup":o,"aria-expanded":l,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&&l&&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)})}),r&&e.jsx("div",{className:"nice-top-menu__actions",children:r})]})});B.displayName="NiceTopMenu";const I=h.forwardRef(({tabs:b,activeTab:N,onTabChange:a,onItemClick:p,minimized:r=!1,onMinimizeToggle:k,size:D="md",className:y,style:d,id:m,accessMode:g,...M},j)=>{const S=v.Ss(m),w=v.Bs(g,m),[x,c]=h.useState(N??b[0]?.key),o=N??x,l=b.find(t=>t.key===o),u=h.useCallback(t=>{c(t),a?.(t)},[a]);return w==="hidden"?null:e.jsxs("div",{ref:j,id:S,className:`nice-ribbon-menu nice-ribbon-menu--${D} ${r?"nice-ribbon-menu--minimized":""} ${y??""}`,style:d,...M,children:[e.jsxs("div",{className:"nice-ribbon-menu__tabs",role:"tablist",children:[b.map(t=>e.jsx("button",{className:`nice-ribbon-menu__tab ${t.key===o?"nice-ribbon-menu__tab--active":""}`,onClick:()=>u(t.key),role:"tab","aria-selected":t.key===o,type:"button",children:t.label},t.key)),e.jsx("button",{className:"nice-ribbon-menu__minimize",onClick:()=>k?.(!r),type:"button","aria-label":r?"Expand":"Minimize",children:r?"▼":"▲"})]}),!r&&l&&e.jsx("div",{className:"nice-ribbon-menu__panel",role:"tabpanel",children:l.groups.map((t,_)=>e.jsxs("div",{className:"nice-ribbon-menu__group",children:[e.jsx("div",{className:"nice-ribbon-menu__group-items",children:t.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:t.label})]},_))})]})});I.displayName="NiceRibbonMenu";const L=h.forwardRef(({items:b,activeKey:N,onItemClick:a,position:p="bottom",autoHide:r=!1,iconSize:k=40,size:D="md",className:y,style:d,id:m,accessMode:g,...M},j)=>{const S=v.Ss(m),w=v.Bs(g,m),[x,c]=h.useState(!1),o=!r||x;return w==="hidden"?null:e.jsx("div",{ref:j,id:S,className:`nice-dock-menu nice-dock-menu--${p} nice-dock-menu--${D} ${r&&!o?"nice-dock-menu--hidden":""} ${y??""}`,style:d,onMouseEnter:()=>c(!0),onMouseLeave:()=>c(!1),...M,children:e.jsx("div",{className:"nice-dock-menu__items",children:b.map(l=>e.jsxs("button",{className:`nice-dock-menu__item ${l.key===N?"nice-dock-menu__item--active":""}`,onClick:()=>a?.(l),disabled:l.disabled,title:l.text,type:"button",style:{width:k,height:k},children:[l.icon?e.jsx("span",{className:"nice-dock-menu__icon",children:l.icon}):e.jsx("span",{children:l.text[0]}),l.badge!==void 0&&e.jsx("span",{className:"nice-dock-menu__badge",children:l.badge})]},l.key))})})});L.displayName="NiceDockMenu";const W=h.forwardRef(({items:b,activeKey:N,onItemClick:a,open:p,onOpenChange:r,position:k="left",panelWidth:D=280,header:y,footer:d,size:m="md",className:g,style:M,id:j,accessMode:S,...w},x)=>{const c=v.Ss(j),o=v.Bs(S,j),{t:l}=v.$o(),[u,t]=h.useState(!1),_=p??u,i=h.useCallback(()=>{const s=!_;t(s),r?.(s)},[_,r]),$=h.useCallback(s=>{a?.(s),t(!1),r?.(!1)},[a,r]);return o==="hidden"?null:e.jsxs("div",{ref:x,id:c,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":l("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:[y&&e.jsx("div",{className:"nice-hamburger-menu__header",children:y}),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})]})]})});W.displayName="NiceHamburgerMenu";const O=h.forwardRef(({canGoBack:b=!1,canGoForward:N=!1,onBack:a,onForward:p,onRefresh:r,enableShortcuts:k=!0,showRefresh:D=!0,showStop:y=!0,isLoading:d=!1,onStop:m,size:g="md",variant:M="default",tooltipPosition:j="bottom",backIcon:S,forwardIcon:w,refreshIcon:x,stopIcon:c,className:o,style:l,id:u,accessMode:t,disabled:_,...i},$)=>{const s=v.Ss(u),E=v.Bs(t,u),{t:C}=v.$o();if(h.useEffect(()=>{if(!k||_)return;const R=f=>{const A=f.altKey,H=f.ctrlKey||f.metaKey;A&&f.key==="ArrowLeft"?(f.preventDefault(),b&&a?.()):A&&f.key==="ArrowRight"?(f.preventDefault(),N&&p?.()):f.key==="F5"||H&&f.key==="r"?(f.preventDefault(),d?m?.():r?.()):f.key==="Escape"&&d&&(f.preventDefault(),m?.())};return window.addEventListener("keydown",R),()=>window.removeEventListener("keydown",R)},[k,_,b,N,d,a,p,r,m]),E==="hidden")return null;const T=E==="disabled"||_,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=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=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=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:l,role:"navigation","aria-label":C("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":C("nav.back","Back"),title:`${C("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":C("nav.forward","Forward"),title:`${C("nav.forward","Forward")} (Alt+→)`,children:z}),(D||y&&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":C("nav.stop","Stop"),title:`${C("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":C("nav.refresh","Refresh"),title:`${C("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.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.NiceMegaMenu=n.NiceMegaMenu;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.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=L;exports.NiceHamburgerMenu=W;exports.NiceNavigationControls=O;exports.NiceRibbonMenu=I;exports.NiceSidebarMenu=P;exports.NiceTopMenu=B;
|
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 re, N as te, 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 Me, w as we, x as Ce, y as De, z as Se, A as Ee, B as Ie, C as Te, E as Ae, F as
|
|
1
|
+
import { D as ae, a as ie, b as ce, c as se, d as le, e as re, N as te, 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 Me, w as we, x as Ce, y as De, z as Se, A as Ee, B as Ie, C as Te, E as Ae, F as Be, G as Pe, H as Le, I as Re, J as We, K as Ke, L as Oe, M as Fe, O as He, P as je, S as ze } from "./NiceModuleLifecyclePanel-D-xBAp1_.js";
|
|
2
2
|
import { jsx as e, jsxs as o } from "react/jsx-runtime";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { f as Ve } from "./NiceTabs-
|
|
6
|
-
import { N as Je } from "./NicePagination-
|
|
7
|
-
const U =
|
|
3
|
+
import { S as E, B as I, $ as W } from "./core-ClmvtMVZ.js";
|
|
4
|
+
import { forwardRef as T, useState as B, useCallback as P, useEffect as z } from "react";
|
|
5
|
+
import { f as Ve } from "./NiceTabs-DlsCMth_.js";
|
|
6
|
+
import { N as Je } from "./NicePagination-DDFkSRr9.js";
|
|
7
|
+
const U = T(
|
|
8
8
|
({
|
|
9
9
|
items: b,
|
|
10
10
|
activeKey: m,
|
|
@@ -22,7 +22,7 @@ const U = E(
|
|
|
22
22
|
accessMode: x,
|
|
23
23
|
...M
|
|
24
24
|
}, N) => {
|
|
25
|
-
const i =
|
|
25
|
+
const i = E(y), t = I(x, y), [s, u] = B(/* @__PURE__ */ new Set()), r = P((n) => {
|
|
26
26
|
u((D) => {
|
|
27
27
|
const a = new Set(D);
|
|
28
28
|
return a.has(n) ? a.delete(n) : a.add(n), a;
|
|
@@ -71,7 +71,7 @@ const U = E(
|
|
|
71
71
|
}
|
|
72
72
|
);
|
|
73
73
|
U.displayName = "NiceSidebarMenu";
|
|
74
|
-
const V =
|
|
74
|
+
const V = T(
|
|
75
75
|
({
|
|
76
76
|
items: b,
|
|
77
77
|
activeKey: m,
|
|
@@ -85,7 +85,7 @@ const V = E(
|
|
|
85
85
|
accessMode: _,
|
|
86
86
|
...g
|
|
87
87
|
}, $) => {
|
|
88
|
-
const y =
|
|
88
|
+
const y = E(d), x = I(_, d), [M, N] = B(null);
|
|
89
89
|
return x === "hidden" ? null : /* @__PURE__ */ o(
|
|
90
90
|
"nav",
|
|
91
91
|
{
|
|
@@ -151,7 +151,7 @@ const V = E(
|
|
|
151
151
|
}
|
|
152
152
|
);
|
|
153
153
|
V.displayName = "NiceTopMenu";
|
|
154
|
-
const q =
|
|
154
|
+
const q = T(
|
|
155
155
|
({
|
|
156
156
|
tabs: b,
|
|
157
157
|
activeTab: m,
|
|
@@ -166,7 +166,7 @@ const q = E(
|
|
|
166
166
|
accessMode: g,
|
|
167
167
|
...$
|
|
168
168
|
}, y) => {
|
|
169
|
-
const x =
|
|
169
|
+
const x = E(_), M = I(g, _), [N, i] = B(m ?? b[0]?.key), t = m ?? N, s = b.find((r) => r.key === t), u = P(
|
|
170
170
|
(r) => {
|
|
171
171
|
i(r), c?.(r);
|
|
172
172
|
},
|
|
@@ -228,7 +228,7 @@ const q = E(
|
|
|
228
228
|
}
|
|
229
229
|
);
|
|
230
230
|
q.displayName = "NiceRibbonMenu";
|
|
231
|
-
const J =
|
|
231
|
+
const J = T(
|
|
232
232
|
({
|
|
233
233
|
items: b,
|
|
234
234
|
activeKey: m,
|
|
@@ -243,7 +243,7 @@ const J = E(
|
|
|
243
243
|
accessMode: g,
|
|
244
244
|
...$
|
|
245
245
|
}, y) => {
|
|
246
|
-
const x =
|
|
246
|
+
const x = E(_), M = I(g, _), [N, i] = B(!1), t = !l || N;
|
|
247
247
|
return M === "hidden" ? null : /* @__PURE__ */ e(
|
|
248
248
|
"div",
|
|
249
249
|
{
|
|
@@ -275,7 +275,7 @@ const J = E(
|
|
|
275
275
|
}
|
|
276
276
|
);
|
|
277
277
|
J.displayName = "NiceDockMenu";
|
|
278
|
-
const Q =
|
|
278
|
+
const Q = T(
|
|
279
279
|
({
|
|
280
280
|
items: b,
|
|
281
281
|
activeKey: m,
|
|
@@ -293,10 +293,10 @@ const Q = E(
|
|
|
293
293
|
accessMode: x,
|
|
294
294
|
...M
|
|
295
295
|
}, N) => {
|
|
296
|
-
const i =
|
|
296
|
+
const i = E(y), t = I(x, y), { t: s } = W(), [u, r] = B(!1), h = p ?? u, n = P(() => {
|
|
297
297
|
const a = !h;
|
|
298
298
|
r(a), l?.(a);
|
|
299
|
-
}, [h, l]), D =
|
|
299
|
+
}, [h, l]), D = P(
|
|
300
300
|
(a) => {
|
|
301
301
|
c?.(a), r(!1), l?.(!1);
|
|
302
302
|
},
|
|
@@ -365,7 +365,7 @@ const Q = E(
|
|
|
365
365
|
}
|
|
366
366
|
);
|
|
367
367
|
Q.displayName = "NiceHamburgerMenu";
|
|
368
|
-
const X =
|
|
368
|
+
const X = T(
|
|
369
369
|
({
|
|
370
370
|
canGoBack: b = !1,
|
|
371
371
|
canGoForward: m = !1,
|
|
@@ -391,15 +391,15 @@ const X = E(
|
|
|
391
391
|
disabled: h,
|
|
392
392
|
...n
|
|
393
393
|
}, D) => {
|
|
394
|
-
const a =
|
|
394
|
+
const a = E(u), A = I(r, u), { t: w } = W();
|
|
395
395
|
if (z(() => {
|
|
396
396
|
if (!v || h)
|
|
397
397
|
return;
|
|
398
|
-
const
|
|
398
|
+
const L = (f) => {
|
|
399
399
|
const R = f.altKey, j = f.ctrlKey || f.metaKey;
|
|
400
400
|
R && f.key === "ArrowLeft" ? (f.preventDefault(), b && c?.()) : R && f.key === "ArrowRight" ? (f.preventDefault(), m && p?.()) : f.key === "F5" || j && f.key === "r" ? (f.preventDefault(), d ? _?.() : l?.()) : f.key === "Escape" && d && (f.preventDefault(), _?.());
|
|
401
401
|
};
|
|
402
|
-
return window.addEventListener("keydown",
|
|
402
|
+
return window.addEventListener("keydown", L), () => window.removeEventListener("keydown", L);
|
|
403
403
|
}, [
|
|
404
404
|
v,
|
|
405
405
|
h,
|
|
@@ -563,14 +563,14 @@ export {
|
|
|
563
563
|
Te as NiceNavbar,
|
|
564
564
|
X as NiceNavigationControls,
|
|
565
565
|
Ae as NiceOnboardingWizard,
|
|
566
|
-
|
|
566
|
+
Be as NiceOrganizationProfileForm,
|
|
567
567
|
Je as NicePagination,
|
|
568
|
-
|
|
568
|
+
Pe as NicePwaShell,
|
|
569
569
|
q as NiceRibbonMenu,
|
|
570
|
-
|
|
570
|
+
Le as NiceSetupWizard,
|
|
571
571
|
U as NiceSidebarMenu,
|
|
572
572
|
Re as NiceSidebarNav,
|
|
573
|
-
|
|
573
|
+
We as NiceSplitter,
|
|
574
574
|
Ke as NiceTabPanel,
|
|
575
575
|
Ve as NiceTabs,
|
|
576
576
|
Oe as NiceTenantSwitcher,
|