@wavemaker/app-ng-runtime 11.8.0-next.24904 → 11.8.0-next.27301

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (346) hide show
  1. app-ng-runtime/build-task/bundles/index.umd.js +5 -5
  2. app-ng-runtime/build-task/esm2022/basic/progress/progress-bar/progress-bar.build.mjs +1 -1
  3. app-ng-runtime/build-task/esm2022/page/page.build.mjs +3 -2
  4. app-ng-runtime/build-task/fesm2022/index.mjs +2 -1
  5. app-ng-runtime/build-task/fesm2022/index.mjs.map +1 -1
  6. app-ng-runtime/components/advanced/carousel/bundles/index.umd.js +5 -5
  7. app-ng-runtime/components/advanced/carousel/esm2022/carousel.animator.mjs +3 -2
  8. app-ng-runtime/components/advanced/carousel/esm2022/carousel.directive.mjs +1 -1
  9. app-ng-runtime/components/advanced/carousel/fesm2022/index.mjs +2 -1
  10. app-ng-runtime/components/advanced/carousel/fesm2022/index.mjs.map +1 -1
  11. app-ng-runtime/components/advanced/login/bundles/index.umd.js +6 -6
  12. app-ng-runtime/components/advanced/login/esm2022/login.component.mjs +4 -3
  13. app-ng-runtime/components/advanced/login/fesm2022/index.mjs +3 -2
  14. app-ng-runtime/components/advanced/login/fesm2022/index.mjs.map +1 -1
  15. app-ng-runtime/components/base/bundles/index.umd.js +203 -171
  16. app-ng-runtime/components/base/esm2022/directives/show-in-device.directive.mjs +1 -1
  17. app-ng-runtime/components/base/esm2022/pipes/custom-pipes.mjs +12 -11
  18. app-ng-runtime/components/base/esm2022/pipes/wm-pipe.mjs +3 -2
  19. app-ng-runtime/components/base/esm2022/utils/data-utils.mjs +30 -29
  20. app-ng-runtime/components/base/esm2022/utils/form-utils.mjs +47 -41
  21. app-ng-runtime/components/base/esm2022/utils/live-utils.mjs +8 -7
  22. app-ng-runtime/components/base/esm2022/utils/widget-utils.mjs +28 -27
  23. app-ng-runtime/components/base/esm2022/widgets/common/base/base-container.component.mjs +4 -3
  24. app-ng-runtime/components/base/esm2022/widgets/common/base/base-field-validations.mjs +24 -21
  25. app-ng-runtime/components/base/esm2022/widgets/common/base/base.component.mjs +12 -11
  26. app-ng-runtime/components/base/esm2022/widgets/common/base/dataset-aware-nav.component.mjs +40 -14
  27. app-ng-runtime/components/base/esm2022/widgets/common/base/partial-container.directive.mjs +3 -2
  28. app-ng-runtime/components/base/esm2022/widgets/common/dialog/dialog.service.mjs +3 -2
  29. app-ng-runtime/components/base/esm2022/widgets/common/lazy-load/lazy-load.directive.mjs +1 -1
  30. app-ng-runtime/components/base/esm2022/widgets/common/partial/partial.directive.mjs +3 -2
  31. app-ng-runtime/components/base/esm2022/widgets/common/partial-param/partial-param.directive.mjs +3 -2
  32. app-ng-runtime/components/base/esm2022/widgets/common/smooth-scroll/smooth-scroll.directive.mjs +6 -5
  33. app-ng-runtime/components/base/esm2022/widgets/framework/deviceview.mjs +1 -1
  34. app-ng-runtime/components/base/esm2022/widgets/framework/property-change-handler.mjs +3 -2
  35. app-ng-runtime/components/base/esm2022/widgets/framework/widget-proxy-provider.mjs +4 -3
  36. app-ng-runtime/components/base/fesm2022/index.mjs +206 -173
  37. app-ng-runtime/components/base/fesm2022/index.mjs.map +1 -1
  38. app-ng-runtime/components/base/pipes/custom-pipes.d.ts +1 -1
  39. app-ng-runtime/components/base/utils/data-utils.d.ts +0 -1
  40. app-ng-runtime/components/base/utils/widget-utils.d.ts +2 -2
  41. app-ng-runtime/components/base/widgets/common/base/base-field-validations.d.ts +1 -1
  42. app-ng-runtime/components/base/widgets/common/base/partial-container.directive.d.ts +1 -1
  43. app-ng-runtime/components/basic/default/bundles/index.umd.js +10 -10
  44. app-ng-runtime/components/basic/default/esm2022/label/label.directive.mjs +4 -3
  45. app-ng-runtime/components/basic/default/esm2022/spinner/spinner.component.mjs +6 -5
  46. app-ng-runtime/components/basic/default/fesm2022/index.mjs +7 -6
  47. app-ng-runtime/components/basic/default/fesm2022/index.mjs.map +1 -1
  48. app-ng-runtime/components/basic/progress/bundles/index.umd.js +13 -13
  49. app-ng-runtime/components/basic/progress/esm2022/progress-bar/progress-bar.component.mjs +5 -4
  50. app-ng-runtime/components/basic/progress/esm2022/progress-circle/progress-circle.component.mjs +6 -5
  51. app-ng-runtime/components/basic/progress/esm2022/utils.mjs +3 -3
  52. app-ng-runtime/components/basic/progress/fesm2022/index.mjs +10 -9
  53. app-ng-runtime/components/basic/progress/fesm2022/index.mjs.map +1 -1
  54. app-ng-runtime/components/basic/rich-text-editor/bundles/index.umd.js +15 -10
  55. app-ng-runtime/components/basic/rich-text-editor/esm2022/rich-text-editor.component.mjs +14 -8
  56. app-ng-runtime/components/basic/rich-text-editor/fesm2022/index.mjs +13 -7
  57. app-ng-runtime/components/basic/rich-text-editor/fesm2022/index.mjs.map +1 -1
  58. app-ng-runtime/components/basic/rich-text-editor/rich-text-editor.component.d.ts +2 -2
  59. app-ng-runtime/components/basic/search/bundles/index.umd.js +67 -65
  60. app-ng-runtime/components/basic/search/esm2022/data-provider/data-provider.mjs +1 -1
  61. app-ng-runtime/components/basic/search/esm2022/data-provider/local-data-provider.mjs +26 -23
  62. app-ng-runtime/components/basic/search/esm2022/data-provider/remote-data-provider.mjs +12 -11
  63. app-ng-runtime/components/basic/search/esm2022/search.component.mjs +31 -30
  64. app-ng-runtime/components/basic/search/fesm2022/index.mjs +66 -63
  65. app-ng-runtime/components/basic/search/fesm2022/index.mjs.map +1 -1
  66. app-ng-runtime/components/basic/tree/bundles/index.umd.js +9 -9
  67. app-ng-runtime/components/basic/tree/esm2022/tree.component.mjs +7 -6
  68. app-ng-runtime/components/basic/tree/fesm2022/index.mjs +6 -5
  69. app-ng-runtime/components/basic/tree/fesm2022/index.mjs.map +1 -1
  70. app-ng-runtime/components/chart/bundles/index.umd.js +72 -63
  71. app-ng-runtime/components/chart/chart.component.d.ts +1 -1
  72. app-ng-runtime/components/chart/chart.utils.d.ts +3 -3
  73. app-ng-runtime/components/chart/esm2022/chart.component.mjs +58 -48
  74. app-ng-runtime/components/chart/esm2022/chart.utils.mjs +14 -13
  75. app-ng-runtime/components/chart/fesm2022/index.mjs +69 -59
  76. app-ng-runtime/components/chart/fesm2022/index.mjs.map +1 -1
  77. app-ng-runtime/components/containers/accordion/bundles/index.umd.js +16 -16
  78. app-ng-runtime/components/containers/accordion/esm2022/accordion.directive.mjs +14 -13
  79. app-ng-runtime/components/containers/accordion/fesm2022/index.mjs +13 -12
  80. app-ng-runtime/components/containers/accordion/fesm2022/index.mjs.map +1 -1
  81. app-ng-runtime/components/containers/panel/bundles/index.umd.js +5 -5
  82. app-ng-runtime/components/containers/panel/esm2022/panel.component.mjs +3 -2
  83. app-ng-runtime/components/containers/panel/fesm2022/index.mjs +2 -1
  84. app-ng-runtime/components/containers/panel/fesm2022/index.mjs.map +1 -1
  85. app-ng-runtime/components/containers/panel/panel.component.d.ts +1 -1
  86. app-ng-runtime/components/containers/tabs/bundles/index.umd.js +17 -17
  87. app-ng-runtime/components/containers/tabs/esm2022/tabs.component.mjs +15 -14
  88. app-ng-runtime/components/containers/tabs/fesm2022/index.mjs +14 -13
  89. app-ng-runtime/components/containers/tabs/fesm2022/index.mjs.map +1 -1
  90. app-ng-runtime/components/data/form/bundles/index.umd.js +75 -75
  91. app-ng-runtime/components/data/form/esm2022/form-action/form-action.directive.mjs +3 -2
  92. app-ng-runtime/components/data/form/esm2022/form-field/form-field.directive.mjs +10 -9
  93. app-ng-runtime/components/data/form/esm2022/form.component.mjs +54 -53
  94. app-ng-runtime/components/data/form/esm2022/live-filter/live-filter.directive.mjs +3 -2
  95. app-ng-runtime/components/data/form/esm2022/live-form/live-form.directive.mjs +11 -10
  96. app-ng-runtime/components/data/form/fesm2022/index.mjs +77 -76
  97. app-ng-runtime/components/data/form/fesm2022/index.mjs.map +1 -1
  98. app-ng-runtime/components/data/form/form.component.d.ts +2 -2
  99. app-ng-runtime/components/data/form/live-form/live-form.directive.d.ts +1 -1
  100. app-ng-runtime/components/data/list/bundles/index.umd.js +692 -687
  101. app-ng-runtime/components/data/list/esm2022/list-item.directive.mjs +1 -1
  102. app-ng-runtime/components/data/list/esm2022/list.animator.mjs +5 -3
  103. app-ng-runtime/components/data/list/esm2022/list.component.mjs +687 -682
  104. app-ng-runtime/components/data/list/fesm2022/index.mjs +690 -684
  105. app-ng-runtime/components/data/list/fesm2022/index.mjs.map +1 -1
  106. app-ng-runtime/components/data/list/list.component.d.ts +53 -53
  107. app-ng-runtime/components/data/live-table/bundles/index.umd.js +1 -1
  108. app-ng-runtime/components/data/live-table/esm2022/live-table.component.mjs +2 -2
  109. app-ng-runtime/components/data/live-table/fesm2022/index.mjs +1 -1
  110. app-ng-runtime/components/data/live-table/fesm2022/index.mjs.map +1 -1
  111. app-ng-runtime/components/data/pagination/bundles/index.umd.js +14 -14
  112. app-ng-runtime/components/data/pagination/esm2022/pagination.component.mjs +12 -11
  113. app-ng-runtime/components/data/pagination/fesm2022/index.mjs +11 -10
  114. app-ng-runtime/components/data/pagination/fesm2022/index.mjs.map +1 -1
  115. app-ng-runtime/components/data/table/bundles/index.umd.js +175 -172
  116. app-ng-runtime/components/data/table/esm2022/table-action/table-action.directive.mjs +3 -2
  117. app-ng-runtime/components/data/table/esm2022/table-column/table-column.directive.mjs +19 -18
  118. app-ng-runtime/components/data/table/esm2022/table-cud.directive.mjs +7 -6
  119. app-ng-runtime/components/data/table/esm2022/table-filter.directive.mjs +53 -55
  120. app-ng-runtime/components/data/table/esm2022/table-row-action/table-row-action.directive.mjs +3 -2
  121. app-ng-runtime/components/data/table/esm2022/table.component.mjs +98 -91
  122. app-ng-runtime/components/data/table/fesm2022/index.mjs +172 -168
  123. app-ng-runtime/components/data/table/fesm2022/index.mjs.map +1 -1
  124. app-ng-runtime/components/data/table/table-column/table-column.directive.d.ts +6 -6
  125. app-ng-runtime/components/data/table/table.component.d.ts +2 -2
  126. app-ng-runtime/components/dialogs/default/bundles/index.umd.js +2 -2
  127. app-ng-runtime/components/dialogs/default/esm2022/base-dialog.mjs +3 -3
  128. app-ng-runtime/components/dialogs/default/esm2022/dialog-body/dialog-body.directive.mjs +1 -1
  129. app-ng-runtime/components/dialogs/default/fesm2022/index.mjs +1 -1
  130. app-ng-runtime/components/dialogs/default/fesm2022/index.mjs.map +1 -1
  131. app-ng-runtime/components/input/calendar/bundles/index.umd.js +33 -31
  132. app-ng-runtime/components/input/calendar/esm2022/calendar.component.mjs +31 -28
  133. app-ng-runtime/components/input/calendar/fesm2022/index.mjs +30 -27
  134. app-ng-runtime/components/input/calendar/fesm2022/index.mjs.map +1 -1
  135. app-ng-runtime/components/input/chips/bundles/index.umd.js +29 -28
  136. app-ng-runtime/components/input/chips/chips.component.d.ts +1 -1
  137. app-ng-runtime/components/input/chips/esm2022/chips.component.mjs +27 -25
  138. app-ng-runtime/components/input/chips/fesm2022/index.mjs +26 -24
  139. app-ng-runtime/components/input/chips/fesm2022/index.mjs.map +1 -1
  140. app-ng-runtime/components/input/default/base-form.component.d.ts +3 -3
  141. app-ng-runtime/components/input/default/bundles/index.umd.js +75 -62
  142. app-ng-runtime/components/input/default/checkbox/checkbox.component.d.ts +1 -0
  143. app-ng-runtime/components/input/default/dataset-aware-form.component.d.ts +4 -4
  144. app-ng-runtime/components/input/default/esm2022/base-form.component.mjs +14 -8
  145. app-ng-runtime/components/input/default/esm2022/caption-position.directive.mjs +3 -2
  146. app-ng-runtime/components/input/default/esm2022/checkbox/checkbox.component.mjs +2 -2
  147. app-ng-runtime/components/input/default/esm2022/checkboxset/checkboxset.component.mjs +6 -4
  148. app-ng-runtime/components/input/default/esm2022/dataset-aware-form.component.mjs +29 -23
  149. app-ng-runtime/components/input/default/esm2022/radioset/radioset.component.mjs +4 -3
  150. app-ng-runtime/components/input/default/esm2022/select/select.component.mjs +4 -3
  151. app-ng-runtime/components/input/default/esm2022/switch/switch.component.mjs +6 -5
  152. app-ng-runtime/components/input/default/esm2022/text/base/base-input.mjs +4 -3
  153. app-ng-runtime/components/input/default/esm2022/text/locale/number-locale.mjs +20 -18
  154. app-ng-runtime/components/input/default/esm2022/text/text/input-text.component.mjs +2 -2
  155. app-ng-runtime/components/input/default/fesm2022/index.mjs +75 -62
  156. app-ng-runtime/components/input/default/fesm2022/index.mjs.map +1 -1
  157. app-ng-runtime/components/input/epoch/base-date-time.component.d.ts +1 -1
  158. app-ng-runtime/components/input/epoch/bundles/index.umd.js +53 -51
  159. app-ng-runtime/components/input/epoch/esm2022/base-date-time.component.mjs +34 -31
  160. app-ng-runtime/components/input/epoch/esm2022/date/date.component.mjs +5 -4
  161. app-ng-runtime/components/input/epoch/esm2022/date-time/date-time-picker.component.mjs +5 -4
  162. app-ng-runtime/components/input/epoch/esm2022/date-time/date-time.component.mjs +7 -6
  163. app-ng-runtime/components/input/epoch/esm2022/picker/picker.component.mjs +1 -1
  164. app-ng-runtime/components/input/epoch/esm2022/time/time.component.mjs +6 -5
  165. app-ng-runtime/components/input/epoch/fesm2022/index.mjs +48 -45
  166. app-ng-runtime/components/input/epoch/fesm2022/index.mjs.map +1 -1
  167. app-ng-runtime/components/input/file-upload/bundles/index.umd.js +15 -15
  168. app-ng-runtime/components/input/file-upload/esm2022/file-upload.component.mjs +13 -12
  169. app-ng-runtime/components/input/file-upload/fesm2022/index.mjs +12 -11
  170. app-ng-runtime/components/input/file-upload/fesm2022/index.mjs.map +1 -1
  171. app-ng-runtime/components/input/rating/bundles/index.umd.js +12 -12
  172. app-ng-runtime/components/input/rating/esm2022/rating.component.mjs +10 -9
  173. app-ng-runtime/components/input/rating/fesm2022/index.mjs +9 -8
  174. app-ng-runtime/components/input/rating/fesm2022/index.mjs.map +1 -1
  175. app-ng-runtime/components/navigation/breadcrumb/bundles/index.umd.js +1 -1
  176. app-ng-runtime/components/navigation/breadcrumb/esm2022/breadcrumb.component.mjs +2 -2
  177. app-ng-runtime/components/navigation/breadcrumb/fesm2022/index.mjs +1 -1
  178. app-ng-runtime/components/navigation/breadcrumb/fesm2022/index.mjs.map +1 -1
  179. app-ng-runtime/components/navigation/menu/bundles/index.umd.js +23 -22
  180. app-ng-runtime/components/navigation/menu/esm2022/menu-adapator.component.mjs +3 -2
  181. app-ng-runtime/components/navigation/menu/esm2022/menu-dropdown-item/menu-dropdown-item.component.mjs +6 -5
  182. app-ng-runtime/components/navigation/menu/esm2022/menu.component.mjs +8 -7
  183. app-ng-runtime/components/navigation/menu/esm2022/nav/nav.component.mjs +10 -8
  184. app-ng-runtime/components/navigation/menu/fesm2022/index.mjs +20 -18
  185. app-ng-runtime/components/navigation/menu/fesm2022/index.mjs.map +1 -1
  186. app-ng-runtime/components/navigation/menu/menu-dropdown-item/menu-dropdown-item.component.d.ts +12 -1
  187. app-ng-runtime/components/navigation/popover/esm2022/popover.component.mjs +1 -1
  188. app-ng-runtime/components/navigation/popover/fesm2022/index.mjs.map +1 -1
  189. app-ng-runtime/components/prefab/bundles/index.umd.js +6 -6
  190. app-ng-runtime/components/prefab/esm2022/prefab-container/prefab-container.directive.mjs +3 -2
  191. app-ng-runtime/components/prefab/esm2022/prefab.directive.mjs +3 -2
  192. app-ng-runtime/components/prefab/fesm2022/index.mjs +3 -2
  193. app-ng-runtime/components/prefab/fesm2022/index.mjs.map +1 -1
  194. app-ng-runtime/core/bundles/index.umd.js +119 -130
  195. app-ng-runtime/core/esm2022/public_api.mjs +2 -2
  196. app-ng-runtime/core/esm2022/services/field-type.service.mjs +3 -2
  197. app-ng-runtime/core/esm2022/services/field-widget.service.mjs +3 -2
  198. app-ng-runtime/core/esm2022/services/pagination.service.mjs +7 -6
  199. app-ng-runtime/core/esm2022/services/state-persistence.service.mjs +17 -16
  200. app-ng-runtime/core/esm2022/services/utils.service.mjs +3 -2
  201. app-ng-runtime/core/esm2022/services/viewport.service.mjs +3 -2
  202. app-ng-runtime/core/esm2022/utils/build-utils.mjs +5 -4
  203. app-ng-runtime/core/esm2022/utils/expression-parser.mjs +5 -4
  204. app-ng-runtime/core/esm2022/utils/lru-cache.mjs +3 -2
  205. app-ng-runtime/core/esm2022/utils/utils.mjs +79 -82
  206. app-ng-runtime/core/esm2022/utils/watcher.mjs +9 -7
  207. app-ng-runtime/core/fesm2022/index.mjs +117 -123
  208. app-ng-runtime/core/fesm2022/index.mjs.map +1 -1
  209. app-ng-runtime/core/public_api.d.ts +1 -1
  210. app-ng-runtime/core/services/pagination.service.d.ts +1 -1
  211. app-ng-runtime/core/utils/utils.d.ts +5 -9
  212. app-ng-runtime/http/bundles/index.umd.js +7 -7
  213. app-ng-runtime/http/esm2022/http.service.mjs +5 -4
  214. app-ng-runtime/http/esm2022/wm-http-request.mjs +1 -1
  215. app-ng-runtime/http/esm2022/wm-http-response.mjs +1 -1
  216. app-ng-runtime/http/fesm2022/index.mjs +4 -3
  217. app-ng-runtime/http/fesm2022/index.mjs.map +1 -1
  218. app-ng-runtime/mobile/components/basic/default/bundles/index.umd.js +24 -20
  219. app-ng-runtime/mobile/components/basic/default/esm2022/anchor/anchor.directive.mjs +5 -4
  220. app-ng-runtime/mobile/components/basic/default/esm2022/file-browser/file-browser.component.mjs +12 -8
  221. app-ng-runtime/mobile/components/basic/default/esm2022/file-browser/file-selector.service.mjs +5 -3
  222. app-ng-runtime/mobile/components/basic/default/esm2022/image-cache/image-cache.directive.mjs +3 -2
  223. app-ng-runtime/mobile/components/basic/default/esm2022/process-manager/process-manager.component.mjs +5 -4
  224. app-ng-runtime/mobile/components/basic/default/fesm2022/index.mjs +21 -16
  225. app-ng-runtime/mobile/components/basic/default/fesm2022/index.mjs.map +1 -1
  226. app-ng-runtime/mobile/components/containers/segmented-control/bundles/index.umd.js +7 -7
  227. app-ng-runtime/mobile/components/containers/segmented-control/esm2022/segment-content/segment-content.component.mjs +2 -2
  228. app-ng-runtime/mobile/components/containers/segmented-control/esm2022/segmented-control.component.mjs +4 -3
  229. app-ng-runtime/mobile/components/containers/segmented-control/fesm2022/index.mjs +4 -3
  230. app-ng-runtime/mobile/components/containers/segmented-control/fesm2022/index.mjs.map +1 -1
  231. app-ng-runtime/mobile/components/data/media-list/bundles/index.umd.js +8 -8
  232. app-ng-runtime/mobile/components/data/media-list/esm2022/media-list.component.mjs +4 -3
  233. app-ng-runtime/mobile/components/data/media-list/fesm2022/index.mjs +3 -2
  234. app-ng-runtime/mobile/components/data/media-list/fesm2022/index.mjs.map +1 -1
  235. app-ng-runtime/mobile/components/page/default/bundles/index.umd.js +5 -5
  236. app-ng-runtime/mobile/components/page/default/esm2022/page.directive.mjs +3 -2
  237. app-ng-runtime/mobile/components/page/default/fesm2022/index.mjs +2 -1
  238. app-ng-runtime/mobile/components/page/default/fesm2022/index.mjs.map +1 -1
  239. app-ng-runtime/mobile/components/page/tab-bar/bundles/index.umd.js +9 -9
  240. app-ng-runtime/mobile/components/page/tab-bar/esm2022/tabbar.component.mjs +7 -6
  241. app-ng-runtime/mobile/components/page/tab-bar/fesm2022/index.mjs +6 -5
  242. app-ng-runtime/mobile/components/page/tab-bar/fesm2022/index.mjs.map +1 -1
  243. app-ng-runtime/mobile/core/bundles/index.umd.js +25 -25
  244. app-ng-runtime/mobile/core/esm2022/services/device-file-download.service.mjs +5 -4
  245. app-ng-runtime/mobile/core/esm2022/services/device-file-opener.service.mjs +3 -2
  246. app-ng-runtime/mobile/core/esm2022/services/device-file-upload.service.mjs +4 -3
  247. app-ng-runtime/mobile/core/esm2022/services/device-file.service.mjs +6 -5
  248. app-ng-runtime/mobile/core/esm2022/services/device.service.mjs +3 -2
  249. app-ng-runtime/mobile/core/esm2022/services/ext-app-message.service.mjs +5 -4
  250. app-ng-runtime/mobile/core/esm2022/services/network.service.mjs +9 -8
  251. app-ng-runtime/mobile/core/fesm2022/index.mjs +22 -21
  252. app-ng-runtime/mobile/core/fesm2022/index.mjs.map +1 -1
  253. app-ng-runtime/mobile/core/services/ext-app-message.service.d.ts +1 -1
  254. app-ng-runtime/mobile/core/services/network.service.d.ts +7 -1
  255. app-ng-runtime/mobile/offline/bundles/index.umd.js +161 -144
  256. app-ng-runtime/mobile/offline/esm2022/models/local-db-store.mjs +23 -21
  257. app-ng-runtime/mobile/offline/esm2022/services/change-log.service.mjs +7 -6
  258. app-ng-runtime/mobile/offline/esm2022/services/local-db-data-pull.service.mjs +37 -35
  259. app-ng-runtime/mobile/offline/esm2022/services/local-db-management.service.mjs +54 -45
  260. app-ng-runtime/mobile/offline/esm2022/services/local-db.service.mjs +5 -4
  261. app-ng-runtime/mobile/offline/esm2022/services/workers/error-blocker.mjs +4 -3
  262. app-ng-runtime/mobile/offline/esm2022/services/workers/file-handler.mjs +18 -13
  263. app-ng-runtime/mobile/offline/esm2022/services/workers/multi-part-param-transformer.mjs +9 -5
  264. app-ng-runtime/mobile/offline/esm2022/utils/live-variable.utils.mjs +12 -11
  265. app-ng-runtime/mobile/offline/esm2022/utils/query-executor.utils.mjs +5 -4
  266. app-ng-runtime/mobile/offline/esm2022/utils/security.utils.mjs +3 -2
  267. app-ng-runtime/mobile/offline/fesm2022/index.mjs +156 -138
  268. app-ng-runtime/mobile/offline/fesm2022/index.mjs.map +1 -1
  269. app-ng-runtime/mobile/runtime/bundles/index.umd.js +11 -8
  270. app-ng-runtime/mobile/runtime/esm2022/mobile-runtime.module.mjs +3 -2
  271. app-ng-runtime/mobile/runtime/esm2022/services/cookie.service.mjs +6 -2
  272. app-ng-runtime/mobile/runtime/esm2022/services/http-interceptor.service.mjs +4 -3
  273. app-ng-runtime/mobile/runtime/fesm2022/index.mjs +8 -4
  274. app-ng-runtime/mobile/runtime/fesm2022/index.mjs.map +1 -1
  275. app-ng-runtime/mobile/runtime-dynamic/bundles/index.umd.js +2 -2
  276. app-ng-runtime/mobile/runtime-dynamic/esm2022/services/live-sync.service.mjs +3 -3
  277. app-ng-runtime/mobile/runtime-dynamic/fesm2022/index.mjs +2 -2
  278. app-ng-runtime/mobile/runtime-dynamic/fesm2022/index.mjs.map +1 -1
  279. app-ng-runtime/mobile/variables/bundles/index.umd.js +23 -16
  280. app-ng-runtime/mobile/variables/esm2022/services/camera-service.mjs +2 -2
  281. app-ng-runtime/mobile/variables/esm2022/services/datasync-service.mjs +10 -9
  282. app-ng-runtime/mobile/variables/esm2022/services/file-service.mjs +11 -3
  283. app-ng-runtime/mobile/variables/fesm2022/index.mjs +19 -11
  284. app-ng-runtime/mobile/variables/fesm2022/index.mjs.map +1 -1
  285. app-ng-runtime/oAuth/bundles/index.umd.js +12 -12
  286. app-ng-runtime/oAuth/esm2022/oAuth.service.mjs +4 -3
  287. app-ng-runtime/oAuth/esm2022/oAuth.utils.mjs +8 -7
  288. app-ng-runtime/oAuth/fesm2022/index.mjs +9 -8
  289. app-ng-runtime/oAuth/fesm2022/index.mjs.map +1 -1
  290. app-ng-runtime/package.json +1 -1
  291. app-ng-runtime/runtime/base/bundles/index.umd.js +121 -120
  292. app-ng-runtime/runtime/base/esm2022/components/base-layout.component.mjs +4 -3
  293. app-ng-runtime/runtime/base/esm2022/components/base-page.component.mjs +14 -13
  294. app-ng-runtime/runtime/base/esm2022/components/base-partial.component.mjs +13 -12
  295. app-ng-runtime/runtime/base/esm2022/components/base-prefab.component.mjs +15 -14
  296. app-ng-runtime/runtime/base/esm2022/components/base-spa-page.component.mjs +14 -13
  297. app-ng-runtime/runtime/base/esm2022/components/custom-toaster.component.mjs +6 -5
  298. app-ng-runtime/runtime/base/esm2022/directives/accessroles.directive.mjs +11 -10
  299. app-ng-runtime/runtime/base/esm2022/guards/page-not-found.guard.mjs +1 -1
  300. app-ng-runtime/runtime/base/esm2022/guards/role.guard.mjs +3 -2
  301. app-ng-runtime/runtime/base/esm2022/services/app-defaults.service.mjs +1 -1
  302. app-ng-runtime/runtime/base/esm2022/services/app.manager.service.mjs +17 -14
  303. app-ng-runtime/runtime/base/esm2022/services/app.service.mjs +7 -6
  304. app-ng-runtime/runtime/base/esm2022/services/dynamic-component-ref-provider.service.mjs +3 -2
  305. app-ng-runtime/runtime/base/esm2022/services/http-interceptor.services.mjs +4 -3
  306. app-ng-runtime/runtime/base/esm2022/services/i18n.service.mjs +12 -10
  307. app-ng-runtime/runtime/base/esm2022/services/navigation.service.mjs +8 -7
  308. app-ng-runtime/runtime/base/esm2022/services/prefab-manager.service.mjs +3 -2
  309. app-ng-runtime/runtime/base/esm2022/services/spinner.service.mjs +7 -6
  310. app-ng-runtime/runtime/base/esm2022/services/toaster.service.mjs +6 -5
  311. app-ng-runtime/runtime/base/esm2022/util/wm-route-reuse-strategy.mjs +6 -7
  312. app-ng-runtime/runtime/base/fesm2022/index.mjs +119 -117
  313. app-ng-runtime/runtime/base/fesm2022/index.mjs.map +1 -1
  314. app-ng-runtime/runtime/base/services/i18n.service.d.ts +1 -1
  315. app-ng-runtime/runtime/dynamic/bundles/index.umd.js +7 -7
  316. app-ng-runtime/runtime/dynamic/esm2022/app/services/component-ref-provider.service.mjs +4 -3
  317. app-ng-runtime/runtime/dynamic/esm2022/main.mjs +3 -2
  318. app-ng-runtime/runtime/dynamic/fesm2022/index.mjs +4 -3
  319. app-ng-runtime/runtime/dynamic/fesm2022/index.mjs.map +1 -1
  320. app-ng-runtime/scripts/jquery-ui/ui/widgets/droppable.js +7 -7
  321. app-ng-runtime/scripts/jquery-ui/ui/widgets/resizable.js +13 -10
  322. app-ng-runtime/scripts/jquery-ui/ui/widgets/sortable.js +7 -7
  323. app-ng-runtime/security/bundles/index.umd.js +14 -14
  324. app-ng-runtime/security/esm2022/security.service.mjs +12 -11
  325. app-ng-runtime/security/fesm2022/index.mjs +11 -10
  326. app-ng-runtime/security/fesm2022/index.mjs.map +1 -1
  327. app-ng-runtime/security/security.service.d.ts +1 -1
  328. app-ng-runtime/swipey/esm2022/swipe.animation.mjs +1 -1
  329. app-ng-runtime/swipey/fesm2022/index.mjs.map +1 -1
  330. app-ng-runtime/transpiler/bundles/index.umd.js +10 -9
  331. app-ng-runtime/transpiler/esm2022/build.mjs +8 -6
  332. app-ng-runtime/transpiler/fesm2022/index.mjs +7 -5
  333. app-ng-runtime/transpiler/fesm2022/index.mjs.map +1 -1
  334. app-ng-runtime/variables/bundles/index.umd.js +155 -145
  335. app-ng-runtime/variables/esm2022/manager/action/login-action.manager.mjs +15 -14
  336. app-ng-runtime/variables/esm2022/manager/action/notification-action.manager.mjs +9 -8
  337. app-ng-runtime/variables/esm2022/manager/variable/base-variable.manager.mjs +3 -2
  338. app-ng-runtime/variables/esm2022/manager/variable/web-socket-variable.manager.mjs +11 -10
  339. app-ng-runtime/variables/esm2022/service/variables.service.mjs +7 -6
  340. app-ng-runtime/variables/esm2022/util/action/navigation-action.utils.mjs +4 -4
  341. app-ng-runtime/variables/esm2022/util/variable/pagination.utils.mjs +30 -23
  342. app-ng-runtime/variables/esm2022/util/variable/service-variable.utils.mjs +29 -28
  343. app-ng-runtime/variables/esm2022/util/variable/variables.utils.mjs +75 -70
  344. app-ng-runtime/variables/fesm2022/index.mjs +169 -158
  345. app-ng-runtime/variables/fesm2022/index.mjs.map +1 -1
  346. app-ng-runtime/variables/util/variable/service-variable.utils.d.ts +1 -1
@@ -12,10 +12,11 @@ import { DesignDialogModule } from '@wm/components/dialogs/design-dialog';
12
12
  import * as i1 from '@angular/forms';
13
13
  import { FormArray, NG_VALUE_ACCESSOR } from '@angular/forms';
14
14
  import * as i1$1 from '@wm/core';
15
- import { isMobileApp, removeClass, isDefined, debounce, removeAttr, DataSource, $appDigest, isElementInViewport, scrollToElement, getFiles, DataType, getClonedObject, $invokeWatchers, getValidJSON, extendProto, $parseEvent, FormWidgetType, noop as noop$1, isMobile, isDateTimeType, addForIdAttributes, triggerFn, isEmptyObject, getValidDateObject } from '@wm/core';
15
+ import { isMobileApp, removeClass, isDefined, debounce as debounce$1, removeAttr, DataSource, $appDigest, isElementInViewport, scrollToElement, getFiles, DataType, getClonedObject, $invokeWatchers, getValidJSON, extendProto, $parseEvent, FormWidgetType, noop as noop$1, isMobile, isDateTimeType, addForIdAttributes, triggerFn, isEmptyObject, getValidDateObject } from '@wm/core';
16
16
  import * as i4 from '@wm/components/prefab';
17
17
  import * as i3 from '@wm/components/data/list';
18
18
  import { ListComponent } from '@wm/components/data/list';
19
+ import { forEach, debounce, get, keys, last, isEmpty, isEqual, isArray, find, set, filter, includes, split, some, isUndefined, findIndex, isObject, join, isString, map, fromPairs } from 'lodash-es';
19
20
  import { TableComponent } from '@wm/components/data/table';
20
21
  import { debounceTime } from 'rxjs/operators';
21
22
  import * as i1$2 from '@wm/components/data/live-table';
@@ -255,7 +256,7 @@ const getWidgetConfig = (isLiveForm, isLiveFilter, role) => {
255
256
  // Generate the form field with given field definition. Add a grid column wrapper around the form field.
256
257
  const setMarkupForFormField = (field, columnWidth) => {
257
258
  let propsTmpl = '';
258
- _.forEach(field, (value, key) => {
259
+ forEach(field, (value, key) => {
259
260
  propsTmpl = `${propsTmpl} ${key}="${value}"`;
260
261
  });
261
262
  return `<wm-gridcolumn columnwidth="${columnWidth}">
@@ -297,7 +298,7 @@ const setTouchedState = (self, ngForm, fieldName) => {
297
298
  return;
298
299
  }
299
300
  if (ngForm.controls) {
300
- _.forEach(ngForm.controls, (ctrl, fieldName) => {
301
+ forEach(ngForm.controls, (ctrl, fieldName) => {
301
302
  setTouchedState(self, ctrl, fieldName);
302
303
  });
303
304
  }
@@ -389,9 +390,9 @@ class FormComponent extends StylableComponent {
389
390
  type: ''
390
391
  };
391
392
  this.primaryKey = [];
392
- this._debouncedUpdateFieldSource = _.debounce(this.updateFieldSource, 350);
393
+ this._debouncedUpdateFieldSource = debounce(this.updateFieldSource, 350);
393
394
  this.validationMessages = [];
394
- this._debouncedSubmitForm = debounce(($event) => {
395
+ this._debouncedSubmitForm = debounce$1(($event) => {
395
396
  // calling submit event in ngZone as change detection is not triggered post the submit callback and actions like notification are not shown
396
397
  this.ngZone.run(() => {
397
398
  this.submitForm($event);
@@ -424,7 +425,7 @@ class FormComponent extends StylableComponent {
424
425
  ngAfterViewInit() {
425
426
  if (this.parentForm && this.parentForm.ngform && this.isParentList) {
426
427
  // setting formArray control on ngform.
427
- if (!_.get(this.parentForm.ngform.controls, this.parentList.name)) {
428
+ if (!get(this.parentForm.ngform.controls, this.parentList.name)) {
428
429
  this.parentForm.ngform.setControl(this.parentList.name, new FormArray([]));
429
430
  }
430
431
  // pushing the ngform to formArray.
@@ -462,10 +463,10 @@ class FormComponent extends StylableComponent {
462
463
  * 5. this means form name change applies only when there is single form (immediate child) inside the parentContainer.
463
464
  */
464
465
  const prefabInnerForm = parentContentEl.find('form').first();
465
- if (_.get(prefabInnerForm[0], 'widget.widgetId') === this.widgetId) {
466
+ if (get(prefabInnerForm[0], 'widget.widgetId') === this.widgetId) {
466
467
  // check whether form inside prefab container is inside the list. If true, do not change the name.
467
468
  if (!prefabInnerForm.isParentList && !prefabInnerForm.siblings('form').length) {
468
- binding = _.get(parentContainer, 'name');
469
+ binding = get(parentContainer, 'name');
469
470
  }
470
471
  }
471
472
  }
@@ -501,16 +502,16 @@ class FormComponent extends StylableComponent {
501
502
  const formEle = this.getNativeElement();
502
503
  const formObjs = formEle.querySelectorAll('.app-form');
503
504
  const validationMsgs = [];
504
- _.forEach(formObjs, e => {
505
+ forEach(formObjs, e => {
505
506
  const formInstance = e.widget;
506
507
  // differentiating the validationMessages prefix based on the formGroupName
507
508
  // as the formName's are same when forms are in list
508
- let formName = _.get(formInstance, 'formGroupName') || formInstance.name;
509
+ let formName = get(formInstance, 'formGroupName') || formInstance.name;
509
510
  if (isDefined(formInstance.formArrayIndex)) {
510
511
  formName = formName + '[' + formInstance.formArrayIndex + ']';
511
512
  }
512
513
  let current = formInstance;
513
- while (_.get(current, 'parentForm')) {
514
+ while (get(current, 'parentForm')) {
514
515
  let parentName = current.parentForm.formGroupName || current.parentForm.name;
515
516
  if (current.parentForm.parentFormArray) {
516
517
  parentName = parentName + '[' + current.parentForm.formArrayIndex + ']';
@@ -533,7 +534,7 @@ class FormComponent extends StylableComponent {
533
534
  if (!formFields) {
534
535
  return;
535
536
  }
536
- _.forEach(controls, (v, k) => {
537
+ forEach(controls, (v, k) => {
537
538
  const field = formFields.find(e => e.key === k);
538
539
  if (!field || (validateTouch && !v.touched)) {
539
540
  return;
@@ -560,18 +561,18 @@ class FormComponent extends StylableComponent {
560
561
  this.validationMessages.push({
561
562
  field: k,
562
563
  value: field.value,
563
- errorType: _.keys(v.errors),
564
+ errorType: keys(v.errors),
564
565
  message: field.validationmessage || '',
565
566
  getElement: () => {
566
567
  return field.$element.find('[focus-target]');
567
568
  },
568
- formName: _.last(prefix.split('.')),
569
+ formName: last(prefix.split('.')),
569
570
  fullyQualifiedFormName: prefix
570
571
  });
571
572
  }
572
573
  else {
573
574
  this.validationMessages[index].value = field.value;
574
- this.validationMessages[index].errorType = _.keys(v.errors);
575
+ this.validationMessages[index].errorType = keys(v.errors);
575
576
  }
576
577
  }
577
578
  else if (v.valid && index > -1) {
@@ -580,7 +581,7 @@ class FormComponent extends StylableComponent {
580
581
  }
581
582
  // This will return a object containing the error details from the list of formFields that are invalid
582
583
  setValidationMsgs(validateTouch) {
583
- if (!this.formFields.length && _.isEmpty(this.ngform.controls)) {
584
+ if (!this.formFields.length && isEmpty(this.ngform.controls)) {
584
585
  return;
585
586
  }
586
587
  this.setValidationOnFields(this, this.name, validateTouch);
@@ -662,10 +663,10 @@ class FormComponent extends StylableComponent {
662
663
  break;
663
664
  case 'formdata':
664
665
  // For livelist when multiselect is enabled, formdata will be array of objects. In this case consider the last object as formdata.
665
- if (_.isEqual(nv, ov)) {
666
+ if (isEqual(nv, ov)) {
666
667
  break;
667
668
  }
668
- _.isArray(nv) ? this.setFormData(_.last(nv)) : this.setFormData(nv);
669
+ isArray(nv) ? this.setFormData(last(nv)) : this.setFormData(nv);
669
670
  // if dataset on the formFields are not set as the datasourceChange is triggered before the formFields are registered.
670
671
  if (!this.isDataSourceUpdated && this.datasource) {
671
672
  this.onDataSourceChange();
@@ -695,7 +696,7 @@ class FormComponent extends StylableComponent {
695
696
  const formFields = this.getFormFields();
696
697
  formFields.forEach(field => {
697
698
  // notifying the dataset change to the form-field widget.
698
- if (!field.isDataSetBound && _.get(field.formWidget, 'dataset$')) {
699
+ if (!field.isDataSetBound && get(field.formWidget, 'dataset$')) {
699
700
  field.formWidget.dataset$.next();
700
701
  }
701
702
  });
@@ -744,7 +745,7 @@ class FormComponent extends StylableComponent {
744
745
  }
745
746
  // if there is an App.onServiceError handler for the app, that message should be used instead of server returned error message
746
747
  checkAppServiceErrorMsg(type) {
747
- const notificationAction = _.get(this.app, 'Actions.appNotification');
748
+ const notificationAction = get(this.app, 'Actions.appNotification');
748
749
  if (notificationAction && type === 'error') {
749
750
  return notificationAction.getMessage();
750
751
  }
@@ -757,7 +758,7 @@ class FormComponent extends StylableComponent {
757
758
  // Set the classes on the form based on the captionposition and captionwidth properties
758
759
  setLayoutConfig() {
759
760
  let layoutConfig;
760
- layoutConfig = getFieldLayoutConfig(this.captionwidth, this.captionposition, _.get(this.app.selectedViewPort, 'os'));
761
+ layoutConfig = getFieldLayoutConfig(this.captionwidth, this.captionposition, get(this.app.selectedViewPort, 'os'));
761
762
  this._widgetClass = layoutConfig.widgetCls;
762
763
  this._captionClass = layoutConfig.captionCls;
763
764
  $appDigest();
@@ -778,9 +779,9 @@ class FormComponent extends StylableComponent {
778
779
  this.parentForm.setFormData(this.parentForm.formdata, this.formFields, this.formdata || {});
779
780
  }
780
781
  // WMS-18967: Applying formadata after formfields are ready
781
- if (fieldCount === this.numberOfFields && !_.isEmpty(this.formdata)) {
782
+ if (fieldCount === this.numberOfFields && !isEmpty(this.formdata)) {
782
783
  this.onDataSourceChange();
783
- _.isArray(this.formdata) ? this.setFormData(_.last(this.formdata)) : this.setFormData(this.formdata);
784
+ isArray(this.formdata) ? this.setFormData(last(this.formdata)) : this.setFormData(this.formdata);
784
785
  }
785
786
  }
786
787
  registerActions(formAction) {
@@ -789,8 +790,8 @@ class FormComponent extends StylableComponent {
789
790
  // Update the dataoutput whenever there is a change in inside form widget value
790
791
  updateFormDataOutput(dataObject) {
791
792
  // Set the values of the widgets inside the live form (other than form fields) in form data
792
- _.forEach(this.ngform.value, (val, key) => {
793
- if (!_.find(this.formFields, { key })) {
793
+ forEach(this.ngform.value, (val, key) => {
794
+ if (!find(this.formFields, { key })) {
794
795
  dataObject[key] = val;
795
796
  }
796
797
  });
@@ -814,20 +815,20 @@ class FormComponent extends StylableComponent {
814
815
  // This form is having innerform i.e. address, these fields are listed as
815
816
  // {"applicantName": "", "applicantID": "", "address": {"street": ""}}
816
817
  if (field.form.widgetId !== this.widgetId && field.form.formGroupName) {
817
- const fd = _.get(formData, field.form.formGroupName, {});
818
+ const fd = get(formData, field.form.formGroupName, {});
818
819
  fd[fieldName] = fieldValue;
819
- _.set(formData, field.form.formGroupName, fd);
820
+ set(formData, field.form.formGroupName, fd);
820
821
  }
821
- else if ((typeof field.form.formArrayIndex === 'number') && field.form.isParentList && !this.parentForm) { // Fix for [WMS-25806]: use formArrayIndex only if form has a parent form
822
+ else if (this.parentForm && this.parentForm.ngform && field.form.isParentList) { // Fix for [WMS-25806]: use formArrayIndex only if form has a parent form
822
823
  // setting formdata based on formArrayIndex
823
- const fd = _.get(formData, field.form.parentList.name, []);
824
+ const fd = get(formData, field.form.parentList.name, []);
824
825
  fd[field.form.formArrayIndex] = fd[field.form.formArrayIndex] || {};
825
826
  fd[field.form.formArrayIndex][fieldName] = fieldValue;
826
- _.set(formData, field.form.parentList.name, fd);
827
+ set(formData, field.form.parentList.name, fd);
827
828
  }
828
829
  else {
829
830
  // In case of update the field will be already present in form data
830
- _.set(formData, fieldName, fieldValue);
831
+ set(formData, fieldName, fieldValue);
831
832
  }
832
833
  });
833
834
  this.updateFormDataOutput(formData);
@@ -842,7 +843,7 @@ class FormComponent extends StylableComponent {
842
843
  // FormFields will contain all the fields in parent and inner form also.
843
844
  // This returns the formFields in the form based on the form name.
844
845
  getFormFields() {
845
- return _.filter(this.formFields, formField => {
846
+ return filter(this.formFields, formField => {
846
847
  return formField.form.name === this.name;
847
848
  });
848
849
  }
@@ -853,12 +854,12 @@ class FormComponent extends StylableComponent {
853
854
  const fd = innerFormdata ? innerFormdata : data;
854
855
  if (fd) {
855
856
  if (fd.hasOwnProperty(key)) {
856
- field.value = _.get(fd, key);
857
+ field.value = get(fd, key);
857
858
  }
858
- else if (_.includes(key, '.')) {
859
+ else if (includes(key, '.')) {
859
860
  // key contains '.' when mapping the fields to child reference i.e. childCol is having key as "parent.childCol"
860
- if (fd.hasOwnProperty(_.split(key, '.')[0])) {
861
- field.value = _.get(fd, key);
861
+ if (fd.hasOwnProperty(split(key, '.')[0])) {
862
+ field.value = get(fd, key);
862
863
  }
863
864
  }
864
865
  // WMS-18906: For default value, do not mark the form as dirty.
@@ -871,11 +872,11 @@ class FormComponent extends StylableComponent {
871
872
  * if formGroupName is defined which means field is inside the inner form
872
873
  * then set the formdata on the field's form using formGroupName
873
874
  */
874
- if (formGroupName && _.get(data, formGroupName)) {
875
+ if (formGroupName && get(data, formGroupName)) {
875
876
  this.setFormData.call(field.form, data[formGroupName]);
876
877
  }
877
878
  // if formdata is assigned later then on propertyChangeHandler, even inner forms data also needs to be updated.
878
- if (_.get(field.form, 'parentFormArray')) {
879
+ if (get(field.form, 'parentFormArray')) {
879
880
  this.setFormDataFromParentFormData.call(field.form, data);
880
881
  }
881
882
  }
@@ -1058,7 +1059,7 @@ class FormComponent extends StylableComponent {
1058
1059
  template = this.errormessage || error.error || error;
1059
1060
  $appDigest();
1060
1061
  return {
1061
- 'result': _.get(error, 'error') || error,
1062
+ 'result': get(error, 'error') || error,
1062
1063
  'status': false,
1063
1064
  'message': template,
1064
1065
  'type': 'error'
@@ -1085,8 +1086,8 @@ class FormComponent extends StylableComponent {
1085
1086
  }
1086
1087
  // Method to show/hide the panel header or footer based on the buttons
1087
1088
  showButtons(position) {
1088
- return _.some(this.buttonArray, btn => {
1089
- return _.includes(btn.position, position) && btn.updateMode === this.isUpdateMode;
1089
+ return some(this.buttonArray, btn => {
1090
+ return includes(btn.position, position) && btn.updateMode === this.isUpdateMode;
1090
1091
  });
1091
1092
  }
1092
1093
  // Expand or collapse the panel
@@ -1115,13 +1116,13 @@ class FormComponent extends StylableComponent {
1115
1116
  if (!form.parentForm) {
1116
1117
  return {};
1117
1118
  }
1118
- if (!form.bindformdata && _.get(form.parentForm, 'formdata') && !_.isEmpty(form.parentForm.formdata)) {
1119
+ if (!form.bindformdata && get(form.parentForm, 'formdata') && !isEmpty(form.parentForm.formdata)) {
1119
1120
  return form.parentForm.formdata;
1120
1121
  }
1121
1122
  return this.getNearestParentFormData(form.parentForm);
1122
1123
  }
1123
1124
  setFormDataFromParentFormData(formdata) {
1124
- if (_.isEmpty(this.formdata) && this.parentForm && formdata) {
1125
+ if (isEmpty(this.formdata) && this.parentForm && formdata) {
1125
1126
  /**
1126
1127
  * If form is inside list,
1127
1128
  * 1. directly applying the formdata to the formArray to update the formdata on list of forms using patchValue.
@@ -1132,9 +1133,9 @@ class FormComponent extends StylableComponent {
1132
1133
  * If not inside list, just set the formdata on all the formfields including innerForm fields
1133
1134
  */
1134
1135
  if (this.parentFormArray) {
1135
- let childFormArrayData = _.get(formdata, this.parentList.name);
1136
+ let childFormArrayData = get(formdata, this.parentList.name);
1136
1137
  if (childFormArrayData) {
1137
- if (!_.isArray(childFormArrayData)) {
1138
+ if (!isArray(childFormArrayData)) {
1138
1139
  childFormArrayData = [childFormArrayData];
1139
1140
  }
1140
1141
  this.parentFormArray.patchValue(childFormArrayData);
@@ -1144,7 +1145,7 @@ class FormComponent extends StylableComponent {
1144
1145
  this.setFormData(this.formdata);
1145
1146
  }
1146
1147
  else if (this.isParentList && this.parentForm.formGroupName) {
1147
- const parentFormData = _.get(formdata, this.parentForm.formGroupName);
1148
+ const parentFormData = get(formdata, this.parentForm.formGroupName);
1148
1149
  this.setFormDataFromParentFormData(parentFormData);
1149
1150
  }
1150
1151
  }
@@ -1155,7 +1156,7 @@ class FormComponent extends StylableComponent {
1155
1156
  }
1156
1157
  // On form data source change. This method is overridden by live form and live filter
1157
1158
  onDataSourceChange() {
1158
- if (_.get(this.formFields, 'length') && !this.bindformdata) {
1159
+ if (get(this.formFields, 'length') && !this.bindformdata) {
1159
1160
  this.isDataSourceUpdated = true;
1160
1161
  /**
1161
1162
  * formdata on the parent form will be set before the inner forms are rendered.
@@ -1187,7 +1188,7 @@ class FormComponent extends StylableComponent {
1187
1188
  let noOfColumns;
1188
1189
  let $gridLayout;
1189
1190
  // Check if grid layout is present or not for first time
1190
- if (_.isUndefined(this._isGridLayoutPresent)) {
1191
+ if (isUndefined(this._isGridLayoutPresent)) {
1191
1192
  this._isGridLayoutPresent = this.$element.find('.panel-body [wmlayoutgrid]').length > 0;
1192
1193
  }
1193
1194
  if (this._isGridLayoutPresent) {
@@ -1209,7 +1210,7 @@ class FormComponent extends StylableComponent {
1209
1210
  let userFields;
1210
1211
  let fields = this.metadata ? this.metadata.data || this.metadata : [];
1211
1212
  this.formFields = []; // empty the form fields
1212
- if (_.isEmpty(fields)) {
1213
+ if (isEmpty(fields)) {
1213
1214
  return;
1214
1215
  }
1215
1216
  if (this.onBeforeRenderEvt) {
@@ -1218,7 +1219,7 @@ class FormComponent extends StylableComponent {
1218
1219
  fields = userFields;
1219
1220
  }
1220
1221
  }
1221
- if (!_.isArray(fields)) {
1222
+ if (!isArray(fields)) {
1222
1223
  return;
1223
1224
  }
1224
1225
  while (fields[colCount]) {
@@ -1304,12 +1305,12 @@ class FormComponent extends StylableComponent {
1304
1305
  }
1305
1306
  ngOnDestroy() {
1306
1307
  // on form destroy, removing this form from the parentForm too.
1307
- const controls = this.parentForm && _.get(this.parentForm, 'ngform.controls');
1308
+ const controls = this.parentForm && get(this.parentForm, 'ngform.controls');
1308
1309
  if (controls) {
1309
1310
  // when current form is inside the list (i.e. incase of formArray).
1310
- if (_.get(this.parentList, 'name') && controls.hasOwnProperty(this.parentList.name)) {
1311
+ if (get(this.parentList, 'name') && controls.hasOwnProperty(this.parentList.name)) {
1311
1312
  //get the index of current form in the list and remove the FormControl from FormArray
1312
- const index = _.findIndex(this.parentList.getWidgets(this.name), { widgetId: this.widgetId });
1313
+ const index = findIndex(this.parentList.getWidgets(this.name), { widgetId: this.widgetId });
1313
1314
  this.parentForm.ngform.controls[this.parentList.name].removeAt(index);
1314
1315
  }
1315
1316
  // when we have formGroupName set i.e. multiple formInstance with counter appended to formName
@@ -1428,7 +1429,7 @@ class FormComponent extends StylableComponent {
1428
1429
  type: HostListener,
1429
1430
  args: ['keydown', ['$event']]
1430
1431
  }] }); })();
1431
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FormComponent, { className: "FormComponent", filePath: "form.component.ts", lineNumber: 145 }); })();
1432
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FormComponent, { className: "FormComponent", filePath: "form.component.ts", lineNumber: 159 }); })();
1432
1433
 
1433
1434
  class FormWidgetDirective {
1434
1435
  constructor(form, table, componentInstance, fb, name, key) {
@@ -1536,7 +1537,7 @@ class FormActionDirective extends BaseComponent {
1536
1537
  show: this.show,
1537
1538
  class: this.class ? this.class : (this['widget-type'] === 'button' ? 'btn-secondary' : ''),
1538
1539
  iconclass: this.iconclass || '',
1539
- title: _.isUndefined(this.title) ? (this['display-name'] || '') : this.title,
1540
+ title: isUndefined(this.title) ? (this['display-name'] || '') : this.title,
1540
1541
  action: this.action,
1541
1542
  accessroles: this.accessroles,
1542
1543
  shortcutkey: this.shortcutkey,
@@ -1691,7 +1692,7 @@ class FormFieldDirective extends StylableComponent {
1691
1692
  }
1692
1693
  contexts[0]._onFocusField = this._onFocusField.bind(this);
1693
1694
  contexts[0]._onBlurField = this._onBlurField.bind(this);
1694
- this._debounceSetUpValidators = debounce(() => this.setUpValidators(), 500);
1695
+ this._debounceSetUpValidators = debounce$1(() => this.setUpValidators(), 500);
1695
1696
  }
1696
1697
  _onFocusField($evt) {
1697
1698
  this._activeField = true;
@@ -1753,10 +1754,10 @@ class FormFieldDirective extends StylableComponent {
1753
1754
  const value = this.value;
1754
1755
  const displayField = this.displayfield || this.displaylabel;
1755
1756
  const displayExpr = this.displayexpression;
1756
- if (_.isObject(value)) {
1757
- if (_.isArray(value)) {
1758
- _.forEach(value, obj => {
1759
- if (_.isObject(obj)) {
1757
+ if (isObject(value)) {
1758
+ if (isArray(value)) {
1759
+ forEach(value, obj => {
1760
+ if (isObject(obj)) {
1760
1761
  caption.push(this.evaluateExpr(obj, displayField, displayExpr));
1761
1762
  }
1762
1763
  });
@@ -1764,16 +1765,16 @@ class FormFieldDirective extends StylableComponent {
1764
1765
  else {
1765
1766
  caption.push(this.evaluateExpr(value, displayField, displayExpr));
1766
1767
  }
1767
- return _.join(caption, ',');
1768
+ return join(caption, ',');
1768
1769
  }
1769
1770
  return (value === undefined || value === null) ? '' : this.value;
1770
1771
  }
1771
1772
  getCaption() {
1772
- return (this.value === undefined || this.value === null) ? (_.get(this.form.dataoutput, this._fieldName) || '') : this.value;
1773
+ return (this.value === undefined || this.value === null) ? (get(this.form.dataoutput, this._fieldName) || '') : this.value;
1773
1774
  }
1774
1775
  // Notifies changes to observing validation fields
1775
1776
  notifyChanges() {
1776
- _.forEach(this.notifyForFields, field => {
1777
+ forEach(this.notifyForFields, field => {
1777
1778
  field.fieldValidations.validate();
1778
1779
  });
1779
1780
  }
@@ -2041,7 +2042,7 @@ class FormFieldDirective extends StylableComponent {
2041
2042
  .subscribe(this.onValueChange.bind(this));
2042
2043
  this.registerDestroyListener(() => onMaxValueChangeSubscription.unsubscribe());
2043
2044
  }
2044
- this.value = _.get(this.form.formdata, this._fieldName);
2045
+ this.value = get(this.form.formdata, this._fieldName);
2045
2046
  }
2046
2047
  ngOnInit() {
2047
2048
  this.ngform = this.form.ngform;
@@ -2518,7 +2519,7 @@ class LiveFilterDirective {
2518
2519
  constructor(form) {
2519
2520
  this.form = form;
2520
2521
  // debounce the filter function. If multiple filter calls are made at same time, calls will be delayed and last call is fired
2521
- this._filter = debounce(options => {
2522
+ this._filter = debounce$1(options => {
2522
2523
  this.filter(options);
2523
2524
  }, 250);
2524
2525
  form.clearFilter = this.clearFilter.bind(this);
@@ -2818,7 +2819,7 @@ class LiveFilterDirective {
2818
2819
  // Calls the filter function if default values are present
2819
2820
  filterOnDefault() {
2820
2821
  /*Check if default value is present for any filter field*/
2821
- const defaultObj = _.find(this.form.formFields, obj => {
2822
+ const defaultObj = find(this.form.formFields, obj => {
2822
2823
  return isDefined(obj.value) || isDefined(obj.minValue) || isDefined(obj.maxValue);
2823
2824
  });
2824
2825
  /*If default value exists and data is loaded, apply the filter*/
@@ -2862,7 +2863,7 @@ class LiveFormDirective {
2862
2863
  this.form = form;
2863
2864
  this.datePipe = datePipe;
2864
2865
  this.dialogService = dialogService;
2865
- this._debouncedSavePrevDataValues = debounce(() => {
2866
+ this._debouncedSavePrevDataValues = debounce$1(() => {
2866
2867
  this.savePrevDataValues();
2867
2868
  }, 250);
2868
2869
  // If parent live table is present and this form is first child of live table, set this form instance on livetable
@@ -2929,7 +2930,7 @@ class LiveFormDirective {
2929
2930
  }
2930
2931
  }
2931
2932
  onDataSourceChange() {
2932
- if (_.get(this.form.formFields, 'length')) {
2933
+ if (get(this.form.formFields, 'length')) {
2933
2934
  this.form.isDataSourceUpdated = true;
2934
2935
  }
2935
2936
  const formFields = this.form.getFormFields();
@@ -2984,14 +2985,14 @@ class LiveFormDirective {
2984
2985
  }
2985
2986
  formFields = formFields || this.form.formFields;
2986
2987
  formFields.forEach(field => {
2987
- const value = _.get(dataObj, field.key || field.name);
2988
+ const value = get(dataObj, field.key || field.name);
2988
2989
  if (isTimeType(field)) {
2989
2990
  field.value = getValidTime(value);
2990
2991
  }
2991
2992
  else if (field.type === DataType.BLOB) {
2992
2993
  this.form.resetFileUploadWidget(field, true);
2993
2994
  field.href = this.getBlobURL(dataObj, field.key, value);
2994
- field.value = _.isString(value) ? '' : value;
2995
+ field.value = isString(value) ? '' : value;
2995
2996
  }
2996
2997
  else {
2997
2998
  this.form.setFieldValue(field, dataObj);
@@ -3043,7 +3044,7 @@ class LiveFormDirective {
3043
3044
  formFields = isPreviousData ? this.form.prevformFields : this.form.getFormFields();
3044
3045
  formFields.forEach(field => {
3045
3046
  let dateTime, fieldValue;
3046
- const fieldTarget = _.split(field.key, '.');
3047
+ const fieldTarget = split(field.key, '.');
3047
3048
  const fieldName = fieldTarget[0] || field.key;
3048
3049
  /*collect the values from the fields and construct the object*/
3049
3050
  /*Format the output of date time widgets to the given output format*/
@@ -3104,7 +3105,7 @@ class LiveFormDirective {
3104
3105
  /*If OperationType is not set then based on the formdata object return the operation type,
3105
3106
  this case occurs only if the form is outside a livegrid*/
3106
3107
  /*If the formdata object has primary key value then return update else insert*/
3107
- if (this.form.primaryKey && !_.isEmpty(this.form.formdata)) {
3108
+ if (this.form.primaryKey && !isEmpty(this.form.formdata)) {
3108
3109
  /*If only one column is primary key*/
3109
3110
  if (this.form.primaryKey.length === 1) {
3110
3111
  if (this.form.formdata[this.form.primaryKey[0]]) {
@@ -3113,7 +3114,7 @@ class LiveFormDirective {
3113
3114
  /*If only no column is primary key*/
3114
3115
  }
3115
3116
  else if (this.form.primaryKey.length === 0) {
3116
- _.forEach(this.form.formdata, (value) => {
3117
+ forEach(this.form.formdata, (value) => {
3117
3118
  if (value) {
3118
3119
  isPrimary = true;
3119
3120
  }
@@ -3124,7 +3125,7 @@ class LiveFormDirective {
3124
3125
  /*If multiple columns are primary key*/
3125
3126
  }
3126
3127
  else {
3127
- isPrimary = _.some(this.form.primaryKey, (primaryKey) => {
3128
+ isPrimary = some(this.form.primaryKey, (primaryKey) => {
3128
3129
  if (this.form.formdata[primaryKey]) {
3129
3130
  return true;
3130
3131
  }
@@ -3137,7 +3138,7 @@ class LiveFormDirective {
3137
3138
  return operation || Live_Operations.INSERT;
3138
3139
  }
3139
3140
  getPrevDataValues() {
3140
- const prevDataValues = _.fromPairs(_.map(this.form.prevDataValues, (item) => {
3141
+ const prevDataValues = fromPairs(map(this.form.prevDataValues, (item) => {
3141
3142
  return [item.key, item.value];
3142
3143
  })); // Convert of array of values to an object
3143
3144
  this.form.formFields.forEach(field => {
@@ -3247,7 +3248,7 @@ class LiveFormDirective {
3247
3248
  }
3248
3249
  // If operation is update, form is not touched and current data and previous data is same, Show no changes detected message
3249
3250
  if (this.form.operationType === Live_Operations.UPDATE && this.form.ngform && this.form.ngform.pristine &&
3250
- (this.form.isSelected && _.isEqual(data, prevData))) {
3251
+ (this.form.isSelected && isEqual(data, prevData))) {
3251
3252
  this.form.toggleMessage(true, this.form.appLocale.MESSAGE_NO_CHANGES, 'info', '');
3252
3253
  $appDigest();
3253
3254
  return;