igniteui-webcomponents 4.8.2 → 4.9.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 (356) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +2 -2
  3. package/animations/player.js +1 -1
  4. package/animations/player.js.map +1 -1
  5. package/animations/presets/slide/index.js +4 -4
  6. package/animations/presets/slide/index.js.map +1 -1
  7. package/components/accordion/accordion.js +2 -2
  8. package/components/accordion/accordion.js.map +1 -1
  9. package/components/avatar/avatar.d.ts +1 -0
  10. package/components/avatar/avatar.js +11 -7
  11. package/components/avatar/avatar.js.map +1 -1
  12. package/components/avatar/themes/themes.js.map +1 -1
  13. package/components/badge/badge.js +7 -6
  14. package/components/badge/badge.js.map +1 -1
  15. package/components/badge/themes/themes.d.ts +1 -1
  16. package/components/badge/themes/themes.js.map +1 -1
  17. package/components/button/button-base.d.ts +1 -1
  18. package/components/button/button-base.js.map +1 -1
  19. package/components/button/button.js +6 -5
  20. package/components/button/button.js.map +1 -1
  21. package/components/button/icon-button.js +8 -7
  22. package/components/button/icon-button.js.map +1 -1
  23. package/components/button/themes/button/themes.d.ts +1 -1
  24. package/components/button/themes/button/themes.js.map +1 -1
  25. package/components/button/themes/icon-button/themes.d.ts +1 -1
  26. package/components/button/themes/icon-button/themes.js.map +1 -1
  27. package/components/button-group/button-group.js +27 -19
  28. package/components/button-group/button-group.js.map +1 -1
  29. package/components/button-group/themes/button.js.map +1 -1
  30. package/components/button-group/themes/group.js.map +1 -1
  31. package/components/button-group/toggle-button.js +7 -6
  32. package/components/button-group/toggle-button.js.map +1 -1
  33. package/components/calendar/calendar.d.ts +2 -2
  34. package/components/calendar/calendar.js +17 -19
  35. package/components/calendar/calendar.js.map +1 -1
  36. package/components/calendar/common/calendar-base.d.ts +1 -1
  37. package/components/calendar/common/calendar-base.js +2 -2
  38. package/components/calendar/common/calendar-base.js.map +1 -1
  39. package/components/calendar/common/calendar.model.d.ts +1 -1
  40. package/components/calendar/common/calendar.model.js +12 -11
  41. package/components/calendar/common/calendar.model.js.map +1 -1
  42. package/components/calendar/common/utils.d.ts +1 -1
  43. package/components/calendar/common/utils.js +1 -1
  44. package/components/calendar/common/utils.js.map +1 -1
  45. package/components/calendar/days-view/days-view.d.ts +4 -4
  46. package/components/calendar/days-view/days-view.js +11 -14
  47. package/components/calendar/days-view/days-view.js.map +1 -1
  48. package/components/calendar/months-view/months-view.d.ts +2 -2
  49. package/components/calendar/months-view/months-view.js +4 -3
  50. package/components/calendar/months-view/months-view.js.map +1 -1
  51. package/components/calendar/themes/calendar.d.ts +1 -1
  52. package/components/calendar/themes/calendar.js.map +1 -1
  53. package/components/calendar/themes/days.d.ts +1 -1
  54. package/components/calendar/themes/days.js.map +1 -1
  55. package/components/calendar/themes/year-month.d.ts +1 -1
  56. package/components/calendar/themes/year-month.js.map +1 -1
  57. package/components/calendar/years-view/years-view.d.ts +2 -2
  58. package/components/calendar/years-view/years-view.js +4 -3
  59. package/components/calendar/years-view/years-view.js.map +1 -1
  60. package/components/card/card.actions.js +6 -5
  61. package/components/card/card.actions.js.map +1 -1
  62. package/components/card/card.content.js +6 -5
  63. package/components/card/card.content.js.map +1 -1
  64. package/components/card/card.header.js +6 -5
  65. package/components/card/card.header.js.map +1 -1
  66. package/components/card/card.js +6 -5
  67. package/components/card/card.js.map +1 -1
  68. package/components/card/card.media.js +2 -2
  69. package/components/card/card.media.js.map +1 -1
  70. package/components/card/themes/actions.d.ts +1 -1
  71. package/components/card/themes/actions.js.map +1 -1
  72. package/components/card/themes/container.d.ts +1 -1
  73. package/components/card/themes/container.js.map +1 -1
  74. package/components/card/themes/content.d.ts +1 -1
  75. package/components/card/themes/content.js.map +1 -1
  76. package/components/card/themes/header.d.ts +1 -1
  77. package/components/card/themes/header.js.map +1 -1
  78. package/components/checkbox/checkbox-base.d.ts +2 -2
  79. package/components/checkbox/checkbox-base.js +1 -1
  80. package/components/checkbox/checkbox-base.js.map +1 -1
  81. package/components/checkbox/checkbox.js +4 -4
  82. package/components/checkbox/checkbox.js.map +1 -1
  83. package/components/checkbox/switch.js +4 -4
  84. package/components/checkbox/switch.js.map +1 -1
  85. package/components/checkbox/themes/checkbox-themes.d.ts +1 -1
  86. package/components/checkbox/themes/checkbox-themes.js.map +1 -1
  87. package/components/checkbox/themes/switch-themes.d.ts +1 -1
  88. package/components/checkbox/themes/switch-themes.js.map +1 -1
  89. package/components/chip/chip.d.ts +1 -1
  90. package/components/chip/chip.js +7 -6
  91. package/components/chip/chip.js.map +1 -1
  92. package/components/chip/themes/chip.base.css.js +1 -1
  93. package/components/chip/themes/chip.base.css.js.map +1 -1
  94. package/components/chip/themes/themes.d.ts +1 -1
  95. package/components/chip/themes/themes.js.map +1 -1
  96. package/components/combo/combo-header.js +5 -4
  97. package/components/combo/combo-header.js.map +1 -1
  98. package/components/combo/combo-item.js +5 -4
  99. package/components/combo/combo-item.js.map +1 -1
  100. package/components/combo/combo-list.js +1 -1
  101. package/components/combo/combo-list.js.map +1 -1
  102. package/components/combo/combo.d.ts +5 -5
  103. package/components/combo/combo.js +16 -14
  104. package/components/combo/combo.js.map +1 -1
  105. package/components/combo/controllers/data.d.ts +2 -2
  106. package/components/combo/controllers/data.js.map +1 -1
  107. package/components/combo/controllers/navigation.d.ts +3 -3
  108. package/components/combo/controllers/navigation.js +1 -3
  109. package/components/combo/controllers/navigation.js.map +1 -1
  110. package/components/combo/controllers/selection.d.ts +1 -1
  111. package/components/combo/controllers/selection.js.map +1 -1
  112. package/components/combo/operations/filter.d.ts +2 -2
  113. package/components/combo/operations/filter.js +2 -2
  114. package/components/combo/operations/filter.js.map +1 -1
  115. package/components/combo/operations/group.d.ts +1 -1
  116. package/components/combo/operations/group.js.map +1 -1
  117. package/components/combo/themes/combo.base.css.js +1 -1
  118. package/components/combo/themes/combo.base.css.js.map +1 -1
  119. package/components/combo/themes/themes.d.ts +1 -1
  120. package/components/combo/themes/themes.js.map +1 -1
  121. package/components/combo/types.d.ts +2 -2
  122. package/components/combo/types.js.map +1 -1
  123. package/components/common/controllers/root-click.d.ts +1 -1
  124. package/components/common/controllers/root-click.js.map +1 -1
  125. package/components/common/controllers/root-scroll.d.ts +1 -1
  126. package/components/common/controllers/root-scroll.js.map +1 -1
  127. package/components/common/decorators/blazorDeepImport.d.ts +2 -1
  128. package/components/common/decorators/blazorDeepImport.js.map +1 -1
  129. package/components/common/decorators/blazorIndirectRender.d.ts +2 -1
  130. package/components/common/decorators/blazorIndirectRender.js.map +1 -1
  131. package/components/common/decorators/blazorSuppressComponent.d.ts +2 -1
  132. package/components/common/decorators/blazorSuppressComponent.js.map +1 -1
  133. package/components/common/decorators/watch.js +2 -2
  134. package/components/common/decorators/watch.js.map +1 -1
  135. package/components/common/definitions/defineAllComponents.js +4 -4
  136. package/components/common/definitions/defineAllComponents.js.map +1 -1
  137. package/components/common/definitions/defineComponents.d.ts +1 -1
  138. package/components/common/definitions/defineComponents.js.map +1 -1
  139. package/components/common/mixins/alert.d.ts +1 -1
  140. package/components/common/mixins/alert.js.map +1 -1
  141. package/components/common/mixins/combo-box.js.map +1 -1
  142. package/components/common/mixins/constructor.d.ts +2 -2
  143. package/components/common/mixins/constructor.js.map +1 -1
  144. package/components/common/mixins/event-emitter.d.ts +1 -1
  145. package/components/common/mixins/event-emitter.js.map +1 -1
  146. package/components/common/mixins/form-associated-required.d.ts +2 -2
  147. package/components/common/mixins/form-associated-required.js +1 -1
  148. package/components/common/mixins/form-associated-required.js.map +1 -1
  149. package/components/common/mixins/form-associated.d.ts +2 -2
  150. package/components/common/mixins/form-associated.js.map +1 -1
  151. package/components/common/mixins/sizable.d.ts +1 -1
  152. package/components/common/mixins/sizable.js.map +1 -1
  153. package/components/common/util.d.ts +4 -2
  154. package/components/common/util.js +16 -18
  155. package/components/common/util.js.map +1 -1
  156. package/components/common/validators.js +5 -5
  157. package/components/common/validators.js.map +1 -1
  158. package/components/date-time-input/date-time-input.d.ts +5 -5
  159. package/components/date-time-input/date-time-input.js +38 -55
  160. package/components/date-time-input/date-time-input.js.map +1 -1
  161. package/components/date-time-input/date-util.d.ts +1 -1
  162. package/components/date-time-input/date-util.js +40 -32
  163. package/components/date-time-input/date-util.js.map +1 -1
  164. package/components/dialog/dialog.js +4 -4
  165. package/components/dialog/dialog.js.map +1 -1
  166. package/components/dialog/themes/dialog.base.css.js +1 -1
  167. package/components/dialog/themes/dialog.base.css.js.map +1 -1
  168. package/components/dialog/themes/themes.d.ts +1 -1
  169. package/components/dialog/themes/themes.js.map +1 -1
  170. package/components/dropdown/dropdown-group.js +7 -6
  171. package/components/dropdown/dropdown-group.js.map +1 -1
  172. package/components/dropdown/dropdown-header.js +6 -5
  173. package/components/dropdown/dropdown-header.js.map +1 -1
  174. package/components/dropdown/dropdown-item.js +7 -6
  175. package/components/dropdown/dropdown-item.js.map +1 -1
  176. package/components/dropdown/dropdown.d.ts +4 -2
  177. package/components/dropdown/dropdown.js +10 -10
  178. package/components/dropdown/dropdown.js.map +1 -1
  179. package/components/dropdown/themes/container.d.ts +1 -1
  180. package/components/dropdown/themes/container.js.map +1 -1
  181. package/components/dropdown/themes/group.d.ts +1 -1
  182. package/components/dropdown/themes/group.js.map +1 -1
  183. package/components/dropdown/themes/header.d.ts +1 -1
  184. package/components/dropdown/themes/header.js.map +1 -1
  185. package/components/dropdown/themes/item.d.ts +1 -1
  186. package/components/dropdown/themes/item.js.map +1 -1
  187. package/components/expansion-panel/expansion-panel.js +4 -4
  188. package/components/expansion-panel/expansion-panel.js.map +1 -1
  189. package/components/expansion-panel/themes/themes.d.ts +1 -1
  190. package/components/expansion-panel/themes/themes.js.map +1 -1
  191. package/components/form/form.d.ts +1 -1
  192. package/components/form/form.js +2 -2
  193. package/components/form/form.js.map +1 -1
  194. package/components/icon/icon.js +8 -7
  195. package/components/icon/icon.js.map +1 -1
  196. package/components/icon/themes/themes.d.ts +1 -1
  197. package/components/icon/themes/themes.js.map +1 -1
  198. package/components/input/input-base.d.ts +2 -2
  199. package/components/input/input-base.js +5 -5
  200. package/components/input/input-base.js.map +1 -1
  201. package/components/input/input.d.ts +8 -1
  202. package/components/input/input.js +10 -14
  203. package/components/input/input.js.map +1 -1
  204. package/components/input/themes/themes.d.ts +1 -1
  205. package/components/input/themes/themes.js.map +1 -1
  206. package/components/list/list-header.js +6 -5
  207. package/components/list/list-header.js.map +1 -1
  208. package/components/list/list-item.js +6 -5
  209. package/components/list/list-item.js.map +1 -1
  210. package/components/list/list.js +7 -6
  211. package/components/list/list.js.map +1 -1
  212. package/components/list/themes/container.d.ts +1 -1
  213. package/components/list/themes/container.js.map +1 -1
  214. package/components/list/themes/header.d.ts +1 -1
  215. package/components/list/themes/header.js.map +1 -1
  216. package/components/list/themes/item.d.ts +1 -1
  217. package/components/list/themes/item.js.map +1 -1
  218. package/components/mask-input/mask-input-base.d.ts +1 -1
  219. package/components/mask-input/mask-input-base.js +1 -1
  220. package/components/mask-input/mask-input-base.js.map +1 -1
  221. package/components/mask-input/mask-input.d.ts +2 -2
  222. package/components/mask-input/mask-input.js +2 -2
  223. package/components/mask-input/mask-input.js.map +1 -1
  224. package/components/mask-input/mask-parser.d.ts +2 -2
  225. package/components/mask-input/mask-parser.js +44 -34
  226. package/components/mask-input/mask-parser.js.map +1 -1
  227. package/components/nav-drawer/nav-drawer-header-item.js +6 -5
  228. package/components/nav-drawer/nav-drawer-header-item.js.map +1 -1
  229. package/components/nav-drawer/nav-drawer-item.js +8 -7
  230. package/components/nav-drawer/nav-drawer-item.js.map +1 -1
  231. package/components/nav-drawer/nav-drawer.js +7 -6
  232. package/components/nav-drawer/nav-drawer.js.map +1 -1
  233. package/components/nav-drawer/themes/container.d.ts +1 -1
  234. package/components/nav-drawer/themes/container.js.map +1 -1
  235. package/components/nav-drawer/themes/header-item.d.ts +1 -1
  236. package/components/nav-drawer/themes/header-item.js.map +1 -1
  237. package/components/nav-drawer/themes/item.d.ts +1 -1
  238. package/components/nav-drawer/themes/item.js.map +1 -1
  239. package/components/navbar/navbar.js +6 -5
  240. package/components/navbar/navbar.js.map +1 -1
  241. package/components/navbar/themes/themes.d.ts +1 -1
  242. package/components/navbar/themes/themes.js.map +1 -1
  243. package/components/popover/popover.d.ts +2 -4
  244. package/components/popover/popover.js +16 -18
  245. package/components/popover/popover.js.map +1 -1
  246. package/components/popover/themes/light/popover.base.css.js +1 -1
  247. package/components/popover/themes/light/popover.base.css.js.map +1 -1
  248. package/components/progress/base.js +8 -5
  249. package/components/progress/base.js.map +1 -1
  250. package/components/progress/circular-gradient.js +1 -1
  251. package/components/progress/circular-gradient.js.map +1 -1
  252. package/components/progress/circular-progress.js +4 -4
  253. package/components/progress/circular-progress.js.map +1 -1
  254. package/components/progress/linear-progress.js +7 -6
  255. package/components/progress/linear-progress.js.map +1 -1
  256. package/components/progress/themes/circular/themes.d.ts +1 -1
  257. package/components/progress/themes/circular/themes.js.map +1 -1
  258. package/components/progress/themes/linear/themes.d.ts +1 -1
  259. package/components/progress/themes/linear/themes.js.map +1 -1
  260. package/components/radio/radio.d.ts +2 -2
  261. package/components/radio/radio.js +5 -5
  262. package/components/radio/radio.js.map +1 -1
  263. package/components/radio/themes/themes.d.ts +1 -1
  264. package/components/radio/themes/themes.js.map +1 -1
  265. package/components/radio/utils.js.map +1 -1
  266. package/components/radio-group/radio-group.js +7 -6
  267. package/components/radio-group/radio-group.js.map +1 -1
  268. package/components/rating/rating-symbol.js +2 -2
  269. package/components/rating/rating-symbol.js.map +1 -1
  270. package/components/rating/rating.d.ts +3 -1
  271. package/components/rating/rating.js +24 -18
  272. package/components/rating/rating.js.map +1 -1
  273. package/components/rating/themes/themes.d.ts +1 -1
  274. package/components/rating/themes/themes.js.map +1 -1
  275. package/components/ripple/ripple.js +4 -4
  276. package/components/ripple/ripple.js.map +1 -1
  277. package/components/select/select-group.js +5 -4
  278. package/components/select/select-group.js.map +1 -1
  279. package/components/select/select-header.js +4 -3
  280. package/components/select/select-header.js.map +1 -1
  281. package/components/select/select-item.js +4 -3
  282. package/components/select/select-item.js.map +1 -1
  283. package/components/select/select.d.ts +3 -3
  284. package/components/select/select.js +10 -10
  285. package/components/select/select.js.map +1 -1
  286. package/components/select/themes/themes.d.ts +1 -1
  287. package/components/select/themes/themes.js.map +1 -1
  288. package/components/slider/range-slider.d.ts +1 -1
  289. package/components/slider/range-slider.js +15 -13
  290. package/components/slider/range-slider.js.map +1 -1
  291. package/components/slider/slider-base.d.ts +2 -2
  292. package/components/slider/slider-base.js +8 -8
  293. package/components/slider/slider-base.js.map +1 -1
  294. package/components/slider/slider-label.js +1 -1
  295. package/components/slider/slider-label.js.map +1 -1
  296. package/components/slider/slider.d.ts +1 -1
  297. package/components/slider/slider.js +3 -3
  298. package/components/slider/slider.js.map +1 -1
  299. package/components/slider/themes/themes.d.ts +1 -1
  300. package/components/slider/themes/themes.js.map +1 -1
  301. package/components/snackbar/snackbar.d.ts +1 -1
  302. package/components/snackbar/snackbar.js +7 -6
  303. package/components/snackbar/snackbar.js.map +1 -1
  304. package/components/snackbar/themes/themes.d.ts +1 -1
  305. package/components/snackbar/themes/themes.js.map +1 -1
  306. package/components/stepper/step.d.ts +1 -1
  307. package/components/stepper/step.js +10 -11
  308. package/components/stepper/step.js.map +1 -1
  309. package/components/stepper/stepper.d.ts +2 -2
  310. package/components/stepper/stepper.js +21 -12
  311. package/components/stepper/stepper.js.map +1 -1
  312. package/components/stepper/themes/step/themes.d.ts +1 -1
  313. package/components/stepper/themes/step/themes.js.map +1 -1
  314. package/components/tabs/tab-panel.js +2 -2
  315. package/components/tabs/tab-panel.js.map +1 -1
  316. package/components/tabs/tab.js +5 -5
  317. package/components/tabs/tab.js.map +1 -1
  318. package/components/tabs/tabs.d.ts +2 -2
  319. package/components/tabs/tabs.js +14 -10
  320. package/components/tabs/tabs.js.map +1 -1
  321. package/components/tabs/themes/tab-themes.d.ts +1 -1
  322. package/components/tabs/themes/tab-themes.js.map +1 -1
  323. package/components/tabs/themes/tabs-themes.d.ts +1 -1
  324. package/components/tabs/themes/tabs-themes.js.map +1 -1
  325. package/components/textarea/textarea.d.ts +8 -1
  326. package/components/textarea/textarea.js +11 -5
  327. package/components/textarea/textarea.js.map +1 -1
  328. package/components/textarea/themes/themes.d.ts +1 -1
  329. package/components/textarea/themes/themes.js.map +1 -1
  330. package/components/toast/themes/themes.d.ts +1 -1
  331. package/components/toast/themes/themes.js.map +1 -1
  332. package/components/toast/toast.js +7 -6
  333. package/components/toast/toast.js.map +1 -1
  334. package/components/tree/themes/container.d.ts +1 -1
  335. package/components/tree/themes/container.js.map +1 -1
  336. package/components/tree/themes/item.d.ts +1 -1
  337. package/components/tree/themes/item.js.map +1 -1
  338. package/components/tree/tree-item.js +12 -13
  339. package/components/tree/tree-item.js.map +1 -1
  340. package/components/tree/tree.d.ts +2 -2
  341. package/components/tree/tree.js +25 -19
  342. package/components/tree/tree.js.map +1 -1
  343. package/components/tree/tree.navigation.d.ts +3 -3
  344. package/components/tree/tree.navigation.js.map +1 -1
  345. package/components/tree/tree.selection.d.ts +2 -2
  346. package/components/tree/tree.selection.js +12 -10
  347. package/components/tree/tree.selection.js.map +1 -1
  348. package/custom-elements.json +95 -48
  349. package/package.json +1 -1
  350. package/theming/config.js +4 -4
  351. package/theming/config.js.map +1 -1
  352. package/theming/theming-controller.d.ts +1 -1
  353. package/theming/theming-controller.js.map +1 -1
  354. package/theming/theming-decorator.js.map +1 -1
  355. package/theming/types.d.ts +1 -1
  356. package/theming/types.js.map +1 -1
@@ -1287,6 +1287,11 @@
1287
1287
  "name": "handleErrorState",
1288
1288
  "privacy": "protected"
1289
1289
  },
1290
+ {
1291
+ "kind": "method",
1292
+ "name": "handleError",
1293
+ "privacy": "protected"
1294
+ },
1290
1295
  {
1291
1296
  "kind": "field",
1292
1297
  "name": "role",
@@ -4366,10 +4371,7 @@
4366
4371
  "parameters": [
4367
4372
  {
4368
4373
  "name": "activeDate",
4369
- "optional": true,
4370
- "type": {
4371
- "text": "Date"
4372
- }
4374
+ "default": "this.activeDate"
4373
4375
  },
4374
4376
  {
4375
4377
  "name": "renderButtons",
@@ -10291,7 +10293,7 @@
10291
10293
  },
10292
10294
  {
10293
10295
  "kind": "function",
10294
- "name": "format",
10296
+ "name": "formatString",
10295
10297
  "return": {
10296
10298
  "type": {
10297
10299
  "text": "string"
@@ -10307,11 +10309,11 @@
10307
10309
  {
10308
10310
  "name": "params",
10309
10311
  "type": {
10310
- "text": "string[]"
10312
+ "text": "unknown[]"
10311
10313
  }
10312
10314
  }
10313
10315
  ],
10314
- "description": "Builds a string from format specifiers and replacement parameters."
10316
+ "description": "Builds a string from format specifiers and replacement parameters.\nWill coerce non-string parameters to their string representations."
10315
10317
  },
10316
10318
  {
10317
10319
  "kind": "function",
@@ -10533,9 +10535,9 @@
10533
10535
  },
10534
10536
  {
10535
10537
  "kind": "js",
10536
- "name": "format",
10538
+ "name": "formatString",
10537
10539
  "declaration": {
10538
- "name": "format",
10540
+ "name": "formatString",
10539
10541
  "module": "src/components/common/util.ts"
10540
10542
  }
10541
10543
  },
@@ -10647,7 +10649,7 @@
10647
10649
  "type": {
10648
10650
  "text": "Validator<{\n minLength: number;\n value: string;\n}>"
10649
10651
  },
10650
- "default": "{\n key: 'tooShort',\n message: ({ minLength }) =>\n format(validatorMessages.minLength, `${minLength}`),\n isValid: ({ minLength, value }) =>\n minLength ? value.length >= minLength : true,\n}"
10652
+ "default": "{\n key: 'tooShort',\n message: ({ minLength }) =>\n formatString(validatorMessages.minLength, minLength),\n isValid: ({ minLength, value }) =>\n minLength ? value.length >= minLength : true,\n}"
10651
10653
  },
10652
10654
  {
10653
10655
  "kind": "variable",
@@ -10655,7 +10657,7 @@
10655
10657
  "type": {
10656
10658
  "text": "Validator<{\n maxLength: number;\n value: string;\n}>"
10657
10659
  },
10658
- "default": "{\n key: 'tooLong',\n message: ({ maxLength }) =>\n format(validatorMessages.maxLength, `${maxLength}`),\n isValid: ({ maxLength, value }) =>\n maxLength ? value.length <= maxLength : true,\n}"
10660
+ "default": "{\n key: 'tooLong',\n message: ({ maxLength }) =>\n formatString(validatorMessages.maxLength, maxLength),\n isValid: ({ maxLength, value }) =>\n maxLength ? value.length <= maxLength : true,\n}"
10659
10661
  },
10660
10662
  {
10661
10663
  "kind": "variable",
@@ -10671,7 +10673,7 @@
10671
10673
  "type": {
10672
10674
  "text": "Validator<{\n min: number | string;\n value: number | string;\n}>"
10673
10675
  },
10674
- "default": "{\n key: 'rangeUnderflow',\n message: ({ min }) => format(validatorMessages.min, `${min}`),\n isValid: ({ min, value }) =>\n isDefined(min)\n ? isDefined(value) && asNumber(value) >= asNumber(min)\n : true,\n}"
10676
+ "default": "{\n key: 'rangeUnderflow',\n message: ({ min }) => formatString(validatorMessages.min, min),\n isValid: ({ min, value }) =>\n isDefined(min)\n ? isDefined(value) && asNumber(value) >= asNumber(min)\n : true,\n}"
10675
10677
  },
10676
10678
  {
10677
10679
  "kind": "variable",
@@ -10679,7 +10681,7 @@
10679
10681
  "type": {
10680
10682
  "text": "Validator<{\n max: number | string;\n value: number | string;\n}>"
10681
10683
  },
10682
- "default": "{\n key: 'rangeOverflow',\n message: ({ max }) => format(validatorMessages.max, `${max}`),\n isValid: ({ max, value }) =>\n isDefined(max)\n ? isDefined(value) && asNumber(value) <= asNumber(max)\n : true,\n}"
10684
+ "default": "{\n key: 'rangeOverflow',\n message: ({ max }) => formatString(validatorMessages.max, max),\n isValid: ({ max, value }) =>\n isDefined(max)\n ? isDefined(value) && asNumber(value) <= asNumber(max)\n : true,\n}"
10683
10685
  },
10684
10686
  {
10685
10687
  "kind": "variable",
@@ -10870,7 +10872,7 @@
10870
10872
  "text": "Validator[]"
10871
10873
  },
10872
10874
  "privacy": "protected",
10873
- "default": "[\n {\n key: 'valueMissing',\n message: messages.required,\n isValid: () => (this.required ? !!this.value : true),\n },\n {\n key: 'rangeUnderflow',\n message: () => format(messages.min, `${this.min}`),\n isValid: () =>\n this.min\n ? !DateTimeUtil.lessThanMinValue(\n this.value || new Date(),\n this.min,\n this.hasTimeParts,\n this.hasDateParts\n )\n : true,\n },\n {\n key: 'rangeOverflow',\n message: () => format(messages.max, `${this.max}`),\n isValid: () =>\n this.max\n ? !DateTimeUtil.greaterThanMaxValue(\n this.value || new Date(),\n this.max,\n this.hasTimeParts,\n this.hasDateParts\n )\n : true,\n },\n ]",
10875
+ "default": "[\n {\n key: 'valueMissing',\n message: messages.required,\n isValid: () => (this.required ? !!this.value : true),\n },\n {\n key: 'rangeUnderflow',\n message: () => formatString(messages.min, this.min),\n isValid: () =>\n this.min\n ? !DateTimeUtil.lessThanMinValue(\n this.value || new Date(),\n this.min,\n this.hasTimeParts,\n this.hasDateParts\n )\n : true,\n },\n {\n key: 'rangeOverflow',\n message: () => formatString(messages.max, this.max),\n isValid: () =>\n this.max\n ? !DateTimeUtil.greaterThanMaxValue(\n this.value || new Date(),\n this.max,\n this.hasTimeParts,\n this.hasDateParts\n )\n : true,\n },\n ]",
10874
10876
  "inheritedFrom": {
10875
10877
  "name": "FormAssociatedMixin",
10876
10878
  "module": "src/components/common/mixins/form-associated.ts"
@@ -11321,7 +11323,7 @@
11321
11323
  },
11322
11324
  "parameters": [
11323
11325
  {
11324
- "name": "val",
11326
+ "name": "string",
11325
11327
  "type": {
11326
11328
  "text": "string"
11327
11329
  }
@@ -14679,6 +14681,7 @@
14679
14681
  "privacy": "public",
14680
14682
  "default": "'absolute'",
14681
14683
  "description": "Sets the component's positioning strategy.",
14684
+ "deprecated": "since v4.9.0 - Stacking context is now handled through the popover API.",
14682
14685
  "attribute": "position-strategy"
14683
14686
  },
14684
14687
  {
@@ -15375,6 +15378,7 @@
15375
15378
  },
15376
15379
  "default": "'absolute'",
15377
15380
  "description": "Sets the component's positioning strategy.",
15381
+ "deprecated": "since v4.9.0 - Stacking context is now handled through the popover API.",
15378
15382
  "fieldName": "positionStrategy",
15379
15383
  "attribute": "position-strategy"
15380
15384
  },
@@ -17883,6 +17887,18 @@
17883
17887
  "description": "The autocomplete attribute of the control.",
17884
17888
  "attribute": "autocomplete"
17885
17889
  },
17890
+ {
17891
+ "kind": "field",
17892
+ "name": "validateOnly",
17893
+ "type": {
17894
+ "text": "boolean"
17895
+ },
17896
+ "privacy": "public",
17897
+ "default": "false",
17898
+ "description": "Enables validation rules to be evaluated without restricting user input. This applies to the `maxLength` property for\nstring-type inputs or allows spin buttons to exceed the predefined `min/max` limits for number-type inputs.",
17899
+ "attribute": "validate-only",
17900
+ "reflects": true
17901
+ },
17886
17902
  {
17887
17903
  "kind": "method",
17888
17904
  "name": "constraintsChanged",
@@ -18947,6 +18963,16 @@
18947
18963
  "fieldName": "autocomplete",
18948
18964
  "attribute": "autocomplete"
18949
18965
  },
18966
+ {
18967
+ "name": "validate-only",
18968
+ "type": {
18969
+ "text": "boolean"
18970
+ },
18971
+ "default": "false",
18972
+ "description": "Enables validation rules to be evaluated without restricting user input. This applies to the `maxLength` property for\nstring-type inputs or allows spin buttons to exceed the predefined `min/max` limits for number-type inputs.",
18973
+ "fieldName": "validateOnly",
18974
+ "attribute": "validate-only"
18975
+ },
18950
18976
  {
18951
18977
  "name": "required",
18952
18978
  "type": {
@@ -22212,7 +22238,7 @@
22212
22238
  },
22213
22239
  {
22214
22240
  "kind": "method",
22215
- "name": "getMaskLiterals",
22241
+ "name": "parseMaskLiterals",
22216
22242
  "privacy": "protected"
22217
22243
  },
22218
22244
  {
@@ -22328,8 +22354,10 @@
22328
22354
  "privacy": "public",
22329
22355
  "parameters": [
22330
22356
  {
22331
- "name": "masked",
22332
- "default": "''"
22357
+ "name": "maskString",
22358
+ "type": {
22359
+ "text": "string"
22360
+ }
22333
22361
  },
22334
22362
  {
22335
22363
  "name": "value",
@@ -22984,17 +23012,6 @@
22984
23012
  "attribute": "shift",
22985
23013
  "reflects": true
22986
23014
  },
22987
- {
22988
- "kind": "field",
22989
- "name": "strategy",
22990
- "type": {
22991
- "text": "'absolute' | 'fixed'"
22992
- },
22993
- "privacy": "public",
22994
- "default": "'absolute'",
22995
- "description": "The type of CSS position property to use.",
22996
- "attribute": "strategy"
22997
- },
22998
23015
  {
22999
23016
  "kind": "method",
23000
23017
  "name": "anchorChange",
@@ -23025,6 +23042,16 @@
23025
23042
  }
23026
23043
  }
23027
23044
  },
23045
+ {
23046
+ "kind": "method",
23047
+ "name": "_showPopover",
23048
+ "privacy": "private"
23049
+ },
23050
+ {
23051
+ "kind": "method",
23052
+ "name": "_hidePopover",
23053
+ "privacy": "private"
23054
+ },
23028
23055
  {
23029
23056
  "kind": "method",
23030
23057
  "name": "_createMiddleware",
@@ -23113,15 +23140,6 @@
23113
23140
  "default": "false",
23114
23141
  "description": "When enabled this tries to shift the floating element along the main axis\nkeeping it in view, preventing overflow while maintaining the desired placement.",
23115
23142
  "fieldName": "shift"
23116
- },
23117
- {
23118
- "name": "strategy",
23119
- "type": {
23120
- "text": "'absolute' | 'fixed'"
23121
- },
23122
- "default": "'absolute'",
23123
- "description": "The type of CSS position property to use.",
23124
- "fieldName": "strategy"
23125
23143
  }
23126
23144
  ],
23127
23145
  "superclass": {
@@ -26062,6 +26080,16 @@
26062
26080
  "name": "handleSlotChange",
26063
26081
  "privacy": "protected"
26064
26082
  },
26083
+ {
26084
+ "kind": "method",
26085
+ "name": "handleHoverEnabled",
26086
+ "privacy": "protected"
26087
+ },
26088
+ {
26089
+ "kind": "method",
26090
+ "name": "handleHoverDisabled",
26091
+ "privacy": "protected"
26092
+ },
26065
26093
  {
26066
26094
  "kind": "method",
26067
26095
  "name": "calcNewValue",
@@ -31433,11 +31461,6 @@
31433
31461
  "name": "register",
31434
31462
  "privacy": "public",
31435
31463
  "static": true
31436
- },
31437
- {
31438
- "kind": "method",
31439
- "name": "createRenderRoot",
31440
- "privacy": "protected"
31441
31464
  }
31442
31465
  ],
31443
31466
  "superclass": {
@@ -35993,6 +36016,18 @@
35993
36016
  "description": "Indicates how the control should wrap the value for form submission.\nRefer to [this page on MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#attributes)\nfor explanation of the available values.",
35994
36017
  "attribute": "wrap"
35995
36018
  },
36019
+ {
36020
+ "kind": "field",
36021
+ "name": "validateOnly",
36022
+ "type": {
36023
+ "text": "boolean"
36024
+ },
36025
+ "privacy": "public",
36026
+ "default": "false",
36027
+ "description": "Enables validation rules to be evaluated without restricting user input. This applies to the `maxLength` property\nwhen it is defined.",
36028
+ "attribute": "validate-only",
36029
+ "reflects": true
36030
+ },
35996
36031
  {
35997
36032
  "kind": "method",
35998
36033
  "name": "select",
@@ -36862,6 +36897,16 @@
36862
36897
  "fieldName": "wrap",
36863
36898
  "attribute": "wrap"
36864
36899
  },
36900
+ {
36901
+ "name": "validate-only",
36902
+ "type": {
36903
+ "text": "boolean"
36904
+ },
36905
+ "default": "false",
36906
+ "description": "Enables validation rules to be evaluated without restricting user input. This applies to the `maxLength` property\nwhen it is defined.",
36907
+ "fieldName": "validateOnly",
36908
+ "attribute": "validate-only"
36909
+ },
36865
36910
  {
36866
36911
  "name": "required",
36867
36912
  "type": {
@@ -39753,7 +39798,9 @@
39753
39798
  "parameters": [
39754
39799
  {
39755
39800
  "name": "start",
39756
- "default": "0"
39801
+ "type": {
39802
+ "text": "number"
39803
+ }
39757
39804
  },
39758
39805
  {
39759
39806
  "name": "stop",
@@ -42896,7 +42943,7 @@
42896
42943
  "privacy": "protected",
42897
42944
  "parameters": [
42898
42945
  {
42899
- "name": "str",
42946
+ "name": "string",
42900
42947
  "type": {
42901
42948
  "text": "string"
42902
42949
  }
@@ -43491,7 +43538,7 @@
43491
43538
  {
43492
43539
  "name": "_constructor",
43493
43540
  "type": {
43494
- "text": "Function"
43541
+ "text": "Constructor | AbstractConstructor"
43495
43542
  }
43496
43543
  }
43497
43544
  ],
@@ -43546,7 +43593,7 @@
43546
43593
  {
43547
43594
  "name": "_constructor",
43548
43595
  "type": {
43549
- "text": "Function"
43596
+ "text": "Constructor | AbstractConstructor"
43550
43597
  }
43551
43598
  }
43552
43599
  ],
@@ -43601,7 +43648,7 @@
43601
43648
  {
43602
43649
  "name": "_constructor",
43603
43650
  "type": {
43604
- "text": "Function"
43651
+ "text": "Constructor | AbstractConstructor"
43605
43652
  }
43606
43653
  }
43607
43654
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "igniteui-webcomponents",
3
- "version": "4.8.2",
3
+ "version": "4.9.0",
4
4
  "description": "Ignite UI for Web Components is a complete library of UI components, giving you the ability to build modern web applications using encapsulation and the concept of reusable components in a dependency-free approach.",
5
5
  "author": "Infragistics",
6
6
  "license": "SEE LICENSE IN LICENSE",
package/theming/config.js CHANGED
@@ -1,6 +1,6 @@
1
- import { CHANGE_THEME_EVENT } from './theming-event.js';
2
- import { getAllCSSVariables } from './utils.js';
3
1
  import { isDefined } from '../components/common/util.js';
2
+ import { CHANGE_THEME_EVENT, } from './theming-event.js';
3
+ import { getAllCSSVariables } from './utils.js';
4
4
  let theme;
5
5
  let themeVariant;
6
6
  function dispatchThemingEvent(detail) {
@@ -18,11 +18,11 @@ export const getTheme = () => {
18
18
  if (!theme || !themeVariant) {
19
19
  const [_theme, _variant] = Object.entries(getAllCSSVariables()).filter(([v]) => v === 'igTheme' || v === 'igThemeVariant') || [];
20
20
  theme =
21
- _theme && _theme[1] && isOfTypeTheme(_theme[1])
21
+ _theme?.[1] && isOfTypeTheme(_theme[1])
22
22
  ? _theme[1]
23
23
  : 'bootstrap';
24
24
  themeVariant =
25
- _variant && _variant[1] && isOfTypeThemeVariant(_variant[1])
25
+ _variant?.[1] && isOfTypeThemeVariant(_variant[1])
26
26
  ? _variant[1]
27
27
  : 'light';
28
28
  }
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/theming/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAA0B,MAAM,oBAAoB,CAAC;AAEhF,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAEzD,IAAI,KAAY,CAAC;AACjB,IAAI,YAA0B,CAAC;AAK/B,SAAS,oBAAoB,CAAC,MAA8B;IAC1D,IAAI,SAAS,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE,CAAC;QACxC,UAAU,CAAC,aAAa,CAAC,IAAI,WAAW,CAAC,kBAAkB,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC;IAC5E,CAAC;AACH,CAAC;AAED,SAAS,aAAa,CAAC,KAAa;IAClC,OAAO,CAAC,WAAW,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AACvE,CAAC;AAED,SAAS,oBAAoB,CAAC,OAAe;IAC3C,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;AAC7C,CAAC;AAED,MAAM,CAAC,MAAM,QAAQ,GAGjB,GAAG,EAAE;IACP,IAAI,CAAC,KAAK,IAAI,CAAC,YAAY,EAAE,CAAC;QAC5B,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,GACtB,MAAM,CAAC,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAAC,MAAM,CACzC,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,SAAS,IAAI,CAAC,KAAK,gBAAgB,CACnD,IAAI,EAAE,CAAC;QAEV,KAAK;YACH,MAAM,IAAI,MAAM,CAAC,CAAC,CAAC,IAAI,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;gBAC7C,CAAC,CAAE,MAAM,CAAC,CAAC,CAAW;gBACtB,CAAC,CAAC,WAAW,CAAC;QAElB,YAAY;YACV,QAAQ,IAAI,QAAQ,CAAC,CAAC,CAAC,IAAI,oBAAoB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;gBAC1D,CAAC,CAAE,QAAQ,CAAC,CAAC,CAAkB;gBAC/B,CAAC,CAAC,OAAO,CAAC;IAChB,CAAC;IAED,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC;AACjC,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,KAAY,EAAE,OAAqB,EAAE,EAAE;IAC9D,KAAK,GAAG,KAAK,CAAC;IACd,YAAY,GAAG,OAAO,CAAC;AACzB,CAAC,CAAC;AAYF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAQ,EAAE,IAAkB,OAAO,EAAE,EAAE;IACpE,IAAI,aAAa,CAAC,CAAC,CAAC,IAAI,oBAAoB,CAAC,CAAC,CAAC,EAAE,CAAC;QAChD,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACjB,CAAC;IAED,oBAAoB,CAAC,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC,CAAC;AAChD,CAAC,CAAC","sourcesContent":["import { CHANGE_THEME_EVENT, ChangeThemeEventDetail } from './theming-event.js';\nimport type { Theme, ThemeVariant } from './types.js';\nimport { getAllCSSVariables } from './utils.js';\nimport { isDefined } from '../components/common/util.js';\n\nlet theme: Theme;\nlet themeVariant: ThemeVariant;\n\n/**\n * Dispatch an \"igc-change-theme\" event to `window` with the given detail.\n */\nfunction dispatchThemingEvent(detail: ChangeThemeEventDetail) {\n if (isDefined(globalThis.dispatchEvent)) {\n globalThis.dispatchEvent(new CustomEvent(CHANGE_THEME_EVENT, { detail }));\n }\n}\n\nfunction isOfTypeTheme(theme: string): theme is Theme {\n return ['bootstrap', 'material', 'indigo', 'fluent'].includes(theme);\n}\n\nfunction isOfTypeThemeVariant(variant: string): variant is ThemeVariant {\n return ['light', 'dark'].includes(variant);\n}\n\nexport const getTheme: () => {\n theme: Theme;\n themeVariant: ThemeVariant;\n} = () => {\n if (!theme || !themeVariant) {\n const [_theme, _variant] =\n Object.entries(getAllCSSVariables()).filter(\n ([v]) => v === 'igTheme' || v === 'igThemeVariant'\n ) || [];\n\n theme =\n _theme && _theme[1] && isOfTypeTheme(_theme[1])\n ? (_theme[1] as Theme)\n : 'bootstrap';\n\n themeVariant =\n _variant && _variant[1] && isOfTypeThemeVariant(_variant[1])\n ? (_variant[1] as ThemeVariant)\n : 'light';\n }\n\n return { theme, themeVariant };\n};\n\nexport const setTheme = (value: Theme, variant: ThemeVariant) => {\n theme = value;\n themeVariant = variant;\n};\n\n/**\n * Allows the global configuration of the active theme.\n *\n * Usage:\n * ```ts\n * import { configureTheme } from 'igniteui-webcomponents';\n *\n * configureTheme('material', 'light');\n * ```\n */\nexport const configureTheme = (t: Theme, v: ThemeVariant = 'light') => {\n if (isOfTypeTheme(t) && isOfTypeThemeVariant(v)) {\n setTheme(t, v);\n }\n\n dispatchThemingEvent({ theme, themeVariant });\n};\n"]}
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/theming/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EACL,kBAAkB,GAEnB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEhD,IAAI,KAAY,CAAC;AACjB,IAAI,YAA0B,CAAC;AAK/B,SAAS,oBAAoB,CAAC,MAA8B;IAC1D,IAAI,SAAS,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE,CAAC;QACxC,UAAU,CAAC,aAAa,CAAC,IAAI,WAAW,CAAC,kBAAkB,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC;IAC5E,CAAC;AACH,CAAC;AAED,SAAS,aAAa,CAAC,KAAa;IAClC,OAAO,CAAC,WAAW,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;AACvE,CAAC;AAED,SAAS,oBAAoB,CAAC,OAAe;IAC3C,OAAO,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;AAC7C,CAAC;AAED,MAAM,CAAC,MAAM,QAAQ,GAGjB,GAAG,EAAE;IACP,IAAI,CAAC,KAAK,IAAI,CAAC,YAAY,EAAE,CAAC;QAC5B,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,GACtB,MAAM,CAAC,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAAC,MAAM,CACzC,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,SAAS,IAAI,CAAC,KAAK,gBAAgB,CACnD,IAAI,EAAE,CAAC;QAEV,KAAK;YACH,MAAM,EAAE,CAAC,CAAC,CAAC,IAAI,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;gBACrC,CAAC,CAAE,MAAM,CAAC,CAAC,CAAW;gBACtB,CAAC,CAAC,WAAW,CAAC;QAElB,YAAY;YACV,QAAQ,EAAE,CAAC,CAAC,CAAC,IAAI,oBAAoB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;gBAChD,CAAC,CAAE,QAAQ,CAAC,CAAC,CAAkB;gBAC/B,CAAC,CAAC,OAAO,CAAC;IAChB,CAAC;IAED,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC;AACjC,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,KAAY,EAAE,OAAqB,EAAE,EAAE;IAC9D,KAAK,GAAG,KAAK,CAAC;IACd,YAAY,GAAG,OAAO,CAAC;AACzB,CAAC,CAAC;AAYF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAQ,EAAE,IAAkB,OAAO,EAAE,EAAE;IACpE,IAAI,aAAa,CAAC,CAAC,CAAC,IAAI,oBAAoB,CAAC,CAAC,CAAC,EAAE,CAAC;QAChD,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACjB,CAAC;IAED,oBAAoB,CAAC,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC,CAAC;AAChD,CAAC,CAAC","sourcesContent":["import { isDefined } from '../components/common/util.js';\nimport {\n CHANGE_THEME_EVENT,\n type ChangeThemeEventDetail,\n} from './theming-event.js';\nimport type { Theme, ThemeVariant } from './types.js';\nimport { getAllCSSVariables } from './utils.js';\n\nlet theme: Theme;\nlet themeVariant: ThemeVariant;\n\n/**\n * Dispatch an \"igc-change-theme\" event to `window` with the given detail.\n */\nfunction dispatchThemingEvent(detail: ChangeThemeEventDetail) {\n if (isDefined(globalThis.dispatchEvent)) {\n globalThis.dispatchEvent(new CustomEvent(CHANGE_THEME_EVENT, { detail }));\n }\n}\n\nfunction isOfTypeTheme(theme: string): theme is Theme {\n return ['bootstrap', 'material', 'indigo', 'fluent'].includes(theme);\n}\n\nfunction isOfTypeThemeVariant(variant: string): variant is ThemeVariant {\n return ['light', 'dark'].includes(variant);\n}\n\nexport const getTheme: () => {\n theme: Theme;\n themeVariant: ThemeVariant;\n} = () => {\n if (!theme || !themeVariant) {\n const [_theme, _variant] =\n Object.entries(getAllCSSVariables()).filter(\n ([v]) => v === 'igTheme' || v === 'igThemeVariant'\n ) || [];\n\n theme =\n _theme?.[1] && isOfTypeTheme(_theme[1])\n ? (_theme[1] as Theme)\n : 'bootstrap';\n\n themeVariant =\n _variant?.[1] && isOfTypeThemeVariant(_variant[1])\n ? (_variant[1] as ThemeVariant)\n : 'light';\n }\n\n return { theme, themeVariant };\n};\n\nexport const setTheme = (value: Theme, variant: ThemeVariant) => {\n theme = value;\n themeVariant = variant;\n};\n\n/**\n * Allows the global configuration of the active theme.\n *\n * Usage:\n * ```ts\n * import { configureTheme } from 'igniteui-webcomponents';\n *\n * configureTheme('material', 'light');\n * ```\n */\nexport const configureTheme = (t: Theme, v: ThemeVariant = 'light') => {\n if (isOfTypeTheme(t) && isOfTypeThemeVariant(v)) {\n setTheme(t, v);\n }\n\n dispatchThemingEvent({ theme, themeVariant });\n};\n"]}
@@ -1,4 +1,4 @@
1
- import { ReactiveController, ReactiveControllerHost, ReactiveElement } from 'lit';
1
+ import { type ReactiveController, type ReactiveControllerHost, type ReactiveElement } from 'lit';
2
2
  import type { Theme, ThemeController, ThemeVariant, Themes } from './types.js';
3
3
  declare class ThemingController implements ReactiveController, ThemeController {
4
4
  private themes;
@@ -1 +1 @@
1
- {"version":3,"file":"theming-controller.js","sourceRoot":"","sources":["../../src/theming/theming-controller.ts"],"names":[],"mappings":"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","sourcesContent":["import {\n LitElement,\n ReactiveController,\n ReactiveControllerHost,\n ReactiveElement,\n adoptStyles,\n css,\n} from 'lit';\n\nimport { getTheme } from './config.js';\nimport { CHANGE_THEME_EVENT } from './theming-event.js';\nimport type { Theme, ThemeController, ThemeVariant, Themes } from './types.js';\n\nclass ThemeEventListeners {\n private readonly listeners = new Set<Function>();\n\n public add(listener: Function) {\n globalThis.addEventListener(CHANGE_THEME_EVENT, this);\n this.listeners.add(listener);\n }\n\n public remove(listener: Function) {\n this.listeners.delete(listener);\n if (this.listeners.size < 1) {\n globalThis.removeEventListener(CHANGE_THEME_EVENT, this);\n }\n }\n\n public handleEvent = () => {\n for (const listener of this.listeners) {\n listener();\n }\n };\n}\n\nconst _themingEventListeners = new ThemeEventListeners();\n\nclass ThemingController implements ReactiveController, ThemeController {\n private themes: Themes;\n private host: ReactiveControllerHost & ReactiveElement;\n public theme!: Theme;\n public themeVariant!: ThemeVariant;\n\n constructor(host: ReactiveControllerHost & ReactiveElement, themes: Themes) {\n this.host = host;\n this.themes = themes;\n }\n\n public hostConnected() {\n this.adoptStyles();\n _themingEventListeners.add(this.themeChanged);\n }\n\n public hostDisconnected() {\n _themingEventListeners.remove(this.themeChanged);\n }\n\n protected adoptStyles() {\n const { theme, themeVariant } = getTheme();\n this.theme = theme;\n this.themeVariant = themeVariant;\n\n const ctor = this.host.constructor as typeof LitElement;\n const stylesheets = Object.entries(this.themes[themeVariant]);\n\n const [_unused, sharedStyles] =\n stylesheets.find(([name]) => name === 'shared') ?? [];\n const [_, themeStyles] =\n stylesheets.find(([name]) => name === this.theme) ?? [];\n\n adoptStyles(this.host.shadowRoot as ShadowRoot, [\n ...ctor.elementStyles,\n sharedStyles ?? css``,\n themeStyles ?? css``,\n ]);\n }\n\n private themeChanged = () => {\n this.adoptStyles();\n this.host.requestUpdate();\n };\n}\n\nconst _updateWhenThemeChanges = (\n host: ReactiveControllerHost & ReactiveElement,\n themes: Themes,\n exposeTheme?: boolean\n) => {\n const controller = new ThemingController(host, themes);\n host.addController(controller);\n\n if (exposeTheme) {\n Object.defineProperty(host, themeSymbol, {\n get() {\n return controller.theme;\n },\n configurable: true,\n enumerable: false,\n });\n }\n\n return controller;\n};\n\nexport const updateWhenThemeChanges: typeof _updateWhenThemeChanges & {\n _THEMING_CONTROLLER_FN_?: never;\n} = _updateWhenThemeChanges;\n\nexport const themeSymbol = Symbol('Current active theme');\n"]}
1
+ {"version":3,"file":"theming-controller.js","sourceRoot":"","sources":["../../src/theming/theming-controller.ts"],"names":[],"mappings":"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","sourcesContent":["import {\n type LitElement,\n type ReactiveController,\n type ReactiveControllerHost,\n type ReactiveElement,\n adoptStyles,\n css,\n} from 'lit';\n\nimport { getTheme } from './config.js';\nimport { CHANGE_THEME_EVENT } from './theming-event.js';\nimport type { Theme, ThemeController, ThemeVariant, Themes } from './types.js';\n\ntype ThemeCallback = () => void;\n\nclass ThemeEventListeners {\n private readonly listeners = new Set<ThemeCallback>();\n\n public add(listener: ThemeCallback) {\n globalThis.addEventListener(CHANGE_THEME_EVENT, this);\n this.listeners.add(listener);\n }\n\n public remove(listener: ThemeCallback) {\n this.listeners.delete(listener);\n if (this.listeners.size < 1) {\n globalThis.removeEventListener(CHANGE_THEME_EVENT, this);\n }\n }\n\n public handleEvent = () => {\n for (const listener of this.listeners) {\n listener();\n }\n };\n}\n\nconst _themingEventListeners = new ThemeEventListeners();\n\nclass ThemingController implements ReactiveController, ThemeController {\n private themes: Themes;\n private host: ReactiveControllerHost & ReactiveElement;\n public theme!: Theme;\n public themeVariant!: ThemeVariant;\n\n constructor(host: ReactiveControllerHost & ReactiveElement, themes: Themes) {\n this.host = host;\n this.themes = themes;\n }\n\n public hostConnected() {\n this.adoptStyles();\n _themingEventListeners.add(this.themeChanged);\n }\n\n public hostDisconnected() {\n _themingEventListeners.remove(this.themeChanged);\n }\n\n protected adoptStyles() {\n const { theme, themeVariant } = getTheme();\n this.theme = theme;\n this.themeVariant = themeVariant;\n\n const ctor = this.host.constructor as typeof LitElement;\n const stylesheets = Object.entries(this.themes[themeVariant]);\n\n const [_unused, sharedStyles] =\n stylesheets.find(([name]) => name === 'shared') ?? [];\n const [_, themeStyles] =\n stylesheets.find(([name]) => name === this.theme) ?? [];\n\n adoptStyles(this.host.shadowRoot as ShadowRoot, [\n ...ctor.elementStyles,\n sharedStyles ?? css``,\n themeStyles ?? css``,\n ]);\n }\n\n private themeChanged: ThemeCallback = () => {\n this.adoptStyles();\n this.host.requestUpdate();\n };\n}\n\nconst _updateWhenThemeChanges = (\n host: ReactiveControllerHost & ReactiveElement,\n themes: Themes,\n exposeTheme?: boolean\n) => {\n const controller = new ThemingController(host, themes);\n host.addController(controller);\n\n if (exposeTheme) {\n Object.defineProperty(host, themeSymbol, {\n get() {\n return controller.theme;\n },\n configurable: true,\n enumerable: false,\n });\n }\n\n return controller;\n};\n\nexport const updateWhenThemeChanges: typeof _updateWhenThemeChanges & {\n _THEMING_CONTROLLER_FN_?: never;\n} = _updateWhenThemeChanges;\n\nexport const themeSymbol = Symbol('Current active theme');\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"theming-decorator.js","sourceRoot":"","sources":["../../src/theming/theming-decorator.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAyBjE,MAAM,UAAU,MAAM,CAAC,MAAc,EAAE,WAAW,GAAG,KAAK;IACxD,OAAO,CAAC,KAAU,EAAE,EAAE;QACpB,KAAK,CAAC,cAAc,CAAC,CAAC,QAAyB,EAAE,EAAE;YACjD,sBAAsB,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC;QACxD,CAAC,CAAC,CAAC;QAEH,OAAO,KAAK,CAAC;IACf,CAAC,CAAC;AACJ,CAAC;AAED,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC","sourcesContent":["import { ReactiveElement } from 'lit';\n\nimport { updateWhenThemeChanges } from './theming-controller.js';\nimport type { Themes } from './types.js';\n\n/**\n * Class decorator to enable multiple theme support for a component.\n * The component will re-render on theme changes.\n *\n * See also {@link updateWhenThemeChanges} for the same functionality\n * without the use of this decorator.\n *\n * Usage:\n * ```ts\n * import { LitElement, html } from 'lit';\n * import { themes } from 'igniteui-webcomponents/themes';\n * import { styles } from './themes/my-element.base.css';\n * import { styles as material } from './themes/my-element.material.css';\n * import { styles as bootstrap } from './themes/my-element.bootstrap.css';\n * import { styles as indigo } from './themes/my-element.indigo.css';\n *\n * @themes({ material, bootstrap, indigo })\n * class MyElement extends LitElement {\n * public static styles = styles;\n * }\n * ```\n */\nexport function themes(themes: Themes, exposeTheme = false) {\n return (clazz: any) => {\n clazz.addInitializer((instance: ReactiveElement) => {\n updateWhenThemeChanges(instance, themes, exposeTheme);\n });\n\n return clazz;\n };\n}\n\nexport { themeSymbol } from './theming-controller.js';\n"]}
1
+ {"version":3,"file":"theming-decorator.js","sourceRoot":"","sources":["../../src/theming/theming-decorator.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAyBjE,MAAM,UAAU,MAAM,CAAC,MAAc,EAAE,WAAW,GAAG,KAAK;IACxD,OAAO,CAAC,KAAU,EAAE,EAAE;QACpB,KAAK,CAAC,cAAc,CAAC,CAAC,QAAyB,EAAE,EAAE;YACjD,sBAAsB,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC;QACxD,CAAC,CAAC,CAAC;QAEH,OAAO,KAAK,CAAC;IACf,CAAC,CAAC;AACJ,CAAC;AAED,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC","sourcesContent":["import type { ReactiveElement } from 'lit';\n\nimport { updateWhenThemeChanges } from './theming-controller.js';\nimport type { Themes } from './types.js';\n\n/**\n * Class decorator to enable multiple theme support for a component.\n * The component will re-render on theme changes.\n *\n * See also {@link updateWhenThemeChanges} for the same functionality\n * without the use of this decorator.\n *\n * Usage:\n * ```ts\n * import { LitElement, html } from 'lit';\n * import { themes } from 'igniteui-webcomponents/themes';\n * import { styles } from './themes/my-element.base.css';\n * import { styles as material } from './themes/my-element.material.css';\n * import { styles as bootstrap } from './themes/my-element.bootstrap.css';\n * import { styles as indigo } from './themes/my-element.indigo.css';\n *\n * @themes({ material, bootstrap, indigo })\n * class MyElement extends LitElement {\n * public static styles = styles;\n * }\n * ```\n */\nexport function themes(themes: Themes, exposeTheme = false) {\n return (clazz: any) => {\n clazz.addInitializer((instance: ReactiveElement) => {\n updateWhenThemeChanges(instance, themes, exposeTheme);\n });\n\n return clazz;\n };\n}\n\nexport { themeSymbol } from './theming-controller.js';\n"]}
@@ -1,4 +1,4 @@
1
- import { CSSResult } from 'lit';
1
+ import type { CSSResult } from 'lit';
2
2
  export type Theme = 'material' | 'bootstrap' | 'indigo' | 'fluent';
3
3
  export type ThemeVariant = 'light' | 'dark';
4
4
  export type Themes = {
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/theming/types.ts"],"names":[],"mappings":"","sourcesContent":["import { CSSResult } from 'lit';\n\nexport type Theme = 'material' | 'bootstrap' | 'indigo' | 'fluent';\nexport type ThemeVariant = 'light' | 'dark';\n\nexport type Themes = {\n light: {\n [K in Theme]?: CSSResult;\n };\n dark: {\n [K in Theme]?: CSSResult;\n };\n};\n\n/**\n * A controller responsible for adopting various component themes;\n * See also {@link updateWhenThemeChanges}.\n */\nexport interface ThemeController {\n /**\n * The name of the currently adopted theme. See {@link Theme}.\n */\n theme: Theme;\n}\n"]}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/theming/types.ts"],"names":[],"mappings":"","sourcesContent":["import type { CSSResult } from 'lit';\n\nexport type Theme = 'material' | 'bootstrap' | 'indigo' | 'fluent';\nexport type ThemeVariant = 'light' | 'dark';\n\nexport type Themes = {\n light: {\n [K in Theme]?: CSSResult;\n };\n dark: {\n [K in Theme]?: CSSResult;\n };\n};\n\n/**\n * A controller responsible for adopting various component themes;\n * See also {@link updateWhenThemeChanges}.\n */\nexport interface ThemeController {\n /**\n * The name of the currently adopted theme. See {@link Theme}.\n */\n theme: Theme;\n}\n"]}