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

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 (453) hide show
  1. package/README.md +12 -75
  2. package/demo/index.css +4 -7
  3. package/demo/index.html +38 -20
  4. package/demo/variables.css +0 -13
  5. package/demo/variables_v2.css +0 -13
  6. package/dist/{fixture-76051ef1.esm.js → fixture-178ed8d2.esm.js} +1 -1
  7. package/dist/{fixture-948ae33c.cjs.js → fixture-bb486165.cjs.js} +2 -2
  8. package/dist/{fixture-948ae33c.cjs.js.map → fixture-bb486165.cjs.js.map} +1 -1
  9. package/dist/{fixture-e6fdfbfa.esm.js → fixture-c4e75e04.esm.js} +1 -1
  10. package/dist/{fixture-7bfb866e.cjs.js → fixture-d7bf42eb.cjs.js} +2 -2
  11. package/dist/{fixture-7bfb866e.cjs.js.map → fixture-d7bf42eb.cjs.js.map} +1 -1
  12. package/dist/index.cjs.js +1 -1
  13. package/dist/index.esm.js +1 -1
  14. package/dist/internal/animate.cjs.js +1 -1
  15. package/dist/internal/animate.cjs.js.map +1 -1
  16. package/dist/internal/animate.esm.js +1 -1
  17. package/dist/nile-accordion/nile-accordian.test.cjs.js +1 -1
  18. package/dist/nile-accordion/nile-accordian.test.esm.js +1 -1
  19. package/dist/nile-auto-complete/nile-auto-complete.test.cjs.js +1 -1
  20. package/dist/nile-auto-complete/nile-auto-complete.test.esm.js +1 -1
  21. package/dist/nile-avatar/nile-avatar.test.cjs.js +1 -1
  22. package/dist/nile-avatar/nile-avatar.test.esm.js +1 -1
  23. package/dist/nile-badge/nile-badge.test.cjs.js +1 -1
  24. package/dist/nile-badge/nile-badge.test.esm.js +1 -1
  25. package/dist/nile-button/nile-button.test.cjs.js +1 -1
  26. package/dist/nile-button/nile-button.test.esm.js +1 -1
  27. package/dist/nile-button-toggle-group/nile-button-toggle-group.test.cjs.js +1 -1
  28. package/dist/nile-button-toggle-group/nile-button-toggle-group.test.esm.js +1 -1
  29. package/dist/nile-calendar/nile-calendar.test.cjs.js +1 -1
  30. package/dist/nile-calendar/nile-calendar.test.esm.js +1 -1
  31. package/dist/nile-card/nile-card.test.cjs.js +1 -1
  32. package/dist/nile-card/nile-card.test.esm.js +1 -1
  33. package/dist/nile-checkbox/nile-checkbox.test.cjs.js +1 -1
  34. package/dist/nile-checkbox/nile-checkbox.test.esm.js +1 -1
  35. package/dist/nile-chip/nile-chip.cjs.js +1 -1
  36. package/dist/nile-chip/nile-chip.cjs.js.map +1 -1
  37. package/dist/nile-chip/nile-chip.esm.js +8 -17
  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.cjs.js +1 -1
  49. package/dist/nile-error-message/nile-error-message.cjs.js.map +1 -1
  50. package/dist/nile-error-message/nile-error-message.css.cjs.js +1 -1
  51. package/dist/nile-error-message/nile-error-message.css.cjs.js.map +1 -1
  52. package/dist/nile-error-message/nile-error-message.css.esm.js +4 -6
  53. package/dist/nile-error-message/nile-error-message.esm.js +4 -4
  54. package/dist/nile-error-message/nile-error-message.test.cjs.js +1 -1
  55. package/dist/nile-error-message/nile-error-message.test.esm.js +1 -1
  56. package/dist/nile-error-notification/nile-error-notification.css.cjs.js +1 -1
  57. package/dist/nile-error-notification/nile-error-notification.css.cjs.js.map +1 -1
  58. package/dist/nile-error-notification/nile-error-notification.css.esm.js +1 -1
  59. package/dist/nile-filter-chip/nile-filter-chip.cjs.js +1 -1
  60. package/dist/nile-filter-chip/nile-filter-chip.cjs.js.map +1 -1
  61. package/dist/nile-filter-chip/nile-filter-chip.css.cjs.js +1 -1
  62. package/dist/nile-filter-chip/nile-filter-chip.css.cjs.js.map +1 -1
  63. package/dist/nile-filter-chip/nile-filter-chip.css.esm.js +17 -40
  64. package/dist/nile-filter-chip/nile-filter-chip.esm.js +15 -24
  65. package/dist/nile-filter-chip/nile-filter-chip.test.cjs.js +1 -1
  66. package/dist/nile-filter-chip/nile-filter-chip.test.cjs.js.map +1 -1
  67. package/dist/nile-filter-chip/nile-filter-chip.test.esm.js +16 -16
  68. package/dist/nile-form-group/nile-form-group.test.cjs.js +1 -1
  69. package/dist/nile-form-group/nile-form-group.test.esm.js +1 -1
  70. package/dist/nile-form-help-text/nile-form-help-text.test.cjs.js +1 -1
  71. package/dist/nile-form-help-text/nile-form-help-text.test.esm.js +1 -1
  72. package/dist/nile-hero/nile-hero.test.cjs.js +1 -1
  73. package/dist/nile-hero/nile-hero.test.esm.js +1 -1
  74. package/dist/nile-icon/icons/svg/accessreview.cjs.js +1 -1
  75. package/dist/nile-icon/icons/svg/accessreview.cjs.js.map +1 -1
  76. package/dist/nile-icon/icons/svg/accessreview.esm.js +1 -1
  77. package/dist/nile-icon/nile-icon.test.cjs.js +1 -1
  78. package/dist/nile-icon/nile-icon.test.esm.js +1 -1
  79. package/dist/nile-input/nile-input.test.cjs.js +1 -1
  80. package/dist/nile-input/nile-input.test.esm.js +1 -1
  81. package/dist/nile-link/nile-link.test.cjs.js +1 -1
  82. package/dist/nile-link/nile-link.test.esm.js +1 -1
  83. package/dist/nile-loader/nile-loader.test.cjs.js +1 -1
  84. package/dist/nile-loader/nile-loader.test.esm.js +1 -1
  85. package/dist/nile-popover/nile-popover.test.cjs.js +1 -1
  86. package/dist/nile-popover/nile-popover.test.esm.js +1 -1
  87. package/dist/nile-popup/nile-popup.test.cjs.js +1 -1
  88. package/dist/nile-popup/nile-popup.test.esm.js +1 -1
  89. package/dist/nile-progress-bar/nile-progress-bar.css.cjs.js +1 -1
  90. package/dist/nile-progress-bar/nile-progress-bar.css.cjs.js.map +1 -1
  91. package/dist/nile-progress-bar/nile-progress-bar.css.esm.js +0 -1
  92. package/dist/nile-progress-bar/nile-progress-bar.test.cjs.js +1 -1
  93. package/dist/nile-progress-bar/nile-progress-bar.test.esm.js +1 -1
  94. package/dist/nile-radio/nile-radio.test.cjs.js +1 -1
  95. package/dist/nile-radio/nile-radio.test.esm.js +1 -1
  96. package/dist/nile-radio-group/nile-radio-group.test.cjs.js +1 -1
  97. package/dist/nile-radio-group/nile-radio-group.test.esm.js +1 -1
  98. package/dist/nile-select/nile-select.cjs.js +1 -1
  99. package/dist/nile-select/nile-select.cjs.js.map +1 -1
  100. package/dist/nile-select/nile-select.esm.js +1 -1
  101. package/dist/nile-select/nile-select.test.cjs.js +1 -1
  102. package/dist/nile-select/nile-select.test.esm.js +1 -1
  103. package/dist/nile-slide-toggle/nile-slide-toggle.test.cjs.js +1 -1
  104. package/dist/nile-slide-toggle/nile-slide-toggle.test.esm.js +1 -1
  105. package/dist/nile-tab-group/nile-tab-group.test.cjs.js +1 -1
  106. package/dist/nile-tab-group/nile-tab-group.test.esm.js +1 -1
  107. package/dist/nile-table/nile-table.cjs.js.map +1 -1
  108. package/dist/nile-textarea/nile-textarea.test.cjs.js +1 -1
  109. package/dist/nile-textarea/nile-textarea.test.esm.js +1 -1
  110. package/dist/nile-tooltip/index.cjs.js +1 -1
  111. package/dist/nile-tooltip/index.esm.js +1 -1
  112. package/dist/nile-tooltip/nile-tooltip.cjs.js +1 -1
  113. package/dist/nile-tooltip/nile-tooltip.cjs.js.map +1 -1
  114. package/dist/nile-tooltip/nile-tooltip.css.cjs.js +1 -1
  115. package/dist/nile-tooltip/nile-tooltip.css.cjs.js.map +1 -1
  116. package/dist/nile-tooltip/nile-tooltip.css.esm.js +45 -78
  117. package/dist/nile-tooltip/nile-tooltip.esm.js +28 -23
  118. package/dist/nile-tooltip/nile-tooltip.test.cjs.js +1 -1
  119. package/dist/nile-tooltip/nile-tooltip.test.esm.js +1 -1
  120. package/dist/src/index.d.ts +0 -1
  121. package/dist/src/index.js +0 -1
  122. package/dist/src/index.js.map +1 -1
  123. package/dist/src/nile-chip/nile-chip.js +0 -9
  124. package/dist/src/nile-chip/nile-chip.js.map +1 -1
  125. package/dist/src/nile-error-message/nile-error-message.css.js +4 -6
  126. package/dist/src/nile-error-message/nile-error-message.css.js.map +1 -1
  127. package/dist/src/nile-error-message/nile-error-message.d.ts +0 -4
  128. package/dist/src/nile-error-message/nile-error-message.js +0 -20
  129. package/dist/src/nile-error-message/nile-error-message.js.map +1 -1
  130. package/dist/src/nile-error-notification/nile-error-notification.css.js +1 -1
  131. package/dist/src/nile-error-notification/nile-error-notification.css.js.map +1 -1
  132. package/dist/src/nile-filter-chip/nile-filter-chip.css.js +17 -40
  133. package/dist/src/nile-filter-chip/nile-filter-chip.css.js.map +1 -1
  134. package/dist/src/nile-filter-chip/nile-filter-chip.d.ts +3 -4
  135. package/dist/src/nile-filter-chip/nile-filter-chip.js +12 -25
  136. package/dist/src/nile-filter-chip/nile-filter-chip.js.map +1 -1
  137. package/dist/src/nile-filter-chip/nile-filter-chip.test.js +12 -12
  138. package/dist/src/nile-filter-chip/nile-filter-chip.test.js.map +1 -1
  139. package/dist/src/nile-icon/icons/svg/accessreview.d.ts +1 -1
  140. package/dist/src/nile-icon/icons/svg/accessreview.js +1 -1
  141. package/dist/src/nile-icon/icons/svg/accessreview.js.map +1 -1
  142. package/dist/src/nile-new-error/index.d.ts +1 -0
  143. package/dist/src/nile-new-error/index.js +2 -0
  144. package/dist/src/nile-new-error/index.js.map +1 -0
  145. package/dist/src/{nile-file-preview/nile-file-preview.css.d.ts → nile-new-error/nile-new-error.css.d.ts} +1 -1
  146. package/dist/src/nile-new-error/nile-new-error.css.js +38 -0
  147. package/dist/src/nile-new-error/nile-new-error.css.js.map +1 -0
  148. package/dist/src/nile-new-error/nile-new-error.d.ts +36 -0
  149. package/dist/src/nile-new-error/nile-new-error.js +74 -0
  150. package/dist/src/nile-new-error/nile-new-error.js.map +1 -0
  151. package/dist/src/nile-progress-bar/nile-progress-bar.css.js +0 -1
  152. package/dist/src/nile-progress-bar/nile-progress-bar.css.js.map +1 -1
  153. package/dist/src/nile-select/nile-select.js +1 -1
  154. package/dist/src/nile-select/nile-select.js.map +1 -1
  155. package/dist/src/nile-table/nile-table.js.map +1 -1
  156. package/dist/src/nile-tooltip/nile-tooltip.css.js +43 -76
  157. package/dist/src/nile-tooltip/nile-tooltip.css.js.map +1 -1
  158. package/dist/src/nile-tooltip/nile-tooltip.d.ts +46 -24
  159. package/dist/src/nile-tooltip/nile-tooltip.js +232 -235
  160. package/dist/src/nile-tooltip/nile-tooltip.js.map +1 -1
  161. package/dist/src/nile-virtual-list/index.d.ts +1 -0
  162. package/dist/src/nile-virtual-list/index.js +2 -0
  163. package/dist/src/{nile-file-preview → nile-virtual-list}/index.js.map +1 -1
  164. package/dist/src/{nile-file-upload/nile-file-upload.css.d.ts → nile-virtual-list/nile-virtual-list.css.d.ts} +1 -1
  165. package/dist/src/nile-virtual-list/nile-virtual-list.css.js +25 -0
  166. package/dist/src/nile-virtual-list/nile-virtual-list.css.js.map +1 -0
  167. package/dist/src/nile-virtual-list/nile-virtual-list.d.ts +28 -0
  168. package/dist/src/nile-virtual-list/nile-virtual-list.js +69 -0
  169. package/dist/src/nile-virtual-list/nile-virtual-list.js.map +1 -0
  170. package/dist/src/nile-virtual-scroll/index.d.ts +1 -0
  171. package/dist/src/nile-virtual-scroll/index.js +2 -0
  172. package/dist/src/nile-virtual-scroll/index.js.map +1 -0
  173. package/dist/src/{nile-pagination/nile-pagination.css.d.ts → nile-virtual-scroll/nile-virtual-scroll.css.d.ts} +2 -2
  174. package/dist/src/{nile-rich-text-editor/nile-rich-text-editor.css.js → nile-virtual-scroll/nile-virtual-scroll.css.js} +3 -3
  175. package/dist/src/nile-virtual-scroll/nile-virtual-scroll.css.js.map +1 -0
  176. package/dist/src/nile-virtual-scroll/nile-virtual-scroll.d.ts +54 -0
  177. package/dist/src/nile-virtual-scroll/nile-virtual-scroll.js +196 -0
  178. package/dist/src/nile-virtual-scroll/nile-virtual-scroll.js.map +1 -0
  179. package/dist/src/nile-virtual-scroll/nile-virtual-scroll.utils.d.ts +23 -0
  180. package/dist/src/nile-virtual-scroll/nile-virtual-scroll.utils.js +48 -0
  181. package/dist/src/nile-virtual-scroll/nile-virtual-scroll.utils.js.map +1 -0
  182. package/dist/src/nile-virtual-select/event-handlers.d.ts +19 -0
  183. package/dist/src/nile-virtual-select/event-handlers.js +153 -0
  184. package/dist/src/nile-virtual-select/event-handlers.js.map +1 -0
  185. package/dist/src/nile-virtual-select/index.d.ts +1 -0
  186. package/dist/src/nile-virtual-select/index.js +2 -0
  187. package/dist/src/nile-virtual-select/index.js.map +1 -0
  188. package/dist/src/nile-virtual-select/models.d.ts +33 -0
  189. package/dist/src/nile-virtual-select/models.js +5 -0
  190. package/dist/src/nile-virtual-select/models.js.map +1 -0
  191. package/dist/src/nile-virtual-select/nile-virtual-select.css.d.ts +12 -0
  192. package/dist/src/nile-virtual-select/nile-virtual-select.css.js +463 -0
  193. package/dist/src/nile-virtual-select/nile-virtual-select.css.js.map +1 -0
  194. package/dist/src/nile-virtual-select/nile-virtual-select.d.ts +239 -0
  195. package/dist/src/nile-virtual-select/nile-virtual-select.js +1287 -0
  196. package/dist/src/nile-virtual-select/nile-virtual-select.js.map +1 -0
  197. package/dist/src/nile-virtual-select/nile-virtual-select.test.js +2 -0
  198. package/dist/src/nile-virtual-select/nile-virtual-select.test.js.map +1 -0
  199. package/dist/src/nile-virtual-select/nile-virtual-select.utils.js +2 -0
  200. package/dist/src/nile-virtual-select/nile-virtual-select.utils.js.map +1 -0
  201. package/dist/src/nile-virtual-select/option-utils.d.ts +15 -0
  202. package/dist/src/nile-virtual-select/option-utils.js +59 -0
  203. package/dist/src/nile-virtual-select/option-utils.js.map +1 -0
  204. package/dist/tsconfig.tsbuildinfo +1 -1
  205. package/package.json +2 -2
  206. package/plop-templates/lit/index.ts.hbs +1 -1
  207. package/plop-templates/lit/lit.css.ts.hbs +1 -1
  208. package/plop-templates/lit/lit.ts.hbs +3 -7
  209. package/plopfile.js +1 -32
  210. package/src/index.ts +1 -2
  211. package/src/nile-chip/nile-chip.ts +0 -9
  212. package/src/nile-error-message/nile-error-message.css.ts +4 -6
  213. package/src/nile-error-message/nile-error-message.ts +0 -18
  214. package/src/nile-error-notification/nile-error-notification.css.ts +1 -1
  215. package/src/nile-icon/icons/svg/accessreview.ts +1 -1
  216. package/src/nile-progress-bar/nile-progress-bar.css.ts +0 -1
  217. package/src/nile-select/nile-select.ts +1 -1
  218. package/src/nile-table/nile-table.ts +2 -2
  219. package/src/nile-tooltip/nile-tooltip.css.ts +44 -77
  220. package/src/nile-tooltip/nile-tooltip.ts +230 -268
  221. package/vscode-html-custom-data.json +95 -144
  222. package/dist/_commonjsHelpers-e8f8776f.cjs.js +0 -2
  223. package/dist/_commonjsHelpers-e8f8776f.cjs.js.map +0 -1
  224. package/dist/_commonjsHelpers-f94d783e.esm.js +0 -1
  225. package/dist/axe.min-61450170.cjs.js +0 -12
  226. package/dist/axe.min-61450170.cjs.js.map +0 -1
  227. package/dist/axe.min-640ded4a.esm.js +0 -12
  228. package/dist/fixture-205f11fa.cjs.js +0 -395
  229. package/dist/fixture-205f11fa.cjs.js.map +0 -1
  230. package/dist/fixture-2b5b3aba.esm.js +0 -569
  231. package/dist/lit-html-39a6718c.esm.js +0 -6
  232. package/dist/lit-html-9b3af046.cjs.js +0 -6
  233. package/dist/lit-html-9b3af046.cjs.js.map +0 -1
  234. package/dist/nile-file-preview/index.cjs.js +0 -2
  235. package/dist/nile-file-preview/index.cjs.js.map +0 -1
  236. package/dist/nile-file-preview/index.esm.js +0 -1
  237. package/dist/nile-file-preview/nile-file-preview.cjs.js +0 -2
  238. package/dist/nile-file-preview/nile-file-preview.cjs.js.map +0 -1
  239. package/dist/nile-file-preview/nile-file-preview.css.cjs.js +0 -2
  240. package/dist/nile-file-preview/nile-file-preview.css.cjs.js.map +0 -1
  241. package/dist/nile-file-preview/nile-file-preview.css.esm.js +0 -521
  242. package/dist/nile-file-preview/nile-file-preview.esm.js +0 -3
  243. package/dist/nile-file-preview/nile-file-preview.template.cjs.js +0 -2
  244. package/dist/nile-file-preview/nile-file-preview.template.cjs.js.map +0 -1
  245. package/dist/nile-file-preview/nile-file-preview.template.esm.js +0 -117
  246. package/dist/nile-file-preview/nile-file-preview.test.cjs.js +0 -2
  247. package/dist/nile-file-preview/nile-file-preview.test.cjs.js.map +0 -1
  248. package/dist/nile-file-preview/nile-file-preview.test.esm.js +0 -1
  249. package/dist/nile-file-preview/types/file-preview.enums.cjs.js +0 -2
  250. package/dist/nile-file-preview/types/file-preview.enums.cjs.js.map +0 -1
  251. package/dist/nile-file-preview/types/file-preview.enums.esm.js +0 -1
  252. package/dist/nile-file-preview/types/file-preview.interface.cjs.js +0 -2
  253. package/dist/nile-file-preview/types/file-preview.interface.cjs.js.map +0 -1
  254. package/dist/nile-file-preview/types/file-preview.interface.esm.js +0 -1
  255. package/dist/nile-file-preview/types/index.cjs.js +0 -2
  256. package/dist/nile-file-preview/types/index.cjs.js.map +0 -1
  257. package/dist/nile-file-preview/types/index.esm.js +0 -1
  258. package/dist/nile-file-preview/utils/file-preview.util.cjs.js +0 -2
  259. package/dist/nile-file-preview/utils/file-preview.util.cjs.js.map +0 -1
  260. package/dist/nile-file-preview/utils/file-preview.util.esm.js +0 -1
  261. package/dist/nile-file-preview/utils/index.cjs.js +0 -2
  262. package/dist/nile-file-preview/utils/index.cjs.js.map +0 -1
  263. package/dist/nile-file-preview/utils/index.esm.js +0 -1
  264. package/dist/nile-file-upload/index.cjs.js +0 -2
  265. package/dist/nile-file-upload/index.cjs.js.map +0 -1
  266. package/dist/nile-file-upload/index.esm.js +0 -1
  267. package/dist/nile-file-upload/nile-file-upload.cjs.js +0 -2
  268. package/dist/nile-file-upload/nile-file-upload.cjs.js.map +0 -1
  269. package/dist/nile-file-upload/nile-file-upload.css.cjs.js +0 -2
  270. package/dist/nile-file-upload/nile-file-upload.css.cjs.js.map +0 -1
  271. package/dist/nile-file-upload/nile-file-upload.css.esm.js +0 -535
  272. package/dist/nile-file-upload/nile-file-upload.esm.js +0 -3
  273. package/dist/nile-file-upload/nile-file-upload.template.cjs.js +0 -10
  274. package/dist/nile-file-upload/nile-file-upload.template.cjs.js.map +0 -1
  275. package/dist/nile-file-upload/nile-file-upload.template.esm.js +0 -155
  276. package/dist/nile-file-upload/nile-file-upload.test.cjs.js +0 -2
  277. package/dist/nile-file-upload/nile-file-upload.test.cjs.js.map +0 -1
  278. package/dist/nile-file-upload/nile-file-upload.test.esm.js +0 -1
  279. package/dist/nile-file-upload/types/file-upload.enums.cjs.js +0 -2
  280. package/dist/nile-file-upload/types/file-upload.enums.cjs.js.map +0 -1
  281. package/dist/nile-file-upload/types/file-upload.enums.esm.js +0 -1
  282. package/dist/nile-file-upload/types/file-upload.type.cjs.js +0 -2
  283. package/dist/nile-file-upload/types/file-upload.type.cjs.js.map +0 -1
  284. package/dist/nile-file-upload/types/file-upload.type.esm.js +0 -1
  285. package/dist/nile-file-upload/types/index.cjs.js +0 -2
  286. package/dist/nile-file-upload/types/index.cjs.js.map +0 -1
  287. package/dist/nile-file-upload/types/index.esm.js +0 -1
  288. package/dist/nile-file-upload/utils/drag-drop.util.cjs.js +0 -2
  289. package/dist/nile-file-upload/utils/drag-drop.util.cjs.js.map +0 -1
  290. package/dist/nile-file-upload/utils/drag-drop.util.esm.js +0 -1
  291. package/dist/nile-file-upload/utils/file-validation.util.cjs.js +0 -2
  292. package/dist/nile-file-upload/utils/file-validation.util.cjs.js.map +0 -1
  293. package/dist/nile-file-upload/utils/file-validation.util.esm.js +0 -1
  294. package/dist/nile-rich-text-editor/index.cjs.js +0 -2
  295. package/dist/nile-rich-text-editor/index.cjs.js.map +0 -1
  296. package/dist/nile-rich-text-editor/index.esm.js +0 -1
  297. package/dist/nile-rich-text-editor/nile-rich-text-editor.cjs.js +0 -10
  298. package/dist/nile-rich-text-editor/nile-rich-text-editor.cjs.js.map +0 -1
  299. package/dist/nile-rich-text-editor/nile-rich-text-editor.css.cjs.js +0 -2
  300. package/dist/nile-rich-text-editor/nile-rich-text-editor.css.cjs.js.map +0 -1
  301. package/dist/nile-rich-text-editor/nile-rich-text-editor.css.esm.js +0 -5
  302. package/dist/nile-rich-text-editor/nile-rich-text-editor.esm.js +0 -28
  303. package/dist/nile-rich-text-editor/nile-rich-text-editor.template.cjs.js +0 -2
  304. package/dist/nile-rich-text-editor/nile-rich-text-editor.template.cjs.js.map +0 -1
  305. package/dist/nile-rich-text-editor/nile-rich-text-editor.template.esm.js +0 -1
  306. package/dist/nile-rich-text-editor/nile-rich-text-editor.test.cjs.js +0 -2
  307. package/dist/nile-rich-text-editor/nile-rich-text-editor.test.cjs.js.map +0 -1
  308. package/dist/nile-rich-text-editor/nile-rich-text-editor.test.esm.js +0 -1
  309. package/dist/nile-rich-text-editor/sub-components/nile-rich-text-editor.cjs.js +0 -2
  310. package/dist/nile-rich-text-editor/sub-components/nile-rich-text-editor.cjs.js.map +0 -1
  311. package/dist/nile-rich-text-editor/sub-components/nile-rich-text-editor.esm.js +0 -1
  312. package/dist/nile-rich-text-editor/types/index.cjs.js +0 -2
  313. package/dist/nile-rich-text-editor/types/index.cjs.js.map +0 -1
  314. package/dist/nile-rich-text-editor/types/index.esm.js +0 -1
  315. package/dist/nile-rich-text-editor/types/rich-text-editor.type.cjs.js +0 -2
  316. package/dist/nile-rich-text-editor/types/rich-text-editor.type.cjs.js.map +0 -1
  317. package/dist/nile-rich-text-editor/types/rich-text-editor.type.esm.js +0 -1
  318. package/dist/nile-rich-text-editor/utils/nile-rich-text-editor.utils.cjs.js +0 -2
  319. package/dist/nile-rich-text-editor/utils/nile-rich-text-editor.utils.cjs.js.map +0 -1
  320. package/dist/nile-rich-text-editor/utils/nile-rich-text-editor.utils.esm.js +0 -1
  321. package/dist/src/nile-file-preview/index.d.ts +0 -1
  322. package/dist/src/nile-file-preview/index.js +0 -2
  323. package/dist/src/nile-file-preview/nile-file-preview.css.js +0 -533
  324. package/dist/src/nile-file-preview/nile-file-preview.css.js.map +0 -1
  325. package/dist/src/nile-file-preview/nile-file-preview.d.ts +0 -48
  326. package/dist/src/nile-file-preview/nile-file-preview.js +0 -149
  327. package/dist/src/nile-file-preview/nile-file-preview.js.map +0 -1
  328. package/dist/src/nile-file-preview/nile-file-preview.template.d.ts +0 -11
  329. package/dist/src/nile-file-preview/nile-file-preview.template.js +0 -144
  330. package/dist/src/nile-file-preview/nile-file-preview.template.js.map +0 -1
  331. package/dist/src/nile-file-preview/nile-file-preview.test.d.ts +0 -7
  332. package/dist/src/nile-file-preview/nile-file-preview.test.js +0 -30
  333. package/dist/src/nile-file-preview/nile-file-preview.test.js.map +0 -1
  334. package/dist/src/nile-file-preview/types/file-preview.enums.d.ts +0 -23
  335. package/dist/src/nile-file-preview/types/file-preview.enums.js +0 -28
  336. package/dist/src/nile-file-preview/types/file-preview.enums.js.map +0 -1
  337. package/dist/src/nile-file-preview/types/file-preview.interface.d.ts +0 -4
  338. package/dist/src/nile-file-preview/types/file-preview.interface.js +0 -2
  339. package/dist/src/nile-file-preview/types/file-preview.interface.js.map +0 -1
  340. package/dist/src/nile-file-preview/types/index.d.ts +0 -2
  341. package/dist/src/nile-file-preview/types/index.js +0 -3
  342. package/dist/src/nile-file-preview/types/index.js.map +0 -1
  343. package/dist/src/nile-file-preview/types/nile-file-preview.enums.d.ts +0 -26
  344. package/dist/src/nile-file-preview/types/nile-file-preview.enums.js +0 -31
  345. package/dist/src/nile-file-preview/types/nile-file-preview.enums.js.map +0 -1
  346. package/dist/src/nile-file-preview/types/nile-file-preview.interface.d.ts +0 -4
  347. package/dist/src/nile-file-preview/types/nile-file-preview.interface.js +0 -2
  348. package/dist/src/nile-file-preview/types/nile-file-preview.interface.js.map +0 -1
  349. package/dist/src/nile-file-preview/utils/file-preview.util.d.ts +0 -3
  350. package/dist/src/nile-file-preview/utils/file-preview.util.js +0 -29
  351. package/dist/src/nile-file-preview/utils/file-preview.util.js.map +0 -1
  352. package/dist/src/nile-file-preview/utils/index.d.ts +0 -1
  353. package/dist/src/nile-file-preview/utils/index.js +0 -2
  354. package/dist/src/nile-file-preview/utils/index.js.map +0 -1
  355. package/dist/src/nile-file-preview/utils/nile-file-preview.util.d.ts +0 -4
  356. package/dist/src/nile-file-preview/utils/nile-file-preview.util.js +0 -45
  357. package/dist/src/nile-file-preview/utils/nile-file-preview.util.js.map +0 -1
  358. package/dist/src/nile-file-upload/index.d.ts +0 -1
  359. package/dist/src/nile-file-upload/index.js +0 -2
  360. package/dist/src/nile-file-upload/index.js.map +0 -1
  361. package/dist/src/nile-file-upload/nile-file-upload.css.js +0 -547
  362. package/dist/src/nile-file-upload/nile-file-upload.css.js.map +0 -1
  363. package/dist/src/nile-file-upload/nile-file-upload.d.ts +0 -45
  364. package/dist/src/nile-file-upload/nile-file-upload.js +0 -148
  365. package/dist/src/nile-file-upload/nile-file-upload.js.map +0 -1
  366. package/dist/src/nile-file-upload/nile-file-upload.template.d.ts +0 -11
  367. package/dist/src/nile-file-upload/nile-file-upload.template.js +0 -163
  368. package/dist/src/nile-file-upload/nile-file-upload.template.js.map +0 -1
  369. package/dist/src/nile-file-upload/nile-file-upload.test.d.ts +0 -7
  370. package/dist/src/nile-file-upload/nile-file-upload.test.js +0 -30
  371. package/dist/src/nile-file-upload/nile-file-upload.test.js.map +0 -1
  372. package/dist/src/nile-file-upload/types/file-upload.enums.d.ts +0 -28
  373. package/dist/src/nile-file-upload/types/file-upload.enums.js +0 -35
  374. package/dist/src/nile-file-upload/types/file-upload.enums.js.map +0 -1
  375. package/dist/src/nile-file-upload/types/file-upload.type.d.ts +0 -4
  376. package/dist/src/nile-file-upload/types/file-upload.type.js +0 -2
  377. package/dist/src/nile-file-upload/types/file-upload.type.js.map +0 -1
  378. package/dist/src/nile-file-upload/types/index.d.ts +0 -2
  379. package/dist/src/nile-file-upload/types/index.js +0 -3
  380. package/dist/src/nile-file-upload/types/index.js.map +0 -1
  381. package/dist/src/nile-file-upload/utils/drag-drop.util.d.ts +0 -19
  382. package/dist/src/nile-file-upload/utils/drag-drop.util.js +0 -77
  383. package/dist/src/nile-file-upload/utils/drag-drop.util.js.map +0 -1
  384. package/dist/src/nile-file-upload/utils/file-validation.util.d.ts +0 -9
  385. package/dist/src/nile-file-upload/utils/file-validation.util.js +0 -58
  386. package/dist/src/nile-file-upload/utils/file-validation.util.js.map +0 -1
  387. package/dist/src/nile-pagination/index.d.ts +0 -1
  388. package/dist/src/nile-pagination/index.js +0 -2
  389. package/dist/src/nile-pagination/index.js.map +0 -1
  390. package/dist/src/nile-pagination/nile-pagination.css.js +0 -156
  391. package/dist/src/nile-pagination/nile-pagination.css.js.map +0 -1
  392. package/dist/src/nile-pagination/nile-pagination.d.ts +0 -36
  393. package/dist/src/nile-pagination/nile-pagination.js +0 -170
  394. package/dist/src/nile-pagination/nile-pagination.js.map +0 -1
  395. package/dist/src/nile-pagination/nile-pagination.template.d.ts +0 -3
  396. package/dist/src/nile-pagination/nile-pagination.template.js +0 -5
  397. package/dist/src/nile-pagination/nile-pagination.template.js.map +0 -1
  398. package/dist/src/nile-pagination/nile-pagination.test.d.ts +0 -7
  399. package/dist/src/nile-pagination/nile-pagination.test.js +0 -30
  400. package/dist/src/nile-pagination/nile-pagination.test.js.map +0 -1
  401. package/dist/src/nile-pagination/sub-components/nile-pagination.js +0 -2
  402. package/dist/src/nile-pagination/sub-components/nile-pagination.js.map +0 -1
  403. package/dist/src/nile-pagination/types/index.js +0 -2
  404. package/dist/src/nile-pagination/types/index.js.map +0 -1
  405. package/dist/src/nile-pagination/types/pagination.type.d.ts +0 -3
  406. package/dist/src/nile-pagination/types/pagination.type.js +0 -5
  407. package/dist/src/nile-pagination/types/pagination.type.js.map +0 -1
  408. package/dist/src/nile-pagination/utils/nile-pagination.utils.d.ts +0 -0
  409. package/dist/src/nile-pagination/utils/nile-pagination.utils.js +0 -2
  410. package/dist/src/nile-pagination/utils/nile-pagination.utils.js.map +0 -1
  411. package/dist/src/nile-rich-text-editor/index.d.ts +0 -1
  412. package/dist/src/nile-rich-text-editor/index.js +0 -2
  413. package/dist/src/nile-rich-text-editor/index.js.map +0 -1
  414. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.css.d.ts +0 -12
  415. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.css.js.map +0 -1
  416. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.d.ts +0 -10
  417. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.js +0 -62
  418. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.js.map +0 -1
  419. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.template.d.ts +0 -3
  420. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.template.js +0 -5
  421. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.template.js.map +0 -1
  422. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.test.d.ts +0 -7
  423. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.test.js +0 -30
  424. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.test.js.map +0 -1
  425. package/dist/src/nile-rich-text-editor/quill/quill.d.ts +0 -8
  426. package/dist/src/nile-rich-text-editor/quill/quill.js +0 -19
  427. package/dist/src/nile-rich-text-editor/quill/quill.js.map +0 -1
  428. package/dist/src/nile-rich-text-editor/sub-components/nile-rich-text-editor.d.ts +0 -0
  429. package/dist/src/nile-rich-text-editor/sub-components/nile-rich-text-editor.js +0 -2
  430. package/dist/src/nile-rich-text-editor/sub-components/nile-rich-text-editor.js.map +0 -1
  431. package/dist/src/nile-rich-text-editor/types/index.d.ts +0 -0
  432. package/dist/src/nile-rich-text-editor/types/index.js +0 -2
  433. package/dist/src/nile-rich-text-editor/types/index.js.map +0 -1
  434. package/dist/src/nile-rich-text-editor/types/rich-text-editor.type.d.ts +0 -3
  435. package/dist/src/nile-rich-text-editor/types/rich-text-editor.type.js +0 -5
  436. package/dist/src/nile-rich-text-editor/types/rich-text-editor.type.js.map +0 -1
  437. package/dist/src/nile-rich-text-editor/utils/nile-rich-text-editor.utils.d.ts +0 -0
  438. package/dist/src/nile-rich-text-editor/utils/nile-rich-text-editor.utils.js +0 -2
  439. package/dist/src/nile-rich-text-editor/utils/nile-rich-text-editor.utils.js.map +0 -1
  440. package/plop-templates/lit/lit.template.ts.hbs +0 -3
  441. package/plop-templates/lit/lit.test.ts.hbs +0 -38
  442. package/plop-templates/lit/sub-components/index.ts.hbs +0 -4
  443. package/plop-templates/lit/types/index.ts.hbs +0 -0
  444. package/plop-templates/lit/types/type.ts.hbs +0 -3
  445. package/plop-templates/lit/utils/lit.utils.ts.hbs +0 -4
  446. package/src/nile-filter-chip/index.ts +0 -1
  447. package/src/nile-filter-chip/nile-filter-chip.css.ts +0 -138
  448. package/src/nile-filter-chip/nile-filter-chip.test.ts +0 -92
  449. package/src/nile-filter-chip/nile-filter-chip.ts +0 -136
  450. package/src/nile-tooltip/nile-tooltip-utils.ts +0 -271
  451. package/src/nile-tooltip/nile-tooltip.test.ts +0 -168
  452. /package/dist/src/{nile-pagination/sub-components/nile-pagination.d.ts → nile-virtual-select/nile-virtual-select.test.d.ts} +0 -0
  453. /package/dist/src/{nile-pagination/types/index.d.ts → nile-virtual-select/nile-virtual-select.utils.d.ts} +0 -0
@@ -28,17 +28,6 @@ let NileErrorMessage = class NileErrorMessage extends LitElement {
28
28
  }
29
29
  return this.errorResponse;
30
30
  }
31
- updated(changedProperties) {
32
- if (changedProperties.has('maxWidth')) {
33
- this.style.setProperty('--nile-error-max-width', this.maxWidth);
34
- }
35
- if (changedProperties.has('maxHeight')) {
36
- this.style.setProperty('--nile-error-max-height', this.maxHeight);
37
- }
38
- if (changedProperties.has('maxDialogHeight')) {
39
- this.style.setProperty('--nile-error-max-dialog-height', this.maxDialogHeight);
40
- }
41
- }
42
31
  /**
43
32
  * Toggle the expanded state of the error response.
44
33
  */
@@ -99,15 +88,6 @@ __decorate([
99
88
  __decorate([
100
89
  property({ type: Boolean })
101
90
  ], NileErrorMessage.prototype, "isExpanded", void 0);
102
- __decorate([
103
- property({ type: String })
104
- ], NileErrorMessage.prototype, "maxWidth", void 0);
105
- __decorate([
106
- property({ type: String })
107
- ], NileErrorMessage.prototype, "maxHeight", void 0);
108
- __decorate([
109
- property({ type: String })
110
- ], NileErrorMessage.prototype, "maxDialogHeight", void 0);
111
91
  NileErrorMessage = __decorate([
112
92
  customElement('nile-error-message')
113
93
  ], NileErrorMessage);
@@ -1 +1 @@
1
- {"version":3,"file":"nile-error-message.js","sourceRoot":"","sources":["../../../src/nile-error-message/nile-error-message.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,UAAU,EACV,IAAI,GAGL,MAAM,KAAK,CAAC;AACb,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD;;;GAGG;AAEI,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,UAAU;IAAzC;;QAKL,4DAA4D;QAE5D,iBAAY,GAAW,EAAE,CAAC;QAW1B,eAAU,GAAY,KAAK,CAAC;QAQ5B,wCAAwC;QACvB,eAAU,GAAW,GAAG,CAAC;IA0E5C,CAAC;IApGQ,MAAM,KAAK,MAAM;QACtB,OAAO,CAAC,MAAM,CAAC,CAAC;IAClB,CAAC;IA0BD;;;OAGG;IACH,oBAAoB;QAClB,IAAI,IAAI,CAAC,aAAa,CAAC,MAAM,GAAG,IAAI,CAAC,UAAU,EAAE,CAAC;YAChD,OAAO,GAAG,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC;QA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C,WAAW;;YAEb,IAAI,CAAC,iBAAiB;;;KAG7B,CAAC;IACJ,CAAC;CACF,CAAA;AA9FC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;sDACD;AAI1B;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;uDACL;AAItB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;2DACD;AAG1B;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;oDACA;AAEA;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;kDAAkB;AAEjB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;mDAAmB;AAElB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;yDAAyB;AAxBzC,gBAAgB;IAD5B,aAAa,CAAC,oBAAoB,CAAC;GACvB,gBAAgB,CAqG5B","sourcesContent":["import {\n LitElement,\n html,\n CSSResultArray,\n TemplateResult,\n} from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { styles } from './nile-error-message.css';\n\n/**\n * A custom error message component that displays error information to the user.\n * @customElement nile-error-message\n */\n@customElement('nile-error-message')\nexport class NileErrorMessage extends LitElement {\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n // Represents the error message to be displayed to the user.\n @property({ type: String })\n errorMessage: string = '';\n\n // Represents additional details about the error, like stack trace or other info.\n @property({ type: String })\n errorResponse: string;\n\n // Extended error information\n @property({ type: String })\n errorResponseLong: string;\n\n @property({ type: Boolean })\n isExpanded: boolean = false;\n\n @property({ type: String }) maxWidth: string;\n\n @property({ type: String }) maxHeight: string;\n\n @property({ type: String }) maxDialogHeight: string;\n\n // The maximum length before truncation.\n private readonly MAX_LENGTH: number = 100;\n\n /**\n * Get a truncated version of the errorResponse if it's too long.\n * @returns {string}\n */\n getTruncatedResponse(): string {\n if (this.errorResponse.length > this.MAX_LENGTH) {\n return `${this.errorResponse.substring(0, this.MAX_LENGTH)}...`;\n }\n return this.errorResponse;\n }\n\n updated(changedProperties: Map<string, any>) {\n if (changedProperties.has('maxWidth')) {\n this.style.setProperty('--nile-error-max-width', this.maxWidth);\n }\n if (changedProperties.has('maxHeight')) {\n this.style.setProperty('--nile-error-max-height', this.maxHeight);\n }\n if (changedProperties.has('maxDialogHeight')) {\n this.style.setProperty('--nile-error-max-dialog-height', this.maxDialogHeight);\n }\n }\n\n /**\n * Toggle the expanded state of the error response.\n */\n toggleExpanded() {\n this.isExpanded = !this.isExpanded;\n }\n\n public render(): TemplateResult {\n const iconName = this.isExpanded ? 'arrowup' : 'arrowdown';\n\n return html`\n <div class=\"nile-error-message\" part=\"base\">\n <nile-icon\n name=\"info2\"\n size=\"14\"\n class=\"nile-error-message__icon\"\n part=\"icon\"\n color=\"var(--nile-colors-red-700)\"\n ></nile-icon>\n <span class=\"nile-error-message__error\">${this.errorMessage}</span>\n\n\n ${this.errorResponse\n ? html`\n <div class=\"nile-error-message__response\">\n ${this.errorResponse}\n ${this.errorResponseLong\n ? html`\n <span\n class=\"nile-error-message__more-button\"\n @click=${this.toggleExpanded}\n >${this.isExpanded ? 'View Less' : 'View More'}\n <nile-icon color=\"var(--nile-colors-primary-600)\" part=\"icon\" size=\"14\" name=\"${iconName}\"></nile-icon>\n </span\n > `:``}\n </div>\n `\n : ``}\n\n <div\n class=\"nile-error-message__response-expanded ${this.isExpanded\n ? 'expanded'\n : 'collapsed'}\"\n >\n ${this.errorResponseLong}\n </div>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-error-message': NileErrorMessage;\n }\n}\n"]}
1
+ {"version":3,"file":"nile-error-message.js","sourceRoot":"","sources":["../../../src/nile-error-message/nile-error-message.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,UAAU,EACV,IAAI,GAGL,MAAM,KAAK,CAAC;AACb,OAAO,EAAE,aAA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AAE;;;yDAG6C,IAAI,CAAC,UAAU;YAC5D,CAAC,CAAC,UAAU;YACZ,CAAC,CAAC,WAAW;;YAEb,IAAI,CAAC,iBAAiB;;;KAG7B,CAAC;IACJ,CAAC;CACF,CAAA;AA5EC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;sDACD;AAI1B;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;uDACL;AAItB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;2DACD;AAG1B;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;oDACA;AAlBjB,gBAAgB;IAD5B,aAAa,CAAC,oBAAoB,CAAC;GACvB,gBAAgB,CAmF5B","sourcesContent":["import {\n LitElement,\n html,\n CSSResultArray,\n TemplateResult,\n} from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { styles } from './nile-error-message.css';\n\n/**\n * A custom error message component that displays error information to the user.\n * @customElement nile-error-message\n */\n@customElement('nile-error-message')\nexport class NileErrorMessage extends LitElement {\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n // Represents the error message to be displayed to the user.\n @property({ type: String })\n errorMessage: string = '';\n\n // Represents additional details about the error, like stack trace or other info.\n @property({ type: String })\n errorResponse: string;\n\n // Extended error information\n @property({ type: String })\n errorResponseLong: string;\n\n @property({ type: Boolean })\n isExpanded: boolean = false;\n\n // The maximum length before truncation.\n private readonly MAX_LENGTH: number = 100;\n\n /**\n * Get a truncated version of the errorResponse if it's too long.\n * @returns {string}\n */\n getTruncatedResponse(): string {\n if (this.errorResponse.length > this.MAX_LENGTH) {\n return `${this.errorResponse.substring(0, this.MAX_LENGTH)}...`;\n }\n return this.errorResponse;\n }\n\n /**\n * Toggle the expanded state of the error response.\n */\n toggleExpanded() {\n this.isExpanded = !this.isExpanded;\n }\n\n public render(): TemplateResult {\n const iconName = this.isExpanded ? 'arrowup' : 'arrowdown';\n\n return html`\n <div class=\"nile-error-message\" part=\"base\">\n <nile-icon\n name=\"info2\"\n size=\"14\"\n class=\"nile-error-message__icon\"\n part=\"icon\"\n color=\"var(--nile-colors-red-700)\"\n ></nile-icon>\n <span class=\"nile-error-message__error\">${this.errorMessage}</span>\n\n\n ${this.errorResponse\n ? html`\n <div class=\"nile-error-message__response\">\n ${this.errorResponse}\n ${this.errorResponseLong\n ? html`\n <span\n class=\"nile-error-message__more-button\"\n @click=${this.toggleExpanded}\n >${this.isExpanded ? 'View Less' : 'View More'}\n <nile-icon color=\"var(--nile-colors-primary-600)\" part=\"icon\" size=\"14\" name=\"${iconName}\"></nile-icon>\n </span\n > `:``}\n </div>\n `\n : ``}\n\n <div\n class=\"nile-error-message__response-expanded ${this.isExpanded\n ? 'expanded'\n : 'collapsed'}\"\n >\n ${this.errorResponseLong}\n </div>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-error-message': NileErrorMessage;\n }\n}\n"]}
@@ -10,7 +10,7 @@ import { css } from 'lit';
10
10
  */
11
11
  export const styles = css `
12
12
  :host {
13
- --indication-color: var(--nile-colors-red-700);
13
+ --indication-color: var(--nile-colors-red-500);
14
14
  }
15
15
 
16
16
  .nile-error-notification {
@@ -1 +1 @@
1
- {"version":3,"file":"nile-error-notification.css.js","sourceRoot":"","sources":["../../../src/nile-error-notification/nile-error-notification.css.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;CAyBxB,CAAC;AAEF,eAAe,CAAC,MAAM,CAAC,CAAC","sourcesContent":["/**\n * Copyright Aquera Inc 2023\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 * ErrorNotification CSS\n */\nexport const styles = css`\n :host {\n --indication-color: var(--nile-colors-red-700);\n }\n\n .nile-error-notification {\n font-family: var(--nile-font-family-serif);\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n line-height: 12px;\n letter-spacing: 0.2px;\n border: 1px solid var(--indication-color);\n border-left: 6px solid var(--indication-color);\n border-radius: 4px;\n padding: 8px;\n background: var(--nile-colors-neutral-100);\n color: var(--indication-color);\n box-sizing: border-box;\n }\n\n .nile-error-notification__icon {\n vertical-align: middle;\n margin-right: 4px;\n }\n`;\n\nexport default [styles];\n"]}
1
+ {"version":3,"file":"nile-error-notification.css.js","sourceRoot":"","sources":["../../../src/nile-error-notification/nile-error-notification.css.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;CAyBxB,CAAC;AAEF,eAAe,CAAC,MAAM,CAAC,CAAC","sourcesContent":["/**\n * Copyright Aquera Inc 2023\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 * ErrorNotification CSS\n */\nexport const styles = css`\n :host {\n --indication-color: var(--nile-colors-red-500);\n }\n\n .nile-error-notification {\n font-family: var(--nile-font-family-serif);\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n line-height: 12px;\n letter-spacing: 0.2px;\n border: 1px solid var(--indication-color);\n border-left: 6px solid var(--indication-color);\n border-radius: 4px;\n padding: 8px;\n background: var(--nile-colors-neutral-100);\n color: var(--indication-color);\n box-sizing: border-box;\n }\n\n .nile-error-notification__icon {\n vertical-align: middle;\n margin-right: 4px;\n }\n`;\n\nexport default [styles];\n"]}
@@ -20,30 +20,26 @@ export const styles = css `
20
20
  .chip {
21
21
  display: inline-flex;
22
22
  align-items: center;
23
- height: 30px;
24
- padding: 8px;
23
+ padding: 4px 8px;
25
24
  border: 1px solid var(--nile-filter-chip-chip-border-color-stroke);
26
- border-radius: 4px;
27
- font-size: 14px;
25
+ border-radius: var(--nile-radius-radius-xs);
26
+ font-size: var(--nile-type-scale-3);
28
27
  background-color: var(--nile-filter-chip-background-default);
29
28
  color: var(--nile-filter-chip-text-default);
30
29
  transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
31
30
  cursor: pointer;
32
- box-sizing: border-box;
31
+ gap: 6px;
32
+ margin-right: 6px;
33
33
  }
34
34
 
35
35
  .chip:hover {
36
36
  background-color: var(--nile-filter-chip-hover-background);
37
37
  }
38
- .chip:active {
39
- background-color: var(--nile-filter-chip-active-background);
40
- border-color: var(--nile-filter-chip-active-border-color-stroke);
41
- }
42
- :host([active]) .chip {
43
- background-color: var(--nile-filter-chip-active-background);
44
- border-color: var(--nile-filter-chip-active-border-color-stroke);
45
- }
46
38
 
39
+ .chip:active {
40
+ background-color: var(--nile-filter-chip-active-background);
41
+ border-color: var(--nile-filter-chip-active-border-color-stroke);
42
+ }
47
43
 
48
44
  .icon {
49
45
  color: var(--nile-filter-chip-icon-color-default);
@@ -87,22 +83,20 @@ export const styles = css `
87
83
  }
88
84
 
89
85
 
90
- .value {
91
- color: var(--nile-filter-chip-values-color-default);
92
- display: inline-block;
93
- overflow: hidden;
94
- text-overflow: ellipsis;
95
- white-space: nowrap;
96
- max-width: 140px;
97
- vertical-align: bottom;
98
- }
99
-
86
+ .value {
87
+ color: var(--nile-filter-chip-values-color-default);
88
+ overflow: hidden;
89
+ text-overflow: ellipsis;
90
+ white-space: nowrap;
91
+ max-width: 140px;
92
+ }
100
93
 
101
94
  .close-icon {
102
95
  color: var(--nile-filter-chip-close-icon-color-default);
103
96
  cursor: pointer;
104
97
  display: flex;
105
98
  align-items: center;
99
+ padding: 2px;
106
100
  border-radius: 50%;
107
101
  transition: background-color 0.2s;
108
102
  }
@@ -111,23 +105,6 @@ export const styles = css `
111
105
  background-color: var(--nile-filter-chip-close-icon-hover-background);
112
106
  color: var(--nile-filter-chip-close-icon-hover-color);
113
107
  }
114
-
115
- .label-wrapper {
116
- margin-right: 4px;
117
- }
118
-
119
- ::slotted([slot="icon"]) {
120
- margin-right: 6px;
121
- }
122
-
123
- .value-wrapper {
124
- margin-right: 4px;
125
- }
126
-
127
- .badge-wrapper {
128
- margin-right: 12px;
129
- }
130
-
131
108
  `;
132
109
  export default [styles];
133
110
  //# sourceMappingURL=nile-filter-chip.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nile-filter-chip.css.js","sourceRoot":"","sources":["../../../src/nile-filter-chip/nile-filter-chip.css.ts"],"names":[],"mappings":"AAAA;;;;;EAKE;AAEF,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAC;AAExB;;GAEG;AAEH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwHxB,CAAC;AAEF,eAAe,CAAC,MAAM,CAAC,CAAC","sourcesContent":["/**\n* Copyright Aquera Inc 2023\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 * FilterChip CSS\n */\n\nexport const styles = css`\n\n\n .filter-chips {\n display: flex;\n align-items: center;\n }\n\n\n .chip {\n display: inline-flex;\n align-items: center;\n height: 30px;\n padding: 8px;\n border: 1px solid var(--nile-filter-chip-chip-border-color-stroke);\n border-radius: 4px;\n font-size: 14px;\n background-color: var(--nile-filter-chip-background-default);\n color: var(--nile-filter-chip-text-default);\n transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;\n cursor: pointer;\n box-sizing: border-box;\n }\n\n .chip:hover {\n background-color: var(--nile-filter-chip-hover-background);\n }\n .chip:active {\n background-color: var(--nile-filter-chip-active-background);\n border-color: var(--nile-filter-chip-active-border-color-stroke);\n}\n:host([active]) .chip {\n background-color: var(--nile-filter-chip-active-background);\n border-color: var(--nile-filter-chip-active-border-color-stroke);\n}\n\n\n .icon {\n color: var(--nile-filter-chip-icon-color-default);\n display: flex;\n align-items: center;\n justify-content: center;\n vertical-align: middle;\n position: relative;\n top: 12px;\n }\n\n .label {\n font-weight: 500;\n color: var(--nile-filter-chip-label-color-default);\n }\n\n nile-badge::part(base) {\n width: auto;\n height: 14px;\n border-radius: 100px;\n padding: 6px;\n gap: 10px;\n font-size: 8px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n line-height: 1;\n }\n\n .chip-container {\n display: flex;\n justify-content: space-between;\n align-items: center;\n width: 100%;\n }\n\n .clear-all-container {\n margin-left: 18px;\n white-space: nowrap;\n cursor: pointer;\n }\n\n\n .value {\n color: var(--nile-filter-chip-values-color-default);\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n max-width: 140px;\n vertical-align: bottom;\n}\n\n\n .close-icon {\n color: var(--nile-filter-chip-close-icon-color-default);\n cursor: pointer;\n display: flex;\n align-items: center;\n border-radius: 50%;\n transition: background-color 0.2s;\n }\n\n .close-icon:hover {\n background-color: var(--nile-filter-chip-close-icon-hover-background);\n color: var(--nile-filter-chip-close-icon-hover-color);\n }\n\n.label-wrapper {\n margin-right: 4px;\n}\n\n::slotted([slot=\"icon\"]) {\n margin-right: 6px;\n}\n\n.value-wrapper {\n margin-right: 4px; \n}\n\n.badge-wrapper {\n margin-right: 12px; \n}\n\n`;\n\nexport default [styles];\n\n "]}
1
+ {"version":3,"file":"nile-filter-chip.css.js","sourceRoot":"","sources":["../../../src/nile-filter-chip/nile-filter-chip.css.ts"],"names":[],"mappings":"AAAA;;;;;EAKE;AAEF,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAC;AAExB;;GAEG;AAEH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiGxB,CAAC;AAEF,eAAe,CAAC,MAAM,CAAC,CAAC","sourcesContent":["/**\n* Copyright Aquera Inc 2023\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 * FilterChip CSS\n */\n\nexport const styles = css`\n\n\n .filter-chips {\n display: flex;\n align-items: center;\n }\n\n\n .chip {\n display: inline-flex;\n align-items: center;\n padding: 4px 8px;\n border: 1px solid var(--nile-filter-chip-chip-border-color-stroke);\n border-radius: var(--nile-radius-radius-xs);\n font-size: var(--nile-type-scale-3);\n background-color: var(--nile-filter-chip-background-default);\n color: var(--nile-filter-chip-text-default);\n transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;\n cursor: pointer;\n gap: 6px;\n margin-right: 6px;\n }\n\n .chip:hover {\n background-color: var(--nile-filter-chip-hover-background);\n }\n\n .chip:active {\n background-color: var(--nile-filter-chip-active-background);\n border-color: var(--nile-filter-chip-active-border-color-stroke);\n }\n\n .icon {\n color: var(--nile-filter-chip-icon-color-default);\n display: flex;\n align-items: center;\n justify-content: center;\n vertical-align: middle;\n position: relative;\n top: 12px;\n }\n\n .label {\n font-weight: 500;\n color: var(--nile-filter-chip-label-color-default);\n }\n\n nile-badge::part(base) {\n width: auto;\n height: 14px;\n border-radius: 100px;\n padding: 6px;\n gap: 10px;\n font-size: 8px;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n line-height: 1;\n }\n\n .chip-container {\n display: flex;\n justify-content: space-between;\n align-items: center;\n width: 100%;\n }\n\n .clear-all-container {\n margin-left: 18px;\n white-space: nowrap;\n cursor: pointer;\n }\n\n\n .value {\n color: var(--nile-filter-chip-values-color-default);\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n max-width: 140px;\n }\n\n .close-icon {\n color: var(--nile-filter-chip-close-icon-color-default);\n cursor: pointer;\n display: flex;\n align-items: center;\n padding: 2px;\n border-radius: 50%;\n transition: background-color 0.2s;\n }\n\n .close-icon:hover {\n background-color: var(--nile-filter-chip-close-icon-hover-background);\n color: var(--nile-filter-chip-close-icon-hover-color);\n }\n`;\n\nexport default [styles];\n\n "]}
@@ -7,13 +7,12 @@ import NileElement from '../internal/nile-element';
7
7
  */
8
8
  export declare class NileFilterChip extends NileElement {
9
9
  label: string;
10
- value: string;
11
- viewMoreCount: number;
10
+ text: string;
11
+ extraCount: number;
12
12
  editable: boolean;
13
13
  closable: boolean;
14
14
  icon: string;
15
15
  removeIcon: string;
16
- active: boolean;
17
16
  private static activeChips;
18
17
  static get styles(): CSSResultArray;
19
18
  connectedCallback(): void;
@@ -24,7 +23,7 @@ export declare class NileFilterChip extends NileElement {
24
23
  private handleClick;
25
24
  private getLabelSlot;
26
25
  private getValueSlot;
27
- private getviewMoreCountSlot;
26
+ private getExtraCountSlot;
28
27
  private getCloseIconSlot;
29
28
  render(): TemplateResult;
30
29
  }
@@ -13,13 +13,12 @@ let NileFilterChip = NileFilterChip_1 = class NileFilterChip extends NileElement
13
13
  constructor() {
14
14
  super(...arguments);
15
15
  this.label = '';
16
- this.value = '';
17
- this.viewMoreCount = 0;
16
+ this.text = '';
17
+ this.extraCount = 0;
18
18
  this.editable = false;
19
19
  this.closable = false;
20
20
  this.icon = '';
21
21
  this.removeIcon = '';
22
- this.active = false;
23
22
  }
24
23
  static get styles() {
25
24
  return [styles];
@@ -40,43 +39,34 @@ let NileFilterChip = NileFilterChip_1 = class NileFilterChip extends NileElement
40
39
  }
41
40
  handleClose(event) {
42
41
  event.stopPropagation();
43
- this.dispatchEvent(new CustomEvent('nile-close', { detail: { value: this.value, viewMoreCount: this.viewMoreCount } }));
42
+ this.dispatchEvent(new CustomEvent('nile-close', { detail: { text: this.text, extraCount: this.extraCount } }));
44
43
  this.remove();
45
44
  }
46
45
  handleClick() {
47
- this.dispatchEvent(new CustomEvent('nile-click', { detail: { value: this.value, viewMoreCount: this.viewMoreCount } }));
46
+ this.dispatchEvent(new CustomEvent('nile-click', { detail: { text: this.text, extraCount: this.extraCount } }));
48
47
  }
49
48
  getLabelSlot() {
50
49
  return html `
51
- <span class="label-wrapper">
52
50
  <slot name="label">
53
- <span class="label" part="label">${this.label}:</span>
51
+ <span class="label">${this.label}:</span>
54
52
  </slot>
55
- </span>
56
-
57
53
  `;
58
54
  }
59
55
  getValueSlot() {
60
56
  return html `
61
- <span class="value-wrapper">
62
57
  <slot name="value">
63
- <span class="value" part="value">${this.value}</span>
58
+ <span class="value">${this.text}</span>
64
59
  </slot>
65
- </span>
66
-
67
60
  `;
68
61
  }
69
- getviewMoreCountSlot() {
62
+ getExtraCountSlot() {
70
63
  return html `
71
64
  <slot name="suffix">
72
- ${this.viewMoreCount
65
+ ${this.extraCount
73
66
  ? html `
74
- <span class="badge-wrapper">
75
67
  <nile-badge variant="primary" pilltype="pill-color">
76
- +${this.viewMoreCount}
68
+ +${this.extraCount}
77
69
  </nile-badge>
78
- </span>
79
-
80
70
  `
81
71
  : html ``}
82
72
  </slot>
@@ -102,7 +92,7 @@ let NileFilterChip = NileFilterChip_1 = class NileFilterChip extends NileElement
102
92
  ${this.getLabelSlot()}
103
93
  <slot name="content"></slot>
104
94
  ${this.getValueSlot()}
105
- ${this.getviewMoreCountSlot()}
95
+ ${this.getExtraCountSlot()}
106
96
  ${this.getCloseIconSlot()}
107
97
  </div>
108
98
  `;
@@ -114,10 +104,10 @@ __decorate([
114
104
  ], NileFilterChip.prototype, "label", void 0);
115
105
  __decorate([
116
106
  property({ type: String })
117
- ], NileFilterChip.prototype, "value", void 0);
107
+ ], NileFilterChip.prototype, "text", void 0);
118
108
  __decorate([
119
109
  property({ type: Number })
120
- ], NileFilterChip.prototype, "viewMoreCount", void 0);
110
+ ], NileFilterChip.prototype, "extraCount", void 0);
121
111
  __decorate([
122
112
  property({ type: Boolean })
123
113
  ], NileFilterChip.prototype, "editable", void 0);
@@ -130,9 +120,6 @@ __decorate([
130
120
  __decorate([
131
121
  property({ type: String })
132
122
  ], NileFilterChip.prototype, "removeIcon", void 0);
133
- __decorate([
134
- property({ type: Boolean, reflect: true })
135
- ], NileFilterChip.prototype, "active", void 0);
136
123
  NileFilterChip = NileFilterChip_1 = __decorate([
137
124
  customElement('nile-filter-chip')
138
125
  ], NileFilterChip);
@@ -1 +1 @@
1
- {"version":3,"file":"nile-filter-chip.js","sourceRoot":"","sources":["../../../src/nile-filter-chip/nile-filter-chip.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAc,IAAI,EAAuC,MAAM,KAAK,CAAC;AAC5E,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,WAAW,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAEhD;;;;GAIG;AAEI,IAAM,cAAc,sBAApB,MAAM,cAAe,SAAQ,WAAW;IAAxC;;QACuB,UAAK,GAAG,EAAE,CAAC;QACX,UAAK,GAAG,EAAE,CAAC;QACX,kBAAa,GAAW,CAAC,CAAC;QACzB,aAAQ,GAAG,KAAK,CAAC;QACjB,aAAQ,GAAG,KAAK,CAAC;QAClB,SAAI,GAAG,EAAE,CAAC;QACV,eAAU,GAAG,EAAE,CAAC;QACA,WAAM,GAAG,KAAK,CAAC;IA4G7D,CAAC;IAvGQ,MAAM,KAAK,MAAM;QACtB,OAAO,CAAC,MAAM,CAAC,CAAC;IAClB,CAAC;IAED,iBAAiB;QACf,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B,IAAI,CAAC,YAAY,EAAE,CAAC;IACtB,CAAC;IAED,oBAAoB;QAClB,KAAK,CAAC,oBAAoB,EAAE,CAAC;QAC7B,IAAI,CAAC,cAAc,EAAE,CAAC;IACxB,CAAC;IAEO,YAAY;QAClB,gBAAc,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI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C,IAAI,CAAA,EAAE;KACX,CAAC;IACJ,CAAC;IAEM,MAAM;QACX,OAAO,IAAI,CAAA;kCACmB,IAAI,CAAC,WAAW;;YAEtC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAA,sBAAsB,IAAI,CAAC,IAAI,SAAS,CAAC,CAAC,CAAC,IAAI,CAAA,EAAE;;UAEnE,IAAI,CAAC,YAAY,EAAE;;UAEnB,IAAI,CAAC,YAAY,EAAE;UACnB,IAAI,CAAC,oBAAoB,EAAE;UAC3B,IAAI,CAAC,gBAAgB,EAAE;;KAE5B,CAAC;IACJ,CAAC;;AAxGc,0BAAW,GAAqB,EAAE,AAAvB,CAAwB;AAVtB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;6CAAY;AACX;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;6CAAY;AACX;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;qDAA2B;AACzB;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;gDAAkB;AACjB;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;gDAAkB;AAClB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;4CAAW;AACV;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;kDAAiB;AACA;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;8CAAgB;AARhD,cAAc;IAD1B,aAAa,CAAC,kBAAkB,CAAC;GACrB,cAAc,CAoH1B;;AAED,eAAe,cAAc,CAAC","sourcesContent":["import { LitElement, html, css, CSSResultArray, TemplateResult } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport NileElement from '../internal/nile-element';\nimport { styles } from './nile-filter-chip.css';\n\n/**\n * Nile filter-chip component.\n *\n * @tag nile-filter-chip\n */\n@customElement('nile-filter-chip')\nexport class NileFilterChip extends NileElement {\n @property({ type: String }) label = '';\n @property({ type: String }) value = '';\n @property({ type: Number }) viewMoreCount: number = 0;\n @property({ type: Boolean }) editable = false;\n @property({ type: Boolean }) closable = false;\n @property({ type: String }) icon = '';\n @property({ type: String }) removeIcon = '';\n @property({ type: Boolean, reflect: true }) active = false;\n\n\n private static activeChips: NileFilterChip[] = [];\n\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n connectedCallback() {\n super.connectedCallback();\n this.registerChip();\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.unregisterChip();\n }\n\n private registerChip() {\n NileFilterChip.activeChips.push(this);\n }\n\n private unregisterChip() {\n NileFilterChip.activeChips = NileFilterChip.activeChips.filter(\n (chip) => chip !== this\n );\n }\n\n private handleClose(event: Event) {\n event.stopPropagation();\n this.dispatchEvent(\n new CustomEvent('nile-close', { detail: { value: this.value, viewMoreCount: this.viewMoreCount } })\n );\n this.remove();\n }\n\n private handleClick() {\n this.dispatchEvent(\n new CustomEvent('nile-click', { detail: { value: this.value, viewMoreCount: this.viewMoreCount } })\n );\n }\n\n private getLabelSlot(): TemplateResult {\n return html`\n <span class=\"label-wrapper\">\n <slot name=\"label\">\n <span class=\"label\" part=\"label\">${this.label}:</span>\n </slot>\n </span>\n\n `;\n }\n\n private getValueSlot(): TemplateResult {\n return html`\n <span class=\"value-wrapper\">\n <slot name=\"value\">\n <span class=\"value\" part=\"value\">${this.value}</span>\n </slot>\n </span>\n\n `;\n }\n\n private getviewMoreCountSlot(): TemplateResult {\n return html`\n <slot name=\"suffix\">\n ${this.viewMoreCount\n ? html`\n <span class=\"badge-wrapper\">\n <nile-badge variant=\"primary\" pilltype=\"pill-color\">\n +${this.viewMoreCount}\n </nile-badge>\n </span>\n\n `\n : html``}\n </slot>\n `;\n }\n\n private getCloseIconSlot(): TemplateResult {\n return html`\n ${this.closable\n ? html`\n <span class=\"close-icon\" @click=\"${this.handleClose}\">\n <nile-icon name=\"${this.removeIcon || 'close'}\" size=\"12\"></nile-icon>\n </span>\n `\n : html``}\n `;\n }\n\n public render(): TemplateResult {\n return html`\n <div class=\"chip\" @click=\"${this.handleClick}\">\n <slot name=\"icon\">\n ${this.icon ? html`<span class=\"icon\">${this.icon}</span>` : html``}\n </slot>\n ${this.getLabelSlot()}\n <slot name=\"content\"></slot>\n ${this.getValueSlot()}\n ${this.getviewMoreCountSlot()}\n ${this.getCloseIconSlot()}\n </div>\n `;\n }\n}\n\nexport default NileFilterChip;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-filter-chip': NileFilterChip;\n }\n}\n"]}
1
+ {"version":3,"file":"nile-filter-chip.js","sourceRoot":"","sources":["../../../src/nile-filter-chip/nile-filter-chip.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAc,IAAI,EAAuC,MAAM,KAAK,CAAC;AAC5E,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,WAAW,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAEhD;;;;GAIG;AAEI,IAAM,cAAc,sBAApB,MAAM,cAAe,SAAQ,WAAW;IAAxC;;QACuB,UAAK,GAAG,EAAE,CAAC;QACX,SAAI,GAAG,EAAE,CAAC;QACV,eAAU,GAAW,CAAC,CAAC;QACtB,aAAQ,GAAG,KAAK,CAAC;QACjB,aAAQ,GAAG,KAAK,CAAC;QAClB,SAAI,GAAG,EAAE,CAAC;QACV,eAAU,GAAG,EAAE,CAAC;IAkG9C,CAAC;IA9FQ,MAAM,KAAK,MAAM;QACtB,OAAO,CAAC,MAAM,CAAC,CAAC;IAClB,CAAC;IAED,iBAAiB;QACf,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B,IAAI,CAAC,YAAY,EAAE,CAAC;IACtB,CAAC;IAED,oBAAoB;QAClB,KAA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QAAQ;YACb,CAAC,CAAC,IAAI,CAAA;+CACiC,IAAI,CAAC,WAAW;iCAC9B,IAAI,CAAC,UAAU,IAAI,OAAO;;WAEhD;YACH,CAAC,CAAC,IAAI,CAAA,EAAE;KACX,CAAC;IACJ,CAAC;IAEM,MAAM;QACX,OAAO,IAAI,CAAA;kCACmB,IAAI,CAAC,WAAW;;YAEtC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAA,sBAAsB,IAAI,CAAC,IAAI,SAAS,CAAC,CAAC,CAAC,IAAI,CAAA,EAAE;;UAEnE,IAAI,CAAC,YAAY,EAAE;;UAEnB,IAAI,CAAC,YAAY,EAAE;UACnB,IAAI,CAAC,iBAAiB,EAAE;UACxB,IAAI,CAAC,gBAAgB,EAAE;;KAE5B,CAAC;IACJ,CAAC;;AA/Fc,0BAAW,GAAqB,EAAE,AAAvB,CAAwB;AARtB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;6CAAY;AACX;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;4CAAW;AACV;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;kDAAwB;AACtB;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;gDAAkB;AACjB;IAA5B,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;gDAAkB;AAClB;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;4CAAW;AACV;IAA3B,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;kDAAiB;AAPjC,cAAc;IAD1B,aAAa,CAAC,kBAAkB,CAAC;GACrB,cAAc,CAyG1B;;AAED,eAAe,cAAc,CAAC","sourcesContent":["import { LitElement, html, css, CSSResultArray, TemplateResult } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport NileElement from '../internal/nile-element';\nimport { styles } from './nile-filter-chip.css';\n\n/**\n * Nile filter-chip component.\n *\n * @tag nile-filter-chip\n */\n@customElement('nile-filter-chip')\nexport class NileFilterChip extends NileElement {\n @property({ type: String }) label = '';\n @property({ type: String }) text = '';\n @property({ type: Number }) extraCount: number = 0;\n @property({ type: Boolean }) editable = false;\n @property({ type: Boolean }) closable = false;\n @property({ type: String }) icon = '';\n @property({ type: String }) removeIcon = '';\n\n private static activeChips: NileFilterChip[] = [];\n\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n connectedCallback() {\n super.connectedCallback();\n this.registerChip();\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.unregisterChip();\n }\n\n private registerChip() {\n NileFilterChip.activeChips.push(this);\n }\n\n private unregisterChip() {\n NileFilterChip.activeChips = NileFilterChip.activeChips.filter(\n (chip) => chip !== this\n );\n }\n\n private handleClose(event: Event) {\n event.stopPropagation();\n this.dispatchEvent(\n new CustomEvent('nile-close', { detail: { text: this.text, extraCount: this.extraCount } })\n );\n this.remove();\n }\n\n private handleClick() {\n this.dispatchEvent(\n new CustomEvent('nile-click', { detail: { text: this.text, extraCount: this.extraCount } })\n );\n }\n\n private getLabelSlot(): TemplateResult {\n return html`\n <slot name=\"label\">\n <span class=\"label\">${this.label}:</span>\n </slot>\n `;\n }\n\n private getValueSlot(): TemplateResult {\n return html`\n <slot name=\"value\">\n <span class=\"value\">${this.text}</span>\n </slot>\n `;\n }\n\n private getExtraCountSlot(): TemplateResult {\n return html`\n <slot name=\"suffix\">\n ${this.extraCount\n ? html`\n <nile-badge variant=\"primary\" pilltype=\"pill-color\">\n +${this.extraCount}\n </nile-badge>\n `\n : html``}\n </slot>\n `;\n }\n\n private getCloseIconSlot(): TemplateResult {\n return html`\n ${this.closable\n ? html`\n <span class=\"close-icon\" @click=\"${this.handleClose}\">\n <nile-icon name=\"${this.removeIcon || 'close'}\" size=\"12\"></nile-icon>\n </span>\n `\n : html``}\n `;\n }\n\n public render(): TemplateResult {\n return html`\n <div class=\"chip\" @click=\"${this.handleClick}\">\n <slot name=\"icon\">\n ${this.icon ? html`<span class=\"icon\">${this.icon}</span>` : html``}\n </slot>\n ${this.getLabelSlot()}\n <slot name=\"content\"></slot>\n ${this.getValueSlot()}\n ${this.getExtraCountSlot()}\n ${this.getCloseIconSlot()}\n </div>\n `;\n }\n}\n\nexport default NileFilterChip;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-filter-chip': NileFilterChip;\n }\n}\n"]}
@@ -7,16 +7,16 @@ describe('<nile-filter-chip>', () => {
7
7
  });
8
8
  it('registers and unregisters itself in activeChips', async () => {
9
9
  const el = await fixture(html `
10
- <nile-filter-chip label="L" value="T"></nile-filter-chip>
10
+ <nile-filter-chip label="L" text="T"></nile-filter-chip>
11
11
  `);
12
12
  expect(NileFilterChip.activeChips).to.include(el);
13
13
  el.remove();
14
14
  await el.updateComplete;
15
15
  expect(NileFilterChip.activeChips).to.not.include(el);
16
16
  });
17
- it('renders fallback label and value', async () => {
17
+ it('renders fallback label and text', async () => {
18
18
  const el = await fixture(html `
19
- <nile-filter-chip label="MyLabel" value="MyText"></nile-filter-chip>
19
+ <nile-filter-chip label="MyLabel" text="MyText"></nile-filter-chip>
20
20
  `);
21
21
  const label = el.shadowRoot.querySelector('.label');
22
22
  const value = el.shadowRoot.querySelector('.value');
@@ -37,21 +37,21 @@ describe('<nile-filter-chip>', () => {
37
37
  });
38
38
  it('renders an icon when the `icon` property is set', async () => {
39
39
  const el = await fixture(html `
40
- <nile-filter-chip icon="★" label="L" value="T"></nile-filter-chip>
40
+ <nile-filter-chip icon="★" label="L" text="T"></nile-filter-chip>
41
41
  `);
42
42
  const iconSpan = el.shadowRoot.querySelector('.icon');
43
43
  expect(iconSpan).to.exist;
44
44
  expect(iconSpan.textContent).to.equal('★');
45
45
  });
46
- it('does not render a badge when viewMoreCount is zero', async () => {
46
+ it('does not render a badge when extraCount is zero', async () => {
47
47
  const el = await fixture(html `
48
- <nile-filter-chip viewMoreCount="0" label="L" value="T"></nile-filter-chip>
48
+ <nile-filter-chip extraCount="0" label="L" text="T"></nile-filter-chip>
49
49
  `);
50
50
  expect(el.shadowRoot.querySelector('nile-badge')).to.be.null;
51
51
  });
52
- it('renders a +badge when viewMoreCount > 0', async () => {
52
+ it('renders a +badge when extraCount > 0', async () => {
53
53
  const el = await fixture(html `
54
- <nile-filter-chip viewMoreCount="5" label="L" value="T"></nile-filter-chip>
54
+ <nile-filter-chip extraCount="5" label="L" text="T"></nile-filter-chip>
55
55
  `);
56
56
  const badge = el.shadowRoot.querySelector('nile-badge');
57
57
  expect(badge).to.exist;
@@ -59,21 +59,21 @@ describe('<nile-filter-chip>', () => {
59
59
  });
60
60
  it('dispatches `nile-click` on chip click', async () => {
61
61
  const el = await fixture(html `
62
- <nile-filter-chip label="L" value="T"></nile-filter-chip>
62
+ <nile-filter-chip label="L" text="T"></nile-filter-chip>
63
63
  `);
64
64
  const chip = el.shadowRoot.querySelector('.chip');
65
65
  setTimeout(() => chip.click());
66
66
  const ev = await oneEvent(el, 'nile-click');
67
- expect(ev.detail).to.deep.equal({ value: 'T', viewMoreCount: 0 });
67
+ expect(ev.detail).to.deep.equal({ text: 'T', extraCount: 0 });
68
68
  });
69
69
  it('dispatches `nile-close` on close icon click and removes itself', async () => {
70
70
  const el = await fixture(html `
71
- <nile-filter-chip closable viewMoreCount="2" value="TT"></nile-filter-chip>
71
+ <nile-filter-chip closable extraCount="2" text="TT"></nile-filter-chip>
72
72
  `);
73
73
  const closeIcon = el.shadowRoot.querySelector('.close-icon');
74
74
  setTimeout(() => closeIcon.click());
75
75
  const ev = await oneEvent(el, 'nile-close');
76
- expect(ev.detail).to.deep.equal({ value: 'TT', viewMoreCount: 2 });
76
+ expect(ev.detail).to.deep.equal({ text: 'TT', extraCount: 2 });
77
77
  expect(document.body.contains(el)).to.be.false;
78
78
  });
79
79
  });
@@ -1 +1 @@
1
- {"version":3,"file":"nile-filter-chip.test.js","sourceRoot":"","sources":["../../../src/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C,MAAM,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC,EAAE,CAAC,CAAC;QACnE,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC;IACjD,CAAC,CAAC,CAAC;AAGL,CAAC,CAAC,CAAC","sourcesContent":["import { fixture, expect, html, oneEvent } from '@open-wc/testing';\nimport './nile-filter-chip';\nimport { NileFilterChip } from './nile-filter-chip';\n\ndescribe('<nile-filter-chip>', () => {\n afterEach(() => {\n (NileFilterChip as any).activeChips = [];\n });\n\n it('registers and unregisters itself in activeChips', async () => {\n const el = await fixture<NileFilterChip>(html`\n <nile-filter-chip label=\"L\" value=\"T\"></nile-filter-chip>\n `);\n expect((NileFilterChip as any).activeChips).to.include(el);\n el.remove();\n await el.updateComplete;\n expect((NileFilterChip as any).activeChips).to.not.include(el);\n });\n\n it('renders fallback label and value', async () => {\n const el = await fixture<NileFilterChip>(html`\n <nile-filter-chip label=\"MyLabel\" value=\"MyText\"></nile-filter-chip>\n `);\n const label = el.shadowRoot!.querySelector('.label')! as HTMLElement;\n const value = el.shadowRoot!.querySelector('.value')! as HTMLElement;\n expect(label.textContent).to.equal('MyLabel:');\n expect(value.textContent!.trim()).to.equal('MyText');\n });\n\n it('renders slotted label and value over fallback', async () => {\n const el = await fixture<NileFilterChip>(html`\n <nile-filter-chip>\n <span slot=\"label\">SLOT-LBL</span>\n <span slot=\"value\">SLOT-VAL</span>\n </nile-filter-chip>\n `);\n const slottedLabel = el.querySelector('[slot=\"label\"]')! as HTMLElement;\n const slottedValue = el.querySelector('[slot=\"value\"]')! as HTMLElement;\n expect(slottedLabel.textContent).to.equal('SLOT-LBL');\n expect(slottedValue.textContent).to.equal('SLOT-VAL');\n });\n\n it('renders an icon when the `icon` property is set', async () => {\n const el = await fixture<NileFilterChip>(html`\n <nile-filter-chip icon=\"★\" label=\"L\" value=\"T\"></nile-filter-chip>\n `);\n const iconSpan = el.shadowRoot!.querySelector('.icon')! as HTMLElement;\n expect(iconSpan).to.exist;\n expect(iconSpan.textContent).to.equal('★');\n });\n\n it('does not render a badge when viewMoreCount is zero', async () => {\n const el = await fixture<NileFilterChip>(html`\n <nile-filter-chip viewMoreCount=\"0\" label=\"L\" value=\"T\"></nile-filter-chip>\n `);\n expect(el.shadowRoot!.querySelector('nile-badge')).to.be.null;\n });\n\n it('renders a +badge when viewMoreCount > 0', async () => {\n const el = await fixture<NileFilterChip>(html`\n <nile-filter-chip viewMoreCount=\"5\" label=\"L\" value=\"T\"></nile-filter-chip>\n `);\n const badge = el.shadowRoot!.querySelector('nile-badge')! as HTMLElement;\n expect(badge).to.exist;\n expect(badge.textContent).to.contain('+5');\n });\n\n\n\n it('dispatches `nile-click` on chip click', async () => {\n const el = await fixture<NileFilterChip>(html`\n <nile-filter-chip label=\"L\" value=\"T\"></nile-filter-chip>\n `);\n const chip = el.shadowRoot!.querySelector('.chip')! as HTMLElement;\n setTimeout(() => chip.click());\n const ev = await oneEvent(el, 'nile-click');\n expect(ev.detail).to.deep.equal({ value: 'T', viewMoreCount: 0 });\n });\n\n it('dispatches `nile-close` on close icon click and removes itself', async () => {\n const el = await fixture<NileFilterChip>(html`\n <nile-filter-chip closable viewMoreCount=\"2\" value=\"TT\"></nile-filter-chip>\n `);\n const closeIcon = el.shadowRoot!.querySelector('.close-icon')! as HTMLElement;\n setTimeout(() => closeIcon.click());\n const ev = await oneEvent(el, 'nile-close');\n expect(ev.detail).to.deep.equal({ value: 'TT', viewMoreCount: 2 });\n expect(document.body.contains(el)).to.be.false;\n });\n\n \n});\n"]}
1
+ {"version":3,"file":"nile-filter-chip.test.js","sourceRoot":"","sources":["../../../src/nile-filter-chip/nile-filter-chip.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ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CAAC,EAAE,CAAC,CAAC;QAC/D,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC;IACjD,CAAC,CAAC,CAAC;AAGL,CAAC,CAAC,CAAC","sourcesContent":["import { fixture, expect, html, oneEvent } from '@open-wc/testing';\nimport './nile-filter-chip';\nimport { NileFilterChip } from './nile-filter-chip';\n\ndescribe('<nile-filter-chip>', () => {\n afterEach(() => {\n (NileFilterChip as any).activeChips = [];\n });\n\n it('registers and unregisters itself in activeChips', async () => {\n const el = await fixture<NileFilterChip>(html`\n <nile-filter-chip label=\"L\" text=\"T\"></nile-filter-chip>\n `);\n expect((NileFilterChip as any).activeChips).to.include(el);\n el.remove();\n await el.updateComplete;\n expect((NileFilterChip as any).activeChips).to.not.include(el);\n });\n\n it('renders fallback label and text', async () => {\n const el = await fixture<NileFilterChip>(html`\n <nile-filter-chip label=\"MyLabel\" text=\"MyText\"></nile-filter-chip>\n `);\n const label = el.shadowRoot!.querySelector('.label')! as HTMLElement;\n const value = el.shadowRoot!.querySelector('.value')! as HTMLElement;\n expect(label.textContent).to.equal('MyLabel:');\n expect(value.textContent!.trim()).to.equal('MyText');\n });\n\n it('renders slotted label and value over fallback', async () => {\n const el = await fixture<NileFilterChip>(html`\n <nile-filter-chip>\n <span slot=\"label\">SLOT-LBL</span>\n <span slot=\"value\">SLOT-VAL</span>\n </nile-filter-chip>\n `);\n const slottedLabel = el.querySelector('[slot=\"label\"]')! as HTMLElement;\n const slottedValue = el.querySelector('[slot=\"value\"]')! as HTMLElement;\n expect(slottedLabel.textContent).to.equal('SLOT-LBL');\n expect(slottedValue.textContent).to.equal('SLOT-VAL');\n });\n\n it('renders an icon when the `icon` property is set', async () => {\n const el = await fixture<NileFilterChip>(html`\n <nile-filter-chip icon=\"★\" label=\"L\" text=\"T\"></nile-filter-chip>\n `);\n const iconSpan = el.shadowRoot!.querySelector('.icon')! as HTMLElement;\n expect(iconSpan).to.exist;\n expect(iconSpan.textContent).to.equal('★');\n });\n\n it('does not render a badge when extraCount is zero', async () => {\n const el = await fixture<NileFilterChip>(html`\n <nile-filter-chip extraCount=\"0\" label=\"L\" text=\"T\"></nile-filter-chip>\n `);\n expect(el.shadowRoot!.querySelector('nile-badge')).to.be.null;\n });\n\n it('renders a +badge when extraCount > 0', async () => {\n const el = await fixture<NileFilterChip>(html`\n <nile-filter-chip extraCount=\"5\" label=\"L\" text=\"T\"></nile-filter-chip>\n `);\n const badge = el.shadowRoot!.querySelector('nile-badge')! as HTMLElement;\n expect(badge).to.exist;\n expect(badge.textContent).to.contain('+5');\n });\n\n\n\n it('dispatches `nile-click` on chip click', async () => {\n const el = await fixture<NileFilterChip>(html`\n <nile-filter-chip label=\"L\" text=\"T\"></nile-filter-chip>\n `);\n const chip = el.shadowRoot!.querySelector('.chip')! as HTMLElement;\n setTimeout(() => chip.click());\n const ev = await oneEvent(el, 'nile-click');\n expect(ev.detail).to.deep.equal({ text: 'T', extraCount: 0 });\n });\n\n it('dispatches `nile-close` on close icon click and removes itself', async () => {\n const el = await fixture<NileFilterChip>(html`\n <nile-filter-chip closable extraCount=\"2\" text=\"TT\"></nile-filter-chip>\n `);\n const closeIcon = el.shadowRoot!.querySelector('.close-icon')! as HTMLElement;\n setTimeout(() => closeIcon.click());\n const ev = await oneEvent(el, 'nile-close');\n expect(ev.detail).to.deep.equal({ text: 'TT', extraCount: 2 });\n expect(document.body.contains(el)).to.be.false;\n });\n\n \n});\n"]}
@@ -1,5 +1,5 @@
1
1
  /**
2
2
  * Do not edit directly
3
3
  */
4
- declare const _default: "PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PGNpcmNsZSBjeD0iNSIgY3k9IjgiIHI9IjEiLz48cGF0aCBkPSJNNSwxMGEyLDIsMCwwLDEsMiwySDNBMiwyLDAsMCwxLDUsMTBaIi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sources":["../../../../../src/nile-icon/icons/svg/accessreview.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,eAAe,0dAA0d,CAAC","sourcesContent":["/**\n * Do not edit directly\n */\n\nexport default \"PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PGNpcmNsZSBjeD0iNSIgY3k9IjgiIHI9IjEiLz48cGF0aCBkPSJNNSwxMGEyLDIsMCwwLDEsMiwySDNBMiwyLDAsMCwxLDUsMTBaIi8+PHJlY3QgeD0iOCIgeT0iOCIgd2lkdGg9IjMuNSIgaGVpZ2h0PSIxIi8+PHJlY3QgeD0iOC42IiB5PSIxMSIgd2lkdGg9IjIuOSIgaGVpZ2h0PSIxIi8+PHBhdGggZD0iTTEzLjUsMTQuNUguNVYzLjVoMTNabS0xMi0xaDExdi05SDEuNVoiLz48cG9seWdvbiBwb2ludHM9IjE1LjUgMTIgMTQuNSAxMiAxNC41IDIuNSAzIDIuNSAzIDEuNSAxNS41IDEuNSAxNS41IDEyIi8+PC9zdmc+\";"]}
1
+ {"version":3,"file":"accessreview.js","sourceRoot":"","sources":["../../../../../src/nile-icon/icons/svg/accessreview.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,eAAe,kmCAAkmC,CAAC","sourcesContent":["/**\n * Do not edit directly\n */\n\nexport default \"PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHZpZXdCb3g9IjAgMCAxNCAxNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTIuMiAxMC4ySDEzVjEuNzk5OTlIM1YyLjU5OTk5SDEyLjJWMTAuMloiIGZpbGw9ImJsYWNrIi8+PHBhdGggZD0iTTUuNCA2Ljk5OTk5QzUuNCA3LjQ0MTgyIDUuMDQxODMgNy43OTk5OSA0LjYgNy43OTk5OUM0LjE1ODE3IDcuNzk5OTkgMy44IDcuNDQxODIgMy44IDYuOTk5OTlDMy44IDYuNTU4MTYgNC4xNTgxNyA2LjE5OTk5IDQuNiA2LjE5OTk5QzUuMDQxODMgNi4xOTk5OSA1LjQgNi41NTgxNiA1LjQgNi45OTk5OVoiIGZpbGw9ImJsYWNrIi8+PHBhdGggZD0iTTUuNzMxMzcgOS4wNjg2MkM1LjQzMTMxIDguNzY4NTYgNS4wMjQzNSA4LjU5OTk5IDQuNiA4LjU5OTk5QzQuMTc1NjUgOC41OTk5OSAzLjc2ODY5IDguNzY4NTYgMy40Njg2MyA5LjA2ODYyQzMuMTY4NTcgOS4zNjg2NyAzIDkuNzc1NjQgMyAxMC4ySDYuMkM2LjIgOS43NzU2NCA2LjAzMTQzIDkuMzY4NjcgNS43MzEzNyA5LjA2ODYyWiIgZmlsbD0iYmxhY2siLz48cGF0aCBkPSJNOS44IDYuOTk5OTlIN1Y3Ljc5OTk5SDkuOFY2Ljk5OTk5WiIgZmlsbD0iYmxhY2siLz48cGF0aCBkPSJNNy41MDQwMiA5LjM5OTk5SDkuODA4MDJWMTAuMkg3LjUwNDAyVjkuMzk5OTlaIiBmaWxsPSJibGFjayIvPjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMTEuNCAxMi4ySDFWMy4zOTk5OUgxMS40VjEyLjJaTTEuOCAxMS40SDEwLjZWNC4xOTk5OUgxLjhWMTEuNFoiIGZpbGw9ImJsYWNrIi8+PC9zdmc+\";"]}
@@ -0,0 +1 @@
1
+ export { NileNewError } from './nile-new-error';
@@ -0,0 +1,2 @@
1
+ export { NileNewError } from './nile-new-error';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/nile-new-error/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC","sourcesContent":["export { NileNewError } from './nile-new-error';"]}
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
  /**
8
- * FileUpload CSS
8
+ * NewError CSS
9
9
  */
10
10
  export declare const styles: import("lit").CSSResult;
11
11
  declare const _default: import("lit").CSSResult[];
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Copyright Aquera Inc 2023
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
+ * NewError CSS
10
+ */
11
+ export const styles = css `
12
+ :host {
13
+ --indication-color: var(--nile-colors-red-500);
14
+ }
15
+
16
+ .nile-error-notification {
17
+ font-family: var(--nile-font-family-serif);
18
+ font-size: 12px;
19
+ font-style: normal;
20
+ font-weight: 400;
21
+ line-height: 12px;
22
+ letter-spacing: 0.2px;
23
+ border: 1px solid var(--indication-color);
24
+ border-left: 6px solid var(--indication-color);
25
+ border-radius: 4px;
26
+ padding: 8px;
27
+ background: var(--nile-colors-neutral-100);
28
+ color: var(--indication-color);
29
+ box-sizing: border-box;
30
+ }
31
+
32
+ .nile-error-notification__icon {
33
+ vertical-align: middle;
34
+ margin-right: 4px;
35
+ }
36
+ `;
37
+ export default [styles];
38
+ //# sourceMappingURL=nile-new-error.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-new-error.css.js","sourceRoot":"","sources":["../../../src/nile-new-error/nile-new-error.css.ts"],"names":[],"mappings":"AAAA;;;;;EAKE;AAEF,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;CAyBxB,CAAC;AAEF,eAAe,CAAC,MAAM,CAAC,CAAC","sourcesContent":["/**\n* Copyright Aquera Inc 2023\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 * NewError CSS\n */\nexport const styles = css`\n\t :host {\n --indication-color: var(--nile-colors-red-500);\n }\n\n .nile-error-notification {\n font-family: var(--nile-font-family-serif);\n font-size: 12px;\n font-style: normal;\n font-weight: 400;\n line-height: 12px;\n letter-spacing: 0.2px;\n border: 1px solid var(--indication-color);\n border-left: 6px solid var(--indication-color);\n border-radius: 4px;\n padding: 8px;\n background: var(--nile-colors-neutral-100);\n color: var(--indication-color);\n box-sizing: border-box;\n }\n\n .nile-error-notification__icon {\n vertical-align: middle;\n margin-right: 4px;\n }\n`;\n\nexport default [styles];\n"]}
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Copyright Aquera Inc 2023
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 { CSSResultArray, TemplateResult, PropertyValues } from 'lit';
8
+ import NileElement from '../internal/nile-element';
9
+ /**
10
+ * Nile new-error component.
11
+ *
12
+ * @tag nile-new-error
13
+ *
14
+ */
15
+ export declare class NileNewError extends NileElement {
16
+ errorMessage: string;
17
+ newProp: string;
18
+ color: string;
19
+ protected updated(_changedProperties: PropertyValues): void;
20
+ /**
21
+ * The styles for nile-new-error
22
+ * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`
23
+ */
24
+ static get styles(): CSSResultArray;
25
+ /**
26
+ * Render method
27
+ * @slot This is a slot test
28
+ */
29
+ render(): TemplateResult;
30
+ }
31
+ export default NileNewError;
32
+ declare global {
33
+ interface HTMLElementTagNameMap {
34
+ 'nile-new-error': NileNewError;
35
+ }
36
+ }