@koobiq/components 17.0.0-rc.10 → 17.0.0-rc.12

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 (498) hide show
  1. package/alert/public-api.d.ts +1 -1
  2. package/autocomplete/public-api.d.ts +2 -2
  3. package/badge/public-api.d.ts +1 -1
  4. package/button/button.component.d.ts +2 -2
  5. package/button/public-api.d.ts +1 -1
  6. package/button-toggle/public-api.d.ts +1 -1
  7. package/card/card.component.d.ts +1 -1
  8. package/card/public-api.d.ts +1 -1
  9. package/code-block/code-block.component.d.ts +2 -2
  10. package/code-block/public-api.d.ts +1 -1
  11. package/core/animation/index.d.ts +1 -1
  12. package/core/common-behaviors/index.d.ts +3 -3
  13. package/core/datetime/index.d.ts +1 -1
  14. package/core/formatters/index.d.ts +1 -1
  15. package/core/forms/index.d.ts +1 -1
  16. package/core/locales/index.d.ts +1 -1
  17. package/core/option/index.d.ts +2 -2
  18. package/core/option/optgroup.scss +2 -2
  19. package/core/pop-up/pop-up-trigger.d.ts +1 -1
  20. package/core/public-api.d.ts +3 -3
  21. package/core/select/constants.d.ts +1 -1
  22. package/core/select/index.d.ts +3 -3
  23. package/core/styles/common/_animation.scss +8 -8
  24. package/core/styles/common/_list.scss +23 -62
  25. package/core/styles/theming/_components-theming.scss +331 -331
  26. package/core/styles/theming/_theming.scss +3 -3
  27. package/core/styles/typography/_typography-utils.scss +8 -1
  28. package/core/styles/typography/_typography.scss +7 -7
  29. package/core/styles/visual/_layout.scss +1 -1
  30. package/core/utils/data-size/index.d.ts +1 -1
  31. package/core/utils/public-api.d.ts +1 -1
  32. package/datepicker/datepicker-input.directive.d.ts +1 -0
  33. package/datepicker/public-api.d.ts +4 -4
  34. package/dl/public-api.d.ts +1 -1
  35. package/dropdown/_dropdown-theme.scss +4 -1
  36. package/dropdown/dropdown-content.directive.d.ts +1 -1
  37. package/dropdown/dropdown-item.component.d.ts +1 -1
  38. package/dropdown/dropdown-item.scss +9 -6
  39. package/dropdown/dropdown.component.d.ts +1 -1
  40. package/dropdown/public-api.d.ts +5 -5
  41. package/ellipsis-center/ellipsis-center.directive.d.ts +1 -1
  42. package/empty-state/public-api.d.ts +1 -1
  43. package/esm2022/alert/alert.component.mjs +3 -3
  44. package/esm2022/alert/alert.module.mjs +1 -1
  45. package/esm2022/alert/public-api.mjs +2 -2
  46. package/esm2022/autocomplete/autocomplete-origin.directive.mjs +1 -1
  47. package/esm2022/autocomplete/autocomplete-trigger.directive.mjs +23 -31
  48. package/esm2022/autocomplete/autocomplete.component.mjs +14 -9
  49. package/esm2022/autocomplete/autocomplete.module.mjs +3 -3
  50. package/esm2022/autocomplete/public-api.mjs +3 -3
  51. package/esm2022/badge/badge.component.mjs +6 -4
  52. package/esm2022/badge/badge.module.mjs +1 -1
  53. package/esm2022/badge/public-api.mjs +2 -2
  54. package/esm2022/button/button.component.mjs +12 -9
  55. package/esm2022/button/button.module.mjs +1 -1
  56. package/esm2022/button/public-api.mjs +2 -2
  57. package/esm2022/button-toggle/button-toggle.component.mjs +24 -16
  58. package/esm2022/button-toggle/button-toggle.module.mjs +1 -1
  59. package/esm2022/button-toggle/public-api.mjs +2 -2
  60. package/esm2022/card/card.component.mjs +2 -2
  61. package/esm2022/card/card.module.mjs +1 -1
  62. package/esm2022/card/public-api.mjs +2 -2
  63. package/esm2022/checkbox/checkbox-config.mjs +1 -1
  64. package/esm2022/checkbox/checkbox-module.mjs +1 -1
  65. package/esm2022/checkbox/checkbox-required-validator.mjs +1 -1
  66. package/esm2022/checkbox/checkbox.mjs +6 -6
  67. package/esm2022/checkbox/public-api.mjs +1 -1
  68. package/esm2022/code-block/actionbar.component.mjs +4 -6
  69. package/esm2022/code-block/code-block.component.mjs +16 -13
  70. package/esm2022/code-block/code-block.module.mjs +9 -5
  71. package/esm2022/code-block/public-api.mjs +2 -2
  72. package/esm2022/core/animation/fade-animations.mjs +1 -1
  73. package/esm2022/core/animation/index.mjs +2 -2
  74. package/esm2022/core/animation/select-animations.mjs +2 -2
  75. package/esm2022/core/common-behaviors/color.mjs +4 -2
  76. package/esm2022/core/common-behaviors/common-module.mjs +2 -2
  77. package/esm2022/core/common-behaviors/constructor.mjs +1 -1
  78. package/esm2022/core/common-behaviors/disabled.mjs +1 -1
  79. package/esm2022/core/common-behaviors/error-state.mjs +1 -1
  80. package/esm2022/core/common-behaviors/index.mjs +4 -4
  81. package/esm2022/core/common-behaviors/tabindex.mjs +1 -1
  82. package/esm2022/core/datetime/date-adapter.mjs +1 -1
  83. package/esm2022/core/datetime/date-formats.mjs +1 -1
  84. package/esm2022/core/datetime/index.mjs +2 -2
  85. package/esm2022/core/error/error-options.mjs +1 -1
  86. package/esm2022/core/form-field/form-field-ref.mjs +1 -1
  87. package/esm2022/core/formatters/date/formatter.mjs +1 -1
  88. package/esm2022/core/formatters/date/formatter.pipe.mjs +1 -1
  89. package/esm2022/core/formatters/index.mjs +2 -2
  90. package/esm2022/core/formatters/number/formatter.mjs +19 -20
  91. package/esm2022/core/forms/forms-module.mjs +1 -1
  92. package/esm2022/core/forms/forms.directive.mjs +1 -1
  93. package/esm2022/core/forms/index.mjs +2 -2
  94. package/esm2022/core/highlight/highlight.pipe.mjs +1 -1
  95. package/esm2022/core/highlight/index.mjs +1 -1
  96. package/esm2022/core/label/label-options.mjs +1 -1
  97. package/esm2022/core/line/line.mjs +2 -2
  98. package/esm2022/core/locales/en-US.mjs +1 -1
  99. package/esm2022/core/locales/es-LA.mjs +1 -1
  100. package/esm2022/core/locales/fa-IR.mjs +1 -1
  101. package/esm2022/core/locales/index.mjs +2 -2
  102. package/esm2022/core/locales/locale-service.mjs +8 -5
  103. package/esm2022/core/locales/locale-service.module.mjs +1 -1
  104. package/esm2022/core/locales/pt-BR.mjs +1 -1
  105. package/esm2022/core/locales/ru-RU.mjs +3 -3
  106. package/esm2022/core/locales/zh-CN.mjs +1 -1
  107. package/esm2022/core/option/action.mjs +20 -12
  108. package/esm2022/core/option/index.mjs +3 -3
  109. package/esm2022/core/option/optgroup.mjs +4 -4
  110. package/esm2022/core/option/option-module.mjs +1 -1
  111. package/esm2022/core/option/option.mjs +13 -7
  112. package/esm2022/core/overlay/overlay-position-map.mjs +1 -1
  113. package/esm2022/core/pop-up/pop-up-trigger.mjs +15 -23
  114. package/esm2022/core/pop-up/pop-up.mjs +1 -1
  115. package/esm2022/core/public-api.mjs +4 -4
  116. package/esm2022/core/select/common.mjs +2 -2
  117. package/esm2022/core/select/constants.mjs +1 -1
  118. package/esm2022/core/select/index.mjs +4 -4
  119. package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +3 -3
  120. package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.module.mjs +1 -1
  121. package/esm2022/core/services/measure-scrollbar.service.mjs +1 -1
  122. package/esm2022/core/services/theme.service.mjs +2 -4
  123. package/esm2022/core/title/title-text-ref.mjs +1 -1
  124. package/esm2022/core/utils/data-size/config.mjs +1 -1
  125. package/esm2022/core/utils/data-size/data-size.pipe.mjs +2 -3
  126. package/esm2022/core/utils/data-size/index.mjs +2 -2
  127. package/esm2022/core/utils/data-size/size.mjs +3 -6
  128. package/esm2022/core/utils/public-api.mjs +2 -2
  129. package/esm2022/core/utils/utils.mjs +4 -2
  130. package/esm2022/core/validation/validation.mjs +4 -2
  131. package/esm2022/core/version.mjs +2 -2
  132. package/esm2022/datepicker/calendar-body.component.mjs +3 -3
  133. package/esm2022/datepicker/calendar-header.component.mjs +8 -7
  134. package/esm2022/datepicker/calendar.component.mjs +6 -6
  135. package/esm2022/datepicker/datepicker-animations.mjs +1 -1
  136. package/esm2022/datepicker/datepicker-errors.mjs +1 -1
  137. package/esm2022/datepicker/datepicker-input.directive.mjs +42 -34
  138. package/esm2022/datepicker/datepicker-intl.mjs +1 -1
  139. package/esm2022/datepicker/datepicker-module.mjs +2 -2
  140. package/esm2022/datepicker/datepicker-toggle.component.mjs +11 -10
  141. package/esm2022/datepicker/datepicker.component.mjs +15 -15
  142. package/esm2022/datepicker/month-view.component.mjs +14 -13
  143. package/esm2022/datepicker/public-api.mjs +5 -5
  144. package/esm2022/divider/divider.component.mjs +1 -1
  145. package/esm2022/divider/divider.module.mjs +1 -1
  146. package/esm2022/dl/dl.component.mjs +1 -1
  147. package/esm2022/dl/dl.module.mjs +2 -2
  148. package/esm2022/dl/public-api.mjs +2 -2
  149. package/esm2022/dropdown/dropdown-animations.mjs +2 -2
  150. package/esm2022/dropdown/dropdown-content.directive.mjs +3 -3
  151. package/esm2022/dropdown/dropdown-item.component.mjs +5 -5
  152. package/esm2022/dropdown/dropdown-trigger.directive.mjs +22 -28
  153. package/esm2022/dropdown/dropdown.component.mjs +10 -18
  154. package/esm2022/dropdown/dropdown.module.mjs +1 -1
  155. package/esm2022/dropdown/dropdown.types.mjs +1 -1
  156. package/esm2022/dropdown/public-api.mjs +6 -6
  157. package/esm2022/ellipsis-center/ellipsis-center.directive.mjs +3 -3
  158. package/esm2022/empty-state/empty-state.component.mjs +1 -1
  159. package/esm2022/empty-state/empty-state.module.mjs +2 -2
  160. package/esm2022/empty-state/public-api.mjs +2 -2
  161. package/esm2022/file-upload/file-drop.mjs +2 -2
  162. package/esm2022/file-upload/file-upload.mjs +1 -1
  163. package/esm2022/file-upload/file-upload.module.mjs +2 -2
  164. package/esm2022/file-upload/index.mjs +1 -1
  165. package/esm2022/file-upload/multiple-file-upload.component.mjs +16 -12
  166. package/esm2022/file-upload/public-api.mjs +2 -2
  167. package/esm2022/file-upload/single-file-upload.component.mjs +14 -10
  168. package/esm2022/form-field/cleaner.mjs +13 -3
  169. package/esm2022/form-field/form-field-control.mjs +1 -1
  170. package/esm2022/form-field/form-field-errors.mjs +1 -1
  171. package/esm2022/form-field/form-field.mjs +8 -13
  172. package/esm2022/form-field/form-field.module.mjs +1 -1
  173. package/esm2022/form-field/hint.mjs +2 -2
  174. package/esm2022/form-field/password-hint.mjs +13 -13
  175. package/esm2022/form-field/password-toggle.mjs +4 -7
  176. package/esm2022/form-field/prefix.mjs +1 -1
  177. package/esm2022/form-field/public-api.mjs +4 -4
  178. package/esm2022/form-field/stepper.mjs +33 -29
  179. package/esm2022/form-field/suffix.mjs +1 -1
  180. package/esm2022/form-field/validate.directive.mjs +6 -5
  181. package/esm2022/icon/icon-button.component.mjs +2 -2
  182. package/esm2022/icon/icon-item.component.mjs +1 -1
  183. package/esm2022/icon/icon.component.mjs +3 -4
  184. package/esm2022/icon/icon.module.mjs +1 -1
  185. package/esm2022/icon/public-api.mjs +3 -3
  186. package/esm2022/input/input-number-validators.mjs +1 -1
  187. package/esm2022/input/input-number.mjs +34 -35
  188. package/esm2022/input/input-password.mjs +13 -7
  189. package/esm2022/input/input-value-accessor.mjs +1 -1
  190. package/esm2022/input/input.mjs +13 -7
  191. package/esm2022/input/input.module.mjs +1 -1
  192. package/esm2022/input/public-api.mjs +3 -3
  193. package/esm2022/link/link.component.mjs +2 -2
  194. package/esm2022/link/link.module.mjs +1 -1
  195. package/esm2022/link/public-api.mjs +2 -2
  196. package/esm2022/list/list-selection.component.mjs +34 -36
  197. package/esm2022/list/list.component.mjs +3 -3
  198. package/esm2022/list/list.module.mjs +2 -2
  199. package/esm2022/list/public-api.mjs +3 -3
  200. package/esm2022/loader-overlay/loader-overlay.component.mjs +3 -3
  201. package/esm2022/loader-overlay/loader-overlay.module.mjs +1 -1
  202. package/esm2022/loader-overlay/public-api.mjs +2 -2
  203. package/esm2022/markdown/markdown.component.mjs +20 -6
  204. package/esm2022/markdown/markdown.module.mjs +1 -1
  205. package/esm2022/markdown/markdown.service.mjs +1 -1
  206. package/esm2022/modal/css-unit.pipe.mjs +1 -1
  207. package/esm2022/modal/modal-control.service.mjs +3 -2
  208. package/esm2022/modal/modal-ref.class.mjs +1 -1
  209. package/esm2022/modal/modal-util.mjs +1 -1
  210. package/esm2022/modal/modal.component.mjs +50 -27
  211. package/esm2022/modal/modal.directive.mjs +27 -11
  212. package/esm2022/modal/modal.module.mjs +2 -2
  213. package/esm2022/modal/modal.service.mjs +3 -2
  214. package/esm2022/modal/modal.type.mjs +1 -1
  215. package/esm2022/modal/public-api.mjs +3 -3
  216. package/esm2022/navbar/index.mjs +1 -1
  217. package/esm2022/navbar/navbar-item.component.mjs +37 -28
  218. package/esm2022/navbar/navbar.component.mjs +19 -28
  219. package/esm2022/navbar/navbar.module.mjs +2 -2
  220. package/esm2022/navbar/public-api.mjs +3 -3
  221. package/esm2022/navbar/vertical-navbar.component.mjs +17 -18
  222. package/esm2022/popover/popover-animations.mjs +1 -1
  223. package/esm2022/popover/popover-confirm.component.mjs +3 -3
  224. package/esm2022/popover/popover.component.mjs +5 -5
  225. package/esm2022/popover/popover.module.mjs +1 -1
  226. package/esm2022/popover/public-api.mjs +3 -3
  227. package/esm2022/progress-bar/progress-bar.component.mjs +4 -4
  228. package/esm2022/progress-bar/progress-bar.module.mjs +2 -2
  229. package/esm2022/progress-bar/public-api.mjs +2 -2
  230. package/esm2022/progress-spinner/progress-spinner.component.mjs +4 -4
  231. package/esm2022/progress-spinner/progress-spinner.module.mjs +1 -1
  232. package/esm2022/progress-spinner/public-api.mjs +2 -2
  233. package/esm2022/radio/public-api.mjs +2 -2
  234. package/esm2022/radio/radio.component.mjs +9 -10
  235. package/esm2022/radio/radio.module.mjs +1 -1
  236. package/esm2022/risk-level/public-api.mjs +2 -2
  237. package/esm2022/risk-level/risk-level.component.mjs +1 -1
  238. package/esm2022/risk-level/risk-level.module.mjs +1 -1
  239. package/esm2022/scrollbar/public-api.mjs +2 -2
  240. package/esm2022/scrollbar/scrollbar.component.mjs +13 -11
  241. package/esm2022/scrollbar/scrollbar.directive.mjs +3 -3
  242. package/esm2022/scrollbar/scrollbar.module.mjs +2 -2
  243. package/esm2022/scrollbar/scrollbar.types.mjs +3 -2
  244. package/esm2022/select/public-api.mjs +3 -3
  245. package/esm2022/select/select-option.directive.mjs +8 -5
  246. package/esm2022/select/select.component.mjs +41 -64
  247. package/esm2022/select/select.module.mjs +1 -1
  248. package/esm2022/sidebar/public-api.mjs +2 -2
  249. package/esm2022/sidebar/sidebar-animations.mjs +1 -1
  250. package/esm2022/sidebar/sidebar.component.mjs +3 -3
  251. package/esm2022/sidebar/sidebar.module.mjs +1 -1
  252. package/esm2022/sidepanel/public-api.mjs +4 -4
  253. package/esm2022/sidepanel/sidepanel-animations.mjs +7 -3
  254. package/esm2022/sidepanel/sidepanel-config.mjs +1 -1
  255. package/esm2022/sidepanel/sidepanel-container.component.mjs +4 -4
  256. package/esm2022/sidepanel/sidepanel-directives.mjs +30 -16
  257. package/esm2022/sidepanel/sidepanel-ref.mjs +10 -4
  258. package/esm2022/sidepanel/sidepanel.module.mjs +1 -1
  259. package/esm2022/sidepanel/sidepanel.service.mjs +11 -14
  260. package/esm2022/splitter/public-api.mjs +2 -2
  261. package/esm2022/splitter/splitter.component.mjs +13 -23
  262. package/esm2022/splitter/splitter.module.mjs +1 -1
  263. package/esm2022/table/public-api.mjs +2 -2
  264. package/esm2022/table/table.component.mjs +1 -1
  265. package/esm2022/table/table.module.mjs +1 -1
  266. package/esm2022/tabs/paginated-tab-header.mjs +8 -11
  267. package/esm2022/tabs/public-api.mjs +6 -6
  268. package/esm2022/tabs/tab-body.component.mjs +9 -9
  269. package/esm2022/tabs/tab-content.directive.mjs +1 -1
  270. package/esm2022/tabs/tab-group.component.mjs +11 -13
  271. package/esm2022/tabs/tab-header.component.mjs +4 -4
  272. package/esm2022/tabs/tab-label-wrapper.directive.mjs +1 -1
  273. package/esm2022/tabs/tab-label.directive.mjs +1 -1
  274. package/esm2022/tabs/tab-nav-bar/index.mjs +1 -1
  275. package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +2 -2
  276. package/esm2022/tabs/tab.component.mjs +4 -6
  277. package/esm2022/tabs/tabs-animations.mjs +1 -1
  278. package/esm2022/tabs/tabs.module.mjs +2 -2
  279. package/esm2022/tags/public-api.mjs +5 -5
  280. package/esm2022/tags/tag-default-options.mjs +1 -1
  281. package/esm2022/tags/tag-input.mjs +12 -14
  282. package/esm2022/tags/tag-list.component.mjs +14 -20
  283. package/esm2022/tags/tag-text-control.mjs +1 -1
  284. package/esm2022/tags/tag.component.mjs +5 -7
  285. package/esm2022/tags/tag.module.mjs +9 -5
  286. package/esm2022/textarea/index.mjs +1 -1
  287. package/esm2022/textarea/textarea.component.mjs +4 -6
  288. package/esm2022/textarea/textarea.module.mjs +1 -1
  289. package/esm2022/timepicker/public-api.mjs +2 -2
  290. package/esm2022/timepicker/timepicker.constants.mjs +6 -1
  291. package/esm2022/timepicker/timepicker.directive.mjs +62 -26
  292. package/esm2022/timepicker/timepicker.module.mjs +1 -1
  293. package/esm2022/timezone/cities-by-filter.pipe.mjs +1 -1
  294. package/esm2022/timezone/timezone-option.component.mjs +12 -11
  295. package/esm2022/timezone/timezone-option.directive.mjs +3 -3
  296. package/esm2022/timezone/timezone-select.component.mjs +5 -5
  297. package/esm2022/timezone/timezone.module.mjs +1 -1
  298. package/esm2022/timezone/timezone.utils.mjs +5 -9
  299. package/esm2022/timezone/utc-offset.pipe.mjs +1 -1
  300. package/esm2022/title/public-api.mjs +2 -2
  301. package/esm2022/title/title.directive.mjs +9 -5
  302. package/esm2022/title/title.module.mjs +1 -1
  303. package/esm2022/toast/public-api.mjs +4 -4
  304. package/esm2022/toast/toast-animations.mjs +2 -2
  305. package/esm2022/toast/toast-container.component.mjs +3 -4
  306. package/esm2022/toast/toast.component.mjs +5 -5
  307. package/esm2022/toast/toast.module.mjs +1 -1
  308. package/esm2022/toast/toast.service.mjs +14 -30
  309. package/esm2022/toast/toast.type.mjs +1 -1
  310. package/esm2022/toggle/public-api.mjs +2 -2
  311. package/esm2022/toggle/toggle.component.mjs +17 -9
  312. package/esm2022/toggle/toggle.module.mjs +1 -1
  313. package/esm2022/tooltip/public-api.mjs +2 -2
  314. package/esm2022/tooltip/tooltip.animations.mjs +1 -1
  315. package/esm2022/tooltip/tooltip.component.mjs +7 -5
  316. package/esm2022/tooltip/tooltip.module.mjs +2 -2
  317. package/esm2022/tree/control/base-tree-control.mjs +1 -1
  318. package/esm2022/tree/control/flat-tree-control.filters.mjs +4 -7
  319. package/esm2022/tree/control/flat-tree-control.mjs +4 -7
  320. package/esm2022/tree/control/nested-tree-control.mjs +1 -1
  321. package/esm2022/tree/control/tree-control.mjs +1 -1
  322. package/esm2022/tree/data-source/flat-data-source.mjs +3 -8
  323. package/esm2022/tree/data-source/nested-data-source.mjs +2 -3
  324. package/esm2022/tree/node.mjs +1 -1
  325. package/esm2022/tree/outlet.mjs +1 -1
  326. package/esm2022/tree/padding.directive.mjs +4 -5
  327. package/esm2022/tree/public-api.mjs +11 -11
  328. package/esm2022/tree/toggle.mjs +8 -5
  329. package/esm2022/tree/tree-base.mjs +3 -3
  330. package/esm2022/tree/tree-errors.mjs +1 -1
  331. package/esm2022/tree/tree-option.component.mjs +9 -13
  332. package/esm2022/tree/tree-selection.component.mjs +17 -36
  333. package/esm2022/tree/tree.mjs +7 -3
  334. package/esm2022/tree/tree.module.mjs +4 -4
  335. package/esm2022/tree-select/public-api.mjs +2 -2
  336. package/esm2022/tree-select/tree-select.component.mjs +54 -64
  337. package/esm2022/tree-select/tree-select.module.mjs +1 -1
  338. package/fesm2022/koobiq-components-alert.mjs +6 -6
  339. package/fesm2022/koobiq-components-alert.mjs.map +1 -1
  340. package/fesm2022/koobiq-components-autocomplete.mjs +58 -61
  341. package/fesm2022/koobiq-components-autocomplete.mjs.map +1 -1
  342. package/fesm2022/koobiq-components-badge.mjs +8 -6
  343. package/fesm2022/koobiq-components-badge.mjs.map +1 -1
  344. package/fesm2022/koobiq-components-button-toggle.mjs +28 -20
  345. package/fesm2022/koobiq-components-button-toggle.mjs.map +1 -1
  346. package/fesm2022/koobiq-components-button.mjs +14 -11
  347. package/fesm2022/koobiq-components-button.mjs.map +1 -1
  348. package/fesm2022/koobiq-components-card.mjs +2 -2
  349. package/fesm2022/koobiq-components-card.mjs.map +1 -1
  350. package/fesm2022/koobiq-components-checkbox.mjs +3 -3
  351. package/fesm2022/koobiq-components-checkbox.mjs.map +1 -1
  352. package/fesm2022/koobiq-components-code-block.mjs +33 -28
  353. package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
  354. package/fesm2022/koobiq-components-core.mjs +323 -315
  355. package/fesm2022/koobiq-components-core.mjs.map +1 -1
  356. package/fesm2022/koobiq-components-datepicker.mjs +100 -89
  357. package/fesm2022/koobiq-components-datepicker.mjs.map +1 -1
  358. package/fesm2022/koobiq-components-divider.mjs.map +1 -1
  359. package/fesm2022/koobiq-components-dl.mjs +3 -3
  360. package/fesm2022/koobiq-components-dl.mjs.map +1 -1
  361. package/fesm2022/koobiq-components-dropdown.mjs +124 -138
  362. package/fesm2022/koobiq-components-dropdown.mjs.map +1 -1
  363. package/fesm2022/koobiq-components-ellipsis-center.mjs.map +1 -1
  364. package/fesm2022/koobiq-components-empty-state.mjs +3 -3
  365. package/fesm2022/koobiq-components-empty-state.mjs.map +1 -1
  366. package/fesm2022/koobiq-components-file-upload.mjs +45 -37
  367. package/fesm2022/koobiq-components-file-upload.mjs.map +1 -1
  368. package/fesm2022/koobiq-components-form-field.mjs +69 -62
  369. package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
  370. package/fesm2022/koobiq-components-icon.mjs +3 -4
  371. package/fesm2022/koobiq-components-icon.mjs.map +1 -1
  372. package/fesm2022/koobiq-components-input.mjs +61 -50
  373. package/fesm2022/koobiq-components-input.mjs.map +1 -1
  374. package/fesm2022/koobiq-components-link.mjs +1 -1
  375. package/fesm2022/koobiq-components-link.mjs.map +1 -1
  376. package/fesm2022/koobiq-components-list.mjs +39 -41
  377. package/fesm2022/koobiq-components-list.mjs.map +1 -1
  378. package/fesm2022/koobiq-components-loader-overlay.mjs +6 -6
  379. package/fesm2022/koobiq-components-loader-overlay.mjs.map +1 -1
  380. package/fesm2022/koobiq-components-markdown.mjs +18 -4
  381. package/fesm2022/koobiq-components-markdown.mjs.map +1 -1
  382. package/fesm2022/koobiq-components-modal.mjs +84 -44
  383. package/fesm2022/koobiq-components-modal.mjs.map +1 -1
  384. package/fesm2022/koobiq-components-navbar.mjs +74 -75
  385. package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
  386. package/fesm2022/koobiq-components-popover.mjs +12 -12
  387. package/fesm2022/koobiq-components-popover.mjs.map +1 -1
  388. package/fesm2022/koobiq-components-progress-bar.mjs +5 -5
  389. package/fesm2022/koobiq-components-progress-bar.mjs.map +1 -1
  390. package/fesm2022/koobiq-components-progress-spinner.mjs +5 -5
  391. package/fesm2022/koobiq-components-progress-spinner.mjs.map +1 -1
  392. package/fesm2022/koobiq-components-radio.mjs +11 -12
  393. package/fesm2022/koobiq-components-radio.mjs.map +1 -1
  394. package/fesm2022/koobiq-components-risk-level.mjs +2 -2
  395. package/fesm2022/koobiq-components-risk-level.mjs.map +1 -1
  396. package/fesm2022/koobiq-components-scrollbar.mjs +15 -12
  397. package/fesm2022/koobiq-components-scrollbar.mjs.map +1 -1
  398. package/fesm2022/koobiq-components-select.mjs +52 -72
  399. package/fesm2022/koobiq-components-select.mjs.map +1 -1
  400. package/fesm2022/koobiq-components-sidebar.mjs +3 -3
  401. package/fesm2022/koobiq-components-sidebar.mjs.map +1 -1
  402. package/fesm2022/koobiq-components-sidepanel.mjs +108 -87
  403. package/fesm2022/koobiq-components-sidepanel.mjs.map +1 -1
  404. package/fesm2022/koobiq-components-splitter.mjs +15 -25
  405. package/fesm2022/koobiq-components-splitter.mjs.map +1 -1
  406. package/fesm2022/koobiq-components-table.mjs +3 -3
  407. package/fesm2022/koobiq-components-table.mjs.map +1 -1
  408. package/fesm2022/koobiq-components-tabs.mjs +36 -43
  409. package/fesm2022/koobiq-components-tabs.mjs.map +1 -1
  410. package/fesm2022/koobiq-components-tags.mjs +38 -44
  411. package/fesm2022/koobiq-components-tags.mjs.map +1 -1
  412. package/fesm2022/koobiq-components-textarea.mjs +2 -4
  413. package/fesm2022/koobiq-components-textarea.mjs.map +1 -1
  414. package/fesm2022/koobiq-components-timepicker.mjs +69 -28
  415. package/fesm2022/koobiq-components-timepicker.mjs.map +1 -1
  416. package/fesm2022/koobiq-components-timezone.mjs +16 -19
  417. package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
  418. package/fesm2022/koobiq-components-title.mjs +11 -7
  419. package/fesm2022/koobiq-components-title.mjs.map +1 -1
  420. package/fesm2022/koobiq-components-toast.mjs +69 -86
  421. package/fesm2022/koobiq-components-toast.mjs.map +1 -1
  422. package/fesm2022/koobiq-components-toggle.mjs +17 -9
  423. package/fesm2022/koobiq-components-toggle.mjs.map +1 -1
  424. package/fesm2022/koobiq-components-tooltip.mjs +10 -8
  425. package/fesm2022/koobiq-components-tooltip.mjs.map +1 -1
  426. package/fesm2022/koobiq-components-tree-select.mjs +63 -73
  427. package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
  428. package/fesm2022/koobiq-components-tree.mjs +506 -535
  429. package/fesm2022/koobiq-components-tree.mjs.map +1 -1
  430. package/file-upload/multiple-file-upload.component.d.ts +2 -2
  431. package/file-upload/public-api.d.ts +1 -1
  432. package/file-upload/single-file-upload.component.d.ts +2 -2
  433. package/form-field/public-api.d.ts +3 -3
  434. package/icon/public-api.d.ts +2 -2
  435. package/input/public-api.d.ts +2 -2
  436. package/link/_link-theme.scss +1 -1
  437. package/link/link.component.d.ts +1 -1
  438. package/link/public-api.d.ts +1 -1
  439. package/list/list-selection.component.d.ts +2 -2
  440. package/list/list.scss +1 -1
  441. package/list/public-api.d.ts +2 -2
  442. package/loader-overlay/public-api.d.ts +1 -1
  443. package/modal/README.md +1 -1
  444. package/modal/modal.directive.d.ts +3 -3
  445. package/modal/modal.type.d.ts +2 -2
  446. package/modal/public-api.d.ts +2 -2
  447. package/navbar/_navbar-item_horizontal.scss +31 -23
  448. package/navbar/_navbar-item_vertical.scss +0 -2
  449. package/navbar/navbar-item.scss +7 -0
  450. package/navbar/public-api.d.ts +2 -2
  451. package/package.json +6 -6
  452. package/popover/popover.component.d.ts +1 -1
  453. package/popover/public-api.d.ts +2 -2
  454. package/prebuilt-themes/dark-theme.css +1 -1
  455. package/prebuilt-themes/light-theme.css +1 -1
  456. package/progress-bar/public-api.d.ts +1 -1
  457. package/progress-spinner/public-api.d.ts +1 -1
  458. package/radio/_radio-theme.scss +1 -0
  459. package/radio/public-api.d.ts +1 -1
  460. package/radio/radio.scss +12 -2
  461. package/risk-level/public-api.d.ts +1 -1
  462. package/schematics/ng-add/index.js +4 -4
  463. package/scrollbar/public-api.d.ts +1 -1
  464. package/scrollbar/scrollbar.directive.d.ts +1 -1
  465. package/scrollbar/scrollbar.types.d.ts +1 -1
  466. package/select/public-api.d.ts +2 -2
  467. package/select/select.component.d.ts +1 -1
  468. package/sidebar/public-api.d.ts +1 -1
  469. package/sidepanel/public-api.d.ts +3 -3
  470. package/sidepanel/sidepanel.scss +1 -1
  471. package/splitter/public-api.d.ts +1 -1
  472. package/table/public-api.d.ts +1 -1
  473. package/tabs/paginated-tab-header.d.ts +1 -1
  474. package/tabs/public-api.d.ts +5 -5
  475. package/tabs/tab-body.component.d.ts +3 -3
  476. package/tabs/tab-group.component.d.ts +1 -1
  477. package/tags/public-api.d.ts +4 -4
  478. package/tags/tag-input.d.ts +1 -1
  479. package/textarea/textarea.component.d.ts +1 -1
  480. package/timepicker/public-api.d.ts +1 -1
  481. package/timepicker/timepicker.constants.d.ts +2 -0
  482. package/timepicker/timepicker.directive.d.ts +10 -3
  483. package/timezone/timezone-option.directive.d.ts +1 -1
  484. package/timezone/timezone.utils.d.ts +1 -1
  485. package/title/public-api.d.ts +1 -1
  486. package/toast/public-api.d.ts +3 -3
  487. package/toast/toast.component.scss +4 -1
  488. package/toast/toast.service.d.ts +2 -2
  489. package/toast/toast.type.d.ts +1 -1
  490. package/toggle/public-api.d.ts +1 -1
  491. package/tooltip/public-api.d.ts +1 -1
  492. package/tooltip/tooltip.component.d.ts +2 -2
  493. package/tree/public-api.d.ts +10 -10
  494. package/tree/tree-base.d.ts +1 -1
  495. package/tree/tree-option.component.d.ts +1 -1
  496. package/tree/tree-selection.component.d.ts +1 -1
  497. package/tree-select/public-api.d.ts +1 -1
  498. package/tree-select/tree-select.component.d.ts +6 -4
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, EventEmitter, Directive, Output, TemplateRef, Component, ChangeDetectionStrategy, ViewEncapsulation, Optional, Inject, Self, Input, ContentChild, ViewChild, NgModule } from '@angular/core';
2
+ import { EventEmitter, Directive, Output, InjectionToken, TemplateRef, Component, ChangeDetectionStrategy, ViewEncapsulation, Optional, Inject, Self, Input, ContentChild, ViewChild, NgModule } from '@angular/core';
3
3
  import * as i2 from '@angular/common';
4
4
  import { CommonModule } from '@angular/common';
5
5
  import * as i1 from '@angular/forms';
@@ -13,33 +13,16 @@ import * as i6 from '@koobiq/components/form-field';
13
13
  import { KbqFormFieldModule } from '@koobiq/components/form-field';
14
14
  import * as i4 from '@koobiq/components/icon';
15
15
  import { KbqIconModule } from '@koobiq/components/icon';
16
+ import * as i8 from '@koobiq/components/link';
17
+ import { KbqLinkModule } from '@koobiq/components/link';
16
18
  import * as i5 from '@koobiq/components/list';
17
19
  import { KbqListModule } from '@koobiq/components/list';
18
20
  import * as i3 from '@koobiq/components/progress-spinner';
19
21
  import { KbqProgressSpinnerModule } from '@koobiq/components/progress-spinner';
20
22
  import { KbqToolTipModule } from '@koobiq/components/tooltip';
21
- import * as i8 from '@koobiq/components/link';
22
- import { KbqLinkModule } from '@koobiq/components/link';
23
23
  import { Subscription, BehaviorSubject } from 'rxjs';
24
24
  import { distinctUntilChanged } from 'rxjs/operators';
25
25
 
26
- /* Object for labels customization inside file upload component */
27
- const KBQ_FILE_UPLOAD_CONFIGURATION = new InjectionToken('KbqFileUploadConfiguration');
28
- const isCorrectExtension = (file, accept) => {
29
- if (!accept?.length) {
30
- return true;
31
- }
32
- const { name, type } = file;
33
- const fileExt = name.split('.').pop() || '';
34
- for (const acceptedExtensionOrMimeType of accept) {
35
- const typeAsRegExp = new RegExp(acceptedExtensionOrMimeType);
36
- if (typeAsRegExp.test(fileExt) || typeAsRegExp.test(type)) {
37
- return true;
38
- }
39
- }
40
- return false;
41
- };
42
-
43
26
  const isFolderCanBeDragged = () => 'webkitGetAsEntry' in DataTransferItem.prototype;
44
27
  const entryIsDirectory = (entry) => !!entry && entry.isDirectory;
45
28
  const entryIsFile = (entry) => !!entry && entry.isFile;
@@ -118,6 +101,23 @@ const unwrapDirectory = async (item) => {
118
101
  return Promise.all(result);
119
102
  };
120
103
 
104
+ /* Object for labels customization inside file upload component */
105
+ const KBQ_FILE_UPLOAD_CONFIGURATION = new InjectionToken('KbqFileUploadConfiguration');
106
+ const isCorrectExtension = (file, accept) => {
107
+ if (!accept?.length) {
108
+ return true;
109
+ }
110
+ const { name, type } = file;
111
+ const fileExt = name.split('.').pop() || '';
112
+ for (const acceptedExtensionOrMimeType of accept) {
113
+ const typeAsRegExp = new RegExp(acceptedExtensionOrMimeType);
114
+ if (typeAsRegExp.test(fileExt) || typeAsRegExp.test(type)) {
115
+ return true;
116
+ }
117
+ }
118
+ return false;
119
+ };
120
+
121
121
  let nextMultipleFileUploadUniqueId = 0;
122
122
  const KBQ_MULTIPLE_FILE_UPLOAD_DEFAULT_CONFIGURATION = ruRULocaleData.fileUpload.multiple;
123
123
  class KbqMultipleFileUploadComponent {
@@ -169,8 +169,7 @@ class KbqMultipleFileUploadComponent {
169
169
  this.getCaptionText();
170
170
  this.cdr.markForCheck();
171
171
  };
172
- this.localeService?.changes
173
- .subscribe(this.updateLocaleParams);
172
+ this.localeService?.changes.subscribe(this.updateLocaleParams);
174
173
  if (!localeService) {
175
174
  this.initDefaultParams();
176
175
  }
@@ -202,10 +201,14 @@ class KbqMultipleFileUploadComponent {
202
201
  }
203
202
  /** Implemented as part of ControlValueAccessor.
204
203
  * @docs-private */
205
- registerOnChange(fn) { this.cvaOnChange = fn; }
204
+ registerOnChange(fn) {
205
+ this.cvaOnChange = fn;
206
+ }
206
207
  /** Implemented as part of ControlValueAccessor.
207
208
  * @docs-private */
208
- registerOnTouched(fn) { this.onTouched = fn; }
209
+ registerOnTouched(fn) {
210
+ this.onTouched = fn;
211
+ }
209
212
  /**
210
213
  * Sets the disabled state of the control. Implemented as a part of ControlValueAccessor.
211
214
  * @param isDisabled Whether the control should be disabled.
@@ -264,10 +267,12 @@ class KbqMultipleFileUploadComponent {
264
267
  if (!this.customValidation?.length) {
265
268
  return;
266
269
  }
267
- const errorsPerFile = this.customValidation.reduce((errors, validatorFn) => {
270
+ const errorsPerFile = this.customValidation
271
+ .reduce((errors, validatorFn) => {
268
272
  errors.push(validatorFn(file));
269
273
  return errors;
270
- }, []).filter(Boolean);
274
+ }, [])
275
+ .filter(Boolean);
271
276
  this.errors = [
272
277
  ...this.errors,
273
278
  ...errorsPerFile
@@ -286,17 +291,16 @@ class KbqMultipleFileUploadComponent {
286
291
  getCaptionText() {
287
292
  this.separatedCaptionText = this.config.captionText.split('{{ browseLink }}');
288
293
  this.separatedCaptionTextWhenSelected = this.config.captionTextWhenSelected.split('{{ browseLink }}');
289
- this.separatedCaptionTextForCompactSize = this.config.captionTextForCompactSize
290
- .split('{{ browseLink }}');
294
+ this.separatedCaptionTextForCompactSize = this.config.captionTextForCompactSize.split('{{ browseLink }}');
291
295
  }
292
296
  /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.0", ngImport: i0, type: KbqMultipleFileUploadComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }, { token: KBQ_FILE_UPLOAD_CONFIGURATION, optional: true }, { token: KBQ_LOCALE_SERVICE, optional: true }, { token: i1.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component }); }
293
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.0", type: KbqMultipleFileUploadComponent, selector: "kbq-multiple-file-upload,kbq-file-upload[multiple]", inputs: { progressMode: "progressMode", accept: "accept", disabled: "disabled", errors: "errors", size: "size", inputId: "inputId", customValidation: "customValidation", files: "files" }, outputs: { fileQueueChanged: "fileQueueChanged" }, host: { classAttribute: "kbq-multiple-file-upload" }, queries: [{ propertyName: "customFileIcon", first: true, predicate: ["kbqFileIcon"], descendants: true, read: TemplateRef }], viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }], ngImport: i0, template: "<div class=\"kbq-file-upload\"\n kbqFileDrop\n [class.kbq-disabled]=\"disabled\"\n [class.selected]=\"files?.length\"\n [ngClass]=\"size\"\n (filesDropped)=\"onFileDropped($event)\">\n\n <ng-container *ngIf=\"!files.length; else fileOutput\">\n <div class=\"dropzone\">\n <ng-container *ngIf=\"size === 'default' else compactCaption\">\n <i kbq-icon=\"mc-upload-to-cloud_32\"></i>\n <div class=\"dropzone__text\">\n <span class=\"multiple__header\">{{ config.title }}</span>\n <div>\n <span class=\"multiple__caption\">\n {{ separatedCaptionText[0] }}<label kbq-link pseudo [disabled]=\"disabled\" [tabIndex]=\"-1\" [for]=\"inputId\">{{ config.browseLink }}<ng-container *ngTemplateOutlet=\"inputTemplate\"></ng-container></label>{{ separatedCaptionText[1] }}\n </span>\n </div>\n </div>\n </ng-container>\n </div>\n </ng-container>\n</div>\n\n<div class=\"kbq-file-upload__info-section\">\n <kbq-hint class=\"kbq-file-upload__hint\">\n <ng-content select=\"[hint]\"></ng-content>\n </kbq-hint>\n\n <ng-container *ngIf=\"hasErrors\">\n <kbq-hint class=\"kbq-file-upload__hint kbq-error\"\n *ngFor=\"let error of errors\">\n {{ error }}\n </kbq-hint>\n </ng-container>\n</div>\n\n<ng-template #fileOutput>\n <div class=\"file-upload__dropzone\">\n <div class=\"kbq-file-upload__grid\">\n <div class=\"kbq-file-multiple-uploaded__header\">\n <div class=\"kbq-file-multiple-uploaded__header-inner\">\n <div [class]=\"'kbq-file-upload__' + column.cssClass\" *ngFor=\"let column of columnDefs\">\n {{ column.header }}\n </div>\n </div>\n </div>\n\n <kbq-list-selection [autoSelect]=\"false\" [disabled]=\"disabled\">\n <kbq-list-option\n class=\"multiple__uploaded-item\"\n [value]=\"file.file.name\"\n (keydown.delete)=\"deleteFile(index)\"\n (keydown.backspace)=\"deleteFile(index)\"\n *ngFor=\"let file of files; let index = index;\">\n <div class=\"kbq-file-upload__row\" [class.error]=\"file.hasError\">\n <div class=\"kbq-file-upload__file\">\n <ng-container *ngIf=\"{ loading: file.loading | async, progress: file.progress | async } as asyncData\">\n <ng-container *ngIf=\"!asyncData.loading\"\n [ngTemplateOutlet]=\"$any(customFileIcon)\"\n [ngTemplateOutletContext]=\"{ $implicit: file }\">\n </ng-container>\n\n <kbq-progress-spinner\n class=\"kbq-file-upload-name-cell__icon\"\n [mode]=\"progressMode\"\n [value]=\"asyncData.progress || 0\"\n *ngIf=\"asyncData.loading\"\n ></kbq-progress-spinner>\n </ng-container>\n\n <span class=\"file-item__text\" [kbqEllipsisCenter]=\"file.file.name\" [minVisibleLength]=\"10\"></span>\n </div>\n <div class=\"kbq-file-upload__size\">\n {{ file.file.size | kbqDataSize }}\n </div>\n <div class=\"kbq-file-upload__action\">\n <i kbq-icon-button=\"mc-close-circle_16\" (click)=\"deleteFile(index, $event)\"></i>\n </div>\n </div>\n </kbq-list-option>\n </kbq-list-selection>\n </div>\n\n <div class=\"btn-upload\">\n <div class=\"dropzone\">\n <i kbq-icon=\"mc-upload-to-cloud_24\"></i>\n <span class=\"dropzone__text multiple__caption\">\n {{ separatedCaptionTextWhenSelected[0] }}<label kbq-link pseudo [disabled]=\"disabled\" [tabIndex]=\"-1\" [for]=\"inputId\">{{ config.browseLink }}<ng-container *ngTemplateOutlet=\"inputTemplate\"></ng-container></label>{{ separatedCaptionTextWhenSelected[1] }}\n </span>\n </div>\n </div>\n </div>\n</ng-template>\n\n<ng-template #compactCaption>\n <i kbq-icon=\"mc-upload-to-cloud_24\"></i>\n <span class=\"dropzone__text multiple__caption\">\n {{ separatedCaptionTextForCompactSize[0] }}<label kbq-link pseudo [disabled]=\"disabled\" [tabIndex]=\"-1\" [for]=\"inputId\">{{ config.browseLink }}<ng-container *ngTemplateOutlet=\"inputTemplate\"></ng-container></label>{{ separatedCaptionTextForCompactSize[1] }}\n </span>\n</ng-template>\n\n<ng-template #inputTemplate>\n <input #input\n type=\"file\"\n class=\"cdk-visually-hidden\"\n multiple\n [id]=\"inputId\"\n [accept]=\"acceptedFiles\"\n [disabled]=\"disabled\"\n (change)=\"onFileSelectedViaClick($event)\">\n</ng-template>\n", styles: [".kbq-file-upload{box-sizing:border-box;display:flex;align-items:center;position:relative}.kbq-file-upload .dropzone,.kbq-file-upload .file-item{display:flex;align-items:center}.kbq-file-upload .kbq-ellipsis-center{position:relative;display:flex}.kbq-file-upload .kbq-ellipsis-center .data-text-start{flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:pre}.kbq-file-upload .kbq-ellipsis-center .data-text-end{flex:1 0 auto;overflow:hidden;white-space:pre}\n", ".kbq-multiple-file-upload .kbq-file-upload{border-radius:var(--kbq-file-upload-size-multiple-big-container-border-radius, 8px);border-width:var(--kbq-file-upload-size-multiple-big-container-border-width, 1px);border-style:dashed}.kbq-multiple-file-upload .kbq-file-upload.default:not(.selected){justify-content:center;padding:var(--kbq-file-upload-size-multiple-big-container-padding-vertical, 24px) var(--kbq-file-upload-size-multiple-big-container-padding-vertical, 24px);min-height:var(--kbq-file-upload-size-multiple-big-container-min-height, 160px);min-width:var(--kbq-file-upload-size-multiple-big-container-min-width, 320px)}.kbq-multiple-file-upload .kbq-file-upload.default:not(.selected) .dropzone{gap:var(--kbq-file-upload-size-multiple-big-container-content-gap-horizontal, 12px)}.kbq-multiple-file-upload .kbq-file-upload.default:not(.selected) .dropzone__text .multiple__header{display:block}.kbq-multiple-file-upload .kbq-file-upload.default:not(.selected) .dropzone__text .multiple__caption{display:block;padding-top:var(--kbq-file-upload-size-multiple-big-text-block-content-gap-vertical, 0px);gap:var(--kbq-file-upload-size-multiple-big-text-block-content-gap-horizontal, 4px)}.kbq-multiple-file-upload .kbq-file-upload.compact:not(.selected){padding:var(--kbq-file-upload-size-single-container-padding-vertical, 12px) var(--kbq-file-upload-size-single-container-padding-horizontal, 12px)}.kbq-multiple-file-upload .kbq-file-upload.compact:not(.selected) .dropzone{gap:var(--kbq-file-upload-size-single-container-content-gap-horizontal, 8px)}.kbq-multiple-file-upload .kbq-file-upload.compact:not(.selected) .dropzone .dropzone__text.multiple__caption{padding-top:var(--kbq-file-upload-size-single-text-block-padding-vertical, 2px);padding-bottom:var(--kbq-file-upload-size-single-text-block-padding-vertical, 2px);gap:var(--kbq-file-upload-size-single-text-block-content-gap-horizontal, 4px)}.kbq-multiple-file-upload .kbq-file-upload .kbq-list-option.multiple__uploaded-item{padding:0}.kbq-multiple-file-upload .kbq-file-upload .kbq-list-option.multiple__uploaded-item .kbq-list-text{padding:calc(var(--kbq-file-upload-size-multiple-big-grid-cell-padding-vertical, 8px) - var(--kbq-list-size-container-focus-outline-width, 2px)) calc(var(--kbq-file-upload-size-multiple-big-grid-cell-padding-horizontal, 8px) - var(--kbq-list-size-container-focus-outline-width, 2px))}.kbq-multiple-file-upload .kbq-file-upload .kbq-list-option.multiple__uploaded-item .kbq-icon{margin-right:0}.kbq-multiple-file-upload .kbq-file-upload .kbq-file-upload__grid{min-height:144px}.kbq-multiple-file-upload .kbq-file-upload .kbq-file-multiple-uploaded__header-inner,.kbq-multiple-file-upload .kbq-file-upload .kbq-file-upload__row{display:flex;align-items:center}.kbq-multiple-file-upload .kbq-file-upload .kbq-file-multiple-uploaded__header-inner .kbq-file-upload__file,.kbq-multiple-file-upload .kbq-file-upload .kbq-file-upload__row .kbq-file-upload__file{width:65%;max-width:65%;gap:var(--kbq-file-upload-size-multiple-big-grid-cell-content-gap-horizontal, 4px)}.kbq-multiple-file-upload .kbq-file-upload .kbq-file-multiple-uploaded__header-inner .kbq-file-upload__size,.kbq-multiple-file-upload .kbq-file-upload .kbq-file-upload__row .kbq-file-upload__size{width:64px;min-width:64px;text-align:left;flex-grow:1}.kbq-multiple-file-upload .kbq-file-upload .kbq-file-upload__row .kbq-file-upload__file{display:flex;align-items:center}.kbq-multiple-file-upload .kbq-file-upload .kbq-file-upload__row .kbq-file-upload__file .file-item__text{margin-left:0;width:90%}.kbq-multiple-file-upload .kbq-file-upload .kbq-file-multiple-uploaded__header{border-bottom-width:1px;border-bottom-style:solid}.kbq-multiple-file-upload .kbq-file-upload .kbq-file-multiple-uploaded__header .kbq-file-multiple-uploaded__header-inner{padding:calc(var(--kbq-file-upload-size-multiple-big-grid-cell-padding-vertical, 8px) + 2px) calc(var(--kbq-file-upload-size-multiple-big-grid-cell-padding-horizontal, 8px) + 2px)}.kbq-multiple-file-upload .kbq-file-upload .btn-upload{padding:calc(var(--kbq-file-upload-size-single-container-padding-vertical, 12px) - 1px) calc(var(--kbq-file-upload-size-single-container-padding-horizontal, 12px) - 1px);border-top-left-radius:var(--kbq-file-upload-size-single-container-border-radius, 8px);border-top-right-radius:var(--kbq-file-upload-size-single-container-border-radius, 8px);border-top-width:var(--kbq-file-upload-size-single-container-border-width, 1px);border-top-style:dashed}.kbq-multiple-file-upload .kbq-file-upload .btn-upload .dropzone{gap:var(--kbq-file-upload-size-single-container-content-gap-horizontal, 8px)}.kbq-multiple-file-upload .kbq-file-upload .btn-upload .dropzone .dropzone__text.multiple__caption{padding-top:var(--kbq-file-upload-size-single-text-block-padding-vertical, 2px);padding-bottom:var(--kbq-file-upload-size-single-text-block-padding-vertical, 2px);gap:var(--kbq-file-upload-size-single-text-block-content-gap-horizontal, 4px)}.kbq-multiple-file-upload .kbq-file-upload .file-upload__dropzone{width:100%;height:100%}.kbq-hint{display:block}.kbq-file-upload__hint{margin-top:var(--kbq-form-field-hint-size-margin-top, 4px)}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i3.KbqProgressSpinner, selector: "kbq-progress-spinner", inputs: ["color", "id", "value", "mode", "size"] }, { kind: "component", type: i4.KbqIcon, selector: "[kbq-icon]", inputs: ["color", "small", "autoColor"] }, { kind: "component", type: i4.KbqIconButton, selector: "[kbq-icon-button]", inputs: ["color", "small", "tabindex", "disabled"] }, { kind: "component", type: i5.KbqListSelection, selector: "kbq-list-selection", inputs: ["disabled", "autoSelect", "noUnselectLast", "horizontal", "tabIndex", "compareWith"], outputs: ["onSelectAll", "onCopy", "selectionChange"], exportAs: ["kbqListSelection"] }, { kind: "component", type: i5.KbqListOption, selector: "kbq-list-option", inputs: ["checkboxPosition", "value", "disabled", "showCheckbox", "selected"], exportAs: ["kbqListOption"] }, { kind: "component", type: i6.KbqHint, selector: "kbq-hint", inputs: ["color", "id", "fillTextOff", "compact"], exportAs: ["kbqHint"] }, { kind: "directive", type: i7.KbqEllipsisCenterDirective, selector: "[kbqEllipsisCenter]", inputs: ["kbqEllipsisCenter", "minVisibleLength"] }, { kind: "directive", type: i8.KbqLink, selector: "[kbq-link]", inputs: ["tabIndex", "disabled", "pseudo", "noUnderline", "big", "compact", "useVisited", "print"], exportAs: ["kbqLink"] }, { kind: "directive", type: KbqFileDropDirective, selector: "[kbqFileDrop]", outputs: ["filesDropped"], exportAs: ["kbqFileDrop"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "pipe", type: i10.KbqDataSizePipe, name: "kbqDataSize" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
297
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.0", type: KbqMultipleFileUploadComponent, selector: "kbq-multiple-file-upload,kbq-file-upload[multiple]", inputs: { progressMode: "progressMode", accept: "accept", disabled: "disabled", errors: "errors", size: "size", inputId: "inputId", customValidation: "customValidation", files: "files" }, outputs: { fileQueueChanged: "fileQueueChanged" }, host: { classAttribute: "kbq-multiple-file-upload" }, queries: [{ propertyName: "customFileIcon", first: true, predicate: ["kbqFileIcon"], descendants: true, read: TemplateRef }], viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }], ngImport: i0, template: "<div\n kbqFileDrop\n class=\"kbq-file-upload\"\n [class.kbq-disabled]=\"disabled\"\n [class.selected]=\"files?.length\"\n [ngClass]=\"size\"\n (filesDropped)=\"onFileDropped($event)\"\n>\n <ng-container *ngIf=\"!files.length; else fileOutput\">\n <div class=\"dropzone\">\n <ng-container *ngIf=\"size === 'default'; else compactCaption\">\n <i kbq-icon=\"mc-upload-to-cloud_32\"></i>\n <div class=\"dropzone__text\">\n <span class=\"multiple__header\">{{ config.title }}</span>\n <div>\n <!-- prettier-ignore -->\n <span class=\"multiple__caption\">\n {{ separatedCaptionText[0] }}<label kbq-link pseudo [disabled]=\"disabled\" [tabIndex]=\"-1\" [for]=\"inputId\">{{ config.browseLink }}<ng-container *ngTemplateOutlet=\"inputTemplate\"></ng-container></label>{{ separatedCaptionText[1] }}\n </span>\n </div>\n </div>\n </ng-container>\n </div>\n </ng-container>\n</div>\n\n<div class=\"kbq-file-upload__info-section\">\n <kbq-hint class=\"kbq-file-upload__hint\">\n <ng-content select=\"[hint]\"></ng-content>\n </kbq-hint>\n\n <ng-container *ngIf=\"hasErrors\">\n <kbq-hint\n *ngFor=\"let error of errors\"\n class=\"kbq-file-upload__hint kbq-error\"\n >\n {{ error }}\n </kbq-hint>\n </ng-container>\n</div>\n\n<ng-template #fileOutput>\n <div class=\"file-upload__dropzone\">\n <div class=\"kbq-file-upload__grid\">\n <div class=\"kbq-file-multiple-uploaded__header\">\n <div class=\"kbq-file-multiple-uploaded__header-inner\">\n <div\n *ngFor=\"let column of columnDefs\"\n [class]=\"'kbq-file-upload__' + column.cssClass\"\n >\n {{ column.header }}\n </div>\n </div>\n </div>\n\n <kbq-list-selection\n [autoSelect]=\"false\"\n [disabled]=\"disabled\"\n >\n <kbq-list-option\n *ngFor=\"let file of files; let index = index\"\n class=\"multiple__uploaded-item\"\n [value]=\"file.file.name\"\n (keydown.backspace)=\"deleteFile(index)\"\n (keydown.delete)=\"deleteFile(index)\"\n >\n <div\n class=\"kbq-file-upload__row\"\n [class.error]=\"file.hasError\"\n >\n <div class=\"kbq-file-upload__file\">\n <ng-container\n *ngIf=\"{ loading: file.loading | async, progress: file.progress | async } as asyncData\"\n >\n <ng-container\n *ngIf=\"!asyncData.loading\"\n [ngTemplateOutlet]=\"$any(customFileIcon)\"\n [ngTemplateOutletContext]=\"{ $implicit: file }\"\n ></ng-container>\n\n <kbq-progress-spinner\n *ngIf=\"asyncData.loading\"\n class=\"kbq-file-upload-name-cell__icon\"\n [mode]=\"progressMode\"\n [value]=\"asyncData.progress || 0\"\n ></kbq-progress-spinner>\n </ng-container>\n\n <span\n class=\"file-item__text\"\n [kbqEllipsisCenter]=\"file.file.name\"\n [minVisibleLength]=\"10\"\n ></span>\n </div>\n <div class=\"kbq-file-upload__size\">{{ file.file.size | kbqDataSize }}</div>\n <div class=\"kbq-file-upload__action\">\n <i\n kbq-icon-button=\"mc-close-circle_16\"\n (click)=\"deleteFile(index, $event)\"\n ></i>\n </div>\n </div>\n </kbq-list-option>\n </kbq-list-selection>\n </div>\n\n <div class=\"btn-upload\">\n <div class=\"dropzone\">\n <i kbq-icon=\"mc-upload-to-cloud_24\"></i>\n <span class=\"dropzone__text multiple__caption\">\n {{ separatedCaptionTextWhenSelected[0] }}\n <label\n kbq-link\n pseudo\n [disabled]=\"disabled\"\n [for]=\"inputId\"\n [tabIndex]=\"-1\"\n >\n {{ config.browseLink }}\n <ng-container *ngTemplateOutlet=\"inputTemplate\"></ng-container>\n </label>\n {{ separatedCaptionTextWhenSelected[1] }}\n </span>\n </div>\n </div>\n </div>\n</ng-template>\n\n<ng-template #compactCaption>\n <i kbq-icon=\"mc-upload-to-cloud_24\"></i>\n <span class=\"dropzone__text multiple__caption\">\n {{ separatedCaptionTextForCompactSize[0] }}\n <label\n kbq-link\n pseudo\n [disabled]=\"disabled\"\n [for]=\"inputId\"\n [tabIndex]=\"-1\"\n >\n {{ config.browseLink }}\n <ng-container *ngTemplateOutlet=\"inputTemplate\"></ng-container>\n </label>\n {{ separatedCaptionTextForCompactSize[1] }}\n </span>\n</ng-template>\n\n<ng-template #inputTemplate>\n <input\n #input\n multiple\n type=\"file\"\n class=\"cdk-visually-hidden\"\n [accept]=\"acceptedFiles\"\n [disabled]=\"disabled\"\n [id]=\"inputId\"\n (change)=\"onFileSelectedViaClick($event)\"\n />\n</ng-template>\n", styles: [".kbq-file-upload{box-sizing:border-box;display:flex;align-items:center;position:relative}.kbq-file-upload .dropzone,.kbq-file-upload .file-item{display:flex;align-items:center}.kbq-file-upload .kbq-ellipsis-center{position:relative;display:flex}.kbq-file-upload .kbq-ellipsis-center .data-text-start{flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:pre}.kbq-file-upload .kbq-ellipsis-center .data-text-end{flex:1 0 auto;overflow:hidden;white-space:pre}\n", ".kbq-multiple-file-upload .kbq-file-upload{border-radius:var(--kbq-file-upload-size-multiple-big-container-border-radius, 8px);border-width:var(--kbq-file-upload-size-multiple-big-container-border-width, 1px);border-style:dashed}.kbq-multiple-file-upload .kbq-file-upload.default:not(.selected){justify-content:center;padding:var(--kbq-file-upload-size-multiple-big-container-padding-vertical, 24px) var(--kbq-file-upload-size-multiple-big-container-padding-vertical, 24px);min-height:var(--kbq-file-upload-size-multiple-big-container-min-height, 160px);min-width:var(--kbq-file-upload-size-multiple-big-container-min-width, 320px)}.kbq-multiple-file-upload .kbq-file-upload.default:not(.selected) .dropzone{gap:var(--kbq-file-upload-size-multiple-big-container-content-gap-horizontal, 12px)}.kbq-multiple-file-upload .kbq-file-upload.default:not(.selected) .dropzone__text .multiple__header{display:block}.kbq-multiple-file-upload .kbq-file-upload.default:not(.selected) .dropzone__text .multiple__caption{display:block;padding-top:var(--kbq-file-upload-size-multiple-big-text-block-content-gap-vertical, 0px);gap:var(--kbq-file-upload-size-multiple-big-text-block-content-gap-horizontal, 4px)}.kbq-multiple-file-upload .kbq-file-upload.compact:not(.selected){padding:var(--kbq-file-upload-size-single-container-padding-vertical, 12px) var(--kbq-file-upload-size-single-container-padding-horizontal, 12px)}.kbq-multiple-file-upload .kbq-file-upload.compact:not(.selected) .dropzone{gap:var(--kbq-file-upload-size-single-container-content-gap-horizontal, 8px)}.kbq-multiple-file-upload .kbq-file-upload.compact:not(.selected) .dropzone .dropzone__text.multiple__caption{padding-top:var(--kbq-file-upload-size-single-text-block-padding-vertical, 2px);padding-bottom:var(--kbq-file-upload-size-single-text-block-padding-vertical, 2px);gap:var(--kbq-file-upload-size-single-text-block-content-gap-horizontal, 4px)}.kbq-multiple-file-upload .kbq-file-upload .kbq-list-option.multiple__uploaded-item{padding:0}.kbq-multiple-file-upload .kbq-file-upload .kbq-list-option.multiple__uploaded-item .kbq-list-text{padding:calc(var(--kbq-file-upload-size-multiple-big-grid-cell-padding-vertical, 8px) - var(--kbq-list-size-container-focus-outline-width, 2px)) calc(var(--kbq-file-upload-size-multiple-big-grid-cell-padding-horizontal, 8px) - var(--kbq-list-size-container-focus-outline-width, 2px))}.kbq-multiple-file-upload .kbq-file-upload .kbq-list-option.multiple__uploaded-item .kbq-icon{margin-right:0}.kbq-multiple-file-upload .kbq-file-upload .kbq-file-upload__grid{min-height:144px}.kbq-multiple-file-upload .kbq-file-upload .kbq-file-multiple-uploaded__header-inner,.kbq-multiple-file-upload .kbq-file-upload .kbq-file-upload__row{display:flex;align-items:center}.kbq-multiple-file-upload .kbq-file-upload .kbq-file-multiple-uploaded__header-inner .kbq-file-upload__file,.kbq-multiple-file-upload .kbq-file-upload .kbq-file-upload__row .kbq-file-upload__file{width:65%;max-width:65%;gap:var(--kbq-file-upload-size-multiple-big-grid-cell-content-gap-horizontal, 4px)}.kbq-multiple-file-upload .kbq-file-upload .kbq-file-multiple-uploaded__header-inner .kbq-file-upload__size,.kbq-multiple-file-upload .kbq-file-upload .kbq-file-upload__row .kbq-file-upload__size{width:64px;min-width:64px;text-align:left;flex-grow:1}.kbq-multiple-file-upload .kbq-file-upload .kbq-file-upload__row .kbq-file-upload__file{display:flex;align-items:center}.kbq-multiple-file-upload .kbq-file-upload .kbq-file-upload__row .kbq-file-upload__file .file-item__text{margin-left:0;width:90%}.kbq-multiple-file-upload .kbq-file-upload .kbq-file-multiple-uploaded__header{border-bottom-width:1px;border-bottom-style:solid}.kbq-multiple-file-upload .kbq-file-upload .kbq-file-multiple-uploaded__header .kbq-file-multiple-uploaded__header-inner{padding:calc(var(--kbq-file-upload-size-multiple-big-grid-cell-padding-vertical, 8px) + 2px) calc(var(--kbq-file-upload-size-multiple-big-grid-cell-padding-horizontal, 8px) + 2px)}.kbq-multiple-file-upload .kbq-file-upload .btn-upload{padding:calc(var(--kbq-file-upload-size-single-container-padding-vertical, 12px) - 1px) calc(var(--kbq-file-upload-size-single-container-padding-horizontal, 12px) - 1px);border-top-left-radius:var(--kbq-file-upload-size-single-container-border-radius, 8px);border-top-right-radius:var(--kbq-file-upload-size-single-container-border-radius, 8px);border-top-width:var(--kbq-file-upload-size-single-container-border-width, 1px);border-top-style:dashed}.kbq-multiple-file-upload .kbq-file-upload .btn-upload .dropzone{gap:var(--kbq-file-upload-size-single-container-content-gap-horizontal, 8px)}.kbq-multiple-file-upload .kbq-file-upload .btn-upload .dropzone .dropzone__text.multiple__caption{padding-top:var(--kbq-file-upload-size-single-text-block-padding-vertical, 2px);padding-bottom:var(--kbq-file-upload-size-single-text-block-padding-vertical, 2px);gap:var(--kbq-file-upload-size-single-text-block-content-gap-horizontal, 4px)}.kbq-multiple-file-upload .kbq-file-upload .file-upload__dropzone{width:100%;height:100%}.kbq-hint{display:block}.kbq-file-upload__hint{margin-top:var(--kbq-form-field-hint-size-margin-top, 4px)}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i3.KbqProgressSpinner, selector: "kbq-progress-spinner", inputs: ["color", "id", "value", "mode", "size"] }, { kind: "component", type: i4.KbqIcon, selector: "[kbq-icon]", inputs: ["color", "small", "autoColor"] }, { kind: "component", type: i4.KbqIconButton, selector: "[kbq-icon-button]", inputs: ["color", "small", "tabindex", "disabled"] }, { kind: "component", type: i5.KbqListSelection, selector: "kbq-list-selection", inputs: ["disabled", "autoSelect", "noUnselectLast", "horizontal", "tabIndex", "compareWith"], outputs: ["onSelectAll", "onCopy", "selectionChange"], exportAs: ["kbqListSelection"] }, { kind: "component", type: i5.KbqListOption, selector: "kbq-list-option", inputs: ["checkboxPosition", "value", "disabled", "showCheckbox", "selected"], exportAs: ["kbqListOption"] }, { kind: "component", type: i6.KbqHint, selector: "kbq-hint", inputs: ["color", "id", "fillTextOff", "compact"], exportAs: ["kbqHint"] }, { kind: "directive", type: i7.KbqEllipsisCenterDirective, selector: "[kbqEllipsisCenter]", inputs: ["kbqEllipsisCenter", "minVisibleLength"] }, { kind: "directive", type: i8.KbqLink, selector: "[kbq-link]", inputs: ["tabIndex", "disabled", "pseudo", "noUnderline", "big", "compact", "useVisited", "print"], exportAs: ["kbqLink"] }, { kind: "directive", type: KbqFileDropDirective, selector: "[kbqFileDrop]", outputs: ["filesDropped"], exportAs: ["kbqFileDrop"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "pipe", type: i10.KbqDataSizePipe, name: "kbqDataSize" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
294
298
  }
295
299
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.0", ngImport: i0, type: KbqMultipleFileUploadComponent, decorators: [{
296
300
  type: Component,
297
301
  args: [{ selector: 'kbq-multiple-file-upload,kbq-file-upload[multiple]', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
298
302
  class: 'kbq-multiple-file-upload'
299
- }, template: "<div class=\"kbq-file-upload\"\n kbqFileDrop\n [class.kbq-disabled]=\"disabled\"\n [class.selected]=\"files?.length\"\n [ngClass]=\"size\"\n (filesDropped)=\"onFileDropped($event)\">\n\n <ng-container *ngIf=\"!files.length; else fileOutput\">\n <div class=\"dropzone\">\n <ng-container *ngIf=\"size === 'default' else compactCaption\">\n <i kbq-icon=\"mc-upload-to-cloud_32\"></i>\n <div class=\"dropzone__text\">\n <span class=\"multiple__header\">{{ config.title }}</span>\n <div>\n <span class=\"multiple__caption\">\n {{ separatedCaptionText[0] }}<label kbq-link pseudo [disabled]=\"disabled\" [tabIndex]=\"-1\" [for]=\"inputId\">{{ config.browseLink }}<ng-container *ngTemplateOutlet=\"inputTemplate\"></ng-container></label>{{ separatedCaptionText[1] }}\n </span>\n </div>\n </div>\n </ng-container>\n </div>\n </ng-container>\n</div>\n\n<div class=\"kbq-file-upload__info-section\">\n <kbq-hint class=\"kbq-file-upload__hint\">\n <ng-content select=\"[hint]\"></ng-content>\n </kbq-hint>\n\n <ng-container *ngIf=\"hasErrors\">\n <kbq-hint class=\"kbq-file-upload__hint kbq-error\"\n *ngFor=\"let error of errors\">\n {{ error }}\n </kbq-hint>\n </ng-container>\n</div>\n\n<ng-template #fileOutput>\n <div class=\"file-upload__dropzone\">\n <div class=\"kbq-file-upload__grid\">\n <div class=\"kbq-file-multiple-uploaded__header\">\n <div class=\"kbq-file-multiple-uploaded__header-inner\">\n <div [class]=\"'kbq-file-upload__' + column.cssClass\" *ngFor=\"let column of columnDefs\">\n {{ column.header }}\n </div>\n </div>\n </div>\n\n <kbq-list-selection [autoSelect]=\"false\" [disabled]=\"disabled\">\n <kbq-list-option\n class=\"multiple__uploaded-item\"\n [value]=\"file.file.name\"\n (keydown.delete)=\"deleteFile(index)\"\n (keydown.backspace)=\"deleteFile(index)\"\n *ngFor=\"let file of files; let index = index;\">\n <div class=\"kbq-file-upload__row\" [class.error]=\"file.hasError\">\n <div class=\"kbq-file-upload__file\">\n <ng-container *ngIf=\"{ loading: file.loading | async, progress: file.progress | async } as asyncData\">\n <ng-container *ngIf=\"!asyncData.loading\"\n [ngTemplateOutlet]=\"$any(customFileIcon)\"\n [ngTemplateOutletContext]=\"{ $implicit: file }\">\n </ng-container>\n\n <kbq-progress-spinner\n class=\"kbq-file-upload-name-cell__icon\"\n [mode]=\"progressMode\"\n [value]=\"asyncData.progress || 0\"\n *ngIf=\"asyncData.loading\"\n ></kbq-progress-spinner>\n </ng-container>\n\n <span class=\"file-item__text\" [kbqEllipsisCenter]=\"file.file.name\" [minVisibleLength]=\"10\"></span>\n </div>\n <div class=\"kbq-file-upload__size\">\n {{ file.file.size | kbqDataSize }}\n </div>\n <div class=\"kbq-file-upload__action\">\n <i kbq-icon-button=\"mc-close-circle_16\" (click)=\"deleteFile(index, $event)\"></i>\n </div>\n </div>\n </kbq-list-option>\n </kbq-list-selection>\n </div>\n\n <div class=\"btn-upload\">\n <div class=\"dropzone\">\n <i kbq-icon=\"mc-upload-to-cloud_24\"></i>\n <span class=\"dropzone__text multiple__caption\">\n {{ separatedCaptionTextWhenSelected[0] }}<label kbq-link pseudo [disabled]=\"disabled\" [tabIndex]=\"-1\" [for]=\"inputId\">{{ config.browseLink }}<ng-container *ngTemplateOutlet=\"inputTemplate\"></ng-container></label>{{ separatedCaptionTextWhenSelected[1] }}\n </span>\n </div>\n </div>\n </div>\n</ng-template>\n\n<ng-template #compactCaption>\n <i kbq-icon=\"mc-upload-to-cloud_24\"></i>\n <span class=\"dropzone__text multiple__caption\">\n {{ separatedCaptionTextForCompactSize[0] }}<label kbq-link pseudo [disabled]=\"disabled\" [tabIndex]=\"-1\" [for]=\"inputId\">{{ config.browseLink }}<ng-container *ngTemplateOutlet=\"inputTemplate\"></ng-container></label>{{ separatedCaptionTextForCompactSize[1] }}\n </span>\n</ng-template>\n\n<ng-template #inputTemplate>\n <input #input\n type=\"file\"\n class=\"cdk-visually-hidden\"\n multiple\n [id]=\"inputId\"\n [accept]=\"acceptedFiles\"\n [disabled]=\"disabled\"\n (change)=\"onFileSelectedViaClick($event)\">\n</ng-template>\n", styles: [".kbq-file-upload{box-sizing:border-box;display:flex;align-items:center;position:relative}.kbq-file-upload .dropzone,.kbq-file-upload .file-item{display:flex;align-items:center}.kbq-file-upload .kbq-ellipsis-center{position:relative;display:flex}.kbq-file-upload .kbq-ellipsis-center .data-text-start{flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:pre}.kbq-file-upload .kbq-ellipsis-center .data-text-end{flex:1 0 auto;overflow:hidden;white-space:pre}\n", ".kbq-multiple-file-upload .kbq-file-upload{border-radius:var(--kbq-file-upload-size-multiple-big-container-border-radius, 8px);border-width:var(--kbq-file-upload-size-multiple-big-container-border-width, 1px);border-style:dashed}.kbq-multiple-file-upload .kbq-file-upload.default:not(.selected){justify-content:center;padding:var(--kbq-file-upload-size-multiple-big-container-padding-vertical, 24px) var(--kbq-file-upload-size-multiple-big-container-padding-vertical, 24px);min-height:var(--kbq-file-upload-size-multiple-big-container-min-height, 160px);min-width:var(--kbq-file-upload-size-multiple-big-container-min-width, 320px)}.kbq-multiple-file-upload .kbq-file-upload.default:not(.selected) .dropzone{gap:var(--kbq-file-upload-size-multiple-big-container-content-gap-horizontal, 12px)}.kbq-multiple-file-upload .kbq-file-upload.default:not(.selected) .dropzone__text .multiple__header{display:block}.kbq-multiple-file-upload .kbq-file-upload.default:not(.selected) .dropzone__text .multiple__caption{display:block;padding-top:var(--kbq-file-upload-size-multiple-big-text-block-content-gap-vertical, 0px);gap:var(--kbq-file-upload-size-multiple-big-text-block-content-gap-horizontal, 4px)}.kbq-multiple-file-upload .kbq-file-upload.compact:not(.selected){padding:var(--kbq-file-upload-size-single-container-padding-vertical, 12px) var(--kbq-file-upload-size-single-container-padding-horizontal, 12px)}.kbq-multiple-file-upload .kbq-file-upload.compact:not(.selected) .dropzone{gap:var(--kbq-file-upload-size-single-container-content-gap-horizontal, 8px)}.kbq-multiple-file-upload .kbq-file-upload.compact:not(.selected) .dropzone .dropzone__text.multiple__caption{padding-top:var(--kbq-file-upload-size-single-text-block-padding-vertical, 2px);padding-bottom:var(--kbq-file-upload-size-single-text-block-padding-vertical, 2px);gap:var(--kbq-file-upload-size-single-text-block-content-gap-horizontal, 4px)}.kbq-multiple-file-upload .kbq-file-upload .kbq-list-option.multiple__uploaded-item{padding:0}.kbq-multiple-file-upload .kbq-file-upload .kbq-list-option.multiple__uploaded-item .kbq-list-text{padding:calc(var(--kbq-file-upload-size-multiple-big-grid-cell-padding-vertical, 8px) - var(--kbq-list-size-container-focus-outline-width, 2px)) calc(var(--kbq-file-upload-size-multiple-big-grid-cell-padding-horizontal, 8px) - var(--kbq-list-size-container-focus-outline-width, 2px))}.kbq-multiple-file-upload .kbq-file-upload .kbq-list-option.multiple__uploaded-item .kbq-icon{margin-right:0}.kbq-multiple-file-upload .kbq-file-upload .kbq-file-upload__grid{min-height:144px}.kbq-multiple-file-upload .kbq-file-upload .kbq-file-multiple-uploaded__header-inner,.kbq-multiple-file-upload .kbq-file-upload .kbq-file-upload__row{display:flex;align-items:center}.kbq-multiple-file-upload .kbq-file-upload .kbq-file-multiple-uploaded__header-inner .kbq-file-upload__file,.kbq-multiple-file-upload .kbq-file-upload .kbq-file-upload__row .kbq-file-upload__file{width:65%;max-width:65%;gap:var(--kbq-file-upload-size-multiple-big-grid-cell-content-gap-horizontal, 4px)}.kbq-multiple-file-upload .kbq-file-upload .kbq-file-multiple-uploaded__header-inner .kbq-file-upload__size,.kbq-multiple-file-upload .kbq-file-upload .kbq-file-upload__row .kbq-file-upload__size{width:64px;min-width:64px;text-align:left;flex-grow:1}.kbq-multiple-file-upload .kbq-file-upload .kbq-file-upload__row .kbq-file-upload__file{display:flex;align-items:center}.kbq-multiple-file-upload .kbq-file-upload .kbq-file-upload__row .kbq-file-upload__file .file-item__text{margin-left:0;width:90%}.kbq-multiple-file-upload .kbq-file-upload .kbq-file-multiple-uploaded__header{border-bottom-width:1px;border-bottom-style:solid}.kbq-multiple-file-upload .kbq-file-upload .kbq-file-multiple-uploaded__header .kbq-file-multiple-uploaded__header-inner{padding:calc(var(--kbq-file-upload-size-multiple-big-grid-cell-padding-vertical, 8px) + 2px) calc(var(--kbq-file-upload-size-multiple-big-grid-cell-padding-horizontal, 8px) + 2px)}.kbq-multiple-file-upload .kbq-file-upload .btn-upload{padding:calc(var(--kbq-file-upload-size-single-container-padding-vertical, 12px) - 1px) calc(var(--kbq-file-upload-size-single-container-padding-horizontal, 12px) - 1px);border-top-left-radius:var(--kbq-file-upload-size-single-container-border-radius, 8px);border-top-right-radius:var(--kbq-file-upload-size-single-container-border-radius, 8px);border-top-width:var(--kbq-file-upload-size-single-container-border-width, 1px);border-top-style:dashed}.kbq-multiple-file-upload .kbq-file-upload .btn-upload .dropzone{gap:var(--kbq-file-upload-size-single-container-content-gap-horizontal, 8px)}.kbq-multiple-file-upload .kbq-file-upload .btn-upload .dropzone .dropzone__text.multiple__caption{padding-top:var(--kbq-file-upload-size-single-text-block-padding-vertical, 2px);padding-bottom:var(--kbq-file-upload-size-single-text-block-padding-vertical, 2px);gap:var(--kbq-file-upload-size-single-text-block-content-gap-horizontal, 4px)}.kbq-multiple-file-upload .kbq-file-upload .file-upload__dropzone{width:100%;height:100%}.kbq-hint{display:block}.kbq-file-upload__hint{margin-top:var(--kbq-form-field-hint-size-margin-top, 4px)}\n"] }]
303
+ }, template: "<div\n kbqFileDrop\n class=\"kbq-file-upload\"\n [class.kbq-disabled]=\"disabled\"\n [class.selected]=\"files?.length\"\n [ngClass]=\"size\"\n (filesDropped)=\"onFileDropped($event)\"\n>\n <ng-container *ngIf=\"!files.length; else fileOutput\">\n <div class=\"dropzone\">\n <ng-container *ngIf=\"size === 'default'; else compactCaption\">\n <i kbq-icon=\"mc-upload-to-cloud_32\"></i>\n <div class=\"dropzone__text\">\n <span class=\"multiple__header\">{{ config.title }}</span>\n <div>\n <!-- prettier-ignore -->\n <span class=\"multiple__caption\">\n {{ separatedCaptionText[0] }}<label kbq-link pseudo [disabled]=\"disabled\" [tabIndex]=\"-1\" [for]=\"inputId\">{{ config.browseLink }}<ng-container *ngTemplateOutlet=\"inputTemplate\"></ng-container></label>{{ separatedCaptionText[1] }}\n </span>\n </div>\n </div>\n </ng-container>\n </div>\n </ng-container>\n</div>\n\n<div class=\"kbq-file-upload__info-section\">\n <kbq-hint class=\"kbq-file-upload__hint\">\n <ng-content select=\"[hint]\"></ng-content>\n </kbq-hint>\n\n <ng-container *ngIf=\"hasErrors\">\n <kbq-hint\n *ngFor=\"let error of errors\"\n class=\"kbq-file-upload__hint kbq-error\"\n >\n {{ error }}\n </kbq-hint>\n </ng-container>\n</div>\n\n<ng-template #fileOutput>\n <div class=\"file-upload__dropzone\">\n <div class=\"kbq-file-upload__grid\">\n <div class=\"kbq-file-multiple-uploaded__header\">\n <div class=\"kbq-file-multiple-uploaded__header-inner\">\n <div\n *ngFor=\"let column of columnDefs\"\n [class]=\"'kbq-file-upload__' + column.cssClass\"\n >\n {{ column.header }}\n </div>\n </div>\n </div>\n\n <kbq-list-selection\n [autoSelect]=\"false\"\n [disabled]=\"disabled\"\n >\n <kbq-list-option\n *ngFor=\"let file of files; let index = index\"\n class=\"multiple__uploaded-item\"\n [value]=\"file.file.name\"\n (keydown.backspace)=\"deleteFile(index)\"\n (keydown.delete)=\"deleteFile(index)\"\n >\n <div\n class=\"kbq-file-upload__row\"\n [class.error]=\"file.hasError\"\n >\n <div class=\"kbq-file-upload__file\">\n <ng-container\n *ngIf=\"{ loading: file.loading | async, progress: file.progress | async } as asyncData\"\n >\n <ng-container\n *ngIf=\"!asyncData.loading\"\n [ngTemplateOutlet]=\"$any(customFileIcon)\"\n [ngTemplateOutletContext]=\"{ $implicit: file }\"\n ></ng-container>\n\n <kbq-progress-spinner\n *ngIf=\"asyncData.loading\"\n class=\"kbq-file-upload-name-cell__icon\"\n [mode]=\"progressMode\"\n [value]=\"asyncData.progress || 0\"\n ></kbq-progress-spinner>\n </ng-container>\n\n <span\n class=\"file-item__text\"\n [kbqEllipsisCenter]=\"file.file.name\"\n [minVisibleLength]=\"10\"\n ></span>\n </div>\n <div class=\"kbq-file-upload__size\">{{ file.file.size | kbqDataSize }}</div>\n <div class=\"kbq-file-upload__action\">\n <i\n kbq-icon-button=\"mc-close-circle_16\"\n (click)=\"deleteFile(index, $event)\"\n ></i>\n </div>\n </div>\n </kbq-list-option>\n </kbq-list-selection>\n </div>\n\n <div class=\"btn-upload\">\n <div class=\"dropzone\">\n <i kbq-icon=\"mc-upload-to-cloud_24\"></i>\n <span class=\"dropzone__text multiple__caption\">\n {{ separatedCaptionTextWhenSelected[0] }}\n <label\n kbq-link\n pseudo\n [disabled]=\"disabled\"\n [for]=\"inputId\"\n [tabIndex]=\"-1\"\n >\n {{ config.browseLink }}\n <ng-container *ngTemplateOutlet=\"inputTemplate\"></ng-container>\n </label>\n {{ separatedCaptionTextWhenSelected[1] }}\n </span>\n </div>\n </div>\n </div>\n</ng-template>\n\n<ng-template #compactCaption>\n <i kbq-icon=\"mc-upload-to-cloud_24\"></i>\n <span class=\"dropzone__text multiple__caption\">\n {{ separatedCaptionTextForCompactSize[0] }}\n <label\n kbq-link\n pseudo\n [disabled]=\"disabled\"\n [for]=\"inputId\"\n [tabIndex]=\"-1\"\n >\n {{ config.browseLink }}\n <ng-container *ngTemplateOutlet=\"inputTemplate\"></ng-container>\n </label>\n {{ separatedCaptionTextForCompactSize[1] }}\n </span>\n</ng-template>\n\n<ng-template #inputTemplate>\n <input\n #input\n multiple\n type=\"file\"\n class=\"cdk-visually-hidden\"\n [accept]=\"acceptedFiles\"\n [disabled]=\"disabled\"\n [id]=\"inputId\"\n (change)=\"onFileSelectedViaClick($event)\"\n />\n</ng-template>\n", styles: [".kbq-file-upload{box-sizing:border-box;display:flex;align-items:center;position:relative}.kbq-file-upload .dropzone,.kbq-file-upload .file-item{display:flex;align-items:center}.kbq-file-upload .kbq-ellipsis-center{position:relative;display:flex}.kbq-file-upload .kbq-ellipsis-center .data-text-start{flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:pre}.kbq-file-upload .kbq-ellipsis-center .data-text-end{flex:1 0 auto;overflow:hidden;white-space:pre}\n", ".kbq-multiple-file-upload .kbq-file-upload{border-radius:var(--kbq-file-upload-size-multiple-big-container-border-radius, 8px);border-width:var(--kbq-file-upload-size-multiple-big-container-border-width, 1px);border-style:dashed}.kbq-multiple-file-upload .kbq-file-upload.default:not(.selected){justify-content:center;padding:var(--kbq-file-upload-size-multiple-big-container-padding-vertical, 24px) var(--kbq-file-upload-size-multiple-big-container-padding-vertical, 24px);min-height:var(--kbq-file-upload-size-multiple-big-container-min-height, 160px);min-width:var(--kbq-file-upload-size-multiple-big-container-min-width, 320px)}.kbq-multiple-file-upload .kbq-file-upload.default:not(.selected) .dropzone{gap:var(--kbq-file-upload-size-multiple-big-container-content-gap-horizontal, 12px)}.kbq-multiple-file-upload .kbq-file-upload.default:not(.selected) .dropzone__text .multiple__header{display:block}.kbq-multiple-file-upload .kbq-file-upload.default:not(.selected) .dropzone__text .multiple__caption{display:block;padding-top:var(--kbq-file-upload-size-multiple-big-text-block-content-gap-vertical, 0px);gap:var(--kbq-file-upload-size-multiple-big-text-block-content-gap-horizontal, 4px)}.kbq-multiple-file-upload .kbq-file-upload.compact:not(.selected){padding:var(--kbq-file-upload-size-single-container-padding-vertical, 12px) var(--kbq-file-upload-size-single-container-padding-horizontal, 12px)}.kbq-multiple-file-upload .kbq-file-upload.compact:not(.selected) .dropzone{gap:var(--kbq-file-upload-size-single-container-content-gap-horizontal, 8px)}.kbq-multiple-file-upload .kbq-file-upload.compact:not(.selected) .dropzone .dropzone__text.multiple__caption{padding-top:var(--kbq-file-upload-size-single-text-block-padding-vertical, 2px);padding-bottom:var(--kbq-file-upload-size-single-text-block-padding-vertical, 2px);gap:var(--kbq-file-upload-size-single-text-block-content-gap-horizontal, 4px)}.kbq-multiple-file-upload .kbq-file-upload .kbq-list-option.multiple__uploaded-item{padding:0}.kbq-multiple-file-upload .kbq-file-upload .kbq-list-option.multiple__uploaded-item .kbq-list-text{padding:calc(var(--kbq-file-upload-size-multiple-big-grid-cell-padding-vertical, 8px) - var(--kbq-list-size-container-focus-outline-width, 2px)) calc(var(--kbq-file-upload-size-multiple-big-grid-cell-padding-horizontal, 8px) - var(--kbq-list-size-container-focus-outline-width, 2px))}.kbq-multiple-file-upload .kbq-file-upload .kbq-list-option.multiple__uploaded-item .kbq-icon{margin-right:0}.kbq-multiple-file-upload .kbq-file-upload .kbq-file-upload__grid{min-height:144px}.kbq-multiple-file-upload .kbq-file-upload .kbq-file-multiple-uploaded__header-inner,.kbq-multiple-file-upload .kbq-file-upload .kbq-file-upload__row{display:flex;align-items:center}.kbq-multiple-file-upload .kbq-file-upload .kbq-file-multiple-uploaded__header-inner .kbq-file-upload__file,.kbq-multiple-file-upload .kbq-file-upload .kbq-file-upload__row .kbq-file-upload__file{width:65%;max-width:65%;gap:var(--kbq-file-upload-size-multiple-big-grid-cell-content-gap-horizontal, 4px)}.kbq-multiple-file-upload .kbq-file-upload .kbq-file-multiple-uploaded__header-inner .kbq-file-upload__size,.kbq-multiple-file-upload .kbq-file-upload .kbq-file-upload__row .kbq-file-upload__size{width:64px;min-width:64px;text-align:left;flex-grow:1}.kbq-multiple-file-upload .kbq-file-upload .kbq-file-upload__row .kbq-file-upload__file{display:flex;align-items:center}.kbq-multiple-file-upload .kbq-file-upload .kbq-file-upload__row .kbq-file-upload__file .file-item__text{margin-left:0;width:90%}.kbq-multiple-file-upload .kbq-file-upload .kbq-file-multiple-uploaded__header{border-bottom-width:1px;border-bottom-style:solid}.kbq-multiple-file-upload .kbq-file-upload .kbq-file-multiple-uploaded__header .kbq-file-multiple-uploaded__header-inner{padding:calc(var(--kbq-file-upload-size-multiple-big-grid-cell-padding-vertical, 8px) + 2px) calc(var(--kbq-file-upload-size-multiple-big-grid-cell-padding-horizontal, 8px) + 2px)}.kbq-multiple-file-upload .kbq-file-upload .btn-upload{padding:calc(var(--kbq-file-upload-size-single-container-padding-vertical, 12px) - 1px) calc(var(--kbq-file-upload-size-single-container-padding-horizontal, 12px) - 1px);border-top-left-radius:var(--kbq-file-upload-size-single-container-border-radius, 8px);border-top-right-radius:var(--kbq-file-upload-size-single-container-border-radius, 8px);border-top-width:var(--kbq-file-upload-size-single-container-border-width, 1px);border-top-style:dashed}.kbq-multiple-file-upload .kbq-file-upload .btn-upload .dropzone{gap:var(--kbq-file-upload-size-single-container-content-gap-horizontal, 8px)}.kbq-multiple-file-upload .kbq-file-upload .btn-upload .dropzone .dropzone__text.multiple__caption{padding-top:var(--kbq-file-upload-size-single-text-block-padding-vertical, 2px);padding-bottom:var(--kbq-file-upload-size-single-text-block-padding-vertical, 2px);gap:var(--kbq-file-upload-size-single-text-block-content-gap-horizontal, 4px)}.kbq-multiple-file-upload .kbq-file-upload .file-upload__dropzone{width:100%;height:100%}.kbq-hint{display:block}.kbq-file-upload__hint{margin-top:var(--kbq-form-field-hint-size-margin-top, 4px)}\n"] }]
300
304
  }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.Renderer2 }, { type: undefined, decorators: [{
301
305
  type: Optional
302
306
  }, {
@@ -379,8 +383,7 @@ class KbqSingleFileUploadComponent {
379
383
  this.getCaptionText();
380
384
  this.cdr.markForCheck();
381
385
  };
382
- this.localeService?.changes
383
- .subscribe(this.updateLocaleParams);
386
+ this.localeService?.changes.subscribe(this.updateLocaleParams);
384
387
  if (!localeService) {
385
388
  this.initDefaultParams();
386
389
  }
@@ -392,7 +395,8 @@ class KbqSingleFileUploadComponent {
392
395
  }
393
396
  ngAfterViewInit() {
394
397
  // FormControl specific errors update
395
- this.statusChangeSubscription = this.ngControl?.statusChanges?.pipe(distinctUntilChanged())
398
+ this.statusChangeSubscription = this.ngControl?.statusChanges
399
+ ?.pipe(distinctUntilChanged())
396
400
  .subscribe((status) => {
397
401
  if (this._file) {
398
402
  this._file.hasError = status === 'INVALID';
@@ -416,10 +420,14 @@ class KbqSingleFileUploadComponent {
416
420
  }
417
421
  /** Implemented as part of ControlValueAccessor.
418
422
  * @docs-private */
419
- registerOnChange(fn) { this.cvaOnChange = fn; }
423
+ registerOnChange(fn) {
424
+ this.cvaOnChange = fn;
425
+ }
420
426
  /** Implemented as part of ControlValueAccessor.
421
427
  * @docs-private */
422
- registerOnTouched(fn) { this.onTouched = fn; }
428
+ registerOnTouched(fn) {
429
+ this.onTouched = fn;
430
+ }
423
431
  /**
424
432
  * Sets the disabled state of the control. Implemented as a part of ControlValueAccessor.
425
433
  * @param isDisabled Whether the control should be disabled.
@@ -491,13 +499,13 @@ class KbqSingleFileUploadComponent {
491
499
  this.separatedCaptionText = this.config.captionText.split('{{ browseLink }}');
492
500
  }
493
501
  /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.0", ngImport: i0, type: KbqSingleFileUploadComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }, { token: KBQ_FILE_UPLOAD_CONFIGURATION, optional: true }, { token: KBQ_LOCALE_SERVICE, optional: true }, { token: i1.NgControl, optional: true, self: true }], target: i0.ɵɵFactoryTarget.Component }); }
494
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.0", type: KbqSingleFileUploadComponent, selector: "kbq-single-file-upload,kbq-file-upload:not([multiple])", inputs: { progressMode: "progressMode", accept: "accept", disabled: "disabled", errors: "errors", inputId: "inputId", customValidation: "customValidation", file: "file" }, outputs: { fileQueueChange: "fileQueueChange" }, host: { classAttribute: "kbq-single-file-upload" }, viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }], ngImport: i0, template: "<div class=\"kbq-file-upload\"\n kbqFileDrop\n [class.kbq-disabled]=\"disabled\"\n [class.kbq-error]=\"errors?.length\"\n (filesDropped)=\"onFileDropped($event)\">\n\n <div class=\"dropzone\" *ngIf=\"!file; else fileOutput\">\n <i kbq-icon=\"mc-upload-to-cloud_24\"></i>\n <span class=\"dropzone__text\">\n {{ separatedCaptionText[0] }}<label kbq-link pseudo [disabled]=\"disabled\" [tabIndex]=\"-1\" [for]=\"inputId\">{{ config.browseLink }}<input #input type=\"file\" class=\"cdk-visually-hidden\" [id]=\"inputId\" [accept]=\"acceptedFiles\" [disabled]=\"disabled\" (change)=\"onFileSelectedViaClick($event)\"></label>{{ separatedCaptionText[1] }}\n </span>\n </div>\n</div>\n\n<kbq-hint class=\"kbq-file-upload__hint\">\n <ng-content select=\"[hint]\"></ng-content>\n</kbq-hint>\n<ng-container *ngIf=\"errors?.length\">\n <kbq-hint class=\"kbq-file-upload__hint kbq-error\" *ngFor=\"let error of errors\">{{ error }}</kbq-hint>\n</ng-container>\n\n<ng-template #fileOutput>\n <div class=\"file-item\" *ngIf=\"file\">\n <div class=\"file-item__text-wrapper\">\n <ng-container *ngIf=\"{ loading: file.loading | async, progress: file.progress | async} as asyncData\">\n <ng-container *ngIf=\"!asyncData.loading\">\n <ng-content select=\"[kbq-icon]\"></ng-content>\n </ng-container>\n\n <kbq-progress-spinner\n [mode]=\"progressMode\"\n [value]=\"asyncData.progress || 0\"\n *ngIf=\"asyncData.loading\"\n ></kbq-progress-spinner>\n </ng-container>\n\n <div class=\"file-item__text\" [kbqEllipsisCenter]=\"file.file.name\" [minVisibleLength]=\"10\"></div>\n </div>\n <i kbq-icon-button=\"mc-close-circle_16\"\n [color]=\"'contrast'\"\n [disabled]=\"disabled\"\n (keydown.delete)=\"deleteItem()\"\n (keydown.backspace)=\"deleteItem()\"\n (click)=\"deleteItem($event)\">\n </i>\n </div>\n</ng-template>\n", styles: [".kbq-file-upload{box-sizing:border-box;display:flex;align-items:center;position:relative}.kbq-file-upload .dropzone,.kbq-file-upload .file-item{display:flex;align-items:center}.kbq-file-upload .kbq-ellipsis-center{position:relative;display:flex}.kbq-file-upload .kbq-ellipsis-center .data-text-start{flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:pre}.kbq-file-upload .kbq-ellipsis-center .data-text-end{flex:1 0 auto;overflow:hidden;white-space:pre}\n", "@keyframes kbq-progress{0%{background-position:0 0}to{background-position:29px 0}}.kbq-progress{position:relative}.kbq-progress:after{content:\"\";position:absolute;border-radius:inherit;inset:0;background:linear-gradient(135deg,#0000000a 10px,#ffffff0a 10px 20px,#0000000a 20px 30px,#ffffff0a 31px) repeat;background-size:32px 32px;animation:kbq-progress 1s linear infinite}.kbq-group{display:flex;flex-direction:row}.kbq-group .kbq-group_justified>.kbq-group-item{width:100%}.kbq-group .kbq-group-item+.kbq-group-item{margin-left:calc(-1 * var(--kbq-button-size-border-width, 2px))}.kbq-group>.kbq-group-item:first-child:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.kbq-group>.kbq-group-item:first-child:not(:last-child)>.kbq-form-field__container{border-bottom-right-radius:0;border-top-right-radius:0}.kbq-group>.kbq-group-item:last-child:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.kbq-group>.kbq-group-item:last-child:not(:first-child)>.kbq-form-field__container{border-bottom-left-radius:0;border-top-left-radius:0}.kbq-group>.kbq-group-item:not(:first-child):not(:last-child){border-radius:0}.kbq-group>.kbq-group-item:not(:first-child):not(:last-child)>.kbq-form-field__container{border-radius:0}.kbq-vertical-group{display:flex;flex-direction:column}.kbq-vertical-group>.kbq-group-item:first-child:not(:last-child){border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--kbq-button-size-border-radius, 8px)}.kbq-vertical-group>.kbq-group-item:first-child:not(:last-child)>.kbq-form-field__container{border-bottom-right-radius:0;border-bottom-left-radius:0}.kbq-vertical-group>.kbq-group-item:last-child:not(:first-child){border-top-right-radius:0;border-top-left-radius:0;border-bottom-left-radius:var(--kbq-button-size-border-radius, 8px)}.kbq-vertical-group>.kbq-group-item:last-child:not(:first-child)>.kbq-form-field__container{border-top-right-radius:0;border-top-left-radius:0}.kbq-vertical-group>.kbq-group-item:not(:first-child):not(:last-child){border-radius:0}.kbq-vertical-group>.kbq-group-item:not(:first-child):not(:last-child)>.kbq-form-field__container{border-radius:0}.kbq-vertical-group .kbq-group-item+.kbq-group-item{margin-top:calc(-1 * var(--kbq-button-size-border-width, 2px))}.kbq-no-select{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.kbq-single-file-upload .kbq-file-upload{padding:calc(var(--kbq-file-upload-size-single-container-padding-vertical, 12px) - 1px) calc(var(--kbq-file-upload-size-single-container-padding-horizontal, 12px) - 1px);border-radius:var(--kbq-file-upload-size-single-container-border-radius, 8px);border-width:var(--kbq-file-upload-size-single-container-border-width, 1px);border-style:dashed}.kbq-single-file-upload .kbq-file-upload .dropzone__text{padding-top:var(--kbq-file-upload-size-single-text-block-padding-vertical, 2px);padding-bottom:var(--kbq-file-upload-size-single-text-block-padding-vertical, 2px);gap:var(--kbq-file-upload-size-single-text-block-content-gap-horizontal, 4px)}.kbq-single-file-upload .kbq-file-upload .dropzone{gap:var(--kbq-file-upload-size-single-container-content-gap-horizontal, 8px)}.kbq-single-file-upload .kbq-file-upload .file-item{width:100%}.kbq-single-file-upload .kbq-file-upload .file-item .file-item__text-wrapper{display:flex;align-items:center;width:100%;gap:var(--kbq-file-upload-size-single-container-content-gap-horizontal, 8px)}.kbq-single-file-upload .kbq-file-upload .file-item .file-item__text-wrapper .file-item__text{width:120px;flex-grow:1}.kbq-hint{display:block}.kbq-file-upload__hint{margin-top:var(--kbq-form-field-hint-size-margin-top, 4px)}\n"], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.KbqProgressSpinner, selector: "kbq-progress-spinner", inputs: ["color", "id", "value", "mode", "size"] }, { kind: "component", type: i4.KbqIcon, selector: "[kbq-icon]", inputs: ["color", "small", "autoColor"] }, { kind: "component", type: i4.KbqIconButton, selector: "[kbq-icon-button]", inputs: ["color", "small", "tabindex", "disabled"] }, { kind: "component", type: i6.KbqHint, selector: "kbq-hint", inputs: ["color", "id", "fillTextOff", "compact"], exportAs: ["kbqHint"] }, { kind: "directive", type: i7.KbqEllipsisCenterDirective, selector: "[kbqEllipsisCenter]", inputs: ["kbqEllipsisCenter", "minVisibleLength"] }, { kind: "directive", type: i8.KbqLink, selector: "[kbq-link]", inputs: ["tabIndex", "disabled", "pseudo", "noUnderline", "big", "compact", "useVisited", "print"], exportAs: ["kbqLink"] }, { kind: "directive", type: KbqFileDropDirective, selector: "[kbqFileDrop]", outputs: ["filesDropped"], exportAs: ["kbqFileDrop"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
502
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.0", type: KbqSingleFileUploadComponent, selector: "kbq-single-file-upload,kbq-file-upload:not([multiple])", inputs: { progressMode: "progressMode", accept: "accept", disabled: "disabled", errors: "errors", inputId: "inputId", customValidation: "customValidation", file: "file" }, outputs: { fileQueueChange: "fileQueueChange" }, host: { classAttribute: "kbq-single-file-upload" }, viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }], ngImport: i0, template: "<div\n kbqFileDrop\n class=\"kbq-file-upload\"\n [class.kbq-disabled]=\"disabled\"\n [class.kbq-error]=\"errors?.length\"\n (filesDropped)=\"onFileDropped($event)\"\n>\n <div\n *ngIf=\"!file; else fileOutput\"\n class=\"dropzone\"\n >\n <i kbq-icon=\"mc-upload-to-cloud_24\"></i>\n <!-- prettier-ignore -->\n <span class=\"dropzone__text\">\n {{ separatedCaptionText[0] }}<label kbq-link pseudo [disabled]=\"disabled\" [tabIndex]=\"-1\" [for]=\"inputId\">{{ config.browseLink }}<input #input type=\"file\" class=\"cdk-visually-hidden\" [id]=\"inputId\" [accept]=\"acceptedFiles\" [disabled]=\"disabled\" (change)=\"onFileSelectedViaClick($event)\"></label>{{ separatedCaptionText[1] }}\n </span>\n </div>\n</div>\n\n<kbq-hint class=\"kbq-file-upload__hint\">\n <ng-content select=\"[hint]\"></ng-content>\n</kbq-hint>\n<ng-container *ngIf=\"errors?.length\">\n <kbq-hint\n *ngFor=\"let error of errors\"\n class=\"kbq-file-upload__hint kbq-error\"\n >\n {{ error }}\n </kbq-hint>\n</ng-container>\n\n<ng-template #fileOutput>\n <div\n *ngIf=\"file\"\n class=\"file-item\"\n >\n <div class=\"file-item__text-wrapper\">\n <ng-container *ngIf=\"{ loading: file.loading | async, progress: file.progress | async } as asyncData\">\n <ng-container *ngIf=\"!asyncData.loading\">\n <ng-content select=\"[kbq-icon]\"></ng-content>\n </ng-container>\n\n <kbq-progress-spinner\n *ngIf=\"asyncData.loading\"\n [mode]=\"progressMode\"\n [value]=\"asyncData.progress || 0\"\n ></kbq-progress-spinner>\n </ng-container>\n\n <div\n class=\"file-item__text\"\n [kbqEllipsisCenter]=\"file.file.name\"\n [minVisibleLength]=\"10\"\n ></div>\n </div>\n <i\n kbq-icon-button=\"mc-close-circle_16\"\n [color]=\"'contrast'\"\n [disabled]=\"disabled\"\n (click)=\"deleteItem($event)\"\n (keydown.backspace)=\"deleteItem()\"\n (keydown.delete)=\"deleteItem()\"\n ></i>\n </div>\n</ng-template>\n", styles: [".kbq-file-upload{box-sizing:border-box;display:flex;align-items:center;position:relative}.kbq-file-upload .dropzone,.kbq-file-upload .file-item{display:flex;align-items:center}.kbq-file-upload .kbq-ellipsis-center{position:relative;display:flex}.kbq-file-upload .kbq-ellipsis-center .data-text-start{flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:pre}.kbq-file-upload .kbq-ellipsis-center .data-text-end{flex:1 0 auto;overflow:hidden;white-space:pre}\n", "@keyframes kbq-progress{0%{background-position:0 0}to{background-position:64px 0}}.kbq-progress{position:relative}.kbq-progress:after{content:\"\";position:absolute;border-radius:inherit;inset:0;background:linear-gradient(135deg,#0000000a 12px,#ffffff1a 12px 22px,#0000000a 22px 34px,#ffffff1a 34px) repeat;background-size:32px 32px;animation:kbq-progress 1s linear infinite}.kbq-group{display:flex;flex-direction:row}.kbq-group .kbq-group_justified>.kbq-group-item{width:100%}.kbq-group .kbq-group-item+.kbq-group-item{margin-left:calc(-1 * var(--kbq-button-size-border-width, 2px))}.kbq-group>.kbq-group-item:first-child:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.kbq-group>.kbq-group-item:first-child:not(:last-child)>.kbq-form-field__container{border-bottom-right-radius:0;border-top-right-radius:0}.kbq-group>.kbq-group-item:last-child:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.kbq-group>.kbq-group-item:last-child:not(:first-child)>.kbq-form-field__container{border-bottom-left-radius:0;border-top-left-radius:0}.kbq-group>.kbq-group-item:not(:first-child):not(:last-child){border-radius:0}.kbq-group>.kbq-group-item:not(:first-child):not(:last-child)>.kbq-form-field__container{border-radius:0}.kbq-vertical-group{display:flex;flex-direction:column}.kbq-vertical-group>.kbq-group-item:first-child:not(:last-child){border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--kbq-button-size-border-radius, 8px)}.kbq-vertical-group>.kbq-group-item:first-child:not(:last-child)>.kbq-form-field__container{border-bottom-right-radius:0;border-bottom-left-radius:0}.kbq-vertical-group>.kbq-group-item:last-child:not(:first-child){border-top-right-radius:0;border-top-left-radius:0;border-bottom-left-radius:var(--kbq-button-size-border-radius, 8px)}.kbq-vertical-group>.kbq-group-item:last-child:not(:first-child)>.kbq-form-field__container{border-top-right-radius:0;border-top-left-radius:0}.kbq-vertical-group>.kbq-group-item:not(:first-child):not(:last-child){border-radius:0}.kbq-vertical-group>.kbq-group-item:not(:first-child):not(:last-child)>.kbq-form-field__container{border-radius:0}.kbq-vertical-group .kbq-group-item+.kbq-group-item{margin-top:calc(-1 * var(--kbq-button-size-border-width, 2px))}.kbq-no-select{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.kbq-single-file-upload .kbq-file-upload{padding:calc(var(--kbq-file-upload-size-single-container-padding-vertical, 12px) - 1px) calc(var(--kbq-file-upload-size-single-container-padding-horizontal, 12px) - 1px);border-radius:var(--kbq-file-upload-size-single-container-border-radius, 8px);border-width:var(--kbq-file-upload-size-single-container-border-width, 1px);border-style:dashed}.kbq-single-file-upload .kbq-file-upload .dropzone__text{padding-top:var(--kbq-file-upload-size-single-text-block-padding-vertical, 2px);padding-bottom:var(--kbq-file-upload-size-single-text-block-padding-vertical, 2px);gap:var(--kbq-file-upload-size-single-text-block-content-gap-horizontal, 4px)}.kbq-single-file-upload .kbq-file-upload .dropzone{gap:var(--kbq-file-upload-size-single-container-content-gap-horizontal, 8px)}.kbq-single-file-upload .kbq-file-upload .file-item{width:100%}.kbq-single-file-upload .kbq-file-upload .file-item .file-item__text-wrapper{display:flex;align-items:center;width:100%;gap:var(--kbq-file-upload-size-single-container-content-gap-horizontal, 8px)}.kbq-single-file-upload .kbq-file-upload .file-item .file-item__text-wrapper .file-item__text{width:120px;flex-grow:1}.kbq-hint{display:block}.kbq-file-upload__hint{margin-top:var(--kbq-form-field-hint-size-margin-top, 4px)}\n"], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.KbqProgressSpinner, selector: "kbq-progress-spinner", inputs: ["color", "id", "value", "mode", "size"] }, { kind: "component", type: i4.KbqIcon, selector: "[kbq-icon]", inputs: ["color", "small", "autoColor"] }, { kind: "component", type: i4.KbqIconButton, selector: "[kbq-icon-button]", inputs: ["color", "small", "tabindex", "disabled"] }, { kind: "component", type: i6.KbqHint, selector: "kbq-hint", inputs: ["color", "id", "fillTextOff", "compact"], exportAs: ["kbqHint"] }, { kind: "directive", type: i7.KbqEllipsisCenterDirective, selector: "[kbqEllipsisCenter]", inputs: ["kbqEllipsisCenter", "minVisibleLength"] }, { kind: "directive", type: i8.KbqLink, selector: "[kbq-link]", inputs: ["tabIndex", "disabled", "pseudo", "noUnderline", "big", "compact", "useVisited", "print"], exportAs: ["kbqLink"] }, { kind: "directive", type: KbqFileDropDirective, selector: "[kbqFileDrop]", outputs: ["filesDropped"], exportAs: ["kbqFileDrop"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
495
503
  }
496
504
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.0", ngImport: i0, type: KbqSingleFileUploadComponent, decorators: [{
497
505
  type: Component,
498
506
  args: [{ selector: 'kbq-single-file-upload,kbq-file-upload:not([multiple])', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
499
507
  class: 'kbq-single-file-upload'
500
- }, template: "<div class=\"kbq-file-upload\"\n kbqFileDrop\n [class.kbq-disabled]=\"disabled\"\n [class.kbq-error]=\"errors?.length\"\n (filesDropped)=\"onFileDropped($event)\">\n\n <div class=\"dropzone\" *ngIf=\"!file; else fileOutput\">\n <i kbq-icon=\"mc-upload-to-cloud_24\"></i>\n <span class=\"dropzone__text\">\n {{ separatedCaptionText[0] }}<label kbq-link pseudo [disabled]=\"disabled\" [tabIndex]=\"-1\" [for]=\"inputId\">{{ config.browseLink }}<input #input type=\"file\" class=\"cdk-visually-hidden\" [id]=\"inputId\" [accept]=\"acceptedFiles\" [disabled]=\"disabled\" (change)=\"onFileSelectedViaClick($event)\"></label>{{ separatedCaptionText[1] }}\n </span>\n </div>\n</div>\n\n<kbq-hint class=\"kbq-file-upload__hint\">\n <ng-content select=\"[hint]\"></ng-content>\n</kbq-hint>\n<ng-container *ngIf=\"errors?.length\">\n <kbq-hint class=\"kbq-file-upload__hint kbq-error\" *ngFor=\"let error of errors\">{{ error }}</kbq-hint>\n</ng-container>\n\n<ng-template #fileOutput>\n <div class=\"file-item\" *ngIf=\"file\">\n <div class=\"file-item__text-wrapper\">\n <ng-container *ngIf=\"{ loading: file.loading | async, progress: file.progress | async} as asyncData\">\n <ng-container *ngIf=\"!asyncData.loading\">\n <ng-content select=\"[kbq-icon]\"></ng-content>\n </ng-container>\n\n <kbq-progress-spinner\n [mode]=\"progressMode\"\n [value]=\"asyncData.progress || 0\"\n *ngIf=\"asyncData.loading\"\n ></kbq-progress-spinner>\n </ng-container>\n\n <div class=\"file-item__text\" [kbqEllipsisCenter]=\"file.file.name\" [minVisibleLength]=\"10\"></div>\n </div>\n <i kbq-icon-button=\"mc-close-circle_16\"\n [color]=\"'contrast'\"\n [disabled]=\"disabled\"\n (keydown.delete)=\"deleteItem()\"\n (keydown.backspace)=\"deleteItem()\"\n (click)=\"deleteItem($event)\">\n </i>\n </div>\n</ng-template>\n", styles: [".kbq-file-upload{box-sizing:border-box;display:flex;align-items:center;position:relative}.kbq-file-upload .dropzone,.kbq-file-upload .file-item{display:flex;align-items:center}.kbq-file-upload .kbq-ellipsis-center{position:relative;display:flex}.kbq-file-upload .kbq-ellipsis-center .data-text-start{flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:pre}.kbq-file-upload .kbq-ellipsis-center .data-text-end{flex:1 0 auto;overflow:hidden;white-space:pre}\n", "@keyframes kbq-progress{0%{background-position:0 0}to{background-position:29px 0}}.kbq-progress{position:relative}.kbq-progress:after{content:\"\";position:absolute;border-radius:inherit;inset:0;background:linear-gradient(135deg,#0000000a 10px,#ffffff0a 10px 20px,#0000000a 20px 30px,#ffffff0a 31px) repeat;background-size:32px 32px;animation:kbq-progress 1s linear infinite}.kbq-group{display:flex;flex-direction:row}.kbq-group .kbq-group_justified>.kbq-group-item{width:100%}.kbq-group .kbq-group-item+.kbq-group-item{margin-left:calc(-1 * var(--kbq-button-size-border-width, 2px))}.kbq-group>.kbq-group-item:first-child:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.kbq-group>.kbq-group-item:first-child:not(:last-child)>.kbq-form-field__container{border-bottom-right-radius:0;border-top-right-radius:0}.kbq-group>.kbq-group-item:last-child:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.kbq-group>.kbq-group-item:last-child:not(:first-child)>.kbq-form-field__container{border-bottom-left-radius:0;border-top-left-radius:0}.kbq-group>.kbq-group-item:not(:first-child):not(:last-child){border-radius:0}.kbq-group>.kbq-group-item:not(:first-child):not(:last-child)>.kbq-form-field__container{border-radius:0}.kbq-vertical-group{display:flex;flex-direction:column}.kbq-vertical-group>.kbq-group-item:first-child:not(:last-child){border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--kbq-button-size-border-radius, 8px)}.kbq-vertical-group>.kbq-group-item:first-child:not(:last-child)>.kbq-form-field__container{border-bottom-right-radius:0;border-bottom-left-radius:0}.kbq-vertical-group>.kbq-group-item:last-child:not(:first-child){border-top-right-radius:0;border-top-left-radius:0;border-bottom-left-radius:var(--kbq-button-size-border-radius, 8px)}.kbq-vertical-group>.kbq-group-item:last-child:not(:first-child)>.kbq-form-field__container{border-top-right-radius:0;border-top-left-radius:0}.kbq-vertical-group>.kbq-group-item:not(:first-child):not(:last-child){border-radius:0}.kbq-vertical-group>.kbq-group-item:not(:first-child):not(:last-child)>.kbq-form-field__container{border-radius:0}.kbq-vertical-group .kbq-group-item+.kbq-group-item{margin-top:calc(-1 * var(--kbq-button-size-border-width, 2px))}.kbq-no-select{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.kbq-single-file-upload .kbq-file-upload{padding:calc(var(--kbq-file-upload-size-single-container-padding-vertical, 12px) - 1px) calc(var(--kbq-file-upload-size-single-container-padding-horizontal, 12px) - 1px);border-radius:var(--kbq-file-upload-size-single-container-border-radius, 8px);border-width:var(--kbq-file-upload-size-single-container-border-width, 1px);border-style:dashed}.kbq-single-file-upload .kbq-file-upload .dropzone__text{padding-top:var(--kbq-file-upload-size-single-text-block-padding-vertical, 2px);padding-bottom:var(--kbq-file-upload-size-single-text-block-padding-vertical, 2px);gap:var(--kbq-file-upload-size-single-text-block-content-gap-horizontal, 4px)}.kbq-single-file-upload .kbq-file-upload .dropzone{gap:var(--kbq-file-upload-size-single-container-content-gap-horizontal, 8px)}.kbq-single-file-upload .kbq-file-upload .file-item{width:100%}.kbq-single-file-upload .kbq-file-upload .file-item .file-item__text-wrapper{display:flex;align-items:center;width:100%;gap:var(--kbq-file-upload-size-single-container-content-gap-horizontal, 8px)}.kbq-single-file-upload .kbq-file-upload .file-item .file-item__text-wrapper .file-item__text{width:120px;flex-grow:1}.kbq-hint{display:block}.kbq-file-upload__hint{margin-top:var(--kbq-form-field-hint-size-margin-top, 4px)}\n"] }]
508
+ }, template: "<div\n kbqFileDrop\n class=\"kbq-file-upload\"\n [class.kbq-disabled]=\"disabled\"\n [class.kbq-error]=\"errors?.length\"\n (filesDropped)=\"onFileDropped($event)\"\n>\n <div\n *ngIf=\"!file; else fileOutput\"\n class=\"dropzone\"\n >\n <i kbq-icon=\"mc-upload-to-cloud_24\"></i>\n <!-- prettier-ignore -->\n <span class=\"dropzone__text\">\n {{ separatedCaptionText[0] }}<label kbq-link pseudo [disabled]=\"disabled\" [tabIndex]=\"-1\" [for]=\"inputId\">{{ config.browseLink }}<input #input type=\"file\" class=\"cdk-visually-hidden\" [id]=\"inputId\" [accept]=\"acceptedFiles\" [disabled]=\"disabled\" (change)=\"onFileSelectedViaClick($event)\"></label>{{ separatedCaptionText[1] }}\n </span>\n </div>\n</div>\n\n<kbq-hint class=\"kbq-file-upload__hint\">\n <ng-content select=\"[hint]\"></ng-content>\n</kbq-hint>\n<ng-container *ngIf=\"errors?.length\">\n <kbq-hint\n *ngFor=\"let error of errors\"\n class=\"kbq-file-upload__hint kbq-error\"\n >\n {{ error }}\n </kbq-hint>\n</ng-container>\n\n<ng-template #fileOutput>\n <div\n *ngIf=\"file\"\n class=\"file-item\"\n >\n <div class=\"file-item__text-wrapper\">\n <ng-container *ngIf=\"{ loading: file.loading | async, progress: file.progress | async } as asyncData\">\n <ng-container *ngIf=\"!asyncData.loading\">\n <ng-content select=\"[kbq-icon]\"></ng-content>\n </ng-container>\n\n <kbq-progress-spinner\n *ngIf=\"asyncData.loading\"\n [mode]=\"progressMode\"\n [value]=\"asyncData.progress || 0\"\n ></kbq-progress-spinner>\n </ng-container>\n\n <div\n class=\"file-item__text\"\n [kbqEllipsisCenter]=\"file.file.name\"\n [minVisibleLength]=\"10\"\n ></div>\n </div>\n <i\n kbq-icon-button=\"mc-close-circle_16\"\n [color]=\"'contrast'\"\n [disabled]=\"disabled\"\n (click)=\"deleteItem($event)\"\n (keydown.backspace)=\"deleteItem()\"\n (keydown.delete)=\"deleteItem()\"\n ></i>\n </div>\n</ng-template>\n", styles: [".kbq-file-upload{box-sizing:border-box;display:flex;align-items:center;position:relative}.kbq-file-upload .dropzone,.kbq-file-upload .file-item{display:flex;align-items:center}.kbq-file-upload .kbq-ellipsis-center{position:relative;display:flex}.kbq-file-upload .kbq-ellipsis-center .data-text-start{flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:pre}.kbq-file-upload .kbq-ellipsis-center .data-text-end{flex:1 0 auto;overflow:hidden;white-space:pre}\n", "@keyframes kbq-progress{0%{background-position:0 0}to{background-position:64px 0}}.kbq-progress{position:relative}.kbq-progress:after{content:\"\";position:absolute;border-radius:inherit;inset:0;background:linear-gradient(135deg,#0000000a 12px,#ffffff1a 12px 22px,#0000000a 22px 34px,#ffffff1a 34px) repeat;background-size:32px 32px;animation:kbq-progress 1s linear infinite}.kbq-group{display:flex;flex-direction:row}.kbq-group .kbq-group_justified>.kbq-group-item{width:100%}.kbq-group .kbq-group-item+.kbq-group-item{margin-left:calc(-1 * var(--kbq-button-size-border-width, 2px))}.kbq-group>.kbq-group-item:first-child:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.kbq-group>.kbq-group-item:first-child:not(:last-child)>.kbq-form-field__container{border-bottom-right-radius:0;border-top-right-radius:0}.kbq-group>.kbq-group-item:last-child:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.kbq-group>.kbq-group-item:last-child:not(:first-child)>.kbq-form-field__container{border-bottom-left-radius:0;border-top-left-radius:0}.kbq-group>.kbq-group-item:not(:first-child):not(:last-child){border-radius:0}.kbq-group>.kbq-group-item:not(:first-child):not(:last-child)>.kbq-form-field__container{border-radius:0}.kbq-vertical-group{display:flex;flex-direction:column}.kbq-vertical-group>.kbq-group-item:first-child:not(:last-child){border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--kbq-button-size-border-radius, 8px)}.kbq-vertical-group>.kbq-group-item:first-child:not(:last-child)>.kbq-form-field__container{border-bottom-right-radius:0;border-bottom-left-radius:0}.kbq-vertical-group>.kbq-group-item:last-child:not(:first-child){border-top-right-radius:0;border-top-left-radius:0;border-bottom-left-radius:var(--kbq-button-size-border-radius, 8px)}.kbq-vertical-group>.kbq-group-item:last-child:not(:first-child)>.kbq-form-field__container{border-top-right-radius:0;border-top-left-radius:0}.kbq-vertical-group>.kbq-group-item:not(:first-child):not(:last-child){border-radius:0}.kbq-vertical-group>.kbq-group-item:not(:first-child):not(:last-child)>.kbq-form-field__container{border-radius:0}.kbq-vertical-group .kbq-group-item+.kbq-group-item{margin-top:calc(-1 * var(--kbq-button-size-border-width, 2px))}.kbq-no-select{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.kbq-single-file-upload .kbq-file-upload{padding:calc(var(--kbq-file-upload-size-single-container-padding-vertical, 12px) - 1px) calc(var(--kbq-file-upload-size-single-container-padding-horizontal, 12px) - 1px);border-radius:var(--kbq-file-upload-size-single-container-border-radius, 8px);border-width:var(--kbq-file-upload-size-single-container-border-width, 1px);border-style:dashed}.kbq-single-file-upload .kbq-file-upload .dropzone__text{padding-top:var(--kbq-file-upload-size-single-text-block-padding-vertical, 2px);padding-bottom:var(--kbq-file-upload-size-single-text-block-padding-vertical, 2px);gap:var(--kbq-file-upload-size-single-text-block-content-gap-horizontal, 4px)}.kbq-single-file-upload .kbq-file-upload .dropzone{gap:var(--kbq-file-upload-size-single-container-content-gap-horizontal, 8px)}.kbq-single-file-upload .kbq-file-upload .file-item{width:100%}.kbq-single-file-upload .kbq-file-upload .file-item .file-item__text-wrapper{display:flex;align-items:center;width:100%;gap:var(--kbq-file-upload-size-single-container-content-gap-horizontal, 8px)}.kbq-single-file-upload .kbq-file-upload .file-item .file-item__text-wrapper .file-item__text{width:120px;flex-grow:1}.kbq-hint{display:block}.kbq-file-upload__hint{margin-top:var(--kbq-form-field-hint-size-margin-top, 4px)}\n"] }]
501
509
  }], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.Renderer2 }, { type: undefined, decorators: [{
502
510
  type: Optional
503
511
  }, {