@nice2dev/ui 1.3.7 → 1.3.8

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.
Files changed (59) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/dist/NiceCodeEditor-B5YtKZOe.js +1222 -0
  3. package/dist/NiceCodeEditor-D0QZW88r.cjs +268 -0
  4. package/dist/NiceColorPicker-Bzvei7D6.cjs +1 -0
  5. package/dist/NiceColorPicker-DzzJhSXT.js +552 -0
  6. package/dist/NiceDataGrid-BSaBBoNr.js +2267 -0
  7. package/dist/NiceDataGrid-C_E6zIGS.cjs +10 -0
  8. package/dist/NiceForm-D2P6XuaT.cjs +1 -0
  9. package/dist/NiceForm-_kaB4Ikt.js +5017 -0
  10. package/dist/NiceHtmlEditor-CBCJdjmy.cjs +10 -0
  11. package/dist/NiceHtmlEditor-DfkdSxL3.js +901 -0
  12. package/dist/NiceLoginForm-BFvbroGJ.js +820 -0
  13. package/dist/NiceLoginForm-FGf32sro.cjs +1 -0
  14. package/dist/NiceMention-CctjYriS.cjs +430 -0
  15. package/dist/NiceMention-umOghLCf.js +11653 -0
  16. package/dist/NiceModal-BRVzjuUN.cjs +1 -0
  17. package/dist/NiceModal-CU9FqzIH.js +83 -0
  18. package/dist/NiceModuleLifecyclePanel-DQT_forg.js +7404 -0
  19. package/dist/NiceModuleLifecyclePanel-DtOlPChV.cjs +1 -0
  20. package/dist/NicePagination-CK4ZJgu4.cjs +1 -0
  21. package/dist/NicePagination-flHgG-FT.js +200 -0
  22. package/dist/NicePivotGrid-99ZeQ9j6.js +1180 -0
  23. package/dist/NicePivotGrid-CpsBxUhq.cjs +152 -0
  24. package/dist/NiceSavedQueryPanel-Br1LQR7u.js +5311 -0
  25. package/dist/NiceSavedQueryPanel-C4SU6W22.cjs +586 -0
  26. package/dist/NiceScheduler-CeYqH0Ux.cjs +5 -0
  27. package/dist/NiceScheduler-yTpVRxfe.js +1710 -0
  28. package/dist/NiceSelect-C3NqDYwR.js +495 -0
  29. package/dist/NiceSelect-CTwSAb8G.cjs +1 -0
  30. package/dist/charts-B0tHOpJ7.cjs +768 -0
  31. package/dist/charts-C3u-VyJj.js +5019 -0
  32. package/dist/charts.cjs +1 -1
  33. package/dist/charts.mjs +1 -1
  34. package/dist/core-lazy-Bglo0hFt.cjs +1 -0
  35. package/dist/core-lazy-CRBgQkQl.js +351 -0
  36. package/dist/data.cjs +1 -1
  37. package/dist/data.mjs +3 -3
  38. package/dist/devops-Bzp3ZqZ3.cjs +18 -0
  39. package/dist/devops-fLElpPvD.js +9128 -0
  40. package/dist/devops.cjs +1 -1
  41. package/dist/devops.mjs +1 -1
  42. package/dist/editors.cjs +1 -1
  43. package/dist/editors.d.ts +5 -0
  44. package/dist/editors.mjs +7 -7
  45. package/dist/feedback.cjs +1 -1
  46. package/dist/feedback.mjs +3 -3
  47. package/dist/index.cjs +251 -251
  48. package/dist/index.d.ts +76 -9
  49. package/dist/index.mjs +15550 -15248
  50. package/dist/lazy.cjs +1 -1
  51. package/dist/lazy.mjs +18 -18
  52. package/dist/navigation.cjs +1 -1
  53. package/dist/navigation.d.ts +42 -3
  54. package/dist/navigation.mjs +2 -2
  55. package/dist/no-code-Bt7SWzsN.js +8318 -0
  56. package/dist/no-code-DnT061qn.cjs +331 -0
  57. package/dist/no-code.cjs +1 -1
  58. package/dist/no-code.mjs +1 -1
  59. package/package.json +4 -4
@@ -0,0 +1 @@
1
+ "use strict";const e=require("react/jsx-runtime"),s=require("@nice2dev/ui-core"),o=require("react"),q=require("react-dom"),T=({open:t,onClose:a,title:c,size:f="md",children:y,footer:i,closeOnOverlay:x=!0,closeOnEscape:N=!0,fullscreenable:h,zIndex:d,className:_,style:v,displayStyle:u,testId:b,"data-testid":j})=>{const{t:n}=s.useNiceTranslation(),p=o.useContext(s.NiceThemeContext),m=o.useRef(null),[r,C]=o.useState(!1),g=s.useComponentDisplayStyle("modal",u),F=s.useComponentDisplayClass("modal",u);if(s.useOverlayFocus(m,{open:t,onClose:a,closeOnEscape:N}),o.useEffect(()=>(t?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[t]),!t||typeof document>"u")return null;const R=e.jsx("div",{className:"nice-modal-overlay",role:"presentation",style:d?{zIndex:d}:void 0,onClick:l=>{l.stopPropagation(),x&&l.target===l.currentTarget&&a()},children:e.jsxs("div",{ref:m,className:`nice-modal nice-modal--${r?"full":f} nice-modal--ds-${F} ${_||""}`,style:{...g,...v},role:"dialog","aria-modal":"true","aria-label":c,"data-testid":j??b,children:[c&&e.jsxs("div",{className:"nice-modal__header",children:[e.jsx("h2",{className:"nice-modal__title",children:c}),e.jsxs("div",{className:"nice-modal__header-actions",children:[h&&e.jsx("button",{type:"button",className:"nice-modal__fullscreen",onClick:()=>C(l=>!l),"aria-label":r?n("controls.exitFullscreen","Exit fullscreen"):n("controls.fullscreen","Fullscreen"),children:e.jsx(s.NiceIcon,{name:r?"collapse":"expand",size:16})}),e.jsx("button",{type:"button",className:"nice-modal__close",onClick:a,"aria-label":n("controls.close","Close"),children:e.jsx(s.NiceIcon,{name:"close",size:24})})]})]}),e.jsx("div",{className:"nice-modal__body",children:y}),i&&e.jsx("div",{className:"nice-modal__footer",children:i})]})});return q.createPortal(R,p?.portalTarget??document.body)};exports.NiceModal=T;
@@ -0,0 +1,83 @@
1
+ import { jsx as e, jsxs as c } from "react/jsx-runtime";
2
+ import { useNiceTranslation as w, NiceThemeContext as $, useComponentDisplayStyle as j, useComponentDisplayClass as D, useOverlayFocus as E, NiceIcon as u } from "@nice2dev/ui-core";
3
+ import { useContext as P, useRef as R, useState as S, useEffect as z } from "react";
4
+ import { createPortal as I } from "react-dom";
5
+ const B = ({
6
+ open: o,
7
+ onClose: s,
8
+ title: t,
9
+ size: f = "md",
10
+ children: y,
11
+ footer: r,
12
+ closeOnOverlay: p = !0,
13
+ closeOnEscape: h = !0,
14
+ fullscreenable: N,
15
+ zIndex: i,
16
+ className: _,
17
+ style: v,
18
+ displayStyle: d,
19
+ testId: b,
20
+ "data-testid": C
21
+ }) => {
22
+ const { t: a } = w(), x = P($), m = R(null), [n, g] = S(!1), F = j("modal", d), T = D("modal", d);
23
+ if (E(m, { open: o, onClose: s, closeOnEscape: h }), z(() => (o ? document.body.style.overflow = "hidden" : document.body.style.overflow = "", () => {
24
+ document.body.style.overflow = "";
25
+ }), [o]), !o || typeof document > "u")
26
+ return null;
27
+ const k = /* @__PURE__ */ e(
28
+ "div",
29
+ {
30
+ className: "nice-modal-overlay",
31
+ role: "presentation",
32
+ style: i ? { zIndex: i } : void 0,
33
+ onClick: (l) => {
34
+ l.stopPropagation(), p && l.target === l.currentTarget && s();
35
+ },
36
+ children: /* @__PURE__ */ c(
37
+ "div",
38
+ {
39
+ ref: m,
40
+ className: `nice-modal nice-modal--${n ? "full" : f} nice-modal--ds-${T} ${_ || ""}`,
41
+ style: { ...F, ...v },
42
+ role: "dialog",
43
+ "aria-modal": "true",
44
+ "aria-label": t,
45
+ "data-testid": C ?? b,
46
+ children: [
47
+ t && /* @__PURE__ */ c("div", { className: "nice-modal__header", children: [
48
+ /* @__PURE__ */ e("h2", { className: "nice-modal__title", children: t }),
49
+ /* @__PURE__ */ c("div", { className: "nice-modal__header-actions", children: [
50
+ N && /* @__PURE__ */ e(
51
+ "button",
52
+ {
53
+ type: "button",
54
+ className: "nice-modal__fullscreen",
55
+ onClick: () => g((l) => !l),
56
+ "aria-label": n ? a("controls.exitFullscreen", "Exit fullscreen") : a("controls.fullscreen", "Fullscreen"),
57
+ children: /* @__PURE__ */ e(u, { name: n ? "collapse" : "expand", size: 16 })
58
+ }
59
+ ),
60
+ /* @__PURE__ */ e(
61
+ "button",
62
+ {
63
+ type: "button",
64
+ className: "nice-modal__close",
65
+ onClick: s,
66
+ "aria-label": a("controls.close", "Close"),
67
+ children: /* @__PURE__ */ e(u, { name: "close", size: 24 })
68
+ }
69
+ )
70
+ ] })
71
+ ] }),
72
+ /* @__PURE__ */ e("div", { className: "nice-modal__body", children: y }),
73
+ r && /* @__PURE__ */ e("div", { className: "nice-modal__footer", children: r })
74
+ ]
75
+ }
76
+ )
77
+ }
78
+ );
79
+ return I(k, x?.portalTarget ?? document.body);
80
+ };
81
+ export {
82
+ B as N
83
+ };