igniteui-webcomponents 3.0.0 → 3.3.0-beta.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 (433) hide show
  1. package/CHANGELOG.md +58 -6
  2. package/README.md +56 -1
  3. package/components/avatar/avatar.js +2 -2
  4. package/components/avatar/avatar.js.map +1 -1
  5. package/components/badge/badge.js +3 -3
  6. package/components/badge/badge.js.map +1 -1
  7. package/components/badge/themes/light/badge.bootstrap.css.js +1 -1
  8. package/components/badge/themes/light/badge.bootstrap.css.js.map +1 -1
  9. package/components/button/button-base.d.ts +6 -1
  10. package/components/button/button-base.js +5 -1
  11. package/components/button/button-base.js.map +1 -1
  12. package/components/button/button.js +6 -6
  13. package/components/button/button.js.map +1 -1
  14. package/components/button/icon-button.d.ts +1 -1
  15. package/components/button/icon-button.js +19 -16
  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 +8 -8
  32. package/components/calendar/calendar.js +16 -16
  33. package/components/calendar/calendar.js.map +1 -1
  34. package/components/calendar/common/calendar-base.d.ts +1 -1
  35. package/components/calendar/common/calendar-base.js +21 -15
  36. package/components/calendar/common/calendar-base.js.map +1 -1
  37. package/components/calendar/common/utils.d.ts +1 -1
  38. package/components/calendar/common/utils.js.map +1 -1
  39. package/components/calendar/days-view/days-view.d.ts +5 -5
  40. package/components/calendar/days-view/days-view.js +13 -11
  41. package/components/calendar/days-view/days-view.js.map +1 -1
  42. package/components/calendar/months-view/months-view.d.ts +3 -3
  43. package/components/calendar/months-view/months-view.js +12 -10
  44. package/components/calendar/months-view/months-view.js.map +1 -1
  45. package/components/calendar/themes/bootstrap/calendar.bootstrap.css.js +1 -1
  46. package/components/calendar/themes/bootstrap/calendar.bootstrap.css.js.map +1 -1
  47. package/components/calendar/years-view/years-view.d.ts +3 -3
  48. package/components/calendar/years-view/years-view.js +11 -9
  49. package/components/calendar/years-view/years-view.js.map +1 -1
  50. package/components/card/card.actions.js +3 -3
  51. package/components/card/card.actions.js.map +1 -1
  52. package/components/card/card.content.js +3 -3
  53. package/components/card/card.content.js.map +1 -1
  54. package/components/card/card.header.js +6 -4
  55. package/components/card/card.header.js.map +1 -1
  56. package/components/card/card.js +4 -4
  57. package/components/card/card.js.map +1 -1
  58. package/components/card/card.media.js +1 -1
  59. package/components/card/card.media.js.map +1 -1
  60. package/components/card/themes/light/card.header.bootstrap.css.js +1 -1
  61. package/components/card/themes/light/card.header.bootstrap.css.js.map +1 -1
  62. package/components/{nav-drawer/styles/indigo/nav-drawer-header-item.indigo.css.d.ts → card/themes/light/card.header.fluent.css.d.ts} +0 -0
  63. package/components/card/themes/light/card.header.fluent.css.js +3 -0
  64. package/components/card/themes/light/card.header.fluent.css.js.map +1 -0
  65. package/components/checkbox/checkbox-base.d.ts +1 -1
  66. package/components/checkbox/checkbox-base.js +2 -1
  67. package/components/checkbox/checkbox-base.js.map +1 -1
  68. package/components/checkbox/checkbox.js +6 -7
  69. package/components/checkbox/checkbox.js.map +1 -1
  70. package/components/checkbox/switch.js +6 -7
  71. package/components/checkbox/switch.js.map +1 -1
  72. package/components/checkbox/themes/light/checkbox.base.css.js +1 -1
  73. package/components/checkbox/themes/light/checkbox.base.css.js.map +1 -1
  74. package/components/checkbox/themes/light/checkbox.bootstrap.css.js +1 -1
  75. package/components/checkbox/themes/light/checkbox.bootstrap.css.js.map +1 -1
  76. package/components/checkbox/themes/light/checkbox.fluent.css.js +1 -1
  77. package/components/checkbox/themes/light/checkbox.fluent.css.js.map +1 -1
  78. package/components/checkbox/themes/light/checkbox.indigo.css.js +1 -1
  79. package/components/checkbox/themes/light/checkbox.indigo.css.js.map +1 -1
  80. package/components/checkbox/themes/light/checkbox.material.css.js +1 -1
  81. package/components/checkbox/themes/light/checkbox.material.css.js.map +1 -1
  82. package/components/checkbox/themes/light/switch.base.css.js +1 -1
  83. package/components/checkbox/themes/light/switch.base.css.js.map +1 -1
  84. package/components/checkbox/themes/light/switch.fluent.css.js +1 -1
  85. package/components/checkbox/themes/light/switch.fluent.css.js.map +1 -1
  86. package/components/chip/chip.d.ts +2 -1
  87. package/components/chip/chip.js +20 -9
  88. package/components/chip/chip.js.map +1 -1
  89. package/components/chip/themes/chip.base.css.js +1 -1
  90. package/components/chip/themes/chip.base.css.js.map +1 -1
  91. package/components/chip/themes/chip.bootstrap.css.js +1 -1
  92. package/components/chip/themes/chip.bootstrap.css.js.map +1 -1
  93. package/components/chip/themes/chip.fluent.css.js +1 -1
  94. package/components/chip/themes/chip.fluent.css.js.map +1 -1
  95. package/components/chip/themes/chip.indigo.css.js +1 -1
  96. package/components/chip/themes/chip.indigo.css.js.map +1 -1
  97. package/components/chip/themes/chip.material.css.js +1 -1
  98. package/components/chip/themes/chip.material.css.js.map +1 -1
  99. package/components/common/definitions/defineAllComponents.js +57 -41
  100. package/components/common/definitions/defineAllComponents.js.map +1 -1
  101. package/components/common/mixins/constructor.d.ts +1 -0
  102. package/components/common/mixins/constructor.js.map +1 -1
  103. package/components/common/mixins/event-emitter.d.ts +2 -2
  104. package/components/common/mixins/event-emitter.js +2 -2
  105. package/components/common/mixins/event-emitter.js.map +1 -1
  106. package/components/common/util.d.ts +18 -0
  107. package/components/common/util.js +17 -0
  108. package/components/common/util.js.map +1 -1
  109. package/components/date-time-input/date-time-input.d.ts +108 -0
  110. package/components/date-time-input/date-time-input.js +495 -0
  111. package/components/date-time-input/date-time-input.js.map +1 -0
  112. package/components/date-time-input/date-util.d.ts +89 -0
  113. package/components/date-time-input/date-util.js +597 -0
  114. package/components/date-time-input/date-util.js.map +1 -0
  115. package/components/dropdown/dropdown-group.d.ts +1 -1
  116. package/components/dropdown/dropdown-group.js +5 -3
  117. package/components/dropdown/dropdown-group.js.map +1 -1
  118. package/components/dropdown/dropdown-header.d.ts +1 -1
  119. package/components/dropdown/dropdown-header.js +3 -3
  120. package/components/dropdown/dropdown-header.js.map +1 -1
  121. package/components/dropdown/dropdown-item.js +6 -6
  122. package/components/dropdown/dropdown-item.js.map +1 -1
  123. package/components/dropdown/dropdown.d.ts +5 -5
  124. package/components/dropdown/dropdown.js +11 -10
  125. package/components/dropdown/dropdown.js.map +1 -1
  126. package/components/expansion-panel/expansion-panel.d.ts +73 -0
  127. package/components/expansion-panel/expansion-panel.js +168 -0
  128. package/components/expansion-panel/expansion-panel.js.map +1 -0
  129. package/components/{nav-drawer/styles/indigo/nav-drawer-item.indigo.css.d.ts → expansion-panel/themes/light/expansion-panel.base.css.d.ts} +0 -0
  130. package/components/expansion-panel/themes/light/expansion-panel.base.css.js +3 -0
  131. package/components/expansion-panel/themes/light/expansion-panel.base.css.js.map +1 -0
  132. package/components/{nav-drawer/styles/indigo/nav-drawer.indigo.css.d.ts → expansion-panel/themes/light/expansion-panel.bootstrap.css.d.ts} +0 -0
  133. package/components/expansion-panel/themes/light/expansion-panel.bootstrap.css.js +3 -0
  134. package/components/expansion-panel/themes/light/expansion-panel.bootstrap.css.js.map +1 -0
  135. package/components/{nav-drawer/styles/nav-drawer-header-item.base.css.d.ts → expansion-panel/themes/light/expansion-panel.fluent.css.d.ts} +0 -0
  136. package/components/expansion-panel/themes/light/expansion-panel.fluent.css.js +3 -0
  137. package/components/expansion-panel/themes/light/expansion-panel.fluent.css.js.map +1 -0
  138. package/components/{nav-drawer/styles/nav-drawer-item.base.css.d.ts → expansion-panel/themes/light/expansion-panel.indigo.css.d.ts} +0 -0
  139. package/components/expansion-panel/themes/light/expansion-panel.indigo.css.js +3 -0
  140. package/components/expansion-panel/themes/light/expansion-panel.indigo.css.js.map +1 -0
  141. package/components/form/form.d.ts +2 -2
  142. package/components/form/form.js +15 -4
  143. package/components/form/form.js.map +1 -1
  144. package/components/icon/icon.d.ts +1 -1
  145. package/components/icon/icon.js +3 -2
  146. package/components/icon/icon.js.map +1 -1
  147. package/components/icon/icon.material.css.js +1 -1
  148. package/components/icon/icon.material.css.js.map +1 -1
  149. package/components/icon/icon.registry.js +5 -0
  150. package/components/icon/icon.registry.js.map +1 -1
  151. package/components/input/input-base.d.ts +7 -4
  152. package/components/input/input-base.js +20 -12
  153. package/components/input/input-base.js.map +1 -1
  154. package/components/input/input.d.ts +2 -5
  155. package/components/input/input.js +13 -7
  156. package/components/input/input.js.map +1 -1
  157. package/components/input/themes/light/input.base.css.js +1 -1
  158. package/components/input/themes/light/input.base.css.js.map +1 -1
  159. package/components/input/themes/light/input.bootstrap.css.js +1 -1
  160. package/components/input/themes/light/input.bootstrap.css.js.map +1 -1
  161. package/components/list/list-header.js +3 -3
  162. package/components/list/list-header.js.map +1 -1
  163. package/components/list/list-item.js +5 -5
  164. package/components/list/list-item.js.map +1 -1
  165. package/components/list/list.d.ts +1 -1
  166. package/components/list/list.js +4 -4
  167. package/components/list/list.js.map +1 -1
  168. package/components/list/themes/light/list-item.bootstrap.css.js +1 -1
  169. package/components/list/themes/light/list-item.bootstrap.css.js.map +1 -1
  170. package/components/list/themes/light/list-item.fluent.css.js +1 -1
  171. package/components/list/themes/light/list-item.fluent.css.js.map +1 -1
  172. package/components/list/themes/light/list-item.indigo.css.js +1 -1
  173. package/components/list/themes/light/list-item.indigo.css.js.map +1 -1
  174. package/components/list/themes/light/list.base.css.js +1 -1
  175. package/components/list/themes/light/list.base.css.js.map +1 -1
  176. package/components/mask-input/mask-input-base.d.ts +38 -0
  177. package/components/mask-input/mask-input-base.js +110 -0
  178. package/components/mask-input/mask-input-base.js.map +1 -0
  179. package/components/mask-input/mask-input.d.ts +71 -0
  180. package/components/mask-input/mask-input.js +182 -0
  181. package/components/mask-input/mask-input.js.map +1 -0
  182. package/components/mask-input/mask-parser.d.ts +30 -0
  183. package/components/mask-input/mask-parser.js +167 -0
  184. package/components/mask-input/mask-parser.js.map +1 -0
  185. package/components/nav-drawer/nav-drawer-header-item.js +5 -4
  186. package/components/nav-drawer/nav-drawer-header-item.js.map +1 -1
  187. package/components/nav-drawer/nav-drawer-item.d.ts +1 -0
  188. package/components/nav-drawer/nav-drawer-item.js +11 -7
  189. package/components/nav-drawer/nav-drawer-item.js.map +1 -1
  190. package/components/nav-drawer/nav-drawer.js +4 -4
  191. package/components/nav-drawer/nav-drawer.js.map +1 -1
  192. package/components/nav-drawer/{styles/nav-drawer.base.css.d.ts → themes/dark/nav-drawer-item.base.css.d.ts} +0 -0
  193. package/components/nav-drawer/themes/dark/nav-drawer-item.base.css.js +3 -0
  194. package/components/nav-drawer/themes/dark/nav-drawer-item.base.css.js.map +1 -0
  195. package/components/{snackbar/themes/snackbar.base.css.d.ts → nav-drawer/themes/dark/nav-drawer-item.bootstrap.css.d.ts} +0 -0
  196. package/components/nav-drawer/themes/dark/nav-drawer-item.bootstrap.css.js +3 -0
  197. package/components/nav-drawer/themes/dark/nav-drawer-item.bootstrap.css.js.map +1 -0
  198. package/components/{snackbar/themes/snackbar.bootstrap.css.d.ts → nav-drawer/themes/dark/nav-drawer-item.fluent.css.d.ts} +0 -0
  199. package/components/nav-drawer/themes/dark/nav-drawer-item.fluent.css.js +3 -0
  200. package/components/nav-drawer/themes/dark/nav-drawer-item.fluent.css.js.map +1 -0
  201. package/components/{snackbar/themes/snackbar.fluent.css.d.ts → nav-drawer/themes/dark/nav-drawer-item.indigo.css.d.ts} +0 -0
  202. package/components/nav-drawer/themes/dark/nav-drawer-item.indigo.css.js +3 -0
  203. package/components/nav-drawer/themes/dark/nav-drawer-item.indigo.css.js.map +1 -0
  204. package/components/{snackbar/themes/snackbar.indigo.css.d.ts → nav-drawer/themes/dark/nav-drawer.indigo.css.d.ts} +0 -0
  205. package/components/nav-drawer/themes/dark/nav-drawer.indigo.css.js +3 -0
  206. package/components/nav-drawer/themes/dark/nav-drawer.indigo.css.js.map +1 -0
  207. package/components/nav-drawer/themes/light/fluent/nav-drawer-header-item.fluent.css.d.ts +1 -0
  208. package/components/nav-drawer/themes/light/fluent/nav-drawer-header-item.fluent.css.js +3 -0
  209. package/components/nav-drawer/themes/light/fluent/nav-drawer-header-item.fluent.css.js.map +1 -0
  210. package/components/nav-drawer/themes/light/fluent/nav-drawer-item.fluent.css.d.ts +1 -0
  211. package/components/nav-drawer/themes/light/fluent/nav-drawer-item.fluent.css.js +3 -0
  212. package/components/nav-drawer/themes/light/fluent/nav-drawer-item.fluent.css.js.map +1 -0
  213. package/components/nav-drawer/themes/light/indigo/nav-drawer-header-item.indigo.css.d.ts +1 -0
  214. package/components/nav-drawer/{styles → themes/light}/indigo/nav-drawer-header-item.indigo.css.js +0 -0
  215. package/components/nav-drawer/themes/light/indigo/nav-drawer-header-item.indigo.css.js.map +1 -0
  216. package/components/nav-drawer/themes/light/indigo/nav-drawer-item.indigo.css.d.ts +1 -0
  217. package/components/nav-drawer/themes/light/indigo/nav-drawer-item.indigo.css.js +3 -0
  218. package/components/nav-drawer/themes/light/indigo/nav-drawer-item.indigo.css.js.map +1 -0
  219. package/components/nav-drawer/themes/light/indigo/nav-drawer.indigo.css.d.ts +1 -0
  220. package/components/nav-drawer/themes/light/indigo/nav-drawer.indigo.css.js +3 -0
  221. package/components/nav-drawer/themes/light/indigo/nav-drawer.indigo.css.js.map +1 -0
  222. package/components/nav-drawer/themes/light/nav-drawer-header-item.base.css.d.ts +1 -0
  223. package/components/nav-drawer/{styles → themes/light}/nav-drawer-header-item.base.css.js +1 -1
  224. package/components/nav-drawer/themes/light/nav-drawer-header-item.base.css.js.map +1 -0
  225. package/components/nav-drawer/themes/light/nav-drawer-item.base.css.d.ts +1 -0
  226. package/components/nav-drawer/themes/light/nav-drawer-item.base.css.js +3 -0
  227. package/components/nav-drawer/themes/light/nav-drawer-item.base.css.js.map +1 -0
  228. package/components/nav-drawer/themes/light/nav-drawer.base.css.d.ts +1 -0
  229. package/components/nav-drawer/{styles → themes/light}/nav-drawer.base.css.js +1 -1
  230. package/components/nav-drawer/themes/light/nav-drawer.base.css.js.map +1 -0
  231. package/components/navbar/navbar.js +6 -5
  232. package/components/navbar/navbar.js.map +1 -1
  233. package/components/navbar/themes/light/navbar.base.css.js +1 -1
  234. package/components/navbar/themes/light/navbar.base.css.js.map +1 -1
  235. package/components/navbar/themes/light/navbar.bootstrap.css.js +1 -1
  236. package/components/navbar/themes/light/navbar.bootstrap.css.js.map +1 -1
  237. package/components/navbar/themes/light/navbar.fluent.css.d.ts +1 -0
  238. package/components/navbar/themes/light/navbar.fluent.css.js +3 -0
  239. package/components/navbar/themes/light/navbar.fluent.css.js.map +1 -0
  240. package/components/progress/base.js +2 -2
  241. package/components/progress/base.js.map +1 -1
  242. package/components/progress/circular-progress.d.ts +2 -2
  243. package/components/progress/circular-progress.js +6 -6
  244. package/components/progress/circular-progress.js.map +1 -1
  245. package/components/progress/linear-progress.d.ts +1 -1
  246. package/components/progress/linear-progress.js +7 -7
  247. package/components/progress/linear-progress.js.map +1 -1
  248. package/components/radio/radio.d.ts +1 -1
  249. package/components/radio/radio.js +9 -9
  250. package/components/radio/radio.js.map +1 -1
  251. package/components/radio/themes/light/radio.base.css.js +1 -1
  252. package/components/radio/themes/light/radio.base.css.js.map +1 -1
  253. package/components/radio/themes/light/radio.fluent.css.js +1 -1
  254. package/components/radio/themes/light/radio.fluent.css.js.map +1 -1
  255. package/components/radio-group/radio-group.js +1 -1
  256. package/components/radio-group/radio-group.js.map +1 -1
  257. package/components/rating/rating.base.css.js +1 -1
  258. package/components/rating/rating.base.css.js.map +1 -1
  259. package/components/rating/rating.d.ts +2 -2
  260. package/components/rating/rating.fluent.css.js +1 -1
  261. package/components/rating/rating.fluent.css.js.map +1 -1
  262. package/components/rating/rating.js +10 -10
  263. package/components/rating/rating.js.map +1 -1
  264. package/components/ripple/ripple.js +1 -1
  265. package/components/ripple/ripple.js.map +1 -1
  266. package/components/slider/range-slider.d.ts +3 -3
  267. package/components/slider/range-slider.js +2 -2
  268. package/components/slider/range-slider.js.map +1 -1
  269. package/components/slider/slider-base.js +8 -7
  270. package/components/slider/slider-base.js.map +1 -1
  271. package/components/slider/slider.d.ts +3 -3
  272. package/components/slider/slider.js +2 -2
  273. package/components/slider/slider.js.map +1 -1
  274. package/components/snackbar/snackbar.d.ts +3 -1
  275. package/components/snackbar/snackbar.js +9 -5
  276. package/components/snackbar/snackbar.js.map +1 -1
  277. package/components/snackbar/themes/dark/snackbar.indigo.css.d.ts +1 -0
  278. package/components/snackbar/themes/dark/snackbar.indigo.css.js +3 -0
  279. package/components/snackbar/themes/dark/snackbar.indigo.css.js.map +1 -0
  280. package/components/snackbar/themes/light/snackbar.base.css.d.ts +1 -0
  281. package/components/snackbar/themes/light/snackbar.base.css.js +3 -0
  282. package/components/snackbar/themes/light/snackbar.base.css.js.map +1 -0
  283. package/components/snackbar/themes/light/snackbar.bootstrap.css.d.ts +1 -0
  284. package/components/snackbar/themes/light/snackbar.bootstrap.css.js +3 -0
  285. package/components/snackbar/themes/light/snackbar.bootstrap.css.js.map +1 -0
  286. package/components/snackbar/themes/light/snackbar.fluent.css.d.ts +1 -0
  287. package/components/snackbar/themes/light/snackbar.fluent.css.js +3 -0
  288. package/components/snackbar/themes/light/snackbar.fluent.css.js.map +1 -0
  289. package/components/snackbar/themes/light/snackbar.indigo.css.d.ts +1 -0
  290. package/components/snackbar/themes/light/snackbar.indigo.css.js +3 -0
  291. package/components/snackbar/themes/light/snackbar.indigo.css.js.map +1 -0
  292. package/components/tabs/tab-panel.d.ts +20 -0
  293. package/components/tabs/tab-panel.js +21 -0
  294. package/components/tabs/tab-panel.js.map +1 -0
  295. package/components/tabs/tab.d.ts +37 -0
  296. package/components/tabs/tab.js +71 -0
  297. package/components/tabs/tab.js.map +1 -0
  298. package/components/tabs/tabs.d.ts +80 -0
  299. package/components/tabs/tabs.js +308 -0
  300. package/components/tabs/tabs.js.map +1 -0
  301. package/components/tabs/themes/dark/tab.dark.base.css.d.ts +1 -0
  302. package/components/tabs/themes/dark/tab.dark.base.css.js +3 -0
  303. package/components/tabs/themes/dark/tab.dark.base.css.js.map +1 -0
  304. package/components/tabs/themes/dark/tab.dark.bootstrap.css.d.ts +1 -0
  305. package/components/tabs/themes/dark/tab.dark.bootstrap.css.js +3 -0
  306. package/components/tabs/themes/dark/tab.dark.bootstrap.css.js.map +1 -0
  307. package/components/tabs/themes/light/tab-panel.base.css.d.ts +1 -0
  308. package/components/tabs/themes/light/tab-panel.base.css.js +3 -0
  309. package/components/tabs/themes/light/tab-panel.base.css.js.map +1 -0
  310. package/components/tabs/themes/light/tab.base.css.d.ts +1 -0
  311. package/components/tabs/themes/light/tab.base.css.js +3 -0
  312. package/components/tabs/themes/light/tab.base.css.js.map +1 -0
  313. package/components/tabs/themes/light/tab.bootstrap.css.d.ts +1 -0
  314. package/components/tabs/themes/light/tab.bootstrap.css.js +3 -0
  315. package/components/tabs/themes/light/tab.bootstrap.css.js.map +1 -0
  316. package/components/tabs/themes/light/tab.fluent.css.d.ts +1 -0
  317. package/components/tabs/themes/light/tab.fluent.css.js +3 -0
  318. package/components/tabs/themes/light/tab.fluent.css.js.map +1 -0
  319. package/components/tabs/themes/light/tab.indigo.css.d.ts +1 -0
  320. package/components/tabs/themes/light/tab.indigo.css.js +3 -0
  321. package/components/tabs/themes/light/tab.indigo.css.js.map +1 -0
  322. package/components/tabs/themes/light/tabs.base.css.d.ts +1 -0
  323. package/components/tabs/themes/light/tabs.base.css.js +3 -0
  324. package/components/tabs/themes/light/tabs.base.css.js.map +1 -0
  325. package/components/tabs/themes/light/tabs.bootstrap.css.d.ts +1 -0
  326. package/components/tabs/themes/light/tabs.bootstrap.css.js +3 -0
  327. package/components/tabs/themes/light/tabs.bootstrap.css.js.map +1 -0
  328. package/components/tabs/themes/light/tabs.fluent.css.d.ts +1 -0
  329. package/components/tabs/themes/light/tabs.fluent.css.js +3 -0
  330. package/components/tabs/themes/light/tabs.fluent.css.js.map +1 -0
  331. package/components/tabs/themes/light/tabs.indigo.css.d.ts +1 -0
  332. package/components/tabs/themes/light/tabs.indigo.css.js +3 -0
  333. package/components/tabs/themes/light/tabs.indigo.css.js.map +1 -0
  334. package/components/tabs/utils.d.ts +14 -0
  335. package/components/tabs/utils.js +32 -0
  336. package/components/tabs/utils.js.map +1 -0
  337. package/components/toast/themes/toast.base.css.js +1 -1
  338. package/components/toast/themes/toast.base.css.js.map +1 -1
  339. package/components/toast/toast.js +5 -5
  340. package/components/toast/toast.js.map +1 -1
  341. package/components/toggle/toggle.controller.d.ts +3 -3
  342. package/components/toggle/toggle.controller.js +1 -1
  343. package/components/toggle/toggle.controller.js.map +1 -1
  344. package/components/toggle/toggle.directive.d.ts +1 -1
  345. package/components/toggle/toggle.directive.js +5 -4
  346. package/components/toggle/toggle.directive.js.map +1 -1
  347. package/components/toggle/{utilities.d.ts → types.d.ts} +0 -0
  348. package/components/toggle/types.js +2 -0
  349. package/components/toggle/types.js.map +1 -0
  350. package/components/tree/themes/dark/tree-item.bootstrap.css.d.ts +1 -0
  351. package/components/tree/themes/dark/tree-item.bootstrap.css.js +3 -0
  352. package/components/tree/themes/dark/tree-item.bootstrap.css.js.map +1 -0
  353. package/components/tree/themes/dark/tree-item.fluent.css.d.ts +1 -0
  354. package/components/tree/themes/dark/tree-item.fluent.css.js +3 -0
  355. package/components/tree/themes/dark/tree-item.fluent.css.js.map +1 -0
  356. package/components/tree/themes/dark/tree-item.indigo.css.d.ts +1 -0
  357. package/components/tree/themes/dark/tree-item.indigo.css.js +3 -0
  358. package/components/tree/themes/dark/tree-item.indigo.css.js.map +1 -0
  359. package/components/tree/themes/light/tree-item.base.css.d.ts +1 -0
  360. package/components/tree/themes/light/tree-item.base.css.js +3 -0
  361. package/components/tree/themes/light/tree-item.base.css.js.map +1 -0
  362. package/components/tree/themes/light/tree-item.bootstrap.css.d.ts +1 -0
  363. package/components/tree/themes/light/tree-item.bootstrap.css.js +3 -0
  364. package/components/tree/themes/light/tree-item.bootstrap.css.js.map +1 -0
  365. package/components/tree/themes/light/tree-item.fluent.css.d.ts +1 -0
  366. package/components/tree/themes/light/tree-item.fluent.css.js +3 -0
  367. package/components/tree/themes/light/tree-item.fluent.css.js.map +1 -0
  368. package/components/tree/themes/light/tree-item.indigo.css.d.ts +1 -0
  369. package/components/tree/themes/light/tree-item.indigo.css.js +3 -0
  370. package/components/tree/themes/light/tree-item.indigo.css.js.map +1 -0
  371. package/components/tree/themes/light/tree.base.css.d.ts +1 -0
  372. package/components/tree/themes/light/tree.base.css.js +3 -0
  373. package/components/tree/themes/light/tree.base.css.js.map +1 -0
  374. package/components/tree/tree-item.d.ts +117 -0
  375. package/components/tree/tree-item.js +458 -0
  376. package/components/tree/tree-item.js.map +1 -0
  377. package/components/tree/tree.common.d.ts +17 -0
  378. package/components/tree/tree.common.js +2 -0
  379. package/components/tree/tree.common.js.map +1 -0
  380. package/components/tree/tree.d.ts +71 -0
  381. package/components/tree/tree.js +149 -0
  382. package/components/tree/tree.js.map +1 -0
  383. package/components/tree/tree.navigation.d.ts +41 -0
  384. package/components/tree/tree.navigation.js +260 -0
  385. package/components/tree/tree.navigation.js.map +1 -0
  386. package/components/tree/tree.selection.d.ts +55 -0
  387. package/components/tree/tree.selection.js +265 -0
  388. package/components/tree/tree.selection.js.map +1 -0
  389. package/custom-elements.json +1260 -125
  390. package/index.d.ts +62 -52
  391. package/index.js +60 -51
  392. package/index.js.map +1 -1
  393. package/package.json +3 -3
  394. package/themes/dark/bootstrap.css +1 -1
  395. package/themes/dark/fluent.css +1 -1
  396. package/themes/dark/indigo.css +1 -1
  397. package/themes/dark/material.css +1 -1
  398. package/themes/light/bootstrap.css +1 -1
  399. package/themes/light/fluent.css +1 -1
  400. package/theming/config.d.ts +1 -1
  401. package/theming/config.js +2 -2
  402. package/theming/config.js.map +1 -1
  403. package/theming/index.d.ts +3 -3
  404. package/theming/index.js +3 -3
  405. package/theming/index.js.map +1 -1
  406. package/theming/{theming-controlller.d.ts → theming-controller.d.ts} +1 -1
  407. package/theming/{theming-controlller.js → theming-controller.js} +3 -3
  408. package/theming/theming-controller.js.map +1 -0
  409. package/theming/theming-decorator.js +1 -1
  410. package/theming/theming-decorator.js.map +1 -1
  411. package/theming/theming-event.d.ts +1 -1
  412. package/theming/theming-event.js.map +1 -1
  413. package/vscode-html-custom-data.json +507 -60
  414. package/components/nav-drawer/styles/indigo/nav-drawer-header-item.indigo.css.js.map +0 -1
  415. package/components/nav-drawer/styles/indigo/nav-drawer-item.indigo.css.js +0 -3
  416. package/components/nav-drawer/styles/indigo/nav-drawer-item.indigo.css.js.map +0 -1
  417. package/components/nav-drawer/styles/indigo/nav-drawer.indigo.css.js +0 -3
  418. package/components/nav-drawer/styles/indigo/nav-drawer.indigo.css.js.map +0 -1
  419. package/components/nav-drawer/styles/nav-drawer-header-item.base.css.js.map +0 -1
  420. package/components/nav-drawer/styles/nav-drawer-item.base.css.js +0 -3
  421. package/components/nav-drawer/styles/nav-drawer-item.base.css.js.map +0 -1
  422. package/components/nav-drawer/styles/nav-drawer.base.css.js.map +0 -1
  423. package/components/snackbar/themes/snackbar.base.css.js +0 -3
  424. package/components/snackbar/themes/snackbar.base.css.js.map +0 -1
  425. package/components/snackbar/themes/snackbar.bootstrap.css.js +0 -3
  426. package/components/snackbar/themes/snackbar.bootstrap.css.js.map +0 -1
  427. package/components/snackbar/themes/snackbar.fluent.css.js +0 -3
  428. package/components/snackbar/themes/snackbar.fluent.css.js.map +0 -1
  429. package/components/snackbar/themes/snackbar.indigo.css.js +0 -3
  430. package/components/snackbar/themes/snackbar.indigo.css.js.map +0 -1
  431. package/components/toggle/utilities.js +0 -2
  432. package/components/toggle/utilities.js.map +0 -1
  433. package/theming/theming-controlller.js.map +0 -1
@@ -0,0 +1,71 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
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
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var IgcTabComponent_1;
8
+ import { html, LitElement } from 'lit';
9
+ import { property, query } from 'lit/decorators.js';
10
+ import { themes } from '../../theming/theming-decorator.js';
11
+ import { createCounter } from '../common/util.js';
12
+ import { styles } from './themes/light/tab.base.css.js';
13
+ import { styles as bootstrap } from './themes/light/tab.bootstrap.css.js';
14
+ import { styles as fluent } from './themes/light/tab.fluent.css.js';
15
+ import { styles as indigo } from './themes/light/tab.indigo.css.js';
16
+ let IgcTabComponent = IgcTabComponent_1 = class IgcTabComponent extends LitElement {
17
+ constructor() {
18
+ super(...arguments);
19
+ this.panel = '';
20
+ this.selected = false;
21
+ this.disabled = false;
22
+ }
23
+ connectedCallback() {
24
+ super.connectedCallback();
25
+ this.id =
26
+ this.id.length > 0 ? this.id : `igc-tab-${IgcTabComponent_1.increment()}`;
27
+ }
28
+ focus(options) {
29
+ this.tab.focus(options);
30
+ }
31
+ blur() {
32
+ this.tab.blur();
33
+ }
34
+ render() {
35
+ return html `
36
+ <div
37
+ part="base"
38
+ role="tab"
39
+ aria-disabled=${this.disabled ? 'true' : 'false'}
40
+ aria-selected=${this.selected ? 'true' : 'false'}
41
+ tabindex=${this.disabled || !this.selected ? -1 : 0}
42
+ >
43
+ <slot name="prefix" part="prefix"></slot>
44
+ <div part="content">
45
+ <slot></slot>
46
+ </div>
47
+ <slot name="suffix" part="suffix"></slot>
48
+ </div>
49
+ `;
50
+ }
51
+ };
52
+ IgcTabComponent.tagName = 'igc-tab';
53
+ IgcTabComponent.styles = styles;
54
+ IgcTabComponent.increment = createCounter();
55
+ __decorate([
56
+ query('[part="base"]', true)
57
+ ], IgcTabComponent.prototype, "tab", void 0);
58
+ __decorate([
59
+ property({ type: String })
60
+ ], IgcTabComponent.prototype, "panel", void 0);
61
+ __decorate([
62
+ property({ type: Boolean, reflect: true })
63
+ ], IgcTabComponent.prototype, "selected", void 0);
64
+ __decorate([
65
+ property({ type: Boolean, reflect: true })
66
+ ], IgcTabComponent.prototype, "disabled", void 0);
67
+ IgcTabComponent = IgcTabComponent_1 = __decorate([
68
+ themes({ bootstrap, fluent, indigo })
69
+ ], IgcTabComponent);
70
+ export default IgcTabComponent;
71
+ //# sourceMappingURL=tab.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tab.js","sourceRoot":"","sources":["../../../src/components/tabs/tab.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,MAAM,EAAE,MAAM,oCAAoC,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,MAAM,EAAE,MAAM,gCAAgC,CAAC;AACxD,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE,MAAM,qCAAqC,CAAC;AAC1E,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,MAAM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,EAAE,IAAI,EAAE,CAAC;iDACnB;AAIxB;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;iDACnB;AApBL,eAAe;IADnC,MAAM,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;GACjB,eAAe,CAuDnC;eAvDoB,eAAe","sourcesContent":["import { html, LitElement } from 'lit';\nimport { property, query } from 'lit/decorators.js';\nimport { themes } from '../../theming/theming-decorator.js';\nimport { createCounter } from '../common/util.js';\nimport { styles } from './themes/light/tab.base.css.js';\nimport { styles as bootstrap } from './themes/light/tab.bootstrap.css.js';\nimport { styles as fluent } from './themes/light/tab.fluent.css.js';\nimport { styles as indigo } from './themes/light/tab.indigo.css.js';\n\n/**\n * Represents the tab header.\n *\n * @element igc-tab\n *\n * @slot prefix - Renders before the tab header content.\n * @slot - Renders the tab header content.\n * @slot suffix - Renders after the tab header content.\n *\n * @csspart content - The content wrapper.\n * @csspart prefix - The prefix wrapper.\n * @csspart suffix - The suffix wrapper.\n */\n@themes({ bootstrap, fluent, indigo })\nexport default class IgcTabComponent extends LitElement {\n public static readonly tagName = 'igc-tab';\n\n public static override styles = styles;\n\n private static readonly increment = createCounter();\n\n @query('[part=\"base\"]', true)\n private tab!: HTMLElement;\n\n /** The id of the tab panel which will be controlled by the tab. */\n @property({ type: String })\n public panel = '';\n\n /** Determines whether the tab is selected. */\n @property({ type: Boolean, reflect: true })\n public selected = false;\n\n /** Determines whether the tab is disabled. */\n @property({ type: Boolean, reflect: true })\n public disabled = false;\n\n public override connectedCallback(): void {\n super.connectedCallback();\n this.id =\n this.id.length > 0 ? this.id : `igc-tab-${IgcTabComponent.increment()}`;\n }\n\n /** Sets focus to the tab. */\n public override focus(options?: FocusOptions) {\n this.tab.focus(options);\n }\n\n /** Removes focus from the tab. */\n public override blur() {\n this.tab.blur();\n }\n\n protected override render() {\n return html`\n <div\n part=\"base\"\n role=\"tab\"\n aria-disabled=${this.disabled ? 'true' : 'false'}\n aria-selected=${this.selected ? 'true' : 'false'}\n tabindex=${this.disabled || !this.selected ? -1 : 0}\n >\n <slot name=\"prefix\" part=\"prefix\"></slot>\n <div part=\"content\">\n <slot></slot>\n </div>\n <slot name=\"suffix\" part=\"suffix\"></slot>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'igc-tab': IgcTabComponent;\n }\n}\n"]}
@@ -0,0 +1,80 @@
1
+ import '../button/icon-button';
2
+ import { LitElement, nothing } from 'lit';
3
+ import type IgcTabComponent from './tab';
4
+ import type IgcTabPanelComponent from './tab-panel';
5
+ import { Constructor } from '../common/mixins/constructor.js';
6
+ export interface IgcTabsEventMap {
7
+ igcChange: CustomEvent<IgcTabComponent>;
8
+ }
9
+ declare const IgcTabsComponent_base: import("../common/mixins/constructor.js").AbstractConstructor<import("../common/mixins/event-emitter.js").EventEmitterInterface<IgcTabsEventMap>> & Constructor<LitElement>;
10
+ /**
11
+ * Represents tabs component
12
+ *
13
+ * @element igc-tabs
14
+ *
15
+ * @fires igcChange - Emitted when the selected tab changes.
16
+ *
17
+ * @slot - Renders the tab header.
18
+ * @slot panel - Renders the tab content.
19
+ *
20
+ * @csspart headers - The wrapper of the tabs including the headers content and the scroll buttons.
21
+ * @csspart headers-content - The container for the tab headers.
22
+ * @csspart headers-wrapper - The wrapper for the tab headers and the selected indicator.
23
+ * @csspart headers-scroll - The container for the headers.
24
+ * @csspart selected-indicator - The selected indicator.
25
+ * @csspart start-scroll-button - The start scroll button displayed when the tabs overflow.
26
+ * @csspart end-scroll-button - The end scroll button displayed when the tabs overflow.
27
+ * @csspart content - The container for the tabs content.
28
+ */
29
+ export default class IgcTabsComponent extends IgcTabsComponent_base {
30
+ static readonly tagName = "igc-tabs";
31
+ static styles: import("lit").CSSResult;
32
+ private static readonly increment;
33
+ protected tabs: Array<IgcTabComponent>;
34
+ protected panels: Array<IgcTabPanelComponent>;
35
+ protected wrapper: HTMLElement;
36
+ protected container: HTMLElement;
37
+ protected selectedIndicator: HTMLElement;
38
+ protected showScrollButtons: boolean;
39
+ protected disableStartScrollButton: boolean;
40
+ protected disableEndScrollButton: boolean;
41
+ protected activeTab?: IgcTabComponent;
42
+ protected resizeObserver: ResizeObserver;
43
+ protected mutationObserver: MutationObserver;
44
+ protected get enabledTabs(): IgcTabComponent[];
45
+ protected get isLTR(): boolean;
46
+ /** Returns the currently selected tab. */
47
+ get selected(): string;
48
+ /** Sets the alignment for the tab headers */
49
+ alignment: 'start' | 'end' | 'center' | 'justify';
50
+ /**
51
+ * Determines the tab activation. When set to auto,
52
+ * the tab is instantly selected while navigating with the Left/Right Arrows, Home or End keys
53
+ * and the corresponding panel is displayed.
54
+ * When set to manual, the tab is only focused. The selection happens after pressing Space or Enter.
55
+ */
56
+ activation: 'auto' | 'manual';
57
+ protected alignIndicator(): void;
58
+ protected firstUpdated(): Promise<void>;
59
+ disconnectedCallback(): void;
60
+ protected updateButtonsOnResize(): void;
61
+ protected updateScrollButtons(): void;
62
+ protected setupObserver(): void;
63
+ protected updateSelectedTab(): void;
64
+ protected syncAttributes(): void;
65
+ private setSelectedTab;
66
+ protected scrollByTabOffset(direction: 'start' | 'end'): void;
67
+ protected handleClick(event: MouseEvent): void;
68
+ protected handleKeyDown: (event: KeyboardEvent) => void;
69
+ protected handleScroll(): void;
70
+ /** Selects the specified tab and displays the corresponding panel. */
71
+ select(name: string): void;
72
+ protected renderScrollButton(direction: 'start' | 'end'): import("lit-html").TemplateResult<1> | typeof nothing;
73
+ protected render(): import("lit-html").TemplateResult<1>;
74
+ }
75
+ declare global {
76
+ interface HTMLElementTagNameMap {
77
+ 'igc-tabs': IgcTabsComponent;
78
+ }
79
+ }
80
+ export {};
@@ -0,0 +1,308 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
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
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var IgcTabsComponent_1;
8
+ import '../button/icon-button';
9
+ import { html, LitElement, nothing } from 'lit';
10
+ import { eventOptions, property, query, queryAssignedElements, state, } from 'lit/decorators.js';
11
+ import { watch } from '../common/decorators/watch.js';
12
+ import { themes } from '../../theming/theming-decorator.js';
13
+ import { styles } from './themes/light/tabs.base.css.js';
14
+ import { styles as bootstrap } from './themes/light/tabs.bootstrap.css.js';
15
+ import { styles as fluent } from './themes/light/tabs.fluent.css.js';
16
+ import { styles as indigo } from './themes/light/tabs.indigo.css.js';
17
+ import { EventEmitterMixin } from '../common/mixins/event-emitter.js';
18
+ import { createCounter, getOffset } from '../common/util.js';
19
+ import { getAttributesForTags, getNodesForTags, observerConfig, } from './utils.js';
20
+ let IgcTabsComponent = IgcTabsComponent_1 = class IgcTabsComponent extends EventEmitterMixin(LitElement) {
21
+ constructor() {
22
+ super(...arguments);
23
+ this.showScrollButtons = false;
24
+ this.disableStartScrollButton = true;
25
+ this.disableEndScrollButton = false;
26
+ this.alignment = 'start';
27
+ this.activation = 'auto';
28
+ this.handleKeyDown = (event) => {
29
+ var _a;
30
+ const { key } = event;
31
+ const enabledTabs = this.enabledTabs;
32
+ let index = enabledTabs.indexOf((_a = document.activeElement) === null || _a === void 0 ? void 0 : _a.closest('igc-tab'));
33
+ switch (key) {
34
+ case 'ArrowLeft':
35
+ index = this.isLTR
36
+ ? (enabledTabs.length + index - 1) % enabledTabs.length
37
+ : (index + 1) % enabledTabs.length;
38
+ break;
39
+ case 'ArrowRight':
40
+ index = this.isLTR
41
+ ? (index + 1) % enabledTabs.length
42
+ : (enabledTabs.length + index - 1) % enabledTabs.length;
43
+ break;
44
+ case 'Home':
45
+ index = 0;
46
+ break;
47
+ case 'End':
48
+ index = enabledTabs.length - 1;
49
+ break;
50
+ case 'Enter':
51
+ case ' ':
52
+ this.setSelectedTab(enabledTabs[index]);
53
+ break;
54
+ default:
55
+ return;
56
+ }
57
+ enabledTabs[index].focus({ preventScroll: true });
58
+ if (this.activation === 'auto') {
59
+ this.setSelectedTab(enabledTabs[index]);
60
+ this.emitEvent('igcChange', { detail: this.activeTab });
61
+ }
62
+ else {
63
+ enabledTabs[index].scrollIntoView({ block: 'nearest' });
64
+ }
65
+ event.preventDefault();
66
+ };
67
+ }
68
+ get enabledTabs() {
69
+ return this.tabs.filter((tab) => !tab.disabled);
70
+ }
71
+ get isLTR() {
72
+ return (window.getComputedStyle(this).getPropertyValue('direction') === 'ltr');
73
+ }
74
+ get selected() {
75
+ var _a, _b;
76
+ return (_b = (_a = this.activeTab) === null || _a === void 0 ? void 0 : _a.panel) !== null && _b !== void 0 ? _b : '';
77
+ }
78
+ alignIndicator() {
79
+ const styles = {
80
+ visibility: this.activeTab ? 'visible' : 'hidden',
81
+ transitionDuration: '0.3s',
82
+ };
83
+ if (this.activeTab) {
84
+ Object.assign(styles, {
85
+ width: `${this.activeTab.offsetWidth}px`,
86
+ transform: `translate(${this.isLTR
87
+ ? getOffset(this.activeTab, this.wrapper).left
88
+ : getOffset(this.activeTab, this.wrapper).right}px)`,
89
+ });
90
+ }
91
+ Object.assign(this.selectedIndicator.style, styles);
92
+ }
93
+ async firstUpdated() {
94
+ var _a;
95
+ this.showScrollButtons =
96
+ this.container.scrollWidth > this.container.clientWidth;
97
+ await this.updateComplete;
98
+ this.syncAttributes();
99
+ this.setupObserver();
100
+ this.setSelectedTab((_a = this.tabs.filter((tab) => tab.selected).at(-1)) !== null && _a !== void 0 ? _a : this.enabledTabs.at(0));
101
+ }
102
+ disconnectedCallback() {
103
+ var _a, _b;
104
+ (_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
105
+ (_b = this.mutationObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
106
+ super.disconnectedCallback();
107
+ }
108
+ updateButtonsOnResize() {
109
+ this.showScrollButtons = false;
110
+ this.performUpdate();
111
+ this.showScrollButtons =
112
+ this.container.scrollWidth > this.container.clientWidth;
113
+ this.updateScrollButtons();
114
+ }
115
+ updateScrollButtons() {
116
+ const { scrollLeft, offsetWidth } = this.container, { scrollWidth } = this.wrapper;
117
+ this.disableEndScrollButton =
118
+ scrollWidth <= Math.abs(scrollLeft) + offsetWidth;
119
+ this.disableStartScrollButton = scrollLeft === 0;
120
+ }
121
+ setupObserver() {
122
+ this.resizeObserver = new ResizeObserver(() => {
123
+ this.updateButtonsOnResize();
124
+ this.alignIndicator();
125
+ });
126
+ [this.container, this.wrapper, ...this.tabs].forEach((element) => this.resizeObserver.observe(element));
127
+ this.mutationObserver = new MutationObserver(async (records, observer) => {
128
+ var _a;
129
+ observer.disconnect();
130
+ const attributes = getAttributesForTags(records, 'igc-tab');
131
+ const changed = getNodesForTags(records, this, 'igc-tab');
132
+ if (attributes.length > 0) {
133
+ this.activeTab = attributes.find((tab) => tab.selected);
134
+ }
135
+ if (changed) {
136
+ changed.addedNodes.forEach((tab) => {
137
+ this.resizeObserver.observe(tab);
138
+ if (tab.selected) {
139
+ this.activeTab = tab;
140
+ }
141
+ });
142
+ changed.removedNodes.forEach((tab) => {
143
+ this.resizeObserver.unobserve(tab);
144
+ if (tab.selected || this.activeTab === tab) {
145
+ this.activeTab = undefined;
146
+ }
147
+ });
148
+ this.syncAttributes();
149
+ }
150
+ this.updateSelectedTab();
151
+ (_a = this.activeTab) === null || _a === void 0 ? void 0 : _a.scrollIntoView({ block: 'nearest' });
152
+ this.alignIndicator();
153
+ await this.updateComplete;
154
+ observer.observe(this, observerConfig);
155
+ });
156
+ this.mutationObserver.observe(this, observerConfig);
157
+ }
158
+ updateSelectedTab() {
159
+ this.tabs.forEach((tab) => (tab.selected = tab === this.activeTab));
160
+ this.panels.forEach((panel) => {
161
+ var _a;
162
+ return Object.assign(panel.style, {
163
+ display: panel.id === ((_a = this.activeTab) === null || _a === void 0 ? void 0 : _a.panel) ? 'block' : 'none',
164
+ });
165
+ });
166
+ }
167
+ syncAttributes() {
168
+ const prefix = this.id ? `${this.id}-` : '';
169
+ this.tabs.forEach((tab, index) => {
170
+ var _a, _b, _c;
171
+ if (!tab.panel) {
172
+ tab.panel =
173
+ (_b = (_a = this.panels.at(index)) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : `${prefix}tab-${IgcTabsComponent_1.increment()}`;
174
+ }
175
+ (_c = this.panels
176
+ .find((panel) => panel.id === tab.panel)) === null || _c === void 0 ? void 0 : _c.setAttribute('aria-labelledby', tab.id);
177
+ });
178
+ }
179
+ setSelectedTab(tab) {
180
+ if (!tab || tab === this.activeTab) {
181
+ return;
182
+ }
183
+ if (this.activeTab) {
184
+ this.activeTab.selected = false;
185
+ }
186
+ this.activeTab = tab;
187
+ this.activeTab.selected = true;
188
+ }
189
+ scrollByTabOffset(direction) {
190
+ const { scrollLeft, offsetWidth } = this.container;
191
+ const LTR = this.isLTR, next = direction === 'end';
192
+ const pivot = Math.abs(next ? offsetWidth + scrollLeft : scrollLeft);
193
+ let amount = this.tabs
194
+ .map((tab) => ({
195
+ start: LTR
196
+ ? getOffset(tab, this.wrapper).left
197
+ : Math.abs(getOffset(tab, this.wrapper).right),
198
+ width: tab.offsetWidth,
199
+ }))
200
+ .filter((offset) => next ? offset.start + offset.width > pivot : offset.start < pivot)
201
+ .at(next ? 0 : -1).width;
202
+ amount *= next ? 1 : -1;
203
+ this.container.scrollBy({ left: this.isLTR ? amount : -amount });
204
+ }
205
+ handleClick(event) {
206
+ const target = event.target;
207
+ const tab = target.closest('igc-tab');
208
+ if (!(tab && this.contains(tab)) || tab.disabled) {
209
+ return;
210
+ }
211
+ tab.focus();
212
+ this.setSelectedTab(tab);
213
+ this.emitEvent('igcChange', { detail: this.activeTab });
214
+ }
215
+ handleScroll() {
216
+ this.updateScrollButtons();
217
+ }
218
+ select(name) {
219
+ this.setSelectedTab(this.tabs.find((el) => el.panel === name));
220
+ }
221
+ renderScrollButton(direction) {
222
+ const start = direction === 'start';
223
+ return this.showScrollButtons
224
+ ? html `<igc-icon-button
225
+ size="large"
226
+ variant="flat"
227
+ collection="internal"
228
+ part="${direction}-scroll-button"
229
+ name="navigate_${start ? 'before' : 'next'}"
230
+ .disabled=${start
231
+ ? this.disableStartScrollButton
232
+ : this.disableEndScrollButton}
233
+ @click=${() => this.scrollByTabOffset(direction)}
234
+ ></igc-icon-button>`
235
+ : nothing;
236
+ }
237
+ render() {
238
+ return html `
239
+ <div part="headers">
240
+ ${this.renderScrollButton('start')}
241
+ <div part="headers-content" @scroll=${this.handleScroll}>
242
+ <div part="headers-wrapper">
243
+ <div
244
+ part="headers-scroll"
245
+ role="tablist"
246
+ @click=${this.handleClick}
247
+ @keydown=${this.handleKeyDown}
248
+ >
249
+ <slot></slot>
250
+ </div>
251
+ <div part="selected-indicator"></div>
252
+ </div>
253
+ </div>
254
+ ${this.renderScrollButton('end')}
255
+ </div>
256
+ <div part="content">
257
+ <slot name="panel"></slot>
258
+ </div>
259
+ `;
260
+ }
261
+ };
262
+ IgcTabsComponent.tagName = 'igc-tabs';
263
+ IgcTabsComponent.styles = styles;
264
+ IgcTabsComponent.increment = createCounter();
265
+ __decorate([
266
+ queryAssignedElements({ selector: 'igc-tab' })
267
+ ], IgcTabsComponent.prototype, "tabs", void 0);
268
+ __decorate([
269
+ queryAssignedElements({ slot: 'panel' })
270
+ ], IgcTabsComponent.prototype, "panels", void 0);
271
+ __decorate([
272
+ query('[part="headers-wrapper"]', true)
273
+ ], IgcTabsComponent.prototype, "wrapper", void 0);
274
+ __decorate([
275
+ query('[part="headers-content"]', true)
276
+ ], IgcTabsComponent.prototype, "container", void 0);
277
+ __decorate([
278
+ query('[part="selected-indicator"]', true)
279
+ ], IgcTabsComponent.prototype, "selectedIndicator", void 0);
280
+ __decorate([
281
+ state()
282
+ ], IgcTabsComponent.prototype, "showScrollButtons", void 0);
283
+ __decorate([
284
+ state()
285
+ ], IgcTabsComponent.prototype, "disableStartScrollButton", void 0);
286
+ __decorate([
287
+ state()
288
+ ], IgcTabsComponent.prototype, "disableEndScrollButton", void 0);
289
+ __decorate([
290
+ state()
291
+ ], IgcTabsComponent.prototype, "activeTab", void 0);
292
+ __decorate([
293
+ property({ reflect: true })
294
+ ], IgcTabsComponent.prototype, "alignment", void 0);
295
+ __decorate([
296
+ property()
297
+ ], IgcTabsComponent.prototype, "activation", void 0);
298
+ __decorate([
299
+ watch('alignment', { waitUntilFirstUpdate: true })
300
+ ], IgcTabsComponent.prototype, "alignIndicator", null);
301
+ __decorate([
302
+ eventOptions({ passive: true })
303
+ ], IgcTabsComponent.prototype, "handleScroll", null);
304
+ IgcTabsComponent = IgcTabsComponent_1 = __decorate([
305
+ themes({ bootstrap, fluent, indigo })
306
+ ], IgcTabsComponent);
307
+ export default IgcTabsComponent;
308
+ //# sourceMappingURL=tabs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tabs.js","sourceRoot":"","sources":["../../../src/components/tabs/tabs.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAChD,OAAO,EACL,YAAY,EACZ,QAAQ,EACR,KAAK,EACL,qBAAqB,EACrB,KAAK,GACN,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,oCAAoC,CAAC;AAG5D,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AACzD,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAC3E,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,EAAE,MAAM,IAAI,MAAM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ions,\n property,\n query,\n queryAssignedElements,\n state,\n} from 'lit/decorators.js';\nimport { watch } from '../common/decorators/watch.js';\nimport { themes } from '../../theming/theming-decorator.js';\nimport type IgcTabComponent from './tab';\nimport type IgcTabPanelComponent from './tab-panel';\nimport { styles } from './themes/light/tabs.base.css.js';\nimport { styles as bootstrap } from './themes/light/tabs.bootstrap.css.js';\nimport { styles as fluent } from './themes/light/tabs.fluent.css.js';\nimport { styles as indigo } from './themes/light/tabs.indigo.css.js';\nimport { EventEmitterMixin } from '../common/mixins/event-emitter.js';\nimport { Constructor } from '../common/mixins/constructor.js';\nimport { createCounter, getOffset } from '../common/util.js';\nimport {\n getAttributesForTags,\n getNodesForTags,\n observerConfig,\n} from './utils.js';\n\nexport interface IgcTabsEventMap {\n igcChange: CustomEvent<IgcTabComponent>;\n}\n\n/**\n * Represents tabs component\n *\n * @element igc-tabs\n *\n * @fires igcChange - Emitted when the selected tab changes.\n *\n * @slot - Renders the tab header.\n * @slot panel - Renders the tab content.\n *\n * @csspart headers - The wrapper of the tabs including the headers content and the scroll buttons.\n * @csspart headers-content - The container for the tab headers.\n * @csspart headers-wrapper - The wrapper for the tab headers and the selected indicator.\n * @csspart headers-scroll - The container for the headers.\n * @csspart selected-indicator - The selected indicator.\n * @csspart start-scroll-button - The start scroll button displayed when the tabs overflow.\n * @csspart end-scroll-button - The end scroll button displayed when the tabs overflow.\n * @csspart content - The container for the tabs content.\n */\n@themes({ bootstrap, fluent, indigo })\nexport default class IgcTabsComponent extends EventEmitterMixin<\n IgcTabsEventMap,\n Constructor<LitElement>\n>(LitElement) {\n public static readonly tagName = 'igc-tabs';\n\n public static styles = styles;\n private static readonly increment = createCounter();\n\n @queryAssignedElements({ selector: 'igc-tab' })\n protected tabs!: Array<IgcTabComponent>;\n\n @queryAssignedElements({ slot: 'panel' })\n protected panels!: Array<IgcTabPanelComponent>;\n\n @query('[part=\"headers-wrapper\"]', true)\n protected wrapper!: HTMLElement;\n\n @query('[part=\"headers-content\"]', true)\n protected container!: HTMLElement;\n\n @query('[part=\"selected-indicator\"]', true)\n protected selectedIndicator!: HTMLElement;\n\n @state()\n protected showScrollButtons = false;\n\n @state()\n protected disableStartScrollButton = true;\n\n @state()\n protected disableEndScrollButton = false;\n\n @state()\n protected activeTab?: IgcTabComponent;\n\n protected resizeObserver!: ResizeObserver;\n protected mutationObserver!: MutationObserver;\n\n protected get enabledTabs() {\n return this.tabs.filter((tab) => !tab.disabled);\n }\n\n protected get isLTR() {\n return (\n window.getComputedStyle(this).getPropertyValue('direction') === 'ltr'\n );\n }\n\n /** Returns the currently selected tab. */\n public get selected(): string {\n return this.activeTab?.panel ?? '';\n }\n\n /** Sets the alignment for the tab headers */\n @property({ reflect: true })\n public alignment: 'start' | 'end' | 'center' | 'justify' = 'start';\n\n /**\n * Determines the tab activation. When set to auto,\n * the tab is instantly selected while navigating with the Left/Right Arrows, Home or End keys\n * and the corresponding panel is displayed.\n * When set to manual, the tab is only focused. The selection happens after pressing Space or Enter.\n */\n @property()\n public activation: 'auto' | 'manual' = 'auto';\n\n @watch('alignment', { waitUntilFirstUpdate: true })\n protected alignIndicator() {\n const styles: Partial<CSSStyleDeclaration> = {\n visibility: this.activeTab ? 'visible' : 'hidden',\n transitionDuration: '0.3s',\n };\n\n if (this.activeTab) {\n Object.assign(styles, {\n width: `${this.activeTab!.offsetWidth}px`,\n transform: `translate(${\n this.isLTR\n ? getOffset(this.activeTab!, this.wrapper).left\n : getOffset(this.activeTab!, this.wrapper).right\n }px)`,\n });\n }\n\n Object.assign(this.selectedIndicator.style, styles);\n }\n\n protected override async firstUpdated() {\n this.showScrollButtons =\n this.container.scrollWidth > this.container.clientWidth;\n\n await this.updateComplete;\n\n this.syncAttributes();\n this.setupObserver();\n this.setSelectedTab(\n this.tabs.filter((tab) => tab.selected).at(-1) ?? this.enabledTabs.at(0)\n );\n }\n\n public override disconnectedCallback() {\n this.resizeObserver?.disconnect();\n this.mutationObserver?.disconnect();\n super.disconnectedCallback();\n }\n\n protected updateButtonsOnResize() {\n // Hide the buttons in the resize observer callback and synchronously update the DOM\n // in order to get the actual size\n this.showScrollButtons = false;\n this.performUpdate();\n\n this.showScrollButtons =\n this.container.scrollWidth > this.container.clientWidth;\n\n this.updateScrollButtons();\n }\n\n protected updateScrollButtons() {\n const { scrollLeft, offsetWidth } = this.container,\n { scrollWidth } = this.wrapper;\n\n this.disableEndScrollButton =\n scrollWidth <= Math.abs(scrollLeft) + offsetWidth;\n this.disableStartScrollButton = scrollLeft === 0;\n }\n\n protected setupObserver() {\n this.resizeObserver = new ResizeObserver(() => {\n this.updateButtonsOnResize();\n this.alignIndicator();\n });\n\n [this.container, this.wrapper, ...this.tabs].forEach((element) =>\n this.resizeObserver.observe(element)\n );\n\n this.mutationObserver = new MutationObserver(async (records, observer) => {\n // Stop observing while handling changes\n observer.disconnect();\n\n const attributes = getAttributesForTags<IgcTabComponent>(\n records,\n 'igc-tab'\n );\n const changed = getNodesForTags<IgcTabComponent>(\n records,\n this,\n 'igc-tab'\n );\n\n if (attributes.length > 0) {\n this.activeTab = attributes.find((tab) => tab.selected);\n }\n\n if (changed) {\n changed.addedNodes.forEach((tab) => {\n this.resizeObserver.observe(tab);\n if (tab.selected) {\n this.activeTab = tab;\n }\n });\n changed.removedNodes.forEach((tab) => {\n this.resizeObserver.unobserve(tab);\n if (tab.selected || this.activeTab === tab) {\n this.activeTab = undefined;\n }\n });\n\n this.syncAttributes();\n }\n\n this.updateSelectedTab();\n this.activeTab?.scrollIntoView({ block: 'nearest' });\n this.alignIndicator();\n\n // Watch for changes again\n await this.updateComplete;\n observer.observe(this, observerConfig);\n });\n\n this.mutationObserver.observe(this, observerConfig);\n }\n\n protected updateSelectedTab() {\n this.tabs.forEach((tab) => (tab.selected = tab === this.activeTab));\n this.panels.forEach((panel) =>\n Object.assign(panel.style, {\n display: panel.id === this.activeTab?.panel ? 'block' : 'none',\n })\n );\n }\n\n protected syncAttributes() {\n const prefix = this.id ? `${this.id}-` : '';\n this.tabs.forEach((tab, index) => {\n if (!tab.panel) {\n tab.panel =\n this.panels.at(index)?.id ??\n `${prefix}tab-${IgcTabsComponent.increment()}`;\n }\n this.panels\n .find((panel) => panel.id === tab.panel)\n ?.setAttribute('aria-labelledby', tab.id);\n });\n }\n\n private setSelectedTab(tab?: IgcTabComponent) {\n if (!tab || tab === this.activeTab) {\n return;\n }\n\n if (this.activeTab) {\n this.activeTab.selected = false;\n }\n\n this.activeTab = tab;\n this.activeTab.selected = true;\n }\n\n protected scrollByTabOffset(direction: 'start' | 'end') {\n const { scrollLeft, offsetWidth } = this.container;\n const LTR = this.isLTR,\n next = direction === 'end';\n\n const pivot = Math.abs(next ? offsetWidth + scrollLeft : scrollLeft);\n\n let amount = this.tabs\n .map((tab) => ({\n start: LTR\n ? getOffset(tab, this.wrapper).left\n : Math.abs(getOffset(tab, this.wrapper).right),\n width: tab.offsetWidth,\n }))\n .filter((offset) =>\n next ? offset.start + offset.width > pivot : offset.start < pivot\n )\n .at(next ? 0 : -1)!.width;\n\n amount *= next ? 1 : -1;\n this.container.scrollBy({ left: this.isLTR ? amount : -amount });\n }\n\n protected handleClick(event: MouseEvent) {\n const target = event.target as HTMLElement;\n const tab = target.closest('igc-tab');\n\n if (!(tab && this.contains(tab)) || tab.disabled) {\n return;\n }\n\n tab.focus();\n this.setSelectedTab(tab);\n this.emitEvent('igcChange', { detail: this.activeTab });\n }\n\n protected handleKeyDown = (event: KeyboardEvent) => {\n const { key } = event;\n const enabledTabs = this.enabledTabs;\n\n let index = enabledTabs.indexOf(\n document.activeElement?.closest('igc-tab') as IgcTabComponent\n );\n\n switch (key) {\n case 'ArrowLeft':\n index = this.isLTR\n ? (enabledTabs.length + index - 1) % enabledTabs.length\n : (index + 1) % enabledTabs.length;\n break;\n case 'ArrowRight':\n index = this.isLTR\n ? (index + 1) % enabledTabs.length\n : (enabledTabs.length + index - 1) % enabledTabs.length;\n break;\n case 'Home':\n index = 0;\n break;\n case 'End':\n index = enabledTabs.length - 1;\n break;\n case 'Enter':\n case ' ':\n this.setSelectedTab(enabledTabs[index]);\n break;\n default:\n return;\n }\n\n enabledTabs[index].focus({ preventScroll: true });\n\n if (this.activation === 'auto') {\n this.setSelectedTab(enabledTabs[index]);\n this.emitEvent('igcChange', { detail: this.activeTab });\n } else {\n enabledTabs[index].scrollIntoView({ block: 'nearest' });\n }\n\n event.preventDefault();\n };\n\n @eventOptions({ passive: true })\n protected handleScroll() {\n this.updateScrollButtons();\n }\n\n /** Selects the specified tab and displays the corresponding panel. */\n public select(name: string) {\n this.setSelectedTab(this.tabs.find((el) => el.panel === name));\n }\n\n protected renderScrollButton(direction: 'start' | 'end') {\n const start = direction === 'start';\n\n return this.showScrollButtons\n ? html`<igc-icon-button\n size=\"large\"\n variant=\"flat\"\n collection=\"internal\"\n part=\"${direction}-scroll-button\"\n name=\"navigate_${start ? 'before' : 'next'}\"\n .disabled=${start\n ? this.disableStartScrollButton\n : this.disableEndScrollButton}\n @click=${() => this.scrollByTabOffset(direction)}\n ></igc-icon-button>`\n : nothing;\n }\n\n protected override render() {\n return html`\n <div part=\"headers\">\n ${this.renderScrollButton('start')}\n <div part=\"headers-content\" @scroll=${this.handleScroll}>\n <div part=\"headers-wrapper\">\n <div\n part=\"headers-scroll\"\n role=\"tablist\"\n @click=${this.handleClick}\n @keydown=${this.handleKeyDown}\n >\n <slot></slot>\n </div>\n <div part=\"selected-indicator\"></div>\n </div>\n </div>\n ${this.renderScrollButton('end')}\n </div>\n <div part=\"content\">\n <slot name=\"panel\"></slot>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'igc-tabs': IgcTabsComponent;\n }\n}\n"]}
@@ -0,0 +1 @@
1
+ export declare const styles: import("lit").CSSResult;
@@ -0,0 +1,3 @@
1
+ import { css } from 'lit';
2
+ export const styles = css ``;
3
+ //# sourceMappingURL=tab.dark.base.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tab.dark.base.css.js","sourceRoot":"","sources":["../../../../../src/components/tabs/themes/dark/tab.dark.base.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA,EAAE,CAAC","sourcesContent":["import { css } from 'lit';\n\nexport const styles = css``;\n"]}
@@ -0,0 +1 @@
1
+ export declare const styles: import("lit").CSSResult;
@@ -0,0 +1,3 @@
1
+ import { css } from 'lit';
2
+ export const styles = css ``;
3
+ //# sourceMappingURL=tab.dark.bootstrap.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tab.dark.bootstrap.css.js","sourceRoot":"","sources":["../../../../../src/components/tabs/themes/dark/tab.dark.bootstrap.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA,EAAE,CAAC","sourcesContent":["import { css } from 'lit';\n\nexport const styles = css``;\n"]}
@@ -0,0 +1 @@
1
+ export declare const styles: import("lit").CSSResult;
@@ -0,0 +1,3 @@
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{position:relative;overflow:hidden;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}`;
3
+ //# sourceMappingURL=tab-panel.base.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tab-panel.base.css.js","sourceRoot":"","sources":["../../../../../src/components/tabs/themes/light/tab-panel.base.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA,2zBAA2zB,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{position:relative;overflow:hidden;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}`;\n"]}
@@ -0,0 +1 @@
1
+ export declare const styles: import("lit").CSSResult;
@@ -0,0 +1,3 @@
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;-ms-flex-negative:0;flex-shrink:0;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;min-width:5.625rem;max-width:22.5rem;word-wrap:break-word;padding:.75rem 1rem;overflow:hidden;cursor:pointer;position:relative;-webkit-transition:all .3s cubic-bezier(0.35, 0, 0.25, 1);-o-transition:all .3s cubic-bezier(0.35, 0, 0.25, 1);transition:all .3s cubic-bezier(0.35, 0, 0.25, 1);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background:hsla(var(--igc-surface-500), var(--igc-surface-a));color:hsla(var(--igc-gray-700), var(--igc-gray-a))}:host(:hover),:host(:focus-within){background:var(--hover-background, hsla(var(--igc-gray-200), var(--igc-gray-a)));color:hsla(var(--igc-gray-700), var(--igc-gray-a))}:host([selected]){color:hsla(var(--igc-primary-500), var(--igc-primary-a))}:host([selected]) ::slotted(igc-icon){color:hsla(var(--igc-primary-500), var(--igc-primary-a))}:host([selected]:hover),:host([selected]:focus-within){color:hsla(var(--igc-primary-500), var(--igc-primary-a))}:host([disabled]){pointer-events:none;cursor:initial;color:hsla(var(--igc-gray-500), var(--igc-gray-a))}[part=base]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;outline-style:none;gap:.5rem}[part=content]{font-family:var(--igc-button-font-family);font-weight:var(--igc-button-font-weight);font-size:var(--igc-button-font-size);font-style:var(--igc-button-font-style);letter-spacing:var(--igc-button-letter-spacing);text-transform:var(--igc-button-text-transform);line-height:var(--igc-button-line-height);margin-top:var(--igc-button-margin-top);margin-bottom:var(--igc-button-margin-bottom);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;text-align:center;outline-style:none}[part=content] ::slotted(*){display:-webkit-inline-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}::slotted(igc-icon){--size: 1.5rem}::slotted(igc-icon:not(:only-child)){margin-bottom:.5rem}`;
3
+ //# sourceMappingURL=tab.base.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tab.base.css.js","sourceRoot":"","sources":["../../../../../src/components/tabs/themes/light/tab.base.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA,koGAAkoG,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;-ms-flex-negative:0;flex-shrink:0;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;min-width:5.625rem;max-width:22.5rem;word-wrap:break-word;padding:.75rem 1rem;overflow:hidden;cursor:pointer;position:relative;-webkit-transition:all .3s cubic-bezier(0.35, 0, 0.25, 1);-o-transition:all .3s cubic-bezier(0.35, 0, 0.25, 1);transition:all .3s cubic-bezier(0.35, 0, 0.25, 1);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background:hsla(var(--igc-surface-500), var(--igc-surface-a));color:hsla(var(--igc-gray-700), var(--igc-gray-a))}:host(:hover),:host(:focus-within){background:var(--hover-background, hsla(var(--igc-gray-200), var(--igc-gray-a)));color:hsla(var(--igc-gray-700), var(--igc-gray-a))}:host([selected]){color:hsla(var(--igc-primary-500), var(--igc-primary-a))}:host([selected]) ::slotted(igc-icon){color:hsla(var(--igc-primary-500), var(--igc-primary-a))}:host([selected]:hover),:host([selected]:focus-within){color:hsla(var(--igc-primary-500), var(--igc-primary-a))}:host([disabled]){pointer-events:none;cursor:initial;color:hsla(var(--igc-gray-500), var(--igc-gray-a))}[part=base]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;outline-style:none;gap:.5rem}[part=content]{font-family:var(--igc-button-font-family);font-weight:var(--igc-button-font-weight);font-size:var(--igc-button-font-size);font-style:var(--igc-button-font-style);letter-spacing:var(--igc-button-letter-spacing);text-transform:var(--igc-button-text-transform);line-height:var(--igc-button-line-height);margin-top:var(--igc-button-margin-top);margin-bottom:var(--igc-button-margin-bottom);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;text-align:center;outline-style:none}[part=content] ::slotted(*){display:-webkit-inline-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}::slotted(igc-icon){--size: 1.5rem}::slotted(igc-icon:not(:only-child)){margin-bottom:.5rem}`;\n"]}
@@ -0,0 +1 @@
1
+ export declare const styles: import("lit").CSSResult;
@@ -0,0 +1,3 @@
1
+ import { css } from 'lit';
2
+ export const styles = css `:host{background:rgba(0,0,0,0);-webkit-transition:none;-o-transition:none;transition:none;border-start-start-radius:.25rem;border-start-end-radius:.25rem;color:hsla(var(--igc-primary-500), var(--igc-primary-a))}:host(:hover){background:rgba(0,0,0,0);color:var(--hover-color, hsla(var(--igc-primary-700), var(--igc-primary-a)));-webkit-box-shadow:inset 0 0 0 .0625rem hsla(var(--igc-gray-200), var(--igc-gray-a));box-shadow:inset 0 0 0 .0625rem hsla(var(--igc-gray-200), var(--igc-gray-a))}:host([selected]){color:hsla(var(--igc-gray-800), var(--igc-gray-a));position:relative;-webkit-box-shadow:inset 0 0 0 .0625rem hsla(var(--igc-gray-300), var(--igc-gray-a));box-shadow:inset 0 0 0 .0625rem hsla(var(--igc-gray-300), var(--igc-gray-a))}:host([selected]) ::slotted(igc-icon){color:hsla(var(--igc-gray-800), var(--igc-gray-a))}:host([selected])::after{content:"";position:absolute;bottom:0;inset-inline-start:0;width:100%;height:.0625rem;background:hsla(var(--igc-surface-500), var(--igc-surface-a));z-index:1}:host([selected]:hover){color:hsla(var(--igc-gray-800), var(--igc-gray-a));border-top-color:hsla(var(--igc-gray-300), var(--igc-gray-a));border-inline-color:hsla(var(--igc-gray-300), var(--igc-gray-a));border-bottom-color:hsla(var(--igc-surface-500), var(--igc-surface-a))}:host(:focus-within),:host([selected]:focus-within){color:var(--hover-color, hsla(var(--igc-primary-700), var(--igc-primary-a)));background:rgba(0,0,0,0);-webkit-box-shadow:inset 0 0 0 .125rem hsla(var(--igc-primary-700), var(--igc-primary-a));box-shadow:inset 0 0 0 .125rem hsla(var(--igc-primary-700), var(--igc-primary-a));border-radius:.25rem;z-index:1}:host(:focus-within)::after,:host([selected]:focus-within)::after{display:none}:host([selected]:focus-within){color:hsla(var(--igc-gray-800), var(--igc-gray-a))}:host([disabled]){color:hsla(var(--igc-primary-500), 0.5)}`;
3
+ //# sourceMappingURL=tab.bootstrap.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tab.bootstrap.css.js","sourceRoot":"","sources":["../../../../../src/components/tabs/themes/light/tab.bootstrap.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA,q0DAAq0D,CAAC","sourcesContent":["import { css } from 'lit';\n\nexport const styles = css`:host{background:rgba(0,0,0,0);-webkit-transition:none;-o-transition:none;transition:none;border-start-start-radius:.25rem;border-start-end-radius:.25rem;color:hsla(var(--igc-primary-500), var(--igc-primary-a))}:host(:hover){background:rgba(0,0,0,0);color:var(--hover-color, hsla(var(--igc-primary-700), var(--igc-primary-a)));-webkit-box-shadow:inset 0 0 0 .0625rem hsla(var(--igc-gray-200), var(--igc-gray-a));box-shadow:inset 0 0 0 .0625rem hsla(var(--igc-gray-200), var(--igc-gray-a))}:host([selected]){color:hsla(var(--igc-gray-800), var(--igc-gray-a));position:relative;-webkit-box-shadow:inset 0 0 0 .0625rem hsla(var(--igc-gray-300), var(--igc-gray-a));box-shadow:inset 0 0 0 .0625rem hsla(var(--igc-gray-300), var(--igc-gray-a))}:host([selected]) ::slotted(igc-icon){color:hsla(var(--igc-gray-800), var(--igc-gray-a))}:host([selected])::after{content:\"\";position:absolute;bottom:0;inset-inline-start:0;width:100%;height:.0625rem;background:hsla(var(--igc-surface-500), var(--igc-surface-a));z-index:1}:host([selected]:hover){color:hsla(var(--igc-gray-800), var(--igc-gray-a));border-top-color:hsla(var(--igc-gray-300), var(--igc-gray-a));border-inline-color:hsla(var(--igc-gray-300), var(--igc-gray-a));border-bottom-color:hsla(var(--igc-surface-500), var(--igc-surface-a))}:host(:focus-within),:host([selected]:focus-within){color:var(--hover-color, hsla(var(--igc-primary-700), var(--igc-primary-a)));background:rgba(0,0,0,0);-webkit-box-shadow:inset 0 0 0 .125rem hsla(var(--igc-primary-700), var(--igc-primary-a));box-shadow:inset 0 0 0 .125rem hsla(var(--igc-primary-700), var(--igc-primary-a));border-radius:.25rem;z-index:1}:host(:focus-within)::after,:host([selected]:focus-within)::after{display:none}:host([selected]:focus-within){color:hsla(var(--igc-gray-800), var(--igc-gray-a))}:host([disabled]){color:hsla(var(--igc-primary-500), 0.5)}`;\n"]}
@@ -0,0 +1 @@
1
+ export declare const styles: import("lit").CSSResult;
@@ -0,0 +1,3 @@
1
+ import { css } from 'lit';
2
+ export const styles = css `:host{color:hsla(var(--igc-gray-900), var(--igc-gray-a))}:host ::slotted(igc-icon){color:hsla(var(--igc-gray-700), var(--igc-gray-a))}:host(:hover),:host(:focus-within){color:hsla(var(--igc-gray-900), var(--igc-gray-a))}:host([disabled]){color:hsla(var(--igc-gray-400), var(--igc-gray-a))}:host([disabled]) ::slotted(igc-icon){color:hsla(var(--igc-gray-400), var(--igc-gray-a))}`;
3
+ //# sourceMappingURL=tab.fluent.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tab.fluent.css.js","sourceRoot":"","sources":["../../../../../src/components/tabs/themes/light/tab.fluent.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA,4XAA4X,CAAC","sourcesContent":["import { css } from 'lit';\n\nexport const styles = css`:host{color:hsla(var(--igc-gray-900), var(--igc-gray-a))}:host ::slotted(igc-icon){color:hsla(var(--igc-gray-700), var(--igc-gray-a))}:host(:hover),:host(:focus-within){color:hsla(var(--igc-gray-900), var(--igc-gray-a))}:host([disabled]){color:hsla(var(--igc-gray-400), var(--igc-gray-a))}:host([disabled]) ::slotted(igc-icon){color:hsla(var(--igc-gray-400), var(--igc-gray-a))}`;\n"]}
@@ -0,0 +1 @@
1
+ export declare const styles: import("lit").CSSResult;
@@ -0,0 +1,3 @@
1
+ import { css } from 'lit';
2
+ export const styles = css `:host{background:rgba(0,0,0,0)}:host(:hover),:host(:focus-within){background:rgba(0,0,0,0);color:hsla(var(--igc-gray-900), var(--igc-gray-a))}:host([selected]){color:hsla(var(--igc-gray-900), var(--igc-gray-a))}:host([selected]) ::slotted(igc-icon){color:hsla(var(--igc-primary-400), var(--igc-primary-a))}:host([selected]:hover),:host([selected]:focus-within){color:hsla(var(--igc-gray-900), var(--igc-gray-a))}`;
3
+ //# sourceMappingURL=tab.indigo.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tab.indigo.css.js","sourceRoot":"","sources":["../../../../../src/components/tabs/themes/light/tab.indigo.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA,8ZAA8Z,CAAC","sourcesContent":["import { css } from 'lit';\n\nexport const styles = css`:host{background:rgba(0,0,0,0)}:host(:hover),:host(:focus-within){background:rgba(0,0,0,0);color:hsla(var(--igc-gray-900), var(--igc-gray-a))}:host([selected]){color:hsla(var(--igc-gray-900), var(--igc-gray-a))}:host([selected]) ::slotted(igc-icon){color:hsla(var(--igc-primary-400), var(--igc-primary-a))}:host([selected]:hover),:host([selected]:focus-within){color:hsla(var(--igc-gray-900), var(--igc-gray-a))}`;\n"]}
@@ -0,0 +1 @@
1
+ export declare const styles: import("lit").CSSResult;