@alauda/ui 6.5.10-beta.4 → 6.5.10-beta.41

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 (606) hide show
  1. package/accordion/accordion-item/accordion-item.component.d.ts +3 -3
  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 +3 -3
  5. package/autocomplete/autocomplete-placeholder.component.d.ts +1 -1
  6. package/autocomplete/autocomplete.component.d.ts +1 -1
  7. package/autocomplete/autocomplete.directive.d.ts +2 -2
  8. package/autocomplete/autocomplete.types.d.ts +1 -1
  9. package/autocomplete/helper-directives.d.ts +1 -1
  10. package/autocomplete/suggestion/suggestion.component.d.ts +6 -6
  11. package/autocomplete/suggestion-group/suggestion-group.component.d.ts +1 -1
  12. package/back-top/back-top.component.d.ts +3 -2
  13. package/back-top/back-top.module.d.ts +2 -1
  14. package/breadcrumb/breadcrumb-item.component.d.ts +1 -1
  15. package/breadcrumb/breadcrumb.component.d.ts +1 -1
  16. package/button/button-group/button-group.component.d.ts +1 -1
  17. package/button/button.component.d.ts +1 -1
  18. package/button/button.types.d.ts +1 -12
  19. package/card/card.component.d.ts +1 -1
  20. package/card/helper-directives.d.ts +3 -7
  21. package/card/section.component.d.ts +1 -1
  22. package/checkbox/checkbox-group/checkbox-group.component.d.ts +3 -3
  23. package/checkbox/checkbox.component.d.ts +1 -1
  24. package/color-picker/color-picker.component.d.ts +1 -1
  25. package/date-picker/calendar/date-picker-panel/component.d.ts +1 -1
  26. package/date-picker/calendar/footer/component.d.ts +1 -1
  27. package/date-picker/calendar/header/component.d.ts +1 -1
  28. package/date-picker/calendar/panel/picker-panel.d.ts +1 -1
  29. package/date-picker/calendar/range-picker-panel/component.d.ts +1 -1
  30. package/date-picker/date-picker/date-picker.component.d.ts +1 -1
  31. package/date-picker/date-picker.type.d.ts +2 -2
  32. package/date-picker/range-picker/range-picker.component.d.ts +1 -1
  33. package/date-picker/trigger/trigger.component.d.ts +1 -1
  34. package/dialog/confirm-dialog/confirm-dialog.component.d.ts +1 -1
  35. package/dialog/dialog-content/dialog-close.directive.d.ts +1 -1
  36. package/dialog/dialog-content/dialog-content.component.d.ts +1 -1
  37. package/dialog/dialog-content/dialog-footer.component.d.ts +1 -1
  38. package/dialog/dialog-content/dialog-header.component.d.ts +1 -1
  39. package/dialog/dialog.component.d.ts +1 -1
  40. package/dialog/dialog.types.d.ts +3 -3
  41. package/drawer/component/drawer.component.d.ts +1 -1
  42. package/drawer/component/helper-directives.d.ts +3 -3
  43. package/dropdown/dropdown-active.directive.d.ts +1 -1
  44. package/dropdown/dropdown-button/dropdown-button.component.d.ts +3 -4
  45. package/dropdown/dropdown.directive.d.ts +1 -1
  46. package/dropdown/dropdown.types.d.ts +1 -1
  47. package/dropdown/helper-directives.d.ts +1 -1
  48. package/dropdown/menu/menu-content.directive.d.ts +1 -1
  49. package/dropdown/menu/menu.component.d.ts +1 -1
  50. package/dropdown/menu-group/menu-group.component.d.ts +1 -1
  51. package/dropdown/menu-item/menu-item.component.d.ts +1 -1
  52. package/dropdown/submenu/submenu.component.d.ts +1 -1
  53. package/esm2022/accordion/accordion-item/accordion-item.component.mjs +73 -0
  54. package/esm2022/accordion/accordion.component.mjs +29 -0
  55. package/esm2022/accordion/accordion.module.mjs +39 -0
  56. package/esm2022/alauda-ui.mjs +2 -0
  57. package/esm2022/anchor/anchor.component.mjs +141 -0
  58. package/esm2022/anchor/anchor.directive.mjs +198 -0
  59. package/esm2022/anchor/anchor.module.mjs +35 -0
  60. package/{esm2020 → esm2022}/autocomplete/autocomplete-placeholder.component.mjs +4 -4
  61. package/esm2022/autocomplete/autocomplete.component.mjs +72 -0
  62. package/esm2022/autocomplete/autocomplete.directive.mjs +282 -0
  63. package/esm2022/autocomplete/autocomplete.module.mjs +53 -0
  64. package/{esm2020 → esm2022}/autocomplete/helper-directives.mjs +4 -4
  65. package/esm2022/autocomplete/suggestion/suggestion.component.mjs +77 -0
  66. package/esm2022/autocomplete/suggestion-group/suggestion-group.component.mjs +25 -0
  67. package/esm2022/back-top/back-top.component.mjs +84 -0
  68. package/esm2022/back-top/back-top.module.mjs +20 -0
  69. package/esm2022/breadcrumb/breadcrumb-item.component.mjs +33 -0
  70. package/esm2022/breadcrumb/breadcrumb.component.mjs +56 -0
  71. package/esm2022/breadcrumb/breadcrumb.module.mjs +20 -0
  72. package/{esm2020 → esm2022}/button/button-group/button-group.component.mjs +4 -4
  73. package/esm2022/button/button.component.mjs +124 -0
  74. package/esm2022/button/button.module.mjs +20 -0
  75. package/esm2022/button/button.types.mjs +11 -0
  76. package/esm2022/card/card.component.mjs +14 -0
  77. package/esm2022/card/card.module.mjs +40 -0
  78. package/esm2022/card/helper-directives.mjs +42 -0
  79. package/{esm2020 → esm2022}/card/section.component.mjs +4 -4
  80. package/esm2022/checkbox/checkbox-group/checkbox-group.component.mjs +60 -0
  81. package/esm2022/checkbox/checkbox.component.mjs +116 -0
  82. package/esm2022/checkbox/checkbox.module.mjs +20 -0
  83. package/esm2022/color-picker/color-picker.component.mjs +28 -0
  84. package/esm2022/color-picker/color-picker.module.mjs +19 -0
  85. package/esm2022/date-picker/calendar/constant.mjs +31 -0
  86. package/esm2022/date-picker/calendar/date-picker-panel/component.mjs +137 -0
  87. package/esm2022/date-picker/calendar/footer/component.mjs +29 -0
  88. package/esm2022/date-picker/calendar/header/component.mjs +100 -0
  89. package/esm2022/date-picker/calendar/panel/picker-panel.mjs +158 -0
  90. package/esm2022/date-picker/calendar/range-picker-panel/component.mjs +210 -0
  91. package/esm2022/date-picker/calendar/util.mjs +152 -0
  92. package/esm2022/date-picker/date-picker/date-picker.component.mjs +115 -0
  93. package/esm2022/date-picker/date-picker.module.mjs +82 -0
  94. package/esm2022/date-picker/range-picker/range-picker.component.mjs +88 -0
  95. package/esm2022/date-picker/trigger/trigger.component.mjs +76 -0
  96. package/esm2022/dialog/confirm-dialog/confirm-dialog-config.mjs +13 -0
  97. package/esm2022/dialog/confirm-dialog/confirm-dialog.component.mjs +91 -0
  98. package/{esm2020 → esm2022}/dialog/dialog-animations.mjs +1 -2
  99. package/esm2022/dialog/dialog-config.mjs +14 -0
  100. package/esm2022/dialog/dialog-content/dialog-close.directive.mjs +42 -0
  101. package/esm2022/dialog/dialog-content/dialog-content.component.mjs +19 -0
  102. package/esm2022/dialog/dialog-content/dialog-footer.component.mjs +13 -0
  103. package/esm2022/dialog/dialog-content/dialog-header.component.mjs +42 -0
  104. package/esm2022/dialog/dialog-ref.mjs +52 -0
  105. package/esm2022/dialog/dialog.component.mjs +154 -0
  106. package/esm2022/dialog/dialog.module.mjs +65 -0
  107. package/esm2022/dialog/dialog.service.mjs +124 -0
  108. package/esm2022/drawer/component/drawer.component.mjs +248 -0
  109. package/esm2022/drawer/component/helper-directives.mjs +33 -0
  110. package/esm2022/drawer/drawer.module.mjs +36 -0
  111. package/esm2022/drawer/drawer.service.mjs +47 -0
  112. package/esm2022/dropdown/dropdown-active.directive.mjs +18 -0
  113. package/esm2022/dropdown/dropdown-button/dropdown-button.component.mjs +53 -0
  114. package/esm2022/dropdown/dropdown.directive.mjs +83 -0
  115. package/esm2022/dropdown/dropdown.module.mjs +65 -0
  116. package/{esm2020 → esm2022}/dropdown/helper-directives.mjs +4 -4
  117. package/esm2022/dropdown/menu/menu-content.directive.mjs +59 -0
  118. package/esm2022/dropdown/menu/menu.component.mjs +26 -0
  119. package/{esm2020 → esm2022}/dropdown/menu-group/menu-group.component.mjs +4 -4
  120. package/esm2022/dropdown/menu-item/menu-item.component.mjs +35 -0
  121. package/esm2022/dropdown/submenu/submenu.component.mjs +38 -0
  122. package/esm2022/form/common-form.mjs +87 -0
  123. package/esm2022/form/form-item/form-item.component.mjs +121 -0
  124. package/esm2022/form/form.directive.mjs +70 -0
  125. package/esm2022/form/form.module.mjs +48 -0
  126. package/esm2022/form/helper-directives.mjs +73 -0
  127. package/{esm2020 → esm2022}/i18n/i18n.module.mjs +5 -5
  128. package/esm2022/i18n/i18n.pipe.mjs +21 -0
  129. package/esm2022/i18n/i18n.service.mjs +48 -0
  130. package/esm2022/icon/icon-register.service.mjs +75 -0
  131. package/esm2022/icon/icon.component.mjs +74 -0
  132. package/esm2022/icon/icon.module.mjs +21 -0
  133. package/{esm2020 → esm2022}/inline-alert/helper-directives.mjs +4 -4
  134. package/esm2022/inline-alert/inline-alert.component.mjs +58 -0
  135. package/esm2022/inline-alert/inline-alert.module.mjs +20 -0
  136. package/esm2022/input/autosize.directive.mjs +56 -0
  137. package/esm2022/input/helper-directives.mjs +43 -0
  138. package/esm2022/input/input-group/input-group.component.mjs +46 -0
  139. package/esm2022/input/input.component.mjs +59 -0
  140. package/esm2022/input/input.module.mjs +85 -0
  141. package/esm2022/input/number-input/number-input.component.mjs +121 -0
  142. package/esm2022/input/search/search.component.mjs +87 -0
  143. package/esm2022/input/tags-input/tags-input.component.mjs +264 -0
  144. package/esm2022/input/tags-input/with-max-row-count.mjs +50 -0
  145. package/esm2022/message/base-message.mjs +99 -0
  146. package/esm2022/message/message-wrapper.component.mjs +15 -0
  147. package/esm2022/message/message.component.mjs +77 -0
  148. package/esm2022/message/message.config.mjs +20 -0
  149. package/esm2022/message/message.module.mjs +22 -0
  150. package/{esm2020 → esm2022}/message/message.service.mjs +4 -4
  151. package/esm2022/notification/notification-wrapper.component.mjs +17 -0
  152. package/esm2022/notification/notification.component.mjs +106 -0
  153. package/esm2022/notification/notification.module.mjs +23 -0
  154. package/{esm2020 → esm2022}/notification/notification.service.mjs +4 -4
  155. package/esm2022/paginator/paginator-intl.mjs +24 -0
  156. package/esm2022/paginator/paginator.component.mjs +126 -0
  157. package/esm2022/paginator/paginator.module.mjs +24 -0
  158. package/esm2022/radio/base-radio.mjs +72 -0
  159. package/esm2022/radio/radio-button/radio-button.component.mjs +41 -0
  160. package/esm2022/radio/radio-group/radio-group.component.mjs +65 -0
  161. package/esm2022/radio/radio.component.mjs +23 -0
  162. package/esm2022/radio/radio.module.mjs +21 -0
  163. package/esm2022/scrolling/fixed-size-table-virtual-scroll-strategy.mjs +80 -0
  164. package/esm2022/scrolling/fixed-size-table-virtual-scroll.directive.mjs +119 -0
  165. package/esm2022/scrolling/fixed-size-virtual-scroll.directive.mjs +27 -0
  166. package/{esm2020 → esm2022}/scrolling/scrolling.module.mjs +9 -9
  167. package/{esm2020 → esm2022}/scrolling/virtual-for-of.directive.mjs +4 -4
  168. package/esm2022/scrolling/virtual-scroll-viewport.component.mjs +26 -0
  169. package/esm2022/select/base-select.mjs +333 -0
  170. package/{esm2020 → esm2022}/select/helper-directives.mjs +7 -7
  171. package/esm2022/select/multi-select/multi-select.component.mjs +311 -0
  172. package/esm2022/select/option/option.component.mjs +119 -0
  173. package/esm2022/select/option-group/option-group.component.mjs +25 -0
  174. package/{esm2020 → esm2022}/select/option-placeholder.component.mjs +4 -4
  175. package/esm2022/select/select.component.mjs +107 -0
  176. package/esm2022/select/select.module.mjs +78 -0
  177. package/esm2022/select/validators.mjs +78 -0
  178. package/esm2022/shared/click-outside.directive.mjs +29 -0
  179. package/{esm2020 → esm2022}/shared/shared.module.mjs +5 -5
  180. package/esm2022/sort/sort-errors.mjs +13 -0
  181. package/esm2022/sort/sort-header.component.mjs +74 -0
  182. package/esm2022/sort/sort.directive.mjs +73 -0
  183. package/esm2022/sort/sort.module.mjs +19 -0
  184. package/esm2022/status-bar/status-bar.component.mjs +28 -0
  185. package/esm2022/status-bar/status-bar.module.mjs +19 -0
  186. package/esm2022/steps/steps.component.mjs +166 -0
  187. package/esm2022/steps/steps.module.mjs +19 -0
  188. package/{esm2020 → esm2022}/steps/types.mjs +1 -1
  189. package/esm2022/switch/switch.component.mjs +43 -0
  190. package/esm2022/switch/switch.module.mjs +18 -0
  191. package/esm2022/table/table-cell-def.directive.mjs +25 -0
  192. package/esm2022/table/table-cell.component.mjs +115 -0
  193. package/esm2022/table/table-cell.directive.mjs +29 -0
  194. package/esm2022/table/table-column-def.directive.mjs +31 -0
  195. package/esm2022/table/table-header-cell-def.directive.mjs +25 -0
  196. package/esm2022/table/table-header-cell.directive.mjs +25 -0
  197. package/esm2022/table/table-header-row-def.directive.mjs +33 -0
  198. package/esm2022/table/table-header-row.component.mjs +24 -0
  199. package/esm2022/table/table-placeholder.directive.mjs +33 -0
  200. package/esm2022/table/table-row-def.directive.mjs +34 -0
  201. package/esm2022/table/table-row.component.mjs +43 -0
  202. package/esm2022/table/table-scroll.directive.mjs +133 -0
  203. package/esm2022/table/table.component.mjs +79 -0
  204. package/esm2022/table/table.module.mjs +96 -0
  205. package/esm2022/table-of-contents/table-of-contents.module.mjs +20 -0
  206. package/esm2022/table-of-contents/toc-container.directive.mjs +111 -0
  207. package/esm2022/table-of-contents/toc-content.directive.mjs +39 -0
  208. package/esm2022/table-of-contents/toc-link.directive.mjs +48 -0
  209. package/esm2022/tabs/tab-body.component.mjs +146 -0
  210. package/esm2022/tabs/tab-context.service.mjs +30 -0
  211. package/esm2022/tabs/tab-group.component.mjs +256 -0
  212. package/esm2022/tabs/tab-header-active-indicator.component.mjs +41 -0
  213. package/esm2022/tabs/tab-header.component.mjs +277 -0
  214. package/esm2022/tabs/tab.component.mjs +72 -0
  215. package/esm2022/tabs/tabs.module.mjs +86 -0
  216. package/esm2022/tabs/tabs.types.mjs +10 -0
  217. package/esm2022/tag/check-tag/check-tag.component.mjs +31 -0
  218. package/esm2022/tag/tag.component.mjs +63 -0
  219. package/esm2022/tag/tag.module.mjs +20 -0
  220. package/esm2022/theme/theme.module.mjs +18 -0
  221. package/esm2022/theme/theme.pipe.mjs +64 -0
  222. package/esm2022/theme/theme.service.mjs +59 -0
  223. package/esm2022/time-picker/component.mjs +183 -0
  224. package/esm2022/time-picker/panel/panel.component.mjs +240 -0
  225. package/esm2022/time-picker/time-picker.module.mjs +56 -0
  226. package/esm2022/time-picker/time-picker.type.mjs +13 -0
  227. package/esm2022/tooltip/base-tooltip.mjs +333 -0
  228. package/esm2022/tooltip/tooltip-active.directive.mjs +51 -0
  229. package/esm2022/tooltip/tooltip-copy.directive.mjs +87 -0
  230. package/esm2022/tooltip/tooltip-intl.mjs +21 -0
  231. package/esm2022/tooltip/tooltip.component.mjs +120 -0
  232. package/esm2022/tooltip/tooltip.directive.mjs +44 -0
  233. package/esm2022/tooltip/tooltip.module.mjs +32 -0
  234. package/esm2022/tooltip/utils/index.mjs +58 -0
  235. package/{esm2020 → esm2022}/tree-select/tree-node-placeholder.component.mjs +4 -4
  236. package/esm2022/tree-select/tree-select.component.mjs +329 -0
  237. package/esm2022/tree-select/tree-select.module.mjs +34 -0
  238. package/esm2022/types.mjs +8 -0
  239. package/esm2022/utils/bem.mjs +44 -0
  240. package/esm2022/utils/coercion.mjs +5 -0
  241. package/esm2022/utils/fn.mjs +16 -0
  242. package/{fesm2020 → fesm2022}/alauda-ui.mjs +3144 -3252
  243. package/fesm2022/alauda-ui.mjs.map +1 -0
  244. package/form/common-form.d.ts +1 -9
  245. package/form/form-item/form-item.component.d.ts +1 -1
  246. package/form/form.directive.d.ts +1 -1
  247. package/form/form.types.d.ts +2 -2
  248. package/form/helper-directives.d.ts +7 -8
  249. package/i18n/i18n.pipe.d.ts +1 -1
  250. package/i18n/i18n.type.d.ts +1 -1
  251. package/icon/icon.component.d.ts +1 -1
  252. package/inline-alert/helper-directives.d.ts +1 -1
  253. package/inline-alert/inline-alert.component.d.ts +1 -1
  254. package/inline-alert/inline-alert.types.d.ts +1 -1
  255. package/input/autosize.directive.d.ts +1 -4
  256. package/input/helper-directives.d.ts +4 -4
  257. package/input/input-group/input-group.component.d.ts +1 -1
  258. package/input/input.component.d.ts +2 -5
  259. package/input/number-input/number-input.component.d.ts +5 -3
  260. package/input/search/search.component.d.ts +1 -1
  261. package/input/tags-input/tags-input.component.d.ts +3 -3
  262. package/message/message-wrapper.component.d.ts +1 -1
  263. package/message/message.component.d.ts +1 -1
  264. package/message/message.config.d.ts +0 -20
  265. package/notification/notification-wrapper.component.d.ts +1 -1
  266. package/notification/notification.component.d.ts +1 -5
  267. package/notification/notification.config.d.ts +1 -1
  268. package/package.json +14 -20
  269. package/paginator/paginator-intl.d.ts +0 -9
  270. package/paginator/paginator.component.d.ts +8 -25
  271. package/radio/base-radio.d.ts +1 -1
  272. package/radio/radio-button/radio-button.component.d.ts +1 -1
  273. package/radio/radio-group/radio-group.component.d.ts +1 -5
  274. package/radio/radio.component.d.ts +1 -1
  275. package/radio/radio.types.d.ts +1 -1
  276. package/scrolling/fixed-size-table-virtual-scroll.directive.d.ts +1 -1
  277. package/scrolling/fixed-size-virtual-scroll.directive.d.ts +1 -1
  278. package/scrolling/virtual-for-of.directive.d.ts +1 -1
  279. package/scrolling/virtual-scroll-viewport.component.d.ts +1 -1
  280. package/select/base-select.d.ts +7 -13
  281. package/select/helper-directives.d.ts +2 -2
  282. package/select/multi-select/multi-select.component.d.ts +3 -4
  283. package/select/option/option.component.d.ts +1 -1
  284. package/select/option-group/option-group.component.d.ts +1 -1
  285. package/select/option-placeholder.component.d.ts +1 -1
  286. package/select/select.component.d.ts +1 -1
  287. package/select/select.types.d.ts +3 -3
  288. package/select/validators.d.ts +1 -1
  289. package/shared/click-outside.directive.d.ts +1 -1
  290. package/sort/sort-errors.d.ts +0 -4
  291. package/sort/sort-header.component.d.ts +1 -1
  292. package/sort/sort.directive.d.ts +1 -1
  293. package/sort/sort.types.d.ts +2 -2
  294. package/status-bar/status-bar.component.d.ts +1 -1
  295. package/status-bar/status-bar.types.d.ts +2 -2
  296. package/steps/steps.component.d.ts +1 -5
  297. package/steps/types.d.ts +3 -7
  298. package/switch/switch.component.d.ts +1 -1
  299. package/table/table-cell-def.directive.d.ts +1 -5
  300. package/table/table-cell.component.d.ts +2 -2
  301. package/table/table-cell.directive.d.ts +1 -2
  302. package/table/table-column-def.directive.d.ts +1 -5
  303. package/table/table-header-cell-def.directive.d.ts +1 -5
  304. package/table/table-header-cell.directive.d.ts +1 -2
  305. package/table/table-header-row-def.directive.d.ts +1 -5
  306. package/table/table-header-row.component.d.ts +1 -2
  307. package/table/table-placeholder.directive.d.ts +2 -2
  308. package/table/table-row-def.directive.d.ts +1 -6
  309. package/table/table-row.component.d.ts +1 -2
  310. package/table/table-scroll.directive.d.ts +2 -2
  311. package/table/table.component.d.ts +1 -1
  312. package/table-of-contents/toc-container.directive.d.ts +2 -2
  313. package/table-of-contents/toc-content.directive.d.ts +1 -1
  314. package/table-of-contents/toc-link.directive.d.ts +1 -1
  315. package/tabs/tab-body.component.d.ts +9 -26
  316. package/tabs/tab-context.service.d.ts +0 -3
  317. package/tabs/tab-group.component.d.ts +3 -31
  318. package/tabs/tab-header-active-indicator.component.d.ts +1 -10
  319. package/tabs/tab-header.component.d.ts +2 -85
  320. package/tabs/tab.component.d.ts +3 -22
  321. package/tabs/tabs.types.d.ts +2 -5
  322. package/tag/check-tag/check-tag.component.d.ts +1 -1
  323. package/tag/tag.component.d.ts +1 -1
  324. package/tag/tag.types.d.ts +1 -1
  325. package/theme/style.css +5 -1
  326. package/theme/theme.pipe.d.ts +4 -4
  327. package/theme/theme.types.d.ts +3 -3
  328. package/time-picker/component.d.ts +1 -1
  329. package/time-picker/panel/panel.component.d.ts +1 -1
  330. package/time-picker/time-picker.type.d.ts +1 -1
  331. package/tooltip/base-tooltip.d.ts +1 -1
  332. package/tooltip/tooltip-active.directive.d.ts +1 -1
  333. package/tooltip/tooltip-copy.directive.d.ts +1 -1
  334. package/tooltip/tooltip-intl.d.ts +0 -4
  335. package/tooltip/tooltip.component.d.ts +1 -1
  336. package/tooltip/tooltip.directive.d.ts +1 -1
  337. package/tree-select/tree-node-placeholder.component.d.ts +1 -1
  338. package/tree-select/tree-select.component.d.ts +11 -15
  339. package/tree-select/tree-select.types.d.ts +1 -1
  340. package/types.d.ts +2 -5
  341. package/utils/coercion.d.ts +4 -4
  342. package/utils/fn.d.ts +0 -1
  343. package/utils/operators.d.ts +1 -1
  344. package/.changeset/README.md +0 -8
  345. package/alauda-ui.d.ts +0 -5
  346. package/esm2020/accordion/accordion-item/accordion-item.component.mjs +0 -73
  347. package/esm2020/accordion/accordion.component.mjs +0 -27
  348. package/esm2020/accordion/accordion.module.mjs +0 -39
  349. package/esm2020/alauda-ui.mjs +0 -5
  350. package/esm2020/anchor/anchor.component.mjs +0 -138
  351. package/esm2020/anchor/anchor.directive.mjs +0 -182
  352. package/esm2020/anchor/anchor.module.mjs +0 -36
  353. package/esm2020/autocomplete/autocomplete.component.mjs +0 -64
  354. package/esm2020/autocomplete/autocomplete.directive.mjs +0 -278
  355. package/esm2020/autocomplete/autocomplete.module.mjs +0 -53
  356. package/esm2020/autocomplete/suggestion/suggestion.component.mjs +0 -79
  357. package/esm2020/autocomplete/suggestion-group/suggestion-group.component.mjs +0 -23
  358. package/esm2020/back-top/back-top.component.mjs +0 -67
  359. package/esm2020/back-top/back-top.module.mjs +0 -19
  360. package/esm2020/breadcrumb/breadcrumb-item.component.mjs +0 -32
  361. package/esm2020/breadcrumb/breadcrumb.component.mjs +0 -57
  362. package/esm2020/breadcrumb/breadcrumb.module.mjs +0 -20
  363. package/esm2020/button/button.component.mjs +0 -122
  364. package/esm2020/button/button.module.mjs +0 -20
  365. package/esm2020/button/button.types.mjs +0 -22
  366. package/esm2020/card/card.component.mjs +0 -16
  367. package/esm2020/card/card.module.mjs +0 -40
  368. package/esm2020/card/helper-directives.mjs +0 -50
  369. package/esm2020/checkbox/checkbox-group/checkbox-group.component.mjs +0 -61
  370. package/esm2020/checkbox/checkbox.component.mjs +0 -112
  371. package/esm2020/checkbox/checkbox.module.mjs +0 -20
  372. package/esm2020/color-picker/color-picker.component.mjs +0 -28
  373. package/esm2020/color-picker/color-picker.module.mjs +0 -19
  374. package/esm2020/date-picker/calendar/constant.mjs +0 -32
  375. package/esm2020/date-picker/calendar/date-picker-panel/component.mjs +0 -128
  376. package/esm2020/date-picker/calendar/footer/component.mjs +0 -29
  377. package/esm2020/date-picker/calendar/header/component.mjs +0 -103
  378. package/esm2020/date-picker/calendar/panel/picker-panel.mjs +0 -155
  379. package/esm2020/date-picker/calendar/range-picker-panel/component.mjs +0 -209
  380. package/esm2020/date-picker/calendar/util.mjs +0 -146
  381. package/esm2020/date-picker/date-picker/date-picker.component.mjs +0 -110
  382. package/esm2020/date-picker/date-picker.module.mjs +0 -84
  383. package/esm2020/date-picker/range-picker/range-picker.component.mjs +0 -86
  384. package/esm2020/date-picker/trigger/trigger.component.mjs +0 -69
  385. package/esm2020/dialog/confirm-dialog/confirm-dialog-config.mjs +0 -12
  386. package/esm2020/dialog/confirm-dialog/confirm-dialog.component.mjs +0 -85
  387. package/esm2020/dialog/dialog-config.mjs +0 -15
  388. package/esm2020/dialog/dialog-content/dialog-close.directive.mjs +0 -38
  389. package/esm2020/dialog/dialog-content/dialog-content.component.mjs +0 -20
  390. package/esm2020/dialog/dialog-content/dialog-footer.component.mjs +0 -15
  391. package/esm2020/dialog/dialog-content/dialog-header.component.mjs +0 -39
  392. package/esm2020/dialog/dialog-ref.mjs +0 -48
  393. package/esm2020/dialog/dialog.component.mjs +0 -148
  394. package/esm2020/dialog/dialog.module.mjs +0 -68
  395. package/esm2020/dialog/dialog.service.mjs +0 -121
  396. package/esm2020/drawer/component/drawer.component.mjs +0 -232
  397. package/esm2020/drawer/component/helper-directives.mjs +0 -37
  398. package/esm2020/drawer/drawer.module.mjs +0 -37
  399. package/esm2020/drawer/drawer.service.mjs +0 -44
  400. package/esm2020/dropdown/dropdown-active.directive.mjs +0 -21
  401. package/esm2020/dropdown/dropdown-button/dropdown-button.component.mjs +0 -57
  402. package/esm2020/dropdown/dropdown.directive.mjs +0 -81
  403. package/esm2020/dropdown/dropdown.module.mjs +0 -65
  404. package/esm2020/dropdown/menu/menu-content.directive.mjs +0 -51
  405. package/esm2020/dropdown/menu/menu.component.mjs +0 -26
  406. package/esm2020/dropdown/menu-item/menu-item.component.mjs +0 -37
  407. package/esm2020/dropdown/submenu/submenu.component.mjs +0 -40
  408. package/esm2020/form/common-form.mjs +0 -91
  409. package/esm2020/form/form-item/form-item.component.mjs +0 -108
  410. package/esm2020/form/form.directive.mjs +0 -69
  411. package/esm2020/form/form.module.mjs +0 -48
  412. package/esm2020/form/helper-directives.mjs +0 -80
  413. package/esm2020/i18n/i18n.pipe.mjs +0 -20
  414. package/esm2020/i18n/i18n.service.mjs +0 -43
  415. package/esm2020/icon/icon-register.service.mjs +0 -74
  416. package/esm2020/icon/icon.component.mjs +0 -65
  417. package/esm2020/icon/icon.module.mjs +0 -21
  418. package/esm2020/inline-alert/inline-alert.component.mjs +0 -53
  419. package/esm2020/inline-alert/inline-alert.module.mjs +0 -20
  420. package/esm2020/input/autosize.directive.mjs +0 -59
  421. package/esm2020/input/helper-directives.mjs +0 -43
  422. package/esm2020/input/input-group/input-group.component.mjs +0 -39
  423. package/esm2020/input/input.component.mjs +0 -61
  424. package/esm2020/input/input.module.mjs +0 -87
  425. package/esm2020/input/number-input/number-input.component.mjs +0 -112
  426. package/esm2020/input/search/search.component.mjs +0 -88
  427. package/esm2020/input/tags-input/tags-input.component.mjs +0 -260
  428. package/esm2020/input/tags-input/with-max-row-count.mjs +0 -43
  429. package/esm2020/message/base-message.mjs +0 -90
  430. package/esm2020/message/message-wrapper.component.mjs +0 -14
  431. package/esm2020/message/message.component.mjs +0 -70
  432. package/esm2020/message/message.config.mjs +0 -21
  433. package/esm2020/message/message.module.mjs +0 -23
  434. package/esm2020/notification/notification-wrapper.component.mjs +0 -16
  435. package/esm2020/notification/notification.component.mjs +0 -107
  436. package/esm2020/notification/notification.module.mjs +0 -24
  437. package/esm2020/paginator/paginator-intl.mjs +0 -37
  438. package/esm2020/paginator/paginator.component.mjs +0 -125
  439. package/esm2020/paginator/paginator.module.mjs +0 -24
  440. package/esm2020/radio/base-radio.mjs +0 -67
  441. package/esm2020/radio/radio-button/radio-button.component.mjs +0 -42
  442. package/esm2020/radio/radio-group/radio-group.component.mjs +0 -76
  443. package/esm2020/radio/radio.component.mjs +0 -24
  444. package/esm2020/radio/radio.module.mjs +0 -21
  445. package/esm2020/scrolling/fixed-size-table-virtual-scroll-strategy.mjs +0 -83
  446. package/esm2020/scrolling/fixed-size-table-virtual-scroll.directive.mjs +0 -121
  447. package/esm2020/scrolling/fixed-size-virtual-scroll.directive.mjs +0 -28
  448. package/esm2020/scrolling/virtual-scroll-viewport.component.mjs +0 -26
  449. package/esm2020/select/base-select.mjs +0 -337
  450. package/esm2020/select/multi-select/multi-select.component.mjs +0 -313
  451. package/esm2020/select/option/option.component.mjs +0 -112
  452. package/esm2020/select/option-group/option-group.component.mjs +0 -23
  453. package/esm2020/select/select.component.mjs +0 -108
  454. package/esm2020/select/select.module.mjs +0 -80
  455. package/esm2020/select/validators.mjs +0 -79
  456. package/esm2020/shared/click-outside.directive.mjs +0 -28
  457. package/esm2020/sort/sort-errors.mjs +0 -17
  458. package/esm2020/sort/sort-header.component.mjs +0 -72
  459. package/esm2020/sort/sort.directive.mjs +0 -75
  460. package/esm2020/sort/sort.module.mjs +0 -19
  461. package/esm2020/status-bar/status-bar.component.mjs +0 -29
  462. package/esm2020/status-bar/status-bar.module.mjs +0 -19
  463. package/esm2020/steps/steps.component.mjs +0 -184
  464. package/esm2020/steps/steps.module.mjs +0 -19
  465. package/esm2020/switch/switch.component.mjs +0 -46
  466. package/esm2020/switch/switch.module.mjs +0 -18
  467. package/esm2020/table/table-cell-def.directive.mjs +0 -29
  468. package/esm2020/table/table-cell.component.mjs +0 -121
  469. package/esm2020/table/table-cell.directive.mjs +0 -31
  470. package/esm2020/table/table-column-def.directive.mjs +0 -37
  471. package/esm2020/table/table-header-cell-def.directive.mjs +0 -29
  472. package/esm2020/table/table-header-cell.directive.mjs +0 -27
  473. package/esm2020/table/table-header-row-def.directive.mjs +0 -39
  474. package/esm2020/table/table-header-row.component.mjs +0 -25
  475. package/esm2020/table/table-placeholder.directive.mjs +0 -30
  476. package/esm2020/table/table-row-def.directive.mjs +0 -42
  477. package/esm2020/table/table-row.component.mjs +0 -43
  478. package/esm2020/table/table-scroll.directive.mjs +0 -134
  479. package/esm2020/table/table.component.mjs +0 -79
  480. package/esm2020/table/table.module.mjs +0 -96
  481. package/esm2020/table-of-contents/table-of-contents.module.mjs +0 -20
  482. package/esm2020/table-of-contents/toc-container.directive.mjs +0 -109
  483. package/esm2020/table-of-contents/toc-content.directive.mjs +0 -35
  484. package/esm2020/table-of-contents/toc-link.directive.mjs +0 -44
  485. package/esm2020/tabs/tab-body.component.mjs +0 -165
  486. package/esm2020/tabs/tab-context.service.mjs +0 -31
  487. package/esm2020/tabs/tab-group.component.mjs +0 -291
  488. package/esm2020/tabs/tab-header-active-indicator.component.mjs +0 -53
  489. package/esm2020/tabs/tab-header.component.mjs +0 -367
  490. package/esm2020/tabs/tab.component.mjs +0 -85
  491. package/esm2020/tabs/tabs.module.mjs +0 -88
  492. package/esm2020/tabs/tabs.types.mjs +0 -13
  493. package/esm2020/tag/check-tag/check-tag.component.mjs +0 -33
  494. package/esm2020/tag/tag.component.mjs +0 -66
  495. package/esm2020/tag/tag.module.mjs +0 -20
  496. package/esm2020/theme/theme.module.mjs +0 -18
  497. package/esm2020/theme/theme.pipe.mjs +0 -69
  498. package/esm2020/theme/theme.service.mjs +0 -52
  499. package/esm2020/time-picker/component.mjs +0 -179
  500. package/esm2020/time-picker/panel/panel.component.mjs +0 -230
  501. package/esm2020/time-picker/time-picker.module.mjs +0 -58
  502. package/esm2020/time-picker/time-picker.type.mjs +0 -13
  503. package/esm2020/tooltip/base-tooltip.mjs +0 -322
  504. package/esm2020/tooltip/tooltip-active.directive.mjs +0 -49
  505. package/esm2020/tooltip/tooltip-copy.directive.mjs +0 -82
  506. package/esm2020/tooltip/tooltip-intl.mjs +0 -29
  507. package/esm2020/tooltip/tooltip.component.mjs +0 -107
  508. package/esm2020/tooltip/tooltip.directive.mjs +0 -47
  509. package/esm2020/tooltip/tooltip.module.mjs +0 -33
  510. package/esm2020/tooltip/utils/index.mjs +0 -58
  511. package/esm2020/tree-select/tree-select.component.mjs +0 -340
  512. package/esm2020/tree-select/tree-select.module.mjs +0 -34
  513. package/esm2020/types.mjs +0 -11
  514. package/esm2020/utils/bem.mjs +0 -44
  515. package/esm2020/utils/coercion.mjs +0 -17
  516. package/esm2020/utils/fn.mjs +0 -19
  517. package/fesm2015/alauda-ui.mjs +0 -12051
  518. package/fesm2015/alauda-ui.mjs.map +0 -1
  519. package/fesm2020/alauda-ui.mjs.map +0 -1
  520. package/src/accordion/README.md +0 -13
  521. package/src/anchor/README.md +0 -23
  522. package/src/dropdown/README.md +0 -57
  523. package/src/form/README.md +0 -32
  524. package/src/icon/README.md +0 -28
  525. package/src/inline-alert/README.md +0 -16
  526. package/src/input/number-input/README.md +0 -16
  527. package/src/select/README.md +0 -57
  528. package/src/sort/README.md +0 -13
  529. package/src/table/README.md +0 -8
  530. package/src/table-of-contents/README.md +0 -94
  531. package/src/tag/README.md +0 -32
  532. package/src/tree-select/README.md +0 -34
  533. /package/{esm2020 → esm2022}/accordion/index.mjs +0 -0
  534. /package/{esm2020 → esm2022}/anchor/index.mjs +0 -0
  535. /package/{esm2020 → esm2022}/anchor/types.mjs +0 -0
  536. /package/{esm2020 → esm2022}/anchor/utils.mjs +0 -0
  537. /package/{esm2020 → esm2022}/autocomplete/autocomplete.types.mjs +0 -0
  538. /package/{esm2020 → esm2022}/autocomplete/index.mjs +0 -0
  539. /package/{esm2020 → esm2022}/back-top/index.mjs +0 -0
  540. /package/{esm2020 → esm2022}/breadcrumb/index.mjs +0 -0
  541. /package/{esm2020 → esm2022}/button/index.mjs +0 -0
  542. /package/{esm2020 → esm2022}/card/index.mjs +0 -0
  543. /package/{esm2020 → esm2022}/checkbox/index.mjs +0 -0
  544. /package/{esm2020 → esm2022}/color-picker/index.mjs +0 -0
  545. /package/{esm2020 → esm2022}/core/animation/animation-consts.mjs +0 -0
  546. /package/{esm2020 → esm2022}/date-picker/date-picker.type.mjs +0 -0
  547. /package/{esm2020 → esm2022}/date-picker/index.mjs +0 -0
  548. /package/{esm2020 → esm2022}/dialog/dialog.types.mjs +0 -0
  549. /package/{esm2020 → esm2022}/dialog/index.mjs +0 -0
  550. /package/{esm2020 → esm2022}/dialog/utils/errors.mjs +0 -0
  551. /package/{esm2020 → esm2022}/dialog/utils/index.mjs +0 -0
  552. /package/{esm2020 → esm2022}/drawer/component/drawer-ref.mjs +0 -0
  553. /package/{esm2020 → esm2022}/drawer/index.mjs +0 -0
  554. /package/{esm2020 → esm2022}/dropdown/dropdown.types.mjs +0 -0
  555. /package/{esm2020 → esm2022}/dropdown/index.mjs +0 -0
  556. /package/{esm2020 → esm2022}/form/form.types.mjs +0 -0
  557. /package/{esm2020 → esm2022}/form/index.mjs +0 -0
  558. /package/{esm2020 → esm2022}/i18n/i18n.type.mjs +0 -0
  559. /package/{esm2020 → esm2022}/i18n/index.mjs +0 -0
  560. /package/{esm2020 → esm2022}/i18n/language/en.mjs +0 -0
  561. /package/{esm2020 → esm2022}/i18n/language/zh.mjs +0 -0
  562. /package/{esm2020 → esm2022}/icon/icons.mjs +0 -0
  563. /package/{esm2020 → esm2022}/icon/index.mjs +0 -0
  564. /package/{esm2020 → esm2022}/icon/utils.mjs +0 -0
  565. /package/{esm2020 → esm2022}/index.mjs +0 -0
  566. /package/{esm2020 → esm2022}/inline-alert/index.mjs +0 -0
  567. /package/{esm2020 → esm2022}/inline-alert/inline-alert.types.mjs +0 -0
  568. /package/{esm2020 → esm2022}/input/index.mjs +0 -0
  569. /package/{esm2020 → esm2022}/input/utils/index.mjs +0 -0
  570. /package/{esm2020 → esm2022}/message/index.mjs +0 -0
  571. /package/{esm2020 → esm2022}/message/message-animations.mjs +0 -0
  572. /package/{esm2020 → esm2022}/notification/index.mjs +0 -0
  573. /package/{esm2020 → esm2022}/notification/notification.config.mjs +0 -0
  574. /package/{esm2020 → esm2022}/paginator/index.mjs +0 -0
  575. /package/{esm2020 → esm2022}/radio/index.mjs +0 -0
  576. /package/{esm2020 → esm2022}/radio/radio.types.mjs +0 -0
  577. /package/{esm2020 → esm2022}/scrolling/index.mjs +0 -0
  578. /package/{esm2020 → esm2022}/select/index.mjs +0 -0
  579. /package/{esm2020 → esm2022}/select/select.types.mjs +0 -0
  580. /package/{esm2020 → esm2022}/sort/index.mjs +0 -0
  581. /package/{esm2020 → esm2022}/sort/sort.types.mjs +0 -0
  582. /package/{esm2020 → esm2022}/status-bar/index.mjs +0 -0
  583. /package/{esm2020 → esm2022}/status-bar/status-bar.types.mjs +0 -0
  584. /package/{esm2020 → esm2022}/steps/index.mjs +0 -0
  585. /package/{esm2020 → esm2022}/switch/index.mjs +0 -0
  586. /package/{esm2020 → esm2022}/table/index.mjs +0 -0
  587. /package/{esm2020 → esm2022}/table-of-contents/index.mjs +0 -0
  588. /package/{esm2020 → esm2022}/tabs/index.mjs +0 -0
  589. /package/{esm2020 → esm2022}/tag/index.mjs +0 -0
  590. /package/{esm2020 → esm2022}/tag/tag.types.mjs +0 -0
  591. /package/{esm2020 → esm2022}/theme/index.mjs +0 -0
  592. /package/{esm2020 → esm2022}/theme/theme.types.mjs +0 -0
  593. /package/{esm2020 → esm2022}/theme/utils.mjs +0 -0
  594. /package/{esm2020 → esm2022}/time-picker/constant.mjs +0 -0
  595. /package/{esm2020 → esm2022}/time-picker/index.mjs +0 -0
  596. /package/{esm2020 → esm2022}/tooltip/index.mjs +0 -0
  597. /package/{esm2020 → esm2022}/tooltip/tooltip.types.mjs +0 -0
  598. /package/{esm2020 → esm2022}/tree-select/index.mjs +0 -0
  599. /package/{esm2020 → esm2022}/tree-select/tree-select.types.mjs +0 -0
  600. /package/{esm2020 → esm2022}/utils/animations.mjs +0 -0
  601. /package/{esm2020 → esm2022}/utils/async.mjs +0 -0
  602. /package/{esm2020 → esm2022}/utils/index.mjs +0 -0
  603. /package/{esm2020 → esm2022}/utils/observe-dom.mjs +0 -0
  604. /package/{esm2020 → esm2022}/utils/operators.mjs +0 -0
  605. /package/{esm2020 → esm2022}/utils/scroll-into-view.mjs +0 -0
  606. /package/{esm2020 → esm2022}/utils/watch-content-exist.mjs +0 -0
@@ -0,0 +1,85 @@
1
+ import { CommonModule } from '@angular/common';
2
+ import { NgModule } from '@angular/core';
3
+ import { FormsModule, ReactiveFormsModule } from '@angular/forms';
4
+ import { IconModule } from '../icon';
5
+ import { SharedModule } from '../shared/shared.module';
6
+ import { TagModule } from '../tag';
7
+ import { AutosizeDirective } from './autosize.directive';
8
+ import { InputAddonAfterDirective, InputAddonBeforeDirective, InputPrefixDirective, InputSuffixDirective, } from './helper-directives';
9
+ import { InputGroupComponent } from './input-group/input-group.component';
10
+ import { InputComponent } from './input.component';
11
+ import { NumberInputComponent } from './number-input/number-input.component';
12
+ import { SearchComponent } from './search/search.component';
13
+ import { TagsInputComponent } from './tags-input/tags-input.component';
14
+ import * as i0 from "@angular/core";
15
+ export class InputModule {
16
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: InputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
17
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.0", ngImport: i0, type: InputModule, declarations: [AutosizeDirective,
18
+ InputComponent,
19
+ InputGroupComponent,
20
+ InputAddonBeforeDirective,
21
+ InputAddonAfterDirective,
22
+ InputPrefixDirective,
23
+ InputSuffixDirective,
24
+ SearchComponent,
25
+ TagsInputComponent,
26
+ NumberInputComponent], imports: [CommonModule,
27
+ FormsModule,
28
+ ReactiveFormsModule,
29
+ IconModule,
30
+ TagModule,
31
+ SharedModule], exports: [AutosizeDirective,
32
+ InputComponent,
33
+ InputGroupComponent,
34
+ InputAddonBeforeDirective,
35
+ InputAddonAfterDirective,
36
+ InputPrefixDirective,
37
+ InputSuffixDirective,
38
+ SearchComponent,
39
+ TagsInputComponent,
40
+ NumberInputComponent] });
41
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: InputModule, imports: [CommonModule,
42
+ FormsModule,
43
+ ReactiveFormsModule,
44
+ IconModule,
45
+ TagModule,
46
+ SharedModule] });
47
+ }
48
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: InputModule, decorators: [{
49
+ type: NgModule,
50
+ args: [{
51
+ imports: [
52
+ CommonModule,
53
+ FormsModule,
54
+ ReactiveFormsModule,
55
+ IconModule,
56
+ TagModule,
57
+ SharedModule,
58
+ ],
59
+ declarations: [
60
+ AutosizeDirective,
61
+ InputComponent,
62
+ InputGroupComponent,
63
+ InputAddonBeforeDirective,
64
+ InputAddonAfterDirective,
65
+ InputPrefixDirective,
66
+ InputSuffixDirective,
67
+ SearchComponent,
68
+ TagsInputComponent,
69
+ NumberInputComponent,
70
+ ],
71
+ exports: [
72
+ AutosizeDirective,
73
+ InputComponent,
74
+ InputGroupComponent,
75
+ InputAddonBeforeDirective,
76
+ InputAddonAfterDirective,
77
+ InputPrefixDirective,
78
+ InputSuffixDirective,
79
+ SearchComponent,
80
+ TagsInputComponent,
81
+ NumberInputComponent,
82
+ ],
83
+ }]
84
+ }] });
85
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2lucHV0L2lucHV0Lm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsV0FBVyxFQUFFLG1CQUFtQixFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFFbEUsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLFNBQVMsQ0FBQztBQUNyQyxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0seUJBQXlCLENBQUM7QUFDdkQsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNL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GlyZWN0aXZlLFxuICAgIElucHV0QWRkb25BZnRlckRpcmVjdGl2ZSxcbiAgICBJbnB1dFByZWZpeERpcmVjdGl2ZSxcbiAgICBJbnB1dFN1ZmZpeERpcmVjdGl2ZSxcbiAgICBTZWFyY2hDb21wb25lbnQsXG4gICAgVGFnc0lucHV0Q29tcG9uZW50LFxuICAgIE51bWJlcklucHV0Q29tcG9uZW50LFxuICBdLFxuICBleHBvcnRzOiBbXG4gICAgQXV0b3NpemVEaXJlY3RpdmUsXG4gICAgSW5wdXRDb21wb25lbnQsXG4gICAgSW5wdXRHcm91cENvbXBvbmVudCxcbiAgICBJbnB1dEFkZG9uQmVmb3JlRGlyZWN0aXZlLFxuICAgIElucHV0QWRkb25BZnRlckRpcmVjdGl2ZSxcbiAgICBJbnB1dFByZWZpeERpcmVjdGl2ZSxcbiAgICBJbnB1dFN1ZmZpeERpcmVjdGl2ZSxcbiAgICBTZWFyY2hDb21wb25lbnQsXG4gICAgVGFnc0lucHV0Q29tcG9uZW50LFxuICAgIE51bWJlcklucHV0Q29tcG9uZW50LFxuICBdLFxufSlcbmV4cG9ydCBjbGFzcyBJbnB1dE1vZHVsZSB7fVxuIl19
@@ -0,0 +1,121 @@
1
+ import { ChangeDetectionStrategy, Component, ElementRef, Input, ViewChild, ViewEncapsulation, forwardRef, ContentChildren, numberAttribute, } from '@angular/core';
2
+ import { NG_VALUE_ACCESSOR } from '@angular/forms';
3
+ import { CommonFormControl } from '../../form';
4
+ import { ComponentSize } from '../../types';
5
+ import { buildBem, 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
+ bem = buildBem('aui-number-input');
13
+ size = ComponentSize.Medium;
14
+ min = Number.MIN_SAFE_INTEGER;
15
+ max = Number.MAX_SAFE_INTEGER;
16
+ step = 1;
17
+ precision;
18
+ controls = true;
19
+ placeholder = '';
20
+ controlsPosition = '';
21
+ angleControls = false;
22
+ clearable = false;
23
+ inputRef;
24
+ addonBeforeRefs;
25
+ addonAfterRefs;
26
+ isFocus = false;
27
+ hasAddonBefore$;
28
+ hasAddonAfter$;
29
+ ngAfterContentInit() {
30
+ this.hasAddonBefore$ = watchContentExist(this.addonBeforeRefs);
31
+ this.hasAddonAfter$ = watchContentExist(this.addonAfterRefs);
32
+ }
33
+ ngAfterViewInit() {
34
+ this.inputRef.nativeElement.value = (this.model ?? '') + '';
35
+ }
36
+ valueIn(v) {
37
+ if (this.inputRef) {
38
+ this.inputRef.nativeElement.value = (v ?? '') + '';
39
+ }
40
+ return v;
41
+ }
42
+ modelOut(value) {
43
+ return value === null && this.clearable
44
+ ? value
45
+ : Math.max(this.min, Math.min(this.max, this.parsePrecision(value)));
46
+ }
47
+ inputChanged(value) {
48
+ this.emitModel(numberAttribute(value, !value && this.clearable ? null : this.model));
49
+ }
50
+ takeOneStep(positive) {
51
+ if (positive) {
52
+ this.emitModel((this.model ?? 0) + this.step);
53
+ }
54
+ else {
55
+ this.emitModel((this.model ?? 0) - this.step);
56
+ }
57
+ }
58
+ parsePrecision(value) {
59
+ const precision = this.precision ?? this.getStepPrecision();
60
+ return parseFloat(value.toFixed(precision));
61
+ }
62
+ getStepPrecision() {
63
+ const step = this.step + '';
64
+ const index = step.indexOf('.');
65
+ return index < 0 ? 0 : step.slice(index + 1).length;
66
+ }
67
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: NumberInputComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
68
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.0", type: NumberInputComponent, selector: "aui-number-input", inputs: { size: "size", min: ["min", "min", (val) => numberAttribute(val, Number.MIN_SAFE_INTEGER)], max: ["max", "max", (val) => numberAttribute(val, Number.MAX_SAFE_INTEGER)], step: "step", precision: "precision", controls: "controls", placeholder: "placeholder", controlsPosition: "controlsPosition", angleControls: "angleControls", clearable: "clearable" }, providers: [
69
+ {
70
+ provide: NG_VALUE_ACCESSOR,
71
+ useExisting: forwardRef(() => NumberInputComponent),
72
+ multi: true,
73
+ },
74
+ ], 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 });
75
+ }
76
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: NumberInputComponent, decorators: [{
77
+ type: Component,
78
+ args: [{ selector: 'aui-number-input', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, preserveWhitespaces: false, providers: [
79
+ {
80
+ provide: NG_VALUE_ACCESSOR,
81
+ useExisting: forwardRef(() => NumberInputComponent),
82
+ multi: true,
83
+ },
84
+ ], 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"] }]
85
+ }], propDecorators: { size: [{
86
+ type: Input
87
+ }], min: [{
88
+ type: Input,
89
+ args: [{
90
+ transform: (val) => numberAttribute(val, Number.MIN_SAFE_INTEGER),
91
+ }]
92
+ }], max: [{
93
+ type: Input,
94
+ args: [{
95
+ transform: (val) => numberAttribute(val, Number.MAX_SAFE_INTEGER),
96
+ }]
97
+ }], step: [{
98
+ type: Input
99
+ }], precision: [{
100
+ type: Input
101
+ }], controls: [{
102
+ type: Input
103
+ }], placeholder: [{
104
+ type: Input
105
+ }], controlsPosition: [{
106
+ type: Input
107
+ }], angleControls: [{
108
+ type: Input
109
+ }], clearable: [{
110
+ type: Input
111
+ }], inputRef: [{
112
+ type: ViewChild,
113
+ args: ['inputRef', { read: ElementRef }]
114
+ }], addonBeforeRefs: [{
115
+ type: ContentChildren,
116
+ args: [InputAddonBeforeDirective]
117
+ }], addonAfterRefs: [{
118
+ type: ContentChildren,
119
+ args: [InputAddonAfterDirective]
120
+ }] } });
121
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnVtYmVyLWlucHV0LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9pbnB1dC9udW1iZXItaW5wdXQvbnVtYmVyLWlucHV0LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uL3NyYy9pbnB1dC9udW1iZXItaW5wdXQvbnVtYmVyLWlucHV0LmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSw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biBpY29uPVwiYW5nbGVfdXBcIj48L2F1aS1pY29uPlxuICAgICAgPC9idXR0b24+XG4gICAgICA8YnV0dG9uXG4gICAgICAgIHR5cGU9XCJidXR0b25cIlxuICAgICAgICBbbmdDbGFzc109XCJiZW0uZWxlbWVudCgnY29udHJvbCcsICdhbmdsZS1kb3duJylcIlxuICAgICAgICBbZGlzYWJsZWRdPVwiZGlzYWJsZWQgfHwgbW9kZWwgPD0gbWluXCJcbiAgICAgICAgKGNsaWNrKT1cInRha2VPbmVTdGVwKGZhbHNlKTsgaXNGb2N1cyA9IHRydWVcIlxuICAgICAgPlxuICAgICAgICA8YXVpLWljb24gaWNvbj1cImFuZ2xlX2Rvd25cIj48L2F1aS1pY29uPlxuICAgICAgPC9idXR0b24+XG4gICAgPC9kaXY+XG4gIDwvZGl2PlxuICA8ZGl2XG4gICAgKm5nSWY9XCJoYXNBZGRvbkFmdGVyJCB8IGFzeW5jXCJcbiAgICBbY2xhc3NdPVwiYmVtLmVsZW1lbnQoJ2FkZG9uJywgJ2FmdGVyJylcIlxuICA+XG4gICAgPG5nLWNvbnRlbnQgc2VsZWN0PVwiW2F1aUlucHV0QWRkb25BZnRlcl1cIj48L25nLWNvbnRlbnQ+XG4gIDwvZGl2PlxuPC9kaXY+XG4iXX0=
@@ -0,0 +1,87 @@
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
+ bem = buildBem('aui-search');
11
+ size = ComponentSize.Medium;
12
+ searchButton = false;
13
+ clearable = true;
14
+ searching = false;
15
+ placeholder = '';
16
+ disabled = false;
17
+ get keyword() {
18
+ return this.value;
19
+ }
20
+ set keyword(value) {
21
+ this.value = value;
22
+ }
23
+ keywordChange = new EventEmitter();
24
+ search = new EventEmitter();
25
+ clear = new EventEmitter();
26
+ inputRef;
27
+ value = '';
28
+ get showSpinner() {
29
+ return this.searching && !this.searchButton;
30
+ }
31
+ get showClear() {
32
+ return !this.disabled && this.clearable && this.value && !this.showSpinner;
33
+ }
34
+ focus() {
35
+ this.inputRef.nativeElement.focus();
36
+ }
37
+ emitChange(value) {
38
+ this.value = value;
39
+ this.keywordChange.emit(value);
40
+ }
41
+ emitSearch() {
42
+ if (this.disabled) {
43
+ return;
44
+ }
45
+ this.search.emit(this.value);
46
+ }
47
+ emitClear() {
48
+ if (this.disabled) {
49
+ return;
50
+ }
51
+ this.value = '';
52
+ this.keywordChange.emit('');
53
+ this.search.emit('');
54
+ this.clear.emit();
55
+ this.inputRef.nativeElement.focus();
56
+ }
57
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: SearchComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
58
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.0", 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 });
59
+ }
60
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: SearchComponent, decorators: [{
61
+ type: Component,
62
+ 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"] }]
63
+ }], propDecorators: { size: [{
64
+ type: Input
65
+ }], searchButton: [{
66
+ type: Input
67
+ }], clearable: [{
68
+ type: Input
69
+ }], searching: [{
70
+ type: Input
71
+ }], placeholder: [{
72
+ type: Input
73
+ }], disabled: [{
74
+ type: Input
75
+ }], keyword: [{
76
+ type: Input
77
+ }], keywordChange: [{
78
+ type: Output
79
+ }], search: [{
80
+ type: Output
81
+ }], clear: [{
82
+ type: Output
83
+ }], inputRef: [{
84
+ type: ViewChild,
85
+ args: ['input', { read: ElementRef }]
86
+ }] } });
87
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VhcmNoLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9pbnB1dC9zZWFyY2gvc2VhcmNoLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uL3NyYy9pbnB1dC9zZWFyY2gvc2VhcmNoLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCx1QkFBdUIsRUFDdkIsU0FBUyxFQU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