@koobiq/components 16.0.0-beta.1 → 16.0.0-beta.11

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 (479) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +2 -2
  3. package/autocomplete/_autocomplete-theme.scss +3 -10
  4. package/autocomplete/autocomplete-origin.directive.d.ts +1 -1
  5. package/autocomplete/autocomplete-trigger.directive.d.ts +6 -16
  6. package/autocomplete/autocomplete.component.d.ts +1 -1
  7. package/autocomplete/autocomplete.scss +0 -8
  8. package/badge/README.md +0 -0
  9. package/{core/styles/theming/_badges-theme.scss → badge/_badge-theme.scss} +14 -13
  10. package/badge/badge.component.d.ts +44 -0
  11. package/badge/badge.component.scss +83 -0
  12. package/badge/badge.module.d.ts +10 -0
  13. package/badge/index.d.ts +1 -0
  14. package/badge/public-api.d.ts +2 -0
  15. package/button/_button-base.scss +1 -1
  16. package/button/_button-theme.scss +35 -27
  17. package/button/button.scss +5 -2
  18. package/button-toggle/_button-toggle-theme.scss +26 -45
  19. package/button-toggle/button-toggle.component.d.ts +2 -2
  20. package/button-toggle/button-toggle.scss +40 -87
  21. package/card/_card-theme.scss +1 -1
  22. package/checkbox/README.md +1 -1
  23. package/checkbox/_checkbox-theme.scss +10 -2
  24. package/checkbox/checkbox.d.ts +2 -2
  25. package/code-block/README.md +14 -14
  26. package/code-block/_code-block-theme.scss +49 -10
  27. package/code-block/actionbar.component.scss +34 -6
  28. package/code-block/code-block.component.d.ts +2 -2
  29. package/code-block/code-block.scss +101 -27
  30. package/core/animation/index.d.ts +1 -1
  31. package/core/animation/select-animations.d.ts +1 -1
  32. package/core/common-behaviors/color.d.ts +1 -1
  33. package/core/common-behaviors/common-module.d.ts +1 -1
  34. package/core/formatters/index.d.ts +1 -1
  35. package/core/formatters/number/formatter.d.ts +56 -1
  36. package/core/forms/_forms-theme.scss +4 -4
  37. package/core/forms/_forms.scss +1 -3
  38. package/core/forms/forms.directive.d.ts +2 -2
  39. package/core/locales/en-US.d.ts +19 -1
  40. package/core/locales/es-LA.d.ts +27 -0
  41. package/core/locales/fa-IR.d.ts +28 -0
  42. package/core/locales/locale-service.d.ts +148 -3
  43. package/core/locales/pt-BR.d.ts +27 -0
  44. package/core/locales/ru-RU.d.ts +20 -1
  45. package/core/locales/zh-CN.d.ts +26 -0
  46. package/core/option/_optgroup-theme.scss +1 -1
  47. package/core/option/_option-action-theme.scss +1 -1
  48. package/core/option/_option-theme.scss +37 -14
  49. package/core/option/action.d.ts +1 -1
  50. package/core/option/action.scss +4 -5
  51. package/core/option/optgroup.d.ts +1 -1
  52. package/core/option/option.d.ts +37 -8
  53. package/core/option/option.scss +5 -50
  54. package/core/overlay/overlay-position-map.d.ts +7 -1
  55. package/core/pop-up/constants.d.ts +2 -1
  56. package/core/public-api.d.ts +1 -0
  57. package/core/select/constants.d.ts +2 -2
  58. package/core/services/theme.service.d.ts +23 -0
  59. package/core/styles/_koobiq-theme.scss +12 -1
  60. package/core/styles/_tokens.kbq.import.scss +4 -4
  61. package/core/styles/_tokens.scss +4 -4
  62. package/core/styles/_variables.scss +1 -0
  63. package/core/styles/common/_animation.scss +10 -6
  64. package/core/styles/common/_list.scss +123 -0
  65. package/core/styles/common/_overlay.scss +1 -1
  66. package/core/styles/common/_select.scss +232 -0
  67. package/core/styles/theming/_components-theming.scss +716 -102
  68. package/core/styles/theming/_theming.scss +201 -30
  69. package/core/styles/typography/_typography.scss +176 -5
  70. package/datepicker/_datepicker-theme.scss +43 -57
  71. package/datepicker/calendar-body.component.d.ts +1 -1
  72. package/datepicker/calendar-body.scss +11 -26
  73. package/datepicker/calendar-header.component.d.ts +9 -3
  74. package/datepicker/calendar-header.scss +7 -31
  75. package/datepicker/calendar.component.d.ts +4 -5
  76. package/datepicker/calendar.scss +20 -25
  77. package/datepicker/datepicker-animations.d.ts +2 -2
  78. package/datepicker/datepicker-content.scss +17 -10
  79. package/datepicker/datepicker-input.directive.d.ts +4 -4
  80. package/datepicker/datepicker-input.scss +1 -1
  81. package/datepicker/datepicker-toggle.component.d.ts +3 -3
  82. package/datepicker/datepicker.component.d.ts +2 -2
  83. package/datepicker/month-view.component.d.ts +5 -6
  84. package/dl/_dl-theme.scss +2 -56
  85. package/dl/dl.component.d.ts +1 -2
  86. package/dl/dl.scss +10 -47
  87. package/dropdown/_dropdown-theme.scss +29 -37
  88. package/dropdown/dropdown-animations.d.ts +1 -1
  89. package/dropdown/dropdown-content.directive.d.ts +1 -1
  90. package/dropdown/dropdown-item.component.d.ts +1 -1
  91. package/dropdown/dropdown-item.scss +18 -40
  92. package/dropdown/dropdown-trigger.directive.d.ts +2 -2
  93. package/dropdown/dropdown.component.d.ts +1 -1
  94. package/dropdown/dropdown.scss +16 -39
  95. package/dropdown/dropdown.types.d.ts +1 -1
  96. package/esm2022/alert/alert.component.mjs +3 -3
  97. package/esm2022/autocomplete/autocomplete-origin.directive.mjs +4 -4
  98. package/esm2022/autocomplete/autocomplete-trigger.directive.mjs +34 -31
  99. package/esm2022/autocomplete/autocomplete.component.mjs +4 -4
  100. package/esm2022/badge/badge.component.mjs +122 -0
  101. package/esm2022/badge/badge.module.mjs +40 -0
  102. package/esm2022/badge/index.mjs +2 -0
  103. package/esm2022/badge/koobiq-components-badge.mjs +5 -0
  104. package/esm2022/badge/public-api.mjs +3 -0
  105. package/esm2022/button/button.component.mjs +4 -3
  106. package/esm2022/button-toggle/button-toggle.component.mjs +15 -15
  107. package/esm2022/checkbox/checkbox.mjs +4 -4
  108. package/esm2022/code-block/actionbar.component.mjs +3 -3
  109. package/esm2022/code-block/code-block.component.mjs +11 -9
  110. package/esm2022/core/animation/index.mjs +2 -2
  111. package/esm2022/core/animation/select-animations.mjs +4 -4
  112. package/esm2022/core/common-behaviors/color.mjs +1 -1
  113. package/esm2022/core/common-behaviors/common-module.mjs +2 -2
  114. package/esm2022/core/formatters/index.mjs +10 -2
  115. package/esm2022/core/formatters/number/formatter.mjs +224 -3
  116. package/esm2022/core/forms/forms.directive.mjs +5 -5
  117. package/esm2022/core/locales/en-US.mjs +22 -4
  118. package/esm2022/core/locales/es-LA.mjs +31 -2
  119. package/esm2022/core/locales/fa-IR.mjs +30 -2
  120. package/esm2022/core/locales/locale-service.mjs +4 -4
  121. package/esm2022/core/locales/pt-BR.mjs +29 -2
  122. package/esm2022/core/locales/ru-RU.mjs +23 -2
  123. package/esm2022/core/locales/zh-CN.mjs +28 -2
  124. package/esm2022/core/option/action.mjs +8 -7
  125. package/esm2022/core/option/optgroup.mjs +3 -3
  126. package/esm2022/core/option/option.mjs +47 -10
  127. package/esm2022/core/overlay/overlay-position-map.mjs +8 -1
  128. package/esm2022/core/pop-up/constants.mjs +2 -1
  129. package/esm2022/core/pop-up/pop-up-trigger.mjs +12 -3
  130. package/esm2022/core/public-api.mjs +2 -1
  131. package/esm2022/core/select/constants.mjs +3 -3
  132. package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +3 -3
  133. package/esm2022/core/services/theme.service.mjs +60 -0
  134. package/esm2022/core/version.mjs +2 -2
  135. package/esm2022/datepicker/calendar-body.component.mjs +7 -5
  136. package/esm2022/datepicker/calendar-header.component.mjs +9 -8
  137. package/esm2022/datepicker/calendar.component.mjs +8 -17
  138. package/esm2022/datepicker/datepicker-animations.mjs +3 -3
  139. package/esm2022/datepicker/datepicker-input.directive.mjs +29 -20
  140. package/esm2022/datepicker/datepicker-toggle.component.mjs +6 -6
  141. package/esm2022/datepicker/datepicker.component.mjs +12 -12
  142. package/esm2022/datepicker/month-view.component.mjs +9 -18
  143. package/esm2022/dl/dl.component.mjs +3 -7
  144. package/esm2022/dropdown/dropdown-animations.mjs +4 -4
  145. package/esm2022/dropdown/dropdown-content.directive.mjs +3 -3
  146. package/esm2022/dropdown/dropdown-errors.mjs +6 -6
  147. package/esm2022/dropdown/dropdown-item.component.mjs +7 -6
  148. package/esm2022/dropdown/dropdown-trigger.directive.mjs +10 -9
  149. package/esm2022/dropdown/dropdown.component.mjs +9 -9
  150. package/esm2022/dropdown/dropdown.types.mjs +1 -1
  151. package/esm2022/file-upload/file-drop.mjs +43 -6
  152. package/esm2022/file-upload/file-upload.mjs +1 -1
  153. package/esm2022/file-upload/multiple-file-upload.component.mjs +13 -9
  154. package/esm2022/file-upload/single-file-upload.component.mjs +16 -13
  155. package/esm2022/form-field/cleaner.mjs +3 -3
  156. package/esm2022/form-field/form-field.mjs +12 -15
  157. package/esm2022/form-field/hint.mjs +16 -6
  158. package/esm2022/form-field/password-hint.mjs +25 -16
  159. package/esm2022/form-field/password-toggle.mjs +29 -12
  160. package/esm2022/form-field/prefix.mjs +3 -3
  161. package/esm2022/form-field/suffix.mjs +3 -3
  162. package/esm2022/form-field/validate.directive.mjs +15 -9
  163. package/esm2022/icon/icon-button.component.mjs +68 -0
  164. package/esm2022/icon/icon-item.component.mjs +27 -0
  165. package/esm2022/icon/icon.component.mjs +5 -90
  166. package/esm2022/icon/icon.module.mjs +4 -2
  167. package/esm2022/icon/public-api.mjs +3 -1
  168. package/esm2022/input/input-errors.mjs +2 -2
  169. package/esm2022/input/input-number.mjs +260 -44
  170. package/esm2022/input/input-password.mjs +5 -5
  171. package/esm2022/input/input.mjs +7 -7
  172. package/esm2022/link/link.component.mjs +14 -13
  173. package/esm2022/list/list-selection.component.mjs +23 -10
  174. package/esm2022/list/list.component.mjs +2 -2
  175. package/esm2022/list/list.module.mjs +8 -4
  176. package/esm2022/loader-overlay/loader-overlay.component.mjs +20 -19
  177. package/esm2022/modal/modal-control.service.mjs +5 -5
  178. package/esm2022/modal/modal-ref.class.mjs +1 -1
  179. package/esm2022/modal/modal.component.mjs +129 -134
  180. package/esm2022/modal/modal.module.mjs +13 -7
  181. package/esm2022/modal/modal.service.mjs +23 -23
  182. package/esm2022/modal/modal.type.mjs +1 -3
  183. package/esm2022/navbar/navbar-item.component.mjs +19 -18
  184. package/esm2022/navbar/navbar.component.mjs +20 -11
  185. package/esm2022/navbar/vertical-navbar.animation.mjs +2 -2
  186. package/esm2022/navbar/vertical-navbar.component.mjs +11 -8
  187. package/esm2022/popover/popover-animations.mjs +2 -2
  188. package/esm2022/popover/popover-confirm.component.mjs +9 -11
  189. package/esm2022/popover/popover.component.mjs +24 -24
  190. package/esm2022/progress-spinner/progress-spinner.component.mjs +3 -3
  191. package/esm2022/radio/radio.component.mjs +11 -8
  192. package/esm2022/risk-level/index.mjs +2 -0
  193. package/esm2022/risk-level/koobiq-components-risk-level.mjs +5 -0
  194. package/esm2022/risk-level/public-api.mjs +3 -0
  195. package/esm2022/risk-level/risk-level.component.mjs +40 -0
  196. package/esm2022/risk-level/risk-level.module.mjs +28 -0
  197. package/esm2022/select/select-option.directive.mjs +15 -3
  198. package/esm2022/select/select.component.mjs +47 -29
  199. package/esm2022/sidebar/sidebar-animations.mjs +2 -2
  200. package/esm2022/sidebar/sidebar.component.mjs +9 -9
  201. package/esm2022/sidepanel/sidepanel-container.component.mjs +3 -3
  202. package/esm2022/sidepanel/sidepanel-directives.mjs +8 -10
  203. package/esm2022/sidepanel/sidepanel.module.mjs +10 -4
  204. package/esm2022/splitter/splitter.component.mjs +3 -3
  205. package/esm2022/table/table.component.mjs +3 -3
  206. package/esm2022/tabs/paginated-tab-header.mjs +11 -2
  207. package/esm2022/tabs/tab-body.component.mjs +7 -7
  208. package/esm2022/tabs/tab-content.directive.mjs +3 -3
  209. package/esm2022/tabs/tab-group.component.mjs +16 -21
  210. package/esm2022/tabs/tab-header.component.mjs +2 -2
  211. package/esm2022/tabs/tab-label-wrapper.directive.mjs +4 -3
  212. package/esm2022/tabs/tab-label.directive.mjs +3 -3
  213. package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +21 -10
  214. package/esm2022/tabs/tab.component.mjs +14 -5
  215. package/esm2022/tabs/tabs-animations.mjs +2 -2
  216. package/esm2022/tabs/tabs.module.mjs +2 -6
  217. package/esm2022/tags/tag-default-options.mjs +1 -1
  218. package/esm2022/tags/tag-input.mjs +17 -15
  219. package/esm2022/tags/tag-list.component.mjs +15 -10
  220. package/esm2022/tags/tag.component.mjs +16 -16
  221. package/esm2022/textarea/textarea.component.mjs +4 -4
  222. package/esm2022/timepicker/timepicker.directive.mjs +10 -10
  223. package/esm2022/timezone/timezone-option.component.mjs +4 -4
  224. package/esm2022/timezone/timezone-select.component.mjs +5 -5
  225. package/esm2022/title/title.directive.mjs +6 -6
  226. package/esm2022/toast/toast-animations.mjs +2 -1
  227. package/esm2022/toast/toast-container.component.mjs +22 -8
  228. package/esm2022/toast/toast.component.mjs +30 -13
  229. package/esm2022/toast/toast.module.mjs +23 -8
  230. package/esm2022/toast/toast.service.mjs +2 -1
  231. package/esm2022/toast/toast.type.mjs +6 -1
  232. package/esm2022/toggle/toggle.component.mjs +4 -4
  233. package/esm2022/tooltip/tooltip.animations.mjs +2 -2
  234. package/esm2022/tooltip/tooltip.component.mjs +31 -30
  235. package/esm2022/tree/control/base-tree-control.mjs +1 -1
  236. package/esm2022/tree/control/flat-tree-control.mjs +4 -4
  237. package/esm2022/tree/control/tree-control.mjs +1 -1
  238. package/esm2022/tree/node.mjs +5 -5
  239. package/esm2022/tree/outlet.mjs +3 -3
  240. package/esm2022/tree/padding.directive.mjs +9 -9
  241. package/esm2022/tree/toggle.mjs +11 -12
  242. package/esm2022/tree/tree-base.mjs +3 -3
  243. package/esm2022/tree/tree-option.component.mjs +12 -10
  244. package/esm2022/tree/tree-selection.component.mjs +8 -6
  245. package/esm2022/tree/tree.mjs +3 -3
  246. package/esm2022/tree/tree.module.mjs +13 -4
  247. package/esm2022/tree-select/tree-select.component.mjs +28 -23
  248. package/fesm2022/koobiq-components-alert.mjs +2 -2
  249. package/fesm2022/koobiq-components-alert.mjs.map +1 -1
  250. package/fesm2022/koobiq-components-autocomplete.mjs +40 -37
  251. package/fesm2022/koobiq-components-autocomplete.mjs.map +1 -1
  252. package/fesm2022/koobiq-components-badge.mjs +166 -0
  253. package/fesm2022/koobiq-components-badge.mjs.map +1 -0
  254. package/fesm2022/koobiq-components-button-toggle.mjs +14 -14
  255. package/fesm2022/koobiq-components-button-toggle.mjs.map +1 -1
  256. package/fesm2022/koobiq-components-button.mjs +3 -2
  257. package/fesm2022/koobiq-components-button.mjs.map +1 -1
  258. package/fesm2022/koobiq-components-checkbox.mjs +3 -3
  259. package/fesm2022/koobiq-components-checkbox.mjs.map +1 -1
  260. package/fesm2022/koobiq-components-code-block.mjs +10 -9
  261. package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
  262. package/fesm2022/koobiq-components-core.mjs +535 -46
  263. package/fesm2022/koobiq-components-core.mjs.map +1 -1
  264. package/fesm2022/koobiq-components-datepicker.mjs +73 -79
  265. package/fesm2022/koobiq-components-datepicker.mjs.map +1 -1
  266. package/fesm2022/koobiq-components-dl.mjs +2 -6
  267. package/fesm2022/koobiq-components-dl.mjs.map +1 -1
  268. package/fesm2022/koobiq-components-dropdown.mjs +33 -31
  269. package/fesm2022/koobiq-components-dropdown.mjs.map +1 -1
  270. package/fesm2022/koobiq-components-file-upload.mjs +65 -21
  271. package/fesm2022/koobiq-components-file-upload.mjs.map +1 -1
  272. package/fesm2022/koobiq-components-form-field.mjs +96 -59
  273. package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
  274. package/fesm2022/koobiq-components-icon.mjs +10 -8
  275. package/fesm2022/koobiq-components-icon.mjs.map +1 -1
  276. package/fesm2022/koobiq-components-input.mjs +269 -55
  277. package/fesm2022/koobiq-components-input.mjs.map +1 -1
  278. package/fesm2022/koobiq-components-link.mjs +13 -12
  279. package/fesm2022/koobiq-components-link.mjs.map +1 -1
  280. package/fesm2022/koobiq-components-list.mjs +31 -14
  281. package/fesm2022/koobiq-components-list.mjs.map +1 -1
  282. package/fesm2022/koobiq-components-loader-overlay.mjs +19 -18
  283. package/fesm2022/koobiq-components-loader-overlay.mjs.map +1 -1
  284. package/fesm2022/koobiq-components-modal.mjs +164 -167
  285. package/fesm2022/koobiq-components-modal.mjs.map +1 -1
  286. package/fesm2022/koobiq-components-navbar.mjs +46 -37
  287. package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
  288. package/fesm2022/koobiq-components-popover.mjs +32 -33
  289. package/fesm2022/koobiq-components-popover.mjs.map +1 -1
  290. package/fesm2022/koobiq-components-progress-spinner.mjs +2 -2
  291. package/fesm2022/koobiq-components-progress-spinner.mjs.map +1 -1
  292. package/fesm2022/koobiq-components-radio.mjs +10 -7
  293. package/fesm2022/koobiq-components-radio.mjs.map +1 -1
  294. package/fesm2022/koobiq-components-risk-level.mjs +72 -0
  295. package/fesm2022/koobiq-components-risk-level.mjs.map +1 -0
  296. package/fesm2022/koobiq-components-select.mjs +60 -30
  297. package/fesm2022/koobiq-components-select.mjs.map +1 -1
  298. package/fesm2022/koobiq-components-sidebar.mjs +8 -8
  299. package/fesm2022/koobiq-components-sidebar.mjs.map +1 -1
  300. package/fesm2022/koobiq-components-sidepanel.mjs +19 -14
  301. package/fesm2022/koobiq-components-sidepanel.mjs.map +1 -1
  302. package/fesm2022/koobiq-components-splitter.mjs +2 -2
  303. package/fesm2022/koobiq-components-splitter.mjs.map +1 -1
  304. package/fesm2022/koobiq-components-table.mjs +2 -2
  305. package/fesm2022/koobiq-components-table.mjs.map +1 -1
  306. package/fesm2022/koobiq-components-tabs.mjs +74 -53
  307. package/fesm2022/koobiq-components-tabs.mjs.map +1 -1
  308. package/fesm2022/koobiq-components-tags.mjs +45 -38
  309. package/fesm2022/koobiq-components-tags.mjs.map +1 -1
  310. package/fesm2022/koobiq-components-textarea.mjs +3 -3
  311. package/fesm2022/koobiq-components-textarea.mjs.map +1 -1
  312. package/fesm2022/koobiq-components-timepicker.mjs +9 -9
  313. package/fesm2022/koobiq-components-timepicker.mjs.map +1 -1
  314. package/fesm2022/koobiq-components-timezone.mjs +7 -7
  315. package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
  316. package/fesm2022/koobiq-components-title.mjs +5 -5
  317. package/fesm2022/koobiq-components-title.mjs.map +1 -1
  318. package/fesm2022/koobiq-components-toast.mjs +71 -22
  319. package/fesm2022/koobiq-components-toast.mjs.map +1 -1
  320. package/fesm2022/koobiq-components-toggle.mjs +3 -3
  321. package/fesm2022/koobiq-components-toggle.mjs.map +1 -1
  322. package/fesm2022/koobiq-components-tooltip.mjs +31 -30
  323. package/fesm2022/koobiq-components-tooltip.mjs.map +1 -1
  324. package/fesm2022/koobiq-components-tree-select.mjs +27 -22
  325. package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
  326. package/fesm2022/koobiq-components-tree.mjs +67 -54
  327. package/fesm2022/koobiq-components-tree.mjs.map +1 -1
  328. package/file-upload/_file-upload-theme.scss +54 -40
  329. package/file-upload/file-drop.d.ts +3 -2
  330. package/file-upload/file-upload.d.ts +4 -1
  331. package/file-upload/file-upload.scss +2 -9
  332. package/file-upload/multiple-file-upload.component.d.ts +6 -5
  333. package/file-upload/multiple-file-upload.component.scss +170 -59
  334. package/file-upload/single-file-upload.component.d.ts +6 -5
  335. package/file-upload/single-file-upload.component.scss +42 -22
  336. package/form-field/_form-field-theme.scss +3 -6
  337. package/form-field/_hint-theme.scss +6 -2
  338. package/form-field/cleaner.d.ts +1 -1
  339. package/form-field/form-field.d.ts +3 -4
  340. package/form-field/form-field.scss +2 -2
  341. package/form-field/hint.d.ts +4 -1
  342. package/form-field/hint.scss +9 -1
  343. package/form-field/password-hint.d.ts +7 -3
  344. package/form-field/password-hint.scss +6 -0
  345. package/form-field/password-toggle.d.ts +13 -7
  346. package/form-field/prefix.d.ts +1 -1
  347. package/form-field/suffix.d.ts +1 -1
  348. package/form-field/validate.directive.d.ts +1 -1
  349. package/icon/_icon-button-theme.scss +129 -0
  350. package/icon/_icon-item-theme.scss +41 -0
  351. package/icon/_icon-theme.scss +1 -232
  352. package/icon/icon-button.component.d.ts +22 -0
  353. package/icon/icon-button.scss +33 -0
  354. package/icon/icon-item.component.d.ts +10 -0
  355. package/icon/icon-item.scss +18 -0
  356. package/icon/icon.component.d.ts +1 -25
  357. package/icon/icon.module.d.ts +6 -4
  358. package/icon/icon.scss +0 -41
  359. package/icon/public-api.d.ts +2 -0
  360. package/input/_input-theme.scss +2 -1
  361. package/input/input-number.d.ts +61 -10
  362. package/input/input-password.d.ts +1 -1
  363. package/input/input.d.ts +2 -2
  364. package/input/input.scss +3 -1
  365. package/link/_link-theme.scss +101 -92
  366. package/link/link.component.d.ts +4 -4
  367. package/list/_list-theme.scss +36 -17
  368. package/list/list-selection.component.d.ts +6 -2
  369. package/list/list.module.d.ts +1 -1
  370. package/list/list.scss +6 -19
  371. package/loader-overlay/_loader-overlay-theme.scss +43 -11
  372. package/loader-overlay/loader-overlay.component.d.ts +6 -5
  373. package/loader-overlay/loader-overlay.scss +56 -22
  374. package/markdown/_markdown-theme.scss +2 -2
  375. package/modal/README.md +5 -5
  376. package/modal/_modal-confirm.scss +5 -37
  377. package/modal/_modal-theme.scss +14 -52
  378. package/modal/modal-ref.class.d.ts +2 -2
  379. package/modal/modal.component.d.ts +53 -52
  380. package/modal/modal.module.d.ts +2 -1
  381. package/modal/modal.scss +50 -31
  382. package/modal/modal.type.d.ts +35 -36
  383. package/navbar/_navbar-theme.scss +2 -2
  384. package/navbar/navbar-item.component.d.ts +4 -3
  385. package/navbar/navbar.component.d.ts +5 -2
  386. package/navbar/vertical-navbar.component.d.ts +4 -2
  387. package/package.json +48 -38
  388. package/popover/README.md +14 -14
  389. package/popover/_popover-theme.scss +15 -78
  390. package/popover/popover-animations.d.ts +1 -1
  391. package/popover/popover-confirm.component.d.ts +1 -3
  392. package/popover/popover.component.d.ts +3 -3
  393. package/popover/popover.scss +60 -50
  394. package/prebuilt-themes/dark-theme.css +1 -1
  395. package/prebuilt-themes/light-theme.css +1 -1
  396. package/progress-spinner/progress-spinner.component.d.ts +2 -2
  397. package/progress-spinner/progress-spinner.scss +10 -5
  398. package/radio/_radio-theme.scss +17 -4
  399. package/radio/radio.component.d.ts +2 -2
  400. package/radio/radio.scss +13 -0
  401. package/risk-level/README.md +0 -0
  402. package/risk-level/_risk-level-theme.scss +88 -0
  403. package/risk-level/index.d.ts +1 -0
  404. package/risk-level/public-api.d.ts +2 -0
  405. package/risk-level/risk-level.component.d.ts +18 -0
  406. package/risk-level/risk-level.component.scss +26 -0
  407. package/risk-level/risk-level.module.d.ts +10 -0
  408. package/select/_select-theme.scss +12 -4
  409. package/select/select-option.directive.d.ts +2 -0
  410. package/select/select.component.d.ts +15 -12
  411. package/select/select.scss +6 -190
  412. package/sidebar/sidebar-animations.d.ts +1 -1
  413. package/sidebar/sidebar.component.d.ts +3 -3
  414. package/sidepanel/_sidepanel-theme.scss +11 -41
  415. package/sidepanel/sidepanel-directives.d.ts +0 -2
  416. package/sidepanel/sidepanel.scss +33 -35
  417. package/splitter/_splitter-theme.scss +1 -0
  418. package/splitter/splitter.component.d.ts +1 -1
  419. package/table/_table-theme.scss +1 -1
  420. package/table/table.component.d.ts +1 -1
  421. package/tabs/_tabs-common.scss +28 -147
  422. package/tabs/_tabs-theme.scss +81 -175
  423. package/tabs/paginated-tab-header.d.ts +1 -0
  424. package/tabs/tab-body.component.d.ts +1 -1
  425. package/tabs/tab-content.directive.d.ts +1 -1
  426. package/tabs/tab-group.component.d.ts +5 -8
  427. package/tabs/tab-group.scss +10 -10
  428. package/tabs/tab-header.scss +2 -24
  429. package/tabs/tab-label-wrapper.directive.d.ts +1 -1
  430. package/tabs/tab-label.directive.d.ts +1 -1
  431. package/tabs/tab-nav-bar/tab-nav-bar.d.ts +4 -2
  432. package/tabs/tab-nav-bar/tab-nav-bar.scss +9 -16
  433. package/tabs/tab.component.d.ts +1 -1
  434. package/tabs/tabs-animations.d.ts +1 -1
  435. package/tabs/tabs.module.d.ts +1 -1
  436. package/tags/_tag-theme.scss +1 -25
  437. package/tags/tag-default-options.d.ts +4 -0
  438. package/tags/tag-input.d.ts +2 -2
  439. package/tags/tag-list.component.d.ts +3 -2
  440. package/tags/tag-list.scss +26 -16
  441. package/tags/tag.component.d.ts +6 -6
  442. package/textarea/textarea.component.d.ts +1 -1
  443. package/timepicker/timepicker.directive.d.ts +2 -2
  444. package/timezone/timezone-option.component.d.ts +1 -1
  445. package/timezone/timezone-select.component.d.ts +1 -1
  446. package/title/title.directive.d.ts +1 -1
  447. package/toast/_toast-theme.scss +21 -33
  448. package/toast/toast-animations.d.ts +1 -0
  449. package/toast/toast-container.component.d.ts +7 -3
  450. package/toast/toast-container.component.scss +2 -1
  451. package/toast/toast.component.d.ts +6 -1
  452. package/toast/toast.component.scss +41 -34
  453. package/toast/toast.module.d.ts +1 -1
  454. package/toast/toast.service.d.ts +2 -0
  455. package/toast/toast.type.d.ts +8 -5
  456. package/toggle/_toggle-theme.scss +9 -1
  457. package/toggle/toggle.component.d.ts +1 -1
  458. package/toggle/toggle.scss +5 -2
  459. package/tooltip/tooltip.animations.d.ts +1 -1
  460. package/tooltip/tooltip.component.d.ts +5 -5
  461. package/tree/_tree-theme.scss +46 -34
  462. package/tree/control/base-tree-control.d.ts +1 -1
  463. package/tree/control/tree-control.d.ts +1 -1
  464. package/tree/node.d.ts +1 -1
  465. package/tree/outlet.d.ts +1 -1
  466. package/tree/padding.directive.d.ts +1 -1
  467. package/tree/toggle.d.ts +3 -3
  468. package/tree/tree-base.d.ts +1 -1
  469. package/tree/tree-option.component.d.ts +1 -2
  470. package/tree/tree-option.scss +40 -27
  471. package/tree/tree-selection.component.d.ts +1 -1
  472. package/tree/tree.d.ts +1 -1
  473. package/tree/tree.module.d.ts +2 -1
  474. package/tree-select/_tree-select-theme.scss +13 -3
  475. package/tree-select/tree-select.component.d.ts +6 -4
  476. package/tree-select/tree-select.scss +5 -194
  477. package/core/styles/theming/_badges.scss +0 -57
  478. package/core/styles/theming/prebuilt/light-theme.scss +0 -20
  479. package/list/_list-base.scss +0 -54
@@ -12,7 +12,7 @@
12
12
  $error: map.get($icon, error);
13
13
  $success: map.get($icon, success);
14
14
 
15
- .kbq-icon {
15
+ .kbq-icon:not(.kbq-icon-button, .kbq-icon-item) {
16
16
  &.kbq-theme {
17
17
  color: map.get($theme, color);
18
18
  }
@@ -32,236 +32,5 @@
32
32
  &.kbq-success {
33
33
  color: map.get($success, color);
34
34
  }
35
-
36
- &[disabled],
37
- &.kbq-disabled {
38
- cursor: default;
39
- }
40
- }
41
- }
42
-
43
- @mixin kbq-icon-item-theme($themeObj) {
44
- $icon-item: map.get(map.get($themeObj, components), icon-item);
45
-
46
- $theme: map.get($icon-item, theme);
47
- $contrast: map.get($icon-item, contrast);
48
- $fade-contrast: map.get($icon-item, fade-contrast);
49
- $error: map.get($icon-item, error);
50
- $success: map.get($icon-item, success);
51
-
52
- .kbq-icon-item {
53
- &.kbq-theme {
54
- color: map.get($theme, color);
55
- background: map.get($theme, background);
56
- }
57
-
58
- &.kbq-contrast {
59
- color: map.get($contrast, color);
60
- background: map.get($contrast, background);
61
- }
62
-
63
- &.kbq-contrast-fade {
64
- color: map.get($fade-contrast, color);
65
- background: map.get($fade-contrast, background);
66
- }
67
-
68
- &.kbq-error {
69
- color: map.get($error, color);
70
- background: map.get($error, background);
71
- }
72
-
73
- &.kbq-success {
74
- color: map.get($success, color);
75
- background: map.get($success, background);
76
- }
77
-
78
- &[disabled],
79
- &.kbq-disabled {
80
- cursor: default;
81
- }
82
- }
83
- }
84
-
85
- @mixin kbq-icon-button-theme($themeObj) {
86
- $icon-button: map.get(map.get($themeObj, components), icon-button);
87
-
88
- $theme: map.get($icon-button, theme);
89
- $contrast: map.get($icon-button, contrast);
90
- $fade-contrast: map.get($icon-button, fade-contrast);
91
- $error: map.get($icon-button, error);
92
- $success: map.get($icon-button, success);
93
-
94
- .kbq-icon_button {
95
- &.kbq-theme {
96
- &:active,
97
- &.kbq-active {
98
- color: map.get($theme, state-active);
99
- }
100
-
101
- &:not([disabled], .kbq-disabled):hover {
102
- color: map.get($theme, state-hover);
103
- }
104
-
105
- &[disabled],
106
- &.kbq-disabled {
107
- color: map.get($theme, state-disabled);
108
- }
109
- }
110
-
111
- &.kbq-contrast {
112
- &:active,
113
- &.kbq-active {
114
- color: map.get($contrast, state-active);
115
- }
116
-
117
- &:not([disabled], .kbq-disabled):hover {
118
- color: map.get($contrast, state-hover);
119
- }
120
-
121
- &[disabled],
122
- &.kbq-disabled {
123
- color: map.get($contrast, state-disabled);
124
- }
125
- }
126
-
127
- &.kbq-contrast-fade {
128
- &:active,
129
- &.kbq-active {
130
- color: map.get($fade-contrast, state-active);
131
- }
132
-
133
- &:not([disabled], .kbq-disabled):hover {
134
- color: map.get($fade-contrast, state-hover);
135
- }
136
-
137
- &[disabled],
138
- &.kbq-disabled {
139
- color: map.get($fade-contrast, state-disabled);
140
- }
141
- }
142
-
143
- &.kbq-error {
144
- &:active,
145
- &.kbq-active {
146
- color: map.get($error, state-active);
147
- }
148
-
149
- &:not([disabled], .kbq-disabled):hover {
150
- color: map.get($error, state-hover);
151
- }
152
-
153
- &[disabled],
154
- &.kbq-disabled {
155
- color: map.get($error, state-disabled);
156
- }
157
- }
158
-
159
- &.kbq-success {
160
- &:active,
161
- &.kbq-active {
162
- color: map.get($success, state-active);
163
- }
164
-
165
- &:not([disabled], .kbq-disabled):hover {
166
- color: map.get($success, state-hover);
167
- }
168
-
169
- &[disabled],
170
- &.kbq-disabled {
171
- color: map.get($success, state-disabled);
172
- }
173
- }
174
- }
175
-
176
- .kbq-icon.kbq-icon_button {
177
- &.kbq-theme {
178
- &:active,
179
- &.kbq-active {
180
- color: map.get($theme, state-active);
181
- }
182
-
183
- &:not([disabled], .kbq-disabled):hover {
184
- color: map.get($theme, state-hover);
185
- }
186
-
187
- &[disabled],
188
- &.kbq-disabled {
189
- color: map.get($theme, state-disabled);
190
- }
191
- }
192
-
193
- &.kbq-contrast {
194
- &:active,
195
- &.kbq-active {
196
- color: map.get($contrast, state-active);
197
- }
198
-
199
- &:not([disabled], .kbq-disabled):hover {
200
- color: map.get($contrast, state-hover);
201
- }
202
-
203
- &[disabled],
204
- &.kbq-disabled {
205
- color: map.get($contrast, state-disabled);
206
- }
207
- }
208
-
209
- &.kbq-contrast-fade {
210
- &:active,
211
- &.kbq-active {
212
- color: map.get($fade-contrast, state-active);
213
- }
214
-
215
- &:not([disabled], .kbq-disabled):hover {
216
- color: map.get($fade-contrast, state-hover);
217
- }
218
-
219
- &[disabled],
220
- &.kbq-disabled {
221
- color: map.get($fade-contrast, state-disabled);
222
- }
223
- }
224
-
225
- &.kbq-error {
226
- &:active,
227
- &.kbq-active {
228
- color: map.get($error, state-active);
229
- }
230
-
231
- &:not([disabled], .kbq-disabled):hover {
232
- color: map.get($error, state-hover);
233
- }
234
-
235
- &[disabled],
236
- &.kbq-disabled {
237
- color: map.get($error, state-disabled);
238
- }
239
- }
240
-
241
- &.kbq-success {
242
- &:active,
243
- &.kbq-active {
244
- color: map.get($success, state-active);
245
- }
246
-
247
- &:not([disabled],.kbq-disabled):hover {
248
- color: map.get($success, state-hover);
249
- }
250
-
251
- &[disabled],
252
- &.kbq-disabled {
253
- color: map.get($success, state-disabled);
254
- }
255
- }
256
-
257
- &:focus {
258
- outline: none;
259
- }
260
-
261
- &.cdk-keyboard-focused {
262
- box-shadow:
263
- inset 0 0 0 1px map.get(map.get($themeObj, states), focused-color),
264
- 0 0 0 1px map.get(map.get($themeObj, states), focused-color);
265
- }
266
35
  }
267
36
  }
@@ -0,0 +1,22 @@
1
+ import { FocusMonitor } from '@angular/cdk/a11y';
2
+ import { ChangeDetectorRef, ElementRef, OnDestroy } from '@angular/core';
3
+ import { CanColor, KbqFormFieldRef } from '@koobiq/components/core';
4
+ import { KbqIcon } from './icon.component';
5
+ import * as i0 from "@angular/core";
6
+ export declare class KbqIconButton extends KbqIcon implements OnDestroy, CanColor {
7
+ protected changeDetectorRef: ChangeDetectorRef;
8
+ private focusMonitor;
9
+ small: boolean;
10
+ get tabindex(): any;
11
+ set tabindex(value: any);
12
+ private _tabindex;
13
+ get disabled(): boolean;
14
+ set disabled(value: boolean);
15
+ private _disabled;
16
+ constructor(elementRef: ElementRef, iconName: string, formField: KbqFormFieldRef, changeDetectorRef: ChangeDetectorRef, focusMonitor: FocusMonitor);
17
+ ngOnDestroy(): void;
18
+ private runFocusMonitor;
19
+ private stopFocusMonitor;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<KbqIconButton, [null, { attribute: "kbq-icon-button"; }, { optional: true; }, null, null]>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<KbqIconButton, "[kbq-icon-button]", never, { "color": { "alias": "color"; "required": false; }; "small": { "alias": "small"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, ["*"], false, never>;
22
+ }
@@ -0,0 +1,33 @@
1
+ @use 'sass:meta';
2
+ @use 'sass:map';
3
+
4
+ @use '../core/styles/tokens';
5
+
6
+
7
+ $tokens: meta.module-variables(tokens) !default;
8
+
9
+
10
+ .kbq-icon-button {
11
+ &:not(.kbq-disabled) {
12
+ cursor: pointer;
13
+ }
14
+
15
+ padding:
16
+ var(--kbq-icon-button-size-small-vertical-padding, map-get($tokens, icon-button-size-small-vertical-padding))
17
+ var(
18
+ --kbq-icon-button-size-small-horizontal-padding,
19
+ map-get($tokens, icon-button-size-small-horizontal-padding)
20
+ );
21
+
22
+ &.kbq-icon-button_small {
23
+ padding:
24
+ var(
25
+ --kbq-icon-button-size-normal-vertical-padding,
26
+ map-get($tokens, icon-button-size-normal-vertical-padding)
27
+ )
28
+ var(
29
+ --kbq-icon-button-size-normal-horizontal-padding,
30
+ map-get($tokens, icon-button-size-normal-horizontal-padding)
31
+ );
32
+ }
33
+ }
@@ -0,0 +1,10 @@
1
+ import { ChangeDetectorRef, ElementRef } from '@angular/core';
2
+ import { CanColor, KbqFormFieldRef } from '@koobiq/components/core';
3
+ import { KbqIcon } from './icon.component';
4
+ import * as i0 from "@angular/core";
5
+ export declare class KbqIconItem extends KbqIcon implements CanColor {
6
+ protected changeDetectorRef: ChangeDetectorRef;
7
+ constructor(elementRef: ElementRef, iconName: string, formField: KbqFormFieldRef, changeDetectorRef: ChangeDetectorRef);
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<KbqIconItem, [null, { attribute: "kbq-icon-item"; }, { optional: true; }, null]>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<KbqIconItem, "[kbq-icon-item]", never, { "color": { "alias": "color"; "required": false; }; }, {}, never, ["*"], false, never>;
10
+ }
@@ -0,0 +1,18 @@
1
+ @use 'sass:meta';
2
+ @use 'sass:map';
3
+
4
+ @use '../core/styles/tokens';
5
+
6
+
7
+ $tokens: meta.module-variables(tokens) !default;
8
+
9
+
10
+ .kbq-icon-item {
11
+ box-sizing: border-box;
12
+
13
+ border-radius: 50%;
14
+
15
+ padding:
16
+ var(--kbq-icon-item-size-vertical-padding, map-get($tokens, icon-item-size-vertical-padding))
17
+ var(--kbq-icon-item-size-horizontal-padding, map-get($tokens, icon-item-size-horizontal-padding));
18
+ }
@@ -1,5 +1,4 @@
1
- import { FocusMonitor } from '@angular/cdk/a11y';
2
- import { AfterContentInit, ChangeDetectorRef, ElementRef, OnDestroy } from '@angular/core';
1
+ import { AfterContentInit, ChangeDetectorRef, ElementRef } from '@angular/core';
3
2
  import { CanColor, CanColorCtor, KbqFormFieldRef } from '@koobiq/components/core';
4
3
  import * as i0 from "@angular/core";
5
4
  /** @docs-private */
@@ -22,26 +21,3 @@ export declare class KbqIcon extends KbqIconMixinBase implements CanColor, After
22
21
  static ɵfac: i0.ɵɵFactoryDeclaration<KbqIcon, [null, { attribute: "kbq-icon"; }, { optional: true; }, null]>;
23
22
  static ɵcmp: i0.ɵɵComponentDeclaration<KbqIcon, "[kbq-icon]", never, { "color": { "alias": "color"; "required": false; }; "small": { "alias": "small"; "required": false; }; "autoColor": { "alias": "autoColor"; "required": false; }; }, {}, never, ["*"], false, never>;
24
23
  }
25
- export declare class KbqIconButton extends KbqIcon implements OnDestroy, CanColor {
26
- protected changeDetectorRef: ChangeDetectorRef;
27
- private focusMonitor;
28
- small: boolean;
29
- get tabindex(): any;
30
- set tabindex(value: any);
31
- private _tabindex;
32
- get disabled(): boolean;
33
- set disabled(value: boolean);
34
- private _disabled;
35
- constructor(elementRef: ElementRef, iconName: string, formField: KbqFormFieldRef, changeDetectorRef: ChangeDetectorRef, focusMonitor: FocusMonitor);
36
- ngOnDestroy(): void;
37
- private runFocusMonitor;
38
- private stopFocusMonitor;
39
- static ɵfac: i0.ɵɵFactoryDeclaration<KbqIconButton, [null, { attribute: "kbq-icon-button"; }, { optional: true; }, null, null]>;
40
- static ɵcmp: i0.ɵɵComponentDeclaration<KbqIconButton, "[kbq-icon-button]", never, { "color": { "alias": "color"; "required": false; }; "small": { "alias": "small"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, ["*"], false, never>;
41
- }
42
- export declare class KbqIconItem extends KbqIcon implements CanColor {
43
- protected changeDetectorRef: ChangeDetectorRef;
44
- constructor(elementRef: ElementRef, iconName: string, formField: KbqFormFieldRef, changeDetectorRef: ChangeDetectorRef);
45
- static ɵfac: i0.ɵɵFactoryDeclaration<KbqIconItem, [null, { attribute: "kbq-icon-item"; }, { optional: true; }, null]>;
46
- static ɵcmp: i0.ɵɵComponentDeclaration<KbqIconItem, "[kbq-icon-item]", never, { "color": { "alias": "color"; "required": false; }; }, {}, never, ["*"], false, never>;
47
- }
@@ -1,10 +1,12 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./icon.component";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "@angular/cdk/a11y";
5
- import * as i4 from "@angular/cdk/platform";
3
+ import * as i2 from "./icon-button.component";
4
+ import * as i3 from "./icon-item.component";
5
+ import * as i4 from "@angular/common";
6
+ import * as i5 from "@angular/cdk/a11y";
7
+ import * as i6 from "@angular/cdk/platform";
6
8
  export declare class KbqIconModule {
7
9
  static ɵfac: i0.ɵɵFactoryDeclaration<KbqIconModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<KbqIconModule, [typeof i1.KbqIcon, typeof i1.KbqIconButton, typeof i1.KbqIconItem], [typeof i2.CommonModule, typeof i3.A11yModule, typeof i4.PlatformModule], [typeof i1.KbqIcon, typeof i1.KbqIconButton, typeof i1.KbqIconItem]>;
10
+ static ɵmod: i0.ɵɵNgModuleDeclaration<KbqIconModule, [typeof i1.KbqIcon, typeof i2.KbqIconButton, typeof i3.KbqIconItem], [typeof i4.CommonModule, typeof i5.A11yModule, typeof i6.PlatformModule], [typeof i1.KbqIcon, typeof i2.KbqIconButton, typeof i3.KbqIconItem]>;
9
11
  static ɵinj: i0.ɵɵInjectorDeclaration<KbqIconModule>;
10
12
  }
package/icon/icon.scss CHANGED
@@ -7,47 +7,6 @@
7
7
  $tokens: meta.module-variables(tokens) !default;
8
8
 
9
9
 
10
- @mixin kbq-icon-size($padding, $line-height, $font-size) {
11
- padding: $padding;
12
- line-height: $line-height;
13
- font-size: $font-size;
14
- }
15
-
16
- .kbq-icon_button {
17
- &:not(.kbq-disabled) {
18
- cursor: pointer;
19
- }
20
-
21
- padding:
22
- var(--kbq-icon-button-size-small-vertical-padding, map-get($tokens, icon-button-size-small-vertical-padding))
23
- var(
24
- --kbq-icon-button-size-small-horizontal-padding,
25
- map-get($tokens, icon-button-size-small-horizontal-padding)
26
- );
27
-
28
- &.kbq-icon-button_small {
29
- padding:
30
- var(
31
- --kbq-icon-button-size-normal-vertical-padding,
32
- map-get($tokens, icon-button-size-normal-vertical-padding)
33
- )
34
- var(
35
- --kbq-icon-button-size-normal-horizontal-padding,
36
- map-get($tokens, icon-button-size-normal-horizontal-padding)
37
- );
38
- }
39
- }
40
-
41
- .kbq-icon-item {
42
- box-sizing: border-box;
43
-
44
- border-radius: 50%;
45
-
46
- padding:
47
- var(--kbq-icon-item-size-vertical-padding, map-get($tokens, icon-item-size-vertical-padding))
48
- var(--kbq-icon-item-size-horizontal-padding, map-get($tokens, icon-item-size-horizontal-padding));
49
- }
50
-
51
10
  .kbq-icon-rotate_90 {
52
11
  transform: rotate(90deg);
53
12
  }
@@ -1,2 +1,4 @@
1
1
  export * from './icon.module';
2
2
  export * from './icon.component';
3
+ export * from './icon-button.component';
4
+ export * from './icon-item.component';
@@ -7,7 +7,8 @@
7
7
  @mixin kbq-input-typography($config) {
8
8
  $tokens: map.get($config, tokens);
9
9
 
10
- .kbq-input {
10
+ .kbq-input,
11
+ .kbq-input.kbq-input-password::placeholder {
11
12
  @include kbq-typography-level-to-styles($config, map.get($tokens, input-font-text));
12
13
  }
13
14
  }
@@ -1,5 +1,7 @@
1
- import { ElementRef } from '@angular/core';
2
- import { NgControl } from '@angular/forms';
1
+ import { ElementRef, EventEmitter, OnDestroy, Renderer2 } from '@angular/core';
2
+ import { ControlValueAccessor } from '@angular/forms';
3
+ import { KbqLocaleService } from '@koobiq/components/core';
4
+ import { KbqFormFieldControl } from '@koobiq/components/form-field';
3
5
  import { Subject } from 'rxjs';
4
6
  import * as i0 from "@angular/core";
5
7
  export declare const BIG_STEP = 10;
@@ -10,24 +12,73 @@ export declare function isInt(value: string): boolean;
10
12
  export declare function isDigit(value: string): boolean;
11
13
  export declare function getPrecision(value: number): number;
12
14
  export declare function add(value1: number, value2: number): number;
13
- export declare class KbqNumberInput {
15
+ export declare const KBQ_NUMBER_INPUT_VALUE_ACCESSOR: any;
16
+ export declare class KbqNumberInput implements KbqFormFieldControl<any>, ControlValueAccessor, OnDestroy {
14
17
  private elementRef;
15
- private ngControl;
18
+ private readonly renderer;
19
+ private localeService;
20
+ /** Emits when the value changes (either due to user input or programmatic change). */
21
+ valueChange: EventEmitter<number | null>;
22
+ /** Emits when the disabled state has changed */
23
+ disabledChange: EventEmitter<boolean>;
24
+ readonly stateChanges: Subject<void>;
25
+ id: string;
26
+ placeholder: string;
27
+ empty: boolean;
28
+ required: boolean;
29
+ errorState: boolean;
30
+ controlType?: string | undefined;
16
31
  bigStep: number;
17
32
  step: number;
18
33
  min: number;
19
34
  max: number;
20
- value: any;
35
+ withThousandSeparator: boolean;
36
+ /**
37
+ * Include thousand separator from custom index. For example, it will be useful in tables.
38
+ */
39
+ startFormattingFrom?: number;
40
+ get value(): number | null;
41
+ set value(value: number | null);
42
+ private _value;
43
+ get disabled(): boolean;
44
+ set disabled(value: boolean);
45
+ private _disabled;
21
46
  focused: boolean;
22
- readonly stateChanges: Subject<void>;
23
47
  get nativeElement(): HTMLInputElement;
24
- constructor(elementRef: ElementRef, ngControl: NgControl, step: string, bigStep: string, min: string, max: string);
48
+ get viewValue(): string;
49
+ get ngControl(): any;
50
+ private control;
51
+ private readonly allNumberLocaleConfigs;
52
+ private numberLocaleConfig;
53
+ private valueFromPaste;
54
+ private localeSubscription;
55
+ constructor(elementRef: ElementRef, renderer: Renderer2, step: string, bigStep: string, min: string, max: string, localeService: KbqLocaleService);
56
+ ngOnDestroy(): void;
57
+ onContainerClick(): void;
58
+ focus(): void;
59
+ writeValue(value: number | null): void;
60
+ registerOnChange(fn: (value: any) => void): void;
61
+ registerOnTouched(fn: () => void): void;
62
+ setDisabledState(isDisabled: boolean): void;
25
63
  focusChanged(isFocused: boolean): void;
64
+ onTouched: () => void;
26
65
  onKeyDown(event: KeyboardEvent): void;
27
- onPaste(event: any): void;
66
+ onInput(event: InputEvent): void;
67
+ onPaste(event: ClipboardEvent): void;
28
68
  stepUp(step: number): void;
29
69
  stepDown(step: number): void;
70
+ private cvaOnChange;
71
+ private setViewValue;
30
72
  private viewToModelUpdate;
31
- static ɵfac: i0.ɵɵFactoryDeclaration<KbqNumberInput, [null, { optional: true; self: true; }, { attribute: "step"; }, { attribute: "big-step"; }, { attribute: "min"; }, { attribute: "max"; }]>;
32
- static ɵdir: i0.ɵɵDirectiveDeclaration<KbqNumberInput, "input[mcInput][type=\"number\"]", ["mcNumericalInput"], { "bigStep": { "alias": "bigStep"; "required": false; }; "step": { "alias": "step"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; }, {}, never, never, false, never>;
73
+ private formatViewValue;
74
+ private formatNumber;
75
+ private createLocalizedNumberFromParts;
76
+ /**
77
+ * Method that returns a string representation of a number without localized separators
78
+ */
79
+ private normalizeNumber;
80
+ private updateLocaleParams;
81
+ private checkAndNormalizeLocalizedNumber;
82
+ static ɵfac: i0.ɵɵFactoryDeclaration<KbqNumberInput, [null, null, { attribute: "step"; }, { attribute: "big-step"; }, { attribute: "min"; }, { attribute: "max"; }, { optional: true; }]>;
83
+ static ɵdir: i0.ɵɵDirectiveDeclaration<KbqNumberInput, "input[kbqInput][type=\"number\"]", ["kbqNumericalInput"], { "bigStep": { "alias": "bigStep"; "required": false; }; "step": { "alias": "step"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "withThousandSeparator": { "alias": "withThousandSeparator"; "required": false; }; "startFormattingFrom": { "alias": "startFormattingFrom"; "required": false; }; "value": { "alias": "value"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, false, never>;
33
84
  }
@@ -88,5 +88,5 @@ export declare class KbqInputPassword extends KbqInputMixinBase implements KbqFo
88
88
  /** Checks whether the input is invalid based on the native validation. */
89
89
  protected isBadInput(): boolean;
90
90
  static ɵfac: i0.ɵɵFactoryDeclaration<KbqInputPassword, [null, { optional: true; self: true; }, { optional: true; }, { optional: true; }, null, { optional: true; self: true; }]>;
91
- static ɵdir: i0.ɵɵDirectiveDeclaration<KbqInputPassword, "input[mcInputPassword]", ["mcInputPassword"], { "errorStateMatcher": { "alias": "errorStateMatcher"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "id": { "alias": "id"; "required": false; }; "required": { "alias": "required"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
91
+ static ɵdir: i0.ɵɵDirectiveDeclaration<KbqInputPassword, "input[kbqInputPassword]", ["kbqInputPassword"], { "errorStateMatcher": { "alias": "errorStateMatcher"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "id": { "alias": "id"; "required": false; }; "required": { "alias": "required"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
92
92
  }
package/input/input.d.ts CHANGED
@@ -109,9 +109,9 @@ export declare class KbqInput extends KbqInputMixinBase implements KbqFormFieldC
109
109
  /** Checks whether the input is invalid based on the native validation. */
110
110
  protected isBadInput(): boolean;
111
111
  static ɵfac: i0.ɵɵFactoryDeclaration<KbqInput, [null, { optional: true; self: true; }, { optional: true; self: true; }, { optional: true; }, { optional: true; }, null, { optional: true; self: true; }]>;
112
- static ɵdir: i0.ɵɵDirectiveDeclaration<KbqInput, "input[mcInput]", ["mcInput"], { "errorStateMatcher": { "alias": "errorStateMatcher"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "id": { "alias": "id"; "required": false; }; "required": { "alias": "required"; "required": false; }; "type": { "alias": "type"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
112
+ static ɵdir: i0.ɵɵDirectiveDeclaration<KbqInput, "input[kbqInput]", ["kbqInput"], { "errorStateMatcher": { "alias": "errorStateMatcher"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "id": { "alias": "id"; "required": false; }; "required": { "alias": "required"; "required": false; }; "type": { "alias": "type"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
113
113
  }
114
114
  export declare class KbqInputMono {
115
115
  static ɵfac: i0.ɵɵFactoryDeclaration<KbqInputMono, never>;
116
- static ɵdir: i0.ɵɵDirectiveDeclaration<KbqInputMono, "input[mcInputMonospace]", ["KbqInputMonospace"], {}, {}, never, never, false, never>;
116
+ static ɵdir: i0.ɵɵDirectiveDeclaration<KbqInputMono, "input[kbqInputMonospace]", ["KbqInputMonospace"], {}, {}, never, never, false, never>;
117
117
  }
package/input/input.scss CHANGED
@@ -14,6 +14,8 @@ $tokens: meta.module-variables(tokens) !default;
14
14
  display: inline-block;
15
15
  box-sizing: border-box;
16
16
 
17
+ text-overflow: ellipsis;
18
+
17
19
  width: 100%;
18
20
  min-height: calc(
19
21
  var(--kbq-form-field-size-height, map.get($tokens, form-field-size-height)) -
@@ -25,7 +27,7 @@ $tokens: meta.module-variables(tokens) !default;
25
27
  var(--kbq-input-size-padding-vertical, map.get($tokens, input-size-padding-vertical)) -
26
28
  var(--kbq-form-field-size-border-width, map.get($tokens, form-field-size-border-width))
27
29
  )
28
- var(--kbq-input-size-padding-horizontal, map.get($tokens, input-size-padding-horizontal));;
30
+ var(--kbq-input-size-padding-horizontal, map.get($tokens, input-size-padding-horizontal));
29
31
  }
30
32
 
31
33
  input.kbq-input[type="number"] {