@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
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../../../projects/components/widgets/basic/rich-text-editor/src/rich-text-editor.props.ts","../../../../../projects/components/widgets/basic/rich-text-editor/src/rich-text-editor.component.html","../../../../../projects/components/widgets/basic/rich-text-editor/src/rich-text-editor.component.ts","../../../../../projects/components/widgets/basic/rich-text-editor/src/rich-text-editor.module.ts","../../../../../projects/components/widgets/basic/rich-text-editor/src/index.ts"],"sourcesContent":["import { PROP_ANY, PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, register, registerFormWidget } from '@wm/components/base';\nimport { FormWidgetType } from '@wm/core';\n\nexport const richTextProps = new Map(\n [\n ['class', PROP_STRING],\n ['datavaluesource', PROP_ANY],\n ['datavalue', PROP_STRING],\n ['height', PROP_STRING],\n ['hint', PROP_STRING],\n ['name', PROP_STRING],\n ['placeholder', PROP_STRING],\n ['readonly', PROP_BOOLEAN],\n ['show', {value: true, ...PROP_BOOLEAN}],\n ['showpreview', {value: false, ...PROP_BOOLEAN}],\n ['tabindex', {value: 0, ...PROP_NUMBER}]\n ]\n);\n\nexport const registerProps = () => {\n register(\n 'wm-richtexteditor',\n richTextProps\n );\n registerFormWidget(\n FormWidgetType.RICHTEXT,\n new Map(richTextProps)\n );\n};\n","<div richTextEditor></div>\n<div [innerHTML]=\"proxyModel\" class=\"ta-preview\" *ngIf=\"showpreview\"></div>\n<input class=\"model-holder\" [disabled]=\"disabled\" hidden>\n","import {Component, Injector, NgZone, OnDestroy, OnInit, Optional, SecurityContext} from '@angular/core';\nimport { NG_VALUE_ACCESSOR } from '@angular/forms';\n\nimport {setAttr, setCSS, setHtml} from '@wm/core';\nimport {APPLY_STYLES_TYPE, provideAs, provideAsWidgetRef, SanitizePipe, styler} from '@wm/components/base';\nimport { BaseFormCustomComponent } from '@wm/components/input';\n\nimport { registerProps } from './rich-text-editor.props';\n\n\nconst WIDGET_INFO = {widgetType: 'wm-richtexteditor', hostClass: 'app-richtexteditor clearfix'};\n\nconst getChangeEvt = () => {\n let changeEvt;\n // for IE the event constructor doesn't work so use the createEvent proto\n if (typeof(Event) === 'function') {\n changeEvt = new Event('change');\n } else {\n changeEvt = document.createEvent('Event');\n changeEvt.initEvent('change', true, true);\n }\n return changeEvt;\n};\n\ndeclare const _, $;\n\nconst overrideSummerNote = () => {\n if (!$.summernote.__overidden) {\n // override summernote methods\n\n const origFn = $.summernote.ui_template().button.bind($.summernote);\n\n $.summernote.ui_template.button = (...args) => {\n\n const retVal = origFn(...args);\n const origCallback = retVal.callback;\n\n retVal.callback = ($node, options) => {\n // add bs3 btn class to the buttons\n $node.addClass('btn');\n return origCallback($node, options);\n };\n return retVal;\n };\n $.summernote.__overidden = true;\n }\n};\n\n@Component({\n selector: 'div[wmRichTextEditor]',\n templateUrl: './rich-text-editor.component.html',\n providers: [\n provideAs(RichTextEditorComponent, NG_VALUE_ACCESSOR, true),\n provideAsWidgetRef(RichTextEditorComponent)\n ],\n exportAs: 'wmRichTextEditor'\n})\nexport class RichTextEditorComponent extends BaseFormCustomComponent implements OnInit, OnDestroy {\n static initializeProps = registerProps();\n\n $richTextEditor;\n $hiddenInputEle;\n\n proxyModel;\n _operationStack = [];\n isEditorLoaded = false;\n\n public showpreview: any;\n public disabled: boolean;\n\n EDITOR_DEFAULT_OPTIONS = {\n toolbar: [\n // [groupName, [list of button]]\n ['misc', ['undo', 'redo']],\n ['style', ['style']],\n ['fontname', ['fontname']],\n ['fontsize', ['fontsize']],\n ['height', ['height']],\n ['style', ['bold', 'italic', 'underline', 'clear']],\n ['font', ['strikethrough', 'superscript', 'subscript']],\n ['color', ['color']],\n ['insert', ['table', 'picture', 'link', 'video', 'hr']],\n ['para', ['ul', 'ol', 'paragraph']],\n ['misc', ['codeview', 'fullscreen', 'help']]\n ],\n callbacks: {\n onInit: () => {\n this.isEditorLoaded = true;\n if (this._operationStack.length) {\n this._operationStack.forEach(operationParam => {\n const key = Array.from(operationParam.keys())[0],\n val = operationParam.get(key);\n this.performEditorOperation(key, val);\n });\n this._operationStack = [];\n }\n },\n onChange: (contents, editable) => {\n this.proxyModel = this.sanitizePipe.transform(contents, SecurityContext.HTML);\n this.invokeOnChange(contents, getChangeEvt(), true);\n this.invokeOnTouched();\n }\n },\n fontNames: ['Arial', 'Arial Black', 'Comic Sans MS', 'Courier New', 'Merriweather'],\n placeholder: 'write here...',\n minHeight: 100,\n disableResizeEditor: true\n };\n\n get htmlcontent() {\n return this.performEditorOperation('code');\n }\n\n // @ts-ignore\n get datavalue() {\n return this.htmlcontent;\n }\n\n // @ts-ignore\n set datavalue(nv) {\n if (nv !== undefined && nv !== null) {\n this.$hiddenInputEle.val(nv);\n this.performEditorOperation('reset');\n this.performEditorOperation('code', nv);\n }\n }\n\n constructor(inj: Injector, private sanitizePipe: SanitizePipe, private ngZone: NgZone) {\n super(inj, WIDGET_INFO);\n styler(this.nativeElement, this, APPLY_STYLES_TYPE.CONTAINER, ['height']);\n overrideSummerNote();\n }\n\n ngOnInit() {\n this.$richTextEditor = $(this.nativeElement.querySelector('[richTextEditor]'));\n this.$hiddenInputEle = $(this.nativeElement.querySelector('input.model-holder'));\n super.ngOnInit();\n this.initEditor();\n }\n\n initEditor() {\n this.ngZone.runOutsideAngular(() => {\n this.invokeEventCallback('beforerender', {'$event' : {}});\n this.$richTextEditor.summernote(this.EDITOR_DEFAULT_OPTIONS);\n });\n\n }\n\n getDefaultOptions() {\n return this.EDITOR_DEFAULT_OPTIONS;\n }\n\n getLib() {\n return 'summernote';\n }\n\n overrideDefaults(options) {\n _.extend(this.EDITOR_DEFAULT_OPTIONS, options);\n }\n\n onPropertyChange(key: string, nv: any, ov?: any) {\n if (key === 'placeholder') {\n this.performEditorOperation('placeholder', nv);\n } else if (key === 'disabled' || key === 'readonly') {\n this.performEditorOperation(nv ? 'disable' : 'enable');\n } else {\n super.onPropertyChange(key, nv, ov);\n }\n }\n\n onStyleChange(key, nv, ov) {\n if (key === 'height') {\n this.performEditorOperation('height', nv);\n }\n }\n\n performEditorOperation(key, value?) {\n if (this.isEditorLoaded) {\n if (key === 'height') {\n setCSS(this.nativeElement.querySelector('div.note-editable'), key, value, true);\n } else if (key === 'placeholder') {\n setAttr(this.nativeElement, key, value);\n setHtml(this.nativeElement.querySelector('div.note-placeholder'), value, true);\n } else {\n // if editor content is empty then summernote('code') is returning empty p tags like <p></br></p>. So checking for empty and returning undefined.\n if (arguments.length === 1 && key === 'code' && this.$richTextEditor.summernote('isEmpty')) {\n const content = this.$richTextEditor.summernote('code');\n return content === '' ? content : undefined;\n }\n return this.$richTextEditor.summernote(key, value);\n }\n } else {\n const op: any = new Map();\n op.set(key, value);\n this._operationStack.push(op);\n return;\n }\n }\n\n getCurrentPosition() {\n return this.performEditorOperation('createRange');\n }\n\n undo() {\n this.performEditorOperation('undo');\n }\n\n focus() {\n this.performEditorOperation('focus');\n }\n\n ngOnDestroy() {\n this.performEditorOperation('destroy');\n super.ngOnDestroy();\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { WmComponentsModule } from '@wm/components/base';\n\nimport { RichTextEditorComponent } from './rich-text-editor.component';\n\nconst components = [\n RichTextEditorComponent\n];\n\n@NgModule({\n imports: [\n CommonModule,\n WmComponentsModule\n ],\n declarations: [...components],\n exports: [...components]\n})\nexport class RichTextEditorModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;AAGO,MAAM,aAAa,GAAG,IAAI,GAAG,CAChC;IACI,CAAC,OAAO,EAAE,WAAW,CAAC;IACtB,CAAC,iBAAiB,EAAE,QAAQ,CAAC;IAC7B,CAAC,WAAW,EAAE,WAAW,CAAC;IAC1B,CAAC,QAAQ,EAAE,WAAW,CAAC;IACvB,CAAC,MAAM,EAAE,WAAW,CAAC;IACrB,CAAC,MAAM,EAAE,WAAW,CAAC;IACrB,CAAC,aAAa,EAAE,WAAW,CAAC;IAC5B,CAAC,UAAU,EAAE,YAAY,CAAC;IAC1B,CAAC,MAAM,EAAE,EAAC,KAAK,EAAE,IAAI,EAAE,GAAG,YAAY,EAAC,CAAC;IACxC,CAAC,aAAa,EAAE,EAAC,KAAK,EAAE,KAAK,EAAE,GAAG,YAAY,EAAC,CAAC;IAChD,CAAC,UAAU,EAAE,EAAC,KAAK,EAAE,CAAC,EAAE,GAAG,WAAW,EAAC,CAAC;AAC3C,CAAA,CACJ,CAAC;AAEK,MAAM,aAAa,GAAG,MAAK;AAC9B,IAAA,QAAQ,CACJ,mBAAmB,EACnB,aAAa,CAChB,CAAC;IACF,kBAAkB,CACd,cAAc,CAAC,QAAQ,EACvB,IAAI,GAAG,CAAC,aAAa,CAAC,CACzB,CAAC;AACN,CAAC;;;;IC3BD,EAA2E,CAAA,SAAA,CAAA,CAAA,EAAA,KAAA,EAAA,CAAA,CAAA,CAAA;;;IAAtE,EAAwB,CAAA,UAAA,CAAA,WAAA,EAAA,MAAA,CAAA,UAAA,EAAA,EAAA,CAAA,cAAA,CAAA,CAAA;;ACS7B,MAAM,WAAW,GAAG,EAAC,UAAU,EAAE,mBAAmB,EAAE,SAAS,EAAE,6BAA6B,EAAC,CAAC;AAEhG,MAAM,YA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uBAAA,EAAA,iBAAiB,EAAE,IAAI,CAAC;AAC3D,oBAAA,kBAAkB,CAAyB,uBAAA,CAAA;AAC9C,iBAAA,EAAA,QAAA,EACS,kBAAkB,EAAA,QAAA,EAAA,gLAAA,EAAA,CAAA;;kFAEnB,uBAAuB,EAAA,EAAA,SAAA,EAAA,yBAAA,EAAA,QAAA,EAAA,+BAAA,EAAA,UAAA,EAAA,EAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;AClDpC,MAAM,UAAU,GAAG;IACf,uBAAuB;CAC1B,CAAC;MAUW,oBAAoB,CAAA;qFAApB,oBAAoB,GAAA,CAAA,EAAA,CAAA,EAAA;mEAApB,oBAAoB,EAAA,CAAA,CAAA,EAAA;uEANzB,YAAY;YACZ,kBAAkB,CAAA,EAAA,CAAA,CAAA,EAAA;;iFAKb,oBAAoB,EAAA,CAAA;cARhC,QAAQ;AAAC,QAAA,IAAA,EAAA,CAAA;AACN,gBAAA,OAAO,EAAE;oBACL,YAAY;oBACZ,kBAAkB;AACrB,iBAAA;AACD,gBAAA,YAAY,EAAE,CAAC,GAAG,UAAU,CAAC;AAC7B,gBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;AAC3B,aAAA,CAAA;;wFACY,oBAAoB,EAAA,EAAA,YAAA,EAAA,CAX7B,uBAAuB,CAAA,EAAA,OAAA,EAAA,CAKnB,YAAY;AACZ,QAAA,kBAAkB,aANtB,uBAAuB,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;ACR3B;;AAEG;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../../../projects/components/widgets/basic/rich-text-editor/src/rich-text-editor.props.ts","../../../../../projects/components/widgets/basic/rich-text-editor/src/rich-text-editor.component.html","../../../../../projects/components/widgets/basic/rich-text-editor/src/rich-text-editor.component.ts","../../../../../projects/components/widgets/basic/rich-text-editor/src/rich-text-editor.module.ts","../../../../../projects/components/widgets/basic/rich-text-editor/src/index.ts"],"sourcesContent":["import { PROP_ANY, PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, register, registerFormWidget } from '@wm/components/base';\nimport { FormWidgetType } from '@wm/core';\n\nexport const richTextProps = new Map(\n [\n ['class', PROP_STRING],\n ['datavaluesource', PROP_ANY],\n ['datavalue', PROP_STRING],\n ['height', PROP_STRING],\n ['hint', PROP_STRING],\n ['name', PROP_STRING],\n ['placeholder', PROP_STRING],\n ['readonly', PROP_BOOLEAN],\n ['show', {value: true, ...PROP_BOOLEAN}],\n ['showpreview', {value: false, ...PROP_BOOLEAN}],\n ['tabindex', {value: 0, ...PROP_NUMBER}]\n ]\n);\n\nexport const registerProps = () => {\n register(\n 'wm-richtexteditor',\n richTextProps\n );\n registerFormWidget(\n FormWidgetType.RICHTEXT,\n new Map(richTextProps)\n );\n};\n","<div richTextEditor></div>\n<div [innerHTML]=\"proxyModel\" class=\"ta-preview\" *ngIf=\"showpreview\"></div>\n<input class=\"model-holder\" [disabled]=\"disabled\" hidden>\n","import {Component, Inject, Injector, NgZone, OnDestroy, OnInit, Optional, SecurityContext} from '@angular/core';\nimport {NG_VALUE_ACCESSOR} from '@angular/forms';\n\nimport {setAttr, setCSS, setHtml} from '@wm/core';\nimport {APPLY_STYLES_TYPE, provideAs, provideAsWidgetRef, SanitizePipe, styler} from '@wm/components/base';\nimport {BaseFormCustomComponent} from '@wm/components/input';\n\nimport {registerProps} from './rich-text-editor.props';\nimport {extend} from \"lodash-es\";\n\n\nconst WIDGET_INFO = {widgetType: 'wm-richtexteditor', hostClass: 'app-richtexteditor clearfix'};\n\nconst getChangeEvt = () => {\n let changeEvt;\n // for IE the event constructor doesn't work so use the createEvent proto\n if (typeof(Event) === 'function') {\n changeEvt = new Event('change');\n } else {\n changeEvt = document.createEvent('Event');\n changeEvt.initEvent('change', true, true);\n }\n return changeEvt;\n};\n\ndeclare const _, $;\n\nconst overrideSummerNote = () => {\n if (!$.summernote.__overidden) {\n // override summernote methods\n\n const origFn = $.summernote.ui_template().button.bind($.summernote);\n\n $.summernote.ui_template.button = (...args) => {\n\n const retVal = origFn(...args);\n const origCallback = retVal.callback;\n\n retVal.callback = ($node, options) => {\n // add bs3 btn class to the buttons\n $node.addClass('btn');\n return origCallback($node, options);\n };\n return retVal;\n };\n $.summernote.__overidden = true;\n }\n};\n\n@Component({\n selector: 'div[wmRichTextEditor]',\n templateUrl: './rich-text-editor.component.html',\n providers: [\n provideAs(RichTextEditorComponent, NG_VALUE_ACCESSOR, true),\n provideAsWidgetRef(RichTextEditorComponent)\n ],\n exportAs: 'wmRichTextEditor'\n})\nexport class RichTextEditorComponent extends BaseFormCustomComponent implements OnInit, OnDestroy {\n static initializeProps = registerProps();\n\n $richTextEditor;\n $hiddenInputEle;\n\n proxyModel;\n _operationStack = [];\n isEditorLoaded = false;\n\n public showpreview: any;\n public disabled: boolean;\n\n EDITOR_DEFAULT_OPTIONS = {\n toolbar: [\n // [groupName, [list of button]]\n ['misc', ['undo', 'redo']],\n ['style', ['style']],\n ['fontname', ['fontname']],\n ['fontsize', ['fontsize']],\n ['height', ['height']],\n ['style', ['bold', 'italic', 'underline', 'clear']],\n ['font', ['strikethrough', 'superscript', 'subscript']],\n ['color', ['color']],\n ['insert', ['table', 'picture', 'link', 'video', 'hr']],\n ['para', ['ul', 'ol', 'paragraph']],\n ['misc', ['codeview', 'fullscreen', 'help']]\n ],\n callbacks: {\n onInit: () => {\n this.isEditorLoaded = true;\n if (this._operationStack.length) {\n this._operationStack.forEach(operationParam => {\n const key = Array.from(operationParam.keys())[0],\n val = operationParam.get(key);\n this.performEditorOperation(key, val);\n });\n this._operationStack = [];\n }\n },\n onChange: (contents, editable) => {\n this.proxyModel = this.sanitizePipe.transform(contents, SecurityContext.HTML);\n this.invokeOnChange(contents, getChangeEvt(), true);\n this.invokeOnTouched();\n }\n },\n fontNames: ['Arial', 'Arial Black', 'Comic Sans MS', 'Courier New', 'Merriweather'],\n placeholder: 'write here...',\n minHeight: 100,\n disableResizeEditor: true\n };\n\n get htmlcontent() {\n return this.performEditorOperation('code');\n }\n\n // @ts-ignore\n get datavalue() {\n return this.htmlcontent;\n }\n\n // @ts-ignore\n set datavalue(nv) {\n if (nv !== undefined && nv !== null) {\n this.$hiddenInputEle.val(nv);\n this.performEditorOperation('reset');\n this.performEditorOperation('code', nv);\n }\n }\n\n constructor(inj: Injector, private sanitizePipe: SanitizePipe, private ngZone: NgZone, @Inject('EXPLICIT_CONTEXT') @Optional() explicitContext: any) {\n super(inj, WIDGET_INFO, explicitContext);\n styler(this.nativeElement, this, APPLY_STYLES_TYPE.CONTAINER, ['height']);\n overrideSummerNote();\n }\n\n ngOnInit() {\n this.$richTextEditor = $(this.nativeElement.querySelector('[richTextEditor]'));\n this.$hiddenInputEle = $(this.nativeElement.querySelector('input.model-holder'));\n super.ngOnInit();\n this.initEditor();\n }\n\n initEditor() {\n this.ngZone.runOutsideAngular(() => {\n this.invokeEventCallback('beforerender', {'$event' : {}});\n this.$richTextEditor.summernote(this.EDITOR_DEFAULT_OPTIONS);\n });\n\n }\n\n getDefaultOptions() {\n return this.EDITOR_DEFAULT_OPTIONS;\n }\n\n getLib() {\n return 'summernote';\n }\n\n overrideDefaults(options) {\n extend(this.EDITOR_DEFAULT_OPTIONS, options);\n }\n\n onPropertyChange(key: string, nv: any, ov?: any) {\n if (key === 'placeholder') {\n this.performEditorOperation('placeholder', nv);\n } else if (key === 'disabled' || key === 'readonly') {\n this.performEditorOperation(nv ? 'disable' : 'enable');\n } else {\n super.onPropertyChange(key, nv, ov);\n }\n }\n\n onStyleChange(key, nv, ov) {\n if (key === 'height') {\n this.performEditorOperation('height', nv);\n }\n }\n\n performEditorOperation(key, value?) {\n if (this.isEditorLoaded) {\n if (key === 'height') {\n setCSS(this.nativeElement.querySelector('div.note-editable'), key, value, true);\n } else if (key === 'placeholder') {\n setAttr(this.nativeElement, key, value);\n setHtml(this.nativeElement.querySelector('div.note-placeholder'), value, true);\n } else {\n // if editor content is empty then summernote('code') is returning empty p tags like <p></br></p>. So checking for empty and returning undefined.\n if (arguments.length === 1 && key === 'code' && this.$richTextEditor.summernote('isEmpty')) {\n const content = this.$richTextEditor.summernote('code');\n return content === '' ? content : undefined;\n }\n return this.$richTextEditor.summernote(key, value);\n }\n } else {\n const op: any = new Map();\n op.set(key, value);\n this._operationStack.push(op);\n return;\n }\n }\n\n getCurrentPosition() {\n return this.performEditorOperation('createRange');\n }\n\n undo() {\n this.performEditorOperation('undo');\n }\n\n focus() {\n this.performEditorOperation('focus');\n }\n\n ngOnDestroy() {\n this.performEditorOperation('destroy');\n super.ngOnDestroy();\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { WmComponentsModule } from '@wm/components/base';\n\nimport { RichTextEditorComponent } from './rich-text-editor.component';\n\nconst components = [\n RichTextEditorComponent\n];\n\n@NgModule({\n imports: [\n CommonModule,\n WmComponentsModule\n ],\n declarations: [...components],\n exports: [...components]\n})\nexport class RichTextEditorModule {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;AAGO,MAAM,aAAa,GAAG,IAAI,GAAG,CAChC;IACI,CAAC,OAAO,EAAE,WAAW,CAAC;IACtB,CAAC,iBAAiB,EAAE,QAAQ,CAAC;IAC7B,CAAC,WAAW,EAAE,WAAW,CAAC;IAC1B,CAAC,QAAQ,EAAE,WAAW,CAAC;IACvB,CAAC,MAAM,EAAE,WAAW,CAAC;IACrB,CAAC,MAAM,EAAE,WAAW,CAAC;IACrB,CAAC,aAAa,EAAE,WAAW,CAAC;IAC5B,CAAC,UAAU,EAAE,YAAY,CAAC;IAC1B,CAAC,MAAM,EAAE,EAAC,KAAK,EAAE,IAAI,EAAE,GAAG,YAAY,EAAC,CAAC;IACxC,CAAC,aAAa,EAAE,EAAC,KAAK,EAAE,KAAK,EAAE,GAAG,YAAY,EAAC,CAAC;IAChD,CAAC,UAAU,EAAE,EAAC,KAAK,EAAE,CAAC,EAAE,GAAG,WAAW,EAAC,CAAC;AAC3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B,gBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;AAC3B,aAAA,CAAA;;wFACY,oBAAoB,EAAA,EAAA,YAAA,EAAA,CAX7B,uBAAuB,CAAA,EAAA,OAAA,EAAA,CAKnB,YAAY;AACZ,QAAA,kBAAkB,aANtB,uBAAuB,CAAA,EAAA,CAAA,CAAA,EAAA,GAAA;;ACR3B;;AAEG;;;;"}
@@ -27,7 +27,7 @@ export declare class RichTextEditorComponent extends BaseFormCustomComponent imp
27
27
  get htmlcontent(): any;
28
28
  get datavalue(): any;
29
29
  set datavalue(nv: any);
30
- constructor(inj: Injector, sanitizePipe: SanitizePipe, ngZone: NgZone);
30
+ constructor(inj: Injector, sanitizePipe: SanitizePipe, ngZone: NgZone, explicitContext: any);
31
31
  ngOnInit(): void;
32
32
  initEditor(): void;
33
33
  getDefaultOptions(): {
@@ -50,6 +50,6 @@ export declare class RichTextEditorComponent extends BaseFormCustomComponent imp
50
50
  undo(): void;
51
51
  focus(): void;
52
52
  ngOnDestroy(): void;
53
- static ɵfac: i0.ɵɵFactoryDeclaration<RichTextEditorComponent, never>;
53
+ static ɵfac: i0.ɵɵFactoryDeclaration<RichTextEditorComponent, [null, null, null, { optional: true; }]>;
54
54
  static ɵcmp: i0.ɵɵComponentDeclaration<RichTextEditorComponent, "div[wmRichTextEditor]", ["wmRichTextEditor"], {}, {}, never, never, false, never>;
55
55
  }
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('ngx-bootstrap/typeahead'), require('@wm/components/base'), require('rxjs'), require('rxjs/operators'), require('@wm/core'), require('@wm/components/input')) :
3
- typeof define === 'function' && define.amd ? define(['exports', '@angular/core', '@angular/common', '@angular/forms', 'ngx-bootstrap/typeahead', '@wm/components/base', 'rxjs', 'rxjs/operators', '@wm/core', '@wm/components/input'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.wm = global.wm || {}, global.wm.components = global.wm.components || {}, global.wm.components.basic = global.wm.components.basic || {}, global.wm.components.basic.search = {}), global.ng.core, global.ng.common, global.ng.forms, global.typeahead, global.wm.components.base, global.rxjs, global.rxjs.operators, global.wm.core, global.wm.components.input));
5
- })(this, (function (exports, i0, i1$1, i2, i3, i4, rxjs, operators, i1, input) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('ngx-bootstrap/typeahead'), require('@wm/components/base'), require('rxjs'), require('rxjs/operators'), require('@wm/core'), require('@wm/components/input'), require('lodash-es')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', '@angular/core', '@angular/common', '@angular/forms', 'ngx-bootstrap/typeahead', '@wm/components/base', 'rxjs', 'rxjs/operators', '@wm/core', '@wm/components/input', 'lodash-es'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.wm = global.wm || {}, global.wm.components = global.wm.components || {}, global.wm.components.basic = global.wm.components.basic || {}, global.wm.components.basic.search = {}), global.ng.core, global.ng.common, global.ng.forms, global.typeahead, global.wm.components.base, global.rxjs, global.rxjs.operators, global.wm.core, global.wm.components.input, global._));
5
+ })(this, (function (exports, i0, i1$1, i2, i3, i4, rxjs, operators, i1, input, lodashEs) { 'use strict';
6
6
 
7
7
  function _interopNamespaceDefault(e) {
8
8
  var n = Object.create(null);
@@ -79,17 +79,17 @@
79
79
 
80
80
  class LocalDataProvider {
81
81
  applyFilter(entry, queryText, filtername) {
82
- entry = _.isNumber(entry) ? entry.toString() : entry;
83
- if (_.includes(filtername, 'start')) {
84
- return _.startsWith(entry, queryText);
82
+ entry = lodashEs.isNumber(entry) ? entry.toString() : entry;
83
+ if (lodashEs.includes(filtername, 'start')) {
84
+ return lodashEs.startsWith(entry, queryText);
85
85
  }
86
- else if (_.includes(filtername, 'end')) {
87
- return _.endsWith(entry, queryText);
86
+ else if (lodashEs.includes(filtername, 'end')) {
87
+ return lodashEs.endsWith(entry, queryText);
88
88
  }
89
- else if (_.includes(filtername, 'exact')) {
90
- return _.isEqual(entry, queryText);
89
+ else if (lodashEs.includes(filtername, 'exact')) {
90
+ return lodashEs.isEqual(entry, queryText);
91
91
  }
92
- return _.includes(entry, queryText);
92
+ return lodashEs.includes(entry, queryText);
93
93
  }
94
94
  // LocalData filtering is done based on the searchkey.
95
95
  filter(config) {
@@ -97,7 +97,7 @@
97
97
  let casesensitive = config.casesensitive;
98
98
  const matchMode = config.matchMode;
99
99
  // for supporting existing projects
100
- if (matchMode && !_.includes(matchMode, 'ignorecase')) {
100
+ if (matchMode && !lodashEs.includes(matchMode, 'ignorecase')) {
101
101
  casesensitive = true;
102
102
  }
103
103
  let queryText = config.query, filteredData;
@@ -107,13 +107,13 @@
107
107
  * return the filtered data containing the matching string.
108
108
  */
109
109
  if (config.searchKey) {
110
- const keys = _.split(config.searchKey, ',');
111
- filteredData = _.filter(config.dataset, (item) => {
110
+ const keys = lodashEs.split(config.searchKey, ',');
111
+ filteredData = lodashEs.filter(config.dataset, (item) => {
112
112
  return keys.some(key => {
113
- let a = _.get(item, key), b = queryText;
113
+ let a = lodashEs.get(item, key), b = queryText;
114
114
  if (!casesensitive) {
115
- a = _.toLower(_.toString(a));
116
- b = _.toLower(_.toString(b));
115
+ a = lodashEs.toLower(lodashEs.toString(a));
116
+ b = lodashEs.toLower(lodashEs.toString(b));
117
117
  }
118
118
  return this.applyFilter(a, b, matchMode);
119
119
  });
@@ -122,21 +122,23 @@
122
122
  else {
123
123
  // local search on data with array of objects.
124
124
  // Iterate over each item and return the filtered data containing the matching string.
125
- if (_.isArray(entries) && _.isObject(entries[0])) {
126
- filteredData = _.filter(entries, entry => {
127
- let a = _.values(entry).join(' ');
125
+ if (lodashEs.isArray(entries) && lodashEs.isObject(entries[0])) {
126
+ filteredData = lodashEs.filter(entries, entry => {
127
+ let a = lodashEs.values(entry).join(' ');
128
128
  if (!casesensitive) {
129
- a = _.toLower(a);
130
- queryText = _.toLower(queryText);
129
+ a = lodashEs.toLower(a);
130
+ // @ts-ignore
131
+ queryText = lodashEs.toLower(queryText);
131
132
  }
132
133
  return this.applyFilter(a, queryText);
133
134
  });
134
135
  }
135
136
  else {
136
- filteredData = _.filter(entries, entry => {
137
+ filteredData = lodashEs.filter(entries, entry => {
137
138
  if (!casesensitive) {
138
- entry = _.toLower(entry);
139
- queryText = _.toLower(queryText);
139
+ entry = lodashEs.toLower(entry);
140
+ // @ts-ignore
141
+ queryText = lodashEs.toLower(queryText);
140
142
  }
141
143
  return this.applyFilter(entry, queryText, matchMode);
142
144
  });
@@ -166,7 +168,7 @@
166
168
  i4.interpolateBindExpressions(config.viewParent, dataoptions.filterExpr, (filterexpressions) => {
167
169
  requestParams.filterExpr = dataoptions.filterExpr = filterexpressions;
168
170
  dataoptions.filterExpr = filterexpressions;
169
- config.datasource.execute(i1.DataSource.Operation.GET_RELATED_TABLE_DATA, _.assign({ relatedField: dataoptions.relatedField }, requestParams)).then(resolve, reject);
171
+ config.datasource.execute(i1.DataSource.Operation.GET_RELATED_TABLE_DATA, lodashEs.assign({ relatedField: dataoptions.relatedField }, requestParams)).then(resolve, reject);
170
172
  });
171
173
  });
172
174
  }
@@ -177,7 +179,7 @@
177
179
  page: config.page,
178
180
  fields: dataoptions.distinctField,
179
181
  entityName: dataoptions.tableName,
180
- filterFields: _.assign(dataoptions.filterFields, requestParams.filterFields),
182
+ filterFields: lodashEs.assign(dataoptions.filterFields, requestParams.filterFields),
181
183
  filterExpr: i1.getClonedObject(dataoptions.filterExpr || {})
182
184
  });
183
185
  }
@@ -201,7 +203,7 @@
201
203
  // in case data received is value as string then add that string value to object and convert object into array
202
204
  if (tempResponse) {
203
205
  const tempObj = {};
204
- _.set(tempObj, operationResult, tempResponse);
206
+ lodashEs.set(tempObj, operationResult, tempResponse);
205
207
  data = [tempObj]; // convert data into an array having tempObj
206
208
  }
207
209
  else {
@@ -214,7 +216,7 @@
214
216
  return [];
215
217
  }
216
218
  isLastPageForDistinctApi(data, page, totalElements, _isLastPage) {
217
- return page > 1 && !_isLastPage && _.isEmpty(data) && totalElements === i1.AppConstants.INT_MAX_VALUE;
219
+ return page > 1 && !_isLastPage && lodashEs.isEmpty(data) && totalElements === i1.AppConstants.INT_MAX_VALUE;
218
220
  }
219
221
  // this function processes the response depending on pageOptions, isPageable and prepares the formattedDataset.
220
222
  onFilterSuccess(config, response) {
@@ -223,8 +225,8 @@
223
225
  let _isLastPage;
224
226
  let page;
225
227
  let isPaginatedData;
226
- const expressionArray = _.split(config.binddataset, '.');
227
- const dataExpression = _.slice(expressionArray, _.indexOf(expressionArray, 'dataSet') + 1).join('.');
228
+ const expressionArray = lodashEs.split(config.binddataset, '.');
229
+ const dataExpression = lodashEs.slice(expressionArray, lodashEs.indexOf(expressionArray, 'dataSet') + 1).join('.');
228
230
  const $I = '[$i]';
229
231
  return new Promise((resolve, reject) => {
230
232
  const pageOptions = response.pagination;
@@ -246,19 +248,19 @@
246
248
  }
247
249
  // if data expression exists, extract the data from the expression path
248
250
  if (dataExpression) {
249
- if (_.isArray(data)) {
251
+ if (lodashEs.isArray(data)) {
250
252
  const index = dataExpression.lastIndexOf($I);
251
253
  if (index > -1) {
252
254
  const restExpr = dataExpression.substr(index + 5);
253
255
  formattedData = data.map(datum => i1.findValueOf(datum, restExpr));
254
256
  }
255
257
  }
256
- else if (_.isObject(data)) {
257
- formattedData = _.get(data, dataExpression);
258
+ else if (lodashEs.isObject(data)) {
259
+ formattedData = lodashEs.get(data, dataExpression);
258
260
  }
259
261
  data = formattedData || data;
260
262
  }
261
- if (!_.isArray(data)) {
263
+ if (!lodashEs.isArray(data)) {
262
264
  data = this.getTransformedData(config.datasource, data);
263
265
  }
264
266
  // in case of no data received, resolve the promise with empty array
@@ -536,7 +538,7 @@
536
538
  * after getting the response, set the queryModel and query.
537
539
  */
538
540
  const datavalueSubscription = this.datavalue$.subscribe((val) => {
539
- const query = (_.isArray(val) ? val[0] : val);
541
+ const query = (lodashEs.isArray(val) ? val[0] : val);
540
542
  if (query === null || query === '') {
541
543
  this._modelByValue = '';
542
544
  // reset the query.
@@ -548,7 +550,7 @@
548
550
  if (!this._unsubscribeDv) {
549
551
  this._defaultQueryInvoked = false;
550
552
  // if prev datavalue is not equal to current datavalue then clear the modelByKey and queryModel
551
- if (!_.isObject(val) && this.prevDatavalue !== val) {
553
+ if (!lodashEs.isObject(val) && this.prevDatavalue !== val) {
552
554
  this._modelByKey = undefined;
553
555
  this.query = this.queryModel = '';
554
556
  }
@@ -636,7 +638,7 @@
636
638
  getDataSourceAsObservable(query) {
637
639
  // show dropdown only when there is change in query. This should not apply when dataoptions with filterFields are updated.
638
640
  // when lastResult is not available i.e. still the first call is pending and second query is invoked then do not return.
639
- if (this._lastQuery === query && !_.get(this.dataoptions, 'filterFields') && i1.isDefined(this._lastResult)) {
641
+ if (this._lastQuery === query && !lodashEs.get(this.dataoptions, 'filterFields') && i1.isDefined(this._lastResult)) {
640
642
  this._loadingItems = false;
641
643
  return rxjs.of(this._lastResult);
642
644
  }
@@ -648,12 +650,12 @@
648
650
  */
649
651
  if (this.type === 'autocomplete' && this.searchkey && this.query && this.datavalue) {
650
652
  let bindDisplayLabelArray = [];
651
- const searchKeyArray = _.split(this.searchkey, ',');
653
+ const searchKeyArray = lodashEs.split(this.searchkey, ',');
652
654
  let displaylabel;
653
655
  if (this.binddisplaylabel) {
654
- bindDisplayLabelArray = _.split(this.binddisplaylabel, '+');
656
+ bindDisplayLabelArray = lodashEs.split(this.binddisplaylabel, '+');
655
657
  if (bindDisplayLabelArray.length === 1) {
656
- if (!_.includes(bindDisplayLabelArray[0], '|')) {
658
+ if (!lodashEs.includes(bindDisplayLabelArray[0], '|')) {
657
659
  const regex = /\[(.*?)\]/;
658
660
  displaylabel = regex.exec(bindDisplayLabelArray[0])[1];
659
661
  }
@@ -662,8 +664,8 @@
662
664
  }
663
665
  }
664
666
  }
665
- if ((bindDisplayLabelArray.length > 1 || (displaylabel && !_.includes(searchKeyArray, displaylabel))
666
- || (this.displayexpression && !_.includes(searchKeyArray, this.displayexpression)))) {
667
+ if ((bindDisplayLabelArray.length > 1 || (displaylabel && !lodashEs.includes(searchKeyArray, displaylabel))
668
+ || (this.displayexpression && !lodashEs.includes(searchKeyArray, this.displayexpression)))) {
667
669
  this._loadingItems = false;
668
670
  return rxjs.of([]);
669
671
  }
@@ -672,7 +674,7 @@
672
674
  return rxjs.from(this.getDataSource(query));
673
675
  }
674
676
  handleEvent(node, eventName, eventCallback, locals) {
675
- if (!_.includes(['blur', 'focus', 'select', 'submit', 'change'], eventName)) {
677
+ if (!lodashEs.includes(['blur', 'focus', 'select', 'submit', 'change'], eventName)) {
676
678
  super.handleEvent(node, eventName, eventCallback, locals);
677
679
  }
678
680
  }
@@ -722,7 +724,7 @@
722
724
  // trigger the typeahead change manually to fetch the next set of results.
723
725
  this.typeahead.onInput({
724
726
  target: {
725
- value: _.trim(this.query) || '0' // dummy data to notify the observables
727
+ value: lodashEs.trim(this.query) || '0' // dummy data to notify the observables
726
728
  }
727
729
  });
728
730
  }
@@ -773,7 +775,7 @@
773
775
  // Triggered for enter event
774
776
  handleEnterEvent($event) {
775
777
  // submit event triggered when there is no search results
776
- if (!_.get(this.typeahead, 'matches.length')) {
778
+ if (!lodashEs.get(this.typeahead, 'matches.length')) {
777
779
  this.onSearchSelect($event);
778
780
  }
779
781
  }
@@ -815,7 +817,7 @@
815
817
  }
816
818
  // setting the ulElements, liElement on typeaheadContainer.
817
819
  // as we are using customOption template, liElements are not available on typeaheadContainer so append them explicitly.
818
- const fn = _.debounce(() => {
820
+ const fn = lodashEs.debounce(() => {
819
821
  this._isOpen = true;
820
822
  this.typeaheadContainer = this.typeahead._container || this.typeahead._typeahead.instance;
821
823
  this.typeaheadContainer.liElements = this.liElements;
@@ -833,7 +835,7 @@
833
835
  const screenHeight = this.$element.closest('.app-content').height();
834
836
  dropdownEl.css({ position: 'relative', top: 0, height: screenHeight + 'px' });
835
837
  this.showClosebtn = this.query && this.query !== '';
836
- if (!_.isUndefined(this.dataProvider.isLastPage) && !this.dataProvider.isLastPage) {
838
+ if (!lodashEs.isUndefined(this.dataProvider.isLastPage) && !this.dataProvider.isLastPage) {
837
839
  this.triggerSearch();
838
840
  }
839
841
  }
@@ -888,7 +890,7 @@
888
890
  this.query = '';
889
891
  }
890
892
  if (this.clearData) {
891
- if (_.get(this.typeahead, '_typeahead.isShown')) {
893
+ if (lodashEs.get(this.typeahead, '_typeahead.isShown')) {
892
894
  this.typeahead.hide();
893
895
  }
894
896
  }
@@ -901,9 +903,9 @@
901
903
  updateByDataSource(data) {
902
904
  // value is present but the corresponding key is not found then fetch next set
903
905
  // modelByKey will be set only when datavalue is available inside the localData otherwise make a N/w call.
904
- if (i1.isDefined(data) && !_.isObject(data) && this.datasource && !i1.isDefined(this._modelByKey) && this.datafield !== i4.ALLFIELDS) {
906
+ if (i1.isDefined(data) && !lodashEs.isObject(data) && this.datasource && !i1.isDefined(this._modelByKey) && this.datafield !== i4.ALLFIELDS) {
905
907
  // Avoid making default query if queryModel already exists.
906
- if (i1.isDefined(this.queryModel) && !_.isEmpty(this.queryModel)) {
908
+ if (i1.isDefined(this.queryModel) && !lodashEs.isEmpty(this.queryModel)) {
907
909
  this.updateDatavalueFromQueryModel();
908
910
  return;
909
911
  }
@@ -916,8 +918,8 @@
916
918
  // updates the model value using queryModel
917
919
  updateDatavalueFromQueryModel() {
918
920
  if (i1.isDefined(this.queryModel)) {
919
- this._modelByValue = _.isArray(this.queryModel) ? this.queryModel[0].value : this.queryModel;
920
- this._modelByKey = _.isArray(this.queryModel) ? this.queryModel[0].key : this.queryModel;
921
+ this._modelByValue = lodashEs.isArray(this.queryModel) ? this.queryModel[0].value : this.queryModel;
922
+ this._modelByKey = lodashEs.isArray(this.queryModel) ? this.queryModel[0].key : this.queryModel;
921
923
  this.toBeProcessedDatavalue = undefined;
922
924
  }
923
925
  }
@@ -927,14 +929,14 @@
927
929
  if (this._defaultQueryInvoked && this.searchkey) {
928
930
  return;
929
931
  }
930
- const selectedItem = _.find(this.datasetItems, (item) => {
931
- return (_.isObject(item.value) ? _.isEqual(item.value, data) : (_.toString(item.value)).toLowerCase() === (_.toString(data)).toLowerCase());
932
+ const selectedItem = lodashEs.find(this.datasetItems, (item) => {
933
+ return (lodashEs.isObject(item.value) ? lodashEs.isEqual(item.value, data) : (lodashEs.toString(item.value)).toLowerCase() === (lodashEs.toString(data)).toLowerCase());
932
934
  });
933
935
  // set the default only when it is available in dataset.
934
936
  if (selectedItem) {
935
937
  this.queryModel = [selectedItem];
936
938
  }
937
- else if (this.datafield === i4.ALLFIELDS && _.isObject(data)) {
939
+ else if (this.datafield === i4.ALLFIELDS && lodashEs.isObject(data)) {
938
940
  this.queryModel = this.getTransformedData(i4.extractDataAsArray(data));
939
941
  }
940
942
  else {
@@ -947,7 +949,7 @@
947
949
  }
948
950
  this.updateDatavalueFromQueryModel();
949
951
  // Show the label value on input.
950
- this._lastQuery = this.query = i1.isDefined(this.queryModel) && this.queryModel.length ? _.get(this.queryModel[0], 'label') : '';
952
+ this._lastQuery = this.query = i1.isDefined(this.queryModel) && this.queryModel.length ? lodashEs.get(this.queryModel[0], 'label') : '';
951
953
  this.showClosebtn = (this.query !== '');
952
954
  }
953
955
  // If we have last search results then open dropdown on focus
@@ -1013,19 +1015,19 @@
1013
1015
  this.typeahead.typeaheadOptionsLimit = this.formattedDataset.length;
1014
1016
  }
1015
1017
  // In mobile, trigger the search by default until the results have height upto page height. Other results can be fetched by scrolling
1016
- if (this._isOpen && this.isMobileAutoComplete() && !_.isUndefined(this.dataProvider.isLastPage) && !this.dataProvider.isLastPage) {
1018
+ if (this._isOpen && this.isMobileAutoComplete() && !lodashEs.isUndefined(this.dataProvider.isLastPage) && !this.dataProvider.isLastPage) {
1017
1019
  this.triggerSearch();
1018
1020
  }
1019
1021
  const transformedData = this.getTransformedData(this.formattedDataset, nextItemIndex);
1020
1022
  // result contains the datafield values.
1021
- this.result = _.map(transformedData, 'value');
1023
+ this.result = lodashEs.map(transformedData, 'value');
1022
1024
  return transformedData;
1023
1025
  }, (error) => {
1024
1026
  this._loadingItems = false;
1025
1027
  return [];
1026
1028
  }).then(result => {
1027
1029
  if (this.isScrolled) {
1028
- (_.debounce(() => {
1030
+ (lodashEs.debounce(() => {
1029
1031
  this.setLastActiveMatchAsSelected();
1030
1032
  }, 30))();
1031
1033
  this.isScrolled = false;
@@ -1047,7 +1049,7 @@
1047
1049
  }
1048
1050
  // this method returns the parent context i.e. Page context and not parent component's context.
1049
1051
  getContext(context) {
1050
- if (context && _.get(context, 'widget')) {
1052
+ if (context && lodashEs.get(context, 'widget')) {
1051
1053
  return this.getContext(context.viewParent);
1052
1054
  }
1053
1055
  return context;
@@ -1143,7 +1145,7 @@
1143
1145
  }
1144
1146
  // when dataoptions are provided and there is no displaylabel given then displaylabel is set as the relatedfield
1145
1147
  if (key === 'displaylabel' && this.dataoptions && this.binddisplaylabel === null) {
1146
- this.query = _.get(this._modelByValue, nv) || this._modelByValue;
1148
+ this.query = lodashEs.get(this._modelByValue, nv) || this._modelByValue;
1147
1149
  }
1148
1150
  // when search is disabled, do not load any more data or just clear the data that is already in process or loaded.
1149
1151
  if (key === 'disabled') {
@@ -1152,7 +1154,7 @@
1152
1154
  }
1153
1155
  else {
1154
1156
  this.clearData = true;
1155
- if (_.get(this.typeahead, '_typeahead.isShown')) {
1157
+ if (lodashEs.get(this.typeahead, '_typeahead.isShown')) {
1156
1158
  this.typeahead.hide();
1157
1159
  }
1158
1160
  }
@@ -1209,7 +1211,7 @@
1209
1211
  type: i0.ViewChildren,
1210
1212
  args: ['liElements']
1211
1213
  }] }); })();
1212
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassDebugInfo(SearchComponent, { className: "SearchComponent", filePath: "search.component.ts", lineNumber: 48 }); })();
1214
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassDebugInfo(SearchComponent, { className: "SearchComponent", filePath: "search.component.ts", lineNumber: 61 }); })();
1213
1215
 
1214
1216
  class ScrollableDirective {
1215
1217
  constructor(inj, searchRef) {
@@ -31,4 +31,4 @@ export class DataProvider {
31
31
  });
32
32
  }
33
33
  }
34
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0YS1wcm92aWRlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvbXBvbmVudHMvd2lkZ2V0cy9iYXNpYy9zZWFyY2gvc3JjL2RhdGEtcHJvdmlkZXIvZGF0YS1wcm92aWRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sVUFBVSxDQUFDO0FBRXRDLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLHVCQUF1QixDQUFDO0FBQzFELE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBcUM1RCxNQUFNLE9BQU8sWUFBWTthQVFkLHVCQUFrQixHQUFHLElBQUksa0JBQWtCLEVBQUUsQ0FBQzthQUM5QyxzQkFBaUIsR0FBRyxJQUFJLGlCQUFpQixFQUFFLENBQUM7SUFFNUMsTUFBTSxDQUFDLE1BQTJCO1FBRXJDLElBQUksT0FBcUIsQ0FBQztRQUUxQjs7Ozs7V0FLRztRQUNILE1BQU0sb0JBQW9CLEdBQUcsTUFBTSxDQUFDLFVBQVUsSUFBSSxNQUFNLENBQUMsVUFBVSxDQUFDLE9BQU8sQ0FBQyxVQUFVLENBQUMsU0FBUyxDQUFDLGtCQUFrQixFQUFFLE1BQU0sQ0FBQyxPQUFPLENBQUMsQ0FBQztRQUNySSxJQUFJLENBQUMsTUFBTSxDQUFDLGFBQWEsSUFBSSxDQUFDLE1BQU0sQ0FBQyxXQUFXLElBQUksQ0FBQyxDQ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