@nice2dev/ui 1.2.0 → 1.2.2

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 (229) hide show
  1. package/CHANGELOG.md +150 -0
  2. package/dist/NiceApiExplorer.doc-CFJndg5h.js +25 -0
  3. package/dist/NiceApiExplorer.doc-TEx67kV5.cjs +1 -0
  4. package/dist/NiceBPMNDesigner.doc-6lK1pXRq.js +32 -0
  5. package/dist/NiceBPMNDesigner.doc-BY8t7qOi.cjs +8 -0
  6. package/dist/NiceBackupDiffViewer.doc-CYvOeX19.js +25 -0
  7. package/dist/NiceBackupDiffViewer.doc-ChQaZCg1.cjs +1 -0
  8. package/dist/NiceBackupList.doc-BdQCw0_D.cjs +1 -0
  9. package/dist/NiceBackupList.doc-BwjIAoqz.js +25 -0
  10. package/dist/NiceBackupRestoreDialog.doc-B2iiqTps.cjs +1 -0
  11. package/dist/NiceBackupRestoreDialog.doc-DuXSGJiD.js +25 -0
  12. package/dist/NiceBackupScheduler.doc-BpY45181.js +31 -0
  13. package/dist/NiceBackupScheduler.doc-ByeL3iH1.cjs +7 -0
  14. package/dist/NiceBackupStatusBadge.doc-BA3dYgiW.cjs +1 -0
  15. package/dist/NiceBackupStatusBadge.doc-CxwkVarP.js +25 -0
  16. package/dist/NiceBackupTagEditor.doc-Bej1KHco.cjs +7 -0
  17. package/dist/NiceBackupTagEditor.doc-CNy4uNws.js +31 -0
  18. package/dist/NiceBottomSheet.doc-keq-Fzlz.cjs +8 -0
  19. package/dist/NiceBottomSheet.doc-v-UPUKQk.js +32 -0
  20. package/dist/NiceBranchManager.doc-BTyRjX7X.cjs +6 -0
  21. package/dist/NiceBranchManager.doc-Cz4SyEqE.js +30 -0
  22. package/dist/NiceButton-3AcJJ15c.cjs +1 -0
  23. package/dist/NiceButton-vkI07DP0.js +88 -0
  24. package/dist/NiceCodeEditor-C43xFG8v.cjs +260 -0
  25. package/dist/NiceCodeEditor-CspuYLh6.js +1174 -0
  26. package/dist/NiceCodeEditor-VGIDWSkS.js +1181 -0
  27. package/dist/NiceCodeEditor-qX39PSnQ.cjs +260 -0
  28. package/dist/NiceColorPicker-CQhhjZ8w.cjs +1 -0
  29. package/dist/NiceColorPicker-Cbop7VMu.js +491 -0
  30. package/dist/NiceConnectorConfigForm.doc-BKrDuhXw.cjs +7 -0
  31. package/dist/NiceConnectorConfigForm.doc-BsHeXz3M.js +31 -0
  32. package/dist/NiceDataBranchGraph.doc-Axidz41W.js +29 -0
  33. package/dist/NiceDataBranchGraph.doc-sjLmrrtE.cjs +5 -0
  34. package/dist/NiceDataBranchManager.doc-B1-Rp2X4.cjs +6 -0
  35. package/dist/NiceDataBranchManager.doc-GUqfTFvW.js +30 -0
  36. package/dist/NiceDataConflictResolver.doc-CjQryrTu.cjs +5 -0
  37. package/dist/NiceDataConflictResolver.doc-L-TcnQMX.js +29 -0
  38. package/dist/NiceDataDiffViewer.doc-BzGrf0U-.cjs +6 -0
  39. package/dist/NiceDataDiffViewer.doc-goxhSldH.js +30 -0
  40. package/dist/NiceDataGrid-BDEIbuBS.js +2218 -0
  41. package/dist/NiceDataGrid-CS5aB-EN.cjs +10 -0
  42. package/dist/NiceDataGrid-CrD4HPlO.cjs +10 -0
  43. package/dist/NiceDataGrid-Dfg1DVbU.js +2224 -0
  44. package/dist/NiceDataMapper.doc-QmnmnvVq.js +30 -0
  45. package/dist/NiceDataMapper.doc-ytGVtYVr.cjs +6 -0
  46. package/dist/NiceDataMergeBuilder.doc-BcmzKxh2.cjs +6 -0
  47. package/dist/NiceDataMergeBuilder.doc-BvYa4aUJ.js +30 -0
  48. package/dist/NiceDataSnapshot.doc-C73K1biG.cjs +6 -0
  49. package/dist/NiceDataSnapshot.doc-hU7wnOzM.js +30 -0
  50. package/dist/NiceDesktopViews.doc-DJjYlyP2.cjs +1 -0
  51. package/dist/NiceDesktopViews.doc-ly-VUAJj.js +25 -0
  52. package/dist/NiceDeviceControlCard.doc-BZIo92-w.cjs +1 -0
  53. package/dist/NiceDeviceControlCard.doc-DIzZcW9L.js +25 -0
  54. package/dist/NiceDocumentViewer-B9VIVKyw.js +726 -0
  55. package/dist/NiceDocumentViewer-CDXAmPp7.cjs +180 -0
  56. package/dist/NiceDocumentationViewer.doc-BSNGa7a_.js +25 -0
  57. package/dist/NiceDocumentationViewer.doc-CrwlvPFg.cjs +1 -0
  58. package/dist/NiceEnergyChart.doc-DW-jllDV.cjs +1 -0
  59. package/dist/NiceEnergyChart.doc-DnEehTff.js +25 -0
  60. package/dist/NiceFeatureGate.doc-DN17uS_B.cjs +3 -0
  61. package/dist/NiceFeatureGate.doc-DNfFSRrh.js +27 -0
  62. package/dist/NiceForm-BcN4p2kG.cjs +1 -0
  63. package/dist/NiceForm-CISJyzoW.cjs +1 -0
  64. package/dist/NiceForm-DmH6k1b_.js +4775 -0
  65. package/dist/NiceForm-tIXS-M6b.js +4770 -0
  66. package/dist/NiceFormItem.doc-BJwEnDz2.js +36 -0
  67. package/dist/NiceFormItem.doc-Ck3PgaPD.cjs +12 -0
  68. package/dist/NiceGantt-CHnq-n8f.cjs +1 -0
  69. package/dist/NiceGantt-CTbqCuwv.cjs +1 -0
  70. package/dist/NiceGantt-CX3jVNaF.js +330 -0
  71. package/dist/NiceGantt-Dao7pN9z.js +328 -0
  72. package/dist/NiceGantt.doc-B6YZcJvG.cjs +11 -0
  73. package/dist/NiceGantt.doc-DsI1QXly.js +48 -0
  74. package/dist/NiceGitBlame.doc-BQ2KvGkD.js +30 -0
  75. package/dist/NiceGitBlame.doc-DuTSjZVN.cjs +6 -0
  76. package/dist/NiceGitDiffViewer.doc-D24AGos_.js +30 -0
  77. package/dist/NiceGitDiffViewer.doc-D9FVquBC.cjs +6 -0
  78. package/dist/NiceGitGraph.doc-C-8VGMIz.js +29 -0
  79. package/dist/NiceGitGraph.doc-eRvTmefl.cjs +5 -0
  80. package/dist/NiceGitHooks.doc-DCTVw7HX.cjs +5 -0
  81. package/dist/NiceGitHooks.doc-OCFj5w6v.js +29 -0
  82. package/dist/NiceHtmlEditor-DUwcqj5N.cjs +10 -0
  83. package/dist/NiceHtmlEditor-DeK0Of98.js +883 -0
  84. package/dist/NiceHtmlEditor-DiAphF1k.js +889 -0
  85. package/dist/NiceHtmlEditor-DvVxl4Fu.cjs +10 -0
  86. package/dist/NiceInstanceMonitor.doc-BSDZp5xa.js +31 -0
  87. package/dist/NiceInstanceMonitor.doc-HVbLufnh.cjs +7 -0
  88. package/dist/NiceLocaleManager.doc-CbVHDEWu.js +25 -0
  89. package/dist/NiceLocaleManager.doc-XH6hMW0Z.cjs +1 -0
  90. package/dist/NiceLockButton.doc-BMhSj3TB.cjs +1 -0
  91. package/dist/NiceLockButton.doc-DvHGhcfm.js +25 -0
  92. package/dist/NiceLoginForm-CHXbz0eu.js +747 -0
  93. package/dist/NiceLoginForm-DQe77Isv.js +747 -0
  94. package/dist/NiceLoginForm-NBCo-DUZ.cjs +1 -0
  95. package/dist/NiceLoginForm-ix6J1adA.cjs +1 -0
  96. package/dist/NiceLoginForm.css +1 -1
  97. package/dist/NiceMAM.doc-CsQ57saR.cjs +8 -0
  98. package/dist/NiceMAM.doc-hjW7buTH.js +32 -0
  99. package/dist/NiceMention--3P3vO-W.cjs +430 -0
  100. package/dist/NiceMention-Co2cqkVM.js +11316 -0
  101. package/dist/NiceMention-DKhk3xdM.js +11321 -0
  102. package/dist/NiceMention-wp1AJ5oh.cjs +430 -0
  103. package/dist/NiceMention.css +1 -1
  104. package/dist/NiceModal-BbQwiEOp.cjs +1 -0
  105. package/dist/NiceModal-DQEfTcnZ.js +85 -0
  106. package/dist/NiceModuleLifecyclePanel-22CEEVbA.cjs +1 -0
  107. package/dist/NiceModuleLifecyclePanel-BCd9Wv5Y.js +6825 -0
  108. package/dist/NiceModuleLifecyclePanel-DV3F_QdI.cjs +1 -0
  109. package/dist/NiceModuleLifecyclePanel-gaZkIEtK.js +6825 -0
  110. package/dist/NiceModuleLifecyclePanel.css +1 -1
  111. package/dist/NiceNetworkDiscoveryPanel.doc-B0RtGaS3.js +25 -0
  112. package/dist/NiceNetworkDiscoveryPanel.doc-BFgFZI5G.cjs +1 -0
  113. package/dist/NicePagination-B3nZDZem.js +165 -0
  114. package/dist/NicePagination-B8rg1Y67.cjs +1 -0
  115. package/dist/NicePagination-BFGt1v0a.js +165 -0
  116. package/dist/NicePagination-DltL3-Sz.cjs +1 -0
  117. package/dist/NicePipelineEditor.doc-CjqDKe2x.js +29 -0
  118. package/dist/NicePipelineEditor.doc-DZ0pTVTp.cjs +5 -0
  119. package/dist/NicePipelineMonitor.doc-C88-TagI.cjs +5 -0
  120. package/dist/NicePipelineMonitor.doc-CFtH4XJx.js +29 -0
  121. package/dist/NicePivotGrid-BD87Na7P.js +1163 -0
  122. package/dist/NicePivotGrid-BPmnvbPQ.cjs +152 -0
  123. package/dist/NicePivotGrid-BaZa2YZW.js +1157 -0
  124. package/dist/NicePivotGrid-DyOPhPO8.cjs +152 -0
  125. package/dist/NiceRoomGrid.doc-DJPVUQVg.cjs +8 -0
  126. package/dist/NiceRoomGrid.doc-DLHJS_Wb.js +32 -0
  127. package/dist/NiceSavedQueryPanel-BC84uRfh.cjs +586 -0
  128. package/dist/NiceSavedQueryPanel-BSTiZvFg.js +5130 -0
  129. package/dist/NiceSavedQueryPanel-CMfcODIO.js +5120 -0
  130. package/dist/NiceSavedQueryPanel-DrR3sw4T.cjs +586 -0
  131. package/dist/NiceSavedQueryPanel.css +1 -1
  132. package/dist/NiceSceneBar.doc-09sc3yuF.cjs +1 -0
  133. package/dist/NiceSceneBar.doc-DLePMuVU.js +25 -0
  134. package/dist/NiceSceneSelector.doc-CPzCAy-d.cjs +7 -0
  135. package/dist/NiceSceneSelector.doc-FCLZvPc0.js +31 -0
  136. package/dist/NiceScheduler-BAJRzFQN.js +1690 -0
  137. package/dist/NiceScheduler-DvxJ8N0I.js +1698 -0
  138. package/dist/NiceScheduler-TIksdF0k.cjs +5 -0
  139. package/dist/NiceScheduler-dJ7gHDv7.cjs +5 -0
  140. package/dist/NiceSchedulerViews.doc-C9opZpgg.cjs +1 -0
  141. package/dist/NiceSchedulerViews.doc-Dy7ZH1iL.js +25 -0
  142. package/dist/NiceSelect-CZR8Zu_k.js +420 -0
  143. package/dist/NiceSelect-DIKGbaJo.cjs +1 -0
  144. package/dist/NiceSensorGaugePanel.doc-BHirbWLn.cjs +8 -0
  145. package/dist/NiceSensorGaugePanel.doc-DjKmooI6.js +32 -0
  146. package/dist/NiceSpotlight.doc-BVZFfDVI.cjs +10 -0
  147. package/dist/NiceSpotlight.doc-JqwkzrEm.js +34 -0
  148. package/dist/NiceStateDesigner.doc-CfnwiwfU.js +29 -0
  149. package/dist/NiceStateDesigner.doc-DV4zEC50.cjs +5 -0
  150. package/dist/NiceStepper.doc-5VjaLM6r.js +31 -0
  151. package/dist/NiceStepper.doc-f8lYpr33.cjs +7 -0
  152. package/dist/NiceTaskInbox.doc-CHrxthqp.js +32 -0
  153. package/dist/NiceTaskInbox.doc-CdCTfgBq.cjs +8 -0
  154. package/dist/NiceTestBuilder.doc-BoBzLfa0.js +30 -0
  155. package/dist/NiceTestBuilder.doc-Cj1fNTvk.cjs +6 -0
  156. package/dist/NiceTranscoder.doc-Dnirl3wg.cjs +7 -0
  157. package/dist/NiceTranscoder.doc-cInCYZh7.js +31 -0
  158. package/dist/NiceVideoAnnotator.doc-C1iEi7OM.cjs +7 -0
  159. package/dist/NiceVideoAnnotator.doc-C8zyfKH_.js +31 -0
  160. package/dist/NiceVideoEditor.doc-C6mhEb-q.cjs +7 -0
  161. package/dist/NiceVideoEditor.doc-lrwmKjqj.js +31 -0
  162. package/dist/NiceWindow-CWN8OCHF.js +2109 -0
  163. package/dist/NiceWindow-Dd8qjkIW.cjs +1 -0
  164. package/dist/NiceWindow.css +1 -1
  165. package/dist/charts-Bo2WAI5T.cjs +768 -0
  166. package/dist/charts-BpELGDXh.cjs +768 -0
  167. package/dist/charts-ByrdMeQP.js +4767 -0
  168. package/dist/charts-M6LuVI7F.js +4776 -0
  169. package/dist/charts.cjs +1 -1
  170. package/dist/charts.css +1 -1
  171. package/dist/charts.d.ts +28 -46
  172. package/dist/charts.mjs +1 -1
  173. package/dist/core-B8eBUE4m.js +438 -0
  174. package/dist/core-lBFqvT0V.cjs +1 -0
  175. package/dist/core-lazy-Bh2yg4Et.js +351 -0
  176. package/dist/core-lazy-CkWKjfc6.cjs +1 -0
  177. package/dist/core-lazy-Ctin_LwS.cjs +1 -0
  178. package/dist/core-lazy-iDiropM6.js +351 -0
  179. package/dist/data-branching-BgIAw01q.cjs +1 -0
  180. package/dist/data-branching-Dak1_ZKR.cjs +1 -0
  181. package/dist/data-branching-DiLAO4Qt.js +6386 -0
  182. package/dist/data-branching-bvB9K6KS.js +6386 -0
  183. package/dist/data-branching.cjs +1 -1
  184. package/dist/data-branching.mjs +1 -1
  185. package/dist/data.cjs +1 -1
  186. package/dist/data.d.ts +22 -18
  187. package/dist/data.mjs +3 -3
  188. package/dist/devops-Bp-_aA-9.js +8682 -0
  189. package/dist/devops-CXBSjnyX.cjs +17 -0
  190. package/dist/devops-DkVluHBp.cjs +17 -0
  191. package/dist/devops-zsMUueTd.js +8648 -0
  192. package/dist/devops.cjs +1 -1
  193. package/dist/devops.d.ts +3 -3
  194. package/dist/devops.mjs +1 -1
  195. package/dist/editors.cjs +1 -1
  196. package/dist/editors.d.ts +100 -38
  197. package/dist/editors.mjs +8 -8
  198. package/dist/feedback.cjs +1 -1
  199. package/dist/feedback.d.ts +71 -2
  200. package/dist/feedback.mjs +10 -9
  201. package/dist/index.cjs +263 -263
  202. package/dist/index.css +1 -1
  203. package/dist/index.d.ts +641 -253
  204. package/dist/index.mjs +26438 -26260
  205. package/dist/injectStyleOnce-BzC_BCs_.js +9 -0
  206. package/dist/injectStyleOnce-DeWaxcdf.cjs +1 -0
  207. package/dist/lazy.cjs +1 -1
  208. package/dist/lazy.d.ts +9 -7
  209. package/dist/lazy.mjs +51 -51
  210. package/dist/navigation.cjs +1 -1
  211. package/dist/navigation.css +1 -0
  212. package/dist/navigation.d.ts +99 -43
  213. package/dist/navigation.mjs +504 -547
  214. package/dist/no-code-BNFk_BDO.js +8275 -0
  215. package/dist/no-code-CFdTp543.cjs +331 -0
  216. package/dist/no-code-DiTEnuRv.js +8288 -0
  217. package/dist/no-code-wG9c0z_T.cjs +331 -0
  218. package/dist/no-code.cjs +1 -1
  219. package/dist/no-code.css +1 -1
  220. package/dist/no-code.mjs +1 -1
  221. package/dist/overlays.cjs +1 -1
  222. package/dist/overlays.d.ts +12 -6
  223. package/dist/overlays.mjs +1 -1
  224. package/dist/pickerCommons-BCRiHDE_.cjs +1 -0
  225. package/dist/pickerCommons-CMxFt9SW.js +548 -0
  226. package/dist/pickerCommons-Dc_hlz-e.cjs +1 -0
  227. package/dist/pickerCommons-DkumQ3KE.js +548 -0
  228. package/dist/style.css +12 -9
  229. package/package.json +3 -3
@@ -0,0 +1,10 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),m=require("@nice2dev/ui-core"),i=require("react"),v=require("./NiceButton-3AcJJ15c.cjs"),it=require("./devops-CXBSjnyX.cjs"),st=require("./NiceSelect-DIKGbaJo.cjs"),ke=require("./NiceColorPicker-CQhhjZ8w.cjs");function ye(u){const t=u.trim().toLowerCase();return t.startsWith("http://")||t.startsWith("https://")||t.startsWith("/")||t.startsWith("./")||t.startsWith("../")?!0:!(t.startsWith("javascript:")||t.startsWith("vbscript:")||t.startsWith("data:text"))}function ve(u){const t=typeof window<"u"?window.getSelection():null;if(!t||t.rangeCount===0)return null;const R=t.getRangeAt(0);return u.contains(R.commonAncestorContainer)?R.cloneRange():null}function je(u){const t=typeof window<"u"?window.getSelection():null;!t||!u||(t.removeAllRanges(),t.addRange(u))}const at=[{target:".nice-htmleditor",titleKey:"tutorial.htmlEditor.intro.title",title:"Rich text editor",contentKey:"tutorial.htmlEditor.intro.content",content:"Format text with the toolbar, insert links, images and tables, and switch to HTML or Markdown source when you need it.",placement:"auto"}],lt=["bold","italic","underline","strikethrough","h1","h2","h3","ul","ol","blockquote","hr","link","unlink","image","table","code","alignLeft","alignCenter","alignRight","fontSize","fontColor","undo","redo","clear","findReplace","emoji","source","fullscreen","markdown"],l=u=>r.jsx(m.NiceIcon,{name:u,size:16}),ct={bold:r.jsx("strong",{style:{fontFamily:"serif"},children:"B"}),italic:r.jsx("em",{style:{fontFamily:"serif"},children:"I"}),underline:r.jsx("span",{style:{textDecoration:"underline"},children:"U"}),strikethrough:r.jsx("span",{style:{textDecoration:"line-through"},children:"S"}),h1:"H1",h2:"H2",h3:"H3",ul:l("list"),ol:l("list-ordered"),link:l("link"),unlink:l("unlink"),undo:l("reply"),redo:l("forward"),clear:l("trash"),table:l("table"),image:l("image"),code:l("code"),markdown:"MD",blockquote:l("quote"),hr:l("minus"),subscript:"X₂",superscript:"X²",indent:l("indent"),outdent:l("outdent"),alignLeft:l("align-left"),alignCenter:l("align-center"),alignRight:l("align-right"),alignJustify:l("align-justify"),fullscreen:l("expand"),removeFormat:l("eraser"),print:l("printer"),source:l("terminal"),emoji:l("smile"),findReplace:l("search"),fontSize:l("type"),fontColor:l("palette")},dt=[{value:"1",label:"8pt"},{value:"2",label:"10pt"},{value:"3",label:"12pt"},{value:"4",label:"14pt"},{value:"5",label:"18pt"},{value:"6",label:"24pt"},{value:"7",label:"36pt"}],ut=[{label:"Faces",emojis:["😀","😂","😊","😍","🤔","😢","😎","🥳","😤","🤯","🥰","😴"]},{label:"Hands",emojis:["👍","👎","👏","🤝","✌️","🤞","💪","🙌","👋","🤙"]},{label:"Symbols",emojis:["❤️","⭐","🔥","✅","❌","⚡","💡","📌","🎯","🏆","🎉","💬"]},{label:"Arrows",emojis:["➡️","⬅️","⬆️","⬇️","↩️","🔄","▶️","⏸️","⏹️","⏩"]}];function mt(u){let t=u;return t=t.replace(/<h1[^>]*>(.*?)<\/h1>/gi,`# $1
2
+ `),t=t.replace(/<h2[^>]*>(.*?)<\/h2>/gi,`## $1
3
+ `),t=t.replace(/<h3[^>]*>(.*?)<\/h3>/gi,`### $1
4
+ `),t=t.replace(/<strong[^>]*>(.*?)<\/strong>/gi,"**$1**"),t=t.replace(/<b[^>]*>(.*?)<\/b>/gi,"**$1**"),t=t.replace(/<em[^>]*>(.*?)<\/em>/gi,"*$1*"),t=t.replace(/<i[^>]*>(.*?)<\/i>/gi,"*$1*"),t=t.replace(/<code[^>]*>(.*?)<\/code>/gi,"`$1`"),t=t.replace(/<pre[^>]*>(.*?)<\/pre>/gis,"```\n$1\n```\n"),t=t.replace(/<br\s*\/?>/gi,`
5
+ `),t=t.replace(/<li[^>]*>(.*?)<\/li>/gi,`- $1
6
+ `),t=t.replace(/<\/?(?:ul|ol|p|div)[^>]*>/gi,`
7
+ `),t=t.replace(/<[^>]+>/g,""),t=t.replace(/\n{3,}/g,`
8
+
9
+ `),t.trim()}function ft(u){let t=u;return t=t.replace(/^### (.+)$/gm,"<h3>$1</h3>"),t=t.replace(/^## (.+)$/gm,"<h2>$1</h2>"),t=t.replace(/^# (.+)$/gm,"<h1>$1</h1>"),t=t.replace(/\*\*(.+?)\*\*/g,"<strong>$1</strong>"),t=t.replace(/\*(.+?)\*/g,"<em>$1</em>"),t=t.replace(/`([^`]+)`/g,"<code>$1</code>"),t=t.replace(/```\n?([\s\S]*?)\n?```/g,"<pre>$1</pre>"),t=t.replace(/^- (.+)$/gm,"<li>$1</li>"),t=t.replace(/(<li>.*<\/li>)/gs,"<ul>$1</ul>"),t=t.replace(/\n/g,"<br>"),t}const pt=({value:u,defaultValue:t,onChange:R,placeholder:Se,height:I=200,toolbar:we=lt,readOnly:g,onImageUpload:N,mentionTrigger:C,mentionSuggestions:te,onMentionSearch:ne,onFileDrop:M,pasteCleanup:re=!0,maxLength:j=0,showWordCount:oe=!1,templates:O,label:ie,error:E,helperText:se,required:Te,disabled:b,size:He="md",id:ae,className:Ne,style:Me,accessMode:_e,tutorial:Le})=>{const{t:d}=m.useNiceTranslation(),{prompt:B,element:Re}=it.useNiceDialogs(),F=m.useNiceAccessMode(_e,ae),Ee=F==="hidden";F==="disabled"&&(b=!0),F==="readOnly"&&(g=!0);const le=m.useControlId(ae),[p,c]=m.useControllableState({value:u,defaultValue:t,fallbackValue:"",onChange:R,componentName:"NiceHtmlEditor"}),f=i.useRef(null),[ze]=i.useState(()=>({__html:p})),W=i.useRef(p);W.current=p;const $e=i.useCallback(e=>{f.current=e,e&&e.innerHTML!==W.current&&(e.innerHTML=W.current)},[]);i.useLayoutEffect(()=>{const e=f.current;e&&e.innerHTML!==p&&(e.innerHTML=p)},[p]);const ce=i.useRef(null),De=i.useRef(null),[S,K]=i.useState(!1),[A,de]=i.useState(""),[w,q]=i.useState(!1),[P,ue]=i.useState(""),[U,z]=i.useState(!1),[me,Ie]=i.useState(""),[Q,X]=i.useState(0),[J,Oe]=i.useState(!1),[fe,Be]=i.useState("#000000"),[pe,Fe]=i.useState("#ffff00"),[he,$]=i.useState(0),[We,Ke]=i.useState(0),[V,G]=i.useState(!1),[h,Ae]=i.useState(""),[_,qe]=i.useState(""),[Y,xe]=i.useState(!1),[ge,be]=i.useState(!1),x=i.useCallback((e,n)=>{if(g||b)return;if(e==="markdown"){S?(c(ft(A)),K(!1)):(de(mt(p)),K(!0),q(!1));return}if(e==="source"){w?(c(P),q(!1)):(ue(p),q(!0),K(!1));return}const s=f.current;if(s){if(e==="fullscreen"){Oe(o=>!o);return}if(e==="emoji"){xe(o=>!o);return}if(e==="findReplace"){G(o=>!o);return}if(e==="image"){if(N)ce.current?.click();else{const o=ve(s);B({title:d("htmlEditor.imageUrlPrompt","Image URL"),inputType:"url",placeholder:"https://"}).then(a=>{a&&ye(a)&&(s.focus(),je(o),document.execCommand("insertImage",!1,a),c(m.sanitizeHtml(s.innerHTML)))})}return}switch(s.focus(),e){case"bold":document.execCommand("bold");break;case"italic":document.execCommand("italic");break;case"underline":document.execCommand("underline");break;case"strikethrough":document.execCommand("strikeThrough");break;case"h1":document.execCommand("formatBlock",!1,"h1");break;case"h2":document.execCommand("formatBlock",!1,"h2");break;case"h3":document.execCommand("formatBlock",!1,"h3");break;case"ul":document.execCommand("insertUnorderedList");break;case"ol":document.execCommand("insertOrderedList");break;case"blockquote":document.execCommand("formatBlock",!1,"blockquote");break;case"hr":document.execCommand("insertHorizontalRule");break;case"subscript":document.execCommand("subscript");break;case"superscript":document.execCommand("superscript");break;case"indent":document.execCommand("indent");break;case"outdent":document.execCommand("outdent");break;case"alignLeft":document.execCommand("justifyLeft");break;case"alignCenter":document.execCommand("justifyCenter");break;case"alignRight":document.execCommand("justifyRight");break;case"alignJustify":document.execCommand("justifyFull");break;case"removeFormat":document.execCommand("removeFormat");break;case"print":window.print();return;case"link":{const o=ve(s);B({title:d("htmlEditor.linkUrlPrompt","Link URL"),inputType:"url",placeholder:"https://"}).then(a=>{a&&ye(a)&&(s.focus(),je(o),document.execCommand("createLink",!1,a),c(m.sanitizeHtml(s.innerHTML)),$(s.textContent?.length??0))});return}case"unlink":document.execCommand("unlink");break;case"undo":document.execCommand("undo");break;case"redo":document.execCommand("redo");break;case"clear":document.execCommand("removeFormat");break;case"fontSize":{n&&document.execCommand("fontSize",!1,n);break}case"fontColor":{n&&document.execCommand("foreColor",!1,n);break}case"bgColor":{n&&document.execCommand("hiliteColor",!1,n);break}case"table":{document.execCommand("insertHTML",!1,'<table class="nice-htmleditor__table"><thead><tr><th>Header 1</th><th>Header 2</th><th>Header 3</th></tr></thead><tbody><tr><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr><tr><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr></tbody></table><p>&nbsp;</p>');break}case"code":{const a=window.getSelection()?.toString()||"";a.includes(`
10
+ `)||a.length>60?document.execCommand("insertHTML",!1,`<pre class="nice-htmleditor__code-block">${a||"// code"}</pre>`):document.execCommand("insertHTML",!1,`<code>${a||"code"}</code>`);break}}c(m.sanitizeHtml(s.innerHTML)),$(s.textContent?.length??0)}},[c,g,b,S,A,p,N,w,P,B,d]),Pe=i.useCallback(async e=>{const n=e.target.files?.[0];if(!n||!N)return;const s=await N(n),o=f.current;o&&s&&(o.focus(),document.execCommand("insertImage",!1,s),c(o.innerHTML)),e.target.value=""},[N,c]),Ue=i.useCallback(()=>{const e=f.current;if(!e)return;const n=e.textContent?.length??0;if(j>0&&n>j&&(e.textContent=(e.textContent??"").slice(0,j)),$(n),Ke((e.textContent??"").trim().split(/\s+/).filter(Boolean).length),c(e.innerHTML),C){const s=window.getSelection();if(s&&s.rangeCount>0){const o=s.getRangeAt(0),a=o.startContainer;if(a.nodeType===Node.TEXT_NODE){const k=a.textContent||"",H=o.startOffset,D=k.slice(0,H),y=D.lastIndexOf(C);if(y>=0&&(y===0||/\s/.test(D[y-1]))){const L=D.slice(y+C.length);if(!/\s/.test(L)){z(!0),Ie(L),X(0),ne?.(L);return}}}}z(!1)}},[j,c,C,ne]),T=i.useMemo(()=>te?.filter(e=>e.label.toLowerCase().includes(me.toLowerCase())).slice(0,8)??[],[te,me]),Z=i.useCallback(e=>{const n=f.current;if(!n)return;const s=window.getSelection();if(!s||s.rangeCount===0)return;const o=s.getRangeAt(0),a=o.startContainer;if(a.nodeType===Node.TEXT_NODE&&C){const k=a.textContent||"",H=o.startOffset,y=k.slice(0,H).lastIndexOf(C);if(y>=0){const L=k.slice(0,y),nt=k.slice(H),rt=`<span class="nice-htmleditor__mention" data-mention="${e.key}" contenteditable="false">${C}${e.label}</span>&nbsp;`;a.textContent=L;const ee=document.createRange();ee.setStartAfter(a),ee.collapse(!0);const ot=ee.createContextualFragment(rt+nt);a.parentNode?.insertBefore(ot,a.nextSibling),s.collapseToEnd(),c(n.innerHTML)}}z(!1)},[C,c]),Qe=i.useCallback(e=>{if(U&&T.length>0){e.key==="ArrowDown"?(e.preventDefault(),X(n=>Math.min(n+1,T.length-1))):e.key==="ArrowUp"?(e.preventDefault(),X(n=>Math.max(n-1,0))):e.key==="Enter"?(e.preventDefault(),Z(T[Q])):e.key==="Escape"&&z(!1);return}(e.ctrlKey||e.metaKey)&&e.key==="b"?(e.preventDefault(),x("bold")):(e.ctrlKey||e.metaKey)&&e.key==="i"?(e.preventDefault(),x("italic")):(e.ctrlKey||e.metaKey)&&e.key==="u"?(e.preventDefault(),x("underline")):(e.ctrlKey||e.metaKey)&&e.key==="f"?(e.preventDefault(),G(n=>!n)):(e.ctrlKey||e.metaKey)&&e.key==="z"&&!e.shiftKey?(e.preventDefault(),x("undo")):(e.ctrlKey||e.metaKey)&&(e.key==="y"||e.key==="z"&&e.shiftKey)&&(e.preventDefault(),x("redo"))},[U,T,Q,Z,x]),Xe=i.useCallback(e=>{if(!re)return;e.preventDefault();const n=e.clipboardData.getData("text/html"),s=e.clipboardData.getData("text/plain");if(n){const a=n.replace(/<style[\s\S]*?<\/style>/gi,"").replace(/<script[\s\S]*?<\/script>/gi,"").replace(/class="[^"]*"/gi,"").replace(/style="[^"]*"/gi,"").replace(/<o:[^>]*>[\s\S]*?<\/o:[^>]*>/gi,"").replace(/<!--[\s\S]*?-->/g,"").replace(/<\/?(?:xml|meta|link|font|span)[^>]*>/gi,"");document.execCommand("insertHTML",!1,a)}else s&&document.execCommand("insertText",!1,s);const o=f.current;o&&(c(o.innerHTML),$(o.textContent?.length??0))},[re,c]),Je=i.useCallback(async e=>{if(!M)return;e.preventDefault();const n=Array.from(e.dataTransfer.files);if(n.length===0)return;const s=await M(n),o=f.current;if(o){o.focus();for(const a of s)if(/\.(png|jpe?g|gif|webp|svg|bmp|ico)$/i.test(a)||a.startsWith("data:image/"))document.execCommand("insertImage",!1,a);else{const H=`<a href="${a}">${a.split("/").pop()??a}</a>`;document.execCommand("insertHTML",!1,H)}c(o.innerHTML)}},[M,c]),Ve=i.useCallback(e=>{M&&e.preventDefault()},[M]),Ce=i.useCallback(e=>{const n=f.current;if(!n||!h)return;const s=n.textContent??"",o=h.toLowerCase(),a=s.toLowerCase();(e===1?a.indexOf(o):a.lastIndexOf(o))!==-1&&(n.focus(),window.find?.(h))},[h]),Ge=i.useCallback(()=>{const e=f.current;!e||!h||(e.innerHTML=e.innerHTML.split(h).join(_),c(e.innerHTML))},[h,_,c]),Ye=i.useCallback(()=>{if(!h)return;const e=p.split(h).join(_);c(e);const n=f.current;n&&(n.innerHTML=e)},[h,_,p,c]),Ze=i.useCallback(e=>{const n=f.current;n&&(n.focus(),document.execCommand("insertText",!1,e),c(n.innerHTML),xe(!1))},[c]),et=i.useCallback(e=>{const n=f.current;n&&(n.focus(),document.execCommand("insertHTML",!1,e),c(n.innerHTML),be(!1))},[c]),tt=i.useCallback(e=>{const n=b||g;if(e==="fontSize")return r.jsx(st.NiceSelect,{size:"sm",value:"",onChange:o=>x("fontSize",String(o)),disabled:n,placeholder:d("htmlEditor.size","Size"),options:dt.map(o=>({value:o.value,label:o.label})),style:{minWidth:70,maxWidth:80}},e);if(e==="fontColor")return r.jsx(ke.NiceColorPicker,{value:fe,onChange:o=>{Be(o),x("fontColor",o)},disabled:n,size:"sm",label:"",title:d("htmlEditor.textColor","Text color")},e);if(e==="bgColor")return r.jsx(ke.NiceColorPicker,{value:pe,onChange:o=>{Fe(o),x("bgColor",o)},disabled:n,size:"sm",label:"",title:d("htmlEditor.highlightColor","Highlight color")},e);const s=e==="markdown"&&S||e==="fullscreen"&&J||e==="source"&&w||e==="findReplace"&&V||e==="emoji"&&Y;return r.jsx(v.NiceButton,{size:"sm",variant:s?"primary":"ghost",onClick:()=>x(e),title:e,disabled:n,children:ct[e]||e},e)},[b,g,x,S,J,fe,pe,w,V,Y,d]);return Ee?null:r.jsxs("div",{className:`nice-field nice-field--${He} ${E?"nice-field--error":""} ${Ne||""}`,style:Me,children:[Re,ie&&r.jsxs("label",{className:"nice-field__label",htmlFor:le,children:[ie,Te&&r.jsx("span",{className:"nice-field__required",children:"*"})]}),r.jsxs("div",{ref:De,className:`nice-htmleditor${J?" nice-htmleditor--fullscreen":""}`,style:{position:"relative"},children:[r.jsx("span",{style:{position:"absolute",top:6,right:6,zIndex:20},children:r.jsx(m.NiceTutorialButton,{steps:m.resolveTutorial(Le,at)})}),r.jsxs("div",{className:"nice-htmleditor__toolbar",style:{display:"flex",flexWrap:"wrap",gap:2,alignItems:"center"},children:[we.map(tt),O&&O.length>0&&r.jsxs("div",{style:{position:"relative"},children:[r.jsx(v.NiceButton,{size:"sm",variant:ge?"primary":"ghost",onClick:()=>be(e=>!e),title:d("htmlEditor.insertTemplate","Insert template"),children:r.jsx(m.NiceIcon,{name:"clipboard",size:16})}),ge&&r.jsx("ul",{style:{position:"absolute",top:"100%",right:0,zIndex:200,background:"var(--nice-bg-primary, #fff)",border:"1px solid var(--nice-border-color, #ddd)",borderRadius:6,boxShadow:"0 4px 16px var(--nice-overlay-12, rgba(0, 0, 0, 0.12))",listStyle:"none",margin:0,padding:4,minWidth:160,maxHeight:200,overflow:"auto"},children:O.map((e,n)=>r.jsx("li",{style:{padding:"6px 10px",cursor:"pointer",borderRadius:4},onMouseDown:s=>{s.preventDefault(),et(e.html)},children:e.label},n))})]})]}),V&&r.jsxs("div",{className:"nice-htmleditor__find-bar",style:{display:"flex",gap:4,alignItems:"center",padding:"4px 8px",background:"var(--nice-bg-secondary, #f8f9fa)",borderBottom:"1px solid var(--nice-border-color, #ddd)",fontSize:"0.875em"},children:[r.jsx("input",{type:"text",placeholder:d("htmlEditor.find","Find..."),value:h,onChange:e=>Ae(e.target.value),style:{flex:1,maxWidth:180,padding:"2px 6px",border:"1px solid var(--nice-border-color, #ccc)",borderRadius:4,background:"var(--nice-bg-primary, #fff)",color:"var(--nice-text-primary, #1f2937)"}}),r.jsx("input",{type:"text",placeholder:d("htmlEditor.replace","Replace..."),value:_,onChange:e=>qe(e.target.value),style:{flex:1,maxWidth:180,padding:"2px 6px",border:"1px solid var(--nice-border-color, #ccc)",borderRadius:4,background:"var(--nice-bg-primary, #fff)",color:"var(--nice-text-primary, #1f2937)"}}),r.jsx(v.NiceButton,{size:"sm",variant:"ghost",onClick:()=>Ce(1),title:d("htmlEditor.findNext","Find next"),children:r.jsx(m.NiceIcon,{name:"chevron-right",size:14})}),r.jsx(v.NiceButton,{size:"sm",variant:"ghost",onClick:()=>Ce(-1),title:d("htmlEditor.findPrevious","Find previous"),children:r.jsx(m.NiceIcon,{name:"chevron-left",size:14})}),r.jsx(v.NiceButton,{size:"sm",variant:"ghost",onClick:Ge,disabled:b||g,children:d("htmlEditor.replace2","Replace")}),r.jsx(v.NiceButton,{size:"sm",variant:"ghost",onClick:Ye,disabled:b||g,children:d("htmlEditor.all","All")}),r.jsx(v.NiceButton,{size:"sm",variant:"ghost",onClick:()=>G(!1),children:r.jsx(m.NiceIcon,{name:"close",size:14,title:d("htmlEditor.close","Close")})})]}),Y&&r.jsx("div",{className:"nice-htmleditor__emoji-picker",style:{padding:8,background:"var(--nice-bg-primary, #fff)",borderBottom:"1px solid var(--nice-border-color, #ddd)",maxHeight:180,overflowY:"auto"},children:ut.map(e=>r.jsxs("div",{children:[r.jsx("div",{style:{fontSize:"0.7em",fontWeight:600,color:"var(--nice-text-muted, #999)",padding:"4px 0"},children:e.label}),r.jsx("div",{style:{display:"flex",flexWrap:"wrap",gap:2},children:e.emojis.map(n=>r.jsx("span",{style:{cursor:"pointer",fontSize:"1.2em",padding:2,borderRadius:4},onClick:()=>Ze(n),title:n,children:n},n))})]},e.label))}),r.jsx("input",{ref:ce,type:"file",accept:"image/*",style:{display:"none"},onChange:Pe}),w?r.jsx("textarea",{className:"nice-htmleditor__source",value:P,onChange:e=>ue(e.target.value),style:{minHeight:I,width:"100%",fontFamily:"monospace",resize:"vertical",whiteSpace:"pre",fontSize:"0.85em",background:"var(--nice-bg-primary, #fff)",color:"var(--nice-text-primary, #1f2937)",border:"none",padding:12,boxSizing:"border-box",outline:"none"},disabled:b||g}):S?r.jsx("textarea",{className:"nice-htmleditor__markdown",value:A,onChange:e=>de(e.target.value),style:{minHeight:I,width:"100%",fontFamily:"monospace",resize:"vertical",background:"var(--nice-bg-primary, #fff)",color:"var(--nice-text-primary, #1f2937)",border:"none",padding:12,boxSizing:"border-box",outline:"none"},disabled:b||g}):r.jsxs("div",{style:{position:"relative"},children:[r.jsx("div",{ref:$e,id:le,className:"nice-htmleditor__content",contentEditable:!b&&!g,dangerouslySetInnerHTML:ze,onInput:Ue,onKeyDown:Qe,onPaste:Xe,onDrop:Je,onDragOver:Ve,style:{minHeight:I},"data-placeholder":Se,role:"textbox","aria-multiline":"true",suppressContentEditableWarning:!0}),U&&T.length>0&&r.jsx("ul",{className:"nice-htmleditor__mention-list",children:T.map((e,n)=>r.jsx("li",{className:`nice-htmleditor__mention-item ${n===Q?"nice-htmleditor__mention-item--active":""}`,onMouseDown:s=>{s.preventDefault(),Z(e)},children:e.label},e.key))})]}),r.jsxs("div",{className:"nice-htmleditor__statusbar",style:{display:"flex",gap:12,padding:"2px 8px",fontSize:"0.75em",color:"var(--nice-text-muted, #666)",borderTop:"1px solid var(--nice-border-color, #eee)"},children:[j>0&&r.jsxs("span",{children:[he," / ",j]}),oe&&r.jsx("span",{children:d("htmlEditor.words","{wordCount} words").replace("{wordCount}",String(We))}),oe&&r.jsx("span",{children:d("htmlEditor.chars","{charCount} chars").replace("{charCount}",String(he))}),w&&r.jsx("span",{style:{fontWeight:600},children:d("htmlEditor.htmlSource","HTML Source")}),S&&r.jsx("span",{style:{fontWeight:600},children:d("htmlEditor.markdown","Markdown")})]})]}),E&&r.jsx("div",{className:"nice-field__error",children:E}),se&&!E&&r.jsx("div",{className:"nice-field__hint",children:se})]})};exports.NiceHtmlEditor=pt;
@@ -0,0 +1,31 @@
1
+ const e = "https://nice2dev.com/schemas/component-doc-v1.json", n = "NiceInstanceMonitor", t = "Workflow instance monitor for tracking process execution and status.", s = "workflow", o = "1.0.0", c = "stable", a = [{ name: "instances", type: "WorkflowInstance[]", required: !0, description: "Workflow instances" }, { name: "onCancel", type: "(instanceId: string) => void", description: "Cancel callback" }, { name: "onRetry", type: "(instanceId: string) => void", description: "Retry callback" }, { name: "showVariables", type: "boolean", default: "true", description: "Show process variables" }, { name: "autoRefresh", type: "boolean", default: "true", description: "Auto-refresh status" }, { name: "refreshInterval", type: "number", default: "5000", description: "Refresh interval ms" }], i = [{ title: "Instance Monitor", description: "Monitor workflow instances", code: `<NiceInstanceMonitor
2
+ instances={workflowInstances}
3
+ onInstanceClick={(i) => showDetails(i)}
4
+ onCancel={(id) => cancelInstance(id)}
5
+ showTimeline
6
+ autoRefresh
7
+ />` }], r = { keyboard: ["Arrow keys to navigate instances"], aria: ["Instance status announcements"] }, l = ["NiceBPMNDesigner", "NiceTaskInbox"], d = {
8
+ $schema: e,
9
+ name: n,
10
+ description: t,
11
+ category: s,
12
+ since: o,
13
+ status: c,
14
+ props: a,
15
+ examples: i,
16
+ accessibility: r,
17
+ seeAlso: l
18
+ };
19
+ export {
20
+ e as $schema,
21
+ r as accessibility,
22
+ s as category,
23
+ d as default,
24
+ t as description,
25
+ i as examples,
26
+ n as name,
27
+ a as props,
28
+ l as seeAlso,
29
+ o as since,
30
+ c as status
31
+ };
@@ -0,0 +1,7 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="https://nice2dev.com/schemas/component-doc-v1.json",n="NiceInstanceMonitor",s="Workflow instance monitor for tracking process execution and status.",t="workflow",o="1.0.0",c="stable",a=[{name:"instances",type:"WorkflowInstance[]",required:!0,description:"Workflow instances"},{name:"onCancel",type:"(instanceId: string) => void",description:"Cancel callback"},{name:"onRetry",type:"(instanceId: string) => void",description:"Retry callback"},{name:"showVariables",type:"boolean",default:"true",description:"Show process variables"},{name:"autoRefresh",type:"boolean",default:"true",description:"Auto-refresh status"},{name:"refreshInterval",type:"number",default:"5000",description:"Refresh interval ms"}],i=[{title:"Instance Monitor",description:"Monitor workflow instances",code:`<NiceInstanceMonitor
2
+ instances={workflowInstances}
3
+ onInstanceClick={(i) => showDetails(i)}
4
+ onCancel={(id) => cancelInstance(id)}
5
+ showTimeline
6
+ autoRefresh
7
+ />`}],r={keyboard:["Arrow keys to navigate instances"],aria:["Instance status announcements"]},l=["NiceBPMNDesigner","NiceTaskInbox"],d={$schema:e,name:n,description:s,category:t,since:o,status:c,props:a,examples:i,accessibility:r,seeAlso:l};exports.$schema=e;exports.accessibility=r;exports.category=t;exports.default=d;exports.description=s;exports.examples=i;exports.name=n;exports.props=a;exports.seeAlso=l;exports.since=o;exports.status=c;
@@ -0,0 +1,25 @@
1
+ const e = "https://nice2dev.com/schemas/component-doc-v1.json", c = "NiceLocaleManager", a = "Locale/language manager component.", o = "utility", n = "1.0.0", t = "stable", s = [{ name: "locales", type: "LocaleConfig[]", required: !1, default: "[]", description: "Available locales" }, { name: "current", type: "string", description: "Current locale" }], l = [{ title: "Locale Manager", code: '<NiceLocaleManager locales={locales} current="en" onLocaleChange={setLocale} />' }], i = { keyboard: [], aria: [] }, r = ["NiceLocaleSelector", "NiceI18nProvider"], d = {
2
+ $schema: e,
3
+ name: c,
4
+ description: a,
5
+ category: o,
6
+ since: n,
7
+ status: t,
8
+ props: s,
9
+ examples: l,
10
+ accessibility: i,
11
+ seeAlso: r
12
+ };
13
+ export {
14
+ e as $schema,
15
+ i as accessibility,
16
+ o as category,
17
+ d as default,
18
+ a as description,
19
+ l as examples,
20
+ c as name,
21
+ s as props,
22
+ r as seeAlso,
23
+ n as since,
24
+ t as status
25
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="https://nice2dev.com/schemas/component-doc-v1.json",c="NiceLocaleManager",a="Locale/language manager component.",o="utility",s="1.0.0",t="stable",n=[{name:"locales",type:"LocaleConfig[]",required:!1,default:"[]",description:"Available locales"},{name:"current",type:"string",description:"Current locale"}],l=[{title:"Locale Manager",code:'<NiceLocaleManager locales={locales} current="en" onLocaleChange={setLocale} />'}],i={keyboard:[],aria:[]},r=["NiceLocaleSelector","NiceI18nProvider"],p={$schema:e,name:c,description:a,category:o,since:s,status:t,props:n,examples:l,accessibility:i,seeAlso:r};exports.$schema=e;exports.accessibility=i;exports.category=o;exports.default=p;exports.description=a;exports.examples=l;exports.name=c;exports.props=n;exports.seeAlso=r;exports.since=s;exports.status=t;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="https://nice2dev.com/schemas/component-doc-v1.json",o="NiceLockButton",t="Lock/unlock toggle button.",c="action",n="1.0.0",s="stable",i=[{name:"locked",type:"boolean",required:!0,description:"Lock state"},{name:"onLockChange",type:"(locked: boolean) => void",description:"State change"},{name:"requireConfirm",type:"boolean",default:"false",description:"Require confirmation"}],a=[{title:"Lock Button",code:"<NiceLockButton locked={isLocked} onLockedChange={setLocked} />"}],l={keyboard:["Enter to toggle"],aria:["Toggle state"]},r=["NiceSwitch","NiceButton"],d={$schema:e,name:o,description:t,category:c,since:n,status:s,props:i,examples:a,accessibility:l,seeAlso:r};exports.$schema=e;exports.accessibility=l;exports.category=c;exports.default=d;exports.description=t;exports.examples=a;exports.name=o;exports.props=i;exports.seeAlso=r;exports.since=n;exports.status=s;
@@ -0,0 +1,25 @@
1
+ const o = "https://nice2dev.com/schemas/component-doc-v1.json", e = "NiceLockButton", t = "Lock/unlock toggle button.", c = "action", n = "1.0.0", s = "stable", i = [{ name: "locked", type: "boolean", required: !0, description: "Lock state" }, { name: "onLockChange", type: "(locked: boolean) => void", description: "State change" }, { name: "requireConfirm", type: "boolean", default: "false", description: "Require confirmation" }], a = [{ title: "Lock Button", code: "<NiceLockButton locked={isLocked} onLockedChange={setLocked} />" }], d = { keyboard: ["Enter to toggle"], aria: ["Toggle state"] }, l = ["NiceSwitch", "NiceButton"], r = {
2
+ $schema: o,
3
+ name: e,
4
+ description: t,
5
+ category: c,
6
+ since: n,
7
+ status: s,
8
+ props: i,
9
+ examples: a,
10
+ accessibility: d,
11
+ seeAlso: l
12
+ };
13
+ export {
14
+ o as $schema,
15
+ d as accessibility,
16
+ c as category,
17
+ r as default,
18
+ t as description,
19
+ a as examples,
20
+ e as name,
21
+ i as props,
22
+ l as seeAlso,
23
+ n as since,
24
+ s as status
25
+ };