@sd-angular/core 0.0.1006 → 0.0.1010

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 (303) hide show
  1. package/api/sd-angular-core-api.metadata.json +1 -1
  2. package/api/src/lib/token.service.d.ts +1 -2
  3. package/autocomplete/sd-angular-core-autocomplete.metadata.json +1 -1
  4. package/autocomplete/src/lib/autocomplete.component.d.ts +14 -9
  5. package/autocomplete/src/lib/autocomplete.module.d.ts +0 -1
  6. package/bundles/sd-angular-core-api.umd.js.map +1 -1
  7. package/bundles/sd-angular-core-api.umd.min.js.map +1 -1
  8. package/bundles/sd-angular-core-autocomplete.umd.js +121 -117
  9. package/bundles/sd-angular-core-autocomplete.umd.js.map +1 -1
  10. package/bundles/sd-angular-core-autocomplete.umd.min.js +2 -2
  11. package/bundles/sd-angular-core-autocomplete.umd.min.js.map +1 -1
  12. package/bundles/sd-angular-core-cache.umd.js +4 -4
  13. package/bundles/sd-angular-core-cache.umd.js.map +1 -1
  14. package/bundles/sd-angular-core-cache.umd.min.js +2 -2
  15. package/bundles/sd-angular-core-cache.umd.min.js.map +1 -1
  16. package/bundles/sd-angular-core-chart.umd.js +4 -8
  17. package/bundles/sd-angular-core-chart.umd.js.map +1 -1
  18. package/bundles/sd-angular-core-chart.umd.min.js +1 -1
  19. package/bundles/sd-angular-core-chart.umd.min.js.map +1 -1
  20. package/bundles/sd-angular-core-common.umd.js +378 -4
  21. package/bundles/sd-angular-core-common.umd.js.map +1 -1
  22. package/bundles/sd-angular-core-common.umd.min.js +2 -2
  23. package/bundles/sd-angular-core-common.umd.min.js.map +1 -1
  24. package/bundles/sd-angular-core-date-range.umd.js +4 -4
  25. package/bundles/sd-angular-core-date-range.umd.js.map +1 -1
  26. package/bundles/sd-angular-core-date-range.umd.min.js +2 -2
  27. package/bundles/sd-angular-core-date-range.umd.min.js.map +1 -1
  28. package/bundles/sd-angular-core-date-time.umd.js +57 -35
  29. package/bundles/sd-angular-core-date-time.umd.js.map +1 -1
  30. package/bundles/sd-angular-core-date-time.umd.min.js +2 -2
  31. package/bundles/sd-angular-core-date-time.umd.min.js.map +1 -1
  32. package/bundles/sd-angular-core-export.umd.js +4 -4
  33. package/bundles/sd-angular-core-export.umd.js.map +1 -1
  34. package/bundles/sd-angular-core-export.umd.min.js +1 -1
  35. package/bundles/sd-angular-core-export.umd.min.js.map +1 -1
  36. package/bundles/sd-angular-core-form.umd.js +4 -4
  37. package/bundles/sd-angular-core-form.umd.min.js +1 -1
  38. package/bundles/sd-angular-core-form.umd.min.js.map +1 -1
  39. package/bundles/sd-angular-core-grid-material.umd.js +32 -70
  40. package/bundles/sd-angular-core-grid-material.umd.js.map +1 -1
  41. package/bundles/sd-angular-core-grid-material.umd.min.js +2 -2
  42. package/bundles/sd-angular-core-grid-material.umd.min.js.map +1 -1
  43. package/bundles/sd-angular-core-grid.umd.js +5 -4
  44. package/bundles/sd-angular-core-grid.umd.js.map +1 -1
  45. package/bundles/sd-angular-core-grid.umd.min.js +1 -1
  46. package/bundles/sd-angular-core-grid.umd.min.js.map +1 -1
  47. package/bundles/sd-angular-core-input-upload-file.umd.js +4 -4
  48. package/bundles/sd-angular-core-input-upload-file.umd.js.map +1 -1
  49. package/bundles/sd-angular-core-input-upload-file.umd.min.js +2 -2
  50. package/bundles/sd-angular-core-input-upload-file.umd.min.js.map +1 -1
  51. package/bundles/sd-angular-core-input.umd.js +35 -17
  52. package/bundles/sd-angular-core-input.umd.js.map +1 -1
  53. package/bundles/sd-angular-core-input.umd.min.js +2 -2
  54. package/bundles/sd-angular-core-input.umd.min.js.map +1 -1
  55. package/bundles/sd-angular-core-modal.umd.js +4 -4
  56. package/bundles/sd-angular-core-modal.umd.js.map +1 -1
  57. package/bundles/sd-angular-core-modal.umd.min.js +1 -1
  58. package/bundles/sd-angular-core-modal.umd.min.js.map +1 -1
  59. package/bundles/sd-angular-core-radio.umd.js +4 -8
  60. package/bundles/sd-angular-core-radio.umd.js.map +1 -1
  61. package/bundles/sd-angular-core-radio.umd.min.js +2 -2
  62. package/bundles/sd-angular-core-radio.umd.min.js.map +1 -1
  63. package/bundles/sd-angular-core-select-editor.umd.js +4 -4
  64. package/bundles/sd-angular-core-select-editor.umd.js.map +1 -1
  65. package/bundles/sd-angular-core-select-editor.umd.min.js +2 -2
  66. package/bundles/sd-angular-core-select-editor.umd.min.js.map +1 -1
  67. package/bundles/sd-angular-core-select.umd.js +116 -129
  68. package/bundles/sd-angular-core-select.umd.js.map +1 -1
  69. package/bundles/sd-angular-core-select.umd.min.js +2 -2
  70. package/bundles/sd-angular-core-select.umd.min.js.map +1 -1
  71. package/bundles/sd-angular-core-service.umd.js +8 -202
  72. package/bundles/sd-angular-core-service.umd.js.map +1 -1
  73. package/bundles/sd-angular-core-service.umd.min.js +1 -1
  74. package/bundles/sd-angular-core-service.umd.min.js.map +1 -1
  75. package/bundles/sd-angular-core-side-drawer.umd.js +4 -4
  76. package/bundles/sd-angular-core-side-drawer.umd.js.map +1 -1
  77. package/bundles/sd-angular-core-side-drawer.umd.min.js +2 -2
  78. package/bundles/sd-angular-core-side-drawer.umd.min.js.map +1 -1
  79. package/bundles/sd-angular-core-time.umd.js +4 -4
  80. package/bundles/sd-angular-core-time.umd.js.map +1 -1
  81. package/bundles/sd-angular-core-time.umd.min.js +2 -2
  82. package/bundles/sd-angular-core-time.umd.min.js.map +1 -1
  83. package/bundles/sd-angular-core-upload-excel.umd.js +4 -4
  84. package/bundles/sd-angular-core-upload-excel.umd.js.map +1 -1
  85. package/bundles/sd-angular-core-upload-excel.umd.min.js +1 -1
  86. package/bundles/sd-angular-core-upload-excel.umd.min.js.map +1 -1
  87. package/bundles/sd-angular-core-upload-file.umd.js +4 -4
  88. package/bundles/sd-angular-core-upload-file.umd.js.map +1 -1
  89. package/bundles/sd-angular-core-upload-file.umd.min.js +2 -2
  90. package/bundles/sd-angular-core-upload-file.umd.min.js.map +1 -1
  91. package/bundles/sd-angular-core-utility.umd.js +4 -4
  92. package/bundles/sd-angular-core-utility.umd.js.map +1 -1
  93. package/bundles/sd-angular-core-utility.umd.min.js +1 -1
  94. package/bundles/sd-angular-core-utility.umd.min.js.map +1 -1
  95. package/bundles/sd-angular-core.umd.js +4 -8
  96. package/bundles/sd-angular-core.umd.js.map +1 -1
  97. package/bundles/sd-angular-core.umd.min.js +1 -1
  98. package/bundles/sd-angular-core.umd.min.js.map +1 -1
  99. package/cache/sd-angular-core-cache.metadata.json +1 -1
  100. package/cache/src/lib/cache.service.d.ts +0 -1
  101. package/cache/src/public-api.d.ts +1 -0
  102. package/chart/sd-angular-core-chart.metadata.json +1 -1
  103. package/chart/src/lib/chart.component.d.ts +0 -1
  104. package/chart/src/public-api.d.ts +1 -0
  105. package/common/sd-angular-core-common.metadata.json +1 -1
  106. package/common/src/lib/common.module.d.ts +2 -0
  107. package/{grid-material → common}/src/lib/directives/sd-let.directive.d.ts +0 -0
  108. package/common/src/lib/directives/view-def.directive.d.ts +5 -0
  109. package/common/src/lib/typings/array.extension.d.ts +20 -0
  110. package/{service → common}/src/lib/typings/date.extension.d.ts +0 -0
  111. package/{service → common}/src/lib/typings/number.extension.d.ts +0 -0
  112. package/{typing/src/lib/typing → common/src/lib/typings}/string.extension.d.ts +2 -0
  113. package/common/src/public-api.d.ts +7 -0
  114. package/date-range/index.d.ts +0 -1
  115. package/date-range/sd-angular-core-date-range.metadata.json +1 -1
  116. package/date-range/src/lib/date-range.component.d.ts +0 -1
  117. package/date-range/src/lib/date-range.module.d.ts +0 -1
  118. package/date-range/src/public-api.d.ts +1 -1
  119. package/date-time/sd-angular-core-date-time.metadata.json +1 -1
  120. package/date-time/src/lib/date-time.component.d.ts +14 -7
  121. package/date-time/src/lib/date-time.module.d.ts +0 -1
  122. package/date-time/src/public-api.d.ts +0 -1
  123. package/esm2015/api/src/lib/token.service.js +1 -1
  124. package/esm2015/autocomplete/src/lib/autocomplete.component.js +111 -89
  125. package/esm2015/autocomplete/src/lib/autocomplete.module.js +6 -4
  126. package/esm2015/cache/src/lib/cache.service.js +1 -2
  127. package/esm2015/cache/src/public-api.js +2 -1
  128. package/esm2015/chart/src/lib/chart.component.js +1 -2
  129. package/esm2015/chart/src/public-api.js +2 -4
  130. package/esm2015/common/src/lib/common.module.js +24 -0
  131. package/esm2015/common/src/lib/directives/sd-let.directive.js +29 -0
  132. package/esm2015/common/src/lib/directives/view-def.directive.js +16 -0
  133. package/esm2015/common/src/lib/typings/array.extension.js +65 -0
  134. package/esm2015/common/src/lib/typings/date.extension.js +143 -0
  135. package/esm2015/common/src/lib/typings/number.extension.js +33 -0
  136. package/esm2015/common/src/lib/typings/string.extension.js +42 -0
  137. package/esm2015/common/src/public-api.js +8 -1
  138. package/esm2015/date-range/index.js +1 -2
  139. package/esm2015/date-range/src/lib/date-range.component.js +1 -2
  140. package/esm2015/date-range/src/lib/date-range.module.js +1 -2
  141. package/esm2015/date-range/src/public-api.js +2 -2
  142. package/esm2015/date-time/src/lib/date-time.component.js +55 -35
  143. package/esm2015/date-time/src/lib/date-time.module.js +5 -3
  144. package/esm2015/date-time/src/public-api.js +1 -2
  145. package/esm2015/export/src/lib/export.service.js +1 -2
  146. package/esm2015/form/src/public-api.js +2 -1
  147. package/esm2015/grid/src/lib/components/grid-date-picker-control/grid-date-picker-control.component.js +1 -2
  148. package/esm2015/grid/src/lib/grid.module.js +1 -2
  149. package/esm2015/grid/src/lib/models/handler-dotnet.js +1 -2
  150. package/esm2015/grid-material/sd-angular-core-grid-material.js +27 -28
  151. package/esm2015/grid-material/src/lib/grid-material.module.js +4 -5
  152. package/esm2015/grid-material/src/public-api.js +2 -4
  153. package/esm2015/input/src/lib/input.component.js +26 -6
  154. package/esm2015/input/src/lib/input.module.js +6 -3
  155. package/esm2015/input-upload-file/src/lib/input-upload-file.component.js +2 -2
  156. package/esm2015/input-upload-file/src/lib/input-upload-file.module.js +1 -2
  157. package/esm2015/lib/controls/date-picker-control/date-picker-control.component.js +1 -2
  158. package/esm2015/lib/pipes/sd-date.pipe.js +1 -2
  159. package/esm2015/modal/src/lib/modal.module.js +1 -2
  160. package/esm2015/public-api.js +11 -14
  161. package/esm2015/radio/src/lib/radio.module.js +1 -2
  162. package/esm2015/radio/src/public-api.js +2 -4
  163. package/esm2015/select/src/lib/select.component.js +78 -100
  164. package/esm2015/select/src/lib/select.module.js +6 -4
  165. package/esm2015/select-editor/src/lib/select-editor.module.js +1 -2
  166. package/esm2015/service/src/lib/service.module.js +6 -4
  167. package/esm2015/service/src/public-api.js +2 -2
  168. package/esm2015/side-drawer/src/lib/side-drawer.module.js +1 -2
  169. package/esm2015/time/src/lib/time.component.js +1 -2
  170. package/esm2015/time/src/public-api.js +2 -1
  171. package/esm2015/upload-excel/src/lib/upload-excel.component.js +1 -2
  172. package/esm2015/upload-excel/src/lib/upload-excel.module.js +1 -2
  173. package/esm2015/upload-file/src/lib/upload-file.module.js +1 -2
  174. package/esm2015/utility/src/lib/pipes/currency.pipe.js +1 -2
  175. package/esm2015/utility/src/lib/pipes/time-different.pipe.js +1 -2
  176. package/esm2015/utility/src/lib/utility.service.js +1 -2
  177. package/esm2015/utility/src/public-api.js +2 -1
  178. package/export/sd-angular-core-export.metadata.json +1 -1
  179. package/export/src/lib/export.service.d.ts +0 -1
  180. package/fesm2015/sd-angular-core-api.js.map +1 -1
  181. package/fesm2015/sd-angular-core-autocomplete.js +114 -91
  182. package/fesm2015/sd-angular-core-autocomplete.js.map +1 -1
  183. package/fesm2015/sd-angular-core-cache.js +1 -1
  184. package/fesm2015/sd-angular-core-cache.js.map +1 -1
  185. package/fesm2015/sd-angular-core-chart.js +1 -5
  186. package/fesm2015/sd-angular-core-chart.js.map +1 -1
  187. package/fesm2015/sd-angular-core-common.js +346 -2
  188. package/fesm2015/sd-angular-core-common.js.map +1 -1
  189. package/fesm2015/sd-angular-core-date-range.js +1 -1
  190. package/fesm2015/sd-angular-core-date-range.js.map +1 -1
  191. package/fesm2015/sd-angular-core-date-time.js +57 -36
  192. package/fesm2015/sd-angular-core-date-time.js.map +1 -1
  193. package/fesm2015/sd-angular-core-export.js +0 -1
  194. package/fesm2015/sd-angular-core-export.js.map +1 -1
  195. package/fesm2015/sd-angular-core-form.js +1 -0
  196. package/fesm2015/sd-angular-core-form.js.map +1 -1
  197. package/fesm2015/sd-angular-core-grid-material.js +5 -37
  198. package/fesm2015/sd-angular-core-grid-material.js.map +1 -1
  199. package/fesm2015/sd-angular-core-grid.js +1 -1
  200. package/fesm2015/sd-angular-core-grid.js.map +1 -1
  201. package/fesm2015/sd-angular-core-input-upload-file.js +0 -1
  202. package/fesm2015/sd-angular-core-input-upload-file.js.map +1 -1
  203. package/fesm2015/sd-angular-core-input.js +29 -8
  204. package/fesm2015/sd-angular-core-input.js.map +1 -1
  205. package/fesm2015/sd-angular-core-modal.js +0 -1
  206. package/fesm2015/sd-angular-core-modal.js.map +1 -1
  207. package/fesm2015/sd-angular-core-radio.js +1 -5
  208. package/fesm2015/sd-angular-core-radio.js.map +1 -1
  209. package/fesm2015/sd-angular-core-select-editor.js +0 -1
  210. package/fesm2015/sd-angular-core-select-editor.js.map +1 -1
  211. package/fesm2015/sd-angular-core-select.js +81 -102
  212. package/fesm2015/sd-angular-core-select.js.map +1 -1
  213. package/fesm2015/sd-angular-core-service.js +5 -198
  214. package/fesm2015/sd-angular-core-service.js.map +1 -1
  215. package/fesm2015/sd-angular-core-side-drawer.js +0 -1
  216. package/fesm2015/sd-angular-core-side-drawer.js.map +1 -1
  217. package/fesm2015/sd-angular-core-time.js +1 -1
  218. package/fesm2015/sd-angular-core-time.js.map +1 -1
  219. package/fesm2015/sd-angular-core-upload-excel.js +0 -1
  220. package/fesm2015/sd-angular-core-upload-excel.js.map +1 -1
  221. package/fesm2015/sd-angular-core-upload-file.js +0 -1
  222. package/fesm2015/sd-angular-core-upload-file.js.map +1 -1
  223. package/fesm2015/sd-angular-core-utility.js +1 -1
  224. package/fesm2015/sd-angular-core-utility.js.map +1 -1
  225. package/fesm2015/sd-angular-core.js +15 -20
  226. package/fesm2015/sd-angular-core.js.map +1 -1
  227. package/form/src/public-api.d.ts +1 -0
  228. package/grid/sd-angular-core-grid.metadata.json +1 -1
  229. package/grid/src/lib/components/grid-date-picker-control/grid-date-picker-control.component.d.ts +0 -1
  230. package/grid/src/lib/grid.module.d.ts +0 -1
  231. package/grid/src/lib/models/handler-dotnet.d.ts +0 -1
  232. package/grid-material/sd-angular-core-grid-material.d.ts +26 -27
  233. package/grid-material/sd-angular-core-grid-material.metadata.json +1 -1
  234. package/grid-material/src/lib/grid-material.module.d.ts +0 -1
  235. package/grid-material/src/public-api.d.ts +1 -0
  236. package/input/sd-angular-core-input.metadata.json +1 -1
  237. package/input/src/lib/input.component.d.ts +5 -0
  238. package/input-upload-file/sd-angular-core-input-upload-file.metadata.json +1 -1
  239. package/input-upload-file/src/lib/input-upload-file.module.d.ts +0 -1
  240. package/lib/controls/date-picker-control/date-picker-control.component.d.ts +0 -1
  241. package/lib/pipes/sd-date.pipe.d.ts +0 -1
  242. package/modal/sd-angular-core-modal.metadata.json +1 -1
  243. package/modal/src/lib/modal.module.d.ts +0 -1
  244. package/package.json +1 -1
  245. package/public-api.d.ts +10 -10
  246. package/radio/sd-angular-core-radio.metadata.json +1 -1
  247. package/radio/src/lib/radio.module.d.ts +0 -1
  248. package/radio/src/public-api.d.ts +1 -0
  249. package/{sd-angular-core-0.0.1006.tgz → sd-angular-core-0.0.1010.tgz} +0 -0
  250. package/sd-angular-core.metadata.json +1 -1
  251. package/select/sd-angular-core-select.metadata.json +1 -1
  252. package/select/src/lib/select.component.d.ts +12 -5
  253. package/select/src/lib/select.module.d.ts +0 -1
  254. package/select-editor/sd-angular-core-select-editor.metadata.json +1 -1
  255. package/select-editor/src/lib/select-editor.module.d.ts +0 -1
  256. package/service/sd-angular-core-service.metadata.json +1 -1
  257. package/service/src/lib/service.module.d.ts +0 -1
  258. package/service/src/public-api.d.ts +1 -1
  259. package/side-drawer/sd-angular-core-side-drawer.metadata.json +1 -1
  260. package/side-drawer/src/lib/side-drawer.module.d.ts +0 -1
  261. package/time/sd-angular-core-time.metadata.json +1 -1
  262. package/time/src/lib/time.component.d.ts +0 -1
  263. package/time/src/public-api.d.ts +1 -0
  264. package/upload-excel/sd-angular-core-upload-excel.metadata.json +1 -1
  265. package/upload-excel/src/lib/upload-excel.component.d.ts +0 -1
  266. package/upload-excel/src/lib/upload-excel.module.d.ts +0 -1
  267. package/upload-file/sd-angular-core-upload-file.metadata.json +1 -1
  268. package/upload-file/src/lib/upload-file.module.d.ts +0 -1
  269. package/utility/sd-angular-core-utility.metadata.json +1 -1
  270. package/utility/src/lib/pipes/currency.pipe.d.ts +0 -1
  271. package/utility/src/lib/pipes/time-different.pipe.d.ts +0 -1
  272. package/utility/src/lib/utility.service.d.ts +0 -1
  273. package/utility/src/public-api.d.ts +1 -0
  274. package/bundles/sd-angular-core-typing.umd.js +0 -226
  275. package/bundles/sd-angular-core-typing.umd.js.map +0 -1
  276. package/bundles/sd-angular-core-typing.umd.min.js +0 -2
  277. package/bundles/sd-angular-core-typing.umd.min.js.map +0 -1
  278. package/esm2015/grid-material/src/lib/directives/sd-let.directive.js +0 -29
  279. package/esm2015/service/src/lib/typings/date.extension.js +0 -143
  280. package/esm2015/service/src/lib/typings/index.js +0 -4
  281. package/esm2015/service/src/lib/typings/number.extension.js +0 -33
  282. package/esm2015/service/src/lib/typings/string.extension.js +0 -23
  283. package/esm2015/typing/index.js +0 -2
  284. package/esm2015/typing/sd-angular-core-typing.js +0 -5
  285. package/esm2015/typing/src/lib/typing/date.extension.js +0 -143
  286. package/esm2015/typing/src/lib/typing/index.js +0 -4
  287. package/esm2015/typing/src/lib/typing/number.extension.js +0 -33
  288. package/esm2015/typing/src/lib/typing/string.extension.js +0 -23
  289. package/esm2015/typing/src/lib/typing.service.js +0 -13
  290. package/esm2015/typing/src/public-api.js +0 -3
  291. package/fesm2015/sd-angular-core-typing.js +0 -215
  292. package/fesm2015/sd-angular-core-typing.js.map +0 -1
  293. package/service/src/lib/typings/index.d.ts +0 -3
  294. package/service/src/lib/typings/string.extension.d.ts +0 -8
  295. package/typing/index.d.ts +0 -1
  296. package/typing/package.json +0 -12
  297. package/typing/sd-angular-core-typing.d.ts +0 -4
  298. package/typing/sd-angular-core-typing.metadata.json +0 -1
  299. package/typing/src/lib/typing/date.extension.d.ts +0 -24
  300. package/typing/src/lib/typing/index.d.ts +0 -3
  301. package/typing/src/lib/typing/number.extension.d.ts +0 -9
  302. package/typing/src/lib/typing.service.d.ts +0 -3
  303. package/typing/src/public-api.d.ts +0 -2
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('@angular/material/form-field'), require('@angular/material/input'), require('rxjs/operators'), require('uuid'), require('rxjs'), require('@sd-angular/core/utility'), require('@angular/material/autocomplete'), require('@sd-angular/core/common'), require('@sd-angular/core/typing'), require('@angular/material/icon'), require('@sd-angular/core/translate'), require('@angular/material/tooltip'), require('@angular/material/progress-spinner')) :
3
- typeof define === 'function' && define.amd ? define('@sd-angular/core/autocomplete', ['exports', '@angular/core', '@angular/common', '@angular/forms', '@angular/material/form-field', '@angular/material/input', 'rxjs/operators', 'uuid', 'rxjs', '@sd-angular/core/utility', '@angular/material/autocomplete', '@sd-angular/core/common', '@sd-angular/core/typing', '@angular/material/icon', '@sd-angular/core/translate', '@angular/material/tooltip', '@angular/material/progress-spinner'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['sd-angular'] = global['sd-angular'] || {}, global['sd-angular'].core = global['sd-angular'].core || {}, global['sd-angular'].core.autocomplete = {}), global.ng.core, global.ng.common, global.ng.forms, global.ng.material.formField, global.ng.material.input, global.rxjs.operators, global.uuid, global.rxjs, global['sd-angular'].core.utility, global.ng.material.autocomplete, global['sd-angular'].core.common, global['sd-angular'].core.typing, global.ng.material.icon, global['sd-angular'].core.translate, global.ng.material.tooltip, global.ng.material.progressSpinner));
5
- }(this, (function (exports, core, common$1, forms, formField, input, operators, uuid, rxjs, utility, autocomplete, common, typing, icon, translate, tooltip, progressSpinner) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('@angular/material/form-field'), require('@angular/material/input'), require('rxjs/operators'), require('uuid'), require('rxjs'), require('@angular/material/autocomplete'), require('@sd-angular/core/common'), require('@angular/material/icon'), require('@sd-angular/core/translate'), require('@angular/material/tooltip'), require('@angular/material/progress-spinner')) :
3
+ typeof define === 'function' && define.amd ? define('@sd-angular/core/autocomplete', ['exports', '@angular/core', '@angular/common', '@angular/forms', '@angular/material/form-field', '@angular/material/input', 'rxjs/operators', 'uuid', 'rxjs', '@angular/material/autocomplete', '@sd-angular/core/common', '@angular/material/icon', '@sd-angular/core/translate', '@angular/material/tooltip', '@angular/material/progress-spinner'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['sd-angular'] = global['sd-angular'] || {}, global['sd-angular'].core = global['sd-angular'].core || {}, global['sd-angular'].core.autocomplete = {}), global.ng.core, global.ng.common, global.ng.forms, global.ng.material.formField, global.ng.material.input, global.rxjs.operators, global.uuid, global.rxjs, global.ng.material.autocomplete, global['sd-angular'].core.common, global.ng.material.icon, global['sd-angular'].core.translate, global.ng.material.tooltip, global.ng.material.progressSpinner));
5
+ }(this, (function (exports, core, common$1, forms, formField, input, operators, uuid, rxjs, autocomplete, common, icon, translate, tooltip, progressSpinner) { 'use strict';
6
6
 
7
7
  /*! *****************************************************************************
8
8
  Copyright (c) Microsoft Corporation.
@@ -337,7 +337,7 @@
337
337
  { type: core.TemplateRef }
338
338
  ]; };
339
339
 
340
- var _model, _items, _currentItems, _delay, _name, _form, _subscription, _loadItems;
340
+ var _model, _delay, _name, _form, _itemsChanges, _subscription, _cache, _item;
341
341
  var SdAutocompleteErrotStateMatcher = /** @class */ (function () {
342
342
  function SdAutocompleteErrotStateMatcher(formControl) {
343
343
  this.formControl = formControl;
@@ -350,21 +350,19 @@
350
350
  return SdAutocompleteErrotStateMatcher;
351
351
  }());
352
352
  var SdAutocomplete = /** @class */ (function () {
353
- function SdAutocomplete(ref, utilityService) {
353
+ function SdAutocomplete(ref) {
354
354
  var _this = this;
355
355
  this.ref = ref;
356
- this.utilityService = utilityService;
357
356
  this.id = "I" + uuid.v4();
358
357
  _model.set(this, void 0);
359
- _items.set(this, []);
360
- _currentItems.set(this, []);
361
- _delay.set(this, 500); // Sau khoảng thời gian delay nếu không có thay đổi thì thì mới bắt đầu thực hiện gọi hàm
358
+ _delay.set(this, 0); // Sau khoảng thời gian delay nếu không có thay đổi thì thì mới bắt đầu thực hiện gọi hàm
362
359
  _name.set(this, uuid.v4());
363
360
  this.loading = false;
364
361
  this.inputControl = new forms.FormControl();
365
362
  this.formControl = new common.SdFormControl();
366
363
  this.matcher = new SdAutocompleteErrotStateMatcher(this.formControl);
367
364
  _form.set(this, void 0);
365
+ _itemsChanges.set(this, new rxjs.BehaviorSubject([]));
368
366
  this.limit = 100;
369
367
  this.action = new core.EventEmitter();
370
368
  this.modelChange = new core.EventEmitter();
@@ -372,17 +370,9 @@
372
370
  this.isRequired = false;
373
371
  this.disableErrorMessage = false;
374
372
  _subscription.set(this, new rxjs.Subscription());
375
- _loadItems.set(this, function (searchText, items) { return __awaiter(_this, void 0, void 0, function () {
376
- var _this = this;
377
- return __generator(this, function (_d) {
378
- switch (_d.label) {
379
- case 0:
380
- this.loading = true;
381
- return [4 /*yield*/, items(searchText).finally(function () { return _this.loading = false; })];
382
- case 1: return [2 /*return*/, _d.sent()];
383
- }
384
- });
385
- }); });
373
+ this.isFocused = false;
374
+ _cache.set(this, {});
375
+ _item.set(this, {});
386
376
  this.onSelect = function (item) {
387
377
  if (item) {
388
378
  if (typeof (item) === 'string' || typeof (item) === 'number') {
@@ -403,21 +393,39 @@
403
393
  _this.inputControl.setValue('', {
404
394
  emitEvent: false
405
395
  });
406
- // this.ref.markForCheck();
407
- // this.inputControl.setValue('', {
408
- // emitEvent: false
409
- // });
410
396
  }
411
397
  };
412
398
  this.onFocus = function () {
399
+ _this.isFocused = true;
413
400
  _this.inputControl.setValue('');
414
401
  // this.inputControl.updateValueAndValidity();
415
402
  };
416
403
  this.onBlur = function () {
404
+ _this.isFocused = false;
417
405
  _this.inputControl.setValue('', {
418
406
  emitEvent: false
419
407
  });
420
408
  };
409
+ this.onClick = function () {
410
+ var _a;
411
+ if ((_a = _this.sdView) === null || _a === void 0 ? void 0 : _a.templateRef) {
412
+ if (!_this.formControl.disabled && !_this.isFocused) {
413
+ _this.focus();
414
+ }
415
+ }
416
+ };
417
+ this.blur = function () {
418
+ var _a, _b;
419
+ (_b = (_a = _this.input) === null || _a === void 0 ? void 0 : _a.nativeElement) === null || _b === void 0 ? void 0 : _b.blur();
420
+ };
421
+ this.focus = function () {
422
+ _this.isFocused = true;
423
+ setTimeout(function () {
424
+ var _a, _b, _c;
425
+ (_a = _this.autocompleteTrigger) === null || _a === void 0 ? void 0 : _a.openPanel();
426
+ (_c = (_b = _this.input) === null || _b === void 0 ? void 0 : _b.nativeElement) === null || _c === void 0 ? void 0 : _c.focus();
427
+ }, 100);
428
+ };
421
429
  this.clear = function ($event) {
422
430
  var _a;
423
431
  $event === null || $event === void 0 ? void 0 : $event.stopPropagation();
@@ -438,21 +446,11 @@
438
446
  _this.inputControl.updateValueAndValidity({ emitEvent: true });
439
447
  };
440
448
  }
441
- Object.defineProperty(SdAutocomplete.prototype, "isNumber", {
442
- get: function () {
443
- var _a;
444
- if (__classPrivateFieldGet(this, _model) || __classPrivateFieldGet(this, _model) === 0) {
445
- return typeof (__classPrivateFieldGet(this, _model)) === 'number';
446
- }
447
- if ((_a = __classPrivateFieldGet(this, _currentItems)) === null || _a === void 0 ? void 0 : _a.length) {
448
- if (this.valueField) {
449
- return typeof (__classPrivateFieldGet(this, _currentItems)[0][this.valueField]) === 'number';
450
- }
451
- else {
452
- return typeof (__classPrivateFieldGet(this, _currentItems)[0]) === 'number';
453
- }
449
+ Object.defineProperty(SdAutocomplete.prototype, "name", {
450
+ set: function (val) {
451
+ if (val) {
452
+ __classPrivateFieldSet(this, _name, val);
454
453
  }
455
- return false;
456
454
  },
457
455
  enumerable: false,
458
456
  configurable: true
@@ -474,16 +472,16 @@
474
472
  Object.defineProperty(SdAutocomplete.prototype, "items", {
475
473
  set: function (items) {
476
474
  if (!items) {
477
- __classPrivateFieldSet(this, _items, []);
475
+ __classPrivateFieldGet(this, _itemsChanges).next([]);
478
476
  }
479
477
  else if (Array.isArray(items)) {
480
- __classPrivateFieldSet(this, _items, items.filter(function (e) { return e !== null && e !== undefined; }));
478
+ __classPrivateFieldGet(this, _itemsChanges).next(items.filter(function (e) { return e !== null && e !== undefined; }));
481
479
  }
482
480
  else {
483
- __classPrivateFieldSet(this, _items, items);
481
+ __classPrivateFieldGet(this, _itemsChanges).next(items);
482
+ __classPrivateFieldSet(this, _delay, 500);
484
483
  }
485
484
  this.formControl.updateValueAndValidity();
486
- this.inputControl.updateValueAndValidity();
487
485
  },
488
486
  enumerable: false,
489
487
  configurable: true
@@ -502,9 +500,11 @@
502
500
  val = (val === '') || val;
503
501
  if (val) {
504
502
  this.inputControl.disable();
503
+ this.formControl.disable();
505
504
  }
506
505
  else {
507
506
  this.inputControl.enable();
507
+ this.formControl.disable();
508
508
  }
509
509
  },
510
510
  enumerable: false,
@@ -536,74 +536,76 @@
536
536
  __classPrivateFieldGet(this, _subscription).add(this.formControl.touchedChanges.subscribe(function () {
537
537
  _this.ref.markForCheck();
538
538
  }));
539
+ this.filteredItems = rxjs.combineLatest([
540
+ __classPrivateFieldGet(this, _itemsChanges).asObservable(),
541
+ this.inputControl.valueChanges.pipe(operators.debounceTime(__classPrivateFieldGet(this, _delay)))
542
+ ]).pipe(operators.switchMap(function (_e) {
543
+ var _f = __read(_e, 2), items = _f[0], searchText = _f[1];
544
+ searchText = searchText || '';
545
+ if (typeof (items) === 'function') {
546
+ if (__classPrivateFieldGet(_this, _cache)[searchText] !== undefined) {
547
+ return __classPrivateFieldGet(_this, _cache)[searchText].asObservable();
548
+ }
549
+ var obs = void 0;
550
+ var func_1 = items(searchText, true);
551
+ if (func_1 instanceof Promise) {
552
+ obs = rxjs.defer(function () { return rxjs.from(func_1); });
553
+ }
554
+ else {
555
+ obs = func_1;
556
+ }
557
+ _this.loading = true;
558
+ return obs.pipe(operators.map(function (data) {
559
+ __classPrivateFieldGet(_this, _cache)[searchText] = data || [];
560
+ Object.assign(__classPrivateFieldGet(_this, _item), Array.toObject(__classPrivateFieldGet(_this, _cache)[searchText], _this.valueField));
561
+ return __classPrivateFieldGet(_this, _cache)[searchText];
562
+ }), operators.finalize(function () { return _this.loading = false; }));
563
+ }
564
+ return items
565
+ .search(searchText, [_this.valueField, _this.displayField])
566
+ .paging(_this.limit)
567
+ .asObservable();
568
+ }));
569
+ this.selected = rxjs.combineLatest([
570
+ __classPrivateFieldGet(this, _itemsChanges).asObservable(),
571
+ this.formControl.valueChanges.pipe(operators.startWith(this.formControl.value))
572
+ ])
573
+ .pipe(operators.switchMap(function (_e) {
574
+ var _f = __read(_e, 2), items = _f[0], val = _f[1];
575
+ if (!_this.valueField) {
576
+ return rxjs.of(val);
577
+ }
578
+ if (val || val === 0) {
579
+ if (typeof (items) === 'function') {
580
+ if (__classPrivateFieldGet(_this, _item)[val]) {
581
+ return rxjs.of(__classPrivateFieldGet(_this, _item)[val]);
582
+ }
583
+ var obs = void 0;
584
+ var func_2 = items(val, true);
585
+ if (func_2 instanceof Promise) {
586
+ obs = rxjs.defer(function () { return rxjs.from(func_2); });
587
+ }
588
+ else {
589
+ obs = func_2;
590
+ }
591
+ return obs.pipe(operators.map(function (data) {
592
+ var _e;
593
+ Object.assign(__classPrivateFieldGet(_this, _item), Array.toObject(data, _this.valueField));
594
+ return __classPrivateFieldGet(_this, _item)[val] || (_e = {},
595
+ _e[_this.valueField] = val,
596
+ _e[_this.displayField] = val,
597
+ _e);
598
+ }));
599
+ }
600
+ return rxjs.of(items.find(function (e) { return e[_this.valueField] === val; }));
601
+ }
602
+ return rxjs.of('');
603
+ }));
604
+ this.controlPlaceHolder = this.selected.pipe(operators.map(function (item) { var _a, _b, _c, _d; return (_d = (_c = (_b = (_a = item === null || item === void 0 ? void 0 : item[_this.displayField]) !== null && _a !== void 0 ? _a : item) !== null && _b !== void 0 ? _b : _this.placeholder) !== null && _c !== void 0 ? _c : _this.label) !== null && _d !== void 0 ? _d : ''; }));
539
605
  };
540
606
  SdAutocomplete.prototype.ngAfterViewInit = function () {
541
- var _this = this;
542
607
  var _a;
543
- __classPrivateFieldGet(this, _subscription).add(this.formControl.statusChanges.subscribe(function () { return _this.ref.markForCheck(); }));
544
- this.filteredItems = this.inputControl.valueChanges.pipe(operators.debounceTime(typeof (__classPrivateFieldGet(this, _items)) === 'function' ? __classPrivateFieldGet(this, _delay) : 0),
545
- // distinctUntilChanged(), Dùng sẽ gây ra bug khi items changes
546
- operators.switchMap(function () { return __awaiter(_this, void 0, void 0, function () {
547
- var val, items, changeAliasLowerCase;
548
- var _this = this;
549
- return __generator(this, function (_d) {
550
- switch (_d.label) {
551
- case 0:
552
- val = this.inputControl.value || '';
553
- if (!(typeof (__classPrivateFieldGet(this, _items)) === 'function')) return [3 /*break*/, 2];
554
- return [4 /*yield*/, __classPrivateFieldGet(this, _loadItems).call(this, val, __classPrivateFieldGet(this, _items))];
555
- case 1:
556
- items = _d.sent();
557
- __classPrivateFieldSet(this, _currentItems, items.filter(function (item, index) { return index < _this.limit; }));
558
- return [2 /*return*/, __classPrivateFieldGet(this, _currentItems)];
559
- case 2:
560
- changeAliasLowerCase = this.utilityService.changeAliasLowerCase;
561
- __classPrivateFieldSet(this, _currentItems, __classPrivateFieldGet(this, _items).filter(function (item) {
562
- var value = item[_this.valueField];
563
- var display = item[_this.displayField];
564
- var searchText = changeAliasLowerCase(val);
565
- return changeAliasLowerCase(value).indexOf(searchText) !== -1 || changeAliasLowerCase(display).indexOf(searchText) !== -1;
566
- }).filter(function (item, index) { return index < _this.limit; }));
567
- return [2 /*return*/, __classPrivateFieldGet(this, _currentItems)];
568
- }
569
- });
570
- }); }));
571
- this.controlPlaceHolder = this.formControl.valueChanges.pipe(operators.startWith(''),
572
- // distinctUntilChanged(), Dùng sẽ gây ra bug khi items changes
573
- operators.switchMap(function () { return __awaiter(_this, void 0, void 0, function () {
574
- var val, currentItems, items, item;
575
- var _this = this;
576
- return __generator(this, function (_d) {
577
- switch (_d.label) {
578
- case 0:
579
- val = this.formControl.value;
580
- if (!(val || val === 0)) return [3 /*break*/, 4];
581
- currentItems = [];
582
- items = __classPrivateFieldGet(this, _items);
583
- if (!(typeof (items) === 'function')) return [3 /*break*/, 2];
584
- return [4 /*yield*/, __classPrivateFieldGet(this, _loadItems).call(this, val, items)];
585
- case 1:
586
- currentItems = _d.sent();
587
- return [3 /*break*/, 3];
588
- case 2:
589
- currentItems = items || [];
590
- _d.label = 3;
591
- case 3:
592
- if (this.valueField && this.displayField) {
593
- item = currentItems.find(function (e) { return e[_this.valueField] === val; });
594
- return [2 /*return*/, (item === null || item === void 0 ? void 0 : item[this.displayField]) || val];
595
- }
596
- else {
597
- return [2 /*return*/, currentItems.find(function (e) { return e === val; }) || val];
598
- }
599
- return [3 /*break*/, 5];
600
- case 4: return [2 /*return*/, this.placeholder || this.label || ''];
601
- case 5: return [2 /*return*/];
602
- }
603
- });
604
- }); }));
605
608
  (_a = __classPrivateFieldGet(this, _form)) === null || _a === void 0 ? void 0 : _a.addControl(__classPrivateFieldGet(this, _name), this.formControl);
606
- this.ref.detectChanges();
607
609
  };
608
610
  SdAutocomplete.prototype.ngOnDestroy = function () {
609
611
  var _a;
@@ -612,29 +614,27 @@
612
614
  };
613
615
  return SdAutocomplete;
614
616
  }());
615
- _model = new WeakMap(), _items = new WeakMap(), _currentItems = new WeakMap(), _delay = new WeakMap(), _name = new WeakMap(), _form = new WeakMap(), _subscription = new WeakMap(), _loadItems = new WeakMap();
617
+ _model = new WeakMap(), _delay = new WeakMap(), _name = new WeakMap(), _form = new WeakMap(), _itemsChanges = new WeakMap(), _subscription = new WeakMap(), _cache = new WeakMap(), _item = new WeakMap();
616
618
  SdAutocomplete.decorators = [
617
619
  { type: core.Component, args: [{
618
620
  selector: 'sd-autocomplete',
619
- template: "<div class=\"d-flex align-items-center\">\r\n <div class=\"mat-label mr-12 mb-12\" *ngIf=\"leftLabel\" [ngStyle]=\"{'min-width': labelMinWidth}\">{{leftLabel}}</div>\r\n <div class=\"media-body\">\r\n <mat-form-field class=\"sd-md\" [ngClass]=\"{'sd-sm': size === 'sm', 'no-padding-wrapper': disableErrorMessage}\"\r\n [floatLabel]=\"size === 'sm' || formControl.value ? 'always':'auto'\" appearance=\"outline\">\r\n <mat-label *ngIf=\"label && !leftLabel\">{{ label }}</mat-label>\r\n <input [id]=\"id\" #autocompleteTrigger [formControl]=\"inputControl\" [placeholder]=\"controlPlaceHolder | async\"\r\n [ngClass]=\"{'c-selected': formControl?.value}\" [matAutocomplete]=\"auto\" (focus)=\"onFocus()\" (blur)=\"onBlur()\"\r\n matInput [autocomplete]=\"id\" autocorrect=\"off\" [errorStateMatcher]=\"matcher\" [required]=\"isRequired\" />\r\n <mat-icon *ngIf=\"!loading && formControl?.value && !inputControl.disabled\" class=\"pointer sd-suffix-icon\"\r\n (click)=\"clear($event)\" matSuffix>cancel\r\n </mat-icon>\r\n <mat-icon *ngIf=\"actionIcon && !loading && !formControl?.value && !inputControl.disabled\"\r\n class=\"pointer sd-suffix-icon\" (click)=\"onAction($event)\" matSuffix>{{actionIcon}}\r\n </mat-icon>\r\n <mat-spinner *ngIf=\"loading\" strokeWidth=\"2\" mode=\"indeterminate\" diameter=\"18\" value=\"100\" matSuffix>\r\n </mat-spinner>\r\n <mat-autocomplete #auto=\"matAutocomplete\" (optionSelected)=\"onSelect($event.option.value)\">\r\n <mat-option *ngFor=\"let item of filteredItems | async\" [value]=\"item\" matTooltipPosition=\"above\"\r\n [matTooltip]=\"item[displayField]\">\r\n <ng-container *ngIf=\"autocompleteDisplayDef?.templateRef\">\r\n <ng-container *ngTemplateOutlet=\"autocompleteDisplayDef.templateRef;context:{item: item}\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-container *ngIf=\"!autocompleteDisplayDef?.templateRef\">\r\n {{ item[displayField] }}\r\n </ng-container>\r\n </mat-option>\r\n </mat-autocomplete>\r\n <mat-error *ngIf=\"formControl?.errors?.required && !disableErrorMessage\">\r\n {{ \"This field is required\" | sdTranslate }}\r\n </mat-error>\r\n </mat-form-field>\r\n </div>\r\n</div>",
621
+ template: "<div class=\"d-flex align-items-center\" [class.sd-view]=\"sdView?.templateRef\" [class.c-focused]=\"isFocused\"\r\n[class.c-disabled]=\"formControl.disabled\" (click)=\"onClick()\">\r\n <ng-container *ngIf=\"sdView?.templateRef && !autocompleteTrigger?.panelOpen && !isFocused; else default\">\r\n <ng-container *ngTemplateOutlet=\"sdView.templateRef;context: { value: formControl.value, selectedItem: selected | async }\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-template #default>\r\n <mat-form-field class=\"sd-md\" [ngClass]=\"{'sd-sm': size === 'sm', 'no-padding-wrapper': disableErrorMessage}\"\r\n [floatLabel]=\"size === 'sm' || formControl.value ? 'always':'auto'\" appearance=\"outline\">\r\n <mat-label *ngIf=\"label\">{{ label }}</mat-label>\r\n <input [id]=\"id\" #autocompleteTrigger [formControl]=\"inputControl\" [placeholder]=\"controlPlaceHolder | async\"\r\n [ngClass]=\"{'c-selected': formControl?.value}\" [matAutocomplete]=\"auto\" (focus)=\"onFocus()\" (blur)=\"onBlur()\"\r\n matInput [autocomplete]=\"id\" autocorrect=\"off\" [errorStateMatcher]=\"matcher\" [required]=\"isRequired\" #input />\r\n <mat-icon *ngIf=\"!loading && formControl?.value && !inputControl.disabled\" class=\"pointer sd-suffix-icon\"\r\n (click)=\"clear($event)\" matSuffix>cancel\r\n </mat-icon>\r\n <mat-icon *ngIf=\"actionIcon && !loading && !formControl?.value && !inputControl.disabled\"\r\n class=\"pointer sd-suffix-icon\" (click)=\"onAction($event)\" matSuffix>{{actionIcon}}\r\n </mat-icon>\r\n <mat-spinner *ngIf=\"loading\" strokeWidth=\"2\" mode=\"indeterminate\" diameter=\"18\" value=\"100\" matSuffix>\r\n </mat-spinner>\r\n <mat-autocomplete #auto=\"matAutocomplete\" (optionSelected)=\"onSelect($event.option.value)\">\r\n <mat-option *ngFor=\"let item of filteredItems | async\" [value]=\"item\" matTooltipPosition=\"above\"\r\n [matTooltip]=\"displayField ? item[displayField] : item\">\r\n <ng-container *ngIf=\"autocompleteDisplayDef?.templateRef\">\r\n <ng-container *ngTemplateOutlet=\"autocompleteDisplayDef.templateRef;context:{item: item}\">\r\n </ng-container>\r\n </ng-container>\r\n <ng-container *ngIf=\"!autocompleteDisplayDef?.templateRef\">\r\n {{ displayField ? item[displayField] : item }}\r\n </ng-container>\r\n </mat-option>\r\n </mat-autocomplete>\r\n <mat-error *ngIf=\"formControl?.errors?.required && !disableErrorMessage\">\r\n {{ \"This field is required\" | sdTranslate }}\r\n </mat-error>\r\n </mat-form-field>\r\n </ng-template>\r\n</div>",
620
622
  changeDetection: core.ChangeDetectionStrategy.OnPush,
621
- styles: [":host{display:block;padding-top:5px}:host ::ng-deep .mat-form-field.no-padding-wrapper .mat-form-field-wrapper{padding-bottom:0}:host ::ng-deep .mat-form-field.mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-outline{background:#f6f6f6;color:#e9e9e9}:host ::ng-deep .mat-form-field input.c-selected::-moz-placeholder{color:#000;opacity:1}:host ::ng-deep .mat-form-field input.c-selected::placeholder{color:#000;opacity:1}:host ::ng-deep .mat-form-field input.c-selected:-ms-input-placeholder{color:#000}:host ::ng-deep .mat-form-field input.c-selected::-ms-input-placeholder{color:#000}:host ::ng-deep .mat-form-field input.mat-input-element:disabled{color:#4d4d4d}:host ::ng-deep .mat-form-field input.mat-input-element:disabled.c-selected::-moz-placeholder{color:#4d4d4d}:host ::ng-deep .mat-form-field input.mat-input-element:disabled.c-selected::placeholder{color:#4d4d4d}:host ::ng-deep .mat-form-field input.mat-input-element:disabled.c-selected:-ms-input-placeholder{color:#4d4d4d}:host ::ng-deep .mat-form-field input.mat-input-element:disabled.c-selected::-ms-input-placeholder{color:#4d4d4d}:host ::ng-deep .mat-form-field .mat-placeholder-required{color:#f82c13}"]
623
+ styles: [":host{display:block;padding-top:5px}:host ::ng-deep .mat-form-field.no-padding-wrapper .mat-form-field-wrapper{padding-bottom:0}:host ::ng-deep .mat-form-field.mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-outline{background:#f6f6f6;color:#e9e9e9}:host ::ng-deep .mat-form-field input.c-selected::-moz-placeholder{color:#000;opacity:1}:host ::ng-deep .mat-form-field input.c-selected::placeholder{color:#000;opacity:1}:host ::ng-deep .mat-form-field input.c-selected:-ms-input-placeholder{color:#000}:host ::ng-deep .mat-form-field input.c-selected::-ms-input-placeholder{color:#000}:host ::ng-deep .mat-form-field input.mat-input-element:disabled{color:#4d4d4d}:host ::ng-deep .mat-form-field input.mat-input-element:disabled.c-selected::-moz-placeholder{color:#4d4d4d}:host ::ng-deep .mat-form-field input.mat-input-element:disabled.c-selected::placeholder{color:#4d4d4d}:host ::ng-deep .mat-form-field input.mat-input-element:disabled.c-selected:-ms-input-placeholder{color:#4d4d4d}:host ::ng-deep .mat-form-field input.mat-input-element:disabled.c-selected::-ms-input-placeholder{color:#4d4d4d}:host ::ng-deep .mat-form-field .mat-placeholder-required{color:#f82c13}.sd-view:not(.c-focused):not(.c-disabled):hover{background-color:#ebecf0}"]
622
624
  },] }
623
625
  ];
624
626
  SdAutocomplete.ctorParameters = function () { return [
625
- { type: core.ChangeDetectorRef },
626
- { type: utility.SdUtilityService }
627
+ { type: core.ChangeDetectorRef }
627
628
  ]; };
628
629
  SdAutocomplete.propDecorators = {
629
630
  autocompleteTrigger: [{ type: core.ViewChild, args: [autocomplete.MatAutocompleteTrigger, { read: autocomplete.MatAutocompleteTrigger },] }],
631
+ name: [{ type: core.Input }],
630
632
  size: [{ type: core.Input }],
631
633
  form: [{ type: core.Input }],
632
634
  label: [{ type: core.Input }],
633
635
  valueField: [{ type: core.Input }],
634
636
  displayField: [{ type: core.Input }],
635
637
  placeholder: [{ type: core.Input }],
636
- leftLabel: [{ type: core.Input }],
637
- labelMinWidth: [{ type: core.Input }],
638
638
  items: [{ type: core.Input }],
639
639
  limit: [{ type: core.Input }],
640
640
  model: [{ type: core.Input }],
@@ -645,7 +645,9 @@
645
645
  sdChange: [{ type: core.Output }],
646
646
  disabled: [{ type: core.Input }],
647
647
  required: [{ type: core.Input }],
648
- _disableErrorMessage: [{ type: core.Input, args: ['disableErrorMessage',] }]
648
+ _disableErrorMessage: [{ type: core.Input, args: ['disableErrorMessage',] }],
649
+ input: [{ type: core.ViewChild, args: ['input',] }],
650
+ sdView: [{ type: core.ContentChild, args: [common.SdViewDefDirective,] }]
649
651
  };
650
652
 
651
653
  var SdAutocompleteModule = /** @class */ (function () {
@@ -665,7 +667,8 @@
665
667
  autocomplete.MatAutocompleteModule,
666
668
  icon.MatIconModule,
667
669
  progressSpinner.MatProgressSpinnerModule,
668
- translate.SdTranslateModule
670
+ translate.SdTranslateModule,
671
+ common.SdCommonModule
669
672
  ],
670
673
  declarations: [
671
674
  SdAutocomplete,
@@ -673,7 +676,8 @@
673
676
  ],
674
677
  exports: [
675
678
  SdAutocomplete,
676
- SdAutocompleteDisplayDefDirective
679
+ SdAutocompleteDisplayDefDirective,
680
+ common.SdCommonModule
677
681
  ],
678
682
  providers: []
679
683
  },] }