@aquera/nile-elements 1.9.11 → 2.0.1

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 (307) hide show
  1. package/README.md +10 -0
  2. package/demo/nxtgen-dark.css +2265 -0
  3. package/dist/index-0fe57384.esm.js +1 -0
  4. package/dist/{index-6832c52b.cjs.js → index-3ca67627.cjs.js} +2 -2
  5. package/dist/{index-6832c52b.cjs.js.map → index-3ca67627.cjs.js.map} +1 -1
  6. package/dist/{index-f956f56d.cjs.js → index-403841c7.cjs.js} +2 -2
  7. package/dist/{index-f956f56d.cjs.js.map → index-403841c7.cjs.js.map} +1 -1
  8. package/dist/{index-50880eb7.cjs.js → index-c3210a9c.cjs.js} +2 -2
  9. package/dist/{index-50880eb7.cjs.js.map → index-c3210a9c.cjs.js.map} +1 -1
  10. package/dist/index-f6944844.cjs.js +2 -0
  11. package/dist/index-f6944844.cjs.js.map +1 -0
  12. package/dist/index.cjs.js +1 -1
  13. package/dist/index.esm.js +1 -1
  14. package/dist/index.js +583 -532
  15. package/dist/nile-calendar/nile-calendar.cjs.js +1 -1
  16. package/dist/nile-calendar/nile-calendar.cjs.js.map +1 -1
  17. package/dist/nile-calendar/nile-calendar.css.cjs.js +1 -1
  18. package/dist/nile-calendar/nile-calendar.css.cjs.js.map +1 -1
  19. package/dist/nile-calendar/nile-calendar.css.esm.js +1 -1
  20. package/dist/nile-calendar/nile-calendar.esm.js +10 -10
  21. package/dist/nile-carousel/nile-carousel.cjs.js +1 -1
  22. package/dist/nile-carousel/nile-carousel.cjs.js.map +1 -1
  23. package/dist/nile-carousel/nile-carousel.esm.js +2 -0
  24. package/dist/nile-code-editor/extensionSetup.cjs.js +7 -7
  25. package/dist/nile-code-editor/extensionSetup.cjs.js.map +1 -1
  26. package/dist/nile-code-editor/extensionSetup.esm.js +1 -1
  27. package/dist/nile-code-editor/index.cjs.js +1 -1
  28. package/dist/nile-code-editor/index.esm.js +1 -1
  29. package/dist/nile-code-editor/nile-code-editor.cjs.js +2 -2
  30. package/dist/nile-code-editor/nile-code-editor.cjs.js.map +1 -1
  31. package/dist/nile-code-editor/nile-code-editor.esm.js +4 -4
  32. package/dist/nile-code-editor/theme.cjs.js +1 -1
  33. package/dist/nile-code-editor/theme.cjs.js.map +1 -1
  34. package/dist/nile-code-editor/theme.esm.js +1 -1
  35. package/dist/nile-color-picker/nile-color-picker.css.cjs.js +1 -1
  36. package/dist/nile-color-picker/nile-color-picker.css.cjs.js.map +1 -1
  37. package/dist/nile-color-picker/nile-color-picker.css.esm.js +1 -1
  38. package/dist/nile-combobox/nile-combobox.css.cjs.js +1 -1
  39. package/dist/nile-combobox/nile-combobox.css.cjs.js.map +1 -1
  40. package/dist/nile-combobox/nile-combobox.css.esm.js +1 -1
  41. package/dist/nile-context-menu/index.cjs.js +1 -1
  42. package/dist/nile-context-menu/nile-context-menu.cjs.js +1 -1
  43. package/dist/nile-context-submenu/index.cjs.js +1 -1
  44. package/dist/nile-context-submenu/nile-context-submenu.cjs.js +1 -1
  45. package/dist/nile-detail/index.cjs.js +1 -1
  46. package/dist/nile-detail/nile-detail.cjs.js +1 -1
  47. package/dist/nile-detail/nile-detail.css.cjs.js +1 -1
  48. package/dist/nile-detail/nile-detail.css.cjs.js.map +1 -1
  49. package/dist/nile-detail/nile-detail.css.esm.js +1 -1
  50. package/dist/nile-drawer/nile-drawer.cjs.js +1 -1
  51. package/dist/nile-drawer/nile-drawer.cjs.js.map +1 -1
  52. package/dist/nile-drawer/nile-drawer.css.cjs.js +1 -1
  53. package/dist/nile-drawer/nile-drawer.css.cjs.js.map +1 -1
  54. package/dist/nile-drawer/nile-drawer.css.esm.js +2 -1
  55. package/dist/nile-drawer/nile-drawer.esm.js +1 -1
  56. package/dist/nile-error-message/nile-error-message.css.cjs.js +1 -1
  57. package/dist/nile-error-message/nile-error-message.css.cjs.js.map +1 -1
  58. package/dist/nile-error-message/nile-error-message.css.esm.js +4 -3
  59. package/dist/nile-error-notification/nile-error-notification.css.cjs.js +1 -1
  60. package/dist/nile-error-notification/nile-error-notification.css.cjs.js.map +1 -1
  61. package/dist/nile-error-notification/nile-error-notification.css.esm.js +1 -1
  62. package/dist/nile-floating-panel/index.cjs.js +1 -1
  63. package/dist/nile-floating-panel/nile-floating-panel.cjs.js +1 -1
  64. package/dist/nile-hero/nile-hero.css.cjs.js +1 -1
  65. package/dist/nile-hero/nile-hero.css.cjs.js.map +1 -1
  66. package/dist/nile-hero/nile-hero.css.esm.js +1 -0
  67. package/dist/nile-lite-tooltip/index.cjs.js +1 -1
  68. package/dist/nile-lite-tooltip/nile-lite-tooltip.cjs.js +1 -1
  69. package/dist/nile-lite-tooltip/nile-lite-tooltip.css.cjs.js +1 -1
  70. package/dist/nile-lite-tooltip/nile-lite-tooltip.css.cjs.js.map +1 -1
  71. package/dist/nile-lite-tooltip/nile-lite-tooltip.css.esm.js +1 -1
  72. package/dist/nile-popup/nile-popup.css.cjs.js +1 -1
  73. package/dist/nile-popup/nile-popup.css.cjs.js.map +1 -1
  74. package/dist/nile-popup/nile-popup.css.esm.js +5 -4
  75. package/dist/nile-side-bar-footer/nile-side-bar-footer.css.cjs.js +1 -1
  76. package/dist/nile-side-bar-footer/nile-side-bar-footer.css.cjs.js.map +1 -1
  77. package/dist/nile-side-bar-footer/nile-side-bar-footer.css.esm.js +3 -3
  78. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.css.cjs.js +1 -1
  79. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.css.cjs.js.map +1 -1
  80. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.css.esm.js +13 -7
  81. package/dist/nile-tooltip/nile-tooltip.css.cjs.js +1 -1
  82. package/dist/nile-tooltip/nile-tooltip.css.cjs.js.map +1 -1
  83. package/dist/nile-tooltip/nile-tooltip.css.esm.js +7 -1
  84. package/dist/nile-wysiwyg-editor/engine/commands.cjs.js +1 -1
  85. package/dist/nile-wysiwyg-editor/engine/create-state.cjs.js +1 -1
  86. package/dist/nile-wysiwyg-editor/engine/index.cjs.js +1 -1
  87. package/dist/nile-wysiwyg-editor/engine/inputrules.cjs.js +1 -1
  88. package/dist/nile-wysiwyg-editor/engine/keymap.cjs.js +1 -1
  89. package/dist/nile-wysiwyg-editor/engine/plugins/code-highlight.cjs.js +1 -1
  90. package/dist/nile-wysiwyg-editor/engine/plugins/embed-view.cjs.js +1 -1
  91. package/dist/nile-wysiwyg-editor/engine/plugins/embeds.cjs.js +1 -1
  92. package/dist/nile-wysiwyg-editor/engine/plugins/find-replace.cjs.js +1 -1
  93. package/dist/nile-wysiwyg-editor/engine/plugins/format-painter.cjs.js +1 -1
  94. package/dist/nile-wysiwyg-editor/engine/plugins/format-painter.esm.js +1 -1
  95. package/dist/nile-wysiwyg-editor/engine/plugins/image-view.cjs.js +1 -1
  96. package/dist/nile-wysiwyg-editor/engine/plugins/image-view.esm.js +1 -1
  97. package/dist/nile-wysiwyg-editor/engine/plugins/image.cjs.js +1 -1
  98. package/dist/nile-wysiwyg-editor/engine/plugins/link.cjs.js +1 -1
  99. package/dist/nile-wysiwyg-editor/engine/plugins/link.esm.js +1 -1
  100. package/dist/nile-wysiwyg-editor/engine/plugins/max-length.cjs.js +1 -1
  101. package/dist/nile-wysiwyg-editor/engine/plugins/paste.cjs.js +1 -1
  102. package/dist/nile-wysiwyg-editor/engine/plugins/paste.cjs.js.map +1 -1
  103. package/dist/nile-wysiwyg-editor/engine/plugins/paste.esm.js +1 -1
  104. package/dist/nile-wysiwyg-editor/engine/plugins/placeholder.cjs.js +1 -1
  105. package/dist/nile-wysiwyg-editor/engine/plugins/single-line.cjs.js +1 -1
  106. package/dist/nile-wysiwyg-editor/engine/plugins/suggestions.cjs.js +1 -1
  107. package/dist/nile-wysiwyg-editor/engine/plugins/tables.cjs.js +1 -1
  108. package/dist/nile-wysiwyg-editor/engine/sanitize.cjs.js +1 -1
  109. package/dist/nile-wysiwyg-editor/engine/schema.cjs.js +1 -1
  110. package/dist/nile-wysiwyg-editor/engine/selection-state.cjs.js +1 -1
  111. package/dist/nile-wysiwyg-editor/engine/serializer.cjs.js +1 -1
  112. package/dist/nile-wysiwyg-editor/engine/serializer.esm.js +1 -1
  113. package/dist/nile-wysiwyg-editor/index.cjs.js +1 -1
  114. package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.cjs.js +1 -1
  115. package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.cjs.js.map +1 -1
  116. package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.css.cjs.js +1 -1
  117. package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.css.cjs.js.map +1 -1
  118. package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.css.esm.js +91 -58
  119. package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.esm.js +1 -1
  120. package/dist/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.css.cjs.js +1 -1
  121. package/dist/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.css.cjs.js.map +1 -1
  122. package/dist/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.css.esm.js +19 -19
  123. package/dist/nile-wysiwyg-editor/ui/bookmark-panel.cjs.js +1 -1
  124. package/dist/nile-wysiwyg-editor/ui/bookmark-panel.cjs.js.map +1 -1
  125. package/dist/nile-wysiwyg-editor/ui/bookmark-panel.esm.js +14 -14
  126. package/dist/nile-wysiwyg-editor/ui/bubble-menu.cjs.js +1 -1
  127. package/dist/nile-wysiwyg-editor/ui/bubble-menu.cjs.js.map +1 -1
  128. package/dist/nile-wysiwyg-editor/ui/bubble-menu.esm.js +13 -13
  129. package/dist/nile-wysiwyg-editor/ui/code-block-menu.cjs.js +1 -1
  130. package/dist/nile-wysiwyg-editor/ui/code-block-menu.cjs.js.map +1 -1
  131. package/dist/nile-wysiwyg-editor/ui/code-block-menu.esm.js +12 -12
  132. package/dist/nile-wysiwyg-editor/ui/embed-menu.cjs.js +1 -1
  133. package/dist/nile-wysiwyg-editor/ui/embed-menu.cjs.js.map +1 -1
  134. package/dist/nile-wysiwyg-editor/ui/embed-menu.esm.js +10 -10
  135. package/dist/nile-wysiwyg-editor/ui/embed-panel.cjs.js +1 -1
  136. package/dist/nile-wysiwyg-editor/ui/embed-panel.cjs.js.map +1 -1
  137. package/dist/nile-wysiwyg-editor/ui/embed-panel.esm.js +4 -4
  138. package/dist/nile-wysiwyg-editor/ui/emoji-picker.cjs.js +1 -1
  139. package/dist/nile-wysiwyg-editor/ui/emoji-picker.cjs.js.map +1 -1
  140. package/dist/nile-wysiwyg-editor/ui/emoji-picker.esm.js +11 -11
  141. package/dist/nile-wysiwyg-editor/ui/find-replace.cjs.js +1 -1
  142. package/dist/nile-wysiwyg-editor/ui/find-replace.cjs.js.map +1 -1
  143. package/dist/nile-wysiwyg-editor/ui/find-replace.esm.js +9 -9
  144. package/dist/nile-wysiwyg-editor/ui/image-menu.cjs.js +1 -1
  145. package/dist/nile-wysiwyg-editor/ui/image-menu.cjs.js.map +1 -1
  146. package/dist/nile-wysiwyg-editor/ui/image-menu.esm.js +11 -11
  147. package/dist/nile-wysiwyg-editor/ui/image-panel.cjs.js +1 -1
  148. package/dist/nile-wysiwyg-editor/ui/image-panel.cjs.js.map +1 -1
  149. package/dist/nile-wysiwyg-editor/ui/image-panel.esm.js +6 -6
  150. package/dist/nile-wysiwyg-editor/ui/insert-menu.cjs.js +1 -1
  151. package/dist/nile-wysiwyg-editor/ui/insert-menu.cjs.js.map +1 -1
  152. package/dist/nile-wysiwyg-editor/ui/insert-menu.esm.js +14 -14
  153. package/dist/nile-wysiwyg-editor/ui/link-editor.cjs.js +1 -1
  154. package/dist/nile-wysiwyg-editor/ui/link-editor.cjs.js.map +1 -1
  155. package/dist/nile-wysiwyg-editor/ui/link-editor.esm.js +16 -16
  156. package/dist/nile-wysiwyg-editor/ui/markdown-panel.cjs.js +1 -1
  157. package/dist/nile-wysiwyg-editor/ui/markdown-panel.cjs.js.map +1 -1
  158. package/dist/nile-wysiwyg-editor/ui/markdown-panel.esm.js +8 -8
  159. package/dist/nile-wysiwyg-editor/ui/math-panel.cjs.js +1 -1
  160. package/dist/nile-wysiwyg-editor/ui/math-panel.cjs.js.map +1 -1
  161. package/dist/nile-wysiwyg-editor/ui/math-panel.esm.js +4 -4
  162. package/dist/nile-wysiwyg-editor/ui/shortcut-help.cjs.js +1 -1
  163. package/dist/nile-wysiwyg-editor/ui/shortcut-help.cjs.js.map +1 -1
  164. package/dist/nile-wysiwyg-editor/ui/shortcut-help.esm.js +16 -16
  165. package/dist/nile-wysiwyg-editor/ui/source-view.cjs.js +1 -1
  166. package/dist/nile-wysiwyg-editor/ui/source-view.cjs.js.map +1 -1
  167. package/dist/nile-wysiwyg-editor/ui/source-view.esm.js +29 -29
  168. package/dist/nile-wysiwyg-editor/ui/special-chars.cjs.js +1 -1
  169. package/dist/nile-wysiwyg-editor/ui/special-chars.cjs.js.map +1 -1
  170. package/dist/nile-wysiwyg-editor/ui/special-chars.esm.js +8 -8
  171. package/dist/nile-wysiwyg-editor/ui/suggest-list.cjs.js +1 -1
  172. package/dist/nile-wysiwyg-editor/ui/suggest-list.cjs.js.map +1 -1
  173. package/dist/nile-wysiwyg-editor/ui/suggest-list.esm.js +9 -9
  174. package/dist/nile-wysiwyg-editor/ui/table-grid-picker.cjs.js +1 -1
  175. package/dist/nile-wysiwyg-editor/ui/table-grid-picker.cjs.js.map +1 -1
  176. package/dist/nile-wysiwyg-editor/ui/table-grid-picker.esm.js +23 -23
  177. package/dist/nile-wysiwyg-editor/ui/table-menu.cjs.js +1 -1
  178. package/dist/nile-wysiwyg-editor/ui/table-menu.cjs.js.map +1 -1
  179. package/dist/nile-wysiwyg-editor/ui/table-menu.esm.js +7 -7
  180. package/dist/src/nile-calendar/nile-calendar.css.js +1 -1
  181. package/dist/src/nile-calendar/nile-calendar.css.js.map +1 -1
  182. package/dist/src/nile-calendar/nile-calendar.js +4 -4
  183. package/dist/src/nile-calendar/nile-calendar.js.map +1 -1
  184. package/dist/src/nile-carousel/nile-carousel.js +2 -0
  185. package/dist/src/nile-carousel/nile-carousel.js.map +1 -1
  186. package/dist/src/nile-code-editor/nile-code-editor.d.ts +15 -0
  187. package/dist/src/nile-code-editor/nile-code-editor.js +64 -4
  188. package/dist/src/nile-code-editor/nile-code-editor.js.map +1 -1
  189. package/dist/src/nile-code-editor/theme.d.ts +5 -0
  190. package/dist/src/nile-code-editor/theme.js +115 -12
  191. package/dist/src/nile-code-editor/theme.js.map +1 -1
  192. package/dist/src/nile-color-picker/nile-color-picker.css.js +12 -12
  193. package/dist/src/nile-color-picker/nile-color-picker.css.js.map +1 -1
  194. package/dist/src/nile-combobox/nile-combobox.css.js +1 -1
  195. package/dist/src/nile-combobox/nile-combobox.css.js.map +1 -1
  196. package/dist/src/nile-detail/nile-detail.css.js +1 -1
  197. package/dist/src/nile-detail/nile-detail.css.js.map +1 -1
  198. package/dist/src/nile-drawer/nile-drawer.css.js +2 -1
  199. package/dist/src/nile-drawer/nile-drawer.css.js.map +1 -1
  200. package/dist/src/nile-drawer/nile-drawer.js +1 -1
  201. package/dist/src/nile-drawer/nile-drawer.js.map +1 -1
  202. package/dist/src/nile-error-message/nile-error-message.css.js +2 -1
  203. package/dist/src/nile-error-message/nile-error-message.css.js.map +1 -1
  204. package/dist/src/nile-error-notification/nile-error-notification.css.js +1 -1
  205. package/dist/src/nile-error-notification/nile-error-notification.css.js.map +1 -1
  206. package/dist/src/nile-hero/nile-hero.css.js +1 -0
  207. package/dist/src/nile-hero/nile-hero.css.js.map +1 -1
  208. package/dist/src/nile-lite-tooltip/nile-lite-tooltip.css.js +1 -1
  209. package/dist/src/nile-lite-tooltip/nile-lite-tooltip.css.js.map +1 -1
  210. package/dist/src/nile-popup/nile-popup.css.js +3 -2
  211. package/dist/src/nile-popup/nile-popup.css.js.map +1 -1
  212. package/dist/src/nile-side-bar-footer/nile-side-bar-footer.css.js +3 -3
  213. package/dist/src/nile-side-bar-footer/nile-side-bar-footer.css.js.map +1 -1
  214. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.css.js +11 -5
  215. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.css.js.map +1 -1
  216. package/dist/src/nile-tooltip/nile-tooltip.css.js +7 -1
  217. package/dist/src/nile-tooltip/nile-tooltip.css.js.map +1 -1
  218. package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-editor.css.js +91 -58
  219. package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-editor.css.js.map +1 -1
  220. package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-editor.d.ts +2 -1
  221. package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-editor.js +23 -1
  222. package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-editor.js.map +1 -1
  223. package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.css.js +19 -19
  224. package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.css.js.map +1 -1
  225. package/dist/src/nile-wysiwyg-editor/ui/bookmark-panel.js +10 -10
  226. package/dist/src/nile-wysiwyg-editor/ui/bookmark-panel.js.map +1 -1
  227. package/dist/src/nile-wysiwyg-editor/ui/bubble-menu.js +7 -7
  228. package/dist/src/nile-wysiwyg-editor/ui/bubble-menu.js.map +1 -1
  229. package/dist/src/nile-wysiwyg-editor/ui/code-block-menu.js +5 -5
  230. package/dist/src/nile-wysiwyg-editor/ui/code-block-menu.js.map +1 -1
  231. package/dist/src/nile-wysiwyg-editor/ui/embed-menu.js +6 -6
  232. package/dist/src/nile-wysiwyg-editor/ui/embed-menu.js.map +1 -1
  233. package/dist/src/nile-wysiwyg-editor/ui/embed-panel.js +4 -4
  234. package/dist/src/nile-wysiwyg-editor/ui/embed-panel.js.map +1 -1
  235. package/dist/src/nile-wysiwyg-editor/ui/emoji-picker.js +6 -6
  236. package/dist/src/nile-wysiwyg-editor/ui/emoji-picker.js.map +1 -1
  237. package/dist/src/nile-wysiwyg-editor/ui/find-replace.js +7 -7
  238. package/dist/src/nile-wysiwyg-editor/ui/find-replace.js.map +1 -1
  239. package/dist/src/nile-wysiwyg-editor/ui/image-menu.js +6 -6
  240. package/dist/src/nile-wysiwyg-editor/ui/image-menu.js.map +1 -1
  241. package/dist/src/nile-wysiwyg-editor/ui/image-panel.js +6 -6
  242. package/dist/src/nile-wysiwyg-editor/ui/image-panel.js.map +1 -1
  243. package/dist/src/nile-wysiwyg-editor/ui/insert-menu.js +7 -7
  244. package/dist/src/nile-wysiwyg-editor/ui/insert-menu.js.map +1 -1
  245. package/dist/src/nile-wysiwyg-editor/ui/link-editor.js +9 -9
  246. package/dist/src/nile-wysiwyg-editor/ui/link-editor.js.map +1 -1
  247. package/dist/src/nile-wysiwyg-editor/ui/markdown-panel.js +8 -8
  248. package/dist/src/nile-wysiwyg-editor/ui/markdown-panel.js.map +1 -1
  249. package/dist/src/nile-wysiwyg-editor/ui/math-panel.js +4 -4
  250. package/dist/src/nile-wysiwyg-editor/ui/math-panel.js.map +1 -1
  251. package/dist/src/nile-wysiwyg-editor/ui/shortcut-help.js +9 -9
  252. package/dist/src/nile-wysiwyg-editor/ui/shortcut-help.js.map +1 -1
  253. package/dist/src/nile-wysiwyg-editor/ui/source-view.js +24 -24
  254. package/dist/src/nile-wysiwyg-editor/ui/source-view.js.map +1 -1
  255. package/dist/src/nile-wysiwyg-editor/ui/special-chars.js +4 -4
  256. package/dist/src/nile-wysiwyg-editor/ui/special-chars.js.map +1 -1
  257. package/dist/src/nile-wysiwyg-editor/ui/suggest-list.js +7 -7
  258. package/dist/src/nile-wysiwyg-editor/ui/suggest-list.js.map +1 -1
  259. package/dist/src/nile-wysiwyg-editor/ui/table-grid-picker.js +16 -16
  260. package/dist/src/nile-wysiwyg-editor/ui/table-grid-picker.js.map +1 -1
  261. package/dist/src/nile-wysiwyg-editor/ui/table-menu.js +4 -4
  262. package/dist/src/nile-wysiwyg-editor/ui/table-menu.js.map +1 -1
  263. package/dist/src/version.js +2 -2
  264. package/dist/src/version.js.map +1 -1
  265. package/dist/tsconfig.tsbuildinfo +1 -1
  266. package/package.json +1 -1
  267. package/src/nile-calendar/nile-calendar.css.ts +1 -1
  268. package/src/nile-calendar/nile-calendar.ts +4 -4
  269. package/src/nile-carousel/nile-carousel.ts +2 -0
  270. package/src/nile-code-editor/nile-code-editor.ts +67 -4
  271. package/src/nile-code-editor/theme.ts +132 -12
  272. package/src/nile-color-picker/nile-color-picker.css.ts +12 -12
  273. package/src/nile-combobox/nile-combobox.css.ts +1 -1
  274. package/src/nile-detail/nile-detail.css.ts +1 -1
  275. package/src/nile-drawer/nile-drawer.css.ts +2 -1
  276. package/src/nile-drawer/nile-drawer.ts +1 -1
  277. package/src/nile-error-message/nile-error-message.css.ts +2 -1
  278. package/src/nile-error-notification/nile-error-notification.css.ts +1 -1
  279. package/src/nile-hero/nile-hero.css.ts +1 -0
  280. package/src/nile-lite-tooltip/nile-lite-tooltip.css.ts +1 -1
  281. package/src/nile-popup/nile-popup.css.ts +3 -2
  282. package/src/nile-side-bar-footer/nile-side-bar-footer.css.ts +3 -3
  283. package/src/nile-side-bar-footer-item/nile-side-bar-footer-item.css.ts +11 -5
  284. package/src/nile-tooltip/nile-tooltip.css.ts +7 -1
  285. package/src/nile-wysiwyg-editor/nile-wysiwyg-editor.css.ts +91 -58
  286. package/src/nile-wysiwyg-editor/nile-wysiwyg-editor.ts +21 -1
  287. package/src/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.css.ts +19 -19
  288. package/src/nile-wysiwyg-editor/ui/bookmark-panel.ts +10 -10
  289. package/src/nile-wysiwyg-editor/ui/bubble-menu.ts +7 -7
  290. package/src/nile-wysiwyg-editor/ui/code-block-menu.ts +5 -5
  291. package/src/nile-wysiwyg-editor/ui/embed-menu.ts +6 -6
  292. package/src/nile-wysiwyg-editor/ui/embed-panel.ts +4 -4
  293. package/src/nile-wysiwyg-editor/ui/emoji-picker.ts +6 -6
  294. package/src/nile-wysiwyg-editor/ui/find-replace.ts +7 -7
  295. package/src/nile-wysiwyg-editor/ui/image-menu.ts +6 -6
  296. package/src/nile-wysiwyg-editor/ui/image-panel.ts +6 -6
  297. package/src/nile-wysiwyg-editor/ui/insert-menu.ts +7 -7
  298. package/src/nile-wysiwyg-editor/ui/link-editor.ts +9 -9
  299. package/src/nile-wysiwyg-editor/ui/markdown-panel.ts +8 -8
  300. package/src/nile-wysiwyg-editor/ui/math-panel.ts +4 -4
  301. package/src/nile-wysiwyg-editor/ui/shortcut-help.ts +9 -9
  302. package/src/nile-wysiwyg-editor/ui/source-view.ts +24 -24
  303. package/src/nile-wysiwyg-editor/ui/special-chars.ts +4 -4
  304. package/src/nile-wysiwyg-editor/ui/suggest-list.ts +7 -7
  305. package/src/nile-wysiwyg-editor/ui/table-grid-picker.ts +16 -16
  306. package/src/nile-wysiwyg-editor/ui/table-menu.ts +4 -4
  307. package/vscode-html-custom-data.json +2 -2
@@ -53,11 +53,11 @@ let NileWysiwygTablePicker = class NileWysiwygTablePicker extends NileElement {
53
53
  border-radius: var(--nile-radius-radius-lg, var(--ng-radius-md, 8px));
54
54
  background: transparent;
55
55
  cursor: pointer;
56
- color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900, #101828));
56
+ color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));
57
57
  }
58
58
 
59
59
  button.trigger:hover:not(:disabled) {
60
- background: var(--nile-colors-neutral-100, #f2f4f7);
60
+ background: var(--nile-colors-neutral-100, var(--ng-colors-bg-secondary));
61
61
  }
62
62
 
63
63
  button.trigger:disabled {
@@ -71,8 +71,8 @@ let NileWysiwygTablePicker = class NileWysiwygTablePicker extends NileElement {
71
71
  left: 0;
72
72
  z-index: 30;
73
73
  padding: 8px;
74
- background: var(--nile-wysiwyg-popover-bg, #ffffff);
75
- border: 1px solid var(--nile-colors-neutral-400, #d0d5dd);
74
+ background: var(--nile-wysiwyg-popover-bg, var(--ng-colors-bg-primary));
75
+ border: 1px solid var(--nile-colors-neutral-400, var(--ng-colors-border-primary));
76
76
  border-radius: 8px;
77
77
  box-shadow: var(--nile-wysiwyg-popover-shadow, 0 4px 12px rgba(16, 24, 40, 0.12));
78
78
  }
@@ -85,22 +85,22 @@ let NileWysiwygTablePicker = class NileWysiwygTablePicker extends NileElement {
85
85
  .cell {
86
86
  width: 14px;
87
87
  height: 14px;
88
- border: 1px solid var(--nile-colors-neutral-300, #d0d5dd);
88
+ border: 1px solid var(--nile-colors-neutral-300, var(--ng-colors-border-primary));
89
89
  border-radius: 2px;
90
90
  box-sizing: border-box;
91
91
  cursor: pointer;
92
92
  }
93
93
 
94
94
  .cell.hot {
95
- background: var(--nile-colors-primary-100, var(--ng-componentcolors-utility-blue-100, #dbeafe));
96
- border-color: var(--nile-colors-primary-600, var(--ng-componentcolors-utility-blue-600, #2563eb));
95
+ background: var(--nile-colors-primary-100, var(--ng-componentcolors-utility-blue-100));
96
+ border-color: var(--nile-colors-primary-600, var(--ng-componentcolors-utility-blue-600));
97
97
  }
98
98
 
99
99
  .label {
100
100
  margin-top: 6px;
101
101
  text-align: center;
102
102
  font-size: 12px;
103
- color: var(--nile-colors-neutral-600, #475467);
103
+ color: var(--nile-colors-neutral-600, var(--ng-colors-text-tertiary-600));
104
104
  }
105
105
 
106
106
  .custom {
@@ -109,19 +109,19 @@ let NileWysiwygTablePicker = class NileWysiwygTablePicker extends NileElement {
109
109
  gap: 6px;
110
110
  margin-top: 8px;
111
111
  padding-top: 8px;
112
- border-top: 1px solid var(--nile-colors-neutral-300, #e4e7ec);
112
+ border-top: 1px solid var(--nile-colors-neutral-300, var(--ng-colors-border-secondary));
113
113
  }
114
114
 
115
115
  .custom input {
116
116
  width: 44px;
117
117
  height: 26px;
118
118
  padding: 0 6px;
119
- border: 1px solid var(--nile-colors-neutral-400, #d0d5dd);
119
+ border: 1px solid var(--nile-colors-neutral-400, var(--ng-colors-border-primary));
120
120
  border-radius: 6px;
121
121
  font-size: 12px;
122
122
  box-sizing: border-box;
123
123
  text-align: center;
124
- color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900, #101828));
124
+ color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));
125
125
  font-family: inherit;
126
126
  /* Hide native number spinners: they overlap the centered text in this
127
127
  narrow field and a stray click on the arrows mutates the value. */
@@ -137,12 +137,12 @@ let NileWysiwygTablePicker = class NileWysiwygTablePicker extends NileElement {
137
137
 
138
138
  .custom input:focus {
139
139
  outline: none;
140
- border-color: var(--nile-colors-primary-600, var(--ng-componentcolors-utility-blue-600, #2563eb));
140
+ border-color: var(--nile-colors-primary-600, var(--ng-componentcolors-utility-blue-600));
141
141
  }
142
142
 
143
143
  .custom .times {
144
144
  font-size: 12px;
145
- color: var(--nile-colors-neutral-600, #475467);
145
+ color: var(--nile-colors-neutral-600, var(--ng-colors-text-tertiary-600));
146
146
  }
147
147
 
148
148
  .custom button.insert {
@@ -151,8 +151,8 @@ let NileWysiwygTablePicker = class NileWysiwygTablePicker extends NileElement {
151
151
  padding: 0 12px;
152
152
  border: none;
153
153
  border-radius: 6px;
154
- background: var(--nile-colors-primary-600, var(--ng-componentcolors-utility-blue-600, #2563eb));
155
- color: #ffffff;
154
+ background: var(--nile-colors-primary-600, var(--ng-componentcolors-utility-blue-600));
155
+ color: var(--ng-colors-text-white);
156
156
  font-size: 12px;
157
157
  font-weight: 600;
158
158
  font-family: inherit;
@@ -160,7 +160,7 @@ let NileWysiwygTablePicker = class NileWysiwygTablePicker extends NileElement {
160
160
  }
161
161
 
162
162
  .custom button.insert:hover:not(:disabled) {
163
- background: var(--nile-colors-primary-700, #1d4ed8);
163
+ background: var(--nile-colors-primary-700, var(--ng-componentcolors-utility-blue-700));
164
164
  }
165
165
 
166
166
  .custom button.insert:disabled {
@@ -1 +1 @@
1
- {"version":3,"file":"table-grid-picker.js","sourceRoot":"","sources":["../../../../src/nile-wysiwyg-editor/ui/table-grid-picker.ts"],"names":[],"m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I,CAAC,YAAY,EAAE,CAAC;YAC7C,CAAC;;;;;8BAKW,CAAC,WAAW;2BACf,GAAG,EAAE,CAAC,IAAI,CAAC,YAAY,EAAE;;;;;;WAMzC;YACH,CAAC,CAAC,EAAE;KACP,CAAC;IACJ,CAAC;CACF,CAAA;AA5S6C;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;wDAAkB;AAGK;IAAjE,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;uDAAc;AAGb;IAAjE,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;uDAAc;AAE9D;IAAhB,KAAK,EAAE;oDAAsB;AAEb;IAAhB,KAAK,EAAE;yDAAuB;AAEd;IAAhB,KAAK,EAAE;yDAAuB;AAEd;IAAhB,KAAK,EAAE;0DAAyB;AAEhB;IAAhB,KAAK,EAAE;0DAAyB;AAjBtB,sBAAsB;IADlC,aAAa,CAAC,2BAA2B,CAAC;GAC9B,sBAAsB,CA6SlC","sourcesContent":["import { html, css, TemplateResult, CSSResultArray } from 'lit';\nimport { customElement, property, state } from 'lit/decorators.js';\nimport NileElement from '../../internal/nile-element';\n\n/** Smallest grid shown before the pointer starts expanding it. */\nconst MIN_ROWS = 5;\nconst MIN_COLS = 5;\n\n/**\n * Toolbar item: a table button that opens a hover grid which auto-expands as\n * the pointer reaches the last row/column (up to `maxRows`×`maxCols`), plus a\n * \"Custom\" rows×cols input for larger tables. Picking a cell or confirming the\n * custom size emits `wysiwyg-command` with `insertTable { rows, cols }`.\n */\n@customElement('nile-wysiwyg-table-picker')\nexport class NileWysiwygTablePicker extends NileElement {\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n /** Hard cap on the number of rows selectable via grid or custom input. */\n @property({ type: Number, attribute: 'max-rows', reflect: true }) maxRows = 20;\n\n /** Hard cap on the number of columns selectable via grid or custom input. */\n @property({ type: Number, attribute: 'max-cols', reflect: true }) maxCols = 20;\n\n @state() private open = false;\n\n @state() private hoverRows = 0;\n\n @state() private hoverCols = 0;\n\n @state() private customRows = '';\n\n @state() private customCols = '';\n\n public static get styles(): CSSResultArray {\n return [\n css`\n :host {\n font-family: var(\n --nile-font-family-sans-serif,\n var(--ng-font-family-body, system-ui, -apple-system, sans-serif)\n );\n position: relative;\n display: inline-flex;\n }\n\n button.trigger {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n height: 32px;\n padding: 0 6px;\n box-sizing: border-box;\n border: none;\n border-radius: var(--nile-radius-radius-lg, var(--ng-radius-md, 8px));\n background: transparent;\n cursor: pointer;\n color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900, #101828));\n }\n\n button.trigger:hover:not(:disabled) {\n background: var(--nile-colors-neutral-100, #f2f4f7);\n }\n\n button.trigger:disabled {\n opacity: 0.4;\n cursor: default;\n }\n\n .panel {\n position: absolute;\n top: calc(100% + 4px);\n left: 0;\n z-index: 30;\n padding: 8px;\n background: var(--nile-wysiwyg-popover-bg, #ffffff);\n border: 1px solid var(--nile-colors-neutral-400, #d0d5dd);\n border-radius: 8px;\n box-shadow: var(--nile-wysiwyg-popover-shadow, 0 4px 12px rgba(16, 24, 40, 0.12));\n }\n\n .grid {\n display: grid;\n gap: 2px;\n }\n\n .cell {\n width: 14px;\n height: 14px;\n border: 1px solid var(--nile-colors-neutral-300, #d0d5dd);\n border-radius: 2px;\n box-sizing: border-box;\n cursor: pointer;\n }\n\n .cell.hot {\n background: var(--nile-colors-primary-100, var(--ng-componentcolors-utility-blue-100, #dbeafe));\n border-color: var(--nile-colors-primary-600, var(--ng-componentcolors-utility-blue-600, #2563eb));\n }\n\n .label {\n margin-top: 6px;\n text-align: center;\n font-size: 12px;\n color: var(--nile-colors-neutral-600, #475467);\n }\n\n .custom {\n display: flex;\n align-items: center;\n gap: 6px;\n margin-top: 8px;\n padding-top: 8px;\n border-top: 1px solid var(--nile-colors-neutral-300, #e4e7ec);\n }\n\n .custom input {\n width: 44px;\n height: 26px;\n padding: 0 6px;\n border: 1px solid var(--nile-colors-neutral-400, #d0d5dd);\n border-radius: 6px;\n font-size: 12px;\n box-sizing: border-box;\n text-align: center;\n color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900, #101828));\n font-family: inherit;\n /* Hide native number spinners: they overlap the centered text in this\n narrow field and a stray click on the arrows mutates the value. */\n -moz-appearance: textfield;\n appearance: textfield;\n }\n\n .custom input::-webkit-outer-spin-button,\n .custom input::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n\n .custom input:focus {\n outline: none;\n border-color: var(--nile-colors-primary-600, var(--ng-componentcolors-utility-blue-600, #2563eb));\n }\n\n .custom .times {\n font-size: 12px;\n color: var(--nile-colors-neutral-600, #475467);\n }\n\n .custom button.insert {\n margin-left: auto;\n height: 26px;\n padding: 0 12px;\n border: none;\n border-radius: 6px;\n background: var(--nile-colors-primary-600, var(--ng-componentcolors-utility-blue-600, #2563eb));\n color: #ffffff;\n font-size: 12px;\n font-weight: 600;\n font-family: inherit;\n cursor: pointer;\n }\n\n .custom button.insert:hover:not(:disabled) {\n background: var(--nile-colors-primary-700, #1d4ed8);\n }\n\n .custom button.insert:disabled {\n opacity: 0.4;\n cursor: default;\n }\n `,\n ];\n }\n\n connectedCallback(): void {\n super.connectedCallback();\n document.addEventListener('mousedown', this.handleOutside);\n }\n\n disconnectedCallback(): void {\n super.disconnectedCallback();\n document.removeEventListener('mousedown', this.handleOutside);\n }\n\n private handleOutside = (event: MouseEvent): void => {\n if (this.open && !event.composedPath().includes(this)) this.open = false;\n };\n\n private pick(rows: number, cols: number): void {\n this.open = false;\n this.customRows = '';\n this.customCols = '';\n this.emit('wysiwyg-command', {\n name: 'insertTable',\n attrs: { rows, cols, withHeaderRow: true },\n });\n }\n\n /** Clamp raw input to 1..max; returns 0 when empty/invalid. */\n private clamp(raw: string, max: number): number {\n const n = parseInt(raw, 10);\n if (!Number.isFinite(n) || n < 1) return 0;\n return Math.min(n, max);\n }\n\n private insertCustom(): void {\n const rows = this.clamp(this.customRows, this.maxRows);\n const cols = this.clamp(this.customCols, this.maxCols);\n if (rows >= 1 && cols >= 1) this.pick(rows, cols);\n }\n\n public render(): TemplateResult {\n // Grow the grid by one row/col once the pointer reaches the edge, capped.\n const visibleRows = Math.min(Math.max(MIN_ROWS, this.hoverRows + 1), this.maxRows);\n const visibleCols = Math.min(Math.max(MIN_COLS, this.hoverCols + 1), this.maxCols);\n\n const cells: TemplateResult[] = [];\n for (let r = 1; r <= visibleRows; r += 1) {\n for (let c = 1; c <= visibleCols; c += 1) {\n cells.push(html`\n <span\n class=\"cell ${r <= this.hoverRows && c <= this.hoverCols ? 'hot' : ''}\"\n @mouseenter=${() => {\n this.hoverRows = r;\n this.hoverCols = c;\n }}\n @click=${() => this.pick(r, c)}\n ></span>\n `);\n }\n }\n\n const customValid =\n this.clamp(this.customRows, this.maxRows) >= 1 &&\n this.clamp(this.customCols, this.maxCols) >= 1;\n\n return html`\n <button\n type=\"button\"\n class=\"trigger\"\n part=\"button\"\n aria-label=\"Insert table\"\n aria-expanded=${this.open ? 'true' : 'false'}\n ?disabled=${this.disabled}\n @mousedown=${(e: Event) => e.preventDefault()}\n @click=${() => {\n this.open = !this.open;\n this.hoverRows = 0;\n this.hoverCols = 0;\n }}\n >\n <nile-glyph name=\"grid-01\" size=\"18\" method=\"stroke\"></nile-glyph>\n </button>\n ${this.open\n ? html`\n <div class=\"panel\">\n <div\n class=\"grid\"\n style=\"grid-template-columns: repeat(${visibleCols}, 14px)\"\n @mousedown=${(e: Event) => e.preventDefault()}\n @mouseleave=${() => {\n this.hoverRows = 0;\n this.hoverCols = 0;\n }}\n >\n ${cells}\n </div>\n <div class=\"label\" @mousedown=${(e: Event) => e.preventDefault()}>\n ${this.hoverRows > 0 ? `${this.hoverRows} × ${this.hoverCols}` : 'Pick a size'}\n </div>\n <div class=\"custom\">\n <input\n type=\"number\"\n min=\"1\"\n max=${this.maxRows}\n aria-label=\"Rows\"\n placeholder=\"Rows\"\n .value=${this.customRows}\n @input=${(e: Event) => {\n this.customRows = (e.target as HTMLInputElement).value;\n }}\n @keydown=${(e: KeyboardEvent) => {\n if (e.key === 'Enter') this.insertCustom();\n }}\n />\n <span class=\"times\">×</span>\n <input\n type=\"number\"\n min=\"1\"\n max=${this.maxCols}\n aria-label=\"Columns\"\n placeholder=\"Cols\"\n .value=${this.customCols}\n @input=${(e: Event) => {\n this.customCols = (e.target as HTMLInputElement).value;\n }}\n @keydown=${(e: KeyboardEvent) => {\n if (e.key === 'Enter') this.insertCustom();\n }}\n />\n <button\n type=\"button\"\n class=\"insert\"\n ?disabled=${!customValid}\n @click=${() => this.insertCustom()}\n >\n Insert\n </button>\n </div>\n </div>\n `\n : ''}\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-wysiwyg-table-picker': NileWysiwygTablePicker;\n }\n}\n"]}
1
+ {"version":3,"file":"table-grid-picker.js","sourceRoot":"","sources":["../../../../src/nile-wysiwyg-editor/ui/table-grid-picker.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAkC,MAAM,KAAK,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,WAAW,MAAM,6BAA6B,CAAC;AAEtD,kEAAkE;AAClE,MAAM,QAAQ,GAAG,CAAC,CAAC;AACnB,MAAM,QAAQ,GAAG,CAAC,CAAC;AAEnB;;;;;GAKG;AAEI,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,WAAW;IAAhD;;QACuC,aAAQ,GAAG,KAAK,CAAC;QAE7D,0EAA0E;QACR,YAAO,GAAG,EAAE,CAAC;QAE/E,6EAA6E;QACX,YAAO,GAAG,EAAE,CAAC;Q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AE,OAAO,EAAE,IAAI,EAAE,CAAC;uDAAc;AAE9D;IAAhB,KAAK,EAAE;oDAAsB;AAEb;IAAhB,KAAK,EAAE;yDAAuB;AAEd;IAAhB,KAAK,EAAE;yDAAuB;AAEd;IAAhB,KAAK,EAAE;0DAAyB;AAEhB;IAAhB,KAAK,EAAE;0DAAyB;AAjBtB,sBAAsB;IADlC,aAAa,CAAC,2BAA2B,CAAC;GAC9B,sBAAsB,CA6SlC","sourcesContent":["import { html, css, TemplateResult, CSSResultArray } from 'lit';\nimport { customElement, property, state } from 'lit/decorators.js';\nimport NileElement from '../../internal/nile-element';\n\n/** Smallest grid shown before the pointer starts expanding it. */\nconst MIN_ROWS = 5;\nconst MIN_COLS = 5;\n\n/**\n * Toolbar item: a table button that opens a hover grid which auto-expands as\n * the pointer reaches the last row/column (up to `maxRows`×`maxCols`), plus a\n * \"Custom\" rows×cols input for larger tables. Picking a cell or confirming the\n * custom size emits `wysiwyg-command` with `insertTable { rows, cols }`.\n */\n@customElement('nile-wysiwyg-table-picker')\nexport class NileWysiwygTablePicker extends NileElement {\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n /** Hard cap on the number of rows selectable via grid or custom input. */\n @property({ type: Number, attribute: 'max-rows', reflect: true }) maxRows = 20;\n\n /** Hard cap on the number of columns selectable via grid or custom input. */\n @property({ type: Number, attribute: 'max-cols', reflect: true }) maxCols = 20;\n\n @state() private open = false;\n\n @state() private hoverRows = 0;\n\n @state() private hoverCols = 0;\n\n @state() private customRows = '';\n\n @state() private customCols = '';\n\n public static get styles(): CSSResultArray {\n return [\n css`\n :host {\n font-family: var(\n --nile-font-family-sans-serif,\n var(--ng-font-family-body, system-ui, -apple-system, sans-serif)\n );\n position: relative;\n display: inline-flex;\n }\n\n button.trigger {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: 32px;\n height: 32px;\n padding: 0 6px;\n box-sizing: border-box;\n border: none;\n border-radius: var(--nile-radius-radius-lg, var(--ng-radius-md, 8px));\n background: transparent;\n cursor: pointer;\n color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));\n }\n\n button.trigger:hover:not(:disabled) {\n background: var(--nile-colors-neutral-100, var(--ng-colors-bg-secondary));\n }\n\n button.trigger:disabled {\n opacity: 0.4;\n cursor: default;\n }\n\n .panel {\n position: absolute;\n top: calc(100% + 4px);\n left: 0;\n z-index: 30;\n padding: 8px;\n background: var(--nile-wysiwyg-popover-bg, var(--ng-colors-bg-primary));\n border: 1px solid var(--nile-colors-neutral-400, var(--ng-colors-border-primary));\n border-radius: 8px;\n box-shadow: var(--nile-wysiwyg-popover-shadow, 0 4px 12px rgba(16, 24, 40, 0.12));\n }\n\n .grid {\n display: grid;\n gap: 2px;\n }\n\n .cell {\n width: 14px;\n height: 14px;\n border: 1px solid var(--nile-colors-neutral-300, var(--ng-colors-border-primary));\n border-radius: 2px;\n box-sizing: border-box;\n cursor: pointer;\n }\n\n .cell.hot {\n background: var(--nile-colors-primary-100, var(--ng-componentcolors-utility-blue-100));\n border-color: var(--nile-colors-primary-600, var(--ng-componentcolors-utility-blue-600));\n }\n\n .label {\n margin-top: 6px;\n text-align: center;\n font-size: 12px;\n color: var(--nile-colors-neutral-600, var(--ng-colors-text-tertiary-600));\n }\n\n .custom {\n display: flex;\n align-items: center;\n gap: 6px;\n margin-top: 8px;\n padding-top: 8px;\n border-top: 1px solid var(--nile-colors-neutral-300, var(--ng-colors-border-secondary));\n }\n\n .custom input {\n width: 44px;\n height: 26px;\n padding: 0 6px;\n border: 1px solid var(--nile-colors-neutral-400, var(--ng-colors-border-primary));\n border-radius: 6px;\n font-size: 12px;\n box-sizing: border-box;\n text-align: center;\n color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));\n font-family: inherit;\n /* Hide native number spinners: they overlap the centered text in this\n narrow field and a stray click on the arrows mutates the value. */\n -moz-appearance: textfield;\n appearance: textfield;\n }\n\n .custom input::-webkit-outer-spin-button,\n .custom input::-webkit-inner-spin-button {\n -webkit-appearance: none;\n margin: 0;\n }\n\n .custom input:focus {\n outline: none;\n border-color: var(--nile-colors-primary-600, var(--ng-componentcolors-utility-blue-600));\n }\n\n .custom .times {\n font-size: 12px;\n color: var(--nile-colors-neutral-600, var(--ng-colors-text-tertiary-600));\n }\n\n .custom button.insert {\n margin-left: auto;\n height: 26px;\n padding: 0 12px;\n border: none;\n border-radius: 6px;\n background: var(--nile-colors-primary-600, var(--ng-componentcolors-utility-blue-600));\n color: var(--ng-colors-text-white);\n font-size: 12px;\n font-weight: 600;\n font-family: inherit;\n cursor: pointer;\n }\n\n .custom button.insert:hover:not(:disabled) {\n background: var(--nile-colors-primary-700, var(--ng-componentcolors-utility-blue-700));\n }\n\n .custom button.insert:disabled {\n opacity: 0.4;\n cursor: default;\n }\n `,\n ];\n }\n\n connectedCallback(): void {\n super.connectedCallback();\n document.addEventListener('mousedown', this.handleOutside);\n }\n\n disconnectedCallback(): void {\n super.disconnectedCallback();\n document.removeEventListener('mousedown', this.handleOutside);\n }\n\n private handleOutside = (event: MouseEvent): void => {\n if (this.open && !event.composedPath().includes(this)) this.open = false;\n };\n\n private pick(rows: number, cols: number): void {\n this.open = false;\n this.customRows = '';\n this.customCols = '';\n this.emit('wysiwyg-command', {\n name: 'insertTable',\n attrs: { rows, cols, withHeaderRow: true },\n });\n }\n\n /** Clamp raw input to 1..max; returns 0 when empty/invalid. */\n private clamp(raw: string, max: number): number {\n const n = parseInt(raw, 10);\n if (!Number.isFinite(n) || n < 1) return 0;\n return Math.min(n, max);\n }\n\n private insertCustom(): void {\n const rows = this.clamp(this.customRows, this.maxRows);\n const cols = this.clamp(this.customCols, this.maxCols);\n if (rows >= 1 && cols >= 1) this.pick(rows, cols);\n }\n\n public render(): TemplateResult {\n // Grow the grid by one row/col once the pointer reaches the edge, capped.\n const visibleRows = Math.min(Math.max(MIN_ROWS, this.hoverRows + 1), this.maxRows);\n const visibleCols = Math.min(Math.max(MIN_COLS, this.hoverCols + 1), this.maxCols);\n\n const cells: TemplateResult[] = [];\n for (let r = 1; r <= visibleRows; r += 1) {\n for (let c = 1; c <= visibleCols; c += 1) {\n cells.push(html`\n <span\n class=\"cell ${r <= this.hoverRows && c <= this.hoverCols ? 'hot' : ''}\"\n @mouseenter=${() => {\n this.hoverRows = r;\n this.hoverCols = c;\n }}\n @click=${() => this.pick(r, c)}\n ></span>\n `);\n }\n }\n\n const customValid =\n this.clamp(this.customRows, this.maxRows) >= 1 &&\n this.clamp(this.customCols, this.maxCols) >= 1;\n\n return html`\n <button\n type=\"button\"\n class=\"trigger\"\n part=\"button\"\n aria-label=\"Insert table\"\n aria-expanded=${this.open ? 'true' : 'false'}\n ?disabled=${this.disabled}\n @mousedown=${(e: Event) => e.preventDefault()}\n @click=${() => {\n this.open = !this.open;\n this.hoverRows = 0;\n this.hoverCols = 0;\n }}\n >\n <nile-glyph name=\"grid-01\" size=\"18\" method=\"stroke\"></nile-glyph>\n </button>\n ${this.open\n ? html`\n <div class=\"panel\">\n <div\n class=\"grid\"\n style=\"grid-template-columns: repeat(${visibleCols}, 14px)\"\n @mousedown=${(e: Event) => e.preventDefault()}\n @mouseleave=${() => {\n this.hoverRows = 0;\n this.hoverCols = 0;\n }}\n >\n ${cells}\n </div>\n <div class=\"label\" @mousedown=${(e: Event) => e.preventDefault()}>\n ${this.hoverRows > 0 ? `${this.hoverRows} × ${this.hoverCols}` : 'Pick a size'}\n </div>\n <div class=\"custom\">\n <input\n type=\"number\"\n min=\"1\"\n max=${this.maxRows}\n aria-label=\"Rows\"\n placeholder=\"Rows\"\n .value=${this.customRows}\n @input=${(e: Event) => {\n this.customRows = (e.target as HTMLInputElement).value;\n }}\n @keydown=${(e: KeyboardEvent) => {\n if (e.key === 'Enter') this.insertCustom();\n }}\n />\n <span class=\"times\">×</span>\n <input\n type=\"number\"\n min=\"1\"\n max=${this.maxCols}\n aria-label=\"Columns\"\n placeholder=\"Cols\"\n .value=${this.customCols}\n @input=${(e: Event) => {\n this.customCols = (e.target as HTMLInputElement).value;\n }}\n @keydown=${(e: KeyboardEvent) => {\n if (e.key === 'Enter') this.insertCustom();\n }}\n />\n <button\n type=\"button\"\n class=\"insert\"\n ?disabled=${!customValid}\n @click=${() => this.insertCustom()}\n >\n Insert\n </button>\n </div>\n </div>\n `\n : ''}\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-wysiwyg-table-picker': NileWysiwygTablePicker;\n }\n}\n"]}
@@ -47,8 +47,8 @@ let NileWysiwygTableMenu = class NileWysiwygTableMenu extends NileElement {
47
47
  display: flex;
48
48
  gap: 2px;
49
49
  padding: 4px;
50
- background: var(--nile-wysiwyg-popover-bg, #ffffff);
51
- border: 1px solid var(--nile-colors-neutral-400, #d0d5dd);
50
+ background: var(--nile-wysiwyg-popover-bg, var(--ng-colors-bg-primary));
51
+ border: 1px solid var(--nile-colors-neutral-400, var(--ng-colors-border-primary));
52
52
  border-radius: 8px;
53
53
  box-shadow: var(--nile-wysiwyg-popover-shadow, 0 4px 12px rgba(16, 24, 40, 0.12));
54
54
  }
@@ -66,11 +66,11 @@ let NileWysiwygTableMenu = class NileWysiwygTableMenu extends NileElement {
66
66
  cursor: pointer;
67
67
  font-size: 12px;
68
68
  font-weight: 600;
69
- color: var(--nile-colors-neutral-700, #344054);
69
+ color: var(--nile-colors-neutral-700, var(--ng-colors-text-secondary-700));
70
70
  }
71
71
 
72
72
  button:hover {
73
- background: var(--nile-colors-neutral-100, #f2f4f7);
73
+ background: var(--nile-colors-neutral-100, var(--ng-colors-bg-secondary));
74
74
  }
75
75
  `,
76
76
  ];
@@ -1 +1 @@
1
- {"version":3,"file":"table-menu.js","sourceRoot":"","sources":["../../../../src/nile-wysiwyg-editor/ui/table-menu.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAkC,MAAM,KAAK,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,WAAW,MAAM,6BAA6B,CAAC;A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B,OAAO;YACL,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4CF;SACF,CAAC;IACJ,CAAC;IAEM,MAAM;QACX,OAAO,IAAI,CAAA;uDACwC,CAAC,CAAQ,EAAE,EAAE,CAAC,CAAC,CAAC,cAAc,EAAE;UAC7E,GAAG,CAAC,GAAG,CACP,EAAE,CAAC,EAAE,CAAC,IAAI,CAAA;yCACqB,EAAE,CAAC,KAAK;;;6BAGpB,EAAE,CAAC,KAAK;yBACZ,GAAG,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC;;kBAE5D,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC;;;WAG/B,CACF;;KAEJ,CAAC;IACJ,CAAC;CACF,CAAA;AAvE6C;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;kDAAc;AAD9C,oBAAoB;IADhC,aAAa,CAAC,yBAAyB,CAAC;GAC5B,oBAAoB,CAwEhC","sourcesContent":["import { html, css, TemplateResult, CSSResultArray } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport NileElement from '../../internal/nile-element';\nimport { renderGlyph } from '../../internal/glyph';\nimport type { CommandName } from '../engine/commands';\nimport '../../nile-lite-tooltip/nile-lite-tooltip';\n\ninterface TableOp {\n name: CommandName;\n label: string;\n icon: string;\n}\n\nconst OPS: TableOp[] = [\n { name: 'addRowBefore', label: 'Add row above', icon: 'ng-between-vertical-start' },\n { name: 'addRowAfter', label: 'Add row below', icon: 'ng-between-vertical-end' },\n { name: 'addColumnBefore', label: 'Add column left', icon: 'ng-between-horizontal-start' },\n { name: 'addColumnAfter', label: 'Add column right', icon: 'ng-between-horizontal-end' },\n { name: 'deleteRow', label: 'Delete row', icon: 'ng-rows-2' },\n { name: 'deleteColumn', label: 'Delete column', icon: 'ng-columns-2' },\n { name: 'mergeCells', label: 'Merge cells', icon: 'ng-table-cells-merge' },\n { name: 'splitCell', label: 'Split cell', icon: 'ng-table-cells-split' },\n { name: 'toggleHeaderRow', label: 'Toggle header row', icon: 'ng-panel-top' },\n { name: 'toggleLayoutTable', label: 'Toggle layout table (borderless)', icon: 'ng-grid-2x2' },\n { name: 'deleteTable', label: 'Delete table', icon: 'ng-trash-2' },\n];\n\n/**\n * Compact floating bar shown while the cursor is inside a table. The host\n * positions it; operations bubble up as `wysiwyg-command` events.\n */\n@customElement('nile-wysiwyg-table-menu')\nexport class NileWysiwygTableMenu extends NileElement {\n @property({ type: Boolean, reflect: true }) open = false;\n\n public static get styles(): CSSResultArray {\n return [\n css`\n :host {\n font-family: var(\n --nile-font-family-sans-serif,\n var(--ng-font-family-body, system-ui, -apple-system, sans-serif)\n );\n position: absolute;\n z-index: 15;\n display: none;\n }\n\n :host([open]) {\n display: block;\n }\n\n .menu {\n display: flex;\n gap: 2px;\n padding: 4px;\n background: var(--nile-wysiwyg-popover-bg, #ffffff);\n border: 1px solid var(--nile-colors-neutral-400, #d0d5dd);\n border-radius: 8px;\n box-shadow: var(--nile-wysiwyg-popover-shadow, 0 4px 12px rgba(16, 24, 40, 0.12));\n }\n\n button {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-width: 26px;\n height: 26px;\n padding: 0 4px;\n border: none;\n border-radius: 5px;\n background: transparent;\n cursor: pointer;\n font-size: 12px;\n font-weight: 600;\n color: var(--nile-colors-neutral-700, #344054);\n }\n\n button:hover {\n background: var(--nile-colors-neutral-100, #f2f4f7);\n }\n `,\n ];\n }\n\n public render(): TemplateResult {\n return html`\n <div class=\"menu\" part=\"table-menu\" @mousedown=${(e: Event) => e.preventDefault()}>\n ${OPS.map(\n op => html`\n <nile-lite-tooltip content=${op.label} placement=\"top\">\n <button\n type=\"button\"\n aria-label=${op.label}\n @click=${() => this.emit('wysiwyg-command', { name: op.name })}\n >\n ${renderGlyph(op.icon, 16)}\n </button>\n </nile-lite-tooltip>\n `\n )}\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-wysiwyg-table-menu': NileWysiwygTableMenu;\n }\n}\n"]}
1
+ {"version":3,"file":"table-menu.js","sourceRoot":"","sources":["../../../../src/nile-wysiwyg-editor/ui/table-menu.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAkC,MAAM,KAAK,CAAC;AAChE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,WAAW,MAAM,6BAA6B,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,OAAO,2CAA2C,CAAC;AAQnD,MAAM,GAAG,GAAc;IACrB,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,eAAe,EAAE,IAAI,EAAE,2BAA2B,EAAE;IACnF,EAAE,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,eAAe,EAAE,IAAI,EAAE,yBAAyB,EAAE;IAChF,EAAE,IAAI,EAAE,iBAAiB,EAAE,KAAK,EAAE,iBAAiB,EAAE,IAAI,EAAE,6BAA6B,EAAE;IAC1F,EAAE,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,kBAAkB,EAAE,IAAI,EAAE,2BAA2B,EAAE;IACxF,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,WAAW,EAAE;IAC7D,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,eAAe,EAAE,IAAI,EAAE,cAAc,EAAE;IACtE,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,sBAAsB,EAAE;IAC1E,EAAE,IAAI,EAAE,WAAW,EAAE,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,sBAAsB,EAAE;IACxE,EAAE,IAAI,EAAE,iBAAiB,EAAE,KAAK,EAAE,mBAAmB,EAAE,IAAI,EAAE,cAAc,EAAE;IAC7E,EAAE,IAAI,EAAE,mBAAmB,EAAE,KAAK,EAAE,kCAAkC,EAAE,IAAI,EAAE,aAAa,EAAE;IAC7F,EAAE,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,cAAc,EAAE,IAAI,EAAE,YAAY,EAAE;CACnE,CAAC;AAEF;;;GAGG;AAEI,IAAM,oBAAoB,GAA1B,MAAM,oBAAqB,SAAQ,WAAW;IAA9C;;QACuC,SAAI,GAAG,KAAK,CAAC;IAuE3D,CAAC;IArEQ,MAAM,KAAK,MAAM;QACtB,OAAO;YACL,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4CF;SACF,CAAC;IACJ,CAAC;IAEM,MAAM;QACX,OAAO,IAAI,CAAA;uDACwC,CAAC,CAAQ,EAAE,EAAE,CAAC,CAAC,CAAC,cAAc,EAAE;UAC7E,GAAG,CAAC,GAAG,CACP,EAAE,CAAC,EAAE,CAAC,IAAI,CAAA;yCACqB,EAAE,CAAC,KAAK;;;6BAGpB,EAAE,CAAC,KAAK;yBACZ,GAAG,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE,EAAE,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC;;kBAE5D,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC;;;WAG/B,CACF;;KAEJ,CAAC;IACJ,CAAC;CACF,CAAA;AAvE6C;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;kDAAc;AAD9C,oBAAoB;IADhC,aAAa,CAAC,yBAAyB,CAAC;GAC5B,oBAAoB,CAwEhC","sourcesContent":["import { html, css, TemplateResult, CSSResultArray } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport NileElement from '../../internal/nile-element';\nimport { renderGlyph } from '../../internal/glyph';\nimport type { CommandName } from '../engine/commands';\nimport '../../nile-lite-tooltip/nile-lite-tooltip';\n\ninterface TableOp {\n name: CommandName;\n label: string;\n icon: string;\n}\n\nconst OPS: TableOp[] = [\n { name: 'addRowBefore', label: 'Add row above', icon: 'ng-between-vertical-start' },\n { name: 'addRowAfter', label: 'Add row below', icon: 'ng-between-vertical-end' },\n { name: 'addColumnBefore', label: 'Add column left', icon: 'ng-between-horizontal-start' },\n { name: 'addColumnAfter', label: 'Add column right', icon: 'ng-between-horizontal-end' },\n { name: 'deleteRow', label: 'Delete row', icon: 'ng-rows-2' },\n { name: 'deleteColumn', label: 'Delete column', icon: 'ng-columns-2' },\n { name: 'mergeCells', label: 'Merge cells', icon: 'ng-table-cells-merge' },\n { name: 'splitCell', label: 'Split cell', icon: 'ng-table-cells-split' },\n { name: 'toggleHeaderRow', label: 'Toggle header row', icon: 'ng-panel-top' },\n { name: 'toggleLayoutTable', label: 'Toggle layout table (borderless)', icon: 'ng-grid-2x2' },\n { name: 'deleteTable', label: 'Delete table', icon: 'ng-trash-2' },\n];\n\n/**\n * Compact floating bar shown while the cursor is inside a table. The host\n * positions it; operations bubble up as `wysiwyg-command` events.\n */\n@customElement('nile-wysiwyg-table-menu')\nexport class NileWysiwygTableMenu extends NileElement {\n @property({ type: Boolean, reflect: true }) open = false;\n\n public static get styles(): CSSResultArray {\n return [\n css`\n :host {\n font-family: var(\n --nile-font-family-sans-serif,\n var(--ng-font-family-body, system-ui, -apple-system, sans-serif)\n );\n position: absolute;\n z-index: 15;\n display: none;\n }\n\n :host([open]) {\n display: block;\n }\n\n .menu {\n display: flex;\n gap: 2px;\n padding: 4px;\n background: var(--nile-wysiwyg-popover-bg, var(--ng-colors-bg-primary));\n border: 1px solid var(--nile-colors-neutral-400, var(--ng-colors-border-primary));\n border-radius: 8px;\n box-shadow: var(--nile-wysiwyg-popover-shadow, 0 4px 12px rgba(16, 24, 40, 0.12));\n }\n\n button {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-width: 26px;\n height: 26px;\n padding: 0 4px;\n border: none;\n border-radius: 5px;\n background: transparent;\n cursor: pointer;\n font-size: 12px;\n font-weight: 600;\n color: var(--nile-colors-neutral-700, var(--ng-colors-text-secondary-700));\n }\n\n button:hover {\n background: var(--nile-colors-neutral-100, var(--ng-colors-bg-secondary));\n }\n `,\n ];\n }\n\n public render(): TemplateResult {\n return html`\n <div class=\"menu\" part=\"table-menu\" @mousedown=${(e: Event) => e.preventDefault()}>\n ${OPS.map(\n op => html`\n <nile-lite-tooltip content=${op.label} placement=\"top\">\n <button\n type=\"button\"\n aria-label=${op.label}\n @click=${() => this.emit('wysiwyg-command', { name: op.name })}\n >\n ${renderGlyph(op.icon, 16)}\n </button>\n </nile-lite-tooltip>\n `\n )}\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-wysiwyg-table-menu': NileWysiwygTableMenu;\n }\n}\n"]}
@@ -1,6 +1,6 @@
1
1
  // Version utility - placeholders will be replaced during build
2
- export const NILE_ELEMENTS_VERSION = '1.9.11';
3
- export const NILE_VERSION = '1.2.7';
2
+ export const NILE_ELEMENTS_VERSION = '2.0.1';
3
+ export const NILE_VERSION = '1.2.8';
4
4
  // Set global versions for runtime access
5
5
  if (typeof window !== 'undefined') {
6
6
  window.nileElementsVersion = NILE_ELEMENTS_VERSION;
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,MAAM,CAAC,MAAM,qBAAqB,GAAG,2BAA2B,CAAC;AACjE,MAAM,CAAC,MAAM,YAAY,GAAG,kBAAkB,CAAC;AAE/C,yCAAyC;AACzC,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,CAAC;IACjC,MAAc,CAAC,mBAAmB,GAAG,qBAAqB,CAAC;IAC3D,MAAc,CAAC,WAAW,GAAG,YAAY,CAAC;IAC3C,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,IAAI,EAAE,GAAG,EAAE,EAAE,QAAQ,EAAE,YAAY,EAAE,EAAE,CAAC;AACzE,CAAC","sourcesContent":["// Version utility - placeholders will be replaced during build\nexport const NILE_ELEMENTS_VERSION = '1.9.11';\nexport const NILE_VERSION = '1.2.7';\n\n// Set global versions for runtime access\nif (typeof window !== 'undefined') {\n (window as any).nileElementsVersion = NILE_ELEMENTS_VERSION;\n (window as any).nileVersion = NILE_VERSION;\n window.process = window.process || { env: { NODE_ENV: 'production' } };\n}\n"]}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,MAAM,CAAC,MAAM,qBAAqB,GAAG,2BAA2B,CAAC;AACjE,MAAM,CAAC,MAAM,YAAY,GAAG,kBAAkB,CAAC;AAE/C,yCAAyC;AACzC,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,CAAC;IACjC,MAAc,CAAC,mBAAmB,GAAG,qBAAqB,CAAC;IAC3D,MAAc,CAAC,WAAW,GAAG,YAAY,CAAC;IAC3C,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,IAAI,EAAE,GAAG,EAAE,EAAE,QAAQ,EAAE,YAAY,EAAE,EAAE,CAAC;AACzE,CAAC","sourcesContent":["// Version utility - placeholders will be replaced during build\nexport const NILE_ELEMENTS_VERSION = '2.0.1';\nexport const NILE_VERSION = '1.2.8';\n\n// Set global versions for runtime access\nif (typeof window !== 'undefined') {\n (window as any).nileElementsVersion = NILE_ELEMENTS_VERSION;\n (window as any).nileVersion = NILE_VERSION;\n window.process = window.process || { env: { NODE_ENV: 'production' } };\n}\n"]}