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

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 (475) 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 +8 -0
  27. package/code-block/code-block.component.d.ts +1 -1
  28. package/core/animation/index.d.ts +1 -1
  29. package/core/animation/select-animations.d.ts +1 -1
  30. package/core/common-behaviors/color.d.ts +1 -1
  31. package/core/common-behaviors/common-module.d.ts +1 -1
  32. package/core/formatters/index.d.ts +1 -1
  33. package/core/formatters/number/formatter.d.ts +56 -1
  34. package/core/forms/_forms-theme.scss +4 -4
  35. package/core/forms/_forms.scss +1 -3
  36. package/core/forms/forms.directive.d.ts +2 -2
  37. package/core/locales/en-US.d.ts +19 -1
  38. package/core/locales/es-LA.d.ts +27 -0
  39. package/core/locales/fa-IR.d.ts +28 -0
  40. package/core/locales/locale-service.d.ts +148 -3
  41. package/core/locales/pt-BR.d.ts +27 -0
  42. package/core/locales/ru-RU.d.ts +20 -1
  43. package/core/locales/zh-CN.d.ts +26 -0
  44. package/core/option/_optgroup-theme.scss +1 -1
  45. package/core/option/_option-action-theme.scss +1 -1
  46. package/core/option/_option-theme.scss +37 -14
  47. package/core/option/action.d.ts +1 -1
  48. package/core/option/action.scss +4 -5
  49. package/core/option/optgroup.d.ts +1 -1
  50. package/core/option/option.d.ts +37 -8
  51. package/core/option/option.scss +5 -50
  52. package/core/overlay/overlay-position-map.d.ts +7 -1
  53. package/core/pop-up/constants.d.ts +2 -1
  54. package/core/public-api.d.ts +1 -0
  55. package/core/select/constants.d.ts +2 -2
  56. package/core/services/theme.service.d.ts +23 -0
  57. package/core/styles/_koobiq-theme.scss +12 -1
  58. package/core/styles/_tokens.kbq.import.scss +4 -4
  59. package/core/styles/_tokens.scss +4 -4
  60. package/core/styles/_variables.scss +1 -0
  61. package/core/styles/common/_animation.scss +10 -6
  62. package/core/styles/common/_list.scss +123 -0
  63. package/core/styles/common/_overlay.scss +1 -1
  64. package/core/styles/common/_select.scss +232 -0
  65. package/core/styles/theming/_components-theming.scss +685 -92
  66. package/core/styles/theming/_theming.scss +201 -30
  67. package/core/styles/typography/_typography.scss +175 -5
  68. package/datepicker/_datepicker-theme.scss +43 -57
  69. package/datepicker/calendar-body.component.d.ts +1 -1
  70. package/datepicker/calendar-body.scss +11 -26
  71. package/datepicker/calendar-header.component.d.ts +9 -3
  72. package/datepicker/calendar-header.scss +7 -31
  73. package/datepicker/calendar.component.d.ts +4 -5
  74. package/datepicker/calendar.scss +20 -25
  75. package/datepicker/datepicker-animations.d.ts +2 -2
  76. package/datepicker/datepicker-content.scss +17 -10
  77. package/datepicker/datepicker-input.directive.d.ts +4 -4
  78. package/datepicker/datepicker-input.scss +1 -1
  79. package/datepicker/datepicker-toggle.component.d.ts +3 -3
  80. package/datepicker/datepicker.component.d.ts +2 -2
  81. package/datepicker/month-view.component.d.ts +5 -6
  82. package/dl/_dl-theme.scss +2 -56
  83. package/dl/dl.component.d.ts +1 -2
  84. package/dl/dl.scss +10 -47
  85. package/dropdown/_dropdown-theme.scss +29 -37
  86. package/dropdown/dropdown-animations.d.ts +1 -1
  87. package/dropdown/dropdown-content.directive.d.ts +1 -1
  88. package/dropdown/dropdown-item.component.d.ts +1 -1
  89. package/dropdown/dropdown-item.scss +18 -40
  90. package/dropdown/dropdown-trigger.directive.d.ts +2 -2
  91. package/dropdown/dropdown.component.d.ts +1 -1
  92. package/dropdown/dropdown.scss +16 -39
  93. package/dropdown/dropdown.types.d.ts +1 -1
  94. package/esm2022/alert/alert.component.mjs +3 -3
  95. package/esm2022/autocomplete/autocomplete-origin.directive.mjs +4 -4
  96. package/esm2022/autocomplete/autocomplete-trigger.directive.mjs +34 -31
  97. package/esm2022/autocomplete/autocomplete.component.mjs +4 -4
  98. package/esm2022/badge/badge.component.mjs +122 -0
  99. package/esm2022/badge/badge.module.mjs +40 -0
  100. package/esm2022/badge/index.mjs +2 -0
  101. package/esm2022/badge/koobiq-components-badge.mjs +5 -0
  102. package/esm2022/badge/public-api.mjs +3 -0
  103. package/esm2022/button/button.component.mjs +4 -3
  104. package/esm2022/button-toggle/button-toggle.component.mjs +15 -15
  105. package/esm2022/checkbox/checkbox.mjs +4 -4
  106. package/esm2022/code-block/actionbar.component.mjs +3 -3
  107. package/esm2022/code-block/code-block.component.mjs +4 -4
  108. package/esm2022/core/animation/index.mjs +2 -2
  109. package/esm2022/core/animation/select-animations.mjs +4 -4
  110. package/esm2022/core/common-behaviors/color.mjs +1 -1
  111. package/esm2022/core/common-behaviors/common-module.mjs +2 -2
  112. package/esm2022/core/formatters/index.mjs +10 -2
  113. package/esm2022/core/formatters/number/formatter.mjs +224 -3
  114. package/esm2022/core/forms/forms.directive.mjs +5 -5
  115. package/esm2022/core/locales/en-US.mjs +22 -4
  116. package/esm2022/core/locales/es-LA.mjs +31 -2
  117. package/esm2022/core/locales/fa-IR.mjs +30 -2
  118. package/esm2022/core/locales/locale-service.mjs +4 -4
  119. package/esm2022/core/locales/pt-BR.mjs +29 -2
  120. package/esm2022/core/locales/ru-RU.mjs +23 -2
  121. package/esm2022/core/locales/zh-CN.mjs +28 -2
  122. package/esm2022/core/option/action.mjs +8 -7
  123. package/esm2022/core/option/optgroup.mjs +3 -3
  124. package/esm2022/core/option/option.mjs +47 -10
  125. package/esm2022/core/overlay/overlay-position-map.mjs +8 -1
  126. package/esm2022/core/pop-up/constants.mjs +2 -1
  127. package/esm2022/core/pop-up/pop-up-trigger.mjs +12 -3
  128. package/esm2022/core/public-api.mjs +2 -1
  129. package/esm2022/core/select/constants.mjs +3 -3
  130. package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +3 -3
  131. package/esm2022/core/services/theme.service.mjs +60 -0
  132. package/esm2022/core/version.mjs +2 -2
  133. package/esm2022/datepicker/calendar-body.component.mjs +7 -5
  134. package/esm2022/datepicker/calendar-header.component.mjs +9 -8
  135. package/esm2022/datepicker/calendar.component.mjs +8 -17
  136. package/esm2022/datepicker/datepicker-animations.mjs +3 -3
  137. package/esm2022/datepicker/datepicker-input.directive.mjs +29 -20
  138. package/esm2022/datepicker/datepicker-toggle.component.mjs +6 -6
  139. package/esm2022/datepicker/datepicker.component.mjs +12 -12
  140. package/esm2022/datepicker/month-view.component.mjs +9 -18
  141. package/esm2022/dl/dl.component.mjs +3 -7
  142. package/esm2022/dropdown/dropdown-animations.mjs +4 -4
  143. package/esm2022/dropdown/dropdown-content.directive.mjs +3 -3
  144. package/esm2022/dropdown/dropdown-errors.mjs +6 -6
  145. package/esm2022/dropdown/dropdown-item.component.mjs +7 -6
  146. package/esm2022/dropdown/dropdown-trigger.directive.mjs +10 -9
  147. package/esm2022/dropdown/dropdown.component.mjs +9 -9
  148. package/esm2022/dropdown/dropdown.types.mjs +1 -1
  149. package/esm2022/file-upload/file-drop.mjs +43 -6
  150. package/esm2022/file-upload/file-upload.mjs +1 -1
  151. package/esm2022/file-upload/multiple-file-upload.component.mjs +13 -9
  152. package/esm2022/file-upload/single-file-upload.component.mjs +16 -13
  153. package/esm2022/form-field/cleaner.mjs +3 -3
  154. package/esm2022/form-field/form-field.mjs +12 -15
  155. package/esm2022/form-field/hint.mjs +16 -6
  156. package/esm2022/form-field/password-hint.mjs +25 -16
  157. package/esm2022/form-field/password-toggle.mjs +29 -12
  158. package/esm2022/form-field/prefix.mjs +3 -3
  159. package/esm2022/form-field/suffix.mjs +3 -3
  160. package/esm2022/form-field/validate.directive.mjs +15 -9
  161. package/esm2022/icon/icon-button.component.mjs +68 -0
  162. package/esm2022/icon/icon-item.component.mjs +27 -0
  163. package/esm2022/icon/icon.component.mjs +5 -90
  164. package/esm2022/icon/icon.module.mjs +4 -2
  165. package/esm2022/icon/public-api.mjs +3 -1
  166. package/esm2022/input/input-errors.mjs +2 -2
  167. package/esm2022/input/input-number.mjs +260 -44
  168. package/esm2022/input/input-password.mjs +5 -5
  169. package/esm2022/input/input.mjs +7 -7
  170. package/esm2022/link/link.component.mjs +14 -13
  171. package/esm2022/list/list-selection.component.mjs +23 -10
  172. package/esm2022/list/list.component.mjs +2 -2
  173. package/esm2022/list/list.module.mjs +8 -4
  174. package/esm2022/loader-overlay/loader-overlay.component.mjs +20 -19
  175. package/esm2022/modal/modal-control.service.mjs +5 -5
  176. package/esm2022/modal/modal-ref.class.mjs +1 -1
  177. package/esm2022/modal/modal.component.mjs +129 -134
  178. package/esm2022/modal/modal.module.mjs +13 -7
  179. package/esm2022/modal/modal.service.mjs +23 -23
  180. package/esm2022/modal/modal.type.mjs +1 -3
  181. package/esm2022/navbar/navbar-item.component.mjs +19 -18
  182. package/esm2022/navbar/navbar.component.mjs +18 -9
  183. package/esm2022/navbar/vertical-navbar.animation.mjs +2 -2
  184. package/esm2022/navbar/vertical-navbar.component.mjs +9 -6
  185. package/esm2022/popover/popover-animations.mjs +2 -2
  186. package/esm2022/popover/popover-confirm.component.mjs +9 -11
  187. package/esm2022/popover/popover.component.mjs +24 -24
  188. package/esm2022/progress-spinner/progress-spinner.component.mjs +1 -1
  189. package/esm2022/radio/radio.component.mjs +11 -8
  190. package/esm2022/risk-level/index.mjs +2 -0
  191. package/esm2022/risk-level/koobiq-components-risk-level.mjs +5 -0
  192. package/esm2022/risk-level/public-api.mjs +3 -0
  193. package/esm2022/risk-level/risk-level.component.mjs +40 -0
  194. package/esm2022/risk-level/risk-level.module.mjs +28 -0
  195. package/esm2022/select/select-option.directive.mjs +15 -3
  196. package/esm2022/select/select.component.mjs +47 -29
  197. package/esm2022/sidebar/sidebar-animations.mjs +2 -2
  198. package/esm2022/sidebar/sidebar.component.mjs +9 -9
  199. package/esm2022/sidepanel/sidepanel-container.component.mjs +3 -3
  200. package/esm2022/sidepanel/sidepanel-directives.mjs +8 -10
  201. package/esm2022/sidepanel/sidepanel.module.mjs +10 -4
  202. package/esm2022/splitter/splitter.component.mjs +3 -3
  203. package/esm2022/table/table.component.mjs +3 -3
  204. package/esm2022/tabs/paginated-tab-header.mjs +11 -2
  205. package/esm2022/tabs/tab-body.component.mjs +7 -7
  206. package/esm2022/tabs/tab-content.directive.mjs +3 -3
  207. package/esm2022/tabs/tab-group.component.mjs +16 -21
  208. package/esm2022/tabs/tab-header.component.mjs +2 -2
  209. package/esm2022/tabs/tab-label-wrapper.directive.mjs +4 -3
  210. package/esm2022/tabs/tab-label.directive.mjs +3 -3
  211. package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +21 -10
  212. package/esm2022/tabs/tab.component.mjs +14 -5
  213. package/esm2022/tabs/tabs-animations.mjs +2 -2
  214. package/esm2022/tabs/tabs.module.mjs +2 -6
  215. package/esm2022/tags/tag-default-options.mjs +1 -1
  216. package/esm2022/tags/tag-input.mjs +17 -15
  217. package/esm2022/tags/tag-list.component.mjs +15 -10
  218. package/esm2022/tags/tag.component.mjs +16 -16
  219. package/esm2022/textarea/textarea.component.mjs +4 -4
  220. package/esm2022/timepicker/timepicker.directive.mjs +10 -10
  221. package/esm2022/timezone/timezone-option.component.mjs +4 -4
  222. package/esm2022/timezone/timezone-select.component.mjs +5 -5
  223. package/esm2022/title/title.directive.mjs +6 -6
  224. package/esm2022/toast/toast-animations.mjs +2 -1
  225. package/esm2022/toast/toast-container.component.mjs +22 -8
  226. package/esm2022/toast/toast.component.mjs +30 -13
  227. package/esm2022/toast/toast.module.mjs +23 -8
  228. package/esm2022/toast/toast.service.mjs +2 -1
  229. package/esm2022/toast/toast.type.mjs +6 -1
  230. package/esm2022/toggle/toggle.component.mjs +4 -4
  231. package/esm2022/tooltip/tooltip.animations.mjs +2 -2
  232. package/esm2022/tooltip/tooltip.component.mjs +29 -28
  233. package/esm2022/tree/control/base-tree-control.mjs +1 -1
  234. package/esm2022/tree/control/flat-tree-control.mjs +4 -4
  235. package/esm2022/tree/control/tree-control.mjs +1 -1
  236. package/esm2022/tree/node.mjs +5 -5
  237. package/esm2022/tree/outlet.mjs +3 -3
  238. package/esm2022/tree/padding.directive.mjs +9 -9
  239. package/esm2022/tree/toggle.mjs +11 -12
  240. package/esm2022/tree/tree-base.mjs +3 -3
  241. package/esm2022/tree/tree-option.component.mjs +12 -10
  242. package/esm2022/tree/tree-selection.component.mjs +8 -6
  243. package/esm2022/tree/tree.mjs +3 -3
  244. package/esm2022/tree/tree.module.mjs +13 -4
  245. package/esm2022/tree-select/tree-select.component.mjs +28 -23
  246. package/fesm2022/koobiq-components-alert.mjs +2 -2
  247. package/fesm2022/koobiq-components-alert.mjs.map +1 -1
  248. package/fesm2022/koobiq-components-autocomplete.mjs +40 -37
  249. package/fesm2022/koobiq-components-autocomplete.mjs.map +1 -1
  250. package/fesm2022/koobiq-components-badge.mjs +166 -0
  251. package/fesm2022/koobiq-components-badge.mjs.map +1 -0
  252. package/fesm2022/koobiq-components-button-toggle.mjs +14 -14
  253. package/fesm2022/koobiq-components-button-toggle.mjs.map +1 -1
  254. package/fesm2022/koobiq-components-button.mjs +3 -2
  255. package/fesm2022/koobiq-components-button.mjs.map +1 -1
  256. package/fesm2022/koobiq-components-checkbox.mjs +3 -3
  257. package/fesm2022/koobiq-components-checkbox.mjs.map +1 -1
  258. package/fesm2022/koobiq-components-code-block.mjs +5 -5
  259. package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
  260. package/fesm2022/koobiq-components-core.mjs +535 -46
  261. package/fesm2022/koobiq-components-core.mjs.map +1 -1
  262. package/fesm2022/koobiq-components-datepicker.mjs +73 -79
  263. package/fesm2022/koobiq-components-datepicker.mjs.map +1 -1
  264. package/fesm2022/koobiq-components-dl.mjs +2 -6
  265. package/fesm2022/koobiq-components-dl.mjs.map +1 -1
  266. package/fesm2022/koobiq-components-dropdown.mjs +33 -31
  267. package/fesm2022/koobiq-components-dropdown.mjs.map +1 -1
  268. package/fesm2022/koobiq-components-file-upload.mjs +65 -21
  269. package/fesm2022/koobiq-components-file-upload.mjs.map +1 -1
  270. package/fesm2022/koobiq-components-form-field.mjs +96 -59
  271. package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
  272. package/fesm2022/koobiq-components-icon.mjs +10 -8
  273. package/fesm2022/koobiq-components-icon.mjs.map +1 -1
  274. package/fesm2022/koobiq-components-input.mjs +269 -55
  275. package/fesm2022/koobiq-components-input.mjs.map +1 -1
  276. package/fesm2022/koobiq-components-link.mjs +13 -12
  277. package/fesm2022/koobiq-components-link.mjs.map +1 -1
  278. package/fesm2022/koobiq-components-list.mjs +31 -14
  279. package/fesm2022/koobiq-components-list.mjs.map +1 -1
  280. package/fesm2022/koobiq-components-loader-overlay.mjs +19 -18
  281. package/fesm2022/koobiq-components-loader-overlay.mjs.map +1 -1
  282. package/fesm2022/koobiq-components-modal.mjs +164 -167
  283. package/fesm2022/koobiq-components-modal.mjs.map +1 -1
  284. package/fesm2022/koobiq-components-navbar.mjs +42 -33
  285. package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
  286. package/fesm2022/koobiq-components-popover.mjs +32 -33
  287. package/fesm2022/koobiq-components-popover.mjs.map +1 -1
  288. package/fesm2022/koobiq-components-progress-spinner.mjs.map +1 -1
  289. package/fesm2022/koobiq-components-radio.mjs +10 -7
  290. package/fesm2022/koobiq-components-radio.mjs.map +1 -1
  291. package/fesm2022/koobiq-components-risk-level.mjs +72 -0
  292. package/fesm2022/koobiq-components-risk-level.mjs.map +1 -0
  293. package/fesm2022/koobiq-components-select.mjs +60 -30
  294. package/fesm2022/koobiq-components-select.mjs.map +1 -1
  295. package/fesm2022/koobiq-components-sidebar.mjs +8 -8
  296. package/fesm2022/koobiq-components-sidebar.mjs.map +1 -1
  297. package/fesm2022/koobiq-components-sidepanel.mjs +19 -14
  298. package/fesm2022/koobiq-components-sidepanel.mjs.map +1 -1
  299. package/fesm2022/koobiq-components-splitter.mjs +2 -2
  300. package/fesm2022/koobiq-components-splitter.mjs.map +1 -1
  301. package/fesm2022/koobiq-components-table.mjs +2 -2
  302. package/fesm2022/koobiq-components-table.mjs.map +1 -1
  303. package/fesm2022/koobiq-components-tabs.mjs +74 -53
  304. package/fesm2022/koobiq-components-tabs.mjs.map +1 -1
  305. package/fesm2022/koobiq-components-tags.mjs +45 -38
  306. package/fesm2022/koobiq-components-tags.mjs.map +1 -1
  307. package/fesm2022/koobiq-components-textarea.mjs +3 -3
  308. package/fesm2022/koobiq-components-textarea.mjs.map +1 -1
  309. package/fesm2022/koobiq-components-timepicker.mjs +9 -9
  310. package/fesm2022/koobiq-components-timepicker.mjs.map +1 -1
  311. package/fesm2022/koobiq-components-timezone.mjs +7 -7
  312. package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
  313. package/fesm2022/koobiq-components-title.mjs +5 -5
  314. package/fesm2022/koobiq-components-title.mjs.map +1 -1
  315. package/fesm2022/koobiq-components-toast.mjs +71 -22
  316. package/fesm2022/koobiq-components-toast.mjs.map +1 -1
  317. package/fesm2022/koobiq-components-toggle.mjs +3 -3
  318. package/fesm2022/koobiq-components-toggle.mjs.map +1 -1
  319. package/fesm2022/koobiq-components-tooltip.mjs +29 -28
  320. package/fesm2022/koobiq-components-tooltip.mjs.map +1 -1
  321. package/fesm2022/koobiq-components-tree-select.mjs +27 -22
  322. package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
  323. package/fesm2022/koobiq-components-tree.mjs +67 -54
  324. package/fesm2022/koobiq-components-tree.mjs.map +1 -1
  325. package/file-upload/_file-upload-theme.scss +54 -40
  326. package/file-upload/file-drop.d.ts +3 -2
  327. package/file-upload/file-upload.d.ts +4 -1
  328. package/file-upload/file-upload.scss +2 -9
  329. package/file-upload/multiple-file-upload.component.d.ts +6 -5
  330. package/file-upload/multiple-file-upload.component.scss +170 -59
  331. package/file-upload/single-file-upload.component.d.ts +6 -5
  332. package/file-upload/single-file-upload.component.scss +42 -22
  333. package/form-field/_form-field-theme.scss +3 -6
  334. package/form-field/_hint-theme.scss +6 -2
  335. package/form-field/cleaner.d.ts +1 -1
  336. package/form-field/form-field.d.ts +3 -4
  337. package/form-field/form-field.scss +2 -2
  338. package/form-field/hint.d.ts +4 -1
  339. package/form-field/hint.scss +9 -1
  340. package/form-field/password-hint.d.ts +7 -3
  341. package/form-field/password-hint.scss +6 -0
  342. package/form-field/password-toggle.d.ts +13 -7
  343. package/form-field/prefix.d.ts +1 -1
  344. package/form-field/suffix.d.ts +1 -1
  345. package/form-field/validate.directive.d.ts +1 -1
  346. package/icon/_icon-button-theme.scss +129 -0
  347. package/icon/_icon-item-theme.scss +41 -0
  348. package/icon/_icon-theme.scss +1 -232
  349. package/icon/icon-button.component.d.ts +22 -0
  350. package/icon/icon-button.scss +33 -0
  351. package/icon/icon-item.component.d.ts +10 -0
  352. package/icon/icon-item.scss +18 -0
  353. package/icon/icon.component.d.ts +1 -25
  354. package/icon/icon.module.d.ts +6 -4
  355. package/icon/icon.scss +0 -41
  356. package/icon/public-api.d.ts +2 -0
  357. package/input/_input-theme.scss +2 -1
  358. package/input/input-number.d.ts +61 -10
  359. package/input/input-password.d.ts +1 -1
  360. package/input/input.d.ts +2 -2
  361. package/input/input.scss +3 -1
  362. package/link/_link-theme.scss +101 -92
  363. package/link/link.component.d.ts +4 -4
  364. package/list/_list-theme.scss +36 -17
  365. package/list/list-selection.component.d.ts +6 -2
  366. package/list/list.module.d.ts +1 -1
  367. package/list/list.scss +6 -19
  368. package/loader-overlay/_loader-overlay-theme.scss +43 -11
  369. package/loader-overlay/loader-overlay.component.d.ts +6 -5
  370. package/loader-overlay/loader-overlay.scss +56 -22
  371. package/markdown/_markdown-theme.scss +2 -2
  372. package/modal/README.md +5 -5
  373. package/modal/_modal-confirm.scss +5 -37
  374. package/modal/_modal-theme.scss +14 -52
  375. package/modal/modal-ref.class.d.ts +2 -2
  376. package/modal/modal.component.d.ts +53 -52
  377. package/modal/modal.module.d.ts +2 -1
  378. package/modal/modal.scss +50 -31
  379. package/modal/modal.type.d.ts +35 -36
  380. package/navbar/_navbar-theme.scss +2 -2
  381. package/navbar/navbar-item.component.d.ts +4 -3
  382. package/navbar/navbar.component.d.ts +5 -2
  383. package/navbar/vertical-navbar.component.d.ts +4 -2
  384. package/package.json +48 -38
  385. package/popover/README.md +14 -14
  386. package/popover/_popover-theme.scss +15 -78
  387. package/popover/popover-animations.d.ts +1 -1
  388. package/popover/popover-confirm.component.d.ts +1 -3
  389. package/popover/popover.component.d.ts +3 -3
  390. package/popover/popover.scss +60 -50
  391. package/prebuilt-themes/dark-theme.css +1 -1
  392. package/prebuilt-themes/light-theme.css +1 -1
  393. package/progress-spinner/progress-spinner.component.d.ts +2 -2
  394. package/radio/_radio-theme.scss +17 -4
  395. package/radio/radio.component.d.ts +2 -2
  396. package/radio/radio.scss +13 -0
  397. package/risk-level/README.md +0 -0
  398. package/risk-level/_risk-level-theme.scss +88 -0
  399. package/risk-level/index.d.ts +1 -0
  400. package/risk-level/public-api.d.ts +2 -0
  401. package/risk-level/risk-level.component.d.ts +18 -0
  402. package/risk-level/risk-level.component.scss +26 -0
  403. package/risk-level/risk-level.module.d.ts +10 -0
  404. package/select/_select-theme.scss +12 -4
  405. package/select/select-option.directive.d.ts +2 -0
  406. package/select/select.component.d.ts +15 -12
  407. package/select/select.scss +6 -190
  408. package/sidebar/sidebar-animations.d.ts +1 -1
  409. package/sidebar/sidebar.component.d.ts +3 -3
  410. package/sidepanel/_sidepanel-theme.scss +11 -41
  411. package/sidepanel/sidepanel-directives.d.ts +0 -2
  412. package/sidepanel/sidepanel.scss +33 -35
  413. package/splitter/_splitter-theme.scss +1 -0
  414. package/splitter/splitter.component.d.ts +1 -1
  415. package/table/_table-theme.scss +1 -1
  416. package/table/table.component.d.ts +1 -1
  417. package/tabs/_tabs-common.scss +28 -147
  418. package/tabs/_tabs-theme.scss +81 -175
  419. package/tabs/paginated-tab-header.d.ts +1 -0
  420. package/tabs/tab-body.component.d.ts +1 -1
  421. package/tabs/tab-content.directive.d.ts +1 -1
  422. package/tabs/tab-group.component.d.ts +5 -8
  423. package/tabs/tab-group.scss +10 -10
  424. package/tabs/tab-header.scss +2 -24
  425. package/tabs/tab-label-wrapper.directive.d.ts +1 -1
  426. package/tabs/tab-label.directive.d.ts +1 -1
  427. package/tabs/tab-nav-bar/tab-nav-bar.d.ts +4 -2
  428. package/tabs/tab-nav-bar/tab-nav-bar.scss +9 -16
  429. package/tabs/tab.component.d.ts +1 -1
  430. package/tabs/tabs-animations.d.ts +1 -1
  431. package/tabs/tabs.module.d.ts +1 -1
  432. package/tags/_tag-theme.scss +1 -25
  433. package/tags/tag-default-options.d.ts +4 -0
  434. package/tags/tag-input.d.ts +2 -2
  435. package/tags/tag-list.component.d.ts +3 -2
  436. package/tags/tag-list.scss +26 -16
  437. package/tags/tag.component.d.ts +6 -6
  438. package/textarea/textarea.component.d.ts +1 -1
  439. package/timepicker/timepicker.directive.d.ts +2 -2
  440. package/timezone/timezone-option.component.d.ts +1 -1
  441. package/timezone/timezone-select.component.d.ts +1 -1
  442. package/title/title.directive.d.ts +1 -1
  443. package/toast/_toast-theme.scss +21 -33
  444. package/toast/toast-animations.d.ts +1 -0
  445. package/toast/toast-container.component.d.ts +7 -3
  446. package/toast/toast-container.component.scss +2 -1
  447. package/toast/toast.component.d.ts +6 -1
  448. package/toast/toast.component.scss +41 -34
  449. package/toast/toast.module.d.ts +1 -1
  450. package/toast/toast.service.d.ts +2 -0
  451. package/toast/toast.type.d.ts +8 -5
  452. package/toggle/_toggle-theme.scss +9 -1
  453. package/toggle/toggle.component.d.ts +1 -1
  454. package/toggle/toggle.scss +5 -2
  455. package/tooltip/tooltip.animations.d.ts +1 -1
  456. package/tooltip/tooltip.component.d.ts +5 -5
  457. package/tree/_tree-theme.scss +46 -34
  458. package/tree/control/base-tree-control.d.ts +1 -1
  459. package/tree/control/tree-control.d.ts +1 -1
  460. package/tree/node.d.ts +1 -1
  461. package/tree/outlet.d.ts +1 -1
  462. package/tree/padding.directive.d.ts +1 -1
  463. package/tree/toggle.d.ts +3 -3
  464. package/tree/tree-base.d.ts +1 -1
  465. package/tree/tree-option.component.d.ts +1 -2
  466. package/tree/tree-option.scss +40 -27
  467. package/tree/tree-selection.component.d.ts +1 -1
  468. package/tree/tree.d.ts +1 -1
  469. package/tree/tree.module.d.ts +2 -1
  470. package/tree-select/_tree-select-theme.scss +13 -3
  471. package/tree-select/tree-select.component.d.ts +6 -4
  472. package/tree-select/tree-select.scss +5 -194
  473. package/core/styles/theming/_badges.scss +0 -57
  474. package/core/styles/theming/prebuilt/light-theme.scss +0 -20
  475. package/list/_list-base.scss +0 -54
@@ -7,8 +7,11 @@
7
7
 
8
8
  $tokens: meta.module-variables(tokens) !default;
9
9
 
10
+ /* stylelint-disable no-descending-specificity */
10
11
  @mixin kbq-file-upload-text-color($states) {
11
- &, .kbq-icon, .kbq-link {
12
+ &,
13
+ .kbq-icon,
14
+ .kbq-link {
12
15
  color: map.get($states, border);
13
16
  }
14
17
  }
@@ -20,15 +23,16 @@ $tokens: meta.module-variables(tokens) !default;
20
23
 
21
24
  @mixin kbq-file-upload-theme($theme) {
22
25
  $file-upload: map.get(map.get($theme, components), file-upload);
26
+
23
27
  $single: map.get($file-upload, single);
24
28
  $single-states: map.get($single, states);
29
+
25
30
  $multiple: map.get($file-upload, multiple);
26
31
  $multiple-states: map.get($multiple, states);
27
- $foreground: map.get($theme, foreground);
28
32
 
29
33
  .kbq-file-upload {
30
34
  .kbq-focused, .kbq-link.kbq-focused {
31
- border: 2px solid map.get(map.get($theme, states), focused-color);
35
+ border: 2px solid map.get(map.get($single, states), focused);
32
36
  }
33
37
  }
34
38
 
@@ -37,20 +41,23 @@ $tokens: meta.module-variables(tokens) !default;
37
41
  @include kbq-file-upload-color(map.get($single, default));
38
42
 
39
43
  &.dragover {
40
- @include kbq-file-upload-color(map.get($single-states, drag-n-drop));
44
+ @include kbq-file-upload-color(map.get($single-states, on-drag));
41
45
  }
42
46
 
43
- &.kbq-error:not(.disabled) {
47
+ &.kbq-error:not(.kbq-disabled) {
48
+ $state-error: map.get($single-states, error);
49
+
44
50
  &:not(.dragover) {
45
- @include kbq-file-upload-color(map.get($single-states, error));
51
+ @include kbq-file-upload-color($state-error);
46
52
  }
47
53
 
48
- *, .kbq-icon {
49
- color: map.get($foreground, text-error);
54
+ *,
55
+ .kbq-icon {
56
+ color: map.get($state-error, text-block);
50
57
  }
51
58
  }
52
59
 
53
- &.disabled {
60
+ &.kbq-disabled {
54
61
  @include kbq-file-upload-color(map.get($single-states, disabled));
55
62
 
56
63
  @include kbq-file-upload-text-color(map.get($single-states, disabled));
@@ -60,37 +67,37 @@ $tokens: meta.module-variables(tokens) !default;
60
67
 
61
68
  .kbq-multiple-file-upload {
62
69
  .kbq-file-upload {
63
- @include kbq-file-upload-color(map.get($multiple, default));
70
+ $default: map.get($multiple, default);
71
+
72
+ @include kbq-file-upload-color($default);
64
73
 
65
74
  .btn-upload {
66
- .dropzone {
67
- border-top-color: map.get(map.get($multiple, default), border);
68
- }
75
+ border-top-color: map.get($default, border);
69
76
  }
70
77
 
71
78
  .kbq-file-multiple-uploaded__header {
72
- border-bottom-color: map.get(map.get($multiple, default), border);
79
+ border-bottom-color: map.get($default, grid-divider);
73
80
 
74
- &-inner {
75
- color: map.get($foreground, text-less-contrast);
81
+ .kbq-file-multiple-uploaded__header-inner {
82
+ //color: map.get(map.get($multiple, default), border);;
76
83
  }
77
84
  }
78
85
 
79
86
  &.dragover {
80
- @include kbq-file-upload-color(map.get($multiple-states, drag-n-drop));
87
+ @include kbq-file-upload-color(map.get($multiple-states, on-drag));
81
88
 
82
89
  .kbq-file-multiple-uploaded__header {
83
- border-bottom-color: map.get(map.get($multiple-states, drag-n-drop), background) !important;
90
+ border-bottom-color: map.get(map.get($multiple-states, on-drag), background) !important;
84
91
  }
85
92
 
86
93
  &.selected {
87
94
  .dropzone {
88
- border-top-color: map.get(map.get($multiple-states, drag-n-drop), border);
95
+ border-top-color: map.get(map.get($multiple-states, on-drag), border);
89
96
  }
90
97
  }
91
98
  }
92
99
 
93
- &.disabled {
100
+ &.kbq-disabled {
94
101
  @include kbq-file-upload-color(map.get($multiple-states, disabled));
95
102
 
96
103
  @include kbq-file-upload-text-color(map.get($multiple-states, disabled));
@@ -102,25 +109,33 @@ $tokens: meta.module-variables(tokens) !default;
102
109
  }
103
110
  }
104
111
 
105
- &:not(.disabled) {
112
+ &:not(.kbq-disabled) {
106
113
  .kbq-file-upload__row.error {
107
- *, .kbq-icon {
108
- color: map.get($foreground, text-error);
114
+ $state-error: map.get($multiple-states, error);
115
+
116
+ *,
117
+ .kbq-icon {
118
+ color: map.get($state-error, text-block);
109
119
  }
110
120
  }
111
121
  }
112
122
 
113
123
  .multiple__uploaded-item {
114
- .kbq-list-text {
115
- padding-right: 0;
124
+ & .kbq-file-upload__file .kbq-icon {
125
+ color: map.get($default, left-icon)
126
+ }
127
+
128
+ & .kbq-file-upload__action .kbq-icon {
129
+ color: map.get($default, icon-button)
116
130
  }
117
131
  }
118
132
  }
119
133
  }
120
134
 
121
- .kbq-single-file-upload, .kbq-multiple-file-upload {
135
+ .kbq-single-file-upload,
136
+ .kbq-multiple-file-upload {
122
137
  .kbq-file-upload__hint:not(.kbq-error) {
123
- color: map-get($foreground, text-less-contrast);
138
+ //color: map-get($foreground, text-less-contrast);
124
139
  }
125
140
  }
126
141
  }
@@ -128,18 +143,22 @@ $tokens: meta.module-variables(tokens) !default;
128
143
 
129
144
  @mixin kbq-file-upload-typography($config) {
130
145
  .kbq-single-file-upload {
131
- @include kbq-typography-level-to-styles($config, map.get($tokens, file-upload-font-single));
146
+ & .file-item__text-wrapper,
147
+ & .dropzone__text {
148
+ @include kbq-typography-level-to-styles($config, map.get($tokens, file-upload-font-single-text-block));
149
+ }
132
150
  }
133
151
 
134
152
  .kbq-multiple-file-upload {
135
153
  .multiple__header {
136
- @include kbq-typography-level-to-styles($config, map.get($tokens, file-upload-font-multiple-header));
154
+ @include kbq-typography-level-to-styles($config, map.get($tokens, file-upload-font-multiple-title));
137
155
  }
138
156
 
139
157
  .multiple__caption {
140
- &, .kbq-link {
158
+ &,
159
+ .kbq-link {
141
160
  @include kbq-typography-level-to-styles(
142
- $config, map.get($tokens, file-upload-font-multiple-caption)
161
+ $config, map.get($tokens, file-upload-font-multiple-text-block)
143
162
  );
144
163
  }
145
164
  }
@@ -147,12 +166,12 @@ $tokens: meta.module-variables(tokens) !default;
147
166
  .kbq-file-multiple-uploaded__header {
148
167
  @include kbq-typography-level-to-styles(
149
168
  $config,
150
- map.get($tokens, file-upload-font-multiple-uploaded-header)
169
+ map.get($tokens, file-upload-font-multiple-grid)
151
170
  );
152
171
  }
153
172
 
154
173
  .multiple__uploaded-item {
155
- @include kbq-typography-level-to-styles($config, map.get($tokens, file-upload-font-multiple-uploaded-item));
174
+ @include kbq-typography-level-to-styles($config, map.get($tokens, file-upload-font-multiple-grid));
156
175
  }
157
176
 
158
177
  .kbq-file-upload {
@@ -160,15 +179,10 @@ $tokens: meta.module-variables(tokens) !default;
160
179
  .kbq-list-option {
161
180
  @include kbq-typography-level-to-styles(
162
181
  $config,
163
- map.get($tokens, file-upload-font-multiple-uploaded-item)
182
+ map.get($tokens, file-upload-font-multiple-grid)
164
183
  );
165
184
  }
166
185
  }
167
186
  }
168
-
169
- .kbq-single-file-upload, .kbq-multiple-file-upload {
170
- .kbq-file-upload__hint {
171
- @include kbq-typography-level-to-styles($config, map.get($tokens, form-field-hint-font-default));
172
- }
173
- }
174
187
  }
188
+ /* stylelint-enable no-descending-specificity */
@@ -1,11 +1,12 @@
1
1
  import { EventEmitter } from '@angular/core';
2
+ import { KbqFile } from './file-upload';
2
3
  import * as i0 from "@angular/core";
3
4
  export declare class KbqFileDropDirective {
4
5
  dragover: boolean;
5
- filesDropped: EventEmitter<FileList>;
6
+ filesDropped: EventEmitter<FileList | KbqFile[]>;
6
7
  onDragOver(event: DragEvent): void;
7
8
  onDragLeave(event: DragEvent): void;
8
9
  onDrop(event: DragEvent): void;
9
10
  static ɵfac: i0.ɵɵFactoryDeclaration<KbqFileDropDirective, never>;
10
- static ɵdir: i0.ɵɵDirectiveDeclaration<KbqFileDropDirective, "[mcFileDrop]", ["mcFileDrop"], {}, { "filesDropped": "filesDropped"; }, never, never, false, never>;
11
+ static ɵdir: i0.ɵɵDirectiveDeclaration<KbqFileDropDirective, "[kbqFileDrop]", ["kbqFileDrop"], {}, { "filesDropped": "filesDropped"; }, never, never, false, never>;
11
12
  }
@@ -1,5 +1,8 @@
1
1
  import { InjectionToken } from '@angular/core';
2
2
  import { BehaviorSubject } from 'rxjs';
3
+ export interface KbqFile extends File {
4
+ fullPath: string;
5
+ }
3
6
  export interface KbqFileItem {
4
7
  file: File;
5
8
  hasError?: boolean;
@@ -11,7 +14,7 @@ export interface KbqInputFile {
11
14
  files: KbqFileItem[] | KbqFileItem | null;
12
15
  accept?: string[];
13
16
  onFileSelectedViaClick(event: Event): void;
14
- onFileDropped(files: FileList): void;
17
+ onFileDropped(files: FileList | KbqFile[]): void;
15
18
  }
16
19
  export interface KbqInputFileLabel {
17
20
  captionText: string;
@@ -6,26 +6,19 @@
6
6
  @use '../core/styles/common';
7
7
 
8
8
  $tokens: meta.module-variables(tokens) !default;
9
- $dropzone-text-margin-left: map.get($tokens, size-xs);
10
9
 
11
10
  .kbq-file-upload {
12
11
  box-sizing: border-box;
13
12
  display: flex;
14
13
  align-items: center;
15
14
  position: relative;
16
- cursor: pointer;
17
15
 
18
- .dropzone, .file-item {
16
+ .dropzone,
17
+ .file-item {
19
18
  display: flex;
20
19
  align-items: center;
21
20
  }
22
21
 
23
- .dropzone {
24
- .dropzone__text {
25
- margin-left: $dropzone-text-margin-left;
26
- }
27
- }
28
-
29
22
  .kbq-ellipsis-center {
30
23
  position: relative;
31
24
  display: flex;
@@ -1,7 +1,7 @@
1
1
  import { FocusMonitor } from '@angular/cdk/a11y';
2
- import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, TemplateRef } from '@angular/core';
2
+ import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, Renderer2, TemplateRef } from '@angular/core';
3
3
  import { CanDisable } from '@koobiq/components/core';
4
- import { KbqFileItem, KbqFileValidatorFn, KbqInputFile, KbqInputFileLabel } from './file-upload';
4
+ import { KbqFile, KbqFileItem, KbqFileValidatorFn, KbqInputFile, KbqInputFileLabel } from './file-upload';
5
5
  import * as i0 from "@angular/core";
6
6
  export interface KbqInputFileMultipleLabel extends KbqInputFileLabel {
7
7
  captionTextWhenSelected: string;
@@ -16,6 +16,7 @@ export declare const KBQ_MULTIPLE_FILE_UPLOAD_DEFAULT_CONFIGURATION: KbqInputFil
16
16
  export declare class KbqMultipleFileUploadComponent implements AfterViewInit, OnDestroy, KbqInputFile, CanDisable {
17
17
  private focusMonitor;
18
18
  private cdr;
19
+ private renderer;
19
20
  config: KbqInputFileMultipleLabel;
20
21
  accept?: string[];
21
22
  disabled: boolean;
@@ -35,17 +36,17 @@ export declare class KbqMultipleFileUploadComponent implements AfterViewInit, On
35
36
  private focusMonitorSubscription;
36
37
  get acceptedFiles(): string;
37
38
  get hasErrors(): boolean;
38
- constructor(focusMonitor: FocusMonitor, cdr: ChangeDetectorRef, config: KbqInputFileMultipleLabel);
39
+ constructor(focusMonitor: FocusMonitor, cdr: ChangeDetectorRef, renderer: Renderer2, config: KbqInputFileMultipleLabel);
39
40
  ngAfterViewInit(): void;
40
41
  ngOnDestroy(): void;
41
42
  onFileSelectedViaClick({ target }: Event): void;
42
- onFileDropped(files: FileList): void;
43
+ onFileDropped(files: FileList | KbqFile[]): void;
43
44
  deleteFile(index: number, event?: MouseEvent): void;
44
45
  onFileListChange(): void;
45
46
  onFocus(focusState: boolean): void;
46
47
  private mapToFileItem;
47
48
  private validateFile;
48
49
  private isCorrectExtension;
49
- static ɵfac: i0.ɵɵFactoryDeclaration<KbqMultipleFileUploadComponent, [null, null, { optional: true; }]>;
50
+ static ɵfac: i0.ɵɵFactoryDeclaration<KbqMultipleFileUploadComponent, [null, null, null, { optional: true; }]>;
50
51
  static ɵcmp: i0.ɵɵComponentDeclaration<KbqMultipleFileUploadComponent, "kbq-multiple-file-upload", never, { "accept": { "alias": "accept"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "errors": { "alias": "errors"; "required": false; }; "files": { "alias": "files"; "required": false; }; "size": { "alias": "size"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; "customValidation": { "alias": "customValidation"; "required": false; }; }, { "fileQueueChanged": "fileQueueChanged"; }, ["customFileIcon"], ["[hint]"], false, never>;
51
52
  }
@@ -7,56 +7,119 @@
7
7
 
8
8
  $tokens: meta.module-variables(tokens) !default;
9
9
 
10
- $dropzone-text-margin-left: map.get($tokens, size-xs);
11
- $multiple-default-height: 176px;
12
- $border-type-header: solid;
13
-
14
- $horizontal-padding-item: var(
15
- --kbq-file-upload-size-multiple-uploaded-item-horizontal-padding,
16
- map.get($tokens, file-upload-size-multiple-uploaded-item-horizontal-padding)
17
- );
18
- $vertical-padding-item: var(
19
- --kbq-file-upload-size-multiple-uploaded-item-vertical-padding,
20
- map.get($tokens, file-upload-size-multiple-uploaded-item-vertical-padding)
21
- );
22
-
23
- .kbq-file-upload {
10
+ //todo нужно рефакторить со стилями тут сложно
11
+ /* stylelint-disable no-descending-specificity */
12
+
13
+ .kbq-multiple-file-upload .kbq-file-upload {
24
14
  border-radius: var(
25
- --kbq-file-upload-size-multiple-border-radius,
26
- map.get($tokens, file-upload-size-multiple-border-radius)
15
+ --kbq-file-upload-size-multiple-big-container-border-radius,
16
+ map.get($tokens, file-upload-size-multiple-big-container-border-radius)
27
17
  );
28
18
  border-width: var(
29
- --kbq-file-upload-size-multiple-border-width,
30
- map.get($tokens, file-upload-size-multiple-border-width)
31
- );
32
- border-style: var(
33
- --kbq-file-upload-size-multiple-border-style,
34
- map.get($tokens, file-upload-size-multiple-border-style)
19
+ --kbq-file-upload-size-multiple-big-container-border-width,
20
+ map.get($tokens, file-upload-size-multiple-big-container-border-width)
35
21
  );
22
+ border-style: dashed;
36
23
 
37
- &.default {
38
- min-height: $multiple-default-height;
24
+ &.default:not(.selected) {
39
25
  justify-content: center;
40
- }
41
26
 
42
- &.compact:not(.selected) {
43
- height: var(
44
- --kbq-file-upload-size-single-height,
45
- map.get($tokens, file-upload-size-single-height)
46
- );
47
- padding-top: var(
48
- --kbq-file-upload-size-single-vertical-padding,
49
- map.get($tokens, file-upload-size-single-vertical-padding)
27
+ padding:
28
+ var(
29
+ --kbq-file-upload-size-multiple-big-container-padding-vertical,
30
+ map.get($tokens, file-upload-size-multiple-big-container-padding-vertical)
31
+ )
32
+ var(
33
+ --kbq-file-upload-size-multiple-big-container-padding-vertical,
34
+ map.get($tokens, file-upload-size-multiple-big-container-padding-vertical)
35
+ );
36
+
37
+ min-height: var(
38
+ --kbq-file-upload-size-multiple-big-container-min-height,
39
+ map.get($tokens, file-upload-size-multiple-big-container-min-height)
50
40
  );
51
- padding-bottom: var(
52
- --kbq-file-upload-size-single-vertical-padding,
53
- map.get($tokens, file-upload-size-single-vertical-padding)
41
+
42
+ min-width: var(
43
+ --kbq-file-upload-size-multiple-big-container-min-width,
44
+ map.get($tokens, file-upload-size-multiple-big-container-min-width)
54
45
  );
55
- padding-left: map.get($tokens, size-m);
46
+
47
+ & .dropzone {
48
+ gap: var(
49
+ --kbq-file-upload-size-multiple-big-container-content-gap-horizontal,
50
+ map.get($tokens, file-upload-size-multiple-big-container-content-gap-horizontal)
51
+ );
52
+ }
53
+
54
+ & .dropzone__text {
55
+ & .multiple__caption {
56
+ padding-top: var(
57
+ --kbq-file-upload-size-multiple-big-text-block-content-gap-vertical,
58
+ map.get($tokens, file-upload-size-multiple-big-text-block-content-gap-vertical)
59
+ );
60
+
61
+ gap: var(
62
+ --kbq-file-upload-size-multiple-big-text-block-content-gap-horizontal,
63
+ map.get($tokens, file-upload-size-multiple-big-text-block-content-gap-horizontal)
64
+ );
65
+ }
66
+ }
56
67
  }
57
68
 
58
- .kbq-list-option {
59
- padding: $horizontal-padding-item $vertical-padding-item;
69
+ &.compact:not(.selected) {
70
+ padding:
71
+ var(
72
+ --kbq-file-upload-size-single-container-padding-vertical,
73
+ map.get($tokens, file-upload-size-single-container-padding-vertical)
74
+ )
75
+ var(
76
+ --kbq-file-upload-size-single-container-padding-horizontal,
77
+ map.get($tokens, file-upload-size-single-container-padding-horizontal)
78
+ );
79
+
80
+ & .dropzone {
81
+ gap: var(
82
+ --kbq-file-upload-size-single-container-content-gap-horizontal,
83
+ map.get($tokens, file-upload-size-single-container-content-gap-horizontal)
84
+ );
85
+
86
+ & .dropzone__text.multiple__caption {
87
+ padding-top: var(
88
+ --kbq-file-upload-size-single-text-block-padding-vertical,
89
+ map.get($tokens, file-upload-size-single-text-block-padding-vertical)
90
+ );
91
+
92
+ padding-bottom: var(
93
+ --kbq-file-upload-size-single-text-block-padding-vertical,
94
+ map.get($tokens, file-upload-size-single-text-block-padding-vertical)
95
+ );
96
+
97
+ gap: var(
98
+ --kbq-file-upload-size-single-text-block-content-gap-horizontal,
99
+ map.get($tokens, file-upload-size-single-text-block-content-gap-horizontal)
100
+ );
101
+ }
102
+ }
103
+ }
104
+
105
+ & .kbq-list-option.multiple__uploaded-item {
106
+ padding: 0;
107
+
108
+ & .kbq-list-text {
109
+ $padding-vertical: map.get($tokens, file-upload-size-multiple-big-grid-cell-padding-vertical);
110
+ $padding-horizontal: map.get($tokens, file-upload-size-multiple-big-grid-cell-padding-horizontal);
111
+ $outline-width: map.get($tokens, list-size-container-focus-outline-width);
112
+
113
+ padding:
114
+ calc(
115
+ var(--kbq-file-upload-size-multiple-big-grid-cell-padding-vertical, $padding-vertical) -
116
+ var(--kbq-list-size-container-focus-outline-width, $outline-width)
117
+ )
118
+ calc(
119
+ var(--kbq-file-upload-size-multiple-big-grid-cell-padding-horizontal, $padding-horizontal) -
120
+ var(--kbq-list-size-container-focus-outline-width, $outline-width)
121
+ );
122
+ }
60
123
 
61
124
  .kbq-icon {
62
125
  margin-right: 0;
@@ -75,6 +138,11 @@ $vertical-padding-item: var(
75
138
  .kbq-file-upload__file {
76
139
  width: 65%;
77
140
  max-width: 65%;
141
+
142
+ gap: var(
143
+ --kbq-file-upload-size-multiple-big-grid-cell-content-gap-horizontal,
144
+ map.get($tokens, file-upload-size-multiple-big-grid-cell-content-gap-horizontal)
145
+ );
78
146
  }
79
147
 
80
148
  .kbq-file-upload__size {
@@ -87,8 +155,8 @@ $vertical-padding-item: var(
87
155
  .kbq-file-upload__file,
88
156
  .kbq-file-upload__size,
89
157
  .kbq-file-upload__action, {
90
- padding-left: $horizontal-padding-item;
91
- padding-right: $horizontal-padding-item;
158
+ //padding-left: $horizontal-padding-item;
159
+ //padding-right: $horizontal-padding-item;
92
160
  }
93
161
  }
94
162
 
@@ -106,30 +174,72 @@ $vertical-padding-item: var(
106
174
 
107
175
  .kbq-file-multiple-uploaded__header {
108
176
  border-bottom-width: 1px;
109
- border-bottom-style: $border-type-header;
110
-
111
- &-inner {
112
- padding: $horizontal-padding-item $vertical-padding-item;
113
- border: 2px solid transparent;
114
- border-bottom: unset;
115
- box-sizing: border-box;
116
- height: var(--kbq-list-size-item-height, map.get($tokens, size-3xl));
177
+ border-bottom-style: solid;
178
+
179
+ .kbq-file-multiple-uploaded__header-inner {
180
+ $padding-vertical: map.get($tokens, file-upload-size-multiple-big-grid-cell-padding-vertical);
181
+ $padding-horizontal: map.get($tokens, file-upload-size-multiple-big-grid-cell-padding-horizontal);
182
+ $compensation: 3px;
183
+
184
+ padding:
185
+ calc(
186
+ var(--kbq-file-upload-size-multiple-big-grid-cell-padding-vertical, $padding-vertical) +
187
+ $compensation
188
+ )
189
+ calc(
190
+ var(--kbq-file-upload-size-multiple-big-grid-cell-padding-horizontal, $padding-horizontal) +
191
+ $compensation
192
+ );
117
193
  }
118
194
 
119
195
  }
120
196
 
121
197
  .btn-upload {
122
- .dropzone {
123
- margin: 0;
124
- border-top-width: var(
125
- --kbq-file-upload-size-multiple-border-width,
126
- map.get($tokens, file-upload-size-multiple-border-width)
127
- );
128
- border-top-style: var(
129
- --kbq-file-upload-size-multiple-border-style,
130
- map.get($tokens, file-upload-size-multiple-border-style)
198
+ $padding-vertical: map.get($tokens, file-upload-size-single-container-padding-vertical);
199
+ $padding-horizontal: map.get($tokens, file-upload-size-single-container-padding-horizontal);
200
+ $border-width: map.get($tokens, file-upload-size-single-container-border-width);
201
+
202
+ padding:
203
+ calc(var(--kbq-file-upload-size-single-container-padding-vertical, $padding-vertical) - $border-width)
204
+ calc(var(--kbq-file-upload-size-single-container-padding-horizontal, $padding-horizontal) - $border-width);
205
+
206
+ border-top-left-radius: var(
207
+ --kbq-file-upload-size-single-container-border-radius,
208
+ map.get($tokens, file-upload-size-single-container-border-radius)
209
+ );
210
+
211
+ border-top-right-radius: var(
212
+ --kbq-file-upload-size-single-container-border-radius,
213
+ map.get($tokens, file-upload-size-single-container-border-radius)
214
+ );
215
+ border-top-width: var(
216
+ --kbq-file-upload-size-single-container-border-width,
217
+ map.get($tokens, file-upload-size-single-container-border-width)
218
+ );
219
+ border-top-style: dashed;
220
+
221
+ & .dropzone {
222
+ gap: var(
223
+ --kbq-file-upload-size-single-container-content-gap-horizontal,
224
+ map.get($tokens, file-upload-size-single-container-content-gap-horizontal)
131
225
  );
132
- padding: map.get($tokens, size-xxs) map.get($tokens, size-m);
226
+
227
+ & .dropzone__text.multiple__caption {
228
+ padding-top: var(
229
+ --kbq-file-upload-size-single-text-block-padding-vertical,
230
+ map.get($tokens, file-upload-size-single-text-block-padding-vertical)
231
+ );
232
+
233
+ padding-bottom: var(
234
+ --kbq-file-upload-size-single-text-block-padding-vertical,
235
+ map.get($tokens, file-upload-size-single-text-block-padding-vertical)
236
+ );
237
+
238
+ gap: var(
239
+ --kbq-file-upload-size-single-text-block-content-gap-horizontal,
240
+ map.get($tokens, file-upload-size-single-text-block-content-gap-horizontal)
241
+ );
242
+ }
133
243
  }
134
244
  }
135
245
 
@@ -146,3 +256,4 @@ $vertical-padding-item: var(
146
256
  .kbq-file-upload__hint {
147
257
  margin-top: var(--kbq-form-field-hint-size-margin-top, map.get($tokens, form-field-hint-size-margin-top));
148
258
  }
259
+ /* stylelint-enable no-descending-specificity */
@@ -1,12 +1,13 @@
1
1
  import { FocusMonitor } from '@angular/cdk/a11y';
2
- import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy } from '@angular/core';
2
+ import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, Renderer2 } from '@angular/core';
3
3
  import { CanDisable } from '@koobiq/components/core';
4
- import { KbqFileItem, KbqFileValidatorFn, KbqInputFile, KbqInputFileLabel } from './file-upload';
4
+ import { KbqFile, KbqFileItem, KbqFileValidatorFn, KbqInputFile, KbqInputFileLabel } from './file-upload';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare const KBQ_SINGLE_FILE_UPLOAD_DEFAULT_CONFIGURATION: KbqInputFileLabel;
7
7
  export declare class KbqSingleFileUploadComponent implements AfterViewInit, OnDestroy, KbqInputFile, CanDisable {
8
8
  private focusMonitor;
9
9
  private cdr;
10
+ private renderer;
10
11
  config: KbqInputFileLabel;
11
12
  accept: string[];
12
13
  disabled: boolean;
@@ -19,16 +20,16 @@ export declare class KbqSingleFileUploadComponent implements AfterViewInit, OnDe
19
20
  hasFocus: boolean;
20
21
  private focusMonitorSubscription;
21
22
  get acceptedFiles(): string;
22
- constructor(focusMonitor: FocusMonitor, cdr: ChangeDetectorRef, config: KbqInputFileLabel);
23
+ constructor(focusMonitor: FocusMonitor, cdr: ChangeDetectorRef, renderer: Renderer2, config: KbqInputFileLabel);
23
24
  ngAfterViewInit(): void;
24
25
  ngOnDestroy(): void;
25
26
  onFileSelectedViaClick({ target }: Event): void;
26
27
  deleteItem(event?: MouseEvent): void;
27
- onFileDropped(files: FileList): void;
28
+ onFileDropped(files: FileList | KbqFile[]): void;
28
29
  onFocus(focusState: boolean): void;
29
30
  private mapToFileItem;
30
31
  private validateFile;
31
32
  private isCorrectExtension;
32
- static ɵfac: i0.ɵɵFactoryDeclaration<KbqSingleFileUploadComponent, [null, null, { optional: true; }]>;
33
+ static ɵfac: i0.ɵɵFactoryDeclaration<KbqSingleFileUploadComponent, [null, null, null, { optional: true; }]>;
33
34
  static ɵcmp: i0.ɵɵComponentDeclaration<KbqSingleFileUploadComponent, "kbq-single-file-upload", never, { "accept": { "alias": "accept"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "errors": { "alias": "errors"; "required": false; }; "files": { "alias": "files"; "required": false; }; "inputId": { "alias": "inputId"; "required": false; }; "customValidation": { "alias": "customValidation"; "required": false; }; }, { "fileQueueChanged": "fileQueueChanged"; }, never, ["[hint]", "[kbq-icon]"], false, never>;
34
35
  }