@aquera/nile-elements 0.1.36-beta-1.2 → 0.1.36-beta-1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (312) hide show
  1. package/README.md +3 -0
  2. package/dist/_commonjsHelpers-e8f8776f.cjs.js +2 -0
  3. package/dist/_commonjsHelpers-e8f8776f.cjs.js.map +1 -0
  4. package/dist/_commonjsHelpers-f94d783e.esm.js +1 -0
  5. package/dist/axe.min-61450170.cjs.js +12 -0
  6. package/dist/axe.min-61450170.cjs.js.map +1 -0
  7. package/dist/axe.min-640ded4a.esm.js +12 -0
  8. package/dist/fixture-205f11fa.cjs.js +395 -0
  9. package/dist/fixture-205f11fa.cjs.js.map +1 -0
  10. package/dist/fixture-2b5b3aba.esm.js +569 -0
  11. package/dist/{fixture-df8b52d7.esm.js → fixture-76051ef1.esm.js} +1 -1
  12. package/dist/fixture-7bfb866e.cjs.js +395 -0
  13. package/dist/fixture-7bfb866e.cjs.js.map +1 -0
  14. package/dist/{fixture-d5b55278.cjs.js → fixture-948ae33c.cjs.js} +2 -2
  15. package/dist/{fixture-d5b55278.cjs.js.map → fixture-948ae33c.cjs.js.map} +1 -1
  16. package/dist/fixture-e6fdfbfa.esm.js +569 -0
  17. package/dist/lit-html-39a6718c.esm.js +6 -0
  18. package/dist/lit-html-9b3af046.cjs.js +6 -0
  19. package/dist/lit-html-9b3af046.cjs.js.map +1 -0
  20. package/dist/nile-accordion/nile-accordian.test.cjs.js +1 -1
  21. package/dist/nile-accordion/nile-accordian.test.esm.js +1 -1
  22. package/dist/nile-auto-complete/nile-auto-complete.test.cjs.js +1 -1
  23. package/dist/nile-auto-complete/nile-auto-complete.test.esm.js +1 -1
  24. package/dist/nile-avatar/nile-avatar.test.cjs.js +1 -1
  25. package/dist/nile-avatar/nile-avatar.test.esm.js +1 -1
  26. package/dist/nile-badge/nile-badge.test.cjs.js +1 -1
  27. package/dist/nile-badge/nile-badge.test.esm.js +1 -1
  28. package/dist/nile-button/nile-button.test.cjs.js +1 -1
  29. package/dist/nile-button/nile-button.test.esm.js +1 -1
  30. package/dist/nile-button-toggle-group/nile-button-toggle-group.test.cjs.js +1 -1
  31. package/dist/nile-button-toggle-group/nile-button-toggle-group.test.esm.js +1 -1
  32. package/dist/nile-calendar/nile-calendar.test.cjs.js +1 -1
  33. package/dist/nile-calendar/nile-calendar.test.esm.js +1 -1
  34. package/dist/nile-card/nile-card.test.cjs.js +1 -1
  35. package/dist/nile-card/nile-card.test.esm.js +1 -1
  36. package/dist/nile-checkbox/nile-checkbox.test.cjs.js +1 -1
  37. package/dist/nile-checkbox/nile-checkbox.test.esm.js +1 -1
  38. package/dist/nile-chip/nile-chip.test.cjs.js +1 -1
  39. package/dist/nile-chip/nile-chip.test.esm.js +1 -1
  40. package/dist/nile-dialog/nile-dialog.test.cjs.js +1 -1
  41. package/dist/nile-dialog/nile-dialog.test.esm.js +1 -1
  42. package/dist/nile-drawer/nile-drawer.test.cjs.js +1 -1
  43. package/dist/nile-drawer/nile-drawer.test.esm.js +1 -1
  44. package/dist/nile-dropdown/nile-dropdown.test.cjs.js +1 -1
  45. package/dist/nile-dropdown/nile-dropdown.test.esm.js +1 -1
  46. package/dist/nile-empty-state/nile-empty-state.test.cjs.js +1 -1
  47. package/dist/nile-empty-state/nile-empty-state.test.esm.js +1 -1
  48. package/dist/nile-error-message/nile-error-message.test.cjs.js +1 -1
  49. package/dist/nile-error-message/nile-error-message.test.esm.js +1 -1
  50. package/dist/nile-file-preview/index.cjs.js +2 -0
  51. package/dist/nile-file-preview/index.cjs.js.map +1 -0
  52. package/dist/nile-file-preview/index.esm.js +1 -0
  53. package/dist/nile-file-preview/nile-file-preview.cjs.js +2 -0
  54. package/dist/nile-file-preview/nile-file-preview.cjs.js.map +1 -0
  55. package/dist/nile-file-preview/nile-file-preview.css.cjs.js +2 -0
  56. package/dist/nile-file-preview/nile-file-preview.css.cjs.js.map +1 -0
  57. package/dist/nile-file-preview/nile-file-preview.css.esm.js +521 -0
  58. package/dist/nile-file-preview/nile-file-preview.esm.js +3 -0
  59. package/dist/nile-file-preview/nile-file-preview.template.cjs.js +2 -0
  60. package/dist/nile-file-preview/nile-file-preview.template.cjs.js.map +1 -0
  61. package/dist/nile-file-preview/nile-file-preview.template.esm.js +117 -0
  62. package/dist/nile-file-preview/nile-file-preview.test.cjs.js +2 -0
  63. package/dist/nile-file-preview/nile-file-preview.test.cjs.js.map +1 -0
  64. package/dist/nile-file-preview/nile-file-preview.test.esm.js +1 -0
  65. package/dist/nile-file-preview/types/file-preview.enums.cjs.js +2 -0
  66. package/dist/nile-file-preview/types/file-preview.enums.cjs.js.map +1 -0
  67. package/dist/nile-file-preview/types/file-preview.enums.esm.js +1 -0
  68. package/dist/nile-file-preview/types/file-preview.interface.cjs.js +2 -0
  69. package/dist/nile-file-preview/types/file-preview.interface.cjs.js.map +1 -0
  70. package/dist/nile-file-preview/types/file-preview.interface.esm.js +1 -0
  71. package/dist/nile-file-preview/types/index.cjs.js +2 -0
  72. package/dist/nile-file-preview/types/index.cjs.js.map +1 -0
  73. package/dist/nile-file-preview/types/index.esm.js +1 -0
  74. package/dist/nile-file-preview/utils/file-preview.util.cjs.js +2 -0
  75. package/dist/nile-file-preview/utils/file-preview.util.cjs.js.map +1 -0
  76. package/dist/nile-file-preview/utils/file-preview.util.esm.js +1 -0
  77. package/dist/nile-file-preview/utils/index.cjs.js +2 -0
  78. package/dist/nile-file-preview/utils/index.cjs.js.map +1 -0
  79. package/dist/nile-file-preview/utils/index.esm.js +1 -0
  80. package/dist/nile-file-upload/index.cjs.js +2 -0
  81. package/dist/nile-file-upload/index.cjs.js.map +1 -0
  82. package/dist/nile-file-upload/index.esm.js +1 -0
  83. package/dist/nile-file-upload/nile-file-upload.cjs.js +2 -0
  84. package/dist/nile-file-upload/nile-file-upload.cjs.js.map +1 -0
  85. package/dist/nile-file-upload/nile-file-upload.css.cjs.js +2 -0
  86. package/dist/nile-file-upload/nile-file-upload.css.cjs.js.map +1 -0
  87. package/dist/nile-file-upload/nile-file-upload.css.esm.js +535 -0
  88. package/dist/nile-file-upload/nile-file-upload.esm.js +3 -0
  89. package/dist/nile-file-upload/nile-file-upload.template.cjs.js +10 -0
  90. package/dist/nile-file-upload/nile-file-upload.template.cjs.js.map +1 -0
  91. package/dist/nile-file-upload/nile-file-upload.template.esm.js +155 -0
  92. package/dist/nile-file-upload/nile-file-upload.test.cjs.js +2 -0
  93. package/dist/nile-file-upload/nile-file-upload.test.cjs.js.map +1 -0
  94. package/dist/nile-file-upload/nile-file-upload.test.esm.js +1 -0
  95. package/dist/nile-file-upload/types/file-upload.enums.cjs.js +2 -0
  96. package/dist/nile-file-upload/types/file-upload.enums.cjs.js.map +1 -0
  97. package/dist/nile-file-upload/types/file-upload.enums.esm.js +1 -0
  98. package/dist/nile-file-upload/types/file-upload.type.cjs.js +2 -0
  99. package/dist/nile-file-upload/types/file-upload.type.cjs.js.map +1 -0
  100. package/dist/nile-file-upload/types/file-upload.type.esm.js +1 -0
  101. package/dist/nile-file-upload/types/index.cjs.js +2 -0
  102. package/dist/nile-file-upload/types/index.cjs.js.map +1 -0
  103. package/dist/nile-file-upload/types/index.esm.js +1 -0
  104. package/dist/nile-file-upload/utils/drag-drop.util.cjs.js +2 -0
  105. package/dist/nile-file-upload/utils/drag-drop.util.cjs.js.map +1 -0
  106. package/dist/nile-file-upload/utils/drag-drop.util.esm.js +1 -0
  107. package/dist/nile-file-upload/utils/file-validation.util.cjs.js +2 -0
  108. package/dist/nile-file-upload/utils/file-validation.util.cjs.js.map +1 -0
  109. package/dist/nile-file-upload/utils/file-validation.util.esm.js +1 -0
  110. package/dist/nile-filter-chip/nile-filter-chip.cjs.js +1 -1
  111. package/dist/nile-filter-chip/nile-filter-chip.cjs.js.map +1 -1
  112. package/dist/nile-filter-chip/nile-filter-chip.esm.js +12 -12
  113. package/dist/nile-filter-chip/nile-filter-chip.test.cjs.js +1 -1
  114. package/dist/nile-filter-chip/nile-filter-chip.test.cjs.js.map +1 -1
  115. package/dist/nile-filter-chip/nile-filter-chip.test.esm.js +16 -16
  116. package/dist/nile-form-group/nile-form-group.test.cjs.js +1 -1
  117. package/dist/nile-form-group/nile-form-group.test.esm.js +1 -1
  118. package/dist/nile-form-help-text/nile-form-help-text.test.cjs.js +1 -1
  119. package/dist/nile-form-help-text/nile-form-help-text.test.esm.js +1 -1
  120. package/dist/nile-hero/nile-hero.test.cjs.js +1 -1
  121. package/dist/nile-hero/nile-hero.test.esm.js +1 -1
  122. package/dist/nile-icon/nile-icon.test.cjs.js +1 -1
  123. package/dist/nile-icon/nile-icon.test.esm.js +1 -1
  124. package/dist/nile-input/nile-input.test.cjs.js +1 -1
  125. package/dist/nile-input/nile-input.test.esm.js +1 -1
  126. package/dist/nile-link/nile-link.test.cjs.js +1 -1
  127. package/dist/nile-link/nile-link.test.esm.js +1 -1
  128. package/dist/nile-loader/nile-loader.test.cjs.js +1 -1
  129. package/dist/nile-loader/nile-loader.test.esm.js +1 -1
  130. package/dist/nile-popover/nile-popover.test.cjs.js +1 -1
  131. package/dist/nile-popover/nile-popover.test.esm.js +1 -1
  132. package/dist/nile-popup/nile-popup.test.cjs.js +1 -1
  133. package/dist/nile-popup/nile-popup.test.esm.js +1 -1
  134. package/dist/nile-progress-bar/nile-progress-bar.test.cjs.js +1 -1
  135. package/dist/nile-progress-bar/nile-progress-bar.test.esm.js +1 -1
  136. package/dist/nile-radio/nile-radio.test.cjs.js +1 -1
  137. package/dist/nile-radio/nile-radio.test.esm.js +1 -1
  138. package/dist/nile-radio-group/nile-radio-group.test.cjs.js +1 -1
  139. package/dist/nile-radio-group/nile-radio-group.test.esm.js +1 -1
  140. package/dist/nile-rich-text-editor/index.cjs.js +2 -0
  141. package/dist/nile-rich-text-editor/index.cjs.js.map +1 -0
  142. package/dist/nile-rich-text-editor/index.esm.js +1 -0
  143. package/dist/nile-rich-text-editor/nile-rich-text-editor.cjs.js +10 -0
  144. package/dist/nile-rich-text-editor/nile-rich-text-editor.cjs.js.map +1 -0
  145. package/dist/nile-rich-text-editor/nile-rich-text-editor.css.cjs.js +2 -0
  146. package/dist/nile-rich-text-editor/nile-rich-text-editor.css.cjs.js.map +1 -0
  147. package/dist/nile-rich-text-editor/nile-rich-text-editor.css.esm.js +5 -0
  148. package/dist/nile-rich-text-editor/nile-rich-text-editor.esm.js +28 -0
  149. package/dist/nile-rich-text-editor/nile-rich-text-editor.template.cjs.js +2 -0
  150. package/dist/nile-rich-text-editor/nile-rich-text-editor.template.cjs.js.map +1 -0
  151. package/dist/nile-rich-text-editor/nile-rich-text-editor.template.esm.js +1 -0
  152. package/dist/nile-rich-text-editor/nile-rich-text-editor.test.cjs.js +2 -0
  153. package/dist/nile-rich-text-editor/nile-rich-text-editor.test.cjs.js.map +1 -0
  154. package/dist/nile-rich-text-editor/nile-rich-text-editor.test.esm.js +1 -0
  155. package/dist/nile-rich-text-editor/sub-components/nile-rich-text-editor.cjs.js +2 -0
  156. package/dist/nile-rich-text-editor/sub-components/nile-rich-text-editor.cjs.js.map +1 -0
  157. package/dist/nile-rich-text-editor/sub-components/nile-rich-text-editor.esm.js +1 -0
  158. package/dist/nile-rich-text-editor/types/index.cjs.js +2 -0
  159. package/dist/nile-rich-text-editor/types/index.cjs.js.map +1 -0
  160. package/dist/nile-rich-text-editor/types/index.esm.js +1 -0
  161. package/dist/nile-rich-text-editor/types/rich-text-editor.type.cjs.js +2 -0
  162. package/dist/nile-rich-text-editor/types/rich-text-editor.type.cjs.js.map +1 -0
  163. package/dist/nile-rich-text-editor/types/rich-text-editor.type.esm.js +1 -0
  164. package/dist/nile-rich-text-editor/utils/nile-rich-text-editor.utils.cjs.js +2 -0
  165. package/dist/nile-rich-text-editor/utils/nile-rich-text-editor.utils.cjs.js.map +1 -0
  166. package/dist/nile-rich-text-editor/utils/nile-rich-text-editor.utils.esm.js +1 -0
  167. package/dist/nile-select/nile-select.test.cjs.js +1 -1
  168. package/dist/nile-select/nile-select.test.esm.js +1 -1
  169. package/dist/nile-slide-toggle/nile-slide-toggle.test.cjs.js +1 -1
  170. package/dist/nile-slide-toggle/nile-slide-toggle.test.esm.js +1 -1
  171. package/dist/nile-tab-group/nile-tab-group.test.cjs.js +1 -1
  172. package/dist/nile-tab-group/nile-tab-group.test.esm.js +1 -1
  173. package/dist/nile-textarea/nile-textarea.test.cjs.js +1 -1
  174. package/dist/nile-textarea/nile-textarea.test.esm.js +1 -1
  175. package/dist/nile-tooltip/nile-tooltip.test.cjs.js +1 -1
  176. package/dist/nile-tooltip/nile-tooltip.test.esm.js +1 -1
  177. package/dist/src/nile-file-preview/index.d.ts +1 -0
  178. package/dist/src/nile-file-preview/index.js +2 -0
  179. package/dist/src/nile-file-preview/index.js.map +1 -0
  180. package/dist/src/nile-file-preview/nile-file-preview.css.d.ts +12 -0
  181. package/dist/src/nile-file-preview/nile-file-preview.css.js +533 -0
  182. package/dist/src/nile-file-preview/nile-file-preview.css.js.map +1 -0
  183. package/dist/src/nile-file-preview/nile-file-preview.d.ts +48 -0
  184. package/dist/src/nile-file-preview/nile-file-preview.js +149 -0
  185. package/dist/src/nile-file-preview/nile-file-preview.js.map +1 -0
  186. package/dist/src/nile-file-preview/nile-file-preview.template.d.ts +11 -0
  187. package/dist/src/nile-file-preview/nile-file-preview.template.js +144 -0
  188. package/dist/src/nile-file-preview/nile-file-preview.template.js.map +1 -0
  189. package/dist/src/nile-file-preview/nile-file-preview.test.d.ts +7 -0
  190. package/dist/src/nile-file-preview/nile-file-preview.test.js +30 -0
  191. package/dist/src/nile-file-preview/nile-file-preview.test.js.map +1 -0
  192. package/dist/src/nile-file-preview/types/file-preview.enums.d.ts +23 -0
  193. package/dist/src/nile-file-preview/types/file-preview.enums.js +28 -0
  194. package/dist/src/nile-file-preview/types/file-preview.enums.js.map +1 -0
  195. package/dist/src/nile-file-preview/types/file-preview.interface.d.ts +4 -0
  196. package/dist/src/nile-file-preview/types/file-preview.interface.js +2 -0
  197. package/dist/src/nile-file-preview/types/file-preview.interface.js.map +1 -0
  198. package/dist/src/nile-file-preview/types/index.d.ts +2 -0
  199. package/dist/src/nile-file-preview/types/index.js +3 -0
  200. package/dist/src/nile-file-preview/types/index.js.map +1 -0
  201. package/dist/src/nile-file-preview/types/nile-file-preview.enums.d.ts +26 -0
  202. package/dist/src/nile-file-preview/types/nile-file-preview.enums.js +31 -0
  203. package/dist/src/nile-file-preview/types/nile-file-preview.enums.js.map +1 -0
  204. package/dist/src/nile-file-preview/types/nile-file-preview.interface.d.ts +4 -0
  205. package/dist/src/nile-file-preview/types/nile-file-preview.interface.js +2 -0
  206. package/dist/src/nile-file-preview/types/nile-file-preview.interface.js.map +1 -0
  207. package/dist/src/nile-file-preview/utils/file-preview.util.d.ts +3 -0
  208. package/dist/src/nile-file-preview/utils/file-preview.util.js +29 -0
  209. package/dist/src/nile-file-preview/utils/file-preview.util.js.map +1 -0
  210. package/dist/src/nile-file-preview/utils/index.d.ts +1 -0
  211. package/dist/src/nile-file-preview/utils/index.js +2 -0
  212. package/dist/src/nile-file-preview/utils/index.js.map +1 -0
  213. package/dist/src/nile-file-preview/utils/nile-file-preview.util.d.ts +4 -0
  214. package/dist/src/nile-file-preview/utils/nile-file-preview.util.js +45 -0
  215. package/dist/src/nile-file-preview/utils/nile-file-preview.util.js.map +1 -0
  216. package/dist/src/nile-file-upload/index.d.ts +1 -0
  217. package/dist/src/nile-file-upload/index.js +2 -0
  218. package/dist/src/nile-file-upload/index.js.map +1 -0
  219. package/dist/src/nile-file-upload/nile-file-upload.css.d.ts +12 -0
  220. package/dist/src/nile-file-upload/nile-file-upload.css.js +547 -0
  221. package/dist/src/nile-file-upload/nile-file-upload.css.js.map +1 -0
  222. package/dist/src/nile-file-upload/nile-file-upload.d.ts +45 -0
  223. package/dist/src/nile-file-upload/nile-file-upload.js +148 -0
  224. package/dist/src/nile-file-upload/nile-file-upload.js.map +1 -0
  225. package/dist/src/nile-file-upload/nile-file-upload.template.d.ts +11 -0
  226. package/dist/src/nile-file-upload/nile-file-upload.template.js +163 -0
  227. package/dist/src/nile-file-upload/nile-file-upload.template.js.map +1 -0
  228. package/dist/src/nile-file-upload/nile-file-upload.test.d.ts +7 -0
  229. package/dist/src/nile-file-upload/nile-file-upload.test.js +30 -0
  230. package/dist/src/nile-file-upload/nile-file-upload.test.js.map +1 -0
  231. package/dist/src/nile-file-upload/types/file-upload.enums.d.ts +28 -0
  232. package/dist/src/nile-file-upload/types/file-upload.enums.js +35 -0
  233. package/dist/src/nile-file-upload/types/file-upload.enums.js.map +1 -0
  234. package/dist/src/nile-file-upload/types/file-upload.type.d.ts +4 -0
  235. package/dist/src/nile-file-upload/types/file-upload.type.js +2 -0
  236. package/dist/src/nile-file-upload/types/file-upload.type.js.map +1 -0
  237. package/dist/src/nile-file-upload/types/index.d.ts +2 -0
  238. package/dist/src/nile-file-upload/types/index.js +3 -0
  239. package/dist/src/nile-file-upload/types/index.js.map +1 -0
  240. package/dist/src/nile-file-upload/utils/drag-drop.util.d.ts +19 -0
  241. package/dist/src/nile-file-upload/utils/drag-drop.util.js +77 -0
  242. package/dist/src/nile-file-upload/utils/drag-drop.util.js.map +1 -0
  243. package/dist/src/nile-file-upload/utils/file-validation.util.d.ts +9 -0
  244. package/dist/src/nile-file-upload/utils/file-validation.util.js +58 -0
  245. package/dist/src/nile-file-upload/utils/file-validation.util.js.map +1 -0
  246. package/dist/src/nile-filter-chip/nile-filter-chip.d.ts +1 -1
  247. package/dist/src/nile-filter-chip/nile-filter-chip.js +5 -5
  248. package/dist/src/nile-filter-chip/nile-filter-chip.js.map +1 -1
  249. package/dist/src/nile-filter-chip/nile-filter-chip.test.js +10 -10
  250. package/dist/src/nile-filter-chip/nile-filter-chip.test.js.map +1 -1
  251. package/dist/src/nile-pagination/index.d.ts +1 -0
  252. package/dist/src/nile-pagination/index.js +2 -0
  253. package/dist/src/nile-pagination/index.js.map +1 -0
  254. package/dist/src/nile-pagination/nile-pagination.css.d.ts +12 -0
  255. package/dist/src/nile-pagination/nile-pagination.css.js +156 -0
  256. package/dist/src/nile-pagination/nile-pagination.css.js.map +1 -0
  257. package/dist/src/nile-pagination/nile-pagination.d.ts +36 -0
  258. package/dist/src/nile-pagination/nile-pagination.js +170 -0
  259. package/dist/src/nile-pagination/nile-pagination.js.map +1 -0
  260. package/dist/src/nile-pagination/nile-pagination.template.d.ts +3 -0
  261. package/dist/src/nile-pagination/nile-pagination.template.js +5 -0
  262. package/dist/src/nile-pagination/nile-pagination.template.js.map +1 -0
  263. package/dist/src/nile-pagination/nile-pagination.test.d.ts +7 -0
  264. package/dist/src/nile-pagination/nile-pagination.test.js +30 -0
  265. package/dist/src/nile-pagination/nile-pagination.test.js.map +1 -0
  266. package/dist/src/nile-pagination/sub-components/nile-pagination.d.ts +0 -0
  267. package/dist/src/nile-pagination/sub-components/nile-pagination.js +2 -0
  268. package/dist/src/nile-pagination/sub-components/nile-pagination.js.map +1 -0
  269. package/dist/src/nile-pagination/types/index.d.ts +0 -0
  270. package/dist/src/nile-pagination/types/index.js +2 -0
  271. package/dist/src/nile-pagination/types/index.js.map +1 -0
  272. package/dist/src/nile-pagination/types/pagination.type.d.ts +3 -0
  273. package/dist/src/nile-pagination/types/pagination.type.js +5 -0
  274. package/dist/src/nile-pagination/types/pagination.type.js.map +1 -0
  275. package/dist/src/nile-pagination/utils/nile-pagination.utils.d.ts +0 -0
  276. package/dist/src/nile-pagination/utils/nile-pagination.utils.js +2 -0
  277. package/dist/src/nile-pagination/utils/nile-pagination.utils.js.map +1 -0
  278. package/dist/src/nile-rich-text-editor/index.d.ts +1 -0
  279. package/dist/src/nile-rich-text-editor/index.js +2 -0
  280. package/dist/src/nile-rich-text-editor/index.js.map +1 -0
  281. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.css.d.ts +12 -0
  282. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.css.js +17 -0
  283. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.css.js.map +1 -0
  284. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.d.ts +10 -0
  285. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.js +62 -0
  286. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.js.map +1 -0
  287. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.template.d.ts +3 -0
  288. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.template.js +5 -0
  289. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.template.js.map +1 -0
  290. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.test.d.ts +7 -0
  291. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.test.js +30 -0
  292. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.test.js.map +1 -0
  293. package/dist/src/nile-rich-text-editor/quill/quill.d.ts +8 -0
  294. package/dist/src/nile-rich-text-editor/quill/quill.js +19 -0
  295. package/dist/src/nile-rich-text-editor/quill/quill.js.map +1 -0
  296. package/dist/src/nile-rich-text-editor/sub-components/nile-rich-text-editor.d.ts +0 -0
  297. package/dist/src/nile-rich-text-editor/sub-components/nile-rich-text-editor.js +2 -0
  298. package/dist/src/nile-rich-text-editor/sub-components/nile-rich-text-editor.js.map +1 -0
  299. package/dist/src/nile-rich-text-editor/types/index.d.ts +0 -0
  300. package/dist/src/nile-rich-text-editor/types/index.js +2 -0
  301. package/dist/src/nile-rich-text-editor/types/index.js.map +1 -0
  302. package/dist/src/nile-rich-text-editor/types/rich-text-editor.type.d.ts +3 -0
  303. package/dist/src/nile-rich-text-editor/types/rich-text-editor.type.js +5 -0
  304. package/dist/src/nile-rich-text-editor/types/rich-text-editor.type.js.map +1 -0
  305. package/dist/src/nile-rich-text-editor/utils/nile-rich-text-editor.utils.d.ts +0 -0
  306. package/dist/src/nile-rich-text-editor/utils/nile-rich-text-editor.utils.js +2 -0
  307. package/dist/src/nile-rich-text-editor/utils/nile-rich-text-editor.utils.js.map +1 -0
  308. package/dist/tsconfig.tsbuildinfo +1 -1
  309. package/package.json +1 -1
  310. package/src/nile-filter-chip/nile-filter-chip.test.ts +10 -10
  311. package/src/nile-filter-chip/nile-filter-chip.ts +4 -4
  312. package/vscode-html-custom-data.json +5 -5
@@ -0,0 +1,170 @@
1
+ /**
2
+ * Copyright Aquera Inc 2025
3
+ *
4
+ * This source code is licensed under the BSD-3-Clause license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import { __decorate } from "tslib";
8
+ import { html } from 'lit';
9
+ import { customElement, property } from 'lit/decorators.js';
10
+ import { styles } from './nile-pagination.css';
11
+ import NileElement from '../internal/nile-element';
12
+ /**
13
+ * Nile pagination component.
14
+ *
15
+ * @tag nile-pagination
16
+ */
17
+ let NilePagination = class NilePagination extends NileElement {
18
+ constructor() {
19
+ super(...arguments);
20
+ this.totalItems = 0;
21
+ this.pageSize = 50;
22
+ this.currentPage = 1;
23
+ this.variant = 'v1';
24
+ this.disabled = false;
25
+ this.showTitle = true;
26
+ this.pageSizeOptions = [10, 25, 50, 100];
27
+ }
28
+ static get styles() {
29
+ return [styles];
30
+ }
31
+ get totalPages() {
32
+ return Math.ceil(this.totalItems / this.pageSize);
33
+ }
34
+ getPaginationItems() {
35
+ const total = this.totalPages;
36
+ const current = this.currentPage;
37
+ if (total <= 7)
38
+ return Array.from({ length: total }, (_, i) => i + 1);
39
+ const pages = [1];
40
+ if (current <= 4) {
41
+ pages.push(2, 3, 4, 5, '…');
42
+ }
43
+ else if (current >= total - 3) {
44
+ pages.push('…', total - 4, total - 3, total - 2, total - 1);
45
+ }
46
+ else {
47
+ pages.push('…', current - 1, current, current + 1, '…');
48
+ }
49
+ pages.push(total);
50
+ return pages;
51
+ }
52
+ getHiddenPages(position) {
53
+ const total = this.totalPages;
54
+ const current = this.currentPage;
55
+ if (total <= 7)
56
+ return [];
57
+ if (position === 'left' && current >= 5) {
58
+ return Array.from({ length: current - 3 }, (_, i) => i + 2); // 2 to current-2
59
+ }
60
+ if (position === 'right' && current <= total - 4) {
61
+ const end = total - 1;
62
+ const start = current + 2;
63
+ return Array.from({ length: end - start + 1 }, (_, i) => start + i);
64
+ }
65
+ return [];
66
+ }
67
+ getRangeText() {
68
+ const start = (this.currentPage - 1) * this.pageSize + 1;
69
+ const end = Math.min(this.currentPage * this.pageSize, this.totalItems);
70
+ return `Showing ${start}–${end} of ${this.totalItems}`;
71
+ }
72
+ goToPage(page) {
73
+ const safePage = Math.max(1, Math.min(page, this.totalPages));
74
+ this.currentPage = safePage;
75
+ this.emit('nile-change', { page: this.currentPage, pageSize: this.pageSize });
76
+ }
77
+ onPageSizeChange(event) {
78
+ const newSize = parseInt(event.target.value, 10);
79
+ this.pageSize = newSize;
80
+ this.currentPage = 1;
81
+ this.emit('nile-change', { page: this.currentPage, pageSize: this.pageSize });
82
+ }
83
+ render() {
84
+ const items = this.getPaginationItems();
85
+ return html `
86
+ <div class="pagination-wrapper ${this.variant}">
87
+ <div class="pager-container">
88
+ ${this.showTitle ? html `<div class="range-text">${this.getRangeText()}</div>` : null}
89
+ ${this.variant === 'v1' ? html `
90
+ <div class="page-size-select">
91
+
92
+ <select id="pageSize" ?disabled=${this.disabled} @change=${this.onPageSizeChange}>
93
+ ${this.pageSizeOptions.map(size => html `
94
+ <option value="${size}" ?selected=${this.pageSize === size}>${size}</option>
95
+ `)}
96
+ </select>
97
+ </div>
98
+ <label for="pageSize">Items per page:</label>
99
+ ` : null}
100
+ </div>
101
+
102
+ <nav aria-label="Pagination">
103
+ <ul class="pagination">
104
+ <li>
105
+ <nile-button variant="tertiary" ?disabled=${this.currentPage === 1 || this.disabled} @click=${() => this.goToPage(this.currentPage - 1)}>
106
+
107
+ </nile-button>
108
+ </li>
109
+
110
+ ${items.map((item, index) => html `
111
+ <li>
112
+ ${item === '…' ? html `
113
+ <nile-dropdown class="ellipsis-dropdown">
114
+ <nile-button variant="tertiary" slot="trigger" variant="ghost" class="ellipsis-nile-button">…</nile-button>
115
+ <nile-menu>
116
+ ${this.getHiddenPages(index < items.indexOf(this.currentPage) ? 'left' : 'right').map(page => html `
117
+ <nile-menu-item @click=${() => this.goToPage(page)}>${page}</nile-menu-item>
118
+ `)}
119
+ </nile-menu>
120
+ </nile-dropdown>
121
+ ` : html `
122
+ <nile-button
123
+ class=${item === this.currentPage ? 'active' : ''}
124
+ ?disabled=${this.disabled}
125
+ @click=${() => this.goToPage(item)}
126
+ >
127
+ ${item}
128
+ </nile-button>
129
+ `}
130
+ </li>
131
+ `)}
132
+
133
+ <li>
134
+ <nile-button variant="tertiary" ?disabled=${this.currentPage === this.totalPages || this.disabled} @click=${() => this.goToPage(this.currentPage + 1)}>
135
+
136
+ </nile-button>
137
+ </li>
138
+ </ul>
139
+ </nav>
140
+ </div>
141
+ `;
142
+ }
143
+ };
144
+ __decorate([
145
+ property({ type: Number })
146
+ ], NilePagination.prototype, "totalItems", void 0);
147
+ __decorate([
148
+ property({ type: Number })
149
+ ], NilePagination.prototype, "pageSize", void 0);
150
+ __decorate([
151
+ property({ type: Number })
152
+ ], NilePagination.prototype, "currentPage", void 0);
153
+ __decorate([
154
+ property({ type: String })
155
+ ], NilePagination.prototype, "variant", void 0);
156
+ __decorate([
157
+ property({ type: Boolean })
158
+ ], NilePagination.prototype, "disabled", void 0);
159
+ __decorate([
160
+ property({ type: Boolean })
161
+ ], NilePagination.prototype, "showTitle", void 0);
162
+ __decorate([
163
+ property({ type: Array })
164
+ ], NilePagination.prototype, "pageSizeOptions", void 0);
165
+ NilePagination = __decorate([
166
+ customElement('nile-pagination')
167
+ ], NilePagination);
168
+ export { NilePagination };
169
+ export default NilePagination;
170
+ //# sourceMappingURL=nile-pagination.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-pagination.js","sourceRoot":"","sources":["../../../src/nile-pagination/nile-pagination.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AAEH,OAAO,EAAc,IAAI,EAAkC,MAAM,KAAK,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAS,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC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AG,CAAC,CAAC;;;;;;;KAO9J,CAAC;IACJ,CAAC;CACF,CAAA;AAlI6B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;kDAAwB;AACvB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;gDAAuB;AACtB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;mDAAyB;AACxB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;+CAA6B;AAC3B;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;gDAA2B;AAC1B;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;iDAA2B;AAC5B;IAA1B,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;uDAA+C;AAX9D,cAAc;IAD1B,aAAa,CAAC,iBAAiB,CAAC;GACpB,cAAc,CAuI1B;;AAED,eAAe,cAAc,CAAC","sourcesContent":["/**\n * Copyright Aquera Inc 2025\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { LitElement, html, CSSResultArray, TemplateResult } from 'lit';\nimport { customElement, property, state } from 'lit/decorators.js';\nimport { styles } from './nile-pagination.css';\nimport NileElement from '../internal/nile-element';\n\n/**\n * Nile pagination component.\n *\n * @tag nile-pagination\n */\n@customElement('nile-pagination')\nexport class NilePagination extends NileElement {\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n @property({ type: Number }) totalItems: number = 0;\n @property({ type: Number }) pageSize: number = 50;\n @property({ type: Number }) currentPage: number = 1;\n @property({ type: String }) variant: 'v1' | 'v2' = 'v1';\n @property({ type: Boolean }) disabled: boolean = false;\n @property({ type: Boolean }) showTitle: boolean = true;\n @property({ type: Array }) pageSizeOptions: number[] = [10, 25, 50, 100];\n\n private get totalPages(): number {\n return Math.ceil(this.totalItems / this.pageSize);\n }\n\n private getPaginationItems(): (number | string)[] {\n const total = this.totalPages;\n const current = this.currentPage;\n if (total <= 7) return Array.from({ length: total }, (_, i) => i + 1);\n\n const pages: (number | string)[] = [1];\n if (current <= 4) {\n pages.push(2, 3, 4, 5, '…');\n } else if (current >= total - 3) {\n pages.push('…', total - 4, total - 3, total - 2, total - 1);\n } else {\n pages.push('…', current - 1, current, current + 1, '…');\n }\n pages.push(total);\n return pages;\n }\n\n private getHiddenPages(position: 'left' | 'right'): number[] {\n const total = this.totalPages;\n const current = this.currentPage;\n\n if (total <= 7) return [];\n\n if (position === 'left' && current >= 5) {\n return Array.from({ length: current - 3 }, (_, i) => i + 2); // 2 to current-2\n }\n\n if (position === 'right' && current <= total - 4) {\n const end = total - 1;\n const start = current + 2;\n return Array.from({ length: end - start + 1 }, (_, i) => start + i);\n }\n\n return [];\n }\n\n private getRangeText(): string {\n const start = (this.currentPage - 1) * this.pageSize + 1;\n const end = Math.min(this.currentPage * this.pageSize, this.totalItems);\n return `Showing ${start}–${end} of ${this.totalItems}`;\n }\n\n private goToPage(page: number) {\n const safePage = Math.max(1, Math.min(page, this.totalPages));\n this.currentPage = safePage;\n this.emit('nile-change', { page: this.currentPage, pageSize: this.pageSize });\n }\n\n private onPageSizeChange(event: Event) {\n const newSize = parseInt((event.target as HTMLSelectElement).value, 10);\n this.pageSize = newSize;\n this.currentPage = 1;\n this.emit('nile-change', { page: this.currentPage, pageSize: this.pageSize });\n }\n\n public render(): TemplateResult {\n const items = this.getPaginationItems();\n\n return html`\n <div class=\"pagination-wrapper ${this.variant}\">\n <div class=\"pager-container\">\n ${this.showTitle ? html`<div class=\"range-text\">${this.getRangeText()}</div>` : null}\n ${this.variant === 'v1' ? html`\n <div class=\"page-size-select\">\n \n <select id=\"pageSize\" ?disabled=${this.disabled} @change=${this.onPageSizeChange}>\n ${this.pageSizeOptions.map(size => html`\n <option value=\"${size}\" ?selected=${this.pageSize === size}>${size}</option>\n `)}\n </select>\n </div>\n\t\t\t<label for=\"pageSize\">Items per page:</label>\n ` : null}\n </div>\n\n <nav aria-label=\"Pagination\">\n <ul class=\"pagination\">\n <li>\n <nile-button variant=\"tertiary\" ?disabled=${this.currentPage === 1 || this.disabled} @click=${() => this.goToPage(this.currentPage - 1)}>\n ‹\n </nile-button>\n </li>\n\n ${items.map((item, index) => html`\n <li>\n ${item === '…' ? html`\n <nile-dropdown class=\"ellipsis-dropdown\">\n <nile-button variant=\"tertiary\" slot=\"trigger\" variant=\"ghost\" class=\"ellipsis-nile-button\">…</nile-button>\n <nile-menu>\n ${this.getHiddenPages(\n index < items.indexOf(this.currentPage) ? 'left' : 'right'\n ).map(page => html`\n <nile-menu-item @click=${() => this.goToPage(page)}>${page}</nile-menu-item>\n `)}\n </nile-menu>\n </nile-dropdown>\n ` : html`\n <nile-button\n class=${item === this.currentPage ? 'active' : ''}\n ?disabled=${this.disabled}\n @click=${() => this.goToPage(item as number)}\n >\n ${item}\n </nile-button>\n `}\n </li>\n `)}\n\n <li>\n <nile-button variant=\"tertiary\" ?disabled=${this.currentPage === this.totalPages || this.disabled} @click=${() => this.goToPage(this.currentPage + 1)}>\n ›\n </nile-button>\n </li>\n </ul>\n </nav>\n </div>\n `;\n }\n}\n\nexport default NilePagination;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-pagination': NilePagination;\n }\n}\n"]}
@@ -0,0 +1,3 @@
1
+ /**
2
+ * Template File for nile-pagination component
3
+ */
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * Template File for nile-pagination component
4
+ */
5
+ //# sourceMappingURL=nile-pagination.template.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-pagination.template.js","sourceRoot":"","sources":["../../../src/nile-pagination/nile-pagination.template.ts"],"names":[],"mappings":";AAAA;;GAEG","sourcesContent":["/**\n * Template File for nile-pagination component\n */"]}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Copyright Aquera Inc 2025
3
+ *
4
+ * This source code is licensed under the BSD-3-Clause license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import './nile-pagination';
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Copyright Aquera Inc 2025
3
+ *
4
+ * This source code is licensed under the BSD-3-Clause license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import { fixture, assert, expect, html } from '@open-wc/testing';
8
+ import './nile-pagination'; // Just import to register the element
9
+ describe('<nile-pagination>', () => {
10
+ let element;
11
+ beforeEach(async () => {
12
+ element = await fixture(html `<nile-pagination></nile-pagination>`);
13
+ });
14
+ it('passes accessibility test', async () => {
15
+ await expect(element).to.be.accessible();
16
+ });
17
+ it('renders with the correct tag name', () => {
18
+ expect(element.tagName.toLowerCase()).to.equal('nile-pagination');
19
+ });
20
+ it('renders with slot content when provided', async () => {
21
+ const testContent = 'Test Content';
22
+ element = await fixture(html `<nile-pagination>${testContent}</nile-pagination>`);
23
+ const slot = element.shadowRoot.querySelector('slot');
24
+ assert.exists(slot, 'Slot should exist');
25
+ const assignedNodes = slot.assignedNodes({ flatten: true });
26
+ expect(assignedNodes.length).to.be.greaterThan(0);
27
+ expect(assignedNodes[0].textContent?.trim()).to.equal(testContent);
28
+ });
29
+ });
30
+ //# sourceMappingURL=nile-pagination.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-pagination.test.js","sourceRoot":"","sources":["../../../src/nile-pagination/nile-pagination.test.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,mBAAmB,CAAC,CAAC,sCAAsC;AAElE,QAAQ,CAAC,mBAAmB,EAAE,GAAG,EAAE;IACjC,IAAI,OAAoB,CAAC;IAEzB,UAAU,CAAC,KAAK,IAAI,EAAE;QACpB,OAAO,GAAG,MAAM,OAAO,CAAC,IAAI,CAAA,qCAAqC,CAAC,CAAC;IACrE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,2BAA2B,EAAE,KAAK,IAAI,EAAE;QACzC,MAAM,MAAM,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,UAAU,EAAE,CAAC;IAC3C,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,mCAAmC,EAAE,GAAG,EAAE;QAC3C,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACpE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,yCAAyC,EAAE,KAAK,IAAI,EAAE;QACvD,MAAM,WAAW,GAAG,cAAc,CAAC;QACnC,OAAO,GAAG,MAAM,OAAO,CAAC,IAAI,CAAA,oBAAoB,WAAW,oBAAoB,CAAC,CAAC;QAEjF,MAAM,IAAI,GAAI,OAAO,CAAC,UAAW,CAAC,aAAa,CAAC,MAAM,CAAqB,CAAC;QAC5E,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,mBAAmB,CAAC,CAAC;QAEzC,MAAM,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC;QAC5D,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;QAClD,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;IACrE,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["/**\n * Copyright Aquera Inc 2025\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n \nimport { fixture, assert, expect, html } from '@open-wc/testing';\nimport './nile-pagination'; // Just import to register the element\n\ndescribe('<nile-pagination>', () => {\n let element: HTMLElement;\n\n beforeEach(async () => {\n element = await fixture(html`<nile-pagination></nile-pagination>`);\n });\n\n it('passes accessibility test', async () => {\n await expect(element).to.be.accessible();\n });\n\n it('renders with the correct tag name', () => {\n expect(element.tagName.toLowerCase()).to.equal('nile-pagination');\n });\n\n it('renders with slot content when provided', async () => {\n const testContent = 'Test Content';\n element = await fixture(html`<nile-pagination>${testContent}</nile-pagination>`);\n \n const slot = (element.shadowRoot!.querySelector('slot') as HTMLSlotElement);\n assert.exists(slot, 'Slot should exist');\n\n const assignedNodes = slot.assignedNodes({ flatten: true });\n expect(assignedNodes.length).to.be.greaterThan(0);\n expect(assignedNodes[0].textContent?.trim()).to.equal(testContent);\n });\n});"]}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=nile-pagination.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-pagination.js","sourceRoot":"","sources":["../../../../src/nile-pagination/sub-components/nile-pagination.ts"],"names":[],"mappings":"","sourcesContent":[""]}
File without changes
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/nile-pagination/types/index.ts"],"names":[],"mappings":"","sourcesContent":[""]}
@@ -0,0 +1,3 @@
1
+ /**
2
+ * Types for nile-pagination component
3
+ */
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * Types for nile-pagination component
4
+ */
5
+ //# sourceMappingURL=pagination.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagination.type.js","sourceRoot":"","sources":["../../../../src/nile-pagination/types/pagination.type.ts"],"names":[],"mappings":";AAAA;;GAEG","sourcesContent":["/**\n * Types for nile-pagination component\n */"]}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=nile-pagination.utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-pagination.utils.js","sourceRoot":"","sources":["../../../../src/nile-pagination/utils/nile-pagination.utils.ts"],"names":[],"mappings":"","sourcesContent":[""]}
@@ -0,0 +1 @@
1
+ export { NileRichTextEditor } from './nile-rich-text-editor';
@@ -0,0 +1,2 @@
1
+ export { NileRichTextEditor } from './nile-rich-text-editor';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/nile-rich-text-editor/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC","sourcesContent":["export { NileRichTextEditor } from './nile-rich-text-editor';"]}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Copyright Aquera Inc 2025
3
+ *
4
+ * This source code is licensed under the BSD-3-Clause license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ /**
8
+ * RichTextEditor CSS
9
+ */
10
+ export declare const styles: import("lit").CSSResult;
11
+ declare const _default: import("lit").CSSResult[];
12
+ export default _default;
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Copyright Aquera Inc 2025
3
+ *
4
+ * This source code is licensed under the BSD-3-Clause license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import { css } from 'lit';
8
+ /**
9
+ * RichTextEditor CSS
10
+ */
11
+ export const styles = css `
12
+ :host {
13
+
14
+ }
15
+ `;
16
+ export default [styles];
17
+ //# sourceMappingURL=nile-rich-text-editor.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-rich-text-editor.css.js","sourceRoot":"","sources":["../../../src/nile-rich-text-editor/nile-rich-text-editor.css.ts"],"names":[],"mappings":"AAAA;;;;;EAKE;AAEF,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;CAIxB,CAAC;AAEF,eAAe,CAAC,MAAM,CAAC,CAAC","sourcesContent":["/**\n* Copyright Aquera Inc 2025\n*\n* This source code is licensed under the BSD-3-Clause license found in the\n* LICENSE file in the root directory of this source tree.\n*/\n\nimport {css} from 'lit';\n\n/**\n * RichTextEditor CSS\n */\nexport const styles = css`\n\t:host {\n\n\t}\n`;\n\nexport default [styles];"]}
@@ -0,0 +1,10 @@
1
+ import { LitElement } from 'lit';
2
+ export declare class NileRichTextEditor extends LitElement {
3
+ theme: string;
4
+ placeholder: string;
5
+ modules: any;
6
+ private quill?;
7
+ static styles: import("lit").CSSResult;
8
+ render(): import("lit-html").TemplateResult<1>;
9
+ firstUpdated(): void;
10
+ }
@@ -0,0 +1,62 @@
1
+ import { __decorate } from "tslib";
2
+ import { LitElement, html, css } from 'lit';
3
+ import { customElement, property } from 'lit/decorators.js';
4
+ import { QuillLibrary } from './quill/quill';
5
+ let NileRichTextEditor = class NileRichTextEditor extends LitElement {
6
+ constructor() {
7
+ super(...arguments);
8
+ this.theme = 'snow';
9
+ this.placeholder = 'Compose an epic...';
10
+ this.modules = {
11
+ toolbar: [['bold', 'italic', 'underline'], ['link']]
12
+ };
13
+ }
14
+ render() {
15
+ return html `
16
+ <link
17
+ rel="stylesheet"
18
+ href="./quill/quill.snow.css"
19
+ />
20
+ <div id="editor-container"></div>
21
+ `;
22
+ }
23
+ firstUpdated() {
24
+ const container = this.shadowRoot?.getElementById('editor-container');
25
+ if (!container)
26
+ return;
27
+ QuillLibrary.load().then(Quill => {
28
+ this.quill = new Quill(container, {
29
+ theme: this.theme,
30
+ placeholder: this.placeholder,
31
+ modules: this.modules,
32
+ });
33
+ }).catch(err => {
34
+ console.error('Failed to load Quill:', err);
35
+ });
36
+ }
37
+ };
38
+ NileRichTextEditor.styles = css `
39
+ :host {
40
+ display: block;
41
+ width: 100%;
42
+ height: 300px;
43
+ }
44
+
45
+ #editor-container {
46
+ height: 100%;
47
+ }
48
+ `;
49
+ __decorate([
50
+ property({ type: String })
51
+ ], NileRichTextEditor.prototype, "theme", void 0);
52
+ __decorate([
53
+ property({ type: String })
54
+ ], NileRichTextEditor.prototype, "placeholder", void 0);
55
+ __decorate([
56
+ property({ type: Object })
57
+ ], NileRichTextEditor.prototype, "modules", void 0);
58
+ NileRichTextEditor = __decorate([
59
+ customElement('nile-rich-text-editor')
60
+ ], NileRichTextEditor);
61
+ export { NileRichTextEditor };
62
+ //# sourceMappingURL=nile-rich-text-editor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-rich-text-editor.js","sourceRoot":"","sources":["../../../src/nile-rich-text-editor/nile-rich-text-editor.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAGtC,IAAM,kBAAkB,GAAxB,MAAM,kBAAmB,SAAQ,UAAU;IAA3C;;QACuB,UAAK,GAAG,MAAM,CAAC;QACf,gBAAW,GAAG,oBAAoB,CAAC;QACnC,YAAO,GAAQ;YACzC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,QAAQ,EAAE,WAAW,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC;SACrD,CAAC;IAwCJ,CAAC;IAxBC,MAAM;QACJ,OAAO,IAAI,CAAA;;;;;;KAMV,CAAC;IACJ,CAAC;IAED,YAAY;QACV,MAAM,SAAS,GAAG,IAAI,CAAC,UAAU,EAAE,cAAc,CAAC,kBAAkB,CAAC,CAAC;QACtE,IAAI,CAAC,SAAS;YAAE,OAAO;QAEvB,YAAY,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;YAC/B,IAAI,CAAC,KAAK,GAAG,IAAI,KAAK,CAAC,SAAS,EAAE;gBAChC,KAAK,EAAE,IAAI,CAAC,KAAK;gBACjB,WAAW,EAAE,IAAI,CAAC,WAAW;gBAC7B,OAAO,EAAE,IAAI,CAAC,OAAO;aACtB,CAAC,CAAC;QACL,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE;YACb,OAAO,CAAC,KAAK,CAAC,uBAAuB,EAAE,GAAG,CAAC,CAAC;QAC9C,CAAC,CAAC,CAAC;IACL,CAAC;;AAnCM,yBAAM,GAAG,GAAG,CAAA;;;;;;;;;;GAUlB,AAVY,CAUX;AAlB0B;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;iDAAgB;AACf;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;uDAAoC;AACnC;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;mDAEzB;AALS,kBAAkB;IAD9B,aAAa,CAAC,uBAAuB,CAAC;GAC1B,kBAAkB,CA6C9B","sourcesContent":["import { LitElement, html, css } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { QuillLibrary } from './quill/quill';\n\n@customElement('nile-rich-text-editor')\nexport class NileRichTextEditor extends LitElement {\n @property({ type: String }) theme = 'snow';\n @property({ type: String }) placeholder = 'Compose an epic...';\n @property({ type: Object }) modules: any = {\n toolbar: [['bold', 'italic', 'underline'], ['link']]\n };\n\n private quill?: any;\n\n static styles = css`\n :host {\n display: block;\n width: 100%;\n height: 300px;\n }\n\n #editor-container {\n height: 100%;\n }\n `;\n\n render() {\n return html`\n <link\n rel=\"stylesheet\"\n href=\"./quill/quill.snow.css\"\n />\n <div id=\"editor-container\"></div>\n `;\n }\n\n firstUpdated() {\n const container = this.shadowRoot?.getElementById('editor-container');\n if (!container) return;\n\n QuillLibrary.load().then(Quill => {\n this.quill = new Quill(container, {\n theme: this.theme,\n placeholder: this.placeholder,\n modules: this.modules,\n });\n }).catch(err => {\n console.error('Failed to load Quill:', err);\n });\n }\n}\n"]}
@@ -0,0 +1,3 @@
1
+ /**
2
+ * Template File for nile-rich-text-editor component
3
+ */
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * Template File for nile-rich-text-editor component
4
+ */
5
+ //# sourceMappingURL=nile-rich-text-editor.template.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-rich-text-editor.template.js","sourceRoot":"","sources":["../../../src/nile-rich-text-editor/nile-rich-text-editor.template.ts"],"names":[],"mappings":";AAAA;;GAEG","sourcesContent":["/**\n * Template File for nile-rich-text-editor component\n */"]}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Copyright Aquera Inc 2025
3
+ *
4
+ * This source code is licensed under the BSD-3-Clause license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import './nile-rich-text-editor';
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Copyright Aquera Inc 2025
3
+ *
4
+ * This source code is licensed under the BSD-3-Clause license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import { fixture, assert, expect, html } from '@open-wc/testing';
8
+ import './nile-rich-text-editor'; // Just import to register the element
9
+ describe('<nile-rich-text-editor>', () => {
10
+ let element;
11
+ beforeEach(async () => {
12
+ element = await fixture(html `<nile-rich-text-editor></nile-rich-text-editor>`);
13
+ });
14
+ it('passes accessibility test', async () => {
15
+ await expect(element).to.be.accessible();
16
+ });
17
+ it('renders with the correct tag name', () => {
18
+ expect(element.tagName.toLowerCase()).to.equal('nile-rich-text-editor');
19
+ });
20
+ it('renders with slot content when provided', async () => {
21
+ const testContent = 'Test Content';
22
+ element = await fixture(html `<nile-rich-text-editor>${testContent}</nile-rich-text-editor>`);
23
+ const slot = element.shadowRoot.querySelector('slot');
24
+ assert.exists(slot, 'Slot should exist');
25
+ const assignedNodes = slot.assignedNodes({ flatten: true });
26
+ expect(assignedNodes.length).to.be.greaterThan(0);
27
+ expect(assignedNodes[0].textContent?.trim()).to.equal(testContent);
28
+ });
29
+ });
30
+ //# sourceMappingURL=nile-rich-text-editor.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-rich-text-editor.test.js","sourceRoot":"","sources":["../../../src/nile-rich-text-edit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QAClD,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;IACrE,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["/**\n * Copyright Aquera Inc 2025\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n \nimport { fixture, assert, expect, html } from '@open-wc/testing';\nimport './nile-rich-text-editor'; // Just import to register the element\n\ndescribe('<nile-rich-text-editor>', () => {\n let element: HTMLElement;\n\n beforeEach(async () => {\n element = await fixture(html`<nile-rich-text-editor></nile-rich-text-editor>`);\n });\n\n it('passes accessibility test', async () => {\n await expect(element).to.be.accessible();\n });\n\n it('renders with the correct tag name', () => {\n expect(element.tagName.toLowerCase()).to.equal('nile-rich-text-editor');\n });\n\n it('renders with slot content when provided', async () => {\n const testContent = 'Test Content';\n element = await fixture(html`<nile-rich-text-editor>${testContent}</nile-rich-text-editor>`);\n \n const slot = (element.shadowRoot!.querySelector('slot') as HTMLSlotElement);\n assert.exists(slot, 'Slot should exist');\n\n const assignedNodes = slot.assignedNodes({ flatten: true });\n expect(assignedNodes.length).to.be.greaterThan(0);\n expect(assignedNodes[0].textContent?.trim()).to.equal(testContent);\n });\n});"]}
@@ -0,0 +1,8 @@
1
+ declare global {
2
+ interface Window {
3
+ Quill: any;
4
+ }
5
+ }
6
+ export declare const QuillLibrary: {
7
+ load: () => Promise<any>;
8
+ };
@@ -0,0 +1,19 @@
1
+ export const QuillLibrary = {
2
+ load: () => {
3
+ if (window.Quill)
4
+ return Promise.resolve(window.Quill);
5
+ return new Promise((resolve, reject) => {
6
+ const script = document.createElement('script');
7
+ script.src = './quill.js';
8
+ script.onload = () => {
9
+ if (window.Quill)
10
+ resolve(window.Quill);
11
+ else
12
+ reject(new Error('Quill did not initialize correctly'));
13
+ };
14
+ script.onerror = () => reject(new Error('Failed to load Quill'));
15
+ document.head.appendChild(script);
16
+ });
17
+ }
18
+ };
19
+ //# sourceMappingURL=quill.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quill.js","sourceRoot":"","sources":["../../../../src/nile-rich-text-editor/quill/quill.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,IAAI,EAAE,GAAiB,EAAE;QACvB,IAAI,MAAM,CAAC,KAAK;YAAE,OAAO,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAEvD,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;YACrC,MAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;YAChD,MAAM,CAAC,GAAG,GAAG,YAAY,CAAC;YAC1B,MAAM,CAAC,MAAM,GAAG,GAAG,EAAE;gBACnB,IAAI,MAAM,CAAC,KAAK;oBAAE,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;;oBACnC,MAAM,CAAC,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC,CAAC;YAC/D,CAAC,CAAC;YACF,MAAM,CAAC,OAAO,GAAG,GAAG,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC,CAAC;YACjE,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;QACpC,CAAC,CAAC,CAAC;IACL,CAAC;CACF,CAAC","sourcesContent":["\ndeclare global {\n interface Window {\n Quill: any;\n }\n}\n\nexport const QuillLibrary = {\n load: (): Promise<any> => {\n if (window.Quill) return Promise.resolve(window.Quill);\n\n return new Promise((resolve, reject) => {\n const script = document.createElement('script');\n script.src = './quill.js';\n script.onload = () => {\n if (window.Quill) resolve(window.Quill);\n else reject(new Error('Quill did not initialize correctly'));\n };\n script.onerror = () => reject(new Error('Failed to load Quill'));\n document.head.appendChild(script);\n });\n }\n};\n"]}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=nile-rich-text-editor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-rich-text-editor.js","sourceRoot":"","sources":["../../../../src/nile-rich-text-editor/sub-components/nile-rich-text-editor.ts"],"names":[],"mappings":"","sourcesContent":[""]}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/nile-rich-text-editor/types/index.ts"],"names":[],"mappings":"","sourcesContent":[""]}
@@ -0,0 +1,3 @@
1
+ /**
2
+ * Types for nile-rich-text-editor component
3
+ */
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * Types for nile-rich-text-editor component
4
+ */
5
+ //# sourceMappingURL=rich-text-editor.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rich-text-editor.type.js","sourceRoot":"","sources":["../../../../src/nile-rich-text-editor/types/rich-text-editor.type.ts"],"names":[],"mappings":";AAAA;;GAEG","sourcesContent":["/**\n * Types for nile-rich-text-editor component\n */"]}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ //# sourceMappingURL=nile-rich-text-editor.utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-rich-text-editor.utils.js","sourceRoot":"","sources":["../../../../src/nile-rich-text-editor/utils/nile-rich-text-editor.utils.ts"],"names":[],"mappings":"","sourcesContent":[""]}