@alauda/ui 6.5.9-beta.22 → 6.5.9-beta.24

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 (469) hide show
  1. package/accordion/accordion-item/accordion-item.component.d.ts +1 -1
  2. package/accordion/accordion.component.d.ts +1 -1
  3. package/anchor/anchor.component.d.ts +2 -2
  4. package/anchor/anchor.directive.d.ts +2 -2
  5. package/autocomplete/autocomplete.directive.d.ts +2 -2
  6. package/autocomplete/suggestion/suggestion.component.d.ts +1 -1
  7. package/back-top/back-top.component.d.ts +1 -1
  8. package/breadcrumb/breadcrumb.component.d.ts +1 -1
  9. package/button/button.component.d.ts +1 -1
  10. package/card/card.component.d.ts +1 -1
  11. package/card/helper-directives.d.ts +1 -1
  12. package/checkbox/checkbox-group/checkbox-group.component.d.ts +1 -1
  13. package/checkbox/checkbox.component.d.ts +1 -1
  14. package/date-picker/calendar/date-picker-panel/component.d.ts +1 -1
  15. package/date-picker/calendar/footer/component.d.ts +1 -1
  16. package/date-picker/calendar/header/component.d.ts +1 -1
  17. package/date-picker/calendar/panel/picker-panel.d.ts +1 -1
  18. package/date-picker/calendar/range-picker-panel/component.d.ts +1 -1
  19. package/date-picker/date-picker/date-picker.component.d.ts +1 -1
  20. package/date-picker/range-picker/range-picker.component.d.ts +1 -1
  21. package/date-picker/trigger/trigger.component.d.ts +1 -1
  22. package/dialog/dialog-content/dialog-close.directive.d.ts +1 -1
  23. package/dialog/dialog-content/dialog-header.component.d.ts +1 -1
  24. package/dialog/dialog.component.d.ts +0 -6
  25. package/dialog/dialog.service.d.ts +0 -2
  26. package/drawer/component/drawer.component.d.ts +1 -1
  27. package/dropdown/dropdown-active.directive.d.ts +1 -1
  28. package/dropdown/dropdown-button/dropdown-button.component.d.ts +1 -1
  29. package/dropdown/dropdown.directive.d.ts +1 -1
  30. package/dropdown/menu/menu.component.d.ts +1 -1
  31. package/dropdown/menu-item/menu-item.component.d.ts +1 -1
  32. package/dropdown/submenu/submenu.component.d.ts +1 -1
  33. package/esm2022/accordion/accordion-item/accordion-item.component.mjs +73 -0
  34. package/esm2022/accordion/accordion.component.mjs +29 -0
  35. package/{esm2020 → esm2022}/accordion/accordion.module.mjs +11 -11
  36. package/esm2022/anchor/anchor.component.mjs +141 -0
  37. package/esm2022/anchor/anchor.directive.mjs +198 -0
  38. package/{esm2020 → esm2022}/anchor/anchor.module.mjs +11 -11
  39. package/{esm2020 → esm2022}/autocomplete/autocomplete-placeholder.component.mjs +4 -4
  40. package/esm2022/autocomplete/autocomplete.component.mjs +72 -0
  41. package/esm2022/autocomplete/autocomplete.directive.mjs +278 -0
  42. package/{esm2020 → esm2022}/autocomplete/autocomplete.module.mjs +17 -17
  43. package/{esm2020 → esm2022}/autocomplete/helper-directives.mjs +4 -4
  44. package/esm2022/autocomplete/suggestion/suggestion.component.mjs +85 -0
  45. package/esm2022/autocomplete/suggestion-group/suggestion-group.component.mjs +25 -0
  46. package/esm2022/back-top/back-top.component.mjs +68 -0
  47. package/{esm2020 → esm2022}/back-top/back-top.module.mjs +5 -5
  48. package/esm2022/breadcrumb/breadcrumb-item.component.mjs +33 -0
  49. package/esm2022/breadcrumb/breadcrumb.component.mjs +56 -0
  50. package/{esm2020 → esm2022}/breadcrumb/breadcrumb.module.mjs +5 -5
  51. package/{esm2020 → esm2022}/button/button-group/button-group.component.mjs +4 -4
  52. package/esm2022/button/button.component.mjs +124 -0
  53. package/{esm2020 → esm2022}/button/button.module.mjs +5 -5
  54. package/esm2022/card/card.component.mjs +14 -0
  55. package/{esm2020 → esm2022}/card/card.module.mjs +13 -13
  56. package/esm2022/card/helper-directives.mjs +45 -0
  57. package/{esm2020 → esm2022}/card/section.component.mjs +4 -4
  58. package/esm2022/checkbox/checkbox-group/checkbox-group.component.mjs +60 -0
  59. package/esm2022/checkbox/checkbox.component.mjs +116 -0
  60. package/{esm2020 → esm2022}/checkbox/checkbox.module.mjs +5 -5
  61. package/esm2022/color-picker/color-picker.component.mjs +28 -0
  62. package/{esm2020 → esm2022}/color-picker/color-picker.module.mjs +5 -5
  63. package/esm2022/date-picker/calendar/date-picker-panel/component.mjs +137 -0
  64. package/esm2022/date-picker/calendar/footer/component.mjs +29 -0
  65. package/esm2022/date-picker/calendar/header/component.mjs +99 -0
  66. package/esm2022/date-picker/calendar/panel/picker-panel.mjs +158 -0
  67. package/esm2022/date-picker/calendar/range-picker-panel/component.mjs +210 -0
  68. package/esm2022/date-picker/calendar/util.mjs +152 -0
  69. package/esm2022/date-picker/date-picker/date-picker.component.mjs +115 -0
  70. package/{esm2020 → esm2022}/date-picker/date-picker.module.mjs +35 -35
  71. package/esm2022/date-picker/range-picker/range-picker.component.mjs +88 -0
  72. package/esm2022/date-picker/trigger/trigger.component.mjs +76 -0
  73. package/esm2022/dialog/confirm-dialog/confirm-dialog-config.mjs +13 -0
  74. package/esm2022/dialog/confirm-dialog/confirm-dialog.component.mjs +88 -0
  75. package/esm2022/dialog/dialog-config.mjs +14 -0
  76. package/esm2022/dialog/dialog-content/dialog-close.directive.mjs +42 -0
  77. package/{esm2020 → esm2022}/dialog/dialog-content/dialog-content.component.mjs +5 -5
  78. package/esm2022/dialog/dialog-content/dialog-footer.component.mjs +13 -0
  79. package/esm2022/dialog/dialog-content/dialog-header.component.mjs +42 -0
  80. package/esm2022/dialog/dialog-ref.mjs +52 -0
  81. package/esm2022/dialog/dialog.component.mjs +154 -0
  82. package/{esm2020 → esm2022}/dialog/dialog.module.mjs +22 -22
  83. package/esm2022/dialog/dialog.service.mjs +124 -0
  84. package/esm2022/drawer/component/drawer.component.mjs +248 -0
  85. package/{esm2020 → esm2022}/drawer/component/helper-directives.mjs +10 -10
  86. package/{esm2020 → esm2022}/drawer/drawer.module.mjs +11 -11
  87. package/esm2022/drawer/drawer.service.mjs +47 -0
  88. package/esm2022/dropdown/dropdown-active.directive.mjs +18 -0
  89. package/esm2022/dropdown/dropdown-button/dropdown-button.component.mjs +50 -0
  90. package/esm2022/dropdown/dropdown.directive.mjs +83 -0
  91. package/{esm2020 → esm2022}/dropdown/dropdown.module.mjs +21 -21
  92. package/{esm2020 → esm2022}/dropdown/helper-directives.mjs +4 -4
  93. package/esm2022/dropdown/menu/menu-content.directive.mjs +59 -0
  94. package/esm2022/dropdown/menu/menu.component.mjs +34 -0
  95. package/{esm2020 → esm2022}/dropdown/menu-group/menu-group.component.mjs +4 -4
  96. package/esm2022/dropdown/menu-item/menu-item.component.mjs +35 -0
  97. package/esm2022/dropdown/submenu/submenu.component.mjs +38 -0
  98. package/esm2022/form/common-form.mjs +88 -0
  99. package/esm2022/form/form-item/form-item.component.mjs +121 -0
  100. package/esm2022/form/form.directive.mjs +70 -0
  101. package/{esm2020 → esm2022}/form/form.module.mjs +17 -17
  102. package/esm2022/form/helper-directives.mjs +78 -0
  103. package/{esm2020 → esm2022}/i18n/i18n.module.mjs +5 -5
  104. package/esm2022/i18n/i18n.pipe.mjs +21 -0
  105. package/esm2022/i18n/i18n.service.mjs +46 -0
  106. package/esm2022/icon/icon-register.service.mjs +75 -0
  107. package/esm2022/icon/icon.component.mjs +74 -0
  108. package/{esm2020 → esm2022}/icon/icon.module.mjs +5 -5
  109. package/{esm2020 → esm2022}/inline-alert/helper-directives.mjs +4 -4
  110. package/esm2022/inline-alert/inline-alert.component.mjs +54 -0
  111. package/{esm2020 → esm2022}/inline-alert/inline-alert.module.mjs +5 -5
  112. package/esm2022/input/autosize.directive.mjs +56 -0
  113. package/esm2022/input/helper-directives.mjs +43 -0
  114. package/esm2022/input/input-group/input-group.component.mjs +46 -0
  115. package/esm2022/input/input.component.mjs +59 -0
  116. package/{esm2020 → esm2022}/input/input.module.mjs +33 -33
  117. package/esm2022/input/number-input/number-input.component.mjs +115 -0
  118. package/esm2022/input/search/search.component.mjs +87 -0
  119. package/esm2022/input/tags-input/tags-input.component.mjs +264 -0
  120. package/esm2022/message/base-message.mjs +99 -0
  121. package/esm2022/message/message-wrapper.component.mjs +15 -0
  122. package/esm2022/message/message.component.mjs +77 -0
  123. package/esm2022/message/message.config.mjs +20 -0
  124. package/{esm2020 → esm2022}/message/message.module.mjs +5 -5
  125. package/{esm2020 → esm2022}/message/message.service.mjs +4 -4
  126. package/esm2022/notification/notification-wrapper.component.mjs +17 -0
  127. package/esm2022/notification/notification.component.mjs +106 -0
  128. package/{esm2020 → esm2022}/notification/notification.module.mjs +5 -5
  129. package/{esm2020 → esm2022}/notification/notification.service.mjs +4 -4
  130. package/esm2022/paginator/paginator-intl.mjs +24 -0
  131. package/esm2022/paginator/paginator.component.mjs +124 -0
  132. package/{esm2020 → esm2022}/paginator/paginator.module.mjs +5 -5
  133. package/esm2022/radio/base-radio.mjs +72 -0
  134. package/esm2022/radio/radio-button/radio-button.component.mjs +41 -0
  135. package/esm2022/radio/radio-group/radio-group.component.mjs +70 -0
  136. package/{esm2020 → esm2022}/radio/radio.component.mjs +5 -5
  137. package/{esm2020 → esm2022}/radio/radio.module.mjs +5 -5
  138. package/{esm2020 → esm2022}/scrolling/fixed-size-table-virtual-scroll-strategy.mjs +13 -14
  139. package/esm2022/scrolling/fixed-size-table-virtual-scroll.directive.mjs +119 -0
  140. package/esm2022/scrolling/fixed-size-virtual-scroll.directive.mjs +27 -0
  141. package/{esm2020 → esm2022}/scrolling/scrolling.module.mjs +9 -9
  142. package/{esm2020 → esm2022}/scrolling/virtual-for-of.directive.mjs +4 -4
  143. package/esm2022/scrolling/virtual-scroll-viewport.component.mjs +26 -0
  144. package/esm2022/select/base-select.mjs +345 -0
  145. package/{esm2020 → esm2022}/select/helper-directives.mjs +7 -7
  146. package/esm2022/select/multi-select/multi-select.component.mjs +318 -0
  147. package/esm2022/select/option/option.component.mjs +119 -0
  148. package/esm2022/select/option-group/option-group.component.mjs +25 -0
  149. package/{esm2020 → esm2022}/select/option-placeholder.component.mjs +4 -4
  150. package/esm2022/select/select.component.mjs +107 -0
  151. package/{esm2020 → esm2022}/select/select.module.mjs +29 -29
  152. package/esm2022/select/validators.mjs +78 -0
  153. package/esm2022/shared/click-outside.directive.mjs +29 -0
  154. package/{esm2020 → esm2022}/shared/shared.module.mjs +5 -5
  155. package/esm2022/sort/sort-header.component.mjs +74 -0
  156. package/esm2022/sort/sort.directive.mjs +73 -0
  157. package/{esm2020 → esm2022}/sort/sort.module.mjs +5 -5
  158. package/esm2022/status-bar/status-bar.component.mjs +28 -0
  159. package/{esm2020 → esm2022}/status-bar/status-bar.module.mjs +5 -5
  160. package/esm2022/steps/steps.component.mjs +180 -0
  161. package/{esm2020 → esm2022}/steps/steps.module.mjs +5 -5
  162. package/esm2022/switch/switch.component.mjs +43 -0
  163. package/{esm2020 → esm2022}/switch/switch.module.mjs +5 -5
  164. package/esm2022/table/table-cell-def.directive.mjs +25 -0
  165. package/esm2022/table/table-cell.component.mjs +115 -0
  166. package/{esm2020 → esm2022}/table/table-cell.directive.mjs +5 -5
  167. package/esm2022/table/table-column-def.directive.mjs +31 -0
  168. package/esm2022/table/table-header-cell-def.directive.mjs +25 -0
  169. package/{esm2020 → esm2022}/table/table-header-cell.directive.mjs +4 -4
  170. package/esm2022/table/table-header-row-def.directive.mjs +33 -0
  171. package/{esm2020 → esm2022}/table/table-header-row.component.mjs +4 -4
  172. package/esm2022/table/table-placeholder.directive.mjs +33 -0
  173. package/esm2022/table/table-row-def.directive.mjs +34 -0
  174. package/esm2022/table/table-row.component.mjs +43 -0
  175. package/esm2022/table/table-scroll.directive.mjs +133 -0
  176. package/esm2022/table/table.component.mjs +79 -0
  177. package/{esm2020 → esm2022}/table/table.module.mjs +35 -35
  178. package/{esm2020 → esm2022}/table-of-contents/table-of-contents.module.mjs +5 -5
  179. package/esm2022/table-of-contents/toc-container.directive.mjs +111 -0
  180. package/esm2022/table-of-contents/toc-content.directive.mjs +39 -0
  181. package/esm2022/table-of-contents/toc-link.directive.mjs +48 -0
  182. package/esm2022/tabs/tab-body.component.mjs +151 -0
  183. package/esm2022/tabs/tab-context.service.mjs +30 -0
  184. package/esm2022/tabs/tab-group.component.mjs +256 -0
  185. package/esm2022/tabs/tab-header-active-indicator.component.mjs +46 -0
  186. package/esm2022/tabs/tab-header.component.mjs +276 -0
  187. package/esm2022/tabs/tab.component.mjs +77 -0
  188. package/{esm2020 → esm2022}/tabs/tabs.module.mjs +34 -34
  189. package/esm2022/tag/check-tag/check-tag.component.mjs +31 -0
  190. package/esm2022/tag/tag.component.mjs +63 -0
  191. package/{esm2020 → esm2022}/tag/tag.module.mjs +5 -5
  192. package/{esm2020 → esm2022}/theme/theme.module.mjs +5 -5
  193. package/esm2022/theme/theme.pipe.mjs +64 -0
  194. package/esm2022/theme/theme.service.mjs +55 -0
  195. package/esm2022/time-picker/component.mjs +181 -0
  196. package/esm2022/time-picker/panel/panel.component.mjs +240 -0
  197. package/{esm2020 → esm2022}/time-picker/time-picker.module.mjs +23 -23
  198. package/esm2022/tooltip/base-tooltip.mjs +329 -0
  199. package/esm2022/tooltip/tooltip-active.directive.mjs +51 -0
  200. package/esm2022/tooltip/tooltip-copy.directive.mjs +87 -0
  201. package/esm2022/tooltip/tooltip-intl.mjs +21 -0
  202. package/esm2022/tooltip/tooltip.component.mjs +120 -0
  203. package/esm2022/tooltip/tooltip.directive.mjs +44 -0
  204. package/{esm2020 → esm2022}/tooltip/tooltip.module.mjs +8 -8
  205. package/{esm2020 → esm2022}/tree-select/tree-node-placeholder.component.mjs +4 -4
  206. package/esm2022/tree-select/tree-select.component.mjs +350 -0
  207. package/{esm2020 → esm2022}/tree-select/tree-select.module.mjs +9 -9
  208. package/esm2022/utils/bem.mjs +44 -0
  209. package/{fesm2020 → fesm2022}/alauda-ui.mjs +2204 -1887
  210. package/fesm2022/alauda-ui.mjs.map +1 -0
  211. package/form/common-form.d.ts +1 -1
  212. package/form/form-item/form-item.component.d.ts +1 -1
  213. package/form/form.directive.d.ts +1 -1
  214. package/form/helper-directives.d.ts +1 -1
  215. package/icon/icon.component.d.ts +1 -1
  216. package/inline-alert/inline-alert.component.d.ts +1 -1
  217. package/input/autosize.directive.d.ts +1 -1
  218. package/input/input.component.d.ts +1 -1
  219. package/input/number-input/number-input.component.d.ts +1 -1
  220. package/input/search/search.component.d.ts +1 -1
  221. package/input/tags-input/tags-input.component.d.ts +1 -1
  222. package/package.json +11 -17
  223. package/paginator/paginator.component.d.ts +1 -1
  224. package/radio/base-radio.d.ts +1 -1
  225. package/radio/radio-group/radio-group.component.d.ts +1 -1
  226. package/scrolling/fixed-size-table-virtual-scroll.directive.d.ts +1 -1
  227. package/scrolling/virtual-for-of.directive.d.ts +1 -1
  228. package/select/base-select.d.ts +1 -1
  229. package/select/multi-select/multi-select.component.d.ts +1 -1
  230. package/select/option/option.component.d.ts +1 -1
  231. package/select/validators.d.ts +1 -1
  232. package/sort/sort-header.component.d.ts +1 -1
  233. package/sort/sort.directive.d.ts +1 -1
  234. package/status-bar/status-bar.component.d.ts +1 -1
  235. package/steps/steps.component.d.ts +1 -1
  236. package/switch/switch.component.d.ts +1 -1
  237. package/table/table-cell.component.d.ts +2 -2
  238. package/table/table-cell.directive.d.ts +1 -1
  239. package/table/table-column-def.directive.d.ts +1 -1
  240. package/table/table-header-row-def.directive.d.ts +1 -1
  241. package/table/table-row-def.directive.d.ts +1 -1
  242. package/table/table-row.component.d.ts +1 -1
  243. package/table/table-scroll.directive.d.ts +2 -2
  244. package/table/table.component.d.ts +1 -1
  245. package/table-of-contents/toc-content.directive.d.ts +1 -1
  246. package/table-of-contents/toc-link.directive.d.ts +1 -1
  247. package/tabs/tab-body.component.d.ts +2 -2
  248. package/tabs/tab-group.component.d.ts +1 -1
  249. package/tabs/tab-header-active-indicator.component.d.ts +1 -1
  250. package/tabs/tab-header.component.d.ts +1 -1
  251. package/tabs/tab.component.d.ts +1 -1
  252. package/tag/check-tag/check-tag.component.d.ts +1 -1
  253. package/tag/tag.component.d.ts +1 -1
  254. package/theme/_var.scss +1 -1
  255. package/time-picker/component.d.ts +1 -1
  256. package/time-picker/panel/panel.component.d.ts +1 -1
  257. package/tooltip/tooltip-active.directive.d.ts +1 -1
  258. package/tooltip/tooltip-copy.directive.d.ts +1 -1
  259. package/tooltip/tooltip.directive.d.ts +1 -1
  260. package/tree-select/tree-select.component.d.ts +2 -2
  261. package/esm2020/accordion/accordion-item/accordion-item.component.mjs +0 -71
  262. package/esm2020/accordion/accordion.component.mjs +0 -27
  263. package/esm2020/anchor/anchor.component.mjs +0 -137
  264. package/esm2020/anchor/anchor.directive.mjs +0 -182
  265. package/esm2020/autocomplete/autocomplete.component.mjs +0 -64
  266. package/esm2020/autocomplete/autocomplete.directive.mjs +0 -277
  267. package/esm2020/autocomplete/suggestion/suggestion.component.mjs +0 -79
  268. package/esm2020/autocomplete/suggestion-group/suggestion-group.component.mjs +0 -23
  269. package/esm2020/back-top/back-top.component.mjs +0 -65
  270. package/esm2020/breadcrumb/breadcrumb-item.component.mjs +0 -32
  271. package/esm2020/breadcrumb/breadcrumb.component.mjs +0 -57
  272. package/esm2020/button/button.component.mjs +0 -121
  273. package/esm2020/card/card.component.mjs +0 -16
  274. package/esm2020/card/helper-directives.mjs +0 -48
  275. package/esm2020/checkbox/checkbox-group/checkbox-group.component.mjs +0 -61
  276. package/esm2020/checkbox/checkbox.component.mjs +0 -112
  277. package/esm2020/color-picker/color-picker.component.mjs +0 -28
  278. package/esm2020/date-picker/calendar/date-picker-panel/component.mjs +0 -128
  279. package/esm2020/date-picker/calendar/footer/component.mjs +0 -29
  280. package/esm2020/date-picker/calendar/header/component.mjs +0 -99
  281. package/esm2020/date-picker/calendar/panel/picker-panel.mjs +0 -151
  282. package/esm2020/date-picker/calendar/range-picker-panel/component.mjs +0 -207
  283. package/esm2020/date-picker/calendar/util.mjs +0 -145
  284. package/esm2020/date-picker/date-picker/date-picker.component.mjs +0 -110
  285. package/esm2020/date-picker/range-picker/range-picker.component.mjs +0 -86
  286. package/esm2020/date-picker/trigger/trigger.component.mjs +0 -69
  287. package/esm2020/dialog/confirm-dialog/confirm-dialog-config.mjs +0 -12
  288. package/esm2020/dialog/confirm-dialog/confirm-dialog.component.mjs +0 -85
  289. package/esm2020/dialog/dialog-config.mjs +0 -15
  290. package/esm2020/dialog/dialog-content/dialog-close.directive.mjs +0 -38
  291. package/esm2020/dialog/dialog-content/dialog-footer.component.mjs +0 -15
  292. package/esm2020/dialog/dialog-content/dialog-header.component.mjs +0 -39
  293. package/esm2020/dialog/dialog-ref.mjs +0 -48
  294. package/esm2020/dialog/dialog.component.mjs +0 -155
  295. package/esm2020/dialog/dialog.service.mjs +0 -134
  296. package/esm2020/drawer/component/drawer.component.mjs +0 -229
  297. package/esm2020/drawer/drawer.service.mjs +0 -44
  298. package/esm2020/dropdown/dropdown-active.directive.mjs +0 -21
  299. package/esm2020/dropdown/dropdown-button/dropdown-button.component.mjs +0 -51
  300. package/esm2020/dropdown/dropdown.directive.mjs +0 -81
  301. package/esm2020/dropdown/menu/menu-content.directive.mjs +0 -51
  302. package/esm2020/dropdown/menu/menu.component.mjs +0 -33
  303. package/esm2020/dropdown/menu-item/menu-item.component.mjs +0 -37
  304. package/esm2020/dropdown/submenu/submenu.component.mjs +0 -40
  305. package/esm2020/form/common-form.mjs +0 -84
  306. package/esm2020/form/form-item/form-item.component.mjs +0 -108
  307. package/esm2020/form/form.directive.mjs +0 -69
  308. package/esm2020/form/helper-directives.mjs +0 -80
  309. package/esm2020/i18n/i18n.pipe.mjs +0 -20
  310. package/esm2020/i18n/i18n.service.mjs +0 -43
  311. package/esm2020/icon/icon-register.service.mjs +0 -73
  312. package/esm2020/icon/icon.component.mjs +0 -65
  313. package/esm2020/inline-alert/inline-alert.component.mjs +0 -53
  314. package/esm2020/input/autosize.directive.mjs +0 -54
  315. package/esm2020/input/helper-directives.mjs +0 -43
  316. package/esm2020/input/input-group/input-group.component.mjs +0 -39
  317. package/esm2020/input/input.component.mjs +0 -57
  318. package/esm2020/input/number-input/number-input.component.mjs +0 -112
  319. package/esm2020/input/search/search.component.mjs +0 -88
  320. package/esm2020/input/tags-input/tags-input.component.mjs +0 -255
  321. package/esm2020/message/base-message.mjs +0 -90
  322. package/esm2020/message/message-wrapper.component.mjs +0 -14
  323. package/esm2020/message/message.component.mjs +0 -70
  324. package/esm2020/message/message.config.mjs +0 -16
  325. package/esm2020/notification/notification-wrapper.component.mjs +0 -16
  326. package/esm2020/notification/notification.component.mjs +0 -103
  327. package/esm2020/paginator/paginator-intl.mjs +0 -26
  328. package/esm2020/paginator/paginator.component.mjs +0 -117
  329. package/esm2020/radio/base-radio.mjs +0 -67
  330. package/esm2020/radio/radio-button/radio-button.component.mjs +0 -41
  331. package/esm2020/radio/radio-group/radio-group.component.mjs +0 -73
  332. package/esm2020/scrolling/fixed-size-table-virtual-scroll.directive.mjs +0 -119
  333. package/esm2020/scrolling/fixed-size-virtual-scroll.directive.mjs +0 -27
  334. package/esm2020/scrolling/virtual-scroll-viewport.component.mjs +0 -26
  335. package/esm2020/select/base-select.mjs +0 -334
  336. package/esm2020/select/multi-select/multi-select.component.mjs +0 -310
  337. package/esm2020/select/option/option.component.mjs +0 -112
  338. package/esm2020/select/option-group/option-group.component.mjs +0 -23
  339. package/esm2020/select/select.component.mjs +0 -107
  340. package/esm2020/select/validators.mjs +0 -75
  341. package/esm2020/shared/click-outside.directive.mjs +0 -28
  342. package/esm2020/sort/sort-header.component.mjs +0 -68
  343. package/esm2020/sort/sort.directive.mjs +0 -74
  344. package/esm2020/status-bar/status-bar.component.mjs +0 -29
  345. package/esm2020/steps/steps.component.mjs +0 -180
  346. package/esm2020/switch/switch.component.mjs +0 -46
  347. package/esm2020/table/table-cell-def.directive.mjs +0 -25
  348. package/esm2020/table/table-cell.component.mjs +0 -121
  349. package/esm2020/table/table-column-def.directive.mjs +0 -31
  350. package/esm2020/table/table-header-cell-def.directive.mjs +0 -25
  351. package/esm2020/table/table-header-row-def.directive.mjs +0 -35
  352. package/esm2020/table/table-placeholder.directive.mjs +0 -30
  353. package/esm2020/table/table-row-def.directive.mjs +0 -37
  354. package/esm2020/table/table-row.component.mjs +0 -42
  355. package/esm2020/table/table-scroll.directive.mjs +0 -133
  356. package/esm2020/table/table.component.mjs +0 -76
  357. package/esm2020/table-of-contents/toc-container.directive.mjs +0 -109
  358. package/esm2020/table-of-contents/toc-content.directive.mjs +0 -35
  359. package/esm2020/table-of-contents/toc-link.directive.mjs +0 -44
  360. package/esm2020/tabs/tab-body.component.mjs +0 -147
  361. package/esm2020/tabs/tab-context.service.mjs +0 -28
  362. package/esm2020/tabs/tab-group.component.mjs +0 -246
  363. package/esm2020/tabs/tab-header-active-indicator.component.mjs +0 -44
  364. package/esm2020/tabs/tab-header.component.mjs +0 -264
  365. package/esm2020/tabs/tab.component.mjs +0 -71
  366. package/esm2020/tag/check-tag/check-tag.component.mjs +0 -33
  367. package/esm2020/tag/tag.component.mjs +0 -65
  368. package/esm2020/theme/theme.pipe.mjs +0 -69
  369. package/esm2020/theme/theme.service.mjs +0 -52
  370. package/esm2020/time-picker/component.mjs +0 -179
  371. package/esm2020/time-picker/panel/panel.component.mjs +0 -228
  372. package/esm2020/tooltip/base-tooltip.mjs +0 -318
  373. package/esm2020/tooltip/tooltip-active.directive.mjs +0 -49
  374. package/esm2020/tooltip/tooltip-copy.directive.mjs +0 -82
  375. package/esm2020/tooltip/tooltip-intl.mjs +0 -23
  376. package/esm2020/tooltip/tooltip.component.mjs +0 -107
  377. package/esm2020/tooltip/tooltip.directive.mjs +0 -47
  378. package/esm2020/tree-select/tree-select.component.mjs +0 -339
  379. package/esm2020/utils/bem.mjs +0 -43
  380. package/fesm2015/alauda-ui.mjs +0 -11686
  381. package/fesm2015/alauda-ui.mjs.map +0 -1
  382. package/fesm2020/alauda-ui.mjs.map +0 -1
  383. /package/{esm2020 → esm2022}/accordion/index.mjs +0 -0
  384. /package/{esm2020 → esm2022}/alauda-ui.mjs +0 -0
  385. /package/{esm2020 → esm2022}/anchor/index.mjs +0 -0
  386. /package/{esm2020 → esm2022}/anchor/types.mjs +0 -0
  387. /package/{esm2020 → esm2022}/anchor/utils.mjs +0 -0
  388. /package/{esm2020 → esm2022}/autocomplete/autocomplete.types.mjs +0 -0
  389. /package/{esm2020 → esm2022}/autocomplete/index.mjs +0 -0
  390. /package/{esm2020 → esm2022}/back-top/index.mjs +0 -0
  391. /package/{esm2020 → esm2022}/breadcrumb/index.mjs +0 -0
  392. /package/{esm2020 → esm2022}/button/button.types.mjs +0 -0
  393. /package/{esm2020 → esm2022}/button/index.mjs +0 -0
  394. /package/{esm2020 → esm2022}/card/index.mjs +0 -0
  395. /package/{esm2020 → esm2022}/checkbox/index.mjs +0 -0
  396. /package/{esm2020 → esm2022}/color-picker/index.mjs +0 -0
  397. /package/{esm2020 → esm2022}/core/animation/animation-consts.mjs +0 -0
  398. /package/{esm2020 → esm2022}/date-picker/calendar/constant.mjs +0 -0
  399. /package/{esm2020 → esm2022}/date-picker/date-picker.type.mjs +0 -0
  400. /package/{esm2020 → esm2022}/date-picker/index.mjs +0 -0
  401. /package/{esm2020 → esm2022}/dialog/dialog-animations.mjs +0 -0
  402. /package/{esm2020 → esm2022}/dialog/dialog.types.mjs +0 -0
  403. /package/{esm2020 → esm2022}/dialog/index.mjs +0 -0
  404. /package/{esm2020 → esm2022}/dialog/utils/errors.mjs +0 -0
  405. /package/{esm2020 → esm2022}/dialog/utils/index.mjs +0 -0
  406. /package/{esm2020 → esm2022}/drawer/component/drawer-ref.mjs +0 -0
  407. /package/{esm2020 → esm2022}/drawer/index.mjs +0 -0
  408. /package/{esm2020 → esm2022}/dropdown/dropdown.types.mjs +0 -0
  409. /package/{esm2020 → esm2022}/dropdown/index.mjs +0 -0
  410. /package/{esm2020 → esm2022}/form/form.types.mjs +0 -0
  411. /package/{esm2020 → esm2022}/form/index.mjs +0 -0
  412. /package/{esm2020 → esm2022}/i18n/i18n.type.mjs +0 -0
  413. /package/{esm2020 → esm2022}/i18n/index.mjs +0 -0
  414. /package/{esm2020 → esm2022}/i18n/language/en.mjs +0 -0
  415. /package/{esm2020 → esm2022}/i18n/language/zh.mjs +0 -0
  416. /package/{esm2020 → esm2022}/icon/icons.mjs +0 -0
  417. /package/{esm2020 → esm2022}/icon/index.mjs +0 -0
  418. /package/{esm2020 → esm2022}/icon/utils.mjs +0 -0
  419. /package/{esm2020 → esm2022}/index.mjs +0 -0
  420. /package/{esm2020 → esm2022}/inline-alert/index.mjs +0 -0
  421. /package/{esm2020 → esm2022}/inline-alert/inline-alert.types.mjs +0 -0
  422. /package/{esm2020 → esm2022}/input/index.mjs +0 -0
  423. /package/{esm2020 → esm2022}/input/tags-input/with-max-row-count.mjs +0 -0
  424. /package/{esm2020 → esm2022}/input/utils/index.mjs +0 -0
  425. /package/{esm2020 → esm2022}/message/index.mjs +0 -0
  426. /package/{esm2020 → esm2022}/message/message-animations.mjs +0 -0
  427. /package/{esm2020 → esm2022}/notification/index.mjs +0 -0
  428. /package/{esm2020 → esm2022}/notification/notification.config.mjs +0 -0
  429. /package/{esm2020 → esm2022}/paginator/index.mjs +0 -0
  430. /package/{esm2020 → esm2022}/radio/index.mjs +0 -0
  431. /package/{esm2020 → esm2022}/radio/radio.types.mjs +0 -0
  432. /package/{esm2020 → esm2022}/scrolling/index.mjs +0 -0
  433. /package/{esm2020 → esm2022}/select/index.mjs +0 -0
  434. /package/{esm2020 → esm2022}/select/select.types.mjs +0 -0
  435. /package/{esm2020 → esm2022}/sort/index.mjs +0 -0
  436. /package/{esm2020 → esm2022}/sort/sort-errors.mjs +0 -0
  437. /package/{esm2020 → esm2022}/sort/sort.types.mjs +0 -0
  438. /package/{esm2020 → esm2022}/status-bar/index.mjs +0 -0
  439. /package/{esm2020 → esm2022}/status-bar/status-bar.types.mjs +0 -0
  440. /package/{esm2020 → esm2022}/steps/index.mjs +0 -0
  441. /package/{esm2020 → esm2022}/steps/types.mjs +0 -0
  442. /package/{esm2020 → esm2022}/switch/index.mjs +0 -0
  443. /package/{esm2020 → esm2022}/table/index.mjs +0 -0
  444. /package/{esm2020 → esm2022}/table-of-contents/index.mjs +0 -0
  445. /package/{esm2020 → esm2022}/tabs/index.mjs +0 -0
  446. /package/{esm2020 → esm2022}/tabs/tabs.types.mjs +0 -0
  447. /package/{esm2020 → esm2022}/tag/index.mjs +0 -0
  448. /package/{esm2020 → esm2022}/tag/tag.types.mjs +0 -0
  449. /package/{esm2020 → esm2022}/theme/index.mjs +0 -0
  450. /package/{esm2020 → esm2022}/theme/theme.types.mjs +0 -0
  451. /package/{esm2020 → esm2022}/theme/utils.mjs +0 -0
  452. /package/{esm2020 → esm2022}/time-picker/constant.mjs +0 -0
  453. /package/{esm2020 → esm2022}/time-picker/index.mjs +0 -0
  454. /package/{esm2020 → esm2022}/time-picker/time-picker.type.mjs +0 -0
  455. /package/{esm2020 → esm2022}/tooltip/index.mjs +0 -0
  456. /package/{esm2020 → esm2022}/tooltip/tooltip.types.mjs +0 -0
  457. /package/{esm2020 → esm2022}/tooltip/utils/index.mjs +0 -0
  458. /package/{esm2020 → esm2022}/tree-select/index.mjs +0 -0
  459. /package/{esm2020 → esm2022}/tree-select/tree-select.types.mjs +0 -0
  460. /package/{esm2020 → esm2022}/types.mjs +0 -0
  461. /package/{esm2020 → esm2022}/utils/animations.mjs +0 -0
  462. /package/{esm2020 → esm2022}/utils/async.mjs +0 -0
  463. /package/{esm2020 → esm2022}/utils/coercion.mjs +0 -0
  464. /package/{esm2020 → esm2022}/utils/fn.mjs +0 -0
  465. /package/{esm2020 → esm2022}/utils/index.mjs +0 -0
  466. /package/{esm2020 → esm2022}/utils/observe-dom.mjs +0 -0
  467. /package/{esm2020 → esm2022}/utils/operators.mjs +0 -0
  468. /package/{esm2020 → esm2022}/utils/scroll-into-view.mjs +0 -0
  469. /package/{esm2020 → esm2022}/utils/watch-content-exist.mjs +0 -0
@@ -1,39 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, ContentChild, ContentChildren, ViewEncapsulation, } from '@angular/core';
2
- import { buildBem, watchContentExist } from '../../utils';
3
- import { InputAddonAfterDirective, InputAddonBeforeDirective, InputPrefixDirective, InputSuffixDirective, } from '../helper-directives';
4
- import { InputComponent } from '../input.component';
5
- import * as i0 from "@angular/core";
6
- import * as i1 from "@angular/common";
7
- export class InputGroupComponent {
8
- constructor() {
9
- this.bem = buildBem('aui-input-group');
10
- }
11
- ngAfterContentInit() {
12
- this.hasAddonBefore$ = watchContentExist(this.addonBeforeRefs);
13
- this.hasAddonAfter$ = watchContentExist(this.addonAfterRefs);
14
- this.hasPrefix$ = watchContentExist(this.prefixRefs);
15
- this.hasSuffix$ = watchContentExist(this.suffixRefs);
16
- }
17
- }
18
- InputGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InputGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
19
- InputGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: InputGroupComponent, selector: "aui-input-group", queries: [{ propertyName: "inputRef", first: true, predicate: InputComponent, descendants: true }, { propertyName: "addonBeforeRefs", predicate: InputAddonBeforeDirective }, { propertyName: "addonAfterRefs", predicate: InputAddonAfterDirective }, { propertyName: "prefixRefs", predicate: InputPrefixDirective }, { propertyName: "suffixRefs", predicate: InputSuffixDirective }], ngImport: i0, template: "<div\n [ngClass]=\"bem.block(inputRef.size$ | async)\"\n [class.isDisabled]=\"inputRef.disabled$ | async\"\n [class.hasAddonBefore]=\"hasAddonBefore$ | async\"\n [class.hasAddonAfter]=\"hasAddonAfter$ | async\"\n [class.hasPrefix]=\"hasPrefix$ | async\"\n [class.hasSuffix]=\"hasSuffix$ | async\"\n>\n <div [class]=\"bem.element('inner-wrapper')\">\n <div\n *ngIf=\"hasAddonBefore$ | async\"\n [class]=\"bem.element('addon', 'before')\"\n >\n <ng-content select=\"[auiInputAddonBefore]\"></ng-content>\n </div>\n <div [class]=\"bem.element('input-wrapper')\">\n <span\n *ngIf=\"hasPrefix$ | async\"\n [class]=\"bem.element('prefix')\"\n >\n <ng-content select=\"[auiInputPrefix]\"></ng-content>\n </span>\n <ng-content></ng-content>\n <span\n *ngIf=\"hasSuffix$ | async\"\n [class]=\"bem.element('suffix')\"\n >\n <ng-content select=\"[auiInputSuffix]\"></ng-content>\n </span>\n </div>\n <div\n *ngIf=\"hasAddonAfter$ | async\"\n [class]=\"bem.element('addon', 'after')\"\n >\n <ng-content select=\"[auiInputAddonAfter]\"></ng-content>\n </div>\n </div>\n</div>\n", styles: [".aui-input-group{display:inline-block;width:100%;color:rgb(var(--aui-color-main-text));font-weight:var(--aui-font-weight-normal)}.aui-input-group.isDisabled{color:rgb(var(--aui-color-disabled-text));cursor:not-allowed}.aui-input-group--large{height:var(--aui-inline-height-l);font-size:var(--aui-font-size-l);line-height:var(--aui-line-height-l)}.aui-input-group--large .aui-input-group__prefix aui-icon,.aui-input-group--large .aui-input-group__suffix aui-icon{font-size:var(--aui-icon-size-l)}.aui-input-group--large.hasPrefix .aui-input{padding-left:calc(var(--aui-inline-padding-xs) * 2 + var(--aui-icon-size-l) + 1px)}.aui-input-group--large.hasSuffix .aui-input{padding-right:calc(var(--aui-inline-padding-xs) * 2 + var(--aui-icon-size-l) + 1px)}.aui-input-group--medium{height:var(--aui-inline-height-m);font-size:var(--aui-font-size-m);line-height:var(--aui-line-height-m)}.aui-input-group--medium .aui-input-group__prefix aui-icon,.aui-input-group--medium .aui-input-group__suffix aui-icon{font-size:var(--aui-icon-size-m)}.aui-input-group--medium.hasPrefix .aui-input{padding-left:calc(var(--aui-inline-padding-xs) * 2 + var(--aui-icon-size-m) + 1px)}.aui-input-group--medium.hasSuffix .aui-input{padding-right:calc(var(--aui-inline-padding-xs) * 2 + var(--aui-icon-size-m) + 1px)}.aui-input-group--small{height:var(--aui-inline-height-s);font-size:var(--aui-font-size-m);line-height:var(--aui-line-height-m)}.aui-input-group--small .aui-input-group__prefix aui-icon,.aui-input-group--small .aui-input-group__suffix aui-icon{font-size:var(--aui-icon-size-m)}.aui-input-group--small.hasPrefix .aui-input{padding-left:calc(var(--aui-inline-padding-xs) * 2 + var(--aui-icon-size-m) + 1px)}.aui-input-group--small.hasSuffix .aui-input{padding-right:calc(var(--aui-inline-padding-xs) * 2 + var(--aui-icon-size-m) + 1px)}.aui-input-group--mini{height:var(--aui-inline-height-xs);font-size:var(--aui-font-size-s);line-height:var(--aui-line-height-s)}.aui-input-group--mini .aui-input-group__prefix aui-icon,.aui-input-group--mini .aui-input-group__suffix aui-icon{font-size:var(--aui-icon-size-s)}.aui-input-group--mini.hasPrefix .aui-input{padding-left:calc(var(--aui-inline-padding-xs) * 2 + var(--aui-icon-size-s) + 1px)}.aui-input-group--mini.hasSuffix .aui-input{padding-right:calc(var(--aui-inline-padding-xs) * 2 + var(--aui-icon-size-s) + 1px)}.aui-input-group__inner-wrapper{display:flex;height:100%}.aui-input-group__input-wrapper{width:100%;position:relative}.aui-input-group__input-wrapper:hover .aui-input{border-color:rgb(var(--aui-color-primary))}.aui-input-group__addon{display:flex;align-items:center;flex-shrink:0;height:100%;padding:0 var(--aui-inline-padding-xs);border:1px solid rgb(var(--aui-color-n-7));background-color:rgb(var(--aui-color-n-8))}.aui-input-group__addon--before{border-right:none;border-radius:var(--aui-border-radius-m) 0 0 var(--aui-border-radius-m)}.aui-input-group__addon--after{border-left:none;border-radius:0 var(--aui-border-radius-m) var(--aui-border-radius-m) 0}.aui-input-group__prefix{position:absolute;top:50%;left:calc(var(--aui-inline-padding-xs) + 1px);transform:translateY(-50%);color:rgb(var(--aui-color-secondary-text))}.aui-input-group__suffix{position:absolute;top:50%;right:calc(var(--aui-inline-padding-xs) + 1px);transform:translateY(-50%);color:rgb(var(--aui-color-secondary-text))}.aui-input-group.hasAddonBefore .aui-input{border-top-left-radius:0;border-bottom-left-radius:0}.aui-input-group.hasAddonAfter .aui-input{border-top-right-radius:0;border-bottom-right-radius:0}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
20
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InputGroupComponent, decorators: [{
21
- type: Component,
22
- args: [{ selector: 'aui-input-group', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, preserveWhitespaces: false, template: "<div\n [ngClass]=\"bem.block(inputRef.size$ | async)\"\n [class.isDisabled]=\"inputRef.disabled$ | async\"\n [class.hasAddonBefore]=\"hasAddonBefore$ | async\"\n [class.hasAddonAfter]=\"hasAddonAfter$ | async\"\n [class.hasPrefix]=\"hasPrefix$ | async\"\n [class.hasSuffix]=\"hasSuffix$ | async\"\n>\n <div [class]=\"bem.element('inner-wrapper')\">\n <div\n *ngIf=\"hasAddonBefore$ | async\"\n [class]=\"bem.element('addon', 'before')\"\n >\n <ng-content select=\"[auiInputAddonBefore]\"></ng-content>\n </div>\n <div [class]=\"bem.element('input-wrapper')\">\n <span\n *ngIf=\"hasPrefix$ | async\"\n [class]=\"bem.element('prefix')\"\n >\n <ng-content select=\"[auiInputPrefix]\"></ng-content>\n </span>\n <ng-content></ng-content>\n <span\n *ngIf=\"hasSuffix$ | async\"\n [class]=\"bem.element('suffix')\"\n >\n <ng-content select=\"[auiInputSuffix]\"></ng-content>\n </span>\n </div>\n <div\n *ngIf=\"hasAddonAfter$ | async\"\n [class]=\"bem.element('addon', 'after')\"\n >\n <ng-content select=\"[auiInputAddonAfter]\"></ng-content>\n </div>\n </div>\n</div>\n", styles: [".aui-input-group{display:inline-block;width:100%;color:rgb(var(--aui-color-main-text));font-weight:var(--aui-font-weight-normal)}.aui-input-group.isDisabled{color:rgb(var(--aui-color-disabled-text));cursor:not-allowed}.aui-input-group--large{height:var(--aui-inline-height-l);font-size:var(--aui-font-size-l);line-height:var(--aui-line-height-l)}.aui-input-group--large .aui-input-group__prefix aui-icon,.aui-input-group--large .aui-input-group__suffix aui-icon{font-size:var(--aui-icon-size-l)}.aui-input-group--large.hasPrefix .aui-input{padding-left:calc(var(--aui-inline-padding-xs) * 2 + var(--aui-icon-size-l) + 1px)}.aui-input-group--large.hasSuffix .aui-input{padding-right:calc(var(--aui-inline-padding-xs) * 2 + var(--aui-icon-size-l) + 1px)}.aui-input-group--medium{height:var(--aui-inline-height-m);font-size:var(--aui-font-size-m);line-height:var(--aui-line-height-m)}.aui-input-group--medium .aui-input-group__prefix aui-icon,.aui-input-group--medium .aui-input-group__suffix aui-icon{font-size:var(--aui-icon-size-m)}.aui-input-group--medium.hasPrefix .aui-input{padding-left:calc(var(--aui-inline-padding-xs) * 2 + var(--aui-icon-size-m) + 1px)}.aui-input-group--medium.hasSuffix .aui-input{padding-right:calc(var(--aui-inline-padding-xs) * 2 + var(--aui-icon-size-m) + 1px)}.aui-input-group--small{height:var(--aui-inline-height-s);font-size:var(--aui-font-size-m);line-height:var(--aui-line-height-m)}.aui-input-group--small .aui-input-group__prefix aui-icon,.aui-input-group--small .aui-input-group__suffix aui-icon{font-size:var(--aui-icon-size-m)}.aui-input-group--small.hasPrefix .aui-input{padding-left:calc(var(--aui-inline-padding-xs) * 2 + var(--aui-icon-size-m) + 1px)}.aui-input-group--small.hasSuffix .aui-input{padding-right:calc(var(--aui-inline-padding-xs) * 2 + var(--aui-icon-size-m) + 1px)}.aui-input-group--mini{height:var(--aui-inline-height-xs);font-size:var(--aui-font-size-s);line-height:var(--aui-line-height-s)}.aui-input-group--mini .aui-input-group__prefix aui-icon,.aui-input-group--mini .aui-input-group__suffix aui-icon{font-size:var(--aui-icon-size-s)}.aui-input-group--mini.hasPrefix .aui-input{padding-left:calc(var(--aui-inline-padding-xs) * 2 + var(--aui-icon-size-s) + 1px)}.aui-input-group--mini.hasSuffix .aui-input{padding-right:calc(var(--aui-inline-padding-xs) * 2 + var(--aui-icon-size-s) + 1px)}.aui-input-group__inner-wrapper{display:flex;height:100%}.aui-input-group__input-wrapper{width:100%;position:relative}.aui-input-group__input-wrapper:hover .aui-input{border-color:rgb(var(--aui-color-primary))}.aui-input-group__addon{display:flex;align-items:center;flex-shrink:0;height:100%;padding:0 var(--aui-inline-padding-xs);border:1px solid rgb(var(--aui-color-n-7));background-color:rgb(var(--aui-color-n-8))}.aui-input-group__addon--before{border-right:none;border-radius:var(--aui-border-radius-m) 0 0 var(--aui-border-radius-m)}.aui-input-group__addon--after{border-left:none;border-radius:0 var(--aui-border-radius-m) var(--aui-border-radius-m) 0}.aui-input-group__prefix{position:absolute;top:50%;left:calc(var(--aui-inline-padding-xs) + 1px);transform:translateY(-50%);color:rgb(var(--aui-color-secondary-text))}.aui-input-group__suffix{position:absolute;top:50%;right:calc(var(--aui-inline-padding-xs) + 1px);transform:translateY(-50%);color:rgb(var(--aui-color-secondary-text))}.aui-input-group.hasAddonBefore .aui-input{border-top-left-radius:0;border-bottom-left-radius:0}.aui-input-group.hasAddonAfter .aui-input{border-top-right-radius:0;border-bottom-right-radius:0}\n"] }]
23
- }], propDecorators: { addonBeforeRefs: [{
24
- type: ContentChildren,
25
- args: [InputAddonBeforeDirective]
26
- }], addonAfterRefs: [{
27
- type: ContentChildren,
28
- args: [InputAddonAfterDirective]
29
- }], prefixRefs: [{
30
- type: ContentChildren,
31
- args: [InputPrefixDirective]
32
- }], suffixRefs: [{
33
- type: ContentChildren,
34
- args: [InputSuffixDirective]
35
- }], inputRef: [{
36
- type: ContentChild,
37
- args: [InputComponent, { static: false }]
38
- }] } });
39
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQtZ3JvdXAuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2lucHV0L2lucHV0LWdyb3VwL2lucHV0LWdyb3VwLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uL3NyYy9pbnB1dC9pbnB1dC1ncm91cC9pbnB1dC1ncm91cC5jb21wb25lbnQuaHRtbCJdLCJu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CJcbiAgICAgIFtjbGFzc109XCJiZW0uZWxlbWVudCgnYWRkb24nLCAnYWZ0ZXInKVwiXG4gICAgPlxuICAgICAgPG5nLWNvbnRlbnQgc2VsZWN0PVwiW2F1aUlucHV0QWRkb25BZnRlcl1cIj48L25nLWNvbnRlbnQ+XG4gICAgPC9kaXY+XG4gIDwvZGl2PlxuPC9kaXY+XG4iXX0=
@@ -1,57 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, Input, ViewEncapsulation, } from '@angular/core';
2
- import { BehaviorSubject } from 'rxjs';
3
- import { ComponentSize } from '../types';
4
- import { coerceAttrBoolean } from '../utils';
5
- import * as i0 from "@angular/core";
6
- export class InputComponent {
7
- get size() {
8
- return this._size;
9
- }
10
- set size(val) {
11
- if (!val || this._size === val) {
12
- return;
13
- }
14
- this.renderer.removeClass(this.elementRef.nativeElement, 'aui-input--' + this._size);
15
- this.renderer.addClass(this.elementRef.nativeElement, 'aui-input--' + val);
16
- this._size = val;
17
- this.size$.next(val);
18
- }
19
- get disabled() {
20
- return this._disabled;
21
- }
22
- set disabled(val) {
23
- const booleanVal = coerceAttrBoolean(val);
24
- if (booleanVal === this._disabled) {
25
- return;
26
- }
27
- if (booleanVal) {
28
- this.renderer.setAttribute(this.elementRef.nativeElement, 'disabled', '');
29
- }
30
- else {
31
- this.renderer.removeAttribute(this.elementRef.nativeElement, 'disabled');
32
- }
33
- this._disabled = booleanVal;
34
- this.disabled$.next(booleanVal);
35
- }
36
- constructor(elementRef, renderer) {
37
- this.elementRef = elementRef;
38
- this.renderer = renderer;
39
- this._size = ComponentSize.Medium;
40
- this._disabled = false;
41
- this.size$ = new BehaviorSubject(this.size);
42
- this.disabled$ = new BehaviorSubject(this.disabled);
43
- this.renderer.addClass(this.elementRef.nativeElement, 'aui-input');
44
- this.renderer.addClass(this.elementRef.nativeElement, 'aui-input--' + this.size);
45
- }
46
- }
47
- InputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InputComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
48
- InputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: InputComponent, selector: "input[aui-input],textarea[aui-input]", inputs: { size: "size", disabled: "disabled" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: [".aui-input{display:inline-block;padding:0 var(--aui-inline-padding-xs);width:100%;min-width:0;border:1px solid rgb(var(--aui-color-n-7));border-radius:var(--aui-border-radius-m);background-color:rgb(var(--aui-color-main-bg));color:rgb(var(--aui-color-main-text));outline:none;text-overflow:ellipsis;font-weight:var(--aui-font-weight-normal)}@keyframes cdk-text-field-autofill-color-0{to{background:rgb(var(--aui-color-n-9));color:rgb(var(--aui-color-main-text))}}.aui-input:-webkit-autofill{animation:cdk-text-field-autofill-color-0 both}.aui-input.cdk-text-field-autofill-monitored:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms,cdk-text-field-autofill-color-0 both}.aui-input::-webkit-outer-spin-button,.aui-input::-webkit-inner-spin-button{-webkit-appearance:none;appearance:none;margin:0}.aui-input[type=number]{-webkit-appearance:textfield;appearance:textfield}.aui-input::placeholder{color:rgb(var(--aui-color-placeholder-text))}.aui-input:invalid,.aui-input:required{box-shadow:none}.aui-input:hover{border-color:rgb(var(--aui-color-primary))}.aui-input:focus,.aui-input.isFocused{border-color:rgb(var(--aui-color-primary))}:root .aui-input:focus,:root .aui-input.isFocused{box-shadow:0 0 0 2px rgba(var(--aui-color-primary),.16)}html[aui-theme-mode=light] .aui-input:focus,html[aui-theme-mode=light] .aui-input.isFocused{box-shadow:0 0 0 2px rgba(var(--aui-color-primary),.16)}@media (prefers-color-scheme: dark){html[aui-theme-mode=system] .aui-input:focus,html[aui-theme-mode=system] .aui-input.isFocused{box-shadow:0 0 0 2px rgba(var(--aui-color-primary),.3)}}html[aui-theme-mode=dark] .aui-input:focus,html[aui-theme-mode=dark] .aui-input.isFocused{box-shadow:0 0 0 2px rgba(var(--aui-color-primary),.3)}.aui-input[readonly]{background-color:rgb(var(--aui-color-n-8));border-color:rgb(var(--aui-color-n-7))!important;cursor:default}.aui-input[disabled]{background-color:rgb(var(--aui-color-n-8));border-color:rgb(var(--aui-color-n-7))!important;color:rgb(var(--aui-color-disabled-text));-webkit-text-fill-color:rgb(var(--aui-color-disabled-text));cursor:not-allowed}.aui-input--large{height:var(--aui-inline-height-l);font-size:var(--aui-font-size-l)}.aui-input--medium{height:var(--aui-inline-height-m);font-size:var(--aui-font-size-m)}.aui-input--small{height:var(--aui-inline-height-s);font-size:var(--aui-font-size-m)}.aui-input--mini{height:var(--aui-inline-height-xs);font-size:var(--aui-font-size-s)}textarea.aui-input{padding:var(--aui-inline-padding-xxs) var(--aui-inline-padding-xs);height:calc(var(--aui-inline-padding-xxs) * 2 + var(--aui-line-height-m) * 3 + 2px);max-height:calc(var(--aui-inline-padding-xxs) * 2 + var(--aui-line-height-m) * 6 + 2px);min-height:var(--aui-inline-height-m);font-size:var(--aui-font-size-m);line-height:var(--aui-line-height-m);font-weight:var(--aui-font-weight-normal);color:rgb(var(--aui-color-main-text));resize:vertical;overflow:auto}.aui-input.ng-invalid.ng-dirty,.ng-submitted .aui-input.ng-invalid{border-color:rgb(var(--aui-color-red))!important}:root .aui-input.ng-invalid.ng-dirty:focus,:root .aui-input.ng-invalid.ng-dirty.isFocused,:root .ng-submitted .aui-input.ng-invalid:focus,:root .ng-submitted .aui-input.ng-invalid.isFocused{box-shadow:0 0 0 2px rgba(var(--aui-color-red),.16)}html[aui-theme-mode=light] .aui-input.ng-invalid.ng-dirty:focus,html[aui-theme-mode=light] .aui-input.ng-invalid.ng-dirty.isFocused,html[aui-theme-mode=light] .ng-submitted .aui-input.ng-invalid:focus,html[aui-theme-mode=light] .ng-submitted .aui-input.ng-invalid.isFocused{box-shadow:0 0 0 2px rgba(var(--aui-color-red),.16)}@media (prefers-color-scheme: dark){html[aui-theme-mode=system] .aui-input.ng-invalid.ng-dirty:focus,html[aui-theme-mode=system] .aui-input.ng-invalid.ng-dirty.isFocused,html[aui-theme-mode=system] .ng-submitted .aui-input.ng-invalid:focus,html[aui-theme-mode=system] .ng-submitted .aui-input.ng-invalid.isFocused{box-shadow:0 0 0 2px rgba(var(--aui-color-red),.3)}}html[aui-theme-mode=dark] .aui-input.ng-invalid.ng-dirty:focus,html[aui-theme-mode=dark] .aui-input.ng-invalid.ng-dirty.isFocused,html[aui-theme-mode=dark] .ng-submitted .aui-input.ng-invalid:focus,html[aui-theme-mode=dark] .ng-submitted .aui-input.ng-invalid.isFocused{box-shadow:0 0 0 2px rgba(var(--aui-color-red),.3)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
49
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InputComponent, decorators: [{
50
- type: Component,
51
- args: [{ selector: 'input[aui-input],textarea[aui-input]', template: '<ng-content></ng-content>', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, preserveWhitespaces: false, styles: [".aui-input{display:inline-block;padding:0 var(--aui-inline-padding-xs);width:100%;min-width:0;border:1px solid rgb(var(--aui-color-n-7));border-radius:var(--aui-border-radius-m);background-color:rgb(var(--aui-color-main-bg));color:rgb(var(--aui-color-main-text));outline:none;text-overflow:ellipsis;font-weight:var(--aui-font-weight-normal)}@keyframes cdk-text-field-autofill-color-0{to{background:rgb(var(--aui-color-n-9));color:rgb(var(--aui-color-main-text))}}.aui-input:-webkit-autofill{animation:cdk-text-field-autofill-color-0 both}.aui-input.cdk-text-field-autofill-monitored:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms,cdk-text-field-autofill-color-0 both}.aui-input::-webkit-outer-spin-button,.aui-input::-webkit-inner-spin-button{-webkit-appearance:none;appearance:none;margin:0}.aui-input[type=number]{-webkit-appearance:textfield;appearance:textfield}.aui-input::placeholder{color:rgb(var(--aui-color-placeholder-text))}.aui-input:invalid,.aui-input:required{box-shadow:none}.aui-input:hover{border-color:rgb(var(--aui-color-primary))}.aui-input:focus,.aui-input.isFocused{border-color:rgb(var(--aui-color-primary))}:root .aui-input:focus,:root .aui-input.isFocused{box-shadow:0 0 0 2px rgba(var(--aui-color-primary),.16)}html[aui-theme-mode=light] .aui-input:focus,html[aui-theme-mode=light] .aui-input.isFocused{box-shadow:0 0 0 2px rgba(var(--aui-color-primary),.16)}@media (prefers-color-scheme: dark){html[aui-theme-mode=system] .aui-input:focus,html[aui-theme-mode=system] .aui-input.isFocused{box-shadow:0 0 0 2px rgba(var(--aui-color-primary),.3)}}html[aui-theme-mode=dark] .aui-input:focus,html[aui-theme-mode=dark] .aui-input.isFocused{box-shadow:0 0 0 2px rgba(var(--aui-color-primary),.3)}.aui-input[readonly]{background-color:rgb(var(--aui-color-n-8));border-color:rgb(var(--aui-color-n-7))!important;cursor:default}.aui-input[disabled]{background-color:rgb(var(--aui-color-n-8));border-color:rgb(var(--aui-color-n-7))!important;color:rgb(var(--aui-color-disabled-text));-webkit-text-fill-color:rgb(var(--aui-color-disabled-text));cursor:not-allowed}.aui-input--large{height:var(--aui-inline-height-l);font-size:var(--aui-font-size-l)}.aui-input--medium{height:var(--aui-inline-height-m);font-size:var(--aui-font-size-m)}.aui-input--small{height:var(--aui-inline-height-s);font-size:var(--aui-font-size-m)}.aui-input--mini{height:var(--aui-inline-height-xs);font-size:var(--aui-font-size-s)}textarea.aui-input{padding:var(--aui-inline-padding-xxs) var(--aui-inline-padding-xs);height:calc(var(--aui-inline-padding-xxs) * 2 + var(--aui-line-height-m) * 3 + 2px);max-height:calc(var(--aui-inline-padding-xxs) * 2 + var(--aui-line-height-m) * 6 + 2px);min-height:var(--aui-inline-height-m);font-size:var(--aui-font-size-m);line-height:var(--aui-line-height-m);font-weight:var(--aui-font-weight-normal);color:rgb(var(--aui-color-main-text));resize:vertical;overflow:auto}.aui-input.ng-invalid.ng-dirty,.ng-submitted .aui-input.ng-invalid{border-color:rgb(var(--aui-color-red))!important}:root .aui-input.ng-invalid.ng-dirty:focus,:root .aui-input.ng-invalid.ng-dirty.isFocused,:root .ng-submitted .aui-input.ng-invalid:focus,:root .ng-submitted .aui-input.ng-invalid.isFocused{box-shadow:0 0 0 2px rgba(var(--aui-color-red),.16)}html[aui-theme-mode=light] .aui-input.ng-invalid.ng-dirty:focus,html[aui-theme-mode=light] .aui-input.ng-invalid.ng-dirty.isFocused,html[aui-theme-mode=light] .ng-submitted .aui-input.ng-invalid:focus,html[aui-theme-mode=light] .ng-submitted .aui-input.ng-invalid.isFocused{box-shadow:0 0 0 2px rgba(var(--aui-color-red),.16)}@media (prefers-color-scheme: dark){html[aui-theme-mode=system] .aui-input.ng-invalid.ng-dirty:focus,html[aui-theme-mode=system] .aui-input.ng-invalid.ng-dirty.isFocused,html[aui-theme-mode=system] .ng-submitted .aui-input.ng-invalid:focus,html[aui-theme-mode=system] .ng-submitted .aui-input.ng-invalid.isFocused{box-shadow:0 0 0 2px rgba(var(--aui-color-red),.3)}}html[aui-theme-mode=dark] .aui-input.ng-invalid.ng-dirty:focus,html[aui-theme-mode=dark] .aui-input.ng-invalid.ng-dirty.isFocused,html[aui-theme-mode=dark] .ng-submitted .aui-input.ng-invalid:focus,html[aui-theme-mode=dark] .ng-submitted .aui-input.ng-invalid.isFocused{box-shadow:0 0 0 2px rgba(var(--aui-color-red),.3)}\n"] }]
52
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }]; }, propDecorators: { size: [{
53
- type: Input
54
- }], disabled: [{
55
- type: Input
56
- }] } });
57
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2lucHV0L2lucHV0LmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpb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zaXplLFxuICAgICk7XG4gIH1cbn1cbiJdfQ==
@@ -1,112 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, ElementRef, Input, ViewChild, ViewEncapsulation, forwardRef, ContentChildren, } from '@angular/core';
2
- import { NG_VALUE_ACCESSOR } from '@angular/forms';
3
- import { CommonFormControl } from '../../form';
4
- import { ComponentSize } from '../../types';
5
- import { buildBem, coerceNumber, watchContentExist } from '../../utils';
6
- import { InputAddonAfterDirective, InputAddonBeforeDirective, } from '../helper-directives';
7
- import * as i0 from "@angular/core";
8
- import * as i1 from "@angular/common";
9
- import * as i2 from "../../icon/icon.component";
10
- import * as i3 from "../../shared/click-outside.directive";
11
- export class NumberInputComponent extends CommonFormControl {
12
- constructor() {
13
- super(...arguments);
14
- this.bem = buildBem('aui-number-input');
15
- this.size = ComponentSize.Medium;
16
- this.min = Number.MIN_SAFE_INTEGER;
17
- this.max = Number.MAX_SAFE_INTEGER;
18
- this.step = 1;
19
- this.controls = true;
20
- this.placeholder = '';
21
- this.controlsPosition = '';
22
- this.angleControls = false;
23
- this.clearable = false;
24
- this.isFocus = false;
25
- }
26
- ngAfterContentInit() {
27
- this.hasAddonBefore$ = watchContentExist(this.addonBeforeRefs);
28
- this.hasAddonAfter$ = watchContentExist(this.addonAfterRefs);
29
- }
30
- ngAfterViewInit() {
31
- this.inputRef.nativeElement.value = (this.model ?? '') + '';
32
- }
33
- valueIn(v) {
34
- if (this.inputRef) {
35
- this.inputRef.nativeElement.value = (v ?? '') + '';
36
- }
37
- return v;
38
- }
39
- modelOut(value) {
40
- return value === null && this.clearable
41
- ? value
42
- : Math.max(coerceNumber(this.min, Number.MIN_SAFE_INTEGER), Math.min(coerceNumber(this.max, Number.MAX_SAFE_INTEGER), this.parsePrecision(value)));
43
- }
44
- inputChanged(value) {
45
- this.emitModel(coerceNumber(value, !value && this.clearable ? null : this.model));
46
- }
47
- takeOneStep(positive) {
48
- if (positive) {
49
- this.emitModel((this.model ?? 0) + this.step);
50
- }
51
- else {
52
- this.emitModel((this.model ?? 0) - this.step);
53
- }
54
- }
55
- parsePrecision(value) {
56
- const precision = this.precision ?? this.getStepPrecision();
57
- return parseFloat(value.toFixed(precision));
58
- }
59
- getStepPrecision() {
60
- const step = this.step + '';
61
- const index = step.indexOf('.');
62
- return index < 0 ? 0 : step.slice(index + 1).length;
63
- }
64
- }
65
- NumberInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NumberInputComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
66
- NumberInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: NumberInputComponent, selector: "aui-number-input", inputs: { size: "size", min: "min", max: "max", step: "step", precision: "precision", controls: "controls", placeholder: "placeholder", controlsPosition: "controlsPosition", angleControls: "angleControls", clearable: "clearable" }, providers: [
67
- {
68
- provide: NG_VALUE_ACCESSOR,
69
- useExisting: forwardRef(() => NumberInputComponent),
70
- multi: true,
71
- },
72
- ], queries: [{ propertyName: "addonBeforeRefs", predicate: InputAddonBeforeDirective }, { propertyName: "addonAfterRefs", predicate: InputAddonAfterDirective }], viewQueries: [{ propertyName: "inputRef", first: true, predicate: ["inputRef"], descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: "<div\n [class]=\"bem.block(size)\"\n [ngClass]=\"{\n isFocused: isFocus,\n isDisabled: disabled,\n hasBefore: hasAddonBefore$ | async,\n hasAfter: hasAddonAfter$ | async\n }\"\n>\n <div\n *ngIf=\"hasAddonBefore$ | async\"\n [class]=\"bem.element('addon', 'before')\"\n >\n <ng-content select=\"[auiInputAddonBefore]\"></ng-content>\n </div>\n <div\n [class]=\"bem.element('inner')\"\n auiClickOutside\n (auiClickOutside)=\"isFocus = false\"\n >\n <button\n *ngIf=\"controls && !angleControls\"\n type=\"button\"\n [ngClass]=\"bem.element('control', 'decrease')\"\n [disabled]=\"disabled || model <= min\"\n (click)=\"takeOneStep(false); isFocus = true\"\n >\n <aui-icon icon=\"minus\"></aui-icon>\n </button>\n <input\n #inputRef\n autocomplete=\"off\"\n (change)=\"inputChanged($any($event).target.value)\"\n [disabled]=\"disabled\"\n [ngClass]=\"bem.element('input')\"\n [placeholder]=\"placeholder\"\n (focus)=\"isFocus = true\"\n (blur)=\"isFocus = false\"\n [ngStyle]=\"{ 'text-align': angleControls ? 'left' : 'center' }\"\n />\n <button\n *ngIf=\"controls && !angleControls\"\n type=\"button\"\n [ngClass]=\"bem.element('control', 'increase')\"\n [disabled]=\"disabled || model >= max\"\n (click)=\"takeOneStep(true); isFocus = true\"\n >\n <aui-icon icon=\"plus\"></aui-icon>\n </button>\n <div\n *ngIf=\"controls && angleControls\"\n class=\"aui-number-input__controls\"\n >\n <button\n type=\"button\"\n [ngClass]=\"bem.element('control', 'angle-up')\"\n [disabled]=\"disabled || model >= max\"\n (click)=\"takeOneStep(true); isFocus = true\"\n >\n <aui-icon icon=\"angle_up\"></aui-icon>\n </button>\n <button\n type=\"button\"\n [ngClass]=\"bem.element('control', 'angle-down')\"\n [disabled]=\"disabled || model <= min\"\n (click)=\"takeOneStep(false); isFocus = true\"\n >\n <aui-icon icon=\"angle_down\"></aui-icon>\n </button>\n </div>\n </div>\n <div\n *ngIf=\"hasAddonAfter$ | async\"\n [class]=\"bem.element('addon', 'after')\"\n >\n <ng-content select=\"[auiInputAddonAfter]\"></ng-content>\n </div>\n</div>\n", styles: [".aui-number-input{display:inline-flex;height:var(--aui-inline-height-m);color:rgb(var(--aui-color-main-text));background-color:rgb(var(--aui-color-main-bg));border-radius:var(--aui-border-radius-m)}.aui-number-input--small{height:var(--aui-inline-height-s)}.aui-number-input--small .aui-number-input__inner{width:132px}.aui-number-input--small .aui-number-input__control{width:var(--aui-inline-height-s)}.aui-number-input--small .aui-number-input__control--angle-up,.aui-number-input--small .aui-number-input__control--angle-down{width:calc(var(--aui-inline-height-s) - 2px)}.aui-number-input__inner{display:flex;width:var(--aui-form-item-width-s);height:100%;border:1px solid rgb(var(--aui-color-n-7));border-radius:var(--aui-border-radius-m);color:inherit;background-color:inherit;z-index:1}.aui-number-input__inner:hover{border-color:rgb(var(--aui-color-primary))}.aui-number-input__input{margin:0;padding:0 calc(var(--aui-spacing-m) + 1px);min-width:0;height:100%;border:0;border-radius:inherit;background-color:inherit;color:inherit;-webkit-text-fill-color:inherit;cursor:inherit;outline:none}.aui-number-input:hover:not(.isDisabled) .aui-number-input__inner .aui-number-input__controls{display:flex}.aui-number-input.isFocused .aui-number-input__inner{border-color:rgb(var(--aui-color-primary))}:root .aui-number-input.isFocused .aui-number-input__inner{box-shadow:0 0 0 2px rgba(var(--aui-color-primary),.16)}html[aui-theme-mode=light] .aui-number-input.isFocused .aui-number-input__inner{box-shadow:0 0 0 2px rgba(var(--aui-color-primary),.16)}@media (prefers-color-scheme: dark){html[aui-theme-mode=system] .aui-number-input.isFocused .aui-number-input__inner{box-shadow:0 0 0 2px rgba(var(--aui-color-primary),.3)}}html[aui-theme-mode=dark] .aui-number-input.isFocused .aui-number-input__inner{box-shadow:0 0 0 2px rgba(var(--aui-color-primary),.3)}.aui-number-input.isDisabled{color:rgb(var(--aui-color-disabled-text));background-color:rgb(var(--aui-color-n-8));cursor:not-allowed}.aui-number-input.isDisabled .aui-number-input__inner{border:1px solid rgb(var(--aui-color-n-7))}.aui-number-input.hasBefore .aui-number-input__inner{border-radius:0 var(--aui-border-radius-m) var(--aui-border-radius-m) 0}.aui-number-input.hasAfter .aui-number-input__inner{border-radius:var(--aui-border-radius-m) 0 0 var(--aui-border-radius-m)}.aui-number-input.hasBefore.hasAfter .aui-number-input__inner{border-radius:0}.aui-number-input:not(.hasAfter) .aui-number-input__control--angle-up{border-top-right-radius:var(--aui-border-radius-m)}.aui-number-input:not(.hasAfter) .aui-number-input__control--angle-down{border-bottom-right-radius:var(--aui-border-radius-m)}.aui-number-input__control{flex-shrink:0;width:calc(var(--aui-inline-height-m) - 2px);border:none;color:rgb(var(--aui-color-main-text));background-color:rgb(var(--aui-color-main-bg));background-clip:padding-box;cursor:pointer;outline:none;position:relative;height:100%;font-size:var(--aui-font-size-s);line-height:var(--aui-line-height-s);font-weight:var(--aui-font-weight-normal)}.aui-number-input__control:hover{color:rgb(var(--aui-color-primary));background-color:rgb(var(--aui-color-p-6))}.aui-number-input__control:active{color:rgb(var(--aui-color-primary));background-color:rgb(var(--aui-color-p-5))}:root .aui-number-input__control:focus-visible{box-shadow:0 0 0 2px rgba(var(--aui-color-primary),.16)}html[aui-theme-mode=light] .aui-number-input__control:focus-visible{box-shadow:0 0 0 2px rgba(var(--aui-color-primary),.16)}@media (prefers-color-scheme: dark){html[aui-theme-mode=system] .aui-number-input__control:focus-visible{box-shadow:0 0 0 2px rgba(var(--aui-color-primary),.3)}}html[aui-theme-mode=dark] .aui-number-input__control:focus-visible{box-shadow:0 0 0 2px rgba(var(--aui-color-primary),.3)}.aui-number-input__control[disabled]{color:rgb(var(--aui-color-disabled-text));background-color:rgb(var(--aui-color-n-8));cursor:not-allowed}.aui-number-input__control:before{content:\"\";display:block;position:absolute;top:0;left:-1px;width:0;height:100%;border-right:1px solid rgb(var(--aui-color-border))}.aui-number-input__control--decrease{border-radius:var(--aui-border-radius-m) 0 0 var(--aui-border-radius-m)}.aui-number-input__control--decrease:before{left:100%}.aui-number-input__control--increase{border-radius:0 var(--aui-border-radius-m) var(--aui-border-radius-m) 0}.aui-number-input__control--angle-up,.aui-number-input__control--angle-down{width:calc(var(--aui-inline-height-m) - 2px);height:calc(50% - .5px)!important;border:none;display:flex;align-items:center;justify-content:center}.aui-number-input__control--angle-up:focus,.aui-number-input__control--angle-down:focus{z-index:1}.aui-number-input__control--angle-down{margin-top:1px}.aui-number-input__controls{display:none;flex-direction:column;border-left:1px solid rgb(var(--aui-color-border));position:relative}.aui-number-input__controls:after{content:\"\";display:block;width:100%;height:1px;position:absolute;left:0;top:50%;transform:translateY(-50%);background-color:rgb(var(--aui-color-border))}.aui-number-input__addon{display:flex;align-items:center;flex-shrink:0;padding:0 var(--aui-inline-padding-xs);border:1px solid rgb(var(--aui-color-n-7));background-color:rgb(var(--aui-color-n-8));font-size:var(--aui-font-size-m);line-height:var(--aui-line-height-m);font-weight:var(--aui-font-weight-normal)}.aui-number-input__addon--before{border-right:none;border-radius:var(--aui-border-radius-m) 0 0 var(--aui-border-radius-m)}.aui-number-input__addon--after{border-left:none;border-radius:0 var(--aui-border-radius-m) var(--aui-border-radius-m) 0}aui-number-input.ng-invalid.ng-dirty .aui-number-input__inner,.ng-submitted aui-number-input.ng-invalid .aui-number-input__inner{border-color:rgb(var(--aui-color-red))}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i2.IconComponent, selector: "aui-icon", inputs: ["icon", "light", "dark", "link", "margin", "size", "color", "background", "backgroundColor"] }, { kind: "directive", type: i3.ClickOutsideDirective, selector: "[auiClickOutside]", outputs: ["auiClickOutside"], exportAs: ["auiClickOutside"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
73
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NumberInputComponent, decorators: [{
74
- type: Component,
75
- args: [{ selector: 'aui-number-input', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, preserveWhitespaces: false, providers: [
76
- {
77
- provide: NG_VALUE_ACCESSOR,
78
- useExisting: forwardRef(() => NumberInputComponent),
79
- multi: true,
80
- },
81
- ], template: "<div\n [class]=\"bem.block(size)\"\n [ngClass]=\"{\n isFocused: isFocus,\n isDisabled: disabled,\n hasBefore: hasAddonBefore$ | async,\n hasAfter: hasAddonAfter$ | async\n }\"\n>\n <div\n *ngIf=\"hasAddonBefore$ | async\"\n [class]=\"bem.element('addon', 'before')\"\n >\n <ng-content select=\"[auiInputAddonBefore]\"></ng-content>\n </div>\n <div\n [class]=\"bem.element('inner')\"\n auiClickOutside\n (auiClickOutside)=\"isFocus = false\"\n >\n <button\n *ngIf=\"controls && !angleControls\"\n type=\"button\"\n [ngClass]=\"bem.element('control', 'decrease')\"\n [disabled]=\"disabled || model <= min\"\n (click)=\"takeOneStep(false); isFocus = true\"\n >\n <aui-icon icon=\"minus\"></aui-icon>\n </button>\n <input\n #inputRef\n autocomplete=\"off\"\n (change)=\"inputChanged($any($event).target.value)\"\n [disabled]=\"disabled\"\n [ngClass]=\"bem.element('input')\"\n [placeholder]=\"placeholder\"\n (focus)=\"isFocus = true\"\n (blur)=\"isFocus = false\"\n [ngStyle]=\"{ 'text-align': angleControls ? 'left' : 'center' }\"\n />\n <button\n *ngIf=\"controls && !angleControls\"\n type=\"button\"\n [ngClass]=\"bem.element('control', 'increase')\"\n [disabled]=\"disabled || model >= max\"\n (click)=\"takeOneStep(true); isFocus = true\"\n >\n <aui-icon icon=\"plus\"></aui-icon>\n </button>\n <div\n *ngIf=\"controls && angleControls\"\n class=\"aui-number-input__controls\"\n >\n <button\n type=\"button\"\n [ngClass]=\"bem.element('control', 'angle-up')\"\n [disabled]=\"disabled || model >= max\"\n (click)=\"takeOneStep(true); isFocus = true\"\n >\n <aui-icon icon=\"angle_up\"></aui-icon>\n </button>\n <button\n type=\"button\"\n [ngClass]=\"bem.element('control', 'angle-down')\"\n [disabled]=\"disabled || model <= min\"\n (click)=\"takeOneStep(false); isFocus = true\"\n >\n <aui-icon icon=\"angle_down\"></aui-icon>\n </button>\n </div>\n </div>\n <div\n *ngIf=\"hasAddonAfter$ | async\"\n [class]=\"bem.element('addon', 'after')\"\n >\n <ng-content select=\"[auiInputAddonAfter]\"></ng-content>\n </div>\n</div>\n", styles: [".aui-number-input{display:inline-flex;height:var(--aui-inline-height-m);color:rgb(var(--aui-color-main-text));background-color:rgb(var(--aui-color-main-bg));border-radius:var(--aui-border-radius-m)}.aui-number-input--small{height:var(--aui-inline-height-s)}.aui-number-input--small .aui-number-input__inner{width:132px}.aui-number-input--small .aui-number-input__control{width:var(--aui-inline-height-s)}.aui-number-input--small .aui-number-input__control--angle-up,.aui-number-input--small .aui-number-input__control--angle-down{width:calc(var(--aui-inline-height-s) - 2px)}.aui-number-input__inner{display:flex;width:var(--aui-form-item-width-s);height:100%;border:1px solid rgb(var(--aui-color-n-7));border-radius:var(--aui-border-radius-m);color:inherit;background-color:inherit;z-index:1}.aui-number-input__inner:hover{border-color:rgb(var(--aui-color-primary))}.aui-number-input__input{margin:0;padding:0 calc(var(--aui-spacing-m) + 1px);min-width:0;height:100%;border:0;border-radius:inherit;background-color:inherit;color:inherit;-webkit-text-fill-color:inherit;cursor:inherit;outline:none}.aui-number-input:hover:not(.isDisabled) .aui-number-input__inner .aui-number-input__controls{display:flex}.aui-number-input.isFocused .aui-number-input__inner{border-color:rgb(var(--aui-color-primary))}:root .aui-number-input.isFocused .aui-number-input__inner{box-shadow:0 0 0 2px rgba(var(--aui-color-primary),.16)}html[aui-theme-mode=light] .aui-number-input.isFocused .aui-number-input__inner{box-shadow:0 0 0 2px rgba(var(--aui-color-primary),.16)}@media (prefers-color-scheme: dark){html[aui-theme-mode=system] .aui-number-input.isFocused .aui-number-input__inner{box-shadow:0 0 0 2px rgba(var(--aui-color-primary),.3)}}html[aui-theme-mode=dark] .aui-number-input.isFocused .aui-number-input__inner{box-shadow:0 0 0 2px rgba(var(--aui-color-primary),.3)}.aui-number-input.isDisabled{color:rgb(var(--aui-color-disabled-text));background-color:rgb(var(--aui-color-n-8));cursor:not-allowed}.aui-number-input.isDisabled .aui-number-input__inner{border:1px solid rgb(var(--aui-color-n-7))}.aui-number-input.hasBefore .aui-number-input__inner{border-radius:0 var(--aui-border-radius-m) var(--aui-border-radius-m) 0}.aui-number-input.hasAfter .aui-number-input__inner{border-radius:var(--aui-border-radius-m) 0 0 var(--aui-border-radius-m)}.aui-number-input.hasBefore.hasAfter .aui-number-input__inner{border-radius:0}.aui-number-input:not(.hasAfter) .aui-number-input__control--angle-up{border-top-right-radius:var(--aui-border-radius-m)}.aui-number-input:not(.hasAfter) .aui-number-input__control--angle-down{border-bottom-right-radius:var(--aui-border-radius-m)}.aui-number-input__control{flex-shrink:0;width:calc(var(--aui-inline-height-m) - 2px);border:none;color:rgb(var(--aui-color-main-text));background-color:rgb(var(--aui-color-main-bg));background-clip:padding-box;cursor:pointer;outline:none;position:relative;height:100%;font-size:var(--aui-font-size-s);line-height:var(--aui-line-height-s);font-weight:var(--aui-font-weight-normal)}.aui-number-input__control:hover{color:rgb(var(--aui-color-primary));background-color:rgb(var(--aui-color-p-6))}.aui-number-input__control:active{color:rgb(var(--aui-color-primary));background-color:rgb(var(--aui-color-p-5))}:root .aui-number-input__control:focus-visible{box-shadow:0 0 0 2px rgba(var(--aui-color-primary),.16)}html[aui-theme-mode=light] .aui-number-input__control:focus-visible{box-shadow:0 0 0 2px rgba(var(--aui-color-primary),.16)}@media (prefers-color-scheme: dark){html[aui-theme-mode=system] .aui-number-input__control:focus-visible{box-shadow:0 0 0 2px rgba(var(--aui-color-primary),.3)}}html[aui-theme-mode=dark] .aui-number-input__control:focus-visible{box-shadow:0 0 0 2px rgba(var(--aui-color-primary),.3)}.aui-number-input__control[disabled]{color:rgb(var(--aui-color-disabled-text));background-color:rgb(var(--aui-color-n-8));cursor:not-allowed}.aui-number-input__control:before{content:\"\";display:block;position:absolute;top:0;left:-1px;width:0;height:100%;border-right:1px solid rgb(var(--aui-color-border))}.aui-number-input__control--decrease{border-radius:var(--aui-border-radius-m) 0 0 var(--aui-border-radius-m)}.aui-number-input__control--decrease:before{left:100%}.aui-number-input__control--increase{border-radius:0 var(--aui-border-radius-m) var(--aui-border-radius-m) 0}.aui-number-input__control--angle-up,.aui-number-input__control--angle-down{width:calc(var(--aui-inline-height-m) - 2px);height:calc(50% - .5px)!important;border:none;display:flex;align-items:center;justify-content:center}.aui-number-input__control--angle-up:focus,.aui-number-input__control--angle-down:focus{z-index:1}.aui-number-input__control--angle-down{margin-top:1px}.aui-number-input__controls{display:none;flex-direction:column;border-left:1px solid rgb(var(--aui-color-border));position:relative}.aui-number-input__controls:after{content:\"\";display:block;width:100%;height:1px;position:absolute;left:0;top:50%;transform:translateY(-50%);background-color:rgb(var(--aui-color-border))}.aui-number-input__addon{display:flex;align-items:center;flex-shrink:0;padding:0 var(--aui-inline-padding-xs);border:1px solid rgb(var(--aui-color-n-7));background-color:rgb(var(--aui-color-n-8));font-size:var(--aui-font-size-m);line-height:var(--aui-line-height-m);font-weight:var(--aui-font-weight-normal)}.aui-number-input__addon--before{border-right:none;border-radius:var(--aui-border-radius-m) 0 0 var(--aui-border-radius-m)}.aui-number-input__addon--after{border-left:none;border-radius:0 var(--aui-border-radius-m) var(--aui-border-radius-m) 0}aui-number-input.ng-invalid.ng-dirty .aui-number-input__inner,.ng-submitted aui-number-input.ng-invalid .aui-number-input__inner{border-color:rgb(var(--aui-color-red))}\n"] }]
82
- }], propDecorators: { size: [{
83
- type: Input
84
- }], min: [{
85
- type: Input
86
- }], max: [{
87
- type: Input
88
- }], step: [{
89
- type: Input
90
- }], precision: [{
91
- type: Input
92
- }], controls: [{
93
- type: Input
94
- }], placeholder: [{
95
- type: Input
96
- }], controlsPosition: [{
97
- type: Input
98
- }], angleControls: [{
99
- type: Input
100
- }], clearable: [{
101
- type: Input
102
- }], inputRef: [{
103
- type: ViewChild,
104
- args: ['inputRef', { read: ElementRef }]
105
- }], addonBeforeRefs: [{
106
- type: ContentChildren,
107
- args: [InputAddonBeforeDirective]
108
- }], addonAfterRefs: [{
109
- type: ContentChildren,
110
- args: [InputAddonAfterDirective]
111
- }] } });
112
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnVtYmVyLWlucHV0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiL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gICAgICAgIDxhdWktaWNvbiBpY29uPVwiYW5nbGVfZG93blwiPjwvYXVpLWljb24+XG4gICAgICA8L2J1dHRvbj5cbiAgICA8L2Rpdj5cbiAgPC9kaXY+XG4gIDxkaXZcbiAgICAqbmdJZj1cImhhc0FkZG9uQWZ0ZXIkIHwgYXN5bmNcIlxuICAgIFtjbGFzc109XCJiZW0uZWxlbWVudCgnYWRkb24nLCAnYWZ0ZXInKVwiXG4gID5cbiAgICA8bmctY29udGVudCBzZWxlY3Q9XCJbYXVpSW5wdXRBZGRvbkFmdGVyXVwiPjwvbmctY29udGVudD5cbiAgPC9kaXY+XG48L2Rpdj5cbiJdfQ==
@@ -1,88 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, ElementRef, EventEmitter, Input, Output, ViewChild, ViewEncapsulation, } from '@angular/core';
2
- import { ComponentSize } from '../../types';
3
- import { buildBem } from '../../utils';
4
- import * as i0 from "@angular/core";
5
- import * as i1 from "@angular/common";
6
- import * as i2 from "@angular/forms";
7
- import * as i3 from "../../icon/icon.component";
8
- import * as i4 from "../input.component";
9
- export class SearchComponent {
10
- constructor() {
11
- this.bem = buildBem('aui-search');
12
- this.size = ComponentSize.Medium;
13
- this.searchButton = false;
14
- this.clearable = true;
15
- this.searching = false;
16
- this.placeholder = '';
17
- this.disabled = false;
18
- this.keywordChange = new EventEmitter();
19
- this.search = new EventEmitter();
20
- this.clear = new EventEmitter();
21
- this.value = '';
22
- }
23
- get keyword() {
24
- return this.value;
25
- }
26
- set keyword(value) {
27
- this.value = value;
28
- }
29
- get showSpinner() {
30
- return this.searching && !this.searchButton;
31
- }
32
- get showClear() {
33
- return !this.disabled && this.clearable && this.value && !this.showSpinner;
34
- }
35
- focus() {
36
- this.inputRef.nativeElement.focus();
37
- }
38
- emitChange(value) {
39
- this.value = value;
40
- this.keywordChange.emit(value);
41
- }
42
- emitSearch() {
43
- if (this.disabled) {
44
- return;
45
- }
46
- this.search.emit(this.value);
47
- }
48
- emitClear() {
49
- if (this.disabled) {
50
- return;
51
- }
52
- this.value = '';
53
- this.keywordChange.emit('');
54
- this.search.emit('');
55
- this.clear.emit();
56
- this.inputRef.nativeElement.focus();
57
- }
58
- }
59
- SearchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SearchComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
60
- SearchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SearchComponent, selector: "aui-search", inputs: { size: "size", searchButton: "searchButton", clearable: "clearable", searching: "searching", placeholder: "placeholder", disabled: "disabled", keyword: "keyword" }, outputs: { keywordChange: "keywordChange", search: "search", clear: "clear" }, viewQueries: [{ propertyName: "inputRef", first: true, predicate: ["input"], descendants: true, read: ElementRef }], ngImport: i0, template: "<div\n [ngClass]=\"bem.block(size)\"\n [class.hasIcon]=\"!searchButton\"\n [class.hasButton]=\"searchButton\"\n [class.isClearable]=\"showClear\"\n [class.isSearching]=\"searching\"\n [class.isDisabled]=\"disabled\"\n>\n <div\n *ngIf=\"!searchButton\"\n [class]=\"bem.element('icon')\"\n >\n <aui-icon icon=\"magnifier\"></aui-icon>\n </div>\n <input\n #input\n aui-input\n autocomplete=\"off\"\n [ngModel]=\"value\"\n (ngModelChange)=\"emitChange($event)\"\n [disabled]=\"disabled\"\n (keyup.enter)=\"emitSearch()\"\n [ngClass]=\"bem.element('input')\"\n [placeholder]=\"placeholder\"\n [size]=\"size\"\n />\n <div\n *ngIf=\"showSpinner\"\n [class]=\"bem.element('spinner')\"\n >\n <aui-icon icon=\"spinner\"></aui-icon>\n </div>\n <div\n [hidden]=\"!showClear\"\n [class]=\"bem.element('clear')\"\n (click)=\"emitClear()\"\n >\n <aui-icon icon=\"xmark_small\"></aui-icon>\n </div>\n <div\n *ngIf=\"searchButton\"\n [class]=\"bem.element('button')\"\n (click)=\"emitSearch()\"\n >\n <div [class]=\"bem.element('button-icon')\">\n <aui-icon [icon]=\"searching ? 'spinner' : 'magnifier'\"></aui-icon>\n </div>\n </div>\n</div>\n", styles: [".aui-search{display:inline-block;width:100%;position:relative;color:rgb(var(--aui-color-n-4))}.aui-search.isDisabled{color:rgb(var(--aui-color-disabled-text));cursor:not-allowed}.aui-search--large{font-size:var(--aui-font-size-l);line-height:var(--aui-line-height-l)}.aui-search--large aui-icon{font-size:var(--aui-icon-size-l)}.aui-search--large .aui-search__clear,.aui-search--large .aui-search__spinner{right:calc(var(--aui-inline-padding-xs) + 1px)}.aui-search--large .aui-search__icon{left:calc(var(--aui-inline-padding-xs) + 1px)}.aui-search--large .aui-search__button-icon{padding:0 var(--aui-inline-padding-xs);color:rgb(var(--aui-color-n-2))}.aui-search--large.hasIcon .aui-search__input{padding-left:calc(var(--aui-icon-size-l) + var(--aui-inline-padding-xs) * 2 + 1px)}.aui-search--large.hasIcon.isSearching .aui-search__input,.aui-search--large.hasIcon.isClearable .aui-search__input{padding-right:calc(var(--aui-icon-size-l) + var(--aui-inline-padding-xs) * 2 + 1px)}.aui-search--large.hasButton .aui-search__input{padding-right:calc(var(--aui-icon-size-l) + var(--aui-inline-padding-xs) * 3 + 1px)}.aui-search--large.hasButton .aui-search__clear{right:calc(var(--aui-icon-size-l) + var(--aui-inline-padding-xs) * 3 + 1px * 2)}.aui-search--large.hasButton.isClearable .aui-search__input{padding-right:calc(var(--aui-icon-size-l) * 2 + var(--aui-inline-padding-xs) * 4 + 3px)}.aui-search--medium{font-size:var(--aui-font-size-m);line-height:var(--aui-line-height-m)}.aui-search--medium aui-icon{font-size:var(--aui-icon-size-m)}.aui-search--medium .aui-search__clear,.aui-search--medium .aui-search__spinner{right:calc(var(--aui-inline-padding-xs) + 1px)}.aui-search--medium .aui-search__icon{left:calc(var(--aui-inline-padding-xs) + 1px)}.aui-search--medium .aui-search__button-icon{padding:0 var(--aui-inline-padding-xs);color:rgb(var(--aui-color-n-2))}.aui-search--medium.hasIcon .aui-search__input{padding-left:calc(var(--aui-icon-size-m) + var(--aui-inline-padding-xs) * 2 + 1px)}.aui-search--medium.hasIcon.isSearching .aui-search__input,.aui-search--medium.hasIcon.isClearable .aui-search__input{padding-right:calc(var(--aui-icon-size-m) + var(--aui-inline-padding-xs) * 2 + 1px)}.aui-search--medium.hasButton .aui-search__input{padding-right:calc(var(--aui-icon-size-m) + var(--aui-inline-padding-xs) * 3 + 1px)}.aui-search--medium.hasButton .aui-search__clear{right:calc(var(--aui-icon-size-m) + var(--aui-inline-padding-xs) * 3 + 1px * 2)}.aui-search--medium.hasButton.isClearable .aui-search__input{padding-right:calc(var(--aui-icon-size-m) * 2 + var(--aui-inline-padding-xs) * 4 + 3px)}.aui-search--small{font-size:var(--aui-font-size-m);line-height:var(--aui-line-height-m)}.aui-search--small aui-icon{font-size:var(--aui-icon-size-m)}.aui-search--small .aui-search__clear,.aui-search--small .aui-search__spinner{right:calc(var(--aui-inline-padding-xs) + 1px)}.aui-search--small .aui-search__icon{left:calc(var(--aui-inline-padding-xs) + 1px)}.aui-search--small .aui-search__button-icon{padding:0 var(--aui-inline-padding-xs);color:rgb(var(--aui-color-n-2))}.aui-search--small.hasIcon .aui-search__input{padding-left:calc(var(--aui-icon-size-m) + var(--aui-inline-padding-xs) * 2 + 1px)}.aui-search--small.hasIcon.isSearching .aui-search__input,.aui-search--small.hasIcon.isClearable .aui-search__input{padding-right:calc(var(--aui-icon-size-m) + var(--aui-inline-padding-xs) * 2 + 1px)}.aui-search--small.hasButton .aui-search__input{padding-right:calc(var(--aui-icon-size-m) + var(--aui-inline-padding-xs) * 3 + 1px)}.aui-search--small.hasButton .aui-search__clear{right:calc(var(--aui-icon-size-m) + var(--aui-inline-padding-xs) * 3 + 1px * 2)}.aui-search--small.hasButton.isClearable .aui-search__input{padding-right:calc(var(--aui-icon-size-m) * 2 + var(--aui-inline-padding-xs) * 4 + 3px)}.aui-search--mini{font-size:var(--aui-font-size-s);line-height:var(--aui-line-height-s)}.aui-search--mini aui-icon{font-size:var(--aui-icon-size-s)}.aui-search--mini .aui-search__clear,.aui-search--mini .aui-search__spinner{right:calc(var(--aui-inline-padding-xs) + 1px)}.aui-search--mini .aui-search__icon{left:calc(var(--aui-inline-padding-xs) + 1px)}.aui-search--mini .aui-search__button-icon{padding:0 var(--aui-inline-padding-xs);color:rgb(var(--aui-color-n-2))}.aui-search--mini.hasIcon .aui-search__input{padding-left:calc(var(--aui-icon-size-s) + var(--aui-inline-padding-xs) * 2 + 1px)}.aui-search--mini.hasIcon.isSearching .aui-search__input,.aui-search--mini.hasIcon.isClearable .aui-search__input{padding-right:calc(var(--aui-icon-size-s) + var(--aui-inline-padding-xs) * 2 + 1px)}.aui-search--mini.hasButton .aui-search__input{padding-right:calc(var(--aui-icon-size-s) + var(--aui-inline-padding-xs) * 3 + 1px)}.aui-search--mini.hasButton .aui-search__clear{right:calc(var(--aui-icon-size-s) + var(--aui-inline-padding-xs) * 3 + 1px * 2)}.aui-search--mini.hasButton.isClearable .aui-search__input{padding-right:calc(var(--aui-icon-size-s) * 2 + var(--aui-inline-padding-xs) * 4 + 3px)}.aui-search__icon{position:absolute;top:50%;transform:translateY(-50%);color:rgb(var(--aui-color-placeholder-text))}.aui-search__button{position:absolute;top:0;right:1px;height:100%;display:flex;align-items:center}.aui-search:not(.isDisabled,.isSearching) .aui-search__button{cursor:pointer}.aui-search:not(.isDisabled,.isSearching) .aui-search__button:hover{color:rgb(var(--aui-color-primary))}.aui-search__button-icon{border-left:1px solid rgb(var(--aui-color-n-7))}.aui-search__clear,.aui-search__spinner{position:absolute;top:50%;transform:translateY(-50%)}.aui-search__clear .aui-icon{border-radius:50%;color:rgb(var(--aui-color-help-text));cursor:pointer;transition:all .3s ease}.aui-search__clear .aui-icon:hover{color:rgb(var(--aui-color-main-bg));background-color:rgb(var(--aui-color-help-text))}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i3.IconComponent, selector: "aui-icon", inputs: ["icon", "light", "dark", "link", "margin", "size", "color", "background", "backgroundColor"] }, { kind: "component", type: i4.InputComponent, selector: "input[aui-input],textarea[aui-input]", inputs: ["size", "disabled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
61
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SearchComponent, decorators: [{
62
- type: Component,
63
- args: [{ selector: 'aui-search', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, preserveWhitespaces: false, template: "<div\n [ngClass]=\"bem.block(size)\"\n [class.hasIcon]=\"!searchButton\"\n [class.hasButton]=\"searchButton\"\n [class.isClearable]=\"showClear\"\n [class.isSearching]=\"searching\"\n [class.isDisabled]=\"disabled\"\n>\n <div\n *ngIf=\"!searchButton\"\n [class]=\"bem.element('icon')\"\n >\n <aui-icon icon=\"magnifier\"></aui-icon>\n </div>\n <input\n #input\n aui-input\n autocomplete=\"off\"\n [ngModel]=\"value\"\n (ngModelChange)=\"emitChange($event)\"\n [disabled]=\"disabled\"\n (keyup.enter)=\"emitSearch()\"\n [ngClass]=\"bem.element('input')\"\n [placeholder]=\"placeholder\"\n [size]=\"size\"\n />\n <div\n *ngIf=\"showSpinner\"\n [class]=\"bem.element('spinner')\"\n >\n <aui-icon icon=\"spinner\"></aui-icon>\n </div>\n <div\n [hidden]=\"!showClear\"\n [class]=\"bem.element('clear')\"\n (click)=\"emitClear()\"\n >\n <aui-icon icon=\"xmark_small\"></aui-icon>\n </div>\n <div\n *ngIf=\"searchButton\"\n [class]=\"bem.element('button')\"\n (click)=\"emitSearch()\"\n >\n <div [class]=\"bem.element('button-icon')\">\n <aui-icon [icon]=\"searching ? 'spinner' : 'magnifier'\"></aui-icon>\n </div>\n </div>\n</div>\n", styles: [".aui-search{display:inline-block;width:100%;position:relative;color:rgb(var(--aui-color-n-4))}.aui-search.isDisabled{color:rgb(var(--aui-color-disabled-text));cursor:not-allowed}.aui-search--large{font-size:var(--aui-font-size-l);line-height:var(--aui-line-height-l)}.aui-search--large aui-icon{font-size:var(--aui-icon-size-l)}.aui-search--large .aui-search__clear,.aui-search--large .aui-search__spinner{right:calc(var(--aui-inline-padding-xs) + 1px)}.aui-search--large .aui-search__icon{left:calc(var(--aui-inline-padding-xs) + 1px)}.aui-search--large .aui-search__button-icon{padding:0 var(--aui-inline-padding-xs);color:rgb(var(--aui-color-n-2))}.aui-search--large.hasIcon .aui-search__input{padding-left:calc(var(--aui-icon-size-l) + var(--aui-inline-padding-xs) * 2 + 1px)}.aui-search--large.hasIcon.isSearching .aui-search__input,.aui-search--large.hasIcon.isClearable .aui-search__input{padding-right:calc(var(--aui-icon-size-l) + var(--aui-inline-padding-xs) * 2 + 1px)}.aui-search--large.hasButton .aui-search__input{padding-right:calc(var(--aui-icon-size-l) + var(--aui-inline-padding-xs) * 3 + 1px)}.aui-search--large.hasButton .aui-search__clear{right:calc(var(--aui-icon-size-l) + var(--aui-inline-padding-xs) * 3 + 1px * 2)}.aui-search--large.hasButton.isClearable .aui-search__input{padding-right:calc(var(--aui-icon-size-l) * 2 + var(--aui-inline-padding-xs) * 4 + 3px)}.aui-search--medium{font-size:var(--aui-font-size-m);line-height:var(--aui-line-height-m)}.aui-search--medium aui-icon{font-size:var(--aui-icon-size-m)}.aui-search--medium .aui-search__clear,.aui-search--medium .aui-search__spinner{right:calc(var(--aui-inline-padding-xs) + 1px)}.aui-search--medium .aui-search__icon{left:calc(var(--aui-inline-padding-xs) + 1px)}.aui-search--medium .aui-search__button-icon{padding:0 var(--aui-inline-padding-xs);color:rgb(var(--aui-color-n-2))}.aui-search--medium.hasIcon .aui-search__input{padding-left:calc(var(--aui-icon-size-m) + var(--aui-inline-padding-xs) * 2 + 1px)}.aui-search--medium.hasIcon.isSearching .aui-search__input,.aui-search--medium.hasIcon.isClearable .aui-search__input{padding-right:calc(var(--aui-icon-size-m) + var(--aui-inline-padding-xs) * 2 + 1px)}.aui-search--medium.hasButton .aui-search__input{padding-right:calc(var(--aui-icon-size-m) + var(--aui-inline-padding-xs) * 3 + 1px)}.aui-search--medium.hasButton .aui-search__clear{right:calc(var(--aui-icon-size-m) + var(--aui-inline-padding-xs) * 3 + 1px * 2)}.aui-search--medium.hasButton.isClearable .aui-search__input{padding-right:calc(var(--aui-icon-size-m) * 2 + var(--aui-inline-padding-xs) * 4 + 3px)}.aui-search--small{font-size:var(--aui-font-size-m);line-height:var(--aui-line-height-m)}.aui-search--small aui-icon{font-size:var(--aui-icon-size-m)}.aui-search--small .aui-search__clear,.aui-search--small .aui-search__spinner{right:calc(var(--aui-inline-padding-xs) + 1px)}.aui-search--small .aui-search__icon{left:calc(var(--aui-inline-padding-xs) + 1px)}.aui-search--small .aui-search__button-icon{padding:0 var(--aui-inline-padding-xs);color:rgb(var(--aui-color-n-2))}.aui-search--small.hasIcon .aui-search__input{padding-left:calc(var(--aui-icon-size-m) + var(--aui-inline-padding-xs) * 2 + 1px)}.aui-search--small.hasIcon.isSearching .aui-search__input,.aui-search--small.hasIcon.isClearable .aui-search__input{padding-right:calc(var(--aui-icon-size-m) + var(--aui-inline-padding-xs) * 2 + 1px)}.aui-search--small.hasButton .aui-search__input{padding-right:calc(var(--aui-icon-size-m) + var(--aui-inline-padding-xs) * 3 + 1px)}.aui-search--small.hasButton .aui-search__clear{right:calc(var(--aui-icon-size-m) + var(--aui-inline-padding-xs) * 3 + 1px * 2)}.aui-search--small.hasButton.isClearable .aui-search__input{padding-right:calc(var(--aui-icon-size-m) * 2 + var(--aui-inline-padding-xs) * 4 + 3px)}.aui-search--mini{font-size:var(--aui-font-size-s);line-height:var(--aui-line-height-s)}.aui-search--mini aui-icon{font-size:var(--aui-icon-size-s)}.aui-search--mini .aui-search__clear,.aui-search--mini .aui-search__spinner{right:calc(var(--aui-inline-padding-xs) + 1px)}.aui-search--mini .aui-search__icon{left:calc(var(--aui-inline-padding-xs) + 1px)}.aui-search--mini .aui-search__button-icon{padding:0 var(--aui-inline-padding-xs);color:rgb(var(--aui-color-n-2))}.aui-search--mini.hasIcon .aui-search__input{padding-left:calc(var(--aui-icon-size-s) + var(--aui-inline-padding-xs) * 2 + 1px)}.aui-search--mini.hasIcon.isSearching .aui-search__input,.aui-search--mini.hasIcon.isClearable .aui-search__input{padding-right:calc(var(--aui-icon-size-s) + var(--aui-inline-padding-xs) * 2 + 1px)}.aui-search--mini.hasButton .aui-search__input{padding-right:calc(var(--aui-icon-size-s) + var(--aui-inline-padding-xs) * 3 + 1px)}.aui-search--mini.hasButton .aui-search__clear{right:calc(var(--aui-icon-size-s) + var(--aui-inline-padding-xs) * 3 + 1px * 2)}.aui-search--mini.hasButton.isClearable .aui-search__input{padding-right:calc(var(--aui-icon-size-s) * 2 + var(--aui-inline-padding-xs) * 4 + 3px)}.aui-search__icon{position:absolute;top:50%;transform:translateY(-50%);color:rgb(var(--aui-color-placeholder-text))}.aui-search__button{position:absolute;top:0;right:1px;height:100%;display:flex;align-items:center}.aui-search:not(.isDisabled,.isSearching) .aui-search__button{cursor:pointer}.aui-search:not(.isDisabled,.isSearching) .aui-search__button:hover{color:rgb(var(--aui-color-primary))}.aui-search__button-icon{border-left:1px solid rgb(var(--aui-color-n-7))}.aui-search__clear,.aui-search__spinner{position:absolute;top:50%;transform:translateY(-50%)}.aui-search__clear .aui-icon{border-radius:50%;color:rgb(var(--aui-color-help-text));cursor:pointer;transition:all .3s ease}.aui-search__clear .aui-icon:hover{color:rgb(var(--aui-color-main-bg));background-color:rgb(var(--aui-color-help-text))}\n"] }]
64
- }], propDecorators: { size: [{
65
- type: Input
66
- }], searchButton: [{
67
- type: Input
68
- }], clearable: [{
69
- type: Input
70
- }], searching: [{
71
- type: Input
72
- }], placeholder: [{
73
- type: Input
74
- }], disabled: [{
75
- type: Input
76
- }], keyword: [{
77
- type: Input
78
- }], keywordChange: [{
79
- type: Output
80
- }], search: [{
81
- type: Output
82
- }], clear: [{
83
- type: Output
84
- }], inputRef: [{
85
- type: ViewChild,
86
- args: ['input', { read: ElementRef }]
87
- }] } });
88
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VhcmNoLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9pbnB1dC9zZWFyY2gvc2VhcmNoLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uL3NyYy9pbnB1dC9zZWFyY2gvc2VhcmNoLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCx1QkFBdUIsRUFDdkIsU0FBUyxFQUNULFVBQVUsRUFDVixZQUFZLEVBQ1osS0FBSyxFQUNMLE1BQU0sRUFDTixTQUFTLEVBQ1QsaUJBQWlCLEdBQ2xCLE1BQU0sZUFBZSxDQUFDO0FBRXZCLE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxhQUFhLENBQUM7QUFDNUMsT0FBTyxFQUFPLFFBQVEsRUFBRSxNQUFNLGFBQWEsQ0FBQzs7Ozs7O0FBVTVDLE1BQU0sT0FBTyxlQUFlO0lBUjVCO1FBU0UsUUFBRyxHQUFRLFFBQVEsQ0FBQyxZQUFZLENBQUMsQ0FBQztRQUdsQyxTQUFJLEdBQWtCLGFBQWEsQ0FBQyxNQUFNLENBQUM7UUFHM0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