@koobiq/components 16.0.0-beta.6 → 16.0.0-beta.7

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 (283) hide show
  1. package/autocomplete/autocomplete-trigger.directive.d.ts +5 -15
  2. package/button-toggle/button-toggle.component.d.ts +2 -2
  3. package/checkbox/_checkbox-theme.scss +10 -2
  4. package/checkbox/checkbox.d.ts +1 -1
  5. package/code-block/README.md +14 -14
  6. package/code-block/_code-block-theme.scss +8 -0
  7. package/code-block/code-block.component.d.ts +1 -1
  8. package/core/animation/index.d.ts +1 -1
  9. package/core/animation/select-animations.d.ts +1 -1
  10. package/core/formatters/index.d.ts +1 -1
  11. package/core/formatters/number/formatter.d.ts +56 -1
  12. package/core/forms/forms.directive.d.ts +2 -2
  13. package/core/locales/en-US.d.ts +19 -1
  14. package/core/locales/es-LA.d.ts +27 -0
  15. package/core/locales/fa-IR.d.ts +28 -0
  16. package/core/locales/locale-service.d.ts +148 -3
  17. package/core/locales/pt-BR.d.ts +27 -0
  18. package/core/locales/ru-RU.d.ts +20 -1
  19. package/core/locales/zh-CN.d.ts +26 -0
  20. package/core/option/action.d.ts +1 -1
  21. package/core/option/optgroup.d.ts +1 -1
  22. package/core/option/option.d.ts +37 -8
  23. package/core/overlay/overlay-position-map.d.ts +7 -1
  24. package/core/pop-up/constants.d.ts +2 -1
  25. package/core/public-api.d.ts +1 -0
  26. package/core/select/constants.d.ts +2 -2
  27. package/core/services/theme.service.d.ts +23 -0
  28. package/core/styles/_variables.scss +1 -0
  29. package/core/styles/common/_select.scss +24 -24
  30. package/core/styles/theming/_components-theming.scss +31 -5
  31. package/datepicker/calendar-body.component.d.ts +1 -1
  32. package/datepicker/calendar-header.component.d.ts +9 -3
  33. package/datepicker/calendar.component.d.ts +4 -5
  34. package/datepicker/datepicker-animations.d.ts +1 -1
  35. package/datepicker/datepicker-input.directive.d.ts +4 -4
  36. package/datepicker/datepicker-toggle.component.d.ts +3 -3
  37. package/datepicker/datepicker.component.d.ts +2 -2
  38. package/datepicker/month-view.component.d.ts +5 -6
  39. package/dl/_dl-theme.scss +2 -56
  40. package/dl/dl.component.d.ts +1 -2
  41. package/dl/dl.scss +10 -47
  42. package/dropdown/dropdown-animations.d.ts +1 -1
  43. package/dropdown/dropdown-content.directive.d.ts +1 -1
  44. package/dropdown/dropdown-item.component.d.ts +1 -1
  45. package/dropdown/dropdown-trigger.directive.d.ts +2 -2
  46. package/dropdown/dropdown.component.d.ts +1 -1
  47. package/dropdown/dropdown.types.d.ts +1 -1
  48. package/esm2022/alert/alert.component.mjs +2 -2
  49. package/esm2022/autocomplete/autocomplete-trigger.directive.mjs +24 -21
  50. package/esm2022/button-toggle/button-toggle.component.mjs +8 -8
  51. package/esm2022/checkbox/checkbox.mjs +3 -3
  52. package/esm2022/code-block/actionbar.component.mjs +1 -1
  53. package/esm2022/code-block/code-block.component.mjs +3 -3
  54. package/esm2022/core/animation/index.mjs +2 -2
  55. package/esm2022/core/animation/select-animations.mjs +4 -4
  56. package/esm2022/core/formatters/index.mjs +10 -2
  57. package/esm2022/core/formatters/number/formatter.mjs +224 -3
  58. package/esm2022/core/forms/forms.directive.mjs +5 -5
  59. package/esm2022/core/locales/en-US.mjs +22 -4
  60. package/esm2022/core/locales/es-LA.mjs +31 -2
  61. package/esm2022/core/locales/fa-IR.mjs +30 -2
  62. package/esm2022/core/locales/locale-service.mjs +4 -4
  63. package/esm2022/core/locales/pt-BR.mjs +29 -2
  64. package/esm2022/core/locales/ru-RU.mjs +23 -2
  65. package/esm2022/core/locales/zh-CN.mjs +28 -2
  66. package/esm2022/core/option/action.mjs +3 -3
  67. package/esm2022/core/option/optgroup.mjs +3 -3
  68. package/esm2022/core/option/option.mjs +47 -10
  69. package/esm2022/core/overlay/overlay-position-map.mjs +7 -1
  70. package/esm2022/core/pop-up/constants.mjs +2 -1
  71. package/esm2022/core/pop-up/pop-up-trigger.mjs +12 -3
  72. package/esm2022/core/public-api.mjs +2 -1
  73. package/esm2022/core/select/constants.mjs +3 -3
  74. package/esm2022/core/services/theme.service.mjs +60 -0
  75. package/esm2022/core/version.mjs +2 -2
  76. package/esm2022/datepicker/calendar-body.component.mjs +3 -3
  77. package/esm2022/datepicker/calendar-header.component.mjs +9 -8
  78. package/esm2022/datepicker/calendar.component.mjs +7 -16
  79. package/esm2022/datepicker/datepicker-animations.mjs +2 -2
  80. package/esm2022/datepicker/datepicker-input.directive.mjs +29 -20
  81. package/esm2022/datepicker/datepicker-toggle.component.mjs +6 -6
  82. package/esm2022/datepicker/datepicker.component.mjs +11 -11
  83. package/esm2022/datepicker/month-view.component.mjs +9 -18
  84. package/esm2022/dl/dl.component.mjs +3 -7
  85. package/esm2022/dropdown/dropdown-animations.mjs +4 -4
  86. package/esm2022/dropdown/dropdown-content.directive.mjs +3 -3
  87. package/esm2022/dropdown/dropdown-errors.mjs +6 -6
  88. package/esm2022/dropdown/dropdown-item.component.mjs +5 -5
  89. package/esm2022/dropdown/dropdown-trigger.directive.mjs +8 -8
  90. package/esm2022/dropdown/dropdown.component.mjs +8 -8
  91. package/esm2022/dropdown/dropdown.types.mjs +1 -1
  92. package/esm2022/file-upload/file-drop.mjs +4 -4
  93. package/esm2022/file-upload/multiple-file-upload.component.mjs +12 -8
  94. package/esm2022/file-upload/single-file-upload.component.mjs +12 -8
  95. package/esm2022/form-field/cleaner.mjs +3 -3
  96. package/esm2022/form-field/form-field.mjs +7 -7
  97. package/esm2022/form-field/hint.mjs +4 -4
  98. package/esm2022/form-field/password-hint.mjs +11 -11
  99. package/esm2022/form-field/password-toggle.mjs +21 -8
  100. package/esm2022/form-field/suffix.mjs +3 -3
  101. package/esm2022/form-field/validate.directive.mjs +4 -4
  102. package/esm2022/input/input-number.mjs +259 -43
  103. package/esm2022/link/link.component.mjs +3 -3
  104. package/esm2022/list/list-selection.component.mjs +6 -6
  105. package/esm2022/loader-overlay/loader-overlay.component.mjs +2 -2
  106. package/esm2022/modal/modal-control.service.mjs +5 -5
  107. package/esm2022/modal/modal-ref.class.mjs +1 -1
  108. package/esm2022/modal/modal.component.mjs +124 -111
  109. package/esm2022/modal/modal.service.mjs +23 -23
  110. package/esm2022/modal/modal.type.mjs +1 -3
  111. package/esm2022/navbar/navbar-item.component.mjs +6 -6
  112. package/esm2022/navbar/navbar.component.mjs +18 -9
  113. package/esm2022/navbar/vertical-navbar.component.mjs +9 -6
  114. package/esm2022/popover/popover-animations.mjs +2 -2
  115. package/esm2022/popover/popover-confirm.component.mjs +9 -9
  116. package/esm2022/popover/popover.component.mjs +23 -23
  117. package/esm2022/radio/radio.component.mjs +10 -8
  118. package/esm2022/select/select.component.mjs +32 -17
  119. package/esm2022/sidebar/sidebar-animations.mjs +2 -2
  120. package/esm2022/sidebar/sidebar.component.mjs +9 -9
  121. package/esm2022/sidepanel/sidepanel-directives.mjs +2 -2
  122. package/esm2022/splitter/splitter.component.mjs +3 -3
  123. package/esm2022/table/table.component.mjs +3 -3
  124. package/esm2022/tabs/tab-body.component.mjs +7 -7
  125. package/esm2022/tabs/tab-content.directive.mjs +3 -3
  126. package/esm2022/tabs/tab-group.component.mjs +3 -3
  127. package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +6 -6
  128. package/esm2022/tabs/tab.component.mjs +14 -5
  129. package/esm2022/tabs/tabs-animations.mjs +2 -2
  130. package/esm2022/tags/tag-input.mjs +3 -3
  131. package/esm2022/tags/tag-list.component.mjs +5 -5
  132. package/esm2022/tags/tag.component.mjs +10 -10
  133. package/esm2022/timepicker/timepicker.directive.mjs +10 -10
  134. package/esm2022/timezone/timezone-option.component.mjs +3 -3
  135. package/esm2022/timezone/timezone-select.component.mjs +5 -5
  136. package/esm2022/title/title.directive.mjs +5 -5
  137. package/esm2022/toast/toast.module.mjs +10 -4
  138. package/esm2022/toggle/toggle.component.mjs +3 -3
  139. package/esm2022/tooltip/tooltip.component.mjs +16 -16
  140. package/esm2022/tree/node.mjs +5 -5
  141. package/esm2022/tree/outlet.mjs +3 -3
  142. package/esm2022/tree/padding.directive.mjs +6 -6
  143. package/esm2022/tree/toggle.mjs +8 -8
  144. package/esm2022/tree/tree-base.mjs +3 -3
  145. package/esm2022/tree/tree-option.component.mjs +8 -5
  146. package/esm2022/tree/tree-selection.component.mjs +8 -6
  147. package/esm2022/tree/tree.mjs +3 -3
  148. package/esm2022/tree-select/tree-select.component.mjs +13 -13
  149. package/fesm2022/koobiq-components-alert.mjs +2 -2
  150. package/fesm2022/koobiq-components-alert.mjs.map +1 -1
  151. package/fesm2022/koobiq-components-autocomplete.mjs +24 -21
  152. package/fesm2022/koobiq-components-autocomplete.mjs.map +1 -1
  153. package/fesm2022/koobiq-components-button-toggle.mjs +7 -7
  154. package/fesm2022/koobiq-components-button-toggle.mjs.map +1 -1
  155. package/fesm2022/koobiq-components-checkbox.mjs +2 -2
  156. package/fesm2022/koobiq-components-checkbox.mjs.map +1 -1
  157. package/fesm2022/koobiq-components-code-block.mjs +3 -3
  158. package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
  159. package/fesm2022/koobiq-components-core.mjs +526 -39
  160. package/fesm2022/koobiq-components-core.mjs.map +1 -1
  161. package/fesm2022/koobiq-components-datepicker.mjs +66 -74
  162. package/fesm2022/koobiq-components-datepicker.mjs.map +1 -1
  163. package/fesm2022/koobiq-components-dl.mjs +2 -6
  164. package/fesm2022/koobiq-components-dl.mjs.map +1 -1
  165. package/fesm2022/koobiq-components-dropdown.mjs +28 -28
  166. package/fesm2022/koobiq-components-dropdown.mjs.map +1 -1
  167. package/fesm2022/koobiq-components-file-upload.mjs +23 -15
  168. package/fesm2022/koobiq-components-file-upload.mjs.map +1 -1
  169. package/fesm2022/koobiq-components-form-field.mjs +46 -34
  170. package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
  171. package/fesm2022/koobiq-components-input.mjs +257 -43
  172. package/fesm2022/koobiq-components-input.mjs.map +1 -1
  173. package/fesm2022/koobiq-components-link.mjs +2 -2
  174. package/fesm2022/koobiq-components-link.mjs.map +1 -1
  175. package/fesm2022/koobiq-components-list.mjs +5 -5
  176. package/fesm2022/koobiq-components-list.mjs.map +1 -1
  177. package/fesm2022/koobiq-components-loader-overlay.mjs +2 -2
  178. package/fesm2022/koobiq-components-loader-overlay.mjs.map +1 -1
  179. package/fesm2022/koobiq-components-modal.mjs +149 -140
  180. package/fesm2022/koobiq-components-modal.mjs.map +1 -1
  181. package/fesm2022/koobiq-components-navbar.mjs +28 -20
  182. package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
  183. package/fesm2022/koobiq-components-popover.mjs +30 -30
  184. package/fesm2022/koobiq-components-popover.mjs.map +1 -1
  185. package/fesm2022/koobiq-components-radio.mjs +9 -7
  186. package/fesm2022/koobiq-components-radio.mjs.map +1 -1
  187. package/fesm2022/koobiq-components-select.mjs +31 -16
  188. package/fesm2022/koobiq-components-select.mjs.map +1 -1
  189. package/fesm2022/koobiq-components-sidebar.mjs +8 -8
  190. package/fesm2022/koobiq-components-sidebar.mjs.map +1 -1
  191. package/fesm2022/koobiq-components-sidepanel.mjs +1 -1
  192. package/fesm2022/koobiq-components-sidepanel.mjs.map +1 -1
  193. package/fesm2022/koobiq-components-splitter.mjs +2 -2
  194. package/fesm2022/koobiq-components-splitter.mjs.map +1 -1
  195. package/fesm2022/koobiq-components-table.mjs +2 -2
  196. package/fesm2022/koobiq-components-table.mjs.map +1 -1
  197. package/fesm2022/koobiq-components-tabs.mjs +29 -20
  198. package/fesm2022/koobiq-components-tabs.mjs.map +1 -1
  199. package/fesm2022/koobiq-components-tags.mjs +15 -15
  200. package/fesm2022/koobiq-components-tags.mjs.map +1 -1
  201. package/fesm2022/koobiq-components-timepicker.mjs +9 -9
  202. package/fesm2022/koobiq-components-timepicker.mjs.map +1 -1
  203. package/fesm2022/koobiq-components-timezone.mjs +6 -6
  204. package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
  205. package/fesm2022/koobiq-components-title.mjs +4 -4
  206. package/fesm2022/koobiq-components-title.mjs.map +1 -1
  207. package/fesm2022/koobiq-components-toast.mjs +8 -2
  208. package/fesm2022/koobiq-components-toast.mjs.map +1 -1
  209. package/fesm2022/koobiq-components-toggle.mjs +2 -2
  210. package/fesm2022/koobiq-components-toggle.mjs.map +1 -1
  211. package/fesm2022/koobiq-components-tooltip.mjs +15 -15
  212. package/fesm2022/koobiq-components-tooltip.mjs.map +1 -1
  213. package/fesm2022/koobiq-components-tree-select.mjs +12 -12
  214. package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
  215. package/fesm2022/koobiq-components-tree.mjs +36 -31
  216. package/fesm2022/koobiq-components-tree.mjs.map +1 -1
  217. package/file-upload/file-drop.d.ts +1 -1
  218. package/file-upload/multiple-file-upload.component.d.ts +4 -3
  219. package/file-upload/single-file-upload.component.d.ts +4 -3
  220. package/form-field/_hint-theme.scss +1 -1
  221. package/form-field/cleaner.d.ts +1 -1
  222. package/form-field/form-field.d.ts +2 -2
  223. package/form-field/form-field.scss +2 -2
  224. package/form-field/hint.d.ts +1 -1
  225. package/form-field/password-hint.d.ts +2 -1
  226. package/form-field/password-toggle.d.ts +11 -6
  227. package/form-field/suffix.d.ts +1 -1
  228. package/form-field/validate.directive.d.ts +1 -1
  229. package/icon/_icon-theme.scss +2 -1
  230. package/input/input-number.d.ts +61 -10
  231. package/link/_link-theme.scss +4 -0
  232. package/link/link.component.d.ts +1 -1
  233. package/list/list-selection.component.d.ts +1 -1
  234. package/loader-overlay/loader-overlay.scss +3 -0
  235. package/modal/README.md +5 -5
  236. package/modal/modal-ref.class.d.ts +2 -2
  237. package/modal/modal.component.d.ts +51 -47
  238. package/modal/modal.type.d.ts +35 -36
  239. package/navbar/navbar-item.component.d.ts +2 -2
  240. package/navbar/navbar.component.d.ts +5 -2
  241. package/navbar/vertical-navbar.component.d.ts +4 -2
  242. package/package.json +9 -11
  243. package/popover/README.md +14 -14
  244. package/popover/_popover-theme.scss +11 -11
  245. package/popover/popover-animations.d.ts +1 -1
  246. package/popover/popover-confirm.component.d.ts +1 -1
  247. package/popover/popover.component.d.ts +3 -3
  248. package/prebuilt-themes/dark-theme.css +1 -1
  249. package/prebuilt-themes/light-theme.css +1 -1
  250. package/radio/_radio-theme.scss +15 -2
  251. package/radio/radio.component.d.ts +2 -2
  252. package/radio/radio.scss +13 -0
  253. package/select/select.component.d.ts +14 -11
  254. package/sidebar/sidebar-animations.d.ts +1 -1
  255. package/sidebar/sidebar.component.d.ts +3 -3
  256. package/splitter/splitter.component.d.ts +1 -1
  257. package/table/table.component.d.ts +1 -1
  258. package/tabs/tab-body.component.d.ts +1 -1
  259. package/tabs/tab-content.directive.d.ts +1 -1
  260. package/tabs/tab-nav-bar/tab-nav-bar.d.ts +2 -2
  261. package/tabs/tab.component.d.ts +1 -1
  262. package/tabs/tabs-animations.d.ts +1 -1
  263. package/tags/_tag-theme.scss +1 -1
  264. package/tags/tag-input.d.ts +2 -2
  265. package/tags/tag-list.component.d.ts +2 -2
  266. package/tags/tag-list.scss +2 -0
  267. package/tags/tag.component.d.ts +3 -3
  268. package/timepicker/timepicker.directive.d.ts +2 -2
  269. package/timezone/timezone-option.component.d.ts +1 -1
  270. package/timezone/timezone-select.component.d.ts +1 -1
  271. package/title/title.directive.d.ts +1 -1
  272. package/toggle/toggle.component.d.ts +1 -1
  273. package/tooltip/tooltip.component.d.ts +3 -3
  274. package/tree/node.d.ts +1 -1
  275. package/tree/outlet.d.ts +1 -1
  276. package/tree/padding.directive.d.ts +1 -1
  277. package/tree/toggle.d.ts +3 -3
  278. package/tree/tree-base.d.ts +1 -1
  279. package/tree/tree-option.component.d.ts +1 -1
  280. package/tree/tree-option.scss +2 -0
  281. package/tree/tree-selection.component.d.ts +1 -1
  282. package/tree/tree.d.ts +1 -1
  283. package/tree-select/tree-select.component.d.ts +1 -1
@@ -1,9 +1,9 @@
1
1
  import * as i1$1 from '@angular/common';
2
2
  import { CommonModule } from '@angular/common';
3
3
  import * as i0 from '@angular/core';
4
- import { Component, ViewEncapsulation, Input, forwardRef, ChangeDetectionStrategy, Optional, Inject, Directive, EventEmitter, Output, ContentChild, ContentChildren, ViewChild, Attribute, Self, NgModule } from '@angular/core';
4
+ import { Component, ViewEncapsulation, Input, forwardRef, ChangeDetectionStrategy, Optional, Inject, ViewChild, Directive, EventEmitter, Output, ContentChild, ContentChildren, Attribute, Self, NgModule } from '@angular/core';
5
5
  import * as i1 from '@koobiq/components/icon';
6
- import { KbqIconModule } from '@koobiq/components/icon';
6
+ import { KbqIconButton, KbqIconModule } from '@koobiq/components/icon';
7
7
  import * as i1$3 from '@angular/cdk/a11y';
8
8
  import { coerceBooleanProperty } from '@angular/cdk/coercion';
9
9
  import * as i1$4 from '@angular/forms';
@@ -18,11 +18,11 @@ import { KbqTooltipTrigger, KBQ_TOOLTIP_SCROLL_STRATEGY } from '@koobiq/componen
18
18
 
19
19
  class KbqCleaner {
20
20
  /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: KbqCleaner, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
21
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.5", type: KbqCleaner, selector: "kbq-cleaner", host: { classAttribute: "kbq-cleaner" }, exportAs: ["mcCleaner"], ngImport: i0, template: `<i kbq-icon-button="mc-close-circle_16" [autoColor]="true"></i>`, isInline: true, styles: [".kbq-cleaner{display:flex;align-items:center;justify-content:center;width:var(--kbq-form-field-size-icon-button-size, 24px);margin-right:var(--kbq-form-field-size-icon-button-margin-right, 4px);height:100%;cursor:pointer}\n"], dependencies: [{ kind: "component", type: i1.KbqIconButton, selector: "[kbq-icon-button]", inputs: ["color", "small", "tabindex", "disabled"] }], encapsulation: i0.ViewEncapsulation.None }); }
21
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.5", type: KbqCleaner, selector: "kbq-cleaner", host: { classAttribute: "kbq-cleaner" }, exportAs: ["kbqCleaner"], ngImport: i0, template: `<i kbq-icon-button="mc-close-circle_16" [autoColor]="true"></i>`, isInline: true, styles: [".kbq-cleaner{display:flex;align-items:center;justify-content:center;width:var(--kbq-form-field-size-icon-button-size, 24px);margin-right:var(--kbq-form-field-size-icon-button-margin-right, 4px);height:100%;cursor:pointer}\n"], dependencies: [{ kind: "component", type: i1.KbqIconButton, selector: "[kbq-icon-button]", inputs: ["color", "small", "tabindex", "disabled"] }], encapsulation: i0.ViewEncapsulation.None }); }
22
22
  }
23
23
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: KbqCleaner, decorators: [{
24
24
  type: Component,
25
- args: [{ selector: 'kbq-cleaner', exportAs: 'mcCleaner', template: `<i kbq-icon-button="mc-close-circle_16" [autoColor]="true"></i>`, host: {
25
+ args: [{ selector: 'kbq-cleaner', exportAs: 'kbqCleaner', template: `<i kbq-icon-button="mc-close-circle_16" [autoColor]="true"></i>`, host: {
26
26
  class: 'kbq-cleaner'
27
27
  }, encapsulation: ViewEncapsulation.None, styles: [".kbq-cleaner{display:flex;align-items:center;justify-content:center;width:var(--kbq-form-field-size-icon-button-size, 24px);margin-right:var(--kbq-form-field-size-icon-button-margin-right, 4px);height:100%;cursor:pointer}\n"] }]
28
28
  }] });
@@ -55,15 +55,15 @@ class KbqHint extends KbqHintMixinBase {
55
55
  this.fillTextOff = false;
56
56
  }
57
57
  /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: KbqHint, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); }
58
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.5", type: KbqHint, selector: "kbq-hint", inputs: { color: "color", id: "id", fillTextOff: "fillTextOff" }, host: { properties: { "attr.id": "id", "class.kbq-hint_fill-text-off": "fillTextOff" }, classAttribute: "kbq-hint" }, exportAs: ["mcHint"], usesInheritance: true, ngImport: i0, template: "<ng-content select=\"[kbq-icon]\"></ng-content>\n\n<span class=\"kbq-hint__text\">\n <ng-content></ng-content>\n</span>\n", styles: [".kbq-hint{display:block}.kbq-hint .kbq-icon{margin-right:var(--kbq-hint-size-content-padding, 4px)}\n"], encapsulation: i0.ViewEncapsulation.None }); }
58
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.5", type: KbqHint, selector: "kbq-hint", inputs: { color: "color", id: "id", fillTextOff: "fillTextOff" }, host: { properties: { "attr.id": "id", "class.kbq-hint_fill-text-off": "fillTextOff" }, classAttribute: "kbq-hint" }, exportAs: ["kbqHint"], usesInheritance: true, ngImport: i0, template: "<ng-content select=\"[kbq-icon]\"></ng-content>\n\n<span class=\"kbq-hint__text\">\n <ng-content></ng-content>\n</span>\n", styles: [".kbq-hint{display:block}.kbq-hint .kbq-icon{margin-right:var(--kbq-hint-size-content-padding, )}\n"], encapsulation: i0.ViewEncapsulation.None }); }
59
59
  }
60
60
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: KbqHint, decorators: [{
61
61
  type: Component,
62
- args: [{ selector: 'kbq-hint', exportAs: 'mcHint', inputs: ['color'], host: {
62
+ args: [{ selector: 'kbq-hint', exportAs: 'kbqHint', inputs: ['color'], host: {
63
63
  class: 'kbq-hint',
64
64
  '[attr.id]': 'id',
65
65
  '[class.kbq-hint_fill-text-off]': 'fillTextOff'
66
- }, encapsulation: ViewEncapsulation.None, template: "<ng-content select=\"[kbq-icon]\"></ng-content>\n\n<span class=\"kbq-hint__text\">\n <ng-content></ng-content>\n</span>\n", styles: [".kbq-hint{display:block}.kbq-hint .kbq-icon{margin-right:var(--kbq-hint-size-content-padding, 4px)}\n"] }]
66
+ }, encapsulation: ViewEncapsulation.None, template: "<ng-content select=\"[kbq-icon]\"></ng-content>\n\n<span class=\"kbq-hint__text\">\n <ng-content></ng-content>\n</span>\n", styles: [".kbq-hint{display:block}.kbq-hint .kbq-icon{margin-right:var(--kbq-hint-size-content-padding, )}\n"] }]
67
67
  }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { id: [{
68
68
  type: Input
69
69
  }], fillTextOff: [{
@@ -116,14 +116,14 @@ class KbqPasswordHint {
116
116
  this.lastControlValue = this.control.value;
117
117
  this.changeDetectorRef.markForCheck();
118
118
  };
119
+ this.checkRegexRule = (value) => {
120
+ return !!this.regex?.test(value);
121
+ };
119
122
  }
120
123
  ngAfterContentInit() {
121
124
  this.formField = this.formField || this.viewFormField;
122
- if (this.rule === null) {
123
- throw Error('You should set [rule] name');
124
- }
125
- if (this.rule === PasswordRules.Custom && this.regex === undefined) {
126
- throw Error('You should set [regex] for PasswordRules.Custom');
125
+ if (this.rule === PasswordRules.Custom && this.regex === undefined && this.customCheckRule === undefined) {
126
+ throw Error('You should set [regex] or [checkRule] for PasswordRules.Custom');
127
127
  }
128
128
  if (this.rule === PasswordRules.Length && (this.min || this.max) === null) {
129
129
  throw Error('For [rule] "Length" need set [min] and [max]');
@@ -140,7 +140,7 @@ class KbqPasswordHint {
140
140
  this.checkRule = this.checkSpecialSymbolsRegexRule;
141
141
  }
142
142
  else if (this.rule === PasswordRules.Custom) {
143
- this.checkRule = this.checkRegexRule;
143
+ this.checkRule = this.regex === undefined ? this.customCheckRule : this.checkRegexRule;
144
144
  }
145
145
  else {
146
146
  throw Error(`Unknown [rule]=${this.rule}`);
@@ -156,9 +156,6 @@ class KbqPasswordHint {
156
156
  checkLengthRule(value) {
157
157
  return value.length >= this.min && value.length <= this.max;
158
158
  }
159
- checkRegexRule(value) {
160
- return !!this.regex?.test(value);
161
- }
162
159
  checkSpecialSymbolsRegexRule(value) {
163
160
  return !!value && !this.regex?.test(value);
164
161
  }
@@ -166,7 +163,7 @@ class KbqPasswordHint {
166
163
  return this.lastControlValue !== this.formField.control.value;
167
164
  }
168
165
  /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: KbqPasswordHint, deps: [{ token: i0.ChangeDetectorRef }, { token: forwardRef(() => KBQ_FORM_FIELD_REF), optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
169
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.5", type: KbqPasswordHint, selector: "kbq-password-hint", inputs: { id: "id", rule: "rule", min: "min", max: "max", regex: "regex", viewFormField: "viewFormField" }, host: { properties: { "class.kbq-password-hint_valid": "checked", "class.kbq-password-hint_invalid": "hasError", "attr.id": "id" }, classAttribute: "kbq-password-hint" }, ngImport: i0, template: `
166
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.5", type: KbqPasswordHint, selector: "kbq-password-hint", inputs: { id: "id", rule: "rule", min: "min", max: "max", regex: "regex", customCheckRule: ["checkRule", "customCheckRule"], viewFormField: "viewFormField" }, host: { properties: { "class.kbq-password-hint_valid": "checked", "class.kbq-password-hint_invalid": "hasError", "attr.id": "id" }, classAttribute: "kbq-password-hint" }, ngImport: i0, template: `
170
167
  <i class="kbq-password-hint__icon"
171
168
  kbq-icon=""
172
169
  [class.kbq-success]="checked"
@@ -213,6 +210,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImpor
213
210
  type: Input
214
211
  }], regex: [{
215
212
  type: Input
213
+ }], customCheckRule: [{
214
+ type: Input,
215
+ args: ['checkRule']
216
216
  }], viewFormField: [{
217
217
  type: Input
218
218
  }] } });
@@ -230,17 +230,26 @@ class KbqPasswordToggle extends KbqTooltipTrigger {
230
230
  get hidden() {
231
231
  return this.formField.control.elementType === 'password';
232
232
  }
233
- get icon() {
233
+ get iconClass() {
234
234
  return this.hidden ? 'mc-eye_16' : 'mc-eye-crossed_16';
235
235
  }
236
236
  get visibility() {
237
237
  return this.disabled && this.formField.control.empty ? 'hidden' : 'visible';
238
238
  }
239
- constructor(overlay, elementRef, ngZone, scrollDispatcher, hostView, scrollStrategy, direction, formField) {
239
+ constructor(overlay, elementRef, ngZone, scrollDispatcher, hostView, scrollStrategy, direction, formField, changeDetector) {
240
240
  super(overlay, elementRef, ngZone, scrollDispatcher, hostView, scrollStrategy, direction);
241
241
  this.formField = formField;
242
+ this.changeDetector = changeDetector;
243
+ this.updateState = () => {
244
+ this.icon.hasError = this.formField.control.errorState;
245
+ this.changeDetector.markForCheck();
246
+ };
242
247
  this.trigger = `${PopUpTriggers.Hover}`;
243
248
  }
249
+ ngAfterViewInit() {
250
+ this.formField.control?.stateChanges
251
+ .subscribe(this.updateState);
252
+ }
244
253
  toggle(event) {
245
254
  this.hide();
246
255
  const input = this.formField.control;
@@ -248,12 +257,12 @@ class KbqPasswordToggle extends KbqTooltipTrigger {
248
257
  this.updateData();
249
258
  event.preventDefault();
250
259
  }
251
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: KbqPasswordToggle, deps: [{ token: i1$2.Overlay }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i1$2.ScrollDispatcher }, { token: i0.ViewContainerRef }, { token: KBQ_TOOLTIP_SCROLL_STRATEGY }, { token: i2.Directionality, optional: true }, { token: forwardRef(() => KBQ_FORM_FIELD_REF) }], target: i0.ɵɵFactoryTarget.Component }); }
252
- /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.5", type: KbqPasswordToggle, selector: "kbq-password-toggle", inputs: { content: ["kbqTooltipNotHidden", "content"], kbqTooltipHidden: "kbqTooltipHidden" }, host: { listeners: { "click": "toggle($event)", "keydown.ENTER": "toggle($event)", "keydown.SPACE": "toggle($event)" }, properties: { "style.visibility": "visibility" }, classAttribute: "kbq-password-toggle" }, exportAs: ["mcPasswordToggle"], usesInheritance: true, ngImport: i0, template: '<i kbq-icon-button="" [ngClass]="icon" [autoColor]="true"></i>', isInline: true, styles: [".kbq-password-toggle{display:flex;align-items:center;justify-content:center;width:var(--kbq-form-field-size-icon-button-size, 24px);margin-right:var(--kbq-form-field-size-icon-button-margin-right, 4px);height:100%}.kbq-password-toggle::-moz-focus-inner{border:0}.kbq-password-toggle:focus{outline:none}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i1.KbqIconButton, selector: "[kbq-icon-button]", inputs: ["color", "small", "tabindex", "disabled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
260
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: KbqPasswordToggle, deps: [{ token: i1$2.Overlay }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i1$2.ScrollDispatcher }, { token: i0.ViewContainerRef }, { token: KBQ_TOOLTIP_SCROLL_STRATEGY }, { token: i2.Directionality, optional: true }, { token: forwardRef(() => KBQ_FORM_FIELD_REF) }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
261
+ /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.5", type: KbqPasswordToggle, selector: "kbq-password-toggle", inputs: { content: ["kbqTooltipNotHidden", "content"], kbqTooltipHidden: "kbqTooltipHidden" }, host: { listeners: { "click": "toggle($event)", "keydown.ENTER": "toggle($event)", "keydown.SPACE": "toggle($event)" }, properties: { "style.visibility": "visibility" }, classAttribute: "kbq-password-toggle" }, viewQueries: [{ propertyName: "icon", first: true, predicate: KbqIconButton, descendants: true }], exportAs: ["kbqPasswordToggle"], usesInheritance: true, ngImport: i0, template: '<i kbq-icon-button="" [ngClass]="iconClass"></i>', isInline: true, styles: [".kbq-password-toggle{display:flex;align-items:center;justify-content:center;width:var(--kbq-form-field-size-icon-button-size, 24px);margin-right:var(--kbq-form-field-size-icon-button-margin-right, 4px);height:100%}.kbq-password-toggle::-moz-focus-inner{border:0}.kbq-password-toggle:focus{outline:none}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i1.KbqIconButton, selector: "[kbq-icon-button]", inputs: ["color", "small", "tabindex", "disabled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
253
262
  }
254
263
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: KbqPasswordToggle, decorators: [{
255
264
  type: Component,
256
- args: [{ selector: `kbq-password-toggle`, exportAs: 'mcPasswordToggle', template: '<i kbq-icon-button="" [ngClass]="icon" [autoColor]="true"></i>', host: {
265
+ args: [{ selector: `kbq-password-toggle`, exportAs: 'kbqPasswordToggle', template: '<i kbq-icon-button="" [ngClass]="iconClass"></i>', host: {
257
266
  class: 'kbq-password-toggle',
258
267
  '[style.visibility]': 'visibility',
259
268
  '(click)': 'toggle($event)',
@@ -268,7 +277,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImpor
268
277
  }] }, { type: undefined, decorators: [{
269
278
  type: Inject,
270
279
  args: [forwardRef(() => KBQ_FORM_FIELD_REF)]
271
- }] }]; }, propDecorators: { content: [{
280
+ }] }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { icon: [{
281
+ type: ViewChild,
282
+ args: [KbqIconButton]
283
+ }], content: [{
272
284
  type: Input,
273
285
  args: ['kbqTooltipNotHidden']
274
286
  }], kbqTooltipHidden: [{
@@ -356,12 +368,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImpor
356
368
 
357
369
  class KbqSuffix {
358
370
  /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: KbqSuffix, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
359
- /** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.5", type: KbqSuffix, selector: "[mcSuffix]", ngImport: i0 }); }
371
+ /** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.5", type: KbqSuffix, selector: "[kbqSuffix]", ngImport: i0 }); }
360
372
  }
361
373
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: KbqSuffix, decorators: [{
362
374
  type: Directive,
363
375
  args: [{
364
- selector: '[mcSuffix]'
376
+ selector: '[kbqSuffix]'
365
377
  }]
366
378
  }] });
367
379
 
@@ -512,11 +524,11 @@ class KbqFormField extends KbqFormFieldMixinBase {
512
524
  /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: KbqFormField, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1$3.FocusMonitor }], target: i0.ɵɵFactoryTarget.Component }); }
513
525
  /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.5", type: KbqFormField, selector: "kbq-form-field", inputs: { color: "color" }, host: { listeners: { "keydown": "onKeyDown($event)", "mouseenter": "onHoverChanged(true)", "mouseleave": "onHoverChanged(false)" }, properties: { "class.kbq-form-field_invalid": "control.errorState", "class.kbq-form-field_has-prefix": "hasPrefix", "class.kbq-form-field_has-suffix": "hasSuffix", "class.kbq-form-field_has-password-toggle": "hasPasswordToggle", "class.kbq-form-field_has-cleaner": "canShowCleaner", "class.kbq-form-field_has-stepper": "canShowStepper", "class.kbq-disabled": "control.disabled", "class.ng-untouched": "shouldForward(\"untouched\")", "class.ng-touched": "shouldForward(\"touched\")", "class.ng-pristine": "shouldForward(\"pristine\")", "class.ng-dirty": "shouldForward(\"dirty\")", "class.ng-valid": "shouldForward(\"valid\")", "class.ng-invalid": "shouldForward(\"invalid\")", "class.ng-pending": "shouldForward(\"pending\")" }, classAttribute: "kbq-form-field" }, providers: [
514
526
  { provide: KBQ_FORM_FIELD_REF, useExisting: KbqFormField }
515
- ], queries: [{ propertyName: "control", first: true, predicate: KbqFormFieldControl, descendants: true }, { propertyName: "stepper", first: true, predicate: KbqStepper, descendants: true }, { propertyName: "cleaner", first: true, predicate: KbqCleaner, descendants: true }, { propertyName: "passwordToggle", first: true, predicate: KbqPasswordToggle, descendants: true }, { propertyName: "hint", predicate: KbqHint }, { propertyName: "passwordHints", predicate: KbqPasswordHint }, { propertyName: "suffix", predicate: KbqSuffix }, { propertyName: "prefix", predicate: KbqPrefix }], viewQueries: [{ propertyName: "connectionContainerRef", first: true, predicate: ["connectionContainer"], descendants: true, static: true }], exportAs: ["mcFormField"], usesInheritance: true, ngImport: i0, template: "<div class=\"kbq-form-field__container\" (click)=\"onContainerClick($event)\">\n\n <div class=\"kbq-form-field__prefix\" *ngIf=\"hasPrefix\">\n <ng-content select=\"[kbqPrefix]\"></ng-content>\n </div>\n\n <div class=\"kbq-form-field__infix\">\n <ng-content></ng-content>\n </div>\n\n <div class=\"kbq-form-field__suffix\" *ngIf=\"hasSuffix\">\n <ng-content select=\"[mcSuffix]\"></ng-content>\n </div>\n\n <div class=\"kbq-form-field__cleaner\"\n *ngIf=\"canShowCleaner && !hasSuffix\"\n (click)=\"clearValue($event)\">\n <ng-content select=\"kbq-cleaner\"></ng-content>\n </div>\n\n <ng-content select=\"kbq-password-toggle\"></ng-content>\n\n <ng-content *ngIf=\"canShowStepper\" select=\"kbq-stepper\"></ng-content>\n</div>\n\n<div class=\"kbq-form-field__hint\" *ngIf=\"hasHint || passwordHints.length\">\n <ng-content select=\"kbq-hint, kbq-password-hint\"></ng-content>\n</div>\n", styles: [".kbq-form-field{position:relative;display:inline-block;width:100%}.kbq-form-field .kbq-form-field__container{box-sizing:border-box}.kbq-form-field .kbq-form-field:not(.kbq-form-field-type-textarea){height:var(--kbq-form-field-size-height, 32px)}.kbq-form-field,.kbq-form-field .kbq-input,.kbq-form-field .kbq-textarea{border-radius:var(--kbq-form-field-size-border-radius, 8px)}.kbq-form-field:hover{z-index:1}.kbq-form-field.kbq-focused{z-index:2}.kbq-form-field.kbq-form-field_without-borders .kbq-form-field__container{border-color:transparent;box-shadow:none}.kbq-form-field.kbq-form-field_has-prefix .kbq-input{padding-left:calc(var(--kbq-form-field-size-icon-size, 16px) + var(--kbq-form-field-size-icon-margin-left, 8px) + var(--kbq-form-field-size-icon-margin-right, 8px))}.kbq-form-field.kbq-form-field_has-password-toggle .kbq-input,.kbq-form-field.kbq-form-field_has-cleaner .kbq-input,.kbq-form-field.kbq-form-field_has-stepper .kbq-input,.kbq-form-field.kbq-form-field_has-suffix .kbq-input{padding-right:calc(var(--kbq-form-field-size-icon-button-size, 24px) + var(--kbq-form-field-size-icon-button-margin-left, 4px) + var(--kbq-form-field-size-icon-button-margin-right, 4px))}.kbq-form-field__container{position:relative;border-width:var(--kbq-form-field-size-border-width, 1px);border-style:solid;border-color:transparent;border-radius:var(--kbq-form-field-size-border-radius, 8px)}.kbq-form-field__prefix,.kbq-form-field__suffix{position:absolute;top:0;bottom:0;width:32px;display:flex;flex-direction:row;justify-content:center;align-items:center}.kbq-form-field__prefix{left:0}.kbq-form-field__suffix{right:0}.kbq-form-field__cleaner,.kbq-password-toggle,.kbq-stepper{position:absolute;top:0;bottom:0;right:0}.kbq-stepper{display:flex;flex-direction:column;justify-content:center;align-items:center;width:var(--kbq-form-field-size-button-width, )}.kbq-stepper .kbq-stepper-step-up,.kbq-stepper .kbq-stepper-step-down{cursor:pointer;width:var(--kbq-form-field-size-button-width, );text-align:center}.kbq-stepper .kbq-stepper-step-up{transform:scaleY(-1)}.kbq-form-field__hint{display:flex;flex-direction:column;margin-top:var(--kbq-form-field-hint-size-margin-top, 4px);gap:var(--kbq-form-field-hint-size-gap, 8px)}\n", ".kbq-input{background:transparent;padding:0;margin:0;border:none;outline:none;display:inline-block;box-sizing:border-box;text-overflow:ellipsis;width:100%;min-height:calc(var(--kbq-form-field-size-height, 32px) - var(--kbq-form-field-size-border-width, 1px) * 2);padding:calc(var(--kbq-input-size-padding-vertical, 4px) - var(--kbq-form-field-size-border-width, 1px)) var(--kbq-input-size-padding-horizontal, 12px)}.kbq-input::-ms-clear{display:none;width:0;height:0}.kbq-input::-ms-reveal{display:none;width:0;height:0}.kbq-input::-webkit-search-decoration,.kbq-input::-webkit-search-cancel-button,.kbq-input::-webkit-search-results-button,.kbq-input::-webkit-search-results-decoration{display:none}input.kbq-input[type=number]{-moz-appearance:textfield}input.kbq-input[type=number]::-webkit-inner-spin-button,input.kbq-input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none}input.kbq-input:invalid{box-shadow:unset}input.kbq-input::placeholder{opacity:1}\n", ".kbq-timepicker{padding-right:calc(var(--kbq-timepicker-size-padding-right, 16px) - var(--kbq-form-field-size-border-width, 1px))}.kbq-form-field-type-timepicker{width:auto}\n", ".kbq-form-field-type-datepicker{width:auto}.kbq-datepicker{width:var(--kbq-datepicker-input-size-width, 130px)}\n", ".kbq-textarea{display:inline-block;background:transparent;margin:0;border:none;outline:none;resize:none;overflow:auto;width:100%;box-sizing:border-box;padding:var(--kbq-textarea-size-padding-vertical, 8px) var(--kbq-textarea-size-padding-horizontal, 12px);-webkit-appearance:none;vertical-align:bottom}.kbq-textarea:not(.kbq-textarea-resizable){box-sizing:border-box;overflow-y:hidden}.kbq-textarea.kbq-textarea-resizable{resize:vertical;min-height:var(--kbq-textarea-size-min-height, 64px)}.kbq-textarea:invalid{box-shadow:unset}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
527
+ ], queries: [{ propertyName: "control", first: true, predicate: KbqFormFieldControl, descendants: true }, { propertyName: "stepper", first: true, predicate: KbqStepper, descendants: true }, { propertyName: "cleaner", first: true, predicate: KbqCleaner, descendants: true }, { propertyName: "passwordToggle", first: true, predicate: KbqPasswordToggle, descendants: true }, { propertyName: "hint", predicate: KbqHint }, { propertyName: "passwordHints", predicate: KbqPasswordHint }, { propertyName: "suffix", predicate: KbqSuffix }, { propertyName: "prefix", predicate: KbqPrefix }], viewQueries: [{ propertyName: "connectionContainerRef", first: true, predicate: ["connectionContainer"], descendants: true, static: true }], exportAs: ["kbqFormField"], usesInheritance: true, ngImport: i0, template: "<div class=\"kbq-form-field__container\" (click)=\"onContainerClick($event)\" #connectionContainer>\n\n <div class=\"kbq-form-field__prefix\" *ngIf=\"hasPrefix\">\n <ng-content select=\"[kbqPrefix]\"></ng-content>\n </div>\n\n <div class=\"kbq-form-field__infix\">\n <ng-content></ng-content>\n </div>\n\n <div class=\"kbq-form-field__suffix\" *ngIf=\"hasSuffix\">\n <ng-content select=\"[kbqSuffix]\"></ng-content>\n </div>\n\n <div class=\"kbq-form-field__cleaner\"\n *ngIf=\"canShowCleaner && !hasSuffix\"\n (click)=\"clearValue($event)\">\n <ng-content select=\"kbq-cleaner\"></ng-content>\n </div>\n\n <ng-content select=\"kbq-password-toggle\"></ng-content>\n\n <ng-content *ngIf=\"canShowStepper\" select=\"kbq-stepper\"></ng-content>\n</div>\n\n<div class=\"kbq-form-field__hint\" *ngIf=\"hasHint || passwordHints.length\">\n <ng-content select=\"kbq-hint, kbq-password-hint\"></ng-content>\n</div>\n", styles: [".kbq-form-field{position:relative;display:inline-block;width:100%}.kbq-form-field .kbq-form-field__container{box-sizing:border-box}.kbq-form-field .kbq-form-field:not(.kbq-form-field-type-textarea){height:var(--kbq-form-field-size-height, 32px)}.kbq-form-field,.kbq-form-field .kbq-input,.kbq-form-field .kbq-textarea{border-radius:var(--kbq-form-field-size-border-radius, 8px)}.kbq-form-field:hover{z-index:1}.kbq-form-field.kbq-focused{z-index:2}.kbq-form-field.kbq-form-field_without-borders .kbq-form-field__container{border-color:transparent!important;box-shadow:none!important}.kbq-form-field.kbq-form-field_has-prefix .kbq-input{padding-left:calc(var(--kbq-form-field-size-icon-size, 16px) + var(--kbq-form-field-size-icon-margin-left, 8px) + var(--kbq-form-field-size-icon-margin-right, 8px))}.kbq-form-field.kbq-form-field_has-password-toggle .kbq-input,.kbq-form-field.kbq-form-field_has-cleaner .kbq-input,.kbq-form-field.kbq-form-field_has-stepper .kbq-input,.kbq-form-field.kbq-form-field_has-suffix .kbq-input{padding-right:calc(var(--kbq-form-field-size-icon-button-size, 24px) + var(--kbq-form-field-size-icon-button-margin-left, 4px) + var(--kbq-form-field-size-icon-button-margin-right, 4px))}.kbq-form-field__container{position:relative;border-width:var(--kbq-form-field-size-border-width, 1px);border-style:solid;border-color:transparent;border-radius:var(--kbq-form-field-size-border-radius, 8px)}.kbq-form-field__prefix,.kbq-form-field__suffix{position:absolute;top:0;bottom:0;width:32px;display:flex;flex-direction:row;justify-content:center;align-items:center}.kbq-form-field__prefix{left:0}.kbq-form-field__suffix{right:0}.kbq-form-field__cleaner,.kbq-password-toggle,.kbq-stepper{position:absolute;top:0;bottom:0;right:0}.kbq-stepper{display:flex;flex-direction:column;justify-content:center;align-items:center;width:var(--kbq-form-field-size-button-width, )}.kbq-stepper .kbq-stepper-step-up,.kbq-stepper .kbq-stepper-step-down{cursor:pointer;width:var(--kbq-form-field-size-button-width, );text-align:center}.kbq-stepper .kbq-stepper-step-up{transform:scaleY(-1)}.kbq-form-field__hint{display:flex;flex-direction:column;margin-top:var(--kbq-form-field-hint-size-margin-top, 4px);gap:var(--kbq-form-field-hint-size-gap, 8px)}\n", ".kbq-input{background:transparent;padding:0;margin:0;border:none;outline:none;display:inline-block;box-sizing:border-box;text-overflow:ellipsis;width:100%;min-height:calc(var(--kbq-form-field-size-height, 32px) - var(--kbq-form-field-size-border-width, 1px) * 2);padding:calc(var(--kbq-input-size-padding-vertical, 4px) - var(--kbq-form-field-size-border-width, 1px)) var(--kbq-input-size-padding-horizontal, 12px)}.kbq-input::-ms-clear{display:none;width:0;height:0}.kbq-input::-ms-reveal{display:none;width:0;height:0}.kbq-input::-webkit-search-decoration,.kbq-input::-webkit-search-cancel-button,.kbq-input::-webkit-search-results-button,.kbq-input::-webkit-search-results-decoration{display:none}input.kbq-input[type=number]{-moz-appearance:textfield}input.kbq-input[type=number]::-webkit-inner-spin-button,input.kbq-input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none}input.kbq-input:invalid{box-shadow:unset}input.kbq-input::placeholder{opacity:1}\n", ".kbq-timepicker{padding-right:calc(var(--kbq-timepicker-size-padding-right, 16px) - var(--kbq-form-field-size-border-width, 1px))}.kbq-form-field-type-timepicker{width:auto}\n", ".kbq-form-field-type-datepicker{width:auto}.kbq-datepicker{width:var(--kbq-datepicker-input-size-width, 130px)}\n", ".kbq-textarea{display:inline-block;background:transparent;margin:0;border:none;outline:none;resize:none;overflow:auto;width:100%;box-sizing:border-box;padding:var(--kbq-textarea-size-padding-vertical, 8px) var(--kbq-textarea-size-padding-horizontal, 12px);-webkit-appearance:none;vertical-align:bottom}.kbq-textarea:not(.kbq-textarea-resizable){box-sizing:border-box;overflow-y:hidden}.kbq-textarea.kbq-textarea-resizable{resize:vertical;min-height:var(--kbq-textarea-size-min-height, 64px)}.kbq-textarea:invalid{box-shadow:unset}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
516
528
  }
517
529
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: KbqFormField, decorators: [{
518
530
  type: Component,
519
- args: [{ selector: 'kbq-form-field', exportAs: 'mcFormField', host: {
531
+ args: [{ selector: 'kbq-form-field', exportAs: 'kbqFormField', host: {
520
532
  class: 'kbq-form-field',
521
533
  '[class.kbq-form-field_invalid]': 'control.errorState',
522
534
  '[class.kbq-form-field_has-prefix]': 'hasPrefix',
@@ -537,7 +549,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImpor
537
549
  '(mouseleave)': 'onHoverChanged(false)'
538
550
  }, inputs: ['color'], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
539
551
  { provide: KBQ_FORM_FIELD_REF, useExisting: KbqFormField }
540
- ], template: "<div class=\"kbq-form-field__container\" (click)=\"onContainerClick($event)\">\n\n <div class=\"kbq-form-field__prefix\" *ngIf=\"hasPrefix\">\n <ng-content select=\"[kbqPrefix]\"></ng-content>\n </div>\n\n <div class=\"kbq-form-field__infix\">\n <ng-content></ng-content>\n </div>\n\n <div class=\"kbq-form-field__suffix\" *ngIf=\"hasSuffix\">\n <ng-content select=\"[mcSuffix]\"></ng-content>\n </div>\n\n <div class=\"kbq-form-field__cleaner\"\n *ngIf=\"canShowCleaner && !hasSuffix\"\n (click)=\"clearValue($event)\">\n <ng-content select=\"kbq-cleaner\"></ng-content>\n </div>\n\n <ng-content select=\"kbq-password-toggle\"></ng-content>\n\n <ng-content *ngIf=\"canShowStepper\" select=\"kbq-stepper\"></ng-content>\n</div>\n\n<div class=\"kbq-form-field__hint\" *ngIf=\"hasHint || passwordHints.length\">\n <ng-content select=\"kbq-hint, kbq-password-hint\"></ng-content>\n</div>\n", styles: [".kbq-form-field{position:relative;display:inline-block;width:100%}.kbq-form-field .kbq-form-field__container{box-sizing:border-box}.kbq-form-field .kbq-form-field:not(.kbq-form-field-type-textarea){height:var(--kbq-form-field-size-height, 32px)}.kbq-form-field,.kbq-form-field .kbq-input,.kbq-form-field .kbq-textarea{border-radius:var(--kbq-form-field-size-border-radius, 8px)}.kbq-form-field:hover{z-index:1}.kbq-form-field.kbq-focused{z-index:2}.kbq-form-field.kbq-form-field_without-borders .kbq-form-field__container{border-color:transparent;box-shadow:none}.kbq-form-field.kbq-form-field_has-prefix .kbq-input{padding-left:calc(var(--kbq-form-field-size-icon-size, 16px) + var(--kbq-form-field-size-icon-margin-left, 8px) + var(--kbq-form-field-size-icon-margin-right, 8px))}.kbq-form-field.kbq-form-field_has-password-toggle .kbq-input,.kbq-form-field.kbq-form-field_has-cleaner .kbq-input,.kbq-form-field.kbq-form-field_has-stepper .kbq-input,.kbq-form-field.kbq-form-field_has-suffix .kbq-input{padding-right:calc(var(--kbq-form-field-size-icon-button-size, 24px) + var(--kbq-form-field-size-icon-button-margin-left, 4px) + var(--kbq-form-field-size-icon-button-margin-right, 4px))}.kbq-form-field__container{position:relative;border-width:var(--kbq-form-field-size-border-width, 1px);border-style:solid;border-color:transparent;border-radius:var(--kbq-form-field-size-border-radius, 8px)}.kbq-form-field__prefix,.kbq-form-field__suffix{position:absolute;top:0;bottom:0;width:32px;display:flex;flex-direction:row;justify-content:center;align-items:center}.kbq-form-field__prefix{left:0}.kbq-form-field__suffix{right:0}.kbq-form-field__cleaner,.kbq-password-toggle,.kbq-stepper{position:absolute;top:0;bottom:0;right:0}.kbq-stepper{display:flex;flex-direction:column;justify-content:center;align-items:center;width:var(--kbq-form-field-size-button-width, )}.kbq-stepper .kbq-stepper-step-up,.kbq-stepper .kbq-stepper-step-down{cursor:pointer;width:var(--kbq-form-field-size-button-width, );text-align:center}.kbq-stepper .kbq-stepper-step-up{transform:scaleY(-1)}.kbq-form-field__hint{display:flex;flex-direction:column;margin-top:var(--kbq-form-field-hint-size-margin-top, 4px);gap:var(--kbq-form-field-hint-size-gap, 8px)}\n", ".kbq-input{background:transparent;padding:0;margin:0;border:none;outline:none;display:inline-block;box-sizing:border-box;text-overflow:ellipsis;width:100%;min-height:calc(var(--kbq-form-field-size-height, 32px) - var(--kbq-form-field-size-border-width, 1px) * 2);padding:calc(var(--kbq-input-size-padding-vertical, 4px) - var(--kbq-form-field-size-border-width, 1px)) var(--kbq-input-size-padding-horizontal, 12px)}.kbq-input::-ms-clear{display:none;width:0;height:0}.kbq-input::-ms-reveal{display:none;width:0;height:0}.kbq-input::-webkit-search-decoration,.kbq-input::-webkit-search-cancel-button,.kbq-input::-webkit-search-results-button,.kbq-input::-webkit-search-results-decoration{display:none}input.kbq-input[type=number]{-moz-appearance:textfield}input.kbq-input[type=number]::-webkit-inner-spin-button,input.kbq-input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none}input.kbq-input:invalid{box-shadow:unset}input.kbq-input::placeholder{opacity:1}\n", ".kbq-timepicker{padding-right:calc(var(--kbq-timepicker-size-padding-right, 16px) - var(--kbq-form-field-size-border-width, 1px))}.kbq-form-field-type-timepicker{width:auto}\n", ".kbq-form-field-type-datepicker{width:auto}.kbq-datepicker{width:var(--kbq-datepicker-input-size-width, 130px)}\n", ".kbq-textarea{display:inline-block;background:transparent;margin:0;border:none;outline:none;resize:none;overflow:auto;width:100%;box-sizing:border-box;padding:var(--kbq-textarea-size-padding-vertical, 8px) var(--kbq-textarea-size-padding-horizontal, 12px);-webkit-appearance:none;vertical-align:bottom}.kbq-textarea:not(.kbq-textarea-resizable){box-sizing:border-box;overflow-y:hidden}.kbq-textarea.kbq-textarea-resizable{resize:vertical;min-height:var(--kbq-textarea-size-min-height, 64px)}.kbq-textarea:invalid{box-shadow:unset}\n"] }]
552
+ ], template: "<div class=\"kbq-form-field__container\" (click)=\"onContainerClick($event)\" #connectionContainer>\n\n <div class=\"kbq-form-field__prefix\" *ngIf=\"hasPrefix\">\n <ng-content select=\"[kbqPrefix]\"></ng-content>\n </div>\n\n <div class=\"kbq-form-field__infix\">\n <ng-content></ng-content>\n </div>\n\n <div class=\"kbq-form-field__suffix\" *ngIf=\"hasSuffix\">\n <ng-content select=\"[kbqSuffix]\"></ng-content>\n </div>\n\n <div class=\"kbq-form-field__cleaner\"\n *ngIf=\"canShowCleaner && !hasSuffix\"\n (click)=\"clearValue($event)\">\n <ng-content select=\"kbq-cleaner\"></ng-content>\n </div>\n\n <ng-content select=\"kbq-password-toggle\"></ng-content>\n\n <ng-content *ngIf=\"canShowStepper\" select=\"kbq-stepper\"></ng-content>\n</div>\n\n<div class=\"kbq-form-field__hint\" *ngIf=\"hasHint || passwordHints.length\">\n <ng-content select=\"kbq-hint, kbq-password-hint\"></ng-content>\n</div>\n", styles: [".kbq-form-field{position:relative;display:inline-block;width:100%}.kbq-form-field .kbq-form-field__container{box-sizing:border-box}.kbq-form-field .kbq-form-field:not(.kbq-form-field-type-textarea){height:var(--kbq-form-field-size-height, 32px)}.kbq-form-field,.kbq-form-field .kbq-input,.kbq-form-field .kbq-textarea{border-radius:var(--kbq-form-field-size-border-radius, 8px)}.kbq-form-field:hover{z-index:1}.kbq-form-field.kbq-focused{z-index:2}.kbq-form-field.kbq-form-field_without-borders .kbq-form-field__container{border-color:transparent!important;box-shadow:none!important}.kbq-form-field.kbq-form-field_has-prefix .kbq-input{padding-left:calc(var(--kbq-form-field-size-icon-size, 16px) + var(--kbq-form-field-size-icon-margin-left, 8px) + var(--kbq-form-field-size-icon-margin-right, 8px))}.kbq-form-field.kbq-form-field_has-password-toggle .kbq-input,.kbq-form-field.kbq-form-field_has-cleaner .kbq-input,.kbq-form-field.kbq-form-field_has-stepper .kbq-input,.kbq-form-field.kbq-form-field_has-suffix .kbq-input{padding-right:calc(var(--kbq-form-field-size-icon-button-size, 24px) + var(--kbq-form-field-size-icon-button-margin-left, 4px) + var(--kbq-form-field-size-icon-button-margin-right, 4px))}.kbq-form-field__container{position:relative;border-width:var(--kbq-form-field-size-border-width, 1px);border-style:solid;border-color:transparent;border-radius:var(--kbq-form-field-size-border-radius, 8px)}.kbq-form-field__prefix,.kbq-form-field__suffix{position:absolute;top:0;bottom:0;width:32px;display:flex;flex-direction:row;justify-content:center;align-items:center}.kbq-form-field__prefix{left:0}.kbq-form-field__suffix{right:0}.kbq-form-field__cleaner,.kbq-password-toggle,.kbq-stepper{position:absolute;top:0;bottom:0;right:0}.kbq-stepper{display:flex;flex-direction:column;justify-content:center;align-items:center;width:var(--kbq-form-field-size-button-width, )}.kbq-stepper .kbq-stepper-step-up,.kbq-stepper .kbq-stepper-step-down{cursor:pointer;width:var(--kbq-form-field-size-button-width, );text-align:center}.kbq-stepper .kbq-stepper-step-up{transform:scaleY(-1)}.kbq-form-field__hint{display:flex;flex-direction:column;margin-top:var(--kbq-form-field-hint-size-margin-top, 4px);gap:var(--kbq-form-field-hint-size-gap, 8px)}\n", ".kbq-input{background:transparent;padding:0;margin:0;border:none;outline:none;display:inline-block;box-sizing:border-box;text-overflow:ellipsis;width:100%;min-height:calc(var(--kbq-form-field-size-height, 32px) - var(--kbq-form-field-size-border-width, 1px) * 2);padding:calc(var(--kbq-input-size-padding-vertical, 4px) - var(--kbq-form-field-size-border-width, 1px)) var(--kbq-input-size-padding-horizontal, 12px)}.kbq-input::-ms-clear{display:none;width:0;height:0}.kbq-input::-ms-reveal{display:none;width:0;height:0}.kbq-input::-webkit-search-decoration,.kbq-input::-webkit-search-cancel-button,.kbq-input::-webkit-search-results-button,.kbq-input::-webkit-search-results-decoration{display:none}input.kbq-input[type=number]{-moz-appearance:textfield}input.kbq-input[type=number]::-webkit-inner-spin-button,input.kbq-input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none}input.kbq-input:invalid{box-shadow:unset}input.kbq-input::placeholder{opacity:1}\n", ".kbq-timepicker{padding-right:calc(var(--kbq-timepicker-size-padding-right, 16px) - var(--kbq-form-field-size-border-width, 1px))}.kbq-form-field-type-timepicker{width:auto}\n", ".kbq-form-field-type-datepicker{width:auto}.kbq-datepicker{width:var(--kbq-datepicker-input-size-width, 130px)}\n", ".kbq-textarea{display:inline-block;background:transparent;margin:0;border:none;outline:none;resize:none;overflow:auto;width:100%;box-sizing:border-box;padding:var(--kbq-textarea-size-padding-vertical, 8px) var(--kbq-textarea-size-padding-horizontal, 12px);-webkit-appearance:none;vertical-align:bottom}.kbq-textarea:not(.kbq-textarea-resizable){box-sizing:border-box;overflow-y:hidden}.kbq-textarea.kbq-textarea-resizable{resize:vertical;min-height:var(--kbq-textarea-size-min-height, 64px)}.kbq-textarea:invalid{box-shadow:unset}\n"] }]
541
553
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1$3.FocusMonitor }]; }, propDecorators: { control: [{
542
554
  type: ContentChild,
543
555
  args: [KbqFormFieldControl, { static: false }]
@@ -568,13 +580,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImpor
568
580
  }] } });
569
581
  class KbqFormFieldWithoutBorders {
570
582
  /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: KbqFormFieldWithoutBorders, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
571
- /** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.5", type: KbqFormFieldWithoutBorders, selector: "kbq-form-field[mcFormFieldWithoutBorders]", host: { classAttribute: "kbq-form-field_without-borders" }, exportAs: ["mcFormFieldWithoutBorders"], ngImport: i0 }); }
583
+ /** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.5", type: KbqFormFieldWithoutBorders, selector: "kbq-form-field[kbqFormFieldWithoutBorders]", host: { classAttribute: "kbq-form-field_without-borders" }, exportAs: ["kbqFormFieldWithoutBorders"], ngImport: i0 }); }
572
584
  }
573
585
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: KbqFormFieldWithoutBorders, decorators: [{
574
586
  type: Directive,
575
587
  args: [{
576
- selector: 'kbq-form-field[mcFormFieldWithoutBorders]',
577
- exportAs: 'mcFormFieldWithoutBorders',
588
+ selector: 'kbq-form-field[kbqFormFieldWithoutBorders]',
589
+ exportAs: 'kbqFormFieldWithoutBorders',
578
590
  host: { class: 'kbq-form-field_without-borders' }
579
591
  }]
580
592
  }] });
@@ -726,7 +738,7 @@ class KbqValidateDirective {
726
738
  });
727
739
  }
728
740
  /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: KbqValidateDirective, deps: [{ token: forwardRef(() => KbqFormFieldControl) }, { token: NG_VALIDATORS, optional: true, self: true }, { token: i1$4.NgControl, optional: true, self: true }, { token: i1$4.NgForm, optional: true }, { token: i1$4.FormGroupDirective, optional: true }, { token: KBQ_VALIDATION, optional: true }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive }); }
729
- /** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.5", type: KbqValidateDirective, selector: "\n input[kbqInput],\n input[kbqInputPassword],\n input[mcTimepicker],\n input[mcDatepicker],\n textarea[kbqTextarea],\n kbq-select,\n kbq-tree-select,\n kbq-tag-list\n ", exportAs: ["KbqValidate"], ngImport: i0 }); }
741
+ /** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.1.5", type: KbqValidateDirective, selector: "\n input[kbqInput],\n input[kbqInputPassword],\n input[kbqTimepicker],\n input[kbqDatepicker],\n textarea[kbqTextarea],\n kbq-select,\n kbq-tree-select,\n kbq-tag-list\n ", exportAs: ["KbqValidate"], ngImport: i0 }); }
730
742
  }
731
743
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: KbqValidateDirective, decorators: [{
732
744
  type: Directive,
@@ -734,8 +746,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImpor
734
746
  selector: `
735
747
  input[kbqInput],
736
748
  input[kbqInputPassword],
737
- input[mcTimepicker],
738
- input[mcDatepicker],
749
+ input[kbqTimepicker],
750
+ input[kbqDatepicker],
739
751
  textarea[kbqTextarea],
740
752
  kbq-select,
741
753
  kbq-tree-select,