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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (324) hide show
  1. app-ng-runtime/build-task/bundles/index.umd.js +53 -45
  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/accordion/accordion-pane/accordion-pane.build.mjs +2 -2
  11. app-ng-runtime/build-task/esm2022/containers/accordion/accordion.build.mjs +3 -3
  12. app-ng-runtime/build-task/esm2022/containers/tile/tile.build.mjs +2 -2
  13. app-ng-runtime/build-task/esm2022/containers/wizard/wizard.build.mjs +2 -2
  14. app-ng-runtime/build-task/esm2022/data/form/form-field/form-field.build.mjs +4 -4
  15. app-ng-runtime/build-task/esm2022/device/barcode-scanner/barcode-scanner.build.mjs +2 -2
  16. app-ng-runtime/build-task/esm2022/device/camera/camera.build.mjs +2 -2
  17. app-ng-runtime/build-task/esm2022/dialogs/alert-dialog/alert-dialog.build.mjs +2 -2
  18. app-ng-runtime/build-task/esm2022/input/calendar/calendar.build.mjs +2 -2
  19. app-ng-runtime/build-task/esm2022/input/chips/chips.build.mjs +2 -2
  20. app-ng-runtime/build-task/esm2022/input/color-picker/color-picker.build.mjs +3 -3
  21. app-ng-runtime/build-task/esm2022/input/currency/currency.build.mjs +3 -3
  22. app-ng-runtime/build-task/esm2022/input/default/button/button.build.mjs +2 -2
  23. app-ng-runtime/build-task/esm2022/input/default/button-group/button-group.build.mjs +2 -2
  24. app-ng-runtime/build-task/esm2022/input/default/switch/switch.build.mjs +2 -2
  25. app-ng-runtime/build-task/esm2022/input/file-upload/file-upload.build.mjs +6 -2
  26. app-ng-runtime/build-task/esm2022/page/footer/footer.build.mjs +2 -2
  27. app-ng-runtime/build-task/esm2022/page/header/header.build.mjs +2 -2
  28. app-ng-runtime/build-task/esm2022/page/layout.build.mjs +2 -2
  29. app-ng-runtime/build-task/esm2022/page/left-panel/left-panel.build.mjs +2 -2
  30. app-ng-runtime/build-task/esm2022/page/page.build.mjs +2 -2
  31. app-ng-runtime/build-task/esm2022/page/right-panel/right-panel.build.mjs +2 -2
  32. app-ng-runtime/build-task/esm2022/page/top-nav/top-nav.build.mjs +2 -2
  33. app-ng-runtime/build-task/fesm2022/index.mjs +53 -45
  34. app-ng-runtime/build-task/fesm2022/index.mjs.map +1 -1
  35. app-ng-runtime/components/advanced/carousel/bundles/index.umd.js +1 -1
  36. app-ng-runtime/components/advanced/carousel/esm2022/carousel.animator.mjs +2 -2
  37. app-ng-runtime/components/advanced/carousel/fesm2022/index.mjs +1 -1
  38. app-ng-runtime/components/advanced/carousel/fesm2022/index.mjs.map +1 -1
  39. app-ng-runtime/components/base/bundles/index.umd.js +8 -7
  40. app-ng-runtime/components/base/esm2022/pipes/custom-pipes.mjs +3 -3
  41. app-ng-runtime/components/base/esm2022/utils/live-utils.mjs +8 -2
  42. app-ng-runtime/components/base/esm2022/widgets/common/base/base.component.mjs +1 -6
  43. app-ng-runtime/components/base/fesm2022/index.mjs +8 -7
  44. app-ng-runtime/components/base/fesm2022/index.mjs.map +1 -1
  45. app-ng-runtime/components/base/pipes/custom-pipes.d.ts +1 -1
  46. app-ng-runtime/components/basic/default/anchor/anchor.component.d.ts +1 -0
  47. app-ng-runtime/components/basic/default/audio/audio.component.d.ts +3 -0
  48. app-ng-runtime/components/basic/default/bundles/index.umd.js +39 -19
  49. app-ng-runtime/components/basic/default/esm2022/anchor/anchor.component.mjs +4 -4
  50. app-ng-runtime/components/basic/default/esm2022/anchor/anchor.props.mjs +2 -1
  51. app-ng-runtime/components/basic/default/esm2022/audio/audio.component.mjs +14 -6
  52. app-ng-runtime/components/basic/default/esm2022/audio/audio.props.mjs +2 -1
  53. app-ng-runtime/components/basic/default/esm2022/html/html.props.mjs +2 -1
  54. app-ng-runtime/components/basic/default/esm2022/icon/icon.component.mjs +6 -7
  55. app-ng-runtime/components/basic/default/esm2022/icon/icon.props.mjs +2 -1
  56. app-ng-runtime/components/basic/default/esm2022/iframe/iframe.component.mjs +3 -3
  57. app-ng-runtime/components/basic/default/esm2022/iframe/iframe.props.mjs +3 -2
  58. app-ng-runtime/components/basic/default/esm2022/label/label.props.mjs +1 -1
  59. app-ng-runtime/components/basic/default/esm2022/picture/picture.directive.mjs +2 -2
  60. app-ng-runtime/components/basic/default/esm2022/picture/picture.props.mjs +3 -1
  61. app-ng-runtime/components/basic/default/esm2022/spinner/spinner.props.mjs +3 -2
  62. app-ng-runtime/components/basic/default/esm2022/video/video.component.mjs +8 -4
  63. app-ng-runtime/components/basic/default/esm2022/video/video.props.mjs +2 -1
  64. app-ng-runtime/components/basic/default/fesm2022/index.mjs +39 -19
  65. app-ng-runtime/components/basic/default/fesm2022/index.mjs.map +1 -1
  66. app-ng-runtime/components/basic/default/icon/icon.component.d.ts +1 -0
  67. app-ng-runtime/components/basic/default/iframe/iframe.component.d.ts +1 -0
  68. app-ng-runtime/components/basic/default/picture/picture.directive.d.ts +2 -1
  69. app-ng-runtime/components/basic/default/video/video.component.d.ts +2 -0
  70. app-ng-runtime/components/basic/progress/bundles/index.umd.js +17 -9
  71. app-ng-runtime/components/basic/progress/esm2022/progress-bar/progress-bar.component.mjs +9 -5
  72. app-ng-runtime/components/basic/progress/esm2022/progress-bar/progress-bar.props.mjs +2 -1
  73. app-ng-runtime/components/basic/progress/esm2022/progress-circle/progress-circle.component.mjs +8 -6
  74. app-ng-runtime/components/basic/progress/esm2022/progress-circle/progress-circle.props.mjs +2 -1
  75. app-ng-runtime/components/basic/progress/fesm2022/index.mjs +17 -9
  76. app-ng-runtime/components/basic/progress/fesm2022/index.mjs.map +1 -1
  77. app-ng-runtime/components/basic/progress/progress-bar/progress-bar.component.d.ts +2 -0
  78. app-ng-runtime/components/basic/progress/progress-circle/progress-circle.component.d.ts +3 -1
  79. app-ng-runtime/components/basic/rich-text-editor/bundles/index.umd.js +2 -0
  80. app-ng-runtime/components/basic/rich-text-editor/esm2022/rich-text-editor.component.mjs +2 -1
  81. app-ng-runtime/components/basic/rich-text-editor/esm2022/rich-text-editor.props.mjs +2 -1
  82. app-ng-runtime/components/basic/rich-text-editor/fesm2022/index.mjs +2 -0
  83. app-ng-runtime/components/basic/rich-text-editor/fesm2022/index.mjs.map +1 -1
  84. app-ng-runtime/components/basic/search/bundles/index.umd.js +16 -9
  85. app-ng-runtime/components/basic/search/esm2022/search.component.mjs +19 -13
  86. app-ng-runtime/components/basic/search/esm2022/search.props.mjs +2 -1
  87. app-ng-runtime/components/basic/search/fesm2022/index.mjs +16 -9
  88. app-ng-runtime/components/basic/search/fesm2022/index.mjs.map +1 -1
  89. app-ng-runtime/components/basic/search/search.component.d.ts +4 -2
  90. app-ng-runtime/components/chart/bundles/index.umd.js +1 -0
  91. app-ng-runtime/components/chart/esm2022/chart.utils.mjs +2 -1
  92. app-ng-runtime/components/chart/fesm2022/index.mjs +1 -0
  93. app-ng-runtime/components/chart/fesm2022/index.mjs.map +1 -1
  94. app-ng-runtime/components/containers/accordion/accordion-pane/accordion-pane.component.d.ts +1 -0
  95. app-ng-runtime/components/containers/accordion/bundles/index.umd.js +15 -9
  96. app-ng-runtime/components/containers/accordion/esm2022/accordion-pane/accordion-pane.component.mjs +13 -10
  97. app-ng-runtime/components/containers/accordion/esm2022/accordion.directive.mjs +4 -1
  98. app-ng-runtime/components/containers/accordion/fesm2022/index.mjs +15 -9
  99. app-ng-runtime/components/containers/accordion/fesm2022/index.mjs.map +1 -1
  100. app-ng-runtime/components/containers/panel/bundles/index.umd.js +14 -14
  101. app-ng-runtime/components/containers/panel/esm2022/panel.component.mjs +15 -15
  102. app-ng-runtime/components/containers/panel/fesm2022/index.mjs +14 -14
  103. app-ng-runtime/components/containers/panel/fesm2022/index.mjs.map +1 -1
  104. app-ng-runtime/components/containers/tabs/bundles/index.umd.js +2 -2
  105. app-ng-runtime/components/containers/tabs/esm2022/tabs.component.mjs +3 -3
  106. app-ng-runtime/components/containers/tabs/fesm2022/index.mjs +2 -2
  107. app-ng-runtime/components/containers/tabs/fesm2022/index.mjs.map +1 -1
  108. app-ng-runtime/components/containers/wizard/bundles/index.umd.js +6 -6
  109. app-ng-runtime/components/containers/wizard/esm2022/wizard.component.mjs +7 -7
  110. app-ng-runtime/components/containers/wizard/fesm2022/index.mjs +6 -6
  111. app-ng-runtime/components/containers/wizard/fesm2022/index.mjs.map +1 -1
  112. app-ng-runtime/components/data/form/bundles/index.umd.js +4 -0
  113. app-ng-runtime/components/data/form/esm2022/form-field/form-field.directive.mjs +5 -1
  114. app-ng-runtime/components/data/form/fesm2022/index.mjs +4 -0
  115. app-ng-runtime/components/data/form/fesm2022/index.mjs.map +1 -1
  116. app-ng-runtime/components/data/form/form-field/form-field.directive.d.ts +1 -0
  117. app-ng-runtime/components/data/list/bundles/index.umd.js +19 -11
  118. app-ng-runtime/components/data/list/esm2022/list-item.directive.mjs +10 -1
  119. app-ng-runtime/components/data/list/esm2022/list.component.mjs +12 -12
  120. app-ng-runtime/components/data/list/fesm2022/index.mjs +20 -12
  121. app-ng-runtime/components/data/list/fesm2022/index.mjs.map +1 -1
  122. app-ng-runtime/components/data/live-table/bundles/index.umd.js +2 -2
  123. app-ng-runtime/components/data/live-table/esm2022/live-table.component.mjs +3 -3
  124. app-ng-runtime/components/data/live-table/fesm2022/index.mjs +2 -2
  125. app-ng-runtime/components/data/live-table/fesm2022/index.mjs.map +1 -1
  126. app-ng-runtime/components/data/pagination/bundles/index.umd.js +2 -0
  127. app-ng-runtime/components/data/pagination/esm2022/pagination.component.mjs +3 -1
  128. app-ng-runtime/components/data/pagination/fesm2022/index.mjs +2 -0
  129. app-ng-runtime/components/data/pagination/fesm2022/index.mjs.map +1 -1
  130. app-ng-runtime/components/data/table/bundles/index.umd.js +44 -10
  131. app-ng-runtime/components/data/table/esm2022/table-column/table-column.directive.mjs +14 -5
  132. app-ng-runtime/components/data/table/esm2022/table.component.mjs +30 -7
  133. app-ng-runtime/components/data/table/esm2022/table.props.mjs +3 -1
  134. app-ng-runtime/components/data/table/fesm2022/index.mjs +45 -11
  135. app-ng-runtime/components/data/table/fesm2022/index.mjs.map +1 -1
  136. app-ng-runtime/components/data/table/table.component.d.ts +8 -1
  137. app-ng-runtime/components/dialogs/alert-dialog/bundles/index.umd.js +6 -4
  138. app-ng-runtime/components/dialogs/alert-dialog/esm2022/alert-dialog.component.mjs +7 -5
  139. app-ng-runtime/components/dialogs/alert-dialog/fesm2022/index.mjs +6 -4
  140. app-ng-runtime/components/dialogs/alert-dialog/fesm2022/index.mjs.map +1 -1
  141. app-ng-runtime/components/dialogs/confirm-dialog/bundles/index.umd.js +8 -5
  142. app-ng-runtime/components/dialogs/confirm-dialog/esm2022/confirm-dialog.component.mjs +9 -6
  143. app-ng-runtime/components/dialogs/confirm-dialog/fesm2022/index.mjs +8 -5
  144. app-ng-runtime/components/dialogs/confirm-dialog/fesm2022/index.mjs.map +1 -1
  145. app-ng-runtime/components/dialogs/default/bundles/index.umd.js +9 -3
  146. app-ng-runtime/components/dialogs/default/dialog-header/dialog-header.component.d.ts +2 -1
  147. app-ng-runtime/components/dialogs/default/esm2022/base-dialog.mjs +2 -1
  148. app-ng-runtime/components/dialogs/default/esm2022/dialog-header/dialog-header.component.mjs +9 -4
  149. app-ng-runtime/components/dialogs/default/fesm2022/index.mjs +9 -3
  150. app-ng-runtime/components/dialogs/default/fesm2022/index.mjs.map +1 -1
  151. app-ng-runtime/components/dialogs/design-dialog/bundles/index.umd.js +4 -4
  152. app-ng-runtime/components/dialogs/design-dialog/esm2022/dialog.component.mjs +5 -5
  153. app-ng-runtime/components/dialogs/design-dialog/fesm2022/index.mjs +4 -4
  154. app-ng-runtime/components/dialogs/design-dialog/fesm2022/index.mjs.map +1 -1
  155. app-ng-runtime/components/dialogs/iframe-dialog/bundles/index.umd.js +9 -5
  156. app-ng-runtime/components/dialogs/iframe-dialog/esm2022/iframe-dialog.component.mjs +10 -6
  157. app-ng-runtime/components/dialogs/iframe-dialog/fesm2022/index.mjs +9 -5
  158. app-ng-runtime/components/dialogs/iframe-dialog/fesm2022/index.mjs.map +1 -1
  159. app-ng-runtime/components/dialogs/partial-dialog/bundles/index.umd.js +9 -5
  160. app-ng-runtime/components/dialogs/partial-dialog/esm2022/partial-dialog.component.mjs +10 -6
  161. app-ng-runtime/components/dialogs/partial-dialog/fesm2022/index.mjs +9 -5
  162. app-ng-runtime/components/dialogs/partial-dialog/fesm2022/index.mjs.map +1 -1
  163. app-ng-runtime/components/input/calendar/bundles/index.umd.js +2 -4
  164. app-ng-runtime/components/input/calendar/esm2022/calendar.component.mjs +3 -5
  165. app-ng-runtime/components/input/calendar/fesm2022/index.mjs +2 -4
  166. app-ng-runtime/components/input/calendar/fesm2022/index.mjs.map +1 -1
  167. app-ng-runtime/components/input/chips/bundles/index.umd.js +25 -7
  168. app-ng-runtime/components/input/chips/esm2022/chips.component.mjs +25 -8
  169. app-ng-runtime/components/input/chips/esm2022/chips.props.mjs +2 -1
  170. app-ng-runtime/components/input/chips/fesm2022/index.mjs +25 -7
  171. app-ng-runtime/components/input/chips/fesm2022/index.mjs.map +1 -1
  172. app-ng-runtime/components/input/color-picker/bundles/index.umd.js +5 -3
  173. app-ng-runtime/components/input/color-picker/color-picker.component.d.ts +1 -0
  174. app-ng-runtime/components/input/color-picker/esm2022/color-picker.component.mjs +6 -5
  175. app-ng-runtime/components/input/color-picker/esm2022/color-picker.props.mjs +2 -1
  176. app-ng-runtime/components/input/color-picker/fesm2022/index.mjs +5 -3
  177. app-ng-runtime/components/input/color-picker/fesm2022/index.mjs.map +1 -1
  178. app-ng-runtime/components/input/currency/bundles/index.umd.js +4 -3
  179. app-ng-runtime/components/input/currency/currency.component.d.ts +1 -0
  180. app-ng-runtime/components/input/currency/esm2022/currency.component.mjs +6 -6
  181. app-ng-runtime/components/input/currency/esm2022/currency.props.mjs +2 -1
  182. app-ng-runtime/components/input/currency/fesm2022/index.mjs +4 -3
  183. app-ng-runtime/components/input/currency/fesm2022/index.mjs.map +1 -1
  184. app-ng-runtime/components/input/default/bundles/index.umd.js +184 -105
  185. app-ng-runtime/components/input/default/button/button.component.d.ts +1 -0
  186. app-ng-runtime/components/input/default/checkbox/checkbox.component.d.ts +1 -0
  187. app-ng-runtime/components/input/default/esm2022/base-form.component.mjs +3 -3
  188. app-ng-runtime/components/input/default/esm2022/button/button.component.mjs +1 -1
  189. app-ng-runtime/components/input/default/esm2022/button/button.props.mjs +2 -1
  190. app-ng-runtime/components/input/default/esm2022/caption-position.directive.mjs +8 -7
  191. app-ng-runtime/components/input/default/esm2022/checkbox/checkbox.component.mjs +7 -7
  192. app-ng-runtime/components/input/default/esm2022/checkbox/checkbox.props.mjs +2 -1
  193. app-ng-runtime/components/input/default/esm2022/checkboxset/checkboxset.component.mjs +21 -16
  194. app-ng-runtime/components/input/default/esm2022/number/number.component.mjs +5 -5
  195. app-ng-runtime/components/input/default/esm2022/number/number.props.mjs +3 -1
  196. app-ng-runtime/components/input/default/esm2022/radioset/radioset.component.mjs +28 -23
  197. app-ng-runtime/components/input/default/esm2022/select/select.component.mjs +20 -18
  198. app-ng-runtime/components/input/default/esm2022/select/select.props.mjs +2 -1
  199. app-ng-runtime/components/input/default/esm2022/switch/switch.component.mjs +6 -5
  200. app-ng-runtime/components/input/default/esm2022/switch/switch.props.mjs +2 -1
  201. app-ng-runtime/components/input/default/esm2022/text/calendar/input-calendar.component.mjs +5 -5
  202. app-ng-runtime/components/input/default/esm2022/text/calendar/input-calendar.props.mjs +2 -1
  203. app-ng-runtime/components/input/default/esm2022/text/color/input-color.component.mjs +5 -5
  204. app-ng-runtime/components/input/default/esm2022/text/color/input-color.props.mjs +2 -1
  205. app-ng-runtime/components/input/default/esm2022/text/email/input-email.component.mjs +5 -5
  206. app-ng-runtime/components/input/default/esm2022/text/email/input-email.props.mjs +2 -1
  207. app-ng-runtime/components/input/default/esm2022/text/locale/number-locale.mjs +66 -13
  208. app-ng-runtime/components/input/default/esm2022/text/number/input-number.component.mjs +5 -5
  209. app-ng-runtime/components/input/default/esm2022/text/number/input-number.props.mjs +2 -1
  210. app-ng-runtime/components/input/default/esm2022/text/text/input-text.component.mjs +5 -5
  211. app-ng-runtime/components/input/default/esm2022/text/text/input-text.props.mjs +2 -1
  212. app-ng-runtime/components/input/default/esm2022/textarea/textarea.component.mjs +6 -6
  213. app-ng-runtime/components/input/default/esm2022/textarea/textarea.props.mjs +2 -1
  214. app-ng-runtime/components/input/default/fesm2022/index.mjs +184 -105
  215. app-ng-runtime/components/input/default/fesm2022/index.mjs.map +1 -1
  216. app-ng-runtime/components/input/default/number/number.component.d.ts +1 -0
  217. app-ng-runtime/components/input/default/select/select.component.d.ts +2 -0
  218. app-ng-runtime/components/input/default/text/calendar/input-calendar.component.d.ts +1 -0
  219. app-ng-runtime/components/input/default/text/color/input-color.component.d.ts +1 -0
  220. app-ng-runtime/components/input/default/text/email/input-email.component.d.ts +1 -0
  221. app-ng-runtime/components/input/default/text/locale/number-locale.d.ts +1 -0
  222. app-ng-runtime/components/input/default/text/number/input-number.component.d.ts +1 -0
  223. app-ng-runtime/components/input/default/text/text/input-text.component.d.ts +1 -0
  224. app-ng-runtime/components/input/default/textarea/textarea.component.d.ts +1 -0
  225. app-ng-runtime/components/input/epoch/base-date-time.component.d.ts +2 -1
  226. app-ng-runtime/components/input/epoch/bundles/index.umd.js +28 -21
  227. app-ng-runtime/components/input/epoch/date/date.component.d.ts +1 -0
  228. app-ng-runtime/components/input/epoch/date-time/date-time.component.d.ts +2 -1
  229. app-ng-runtime/components/input/epoch/esm2022/base-date-time.component.mjs +10 -6
  230. app-ng-runtime/components/input/epoch/esm2022/date/date.component.mjs +8 -8
  231. app-ng-runtime/components/input/epoch/esm2022/date/date.props.mjs +2 -1
  232. app-ng-runtime/components/input/epoch/esm2022/date-time/date-time.component.mjs +9 -9
  233. app-ng-runtime/components/input/epoch/esm2022/date-time/date-time.props.mjs +2 -1
  234. app-ng-runtime/components/input/epoch/esm2022/time/time.component.mjs +7 -7
  235. app-ng-runtime/components/input/epoch/esm2022/time/time.props.mjs +2 -1
  236. app-ng-runtime/components/input/epoch/fesm2022/index.mjs +25 -18
  237. app-ng-runtime/components/input/epoch/fesm2022/index.mjs.map +1 -1
  238. app-ng-runtime/components/input/epoch/time/time.component.d.ts +1 -0
  239. app-ng-runtime/components/input/file-upload/bundles/index.umd.js +224 -121
  240. app-ng-runtime/components/input/file-upload/esm2022/file-upload.component.mjs +220 -123
  241. app-ng-runtime/components/input/file-upload/esm2022/file-upload.props.mjs +7 -1
  242. app-ng-runtime/components/input/file-upload/fesm2022/index.mjs +225 -122
  243. app-ng-runtime/components/input/file-upload/fesm2022/index.mjs.map +1 -1
  244. app-ng-runtime/components/input/file-upload/file-upload.component.d.ts +18 -11
  245. app-ng-runtime/components/input/rating/bundles/index.umd.js +2 -2
  246. app-ng-runtime/components/input/rating/esm2022/rating.component.mjs +3 -3
  247. app-ng-runtime/components/input/rating/fesm2022/index.mjs +2 -2
  248. app-ng-runtime/components/input/rating/fesm2022/index.mjs.map +1 -1
  249. app-ng-runtime/components/input/slider/bundles/index.umd.js +5 -6
  250. app-ng-runtime/components/input/slider/esm2022/slider.component.mjs +6 -8
  251. app-ng-runtime/components/input/slider/esm2022/slider.props.mjs +2 -1
  252. app-ng-runtime/components/input/slider/fesm2022/index.mjs +5 -6
  253. app-ng-runtime/components/input/slider/fesm2022/index.mjs.map +1 -1
  254. app-ng-runtime/components/input/slider/slider.component.d.ts +1 -0
  255. app-ng-runtime/components/navigation/breadcrumb/bundles/index.umd.js +6 -6
  256. app-ng-runtime/components/navigation/breadcrumb/esm2022/breadcrumb.component.mjs +7 -7
  257. app-ng-runtime/components/navigation/breadcrumb/fesm2022/index.mjs +6 -6
  258. app-ng-runtime/components/navigation/breadcrumb/fesm2022/index.mjs.map +1 -1
  259. app-ng-runtime/components/navigation/menu/bundles/index.umd.js +8 -6
  260. app-ng-runtime/components/navigation/menu/esm2022/menu.component.mjs +8 -7
  261. app-ng-runtime/components/navigation/menu/esm2022/menu.props.mjs +2 -1
  262. app-ng-runtime/components/navigation/menu/fesm2022/index.mjs +8 -6
  263. app-ng-runtime/components/navigation/menu/fesm2022/index.mjs.map +1 -1
  264. app-ng-runtime/components/navigation/menu/menu.component.d.ts +1 -0
  265. app-ng-runtime/components/navigation/popover/bundles/index.umd.js +121 -13
  266. app-ng-runtime/components/navigation/popover/esm2022/popover.component.mjs +122 -15
  267. app-ng-runtime/components/navigation/popover/esm2022/popover.props.mjs +2 -1
  268. app-ng-runtime/components/navigation/popover/fesm2022/index.mjs +121 -13
  269. app-ng-runtime/components/navigation/popover/fesm2022/index.mjs.map +1 -1
  270. app-ng-runtime/components/navigation/popover/popover.component.d.ts +15 -3
  271. app-ng-runtime/components/page/default/bundles/index.umd.js +2 -1
  272. app-ng-runtime/components/page/default/esm2022/page.props.mjs +4 -3
  273. app-ng-runtime/components/page/default/fesm2022/index.mjs +2 -1
  274. app-ng-runtime/components/page/default/fesm2022/index.mjs.map +1 -1
  275. app-ng-runtime/components/page/footer/bundles/index.umd.js +2 -1
  276. app-ng-runtime/components/page/footer/esm2022/footer.props.mjs +3 -2
  277. app-ng-runtime/components/page/footer/fesm2022/index.mjs +2 -1
  278. app-ng-runtime/components/page/footer/fesm2022/index.mjs.map +1 -1
  279. app-ng-runtime/components/page/header/bundles/index.umd.js +2 -1
  280. app-ng-runtime/components/page/header/esm2022/header.props.mjs +3 -2
  281. app-ng-runtime/components/page/header/fesm2022/index.mjs +2 -1
  282. app-ng-runtime/components/page/header/fesm2022/index.mjs.map +1 -1
  283. app-ng-runtime/components/page/left-panel/bundles/index.umd.js +2 -1
  284. app-ng-runtime/components/page/left-panel/esm2022/left-panel.props.mjs +3 -2
  285. app-ng-runtime/components/page/left-panel/fesm2022/index.mjs +2 -1
  286. app-ng-runtime/components/page/left-panel/fesm2022/index.mjs.map +1 -1
  287. app-ng-runtime/components/page/right-panel/bundles/index.umd.js +2 -1
  288. app-ng-runtime/components/page/right-panel/esm2022/right-panel.props.mjs +3 -2
  289. app-ng-runtime/components/page/right-panel/fesm2022/index.mjs +2 -1
  290. app-ng-runtime/components/page/right-panel/fesm2022/index.mjs.map +1 -1
  291. app-ng-runtime/components/page/top-nav/bundles/index.umd.js +2 -1
  292. app-ng-runtime/components/page/top-nav/esm2022/top-nav.props.mjs +3 -2
  293. app-ng-runtime/components/page/top-nav/fesm2022/index.mjs +2 -1
  294. app-ng-runtime/components/page/top-nav/fesm2022/index.mjs.map +1 -1
  295. app-ng-runtime/core/bundles/index.umd.js +15 -13
  296. app-ng-runtime/core/esm2022/public_api.mjs +2 -2
  297. app-ng-runtime/core/esm2022/utils/build-utils.mjs +7 -7
  298. app-ng-runtime/core/esm2022/utils/utils.mjs +4 -5
  299. app-ng-runtime/core/fesm2022/index.mjs +11 -11
  300. app-ng-runtime/core/fesm2022/index.mjs.map +1 -1
  301. app-ng-runtime/core/public_api.d.ts +1 -1
  302. app-ng-runtime/core/utils/utils.d.ts +1 -1
  303. app-ng-runtime/mobile/components/device/barcode-scanner/bundles/index.umd.js +2 -1
  304. app-ng-runtime/mobile/components/device/barcode-scanner/esm2022/barcode-scanner.props.mjs +3 -2
  305. app-ng-runtime/mobile/components/device/barcode-scanner/fesm2022/index.mjs +2 -1
  306. app-ng-runtime/mobile/components/device/barcode-scanner/fesm2022/index.mjs.map +1 -1
  307. app-ng-runtime/mobile/components/device/camera/bundles/index.umd.js +2 -1
  308. app-ng-runtime/mobile/components/device/camera/esm2022/camera.props.mjs +3 -2
  309. app-ng-runtime/mobile/components/device/camera/fesm2022/index.mjs +2 -1
  310. app-ng-runtime/mobile/components/device/camera/fesm2022/index.mjs.map +1 -1
  311. app-ng-runtime/package.json +1 -1
  312. app-ng-runtime/runtime/base/bundles/index.umd.js +6 -4
  313. app-ng-runtime/runtime/base/components/app-component/app.component.d.ts +2 -3
  314. app-ng-runtime/runtime/base/esm2022/components/app-component/app.component.mjs +5 -5
  315. app-ng-runtime/runtime/base/esm2022/guards/can-deactivate-page.guard.mjs +5 -4
  316. app-ng-runtime/runtime/base/fesm2022/index.mjs +6 -4
  317. app-ng-runtime/runtime/base/fesm2022/index.mjs.map +1 -1
  318. app-ng-runtime/runtime/base/guards/can-deactivate-page.guard.d.ts +2 -1
  319. app-ng-runtime/scripts/datatable/datatable.js +33 -32
  320. app-ng-runtime/variables/bundles/index.umd.js +34 -16
  321. app-ng-runtime/variables/esm2022/manager/variable/web-socket-variable.manager.mjs +35 -17
  322. app-ng-runtime/variables/fesm2022/index.mjs +34 -16
  323. app-ng-runtime/variables/fesm2022/index.mjs.map +1 -1
  324. app-ng-runtime/variables/manager/variable/web-socket-variable.manager.d.ts +0 -4
@@ -275,11 +275,6 @@ export class BaseComponent {
275
275
  }
276
276
  else if (key === 'class') {
277
277
  switchClass(this.nativeElement, nv, ov);
278
- let result = nv.match(/(\W|^)(h([0-6]))(?=\s|$)/);
279
- if (result) {
280
- setAttr(this.nativeElement, 'role', 'heading');
281
- setAttr(this.nativeElement, 'aria-level', result[3]);
282
- }
283
278
  }
284
279
  else if (key === 'name' || key === 'tabindex') {
285
280
  setAttr(this.nativeElement, key, nv);
@@ -637,4 +632,4 @@ export class BaseComponent {
637
632
  }, {
638
633
  type: Optional
639
634
  }] }, { type: Promise }], null); })();
640
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzZS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8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QYXJlbnQud2lkZ2V0VHlwZSkpIHtcbiAgICAgICAgICAgIHRoaXMuY29udGV4dCA9ICh0aGlzLnZpZXdDb250YWluZXJSZWYgYXMgYW55KS5faG9zdExWaWV3LmZpbmQodCA9PiB0ICYmICEhdC4kaW1wbGljaXQpO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgdGhpcy5jb250ZXh0ID0gKHRoaXMudmlld0NvbnRhaW5lclJlZiBhcyBhbnkpLnBhcmVudEluamVjdG9yLl9sVmlld1s4XTtcbiAgICAgICAgfSovXG5cbiAgICAgICAgLyppZihfdmlld1BhcmVudCAmJiAhaGFzSW1wbGljaXRDb250ZXh0KSB7XG4gICAgICAgICAgICB0aGlzLmNvbnRleHQgPSAodGhpcy52aWV3Q29udGFpbmVyUmVmIGFzIGFueSkuX2hvc3RMVmlld1s4XTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHRoaXMuY29udGV4dCA9IGhhc0ltcGxpY2l0Q29udGV4dDtcbiAgICAgICAgfSovXG4gICAgICAgIC8vIGlmIChbJ3dtLWxpc3QnLCAnd20tbmF2J10uaW5jbHVkZXModGhpcy52aWV3UGFyZW50LndpZGdldFR5cGUpIHx8IFsnd20tY2Fyb3VzZWwtdGVtcGxhdGUnLCAnd20tY2FyZCddLmluY2x1ZGVzKHRoaXMud2lkZ2V0VHlwZSkpIHtcbiAgICAgICAgLy8gICAgIHRoaXMuY29udGV4dCA9ICh0aGlzLnZpZXdDb250YWluZXJSZWYgYXMgYW55KS5faG9zdExWaWV3LmRlYnVnLmNvbnRleHQ7XG4gICAgICAgIC8vIH0gZWxzZSB7XG4gICAgICAgIC8vICAgICB0aGlzLmNvbnRleHQgPSAodGhpcy52aWV3Q29udGFpbmVyUmVmIGFzIGFueSkucGFyZW50SW5qZWN0b3IuX2xWaWV3WzhdO1xuICAgICAgICAvLyB9XG4gICAgICAgIHRoaXMud2lkZ2V0ID0gdGhpcy5jcmVhdGVQcm94eSgpO1xuICA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nR5IGFjY29yZGluZ2x5XG4gICAgICAgIGlmICh0aGlzLnZpZXdQYXJlbnQgIT09IGNvbnRleHQpIHtcbiAgICAgICAgICAgIHRoaXMuY29udGV4dCA9IGNvbnRleHQ7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICB0aGlzLmNvbnRleHQgPSB7fTtcbiAgICAgICAgfVxuXG4gICAgICAgIGlmIChwYXJlbnRDb250ZXh0cykge1xuICAgICAgICAgICAgbGV0IHBhcmVudENvbnRleHRPYmogPSB7fTtcbiAgICAgICAgICAgIGlmIChpc0FycmF5KHBhcmVudENvbnRleHRzKSkge1xuICAgICAgICAgICAgICAgIGZvckVhY2gocGFyZW50Q29udGV4dHMsIChjb250ZXh0T2JqKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIE9iamVjdC5hc3NpZ24ocGFyZW50Q29udGV4dE9iaiwgY29udGV4dE9iaik7XG4gICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIHBhcmVudENvbnRleHRPYmogPSBwYXJlbnRDb250ZXh0cztcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIHRoaXMuY29udGV4dCA9IE9iamVjdC5hc3NpZ24oe30sIHBhcmVudENvbnRleHRPYmosIHRoaXMuY29udGV4dCk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiBzZXQgdGhlIHZhbHVlIG9uIHRoZSBwcm94eSBvYmplY3QgaWUsIHdpZGdldFxuICAgICAqIHNldHRpbmcgdGhlIHByb3BlcnR5IG9uIHRoZSBwcm94eSB3aWxsIGludm9rZSB0aGUgY2hhbmdlIGxpc3RlbmVyc1xuICAgICAqIEBwYXJhbSB7c3RyaW5nfSBrZXlcbiAgICAgKiBAcGFyYW0gdmFsdWVcbiAgICAgKi9cbiAgICBwdWJsaWMgc2V0V2lkZ2V0UHJvcGVydHkoa2V5OiBzdHJpbmcsIHZhbHVlOiBhbnkpIHtc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ZXNcbiAgICAgKiBAcHJpdmF0ZVxuICAgICAqIF90Tm9kZS5hdHRycyBhdHRyaWJ1dGVzIGFyZSBzdG9yZWQgaW4gYXJyYXkoZXZlbiBpbmRleDoga2V5LCBvZGQgaW5kZXg6IHZhbHVlKVxuICAgICAqL1xuICAgIHByaXZhdGUgZ2V0QXR0cmlidXRlcygpIHtcbiAgICAgICAgbGV0IF90Tm9kZUF0dHJzID0gKHRoaXMuaW5qIGFzIGFueSkuX3ROb2RlLmF0dHJzLCBhY3R1YWxBdHRycyA9IEFycmF5LmZyb20odGhpcy5uYXRpdmVFbGVtZW50LmF0dHJpYnV0ZXMpLm1hcChhdHRyID0+IGF0dHIubmFtZSk7XG4gICAgICAgIGlmKF90Tm9kZUF0dHJzID09PSBudWxsKSB7XG4gICAgICAgICAgICByZXR1cm4gYWN0dWFsQXR0cnMuc29ydCgpO1xuICAgICAgICB9XG4gICAgICAgIGZvckVhY2goX3ROb2RlQXR0cnMsIChhdHRyLCBpOiBhbnkpID0+IHtcbiAgICAgICAgICAgIGlmICh0eXBlb2YgYXR0ciA9PT0gJ251bWJlcicpIHtcbiAgICAgICAgICAgICAgICByZXR1cm4gZmFsc2U7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBpZih0eXBlb2YgYXR0ciA9PT0gJ3N0cmluZycgJiYgaSAlIDIgPT0gMCkge1xuICAgICAgICAgICAgICAgIGxldCBsb3dlckNhc2VBdHRyID0gYXR0ci50b0xvd2VyQ2FzZSgpO1xuICAgICAgICAgICAgICAgIGlmIChhY3R1YWxBdHRycy5pbmNsdWRlcyhsb3dlckNhc2VBdHRyKSkge1xuICAgICAgICAgICAgICAgICAgICBsZXQgaW5kZXggPSBhY3R1YWxBdHRycy5pbmRleE9mKGxvd2VyQ2FzZUF0dHIpXG4gICAgICAgICAgICAgICAgICAgIGFjdHVhbEF0dHJzW2luZGV4XSA9IGF0dHI7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB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dGlsbCB0aGUgcHJvbWlzZSBpcyByZXNvbHZlZCB0byBwcm9jZWVkIHdpdGggdGhlIHdpZGdldCBpbml0aWFsaXphdGlvblxuICAgICAgICBpZiAoIWluaXRQcm9taXNlKSB7XG4gICAgICAgICAgICB0aGlzLmluaXRXaWRnZXQoKTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHRoaXMuZGVsYXllZEluaXQgPSB0cnVlO1xuICAgICAgICAgICAgaW5pdFByb21pc2UudGhlbigoKSA9PiB7XG4gICAgICAgICAgICAgICAgdGhpcy5pbml0V2lkZ2V0KCk7XG4gICAgICAgICAgICAgICAgdGhpcy5zZXRJbml0UHJvcHMoKTtcbiAgICAgICAgICAgIH0pO1xuICAgICAgICB9XG4gICAgICAgIGlmKGV4cGxpY2l0Q29udGV4dCkge1xuICAgICAgICAgICAgZXh0ZW5kKHRoaXMuY29udGV4dCwgZXhwbGljaXRDb250ZXh0KTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIHB1YmxpYyBnZXROYXRpdmVFbGVtZW50KCk6IEhUTUxFbGVtZW50IHtcbiAgICAgICAgcmV0dXJuIHRoaXMubmF0aXZlRWxlbWVudDtcbiAgICB9XG5cbiAgICBwdWJsaWMgZ2V0V2lkZ2V0VHlwZSgpOiBzdHJpbmcge1xuICAgICAgICByZXR1cm4gdGhpcy53aWRnZXRUeXBlO1xuICAgIH1cblxuICAgIHB1YmxpYyBnZXRXaWRnZXRTdWJUeXBlKCk6IHN0cmluZyB7XG4gICAgICAgIHJldHVybiB0aGlzLndpZGdldFN1YlR5cGU7XG4gICAgfVxuXG4gICAgcHVibGljIGdldFdpZGdldCgpOiBhbnkge1xuICAgICAgICByZXR1cm4gdGhpcy53aWRnZXQ7XG4gICAgfVxuXG4gICAgcHVibGljIHNldFByb3BlcnR5KHByb3BOYW1lLCBwcm9wVmFsdWUpIHtcbiAgICAgICAgdGhpcy53aWRnZXRbcHJvcE5hbWVdID0gcHJvcFZhbHVlO1xuICA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pcy5pbmouZ2V0KENvbnRleHQsIHt9KTtcblxuICAgICAgICAvLyBhc3NpZ24gdGhlIGNvbnRleHQgcHJvcGVydHkgYWNjb3JkaW5nbHlcbiAgICAgICAgaWYgKHRoaXMudmlld1BhcmVudCAhPT0gY29udGV4dCkge1xuICAgICAgICAgICAgdGhpcy5jb250ZXh0ID0gY29udGV4dDtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHRoaXMuY29udGV4dCA9IHt9O1xuICAgICAgICB9XG5cbiAgICAgICAgaWYgKHBhcmVudENvbnRleHRzKSB7XG4gICAgICAgICAgICBsZXQgcGFyZW50Q29udGV4dE9iaiA9IHt9O1xuICAgICAgICAgICAgaWYgKGlzQXJyYXkocGFyZW50Q29udGV4dHMpKSB7XG4gICAgICAgICAgICAgICAgZm9yRWFjaChwYXJlbnRDb250ZXh0cywgKGNvbnRleHRPYmopID0+IHtcbiAgICAgICAgICAgICAgICAgICAgT2JqZWN0LmFzc2lnbihwYXJlbnRDb250ZXh0T2JqLCBjb250ZXh0T2JqKTtcbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICAgICAgcGFyZW50Q29udGV4dE9iaiA9IHBhcmVudENvbnRleHRzO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgdGhpcy5jb250ZXh0ID0gT2JqZWN0LmFzc2lnbih7fSwgcGFyZW50Q29udGV4dE9iaiwgdGhpcy5jb250ZXh0KTtcbiAgICAgICAgfVxuICAgIH1cblxuICAgIC8qKlxuICAgICAqIHNldCB0aGUgdmFsdWUgb24gdGhlIHByb3h5IG9iamVjdCBpZSwgd2lkZ2V0XG4gICAgICogc2V0dGluZyB0aGUgcHJvcGVydHkgb24gdGhlIHByb3h5IHdpbGwgaW52b2tlIHRoZSBjaGFuZ2UgbGlzdGVuZXJzXG4gICAgICogQHBhcmFtIHtzdHJpbmd9IGtleVxuICAgICAqIEBwYXJhbSB2YWx1ZVxuICAg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3cgcHJvcGVydHkgY29tcG9uZW50IGlzIHNob3duL2hpZGRlblxuICAgICAqXG4gICAgICogQHBhcmFtIHtzdHJpbmd9IGtleVxuICAgICAqIEBwYXJhbSBudlxuICAgICAqIEBwYXJhbSBvdlxuICAgICAqL1xuICAgIHByb3RlY3RlZCBvblByb3BlcnR5Q2hhbmdlKGtleTogc3RyaW5nLCBudjogYW55LCBvdj86IGFueSkge1xuICAgICAgICBpZiAoa2V5ID09PSAnc2hvdycpIHtcbiAgICAgICAgICAgIHRoaXMubmF0aXZlRWxlbWVudC5oaWRkZW4gPSAhbnY7XG4gICAgICAgIH0gZWxzZSBpZiAoa2V5ID09PSAnaGludCcpIHtcbiAgICAgICAgICAgIGlmICghaXNNb2JpbGVBcHAoKSkge1xuICAgICAgICAgICAgICAgIHNldEF0dHIodGhpcy5uYXRpdmVFbGVtZW50LCAndGl0bGUnLCBudik7XG4gICAgICAgICAgICB9XG4gICAgICAgIH0gZWxzZSBpZiAoa2V5ID09PSAnY2xhc3MnKSB7XG4gICAgICAgICAgICBzd2l0Y2hDbGFzcyh0aGlzLm5hdGl2ZUVsZW1lbnQsIG52LCBvdik7XG4gICAgICAgIH0gZWxzZSBpZiAoa2V5ID09PSAnbmFtZScgfHwga2V5ID09PSAndGFiaW5kZXgnKSB7XG4gICAgICAgICAgICBzZXRBdHRyKHRoaXMubmF0aXZlRWxlbWVudCwga2V5LCBudik7XG4gICAgICAgICAgICBpZiAoa2V5ID09PSAnbmFtZScgJiYgbnYpIHtcbiAgICAgICAgICAgICAgICByZW5hbWVXaWRnZXQodGhpcy52aWV3UGFyZW50LCB0aGlzLndpZGdldCwgbnYsIG92KTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSBlbHNlIGlmIChrZXkgPT09ICdjb25kaXRpb25hbGNsYXNzJykge1xuICAgICAgICAgICAgLy8gdXBkYXRlIGNsYXNzZXMgaWYgb2xkIGFuZCBudiB2YWx1ZSBhcmUgZGlmZmVyZW50XG4gICAgICAgICA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IHByb2Nlc3NFdmVudEF0dHIoZXZlbnROYW1lOiBzdHJpbmcsIGV4cHI6IHN0cmluZywgbWV0YT86IHN0cmluZykge1xuICAgICAgICBjb25zdCBmbiA9ICRwYXJzZUV2ZW50KGV4cHIpO1xuICAgICAgICBjb25zdCBsb2NhbHMgPSB0aGlzLmNvbnRleHQ7XG4gICAgICAgIGxvY2Fscy53aWRnZXQgPSB0aGlzLndpZGdldDtcbiAgICAgICAgY29uc3QgYm91bmRGbiA9IGZuLmJpbmQodW5kZWZpbmVkLCB0aGlzLnZpZXdQYXJlbnQsIGxvY2Fscyk7XG5cbiAgICAgICAgY29uc3QgZXZlbnRDYWxsYmFjayA9ICgpID0+IHtcbiAgICAgICAgICAgIGxldCBib3VuZEZuVmFsO1xuICAgICAgICAgICAgJGludm9rZVdhdGNoZXJzKHRydWUpO1xuICAgICAgICAgICAgdHJ5IHtcbiAgICAgICAgICAgICAgICBsb2NhbHMuJGV2ZW50ID0gbG9jYWxzLiRldmVudCB8fCBuZXcgd2luZG93LkN1c3RvbUV2ZW50KGV2ZW50TmFtZSk7XG4gICAgICAgICAgICAgICAgLy8gSWYgdGhlIGV2ZW50IGlzIGJvdW5kIGRpcmVjdGx5IHRvIHRoZSB2YXJpYWJsZSB0aGVuIHdlIG5lZWQgdG8gaW50ZXJuYWxseSBoYW5kbGVcbiAgICAgICAgICAgICAgICAvLyB0aGUgcHJvbWlzZSByZXR1cm5lZCBieSB0aGUgdmFyaWFibGUgY2FsbC5cbiAgICAgICAgICAgICAgICBib3VuZEZuVmFsID0gYm91bmRGbigpO1xuICAgICAgICAgICAgICAgIGlmIChib3VuZEZuVmFsIGluc3RhbmNlb2YgUHJvbWlzZSkge1xuICAgICAgICAgICAgICAgICAgICBib3VuZEZuVmFsLnRoZW4oIHJlc3BvbnNlID0+IHJlc3BvbnNlLCBlcnIgPT4gZXJyKTtcbiAgICAgICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgICAgICByZXR1cm4gY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WN0ZWQgcHJvY2Vzc0JpbmRBdHRyKHByb3BOYW1lOiBzdHJpbmcsIGV4cHI6IHN0cmluZykge1xuXG4gICAgICAgIHRoaXMuaW5pdFN0YXRlLmRlbGV0ZShwcm9wTmFtZSk7XG4gICAgICAgIHRoaXMucmVnaXN0ZXJEZXN0cm95TGlzdGVuZXIoXG4gICAgICAgICAgICAkd2F0Y2goXG4gICAgICAgICAgICAgICAgZXhwcixcbiAgICAgICAgICAgICAgICB0aGlzLnZpZXdQYXJlbnQsXG4gICAgICAgICAgICAgICAgdGhpcy5jb250ZXh0LFxuICAgICAgICAgICAgICAgIG52ID0+IHRoaXMud2lkZ2V0W3Byb3BOYW1lXSA9IG52LFxuICAgICAgICAgICAgICAgIGdldFdhdGNoSWRlbnRpZmllcih0aGlzLndpZGdldElkLCBwcm9wTmFtZSksXG4gICAgICAgICAgICAgICAgcHJvcE5hbWUgPT09ICdkYXRhc291cmNlJyxcbiAgICAgICAgICAgICAgICB0aGlzLndpZGdldFByb3BzLmdldChwcm9wTmFtZSksXG4gICAgICAgICAgICAgICAgKCkgPT4gdGhpcy5pc011dGVkXG4gICAgICAgICAgICApXG4gICAgICAgICk7XG4gICAgfVxuXG4gICAgLyoqXG4gICAgICogUmVtb3ZlIHdhdGNoIG9uIHRoZSBib3VuZCBwcm9wZXJ0eVxuICAgICAqL1xuICAgIHByb3RlY3RlZCByZW1vdmVQcm9wZXJ0eUJpbmRpbmcocHJvcE5hbWU6IHN0cmluZykge1xuICAgICAgICAkdW53YXRjaChnZXRXYXRjaElkZW50aWZpZXIodGhpcy53aWRnZXRJZCwgcHJvcE5hbWUpKTtcbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiBpbnZva2UgdGhlIGV2ZW50IGNhbGxiYWNrIG1ldGhvZFxuICAgICAqIEBwYXJhbSB7c3RyaW5nfSBldmVudE5hbWVcbiAgICAgKiBAcGFyYW0gZXh0cmFMb2NhbHNcbiAgICAgKi9cbiAgICBwdWJsaWMgaW52b2tl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JheS5mcm9tKHRoaXMubmF0aXZlRWxlbWVudC5hdHRyaWJ1dGVzKS5tYXAoYXR0ciA9PiBhdHRyLm5hbWUpO1xuICAgICAgICBpZihfdE5vZGVBdHRycyA9PT0gbnVsbCkge1xuICAgICAgICAgICAgcmV0dXJuIGFjdHVhbEF0dHJzLnNvcnQoKTtcbiAgICAgICAgfVxuICAgICAgICBmb3JFYWNoKF90Tm9kZUF0dHJzLCAoYXR0ciwgaTogYW55KSA9PiB7XG4gICAgICAgICAgICBpZiAodHlwZW9mIGF0dHIgPT09ICdudW1iZXInKSB7XG4gICAgICAgICAgICAgICAgcmV0dXJuIGZhbHNlO1xuICAgICAgICAgICAgfVxuICAgICAgICAgICAgaWYodHlwZW9mIGF0dHIgPT09ICdzdHJpbmcnICYmIGkgJSAyID09IDApIHtcbiAgICAgICAgICAgICAgICBsZXQgbG93ZXJDYXNlQXR0ciA9IGF0dHIudG9Mb3dlckNhc2UoKTtcbiAgICAgICAgICAgICAgICBpZiAoYWN0dWFsQXR0cnMuaW5jbHVkZXMobG93ZXJDYXNlQXR0cikpIHtcbiAgICAgICAgICAgICAgICAgICAgbGV0IGluZGV4ID0gYWN0dWFsQXR0cnMuaW5kZXhPZihsb3dlckNhc2VBdHRyKVxuICAgICAgICAgICAgICAgICAgICBhY3R1YWxBdHRyc1tpbmRleF0gPSBhdHRyO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH1cbiAgICAgICAgfSk7XG5cbiAgICAgICAgLypcbiAgICAgICAgU29ydGluZyBhdHRyaWJ1dGVzIGFzIHByb3BlcnRpZXMgbGlrZSBwbGFjZWhvbGRlciBpcyBub3Qgd29ya2luZyB3aGVuIGl0IGlzIGJvdW5kLlxuICAgICAgICBwbGFjZWhvbGRlciBhbmQgcGxhY2Vob2xkZXIuYmluZCB0d28gcHJvcGVydGllcyBhcmUgY29taW5nIGluIEFycmF5LlxuICAgICAgICBXaGVuIGFycmF5IGlzIG5vdCBzb3J0ZWQsIGluaX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gfVxufVxuIl19
@@ -1155,11 +1155,6 @@ class BaseComponent {
1155
1155
  }
1156
1156
  else if (key === 'class') {
1157
1157
  switchClass(this.nativeElement, nv, ov);
1158
- let result = nv.match(/(\W|^)(h([0-6]))(?=\s|$)/);
1159
- if (result) {
1160
- setAttr(this.nativeElement, 'role', 'heading');
1161
- setAttr(this.nativeElement, 'aria-level', result[3]);
1162
- }
1163
1158
  }
1164
1159
  else if (key === 'name' || key === 'tabindex') {
1165
1160
  setAttr(this.nativeElement, key, nv);
@@ -2747,7 +2742,7 @@ class FileIconClassPipe {
2747
2742
  class StateClassPipe {
2748
2743
  transform(state) {
2749
2744
  const stateClassMap = {
2750
- 'success': 'wi wi-done text-success',
2745
+ 'success': 'wi wi-check-circle text-success',
2751
2746
  'error': 'wi wi-error text-danger'
2752
2747
  };
2753
2748
  return stateClassMap[state.toLowerCase()];
@@ -4252,7 +4247,13 @@ const setHeaderConfig = (headerConfig, config, field, index) => {
4252
4247
  forEach(headerConfig, cols => {
4253
4248
  if (get(cols, 'isGroup')) {
4254
4249
  if (cols.field === field) {
4255
- cols.columns[index] = config;
4250
+ const id = cols.columns?.findIndex((col) => col?.field === config.field);
4251
+ if (id == -1) {
4252
+ cols.columns[index] = config;
4253
+ }
4254
+ else {
4255
+ cols.columns[id] = config;
4256
+ }
4256
4257
  }
4257
4258
  else {
4258
4259
  setHeaderConfig(cols.columns, config, field, index);