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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (479) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +2 -2
  3. package/autocomplete/_autocomplete-theme.scss +3 -10
  4. package/autocomplete/autocomplete-origin.directive.d.ts +1 -1
  5. package/autocomplete/autocomplete-trigger.directive.d.ts +6 -16
  6. package/autocomplete/autocomplete.component.d.ts +1 -1
  7. package/autocomplete/autocomplete.scss +0 -8
  8. package/badge/README.md +0 -0
  9. package/{core/styles/theming/_badges-theme.scss → badge/_badge-theme.scss} +14 -13
  10. package/badge/badge.component.d.ts +44 -0
  11. package/badge/badge.component.scss +83 -0
  12. package/badge/badge.module.d.ts +10 -0
  13. package/badge/index.d.ts +1 -0
  14. package/badge/public-api.d.ts +2 -0
  15. package/button/_button-base.scss +1 -1
  16. package/button/_button-theme.scss +35 -27
  17. package/button/button.scss +5 -2
  18. package/button-toggle/_button-toggle-theme.scss +26 -45
  19. package/button-toggle/button-toggle.component.d.ts +2 -2
  20. package/button-toggle/button-toggle.scss +40 -87
  21. package/card/_card-theme.scss +1 -1
  22. package/checkbox/README.md +1 -1
  23. package/checkbox/_checkbox-theme.scss +10 -2
  24. package/checkbox/checkbox.d.ts +2 -2
  25. package/code-block/README.md +14 -14
  26. package/code-block/_code-block-theme.scss +49 -10
  27. package/code-block/actionbar.component.scss +34 -6
  28. package/code-block/code-block.component.d.ts +2 -2
  29. package/code-block/code-block.scss +101 -27
  30. package/core/animation/index.d.ts +1 -1
  31. package/core/animation/select-animations.d.ts +1 -1
  32. package/core/common-behaviors/color.d.ts +1 -1
  33. package/core/common-behaviors/common-module.d.ts +1 -1
  34. package/core/formatters/index.d.ts +1 -1
  35. package/core/formatters/number/formatter.d.ts +56 -1
  36. package/core/forms/_forms-theme.scss +4 -4
  37. package/core/forms/_forms.scss +1 -3
  38. package/core/forms/forms.directive.d.ts +2 -2
  39. package/core/locales/en-US.d.ts +19 -1
  40. package/core/locales/es-LA.d.ts +27 -0
  41. package/core/locales/fa-IR.d.ts +28 -0
  42. package/core/locales/locale-service.d.ts +148 -3
  43. package/core/locales/pt-BR.d.ts +27 -0
  44. package/core/locales/ru-RU.d.ts +20 -1
  45. package/core/locales/zh-CN.d.ts +26 -0
  46. package/core/option/_optgroup-theme.scss +1 -1
  47. package/core/option/_option-action-theme.scss +1 -1
  48. package/core/option/_option-theme.scss +37 -14
  49. package/core/option/action.d.ts +1 -1
  50. package/core/option/action.scss +4 -5
  51. package/core/option/optgroup.d.ts +1 -1
  52. package/core/option/option.d.ts +37 -8
  53. package/core/option/option.scss +5 -50
  54. package/core/overlay/overlay-position-map.d.ts +7 -1
  55. package/core/pop-up/constants.d.ts +2 -1
  56. package/core/public-api.d.ts +1 -0
  57. package/core/select/constants.d.ts +2 -2
  58. package/core/services/theme.service.d.ts +23 -0
  59. package/core/styles/_koobiq-theme.scss +12 -1
  60. package/core/styles/_tokens.kbq.import.scss +4 -4
  61. package/core/styles/_tokens.scss +4 -4
  62. package/core/styles/_variables.scss +1 -0
  63. package/core/styles/common/_animation.scss +10 -6
  64. package/core/styles/common/_list.scss +123 -0
  65. package/core/styles/common/_overlay.scss +1 -1
  66. package/core/styles/common/_select.scss +232 -0
  67. package/core/styles/theming/_components-theming.scss +716 -102
  68. package/core/styles/theming/_theming.scss +201 -30
  69. package/core/styles/typography/_typography.scss +176 -5
  70. package/datepicker/_datepicker-theme.scss +43 -57
  71. package/datepicker/calendar-body.component.d.ts +1 -1
  72. package/datepicker/calendar-body.scss +11 -26
  73. package/datepicker/calendar-header.component.d.ts +9 -3
  74. package/datepicker/calendar-header.scss +7 -31
  75. package/datepicker/calendar.component.d.ts +4 -5
  76. package/datepicker/calendar.scss +20 -25
  77. package/datepicker/datepicker-animations.d.ts +2 -2
  78. package/datepicker/datepicker-content.scss +17 -10
  79. package/datepicker/datepicker-input.directive.d.ts +4 -4
  80. package/datepicker/datepicker-input.scss +1 -1
  81. package/datepicker/datepicker-toggle.component.d.ts +3 -3
  82. package/datepicker/datepicker.component.d.ts +2 -2
  83. package/datepicker/month-view.component.d.ts +5 -6
  84. package/dl/_dl-theme.scss +2 -56
  85. package/dl/dl.component.d.ts +1 -2
  86. package/dl/dl.scss +10 -47
  87. package/dropdown/_dropdown-theme.scss +29 -37
  88. package/dropdown/dropdown-animations.d.ts +1 -1
  89. package/dropdown/dropdown-content.directive.d.ts +1 -1
  90. package/dropdown/dropdown-item.component.d.ts +1 -1
  91. package/dropdown/dropdown-item.scss +18 -40
  92. package/dropdown/dropdown-trigger.directive.d.ts +2 -2
  93. package/dropdown/dropdown.component.d.ts +1 -1
  94. package/dropdown/dropdown.scss +16 -39
  95. package/dropdown/dropdown.types.d.ts +1 -1
  96. package/esm2022/alert/alert.component.mjs +3 -3
  97. package/esm2022/autocomplete/autocomplete-origin.directive.mjs +4 -4
  98. package/esm2022/autocomplete/autocomplete-trigger.directive.mjs +34 -31
  99. package/esm2022/autocomplete/autocomplete.component.mjs +4 -4
  100. package/esm2022/badge/badge.component.mjs +122 -0
  101. package/esm2022/badge/badge.module.mjs +40 -0
  102. package/esm2022/badge/index.mjs +2 -0
  103. package/esm2022/badge/koobiq-components-badge.mjs +5 -0
  104. package/esm2022/badge/public-api.mjs +3 -0
  105. package/esm2022/button/button.component.mjs +4 -3
  106. package/esm2022/button-toggle/button-toggle.component.mjs +15 -15
  107. package/esm2022/checkbox/checkbox.mjs +4 -4
  108. package/esm2022/code-block/actionbar.component.mjs +3 -3
  109. package/esm2022/code-block/code-block.component.mjs +11 -9
  110. package/esm2022/core/animation/index.mjs +2 -2
  111. package/esm2022/core/animation/select-animations.mjs +4 -4
  112. package/esm2022/core/common-behaviors/color.mjs +1 -1
  113. package/esm2022/core/common-behaviors/common-module.mjs +2 -2
  114. package/esm2022/core/formatters/index.mjs +10 -2
  115. package/esm2022/core/formatters/number/formatter.mjs +224 -3
  116. package/esm2022/core/forms/forms.directive.mjs +5 -5
  117. package/esm2022/core/locales/en-US.mjs +22 -4
  118. package/esm2022/core/locales/es-LA.mjs +31 -2
  119. package/esm2022/core/locales/fa-IR.mjs +30 -2
  120. package/esm2022/core/locales/locale-service.mjs +4 -4
  121. package/esm2022/core/locales/pt-BR.mjs +29 -2
  122. package/esm2022/core/locales/ru-RU.mjs +23 -2
  123. package/esm2022/core/locales/zh-CN.mjs +28 -2
  124. package/esm2022/core/option/action.mjs +8 -7
  125. package/esm2022/core/option/optgroup.mjs +3 -3
  126. package/esm2022/core/option/option.mjs +47 -10
  127. package/esm2022/core/overlay/overlay-position-map.mjs +8 -1
  128. package/esm2022/core/pop-up/constants.mjs +2 -1
  129. package/esm2022/core/pop-up/pop-up-trigger.mjs +12 -3
  130. package/esm2022/core/public-api.mjs +2 -1
  131. package/esm2022/core/select/constants.mjs +3 -3
  132. package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +3 -3
  133. package/esm2022/core/services/theme.service.mjs +60 -0
  134. package/esm2022/core/version.mjs +2 -2
  135. package/esm2022/datepicker/calendar-body.component.mjs +7 -5
  136. package/esm2022/datepicker/calendar-header.component.mjs +9 -8
  137. package/esm2022/datepicker/calendar.component.mjs +8 -17
  138. package/esm2022/datepicker/datepicker-animations.mjs +3 -3
  139. package/esm2022/datepicker/datepicker-input.directive.mjs +29 -20
  140. package/esm2022/datepicker/datepicker-toggle.component.mjs +6 -6
  141. package/esm2022/datepicker/datepicker.component.mjs +12 -12
  142. package/esm2022/datepicker/month-view.component.mjs +9 -18
  143. package/esm2022/dl/dl.component.mjs +3 -7
  144. package/esm2022/dropdown/dropdown-animations.mjs +4 -4
  145. package/esm2022/dropdown/dropdown-content.directive.mjs +3 -3
  146. package/esm2022/dropdown/dropdown-errors.mjs +6 -6
  147. package/esm2022/dropdown/dropdown-item.component.mjs +7 -6
  148. package/esm2022/dropdown/dropdown-trigger.directive.mjs +10 -9
  149. package/esm2022/dropdown/dropdown.component.mjs +9 -9
  150. package/esm2022/dropdown/dropdown.types.mjs +1 -1
  151. package/esm2022/file-upload/file-drop.mjs +43 -6
  152. package/esm2022/file-upload/file-upload.mjs +1 -1
  153. package/esm2022/file-upload/multiple-file-upload.component.mjs +13 -9
  154. package/esm2022/file-upload/single-file-upload.component.mjs +16 -13
  155. package/esm2022/form-field/cleaner.mjs +3 -3
  156. package/esm2022/form-field/form-field.mjs +12 -15
  157. package/esm2022/form-field/hint.mjs +16 -6
  158. package/esm2022/form-field/password-hint.mjs +25 -16
  159. package/esm2022/form-field/password-toggle.mjs +29 -12
  160. package/esm2022/form-field/prefix.mjs +3 -3
  161. package/esm2022/form-field/suffix.mjs +3 -3
  162. package/esm2022/form-field/validate.directive.mjs +15 -9
  163. package/esm2022/icon/icon-button.component.mjs +68 -0
  164. package/esm2022/icon/icon-item.component.mjs +27 -0
  165. package/esm2022/icon/icon.component.mjs +5 -90
  166. package/esm2022/icon/icon.module.mjs +4 -2
  167. package/esm2022/icon/public-api.mjs +3 -1
  168. package/esm2022/input/input-errors.mjs +2 -2
  169. package/esm2022/input/input-number.mjs +260 -44
  170. package/esm2022/input/input-password.mjs +5 -5
  171. package/esm2022/input/input.mjs +7 -7
  172. package/esm2022/link/link.component.mjs +14 -13
  173. package/esm2022/list/list-selection.component.mjs +23 -10
  174. package/esm2022/list/list.component.mjs +2 -2
  175. package/esm2022/list/list.module.mjs +8 -4
  176. package/esm2022/loader-overlay/loader-overlay.component.mjs +20 -19
  177. package/esm2022/modal/modal-control.service.mjs +5 -5
  178. package/esm2022/modal/modal-ref.class.mjs +1 -1
  179. package/esm2022/modal/modal.component.mjs +129 -134
  180. package/esm2022/modal/modal.module.mjs +13 -7
  181. package/esm2022/modal/modal.service.mjs +23 -23
  182. package/esm2022/modal/modal.type.mjs +1 -3
  183. package/esm2022/navbar/navbar-item.component.mjs +19 -18
  184. package/esm2022/navbar/navbar.component.mjs +20 -11
  185. package/esm2022/navbar/vertical-navbar.animation.mjs +2 -2
  186. package/esm2022/navbar/vertical-navbar.component.mjs +11 -8
  187. package/esm2022/popover/popover-animations.mjs +2 -2
  188. package/esm2022/popover/popover-confirm.component.mjs +9 -11
  189. package/esm2022/popover/popover.component.mjs +24 -24
  190. package/esm2022/progress-spinner/progress-spinner.component.mjs +3 -3
  191. package/esm2022/radio/radio.component.mjs +11 -8
  192. package/esm2022/risk-level/index.mjs +2 -0
  193. package/esm2022/risk-level/koobiq-components-risk-level.mjs +5 -0
  194. package/esm2022/risk-level/public-api.mjs +3 -0
  195. package/esm2022/risk-level/risk-level.component.mjs +40 -0
  196. package/esm2022/risk-level/risk-level.module.mjs +28 -0
  197. package/esm2022/select/select-option.directive.mjs +15 -3
  198. package/esm2022/select/select.component.mjs +47 -29
  199. package/esm2022/sidebar/sidebar-animations.mjs +2 -2
  200. package/esm2022/sidebar/sidebar.component.mjs +9 -9
  201. package/esm2022/sidepanel/sidepanel-container.component.mjs +3 -3
  202. package/esm2022/sidepanel/sidepanel-directives.mjs +8 -10
  203. package/esm2022/sidepanel/sidepanel.module.mjs +10 -4
  204. package/esm2022/splitter/splitter.component.mjs +3 -3
  205. package/esm2022/table/table.component.mjs +3 -3
  206. package/esm2022/tabs/paginated-tab-header.mjs +11 -2
  207. package/esm2022/tabs/tab-body.component.mjs +7 -7
  208. package/esm2022/tabs/tab-content.directive.mjs +3 -3
  209. package/esm2022/tabs/tab-group.component.mjs +16 -21
  210. package/esm2022/tabs/tab-header.component.mjs +2 -2
  211. package/esm2022/tabs/tab-label-wrapper.directive.mjs +4 -3
  212. package/esm2022/tabs/tab-label.directive.mjs +3 -3
  213. package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +21 -10
  214. package/esm2022/tabs/tab.component.mjs +14 -5
  215. package/esm2022/tabs/tabs-animations.mjs +2 -2
  216. package/esm2022/tabs/tabs.module.mjs +2 -6
  217. package/esm2022/tags/tag-default-options.mjs +1 -1
  218. package/esm2022/tags/tag-input.mjs +17 -15
  219. package/esm2022/tags/tag-list.component.mjs +15 -10
  220. package/esm2022/tags/tag.component.mjs +16 -16
  221. package/esm2022/textarea/textarea.component.mjs +4 -4
  222. package/esm2022/timepicker/timepicker.directive.mjs +10 -10
  223. package/esm2022/timezone/timezone-option.component.mjs +4 -4
  224. package/esm2022/timezone/timezone-select.component.mjs +5 -5
  225. package/esm2022/title/title.directive.mjs +6 -6
  226. package/esm2022/toast/toast-animations.mjs +2 -1
  227. package/esm2022/toast/toast-container.component.mjs +22 -8
  228. package/esm2022/toast/toast.component.mjs +30 -13
  229. package/esm2022/toast/toast.module.mjs +23 -8
  230. package/esm2022/toast/toast.service.mjs +2 -1
  231. package/esm2022/toast/toast.type.mjs +6 -1
  232. package/esm2022/toggle/toggle.component.mjs +4 -4
  233. package/esm2022/tooltip/tooltip.animations.mjs +2 -2
  234. package/esm2022/tooltip/tooltip.component.mjs +31 -30
  235. package/esm2022/tree/control/base-tree-control.mjs +1 -1
  236. package/esm2022/tree/control/flat-tree-control.mjs +4 -4
  237. package/esm2022/tree/control/tree-control.mjs +1 -1
  238. package/esm2022/tree/node.mjs +5 -5
  239. package/esm2022/tree/outlet.mjs +3 -3
  240. package/esm2022/tree/padding.directive.mjs +9 -9
  241. package/esm2022/tree/toggle.mjs +11 -12
  242. package/esm2022/tree/tree-base.mjs +3 -3
  243. package/esm2022/tree/tree-option.component.mjs +12 -10
  244. package/esm2022/tree/tree-selection.component.mjs +8 -6
  245. package/esm2022/tree/tree.mjs +3 -3
  246. package/esm2022/tree/tree.module.mjs +13 -4
  247. package/esm2022/tree-select/tree-select.component.mjs +28 -23
  248. package/fesm2022/koobiq-components-alert.mjs +2 -2
  249. package/fesm2022/koobiq-components-alert.mjs.map +1 -1
  250. package/fesm2022/koobiq-components-autocomplete.mjs +40 -37
  251. package/fesm2022/koobiq-components-autocomplete.mjs.map +1 -1
  252. package/fesm2022/koobiq-components-badge.mjs +166 -0
  253. package/fesm2022/koobiq-components-badge.mjs.map +1 -0
  254. package/fesm2022/koobiq-components-button-toggle.mjs +14 -14
  255. package/fesm2022/koobiq-components-button-toggle.mjs.map +1 -1
  256. package/fesm2022/koobiq-components-button.mjs +3 -2
  257. package/fesm2022/koobiq-components-button.mjs.map +1 -1
  258. package/fesm2022/koobiq-components-checkbox.mjs +3 -3
  259. package/fesm2022/koobiq-components-checkbox.mjs.map +1 -1
  260. package/fesm2022/koobiq-components-code-block.mjs +10 -9
  261. package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
  262. package/fesm2022/koobiq-components-core.mjs +535 -46
  263. package/fesm2022/koobiq-components-core.mjs.map +1 -1
  264. package/fesm2022/koobiq-components-datepicker.mjs +73 -79
  265. package/fesm2022/koobiq-components-datepicker.mjs.map +1 -1
  266. package/fesm2022/koobiq-components-dl.mjs +2 -6
  267. package/fesm2022/koobiq-components-dl.mjs.map +1 -1
  268. package/fesm2022/koobiq-components-dropdown.mjs +33 -31
  269. package/fesm2022/koobiq-components-dropdown.mjs.map +1 -1
  270. package/fesm2022/koobiq-components-file-upload.mjs +65 -21
  271. package/fesm2022/koobiq-components-file-upload.mjs.map +1 -1
  272. package/fesm2022/koobiq-components-form-field.mjs +96 -59
  273. package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
  274. package/fesm2022/koobiq-components-icon.mjs +10 -8
  275. package/fesm2022/koobiq-components-icon.mjs.map +1 -1
  276. package/fesm2022/koobiq-components-input.mjs +269 -55
  277. package/fesm2022/koobiq-components-input.mjs.map +1 -1
  278. package/fesm2022/koobiq-components-link.mjs +13 -12
  279. package/fesm2022/koobiq-components-link.mjs.map +1 -1
  280. package/fesm2022/koobiq-components-list.mjs +31 -14
  281. package/fesm2022/koobiq-components-list.mjs.map +1 -1
  282. package/fesm2022/koobiq-components-loader-overlay.mjs +19 -18
  283. package/fesm2022/koobiq-components-loader-overlay.mjs.map +1 -1
  284. package/fesm2022/koobiq-components-modal.mjs +164 -167
  285. package/fesm2022/koobiq-components-modal.mjs.map +1 -1
  286. package/fesm2022/koobiq-components-navbar.mjs +46 -37
  287. package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
  288. package/fesm2022/koobiq-components-popover.mjs +32 -33
  289. package/fesm2022/koobiq-components-popover.mjs.map +1 -1
  290. package/fesm2022/koobiq-components-progress-spinner.mjs +2 -2
  291. package/fesm2022/koobiq-components-progress-spinner.mjs.map +1 -1
  292. package/fesm2022/koobiq-components-radio.mjs +10 -7
  293. package/fesm2022/koobiq-components-radio.mjs.map +1 -1
  294. package/fesm2022/koobiq-components-risk-level.mjs +72 -0
  295. package/fesm2022/koobiq-components-risk-level.mjs.map +1 -0
  296. package/fesm2022/koobiq-components-select.mjs +60 -30
  297. package/fesm2022/koobiq-components-select.mjs.map +1 -1
  298. package/fesm2022/koobiq-components-sidebar.mjs +8 -8
  299. package/fesm2022/koobiq-components-sidebar.mjs.map +1 -1
  300. package/fesm2022/koobiq-components-sidepanel.mjs +19 -14
  301. package/fesm2022/koobiq-components-sidepanel.mjs.map +1 -1
  302. package/fesm2022/koobiq-components-splitter.mjs +2 -2
  303. package/fesm2022/koobiq-components-splitter.mjs.map +1 -1
  304. package/fesm2022/koobiq-components-table.mjs +2 -2
  305. package/fesm2022/koobiq-components-table.mjs.map +1 -1
  306. package/fesm2022/koobiq-components-tabs.mjs +74 -53
  307. package/fesm2022/koobiq-components-tabs.mjs.map +1 -1
  308. package/fesm2022/koobiq-components-tags.mjs +45 -38
  309. package/fesm2022/koobiq-components-tags.mjs.map +1 -1
  310. package/fesm2022/koobiq-components-textarea.mjs +3 -3
  311. package/fesm2022/koobiq-components-textarea.mjs.map +1 -1
  312. package/fesm2022/koobiq-components-timepicker.mjs +9 -9
  313. package/fesm2022/koobiq-components-timepicker.mjs.map +1 -1
  314. package/fesm2022/koobiq-components-timezone.mjs +7 -7
  315. package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
  316. package/fesm2022/koobiq-components-title.mjs +5 -5
  317. package/fesm2022/koobiq-components-title.mjs.map +1 -1
  318. package/fesm2022/koobiq-components-toast.mjs +71 -22
  319. package/fesm2022/koobiq-components-toast.mjs.map +1 -1
  320. package/fesm2022/koobiq-components-toggle.mjs +3 -3
  321. package/fesm2022/koobiq-components-toggle.mjs.map +1 -1
  322. package/fesm2022/koobiq-components-tooltip.mjs +31 -30
  323. package/fesm2022/koobiq-components-tooltip.mjs.map +1 -1
  324. package/fesm2022/koobiq-components-tree-select.mjs +27 -22
  325. package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
  326. package/fesm2022/koobiq-components-tree.mjs +67 -54
  327. package/fesm2022/koobiq-components-tree.mjs.map +1 -1
  328. package/file-upload/_file-upload-theme.scss +54 -40
  329. package/file-upload/file-drop.d.ts +3 -2
  330. package/file-upload/file-upload.d.ts +4 -1
  331. package/file-upload/file-upload.scss +2 -9
  332. package/file-upload/multiple-file-upload.component.d.ts +6 -5
  333. package/file-upload/multiple-file-upload.component.scss +170 -59
  334. package/file-upload/single-file-upload.component.d.ts +6 -5
  335. package/file-upload/single-file-upload.component.scss +42 -22
  336. package/form-field/_form-field-theme.scss +3 -6
  337. package/form-field/_hint-theme.scss +6 -2
  338. package/form-field/cleaner.d.ts +1 -1
  339. package/form-field/form-field.d.ts +3 -4
  340. package/form-field/form-field.scss +2 -2
  341. package/form-field/hint.d.ts +4 -1
  342. package/form-field/hint.scss +9 -1
  343. package/form-field/password-hint.d.ts +7 -3
  344. package/form-field/password-hint.scss +6 -0
  345. package/form-field/password-toggle.d.ts +13 -7
  346. package/form-field/prefix.d.ts +1 -1
  347. package/form-field/suffix.d.ts +1 -1
  348. package/form-field/validate.directive.d.ts +1 -1
  349. package/icon/_icon-button-theme.scss +129 -0
  350. package/icon/_icon-item-theme.scss +41 -0
  351. package/icon/_icon-theme.scss +1 -232
  352. package/icon/icon-button.component.d.ts +22 -0
  353. package/icon/icon-button.scss +33 -0
  354. package/icon/icon-item.component.d.ts +10 -0
  355. package/icon/icon-item.scss +18 -0
  356. package/icon/icon.component.d.ts +1 -25
  357. package/icon/icon.module.d.ts +6 -4
  358. package/icon/icon.scss +0 -41
  359. package/icon/public-api.d.ts +2 -0
  360. package/input/_input-theme.scss +2 -1
  361. package/input/input-number.d.ts +61 -10
  362. package/input/input-password.d.ts +1 -1
  363. package/input/input.d.ts +2 -2
  364. package/input/input.scss +3 -1
  365. package/link/_link-theme.scss +101 -92
  366. package/link/link.component.d.ts +4 -4
  367. package/list/_list-theme.scss +36 -17
  368. package/list/list-selection.component.d.ts +6 -2
  369. package/list/list.module.d.ts +1 -1
  370. package/list/list.scss +6 -19
  371. package/loader-overlay/_loader-overlay-theme.scss +43 -11
  372. package/loader-overlay/loader-overlay.component.d.ts +6 -5
  373. package/loader-overlay/loader-overlay.scss +56 -22
  374. package/markdown/_markdown-theme.scss +2 -2
  375. package/modal/README.md +5 -5
  376. package/modal/_modal-confirm.scss +5 -37
  377. package/modal/_modal-theme.scss +14 -52
  378. package/modal/modal-ref.class.d.ts +2 -2
  379. package/modal/modal.component.d.ts +53 -52
  380. package/modal/modal.module.d.ts +2 -1
  381. package/modal/modal.scss +50 -31
  382. package/modal/modal.type.d.ts +35 -36
  383. package/navbar/_navbar-theme.scss +2 -2
  384. package/navbar/navbar-item.component.d.ts +4 -3
  385. package/navbar/navbar.component.d.ts +5 -2
  386. package/navbar/vertical-navbar.component.d.ts +4 -2
  387. package/package.json +48 -38
  388. package/popover/README.md +14 -14
  389. package/popover/_popover-theme.scss +15 -78
  390. package/popover/popover-animations.d.ts +1 -1
  391. package/popover/popover-confirm.component.d.ts +1 -3
  392. package/popover/popover.component.d.ts +3 -3
  393. package/popover/popover.scss +60 -50
  394. package/prebuilt-themes/dark-theme.css +1 -1
  395. package/prebuilt-themes/light-theme.css +1 -1
  396. package/progress-spinner/progress-spinner.component.d.ts +2 -2
  397. package/progress-spinner/progress-spinner.scss +10 -5
  398. package/radio/_radio-theme.scss +17 -4
  399. package/radio/radio.component.d.ts +2 -2
  400. package/radio/radio.scss +13 -0
  401. package/risk-level/README.md +0 -0
  402. package/risk-level/_risk-level-theme.scss +88 -0
  403. package/risk-level/index.d.ts +1 -0
  404. package/risk-level/public-api.d.ts +2 -0
  405. package/risk-level/risk-level.component.d.ts +18 -0
  406. package/risk-level/risk-level.component.scss +26 -0
  407. package/risk-level/risk-level.module.d.ts +10 -0
  408. package/select/_select-theme.scss +12 -4
  409. package/select/select-option.directive.d.ts +2 -0
  410. package/select/select.component.d.ts +15 -12
  411. package/select/select.scss +6 -190
  412. package/sidebar/sidebar-animations.d.ts +1 -1
  413. package/sidebar/sidebar.component.d.ts +3 -3
  414. package/sidepanel/_sidepanel-theme.scss +11 -41
  415. package/sidepanel/sidepanel-directives.d.ts +0 -2
  416. package/sidepanel/sidepanel.scss +33 -35
  417. package/splitter/_splitter-theme.scss +1 -0
  418. package/splitter/splitter.component.d.ts +1 -1
  419. package/table/_table-theme.scss +1 -1
  420. package/table/table.component.d.ts +1 -1
  421. package/tabs/_tabs-common.scss +28 -147
  422. package/tabs/_tabs-theme.scss +81 -175
  423. package/tabs/paginated-tab-header.d.ts +1 -0
  424. package/tabs/tab-body.component.d.ts +1 -1
  425. package/tabs/tab-content.directive.d.ts +1 -1
  426. package/tabs/tab-group.component.d.ts +5 -8
  427. package/tabs/tab-group.scss +10 -10
  428. package/tabs/tab-header.scss +2 -24
  429. package/tabs/tab-label-wrapper.directive.d.ts +1 -1
  430. package/tabs/tab-label.directive.d.ts +1 -1
  431. package/tabs/tab-nav-bar/tab-nav-bar.d.ts +4 -2
  432. package/tabs/tab-nav-bar/tab-nav-bar.scss +9 -16
  433. package/tabs/tab.component.d.ts +1 -1
  434. package/tabs/tabs-animations.d.ts +1 -1
  435. package/tabs/tabs.module.d.ts +1 -1
  436. package/tags/_tag-theme.scss +1 -25
  437. package/tags/tag-default-options.d.ts +4 -0
  438. package/tags/tag-input.d.ts +2 -2
  439. package/tags/tag-list.component.d.ts +3 -2
  440. package/tags/tag-list.scss +26 -16
  441. package/tags/tag.component.d.ts +6 -6
  442. package/textarea/textarea.component.d.ts +1 -1
  443. package/timepicker/timepicker.directive.d.ts +2 -2
  444. package/timezone/timezone-option.component.d.ts +1 -1
  445. package/timezone/timezone-select.component.d.ts +1 -1
  446. package/title/title.directive.d.ts +1 -1
  447. package/toast/_toast-theme.scss +21 -33
  448. package/toast/toast-animations.d.ts +1 -0
  449. package/toast/toast-container.component.d.ts +7 -3
  450. package/toast/toast-container.component.scss +2 -1
  451. package/toast/toast.component.d.ts +6 -1
  452. package/toast/toast.component.scss +41 -34
  453. package/toast/toast.module.d.ts +1 -1
  454. package/toast/toast.service.d.ts +2 -0
  455. package/toast/toast.type.d.ts +8 -5
  456. package/toggle/_toggle-theme.scss +9 -1
  457. package/toggle/toggle.component.d.ts +1 -1
  458. package/toggle/toggle.scss +5 -2
  459. package/tooltip/tooltip.animations.d.ts +1 -1
  460. package/tooltip/tooltip.component.d.ts +5 -5
  461. package/tree/_tree-theme.scss +46 -34
  462. package/tree/control/base-tree-control.d.ts +1 -1
  463. package/tree/control/tree-control.d.ts +1 -1
  464. package/tree/node.d.ts +1 -1
  465. package/tree/outlet.d.ts +1 -1
  466. package/tree/padding.directive.d.ts +1 -1
  467. package/tree/toggle.d.ts +3 -3
  468. package/tree/tree-base.d.ts +1 -1
  469. package/tree/tree-option.component.d.ts +1 -2
  470. package/tree/tree-option.scss +40 -27
  471. package/tree/tree-selection.component.d.ts +1 -1
  472. package/tree/tree.d.ts +1 -1
  473. package/tree/tree.module.d.ts +2 -1
  474. package/tree-select/_tree-select-theme.scss +13 -3
  475. package/tree-select/tree-select.component.d.ts +6 -4
  476. package/tree-select/tree-select.scss +5 -194
  477. package/core/styles/theming/_badges.scss +0 -57
  478. package/core/styles/theming/prebuilt/light-theme.scss +0 -20
  479. package/list/_list-base.scss +0 -54
@@ -14,8 +14,8 @@
14
14
  $markdown: map.get(map.get($theme, components), markdown);
15
15
 
16
16
  .kbq-markdown {
17
- color: map.get($foreground, text);
18
- background: map.get($background, background);;
17
+ color: map.get($foreground, contrast);
18
+ background: map.get($background, bg);
19
19
 
20
20
  // h1, h2, h3, h4, h5, h6
21
21
  @for $i from 1 through 6 {
package/modal/README.md CHANGED
@@ -6,10 +6,10 @@ The dialog is currently divided into 3 modes - `default`, `confirm box`, `custom
6
6
  ```ts
7
7
  showConfirm() {
8
8
  this.modalService.success({
9
- mcContent : 'Save changes made to the request "All assets with Windows"?',
10
- mcOkText : 'Save',
11
- mcCancelText: 'Cancel',
12
- mcOnOk : () => console.log('OK')
9
+ kbqContent : 'Save changes made to the request "All assets with Windows"?',
10
+ kbqOkText : 'Save',
11
+ kbqCancelText: 'Cancel',
12
+ kbqOnOk : () => console.log('OK')
13
13
  });
14
14
  }
15
15
  ```
@@ -18,7 +18,7 @@ showConfirm() {
18
18
 
19
19
  ```ts
20
20
  let dialogRef = modalService.open({
21
- mcComponent: CustomComponent
21
+ kbqComponent: CustomComponent
22
22
  });
23
23
  ```
24
24
 
@@ -7,47 +7,15 @@
7
7
  $tokens: meta.module-variables(tokens) !default;
8
8
 
9
9
  .kbq-confirm {
10
- .kbq-modal-header {
11
- display: none;
12
- }
13
-
14
10
  .kbq-modal-close {
15
11
  display: none;
16
12
  }
17
13
 
18
- .kbq-modal-body {
19
- padding: var(--kbq-modal-confirm-size-padding, map.get($tokens, modal-confirm-size-padding));
20
- }
21
-
22
- // TODO
23
- &-body-wrapper {
24
- //.clearfix()
25
- zoom: 1;
26
-
27
- &:before,
28
- &:after {
29
- content: "";
30
- display: table;
31
- }
32
-
33
- &:after {
34
- clear: both;
35
- }
36
- }
37
-
38
- &-body {
39
- .kbq-confirm-title {
40
- display: block;
41
- overflow: auto;
42
- }
43
- }
44
-
45
- .kbq-confirm-btns {
46
- border-radius: var(--kbq-modal-footer-size-border-radius, map.get($tokens, modal-footer-size-border-radius));
47
- text-align: right;
14
+ .kbq-confirm-footer {
15
+ display: flex;
48
16
 
49
- button + button, button:only-child {
50
- margin: 16px;
51
- }
17
+ gap: var(
18
+ --kbq-modal-size-footer-content-gap-horizontal, map.get($tokens, modal-size-footer-content-gap-horizontal)
19
+ );
52
20
  }
53
21
  }
@@ -5,30 +5,24 @@
5
5
 
6
6
 
7
7
  @mixin kbq-modal-theme($theme) {
8
- $tokens: map.get($theme, tokens);
9
-
10
- $foreground: map.get($theme, foreground);
11
- $background: map.get($theme, background);
12
-
13
8
  $modal: map.get(map.get($theme, components), modal);
14
- $popup: map.get(map.get($theme, components), popup);
15
9
 
16
10
  .kbq-modal {
17
- .kbq-modal-content {
18
- // У модалки должен быть фон background. Чтобы поповеры и дропдауны было видно поверх модалки
19
- background-color: map.get($background, background);
11
+ background: map.get($modal, container-background);
12
+ box-shadow: map.get($modal, container-box-shadow);
20
13
 
21
- box-shadow: map.get($modal, shadow);
22
- }
14
+ .kbq-modal-header {
15
+ & .kbq-modal-title {
16
+ color: map.get($modal, header);
17
+ }
23
18
 
24
- .kbq-modal-title {
25
- color: map.get($foreground, text);
19
+ & .kbq-modal-close {
20
+ color: map.get($modal, close-button);
21
+ }
26
22
  }
27
23
 
28
- .kbq-modal-header {
29
- border-bottom-width: var(--kbq-modal-size-border-width, map.get($tokens, modal-size-border-width));
30
- border-bottom-style: solid;
31
- border-bottom-color: map.get($modal, header-border);
24
+ .kbq-modal-content {
25
+ color: map.get($modal, content);
32
26
  }
33
27
 
34
28
  .kbq-modal-header.kbq-modal-body_top-overflow {
@@ -38,42 +32,10 @@
38
32
  .kbq-modal-footer.kbq-modal-body_bottom-overflow {
39
33
  box-shadow: map.get($modal, body-bottom-shadow);
40
34
  }
41
-
42
- .kbq-modal-footer {
43
- border-top-width: var(--kbq-modal-size-border-width, map.get($tokens, modal-size-border-width));
44
- border-top-style: solid;
45
- border-top-color: map.get($modal, footer-border);
46
-
47
- background-color: map.get($popup, footer-background);
48
- }
49
-
50
- .kbq-modal-close {
51
- border: var(--kbq-modal-size-border-width, map.get($tokens, modal-size-border-width)) solid transparent;
52
-
53
- &:hover {
54
- .kbq-button-overlay {
55
- background: map.get($background, overlay-hover);
56
- }
57
-
58
- .kbq-icon {
59
- color: inherit;
60
- }
61
- }
62
- }
63
35
  }
64
36
 
65
37
  .kbq-modal-mask {
66
- background-color: map.get($modal, background-mask);
67
- }
68
-
69
- .kbq-confirm {
70
- .kbq-confirm-btns {
71
- border-top-width: var(--kbq-modal-size-border-width, map.get($tokens, modal-size-border-width));
72
- border-top-style: solid;
73
- border-top-color: map.get($modal, footer-border);
74
-
75
- background-color: map.get($popup, footer-background);
76
- }
38
+ background-color: map.get($modal, overlay);
77
39
  }
78
40
  }
79
41
 
@@ -81,10 +43,10 @@
81
43
  $tokens: map.get($config, tokens);
82
44
 
83
45
  .kbq-modal-title {
84
- @include kbq-typography-level-to-styles($config, map.get($tokens, modal-header-font-default));
46
+ @include kbq-typography-level-to-styles($config, map.get($tokens, modal-font-header));
85
47
  }
86
48
 
87
49
  .kbq-modal-body {
88
- @include kbq-typography-level-to-styles($config, map.get($tokens, modal-body-font-default));
50
+ @include kbq-typography-level-to-styles($config, map.get($tokens, modal-font-content));
89
51
  }
90
52
  }
@@ -11,12 +11,12 @@ export declare abstract class KbqModalRef<T = any, R = any> {
11
11
  abstract close(result?: R): void;
12
12
  abstract destroy(result?: R): void;
13
13
  /**
14
- * Trigger the mcOnOk/mcOnCancel by manual
14
+ * Trigger the kbqOnOk/kbqOnCancel by manual
15
15
  */
16
16
  abstract triggerOk(): void;
17
17
  abstract triggerCancel(): void;
18
18
  /**
19
- * Return the component instance of mcContent when specify mcContent as a Component
19
+ * Return the component instance of kbqContent when specify kbqContent as a Component
20
20
  * Note: this method may return undefined if the Component has not ready yet.
21
21
  * (it only available after Modal's ngOnInit)
22
22
  */
@@ -1,13 +1,14 @@
1
+ import { FocusMonitor } from '@angular/cdk/a11y';
1
2
  import { Overlay, OverlayRef } from '@angular/cdk/overlay';
2
3
  import { AfterViewInit, ChangeDetectorRef, ComponentFactoryResolver, ComponentRef, ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, QueryList, Renderer2, SimpleChanges, TemplateRef, Type, ViewContainerRef } from '@angular/core';
3
- import { ThemePalette } from '@koobiq/components/core';
4
+ import { KbqComponentColors } from '@koobiq/components/core';
4
5
  import { Observable } from 'rxjs';
5
6
  import { KbqModalControlService } from './modal-control.service';
6
7
  import { KbqModalRef } from './modal-ref.class';
7
- import { IModalButtonOptions, IModalOptions, ModalSize, ModalType, OnClickCallback } from './modal.type';
8
+ import { IModalButtonOptions, ModalOptions, ModalSize, ModalType, OnClickCallback } from './modal.type';
8
9
  import * as i0 from "@angular/core";
9
10
  export declare const MODAL_ANIMATE_DURATION = 200;
10
- export declare class KbqModalComponent<T = any, R = any> extends KbqModalRef<T, R> implements OnInit, OnChanges, AfterViewInit, OnDestroy, IModalOptions {
11
+ export declare class KbqModalComponent<T = any, R = any> extends KbqModalRef<T, R> implements OnInit, OnChanges, AfterViewInit, OnDestroy, ModalOptions {
11
12
  private overlay;
12
13
  private renderer;
13
14
  private cfr;
@@ -15,56 +16,55 @@ export declare class KbqModalComponent<T = any, R = any> extends KbqModalRef<T,
15
16
  private viewContainer;
16
17
  private modalControl;
17
18
  private changeDetector;
19
+ private focusMonitor;
18
20
  private document;
19
- themePalette: typeof ThemePalette;
20
- mcModalType: ModalType;
21
- mcComponent: Type<T>;
22
- mcContent: string | TemplateRef<{}> | Type<T>;
23
- mcComponentParams: any;
24
- mcFooter: string | TemplateRef<{}> | IModalButtonOptions<T>[];
25
- get mcVisible(): boolean;
26
- set mcVisible(value: boolean);
27
- private _mcVisible;
28
- mcVisibleChange: EventEmitter<boolean>;
29
- mcZIndex: number;
30
- mcWidth: number | string;
31
- mcSize: ModalSize;
32
- mcWrapClassName: string;
33
- mcClassName: string;
34
- mcStyle: object;
35
- mcTitle: string | TemplateRef<{}>;
36
- mcCloseByESC: boolean;
37
- get mcClosable(): boolean;
38
- set mcClosable(value: boolean);
39
- private _mcClosable;
40
- get mcMask(): boolean;
41
- set mcMask(value: boolean);
42
- private _mcMask;
43
- get mcMaskClosable(): boolean;
44
- set mcMaskClosable(value: boolean);
45
- private _mcMaskClosable;
46
- mcMaskStyle: object;
47
- mcBodyStyle: object;
48
- mcAfterOpen: EventEmitter<void>;
49
- mcAfterClose: EventEmitter<R>;
50
- mcOkText: string;
51
- mcOkType: string;
52
- mcRestoreFocus: boolean;
53
- get mcOkLoading(): boolean;
54
- set mcOkLoading(value: boolean);
55
- private _mcOkLoading;
56
- mcOnOk: EventEmitter<T> | OnClickCallback<T>;
57
- mcCancelText: string;
58
- get mcCancelLoading(): boolean;
59
- set mcCancelLoading(value: boolean);
60
- private _mcCancelLoading;
61
- mcOnCancel: EventEmitter<T> | OnClickCallback<T>;
21
+ componentColors: typeof KbqComponentColors;
22
+ kbqModalType: ModalType;
23
+ kbqComponent: Type<T>;
24
+ kbqContent: string | TemplateRef<{}> | Type<T>;
25
+ kbqComponentParams: any;
26
+ kbqFooter: string | TemplateRef<{}> | IModalButtonOptions<T>[];
27
+ get kbqVisible(): boolean;
28
+ set kbqVisible(value: boolean);
29
+ private _kbqVisible;
30
+ kbqVisibleChange: EventEmitter<boolean>;
31
+ kbqZIndex: number;
32
+ kbqWidth: number | string;
33
+ kbqSize: ModalSize;
34
+ kbqWrapClassName: string;
35
+ kbqClassName: string;
36
+ kbqStyle: object;
37
+ kbqTitle: string | TemplateRef<{}>;
38
+ kbqCloseByESC: boolean;
39
+ get kbqClosable(): boolean;
40
+ set kbqClosable(value: boolean);
41
+ private _kbqClosable;
42
+ get kbqMask(): boolean;
43
+ set kbqMask(value: boolean);
44
+ private _kbqMask;
45
+ get kbqMaskClosable(): boolean;
46
+ set kbqMaskClosable(value: boolean);
47
+ private _kbqMaskClosable;
48
+ kbqMaskStyle: object;
49
+ kbqBodyStyle: object;
50
+ kbqAfterOpen: EventEmitter<void>;
51
+ kbqAfterClose: EventEmitter<R>;
52
+ kbqOkText: string;
53
+ kbqOkType: KbqComponentColors;
54
+ kbqRestoreFocus: boolean;
55
+ get kbqOkLoading(): boolean;
56
+ set kbqOkLoading(value: boolean);
57
+ private _kbqOkLoading;
58
+ kbqOnOk: EventEmitter<T> | OnClickCallback<T>;
59
+ kbqCancelText: string;
60
+ get kbqCancelLoading(): boolean;
61
+ set kbqCancelLoading(value: boolean);
62
+ private _kbqCancelLoading;
63
+ kbqOnCancel: EventEmitter<T> | OnClickCallback<T>;
62
64
  modalContainer: ElementRef;
63
65
  bodyContainer: ViewContainerRef;
64
66
  autoFocusedButtons: QueryList<ElementRef>;
65
67
  modalBody: ElementRef;
66
- isTopOverflow: boolean;
67
- isBottomOverflow: boolean;
68
68
  maskAnimationClassMap: object;
69
69
  modalAnimationClassMap: object;
70
70
  transformOrigin: string;
@@ -74,16 +74,16 @@ export declare class KbqModalComponent<T = any, R = any> extends KbqModalRef<T,
74
74
  get cancelText(): string;
75
75
  get hidden(): boolean;
76
76
  private focusedElementBeforeOpen;
77
+ private previouslyFocusedElementOrigin;
77
78
  private contentComponentRef;
78
79
  private animationState;
79
80
  private container;
80
- constructor(overlay: Overlay, renderer: Renderer2, cfr: ComponentFactoryResolver, elementRef: ElementRef, viewContainer: ViewContainerRef, modalControl: KbqModalControlService, changeDetector: ChangeDetectorRef, document: any);
81
- mcGetContainer: HTMLElement | OverlayRef | (() => HTMLElement | OverlayRef);
81
+ constructor(overlay: Overlay, renderer: Renderer2, cfr: ComponentFactoryResolver, elementRef: ElementRef, viewContainer: ViewContainerRef, modalControl: KbqModalControlService, changeDetector: ChangeDetectorRef, focusMonitor: FocusMonitor, document: any);
82
+ kbqGetContainer: HTMLElement | OverlayRef | (() => HTMLElement | OverlayRef);
82
83
  ngOnInit(): void;
83
84
  ngOnChanges(changes: SimpleChanges): void;
84
85
  ngAfterViewInit(): void;
85
86
  ngOnDestroy(): void;
86
- checkOverflow(): void;
87
87
  open(): void;
88
88
  close(result?: R): void;
89
89
  destroy(result?: R): void;
@@ -100,6 +100,7 @@ export declare class KbqModalComponent<T = any, R = any> extends KbqModalRef<T,
100
100
  onKeyDown(event: KeyboardEvent): void;
101
101
  onClickCloseBtn(): void;
102
102
  onClickOkCancel(type: 'ok' | 'cancel'): void;
103
+ handleCloseResult(triggerType: 'ok' | 'cancel', canClose: (doClose: boolean | void | {}) => boolean): void;
103
104
  isNonEmptyString(value: {}): boolean;
104
105
  isTemplateRef(value: {}): boolean;
105
106
  isComponent(value: {}): boolean;
@@ -124,5 +125,5 @@ export declare class KbqModalComponent<T = any, R = any> extends KbqModalRef<T,
124
125
  */
125
126
  private changeBodyOverflow;
126
127
  static ɵfac: i0.ɵɵFactoryDeclaration<KbqModalComponent<any, any>, never>;
127
- static ɵcmp: i0.ɵɵComponentDeclaration<KbqModalComponent<any, any>, "kbq-modal", never, { "mcModalType": { "alias": "mcModalType"; "required": false; }; "mcComponent": { "alias": "mcComponent"; "required": false; }; "mcContent": { "alias": "mcContent"; "required": false; }; "mcComponentParams": { "alias": "mcComponentParams"; "required": false; }; "mcFooter": { "alias": "mcFooter"; "required": false; }; "mcVisible": { "alias": "mcVisible"; "required": false; }; "mcZIndex": { "alias": "mcZIndex"; "required": false; }; "mcWidth": { "alias": "mcWidth"; "required": false; }; "mcSize": { "alias": "mcSize"; "required": false; }; "mcWrapClassName": { "alias": "mcWrapClassName"; "required": false; }; "mcClassName": { "alias": "mcClassName"; "required": false; }; "mcStyle": { "alias": "mcStyle"; "required": false; }; "mcTitle": { "alias": "mcTitle"; "required": false; }; "mcCloseByESC": { "alias": "mcCloseByESC"; "required": false; }; "mcClosable": { "alias": "mcClosable"; "required": false; }; "mcMask": { "alias": "mcMask"; "required": false; }; "mcMaskClosable": { "alias": "mcMaskClosable"; "required": false; }; "mcMaskStyle": { "alias": "mcMaskStyle"; "required": false; }; "mcBodyStyle": { "alias": "mcBodyStyle"; "required": false; }; "mcOkText": { "alias": "mcOkText"; "required": false; }; "mcOkType": { "alias": "mcOkType"; "required": false; }; "mcRestoreFocus": { "alias": "mcRestoreFocus"; "required": false; }; "mcOkLoading": { "alias": "mcOkLoading"; "required": false; }; "mcOnOk": { "alias": "mcOnOk"; "required": false; }; "mcCancelText": { "alias": "mcCancelText"; "required": false; }; "mcCancelLoading": { "alias": "mcCancelLoading"; "required": false; }; "mcOnCancel": { "alias": "mcOnCancel"; "required": false; }; "mcGetContainer": { "alias": "mcGetContainer"; "required": false; }; }, { "mcVisibleChange": "mcVisibleChange"; "mcAfterOpen": "mcAfterOpen"; "mcAfterClose": "mcAfterClose"; "mcOnOk": "mcOnOk"; "mcOnCancel": "mcOnCancel"; }, never, ["*"], false, never>;
128
+ static ɵcmp: i0.ɵɵComponentDeclaration<KbqModalComponent<any, any>, "kbq-modal", never, { "kbqModalType": { "alias": "kbqModalType"; "required": false; }; "kbqComponent": { "alias": "kbqComponent"; "required": false; }; "kbqContent": { "alias": "kbqContent"; "required": false; }; "kbqComponentParams": { "alias": "kbqComponentParams"; "required": false; }; "kbqFooter": { "alias": "kbqFooter"; "required": false; }; "kbqVisible": { "alias": "kbqVisible"; "required": false; }; "kbqZIndex": { "alias": "kbqZIndex"; "required": false; }; "kbqWidth": { "alias": "kbqWidth"; "required": false; }; "kbqSize": { "alias": "kbqSize"; "required": false; }; "kbqWrapClassName": { "alias": "kbqWrapClassName"; "required": false; }; "kbqClassName": { "alias": "kbqClassName"; "required": false; }; "kbqStyle": { "alias": "kbqStyle"; "required": false; }; "kbqTitle": { "alias": "kbqTitle"; "required": false; }; "kbqCloseByESC": { "alias": "kbqCloseByESC"; "required": false; }; "kbqClosable": { "alias": "kbqClosable"; "required": false; }; "kbqMask": { "alias": "kbqMask"; "required": false; }; "kbqMaskClosable": { "alias": "kbqMaskClosable"; "required": false; }; "kbqMaskStyle": { "alias": "kbqMaskStyle"; "required": false; }; "kbqBodyStyle": { "alias": "kbqBodyStyle"; "required": false; }; "kbqOkText": { "alias": "kbqOkText"; "required": false; }; "kbqOkType": { "alias": "kbqOkType"; "required": false; }; "kbqRestoreFocus": { "alias": "kbqRestoreFocus"; "required": false; }; "kbqOkLoading": { "alias": "kbqOkLoading"; "required": false; }; "kbqOnOk": { "alias": "kbqOnOk"; "required": false; }; "kbqCancelText": { "alias": "kbqCancelText"; "required": false; }; "kbqCancelLoading": { "alias": "kbqCancelLoading"; "required": false; }; "kbqOnCancel": { "alias": "kbqOnCancel"; "required": false; }; "kbqGetContainer": { "alias": "kbqGetContainer"; "required": false; }; }, { "kbqVisibleChange": "kbqVisibleChange"; "kbqAfterOpen": "kbqAfterOpen"; "kbqAfterClose": "kbqAfterClose"; "kbqOnOk": "kbqOnOk"; "kbqOnCancel": "kbqOnCancel"; }, never, ["*"], false, never>;
128
129
  }
@@ -7,8 +7,9 @@ import * as i5 from "@angular/cdk/overlay";
7
7
  import * as i6 from "@angular/cdk/a11y";
8
8
  import * as i7 from "@koobiq/components/button";
9
9
  import * as i8 from "@koobiq/components/icon";
10
+ import * as i9 from "@koobiq/components/title";
10
11
  export declare class KbqModalModule {
11
12
  static ɵfac: i0.ɵɵFactoryDeclaration<KbqModalModule, never>;
12
- static ɵmod: i0.ɵɵNgModuleDeclaration<KbqModalModule, [typeof i1.KbqModalComponent, typeof i2.KbqModalTitle, typeof i2.KbqModalBody, typeof i2.KbqModalFooter, typeof i3.CssUnitPipe, typeof i2.KbqModalMainAction], [typeof i4.CommonModule, typeof i5.OverlayModule, typeof i6.A11yModule, typeof i7.KbqButtonModule, typeof i8.KbqIconModule], [typeof i1.KbqModalComponent, typeof i2.KbqModalTitle, typeof i2.KbqModalBody, typeof i2.KbqModalFooter, typeof i2.KbqModalMainAction]>;
13
+ static ɵmod: i0.ɵɵNgModuleDeclaration<KbqModalModule, [typeof i1.KbqModalComponent, typeof i2.KbqModalTitle, typeof i2.KbqModalBody, typeof i2.KbqModalFooter, typeof i3.CssUnitPipe, typeof i2.KbqModalMainAction], [typeof i4.CommonModule, typeof i5.OverlayModule, typeof i6.A11yModule, typeof i7.KbqButtonModule, typeof i8.KbqIconModule, typeof i9.KbqTitleModule], [typeof i1.KbqModalComponent, typeof i2.KbqModalTitle, typeof i2.KbqModalBody, typeof i2.KbqModalFooter, typeof i2.KbqModalMainAction]>;
13
14
  static ɵinj: i0.ɵɵInjectorDeclaration<KbqModalModule>;
14
15
  }
package/modal/modal.scss CHANGED
@@ -14,7 +14,9 @@ $tokens: meta.module-variables(tokens) !default;
14
14
 
15
15
  position: relative;
16
16
 
17
- top: var(--kbq-modal-size-top, map.get($tokens, modal-size-top));
17
+ top: 48px;
18
+
19
+ border-radius: var(--kbq-modal-size-border-radius, map.get($tokens, modal-size-border-radius));
18
20
 
19
21
  width: auto;
20
22
 
@@ -31,26 +33,30 @@ $tokens: meta.module-variables(tokens) !default;
31
33
  }
32
34
 
33
35
  &.kbq-modal_small {
34
- width: var(--kbq-modal-size-small, map.get($tokens, modal-size-small));
36
+ width: var(--kbq-modal-size-small-width, map.get($tokens, modal-size-small-width));
35
37
  }
36
38
 
37
39
  &.kbq-modal_medium {
38
- width: var(--kbq-modal-size-medium, map.get($tokens, modal-size-medium));
40
+ width: var(--kbq-modal-size-medium-width, map.get($tokens, modal-size-medium-width));
39
41
  }
40
42
 
41
43
  &.kbq-modal_large {
42
- width: var(--kbq-modal-size-large, map.get($tokens, modal-size-large));
44
+ width: var(--kbq-modal-size-large-width, map.get($tokens, modal-size-large-width));
43
45
  }
44
46
 
47
+ // todo реализуем когда будем делать 2.0, пока нет возможности отслеживать наличие/отстутствие футера
48
+ //&.kbq-modal_no-footer .kbq-modal-body {
49
+ // padding-bottom: var(
50
+ // --kbq-modal-size-content-padding-bottom-without-footer,
51
+ // map.get($tokens, modal-size-content-padding-bottom-without-footer)
52
+ // );
53
+ //}
54
+
45
55
  & .kbq-modal-close {
46
56
  position: absolute;
47
57
 
48
- z-index: 10;
49
- top: 0;
50
- right: 0;
51
-
52
- width: var(--kbq-modal-size-close-width, map.get($tokens, modal-size-close-width));
53
- height: var(--kbq-modal-size-close-width, map.get($tokens, modal-size-close-width));
58
+ top: 16px;
59
+ right: 8px;
54
60
  }
55
61
  }
56
62
 
@@ -69,56 +75,69 @@ $tokens: meta.module-variables(tokens) !default;
69
75
  outline: 0;
70
76
  }
71
77
 
72
- .kbq-modal-title {
73
- margin: 0;
74
- }
75
-
76
78
  .kbq-modal-content {
77
79
  position: relative;
78
80
 
79
81
  border-radius: var(--kbq-modal-size-border-radius, map.get($tokens, modal-size-border-radius));
80
82
 
81
83
  background-clip: padding-box;
82
- background-color: white;
83
84
  }
84
85
 
85
86
  .kbq-modal-header {
86
87
  display: flex;
87
88
  align-items: center;
89
+ justify-content: space-between;
88
90
 
89
- height: var(--kbq-modal-header-size-height, map.get($tokens, modal-header-size-height));
91
+ padding:
92
+ var(--kbq-modal-size-header-padding-vertical, map.get($tokens, modal-size-header-padding-vertical))
93
+ var(--kbq-modal-size-header-padding-right, map.get($tokens, modal-size-header-padding-right))
94
+ var(--kbq-modal-size-header-padding-vertical, map.get($tokens, modal-size-header-padding-vertical))
95
+ var(--kbq-modal-size-header-padding-left, map.get($tokens, modal-size-header-padding-left));
90
96
 
91
- border-radius: var(--kbq-modal-header-size-border-radius, map.get($tokens, modal-header-size-border-radius));
97
+ & + .kbq-modal-body {
98
+ padding-top: var(--kbq-modal-size-content-padding-top, map.get($tokens, modal-size-content-padding-top));
99
+ }
100
+ }
92
101
 
93
- padding: var(--kbq-modal-header-size-padding, map.get($tokens, modal-header-size-padding));
102
+ .kbq-modal-title {
103
+ display: -webkit-box;
104
+ -webkit-box-orient: vertical;
105
+ -webkit-line-clamp: 2;
106
+ overflow: hidden;
94
107
  }
95
108
 
109
+ /* stylelint-disable no-descending-specificity */
96
110
  .kbq-modal-body {
97
111
  display: block;
98
112
  overflow-y: auto;
99
113
 
100
- max-height: var(--kbq-modal-body-size-max-height, map.get($tokens, modal-body-size-max-height));
114
+ max-height: calc(100vh - 260px);
101
115
 
102
- padding: var(--kbq-modal-body-size-padding, map.get($tokens, modal-body-size-padding));
116
+ padding:
117
+ var(
118
+ --kbq-modal-size-content-padding-top-without-header,
119
+ map.get($tokens, modal-size-content-padding-top-without-header)
120
+ )
121
+ var(--kbq-modal-size-content-padding-horizontal, map.get($tokens, modal-size-content-padding-horizontal))
122
+ var(--kbq-modal-size-content-padding-bottom, map.get($tokens, modal-size-content-padding-bottom))
123
+ var(--kbq-modal-size-content-padding-horizontal, map.get($tokens, modal-size-content-padding-horizontal));
103
124
 
104
125
  word-wrap: break-word;
105
126
  }
127
+ /* stylelint-enable no-descending-specificity */
106
128
 
107
- .kbq-modal-footer {
129
+ .kbq-modal-footer,
130
+ .kbq-confirm-footer {
108
131
  display: flex;
109
132
  align-items: center;
110
- justify-content: flex-end;
111
133
 
112
- height: var(--kbq-modal-footer-size-height, map.get($tokens, modal-footer-size-height));
134
+ padding:
135
+ var(--kbq-modal-size-footer-padding-vertical, map.get($tokens, modal-size-footer-padding-vertical))
136
+ var(--kbq-modal-size-footer-padding-horizontal, map.get($tokens, modal-size-footer-padding-horizontal));
113
137
 
114
- border-radius: var(--kbq-modal-footer-size-border-radius, map.get($tokens, modal-footer-size-border-radius));
115
-
116
- padding: var(--kbq-modal-footer-size-padding, map.get($tokens, modal-footer-size-padding));
117
-
118
- button + button {
119
- margin-left: 16px;
120
- margin-bottom: 0;
121
- }
138
+ gap: var(
139
+ --kbq-modal-size-footer-content-gap-horizontal, map.get($tokens, modal-size-footer-content-gap-horizontal)
140
+ );
122
141
  }
123
142
 
124
143
  .kbq-modal-mask {
@@ -6,44 +6,43 @@ export type ConfirmType = 'confirm' | 'success' | 'warn';
6
6
  export declare enum ModalSize {
7
7
  Small = "small",
8
8
  Medium = "medium",
9
- Normal = "medium",
10
9
  Large = "large"
11
10
  }
12
- export interface IModalOptions<T = any, R = any> {
13
- mcModalType?: ModalType;
14
- mcVisible?: boolean;
15
- mcZIndex?: number;
16
- mcWidth?: number | string;
17
- mcSize?: ModalSize;
18
- mcWrapClassName?: string;
19
- mcClassName?: string;
20
- mcStyle?: object;
21
- mcTitle?: string | TemplateRef<{}>;
22
- mcContent?: string | TemplateRef<{}> | Type<T>;
23
- mcComponent?: Type<T>;
24
- mcComponentParams?: any;
25
- mcClosable?: boolean;
26
- mcMask?: boolean;
27
- mcMaskClosable?: boolean;
28
- mcMaskStyle?: object;
29
- mcBodyStyle?: object;
30
- mcFooter?: string | TemplateRef<{}> | IModalButtonOptions<T>[];
31
- mcGetContainer?: HTMLElement | OverlayRef | (() => HTMLElement | OverlayRef) | null;
32
- mcAfterOpen?: EventEmitter<void>;
33
- mcAfterClose?: EventEmitter<R>;
34
- mcCloseByESC?: boolean;
35
- mcRestoreFocus?: boolean;
36
- mcOkText?: string;
37
- mcOkType?: string;
38
- mcOkLoading?: boolean;
39
- mcOnOk?: EventEmitter<T> | OnClickCallback<T>;
40
- mcCancelText?: string;
41
- mcCancelLoading?: boolean;
42
- mcOnCancel?: EventEmitter<T> | OnClickCallback<T>;
11
+ export interface ModalOptions<T = any, R = any> {
12
+ kbqModalType?: ModalType;
13
+ kbqVisible?: boolean;
14
+ kbqZIndex?: number;
15
+ kbqWidth?: number | string;
16
+ kbqSize?: ModalSize;
17
+ kbqWrapClassName?: string;
18
+ kbqClassName?: string;
19
+ kbqStyle?: object;
20
+ kbqTitle?: string | TemplateRef<{}>;
21
+ kbqContent?: string | TemplateRef<{}> | Type<T>;
22
+ kbqComponent?: Type<T>;
23
+ kbqComponentParams?: any;
24
+ kbqClosable?: boolean;
25
+ kbqMask?: boolean;
26
+ kbqMaskClosable?: boolean;
27
+ kbqMaskStyle?: object;
28
+ kbqBodyStyle?: object;
29
+ kbqFooter?: string | TemplateRef<{}> | IModalButtonOptions<T>[];
30
+ kbqGetContainer?: HTMLElement | OverlayRef | (() => HTMLElement | OverlayRef) | null;
31
+ kbqAfterOpen?: EventEmitter<void>;
32
+ kbqAfterClose?: EventEmitter<R>;
33
+ kbqCloseByESC?: boolean;
34
+ kbqRestoreFocus?: boolean;
35
+ kbqOkText?: string;
36
+ kbqOkType?: string;
37
+ kbqOkLoading?: boolean;
38
+ kbqOnOk?: EventEmitter<T> | OnClickCallback<T>;
39
+ kbqCancelText?: string;
40
+ kbqCancelLoading?: boolean;
41
+ kbqOnCancel?: EventEmitter<T> | OnClickCallback<T>;
43
42
  }
44
- export interface IModalOptionsForService<T = any> extends IModalOptions<T> {
45
- mcOnOk?: OnClickCallback<T>;
46
- mcOnCancel?: OnClickCallback<T>;
43
+ export interface IModalOptionsForService<T = any> extends ModalOptions<T> {
44
+ kbqOnOk?: OnClickCallback<T>;
45
+ kbqOnCancel?: OnClickCallback<T>;
47
46
  }
48
47
  export interface IModalButtonOptions<T = any> {
49
48
  label: string;
@@ -56,6 +55,6 @@ export interface IModalButtonOptions<T = any> {
56
55
  loading?: boolean | ((this: IModalButtonOptions<T>, contentComponentInstance?: T) => boolean);
57
56
  disabled?: boolean | ((this: IModalButtonOptions<T>, contentComponentInstance?: T) => boolean);
58
57
  autoFocus?: boolean;
59
- mcModalMainAction?: boolean;
58
+ kbqModalMainAction?: boolean;
60
59
  onClick?(this: IModalButtonOptions<T>, contentComponentInstance?: T): (void | {}) | Promise<(void | {})>;
61
60
  }
@@ -61,7 +61,7 @@
61
61
  }
62
62
  }
63
63
 
64
- &[disabled] {
64
+ &.kbq-disabled {
65
65
  pointer-events: none;
66
66
  cursor: default;
67
67
 
@@ -79,7 +79,7 @@
79
79
  &.cdk-keyboard-focused .kbq-navbar-item__overlay {
80
80
  box-shadow:
81
81
  inset 0 0 0 2px map.get(map.get($theme, states), focused-color),
82
- inset 0 0 0 3px map.get($background, background);
82
+ inset 0 0 0 3px map.get($background, bg);
83
83
  }
84
84
  /* stylelint-enable no-descending-specificity */
85
85
  }