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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (288) 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 +8 -2
  36. app-ng-runtime/components/base/esm2022/pipes/custom-pipes.mjs +3 -3
  37. app-ng-runtime/components/base/esm2022/utils/live-utils.mjs +8 -2
  38. app-ng-runtime/components/base/fesm2022/index.mjs +8 -2
  39. app-ng-runtime/components/base/fesm2022/index.mjs.map +1 -1
  40. app-ng-runtime/components/base/pipes/custom-pipes.d.ts +1 -1
  41. app-ng-runtime/components/basic/default/anchor/anchor.component.d.ts +1 -0
  42. app-ng-runtime/components/basic/default/audio/audio.component.d.ts +1 -0
  43. app-ng-runtime/components/basic/default/bundles/index.umd.js +27 -18
  44. app-ng-runtime/components/basic/default/esm2022/anchor/anchor.component.mjs +4 -4
  45. app-ng-runtime/components/basic/default/esm2022/anchor/anchor.props.mjs +2 -1
  46. app-ng-runtime/components/basic/default/esm2022/audio/audio.component.mjs +5 -5
  47. app-ng-runtime/components/basic/default/esm2022/audio/audio.props.mjs +2 -1
  48. app-ng-runtime/components/basic/default/esm2022/html/html.props.mjs +2 -1
  49. app-ng-runtime/components/basic/default/esm2022/icon/icon.component.mjs +6 -7
  50. app-ng-runtime/components/basic/default/esm2022/icon/icon.props.mjs +2 -1
  51. app-ng-runtime/components/basic/default/esm2022/iframe/iframe.component.mjs +3 -3
  52. app-ng-runtime/components/basic/default/esm2022/iframe/iframe.props.mjs +3 -2
  53. app-ng-runtime/components/basic/default/esm2022/label/label.props.mjs +1 -1
  54. app-ng-runtime/components/basic/default/esm2022/picture/picture.directive.mjs +2 -2
  55. app-ng-runtime/components/basic/default/esm2022/picture/picture.props.mjs +3 -1
  56. app-ng-runtime/components/basic/default/esm2022/spinner/spinner.props.mjs +3 -2
  57. app-ng-runtime/components/basic/default/esm2022/video/video.component.mjs +5 -4
  58. app-ng-runtime/components/basic/default/esm2022/video/video.props.mjs +2 -1
  59. app-ng-runtime/components/basic/default/fesm2022/index.mjs +27 -18
  60. app-ng-runtime/components/basic/default/fesm2022/index.mjs.map +1 -1
  61. app-ng-runtime/components/basic/default/icon/icon.component.d.ts +1 -0
  62. app-ng-runtime/components/basic/default/iframe/iframe.component.d.ts +1 -0
  63. app-ng-runtime/components/basic/default/picture/picture.directive.d.ts +2 -1
  64. app-ng-runtime/components/basic/default/video/video.component.d.ts +1 -0
  65. app-ng-runtime/components/basic/progress/bundles/index.umd.js +12 -8
  66. app-ng-runtime/components/basic/progress/esm2022/progress-bar/progress-bar.component.mjs +4 -4
  67. app-ng-runtime/components/basic/progress/esm2022/progress-bar/progress-bar.props.mjs +2 -1
  68. app-ng-runtime/components/basic/progress/esm2022/progress-circle/progress-circle.component.mjs +8 -6
  69. app-ng-runtime/components/basic/progress/esm2022/progress-circle/progress-circle.props.mjs +2 -1
  70. app-ng-runtime/components/basic/progress/fesm2022/index.mjs +12 -8
  71. app-ng-runtime/components/basic/progress/fesm2022/index.mjs.map +1 -1
  72. app-ng-runtime/components/basic/progress/progress-bar/progress-bar.component.d.ts +1 -0
  73. app-ng-runtime/components/basic/progress/progress-circle/progress-circle.component.d.ts +3 -1
  74. app-ng-runtime/components/basic/rich-text-editor/bundles/index.umd.js +2 -0
  75. app-ng-runtime/components/basic/rich-text-editor/esm2022/rich-text-editor.component.mjs +2 -1
  76. app-ng-runtime/components/basic/rich-text-editor/esm2022/rich-text-editor.props.mjs +2 -1
  77. app-ng-runtime/components/basic/rich-text-editor/fesm2022/index.mjs +2 -0
  78. app-ng-runtime/components/basic/rich-text-editor/fesm2022/index.mjs.map +1 -1
  79. app-ng-runtime/components/basic/search/bundles/index.umd.js +11 -9
  80. app-ng-runtime/components/basic/search/esm2022/search.component.mjs +14 -13
  81. app-ng-runtime/components/basic/search/esm2022/search.props.mjs +2 -1
  82. app-ng-runtime/components/basic/search/fesm2022/index.mjs +11 -9
  83. app-ng-runtime/components/basic/search/fesm2022/index.mjs.map +1 -1
  84. app-ng-runtime/components/basic/search/search.component.d.ts +1 -0
  85. app-ng-runtime/components/containers/accordion/bundles/index.umd.js +3 -3
  86. app-ng-runtime/components/containers/accordion/esm2022/accordion-pane/accordion-pane.component.mjs +4 -4
  87. app-ng-runtime/components/containers/accordion/fesm2022/index.mjs +3 -3
  88. app-ng-runtime/components/containers/accordion/fesm2022/index.mjs.map +1 -1
  89. app-ng-runtime/components/containers/panel/bundles/index.umd.js +14 -14
  90. app-ng-runtime/components/containers/panel/esm2022/panel.component.mjs +15 -15
  91. app-ng-runtime/components/containers/panel/fesm2022/index.mjs +14 -14
  92. app-ng-runtime/components/containers/panel/fesm2022/index.mjs.map +1 -1
  93. app-ng-runtime/components/containers/tabs/bundles/index.umd.js +2 -2
  94. app-ng-runtime/components/containers/tabs/esm2022/tabs.component.mjs +3 -3
  95. app-ng-runtime/components/containers/tabs/fesm2022/index.mjs +2 -2
  96. app-ng-runtime/components/containers/tabs/fesm2022/index.mjs.map +1 -1
  97. app-ng-runtime/components/data/form/bundles/index.umd.js +4 -0
  98. app-ng-runtime/components/data/form/esm2022/form-field/form-field.directive.mjs +5 -1
  99. app-ng-runtime/components/data/form/fesm2022/index.mjs +4 -0
  100. app-ng-runtime/components/data/form/fesm2022/index.mjs.map +1 -1
  101. app-ng-runtime/components/data/form/form-field/form-field.directive.d.ts +1 -0
  102. app-ng-runtime/components/data/live-table/bundles/index.umd.js +2 -2
  103. app-ng-runtime/components/data/live-table/esm2022/live-table.component.mjs +3 -3
  104. app-ng-runtime/components/data/live-table/fesm2022/index.mjs +2 -2
  105. app-ng-runtime/components/data/live-table/fesm2022/index.mjs.map +1 -1
  106. app-ng-runtime/components/data/pagination/bundles/index.umd.js +2 -0
  107. app-ng-runtime/components/data/pagination/esm2022/pagination.component.mjs +3 -1
  108. app-ng-runtime/components/data/pagination/fesm2022/index.mjs +2 -0
  109. app-ng-runtime/components/data/pagination/fesm2022/index.mjs.map +1 -1
  110. app-ng-runtime/components/data/table/bundles/index.umd.js +44 -10
  111. app-ng-runtime/components/data/table/esm2022/table-column/table-column.directive.mjs +14 -5
  112. app-ng-runtime/components/data/table/esm2022/table.component.mjs +30 -7
  113. app-ng-runtime/components/data/table/esm2022/table.props.mjs +3 -1
  114. app-ng-runtime/components/data/table/fesm2022/index.mjs +45 -11
  115. app-ng-runtime/components/data/table/fesm2022/index.mjs.map +1 -1
  116. app-ng-runtime/components/data/table/table.component.d.ts +8 -1
  117. app-ng-runtime/components/dialogs/alert-dialog/bundles/index.umd.js +6 -4
  118. app-ng-runtime/components/dialogs/alert-dialog/esm2022/alert-dialog.component.mjs +7 -5
  119. app-ng-runtime/components/dialogs/alert-dialog/fesm2022/index.mjs +6 -4
  120. app-ng-runtime/components/dialogs/alert-dialog/fesm2022/index.mjs.map +1 -1
  121. app-ng-runtime/components/dialogs/confirm-dialog/bundles/index.umd.js +8 -5
  122. app-ng-runtime/components/dialogs/confirm-dialog/esm2022/confirm-dialog.component.mjs +9 -6
  123. app-ng-runtime/components/dialogs/confirm-dialog/fesm2022/index.mjs +8 -5
  124. app-ng-runtime/components/dialogs/confirm-dialog/fesm2022/index.mjs.map +1 -1
  125. app-ng-runtime/components/dialogs/default/bundles/index.umd.js +9 -3
  126. app-ng-runtime/components/dialogs/default/dialog-header/dialog-header.component.d.ts +2 -1
  127. app-ng-runtime/components/dialogs/default/esm2022/base-dialog.mjs +2 -1
  128. app-ng-runtime/components/dialogs/default/esm2022/dialog-header/dialog-header.component.mjs +9 -4
  129. app-ng-runtime/components/dialogs/default/fesm2022/index.mjs +9 -3
  130. app-ng-runtime/components/dialogs/default/fesm2022/index.mjs.map +1 -1
  131. app-ng-runtime/components/dialogs/design-dialog/bundles/index.umd.js +4 -4
  132. app-ng-runtime/components/dialogs/design-dialog/esm2022/dialog.component.mjs +5 -5
  133. app-ng-runtime/components/dialogs/design-dialog/fesm2022/index.mjs +4 -4
  134. app-ng-runtime/components/dialogs/design-dialog/fesm2022/index.mjs.map +1 -1
  135. app-ng-runtime/components/dialogs/iframe-dialog/bundles/index.umd.js +9 -5
  136. app-ng-runtime/components/dialogs/iframe-dialog/esm2022/iframe-dialog.component.mjs +10 -6
  137. app-ng-runtime/components/dialogs/iframe-dialog/fesm2022/index.mjs +9 -5
  138. app-ng-runtime/components/dialogs/iframe-dialog/fesm2022/index.mjs.map +1 -1
  139. app-ng-runtime/components/dialogs/partial-dialog/bundles/index.umd.js +9 -5
  140. app-ng-runtime/components/dialogs/partial-dialog/esm2022/partial-dialog.component.mjs +10 -6
  141. app-ng-runtime/components/dialogs/partial-dialog/fesm2022/index.mjs +9 -5
  142. app-ng-runtime/components/dialogs/partial-dialog/fesm2022/index.mjs.map +1 -1
  143. app-ng-runtime/components/input/calendar/bundles/index.umd.js +2 -4
  144. app-ng-runtime/components/input/calendar/esm2022/calendar.component.mjs +3 -5
  145. app-ng-runtime/components/input/calendar/fesm2022/index.mjs +2 -4
  146. app-ng-runtime/components/input/calendar/fesm2022/index.mjs.map +1 -1
  147. app-ng-runtime/components/input/chips/bundles/index.umd.js +3 -2
  148. app-ng-runtime/components/input/chips/esm2022/chips.component.mjs +3 -3
  149. app-ng-runtime/components/input/chips/esm2022/chips.props.mjs +2 -1
  150. app-ng-runtime/components/input/chips/fesm2022/index.mjs +3 -2
  151. app-ng-runtime/components/input/chips/fesm2022/index.mjs.map +1 -1
  152. app-ng-runtime/components/input/color-picker/bundles/index.umd.js +5 -3
  153. app-ng-runtime/components/input/color-picker/color-picker.component.d.ts +1 -0
  154. app-ng-runtime/components/input/color-picker/esm2022/color-picker.component.mjs +6 -5
  155. app-ng-runtime/components/input/color-picker/esm2022/color-picker.props.mjs +2 -1
  156. app-ng-runtime/components/input/color-picker/fesm2022/index.mjs +5 -3
  157. app-ng-runtime/components/input/color-picker/fesm2022/index.mjs.map +1 -1
  158. app-ng-runtime/components/input/currency/bundles/index.umd.js +4 -3
  159. app-ng-runtime/components/input/currency/currency.component.d.ts +1 -0
  160. app-ng-runtime/components/input/currency/esm2022/currency.component.mjs +6 -6
  161. app-ng-runtime/components/input/currency/esm2022/currency.props.mjs +2 -1
  162. app-ng-runtime/components/input/currency/fesm2022/index.mjs +4 -3
  163. app-ng-runtime/components/input/currency/fesm2022/index.mjs.map +1 -1
  164. app-ng-runtime/components/input/default/bundles/index.umd.js +166 -103
  165. app-ng-runtime/components/input/default/button/button.component.d.ts +1 -0
  166. app-ng-runtime/components/input/default/checkbox/checkbox.component.d.ts +1 -0
  167. app-ng-runtime/components/input/default/esm2022/button/button.component.mjs +1 -1
  168. app-ng-runtime/components/input/default/esm2022/button/button.props.mjs +2 -1
  169. app-ng-runtime/components/input/default/esm2022/caption-position.directive.mjs +8 -7
  170. app-ng-runtime/components/input/default/esm2022/checkbox/checkbox.component.mjs +7 -7
  171. app-ng-runtime/components/input/default/esm2022/checkbox/checkbox.props.mjs +2 -1
  172. app-ng-runtime/components/input/default/esm2022/checkboxset/checkboxset.component.mjs +21 -16
  173. app-ng-runtime/components/input/default/esm2022/number/number.component.mjs +5 -5
  174. app-ng-runtime/components/input/default/esm2022/number/number.props.mjs +3 -1
  175. app-ng-runtime/components/input/default/esm2022/radioset/radioset.component.mjs +28 -23
  176. app-ng-runtime/components/input/default/esm2022/select/select.component.mjs +20 -18
  177. app-ng-runtime/components/input/default/esm2022/select/select.props.mjs +2 -1
  178. app-ng-runtime/components/input/default/esm2022/switch/switch.component.mjs +6 -5
  179. app-ng-runtime/components/input/default/esm2022/switch/switch.props.mjs +2 -1
  180. app-ng-runtime/components/input/default/esm2022/text/calendar/input-calendar.component.mjs +5 -5
  181. app-ng-runtime/components/input/default/esm2022/text/calendar/input-calendar.props.mjs +2 -1
  182. app-ng-runtime/components/input/default/esm2022/text/color/input-color.component.mjs +5 -5
  183. app-ng-runtime/components/input/default/esm2022/text/color/input-color.props.mjs +2 -1
  184. app-ng-runtime/components/input/default/esm2022/text/email/input-email.component.mjs +5 -5
  185. app-ng-runtime/components/input/default/esm2022/text/email/input-email.props.mjs +2 -1
  186. app-ng-runtime/components/input/default/esm2022/text/locale/number-locale.mjs +50 -13
  187. app-ng-runtime/components/input/default/esm2022/text/number/input-number.component.mjs +5 -5
  188. app-ng-runtime/components/input/default/esm2022/text/number/input-number.props.mjs +2 -1
  189. app-ng-runtime/components/input/default/esm2022/text/text/input-text.component.mjs +5 -5
  190. app-ng-runtime/components/input/default/esm2022/text/text/input-text.props.mjs +2 -1
  191. app-ng-runtime/components/input/default/esm2022/textarea/textarea.component.mjs +6 -6
  192. app-ng-runtime/components/input/default/esm2022/textarea/textarea.props.mjs +2 -1
  193. app-ng-runtime/components/input/default/fesm2022/index.mjs +166 -103
  194. app-ng-runtime/components/input/default/fesm2022/index.mjs.map +1 -1
  195. app-ng-runtime/components/input/default/number/number.component.d.ts +1 -0
  196. app-ng-runtime/components/input/default/select/select.component.d.ts +2 -0
  197. app-ng-runtime/components/input/default/text/calendar/input-calendar.component.d.ts +1 -0
  198. app-ng-runtime/components/input/default/text/color/input-color.component.d.ts +1 -0
  199. app-ng-runtime/components/input/default/text/email/input-email.component.d.ts +1 -0
  200. app-ng-runtime/components/input/default/text/locale/number-locale.d.ts +1 -0
  201. app-ng-runtime/components/input/default/text/number/input-number.component.d.ts +1 -0
  202. app-ng-runtime/components/input/default/text/text/input-text.component.d.ts +1 -0
  203. app-ng-runtime/components/input/default/textarea/textarea.component.d.ts +1 -0
  204. app-ng-runtime/components/input/epoch/bundles/index.umd.js +12 -9
  205. app-ng-runtime/components/input/epoch/date/date.component.d.ts +1 -0
  206. app-ng-runtime/components/input/epoch/date-time/date-time.component.d.ts +2 -1
  207. app-ng-runtime/components/input/epoch/esm2022/date/date.component.mjs +6 -6
  208. app-ng-runtime/components/input/epoch/esm2022/date/date.props.mjs +2 -1
  209. app-ng-runtime/components/input/epoch/esm2022/date-time/date-time.component.mjs +7 -7
  210. app-ng-runtime/components/input/epoch/esm2022/date-time/date-time.props.mjs +2 -1
  211. app-ng-runtime/components/input/epoch/esm2022/time/time.component.mjs +7 -7
  212. app-ng-runtime/components/input/epoch/esm2022/time/time.props.mjs +2 -1
  213. app-ng-runtime/components/input/epoch/fesm2022/index.mjs +12 -9
  214. app-ng-runtime/components/input/epoch/fesm2022/index.mjs.map +1 -1
  215. app-ng-runtime/components/input/epoch/time/time.component.d.ts +1 -0
  216. app-ng-runtime/components/input/file-upload/bundles/index.umd.js +187 -100
  217. app-ng-runtime/components/input/file-upload/esm2022/file-upload.component.mjs +184 -102
  218. app-ng-runtime/components/input/file-upload/esm2022/file-upload.props.mjs +6 -1
  219. app-ng-runtime/components/input/file-upload/fesm2022/index.mjs +187 -100
  220. app-ng-runtime/components/input/file-upload/fesm2022/index.mjs.map +1 -1
  221. app-ng-runtime/components/input/file-upload/file-upload.component.d.ts +12 -10
  222. app-ng-runtime/components/input/slider/bundles/index.umd.js +5 -6
  223. app-ng-runtime/components/input/slider/esm2022/slider.component.mjs +6 -8
  224. app-ng-runtime/components/input/slider/esm2022/slider.props.mjs +2 -1
  225. app-ng-runtime/components/input/slider/fesm2022/index.mjs +5 -6
  226. app-ng-runtime/components/input/slider/fesm2022/index.mjs.map +1 -1
  227. app-ng-runtime/components/input/slider/slider.component.d.ts +1 -0
  228. app-ng-runtime/components/navigation/menu/bundles/index.umd.js +8 -6
  229. app-ng-runtime/components/navigation/menu/esm2022/menu.component.mjs +8 -7
  230. app-ng-runtime/components/navigation/menu/esm2022/menu.props.mjs +2 -1
  231. app-ng-runtime/components/navigation/menu/fesm2022/index.mjs +8 -6
  232. app-ng-runtime/components/navigation/menu/fesm2022/index.mjs.map +1 -1
  233. app-ng-runtime/components/navigation/menu/menu.component.d.ts +1 -0
  234. app-ng-runtime/components/navigation/popover/bundles/index.umd.js +121 -13
  235. app-ng-runtime/components/navigation/popover/esm2022/popover.component.mjs +122 -15
  236. app-ng-runtime/components/navigation/popover/esm2022/popover.props.mjs +2 -1
  237. app-ng-runtime/components/navigation/popover/fesm2022/index.mjs +121 -13
  238. app-ng-runtime/components/navigation/popover/fesm2022/index.mjs.map +1 -1
  239. app-ng-runtime/components/navigation/popover/popover.component.d.ts +15 -3
  240. app-ng-runtime/components/page/default/bundles/index.umd.js +2 -1
  241. app-ng-runtime/components/page/default/esm2022/page.props.mjs +4 -3
  242. app-ng-runtime/components/page/default/fesm2022/index.mjs +2 -1
  243. app-ng-runtime/components/page/default/fesm2022/index.mjs.map +1 -1
  244. app-ng-runtime/components/page/footer/bundles/index.umd.js +2 -1
  245. app-ng-runtime/components/page/footer/esm2022/footer.props.mjs +3 -2
  246. app-ng-runtime/components/page/footer/fesm2022/index.mjs +2 -1
  247. app-ng-runtime/components/page/footer/fesm2022/index.mjs.map +1 -1
  248. app-ng-runtime/components/page/header/bundles/index.umd.js +2 -1
  249. app-ng-runtime/components/page/header/esm2022/header.props.mjs +3 -2
  250. app-ng-runtime/components/page/header/fesm2022/index.mjs +2 -1
  251. app-ng-runtime/components/page/header/fesm2022/index.mjs.map +1 -1
  252. app-ng-runtime/components/page/left-panel/bundles/index.umd.js +2 -1
  253. app-ng-runtime/components/page/left-panel/esm2022/left-panel.props.mjs +3 -2
  254. app-ng-runtime/components/page/left-panel/fesm2022/index.mjs +2 -1
  255. app-ng-runtime/components/page/left-panel/fesm2022/index.mjs.map +1 -1
  256. app-ng-runtime/components/page/right-panel/bundles/index.umd.js +2 -1
  257. app-ng-runtime/components/page/right-panel/esm2022/right-panel.props.mjs +3 -2
  258. app-ng-runtime/components/page/right-panel/fesm2022/index.mjs +2 -1
  259. app-ng-runtime/components/page/right-panel/fesm2022/index.mjs.map +1 -1
  260. app-ng-runtime/components/page/top-nav/bundles/index.umd.js +2 -1
  261. app-ng-runtime/components/page/top-nav/esm2022/top-nav.props.mjs +3 -2
  262. app-ng-runtime/components/page/top-nav/fesm2022/index.mjs +2 -1
  263. app-ng-runtime/components/page/top-nav/fesm2022/index.mjs.map +1 -1
  264. app-ng-runtime/core/bundles/index.umd.js +15 -13
  265. app-ng-runtime/core/esm2022/public_api.mjs +2 -2
  266. app-ng-runtime/core/esm2022/utils/build-utils.mjs +7 -7
  267. app-ng-runtime/core/esm2022/utils/utils.mjs +4 -5
  268. app-ng-runtime/core/fesm2022/index.mjs +11 -11
  269. app-ng-runtime/core/fesm2022/index.mjs.map +1 -1
  270. app-ng-runtime/core/public_api.d.ts +1 -1
  271. app-ng-runtime/core/utils/utils.d.ts +1 -1
  272. app-ng-runtime/mobile/components/device/barcode-scanner/bundles/index.umd.js +2 -1
  273. app-ng-runtime/mobile/components/device/barcode-scanner/esm2022/barcode-scanner.props.mjs +3 -2
  274. app-ng-runtime/mobile/components/device/barcode-scanner/fesm2022/index.mjs +2 -1
  275. app-ng-runtime/mobile/components/device/barcode-scanner/fesm2022/index.mjs.map +1 -1
  276. app-ng-runtime/mobile/components/device/camera/bundles/index.umd.js +2 -1
  277. app-ng-runtime/mobile/components/device/camera/esm2022/camera.props.mjs +3 -2
  278. app-ng-runtime/mobile/components/device/camera/fesm2022/index.mjs +2 -1
  279. app-ng-runtime/mobile/components/device/camera/fesm2022/index.mjs.map +1 -1
  280. app-ng-runtime/package.json +1 -1
  281. app-ng-runtime/runtime/base/bundles/index.umd.js +6 -4
  282. app-ng-runtime/runtime/base/components/app-component/app.component.d.ts +2 -3
  283. app-ng-runtime/runtime/base/esm2022/components/app-component/app.component.mjs +5 -5
  284. app-ng-runtime/runtime/base/esm2022/guards/can-deactivate-page.guard.mjs +5 -4
  285. app-ng-runtime/runtime/base/fesm2022/index.mjs +6 -4
  286. app-ng-runtime/runtime/base/fesm2022/index.mjs.map +1 -1
  287. app-ng-runtime/runtime/base/guards/can-deactivate-page.guard.d.ts +2 -1
  288. app-ng-runtime/scripts/datatable/datatable.js +24 -27
@@ -39,6 +39,7 @@
39
39
  ['contentsource', { value: 'partial', ...base.PROP_STRING }],
40
40
  ['encodeurl', base.PROP_BOOLEAN],
41
41
  ['hint', base.PROP_STRING],
42
+ ['arialabel', base.PROP_STRING],
42
43
  ['hyperlink', { value: 'javascript:void(0)', PROP_STRING: base.PROP_STRING }],
43
44
  ['iconclass', base.PROP_STRING],
44
45
  ['iconheight', base.PROP_STRING],
@@ -76,25 +77,105 @@
76
77
  let activePopover;
77
78
  class PopoverComponent extends base.StylableComponent {
78
79
  static { this.initializeProps = registerProps(); }
79
- constructor(inj, app, explicitContext) {
80
+ static { this.activePopovers = []; }
81
+ constructor(inj, app, explicitContext, cdr) {
80
82
  super(inj, WIDGET_CONFIG, explicitContext);
81
83
  this.app = app;
84
+ this.cdr = cdr;
82
85
  this.isOpen = false;
83
86
  this.canPopoverOpen = true;
87
+ this.isClosingProgrammatically = false;
84
88
  this.popoverContainerCls = `app-popover-${this.widgetId}`;
85
89
  }
90
+ setupDocumentClickHandler() {
91
+ if (this.documentClickHandler) {
92
+ document.removeEventListener('click', this.documentClickHandler, true);
93
+ }
94
+ this.documentClickHandler = (event) => {
95
+ if (!this.isOpen)
96
+ return;
97
+ const target = event.target;
98
+ // Check if the clicked element or any of its parents is part of the datepicker, dropdown, or typeahead containers
99
+ const isInsideSpecialContainer = !!(target.closest('.bs-datepicker-container') ||
100
+ target.closest(".dropdown-menu"));
101
+ if (isInsideSpecialContainer) {
102
+ // If the click was inside one of these containers, we do not close the popover
103
+ return;
104
+ }
105
+ const clickedPopoverIndex = PopoverComponent.activePopovers.findIndex(popover => {
106
+ const popoverContainer = document.querySelector(`.${popover.popoverContainerCls}`);
107
+ return popoverContainer?.contains(target);
108
+ });
109
+ if (this.anchorRef.nativeElement.contains(target)) {
110
+ event.preventDefault();
111
+ event.stopPropagation();
112
+ this.isOpen ? this.close() : this.open();
113
+ return;
114
+ }
115
+ if (clickedPopoverIndex === -1) {
116
+ // Click is outside all popovers
117
+ if (this.outsideclick) {
118
+ this.closeAllPopovers();
119
+ }
120
+ }
121
+ else {
122
+ // Click is inside a popover
123
+ this.closeInnerPopovers(clickedPopoverIndex);
124
+ }
125
+ };
126
+ document.addEventListener('click', this.documentClickHandler, true);
127
+ }
128
+ closeAllPopovers() {
129
+ PopoverComponent.activePopovers.forEach(popover => {
130
+ if (popover.outsideclick) {
131
+ popover.isClosingProgrammatically = true;
132
+ popover.close();
133
+ }
134
+ });
135
+ }
136
+ closeInnerPopovers(clickedIndex) {
137
+ for (let i = clickedIndex + 1; i < PopoverComponent.activePopovers.length; i++) {
138
+ const popover = PopoverComponent.activePopovers[i];
139
+ if (popover.outsideclick) {
140
+ popover.isClosingProgrammatically = true;
141
+ popover.close();
142
+ }
143
+ }
144
+ }
145
+ isChildPopover() {
146
+ return !!$(this.nativeElement).closest('.popover').length;
147
+ }
86
148
  // This mehtod is used to show/open the popover. This refers to the same method showPopover.
87
149
  open() {
88
150
  this.showPopover();
151
+ if (!PopoverComponent.activePopovers.includes(this)) {
152
+ PopoverComponent.activePopovers.push(this);
153
+ }
154
+ this.cdr.detectChanges();
89
155
  }
90
156
  // This mehtod is used to hide/close the popover.
91
157
  close() {
92
- this.isOpen = false;
158
+ if (this.isOpen) {
159
+ this.isClosingProgrammatically = true;
160
+ this.isOpen = false;
161
+ this.bsPopoverDirective.hide();
162
+ const index = PopoverComponent.activePopovers.indexOf(this);
163
+ if (index > -1) {
164
+ PopoverComponent.activePopovers.splice(index, 1);
165
+ }
166
+ this.cdr.detectChanges();
167
+ }
93
168
  }
94
169
  // Trigger on hiding popover
95
170
  onHidden() {
96
- this.invokeEventCallback('hide', { $event: { type: 'hide' } });
97
- this.isOpen = false;
171
+ if (!this.isChildPopover() || this.isClosingProgrammatically) {
172
+ this.invokeEventCallback('hide', { $event: { type: 'hide' } });
173
+ this.isOpen = false;
174
+ if (activePopover === this) {
175
+ activePopover = null;
176
+ }
177
+ }
178
+ this.isClosingProgrammatically = false;
98
179
  }
99
180
  setFocusToPopoverLink() {
100
181
  setTimeout(() => this.anchorRef.nativeElement.focus(), 10);
@@ -146,12 +227,26 @@
146
227
  $('body > popover-container').wrap('<' + root + '/>');
147
228
  }
148
229
  // Fix for [WMS-25125]: Not closing the existing opened popovers when the autoclose property is DISABLED
149
- if (activePopover && activePopover.isOpen && activePopover.autoclose !== base.AUTOCLOSE_TYPE.DISABLED) {
150
- activePopover.isOpen = false;
230
+ if (!this.isChildPopover()) {
231
+ if (activePopover && activePopover !== this &&
232
+ activePopover.autoclose !== base.AUTOCLOSE_TYPE.DISABLED) {
233
+ activePopover.isClosingProgrammatically = true;
234
+ activePopover.close();
235
+ }
236
+ activePopover = this;
237
+ }
238
+ this.isOpen = true;
239
+ if (!PopoverComponent.activePopovers.includes(this)) {
240
+ PopoverComponent.activePopovers.push(this);
151
241
  }
152
- activePopover = this;
153
- activePopover.isOpen = true;
154
242
  const popoverContainer = document.querySelector(`.${this.popoverContainerCls}`);
243
+ if (popoverContainer) {
244
+ popoverContainer.setAttribute('data-popover-id', this.widgetId);
245
+ // Add click event listener to stop propagation
246
+ popoverContainer.addEventListener('click', (event) => {
247
+ event.stopPropagation();
248
+ });
249
+ }
155
250
  i1.setCSSFromObj(popoverContainer, {
156
251
  height: this.popoverheight,
157
252
  minWidth: this.popoverwidth,
@@ -168,6 +263,9 @@
168
263
  this.anchorRef.nativeElement.onmouseenter = () => clearTimeout(this.closePopoverTimeout);
169
264
  this.anchorRef.nativeElement.onmouseleave = () => this.hidePopover();
170
265
  }
266
+ if (this.outsideclick) {
267
+ this.setupDocumentClickHandler();
268
+ }
171
269
  setTimeout(() => {
172
270
  this.anchorRef.nativeElement.removeAttribute('aria-describedby');
173
271
  });
@@ -234,6 +332,7 @@
234
332
  }
235
333
  }
236
334
  hidePopover() {
335
+ this.isClosingProgrammatically = true;
237
336
  this.closePopoverTimeout = setTimeout(() => this.isOpen = false, 500);
238
337
  }
239
338
  showPopover() {
@@ -287,7 +386,16 @@
287
386
  // Hide the popover container while attaching the next component as part of page reuse strategy.
288
387
  this.bsPopoverDirective.hide();
289
388
  }
290
- static { this.ɵfac = function PopoverComponent_Factory(t) { return new (t || PopoverComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector), i0__namespace.ɵɵdirectiveInject(i1__namespace.App), i0__namespace.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8)); }; }
389
+ OnDestroy() {
390
+ if (this.documentClickHandler) {
391
+ document.removeEventListener('click', this.documentClickHandler, true);
392
+ }
393
+ const index = PopoverComponent.activePopovers.indexOf(this);
394
+ if (index > -1) {
395
+ PopoverComponent.activePopovers.splice(index, 1);
396
+ }
397
+ }
398
+ static { this.ɵfac = function PopoverComponent_Factory(t) { return new (t || PopoverComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.Injector), i0__namespace.ɵɵdirectiveInject(i1__namespace.App), i0__namespace.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef)); }; }
291
399
  static { this.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: PopoverComponent, selectors: [["wm-popover"]], contentQueries: function PopoverComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
292
400
  i0__namespace.ɵɵcontentQuery(dirIndex, i0.TemplateRef, 5);
293
401
  i0__namespace.ɵɵcontentQuery(dirIndex, _c0, 5);
@@ -313,20 +421,20 @@
313
421
  i0__namespace.ɵɵclassMap(ctx.class);
314
422
  i0__namespace.ɵɵpropertyInterpolate2("containerClass", "app-popover animated ", ctx.contentanimation, " ", ctx.popoverContainerCls, "");
315
423
  i0__namespace.ɵɵproperty("popover", ctx.popoverTemplate)("popoverContext", ctx.context)("popoverTitle", ctx.title)("placement", ctx.popoverplacement)("outsideClick", ctx.outsideclick)("triggers", ctx.event)("container", ctx.containerTarget || ".wm-app")("isOpen", ctx.isOpen)("tabindex", ctx.tabindex)("name", ctx.name)("ngClass", i0__namespace.ɵɵpureFunction1(19, _c2, !ctx.canPopoverOpen))("adaptivePosition", ctx.adaptiveposition);
316
- i0__namespace.ɵɵattribute("aria-label", ctx.hint || "Popover menu")("aria-expanded", ctx.isOpen);
424
+ i0__namespace.ɵɵattribute("aria-label", ctx.arialabel || (ctx.badgevalue ? ctx.caption + " " + ctx.badgevalue : ctx.caption) || "Popover menu")("aria-expanded", ctx.isOpen);
317
425
  } }, dependencies: [i2__namespace.NgClass, i3__namespace.AnchorComponent, i4__namespace.PopoverDirective], encapsulation: 2 }); }
318
426
  }
319
427
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(PopoverComponent, [{
320
428
  type: i0.Component,
321
429
  args: [{ selector: 'wm-popover', providers: [
322
430
  base.provideAsWidgetRef(PopoverComponent)
323
- ], template: "<a [popover]=\"popoverTemplate\"\n [popoverContext]=\"context\"\n [popoverTitle]=\"title\"\n [placement]=\"popoverplacement\"\n [outsideClick]=\"outsideclick\"\n [triggers]=\"event\"\n (onShown)=\"onShown()\"\n (onHidden)=\"onHidden()\"\n containerClass=\"app-popover animated {{contentanimation}} {{popoverContainerCls}}\"\n [container]=\"containerTarget || '.wm-app'\"\n [isOpen]=\"isOpen\"\n [tabindex]=\"tabindex\"\n [name]=\"name\"\n [class]=\"class\"\n [ngClass]=\"{'disable-popover': !canPopoverOpen}\"\n [adaptivePosition]=\"adaptiveposition\"\n boundariesElement=\"window\"\n [attr.aria-label]=\"hint || 'Popover menu'\"\n [attr.aria-expanded]=\"isOpen\"\n role=\"button\"\n #anchor\n name.bind=\"name\"\n wmAnchor\n animation.bind=\"animation\"\n badgevalue.bind=\"badgevalue\"\n caption.bind=\"caption\"\n encodeurl.bind=\"encodeurl\"\n hint.bind=\"hint\"\n hyperlink.bind=\"hyperlink\"\n iconurl.bind=\"iconurl\"\n iconwidth.bind=\"iconwidth\"\n iconheight.bind=\"iconheight\"\n iconmargin.bind=\"iconmargin\"\n iconclass.bind=\"iconclass\"\n iconposition.bind=\"iconposition\"\n shortcutkey.bind=\"shortcutkey\"\n tabindex.bind=\"tabindex\"\n (keydown)=\"onPopoverAnchorKeydown($event)\">\n</a>\n" }]
431
+ ], template: "<a [popover]=\"popoverTemplate\"\n [popoverContext]=\"context\"\n [popoverTitle]=\"title\"\n [placement]=\"popoverplacement\"\n [outsideClick]=\"outsideclick\"\n [triggers]=\"event\"\n (onShown)=\"onShown()\"\n (onHidden)=\"onHidden()\"\n containerClass=\"app-popover animated {{contentanimation}} {{popoverContainerCls}}\"\n [container]=\"containerTarget || '.wm-app'\"\n [isOpen]=\"isOpen\"\n [tabindex]=\"tabindex\"\n [name]=\"name\"\n [class]=\"class\"\n [ngClass]=\"{'disable-popover': !canPopoverOpen}\"\n [adaptivePosition]=\"adaptiveposition\"\n boundariesElement=\"window\"\n [attr.aria-label]=\"arialabel || (badgevalue ? caption + ' ' + badgevalue : caption) || 'Popover menu'\"\n [attr.aria-expanded]=\"isOpen\"\n role=\"button\"\n #anchor\n name.bind=\"name\"\n wmAnchor\n animation.bind=\"animation\"\n badgevalue.bind=\"badgevalue\"\n caption.bind=\"caption\"\n encodeurl.bind=\"encodeurl\"\n hint.bind=\"hint\"\n hyperlink.bind=\"hyperlink\"\n iconurl.bind=\"iconurl\"\n iconwidth.bind=\"iconwidth\"\n iconheight.bind=\"iconheight\"\n iconmargin.bind=\"iconmargin\"\n iconclass.bind=\"iconclass\"\n iconposition.bind=\"iconposition\"\n shortcutkey.bind=\"shortcutkey\"\n tabindex.bind=\"tabindex\"\n (keydown)=\"onPopoverAnchorKeydown($event)\">\n</a>\n" }]
324
432
  }], () => [{ type: i0__namespace.Injector }, { type: i1__namespace.App }, { type: undefined, decorators: [{
325
433
  type: i0.Inject,
326
434
  args: ['EXPLICIT_CONTEXT']
327
435
  }, {
328
436
  type: i0.Optional
329
- }] }], { bsPopoverDirective: [{
437
+ }] }, { type: i0__namespace.ChangeDetectorRef }], { bsPopoverDirective: [{
330
438
  type: i0.ViewChild,
331
439
  args: [i4.PopoverDirective]
332
440
  }], anchorRef: [{
@@ -339,7 +447,7 @@
339
447
  type: i0.ContentChild,
340
448
  args: ['partial']
341
449
  }] }); })();
342
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassDebugInfo(PopoverComponent, { className: "PopoverComponent", filePath: "popover.component.ts", lineNumber: 57 }); })();
450
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassDebugInfo(PopoverComponent, { className: "PopoverComponent", filePath: "popover.component.ts", lineNumber: 60 }); })();
343
451
 
344
452
  const components = [
345
453
  PopoverComponent
@@ -1,4 +1,4 @@
1
- import { Component, ContentChild, ElementRef, Inject, Injector, Optional, TemplateRef, ViewChild } from '@angular/core';
1
+ import { ChangeDetectorRef, Component, ContentChild, ElementRef, Inject, Injector, Optional, TemplateRef, ViewChild } from '@angular/core';
2
2
  import { PopoverDirective } from 'ngx-bootstrap/popover';
3
3
  import { addClass, adjustContainerPosition, adjustContainerRightEdges, App, findRootContainer, setCSSFromObj } from '@wm/core';
4
4
  import { AUTOCLOSE_TYPE, getContainerTargetClass, provideAsWidgetRef, StylableComponent, styler } from '@wm/components/base';
@@ -24,25 +24,105 @@ const eventsMap = {
24
24
  let activePopover;
25
25
  export class PopoverComponent extends StylableComponent {
26
26
  static { this.initializeProps = registerProps(); }
27
- constructor(inj, app, explicitContext) {
27
+ static { this.activePopovers = []; }
28
+ constructor(inj, app, explicitContext, cdr) {
28
29
  super(inj, WIDGET_CONFIG, explicitContext);
29
30
  this.app = app;
31
+ this.cdr = cdr;
30
32
  this.isOpen = false;
31
33
  this.canPopoverOpen = true;
34
+ this.isClosingProgrammatically = false;
32
35
  this.popoverContainerCls = `app-popover-${this.widgetId}`;
33
36
  }
37
+ setupDocumentClickHandler() {
38
+ if (this.documentClickHandler) {
39
+ document.removeEventListener('click', this.documentClickHandler, true);
40
+ }
41
+ this.documentClickHandler = (event) => {
42
+ if (!this.isOpen)
43
+ return;
44
+ const target = event.target;
45
+ // Check if the clicked element or any of its parents is part of the datepicker, dropdown, or typeahead containers
46
+ const isInsideSpecialContainer = !!(target.closest('.bs-datepicker-container') ||
47
+ target.closest(".dropdown-menu"));
48
+ if (isInsideSpecialContainer) {
49
+ // If the click was inside one of these containers, we do not close the popover
50
+ return;
51
+ }
52
+ const clickedPopoverIndex = PopoverComponent.activePopovers.findIndex(popover => {
53
+ const popoverContainer = document.querySelector(`.${popover.popoverContainerCls}`);
54
+ return popoverContainer?.contains(target);
55
+ });
56
+ if (this.anchorRef.nativeElement.contains(target)) {
57
+ event.preventDefault();
58
+ event.stopPropagation();
59
+ this.isOpen ? this.close() : this.open();
60
+ return;
61
+ }
62
+ if (clickedPopoverIndex === -1) {
63
+ // Click is outside all popovers
64
+ if (this.outsideclick) {
65
+ this.closeAllPopovers();
66
+ }
67
+ }
68
+ else {
69
+ // Click is inside a popover
70
+ this.closeInnerPopovers(clickedPopoverIndex);
71
+ }
72
+ };
73
+ document.addEventListener('click', this.documentClickHandler, true);
74
+ }
75
+ closeAllPopovers() {
76
+ PopoverComponent.activePopovers.forEach(popover => {
77
+ if (popover.outsideclick) {
78
+ popover.isClosingProgrammatically = true;
79
+ popover.close();
80
+ }
81
+ });
82
+ }
83
+ closeInnerPopovers(clickedIndex) {
84
+ for (let i = clickedIndex + 1; i < PopoverComponent.activePopovers.length; i++) {
85
+ const popover = PopoverComponent.activePopovers[i];
86
+ if (popover.outsideclick) {
87
+ popover.isClosingProgrammatically = true;
88
+ popover.close();
89
+ }
90
+ }
91
+ }
92
+ isChildPopover() {
93
+ return !!$(this.nativeElement).closest('.popover').length;
94
+ }
34
95
  // This mehtod is used to show/open the popover. This refers to the same method showPopover.
35
96
  open() {
36
97
  this.showPopover();
98
+ if (!PopoverComponent.activePopovers.includes(this)) {
99
+ PopoverComponent.activePopovers.push(this);
100
+ }
101
+ this.cdr.detectChanges();
37
102
  }
38
103
  // This mehtod is used to hide/close the popover.
39
104
  close() {
40
- this.isOpen = false;
105
+ if (this.isOpen) {
106
+ this.isClosingProgrammatically = true;
107
+ this.isOpen = false;
108
+ this.bsPopoverDirective.hide();
109
+ const index = PopoverComponent.activePopovers.indexOf(this);
110
+ if (index > -1) {
111
+ PopoverComponent.activePopovers.splice(index, 1);
112
+ }
113
+ this.cdr.detectChanges();
114
+ }
41
115
  }
42
116
  // Trigger on hiding popover
43
117
  onHidden() {
44
- this.invokeEventCallback('hide', { $event: { type: 'hide' } });
45
- this.isOpen = false;
118
+ if (!this.isChildPopover() || this.isClosingProgrammatically) {
119
+ this.invokeEventCallback('hide', { $event: { type: 'hide' } });
120
+ this.isOpen = false;
121
+ if (activePopover === this) {
122
+ activePopover = null;
123
+ }
124
+ }
125
+ this.isClosingProgrammatically = false;
46
126
  }
47
127
  setFocusToPopoverLink() {
48
128
  setTimeout(() => this.anchorRef.nativeElement.focus(), 10);
@@ -94,12 +174,26 @@ export class PopoverComponent extends StylableComponent {
94
174
  $('body > popover-container').wrap('<' + root + '/>');
95
175
  }
96
176
  // Fix for [WMS-25125]: Not closing the existing opened popovers when the autoclose property is DISABLED
97
- if (activePopover && activePopover.isOpen && activePopover.autoclose !== AUTOCLOSE_TYPE.DISABLED) {
98
- activePopover.isOpen = false;
177
+ if (!this.isChildPopover()) {
178
+ if (activePopover && activePopover !== this &&
179
+ activePopover.autoclose !== AUTOCLOSE_TYPE.DISABLED) {
180
+ activePopover.isClosingProgrammatically = true;
181
+ activePopover.close();
182
+ }
183
+ activePopover = this;
184
+ }
185
+ this.isOpen = true;
186
+ if (!PopoverComponent.activePopovers.includes(this)) {
187
+ PopoverComponent.activePopovers.push(this);
99
188
  }
100
- activePopover = this;
101
- activePopover.isOpen = true;
102
189
  const popoverContainer = document.querySelector(`.${this.popoverContainerCls}`);
190
+ if (popoverContainer) {
191
+ popoverContainer.setAttribute('data-popover-id', this.widgetId);
192
+ // Add click event listener to stop propagation
193
+ popoverContainer.addEventListener('click', (event) => {
194
+ event.stopPropagation();
195
+ });
196
+ }
103
197
  setCSSFromObj(popoverContainer, {
104
198
  height: this.popoverheight,
105
199
  minWidth: this.popoverwidth,
@@ -116,6 +210,9 @@ export class PopoverComponent extends StylableComponent {
116
210
  this.anchorRef.nativeElement.onmouseenter = () => clearTimeout(this.closePopoverTimeout);
117
211
  this.anchorRef.nativeElement.onmouseleave = () => this.hidePopover();
118
212
  }
213
+ if (this.outsideclick) {
214
+ this.setupDocumentClickHandler();
215
+ }
119
216
  setTimeout(() => {
120
217
  this.anchorRef.nativeElement.removeAttribute('aria-describedby');
121
218
  });
@@ -182,6 +279,7 @@ export class PopoverComponent extends StylableComponent {
182
279
  }
183
280
  }
184
281
  hidePopover() {
282
+ this.isClosingProgrammatically = true;
185
283
  this.closePopoverTimeout = setTimeout(() => this.isOpen = false, 500);
186
284
  }
187
285
  showPopover() {
@@ -235,7 +333,16 @@ export class PopoverComponent extends StylableComponent {
235
333
  // Hide the popover container while attaching the next component as part of page reuse strategy.
236
334
  this.bsPopoverDirective.hide();
237
335
  }
238
- static { this.ɵfac = function PopoverComponent_Factory(t) { return new (t || PopoverComponent)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i1.App), i0.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8)); }; }
336
+ OnDestroy() {
337
+ if (this.documentClickHandler) {
338
+ document.removeEventListener('click', this.documentClickHandler, true);
339
+ }
340
+ const index = PopoverComponent.activePopovers.indexOf(this);
341
+ if (index > -1) {
342
+ PopoverComponent.activePopovers.splice(index, 1);
343
+ }
344
+ }
345
+ static { this.ɵfac = function PopoverComponent_Factory(t) { return new (t || PopoverComponent)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i1.App), i0.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); }; }
239
346
  static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PopoverComponent, selectors: [["wm-popover"]], contentQueries: function PopoverComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
240
347
  i0.ɵɵcontentQuery(dirIndex, TemplateRef, 5);
241
348
  i0.ɵɵcontentQuery(dirIndex, _c0, 5);
@@ -261,20 +368,20 @@ export class PopoverComponent extends StylableComponent {
261
368
  i0.ɵɵclassMap(ctx.class);
262
369
  i0.ɵɵpropertyInterpolate2("containerClass", "app-popover animated ", ctx.contentanimation, " ", ctx.popoverContainerCls, "");
263
370
  i0.ɵɵproperty("popover", ctx.popoverTemplate)("popoverContext", ctx.context)("popoverTitle", ctx.title)("placement", ctx.popoverplacement)("outsideClick", ctx.outsideclick)("triggers", ctx.event)("container", ctx.containerTarget || ".wm-app")("isOpen", ctx.isOpen)("tabindex", ctx.tabindex)("name", ctx.name)("ngClass", i0.ɵɵpureFunction1(19, _c2, !ctx.canPopoverOpen))("adaptivePosition", ctx.adaptiveposition);
264
- i0.ɵɵattribute("aria-label", ctx.hint || "Popover menu")("aria-expanded", ctx.isOpen);
371
+ i0.ɵɵattribute("aria-label", ctx.arialabel || (ctx.badgevalue ? ctx.caption + " " + ctx.badgevalue : ctx.caption) || "Popover menu")("aria-expanded", ctx.isOpen);
265
372
  } }, dependencies: [i2.NgClass, i3.AnchorComponent, i4.PopoverDirective], encapsulation: 2 }); }
266
373
  }
267
374
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PopoverComponent, [{
268
375
  type: Component,
269
376
  args: [{ selector: 'wm-popover', providers: [
270
377
  provideAsWidgetRef(PopoverComponent)
271
- ], template: "<a [popover]=\"popoverTemplate\"\n [popoverContext]=\"context\"\n [popoverTitle]=\"title\"\n [placement]=\"popoverplacement\"\n [outsideClick]=\"outsideclick\"\n [triggers]=\"event\"\n (onShown)=\"onShown()\"\n (onHidden)=\"onHidden()\"\n containerClass=\"app-popover animated {{contentanimation}} {{popoverContainerCls}}\"\n [container]=\"containerTarget || '.wm-app'\"\n [isOpen]=\"isOpen\"\n [tabindex]=\"tabindex\"\n [name]=\"name\"\n [class]=\"class\"\n [ngClass]=\"{'disable-popover': !canPopoverOpen}\"\n [adaptivePosition]=\"adaptiveposition\"\n boundariesElement=\"window\"\n [attr.aria-label]=\"hint || 'Popover menu'\"\n [attr.aria-expanded]=\"isOpen\"\n role=\"button\"\n #anchor\n name.bind=\"name\"\n wmAnchor\n animation.bind=\"animation\"\n badgevalue.bind=\"badgevalue\"\n caption.bind=\"caption\"\n encodeurl.bind=\"encodeurl\"\n hint.bind=\"hint\"\n hyperlink.bind=\"hyperlink\"\n iconurl.bind=\"iconurl\"\n iconwidth.bind=\"iconwidth\"\n iconheight.bind=\"iconheight\"\n iconmargin.bind=\"iconmargin\"\n iconclass.bind=\"iconclass\"\n iconposition.bind=\"iconposition\"\n shortcutkey.bind=\"shortcutkey\"\n tabindex.bind=\"tabindex\"\n (keydown)=\"onPopoverAnchorKeydown($event)\">\n</a>\n" }]
378
+ ], template: "<a [popover]=\"popoverTemplate\"\n [popoverContext]=\"context\"\n [popoverTitle]=\"title\"\n [placement]=\"popoverplacement\"\n [outsideClick]=\"outsideclick\"\n [triggers]=\"event\"\n (onShown)=\"onShown()\"\n (onHidden)=\"onHidden()\"\n containerClass=\"app-popover animated {{contentanimation}} {{popoverContainerCls}}\"\n [container]=\"containerTarget || '.wm-app'\"\n [isOpen]=\"isOpen\"\n [tabindex]=\"tabindex\"\n [name]=\"name\"\n [class]=\"class\"\n [ngClass]=\"{'disable-popover': !canPopoverOpen}\"\n [adaptivePosition]=\"adaptiveposition\"\n boundariesElement=\"window\"\n [attr.aria-label]=\"arialabel || (badgevalue ? caption + ' ' + badgevalue : caption) || 'Popover menu'\"\n [attr.aria-expanded]=\"isOpen\"\n role=\"button\"\n #anchor\n name.bind=\"name\"\n wmAnchor\n animation.bind=\"animation\"\n badgevalue.bind=\"badgevalue\"\n caption.bind=\"caption\"\n encodeurl.bind=\"encodeurl\"\n hint.bind=\"hint\"\n hyperlink.bind=\"hyperlink\"\n iconurl.bind=\"iconurl\"\n iconwidth.bind=\"iconwidth\"\n iconheight.bind=\"iconheight\"\n iconmargin.bind=\"iconmargin\"\n iconclass.bind=\"iconclass\"\n iconposition.bind=\"iconposition\"\n shortcutkey.bind=\"shortcutkey\"\n tabindex.bind=\"tabindex\"\n (keydown)=\"onPopoverAnchorKeydown($event)\">\n</a>\n" }]
272
379
  }], () => [{ type: i0.Injector }, { type: i1.App }, { type: undefined, decorators: [{
273
380
  type: Inject,
274
381
  args: ['EXPLICIT_CONTEXT']
275
382
  }, {
276
383
  type: Optional
277
- }] }], { bsPopoverDirective: [{
384
+ }] }, { type: i0.ChangeDetectorRef }], { bsPopoverDirective: [{
278
385
  type: ViewChild,
279
386
  args: [PopoverDirective]
280
387
  }], anchorRef: [{
@@ -287,5 +394,5 @@ export class PopoverComponent extends StylableComponent {
287
394
  type: ContentChild,
288
395
  args: ['partial']
289
396
  }] }); })();
290
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PopoverComponent, { className: "PopoverComponent", filePath: "popover.component.ts", lineNumber: 57 }); })();
291
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9wb3Zlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb21wb25lbnRzL3dpZGdldHMvbmF2aWdhdGlvbi9wb3BvdmVyL3NyYy9wb3BvdmVyLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvbX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CBhcnJvd0xlZnRTaGlmdCA7XG4gICAgICAgICAgICAgICAgaWYocG9wb3ZlckxlZnQ8PTEwMCl7XG4gICAgICAgICAgICAgICAgICAgIGFycm93TGVmdFNoaWZ0ID0gIChwYXJlbnREaW1lc2lvbi5sZWZ0ICsgKHBhcmVudERpbWVzaW9uLndpZHRoIC8gMikpIC0gcG9wb3ZlckxlZnQ7XG4gICAgICAgICAgICAgICAgfWVsc2V7XG4gICAgICAgICAgICAgICAgICAgIGFycm93TGVmdFNoaWZ0ID0gKHBhcmVudERpbWVzaW9uLmxlZnQgKyAocGFyZW50RGltZXNpb24ud2lkdGggLyAyKSkgLSBwb3BvdmVyTGVmdFNoaWZ0O1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBpZih2aWV3UG9ydFdpZHRoID4gNTAwKXtcbiAgICAgICAgICAgICAgICAgICAgYXJyb3dMZWZ0U2hpZnQgKz0gMzA7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgdGhpcy5hZGp1c3RQb3BvdmVyQXJyb3dQb3NpdGlvbihwb3BvdmVyRWxlbSwgYXJyb3dMZWZ0U2hpZnQpO1xuICAgICAgICAgICAgfSk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICAvLyBUcmlnZ2VyIG9uIHNob3dpbmcgcG9wb3ZlclxuICAgIHB1YmxpYyBvblNob3duKCkge1xuICAgICAgICBjb25zdCByb290ID0gZmluZFJvb3RDb250YWluZXIodGhpcy4kZWxlbWVudCk7XG4gICAgICAgIC8vIGlmIHBhZ2Ugc3R5bGVzIGhhdmUgdG8gYmUgYXBwbGllZCB0byBwb3BvdmVyIHRoZW4gcG9wb3ZlciBoYXMgdG8gYmUgY2hpbGQgb2YgcGFnZSBlbGVtZW50LlxuICAgICAgICBpZiAocm9vdCkge1xuICAgICAgICAgICAgJCgnYm9keSA+IHBvcG92ZXItY29udGFpbmVyJykud3JhcCgnPCcgKyByb290ICsgJy8+Jyk7XG4gICAgICAgIH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dXJjZSA9PT0gJ3BhcnRpYWwnKSB7XG4gICAgICAgICAgICBjb25zdCBjYW5jZWxTdWJzY3JpcHRpb24gPSB0aGlzLmFwcC5zdWJzY3JpYmUoJ3BhcnRpYWxMb2FkZWQnLCAoZGF0YSkgPT4ge1xuICAgICAgICAgICAgICAgIGNvbnN0IHBhckVsZSA9IHRoaXMucGFydGlhbFJlZi5uYXRpdmVFbGVtZW50O1xuICAgICAgICAgICAgICAgIGxldCBwYXJ0aWFsU2NvcGU7XG5cbiAgICAgICAgICAgICAgICBpZiAocGFyRWxlKSB7XG4gICAgICAgICAgICAgICAgICAgIHBhcnRpYWxTY29wZSAgPSBwYXJFbGUud2lkZ2V0O1xuICAgICAgICAgICAgICAgICAgICB0aGlzLldpZGdldHMgICA9IHBhcnRpYWxTY29wZS5XaWRnZXRzO1xuICAgICAgICAgICAgICAgICAgICB0aGlzLlZhcmlhYmxlcyA9IHBhcnRpYWxTY29wZS5WYXJpYWJsZXM7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuQWN0aW9ucyAgID0gcGFydGlhbFNjb3BlLkFjdGlvbnM7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuaW52b2tlRXZlbnRDYWxsYmFjaygnbG9hZCcpO1xuICAgICAgICAgICAgICAgICAgICB0aGlzLmludm9rZUV2ZW50Q2FsbGJhY2soJ3Nob3cnLCB7JGV2ZW50OiB7dHlwZTogJ3Nob3cnfX0pO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICBjYW5jZWxTdWJzY3JpcHRpb24oKTtcbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgdGhpcy5XaWRnZXRzICAgPSB0aGlzLnZpZXdQYXJlbnQuV2lkZ2V0cztcbiAgICAgICAgICAgIHRoaXMuVmFyaWFibGVzID0gdGhpcy52aWV3UGFyZW50LlZhcmlhYmxlcztcbiAgICAgICAgICAgIHRoaXMuQWN0aW9ucyAgID0gdGhp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PVwiaWNvbndpZHRoXCJcbiAgICBpY29uaGVpZ2h0LmJpbmQ9XCJpY29uaGVpZ2h0XCJcbiAgICBpY29ubWFyZ2luLmJpbmQ9XCJpY29ubWFyZ2luXCJcbiAgICBpY29uY2xhc3MuYmluZD1cImljb25jbGFzc1wiXG4gICAgaWNvbnBvc2l0aW9uLmJpbmQ9XCJpY29ucG9zaXRpb25cIlxuICAgIHNob3J0Y3V0a2V5LmJpbmQ9XCJzaG9ydGN1dGtleVwiXG4gICAgdGFiaW5kZXguYmluZD1cInRhYmluZGV4XCJcbiAgICAoa2V5ZG93bik9XCJvblBvcG92ZXJBbmNob3JLZXlkb3duKCRldmVudClcIj5cbjwvYT5cbiJdfQ==
397
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PopoverComponent, { className: "PopoverComponent", filePath: "popover.component.ts", lineNumber: 60 }); })();
398
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9wb3Zlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9jb21wb25lbnRzL3dpZGdldHMvbmF2aWdhdGlvbi9wb3BvdmVyL3NyYy9wb3BvdmVyLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvbXBvbmVudHMvd2lkZ2V0cy9uYXZpZ2F0aW9uL3BvcG92ZXIvc3JjL3BvcG92ZXIuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUVILGlCQUFpQixFQUNqQixTQUFTLEVBQ1QsWUFBWSxFQUNaLFVBQVUsRUFDVixNQUFNLEVBQ04sUUFBUSxFQUVSLFFBQVEsRUFDUixXQUFXLEVBQ1gsU0FBUyxFQUNaLE1BQU0sZUFBZSxDQUFDO0FBRXZCLE9BQU8sRUFBQyxnQk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gICAgICAgKTtcbiAgICBcbiAgICAgICAgICAgIGlmIChpc0luc2lkZVNwZWNpYWxDb250YWluZXIpIHtcbiAgICAgICAgICAgICAgICAvLyBJZiB0aGUgY2xpY2sgd2FzIGluc2lkZSBvbmUgb2YgdGhlc2UgY29udGFpbmVycywgd2UgZG8gbm90IGNsb3NlIHRoZSBwb3BvdmVyXG4gICAgICAgICAgICAgICAgcmV0dXJuO1xuICAgICAgICAgICAgfVxuICAgIFxuICAgICAgICAgICAgY29uc3QgY2xpY2tlZFBvcG92ZXJJbmRleCA9IFBvcG92ZXJDb21wb25lbnQuYWN0aXZlUG9wb3ZlcnMuZmluZEluZGV4KHBvcG92ZXIgPT4ge1xuICAgICAgICAgICAgICAgIGNvbnN0IHBvcG92ZXJDb250YWluZXIgPSBkb2N1bWVudC5xdWVyeVNlbGVjdG9yKGAuJHtwb3BvdmVyLnBvcG92ZXJDb250YWluZXJDbHN9YCk7XG4gICAgICAgICAgICAgICAgcmV0dXJuIHBvcG92ZXJDb250YWluZXI/LmNvbnRhaW5zKHRhcmdldCk7XG4gICAgICAgICAgICB9KTtcblxuICAgICAgICAgICAgaWYgKHRoaXMuYW5jaG9yUmVmLm5hdGl2ZUVsZW1lbnQuY29udGFpbnModGFyZ2V0KSkge1xuICAgICAgICAgICAgICAgIGV2ZW50LnByZXZlbnREZWZhdWx0KCk7XG4gICAgICAgICAgICAgICAgZXZlbnQuc3RvcFByb3BhZ2F0aW9uKCk7XG4gICAgICAgICAgICAgICAgdGhpcy5pc09wZW4gPyB0aGlzLmNsb3NlKCkgOiB0aGlzLm9wZW4oKVxuICAgICAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgICAgIH1cbiAgICBcbiAgICAgICAgICAgIGlmIChjbGlja2VkUG9wb3ZlckluZGV4ID09PSAtMSkge1xuICAgICAgICAgICAgICAgIC8vIENsaWNrIGlzIG91dHNpZGUgYWxsIHBvcG92ZXJzXG4gICAgICAgICAgICAgICAgaWYgKHRoaXMub3V0c2lkZWNsaWNrKSB7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMuY2xvc2VBbGxQb3BvdmVycygpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgLy8gQ2xpY2sgaXMgaW5zaWRlIGEgcG9wb3ZlclxuICAgICAgICAgICAgICAgIHRoaXMuY2xvc2VJbm5lclBvcG92ZXJzKGNsaWNrZWRQb3BvdmVySW5kZXgpO1xuICAgICAgICAgICAgfVxuICAgICAgICB9O1xuICAgIFxuICAgICAgICBkb2N1bWVudC5hZGRFdmVudExpc3RlbmVyKCdjbGljaycsIHRoaXMuZG9jdW1lbnRDbGlja0hhbmRsZXIsIHRydWUpO1xuICAgIH1cbiAgICBcblxuICAgIHByaXZhdGUgY2xvc2VBbGxQb3BvdmVycygpIHtcbiAgICAgICAgUG9wb3ZlckNvbXBvbmVudC5hY3RpdmVQb3BvdmVycy5mb3JFYWNoKHBvcG92ZXIgPT4ge1xuICAgICAgICAgICAgaWYgKHBvcG92ZXIub3V0c2lkZWNsaWNrKSB7XG4gICAgICAgICAgICAgICAgcG9wb3Zlci5pc0Nsb3NpbmdQcm9ncmFtbWF0aWNhbGx5ID0gdHJ1ZTtcbiAgICAgICAgICAgICAgICBwb3BvdmVyLmNsb3NlKCk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH0pO1xuICAgIH1cblxuICAgIHByaXZhdGUgY2xvc2VJbm5lclBvcG92ZXJzKGNsaWNrZWRJbmRleDogbnVtYmVyKSB7XG4gICAgICAgIGZvciAobGV0IGkgPSBjbGlja2VkSW5kZXggKyAxOyBpIDwgUG9wb3ZlckNvbXBvbmVudC5hY3RpdmVQb3BvdmVycy5sZW5ndGg7IGkrKykge1xuICAgICAgICAgICAgY29uc3QgcG9wb3ZlciA9IFBvcG92ZXJDb21wb25lbnQuYWN0aXZlUG9wb3ZlcnNbaV07XG4gICAgICAgICAgICBpZiAocG9wb3Zlci5vdXRzaWRlY2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gICAgICAgaWYgKGV2ZW50LnNoaWZ0S2V5ICYmIGV2ZW50LmtleSA9PT0gJ1RhYicpIHtcbiAgICAgICAgICAgICAgICB0aGlzLmJzUG9wb3ZlckRpcmVjdGl2ZS5oaWRlKCk7XG4gICAgICAgICAgICAgICAgZXZlbnQucHJldmVudERlZmF1bHQoKTtcbiAgICAgICAgICAgICAgICB0aGlzLnNldEZvY3VzVG9Qb3BvdmVyTGluaygpO1xuICAgICAgICAgICAgICAgIHRoaXMuaXNPcGVuID0gZmFsc2U7ICAgICAgICAgICAgfVxuICAgICAgICB9O1xuICAgICAgICBwb3BvdmVyRW5kQnRuLm9ua2V5ZG93biA9IChldmVudCkgPT4ge1xuICAgICAgICAgICAgLy8gQ2hlY2sgZm9yIFRhYiBrZXlcbiAgICAgICAgICAgIGlmICghZXZlbnQuc2hpZnRLZXkgJiYgZXZlbnQua2V5ID09PSAnVGFiJykge1xuICAgICAgICAgICAgICAgIHRoaXMuYnNQb3BvdmVyRGlyZWN0aXZlLmhpZGUoKTtcbiAgICAgICAgICAgICAgICBldmVudC5wcmV2ZW50RGVmYXVsdCgpO1xuICAgICAgICAgICAgICAgIHRoaXMuc2V0Rm9jdXNUb1BvcG92ZXJMaW5rKCk7XG4gICAgICAgICAgICAgICAgdGhpcy5pc09wZW4gPSBmYWxzZTsgICAgICAgICAgICB9XG4gICAgICAgIH07XG5cbiAgICAgICAgLy9XaGVuZXZlciBhdXRvY2xvc2UgcHJvcGVydHkgaXMgc2V0IHRvICdhbHdheXMnLCBhZGRpbmcgdGhlIG9uY2xpY2sgbGlzdGVuZXIgdG8gdGhlIHBvcG92ZXIgY29udGFpbmVyIHRvIGNsb3NlIHRoZSBwb3BvdmVyLlxuICAgICAgICBpZiAodGhpcy5hdXRvY2xvc2UgPT09IEFVVE9DTE9TRV9UWVBFLkFMV0FZUykge1xuICAgICAgICAgICAgcG9wb3ZlckNvbnRhaW5lci5vbmNsaWNrID0gKCkgPT4gdGhpcy5jbG9zZSgpO1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uY29kZXVybFwiXG4gICAgaGludC5iaW5kPVwiaGludFwiXG4gICAgaHlwZXJsaW5rLmJpbmQ9XCJoeXBlcmxpbmtcIlxuICAgIGljb251cmwuYmluZD1cImljb251cmxcIlxuICAgIGljb253aWR0aC5iaW5kPVwiaWNvbndpZHRoXCJcbiAgICBpY29uaGVpZ2h0LmJpbmQ9XCJpY29uaGVpZ2h0XCJcbiAgICBpY29ubWFyZ2luLmJpbmQ9XCJpY29ubWFyZ2luXCJcbiAgICBpY29uY2xhc3MuYmluZD1cImljb25jbGFzc1wiXG4gICAgaWNvbnBvc2l0aW9uLmJpbmQ9XCJpY29ucG9zaXRpb25cIlxuICAgIHNob3J0Y3V0a2V5LmJpbmQ9XCJzaG9ydGN1dGtleVwiXG4gICAgdGFiaW5kZXguYmluZD1cInRhYmluZGV4XCJcbiAgICAoa2V5ZG93bik9XCJvblBvcG92ZXJBbmNob3JLZXlkb3duKCRldmVudClcIj5cbjwvYT5cbiJdfQ==
@@ -11,6 +11,7 @@ export const registerProps = () => {
11
11
  ['contentsource', { value: 'partial', ...PROP_STRING }],
12
12
  ['encodeurl', PROP_BOOLEAN],
13
13
  ['hint', PROP_STRING],
14
+ ['arialabel', PROP_STRING],
14
15
  ['hyperlink', { value: 'javascript:void(0)', PROP_STRING }],
15
16
  ['iconclass', PROP_STRING],
16
17
  ['iconheight', PROP_STRING],
@@ -31,4 +32,4 @@ export const registerProps = () => {
31
32
  ['adaptiveposition', { value: true, ...PROP_BOOLEAN }]
32
33
  ]));
33
34
  };
34
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9wb3Zlci5wcm9wcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvbXBvbmVudHMvd2lkZ2V0cy9uYXZpZ2F0aW9uL3BvcG92ZXIvc3JjL3BvcG92ZXIucHJvcHMudHMiXSwibmFtZXMiOltdLCJ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gcmVnaXN0ZXJQcm9wcyA9ICgpID0+IHtcbiAgICByZWdpc3RlcihcbiAgICAgICAgJ3dtLXBvcG92ZXInLFxuICAgICAgICBuZXcgTWFwKFxuICAgICAgICAgICAgW1xuICAgICAgICAgICAgICAgIFsnYXV0b2Nsb3NlJywge3ZhbHVlOiAnb3V0c2lkZUNsaWNrJywgLi4uUFJPUF9TVFJJTkd9XSxcbiAgICAgICAgICAgICAgICBbJ2JhZGdldmFsdWUnLCBQUk9QX1NUUklOR10sXG4gICAgICAgICAgICAgICAgWydjYXB0aW9uJywge3ZhbHVlOiAnTGluaycsIC4uLlBST1BfU1RSSU5HfV0sXG4gICAgICAgICAgICAgICAgWydjbGFzcycsIFBST1BfU1RSSU5HXSxcbiAgICAgICAgICAgICAgICBbJ2NvbmRpdGlvbmFsY2xhc3MnLCBQUk9QX0FOWV0sXG4gICAgICAgICAgICAgICAgWydjb250ZW50JywgUFJPUF9TVFJJTkddLFxuICAgICAgICAgICAgICAgIFsnY29udGVudGFuaW1hdGlvbicsIFBST1BfU1RSSU5HXSxcbiAgICAgICAgICAgICAgICBbJ2NvbnRlbnRzb3VyY2UnLCB7dmFsdWU6ICdwYXJ0aWFsJywgLi4uUFJPUF9TVFJJTkd9XSxcbiAgICAgICAgICAgICAgICBbJ2VuY29kZXVybCcsIFBST1BfQk9PTEVBTl0sXG4gICAgICAgICAgICAgICAgWydoaW50JywgUFJPUF9TVFJJTkddLFxuICAgICAgICAgICAgICAgIFsnaHlwZXJsaW5rJywge3ZhbHVlOiAnamF2YXNjcmlwdDp2b2lkKDApJywgUFJPUF9TVFJJTkd9XSxcbiAgICAgICAgICAgICAgICBbJ2ljb25jbGFzcycsIFBST1BfU1RSSU5HXSxcbiAgICAgICAgICAgICAgICBbJ2ljb25oZWlnaHQnLCBQUk9QX1NUUklOR10sXG4gICAgICAgICAgICAgICAgWydpY29ubWFyZ2luJywgUFJPUF9TVFJJTkddLFxuICAgICAgICAgICAgICAgIFsnaWNvbnBvc2l0aW9uJywgUFJPUF9TVFJJTkddLFxuICAgICAgICAgICAgICAgIFsnaWNvbnVybCcsIFBST1BfU1RSSU5HXSxcbiAgICAgICAgICAgICAgICBbJ2ljb253aWR0aCcsIFBST1BfU1RSSU5HXSxcbiAgICAgICAgICAgICAgICBbJ2ludGVyYWN0aW9uJywge3ZhbHVlOiAnY2xpY2snLCAuLi5QUk9QX1NUUklOR31dLFxuICAgICAgICAgICAgICAgIFsnbmFtZScsIFBST1BfU1RSSU5HXSxcbiAgICAgICAgICAgICAgICBbJ3BvcG92ZXJhcnJvdycsIHt2YWx1ZTogdHJ1ZSwgLi4uUFJPUF9CT09MRUFOfV0sXG4gICAgICAgICAgICAgICAgWydwb3BvdmVyaGVpZ2h0JywgUFJPUF9TVFJJTkddLFxuICAgICAgICAgICAgICAgIFsncG9wb3ZlcnBsYWNlbWVudCcsIHt2YWx1ZTogJ2JvdHRvbScsIC4uLiBQUk9QX1NUUklOR31dLFxuICAgICAgICAgICAgICAgIFsncG9wb3ZlcndpZHRoJywgUFJPUF9TVFJJTkddLFxuICAgICAgICAgICAgICAgIFsnc2hvcnRjdXRrZXknLCBQUk9QX1NUUklOR10sXG4gICAgICAgICAgICAgICAgWydzaG93Jywge3ZhbHVlOiB0cnVlLCAuLi5QUk9QX0JPT0xFQU59XSxcbiAgICAgICAgICAgICAgICBbJ3RhYmluZGV4Jywge3ZhbHVlOiAwLCAuLi5QUk9QX05VTUJFUn1dLFxuICAgICAgICAgICAgICAgIFsndGl0bGUnLCBQUk9QX1NUUklOR10sXG4gICAgICAgICAgICAgICAgWydhZGFwdGl2ZXBvc2l0aW9uJywge3ZhbHVlOiB0cnVlLCAuLi5QUk9QX0JPT0xFQU59XVxuXG4gICAgICAgICAgICBdXG4gICAgICAgIClcbiAgICApO1xufTtcbiJdfQ==
35
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9wb3Zlci5wcm9wcy5qcyIsInNvdXJjZVJvb3QiO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Q0FBQztBQUNOLENBQUMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7UFJPUF9BTlksIFBST1BfQk9PTEVBTiwgUFJPUF9OVU1CRVIsIFBST1BfU1RSSU5HLCByZWdpc3Rlcn0gZnJvbSAnQHdtL2NvbXBvbmVudHMvYmFzZSc7XG5cbmV4cG9ydCBjb25zdCByZWdpc3RlclByb3BzID0gKCkgPT4ge1xuICAgIHJlZ2lzdGVyKFxuICAgICAgICAnd20tcG9wb3ZlcicsXG4gICAgICAgIG5ldyBNYXAoXG4gICAgICAgICAgICBbXG4gICAgICAgICAgICAgICAgWydhdXRvY2xvc2UnLCB7dmFsdWU6ICdvdXRzaWRlQ2xpY2snLCAuLi5QUk9QX1NUUklOR31dLFxuICAgICAgICAgICAgICAgIFsnYmFkZ2V2YWx1ZScsIFBST1BfU1RSSU5HXSxcbiAgICAgICAgICAgICAgICBbJ2NhcHRpb24nLCB7dmFsdWU6ICdMaW5rJywgLi4uUFJPUF9TVFJJTkd9XSxcbiAgICAgICAgICAgICAgICBbJ2NsYXNzJywgUFJPUF9TVFJJTkddLFxuICAgICAgICAgICAgICAgIFsnY29uZGl0aW9uYWxjbGFzcycsIFBST1BfQU5ZXSxcbiAgICAgICAgICAgICAgICBbJ2NvbnRlbnQnLCBQUk9QX1NUUklOR10sXG4gICAgICAgICAgICAgICAgWydjb250ZW50YW5pbWF0aW9uJywgUFJPUF9TVFJJTkddLFxuICAgICAgICAgICAgICAgIFsnY29udGVudHNvdXJjZScsIHt2YWx1ZTogJ3BhcnRpYWwnLCAuLi5QUk9QX1NUUklOR31dLFxuICAgICAgICAgICAgICAgIFsnZW5jb2RldXJsJywgUFJPUF9CT09MRUFOXSxcbiAgICAgICAgICAgICAgICBbJ2hpbnQnLCBQUk9QX1NUUklOR10sXG4gICAgICAgICAgICAgICAgWydhcmlhbGFiZWwnLCBQUk9QX1NUUklOR10sXG4gICAgICAgICAgICAgICAgWydoeXBlcmxpbmsnLCB7dmFsdWU6ICdqYXZhc2NyaXB0OnZvaWQoMCknLCBQUk9QX1NUUklOR31dLFxuICAgICAgICAgICAgICAgIFsnaWNvbmNsYXNzJywgUFJPUF9TVFJJTkddLFxuICAgICAgICAgICAgICAgIFsnaWNvbmhlaWdodCcsIFBST1BfU1RSSU5HXSxcbiAgICAgICAgICAgICAgICBbJ2ljb25tYXJnaW4nLCBQUk9QX1NUUklOR10sXG4gICAgICAgICAgICAgICAgWydpY29ucG9zaXRpb24nLCBQUk9QX1NUUklOR10sXG4gICAgICAgICAgICAgICAgWydpY29udXJsJywgUFJPUF9TVFJJTkddLFxuICAgICAgICAgICAgICAgIFsnaWNvbndpZHRoJywgUFJPUF9TVFJJTkddLFxuICAgICAgICAgICAgICAgIFsnaW50ZXJhY3Rpb24nLCB7dmFsdWU6ICdjbGljaycsIC4uLlBST1BfU1RSSU5HfV0sXG4gICAgICAgICAgICAgICAgWyduYW1lJywgUFJPUF9TVFJJTkddLFxuICAgICAgICAgICAgICAgIFsncG9wb3ZlcmFycm93Jywge3ZhbHVlOiB0cnVlLCAuLi5QUk9QX0JPT0xFQU59XSxcbiAgICAgICAgICAgICAgICBbJ3BvcG92ZXJoZWlnaHQnLCBQUk9QX1NUUklOR10sXG4gICAgICAgICAgICAgICAgWydwb3BvdmVycGxhY2VtZW50Jywge3ZhbHVlOiAnYm90dG9tJywgLi4uIFBST1BfU1RSSU5HfV0sXG4gICAgICAgICAgICAgICAgWydwb3BvdmVyd2lkdGgnLCBQUk9QX1NUUklOR10sXG4gICAgICAgICAgICAgICAgWydzaG9ydGN1dGtleScsIFBST1BfU1RSSU5HXSxcbiAgICAgICAgICAgICAgICBbJ3Nob3cnLCB7dmFsdWU6IHRydWUsIC4uLlBST1BfQk9PTEVBTn1dLFxuICAgICAgICAgICAgICAgIFsndGFiaW5kZXgnLCB7dmFsdWU6IDAsIC4uLlBST1BfTlVNQkVSfV0sXG4gICAgICAgICAgICAgICAgWyd0aXRsZScsIFBST1BfU1RSSU5HXSxcbiAgICAgICAgICAgICAgICBbJ2FkYXB0aXZlcG9zaXRpb24nLCB7dmFsdWU6IHRydWUsIC4uLlBST1BfQk9PTEVBTn1dXG5cbiAgICAgICAgICAgIF1cbiAgICAgICAgKVxuICAgICk7XG59O1xuIl19