@nice2dev/ui 1.0.30 → 1.0.31
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 +495 -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/NiceConfirmDialog-B57cl_F7.cjs +1 -0
- package/dist/NiceConfirmDialog-N9fBTLYm.js +81 -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-CPyAXxBO.cjs +1 -0
- package/dist/NiceMegaMenu.doc-7UyOCd3l.cjs +7 -0
- package/dist/NiceMegaMenu.doc-zeIyVa65.js +31 -0
- package/dist/NiceModal-Bj53SKLI.js +95 -0
- package/dist/NiceModal-DC0UlQhc.cjs +1 -0
- package/dist/NiceModuleLifecyclePanel-BBOg9g0b.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-CfFfNwrg.cjs +1 -0
- package/dist/NiceSavedQueryPanel-CH5c3rUG.js +6988 -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/NiceWindow-BoDzlGk-.js +1621 -0
- package/dist/NiceWindow-DgONWxBm.cjs +1 -0
- package/dist/charts-Bs0aDM0X.js +4671 -0
- package/dist/charts-DjjKkw0q.cjs +761 -0
- package/dist/charts.cjs +1 -1
- package/dist/charts.mjs +1 -1
- package/dist/core-BUsZ7_vI.js +27914 -0
- package/dist/core-CLfcCDKc.cjs +122 -0
- package/dist/data-branching-D7l_kILW.cjs +1 -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 +41 -37
- package/dist/data.mjs +18 -19
- package/dist/devops-Bi8MXtko.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 +215 -431
- package/dist/editors.mjs +48 -56
- package/dist/feedback.cjs +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 +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +441 -916
- package/dist/index.mjs +908 -933
- package/dist/lazy.cjs +1 -1
- package/dist/lazy.mjs +24 -24
- package/dist/navigation.cjs +1 -1
- package/dist/navigation.d.ts +25 -213
- package/dist/navigation.mjs +105 -113
- package/dist/no-code-8lO7o6xi.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 +8 -0
- package/dist/overlays.mjs +36 -36
- package/dist/pickerCommons-CORo9j2a.js +2119 -0
- package/dist/pickerCommons-D3WShRrR.cjs +1 -0
- package/dist/style.css +5 -5
- package/package.json +3 -3
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
const e = "https://nice2dev.com/schemas/component-doc-v1.json", t = "NiceCalendarScheduler", n = "Calendar scheduler for appointments and event management.", a = "planning", c = "1.0.0", o = "planned", r = [{ name: "events", type: "SchedulerEvent[]", required: !0, description: "Event data" }, { name: "view", type: "'day' | 'week' | 'month' | 'agenda'", default: "'week'", description: "View mode" }, { name: "date", type: "Date", required: !0, description: "Current date" }, { name: "onDateChange", type: "(date: Date) => void", description: "Date change callback" }, { name: "onEventClick", type: "(event: SchedulerEvent) => void", description: "Event click callback" }, { name: "onEventCreate", type: "(start: Date, end: Date) => void", description: "Create event callback" }, { name: "onEventUpdate", type: "(event: SchedulerEvent) => void", description: "Update event callback" }, { name: "resources", type: "Resource[]", description: "Resources for multi-resource view" }, { name: "workingHours", type: "WorkingHours", description: "Working hours config" }], i = [{ title: "Calendar Scheduler", description: "Schedule events", code: `<NiceCalendarScheduler
|
|
2
|
+
events={appointments}
|
|
3
|
+
view="week"
|
|
4
|
+
date={currentDate}
|
|
5
|
+
onDateChange={setCurrentDate}
|
|
6
|
+
onEventClick={openEvent}
|
|
7
|
+
onEventCreate={createEvent}
|
|
8
|
+
onEventUpdate={updateEvent}
|
|
9
|
+
/>` }], s = { keyboard: ["Arrow keys to navigate", "Enter to select"], aria: ["Calendar scheduler", "Event descriptions"] }, d = ["NiceDateTimePicker", "NiceGanttChart"], p = {
|
|
10
|
+
$schema: e,
|
|
11
|
+
name: t,
|
|
12
|
+
description: n,
|
|
13
|
+
category: a,
|
|
14
|
+
since: c,
|
|
15
|
+
status: o,
|
|
16
|
+
props: r,
|
|
17
|
+
examples: i,
|
|
18
|
+
accessibility: s,
|
|
19
|
+
seeAlso: d
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
e as $schema,
|
|
23
|
+
s as accessibility,
|
|
24
|
+
a as category,
|
|
25
|
+
p as default,
|
|
26
|
+
n as description,
|
|
27
|
+
i as examples,
|
|
28
|
+
t as name,
|
|
29
|
+
r as props,
|
|
30
|
+
d as seeAlso,
|
|
31
|
+
c as since,
|
|
32
|
+
o as status
|
|
33
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("react/jsx-runtime"),C=require("./core-CLfcCDKc.cjs"),d=require("react"),N={info:e.jsx("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"currentColor",children:e.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"})}),warning:e.jsx("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"currentColor",children:e.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"})}),error:e.jsx("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"currentColor",children:e.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z"})}),success:e.jsx("svg",{width:"28",height:"28",viewBox:"0 0 24 24",fill:"currentColor",children:e.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})})},b=({visible:c,message:m,header:o,icon:h,variant:i="warning",acceptLabel:a,rejectLabel:f,onAccept:u,onReject:n,closeOnOverlay:v=!1,closeOnEscape:s=!0,size:x="md",className:g,style:j})=>{const{t}=C.Gt();if(d.useEffect(()=>{if(!c||!s)return;const r=_=>{_.key==="Escape"&&n()};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)},[c,s,n]),d.useEffect(()=>(c?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[c]),!c)return null;const l=h??N[i],w=a??t("confirm.accept","Yes"),y=f??t("confirm.reject","No");return e.jsx("div",{className:"nice-modal-overlay",onClick:v?n:void 0,children:e.jsxs("div",{className:`nice-confirm nice-confirm--${i} nice-confirm--${x} ${g||""}`,style:j,role:"alertdialog","aria-modal":"true","aria-label":o,"aria-describedby":"nice-confirm-message",onClick:r=>r.stopPropagation(),children:[o&&e.jsx("div",{className:"nice-confirm__header",children:e.jsx("h3",{className:"nice-confirm__title",children:o})}),e.jsxs("div",{className:"nice-confirm__body",children:[l&&e.jsx("div",{className:`nice-confirm__icon nice-confirm__icon--${i}`,children:l}),e.jsx("div",{id:"nice-confirm-message",className:"nice-confirm__message",children:m})]}),e.jsxs("div",{className:"nice-confirm__footer",children:[e.jsx("button",{type:"button",className:"nice-btn nice-btn--ghost nice-btn--md",onClick:n,children:y}),e.jsx("button",{type:"button",className:`nice-btn nice-btn--${i==="error"?"error":"primary"} nice-btn--md`,onClick:u,autoFocus:!0,children:w})]})]})})};exports.NiceConfirmDialog=b;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
2
|
+
import { G as C } from "./core-BUsZ7_vI.js";
|
|
3
|
+
import m from "react";
|
|
4
|
+
const z = {
|
|
5
|
+
info: /* @__PURE__ */ e("svg", { width: "28", height: "28", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ e("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z" }) }),
|
|
6
|
+
warning: /* @__PURE__ */ e("svg", { width: "28", height: "28", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ e("path", { d: "M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z" }) }),
|
|
7
|
+
error: /* @__PURE__ */ e("svg", { width: "28", height: "28", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ e("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z" }) }),
|
|
8
|
+
success: /* @__PURE__ */ e("svg", { width: "28", height: "28", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ e("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" }) })
|
|
9
|
+
}, E = ({
|
|
10
|
+
visible: i,
|
|
11
|
+
message: a,
|
|
12
|
+
header: o,
|
|
13
|
+
icon: h,
|
|
14
|
+
variant: n = "warning",
|
|
15
|
+
acceptLabel: f,
|
|
16
|
+
rejectLabel: v,
|
|
17
|
+
onAccept: u,
|
|
18
|
+
onReject: c,
|
|
19
|
+
closeOnOverlay: g = !1,
|
|
20
|
+
closeOnEscape: l = !0,
|
|
21
|
+
size: p = "md",
|
|
22
|
+
className: w,
|
|
23
|
+
style: y
|
|
24
|
+
}) => {
|
|
25
|
+
const { t: s } = C();
|
|
26
|
+
if (m.useEffect(() => {
|
|
27
|
+
if (!i || !l)
|
|
28
|
+
return;
|
|
29
|
+
const r = (b) => {
|
|
30
|
+
b.key === "Escape" && c();
|
|
31
|
+
};
|
|
32
|
+
return document.addEventListener("keydown", r), () => document.removeEventListener("keydown", r);
|
|
33
|
+
}, [i, l, c]), m.useEffect(() => (i ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", () => {
|
|
34
|
+
document.body.style.overflow = "";
|
|
35
|
+
}), [i]), !i)
|
|
36
|
+
return null;
|
|
37
|
+
const d = h ?? z[n], _ = f ?? s("confirm.accept", "Yes"), N = v ?? s("confirm.reject", "No");
|
|
38
|
+
return /* @__PURE__ */ e("div", { className: "nice-modal-overlay", onClick: g ? c : void 0, children: /* @__PURE__ */ t(
|
|
39
|
+
"div",
|
|
40
|
+
{
|
|
41
|
+
className: `nice-confirm nice-confirm--${n} nice-confirm--${p} ${w || ""}`,
|
|
42
|
+
style: y,
|
|
43
|
+
role: "alertdialog",
|
|
44
|
+
"aria-modal": "true",
|
|
45
|
+
"aria-label": o,
|
|
46
|
+
"aria-describedby": "nice-confirm-message",
|
|
47
|
+
onClick: (r) => r.stopPropagation(),
|
|
48
|
+
children: [
|
|
49
|
+
o && /* @__PURE__ */ e("div", { className: "nice-confirm__header", children: /* @__PURE__ */ e("h3", { className: "nice-confirm__title", children: o }) }),
|
|
50
|
+
/* @__PURE__ */ t("div", { className: "nice-confirm__body", children: [
|
|
51
|
+
d && /* @__PURE__ */ e("div", { className: `nice-confirm__icon nice-confirm__icon--${n}`, children: d }),
|
|
52
|
+
/* @__PURE__ */ e("div", { id: "nice-confirm-message", className: "nice-confirm__message", children: a })
|
|
53
|
+
] }),
|
|
54
|
+
/* @__PURE__ */ t("div", { className: "nice-confirm__footer", children: [
|
|
55
|
+
/* @__PURE__ */ e(
|
|
56
|
+
"button",
|
|
57
|
+
{
|
|
58
|
+
type: "button",
|
|
59
|
+
className: "nice-btn nice-btn--ghost nice-btn--md",
|
|
60
|
+
onClick: c,
|
|
61
|
+
children: N
|
|
62
|
+
}
|
|
63
|
+
),
|
|
64
|
+
/* @__PURE__ */ e(
|
|
65
|
+
"button",
|
|
66
|
+
{
|
|
67
|
+
type: "button",
|
|
68
|
+
className: `nice-btn nice-btn--${n === "error" ? "error" : "primary"} nice-btn--md`,
|
|
69
|
+
onClick: u,
|
|
70
|
+
autoFocus: !0,
|
|
71
|
+
children: _
|
|
72
|
+
}
|
|
73
|
+
)
|
|
74
|
+
] })
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
) });
|
|
78
|
+
};
|
|
79
|
+
export {
|
|
80
|
+
E as N
|
|
81
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
const e = "https://nice2dev.com/schemas/component-doc-v1.json", n = "NiceDrawingCanvas", t = "Freeform drawing canvas with brush tools.", a = "editors", o = "1.0.0", s = "planned", i = [{ name: "value", type: "string", description: "Canvas data URL" }, { name: "onChange", type: "(dataUrl: string) => void", required: !0, description: "Change callback" }, { name: "width", type: "number | string", default: "'100%'", description: "Canvas width" }, { name: "height", type: "number | string", default: "400", description: "Canvas height" }, { name: "tools", type: "DrawingTool[]", description: "Available tools" }, { name: "colors", type: "string[]", description: "Color palette" }, { name: "brushSizes", type: "number[]", description: "Brush sizes" }, { name: "showToolbar", type: "boolean", default: "true", description: "Show toolbar" }, { name: "undoSteps", type: "number", default: "50", description: "Max undo steps" }, { name: "disabled", type: "boolean", default: "false", description: "Disabled state" }], r = [{ title: "Drawing Canvas", description: "Draw freeform", code: `<NiceDrawingCanvas
|
|
2
|
+
value={drawing}
|
|
3
|
+
onChange={setDrawing}
|
|
4
|
+
width={800}
|
|
5
|
+
height={600}
|
|
6
|
+
tools={['brush', 'eraser', 'line', 'rectangle']}
|
|
7
|
+
showToolbar
|
|
8
|
+
/>` }], c = { keyboard: ["Tab through tools", "Shortcuts for tools"], aria: ["Drawing canvas", "Tool descriptions"] }, d = ["NiceSignature", "NiceImageEditor"], l = {
|
|
9
|
+
$schema: e,
|
|
10
|
+
name: n,
|
|
11
|
+
description: t,
|
|
12
|
+
category: a,
|
|
13
|
+
since: o,
|
|
14
|
+
status: s,
|
|
15
|
+
props: i,
|
|
16
|
+
examples: r,
|
|
17
|
+
accessibility: c,
|
|
18
|
+
seeAlso: d
|
|
19
|
+
};
|
|
20
|
+
export {
|
|
21
|
+
e as $schema,
|
|
22
|
+
c as accessibility,
|
|
23
|
+
a as category,
|
|
24
|
+
l as default,
|
|
25
|
+
t as description,
|
|
26
|
+
r as examples,
|
|
27
|
+
n as name,
|
|
28
|
+
i as props,
|
|
29
|
+
d as seeAlso,
|
|
30
|
+
o as since,
|
|
31
|
+
s as status
|
|
32
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="https://nice2dev.com/schemas/component-doc-v1.json",t="NiceDrawingCanvas",n="Freeform drawing canvas with brush tools.",s="editors",a="1.0.0",o="planned",i=[{name:"value",type:"string",description:"Canvas data URL"},{name:"onChange",type:"(dataUrl: string) => void",required:!0,description:"Change callback"},{name:"width",type:"number | string",default:"'100%'",description:"Canvas width"},{name:"height",type:"number | string",default:"400",description:"Canvas height"},{name:"tools",type:"DrawingTool[]",description:"Available tools"},{name:"colors",type:"string[]",description:"Color palette"},{name:"brushSizes",type:"number[]",description:"Brush sizes"},{name:"showToolbar",type:"boolean",default:"true",description:"Show toolbar"},{name:"undoSteps",type:"number",default:"50",description:"Max undo steps"},{name:"disabled",type:"boolean",default:"false",description:"Disabled state"}],r=[{title:"Drawing Canvas",description:"Draw freeform",code:`<NiceDrawingCanvas
|
|
2
|
+
value={drawing}
|
|
3
|
+
onChange={setDrawing}
|
|
4
|
+
width={800}
|
|
5
|
+
height={600}
|
|
6
|
+
tools={['brush', 'eraser', 'line', 'rectangle']}
|
|
7
|
+
showToolbar
|
|
8
|
+
/>`}],c={keyboard:["Tab through tools","Shortcuts for tools"],aria:["Drawing canvas","Tool descriptions"]},l=["NiceSignature","NiceImageEditor"],d={$schema:e,name:t,description:n,category:s,since:a,status:o,props:i,examples:r,accessibility:c,seeAlso:l};exports.$schema=e;exports.accessibility=c;exports.category=s;exports.default=d;exports.description=n;exports.examples=r;exports.name=t;exports.props=i;exports.seeAlso=l;exports.since=a;exports.status=o;
|