@aquera/nile-elements 0.1.65-beta-1.0 → 0.1.66-beta-1.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 (913) hide show
  1. package/README.md +10 -0
  2. package/demo/index.html +78 -113
  3. package/dist/axe.min-2c0b27d0.esm.js +1 -0
  4. package/dist/axe.min-51d832fe.cjs.js +2 -0
  5. package/dist/axe.min-51d832fe.cjs.js.map +1 -0
  6. package/dist/{fixture-75825990.cjs.js → fixture-28d63bc4.cjs.js} +2 -2
  7. package/dist/{fixture-75825990.cjs.js.map → fixture-28d63bc4.cjs.js.map} +1 -1
  8. package/dist/{fixture-7bfb866e.cjs.js → fixture-324a7ef9.cjs.js} +2 -2
  9. package/dist/{fixture-3330277d.cjs.js.map → fixture-324a7ef9.cjs.js.map} +1 -1
  10. package/dist/{fixture-3330277d.cjs.js → fixture-4da0d7ba.cjs.js} +3 -3
  11. package/dist/fixture-4da0d7ba.cjs.js.map +1 -0
  12. package/dist/{fixture-e831ec79.esm.js → fixture-78a015b8.esm.js} +1 -1
  13. package/dist/{fixture-588a3119.esm.js → fixture-aeed6660.esm.js} +2 -2
  14. package/dist/{fixture-2b5b3aba.esm.js → fixture-ba65eb22.esm.js} +1 -1
  15. package/dist/flow-938d2713.esm.js +17 -0
  16. package/dist/flow-eb3cbb92.cjs.js +14 -0
  17. package/dist/flow-eb3cbb92.cjs.js.map +1 -0
  18. package/dist/index.cjs.js +1 -1
  19. package/dist/index.esm.js +1 -1
  20. package/dist/index.js +868 -1005
  21. package/dist/internal/resizable-table-helper.cjs.js +2 -0
  22. package/dist/internal/resizable-table-helper.cjs.js.map +1 -0
  23. package/dist/internal/resizable-table-helper.esm.js +1 -0
  24. package/dist/internal/resizable-table-styles.cjs.js +2 -0
  25. package/dist/internal/resizable-table-styles.cjs.js.map +1 -0
  26. package/dist/internal/resizable-table-styles.esm.js +120 -0
  27. package/dist/lit-html-879bd16a.esm.js +7 -0
  28. package/dist/lit-html-9a84b336.cjs.js +6 -0
  29. package/dist/lit-html-9a84b336.cjs.js.map +1 -0
  30. package/dist/nile-accordion/nile-accordian.test.cjs.js +1 -1
  31. package/dist/nile-accordion/nile-accordian.test.esm.js +1 -1
  32. package/dist/nile-auto-complete/nile-auto-complete.test.cjs.js +1 -1
  33. package/dist/nile-auto-complete/nile-auto-complete.test.esm.js +1 -1
  34. package/dist/nile-avatar/nile-avatar.test.cjs.js +1 -1
  35. package/dist/nile-avatar/nile-avatar.test.cjs.js.map +1 -1
  36. package/dist/nile-avatar/nile-avatar.test.esm.js +1 -1
  37. package/dist/nile-badge/index.cjs.js +1 -1
  38. package/dist/nile-badge/index.esm.js +1 -1
  39. package/dist/nile-badge/nile-badge.cjs.js +1 -1
  40. package/dist/nile-badge/nile-badge.cjs.js.map +1 -1
  41. package/dist/nile-badge/nile-badge.esm.js +1 -1
  42. package/dist/nile-badge/nile-badge.test.cjs.js +1 -1
  43. package/dist/nile-badge/nile-badge.test.cjs.js.map +1 -1
  44. package/dist/nile-badge/nile-badge.test.esm.js +1 -1
  45. package/dist/nile-button/index.cjs.js +1 -1
  46. package/dist/nile-button/index.esm.js +1 -1
  47. package/dist/nile-button/nile-button.cjs.js +1 -1
  48. package/dist/nile-button/nile-button.cjs.js.map +1 -1
  49. package/dist/nile-button/nile-button.esm.js +2 -2
  50. package/dist/nile-button/nile-button.test.cjs.js +1 -1
  51. package/dist/nile-button/nile-button.test.cjs.js.map +1 -1
  52. package/dist/nile-button/nile-button.test.esm.js +1 -1
  53. package/dist/nile-button-toggle-group/nile-button-toggle-group.test.cjs.js +1 -1
  54. package/dist/nile-button-toggle-group/nile-button-toggle-group.test.esm.js +1 -1
  55. package/dist/nile-calendar/nile-calendar.test.cjs.js +1 -1
  56. package/dist/nile-calendar/nile-calendar.test.cjs.js.map +1 -1
  57. package/dist/nile-calendar/nile-calendar.test.esm.js +5 -5
  58. package/dist/nile-card/nile-card.test.cjs.js +1 -1
  59. package/dist/nile-card/nile-card.test.esm.js +1 -1
  60. package/dist/nile-checkbox/nile-checkbox.test.cjs.js +1 -1
  61. package/dist/nile-checkbox/nile-checkbox.test.esm.js +1 -1
  62. package/dist/nile-chip/nile-chip.test.cjs.js +1 -1
  63. package/dist/nile-chip/nile-chip.test.cjs.js.map +1 -1
  64. package/dist/nile-chip/nile-chip.test.esm.js +1 -1
  65. package/dist/nile-dialog/index.cjs.js +1 -1
  66. package/dist/nile-dialog/index.esm.js +1 -1
  67. package/dist/nile-dialog/nile-dialog.cjs.js +1 -1
  68. package/dist/nile-dialog/nile-dialog.cjs.js.map +1 -1
  69. package/dist/nile-dialog/nile-dialog.esm.js +1 -1
  70. package/dist/nile-dialog/nile-dialog.test.cjs.js +1 -1
  71. package/dist/nile-dialog/nile-dialog.test.cjs.js.map +1 -1
  72. package/dist/nile-dialog/nile-dialog.test.esm.js +1 -1
  73. package/dist/nile-drawer/index.cjs.js +1 -1
  74. package/dist/nile-drawer/index.esm.js +1 -1
  75. package/dist/nile-drawer/nile-drawer.cjs.js +1 -1
  76. package/dist/nile-drawer/nile-drawer.cjs.js.map +1 -1
  77. package/dist/nile-drawer/nile-drawer.esm.js +2 -2
  78. package/dist/nile-drawer/nile-drawer.test.cjs.js +1 -1
  79. package/dist/nile-drawer/nile-drawer.test.cjs.js.map +1 -1
  80. package/dist/nile-drawer/nile-drawer.test.esm.js +1 -1
  81. package/dist/nile-dropdown/nile-dropdown.test.cjs.js +1 -1
  82. package/dist/nile-dropdown/nile-dropdown.test.esm.js +1 -1
  83. package/dist/nile-empty-state/nile-empty-state.test.cjs.js +1 -1
  84. package/dist/nile-empty-state/nile-empty-state.test.esm.js +1 -1
  85. package/dist/nile-error-message/nile-error-message.test.cjs.js +1 -1
  86. package/dist/nile-error-message/nile-error-message.test.esm.js +1 -1
  87. package/dist/nile-file-preview/index.cjs.js +1 -1
  88. package/dist/nile-file-preview/index.esm.js +1 -1
  89. package/dist/nile-file-preview/nile-file-preview.cjs.js +1 -1
  90. package/dist/nile-file-preview/nile-file-preview.cjs.js.map +1 -1
  91. package/dist/nile-file-preview/nile-file-preview.css.cjs.js +1 -1
  92. package/dist/nile-file-preview/nile-file-preview.css.cjs.js.map +1 -1
  93. package/dist/nile-file-preview/nile-file-preview.css.esm.js +203 -184
  94. package/dist/nile-file-preview/nile-file-preview.esm.js +1 -3
  95. package/dist/nile-file-preview/nile-file-preview.template.cjs.js +1 -1
  96. package/dist/nile-file-preview/nile-file-preview.template.cjs.js.map +1 -1
  97. package/dist/nile-file-preview/nile-file-preview.template.esm.js +55 -58
  98. package/dist/nile-file-preview/nile-file-preview.test.cjs.js +1 -1
  99. package/dist/nile-file-preview/nile-file-preview.test.cjs.js.map +1 -1
  100. package/dist/nile-file-preview/nile-file-preview.test.esm.js +1 -1
  101. package/dist/nile-file-preview/types/index.cjs.js +1 -1
  102. package/dist/nile-file-preview/types/index.esm.js +1 -1
  103. package/dist/nile-file-preview/types/nile-file-preview.enums.cjs.js +1 -1
  104. package/dist/nile-file-preview/types/nile-file-preview.enums.cjs.js.map +1 -1
  105. package/dist/nile-file-preview/types/nile-file-preview.enums.esm.js +1 -1
  106. package/dist/nile-file-preview/types/nile-file-preview.interface.cjs.js +1 -1
  107. package/dist/nile-file-preview/types/nile-file-preview.interface.esm.js +1 -1
  108. package/dist/nile-file-preview/utils/index.cjs.js +1 -1
  109. package/dist/nile-file-preview/utils/index.esm.js +1 -1
  110. package/dist/nile-file-preview/utils/nile-file-preview.util.cjs.js +1 -1
  111. package/dist/nile-file-preview/utils/nile-file-preview.util.cjs.js.map +1 -1
  112. package/dist/nile-file-preview/utils/nile-file-preview.util.esm.js +1 -1
  113. package/dist/nile-file-upload/index.cjs.js +1 -1
  114. package/dist/nile-file-upload/index.esm.js +1 -1
  115. package/dist/nile-file-upload/nile-file-upload.cjs.js +1 -1
  116. package/dist/nile-file-upload/nile-file-upload.cjs.js.map +1 -1
  117. package/dist/nile-file-upload/nile-file-upload.css.cjs.js +1 -1
  118. package/dist/nile-file-upload/nile-file-upload.css.cjs.js.map +1 -1
  119. package/dist/nile-file-upload/nile-file-upload.css.esm.js +142 -89
  120. package/dist/nile-file-upload/nile-file-upload.esm.js +2 -2
  121. package/dist/nile-file-upload/nile-file-upload.template.cjs.js +3 -3
  122. package/dist/nile-file-upload/nile-file-upload.template.cjs.js.map +1 -1
  123. package/dist/nile-file-upload/nile-file-upload.template.esm.js +44 -98
  124. package/dist/nile-file-upload/nile-file-upload.test.cjs.js +1 -1
  125. package/dist/nile-file-upload/nile-file-upload.test.cjs.js.map +1 -1
  126. package/dist/nile-file-upload/nile-file-upload.test.esm.js +1 -1
  127. package/dist/nile-file-upload/types/file-upload.enums.cjs.js +1 -1
  128. package/dist/nile-file-upload/types/file-upload.enums.cjs.js.map +1 -1
  129. package/dist/nile-file-upload/types/file-upload.enums.esm.js +1 -1
  130. package/dist/nile-file-upload/types/file-upload.type.cjs.js +1 -1
  131. package/dist/nile-file-upload/types/file-upload.type.esm.js +1 -1
  132. package/dist/nile-file-upload/types/index.cjs.js +1 -1
  133. package/dist/nile-file-upload/types/index.esm.js +1 -1
  134. package/dist/nile-file-upload/utils/drag-drop.util.cjs.js +1 -1
  135. package/dist/nile-file-upload/utils/drag-drop.util.cjs.js.map +1 -1
  136. package/dist/nile-file-upload/utils/drag-drop.util.esm.js +1 -1
  137. package/dist/nile-file-upload/utils/file-validation.util.cjs.js +2 -1
  138. package/dist/nile-file-upload/utils/file-validation.util.cjs.js.map +1 -1
  139. package/dist/nile-file-upload/utils/file-validation.util.esm.js +1 -1
  140. package/dist/nile-filter-chip/nile-filter-chip.test.cjs.js +1 -1
  141. package/dist/nile-filter-chip/nile-filter-chip.test.esm.js +1 -1
  142. package/dist/nile-form-group/nile-form-group.test.cjs.js +1 -1
  143. package/dist/nile-form-group/nile-form-group.test.esm.js +1 -1
  144. package/dist/nile-form-help-text/nile-form-help-text.test.cjs.js +1 -1
  145. package/dist/nile-form-help-text/nile-form-help-text.test.esm.js +1 -1
  146. package/dist/nile-hero/nile-hero.test.cjs.js +1 -1
  147. package/dist/nile-hero/nile-hero.test.esm.js +1 -1
  148. package/dist/nile-icon/icons/svg/index.cjs.js +1 -1
  149. package/dist/nile-icon/icons/svg/index.esm.js +1 -1
  150. package/dist/nile-icon/icons/svg/ng-action.cjs.js +2 -0
  151. package/dist/nile-icon/icons/svg/ng-action.cjs.js.map +1 -0
  152. package/dist/nile-icon/icons/svg/ng-action.esm.js +1 -0
  153. package/dist/nile-icon/icons/svg/ng-alert-circle.cjs.js +2 -0
  154. package/dist/nile-icon/icons/svg/ng-alert-circle.cjs.js.map +1 -0
  155. package/dist/nile-icon/icons/svg/ng-alert-circle.esm.js +1 -0
  156. package/dist/nile-icon/icons/svg/ng-arrow-narrow-right.cjs.js +2 -0
  157. package/dist/nile-icon/icons/svg/ng-arrow-narrow-right.cjs.js.map +1 -0
  158. package/dist/nile-icon/icons/svg/ng-arrow-narrow-right.esm.js +1 -0
  159. package/dist/nile-icon/icons/svg/ng-building-01.cjs.js +2 -0
  160. package/dist/nile-icon/icons/svg/ng-building-01.cjs.js.map +1 -0
  161. package/dist/nile-icon/icons/svg/ng-building-01.esm.js +1 -0
  162. package/dist/nile-icon/icons/svg/ng-building-05.cjs.js +2 -0
  163. package/dist/nile-icon/icons/svg/ng-building-05.cjs.js.map +1 -0
  164. package/dist/nile-icon/icons/svg/ng-building-05.esm.js +1 -0
  165. package/dist/nile-icon/icons/svg/ng-button-loading-blue-animated.cjs.js +2 -0
  166. package/dist/nile-icon/icons/svg/ng-button-loading-blue-animated.cjs.js.map +1 -0
  167. package/dist/nile-icon/icons/svg/ng-button-loading-blue-animated.esm.js +1 -0
  168. package/dist/nile-icon/icons/svg/ng-button-loading-blue.cjs.js +2 -0
  169. package/dist/nile-icon/icons/svg/ng-button-loading-blue.cjs.js.map +1 -0
  170. package/dist/nile-icon/icons/svg/ng-button-loading-blue.esm.js +1 -0
  171. package/dist/nile-icon/icons/svg/ng-check-circle-broken.cjs.js +2 -0
  172. package/dist/nile-icon/icons/svg/ng-check-circle-broken.cjs.js.map +1 -0
  173. package/dist/nile-icon/icons/svg/ng-check-circle-broken.esm.js +1 -0
  174. package/dist/nile-icon/icons/svg/ng-check.cjs.js +2 -0
  175. package/dist/nile-icon/icons/svg/ng-check.cjs.js.map +1 -0
  176. package/dist/nile-icon/icons/svg/ng-check.esm.js +1 -0
  177. package/dist/nile-icon/icons/svg/ng-dataflow-04.cjs.js +2 -0
  178. package/dist/nile-icon/icons/svg/ng-dataflow-04.cjs.js.map +1 -0
  179. package/dist/nile-icon/icons/svg/ng-dataflow-04.esm.js +1 -0
  180. package/dist/nile-icon/icons/svg/ng-eye-off.cjs.js +2 -0
  181. package/dist/nile-icon/icons/svg/ng-eye-off.cjs.js.map +1 -0
  182. package/dist/nile-icon/icons/svg/ng-eye-off.esm.js +1 -0
  183. package/dist/nile-icon/icons/svg/ng-file-06.cjs.js +2 -0
  184. package/dist/nile-icon/icons/svg/ng-file-06.cjs.js.map +1 -0
  185. package/dist/nile-icon/icons/svg/ng-file-06.esm.js +1 -0
  186. package/dist/nile-icon/icons/svg/ng-image-03.cjs.js +2 -0
  187. package/dist/nile-icon/icons/svg/ng-image-03.cjs.js.map +1 -0
  188. package/dist/nile-icon/icons/svg/ng-image-03.esm.js +1 -0
  189. package/dist/nile-icon/icons/svg/ng-marker-pin-01.cjs.js +2 -0
  190. package/dist/nile-icon/icons/svg/ng-marker-pin-01.cjs.js.map +1 -0
  191. package/dist/nile-icon/icons/svg/ng-marker-pin-01.esm.js +1 -0
  192. package/dist/nile-icon/icons/svg/ng-minus.cjs.js +2 -0
  193. package/dist/nile-icon/icons/svg/ng-minus.cjs.js.map +1 -0
  194. package/dist/nile-icon/icons/svg/ng-minus.esm.js +1 -0
  195. package/dist/nile-icon/icons/svg/ng-x-circle.cjs.js +2 -0
  196. package/dist/nile-icon/icons/svg/ng-x-circle.cjs.js.map +1 -0
  197. package/dist/nile-icon/icons/svg/ng-x-circle.esm.js +1 -0
  198. package/dist/nile-icon/index.cjs.js +1 -1
  199. package/dist/nile-icon/index.cjs.js.map +1 -1
  200. package/dist/nile-icon/index.esm.js +1 -1
  201. package/dist/nile-icon/nile-icon.test.cjs.js +1 -1
  202. package/dist/nile-icon/nile-icon.test.cjs.js.map +1 -1
  203. package/dist/nile-icon/nile-icon.test.esm.js +1 -1
  204. package/dist/nile-icon-button/index.cjs.js +1 -1
  205. package/dist/nile-icon-button/index.esm.js +1 -1
  206. package/dist/nile-icon-button/nile-icon-button.cjs.js +1 -1
  207. package/dist/nile-icon-button/nile-icon-button.cjs.js.map +1 -1
  208. package/dist/nile-icon-button/nile-icon-button.esm.js +1 -1
  209. package/dist/nile-input/index.cjs.js +1 -1
  210. package/dist/nile-input/index.esm.js +1 -1
  211. package/dist/nile-input/nile-input.cjs.js +1 -1
  212. package/dist/nile-input/nile-input.cjs.js.map +1 -1
  213. package/dist/nile-input/nile-input.esm.js +1 -1
  214. package/dist/nile-input/nile-input.test.cjs.js +1 -1
  215. package/dist/nile-input/nile-input.test.cjs.js.map +1 -1
  216. package/dist/nile-input/nile-input.test.esm.js +2 -2
  217. package/dist/nile-link/nile-link.test.cjs.js +1 -1
  218. package/dist/nile-link/nile-link.test.esm.js +1 -1
  219. package/dist/nile-loader/nile-loader.test.cjs.js +1 -1
  220. package/dist/nile-loader/nile-loader.test.esm.js +1 -1
  221. package/dist/nile-menu-item/index.cjs.js +1 -1
  222. package/dist/nile-menu-item/index.esm.js +1 -1
  223. package/dist/nile-menu-item/nile-menu-item.cjs.js +1 -1
  224. package/dist/nile-menu-item/nile-menu-item.cjs.js.map +1 -1
  225. package/dist/nile-menu-item/nile-menu-item.esm.js +1 -1
  226. package/dist/nile-option/index.cjs.js +1 -1
  227. package/dist/nile-option/index.esm.js +1 -1
  228. package/dist/nile-option/nile-option.cjs.js +1 -1
  229. package/dist/nile-option/nile-option.cjs.js.map +1 -1
  230. package/dist/nile-option/nile-option.esm.js +1 -1
  231. package/dist/nile-popover/nile-popover.test.cjs.js +1 -1
  232. package/dist/nile-popover/nile-popover.test.esm.js +1 -1
  233. package/dist/nile-popup/nile-popup.test.cjs.js +1 -1
  234. package/dist/nile-popup/nile-popup.test.esm.js +1 -1
  235. package/dist/nile-progress-bar/nile-progress-bar.test.cjs.js +1 -1
  236. package/dist/nile-progress-bar/nile-progress-bar.test.esm.js +1 -1
  237. package/dist/nile-radio/nile-radio.test.cjs.js +1 -1
  238. package/dist/nile-radio/nile-radio.test.esm.js +1 -1
  239. package/dist/nile-radio-group/nile-radio-group.test.cjs.js +1 -1
  240. package/dist/nile-radio-group/nile-radio-group.test.esm.js +1 -1
  241. package/dist/nile-select/index.cjs.js +1 -1
  242. package/dist/nile-select/index.esm.js +1 -1
  243. package/dist/nile-select/nile-select.cjs.js +1 -1
  244. package/dist/nile-select/nile-select.cjs.js.map +1 -1
  245. package/dist/nile-select/nile-select.esm.js +1 -1
  246. package/dist/nile-select/nile-select.test.cjs.js +1 -1
  247. package/dist/nile-select/nile-select.test.cjs.js.map +1 -1
  248. package/dist/nile-select/nile-select.test.esm.js +1 -1
  249. package/dist/nile-select/virtual-scroll-helper.cjs.js +2 -0
  250. package/dist/nile-select/virtual-scroll-helper.cjs.js.map +1 -0
  251. package/dist/nile-select/virtual-scroll-helper.esm.js +38 -0
  252. package/dist/nile-slide-toggle/nile-slide-toggle.test.cjs.js +1 -1
  253. package/dist/nile-slide-toggle/nile-slide-toggle.test.esm.js +1 -1
  254. package/dist/nile-slider/index.cjs.js +2 -0
  255. package/dist/nile-slider/index.esm.js +1 -0
  256. package/dist/nile-slider/nile-slider.cjs.js +2 -0
  257. package/dist/nile-slider/nile-slider.cjs.js.map +1 -0
  258. package/dist/nile-slider/nile-slider.css.cjs.js +2 -0
  259. package/dist/nile-slider/nile-slider.css.cjs.js.map +1 -0
  260. package/dist/nile-slider/nile-slider.css.esm.js +106 -0
  261. package/dist/nile-slider/nile-slider.esm.js +27 -0
  262. package/dist/nile-slider/nile-slider.template.cjs.js +2 -0
  263. package/dist/nile-slider/nile-slider.template.cjs.js.map +1 -0
  264. package/dist/nile-slider/nile-slider.template.esm.js +59 -0
  265. package/dist/nile-slider/types/nile-slider.enums.cjs.js +2 -0
  266. package/dist/nile-slider/types/nile-slider.enums.cjs.js.map +1 -0
  267. package/dist/nile-slider/types/nile-slider.enums.esm.js +1 -0
  268. package/dist/nile-slider/types/nile-slider.types.cjs.js +2 -0
  269. package/dist/nile-slider/types/nile-slider.types.cjs.js.map +1 -0
  270. package/dist/nile-slider/types/nile-slider.types.esm.js +1 -0
  271. package/dist/nile-slider/utils/nile-slider.utils.cjs.js +2 -0
  272. package/dist/nile-slider/utils/nile-slider.utils.cjs.js.map +1 -0
  273. package/dist/nile-slider/utils/nile-slider.utils.esm.js +1 -0
  274. package/dist/nile-tab/index.cjs.js +1 -1
  275. package/dist/nile-tab/index.esm.js +1 -1
  276. package/dist/nile-tab/nile-tab.cjs.js +1 -1
  277. package/dist/nile-tab/nile-tab.cjs.js.map +1 -1
  278. package/dist/nile-tab/nile-tab.esm.js +1 -1
  279. package/dist/nile-tab-group/index.cjs.js +1 -1
  280. package/dist/nile-tab-group/index.esm.js +1 -1
  281. package/dist/nile-tab-group/nile-tab-group.cjs.js +1 -1
  282. package/dist/nile-tab-group/nile-tab-group.cjs.js.map +1 -1
  283. package/dist/nile-tab-group/nile-tab-group.esm.js +2 -2
  284. package/dist/nile-tab-group/nile-tab-group.test.cjs.js +1 -1
  285. package/dist/nile-tab-group/nile-tab-group.test.cjs.js.map +1 -1
  286. package/dist/nile-tab-group/nile-tab-group.test.esm.js +1 -1
  287. package/dist/nile-table-body/index.cjs.js +1 -1
  288. package/dist/nile-table-body/index.esm.js +1 -1
  289. package/dist/nile-table-body/nile-table-body.cjs.js +1 -1
  290. package/dist/nile-table-body/nile-table-body.cjs.js.map +1 -1
  291. package/dist/nile-table-body/nile-table-body.css.cjs.js +1 -1
  292. package/dist/nile-table-body/nile-table-body.css.cjs.js.map +1 -1
  293. package/dist/nile-table-body/nile-table-body.css.esm.js +4 -2
  294. package/dist/nile-table-body/nile-table-body.esm.js +3 -2
  295. package/dist/nile-table-cell-item/index.cjs.js +1 -1
  296. package/dist/nile-table-cell-item/index.esm.js +1 -1
  297. package/dist/nile-table-cell-item/nile-table-cell-item.cjs.js +1 -1
  298. package/dist/nile-table-cell-item/nile-table-cell-item.cjs.js.map +1 -1
  299. package/dist/nile-table-cell-item/nile-table-cell-item.css.cjs.js +1 -1
  300. package/dist/nile-table-cell-item/nile-table-cell-item.css.cjs.js.map +1 -1
  301. package/dist/nile-table-cell-item/nile-table-cell-item.css.esm.js +20 -3
  302. package/dist/nile-table-cell-item/nile-table-cell-item.esm.js +8 -3
  303. package/dist/nile-table-header-item/index.cjs.js +1 -1
  304. package/dist/nile-table-header-item/index.esm.js +1 -1
  305. package/dist/nile-table-header-item/nile-table-header-item.cjs.js +1 -1
  306. package/dist/nile-table-header-item/nile-table-header-item.cjs.js.map +1 -1
  307. package/dist/nile-table-header-item/nile-table-header-item.css.cjs.js +1 -1
  308. package/dist/nile-table-header-item/nile-table-header-item.css.cjs.js.map +1 -1
  309. package/dist/nile-table-header-item/nile-table-header-item.css.esm.js +7 -2
  310. package/dist/nile-table-header-item/nile-table-header-item.esm.js +9 -8
  311. package/dist/nile-table-row/nile-table-row.cjs.js +1 -1
  312. package/dist/nile-table-row/nile-table-row.cjs.js.map +1 -1
  313. package/dist/nile-table-row/nile-table-row.css.cjs.js +1 -1
  314. package/dist/nile-table-row/nile-table-row.css.cjs.js.map +1 -1
  315. package/dist/nile-table-row/nile-table-row.css.esm.js +51 -0
  316. package/dist/nile-table-row/nile-table-row.esm.js +26 -6
  317. package/dist/nile-tag/index.cjs.js +1 -1
  318. package/dist/nile-tag/index.esm.js +1 -1
  319. package/dist/nile-tag/nile-tag.cjs.js +1 -1
  320. package/dist/nile-tag/nile-tag.cjs.js.map +1 -1
  321. package/dist/nile-tag/nile-tag.esm.js +1 -1
  322. package/dist/nile-textarea/nile-textarea.test.cjs.js +1 -1
  323. package/dist/nile-textarea/nile-textarea.test.esm.js +1 -1
  324. package/dist/nile-toast/index.cjs.js +1 -1
  325. package/dist/nile-toast/index.esm.js +1 -1
  326. package/dist/nile-toast/nile-toast.cjs.js +1 -1
  327. package/dist/nile-toast/nile-toast.cjs.js.map +1 -1
  328. package/dist/nile-toast/nile-toast.esm.js +1 -1
  329. package/dist/nile-tree/index.cjs.js +1 -1
  330. package/dist/nile-tree/index.esm.js +1 -1
  331. package/dist/nile-tree/nile-tree.cjs.js +1 -1
  332. package/dist/nile-tree/nile-tree.cjs.js.map +1 -1
  333. package/dist/nile-tree/nile-tree.esm.js +1 -1
  334. package/dist/nile-tree-item/index.cjs.js +1 -1
  335. package/dist/nile-tree-item/index.esm.js +1 -1
  336. package/dist/nile-tree-item/nile-tree-item.cjs.js +1 -1
  337. package/dist/nile-tree-item/nile-tree-item.cjs.js.map +1 -1
  338. package/dist/nile-tree-item/nile-tree-item.esm.js +1 -1
  339. package/dist/nile-virtual-select/index.cjs.js +2 -0
  340. package/dist/nile-virtual-select/index.esm.js +1 -0
  341. package/dist/nile-virtual-select/nile-virtual-select.cjs.js +2 -0
  342. package/dist/nile-virtual-select/nile-virtual-select.cjs.js.map +1 -0
  343. package/dist/nile-virtual-select/nile-virtual-select.css.cjs.js +2 -0
  344. package/dist/nile-virtual-select/nile-virtual-select.css.cjs.js.map +1 -0
  345. package/dist/nile-virtual-select/nile-virtual-select.css.esm.js +477 -0
  346. package/dist/nile-virtual-select/nile-virtual-select.esm.js +227 -0
  347. package/dist/nile-virtual-select/nile-virtual-select.test.cjs.js +2 -0
  348. package/dist/nile-virtual-select/nile-virtual-select.test.cjs.js.map +1 -0
  349. package/dist/nile-virtual-select/nile-virtual-select.test.esm.js +93 -0
  350. package/dist/nile-virtual-select/renderer.cjs.js +2 -0
  351. package/dist/nile-virtual-select/renderer.cjs.js.map +1 -0
  352. package/dist/nile-virtual-select/renderer.esm.js +27 -0
  353. package/dist/nile-virtual-select/search-manager.cjs.js +2 -0
  354. package/dist/nile-virtual-select/search-manager.cjs.js.map +1 -0
  355. package/dist/nile-virtual-select/search-manager.esm.js +1 -0
  356. package/dist/nile-virtual-select/selection-manager.cjs.js +2 -0
  357. package/dist/nile-virtual-select/selection-manager.cjs.js.map +1 -0
  358. package/dist/nile-virtual-select/selection-manager.esm.js +1 -0
  359. package/dist/nile-virtual-select/types.cjs.js +2 -0
  360. package/dist/nile-virtual-select/types.cjs.js.map +1 -0
  361. package/dist/nile-virtual-select/types.esm.js +1 -0
  362. package/dist/scopedElementsWrapper-24f32095.cjs.js +6 -0
  363. package/dist/scopedElementsWrapper-24f32095.cjs.js.map +1 -0
  364. package/dist/scopedElementsWrapper-7a509408.esm.js +7 -0
  365. package/dist/sinon-esm-69e51168.cjs.js +2 -0
  366. package/dist/sinon-esm-69e51168.cjs.js.map +1 -0
  367. package/dist/sinon-esm-73a0cd99.esm.js +1 -0
  368. package/dist/src/index.d.ts +1 -3
  369. package/dist/src/index.js +1 -3
  370. package/dist/src/index.js.map +1 -1
  371. package/dist/src/internal/resizable-table-helper.d.ts +59 -0
  372. package/dist/src/internal/resizable-table-helper.js +111 -0
  373. package/dist/src/internal/resizable-table-helper.js.map +1 -0
  374. package/dist/src/internal/resizable-table-styles.d.ts +16 -0
  375. package/dist/src/internal/resizable-table-styles.js +137 -0
  376. package/dist/src/internal/resizable-table-styles.js.map +1 -0
  377. package/dist/src/nile-calendar/test.js +2 -0
  378. package/dist/src/nile-calendar/test.js.map +1 -0
  379. package/dist/src/nile-file-preview/nile-file-preview.css.js +201 -182
  380. package/dist/src/nile-file-preview/nile-file-preview.css.js.map +1 -1
  381. package/dist/src/nile-file-preview/nile-file-preview.d.ts +6 -2
  382. package/dist/src/nile-file-preview/nile-file-preview.js +49 -20
  383. package/dist/src/nile-file-preview/nile-file-preview.js.map +1 -1
  384. package/dist/src/nile-file-preview/nile-file-preview.template.d.ts +3 -2
  385. package/dist/src/nile-file-preview/nile-file-preview.template.js +51 -47
  386. package/dist/src/nile-file-preview/nile-file-preview.template.js.map +1 -1
  387. package/dist/src/nile-file-preview/types/nile-file-preview.enums.d.ts +4 -3
  388. package/dist/src/nile-file-preview/types/nile-file-preview.enums.js +3 -2
  389. package/dist/src/nile-file-preview/types/nile-file-preview.enums.js.map +1 -1
  390. package/dist/src/nile-file-preview/utils/nile-file-preview.util.d.ts +4 -0
  391. package/dist/src/nile-file-preview/utils/nile-file-preview.util.js +25 -0
  392. package/dist/src/nile-file-preview/utils/nile-file-preview.util.js.map +1 -1
  393. package/dist/src/nile-file-upload/nile-file-upload.css.js +140 -87
  394. package/dist/src/nile-file-upload/nile-file-upload.css.js.map +1 -1
  395. package/dist/src/nile-file-upload/nile-file-upload.d.ts +4 -1
  396. package/dist/src/nile-file-upload/nile-file-upload.js +30 -20
  397. package/dist/src/nile-file-upload/nile-file-upload.js.map +1 -1
  398. package/dist/src/nile-file-upload/nile-file-upload.template.d.ts +7 -5
  399. package/dist/src/nile-file-upload/nile-file-upload.template.js +63 -105
  400. package/dist/src/nile-file-upload/nile-file-upload.template.js.map +1 -1
  401. package/dist/src/nile-file-upload/types/file-upload.enums.d.ts +11 -4
  402. package/dist/src/nile-file-upload/types/file-upload.enums.js +8 -1
  403. package/dist/src/nile-file-upload/types/file-upload.enums.js.map +1 -1
  404. package/dist/src/nile-file-upload/utils/drag-drop.util.d.ts +2 -4
  405. package/dist/src/nile-file-upload/utils/drag-drop.util.js +18 -21
  406. package/dist/src/nile-file-upload/utils/drag-drop.util.js.map +1 -1
  407. package/dist/src/nile-file-upload/utils/file-validation.util.d.ts +3 -1
  408. package/dist/src/nile-file-upload/utils/file-validation.util.js +82 -32
  409. package/dist/src/nile-file-upload/utils/file-validation.util.js.map +1 -1
  410. package/dist/src/nile-icon/icons/svg/index.d.ts +0 -19
  411. package/dist/src/nile-icon/icons/svg/index.js +0 -19
  412. package/dist/src/nile-icon/icons/svg/index.js.map +1 -1
  413. package/dist/src/nile-icon/icons/svg/ng-action.d.ts +5 -0
  414. package/dist/src/nile-icon/icons/svg/ng-action.js +5 -0
  415. package/dist/src/nile-icon/icons/svg/ng-action.js.map +1 -0
  416. package/dist/src/nile-icon/icons/svg/ng-alert-circle.d.ts +5 -0
  417. package/dist/src/nile-icon/icons/svg/ng-alert-circle.js +5 -0
  418. package/dist/src/nile-icon/icons/svg/ng-alert-circle.js.map +1 -0
  419. package/dist/src/nile-icon/icons/svg/ng-arrow-narrow-right.d.ts +5 -0
  420. package/dist/src/nile-icon/icons/svg/ng-arrow-narrow-right.js +5 -0
  421. package/dist/src/nile-icon/icons/svg/ng-arrow-narrow-right.js.map +1 -0
  422. package/dist/src/nile-icon/icons/svg/ng-building-01.d.ts +5 -0
  423. package/dist/src/nile-icon/icons/svg/ng-building-01.js +5 -0
  424. package/dist/src/nile-icon/icons/svg/ng-building-01.js.map +1 -0
  425. package/dist/src/nile-icon/icons/svg/ng-building-05.d.ts +5 -0
  426. package/dist/src/nile-icon/icons/svg/ng-building-05.js +5 -0
  427. package/dist/src/nile-icon/icons/svg/ng-building-05.js.map +1 -0
  428. package/dist/src/nile-icon/icons/svg/ng-button-loading-blue-animated.d.ts +5 -0
  429. package/dist/src/nile-icon/icons/svg/ng-button-loading-blue-animated.js +5 -0
  430. package/dist/src/nile-icon/icons/svg/ng-button-loading-blue-animated.js.map +1 -0
  431. package/dist/src/nile-icon/icons/svg/ng-button-loading-blue.d.ts +5 -0
  432. package/dist/src/nile-icon/icons/svg/ng-button-loading-blue.js +5 -0
  433. package/dist/src/nile-icon/icons/svg/ng-button-loading-blue.js.map +1 -0
  434. package/dist/src/nile-icon/icons/svg/ng-check-circle-broken.d.ts +5 -0
  435. package/dist/src/nile-icon/icons/svg/ng-check-circle-broken.js +5 -0
  436. package/dist/src/nile-icon/icons/svg/ng-check-circle-broken.js.map +1 -0
  437. package/dist/src/nile-icon/icons/svg/ng-check.d.ts +5 -0
  438. package/dist/src/nile-icon/icons/svg/ng-check.js +5 -0
  439. package/dist/src/nile-icon/icons/svg/ng-check.js.map +1 -0
  440. package/dist/src/nile-icon/icons/svg/ng-dataflow-04.d.ts +5 -0
  441. package/dist/src/nile-icon/icons/svg/ng-dataflow-04.js +5 -0
  442. package/dist/src/nile-icon/icons/svg/ng-dataflow-04.js.map +1 -0
  443. package/dist/src/nile-icon/icons/svg/ng-eye-off.d.ts +5 -0
  444. package/dist/src/nile-icon/icons/svg/ng-eye-off.js +5 -0
  445. package/dist/src/nile-icon/icons/svg/ng-eye-off.js.map +1 -0
  446. package/dist/src/nile-icon/icons/svg/ng-file-06.d.ts +5 -0
  447. package/dist/src/nile-icon/icons/svg/ng-file-06.js +5 -0
  448. package/dist/src/nile-icon/icons/svg/ng-file-06.js.map +1 -0
  449. package/dist/src/nile-icon/icons/svg/ng-image-03.d.ts +5 -0
  450. package/dist/src/nile-icon/icons/svg/ng-image-03.js +5 -0
  451. package/dist/src/nile-icon/icons/svg/ng-image-03.js.map +1 -0
  452. package/dist/src/nile-icon/icons/svg/ng-marker-pin-01.d.ts +5 -0
  453. package/dist/src/nile-icon/icons/svg/ng-marker-pin-01.js +5 -0
  454. package/dist/src/nile-icon/icons/svg/ng-marker-pin-01.js.map +1 -0
  455. package/dist/src/nile-icon/icons/svg/ng-minus.d.ts +5 -0
  456. package/dist/src/nile-icon/icons/svg/ng-minus.js +5 -0
  457. package/dist/src/nile-icon/icons/svg/ng-minus.js.map +1 -0
  458. package/dist/src/nile-icon/icons/svg/ng-x-circle.d.ts +5 -0
  459. package/dist/src/nile-icon/icons/svg/ng-x-circle.js +5 -0
  460. package/dist/src/nile-icon/icons/svg/ng-x-circle.js.map +1 -0
  461. package/dist/src/nile-select/virtual-scroll-helper.d.ts +9 -0
  462. package/dist/src/nile-select/virtual-scroll-helper.js +51 -0
  463. package/dist/src/nile-select/virtual-scroll-helper.js.map +1 -0
  464. package/dist/src/nile-slider/index.d.ts +1 -0
  465. package/dist/src/nile-slider/index.js +2 -0
  466. package/dist/src/nile-slider/index.js.map +1 -0
  467. package/dist/src/{nile-rich-text-editor/nile-rich-text-editor.css.d.ts → nile-slider/nile-slider.css.d.ts} +3 -0
  468. package/dist/src/nile-slider/nile-slider.css.js +118 -0
  469. package/dist/src/nile-slider/nile-slider.css.js.map +1 -0
  470. package/dist/src/nile-slider/nile-slider.d.ts +48 -0
  471. package/dist/src/nile-slider/nile-slider.js +217 -0
  472. package/dist/src/nile-slider/nile-slider.js.map +1 -0
  473. package/dist/src/nile-slider/nile-slider.template.d.ts +5 -0
  474. package/dist/src/nile-slider/nile-slider.template.js +73 -0
  475. package/dist/src/nile-slider/nile-slider.template.js.map +1 -0
  476. package/dist/src/nile-slider/types/nile-slider.enums.d.ts +10 -0
  477. package/dist/src/nile-slider/types/nile-slider.enums.js +2 -0
  478. package/dist/src/nile-slider/types/nile-slider.enums.js.map +1 -0
  479. package/dist/src/nile-slider/types/nile-slider.types.d.ts +1 -0
  480. package/dist/src/nile-slider/types/nile-slider.types.js +2 -0
  481. package/dist/src/nile-slider/types/nile-slider.types.js.map +1 -0
  482. package/dist/src/nile-slider/utils/nile-slider.utils.d.ts +11 -0
  483. package/dist/src/nile-slider/utils/nile-slider.utils.js +99 -0
  484. package/dist/src/nile-slider/utils/nile-slider.utils.js.map +1 -0
  485. package/dist/src/nile-table-body/nile-table-body.css.js +3 -0
  486. package/dist/src/nile-table-body/nile-table-body.css.js.map +1 -1
  487. package/dist/src/nile-table-body/nile-table-body.d.ts +2 -0
  488. package/dist/src/nile-table-body/nile-table-body.js +10 -0
  489. package/dist/src/nile-table-body/nile-table-body.js.map +1 -1
  490. package/dist/src/nile-table-cell-item/nile-table-cell-item.css.js +19 -1
  491. package/dist/src/nile-table-cell-item/nile-table-cell-item.css.js.map +1 -1
  492. package/dist/src/nile-table-cell-item/nile-table-cell-item.d.ts +3 -0
  493. package/dist/src/nile-table-cell-item/nile-table-cell-item.js +27 -8
  494. package/dist/src/nile-table-cell-item/nile-table-cell-item.js.map +1 -1
  495. package/dist/src/nile-table-header-item/nile-table-header-item.css.js +6 -0
  496. package/dist/src/nile-table-header-item/nile-table-header-item.css.js.map +1 -1
  497. package/dist/src/nile-table-header-item/nile-table-header-item.d.ts +3 -0
  498. package/dist/src/nile-table-header-item/nile-table-header-item.js +22 -15
  499. package/dist/src/nile-table-header-item/nile-table-header-item.js.map +1 -1
  500. package/dist/src/nile-table-row/nile-table-row.css.js +51 -0
  501. package/dist/src/nile-table-row/nile-table-row.css.js.map +1 -1
  502. package/dist/src/nile-table-row/nile-table-row.d.ts +5 -0
  503. package/dist/src/nile-table-row/nile-table-row.js +64 -11
  504. package/dist/src/nile-table-row/nile-table-row.js.map +1 -1
  505. package/dist/src/nile-virtual-select/index.d.ts +1 -0
  506. package/dist/src/nile-virtual-select/index.js +2 -0
  507. package/dist/src/nile-virtual-select/index.js.map +1 -0
  508. package/dist/src/nile-virtual-select/nile-virtual-select.css.d.ts +12 -0
  509. package/dist/src/nile-virtual-select/nile-virtual-select.css.js +489 -0
  510. package/dist/src/nile-virtual-select/nile-virtual-select.css.js.map +1 -0
  511. package/dist/src/nile-virtual-select/nile-virtual-select.d.ts +266 -0
  512. package/dist/src/nile-virtual-select/nile-virtual-select.js +1226 -0
  513. package/dist/src/nile-virtual-select/nile-virtual-select.js.map +1 -0
  514. package/dist/src/nile-virtual-select/nile-virtual-select.test.d.ts +7 -0
  515. package/dist/src/nile-virtual-select/nile-virtual-select.test.js +631 -0
  516. package/dist/src/nile-virtual-select/nile-virtual-select.test.js.map +1 -0
  517. package/dist/src/nile-virtual-select/renderer.d.ts +16 -0
  518. package/dist/src/nile-virtual-select/renderer.js +71 -0
  519. package/dist/src/nile-virtual-select/renderer.js.map +1 -0
  520. package/dist/src/nile-virtual-select/search-manager.d.ts +12 -0
  521. package/dist/src/nile-virtual-select/search-manager.js +40 -0
  522. package/dist/src/nile-virtual-select/search-manager.js.map +1 -0
  523. package/dist/src/nile-virtual-select/selection-manager.d.ts +12 -0
  524. package/dist/src/nile-virtual-select/selection-manager.js +64 -0
  525. package/dist/src/nile-virtual-select/selection-manager.js.map +1 -0
  526. package/dist/src/nile-virtual-select/types.d.ts +50 -0
  527. package/dist/src/nile-virtual-select/types.js +8 -0
  528. package/dist/src/nile-virtual-select/types.js.map +1 -0
  529. package/dist/src/version.d.ts +9 -0
  530. package/dist/src/version.js +7 -0
  531. package/dist/src/version.js.map +1 -0
  532. package/dist/tsconfig.tsbuildinfo +1 -1
  533. package/dist/version.cjs.js +2 -0
  534. package/dist/version.cjs.js.map +1 -0
  535. package/dist/version.esm.js +1 -0
  536. package/dist/virtualize-3a6cec69.esm.js +22 -0
  537. package/dist/virtualize-72f549f4.cjs.js +18 -0
  538. package/dist/virtualize-72f549f4.cjs.js.map +1 -0
  539. package/dist/virtualize-a4a40d96.esm.js +22 -0
  540. package/dist/virtualize-b6a2fbe0.cjs.js +18 -0
  541. package/dist/virtualize-b6a2fbe0.cjs.js.map +1 -0
  542. package/package.json +3 -5
  543. package/src/index.ts +1 -3
  544. package/src/internal/resizable-table-helper.ts +151 -0
  545. package/src/internal/resizable-table-styles.ts +144 -0
  546. package/src/nile-icon/icons/svg/index.ts +0 -19
  547. package/src/nile-slider/index.ts +1 -0
  548. package/src/nile-slider/nile-slider.css.ts +119 -0
  549. package/src/nile-slider/nile-slider.template.ts +77 -0
  550. package/src/nile-slider/nile-slider.ts +215 -0
  551. package/src/nile-slider/types/nile-slider.enums.ts +10 -0
  552. package/src/nile-slider/types/nile-slider.types.ts +13 -0
  553. package/src/nile-slider/utils/nile-slider.utils.ts +136 -0
  554. package/src/nile-table-body/nile-table-body.css.ts +3 -0
  555. package/src/nile-table-body/nile-table-body.ts +9 -0
  556. package/src/nile-table-cell-item/nile-table-cell-item.css.ts +19 -1
  557. package/src/nile-table-cell-item/nile-table-cell-item.ts +22 -5
  558. package/src/nile-table-header-item/nile-table-header-item.css.ts +6 -0
  559. package/src/nile-table-header-item/nile-table-header-item.ts +11 -5
  560. package/src/nile-table-row/nile-table-row.css.ts +51 -0
  561. package/src/nile-table-row/nile-table-row.ts +59 -7
  562. package/vscode-html-custom-data.json +166 -193
  563. package/dist/axe.min-2b379f29.cjs.js +0 -12
  564. package/dist/axe.min-2b379f29.cjs.js.map +0 -1
  565. package/dist/axe.min-c2cd8733.esm.js +0 -12
  566. package/dist/fixture-7bfb866e.cjs.js.map +0 -1
  567. package/dist/nile-icon/icons/svg/bold-try.cjs.js +0 -2
  568. package/dist/nile-icon/icons/svg/bold-try.cjs.js.map +0 -1
  569. package/dist/nile-icon/icons/svg/bold-try.esm.js +0 -1
  570. package/dist/nile-icon/icons/svg/bold.cjs.js +0 -2
  571. package/dist/nile-icon/icons/svg/bold.cjs.js.map +0 -1
  572. package/dist/nile-icon/icons/svg/bold.esm.js +0 -1
  573. package/dist/nile-icon/icons/svg/center-align.cjs.js +0 -2
  574. package/dist/nile-icon/icons/svg/center-align.cjs.js.map +0 -1
  575. package/dist/nile-icon/icons/svg/center-align.esm.js +0 -1
  576. package/dist/nile-icon/icons/svg/itallic.cjs.js +0 -2
  577. package/dist/nile-icon/icons/svg/itallic.cjs.js.map +0 -1
  578. package/dist/nile-icon/icons/svg/itallic.esm.js +0 -1
  579. package/dist/nile-icon/icons/svg/justify-align.cjs.js +0 -2
  580. package/dist/nile-icon/icons/svg/justify-align.cjs.js.map +0 -1
  581. package/dist/nile-icon/icons/svg/justify-align.esm.js +0 -1
  582. package/dist/nile-icon/icons/svg/left-align.cjs.js +0 -2
  583. package/dist/nile-icon/icons/svg/left-align.cjs.js.map +0 -1
  584. package/dist/nile-icon/icons/svg/left-align.esm.js +0 -1
  585. package/dist/nile-icon/icons/svg/nile-bold.cjs.js +0 -2
  586. package/dist/nile-icon/icons/svg/nile-bold.cjs.js.map +0 -1
  587. package/dist/nile-icon/icons/svg/nile-bold.esm.js +0 -1
  588. package/dist/nile-icon/icons/svg/nile-centeralign.cjs.js +0 -2
  589. package/dist/nile-icon/icons/svg/nile-centeralign.cjs.js.map +0 -1
  590. package/dist/nile-icon/icons/svg/nile-centeralign.esm.js +0 -1
  591. package/dist/nile-icon/icons/svg/nile-italic.cjs.js +0 -2
  592. package/dist/nile-icon/icons/svg/nile-italic.cjs.js.map +0 -1
  593. package/dist/nile-icon/icons/svg/nile-italic.esm.js +0 -1
  594. package/dist/nile-icon/icons/svg/nile-justify.cjs.js +0 -2
  595. package/dist/nile-icon/icons/svg/nile-justify.cjs.js.map +0 -1
  596. package/dist/nile-icon/icons/svg/nile-justify.esm.js +0 -1
  597. package/dist/nile-icon/icons/svg/nile-leftalign.cjs.js +0 -2
  598. package/dist/nile-icon/icons/svg/nile-leftalign.cjs.js.map +0 -1
  599. package/dist/nile-icon/icons/svg/nile-leftalign.esm.js +0 -1
  600. package/dist/nile-icon/icons/svg/nile-ol.cjs.js +0 -2
  601. package/dist/nile-icon/icons/svg/nile-ol.cjs.js.map +0 -1
  602. package/dist/nile-icon/icons/svg/nile-ol.esm.js +0 -1
  603. package/dist/nile-icon/icons/svg/nile-rightalign.cjs.js +0 -2
  604. package/dist/nile-icon/icons/svg/nile-rightalign.cjs.js.map +0 -1
  605. package/dist/nile-icon/icons/svg/nile-rightalign.esm.js +0 -1
  606. package/dist/nile-icon/icons/svg/nile-ul.cjs.js +0 -2
  607. package/dist/nile-icon/icons/svg/nile-ul.cjs.js.map +0 -1
  608. package/dist/nile-icon/icons/svg/nile-ul.esm.js +0 -1
  609. package/dist/nile-icon/icons/svg/nile-underline.cjs.js +0 -2
  610. package/dist/nile-icon/icons/svg/nile-underline.cjs.js.map +0 -1
  611. package/dist/nile-icon/icons/svg/nile-underline.esm.js +0 -1
  612. package/dist/nile-icon/icons/svg/ol.cjs.js +0 -2
  613. package/dist/nile-icon/icons/svg/ol.cjs.js.map +0 -1
  614. package/dist/nile-icon/icons/svg/ol.esm.js +0 -1
  615. package/dist/nile-icon/icons/svg/right-align.cjs.js +0 -2
  616. package/dist/nile-icon/icons/svg/right-align.cjs.js.map +0 -1
  617. package/dist/nile-icon/icons/svg/right-align.esm.js +0 -1
  618. package/dist/nile-icon/icons/svg/ul.cjs.js +0 -2
  619. package/dist/nile-icon/icons/svg/ul.cjs.js.map +0 -1
  620. package/dist/nile-icon/icons/svg/ul.esm.js +0 -1
  621. package/dist/nile-icon/icons/svg/underline.cjs.js +0 -2
  622. package/dist/nile-icon/icons/svg/underline.cjs.js.map +0 -1
  623. package/dist/nile-icon/icons/svg/underline.esm.js +0 -1
  624. package/dist/nile-lightdomeditor/index.cjs.js +0 -2
  625. package/dist/nile-lightdomeditor/index.esm.js +0 -1
  626. package/dist/nile-lightdomeditor/nile-lightdomeditor.cjs.js +0 -2
  627. package/dist/nile-lightdomeditor/nile-lightdomeditor.cjs.js.map +0 -1
  628. package/dist/nile-lightdomeditor/nile-lightdomeditor.css.cjs.js +0 -2
  629. package/dist/nile-lightdomeditor/nile-lightdomeditor.css.cjs.js.map +0 -1
  630. package/dist/nile-lightdomeditor/nile-lightdomeditor.css.esm.js +0 -225
  631. package/dist/nile-lightdomeditor/nile-lightdomeditor.esm.js +0 -122
  632. package/dist/nile-rich-text-editor/index.cjs.js +0 -2
  633. package/dist/nile-rich-text-editor/index.esm.js +0 -1
  634. package/dist/nile-rich-text-editor/nile-rich-text-editor.cjs.js +0 -2
  635. package/dist/nile-rich-text-editor/nile-rich-text-editor.cjs.js.map +0 -1
  636. package/dist/nile-rich-text-editor/nile-rich-text-editor.css.cjs.js +0 -2
  637. package/dist/nile-rich-text-editor/nile-rich-text-editor.css.cjs.js.map +0 -1
  638. package/dist/nile-rich-text-editor/nile-rich-text-editor.css.esm.js +0 -87
  639. package/dist/nile-rich-text-editor/nile-rich-text-editor.esm.js +0 -1
  640. package/dist/nile-rich-text-editor/nile-rte-color.cjs.js +0 -2
  641. package/dist/nile-rich-text-editor/nile-rte-color.cjs.js.map +0 -1
  642. package/dist/nile-rich-text-editor/nile-rte-color.esm.js +0 -1
  643. package/dist/nile-rich-text-editor/nile-rte-divider.cjs.js +0 -2
  644. package/dist/nile-rich-text-editor/nile-rte-divider.cjs.js.map +0 -1
  645. package/dist/nile-rich-text-editor/nile-rte-divider.esm.js +0 -1
  646. package/dist/nile-rich-text-editor/nile-rte-mentions-item.cjs.js +0 -2
  647. package/dist/nile-rich-text-editor/nile-rte-mentions-item.cjs.js.map +0 -1
  648. package/dist/nile-rich-text-editor/nile-rte-mentions-item.esm.js +0 -1
  649. package/dist/nile-rich-text-editor/nile-rte-mentions.cjs.js +0 -3
  650. package/dist/nile-rich-text-editor/nile-rte-mentions.cjs.js.map +0 -1
  651. package/dist/nile-rich-text-editor/nile-rte-mentions.esm.js +0 -1
  652. package/dist/nile-rich-text-editor/nile-rte-preview.cjs.js +0 -2
  653. package/dist/nile-rich-text-editor/nile-rte-preview.cjs.js.map +0 -1
  654. package/dist/nile-rich-text-editor/nile-rte-preview.esm.js +0 -1
  655. package/dist/nile-rich-text-editor/nile-rte-select.cjs.js +0 -2
  656. package/dist/nile-rich-text-editor/nile-rte-select.cjs.js.map +0 -1
  657. package/dist/nile-rich-text-editor/nile-rte-select.esm.js +0 -52
  658. package/dist/nile-rich-text-editor/nile-rte-toolbar-item.cjs.js +0 -2
  659. package/dist/nile-rich-text-editor/nile-rte-toolbar-item.cjs.js.map +0 -1
  660. package/dist/nile-rich-text-editor/nile-rte-toolbar-item.esm.js +0 -1
  661. package/dist/nile-rich-text-editor/nile-rte-toolbar.cjs.js +0 -2
  662. package/dist/nile-rich-text-editor/nile-rte-toolbar.cjs.js.map +0 -1
  663. package/dist/nile-rich-text-editor/nile-rte-toolbar.esm.js +0 -1
  664. package/dist/nile-rich-text-editor/utils.cjs.js +0 -2
  665. package/dist/nile-rich-text-editor/utils.cjs.js.map +0 -1
  666. package/dist/nile-rich-text-editor/utils.esm.js +0 -1
  667. package/dist/nile-richcodeeditor/index.cjs.js +0 -2
  668. package/dist/nile-richcodeeditor/index.cjs.js.map +0 -1
  669. package/dist/nile-richcodeeditor/index.esm.js +0 -1
  670. package/dist/nile-richcodeeditor/nile-richcodeeditor.cjs.js +0 -2
  671. package/dist/nile-richcodeeditor/nile-richcodeeditor.cjs.js.map +0 -1
  672. package/dist/nile-richcodeeditor/nile-richcodeeditor.css.cjs.js +0 -2
  673. package/dist/nile-richcodeeditor/nile-richcodeeditor.css.cjs.js.map +0 -1
  674. package/dist/nile-richcodeeditor/nile-richcodeeditor.css.esm.js +0 -5
  675. package/dist/nile-richcodeeditor/nile-richcodeeditor.esm.js +0 -66
  676. package/dist/src/nile-badge/__snapshots__/nile-badge.test.snap.js +0 -17
  677. package/dist/src/nile-calendar/__snapshots__/nile-calendar.test.snap.js +0 -310
  678. package/dist/src/nile-card/__snapshots__/nile-card.test.snap.js +0 -34
  679. package/dist/src/nile-checkbox/__snapshots__/nile-checkbox.test.snap.js +0 -31
  680. package/dist/src/nile-hero/__snapshots__/nile-hero.test.snap.js +0 -47
  681. package/dist/src/nile-icon/__snapshots__/nile-icon.test.snap.js +0 -16
  682. package/dist/src/nile-icon/icons/svg/bold-try.d.ts +0 -5
  683. package/dist/src/nile-icon/icons/svg/bold-try.js +0 -5
  684. package/dist/src/nile-icon/icons/svg/bold-try.js.map +0 -1
  685. package/dist/src/nile-icon/icons/svg/bold.d.ts +0 -5
  686. package/dist/src/nile-icon/icons/svg/bold.js +0 -5
  687. package/dist/src/nile-icon/icons/svg/bold.js.map +0 -1
  688. package/dist/src/nile-icon/icons/svg/center-align.d.ts +0 -5
  689. package/dist/src/nile-icon/icons/svg/center-align.js +0 -5
  690. package/dist/src/nile-icon/icons/svg/center-align.js.map +0 -1
  691. package/dist/src/nile-icon/icons/svg/itallic.d.ts +0 -5
  692. package/dist/src/nile-icon/icons/svg/itallic.js +0 -5
  693. package/dist/src/nile-icon/icons/svg/itallic.js.map +0 -1
  694. package/dist/src/nile-icon/icons/svg/justify-align.d.ts +0 -5
  695. package/dist/src/nile-icon/icons/svg/justify-align.js +0 -5
  696. package/dist/src/nile-icon/icons/svg/justify-align.js.map +0 -1
  697. package/dist/src/nile-icon/icons/svg/left-align.d.ts +0 -5
  698. package/dist/src/nile-icon/icons/svg/left-align.js +0 -5
  699. package/dist/src/nile-icon/icons/svg/left-align.js.map +0 -1
  700. package/dist/src/nile-icon/icons/svg/nile-bold.d.ts +0 -5
  701. package/dist/src/nile-icon/icons/svg/nile-bold.js +0 -5
  702. package/dist/src/nile-icon/icons/svg/nile-bold.js.map +0 -1
  703. package/dist/src/nile-icon/icons/svg/nile-centeralign.d.ts +0 -5
  704. package/dist/src/nile-icon/icons/svg/nile-centeralign.js +0 -5
  705. package/dist/src/nile-icon/icons/svg/nile-centeralign.js.map +0 -1
  706. package/dist/src/nile-icon/icons/svg/nile-italic.d.ts +0 -5
  707. package/dist/src/nile-icon/icons/svg/nile-italic.js +0 -5
  708. package/dist/src/nile-icon/icons/svg/nile-italic.js.map +0 -1
  709. package/dist/src/nile-icon/icons/svg/nile-justify.d.ts +0 -5
  710. package/dist/src/nile-icon/icons/svg/nile-justify.js +0 -5
  711. package/dist/src/nile-icon/icons/svg/nile-justify.js.map +0 -1
  712. package/dist/src/nile-icon/icons/svg/nile-leftalign.d.ts +0 -5
  713. package/dist/src/nile-icon/icons/svg/nile-leftalign.js +0 -5
  714. package/dist/src/nile-icon/icons/svg/nile-leftalign.js.map +0 -1
  715. package/dist/src/nile-icon/icons/svg/nile-ol.d.ts +0 -5
  716. package/dist/src/nile-icon/icons/svg/nile-ol.js +0 -5
  717. package/dist/src/nile-icon/icons/svg/nile-ol.js.map +0 -1
  718. package/dist/src/nile-icon/icons/svg/nile-rightalign.d.ts +0 -5
  719. package/dist/src/nile-icon/icons/svg/nile-rightalign.js +0 -5
  720. package/dist/src/nile-icon/icons/svg/nile-rightalign.js.map +0 -1
  721. package/dist/src/nile-icon/icons/svg/nile-ul.d.ts +0 -5
  722. package/dist/src/nile-icon/icons/svg/nile-ul.js +0 -5
  723. package/dist/src/nile-icon/icons/svg/nile-ul.js.map +0 -1
  724. package/dist/src/nile-icon/icons/svg/nile-underline.d.ts +0 -5
  725. package/dist/src/nile-icon/icons/svg/nile-underline.js +0 -5
  726. package/dist/src/nile-icon/icons/svg/nile-underline.js.map +0 -1
  727. package/dist/src/nile-icon/icons/svg/ol.d.ts +0 -5
  728. package/dist/src/nile-icon/icons/svg/ol.js +0 -5
  729. package/dist/src/nile-icon/icons/svg/ol.js.map +0 -1
  730. package/dist/src/nile-icon/icons/svg/right-align.d.ts +0 -5
  731. package/dist/src/nile-icon/icons/svg/right-align.js +0 -5
  732. package/dist/src/nile-icon/icons/svg/right-align.js.map +0 -1
  733. package/dist/src/nile-icon/icons/svg/ul.d.ts +0 -5
  734. package/dist/src/nile-icon/icons/svg/ul.js +0 -5
  735. package/dist/src/nile-icon/icons/svg/ul.js.map +0 -1
  736. package/dist/src/nile-icon/icons/svg/underline.d.ts +0 -5
  737. package/dist/src/nile-icon/icons/svg/underline.js +0 -5
  738. package/dist/src/nile-icon/icons/svg/underline.js.map +0 -1
  739. package/dist/src/nile-input/__snapshots__/nile-input.test.snap.js +0 -75
  740. package/dist/src/nile-lightdomeditor/index.d.ts +0 -1
  741. package/dist/src/nile-lightdomeditor/index.js +0 -2
  742. package/dist/src/nile-lightdomeditor/index.js.map +0 -1
  743. package/dist/src/nile-lightdomeditor/nile-lightdomeditor.css.d.ts +0 -6
  744. package/dist/src/nile-lightdomeditor/nile-lightdomeditor.css.js +0 -237
  745. package/dist/src/nile-lightdomeditor/nile-lightdomeditor.css.js.map +0 -1
  746. package/dist/src/nile-lightdomeditor/nile-lightdomeditor.d.ts +0 -74
  747. package/dist/src/nile-lightdomeditor/nile-lightdomeditor.js +0 -591
  748. package/dist/src/nile-lightdomeditor/nile-lightdomeditor.js.map +0 -1
  749. package/dist/src/nile-lightdomeditor/utils/nile-mention.d.ts +0 -13
  750. package/dist/src/nile-lightdomeditor/utils/nile-mention.js +0 -47
  751. package/dist/src/nile-lightdomeditor/utils/nile-mention.js.map +0 -1
  752. package/dist/src/nile-markdowneditor/index.d.ts +0 -1
  753. package/dist/src/nile-markdowneditor/index.js +0 -2
  754. package/dist/src/nile-markdowneditor/index.js.map +0 -1
  755. package/dist/src/nile-markdowneditor/nile-markdowneditor.css.d.ts +0 -12
  756. package/dist/src/nile-markdowneditor/nile-markdowneditor.css.js +0 -17
  757. package/dist/src/nile-markdowneditor/nile-markdowneditor.css.js.map +0 -1
  758. package/dist/src/nile-markdowneditor/nile-markdowneditor.d.ts +0 -32
  759. package/dist/src/nile-markdowneditor/nile-markdowneditor.js +0 -43
  760. package/dist/src/nile-markdowneditor/nile-markdowneditor.js.map +0 -1
  761. package/dist/src/nile-popover/__snapshots__/nile-popover.test.snap.js +0 -22
  762. package/dist/src/nile-prosemirror-poc/index.d.ts +0 -1
  763. package/dist/src/nile-prosemirror-poc/index.js +0 -2
  764. package/dist/src/nile-prosemirror-poc/index.js.map +0 -1
  765. package/dist/src/nile-prosemirror-poc/nile-prosemirror-poc.css.d.ts +0 -12
  766. package/dist/src/nile-prosemirror-poc/nile-prosemirror-poc.css.js +0 -17
  767. package/dist/src/nile-prosemirror-poc/nile-prosemirror-poc.css.js.map +0 -1
  768. package/dist/src/nile-prosemirror-poc/nile-prosemirror-poc.d.ts +0 -24
  769. package/dist/src/nile-prosemirror-poc/nile-prosemirror-poc.js +0 -190
  770. package/dist/src/nile-prosemirror-poc/nile-prosemirror-poc.js.map +0 -1
  771. package/dist/src/nile-rich-text-editor/index.d.ts +0 -1
  772. package/dist/src/nile-rich-text-editor/index.js +0 -2
  773. package/dist/src/nile-rich-text-editor/index.js.map +0 -1
  774. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.css.js +0 -91
  775. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.css.js.map +0 -1
  776. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.d.ts +0 -57
  777. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.js +0 -603
  778. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.js.map +0 -1
  779. package/dist/src/nile-rich-text-editor/nile-rte-color.d.ts +0 -14
  780. package/dist/src/nile-rich-text-editor/nile-rte-color.js +0 -28
  781. package/dist/src/nile-rich-text-editor/nile-rte-color.js.map +0 -1
  782. package/dist/src/nile-rich-text-editor/nile-rte-divider.d.ts +0 -10
  783. package/dist/src/nile-rich-text-editor/nile-rte-divider.js +0 -12
  784. package/dist/src/nile-rich-text-editor/nile-rte-divider.js.map +0 -1
  785. package/dist/src/nile-rich-text-editor/nile-rte-mentions-item.d.ts +0 -18
  786. package/dist/src/nile-rich-text-editor/nile-rte-mentions-item.js +0 -47
  787. package/dist/src/nile-rich-text-editor/nile-rte-mentions-item.js.map +0 -1
  788. package/dist/src/nile-rich-text-editor/nile-rte-mentions.d.ts +0 -57
  789. package/dist/src/nile-rich-text-editor/nile-rte-mentions.js +0 -442
  790. package/dist/src/nile-rich-text-editor/nile-rte-mentions.js.map +0 -1
  791. package/dist/src/nile-rich-text-editor/nile-rte-preview.d.ts +0 -10
  792. package/dist/src/nile-rich-text-editor/nile-rte-preview.js +0 -12
  793. package/dist/src/nile-rich-text-editor/nile-rte-preview.js.map +0 -1
  794. package/dist/src/nile-rich-text-editor/nile-rte-select.d.ts +0 -37
  795. package/dist/src/nile-rich-text-editor/nile-rte-select.js +0 -200
  796. package/dist/src/nile-rich-text-editor/nile-rte-select.js.map +0 -1
  797. package/dist/src/nile-rich-text-editor/nile-rte-toolbar-item.d.ts +0 -12
  798. package/dist/src/nile-rich-text-editor/nile-rte-toolbar-item.js +0 -23
  799. package/dist/src/nile-rich-text-editor/nile-rte-toolbar-item.js.map +0 -1
  800. package/dist/src/nile-rich-text-editor/nile-rte-toolbar.d.ts +0 -10
  801. package/dist/src/nile-rich-text-editor/nile-rte-toolbar.js +0 -12
  802. package/dist/src/nile-rich-text-editor/nile-rte-toolbar.js.map +0 -1
  803. package/dist/src/nile-rich-text-editor/nille-rte-mention.d.ts +0 -21
  804. package/dist/src/nile-rich-text-editor/nille-rte-mention.js +0 -47
  805. package/dist/src/nile-rich-text-editor/nille-rte-mention.js.map +0 -1
  806. package/dist/src/nile-rich-text-editor/nille-rte-mentions.d.ts +0 -21
  807. package/dist/src/nile-rich-text-editor/nille-rte-mentions.js +0 -47
  808. package/dist/src/nile-rich-text-editor/nille-rte-mentions.js.map +0 -1
  809. package/dist/src/nile-rich-text-editor/sub-components/nile-rich-text-editor-toolbar-item.js +0 -2
  810. package/dist/src/nile-rich-text-editor/sub-components/nile-rich-text-editor-toolbar-item.js.map +0 -1
  811. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-content/nile-rich-text-editor-content.d.ts +0 -8
  812. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-content/nile-rich-text-editor-content.js +0 -39
  813. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-content/nile-rich-text-editor-content.js.map +0 -1
  814. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-content/nile-rich-text-editor-preview.d.ts +0 -0
  815. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-content/nile-rich-text-editor-preview.js +0 -2
  816. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-content/nile-rich-text-editor-preview.js.map +0 -1
  817. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-mentions/nile-rich-text-editor-mentions.d.ts +0 -12
  818. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-mentions/nile-rich-text-editor-mentions.js +0 -24
  819. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-mentions/nile-rich-text-editor-mentions.js.map +0 -1
  820. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-mentions-item/nile-rich-text-editor-mentions-item.d.ts +0 -25
  821. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-mentions-item/nile-rich-text-editor-mentions-item.js +0 -89
  822. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-mentions-item/nile-rich-text-editor-mentions-item.js.map +0 -1
  823. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-preview/nile-rich-text-editor-preview.css.d.ts +0 -12
  824. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-preview/nile-rich-text-editor-preview.css.js +0 -47
  825. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-preview/nile-rich-text-editor-preview.css.js.map +0 -1
  826. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-preview/nile-rich-text-editor-preview.d.ts +0 -7
  827. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-preview/nile-rich-text-editor-preview.js +0 -28
  828. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-preview/nile-rich-text-editor-preview.js.map +0 -1
  829. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar/nile-rich-text-editor-toolbar.css.d.ts +0 -6
  830. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar/nile-rich-text-editor-toolbar.css.js +0 -237
  831. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar/nile-rich-text-editor-toolbar.css.js.map +0 -1
  832. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar/nile-rich-text-editor-toolbar.d.ts +0 -5
  833. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar/nile-rich-text-editor-toolbar.js +0 -26
  834. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar/nile-rich-text-editor-toolbar.js.map +0 -1
  835. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar-item/nile-rich-text-editor-toolbar-item.css.d.ts +0 -6
  836. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar-item/nile-rich-text-editor-toolbar-item.css.js +0 -237
  837. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar-item/nile-rich-text-editor-toolbar-item.css.js.map +0 -1
  838. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar-item/nile-rich-text-editor-toolbar-item.d.ts +0 -8
  839. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar-item/nile-rich-text-editor-toolbar-item.js +0 -36
  840. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar-item/nile-rich-text-editor-toolbar-item.js.map +0 -1
  841. package/dist/src/nile-rich-text-editor/utils.d.ts +0 -13
  842. package/dist/src/nile-rich-text-editor/utils.js +0 -251
  843. package/dist/src/nile-rich-text-editor/utils.js.map +0 -1
  844. package/dist/src/nile-richcodeeditor/index.d.ts +0 -1
  845. package/dist/src/nile-richcodeeditor/index.js +0 -2
  846. package/dist/src/nile-richcodeeditor/index.js.map +0 -1
  847. package/dist/src/nile-richcodeeditor/nile-richcodeeditor.css.d.ts +0 -12
  848. package/dist/src/nile-richcodeeditor/nile-richcodeeditor.css.js +0 -17
  849. package/dist/src/nile-richcodeeditor/nile-richcodeeditor.css.js.map +0 -1
  850. package/dist/src/nile-richcodeeditor/nile-richcodeeditor.d.ts +0 -31
  851. package/dist/src/nile-richcodeeditor/nile-richcodeeditor.js +0 -203
  852. package/dist/src/nile-richcodeeditor/nile-richcodeeditor.js.map +0 -1
  853. package/dist/src/nile-richeditor/index.d.ts +0 -1
  854. package/dist/src/nile-richeditor/index.js +0 -2
  855. package/dist/src/nile-richeditor/index.js.map +0 -1
  856. package/dist/src/nile-richeditor/nile-richeditor.css.d.ts +0 -12
  857. package/dist/src/nile-richeditor/nile-richeditor.css.js +0 -17
  858. package/dist/src/nile-richeditor/nile-richeditor.css.js.map +0 -1
  859. package/dist/src/nile-richeditor/nile-richeditor.d.ts +0 -19
  860. package/dist/src/nile-richeditor/nile-richeditor.js +0 -234
  861. package/dist/src/nile-richeditor/nile-richeditor.js.map +0 -1
  862. package/dist/src/nile-richtexteditor/index.d.ts +0 -1
  863. package/dist/src/nile-richtexteditor/index.js +0 -2
  864. package/dist/src/nile-richtexteditor/index.js.map +0 -1
  865. package/dist/src/nile-richtexteditor/nile-richtexteditor.css.d.ts +0 -6
  866. package/dist/src/nile-richtexteditor/nile-richtexteditor.css.js +0 -237
  867. package/dist/src/nile-richtexteditor/nile-richtexteditor.css.js.map +0 -1
  868. package/dist/src/nile-richtexteditor/nile-richtexteditor.d.ts +0 -32
  869. package/dist/src/nile-richtexteditor/nile-richtexteditor.js +0 -46
  870. package/dist/src/nile-richtexteditor/nile-richtexteditor.js.map +0 -1
  871. package/dist/src/nile-richtexteditor/utils/nile-mention.d.ts +0 -13
  872. package/dist/src/nile-richtexteditor/utils/nile-mention.js +0 -47
  873. package/dist/src/nile-richtexteditor/utils/nile-mention.js.map +0 -1
  874. package/src/nile-icon/icons/svg/bold-try.ts +0 -5
  875. package/src/nile-icon/icons/svg/bold.ts +0 -5
  876. package/src/nile-icon/icons/svg/center-align.ts +0 -5
  877. package/src/nile-icon/icons/svg/itallic.ts +0 -5
  878. package/src/nile-icon/icons/svg/justify-align.ts +0 -5
  879. package/src/nile-icon/icons/svg/left-align.ts +0 -5
  880. package/src/nile-icon/icons/svg/nile-bold.ts +0 -5
  881. package/src/nile-icon/icons/svg/nile-centeralign.ts +0 -5
  882. package/src/nile-icon/icons/svg/nile-italic.ts +0 -5
  883. package/src/nile-icon/icons/svg/nile-justify.ts +0 -5
  884. package/src/nile-icon/icons/svg/nile-leftalign.ts +0 -5
  885. package/src/nile-icon/icons/svg/nile-ol.ts +0 -5
  886. package/src/nile-icon/icons/svg/nile-rightalign.ts +0 -5
  887. package/src/nile-icon/icons/svg/nile-ul.ts +0 -5
  888. package/src/nile-icon/icons/svg/nile-underline.ts +0 -5
  889. package/src/nile-icon/icons/svg/ol.ts +0 -5
  890. package/src/nile-icon/icons/svg/right-align.ts +0 -5
  891. package/src/nile-icon/icons/svg/ul.ts +0 -5
  892. package/src/nile-icon/icons/svg/underline.ts +0 -5
  893. package/src/nile-lightdomeditor/index.ts +0 -1
  894. package/src/nile-lightdomeditor/nile-lightdomeditor.css.ts +0 -238
  895. package/src/nile-lightdomeditor/nile-lightdomeditor.ts +0 -523
  896. package/src/nile-rich-text-editor/index.ts +0 -1
  897. package/src/nile-rich-text-editor/nile-rich-text-editor.css.ts +0 -92
  898. package/src/nile-rich-text-editor/nile-rich-text-editor.ts +0 -640
  899. package/src/nile-rich-text-editor/nile-rte-color.ts +0 -14
  900. package/src/nile-rich-text-editor/nile-rte-divider.ts +0 -9
  901. package/src/nile-rich-text-editor/nile-rte-mentions-item.ts +0 -42
  902. package/src/nile-rich-text-editor/nile-rte-mentions.ts +0 -465
  903. package/src/nile-rich-text-editor/nile-rte-preview.ts +0 -9
  904. package/src/nile-rich-text-editor/nile-rte-select.ts +0 -208
  905. package/src/nile-rich-text-editor/nile-rte-toolbar-item.ts +0 -13
  906. package/src/nile-rich-text-editor/nile-rte-toolbar.ts +0 -9
  907. package/src/nile-rich-text-editor/utils.ts +0 -197
  908. package/src/nile-richcodeeditor/index.ts +0 -1
  909. package/src/nile-richcodeeditor/nile-richcodeeditor.css.ts +0 -19
  910. package/src/nile-richcodeeditor/nile-richcodeeditor.ts +0 -192
  911. /package/dist/{nile-lightdomeditor → nile-slider}/index.cjs.js.map +0 -0
  912. /package/dist/{nile-rich-text-editor → nile-virtual-select}/index.cjs.js.map +0 -0
  913. /package/dist/src/{nile-rich-text-editor/sub-components/nile-rich-text-editor-toolbar-item.d.ts → nile-calendar/test.d.ts} +0 -0
@@ -1,87 +0,0 @@
1
- import{css as e}from"lit";const r=e`
2
- /* Host positioning for overlays */
3
- nile-rich-text-editor { position: relative; display: block; font-family: inherit; }
4
-
5
-
6
- nile-rte-toolbar-item > nile-button::part(base) {
7
-
8
- width:32px; height:32px; padding:0px 6px;
9
- border: none;
10
- }
11
-
12
-
13
-
14
-
15
- .toolbar, nile-rte-toolbar {
16
- display:flex; align-items:center; gap:8px; padding:8px;
17
- border:1px solid #e5e7eb; border-bottom:none; border-radius:8px 8px 0 0; background:#fff;
18
- }
19
-
20
- nile-rte-toolbar-item > button, .toolbar button, nile-rte-toolbar button {
21
- border:1px solid #e5e7eb; background:#fff; border-radius:6px;
22
- cursor:pointer;
23
- }
24
-
25
-
26
- /* Ensure clicks hit the button (not nested icon internals) */
27
- nile-rte-toolbar-item > button nile-icon { pointer-events:none; }
28
-
29
- nile-rte-toolbar-item > button.active { border-color:#2563eb; background:#eff6ff; }
30
- nile-rte-select select { height:32px; border:1px solid #e5e7eb; border-radius:6px; background:#fff; }
31
- nile-rte-color input[type="color"] { height:32px; width:36px; border:1px solid #e5e7eb; padding:0; border-radius:6px; background:#fff; }
32
- nile-rte-divider { width:1px; height:20px; background:#e5e7eb; display:inline-block; margin:0 4px; }
33
-
34
- .editor p { margin:1em 0; }
35
- .editor h1 { font-size:2em }
36
- .editor h2 { font-size:1.5em }
37
- .editor h3 { font-size:1.17em }
38
- .editor h4 { font-size:1em }
39
- .editor h5 { font-size:0.83em }
40
- .editor h6 { font-size:0.67em }
41
-
42
- .editor { min-height:160px; padding:12px; border:1px solid #e5e7eb; border-radius:0 0 8px 8px; background:#fff; outline:none; }
43
- nile-rte-preview { display:block; margin-top:10px; padding:10px; border:1px dashed #cbd5e1; border-radius:8px; background:#fafafa; }
44
-
45
- .rte-color-trigger {
46
- display: inline-flex;
47
- align-items: center;
48
- justify-content: center;
49
- height: 28px;
50
- padding: 0 8px;
51
- border: 1px solid var(--nile-color-border, #d9d9d9);
52
- border-radius: 6px;
53
- background: #fff;
54
- cursor: pointer;
55
- }
56
-
57
- .rte-color-trigger .glyph-stack {
58
- display: grid; /* stack vertically */
59
- grid-auto-rows: max-content;
60
- align-items: center;
61
- justify-items: center;
62
- line-height: 1;
63
- }
64
-
65
- .rte-color-trigger .glyph {
66
- font-size: 14px;
67
- line-height: 1;
68
- margin-bottom: 2px; /* little breathing space above underline */
69
- }
70
-
71
- .rte-color-trigger .underline {
72
- width: 18px;
73
- height: 3px;
74
- border-radius: 2px;
75
- background: currentColor; /* we override via JS with backgroundColor */
76
- }
77
-
78
- /* (unchanged) highlight square */
79
- .rte-color-trigger .swatch-box {
80
- width: 18px;
81
- height: 16px;
82
- border-radius: 4px;
83
- border: 1px solid rgba(0,0,0,0.35);
84
- background: currentColor; /* overridden via JS */
85
- }
86
-
87
- `;export{r as s};
@@ -1 +0,0 @@
1
- import{__decorate as t}from"tslib";import{LitElement as i}from"lit";import{property as s,state as e,customElement as n}from"lit/decorators.js";import"./nile-rte-toolbar.esm.js";import"./nile-rte-toolbar-item.esm.js";import"./nile-rte-select.esm.js";import"./nile-rte-color.esm.js";import"./nile-rte-divider.esm.js";import"./nile-rte-preview.esm.js";import"./nile-rte-mentions.esm.js";import{s as r,a as o,b as h,c as l,d as c,i as a,t as u,n as d,e as f,r as m}from"./utils.esm.js";import{s as p}from"./nile-rich-text-editor.css.esm.js";const b={bold:"nile-bold",italic:"nile-italic",underline:"nile-underline",link:"user",left:"nile-leftalign",center:"nile-centeralign",right:"nile-rightalign",justify:"nile-justify",ul:"nile-ul",ol:"nile-ol",clear:"error"};let g=class extends i{constructor(){super(...arguments),this.value="",this.mentions={},this.content="",this.previewEl=null,this.toolbarEl=null,this.lastRange=null,this.buttonMap=new Map,this.headingSelect=null,this.fontSelect=null,this.colorInput=null,this.bgColorInput=null,this.colorSwatchEl=null,this.bgSwatchEl=null,this.mentionsEl=null,this.onSelectionChange=()=>{if(!this.editorEl)return;const t=document.getSelection();if(!t||0===t.rangeCount)return;const i=t.getRangeAt(0);this.editorEl.contains(i.commonAncestorContainer)&&(this.lastRange=i.cloneRange(),this.updateToolbarState())}}createRenderRoot(){return this}shouldUpdate(){return!1}injectCss(t){if(this.querySelector("style[data-rte-style]"))return;const i=document.createElement("style");i.setAttribute("data-rte-style","true"),i.textContent=t,this.insertBefore(i,this.firstChild)}connectedCallback(){super.connectedCallback(),this.injectCss(p.cssText),this.toolbarEl=this.querySelector("nile-rte-toolbar"),this.previewEl=this.querySelector("nile-rte-preview"),this.ensureEditor(),this.value&&!this.editorEl.innerHTML.trim()&&(this.editorEl.innerHTML=this.value),this.content=this.editorEl.innerHTML,this.toolbarEl&&this.wireAuthoredToolbar(this.toolbarEl),this.mentionsEl=this.querySelector("nile-rte-mentions"),this.mentionsEl&&(this.mentionsEl.attach?.(this.editorEl,this),this.mentionsEl.setExternalConfig?.(this.mentions)),this.wireEditor(),this.updateToolbarState(),this.syncPreview(),document.addEventListener("selectionchange",this.onSelectionChange,!0)}disconnectedCallback(){document.removeEventListener("selectionchange",this.onSelectionChange,!0),this.mentionsEl&&this.mentionsEl.detach&&this.mentionsEl.detach(),super.disconnectedCallback()}ensureEditor(){if(this.editorEl=this.querySelector(".editor"),!this.editorEl){const t=document.createElement("div");t.className="editor",t.setAttribute("contenteditable","true"),this.toolbarEl?.nextSibling?this.insertBefore(t,this.toolbarEl.nextSibling):this.previewEl?this.insertBefore(t,this.previewEl):this.appendChild(t),this.editorEl=t}this.editorEl.innerHTML.trim()||(this.editorEl.innerHTML="<p><br></p>"),this.ensureAtLeastOneParagraph()}wireEditor(){this.editorEl.addEventListener("input",(()=>{this.ensureAtLeastOneParagraph(),this.updateContent()})),this.editorEl.addEventListener("mouseup",(()=>this.saveSelection())),this.editorEl.addEventListener("keyup",(()=>this.saveSelection()))}wireAuthoredToolbar(t){this.buttonMap.clear(),this.headingSelect=null,this.fontSelect=null,this.colorInput=null,Array.from(t.children).forEach((t=>{const i=t.tagName.toLowerCase();if("nile-rte-select"!==i||"align"!==t.getAttribute("type")){if("nile-rte-toolbar-item"===i){let i=t.querySelector(":scope > nile-button");const s=t.getAttribute("name")||"",e=t.getAttribute("label")||s,n=t.getAttribute("icon"),r=t.innerHTML.trim().length>0;if(i||(i=document.createElement("nile-button"),i.variant="tertiary",i.size="small"),n)i.innerHTML=`<nile-icon name="${n}" aria-label="${e}"></nile-icon>`,t.innerHTML="";else if(r)i.innerHTML=t.innerHTML,t.innerHTML="";else{const n=b[s];n?i.innerHTML=`<nile-icon name="${n}" size="20" color="black" aria-label="${e}"></nile-icon>`:i.textContent=e||s,t.innerHTML=""}i.isConnected||t.appendChild(i),i.setAttribute("aria-label",e),i.addEventListener("mousedown",(t=>t.preventDefault())),i.addEventListener("click",(()=>this.onToolbarCommand(s)));const o=this.buttonMap.get(s)??[];return o.push(i),void this.buttonMap.set(s,o)}if("nile-rte-select"!==i){if("nile-rte-color"===i){const i=t.getAttribute("label")??"Text color",s=t.getAttribute("value")??"#000000",e=t.getAttribute("mode")??"text";let n=t.querySelector(':scope > input[type="color"]');n||(n=document.createElement("input"),n.type="color",n.style.position="absolute",n.style.opacity="0",n.style.pointerEvents="none",t.appendChild(n)),n.title=i,n.value=s;let r=t.querySelector(":scope > button.rte-color-trigger");r||(r=document.createElement("button"),r.type="button",r.className="rte-color-trigger",r.setAttribute("aria-label",i),r.innerHTML="background"===e?'\n <span class="swatch-box" aria-hidden="true"></span>\n ':'\n <span class="glyph-stack" aria-hidden="true">\n <span class="glyph">A</span>\n <span class="underline"></span>\n </span>\n ',t.appendChild(r));const o=r.querySelector(".underline"),h=r.querySelector(".swatch-box");"background"===e?(this.bgColorInput=n,this.bgSwatchEl=h,this.bgSwatchEl&&(this.bgSwatchEl.style.backgroundColor=n.value)):(this.colorInput=n,this.colorSwatchEl=o,this.colorSwatchEl&&(this.colorSwatchEl.style.backgroundColor=n.value)),r.addEventListener("click",(t=>{t.preventDefault(),this.focusAndRestore(),n.click()})),n.addEventListener("input",(()=>{this.focusAndRestore(),"background"===e?(l(this.editorEl,n.value),this.bgSwatchEl&&(this.bgSwatchEl.style.backgroundColor=n.value)):(c(this.editorEl,n.value),this.colorSwatchEl&&(this.colorSwatchEl.style.backgroundColor=n.value)),this.updateContent(),this.updateToolbarState()})),r.addEventListener("mousedown",(t=>t.preventDefault())),n.addEventListener("mousedown",(t=>t.preventDefault()))}}else{const i=t.getAttribute("type")||"";t.addEventListener("change",(t=>{this.focusAndRestore();const s=t.detail;"heading"===i?o(this.editorEl,s):"font"===i&&h(this.editorEl,s),this.updateContent(),this.updateToolbarState()}))}}else t.addEventListener("change",(t=>{this.focusAndRestore();const i=t.detail;r(this.editorEl,i),this.updateContent(),this.updateToolbarState()}))}))}saveSelection(){const t=window.getSelection();t&&t.rangeCount&&(this.lastRange=t.getRangeAt(0).cloneRange())}restoreSelection(){if(!this.lastRange)return;const t=document.getSelection();t&&(t.removeAllRanges(),t.addRange(this.lastRange))}focusAndRestore(){this.editorEl?.focus(),this.restoreSelection()}insertList(t){if(this.restoreSelection(),!this.lastRange)return;const i=document.createElement(t),s=this.lastRange.extractContents(),e=document.createElement("div");e.appendChild(s),Array.from(e.childNodes).forEach((t=>{if(t.nodeType===Node.TEXT_NODE&&!t.textContent?.trim())return;const s=document.createElement("li");s.appendChild(t),i.appendChild(s)})),this.lastRange.insertNode(i),this.afterListEdit(i)}afterListEdit(t){const i=document.createRange();i.setStartAfter(t),i.collapse(!0);const s=window.getSelection();s?.removeAllRanges(),s?.addRange(i),this.saveSelection(),this.updateContent(),this.updateToolbarState()}ensureAtLeastOneParagraph(){const t=this.editorEl;if(!t)return;const i=""===(t.textContent??"").replace(/\u200B/g,"").trim();if(0===t.childNodes.length||i)return void(t.innerHTML="<p><br></p>");if(!t.querySelector("p,h1,h2,h3,h4,h5,h6,ul,ol,table,blockquote,pre")){const i=document.createElement("p");for(;t.firstChild;)i.appendChild(t.firstChild);return i.hasChildNodes()||i.appendChild(document.createElement("br")),void t.appendChild(i)}t.querySelectorAll("p").forEach((t=>{""===(t.textContent??"").replace(/\u200B/g,"")&&(t.innerHTML.toLowerCase().includes("<br")||(t.innerHTML="<br>"))}))}onToolbarCommand(t){switch(this.focusAndRestore(),t){case"bold":u(this.editorEl,"strong");break;case"italic":u(this.editorEl,"em");break;case"underline":u(this.editorEl,"u");break;case"left":r(this.editorEl,"left");break;case"center":r(this.editorEl,"center");break;case"right":r(this.editorEl,"right");break;case"justify":r(this.editorEl,"justify");break;case"ul":this.insertList("ul");break;case"ol":this.insertList("ol");break;case"link":a(this.editorEl);break;case"clear":const t=document.createTreeWalker(this.editorEl,NodeFilter.SHOW_ELEMENT),i=[];for(;t.nextNode();){const s=t.currentNode;s.removeAttribute("style"),["B","STRONG","I","EM","U","SPAN","FONT"].includes(s.tagName)&&i.push(s)}for(const t of i){for(;t.firstChild;)t.parentNode?.insertBefore(t.firstChild,t);t.remove()}this.ensureAtLeastOneParagraph()}this.updateContent(),this.updateToolbarState()}setBtnActive(t,i){const s=this.buttonMap.get(t);if(s)for(const t of s)t.toggleAttribute("data-active",!!i)}updateToolbarState(){if(!this.editorEl)return;const t=document.getSelection();if(!t||0===t.rangeCount)return;const i=t.getRangeAt(0);if(!this.editorEl.contains(i.commonAncestorContainer))return;const s=d(i.startContainer)||this.editorEl,e=getComputedStyle(s),n=f(i.startContainer,this.editorEl)||this.editorEl,r=(()=>{let t=s;for(;t&&t!==this.editorEl;){if(t instanceof HTMLElement){const i=t.tagName.toLowerCase();if("strong"===i||"b"===i)return!0;const s=getComputedStyle(t).fontWeight;if(parseInt(s,10)>=600)return!0}t=t.parentNode}return!1})(),o=(()=>{let t=s;for(;t&&t!==this.editorEl;){if(t instanceof HTMLElement){const i=t.tagName.toLowerCase();if("em"===i||"i"===i)return!0;if("italic"===getComputedStyle(t).fontStyle)return!0}t=t.parentNode}return!1})(),h=(()=>{let t=s;for(;t&&t!==this.editorEl;){if(t instanceof HTMLElement){const i=getComputedStyle(t).textDecorationLine;if(i&&i.includes("underline"))return!0;if("u"===t.tagName.toLowerCase())return!0}t=t.parentNode}return!1})(),l=!!s.closest("a"),c=n.style.textAlign||getComputedStyle(n).textAlign||"start",a="start"===c?"left":c,u=!!s.closest("li")&&s.closest("ul,ol")?.tagName.toLowerCase()||"";if(this.setBtnActive("bold",r),this.setBtnActive("italic",o),this.setBtnActive("underline",h),this.setBtnActive("link",l),this.setBtnActive("left","left"===a&&!["center","right","justify"].includes(a)),this.setBtnActive("center","center"===a),this.setBtnActive("right","right"===a),this.setBtnActive("justify","justify"===a),this.setBtnActive("ul","ul"===u),this.setBtnActive("ol","ol"===u),this.headingSelect){const t=n.tagName.toLowerCase(),i=["h1","h2","h3"].includes(t)?t:"p";this.headingSelect.value!==i&&(this.headingSelect.value=i)}if(this.fontSelect){const t=(e.fontFamily||"").replace(/["']/g,"").split(",")[0].trim().toLowerCase();if(t)for(const i of Array.from(this.fontSelect.options))if(i.value.toLowerCase()===t){this.fontSelect.value=i.value;break}}if(this.colorInput){const t=m(e.color);t&&this.colorInput.value.toLowerCase()!==t.toLowerCase()&&(this.colorInput.value=t),this.colorSwatchEl&&(this.colorSwatchEl.style.backgroundColor=this.colorInput.value)}if(this.bgColorInput){const t=getComputedStyle(s).backgroundColor;if(t&&!/transparent|rgba\(\s*0\s*,\s*0\s*,\s*0\s*,\s*0\s*\)/i.test(t)){const i=m(t);i&&this.bgColorInput.value.toLowerCase()!==i.toLowerCase()&&(this.bgColorInput.value=i)}this.bgSwatchEl&&(this.bgSwatchEl.style.backgroundColor=this.bgColorInput.value)}}syncPreview(){this.updateContent()}updateContent(){this.editorEl&&(this.ensureAtLeastOneParagraph(),this.content=this.editorEl.innerHTML,this.previewEl&&(this.previewEl.innerHTML=this.content),this.dispatchEvent(new CustomEvent("content-changed",{detail:{content:this.content},bubbles:!0,composed:!0})))}};t([s({type:String})],g.prototype,"value",void 0),t([s({attribute:"mentions",converter:{fromAttribute:t=>{try{const i=JSON.parse(t),s={};for(const t of Object.keys(i)){const e=i[t];Array.isArray(e)&&(s[t]=e.filter((t=>t&&"string"==typeof t.key&&"string"==typeof t.label)).map((t=>({key:t.key,label:t.label}))))}return s}catch{return{}}},toAttribute:t=>JSON.stringify(t)}})],g.prototype,"mentions",void 0),t([e()],g.prototype,"content",void 0),g=t([n("nile-rich-text-editor")],g);export{g as N};
@@ -1,2 +0,0 @@
1
- function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js"],function(_export,_context){"use strict";var t,r,o,e,i;function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_lit){r=_lit.LitElement;},function(_litDecoratorsJs){o=_litDecoratorsJs.property;e=_litDecoratorsJs.customElement;}],execute:function execute(){i=/*#__PURE__*/function(_r){function i(){var _this;_classCallCheck(this,i);_this=_callSuper(this,i,arguments),_this.type="foreColor",_this.label="Text Color",_this.value="#000000";return _this;}_inherits(i,_r);return _createClass(i,[{key:"createRenderRoot",value:function createRenderRoot(){return this;}},{key:"shouldUpdate",value:function shouldUpdate(){return!1;}}]);}(r);t([o({type:String})],i.prototype,"type",void 0),t([o({type:String})],i.prototype,"label",void 0),t([o({type:String})],i.prototype,"value",void 0),i=t([e("nile-rte-color")],i);}};});
2
- //# sourceMappingURL=nile-rte-color.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nile-rte-color.cjs.js","sources":["../../../src/nile-rich-text-editor/nile-rte-color.ts"],"sourcesContent":["import { LitElement } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\n\n@customElement('nile-rte-color')\nexport class NileRteColor extends LitElement {\n protected createRenderRoot() { return this; }\n protected shouldUpdate() { return false; }\n\n /** 'foreColor' (reserved for future: 'backColor') */\n @property({ type: String }) type = 'foreColor';\n @property({ type: String }) label = 'Text Color';\n @property({ type: String }) value = '#000000';\n}\ndeclare global { interface HTMLElementTagNameMap { 'nile-rte-color': NileRteColor; } }\n"],"names":["NileRteColor","_r","i","this","type","label","value","_this","_inherits","_createClass","key","createRenderRoot","shouldUpdate","LitElement","__decorate","property","String","prototype","customElement"],"mappings":"gyFAIaA,CAAN,uBAAAC,EAAA,EAAA,SAAAC,EAAA,uEAKuBC,KAAAA,CAAIC,IAAAA,CAAG,WACPD,CAAAA,KAAAA,CAAKE,KAAG,CAAA,YAAA,CACRF,KAAAA,CAAKG,KAAAA,CAAG,SACrC,QAAAC,KAAA,EAPWC,SAAA,CAAAN,CAAA,CAAAD,EAAA,SAAAQ,YAAA,CAAAP,CAAA,GAAAQ,GAAA,oBAAAJ,KAAA,UAAAK,gBAAAA,CAAAA,CAAqB,CAAA,MAAOR,KAAO,EACnC,GAAAO,GAAA,gBAAAJ,KAAA,UAAAM,YAAAA,CAAAA,CAAAA,CAAiB,OAAO,CAAQ,EAAA,MAFVC,CAA3B,EAKuBC,CAAA,CAAA,CAA3BC,CAAS,CAAA,CAAEX,IAAMY,CAAAA,MAAAA,CAAAA,CAAAA,CAAAA,CAA6BhB,EAAAiB,SAAA,CAAA,MAAA,CAAA,IAAA,EACnBH,CAAAA,CAAAA,CAAAA,CAAA,CAA3BC,CAAAA,CAAS,CAAEX,IAAAA,CAAMY,UAA+BhB,CAAAiB,CAAAA,SAAAA,CAAA,OAAA,CAAA,IAAA,EAAA,CAAA,CACrBH,CAAA,CAAA,CAA3BC,CAAS,CAAA,CAAEX,KAAMY,MAA4BhB,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAiB,SAAA,CAAA,OAAA,CAAA,IAAA,EAPnCjB,CAAAA,CAAAA,CAAAA,CAAYc,CAAA,CAAA,CADxBI,EAAc,gBACFlB,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA"}
@@ -1 +0,0 @@
1
- import{__decorate as t}from"tslib";import{LitElement as r}from"lit";import{property as o,customElement as e}from"lit/decorators.js";let i=class extends r{constructor(){super(...arguments),this.type="foreColor",this.label="Text Color",this.value="#000000"}createRenderRoot(){return this}shouldUpdate(){return!1}};t([o({type:String})],i.prototype,"type",void 0),t([o({type:String})],i.prototype,"label",void 0),t([o({type:String})],i.prototype,"value",void 0),i=t([e("nile-rte-color")],i);
@@ -1,2 +0,0 @@
1
- function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js"],function(_export,_context){"use strict";var r,t,e,o;function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){r=_tslib.__decorate;},function(_lit){t=_lit.LitElement;},function(_litDecoratorsJs){e=_litDecoratorsJs.customElement;}],execute:function execute(){o=/*#__PURE__*/function(_t){function o(){_classCallCheck(this,o);return _callSuper(this,o,arguments);}_inherits(o,_t);return _createClass(o,[{key:"createRenderRoot",value:function createRenderRoot(){return this;}},{key:"shouldUpdate",value:function shouldUpdate(){return!1;}}]);}(t);o=r([e("nile-rte-divider")],o);}};});
2
- //# sourceMappingURL=nile-rte-divider.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nile-rte-divider.cjs.js","sources":["../../../src/nile-rich-text-editor/nile-rte-divider.ts"],"sourcesContent":["import { LitElement } from 'lit';\nimport { customElement } from 'lit/decorators.js';\n\n@customElement('nile-rte-divider')\nexport class NileRteDivider extends LitElement {\n protected createRenderRoot() { return this; }\n protected shouldUpdate() { return false; }\n}\ndeclare global { interface HTMLElementTagNameMap { 'nile-rte-divider': NileRteDivider; } }\n"],"names":["NileRteDivider","createRenderRoot","this","key","value","shouldUpdate","LitElement","__decorate","customElement"],"mappings":"kwFAIaA,CAAAA,uBAAAA,EAAAA,WAAAA,EAAAA,EAAAA,eAAAA,MAAAA,CAAAA,SAAAA,UAAAA,MAAAA,CAAAA,CAAAA,SAAAA,GAAAA,SAAAA,CAAAA,CAAAA,CAAAA,EAAAA,SAAAA,YAAAA,CAAAA,CAAAA,GAAAA,GAAAA,oBAAAA,KAAAA,CACD,SAAAC,gBAAAA,CAAAA,CAAAA,CAAqB,MAAOC,KAAO,EACnC,GAAAC,GAAA,gBAAAC,KAAA,UAAAC,YAAAA,CAAAA,CAAAA,CAAiB,MAAO,CAAA,CAAQ,QAFRC,CAAAA,EAAvBN,CAAcO,CAAAA,CAAAA,CAAA,CAD1BC,CAAAA,CAAc,kBACFR,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA"}
@@ -1 +0,0 @@
1
- import{__decorate as r}from"tslib";import{LitElement as t}from"lit";import{customElement as e}from"lit/decorators.js";let o=class extends t{createRenderRoot(){return this}shouldUpdate(){return!1}};o=r([e("nile-rte-divider")],o);
@@ -1,2 +0,0 @@
1
- function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js"],function(_export,_context){"use strict";var t,r,e,o,i;function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_lit){r=_lit.LitElement;},function(_litDecoratorsJs){e=_litDecoratorsJs.property;o=_litDecoratorsJs.customElement;}],execute:function execute(){i=/*#__PURE__*/function(_r){function i(){var _this;_classCallCheck(this,i);_this=_callSuper(this,i,arguments),_this.mentionsCharacter="",_this.mentionsColor="",_this.mentionsData=[];return _this;}_inherits(i,_r);return _createClass(i,[{key:"createRenderRoot",value:function createRenderRoot(){return this;}}]);}(r);t([e({attribute:"mentionscharacter"})],i.prototype,"mentionsCharacter",void 0),t([e({attribute:"mentionscolor"})],i.prototype,"mentionsColor",void 0),t([e({attribute:"mentionsdata",converter:{fromAttribute:function fromAttribute(t){if(!t)return[];try{var _r2=JSON.parse(t);return Array.isArray(_r2)?_r2.filter(function(t){return t&&"string"==typeof t.key&&"string"==typeof t.label;}):[];}catch(_unused){return[];}},toAttribute:function toAttribute(t){return JSON.stringify(t!==null&&t!==void 0?t:[]);}}})],i.prototype,"mentionsData",void 0),i=t([o("nile-rte-mentions-item")],i);}};});
2
- //# sourceMappingURL=nile-rte-mentions-item.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nile-rte-mentions-item.cjs.js","sources":["../../../src/nile-rich-text-editor/nile-rte-mentions-item.ts"],"sourcesContent":["// nile-rte-mentions-item.ts\nimport { LitElement } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\n\nexport type MentionItem = { key: string; label: string };\n\n@customElement('nile-rte-mentions-item')\nexport class NileRteMentionsItem extends LitElement {\n protected createRenderRoot() { return this; } // Light DOM\n\n /** Single-character trigger, e.g., '@' or '#' */\n @property({ attribute: 'mentionscharacter' })\n mentionsCharacter: string = '';\n\n \n @property({ attribute: 'mentionscolor' })\n mentionsColor: string = ''; // NEW\n\n /** JSON array of { key, label } */\n @property({\n attribute: 'mentionsdata',\n converter: {\n fromAttribute: (value: string | null): MentionItem[] => {\n if (!value) return [];\n try {\n const parsed = JSON.parse(value);\n return Array.isArray(parsed)\n ? parsed.filter(i => i && typeof i.key === 'string' && typeof i.label === 'string')\n : [];\n } catch { return []; }\n },\n toAttribute: (v: MentionItem[]) => JSON.stringify(v ?? []),\n }\n })\n mentionsData: MentionItem[] = [];\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-rte-mentions-item': NileRteMentionsItem;\n }\n}\n"],"names":["NileRteMentionsItem","_r","i","this","mentionsCharacter","mentionsColor","mentionsData","_this","_inherits","_createClass","key","value","createRenderRoot","__decorate","LitElement","property","attribute","prototype","converter","fromAttribute","parsed","JSON","parse","Array","isArray","filter","label","_unused","toAttribute","v","stringify","customElement"],"mappings":"gyFAOaA,CAAN,uBAAAC,EAAA,EAAA,SAAAC,EAAA,uEAKLC,KAAAA,CAAiBC,iBAAW,CAAA,EAAA,CAI5BD,KAAAA,CAAAE,aAAwB,CAAA,EAAA,CAkBxBF,KAAAA,CAAYG,YAAAA,CAAkB,EAC/B,QAAAC,KAAA,EA3BWC,SAAA,CAAAN,CAAA,CAAAD,EAAA,SAAAQ,YAAA,CAAAP,CAAA,GAAAQ,GAAA,oBAAAC,KAAA,UAAAC,gBAAAA,CAAAA,CAAqB,CAAA,MAAOT,KAAO,EAI7CU,MALuCC,CAAlC,EAKLD,CAAAA,CAAA,CADCE,CAAS,CAAA,CAAEC,SAAW,CAAA,mBAAA,CAAA,CAAA,CAAA,CACQhB,CAAAiB,CAAAA,SAAAA,CAAA,wBAAA,EAI/BJ,CAAAA,CAAAA,CAAAA,CAAA,CADCE,CAAAA,CAAS,CAAEC,SAAAA,CAAW,mBACIhB,CAAAiB,CAAAA,SAAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAkB3BJ,CAAA,CAAA,CAfCE,EAAS,CACRC,SAAAA,CAAW,eACXE,SAAW,CAAA,CACTC,cAAgBR,QAAhBQ,CAAAA,cAAgBR,CACd,CAAA,CAAA,GAAA,CAAKA,CAAO,CAAA,MAAO,EACnB,CAAA,GAAA,CACE,GAAMS,CAAAA,GAASC,CAAAA,IAAAA,CAAKC,KAAMX,CAAAA,CAAAA,CAAAA,CAC1B,MAAOY,CAAAA,KAAAA,CAAMC,QAAQJ,GACjBA,CAAAA,CAAAA,GAAAA,CAAOK,MAAOvB,CAAAA,SAAAA,CAAAA,QAAKA,CAAAA,CAAsB,EAAA,QAAA,EAAA,MAAVA,CAAAA,EAAEQ,GAAuC,EAAA,QAAA,EAAA,MAAZR,CAAAA,EAAEwB,KAC9D,EAAA,CAAA,CAAA,EACL,EAAC,MAAAC,OAAA,CAAQ,CAAA,MAAO,EAAK,EAAA,CAAA,CAExBC,WAAcC,CAAAA,QAAdD,CAAAA,WAAcC,CAAAA,CAAAA,QAAqBR,CAAAA,KAAKS,SAAUD,CAAAA,CAAAA,SAAAA,CAAAA,UAAAA,CAAAA,CAAK,EAG1B7B,CAAAA,GAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAiB,SAAA,CAAA,cAAA,CAAA,IAAA,IA3BtBjB,CAAmBa,CAAAA,CAAAA,CAAA,CAD/BkB,CAAAA,CAAc,wBACF/B,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA"}
@@ -1 +0,0 @@
1
- import{__decorate as t}from"tslib";import{LitElement as r}from"lit";import{property as e,customElement as o}from"lit/decorators.js";let i=class extends r{constructor(){super(...arguments),this.mentionsCharacter="",this.mentionsColor="",this.mentionsData=[]}createRenderRoot(){return this}};t([e({attribute:"mentionscharacter"})],i.prototype,"mentionsCharacter",void 0),t([e({attribute:"mentionscolor"})],i.prototype,"mentionsColor",void 0),t([e({attribute:"mentionsdata",converter:{fromAttribute:t=>{if(!t)return[];try{const r=JSON.parse(t);return Array.isArray(r)?r.filter((t=>t&&"string"==typeof t.key&&"string"==typeof t.label)):[]}catch{return[]}},toAttribute:t=>JSON.stringify(t??[])}})],i.prototype,"mentionsData",void 0),i=t([o("nile-rte-mentions-item")],i);
@@ -1,3 +0,0 @@
1
- System.register(["tslib","lit","lit/decorators.js"],function(_export,_context){"use strict";var t,i,s,n,e,o;function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var n=0,F=function F(){};return{s:F,n:function(_n2){function n(){return _n2.apply(this,arguments);}n.toString=function(){return _n2.toString();};return n;}(function(){return n>=r.length?{done:!0}:{done:!1,value:r[n++]};}),e:function e(r){throw r;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var o,a=!0,u=!1;return{s:function s(){t=t.call(r);},n:function n(){var r=t.next();return a=r.done,r;},e:function e(r){u=!0,o=r;},f:function f(){try{a||null==t["return"]||t["return"]();}finally{if(u)throw o;}}};}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));});}return e;}function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e;}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _superPropGet(t,o,e,r){var p=_get(_getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf(t)););return t;}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_lit){i=_lit.LitElement;},function(_litDecoratorsJs){s=_litDecoratorsJs.property;n=_litDecoratorsJs.state;e=_litDecoratorsJs.customElement;}],execute:function execute(){o=/*#__PURE__*/function(_i){function o(){var _this;_classCallCheck(this,o);_this=_callSuper(this,o,arguments),_this.mentions={},_this.mentionColors={},_this.externalConfig={},_this.itemsConfig={},_this.itemsColors={},_this.editorEl=null,_this.hostEl=null,_this.dropdownEl=null,_this.menuEl=null,_this.lastRange=null,_this.mentionOpen=!1,_this.mentionTrigger=null,_this.mentionQuery="",_this.mentionSuggestions=[],_this.mentionFiltered=[],_this.mentionX=0,_this.mentionY=0,_this.triggerBtn=null,_this.mo=null,_this.onSelectionChange=function(){if(!_this.editorEl)return;var t=document.getSelection();if(!t||0===t.rangeCount)return;var i=t.getRangeAt(0);_this.editorEl.contains(i.commonAncestorContainer)&&(_this.lastRange=i.cloneRange());},_this.saveSelection=function(){var t=window.getSelection();t&&t.rangeCount&&(_this.lastRange=t.getRangeAt(0).cloneRange());},_this.onEditorInput=function(){_this.mentionOpen&&_this.handleMention();},_this.onEditorKeyUp=function(t){_this.saveSelection();var i=t.key,s=_this.config;!_this.mentionOpen&&i&&s[i]?_this.openMention(i):_this.mentionOpen&&_this.handleMention();},_this.onEditorKeyDown=function(t){if(!_this.mentionOpen)return;var i=t.key;"ArrowDown"===i||"ArrowUp"===i||"Enter"===i?(t.preventDefault(),"Enter"===i&&_this.mentionFiltered.length&&_this.selectMention(_this.mentionFiltered[0])):"Escape"===i&&(t.preventDefault(),_this.closeMention());},_this.repositionMention=function(){if(!_this.mentionOpen||!_this.hostEl||!_this.triggerBtn)return;var t=_this.getCaretClientRect();if(!t)return;var i=_this.hostEl.getBoundingClientRect();_this.mentionX=t.left-i.left,_this.mentionY=t.bottom-i.top,_this.triggerBtn.style.left="".concat(_this.mentionX,"px"),_this.triggerBtn.style.top="".concat(_this.mentionY,"px");};return _this;}_inherits(o,_i);return _createClass(o,[{key:"createRenderRoot",value:function createRenderRoot(){return this;}},{key:"config",get:function get(){return _objectSpread(_objectSpread(_objectSpread({},this.externalConfig),this.mentions),this.itemsConfig);}},{key:"attach",value:function attach(t,i){var _this2=this;this.editorEl=t,this.hostEl=i,this.injectStyles(),this.ensureMentionDropdown(),this.rebuildConfigFromChildren(),this.mo=new MutationObserver(function(){return _this2.rebuildConfigFromChildren();}),this.mo.observe(this,{childList:!0,subtree:!0,attributes:!0}),this.editorEl.addEventListener("input",this.onEditorInput),this.editorEl.addEventListener("mouseup",this.saveSelection),this.editorEl.addEventListener("keyup",this.onEditorKeyUp),this.editorEl.addEventListener("keydown",this.onEditorKeyDown),this.editorEl.addEventListener("scroll",this.repositionMention),document.addEventListener("selectionchange",this.onSelectionChange,!0);}},{key:"detach",value:function detach(){this.mo&&(this.mo.disconnect(),this.mo=null),this.editorEl&&(this.editorEl.removeEventListener("input",this.onEditorInput),this.editorEl.removeEventListener("mouseup",this.saveSelection),this.editorEl.removeEventListener("keyup",this.onEditorKeyUp),this.editorEl.removeEventListener("keydown",this.onEditorKeyDown),this.editorEl.removeEventListener("scroll",this.repositionMention)),document.removeEventListener("selectionchange",this.onSelectionChange,!0);}},{key:"setExternalConfig",value:function setExternalConfig(t){this.externalConfig=t||{};}},{key:"disconnectedCallback",value:function disconnectedCallback(){this.detach(),_superPropGet(o,"disconnectedCallback",this,3)([]);}},{key:"rebuildConfigFromChildren",value:function rebuildConfigFromChildren(){var t={},i={},s=Array.from(this.querySelectorAll("nile-rte-mentions-item"));var _loop=function _loop(){var _ref,_n$mentionsCharacter,_n$mentionsData,_ref2,_n$mentionsColor;var n=_s[_i2];var s=(_ref=(_n$mentionsCharacter=n.mentionsCharacter)!==null&&_n$mentionsCharacter!==void 0?_n$mentionsCharacter:n.getAttribute("mentionscharacter"))!==null&&_ref!==void 0?_ref:"";if(!s||"string"!=typeof s)return 1;// continue
2
- var e=(_n$mentionsData=n.mentionsData)!==null&&_n$mentionsData!==void 0?_n$mentionsData:function(){var t=n.getAttribute("mentionsdata");if(!t)return null;try{var _i3=JSON.parse(t);return Array.isArray(_i3)?_i3.filter(function(t){return t&&"string"==typeof t.key&&"string"==typeof t.label;}):[];}catch(_unused){return[];}}();var _o=(_ref2=(_n$mentionsColor=n.mentionsColor)!==null&&_n$mentionsColor!==void 0?_n$mentionsColor:n.getAttribute("mentionscolor"))!==null&&_ref2!==void 0?_ref2:"";Array.isArray(e)||(e=[]),t[s]=e,_o&&(i[s]=String(_o));};for(var _i2=0,_s=s;_i2<_s.length;_i2++){if(_loop())continue;}this.itemsConfig=t,this.itemsColors=i;}},{key:"injectStyles",value:function injectStyles(){if(this.querySelector("style[data-mentions-style]"))return;var t=document.createElement("style");t.setAttribute("data-mentions-style","true"),t.textContent="\n .mention-dropdown {\n position: absolute; z-index: 1000; list-style: none; margin: 0; padding: 4px;\n border: 1px solid #e5e7eb; border-radius: 6px; background: #fff;\n box-shadow: 0 4px 10px rgba(0,0,0,.08); max-height: 180px; overflow: auto; font-size: 14px;\n }\n .mention-dropdown li { padding: 6px 8px; cursor: pointer; border-radius: 4px; }\n .mention-dropdown li:hover { background: #f1f5f9; }\n .mention { background: #eef2ff; padding: 0 3px; border-radius: 3px; }\n nile-menu.mentions-menu::part(menu__items-wrapper){\n max-height: 260px;\n }\n\n ",this.insertBefore(t,this.firstChild);}},{key:"getTriggerColor",value:function getTriggerColor(t){var _this$itemsColors$t;return(_this$itemsColors$t=this.itemsColors[t])!==null&&_this$itemsColors$t!==void 0?_this$itemsColors$t:this.mentionColors[t];}},{key:"ensureMentionDropdown",value:function ensureMentionDropdown(){if(this.dropdownEl||!this.hostEl)return;var t=document.createElement("nile-dropdown");t.style.zIndex="1000";var i=document.createElement("nile-button");i.setAttribute("slot","trigger"),i.style.position="absolute",i.style.width="1px",i.style.height="1px",i.style.border="0",i.style.padding="0",i.style.opacity="0",i.style.pointerEvents="none",t.appendChild(i),this.triggerBtn=i;var s=document.createElement("nile-menu");s.classList.add("mentions-menu"),t.appendChild(s),this.hostEl.appendChild(t),this.dropdownEl=t,this.menuEl=s;}},{key:"restoreSelection",value:function restoreSelection(){if(!this.lastRange)return;var t=document.getSelection();t&&(t.removeAllRanges(),t.addRange(this.lastRange));}},{key:"focusAndRestore",value:function focusAndRestore(){var _this$editorEl;(_this$editorEl=this.editorEl)!==null&&_this$editorEl!==void 0&&_this$editorEl.focus(),this.restoreSelection();}},{key:"getCaretClientRect",value:function getCaretClientRect(){var t=document.getSelection();if(!t||0===t.rangeCount)return null;var i=t.getRangeAt(0).cloneRange();i.collapse(!1);var s=i.getClientRects();if(s&&s.length>0)return s[0];var n=document.createElement("span");n.setAttribute("data-caret-marker","1"),n.textContent="​",i.insertNode(n);var e=n.getBoundingClientRect(),_o2=document.createRange();return _o2.setStartAfter(n),_o2.collapse(!0),t.removeAllRanges(),t.addRange(_o2),n.remove(),e||null;}},{key:"openMention",value:function openMention(t){if(this.saveSelection(),!this.editorEl||!this.dropdownEl||!this.hostEl)return;var i=this.getCaretClientRect();if(!i)return;var s=this.hostEl.getBoundingClientRect();this.mentionX=i.left-s.left,this.mentionY=i.bottom-s.top,this.mentionTrigger=t,this.mentionSuggestions=this.config[t]||[],this.mentionQuery="",this.updateMentionFiltered(),this.mentionOpen=!0,this.renderMentionList();}},{key:"closeMention",value:function closeMention(){var _this$dropdownEl;this.mentionOpen=!1,this.mentionTrigger=null,this.mentionQuery="",this.mentionFiltered=[],(_this$dropdownEl=this.dropdownEl)===null||_this$dropdownEl===void 0?void 0:_this$dropdownEl.removeAttribute("open");}},{key:"handleMention",value:function handleMention(){if(!this.mentionOpen||!this.mentionTrigger)return;var t=window.getSelection();if(!t||!t.anchorNode)return;var i=t.anchorNode;if(i.nodeType!==Node.TEXT_NODE){var _i$childNodes;var _s2=((_i$childNodes=i.childNodes)===null||_i$childNodes===void 0?void 0:_i$childNodes[t.anchorOffset])||i.firstChild;(_s2===null||_s2===void 0?void 0:_s2.nodeType)===Node.TEXT_NODE&&(i=_s2);}var s=i&&i.nodeType===Node.TEXT_NODE&&i.textContent||"",n=s.lastIndexOf(this.mentionTrigger);n>=0?(this.mentionQuery=s.substring(n+1),this.updateMentionFiltered(),this.renderMentionList()):this.closeMention();}},{key:"updateMentionFiltered",value:function updateMentionFiltered(){var t=this.mentionQuery.toLowerCase();this.mentionFiltered=(this.mentionSuggestions||[]).filter(function(i){return i.label.toLowerCase().startsWith(t);});}},{key:"renderMentionList",value:function renderMentionList(){var _this3=this;if(this.dropdownEl&&this.menuEl&&this.triggerBtn)if(this.triggerBtn.style.position="absolute",this.triggerBtn.style.left="".concat(this.mentionX,"px"),this.triggerBtn.style.top="".concat(this.mentionY,"px"),this.menuEl.innerHTML="",this.mentionOpen&&this.mentionFiltered.length){var _iterator=_createForOfIteratorHelper(this.mentionFiltered),_step;try{var _loop2=function _loop2(){var t=_step.value;var i=document.createElement("nile-menu-item");i.textContent=t.label,i.addEventListener("mousedown",function(i){i.preventDefault(),_this3.selectMention(t);}),_this3.menuEl.appendChild(i);};for(_iterator.s();!(_step=_iterator.n()).done;){_loop2();}}catch(err){_iterator.e(err);}finally{_iterator.f();}this.dropdownEl.setAttribute("open","");}else this.dropdownEl.removeAttribute("open");}},{key:"selectMention",value:function selectMention(t){if(this.restoreSelection(),!this.lastRange||!this.mentionTrigger||!this.editorEl)return;var i=this.lastRange.startContainer,s=this.lastRange.startOffset;if(i.nodeType!==Node.TEXT_NODE){var _t=i.childNodes[s];if((_t===null||_t===void 0?void 0:_t.nodeType)!==Node.TEXT_NODE)return;i=_t,s=0;}var n=i,e=(n.textContent||"").lastIndexOf(this.mentionTrigger,s);if(e<0)return;var _o3=e+1+this.mentionQuery.length,h=document.createRange();h.setStart(n,e),h.setEnd(n,_o3),h.deleteContents();var r=document.createElement("span");r.classList.add("mention"),r.textContent="".concat(this.mentionTrigger).concat(t.label);var u=this.getTriggerColor(this.mentionTrigger);u&&(r.style.backgroundColor=u),h.insertNode(r);var c=document.createTextNode(" ");r.after(c);var l=window.getSelection(),d=document.createRange();d.setStartAfter(c),d.collapse(!0),l!==null&&l!==void 0&&l.removeAllRanges(),l!==null&&l!==void 0&&l.addRange(d),this.lastRange=d.cloneRange(),this.closeMention(),this.editorEl.dispatchEvent(new InputEvent("input",{bubbles:!0}));}}]);}(i);t([s({attribute:"mentions",converter:{fromAttribute:function fromAttribute(t){try{var _i4=JSON.parse(t),_s3={};for(var _i5=0,_Object$keys=Object.keys(_i4);_i5<_Object$keys.length;_i5++){var _t2=_Object$keys[_i5];var _n=_i4[_t2];Array.isArray(_n)&&(_s3[_t2]=_n.filter(function(t){return t&&"string"==typeof t.key&&"string"==typeof t.label;}).map(function(t){return{key:t.key,label:t.label};}));}return _s3;}catch(_unused2){return{};}},toAttribute:function toAttribute(t){return JSON.stringify(t);}}})],o.prototype,"mentions",void 0),t([s({attribute:"mentioncolors",converter:{fromAttribute:function fromAttribute(t){try{var _i6=JSON.parse(t);return _i6&&"object"==_typeof(_i6)?_i6:{};}catch(_unused3){return{};}},toAttribute:function toAttribute(t){return JSON.stringify(t!==null&&t!==void 0?t:{});}}})],o.prototype,"mentionColors",void 0),t([n()],o.prototype,"externalConfig",void 0),t([n()],o.prototype,"itemsConfig",void 0),t([n()],o.prototype,"itemsColors",void 0),o=t([e("nile-rte-mentions")],o);}};});
3
- //# sourceMappingURL=nile-rte-mentions.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nile-rte-mentions.cjs.js","sources":["../../../src/nile-rich-text-editor/nile-rte-mentions.ts"],"sourcesContent":["import { LitElement } from 'lit';\nimport { customElement, property, state } from 'lit/decorators.js';\nimport type { MentionItem } from './nile-rte-mentions-item';\n\ntype MentionsConfig = Record<string, MentionItem[]>;\n\n@customElement('nile-rte-mentions')\nexport class NileRteMentions extends LitElement {\n protected createRenderRoot() { return this; } \n\n \n @property({\n attribute: 'mentions',\n converter: {\n fromAttribute: (value: string): MentionsConfig => {\n try {\n const parsed = JSON.parse(value);\n const out: MentionsConfig = {};\n for (const trig of Object.keys(parsed)) {\n const arr = parsed[trig];\n if (Array.isArray(arr)) {\n out[trig] = arr\n .filter(i => i && typeof i.key === 'string' && typeof i.label === 'string')\n .map(i => ({ key: i.key, label: i.label }));\n }\n }\n return out;\n } catch { return {}; }\n },\n toAttribute: (v: MentionsConfig) => JSON.stringify(v),\n }\n })\n mentions: MentionsConfig = {};\n\n @property({\n attribute: 'mentioncolors',\n converter: {\n fromAttribute: (value: string): Record<string,string> => {\n try { const o = JSON.parse(value); return (o && typeof o === 'object') ? o : {}; }\n catch { return {}; }\n },\n toAttribute: (v: Record<string,string>) => JSON.stringify(v ?? {})\n }\n })\n mentionColors: Record<string, string> = {}; // NEW\n\n /** External config from the editor (lowest priority) */\n @state() private externalConfig: MentionsConfig = {};\n\n /** Config gathered from child <nile-rte-mentions-item> (highest priority) */\n @state() private itemsConfig: MentionsConfig = {};\n\n @state() private itemsColors: Record<string,string> = {}; // NEW\n\n private get config(): MentionsConfig {\n // Priority: external < attribute < child-items\n return { ...this.externalConfig, ...this.mentions, ...this.itemsConfig };\n }\n\n // wired from editor\n private editorEl: HTMLElement | null = null;\n private hostEl: HTMLElement | null = null;\n\n \nprivate dropdownEl: HTMLElement | null = null; // <nile-dropdown>\nprivate menuEl: HTMLElement | null = null; // <nile-menu>\n\n\n // selection caret\n private lastRange: Range | null = null;\n\n // dropdown state\n private mentionOpen = false;\n private mentionTrigger: string | null = null;\n private mentionQuery = '';\n private mentionSuggestions: MentionItem[] = [];\n private mentionFiltered: MentionItem[] = [];\n private mentionX = 0;\n private mentionY = 0;\nprivate triggerBtn: HTMLElement | null = null;\n\n \n\n // Observe child items & their attributes\n private mo: MutationObserver | null = null;\n\n // Public API used by <nile-rich-text-editor>\n attach(editorEl: HTMLElement, hostEl: HTMLElement) {\n this.editorEl = editorEl;\n this.hostEl = hostEl;\n\n this.injectStyles();\n this.ensureMentionDropdown();\n this.rebuildConfigFromChildren();\n\n // Watch for <nile-rte-mentions-item> add/remove/attr changes\n this.mo = new MutationObserver(() => this.rebuildConfigFromChildren());\n this.mo.observe(this, { childList: true, subtree: true, attributes: true });\n\n // listeners on editor\n this.editorEl.addEventListener('input', this.onEditorInput);\n this.editorEl.addEventListener('mouseup', this.saveSelection);\n this.editorEl.addEventListener('keyup', this.onEditorKeyUp);\n this.editorEl.addEventListener('keydown', this.onEditorKeyDown);\n this.editorEl.addEventListener('scroll', this.repositionMention);\n\n // keep range fresh\n document.addEventListener('selectionchange', this.onSelectionChange, true);\n }\n\n detach() {\n if (this.mo) { this.mo.disconnect(); this.mo = null; }\n if (this.editorEl) {\n this.editorEl.removeEventListener('input', this.onEditorInput);\n this.editorEl.removeEventListener('mouseup', this.saveSelection);\n this.editorEl.removeEventListener('keyup', this.onEditorKeyUp);\n this.editorEl.removeEventListener('keydown', this.onEditorKeyDown);\n this.editorEl.removeEventListener('scroll', this.repositionMention);\n }\n document.removeEventListener('selectionchange', this.onSelectionChange, true);\n }\n\n setExternalConfig(cfg: MentionsConfig) {\n this.externalConfig = cfg || {};\n }\n\n disconnectedCallback(): void {\n this.detach();\n super.disconnectedCallback();\n }\n\n // ---------- gather child items ----------\n private rebuildConfigFromChildren() {\n const cfg: MentionsConfig = {};\n const colors: Record<string,string> = {}; // NEW\n\n const items = Array.from(this.querySelectorAll('nile-rte-mentions-item')) as Array<\n HTMLElement & { mentionsCharacter?: string; mentionsData?: MentionItem[]; mentionsColor?: string }\n >;\n\n for (const item of items) {\n const trig =\n (item as any).mentionsCharacter ??\n item.getAttribute('mentionscharacter') ??\n '';\n\n if (!trig || typeof trig !== 'string') continue;\n\n let data: MentionItem[] | null =\n (item as any).mentionsData ??\n (() => {\n const raw = item.getAttribute('mentionsdata');\n if (!raw) return null;\n try {\n const parsed = JSON.parse(raw);\n return Array.isArray(parsed)\n ? parsed.filter(i => i && typeof i.key === 'string' && typeof i.label === 'string')\n : [];\n } catch { return []; }\n })();\n\n const color =\n (item as any).mentionsColor ??\n item.getAttribute('mentionscolor') ??\n '';\n\n if (!Array.isArray(data)) data = [];\n cfg[trig] = data;\n if (color) colors[trig] = String(color); // record color if provided\n }\n\n this.itemsConfig = cfg;\n this.itemsColors = colors; // NEW\n }\n // ---------- styles ----------\n private injectStyles() {\n if (this.querySelector('style[data-mentions-style]')) return;\n const style = document.createElement('style');\n style.setAttribute('data-mentions-style', 'true');\n style.textContent = `\n .mention-dropdown {\n position: absolute; z-index: 1000; list-style: none; margin: 0; padding: 4px;\n border: 1px solid #e5e7eb; border-radius: 6px; background: #fff;\n box-shadow: 0 4px 10px rgba(0,0,0,.08); max-height: 180px; overflow: auto; font-size: 14px;\n }\n .mention-dropdown li { padding: 6px 8px; cursor: pointer; border-radius: 4px; }\n .mention-dropdown li:hover { background: #f1f5f9; }\n .mention { background: #eef2ff; padding: 0 3px; border-radius: 3px; }\n nile-menu.mentions-menu::part(menu__items-wrapper){\n max-height: 260px;\n }\n\n `;\n this.insertBefore(style, this.firstChild);\n }\n\n private getTriggerColor(trigger: string): string | undefined {\n // Priority: child item color > attribute JSON color\n return this.itemsColors[trigger] ?? this.mentionColors[trigger];\n }\n\n \nprivate ensureMentionDropdown() {\n if (this.dropdownEl || !this.hostEl) return;\n\n const dd = document.createElement('nile-dropdown');\n dd.style.zIndex = '1000';\n\n const btn = document.createElement('nile-button'); // invisible trigger\n btn.setAttribute('slot', 'trigger');\n btn.style.position = 'absolute'; \n btn.style.width = '1px';\n btn.style.height = '1px';\n btn.style.border = '0';\n btn.style.padding = '0';\n btn.style.opacity = '0'; \n btn.style.pointerEvents = 'none'; \n dd.appendChild(btn);\n this.triggerBtn = btn; \n const menu = document.createElement('nile-menu');\n menu.classList.add('mentions-menu');\n dd.appendChild(menu);\n\n this.hostEl.appendChild(dd);\n this.dropdownEl = dd;\n this.menuEl = menu;\n}\n\n // ---------- selection helpers ----------\n private onSelectionChange = () => {\n if (!this.editorEl) return;\n const sel = document.getSelection();\n if (!sel || sel.rangeCount === 0) return;\n const range = sel.getRangeAt(0);\n if (this.editorEl.contains(range.commonAncestorContainer)) {\n this.lastRange = range.cloneRange();\n }\n };\n private saveSelection = () => {\n const sel = window.getSelection();\n if (sel && sel.rangeCount) this.lastRange = sel.getRangeAt(0).cloneRange();\n };\n private restoreSelection() {\n if (!this.lastRange) return;\n const sel = document.getSelection(); if (!sel) return;\n sel.removeAllRanges(); sel.addRange(this.lastRange);\n }\n private focusAndRestore() { this.editorEl?.focus(); this.restoreSelection(); }\n\n private getCaretClientRect(): DOMRect | null {\n const sel = document.getSelection();\n if (!sel || sel.rangeCount === 0) return null;\n\n const range = sel.getRangeAt(0).cloneRange();\n range.collapse(false);\n\n const rects = range.getClientRects();\n if (rects && rects.length > 0) return rects[0];\n\n const marker = document.createElement('span');\n marker.setAttribute('data-caret-marker', '1');\n marker.textContent = '\\u200B';\n range.insertNode(marker);\n\n const rect = marker.getBoundingClientRect();\n\n const after = document.createRange();\n after.setStartAfter(marker);\n after.collapse(true);\n sel.removeAllRanges();\n sel.addRange(after);\n marker.remove();\n\n return rect || null;\n }\n\n // ---------- editor events ----------\n private onEditorInput = () => {\n if (this.mentionOpen) this.handleMention();\n };\n\n private onEditorKeyUp = (e: KeyboardEvent) => {\n this.saveSelection();\n const key = e.key;\n const cfg = this.config;\n if (!this.mentionOpen && key && cfg[key]) {\n this.openMention(key);\n return;\n }\n if (this.mentionOpen) this.handleMention();\n };\n\n private onEditorKeyDown = (e: KeyboardEvent) => {\n if (!this.mentionOpen) return;\n const key = e.key;\n if (key === 'ArrowDown' || key === 'ArrowUp' || key === 'Enter') {\n e.preventDefault();\n if (key === 'Enter' && this.mentionFiltered.length) {\n this.selectMention(this.mentionFiltered[0]);\n }\n } else if (key === 'Escape') {\n e.preventDefault();\n this.closeMention();\n }\n };\n\n // ---------- mentions flow ----------\n private openMention(trigger: string) {\n this.saveSelection();\n if (!this.editorEl || !this.dropdownEl || !this.hostEl) return;\n\n const caretRect = this.getCaretClientRect();\n if (!caretRect) return;\n\n const hostRect = this.hostEl.getBoundingClientRect();\n\n this.mentionX = caretRect.left - hostRect.left;\n this.mentionY = caretRect.bottom - hostRect.top;\n\n this.mentionTrigger = trigger;\n this.mentionSuggestions = this.config[trigger] || [];\n this.mentionQuery = '';\n this.updateMentionFiltered();\n\n this.mentionOpen = true;\n this.renderMentionList();\n }\n\n private closeMention() {\n this.mentionOpen = false;\n this.mentionTrigger = null;\n this.mentionQuery = '';\n this.mentionFiltered = [];\n // hide dropdown\n this.dropdownEl?.removeAttribute('open');\n }\n\n private handleMention() {\n if (!this.mentionOpen || !this.mentionTrigger) return;\n const sel = window.getSelection(); if (!sel || !sel.anchorNode) return;\n\n let node: Node | null = sel.anchorNode;\n if (node.nodeType !== Node.TEXT_NODE) {\n const c = (node as HTMLElement).childNodes?.[sel.anchorOffset] || node.firstChild;\n if (c?.nodeType === Node.TEXT_NODE) node = c;\n }\n const text = (node && node.nodeType === Node.TEXT_NODE) ? (node.textContent || '') : '';\n const idx = text.lastIndexOf(this.mentionTrigger);\n if (idx >= 0) {\n this.mentionQuery = text.substring(idx + 1);\n this.updateMentionFiltered();\n this.renderMentionList();\n } else {\n this.closeMention();\n }\n }\n\n private updateMentionFiltered() {\n const q = this.mentionQuery.toLowerCase();\n this.mentionFiltered = (this.mentionSuggestions || []).filter(item =>\n item.label.toLowerCase().startsWith(q)\n );\n }\n\n private renderMentionList() {\n if (!this.dropdownEl || !this.menuEl) return;\n \n if (!this.triggerBtn) return;\n this.triggerBtn.style.position = 'absolute';\n this.triggerBtn.style.left = `${this.mentionX}px`;\n this.triggerBtn.style.top = `${this.mentionY}px`;\n \n \n // clear old items\n this.menuEl.innerHTML = '';\n \n if (!this.mentionOpen || !this.mentionFiltered.length) {\n this.dropdownEl.removeAttribute('open');\n return;\n }\n \n // build menu items\n for (const item of this.mentionFiltered) {\n const mi = document.createElement('nile-menu-item');\n mi.textContent = item.label;\n mi.addEventListener('mousedown', (e) => {\n e.preventDefault();\n this.selectMention(item);\n });\n this.menuEl.appendChild(mi);\n }\n \n // show dropdown\n this.dropdownEl.setAttribute('open', '');\n }\n \n\n private repositionMention = () => {\n if (!this.mentionOpen || !this.hostEl || !this.triggerBtn) return;\n\n const caretRect = this.getCaretClientRect();\n if (!caretRect) return;\n\n const hostRect = this.hostEl.getBoundingClientRect();\n\n this.mentionX = caretRect.left - hostRect.left;\n this.mentionY = caretRect.bottom - hostRect.top;\n\n this.triggerBtn.style.left = `${this.mentionX}px`;\n this.triggerBtn.style.top = `${this.mentionY}px`;\n };\n\n private selectMention(item: MentionItem) {\n this.restoreSelection(); if (!this.lastRange || !this.mentionTrigger || !this.editorEl) return;\n\n let node: Node = this.lastRange.startContainer;\n let offset = this.lastRange.startOffset;\n if (node.nodeType !== Node.TEXT_NODE) {\n const child = node.childNodes[offset];\n if (child?.nodeType === Node.TEXT_NODE) { node = child; offset = 0; } else return;\n }\n const textNode = node as Text;\n const text = textNode.textContent || '';\n const atIndex = text.lastIndexOf(this.mentionTrigger, offset);\n if (atIndex < 0) return;\n\n const endIndex = atIndex + 1 + this.mentionQuery.length;\n const mentionRange = document.createRange();\n mentionRange.setStart(textNode, atIndex);\n mentionRange.setEnd(textNode, endIndex);\n mentionRange.deleteContents();\n\n const span = document.createElement('span');\n span.classList.add('mention');\n span.textContent = `${this.mentionTrigger}${item.label}`;\n const bg = this.getTriggerColor(this.mentionTrigger);\n if (bg) {\n span.style.backgroundColor = bg;\n // Optional: if you prefer colored text instead of bg\n // span.style.color = bg;\n }\n\n mentionRange.insertNode(span);\n\n const spaceNode = document.createTextNode('\\u00A0');\n span.after(spaceNode);\n\n const sel = window.getSelection();\n const afterRange = document.createRange();\n afterRange.setStartAfter(spaceNode); afterRange.collapse(true);\n sel?.removeAllRanges(); sel?.addRange(afterRange);\n this.lastRange = afterRange.cloneRange();\n\n this.closeMention();\n\n // bubble an input event so the editor updates preview/state\n this.editorEl.dispatchEvent(new InputEvent('input', { bubbles: true }));\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-rte-mentions': NileRteMentions;\n }\n}\n"],"names":["NileRteMentions","o","this","mentions","mentionColors","externalConfig","itemsConfig","itemsColors","editorEl","hostEl","dropdownEl","menuEl","lastRange","mentionOpen","mentionTrigger","mentionQuery","mentionSuggestions","mentionFiltered","mentionX","mentionY","triggerBtn","mo","onSelectionChange","sel","document","getSelection","rangeCount","range","getRangeAt","contains","commonAncestorContainer","cloneRange","saveSelection","window","onEditorInput","handleMention","onEditorKeyUp","e","key","cfg","config","openMention","onEditorKeyDown","preventDefault","length","selectMention","closeMention","repositionMention","caretRect","getCaretClientRect","hostRect","getBoundingClientRect","left","bottom","top","style","_this","_inherits","_i","_createClass","value","createRenderRoot","get","_objectSpread","attach","injectStyles","ensureMentionDropdown","rebuildConfigFromChildren","MutationObserver","observe","childList","subtree","attributes","addEventListener","detach","disconnect","removeEventListener","setExternalConfig","disconnectedCallback","colors","items","Array","from","querySelectorAll","_loop","_ref","_n$mentionsCharacter","_n$mentionsData","_ref2","_n$mentionsColor","item","trig","mentionsCharacter","getAttribute","data","mentionsData","raw","parsed","JSON","parse","isArray","filter","i","label","_unused","color","mentionsColor","String","_i2","_s","querySelector","createElement","setAttribute","textContent","insertBefore","firstChild","getTriggerColor","trigger","_this$itemsColors$t","dd","zIndex","btn","position","width","height","border","padding","opacity","pointerEvents","appendChild","menu","classList","add","restoreSelection","removeAllRanges","addRange","focusAndRestore","focus","collapse","rects","getClientRects","marker","insertNode","rect","after","createRange","setStartAfter","remove","updateMentionFiltered","renderMentionList","_this$dropdownEl","removeAttribute","anchorNode","node","nodeType","Node","TEXT_NODE","_i$childNodes","c","childNodes","anchorOffset","text","idx","lastIndexOf","substring","q","toLowerCase","startsWith","concat","innerHTML","_iterator","_createForOfIteratorHelper","_step","_loop2","mi","s","n","done","startContainer","offset","startOffset","child","textNode","atIndex","endIndex","mentionRange","setStart","setEnd","deleteContents","span","bg","backgroundColor","spaceNode","createTextNode","afterRange","dispatchEvent","InputEvent","bubbles","LitElement","__decorate","property","attribute","converter","fromAttribute","out","_i5","_Object$keys","Object","keys","arr","map","_unused2","toAttribute","v","stringify","prototype","_typeof","_unused3","state","customElement"],"mappings":"u1KAOaA,CAAAA,uBAAAA,EAAAA,EAAN,SAAAC,EAAA,uEAyBLC,KAAAA,CAAQC,QAAAA,CAAmB,GAY3BD,KAAAA,CAAAE,aAAwC,CAAA,EAGvBF,CA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AAAA,GAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAuN,SAAA,CAAA,UAAA,CAAA,IAAA,IAY9BhB,CAAA,CAAA,CAVCC,CAAS,CAAA,CACRC,UAAW,eACXC,CAAAA,SAAAA,CAAW,CACTC,aAAAA,CAAgB/I,QAAhB+I,CAAAA,aAAAA,CAAgB/I,GACd,GAAM,CAAA,GAAM3D,CAAAA,GAAIiG,CAAAA,IAAAA,CAAKC,MAAMvC,CAAQ,CAAA,CAAA,MAAQ3D,CAAAA,GAAkB,EAAA,QAAA,EAAAuN,OAAA,CAANvN,KAAkBA,GAAI,CAAA,CAAA,CAAK,EAClF,MAAAwN,QAAA,EAAQ,MAAO,EAAK,EAAA,CAAA,CAEtBL,YAAcC,QAAdD,CAAAA,YAAcC,CAA6BnH,QAAAA,CAAAA,IAAAA,CAAKoH,SAAUD,CAAAA,CAAAA,SAAAA,CAAAA,UAAAA,CAAAA,CAAK,CAAA,CAGxBrN,CAAAA,GAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAuN,SAAA,CAAA,eAAA,CAAA,IAAA,IAG1BhB,CAAA,CAAA,CAAhBmB,CAAoD1N,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAuN,UAAA,gBAAA,CAAA,IAAA,EAAA,CAAA,CAGpChB,CAAA,CAAA,CAAhBmB,KAAiD1N,CAAAuN,CAAAA,SAAAA,CAAA,aAAA,CAAA,IAAA,EAAA,CAAA,CAEjChB,EAAA,CAAhBmB,CAAAA,CAAAA,CAAAA,CAAAA,CAAwD1N,CAAAuN,CAAAA,SAAAA,CAAA,kBAAA,EA7C9CvN,CAAAA,CAAAA,CAAAA,CAAeuM,CAAA,CAAA,CAD3BoB,EAAc,mBACF3N,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA"}
@@ -1 +0,0 @@
1
- import{__decorate as t}from"tslib";import{LitElement as i}from"lit";import{property as s,state as n,customElement as e}from"lit/decorators.js";let o=class extends i{constructor(){super(...arguments),this.mentions={},this.mentionColors={},this.externalConfig={},this.itemsConfig={},this.itemsColors={},this.editorEl=null,this.hostEl=null,this.dropdownEl=null,this.menuEl=null,this.lastRange=null,this.mentionOpen=!1,this.mentionTrigger=null,this.mentionQuery="",this.mentionSuggestions=[],this.mentionFiltered=[],this.mentionX=0,this.mentionY=0,this.triggerBtn=null,this.mo=null,this.onSelectionChange=()=>{if(!this.editorEl)return;const t=document.getSelection();if(!t||0===t.rangeCount)return;const i=t.getRangeAt(0);this.editorEl.contains(i.commonAncestorContainer)&&(this.lastRange=i.cloneRange())},this.saveSelection=()=>{const t=window.getSelection();t&&t.rangeCount&&(this.lastRange=t.getRangeAt(0).cloneRange())},this.onEditorInput=()=>{this.mentionOpen&&this.handleMention()},this.onEditorKeyUp=t=>{this.saveSelection();const i=t.key,s=this.config;!this.mentionOpen&&i&&s[i]?this.openMention(i):this.mentionOpen&&this.handleMention()},this.onEditorKeyDown=t=>{if(!this.mentionOpen)return;const i=t.key;"ArrowDown"===i||"ArrowUp"===i||"Enter"===i?(t.preventDefault(),"Enter"===i&&this.mentionFiltered.length&&this.selectMention(this.mentionFiltered[0])):"Escape"===i&&(t.preventDefault(),this.closeMention())},this.repositionMention=()=>{if(!this.mentionOpen||!this.hostEl||!this.triggerBtn)return;const t=this.getCaretClientRect();if(!t)return;const i=this.hostEl.getBoundingClientRect();this.mentionX=t.left-i.left,this.mentionY=t.bottom-i.top,this.triggerBtn.style.left=`${this.mentionX}px`,this.triggerBtn.style.top=`${this.mentionY}px`}}createRenderRoot(){return this}get config(){return{...this.externalConfig,...this.mentions,...this.itemsConfig}}attach(t,i){this.editorEl=t,this.hostEl=i,this.injectStyles(),this.ensureMentionDropdown(),this.rebuildConfigFromChildren(),this.mo=new MutationObserver((()=>this.rebuildConfigFromChildren())),this.mo.observe(this,{childList:!0,subtree:!0,attributes:!0}),this.editorEl.addEventListener("input",this.onEditorInput),this.editorEl.addEventListener("mouseup",this.saveSelection),this.editorEl.addEventListener("keyup",this.onEditorKeyUp),this.editorEl.addEventListener("keydown",this.onEditorKeyDown),this.editorEl.addEventListener("scroll",this.repositionMention),document.addEventListener("selectionchange",this.onSelectionChange,!0)}detach(){this.mo&&(this.mo.disconnect(),this.mo=null),this.editorEl&&(this.editorEl.removeEventListener("input",this.onEditorInput),this.editorEl.removeEventListener("mouseup",this.saveSelection),this.editorEl.removeEventListener("keyup",this.onEditorKeyUp),this.editorEl.removeEventListener("keydown",this.onEditorKeyDown),this.editorEl.removeEventListener("scroll",this.repositionMention)),document.removeEventListener("selectionchange",this.onSelectionChange,!0)}setExternalConfig(t){this.externalConfig=t||{}}disconnectedCallback(){this.detach(),super.disconnectedCallback()}rebuildConfigFromChildren(){const t={},i={},s=Array.from(this.querySelectorAll("nile-rte-mentions-item"));for(const n of s){const s=n.mentionsCharacter??n.getAttribute("mentionscharacter")??"";if(!s||"string"!=typeof s)continue;let e=n.mentionsData??(()=>{const t=n.getAttribute("mentionsdata");if(!t)return null;try{const i=JSON.parse(t);return Array.isArray(i)?i.filter((t=>t&&"string"==typeof t.key&&"string"==typeof t.label)):[]}catch{return[]}})();const o=n.mentionsColor??n.getAttribute("mentionscolor")??"";Array.isArray(e)||(e=[]),t[s]=e,o&&(i[s]=String(o))}this.itemsConfig=t,this.itemsColors=i}injectStyles(){if(this.querySelector("style[data-mentions-style]"))return;const t=document.createElement("style");t.setAttribute("data-mentions-style","true"),t.textContent="\n .mention-dropdown {\n position: absolute; z-index: 1000; list-style: none; margin: 0; padding: 4px;\n border: 1px solid #e5e7eb; border-radius: 6px; background: #fff;\n box-shadow: 0 4px 10px rgba(0,0,0,.08); max-height: 180px; overflow: auto; font-size: 14px;\n }\n .mention-dropdown li { padding: 6px 8px; cursor: pointer; border-radius: 4px; }\n .mention-dropdown li:hover { background: #f1f5f9; }\n .mention { background: #eef2ff; padding: 0 3px; border-radius: 3px; }\n nile-menu.mentions-menu::part(menu__items-wrapper){\n max-height: 260px;\n }\n\n ",this.insertBefore(t,this.firstChild)}getTriggerColor(t){return this.itemsColors[t]??this.mentionColors[t]}ensureMentionDropdown(){if(this.dropdownEl||!this.hostEl)return;const t=document.createElement("nile-dropdown");t.style.zIndex="1000";const i=document.createElement("nile-button");i.setAttribute("slot","trigger"),i.style.position="absolute",i.style.width="1px",i.style.height="1px",i.style.border="0",i.style.padding="0",i.style.opacity="0",i.style.pointerEvents="none",t.appendChild(i),this.triggerBtn=i;const s=document.createElement("nile-menu");s.classList.add("mentions-menu"),t.appendChild(s),this.hostEl.appendChild(t),this.dropdownEl=t,this.menuEl=s}restoreSelection(){if(!this.lastRange)return;const t=document.getSelection();t&&(t.removeAllRanges(),t.addRange(this.lastRange))}focusAndRestore(){this.editorEl?.focus(),this.restoreSelection()}getCaretClientRect(){const t=document.getSelection();if(!t||0===t.rangeCount)return null;const i=t.getRangeAt(0).cloneRange();i.collapse(!1);const s=i.getClientRects();if(s&&s.length>0)return s[0];const n=document.createElement("span");n.setAttribute("data-caret-marker","1"),n.textContent="​",i.insertNode(n);const e=n.getBoundingClientRect(),o=document.createRange();return o.setStartAfter(n),o.collapse(!0),t.removeAllRanges(),t.addRange(o),n.remove(),e||null}openMention(t){if(this.saveSelection(),!this.editorEl||!this.dropdownEl||!this.hostEl)return;const i=this.getCaretClientRect();if(!i)return;const s=this.hostEl.getBoundingClientRect();this.mentionX=i.left-s.left,this.mentionY=i.bottom-s.top,this.mentionTrigger=t,this.mentionSuggestions=this.config[t]||[],this.mentionQuery="",this.updateMentionFiltered(),this.mentionOpen=!0,this.renderMentionList()}closeMention(){this.mentionOpen=!1,this.mentionTrigger=null,this.mentionQuery="",this.mentionFiltered=[],this.dropdownEl?.removeAttribute("open")}handleMention(){if(!this.mentionOpen||!this.mentionTrigger)return;const t=window.getSelection();if(!t||!t.anchorNode)return;let i=t.anchorNode;if(i.nodeType!==Node.TEXT_NODE){const s=i.childNodes?.[t.anchorOffset]||i.firstChild;s?.nodeType===Node.TEXT_NODE&&(i=s)}const s=i&&i.nodeType===Node.TEXT_NODE&&i.textContent||"",n=s.lastIndexOf(this.mentionTrigger);n>=0?(this.mentionQuery=s.substring(n+1),this.updateMentionFiltered(),this.renderMentionList()):this.closeMention()}updateMentionFiltered(){const t=this.mentionQuery.toLowerCase();this.mentionFiltered=(this.mentionSuggestions||[]).filter((i=>i.label.toLowerCase().startsWith(t)))}renderMentionList(){if(this.dropdownEl&&this.menuEl&&this.triggerBtn)if(this.triggerBtn.style.position="absolute",this.triggerBtn.style.left=`${this.mentionX}px`,this.triggerBtn.style.top=`${this.mentionY}px`,this.menuEl.innerHTML="",this.mentionOpen&&this.mentionFiltered.length){for(const t of this.mentionFiltered){const i=document.createElement("nile-menu-item");i.textContent=t.label,i.addEventListener("mousedown",(i=>{i.preventDefault(),this.selectMention(t)})),this.menuEl.appendChild(i)}this.dropdownEl.setAttribute("open","")}else this.dropdownEl.removeAttribute("open")}selectMention(t){if(this.restoreSelection(),!this.lastRange||!this.mentionTrigger||!this.editorEl)return;let i=this.lastRange.startContainer,s=this.lastRange.startOffset;if(i.nodeType!==Node.TEXT_NODE){const t=i.childNodes[s];if(t?.nodeType!==Node.TEXT_NODE)return;i=t,s=0}const n=i,e=(n.textContent||"").lastIndexOf(this.mentionTrigger,s);if(e<0)return;const o=e+1+this.mentionQuery.length,h=document.createRange();h.setStart(n,e),h.setEnd(n,o),h.deleteContents();const r=document.createElement("span");r.classList.add("mention"),r.textContent=`${this.mentionTrigger}${t.label}`;const u=this.getTriggerColor(this.mentionTrigger);u&&(r.style.backgroundColor=u),h.insertNode(r);const c=document.createTextNode(" ");r.after(c);const l=window.getSelection(),d=document.createRange();d.setStartAfter(c),d.collapse(!0),l?.removeAllRanges(),l?.addRange(d),this.lastRange=d.cloneRange(),this.closeMention(),this.editorEl.dispatchEvent(new InputEvent("input",{bubbles:!0}))}};t([s({attribute:"mentions",converter:{fromAttribute:t=>{try{const i=JSON.parse(t),s={};for(const t of Object.keys(i)){const n=i[t];Array.isArray(n)&&(s[t]=n.filter((t=>t&&"string"==typeof t.key&&"string"==typeof t.label)).map((t=>({key:t.key,label:t.label}))))}return s}catch{return{}}},toAttribute:t=>JSON.stringify(t)}})],o.prototype,"mentions",void 0),t([s({attribute:"mentioncolors",converter:{fromAttribute:t=>{try{const i=JSON.parse(t);return i&&"object"==typeof i?i:{}}catch{return{}}},toAttribute:t=>JSON.stringify(t??{})}})],o.prototype,"mentionColors",void 0),t([n()],o.prototype,"externalConfig",void 0),t([n()],o.prototype,"itemsConfig",void 0),t([n()],o.prototype,"itemsColors",void 0),o=t([e("nile-rte-mentions")],o);
@@ -1,2 +0,0 @@
1
- function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js"],function(_export,_context){"use strict";var r,t,e,o;function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){r=_tslib.__decorate;},function(_lit){t=_lit.LitElement;},function(_litDecoratorsJs){e=_litDecoratorsJs.customElement;}],execute:function execute(){o=/*#__PURE__*/function(_t){function o(){_classCallCheck(this,o);return _callSuper(this,o,arguments);}_inherits(o,_t);return _createClass(o,[{key:"createRenderRoot",value:function createRenderRoot(){return this;}},{key:"shouldUpdate",value:function shouldUpdate(){return!1;}}]);}(t);o=r([e("nile-rte-preview")],o);}};});
2
- //# sourceMappingURL=nile-rte-preview.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nile-rte-preview.cjs.js","sources":["../../../src/nile-rich-text-editor/nile-rte-preview.ts"],"sourcesContent":["import { LitElement } from 'lit';\nimport { customElement } from 'lit/decorators.js';\n\n@customElement('nile-rte-preview')\nexport class NileRtePreview extends LitElement {\n protected createRenderRoot() { return this; }\n protected shouldUpdate() { return false; }\n}\ndeclare global { interface HTMLElementTagNameMap { 'nile-rte-preview': NileRtePreview; } }\n"],"names":["NileRtePreview","createRenderRoot","this","key","value","shouldUpdate","LitElement","__decorate","customElement"],"mappings":"kwFAIaA,CAAAA,uBAAAA,EAAAA,WAAAA,EAAAA,EAAAA,eAAAA,MAAAA,CAAAA,SAAAA,UAAAA,MAAAA,CAAAA,CAAAA,SAAAA,GAAAA,SAAAA,CAAAA,CAAAA,CAAAA,EAAAA,SAAAA,YAAAA,CAAAA,CAAAA,GAAAA,GAAAA,oBAAAA,KAAAA,CACD,SAAAC,gBAAAA,CAAAA,CAAAA,CAAqB,MAAOC,KAAO,EACnC,GAAAC,GAAA,gBAAAC,KAAA,UAAAC,YAAAA,CAAAA,CAAAA,CAAiB,MAAO,CAAA,CAAQ,QAFRC,CAAAA,EAAvBN,CAAcO,CAAAA,CAAAA,CAAA,CAD1BC,CAAAA,CAAc,kBACFR,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA"}
@@ -1 +0,0 @@
1
- import{__decorate as r}from"tslib";import{LitElement as t}from"lit";import{customElement as e}from"lit/decorators.js";let o=class extends t{createRenderRoot(){return this}shouldUpdate(){return!1}};o=r([e("nile-rte-preview")],o);
@@ -1,2 +0,0 @@
1
- function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js"],function(_export,_context){"use strict";var t,e,n,i,l,r,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,s,a;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _superPropGet(t,o,e,r){var p=_get(_getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf(t)););return t;}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}function o(t){return s.has(t);}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_lit){e=_lit.LitElement;n=_lit.html;},function(_litDecoratorsJs){i=_litDecoratorsJs.property;l=_litDecoratorsJs.state;r=_litDecoratorsJs.customElement;}],execute:function execute(){s=new Set(["p","h1","h2","h3","h4","h5","h6"]);a=/*#__PURE__*/function(_e){function a(){var _this;_classCallCheck(this,a);_this=_callSuper(this,a,arguments),_this.type="",_this.options="[]",_this.label="",_this.selectedValue="";return _this;}_inherits(a,_e);return _createClass(a,[{key:"createRenderRoot",value:function createRenderRoot(){return this;}},{key:"mapAlignIcon",value:function mapAlignIcon(t){return{left:"align-left",center:"align-center",right:"align-right",justify:"nile-justify"}[t]||"align-left";}},{key:"parsedOptions",get:function get(){var _this$optionsObj,_this2=this;var t=(_this$optionsObj=this.optionsObj)!==null&&_this$optionsObj!==void 0?_this$optionsObj:this.options;var e=function(){if(Array.isArray(t))return t;try{return JSON.parse(String(t));}catch(_unused){return[];}}().map(function(t){var _t$value,_ref,_t$label,_t$icon;var e=(_t$value=t===null||t===void 0?void 0:t.value)!==null&&_t$value!==void 0?_t$value:t;return{value:e,label:(_ref=(_t$label=t===null||t===void 0?void 0:t.label)!==null&&_t$label!==void 0?_t$label:t===null||t===void 0?void 0:t.value)!==null&&_ref!==void 0?_ref:t,icon:(_t$icon=t===null||t===void 0?void 0:t.icon)!==null&&_t$icon!==void 0?_t$icon:"align"===_this2.type?_this2.mapAlignIcon(String(e)):void 0};});if("heading"===this.type){e.length;e=e.filter(function(t){return o(t.value);}),e.length,this.selectedValue&&!o(this.selectedValue)&&(this.selectedValue="");}return e;}},{key:"ensureDefault",value:function ensureDefault(){if(!this.selectedValue){var _t=this.parsedOptions[0];_t&&(this.selectedValue=_t.value);}}},{key:"onSelect",value:function onSelect(t){"heading"!==this.type||o(t)?(this.selectedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t,bubbles:!0,composed:!0}))):console.warn("[nile-rte-select] Ignoring invalid heading value: ".concat(t));}},{key:"connectedCallback",value:function connectedCallback(){_superPropGet(a,"connectedCallback",this,3)([]),this.injectLocalStyles();}},{key:"injectLocalStyles",value:function injectLocalStyles(){if(this.querySelector("style[data-rte-select-style]"))return;var t=document.createElement("style");t.setAttribute("data-rte-select-style","true"),t.textContent="\n nile-menu.rte-align-menu::part(menu__items-wrapper) {\n display: flex;\n }\n nile-menu.rte-align-menu,\n nile-menu.rte-default-menu {\n margin-top: 0px;\n }\n nile-button.rte-align-trigger::part(base),\n nile-button.rte-default-trigger::part(base) {\n min-width: 32px;\n height: 32px;\n padding: 0px 6px;\n box-shadow: none;\n }\n ",this.insertBefore(t,this.firstChild);}},{key:"render",value:function render(){var _this3=this;var t=this.parsedOptions;this.ensureDefault();var e=t.find(function(t){return t.value===_this3.selectedValue;});if("align"===this.type){var _i=e!==null&&e!==void 0&&e.icon?n(_templateObject||(_templateObject=_taggedTemplateLiteral(["<nile-icon name=\"","\"></nile-icon>"])),e.icon):this.label||"Align";return n(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n <nile-dropdown class=\"rte-align-dd\">\n <nile-button slot=\"trigger\" variant=\"tertiary\" class=\"rte-align-trigger\">\n ","\n </nile-button>\n <nile-menu class=\"rte-align-menu\">\n ","\n </nile-menu>\n </nile-dropdown>\n "])),_i,t.map(function(t){return n(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n <nile-menu-item\n class=\"rte-align-item\"\n ?active=","\n @click=",">\n <nile-icon name=\"","\"></nile-icon>\n </nile-menu-item>\n "])),t.value===_this3.selectedValue,function(){return _this3.onSelect(t.value);},t.icon);}));}if("font"===this.type){var _i2=(e===null||e===void 0?void 0:e.label)||this.label||"Font";return n(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n <nile-dropdown class=\"rte-default-dd\">\n <nile-button\n slot=\"trigger\"\n variant=\"tertiary\"\n class=\"rte-default-trigger\"\n style=\"font-family: ","\">\n "," <nile-icon name=\"arrowdown\"></nile-icon>\n </nile-button>\n <nile-menu class=\"rte-default-menu\">\n ","\n </nile-menu>\n </nile-dropdown>\n "])),(e===null||e===void 0?void 0:e.value)||"inherit",_i2,t.map(function(t){return n(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["\n <nile-menu-item\n style=\"font-family: ","\"\n ?active=","\n @click=",">\n ","\n </nile-menu-item>\n "])),t.value,t.value===_this3.selectedValue,function(){return _this3.onSelect(t.value);},t.label);}));}var i=(e===null||e===void 0?void 0:e.label)||this.label||"Select";return n(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["\n <nile-dropdown class=\"rte-default-dd\">\n <nile-button slot=\"trigger\" variant=\"tertiary\" class=\"rte-default-trigger\">\n "," <nile-icon name=\"arrowdown\"></nile-icon>\n </nile-button>\n <nile-menu class=\"rte-default-menu\">\n ","\n </nile-menu>\n </nile-dropdown>\n "])),i,t.map(function(t){return n(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["\n <nile-menu-item\n ?active=","\n @click=",">\n ","\n </nile-menu-item>\n "])),t.value===_this3.selectedValue,function(){return _this3.onSelect(t.value);},t.label);}));}}]);}(e);t([i({type:String})],a.prototype,"type",void 0),t([i({type:String})],a.prototype,"options",void 0),t([i({attribute:!1})],a.prototype,"optionsObj",void 0),t([i({type:String})],a.prototype,"label",void 0),t([l()],a.prototype,"selectedValue",void 0),a=t([r("nile-rte-select")],a);}};});
2
- //# sourceMappingURL=nile-rte-select.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nile-rte-select.cjs.js","sources":["../../../src/nile-rich-text-editor/nile-rte-select.ts"],"sourcesContent":["// nile-rte-select.ts\nimport { LitElement, html } from 'lit';\nimport { customElement, property, state } from 'lit/decorators.js';\n\ntype HeadingTag = 'p' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';\ntype GenericOption = { value: string; label?: string; icon?: string };\ntype HeadingOption = { value: HeadingTag; label?: string; icon?: string };\ntype NormalizedOption = { value: string; label: string; icon?: string };\n\nconst HEADING_ALLOWLIST: ReadonlySet<HeadingTag> = new Set([\n 'p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6'\n]);\n\nfunction isHeadingTag(v: string): v is HeadingTag {\n return HEADING_ALLOWLIST.has(v as HeadingTag);\n}\n\n@customElement('nile-rte-select')\nexport class NileRteSelect extends LitElement {\n protected createRenderRoot() { return this; }\n\n /** 'heading' | 'font' | 'align' */\n @property({ type: String }) type = '';\n\n /** JSON: [{ value, label?, icon? }, ...] (attribute-based; runtime-validated) */\n @property({ type: String }) options = '[]';\n\n /** Programmatic options (preferred for TS safety). */\n @property({ attribute: false })\n optionsObj?: Array<GenericOption | HeadingOption>;\n\n /** Fallback label for trigger (e.g., \"Align\") */\n @property({ type: String }) label = '';\n\n @state() private selectedValue = '';\n\n private mapAlignIcon(v: string) {\n const map: Record<string,string> = {\n left: 'align-left',\n center: 'align-center',\n right: 'align-right',\n justify: 'nile-justify'\n };\n return map[v] || 'align-left';\n }\n\n private get parsedOptions(): NormalizedOption[] {\n // Prefer programmatic options if present (gives TS compile-time checks)\n const source: unknown = this.optionsObj ?? this.options;\n\n const rawArray: any[] = (() => {\n if (Array.isArray(source)) return source;\n try { return JSON.parse(String(source)); } catch { return []; }\n })();\n\n // Normalize to consistent shape\n let items: NormalizedOption[] = rawArray.map((o: any) => {\n const value: string = o?.value ?? o;\n const label: string = o?.label ?? o?.value ?? o;\n const icon: string | undefined =\n o?.icon ?? (this.type === 'align' ? this.mapAlignIcon(String(value)) : undefined);\n return { value, label, icon };\n });\n\n // If type is heading, enforce allowlist (runtime validation)\n if (this.type === 'heading') {\n const before = items.length;\n items = items.filter(i => isHeadingTag(i.value));\n if (items.length !== before) {\n }\n // If current selection is invalid for heading, reset\n if (this.selectedValue && !isHeadingTag(this.selectedValue)) {\n this.selectedValue = '';\n }\n }\n\n return items;\n }\n\n private ensureDefault() {\n if (!this.selectedValue) {\n const first = this.parsedOptions[0];\n if (first) this.selectedValue = first.value;\n }\n }\n\n private onSelect(value: string) {\n if (this.type === 'heading' && !isHeadingTag(value)) {\n console.warn(`[nile-rte-select] Ignoring invalid heading value: ${value}`);\n return;\n }\n this.selectedValue = value;\n this.dispatchEvent(new CustomEvent('change', {\n detail: value, bubbles: true, composed: true\n }));\n }\n\n connectedCallback(): void {\n super.connectedCallback();\n this.injectLocalStyles();\n }\n\n private injectLocalStyles() {\n if (this.querySelector('style[data-rte-select-style]')) return;\n\n const style = document.createElement('style');\n style.setAttribute('data-rte-select-style', 'true');\n style.textContent = `\n nile-menu.rte-align-menu::part(menu__items-wrapper) {\n display: flex;\n }\n nile-menu.rte-align-menu,\n nile-menu.rte-default-menu {\n margin-top: 0px;\n }\n nile-button.rte-align-trigger::part(base),\n nile-button.rte-default-trigger::part(base) {\n min-width: 32px;\n height: 32px;\n padding: 0px 6px;\n box-shadow: none;\n }\n `;\n this.insertBefore(style, this.firstChild);\n }\n\n render() {\n const opts = this.parsedOptions;\n this.ensureDefault();\n const current = opts.find(o => o.value === this.selectedValue);\n\n // ► Align: icon-only items + icon trigger\n if (this.type === 'align') {\n const trigger = current?.icon\n ? html`<nile-icon name=\"${current.icon}\"></nile-icon>`\n : (this.label || 'Align');\n\n return html`\n <nile-dropdown class=\"rte-align-dd\">\n <nile-button slot=\"trigger\" variant=\"tertiary\" class=\"rte-align-trigger\">\n ${trigger}\n </nile-button>\n <nile-menu class=\"rte-align-menu\">\n ${opts.map(o => html`\n <nile-menu-item\n class=\"rte-align-item\"\n ?active=${o.value === this.selectedValue}\n @click=${() => this.onSelect(o.value)}>\n <nile-icon name=\"${o.icon}\"></nile-icon>\n </nile-menu-item>\n `)}\n </nile-menu>\n </nile-dropdown>\n `;\n }\n\n // ► Font: show labels, preview fonts in items and trigger\n if (this.type === 'font') {\n const triggerText = current?.label || this.label || 'Font';\n return html`\n <nile-dropdown class=\"rte-default-dd\">\n <nile-button\n slot=\"trigger\"\n variant=\"tertiary\"\n class=\"rte-default-trigger\"\n style=\"font-family: ${current?.value || 'inherit'}\">\n ${triggerText} <nile-icon name=\"arrowdown\"></nile-icon>\n </nile-button>\n <nile-menu class=\"rte-default-menu\">\n ${opts.map(o => html`\n <nile-menu-item\n style=\"font-family: ${o.value}\"\n ?active=${o.value === this.selectedValue}\n @click=${() => this.onSelect(o.value)}>\n ${o.label}\n </nile-menu-item>\n `)}\n </nile-menu>\n </nile-dropdown>\n `;\n }\n\n // ► Default (e.g., heading): text items; heading values are validated already\n const triggerText = current?.label || this.label || 'Select';\n return html`\n <nile-dropdown class=\"rte-default-dd\">\n <nile-button slot=\"trigger\" variant=\"tertiary\" class=\"rte-default-trigger\">\n ${triggerText} <nile-icon name=\"arrowdown\"></nile-icon>\n </nile-button>\n <nile-menu class=\"rte-default-menu\">\n ${opts.map(o => html`\n <nile-menu-item\n ?active=${o.value === this.selectedValue}\n @click=${() => this.onSelect(o.value)}>\n ${o.label}\n </nile-menu-item>\n `)}\n </nile-menu>\n </nile-dropdown>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-rte-select': NileRteSelect;\n }\n}\n"],"names":["isHeadingTag","v","HEADING_ALLOWLIST","has","setters","_tslib","Set","NileRteSelect","a","constructor","this","type","options","label","selectedValue","_this","_inherits","_e","_createClass","key","value","createRenderRoot","mapAlignIcon","left","center","right","justify","get","parsedOptions","source","optionsObj","items","Array","isArray","JSON","parse","String","_unused","map","o","icon","undefined","length","filter","i","ensureDefault","first","onSelect","dispatchEvent","CustomEvent","detail","bubbles","composed","console","warn","connectedCallback","super","injectLocalStyles","querySelector","style","document","createElement","setAttribute","textContent","insertBefore","firstChild","render","opts","current","find","trigger","html","_templateObject","_taggedTemplateLiteral","_templateObject2","_templateObject3","triggerText","_templateObject4","_templateObject5","_templateObject6","_templateObject7","__decorate","LitElement","property","prototype","attribute","state","customElement"],"mappings":"i2GAaA,QAASA,CAAAA,CAAaC,CAAAA,CAAAA,CAAAA,CACpB,MAAOC,CAAAA,CAAAA,CAAkBC,GAAIF,CAAAA,CAAAA,CAC/B,EAGO,OAAAG,OAAA,WAAAC,MAAA,sNATDH,CAAAA,CAA6C,GAAII,CAAAA,GAAAA,CAAI,CACzD,GAAK,CAAA,IAAA,CAAM,IAAM,CAAA,IAAA,CAAM,IAAM,CAAA,IAAA,CAAM,IAGrC,CAAA,CAAA,CAKaC,4BAAN,SAAAC,EAAA,CAAAC,KAAAA,KAAAA,CAAAA,eAAAA,MAAAA,CAAAA,qCAIuBC,KAAAA,CAAIC,IAAAA,CAAG,EAGPD,CAAAA,KAAAA,CAAOE,OAAG,CAAA,IAAA,CAOVF,KAAAA,CAAKG,KAAAA,CAAG,EAEnBH,CAAAA,KAAAA,CAAaI,cAAG,EAuKlC,QAAAC,KAAA,EAtLWC,SAAA,CAAAR,CAAA,CAAAS,EAAA,SAAAC,YAAA,CAAAV,CAAA,GAAAW,GAAA,oBAAAC,KAAA,UAAAC,gBAAAA,CAAAA,CAAAA,CAAqB,MAAOX,KAAO,EAiBrC,GAAAS,GAAA,gBAAAC,KAAA,UAAAE,YAAAA,CAAarB,CAAAA,CAAAA,CAOnB,MANmC,CACjCsB,IAAM,CAAA,YAAA,CACNC,MAAQ,CAAA,cAAA,CACRC,MAAO,aACPC,CAAAA,OAAAA,CAAS,cAEAzB,CAAAA,CAAAA,CAAAA,CAAAA,EAAM,YAClB,EAED,GAAAkB,GAAA,iBAAAQ,GAAA,UAAAA,IAAA,CAAYC,KAAAA,gBAAAA,CAAAA,MAAAA,MAEV,GAAMC,CAAAA,CAAAA,EAAAA,gBAAAA,CAAkBnB,IAAKoB,CAAAA,UAAAA,UAAAA,gBAAAA,UAAAA,gBAAAA,CAA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AoB7B,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAA6E,SAAA,CAAA,MAAA,CAAA,IAAA,EAGVH,CAAAA,CAAAA,CAAAA,CAAA,CAA3BE,CAAS,CAAA,CAAExE,IAAMyB,CAAAA,MAAAA,CAAAA,CAAAA,CAAAA,CAAyB7B,CAAA6E,CAAAA,SAAAA,CAAA,cAAA,EAI3CH,CAAAA,CAAAA,CAAAA,CAAA,CADCE,CAAAA,CAAS,CAAEE,SAAAA,CAAAA,CAAW,KAC2B9E,CAAA6E,CAAAA,SAAAA,CAAA,YAAA,CAAA,IAAA,EAAA,CAAA,CAGtBH,CAAA,CAAA,CAA3BE,EAAS,CAAExE,IAAAA,CAAMyB,MAAqB7B,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAA6E,SAAA,CAAA,OAAA,CAAA,IAAA,IAEtBH,CAAA,CAAA,CAAhBK,CAAmC/E,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAA6E,SAAA,CAAA,eAAA,CAAA,IAAA,IAhBzB7E,CAAa0E,CAAAA,CAAAA,CAAA,CADzBM,CAAAA,CAAc,iBACFhF,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA"}
@@ -1,52 +0,0 @@
1
- import{__decorate as t}from"tslib";import{LitElement as e,html as n}from"lit";import{property as i,state as l,customElement as r}from"lit/decorators.js";const s=new Set(["p","h1","h2","h3","h4","h5","h6"]);function o(t){return s.has(t)}let a=class extends e{constructor(){super(...arguments),this.type="",this.options="[]",this.label="",this.selectedValue=""}createRenderRoot(){return this}mapAlignIcon(t){return{left:"align-left",center:"align-center",right:"align-right",justify:"nile-justify"}[t]||"align-left"}get parsedOptions(){const t=this.optionsObj??this.options;let e=(()=>{if(Array.isArray(t))return t;try{return JSON.parse(String(t))}catch{return[]}})().map((t=>{const e=t?.value??t;return{value:e,label:t?.label??t?.value??t,icon:t?.icon??("align"===this.type?this.mapAlignIcon(String(e)):void 0)}}));if("heading"===this.type){e.length;e=e.filter((t=>o(t.value))),e.length,this.selectedValue&&!o(this.selectedValue)&&(this.selectedValue="")}return e}ensureDefault(){if(!this.selectedValue){const t=this.parsedOptions[0];t&&(this.selectedValue=t.value)}}onSelect(t){"heading"!==this.type||o(t)?(this.selectedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t,bubbles:!0,composed:!0}))):console.warn(`[nile-rte-select] Ignoring invalid heading value: ${t}`)}connectedCallback(){super.connectedCallback(),this.injectLocalStyles()}injectLocalStyles(){if(this.querySelector("style[data-rte-select-style]"))return;const t=document.createElement("style");t.setAttribute("data-rte-select-style","true"),t.textContent="\n nile-menu.rte-align-menu::part(menu__items-wrapper) {\n display: flex;\n }\n nile-menu.rte-align-menu,\n nile-menu.rte-default-menu {\n margin-top: 0px;\n }\n nile-button.rte-align-trigger::part(base),\n nile-button.rte-default-trigger::part(base) {\n min-width: 32px;\n height: 32px;\n padding: 0px 6px;\n box-shadow: none;\n }\n ",this.insertBefore(t,this.firstChild)}render(){const t=this.parsedOptions;this.ensureDefault();const e=t.find((t=>t.value===this.selectedValue));if("align"===this.type){const i=e?.icon?n`<nile-icon name="${e.icon}"></nile-icon>`:this.label||"Align";return n`
2
- <nile-dropdown class="rte-align-dd">
3
- <nile-button slot="trigger" variant="tertiary" class="rte-align-trigger">
4
- ${i}
5
- </nile-button>
6
- <nile-menu class="rte-align-menu">
7
- ${t.map((t=>n`
8
- <nile-menu-item
9
- class="rte-align-item"
10
- ?active=${t.value===this.selectedValue}
11
- @click=${()=>this.onSelect(t.value)}>
12
- <nile-icon name="${t.icon}"></nile-icon>
13
- </nile-menu-item>
14
- `))}
15
- </nile-menu>
16
- </nile-dropdown>
17
- `}if("font"===this.type){const i=e?.label||this.label||"Font";return n`
18
- <nile-dropdown class="rte-default-dd">
19
- <nile-button
20
- slot="trigger"
21
- variant="tertiary"
22
- class="rte-default-trigger"
23
- style="font-family: ${e?.value||"inherit"}">
24
- ${i} <nile-icon name="arrowdown"></nile-icon>
25
- </nile-button>
26
- <nile-menu class="rte-default-menu">
27
- ${t.map((t=>n`
28
- <nile-menu-item
29
- style="font-family: ${t.value}"
30
- ?active=${t.value===this.selectedValue}
31
- @click=${()=>this.onSelect(t.value)}>
32
- ${t.label}
33
- </nile-menu-item>
34
- `))}
35
- </nile-menu>
36
- </nile-dropdown>
37
- `}const i=e?.label||this.label||"Select";return n`
38
- <nile-dropdown class="rte-default-dd">
39
- <nile-button slot="trigger" variant="tertiary" class="rte-default-trigger">
40
- ${i} <nile-icon name="arrowdown"></nile-icon>
41
- </nile-button>
42
- <nile-menu class="rte-default-menu">
43
- ${t.map((t=>n`
44
- <nile-menu-item
45
- ?active=${t.value===this.selectedValue}
46
- @click=${()=>this.onSelect(t.value)}>
47
- ${t.label}
48
- </nile-menu-item>
49
- `))}
50
- </nile-menu>
51
- </nile-dropdown>
52
- `}};t([i({type:String})],a.prototype,"type",void 0),t([i({type:String})],a.prototype,"options",void 0),t([i({attribute:!1})],a.prototype,"optionsObj",void 0),t([i({type:String})],a.prototype,"label",void 0),t([l()],a.prototype,"selectedValue",void 0),a=t([r("nile-rte-select")],a);
@@ -1,2 +0,0 @@
1
- function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js"],function(_export,_context){"use strict";var t,r,e,o,i;function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_lit){r=_lit.LitElement;},function(_litDecoratorsJs){e=_litDecoratorsJs.property;o=_litDecoratorsJs.customElement;}],execute:function execute(){i=/*#__PURE__*/function(_r){function i(){var _this;_classCallCheck(this,i);_this=_callSuper(this,i,arguments),_this.name="",_this.label="";return _this;}_inherits(i,_r);return _createClass(i,[{key:"createRenderRoot",value:function createRenderRoot(){return this;}},{key:"shouldUpdate",value:function shouldUpdate(){return!1;}}]);}(r);t([e({type:String})],i.prototype,"name",void 0),t([e({type:String})],i.prototype,"label",void 0),i=t([o("nile-rte-toolbar-item")],i);}};});
2
- //# sourceMappingURL=nile-rte-toolbar-item.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nile-rte-toolbar-item.cjs.js","sources":["../../../src/nile-rich-text-editor/nile-rte-toolbar-item.ts"],"sourcesContent":["import { LitElement, html } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\n\n@customElement('nile-rte-toolbar-item')\nexport class NileRteToolbarItem extends LitElement {\n protected createRenderRoot() { return this; }\n protected shouldUpdate() { return false; }\n\n @property({ type: String }) name = '';\n @property({ type: String }) label = '';\n\n}\ndeclare global { interface HTMLElementTagNameMap { 'nile-rte-toolbar-item': NileRteToolbarItem; } }\n"],"names":["NileRteToolbarItem","i","constructor","this","name","label","_this","_inherits","_r","_createClass","key","value","createRenderRoot","shouldUpdate","__decorate","LitElement","property","type","String","prototype","customElement"],"mappings":"gyFAIaA,CAAAA,uBAAAA,EAAAA,EAAN,SAAAC,EAAA,CAAAC,KAAAA,KAAAA,CAAAA,eAAAA,MAAAA,CAAAA,mCAIuBC,EAAAA,KAAAA,CAAIC,IAAG,CAAA,EAAA,CACPD,KAAAA,CAAKE,KAAAA,CAAG,EAErC,QAAAC,KAAA,EANWC,SAAA,CAAAN,CAAA,CAAAO,EAAA,SAAAC,YAAA,CAAAR,CAAA,GAAAS,GAAA,oBAAAC,KAAA,UAAAC,gBAAAA,CAAAA,CAAAA,CAAqB,MAAOT,KAAO,EACnC,GAAAO,GAAA,gBAAAC,KAAA,UAAAE,YAAAA,CAAAA,EAAiB,MAAO,CAAA,CAAQ,EAEdC,MAJUC,CAAAA,EAIVD,CAAAA,CAAA,CAA3BE,CAAAA,CAAS,CAAEC,IAAAA,CAAMC,MAAoBlB,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAmB,SAAA,CAAA,MAAA,CAAA,IAAA,EACVL,CAAAA,CAAAA,CAAAA,CAAA,CAA3BE,CAAS,CAAA,CAAEC,IAAMC,CAAAA,MAAAA,CAAAA,CAAAA,CAAAA,CAAqBlB,CAAAmB,CAAAA,SAAAA,CAAA,OAAA,CAAA,IAAA,EAAA,CAAA,CAL5BnB,CAAkBc,CAAAA,CAAAA,CAAA,CAD9BM,CAAAA,CAAc,uBACFpB,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA"}
@@ -1 +0,0 @@
1
- import{__decorate as t}from"tslib";import{LitElement as r}from"lit";import{property as e,customElement as o}from"lit/decorators.js";let i=class extends r{constructor(){super(...arguments),this.name="",this.label=""}createRenderRoot(){return this}shouldUpdate(){return!1}};t([e({type:String})],i.prototype,"name",void 0),t([e({type:String})],i.prototype,"label",void 0),i=t([o("nile-rte-toolbar-item")],i);
@@ -1,2 +0,0 @@
1
- function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js"],function(_export,_context){"use strict";var t,r,e,o;function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_lit){r=_lit.LitElement;},function(_litDecoratorsJs){e=_litDecoratorsJs.customElement;}],execute:function execute(){o=/*#__PURE__*/function(_r){function o(){_classCallCheck(this,o);return _callSuper(this,o,arguments);}_inherits(o,_r);return _createClass(o,[{key:"createRenderRoot",value:function createRenderRoot(){return this;}},{key:"shouldUpdate",value:function shouldUpdate(){return!1;}}]);}(r);o=t([e("nile-rte-toolbar")],o);}};});
2
- //# sourceMappingURL=nile-rte-toolbar.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nile-rte-toolbar.cjs.js","sources":["../../../src/nile-rich-text-editor/nile-rte-toolbar.ts"],"sourcesContent":["import { LitElement } from 'lit';\nimport { customElement } from 'lit/decorators.js';\n\n@customElement('nile-rte-toolbar')\nexport class NileRteToolbar extends LitElement {\n protected createRenderRoot() { return this; } // Light DOM\n protected shouldUpdate() { return false; } // inert, keep children\n}\ndeclare global { interface HTMLElementTagNameMap { 'nile-rte-toolbar': NileRteToolbar; } }"],"names":["NileRteToolbar","createRenderRoot","this","key","value","shouldUpdate","LitElement","__decorate","customElement"],"mappings":"kwFAIaA,CAAAA,uBAAAA,EAAAA,WAAAA,EAAAA,EAAAA,eAAAA,MAAAA,CAAAA,SAAAA,UAAAA,MAAAA,CAAAA,CAAAA,SAAAA,GAAAA,SAAAA,CAAAA,CAAAA,CAAAA,EAAAA,SAAAA,YAAAA,CAAAA,CAAAA,GAAAA,GAAAA,oBAAAA,KAAAA,CACD,SAAAC,gBAAAA,CAAAA,CAAAA,CAAqB,MAAOC,KAAO,EACnC,GAAAC,GAAA,gBAAAC,KAAA,UAAAC,YAAAA,CAAAA,CAAAA,CAAiB,MAAO,CAAA,CAAQ,QAFRC,CAAAA,EAAvBN,CAAcO,CAAAA,CAAAA,CAAA,CAD1BC,CAAAA,CAAc,kBACFR,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA"}
@@ -1 +0,0 @@
1
- import{__decorate as t}from"tslib";import{LitElement as r}from"lit";import{customElement as e}from"lit/decorators.js";let o=class extends r{createRenderRoot(){return this}shouldUpdate(){return!1}};o=t([e("nile-rte-toolbar")],o);
@@ -1,2 +0,0 @@
1
- System.register([],function(_export,_context){"use strict";function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}function n(n,t){for(;n&&n!==t;){var _n;if(n instanceof HTMLElement){var _t=getComputedStyle(n).display;if(n.tagName.match(/^(P|DIV|H1|H2|H3|H4|H5|H6|LI)$/)||"block"===_t||"list-item"===_t)return n;}n=((_n=n)===null||_n===void 0?void 0:_n.parentNode)||null;}return t;}function t(n){for(;n&&!(n instanceof HTMLElement);)n=n.parentNode;return n;}function o(n){var t=n.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/i);if(!t)return"#000000";return"#".concat(Number(t[1]).toString(16).padStart(2,"0")).concat(Number(t[2]).toString(16).padStart(2,"0")).concat(Number(t[3]).toString(16).padStart(2,"0"));}function c(n,t,o){var c=document.createElement(t);o&&Object.entries(o).forEach(function(_ref){var _ref2=_slicedToArray(_ref,2),n=_ref2[0],t=_ref2[1];return c.setAttribute(n,t);});try{n.surroundContents(c);}catch(_unused){var _t2=n.extractContents();c.appendChild(_t2),n.insertNode(c);}}function e(n,t,o){var e=document.getSelection();if(!e||0===e.rangeCount)return;var u=e.getRangeAt(0);if(u.collapsed){var _n2=document.createElement(t);o&&Object.entries(o).forEach(function(_ref3){var _ref4=_slicedToArray(_ref3,2),t=_ref4[0],o=_ref4[1];return _n2.setAttribute(t,o);}),_n2.appendChild(document.createTextNode("​")),u.insertNode(_n2);var _c=document.createRange();return _c.setStart(_n2.firstChild,1),_c.collapse(!0),e.removeAllRanges(),void e.addRange(_c);}var s=u.startContainer,r=null;for(;s&&s!==n;){if(s instanceof HTMLElement&&s.tagName.toLowerCase()===t){r=s;break;}s=s.parentNode;}r?function(n){var t=n.parentNode;if(t){for(;n.firstChild;)t.insertBefore(n.firstChild,n);t.removeChild(n);}}(r):c(u,t,o);}function u(t,o){var c=document.getSelection();if(!c||0===c.rangeCount)return;var e=n(c.getRangeAt(0).startContainer,t);if(!e)return;if(e.tagName.toLowerCase()===o)return;var u=document.createElement(o);for(;e.firstChild;)u.appendChild(e.firstChild);e.replaceWith(u);var s=document.createRange();s.selectNodeContents(u),s.collapse(!0),c.removeAllRanges(),c.addRange(s);}function s(t,o){var c=document.getSelection();if(!c||0===c.rangeCount)return;var e=n(c.getRangeAt(0).startContainer,t);e&&(e.style.textAlign="justify"===o?"justify":o);}function r(n,t){var o=document.getSelection();if(!o||0===o.rangeCount)return;var e=o.getRangeAt(0);if(e.collapsed){var _n3=document.createElement("span");_n3.style.fontFamily=t,_n3.appendChild(document.createTextNode("​")),e.insertNode(_n3);var _c2=document.createRange();return _c2.setStart(_n3.firstChild,1),_c2.collapse(!0),o.removeAllRanges(),void o.addRange(_c2);}c(e,"span",{style:"font-family:".concat(t)});}function i(n,t){var o=window.getSelection();if(!o||0===o.rangeCount)return;var c=o.getRangeAt(0);if(!n.contains(c.commonAncestorContainer)||c.collapsed)return;var e=document.createElement("span");e.style.backgroundColor=t,e.appendChild(c.extractContents()),c.insertNode(e);var u=document.createRange();u.setStartAfter(e),u.collapse(!0),o.removeAllRanges(),o.addRange(u);}function f(n,t){var o=document.getSelection();if(!o||0===o.rangeCount)return;var e=o.getRangeAt(0);if(e.collapsed){var _n4=document.createElement("span");_n4.style.color=t,_n4.appendChild(document.createTextNode("​")),e.insertNode(_n4);var _c3=document.createRange();return _c3.setStart(_n4.firstChild,1),_c3.collapse(!0),o.removeAllRanges(),void o.addRange(_c3);}c(e,"span",{style:"color:".concat(t)});}function d(n,t){var _u;var o=document.getSelection();if(!o||0===o.rangeCount)return;var c=o.getRangeAt(0);var e=c.startContainer,u=null;for(;e&&e!==n;){if(e instanceof HTMLAnchorElement){u=e;break;}e=e.parentNode;}var s=t!==null&&t!==void 0?t:"undefined"!=typeof window&&window.prompt("Enter URL",((_u=u)===null||_u===void 0?void 0:_u.href)||"https://")||"";if(!s)return;if(u)return void(u.href=s);if(c.collapsed){var _n5=document.createElement("a");_n5.href=s,_n5.textContent=s,c.insertNode(_n5);var _t3=document.createRange();return _t3.setStartAfter(_n5),_t3.collapse(!0),o.removeAllRanges(),void o.addRange(_t3);}var r=document.createElement("a");r.href=s;try{c.surroundContents(r);}catch(_unused2){var _n6=c.extractContents();r.appendChild(_n6),c.insertNode(r);}}_export({a:u,b:r,c:i,d:f,e:n,i:d,n:t,r:o,s:s,t:e});return{setters:[],execute:function execute(){}};});
2
- //# sourceMappingURL=utils.cjs.js.map