@wavemaker/app-ng-runtime 12.0.0-next.45752 → 12.0.0-rc.5849

Sign up to get free protection for your applications and to get access to all the features.
Files changed (282) hide show
  1. app-ng-runtime/build-task/bundles/index.umd.js +46 -38
  2. app-ng-runtime/build-task/esm2022/basic/default/anchor/anchor.build.mjs +2 -2
  3. app-ng-runtime/build-task/esm2022/basic/default/html/html.build.mjs +2 -2
  4. app-ng-runtime/build-task/esm2022/basic/default/icon/icon.build.mjs +2 -2
  5. app-ng-runtime/build-task/esm2022/basic/default/label/label.build.mjs +2 -2
  6. app-ng-runtime/build-task/esm2022/basic/default/picture/picture.build.mjs +2 -2
  7. app-ng-runtime/build-task/esm2022/basic/default/spinner/spinner.build.mjs +2 -2
  8. app-ng-runtime/build-task/esm2022/basic/progress/progress-circle/progress-circle.build.mjs +7 -2
  9. app-ng-runtime/build-task/esm2022/basic/rich-text-editor/rich-text-editor.build.mjs +2 -2
  10. app-ng-runtime/build-task/esm2022/containers/tile/tile.build.mjs +2 -2
  11. app-ng-runtime/build-task/esm2022/data/form/form-field/form-field.build.mjs +2 -2
  12. app-ng-runtime/build-task/esm2022/device/barcode-scanner/barcode-scanner.build.mjs +2 -2
  13. app-ng-runtime/build-task/esm2022/device/camera/camera.build.mjs +2 -2
  14. app-ng-runtime/build-task/esm2022/dialogs/alert-dialog/alert-dialog.build.mjs +2 -2
  15. app-ng-runtime/build-task/esm2022/input/calendar/calendar.build.mjs +2 -2
  16. app-ng-runtime/build-task/esm2022/input/color-picker/color-picker.build.mjs +3 -3
  17. app-ng-runtime/build-task/esm2022/input/currency/currency.build.mjs +3 -3
  18. app-ng-runtime/build-task/esm2022/input/default/button/button.build.mjs +2 -2
  19. app-ng-runtime/build-task/esm2022/input/default/button-group/button-group.build.mjs +2 -2
  20. app-ng-runtime/build-task/esm2022/input/default/switch/switch.build.mjs +2 -2
  21. app-ng-runtime/build-task/esm2022/input/file-upload/file-upload.build.mjs +5 -1
  22. app-ng-runtime/build-task/esm2022/page/footer/footer.build.mjs +2 -2
  23. app-ng-runtime/build-task/esm2022/page/header/header.build.mjs +2 -2
  24. app-ng-runtime/build-task/esm2022/page/layout.build.mjs +2 -2
  25. app-ng-runtime/build-task/esm2022/page/left-panel/left-panel.build.mjs +2 -2
  26. app-ng-runtime/build-task/esm2022/page/page.build.mjs +2 -2
  27. app-ng-runtime/build-task/esm2022/page/right-panel/right-panel.build.mjs +2 -2
  28. app-ng-runtime/build-task/esm2022/page/top-nav/top-nav.build.mjs +2 -2
  29. app-ng-runtime/build-task/fesm2022/index.mjs +46 -38
  30. app-ng-runtime/build-task/fesm2022/index.mjs.map +1 -1
  31. app-ng-runtime/components/advanced/carousel/bundles/index.umd.js +1 -1
  32. app-ng-runtime/components/advanced/carousel/esm2022/carousel.animator.mjs +2 -2
  33. app-ng-runtime/components/advanced/carousel/fesm2022/index.mjs +1 -1
  34. app-ng-runtime/components/advanced/carousel/fesm2022/index.mjs.map +1 -1
  35. app-ng-runtime/components/base/bundles/index.umd.js +1 -1
  36. app-ng-runtime/components/base/esm2022/pipes/custom-pipes.mjs +3 -3
  37. app-ng-runtime/components/base/fesm2022/index.mjs +1 -1
  38. app-ng-runtime/components/base/fesm2022/index.mjs.map +1 -1
  39. app-ng-runtime/components/base/pipes/custom-pipes.d.ts +1 -1
  40. app-ng-runtime/components/basic/default/anchor/anchor.component.d.ts +1 -0
  41. app-ng-runtime/components/basic/default/audio/audio.component.d.ts +1 -0
  42. app-ng-runtime/components/basic/default/bundles/index.umd.js +27 -18
  43. app-ng-runtime/components/basic/default/esm2022/anchor/anchor.component.mjs +4 -4
  44. app-ng-runtime/components/basic/default/esm2022/anchor/anchor.props.mjs +2 -1
  45. app-ng-runtime/components/basic/default/esm2022/audio/audio.component.mjs +5 -5
  46. app-ng-runtime/components/basic/default/esm2022/audio/audio.props.mjs +2 -1
  47. app-ng-runtime/components/basic/default/esm2022/html/html.props.mjs +2 -1
  48. app-ng-runtime/components/basic/default/esm2022/icon/icon.component.mjs +6 -7
  49. app-ng-runtime/components/basic/default/esm2022/icon/icon.props.mjs +2 -1
  50. app-ng-runtime/components/basic/default/esm2022/iframe/iframe.component.mjs +3 -3
  51. app-ng-runtime/components/basic/default/esm2022/iframe/iframe.props.mjs +3 -2
  52. app-ng-runtime/components/basic/default/esm2022/label/label.props.mjs +1 -1
  53. app-ng-runtime/components/basic/default/esm2022/picture/picture.directive.mjs +2 -2
  54. app-ng-runtime/components/basic/default/esm2022/picture/picture.props.mjs +3 -1
  55. app-ng-runtime/components/basic/default/esm2022/spinner/spinner.props.mjs +3 -2
  56. app-ng-runtime/components/basic/default/esm2022/video/video.component.mjs +5 -4
  57. app-ng-runtime/components/basic/default/esm2022/video/video.props.mjs +2 -1
  58. app-ng-runtime/components/basic/default/fesm2022/index.mjs +27 -18
  59. app-ng-runtime/components/basic/default/fesm2022/index.mjs.map +1 -1
  60. app-ng-runtime/components/basic/default/icon/icon.component.d.ts +1 -0
  61. app-ng-runtime/components/basic/default/iframe/iframe.component.d.ts +1 -0
  62. app-ng-runtime/components/basic/default/picture/picture.directive.d.ts +2 -1
  63. app-ng-runtime/components/basic/default/video/video.component.d.ts +1 -0
  64. app-ng-runtime/components/basic/progress/bundles/index.umd.js +12 -8
  65. app-ng-runtime/components/basic/progress/esm2022/progress-bar/progress-bar.component.mjs +4 -4
  66. app-ng-runtime/components/basic/progress/esm2022/progress-bar/progress-bar.props.mjs +2 -1
  67. app-ng-runtime/components/basic/progress/esm2022/progress-circle/progress-circle.component.mjs +8 -6
  68. app-ng-runtime/components/basic/progress/esm2022/progress-circle/progress-circle.props.mjs +2 -1
  69. app-ng-runtime/components/basic/progress/fesm2022/index.mjs +12 -8
  70. app-ng-runtime/components/basic/progress/fesm2022/index.mjs.map +1 -1
  71. app-ng-runtime/components/basic/progress/progress-bar/progress-bar.component.d.ts +1 -0
  72. app-ng-runtime/components/basic/progress/progress-circle/progress-circle.component.d.ts +3 -1
  73. app-ng-runtime/components/basic/rich-text-editor/bundles/index.umd.js +2 -0
  74. app-ng-runtime/components/basic/rich-text-editor/esm2022/rich-text-editor.component.mjs +2 -1
  75. app-ng-runtime/components/basic/rich-text-editor/esm2022/rich-text-editor.props.mjs +2 -1
  76. app-ng-runtime/components/basic/rich-text-editor/fesm2022/index.mjs +2 -0
  77. app-ng-runtime/components/basic/rich-text-editor/fesm2022/index.mjs.map +1 -1
  78. app-ng-runtime/components/basic/search/bundles/index.umd.js +11 -9
  79. app-ng-runtime/components/basic/search/esm2022/search.component.mjs +14 -13
  80. app-ng-runtime/components/basic/search/esm2022/search.props.mjs +2 -1
  81. app-ng-runtime/components/basic/search/fesm2022/index.mjs +11 -9
  82. app-ng-runtime/components/basic/search/fesm2022/index.mjs.map +1 -1
  83. app-ng-runtime/components/basic/search/search.component.d.ts +1 -0
  84. app-ng-runtime/components/containers/accordion/bundles/index.umd.js +3 -3
  85. app-ng-runtime/components/containers/accordion/esm2022/accordion-pane/accordion-pane.component.mjs +4 -4
  86. app-ng-runtime/components/containers/accordion/fesm2022/index.mjs +3 -3
  87. app-ng-runtime/components/containers/accordion/fesm2022/index.mjs.map +1 -1
  88. app-ng-runtime/components/containers/panel/bundles/index.umd.js +14 -14
  89. app-ng-runtime/components/containers/panel/esm2022/panel.component.mjs +15 -15
  90. app-ng-runtime/components/containers/panel/fesm2022/index.mjs +14 -14
  91. app-ng-runtime/components/containers/panel/fesm2022/index.mjs.map +1 -1
  92. app-ng-runtime/components/containers/tabs/bundles/index.umd.js +2 -2
  93. app-ng-runtime/components/containers/tabs/esm2022/tabs.component.mjs +3 -3
  94. app-ng-runtime/components/containers/tabs/fesm2022/index.mjs +2 -2
  95. app-ng-runtime/components/containers/tabs/fesm2022/index.mjs.map +1 -1
  96. app-ng-runtime/components/data/live-table/bundles/index.umd.js +2 -2
  97. app-ng-runtime/components/data/live-table/esm2022/live-table.component.mjs +3 -3
  98. app-ng-runtime/components/data/live-table/fesm2022/index.mjs +2 -2
  99. app-ng-runtime/components/data/live-table/fesm2022/index.mjs.map +1 -1
  100. app-ng-runtime/components/data/pagination/bundles/index.umd.js +2 -0
  101. app-ng-runtime/components/data/pagination/esm2022/pagination.component.mjs +3 -1
  102. app-ng-runtime/components/data/pagination/fesm2022/index.mjs +2 -0
  103. app-ng-runtime/components/data/pagination/fesm2022/index.mjs.map +1 -1
  104. app-ng-runtime/components/data/table/bundles/index.umd.js +42 -8
  105. app-ng-runtime/components/data/table/esm2022/table-column/table-column.directive.mjs +14 -5
  106. app-ng-runtime/components/data/table/esm2022/table.component.mjs +28 -5
  107. app-ng-runtime/components/data/table/esm2022/table.props.mjs +3 -1
  108. app-ng-runtime/components/data/table/fesm2022/index.mjs +43 -9
  109. app-ng-runtime/components/data/table/fesm2022/index.mjs.map +1 -1
  110. app-ng-runtime/components/data/table/table.component.d.ts +7 -0
  111. app-ng-runtime/components/dialogs/alert-dialog/bundles/index.umd.js +6 -4
  112. app-ng-runtime/components/dialogs/alert-dialog/esm2022/alert-dialog.component.mjs +7 -5
  113. app-ng-runtime/components/dialogs/alert-dialog/fesm2022/index.mjs +6 -4
  114. app-ng-runtime/components/dialogs/alert-dialog/fesm2022/index.mjs.map +1 -1
  115. app-ng-runtime/components/dialogs/confirm-dialog/bundles/index.umd.js +8 -5
  116. app-ng-runtime/components/dialogs/confirm-dialog/esm2022/confirm-dialog.component.mjs +9 -6
  117. app-ng-runtime/components/dialogs/confirm-dialog/fesm2022/index.mjs +8 -5
  118. app-ng-runtime/components/dialogs/confirm-dialog/fesm2022/index.mjs.map +1 -1
  119. app-ng-runtime/components/dialogs/default/bundles/index.umd.js +9 -3
  120. app-ng-runtime/components/dialogs/default/dialog-header/dialog-header.component.d.ts +2 -1
  121. app-ng-runtime/components/dialogs/default/esm2022/base-dialog.mjs +2 -1
  122. app-ng-runtime/components/dialogs/default/esm2022/dialog-header/dialog-header.component.mjs +9 -4
  123. app-ng-runtime/components/dialogs/default/fesm2022/index.mjs +9 -3
  124. app-ng-runtime/components/dialogs/default/fesm2022/index.mjs.map +1 -1
  125. app-ng-runtime/components/dialogs/design-dialog/bundles/index.umd.js +4 -4
  126. app-ng-runtime/components/dialogs/design-dialog/esm2022/dialog.component.mjs +5 -5
  127. app-ng-runtime/components/dialogs/design-dialog/fesm2022/index.mjs +4 -4
  128. app-ng-runtime/components/dialogs/design-dialog/fesm2022/index.mjs.map +1 -1
  129. app-ng-runtime/components/dialogs/iframe-dialog/bundles/index.umd.js +9 -5
  130. app-ng-runtime/components/dialogs/iframe-dialog/esm2022/iframe-dialog.component.mjs +10 -6
  131. app-ng-runtime/components/dialogs/iframe-dialog/fesm2022/index.mjs +9 -5
  132. app-ng-runtime/components/dialogs/iframe-dialog/fesm2022/index.mjs.map +1 -1
  133. app-ng-runtime/components/dialogs/partial-dialog/bundles/index.umd.js +9 -5
  134. app-ng-runtime/components/dialogs/partial-dialog/esm2022/partial-dialog.component.mjs +10 -6
  135. app-ng-runtime/components/dialogs/partial-dialog/fesm2022/index.mjs +9 -5
  136. app-ng-runtime/components/dialogs/partial-dialog/fesm2022/index.mjs.map +1 -1
  137. app-ng-runtime/components/input/calendar/bundles/index.umd.js +2 -4
  138. app-ng-runtime/components/input/calendar/esm2022/calendar.component.mjs +3 -5
  139. app-ng-runtime/components/input/calendar/fesm2022/index.mjs +2 -4
  140. app-ng-runtime/components/input/calendar/fesm2022/index.mjs.map +1 -1
  141. app-ng-runtime/components/input/chips/bundles/index.umd.js +3 -2
  142. app-ng-runtime/components/input/chips/esm2022/chips.component.mjs +3 -3
  143. app-ng-runtime/components/input/chips/esm2022/chips.props.mjs +2 -1
  144. app-ng-runtime/components/input/chips/fesm2022/index.mjs +3 -2
  145. app-ng-runtime/components/input/chips/fesm2022/index.mjs.map +1 -1
  146. app-ng-runtime/components/input/color-picker/bundles/index.umd.js +5 -3
  147. app-ng-runtime/components/input/color-picker/color-picker.component.d.ts +1 -0
  148. app-ng-runtime/components/input/color-picker/esm2022/color-picker.component.mjs +6 -5
  149. app-ng-runtime/components/input/color-picker/esm2022/color-picker.props.mjs +2 -1
  150. app-ng-runtime/components/input/color-picker/fesm2022/index.mjs +5 -3
  151. app-ng-runtime/components/input/color-picker/fesm2022/index.mjs.map +1 -1
  152. app-ng-runtime/components/input/currency/bundles/index.umd.js +4 -3
  153. app-ng-runtime/components/input/currency/currency.component.d.ts +1 -0
  154. app-ng-runtime/components/input/currency/esm2022/currency.component.mjs +6 -6
  155. app-ng-runtime/components/input/currency/esm2022/currency.props.mjs +2 -1
  156. app-ng-runtime/components/input/currency/fesm2022/index.mjs +4 -3
  157. app-ng-runtime/components/input/currency/fesm2022/index.mjs.map +1 -1
  158. app-ng-runtime/components/input/default/bundles/index.umd.js +153 -92
  159. app-ng-runtime/components/input/default/button/button.component.d.ts +1 -0
  160. app-ng-runtime/components/input/default/checkbox/checkbox.component.d.ts +1 -0
  161. app-ng-runtime/components/input/default/esm2022/button/button.component.mjs +1 -1
  162. app-ng-runtime/components/input/default/esm2022/button/button.props.mjs +2 -1
  163. app-ng-runtime/components/input/default/esm2022/caption-position.directive.mjs +8 -7
  164. app-ng-runtime/components/input/default/esm2022/checkbox/checkbox.component.mjs +7 -7
  165. app-ng-runtime/components/input/default/esm2022/checkbox/checkbox.props.mjs +2 -1
  166. app-ng-runtime/components/input/default/esm2022/checkboxset/checkboxset.component.mjs +21 -16
  167. app-ng-runtime/components/input/default/esm2022/number/number.component.mjs +5 -5
  168. app-ng-runtime/components/input/default/esm2022/number/number.props.mjs +3 -1
  169. app-ng-runtime/components/input/default/esm2022/radioset/radioset.component.mjs +28 -23
  170. app-ng-runtime/components/input/default/esm2022/select/select.component.mjs +7 -7
  171. app-ng-runtime/components/input/default/esm2022/select/select.props.mjs +2 -1
  172. app-ng-runtime/components/input/default/esm2022/switch/switch.component.mjs +6 -5
  173. app-ng-runtime/components/input/default/esm2022/switch/switch.props.mjs +2 -1
  174. app-ng-runtime/components/input/default/esm2022/text/calendar/input-calendar.component.mjs +5 -5
  175. app-ng-runtime/components/input/default/esm2022/text/calendar/input-calendar.props.mjs +2 -1
  176. app-ng-runtime/components/input/default/esm2022/text/color/input-color.component.mjs +5 -5
  177. app-ng-runtime/components/input/default/esm2022/text/color/input-color.props.mjs +2 -1
  178. app-ng-runtime/components/input/default/esm2022/text/email/input-email.component.mjs +5 -5
  179. app-ng-runtime/components/input/default/esm2022/text/email/input-email.props.mjs +2 -1
  180. app-ng-runtime/components/input/default/esm2022/text/locale/number-locale.mjs +50 -13
  181. app-ng-runtime/components/input/default/esm2022/text/number/input-number.component.mjs +5 -5
  182. app-ng-runtime/components/input/default/esm2022/text/number/input-number.props.mjs +2 -1
  183. app-ng-runtime/components/input/default/esm2022/text/text/input-text.component.mjs +5 -5
  184. app-ng-runtime/components/input/default/esm2022/text/text/input-text.props.mjs +2 -1
  185. app-ng-runtime/components/input/default/esm2022/textarea/textarea.component.mjs +6 -6
  186. app-ng-runtime/components/input/default/esm2022/textarea/textarea.props.mjs +2 -1
  187. app-ng-runtime/components/input/default/fesm2022/index.mjs +153 -92
  188. app-ng-runtime/components/input/default/fesm2022/index.mjs.map +1 -1
  189. app-ng-runtime/components/input/default/number/number.component.d.ts +1 -0
  190. app-ng-runtime/components/input/default/select/select.component.d.ts +2 -0
  191. app-ng-runtime/components/input/default/text/calendar/input-calendar.component.d.ts +1 -0
  192. app-ng-runtime/components/input/default/text/color/input-color.component.d.ts +1 -0
  193. app-ng-runtime/components/input/default/text/email/input-email.component.d.ts +1 -0
  194. app-ng-runtime/components/input/default/text/locale/number-locale.d.ts +1 -0
  195. app-ng-runtime/components/input/default/text/number/input-number.component.d.ts +1 -0
  196. app-ng-runtime/components/input/default/text/text/input-text.component.d.ts +1 -0
  197. app-ng-runtime/components/input/default/textarea/textarea.component.d.ts +1 -0
  198. app-ng-runtime/components/input/epoch/bundles/index.umd.js +12 -9
  199. app-ng-runtime/components/input/epoch/date/date.component.d.ts +1 -0
  200. app-ng-runtime/components/input/epoch/date-time/date-time.component.d.ts +2 -1
  201. app-ng-runtime/components/input/epoch/esm2022/date/date.component.mjs +6 -6
  202. app-ng-runtime/components/input/epoch/esm2022/date/date.props.mjs +2 -1
  203. app-ng-runtime/components/input/epoch/esm2022/date-time/date-time.component.mjs +7 -7
  204. app-ng-runtime/components/input/epoch/esm2022/date-time/date-time.props.mjs +2 -1
  205. app-ng-runtime/components/input/epoch/esm2022/time/time.component.mjs +7 -7
  206. app-ng-runtime/components/input/epoch/esm2022/time/time.props.mjs +2 -1
  207. app-ng-runtime/components/input/epoch/fesm2022/index.mjs +12 -9
  208. app-ng-runtime/components/input/epoch/fesm2022/index.mjs.map +1 -1
  209. app-ng-runtime/components/input/epoch/time/time.component.d.ts +1 -0
  210. app-ng-runtime/components/input/file-upload/bundles/index.umd.js +187 -100
  211. app-ng-runtime/components/input/file-upload/esm2022/file-upload.component.mjs +184 -102
  212. app-ng-runtime/components/input/file-upload/esm2022/file-upload.props.mjs +6 -1
  213. app-ng-runtime/components/input/file-upload/fesm2022/index.mjs +187 -100
  214. app-ng-runtime/components/input/file-upload/fesm2022/index.mjs.map +1 -1
  215. app-ng-runtime/components/input/file-upload/file-upload.component.d.ts +12 -10
  216. app-ng-runtime/components/input/slider/bundles/index.umd.js +5 -6
  217. app-ng-runtime/components/input/slider/esm2022/slider.component.mjs +6 -8
  218. app-ng-runtime/components/input/slider/esm2022/slider.props.mjs +2 -1
  219. app-ng-runtime/components/input/slider/fesm2022/index.mjs +5 -6
  220. app-ng-runtime/components/input/slider/fesm2022/index.mjs.map +1 -1
  221. app-ng-runtime/components/input/slider/slider.component.d.ts +1 -0
  222. app-ng-runtime/components/navigation/menu/bundles/index.umd.js +8 -6
  223. app-ng-runtime/components/navigation/menu/esm2022/menu.component.mjs +8 -7
  224. app-ng-runtime/components/navigation/menu/esm2022/menu.props.mjs +2 -1
  225. app-ng-runtime/components/navigation/menu/fesm2022/index.mjs +8 -6
  226. app-ng-runtime/components/navigation/menu/fesm2022/index.mjs.map +1 -1
  227. app-ng-runtime/components/navigation/menu/menu.component.d.ts +1 -0
  228. app-ng-runtime/components/navigation/popover/bundles/index.umd.js +121 -13
  229. app-ng-runtime/components/navigation/popover/esm2022/popover.component.mjs +122 -15
  230. app-ng-runtime/components/navigation/popover/esm2022/popover.props.mjs +2 -1
  231. app-ng-runtime/components/navigation/popover/fesm2022/index.mjs +121 -13
  232. app-ng-runtime/components/navigation/popover/fesm2022/index.mjs.map +1 -1
  233. app-ng-runtime/components/navigation/popover/popover.component.d.ts +15 -3
  234. app-ng-runtime/components/page/default/bundles/index.umd.js +2 -1
  235. app-ng-runtime/components/page/default/esm2022/page.props.mjs +4 -3
  236. app-ng-runtime/components/page/default/fesm2022/index.mjs +2 -1
  237. app-ng-runtime/components/page/default/fesm2022/index.mjs.map +1 -1
  238. app-ng-runtime/components/page/footer/bundles/index.umd.js +2 -1
  239. app-ng-runtime/components/page/footer/esm2022/footer.props.mjs +3 -2
  240. app-ng-runtime/components/page/footer/fesm2022/index.mjs +2 -1
  241. app-ng-runtime/components/page/footer/fesm2022/index.mjs.map +1 -1
  242. app-ng-runtime/components/page/header/bundles/index.umd.js +2 -1
  243. app-ng-runtime/components/page/header/esm2022/header.props.mjs +3 -2
  244. app-ng-runtime/components/page/header/fesm2022/index.mjs +2 -1
  245. app-ng-runtime/components/page/header/fesm2022/index.mjs.map +1 -1
  246. app-ng-runtime/components/page/left-panel/bundles/index.umd.js +2 -1
  247. app-ng-runtime/components/page/left-panel/esm2022/left-panel.props.mjs +3 -2
  248. app-ng-runtime/components/page/left-panel/fesm2022/index.mjs +2 -1
  249. app-ng-runtime/components/page/left-panel/fesm2022/index.mjs.map +1 -1
  250. app-ng-runtime/components/page/right-panel/bundles/index.umd.js +2 -1
  251. app-ng-runtime/components/page/right-panel/esm2022/right-panel.props.mjs +3 -2
  252. app-ng-runtime/components/page/right-panel/fesm2022/index.mjs +2 -1
  253. app-ng-runtime/components/page/right-panel/fesm2022/index.mjs.map +1 -1
  254. app-ng-runtime/components/page/top-nav/bundles/index.umd.js +2 -1
  255. app-ng-runtime/components/page/top-nav/esm2022/top-nav.props.mjs +3 -2
  256. app-ng-runtime/components/page/top-nav/fesm2022/index.mjs +2 -1
  257. app-ng-runtime/components/page/top-nav/fesm2022/index.mjs.map +1 -1
  258. app-ng-runtime/core/bundles/index.umd.js +15 -13
  259. app-ng-runtime/core/esm2022/public_api.mjs +2 -2
  260. app-ng-runtime/core/esm2022/utils/build-utils.mjs +7 -7
  261. app-ng-runtime/core/esm2022/utils/utils.mjs +4 -5
  262. app-ng-runtime/core/fesm2022/index.mjs +11 -11
  263. app-ng-runtime/core/fesm2022/index.mjs.map +1 -1
  264. app-ng-runtime/core/public_api.d.ts +1 -1
  265. app-ng-runtime/core/utils/utils.d.ts +1 -1
  266. app-ng-runtime/mobile/components/device/barcode-scanner/bundles/index.umd.js +2 -1
  267. app-ng-runtime/mobile/components/device/barcode-scanner/esm2022/barcode-scanner.props.mjs +3 -2
  268. app-ng-runtime/mobile/components/device/barcode-scanner/fesm2022/index.mjs +2 -1
  269. app-ng-runtime/mobile/components/device/barcode-scanner/fesm2022/index.mjs.map +1 -1
  270. app-ng-runtime/mobile/components/device/camera/bundles/index.umd.js +2 -1
  271. app-ng-runtime/mobile/components/device/camera/esm2022/camera.props.mjs +3 -2
  272. app-ng-runtime/mobile/components/device/camera/fesm2022/index.mjs +2 -1
  273. app-ng-runtime/mobile/components/device/camera/fesm2022/index.mjs.map +1 -1
  274. app-ng-runtime/package.json +1 -1
  275. app-ng-runtime/runtime/base/bundles/index.umd.js +6 -4
  276. app-ng-runtime/runtime/base/components/app-component/app.component.d.ts +2 -3
  277. app-ng-runtime/runtime/base/esm2022/components/app-component/app.component.mjs +5 -5
  278. app-ng-runtime/runtime/base/esm2022/guards/can-deactivate-page.guard.mjs +5 -4
  279. app-ng-runtime/runtime/base/fesm2022/index.mjs +6 -4
  280. app-ng-runtime/runtime/base/fesm2022/index.mjs.map +1 -1
  281. app-ng-runtime/runtime/base/guards/can-deactivate-page.guard.d.ts +2 -1
  282. app-ng-runtime/scripts/datatable/datatable.js +23 -26
@@ -1,10 +1,10 @@
1
1
  import { Attribute, Component, ElementRef, Inject, Injector, Optional, QueryList, ViewChild, ViewChildren } from '@angular/core';
2
- import { NG_VALUE_ACCESSOR, NG_VALIDATORS } from '@angular/forms';
3
- import { Observable, from, of } from 'rxjs';
2
+ import { NG_VALIDATORS, NG_VALUE_ACCESSOR } from '@angular/forms';
3
+ import { from, Observable, of } from 'rxjs';
4
4
  import { filter, mergeMap } from 'rxjs/operators';
5
5
  import { TypeaheadDirective } from 'ngx-bootstrap/typeahead';
6
6
  import { addClass, adjustContainerPosition, App, DataSource, isDefined, isMobile, toBoolean } from '@wm/core';
7
- import { ALLFIELDS, convertDataToObject, extractDataAsArray, getUniqObjsByDataField, provideAs, provideAsWidgetRef, styler, transformFormData, getContainerTargetClass } from '@wm/components/base';
7
+ import { ALLFIELDS, convertDataToObject, extractDataAsArray, getContainerTargetClass, getUniqObjsByDataField, provideAs, provideAsWidgetRef, styler, transformFormData } from '@wm/components/base';
8
8
  import { DatasetAwareFormComponent } from '@wm/components/input';
9
9
  import { registerProps } from './search.props';
10
10
  import { DataProvider } from './data-provider/data-provider';
@@ -137,8 +137,8 @@ function SearchComponent_ng_container_4_Template(rf, ctx) { if (rf & 1) {
137
137
  i0.ɵɵadvance();
138
138
  i0.ɵɵproperty("title", ctx_r1.query || "")("placeholder", ctx_r1.placeholder || "")("disabled", ctx_r1.disabled);
139
139
  i0.ɵɵtwoWayProperty("ngModel", ctx_r1.query);
140
- i0.ɵɵproperty("ngModelOptions", i0.ɵɵpureFunction0(23, _c6))("readonly", ctx_r1.readonly)("disabled", ctx_r1.disabled)("typeahead", ctx_r1.typeaheadDataSource)("typeaheadWaitMs", ctx_r1.debouncetime)("typeaheadItemTemplate", customItemTemplate_r15)("optionsListTemplate", customListTemplate_r16)("typeaheadMinLength", ctx_r1.minchars)("typeaheadOptionsLimit", ctx_r1.limit)("typeaheadGroupField", ctx_r1.groupby ? "groupby" : null)("typeaheadAsync", true)("typeaheadScrollable", true)("adaptivePosition", true)("typeaheadOptionsInScrollableView", ctx_r1.optionslimitinscrollableview)("dropup", ctx_r1.dropup)("tabindex", ctx_r1.tabindex);
141
- i0.ɵɵattribute("name", ctx_r1.name)("aria-label", ctx_r1.hint || "Search field");
140
+ i0.ɵɵproperty("ngModelOptions", i0.ɵɵpureFunction0(23, _c6))("readonly", ctx_r1.readonly)("typeahead", ctx_r1.typeaheadDataSource)("typeaheadWaitMs", ctx_r1.debouncetime)("typeaheadItemTemplate", customItemTemplate_r15)("optionsListTemplate", customListTemplate_r16)("typeaheadMinLength", ctx_r1.minchars)("typeaheadOptionsLimit", ctx_r1.limit)("typeaheadGroupField", ctx_r1.groupby ? "groupby" : null)("typeaheadAsync", true)("typeaheadScrollable", true)("adaptivePosition", true)("typeaheadOptionsInScrollableView", ctx_r1.optionslimitinscrollableview)("dropup", ctx_r1.dropup)("tabindex", ctx_r1.tabindex);
141
+ i0.ɵɵattribute("accesskey", ctx_r1.shortcutkey)("name", ctx_r1.name)("aria-label", ctx_r1.arialabel || "Search field");
142
142
  i0.ɵɵadvance();
143
143
  i0.ɵɵproperty("hidden", !ctx_r1.showClosebtn);
144
144
  } }
@@ -184,12 +184,12 @@ function SearchComponent_ng_template_5_Template(rf, ctx) { if (rf & 1) {
184
184
  i0.ɵɵadvance(3);
185
185
  i0.ɵɵproperty("title", ctx_r1.query || "")("placeholder", ctx_r1.placeholder || "")("container", ctx_r1.containerTarget || ".wm-app")("disabled", ctx_r1.disabled);
186
186
  i0.ɵɵtwoWayProperty("ngModel", ctx_r1.query);
187
- i0.ɵɵproperty("ngModelOptions", i0.ɵɵpureFunction0(25, _c6))("readonly", ctx_r1.readonly)("typeahead", ctx_r1.typeaheadDataSource)("typeaheadWaitMs", ctx_r1.debouncetime)("typeaheadItemTemplate", customItemTemplate_r15)("optionsListTemplate", customListTemplate_r16)("typeaheadMinLength", ctx_r1.minchars)("typeaheadOptionsLimit", ctx_r1.limit)("typeaheadGroupField", ctx_r1.groupby ? "groupby" : null)("typeaheadAsync", true)("typeaheadScrollable", true)("adaptivePosition", true)("typeaheadOptionsInScrollableView", ctx_r1.optionslimitinscrollableview)("tabindex", ctx_r1.tabindex)("dropup", ctx_r1.dropup);
188
- i0.ɵɵattribute("name", ctx_r1.name)("aria-label", ctx_r1.hint || "Search field");
187
+ i0.ɵɵproperty("ngModelOptions", i0.ɵɵpureFunction0(26, _c6))("readonly", ctx_r1.readonly)("typeahead", ctx_r1.typeaheadDataSource)("typeaheadWaitMs", ctx_r1.debouncetime)("typeaheadItemTemplate", customItemTemplate_r15)("optionsListTemplate", customListTemplate_r16)("typeaheadMinLength", ctx_r1.minchars)("typeaheadOptionsLimit", ctx_r1.limit)("typeaheadGroupField", ctx_r1.groupby ? "groupby" : null)("typeaheadAsync", true)("typeaheadScrollable", true)("adaptivePosition", true)("typeaheadOptionsInScrollableView", ctx_r1.optionslimitinscrollableview)("tabindex", ctx_r1.tabindex)("dropup", ctx_r1.dropup);
188
+ i0.ɵɵattribute("accesskey", ctx_r1.shortcutkey)("name", ctx_r1.name)("aria-label", ctx_r1.arialabel || "Search field");
189
189
  i0.ɵɵadvance(2);
190
190
  i0.ɵɵproperty("ngIf", ctx_r1._loadingItems);
191
191
  i0.ɵɵadvance();
192
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(26, _c7, ctx_r1.isQueryEntered()));
192
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(27, _c7, ctx_r1.isQueryEntered()));
193
193
  i0.ɵɵadvance(3);
194
194
  i0.ɵɵproperty("ngIf", ctx_r1.showsearchicon);
195
195
  } }
@@ -802,6 +802,7 @@ export class SearchComponent extends DatasetAwareFormComponent {
802
802
  super.ngAfterViewInit();
803
803
  styler(this.nativeElement, this);
804
804
  this.containerTarget = getContainerTargetClass(this.nativeElement);
805
+ $('.app-search-input').removeAttr('aria-expanded');
805
806
  }
806
807
  eventData($event, item) {
807
808
  if ($event) {
@@ -882,8 +883,8 @@ export class SearchComponent extends DatasetAwareFormComponent {
882
883
  provideAs(SearchComponent, NG_VALUE_ACCESSOR, true),
883
884
  provideAs(SearchComponent, NG_VALIDATORS, true),
884
885
  provideAsWidgetRef(SearchComponent)
885
- ]), i0.ɵɵInheritDefinitionFeature], attrs: _c2, decls: 7, vars: 2, consts: [["customItemTemplate", ""], ["customListTemplate", ""], ["searchTemplate", ""], ["ulElement", ""], ["liElements", ""], [4, "ngIf", "ngIfElse"], [4, "ngIf"], ["partialContainer", "", 3, "ngClass", "wmItemTemplate", "userComponentParams", 4, "ngIf"], ["alt", "Search", 3, "src", "width", 4, "ngIf"], [3, "title", "innerHtml"], ["alt", "Search", 3, "src"], ["partialContainer", "", 3, "ngClass", "wmItemTemplate", "userComponentParams"], ["partial-container-target", ""], ["scrollable", "", 1, "app-search", "dropdown-menu"], [3, "ngClass", "mouseenter", "click", 4, "ngFor", "ngForOf"], [1, "status", 3, "hidden"], [3, "textContent"], [1, "fa", "fa-circle-o-notch", "fa-spin"], [3, "mouseenter", "click", "ngClass"], ["class", "group-title", 4, "ngIf"], [3, "ngTemplateOutlet", "ngTemplateOutletContext", 4, "ngIf"], [1, "group-title"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"], ["type", "text", "focus-target", "", "container", "body", "autocomplete", "off", "typeaheadOptionField", "label", 1, "app-textbox", "form-control", "list-of-objs", "app-search-input", 3, "ngModelChange", "input", "keydown", "keydown.enter", "keydown.arrowdown", "blur", "click", "focus", "focusout", "typeaheadLoading", "typeaheadOnSelect", "title", "placeholder", "disabled", "ngModel", "ngModelOptions", "readonly", "typeahead", "typeaheadWaitMs", "typeaheadItemTemplate", "optionsListTemplate", "typeaheadMinLength", "typeaheadOptionsLimit", "typeaheadGroupField", "typeaheadAsync", "typeaheadScrollable", "adaptivePosition", "typeaheadOptionsInScrollableView", "dropup", "tabindex"], [1, "btn-close", "wi", "wi-cancel", 3, "click", "hidden"], ["aria-hidden", "true", 1, "wi", "wi-arrow-left", "form-control-feedback", "back-btn", 3, "click"], [1, "sr-only"], ["type", "text", "focus-target", "", "autocomplete", "off", "typeaheadOptionField", "label", 1, "app-textbox", "form-control", "list-of-objs", "app-search-input", 3, "ngModelChange", "input", "keydown", "keydown.enter", "keydown.arrowdown", "blur", "click", "focus", "typeaheadLoading", "typeaheadOnSelect", "title", "placeholder", "container", "disabled", "ngModel", "ngModelOptions", "readonly", "typeahead", "typeaheadWaitMs", "typeaheadItemTemplate", "optionsListTemplate", "typeaheadMinLength", "typeaheadOptionsLimit", "typeaheadGroupField", "typeaheadAsync", "typeaheadScrollable", "adaptivePosition", "typeaheadOptionsInScrollableView", "tabindex", "dropup"], ["ng-model", "proxyModel", "ng-required", "required", "tabindex", "-1", "aria-hidden", "true", 1, "model-holder"], ["aria-hidden", "true", "class", "fa fa-circle-o-notch fa-spin form-control-feedback", 4, "ngIf"], [1, "wi", "wi-close", "form-control-feedback", "clear-btn", 3, "click", "ngClass"], ["class", "input-group-addon", "aria-label", "search icon", 3, "ngClass", 4, "ngIf"], ["aria-hidden", "true", 1, "fa", "fa-circle-o-notch", "fa-spin", "form-control-feedback"], ["aria-label", "search icon", 1, "input-group-addon", 3, "ngClass"], ["title", "Search", "type", "submit", 1, "app-search-button", "wm-sl-l", "sl-search", 3, "click", "disabled"]], template: function SearchComponent_Template(rf, ctx) { if (rf & 1) {
886
- i0.ɵɵtemplate(0, SearchComponent_ng_template_0_Template, 2, 2, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor)(2, SearchComponent_ng_template_2_Template, 8, 5, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor)(4, SearchComponent_ng_container_4_Template, 3, 24, "ng-container", 5)(5, SearchComponent_ng_template_5_Template, 10, 28, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor);
886
+ ]), i0.ɵɵInheritDefinitionFeature], attrs: _c2, decls: 7, vars: 2, consts: [["customItemTemplate", ""], ["customListTemplate", ""], ["searchTemplate", ""], ["ulElement", ""], ["liElements", ""], [4, "ngIf", "ngIfElse"], [4, "ngIf"], ["partialContainer", "", 3, "ngClass", "wmItemTemplate", "userComponentParams", 4, "ngIf"], ["alt", "Search", 3, "src", "width", 4, "ngIf"], [3, "title", "innerHtml"], ["alt", "Search", 3, "src"], ["partialContainer", "", 3, "ngClass", "wmItemTemplate", "userComponentParams"], ["partial-container-target", ""], ["scrollable", "", 1, "app-search", "dropdown-menu"], [3, "ngClass", "mouseenter", "click", 4, "ngFor", "ngForOf"], [1, "status", 3, "hidden"], [3, "textContent"], [1, "fa", "fa-circle-o-notch", "fa-spin"], [3, "mouseenter", "click", "ngClass"], ["class", "group-title", 4, "ngIf"], [3, "ngTemplateOutlet", "ngTemplateOutletContext", 4, "ngIf"], [1, "group-title"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"], ["type", "text", "focus-target", "", "container", "body", "autocomplete", "off", "typeaheadOptionField", "label", 1, "app-textbox", "form-control", "list-of-objs", "app-search-input", 3, "ngModelChange", "input", "keydown", "keydown.enter", "keydown.arrowdown", "blur", "click", "focus", "focusout", "typeaheadLoading", "typeaheadOnSelect", "title", "placeholder", "disabled", "ngModel", "ngModelOptions", "readonly", "typeahead", "typeaheadWaitMs", "typeaheadItemTemplate", "optionsListTemplate", "typeaheadMinLength", "typeaheadOptionsLimit", "typeaheadGroupField", "typeaheadAsync", "typeaheadScrollable", "adaptivePosition", "typeaheadOptionsInScrollableView", "dropup", "tabindex"], [1, "btn-close", "wi", "wi-cancel", 3, "click", "hidden"], ["aria-hidden", "true", 1, "wi", "wi-arrow-left", "form-control-feedback", "back-btn", 3, "click"], [1, "sr-only"], ["type", "text", "focus-target", "", "autocomplete", "off", "typeaheadOptionField", "label", 1, "app-textbox", "form-control", "list-of-objs", "app-search-input", 3, "ngModelChange", "input", "keydown", "keydown.enter", "keydown.arrowdown", "blur", "click", "focus", "typeaheadLoading", "typeaheadOnSelect", "title", "placeholder", "container", "disabled", "ngModel", "ngModelOptions", "readonly", "typeahead", "typeaheadWaitMs", "typeaheadItemTemplate", "optionsListTemplate", "typeaheadMinLength", "typeaheadOptionsLimit", "typeaheadGroupField", "typeaheadAsync", "typeaheadScrollable", "adaptivePosition", "typeaheadOptionsInScrollableView", "tabindex", "dropup"], ["ng-model", "proxyModel", "ng-required", "required", "tabindex", "-1", "aria-hidden", "true", 1, "model-holder"], ["aria-hidden", "true", "class", "fa fa-circle-o-notch fa-spin form-control-feedback", 4, "ngIf"], [1, "wi", "wi-close", "form-control-feedback", "clear-btn", 3, "click", "ngClass"], ["class", "input-group-addon", 3, "ngClass", 4, "ngIf"], ["aria-hidden", "true", 1, "fa", "fa-circle-o-notch", "fa-spin", "form-control-feedback"], [1, "input-group-addon", 3, "ngClass"], ["title", "Search", "type", "submit", 1, "app-search-button", "wm-sl-l", "sl-search", 3, "click", "disabled"]], template: function SearchComponent_Template(rf, ctx) { if (rf & 1) {
887
+ i0.ɵɵtemplate(0, SearchComponent_ng_template_0_Template, 2, 2, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor)(2, SearchComponent_ng_template_2_Template, 8, 5, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor)(4, SearchComponent_ng_container_4_Template, 3, 24, "ng-container", 5)(5, SearchComponent_ng_template_5_Template, 10, 29, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor);
887
888
  } if (rf & 2) {
888
889
  const searchTemplate_r19 = i0.ɵɵreference(6);
889
890
  i0.ɵɵadvance(4);
@@ -896,7 +897,7 @@ export class SearchComponent extends DatasetAwareFormComponent {
896
897
  provideAs(SearchComponent, NG_VALUE_ACCESSOR, true),
897
898
  provideAs(SearchComponent, NG_VALIDATORS, true),
898
899
  provideAsWidgetRef(SearchComponent)
899
- ], template: "<ng-template #customItemTemplate let-model=\"item\" let-index=\"index\" let-query=\"query\" let-match=\"match\">\n <!-- Default item template -->\n <a *ngIf=\"!content\">\n <img *ngIf=\"model.imgSrc\" [src]=\"model.imgSrc\" alt=\"Search\" [style.width]=\"imagewidth\">\n <span [title]=\"model.label\" [innerHtml]=\"highlight(match, query) || model.label\"></span>\n </a>\n <!-- Custom partial template -->\n <a *ngIf=\"content\" [ngClass]=\"{customTemplate: content}\" partialContainer [wmItemTemplate]=\"content\" [userComponentParams]=\"match.item\">\n <div partial-container-target></div>\n </a>\n</ng-template>\n\n<ng-template #customListTemplate let-matches=\"matches\" let-itemTemplate=\"itemTemplate\" let-query=\"query\">\n <ul #ulElement class=\"app-search dropdown-menu\" scrollable>\n <li #liElements *ngFor=\"let match of matches; let i = index;\" [ngClass]=\"{active: typeaheadContainer && typeaheadContainer.isActive(match), 'list-group-header': match && match.isHeader()}\"\n (mouseenter)=\"typeaheadContainer.selectActive(match);\"\n (click)=\"match && !match.isHeader() && typeaheadContainer.selectMatch(match, $event); $typeaheadEvent = $event; notifySubscriber();\">\n <!-- itemTemplate comes from the <input> -->\n <h4 *ngIf=\"match.isHeader()\" class=\"group-title\">{{match.value}}</h4>\n <ng-container *ngIf=\"!match.isHeader()\" [ngTemplateOutlet]=\"itemTemplate\"\n [ngTemplateOutletContext]=\"{item: match.item, index: i, match: match, query: query}\">\n </ng-container>\n </li>\n <div class=\"status\" [hidden]=\"_loadingItems || !(datacompletemsg && dataProvider.isLastPage)\">\n <span [textContent]=\"datacompletemsg\"></span>\n </div>\n <div class=\"status\" [hidden]=\"!_loadingItems\">\n <i class=\"fa fa-circle-o-notch fa-spin\"></i>\n <span [textContent]=\"loadingdatamsg\"></span>\n </div>\n </ul>\n</ng-template>\n\n<!--This template is for search inside mobile navbar.-->\n<ng-container *ngIf=\"navsearchbar; else searchTemplate\">\n <input [title]=\"query || ''\" type=\"text\" class=\"app-textbox form-control list-of-objs app-search-input\" [placeholder]=\"placeholder || ''\"\n focus-target\n container=\"body\"\n [disabled]=\"disabled\"\n autocomplete=\"off\"\n [(ngModel)]=\"query\"\n [ngModelOptions]=\"{standalone: true}\"\n [readonly]=\"readonly\"\n [disabled]=\"disabled\"\n [typeahead]=\"typeaheadDataSource\"\n [typeaheadWaitMs]=\"debouncetime\"\n [typeaheadItemTemplate]=\"customItemTemplate\"\n [optionsListTemplate]=\"customListTemplate\"\n (input)=\"onInputChange($event)\"\n (keydown)=\"listenQuery = true\"\n (keydown.enter)=\"$typeaheadEvent = $event;handleEnterEvent($event)\"\n (keydown.arrowdown)=\"selectNext($event)\"\n (blur)=\"invokeOnTouched($event)\"\n (click)=\"handleFocus($event);\"\n (focus)=\"_unsubscribeDv = false; listenQuery = true; handleFocus($event); invokeOnFocus($event);\"\n (focusout)=\"onFocusOut()\"\n [typeaheadMinLength]=\"minchars\"\n [typeaheadOptionsLimit]=\"limit\"\n (typeaheadLoading)=\"_loadingItems\"\n (typeaheadOnSelect)=\"typeaheadOnSelect($event)\"\n typeaheadOptionField=\"label\"\n [typeaheadGroupField]=\"groupby ? 'groupby' : null\"\n [typeaheadAsync]=\"true\"\n [typeaheadScrollable]=\"true\"\n [adaptivePosition]=\"true\"\n [typeaheadOptionsInScrollableView]=\"optionslimitinscrollableview\"\n [dropup]=\"dropup\"\n [tabindex]=\"tabindex\"\n [attr.name]=\"name\"\n [attr.aria-label]=\"hint || 'Search field'\"/>\n <i class=\"btn-close wi wi-cancel\" [hidden]=\"!showClosebtn\" (click)=\"clearSearch($event);\"></i>\n</ng-container>\n<!--This template is for both web and fullscreen mode in mobile.-->\n<ng-template #searchTemplate>\n <span class=\"wi wi-arrow-left form-control-feedback back-btn\" aria-hidden=\"true\" (click)=\"closeSearch()\"></span>\n <span class=\"sr-only\">Back button</span>\n <input [title]=\"query || ''\" type=\"text\" class=\"app-textbox form-control list-of-objs app-search-input\" [placeholder]=\"placeholder || ''\"\n focus-target\n [container]=\"containerTarget || '.wm-app'\"\n [disabled]=\"disabled\"\n autocomplete=\"off\"\n [(ngModel)]=\"query\"\n [ngModelOptions]=\"{standalone: true}\"\n [readonly]=\"readonly\"\n [typeahead]=\"typeaheadDataSource\"\n [typeaheadWaitMs]=\"debouncetime\"\n [typeaheadItemTemplate]=\"customItemTemplate\"\n [optionsListTemplate]=\"customListTemplate\"\n (input)=\"onInputChange($event)\"\n (keydown)=\"listenQuery = true\"\n (keydown.enter)=\"$typeaheadEvent = $event;handleEnterEvent($event)\"\n (keydown.arrowdown)=\"selectNext($event)\"\n (blur)=\"invokeOnTouched($event); onFocusOut()\"\n (click)=\"handleFocus($event);\"\n (focus)=\"_unsubscribeDv = false; listenQuery = true; handleFocus($event); invokeOnFocus($event)\"\n [typeaheadMinLength]=\"minchars\"\n [typeaheadOptionsLimit]=\"limit\"\n (typeaheadLoading)=\"_loadingItems\"\n (typeaheadOnSelect)=\"typeaheadOnSelect($event)\"\n typeaheadOptionField=\"label\"\n [typeaheadGroupField]=\"groupby ? 'groupby' : null\"\n [typeaheadAsync]=\"true\"\n [typeaheadScrollable]=\"true\"\n [adaptivePosition]=\"true\"\n [typeaheadOptionsInScrollableView]=\"optionslimitinscrollableview\"\n [tabindex]=\"tabindex\"\n [dropup]=\"dropup\"\n [attr.name]=\"name\"\n [attr.aria-label]=\"hint || 'Search field'\">\n <input class=\"model-holder\" ng-model=\"proxyModel\" ng-required=\"required\" tabindex=\"-1\" aria-hidden=\"true\">\n <span *ngIf=\"_loadingItems\" aria-hidden=\"true\" class=\"fa fa-circle-o-notch fa-spin form-control-feedback\"></span>\n <span class=\"wi wi-close form-control-feedback clear-btn\" [ngClass]=\"{'show-btn': isQueryEntered()}\" (click)=\"clearSearch($event, true)\"></span>\n <span class=\"sr-only\">Clear button</span>\n <span *ngIf=\"showsearchicon\" class=\"input-group-addon\" aria-label=\"search icon\" [ngClass]=\"{'disabled': disabled}\">\n <form>\n <button title=\"Search\" [disabled]=\"disabled\" class=\"app-search-button wm-sl-l sl-search\" type=\"submit\"\n (click)=\"onSearchSelect($event)\"></button>\n </form>\n </span>\n</ng-template>\n" }]
900
+ ], template: "<ng-template #customItemTemplate let-model=\"item\" let-index=\"index\" let-query=\"query\" let-match=\"match\">\n <!-- Default item template -->\n <a *ngIf=\"!content\">\n <img *ngIf=\"model.imgSrc\" [src]=\"model.imgSrc\" alt=\"Search\" [style.width]=\"imagewidth\">\n <span [title]=\"model.label\" [innerHtml]=\"highlight(match, query) || model.label\"></span>\n </a>\n <!-- Custom partial template -->\n <a *ngIf=\"content\" [ngClass]=\"{customTemplate: content}\" partialContainer [wmItemTemplate]=\"content\" [userComponentParams]=\"match.item\">\n <div partial-container-target></div>\n </a>\n</ng-template>\n\n<ng-template #customListTemplate let-matches=\"matches\" let-itemTemplate=\"itemTemplate\" let-query=\"query\">\n <ul #ulElement class=\"app-search dropdown-menu\" scrollable>\n <li #liElements *ngFor=\"let match of matches; let i = index;\" [ngClass]=\"{active: typeaheadContainer && typeaheadContainer.isActive(match), 'list-group-header': match && match.isHeader()}\"\n (mouseenter)=\"typeaheadContainer.selectActive(match);\"\n (click)=\"match && !match.isHeader() && typeaheadContainer.selectMatch(match, $event); $typeaheadEvent = $event; notifySubscriber();\">\n <!-- itemTemplate comes from the <input> -->\n <h4 *ngIf=\"match.isHeader()\" class=\"group-title\">{{match.value}}</h4>\n <ng-container *ngIf=\"!match.isHeader()\" [ngTemplateOutlet]=\"itemTemplate\"\n [ngTemplateOutletContext]=\"{item: match.item, index: i, match: match, query: query}\">\n </ng-container>\n </li>\n <div class=\"status\" [hidden]=\"_loadingItems || !(datacompletemsg && dataProvider.isLastPage)\">\n <span [textContent]=\"datacompletemsg\"></span>\n </div>\n <div class=\"status\" [hidden]=\"!_loadingItems\">\n <i class=\"fa fa-circle-o-notch fa-spin\"></i>\n <span [textContent]=\"loadingdatamsg\"></span>\n </div>\n </ul>\n</ng-template>\n\n<!--This template is for search inside mobile navbar.-->\n<ng-container *ngIf=\"navsearchbar; else searchTemplate\">\n <input [title]=\"query || ''\" type=\"text\" class=\"app-textbox form-control list-of-objs app-search-input\" [placeholder]=\"placeholder || ''\"\n focus-target\n container=\"body\"\n [disabled]=\"disabled\"\n [attr.accesskey]=\"shortcutkey\"\n autocomplete=\"off\"\n [(ngModel)]=\"query\"\n [ngModelOptions]=\"{standalone: true}\"\n [readonly]=\"readonly\"\n [typeahead]=\"typeaheadDataSource\"\n [typeaheadWaitMs]=\"debouncetime\"\n [typeaheadItemTemplate]=\"customItemTemplate\"\n [optionsListTemplate]=\"customListTemplate\"\n (input)=\"onInputChange($event)\"\n (keydown)=\"listenQuery = true\"\n (keydown.enter)=\"$typeaheadEvent = $event;handleEnterEvent($event)\"\n (keydown.arrowdown)=\"selectNext($event)\"\n (blur)=\"invokeOnTouched($event)\"\n (click)=\"handleFocus($event);\"\n (focus)=\"_unsubscribeDv = false; listenQuery = true; handleFocus($event); invokeOnFocus($event);\"\n (focusout)=\"onFocusOut()\"\n [typeaheadMinLength]=\"minchars\"\n [typeaheadOptionsLimit]=\"limit\"\n (typeaheadLoading)=\"_loadingItems\"\n (typeaheadOnSelect)=\"typeaheadOnSelect($event)\"\n typeaheadOptionField=\"label\"\n [typeaheadGroupField]=\"groupby ? 'groupby' : null\"\n [typeaheadAsync]=\"true\"\n [typeaheadScrollable]=\"true\"\n [adaptivePosition]=\"true\"\n [typeaheadOptionsInScrollableView]=\"optionslimitinscrollableview\"\n [dropup]=\"dropup\"\n [tabindex]=\"tabindex\"\n [attr.name]=\"name\"\n [attr.aria-label]=\"arialabel || 'Search field'\"/>\n <i class=\"btn-close wi wi-cancel\" [hidden]=\"!showClosebtn\" (click)=\"clearSearch($event);\"></i>\n</ng-container>\n<!--This template is for both web and fullscreen mode in mobile.-->\n<ng-template #searchTemplate>\n <span class=\"wi wi-arrow-left form-control-feedback back-btn\" aria-hidden=\"true\" (click)=\"closeSearch()\"></span>\n <span class=\"sr-only\">Back button</span>\n <input [title]=\"query || ''\" type=\"text\" class=\"app-textbox form-control list-of-objs app-search-input\" [placeholder]=\"placeholder || ''\"\n focus-target\n [container]=\"containerTarget || '.wm-app'\"\n [disabled]=\"disabled\"\n [attr.accesskey]=\"shortcutkey\"\n autocomplete=\"off\"\n [(ngModel)]=\"query\"\n [ngModelOptions]=\"{standalone: true}\"\n [readonly]=\"readonly\"\n [typeahead]=\"typeaheadDataSource\"\n [typeaheadWaitMs]=\"debouncetime\"\n [typeaheadItemTemplate]=\"customItemTemplate\"\n [optionsListTemplate]=\"customListTemplate\"\n (input)=\"onInputChange($event)\"\n (keydown)=\"listenQuery = true\"\n (keydown.enter)=\"$typeaheadEvent = $event;handleEnterEvent($event)\"\n (keydown.arrowdown)=\"selectNext($event)\"\n (blur)=\"invokeOnTouched($event); onFocusOut()\"\n (click)=\"handleFocus($event);\"\n (focus)=\"_unsubscribeDv = false; listenQuery = true; handleFocus($event); invokeOnFocus($event)\"\n [typeaheadMinLength]=\"minchars\"\n [typeaheadOptionsLimit]=\"limit\"\n (typeaheadLoading)=\"_loadingItems\"\n (typeaheadOnSelect)=\"typeaheadOnSelect($event)\"\n typeaheadOptionField=\"label\"\n [typeaheadGroupField]=\"groupby ? 'groupby' : null\"\n [typeaheadAsync]=\"true\"\n [typeaheadScrollable]=\"true\"\n [adaptivePosition]=\"true\"\n [typeaheadOptionsInScrollableView]=\"optionslimitinscrollableview\"\n [tabindex]=\"tabindex\"\n [dropup]=\"dropup\"\n [attr.name]=\"name\"\n [attr.aria-label]=\"arialabel || 'Search field'\">\n <input class=\"model-holder\" ng-model=\"proxyModel\" ng-required=\"required\" tabindex=\"-1\" aria-hidden=\"true\">\n <span *ngIf=\"_loadingItems\" aria-hidden=\"true\" class=\"fa fa-circle-o-notch fa-spin form-control-feedback\"></span>\n <span class=\"wi wi-close form-control-feedback clear-btn\" [ngClass]=\"{'show-btn': isQueryEntered()}\" (click)=\"clearSearch($event, true)\"></span>\n <span class=\"sr-only\">Clear button</span>\n <span *ngIf=\"showsearchicon\" [ngClass]=\"{'disabled': disabled}\" class=\"input-group-addon\">\n <form>\n <button title=\"Search\" [disabled]=\"disabled\" class=\"app-search-button wm-sl-l sl-search\" type=\"submit\"\n (click)=\"onSearchSelect($event)\"></button>\n </form>\n </span>\n</ng-template>\n" }]
900
901
  }], () => [{ type: i0.Injector }, { type: i1.App }, { type: undefined, decorators: [{
901
902
  type: Attribute,
902
903
  args: ['datavalue.bind']
@@ -918,5 +919,5 @@ export class SearchComponent extends DatasetAwareFormComponent {
918
919
  type: ViewChildren,
919
920
  args: ['liElements']
920
921
  }] }); })();
921
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SearchComponent, { className: "SearchComponent", filePath: "search.component.ts", lineNumber: 61 }); })();
922
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VhcmNoLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvbXBvbmVudHMvd2lkZ2V0cy9iYXNpYy9zZWFyY2gvc3JjL3NlYXJjaC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb21wb25lbnRzL3dpZGdldHMvYmFzaWMvc2VhcmNoL3NyYy9zZWFyY2guY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUVILFNBQVMsRUFDVCxTQUFTLEVBQ1QsVUFBVSxFQUFFLE1BQU0sRUFDbEIsUUFBUSxFQUVSLFFBQVEsRUFDUixTQUFTLEVBQ1QsU0FBUyxFQUNULFlBQVksRUFDZixNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQUUsaUJBQWlCLEVBQUUsYUFBYSxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFFbEUsT0FBTyxFQUFFLFVBQVUsRUFBRSxJQUFJLEVBQUUsRUFBRSxFQUFFLE1BQU0sTUFBTSxDQUFDO0FBQzVDLE9BQU8sRUFBRSxNQUFNLEVBQUUsUUFBUSxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFFbEQsT0FBTyxFQUErQixrQkFBa0IsRUFBa0IsTUFBTSx5QkFBeUIsQ0FBQztBQUUxRyxPQUFPLEVBQ0gsUUFBUSxFQUNSLHVCQUF1QixFQUN2QixH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mVyZW50XG4gICAgICAgICAgICAgICAgIGIpIGJpbmRkaXNwbGF5bGFiZWwgY29udGFpbnMgbXVsdGlwbGUgdmFsdWVzXG4gICAgICAgICAgICAgICAgIGMpIGJpbmRkaXNwbGF5bGFiZWwgY29udGFpbnMgc2luZ2xlIHZhbHVlIHdoaWNoIGRvZXMgbm90IG1hdGNoIHdpdGggc2VhcmNoa2V5XG4gICAgICAgICovXG4gICAgICAgIGlmICh0aGlzLnR5cGUgPT09ICdhdXRvY29tcGxldGUnICYmIHRoaXMuc2VhcmNoa2V5ICYmIHRoaXMucXVlcnkgJiYgdGhpcy5kYXRhdmFsdWUpIHtcbiAgICAgICAgICAgIGxldCBiaW5kRGlzcGxheUxhYmVsQXJyYXkgPSBbXTtcbiAgICAgICAgICAgIGNvbnN0IHNlYXJjaEtleUFycmF5ID0gc3BsaXQodGhpcy5zZWFyY2hrZXksICcsJyk7XG4gICAgICAgICAgICBsZXQgZGlzcGxheWxhYmVsO1xuICAgICAgICAgICAgaWYgKHRoaXMuYmluZGRpc3BsYXlsYWJlbCkge1xuICAgICAgICAgICAgICAgIGJpbmREaXNwbGF5TGFiZWxBcnJheSA9IHNwbGl0KHRoaXMuYmluZGRpc3BsYXlsYWJlbCwgJysnKTtcbiAgICAgICAgICAgICAgICBpZiAoYmluZERpc3BsYXlMYWJlbEFycmF5Lmxlbmd0aCA9PT0gMSkge1xuICAgICAgICAgICAgICAgICAgICBpZiAoIWluY2x1ZGVzKGJpbmREaXNwbGF5TGFiZWxBcnJheVswXSwgJ3wnKSkge1xuICAgICAgICAgICAgICAgICAgICAgICAgY29uc3QgcmVnZXggPSAvXFxbKC4qPylcXF0vO1xuICAgICAgICAgICAgICAgICAgICAgICAgZGlzcGxheWxhYmVsID0gcmVnZXguZXhlYyhiaW5kRGlzcGxheUxhYmVsQXJyYXlbMF0pWzFdO1xuICAgICAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICAgICAgZGlzcGxheWxh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nZXRUcmFuc2Zvcm1lZERhdGEodGhpcy5mb3JtYXR0ZWREYXRhc2V0LCBuZXh0SXRlbUluZGV4KTtcblxuICAgICAgICAgICAgICAgIC8vIHJlc3VsdCBjb250YWlucyB0aGUgZGF0YWZpZWxkIHZhbHVlcy5cbiAgICAgICAgICAgICAgICAgICAgdGhpcy5yZXN1bHQgPSBtYXAodHJhbnNmb3JtZWREYXRhLCAndmFsdWUnKTtcbiAgICAgICAgICAgICAgICByZXR1cm4gdHJhbnNmb3JtZWREYXRhO1xuICAgICAgICAgICAgfSwgKGVycm9yKSA9PiB7XG4gICAgICAgICAgICAgICAgdGhpcy5fbG9hZGluZ0l0ZW1zID0gZmFsc2U7XG4gICAgICAgICAgICAgICAgcmV0dXJuIFtdO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgKS50aGVuKHJlc3VsdCA9PiB7XG4gICAgICAgICAgICAgICAgaWYgKHRoaXMuaXNTY3JvbGxlZCkge1xuICAgICAgICAgICAgICAgICAgICAoZGVib3VuY2UoKCkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5zZXRMYXN0QWN0aXZlTWF0Y2hBc1NlbGVjdGVkKCk7XG4gICAgICAgICAgICAgICAgICAgIH0sIDMwKSkoKTtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5pc1Njcm9sbGVkID0gZmFsc2U7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIC8vIFdoZW4gbm8gcmVzdWx0IGlzIGZvdW5kLCBzZXQgdGhlIGRhdGF2YWx1ZSB0byB1bmRlZmluZWQuXG4gICAgICAgICAgICAgICAgaWYgKCFyZXN1bHQubGVuZ3RoKSB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuX21vZGVsQnlWYWx1ZSA9IHVuZGVmaW5lZDtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5xdWVyeU1vZGVsID0gKHF1ZXJ5IGFzIHN0cmluZyk7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIC8vIG9uIGZvY3Vzb3V0IGkuZS4gb24gb3RoZXIgd2lkZ2V0IGZvY3VzLCBpZiBuL3cgaXMgcGVuZGluZyBsb2FkaW5nIGljb24gaXMgc2hvd24sIHdoZW4gZGF0YSBpcyBhdmFpbGFibGUgdGhlbiBkcm9wZG93biBpcyBzaG93biBhZ2Fpbi5cbiAgICAgICAgICAgICAgICAvLyBvbiB1bnN1YnNjcmliaW5nIGRvIG5vdCBzaG93IHRoZSByZXN1bHRzLlxuICAgICAgICAgICAgICAgIGlmICh0aGlzLl91bnN1YnNjcmliZUR2KSB7XG4gICAgICAgICAgICAgICAgICAgIHJlc3VsdCA9IFtdO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB0aGlzLl9sb2FkaW5nSXRlbXMgPSBmYWxzZTtcbiAgICAgICAgICAgICAgICB0aGlzLl9sYXN0UmVzdWx0ID0gcmVzdWx0O1xuICAgICAgICAgICAgICAgIHJldHVybiByZXN1bHQ7XG4gICAgICAgICAgICB9KTtcbiAgICB9XG5cbiAgICAvLyB0aGlzIG1ldGhvZCByZXR1cm5zIHRoZSBwYXJlbnQgY29udGV4dCBpLmUuIFBhZ2UgY29udGV4dCBhbmQgbm90IHBhcmVudCBjb21wb25lbnQncyBjb250ZXh0LlxuICAgIHByaXZhdGUgZ2V0Q29udGV4dChjb250ZXh0KSB7XG4gICAgICAgIGlmIChjb250ZXh0ICYmIGdldChjb250ZXh0LCAnd2lkZ2V0JykpIHtcbiAgICAgICAgICAgIHJldHVybiB0aGlzLmdldENvbnRleHQoY29udGV4dC52aWV3UGFyZW50KTtcbiAgICAgICAgfVxuICAgICAgICByZXR1cm4gY29udGV4dDtcbiAgICB9XG5cbiAgICBwdWJsaWMgZ2V0VHJhbnNmb3JtZWREYXRhKGRhdGE6IGFueSwgaXRlbUluZGV4PzogbnVtYmVyLCBpc2N1c3RvbT86IGJvb2xlYW4pOiBEYXRhU2V0SXRlbVtdIHtcb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CBmYS1zcGluIGZvcm0tY29udHJvbC1mZWVkYmFja1wiPjwvc3Bhbj5cbiAgICA8c3BhbiBjbGFzcz1cIndpIHdpLWNsb3NlIGZvcm0tY29udHJvbC1mZWVkYmFjayBjbGVhci1idG5cIiBbbmdDbGFzc109XCJ7J3Nob3ctYnRuJzogaXNRdWVyeUVudGVyZWQoKX1cIiAoY2xpY2spPVwiY2xlYXJTZWFyY2goJGV2ZW50LCB0cnVlKVwiPjwvc3Bhbj5cbiAgICA8c3BhbiBjbGFzcz1cInNyLW9ubHlcIj5DbGVhciBidXR0b248L3NwYW4+XG4gICAgPHNwYW4gKm5nSWY9XCJzaG93c2VhcmNoaWNvblwiIGNsYXNzPVwiaW5wdXQtZ3JvdXAtYWRkb25cIiBhcmlhLWxhYmVsPVwic2VhcmNoIGljb25cIiBbbmdDbGFzc109XCJ7J2Rpc2FibGVkJzogZGlzYWJsZWR9XCI+XG4gICAgICAgIDxmb3JtPlxuICAgICAgICAgICAgPGJ1dHRvbiB0aXRsZT1cIlNlYXJjaFwiIFtkaXNhYmxlZF09XCJkaXNhYmxlZFwiIGNsYXNzPVwiYXBwLXNlYXJjaC1idXR0b24gd20tc2wtbCBzbC1zZWFyY2hcIiB0eXBlPVwic3VibWl0XCJcbiAgICAgICAgICAgICAgICAgICAgKGNsaWNrKT1cIm9uU2VhcmNoU2VsZWN0KCRldmVudClcIj48L2J1dHRvbj5cbiAgICAgICAgPC9mb3JtPlxuICAgIDwvc3Bhbj5cbjwvbmctdGVtcGxhdGU+XG4iXX0=
922
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SearchComponent, { className: "SearchComponent", filePath: "search.component.ts", lineNumber: 65 }); })();
923
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VhcmNoLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3By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zaW5nbGUgdmFsdWUgd2hpY2ggZG9lcyBub3QgbWF0Y2ggd2l0aCBzZWFyY2hrZXlcbiAgICAgICAgKi9cbiAgICAgICAgaWYgKHRoaXMudHlwZSA9PT0gJ2F1dG9jb21wbGV0ZScgJiYgdGhpcy5zZWFyY2hrZXkgJiYgdGhpcy5xdWVyeSAmJiB0aGlzLmRhdGF2YWx1ZSkge1xuICAgICAgICAgICAgbGV0IGJpbmREaXNwbGF5TGFiZWxBcnJheSA9IFtdO1xuICAgICAgICAgICAgY29uc3Qgc2VhcmNoS2V5QXJyYXkgPSBzcGxpdCh0aGlzLnNlYXJjaGtleSwgJywnKTtcbiAgICAgICAgICAgIGxldCBkaXNwbGF5bGFiZWw7XG4gICAgICAgICAgICBpZiAodGhpcy5iaW5kZGlzcGxheWxhYmVsKSB7XG4gICAgICAgICAgICAgICAgYmluZERpc3BsYXlMYWJlbEFycmF5ID0gc3BsaXQodGhpcy5iaW5kZGlzcGxheWxhYmVsLCAnKycpO1xuICAgICAgICAgICAgICAgIGlmIChiaW5kRGlzcGxheUxhYmVsQXJyYXkubGVuZ3RoID09PSAxKSB7XG4gICAgICAgICAgICAgICAgICAgIGlmICghaW5jbHVkZXMoYmluZERpc3BsYXlMYWJlbEFycmF5WzBdLCAnfCcpKSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBjb25zdCByZWdleCA9IC9cXFsoLio/KVxcXS87XG4gICAgICAgICAgICAgICAgICAgICAgICBkaXNwbGF5bGFiZWwgPSByZWdleC5leGVjKGJpbmREaXNwbGF5TGFiZWxBcnJheVswXSlbMV07XG4gICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgICAgICBkaXNwbGF5bGFiZWwgPSB0cnVlO1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgaWYgKChiaW5kRGlzcGxheUxhYmVsQXJyYXkubGVuZ3RoID4gMS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0aGlzLnJlc3VsdCA9IG1hcCh0cmFuc2Zvcm1lZERhdGEsICd2YWx1ZScpO1xuICAgICAgICAgICAgICAgIHJldHVybiB0cmFuc2Zvcm1lZERhdGE7XG4gICAgICAgICAgICB9LCAoZXJyb3IpID0+IHtcbiAgICAgICAgICAgICAgICB0aGlzLl9sb2FkaW5nSXRlbXMgPSBmYWxzZTtcbiAgICAgICAgICAgICAgICByZXR1cm4gW107XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICApLnRoZW4ocmVzdWx0ID0+IHtcbiAgICAgICAgICAgICAgICBpZiAodGhpcy5pc1Njcm9sbGVkKSB7XG4gICAgICAgICAgICAgICAgICAgIChkZWJvdW5jZSgoKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLnNldExhc3RBY3RpdmVNYXRjaEFzU2VsZWN0ZWQoKTtcbiAgICAgICAgICAgICAgICAgICAgfSwgMzApKSgpO1xuICAgICAgICAgICAgICAgICAgICB0aGlzLmlzU2Nyb2xsZWQgPSBmYWxzZTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgLy8gV2hlbiBubyByZXN1bHQgaXMgZm91bmQsIHNldCB0aGUgZGF0YXZhbHVlIHRvIHVuZGVmaW5lZC5cbiAgICAgICAgICAgICAgICBpZiAoIXJlc3VsdC5sZW5ndGgpIHtcbiAgICAgICAgICAgICAgICAgICAgdGhpcy5fbW9kZWxCeVZhbHVlID0gdW5kZWZpbmVkO1xuICAgICAgICAgICAgICAgICAgICB0aGlzLnF1ZXJ5TW9kZWwgPSAocXVlcnkgYXMgc3RyaW5nKTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgLy8gb24gZm9jdXNvdXQgaS5lLiBvbiBvdGhlciB3aWRnZXQgZm9jdXMsIGlmIG4vdyBpcyBwZW5kaW5nIGxvYWRpbmcgaWNvbiBpcyBzaG93biwgd2hlbiBkYXRhIGlzIGF2YWlsYWJsZSB0aGVuIGRyb3Bkb3duIGlzIHNob3duIGFnYWluLlxuICAgICAgICAgICAgICAgIC8vIG9uIHVuc3Vic2NyaWJpbmcgZG8gbm90IHNob3cgdGhlIHJlc3VsdHMuXG4gICAgICAgICAgICAgICAgaWYgKHRoaXMuX3Vuc3Vic2NyaWJlRHYpIHtcbiAgICAgICAgICAgICAgICAgICAgcmVzdWx0ID0gW107XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIHRoaXMuX2xvYWRpbmdJdGVtcyA9IGZhbHNlO1xuICAgICAgICAgICAgICAgIHRoaXMuX2xhc3RSZXN1bHQgPSByZXN1bHQ7XG4gICAgICAgICAgICAgICAgcmV0dXJuIHJlc3VsdDtcbiAgICAgICAgICAgIH0pO1xuICAgIH1cblxuICAgIC8vIHRoaXMgbWV0aG9kIHJldHVybnMgdGhlIHBhcmVudCBjb250ZXh0IGkuZS4gUGFnZSBjb250ZXh0IGFuZCBub3QgcGFyZW50IGNvbXBvbmVudCdzIGNvbnRleHQuXG4gICAgcHJpdmF0ZSBnZXRDb250ZXh0KGNvbnRleHQpIHtcbiAgICAgICAgaWYgKGNvbnRleHQgJiYgZ2V0KGNvbnRleHQsICd3aWRnZXQnKSkge1xuICAgICAgICAgICAgcmV0dXJuIHRoaXMuZ2V0Q29udGV4dChjb250ZXh0LnZpZXdQYXJlbnQpO1xuICAgICAgICB9XG4gICAgICAgIHJldHVybiBjb250ZXh0O1xuICAgIH1cblxuICAgIHB1YmxpYyBnZXRUcmFuc2Zvcm1lZERhdGEoZGF0YTogYW55LCBpdGVtSW5kZXg/OiBudW1iZXIsIGlzY3VzdG9tPzogYm9vbGVhbik6IERhdGFTZXRJdGVtW10ge1xuICAgICAgICBpZiAoaXNEZWZpbmVkKGl0ZW1JbmRleCkpIHtcbiAgICAgICAgICAgIGl0ZW1JbmRleCsrO1xuICAgICAgICB9XG5cbiAgICAgICAgY29uc3QgdHJhbnNmb3JtZWREYXRhID0gdHJhbnNmb3JtRm9ybURhdGEoXG4gICAgICAg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