@nuraly/lumenui 0.1.0 → 0.2.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 (312) hide show
  1. package/dist/nuralyui.bundle.js +23024 -17355
  2. package/dist/nuralyui.bundle.js.gz +0 -0
  3. package/dist/src/components/alert/alert.component.d.ts +8 -5
  4. package/dist/src/components/alert/alert.component.js +24 -20
  5. package/dist/src/components/alert/alert.style.d.ts +0 -7
  6. package/dist/src/components/alert/alert.style.js +48 -90
  7. package/dist/src/components/alert/bundle.js +82 -108
  8. package/dist/src/components/alert/bundle.js.gz +0 -0
  9. package/dist/src/components/badge/badge.component.d.ts +9 -8
  10. package/dist/src/components/badge/badge.component.js +17 -14
  11. package/dist/src/components/badge/badge.style.d.ts +0 -7
  12. package/dist/src/components/badge/badge.style.js +49 -107
  13. package/dist/src/components/badge/bundle.js +81 -119
  14. package/dist/src/components/badge/bundle.js.gz +0 -0
  15. package/dist/src/components/breadcrumb/breadcrumb.component.d.ts +8 -10
  16. package/dist/src/components/breadcrumb/breadcrumb.component.js +16 -15
  17. package/dist/src/components/breadcrumb/breadcrumb.style.d.ts +0 -7
  18. package/dist/src/components/breadcrumb/breadcrumb.style.js +42 -60
  19. package/dist/src/components/breadcrumb/bundle.js +96 -93
  20. package/dist/src/components/breadcrumb/bundle.js.gz +0 -0
  21. package/dist/src/components/button/bundle.js +221 -470
  22. package/dist/src/components/button/bundle.js.gz +0 -0
  23. package/dist/src/components/button/button.component.d.ts +2 -1
  24. package/dist/src/components/button/button.component.js +6 -6
  25. package/dist/src/components/button/button.style.d.ts +0 -7
  26. package/dist/src/components/button/button.style.js +167 -433
  27. package/dist/src/components/canvas/base-canvas.component.d.ts +2 -1
  28. package/dist/src/components/canvas/base-canvas.component.js +1 -0
  29. package/dist/src/components/canvas/bundle.js +16919 -9595
  30. package/dist/src/components/canvas/bundle.js.gz +0 -0
  31. package/dist/src/components/canvas/canvas.constants.d.ts +1 -1
  32. package/dist/src/components/canvas/canvas.constants.js +1 -1
  33. package/dist/src/components/canvas/chatbot-panel.style.js +31 -31
  34. package/dist/src/components/canvas/index.d.ts +2 -0
  35. package/dist/src/components/canvas/index.js +3 -0
  36. package/dist/src/components/canvas/whiteboard-canvas.component.d.ts +3 -1
  37. package/dist/src/components/canvas/whiteboard-canvas.component.js +19 -1
  38. package/dist/src/components/canvas/whiteboard-canvas.style.js +159 -138
  39. package/dist/src/components/canvas/whiteboard-node.component.d.ts +2 -1
  40. package/dist/src/components/canvas/whiteboard-node.component.js +2 -1
  41. package/dist/src/components/canvas/whiteboard-node.style.js +44 -44
  42. package/dist/src/components/canvas/workflow-canvas-only.d.ts +4 -0
  43. package/dist/src/components/canvas/workflow-canvas-only.js +5 -0
  44. package/dist/src/components/canvas/workflow-canvas.component.d.ts +3 -1
  45. package/dist/src/components/canvas/workflow-canvas.component.js +24 -2
  46. package/dist/src/components/canvas/workflow-canvas.style.js +776 -648
  47. package/dist/src/components/canvas/workflow-canvas.types.d.ts +113 -4
  48. package/dist/src/components/canvas/workflow-canvas.types.js +646 -3
  49. package/dist/src/components/canvas/workflow-node.component.d.ts +3 -2
  50. package/dist/src/components/canvas/workflow-node.component.js +5 -5
  51. package/dist/src/components/canvas/workflow-node.style.js +183 -181
  52. package/dist/src/components/card/bundle.js +43 -35
  53. package/dist/src/components/card/bundle.js.gz +0 -0
  54. package/dist/src/components/card/card.component.d.ts +6 -1
  55. package/dist/src/components/card/card.component.js +8 -2
  56. package/dist/src/components/card/card.style.js +26 -30
  57. package/dist/src/components/carousel/bundle.js +8 -8
  58. package/dist/src/components/carousel/bundle.js.gz +0 -0
  59. package/dist/src/components/carousel/carousel.component.d.ts +12 -0
  60. package/dist/src/components/carousel/carousel.component.js +16 -4
  61. package/dist/src/components/chatbot/bundle.js +422 -406
  62. package/dist/src/components/chatbot/bundle.js.gz +0 -0
  63. package/dist/src/components/chatbot/chatbot.component.d.ts +2 -1
  64. package/dist/src/components/chatbot/chatbot.component.js +1 -0
  65. package/dist/src/components/chatbot/chatbot.style.js +277 -277
  66. package/dist/src/components/checkbox/bundle.js +86 -245
  67. package/dist/src/components/checkbox/bundle.js.gz +0 -0
  68. package/dist/src/components/checkbox/checkbox.component.d.ts +5 -2
  69. package/dist/src/components/checkbox/checkbox.component.js +11 -13
  70. package/dist/src/components/checkbox/checkbox.style.js +56 -231
  71. package/dist/src/components/code-editor/bundle.js +151 -25
  72. package/dist/src/components/code-editor/bundle.js.gz +0 -0
  73. package/dist/src/components/code-editor/code-editor.component.d.ts +18 -56
  74. package/dist/src/components/code-editor/code-editor.component.js +141 -394
  75. package/dist/src/components/code-editor/code-editor.style.js +139 -15
  76. package/dist/src/components/collapse/bundle.js +97 -84
  77. package/dist/src/components/collapse/bundle.js.gz +0 -0
  78. package/dist/src/components/collapse/collapse.component.d.ts +7 -1
  79. package/dist/src/components/collapse/collapse.component.js +11 -2
  80. package/dist/src/components/collapse/collapse.style.js +60 -60
  81. package/dist/src/components/colorpicker/bundle.js +85 -48
  82. package/dist/src/components/colorpicker/bundle.js.gz +0 -0
  83. package/dist/src/components/colorpicker/color-holder.component.d.ts +2 -4
  84. package/dist/src/components/colorpicker/color-holder.component.js +5 -6
  85. package/dist/src/components/colorpicker/color-holder.style.js +11 -11
  86. package/dist/src/components/colorpicker/color-picker.component.d.ts +2 -1
  87. package/dist/src/components/colorpicker/color-picker.component.js +1 -0
  88. package/dist/src/components/colorpicker/color-picker.style.js +12 -12
  89. package/dist/src/components/colorpicker/default-color-sets.component.d.ts +2 -2
  90. package/dist/src/components/colorpicker/default-color-sets.component.js +4 -3
  91. package/dist/src/components/colorpicker/default-color-sets.style.js +5 -5
  92. package/dist/src/components/container/bundle.js +24 -14
  93. package/dist/src/components/container/bundle.js.gz +0 -0
  94. package/dist/src/components/container/container.component.d.ts +4 -1
  95. package/dist/src/components/container/container.component.js +7 -5
  96. package/dist/src/components/container/container.style.js +9 -9
  97. package/dist/src/components/datepicker/bundle.js +193 -177
  98. package/dist/src/components/datepicker/bundle.js.gz +0 -0
  99. package/dist/src/components/datepicker/datepicker.component.d.ts +2 -1
  100. package/dist/src/components/datepicker/datepicker.component.js +1 -0
  101. package/dist/src/components/datepicker/datepicker.style.js +65 -65
  102. package/dist/src/components/datepicker/datepicker.style.variables.js +91 -91
  103. package/dist/src/components/db-connection-select/bundle.js +7 -6
  104. package/dist/src/components/db-connection-select/bundle.js.gz +0 -0
  105. package/dist/src/components/db-connection-select/db-connection-select.component.d.ts +3 -0
  106. package/dist/src/components/db-connection-select/db-connection-select.component.js +4 -0
  107. package/dist/src/components/divider/bundle.js +61 -35
  108. package/dist/src/components/divider/bundle.js.gz +0 -0
  109. package/dist/src/components/divider/divider.component.d.ts +4 -6
  110. package/dist/src/components/divider/divider.component.js +10 -14
  111. package/dist/src/components/divider/divider.style.js +41 -31
  112. package/dist/src/components/document/bundle.js +50 -48
  113. package/dist/src/components/document/bundle.js.gz +0 -0
  114. package/dist/src/components/document/document.component.d.ts +12 -1
  115. package/dist/src/components/document/document.component.js +18 -6
  116. package/dist/src/components/document/document.style.js +21 -36
  117. package/dist/src/components/dropdown/bundle.js +117 -101
  118. package/dist/src/components/dropdown/bundle.js.gz +0 -0
  119. package/dist/src/components/dropdown/dropdown.component.d.ts +2 -1
  120. package/dist/src/components/dropdown/dropdown.component.js +1 -0
  121. package/dist/src/components/dropdown/dropdown.style.js +68 -68
  122. package/dist/src/components/file-upload/bundle.js +82 -76
  123. package/dist/src/components/file-upload/bundle.js.gz +0 -0
  124. package/dist/src/components/file-upload/file-upload.component.d.ts +2 -1
  125. package/dist/src/components/file-upload/file-upload.component.js +1 -0
  126. package/dist/src/components/file-upload/styles.js +59 -59
  127. package/dist/src/components/flex/bundle.js +18 -8
  128. package/dist/src/components/flex/bundle.js.gz +0 -0
  129. package/dist/src/components/flex/flex.component.d.ts +4 -1
  130. package/dist/src/components/flex/flex.component.js +7 -4
  131. package/dist/src/components/flex/flex.style.js +2 -2
  132. package/dist/src/components/form/bundle.js +22 -10
  133. package/dist/src/components/form/bundle.js.gz +0 -0
  134. package/dist/src/components/form/form.component.d.ts +4 -1
  135. package/dist/src/components/form/form.component.js +5 -1
  136. package/dist/src/components/form/form.style.js +2 -2
  137. package/dist/src/components/grid/bundle.js +26 -14
  138. package/dist/src/components/grid/bundle.js.gz +0 -0
  139. package/dist/src/components/grid/col.component.d.ts +4 -1
  140. package/dist/src/components/grid/col.component.js +4 -1
  141. package/dist/src/components/grid/col.style.js +2 -2
  142. package/dist/src/components/grid/row.component.d.ts +4 -1
  143. package/dist/src/components/grid/row.component.js +4 -1
  144. package/dist/src/components/grid/row.style.js +2 -2
  145. package/dist/src/components/icon/bundle.js +78 -252
  146. package/dist/src/components/icon/bundle.js.gz +0 -0
  147. package/dist/src/components/icon/icon-paths.d.ts +2 -0
  148. package/dist/src/components/icon/icon-paths.js +141 -0
  149. package/dist/src/components/icon/icon.component.d.ts +10 -12
  150. package/dist/src/components/icon/icon.component.js +42 -93
  151. package/dist/src/components/icon/icon.style.js +42 -130
  152. package/dist/src/components/icon/icon.variables.js +9 -9
  153. package/dist/src/components/iconpicker/bundle.js +859 -1511
  154. package/dist/src/components/iconpicker/bundle.js.gz +0 -0
  155. package/dist/src/components/iconpicker/icon-picker.component.d.ts +2 -1
  156. package/dist/src/components/iconpicker/icon-picker.component.js +1 -0
  157. package/dist/src/components/iconpicker/icon-picker.style.js +13 -13
  158. package/dist/src/components/image/bundle.js +43 -33
  159. package/dist/src/components/image/bundle.js.gz +0 -0
  160. package/dist/src/components/image/image.component.d.ts +10 -1
  161. package/dist/src/components/image/image.component.js +13 -3
  162. package/dist/src/components/image/image.style.js +19 -26
  163. package/dist/src/components/input/bundle.js +420 -644
  164. package/dist/src/components/input/bundle.js.gz +0 -0
  165. package/dist/src/components/input/input.component.d.ts +16 -3
  166. package/dist/src/components/input/input.component.js +43 -27
  167. package/dist/src/components/input/input.style.d.ts +1 -1
  168. package/dist/src/components/input/input.style.js +331 -634
  169. package/dist/src/components/kv-secret-select/bundle.js +2 -1
  170. package/dist/src/components/kv-secret-select/bundle.js.gz +0 -0
  171. package/dist/src/components/kv-secret-select/kv-secret-select.component.d.ts +3 -0
  172. package/dist/src/components/kv-secret-select/kv-secret-select.component.js +4 -0
  173. package/dist/src/components/label/bundle.js +37 -60
  174. package/dist/src/components/label/bundle.js.gz +0 -0
  175. package/dist/src/components/label/label.component.d.ts +8 -4
  176. package/dist/src/components/label/label.component.js +9 -14
  177. package/dist/src/components/label/label.style.js +17 -25
  178. package/dist/src/components/label/label.style.variables.js +18 -18
  179. package/dist/src/components/layout/bundle.js +86 -70
  180. package/dist/src/components/layout/bundle.js.gz +0 -0
  181. package/dist/src/components/layout/content.component.d.ts +2 -1
  182. package/dist/src/components/layout/content.component.js +2 -1
  183. package/dist/src/components/layout/content.style.js +3 -3
  184. package/dist/src/components/layout/footer.component.d.ts +2 -1
  185. package/dist/src/components/layout/footer.component.js +3 -2
  186. package/dist/src/components/layout/footer.style.js +7 -7
  187. package/dist/src/components/layout/header.component.d.ts +2 -1
  188. package/dist/src/components/layout/header.component.js +3 -2
  189. package/dist/src/components/layout/header.style.js +7 -7
  190. package/dist/src/components/layout/layout.component.d.ts +4 -7
  191. package/dist/src/components/layout/layout.component.js +9 -22
  192. package/dist/src/components/layout/layout.style.js +1 -1
  193. package/dist/src/components/layout/sider.component.d.ts +3 -1
  194. package/dist/src/components/layout/sider.component.js +3 -1
  195. package/dist/src/components/layout/sider.style.js +29 -29
  196. package/dist/src/components/menu/bundle.js +135 -125
  197. package/dist/src/components/menu/bundle.js.gz +0 -0
  198. package/dist/src/components/menu/menu.component.d.ts +2 -1
  199. package/dist/src/components/menu/menu.component.js +1 -0
  200. package/dist/src/components/menu/menu.style.js +87 -87
  201. package/dist/src/components/modal/bundle.js +105 -96
  202. package/dist/src/components/modal/bundle.js.gz +0 -0
  203. package/dist/src/components/modal/modal.component.d.ts +2 -1
  204. package/dist/src/components/modal/modal.component.js +1 -0
  205. package/dist/src/components/modal/modal.style.js +69 -71
  206. package/dist/src/components/panel/bundle.js +190 -391
  207. package/dist/src/components/panel/bundle.js.gz +0 -0
  208. package/dist/src/components/panel/panel.component.d.ts +2 -1
  209. package/dist/src/components/panel/panel.component.js +1 -0
  210. package/dist/src/components/panel/panel.style.js +65 -65
  211. package/dist/src/components/popconfirm/bundle.js +107 -93
  212. package/dist/src/components/popconfirm/bundle.js.gz +0 -0
  213. package/dist/src/components/popconfirm/popconfirm-manager.component.d.ts +2 -1
  214. package/dist/src/components/popconfirm/popconfirm-manager.component.js +1 -0
  215. package/dist/src/components/popconfirm/popconfirm-manager.style.js +16 -16
  216. package/dist/src/components/popconfirm/popconfirm.component.d.ts +2 -1
  217. package/dist/src/components/popconfirm/popconfirm.component.js +9 -5
  218. package/dist/src/components/popconfirm/popconfirm.style.js +43 -43
  219. package/dist/src/components/radio/bundle.js +56 -86
  220. package/dist/src/components/radio/bundle.js.gz +0 -0
  221. package/dist/src/components/radio/radio.component.d.ts +8 -2
  222. package/dist/src/components/radio/radio.component.js +17 -9
  223. package/dist/src/components/radio/radio.style.js +30 -77
  224. package/dist/src/components/radio-group/bundle.js +125 -89
  225. package/dist/src/components/radio-group/bundle.js.gz +0 -0
  226. package/dist/src/components/radio-group/radio-group.component.d.ts +5 -1
  227. package/dist/src/components/radio-group/radio-group.component.js +18 -10
  228. package/dist/src/components/radio-group/radio-group.style.js +44 -44
  229. package/dist/src/components/select/bundle.js +260 -367
  230. package/dist/src/components/select/bundle.js.gz +0 -0
  231. package/dist/src/components/select/select.component.d.ts +12 -17
  232. package/dist/src/components/select/select.component.js +35 -35
  233. package/dist/src/components/select/select.style.js +184 -324
  234. package/dist/src/components/skeleton/bundle.js +82 -162
  235. package/dist/src/components/skeleton/bundle.js.gz +0 -0
  236. package/dist/src/components/skeleton/skeleton.component.d.ts +10 -5
  237. package/dist/src/components/skeleton/skeleton.component.js +20 -7
  238. package/dist/src/components/skeleton/skeleton.style.js +34 -133
  239. package/dist/src/components/slider-input/bundle.js +89 -88
  240. package/dist/src/components/slider-input/bundle.js.gz +0 -0
  241. package/dist/src/components/slider-input/slider-input.component.d.ts +11 -0
  242. package/dist/src/components/slider-input/slider-input.component.js +20 -8
  243. package/dist/src/components/slider-input/slider-input.style.js +47 -47
  244. package/dist/src/components/slider-input/slider-input.style.variables.js +32 -32
  245. package/dist/src/components/table/bundle.js +149 -128
  246. package/dist/src/components/table/bundle.js.gz +0 -0
  247. package/dist/src/components/table/table.component.d.ts +2 -1
  248. package/dist/src/components/table/table.component.js +1 -0
  249. package/dist/src/components/table/table.style.js +79 -79
  250. package/dist/src/components/tabs/bundle.js +462 -663
  251. package/dist/src/components/tabs/bundle.js.gz +0 -0
  252. package/dist/src/components/tabs/tabs.component.d.ts +6 -1
  253. package/dist/src/components/tabs/tabs.component.js +8 -1
  254. package/dist/src/components/tabs/tabs.style.js +200 -201
  255. package/dist/src/components/tag/bundle.js +44 -36
  256. package/dist/src/components/tag/bundle.js.gz +0 -0
  257. package/dist/src/components/tag/tag.component.d.ts +7 -6
  258. package/dist/src/components/tag/tag.component.js +10 -19
  259. package/dist/src/components/tag/tag.style.js +20 -24
  260. package/dist/src/components/textarea/bundle.js +131 -94
  261. package/dist/src/components/textarea/bundle.js.gz +0 -0
  262. package/dist/src/components/textarea/textarea.component.d.ts +7 -1
  263. package/dist/src/components/textarea/textarea.component.js +10 -3
  264. package/dist/src/components/textarea/textarea.style.d.ts +1 -13
  265. package/dist/src/components/textarea/textarea.style.js +79 -91
  266. package/dist/src/components/timeline/bundle.js +71 -134
  267. package/dist/src/components/timeline/bundle.js.gz +0 -0
  268. package/dist/src/components/timeline/timeline.component.d.ts +9 -6
  269. package/dist/src/components/timeline/timeline.component.js +16 -13
  270. package/dist/src/components/timeline/timeline.style.d.ts +0 -7
  271. package/dist/src/components/timeline/timeline.style.js +41 -122
  272. package/dist/src/components/timepicker/bundle.js +196 -166
  273. package/dist/src/components/timepicker/bundle.js.gz +0 -0
  274. package/dist/src/components/timepicker/timepicker.component.d.ts +2 -1
  275. package/dist/src/components/timepicker/timepicker.component.js +1 -0
  276. package/dist/src/components/timepicker/timepicker.style.js +42 -42
  277. package/dist/src/components/timepicker/timepicker.style.variables.js +91 -91
  278. package/dist/src/components/toast/bundle.js +97 -81
  279. package/dist/src/components/toast/bundle.js.gz +0 -0
  280. package/dist/src/components/toast/toast.component.d.ts +2 -1
  281. package/dist/src/components/toast/toast.component.js +1 -0
  282. package/dist/src/components/toast/toast.style.js +62 -62
  283. package/dist/src/components/tooltips/bundle.js +10 -10
  284. package/dist/src/components/tooltips/bundle.js.gz +0 -0
  285. package/dist/src/components/tooltips/tooltips.component.d.ts +8 -0
  286. package/dist/src/components/tooltips/tooltips.component.js +9 -1
  287. package/dist/src/components/tooltips/tooltips.style.js +6 -6
  288. package/dist/src/components/video/bundle.js +47 -36
  289. package/dist/src/components/video/bundle.js.gz +0 -0
  290. package/dist/src/components/video/video.component.d.ts +12 -1
  291. package/dist/src/components/video/video.component.js +18 -6
  292. package/dist/src/components/video/video.style.js +18 -24
  293. package/package.json +25 -12
  294. package/packages/common/dist/VERSIONS.md +2 -2
  295. package/packages/common/dist/shared/base-mixin.d.ts +21 -19
  296. package/packages/common/dist/shared/base-mixin.d.ts.map +1 -1
  297. package/packages/common/dist/shared/base-mixin.js +102 -18
  298. package/packages/common/dist/shared/base-mixin.js.map +1 -1
  299. package/packages/common/dist/shared/index.d.ts +1 -0
  300. package/packages/common/dist/shared/index.d.ts.map +1 -1
  301. package/packages/common/dist/shared/index.js +2 -0
  302. package/packages/common/dist/shared/index.js.map +1 -1
  303. package/packages/common/dist/shared/style-injector.d.ts +11 -0
  304. package/packages/common/dist/shared/style-injector.d.ts.map +1 -0
  305. package/packages/common/dist/shared/style-injector.js +53 -0
  306. package/packages/common/dist/shared/style-injector.js.map +1 -0
  307. package/packages/common/dist/shared/theme-mixin.d.ts +2 -24
  308. package/packages/common/dist/shared/theme-mixin.d.ts.map +1 -1
  309. package/packages/common/dist/shared/theme-mixin.js +5 -38
  310. package/packages/common/dist/shared/theme-mixin.js.map +1 -1
  311. package/packages/themes/dist/default.css +0 -10
  312. package/packages/themes/dist/package.json +1 -1
@@ -1,23 +1,23 @@
1
- import{css as a,LitElement as o,nothing as t,html as e}from"lit";import{property as i,state as r,customElement as s}from"lit/decorators.js";import{classMap as n}from"lit/directives/class-map.js";import{styleMap as l}from"lit/directives/style-map.js";import{NuralyUIBaseMixin as d}from"@nuralyui/common/mixins";
1
+ import{css as t,nothing as e,html as o,LitElement as i}from"lit";import{property as s,state as a,customElement as n}from"lit/decorators.js";import{classMap as r}from"lit/directives/class-map.js";import{styleMap as d}from"lit/directives/style-map.js";
2
2
  /**
3
3
  * @license
4
4
  * Copyright 2023 Nuraly, Laabidi Aymen
5
5
  * SPDX-License-Identifier: MIT
6
- */var c,h,m,u;!function(a){a.Small="small",a.Medium="medium",a.Large="large",a.ExtraLarge="xl"}(c||(c={})),function(a){a.Center="center",a.Top="top",a.Bottom="bottom"}(h||(h={})),function(a){a.Fade="fade",a.Zoom="zoom",a.SlideUp="slide-up",a.SlideDown="slide-down",a.None="none"}(m||(m={})),function(a){a.Static="static",a.Closable="closable",a.None="none"}(u||(u={}));const p="",v=1e3,y=a=>Object.values(c).includes(a),f=a=>Object.values(h).includes(a),b=a=>Object.values(m).includes(a),g=a=>Object.values(u).includes(a),x={size:c.Medium,position:h.Center,animation:m.Fade,backdrop:u.Closable,closable:!0,draggable:!1,resizable:!1,fullscreen:!1,destroyOnClose:!1,zIndex:1e3},k={title:p,showCloseButton:!0,icon:p,draggable:!1},w={showCancelButton:!1,showOkButton:!1,cancelText:"Cancel",okText:"OK",okType:"primary"},z=a`
6
+ */var l,h,c,m;!function(t){t.Small="small",t.Medium="medium",t.Large="large",t.ExtraLarge="xl"}(l||(l={})),function(t){t.Center="center",t.Top="top",t.Bottom="bottom"}(h||(h={})),function(t){t.Fade="fade",t.Zoom="zoom",t.SlideUp="slide-up",t.SlideDown="slide-down",t.None="none"}(c||(c={})),function(t){t.Static="static",t.Closable="closable",t.None="none"}(m||(m={}));const p="",u=1e3,f=t=>Object.values(l).includes(t),b=t=>Object.values(h).includes(t),g=t=>Object.values(c).includes(t),v=t=>Object.values(m).includes(t),y={size:l.Medium,position:h.Center,animation:c.Fade,backdrop:m.Closable,closable:!0,draggable:!1,resizable:!1,fullscreen:!1,destroyOnClose:!1,zIndex:1e3},w={title:p,showCloseButton:!0,icon:p,draggable:!1},x={showCancelButton:!1,showOkButton:!1,cancelText:"Cancel",okText:"OK",okType:"primary"},k=t`
7
7
  :host {
8
8
  display: contents;
9
- font-family: var(--nuraly-font-family);
9
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
10
10
 
11
11
  /* Force CSS custom property inheritance to ensure theme switching works properly */
12
- color: var(--nuraly-color-text);
13
- background-color: var(--nuraly-color-background);
12
+ color: #161616;
13
+ background-color: #ffffff;
14
14
 
15
15
  /* Ensure theme variables are properly inherited */
16
- --modal-border-radius: var(--nuraly-border-radius-modal, 8px);
16
+ --modal-border-radius: 8px;
17
17
 
18
18
  /* Ensure clean state transitions when theme changes */
19
19
  * {
20
- transition: all var(--nuraly-transition-fast, 0.15s) ease;
20
+ transition: all 0.15s ease;
21
21
  }
22
22
  }
23
23
 
@@ -34,13 +34,13 @@ import{css as a,LitElement as o,nothing as t,html as e}from"lit";import{property
34
34
  left: 0;
35
35
  right: 0;
36
36
  bottom: 0;
37
- background-color: var(--nuraly-color-modal-backdrop, rgba(0, 0, 0, 0.45));
38
- z-index: var(--nuraly-z-modal-backdrop, 1000);
37
+ background-color: rgba(0, 0, 0, 0.45);
38
+ z-index: 1000;
39
39
  display: flex;
40
40
  align-items: center;
41
41
  justify-content: center;
42
- padding: var(--nuraly-spacing-modal-padding, var(--nuraly-spacing-05, 1rem));
43
- backdrop-filter: var(--nuraly-modal-backdrop-filter, none);
42
+ padding: 1rem;
43
+ backdrop-filter: none;
44
44
 
45
45
  &.modal-backdrop--hidden {
46
46
  display: none;
@@ -48,25 +48,25 @@ import{css as a,LitElement as o,nothing as t,html as e}from"lit";import{property
48
48
 
49
49
  &.modal-backdrop--position-top {
50
50
  align-items: flex-start;
51
- padding-top: var(--nuraly-spacing-modal-top, var(--nuraly-spacing-07, 2rem));
51
+ padding-top: 2rem;
52
52
  }
53
53
 
54
54
  &.modal-backdrop--position-bottom {
55
55
  align-items: flex-end;
56
- padding-bottom: var(--nuraly-spacing-modal-bottom, var(--nuraly-spacing-07, 2rem));
56
+ padding-bottom: 2rem;
57
57
  }
58
58
  }
59
59
 
60
60
  /* Nested modals support */
61
61
  .modal-backdrop {
62
62
  /* Ensure each modal backdrop has its own stacking context */
63
- z-index: var(--nuraly-z-modal-backdrop, 1000);
63
+ z-index: 1000;
64
64
  }
65
65
 
66
66
  /* Nested modal backdrop styling */
67
67
  .modal-backdrop + .modal-backdrop {
68
68
  /* Subsequent modals get slightly darker backdrop */
69
- background-color: var(--nuraly-color-modal-backdrop-nested, rgba(0, 0, 0, 0.6));
69
+ background-color: rgba(0, 0, 0, 0.6);
70
70
  }
71
71
 
72
72
  /* Nested modal animation delay to avoid conflicts */
@@ -77,46 +77,44 @@ import{css as a,LitElement as o,nothing as t,html as e}from"lit";import{property
77
77
  /* Modal container */
78
78
  .modal {
79
79
  position: relative;
80
- background-color: var(--nuraly-color-modal-background, var(--nuraly-color-background, #ffffff));
80
+ background-color: #ffffff;
81
81
  border-radius: var(--modal-border-radius);
82
- box-shadow: var(--nuraly-shadow-modal,
83
- 0 6px 16px 0 rgba(0, 0, 0, 0.08),
82
+ box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08),
84
83
  0 3px 6px -4px rgba(0, 0, 0, 0.12),
85
- 0 9px 28px 8px rgba(0, 0, 0, 0.05)
86
- );
87
- border: var(--nuraly-border-modal, 1px solid var(--nuraly-color-border, #e0e0e0));
88
- max-height: calc(100vh - var(--nuraly-spacing-modal-margin, var(--nuraly-spacing-07, 2rem)) * 2);
89
- max-width: calc(100vw - var(--nuraly-spacing-modal-margin, var(--nuraly-spacing-07, 2rem)) * 2);
84
+ 0 9px 28px 8px rgba(0, 0, 0, 0.05);
85
+ border: 1px solid #e0e0e0;
86
+ max-height: calc(100vh - 2rem * 2);
87
+ max-width: calc(100vw - 2rem * 2);
90
88
  display: flex;
91
89
  flex-direction: column;
92
90
  outline: none;
93
91
 
94
92
  &:focus {
95
- outline: var(--nuraly-focus-outline, 2px solid var(--nuraly-color-primary, #0f62fe));
96
- outline-offset: var(--nuraly-focus-outline-offset, 1px);
93
+ outline: 2px solid #7c3aed;
94
+ outline-offset: 1px;
97
95
  }
98
96
  }
99
97
 
100
98
 
101
99
  /* Modal sizes */
102
100
  .modal--size-small {
103
- width: var(--nuraly-modal-width-small, 400px);
104
- min-height: var(--nuraly-modal-min-height-small, 200px);
101
+ width: 400px;
102
+ min-height: 200px;
105
103
  }
106
104
 
107
105
  .modal--size-medium {
108
- width: var(--nuraly-modal-width-medium, 600px);
109
- min-height: var(--nuraly-modal-min-height-medium, 300px);
106
+ width: 600px;
107
+ min-height: 300px;
110
108
  }
111
109
 
112
110
  .modal--size-large {
113
- width: var(--nuraly-modal-width-large, 800px);
114
- min-height: var(--nuraly-modal-min-height-large, 400px);
111
+ width: 800px;
112
+ min-height: 400px;
115
113
  }
116
114
 
117
115
  .modal--size-xl {
118
- width: var(--nuraly-modal-width-xl, 1000px);
119
- min-height: var(--nuraly-modal-min-height-xl, 500px);
116
+ width: 1000px;
117
+ min-height: 500px;
120
118
  }
121
119
 
122
120
  .modal--fullscreen {
@@ -129,12 +127,12 @@ import{css as a,LitElement as o,nothing as t,html as e}from"lit";import{property
129
127
 
130
128
  /* Modal header */
131
129
  .modal-header {
132
- padding: var(--nuraly-spacing-modal-header, var(--nuraly-spacing-05, 1rem) var(--nuraly-spacing-06, 1.5rem));
133
- border-bottom: var(--nuraly-border-modal-header, 1px solid var(--nuraly-color-border, #e0e0e0));
130
+ padding: 1rem 1.5rem;
131
+ border-bottom: 1px solid #e0e0e0;
134
132
  display: flex;
135
133
  align-items: center;
136
134
  justify-content: space-between;
137
- min-height: var(--nuraly-modal-header-height);
135
+ min-height: 56px;
138
136
  flex-shrink: 0;
139
137
 
140
138
  &.modal-header--draggable {
@@ -146,24 +144,24 @@ import{css as a,LitElement as o,nothing as t,html as e}from"lit";import{property
146
144
  .modal-header-content {
147
145
  display: flex;
148
146
  align-items: center;
149
- gap: var(--nuraly-spacing-03, 0.5rem);
147
+ gap: 0.5rem;
150
148
  flex: 1;
151
149
  min-width: 0;
152
150
  }
153
151
 
154
152
  .modal-header-icon {
155
153
  flex-shrink: 0;
156
- width: var(--nuraly-modal-header-icon-size, 20px);
157
- height: var(--nuraly-modal-header-icon-size, 20px);
158
- color: var(--nuraly-color-modal-header-icon, var(--nuraly-color-text-secondary, #525252));
154
+ width: 20px;
155
+ height: 20px;
156
+ color: #525252;
159
157
  }
160
158
 
161
159
  .modal-title {
162
- font-size: var(--nuraly-font-size-modal-title, var(--nuraly-font-size-04, 1.125rem));
163
- font-weight: var(--nuraly-font-weight-modal-title, var(--nuraly-font-weight-medium, 500));
164
- color: var(--nuraly-color-modal-title, var(--nuraly-color-text, #161616));
160
+ font-size: 1.125rem;
161
+ font-weight: 500;
162
+ color: #161616;
165
163
  margin: 0;
166
- line-height: var(--nuraly-line-height-02, 1.375);
164
+ line-height: 1.375;
167
165
  overflow: hidden;
168
166
  text-overflow: ellipsis;
169
167
  white-space: nowrap;
@@ -171,36 +169,36 @@ import{css as a,LitElement as o,nothing as t,html as e}from"lit";import{property
171
169
 
172
170
  .modal-close-button {
173
171
  flex-shrink: 0;
174
- width: var(--nuraly-modal-close-size, 32px);
175
- height: var(--nuraly-modal-close-size, 32px);
172
+ width: 32px;
173
+ height: 32px;
176
174
  border: none;
177
175
  background: transparent;
178
- border-radius: var(--nuraly-border-radius-sm, 4px);
176
+ border-radius: 4px;
179
177
  cursor: pointer;
180
178
  display: flex;
181
179
  align-items: center;
182
180
  justify-content: center;
183
- color: var(--nuraly-color-modal-close-icon, var(--nuraly-color-text-secondary, #525252));
184
- transition: all var(--nuraly-transition-fast, 0.15s) ease;
181
+ color: #525252;
182
+ transition: all 0.15s ease;
185
183
 
186
184
  &:hover {
187
- background-color: var(--nuraly-color-modal-close-hover, var(--nuraly-color-background-hover, #f4f4f4));
188
- color: var(--nuraly-color-modal-close-icon-hover, var(--nuraly-color-text, #161616));
185
+ background-color: #f4f4f4;
186
+ color: #161616;
189
187
  }
190
188
 
191
189
  &:focus {
192
- outline: var(--nuraly-focus-outline, 2px solid var(--nuraly-color-primary, #0f62fe));
193
- outline-offset: var(--nuraly-focus-outline-offset, 1px);
190
+ outline: 2px solid #7c3aed;
191
+ outline-offset: 1px;
194
192
  }
195
193
 
196
194
  &:active {
197
- background-color: var(--nuraly-color-modal-close-active, var(--nuraly-color-background-active, #c6c6c6));
195
+ background-color: #c6c6c6;
198
196
  }
199
197
  }
200
198
 
201
199
  .modal-close-icon {
202
- width: var(--nuraly-modal-close-icon-size, 16px);
203
- height: var(--nuraly-modal-close-icon-size, 16px);
200
+ width: 16px;
201
+ height: 16px;
204
202
  }
205
203
 
206
204
  /* Carbon theme specific - sharp corners for close button */
@@ -213,21 +211,21 @@ import{css as a,LitElement as o,nothing as t,html as e}from"lit";import{property
213
211
  /* Modal body */
214
212
  .modal-body {
215
213
  flex: 1;
216
- padding: var(--nuraly-spacing-modal-body, var(--nuraly-spacing-05, 1rem) var(--nuraly-spacing-06, 1.5rem));
214
+ padding: 1rem 1.5rem;
217
215
  overflow-y: auto;
218
- color: var(--nuraly-color-modal-body-text, var(--nuraly-color-text, #161616));
219
- line-height: var(--nuraly-line-height-03, 1.5);
216
+ color: #161616;
217
+ line-height: 1.5;
220
218
  }
221
219
 
222
220
  /* Modal footer */
223
221
  .modal-footer {
224
- padding: var(--nuraly-spacing-modal-footer, var(--nuraly-spacing-03, 0.5rem) var(--nuraly-spacing-05, 1rem));
225
- border-top: var(--nuraly-border-modal-footer, 1px solid var(--nuraly-color-border, #e0e0e0));
222
+ padding: 0.5rem 1rem;
223
+ border-top: 1px solid #e0e0e0;
226
224
  display: flex;
227
225
  align-items: center;
228
226
  justify-content: flex-end;
229
- gap: var(--nuraly-spacing-03, 0.5rem);
230
- min-height: var(--nuraly-modal-footer-height, 48px);
227
+ gap: 0.5rem;
228
+ min-height: 48px;
231
229
  flex-shrink: 0;
232
230
  }
233
231
 
@@ -287,23 +285,23 @@ import{css as a,LitElement as o,nothing as t,html as e}from"lit";import{property
287
285
 
288
286
  /* Animation classes */
289
287
  .modal-backdrop--animation-fade {
290
- animation: backdropFadeIn var(--nuraly-transition-modal, 0.3s) ease;
288
+ animation: backdropFadeIn 0.3s ease;
291
289
  }
292
290
 
293
291
  .modal--animation-fade {
294
- animation: modalFadeIn var(--nuraly-transition-modal, 0.3s) ease;
292
+ animation: modalFadeIn 0.3s ease;
295
293
  }
296
294
 
297
295
  .modal--animation-zoom {
298
- animation: modalZoomIn var(--nuraly-transition-modal, 0.3s) ease;
296
+ animation: modalZoomIn 0.3s ease;
299
297
  }
300
298
 
301
299
  .modal--animation-slide-up {
302
- animation: modalSlideUp var(--nuraly-transition-modal, 0.3s) ease;
300
+ animation: modalSlideUp 0.3s ease;
303
301
  }
304
302
 
305
303
  .modal--animation-slide-down {
306
- animation: modalSlideDown var(--nuraly-transition-modal, 0.3s) ease;
304
+ animation: modalSlideDown 0.3s ease;
307
305
  }
308
306
 
309
307
  /* Dragging state */
@@ -328,8 +326,8 @@ import{css as a,LitElement as o,nothing as t,html as e}from"lit";import{property
328
326
  background: linear-gradient(
329
327
  -45deg,
330
328
  transparent 40%,
331
- var(--nuraly-color-border, #e0e0e0) 40%,
332
- var(--nuraly-color-border, #e0e0e0) 60%,
329
+ #e0e0e0 40%,
330
+ #e0e0e0 60%,
333
331
  transparent 60%
334
332
  );
335
333
  }
@@ -337,7 +335,7 @@ import{css as a,LitElement as o,nothing as t,html as e}from"lit";import{property
337
335
  /* Responsive behavior */
338
336
  @media (max-width: 768px) {
339
337
  .modal-backdrop {
340
- padding: var(--nuraly-spacing-02, 0.25rem);
338
+ padding: 0.25rem;
341
339
  }
342
340
 
343
341
  .modal--size-small,
@@ -351,8 +349,8 @@ import{css as a,LitElement as o,nothing as t,html as e}from"lit";import{property
351
349
  .modal-header,
352
350
  .modal-body,
353
351
  .modal-footer {
354
- padding-left: var(--nuraly-spacing-04, 0.75rem);
355
- padding-right: var(--nuraly-spacing-04, 0.75rem);
352
+ padding-left: 0.75rem;
353
+ padding-right: 0.75rem;
356
354
  }
357
355
  }
358
356
 
@@ -367,63 +365,74 @@ import{css as a,LitElement as o,nothing as t,html as e}from"lit";import{property
367
365
  * @license
368
366
  * Copyright 2023 Nuraly, Laabidi Aymen
369
367
  * SPDX-License-Identifier: MIT
370
- */;const M=new class{constructor(){this.modalStack=[],this.baseZIndex=1e3,this.zIndexIncrement=10,this.bodyScrollDisabled=!1,this.originalBodyOverflow=""}openModal(a){const o=this.generateModalId(),t=this.baseZIndex+this.modalStack.length*this.zIndexIncrement,e={modal:a,previousFocus:document.activeElement,zIndex:t,id:o};return this.modalStack.push(e),1===this.modalStack.length&&this.disableBodyScroll(),this.updateModalZIndex(a,t),t}closeModal(a){const o=this.modalStack.findIndex(o=>o.modal===a);if(-1===o)return void console.warn("Attempting to close a modal that is not in the stack");const t=this.modalStack[o];if(o<this.modalStack.length-1){this.modalStack.slice(o+1).forEach(a=>{a.modal&&"function"==typeof a.modal.closeModal&&a.modal.closeModal()})}this.modalStack.splice(o),t.previousFocus instanceof HTMLElement&&setTimeout(()=>{t.previousFocus instanceof HTMLElement&&t.previousFocus.focus()},100),0===this.modalStack.length&&this.restoreBodyScroll(),console.log(`Modal closed. Stack depth: ${this.modalStack.length}`)}getModalZIndex(a){const o=this.modalStack.find(o=>o.modal===a);return o?o.zIndex:this.baseZIndex}isTopModal(a){return 0!==this.modalStack.length&&this.modalStack[this.modalStack.length-1].modal===a}getStackDepth(){return this.modalStack.length}closeAllModals(){[...this.modalStack].reverse().forEach(a=>{a.modal&&"function"==typeof a.modal.closeModal&&a.modal.closeModal()})}getOpenModalIds(){return this.modalStack.map(a=>a.id)}hasOpenModals(){return this.modalStack.length>0}generateModalId(){return`modal-${Date.now()}-${Math.random().toString(36).substr(2,9)}`}updateModalZIndex(a,o){a&&a.style&&a.style.setProperty("--nuraly-z-modal-backdrop",o.toString())}disableBodyScroll(){this.bodyScrollDisabled||(this.originalBodyOverflow=document.body.style.overflow,document.body.style.overflow="hidden",this.bodyScrollDisabled=!0)}restoreBodyScroll(){this.bodyScrollDisabled&&(document.body.style.overflow=this.originalBodyOverflow,this.bodyScrollDisabled=!1)}handleEscapeKey(){if(0===this.modalStack.length)return!1;const a=this.modalStack[this.modalStack.length-1].modal;return!(!a||"function"!=typeof a.closeModal||!1===a.closable)&&(a.closeModal(),!0)}handleBackdropClick(a){return this.isTopModal(a)}};"undefined"!=typeof window&&(window.ModalManager=M)
368
+ */,C=t=>class extends t{constructor(){super(...arguments),this.handleSystemThemeChange=()=>{this.closest("[data-theme]")||document.documentElement.hasAttribute("data-theme")||this.requestUpdate()}}connectedCallback(){super.connectedCallback(),this.setupThemeObserver(),this.setupDesignSystemObserver(),this.setupSystemThemeListener()}disconnectedCallback(){var t,e,o;super.disconnectedCallback(),null===(t=this.themeObserver)||void 0===t||t.disconnect(),null===(e=this.designSystemObserver)||void 0===e||e.disconnect(),null===(o=this.mediaQuery)||void 0===o||o.removeEventListener("change",this.handleSystemThemeChange)}get currentTheme(){var t,e;const o=(null===(t=this.closest("[data-theme]"))||void 0===t?void 0:t.getAttribute("data-theme"))||document.documentElement.getAttribute("data-theme");return o||((null===(e=window.matchMedia)||void 0===e?void 0:e.call(window,"(prefers-color-scheme: dark)").matches)?"dark":"light")}get currentDesignSystem(){var t;const e=(null===(t=this.closest("[design-system]"))||void 0===t?void 0:t.getAttribute("design-system"))||document.documentElement.getAttribute("design-system");return"carbon"===e?e:"default"}setupThemeObserver(){this.themeObserver=new MutationObserver(()=>{this.requestUpdate()}),this.themeObserver.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]})}setupDesignSystemObserver(){this.designSystemObserver=new MutationObserver(()=>{this.requestUpdate()}),this.designSystemObserver.observe(document.documentElement,{attributes:!0,attributeFilter:["design-system"]})}setupSystemThemeListener(){window.matchMedia&&(this.mediaQuery=window.matchMedia("(prefers-color-scheme: dark)"),this.mediaQuery.addEventListener("change",this.handleSystemThemeChange))}},S=()=>{var t;return void 0!==globalThis.litElementVersions||"undefined"!=typeof process&&"development"===(null===(t=process.env)||void 0===t?void 0:t.NODE_ENV)||"undefined"!=typeof window&&("localhost"===window.location.hostname||"127.0.0.1"===window.location.hostname)},E=t=>class extends t{constructor(){super(...arguments),this.requiredComponents=[]}validateDependencies(){if(S())for(const t of this.requiredComponents)if(!this.isComponentAvailable(t))throw new Error(`Required component "${t}" is not registered. Please import and register the component before using ${this.tagName.toLowerCase()}. Example: import '@nuralyui/${t}';`)}validateDependenciesWithHandler(t){if(!S())return!0;let e=!0;for(const o of this.requiredComponents)if(!this.isComponentAvailable(o)){e=!1;const i=new Error(`Required component "${o}" is not registered. Please import and register the component before using ${this.tagName.toLowerCase()}.`);t?t(o,i):console.error(i.message)}return e}isComponentAvailable(t){return!!customElements.get(t)}getMissingDependencies(){return this.requiredComponents.filter(t=>!this.isComponentAvailable(t))}areDependenciesAvailable(){return this.requiredComponents.every(t=>this.isComponentAvailable(t))}addRequiredComponent(t){this.requiredComponents.includes(t)||this.requiredComponents.push(t)}removeRequiredComponent(t){const e=this.requiredComponents.indexOf(t);e>-1&&this.requiredComponents.splice(e,1)}},M=t=>class extends t{dispatchCustomEvent(t,e){this.dispatchEvent(new CustomEvent(t,{detail:e,bubbles:!0,composed:!0}))}dispatchEventWithMetadata(t,e){var o;const i=Object.assign(Object.assign({},e),{timestamp:Date.now(),componentName:(null===(o=this.tagName)||void 0===o?void 0:o.toLowerCase())||"unknown"});this.dispatchCustomEvent(t,i)}dispatchInputEvent(t,e){const o=Object.assign({target:e.target||this,value:e.value,originalEvent:e.originalEvent},e);this.dispatchCustomEvent(t,o)}dispatchFocusEvent(t,e){const o=Object.assign({target:e.target||this,value:e.value,focused:e.focused,cursorPosition:e.cursorPosition,selectedText:e.selectedText},e);this.dispatchCustomEvent(t,o)}dispatchValidationEvent(t,e){var o;const i=Object.assign({target:e.target||this,value:e.value,isValid:null!==(o=e.isValid)&&void 0!==o&&o,error:e.error},e);this.dispatchCustomEvent(t,i)}dispatchActionEvent(t,e){const o=Object.assign({target:e.target||this,action:e.action,previousValue:e.previousValue,newValue:e.newValue},e);this.dispatchCustomEvent(t,o)}isReadonlyKeyAllowed(t){if(t.ctrlKey||t.metaKey){return["KeyA","KeyC"].includes(t.code)}return["Tab","Escape","ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(t.key)}isActivationKey(t){return"Enter"===t.key||" "===t.key}},z=new Set,$=new Map;
369
+ /**
370
+ * @license
371
+ * Copyright 2023 Nuraly, Laabidi Aymen
372
+ * SPDX-License-Identifier: MIT
373
+ */
374
+ const D=t=>{class e extends t{constructor(){super(...arguments),this.t=null}createRenderRoot(){return this.constructor.useShadowDom?super.createRenderRoot():this}connectedCallback(){const t=this.constructor.useShadowDom;if(!t&&null===this.t)for(this.t=[];this.firstChild;)this.t.push(this.removeChild(this.firstChild));if(super.connectedCallback(),!t){const t=this.constructor,e=this.tagName.toLowerCase(),o=t.styles;if(o){const t=O(o);t&&function(t,e,o){var i;if(!$.has(t)){const o=new CSSStyleSheet;o.replaceSync(e),$.set(t,o)}const s=$.get(t),a=`doc:${t}`;if(z.has(a)||(document.adoptedStyleSheets=[...document.adoptedStyleSheets,s],z.add(a)),o){let e=o;for(;e;){const o=e.getRootNode();if(!(o instanceof ShadowRoot))break;{const a=`shadow:${((null===(i=o.host)||void 0===i?void 0:i.tagName)||"").toLowerCase()}:${t}`;z.has(a)||(o.adoptedStyleSheets=[...o.adoptedStyleSheets,s],z.add(a)),e=o.host}}}}(e,t,this)}}}get lightChildren(){return this.t?this.t.filter(t=>!(t instanceof Element&&t.hasAttribute("slot"))):[]}lightChildrenNamed(t){return this.t?this.t.filter(e=>e instanceof Element&&e.getAttribute("slot")===t):[]}}return e.useShadowDom=!1,e};function O(t){return Array.isArray(t)?t.map(t=>O(t)).filter(Boolean).join("\n"):t&&"string"==typeof t.cssText?t.cssText:"string"==typeof t?t:""}
375
+ /**
376
+ * @license
377
+ * Copyright 2023 Nuraly, Laabidi Aymen
378
+ * SPDX-License-Identifier: MIT
379
+ */const j=new class{constructor(){this.modalStack=[],this.baseZIndex=1e3,this.zIndexIncrement=10,this.bodyScrollDisabled=!1,this.originalBodyOverflow=""}openModal(t){const e=this.generateModalId(),o=this.baseZIndex+this.modalStack.length*this.zIndexIncrement,i={modal:t,previousFocus:document.activeElement,zIndex:o,id:e};return this.modalStack.push(i),1===this.modalStack.length&&this.disableBodyScroll(),this.updateModalZIndex(t,o),o}closeModal(t){const e=this.modalStack.findIndex(e=>e.modal===t);if(-1===e)return void console.warn("Attempting to close a modal that is not in the stack");const o=this.modalStack[e];if(e<this.modalStack.length-1){this.modalStack.slice(e+1).forEach(t=>{t.modal&&"function"==typeof t.modal.closeModal&&t.modal.closeModal()})}this.modalStack.splice(e),o.previousFocus instanceof HTMLElement&&setTimeout(()=>{o.previousFocus instanceof HTMLElement&&o.previousFocus.focus()},100),0===this.modalStack.length&&this.restoreBodyScroll(),console.log(`Modal closed. Stack depth: ${this.modalStack.length}`)}getModalZIndex(t){const e=this.modalStack.find(e=>e.modal===t);return e?e.zIndex:this.baseZIndex}isTopModal(t){return 0!==this.modalStack.length&&this.modalStack[this.modalStack.length-1].modal===t}getStackDepth(){return this.modalStack.length}closeAllModals(){[...this.modalStack].reverse().forEach(t=>{t.modal&&"function"==typeof t.modal.closeModal&&t.modal.closeModal()})}getOpenModalIds(){return this.modalStack.map(t=>t.id)}hasOpenModals(){return this.modalStack.length>0}generateModalId(){return`modal-${Date.now()}-${Math.random().toString(36).substr(2,9)}`}updateModalZIndex(t,e){t&&t.style&&t.style.setProperty("--nuraly-z-modal-backdrop",e.toString())}disableBodyScroll(){this.bodyScrollDisabled||(this.originalBodyOverflow=document.body.style.overflow,document.body.style.overflow="hidden",this.bodyScrollDisabled=!0)}restoreBodyScroll(){this.bodyScrollDisabled&&(document.body.style.overflow=this.originalBodyOverflow,this.bodyScrollDisabled=!1)}handleEscapeKey(){if(0===this.modalStack.length)return!1;const t=this.modalStack[this.modalStack.length-1].modal;return!(!t||"function"!=typeof t.closeModal||!1===t.closable)&&(t.closeModal(),!0)}handleBackdropClick(t){return this.isTopModal(t)}};"undefined"!=typeof window&&(window.ModalManager=j)
371
380
  /**
372
381
  * @license
373
382
  * Copyright 2023 Nuraly, Laabidi Aymen
374
383
  * SPDX-License-Identifier: MIT
375
- */;class C{constructor(a){this.initialX=0,this.initialY=0,this.dragHandle=null,this.handleMouseDown=a=>{var o;if(!this.host.modalDraggable)return;a.preventDefault(),this.host.isDragging=!0,this.initialX=a.clientX-this.host.offsetX,this.initialY=a.clientY-this.host.offsetY;const t=null===(o=this.host.shadowRoot)||void 0===o?void 0:o.querySelector(".modal");t&&t.classList.add("modal--dragging")},this.handleMouseMove=a=>{var o;if(!this.host.isDragging||!this.host.modalDraggable)return;a.preventDefault();const t=a.clientX-this.initialX,e=a.clientY-this.initialY,i=null===(o=this.host.shadowRoot)||void 0===o?void 0:o.querySelector(".modal");if(i){const a=i.getBoundingClientRect(),o=window.innerWidth,r=window.innerHeight,s=-a.width/2,n=o-a.width/2,l=-a.height/2,d=r-a.height/2;this.host.offsetX=Math.max(s,Math.min(n,t)),this.host.offsetY=Math.max(l,Math.min(d,e)),i.style.transform=`translate(${this.host.offsetX}px, ${this.host.offsetY}px)`}this.host.requestUpdate()},this.handleMouseUp=()=>{var a;if(!this.host.isDragging)return;this.host.isDragging=!1;const o=null===(a=this.host.shadowRoot)||void 0===a?void 0:a.querySelector(".modal");o&&o.classList.remove("modal--dragging"),this.host.requestUpdate()},this.host=a,this.host.addController(this)}hostConnected(){this.setupDragHandlers()}hostDisconnected(){this.cleanupDragHandlers()}setupDragHandlers(){requestAnimationFrame(()=>{var a;this.dragHandle=null===(a=this.host.shadowRoot)||void 0===a?void 0:a.querySelector(".modal-header--draggable"),this.dragHandle&&this.host.modalDraggable&&(this.dragHandle.addEventListener("mousedown",this.handleMouseDown),document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp))})}cleanupDragHandlers(){this.dragHandle&&this.dragHandle.removeEventListener("mousedown",this.handleMouseDown),document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp)}resetPosition(){var a;this.host.offsetX=0,this.host.offsetY=0;const o=null===(a=this.host.shadowRoot)||void 0===a?void 0:a.querySelector(".modal");o&&(o.style.transform="none"),this.host.requestUpdate()}}
384
+ */;class A{constructor(t){this.initialX=0,this.initialY=0,this.dragHandle=null,this.handleMouseDown=t=>{var e;if(!this.host.modalDraggable)return;t.preventDefault(),this.host.isDragging=!0,this.initialX=t.clientX-this.host.offsetX,this.initialY=t.clientY-this.host.offsetY;const o=null===(e=this.host.shadowRoot)||void 0===e?void 0:e.querySelector(".modal");o&&o.classList.add("modal--dragging")},this.handleMouseMove=t=>{var e;if(!this.host.isDragging||!this.host.modalDraggable)return;t.preventDefault();const o=t.clientX-this.initialX,i=t.clientY-this.initialY,s=null===(e=this.host.shadowRoot)||void 0===e?void 0:e.querySelector(".modal");if(s){const t=s.getBoundingClientRect(),e=window.innerWidth,a=window.innerHeight,n=-t.width/2,r=e-t.width/2,d=-t.height/2,l=a-t.height/2;this.host.offsetX=Math.max(n,Math.min(r,o)),this.host.offsetY=Math.max(d,Math.min(l,i)),s.style.transform=`translate(${this.host.offsetX}px, ${this.host.offsetY}px)`}this.host.requestUpdate()},this.handleMouseUp=()=>{var t;if(!this.host.isDragging)return;this.host.isDragging=!1;const e=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector(".modal");e&&e.classList.remove("modal--dragging"),this.host.requestUpdate()},this.host=t,this.host.addController(this)}hostConnected(){this.setupDragHandlers()}hostDisconnected(){this.cleanupDragHandlers()}setupDragHandlers(){requestAnimationFrame(()=>{var t;this.dragHandle=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector(".modal-header--draggable"),this.dragHandle&&this.host.modalDraggable&&(this.dragHandle.addEventListener("mousedown",this.handleMouseDown),document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp))})}cleanupDragHandlers(){this.dragHandle&&this.dragHandle.removeEventListener("mousedown",this.handleMouseDown),document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp)}resetPosition(){var t;this.host.offsetX=0,this.host.offsetY=0;const e=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector(".modal");e&&(e.style.transform="none"),this.host.requestUpdate()}}
376
385
  /**
377
386
  * @license
378
387
  * Copyright 2023 Nuraly, Laabidi Aymen
379
388
  * SPDX-License-Identifier: MIT
380
- */class S{constructor(a){this.handleKeyDown=a=>{if(this.host.open)switch(a.key){case"Escape":if(this.host.closable){a.preventDefault(),a.stopPropagation();if(!M.handleEscapeKey()){const a=new CustomEvent("modal-escape",{bubbles:!0,cancelable:!0});this.host.dispatchEvent(a)&&this.host.closeModal()}}break;case"Tab":M.isTopModal(this.host)&&this.handleTabNavigation(a)}},this.host=a,this.host.addController(this)}hostConnected(){document.addEventListener("keydown",this.handleKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.handleKeyDown)}handleTabNavigation(a){var o;const t=null===(o=this.host.shadowRoot)||void 0===o?void 0:o.querySelector(".modal");if(!t)return;const e=this.getFocusableElements(t);if(0===e.length)return;const i=e[0],r=e[e.length-1];a.shiftKey?document.activeElement===i&&(a.preventDefault(),r.focus()):document.activeElement===r&&(a.preventDefault(),i.focus())}getFocusableElements(a){const o=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])','[contenteditable="true"]'].join(", ");return Array.from(a.querySelectorAll(o)).filter(a=>a.offsetWidth>0&&a.offsetHeight>0&&!a.hidden&&"hidden"!==getComputedStyle(a).visibility)}focusFirstElement(){var a;const o=null===(a=this.host.shadowRoot)||void 0===a?void 0:a.querySelector(".modal");if(!o)return;const t=this.getFocusableElements(o);t.length>0?t[0].focus():o.focus()}focusLastElement(){var a;const o=null===(a=this.host.shadowRoot)||void 0===a?void 0:a.querySelector(".modal");if(!o)return;const t=this.getFocusableElements(o);t.length>0&&t[t.length-1].focus()}}
389
+ */class T{constructor(t){this.handleKeyDown=t=>{if(this.host.open)switch(t.key){case"Escape":if(this.host.closable){t.preventDefault(),t.stopPropagation();if(!j.handleEscapeKey()){const t=new CustomEvent("modal-escape",{bubbles:!0,cancelable:!0});this.host.dispatchEvent(t)&&this.host.closeModal()}}break;case"Tab":j.isTopModal(this.host)&&this.handleTabNavigation(t)}},this.host=t,this.host.addController(this)}hostConnected(){document.addEventListener("keydown",this.handleKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.handleKeyDown)}handleTabNavigation(t){var e;const o=null===(e=this.host.shadowRoot)||void 0===e?void 0:e.querySelector(".modal");if(!o)return;const i=this.getFocusableElements(o);if(0===i.length)return;const s=i[0],a=i[i.length-1];t.shiftKey?document.activeElement===s&&(t.preventDefault(),a.focus()):document.activeElement===a&&(t.preventDefault(),s.focus())}getFocusableElements(t){const e=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[tabindex]:not([tabindex="-1"])','[contenteditable="true"]'].join(", ");return Array.from(t.querySelectorAll(e)).filter(t=>t.offsetWidth>0&&t.offsetHeight>0&&!t.hidden&&"hidden"!==getComputedStyle(t).visibility)}focusFirstElement(){var t;const e=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector(".modal");if(!e)return;const o=this.getFocusableElements(e);o.length>0?o[0].focus():e.focus()}focusLastElement(){var t;const e=null===(t=this.host.shadowRoot)||void 0===t?void 0:t.querySelector(".modal");if(!e)return;const o=this.getFocusableElements(e);o.length>0&&o[o.length-1].focus()}}
381
390
  /**
382
391
  * @license
383
392
  * Copyright 2023 Nuraly, Laabidi Aymen
384
393
  * SPDX-License-Identifier: MIT
385
- */var $=function(a,o,t,e){for(var i,r=arguments.length,s=r<3?o:null===e?e=Object.getOwnPropertyDescriptor(o,t):e,n=a.length-1;n>=0;n--)(i=a[n])&&(s=(r<3?i(s):r>3?i(o,t,s):i(o,t))||s);return r>3&&s&&Object.defineProperty(o,t,s),s};let E=class extends(d(o)){constructor(){super(...arguments),this.open=!1,this.size=c.Medium,this.position=h.Center,this.animation=m.Fade,this.backdrop=u.Closable,this.closable=!0,this.modalDraggable=!1,this.resizable=!1,this.fullscreen=!1,this.modalTitle=p,this.showCloseButton=!0,this.headerIcon=p,this.zIndex=1e3,this.width=p,this.height=p,this.isDragging=!1,this.offsetX=0,this.offsetY=0,this.animationState="closed",this.previousActiveElement=null,this.requiredComponents=["nr-icon","nr-button"],this.dragController=new C(this),this.keyboardController=new S(this),this.closeModal=()=>{if(!this.closable)return;const a=new CustomEvent("modal-before-close",{bubbles:!0,cancelable:!0,detail:{modal:this,cancel:()=>a.preventDefault()}});this.dispatchEvent(a)&&(this.open=!1,this.dispatchEvent(new CustomEvent("modal-close",{bubbles:!0,composed:!0,detail:{modal:this}})))},this.handleBackdropClick=a=>{this.backdrop===u.Closable&&a.target===a.currentTarget&&M.handleBackdropClick(this)&&this.closeModal()}}connectedCallback(){super.connectedCallback(),this.validateDependencies()}disconnectedCallback(){super.disconnectedCallback(),this.previousActiveElement instanceof HTMLElement&&this.previousActiveElement.focus()}willUpdate(a){super.willUpdate(a),a.has("open")&&(this.open?this.handleOpen():this.handleClose())}handleOpen(){const a=M.openModal(this);this.zIndex=a,this.animationState="opening",this.dispatchEvent(new CustomEvent("modal-open",{bubbles:!0,detail:{modal:this,stackDepth:M.getStackDepth()}})),this.updateComplete.then(()=>{this.startOpenAnimation()})}startOpenAnimation(){var a,o;const t=null===(a=this.shadowRoot)||void 0===a?void 0:a.querySelector(".modal"),e=null===(o=this.shadowRoot)||void 0===o?void 0:o.querySelector(".modal-backdrop");if(!t||!e)return;const{modalKeyframes:i}=this.getAnimationKeyframes(),r=t.animate(i,{duration:300,easing:"ease",fill:"forwards"});r.addEventListener("finish",()=>{this.animationState="open",r.commitStyles(),r.cancel(),t.style.transform="",M.isTopModal(this)&&this.keyboardController.focusFirstElement(),this.dispatchEvent(new CustomEvent("modal-after-open",{bubbles:!0,detail:{modal:this,stackDepth:M.getStackDepth()}}))})}getAnimationKeyframes(){let a;switch(this.animation){case"fade":default:a=[{opacity:0,transform:"scale(0.9)"},{opacity:1,transform:"scale(1)"}];break;case"zoom":a=[{opacity:0,transform:"scale(0.7)"},{opacity:1,transform:"scale(1)"}];break;case"slide-up":a=[{opacity:0,transform:"translateY(20px)"},{opacity:1,transform:"translateY(0)"}];break;case"slide-down":a=[{opacity:0,transform:"translateY(-20px)"},{opacity:1,transform:"translateY(0)"}]}return{modalKeyframes:a,backdropKeyframes:[{opacity:0},{opacity:1}]}}handleClose(){this.animationState="closing",M.closeModal(this),this.dragController.resetPosition(),setTimeout(()=>{this.animationState="closed"},300)}openModal(){this.open=!0}getBackdropClasses(){return{"modal-backdrop":!0,"modal-backdrop--hidden":!this.open,[`modal-backdrop--position-${this.position}`]:!0}}getModalClasses(){return{modal:!0,[`modal--size-${this.size}`]:!this.fullscreen,"modal--fullscreen":this.fullscreen,[`modal--animation-${this.animation}`]:"opening"===this.animationState||"open"===this.animationState,"modal--dragging":this.isDragging,"modal--resizable":this.resizable}}getModalStyles(){const a={};return this.zIndex&&(a["--nuraly-z-modal-backdrop"]=this.zIndex.toString()),this.width&&(a.width=this.width),this.height&&(a.height=this.height),a}renderHeader(){const a=this.querySelector('[slot="header"]'),o=this.modalTitle||this.headerIcon;return a||o||this.showCloseButton?e`
394
+ */var B=function(t,e,o,i){for(var s,a=arguments.length,n=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,r=t.length-1;r>=0;r--)(s=t[r])&&(n=(a<3?s(n):a>3?s(e,o,n):s(e,o))||n);return a>3&&n&&Object.defineProperty(e,o,n),n};let I=class extends((t=>E(C(M(D(t)))))(i)){constructor(){super(...arguments),this.open=!1,this.size=l.Medium,this.position=h.Center,this.animation=c.Fade,this.backdrop=m.Closable,this.closable=!0,this.modalDraggable=!1,this.resizable=!1,this.fullscreen=!1,this.modalTitle=p,this.showCloseButton=!0,this.headerIcon=p,this.zIndex=1e3,this.width=p,this.height=p,this.isDragging=!1,this.offsetX=0,this.offsetY=0,this.animationState="closed",this.previousActiveElement=null,this.requiredComponents=["nr-icon","nr-button"],this.dragController=new A(this),this.keyboardController=new T(this),this.closeModal=()=>{if(!this.closable)return;const t=new CustomEvent("modal-before-close",{bubbles:!0,cancelable:!0,detail:{modal:this,cancel:()=>t.preventDefault()}});this.dispatchEvent(t)&&(this.open=!1,this.dispatchEvent(new CustomEvent("modal-close",{bubbles:!0,composed:!0,detail:{modal:this}})))},this.handleBackdropClick=t=>{this.backdrop===m.Closable&&t.target===t.currentTarget&&j.handleBackdropClick(this)&&this.closeModal()}}connectedCallback(){super.connectedCallback(),this.validateDependencies()}disconnectedCallback(){super.disconnectedCallback(),this.previousActiveElement instanceof HTMLElement&&this.previousActiveElement.focus()}willUpdate(t){super.willUpdate(t),t.has("open")&&(this.open?this.handleOpen():this.handleClose())}handleOpen(){const t=j.openModal(this);this.zIndex=t,this.animationState="opening",this.dispatchEvent(new CustomEvent("modal-open",{bubbles:!0,detail:{modal:this,stackDepth:j.getStackDepth()}})),this.updateComplete.then(()=>{this.startOpenAnimation()})}startOpenAnimation(){var t,e;const o=null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector(".modal"),i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector(".modal-backdrop");if(!o||!i)return;const{modalKeyframes:s}=this.getAnimationKeyframes(),a=o.animate(s,{duration:300,easing:"ease",fill:"forwards"});a.addEventListener("finish",()=>{this.animationState="open",a.commitStyles(),a.cancel(),o.style.transform="",j.isTopModal(this)&&this.keyboardController.focusFirstElement(),this.dispatchEvent(new CustomEvent("modal-after-open",{bubbles:!0,detail:{modal:this,stackDepth:j.getStackDepth()}}))})}getAnimationKeyframes(){let t;switch(this.animation){case"fade":default:t=[{opacity:0,transform:"scale(0.9)"},{opacity:1,transform:"scale(1)"}];break;case"zoom":t=[{opacity:0,transform:"scale(0.7)"},{opacity:1,transform:"scale(1)"}];break;case"slide-up":t=[{opacity:0,transform:"translateY(20px)"},{opacity:1,transform:"translateY(0)"}];break;case"slide-down":t=[{opacity:0,transform:"translateY(-20px)"},{opacity:1,transform:"translateY(0)"}]}return{modalKeyframes:t,backdropKeyframes:[{opacity:0},{opacity:1}]}}handleClose(){this.animationState="closing",j.closeModal(this),this.dragController.resetPosition(),setTimeout(()=>{this.animationState="closed"},300)}openModal(){this.open=!0}getBackdropClasses(){return{"modal-backdrop":!0,"modal-backdrop--hidden":!this.open,[`modal-backdrop--position-${this.position}`]:!0}}getModalClasses(){return{modal:!0,[`modal--size-${this.size}`]:!this.fullscreen,"modal--fullscreen":this.fullscreen,[`modal--animation-${this.animation}`]:"opening"===this.animationState||"open"===this.animationState,"modal--dragging":this.isDragging,"modal--resizable":this.resizable}}getModalStyles(){const t={};return this.zIndex&&(t["--nuraly-z-modal-backdrop"]=this.zIndex.toString()),this.width&&(t.width=this.width),this.height&&(t.height=this.height),t}renderHeader(){const t=this.querySelector('[slot="header"]'),i=this.modalTitle||this.headerIcon;return t||i||this.showCloseButton?o`
386
395
  <div class="modal-header ${this.modalDraggable?"modal-header--draggable":""}">
387
- ${a?e`
396
+ ${t?o`
388
397
  <div class="modal-header-content">
389
398
  <slot name="header"></slot>
390
399
  </div>
391
- `:o?e`
400
+ `:i?o`
392
401
  <div class="modal-header-content">
393
- ${this.headerIcon?e`
402
+ ${this.headerIcon?o`
394
403
  <nr-icon class="modal-header-icon" name="${this.headerIcon}"></nr-icon>
395
- `:t}
396
- ${this.modalTitle?e`
404
+ `:e}
405
+ ${this.modalTitle?o`
397
406
  <h2 class="modal-title">${this.modalTitle}</h2>
398
- `:t}
407
+ `:e}
399
408
  </div>
400
- `:t}
409
+ `:e}
401
410
 
402
- ${this.showCloseButton?e`
411
+ ${this.showCloseButton?o`
403
412
  <button
404
413
  class="modal-close-button"
405
- @click=${a=>{a.stopPropagation(),this.open=!1,this.dispatchEvent(new CustomEvent("modal-close",{bubbles:!0,composed:!0,detail:{modal:this}}))}}
414
+ @click=${t=>{t.stopPropagation(),this.open=!1,this.dispatchEvent(new CustomEvent("modal-close",{bubbles:!0,composed:!0,detail:{modal:this}}))}}
406
415
  aria-label="Close modal"
407
416
  type="button">
408
417
  <nr-icon class="modal-close-icon" name="x"></nr-icon>
409
418
  </button>
410
- `:t}
419
+ `:e}
411
420
  </div>
412
- `:t}renderFooter(){return this.querySelector('[slot="footer"]')?e`
421
+ `:e}renderFooter(){return this.querySelector('[slot="footer"]')?o`
413
422
  <div class="modal-footer">
414
423
  <slot name="footer"></slot>
415
424
  </div>
416
- `:t}updated(){this.updateDataTheme()}updateDataTheme(){this.closest("[data-theme]")||this.setAttribute("data-theme",this.currentTheme)}render(){return this.open||"closed"!==this.animationState?e`
425
+ `:e}updated(){this.updateDataTheme()}updateDataTheme(){this.closest("[data-theme]")||this.setAttribute("data-theme",this.currentTheme)}render(){return this.open||"closed"!==this.animationState?o`
417
426
  <div
418
- class=${n(this.getBackdropClasses())}
427
+ class=${r(this.getBackdropClasses())}
419
428
  @click=${this.handleBackdropClick}
420
- style=${l(this.getModalStyles())}>
429
+ style=${d(this.getModalStyles())}>
421
430
 
422
431
  <div
423
- class=${n(this.getModalClasses())}
432
+ class=${r(this.getModalClasses())}
424
433
  role="dialog"
425
434
  aria-modal="true"
426
- aria-labelledby=${this.modalTitle?"modal-title":t}
435
+ aria-labelledby=${this.modalTitle?"modal-title":e}
427
436
  tabindex="-1">
428
437
 
429
438
  ${this.renderHeader()}
@@ -434,9 +443,9 @@ import{css as a,LitElement as o,nothing as t,html as e}from"lit";import{property
434
443
 
435
444
  ${this.renderFooter()}
436
445
 
437
- ${this.resizable?e`
446
+ ${this.resizable?o`
438
447
  <div class="resize-handle"></div>
439
- `:t}
448
+ `:e}
440
449
  </div>
441
450
  </div>
442
- `:t}};E.styles=z,$([i({type:Boolean,reflect:!0})],E.prototype,"open",void 0),$([i({type:String})],E.prototype,"size",void 0),$([i({type:String})],E.prototype,"position",void 0),$([i({type:String})],E.prototype,"animation",void 0),$([i({type:String})],E.prototype,"backdrop",void 0),$([i({type:Boolean})],E.prototype,"closable",void 0),$([i({type:Boolean})],E.prototype,"modalDraggable",void 0),$([i({type:Boolean})],E.prototype,"resizable",void 0),$([i({type:Boolean})],E.prototype,"fullscreen",void 0),$([i({type:String})],E.prototype,"modalTitle",void 0),$([i({type:Boolean,attribute:"show-close-button"})],E.prototype,"showCloseButton",void 0),$([i({type:String})],E.prototype,"headerIcon",void 0),$([i({type:Number})],E.prototype,"zIndex",void 0),$([i({type:String})],E.prototype,"width",void 0),$([i({type:String})],E.prototype,"height",void 0),$([r()],E.prototype,"isDragging",void 0),$([i({type:Number})],E.prototype,"offsetX",void 0),$([i({type:Number})],E.prototype,"offsetY",void 0),$([r()],E.prototype,"animationState",void 0),E=$([s("nr-modal")],E);export{x as DEFAULT_MODAL_CONFIG,w as DEFAULT_MODAL_FOOTER,k as DEFAULT_MODAL_HEADER,v as DEFAULT_Z_INDEX,p as EMPTY_STRING,m as ModalAnimation,u as ModalBackdrop,C as ModalDragController,S as ModalKeyboardController,M as ModalManager,h as ModalPosition,c as ModalSize,E as NrModalElement,b as isModalAnimation,g as isModalBackdrop,f as isModalPosition,y as isModalSize};
451
+ `:e}};I.useShadowDom=!0,I.styles=k,B([s({type:Boolean,reflect:!0})],I.prototype,"open",void 0),B([s({type:String})],I.prototype,"size",void 0),B([s({type:String})],I.prototype,"position",void 0),B([s({type:String})],I.prototype,"animation",void 0),B([s({type:String})],I.prototype,"backdrop",void 0),B([s({type:Boolean})],I.prototype,"closable",void 0),B([s({type:Boolean})],I.prototype,"modalDraggable",void 0),B([s({type:Boolean})],I.prototype,"resizable",void 0),B([s({type:Boolean})],I.prototype,"fullscreen",void 0),B([s({type:String})],I.prototype,"modalTitle",void 0),B([s({type:Boolean,attribute:"show-close-button"})],I.prototype,"showCloseButton",void 0),B([s({type:String})],I.prototype,"headerIcon",void 0),B([s({type:Number})],I.prototype,"zIndex",void 0),B([s({type:String})],I.prototype,"width",void 0),B([s({type:String})],I.prototype,"height",void 0),B([a()],I.prototype,"isDragging",void 0),B([s({type:Number})],I.prototype,"offsetX",void 0),B([s({type:Number})],I.prototype,"offsetY",void 0),B([a()],I.prototype,"animationState",void 0),I=B([n("nr-modal")],I);export{y as DEFAULT_MODAL_CONFIG,x as DEFAULT_MODAL_FOOTER,w as DEFAULT_MODAL_HEADER,u as DEFAULT_Z_INDEX,p as EMPTY_STRING,c as ModalAnimation,m as ModalBackdrop,A as ModalDragController,T as ModalKeyboardController,j as ModalManager,h as ModalPosition,l as ModalSize,I as NrModalElement,g as isModalAnimation,v as isModalBackdrop,b as isModalPosition,f as isModalSize};
@@ -6,7 +6,7 @@
6
6
  import { LitElement, nothing, type PropertyValues } from 'lit';
7
7
  import { ModalSize, ModalPosition, ModalAnimation, ModalBackdrop } from './modal.types.js';
8
8
  import { ModalDragHost, ModalKeyboardHost } from './controllers/index.js';
9
- declare const NrModalElement_base: (new (...args: any[]) => import("@nuralyui/common/mixins").DependencyAware) & (new (...args: any[]) => import("@nuralyui/common/mixins").ThemeAware) & (new (...args: any[]) => import("@nuralyui/common/mixins").EventHandlerCapable) & typeof LitElement;
9
+ declare const NrModalElement_base: (new (...args: any[]) => import("@nuralyui/common/mixins").DependencyAware) & (new (...args: any[]) => import("@nuralyui/common/mixins").ThemeAware) & (new (...args: any[]) => import("@nuralyui/common/mixins").EventHandlerCapable) & (new (...args: any[]) => import("packages/common/src/shared/base-mixin.js").LightDomContent) & typeof LitElement;
10
10
  /**
11
11
  * Versatile modal component with multiple sizes, animations, and enhanced functionality.
12
12
  *
@@ -48,6 +48,7 @@ declare const NrModalElement_base: (new (...args: any[]) => import("@nuralyui/co
48
48
  * @slot footer - Custom footer content
49
49
  */
50
50
  export declare class NrModalElement extends NrModalElement_base implements ModalDragHost, ModalKeyboardHost {
51
+ static useShadowDom: boolean;
51
52
  static styles: import("lit").CSSResult;
52
53
  /** Whether the modal is open */
53
54
  open: boolean;
@@ -396,6 +396,7 @@ let NrModalElement = class NrModalElement extends NuralyUIBaseMixin(LitElement)
396
396
  `;
397
397
  }
398
398
  };
399
+ NrModalElement.useShadowDom = true;
399
400
  NrModalElement.styles = styles;
400
401
  __decorate([
401
402
  property({ type: Boolean, reflect: true })