@wavemaker-ai/app-ng-runtime 1.0.0-rc.647469

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 (2549) hide show
  1. package/build-task/.npmignore +2 -0
  2. package/build-task/advanced/carousel/carousel-template/carousel-template.build.d.ts +2 -0
  3. package/build-task/advanced/carousel/carousel.build.d.ts +2 -0
  4. package/build-task/advanced/custom-widget-container/custom-widget-container.build.d.ts +2 -0
  5. package/build-task/advanced/custom-widget-wrapper/custom-widget-wrapper.build.d.ts +2 -0
  6. package/build-task/advanced/login/login.build.d.ts +2 -0
  7. package/build-task/advanced/marquee/marquee.build.d.ts +2 -0
  8. package/build-task/basic/anchor/anchor.build.d.ts +2 -0
  9. package/build-task/basic/audio/audio.build.d.ts +2 -0
  10. package/build-task/basic/html/html.build.d.ts +2 -0
  11. package/build-task/basic/icon/icon.build.d.ts +2 -0
  12. package/build-task/basic/iframe/iframe.build.d.ts +2 -0
  13. package/build-task/basic/label/label.build.d.ts +2 -0
  14. package/build-task/basic/picture/picture.build.d.ts +2 -0
  15. package/build-task/basic/progress/progress-bar/progress-bar.build.d.ts +2 -0
  16. package/build-task/basic/progress/progress-circle/progress-circle.build.d.ts +2 -0
  17. package/build-task/basic/rich-text-editor/rich-text-editor.build.d.ts +2 -0
  18. package/build-task/basic/search/search.build.d.ts +2 -0
  19. package/build-task/basic/spinner/spinner.build.d.ts +2 -0
  20. package/build-task/basic/tree/tree.build.d.ts +1 -0
  21. package/build-task/basic/video/video.build.d.ts +2 -0
  22. package/build-task/bundles/index.umd.js +3106 -0
  23. package/build-task/chart/chart.build.d.ts +2 -0
  24. package/build-task/containers/accordion/accordion-pane/accordion-pane.build.d.ts +2 -0
  25. package/build-task/containers/accordion/accordion.build.d.ts +2 -0
  26. package/build-task/containers/container.build.d.ts +2 -0
  27. package/build-task/containers/layout-grid/layout-grid-column/layout-grid-column.build.d.ts +2 -0
  28. package/build-task/containers/layout-grid/layout-grid-row/layout-grid-row.build.d.ts +2 -0
  29. package/build-task/containers/layout-grid/layout-grid.build.d.ts +2 -0
  30. package/build-task/containers/linear-layout/linear-layout-item/linear-layout-item.build.d.ts +2 -0
  31. package/build-task/containers/linear-layout/linear-layout.build.d.ts +2 -0
  32. package/build-task/containers/panel/panel.build.d.ts +2 -0
  33. package/build-task/containers/repeat-template.build.d.ts +2 -0
  34. package/build-task/containers/segmented-control/segment-content/segment-content.build.d.ts +2 -0
  35. package/build-task/containers/segmented-control/segmented-control.build.d.ts +2 -0
  36. package/build-task/containers/tabs/tab-pane/tab-pane.build.d.ts +2 -0
  37. package/build-task/containers/tabs/tabs.build.d.ts +2 -0
  38. package/build-task/containers/tile/tile.build.d.ts +2 -0
  39. package/build-task/containers/wizard/wizard-action/wizard-action.build.d.ts +2 -0
  40. package/build-task/containers/wizard/wizard-step/wizard-step.build.d.ts +2 -0
  41. package/build-task/containers/wizard/wizard.build.d.ts +2 -0
  42. package/build-task/data/card/card-actions/card-actions.build.d.ts +2 -0
  43. package/build-task/data/card/card-content/card-content.build.d.ts +2 -0
  44. package/build-task/data/card/card-footer/card-footer.build.d.ts +2 -0
  45. package/build-task/data/card/card.build.d.ts +2 -0
  46. package/build-task/data/form/form-action/form-action.build.d.ts +2 -0
  47. package/build-task/data/form/form-field/form-field.build.d.ts +2 -0
  48. package/build-task/data/form/form.build.d.ts +2 -0
  49. package/build-task/data/list/list.build.d.ts +2 -0
  50. package/build-task/data/live-table/live-table.build.d.ts +2 -0
  51. package/build-task/data/media-list/media-list-item/media-list-item.build.d.ts +2 -0
  52. package/build-task/data/media-list/media-list.build.d.ts +2 -0
  53. package/build-task/data/pagination/pagination.build.d.ts +2 -0
  54. package/build-task/data/table/table-action/table-action.build.d.ts +2 -0
  55. package/build-task/data/table/table-column/table-column.build.d.ts +2 -0
  56. package/build-task/data/table/table-column-group/table-column-group.build.d.ts +2 -0
  57. package/build-task/data/table/table-row/table-row.build.d.ts +2 -0
  58. package/build-task/data/table/table-row-action/table-row-action.build.d.ts +2 -0
  59. package/build-task/data/table/table.build.d.ts +2 -0
  60. package/build-task/device/barcode-scanner/barcode-scanner.build.d.ts +2 -0
  61. package/build-task/device/camera/camera.build.d.ts +2 -0
  62. package/build-task/dialogs/alert-dialog/alert-dialog.build.d.ts +2 -0
  63. package/build-task/dialogs/base/dialog-footer/dialog-footer.build.d.ts +2 -0
  64. package/build-task/dialogs/confirm-dialog/confirm-dialog.build.d.ts +2 -0
  65. package/build-task/dialogs/design-dialog/dialog.build.d.ts +2 -0
  66. package/build-task/dialogs/iframe-dialog/iframe-dialog.build.d.ts +2 -0
  67. package/build-task/dialogs/login-dialog/login-dialog.build.d.ts +2 -0
  68. package/build-task/dialogs/partial-dialog/partial-dialog.build.d.ts +2 -0
  69. package/build-task/esm2022/advanced/carousel/carousel-template/carousel-template.build.mjs +31 -0
  70. package/build-task/esm2022/advanced/carousel/carousel.build.mjs +45 -0
  71. package/build-task/esm2022/advanced/custom-widget-container/custom-widget-container.build.mjs +15 -0
  72. package/build-task/esm2022/advanced/custom-widget-wrapper/custom-widget-wrapper.build.mjs +26 -0
  73. package/build-task/esm2022/advanced/login/login.build.mjs +15 -0
  74. package/build-task/esm2022/advanced/marquee/marquee.build.mjs +10 -0
  75. package/build-task/esm2022/basic/anchor/anchor.build.mjs +15 -0
  76. package/build-task/esm2022/basic/audio/audio.build.mjs +10 -0
  77. package/build-task/esm2022/basic/html/html.build.mjs +15 -0
  78. package/build-task/esm2022/basic/icon/icon.build.mjs +10 -0
  79. package/build-task/esm2022/basic/iframe/iframe.build.mjs +10 -0
  80. package/build-task/esm2022/basic/label/label.build.mjs +25 -0
  81. package/build-task/esm2022/basic/picture/picture.build.mjs +14 -0
  82. package/build-task/esm2022/basic/progress/progress-bar/progress-bar.build.mjs +35 -0
  83. package/build-task/esm2022/basic/progress/progress-circle/progress-circle.build.mjs +15 -0
  84. package/build-task/esm2022/basic/rich-text-editor/rich-text-editor.build.mjs +15 -0
  85. package/build-task/esm2022/basic/search/search.build.mjs +11 -0
  86. package/build-task/esm2022/basic/spinner/spinner.build.mjs +15 -0
  87. package/build-task/esm2022/basic/tree/tree.build.mjs +9 -0
  88. package/build-task/esm2022/basic/video/video.build.mjs +10 -0
  89. package/build-task/esm2022/chart/chart.build.mjs +10 -0
  90. package/build-task/esm2022/containers/accordion/accordion-pane/accordion-pane.build.mjs +15 -0
  91. package/build-task/esm2022/containers/accordion/accordion.build.mjs +40 -0
  92. package/build-task/esm2022/containers/container.build.mjs +10 -0
  93. package/build-task/esm2022/containers/layout-grid/layout-grid-column/layout-grid-column.build.mjs +10 -0
  94. package/build-task/esm2022/containers/layout-grid/layout-grid-row/layout-grid-row.build.mjs +10 -0
  95. package/build-task/esm2022/containers/layout-grid/layout-grid.build.mjs +10 -0
  96. package/build-task/esm2022/containers/linear-layout/linear-layout-item/linear-layout-item.build.mjs +10 -0
  97. package/build-task/esm2022/containers/linear-layout/linear-layout.build.mjs +21 -0
  98. package/build-task/esm2022/containers/panel/panel.build.mjs +21 -0
  99. package/build-task/esm2022/containers/repeat-template.build.mjs +26 -0
  100. package/build-task/esm2022/containers/segmented-control/segment-content/segment-content.build.mjs +10 -0
  101. package/build-task/esm2022/containers/segmented-control/segmented-control.build.mjs +10 -0
  102. package/build-task/esm2022/containers/tabs/tab-pane/tab-pane.build.mjs +10 -0
  103. package/build-task/esm2022/containers/tabs/tabs.build.mjs +40 -0
  104. package/build-task/esm2022/containers/tile/tile.build.mjs +10 -0
  105. package/build-task/esm2022/containers/wizard/wizard-action/wizard-action.build.mjs +10 -0
  106. package/build-task/esm2022/containers/wizard/wizard-step/wizard-step.build.mjs +16 -0
  107. package/build-task/esm2022/containers/wizard/wizard.build.mjs +39 -0
  108. package/build-task/esm2022/data/card/card-actions/card-actions.build.mjs +10 -0
  109. package/build-task/esm2022/data/card/card-content/card-content.build.mjs +10 -0
  110. package/build-task/esm2022/data/card/card-footer/card-footer.build.mjs +10 -0
  111. package/build-task/esm2022/data/card/card.build.mjs +10 -0
  112. package/build-task/esm2022/data/form/form-action/form-action.build.mjs +12 -0
  113. package/build-task/esm2022/data/form/form-field/form-field.build.mjs +173 -0
  114. package/build-task/esm2022/data/form/form.build.mjs +161 -0
  115. package/build-task/esm2022/data/list/list.build.mjs +89 -0
  116. package/build-task/esm2022/data/live-table/live-table.build.mjs +21 -0
  117. package/build-task/esm2022/data/media-list/media-list-item/media-list-item.build.mjs +10 -0
  118. package/build-task/esm2022/data/media-list/media-list.build.mjs +57 -0
  119. package/build-task/esm2022/data/pagination/pagination.build.mjs +10 -0
  120. package/build-task/esm2022/data/table/table-action/table-action.build.mjs +10 -0
  121. package/build-task/esm2022/data/table/table-column/table-column.build.mjs +294 -0
  122. package/build-task/esm2022/data/table/table-column-group/table-column-group.build.mjs +10 -0
  123. package/build-task/esm2022/data/table/table-row/table-row.build.mjs +34 -0
  124. package/build-task/esm2022/data/table/table-row-action/table-row-action.build.mjs +41 -0
  125. package/build-task/esm2022/data/table/table.build.mjs +86 -0
  126. package/build-task/esm2022/device/barcode-scanner/barcode-scanner.build.mjs +15 -0
  127. package/build-task/esm2022/device/camera/camera.build.mjs +15 -0
  128. package/build-task/esm2022/dialogs/alert-dialog/alert-dialog.build.mjs +10 -0
  129. package/build-task/esm2022/dialogs/base/dialog-footer/dialog-footer.build.mjs +10 -0
  130. package/build-task/esm2022/dialogs/confirm-dialog/confirm-dialog.build.mjs +10 -0
  131. package/build-task/esm2022/dialogs/design-dialog/dialog.build.mjs +17 -0
  132. package/build-task/esm2022/dialogs/iframe-dialog/iframe-dialog.build.mjs +10 -0
  133. package/build-task/esm2022/dialogs/login-dialog/login-dialog.build.mjs +10 -0
  134. package/build-task/esm2022/dialogs/partial-dialog/partial-dialog.build.mjs +40 -0
  135. package/build-task/esm2022/index.mjs +5 -0
  136. package/build-task/esm2022/input/calendar/calendar.build.mjs +13 -0
  137. package/build-task/esm2022/input/chips/chips.build.mjs +11 -0
  138. package/build-task/esm2022/input/color-picker/color-picker.build.mjs +11 -0
  139. package/build-task/esm2022/input/currency/currency.build.mjs +11 -0
  140. package/build-task/esm2022/input/default/button/button.build.mjs +15 -0
  141. package/build-task/esm2022/input/default/button-group/button-group.build.mjs +10 -0
  142. package/build-task/esm2022/input/default/checkbox/checkbox.build.mjs +18 -0
  143. package/build-task/esm2022/input/default/checkboxset/checkboxset.build.mjs +11 -0
  144. package/build-task/esm2022/input/default/composite/composite.build.mjs +10 -0
  145. package/build-task/esm2022/input/default/number/number.build.mjs +11 -0
  146. package/build-task/esm2022/input/default/radioset/radioset.build.mjs +15 -0
  147. package/build-task/esm2022/input/default/select/select.build.mjs +11 -0
  148. package/build-task/esm2022/input/default/switch/switch.build.mjs +15 -0
  149. package/build-task/esm2022/input/default/text/text.build.mjs +11 -0
  150. package/build-task/esm2022/input/default/textarea/textarea.build.mjs +11 -0
  151. package/build-task/esm2022/input/epoch/date/date.build.mjs +11 -0
  152. package/build-task/esm2022/input/epoch/date-time/date-time.build.mjs +11 -0
  153. package/build-task/esm2022/input/epoch/time/time.build.mjs +11 -0
  154. package/build-task/esm2022/input/file-upload/file-upload.build.mjs +20 -0
  155. package/build-task/esm2022/input/rating/rating.build.mjs +11 -0
  156. package/build-task/esm2022/input/slider/slider.build.mjs +11 -0
  157. package/build-task/esm2022/message/message.build.mjs +15 -0
  158. package/build-task/esm2022/navigation/breadcrumb/breadcrumb.build.mjs +10 -0
  159. package/build-task/esm2022/navigation/menu/menu.build.mjs +27 -0
  160. package/build-task/esm2022/navigation/nav/nav-item/nav-item.build.mjs +10 -0
  161. package/build-task/esm2022/navigation/nav/nav.build.mjs +10 -0
  162. package/build-task/esm2022/navigation/navbar/navbar.build.mjs +10 -0
  163. package/build-task/esm2022/navigation/popover/popover.build.mjs +41 -0
  164. package/build-task/esm2022/page/content/content.build.mjs +10 -0
  165. package/build-task/esm2022/page/footer/footer.build.mjs +15 -0
  166. package/build-task/esm2022/page/header/header.build.mjs +15 -0
  167. package/build-task/esm2022/page/layout.build.mjs +15 -0
  168. package/build-task/esm2022/page/left-panel/left-panel.build.mjs +15 -0
  169. package/build-task/esm2022/page/mobile-navbar/mobile-navbar.build.mjs +10 -0
  170. package/build-task/esm2022/page/page-content/page-content.build.mjs +36 -0
  171. package/build-task/esm2022/page/page.build.mjs +59 -0
  172. package/build-task/esm2022/page/right-panel/right-panel.build.mjs +15 -0
  173. package/build-task/esm2022/page/router-outlet/router-outlet.build.mjs +10 -0
  174. package/build-task/esm2022/page/tab-bar/tab-bar.build.mjs +10 -0
  175. package/build-task/esm2022/page/top-nav/top-nav.build.mjs +15 -0
  176. package/build-task/esm2022/partial/partial.build.mjs +25 -0
  177. package/build-task/esm2022/partial-param/partial-param.build.mjs +10 -0
  178. package/build-task/esm2022/prefab/prefab-container/prefab-container.build.mjs +25 -0
  179. package/build-task/esm2022/prefab/prefab.build.mjs +10 -0
  180. package/build-task/esm2022/public_api.mjs +113 -0
  181. package/build-task/esm2022/utils/utils.mjs +69 -0
  182. package/build-task/fesm2022/index.mjs +2998 -0
  183. package/build-task/fesm2022/index.mjs.map +1 -0
  184. package/build-task/index.d.ts +5 -0
  185. package/build-task/input/calendar/calendar.build.d.ts +2 -0
  186. package/build-task/input/chips/chips.build.d.ts +2 -0
  187. package/build-task/input/color-picker/color-picker.build.d.ts +2 -0
  188. package/build-task/input/currency/currency.build.d.ts +2 -0
  189. package/build-task/input/default/button/button.build.d.ts +2 -0
  190. package/build-task/input/default/button-group/button-group.build.d.ts +2 -0
  191. package/build-task/input/default/checkbox/checkbox.build.d.ts +2 -0
  192. package/build-task/input/default/checkboxset/checkboxset.build.d.ts +2 -0
  193. package/build-task/input/default/composite/composite.build.d.ts +2 -0
  194. package/build-task/input/default/number/number.build.d.ts +2 -0
  195. package/build-task/input/default/radioset/radioset.build.d.ts +2 -0
  196. package/build-task/input/default/select/select.build.d.ts +2 -0
  197. package/build-task/input/default/switch/switch.build.d.ts +2 -0
  198. package/build-task/input/default/text/text.build.d.ts +2 -0
  199. package/build-task/input/default/textarea/textarea.build.d.ts +2 -0
  200. package/build-task/input/epoch/date/date.build.d.ts +2 -0
  201. package/build-task/input/epoch/date-time/date-time.build.d.ts +2 -0
  202. package/build-task/input/epoch/time/time.build.d.ts +2 -0
  203. package/build-task/input/file-upload/file-upload.build.d.ts +2 -0
  204. package/build-task/input/rating/rating.build.d.ts +2 -0
  205. package/build-task/input/slider/slider.build.d.ts +2 -0
  206. package/build-task/message/message.build.d.ts +2 -0
  207. package/build-task/navigation/breadcrumb/breadcrumb.build.d.ts +2 -0
  208. package/build-task/navigation/menu/menu.build.d.ts +2 -0
  209. package/build-task/navigation/nav/nav-item/nav-item.build.d.ts +2 -0
  210. package/build-task/navigation/nav/nav.build.d.ts +2 -0
  211. package/build-task/navigation/navbar/navbar.build.d.ts +2 -0
  212. package/build-task/navigation/popover/popover.build.d.ts +2 -0
  213. package/build-task/package.json +25 -0
  214. package/build-task/page/content/content.build.d.ts +2 -0
  215. package/build-task/page/footer/footer.build.d.ts +2 -0
  216. package/build-task/page/header/header.build.d.ts +2 -0
  217. package/build-task/page/layout.build.d.ts +2 -0
  218. package/build-task/page/left-panel/left-panel.build.d.ts +2 -0
  219. package/build-task/page/mobile-navbar/mobile-navbar.build.d.ts +2 -0
  220. package/build-task/page/page-content/page-content.build.d.ts +2 -0
  221. package/build-task/page/page.build.d.ts +2 -0
  222. package/build-task/page/right-panel/right-panel.build.d.ts +2 -0
  223. package/build-task/page/router-outlet/router-outlet.build.d.ts +2 -0
  224. package/build-task/page/tab-bar/tab-bar.build.d.ts +2 -0
  225. package/build-task/page/top-nav/top-nav.build.d.ts +2 -0
  226. package/build-task/partial/partial.build.d.ts +2 -0
  227. package/build-task/partial-param/partial-param.build.d.ts +2 -0
  228. package/build-task/prefab/prefab-container/prefab-container.build.d.ts +2 -0
  229. package/build-task/prefab/prefab.build.d.ts +2 -0
  230. package/build-task/public_api.d.ts +112 -0
  231. package/build-task/utils/utils.d.ts +21 -0
  232. package/components/advanced/carousel/.npmignore +2 -0
  233. package/components/advanced/carousel/bundles/index.umd.js +352 -0
  234. package/components/advanced/carousel/carousel-template/carousel-template.directive.d.ts +9 -0
  235. package/components/advanced/carousel/carousel-template/carousel-template.props.d.ts +1 -0
  236. package/components/advanced/carousel/carousel.animator.d.ts +45 -0
  237. package/components/advanced/carousel/carousel.directive.d.ts +35 -0
  238. package/components/advanced/carousel/carousel.props.d.ts +1 -0
  239. package/components/advanced/carousel/esm2022/carousel-template/carousel-template.directive.mjs +32 -0
  240. package/components/advanced/carousel/esm2022/carousel-template/carousel-template.props.mjs +7 -0
  241. package/components/advanced/carousel/esm2022/carousel.animator.mjs +149 -0
  242. package/components/advanced/carousel/esm2022/carousel.directive.mjs +135 -0
  243. package/components/advanced/carousel/esm2022/carousel.props.mjs +13 -0
  244. package/components/advanced/carousel/esm2022/index.mjs +5 -0
  245. package/components/advanced/carousel/esm2022/public_api.mjs +4 -0
  246. package/components/advanced/carousel/fesm2022/index.mjs +335 -0
  247. package/components/advanced/carousel/fesm2022/index.mjs.map +1 -0
  248. package/components/advanced/carousel/index.d.ts +5 -0
  249. package/components/advanced/carousel/package.json +20 -0
  250. package/components/advanced/carousel/public_api.d.ts +3 -0
  251. package/components/advanced/custom/.npmignore +2 -0
  252. package/components/advanced/custom/bundles/index.umd.js +258 -0
  253. package/components/advanced/custom/custom-widget-container/custom-widget-container.directive.d.ts +29 -0
  254. package/components/advanced/custom/custom-widget-container/custom-widget.props.d.ts +2 -0
  255. package/components/advanced/custom/custom-widget-prop.d.ts +1 -0
  256. package/components/advanced/custom/custom-widget.directive.d.ts +19 -0
  257. package/components/advanced/custom/esm2022/custom-widget-container/custom-widget-container.directive.mjs +156 -0
  258. package/components/advanced/custom/esm2022/custom-widget-container/custom-widget.props.mjs +12 -0
  259. package/components/advanced/custom/esm2022/custom-widget-prop.mjs +8 -0
  260. package/components/advanced/custom/esm2022/custom-widget.directive.mjs +70 -0
  261. package/components/advanced/custom/esm2022/index.mjs +5 -0
  262. package/components/advanced/custom/esm2022/public_api.mjs +3 -0
  263. package/components/advanced/custom/fesm2022/index.mjs +244 -0
  264. package/components/advanced/custom/fesm2022/index.mjs.map +1 -0
  265. package/components/advanced/custom/index.d.ts +5 -0
  266. package/components/advanced/custom/package.json +20 -0
  267. package/components/advanced/custom/public_api.d.ts +2 -0
  268. package/components/advanced/login/.npmignore +2 -0
  269. package/components/advanced/login/bundles/index.umd.js +135 -0
  270. package/components/advanced/login/esm2022/index.mjs +5 -0
  271. package/components/advanced/login/esm2022/login.component.mjs +107 -0
  272. package/components/advanced/login/esm2022/login.props.mjs +8 -0
  273. package/components/advanced/login/esm2022/public_api.mjs +2 -0
  274. package/components/advanced/login/fesm2022/index.mjs +120 -0
  275. package/components/advanced/login/fesm2022/index.mjs.map +1 -0
  276. package/components/advanced/login/index.d.ts +5 -0
  277. package/components/advanced/login/login.component.d.ts +31 -0
  278. package/components/advanced/login/login.props.d.ts +1 -0
  279. package/components/advanced/login/package.json +20 -0
  280. package/components/advanced/login/public_api.d.ts +1 -0
  281. package/components/advanced/marquee/.npmignore +2 -0
  282. package/components/advanced/marquee/bundles/index.umd.js +71 -0
  283. package/components/advanced/marquee/esm2022/index.mjs +5 -0
  284. package/components/advanced/marquee/esm2022/marquee.directive.mjs +36 -0
  285. package/components/advanced/marquee/esm2022/marquee.props.mjs +12 -0
  286. package/components/advanced/marquee/esm2022/public_api.mjs +2 -0
  287. package/components/advanced/marquee/fesm2022/index.mjs +53 -0
  288. package/components/advanced/marquee/fesm2022/index.mjs.map +1 -0
  289. package/components/advanced/marquee/index.d.ts +5 -0
  290. package/components/advanced/marquee/marquee.directive.d.ts +9 -0
  291. package/components/advanced/marquee/marquee.props.d.ts +1 -0
  292. package/components/advanced/marquee/package.json +20 -0
  293. package/components/advanced/marquee/public_api.d.ts +1 -0
  294. package/components/base/.npmignore +2 -0
  295. package/components/base/bundles/index.umd.js +5982 -0
  296. package/components/base/decorators/autolayout.decorator.d.ts +4 -0
  297. package/components/base/decorators/autolayout.props.d.ts +1 -0
  298. package/components/base/directives/show-in-device.directive.d.ts +16 -0
  299. package/components/base/esm2022/decorators/autolayout.decorator.mjs +476 -0
  300. package/components/base/esm2022/decorators/autolayout.props.mjs +20 -0
  301. package/components/base/esm2022/directives/show-in-device.directive.mjs +90 -0
  302. package/components/base/esm2022/index.mjs +5 -0
  303. package/components/base/esm2022/pipes/custom-pipes.mjs +473 -0
  304. package/components/base/esm2022/pipes/image.pipe.mjs +19 -0
  305. package/components/base/esm2022/pipes/sanitize.pipe.mjs +44 -0
  306. package/components/base/esm2022/pipes/trust-as.pipe.mjs +41 -0
  307. package/components/base/esm2022/pipes/wm-pipe.mjs +18 -0
  308. package/components/base/esm2022/public_api.mjs +36 -0
  309. package/components/base/esm2022/utils/autolayout-utils.mjs +261 -0
  310. package/components/base/esm2022/utils/data-utils.mjs +581 -0
  311. package/components/base/esm2022/utils/form-utils.mjs +451 -0
  312. package/components/base/esm2022/utils/live-utils.mjs +216 -0
  313. package/components/base/esm2022/utils/widget-utils.mjs +495 -0
  314. package/components/base/esm2022/widgets/common/base/base-container.component.mjs +80 -0
  315. package/components/base/esm2022/widgets/common/base/base-field-validations.mjs +295 -0
  316. package/components/base/esm2022/widgets/common/base/base.component.mjs +713 -0
  317. package/components/base/esm2022/widgets/common/base/custom-widget-container.directive.mjs +48 -0
  318. package/components/base/esm2022/widgets/common/base/dataset-aware-nav.component.mjs +222 -0
  319. package/components/base/esm2022/widgets/common/base/partial-container.directive.mjs +115 -0
  320. package/components/base/esm2022/widgets/common/base/stylable.component.mjs +11 -0
  321. package/components/base/esm2022/widgets/common/base/text-content.directive.mjs +26 -0
  322. package/components/base/esm2022/widgets/common/container/container.directive.mjs +51 -0
  323. package/components/base/esm2022/widgets/common/container/container.props.mjs +15 -0
  324. package/components/base/esm2022/widgets/common/dialog/dialog.service.mjs +170 -0
  325. package/components/base/esm2022/widgets/common/item-template/item-template.directive.mjs +89 -0
  326. package/components/base/esm2022/widgets/common/item-template/item-template.props.mjs +7 -0
  327. package/components/base/esm2022/widgets/common/lazy-load/lazy-load.directive.mjs +84 -0
  328. package/components/base/esm2022/widgets/common/message/message.component.mjs +104 -0
  329. package/components/base/esm2022/widgets/common/message/message.props.mjs +13 -0
  330. package/components/base/esm2022/widgets/common/partial/partial.directive.mjs +53 -0
  331. package/components/base/esm2022/widgets/common/partial/partial.props.mjs +7 -0
  332. package/components/base/esm2022/widgets/common/partial-param/partial-param.directive.mjs +88 -0
  333. package/components/base/esm2022/widgets/common/pull-to-refresh/pull-to-refresh.mjs +261 -0
  334. package/components/base/esm2022/widgets/common/redraw/redrawable.directive.mjs +40 -0
  335. package/components/base/esm2022/widgets/common/repeat-template/repeat-template.directive.mjs +33 -0
  336. package/components/base/esm2022/widgets/common/repeat-template/repeat-template.props.mjs +7 -0
  337. package/components/base/esm2022/widgets/framework/constants.mjs +36 -0
  338. package/components/base/esm2022/widgets/framework/deviceview.mjs +126 -0
  339. package/components/base/esm2022/widgets/framework/property-change-handler.mjs +96 -0
  340. package/components/base/esm2022/widgets/framework/styler.mjs +123 -0
  341. package/components/base/esm2022/widgets/framework/types.mjs +8 -0
  342. package/components/base/esm2022/widgets/framework/widget-id-generator.mjs +3 -0
  343. package/components/base/esm2022/widgets/framework/widget-props.mjs +35 -0
  344. package/components/base/esm2022/widgets/framework/widget-proxy-provider.mjs +75 -0
  345. package/components/base/esm2022/widgets/framework/widget-registry.mjs +49 -0
  346. package/components/base/fesm2022/index.mjs +5858 -0
  347. package/components/base/fesm2022/index.mjs.map +1 -0
  348. package/components/base/index.d.ts +5 -0
  349. package/components/base/package.json +28 -0
  350. package/components/base/pipes/custom-pipes.d.ts +104 -0
  351. package/components/base/pipes/image.pipe.d.ts +7 -0
  352. package/components/base/pipes/sanitize.pipe.d.ts +10 -0
  353. package/components/base/pipes/trust-as.pipe.d.ts +10 -0
  354. package/components/base/pipes/wm-pipe.d.ts +9 -0
  355. package/components/base/public_api.d.ts +35 -0
  356. package/components/base/utils/autolayout-utils.d.ts +29 -0
  357. package/components/base/utils/data-utils.d.ts +181 -0
  358. package/components/base/utils/form-utils.d.ts +85 -0
  359. package/components/base/utils/live-utils.d.ts +65 -0
  360. package/components/base/utils/widget-utils.d.ts +120 -0
  361. package/components/base/widgets/common/base/base-container.component.d.ts +16 -0
  362. package/components/base/widgets/common/base/base-field-validations.d.ts +27 -0
  363. package/components/base/widgets/common/base/base.component.d.ts +276 -0
  364. package/components/base/widgets/common/base/custom-widget-container.directive.d.ts +15 -0
  365. package/components/base/widgets/common/base/dataset-aware-nav.component.d.ts +77 -0
  366. package/components/base/widgets/common/base/partial-container.directive.d.ts +22 -0
  367. package/components/base/widgets/common/base/stylable.component.d.ts +54 -0
  368. package/components/base/widgets/common/base/text-content.directive.d.ts +9 -0
  369. package/components/base/widgets/common/container/container.directive.d.ts +12 -0
  370. package/components/base/widgets/common/container/container.props.d.ts +1 -0
  371. package/components/base/widgets/common/dialog/dialog.service.d.ts +54 -0
  372. package/components/base/widgets/common/item-template/item-template.directive.d.ts +32 -0
  373. package/components/base/widgets/common/item-template/item-template.props.d.ts +1 -0
  374. package/components/base/widgets/common/lazy-load/lazy-load.directive.d.ts +15 -0
  375. package/components/base/widgets/common/message/message.component.d.ts +19 -0
  376. package/components/base/widgets/common/message/message.props.d.ts +1 -0
  377. package/components/base/widgets/common/partial/partial.directive.d.ts +15 -0
  378. package/components/base/widgets/common/partial/partial.props.d.ts +1 -0
  379. package/components/base/widgets/common/partial-param/partial-param.directive.d.ts +21 -0
  380. package/components/base/widgets/common/pull-to-refresh/pull-to-refresh.d.ts +48 -0
  381. package/components/base/widgets/common/redraw/redrawable.directive.d.ts +8 -0
  382. package/components/base/widgets/common/repeat-template/repeat-template.directive.d.ts +9 -0
  383. package/components/base/widgets/common/repeat-template/repeat-template.props.d.ts +1 -0
  384. package/components/base/widgets/framework/constants.d.ts +16 -0
  385. package/components/base/widgets/framework/deviceview.d.ts +1 -0
  386. package/components/base/widgets/framework/property-change-handler.d.ts +8 -0
  387. package/components/base/widgets/framework/styler.d.ts +59 -0
  388. package/components/base/widgets/framework/types.d.ts +23 -0
  389. package/components/base/widgets/framework/widget-id-generator.d.ts +2 -0
  390. package/components/base/widgets/framework/widget-props.d.ts +12 -0
  391. package/components/base/widgets/framework/widget-proxy-provider.d.ts +11 -0
  392. package/components/base/widgets/framework/widget-registry.d.ts +14 -0
  393. package/components/basic/anchor/.npmignore +2 -0
  394. package/components/basic/anchor/anchor.component.d.ts +37 -0
  395. package/components/basic/anchor/anchor.props.d.ts +1 -0
  396. package/components/basic/anchor/bundles/index.umd.js +204 -0
  397. package/components/basic/anchor/esm2022/anchor.component.mjs +155 -0
  398. package/components/basic/anchor/esm2022/anchor.props.mjs +27 -0
  399. package/components/basic/anchor/esm2022/index.mjs +5 -0
  400. package/components/basic/anchor/esm2022/public_api.mjs +2 -0
  401. package/components/basic/anchor/fesm2022/index.mjs +187 -0
  402. package/components/basic/anchor/fesm2022/index.mjs.map +1 -0
  403. package/components/basic/anchor/index.d.ts +5 -0
  404. package/components/basic/anchor/package.json +20 -0
  405. package/components/basic/anchor/public_api.d.ts +1 -0
  406. package/components/basic/audio/.npmignore +2 -0
  407. package/components/basic/audio/audio.component.d.ts +20 -0
  408. package/components/basic/audio/audio.props.d.ts +1 -0
  409. package/components/basic/audio/bundles/index.umd.js +83 -0
  410. package/components/basic/audio/esm2022/audio.component.mjs +41 -0
  411. package/components/basic/audio/esm2022/audio.props.mjs +19 -0
  412. package/components/basic/audio/esm2022/index.mjs +5 -0
  413. package/components/basic/audio/esm2022/public_api.mjs +2 -0
  414. package/components/basic/audio/fesm2022/index.mjs +65 -0
  415. package/components/basic/audio/fesm2022/index.mjs.map +1 -0
  416. package/components/basic/audio/index.d.ts +5 -0
  417. package/components/basic/audio/package.json +20 -0
  418. package/components/basic/audio/public_api.d.ts +1 -0
  419. package/components/basic/html/.npmignore +2 -0
  420. package/components/basic/html/bundles/index.umd.js +122 -0
  421. package/components/basic/html/esm2022/html.directive.mjs +88 -0
  422. package/components/basic/html/esm2022/html.props.mjs +12 -0
  423. package/components/basic/html/esm2022/index.mjs +5 -0
  424. package/components/basic/html/esm2022/public_api.mjs +2 -0
  425. package/components/basic/html/fesm2022/index.mjs +105 -0
  426. package/components/basic/html/fesm2022/index.mjs.map +1 -0
  427. package/components/basic/html/html.directive.d.ts +14 -0
  428. package/components/basic/html/html.props.d.ts +1 -0
  429. package/components/basic/html/index.d.ts +5 -0
  430. package/components/basic/html/package.json +20 -0
  431. package/components/basic/html/public_api.d.ts +1 -0
  432. package/components/basic/icon/.npmignore +2 -0
  433. package/components/basic/icon/bundles/index.umd.js +80 -0
  434. package/components/basic/icon/esm2022/icon.component.mjs +38 -0
  435. package/components/basic/icon/esm2022/icon.props.mjs +19 -0
  436. package/components/basic/icon/esm2022/index.mjs +5 -0
  437. package/components/basic/icon/esm2022/public_api.mjs +2 -0
  438. package/components/basic/icon/fesm2022/index.mjs +62 -0
  439. package/components/basic/icon/fesm2022/index.mjs.map +1 -0
  440. package/components/basic/icon/icon.component.d.ts +15 -0
  441. package/components/basic/icon/icon.props.d.ts +1 -0
  442. package/components/basic/icon/index.d.ts +5 -0
  443. package/components/basic/icon/package.json +20 -0
  444. package/components/basic/icon/public_api.d.ts +1 -0
  445. package/components/basic/iframe/.npmignore +2 -0
  446. package/components/basic/iframe/bundles/index.umd.js +101 -0
  447. package/components/basic/iframe/esm2022/iframe.component.mjs +65 -0
  448. package/components/basic/iframe/esm2022/iframe.props.mjs +15 -0
  449. package/components/basic/iframe/esm2022/index.mjs +5 -0
  450. package/components/basic/iframe/esm2022/public_api.mjs +2 -0
  451. package/components/basic/iframe/fesm2022/index.mjs +84 -0
  452. package/components/basic/iframe/fesm2022/index.mjs.map +1 -0
  453. package/components/basic/iframe/iframe.component.d.ts +26 -0
  454. package/components/basic/iframe/iframe.props.d.ts +1 -0
  455. package/components/basic/iframe/index.d.ts +5 -0
  456. package/components/basic/iframe/package.json +20 -0
  457. package/components/basic/iframe/public_api.d.ts +1 -0
  458. package/components/basic/label/.npmignore +2 -0
  459. package/components/basic/label/bundles/index.umd.js +129 -0
  460. package/components/basic/label/esm2022/index.mjs +5 -0
  461. package/components/basic/label/esm2022/label.directive.mjs +91 -0
  462. package/components/basic/label/esm2022/label.props.mjs +17 -0
  463. package/components/basic/label/esm2022/public_api.mjs +2 -0
  464. package/components/basic/label/fesm2022/index.mjs +113 -0
  465. package/components/basic/label/fesm2022/index.mjs.map +1 -0
  466. package/components/basic/label/index.d.ts +5 -0
  467. package/components/basic/label/label.directive.d.ts +12 -0
  468. package/components/basic/label/label.props.d.ts +1 -0
  469. package/components/basic/label/package.json +20 -0
  470. package/components/basic/label/public_api.d.ts +1 -0
  471. package/components/basic/picture/.npmignore +2 -0
  472. package/components/basic/picture/bundles/index.umd.js +138 -0
  473. package/components/basic/picture/esm2022/index.mjs +5 -0
  474. package/components/basic/picture/esm2022/picture.directive.mjs +93 -0
  475. package/components/basic/picture/esm2022/picture.props.mjs +23 -0
  476. package/components/basic/picture/esm2022/public_api.mjs +2 -0
  477. package/components/basic/picture/fesm2022/index.mjs +121 -0
  478. package/components/basic/picture/fesm2022/index.mjs.map +1 -0
  479. package/components/basic/picture/index.d.ts +5 -0
  480. package/components/basic/picture/package.json +20 -0
  481. package/components/basic/picture/picture.directive.d.ts +19 -0
  482. package/components/basic/picture/picture.props.d.ts +1 -0
  483. package/components/basic/picture/public_api.d.ts +1 -0
  484. package/components/basic/progress/progress-bar/.npmignore +2 -0
  485. package/components/basic/progress/progress-bar/bundles/index.umd.js +170 -0
  486. package/components/basic/progress/progress-bar/esm2022/index.mjs +5 -0
  487. package/components/basic/progress/progress-bar/esm2022/progress-bar.component.mjs +130 -0
  488. package/components/basic/progress/progress-bar/esm2022/progress-bar.props.mjs +19 -0
  489. package/components/basic/progress/progress-bar/esm2022/public_api.mjs +2 -0
  490. package/components/basic/progress/progress-bar/fesm2022/index.mjs +154 -0
  491. package/components/basic/progress/progress-bar/fesm2022/index.mjs.map +1 -0
  492. package/components/basic/progress/progress-bar/index.d.ts +5 -0
  493. package/components/basic/progress/progress-bar/package.json +20 -0
  494. package/components/basic/progress/progress-bar/progress-bar.component.d.ts +43 -0
  495. package/components/basic/progress/progress-bar/progress-bar.props.d.ts +1 -0
  496. package/components/basic/progress/progress-bar/public_api.d.ts +1 -0
  497. package/components/basic/progress/progress-circle/.npmignore +2 -0
  498. package/components/basic/progress/progress-circle/bundles/index.umd.js +171 -0
  499. package/components/basic/progress/progress-circle/esm2022/index.mjs +5 -0
  500. package/components/basic/progress/progress-circle/esm2022/progress-circle.component.mjs +130 -0
  501. package/components/basic/progress/progress-circle/esm2022/progress-circle.props.mjs +21 -0
  502. package/components/basic/progress/progress-circle/esm2022/public_api.mjs +2 -0
  503. package/components/basic/progress/progress-circle/fesm2022/index.mjs +155 -0
  504. package/components/basic/progress/progress-circle/fesm2022/index.mjs.map +1 -0
  505. package/components/basic/progress/progress-circle/index.d.ts +5 -0
  506. package/components/basic/progress/progress-circle/package.json +20 -0
  507. package/components/basic/progress/progress-circle/progress-circle.component.d.ts +40 -0
  508. package/components/basic/progress/progress-circle/progress-circle.props.d.ts +1 -0
  509. package/components/basic/progress/progress-circle/public_api.d.ts +1 -0
  510. package/components/basic/progress/progress-utils/.npmignore +2 -0
  511. package/components/basic/progress/progress-utils/bundles/index.umd.js +35 -0
  512. package/components/basic/progress/progress-utils/esm2022/index.mjs +5 -0
  513. package/components/basic/progress/progress-utils/esm2022/progress-utils.mjs +25 -0
  514. package/components/basic/progress/progress-utils/esm2022/public_api.mjs +2 -0
  515. package/components/basic/progress/progress-utils/fesm2022/index.mjs +32 -0
  516. package/components/basic/progress/progress-utils/fesm2022/index.mjs.map +1 -0
  517. package/components/basic/progress/progress-utils/index.d.ts +5 -0
  518. package/components/basic/progress/progress-utils/package.json +20 -0
  519. package/components/basic/progress/progress-utils/progress-utils.d.ts +3 -0
  520. package/components/basic/progress/progress-utils/public_api.d.ts +1 -0
  521. package/components/basic/rich-text-editor/.npmignore +2 -0
  522. package/components/basic/rich-text-editor/bundles/index.umd.js +236 -0
  523. package/components/basic/rich-text-editor/esm2022/index.mjs +5 -0
  524. package/components/basic/rich-text-editor/esm2022/public_api.mjs +2 -0
  525. package/components/basic/rich-text-editor/esm2022/rich-text-editor.component.mjs +197 -0
  526. package/components/basic/rich-text-editor/esm2022/rich-text-editor.props.mjs +21 -0
  527. package/components/basic/rich-text-editor/fesm2022/index.mjs +222 -0
  528. package/components/basic/rich-text-editor/fesm2022/index.mjs.map +1 -0
  529. package/components/basic/rich-text-editor/index.d.ts +5 -0
  530. package/components/basic/rich-text-editor/package.json +20 -0
  531. package/components/basic/rich-text-editor/public_api.d.ts +1 -0
  532. package/components/basic/rich-text-editor/rich-text-editor.component.d.ts +55 -0
  533. package/components/basic/rich-text-editor/rich-text-editor.props.d.ts +2 -0
  534. package/components/basic/search/.npmignore +2 -0
  535. package/components/basic/search/bundles/index.umd.js +1091 -0
  536. package/components/basic/search/data-provider/data-provider.d.ts +42 -0
  537. package/components/basic/search/data-provider/local-data-provider.d.ts +5 -0
  538. package/components/basic/search/data-provider/remote-data-provider.d.ts +10 -0
  539. package/components/basic/search/esm2022/data-provider/data-provider.mjs +34 -0
  540. package/components/basic/search/esm2022/data-provider/local-data-provider.mjs +77 -0
  541. package/components/basic/search/esm2022/data-provider/remote-data-provider.mjs +124 -0
  542. package/components/basic/search/esm2022/index.mjs +5 -0
  543. package/components/basic/search/esm2022/public_api.mjs +3 -0
  544. package/components/basic/search/esm2022/scrollable.directive.mjs +44 -0
  545. package/components/basic/search/esm2022/search.component.mjs +754 -0
  546. package/components/basic/search/esm2022/search.props.mjs +55 -0
  547. package/components/basic/search/fesm2022/index.mjs +1080 -0
  548. package/components/basic/search/fesm2022/index.mjs.map +1 -0
  549. package/components/basic/search/index.d.ts +5 -0
  550. package/components/basic/search/package.json +20 -0
  551. package/components/basic/search/public_api.d.ts +2 -0
  552. package/components/basic/search/scrollable.directive.d.ts +14 -0
  553. package/components/basic/search/search.component.d.ts +109 -0
  554. package/components/basic/search/search.props.d.ts +2 -0
  555. package/components/basic/spinner/.npmignore +2 -0
  556. package/components/basic/spinner/bundles/index.umd.js +126 -0
  557. package/components/basic/spinner/esm2022/index.mjs +5 -0
  558. package/components/basic/spinner/esm2022/public_api.mjs +2 -0
  559. package/components/basic/spinner/esm2022/spinner.component.mjs +87 -0
  560. package/components/basic/spinner/esm2022/spinner.props.mjs +20 -0
  561. package/components/basic/spinner/fesm2022/index.mjs +111 -0
  562. package/components/basic/spinner/fesm2022/index.mjs.map +1 -0
  563. package/components/basic/spinner/index.d.ts +5 -0
  564. package/components/basic/spinner/package.json +20 -0
  565. package/components/basic/spinner/public_api.d.ts +1 -0
  566. package/components/basic/spinner/spinner.component.d.ts +27 -0
  567. package/components/basic/spinner/spinner.props.d.ts +1 -0
  568. package/components/basic/tree/.npmignore +2 -0
  569. package/components/basic/tree/bundles/index.umd.js +566 -0
  570. package/components/basic/tree/esm2022/index.mjs +5 -0
  571. package/components/basic/tree/esm2022/public_api.mjs +2 -0
  572. package/components/basic/tree/esm2022/tree-node-template-host.component.mjs +33 -0
  573. package/components/basic/tree/esm2022/tree.component.mjs +494 -0
  574. package/components/basic/tree/esm2022/tree.props.mjs +22 -0
  575. package/components/basic/tree/fesm2022/index.mjs +550 -0
  576. package/components/basic/tree/fesm2022/index.mjs.map +1 -0
  577. package/components/basic/tree/index.d.ts +5 -0
  578. package/components/basic/tree/package.json +20 -0
  579. package/components/basic/tree/public_api.d.ts +1 -0
  580. package/components/basic/tree/tree-node-template-host.component.d.ts +7 -0
  581. package/components/basic/tree/tree.component.d.ts +66 -0
  582. package/components/basic/tree/tree.props.d.ts +1 -0
  583. package/components/basic/video/.npmignore +2 -0
  584. package/components/basic/video/bundles/index.umd.js +116 -0
  585. package/components/basic/video/esm2022/index.mjs +5 -0
  586. package/components/basic/video/esm2022/public_api.mjs +2 -0
  587. package/components/basic/video/esm2022/video.component.mjs +70 -0
  588. package/components/basic/video/esm2022/video.props.mjs +24 -0
  589. package/components/basic/video/fesm2022/index.mjs +99 -0
  590. package/components/basic/video/fesm2022/index.mjs.map +1 -0
  591. package/components/basic/video/index.d.ts +5 -0
  592. package/components/basic/video/package.json +20 -0
  593. package/components/basic/video/public_api.d.ts +1 -0
  594. package/components/basic/video/video.component.d.ts +27 -0
  595. package/components/basic/video/video.props.d.ts +1 -0
  596. package/components/chart/.npmignore +2 -0
  597. package/components/chart/bundles/index.umd.js +1747 -0
  598. package/components/chart/chart.component.d.ts +99 -0
  599. package/components/chart/chart.props.d.ts +1 -0
  600. package/components/chart/chart.utils.d.ts +40 -0
  601. package/components/chart/esm2022/chart.component.mjs +982 -0
  602. package/components/chart/esm2022/chart.props.mjs +67 -0
  603. package/components/chart/esm2022/chart.utils.mjs +723 -0
  604. package/components/chart/esm2022/index.mjs +5 -0
  605. package/components/chart/esm2022/public_api.mjs +2 -0
  606. package/components/chart/fesm2022/index.mjs +1774 -0
  607. package/components/chart/fesm2022/index.mjs.map +1 -0
  608. package/components/chart/index.d.ts +5 -0
  609. package/components/chart/package.json +20 -0
  610. package/components/chart/public_api.d.ts +1 -0
  611. package/components/containers/accordion/.npmignore +2 -0
  612. package/components/containers/accordion/accordion-pane/accordion-pane.component.d.ts +50 -0
  613. package/components/containers/accordion/accordion-pane/accordion-pane.props.d.ts +1 -0
  614. package/components/containers/accordion/accordion.directive.d.ts +66 -0
  615. package/components/containers/accordion/accordion.props.d.ts +1 -0
  616. package/components/containers/accordion/bundles/index.umd.js +500 -0
  617. package/components/containers/accordion/esm2022/accordion-pane/accordion-pane.component.mjs +145 -0
  618. package/components/containers/accordion/esm2022/accordion-pane/accordion-pane.props.mjs +22 -0
  619. package/components/containers/accordion/esm2022/accordion.directive.mjs +309 -0
  620. package/components/containers/accordion/esm2022/accordion.props.mjs +16 -0
  621. package/components/containers/accordion/esm2022/index.mjs +5 -0
  622. package/components/containers/accordion/esm2022/public_api.mjs +3 -0
  623. package/components/containers/accordion/fesm2022/index.mjs +486 -0
  624. package/components/containers/accordion/fesm2022/index.mjs.map +1 -0
  625. package/components/containers/accordion/index.d.ts +5 -0
  626. package/components/containers/accordion/package.json +20 -0
  627. package/components/containers/accordion/public_api.d.ts +2 -0
  628. package/components/containers/layout-grid/.npmignore +2 -0
  629. package/components/containers/layout-grid/bundles/index.umd.js +172 -0
  630. package/components/containers/layout-grid/esm2022/index.mjs +5 -0
  631. package/components/containers/layout-grid/esm2022/layout-grid-column/layout-grid-column.directive.mjs +57 -0
  632. package/components/containers/layout-grid/esm2022/layout-grid-column/layout-grid-column.props.mjs +11 -0
  633. package/components/containers/layout-grid/esm2022/layout-grid-row/layout-grid-row.directive.mjs +36 -0
  634. package/components/containers/layout-grid/esm2022/layout-grid-row/layout-grid-row.props.mjs +9 -0
  635. package/components/containers/layout-grid/esm2022/layout-grid.directive.mjs +36 -0
  636. package/components/containers/layout-grid/esm2022/layout-grid.props.mjs +9 -0
  637. package/components/containers/layout-grid/esm2022/public_api.mjs +4 -0
  638. package/components/containers/layout-grid/fesm2022/index.mjs +153 -0
  639. package/components/containers/layout-grid/fesm2022/index.mjs.map +1 -0
  640. package/components/containers/layout-grid/index.d.ts +5 -0
  641. package/components/containers/layout-grid/layout-grid-column/layout-grid-column.directive.d.ts +12 -0
  642. package/components/containers/layout-grid/layout-grid-column/layout-grid-column.props.d.ts +1 -0
  643. package/components/containers/layout-grid/layout-grid-row/layout-grid-row.directive.d.ts +9 -0
  644. package/components/containers/layout-grid/layout-grid-row/layout-grid-row.props.d.ts +1 -0
  645. package/components/containers/layout-grid/layout-grid.directive.d.ts +9 -0
  646. package/components/containers/layout-grid/layout-grid.props.d.ts +1 -0
  647. package/components/containers/layout-grid/package.json +20 -0
  648. package/components/containers/layout-grid/public_api.d.ts +3 -0
  649. package/components/containers/linear-layout/.npmignore +2 -0
  650. package/components/containers/linear-layout/bundles/index.umd.js +186 -0
  651. package/components/containers/linear-layout/esm2022/index.mjs +5 -0
  652. package/components/containers/linear-layout/esm2022/linear-layout-item/linear-layout-item.directive.mjs +44 -0
  653. package/components/containers/linear-layout/esm2022/linear-layout-item/linear-layout-item.props.mjs +10 -0
  654. package/components/containers/linear-layout/esm2022/linear-layout.directive.mjs +100 -0
  655. package/components/containers/linear-layout/esm2022/linear-layout.props.mjs +13 -0
  656. package/components/containers/linear-layout/esm2022/public_api.mjs +3 -0
  657. package/components/containers/linear-layout/fesm2022/index.mjs +167 -0
  658. package/components/containers/linear-layout/fesm2022/index.mjs.map +1 -0
  659. package/components/containers/linear-layout/index.d.ts +5 -0
  660. package/components/containers/linear-layout/linear-layout-item/linear-layout-item.directive.d.ts +10 -0
  661. package/components/containers/linear-layout/linear-layout-item/linear-layout-item.props.d.ts +1 -0
  662. package/components/containers/linear-layout/linear-layout.directive.d.ts +16 -0
  663. package/components/containers/linear-layout/linear-layout.props.d.ts +1 -0
  664. package/components/containers/linear-layout/package.json +20 -0
  665. package/components/containers/linear-layout/public_api.d.ts +2 -0
  666. package/components/containers/panel/.npmignore +2 -0
  667. package/components/containers/panel/bundles/index.umd.js +223 -0
  668. package/components/containers/panel/esm2022/index.mjs +5 -0
  669. package/components/containers/panel/esm2022/panel.component.mjs +168 -0
  670. package/components/containers/panel/esm2022/panel.props.mjs +38 -0
  671. package/components/containers/panel/esm2022/public_api.mjs +2 -0
  672. package/components/containers/panel/fesm2022/index.mjs +210 -0
  673. package/components/containers/panel/fesm2022/index.mjs.map +1 -0
  674. package/components/containers/panel/index.d.ts +5 -0
  675. package/components/containers/panel/package.json +20 -0
  676. package/components/containers/panel/panel.component.d.ts +43 -0
  677. package/components/containers/panel/panel.props.d.ts +1 -0
  678. package/components/containers/panel/public_api.d.ts +1 -0
  679. package/components/containers/tabs/.npmignore +2 -0
  680. package/components/containers/tabs/bundles/index.umd.js +788 -0
  681. package/components/containers/tabs/esm2022/index.mjs +5 -0
  682. package/components/containers/tabs/esm2022/public_api.mjs +3 -0
  683. package/components/containers/tabs/esm2022/tab-pane/tab-pane.component.mjs +179 -0
  684. package/components/containers/tabs/esm2022/tab-pane/tab-pane.props.mjs +22 -0
  685. package/components/containers/tabs/esm2022/tabs.animator.mjs +83 -0
  686. package/components/containers/tabs/esm2022/tabs.component.mjs +478 -0
  687. package/components/containers/tabs/esm2022/tabs.props.mjs +20 -0
  688. package/components/containers/tabs/fesm2022/index.mjs +775 -0
  689. package/components/containers/tabs/fesm2022/index.mjs.map +1 -0
  690. package/components/containers/tabs/index.d.ts +5 -0
  691. package/components/containers/tabs/package.json +20 -0
  692. package/components/containers/tabs/public_api.d.ts +2 -0
  693. package/components/containers/tabs/tab-pane/tab-pane.component.d.ts +41 -0
  694. package/components/containers/tabs/tab-pane/tab-pane.props.d.ts +1 -0
  695. package/components/containers/tabs/tabs.animator.d.ts +30 -0
  696. package/components/containers/tabs/tabs.component.d.ts +87 -0
  697. package/components/containers/tabs/tabs.props.d.ts +1 -0
  698. package/components/containers/tile/.npmignore +2 -0
  699. package/components/containers/tile/bundles/index.umd.js +68 -0
  700. package/components/containers/tile/esm2022/index.mjs +5 -0
  701. package/components/containers/tile/esm2022/public_api.mjs +2 -0
  702. package/components/containers/tile/esm2022/tile.directive.mjs +33 -0
  703. package/components/containers/tile/esm2022/tile.props.mjs +12 -0
  704. package/components/containers/tile/fesm2022/index.mjs +50 -0
  705. package/components/containers/tile/fesm2022/index.mjs.map +1 -0
  706. package/components/containers/tile/index.d.ts +5 -0
  707. package/components/containers/tile/package.json +20 -0
  708. package/components/containers/tile/public_api.d.ts +1 -0
  709. package/components/containers/tile/tile.directive.d.ts +9 -0
  710. package/components/containers/tile/tile.props.d.ts +1 -0
  711. package/components/containers/wizard/.npmignore +2 -0
  712. package/components/containers/wizard/bundles/index.umd.js +1074 -0
  713. package/components/containers/wizard/esm2022/index.mjs +5 -0
  714. package/components/containers/wizard/esm2022/public_api.mjs +4 -0
  715. package/components/containers/wizard/esm2022/wizard-action/wizard-action.directive.mjs +35 -0
  716. package/components/containers/wizard/esm2022/wizard-action/wizard-action.props.mjs +9 -0
  717. package/components/containers/wizard/esm2022/wizard-step/wizard-step.component.mjs +182 -0
  718. package/components/containers/wizard/esm2022/wizard-step/wizard-step.props.mjs +17 -0
  719. package/components/containers/wizard/esm2022/wizard.component.mjs +801 -0
  720. package/components/containers/wizard/esm2022/wizard.props.mjs +22 -0
  721. package/components/containers/wizard/fesm2022/index.mjs +1058 -0
  722. package/components/containers/wizard/fesm2022/index.mjs.map +1 -0
  723. package/components/containers/wizard/index.d.ts +5 -0
  724. package/components/containers/wizard/package.json +20 -0
  725. package/components/containers/wizard/public_api.d.ts +3 -0
  726. package/components/containers/wizard/wizard-action/wizard-action.directive.d.ts +9 -0
  727. package/components/containers/wizard/wizard-action/wizard-action.props.d.ts +1 -0
  728. package/components/containers/wizard/wizard-step/wizard-step.component.d.ts +59 -0
  729. package/components/containers/wizard/wizard-step/wizard-step.props.d.ts +1 -0
  730. package/components/containers/wizard/wizard.component.d.ts +192 -0
  731. package/components/containers/wizard/wizard.props.d.ts +1 -0
  732. package/components/data/card/.npmignore +2 -0
  733. package/components/data/card/bundles/index.umd.js +237 -0
  734. package/components/data/card/card-actions/card-actions.directive.d.ts +9 -0
  735. package/components/data/card/card-actions/card-actions.props.d.ts +1 -0
  736. package/components/data/card/card-content/card-content.component.d.ts +12 -0
  737. package/components/data/card/card-content/card-content.props.d.ts +1 -0
  738. package/components/data/card/card-footer/card-footer.directive.d.ts +9 -0
  739. package/components/data/card/card-footer/card-footer.props.d.ts +1 -0
  740. package/components/data/card/card.component.d.ts +23 -0
  741. package/components/data/card/card.props.d.ts +1 -0
  742. package/components/data/card/esm2022/card-actions/card-actions.directive.mjs +31 -0
  743. package/components/data/card/esm2022/card-actions/card-actions.props.mjs +9 -0
  744. package/components/data/card/esm2022/card-content/card-content.component.mjs +43 -0
  745. package/components/data/card/esm2022/card-content/card-content.props.mjs +10 -0
  746. package/components/data/card/esm2022/card-footer/card-footer.directive.mjs +31 -0
  747. package/components/data/card/esm2022/card-footer/card-footer.props.mjs +9 -0
  748. package/components/data/card/esm2022/card.component.mjs +75 -0
  749. package/components/data/card/esm2022/card.props.mjs +24 -0
  750. package/components/data/card/esm2022/index.mjs +5 -0
  751. package/components/data/card/esm2022/public_api.mjs +5 -0
  752. package/components/data/card/fesm2022/index.mjs +220 -0
  753. package/components/data/card/fesm2022/index.mjs.map +1 -0
  754. package/components/data/card/index.d.ts +5 -0
  755. package/components/data/card/package.json +20 -0
  756. package/components/data/card/public_api.d.ts +4 -0
  757. package/components/data/form/.npmignore +2 -0
  758. package/components/data/form/bundles/index.umd.js +3308 -0
  759. package/components/data/form/esm2022/form-action/form-action.directive.mjs +86 -0
  760. package/components/data/form/esm2022/form-action/form-action.props.mjs +25 -0
  761. package/components/data/form/esm2022/form-field/form-field.directive.mjs +611 -0
  762. package/components/data/form/esm2022/form-field/form-field.props.mjs +52 -0
  763. package/components/data/form/esm2022/form-widget.directive.mjs +83 -0
  764. package/components/data/form/esm2022/form.component.mjs +1247 -0
  765. package/components/data/form/esm2022/form.props.mjs +64 -0
  766. package/components/data/form/esm2022/index.mjs +5 -0
  767. package/components/data/form/esm2022/live-actions/dependson.directive.mjs +151 -0
  768. package/components/data/form/esm2022/live-actions/live-actions.directive.mjs +173 -0
  769. package/components/data/form/esm2022/live-filter/live-filter.directive.mjs +356 -0
  770. package/components/data/form/esm2022/live-form/live-form.directive.mjs +502 -0
  771. package/components/data/form/esm2022/public_api.mjs +9 -0
  772. package/components/data/form/fesm2022/index.mjs +3296 -0
  773. package/components/data/form/fesm2022/index.mjs.map +1 -0
  774. package/components/data/form/form-action/form-action.directive.d.ts +35 -0
  775. package/components/data/form/form-action/form-action.props.d.ts +1 -0
  776. package/components/data/form/form-field/form-field.directive.d.ts +116 -0
  777. package/components/data/form/form-field/form-field.props.d.ts +1 -0
  778. package/components/data/form/form-widget.directive.d.ts +19 -0
  779. package/components/data/form/form.component.d.ts +211 -0
  780. package/components/data/form/form.props.d.ts +3 -0
  781. package/components/data/form/index.d.ts +5 -0
  782. package/components/data/form/live-actions/dependson.directive.d.ts +27 -0
  783. package/components/data/form/live-actions/live-actions.directive.d.ts +24 -0
  784. package/components/data/form/live-filter/live-filter.directive.d.ts +24 -0
  785. package/components/data/form/live-form/live-form.directive.d.ts +44 -0
  786. package/components/data/form/package.json +20 -0
  787. package/components/data/form/public_api.d.ts +8 -0
  788. package/components/data/list/.npmignore +2 -0
  789. package/components/data/list/bundles/index.umd.js +1610 -0
  790. package/components/data/list/esm2022/index.mjs +5 -0
  791. package/components/data/list/esm2022/list-item.directive.mjs +260 -0
  792. package/components/data/list/esm2022/list-item.props.mjs +7 -0
  793. package/components/data/list/esm2022/list.animator.mjs +233 -0
  794. package/components/data/list/esm2022/list.component.mjs +1294 -0
  795. package/components/data/list/esm2022/list.props.mjs +48 -0
  796. package/components/data/list/esm2022/public_api.mjs +3 -0
  797. package/components/data/list/fesm2022/index.mjs +1602 -0
  798. package/components/data/list/fesm2022/index.mjs.map +1 -0
  799. package/components/data/list/index.d.ts +5 -0
  800. package/components/data/list/list-item.directive.d.ts +53 -0
  801. package/components/data/list/list-item.props.d.ts +1 -0
  802. package/components/data/list/list.animator.d.ts +32 -0
  803. package/components/data/list/list.component.d.ts +226 -0
  804. package/components/data/list/list.props.d.ts +1 -0
  805. package/components/data/list/package.json +20 -0
  806. package/components/data/list/public_api.d.ts +2 -0
  807. package/components/data/live-table/.npmignore +2 -0
  808. package/components/data/live-table/bundles/index.umd.js +273 -0
  809. package/components/data/live-table/esm2022/index.mjs +5 -0
  810. package/components/data/live-table/esm2022/live-table.component.mjs +243 -0
  811. package/components/data/live-table/esm2022/live-table.props.mjs +10 -0
  812. package/components/data/live-table/esm2022/public_api.mjs +2 -0
  813. package/components/data/live-table/fesm2022/index.mjs +258 -0
  814. package/components/data/live-table/fesm2022/index.mjs.map +1 -0
  815. package/components/data/live-table/index.d.ts +5 -0
  816. package/components/data/live-table/live-table.component.d.ts +36 -0
  817. package/components/data/live-table/live-table.props.d.ts +1 -0
  818. package/components/data/live-table/package.json +20 -0
  819. package/components/data/live-table/public_api.d.ts +1 -0
  820. package/components/data/pagination/.npmignore +2 -0
  821. package/components/data/pagination/bundles/index.umd.js +850 -0
  822. package/components/data/pagination/esm2022/index.mjs +5 -0
  823. package/components/data/pagination/esm2022/pagination.component.mjs +817 -0
  824. package/components/data/pagination/esm2022/pagination.props.mjs +23 -0
  825. package/components/data/pagination/esm2022/public_api.mjs +2 -0
  826. package/components/data/pagination/fesm2022/index.mjs +845 -0
  827. package/components/data/pagination/fesm2022/index.mjs.map +1 -0
  828. package/components/data/pagination/index.d.ts +5 -0
  829. package/components/data/pagination/package.json +20 -0
  830. package/components/data/pagination/pagination.component.d.ts +101 -0
  831. package/components/data/pagination/pagination.props.d.ts +1 -0
  832. package/components/data/pagination/public_api.d.ts +1 -0
  833. package/components/data/table/.npmignore +2 -0
  834. package/components/data/table/bundles/index.umd.js +4848 -0
  835. package/components/data/table/esm2022/index.mjs +5 -0
  836. package/components/data/table/esm2022/public_api.mjs +9 -0
  837. package/components/data/table/esm2022/table-action/table-action.directive.mjs +83 -0
  838. package/components/data/table/esm2022/table-action/table-action.props.mjs +25 -0
  839. package/components/data/table/esm2022/table-column/table-column.directive.mjs +744 -0
  840. package/components/data/table/esm2022/table-column/table-column.props.mjs +93 -0
  841. package/components/data/table/esm2022/table-column-group/table-column-group.directive.mjs +80 -0
  842. package/components/data/table/esm2022/table-column-group/table-column-group.props.mjs +11 -0
  843. package/components/data/table/esm2022/table-cud.directive.mjs +484 -0
  844. package/components/data/table/esm2022/table-filter.directive.mjs +706 -0
  845. package/components/data/table/esm2022/table-row/table-row.directive.mjs +68 -0
  846. package/components/data/table/esm2022/table-row/table-row.props.mjs +16 -0
  847. package/components/data/table/esm2022/table-row-action/table-row-action.directive.mjs +81 -0
  848. package/components/data/table/esm2022/table-row-action/table-row-action.props.mjs +20 -0
  849. package/components/data/table/esm2022/table.component.mjs +2406 -0
  850. package/components/data/table/esm2022/table.props.mjs +70 -0
  851. package/components/data/table/fesm2022/index.mjs +4835 -0
  852. package/components/data/table/fesm2022/index.mjs.map +1 -0
  853. package/components/data/table/index.d.ts +5 -0
  854. package/components/data/table/package.json +20 -0
  855. package/components/data/table/public_api.d.ts +8 -0
  856. package/components/data/table/table-action/table-action.directive.d.ts +35 -0
  857. package/components/data/table/table-action/table-action.props.d.ts +1 -0
  858. package/components/data/table/table-column/table-column.directive.d.ts +152 -0
  859. package/components/data/table/table-column/table-column.props.d.ts +1 -0
  860. package/components/data/table/table-column-group/table-column-group.directive.d.ts +23 -0
  861. package/components/data/table/table-column-group/table-column-group.props.d.ts +1 -0
  862. package/components/data/table/table-cud.directive.d.ts +34 -0
  863. package/components/data/table/table-filter.directive.d.ts +35 -0
  864. package/components/data/table/table-row/table-row.directive.d.ts +25 -0
  865. package/components/data/table/table-row/table-row.props.d.ts +1 -0
  866. package/components/data/table/table-row-action/table-row-action.directive.d.ts +31 -0
  867. package/components/data/table/table-row-action/table-row-action.props.d.ts +1 -0
  868. package/components/data/table/table.component.d.ts +419 -0
  869. package/components/data/table/table.props.d.ts +1 -0
  870. package/components/dialogs/alert-dialog/.npmignore +2 -0
  871. package/components/dialogs/alert-dialog/alert-dialog.component.d.ts +23 -0
  872. package/components/dialogs/alert-dialog/alert-dialog.props.d.ts +1 -0
  873. package/components/dialogs/alert-dialog/bundles/index.umd.js +126 -0
  874. package/components/dialogs/alert-dialog/esm2022/alert-dialog.component.mjs +87 -0
  875. package/components/dialogs/alert-dialog/esm2022/alert-dialog.props.mjs +22 -0
  876. package/components/dialogs/alert-dialog/esm2022/index.mjs +5 -0
  877. package/components/dialogs/alert-dialog/esm2022/public_api.mjs +2 -0
  878. package/components/dialogs/alert-dialog/fesm2022/index.mjs +114 -0
  879. package/components/dialogs/alert-dialog/fesm2022/index.mjs.map +1 -0
  880. package/components/dialogs/alert-dialog/index.d.ts +5 -0
  881. package/components/dialogs/alert-dialog/package.json +20 -0
  882. package/components/dialogs/alert-dialog/public_api.d.ts +1 -0
  883. package/components/dialogs/confirm-dialog/.npmignore +2 -0
  884. package/components/dialogs/confirm-dialog/bundles/index.umd.js +129 -0
  885. package/components/dialogs/confirm-dialog/confirm-dialog.component.d.ts +26 -0
  886. package/components/dialogs/confirm-dialog/confirm-dialog.props.d.ts +1 -0
  887. package/components/dialogs/confirm-dialog/esm2022/confirm-dialog.component.mjs +90 -0
  888. package/components/dialogs/confirm-dialog/esm2022/confirm-dialog.props.mjs +22 -0
  889. package/components/dialogs/confirm-dialog/esm2022/index.mjs +5 -0
  890. package/components/dialogs/confirm-dialog/esm2022/public_api.mjs +2 -0
  891. package/components/dialogs/confirm-dialog/fesm2022/index.mjs +117 -0
  892. package/components/dialogs/confirm-dialog/fesm2022/index.mjs.map +1 -0
  893. package/components/dialogs/confirm-dialog/index.d.ts +5 -0
  894. package/components/dialogs/confirm-dialog/package.json +20 -0
  895. package/components/dialogs/confirm-dialog/public_api.d.ts +1 -0
  896. package/components/dialogs/default/.npmignore +2 -0
  897. package/components/dialogs/default/base-dialog.d.ts +45 -0
  898. package/components/dialogs/default/bundles/index.umd.js +379 -0
  899. package/components/dialogs/default/dialog-body/dialog-body.directive.d.ts +13 -0
  900. package/components/dialogs/default/dialog-footer/dialog-footer.directive.d.ts +9 -0
  901. package/components/dialogs/default/dialog-footer/dialog-footer.props.d.ts +1 -0
  902. package/components/dialogs/default/dialog-header/dialog-header.component.d.ts +25 -0
  903. package/components/dialogs/default/esm2022/base-dialog.mjs +184 -0
  904. package/components/dialogs/default/esm2022/dialog-body/dialog-body.directive.mjs +86 -0
  905. package/components/dialogs/default/esm2022/dialog-footer/dialog-footer.directive.mjs +34 -0
  906. package/components/dialogs/default/esm2022/dialog-footer/dialog-footer.props.mjs +9 -0
  907. package/components/dialogs/default/esm2022/dialog-header/dialog-header.component.mjs +62 -0
  908. package/components/dialogs/default/esm2022/index.mjs +5 -0
  909. package/components/dialogs/default/esm2022/public_api.mjs +5 -0
  910. package/components/dialogs/default/fesm2022/index.mjs +364 -0
  911. package/components/dialogs/default/fesm2022/index.mjs.map +1 -0
  912. package/components/dialogs/default/index.d.ts +5 -0
  913. package/components/dialogs/default/package.json +20 -0
  914. package/components/dialogs/default/public_api.d.ts +4 -0
  915. package/components/dialogs/design-dialog/.npmignore +2 -0
  916. package/components/dialogs/design-dialog/bundles/index.umd.js +149 -0
  917. package/components/dialogs/design-dialog/dialog.component.d.ts +17 -0
  918. package/components/dialogs/design-dialog/dialog.props.d.ts +1 -0
  919. package/components/dialogs/design-dialog/esm2022/dialog.component.mjs +108 -0
  920. package/components/dialogs/design-dialog/esm2022/dialog.props.mjs +21 -0
  921. package/components/dialogs/design-dialog/esm2022/index.mjs +5 -0
  922. package/components/dialogs/design-dialog/esm2022/public_api.mjs +2 -0
  923. package/components/dialogs/design-dialog/fesm2022/index.mjs +134 -0
  924. package/components/dialogs/design-dialog/fesm2022/index.mjs.map +1 -0
  925. package/components/dialogs/design-dialog/index.d.ts +5 -0
  926. package/components/dialogs/design-dialog/package.json +20 -0
  927. package/components/dialogs/design-dialog/public_api.d.ts +1 -0
  928. package/components/dialogs/iframe-dialog/.npmignore +2 -0
  929. package/components/dialogs/iframe-dialog/bundles/index.umd.js +119 -0
  930. package/components/dialogs/iframe-dialog/esm2022/iframe-dialog.component.mjs +78 -0
  931. package/components/dialogs/iframe-dialog/esm2022/iframe-dialog.props.mjs +25 -0
  932. package/components/dialogs/iframe-dialog/esm2022/index.mjs +5 -0
  933. package/components/dialogs/iframe-dialog/esm2022/public_api.mjs +2 -0
  934. package/components/dialogs/iframe-dialog/fesm2022/index.mjs +108 -0
  935. package/components/dialogs/iframe-dialog/fesm2022/index.mjs.map +1 -0
  936. package/components/dialogs/iframe-dialog/iframe-dialog.component.d.ts +19 -0
  937. package/components/dialogs/iframe-dialog/iframe-dialog.props.d.ts +1 -0
  938. package/components/dialogs/iframe-dialog/index.d.ts +5 -0
  939. package/components/dialogs/iframe-dialog/package.json +20 -0
  940. package/components/dialogs/iframe-dialog/public_api.d.ts +1 -0
  941. package/components/dialogs/login-dialog/.npmignore +2 -0
  942. package/components/dialogs/login-dialog/bundles/index.umd.js +114 -0
  943. package/components/dialogs/login-dialog/esm2022/index.mjs +5 -0
  944. package/components/dialogs/login-dialog/esm2022/login-dialog.directive.mjs +91 -0
  945. package/components/dialogs/login-dialog/esm2022/public_api.mjs +2 -0
  946. package/components/dialogs/login-dialog/fesm2022/index.mjs +98 -0
  947. package/components/dialogs/login-dialog/fesm2022/index.mjs.map +1 -0
  948. package/components/dialogs/login-dialog/index.d.ts +5 -0
  949. package/components/dialogs/login-dialog/login-dialog.directive.d.ts +23 -0
  950. package/components/dialogs/login-dialog/package.json +20 -0
  951. package/components/dialogs/login-dialog/public_api.d.ts +1 -0
  952. package/components/dialogs/partial-dialog/.npmignore +2 -0
  953. package/components/dialogs/partial-dialog/bundles/index.umd.js +157 -0
  954. package/components/dialogs/partial-dialog/esm2022/index.mjs +5 -0
  955. package/components/dialogs/partial-dialog/esm2022/partial-dialog.component.mjs +119 -0
  956. package/components/dialogs/partial-dialog/esm2022/partial-dialog.props.mjs +22 -0
  957. package/components/dialogs/partial-dialog/esm2022/public_api.mjs +2 -0
  958. package/components/dialogs/partial-dialog/fesm2022/index.mjs +146 -0
  959. package/components/dialogs/partial-dialog/fesm2022/index.mjs.map +1 -0
  960. package/components/dialogs/partial-dialog/index.d.ts +5 -0
  961. package/components/dialogs/partial-dialog/package.json +20 -0
  962. package/components/dialogs/partial-dialog/partial-dialog.component.d.ts +29 -0
  963. package/components/dialogs/partial-dialog/partial-dialog.props.d.ts +1 -0
  964. package/components/dialogs/partial-dialog/public_api.d.ts +1 -0
  965. package/components/input/base-form/.npmignore +2 -0
  966. package/components/input/base-form/base-form.component.d.ts +26 -0
  967. package/components/input/base-form/bundles/index.umd.js +147 -0
  968. package/components/input/base-form/esm2022/base-form.component.mjs +124 -0
  969. package/components/input/base-form/esm2022/index.mjs +5 -0
  970. package/components/input/base-form/esm2022/public_api.mjs +2 -0
  971. package/components/input/base-form/fesm2022/index.mjs +131 -0
  972. package/components/input/base-form/fesm2022/index.mjs.map +1 -0
  973. package/components/input/base-form/index.d.ts +5 -0
  974. package/components/input/base-form/package.json +20 -0
  975. package/components/input/base-form/public_api.d.ts +1 -0
  976. package/components/input/base-form-custom/.npmignore +2 -0
  977. package/components/input/base-form-custom/base-form-custom.component.d.ts +23 -0
  978. package/components/input/base-form-custom/bundles/index.umd.js +129 -0
  979. package/components/input/base-form-custom/esm2022/base-form-custom.component.mjs +105 -0
  980. package/components/input/base-form-custom/esm2022/index.mjs +5 -0
  981. package/components/input/base-form-custom/esm2022/public_api.mjs +2 -0
  982. package/components/input/base-form-custom/fesm2022/index.mjs +112 -0
  983. package/components/input/base-form-custom/fesm2022/index.mjs.map +1 -0
  984. package/components/input/base-form-custom/index.d.ts +5 -0
  985. package/components/input/base-form-custom/package.json +20 -0
  986. package/components/input/base-form-custom/public_api.d.ts +1 -0
  987. package/components/input/button/.npmignore +2 -0
  988. package/components/input/button/bundles/index.umd.js +98 -0
  989. package/components/input/button/button.component.d.ts +19 -0
  990. package/components/input/button/button.props.d.ts +1 -0
  991. package/components/input/button/esm2022/button.component.mjs +50 -0
  992. package/components/input/button/esm2022/button.props.mjs +26 -0
  993. package/components/input/button/esm2022/index.mjs +5 -0
  994. package/components/input/button/esm2022/public_api.mjs +2 -0
  995. package/components/input/button/fesm2022/index.mjs +81 -0
  996. package/components/input/button/fesm2022/index.mjs.map +1 -0
  997. package/components/input/button/index.d.ts +5 -0
  998. package/components/input/button/package.json +20 -0
  999. package/components/input/button/public_api.d.ts +1 -0
  1000. package/components/input/button-group/.npmignore +2 -0
  1001. package/components/input/button-group/bundles/index.umd.js +80 -0
  1002. package/components/input/button-group/button-group.directive.d.ts +11 -0
  1003. package/components/input/button-group/button-group.props.d.ts +1 -0
  1004. package/components/input/button-group/esm2022/button-group.directive.mjs +47 -0
  1005. package/components/input/button-group/esm2022/button-group.props.mjs +10 -0
  1006. package/components/input/button-group/esm2022/index.mjs +5 -0
  1007. package/components/input/button-group/esm2022/public_api.mjs +2 -0
  1008. package/components/input/button-group/fesm2022/index.mjs +62 -0
  1009. package/components/input/button-group/fesm2022/index.mjs.map +1 -0
  1010. package/components/input/button-group/index.d.ts +5 -0
  1011. package/components/input/button-group/package.json +20 -0
  1012. package/components/input/button-group/public_api.d.ts +1 -0
  1013. package/components/input/calendar/.npmignore +2 -0
  1014. package/components/input/calendar/bundles/index.umd.js +655 -0
  1015. package/components/input/calendar/calendar.component.d.ts +128 -0
  1016. package/components/input/calendar/calendar.props.d.ts +1 -0
  1017. package/components/input/calendar/esm2022/calendar.component.mjs +637 -0
  1018. package/components/input/calendar/esm2022/calendar.props.mjs +23 -0
  1019. package/components/input/calendar/esm2022/index.mjs +5 -0
  1020. package/components/input/calendar/esm2022/public_api.mjs +2 -0
  1021. package/components/input/calendar/fesm2022/index.mjs +665 -0
  1022. package/components/input/calendar/fesm2022/index.mjs.map +1 -0
  1023. package/components/input/calendar/index.d.ts +5 -0
  1024. package/components/input/calendar/package.json +20 -0
  1025. package/components/input/calendar/public_api.d.ts +1 -0
  1026. package/components/input/caption-position/.npmignore +2 -0
  1027. package/components/input/caption-position/bundles/index.umd.js +196 -0
  1028. package/components/input/caption-position/caption-position.directive.d.ts +31 -0
  1029. package/components/input/caption-position/esm2022/caption-position.directive.mjs +172 -0
  1030. package/components/input/caption-position/esm2022/index.mjs +5 -0
  1031. package/components/input/caption-position/esm2022/public_api.mjs +2 -0
  1032. package/components/input/caption-position/fesm2022/index.mjs +178 -0
  1033. package/components/input/caption-position/fesm2022/index.mjs.map +1 -0
  1034. package/components/input/caption-position/index.d.ts +5 -0
  1035. package/components/input/caption-position/package.json +20 -0
  1036. package/components/input/caption-position/public_api.d.ts +1 -0
  1037. package/components/input/checkbox/.npmignore +2 -0
  1038. package/components/input/checkbox/bundles/index.umd.js +206 -0
  1039. package/components/input/checkbox/checkbox.component.d.ts +36 -0
  1040. package/components/input/checkbox/checkbox.props.d.ts +2 -0
  1041. package/components/input/checkbox/esm2022/checkbox.component.mjs +158 -0
  1042. package/components/input/checkbox/esm2022/checkbox.props.mjs +30 -0
  1043. package/components/input/checkbox/esm2022/index.mjs +5 -0
  1044. package/components/input/checkbox/esm2022/public_api.mjs +2 -0
  1045. package/components/input/checkbox/fesm2022/index.mjs +191 -0
  1046. package/components/input/checkbox/fesm2022/index.mjs.map +1 -0
  1047. package/components/input/checkbox/index.d.ts +5 -0
  1048. package/components/input/checkbox/package.json +20 -0
  1049. package/components/input/checkbox/public_api.d.ts +1 -0
  1050. package/components/input/checkboxset/.npmignore +2 -0
  1051. package/components/input/checkboxset/bundles/index.umd.js +178 -0
  1052. package/components/input/checkboxset/checkboxset.component.d.ts +24 -0
  1053. package/components/input/checkboxset/checkboxset.props.d.ts +2 -0
  1054. package/components/input/checkboxset/esm2022/checkboxset.component.mjs +125 -0
  1055. package/components/input/checkboxset/esm2022/checkboxset.props.mjs +36 -0
  1056. package/components/input/checkboxset/esm2022/index.mjs +5 -0
  1057. package/components/input/checkboxset/esm2022/public_api.mjs +2 -0
  1058. package/components/input/checkboxset/fesm2022/index.mjs +165 -0
  1059. package/components/input/checkboxset/fesm2022/index.mjs.map +1 -0
  1060. package/components/input/checkboxset/index.d.ts +5 -0
  1061. package/components/input/checkboxset/package.json +20 -0
  1062. package/components/input/checkboxset/public_api.d.ts +1 -0
  1063. package/components/input/chips/.npmignore +2 -0
  1064. package/components/input/chips/bundles/index.umd.js +741 -0
  1065. package/components/input/chips/chips.component.d.ts +87 -0
  1066. package/components/input/chips/chips.props.d.ts +2 -0
  1067. package/components/input/chips/esm2022/chips.component.mjs +676 -0
  1068. package/components/input/chips/esm2022/chips.props.mjs +49 -0
  1069. package/components/input/chips/esm2022/index.mjs +5 -0
  1070. package/components/input/chips/esm2022/public_api.mjs +2 -0
  1071. package/components/input/chips/fesm2022/index.mjs +729 -0
  1072. package/components/input/chips/fesm2022/index.mjs.map +1 -0
  1073. package/components/input/chips/index.d.ts +5 -0
  1074. package/components/input/chips/package.json +20 -0
  1075. package/components/input/chips/public_api.d.ts +1 -0
  1076. package/components/input/color-picker/.npmignore +2 -0
  1077. package/components/input/color-picker/bundles/index.umd.js +145 -0
  1078. package/components/input/color-picker/color-picker.component.d.ts +33 -0
  1079. package/components/input/color-picker/color-picker.props.d.ts +2 -0
  1080. package/components/input/color-picker/esm2022/color-picker.component.mjs +107 -0
  1081. package/components/input/color-picker/esm2022/color-picker.props.mjs +22 -0
  1082. package/components/input/color-picker/esm2022/index.mjs +5 -0
  1083. package/components/input/color-picker/esm2022/public_api.mjs +2 -0
  1084. package/components/input/color-picker/fesm2022/index.mjs +132 -0
  1085. package/components/input/color-picker/fesm2022/index.mjs.map +1 -0
  1086. package/components/input/color-picker/index.d.ts +5 -0
  1087. package/components/input/color-picker/package.json +20 -0
  1088. package/components/input/color-picker/public_api.d.ts +1 -0
  1089. package/components/input/composite/.npmignore +2 -0
  1090. package/components/input/composite/bundles/index.umd.js +120 -0
  1091. package/components/input/composite/composite.directive.d.ts +24 -0
  1092. package/components/input/composite/composite.props.d.ts +1 -0
  1093. package/components/input/composite/esm2022/composite.directive.mjs +88 -0
  1094. package/components/input/composite/esm2022/composite.props.mjs +10 -0
  1095. package/components/input/composite/esm2022/index.mjs +5 -0
  1096. package/components/input/composite/esm2022/public_api.mjs +2 -0
  1097. package/components/input/composite/fesm2022/index.mjs +103 -0
  1098. package/components/input/composite/fesm2022/index.mjs.map +1 -0
  1099. package/components/input/composite/index.d.ts +5 -0
  1100. package/components/input/composite/package.json +20 -0
  1101. package/components/input/composite/public_api.d.ts +1 -0
  1102. package/components/input/currency/.npmignore +2 -0
  1103. package/components/input/currency/bundles/index.umd.js +112 -0
  1104. package/components/input/currency/currency.component.d.ts +28 -0
  1105. package/components/input/currency/currency.props.d.ts +2 -0
  1106. package/components/input/currency/esm2022/currency.component.mjs +67 -0
  1107. package/components/input/currency/esm2022/currency.props.mjs +27 -0
  1108. package/components/input/currency/esm2022/index.mjs +5 -0
  1109. package/components/input/currency/esm2022/public_api.mjs +2 -0
  1110. package/components/input/currency/fesm2022/index.mjs +97 -0
  1111. package/components/input/currency/fesm2022/index.mjs.map +1 -0
  1112. package/components/input/currency/index.d.ts +5 -0
  1113. package/components/input/currency/package.json +20 -0
  1114. package/components/input/currency/public_api.d.ts +1 -0
  1115. package/components/input/dataset-aware-form/.npmignore +2 -0
  1116. package/components/input/dataset-aware-form/bundles/index.umd.js +352 -0
  1117. package/components/input/dataset-aware-form/dataset-aware-form.component.d.ts +76 -0
  1118. package/components/input/dataset-aware-form/esm2022/dataset-aware-form.component.mjs +331 -0
  1119. package/components/input/dataset-aware-form/esm2022/index.mjs +5 -0
  1120. package/components/input/dataset-aware-form/esm2022/public_api.mjs +2 -0
  1121. package/components/input/dataset-aware-form/fesm2022/index.mjs +338 -0
  1122. package/components/input/dataset-aware-form/fesm2022/index.mjs.map +1 -0
  1123. package/components/input/dataset-aware-form/index.d.ts +5 -0
  1124. package/components/input/dataset-aware-form/package.json +20 -0
  1125. package/components/input/dataset-aware-form/public_api.d.ts +1 -0
  1126. package/components/input/epoch/base-date-time/.npmignore +2 -0
  1127. package/components/input/epoch/base-date-time/base-date-time.component.d.ts +246 -0
  1128. package/components/input/epoch/base-date-time/bundles/index.umd.js +1093 -0
  1129. package/components/input/epoch/base-date-time/esm2022/base-date-time.component.mjs +1077 -0
  1130. package/components/input/epoch/base-date-time/esm2022/index.mjs +5 -0
  1131. package/components/input/epoch/base-date-time/esm2022/public_api.mjs +2 -0
  1132. package/components/input/epoch/base-date-time/fesm2022/index.mjs +1084 -0
  1133. package/components/input/epoch/base-date-time/fesm2022/index.mjs.map +1 -0
  1134. package/components/input/epoch/base-date-time/index.d.ts +5 -0
  1135. package/components/input/epoch/base-date-time/package.json +20 -0
  1136. package/components/input/epoch/base-date-time/public_api.d.ts +1 -0
  1137. package/components/input/epoch/date/.npmignore +2 -0
  1138. package/components/input/epoch/date/bundles/index.umd.js +515 -0
  1139. package/components/input/epoch/date/date.component.d.ts +61 -0
  1140. package/components/input/epoch/date/date.props.d.ts +2 -0
  1141. package/components/input/epoch/date/esm2022/date.component.mjs +345 -0
  1142. package/components/input/epoch/date/esm2022/date.props.mjs +43 -0
  1143. package/components/input/epoch/date/esm2022/imaskUtil.mjs +114 -0
  1144. package/components/input/epoch/date/esm2022/index.mjs +5 -0
  1145. package/components/input/epoch/date/esm2022/public_api.mjs +2 -0
  1146. package/components/input/epoch/date/fesm2022/index.mjs +505 -0
  1147. package/components/input/epoch/date/fesm2022/index.mjs.map +1 -0
  1148. package/components/input/epoch/date/imaskUtil.d.ts +92 -0
  1149. package/components/input/epoch/date/index.d.ts +5 -0
  1150. package/components/input/epoch/date/package.json +20 -0
  1151. package/components/input/epoch/date/public_api.d.ts +1 -0
  1152. package/components/input/epoch/date-time/.npmignore +2 -0
  1153. package/components/input/epoch/date-time/bundles/index.umd.js +519 -0
  1154. package/components/input/epoch/date-time/date-time.component.d.ts +109 -0
  1155. package/components/input/epoch/date-time/date-time.props.d.ts +2 -0
  1156. package/components/input/epoch/date-time/esm2022/date-time.component.mjs +459 -0
  1157. package/components/input/epoch/date-time/esm2022/date-time.props.mjs +47 -0
  1158. package/components/input/epoch/date-time/esm2022/index.mjs +5 -0
  1159. package/components/input/epoch/date-time/esm2022/public_api.mjs +2 -0
  1160. package/components/input/epoch/date-time/fesm2022/index.mjs +510 -0
  1161. package/components/input/epoch/date-time/fesm2022/index.mjs.map +1 -0
  1162. package/components/input/epoch/date-time/index.d.ts +5 -0
  1163. package/components/input/epoch/date-time/package.json +20 -0
  1164. package/components/input/epoch/date-time/public_api.d.ts +1 -0
  1165. package/components/input/epoch/date-time-picker/.npmignore +2 -0
  1166. package/components/input/epoch/date-time-picker/bundles/index.umd.js +453 -0
  1167. package/components/input/epoch/date-time-picker/date-time-picker.component.d.ts +80 -0
  1168. package/components/input/epoch/date-time-picker/esm2022/date-time-picker.component.mjs +433 -0
  1169. package/components/input/epoch/date-time-picker/esm2022/index.mjs +5 -0
  1170. package/components/input/epoch/date-time-picker/esm2022/public_api.mjs +2 -0
  1171. package/components/input/epoch/date-time-picker/fesm2022/index.mjs +439 -0
  1172. package/components/input/epoch/date-time-picker/fesm2022/index.mjs.map +1 -0
  1173. package/components/input/epoch/date-time-picker/index.d.ts +5 -0
  1174. package/components/input/epoch/date-time-picker/package.json +20 -0
  1175. package/components/input/epoch/date-time-picker/public_api.d.ts +1 -0
  1176. package/components/input/epoch/picker/.npmignore +2 -0
  1177. package/components/input/epoch/picker/bundles/index.umd.js +192 -0
  1178. package/components/input/epoch/picker/esm2022/index.mjs +5 -0
  1179. package/components/input/epoch/picker/esm2022/picker.component.mjs +165 -0
  1180. package/components/input/epoch/picker/esm2022/public_api.mjs +3 -0
  1181. package/components/input/epoch/picker/fesm2022/index.mjs +172 -0
  1182. package/components/input/epoch/picker/fesm2022/index.mjs.map +1 -0
  1183. package/components/input/epoch/picker/index.d.ts +5 -0
  1184. package/components/input/epoch/picker/package.json +20 -0
  1185. package/components/input/epoch/picker/picker.component.d.ts +36 -0
  1186. package/components/input/epoch/picker/public_api.d.ts +2 -0
  1187. package/components/input/epoch/time/.npmignore +2 -0
  1188. package/components/input/epoch/time/bundles/index.umd.js +401 -0
  1189. package/components/input/epoch/time/esm2022/index.mjs +5 -0
  1190. package/components/input/epoch/time/esm2022/public_api.mjs +2 -0
  1191. package/components/input/epoch/time/esm2022/time.component.mjs +352 -0
  1192. package/components/input/epoch/time/esm2022/time.props.mjs +35 -0
  1193. package/components/input/epoch/time/fesm2022/index.mjs +391 -0
  1194. package/components/input/epoch/time/fesm2022/index.mjs.map +1 -0
  1195. package/components/input/epoch/time/index.d.ts +5 -0
  1196. package/components/input/epoch/time/package.json +20 -0
  1197. package/components/input/epoch/time/public_api.d.ts +1 -0
  1198. package/components/input/epoch/time/time.component.d.ts +105 -0
  1199. package/components/input/epoch/time/time.props.d.ts +2 -0
  1200. package/components/input/file-upload/.npmignore +2 -0
  1201. package/components/input/file-upload/bundles/index.umd.js +483 -0
  1202. package/components/input/file-upload/esm2022/file-upload.component.mjs +426 -0
  1203. package/components/input/file-upload/esm2022/file-upload.props.mjs +39 -0
  1204. package/components/input/file-upload/esm2022/index.mjs +5 -0
  1205. package/components/input/file-upload/esm2022/public_api.mjs +2 -0
  1206. package/components/input/file-upload/fesm2022/index.mjs +469 -0
  1207. package/components/input/file-upload/fesm2022/index.mjs.map +1 -0
  1208. package/components/input/file-upload/file-upload.component.d.ts +103 -0
  1209. package/components/input/file-upload/file-upload.props.d.ts +1 -0
  1210. package/components/input/file-upload/index.d.ts +5 -0
  1211. package/components/input/file-upload/package.json +20 -0
  1212. package/components/input/file-upload/public_api.d.ts +1 -0
  1213. package/components/input/number/.npmignore +2 -0
  1214. package/components/input/number/bundles/index.umd.js +109 -0
  1215. package/components/input/number/esm2022/index.mjs +5 -0
  1216. package/components/input/number/esm2022/number.component.mjs +57 -0
  1217. package/components/input/number/esm2022/number.props.mjs +35 -0
  1218. package/components/input/number/esm2022/public_api.mjs +2 -0
  1219. package/components/input/number/fesm2022/index.mjs +95 -0
  1220. package/components/input/number/fesm2022/index.mjs.map +1 -0
  1221. package/components/input/number/index.d.ts +5 -0
  1222. package/components/input/number/number.component.d.ts +26 -0
  1223. package/components/input/number/number.props.d.ts +2 -0
  1224. package/components/input/number/package.json +20 -0
  1225. package/components/input/number/public_api.d.ts +1 -0
  1226. package/components/input/radioset/.npmignore +2 -0
  1227. package/components/input/radioset/bundles/index.umd.js +164 -0
  1228. package/components/input/radioset/esm2022/index.mjs +5 -0
  1229. package/components/input/radioset/esm2022/public_api.mjs +2 -0
  1230. package/components/input/radioset/esm2022/radioset.component.mjs +110 -0
  1231. package/components/input/radioset/esm2022/radioset.props.mjs +37 -0
  1232. package/components/input/radioset/fesm2022/index.mjs +151 -0
  1233. package/components/input/radioset/fesm2022/index.mjs.map +1 -0
  1234. package/components/input/radioset/index.d.ts +5 -0
  1235. package/components/input/radioset/package.json +20 -0
  1236. package/components/input/radioset/public_api.d.ts +1 -0
  1237. package/components/input/radioset/radioset.component.d.ts +23 -0
  1238. package/components/input/radioset/radioset.props.d.ts +2 -0
  1239. package/components/input/rating/.npmignore +2 -0
  1240. package/components/input/rating/bundles/index.umd.js +270 -0
  1241. package/components/input/rating/esm2022/index.mjs +5 -0
  1242. package/components/input/rating/esm2022/public_api.mjs +2 -0
  1243. package/components/input/rating/esm2022/rating.component.mjs +225 -0
  1244. package/components/input/rating/esm2022/rating.props.mjs +29 -0
  1245. package/components/input/rating/fesm2022/index.mjs +257 -0
  1246. package/components/input/rating/fesm2022/index.mjs.map +1 -0
  1247. package/components/input/rating/index.d.ts +5 -0
  1248. package/components/input/rating/package.json +20 -0
  1249. package/components/input/rating/public_api.d.ts +1 -0
  1250. package/components/input/rating/rating.component.d.ts +44 -0
  1251. package/components/input/rating/rating.props.d.ts +2 -0
  1252. package/components/input/select/.npmignore +2 -0
  1253. package/components/input/select/bundles/index.umd.js +225 -0
  1254. package/components/input/select/esm2022/index.mjs +5 -0
  1255. package/components/input/select/esm2022/public_api.mjs +2 -0
  1256. package/components/input/select/esm2022/select.component.mjs +172 -0
  1257. package/components/input/select/esm2022/select.props.mjs +36 -0
  1258. package/components/input/select/fesm2022/index.mjs +211 -0
  1259. package/components/input/select/fesm2022/index.mjs.map +1 -0
  1260. package/components/input/select/index.d.ts +5 -0
  1261. package/components/input/select/package.json +20 -0
  1262. package/components/input/select/public_api.d.ts +1 -0
  1263. package/components/input/select/select.component.d.ts +36 -0
  1264. package/components/input/select/select.props.d.ts +2 -0
  1265. package/components/input/slider/.npmignore +2 -0
  1266. package/components/input/slider/bundles/index.umd.js +203 -0
  1267. package/components/input/slider/esm2022/index.mjs +5 -0
  1268. package/components/input/slider/esm2022/public_api.mjs +2 -0
  1269. package/components/input/slider/esm2022/slider.component.mjs +157 -0
  1270. package/components/input/slider/esm2022/slider.props.mjs +28 -0
  1271. package/components/input/slider/fesm2022/index.mjs +189 -0
  1272. package/components/input/slider/fesm2022/index.mjs.map +1 -0
  1273. package/components/input/slider/index.d.ts +5 -0
  1274. package/components/input/slider/package.json +20 -0
  1275. package/components/input/slider/public_api.d.ts +1 -0
  1276. package/components/input/slider/slider.component.d.ts +39 -0
  1277. package/components/input/slider/slider.props.d.ts +2 -0
  1278. package/components/input/switch/.npmignore +2 -0
  1279. package/components/input/switch/bundles/index.umd.js +224 -0
  1280. package/components/input/switch/esm2022/index.mjs +5 -0
  1281. package/components/input/switch/esm2022/public_api.mjs +2 -0
  1282. package/components/input/switch/esm2022/switch.component.mjs +179 -0
  1283. package/components/input/switch/esm2022/switch.props.mjs +28 -0
  1284. package/components/input/switch/fesm2022/index.mjs +211 -0
  1285. package/components/input/switch/fesm2022/index.mjs.map +1 -0
  1286. package/components/input/switch/index.d.ts +5 -0
  1287. package/components/input/switch/package.json +20 -0
  1288. package/components/input/switch/public_api.d.ts +1 -0
  1289. package/components/input/switch/switch.component.d.ts +30 -0
  1290. package/components/input/switch/switch.props.d.ts +2 -0
  1291. package/components/input/text/.npmignore +2 -0
  1292. package/components/input/text/base-input/base-input.d.ts +33 -0
  1293. package/components/input/text/bundles/index.umd.js +1130 -0
  1294. package/components/input/text/esm2022/base-input/base-input.mjs +93 -0
  1295. package/components/input/text/esm2022/index.mjs +5 -0
  1296. package/components/input/text/esm2022/input-calendar/input-calendar.component.mjs +53 -0
  1297. package/components/input/text/esm2022/input-calendar/input-calendar.props.mjs +30 -0
  1298. package/components/input/text/esm2022/input-color/input-color.component.mjs +53 -0
  1299. package/components/input/text/esm2022/input-color/input-color.props.mjs +27 -0
  1300. package/components/input/text/esm2022/input-email/input-email.component.mjs +53 -0
  1301. package/components/input/text/esm2022/input-email/input-email.props.mjs +29 -0
  1302. package/components/input/text/esm2022/input-number/input-number.component.mjs +63 -0
  1303. package/components/input/text/esm2022/input-number/input-number.props.mjs +32 -0
  1304. package/components/input/text/esm2022/input-text/input-text.component.mjs +136 -0
  1305. package/components/input/text/esm2022/input-text/input-text.props.mjs +48 -0
  1306. package/components/input/text/esm2022/number-locale/number-locale.mjs +554 -0
  1307. package/components/input/text/esm2022/public_api.mjs +8 -0
  1308. package/components/input/text/fesm2022/index.mjs +1114 -0
  1309. package/components/input/text/fesm2022/index.mjs.map +1 -0
  1310. package/components/input/text/index.d.ts +5 -0
  1311. package/components/input/text/input-calendar/input-calendar.component.d.ts +30 -0
  1312. package/components/input/text/input-calendar/input-calendar.props.d.ts +2 -0
  1313. package/components/input/text/input-color/input-color.component.d.ts +27 -0
  1314. package/components/input/text/input-color/input-color.props.d.ts +2 -0
  1315. package/components/input/text/input-email/input-email.component.d.ts +29 -0
  1316. package/components/input/text/input-email/input-email.props.d.ts +2 -0
  1317. package/components/input/text/input-number/input-number.component.d.ts +33 -0
  1318. package/components/input/text/input-number/input-number.props.d.ts +2 -0
  1319. package/components/input/text/input-text/input-text.component.d.ts +52 -0
  1320. package/components/input/text/input-text/input-text.props.d.ts +2 -0
  1321. package/components/input/text/number-locale/number-locale.d.ts +127 -0
  1322. package/components/input/text/package.json +20 -0
  1323. package/components/input/text/public_api.d.ts +7 -0
  1324. package/components/input/textarea/.npmignore +2 -0
  1325. package/components/input/textarea/bundles/index.umd.js +108 -0
  1326. package/components/input/textarea/esm2022/index.mjs +5 -0
  1327. package/components/input/textarea/esm2022/public_api.mjs +2 -0
  1328. package/components/input/textarea/esm2022/textarea.component.mjs +60 -0
  1329. package/components/input/textarea/esm2022/textarea.props.mjs +30 -0
  1330. package/components/input/textarea/fesm2022/index.mjs +94 -0
  1331. package/components/input/textarea/fesm2022/index.mjs.map +1 -0
  1332. package/components/input/textarea/index.d.ts +5 -0
  1333. package/components/input/textarea/package.json +20 -0
  1334. package/components/input/textarea/public_api.d.ts +1 -0
  1335. package/components/input/textarea/textarea.component.d.ts +30 -0
  1336. package/components/input/textarea/textarea.props.d.ts +2 -0
  1337. package/components/navigation/breadcrumb/.npmignore +2 -0
  1338. package/components/navigation/breadcrumb/breadcrumb.component.d.ts +25 -0
  1339. package/components/navigation/breadcrumb/breadcrumb.props.d.ts +1 -0
  1340. package/components/navigation/breadcrumb/bundles/index.umd.js +138 -0
  1341. package/components/navigation/breadcrumb/esm2022/breadcrumb.component.mjs +101 -0
  1342. package/components/navigation/breadcrumb/esm2022/breadcrumb.props.mjs +17 -0
  1343. package/components/navigation/breadcrumb/esm2022/index.mjs +5 -0
  1344. package/components/navigation/breadcrumb/esm2022/public_api.mjs +2 -0
  1345. package/components/navigation/breadcrumb/fesm2022/index.mjs +121 -0
  1346. package/components/navigation/breadcrumb/fesm2022/index.mjs.map +1 -0
  1347. package/components/navigation/breadcrumb/index.d.ts +5 -0
  1348. package/components/navigation/breadcrumb/package.json +20 -0
  1349. package/components/navigation/breadcrumb/public_api.d.ts +1 -0
  1350. package/components/navigation/menu/.npmignore +2 -0
  1351. package/components/navigation/menu/bundles/index.umd.js +947 -0
  1352. package/components/navigation/menu/esm2022/index.mjs +5 -0
  1353. package/components/navigation/menu/esm2022/menu-adapator.component.mjs +80 -0
  1354. package/components/navigation/menu/esm2022/menu-dropdown/menu-dropdown.component.mjs +105 -0
  1355. package/components/navigation/menu/esm2022/menu-dropdown-item/menu-dropdown-item.component.mjs +191 -0
  1356. package/components/navigation/menu/esm2022/menu.component.mjs +282 -0
  1357. package/components/navigation/menu/esm2022/menu.props.mjs +37 -0
  1358. package/components/navigation/menu/esm2022/nav/nav-item/nav-item.directive.mjs +66 -0
  1359. package/components/navigation/menu/esm2022/nav/nav-item/nav-item.props.mjs +9 -0
  1360. package/components/navigation/menu/esm2022/nav/nav.component.mjs +131 -0
  1361. package/components/navigation/menu/esm2022/nav/nav.props.mjs +28 -0
  1362. package/components/navigation/menu/esm2022/nav/navigation-control.directive.mjs +49 -0
  1363. package/components/navigation/menu/esm2022/public_api.mjs +8 -0
  1364. package/components/navigation/menu/fesm2022/index.mjs +929 -0
  1365. package/components/navigation/menu/fesm2022/index.mjs.map +1 -0
  1366. package/components/navigation/menu/index.d.ts +5 -0
  1367. package/components/navigation/menu/menu-adapator.component.d.ts +23 -0
  1368. package/components/navigation/menu/menu-dropdown/menu-dropdown.component.d.ts +15 -0
  1369. package/components/navigation/menu/menu-dropdown-item/menu-dropdown-item.component.d.ts +35 -0
  1370. package/components/navigation/menu/menu.component.d.ts +65 -0
  1371. package/components/navigation/menu/menu.props.d.ts +1 -0
  1372. package/components/navigation/menu/nav/nav-item/nav-item.directive.d.ts +14 -0
  1373. package/components/navigation/menu/nav/nav-item/nav-item.props.d.ts +1 -0
  1374. package/components/navigation/menu/nav/nav.component.d.ts +35 -0
  1375. package/components/navigation/menu/nav/nav.props.d.ts +1 -0
  1376. package/components/navigation/menu/nav/navigation-control.directive.d.ts +14 -0
  1377. package/components/navigation/menu/package.json +20 -0
  1378. package/components/navigation/menu/public_api.d.ts +7 -0
  1379. package/components/navigation/navbar/.npmignore +2 -0
  1380. package/components/navigation/navbar/bundles/index.umd.js +87 -0
  1381. package/components/navigation/navbar/esm2022/index.mjs +5 -0
  1382. package/components/navigation/navbar/esm2022/navbar.component.mjs +52 -0
  1383. package/components/navigation/navbar/esm2022/navbar.props.mjs +13 -0
  1384. package/components/navigation/navbar/esm2022/public_api.mjs +2 -0
  1385. package/components/navigation/navbar/fesm2022/index.mjs +70 -0
  1386. package/components/navigation/navbar/fesm2022/index.mjs.map +1 -0
  1387. package/components/navigation/navbar/index.d.ts +5 -0
  1388. package/components/navigation/navbar/navbar.component.d.ts +16 -0
  1389. package/components/navigation/navbar/navbar.props.d.ts +1 -0
  1390. package/components/navigation/navbar/package.json +20 -0
  1391. package/components/navigation/navbar/public_api.d.ts +1 -0
  1392. package/components/navigation/popover/.npmignore +2 -0
  1393. package/components/navigation/popover/bundles/index.umd.js +514 -0
  1394. package/components/navigation/popover/esm2022/index.mjs +5 -0
  1395. package/components/navigation/popover/esm2022/popover.component.mjs +460 -0
  1396. package/components/navigation/popover/esm2022/popover.props.mjs +35 -0
  1397. package/components/navigation/popover/esm2022/public_api.mjs +2 -0
  1398. package/components/navigation/popover/fesm2022/index.mjs +500 -0
  1399. package/components/navigation/popover/fesm2022/index.mjs.map +1 -0
  1400. package/components/navigation/popover/index.d.ts +5 -0
  1401. package/components/navigation/popover/package.json +20 -0
  1402. package/components/navigation/popover/popover.component.d.ts +83 -0
  1403. package/components/navigation/popover/popover.props.d.ts +1 -0
  1404. package/components/navigation/popover/public_api.d.ts +1 -0
  1405. package/components/page/default/.npmignore +2 -0
  1406. package/components/page/default/bundles/index.umd.js +458 -0
  1407. package/components/page/default/content/content.component.d.ts +9 -0
  1408. package/components/page/default/content/content.props.d.ts +1 -0
  1409. package/components/page/default/esm2022/content/content.component.mjs +29 -0
  1410. package/components/page/default/esm2022/content/content.props.mjs +8 -0
  1411. package/components/page/default/esm2022/index.mjs +5 -0
  1412. package/components/page/default/esm2022/layout.directive.mjs +58 -0
  1413. package/components/page/default/esm2022/layout.props.mjs +5 -0
  1414. package/components/page/default/esm2022/page-content/page-content.component.mjs +85 -0
  1415. package/components/page/default/esm2022/page-content/page-content.props.mjs +14 -0
  1416. package/components/page/default/esm2022/page.directive.mjs +97 -0
  1417. package/components/page/default/esm2022/page.props.mjs +11 -0
  1418. package/components/page/default/esm2022/public_api.mjs +7 -0
  1419. package/components/page/default/esm2022/router-outlet.directive.mjs +47 -0
  1420. package/components/page/default/esm2022/router-outlet.props.mjs +8 -0
  1421. package/components/page/default/esm2022/spa-page.directive.mjs +97 -0
  1422. package/components/page/default/esm2022/spa-page.props.mjs +10 -0
  1423. package/components/page/default/fesm2022/index.mjs +438 -0
  1424. package/components/page/default/fesm2022/index.mjs.map +1 -0
  1425. package/components/page/default/index.d.ts +5 -0
  1426. package/components/page/default/layout.directive.d.ts +20 -0
  1427. package/components/page/default/layout.props.d.ts +1 -0
  1428. package/components/page/default/package.json +20 -0
  1429. package/components/page/default/page-content/page-content.component.d.ts +17 -0
  1430. package/components/page/default/page-content/page-content.props.d.ts +1 -0
  1431. package/components/page/default/page.directive.d.ts +38 -0
  1432. package/components/page/default/page.props.d.ts +1 -0
  1433. package/components/page/default/public_api.d.ts +6 -0
  1434. package/components/page/default/router-outlet.directive.d.ts +13 -0
  1435. package/components/page/default/router-outlet.props.d.ts +1 -0
  1436. package/components/page/default/spa-page.directive.d.ts +38 -0
  1437. package/components/page/default/spa-page.props.d.ts +1 -0
  1438. package/components/page/footer/.npmignore +2 -0
  1439. package/components/page/footer/bundles/index.umd.js +71 -0
  1440. package/components/page/footer/esm2022/footer.directive.mjs +37 -0
  1441. package/components/page/footer/esm2022/footer.props.mjs +11 -0
  1442. package/components/page/footer/esm2022/index.mjs +5 -0
  1443. package/components/page/footer/esm2022/public_api.mjs +2 -0
  1444. package/components/page/footer/fesm2022/index.mjs +53 -0
  1445. package/components/page/footer/fesm2022/index.mjs.map +1 -0
  1446. package/components/page/footer/footer.directive.d.ts +9 -0
  1447. package/components/page/footer/footer.props.d.ts +1 -0
  1448. package/components/page/footer/index.d.ts +5 -0
  1449. package/components/page/footer/package.json +20 -0
  1450. package/components/page/footer/public_api.d.ts +1 -0
  1451. package/components/page/header/.npmignore +2 -0
  1452. package/components/page/header/bundles/index.umd.js +67 -0
  1453. package/components/page/header/esm2022/header.component.mjs +33 -0
  1454. package/components/page/header/esm2022/header.props.mjs +11 -0
  1455. package/components/page/header/esm2022/index.mjs +5 -0
  1456. package/components/page/header/esm2022/public_api.mjs +2 -0
  1457. package/components/page/header/fesm2022/index.mjs +49 -0
  1458. package/components/page/header/fesm2022/index.mjs.map +1 -0
  1459. package/components/page/header/header.component.d.ts +10 -0
  1460. package/components/page/header/header.props.d.ts +1 -0
  1461. package/components/page/header/index.d.ts +5 -0
  1462. package/components/page/header/package.json +20 -0
  1463. package/components/page/header/public_api.d.ts +1 -0
  1464. package/components/page/left-panel/.npmignore +2 -0
  1465. package/components/page/left-panel/bundles/index.umd.js +415 -0
  1466. package/components/page/left-panel/esm2022/index.mjs +5 -0
  1467. package/components/page/left-panel/esm2022/left-panel.animator.mjs +133 -0
  1468. package/components/page/left-panel/esm2022/left-panel.directive.mjs +251 -0
  1469. package/components/page/left-panel/esm2022/left-panel.props.mjs +15 -0
  1470. package/components/page/left-panel/esm2022/public_api.mjs +2 -0
  1471. package/components/page/left-panel/fesm2022/index.mjs +400 -0
  1472. package/components/page/left-panel/fesm2022/index.mjs.map +1 -0
  1473. package/components/page/left-panel/index.d.ts +5 -0
  1474. package/components/page/left-panel/left-panel.animator.d.ts +49 -0
  1475. package/components/page/left-panel/left-panel.directive.d.ts +38 -0
  1476. package/components/page/left-panel/left-panel.props.d.ts +1 -0
  1477. package/components/page/left-panel/package.json +20 -0
  1478. package/components/page/left-panel/public_api.d.ts +1 -0
  1479. package/components/page/right-panel/.npmignore +2 -0
  1480. package/components/page/right-panel/bundles/index.umd.js +86 -0
  1481. package/components/page/right-panel/esm2022/index.mjs +5 -0
  1482. package/components/page/right-panel/esm2022/public_api.mjs +2 -0
  1483. package/components/page/right-panel/esm2022/right-panel.directive.mjs +52 -0
  1484. package/components/page/right-panel/esm2022/right-panel.props.mjs +12 -0
  1485. package/components/page/right-panel/fesm2022/index.mjs +69 -0
  1486. package/components/page/right-panel/fesm2022/index.mjs.map +1 -0
  1487. package/components/page/right-panel/index.d.ts +5 -0
  1488. package/components/page/right-panel/package.json +20 -0
  1489. package/components/page/right-panel/public_api.d.ts +1 -0
  1490. package/components/page/right-panel/right-panel.directive.d.ts +10 -0
  1491. package/components/page/right-panel/right-panel.props.d.ts +1 -0
  1492. package/components/page/top-nav/.npmignore +2 -0
  1493. package/components/page/top-nav/bundles/index.umd.js +68 -0
  1494. package/components/page/top-nav/esm2022/index.mjs +5 -0
  1495. package/components/page/top-nav/esm2022/public_api.mjs +2 -0
  1496. package/components/page/top-nav/esm2022/top-nav.directive.mjs +34 -0
  1497. package/components/page/top-nav/esm2022/top-nav.props.mjs +11 -0
  1498. package/components/page/top-nav/fesm2022/index.mjs +50 -0
  1499. package/components/page/top-nav/fesm2022/index.mjs.map +1 -0
  1500. package/components/page/top-nav/index.d.ts +5 -0
  1501. package/components/page/top-nav/package.json +20 -0
  1502. package/components/page/top-nav/public_api.d.ts +1 -0
  1503. package/components/page/top-nav/top-nav.directive.d.ts +9 -0
  1504. package/components/page/top-nav/top-nav.props.d.ts +1 -0
  1505. package/components/prefab/.npmignore +2 -0
  1506. package/components/prefab/bundles/index.umd.js +176 -0
  1507. package/components/prefab/esm2022/index.mjs +5 -0
  1508. package/components/prefab/esm2022/prefab-container/prefab-container.directive.mjs +56 -0
  1509. package/components/prefab/esm2022/prefab-container/prefab-container.props.mjs +9 -0
  1510. package/components/prefab/esm2022/prefab.directive.mjs +88 -0
  1511. package/components/prefab/esm2022/prefab.props.mjs +8 -0
  1512. package/components/prefab/esm2022/public_api.mjs +3 -0
  1513. package/components/prefab/fesm2022/index.mjs +159 -0
  1514. package/components/prefab/fesm2022/index.mjs.map +1 -0
  1515. package/components/prefab/index.d.ts +5 -0
  1516. package/components/prefab/package.json +20 -0
  1517. package/components/prefab/prefab-container/prefab-container.directive.d.ts +15 -0
  1518. package/components/prefab/prefab-container/prefab-container.props.d.ts +1 -0
  1519. package/components/prefab/prefab.directive.d.ts +17 -0
  1520. package/components/prefab/prefab.props.d.ts +1 -0
  1521. package/components/prefab/public_api.d.ts +2 -0
  1522. package/core/.npmignore +2 -0
  1523. package/core/bundles/index.umd.js +5608 -0
  1524. package/core/constants/currency-constants.d.ts +1064 -0
  1525. package/core/enums/enums.d.ts +67 -0
  1526. package/core/esm2022/constants/currency-constants.mjs +1065 -0
  1527. package/core/esm2022/enums/enums.mjs +72 -0
  1528. package/core/esm2022/index.mjs +5 -0
  1529. package/core/esm2022/public_api.mjs +26 -0
  1530. package/core/esm2022/services/constant.service.mjs +25 -0
  1531. package/core/esm2022/services/custom-icons-loader.service.mjs +20 -0
  1532. package/core/esm2022/services/field-type.service.mjs +35 -0
  1533. package/core/esm2022/services/field-widget.service.mjs +37 -0
  1534. package/core/esm2022/services/pagination.service.mjs +336 -0
  1535. package/core/esm2022/services/script-loader.service.mjs +75 -0
  1536. package/core/esm2022/services/state-persistence.service.mjs +500 -0
  1537. package/core/esm2022/services/user-custom-pipe-manager.service.mjs +23 -0
  1538. package/core/esm2022/services/utils.service.mjs +16 -0
  1539. package/core/esm2022/services/viewport.service.mjs +121 -0
  1540. package/core/esm2022/types/types.mjs +81 -0
  1541. package/core/esm2022/utils/build-utils.mjs +296 -0
  1542. package/core/esm2022/utils/dom.mjs +123 -0
  1543. package/core/esm2022/utils/event-notifier.mjs +70 -0
  1544. package/core/esm2022/utils/expression-parser.mjs +593 -0
  1545. package/core/esm2022/utils/id-generator.mjs +15 -0
  1546. package/core/esm2022/utils/lru-cache.mjs +95 -0
  1547. package/core/esm2022/utils/utils.mjs +1476 -0
  1548. package/core/esm2022/utils/watcher.mjs +276 -0
  1549. package/core/esm2022/utils/wm-project-properties.mjs +30 -0
  1550. package/core/fesm2022/index.mjs +5455 -0
  1551. package/core/fesm2022/index.mjs.map +1 -0
  1552. package/core/index.d.ts +5 -0
  1553. package/core/package.json +26 -0
  1554. package/core/public_api.d.ts +22 -0
  1555. package/core/services/constant.service.d.ts +28 -0
  1556. package/core/services/custom-icons-loader.service.d.ts +6 -0
  1557. package/core/services/field-type.service.d.ts +6 -0
  1558. package/core/services/field-widget.service.d.ts +6 -0
  1559. package/core/services/pagination.service.d.ts +59 -0
  1560. package/core/services/script-loader.service.d.ts +17 -0
  1561. package/core/services/state-persistence.service.d.ts +231 -0
  1562. package/core/services/user-custom-pipe-manager.service.d.ts +9 -0
  1563. package/core/services/utils.service.d.ts +6 -0
  1564. package/core/services/viewport.service.d.ts +37 -0
  1565. package/core/types/types.d.ts +208 -0
  1566. package/core/utils/build-utils.d.ts +14 -0
  1567. package/core/utils/dom.d.ts +16 -0
  1568. package/core/utils/event-notifier.d.ts +26 -0
  1569. package/core/utils/expression-parser.d.ts +8 -0
  1570. package/core/utils/id-generator.d.ts +5 -0
  1571. package/core/utils/lru-cache.d.ts +23 -0
  1572. package/core/utils/utils.d.ts +279 -0
  1573. package/core/utils/watcher.d.ts +13 -0
  1574. package/core/utils/wm-project-properties.d.ts +4 -0
  1575. package/http/.npmignore +2 -0
  1576. package/http/bundles/index.umd.js +421 -0
  1577. package/http/esm2022/http.service.mjs +301 -0
  1578. package/http/esm2022/index.mjs +5 -0
  1579. package/http/esm2022/public_api.mjs +4 -0
  1580. package/http/esm2022/wm-http-request.mjs +48 -0
  1581. package/http/esm2022/wm-http-response.mjs +52 -0
  1582. package/http/fesm2022/index.mjs +405 -0
  1583. package/http/fesm2022/index.mjs.map +1 -0
  1584. package/http/http.service.d.ts +70 -0
  1585. package/http/index.d.ts +5 -0
  1586. package/http/package.json +25 -0
  1587. package/http/public_api.d.ts +3 -0
  1588. package/http/wm-http-request.d.ts +24 -0
  1589. package/http/wm-http-response.d.ts +22 -0
  1590. package/locales/angular/global/af-na.js +24 -0
  1591. package/locales/angular/global/af.js +24 -0
  1592. package/locales/angular/global/agq.js +22 -0
  1593. package/locales/angular/global/ak.js +24 -0
  1594. package/locales/angular/global/am.js +24 -0
  1595. package/locales/angular/global/ar-ae.js +32 -0
  1596. package/locales/angular/global/ar-bh.js +32 -0
  1597. package/locales/angular/global/ar-dj.js +32 -0
  1598. package/locales/angular/global/ar-dz.js +32 -0
  1599. package/locales/angular/global/ar-eg.js +32 -0
  1600. package/locales/angular/global/ar-eh.js +32 -0
  1601. package/locales/angular/global/ar-er.js +32 -0
  1602. package/locales/angular/global/ar-il.js +32 -0
  1603. package/locales/angular/global/ar-iq.js +32 -0
  1604. package/locales/angular/global/ar-jo.js +32 -0
  1605. package/locales/angular/global/ar-km.js +32 -0
  1606. package/locales/angular/global/ar-kw.js +32 -0
  1607. package/locales/angular/global/ar-lb.js +32 -0
  1608. package/locales/angular/global/ar-ly.js +32 -0
  1609. package/locales/angular/global/ar-ma.js +32 -0
  1610. package/locales/angular/global/ar-mr.js +32 -0
  1611. package/locales/angular/global/ar-om.js +32 -0
  1612. package/locales/angular/global/ar-ps.js +32 -0
  1613. package/locales/angular/global/ar-qa.js +32 -0
  1614. package/locales/angular/global/ar-sa.js +32 -0
  1615. package/locales/angular/global/ar-sd.js +32 -0
  1616. package/locales/angular/global/ar-so.js +32 -0
  1617. package/locales/angular/global/ar-ss.js +32 -0
  1618. package/locales/angular/global/ar-sy.js +32 -0
  1619. package/locales/angular/global/ar-td.js +32 -0
  1620. package/locales/angular/global/ar-tn.js +32 -0
  1621. package/locales/angular/global/ar-ye.js +32 -0
  1622. package/locales/angular/global/ar.js +32 -0
  1623. package/locales/angular/global/as.js +24 -0
  1624. package/locales/angular/global/asa.js +24 -0
  1625. package/locales/angular/global/ast.js +24 -0
  1626. package/locales/angular/global/az-cyrl.js +22 -0
  1627. package/locales/angular/global/az-latn.js +24 -0
  1628. package/locales/angular/global/az.js +24 -0
  1629. package/locales/angular/global/bas.js +22 -0
  1630. package/locales/angular/global/be-tarask.js +28 -0
  1631. package/locales/angular/global/be.js +28 -0
  1632. package/locales/angular/global/bem.js +24 -0
  1633. package/locales/angular/global/bez.js +24 -0
  1634. package/locales/angular/global/bg.js +24 -0
  1635. package/locales/angular/global/bm.js +22 -0
  1636. package/locales/angular/global/bn-in.js +24 -0
  1637. package/locales/angular/global/bn.js +24 -0
  1638. package/locales/angular/global/bo-in.js +22 -0
  1639. package/locales/angular/global/bo.js +22 -0
  1640. package/locales/angular/global/br.js +30 -0
  1641. package/locales/angular/global/brx.js +24 -0
  1642. package/locales/angular/global/bs-cyrl.js +22 -0
  1643. package/locales/angular/global/bs-latn.js +26 -0
  1644. package/locales/angular/global/bs.js +26 -0
  1645. package/locales/angular/global/ca-ad.js +24 -0
  1646. package/locales/angular/global/ca-es-valencia.js +24 -0
  1647. package/locales/angular/global/ca-fr.js +24 -0
  1648. package/locales/angular/global/ca-it.js +24 -0
  1649. package/locales/angular/global/ca.js +24 -0
  1650. package/locales/angular/global/ccp-in.js +22 -0
  1651. package/locales/angular/global/ccp.js +22 -0
  1652. package/locales/angular/global/ce.js +24 -0
  1653. package/locales/angular/global/ceb.js +24 -0
  1654. package/locales/angular/global/cgg.js +24 -0
  1655. package/locales/angular/global/chr.js +24 -0
  1656. package/locales/angular/global/ckb-ir.js +24 -0
  1657. package/locales/angular/global/ckb.js +24 -0
  1658. package/locales/angular/global/cs.js +28 -0
  1659. package/locales/angular/global/cy.js +32 -0
  1660. package/locales/angular/global/da-gl.js +24 -0
  1661. package/locales/angular/global/da.js +24 -0
  1662. package/locales/angular/global/dav.js +22 -0
  1663. package/locales/angular/global/de-at.js +24 -0
  1664. package/locales/angular/global/de-be.js +24 -0
  1665. package/locales/angular/global/de-ch.js +24 -0
  1666. package/locales/angular/global/de-it.js +24 -0
  1667. package/locales/angular/global/de-li.js +24 -0
  1668. package/locales/angular/global/de-lu.js +24 -0
  1669. package/locales/angular/global/de.js +24 -0
  1670. package/locales/angular/global/dje.js +22 -0
  1671. package/locales/angular/global/doi.js +24 -0
  1672. package/locales/angular/global/dsb.js +28 -0
  1673. package/locales/angular/global/dua.js +22 -0
  1674. package/locales/angular/global/dyo.js +22 -0
  1675. package/locales/angular/global/dz.js +22 -0
  1676. package/locales/angular/global/ebu.js +22 -0
  1677. package/locales/angular/global/ee-tg.js +24 -0
  1678. package/locales/angular/global/ee.js +24 -0
  1679. package/locales/angular/global/el-cy.js +24 -0
  1680. package/locales/angular/global/el.js +24 -0
  1681. package/locales/angular/global/en-001.js +24 -0
  1682. package/locales/angular/global/en-150.js +24 -0
  1683. package/locales/angular/global/en-ae.js +24 -0
  1684. package/locales/angular/global/en-ag.js +24 -0
  1685. package/locales/angular/global/en-ai.js +24 -0
  1686. package/locales/angular/global/en-as.js +24 -0
  1687. package/locales/angular/global/en-at.js +24 -0
  1688. package/locales/angular/global/en-au.js +24 -0
  1689. package/locales/angular/global/en-bb.js +24 -0
  1690. package/locales/angular/global/en-be.js +24 -0
  1691. package/locales/angular/global/en-bi.js +24 -0
  1692. package/locales/angular/global/en-bm.js +24 -0
  1693. package/locales/angular/global/en-bs.js +24 -0
  1694. package/locales/angular/global/en-bw.js +24 -0
  1695. package/locales/angular/global/en-bz.js +24 -0
  1696. package/locales/angular/global/en-ca.js +24 -0
  1697. package/locales/angular/global/en-cc.js +24 -0
  1698. package/locales/angular/global/en-ch.js +24 -0
  1699. package/locales/angular/global/en-ck.js +24 -0
  1700. package/locales/angular/global/en-cm.js +24 -0
  1701. package/locales/angular/global/en-cx.js +24 -0
  1702. package/locales/angular/global/en-cy.js +24 -0
  1703. package/locales/angular/global/en-de.js +24 -0
  1704. package/locales/angular/global/en-dg.js +24 -0
  1705. package/locales/angular/global/en-dk.js +24 -0
  1706. package/locales/angular/global/en-dm.js +24 -0
  1707. package/locales/angular/global/en-er.js +24 -0
  1708. package/locales/angular/global/en-fi.js +24 -0
  1709. package/locales/angular/global/en-fj.js +24 -0
  1710. package/locales/angular/global/en-fk.js +24 -0
  1711. package/locales/angular/global/en-fm.js +24 -0
  1712. package/locales/angular/global/en-gb.js +24 -0
  1713. package/locales/angular/global/en-gd.js +24 -0
  1714. package/locales/angular/global/en-gg.js +24 -0
  1715. package/locales/angular/global/en-gh.js +24 -0
  1716. package/locales/angular/global/en-gi.js +24 -0
  1717. package/locales/angular/global/en-gm.js +24 -0
  1718. package/locales/angular/global/en-gu.js +24 -0
  1719. package/locales/angular/global/en-gy.js +24 -0
  1720. package/locales/angular/global/en-hk.js +24 -0
  1721. package/locales/angular/global/en-ie.js +24 -0
  1722. package/locales/angular/global/en-il.js +24 -0
  1723. package/locales/angular/global/en-im.js +24 -0
  1724. package/locales/angular/global/en-in.js +24 -0
  1725. package/locales/angular/global/en-io.js +24 -0
  1726. package/locales/angular/global/en-je.js +24 -0
  1727. package/locales/angular/global/en-jm.js +24 -0
  1728. package/locales/angular/global/en-ke.js +24 -0
  1729. package/locales/angular/global/en-ki.js +24 -0
  1730. package/locales/angular/global/en-kn.js +24 -0
  1731. package/locales/angular/global/en-ky.js +24 -0
  1732. package/locales/angular/global/en-lc.js +24 -0
  1733. package/locales/angular/global/en-lr.js +24 -0
  1734. package/locales/angular/global/en-ls.js +24 -0
  1735. package/locales/angular/global/en-mg.js +24 -0
  1736. package/locales/angular/global/en-mh.js +24 -0
  1737. package/locales/angular/global/en-mo.js +24 -0
  1738. package/locales/angular/global/en-mp.js +24 -0
  1739. package/locales/angular/global/en-ms.js +24 -0
  1740. package/locales/angular/global/en-mt.js +24 -0
  1741. package/locales/angular/global/en-mu.js +24 -0
  1742. package/locales/angular/global/en-mv.js +24 -0
  1743. package/locales/angular/global/en-mw.js +24 -0
  1744. package/locales/angular/global/en-my.js +24 -0
  1745. package/locales/angular/global/en-na.js +24 -0
  1746. package/locales/angular/global/en-nf.js +24 -0
  1747. package/locales/angular/global/en-ng.js +24 -0
  1748. package/locales/angular/global/en-nl.js +24 -0
  1749. package/locales/angular/global/en-nr.js +24 -0
  1750. package/locales/angular/global/en-nu.js +24 -0
  1751. package/locales/angular/global/en-nz.js +24 -0
  1752. package/locales/angular/global/en-pg.js +24 -0
  1753. package/locales/angular/global/en-ph.js +24 -0
  1754. package/locales/angular/global/en-pk.js +24 -0
  1755. package/locales/angular/global/en-pn.js +24 -0
  1756. package/locales/angular/global/en-pr.js +24 -0
  1757. package/locales/angular/global/en-pw.js +24 -0
  1758. package/locales/angular/global/en-rw.js +24 -0
  1759. package/locales/angular/global/en-sb.js +24 -0
  1760. package/locales/angular/global/en-sc.js +24 -0
  1761. package/locales/angular/global/en-sd.js +24 -0
  1762. package/locales/angular/global/en-se.js +24 -0
  1763. package/locales/angular/global/en-sg.js +24 -0
  1764. package/locales/angular/global/en-sh.js +24 -0
  1765. package/locales/angular/global/en-si.js +24 -0
  1766. package/locales/angular/global/en-sl.js +24 -0
  1767. package/locales/angular/global/en-ss.js +24 -0
  1768. package/locales/angular/global/en-sx.js +24 -0
  1769. package/locales/angular/global/en-sz.js +24 -0
  1770. package/locales/angular/global/en-tc.js +24 -0
  1771. package/locales/angular/global/en-tk.js +24 -0
  1772. package/locales/angular/global/en-to.js +24 -0
  1773. package/locales/angular/global/en-tt.js +24 -0
  1774. package/locales/angular/global/en-tv.js +24 -0
  1775. package/locales/angular/global/en-tz.js +24 -0
  1776. package/locales/angular/global/en-ug.js +24 -0
  1777. package/locales/angular/global/en-um.js +24 -0
  1778. package/locales/angular/global/en-vc.js +24 -0
  1779. package/locales/angular/global/en-vg.js +24 -0
  1780. package/locales/angular/global/en-vi.js +24 -0
  1781. package/locales/angular/global/en-vu.js +24 -0
  1782. package/locales/angular/global/en-ws.js +24 -0
  1783. package/locales/angular/global/en-za.js +24 -0
  1784. package/locales/angular/global/en-zm.js +24 -0
  1785. package/locales/angular/global/en-zw.js +24 -0
  1786. package/locales/angular/global/en.js +24 -0
  1787. package/locales/angular/global/eo.js +24 -0
  1788. package/locales/angular/global/es-419.js +26 -0
  1789. package/locales/angular/global/es-ar.js +26 -0
  1790. package/locales/angular/global/es-bo.js +26 -0
  1791. package/locales/angular/global/es-br.js +26 -0
  1792. package/locales/angular/global/es-bz.js +26 -0
  1793. package/locales/angular/global/es-cl.js +26 -0
  1794. package/locales/angular/global/es-co.js +26 -0
  1795. package/locales/angular/global/es-cr.js +26 -0
  1796. package/locales/angular/global/es-cu.js +26 -0
  1797. package/locales/angular/global/es-do.js +26 -0
  1798. package/locales/angular/global/es-ea.js +26 -0
  1799. package/locales/angular/global/es-ec.js +26 -0
  1800. package/locales/angular/global/es-gq.js +26 -0
  1801. package/locales/angular/global/es-gt.js +26 -0
  1802. package/locales/angular/global/es-hn.js +26 -0
  1803. package/locales/angular/global/es-ic.js +26 -0
  1804. package/locales/angular/global/es-mx.js +26 -0
  1805. package/locales/angular/global/es-ni.js +26 -0
  1806. package/locales/angular/global/es-pa.js +26 -0
  1807. package/locales/angular/global/es-pe.js +26 -0
  1808. package/locales/angular/global/es-ph.js +26 -0
  1809. package/locales/angular/global/es-pr.js +26 -0
  1810. package/locales/angular/global/es-py.js +26 -0
  1811. package/locales/angular/global/es-sv.js +26 -0
  1812. package/locales/angular/global/es-us.js +26 -0
  1813. package/locales/angular/global/es-uy.js +26 -0
  1814. package/locales/angular/global/es-ve.js +26 -0
  1815. package/locales/angular/global/es.js +26 -0
  1816. package/locales/angular/global/et.js +24 -0
  1817. package/locales/angular/global/eu.js +24 -0
  1818. package/locales/angular/global/ewo.js +22 -0
  1819. package/locales/angular/global/fa-af.js +24 -0
  1820. package/locales/angular/global/fa.js +24 -0
  1821. package/locales/angular/global/ff-adlm-bf.js +22 -0
  1822. package/locales/angular/global/ff-adlm-cm.js +22 -0
  1823. package/locales/angular/global/ff-adlm-gh.js +22 -0
  1824. package/locales/angular/global/ff-adlm-gm.js +22 -0
  1825. package/locales/angular/global/ff-adlm-gw.js +22 -0
  1826. package/locales/angular/global/ff-adlm-lr.js +22 -0
  1827. package/locales/angular/global/ff-adlm-mr.js +22 -0
  1828. package/locales/angular/global/ff-adlm-ne.js +22 -0
  1829. package/locales/angular/global/ff-adlm-ng.js +22 -0
  1830. package/locales/angular/global/ff-adlm-sl.js +22 -0
  1831. package/locales/angular/global/ff-adlm-sn.js +22 -0
  1832. package/locales/angular/global/ff-adlm.js +22 -0
  1833. package/locales/angular/global/ff-cm.js +74 -0
  1834. package/locales/angular/global/ff-gn.js +74 -0
  1835. package/locales/angular/global/ff-latn-bf.js +24 -0
  1836. package/locales/angular/global/ff-latn-cm.js +24 -0
  1837. package/locales/angular/global/ff-latn-gh.js +24 -0
  1838. package/locales/angular/global/ff-latn-gm.js +24 -0
  1839. package/locales/angular/global/ff-latn-gn.js +24 -0
  1840. package/locales/angular/global/ff-latn-gw.js +24 -0
  1841. package/locales/angular/global/ff-latn-lr.js +24 -0
  1842. package/locales/angular/global/ff-latn-mr.js +24 -0
  1843. package/locales/angular/global/ff-latn-ne.js +24 -0
  1844. package/locales/angular/global/ff-latn-ng.js +24 -0
  1845. package/locales/angular/global/ff-latn-sl.js +24 -0
  1846. package/locales/angular/global/ff-latn.js +24 -0
  1847. package/locales/angular/global/ff-mr.js +74 -0
  1848. package/locales/angular/global/ff.js +24 -0
  1849. package/locales/angular/global/fi.js +24 -0
  1850. package/locales/angular/global/fil.js +24 -0
  1851. package/locales/angular/global/fo-dk.js +24 -0
  1852. package/locales/angular/global/fo.js +24 -0
  1853. package/locales/angular/global/fr-be.js +26 -0
  1854. package/locales/angular/global/fr-bf.js +26 -0
  1855. package/locales/angular/global/fr-bi.js +26 -0
  1856. package/locales/angular/global/fr-bj.js +26 -0
  1857. package/locales/angular/global/fr-bl.js +26 -0
  1858. package/locales/angular/global/fr-ca.js +26 -0
  1859. package/locales/angular/global/fr-cd.js +26 -0
  1860. package/locales/angular/global/fr-cf.js +26 -0
  1861. package/locales/angular/global/fr-cg.js +26 -0
  1862. package/locales/angular/global/fr-ch.js +26 -0
  1863. package/locales/angular/global/fr-ci.js +26 -0
  1864. package/locales/angular/global/fr-cm.js +26 -0
  1865. package/locales/angular/global/fr-dj.js +26 -0
  1866. package/locales/angular/global/fr-dz.js +26 -0
  1867. package/locales/angular/global/fr-ga.js +26 -0
  1868. package/locales/angular/global/fr-gf.js +26 -0
  1869. package/locales/angular/global/fr-gn.js +26 -0
  1870. package/locales/angular/global/fr-gp.js +26 -0
  1871. package/locales/angular/global/fr-gq.js +26 -0
  1872. package/locales/angular/global/fr-ht.js +26 -0
  1873. package/locales/angular/global/fr-km.js +26 -0
  1874. package/locales/angular/global/fr-lu.js +26 -0
  1875. package/locales/angular/global/fr-ma.js +26 -0
  1876. package/locales/angular/global/fr-mc.js +26 -0
  1877. package/locales/angular/global/fr-mf.js +26 -0
  1878. package/locales/angular/global/fr-mg.js +26 -0
  1879. package/locales/angular/global/fr-ml.js +26 -0
  1880. package/locales/angular/global/fr-mq.js +26 -0
  1881. package/locales/angular/global/fr-mr.js +26 -0
  1882. package/locales/angular/global/fr-mu.js +26 -0
  1883. package/locales/angular/global/fr-nc.js +26 -0
  1884. package/locales/angular/global/fr-ne.js +26 -0
  1885. package/locales/angular/global/fr-pf.js +26 -0
  1886. package/locales/angular/global/fr-pm.js +26 -0
  1887. package/locales/angular/global/fr-re.js +26 -0
  1888. package/locales/angular/global/fr-rw.js +26 -0
  1889. package/locales/angular/global/fr-sc.js +26 -0
  1890. package/locales/angular/global/fr-sn.js +26 -0
  1891. package/locales/angular/global/fr-sy.js +26 -0
  1892. package/locales/angular/global/fr-td.js +26 -0
  1893. package/locales/angular/global/fr-tg.js +26 -0
  1894. package/locales/angular/global/fr-tn.js +26 -0
  1895. package/locales/angular/global/fr-vu.js +26 -0
  1896. package/locales/angular/global/fr-wf.js +26 -0
  1897. package/locales/angular/global/fr-yt.js +26 -0
  1898. package/locales/angular/global/fr.js +26 -0
  1899. package/locales/angular/global/fur.js +24 -0
  1900. package/locales/angular/global/fy.js +24 -0
  1901. package/locales/angular/global/ga-gb.js +30 -0
  1902. package/locales/angular/global/ga.js +30 -0
  1903. package/locales/angular/global/gd.js +28 -0
  1904. package/locales/angular/global/gl.js +24 -0
  1905. package/locales/angular/global/gsw-fr.js +24 -0
  1906. package/locales/angular/global/gsw-li.js +24 -0
  1907. package/locales/angular/global/gsw.js +24 -0
  1908. package/locales/angular/global/gu.js +24 -0
  1909. package/locales/angular/global/guz.js +22 -0
  1910. package/locales/angular/global/gv.js +30 -0
  1911. package/locales/angular/global/ha-gh.js +24 -0
  1912. package/locales/angular/global/ha-ne.js +24 -0
  1913. package/locales/angular/global/ha.js +24 -0
  1914. package/locales/angular/global/haw.js +24 -0
  1915. package/locales/angular/global/he.js +28 -0
  1916. package/locales/angular/global/hi-latn.js +24 -0
  1917. package/locales/angular/global/hi.js +24 -0
  1918. package/locales/angular/global/hr-ba.js +26 -0
  1919. package/locales/angular/global/hr.js +26 -0
  1920. package/locales/angular/global/hsb.js +28 -0
  1921. package/locales/angular/global/hu.js +24 -0
  1922. package/locales/angular/global/hy.js +24 -0
  1923. package/locales/angular/global/ia.js +24 -0
  1924. package/locales/angular/global/id.js +22 -0
  1925. package/locales/angular/global/ig.js +22 -0
  1926. package/locales/angular/global/ii.js +22 -0
  1927. package/locales/angular/global/is.js +24 -0
  1928. package/locales/angular/global/it-ch.js +26 -0
  1929. package/locales/angular/global/it-sm.js +26 -0
  1930. package/locales/angular/global/it-va.js +26 -0
  1931. package/locales/angular/global/it.js +26 -0
  1932. package/locales/angular/global/ja.js +22 -0
  1933. package/locales/angular/global/jgo.js +24 -0
  1934. package/locales/angular/global/jmc.js +24 -0
  1935. package/locales/angular/global/jv.js +22 -0
  1936. package/locales/angular/global/ka.js +24 -0
  1937. package/locales/angular/global/kab.js +24 -0
  1938. package/locales/angular/global/kam.js +22 -0
  1939. package/locales/angular/global/kde.js +22 -0
  1940. package/locales/angular/global/kea.js +22 -0
  1941. package/locales/angular/global/kgp.js +22 -0
  1942. package/locales/angular/global/khq.js +22 -0
  1943. package/locales/angular/global/ki.js +22 -0
  1944. package/locales/angular/global/kk.js +24 -0
  1945. package/locales/angular/global/kkj.js +24 -0
  1946. package/locales/angular/global/kl.js +24 -0
  1947. package/locales/angular/global/kln.js +22 -0
  1948. package/locales/angular/global/km.js +22 -0
  1949. package/locales/angular/global/kn.js +24 -0
  1950. package/locales/angular/global/ko-kp.js +22 -0
  1951. package/locales/angular/global/ko.js +22 -0
  1952. package/locales/angular/global/kok.js +22 -0
  1953. package/locales/angular/global/ks-arab.js +24 -0
  1954. package/locales/angular/global/ks-deva.js +22 -0
  1955. package/locales/angular/global/ks.js +24 -0
  1956. package/locales/angular/global/ksb.js +24 -0
  1957. package/locales/angular/global/ksf.js +22 -0
  1958. package/locales/angular/global/ksh.js +26 -0
  1959. package/locales/angular/global/ku.js +24 -0
  1960. package/locales/angular/global/kw.js +32 -0
  1961. package/locales/angular/global/ky.js +24 -0
  1962. package/locales/angular/global/lag.js +26 -0
  1963. package/locales/angular/global/lb.js +24 -0
  1964. package/locales/angular/global/lg.js +24 -0
  1965. package/locales/angular/global/lkt.js +22 -0
  1966. package/locales/angular/global/ln-ao.js +24 -0
  1967. package/locales/angular/global/ln-cf.js +24 -0
  1968. package/locales/angular/global/ln-cg.js +24 -0
  1969. package/locales/angular/global/ln.js +24 -0
  1970. package/locales/angular/global/lo.js +22 -0
  1971. package/locales/angular/global/lrc-iq.js +22 -0
  1972. package/locales/angular/global/lrc.js +22 -0
  1973. package/locales/angular/global/lt.js +28 -0
  1974. package/locales/angular/global/lu.js +22 -0
  1975. package/locales/angular/global/luo.js +22 -0
  1976. package/locales/angular/global/luy.js +22 -0
  1977. package/locales/angular/global/lv.js +26 -0
  1978. package/locales/angular/global/mai.js +22 -0
  1979. package/locales/angular/global/mas-tz.js +24 -0
  1980. package/locales/angular/global/mas.js +24 -0
  1981. package/locales/angular/global/mer.js +22 -0
  1982. package/locales/angular/global/mfe.js +22 -0
  1983. package/locales/angular/global/mg.js +24 -0
  1984. package/locales/angular/global/mgh.js +22 -0
  1985. package/locales/angular/global/mgo.js +24 -0
  1986. package/locales/angular/global/mi.js +22 -0
  1987. package/locales/angular/global/mk.js +24 -0
  1988. package/locales/angular/global/ml.js +24 -0
  1989. package/locales/angular/global/mn.js +24 -0
  1990. package/locales/angular/global/mni-beng.js +22 -0
  1991. package/locales/angular/global/mni.js +22 -0
  1992. package/locales/angular/global/mr.js +24 -0
  1993. package/locales/angular/global/ms-bn.js +22 -0
  1994. package/locales/angular/global/ms-id.js +22 -0
  1995. package/locales/angular/global/ms-sg.js +22 -0
  1996. package/locales/angular/global/ms.js +22 -0
  1997. package/locales/angular/global/mt.js +28 -0
  1998. package/locales/angular/global/mua.js +22 -0
  1999. package/locales/angular/global/my.js +22 -0
  2000. package/locales/angular/global/mzn.js +22 -0
  2001. package/locales/angular/global/naq.js +26 -0
  2002. package/locales/angular/global/nb-sj.js +24 -0
  2003. package/locales/angular/global/nb.js +24 -0
  2004. package/locales/angular/global/nd.js +24 -0
  2005. package/locales/angular/global/nds-nl.js +22 -0
  2006. package/locales/angular/global/nds.js +22 -0
  2007. package/locales/angular/global/ne-in.js +24 -0
  2008. package/locales/angular/global/ne.js +24 -0
  2009. package/locales/angular/global/nl-aw.js +24 -0
  2010. package/locales/angular/global/nl-be.js +24 -0
  2011. package/locales/angular/global/nl-bq.js +24 -0
  2012. package/locales/angular/global/nl-cw.js +24 -0
  2013. package/locales/angular/global/nl-sr.js +24 -0
  2014. package/locales/angular/global/nl-sx.js +24 -0
  2015. package/locales/angular/global/nl.js +24 -0
  2016. package/locales/angular/global/nmg.js +22 -0
  2017. package/locales/angular/global/nn.js +24 -0
  2018. package/locales/angular/global/nnh.js +24 -0
  2019. package/locales/angular/global/no.js +24 -0
  2020. package/locales/angular/global/nus.js +22 -0
  2021. package/locales/angular/global/nyn.js +24 -0
  2022. package/locales/angular/global/om-ke.js +24 -0
  2023. package/locales/angular/global/om.js +24 -0
  2024. package/locales/angular/global/or.js +24 -0
  2025. package/locales/angular/global/os-ru.js +24 -0
  2026. package/locales/angular/global/os.js +24 -0
  2027. package/locales/angular/global/pa-arab.js +22 -0
  2028. package/locales/angular/global/pa-guru.js +24 -0
  2029. package/locales/angular/global/pa.js +24 -0
  2030. package/locales/angular/global/pcm.js +24 -0
  2031. package/locales/angular/global/pl.js +28 -0
  2032. package/locales/angular/global/ps-pk.js +24 -0
  2033. package/locales/angular/global/ps.js +24 -0
  2034. package/locales/angular/global/pt-ao.js +26 -0
  2035. package/locales/angular/global/pt-ch.js +26 -0
  2036. package/locales/angular/global/pt-cv.js +26 -0
  2037. package/locales/angular/global/pt-gq.js +26 -0
  2038. package/locales/angular/global/pt-gw.js +26 -0
  2039. package/locales/angular/global/pt-lu.js +26 -0
  2040. package/locales/angular/global/pt-mo.js +26 -0
  2041. package/locales/angular/global/pt-mz.js +26 -0
  2042. package/locales/angular/global/pt-pt.js +26 -0
  2043. package/locales/angular/global/pt-st.js +26 -0
  2044. package/locales/angular/global/pt-tl.js +26 -0
  2045. package/locales/angular/global/pt.js +26 -0
  2046. package/locales/angular/global/qu-bo.js +22 -0
  2047. package/locales/angular/global/qu-ec.js +22 -0
  2048. package/locales/angular/global/qu.js +22 -0
  2049. package/locales/angular/global/rm.js +24 -0
  2050. package/locales/angular/global/rn.js +22 -0
  2051. package/locales/angular/global/ro-md.js +26 -0
  2052. package/locales/angular/global/ro.js +26 -0
  2053. package/locales/angular/global/rof.js +24 -0
  2054. package/locales/angular/global/ru-by.js +28 -0
  2055. package/locales/angular/global/ru-kg.js +28 -0
  2056. package/locales/angular/global/ru-kz.js +28 -0
  2057. package/locales/angular/global/ru-md.js +28 -0
  2058. package/locales/angular/global/ru-ua.js +28 -0
  2059. package/locales/angular/global/ru.js +28 -0
  2060. package/locales/angular/global/rw.js +22 -0
  2061. package/locales/angular/global/rwk.js +24 -0
  2062. package/locales/angular/global/sa.js +22 -0
  2063. package/locales/angular/global/sah.js +22 -0
  2064. package/locales/angular/global/saq.js +24 -0
  2065. package/locales/angular/global/sat-olck.js +26 -0
  2066. package/locales/angular/global/sat.js +26 -0
  2067. package/locales/angular/global/sbp.js +22 -0
  2068. package/locales/angular/global/sc.js +24 -0
  2069. package/locales/angular/global/sd-arab.js +24 -0
  2070. package/locales/angular/global/sd-deva.js +22 -0
  2071. package/locales/angular/global/sd.js +24 -0
  2072. package/locales/angular/global/se-fi.js +26 -0
  2073. package/locales/angular/global/se-se.js +26 -0
  2074. package/locales/angular/global/se.js +26 -0
  2075. package/locales/angular/global/seh.js +24 -0
  2076. package/locales/angular/global/ses.js +22 -0
  2077. package/locales/angular/global/sg.js +22 -0
  2078. package/locales/angular/global/shi-latn.js +22 -0
  2079. package/locales/angular/global/shi-tfng.js +26 -0
  2080. package/locales/angular/global/shi.js +26 -0
  2081. package/locales/angular/global/si.js +24 -0
  2082. package/locales/angular/global/sk.js +28 -0
  2083. package/locales/angular/global/sl.js +28 -0
  2084. package/locales/angular/global/smn.js +26 -0
  2085. package/locales/angular/global/sn.js +24 -0
  2086. package/locales/angular/global/so-dj.js +24 -0
  2087. package/locales/angular/global/so-et.js +24 -0
  2088. package/locales/angular/global/so-ke.js +24 -0
  2089. package/locales/angular/global/so.js +24 -0
  2090. package/locales/angular/global/sq-mk.js +24 -0
  2091. package/locales/angular/global/sq-xk.js +24 -0
  2092. package/locales/angular/global/sq.js +24 -0
  2093. package/locales/angular/global/sr-cyrl-ba.js +26 -0
  2094. package/locales/angular/global/sr-cyrl-me.js +26 -0
  2095. package/locales/angular/global/sr-cyrl-xk.js +26 -0
  2096. package/locales/angular/global/sr-cyrl.js +26 -0
  2097. package/locales/angular/global/sr-latn-ba.js +22 -0
  2098. package/locales/angular/global/sr-latn-me.js +22 -0
  2099. package/locales/angular/global/sr-latn-xk.js +22 -0
  2100. package/locales/angular/global/sr-latn.js +22 -0
  2101. package/locales/angular/global/sr.js +26 -0
  2102. package/locales/angular/global/su-latn.js +22 -0
  2103. package/locales/angular/global/su.js +22 -0
  2104. package/locales/angular/global/sv-ax.js +24 -0
  2105. package/locales/angular/global/sv-fi.js +24 -0
  2106. package/locales/angular/global/sv.js +24 -0
  2107. package/locales/angular/global/sw-cd.js +24 -0
  2108. package/locales/angular/global/sw-ke.js +24 -0
  2109. package/locales/angular/global/sw-ug.js +24 -0
  2110. package/locales/angular/global/sw.js +24 -0
  2111. package/locales/angular/global/ta-lk.js +24 -0
  2112. package/locales/angular/global/ta-my.js +24 -0
  2113. package/locales/angular/global/ta-sg.js +24 -0
  2114. package/locales/angular/global/ta.js +24 -0
  2115. package/locales/angular/global/te.js +24 -0
  2116. package/locales/angular/global/teo-ke.js +24 -0
  2117. package/locales/angular/global/teo.js +24 -0
  2118. package/locales/angular/global/tg.js +22 -0
  2119. package/locales/angular/global/th.js +22 -0
  2120. package/locales/angular/global/ti-er.js +24 -0
  2121. package/locales/angular/global/ti.js +24 -0
  2122. package/locales/angular/global/tk.js +24 -0
  2123. package/locales/angular/global/to.js +22 -0
  2124. package/locales/angular/global/tr-cy.js +24 -0
  2125. package/locales/angular/global/tr.js +24 -0
  2126. package/locales/angular/global/tt.js +22 -0
  2127. package/locales/angular/global/twq.js +22 -0
  2128. package/locales/angular/global/tzm.js +24 -0
  2129. package/locales/angular/global/ug.js +24 -0
  2130. package/locales/angular/global/uk.js +28 -0
  2131. package/locales/angular/global/und.js +24 -0
  2132. package/locales/angular/global/ur-in.js +24 -0
  2133. package/locales/angular/global/ur.js +24 -0
  2134. package/locales/angular/global/uz-arab.js +22 -0
  2135. package/locales/angular/global/uz-cyrl.js +22 -0
  2136. package/locales/angular/global/uz-latn.js +24 -0
  2137. package/locales/angular/global/uz.js +24 -0
  2138. package/locales/angular/global/vai-latn.js +22 -0
  2139. package/locales/angular/global/vai-vaii.js +22 -0
  2140. package/locales/angular/global/vai.js +22 -0
  2141. package/locales/angular/global/vi.js +22 -0
  2142. package/locales/angular/global/vun.js +24 -0
  2143. package/locales/angular/global/wae.js +24 -0
  2144. package/locales/angular/global/wo.js +22 -0
  2145. package/locales/angular/global/xh.js +24 -0
  2146. package/locales/angular/global/xog.js +24 -0
  2147. package/locales/angular/global/yav.js +22 -0
  2148. package/locales/angular/global/yi.js +24 -0
  2149. package/locales/angular/global/yo-bj.js +22 -0
  2150. package/locales/angular/global/yo.js +22 -0
  2151. package/locales/angular/global/yrl-co.js +22 -0
  2152. package/locales/angular/global/yrl-ve.js +22 -0
  2153. package/locales/angular/global/yrl.js +22 -0
  2154. package/locales/angular/global/yue-hans.js +22 -0
  2155. package/locales/angular/global/yue-hant.js +22 -0
  2156. package/locales/angular/global/yue.js +22 -0
  2157. package/locales/angular/global/zgh.js +22 -0
  2158. package/locales/angular/global/zh-hans-hk.js +22 -0
  2159. package/locales/angular/global/zh-hans-mo.js +22 -0
  2160. package/locales/angular/global/zh-hans-sg.js +22 -0
  2161. package/locales/angular/global/zh-hans.js +22 -0
  2162. package/locales/angular/global/zh-hant-hk.js +22 -0
  2163. package/locales/angular/global/zh-hant-mo.js +22 -0
  2164. package/locales/angular/global/zh-hant.js +22 -0
  2165. package/locales/angular/global/zh.js +22 -0
  2166. package/locales/angular/global/zu.js +24 -0
  2167. package/locales/moment/af.js +82 -0
  2168. package/locales/moment/ar-dz.js +167 -0
  2169. package/locales/moment/ar-kw.js +66 -0
  2170. package/locales/moment/ar-ly.js +182 -0
  2171. package/locales/moment/ar-ma.js +67 -0
  2172. package/locales/moment/ar-ps.js +123 -0
  2173. package/locales/moment/ar-sa.js +116 -0
  2174. package/locales/moment/ar-tn.js +66 -0
  2175. package/locales/moment/ar.js +200 -0
  2176. package/locales/moment/az.js +113 -0
  2177. package/locales/moment/be.js +153 -0
  2178. package/locales/moment/bg.js +98 -0
  2179. package/locales/moment/bm.js +62 -0
  2180. package/locales/moment/bn-bd.js +140 -0
  2181. package/locales/moment/bn.js +130 -0
  2182. package/locales/moment/bo.js +135 -0
  2183. package/locales/moment/br.js +179 -0
  2184. package/locales/moment/bs.js +171 -0
  2185. package/locales/moment/ca.js +111 -0
  2186. package/locales/moment/cs.js +192 -0
  2187. package/locales/moment/cv.js +74 -0
  2188. package/locales/moment/cy.js +109 -0
  2189. package/locales/moment/da.js +64 -0
  2190. package/locales/moment/de-at.js +90 -0
  2191. package/locales/moment/de-ch.js +87 -0
  2192. package/locales/moment/de.js +89 -0
  2193. package/locales/moment/dv.js +101 -0
  2194. package/locales/moment/el.js +117 -0
  2195. package/locales/moment/en-au.js +79 -0
  2196. package/locales/moment/en-ca.js +75 -0
  2197. package/locales/moment/en-gb.js +79 -0
  2198. package/locales/moment/en-ie.js +79 -0
  2199. package/locales/moment/en-il.js +75 -0
  2200. package/locales/moment/en-in.js +79 -0
  2201. package/locales/moment/en-nz.js +79 -0
  2202. package/locales/moment/en-sg.js +79 -0
  2203. package/locales/moment/eo.js +79 -0
  2204. package/locales/moment/es-do.js +119 -0
  2205. package/locales/moment/es-mx.js +121 -0
  2206. package/locales/moment/es-us.js +121 -0
  2207. package/locales/moment/es.js +121 -0
  2208. package/locales/moment/et.js +89 -0
  2209. package/locales/moment/eu.js +76 -0
  2210. package/locales/moment/fa.js +124 -0
  2211. package/locales/moment/fi.js +135 -0
  2212. package/locales/moment/fil.js +69 -0
  2213. package/locales/moment/fo.js +68 -0
  2214. package/locales/moment/fr-ca.js +81 -0
  2215. package/locales/moment/fr-ch.js +85 -0
  2216. package/locales/moment/fr.js +119 -0
  2217. package/locales/moment/fy.js +86 -0
  2218. package/locales/moment/ga.js +106 -0
  2219. package/locales/moment/gd.js +106 -0
  2220. package/locales/moment/gl.js +86 -0
  2221. package/locales/moment/gom-deva.js +137 -0
  2222. package/locales/moment/gom-latn.js +135 -0
  2223. package/locales/moment/gu.js +133 -0
  2224. package/locales/moment/he.js +105 -0
  2225. package/locales/moment/hi.js +179 -0
  2226. package/locales/moment/hr.js +167 -0
  2227. package/locales/moment/hu.js +129 -0
  2228. package/locales/moment/hy-am.js +105 -0
  2229. package/locales/moment/id.js +87 -0
  2230. package/locales/moment/is.js +151 -0
  2231. package/locales/moment/it-ch.js +75 -0
  2232. package/locales/moment/it.js +117 -0
  2233. package/locales/moment/ja.js +159 -0
  2234. package/locales/moment/jv.js +87 -0
  2235. package/locales/moment/ka.js +103 -0
  2236. package/locales/moment/kk.js +93 -0
  2237. package/locales/moment/km.js +114 -0
  2238. package/locales/moment/kn.js +135 -0
  2239. package/locales/moment/ko.js +86 -0
  2240. package/locales/moment/ku-kmr.js +125 -0
  2241. package/locales/moment/ku.js +129 -0
  2242. package/locales/moment/ky.js +95 -0
  2243. package/locales/moment/lb.js +148 -0
  2244. package/locales/moment/lo.js +77 -0
  2245. package/locales/moment/lt.js +136 -0
  2246. package/locales/moment/lv.js +105 -0
  2247. package/locales/moment/me.js +128 -0
  2248. package/locales/moment/mi.js +71 -0
  2249. package/locales/moment/mk.js +97 -0
  2250. package/locales/moment/ml.js +93 -0
  2251. package/locales/moment/mn.js +111 -0
  2252. package/locales/moment/mr.js +214 -0
  2253. package/locales/moment/ms-my.js +87 -0
  2254. package/locales/moment/ms.js +86 -0
  2255. package/locales/moment/mt.js +67 -0
  2256. package/locales/moment/my.js +102 -0
  2257. package/locales/moment/nb.js +71 -0
  2258. package/locales/moment/ne.js +132 -0
  2259. package/locales/moment/nl-be.js +113 -0
  2260. package/locales/moment/nl.js +115 -0
  2261. package/locales/moment/nn.js +70 -0
  2262. package/locales/moment/oc-lnc.js +96 -0
  2263. package/locales/moment/pa-in.js +133 -0
  2264. package/locales/moment/pl.js +151 -0
  2265. package/locales/moment/pt-br.js +69 -0
  2266. package/locales/moment/pt.js +74 -0
  2267. package/locales/moment/ro.js +87 -0
  2268. package/locales/moment/ru.js +224 -0
  2269. package/locales/moment/sd.js +92 -0
  2270. package/locales/moment/se.js +68 -0
  2271. package/locales/moment/si.js +80 -0
  2272. package/locales/moment/sk.js +156 -0
  2273. package/locales/moment/sl.js +182 -0
  2274. package/locales/moment/sq.js +76 -0
  2275. package/locales/moment/sr-cyrl.js +138 -0
  2276. package/locales/moment/sr.js +140 -0
  2277. package/locales/moment/ss.js +95 -0
  2278. package/locales/moment/sv.js +79 -0
  2279. package/locales/moment/sw.js +66 -0
  2280. package/locales/moment/ta.js +142 -0
  2281. package/locales/moment/te.js +99 -0
  2282. package/locales/moment/tet.js +79 -0
  2283. package/locales/moment/tg.js +128 -0
  2284. package/locales/moment/th.js +76 -0
  2285. package/locales/moment/tk.js +102 -0
  2286. package/locales/moment/tl-ph.js +68 -0
  2287. package/locales/moment/tlh.js +135 -0
  2288. package/locales/moment/tr.js +117 -0
  2289. package/locales/moment/tzl.js +100 -0
  2290. package/locales/moment/tzm-latn.js +65 -0
  2291. package/locales/moment/tzm.js +65 -0
  2292. package/locales/moment/ug-cn.js +122 -0
  2293. package/locales/moment/uk.js +178 -0
  2294. package/locales/moment/ur.js +93 -0
  2295. package/locales/moment/uz-latn.js +65 -0
  2296. package/locales/moment/uz.js +62 -0
  2297. package/locales/moment/vi.js +91 -0
  2298. package/locales/moment/x-pseudo.js +84 -0
  2299. package/locales/moment/yo.js +64 -0
  2300. package/locales/moment/zh-cn.js +131 -0
  2301. package/locales/moment/zh-hk.js +112 -0
  2302. package/locales/moment/zh-mo.js +111 -0
  2303. package/locales/moment/zh-tw.js +110 -0
  2304. package/locales/moment-timezone/moment-timezone-with-data.js +1582 -0
  2305. package/npm-shrinkwrap.json +17 -0
  2306. package/oAuth/.npmignore +2 -0
  2307. package/oAuth/bundles/index.umd.js +495 -0
  2308. package/oAuth/esm2022/index.mjs +5 -0
  2309. package/oAuth/esm2022/oAuth.service.mjs +51 -0
  2310. package/oAuth/esm2022/oAuth.utils.mjs +423 -0
  2311. package/oAuth/esm2022/public_api.mjs +3 -0
  2312. package/oAuth/fesm2022/index.mjs +478 -0
  2313. package/oAuth/fesm2022/index.mjs.map +1 -0
  2314. package/oAuth/index.d.ts +5 -0
  2315. package/oAuth/oAuth.service.d.ts +19 -0
  2316. package/oAuth/oAuth.utils.d.ts +20 -0
  2317. package/oAuth/package.json +25 -0
  2318. package/oAuth/public_api.d.ts +2 -0
  2319. package/package-lock.json +17 -0
  2320. package/package.json +16 -0
  2321. package/runtime/base/.npmignore +2 -0
  2322. package/runtime/base/bundles/index.umd.js +6031 -0
  2323. package/runtime/base/components/app-component/app.component.d.ts +46 -0
  2324. package/runtime/base/components/app-spinner.component.d.ts +10 -0
  2325. package/runtime/base/components/base-custom-widget.component.d.ts +75 -0
  2326. package/runtime/base/components/base-layout.component.d.ts +30 -0
  2327. package/runtime/base/components/base-page.component.d.ts +83 -0
  2328. package/runtime/base/components/base-partial.component.d.ts +65 -0
  2329. package/runtime/base/components/base-prefab.component.d.ts +61 -0
  2330. package/runtime/base/components/base-spa-page.component.d.ts +85 -0
  2331. package/runtime/base/components/custom-toaster.component.d.ts +19 -0
  2332. package/runtime/base/components/empty-component/empty-page.component.d.ts +18 -0
  2333. package/runtime/base/components/prefab-preview.component.d.ts +23 -0
  2334. package/runtime/base/directives/accessroles.directive.d.ts +40 -0
  2335. package/runtime/base/directives/prefab.directive.d.ts +17 -0
  2336. package/runtime/base/esm2022/components/app-component/app.component.mjs +201 -0
  2337. package/runtime/base/esm2022/components/app-spinner.component.mjs +54 -0
  2338. package/runtime/base/esm2022/components/base-custom-widget.component.mjs +339 -0
  2339. package/runtime/base/esm2022/components/base-layout.component.mjs +76 -0
  2340. package/runtime/base/esm2022/components/base-page.component.mjs +378 -0
  2341. package/runtime/base/esm2022/components/base-partial.component.mjs +221 -0
  2342. package/runtime/base/esm2022/components/base-prefab.component.mjs +253 -0
  2343. package/runtime/base/esm2022/components/base-spa-page.component.mjs +353 -0
  2344. package/runtime/base/esm2022/components/custom-toaster.component.mjs +87 -0
  2345. package/runtime/base/esm2022/components/empty-component/empty-page.component.mjs +66 -0
  2346. package/runtime/base/esm2022/components/prefab-preview.component.mjs +123 -0
  2347. package/runtime/base/esm2022/directives/accessroles.directive.mjs +118 -0
  2348. package/runtime/base/esm2022/directives/prefab.directive.mjs +50 -0
  2349. package/runtime/base/esm2022/guards/auth.guard.mjs +43 -0
  2350. package/runtime/base/esm2022/guards/can-deactivate-page.guard.mjs +44 -0
  2351. package/runtime/base/esm2022/guards/page-not-found.guard.mjs +22 -0
  2352. package/runtime/base/esm2022/guards/role.guard.mjs +47 -0
  2353. package/runtime/base/esm2022/index.mjs +5 -0
  2354. package/runtime/base/esm2022/overrides/wm_dom_renderer.mjs +363 -0
  2355. package/runtime/base/esm2022/overrides/wm_shared_styles_host.mjs +85 -0
  2356. package/runtime/base/esm2022/public_api.mjs +49 -0
  2357. package/runtime/base/esm2022/resolves/app-before-load.resolve.mjs +22 -0
  2358. package/runtime/base/esm2022/resolves/app-extension.resolve.mjs +48 -0
  2359. package/runtime/base/esm2022/resolves/app-js.resolve.mjs +39 -0
  2360. package/runtime/base/esm2022/resolves/app-variables.resolve.mjs +31 -0
  2361. package/runtime/base/esm2022/resolves/i18n.resolve.mjs +18 -0
  2362. package/runtime/base/esm2022/resolves/metadata.resolve.mjs +22 -0
  2363. package/runtime/base/esm2022/resolves/security-config.resolve.mjs +26 -0
  2364. package/runtime/base/esm2022/runtime-base.module.mjs +942 -0
  2365. package/runtime/base/esm2022/services/app-defaults.service.mjs +22 -0
  2366. package/runtime/base/esm2022/services/app.manager.service.mjs +522 -0
  2367. package/runtime/base/esm2022/services/app.service.mjs +232 -0
  2368. package/runtime/base/esm2022/services/dynamic-component-ref-provider.service.mjs +86 -0
  2369. package/runtime/base/esm2022/services/http-interceptor.services.mjs +83 -0
  2370. package/runtime/base/esm2022/services/i18n.service.mjs +305 -0
  2371. package/runtime/base/esm2022/services/navigation.service.mjs +307 -0
  2372. package/runtime/base/esm2022/services/pipe-provider.service.mjs +127 -0
  2373. package/runtime/base/esm2022/services/pipe.service.mjs +33 -0
  2374. package/runtime/base/esm2022/services/prefab-manager.service.mjs +95 -0
  2375. package/runtime/base/esm2022/services/spinner.service.mjs +144 -0
  2376. package/runtime/base/esm2022/services/toaster.service.mjs +90 -0
  2377. package/runtime/base/esm2022/types/types.mjs +22 -0
  2378. package/runtime/base/esm2022/util/fragment-monitor.mjs +59 -0
  2379. package/runtime/base/esm2022/util/utils.mjs +24 -0
  2380. package/runtime/base/esm2022/util/wm-route-reuse-strategy.mjs +176 -0
  2381. package/runtime/base/fesm2022/index.mjs +6068 -0
  2382. package/runtime/base/fesm2022/index.mjs.map +1 -0
  2383. package/runtime/base/guards/auth.guard.d.ts +14 -0
  2384. package/runtime/base/guards/can-deactivate-page.guard.d.ts +16 -0
  2385. package/runtime/base/guards/page-not-found.guard.d.ts +12 -0
  2386. package/runtime/base/guards/role.guard.d.ts +17 -0
  2387. package/runtime/base/index.d.ts +5 -0
  2388. package/runtime/base/overrides/wm_dom_renderer.d.ts +33 -0
  2389. package/runtime/base/overrides/wm_shared_styles_host.d.ts +23 -0
  2390. package/runtime/base/package.json +25 -0
  2391. package/runtime/base/public_api.d.ts +48 -0
  2392. package/runtime/base/resolves/app-before-load.resolve.d.ts +11 -0
  2393. package/runtime/base/resolves/app-extension.resolve.d.ts +14 -0
  2394. package/runtime/base/resolves/app-js.resolve.d.ts +15 -0
  2395. package/runtime/base/resolves/app-variables.resolve.d.ts +11 -0
  2396. package/runtime/base/resolves/i18n.resolve.d.ts +9 -0
  2397. package/runtime/base/resolves/metadata.resolve.d.ts +9 -0
  2398. package/runtime/base/resolves/security-config.resolve.d.ts +10 -0
  2399. package/runtime/base/runtime-base.module.d.ts +171 -0
  2400. package/runtime/base/services/app-defaults.service.d.ts +12 -0
  2401. package/runtime/base/services/app.manager.service.d.ts +142 -0
  2402. package/runtime/base/services/app.service.d.ts +70 -0
  2403. package/runtime/base/services/dynamic-component-ref-provider.service.d.ts +26 -0
  2404. package/runtime/base/services/http-interceptor.services.d.ts +17 -0
  2405. package/runtime/base/services/i18n.service.d.ts +58 -0
  2406. package/runtime/base/services/navigation.service.d.ts +45 -0
  2407. package/runtime/base/services/pipe-provider.service.d.ts +31 -0
  2408. package/runtime/base/services/pipe.service.d.ts +12 -0
  2409. package/runtime/base/services/prefab-manager.service.d.ts +25 -0
  2410. package/runtime/base/services/spinner.service.d.ts +49 -0
  2411. package/runtime/base/services/toaster.service.d.ts +23 -0
  2412. package/runtime/base/types/types.d.ts +25 -0
  2413. package/runtime/base/util/fragment-monitor.d.ts +22 -0
  2414. package/runtime/base/util/utils.d.ts +6 -0
  2415. package/runtime/base/util/wm-route-reuse-strategy.d.ts +29 -0
  2416. package/runtime/dynamic/.npmignore +2 -0
  2417. package/runtime/dynamic/app/app.config.d.ts +5 -0
  2418. package/runtime/dynamic/app/app.module.d.ts +37 -0
  2419. package/runtime/dynamic/app/app.routes.d.ts +2 -0
  2420. package/runtime/dynamic/app/components/page-wrapper.component.d.ts +37 -0
  2421. package/runtime/dynamic/app/services/app-extension.service.d.ts +7 -0
  2422. package/runtime/dynamic/app/services/app-js-provider.service.d.ts +10 -0
  2423. package/runtime/dynamic/app/services/app-resource-manager.service.d.ts +10 -0
  2424. package/runtime/dynamic/app/services/app-variables-provider.service.d.ts +12 -0
  2425. package/runtime/dynamic/app/services/component-ref-provider.service.d.ts +17 -0
  2426. package/runtime/dynamic/app/services/customwidget-config-provider.service.d.ts +8 -0
  2427. package/runtime/dynamic/app/services/prefab-config-provider.service.d.ts +10 -0
  2428. package/runtime/dynamic/bundles/index.umd.js +887 -0
  2429. package/runtime/dynamic/esm2022/app/app.config.mjs +141 -0
  2430. package/runtime/dynamic/esm2022/app/app.module.mjs +314 -0
  2431. package/runtime/dynamic/esm2022/app/app.routes.mjs +21 -0
  2432. package/runtime/dynamic/esm2022/app/components/page-wrapper.component.mjs +106 -0
  2433. package/runtime/dynamic/esm2022/app/services/app-extension.service.mjs +24 -0
  2434. package/runtime/dynamic/esm2022/app/services/app-js-provider.service.mjs +25 -0
  2435. package/runtime/dynamic/esm2022/app/services/app-resource-manager.service.mjs +31 -0
  2436. package/runtime/dynamic/esm2022/app/services/app-variables-provider.service.mjs +27 -0
  2437. package/runtime/dynamic/esm2022/app/services/component-ref-provider.service.mjs +266 -0
  2438. package/runtime/dynamic/esm2022/app/services/customwidget-config-provider.service.mjs +22 -0
  2439. package/runtime/dynamic/esm2022/app/services/prefab-config-provider.service.mjs +29 -0
  2440. package/runtime/dynamic/esm2022/index.mjs +5 -0
  2441. package/runtime/dynamic/esm2022/main.mjs +42 -0
  2442. package/runtime/dynamic/esm2022/public_api.mjs +10 -0
  2443. package/runtime/dynamic/fesm2022/index.mjs +950 -0
  2444. package/runtime/dynamic/fesm2022/index.mjs.map +1 -0
  2445. package/runtime/dynamic/index.d.ts +5 -0
  2446. package/runtime/dynamic/main.d.ts +2 -0
  2447. package/runtime/dynamic/package.json +25 -0
  2448. package/runtime/dynamic/public_api.d.ts +9 -0
  2449. package/scripts/@wavemaker/nvd3/build/nv.d3.min.js +1 -0
  2450. package/scripts/d3/d3.min.js +2 -0
  2451. package/scripts/datatable/datatable.js +3769 -0
  2452. package/scripts/iscroll/build/iscroll.js +2091 -0
  2453. package/scripts/jquery-ui/ui/widgets/droppable.js +503 -0
  2454. package/scripts/jquery-ui/ui/widgets/resizable.js +1275 -0
  2455. package/scripts/jquery-ui/ui/widgets/sortable.js +1608 -0
  2456. package/scripts/jquery.ui.touch-punch/jquery.ui.touch-punch.min.js +11 -0
  2457. package/scripts/summernote/dist/summernote-lite.min.js +2 -0
  2458. package/scripts/swipey/swipey.jquery.plugin.js +769 -0
  2459. package/scripts/tree-keyboard-navigation/keyboard-navigation.js +251 -0
  2460. package/security/.npmignore +2 -0
  2461. package/security/bundles/index.umd.js +446 -0
  2462. package/security/esm2022/index.mjs +5 -0
  2463. package/security/esm2022/public_api.mjs +2 -0
  2464. package/security/esm2022/security.service.mjs +439 -0
  2465. package/security/fesm2022/index.mjs +444 -0
  2466. package/security/fesm2022/index.mjs.map +1 -0
  2467. package/security/index.d.ts +5 -0
  2468. package/security/package.json +25 -0
  2469. package/security/public_api.d.ts +1 -0
  2470. package/security/security.service.d.ts +127 -0
  2471. package/swipey/.npmignore +2 -0
  2472. package/swipey/bundles/index.umd.js +54 -0
  2473. package/swipey/esm2022/index.mjs +5 -0
  2474. package/swipey/esm2022/public_api.mjs +2 -0
  2475. package/swipey/esm2022/swipe.animation.mjs +45 -0
  2476. package/swipey/fesm2022/index.mjs +51 -0
  2477. package/swipey/fesm2022/index.mjs.map +1 -0
  2478. package/swipey/index.d.ts +5 -0
  2479. package/swipey/package.json +25 -0
  2480. package/swipey/public_api.d.ts +1 -0
  2481. package/swipey/swipe.animation.d.ts +19 -0
  2482. package/transpiler/.npmignore +2 -0
  2483. package/transpiler/build.d.ts +35 -0
  2484. package/transpiler/bundles/index.umd.js +804 -0
  2485. package/transpiler/esm2022/build.mjs +475 -0
  2486. package/transpiler/esm2022/imports.mjs +318 -0
  2487. package/transpiler/esm2022/index.mjs +5 -0
  2488. package/transpiler/esm2022/public_api.mjs +3 -0
  2489. package/transpiler/fesm2022/index.mjs +799 -0
  2490. package/transpiler/fesm2022/index.mjs.map +1 -0
  2491. package/transpiler/imports.d.ts +2 -0
  2492. package/transpiler/index.d.ts +5 -0
  2493. package/transpiler/package.json +26 -0
  2494. package/transpiler/public_api.d.ts +2 -0
  2495. package/variables/.npmignore +2 -0
  2496. package/variables/advanced-options.d.ts +4 -0
  2497. package/variables/bundles/index.umd.js +3174 -0
  2498. package/variables/constants/variables.constants.d.ts +315 -0
  2499. package/variables/esm2022/advanced-options.mjs +2 -0
  2500. package/variables/esm2022/constants/variables.constants.mjs +333 -0
  2501. package/variables/esm2022/factory/variable-manager.factory.mjs +24 -0
  2502. package/variables/esm2022/factory/variable.factory.mjs +46 -0
  2503. package/variables/esm2022/index.mjs +5 -0
  2504. package/variables/esm2022/manager/action/base-action.manager.mjs +14 -0
  2505. package/variables/esm2022/manager/action/login-action.manager.mjs +180 -0
  2506. package/variables/esm2022/manager/action/logout-action.manager.mjs +77 -0
  2507. package/variables/esm2022/manager/action/navigation-action.manager.mjs +8 -0
  2508. package/variables/esm2022/manager/action/notification-action.manager.mjs +152 -0
  2509. package/variables/esm2022/manager/variable/base-variable.manager.mjs +81 -0
  2510. package/variables/esm2022/manager/variable/web-socket-variable.manager.mjs +289 -0
  2511. package/variables/esm2022/model/action/login-action.mjs +25 -0
  2512. package/variables/esm2022/model/action/logout-action.mjs +22 -0
  2513. package/variables/esm2022/model/action/navigation-action.mjs +26 -0
  2514. package/variables/esm2022/model/action/notification-action.mjs +91 -0
  2515. package/variables/esm2022/model/variable/web-socket-variable.mjs +34 -0
  2516. package/variables/esm2022/public_api.mjs +6 -0
  2517. package/variables/esm2022/service/metadata-service/metadata.service.mjs +60 -0
  2518. package/variables/esm2022/service/variables.service.mjs +199 -0
  2519. package/variables/esm2022/util/action/navigation-action.utils.mjs +52 -0
  2520. package/variables/esm2022/util/oAuth.utils.mjs +11 -0
  2521. package/variables/esm2022/util/variable/pagination.utils.mjs +402 -0
  2522. package/variables/esm2022/util/variable/service-variable.utils.mjs +376 -0
  2523. package/variables/esm2022/util/variable/variables.utils.mjs +809 -0
  2524. package/variables/factory/variable-manager.factory.d.ts +3 -0
  2525. package/variables/factory/variable.factory.d.ts +3 -0
  2526. package/variables/fesm2022/index.mjs +3236 -0
  2527. package/variables/fesm2022/index.mjs.map +1 -0
  2528. package/variables/index.d.ts +5 -0
  2529. package/variables/manager/action/base-action.manager.d.ts +4 -0
  2530. package/variables/manager/action/login-action.manager.d.ts +7 -0
  2531. package/variables/manager/action/logout-action.manager.d.ts +4 -0
  2532. package/variables/manager/action/navigation-action.manager.d.ts +4 -0
  2533. package/variables/manager/action/notification-action.manager.d.ts +23 -0
  2534. package/variables/manager/variable/base-variable.manager.d.ts +24 -0
  2535. package/variables/manager/variable/web-socket-variable.manager.d.ts +124 -0
  2536. package/variables/model/action/login-action.d.ts +11 -0
  2537. package/variables/model/action/logout-action.d.ts +10 -0
  2538. package/variables/model/action/navigation-action.d.ts +9 -0
  2539. package/variables/model/action/notification-action.d.ts +25 -0
  2540. package/variables/model/variable/web-socket-variable.d.ts +11 -0
  2541. package/variables/package.json +25 -0
  2542. package/variables/public_api.d.ts +5 -0
  2543. package/variables/service/metadata-service/metadata.service.d.ts +16 -0
  2544. package/variables/service/variables.service.d.ts +57 -0
  2545. package/variables/util/action/navigation-action.utils.d.ts +6 -0
  2546. package/variables/util/oAuth.utils.d.ts +3 -0
  2547. package/variables/util/variable/pagination.utils.d.ts +82 -0
  2548. package/variables/util/variable/service-variable.utils.d.ts +16 -0
  2549. package/variables/util/variable/variables.utils.d.ts +80 -0
@@ -0,0 +1,3236 @@
1
+ import { $rootScope as $rootScope$1, BaseAction, ApiAwareVariable, VARIABLE_CONSTANTS as VARIABLE_CONSTANTS$1, TimerAction, CrudVariable, LiveVariable, ServiceVariable, ModelVariable, wmSetDependency, getTarget, getTargetNodeKey as getTargetNodeKey$1, setValueToNode as setValueToNode$1, internalBoundNodeMap as internalBoundNodeMap$1 } from '@wavemaker-ai/variables';
2
+ import * as i1 from '@wm/core';
3
+ import { $parseEvent, triggerFn, findValueOf, stringStartsWith, getClonedObject, $watch, getBlob, DEFAULT_FORMATS, DataType, extractType, getWmProjectProperties, getValidJSON, isDateTimeType, isDefined, replace as replace$1, xmlToJson, isInsecureContentRequest, isObject as isObject$1, DataSource, _WM_APP_PROJECT, $invokeWatchers, processFilterExpBindNode } from '@wm/core';
4
+ import { noop, debounce, isUndefined, isFunction, forEach, isString, split, join, slice, get, pickBy, isEmpty, includes, toUpper, last, replace, keys, filter, set, isObject, isArray, isNumber, map, trim, remove, isDate, toLower, clone, isNil, capitalize, extend, isBoolean, each, startsWith, find, result, concat, isNull, reject } from 'lodash-es';
5
+ import * as momentLib from 'moment';
6
+ import { $WebSocket } from 'angular2-websocket/angular2-websocket';
7
+ import { jmespath } from '@metrichor/jmespath';
8
+ import * as i0 from '@angular/core';
9
+ import { Injectable } from '@angular/core';
10
+ import * as i3 from '@angular/router';
11
+ import * as i4 from '@wm/oAuth';
12
+ import * as i5 from '@wm/security';
13
+
14
+ const CONSTANTS = {
15
+ isStudioMode: false,
16
+ isRunMode: true,
17
+ XSRF_COOKIE_NAME: 'wm_xsrf_token',
18
+ DEFAULT_TIMER_DELAY: 500,
19
+ WIDGET_DOESNT_EXIST: 'The widget you\'re trying to navigate to doesn\'t exist on this page'
20
+ };
21
+ const VARIABLE_CONSTANTS = {
22
+ CATEGORY: {
23
+ MODEL: 'wm.Variable',
24
+ LIVE: 'wm.LiveVariable',
25
+ CRUD: 'wm.CrudVariable',
26
+ SERVICE: 'wm.ServiceVariable',
27
+ WEBSOCKET: 'wm.WebSocketVariable',
28
+ NAVIGATION: 'wm.NavigationAction',
29
+ NOTIFICATION: 'wm.NotificationAction',
30
+ TIMER: 'wm.TimerAction',
31
+ LOGIN: 'wm.LoginAction',
32
+ LOGOUT: 'wm.LogoutAction',
33
+ },
34
+ EVENTS: ['onBefore',
35
+ 'onBeforeUpdate',
36
+ 'onResult',
37
+ 'onBeforeOpen',
38
+ 'onOpen',
39
+ 'onBeforeMessageSend',
40
+ 'onMessageReceive',
41
+ 'onProgress',
42
+ 'onError',
43
+ 'onBeforeDatasetReady',
44
+ 'onCanUpdate',
45
+ 'onClick',
46
+ 'onHide',
47
+ 'onOk',
48
+ 'onCancel',
49
+ 'onBeforeClose',
50
+ 'onClose',
51
+ 'onTimerFire',
52
+ 'onSuccess',
53
+ 'onOnline',
54
+ 'onOffline'],
55
+ EVENT: {
56
+ 'CAN_UPDATE': 'onCanUpdate',
57
+ 'BEFORE': 'onBefore',
58
+ 'BEFORE_UPDATE': 'onBeforeUpdate',
59
+ 'PREPARE_SETDATA': 'onBeforeDatasetReady',
60
+ 'RESULT': 'onResult',
61
+ 'ERROR': 'onError',
62
+ 'ABORT': 'onAbort',
63
+ 'PROGRESS': 'onProgress',
64
+ 'CLICK': 'onClick',
65
+ 'HIDE': 'onHide',
66
+ 'OK': 'onOk',
67
+ 'CANCEL': 'onCancel',
68
+ 'CLOSE': 'onClose',
69
+ 'TIMER_FIRE': 'onTimerFire',
70
+ 'SUCCESS': 'onSuccess',
71
+ 'BEFORE_OPEN': 'onBeforeOpen',
72
+ 'OPEN': 'onOpen',
73
+ 'BEFORE_SEND': 'onBeforeMessageSend',
74
+ 'MESSAGE_RECEIVE': 'onMessageReceive',
75
+ 'BEFORE_CLOSE': 'onBeforeClose'
76
+ },
77
+ OWNER: {
78
+ 'APP': 'App',
79
+ 'PAGE': 'Page'
80
+ },
81
+ REST_SUPPORTED_SERVICES: ['JavaService', 'SoapService', 'FeedService', 'RestService', 'SecurityServiceType', 'DataService', 'WebSocketService', 'OpenAPIService'],
82
+ PAGINATION_PARAMS: ['page', 'size', 'sort'],
83
+ REST_SERVICE: {
84
+ 'BASE_PATH_KEY': 'x-WM-BASE_PATH',
85
+ 'RELATIVE_PATH_KEY': 'x-WM-RELATIVE_PATH',
86
+ 'OAUTH_PROVIDER_KEY': 'x-WM-PROVIDER_ID',
87
+ 'AUTH_HDR_KEY': 'Authorization',
88
+ 'SECURITY_DEFN': {
89
+ 'BASIC': 'basic',
90
+ 'OAUTH2': 'oauth2',
91
+ },
92
+ 'AUTH_TYPE': {
93
+ 'BASIC': 'BASIC',
94
+ 'OAUTH': 'OAUTH2',
95
+ 'NONE': 'NONE',
96
+ },
97
+ 'CONTENT_TYPE_KEY': 'x-WM-CONTENT_TYPE',
98
+ 'ACCESSTOKEN_PLACEHOLDER': {
99
+ 'LEFT': '',
100
+ 'RIGHT': '.access_token'
101
+ },
102
+ ERR_TYPE: {
103
+ NO_ACCESSTOKEN: 'missing_accesstoken',
104
+ NO_CREDENTIALS: 'no_credentials',
105
+ METADATA_MISSING: 'metadata_missing',
106
+ CRUD_OPERATION_MISSING: 'crud_operation_missing',
107
+ USER_UNAUTHORISED: 'user_unauthorised',
108
+ REQUIRED_FIELD_MISSING: 'required_field_missing',
109
+ },
110
+ ERR_MSG: {
111
+ NO_ACCESSTOKEN: 'Access token missing',
112
+ NO_CREDENTIALS: 'No credentials present',
113
+ METADATA_MISSING: 'Metadata missing for "$variable"',
114
+ USER_UNAUTHORISED: 'Unauthorized User',
115
+ CRUD_OPERATION_MISSING: 'Operation "$operation" not allowed for "$variable"',
116
+ REQUIRED_FIELD_MISSING: 'Required field(s) missing: "${0}"'
117
+ },
118
+ UNCLOAKED_HEADERS: ['CONTENT-TYPE', 'ACCEPT', 'CONTENT-LENGTH', 'ACCEPT-ENCODING', 'ACCEPT-LANGUAGE'],
119
+ PREFIX: {
120
+ AUTH_HDR_VAL: {
121
+ BASIC: 'Basic',
122
+ OAUTH: 'Bearer'
123
+ },
124
+ CLOAK_HEADER_KEY: 'X-WM-'
125
+ }
126
+ },
127
+ SERVICE_TYPE: {
128
+ JAVA: 'JavaService',
129
+ REST: 'RestService',
130
+ SOAP: 'SoapService',
131
+ FEED: 'FeedService',
132
+ DATA: 'DataService',
133
+ SECURITY: 'SecurityServiceType',
134
+ WEBSOCKET: 'WebSocketService',
135
+ OPENAPI: 'OpenAPIService'
136
+ },
137
+ CONTROLLER_TYPE: {
138
+ QUERY: 'QueryExecution',
139
+ PROCEDURE: 'ProcedureExecution'
140
+ },
141
+ HTTP_STATUS_CODE: {
142
+ CORS_FAILURE: -1,
143
+ UNAUTHORIZED: 401,
144
+ FORBIDDEN: 403
145
+ },
146
+ EXPORT_TYPES_MAP: {
147
+ 'EXCEL': '.xlsx',
148
+ 'CSV': '.csv'
149
+ },
150
+ DEFAULT_VAR: {
151
+ 'NOTIFICATION': 'appNotification'
152
+ }
153
+ };
154
+ const WS_CONSTANTS = {
155
+ NON_BODY_HTTP_METHODS: ['GET', 'HEAD'],
156
+ CONTENT_TYPES: {
157
+ FORM_URL_ENCODED: 'application/x-www-form-urlencoded',
158
+ MULTIPART_FORMDATA: 'multipart/form-data',
159
+ OCTET_STREAM: 'application/octet-stream'
160
+ }
161
+ };
162
+ const MODE_CONSTANTS = {
163
+ LIGHT: 'light',
164
+ DEFAULT: 'default',
165
+ COLOR: 'color',
166
+ FONT: 'font',
167
+ SPACE: 'space',
168
+ RADIUS: 'radius',
169
+ MODE_KEY: 'app-mode'
170
+ };
171
+ const DB_CONSTANTS = {
172
+ 'DATABASE_MATCH_MODES': {
173
+ 'like': 'LIKE',
174
+ 'start': 'STARTING_WITH',
175
+ 'startignorecase': 'STARTING_WITH_IGNORECASE',
176
+ 'end': 'ENDING_WITH',
177
+ 'endignorecase': 'ENDING_WITH_IGNORECASE',
178
+ 'anywhere': 'CONTAINING',
179
+ 'anywhereignorecase': 'CONTAINING_IGNORECASE',
180
+ 'nowhere': 'DOES_NOT_CONTAIN',
181
+ 'nowhereignorecase': 'DOES_NOT_CONTAIN_IGNORECASE',
182
+ 'exact': 'EQUALS',
183
+ 'exactignorecase': 'EQUALS_IGNORECASE',
184
+ 'notequals': 'NOT_EQUALS',
185
+ "notequalsignorecase": "NOT_EQUALS_IGNORECASE",
186
+ 'between': 'BETWEEN',
187
+ 'in': 'IN',
188
+ "notin": "NOTIN",
189
+ 'lessthan': 'LESS_THAN',
190
+ 'lessthanequal': 'LESS_THAN_OR_EQUALS',
191
+ 'greaterthan': 'GREATER_THAN',
192
+ 'greaterthanequal': 'GREATER_THAN_OR_EQUALS',
193
+ 'null': 'NULL',
194
+ 'isnotnull': 'IS_NOT_NULL',
195
+ 'empty': 'EMPTY',
196
+ 'isnotempty': 'IS_NOT_EMPTY',
197
+ 'nullorempty': 'NULL_OR_EMPTY'
198
+ },
199
+ 'DATABASE_EMPTY_MATCH_MODES': ['NULL', 'IS_NOT_NULL', 'EMPTY', 'IS_NOT_EMPTY', 'NULL_OR_EMPTY'],
200
+ 'DATABASE_RANGE_MATCH_MODES': ['IN', 'NOTIN', 'BETWEEN', 'LESS_THAN', 'LESS_THAN_OR_EQUALS', 'GREATER_THAN', 'GREATER_THAN_OR_EQUALS', 'NOT_EQUALS'],
201
+ 'DATABASE_NULL_EMPTY_MATCH': {
202
+ 'NULL': 'NULL',
203
+ 'IS_NOT_NULL': 'IS_NOT_NULL',
204
+ 'EMPTY': 'NULL',
205
+ 'IS_NOT_EMPTY': 'IS_NOT_NULL',
206
+ 'NULL_OR_EMPTY': 'NULL'
207
+ },
208
+ 'DATABASE_MATCH_MODES_WITH_QUERY': {
209
+ 'LIKE': '${0} like ${1}',
210
+ 'STARTING_WITH': '${0} like ${1}',
211
+ 'STARTING_WITH_IGNORECASE': '${0} like ${1}',
212
+ 'ENDING_WITH': '${0} like ${1}',
213
+ 'ENDING_WITH_IGNORECASE': '${0} like ${1}',
214
+ 'CONTAINING': '${0} like ${1}',
215
+ 'CONTAINING_IGNORECASE': '${0} like ${1}',
216
+ 'DOES_NOT_CONTAIN': '${0} not like ${1}',
217
+ 'DOES_NOT_CONTAIN_IGNORECASE': '${0} not like ${1}',
218
+ 'EQUALS': '${0}=${1}',
219
+ 'EQUALS_IGNORECASE': '${0}=${1}',
220
+ 'NOT_EQUALS': '${0}!=${1}',
221
+ "NOT_EQUALS_IGNORECASE": "${0}!=${1}",
222
+ 'BETWEEN': '${0} between ${1}',
223
+ 'IN': '${0} in ${1}',
224
+ 'NOTIN': "${0} not in ${1}",
225
+ 'LESS_THAN': '${0}<${1}',
226
+ 'LESS_THAN_OR_EQUALS': '${0}<=${1}',
227
+ 'GREATER_THAN': '${0}>${1}',
228
+ 'GREATER_THAN_OR_EQUALS': '${0}>=${1}',
229
+ 'NULL': '${0} is null',
230
+ 'IS_NOT_NULL': '${0} is not null',
231
+ 'EMPTY': '${0}=\'\'',
232
+ 'IS_NOT_EMPTY': '${0}<>\'\'',
233
+ 'NULL_OR_EMPTY': '${0} is null or ${0}=\'\''
234
+ },
235
+ 'DATABASE_STRING_MODES': ['LIKE', 'STARTING_WITH', 'STARTING_WITH_IGNORECASE', 'ENDING_WITH', 'ENDING_WITH_IGNORECASE', 'CONTAINING', 'CONTAINING_IGNORECASE', 'DOES_NOT_CONTAIN', 'DOES_NOT_CONTAIN_IGNORECASE', 'EQUALS', 'EQUALS_IGNORECASE', 'NOT_EQUALS', "NOT_EQUALS_IGNORECASE"]
236
+ };
237
+ const SWAGGER_CONSTANTS = {
238
+ WM_DATA_JSON: 'wm_data_json',
239
+ WM_HTTP_JSON: 'wm_httpRequestDetails'
240
+ };
241
+ const VARIABLE_URLS = {
242
+ DATABASE: {
243
+ searchTableData: {
244
+ url: '/:service/:dataModelName/:entityName/search?page=:page&size=:size&:sort',
245
+ method: 'POST'
246
+ },
247
+ searchTableDataWithQuery: {
248
+ url: '/:service/:dataModelName/:entityName/filter?page=:page&size=:size&:sort',
249
+ method: 'POST',
250
+ headers: {
251
+ 'Content-Type': 'application/x-www-form-urlencoded'
252
+ }
253
+ },
254
+ readTableData: {
255
+ url: '/:service/:dataModelName/:entityName?page=:page&size=:size&:sort',
256
+ method: 'GET'
257
+ },
258
+ insertTableData: {
259
+ url: '/:service/:dataModelName/:entityName',
260
+ method: 'POST'
261
+ },
262
+ insertMultiPartTableData: {
263
+ url: '/:service/:dataModelName/:entityName',
264
+ method: 'POST',
265
+ headers: {}
266
+ // ,transformRequest: WM.identity
267
+ },
268
+ updateTableData: {
269
+ url: '/:service/:dataModelName/:entityName/:id',
270
+ method: 'PUT'
271
+ },
272
+ updateMultiPartTableData: {
273
+ url: '/:service/:dataModelName/:entityName/:id',
274
+ method: 'POST',
275
+ headers: {}
276
+ // ,transformRequest: WM.identity
277
+ },
278
+ deleteTableData: {
279
+ url: '/:service/:dataModelName/:entityName/:id',
280
+ method: 'DELETE'
281
+ },
282
+ updateCompositeTableData: {
283
+ url: '/:service/:dataModelName/:entityName/composite-id?:id',
284
+ method: 'PUT'
285
+ },
286
+ periodUpdateCompositeTableData: {
287
+ url: '/:service/:dataModelName/:entityName/composite-id/periods?:id',
288
+ method: 'PUT'
289
+ },
290
+ updateMultiPartCompositeTableData: {
291
+ url: '/:service/:dataModelName/:entityName/composite-id?:id',
292
+ method: 'POST',
293
+ headers: {}
294
+ // , transformRequest: WM.identity
295
+ },
296
+ deleteCompositeTableData: {
297
+ url: '/:service/:dataModelName/:entityName/composite-id?:id',
298
+ method: 'DELETE'
299
+ },
300
+ periodDeleteCompositeTableData: {
301
+ url: '/:service/:dataModelName/:entityName/composite-id/periods?:id',
302
+ method: 'DELETE'
303
+ },
304
+ getDistinctDataByFields: {
305
+ url: '/:service/:dataModelName/:entityName/aggregations?page=:page&size=:size&:sort',
306
+ method: 'POST'
307
+ },
308
+ exportTableData: {
309
+ url: '/services/:dataModelName/:entityName/export?:sort',
310
+ method: 'POST'
311
+ },
312
+ readTableRelatedData: {
313
+ url: '/:service/:dataModelName/:entityName/:id/:relatedFieldName?page=:page&size=:size&:sort',
314
+ method: 'GET'
315
+ },
316
+ executeNamedQuery: {
317
+ url: '/:service/:dataModelName/queryExecutor/queries/:queryName?page=:page&size=:size&:queryParams',
318
+ method: 'GET'
319
+ },
320
+ executeCustomQuery: {
321
+ url: '/:service/:dataModelName/queries/execute?page=:page&size=:size',
322
+ method: 'POST'
323
+ },
324
+ executeAggregateQuery: {
325
+ url: '/services/:dataModelName/:entityName/aggregations?page=:page&size=:size&sort=:sort',
326
+ method: 'POST'
327
+ },
328
+ executeNamedProcedure: {
329
+ url: '/:service/:dataModelName/procedureExecutor/procedure/execute/:procedureName?page=:page&size=:size&:procedureParams',
330
+ method: 'GET'
331
+ },
332
+ countTableDataWithQuery: {
333
+ url: '/:service/:dataModelName/:entityName/count?:queryParams',
334
+ method: 'GET'
335
+ }
336
+ },
337
+ oauthConfiguration: {
338
+ getAuthorizationUrl: {
339
+ url: 'services/oauth2/:providerId/authorizationUrl',
340
+ method: 'GET'
341
+ }
342
+ }
343
+ };
344
+ const $rootScope = $rootScope$1;
345
+
346
+ const moment = momentLib.default || window['moment'];
347
+ const exportTypesMap = { 'EXCEL': '.xlsx', 'CSV': '.csv' };
348
+ let appManager;
349
+ let httpService;
350
+ let metadataService;
351
+ let navigationService;
352
+ let routerService;
353
+ let toasterService;
354
+ let oauthService;
355
+ let securityService;
356
+ let dialogService;
357
+ const DOT_EXPR_REX = /^\[("|')[\w\W]*(\1)\]$/, internalBoundNodeMap = new Map(), timers = new Map();
358
+ const _invoke = (variable, op) => {
359
+ let debouncedFn, cancelFn = noop, retVal;
360
+ if (timers.has(variable)) {
361
+ cancelFn = timers.get(variable).cancel;
362
+ }
363
+ cancelFn();
364
+ debouncedFn = debounce(function () {
365
+ retVal = variable[op]();
366
+ // handle promises to avoid uncaught promise errors in console
367
+ if (retVal instanceof Promise) {
368
+ retVal.catch(noop);
369
+ }
370
+ }, 100);
371
+ timers.set(variable, debouncedFn);
372
+ debouncedFn();
373
+ };
374
+ const processVariablePostBindUpdate = (nodeName, nodeVal, nodeType, variable, noUpdate) => {
375
+ switch (variable.category) {
376
+ case VARIABLE_CONSTANTS.CATEGORY.LIVE:
377
+ if (variable.operation === 'read') {
378
+ if (nodeName === 'dataBinding') {
379
+ forEach(nodeVal, function (val, key) {
380
+ variable.filterFields[key] = {
381
+ 'value': val
382
+ };
383
+ });
384
+ }
385
+ else {
386
+ variable.filterFields[nodeName] = {
387
+ 'value': nodeVal,
388
+ 'type': nodeType
389
+ };
390
+ }
391
+ /* if auto-update set for the variable with read operation only, get its data */
392
+ if (variable.autoUpdate && !isUndefined(nodeVal) && isFunction(variable.listRecords) && !noUpdate) {
393
+ _invoke(variable, 'listRecords');
394
+ }
395
+ }
396
+ else {
397
+ if (nodeName === 'dataBinding') {
398
+ variable.inputFields = nodeVal;
399
+ }
400
+ else {
401
+ variable.inputFields[nodeName] = nodeVal;
402
+ }
403
+ /* if auto-update set for the variable with read operation only, get its data */
404
+ if (variable.autoUpdate && !isUndefined(nodeVal) && isFunction(variable[variable.operation + 'Record']) && !noUpdate) {
405
+ _invoke(variable, variable.operation + 'Record');
406
+ }
407
+ }
408
+ break;
409
+ case VARIABLE_CONSTANTS.CATEGORY.CRUD:
410
+ if (variable.operationType === 'list' && variable.autoUpdate && !isUndefined(nodeVal) && isFunction(variable.invoke) && !noUpdate) {
411
+ _invoke(variable, 'invoke');
412
+ }
413
+ break;
414
+ case VARIABLE_CONSTANTS.CATEGORY.SERVICE:
415
+ case VARIABLE_CONSTANTS.CATEGORY.LOGIN:
416
+ if (variable.autoUpdate && !isUndefined(nodeVal) && isFunction(variable.invoke) && !noUpdate) {
417
+ _invoke(variable, 'invoke');
418
+ }
419
+ break;
420
+ }
421
+ };
422
+ const setDependency = (type, ref) => {
423
+ switch (type) {
424
+ case 'appManager':
425
+ appManager = ref;
426
+ break;
427
+ case 'http':
428
+ httpService = ref;
429
+ break;
430
+ case 'metadata':
431
+ metadataService = ref;
432
+ break;
433
+ case 'navigationService':
434
+ navigationService = ref;
435
+ break;
436
+ case 'router':
437
+ routerService = ref;
438
+ break;
439
+ case 'toaster':
440
+ toasterService = ref;
441
+ break;
442
+ case 'oAuth':
443
+ oauthService = ref;
444
+ break;
445
+ case 'security':
446
+ securityService = ref;
447
+ break;
448
+ case 'dialog':
449
+ dialogService = ref;
450
+ break;
451
+ }
452
+ };
453
+ const initiateCallback = (type, variable, data, options, skipDefaultNotification) => {
454
+ /*checking if event is available and variable has event property and variable event property bound to function*/
455
+ const eventValues = variable[type], callBackScope = variable._context;
456
+ let errorVariable;
457
+ /**
458
+ * For error event:
459
+ * trigger app level error handler.
460
+ * if no event is assigned, trigger default appNotification variable.
461
+ */
462
+ if (type === VARIABLE_CONSTANTS.EVENT.ERROR && !skipDefaultNotification) {
463
+ if (!eventValues) {
464
+ /* in case of error, if no event assigned, handle through default notification variable */
465
+ errorVariable = callBackScope.Actions[VARIABLE_CONSTANTS.DEFAULT_VAR.NOTIFICATION];
466
+ if (errorVariable) {
467
+ data = errorVariable.getMessage() || data;
468
+ data = isString(data) ? data : 'An error has occured. Please check the app logs.';
469
+ errorVariable.invoke({ 'message': data }, undefined, undefined);
470
+ // $rootScope.$evalAsync(function () {
471
+ // $rootScope.$emit("invoke-service", VARIABLE_CONSTANTS.DEFAULT_VAR.NOTIFICATION, {scope: callBackScope, message: response});
472
+ // });
473
+ }
474
+ }
475
+ }
476
+ // TODO: [Vibhu], check whether to support legacy event calling mechanism (ideally, it should have been migrated)
477
+ const fn = $parseEvent(variable[type]);
478
+ if (type === VARIABLE_CONSTANTS.EVENT.BEFORE_UPDATE) {
479
+ if (variable.category === 'wm.LiveVariable' && variable.operation === 'read') {
480
+ return fn(variable._context, { variable: variable, dataFilter: data, options: options });
481
+ }
482
+ else {
483
+ return fn(variable._context, { variable: variable, inputData: data, options: options });
484
+ }
485
+ }
486
+ else {
487
+ return fn(variable._context, { variable: variable, data: data, options: options });
488
+ }
489
+ };
490
+ const triggerOnTimeout = (success) => {
491
+ setTimeout(() => { triggerFn(success); }, 500);
492
+ };
493
+ const downloadFilefromResponse = (response, headers, success, error) => {
494
+ // check for a filename
495
+ let filename = '', filenameRegex, matches, type, blob, URL, downloadUrl, popup;
496
+ const disposition = headers.get('Content-Disposition');
497
+ if (disposition && disposition.indexOf('attachment') !== -1) {
498
+ filenameRegex = /filename[^;=\n]*=((['"]).*?\2|[^;\n]*)/;
499
+ matches = filenameRegex.exec(disposition);
500
+ if (matches !== null && matches[1]) {
501
+ filename = matches[1].replace(/['"]/g, '');
502
+ }
503
+ }
504
+ type = headers.get('Content-Type');
505
+ blob = new Blob([response], { type: type });
506
+ if (typeof window.navigator.msSaveBlob !== 'undefined') {
507
+ // IE workaround for "HTML7007: One or more blob URLs were revoked by closing the blob for which they were created. These URLs will no longer resolve as the data backing the URL has been freed."
508
+ if (window.navigator.msSaveBlob(blob, filename)) {
509
+ triggerOnTimeout(success);
510
+ }
511
+ else {
512
+ triggerFn(error);
513
+ }
514
+ }
515
+ else {
516
+ URL = window.URL || window.webkitURL;
517
+ downloadUrl = URL.createObjectURL(blob);
518
+ if (filename) {
519
+ // use HTML5 a[download] attribute to specify filename
520
+ const a = document.createElement('a');
521
+ let reader;
522
+ // safari doesn't support this yet
523
+ if (typeof a.download === 'undefined') {
524
+ reader = new FileReader();
525
+ reader.onloadend = function () {
526
+ const url = reader.result.replace(/^data:[^;]*;/, 'data:attachment/file;');
527
+ popup = window.open(url, '_blank');
528
+ if (!popup) {
529
+ window.location.href = url;
530
+ }
531
+ };
532
+ reader.onload = triggerOnTimeout.bind(undefined, success);
533
+ reader.onerror = error;
534
+ reader.readAsDataURL(blob);
535
+ }
536
+ else {
537
+ a.href = downloadUrl;
538
+ a.download = filename;
539
+ document.body.appendChild(a);
540
+ a.click();
541
+ triggerOnTimeout(success);
542
+ }
543
+ }
544
+ else {
545
+ popup = window.open(downloadUrl, '_blank');
546
+ if (!popup) {
547
+ window.location.href = downloadUrl;
548
+ }
549
+ triggerOnTimeout(success);
550
+ }
551
+ setTimeout(() => { URL.revokeObjectURL(downloadUrl); }, 100); // cleanup
552
+ }
553
+ };
554
+ const getService = (serviceName) => {
555
+ if (!serviceName) {
556
+ return;
557
+ }
558
+ return serviceName;
559
+ // Todo: Shubham, uncomment below code
560
+ /* /!* get a reference to the element where ng-app is defined *!/
561
+ let appEl = WM.element('[id=ng-app]'), injector;
562
+ if (appEl) {
563
+ try {
564
+ injector = appEl.injector(); // get the angular injector
565
+ if (injector) {
566
+ return injector.get(serviceName); // return the service
567
+ }
568
+ } catch (e) {
569
+ return undefined;
570
+ }
571
+ }*/
572
+ };
573
+ /**
574
+ * Construct the form data params from the URL
575
+ * @param queryParams
576
+ * @param params
577
+ */
578
+ const setParamsFromURL = (queryParams, params) => {
579
+ queryParams = split(queryParams, '&');
580
+ forEach(queryParams, function (param) {
581
+ param = split(param, '=');
582
+ params[param[0]] = decodeURIComponent(join(slice(param, 1), '='));
583
+ });
584
+ };
585
+ /**
586
+ * [Todo: Shubham], Implement Download through I frame
587
+ * Simulates file download in an app through creating and submitting a hidden form in DOM.
588
+ * The action will be initiated through a Service Variable
589
+ *
590
+ * Query Params
591
+ * The request params like query params are added as hidden input elements
592
+ *
593
+ * Header Params
594
+ * The header params for a request are also added along with hidden input elements.
595
+ * This is done as headers can not be set for a form POST call from JavaScript
596
+ *
597
+ * Finally, request parameters are sent as follows:
598
+ * For a GET request, the request data is sent along with the query params.
599
+ * For POST, it is sent as request body.
600
+ *
601
+ * @param variable: the variable that is called from user action
602
+ * @param requestParams object consisting the info to construct the XHR request for the service
603
+ */
604
+ const downloadThroughIframe = (requestParams, success, dataBinding, error) => {
605
+ // Todo: SHubham: URL contains '//' in between which should be handled at the URL formation only
606
+ if (requestParams.url[1] === '/' && requestParams.url[2] === '/') {
607
+ requestParams.url = requestParams.url.slice(0, 1) + requestParams.url.slice(2);
608
+ }
609
+ let iFrameElement, formEl, paramElement, queryParams = '', data;
610
+ const IFRAME_NAME = 'fileDownloadIFrame', FORM_NAME = 'fileDownloadForm', CONTENT_TYPE = 'Content-Type', url = requestParams.url, encType = get(requestParams.headers, CONTENT_TYPE), params = pickBy(requestParams.headers, function (val, key) {
611
+ return key !== CONTENT_TYPE;
612
+ });
613
+ /* Todo: shubham : define getService method
614
+ WS_CONSTANTS = getService('WS_CONSTANTS');*/
615
+ /* look for existing iframe. If exists, remove it first */
616
+ iFrameElement = $('#' + IFRAME_NAME);
617
+ if (iFrameElement.length) {
618
+ iFrameElement.first().remove();
619
+ }
620
+ iFrameElement = $('<iframe id="' + IFRAME_NAME + '" name="' + IFRAME_NAME + '" class="ng-hide"></iframe>');
621
+ formEl = $('<form id="' + FORM_NAME + '" name="' + FORM_NAME + '"></form>');
622
+ /* process query params, append a hidden input element in the form against each param */
623
+ queryParams += url.indexOf('?') !== -1 ? url.substring(url.indexOf('?') + 1) : '';
624
+ queryParams += encType === WS_CONSTANTS.CONTENT_TYPES.FORM_URL_ENCODED ? ((queryParams ? '&' : '') + requestParams.dataParams) : '';
625
+ formEl.attr({
626
+ 'target': iFrameElement.attr('name'),
627
+ 'action': url,
628
+ 'method': requestParams.method,
629
+ 'enctype': !(isEmpty(requestParams.data) && isEmpty(queryParams)) ? encType : WS_CONSTANTS.CONTENT_TYPES.MULTIPART_FORMDATA
630
+ });
631
+ // For Non body methods only, set the input fields from query parameters
632
+ if (includes(WS_CONSTANTS.NON_BODY_HTTP_METHODS, toUpper(requestParams.method))) {
633
+ setParamsFromURL(queryParams, params); // Set params for URL query params
634
+ }
635
+ if (!isEmpty(requestParams.data)) {
636
+ setParamsFromURL(requestParams.data, params); // Set params for request data
637
+ data = params;
638
+ }
639
+ else {
640
+ data = isEmpty(dataBinding) ? params : dataBinding;
641
+ }
642
+ forEach(data, function (val, key) {
643
+ paramElement = $('<input type="hidden">');
644
+ paramElement.attr({
645
+ 'name': key,
646
+ 'value': val
647
+ });
648
+ formEl.append(paramElement);
649
+ });
650
+ /* append form to iFrame and iFrame to the document and submit the form */
651
+ $('body').append(iFrameElement);
652
+ // timeout for IE 10, iframeElement.contents() is empty in IE 10 without timeout
653
+ setTimeout(function () {
654
+ let completed = false;
655
+ iFrameElement.on("load", function () {
656
+ if (completed)
657
+ return;
658
+ const text = iFrameElement.contents().find('body').text();
659
+ if (text && text.trim()) {
660
+ completed = true;
661
+ let message;
662
+ try {
663
+ message = { error: JSON.parse(text.trim()) };
664
+ }
665
+ catch (e) {
666
+ message = "";
667
+ }
668
+ triggerFn(error, message);
669
+ }
670
+ });
671
+ iFrameElement.contents().find('body').append(formEl);
672
+ formEl.submit();
673
+ setTimeout(() => {
674
+ if (!completed) {
675
+ completed = true;
676
+ triggerFn(success);
677
+ }
678
+ }, 2000);
679
+ }, 100);
680
+ };
681
+ /**
682
+ * Makes an XHR call against the config
683
+ * the response is converted into a blob url, which is assigned to the src attribute of an anchor element with download=true
684
+ * a click is simulated on the anchor to download the file
685
+ * @param config
686
+ * @param success
687
+ * @param error
688
+ */
689
+ const downloadThroughAnchor = (config, success, error) => {
690
+ const url = config.url, method = config.method, data = config.dataParams || config.data, headers = config.headers;
691
+ headers['Content-Type'] = headers['Content-Type'] || 'application/x-www-form-urlencoded';
692
+ // Todo: Replace http with getService
693
+ httpService.send({
694
+ 'target': 'WebService',
695
+ 'action': 'invokeRuntimeRestCall',
696
+ 'method': method,
697
+ 'url': url,
698
+ 'headers': headers,
699
+ 'data': data,
700
+ 'responseType': 'arraybuffer'
701
+ }).then(function (response) {
702
+ setTimeout(() => {
703
+ downloadFilefromResponse(response.body, response.headers, success, error);
704
+ }, 900);
705
+ }, function (err) {
706
+ triggerFn(error, err);
707
+ });
708
+ };
709
+ /**
710
+ * appends a timestamp on the passed filename to prevent caching
711
+ * returns the modified file name
712
+ * @param fileName
713
+ * @param exportFormat
714
+ * @returns {string}
715
+ */
716
+ const getModifiedFileName = (fileName, exportFormat) => {
717
+ let fileExtension;
718
+ const currentTimestamp = Date.now();
719
+ if (exportFormat) {
720
+ fileExtension = exportTypesMap[exportFormat];
721
+ }
722
+ else {
723
+ fileExtension = '.' + last(split(fileName, '.'));
724
+ fileName = replace(fileName, fileExtension, '');
725
+ }
726
+ return fileName + '_' + currentTimestamp + fileExtension;
727
+ };
728
+ const getCookieByName = (name) => {
729
+ // Todo: Shubham Implement cookie native js
730
+ return 'cookie';
731
+ };
732
+ /**
733
+ * This function returns the cookieValue if xsrf is enabled.
734
+ * In device, xsrf cookie is stored in localStorage.
735
+ * @returns xsrf cookie value
736
+ */
737
+ const isXsrfEnabled = () => {
738
+ return false;
739
+ };
740
+ /**
741
+ * Returns the object node for a bind object, where the value has to be updated
742
+ * obj.target = "a"
743
+ * @param obj
744
+ * @param root
745
+ * @param variable
746
+ * @returns {*}
747
+ */
748
+ const getTargetObj = (obj, root, variable) => {
749
+ /*
750
+ * if the target key is in the form as "['my.param']"
751
+ * keep the target key as "my.param" and do not split further
752
+ * this is done, so that, the computed value against this binding is assigned as
753
+ * {"my.param": "value"}
754
+ * and not as
755
+ * {
756
+ * "my": {
757
+ * "param": "value"
758
+ * }
759
+ * }
760
+ */
761
+ let target = obj.target, targetObj;
762
+ const rootNode = variable[root];
763
+ if (DOT_EXPR_REX.test(target)) {
764
+ targetObj = rootNode;
765
+ }
766
+ else {
767
+ target = target.substr(0, target.lastIndexOf('.'));
768
+ if (obj.target === root) {
769
+ targetObj = variable;
770
+ }
771
+ else if (target) {
772
+ targetObj = findValueOf(rootNode, target, true);
773
+ }
774
+ else {
775
+ targetObj = rootNode;
776
+ }
777
+ }
778
+ return targetObj;
779
+ };
780
+ /**
781
+ * Gets the key for the target object
782
+ * the computed value will be updated against this key in the targetObject(computed by getTargetObj())
783
+ * @param target
784
+ * @param regex
785
+ * @returns {*}
786
+ */
787
+ const getTargetNodeKey = (target) => {
788
+ /*
789
+ * if the target key is in the form as "['my.param']"
790
+ * keep the target key as "my.param" and do not split further
791
+ * this is done, so that, the computed value against this binding is assigned as
792
+ * {"my.param": "value"}
793
+ * and not as
794
+ * {
795
+ * "my": {
796
+ * "param": "value"
797
+ * }
798
+ * }
799
+ */
800
+ let targetNodeKey;
801
+ if (DOT_EXPR_REX.test(target)) {
802
+ targetNodeKey = target.replace(/^(\[["'])|(["']\])$/g, '');
803
+ }
804
+ else {
805
+ targetNodeKey = target.split('.').pop();
806
+ }
807
+ return targetNodeKey;
808
+ };
809
+ const setValueToNode = (target, obj, root, variable, value, noUpdate) => {
810
+ const targetNodeKey = getTargetNodeKey(target), targetObj = getTargetObj(obj, root, variable);
811
+ value = !isUndefined(value) ? value : obj.value;
812
+ /* sanity check, user can bind parent nodes to non-object values, so child node bindings may fail */
813
+ if (targetObj) {
814
+ targetObj[targetNodeKey] = value;
815
+ }
816
+ processVariablePostBindUpdate(targetNodeKey, value, obj.type, variable, noUpdate);
817
+ };
818
+ /**
819
+ * The model internalBoundNodeMap stores the reference to latest computed values against internal(nested) bound nodes
820
+ * This is done so that the internal node's computed value is not lost, once its parent node's value is computed at a later point
821
+ * E.g.
822
+ * Variable.employeeVar has following bindings
823
+ * "dataBinding": [
824
+ {
825
+ "target": "department.budget",
826
+ "value": "bind:Variables.budgetVar.dataSet"
827
+ },
828
+ {
829
+ "target": "department",
830
+ "value": "bind:Variables.departmentVar.dataSet"
831
+ }
832
+ ]
833
+ * When department.budget is computed, employeeVar.dataSet = {
834
+ * "department": {
835
+ * "budget": {"q1": 1111}
836
+ * }
837
+ * }
838
+ *
839
+ * When department is computed
840
+ * "department": {
841
+ * "name": "HR",
842
+ * "location": "Hyderabad"
843
+ * }
844
+ * The budget field (computed earlier) is LOST.
845
+ *
846
+ * To avoid this, the latest values against internal nodes (in this case department.budget) are stored in a map
847
+ * These values are assigned back to internal fields if the parent is computed (in this case department)
848
+ * @param target
849
+ * @param root
850
+ * @param variable
851
+ */
852
+ const updateInternalNodes = (target, root, variable) => {
853
+ const boundInternalNodes = keys(get(internalBoundNodeMap.get(variable), [variable.name, root])), targetNodeKey = getTargetNodeKey(target);
854
+ let internalNodes;
855
+ function findInternalNodeBound() {
856
+ return filter(boundInternalNodes, function (node) {
857
+ // the later condition in check (targetNodeKey === root || targetNodeKey === 'dataBinding') is specifically for live variable of insert/update types
858
+ return (node !== targetNodeKey && includes(node, targetNodeKey)) || ((targetNodeKey === root || targetNodeKey === 'dataBinding') && node !== targetNodeKey);
859
+ });
860
+ }
861
+ internalNodes = findInternalNodeBound();
862
+ if ((internalNodes.length)) {
863
+ forEach(internalNodes, function (node) {
864
+ setValueToNode(node, { target: node }, root, variable, get(internalBoundNodeMap.get(variable), [variable.name, root, node]));
865
+ });
866
+ }
867
+ };
868
+ /**
869
+ * New Implementation (DataBinding Flat Structure with x-path targets)
870
+ * processes a dataBinding object, if bound to expression, watches over it, else assigns value to the expression
871
+ * @param obj dataBinding object
872
+ * @param scope scope of the variable
873
+ * @param root root node string (dataBinding for all variables, dataSet for static variable)
874
+ * @param variable variable object
875
+ */
876
+ const processBindObject = (obj, scope, root, variable) => {
877
+ const target = obj.target, targetObj = getTargetObj(obj, root, variable), targetNodeKey = getTargetNodeKey(target), runMode = true;
878
+ const destroyFn = scope.registerDestroyListener ? scope.registerDestroyListener.bind(scope) : noop;
879
+ if (stringStartsWith(obj.value, 'bind:')) {
880
+ const listener = (newVal, oldVal) => {
881
+ if ((newVal === oldVal && isUndefined(newVal)) || (isUndefined(newVal) && (!isUndefined(oldVal) || !isUndefined(targetObj[targetNodeKey])))) {
882
+ return;
883
+ }
884
+ // Skip cloning for blob column
885
+ if (!includes(['blob', 'file'], obj.type)) {
886
+ newVal = getClonedObject(newVal);
887
+ }
888
+ setValueToNode(target, obj, root, variable, newVal); // cloning newVal to keep the source clean
889
+ if (runMode) {
890
+ /*set the internal bound node map with the latest updated value*/
891
+ if (!internalBoundNodeMap.has(variable)) {
892
+ internalBoundNodeMap.set(variable, {});
893
+ }
894
+ set(internalBoundNodeMap.get(variable), [variable.name, root, target], newVal);
895
+ /*update the internal nodes after internal node map is set*/
896
+ if (isObject(newVal)) {
897
+ updateInternalNodes(target, root, variable);
898
+ }
899
+ }
900
+ };
901
+ destroyFn($watch(obj.value.replace('bind:', ''), scope, {}, listener, undefined, undefined, undefined, () => variable.isMuted));
902
+ }
903
+ else if (!isUndefined(obj.value)) {
904
+ setValueToNode(target, obj, root, variable, obj.value, true);
905
+ if (runMode && root !== targetNodeKey) {
906
+ if (!internalBoundNodeMap.has(variable)) {
907
+ internalBoundNodeMap.set(variable, {});
908
+ }
909
+ set(internalBoundNodeMap.get(variable), [variable.name, root, target], obj.value);
910
+ }
911
+ }
912
+ };
913
+ // *********************************************************** PUBLIC *********************************************************** //
914
+ /**
915
+ * Initializes watchers for binding expressions configured in the variable
916
+ * @param variable
917
+ * @param context, scope context in which the variable exists
918
+ * @param {string} bindSource, the field in variable where the databindings are configured
919
+ * for most variables, it will be 'dataBinding', hence default fallback is to 'dataBinding'
920
+ * for some it can be 'dataSet' and hence will be passed as param
921
+ * @param {string} bindTarget, the object field in variable where the computed bindings will be set
922
+ */
923
+ const processBinding = (variable, context, bindSource, bindTarget) => {
924
+ bindSource = bindSource || 'dataBinding';
925
+ bindTarget = bindTarget || 'dataBinding';
926
+ const bindMap = variable[bindSource];
927
+ variable[bindSource] = {};
928
+ variable['_bind' + bindSource] = bindMap;
929
+ if (!bindMap || !isArray(bindMap)) {
930
+ return;
931
+ }
932
+ bindMap.forEach(function (node) {
933
+ /* for static variable change the binding with target 'dataBinding' to 'dataSet', as the results have to reflect directly in the dataSet */
934
+ if (variable.category === 'wm.Variable' && node.target === 'dataBinding') {
935
+ node.target = 'dataSet';
936
+ }
937
+ processBindObject(node, context, bindTarget, variable);
938
+ });
939
+ };
940
+ /**
941
+ * Downloads a file in the browser.
942
+ * Two methods to do so, namely:
943
+ * 1. downloadThroughAnchor, called if
944
+ * - if a header is to be passed
945
+ * OR
946
+ * - if security is ON and XSRF token is to be sent as well
947
+ * NOTE: This method does not work with Safari version 10.0 and below
948
+ *
949
+ * 2. downloadThroughIframe
950
+ * - this method works across browsers and uses an iframe to downlad the file.
951
+ * @param requestParams request params object
952
+ * @param fileName represents the file name
953
+ * @param exportFormat downloaded file format
954
+ * @param success success callback
955
+ * @param error error callback
956
+ */
957
+ const simulateFileDownload = (requestParams, fileName, exportFormat, success, error, dataBinding) => {
958
+ /*success and error callbacks are executed incase of downloadThroughAnchor
959
+ Due to technical limitation cannot be executed incase of iframe*/
960
+ if (!isEmpty(requestParams.headers) || isXsrfEnabled()) {
961
+ downloadThroughAnchor(requestParams, success, error);
962
+ }
963
+ else {
964
+ downloadThroughIframe(requestParams, success, dataBinding, error);
965
+ }
966
+ };
967
+ /**
968
+ * sets the value against passed key on the "inputFields" object in the variable
969
+ * @param targetObj: the object in which the key, value is to be set
970
+ * @param variable
971
+ * @param key: can be:
972
+ * - a string e.g. "username"
973
+ * - an object, e.g. {"username": "john", "ssn": "11111"}
974
+ * @param val
975
+ * - if key is string, the value against it (for that data type)
976
+ * - if key is object, not required
977
+ * @param options
978
+ * @returns {any}
979
+ */
980
+ const setInput = (targetObj, key, val, options) => {
981
+ targetObj = targetObj || {};
982
+ let keys, lastKey, paramObj = {};
983
+ // content type check
984
+ if (isObject(options)) {
985
+ // @ts-ignore
986
+ switch (options.type) {
987
+ case 'file':
988
+ // @ts-ignore
989
+ val = getBlob(val, options.contentType);
990
+ break;
991
+ case 'number':
992
+ val = isNumber(val) ? val : parseInt(val, 10);
993
+ break;
994
+ }
995
+ }
996
+ if (isObject(key)) {
997
+ // check if the passed parameter is an object itself
998
+ paramObj = key;
999
+ }
1000
+ else if (key.indexOf('.') > -1) {
1001
+ // check for '.' in key e.g. 'employee.department'
1002
+ keys = key.split('.');
1003
+ lastKey = keys.pop();
1004
+ // Finding the object based on the key
1005
+ targetObj = findValueOf(targetObj, keys.join('.'), true);
1006
+ key = lastKey;
1007
+ paramObj[key] = val;
1008
+ }
1009
+ else {
1010
+ paramObj[key] = val;
1011
+ }
1012
+ forEach(paramObj, function (paramVal, paramKey) {
1013
+ targetObj[paramKey] = paramVal;
1014
+ });
1015
+ return targetObj;
1016
+ };
1017
+ /**
1018
+ * returns true if HTML5 File API is available else false
1019
+ * @returns {{prototype: Blob; new(blobParts?: any[], options?: BlobPropertyBag): Blob}}
1020
+ */
1021
+ const isFileUploadSupported = () => {
1022
+ return (window.File && window.FileReader && window.FileList && window.Blob);
1023
+ };
1024
+ /**
1025
+ *
1026
+ * @param varOrder
1027
+ * @param optionsOrder
1028
+ * @returns {any}
1029
+ */
1030
+ const getEvaluatedOrderBy = (varOrder, optionsOrder) => {
1031
+ let optionFields, varOrderBy;
1032
+ // If options order by is not defined, return variable order
1033
+ if (!optionsOrder || isEmpty(optionsOrder)) {
1034
+ return varOrder;
1035
+ }
1036
+ // If variable order by is not defined, return options order
1037
+ if (!varOrder) {
1038
+ return optionsOrder;
1039
+ }
1040
+ // If both are present, combine the options order and variable order, with options order as precedence
1041
+ varOrder = split(varOrder, ',');
1042
+ optionsOrder = split(optionsOrder, ',');
1043
+ optionFields = map(optionsOrder, function (order) {
1044
+ return split(trim(order), ' ')[0];
1045
+ });
1046
+ // If a field is present in both options and variable, remove the variable orderby
1047
+ remove(varOrder, function (orderBy) {
1048
+ return includes(optionFields, split(trim(orderBy), ' ')[0]);
1049
+ });
1050
+ varOrderBy = varOrder.length ? ',' + join(varOrder, ',') : '';
1051
+ return join(optionsOrder, ',') + varOrderBy;
1052
+ };
1053
+ /**
1054
+ * formatting the expression as required by backend which was enclosed by ${<expression>}.
1055
+ * @param fieldDefs
1056
+ * returns fieldDefs
1057
+ */
1058
+ const formatExportExpression = fieldDefs => {
1059
+ forEach(fieldDefs, function (fieldDef) {
1060
+ if (fieldDef.expression) {
1061
+ fieldDef.expression = '${' + fieldDef.expression + '}';
1062
+ }
1063
+ });
1064
+ return fieldDefs;
1065
+ };
1066
+ const debounceVariableCall = _invoke;
1067
+ const getDateTimeFormatForType = (type) => {
1068
+ return DEFAULT_FORMATS[toUpper(type)];
1069
+ };
1070
+ // Format value for datetime types
1071
+ const _formatDate = (dateValue, type) => {
1072
+ let epoch;
1073
+ if (isDate(dateValue)) {
1074
+ epoch = dateValue.getTime();
1075
+ }
1076
+ else {
1077
+ if (!isNaN(dateValue)) {
1078
+ dateValue = parseInt(dateValue, 10);
1079
+ }
1080
+ epoch = dateValue && moment(dateValue).valueOf();
1081
+ }
1082
+ if (isNaN(epoch) && type !== DataType.TIME) {
1083
+ return epoch;
1084
+ }
1085
+ if (type === DataType.TIMESTAMP) {
1086
+ return epoch;
1087
+ }
1088
+ if (type === DataType.TIME && !epoch) {
1089
+ epoch = moment(new Date().toDateString() + ' ' + dateValue).valueOf();
1090
+ }
1091
+ return dateValue && appManager.getPipe('date').transform(epoch, getDateTimeFormatForType(type));
1092
+ };
1093
+ // Function to convert values of date time types into default formats
1094
+ const formatDate = (value, type) => {
1095
+ if (includes(type, '.')) {
1096
+ type = toLower(extractType(type));
1097
+ }
1098
+ if (isArray(value)) {
1099
+ return map(value, function (val) {
1100
+ return _formatDate(val, type);
1101
+ });
1102
+ }
1103
+ return _formatDate(value, type);
1104
+ };
1105
+ /**
1106
+ * This method decodes the variable data which is encoded from backend before showing in the widgets.
1107
+ * It takes variable response content as input and iterates recursively,
1108
+ * if the value is string type then it will decode the data.
1109
+ * @param responseContent (Array of objects)
1110
+ */
1111
+ const decodeData = (responseContent) => {
1112
+ if (!responseContent) {
1113
+ return responseContent;
1114
+ }
1115
+ if (isArray(responseContent)) {
1116
+ forEach(responseContent, data => {
1117
+ if (isString(data)) {
1118
+ data = htmlDecode(data);
1119
+ }
1120
+ else if (isObject(data)) {
1121
+ forEach(data, (value, key) => {
1122
+ if (value && isString(value)) {
1123
+ data[key] = htmlDecode(value);
1124
+ }
1125
+ else if (isObject(value)) {
1126
+ decodeData(value);
1127
+ }
1128
+ });
1129
+ }
1130
+ });
1131
+ }
1132
+ else if (isObject(responseContent)) {
1133
+ forEach(responseContent, (value, key) => {
1134
+ if (value && isString(value)) {
1135
+ responseContent[key] = htmlDecode(value);
1136
+ }
1137
+ else if (isObject(value)) {
1138
+ decodeData(value);
1139
+ }
1140
+ });
1141
+ }
1142
+ else if (isString(responseContent)) {
1143
+ responseContent = htmlDecode(responseContent);
1144
+ return responseContent;
1145
+ }
1146
+ };
1147
+ function htmlDecode(input) {
1148
+ return he.unescape(input);
1149
+ }
1150
+
1151
+ /**
1152
+ * Handles variable navigation operations
1153
+ * @param variable
1154
+ * @param options
1155
+ */
1156
+ const navigate = (variable, options) => {
1157
+ variable.dataSet = (options && options.data) || variable.dataSet;
1158
+ let viewName;
1159
+ const pageName = variable.dataBinding.pageName || variable.pageName, operation = variable.operation, urlParams = clone(variable.dataSet), cacheable = isNil(options?.cacheable) ? variable.cacheable : options.cacheable;
1160
+ options = options || {};
1161
+ if (!isNil(cacheable) && (!isString(cacheable) || cacheable.trim() !== '')) {
1162
+ urlParams['_cache_page'] = cacheable;
1163
+ }
1164
+ /* if operation is goToPage, navigate to the pageName */
1165
+ switch (operation) {
1166
+ case 'goToPreviousPage':
1167
+ navigationService.goToPrevious();
1168
+ break;
1169
+ case 'gotoPage':
1170
+ navigationService.goToPage(pageName, {
1171
+ transition: variable.pageTransitions,
1172
+ $event: options.$event,
1173
+ urlParams: urlParams,
1174
+ cacheable: variable.cacheable
1175
+ });
1176
+ break;
1177
+ case 'gotoView':
1178
+ viewName = (variable.dataBinding && variable.dataBinding.viewName) || variable.viewName;
1179
+ break;
1180
+ case 'gotoTab':
1181
+ viewName = (variable.dataBinding && variable.dataBinding.tabName) || variable.tabName;
1182
+ break;
1183
+ case 'gotoAccordion':
1184
+ viewName = (variable.dataBinding && variable.dataBinding.accordionName) || variable.accordionName;
1185
+ break;
1186
+ case 'gotoSegment':
1187
+ viewName = (variable.dataBinding && variable.dataBinding.segmentName) || variable.segmentName;
1188
+ break;
1189
+ }
1190
+ /* if view name found, call routine to navigate to it */
1191
+ if (viewName) {
1192
+ navigationService.goToView(viewName, {
1193
+ pageName: pageName,
1194
+ transition: variable.pageTransitions,
1195
+ $event: options.$event,
1196
+ urlParams: urlParams
1197
+ }, variable);
1198
+ }
1199
+ };
1200
+
1201
+ class BaseActionManager {
1202
+ initBinding(variable, bindSource, bindTarget) {
1203
+ processBinding(variable, variable._context, bindSource, bindTarget);
1204
+ }
1205
+ notifyInflight(variable, status, data) {
1206
+ appManager.notify('toggle-variable-state', {
1207
+ variable: variable,
1208
+ active: status,
1209
+ data: data
1210
+ });
1211
+ }
1212
+ }
1213
+
1214
+ class NavigationActionManager extends BaseActionManager {
1215
+ invoke(variable, options) {
1216
+ navigate(variable, options);
1217
+ }
1218
+ }
1219
+
1220
+ class NotificationActionManager extends BaseActionManager {
1221
+ onToasterClick(variable) {
1222
+ initiateCallback('onClick', variable, '');
1223
+ }
1224
+ onToasterHide(variable) {
1225
+ initiateCallback('onHide', variable, '');
1226
+ }
1227
+ notifyViaToaster(variable, options) {
1228
+ const type = (options.class || variable.dataBinding.class || 'info').toLowerCase(), body = options.message || variable.dataBinding.text, title = options.title, positionClass = 'toast-' + (options.position || variable.dataBinding.toasterPosition || 'bottom right').replace(' ', '-'), partialPage = variable.dataBinding.page, DEFAULT_DURATION = 3000;
1229
+ let duration = parseInt(options.duration || variable.dataBinding.duration, null), toaster;
1230
+ // duration
1231
+ if (!duration) {
1232
+ duration = (duration !== 0 && type === 'success') ? DEFAULT_DURATION : 0;
1233
+ }
1234
+ if (variable.dataBinding.content && variable.dataBinding.content === 'page' && partialPage) {
1235
+ toaster = toasterService.showCustom(partialPage, { positionClass: positionClass, timeOut: duration,
1236
+ partialParams: variable._binddataSet, context: variable._context });
1237
+ }
1238
+ else {
1239
+ toaster = toasterService.show(type, title, body || null, { positionClass: positionClass, timeOut: duration, enableHtml: true });
1240
+ }
1241
+ // callbacks
1242
+ // MEMORY LEAK FIX: Store subscriptions for cleanup (though toaster is short-lived, we track for safety)
1243
+ if (variable.onClick) {
1244
+ const onClickSubscription = toaster.onTap.subscribe(this.onToasterClick.bind(this, variable));
1245
+ // Store subscription on toaster for cleanup (toaster handles its own lifecycle)
1246
+ if (toaster && !toaster._subscriptions) {
1247
+ toaster._subscriptions = [];
1248
+ }
1249
+ if (toaster && toaster._subscriptions) {
1250
+ toaster._subscriptions.push(onClickSubscription);
1251
+ }
1252
+ }
1253
+ if (variable.onHide) {
1254
+ const onHideSubscription = toaster.onHidden.subscribe(this.onToasterHide.bind(this, variable));
1255
+ // Store subscription on toaster for cleanup (toaster handles its own lifecycle)
1256
+ if (toaster && !toaster._subscriptions) {
1257
+ toaster._subscriptions = [];
1258
+ }
1259
+ if (toaster && toaster._subscriptions) {
1260
+ toaster._subscriptions.push(onHideSubscription);
1261
+ }
1262
+ }
1263
+ }
1264
+ getDialogConfig(variable, options, dialogId, closeCallBackFn) {
1265
+ return {
1266
+ 'title': options.title || variable.dataBinding.title,
1267
+ 'text': options.message || variable.dataBinding.text,
1268
+ 'okButtonText': options.okButtonText || variable.dataBinding.okButtonText || 'OK',
1269
+ 'cancelButtonText': options.cancelButtonText || variable.dataBinding.cancelButtonText || 'CANCEL',
1270
+ 'alerttype': options.alerttype || variable.dataBinding.alerttype || 'information',
1271
+ onOk: () => {
1272
+ // Close the action dialog after triggering onOk callback event
1273
+ dialogService.close(dialogId, undefined, closeCallBackFn);
1274
+ },
1275
+ onCancel: () => {
1276
+ initiateCallback('onCancel', variable, options.data);
1277
+ // Close the action dialog after triggering onCancel callback event
1278
+ dialogService.close(dialogId, undefined);
1279
+ },
1280
+ onClose: () => {
1281
+ initiateCallback('onClose', variable, options.data);
1282
+ }
1283
+ };
1284
+ }
1285
+ notifyViaDialog(variable, options) {
1286
+ const isPrefabType = getWmProjectProperties().type === 'PREFAB';
1287
+ const dialogPrefix = isPrefabType ? 'Prefab' : 'Common';
1288
+ const dialogId = dialogPrefix + capitalize(variable.operation) + 'Dialog';
1289
+ const closeCallBackFn = () => initiateCallback('onOk', variable, options.data);
1290
+ let dialogConfig = this.getDialogConfig(variable, options, dialogId, closeCallBackFn);
1291
+ dialogConfig = isPrefabType ? dialogConfig : { notification: dialogConfig };
1292
+ dialogService.open(dialogId, undefined, dialogConfig);
1293
+ }
1294
+ // *********************************************************** PUBLIC ***********************************************************//
1295
+ notify(variable, options, success, error) {
1296
+ const operation = variable.operation;
1297
+ options = options || {};
1298
+ if (operation === 'toast') {
1299
+ this.notifyViaToaster(variable, options);
1300
+ }
1301
+ else {
1302
+ this.notifyViaDialog(variable, options);
1303
+ }
1304
+ }
1305
+ getMessage(variable) {
1306
+ return variable.dataBinding.text;
1307
+ }
1308
+ setMessage(variable, text) {
1309
+ if (isString(text)) {
1310
+ variable.dataBinding.text = text;
1311
+ }
1312
+ return variable.dataBinding.text;
1313
+ }
1314
+ getOkButtonText(variable) {
1315
+ return variable.dataBinding.okButtonText;
1316
+ }
1317
+ setOkButtonText(variable, text) {
1318
+ if (isString(text)) {
1319
+ variable.dataBinding.okButtonText = text;
1320
+ }
1321
+ return variable.dataBinding.okButtonText;
1322
+ }
1323
+ getToasterDuration(variable) {
1324
+ return variable.dataBinding.duration;
1325
+ }
1326
+ setToasterDuration(variable, duration) {
1327
+ variable.dataBinding.duration = duration;
1328
+ return variable.dataBinding.duration;
1329
+ }
1330
+ getToasterClass(variable) {
1331
+ return variable.dataBinding.class;
1332
+ }
1333
+ setToasterClass(variable, type) {
1334
+ if (isString(type)) {
1335
+ variable.dataBinding.class = type;
1336
+ }
1337
+ return variable.dataBinding.class;
1338
+ }
1339
+ getToasterPosition(variable) {
1340
+ return variable.dataBinding.class;
1341
+ }
1342
+ setToasterPosition(variable, position) {
1343
+ if (isString(position)) {
1344
+ variable.dataBinding.position = position;
1345
+ }
1346
+ return variable.dataBinding.position;
1347
+ }
1348
+ getAlertType(variable) {
1349
+ return variable.dataBinding.alerttype;
1350
+ }
1351
+ setAlertType(variable, alerttype) {
1352
+ if (isString(alerttype)) {
1353
+ variable.dataBinding.alerttype = alerttype;
1354
+ }
1355
+ return variable.dataBinding.alerttype;
1356
+ }
1357
+ getCancelButtonText(variable) {
1358
+ return variable.dataBinding.cancelButtonText;
1359
+ }
1360
+ setCancelButtonText(variable, text) {
1361
+ if (isString(text)) {
1362
+ variable.dataBinding.cancelButtonText = text;
1363
+ }
1364
+ return variable.dataBinding.cancelButtonText;
1365
+ }
1366
+ }
1367
+
1368
+ class BaseVariableManager {
1369
+ initBinding(variable, bindSource, bindTarget) {
1370
+ processBinding(variable, variable._context, bindSource, bindTarget);
1371
+ }
1372
+ notifyInflight(variable, status, data, options) {
1373
+ appManager.notify('toggle-variable-state', {
1374
+ variable: variable,
1375
+ active: status,
1376
+ data: data,
1377
+ options: options
1378
+ });
1379
+ }
1380
+ /**
1381
+ * This method sets the variable parameter requestTrackId to X-WM-Request-Track-Id which is received in the response headers.
1382
+ * @param response
1383
+ */
1384
+ setRequestTrackId(response, variable) {
1385
+ const requestTrackId = response?.headers?.get('x-wm-request-track-id');
1386
+ if (requestTrackId) {
1387
+ variable._requestTrackId = requestTrackId;
1388
+ }
1389
+ }
1390
+ /**
1391
+ * This method makes the final angular http call that returns an observable.
1392
+ * We attach this observable to variable to cancel a network call
1393
+ * @param requestParams
1394
+ * @param variable
1395
+ * @param dbOperation
1396
+ */
1397
+ httpCall(requestParams, variable, params) {
1398
+ return new Promise((resolve, reject) => {
1399
+ variable._observable = httpService.sendCallAsObservable(requestParams, params).subscribe((response) => {
1400
+ if (response && response.type) {
1401
+ this.setRequestTrackId(response, variable);
1402
+ resolve(response);
1403
+ }
1404
+ }, (err) => {
1405
+ this.setRequestTrackId(err, variable);
1406
+ if (httpService.isPlatformSessionTimeout(err)) {
1407
+ // send the notification manually to hide any context spinners on page.
1408
+ // [TODO]: any spinners on widget listening on this variable will also go off. Need to see an approach to sovle that.
1409
+ this.notifyInflight(variable, false, err);
1410
+ // MEMORY LEAK FIX: Store subscription for cleanup (though it's a one-time promise resolver)
1411
+ const error401Subscription = err._401Subscriber.asObservable().subscribe(response => {
1412
+ resolve(response);
1413
+ // Unsubscribe after resolution
1414
+ if (error401Subscription && !error401Subscription.closed) {
1415
+ error401Subscription.unsubscribe();
1416
+ }
1417
+ }, e => {
1418
+ reject(e);
1419
+ // Unsubscribe after rejection
1420
+ if (error401Subscription && !error401Subscription.closed) {
1421
+ error401Subscription.unsubscribe();
1422
+ }
1423
+ });
1424
+ }
1425
+ else {
1426
+ reject(err);
1427
+ }
1428
+ });
1429
+ });
1430
+ }
1431
+ /**
1432
+ * This method prepares the options parameter for variable callbacks.
1433
+ * @param xhrObj, The xhrObj to be passed
1434
+ * @param moreOptions, any other info to be passed in the options param
1435
+ */
1436
+ prepareCallbackOptions(xhrObj, moreOptions) {
1437
+ let options = {};
1438
+ options['xhrObj'] = xhrObj;
1439
+ if (moreOptions) {
1440
+ extend(options, moreOptions);
1441
+ }
1442
+ return options;
1443
+ }
1444
+ }
1445
+
1446
+ class LoginActionManager extends BaseActionManager {
1447
+ validate(params) {
1448
+ let err, paramKey, remembermeKey;
1449
+ const LOGIN_PARAM_REMEMBER_ME = 'j_rememberme';
1450
+ const LOGIN_PARAM_REMEMBER_ME_OLD = ['rememberme', 'remembermecheck'];
1451
+ // for older projects
1452
+ LOGIN_PARAM_REMEMBER_ME_OLD.forEach((old_key) => {
1453
+ if (isBoolean(params[old_key])) {
1454
+ remembermeKey = old_key;
1455
+ }
1456
+ });
1457
+ remembermeKey = remembermeKey || LOGIN_PARAM_REMEMBER_ME;
1458
+ // check remember me
1459
+ params[remembermeKey] = isBoolean(params[remembermeKey]) ? params[remembermeKey] : false;
1460
+ for (paramKey in params) {
1461
+ if (params.hasOwnProperty(paramKey) &&
1462
+ (params[paramKey] === '' || params[paramKey] === undefined)) {
1463
+ err = 'Please provide required credentials';
1464
+ break;
1465
+ }
1466
+ }
1467
+ return err;
1468
+ }
1469
+ migrateOldParams(params) {
1470
+ const loginParams = {}, paramMigrationMap = {
1471
+ 'usernametext': 'j_username',
1472
+ 'username': 'j_username',
1473
+ 'passwordtext': 'j_password',
1474
+ 'password': 'j_password',
1475
+ 'remembermecheck': 'j_rememberme',
1476
+ 'rememberme': 'j_rememberme'
1477
+ };
1478
+ each(params, function (value, key) {
1479
+ if (paramMigrationMap[key]) {
1480
+ loginParams[paramMigrationMap[key]] = value;
1481
+ }
1482
+ else {
1483
+ loginParams[key] = value;
1484
+ }
1485
+ });
1486
+ return loginParams;
1487
+ }
1488
+ /*
1489
+ * This method is used to redirect the user to app base path
1490
+ * After successful navigation to the base path, will reload the app
1491
+ */
1492
+ redirectToAppBasePath() {
1493
+ routerService.navigate(['/']).then(nav => {
1494
+ if (nav) {
1495
+ window.location.reload();
1496
+ }
1497
+ });
1498
+ }
1499
+ login(variable, options, success, error) {
1500
+ let newDataSet;
1501
+ options = options || {};
1502
+ // If login info provided along explicitly with options, don't look into the variable bindings for the same
1503
+ const loginInfo = options.loginInfo || options.input || variable.dataBinding;
1504
+ // client side validation
1505
+ const errMsg = this.validate(loginInfo);
1506
+ /* if error message initialized, return error */
1507
+ if (errMsg) {
1508
+ triggerFn(error, errMsg);
1509
+ initiateCallback('onError', variable, errMsg);
1510
+ return;
1511
+ }
1512
+ // Triggering 'onBeforeUpdate' and considering
1513
+ let params = getClonedObject(loginInfo);
1514
+ const output = initiateCallback(VARIABLE_CONSTANTS.EVENT.BEFORE_UPDATE, variable, params);
1515
+ if (isObject(output)) {
1516
+ params = output;
1517
+ }
1518
+ else if (output === false) {
1519
+ triggerFn(error);
1520
+ return;
1521
+ }
1522
+ // migrate old params to new
1523
+ params = this.migrateOldParams(params);
1524
+ // get previously loggedInUser name (if any)
1525
+ const lastLoggedInUsername = get(securityService.get(), 'userInfo.userName');
1526
+ this.notifyInflight(variable, true);
1527
+ variable.promise = securityService.appLogin(params, (response) => {
1528
+ // Closing login dialog after successful login
1529
+ dialogService.close('CommonLoginDialog');
1530
+ /*
1531
+ * Get fresh security config
1532
+ * Get App variables. if not loaded
1533
+ * Update loggedInUser variable with new user details
1534
+ */
1535
+ appManager.reloadAppData().
1536
+ then((config) => {
1537
+ // EVENT: ON_RESULT
1538
+ initiateCallback(VARIABLE_CONSTANTS.EVENT.RESULT, variable, get(config, 'userInfo'));
1539
+ // EVENT: ON_PREPARESETDATA
1540
+ newDataSet = initiateCallback(VARIABLE_CONSTANTS.EVENT.PREPARE_SETDATA, variable, get(config, 'userInfo'));
1541
+ if (newDataSet) {
1542
+ // setting newDataSet as the response to service variable onPrepareSetData
1543
+ set(config, 'userInfo', newDataSet);
1544
+ }
1545
+ // hide the spinner after all the n/w calls are completed
1546
+ this.notifyInflight(variable, false, response);
1547
+ triggerFn(success);
1548
+ setTimeout(() => {
1549
+ // EVENT: ON_SUCCESS
1550
+ initiateCallback(VARIABLE_CONSTANTS.EVENT.SUCCESS, variable, get(config, 'userInfo'));
1551
+ /* handle navigation if defaultSuccessHandler on variable is true */
1552
+ if (variable.useDefaultSuccessHandler) {
1553
+ const isSameUserReloggedIn = lastLoggedInUsername === params['j_username'];
1554
+ // if first time user logging in or same user re-logging in, execute n/w calls failed before logging in
1555
+ if (!lastLoggedInUsername || isSameUserReloggedIn) {
1556
+ appManager.executeSessionFailureRequests();
1557
+ }
1558
+ // get redirectTo page from URL and remove it from URL
1559
+ const redirectPage = securityService.getCurrentRouteQueryParam('redirectTo'), noRedirect = appManager.noRedirect();
1560
+ // Get query params(page params of page being redirected to) and append to the URL after login.
1561
+ const queryParamsObj = securityService.getRedirectedRouteQueryParams();
1562
+ // The redirectTo param isn't required after login
1563
+ if (queryParamsObj.redirectTo) {
1564
+ delete queryParamsObj.redirectTo;
1565
+ }
1566
+ appManager.noRedirect(false);
1567
+ // first time login
1568
+ if (!lastLoggedInUsername) {
1569
+ // if redirect page found, navigate to it.
1570
+ if (!isEmpty(redirectPage)) {
1571
+ routerService.navigate([`/${redirectPage}`], { queryParams: queryParamsObj });
1572
+ }
1573
+ else if (!noRedirect) {
1574
+ // simply reset the URL, route handling will take care of page redirection
1575
+ routerService.navigate([`/`]);
1576
+ }
1577
+ }
1578
+ else {
1579
+ // login after a session timeout
1580
+ // if redirect page found and same user logs in again, just navigate to redirect page
1581
+ if (!isEmpty(redirectPage)) {
1582
+ // same user logs in again, just redirect to the redirectPage
1583
+ if (lastLoggedInUsername === params['j_username']) {
1584
+ routerService.navigate([`/${redirectPage}`], { queryParams: queryParamsObj });
1585
+ }
1586
+ else {
1587
+ // different user logs in, reload the app and discard the redirectPage
1588
+ this.redirectToAppBasePath();
1589
+ }
1590
+ }
1591
+ else {
1592
+ const securityConfig = securityService.get(), sessionTimeoutLoginMode = get(securityConfig, 'loginConfig.sessionTimeout.type') || 'PAGE';
1593
+ // if in dialog mode and a new user logs in OR login happening through page, reload the app
1594
+ if (!isSameUserReloggedIn || sessionTimeoutLoginMode !== 'DIALOG') {
1595
+ this.redirectToAppBasePath();
1596
+ }
1597
+ }
1598
+ }
1599
+ }
1600
+ // EVENT: ON_CAN_UPDATE
1601
+ initiateCallback(VARIABLE_CONSTANTS.EVENT.CAN_UPDATE, variable, get(config, 'userInfo'));
1602
+ });
1603
+ });
1604
+ }, (e) => {
1605
+ // EVENT: ON_RESULT
1606
+ initiateCallback(VARIABLE_CONSTANTS.EVENT.RESULT, variable, e);
1607
+ this.notifyInflight(variable, false, e);
1608
+ const errorMsg = e.error || 'Invalid credentials.';
1609
+ const xhrObj = e.details;
1610
+ /* if in RUN mode, trigger error events associated with the variable */
1611
+ if (CONSTANTS.isRunMode) {
1612
+ initiateCallback('onError', variable, errorMsg, xhrObj, true);
1613
+ }
1614
+ triggerFn(error, errorMsg, xhrObj);
1615
+ // EVENT: ON_CAN_UPDATE
1616
+ initiateCallback(VARIABLE_CONSTANTS.EVENT.CAN_UPDATE, variable, e);
1617
+ });
1618
+ }
1619
+ }
1620
+
1621
+ class LogoutActionManager extends BaseActionManager {
1622
+ logout(variable, options, success, error) {
1623
+ let handleError, redirectPage, output, newDataSet;
1624
+ handleError = function (msg, details, xhrObj) {
1625
+ /* if in RUN mode, trigger error events associated with the variable */
1626
+ if (!CONSTANTS.isStudioMode) {
1627
+ initiateCallback('onError', variable, msg, xhrObj);
1628
+ }
1629
+ triggerFn(error, msg, xhrObj);
1630
+ };
1631
+ // EVENT: ON_BEFORE_UPDATE
1632
+ output = initiateCallback(VARIABLE_CONSTANTS.EVENT.BEFORE_UPDATE, variable, null);
1633
+ if (output === false) {
1634
+ triggerFn(error);
1635
+ return;
1636
+ }
1637
+ securityService.isAuthenticated(isAuthenticated => {
1638
+ if (isAuthenticated) {
1639
+ this.notifyInflight(variable, true);
1640
+ variable.promise = securityService.appLogout(response => {
1641
+ let redirectUrl = response.body;
1642
+ redirectUrl = getValidJSON(redirectUrl);
1643
+ // Reset Security Config.
1644
+ // $rootScope.isUserAuthenticated = false;
1645
+ appManager.reloadAppData().
1646
+ then(() => {
1647
+ this.notifyInflight(variable, false, redirectUrl);
1648
+ // EVENT: ON_RESULT
1649
+ initiateCallback(VARIABLE_CONSTANTS.EVENT.RESULT, variable, redirectUrl);
1650
+ // EVENT: ON_PREPARESETDATA
1651
+ newDataSet = initiateCallback(VARIABLE_CONSTANTS.EVENT.PREPARE_SETDATA, variable, redirectUrl);
1652
+ if (newDataSet) {
1653
+ // setting newDataSet as the response to service variable onPrepareSetData
1654
+ redirectUrl = newDataSet;
1655
+ }
1656
+ setTimeout(() => {
1657
+ // EVENT: ON_SUCCESS
1658
+ initiateCallback(VARIABLE_CONSTANTS.EVENT.SUCCESS, variable, redirectUrl);
1659
+ // EVENT: ON_CAN_UPDATE
1660
+ initiateCallback(VARIABLE_CONSTANTS.EVENT.CAN_UPDATE, variable, redirectUrl);
1661
+ });
1662
+ });
1663
+ // In case of CAS response will be the redirectUrl
1664
+ if (redirectUrl && redirectUrl.result) {
1665
+ window.location.href = redirectUrl.result;
1666
+ }
1667
+ else if (variable.useDefaultSuccessHandler) {
1668
+ redirectPage = variable.redirectTo;
1669
+ /* backward compatibility (index.html/login.html may be present in older projects) */
1670
+ if (!redirectPage || redirectPage === 'login.html' || redirectPage === 'index.html') {
1671
+ redirectPage = '';
1672
+ }
1673
+ routerService.navigate([`/${redirectPage}`]);
1674
+ // do not reload the mobile app.
1675
+ setTimeout(() => {
1676
+ // reloading in timeout as, firefox and safari are not updating the url before reload(WMS-7887)
1677
+ window.location.reload();
1678
+ });
1679
+ }
1680
+ triggerFn(success);
1681
+ }, handleError);
1682
+ }
1683
+ else {
1684
+ handleError('No authenticated user to logout.');
1685
+ }
1686
+ }, (err) => {
1687
+ this.notifyInflight(variable, false, err);
1688
+ handleError(err);
1689
+ });
1690
+ }
1691
+ }
1692
+
1693
+ const performAuthorization = (url, providerId, onSuccess, onError, securityObj) => {
1694
+ oauthService.perfromOAuthorization(url, providerId, onSuccess, onError, securityObj, appManager.getCustomUrlScheme(), appManager.getDeployedURL());
1695
+ };
1696
+ const getAccessToken = (provider, checkLoaclStorage) => {
1697
+ return oauthService.getAccessToken(provider, checkLoaclStorage);
1698
+ };
1699
+ const removeAccessToken = (provider) => {
1700
+ oauthService.removeAccessToken(provider);
1701
+ };
1702
+
1703
+ class PaginationUtils {
1704
+ /**
1705
+ * Modifies the query values with the pagination info which is retrieved from the previous API response.
1706
+ * @param variable withholds variable information
1707
+ * @param operationInfo has metadata of the variable
1708
+ * @param paginationInfo has metadata of the variable pagination data
1709
+ * @returns {void} This method does not return anything
1710
+ */
1711
+ static setPaginationQueryParams(variable, operationInfo, paginationInfo) {
1712
+ operationInfo.parameters.forEach(element => {
1713
+ // pagination input information varies based on the type
1714
+ let inputParam;
1715
+ if (paginationInfo.type === 'offset' || paginationInfo.input.offset) {
1716
+ inputParam = 'offset';
1717
+ }
1718
+ else {
1719
+ inputParam = 'page';
1720
+ }
1721
+ // modifies query values based on the pagination of variable
1722
+ // compare parameter name with the input parameter's starting naming key (ex: channelcontext in channelcontext.pagination)
1723
+ if (element.name === paginationInfo.input[inputParam].split('.')[0]) {
1724
+ element.sampleValue = variable.pagination['page'];
1725
+ }
1726
+ else if (element.name === paginationInfo.input.size.split('.')[0]) {
1727
+ element.sampleValue = variable.pagination['size'];
1728
+ }
1729
+ });
1730
+ }
1731
+ /**
1732
+ * Sets pagination on the variable based on the response of the triggered api call.
1733
+ * @param variable withholds variable information
1734
+ * @param response has data of the api call's response
1735
+ * @param options has info of the api's query params
1736
+ * @returns {void} This method does not return anything
1737
+ */
1738
+ static setVariablePagination(variable, response, options) {
1739
+ if (!variable.pagination) {
1740
+ variable.pagination = {
1741
+ empty: false
1742
+ };
1743
+ }
1744
+ variable.pagination['size'] = response.size;
1745
+ variable.pagination['page'] = response.page || 0;
1746
+ variable.pagination['totalElements'] = response.totalElements;
1747
+ variable.pagination['numberOfElements'] = variable.pagination['size'];
1748
+ variable.pagination['number'] = options['page'] ? options['page'] - 1 : 0;
1749
+ /**
1750
+ * Deduce totalPages from totalElements by size.
1751
+ * If the total elements are evenly split among the pages, assign the same to totalPages
1752
+ * Else assign totalPages + 1
1753
+ */
1754
+ variable.pagination['totalPages'] = variable.pagination['totalElements'] / variable.pagination['size'];
1755
+ if (variable.pagination['totalElements'] % variable.pagination['size'] === 0) {
1756
+ variable.pagination['totalPages'] = parseInt(variable.pagination['totalPages']);
1757
+ }
1758
+ else {
1759
+ variable.pagination['totalPages'] = parseInt(variable.pagination['totalPages']) + 1;
1760
+ }
1761
+ // If pagination type is cursor, fill next & prev
1762
+ if (response.next) {
1763
+ variable.pagination['next'] = response.next;
1764
+ variable.pagination['prev'] = response.prev;
1765
+ variable.pagination['last'] = response.next ? false : true;
1766
+ variable.pagination['first'] = response.prev ? false : true;
1767
+ }
1768
+ else {
1769
+ variable.pagination['first'] = variable.pagination['page'] <= 1 ? true : false;
1770
+ // calculate last based on current page index against total pages
1771
+ variable.pagination['last'] = response.hasMoreItems === '' ? !(variable.pagination['page'] < variable.pagination['totalPages']) : !response.hasMoreItems;
1772
+ }
1773
+ }
1774
+ /**
1775
+ * Resolves the expression given in pagination metadata's output
1776
+ * @param item has value of each key which is inside output pagination metadata
1777
+ * @param response has data of the api call's response
1778
+ * @param resHeaders has data of the api call's response headers
1779
+ * @param res holds the information of pagination which has to be stored on the variable
1780
+ * @param key has key name against which data has to be stored in pagination
1781
+ * @returns {void} This method does not return anything
1782
+ */
1783
+ static setPaginationItems(item, response, res, key, resHeaders) {
1784
+ // if the item has body, resolve the expression against the response
1785
+ if (startsWith(item, '$body')) {
1786
+ const bodyKey = item.replace('$body.', '');
1787
+ try {
1788
+ res[key] = jmespath.search(response, bodyKey);
1789
+ }
1790
+ catch {
1791
+ console.warn(`${item} expression needs to be corrected as per JMES guidelines`);
1792
+ }
1793
+ }
1794
+ else if (startsWith(item, '$header')) { // if the item has header, resolve the expression against the response headers
1795
+ const headerKey = item.replace('$header.', '');
1796
+ const headers = Object.fromEntries(resHeaders.headers);
1797
+ const headerParams = headerKey.split('.');
1798
+ try {
1799
+ res[key] = jmespath.search(headers, headerParams[0].toLowerCase());
1800
+ }
1801
+ catch {
1802
+ console.warn(`${item} expression needs to be corrected as per JMES guidelines`);
1803
+ }
1804
+ if (res[key]?.length) {
1805
+ let headerVal = res[key].join();
1806
+ if (headerParams.length === 1) {
1807
+ /**
1808
+ * If the headerParams has only 1 key (which is not an object) name assing headerVal to the res[key]
1809
+ */
1810
+ res[key] = headerVal;
1811
+ }
1812
+ else {
1813
+ /**
1814
+ * If the headerParams has more than 1 key (an object), parse the stringified headerVal which is an object
1815
+ * Resolve the expression against headerVal object amd assign it to res[key]
1816
+ */
1817
+ let keyName = headerParams.slice(1).join('.');
1818
+ const headerResp = JSON.parse(headerVal);
1819
+ const specialChar = /[!@#$%^&*()+\=\[\]{};':"\\|,<>\/?]+/;
1820
+ if (specialChar.test(keyName)) {
1821
+ // If key name has expression (ex: comparission expression)
1822
+ // add root key name to keyName for JMES to resolve the expression
1823
+ keyName = 'headerResp.' + keyName;
1824
+ }
1825
+ try {
1826
+ res[key] = jmespath.search(headerResp, keyName);
1827
+ }
1828
+ catch {
1829
+ console.warn(`${item} expression needs to be corrected as per JMES guidelines`);
1830
+ }
1831
+ }
1832
+ }
1833
+ }
1834
+ }
1835
+ /**
1836
+ * Return the pagination information of the service based on its existence on swagger or on the variable
1837
+ * @param variable withholds variable information
1838
+ * @param operationInfo has metadata of the variable
1839
+ * @returns {object} This method return pagination metadata
1840
+ */
1841
+ static getPaginationInfo(operationInfo, variable) {
1842
+ if (operationInfo?.paginationInfo) {
1843
+ return operationInfo.paginationInfo;
1844
+ }
1845
+ else {
1846
+ return variable._paginationConfig;
1847
+ }
1848
+ }
1849
+ /**
1850
+ * Set query params with the pagination info, if pagination metadata is present in query params
1851
+ * @param variable withholds variable information
1852
+ * @param operationInfo has metadata of the variable
1853
+ * @param options has info of the api's query params
1854
+ * @returns {void} This method does not return anything
1855
+ */
1856
+ static checkPaginationAtQuery(operationInfo, variable, options) {
1857
+ const paginationInfo = this.getPaginationInfo(operationInfo, variable);
1858
+ // If page is not first, pagination is present on the variable and paginationInfo's input meta has size set pagination in query params
1859
+ const hasPagination = options && options['page'] && paginationInfo?.input.size && variable.pagination;
1860
+ if (!hasPagination) {
1861
+ return;
1862
+ }
1863
+ let inputParam;
1864
+ // if pagination type is offset, asssign inputParam to offset else page
1865
+ if (paginationInfo.type === 'offset' || paginationInfo.input.offset) {
1866
+ inputParam = 'offset';
1867
+ }
1868
+ else {
1869
+ inputParam = 'page';
1870
+ }
1871
+ const paramName = paginationInfo.input[inputParam].split('.')[0];
1872
+ const paramObj = find(operationInfo.parameters, function (obj) {
1873
+ return obj.name === paramName;
1874
+ });
1875
+ // check if the variable has query params and they are not empty
1876
+ if (!isEmpty(variable.dataBinding) && paramObj && paramObj.parameterType === 'query') {
1877
+ /**
1878
+ * For pagination type other than offset, assign page which is recieved from options
1879
+ * For offset type, calculate page from size and options[page]
1880
+ */
1881
+ if (!paginationInfo.output?.page && paginationInfo.type !== 'offset') {
1882
+ variable.pagination['page'] = options['page'];
1883
+ }
1884
+ else {
1885
+ variable.pagination['page'] = this.getOffsetInfo(variable, options);
1886
+ }
1887
+ this.setPaginationQueryParams(variable, operationInfo, paginationInfo);
1888
+ }
1889
+ }
1890
+ /**
1891
+ * Deduces the offset information from the size and page params
1892
+ * @param variable withholds variable information
1893
+ * @param options has info of the api's query params
1894
+ * @returns {object} Returns the next offset number
1895
+ */
1896
+ static getOffsetInfo(variable, options) {
1897
+ return variable.pagination['size'] * (options['page'] ? (options['page'] - 1) : 1);
1898
+ }
1899
+ /**
1900
+ * Sets Pagination data on the request information
1901
+ * @param variable withholds variable information
1902
+ * @param operationInfo has metadata of the variable
1903
+ * @param options has info of the api's query params
1904
+ * @param paginationInfo has pagination information of the variable
1905
+ * @param headers has request headers
1906
+ * @param requestBody has request body
1907
+ * @param url has request url
1908
+ * @returns {object} Returns the request object which has pagination info
1909
+ */
1910
+ static setPaginationAtReq(paginationInfo, operationInfo, variable, headers, requestBody, url, options) {
1911
+ let reqObj = {};
1912
+ let inputParam;
1913
+ let resObj = {};
1914
+ // pagination input information varies based on the type
1915
+ if (paginationInfo.type === 'offset' || paginationInfo.input.offset) {
1916
+ inputParam = 'offset';
1917
+ }
1918
+ else {
1919
+ inputParam = 'page';
1920
+ }
1921
+ const paramName = paginationInfo.input[inputParam].split('.')[0];
1922
+ // check if paramName is present in parameters of operation info
1923
+ const paramObj = find(operationInfo.parameters, function (obj) {
1924
+ return obj.name === paramName;
1925
+ });
1926
+ // set page/offset and size from pagination if matched parameter's type is header
1927
+ if (paramObj?.parameterType === 'header') {
1928
+ set(reqObj, paginationInfo.input[inputParam], variable.pagination['page']);
1929
+ set(reqObj, paginationInfo.input.size, variable.pagination['size']);
1930
+ headers[paramName] = JSON.stringify(reqObj[paramName]);
1931
+ resObj['headers'] = headers;
1932
+ }
1933
+ else if (paramObj?.parameterType === 'body') {
1934
+ // set page/offset and size from pagination if matched parameter's type is body
1935
+ // assign bodyVal to updated pagination info object
1936
+ const bodyVal = JSON.parse(paramObj.sampleValue);
1937
+ const bodyParam = paginationInfo.input[inputParam].split('.')[1];
1938
+ if (bodyVal && bodyVal[bodyParam]) {
1939
+ const inputBodyParam = paginationInfo.input[inputParam].split('.').splice(1).join('.');
1940
+ if (inputParam !== 'offset') {
1941
+ set(reqObj, inputBodyParam, variable.pagination['page']);
1942
+ }
1943
+ else {
1944
+ set(reqObj, inputBodyParam, this.getOffsetInfo(variable, options));
1945
+ }
1946
+ set(reqObj, paginationInfo.input.size.split('.').splice(1).join('.'), variable.pagination['size']);
1947
+ bodyVal[bodyParam] = reqObj[bodyParam];
1948
+ requestBody = JSON.stringify(bodyVal);
1949
+ resObj['requestBody'] = requestBody;
1950
+ }
1951
+ }
1952
+ else if (variable.pagination.next && paramObj) {
1953
+ /**
1954
+ * For cursor type pagination, if pagination info is present in the path
1955
+ * Based on whether user clicks on the next or prev button modify the url
1956
+ */
1957
+ if (paramObj.parameterType === 'path') {
1958
+ const urlParams = operationInfo.relativePath.split('/'), paramConfig = '{' + paramObj.name + '}', paramIndex = urlParams.indexOf(paramConfig);
1959
+ let invokeUrl;
1960
+ if (variable.pagination.isNext) {
1961
+ invokeUrl = variable.pagination.next.split('/');
1962
+ }
1963
+ else {
1964
+ invokeUrl = variable.pagination.prev.split('/');
1965
+ }
1966
+ let urlPathParmas;
1967
+ let urlPath;
1968
+ if (operationInfo.directPath) { // For direct path, as url has hostname, derivate pathname using URL object
1969
+ urlPath = new URL(url);
1970
+ urlPathParmas = urlPath.pathname.split('/');
1971
+ urlPathParmas[paramIndex] = invokeUrl[paramIndex];
1972
+ urlPath.pathname = urlPathParmas.join('/');
1973
+ url = urlPath.href;
1974
+ resObj['url'] = url;
1975
+ }
1976
+ else { // Else modify the url with index as +1 (following proxy pattern)
1977
+ urlPathParmas = url.split('/');
1978
+ urlPathParmas[paramIndex + 1] = invokeUrl[paramIndex];
1979
+ url = urlPathParmas.join('/');
1980
+ resObj['url'] = url;
1981
+ }
1982
+ }
1983
+ else if (paramObj.parameterType === 'query') {
1984
+ /**
1985
+ * For cursor type pagination, if pagination info is present in the query
1986
+ * Based on whether user clicks on the next or prev button modify the url's query params
1987
+ */
1988
+ const urlParams = url.split('?');
1989
+ let invokeUrl;
1990
+ if (variable.pagination.isNext) {
1991
+ invokeUrl = variable.pagination.next.split('?');
1992
+ }
1993
+ else {
1994
+ invokeUrl = variable.pagination.prev.split('?');
1995
+ }
1996
+ urlParams[1] = invokeUrl[1];
1997
+ url = urlParams.join('?');
1998
+ resObj['url'] = url;
1999
+ }
2000
+ }
2001
+ return resObj;
2002
+ }
2003
+ /**
2004
+ * Sets the pagination info recieved from api's response in the res object
2005
+ * @param operationInfo has metadata of the variable
2006
+ * @param res holds the information of pagination which has to be stored on the variable
2007
+ * @param paramName has key name against which data has to be stored in pagination
2008
+ * @param variable withholds variable information
2009
+ * @returns {void} This method does not return anything
2010
+ */
2011
+ static setParameterVal(paramName, res, operationInfo, variable) {
2012
+ const paginationInfo = this.getPaginationInfo(operationInfo, variable);
2013
+ const param = paginationInfo.input[paramName].split('.')[0];
2014
+ const sizeObj = find(operationInfo.parameters, function (obj) {
2015
+ return obj.name === param;
2016
+ });
2017
+ res[paramName] = result(sizeObj, 'sampleValue');
2018
+ }
2019
+ /**
2020
+ * Creates res object from the response recieved from the api triggered
2021
+ * @param variable withholds variable information
2022
+ * @param operationInfo has metadata of the variable
2023
+ * @param paginationInfo has metadata of the variable's pagination
2024
+ * @param response has data of the api call's response
2025
+ * @param options has info of the api's query params
2026
+ * @param resHeaders has data of the api call's response headers
2027
+ * @returns {object} An object which holds the information of pagination which has to be stored on the variable
2028
+ */
2029
+ static generatePaginationRes(operationInfo, paginationInfo, response, resHeaders, options, variable) {
2030
+ let res = {};
2031
+ const resOutput = paginationInfo.output;
2032
+ // If pagination type is not cursor, create the following metadata
2033
+ if (!resOutput?.next) {
2034
+ /**
2035
+ * If size is present in the pagination's output metadata deduce size from api's response
2036
+ * Else deduce size from the pagination's input metadata size key
2037
+ */
2038
+ if (resOutput?.size) {
2039
+ this.setPaginationItems(resOutput.size, response, res, 'size', resHeaders);
2040
+ }
2041
+ else {
2042
+ this.setParameterVal('size', res, operationInfo, variable);
2043
+ }
2044
+ /**
2045
+ * If page is present in the pagination's output metadata deduce page from api's response
2046
+ * Else deduce page from the pagination's input metadata page key
2047
+ */
2048
+ if (resOutput?.page) {
2049
+ this.setPaginationItems(resOutput.page, response, res, 'page', resHeaders);
2050
+ }
2051
+ else if (paginationInfo.type !== 'offset') {
2052
+ this.setParameterVal('page', res, operationInfo, variable);
2053
+ }
2054
+ /**
2055
+ * If totalElements has $minValue in it, set totalElements as $minValue
2056
+ * If the rendered elements are greater than $minValue, set totalElements as Number of elements rendered + 1
2057
+
2058
+ * If totalElements is present in the pagination's output metadata deduce totalElements from api's response
2059
+
2060
+ * If Pagination type is offset, deduce totalElements from size and options[page] else deduce from size and res[page]
2061
+ */
2062
+ if (startsWith(resOutput?.totalElements, '$minValue')) {
2063
+ const totalEl = resOutput.totalElements.replace('$minValue=', '');
2064
+ const pageParam = res['page'] ? res['page'] : options['page'];
2065
+ const elRendered = res['size'] * pageParam;
2066
+ if (!variable.pagination || variable.pagination['totalElements'] > elRendered) {
2067
+ res['totalElements'] = parseInt(totalEl);
2068
+ }
2069
+ else {
2070
+ res['totalElements'] = elRendered + 1;
2071
+ }
2072
+ }
2073
+ else if (resOutput?.totalElements) {
2074
+ this.setPaginationItems(resOutput.totalElements, response, res, 'totalElements', resHeaders);
2075
+ }
2076
+ else {
2077
+ if (paginationInfo.type === 'offset' || paginationInfo.input.offset) {
2078
+ res['totalElements'] = (res['size'] * (options['page'] ? options['page'] : 1)) + 1;
2079
+ }
2080
+ else {
2081
+ res['totalElements'] = (res['size'] * res['page']) + 1;
2082
+ }
2083
+ }
2084
+ /**
2085
+ * If hasMoreItems is present in the pagination's output metadata deduce hasMoreItems from api's response
2086
+ * Else assign it as empty which will be calculated at pagination object generation
2087
+ */
2088
+ if (resOutput?.hasMoreItems) {
2089
+ this.setPaginationItems(resOutput.hasMoreItems, response, res, 'hasMoreItems', resHeaders);
2090
+ }
2091
+ else {
2092
+ res['hasMoreItems'] = '';
2093
+ }
2094
+ }
2095
+ else if (resOutput) { // For cursor type pagination set next and prev keys in res object
2096
+ this.setPaginationItems(resOutput.next, response, res, 'next', resHeaders);
2097
+ this.setPaginationItems(resOutput.prev, response, res, 'prev', resHeaders);
2098
+ }
2099
+ return res;
2100
+ }
2101
+ }
2102
+
2103
+ /**
2104
+ * returns true if a Service variable is:
2105
+ * - for a query/procedure
2106
+ * - performs a PUT/POST operation, i.e, takes a Request Body as input
2107
+ * @param variable
2108
+ * @returns {any}
2109
+ */
2110
+ const isBodyTypeQueryOrProcedure = (variable) => {
2111
+ return (includes(['QueryExecution', 'ProcedureExecution'], variable.controller)) && (includes(['put', 'post'], variable.operationType));
2112
+ };
2113
+ /**
2114
+ * returns true if the variable is a Query service variable
2115
+ * @param {string} controller
2116
+ * @param {string} serviceType
2117
+ * @returns {boolean}
2118
+ */
2119
+ const isQueryServiceVar = (controller, serviceType) => {
2120
+ return controller === VARIABLE_CONSTANTS.CONTROLLER_TYPE.QUERY && serviceType === VARIABLE_CONSTANTS.SERVICE_TYPE.DATA;
2121
+ };
2122
+ /**
2123
+ * Append given value to the formdata
2124
+ * @param formData
2125
+ * @param param - Param from which value has to be taken
2126
+ * @param paramValue - Value which is to be appended to formdata
2127
+ */
2128
+ const getFormData = (formData, param, paramValue) => {
2129
+ const paramType = toLower(extractType(get(param, 'items.type') || param.type)), paramContentType = CONSTANTS.isStudioMode ? param['x-WM-CONTENT_TYPE'] : param.contentType;
2130
+ if (isFileUploadSupported()) {
2131
+ if ((paramType !== 'file') && (paramContentType === 'string' || !paramContentType)) {
2132
+ if (isObject(paramValue)) {
2133
+ paramValue = JSON.stringify(paramValue);
2134
+ }
2135
+ formData.append(param.name, paramValue);
2136
+ }
2137
+ else {
2138
+ if (isArray(paramValue) && paramType === 'file') {
2139
+ forEach(paramValue, function (fileObject) {
2140
+ formData.append(param.name, (fileObject && fileObject.content) || getBlob(fileObject), fileObject.name);
2141
+ });
2142
+ }
2143
+ else {
2144
+ formData.append(param.name, getBlob(paramValue, paramContentType), paramValue && paramValue.name);
2145
+ }
2146
+ }
2147
+ return formData;
2148
+ }
2149
+ };
2150
+ /**
2151
+ * Check for missing required params and format the date/time param values
2152
+ * @param inputData
2153
+ * @param params
2154
+ * @returns {{requestBody: {}; missingParams: any[]}}
2155
+ */
2156
+ const processRequestBody = (inputData, params) => {
2157
+ const requestBody = {}, missingParams = [];
2158
+ let paramValue;
2159
+ forEach(params, function (param) {
2160
+ paramValue = get(inputData, param.name);
2161
+ if (!isUndefined(paramValue) && paramValue !== '' && paramValue !== null && !param.readOnly) {
2162
+ paramValue = isDateTimeType(param.type) ? formatDate(paramValue, param.type) : paramValue;
2163
+ // Construct ',' separated string if param is not array type but value is an array
2164
+ if (isArray(paramValue) && toLower(extractType(param.type)) === 'string') {
2165
+ paramValue = join(paramValue, ',');
2166
+ }
2167
+ requestBody[param.name] = paramValue;
2168
+ }
2169
+ else if (param.required) {
2170
+ missingParams.push(param.name || param.id);
2171
+ }
2172
+ });
2173
+ return {
2174
+ 'requestBody': requestBody,
2175
+ 'missingParams': missingParams
2176
+ };
2177
+ };
2178
+ /**
2179
+ * Done only for HTTP calls made via the proxy server
2180
+ * Goes though request headers, appends 'X-' to certain headers
2181
+ * these headers need not be processed at proxy server and should directly be passed to the server
2182
+ * e.g. Authorization, Cookie, etc.
2183
+ * @param headers
2184
+ * @returns {{}}
2185
+ */
2186
+ const cloakHeadersForProxy = (headers) => {
2187
+ const _headers = {}, UNCLOAKED_HEADERS = VARIABLE_CONSTANTS.REST_SERVICE.UNCLOAKED_HEADERS, CLOAK_PREFIX = VARIABLE_CONSTANTS.REST_SERVICE.PREFIX.CLOAK_HEADER_KEY;
2188
+ forEach(headers, function (val, key) {
2189
+ if (includes(UNCLOAKED_HEADERS, key.toUpperCase())) {
2190
+ _headers[key] = val;
2191
+ }
2192
+ else {
2193
+ _headers[CLOAK_PREFIX + key] = val;
2194
+ }
2195
+ });
2196
+ return _headers;
2197
+ };
2198
+ class ServiceVariableUtils {
2199
+ /**
2200
+ * prepares the HTTP request info for a Service Variable
2201
+ * @param variable
2202
+ * @param operationInfo
2203
+ * @param inputFields
2204
+ * @returns {any}
2205
+ */
2206
+ static constructRequestParams(variable, operationInfo, inputFields, options) {
2207
+ variable = variable || {};
2208
+ // operationInfo is specifically null for un_authorized access
2209
+ if (operationInfo === null) {
2210
+ return {
2211
+ 'error': {
2212
+ 'type': VARIABLE_CONSTANTS.REST_SERVICE.ERR_TYPE.USER_UNAUTHORISED,
2213
+ 'message': VARIABLE_CONSTANTS.REST_SERVICE.ERR_MSG.USER_UNAUTHORISED,
2214
+ 'field': '_wmServiceOperationInfo'
2215
+ }
2216
+ };
2217
+ }
2218
+ else if (isEmpty(operationInfo)) {
2219
+ return {
2220
+ 'error': {
2221
+ 'type': VARIABLE_CONSTANTS.REST_SERVICE.ERR_TYPE.METADATA_MISSING,
2222
+ 'message': VARIABLE_CONSTANTS.REST_SERVICE.ERR_MSG.METADATA_MISSING,
2223
+ 'field': '_wmServiceOperationInfo'
2224
+ }
2225
+ };
2226
+ }
2227
+ else if (operationInfo && operationInfo.invalid) {
2228
+ return {
2229
+ 'error': {
2230
+ 'type': VARIABLE_CONSTANTS.REST_SERVICE.ERR_TYPE.CRUD_OPERATION_MISSING,
2231
+ 'message': VARIABLE_CONSTANTS.REST_SERVICE.ERR_MSG.CRUD_OPERATION_MISSING,
2232
+ 'field': '_wmServiceOperationInfo'
2233
+ }
2234
+ };
2235
+ }
2236
+ const directPath = operationInfo.directPath || '', relativePath = operationInfo.basePath ? operationInfo.basePath + operationInfo.relativePath : operationInfo.relativePath, isBodyTypeQueryProcedure = isBodyTypeQueryOrProcedure(variable);
2237
+ let queryParams = '', bodyInfo, headers = {}, requestBody, url, requiredParamMissing = [], target, pathParamRex, invokeParams, authDetails = null, uname, pswd, method, formData, isProxyCall, paramValueInfo, params, securityDefnObj, accessToken, withCredentials;
2238
+ function getFormDataObj() {
2239
+ if (formData) {
2240
+ return formData;
2241
+ }
2242
+ formData = new FormData();
2243
+ return formData;
2244
+ }
2245
+ securityDefnObj = get(operationInfo.securityDefinitions, '0');
2246
+ if (securityDefnObj) {
2247
+ switch (securityDefnObj.type) {
2248
+ case VARIABLE_CONSTANTS.REST_SERVICE.SECURITY_DEFN.OAUTH2:
2249
+ accessToken = getAccessToken(securityDefnObj[VARIABLE_CONSTANTS.REST_SERVICE.OAUTH_PROVIDER_KEY], null);
2250
+ if (accessToken) {
2251
+ headers[VARIABLE_CONSTANTS.REST_SERVICE.AUTH_HDR_KEY] = VARIABLE_CONSTANTS.REST_SERVICE.PREFIX.AUTH_HDR_VAL.OAUTH + ' ' + accessToken;
2252
+ }
2253
+ else {
2254
+ return {
2255
+ 'error': {
2256
+ 'type': VARIABLE_CONSTANTS.REST_SERVICE.ERR_TYPE.NO_ACCESSTOKEN,
2257
+ 'message': VARIABLE_CONSTANTS.REST_SERVICE.ERR_MSG.NO_ACCESSTOKEN
2258
+ },
2259
+ 'securityDefnObj': securityDefnObj
2260
+ };
2261
+ }
2262
+ break;
2263
+ case VARIABLE_CONSTANTS.REST_SERVICE.SECURITY_DEFN.BASIC:
2264
+ uname = inputFields['wm_auth_username'];
2265
+ pswd = inputFields['wm_auth_password'];
2266
+ if (uname && pswd) {
2267
+ // TODO[VIBHU]: bas64 encoding alternative.
2268
+ headers[VARIABLE_CONSTANTS.REST_SERVICE.AUTH_HDR_KEY] = VARIABLE_CONSTANTS.REST_SERVICE.PREFIX.AUTH_HDR_VAL.BASIC + ' ' + btoa(uname + ':' + pswd);
2269
+ authDetails = {
2270
+ 'type': VARIABLE_CONSTANTS.REST_SERVICE.AUTH_TYPE.BASIC
2271
+ };
2272
+ }
2273
+ else {
2274
+ return {
2275
+ 'error': {
2276
+ 'type': VARIABLE_CONSTANTS.REST_SERVICE.ERR_TYPE.NO_CREDENTIALS,
2277
+ 'message': VARIABLE_CONSTANTS.REST_SERVICE.ERR_MSG.NO_CREDENTIALS
2278
+ },
2279
+ 'securityDefnObj': securityDefnObj
2280
+ };
2281
+ }
2282
+ break;
2283
+ }
2284
+ }
2285
+ // set query params, if pagination info is present and the info should be present in query
2286
+ PaginationUtils.checkPaginationAtQuery(operationInfo, variable, options);
2287
+ operationInfo.proxySettings = operationInfo.proxySettings || { web: true, mobile: false };
2288
+ method = operationInfo.httpMethod || operationInfo.methodType;
2289
+ isProxyCall = (function () {
2290
+ return operationInfo.proxySettings.web;
2291
+ }());
2292
+ withCredentials = operationInfo.proxySettings.withCredentials;
2293
+ url = isProxyCall ? relativePath : directPath;
2294
+ /* loop through all the parameters */
2295
+ forEach(operationInfo.parameters, function (param) {
2296
+ // Set params based on current workspace
2297
+ function setParamsOfChildNode() {
2298
+ if (inputFields) {
2299
+ // specific case for body type query/procedure variable with query params
2300
+ if (inputFields[param.name] && isObject(inputFields[param.name])) {
2301
+ paramValueInfo = inputFields[param.name];
2302
+ }
2303
+ else {
2304
+ paramValueInfo = inputFields;
2305
+ }
2306
+ params = get(operationInfo, ['definitions', param.type]);
2307
+ }
2308
+ else {
2309
+ // For Api Designer
2310
+ paramValueInfo = paramValue || {};
2311
+ params = param.children;
2312
+ }
2313
+ }
2314
+ let paramValue = param.sampleValue;
2315
+ if ((isDefined(paramValue) && paramValue !== null && paramValue !== '') || (isBodyTypeQueryProcedure && param.type !== 'file')) {
2316
+ // Format dateTime params for dataService variables
2317
+ if (variable.serviceType === VARIABLE_CONSTANTS.SERVICE_TYPE.DATA && isDateTimeType(param.type)) {
2318
+ paramValue = formatDate(paramValue, param.type);
2319
+ }
2320
+ // Construct ',' separated string if param is not array type but value is an array
2321
+ if (isArray(paramValue) && toLower(extractType(param.type)) === 'string' && variable.serviceType === VARIABLE_CONSTANTS.SERVICE_TYPE.DATA) {
2322
+ paramValue = join(paramValue, ',');
2323
+ }
2324
+ switch (param.parameterType.toUpperCase()) {
2325
+ case 'QUERY':
2326
+ // Ignore null valued query params for queryService variable
2327
+ if (isNull(paramValue) && isQueryServiceVar(variable.controller, variable.serviceType)) {
2328
+ break;
2329
+ }
2330
+ if (!queryParams) {
2331
+ queryParams = '?' + param.name + '=' + encodeURIComponent(paramValue);
2332
+ }
2333
+ else {
2334
+ queryParams += '&' + param.name + '=' + encodeURIComponent(paramValue);
2335
+ }
2336
+ break;
2337
+ case 'PATH':
2338
+ /* replacing the path param based on the regular expression in the relative path */
2339
+ pathParamRex = new RegExp('\\s*\\{\\s*' + param.name + '(:\\.\\+)?\\s*\\}\\s*');
2340
+ url = url.replace(pathParamRex, paramValue);
2341
+ break;
2342
+ case 'HEADER':
2343
+ headers[param.name] = paramValue;
2344
+ break;
2345
+ case 'BODY':
2346
+ // For post/put query methods wrap the input
2347
+ if (isBodyTypeQueryProcedure) {
2348
+ setParamsOfChildNode();
2349
+ bodyInfo = processRequestBody(paramValueInfo, params);
2350
+ requestBody = bodyInfo.requestBody;
2351
+ requiredParamMissing = concat(requiredParamMissing, bodyInfo.missingParams);
2352
+ }
2353
+ else {
2354
+ requestBody = paramValue;
2355
+ }
2356
+ break;
2357
+ case 'FORMDATA':
2358
+ if (isBodyTypeQueryProcedure && param.name === SWAGGER_CONSTANTS.WM_DATA_JSON) {
2359
+ setParamsOfChildNode();
2360
+ // Process query/procedure formData non-file params params
2361
+ bodyInfo = processRequestBody(paramValueInfo, params);
2362
+ requestBody = getFormData(getFormDataObj(), param, bodyInfo.requestBody);
2363
+ requiredParamMissing = concat(requiredParamMissing, bodyInfo.missingParams);
2364
+ }
2365
+ else {
2366
+ requestBody = getFormData(getFormDataObj(), param, paramValue);
2367
+ }
2368
+ break;
2369
+ }
2370
+ }
2371
+ else if (param.required) {
2372
+ requiredParamMissing.push(param.name || param.id);
2373
+ }
2374
+ });
2375
+ // if required param not found, return error
2376
+ if (requiredParamMissing.length) {
2377
+ return {
2378
+ 'error': {
2379
+ 'type': VARIABLE_CONSTANTS.REST_SERVICE.ERR_TYPE.REQUIRED_FIELD_MISSING,
2380
+ 'field': requiredParamMissing.join(','),
2381
+ 'message': replace$1(VARIABLE_CONSTANTS.REST_SERVICE.ERR_MSG.REQUIRED_FIELD_MISSING, [requiredParamMissing.join(',')]),
2382
+ 'skipDefaultNotification': true
2383
+ }
2384
+ };
2385
+ }
2386
+ // Setting appropriate content-Type for request accepting request body like POST, PUT, etc
2387
+ if (!includes(WS_CONSTANTS.NON_BODY_HTTP_METHODS, toUpper(method))) {
2388
+ /*Based on the formData browser will automatically set the content type to 'multipart/form-data' and webkit boundary*/
2389
+ if (!(operationInfo.consumes && (operationInfo.consumes[0] === WS_CONSTANTS.CONTENT_TYPES.MULTIPART_FORMDATA))) {
2390
+ headers['Content-Type'] = (operationInfo.consumes && operationInfo.consumes[0]) || 'application/json';
2391
+ }
2392
+ }
2393
+ // if the consumes has application/x-www-form-urlencoded and
2394
+ // if the http request of given method type can have body send the queryParams as Form Data
2395
+ if (includes(operationInfo.consumes, WS_CONSTANTS.CONTENT_TYPES.FORM_URL_ENCODED)
2396
+ && !includes(WS_CONSTANTS.NON_BODY_HTTP_METHODS, (method || '').toUpperCase())) {
2397
+ // remove the '?' at the start of the queryParams
2398
+ if (queryParams) {
2399
+ requestBody = (requestBody ? requestBody + '&' : '') + queryParams.substring(1);
2400
+ }
2401
+ headers['Content-Type'] = WS_CONSTANTS.CONTENT_TYPES.FORM_URL_ENCODED;
2402
+ }
2403
+ else {
2404
+ url += queryParams;
2405
+ }
2406
+ /*
2407
+ * for proxy calls:
2408
+ * - cloak the proper headers (required only for REST services)
2409
+ * - prepare complete url from relativeUrl
2410
+ */
2411
+ if (isProxyCall) {
2412
+ // avoiding cloakHeadersForProxy when the method is invoked from apidesigner.
2413
+ headers = (variable.serviceType !== VARIABLE_CONSTANTS.SERVICE_TYPE.REST && variable.serviceType !== VARIABLE_CONSTANTS.SERVICE_TYPE.OPENAPI) || operationInfo.skipCloakHeaders ? headers : cloakHeadersForProxy(headers);
2414
+ if (variable.getPrefabName() && VARIABLE_CONSTANTS.REST_SUPPORTED_SERVICES.indexOf(variable.serviceType) !== -1) {
2415
+ /* if it is a prefab variable (used in a normal project), modify the url */
2416
+ url = 'prefabs/' + variable.getPrefabName() + url;
2417
+ target = 'invokePrefabRestService';
2418
+ }
2419
+ else if (!variable.getPrefabName()) {
2420
+ url = 'services' + url;
2421
+ }
2422
+ url = $rootScope.project.deployedUrl + url;
2423
+ }
2424
+ // If pagination info exists, process info in request headers or body based on the metadata
2425
+ const paginationInfo = PaginationUtils.getPaginationInfo(operationInfo, variable);
2426
+ if (paginationInfo && variable.pagination) {
2427
+ const resp = PaginationUtils.setPaginationAtReq(paginationInfo, operationInfo, variable, headers, requestBody, url, options);
2428
+ if (resp) {
2429
+ if (resp['headers']) {
2430
+ headers = resp['headers'];
2431
+ }
2432
+ else if (resp['requestBody']) {
2433
+ requestBody = resp['requestBody'];
2434
+ }
2435
+ else if (resp['url']) {
2436
+ url = resp['url'];
2437
+ }
2438
+ }
2439
+ }
2440
+ /*creating the params needed to invoke the service. url is generated from the relative path for the operation*/
2441
+ invokeParams = {
2442
+ 'projectID': $rootScope.project.id,
2443
+ 'url': url,
2444
+ 'target': target,
2445
+ 'method': method,
2446
+ 'headers': headers,
2447
+ 'data': requestBody,
2448
+ 'authDetails': authDetails,
2449
+ 'isDirectCall': !isProxyCall,
2450
+ 'isExtURL': variable.serviceType === VARIABLE_CONSTANTS.SERVICE_TYPE.REST,
2451
+ 'withCredentials': withCredentials
2452
+ };
2453
+ return invokeParams;
2454
+ }
2455
+ static isFileUploadRequest(variable) {
2456
+ // temporary fix, have to find proper solution for deciding weather to upload file through variable
2457
+ return variable.service === 'FileService' && variable.operation === 'uploadFile';
2458
+ }
2459
+ /**
2460
+ * This method returns array of query param names for variable other then page,size,sort
2461
+ * @params {params} params of the variable
2462
+ */
2463
+ static excludePaginationParams(params) {
2464
+ return map(reject(params, (param) => {
2465
+ return includes(VARIABLE_CONSTANTS.PAGINATION_PARAMS, param.name);
2466
+ }), function (param) {
2467
+ return param.name;
2468
+ });
2469
+ }
2470
+ }
2471
+
2472
+ class WebSocketVariableManager extends BaseVariableManager {
2473
+ constructor() {
2474
+ super(...arguments);
2475
+ this.scope_var_socket_map = new Map();
2476
+ this.PROPERTY = {
2477
+ 'SERVICE': 'service',
2478
+ 'DATA_UPDATE_STRATEGY': 'dataUpdateStrategy',
2479
+ 'DATA_LIMIT': 'dataLimit'
2480
+ };
2481
+ this.DATA_UPDATE_STRATEGY = {
2482
+ 'REFRESH': 'refresh',
2483
+ 'PREPEND': 'prepend',
2484
+ 'APPEND': 'append'
2485
+ };
2486
+ }
2487
+ /**
2488
+ * returns the state of property to decide weather to append new messages to dataSet or not
2489
+ * @param variable
2490
+ * @returns boolean
2491
+ */
2492
+ shouldAppendData(variable) {
2493
+ variable = variable || this;
2494
+ return variable[this.PROPERTY.DATA_UPDATE_STRATEGY] !== this.DATA_UPDATE_STRATEGY.REFRESH;
2495
+ }
2496
+ /**
2497
+ * returns the state of property to decide weather to APPEND or PREPEND new messages to dataSet
2498
+ * @param variable
2499
+ * @returns boolean
2500
+ */
2501
+ shouldAppendLast(variable) {
2502
+ return variable[this.PROPERTY.DATA_UPDATE_STRATEGY] === this.DATA_UPDATE_STRATEGY.APPEND;
2503
+ }
2504
+ /**
2505
+ * returns upper limit on number of records to be in dataSet
2506
+ * this is applicable only when appendData is true
2507
+ * @param variable
2508
+ * @returns {dataLimit}
2509
+ */
2510
+ getDataLimit(variable) {
2511
+ return variable.dataLimit;
2512
+ }
2513
+ /**
2514
+ * get url from wmServiceOperationInfo
2515
+ * @param variable
2516
+ * @returns {*}
2517
+ */
2518
+ getURL(variable) {
2519
+ const prefabName = variable.getPrefabName();
2520
+ const opInfo = prefabName ?
2521
+ get(metadataService.getByOperationId(variable.operationId, prefabName), 'wmServiceOperationInfo') :
2522
+ get(metadataService.getByOperationId(variable.operationId), 'wmServiceOperationInfo');
2523
+ const inputFields = variable.dataBinding;
2524
+ // add sample values to the params (url and path)
2525
+ forEach(opInfo.parameters, function (param) {
2526
+ param.sampleValue = inputFields[param.name];
2527
+ });
2528
+ // although, no header params will be present, keeping 'skipCloakHeaders' flag if support provided later
2529
+ $.extend(opInfo, {
2530
+ skipCloakHeaders: true
2531
+ });
2532
+ // call common method to prepare config for the service operation info.
2533
+ const config = ServiceVariableUtils.constructRequestParams(variable, opInfo, inputFields);
2534
+ /* if error found, return */
2535
+ if (config.error && config.error.message) {
2536
+ this._onSocketError(variable, { data: config.error.message });
2537
+ return;
2538
+ }
2539
+ return config.url;
2540
+ }
2541
+ /**
2542
+ * handler for onMessage event on a socket connection for a variable
2543
+ * the data returned is converted to JSON from string/xml and assigned to dataSet of variable
2544
+ * If not able to do so, message is simply assigned to the dataSet of variable
2545
+ * If appendData property is set, the message is appended to the dataSet, else it replaces the existing value of dataSet
2546
+ * @param variable
2547
+ * @param evt
2548
+ * @private
2549
+ */
2550
+ _onSocketMessage(variable, evt) {
2551
+ let data = get(evt, 'data'), dataLength, dataLimit, shouldAddToLast, insertIdx;
2552
+ data = getValidJSON(data) || xmlToJson(data) || data;
2553
+ // EVENT: ON_MESSAGE
2554
+ const value = initiateCallback(VARIABLE_CONSTANTS.EVENT.MESSAGE_RECEIVE, variable, data, evt);
2555
+ data = isDefined(value) ? value : data;
2556
+ if (this.shouldAppendData(variable)) {
2557
+ variable.dataSet = variable.dataSet || [];
2558
+ dataLength = variable.dataSet.length;
2559
+ dataLimit = this.getDataLimit(variable);
2560
+ shouldAddToLast = this.shouldAppendLast(variable);
2561
+ if (dataLimit && (dataLength >= dataLimit)) {
2562
+ if (shouldAddToLast) {
2563
+ variable.dataSet.shift();
2564
+ }
2565
+ else {
2566
+ variable.dataSet.pop();
2567
+ }
2568
+ }
2569
+ insertIdx = shouldAddToLast ? dataLength : 0;
2570
+ variable.dataSet.splice(insertIdx, 0, data);
2571
+ }
2572
+ else {
2573
+ variable.dataSet = isDefined(value) ? value : data;
2574
+ }
2575
+ }
2576
+ /**
2577
+ * calls the ON_BEFORE_SEND callback on the variable
2578
+ * @param variable
2579
+ * @param message
2580
+ * @returns {*}
2581
+ * @private
2582
+ */
2583
+ _onBeforeSend(variable, message) {
2584
+ // EVENT: ON_BEFORE_SEND
2585
+ return initiateCallback(VARIABLE_CONSTANTS.EVENT.BEFORE_SEND, variable, message);
2586
+ }
2587
+ /**
2588
+ * calls the ON_BEFORE_CLOSE callback assigned to the variable
2589
+ * @param variable
2590
+ * @param evt
2591
+ * @returns {*}
2592
+ * @private
2593
+ */
2594
+ _onBeforeSocketClose(variable, evt) {
2595
+ // EVENT: ON_BEFORE_CLOSE
2596
+ return initiateCallback(VARIABLE_CONSTANTS.EVENT.BEFORE_CLOSE, variable, get(evt, 'data'), evt);
2597
+ }
2598
+ /**
2599
+ * calls the ON_BEFORE_OPEN callback assigned
2600
+ * called just before the connection is open
2601
+ * @param variable
2602
+ * @param evt
2603
+ * @returns {*}
2604
+ * @private
2605
+ */
2606
+ _onBeforeSocketOpen(variable, evt) {
2607
+ // EVENT: ON_BEFORE_OPEN
2608
+ return initiateCallback(VARIABLE_CONSTANTS.EVENT.BEFORE_OPEN, variable, get(evt, 'data'), evt);
2609
+ }
2610
+ /**
2611
+ * calls the ON_OPEN event on the variable
2612
+ * this is called once the connection is established by the variable with the target WebSocket service
2613
+ * @param variable
2614
+ * @param evt
2615
+ * @private
2616
+ */
2617
+ _onSocketOpen(variable, evt) {
2618
+ variable._socketConnected = true;
2619
+ // EVENT: ON_OPEN
2620
+ initiateCallback(VARIABLE_CONSTANTS.EVENT.OPEN, variable, get(evt, 'data'), evt);
2621
+ // Send initial request body if it exists and connectOnPageLoad is true
2622
+ if (variable.startUpdate) {
2623
+ const requestBody = get(variable, 'dataBinding.RequestBody');
2624
+ if (requestBody) {
2625
+ setTimeout(() => {
2626
+ this.send(variable, requestBody);
2627
+ }, 0); // Using setTimeout to ensure connection is fully established
2628
+ }
2629
+ }
2630
+ }
2631
+ freeSocket(variable) {
2632
+ // MEMORY LEAK FIX: Properly clean up socket reference
2633
+ const socket = this.scope_var_socket_map.get(variable);
2634
+ if (socket) {
2635
+ // Clear socket reference from variable
2636
+ variable._socket = null;
2637
+ }
2638
+ this.scope_var_socket_map.delete(variable);
2639
+ }
2640
+ /**
2641
+ * calls the ON_CLOSE event on the variable
2642
+ * this is called on close of an existing connection on a variable
2643
+ * @param variable
2644
+ * @param evt
2645
+ * @private
2646
+ */
2647
+ _onSocketClose(variable, evt) {
2648
+ variable._socketConnected = false;
2649
+ this.freeSocket(variable);
2650
+ // EVENT: ON_CLOSE
2651
+ initiateCallback(VARIABLE_CONSTANTS.EVENT.CLOSE, variable, get(evt, 'data'), evt);
2652
+ }
2653
+ /**
2654
+ * calls the ON_ERROR event on the variable
2655
+ * this is called if an error occurs while connecting to the socket service
2656
+ * @param variable
2657
+ * @param evt
2658
+ * @private
2659
+ */
2660
+ _onSocketError(variable, evt) {
2661
+ variable._socketConnected = false;
2662
+ this.freeSocket(variable);
2663
+ // EVENT: ON_ERROR
2664
+ initiateCallback(VARIABLE_CONSTANTS.EVENT.ERROR, variable, get(evt, 'data') || 'Error while connecting with ' + variable.service, evt);
2665
+ }
2666
+ /**
2667
+ * returns an existing socket connection on the variable
2668
+ * if not present, make the connection and return it
2669
+ * @param variable
2670
+ * @returns {*}
2671
+ */
2672
+ getSocket(variable) {
2673
+ const url = this.getURL(variable);
2674
+ let _socket = this.scope_var_socket_map.get(variable);
2675
+ if (_socket) {
2676
+ return _socket;
2677
+ }
2678
+ if (isInsecureContentRequest(url)) {
2679
+ triggerFn(this._onSocketError.bind(this, variable));
2680
+ return;
2681
+ }
2682
+ _socket = new $WebSocket(url);
2683
+ _socket.onOpen(this._onSocketOpen.bind(this, variable));
2684
+ _socket.onError(this._onSocketError.bind(this, variable));
2685
+ _socket.onMessage(this._onSocketMessage.bind(this, variable));
2686
+ _socket.onClose(this._onSocketClose.bind(this, variable));
2687
+ this.scope_var_socket_map.set(variable, _socket);
2688
+ variable._socket = _socket;
2689
+ return _socket;
2690
+ }
2691
+ /**
2692
+ * opens a socket connection on the variable.
2693
+ * URL & other meta data is fetched from wmServiceOperationInfo
2694
+ * @returns {*}
2695
+ */
2696
+ open(variable, success, error) {
2697
+ const shouldOpen = this._onBeforeSocketOpen(variable);
2698
+ if (shouldOpen === false) {
2699
+ triggerFn(error);
2700
+ return;
2701
+ }
2702
+ const socket = this.getSocket(variable);
2703
+ triggerFn(success);
2704
+ return socket;
2705
+ }
2706
+ /**
2707
+ * closes an existing socket connection on variable
2708
+ */
2709
+ close(variable) {
2710
+ const shouldClose = this._onBeforeSocketClose(variable);
2711
+ const socket = this.getSocket(variable);
2712
+ if (shouldClose === false) {
2713
+ return;
2714
+ }
2715
+ if (socket) {
2716
+ socket.close();
2717
+ // MEMORY LEAK FIX: Clean up socket reference after closing
2718
+ this.freeSocket(variable);
2719
+ }
2720
+ }
2721
+ /**
2722
+ * sends a message to the existing socket connection on the variable
2723
+ * If socket connection not open yet, open a connections and then send
2724
+ * if message provide, it is sent, else the one present in RequestBody param is sent
2725
+ * @param message
2726
+ */
2727
+ send(variable, message) {
2728
+ const socket = this.getSocket(variable);
2729
+ if (!socket) {
2730
+ console.error('WebSocket connection not established');
2731
+ return;
2732
+ }
2733
+ message = message || get(variable, 'dataBinding.RequestBody');
2734
+ if (!message) {
2735
+ console.warn('No message to send');
2736
+ return;
2737
+ }
2738
+ const response = this._onBeforeSend(variable, message);
2739
+ if (response === false) {
2740
+ return;
2741
+ }
2742
+ message = isDefined(response) ? response : message;
2743
+ message = isObject$1(message) ? JSON.stringify(message) : message;
2744
+ try {
2745
+ socket.send(message, 0);
2746
+ }
2747
+ catch (error) {
2748
+ console.error('Error sending message:', error);
2749
+ this._onSocketError(variable, { data: error.message });
2750
+ }
2751
+ }
2752
+ }
2753
+
2754
+ const managerMap = new Map(), typeToManagerMap = {
2755
+ 'Variable': BaseVariableManager,
2756
+ 'Action': BaseActionManager,
2757
+ 'wm.NavigationAction': NavigationActionManager,
2758
+ 'wm.NotificationAction': NotificationActionManager,
2759
+ 'wm.LoginAction': LoginActionManager,
2760
+ 'wm.LogoutAction': LogoutActionManager,
2761
+ 'wm.WebSocketVariable': WebSocketVariableManager
2762
+ };
2763
+ class VariableManagerFactory {
2764
+ static get(type) {
2765
+ return managerMap.has(type) ?
2766
+ managerMap.get(type) :
2767
+ managerMap.set(type, new typeToManagerMap[type]()).get(type);
2768
+ }
2769
+ }
2770
+
2771
+ const getManager$4 = () => {
2772
+ return VariableManagerFactory.get(VARIABLE_CONSTANTS.CATEGORY.NAVIGATION);
2773
+ };
2774
+ class NavigationAction extends BaseAction {
2775
+ constructor(variable) {
2776
+ super();
2777
+ Object.assign(this, variable);
2778
+ }
2779
+ invoke(options) {
2780
+ getManager$4().invoke(this, options);
2781
+ }
2782
+ // legacy method.
2783
+ navigate(options) {
2784
+ this.invoke(options);
2785
+ }
2786
+ init() {
2787
+ // static property bindings
2788
+ getManager$4().initBinding(this, 'dataBinding', 'dataBinding');
2789
+ // dynamic property bindings (e.g. page params)
2790
+ getManager$4().initBinding(this, 'dataSet', 'dataSet');
2791
+ }
2792
+ }
2793
+
2794
+ const getManager$3 = () => {
2795
+ return VariableManagerFactory.get(VARIABLE_CONSTANTS.CATEGORY.NOTIFICATION);
2796
+ };
2797
+ class NotificationAction extends BaseAction {
2798
+ constructor(variable) {
2799
+ super();
2800
+ Object.assign(this, variable);
2801
+ }
2802
+ execute(operation, options) {
2803
+ const returnVal = super.execute(operation, options);
2804
+ if (isDefined(returnVal)) {
2805
+ return returnVal;
2806
+ }
2807
+ return new Promise((resolve, reject) => {
2808
+ switch (operation) {
2809
+ case DataSource.Operation.INVOKE:
2810
+ this.invoke(options, resolve, reject);
2811
+ break;
2812
+ case DataSource.Operation.NOTIFY:
2813
+ this.notify(options, resolve, reject);
2814
+ break;
2815
+ default:
2816
+ reject(`${operation} operation is not supported on this data source`);
2817
+ break;
2818
+ }
2819
+ });
2820
+ }
2821
+ // Backward compatible method
2822
+ notify(options, success, error) {
2823
+ getManager$3().notify(this, options, success, error);
2824
+ }
2825
+ invoke(options, success, error) {
2826
+ this.notify(options, success, error);
2827
+ }
2828
+ getMessage() {
2829
+ return getManager$3().getMessage(this);
2830
+ }
2831
+ setMessage(text) {
2832
+ return getManager$3().setMessage(this, text);
2833
+ }
2834
+ clearMessage() {
2835
+ return getManager$3().setMessage(this, '');
2836
+ }
2837
+ getOkButtonText() {
2838
+ return getManager$3().getOkButtonText(this);
2839
+ }
2840
+ setOkButtonText(text) {
2841
+ return getManager$3().setOkButtonText(this, text);
2842
+ }
2843
+ getToasterDuration() {
2844
+ return getManager$3().getToasterDuration(this);
2845
+ }
2846
+ setToasterDuration(duration) {
2847
+ return getManager$3().setToasterDuration(this, duration);
2848
+ }
2849
+ getToasterClass() {
2850
+ return getManager$3().getToasterClass(this);
2851
+ }
2852
+ setToasterClass(classText) {
2853
+ return getManager$3().setToasterClass(this, classText);
2854
+ }
2855
+ getToasterPosition() {
2856
+ return getManager$3().getToasterPosition(this);
2857
+ }
2858
+ setToasterPosition(position) {
2859
+ return getManager$3().setToasterPosition(this, position);
2860
+ }
2861
+ getAlertType() {
2862
+ return getManager$3().getAlertType(this);
2863
+ }
2864
+ setAlertType(type) {
2865
+ return getManager$3().setAlertType(this, type);
2866
+ }
2867
+ getCancelButtonText() {
2868
+ return getManager$3().getCancelButtonText(this);
2869
+ }
2870
+ setCancelButtonText(text) {
2871
+ return getManager$3().setCancelButtonText(this, text);
2872
+ }
2873
+ init() {
2874
+ // static property bindings
2875
+ getManager$3().initBinding(this, 'dataBinding', 'dataBinding');
2876
+ // dynamic property bindings
2877
+ getManager$3().initBinding(this, 'dataSet', 'dataSet');
2878
+ }
2879
+ }
2880
+
2881
+ const getManager$2 = () => {
2882
+ return VariableManagerFactory.get(VARIABLE_CONSTANTS.CATEGORY.LOGIN);
2883
+ };
2884
+ class LoginAction extends BaseAction {
2885
+ constructor(variable) {
2886
+ super();
2887
+ Object.assign(this, variable);
2888
+ }
2889
+ login(options, success, error) {
2890
+ return getManager$2().login(this, options, success, error);
2891
+ }
2892
+ invoke(options, success, error) {
2893
+ return this.login(options, success, error);
2894
+ }
2895
+ cancel() {
2896
+ // TODO[VIBHU]: implement http abort logic
2897
+ }
2898
+ init() {
2899
+ getManager$2().initBinding(this, 'dataBinding', 'dataBinding');
2900
+ }
2901
+ }
2902
+
2903
+ const getManager$1 = () => {
2904
+ return VariableManagerFactory.get(VARIABLE_CONSTANTS.CATEGORY.LOGOUT);
2905
+ };
2906
+ class LogoutAction extends BaseAction {
2907
+ constructor(variable) {
2908
+ super();
2909
+ Object.assign(this, variable);
2910
+ }
2911
+ logout(options, success, error) {
2912
+ getManager$1().logout(this, options, success, error);
2913
+ }
2914
+ invoke(options, success, error) {
2915
+ this.logout(options, success, error);
2916
+ }
2917
+ cancel() {
2918
+ // TODO[VIBHU]: implement http abort logic
2919
+ }
2920
+ }
2921
+
2922
+ const getManager = () => {
2923
+ return VariableManagerFactory.get(VARIABLE_CONSTANTS.CATEGORY.WEBSOCKET);
2924
+ };
2925
+ class WebSocketVariable extends ApiAwareVariable {
2926
+ constructor(variable) {
2927
+ super();
2928
+ Object.assign(this, variable);
2929
+ }
2930
+ open(success, error) {
2931
+ return getManager().open(this, success, error);
2932
+ }
2933
+ close() {
2934
+ return getManager().close(this);
2935
+ }
2936
+ update() {
2937
+ return getManager().update(this);
2938
+ }
2939
+ send(message) {
2940
+ return getManager().send(this, message);
2941
+ }
2942
+ cancel() {
2943
+ return this.close();
2944
+ }
2945
+ invoke(options, success, error) {
2946
+ this.open(success, error);
2947
+ }
2948
+ init() {
2949
+ getManager().initBinding(this);
2950
+ }
2951
+ }
2952
+
2953
+ class VariableFactory {
2954
+ static create(variable, context) {
2955
+ let variableInstance;
2956
+ switch (variable.category) {
2957
+ case VARIABLE_CONSTANTS$1.CATEGORY.MODEL:
2958
+ variableInstance = new ModelVariable(variable);
2959
+ break;
2960
+ case VARIABLE_CONSTANTS$1.CATEGORY.SERVICE:
2961
+ variableInstance = new ServiceVariable(variable);
2962
+ break;
2963
+ case VARIABLE_CONSTANTS$1.CATEGORY.LIVE:
2964
+ variableInstance = new LiveVariable(variable);
2965
+ break;
2966
+ case VARIABLE_CONSTANTS$1.CATEGORY.CRUD:
2967
+ variableInstance = new CrudVariable(variable);
2968
+ break;
2969
+ case VARIABLE_CONSTANTS$1.CATEGORY.NAVIGATION:
2970
+ variableInstance = new NavigationAction(variable);
2971
+ break;
2972
+ case VARIABLE_CONSTANTS$1.CATEGORY.NOTIFICATION:
2973
+ variableInstance = new NotificationAction(variable);
2974
+ break;
2975
+ case VARIABLE_CONSTANTS$1.CATEGORY.LOGIN:
2976
+ variableInstance = new LoginAction(variable);
2977
+ break;
2978
+ case VARIABLE_CONSTANTS$1.CATEGORY.LOGOUT:
2979
+ variableInstance = new LogoutAction(variable);
2980
+ break;
2981
+ case VARIABLE_CONSTANTS$1.CATEGORY.TIMER:
2982
+ variableInstance = new TimerAction(variable);
2983
+ break;
2984
+ case VARIABLE_CONSTANTS$1.CATEGORY.WEBSOCKET:
2985
+ variableInstance = new WebSocketVariable(variable);
2986
+ }
2987
+ variableInstance._context = context;
2988
+ variableInstance.__cloneable__ = false;
2989
+ return variableInstance;
2990
+ }
2991
+ }
2992
+
2993
+ class MetadataService {
2994
+ constructor($http) {
2995
+ this.$http = $http;
2996
+ this.CONTEXT_APP = 'app';
2997
+ }
2998
+ isLoaded() {
2999
+ return this.metadataMap ? this.metadataMap.has(this.CONTEXT_APP) : false;
3000
+ }
3001
+ load(prefabName) {
3002
+ let url;
3003
+ let serviceDefFileName = prefabName ? prefabName + '-prefab-servicedefs.json' : 'app-servicedefs.json';
3004
+ const deployedUrl = _WM_APP_PROJECT.cdnUrl + 'servicedefs/' + serviceDefFileName;
3005
+ const previewUrl = './services/' + (prefabName ? `prefabs/${prefabName}/` : '') + 'servicedefs';
3006
+ url = _WM_APP_PROJECT.isPreview || _WM_APP_PROPERTIES?.serviceDefSources === 'DYNAMIC' ? previewUrl : deployedUrl;
3007
+ return new Promise((resolve, reject) => {
3008
+ this.$http.send({ 'url': url, 'method': 'GET' }).then((response) => {
3009
+ this.metadataMap = this.metadataMap || new Map();
3010
+ this.providerMap = this.providerMap || new Map();
3011
+ response.body = response.body || {};
3012
+ this.metadataMap.set(prefabName || this.CONTEXT_APP, response.body.serviceDefs);
3013
+ if (response.body.securityDefinitions) {
3014
+ this.providerMap.set(prefabName || this.CONTEXT_APP, response.body.securityDefinitions.oauthProvider);
3015
+ }
3016
+ resolve(response.body.serviceDefs);
3017
+ }, reject);
3018
+ });
3019
+ }
3020
+ getByOperationId(operationId, context) {
3021
+ context = context || this.CONTEXT_APP;
3022
+ const map = this.metadataMap.get(context);
3023
+ return map && map[operationId];
3024
+ }
3025
+ // function to get Provider details from providerMap for the passed providerId
3026
+ getByProviderId(providerId, context) {
3027
+ context = context || this.CONTEXT_APP;
3028
+ const map = this.providerMap.get(context);
3029
+ return map && map[providerId];
3030
+ }
3031
+ getByCrudId(crudId, context) {
3032
+ context = context || this.CONTEXT_APP;
3033
+ const map = this.metadataMap.get(context);
3034
+ let ops = [];
3035
+ for (let k in map) {
3036
+ if (map[k] && map[k].crudOperationId === crudId) {
3037
+ ops.push(map[k]);
3038
+ }
3039
+ }
3040
+ return ops;
3041
+ }
3042
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MetadataService, deps: [{ token: i1.AbstractHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
3043
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MetadataService }); }
3044
+ }
3045
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MetadataService, decorators: [{
3046
+ type: Injectable
3047
+ }], ctorParameters: () => [{ type: i1.AbstractHttpService }] });
3048
+
3049
+ class Formatter {
3050
+ format(value, format) {
3051
+ return appManager.getPipe('date').transform(value, format);
3052
+ }
3053
+ }
3054
+ class VariablesService {
3055
+ constructor(httpService, metadataService, navigationService, routerService, toasterService, oAuthService, securityService, dialogService) {
3056
+ this.httpService = httpService;
3057
+ this.metadataService = metadataService;
3058
+ this.navigationService = navigationService;
3059
+ this.routerService = routerService;
3060
+ this.toasterService = toasterService;
3061
+ this.oAuthService = oAuthService;
3062
+ this.securityService = securityService;
3063
+ this.dialogService = dialogService;
3064
+ // set external dependencies, to be used across variable classes, managers and utils
3065
+ setDependency('http', this.httpService);
3066
+ setDependency('metadata', this.metadataService);
3067
+ setDependency('navigationService', this.navigationService);
3068
+ setDependency('router', this.routerService);
3069
+ setDependency('toaster', this.toasterService);
3070
+ setDependency('oAuth', this.oAuthService);
3071
+ setDependency('security', this.securityService);
3072
+ setDependency('dialog', this.dialogService);
3073
+ wmSetDependency('oAuth', this.oAuthService);
3074
+ wmSetDependency('security', this.securityService);
3075
+ wmSetDependency('metadata', this.metadataService);
3076
+ wmSetDependency('http', this.httpService);
3077
+ }
3078
+ /**
3079
+ * loop through a collection of variables/actions
3080
+ * trigger cancel on each (of exists)
3081
+ * @param collection
3082
+ */
3083
+ bulkCancel(collection) {
3084
+ Object.keys(collection).forEach(name => {
3085
+ const variable = collection[name];
3086
+ if (isFunction(variable.cancel)) {
3087
+ variable.cancel();
3088
+ }
3089
+ });
3090
+ }
3091
+ /**
3092
+ * loops over the variable/actions collection and trigger invoke on it if startUpdate on it is true
3093
+ * @param collection
3094
+ */
3095
+ triggerStartUpdate(collection) {
3096
+ return Promise.all(Object.keys(collection)
3097
+ .map(name => collection[name])
3098
+ .filter(variable => variable?.startUpdate && variable.invoke)
3099
+ .map(variable => variable.invoke()));
3100
+ }
3101
+ processBindExp(d, scope, variable) {
3102
+ const root = getTarget(variable), targetNodeKey = getTargetNodeKey$1(d.target), runMode = true;
3103
+ let v = isArray(d.value) ? d.value[0] : d.value;
3104
+ if (v) {
3105
+ if (v.startsWith && v.startsWith('bind:')) {
3106
+ const watchExpression = $watch(v.replace('bind:', ''), scope, {}, variable.invokeOnParamChange.bind(variable, d), undefined, undefined, d, () => variable.isMuted);
3107
+ v = scope.registerDestroyListener ? scope.registerDestroyListener(watchExpression) : watchExpression;
3108
+ }
3109
+ else if (!isUndefined(d.value)) {
3110
+ setValueToNode$1(d.target, d, root, variable, d.value, true);
3111
+ if (runMode && root !== targetNodeKey) {
3112
+ if (!internalBoundNodeMap$1.has(variable)) {
3113
+ internalBoundNodeMap$1.set(variable, {});
3114
+ }
3115
+ set(internalBoundNodeMap$1.get(variable), [variable.name, root, d.target], d.value);
3116
+ }
3117
+ }
3118
+ }
3119
+ return {
3120
+ name: d.target,
3121
+ value: v
3122
+ };
3123
+ }
3124
+ processBinding(variable, context, bindSource, bindTarget) {
3125
+ bindSource = bindSource || 'dataBinding';
3126
+ bindTarget = bindTarget || 'dataBinding';
3127
+ const bindMap = variable[bindSource];
3128
+ variable[bindSource] = {};
3129
+ variable['_bind' + bindSource] = bindMap;
3130
+ if (!bindMap || !isArray(bindMap)) {
3131
+ return;
3132
+ }
3133
+ bindMap.forEach((node) => {
3134
+ /* for static variable change the binding with target 'dataBinding' to 'dataSet', as the results have to reflect directly in the dataSet */
3135
+ if (variable.category === 'wm.Variable' && node.target === 'dataBinding') {
3136
+ node.target = 'dataSet';
3137
+ }
3138
+ this.processBindExp(node, context, variable);
3139
+ });
3140
+ }
3141
+ isVariableSeperated(variablesJson, variableName) {
3142
+ return variablesJson[variableName].category === 'wm.Variable' || variablesJson[variableName].category === 'wm.ServiceVariable' ||
3143
+ variablesJson[variableName].category === 'wm.LiveVariable' || variablesJson[variableName].category === 'wm.CrudVariable';
3144
+ }
3145
+ getBindSourceTarget(variable) {
3146
+ if (variable.category === 'wm.LiveVariable') {
3147
+ return variable.operation === 'read' ? 'filterFields' : 'inputFields';
3148
+ }
3149
+ else if (variable.category === 'wm.ModelVariable') {
3150
+ return 'dataSet';
3151
+ }
3152
+ else {
3153
+ return 'dataBinding';
3154
+ }
3155
+ }
3156
+ /**
3157
+ * Takes the raw variables and actions json as input
3158
+ * Initialize the variable and action instances through the factory
3159
+ * collect the variables and actions in separate maps and return the collection
3160
+ * @param {string} page
3161
+ * @param variablesJson
3162
+ * @param scope
3163
+ * @returns {Variables , Actions}
3164
+ */
3165
+ register(page, variablesJson, scope) {
3166
+ const variableInstances = {
3167
+ Variables: {},
3168
+ Actions: {},
3169
+ callback: this.triggerStartUpdate
3170
+ };
3171
+ let varInstance;
3172
+ for (const variableName in variablesJson) {
3173
+ const params = {};
3174
+ varInstance = VariableFactory.create(variablesJson[variableName], scope);
3175
+ varInstance.init();
3176
+ if (this.isVariableSeperated(variablesJson, variableName)) {
3177
+ this.processBinding(varInstance, scope, 'dataBinding', this.getBindSourceTarget(varInstance));
3178
+ varInstance.httpService = this.httpService;
3179
+ varInstance.dateFormatter = new Formatter();
3180
+ // MEMORY LEAK FIX: Store subscription unsubscribe function (cleanup handled by registerDestroyListener)
3181
+ const afterInvokeUnsubscribe = varInstance.subscribe('afterInvoke', () => $invokeWatchers(true));
3182
+ // Store on variable for potential manual cleanup if needed
3183
+ if (!varInstance._eventSubscriptions) {
3184
+ varInstance._eventSubscriptions = [];
3185
+ }
3186
+ varInstance._eventSubscriptions.push(afterInvokeUnsubscribe);
3187
+ if (varInstance.category === 'wm.LiveVariable' && varInstance.operation === 'read') {
3188
+ processFilterExpBindNode(varInstance._context, varInstance.filterExpressions, varInstance);
3189
+ }
3190
+ if (varInstance.category === 'wm.CrudVariable' || varInstance.category === 'wm.ServiceVariable') {
3191
+ varInstance.simulateFileDownload = simulateFileDownload;
3192
+ }
3193
+ }
3194
+ if (this.isVariableSeperated(variablesJson, variableName) || variablesJson[variableName].category === 'wm.TimerAction') {
3195
+ for (const e in VARIABLE_CONSTANTS.EVENT) {
3196
+ if (varInstance[VARIABLE_CONSTANTS.EVENT[e]]) {
3197
+ varInstance[VARIABLE_CONSTANTS.EVENT[e]] = $parseEvent(varInstance[VARIABLE_CONSTANTS.EVENT[e]]);
3198
+ }
3199
+ }
3200
+ }
3201
+ // if action type, put it in Actions namespace
3202
+ if (varInstance instanceof BaseAction) {
3203
+ variableInstances.Actions[variableName] = varInstance;
3204
+ }
3205
+ else {
3206
+ variableInstances.Variables[variableName] = varInstance;
3207
+ }
3208
+ }
3209
+ // if the context has onDestroy listener, subscribe the event and trigger cancel on all varibales
3210
+ if (scope.registerDestroyListener) {
3211
+ scope.registerDestroyListener(() => {
3212
+ this.bulkCancel(variableInstances.Variables);
3213
+ this.bulkCancel(variableInstances.Actions);
3214
+ });
3215
+ }
3216
+ return variableInstances;
3217
+ }
3218
+ destroy() {
3219
+ }
3220
+ registerDependency(name, ref) {
3221
+ setDependency(name, ref);
3222
+ wmSetDependency(name, ref);
3223
+ }
3224
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: VariablesService, deps: [{ token: i1.AbstractHttpService }, { token: MetadataService }, { token: i1.AbstractNavigationService }, { token: i3.Router }, { token: i1.AbstractToasterService }, { token: i4.OAuthService }, { token: i5.SecurityService }, { token: i1.AbstractDialogService }], target: i0.ɵɵFactoryTarget.Injectable }); }
3225
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: VariablesService }); }
3226
+ }
3227
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: VariablesService, decorators: [{
3228
+ type: Injectable
3229
+ }], ctorParameters: () => [{ type: i1.AbstractHttpService }, { type: MetadataService }, { type: i1.AbstractNavigationService }, { type: i3.Router }, { type: i1.AbstractToasterService }, { type: i4.OAuthService }, { type: i5.SecurityService }, { type: i1.AbstractDialogService }] });
3230
+
3231
+ /**
3232
+ * Generated bundle index. Do not edit.
3233
+ */
3234
+
3235
+ export { $rootScope, CONSTANTS, DB_CONSTANTS, Formatter, MODE_CONSTANTS, MetadataService, SWAGGER_CONSTANTS, VARIABLE_CONSTANTS, VARIABLE_URLS, VariableManagerFactory, VariablesService, WS_CONSTANTS, appManager, debounceVariableCall, dialogService, formatDate, formatExportExpression, getEvaluatedOrderBy, httpService, initiateCallback, isFileUploadSupported, metadataService, navigationService, oauthService, processBinding, routerService, securityService, setDependency, setInput, simulateFileDownload, toasterService };
3236
+ //# sourceMappingURL=index.mjs.map