igniteui-webcomponents 3.1.0 → 3.3.0

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 (411) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/README.md +56 -1
  3. package/components/accordion/accordion.d.ts +36 -0
  4. package/components/accordion/accordion.js +127 -0
  5. package/components/accordion/accordion.js.map +1 -0
  6. package/components/{nav-drawer/styles/indigo/nav-drawer-header-item.indigo.css.d.ts → accordion/themes/accordion.base.css.d.ts} +0 -0
  7. package/components/accordion/themes/accordion.base.css.js +3 -0
  8. package/components/accordion/themes/accordion.base.css.js.map +1 -0
  9. package/components/badge/themes/light/badge.bootstrap.css.js +1 -1
  10. package/components/badge/themes/light/badge.bootstrap.css.js.map +1 -1
  11. package/components/button/button-base.d.ts +6 -1
  12. package/components/button/button-base.js +4 -0
  13. package/components/button/button-base.js.map +1 -1
  14. package/components/button/icon-button.d.ts +0 -1
  15. package/components/button/icon-button.js +13 -9
  16. package/components/button/icon-button.js.map +1 -1
  17. package/components/button/themes/button/light/button.base.css.js +1 -1
  18. package/components/button/themes/button/light/button.base.css.js.map +1 -1
  19. package/components/button/themes/button/light/button.material.css.js +1 -1
  20. package/components/button/themes/button/light/button.material.css.js.map +1 -1
  21. package/components/button/themes/icon-button/light/icon-button.base.css.js +1 -1
  22. package/components/button/themes/icon-button/light/icon-button.base.css.js.map +1 -1
  23. package/components/button/themes/icon-button/light/icon-button.bootstrap.css.js +1 -1
  24. package/components/button/themes/icon-button/light/icon-button.bootstrap.css.js.map +1 -1
  25. package/components/button/themes/icon-button/light/icon-button.fluent.css.js +1 -1
  26. package/components/button/themes/icon-button/light/icon-button.fluent.css.js.map +1 -1
  27. package/components/button/themes/icon-button/light/icon-button.indigo.css.js +1 -1
  28. package/components/button/themes/icon-button/light/icon-button.indigo.css.js.map +1 -1
  29. package/components/button/themes/icon-button/light/icon-button.material.css.js +1 -1
  30. package/components/button/themes/icon-button/light/icon-button.material.css.js.map +1 -1
  31. package/components/calendar/calendar.d.ts +1 -5
  32. package/components/calendar/calendar.js +6 -4
  33. package/components/calendar/calendar.js.map +1 -1
  34. package/components/calendar/common/calendar-base.js +16 -12
  35. package/components/calendar/common/calendar-base.js.map +1 -1
  36. package/components/calendar/common/calendar.model.js.map +1 -1
  37. package/components/calendar/days-view/days-view.d.ts +2 -1
  38. package/components/calendar/days-view/days-view.js +2 -2
  39. package/components/calendar/days-view/days-view.js.map +1 -1
  40. package/components/calendar/months-view/months-view.d.ts +2 -1
  41. package/components/calendar/months-view/months-view.js +2 -2
  42. package/components/calendar/months-view/months-view.js.map +1 -1
  43. package/components/calendar/themes/bootstrap/calendar.bootstrap.css.js +1 -1
  44. package/components/calendar/themes/bootstrap/calendar.bootstrap.css.js.map +1 -1
  45. package/components/calendar/years-view/years-view.d.ts +2 -1
  46. package/components/calendar/years-view/years-view.js +2 -2
  47. package/components/calendar/years-view/years-view.js.map +1 -1
  48. package/components/card/card.header.js +2 -0
  49. package/components/card/card.header.js.map +1 -1
  50. package/components/card/card.js +6 -0
  51. package/components/card/card.js.map +1 -1
  52. package/components/card/themes/light/card.header.bootstrap.css.js +1 -1
  53. package/components/card/themes/light/card.header.bootstrap.css.js.map +1 -1
  54. package/components/{nav-drawer/styles/indigo/nav-drawer-item.indigo.css.d.ts → card/themes/light/card.header.fluent.css.d.ts} +0 -0
  55. package/components/card/themes/light/card.header.fluent.css.js +3 -0
  56. package/components/card/themes/light/card.header.fluent.css.js.map +1 -0
  57. package/components/checkbox/checkbox-base.d.ts +1 -1
  58. package/components/checkbox/checkbox.d.ts +1 -0
  59. package/components/checkbox/checkbox.js +6 -5
  60. package/components/checkbox/checkbox.js.map +1 -1
  61. package/components/checkbox/switch.d.ts +1 -0
  62. package/components/checkbox/switch.js +6 -5
  63. package/components/checkbox/switch.js.map +1 -1
  64. package/components/checkbox/themes/light/checkbox.base.css.js +1 -1
  65. package/components/checkbox/themes/light/checkbox.base.css.js.map +1 -1
  66. package/components/checkbox/themes/light/checkbox.bootstrap.css.js +1 -1
  67. package/components/checkbox/themes/light/checkbox.bootstrap.css.js.map +1 -1
  68. package/components/checkbox/themes/light/checkbox.fluent.css.js +1 -1
  69. package/components/checkbox/themes/light/checkbox.fluent.css.js.map +1 -1
  70. package/components/checkbox/themes/light/checkbox.indigo.css.js +1 -1
  71. package/components/checkbox/themes/light/checkbox.indigo.css.js.map +1 -1
  72. package/components/checkbox/themes/light/checkbox.material.css.js +1 -1
  73. package/components/checkbox/themes/light/checkbox.material.css.js.map +1 -1
  74. package/components/checkbox/themes/light/switch.base.css.js +1 -1
  75. package/components/checkbox/themes/light/switch.base.css.js.map +1 -1
  76. package/components/checkbox/themes/light/switch.fluent.css.js +1 -1
  77. package/components/checkbox/themes/light/switch.fluent.css.js.map +1 -1
  78. package/components/chip/chip.d.ts +1 -2
  79. package/components/chip/chip.js +3 -1
  80. package/components/chip/chip.js.map +1 -1
  81. package/components/chip/themes/chip.base.css.js +1 -1
  82. package/components/chip/themes/chip.base.css.js.map +1 -1
  83. package/components/chip/themes/chip.bootstrap.css.js +1 -1
  84. package/components/chip/themes/chip.bootstrap.css.js.map +1 -1
  85. package/components/chip/themes/chip.fluent.css.js +1 -1
  86. package/components/chip/themes/chip.fluent.css.js.map +1 -1
  87. package/components/chip/themes/chip.indigo.css.js +1 -1
  88. package/components/chip/themes/chip.indigo.css.js.map +1 -1
  89. package/components/chip/themes/chip.material.css.js +1 -1
  90. package/components/chip/themes/chip.material.css.js.map +1 -1
  91. package/components/common/decorators/blazorAdditionalDependencies.d.ts +5 -0
  92. package/components/common/decorators/blazorAdditionalDependencies.js +6 -0
  93. package/components/common/decorators/blazorAdditionalDependencies.js.map +1 -0
  94. package/components/common/decorators/index.d.ts +1 -0
  95. package/components/common/decorators/index.js +1 -0
  96. package/components/common/decorators/index.js.map +1 -1
  97. package/components/common/definitions/defineAllComponents.js +18 -0
  98. package/components/common/definitions/defineAllComponents.js.map +1 -1
  99. package/components/common/i18n/calendar.resources.js.map +1 -1
  100. package/components/common/mixins/constructor.d.ts +1 -0
  101. package/components/common/mixins/constructor.js.map +1 -1
  102. package/components/common/mixins/event-emitter.d.ts +2 -2
  103. package/components/common/mixins/event-emitter.js +2 -2
  104. package/components/common/mixins/event-emitter.js.map +1 -1
  105. package/components/common/types.d.ts +1 -0
  106. package/components/common/types.js +2 -0
  107. package/components/common/types.js.map +1 -0
  108. package/components/common/util.d.ts +18 -0
  109. package/components/common/util.js +17 -0
  110. package/components/common/util.js.map +1 -1
  111. package/components/date-time-input/date-time-input.d.ts +110 -0
  112. package/components/date-time-input/date-time-input.js +505 -0
  113. package/components/date-time-input/date-time-input.js.map +1 -0
  114. package/components/date-time-input/date-util.d.ts +89 -0
  115. package/components/date-time-input/date-util.js +597 -0
  116. package/components/date-time-input/date-util.js.map +1 -0
  117. package/components/dropdown/dropdown-group.d.ts +3 -2
  118. package/components/dropdown/dropdown-group.js +9 -10
  119. package/components/dropdown/dropdown-group.js.map +1 -1
  120. package/components/dropdown/dropdown.d.ts +25 -21
  121. package/components/dropdown/dropdown.js +63 -79
  122. package/components/dropdown/dropdown.js.map +1 -1
  123. package/components/expansion-panel/expansion-panel.d.ts +73 -0
  124. package/components/expansion-panel/expansion-panel.js +173 -0
  125. package/components/expansion-panel/expansion-panel.js.map +1 -0
  126. package/components/{nav-drawer/styles/indigo/nav-drawer.indigo.css.d.ts → expansion-panel/themes/light/expansion-panel.base.css.d.ts} +0 -0
  127. package/components/expansion-panel/themes/light/expansion-panel.base.css.js +3 -0
  128. package/components/expansion-panel/themes/light/expansion-panel.base.css.js.map +1 -0
  129. package/components/{nav-drawer/styles/nav-drawer-header-item.base.css.d.ts → expansion-panel/themes/light/expansion-panel.bootstrap.css.d.ts} +0 -0
  130. package/components/expansion-panel/themes/light/expansion-panel.bootstrap.css.js +3 -0
  131. package/components/expansion-panel/themes/light/expansion-panel.bootstrap.css.js.map +1 -0
  132. package/components/{nav-drawer/styles/nav-drawer-item.base.css.d.ts → expansion-panel/themes/light/expansion-panel.fluent.css.d.ts} +0 -0
  133. package/components/expansion-panel/themes/light/expansion-panel.fluent.css.js +3 -0
  134. package/components/expansion-panel/themes/light/expansion-panel.fluent.css.js.map +1 -0
  135. package/components/{nav-drawer/styles/nav-drawer.base.css.d.ts → expansion-panel/themes/light/expansion-panel.indigo.css.d.ts} +0 -0
  136. package/components/expansion-panel/themes/light/expansion-panel.indigo.css.js +3 -0
  137. package/components/expansion-panel/themes/light/expansion-panel.indigo.css.js.map +1 -0
  138. package/components/form/form.d.ts +1 -1
  139. package/components/form/form.js +12 -2
  140. package/components/form/form.js.map +1 -1
  141. package/components/icon/icon.js +3 -7
  142. package/components/icon/icon.js.map +1 -1
  143. package/components/icon/icon.material.css.js +1 -1
  144. package/components/icon/icon.material.css.js.map +1 -1
  145. package/components/icon/icon.registry.js +5 -0
  146. package/components/icon/icon.registry.js.map +1 -1
  147. package/components/input/input-base.d.ts +7 -3
  148. package/components/input/input-base.js +16 -11
  149. package/components/input/input-base.js.map +1 -1
  150. package/components/input/input.d.ts +1 -4
  151. package/components/input/input.js +8 -4
  152. package/components/input/input.js.map +1 -1
  153. package/components/input/themes/light/input.base.css.js +1 -1
  154. package/components/input/themes/light/input.base.css.js.map +1 -1
  155. package/components/input/themes/light/input.bootstrap.css.js +1 -1
  156. package/components/input/themes/light/input.bootstrap.css.js.map +1 -1
  157. package/components/list/list.js +4 -0
  158. package/components/list/list.js.map +1 -1
  159. package/components/list/themes/light/list-item.bootstrap.css.js +1 -1
  160. package/components/list/themes/light/list-item.bootstrap.css.js.map +1 -1
  161. package/components/list/themes/light/list-item.fluent.css.js +1 -1
  162. package/components/list/themes/light/list-item.fluent.css.js.map +1 -1
  163. package/components/list/themes/light/list-item.indigo.css.js +1 -1
  164. package/components/list/themes/light/list-item.indigo.css.js.map +1 -1
  165. package/components/list/themes/light/list.base.css.js +1 -1
  166. package/components/list/themes/light/list.base.css.js.map +1 -1
  167. package/components/mask-input/mask-input-base.d.ts +38 -0
  168. package/components/mask-input/mask-input-base.js +110 -0
  169. package/components/mask-input/mask-input-base.js.map +1 -0
  170. package/components/mask-input/mask-input.d.ts +71 -0
  171. package/components/mask-input/mask-input.js +182 -0
  172. package/components/mask-input/mask-input.js.map +1 -0
  173. package/components/mask-input/mask-parser.d.ts +30 -0
  174. package/components/mask-input/mask-parser.js +167 -0
  175. package/components/mask-input/mask-parser.js.map +1 -0
  176. package/components/nav-drawer/nav-drawer-header-item.js +4 -3
  177. package/components/nav-drawer/nav-drawer-header-item.js.map +1 -1
  178. package/components/nav-drawer/nav-drawer-item.d.ts +1 -0
  179. package/components/nav-drawer/nav-drawer-item.js +9 -5
  180. package/components/nav-drawer/nav-drawer-item.js.map +1 -1
  181. package/components/nav-drawer/nav-drawer.js +6 -2
  182. package/components/nav-drawer/nav-drawer.js.map +1 -1
  183. package/components/{snackbar/themes/snackbar.base.css.d.ts → nav-drawer/themes/dark/nav-drawer-item.base.css.d.ts} +0 -0
  184. package/components/nav-drawer/themes/dark/nav-drawer-item.base.css.js +3 -0
  185. package/components/nav-drawer/themes/dark/nav-drawer-item.base.css.js.map +1 -0
  186. package/components/{snackbar/themes/snackbar.bootstrap.css.d.ts → nav-drawer/themes/dark/nav-drawer-item.bootstrap.css.d.ts} +0 -0
  187. package/components/nav-drawer/themes/dark/nav-drawer-item.bootstrap.css.js +3 -0
  188. package/components/nav-drawer/themes/dark/nav-drawer-item.bootstrap.css.js.map +1 -0
  189. package/components/{snackbar/themes/snackbar.fluent.css.d.ts → nav-drawer/themes/dark/nav-drawer-item.fluent.css.d.ts} +0 -0
  190. package/components/nav-drawer/themes/dark/nav-drawer-item.fluent.css.js +3 -0
  191. package/components/nav-drawer/themes/dark/nav-drawer-item.fluent.css.js.map +1 -0
  192. package/components/{snackbar/themes/snackbar.indigo.css.d.ts → nav-drawer/themes/dark/nav-drawer-item.indigo.css.d.ts} +0 -0
  193. package/components/nav-drawer/themes/dark/nav-drawer-item.indigo.css.js +3 -0
  194. package/components/nav-drawer/themes/dark/nav-drawer-item.indigo.css.js.map +1 -0
  195. package/components/nav-drawer/themes/dark/nav-drawer.indigo.css.d.ts +1 -0
  196. package/components/nav-drawer/themes/dark/nav-drawer.indigo.css.js +3 -0
  197. package/components/nav-drawer/themes/dark/nav-drawer.indigo.css.js.map +1 -0
  198. package/components/nav-drawer/themes/light/fluent/nav-drawer-header-item.fluent.css.d.ts +1 -0
  199. package/components/nav-drawer/themes/light/fluent/nav-drawer-header-item.fluent.css.js +3 -0
  200. package/components/nav-drawer/themes/light/fluent/nav-drawer-header-item.fluent.css.js.map +1 -0
  201. package/components/nav-drawer/themes/light/fluent/nav-drawer-item.fluent.css.d.ts +1 -0
  202. package/components/nav-drawer/themes/light/fluent/nav-drawer-item.fluent.css.js +3 -0
  203. package/components/nav-drawer/themes/light/fluent/nav-drawer-item.fluent.css.js.map +1 -0
  204. package/components/nav-drawer/themes/light/indigo/nav-drawer-header-item.indigo.css.d.ts +1 -0
  205. package/components/nav-drawer/{styles → themes/light}/indigo/nav-drawer-header-item.indigo.css.js +0 -0
  206. package/components/nav-drawer/themes/light/indigo/nav-drawer-header-item.indigo.css.js.map +1 -0
  207. package/components/nav-drawer/themes/light/indigo/nav-drawer-item.indigo.css.d.ts +1 -0
  208. package/components/nav-drawer/themes/light/indigo/nav-drawer-item.indigo.css.js +3 -0
  209. package/components/nav-drawer/themes/light/indigo/nav-drawer-item.indigo.css.js.map +1 -0
  210. package/components/nav-drawer/themes/light/indigo/nav-drawer.indigo.css.d.ts +1 -0
  211. package/components/nav-drawer/themes/light/indigo/nav-drawer.indigo.css.js +3 -0
  212. package/components/nav-drawer/themes/light/indigo/nav-drawer.indigo.css.js.map +1 -0
  213. package/components/nav-drawer/themes/light/nav-drawer-header-item.base.css.d.ts +1 -0
  214. package/components/nav-drawer/{styles → themes/light}/nav-drawer-header-item.base.css.js +1 -1
  215. package/components/nav-drawer/themes/light/nav-drawer-header-item.base.css.js.map +1 -0
  216. package/components/nav-drawer/themes/light/nav-drawer-item.base.css.d.ts +1 -0
  217. package/components/nav-drawer/themes/light/nav-drawer-item.base.css.js +3 -0
  218. package/components/nav-drawer/themes/light/nav-drawer-item.base.css.js.map +1 -0
  219. package/components/nav-drawer/themes/light/nav-drawer.base.css.d.ts +1 -0
  220. package/components/nav-drawer/{styles → themes/light}/nav-drawer.base.css.js +1 -1
  221. package/components/nav-drawer/themes/light/nav-drawer.base.css.js.map +1 -0
  222. package/components/navbar/navbar.js +2 -1
  223. package/components/navbar/navbar.js.map +1 -1
  224. package/components/navbar/themes/light/navbar.base.css.js +1 -1
  225. package/components/navbar/themes/light/navbar.base.css.js.map +1 -1
  226. package/components/navbar/themes/light/navbar.bootstrap.css.js +1 -1
  227. package/components/navbar/themes/light/navbar.bootstrap.css.js.map +1 -1
  228. package/components/navbar/themes/light/navbar.fluent.css.d.ts +1 -0
  229. package/components/navbar/themes/light/navbar.fluent.css.js +3 -0
  230. package/components/navbar/themes/light/navbar.fluent.css.js.map +1 -0
  231. package/components/progress/circular-progress.d.ts +1 -1
  232. package/components/progress/circular-progress.js +3 -0
  233. package/components/progress/circular-progress.js.map +1 -1
  234. package/components/radio/radio.d.ts +2 -1
  235. package/components/radio/radio.js +6 -5
  236. package/components/radio/radio.js.map +1 -1
  237. package/components/radio/themes/light/radio.base.css.js +1 -1
  238. package/components/radio/themes/light/radio.base.css.js.map +1 -1
  239. package/components/radio/themes/light/radio.fluent.css.js +1 -1
  240. package/components/radio/themes/light/radio.fluent.css.js.map +1 -1
  241. package/components/rating/rating-symbol.base.css.d.ts +1 -0
  242. package/components/rating/rating-symbol.base.css.js +3 -0
  243. package/components/rating/rating-symbol.base.css.js.map +1 -0
  244. package/components/rating/rating-symbol.d.ts +8 -2
  245. package/components/rating/rating-symbol.js +12 -3
  246. package/components/rating/rating-symbol.js.map +1 -1
  247. package/components/rating/rating.base.css.js +1 -1
  248. package/components/rating/rating.base.css.js.map +1 -1
  249. package/components/rating/rating.bootstrap.css.js +1 -1
  250. package/components/rating/rating.bootstrap.css.js.map +1 -1
  251. package/components/rating/rating.d.ts +19 -14
  252. package/components/rating/rating.fluent.css.js +1 -1
  253. package/components/rating/rating.fluent.css.js.map +1 -1
  254. package/components/rating/rating.indigo.css.js +1 -1
  255. package/components/rating/rating.indigo.css.js.map +1 -1
  256. package/components/rating/rating.js +86 -44
  257. package/components/rating/rating.js.map +1 -1
  258. package/components/slider/range-slider.d.ts +1 -1
  259. package/components/slider/range-slider.js.map +1 -1
  260. package/components/slider/slider-base.js +4 -1
  261. package/components/slider/slider-base.js.map +1 -1
  262. package/components/slider/slider.d.ts +1 -1
  263. package/components/slider/themes/light/slider.base.css.js +1 -1
  264. package/components/slider/themes/light/slider.base.css.js.map +1 -1
  265. package/components/slider/themes/light/slider.bootstrap.css.js +1 -1
  266. package/components/slider/themes/light/slider.bootstrap.css.js.map +1 -1
  267. package/components/slider/themes/light/slider.fluent.css.js +1 -1
  268. package/components/slider/themes/light/slider.fluent.css.js.map +1 -1
  269. package/components/slider/themes/light/slider.indigo.css.js +1 -1
  270. package/components/slider/themes/light/slider.indigo.css.js.map +1 -1
  271. package/components/slider/themes/light/slider.material.css.js +1 -1
  272. package/components/slider/themes/light/slider.material.css.js.map +1 -1
  273. package/components/snackbar/snackbar.d.ts +1 -1
  274. package/components/snackbar/snackbar.js +8 -4
  275. package/components/snackbar/snackbar.js.map +1 -1
  276. package/components/snackbar/themes/dark/snackbar.indigo.css.d.ts +1 -0
  277. package/components/snackbar/themes/dark/snackbar.indigo.css.js +3 -0
  278. package/components/snackbar/themes/dark/snackbar.indigo.css.js.map +1 -0
  279. package/components/snackbar/themes/light/snackbar.base.css.d.ts +1 -0
  280. package/components/snackbar/themes/light/snackbar.base.css.js +3 -0
  281. package/components/snackbar/themes/light/snackbar.base.css.js.map +1 -0
  282. package/components/snackbar/themes/light/snackbar.bootstrap.css.d.ts +1 -0
  283. package/components/snackbar/themes/light/snackbar.bootstrap.css.js +3 -0
  284. package/components/snackbar/themes/light/snackbar.bootstrap.css.js.map +1 -0
  285. package/components/snackbar/themes/light/snackbar.fluent.css.d.ts +1 -0
  286. package/components/snackbar/themes/light/snackbar.fluent.css.js +3 -0
  287. package/components/snackbar/themes/light/snackbar.fluent.css.js.map +1 -0
  288. package/components/snackbar/themes/light/snackbar.indigo.css.d.ts +1 -0
  289. package/components/snackbar/themes/light/snackbar.indigo.css.js +3 -0
  290. package/components/snackbar/themes/light/snackbar.indigo.css.js.map +1 -0
  291. package/components/tabs/tab-panel.d.ts +20 -0
  292. package/components/tabs/tab-panel.js +20 -0
  293. package/components/tabs/tab-panel.js.map +1 -0
  294. package/components/tabs/tab.d.ts +37 -0
  295. package/components/tabs/tab.js +71 -0
  296. package/components/tabs/tab.js.map +1 -0
  297. package/components/tabs/tabs.d.ts +79 -0
  298. package/components/tabs/tabs.js +316 -0
  299. package/components/tabs/tabs.js.map +1 -0
  300. package/components/tabs/themes/dark/tab.dark.base.css.d.ts +1 -0
  301. package/components/tabs/themes/dark/tab.dark.base.css.js +3 -0
  302. package/components/tabs/themes/dark/tab.dark.base.css.js.map +1 -0
  303. package/components/tabs/themes/dark/tab.dark.bootstrap.css.d.ts +1 -0
  304. package/components/tabs/themes/dark/tab.dark.bootstrap.css.js +3 -0
  305. package/components/tabs/themes/dark/tab.dark.bootstrap.css.js.map +1 -0
  306. package/components/tabs/themes/light/tab-panel.base.css.d.ts +1 -0
  307. package/components/tabs/themes/light/tab-panel.base.css.js +3 -0
  308. package/components/tabs/themes/light/tab-panel.base.css.js.map +1 -0
  309. package/components/tabs/themes/light/tab.base.css.d.ts +1 -0
  310. package/components/tabs/themes/light/tab.base.css.js +3 -0
  311. package/components/tabs/themes/light/tab.base.css.js.map +1 -0
  312. package/components/tabs/themes/light/tab.bootstrap.css.d.ts +1 -0
  313. package/components/tabs/themes/light/tab.bootstrap.css.js +3 -0
  314. package/components/tabs/themes/light/tab.bootstrap.css.js.map +1 -0
  315. package/components/tabs/themes/light/tab.fluent.css.d.ts +1 -0
  316. package/components/tabs/themes/light/tab.fluent.css.js +3 -0
  317. package/components/tabs/themes/light/tab.fluent.css.js.map +1 -0
  318. package/components/tabs/themes/light/tab.indigo.css.d.ts +1 -0
  319. package/components/tabs/themes/light/tab.indigo.css.js +3 -0
  320. package/components/tabs/themes/light/tab.indigo.css.js.map +1 -0
  321. package/components/tabs/themes/light/tabs.base.css.d.ts +1 -0
  322. package/components/tabs/themes/light/tabs.base.css.js +3 -0
  323. package/components/tabs/themes/light/tabs.base.css.js.map +1 -0
  324. package/components/tabs/themes/light/tabs.bootstrap.css.d.ts +1 -0
  325. package/components/tabs/themes/light/tabs.bootstrap.css.js +3 -0
  326. package/components/tabs/themes/light/tabs.bootstrap.css.js.map +1 -0
  327. package/components/tabs/themes/light/tabs.fluent.css.d.ts +1 -0
  328. package/components/tabs/themes/light/tabs.fluent.css.js +3 -0
  329. package/components/tabs/themes/light/tabs.fluent.css.js.map +1 -0
  330. package/components/tabs/themes/light/tabs.indigo.css.d.ts +1 -0
  331. package/components/tabs/themes/light/tabs.indigo.css.js +3 -0
  332. package/components/tabs/themes/light/tabs.indigo.css.js.map +1 -0
  333. package/components/tabs/utils.d.ts +14 -0
  334. package/components/tabs/utils.js +32 -0
  335. package/components/tabs/utils.js.map +1 -0
  336. package/components/toast/themes/toast.base.css.js +1 -1
  337. package/components/toast/themes/toast.base.css.js.map +1 -1
  338. package/components/toggle/toggle.controller.d.ts +17 -2
  339. package/components/toggle/toggle.controller.js +16 -11
  340. package/components/toggle/toggle.controller.js.map +1 -1
  341. package/components/toggle/toggle.directive.d.ts +1 -1
  342. package/components/toggle/toggle.directive.js +6 -4
  343. package/components/toggle/toggle.directive.js.map +1 -1
  344. package/components/tree/themes/dark/tree-item.bootstrap.css.d.ts +1 -0
  345. package/components/tree/themes/dark/tree-item.bootstrap.css.js +3 -0
  346. package/components/tree/themes/dark/tree-item.bootstrap.css.js.map +1 -0
  347. package/components/tree/themes/dark/tree-item.fluent.css.d.ts +1 -0
  348. package/components/tree/themes/dark/tree-item.fluent.css.js +3 -0
  349. package/components/tree/themes/dark/tree-item.fluent.css.js.map +1 -0
  350. package/components/tree/themes/dark/tree-item.indigo.css.d.ts +1 -0
  351. package/components/tree/themes/dark/tree-item.indigo.css.js +3 -0
  352. package/components/tree/themes/dark/tree-item.indigo.css.js.map +1 -0
  353. package/components/tree/themes/light/tree-item.base.css.d.ts +1 -0
  354. package/components/tree/themes/light/tree-item.base.css.js +3 -0
  355. package/components/tree/themes/light/tree-item.base.css.js.map +1 -0
  356. package/components/tree/themes/light/tree-item.bootstrap.css.d.ts +1 -0
  357. package/components/tree/themes/light/tree-item.bootstrap.css.js +3 -0
  358. package/components/tree/themes/light/tree-item.bootstrap.css.js.map +1 -0
  359. package/components/tree/themes/light/tree-item.fluent.css.d.ts +1 -0
  360. package/components/tree/themes/light/tree-item.fluent.css.js +3 -0
  361. package/components/tree/themes/light/tree-item.fluent.css.js.map +1 -0
  362. package/components/tree/themes/light/tree-item.indigo.css.d.ts +1 -0
  363. package/components/tree/themes/light/tree-item.indigo.css.js +3 -0
  364. package/components/tree/themes/light/tree-item.indigo.css.js.map +1 -0
  365. package/components/tree/themes/light/tree.base.css.d.ts +1 -0
  366. package/components/tree/themes/light/tree.base.css.js +3 -0
  367. package/components/tree/themes/light/tree.base.css.js.map +1 -0
  368. package/components/tree/tree-item.d.ts +116 -0
  369. package/components/tree/tree-item.js +465 -0
  370. package/components/tree/tree-item.js.map +1 -0
  371. package/components/tree/tree.common.d.ts +17 -0
  372. package/components/tree/tree.common.js +2 -0
  373. package/components/tree/tree.common.js.map +1 -0
  374. package/components/tree/tree.d.ts +71 -0
  375. package/components/tree/tree.js +169 -0
  376. package/components/tree/tree.js.map +1 -0
  377. package/components/tree/tree.navigation.d.ts +41 -0
  378. package/components/tree/tree.navigation.js +260 -0
  379. package/components/tree/tree.navigation.js.map +1 -0
  380. package/components/tree/tree.selection.d.ts +55 -0
  381. package/components/tree/tree.selection.js +265 -0
  382. package/components/tree/tree.selection.js.map +1 -0
  383. package/custom-elements.json +2754 -1522
  384. package/index.d.ts +12 -8
  385. package/index.js +9 -7
  386. package/index.js.map +1 -1
  387. package/package.json +10 -8
  388. package/themes/dark/bootstrap.css +1 -1
  389. package/themes/dark/fluent.css +1 -1
  390. package/themes/dark/indigo.css +1 -1
  391. package/themes/dark/material.css +1 -1
  392. package/themes/light/bootstrap.css +1 -1
  393. package/themes/light/fluent.css +1 -1
  394. package/vscode-html-custom-data.json +515 -72
  395. package/components/nav-drawer/styles/indigo/nav-drawer-header-item.indigo.css.js.map +0 -1
  396. package/components/nav-drawer/styles/indigo/nav-drawer-item.indigo.css.js +0 -3
  397. package/components/nav-drawer/styles/indigo/nav-drawer-item.indigo.css.js.map +0 -1
  398. package/components/nav-drawer/styles/indigo/nav-drawer.indigo.css.js +0 -3
  399. package/components/nav-drawer/styles/indigo/nav-drawer.indigo.css.js.map +0 -1
  400. package/components/nav-drawer/styles/nav-drawer-header-item.base.css.js.map +0 -1
  401. package/components/nav-drawer/styles/nav-drawer-item.base.css.js +0 -3
  402. package/components/nav-drawer/styles/nav-drawer-item.base.css.js.map +0 -1
  403. package/components/nav-drawer/styles/nav-drawer.base.css.js.map +0 -1
  404. package/components/snackbar/themes/snackbar.base.css.js +0 -3
  405. package/components/snackbar/themes/snackbar.base.css.js.map +0 -1
  406. package/components/snackbar/themes/snackbar.bootstrap.css.js +0 -3
  407. package/components/snackbar/themes/snackbar.bootstrap.css.js.map +0 -1
  408. package/components/snackbar/themes/snackbar.fluent.css.js +0 -3
  409. package/components/snackbar/themes/snackbar.fluent.css.js.map +0 -1
  410. package/components/snackbar/themes/snackbar.indigo.css.js +0 -3
  411. package/components/snackbar/themes/snackbar.indigo.css.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"icon.js","sourceRoot":"","sources":["../../../src/components/icon/icon.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACvC,O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;AAvGwB,wBAAO,GAAG,UAAW,CAAA;AAErB,uBAAM,GAAG,MAAO,CAAA;AAE9B;IAAR,KAAK,EAAE;6CAAkB;AAQ1B;IAFC,QAAQ,EAAE;IACV,aAAa,CAAC,UAAU,CAAC;4CAMzB;AAyBD;IADC,QAAQ,EAAE;kDAGV;AAMD;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;kDACnB;AAqCxB;IADC,aAAa,EAAE;oDAOf;AAGD;IADC,aAAa,EAAE;4DAOf;AAvGkB,gBAAgB;IADpC,aAAa,CAAC,UAAU,CAAC;GACL,gBAAgB,CAwGpC;eAxGoB,gBAAgB","sourcesContent":["import { html, LitElement } from 'lit';\nimport { customElement, property, state } from 'lit/decorators.js';\nimport { unsafeSVG } from 'lit/directives/unsafe-svg.js';\nimport { alternateName } from '../common/decorators/alternateName.js';\nimport { blazorInclude } from '../common/decorators/blazorInclude.js';\nimport { SizableMixin } from '../common/mixins/sizable.js';\nimport { styles } from './icon.material.css.js';\nimport {\n IconsRegistry,\n registerIcon as registerIcon_impl,\n registerIconFromText as registerIconFromText_impl,\n} from './icon.registry.js';\n\n/**\n * Icon component\n *\n * @element igc-icon\n *\n *\n */\n@customElement('igc-icon')\nexport default class IgcIconComponent extends SizableMixin(LitElement) {\n public static readonly tagName = 'igc-icon';\n\n public static override styles = styles;\n\n @state() private svg = '';\n\n private _name = '';\n\n private _collection = 'default';\n\n @property()\n @alternateName('iconName')\n public set name(value: string) {\n if (this._name !== value) {\n this._name = value;\n this.getIcon();\n }\n }\n\n /**\n * The name of the icon glyph to draw.\n *\n * @attr [name=\"\"]\n */\n public get name(): string {\n return this._name;\n }\n\n public set collection(value: string) {\n if (this._collection !== value) {\n this._collection = value;\n this.getIcon();\n }\n }\n\n /**\n * The name of the registered collection for look up of icons.\n * Defaults to `default`.\n *\n * @attr [collection=default]\n */\n @property()\n public get collection(): string {\n return this._collection;\n }\n\n /**\n * Whether to flip the icon. Useful for RTL layouts.\n */\n @property({ type: Boolean, reflect: true })\n public mirrored = false;\n\n constructor() {\n super();\n this.size = 'medium';\n }\n\n public override connectedCallback() {\n super.connectedCallback();\n this.setAttribute('role', 'img');\n IconsRegistry.instance().subscribe(this.iconLoaded);\n }\n\n public override disconnectedCallback() {\n super.disconnectedCallback();\n IconsRegistry.instance().unsubscribe(this.iconLoaded);\n }\n\n private iconLoaded = (name: string, collection: string) => {\n if (this.name === name && this.collection === collection) {\n this.getIcon();\n }\n };\n\n private getIcon() {\n const svg =\n this._name && this._collection\n ? IconsRegistry.instance().getIcon(this._name, this._collection)\n : '';\n this.svg = svg ?? '';\n }\n\n protected override render() {\n return html` ${unsafeSVG(this.svg)} `;\n }\n\n @blazorInclude()\n protected async registerIcon(\n name: string,\n url: string,\n collection = 'default'\n ) {\n await registerIcon_impl(name, url, collection);\n }\n\n @blazorInclude()\n protected registerIconFromText(\n name: string,\n iconText: string,\n collection = 'default'\n ) {\n registerIconFromText_impl(name, iconText, collection);\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'igc-icon': IgcIconComponent;\n }\n}\n"]}
1
+ {"version":3,"file":"icon.js","sourceRoot":"","sources":["../../../src/components/icon/icon.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAC;AAChD,OAAO,EACL,aAAa,EACb,YAAY,IAAI,iBAAiB,EACjC,oBAAoB,IA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js';\nimport { unsafeSVG } from 'lit/directives/unsafe-svg.js';\nimport { alternateName } from '../common/decorators/alternateName.js';\nimport { blazorInclude } from '../common/decorators/blazorInclude.js';\nimport { SizableMixin } from '../common/mixins/sizable.js';\nimport { styles } from './icon.material.css.js';\nimport {\n IconsRegistry,\n registerIcon as registerIcon_impl,\n registerIconFromText as registerIconFromText_impl,\n} from './icon.registry.js';\n\n/**\n * Icon component\n *\n * @element igc-icon\n *\n *\n */\nexport default class IgcIconComponent extends SizableMixin(LitElement) {\n public static readonly tagName = 'igc-icon';\n\n public static override styles = styles;\n\n @state() private svg = '';\n\n private _name = '';\n\n private _collection = 'default';\n\n @property()\n @alternateName('iconName')\n public set name(value: string) {\n if (this._name !== value) {\n this._name = value;\n this.getIcon();\n }\n }\n\n /**\n * The name of the icon glyph to draw.\n *\n * @attr [name=\"\"]\n */\n public get name(): string {\n return this._name;\n }\n\n public set collection(value: string) {\n if (this._collection !== value) {\n this._collection = value;\n this.getIcon();\n }\n }\n\n /**\n * The name of the registered collection for look up of icons.\n * Defaults to `default`.\n *\n * @attr [collection=default]\n */\n @property()\n public get collection(): string {\n return this._collection;\n }\n\n /**\n * Whether to flip the icon. Useful for RTL layouts.\n */\n @property({ type: Boolean, reflect: true })\n public mirrored = false;\n\n constructor() {\n super();\n this.size = 'medium';\n }\n\n public override connectedCallback() {\n super.connectedCallback();\n this.setAttribute('role', 'img');\n IconsRegistry.instance().subscribe(this.iconLoaded);\n }\n\n public override disconnectedCallback() {\n super.disconnectedCallback();\n IconsRegistry.instance().unsubscribe(this.iconLoaded);\n }\n\n private iconLoaded = (name: string, collection: string) => {\n if (this.name === name && this.collection === collection) {\n this.getIcon();\n }\n };\n\n private getIcon() {\n const svg =\n this._name && this._collection\n ? IconsRegistry.instance().getIcon(this._name, this._collection)\n : '';\n this.svg = svg ?? '';\n }\n\n protected override render() {\n return html` ${unsafeSVG(this.svg)} `;\n }\n\n @blazorInclude()\n protected async registerIcon(\n name: string,\n url: string,\n collection = 'default'\n ) {\n await registerIcon_impl(name, url, collection);\n }\n\n @blazorInclude()\n protected registerIconFromText(\n name: string,\n iconText: string,\n collection = 'default'\n ) {\n registerIconFromText_impl(name, iconText, collection);\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'igc-icon': IgcIconComponent;\n }\n}\n"]}
@@ -1,3 +1,3 @@
1
1
  import { css } from 'lit';
2
- export const styles = css `:host{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;scrollbar-width:var(--scrolbar-size, 0.875rem);scrollbar-color:var(--igc-scrollbar-thumb-color, hsla(var(--igc-gray-400), var(--igc-gray-a))) var(--igc-scrollbar-track-color, hsla(var(--igc-gray-200), var(--igc-gray-a)))}:host *,:host *::before,:host *::after{-webkit-box-sizing:border-box;box-sizing:border-box}:host ::-webkit-scrollbar{width:var(--scrolbar-size, 0.875rem);height:var(--scrolbar-size, 0.875rem);background:var(--igc-scrollbar-track-color, hsla(var(--igc-gray-200), var(--igc-gray-a)))}:host ::-webkit-scrollbar-thumb{background:var(--igc-scrollbar-thumb-color, hsla(var(--igc-gray-400), var(--igc-gray-a)))}[hidden]{display:none !important}:host{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:var(--size, 1.25rem);height:var(--size, 1.25rem);fill:currentcolor}:host([size=small]){--size: 1rem}:host([size=medium]){--size: 1.25rem}:host([size=large]){--size: 1.5rem}:host([mirrored]){-webkit-transform:scaleX(-1);-ms-transform:scaleX(-1);transform:scaleX(-1)}`;
2
+ export const styles = css `:host{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;scrollbar-width:var(--scrolbar-size, 0.875rem);scrollbar-color:var(--igc-scrollbar-thumb-color, hsla(var(--igc-gray-400), var(--igc-gray-a))) var(--igc-scrollbar-track-color, hsla(var(--igc-gray-200), var(--igc-gray-a)))}:host *,:host *::before,:host *::after{-webkit-box-sizing:border-box;box-sizing:border-box}:host ::-webkit-scrollbar{width:var(--scrolbar-size, 0.875rem);height:var(--scrolbar-size, 0.875rem);background:var(--igc-scrollbar-track-color, hsla(var(--igc-gray-200), var(--igc-gray-a)))}:host ::-webkit-scrollbar-thumb{background:var(--igc-scrollbar-thumb-color, hsla(var(--igc-gray-400), var(--igc-gray-a)))}[hidden]{display:none !important}svg{height:100%;width:100%}:host{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:var(--size, 1.25rem);height:var(--size, 1.25rem);fill:currentcolor}:host([size=small]){--size: 1rem}:host([size=medium]){--size: 1.25rem}:host([size=large]){--size: 1.5rem}:host([mirrored]){-webkit-transform:scaleX(-1);-ms-transform:scaleX(-1);transform:scaleX(-1)}`;
3
3
  //# sourceMappingURL=icon.material.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"icon.material.css.js","sourceRoot":"","sources":["../../../src/components/icon/icon.material.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA,qsCAAqsC,CAAC","sourcesContent":["import { css } from 'lit';\n\nexport const styles = css`:host{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;scrollbar-width:var(--scrolbar-size, 0.875rem);scrollbar-color:var(--igc-scrollbar-thumb-color, hsla(var(--igc-gray-400), var(--igc-gray-a))) var(--igc-scrollbar-track-color, hsla(var(--igc-gray-200), var(--igc-gray-a)))}:host *,:host *::before,:host *::after{-webkit-box-sizing:border-box;box-sizing:border-box}:host ::-webkit-scrollbar{width:var(--scrolbar-size, 0.875rem);height:var(--scrolbar-size, 0.875rem);background:var(--igc-scrollbar-track-color, hsla(var(--igc-gray-200), var(--igc-gray-a)))}:host ::-webkit-scrollbar-thumb{background:var(--igc-scrollbar-thumb-color, hsla(var(--igc-gray-400), var(--igc-gray-a)))}[hidden]{display:none !important}:host{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:var(--size, 1.25rem);height:var(--size, 1.25rem);fill:currentcolor}:host([size=small]){--size: 1rem}:host([size=medium]){--size: 1.25rem}:host([size=large]){--size: 1.5rem}:host([mirrored]){-webkit-transform:scaleX(-1);-ms-transform:scaleX(-1);transform:scaleX(-1)}`;\n"]}
1
+ {"version":3,"file":"icon.material.css.js","sourceRoot":"","sources":["../../../src/components/icon/icon.material.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA,guCAAguC,CAAC","sourcesContent":["import { css } from 'lit';\n\nexport const styles = css`:host{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;scrollbar-width:var(--scrolbar-size, 0.875rem);scrollbar-color:var(--igc-scrollbar-thumb-color, hsla(var(--igc-gray-400), var(--igc-gray-a))) var(--igc-scrollbar-track-color, hsla(var(--igc-gray-200), var(--igc-gray-a)))}:host *,:host *::before,:host *::after{-webkit-box-sizing:border-box;box-sizing:border-box}:host ::-webkit-scrollbar{width:var(--scrolbar-size, 0.875rem);height:var(--scrolbar-size, 0.875rem);background:var(--igc-scrollbar-track-color, hsla(var(--igc-gray-200), var(--igc-gray-a)))}:host ::-webkit-scrollbar-thumb{background:var(--igc-scrollbar-thumb-color, hsla(var(--igc-gray-400), var(--igc-gray-a)))}[hidden]{display:none !important}svg{height:100%;width:100%}:host{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:var(--size, 1.25rem);height:var(--size, 1.25rem);fill:currentcolor}:host([size=small]){--size: 1rem}:host([size=medium]){--size: 1.25rem}:host([size=large]){--size: 1.5rem}:host([mirrored]){-webkit-transform:scaleX(-1);-ms-transform:scaleX(-1);transform:scaleX(-1)}`;\n"]}
@@ -66,7 +66,12 @@ export const registerIconFromText = (name, iconText, collection = 'default') =>
66
66
  const internalIcons = {
67
67
  navigate_before: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M15.61 7.41L14.2 6l-6 6 6 6 1.41-1.41L11.03 12l4.58-4.59z"/></svg>`,
68
68
  navigate_next: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M10.02 6L8.61 7.41 13.19 12l-4.58 4.59L10.02 18l6-6-6-6z"/></svg>`,
69
+ keyboard_arrow_up: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0z" fill="none"/><path d="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"/></svg>`,
70
+ keyboard_arrow_down: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"/></svg>`,
71
+ keyboard_arrow_right: `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"/></svg>`,
69
72
  chip_cancel: `<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"/></svg>`,
70
73
  chip_select: `<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><path d="M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"/></svg>`,
74
+ star: `<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px"><path d="M0 0h24v24H0z" fill="none"/><path d="M0 0h24v24H0z" fill="none"/><path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/></svg>`,
75
+ star_border: `<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px"><path d="M0 0h24v24H0z" fill="none"/><path d="M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"/></svg>`,
71
76
  };
72
77
  //# sourceMappingURL=icon.registry.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"icon.registry.js","sourceRoot":"","sources":["../../../src/components/icon/icon.registry.ts"],"names":[],"mappings":"AAIA,MAAM,OAAO,aAAa;IAcxB;QAHQ,kBAAa,GAAG,IAAI,GAAG,EAA0B,CAAC;QAClD,cAAS,GAAG,IAAI,GAAG,EAA8C,CAAC;QAGxE,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,UAAU,EAAE,aAAa,CAAC,CAAC;IACpD,CAAC;IAbM,MAAM,CAAC,QAAQ;QACpB,IAAI,CAAC,aAAa,CAAC,SAAS,EAAE;YAC5B,aAAa,CAAC,SAAS,GAAG,IAAI,aAAa,EAAE,CAAC;SAC/C;QAED,OAAO,aAAa,CAAC,SAAS,CAAC;IACjC,CAAC;IASM,SAAS,CAAC,QAAoD;QACnE,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC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AAE;YAChC,UAAU,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAE,CAAC;SAC5C;aAAM;YACL,UAAU,GAAG,EAAE,CAAC;YAChB,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;SAC1C;QAED,OAAO,UAAU,CAAC;IACpB,CAAC;CACF;AAED,MAAM,CAAC,MAAM,YAAY,GAAG,KAAK,EAC/B,IAAY,EACZ,GAAW,EACX,UAAU,GAAG,SAAS,EACtB,EAAE;IACF,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,CAAC,CAAC;IAElC,IAAI,QAAQ,CAAC,EAAE,EAAE;QACf,MAAM,KAAK,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QACpC,aAAa,CAAC,QAAQ,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC;KAChE;SAAM;QACL,MAAM,IAAI,KAAK,CAAC,gCAAgC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC;KACrE;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAClC,IAAY,EACZ,QAAgB,EAChB,UAAU,GAAG,SAAS,EACtB,EAAE;IACF,aAAa,CAAC,QAAQ,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC;AACpE,CAAC,CAAC;AAEF,MAAM,aAAa,GAAmB;IACpC,eAAe,EAAE,gLAAgL;IACjM,aAAa,EAAE,+KAA+K;IAC9L,WAAW,EAAE,2TAA2T;IACxU,WAAW,EAAE,6LAA6L;CAC3M,CAAC","sourcesContent":["interface IconCollection {\n [name: string]: string;\n}\n\nexport class IconsRegistry {\n private static _instance: IconsRegistry;\n\n public static instance() {\n if (!IconsRegistry._instance) {\n IconsRegistry._instance = new IconsRegistry();\n }\n\n return IconsRegistry._instance;\n }\n\n private iconsRegistry = new Map<string, IconCollection>();\n private callbacks = new Set<(name: string, collection: string) => void>();\n\n constructor() {\n this.iconsRegistry.set('internal', internalIcons);\n }\n\n public subscribe(callback: (name: string, collection: string) => void) {\n this.callbacks.add(callback);\n }\n\n public unsubscribe(callback: (name: string, collection: string) => void) {\n this.callbacks.delete(callback);\n }\n\n public registerIcon(name: string, iconText: string, collection = 'default') {\n const div = document.createElement('div');\n div.innerHTML = iconText;\n const svg = div.querySelector('svg') as SVGElement;\n\n if (svg) {\n svg.setAttribute('fit', '');\n svg.setAttribute('preserveAspectRatio', 'xMidYMid meet');\n const svgText = svg.outerHTML;\n\n const collectionRegistry = this.getOrCreateIconCollection(collection);\n collectionRegistry[name] = svgText;\n this.callbacks.forEach((c) => c(name, collection));\n } else {\n throw new Error('SVG element not found.');\n }\n }\n\n public getIcon(name: string, collection = 'default') {\n if (this.iconsRegistry.has(collection)) {\n return this.iconsRegistry.get(collection)![name];\n }\n\n return undefined;\n }\n\n private getOrCreateIconCollection(name: string) {\n let collection: IconCollection;\n\n if (this.iconsRegistry.has(name)) {\n collection = this.iconsRegistry.get(name)!;\n } else {\n collection = {};\n this.iconsRegistry.set(name, collection);\n }\n\n return collection;\n }\n}\n\nexport const registerIcon = async (\n name: string,\n url: string,\n collection = 'default'\n) => {\n const response = await fetch(url);\n\n if (response.ok) {\n const value = await response.text();\n IconsRegistry.instance().registerIcon(name, value, collection);\n } else {\n throw new Error(`Icon request failed. Status: ${response.status}.`);\n }\n};\n\nexport const registerIconFromText = (\n name: string,\n iconText: string,\n collection = 'default'\n) => {\n IconsRegistry.instance().registerIcon(name, iconText, collection);\n};\n\nconst internalIcons: IconCollection = {\n navigate_before: `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M0 0h24v24H0V0z\" fill=\"none\"/><path d=\"M15.61 7.41L14.2 6l-6 6 6 6 1.41-1.41L11.03 12l4.58-4.59z\"/></svg>`,\n navigate_next: `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M0 0h24v24H0V0z\" fill=\"none\"/><path d=\"M10.02 6L8.61 7.41 13.19 12l-4.58 4.59L10.02 18l6-6-6-6z\"/></svg>`,\n chip_cancel: `<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\"><path d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z\"/></svg>`,\n chip_select: `<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\"><path d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z\"/></svg>`,\n};\n"]}
1
+ {"version":3,"file":"icon.registry.js","sourceRoot":"","sources":["../../../src/components/icon/icon.registry.ts"],"names":[],"mappings":"AAIA,MAAM,OAAO,aAAa;IAcxB;QAHQ,kBAAa,GAAG,IAAI,GAAG,EAA0B,CAAC;QAClD,cAAS,GAAG,IAAI,GAAG,EAA8C,CAAC;QAGxE,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,UAAU,EAAE,aAAa,CAAC,CAAC;IACpD,CAAC;IAbM,MAAM,CAAC,QAAQ;QACpB,IAAI,CAAC,aAAa,CAAC,SAAS,EAAE;YAC5B,aAAa,CAAC,SAAS,GAAG,IAAI,aAAa,EAAE,CAAC;SAC/C;QAED,OAAO,aAAa,CAAC,SAAS,CAAC;IACjC,CAAC;IASM,SAAS,CAAC,QAAoD;QACnE,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAC/B,CAAC;IAEM,WAAW,CAAC,QAAoD;QACrE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,QA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YACL,UAAU,GAAG,EAAE,CAAC;YAChB,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;SAC1C;QAED,OAAO,UAAU,CAAC;IACpB,CAAC;CACF;AAED,MAAM,CAAC,MAAM,YAAY,GAAG,KAAK,EAC/B,IAAY,EACZ,GAAW,EACX,UAAU,GAAG,SAAS,EACtB,EAAE;IACF,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,CAAC,CAAC;IAElC,IAAI,QAAQ,CAAC,EAAE,EAAE;QACf,MAAM,KAAK,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QACpC,aAAa,CAAC,QAAQ,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,KAAK,EAAE,UAAU,CAAC,CAAC;KAChE;SAAM;QACL,MAAM,IAAI,KAAK,CAAC,gCAAgC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC;KACrE;AACH,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAClC,IAAY,EACZ,QAAgB,EAChB,UAAU,GAAG,SAAS,EACtB,EAAE;IACF,aAAa,CAAC,QAAQ,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,QAAQ,EAAE,UAAU,CAAC,CAAC;AACpE,CAAC,CAAC;AAEF,MAAM,aAAa,GAAmB;IACpC,eAAe,EAAE,gLAAgL;IACjM,aAAa,EAAE,+KAA+K;IAC9L,iBAAiB,EAAE,mKAAmK;IACtL,mBAAmB,EAAE,8KAA8K;IACnM,oBAAoB,EAAE,6KAA6K;IACnM,WAAW,EAAE,2TAA2T;IACxU,WAAW,EAAE,6LAA6L;IAC1M,IAAI,EAAE,6QAA6Q;IACnR,WAAW,EAAE,gVAAgV;CAC9V,CAAC","sourcesContent":["interface IconCollection {\n [name: string]: string;\n}\n\nexport class IconsRegistry {\n private static _instance: IconsRegistry;\n\n public static instance() {\n if (!IconsRegistry._instance) {\n IconsRegistry._instance = new IconsRegistry();\n }\n\n return IconsRegistry._instance;\n }\n\n private iconsRegistry = new Map<string, IconCollection>();\n private callbacks = new Set<(name: string, collection: string) => void>();\n\n constructor() {\n this.iconsRegistry.set('internal', internalIcons);\n }\n\n public subscribe(callback: (name: string, collection: string) => void) {\n this.callbacks.add(callback);\n }\n\n public unsubscribe(callback: (name: string, collection: string) => void) {\n this.callbacks.delete(callback);\n }\n\n public registerIcon(name: string, iconText: string, collection = 'default') {\n const div = document.createElement('div');\n div.innerHTML = iconText;\n const svg = div.querySelector('svg') as SVGElement;\n\n if (svg) {\n svg.setAttribute('fit', '');\n svg.setAttribute('preserveAspectRatio', 'xMidYMid meet');\n const svgText = svg.outerHTML;\n\n const collectionRegistry = this.getOrCreateIconCollection(collection);\n collectionRegistry[name] = svgText;\n this.callbacks.forEach((c) => c(name, collection));\n } else {\n throw new Error('SVG element not found.');\n }\n }\n\n public getIcon(name: string, collection = 'default') {\n if (this.iconsRegistry.has(collection)) {\n return this.iconsRegistry.get(collection)![name];\n }\n\n return undefined;\n }\n\n private getOrCreateIconCollection(name: string) {\n let collection: IconCollection;\n\n if (this.iconsRegistry.has(name)) {\n collection = this.iconsRegistry.get(name)!;\n } else {\n collection = {};\n this.iconsRegistry.set(name, collection);\n }\n\n return collection;\n }\n}\n\nexport const registerIcon = async (\n name: string,\n url: string,\n collection = 'default'\n) => {\n const response = await fetch(url);\n\n if (response.ok) {\n const value = await response.text();\n IconsRegistry.instance().registerIcon(name, value, collection);\n } else {\n throw new Error(`Icon request failed. Status: ${response.status}.`);\n }\n};\n\nexport const registerIconFromText = (\n name: string,\n iconText: string,\n collection = 'default'\n) => {\n IconsRegistry.instance().registerIcon(name, iconText, collection);\n};\n\nconst internalIcons: IconCollection = {\n navigate_before: `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M0 0h24v24H0V0z\" fill=\"none\"/><path d=\"M15.61 7.41L14.2 6l-6 6 6 6 1.41-1.41L11.03 12l4.58-4.59z\"/></svg>`,\n navigate_next: `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M0 0h24v24H0V0z\" fill=\"none\"/><path d=\"M10.02 6L8.61 7.41 13.19 12l-4.58 4.59L10.02 18l6-6-6-6z\"/></svg>`,\n keyboard_arrow_up: `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z\"/></svg>`,\n keyboard_arrow_down: `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M0 0h24v24H0V0z\" fill=\"none\"/><path d=\"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z\"/></svg>`,\n keyboard_arrow_right: `<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M0 0h24v24H0V0z\" fill=\"none\"/><path d=\"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z\"/></svg>`,\n chip_cancel: `<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\"><path d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z\"/></svg>`,\n chip_select: `<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24\" viewBox=\"0 0 24 24\" width=\"24\"><path d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z\"/></svg>`,\n star: `<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 0 24 24\" width=\"24px\"><path d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z\"/></svg>`,\n star_border: `<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 0 24 24\" width=\"24px\"><path d=\"M0 0h24v24H0z\" fill=\"none\"/><path d=\"M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z\"/></svg>`,\n};\n"]}
@@ -1,13 +1,14 @@
1
1
  import { LitElement, TemplateResult } from 'lit';
2
2
  import type { ReactiveTheme, ThemeController } from '../../theming/types.js';
3
3
  import { Constructor } from '../common/mixins/constructor.js';
4
+ import { Direction } from '../common/types.js';
4
5
  export interface IgcInputEventMap {
5
6
  igcInput: CustomEvent<string>;
6
7
  igcChange: CustomEvent<string>;
7
8
  igcFocus: CustomEvent<void>;
8
9
  igcBlur: CustomEvent<void>;
9
10
  }
10
- declare const IgcInputBaseComponent_base: Constructor<import("../common/mixins/sizable.js").SizableInterface> & Constructor<import("../common/mixins/event-emitter.js").EventEmitterInterface<IgcInputEventMap>> & Constructor<LitElement>;
11
+ declare const IgcInputBaseComponent_base: Constructor<import("../common/mixins/sizable.js").SizableInterface> & import("../common/mixins/constructor.js").AbstractConstructor<import("../common/mixins/event-emitter.js").EventEmitterInterface<IgcInputEventMap>> & Constructor<LitElement>;
11
12
  export declare abstract class IgcInputBaseComponent extends IgcInputBaseComponent_base implements ReactiveTheme {
12
13
  protected static shadowRootOptions: {
13
14
  delegatesFocus: boolean;
@@ -15,13 +16,17 @@ export declare abstract class IgcInputBaseComponent extends IgcInputBaseComponen
15
16
  slotAssignment?: SlotAssignmentMode | undefined;
16
17
  };
17
18
  static styles: import("lit").CSSResult;
19
+ private static readonly increment;
18
20
  protected inputId: string;
19
21
  /** The value attribute of the control. */
20
- abstract value: string;
22
+ abstract value: string | Date | null;
21
23
  protected input: HTMLInputElement;
22
24
  protected prefixes: Array<HTMLElement>;
23
25
  protected suffixes: Array<HTMLElement>;
26
+ protected helperText: Array<HTMLElement>;
24
27
  protected themeController: ThemeController;
28
+ /** The direction attribute of the control. */
29
+ dir: Direction;
25
30
  /** The name attribute of the control. */
26
31
  name: string;
27
32
  outlined: boolean;
@@ -51,7 +56,6 @@ export declare abstract class IgcInputBaseComponent extends IgcInputBaseComponen
51
56
  };
52
57
  protected handleFocus(): void;
53
58
  protected handleBlur(): void;
54
- protected handleChange(): void;
55
59
  /** Sets the text selection range of the control */
56
60
  setSelectionRange(start: number, end: number, direction?: 'backward' | 'forward' | 'none'): void;
57
61
  /** Replaces the selected text in the input. */
@@ -4,6 +4,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
4
4
  else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
5
  return c > 3 && r && Object.defineProperty(target, key, r), r;
6
6
  };
7
+ var IgcInputBaseComponent_1;
7
8
  import { html, LitElement, nothing } from 'lit';
8
9
  import { property, query, queryAssignedElements } from 'lit/decorators.js';
9
10
  import { themes } from '../../theming/theming-decorator.js';
@@ -11,17 +12,17 @@ import { alternateName } from '../common/decorators/alternateName.js';
11
12
  import { blazorSuppress } from '../common/decorators/blazorSuppress.js';
12
13
  import { EventEmitterMixin } from '../common/mixins/event-emitter.js';
13
14
  import { SizableMixin } from '../common/mixins/sizable.js';
14
- import { partNameMap } from '../common/util.js';
15
+ import { createCounter, partNameMap } from '../common/util.js';
15
16
  import { styles } from './themes/light/input.base.css.js';
16
17
  import { styles as bootstrap } from './themes/light/input.bootstrap.css.js';
17
18
  import { styles as fluent } from './themes/light/input.fluent.css.js';
18
19
  import { styles as indigo } from './themes/light/input.indigo.css.js';
19
20
  import { styles as material } from './themes/light/input.material.css.js';
20
- let nextId = 0;
21
- let IgcInputBaseComponent = class IgcInputBaseComponent extends SizableMixin(EventEmitterMixin(LitElement)) {
21
+ let IgcInputBaseComponent = IgcInputBaseComponent_1 = class IgcInputBaseComponent extends SizableMixin(EventEmitterMixin(LitElement)) {
22
22
  constructor() {
23
23
  super();
24
- this.inputId = `input-${nextId++}`;
24
+ this.inputId = `input-${IgcInputBaseComponent_1.increment()}`;
25
+ this.dir = 'auto';
25
26
  this.outlined = false;
26
27
  this.required = false;
27
28
  this.disabled = false;
@@ -55,10 +56,6 @@ let IgcInputBaseComponent = class IgcInputBaseComponent extends SizableMixin(Eve
55
56
  handleBlur() {
56
57
  this.emitEvent('igcBlur');
57
58
  }
58
- handleChange() {
59
- this.value = this.input.value;
60
- this.emitEvent('igcChange', { detail: this.value });
61
- }
62
59
  setSelectionRange(start, end, direction = 'none') {
63
60
  this.input.setSelectionRange(start, end, direction);
64
61
  }
@@ -94,7 +91,7 @@ let IgcInputBaseComponent = class IgcInputBaseComponent extends SizableMixin(Eve
94
91
  <div part="filler"></div>
95
92
  <div part="end">${this.renderSuffix()}</div>
96
93
  </div>
97
- <div part="helper-text">
94
+ <div part="helper-text" .hidden="${this.helperText.length == 0}">
98
95
  <slot name="helper-text"></slot>
99
96
  </div>
100
97
  `;
@@ -104,7 +101,7 @@ let IgcInputBaseComponent = class IgcInputBaseComponent extends SizableMixin(Eve
104
101
  <div part="${partNameMap(this.resolvePartNames('container'))}">
105
102
  ${this.renderPrefix()} ${this.renderInput()} ${this.renderSuffix()}
106
103
  </div>
107
- <div part="helper-text">
104
+ <div part="helper-text" .hidden="${this.helperText.length == 0}">
108
105
  <slot name="helper-text"></slot>
109
106
  </div>`;
110
107
  }
@@ -119,6 +116,7 @@ IgcInputBaseComponent.shadowRootOptions = {
119
116
  delegatesFocus: true,
120
117
  };
121
118
  IgcInputBaseComponent.styles = styles;
119
+ IgcInputBaseComponent.increment = createCounter();
122
120
  __decorate([
123
121
  blazorSuppress()
124
122
  ], IgcInputBaseComponent.prototype, "value", void 0);
@@ -131,6 +129,13 @@ __decorate([
131
129
  __decorate([
132
130
  queryAssignedElements({ slot: 'suffix' })
133
131
  ], IgcInputBaseComponent.prototype, "suffixes", void 0);
132
+ __decorate([
133
+ queryAssignedElements({ slot: 'helper-text' })
134
+ ], IgcInputBaseComponent.prototype, "helperText", void 0);
135
+ __decorate([
136
+ property({ reflect: true }),
137
+ blazorSuppress()
138
+ ], IgcInputBaseComponent.prototype, "dir", void 0);
134
139
  __decorate([
135
140
  property()
136
141
  ], IgcInputBaseComponent.prototype, "name", void 0);
@@ -158,7 +163,7 @@ __decorate([
158
163
  __decorate([
159
164
  alternateName('blurComponent')
160
165
  ], IgcInputBaseComponent.prototype, "blur", null);
161
- IgcInputBaseComponent = __decorate([
166
+ IgcInputBaseComponent = IgcInputBaseComponent_1 = __decorate([
162
167
  themes({ bootstrap, material, fluent, indigo })
163
168
  ], IgcInputBaseComponent);
164
169
  export { IgcInputBaseComponent };
@@ -1 +1 @@
1
- {"version":3,"file":"input-base.js","sourceRoot":"","sources":["../../../src/components/input/input-base.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAkB,MAAM,KAAK,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAAE,MAAM,EAAE,MAAM,oCAAoC,CAAC;AAE5D,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AAExE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAA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uDACnB;AAIxB;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;uDACnB;AAIxB;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;uDACnB;AAIxB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;0DACC;AAI5B;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;oDACL;AAkBtB;IADC,aAAa,CAAC,gBAAgB,CAAC;kDAG/B;AAID;IADC,aAAa,CAAC,eAAe,CAAC;iDAG9B;AAhFmB,qBAAqB;IAD1C,MAAM,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;GAC1B,qBAAqB,CAkL1C;SAlLqB,qBAAqB","sourcesContent":["import { html, LitElement, nothing, TemplateResult } from 'lit';\nimport { property, query, queryAssignedElements } from 'lit/decorators.js';\nimport { themes } from '../../theming/theming-decorator.js';\nimport type { ReactiveTheme, ThemeController } from '../../theming/types.js';\nimport { alternateName } from '../common/decorators/alternateName.js';\nimport { blazorSuppress } from '../common/decorators/blazorSuppress.js';\nimport { Constructor } from '../common/mixins/constructor.js';\nimport { EventEmitterMixin } from '../common/mixins/event-emitter.js';\nimport { SizableMixin } from '../common/mixins/sizable.js';\nimport { partNameMap } from '../common/util.js';\nimport { styles } from './themes/light/input.base.css.js';\nimport { styles as bootstrap } from './themes/light/input.bootstrap.css.js';\nimport { styles as fluent } from './themes/light/input.fluent.css.js';\nimport { styles as indigo } from './themes/light/input.indigo.css.js';\nimport { styles as material } from './themes/light/input.material.css.js';\n\nlet nextId = 0;\n\nexport interface IgcInputEventMap {\n /* alternateName: inputOcurred */\n igcInput: CustomEvent<string>;\n /* blazorSuppress */\n igcChange: CustomEvent<string>;\n igcFocus: CustomEvent<void>;\n igcBlur: CustomEvent<void>;\n}\n\n@themes({ bootstrap, material, fluent, indigo })\nexport abstract class IgcInputBaseComponent\n extends SizableMixin(\n EventEmitterMixin<IgcInputEventMap, Constructor<LitElement>>(LitElement)\n )\n implements ReactiveTheme\n{\n protected static shadowRootOptions = {\n ...LitElement.shadowRootOptions,\n delegatesFocus: true,\n };\n public static styles = styles;\n\n protected inputId = `input-${nextId++}`;\n\n /** The value attribute of the control. */\n @blazorSuppress()\n public abstract value: string;\n\n @query('input', true)\n protected input!: HTMLInputElement;\n\n @queryAssignedElements({ slot: 'prefix' })\n protected prefixes!: Array<HTMLElement>;\n\n @queryAssignedElements({ slot: 'suffix' })\n protected suffixes!: Array<HTMLElement>;\n\n protected themeController!: ThemeController;\n\n /** The name attribute of the control. */\n @property()\n public name!: string;\n\n @property({ reflect: true, type: Boolean })\n public outlined = false;\n\n /** Makes the control a required field. */\n @property({ reflect: true, type: Boolean })\n public required = false;\n\n /** Makes the control a disabled field. */\n @property({ reflect: true, type: Boolean })\n public disabled = false;\n\n /** Makes the control a readonly field. */\n @property({ reflect: true, type: Boolean })\n public readonly = false;\n\n /** The placeholder attribute of the control. */\n @property({ type: String })\n public placeholder!: string;\n\n /** The label for the control. */\n @property({ type: String })\n public label!: string;\n\n constructor() {\n super();\n this.size = 'medium';\n }\n\n public override connectedCallback() {\n super.connectedCallback();\n this.shadowRoot!.addEventListener('slotchange', () => this.requestUpdate());\n }\n\n public themeAdopted(controller: ThemeController): void {\n this.themeController = controller;\n }\n\n /** Sets focus on the control. */\n @alternateName('focusComponent')\n public override focus(options?: FocusOptions) {\n this.input.focus(options);\n }\n\n /** Removes focus from the control. */\n @alternateName('blurComponent')\n public override blur() {\n this.input.blur();\n }\n\n protected abstract renderInput(): TemplateResult;\n\n protected resolvePartNames(base: string) {\n return {\n [base]: true,\n prefixed: this.prefixes.length > 0,\n suffixed: this.suffixes.length > 0,\n filled: !!this.value,\n };\n }\n\n protected handleFocus() {\n this.emitEvent('igcFocus');\n }\n\n protected handleBlur() {\n this.emitEvent('igcBlur');\n }\n\n protected handleChange() {\n this.value = this.input.value;\n this.emitEvent('igcChange', { detail: this.value });\n }\n\n /** Sets the text selection range of the control */\n public setSelectionRange(\n start: number,\n end: number,\n direction: 'backward' | 'forward' | 'none' = 'none'\n ) {\n this.input.setSelectionRange(start, end, direction);\n }\n\n /** Replaces the selected text in the input. */\n public setRangeText(\n replacement: string,\n start: number,\n end: number,\n selectMode: 'select' | 'start' | 'end' | 'preserve' = 'preserve'\n ) {\n this.input.setRangeText(replacement, start, end, selectMode);\n }\n\n private renderPrefix() {\n return html`<div part=\"prefix\">\n <slot name=\"prefix\"></slot>\n </div>`;\n }\n\n private renderSuffix() {\n return html`<div part=\"suffix\">\n <slot name=\"suffix\"></slot>\n </div>`;\n }\n\n private renderLabel() {\n return this.label\n ? html`<label part=\"label\" for=\"${this.inputId}\"> ${this.label} </label>`\n : nothing;\n }\n\n private renderMaterial() {\n return html`\n <div\n part=\"${partNameMap({\n ...this.resolvePartNames('container'),\n labelled: this.label,\n })}\"\n >\n <div part=\"start\">${this.renderPrefix()}</div>\n ${this.renderInput()}\n <div part=\"notch\">${this.renderLabel()}</div>\n <div part=\"filler\"></div>\n <div part=\"end\">${this.renderSuffix()}</div>\n </div>\n <div part=\"helper-text\">\n <slot name=\"helper-text\"></slot>\n </div>\n `;\n }\n\n private renderStandard() {\n return html`${this.renderLabel()}\n <div part=\"${partNameMap(this.resolvePartNames('container'))}\">\n ${this.renderPrefix()} ${this.renderInput()} ${this.renderSuffix()}\n </div>\n <div part=\"helper-text\">\n <slot name=\"helper-text\"></slot>\n </div>`;\n }\n\n protected override render() {\n return html`${this.themeController.theme === 'material'\n ? this.renderMaterial()\n : this.renderStandard()}`;\n }\n}\n"]}
1
+ {"version":3,"file":"input-base.js","sourceRoot":"","sources":["../../../src/components/input/input-base.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAkB,MAAM,KAAK,CAAC;AAChE,OAAO,EAAE,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qB,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;uDACF;AAGxC;IADC,qBAAqB,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;uDACF;AAGxC;IADC,qBAAqB,CAAC,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;yDACL;AAO1C;IAFC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IAC3B,cAAc,EAAE;kDACuB;AAIxC;IADC,QAAQ,EAAE;mDACU;AAGrB;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;uDACnB;AAIxB;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;uDACnB;AAIxB;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;uDACnB;AAIxB;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;uDACnB;AAIxB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;0DACC;AAI5B;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;oDACL;AAkBtB;IADC,aAAa,CAAC,gBAAgB,CAAC;kDAG/B;AAID;IADC,aAAa,CAAC,eAAe,CAAC;iDAG9B;AAzFmB,qBAAqB;IAD1C,MAAM,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;GAC1B,qBAAqB,CA2L1C;SA3LqB,qBAAqB","sourcesContent":["import { html, LitElement, nothing, TemplateResult } from 'lit';\nimport { property, query, queryAssignedElements } from 'lit/decorators.js';\nimport { themes } from '../../theming/theming-decorator.js';\nimport type { ReactiveTheme, ThemeController } from '../../theming/types.js';\nimport { alternateName } from '../common/decorators/alternateName.js';\nimport { blazorSuppress } from '../common/decorators/blazorSuppress.js';\nimport { Constructor } from '../common/mixins/constructor.js';\nimport { EventEmitterMixin } from '../common/mixins/event-emitter.js';\nimport { SizableMixin } from '../common/mixins/sizable.js';\nimport { Direction } from '../common/types.js';\nimport { createCounter, partNameMap } from '../common/util.js';\nimport { styles } from './themes/light/input.base.css.js';\nimport { styles as bootstrap } from './themes/light/input.bootstrap.css.js';\nimport { styles as fluent } from './themes/light/input.fluent.css.js';\nimport { styles as indigo } from './themes/light/input.indigo.css.js';\nimport { styles as material } from './themes/light/input.material.css.js';\n\nexport interface IgcInputEventMap {\n /* alternateName: inputOcurred */\n igcInput: CustomEvent<string>;\n /* blazorSuppress */\n igcChange: CustomEvent<string>;\n igcFocus: CustomEvent<void>;\n igcBlur: CustomEvent<void>;\n}\n\n@themes({ bootstrap, material, fluent, indigo })\nexport abstract class IgcInputBaseComponent\n extends SizableMixin(\n EventEmitterMixin<IgcInputEventMap, Constructor<LitElement>>(LitElement)\n )\n implements ReactiveTheme\n{\n protected static shadowRootOptions = {\n ...LitElement.shadowRootOptions,\n delegatesFocus: true,\n };\n public static styles = styles;\n private static readonly increment = createCounter();\n\n protected inputId = `input-${IgcInputBaseComponent.increment()}`;\n\n /** The value attribute of the control. */\n @blazorSuppress()\n public abstract value: string | Date | null;\n\n @query('input', true)\n protected input!: HTMLInputElement;\n\n @queryAssignedElements({ slot: 'prefix' })\n protected prefixes!: Array<HTMLElement>;\n\n @queryAssignedElements({ slot: 'suffix' })\n protected suffixes!: Array<HTMLElement>;\n\n @queryAssignedElements({ slot: 'helper-text' })\n protected helperText!: Array<HTMLElement>;\n\n protected themeController!: ThemeController;\n\n /** The direction attribute of the control. */\n @property({ reflect: true })\n @blazorSuppress()\n public override dir: Direction = 'auto';\n\n /** The name attribute of the control. */\n @property()\n public name!: string;\n\n @property({ reflect: true, type: Boolean })\n public outlined = false;\n\n /** Makes the control a required field. */\n @property({ reflect: true, type: Boolean })\n public required = false;\n\n /** Makes the control a disabled field. */\n @property({ reflect: true, type: Boolean })\n public disabled = false;\n\n /** Makes the control a readonly field. */\n @property({ reflect: true, type: Boolean })\n public readonly = false;\n\n /** The placeholder attribute of the control. */\n @property({ type: String })\n public placeholder!: string;\n\n /** The label for the control. */\n @property({ type: String })\n public label!: string;\n\n constructor() {\n super();\n this.size = 'medium';\n }\n\n public override connectedCallback() {\n super.connectedCallback();\n this.shadowRoot!.addEventListener('slotchange', () => this.requestUpdate());\n }\n\n public themeAdopted(controller: ThemeController): void {\n this.themeController = controller;\n }\n\n /** Sets focus on the control. */\n @alternateName('focusComponent')\n public override focus(options?: FocusOptions) {\n this.input.focus(options);\n }\n\n /** Removes focus from the control. */\n @alternateName('blurComponent')\n public override blur() {\n this.input.blur();\n }\n\n protected abstract renderInput(): TemplateResult;\n\n protected resolvePartNames(base: string) {\n return {\n [base]: true,\n prefixed: this.prefixes.length > 0,\n suffixed: this.suffixes.length > 0,\n filled: !!this.value,\n };\n }\n\n protected handleFocus() {\n this.emitEvent('igcFocus');\n }\n\n protected handleBlur() {\n this.emitEvent('igcBlur');\n }\n\n // protected handleChange() {\n // this.value = this.input.value;\n // this.emitEvent('igcChange', { detail: this.value });\n // }\n\n /** Sets the text selection range of the control */\n public setSelectionRange(\n start: number,\n end: number,\n direction: 'backward' | 'forward' | 'none' = 'none'\n ) {\n this.input.setSelectionRange(start, end, direction);\n }\n\n /** Replaces the selected text in the input. */\n public setRangeText(\n replacement: string,\n start: number,\n end: number,\n selectMode: 'select' | 'start' | 'end' | 'preserve' = 'preserve'\n ) {\n this.input.setRangeText(replacement, start, end, selectMode);\n }\n\n private renderPrefix() {\n return html`<div part=\"prefix\">\n <slot name=\"prefix\"></slot>\n </div>`;\n }\n\n private renderSuffix() {\n return html`<div part=\"suffix\">\n <slot name=\"suffix\"></slot>\n </div>`;\n }\n\n private renderLabel() {\n return this.label\n ? html`<label part=\"label\" for=\"${this.inputId}\"> ${this.label} </label>`\n : nothing;\n }\n\n private renderMaterial() {\n return html`\n <div\n part=\"${partNameMap({\n ...this.resolvePartNames('container'),\n labelled: this.label,\n })}\"\n >\n <div part=\"start\">${this.renderPrefix()}</div>\n ${this.renderInput()}\n <div part=\"notch\">${this.renderLabel()}</div>\n <div part=\"filler\"></div>\n <div part=\"end\">${this.renderSuffix()}</div>\n </div>\n <div part=\"helper-text\" .hidden=\"${this.helperText.length == 0}\">\n <slot name=\"helper-text\"></slot>\n </div>\n `;\n }\n\n private renderStandard() {\n return html`${this.renderLabel()}\n <div part=\"${partNameMap(this.resolvePartNames('container'))}\">\n ${this.renderPrefix()} ${this.renderInput()} ${this.renderSuffix()}\n </div>\n <div part=\"helper-text\" .hidden=\"${this.helperText.length == 0}\">\n <slot name=\"helper-text\"></slot>\n </div>`;\n }\n\n protected override render() {\n return html`${this.themeController.theme === 'material'\n ? this.renderMaterial()\n : this.renderStandard()}`;\n }\n}\n"]}
@@ -1,5 +1,4 @@
1
1
  import { IgcInputBaseComponent } from './input-base.js';
2
- declare type Direction = 'ltr' | 'rtl' | 'auto';
3
2
  /**
4
3
  * @element igc-input
5
4
  *
@@ -22,8 +21,6 @@ declare type Direction = 'ltr' | 'rtl' | 'auto';
22
21
  export default class IgcInputComponent extends IgcInputBaseComponent {
23
22
  static readonly tagName = "igc-input";
24
23
  value: string;
25
- /** The direction attribute of the control. */
26
- dir: Direction;
27
24
  /** The type attribute of the control. */
28
25
  type: 'email' | 'number' | 'password' | 'search' | 'tel' | 'text' | 'url';
29
26
  /** The input mode attribute of the control. */
@@ -63,6 +60,7 @@ export default class IgcInputComponent extends IgcInputBaseComponent {
63
60
  stepDown(n?: number): void;
64
61
  private handleInvalid;
65
62
  private handleInput;
63
+ private handleChange;
66
64
  protected handleValueChange(): void;
67
65
  protected renderInput(): import("lit-html").TemplateResult<1>;
68
66
  }
@@ -71,4 +69,3 @@ declare global {
71
69
  'igc-input': IgcInputComponent;
72
70
  }
73
71
  }
74
- export {};
@@ -9,6 +9,7 @@ import { property } from 'lit/decorators.js';
9
9
  import { ifDefined } from 'lit/directives/if-defined.js';
10
10
  import { live } from 'lit/directives/live.js';
11
11
  import { alternateName } from '../common/decorators/alternateName.js';
12
+ import { blazorSuppress } from '../common/decorators/blazorSuppress.js';
12
13
  import { blazorTwoWayBind } from '../common/decorators/blazorTwoWayBind.js';
13
14
  import { watch } from '../common/decorators/watch.js';
14
15
  import { partNameMap } from '../common/util.js';
@@ -17,7 +18,6 @@ export default class IgcInputComponent extends IgcInputBaseComponent {
17
18
  constructor() {
18
19
  super(...arguments);
19
20
  this.value = '';
20
- this.dir = 'auto';
21
21
  this.type = 'text';
22
22
  this.invalid = false;
23
23
  }
@@ -50,6 +50,10 @@ export default class IgcInputComponent extends IgcInputBaseComponent {
50
50
  this.value = this.input.value;
51
51
  this.emitEvent('igcInput', { detail: this.value });
52
52
  }
53
+ handleChange() {
54
+ this.value = this.input.value;
55
+ this.emitEvent('igcChange', { detail: this.value });
56
+ }
53
57
  handleValueChange() {
54
58
  this.updateComplete.then(() => (this.invalid = !this.input.checkValidity()));
55
59
  }
@@ -89,9 +93,6 @@ __decorate([
89
93
  property(),
90
94
  blazorTwoWayBind('igcChange', 'detail')
91
95
  ], IgcInputComponent.prototype, "value", void 0);
92
- __decorate([
93
- property({ reflect: true })
94
- ], IgcInputComponent.prototype, "dir", void 0);
95
96
  __decorate([
96
97
  alternateName('displayType'),
97
98
  property({ reflect: true })
@@ -126,6 +127,9 @@ __decorate([
126
127
  __decorate([
127
128
  property()
128
129
  ], IgcInputComponent.prototype, "autocomplete", void 0);
130
+ __decorate([
131
+ blazorSuppress()
132
+ ], IgcInputComponent.prototype, "setRangeText", null);
129
133
  __decorate([
130
134
  watch('value', { waitUntilFirstUpdate: true })
131
135
  ], IgcInputComponent.prototype, "handleValueChange", null);
@@ -1 +1 @@
1
- {"version":3,"file":"input.js","sourceRoot":"","sources":["../../../src/components/input/input.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAC3B,O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C,KAAK,CAAC,OAAO,EAAE,EAAE,oBAAoB,EAAE,IAAI,EAAE,CAAC;0DAK9C","sourcesContent":["import { html } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { live } from 'lit/directives/live.js';\nimport { alternateName } from '../common/decorators/alternateName.js';\nimport { blazorTwoWayBind } from '../common/decorators/blazorTwoWayBind.js';\nimport { watch } from '../common/decorators/watch.js';\nimport { partNameMap } from '../common/util.js';\nimport { IgcInputBaseComponent } from './input-base.js';\n\ntype Direction = 'ltr' | 'rtl' | 'auto';\n\n/**\n * @element igc-input\n *\n * @slot prefix - Renders content before the input.\n * @slot suffix - Renders content after input.\n * @slot helper-text - Renders content below the input.\n *\n * @fires igcInput - Emitted when the control input receives user input.\n * @fires igcChange - Emitted when the control's checked state changes.\n * @fires igcFocus - Emitted when the control gains focus.\n * @fires igcBlur - Emitted when the control loses focus.\n *\n * @csspart container - The main wrapper that holds all main input elements.\n * @csspart input - The native input element.\n * @csspart label - The native label element.\n * @csspart prefix - The prefix wrapper.\n * @csspart suffix - The suffix wrapper.\n * @csspart helper-text - The helper text wrapper.\n */\nexport default class IgcInputComponent extends IgcInputBaseComponent {\n public static readonly tagName = 'igc-input';\n\n @property()\n @blazorTwoWayBind('igcChange', 'detail')\n public value = '';\n\n /** The direction attribute of the control. */\n @property({ reflect: true })\n public override dir: Direction = 'auto';\n\n /** The type attribute of the control. */\n @alternateName('displayType')\n @property({ reflect: true })\n public type:\n | 'email'\n | 'number'\n | 'password'\n | 'search'\n | 'tel'\n | 'text'\n | 'url' = 'text';\n\n /** The input mode attribute of the control. */\n @property()\n public inputmode!:\n | 'none'\n | 'txt'\n | 'decimal'\n | 'numeric'\n | 'tel'\n | 'search'\n | 'email'\n | 'url';\n\n /** The pattern attribute of the control. */\n @property({ type: String })\n public pattern!: string;\n\n /** Controls the validity of the control. */\n @property({ reflect: true, type: Boolean })\n public invalid = false;\n\n /** The minlength attribute of the control. */\n @property({ type: Number })\n public minlength!: number;\n\n /** The maxlength attribute of the control. */\n @property({ type: Number })\n public maxlength!: number;\n\n /** The min attribute of the control. */\n @property()\n public min!: number | string;\n\n /** The max attribute of the control. */\n @property()\n public max!: number | string;\n\n /** The step attribute of the control. */\n @property({ type: Number })\n public step!: number;\n\n /** The autofocus attribute of the control. */\n @property({ type: Boolean })\n public override autofocus!: boolean;\n\n /** The autocomplete attribute of the control. */\n @property()\n public autocomplete!: string;\n\n /** Checks for validity of the control and shows the browser message if it's invalid. */\n public reportValidity() {\n return this.input.reportValidity();\n }\n\n /** Replaces the selected text in the input. */\n public override setRangeText(\n replacement: string,\n start: number,\n end: number,\n selectMode: 'select' | 'start' | 'end' | 'preserve' = 'preserve'\n ) {\n super.setRangeText(replacement, start, end, selectMode);\n this.value = this.input.value;\n }\n\n /**\n * Sets a custom validation message for the control.\n * As long as `message` is not empty, the control is considered invalid.\n */\n public setCustomValidity(message: string) {\n this.input.setCustomValidity(message);\n this.invalid = !this.input.checkValidity();\n }\n\n /** Selects all text within the input. */\n public select() {\n return this.input.select();\n }\n\n /** Increments the numeric value of the input by one or more steps. */\n public stepUp(n?: number) {\n this.input.stepUp(n);\n this.handleChange();\n }\n\n /** Decrements the numeric value of the input by one or more steps. */\n public stepDown(n?: number) {\n this.input.stepDown(n);\n this.handleChange();\n }\n\n private handleInvalid() {\n this.invalid = true;\n }\n\n private handleInput() {\n this.value = this.input.value;\n this.emitEvent('igcInput', { detail: this.value });\n }\n\n @watch('value', { waitUntilFirstUpdate: true })\n protected handleValueChange() {\n this.updateComplete.then(\n () => (this.invalid = !this.input.checkValidity())\n );\n }\n\n protected renderInput() {\n return html`\n <input\n id=\"${this.inputId}\"\n part=\"${partNameMap(this.resolvePartNames('input'))}\"\n name=\"${ifDefined(this.name)}\"\n type=\"${ifDefined(this.type)}\"\n pattern=\"${ifDefined(this.pattern)}\"\n placeholder=\"${ifDefined(this.placeholder)}\"\n .value=\"${live(this.value)}\"\n ?readonly=\"${this.readonly}\"\n ?disabled=\"${this.disabled}\"\n ?required=\"${this.required}\"\n ?autofocus=\"${this.autofocus}\"\n autocomplete=\"${ifDefined(this.autocomplete as any)}\"\n inputmode=\"${ifDefined(this.inputmode)}\"\n min=\"${ifDefined(this.min)}\"\n max=\"${ifDefined(this.max)}\"\n minlength=\"${ifDefined(this.minlength)}\"\n maxlength=\"${ifDefined(this.maxlength)}\"\n step=\"${ifDefined(this.step)}\"\n aria-invalid=\"${this.invalid ? 'true' : 'false'}\"\n @invalid=\"${this.handleInvalid}\"\n @change=\"${this.handleChange}\"\n @input=\"${this.handleInput}\"\n @focus=\"${this.handleFocus}\"\n @blur=\"${this.handleBlur}\"\n />\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'igc-input': IgcInputComponent;\n }\n}\n"]}
1
+ {"version":3,"file":"input.js","sourceRoot":"","sources":["../../../src/components/input/input.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAC3B,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAC;AAC5E,OAAO,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAqBxD,MAAM,CAAC,OAAO,OAAO,iBAAkB,SAAQ,qBAAqB;IAApE;;QAKS,UAAK,GAAG,EAAE,CAAC;QAKX,SAAI,GAOC,MAAM,CAAC;QAoBZ,YAAO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JsB,yBAAO,GAAG,WAAW,CAAC;AAI7C;IAFC,QAAQ,EAAE;IACV,gBAAgB,CAAC,WAAW,EAAE,QAAQ,CAAC;gDACtB;AAKlB;IAFC,aAAa,CAAC,aAAa,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;+CAQT;AAInB;IADC,QAAQ,EAAE;oDASD;AAIV;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;kDACH;AAIxB;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;kDACpB;AAIvB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;oDACD;AAI1B;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;oDACD;AAI1B;IADC,QAAQ,EAAE;8CACkB;AAI7B;IADC,QAAQ,EAAE;8CACkB;AAI7B;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;+CACN;AAIrB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;oDACQ;AAIpC;IADC,QAAQ,EAAE;uDACkB;AAS7B;IADC,cAAc,EAAE;qDAShB;AA2CD;IADC,KAAK,CAAC,OAAO,EAAE,EAAE,oBAAoB,EAAE,IAAI,EAAE,CAAC;0DAK9C","sourcesContent":["import { html } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { live } from 'lit/directives/live.js';\nimport { alternateName } from '../common/decorators/alternateName.js';\nimport { blazorSuppress } from '../common/decorators/blazorSuppress.js';\nimport { blazorTwoWayBind } from '../common/decorators/blazorTwoWayBind.js';\nimport { watch } from '../common/decorators/watch.js';\nimport { partNameMap } from '../common/util.js';\nimport { IgcInputBaseComponent } from './input-base.js';\n\n/**\n * @element igc-input\n *\n * @slot prefix - Renders content before the input.\n * @slot suffix - Renders content after input.\n * @slot helper-text - Renders content below the input.\n *\n * @fires igcInput - Emitted when the control input receives user input.\n * @fires igcChange - Emitted when the control's checked state changes.\n * @fires igcFocus - Emitted when the control gains focus.\n * @fires igcBlur - Emitted when the control loses focus.\n *\n * @csspart container - The main wrapper that holds all main input elements.\n * @csspart input - The native input element.\n * @csspart label - The native label element.\n * @csspart prefix - The prefix wrapper.\n * @csspart suffix - The suffix wrapper.\n * @csspart helper-text - The helper text wrapper.\n */\nexport default class IgcInputComponent extends IgcInputBaseComponent {\n public static readonly tagName = 'igc-input';\n\n @property()\n @blazorTwoWayBind('igcChange', 'detail')\n public value = '';\n\n /** The type attribute of the control. */\n @alternateName('displayType')\n @property({ reflect: true })\n public type:\n | 'email'\n | 'number'\n | 'password'\n | 'search'\n | 'tel'\n | 'text'\n | 'url' = 'text';\n\n /** The input mode attribute of the control. */\n @property()\n public inputmode!:\n | 'none'\n | 'txt'\n | 'decimal'\n | 'numeric'\n | 'tel'\n | 'search'\n | 'email'\n | 'url';\n\n /** The pattern attribute of the control. */\n @property({ type: String })\n public pattern!: string;\n\n /** Controls the validity of the control. */\n @property({ reflect: true, type: Boolean })\n public invalid = false;\n\n /** The minlength attribute of the control. */\n @property({ type: Number })\n public minlength!: number;\n\n /** The maxlength attribute of the control. */\n @property({ type: Number })\n public maxlength!: number;\n\n /** The min attribute of the control. */\n @property()\n public min!: number | string;\n\n /** The max attribute of the control. */\n @property()\n public max!: number | string;\n\n /** The step attribute of the control. */\n @property({ type: Number })\n public step!: number;\n\n /** The autofocus attribute of the control. */\n @property({ type: Boolean })\n public override autofocus!: boolean;\n\n /** The autocomplete attribute of the control. */\n @property()\n public autocomplete!: string;\n\n /** Checks for validity of the control and shows the browser message if it's invalid. */\n public reportValidity() {\n return this.input.reportValidity();\n }\n\n /** Replaces the selected text in the input. */\n @blazorSuppress()\n public override setRangeText(\n replacement: string,\n start: number,\n end: number,\n selectMode: 'select' | 'start' | 'end' | 'preserve' = 'preserve'\n ) {\n super.setRangeText(replacement, start, end, selectMode);\n this.value = this.input.value;\n }\n\n /**\n * Sets a custom validation message for the control.\n * As long as `message` is not empty, the control is considered invalid.\n */\n public setCustomValidity(message: string) {\n this.input.setCustomValidity(message);\n this.invalid = !this.input.checkValidity();\n }\n\n /** Selects all text within the input. */\n public select() {\n return this.input.select();\n }\n\n /** Increments the numeric value of the input by one or more steps. */\n public stepUp(n?: number) {\n this.input.stepUp(n);\n this.handleChange();\n }\n\n /** Decrements the numeric value of the input by one or more steps. */\n public stepDown(n?: number) {\n this.input.stepDown(n);\n this.handleChange();\n }\n\n private handleInvalid() {\n this.invalid = true;\n }\n\n private handleInput() {\n this.value = this.input.value;\n this.emitEvent('igcInput', { detail: this.value });\n }\n\n private handleChange() {\n this.value = this.input.value;\n this.emitEvent('igcChange', { detail: this.value });\n }\n\n @watch('value', { waitUntilFirstUpdate: true })\n protected handleValueChange() {\n this.updateComplete.then(\n () => (this.invalid = !this.input.checkValidity())\n );\n }\n\n protected renderInput() {\n return html`\n <input\n id=\"${this.inputId}\"\n part=\"${partNameMap(this.resolvePartNames('input'))}\"\n name=\"${ifDefined(this.name)}\"\n type=\"${ifDefined(this.type)}\"\n pattern=\"${ifDefined(this.pattern)}\"\n placeholder=\"${ifDefined(this.placeholder)}\"\n .value=\"${live(this.value)}\"\n ?readonly=\"${this.readonly}\"\n ?disabled=\"${this.disabled}\"\n ?required=\"${this.required}\"\n ?autofocus=\"${this.autofocus}\"\n autocomplete=\"${ifDefined(this.autocomplete as any)}\"\n inputmode=\"${ifDefined(this.inputmode)}\"\n min=\"${ifDefined(this.min)}\"\n max=\"${ifDefined(this.max)}\"\n minlength=\"${ifDefined(this.minlength)}\"\n maxlength=\"${ifDefined(this.maxlength)}\"\n step=\"${ifDefined(this.step)}\"\n aria-invalid=\"${this.invalid ? 'true' : 'false'}\"\n @invalid=\"${this.handleInvalid}\"\n @change=\"${this.handleChange}\"\n @input=\"${this.handleInput}\"\n @focus=\"${this.handleFocus}\"\n @blur=\"${this.handleBlur}\"\n />\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'igc-input': IgcInputComponent;\n }\n}\n"]}
@@ -1,3 +1,3 @@
1
1
  import { css } from 'lit';
2
- export const styles = css `:host{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;scrollbar-width:var(--scrolbar-size, 0.875rem);scrollbar-color:var(--igc-scrollbar-thumb-color, hsla(var(--igc-gray-400), var(--igc-gray-a))) var(--igc-scrollbar-track-color, hsla(var(--igc-gray-200), var(--igc-gray-a)))}:host *,:host *::before,:host *::after{-webkit-box-sizing:border-box;box-sizing:border-box}:host ::-webkit-scrollbar{width:var(--scrolbar-size, 0.875rem);height:var(--scrolbar-size, 0.875rem);background:var(--igc-scrollbar-track-color, hsla(var(--igc-gray-200), var(--igc-gray-a)))}:host ::-webkit-scrollbar-thumb{background:var(--igc-scrollbar-thumb-color, hsla(var(--igc-gray-400), var(--igc-gray-a)))}[hidden]{display:none !important}[part~=suffixed] [part=suffix],[part~=prefixed] [part=prefix]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:100%;color:hsla(var(--igc-gray-700), var(--igc-gray-a))}:host{position:relative;display:block;font-family:var(--igc-font-family);outline-style:none}[part=label]{display:inline-block;white-space:nowrap}[part~=input]{width:100%;height:100%;border:none;outline-style:none;color:hsla(var(--igc-gray-900), var(--igc-gray-a));font-family:var(--igc-font-family);z-index:1}[part^=container]{position:relative;display:grid}[part=prefix],[part=suffix]{display:none}:host([required]) [part=label]::after{content:"*"}[part=helper-text]{font-family:var(--igc-caption-font-family);font-weight:var(--igc-caption-font-weight);font-size:var(--igc-caption-font-size);font-style:var(--igc-caption-font-style);letter-spacing:var(--igc-caption-letter-spacing);text-transform:var(--igc-caption-text-transform);line-height:var(--igc-caption-line-height);margin-top:var(--igc-caption-margin-top);margin-bottom:var(--igc-caption-margin-bottom)}:host([size=large]) [part~=input],:host([size=large]) [part~=container]{height:3.5rem}:host([size=medium]) [part~=input],:host([size=medium]) [part~=container]{height:3rem}:host([size=small]) [part~=input],:host([size=small]) [part~=container]{height:2.5rem}`;
2
+ export const styles = css `:host{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;scrollbar-width:var(--scrolbar-size, 0.875rem);scrollbar-color:var(--igc-scrollbar-thumb-color, hsla(var(--igc-gray-400), var(--igc-gray-a))) var(--igc-scrollbar-track-color, hsla(var(--igc-gray-200), var(--igc-gray-a)))}:host *,:host *::before,:host *::after{-webkit-box-sizing:border-box;box-sizing:border-box}:host ::-webkit-scrollbar{width:var(--scrolbar-size, 0.875rem);height:var(--scrolbar-size, 0.875rem);background:var(--igc-scrollbar-track-color, hsla(var(--igc-gray-200), var(--igc-gray-a)))}:host ::-webkit-scrollbar-thumb{background:var(--igc-scrollbar-thumb-color, hsla(var(--igc-gray-400), var(--igc-gray-a)))}[hidden]{display:none !important}[part~=suffixed] [part=suffix],[part~=prefixed] [part=prefix]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:100%;color:hsla(var(--igc-gray-700), var(--igc-gray-a))}:host{position:relative;display:block;font-family:var(--igc-font-family);outline-style:none}[part=label]{display:inline-block;white-space:nowrap}[part~=input]{width:100%;height:100%;border:none;outline-style:none;color:hsla(var(--igc-gray-900), var(--igc-gray-a));font-family:var(--igc-font-family);z-index:1}[part^=container]{position:relative;display:grid}[part=prefix],[part=suffix]{display:none;overflow:hidden}:host([required]) [part=label]::after{content:"*"}[part=helper-text]{font-family:var(--igc-caption-font-family);font-weight:var(--igc-caption-font-weight);font-size:var(--igc-caption-font-size);font-style:var(--igc-caption-font-style);letter-spacing:var(--igc-caption-letter-spacing);text-transform:var(--igc-caption-text-transform);line-height:var(--igc-caption-line-height);margin-top:var(--igc-caption-margin-top);margin-bottom:var(--igc-caption-margin-bottom)}:host([size=large]) [part~=input],:host([size=large]) [part~=container]{height:3.5rem}:host([size=medium]) [part~=input],:host([size=medium]) [part~=container]{height:3rem}:host([size=small]) [part~=input],:host([size=small]) [part~=container]{height:2.5rem}`;
3
3
  //# sourceMappingURL=input.base.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"input.base.css.js","sourceRoot":"","sources":["../../../../../src/components/input/themes/light/input.base.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA,qjEAAqjE,CAAC","sourcesContent":["import { css } from 'lit';\n\nexport const styles = css`:host{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;scrollbar-width:var(--scrolbar-size, 0.875rem);scrollbar-color:var(--igc-scrollbar-thumb-color, hsla(var(--igc-gray-400), var(--igc-gray-a))) var(--igc-scrollbar-track-color, hsla(var(--igc-gray-200), var(--igc-gray-a)))}:host *,:host *::before,:host *::after{-webkit-box-sizing:border-box;box-sizing:border-box}:host ::-webkit-scrollbar{width:var(--scrolbar-size, 0.875rem);height:var(--scrolbar-size, 0.875rem);background:var(--igc-scrollbar-track-color, hsla(var(--igc-gray-200), var(--igc-gray-a)))}:host ::-webkit-scrollbar-thumb{background:var(--igc-scrollbar-thumb-color, hsla(var(--igc-gray-400), var(--igc-gray-a)))}[hidden]{display:none !important}[part~=suffixed] [part=suffix],[part~=prefixed] [part=prefix]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:100%;color:hsla(var(--igc-gray-700), var(--igc-gray-a))}:host{position:relative;display:block;font-family:var(--igc-font-family);outline-style:none}[part=label]{display:inline-block;white-space:nowrap}[part~=input]{width:100%;height:100%;border:none;outline-style:none;color:hsla(var(--igc-gray-900), var(--igc-gray-a));font-family:var(--igc-font-family);z-index:1}[part^=container]{position:relative;display:grid}[part=prefix],[part=suffix]{display:none}:host([required]) [part=label]::after{content:\"*\"}[part=helper-text]{font-family:var(--igc-caption-font-family);font-weight:var(--igc-caption-font-weight);font-size:var(--igc-caption-font-size);font-style:var(--igc-caption-font-style);letter-spacing:var(--igc-caption-letter-spacing);text-transform:var(--igc-caption-text-transform);line-height:var(--igc-caption-line-height);margin-top:var(--igc-caption-margin-top);margin-bottom:var(--igc-caption-margin-bottom)}:host([size=large]) [part~=input],:host([size=large]) [part~=container]{height:3.5rem}:host([size=medium]) [part~=input],:host([size=medium]) [part~=container]{height:3rem}:host([size=small]) [part~=input],:host([size=small]) [part~=container]{height:2.5rem}`;\n"]}
1
+ {"version":3,"file":"input.base.css.js","sourceRoot":"","sources":["../../../../../src/components/input/themes/light/input.base.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA,qkEAAqkE,CAAC","sourcesContent":["import { css } from 'lit';\n\nexport const styles = css`:host{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;scrollbar-width:var(--scrolbar-size, 0.875rem);scrollbar-color:var(--igc-scrollbar-thumb-color, hsla(var(--igc-gray-400), var(--igc-gray-a))) var(--igc-scrollbar-track-color, hsla(var(--igc-gray-200), var(--igc-gray-a)))}:host *,:host *::before,:host *::after{-webkit-box-sizing:border-box;box-sizing:border-box}:host ::-webkit-scrollbar{width:var(--scrolbar-size, 0.875rem);height:var(--scrolbar-size, 0.875rem);background:var(--igc-scrollbar-track-color, hsla(var(--igc-gray-200), var(--igc-gray-a)))}:host ::-webkit-scrollbar-thumb{background:var(--igc-scrollbar-thumb-color, hsla(var(--igc-gray-400), var(--igc-gray-a)))}[hidden]{display:none !important}[part~=suffixed] [part=suffix],[part~=prefixed] [part=prefix]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:100%;color:hsla(var(--igc-gray-700), var(--igc-gray-a))}:host{position:relative;display:block;font-family:var(--igc-font-family);outline-style:none}[part=label]{display:inline-block;white-space:nowrap}[part~=input]{width:100%;height:100%;border:none;outline-style:none;color:hsla(var(--igc-gray-900), var(--igc-gray-a));font-family:var(--igc-font-family);z-index:1}[part^=container]{position:relative;display:grid}[part=prefix],[part=suffix]{display:none;overflow:hidden}:host([required]) [part=label]::after{content:\"*\"}[part=helper-text]{font-family:var(--igc-caption-font-family);font-weight:var(--igc-caption-font-weight);font-size:var(--igc-caption-font-size);font-style:var(--igc-caption-font-style);letter-spacing:var(--igc-caption-letter-spacing);text-transform:var(--igc-caption-text-transform);line-height:var(--igc-caption-line-height);margin-top:var(--igc-caption-margin-top);margin-bottom:var(--igc-caption-margin-bottom)}:host([size=large]) [part~=input],:host([size=large]) [part~=container]{height:3.5rem}:host([size=medium]) [part~=input],:host([size=medium]) [part~=container]{height:3rem}:host([size=small]) [part~=input],:host([size=small]) [part~=container]{height:2.5rem}`;\n"]}
@@ -1,3 +1,3 @@
1
1
  import { css } from 'lit';
2
- export const styles = css `:host::after{background:none}:host [part~=input]{border-radius:clamp(0rem,var(--igc-radius-factor)*.25rem,.25rem);padding:initial;background:var(--input-background, #fff);-webkit-box-shadow:0 0 0 0 rgba(0,0,0,0);box-shadow:0 0 0 0 rgba(0,0,0,0);z-index:1;border:1px solid hsla(var(--igc-gray-400), var(--igc-gray-a));-webkit-transition:border .15s ease-out,-webkit-box-shadow .15s ease-out;transition:border .15s ease-out,-webkit-box-shadow .15s ease-out;-o-transition:box-shadow .15s ease-out,border .15s ease-out;transition:box-shadow .15s ease-out,border .15s ease-out;transition:box-shadow .15s ease-out,border .15s ease-out,-webkit-box-shadow .15s ease-out;grid-area:1/2}:host [part~=prefixed]{border-start-start-radius:0;border-end-start-radius:0}:host [part~=suffixed]{border-start-end-radius:0;border-end-end-radius:0}:host label{line-height:1.5rem;margin-bottom:.25rem;color:hsla(var(--igc-gray-700), var(--igc-gray-a))}:host label:empty{display:none}:host [part~=container]{border:none;grid-template-columns:auto 1fr auto}:host [part~=container]::after{display:none}:host [part=prefix],:host [part=suffix]{position:relative;padding:rem(16px);border-radius:none;min-width:auto;color:hsla(var(--igc-gray-800), var(--igc-gray-a));background:hsla(var(--igc-gray-300), var(--igc-gray-a));-webkit-transition:border .15s ease-out,-webkit-box-shadow .15s ease-out;transition:border .15s ease-out,-webkit-box-shadow .15s ease-out;-o-transition:box-shadow .15s ease-out,border .15s ease-out;transition:box-shadow .15s ease-out,border .15s ease-out;transition:box-shadow .15s ease-out,border .15s ease-out,-webkit-box-shadow .15s ease-out}:host [part=prefix]:focus-within,:host [part=suffix]:focus-within{-webkit-box-shadow:0 0 0 .25rem hsla(var(--igc-gray-300), 0.38);box-shadow:0 0 0 .25rem hsla(var(--igc-gray-300), 0.38)}:host [part=prefix]{grid-area:1/1;border-style:solid;border-color:hsla(var(--igc-gray-400), var(--igc-gray-a));border-inline-start-width:1px;border-inline-end-width:0;border-block-start-width:1px;border-block-end-width:1px;border-start-start-radius:.25rem;border-end-start-radius:.25rem}:host [part=suffix]{grid-area:1/3;border-style:solid;border-color:hsla(var(--igc-gray-400), var(--igc-gray-a));border-inline-start-width:0;border-inline-end-width:1px;border-block-start-width:1px;border-block-end-width:1px;border-start-end-radius:.25rem;border-end-end-radius:.25rem}:host [part=helper-text]{margin-top:rem(4px);color:hsla(var(--igc-gray-700), var(--igc-gray-a))}:host([size=large]) [part~=container],:host([size=large]) [part~=input]{height:3rem}:host([size=large]) [part~=input]{font-size:1.25rem;padding:.5rem 1rem}:host([size=large]) [part=prefix],:host([size=large]) [part=suffix]{font-size:rem(20px);padding:.5rem 1rem}:host([size=medium]) [part~=container],:host([size=medium]) [part~=input]{height:2.375rem}:host([size=medium]) [part~=input]{font-size:1rem;padding:.375rem .75rem}:host([size=medium]) [part=prefix],:host([size=medium]) [part=suffix]{font-size:1rem;padding:.375rem .75rem}:host([size=small]) [part~=container],:host([size=small]) [part~=input]{height:1.9375rem}:host([size=small]) [part~=input]{font-size:1rem;padding:.25rem .5rem}:host([size=small]) [part=prefix],:host([size=small]) [part=suffix]{font-size:.875rem;padding:.25rem .5rem}:host(:focus-within) [part~=input]{-webkit-box-shadow:0 0 0 .25rem hsla(var(--igc-primary-500), 0.38);box-shadow:0 0 0 .25rem hsla(var(--igc-primary-500), 0.38);border-color:hsla(var(--igc-primary-500), var(--igc-primary-a))}:host([invalid]:focus-within) [part~=input]{-webkit-box-shadow:0 0 0 .25rem hsla(var(--igc-error-500), 0.38);box-shadow:0 0 0 .25rem hsla(var(--igc-error-500), 0.38);border-color:hsla(var(--igc-error-500), var(--igc-error-a))}:host([disabled]) [part=prefix],:host([disabled]) [part=suffix],:host([disabled]) [part~=input],:host([readonly]) [part=prefix],:host([readonly]) [part=suffix],:host([readonly]) [part~=input]{background:hsla(var(--igc-gray-100), var(--igc-gray-a));border-color:hsla(var(--igc-gray-300), var(--igc-gray-a));color:hsla(var(--igc-gray-400), var(--igc-gray-a))}:host([readonly]) [part=prefix],:host([readonly]) [part=suffix],:host([readonly]) [part~=input]{color:hsla(var(--igc-gray-800), var(--igc-gray-a))}:host(:focus-within[readonly]) [part~=input]{-webkit-box-shadow:0 0 0 .25rem hsla(var(--igc-gray-400), 0.38);box-shadow:0 0 0 .25rem hsla(var(--igc-gray-400), 0.38);border-color:hsla(var(--igc-gray-400), var(--igc-gray-a))}`;
2
+ export const styles = css `:host::after{background:none}:host [part~=input]{border-radius:clamp(0rem,var(--igc-radius-factor)*.25rem,.25rem);padding:initial;background:var(--input-background, #fff);-webkit-box-shadow:0 0 0 0 rgba(0,0,0,0);box-shadow:0 0 0 0 rgba(0,0,0,0);z-index:1;border:1px solid hsla(var(--igc-gray-400), var(--igc-gray-a));-webkit-transition:border .15s ease-out,-webkit-box-shadow .15s ease-out;transition:border .15s ease-out,-webkit-box-shadow .15s ease-out;-o-transition:box-shadow .15s ease-out,border .15s ease-out;transition:box-shadow .15s ease-out,border .15s ease-out;transition:box-shadow .15s ease-out,border .15s ease-out,-webkit-box-shadow .15s ease-out;grid-area:1/2}:host [part~=prefixed]{border-start-start-radius:0;border-end-start-radius:0}:host [part~=suffixed]{border-start-end-radius:0;border-end-end-radius:0}:host label{line-height:1.5rem;margin-bottom:.25rem;color:hsla(var(--igc-gray-700), var(--igc-gray-a))}:host label:empty{display:none}:host [part~=container]{border:none;grid-template-columns:auto 1fr auto}:host [part~=container]::after{display:none}:host [part=prefix],:host [part=suffix]{position:relative;padding:rem(16px);border-radius:none;min-width:auto;color:hsla(var(--igc-gray-800), var(--igc-gray-a));background:hsla(var(--igc-gray-300), var(--igc-gray-a));-webkit-transition:border .15s ease-out,-webkit-box-shadow .15s ease-out;transition:border .15s ease-out,-webkit-box-shadow .15s ease-out;-o-transition:box-shadow .15s ease-out,border .15s ease-out;transition:box-shadow .15s ease-out,border .15s ease-out;transition:box-shadow .15s ease-out,border .15s ease-out,-webkit-box-shadow .15s ease-out}:host [part=prefix]:focus-within,:host [part=suffix]:focus-within{-webkit-box-shadow:0 0 0 .25rem hsla(var(--igc-gray-300), 0.38);box-shadow:0 0 0 .25rem hsla(var(--igc-gray-300), 0.38)}:host [part=prefix]{grid-area:1/1;border-style:solid;border-color:hsla(var(--igc-gray-400), var(--igc-gray-a));border-inline-start-width:1px;border-inline-end-width:0;border-block-start-width:1px;border-block-end-width:1px;border-start-start-radius:.25rem;border-end-start-radius:.25rem}:host [part=suffix]{grid-area:1/3;border-style:solid;border-color:hsla(var(--igc-gray-400), var(--igc-gray-a));border-inline-start-width:0;border-inline-end-width:1px;border-block-start-width:1px;border-block-end-width:1px;border-start-end-radius:.25rem;border-end-end-radius:.25rem}:host [part=helper-text]{font-family:var(--igc-body-2-font-family);font-weight:var(--igc-body-2-font-weight);font-size:var(--igc-body-2-font-size);font-style:var(--igc-body-2-font-style);letter-spacing:var(--igc-body-2-letter-spacing);text-transform:var(--igc-body-2-text-transform);line-height:var(--igc-body-2-line-height);margin-top:var(--igc-body-2-margin-top);margin-bottom:var(--igc-body-2-margin-bottom);margin-top:rem(4px);color:hsla(var(--igc-gray-700), var(--igc-gray-a))}:host([size=large]) [part~=container],:host([size=large]) [part~=input]{height:3rem}:host([size=large]) [part~=input]{font-size:1.25rem;padding:.5rem 1rem}:host([size=large]) [part=prefix],:host([size=large]) [part=suffix]{font-size:rem(20px);padding:.5rem 1rem}:host([size=medium]) [part~=container],:host([size=medium]) [part~=input]{height:2.375rem}:host([size=medium]) [part~=input]{font-size:1rem;padding:.375rem .75rem}:host([size=medium]) [part=prefix],:host([size=medium]) [part=suffix]{font-size:1rem;padding:.375rem .75rem}:host([size=small]) [part~=container],:host([size=small]) [part~=input]{height:1.9375rem}:host([size=small]) [part~=input]{font-size:1rem;padding:.25rem .5rem}:host([size=small]) [part=prefix],:host([size=small]) [part=suffix]{font-size:.875rem;padding:.25rem .5rem}:host(:focus-within) [part~=input]{-webkit-box-shadow:0 0 0 .25rem hsla(var(--igc-primary-500), 0.38);box-shadow:0 0 0 .25rem hsla(var(--igc-primary-500), 0.38);border-color:hsla(var(--igc-primary-500), var(--igc-primary-a))}:host([invalid]:focus-within) [part~=input]{-webkit-box-shadow:0 0 0 .25rem hsla(var(--igc-error-500), 0.38);box-shadow:0 0 0 .25rem hsla(var(--igc-error-500), 0.38);border-color:hsla(var(--igc-error-500), var(--igc-error-a))}:host([disabled]) [part=prefix],:host([disabled]) [part=suffix],:host([disabled]) [part~=input],:host([readonly]) [part=prefix],:host([readonly]) [part=suffix],:host([readonly]) [part~=input]{background:hsla(var(--igc-gray-100), var(--igc-gray-a));border-color:hsla(var(--igc-gray-300), var(--igc-gray-a));color:hsla(var(--igc-gray-400), var(--igc-gray-a))}:host([readonly]) [part=prefix],:host([readonly]) [part=suffix],:host([readonly]) [part~=input]{color:hsla(var(--igc-gray-800), var(--igc-gray-a))}:host(:focus-within[readonly]) [part~=input]{-webkit-box-shadow:0 0 0 .25rem hsla(var(--igc-gray-400), 0.38);box-shadow:0 0 0 .25rem hsla(var(--igc-gray-400), 0.38);border-color:hsla(var(--igc-gray-400), var(--igc-gray-a))}`;
3
3
  //# sourceMappingURL=input.bootstrap.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"input.bootstrap.css.js","sourceRoot":"","sources":["../../../../../src/components/input/themes/light/input.bootstrap.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA,q3IAAq3I,CAAC","sourcesContent":["import { css } from 'lit';\n\nexport const styles = css`:host::after{background:none}:host [part~=input]{border-radius:clamp(0rem,var(--igc-radius-factor)*.25rem,.25rem);padding:initial;background:var(--input-background, #fff);-webkit-box-shadow:0 0 0 0 rgba(0,0,0,0);box-shadow:0 0 0 0 rgba(0,0,0,0);z-index:1;border:1px solid hsla(var(--igc-gray-400), var(--igc-gray-a));-webkit-transition:border .15s ease-out,-webkit-box-shadow .15s ease-out;transition:border .15s ease-out,-webkit-box-shadow .15s ease-out;-o-transition:box-shadow .15s ease-out,border .15s ease-out;transition:box-shadow .15s ease-out,border .15s ease-out;transition:box-shadow .15s ease-out,border .15s ease-out,-webkit-box-shadow .15s ease-out;grid-area:1/2}:host [part~=prefixed]{border-start-start-radius:0;border-end-start-radius:0}:host [part~=suffixed]{border-start-end-radius:0;border-end-end-radius:0}:host label{line-height:1.5rem;margin-bottom:.25rem;color:hsla(var(--igc-gray-700), var(--igc-gray-a))}:host label:empty{display:none}:host [part~=container]{border:none;grid-template-columns:auto 1fr auto}:host [part~=container]::after{display:none}:host [part=prefix],:host [part=suffix]{position:relative;padding:rem(16px);border-radius:none;min-width:auto;color:hsla(var(--igc-gray-800), var(--igc-gray-a));background:hsla(var(--igc-gray-300), var(--igc-gray-a));-webkit-transition:border .15s ease-out,-webkit-box-shadow .15s ease-out;transition:border .15s ease-out,-webkit-box-shadow .15s ease-out;-o-transition:box-shadow .15s ease-out,border .15s ease-out;transition:box-shadow .15s ease-out,border .15s ease-out;transition:box-shadow .15s ease-out,border .15s ease-out,-webkit-box-shadow .15s ease-out}:host [part=prefix]:focus-within,:host [part=suffix]:focus-within{-webkit-box-shadow:0 0 0 .25rem hsla(var(--igc-gray-300), 0.38);box-shadow:0 0 0 .25rem hsla(var(--igc-gray-300), 0.38)}:host [part=prefix]{grid-area:1/1;border-style:solid;border-color:hsla(var(--igc-gray-400), var(--igc-gray-a));border-inline-start-width:1px;border-inline-end-width:0;border-block-start-width:1px;border-block-end-width:1px;border-start-start-radius:.25rem;border-end-start-radius:.25rem}:host [part=suffix]{grid-area:1/3;border-style:solid;border-color:hsla(var(--igc-gray-400), var(--igc-gray-a));border-inline-start-width:0;border-inline-end-width:1px;border-block-start-width:1px;border-block-end-width:1px;border-start-end-radius:.25rem;border-end-end-radius:.25rem}:host [part=helper-text]{margin-top:rem(4px);color:hsla(var(--igc-gray-700), var(--igc-gray-a))}:host([size=large]) [part~=container],:host([size=large]) [part~=input]{height:3rem}:host([size=large]) [part~=input]{font-size:1.25rem;padding:.5rem 1rem}:host([size=large]) [part=prefix],:host([size=large]) [part=suffix]{font-size:rem(20px);padding:.5rem 1rem}:host([size=medium]) [part~=container],:host([size=medium]) [part~=input]{height:2.375rem}:host([size=medium]) [part~=input]{font-size:1rem;padding:.375rem .75rem}:host([size=medium]) [part=prefix],:host([size=medium]) [part=suffix]{font-size:1rem;padding:.375rem .75rem}:host([size=small]) [part~=container],:host([size=small]) [part~=input]{height:1.9375rem}:host([size=small]) [part~=input]{font-size:1rem;padding:.25rem .5rem}:host([size=small]) [part=prefix],:host([size=small]) [part=suffix]{font-size:.875rem;padding:.25rem .5rem}:host(:focus-within) [part~=input]{-webkit-box-shadow:0 0 0 .25rem hsla(var(--igc-primary-500), 0.38);box-shadow:0 0 0 .25rem hsla(var(--igc-primary-500), 0.38);border-color:hsla(var(--igc-primary-500), var(--igc-primary-a))}:host([invalid]:focus-within) [part~=input]{-webkit-box-shadow:0 0 0 .25rem hsla(var(--igc-error-500), 0.38);box-shadow:0 0 0 .25rem hsla(var(--igc-error-500), 0.38);border-color:hsla(var(--igc-error-500), var(--igc-error-a))}:host([disabled]) [part=prefix],:host([disabled]) [part=suffix],:host([disabled]) [part~=input],:host([readonly]) [part=prefix],:host([readonly]) [part=suffix],:host([readonly]) [part~=input]{background:hsla(var(--igc-gray-100), var(--igc-gray-a));border-color:hsla(var(--igc-gray-300), var(--igc-gray-a));color:hsla(var(--igc-gray-400), var(--igc-gray-a))}:host([readonly]) [part=prefix],:host([readonly]) [part=suffix],:host([readonly]) [part~=input]{color:hsla(var(--igc-gray-800), var(--igc-gray-a))}:host(:focus-within[readonly]) [part~=input]{-webkit-box-shadow:0 0 0 .25rem hsla(var(--igc-gray-400), 0.38);box-shadow:0 0 0 .25rem hsla(var(--igc-gray-400), 0.38);border-color:hsla(var(--igc-gray-400), var(--igc-gray-a))}`;\n"]}
1
+ {"version":3,"file":"input.bootstrap.css.js","sourceRoot":"","sources":["../../../../../src/components/input/themes/light/input.bootstrap.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA,uvJAAuvJ,CAAC","sourcesContent":["import { css } from 'lit';\n\nexport const styles = css`:host::after{background:none}:host [part~=input]{border-radius:clamp(0rem,var(--igc-radius-factor)*.25rem,.25rem);padding:initial;background:var(--input-background, #fff);-webkit-box-shadow:0 0 0 0 rgba(0,0,0,0);box-shadow:0 0 0 0 rgba(0,0,0,0);z-index:1;border:1px solid hsla(var(--igc-gray-400), var(--igc-gray-a));-webkit-transition:border .15s ease-out,-webkit-box-shadow .15s ease-out;transition:border .15s ease-out,-webkit-box-shadow .15s ease-out;-o-transition:box-shadow .15s ease-out,border .15s ease-out;transition:box-shadow .15s ease-out,border .15s ease-out;transition:box-shadow .15s ease-out,border .15s ease-out,-webkit-box-shadow .15s ease-out;grid-area:1/2}:host [part~=prefixed]{border-start-start-radius:0;border-end-start-radius:0}:host [part~=suffixed]{border-start-end-radius:0;border-end-end-radius:0}:host label{line-height:1.5rem;margin-bottom:.25rem;color:hsla(var(--igc-gray-700), var(--igc-gray-a))}:host label:empty{display:none}:host [part~=container]{border:none;grid-template-columns:auto 1fr auto}:host [part~=container]::after{display:none}:host [part=prefix],:host [part=suffix]{position:relative;padding:rem(16px);border-radius:none;min-width:auto;color:hsla(var(--igc-gray-800), var(--igc-gray-a));background:hsla(var(--igc-gray-300), var(--igc-gray-a));-webkit-transition:border .15s ease-out,-webkit-box-shadow .15s ease-out;transition:border .15s ease-out,-webkit-box-shadow .15s ease-out;-o-transition:box-shadow .15s ease-out,border .15s ease-out;transition:box-shadow .15s ease-out,border .15s ease-out;transition:box-shadow .15s ease-out,border .15s ease-out,-webkit-box-shadow .15s ease-out}:host [part=prefix]:focus-within,:host [part=suffix]:focus-within{-webkit-box-shadow:0 0 0 .25rem hsla(var(--igc-gray-300), 0.38);box-shadow:0 0 0 .25rem hsla(var(--igc-gray-300), 0.38)}:host [part=prefix]{grid-area:1/1;border-style:solid;border-color:hsla(var(--igc-gray-400), var(--igc-gray-a));border-inline-start-width:1px;border-inline-end-width:0;border-block-start-width:1px;border-block-end-width:1px;border-start-start-radius:.25rem;border-end-start-radius:.25rem}:host [part=suffix]{grid-area:1/3;border-style:solid;border-color:hsla(var(--igc-gray-400), var(--igc-gray-a));border-inline-start-width:0;border-inline-end-width:1px;border-block-start-width:1px;border-block-end-width:1px;border-start-end-radius:.25rem;border-end-end-radius:.25rem}:host [part=helper-text]{font-family:var(--igc-body-2-font-family);font-weight:var(--igc-body-2-font-weight);font-size:var(--igc-body-2-font-size);font-style:var(--igc-body-2-font-style);letter-spacing:var(--igc-body-2-letter-spacing);text-transform:var(--igc-body-2-text-transform);line-height:var(--igc-body-2-line-height);margin-top:var(--igc-body-2-margin-top);margin-bottom:var(--igc-body-2-margin-bottom);margin-top:rem(4px);color:hsla(var(--igc-gray-700), var(--igc-gray-a))}:host([size=large]) [part~=container],:host([size=large]) [part~=input]{height:3rem}:host([size=large]) [part~=input]{font-size:1.25rem;padding:.5rem 1rem}:host([size=large]) [part=prefix],:host([size=large]) [part=suffix]{font-size:rem(20px);padding:.5rem 1rem}:host([size=medium]) [part~=container],:host([size=medium]) [part~=input]{height:2.375rem}:host([size=medium]) [part~=input]{font-size:1rem;padding:.375rem .75rem}:host([size=medium]) [part=prefix],:host([size=medium]) [part=suffix]{font-size:1rem;padding:.375rem .75rem}:host([size=small]) [part~=container],:host([size=small]) [part~=input]{height:1.9375rem}:host([size=small]) [part~=input]{font-size:1rem;padding:.25rem .5rem}:host([size=small]) [part=prefix],:host([size=small]) [part=suffix]{font-size:.875rem;padding:.25rem .5rem}:host(:focus-within) [part~=input]{-webkit-box-shadow:0 0 0 .25rem hsla(var(--igc-primary-500), 0.38);box-shadow:0 0 0 .25rem hsla(var(--igc-primary-500), 0.38);border-color:hsla(var(--igc-primary-500), var(--igc-primary-a))}:host([invalid]:focus-within) [part~=input]{-webkit-box-shadow:0 0 0 .25rem hsla(var(--igc-error-500), 0.38);box-shadow:0 0 0 .25rem hsla(var(--igc-error-500), 0.38);border-color:hsla(var(--igc-error-500), var(--igc-error-a))}:host([disabled]) [part=prefix],:host([disabled]) [part=suffix],:host([disabled]) [part~=input],:host([readonly]) [part=prefix],:host([readonly]) [part=suffix],:host([readonly]) [part~=input]{background:hsla(var(--igc-gray-100), var(--igc-gray-a));border-color:hsla(var(--igc-gray-300), var(--igc-gray-a));color:hsla(var(--igc-gray-400), var(--igc-gray-a))}:host([readonly]) [part=prefix],:host([readonly]) [part=suffix],:host([readonly]) [part~=input]{color:hsla(var(--igc-gray-800), var(--igc-gray-a))}:host(:focus-within[readonly]) [part~=input]{-webkit-box-shadow:0 0 0 .25rem hsla(var(--igc-gray-400), 0.38);box-shadow:0 0 0 .25rem hsla(var(--igc-gray-400), 0.38);border-color:hsla(var(--igc-gray-400), var(--igc-gray-a))}`;\n"]}
@@ -9,6 +9,10 @@ import { themes } from '../../theming/theming-decorator.js';
9
9
  import { SizableMixin } from '../common/mixins/sizable.js';
10
10
  import { styles } from './themes/light/list.base.css.js';
11
11
  import { styles as bootstrap } from './themes/light/list.bootstrap.css.js';
12
+ import { defineComponents } from '../common/definitions/defineComponents.js';
13
+ import IgcListHeaderComponent from './list-header.js';
14
+ import IgcListItemComponent from './list-item.js';
15
+ defineComponents(IgcListItemComponent, IgcListHeaderComponent);
12
16
  let IgcListComponent = class IgcListComponent extends SizableMixin(LitElement) {
13
17
  constructor() {
14
18
  super();
@@ -1 +1 @@
1
- {"version":3,"file":"list.js","sourceRoot":"","sources":["../../../src/components/list/list.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,oCAAoC,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AACzD,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAU3E,IAAqB,gBAAgB,GAArC,MAAqB,gBAAiB,SAAQ,YAAY,CAAC,UAAU,CAAC;IAIpE;QACE,KAAK,EAAE,CAAC;IACV,CAAC;IAEe,iBAAiB;QAC/B,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,CAAC;IAEkB,MAAM;QACvB,OAAO,IAAI,CAAA,eAAe,CAAC;IAC7B,CAAC;CACF,CAAA;AAfwB,wBAAO,GAAG,UAAW,CAAA;AACrB,uBAAM,GAAG,MAAO,CAAA;AAFpB,gBAAgB;IADpC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC;GACD,gBAAgB,CAgBpC;eAhBoB,gBAAgB","sourcesContent":["import { html, LitElement } from 'lit';\nimport { themes } from '../../theming/theming-decorator.js';\nimport { SizableMixin } from '../common/mixins/sizable.js';\nimport { styles } from './themes/light/list.base.css.js';\nimport { styles as bootstrap } from './themes/light/list.bootstrap.css.js';\n\n/**\n * Displays a collection of data items in a templatable list format.\n *\n * @element igc-list\n *\n * @slot - Renders the list items and list headers inside default slot.\n */\n@themes({ bootstrap })\nexport default class IgcListComponent extends SizableMixin(LitElement) {\n public static readonly tagName = 'igc-list';\n public static override styles = styles;\n\n constructor() {\n super();\n }\n\n public override connectedCallback() {\n super.connectedCallback();\n this.setAttribute('role', 'list');\n }\n\n protected override render() {\n return html`<slot></slot>`;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'igc-list': IgcListComponent;\n }\n}\n"]}
1
+ {"version":3,"file":"list.js","sourceRoot":"","sources":["../../../src/components/list/list.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACvC,OAAO,EAAE,MAAM,EAAE,MAAM,oCAAoC,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AACzD,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAE3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAC7E,OAAO,sBAAsB,MAAM,kBAAkB,CAAC;AACtD,OAAO,oBAAoB,MAAM,gBAAgB,CAAC;AAElD,gBAAgB,CAAC,oBAAoB,EAAE,sBAAsB,CAAC,CAAC;AAU/D,IAAqB,gBAAgB,GAArC,MAAqB,gBAAiB,SAAQ,YAAY,CAAC,UAAU,CAAC;IAIpE;QACE,KAAK,EAAE,CAAC;IACV,CAAC;IAEe,iBAAiB;QAC/B,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,CAAC;IAEkB,MAAM;QACvB,OAAO,IAAI,CAAA,eAAe,CAAC;IAC7B,CAAC;CACF,CAAA;AAfwB,wBAAO,GAAG,UAAW,CAAA;AACrB,uBAAM,GAAG,MAAO,CAAA;AAFpB,gBAAgB;IADpC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC;GACD,gBAAgB,CAgBpC;eAhBoB,gBAAgB","sourcesContent":["import { html, LitElement } from 'lit';\nimport { themes } from '../../theming/theming-decorator.js';\nimport { SizableMixin } from '../common/mixins/sizable.js';\nimport { styles } from './themes/light/list.base.css.js';\nimport { styles as bootstrap } from './themes/light/list.bootstrap.css.js';\n\nimport { defineComponents } from '../common/definitions/defineComponents.js';\nimport IgcListHeaderComponent from './list-header.js';\nimport IgcListItemComponent from './list-item.js';\n\ndefineComponents(IgcListItemComponent, IgcListHeaderComponent);\n\n/**\n * Displays a collection of data items in a templatable list format.\n *\n * @element igc-list\n *\n * @slot - Renders the list items and list headers inside default slot.\n */\n@themes({ bootstrap })\nexport default class IgcListComponent extends SizableMixin(LitElement) {\n public static readonly tagName = 'igc-list';\n public static override styles = styles;\n\n constructor() {\n super();\n }\n\n public override connectedCallback() {\n super.connectedCallback();\n this.setAttribute('role', 'list');\n }\n\n protected override render() {\n return html`<slot></slot>`;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'igc-list': IgcListComponent;\n }\n}\n"]}
@@ -1,3 +1,3 @@
1
1
  import { css } from 'lit';
2
- export const styles = css `:host{background:var(--igc-gray-900-contrast);color:hsla(var(--igc-gray-900), var(--igc-gray-a));border-bottom:.0625rem solid hsla(var(--igc-gray-200), var(--igc-gray-a))}:host(:hover),:host(:focus-within){background:hsla(var(--igc-gray-100), var(--igc-gray-a))}:host(:last-of-type){border-bottom:none}`;
2
+ export const styles = css `:host{background:var(--igc-gray-900-contrast);color:hsla(var(--igc-gray-900), var(--igc-gray-a));border-bottom:.0625rem solid hsla(var(--igc-gray-200), var(--igc-gray-a))}:host(:hover),:host(:focus-within){background:hsla(var(--igc-gray-100), var(--igc-gray-a))}:host(:last-of-type){border-bottom:none}[part=title]{font-family:var(--igc-body-1-font-family);font-weight:var(--igc-body-1-font-weight);font-size:var(--igc-body-1-font-size);font-style:var(--igc-body-1-font-style);letter-spacing:var(--igc-body-1-letter-spacing);text-transform:var(--igc-body-1-text-transform);line-height:var(--igc-body-1-line-height);margin-top:var(--igc-body-1-margin-top);margin-bottom:var(--igc-body-1-margin-bottom)}[part=subtitle]{font-family:var(--igc-subtitle-1-font-family);font-weight:var(--igc-subtitle-1-font-weight);font-size:var(--igc-subtitle-1-font-size);font-style:var(--igc-subtitle-1-font-style);letter-spacing:var(--igc-subtitle-1-letter-spacing);text-transform:var(--igc-subtitle-1-text-transform);line-height:var(--igc-subtitle-1-line-height);margin-top:var(--igc-subtitle-1-margin-top);margin-bottom:var(--igc-subtitle-1-margin-bottom)}`;
3
3
  //# sourceMappingURL=list-item.bootstrap.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-item.bootstrap.css.js","sourceRoot":"","sources":["../../../../../src/components/list/themes/light/list-item.bootstrap.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA,gTAAgT,CAAC","sourcesContent":["import { css } from 'lit';\n\nexport const styles = css`:host{background:var(--igc-gray-900-contrast);color:hsla(var(--igc-gray-900), var(--igc-gray-a));border-bottom:.0625rem solid hsla(var(--igc-gray-200), var(--igc-gray-a))}:host(:hover),:host(:focus-within){background:hsla(var(--igc-gray-100), var(--igc-gray-a))}:host(:last-of-type){border-bottom:none}`;\n"]}
1
+ {"version":3,"file":"list-item.bootstrap.css.js","sourceRoot":"","sources":["../../../../../src/components/list/themes/light/list-item.bootstrap.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA,qnCAAqnC,CAAC","sourcesContent":["import { css } from 'lit';\n\nexport const styles = css`:host{background:var(--igc-gray-900-contrast);color:hsla(var(--igc-gray-900), var(--igc-gray-a));border-bottom:.0625rem solid hsla(var(--igc-gray-200), var(--igc-gray-a))}:host(:hover),:host(:focus-within){background:hsla(var(--igc-gray-100), var(--igc-gray-a))}:host(:last-of-type){border-bottom:none}[part=title]{font-family:var(--igc-body-1-font-family);font-weight:var(--igc-body-1-font-weight);font-size:var(--igc-body-1-font-size);font-style:var(--igc-body-1-font-style);letter-spacing:var(--igc-body-1-letter-spacing);text-transform:var(--igc-body-1-text-transform);line-height:var(--igc-body-1-line-height);margin-top:var(--igc-body-1-margin-top);margin-bottom:var(--igc-body-1-margin-bottom)}[part=subtitle]{font-family:var(--igc-subtitle-1-font-family);font-weight:var(--igc-subtitle-1-font-weight);font-size:var(--igc-subtitle-1-font-size);font-style:var(--igc-subtitle-1-font-style);letter-spacing:var(--igc-subtitle-1-letter-spacing);text-transform:var(--igc-subtitle-1-text-transform);line-height:var(--igc-subtitle-1-line-height);margin-top:var(--igc-subtitle-1-margin-top);margin-bottom:var(--igc-subtitle-1-margin-bottom)}`;\n"]}
@@ -1,3 +1,3 @@
1
1
  import { css } from 'lit';
2
- export const styles = css `:host{border-bottom:.0625rem solid hsla(var(--igc-gray-100), var(--igc-gray-a))}:host(:hover),:host(:focus-within){background:var(--item-hover-bg, hsla(var(--igc-gray-200), var(--igc-gray-a)))}:host(:last-of-type){border-bottom:none}`;
2
+ export const styles = css `[part=title]{font-family:var(--igc-caption-font-family);font-weight:var(--igc-caption-font-weight);font-size:var(--igc-caption-font-size);font-style:var(--igc-caption-font-style);letter-spacing:var(--igc-caption-letter-spacing);text-transform:var(--igc-caption-text-transform);line-height:var(--igc-caption-line-height);margin-top:var(--igc-caption-margin-top);margin-bottom:var(--igc-caption-margin-bottom)}:host{border-bottom:.0625rem solid hsla(var(--igc-gray-100), var(--igc-gray-a))}:host(:hover),:host(:focus-within){background:var(--item-hover-bg, hsla(var(--igc-gray-200), var(--igc-gray-a)))}:host(:last-of-type){border-bottom:none}`;
3
3
  //# sourceMappingURL=list-item.fluent.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-item.fluent.css.js","sourceRoot":"","sources":["../../../../../src/components/list/themes/light/list-item.fluent.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA,2OAA2O,CAAC","sourcesContent":["import { css } from 'lit';\n\nexport const styles = css`:host{border-bottom:.0625rem solid hsla(var(--igc-gray-100), var(--igc-gray-a))}:host(:hover),:host(:focus-within){background:var(--item-hover-bg, hsla(var(--igc-gray-200), var(--igc-gray-a)))}:host(:last-of-type){border-bottom:none}`;\n"]}
1
+ {"version":3,"file":"list-item.fluent.css.js","sourceRoot":"","sources":["../../../../../src/components/list/themes/light/list-item.fluent.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA,moBAAmoB,CAAC","sourcesContent":["import { css } from 'lit';\n\nexport const styles = css`[part=title]{font-family:var(--igc-caption-font-family);font-weight:var(--igc-caption-font-weight);font-size:var(--igc-caption-font-size);font-style:var(--igc-caption-font-style);letter-spacing:var(--igc-caption-letter-spacing);text-transform:var(--igc-caption-text-transform);line-height:var(--igc-caption-line-height);margin-top:var(--igc-caption-margin-top);margin-bottom:var(--igc-caption-margin-bottom)}:host{border-bottom:.0625rem solid hsla(var(--igc-gray-100), var(--igc-gray-a))}:host(:hover),:host(:focus-within){background:var(--item-hover-bg, hsla(var(--igc-gray-200), var(--igc-gray-a)))}:host(:last-of-type){border-bottom:none}`;\n"]}
@@ -1,3 +1,3 @@
1
1
  import { css } from 'lit';
2
- export const styles = css `:host{color:hsla(var(--igc-gray-900), var(--igc-gray-a))}:host [part=subtitle]{color:hsla(var(--igc-gray-800), var(--igc-gray-a))}:host(:hover),:host(:focus-within){background:var(--item-hover-bg, hsla(var(--igc-gray-50), var(--igc-gray-a)))}`;
2
+ export const styles = css `:host{color:hsla(var(--igc-gray-900), var(--igc-gray-a))}:host [part=subtitle]{font-family:var(--igc-body-2-font-family);font-weight:var(--igc-body-2-font-weight);font-size:var(--igc-body-2-font-size);font-style:var(--igc-body-2-font-style);letter-spacing:var(--igc-body-2-letter-spacing);text-transform:var(--igc-body-2-text-transform);line-height:var(--igc-body-2-line-height);margin-top:var(--igc-body-2-margin-top);margin-bottom:var(--igc-body-2-margin-bottom);color:hsla(var(--igc-gray-800), var(--igc-gray-a))}:host(:hover),:host(:focus-within){background:var(--item-hover-bg, hsla(var(--igc-gray-50), var(--igc-gray-a)))}`;
3
3
  //# sourceMappingURL=list-item.indigo.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-item.indigo.css.js","sourceRoot":"","sources":["../../../../../src/components/list/themes/light/list-item.indigo.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA,oPAAoP,CAAC","sourcesContent":["import { css } from 'lit';\n\nexport const styles = css`:host{color:hsla(var(--igc-gray-900), var(--igc-gray-a))}:host [part=subtitle]{color:hsla(var(--igc-gray-800), var(--igc-gray-a))}:host(:hover),:host(:focus-within){background:var(--item-hover-bg, hsla(var(--igc-gray-50), var(--igc-gray-a)))}`;\n"]}
1
+ {"version":3,"file":"list-item.indigo.css.js","sourceRoot":"","sources":["../../../../../src/components/list/themes/light/list-item.indigo.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA,snBAAsnB,CAAC","sourcesContent":["import { css } from 'lit';\n\nexport const styles = css`:host{color:hsla(var(--igc-gray-900), var(--igc-gray-a))}:host [part=subtitle]{font-family:var(--igc-body-2-font-family);font-weight:var(--igc-body-2-font-weight);font-size:var(--igc-body-2-font-size);font-style:var(--igc-body-2-font-style);letter-spacing:var(--igc-body-2-letter-spacing);text-transform:var(--igc-body-2-text-transform);line-height:var(--igc-body-2-line-height);margin-top:var(--igc-body-2-margin-top);margin-bottom:var(--igc-body-2-margin-bottom);color:hsla(var(--igc-gray-800), var(--igc-gray-a))}:host(:hover),:host(:focus-within){background:var(--item-hover-bg, hsla(var(--igc-gray-50), var(--igc-gray-a)))}`;\n"]}
@@ -1,3 +1,3 @@
1
1
  import { css } from 'lit';
2
- export const styles = css `:host{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;scrollbar-width:var(--scrolbar-size, 0.875rem);scrollbar-color:var(--igc-scrollbar-thumb-color, hsla(var(--igc-gray-400), var(--igc-gray-a))) var(--igc-scrollbar-track-color, hsla(var(--igc-gray-200), var(--igc-gray-a)))}:host *,:host *::before,:host *::after{-webkit-box-sizing:border-box;box-sizing:border-box}:host ::-webkit-scrollbar{width:var(--scrolbar-size, 0.875rem);height:var(--scrolbar-size, 0.875rem);background:var(--igc-scrollbar-track-color, hsla(var(--igc-gray-200), var(--igc-gray-a)))}:host ::-webkit-scrollbar-thumb{background:var(--igc-scrollbar-thumb-color, hsla(var(--igc-gray-400), var(--igc-gray-a)))}[hidden]{display:none !important}:host{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-flow:column nowrap;flex-flow:column nowrap;font-family:var(--igc-font-family);overflow:hidden;background:hsla(var(--igc-surface-500), var(--igc-surface-a))}:host([size=small]) ::slotted(igc-list-item),:host([size=small]) ::slotted(igc-list-header){padding:var(--igc-spacing-small) calc(var(--igc-spacing-small)*2)}:host([size=medium]) ::slotted(igc-list-item),:host([size=medium]) ::slotted(igc-list-header){padding:var(--igc-spacing-medium) calc(var(--igc-spacing-medium)*2)}:host([size=large]) ::slotted(igc-list-item),:host([size=large]) ::slotted(igc-list-header){padding:var(--igc-spacing-large) calc(var(--igc-spacing-large)*2)}`;
2
+ export const styles = css `:host{position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;scrollbar-width:var(--scrolbar-size, 0.875rem);scrollbar-color:var(--igc-scrollbar-thumb-color, hsla(var(--igc-gray-400), var(--igc-gray-a))) var(--igc-scrollbar-track-color, hsla(var(--igc-gray-200), var(--igc-gray-a)))}:host *,:host *::before,:host *::after{-webkit-box-sizing:border-box;box-sizing:border-box}:host ::-webkit-scrollbar{width:var(--scrolbar-size, 0.875rem);height:var(--scrolbar-size, 0.875rem);background:var(--igc-scrollbar-track-color, hsla(var(--igc-gray-200), var(--igc-gray-a)))}:host ::-webkit-scrollbar-thumb{background:var(--igc-scrollbar-thumb-color, hsla(var(--igc-gray-400), var(--igc-gray-a)))}[hidden]{display:none !important}:host{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-flow:column nowrap;flex-flow:column nowrap;font-family:var(--igc-font-family);overflow:hidden auto;height:auto;background:hsla(var(--igc-surface-500), var(--igc-surface-a))}:host([size=small]) ::slotted(igc-list-item),:host([size=small]) ::slotted(igc-list-header){padding:var(--igc-spacing-small) calc(var(--igc-spacing-small)*2)}:host([size=medium]) ::slotted(igc-list-item),:host([size=medium]) ::slotted(igc-list-header){padding:var(--igc-spacing-medium) calc(var(--igc-spacing-medium)*2)}:host([size=large]) ::slotted(igc-list-item),:host([size=large]) ::slotted(igc-list-header){padding:var(--igc-spacing-large) calc(var(--igc-spacing-large)*2)}`;
3
3
  //# sourceMappingURL=list.base.css.js.map