@wavemaker-ai/app-ng-runtime 12.0.2-rc.647771 → 12.1.0-rc.647821

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 (473) hide show
  1. package/build-task/bundles/index.umd.js +2489 -2963
  2. package/build-task/fesm2022/index.mjs +2307 -2786
  3. package/build-task/fesm2022/index.mjs.map +1 -1
  4. package/build-task/types/index.d.ts +401 -844
  5. package/components/advanced/carousel/bundles/index.umd.js +387 -344
  6. package/components/advanced/carousel/fesm2022/index.mjs +363 -325
  7. package/components/advanced/carousel/fesm2022/index.mjs.map +1 -1
  8. package/components/advanced/carousel/types/index.d.ts +85 -86
  9. package/components/advanced/custom/bundles/index.umd.js +298 -249
  10. package/components/advanced/custom/fesm2022/index.mjs +280 -236
  11. package/components/advanced/custom/fesm2022/index.mjs.map +1 -1
  12. package/components/advanced/custom/types/index.d.ts +49 -49
  13. package/components/advanced/login/bundles/index.umd.js +177 -127
  14. package/components/advanced/login/fesm2022/index.mjs +162 -117
  15. package/components/advanced/login/fesm2022/index.mjs.map +1 -1
  16. package/components/advanced/login/types/index.d.ts +33 -34
  17. package/components/advanced/marquee/bundles/index.umd.js +93 -63
  18. package/components/advanced/marquee/fesm2022/index.mjs +73 -48
  19. package/components/advanced/marquee/fesm2022/index.mjs.map +1 -1
  20. package/components/advanced/marquee/types/index.d.ts +11 -12
  21. package/components/base/bundles/index.umd.js +5515 -6359
  22. package/components/base/fesm2022/index.mjs +5169 -6027
  23. package/components/base/fesm2022/index.mjs.map +1 -1
  24. package/components/base/types/index.d.ts +1198 -1154
  25. package/components/basic/anchor/bundles/index.umd.js +273 -195
  26. package/components/basic/anchor/fesm2022/index.mjs +251 -178
  27. package/components/basic/anchor/fesm2022/index.mjs.map +1 -1
  28. package/components/basic/anchor/types/index.d.ts +40 -41
  29. package/components/basic/audio/bundles/index.umd.js +124 -75
  30. package/components/basic/audio/fesm2022/index.mjs +104 -60
  31. package/components/basic/audio/fesm2022/index.mjs.map +1 -1
  32. package/components/basic/audio/types/index.d.ts +22 -23
  33. package/components/basic/html/bundles/index.umd.js +144 -113
  34. package/components/basic/html/fesm2022/index.mjs +125 -99
  35. package/components/basic/html/fesm2022/index.mjs.map +1 -1
  36. package/components/basic/html/types/index.d.ts +20 -17
  37. package/components/basic/icon/bundles/index.umd.js +144 -72
  38. package/components/basic/icon/fesm2022/index.mjs +124 -57
  39. package/components/basic/icon/fesm2022/index.mjs.map +1 -1
  40. package/components/basic/icon/types/index.d.ts +18 -19
  41. package/components/basic/iframe/bundles/index.umd.js +143 -93
  42. package/components/basic/iframe/fesm2022/index.mjs +124 -79
  43. package/components/basic/iframe/fesm2022/index.mjs.map +1 -1
  44. package/components/basic/iframe/types/index.d.ts +28 -29
  45. package/components/basic/label/bundles/index.umd.js +136 -120
  46. package/components/basic/label/fesm2022/index.mjs +118 -107
  47. package/components/basic/label/fesm2022/index.mjs.map +1 -1
  48. package/components/basic/label/types/index.d.ts +14 -15
  49. package/components/basic/picture/bundles/index.umd.js +171 -130
  50. package/components/basic/picture/fesm2022/index.mjs +152 -116
  51. package/components/basic/picture/fesm2022/index.mjs.map +1 -1
  52. package/components/basic/picture/types/index.d.ts +21 -22
  53. package/components/basic/progress/progress-bar/bundles/index.umd.js +211 -160
  54. package/components/basic/progress/progress-bar/fesm2022/index.mjs +193 -147
  55. package/components/basic/progress/progress-bar/fesm2022/index.mjs.map +1 -1
  56. package/components/basic/progress/progress-bar/types/index.d.ts +45 -41
  57. package/components/basic/progress/progress-circle/bundles/index.umd.js +294 -165
  58. package/components/basic/progress/progress-circle/fesm2022/index.mjs +274 -150
  59. package/components/basic/progress/progress-circle/fesm2022/index.mjs.map +1 -1
  60. package/components/basic/progress/progress-circle/types/index.d.ts +41 -42
  61. package/components/basic/progress/progress-utils/bundles/index.umd.js +27 -29
  62. package/components/basic/progress/progress-utils/fesm2022/index.mjs +18 -25
  63. package/components/basic/progress/progress-utils/fesm2022/index.mjs.map +1 -1
  64. package/components/basic/progress/progress-utils/types/index.d.ts +3 -5
  65. package/components/basic/rich-text-editor/bundles/index.umd.js +294 -228
  66. package/components/basic/rich-text-editor/fesm2022/index.mjs +275 -214
  67. package/components/basic/rich-text-editor/fesm2022/index.mjs.map +1 -1
  68. package/components/basic/rich-text-editor/types/index.d.ts +55 -56
  69. package/components/basic/search/bundles/index.umd.js +1129 -1090
  70. package/components/basic/search/fesm2022/index.mjs +1117 -1083
  71. package/components/basic/search/fesm2022/index.mjs.map +1 -1
  72. package/components/basic/search/types/index.d.ts +132 -130
  73. package/components/basic/spinner/bundles/index.umd.js +216 -120
  74. package/components/basic/spinner/fesm2022/index.mjs +201 -110
  75. package/components/basic/spinner/fesm2022/index.mjs.map +1 -1
  76. package/components/basic/spinner/types/index.d.ts +30 -31
  77. package/components/basic/tree/bundles/index.umd.js +756 -756
  78. package/components/basic/tree/fesm2022/index.mjs +740 -745
  79. package/components/basic/tree/fesm2022/index.mjs.map +1 -1
  80. package/components/basic/tree/types/index.d.ts +106 -97
  81. package/components/basic/video/bundles/index.umd.js +164 -108
  82. package/components/basic/video/fesm2022/index.mjs +145 -94
  83. package/components/basic/video/fesm2022/index.mjs.map +1 -1
  84. package/components/basic/video/types/index.d.ts +29 -30
  85. package/components/chart/bundles/index.umd.js +1768 -1737
  86. package/components/chart/fesm2022/index.mjs +1713 -1728
  87. package/components/chart/fesm2022/index.mjs.map +1 -1
  88. package/components/chart/types/index.d.ts +102 -104
  89. package/components/containers/accordion/bundles/index.umd.js +522 -494
  90. package/components/containers/accordion/fesm2022/index.mjs +502 -479
  91. package/components/containers/accordion/fesm2022/index.mjs.map +1 -1
  92. package/components/containers/accordion/types/index.d.ts +116 -116
  93. package/components/containers/layout-grid/bundles/index.umd.js +260 -164
  94. package/components/containers/layout-grid/fesm2022/index.mjs +231 -140
  95. package/components/containers/layout-grid/fesm2022/index.mjs.map +1 -1
  96. package/components/containers/layout-grid/types/index.d.ts +30 -27
  97. package/components/containers/linear-layout/bundles/index.umd.js +220 -178
  98. package/components/containers/linear-layout/fesm2022/index.mjs +193 -156
  99. package/components/containers/linear-layout/fesm2022/index.mjs.map +1 -1
  100. package/components/containers/linear-layout/types/index.d.ts +26 -26
  101. package/components/containers/panel/bundles/index.umd.js +343 -215
  102. package/components/containers/panel/fesm2022/index.mjs +330 -207
  103. package/components/containers/panel/fesm2022/index.mjs.map +1 -1
  104. package/components/containers/panel/types/index.d.ts +48 -49
  105. package/components/containers/tabs/bundles/index.umd.js +832 -779
  106. package/components/containers/tabs/fesm2022/index.mjs +811 -763
  107. package/components/containers/tabs/fesm2022/index.mjs.map +1 -1
  108. package/components/containers/tabs/types/index.d.ts +134 -126
  109. package/components/containers/tile/bundles/index.umd.js +93 -60
  110. package/components/containers/tile/fesm2022/index.mjs +75 -47
  111. package/components/containers/tile/fesm2022/index.mjs.map +1 -1
  112. package/components/containers/tile/types/index.d.ts +11 -12
  113. package/components/containers/wizard/bundles/index.umd.js +1096 -1078
  114. package/components/containers/wizard/fesm2022/index.mjs +1069 -1056
  115. package/components/containers/wizard/fesm2022/index.mjs.map +1 -1
  116. package/components/containers/wizard/types/index.d.ts +258 -252
  117. package/components/data/card/bundles/index.umd.js +439 -229
  118. package/components/data/card/fesm2022/index.mjs +408 -203
  119. package/components/data/card/fesm2022/index.mjs.map +1 -1
  120. package/components/data/card/types/index.d.ts +50 -48
  121. package/components/data/form/bundles/index.umd.js +3392 -3339
  122. package/components/data/form/fesm2022/index.mjs +3350 -3304
  123. package/components/data/form/fesm2022/index.mjs.map +1 -1
  124. package/components/data/form/types/index.d.ts +561 -482
  125. package/components/data/list/bundles/index.umd.js +1523 -1601
  126. package/components/data/list/fesm2022/index.mjs +1507 -1590
  127. package/components/data/list/fesm2022/index.mjs.map +1 -1
  128. package/components/data/list/types/index.d.ts +300 -283
  129. package/components/data/live-table/bundles/index.umd.js +299 -280
  130. package/components/data/live-table/fesm2022/index.mjs +284 -270
  131. package/components/data/live-table/fesm2022/index.mjs.map +1 -1
  132. package/components/data/live-table/types/index.d.ts +42 -39
  133. package/components/data/pagination/bundles/index.umd.js +848 -881
  134. package/components/data/pagination/fesm2022/index.mjs +835 -879
  135. package/components/data/pagination/fesm2022/index.mjs.map +1 -1
  136. package/components/data/pagination/types/index.d.ts +110 -106
  137. package/components/data/table/bundles/index.umd.js +4977 -5042
  138. package/components/data/table/fesm2022/index.mjs +4937 -5007
  139. package/components/data/table/fesm2022/index.mjs.map +1 -1
  140. package/components/data/table/types/index.d.ts +770 -736
  141. package/components/dialogs/alert-dialog/bundles/index.umd.js +259 -118
  142. package/components/dialogs/alert-dialog/fesm2022/index.mjs +243 -109
  143. package/components/dialogs/alert-dialog/fesm2022/index.mjs.map +1 -1
  144. package/components/dialogs/alert-dialog/types/index.d.ts +31 -26
  145. package/components/dialogs/confirm-dialog/bundles/index.umd.js +250 -121
  146. package/components/dialogs/confirm-dialog/fesm2022/index.mjs +236 -114
  147. package/components/dialogs/confirm-dialog/fesm2022/index.mjs.map +1 -1
  148. package/components/dialogs/confirm-dialog/types/index.d.ts +34 -29
  149. package/components/dialogs/default/bundles/index.umd.js +509 -373
  150. package/components/dialogs/default/fesm2022/index.mjs +485 -354
  151. package/components/dialogs/default/fesm2022/index.mjs.map +1 -1
  152. package/components/dialogs/default/types/index.d.ts +129 -86
  153. package/components/dialogs/design-dialog/bundles/index.umd.js +320 -142
  154. package/components/dialogs/design-dialog/fesm2022/index.mjs +305 -132
  155. package/components/dialogs/design-dialog/fesm2022/index.mjs.map +1 -1
  156. package/components/dialogs/design-dialog/types/index.d.ts +31 -20
  157. package/components/dialogs/iframe-dialog/bundles/index.umd.js +258 -111
  158. package/components/dialogs/iframe-dialog/fesm2022/index.mjs +245 -105
  159. package/components/dialogs/iframe-dialog/fesm2022/index.mjs.map +1 -1
  160. package/components/dialogs/iframe-dialog/types/index.d.ts +27 -22
  161. package/components/dialogs/login-dialog/bundles/index.umd.js +139 -106
  162. package/components/dialogs/login-dialog/fesm2022/index.mjs +125 -97
  163. package/components/dialogs/login-dialog/fesm2022/index.mjs.map +1 -1
  164. package/components/dialogs/login-dialog/types/index.d.ts +27 -26
  165. package/components/dialogs/partial-dialog/bundles/index.umd.js +302 -149
  166. package/components/dialogs/partial-dialog/fesm2022/index.mjs +289 -143
  167. package/components/dialogs/partial-dialog/fesm2022/index.mjs.map +1 -1
  168. package/components/dialogs/partial-dialog/types/index.d.ts +37 -32
  169. package/components/input/base-form/bundles/index.umd.js +143 -139
  170. package/components/input/base-form/fesm2022/index.mjs +129 -130
  171. package/components/input/base-form/fesm2022/index.mjs.map +1 -1
  172. package/components/input/base-form/types/index.d.ts +28 -29
  173. package/components/input/base-form-custom/bundles/index.umd.js +107 -121
  174. package/components/input/base-form-custom/fesm2022/index.mjs +88 -107
  175. package/components/input/base-form-custom/fesm2022/index.mjs.map +1 -1
  176. package/components/input/base-form-custom/types/index.d.ts +23 -26
  177. package/components/input/button/bundles/index.umd.js +177 -89
  178. package/components/input/button/fesm2022/index.mjs +158 -75
  179. package/components/input/button/fesm2022/index.mjs.map +1 -1
  180. package/components/input/button/types/index.d.ts +24 -25
  181. package/components/input/button-group/bundles/index.umd.js +110 -72
  182. package/components/input/button-group/fesm2022/index.mjs +90 -57
  183. package/components/input/button-group/fesm2022/index.mjs.map +1 -1
  184. package/components/input/button-group/types/index.d.ts +13 -14
  185. package/components/input/calendar/bundles/index.umd.js +615 -647
  186. package/components/input/calendar/fesm2022/index.mjs +596 -649
  187. package/components/input/calendar/fesm2022/index.mjs.map +1 -1
  188. package/components/input/calendar/types/index.d.ts +130 -131
  189. package/components/input/caption-position/bundles/index.umd.js +175 -188
  190. package/components/input/caption-position/fesm2022/index.mjs +159 -177
  191. package/components/input/caption-position/fesm2022/index.mjs.map +1 -1
  192. package/components/input/caption-position/types/index.d.ts +31 -34
  193. package/components/input/checkbox/bundles/index.umd.js +339 -200
  194. package/components/input/checkbox/fesm2022/index.mjs +319 -185
  195. package/components/input/checkbox/fesm2022/index.mjs.map +1 -1
  196. package/components/input/checkbox/types/index.d.ts +46 -41
  197. package/components/input/checkboxset/bundles/index.umd.js +256 -170
  198. package/components/input/checkboxset/fesm2022/index.mjs +242 -161
  199. package/components/input/checkboxset/fesm2022/index.mjs.map +1 -1
  200. package/components/input/checkboxset/types/index.d.ts +26 -27
  201. package/components/input/chips/bundles/index.umd.js +721 -733
  202. package/components/input/chips/fesm2022/index.mjs +706 -723
  203. package/components/input/chips/fesm2022/index.mjs.map +1 -1
  204. package/components/input/chips/types/index.d.ts +101 -90
  205. package/components/input/color-picker/bundles/index.umd.js +312 -137
  206. package/components/input/color-picker/fesm2022/index.mjs +296 -126
  207. package/components/input/color-picker/fesm2022/index.mjs.map +1 -1
  208. package/components/input/color-picker/types/index.d.ts +35 -36
  209. package/components/input/composite/bundles/index.umd.js +127 -112
  210. package/components/input/composite/fesm2022/index.mjs +106 -96
  211. package/components/input/composite/fesm2022/index.mjs.map +1 -1
  212. package/components/input/composite/types/index.d.ts +26 -27
  213. package/components/input/currency/bundles/index.umd.js +237 -104
  214. package/components/input/currency/fesm2022/index.mjs +219 -91
  215. package/components/input/currency/fesm2022/index.mjs.map +1 -1
  216. package/components/input/currency/types/index.d.ts +30 -31
  217. package/components/input/dataset-aware-form/bundles/index.umd.js +298 -346
  218. package/components/input/dataset-aware-form/fesm2022/index.mjs +286 -339
  219. package/components/input/dataset-aware-form/fesm2022/index.mjs.map +1 -1
  220. package/components/input/dataset-aware-form/types/index.d.ts +80 -80
  221. package/components/input/epoch/base-date-time/bundles/index.umd.js +809 -1081
  222. package/components/input/epoch/base-date-time/fesm2022/index.mjs +796 -1073
  223. package/components/input/epoch/base-date-time/fesm2022/index.mjs.map +1 -1
  224. package/components/input/epoch/base-date-time/types/index.d.ts +244 -247
  225. package/components/input/epoch/date/bundles/index.umd.js +619 -513
  226. package/components/input/epoch/date/fesm2022/index.mjs +604 -503
  227. package/components/input/epoch/date/fesm2022/index.mjs.map +1 -1
  228. package/components/input/epoch/date/types/index.d.ts +63 -64
  229. package/components/input/epoch/date-time/bundles/index.umd.js +682 -511
  230. package/components/input/epoch/date-time/fesm2022/index.mjs +672 -506
  231. package/components/input/epoch/date-time/fesm2022/index.mjs.map +1 -1
  232. package/components/input/epoch/date-time/types/index.d.ts +111 -112
  233. package/components/input/epoch/date-time-picker/bundles/index.umd.js +417 -321
  234. package/components/input/epoch/date-time-picker/fesm2022/index.mjs +405 -314
  235. package/components/input/epoch/date-time-picker/fesm2022/index.mjs.map +1 -1
  236. package/components/input/epoch/date-time-picker/types/index.d.ts +135 -80
  237. package/components/input/epoch/picker/bundles/index.umd.js +201 -148
  238. package/components/input/epoch/picker/fesm2022/index.mjs +183 -135
  239. package/components/input/epoch/picker/fesm2022/index.mjs.map +1 -1
  240. package/components/input/epoch/picker/types/index.d.ts +46 -38
  241. package/components/input/epoch/time/bundles/index.umd.js +534 -392
  242. package/components/input/epoch/time/fesm2022/index.mjs +523 -386
  243. package/components/input/epoch/time/fesm2022/index.mjs.map +1 -1
  244. package/components/input/epoch/time/types/index.d.ts +107 -108
  245. package/components/input/file-upload/bundles/index.umd.js +500 -477
  246. package/components/input/file-upload/fesm2022/index.mjs +484 -466
  247. package/components/input/file-upload/fesm2022/index.mjs.map +1 -1
  248. package/components/input/file-upload/types/index.d.ts +110 -109
  249. package/components/input/number/bundles/index.umd.js +241 -101
  250. package/components/input/number/fesm2022/index.mjs +224 -89
  251. package/components/input/number/fesm2022/index.mjs.map +1 -1
  252. package/components/input/number/types/index.d.ts +28 -29
  253. package/components/input/radioset/bundles/index.umd.js +240 -156
  254. package/components/input/radioset/fesm2022/index.mjs +226 -147
  255. package/components/input/radioset/fesm2022/index.mjs.map +1 -1
  256. package/components/input/radioset/types/index.d.ts +25 -26
  257. package/components/input/rating/bundles/index.umd.js +353 -266
  258. package/components/input/rating/fesm2022/index.mjs +337 -255
  259. package/components/input/rating/fesm2022/index.mjs.map +1 -1
  260. package/components/input/rating/types/index.d.ts +52 -53
  261. package/components/input/select/bundles/index.umd.js +295 -217
  262. package/components/input/select/fesm2022/index.mjs +280 -207
  263. package/components/input/select/fesm2022/index.mjs.map +1 -1
  264. package/components/input/select/types/index.d.ts +38 -39
  265. package/components/input/slider/bundles/index.umd.js +316 -197
  266. package/components/input/slider/fesm2022/index.mjs +297 -183
  267. package/components/input/slider/fesm2022/index.mjs.map +1 -1
  268. package/components/input/slider/types/index.d.ts +43 -44
  269. package/components/input/switch/bundles/index.umd.js +257 -219
  270. package/components/input/switch/fesm2022/index.mjs +243 -210
  271. package/components/input/switch/fesm2022/index.mjs.map +1 -1
  272. package/components/input/switch/types/index.d.ts +34 -35
  273. package/components/input/text/bundles/index.umd.js +1585 -1120
  274. package/components/input/text/fesm2022/index.mjs +1542 -1082
  275. package/components/input/text/fesm2022/index.mjs.map +1 -1
  276. package/components/input/text/types/index.d.ts +313 -310
  277. package/components/input/textarea/bundles/index.umd.js +224 -100
  278. package/components/input/textarea/fesm2022/index.mjs +207 -88
  279. package/components/input/textarea/fesm2022/index.mjs.map +1 -1
  280. package/components/input/textarea/types/index.d.ts +32 -33
  281. package/components/navigation/breadcrumb/bundles/index.umd.js +205 -131
  282. package/components/navigation/breadcrumb/fesm2022/index.mjs +188 -118
  283. package/components/navigation/breadcrumb/fesm2022/index.mjs.map +1 -1
  284. package/components/navigation/breadcrumb/types/index.d.ts +29 -28
  285. package/components/navigation/menu/bundles/index.umd.js +1461 -950
  286. package/components/navigation/menu/fesm2022/index.mjs +1416 -910
  287. package/components/navigation/menu/fesm2022/index.mjs.map +1 -1
  288. package/components/navigation/menu/types/index.d.ts +220 -193
  289. package/components/navigation/navbar/bundles/index.umd.js +172 -79
  290. package/components/navigation/navbar/fesm2022/index.mjs +155 -67
  291. package/components/navigation/navbar/fesm2022/index.mjs.map +1 -1
  292. package/components/navigation/navbar/types/index.d.ts +19 -20
  293. package/components/navigation/popover/bundles/index.umd.js +543 -519
  294. package/components/navigation/popover/fesm2022/index.mjs +524 -505
  295. package/components/navigation/popover/fesm2022/index.mjs.map +1 -1
  296. package/components/navigation/popover/types/index.d.ts +86 -86
  297. package/components/page/default/bundles/index.umd.js +634 -451
  298. package/components/page/default/fesm2022/index.mjs +600 -422
  299. package/components/page/default/fesm2022/index.mjs.map +1 -1
  300. package/components/page/default/types/index.d.ts +123 -119
  301. package/components/page/footer/bundles/index.umd.js +91 -63
  302. package/components/page/footer/fesm2022/index.mjs +71 -48
  303. package/components/page/footer/fesm2022/index.mjs.map +1 -1
  304. package/components/page/footer/types/index.d.ts +11 -12
  305. package/components/page/header/bundles/index.umd.js +96 -59
  306. package/components/page/header/fesm2022/index.mjs +76 -44
  307. package/components/page/header/fesm2022/index.mjs.map +1 -1
  308. package/components/page/header/types/index.d.ts +12 -13
  309. package/components/page/left-panel/bundles/index.umd.js +405 -407
  310. package/components/page/left-panel/fesm2022/index.mjs +386 -393
  311. package/components/page/left-panel/fesm2022/index.mjs.map +1 -1
  312. package/components/page/left-panel/types/index.d.ts +47 -40
  313. package/components/page/right-panel/bundles/index.umd.js +115 -78
  314. package/components/page/right-panel/fesm2022/index.mjs +96 -64
  315. package/components/page/right-panel/fesm2022/index.mjs.map +1 -1
  316. package/components/page/right-panel/types/index.d.ts +14 -13
  317. package/components/page/top-nav/bundles/index.umd.js +91 -60
  318. package/components/page/top-nav/fesm2022/index.mjs +73 -47
  319. package/components/page/top-nav/fesm2022/index.mjs.map +1 -1
  320. package/components/page/top-nav/types/index.d.ts +11 -12
  321. package/components/prefab/bundles/index.umd.js +253 -173
  322. package/components/prefab/fesm2022/index.mjs +233 -158
  323. package/components/prefab/fesm2022/index.mjs.map +1 -1
  324. package/components/prefab/types/index.d.ts +35 -33
  325. package/core/bundles/index.umd.js +4466 -5642
  326. package/core/fesm2022/index.mjs +3997 -5202
  327. package/core/fesm2022/index.mjs.map +1 -1
  328. package/core/types/index.d.ts +1785 -1808
  329. package/http/bundles/index.umd.js +339 -413
  330. package/http/fesm2022/index.mjs +323 -402
  331. package/http/fesm2022/index.mjs.map +1 -1
  332. package/http/types/index.d.ts +107 -112
  333. package/locales/moment/am-et.js +73 -0
  334. package/locales/moment/bm.js +2 -0
  335. package/locales/moment/ca.js +1 -1
  336. package/locales/moment/de-at.js +29 -1
  337. package/locales/moment/de-ch.js +29 -1
  338. package/locales/moment/de.js +29 -1
  339. package/locales/moment/hu.js +3 -3
  340. package/locales/moment/id.js +12 -1
  341. package/locales/moment/ka.js +1 -1
  342. package/locales/moment/mk.js +0 -1
  343. package/locales/moment/nl-be.js +1 -1
  344. package/locales/moment/pl.js +1 -1
  345. package/locales/moment/ps.js +188 -0
  346. package/locales/moment/pt-br.js +14 -6
  347. package/locales/moment/sv.js +1 -1
  348. package/locales/moment/sw.js +56 -14
  349. package/locales/moment/uk.js +5 -4
  350. package/locales/moment/uz-latn.js +1 -1
  351. package/locales/moment/uz.js +1 -1
  352. package/npm-shrinkwrap.json +2 -2
  353. package/oAuth/bundles/index.umd.js +326 -483
  354. package/oAuth/fesm2022/index.mjs +267 -429
  355. package/oAuth/fesm2022/index.mjs.map +1 -1
  356. package/oAuth/types/index.d.ts +22 -26
  357. package/package-lock.json +2 -2
  358. package/package.json +1 -1
  359. package/runtime/base/bundles/index.umd.js +6380 -6093
  360. package/runtime/base/fesm2022/index.mjs +6368 -6107
  361. package/runtime/base/fesm2022/index.mjs.map +1 -1
  362. package/runtime/base/types/index.d.ts +1336 -1359
  363. package/runtime/dynamic/bundles/index.umd.js +1215 -851
  364. package/runtime/dynamic/fesm2022/index.mjs +1253 -898
  365. package/runtime/dynamic/fesm2022/index.mjs.map +1 -1
  366. package/runtime/dynamic/types/index.d.ts +140 -128
  367. package/scripts/datatable/datatable.js +20 -30
  368. package/security/bundles/index.umd.js +297 -438
  369. package/security/fesm2022/index.mjs +282 -443
  370. package/security/fesm2022/index.mjs.map +1 -1
  371. package/security/types/index.d.ts +127 -130
  372. package/swipey/bundles/index.umd.js +57 -48
  373. package/swipey/fesm2022/index.mjs +55 -50
  374. package/swipey/fesm2022/index.mjs.map +1 -1
  375. package/swipey/types/index.d.ts +19 -21
  376. package/transpiler/bundles/index.umd.js +1174 -811
  377. package/transpiler/fesm2022/index.mjs +1109 -757
  378. package/transpiler/fesm2022/index.mjs.map +1 -1
  379. package/transpiler/types/index.d.ts +32 -36
  380. package/variables/bundles/index.umd.js +2226 -3245
  381. package/variables/fesm2022/index.mjs +2117 -3237
  382. package/variables/fesm2022/index.mjs.map +1 -1
  383. package/variables/types/index.d.ts +410 -393
  384. package/build-task/.npmignore +0 -2
  385. package/components/advanced/carousel/.npmignore +0 -2
  386. package/components/advanced/custom/.npmignore +0 -2
  387. package/components/advanced/login/.npmignore +0 -2
  388. package/components/advanced/marquee/.npmignore +0 -2
  389. package/components/base/.npmignore +0 -2
  390. package/components/basic/anchor/.npmignore +0 -2
  391. package/components/basic/audio/.npmignore +0 -2
  392. package/components/basic/html/.npmignore +0 -2
  393. package/components/basic/icon/.npmignore +0 -2
  394. package/components/basic/iframe/.npmignore +0 -2
  395. package/components/basic/label/.npmignore +0 -2
  396. package/components/basic/picture/.npmignore +0 -2
  397. package/components/basic/progress/progress-bar/.npmignore +0 -2
  398. package/components/basic/progress/progress-circle/.npmignore +0 -2
  399. package/components/basic/progress/progress-utils/.npmignore +0 -2
  400. package/components/basic/rich-text-editor/.npmignore +0 -2
  401. package/components/basic/search/.npmignore +0 -2
  402. package/components/basic/spinner/.npmignore +0 -2
  403. package/components/basic/tree/.npmignore +0 -2
  404. package/components/basic/video/.npmignore +0 -2
  405. package/components/chart/.npmignore +0 -2
  406. package/components/containers/accordion/.npmignore +0 -2
  407. package/components/containers/layout-grid/.npmignore +0 -2
  408. package/components/containers/linear-layout/.npmignore +0 -2
  409. package/components/containers/panel/.npmignore +0 -2
  410. package/components/containers/tabs/.npmignore +0 -2
  411. package/components/containers/tile/.npmignore +0 -2
  412. package/components/containers/wizard/.npmignore +0 -2
  413. package/components/data/card/.npmignore +0 -2
  414. package/components/data/form/.npmignore +0 -2
  415. package/components/data/list/.npmignore +0 -2
  416. package/components/data/live-table/.npmignore +0 -2
  417. package/components/data/pagination/.npmignore +0 -2
  418. package/components/data/table/.npmignore +0 -2
  419. package/components/dialogs/alert-dialog/.npmignore +0 -2
  420. package/components/dialogs/confirm-dialog/.npmignore +0 -2
  421. package/components/dialogs/default/.npmignore +0 -2
  422. package/components/dialogs/design-dialog/.npmignore +0 -2
  423. package/components/dialogs/iframe-dialog/.npmignore +0 -2
  424. package/components/dialogs/login-dialog/.npmignore +0 -2
  425. package/components/dialogs/partial-dialog/.npmignore +0 -2
  426. package/components/input/base-form/.npmignore +0 -2
  427. package/components/input/base-form-custom/.npmignore +0 -2
  428. package/components/input/button/.npmignore +0 -2
  429. package/components/input/button-group/.npmignore +0 -2
  430. package/components/input/calendar/.npmignore +0 -2
  431. package/components/input/caption-position/.npmignore +0 -2
  432. package/components/input/checkbox/.npmignore +0 -2
  433. package/components/input/checkboxset/.npmignore +0 -2
  434. package/components/input/chips/.npmignore +0 -2
  435. package/components/input/color-picker/.npmignore +0 -2
  436. package/components/input/composite/.npmignore +0 -2
  437. package/components/input/currency/.npmignore +0 -2
  438. package/components/input/dataset-aware-form/.npmignore +0 -2
  439. package/components/input/epoch/base-date-time/.npmignore +0 -2
  440. package/components/input/epoch/date/.npmignore +0 -2
  441. package/components/input/epoch/date-time/.npmignore +0 -2
  442. package/components/input/epoch/date-time-picker/.npmignore +0 -2
  443. package/components/input/epoch/picker/.npmignore +0 -2
  444. package/components/input/epoch/time/.npmignore +0 -2
  445. package/components/input/file-upload/.npmignore +0 -2
  446. package/components/input/number/.npmignore +0 -2
  447. package/components/input/radioset/.npmignore +0 -2
  448. package/components/input/rating/.npmignore +0 -2
  449. package/components/input/select/.npmignore +0 -2
  450. package/components/input/slider/.npmignore +0 -2
  451. package/components/input/switch/.npmignore +0 -2
  452. package/components/input/text/.npmignore +0 -2
  453. package/components/input/textarea/.npmignore +0 -2
  454. package/components/navigation/breadcrumb/.npmignore +0 -2
  455. package/components/navigation/menu/.npmignore +0 -2
  456. package/components/navigation/navbar/.npmignore +0 -2
  457. package/components/navigation/popover/.npmignore +0 -2
  458. package/components/page/default/.npmignore +0 -2
  459. package/components/page/footer/.npmignore +0 -2
  460. package/components/page/header/.npmignore +0 -2
  461. package/components/page/left-panel/.npmignore +0 -2
  462. package/components/page/right-panel/.npmignore +0 -2
  463. package/components/page/top-nav/.npmignore +0 -2
  464. package/components/prefab/.npmignore +0 -2
  465. package/core/.npmignore +0 -2
  466. package/http/.npmignore +0 -2
  467. package/oAuth/.npmignore +0 -2
  468. package/runtime/base/.npmignore +0 -2
  469. package/runtime/dynamic/.npmignore +0 -2
  470. package/security/.npmignore +0 -2
  471. package/swipey/.npmignore +0 -2
  472. package/transpiler/.npmignore +0 -2
  473. package/variables/.npmignore +0 -2
@@ -1,459 +1,642 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/platform-browser'), require('@wm/core'), require('@wm/components/base'), require('tslib')) :
3
- typeof define === 'function' && define.amd ? define(['exports', '@angular/core', '@angular/platform-browser', '@wm/core', '@wm/components/base', 'tslib'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.wm = global.wm || {}, global.wm.components = global.wm.components || {}, global.wm.components.page = {}), global.ng.core, global.ng.platformBrowser, global.wm.core, global.wm.components.base, global.tslib));
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/platform-browser'), require('@wm/core'), require('@wm/components/base'), require('tslib')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', '@angular/core', '@angular/platform-browser', '@wm/core', '@wm/components/base', 'tslib'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.wm = global.wm || {}, global.wm.components = global.wm.components || {}, global.wm.components.page = {}), global.ng.core, global.ng.platformBrowser, global.wm.core, global.wm.components.base, global.tslib));
5
5
  })(this, (function (exports, i0, i1, i2, base, tslib) { 'use strict';
6
6
 
7
- function _interopNamespaceDefault(e) {
8
- var n = Object.create(null);
9
- if (e) {
10
- Object.keys(e).forEach(function (k) {
11
- if (k !== 'default') {
12
- var d = Object.getOwnPropertyDescriptor(e, k);
13
- Object.defineProperty(n, k, d.get ? d : {
14
- enumerable: true,
15
- get: function () { return e[k]; }
16
- });
17
- }
18
- });
19
- }
20
- n.default = e;
21
- return Object.freeze(n);
22
- }
7
+ function _interopNamespaceDefault(e) {
8
+ var n = Object.create(null);
9
+ if (e) {
10
+ Object.keys(e).forEach(function (k) {
11
+ if (k !== 'default') {
12
+ var d = Object.getOwnPropertyDescriptor(e, k);
13
+ Object.defineProperty(n, k, d.get ? d : {
14
+ enumerable: true,
15
+ get: function () { return e[k]; }
16
+ });
17
+ }
18
+ });
19
+ }
20
+ n.default = e;
21
+ return Object.freeze(n);
22
+ }
23
23
 
24
- var i0__namespace = /*#__PURE__*/_interopNamespaceDefault(i0);
25
- var i1__namespace = /*#__PURE__*/_interopNamespaceDefault(i1);
26
- var i2__namespace = /*#__PURE__*/_interopNamespaceDefault(i2);
24
+ var i0__namespace = /*#__PURE__*/_interopNamespaceDefault(i0);
25
+ var i1__namespace = /*#__PURE__*/_interopNamespaceDefault(i1);
26
+ var i2__namespace = /*#__PURE__*/_interopNamespaceDefault(i2);
27
27
 
28
- const registerProps$5 = () => {
29
- base.register('wm-page', new Map([
30
- ['cache', { value: false, ...base.PROP_BOOLEAN }],
31
- ['refreshdataonattach', { value: true, ...base.PROP_BOOLEAN }],
32
- ['pagetitle', base.PROP_STRING],
33
- ['hint', base.PROP_STRING],
34
- ['arialabel', base.PROP_STRING]
35
- ]));
36
- };
28
+ const registerProps$5 = () => {
29
+ base.register("wm-page", /* @__PURE__ */ new Map([
30
+ ["cache", {
31
+ value: false,
32
+ ...base.PROP_BOOLEAN
33
+ }],
34
+ ["refreshdataonattach", {
35
+ value: true,
36
+ ...base.PROP_BOOLEAN
37
+ }],
38
+ ["pagetitle", base.PROP_STRING],
39
+ ["hint", base.PROP_STRING],
40
+ ["arialabel", base.PROP_STRING]
41
+ ]));
42
+ };
43
+ const WIDGET_CONFIG$5 = {
44
+ widgetType: "wm-page",
45
+ hostClass: "app-page container"
46
+ };
47
+ var PageDirective = class PageDirective extends base.StylableComponent {
48
+ static {
49
+ this.initializeProps = registerProps$5();
50
+ }
51
+ onPropertyChange(key, nv, ov) {
52
+ if (key === "pagetitle") this.titleService.setTitle(nv);
53
+ else super.onPropertyChange(key, nv, ov);
54
+ }
55
+ constructor(inj, titleService, viewport, explicitContext) {
56
+ super(inj, WIDGET_CONFIG$5, explicitContext);
57
+ this.titleService = titleService;
58
+ this.viewport = viewport;
59
+ this._eventNotifier = new i2.EventNotifier(false);
60
+ this.refreshdataonattach = true;
61
+ }
62
+ notify(eventName, ...data) {
63
+ this._eventNotifier.notify(eventName, ...data);
64
+ }
65
+ subscribe(eventName, callback) {
66
+ return this._eventNotifier.subscribe(eventName, callback);
67
+ }
68
+ ngAfterViewInit() {
69
+ setTimeout(() => {
70
+ this._eventNotifier.start();
71
+ base.updateDeviceView(this.nativeElement, this.getAppInstance().isTabletApplicationType);
72
+ }, 1);
73
+ this.registerDestroyListener(this.viewport.subscribe("resize", (args) => {
74
+ this.invokeEventCallback("resize", {
75
+ $event: args.$event,
76
+ widget: this,
77
+ data: args.data
78
+ });
79
+ }));
80
+ this.registerDestroyListener(this.viewport.subscribe("orientationchange", (args) => {
81
+ this.invokeEventCallback("orientationchange", {
82
+ $event: args.$event,
83
+ widget: this,
84
+ data: args.data
85
+ });
86
+ }));
87
+ }
88
+ ngOnAttach() {
89
+ this.titleService.setTitle(this.pagetitle);
90
+ this.invokeEventCallback("attach", { widget: this });
91
+ this.notify("attach", { refreshData: this.refreshdataonattach });
92
+ }
93
+ ngOnDetach() {
94
+ this.invokeEventCallback("detach", { widget: this });
95
+ this.notify("detach");
96
+ }
97
+ ngOnDestroy() {
98
+ super.ngOnDestroy();
99
+ this.invokeEventCallback("destroy", { widget: this });
100
+ this._eventNotifier.destroy();
101
+ }
102
+ static {
103
+ this.ɵfac = i0__namespace.ɵɵngDeclareFactory({
104
+ minVersion: "12.0.0",
105
+ version: "22.2.1",
106
+ ngImport: i0__namespace,
107
+ type: PageDirective,
108
+ deps: [
109
+ { token: i0__namespace.Injector },
110
+ { token: i1__namespace.Title },
111
+ { token: i2__namespace.Viewport },
112
+ {
113
+ token: "EXPLICIT_CONTEXT",
114
+ optional: true
115
+ }
116
+ ],
117
+ target: i0__namespace.ɵɵFactoryTarget.Directive
118
+ });
119
+ }
120
+ static {
121
+ this.ɵdir = i0__namespace.ɵɵngDeclareDirective({
122
+ minVersion: "14.0.0",
123
+ version: "22.2.1",
124
+ type: PageDirective,
125
+ isStandalone: true,
126
+ selector: "[wmPage]",
127
+ providers: [base.provideAsWidgetRef(PageDirective)],
128
+ exportAs: ["wmPage"],
129
+ usesInheritance: true,
130
+ ngImport: i0__namespace
131
+ });
132
+ }
133
+ };
134
+ i0__namespace.ɵɵngDeclareClassMetadata({
135
+ minVersion: "12.0.0",
136
+ version: "22.2.1",
137
+ ngImport: i0__namespace,
138
+ type: PageDirective,
139
+ decorators: [{
140
+ type: i0.Directive,
141
+ args: [{
142
+ standalone: true,
143
+ selector: "[wmPage]",
144
+ providers: [base.provideAsWidgetRef(PageDirective)],
145
+ exportAs: "wmPage"
146
+ }]
147
+ }],
148
+ ctorParameters: () => [
149
+ { type: i0__namespace.Injector },
150
+ { type: i1__namespace.Title },
151
+ { type: i2__namespace.Viewport },
152
+ {
153
+ type: void 0,
154
+ decorators: [{
155
+ type: i0.Inject,
156
+ args: ["EXPLICIT_CONTEXT"]
157
+ }, { type: i0.Optional }]
158
+ }
159
+ ]
160
+ });
161
+ const registerProps$4 = () => {
162
+ base.register("wm-layout", /* @__PURE__ */ new Map([]));
163
+ };
164
+ const WIDGET_CONFIG$4 = {
165
+ widgetType: "wm-layout",
166
+ hostClass: "app-page container"
167
+ };
168
+ var LayoutDirective = class LayoutDirective extends base.StylableComponent {
169
+ static {
170
+ this.initializeProps = registerProps$4();
171
+ }
172
+ constructor(inj, explicitContext) {
173
+ super(inj, WIDGET_CONFIG$4, explicitContext);
174
+ this._eventNotifier = new i2.EventNotifier(false);
175
+ }
176
+ notify(eventName, ...data) {
177
+ this._eventNotifier.notify(eventName, ...data);
178
+ }
179
+ ngAfterViewInit() {
180
+ setTimeout(() => {
181
+ base.updateDeviceView(this.nativeElement, this.getAppInstance().isTabletApplicationType);
182
+ }, 1);
183
+ }
184
+ ngOnDestroy() {
185
+ if (this._eventNotifier) {
186
+ this._eventNotifier.destroy();
187
+ this._eventNotifier = null;
188
+ }
189
+ super.ngOnDestroy();
190
+ }
191
+ static {
192
+ this.ɵfac = i0__namespace.ɵɵngDeclareFactory({
193
+ minVersion: "12.0.0",
194
+ version: "22.2.1",
195
+ ngImport: i0__namespace,
196
+ type: LayoutDirective,
197
+ deps: [{ token: i0__namespace.Injector }, {
198
+ token: "EXPLICIT_CONTEXT",
199
+ optional: true
200
+ }],
201
+ target: i0__namespace.ɵɵFactoryTarget.Directive
202
+ });
203
+ }
204
+ static {
205
+ this.ɵdir = i0__namespace.ɵɵngDeclareDirective({
206
+ minVersion: "14.0.0",
207
+ version: "22.2.1",
208
+ type: LayoutDirective,
209
+ isStandalone: true,
210
+ selector: "[wmLayout]",
211
+ providers: [base.provideAsWidgetRef(LayoutDirective)],
212
+ exportAs: ["wmLayout"],
213
+ usesInheritance: true,
214
+ ngImport: i0__namespace
215
+ });
216
+ }
217
+ };
218
+ i0__namespace.ɵɵngDeclareClassMetadata({
219
+ minVersion: "12.0.0",
220
+ version: "22.2.1",
221
+ ngImport: i0__namespace,
222
+ type: LayoutDirective,
223
+ decorators: [{
224
+ type: i0.Directive,
225
+ args: [{
226
+ standalone: true,
227
+ selector: "[wmLayout]",
228
+ providers: [base.provideAsWidgetRef(LayoutDirective)],
229
+ exportAs: "wmLayout"
230
+ }]
231
+ }],
232
+ ctorParameters: () => [{ type: i0__namespace.Injector }, {
233
+ type: void 0,
234
+ decorators: [{
235
+ type: i0.Inject,
236
+ args: ["EXPLICIT_CONTEXT"]
237
+ }, { type: i0.Optional }]
238
+ }]
239
+ });
240
+ const registerProps$3 = () => {
241
+ base.register("wm-page-content", new Map([
242
+ ["class", base.PROP_STRING],
243
+ ["columnwidth", base.PROP_NUMBER],
244
+ ["content", base.PROP_STRING],
245
+ ["name", base.PROP_STRING],
246
+ ["pulltorefresh", {
247
+ value: false,
248
+ ...base.PROP_BOOLEAN
249
+ }],
250
+ ...base.AUTO_LAYOUT_PROPS,
251
+ ["direction", {
252
+ value: "column",
253
+ ...base.PROP_STRING
254
+ }],
255
+ ["alignment", {
256
+ value: "top-left",
257
+ ...base.PROP_STRING
258
+ }]
259
+ ]));
260
+ };
261
+ const WIDGET_CONFIG$3 = {
262
+ widgetType: "wm-page-content",
263
+ hostClass: "app-page-content app-content-column"
264
+ };
265
+ exports.PageContentComponent = class PageContentComponent extends base.StylableComponent {
266
+ static {
267
+ this.initializeProps = registerProps$3();
268
+ }
269
+ constructor(inj, app, explicitContext) {
270
+ super(inj, WIDGET_CONFIG$3, explicitContext);
271
+ this.app = app;
272
+ base.styler(this.nativeElement, this, base.APPLY_STYLES_TYPE.CONTAINER);
273
+ this.registerDestroyListener(this.app.subscribe("pullToRefresh:enable", () => {
274
+ this.childPullToRefresh = true;
275
+ this.initPullToRefresh();
276
+ }));
277
+ }
278
+ onPropertyChange(key, nv, ov) {
279
+ if (key === "columnwidth") i2.switchClass(this.nativeElement, `col-md-${nv} col-sm-${nv}`, `col-md-${ov} col-sm-${ov}`);
280
+ else if (key === "pulltorefresh" && nv) setTimeout(() => {
281
+ this.initPullToRefresh();
282
+ });
283
+ else super.onPropertyChange(key, nv, ov);
284
+ }
285
+ initPullToRefresh() {
286
+ const hasPullToRefreshEvent = this.hasEventCallback("pulltorefresh");
287
+ if (!this.pullToRefreshIns && (this.childPullToRefresh || hasPullToRefreshEvent) && this.pulltorefresh) this.pullToRefreshIns = new base.PullToRefresh($(this.nativeElement), this.app, () => {
288
+ if (hasPullToRefreshEvent) this.invokeEventCallback("pulltorefresh");
289
+ else this.app.notify("pulltorefresh");
290
+ });
291
+ }
292
+ ngOnDestroy() {
293
+ if (this.pullToRefreshIns?.destroy) {
294
+ this.pullToRefreshIns.destroy();
295
+ this.pullToRefreshIns = null;
296
+ }
297
+ super.ngOnDestroy();
298
+ }
299
+ static {
300
+ this.ɵfac = i0__namespace.ɵɵngDeclareFactory({
301
+ minVersion: "12.0.0",
302
+ version: "22.2.1",
303
+ ngImport: i0__namespace,
304
+ type: PageContentComponent,
305
+ deps: [
306
+ { token: i0__namespace.Injector },
307
+ { token: i2__namespace.App },
308
+ {
309
+ token: "EXPLICIT_CONTEXT",
310
+ optional: true
311
+ }
312
+ ],
313
+ target: i0__namespace.ɵɵFactoryTarget.Component
314
+ });
315
+ }
316
+ static {
317
+ this.ɵcmp = i0__namespace.ɵɵngDeclareComponent({
318
+ minVersion: "14.0.0",
319
+ version: "22.2.1",
320
+ type: PageContentComponent,
321
+ isStandalone: true,
322
+ selector: "[wmPageContent]",
323
+ providers: [base.provideAsWidgetRef(PageContentComponent)],
324
+ usesInheritance: true,
325
+ ngImport: i0__namespace,
326
+ template: "<ng-content></ng-content>",
327
+ changeDetection: i0__namespace.ChangeDetectionStrategy.Eager
328
+ });
329
+ }
330
+ };
331
+ exports.PageContentComponent = tslib.__decorate([base.AutoLayout(), tslib.__metadata("design:paramtypes", [
332
+ i0.Injector,
333
+ i2.App,
334
+ Object
335
+ ])], exports.PageContentComponent);
336
+ i0__namespace.ɵɵngDeclareClassMetadata({
337
+ minVersion: "12.0.0",
338
+ version: "22.2.1",
339
+ ngImport: i0__namespace,
340
+ type: exports.PageContentComponent,
341
+ decorators: [{
342
+ type: i0.Component,
343
+ args: [{
344
+ changeDetection: i0.ChangeDetectionStrategy.Eager,
345
+ standalone: true,
346
+ selector: "[wmPageContent]",
347
+ providers: [base.provideAsWidgetRef(exports.PageContentComponent)],
348
+ template: "<ng-content></ng-content>"
349
+ }]
350
+ }],
351
+ ctorParameters: () => [
352
+ { type: i0__namespace.Injector },
353
+ { type: i2__namespace.App },
354
+ {
355
+ type: void 0,
356
+ decorators: [{
357
+ type: i0.Inject,
358
+ args: ["EXPLICIT_CONTEXT"]
359
+ }, { type: i0.Optional }]
360
+ }
361
+ ]
362
+ });
363
+ const registerProps$2 = () => {
364
+ base.register("wm-content", /* @__PURE__ */ new Map([["name", base.PROP_STRING], ["class", base.PROP_STRING]]));
365
+ };
366
+ const WIDGET_CONFIG$2 = {
367
+ widgetType: "wm-content",
368
+ hostClass: "app-content clearfix"
369
+ };
370
+ var ContentComponent = class ContentComponent extends base.StylableComponent {
371
+ static {
372
+ this.initializeProps = registerProps$2();
373
+ }
374
+ constructor(inj, explicitContext) {
375
+ super(inj, WIDGET_CONFIG$2, explicitContext);
376
+ base.styler(this.nativeElement, this);
377
+ }
378
+ static {
379
+ this.ɵfac = i0__namespace.ɵɵngDeclareFactory({
380
+ minVersion: "12.0.0",
381
+ version: "22.2.1",
382
+ ngImport: i0__namespace,
383
+ type: ContentComponent,
384
+ deps: [{ token: i0__namespace.Injector }, {
385
+ token: "EXPLICIT_CONTEXT",
386
+ optional: true
387
+ }],
388
+ target: i0__namespace.ɵɵFactoryTarget.Component
389
+ });
390
+ }
391
+ static {
392
+ this.ɵcmp = i0__namespace.ɵɵngDeclareComponent({
393
+ minVersion: "14.0.0",
394
+ version: "22.2.1",
395
+ type: ContentComponent,
396
+ isStandalone: true,
397
+ selector: "[wmContent]",
398
+ providers: [base.provideAsWidgetRef(ContentComponent)],
399
+ usesInheritance: true,
400
+ ngImport: i0__namespace,
401
+ template: "<div class=\"row app-content-row clearfix\">\n <ng-content></ng-content>\n</div>",
402
+ changeDetection: i0__namespace.ChangeDetectionStrategy.Eager
403
+ });
404
+ }
405
+ };
406
+ i0__namespace.ɵɵngDeclareClassMetadata({
407
+ minVersion: "12.0.0",
408
+ version: "22.2.1",
409
+ ngImport: i0__namespace,
410
+ type: ContentComponent,
411
+ decorators: [{
412
+ type: i0.Component,
413
+ args: [{
414
+ changeDetection: i0.ChangeDetectionStrategy.Eager,
415
+ standalone: true,
416
+ selector: "[wmContent]",
417
+ providers: [base.provideAsWidgetRef(ContentComponent)],
418
+ template: "<div class=\"row app-content-row clearfix\">\n <ng-content></ng-content>\n</div>"
419
+ }]
420
+ }],
421
+ ctorParameters: () => [{ type: i0__namespace.Injector }, {
422
+ type: void 0,
423
+ decorators: [{
424
+ type: i0.Inject,
425
+ args: ["EXPLICIT_CONTEXT"]
426
+ }, { type: i0.Optional }]
427
+ }]
428
+ });
429
+ const registerProps$1 = () => {
430
+ base.register("wm-spa-page", /* @__PURE__ */ new Map([
431
+ ["cache", {
432
+ value: false,
433
+ ...base.PROP_BOOLEAN
434
+ }],
435
+ ["refreshdataonattach", {
436
+ value: true,
437
+ ...base.PROP_BOOLEAN
438
+ }],
439
+ ["pagetitle", base.PROP_STRING],
440
+ ["hint", base.PROP_STRING]
441
+ ]));
442
+ };
443
+ const WIDGET_CONFIG$1 = {
444
+ widgetType: "wm-spa-page",
445
+ hostClass: "app-spa-page"
446
+ };
447
+ var SpaPageDirective = class SpaPageDirective extends base.StylableComponent {
448
+ static {
449
+ this.initializeProps = registerProps$1();
450
+ }
451
+ onPropertyChange(key, nv, ov) {
452
+ if (key === "pagetitle") this.titleService.setTitle(nv);
453
+ else super.onPropertyChange(key, nv, ov);
454
+ }
455
+ constructor(inj, titleService, viewport, explicitContext) {
456
+ super(inj, WIDGET_CONFIG$1, explicitContext);
457
+ this.titleService = titleService;
458
+ this.viewport = viewport;
459
+ this._eventNotifier = new i2.EventNotifier(false);
460
+ this.refreshdataonattach = true;
461
+ }
462
+ notify(eventName, ...data) {
463
+ this._eventNotifier.notify(eventName, ...data);
464
+ }
465
+ subscribe(eventName, callback) {
466
+ return this._eventNotifier.subscribe(eventName, callback);
467
+ }
468
+ ngAfterViewInit() {
469
+ setTimeout(() => {
470
+ this._eventNotifier.start();
471
+ base.updateDeviceView(this.nativeElement, this.getAppInstance().isTabletApplicationType);
472
+ }, 1);
473
+ this.registerDestroyListener(this.viewport.subscribe("resize", (args) => {
474
+ this.invokeEventCallback("resize", {
475
+ $event: args.$event,
476
+ widget: this,
477
+ data: args.data
478
+ });
479
+ }));
480
+ this.registerDestroyListener(this.viewport.subscribe("orientationchange", (args) => {
481
+ this.invokeEventCallback("orientationchange", {
482
+ $event: args.$event,
483
+ widget: this,
484
+ data: args.data
485
+ });
486
+ }));
487
+ }
488
+ ngOnAttach() {
489
+ this.titleService.setTitle(this.pagetitle);
490
+ this.invokeEventCallback("attach", { widget: this });
491
+ this.notify("attach", { refreshData: this.refreshdataonattach });
492
+ }
493
+ ngOnDetach() {
494
+ this.invokeEventCallback("detach", { widget: this });
495
+ this.notify("detach");
496
+ }
497
+ ngOnDestroy() {
498
+ this.invokeEventCallback("destroy", { widget: this });
499
+ this._eventNotifier.destroy();
500
+ }
501
+ static {
502
+ this.ɵfac = i0__namespace.ɵɵngDeclareFactory({
503
+ minVersion: "12.0.0",
504
+ version: "22.2.1",
505
+ ngImport: i0__namespace,
506
+ type: SpaPageDirective,
507
+ deps: [
508
+ { token: i0__namespace.Injector },
509
+ { token: i1__namespace.Title },
510
+ { token: i2__namespace.Viewport },
511
+ {
512
+ token: "EXPLICIT_CONTEXT",
513
+ optional: true
514
+ }
515
+ ],
516
+ target: i0__namespace.ɵɵFactoryTarget.Directive
517
+ });
518
+ }
519
+ static {
520
+ this.ɵdir = i0__namespace.ɵɵngDeclareDirective({
521
+ minVersion: "14.0.0",
522
+ version: "22.2.1",
523
+ type: SpaPageDirective,
524
+ isStandalone: true,
525
+ selector: "[wmSpaPage]",
526
+ providers: [base.provideAsWidgetRef(SpaPageDirective)],
527
+ exportAs: ["wmSpaPage"],
528
+ usesInheritance: true,
529
+ ngImport: i0__namespace
530
+ });
531
+ }
532
+ };
533
+ i0__namespace.ɵɵngDeclareClassMetadata({
534
+ minVersion: "12.0.0",
535
+ version: "22.2.1",
536
+ ngImport: i0__namespace,
537
+ type: SpaPageDirective,
538
+ decorators: [{
539
+ type: i0.Directive,
540
+ args: [{
541
+ standalone: true,
542
+ selector: "[wmSpaPage]",
543
+ providers: [base.provideAsWidgetRef(SpaPageDirective)],
544
+ exportAs: "wmSpaPage"
545
+ }]
546
+ }],
547
+ ctorParameters: () => [
548
+ { type: i0__namespace.Injector },
549
+ { type: i1__namespace.Title },
550
+ { type: i2__namespace.Viewport },
551
+ {
552
+ type: void 0,
553
+ decorators: [{
554
+ type: i0.Inject,
555
+ args: ["EXPLICIT_CONTEXT"]
556
+ }, { type: i0.Optional }]
557
+ }
558
+ ]
559
+ });
560
+ const registerProps = () => {
561
+ base.register("wm-router-outlet", /* @__PURE__ */ new Map([["columnwidth", base.PROP_NUMBER], ["name", base.PROP_STRING]]));
562
+ };
563
+ const WIDGET_CONFIG = {
564
+ widgetType: "wm-router-outlet",
565
+ hostClass: "app-content-column-wrapper"
566
+ };
567
+ var RouterOutletDirective = class RouterOutletDirective extends base.StylableComponent {
568
+ static {
569
+ this.initializeProps = registerProps();
570
+ }
571
+ constructor(inj, explicitContext, app) {
572
+ super(inj, WIDGET_CONFIG, explicitContext);
573
+ this.app = app;
574
+ this.isPrism = this.app.isPrism;
575
+ }
576
+ onPropertyChange(key, nv, ov) {
577
+ if (key === "columnwidth" && !this.isPrism) i2.switchClass(this.nativeElement, `col-md-${nv} col-sm-${nv}`, `col-md-${ov} col-sm-${ov}`);
578
+ else super.onPropertyChange(key, nv, ov);
579
+ }
580
+ static {
581
+ this.ɵfac = i0__namespace.ɵɵngDeclareFactory({
582
+ minVersion: "12.0.0",
583
+ version: "22.2.1",
584
+ ngImport: i0__namespace,
585
+ type: RouterOutletDirective,
586
+ deps: [
587
+ { token: i0__namespace.Injector },
588
+ {
589
+ token: "EXPLICIT_CONTEXT",
590
+ optional: true
591
+ },
592
+ { token: i2__namespace.App }
593
+ ],
594
+ target: i0__namespace.ɵɵFactoryTarget.Directive
595
+ });
596
+ }
597
+ static {
598
+ this.ɵdir = i0__namespace.ɵɵngDeclareDirective({
599
+ minVersion: "14.0.0",
600
+ version: "22.2.1",
601
+ type: RouterOutletDirective,
602
+ isStandalone: true,
603
+ selector: "[wmRouterOutlet]",
604
+ providers: [base.provideAsWidgetRef(RouterOutletDirective)],
605
+ usesInheritance: true,
606
+ ngImport: i0__namespace
607
+ });
608
+ }
609
+ };
610
+ i0__namespace.ɵɵngDeclareClassMetadata({
611
+ minVersion: "12.0.0",
612
+ version: "22.2.1",
613
+ ngImport: i0__namespace,
614
+ type: RouterOutletDirective,
615
+ decorators: [{
616
+ type: i0.Directive,
617
+ args: [{
618
+ standalone: true,
619
+ selector: "[wmRouterOutlet]",
620
+ providers: [base.provideAsWidgetRef(RouterOutletDirective)]
621
+ }]
622
+ }],
623
+ ctorParameters: () => [
624
+ { type: i0__namespace.Injector },
625
+ {
626
+ type: void 0,
627
+ decorators: [{
628
+ type: i0.Inject,
629
+ args: ["EXPLICIT_CONTEXT"]
630
+ }, { type: i0.Optional }]
631
+ },
632
+ { type: i2__namespace.App }
633
+ ]
634
+ });
37
635
 
38
- const DEFAULT_CLS$5 = 'app-page container';
39
- const WIDGET_CONFIG$5 = { widgetType: 'wm-page', hostClass: DEFAULT_CLS$5 };
40
- class PageDirective extends base.StylableComponent {
41
- static { this.initializeProps = registerProps$5(); }
42
- onPropertyChange(key, nv, ov) {
43
- if (key === 'pagetitle') {
44
- this.titleService.setTitle(nv);
45
- }
46
- else {
47
- super.onPropertyChange(key, nv, ov);
48
- }
49
- }
50
- constructor(inj, titleService, viewport, explicitContext) {
51
- super(inj, WIDGET_CONFIG$5, explicitContext);
52
- this.titleService = titleService;
53
- this.viewport = viewport;
54
- this._eventNotifier = new i2.EventNotifier(false);
55
- this.refreshdataonattach = true;
56
- }
57
- /**
58
- * A child component can notify page using this method. Notified event will be passed to
59
- * subscribed children only after page initialization.
60
- *
61
- * @param {string} eventName
62
- * @param data
63
- */
64
- notify(eventName, ...data) {
65
- this._eventNotifier.notify(eventName, ...data);
66
- }
67
- /**
68
- * The main purpose of this function is to provide communication between page children objects.
69
- * Child component can subscribe for an event that will be emitted by another child component.
70
- *
71
- * @param eventName
72
- * @param {(data: any) => void} callback
73
- * @returns {any}
74
- */
75
- subscribe(eventName, callback) {
76
- return this._eventNotifier.subscribe(eventName, callback);
77
- }
78
- ngAfterViewInit() {
79
- setTimeout(() => {
80
- this._eventNotifier.start();
81
- base.updateDeviceView(this.nativeElement, this.getAppInstance().isTabletApplicationType);
82
- }, 1);
83
- this.registerDestroyListener(this.viewport.subscribe("resize" /* ViewportEvent.RESIZE */, args => {
84
- this.invokeEventCallback('resize', { $event: args.$event, widget: this, data: args.data });
85
- }));
86
- this.registerDestroyListener(this.viewport.subscribe("orientationchange" /* ViewportEvent.ORIENTATION_CHANGE */, args => {
87
- this.invokeEventCallback('orientationchange', { $event: args.$event, widget: this, data: args.data });
88
- }));
89
- }
90
- ngOnAttach() {
91
- this.titleService.setTitle(this.pagetitle);
92
- this.invokeEventCallback('attach', { widget: this });
93
- this.notify('attach', {
94
- refreshData: this.refreshdataonattach
95
- });
96
- }
97
- ngOnDetach() {
98
- this.invokeEventCallback('detach', { widget: this });
99
- this.notify('detach');
100
- }
101
- ngOnDestroy() {
102
- super.ngOnDestroy();
103
- this.invokeEventCallback('destroy', { widget: this });
104
- this._eventNotifier.destroy();
105
- }
106
- static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: PageDirective, deps: [{ token: i0__namespace.Injector }, { token: i1__namespace.Title }, { token: i2__namespace.Viewport }, { token: 'EXPLICIT_CONTEXT', optional: true }], target: i0__namespace.ɵɵFactoryTarget.Directive }); }
107
- static { this.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.21", type: PageDirective, isStandalone: true, selector: "[wmPage]", providers: [
108
- base.provideAsWidgetRef(PageDirective)
109
- ], exportAs: ["wmPage"], usesInheritance: true, ngImport: i0__namespace }); }
110
- }
111
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: PageDirective, decorators: [{
112
- type: i0.Directive,
113
- args: [{
114
- standalone: true,
115
- selector: '[wmPage]',
116
- providers: [
117
- base.provideAsWidgetRef(PageDirective)
118
- ],
119
- exportAs: 'wmPage'
120
- }]
121
- }], ctorParameters: () => [{ type: i0__namespace.Injector }, { type: i1__namespace.Title }, { type: i2__namespace.Viewport }, { type: undefined, decorators: [{
122
- type: i0.Inject,
123
- args: ['EXPLICIT_CONTEXT']
124
- }, {
125
- type: i0.Optional
126
- }] }] });
127
-
128
- const registerProps$4 = () => {
129
- base.register('wm-layout', new Map([]));
130
- };
131
-
132
- const DEFAULT_CLS$4 = 'app-page container';
133
- const WIDGET_CONFIG$4 = { widgetType: 'wm-layout', hostClass: DEFAULT_CLS$4 };
134
- class LayoutDirective extends base.StylableComponent {
135
- static { this.initializeProps = registerProps$4(); }
136
- constructor(inj, explicitContext) {
137
- super(inj, WIDGET_CONFIG$4, explicitContext);
138
- this._eventNotifier = new i2.EventNotifier(false);
139
- }
140
- /**
141
- * A child component can notify page using this method. Notified event will be passed to
142
- * subscribed children only after page initialization.
143
- *
144
- * @param {string} eventName
145
- * @param data
146
- */
147
- notify(eventName, ...data) {
148
- this._eventNotifier.notify(eventName, ...data);
149
- }
150
- ngAfterViewInit() {
151
- setTimeout(() => {
152
- base.updateDeviceView(this.nativeElement, this.getAppInstance().isTabletApplicationType);
153
- }, 1);
154
- }
155
- ngOnDestroy() {
156
- // MEMORY LEAK FIX: Destroy EventNotifier to release subscribers
157
- if (this._eventNotifier) {
158
- this._eventNotifier.destroy();
159
- this._eventNotifier = null;
160
- }
161
- super.ngOnDestroy();
162
- }
163
- static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: LayoutDirective, deps: [{ token: i0__namespace.Injector }, { token: 'EXPLICIT_CONTEXT', optional: true }], target: i0__namespace.ɵɵFactoryTarget.Directive }); }
164
- static { this.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.21", type: LayoutDirective, isStandalone: true, selector: "[wmLayout]", providers: [
165
- base.provideAsWidgetRef(LayoutDirective)
166
- ], exportAs: ["wmLayout"], usesInheritance: true, ngImport: i0__namespace }); }
167
- }
168
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: LayoutDirective, decorators: [{
169
- type: i0.Directive,
170
- args: [{
171
- standalone: true,
172
- selector: '[wmLayout]',
173
- providers: [
174
- base.provideAsWidgetRef(LayoutDirective)
175
- ],
176
- exportAs: 'wmLayout'
177
- }]
178
- }], ctorParameters: () => [{ type: i0__namespace.Injector }, { type: undefined, decorators: [{
179
- type: i0.Inject,
180
- args: ['EXPLICIT_CONTEXT']
181
- }, {
182
- type: i0.Optional
183
- }] }] });
184
-
185
- const registerProps$3 = () => {
186
- base.register('wm-page-content', new Map([
187
- ['class', base.PROP_STRING],
188
- ['columnwidth', base.PROP_NUMBER],
189
- ['content', base.PROP_STRING],
190
- ['name', base.PROP_STRING],
191
- ['pulltorefresh', { value: false, ...base.PROP_BOOLEAN }],
192
- ...base.AUTO_LAYOUT_PROPS,
193
- ['direction', { value: 'column', ...base.PROP_STRING }],
194
- ['alignment', { value: 'top-left', ...base.PROP_STRING }]
195
- ]));
196
- };
197
-
198
- const DEFAULT_CLS$3 = 'app-page-content app-content-column';
199
- const WIDGET_CONFIG$3 = { widgetType: 'wm-page-content', hostClass: DEFAULT_CLS$3 };
200
- exports.PageContentComponent = class PageContentComponent extends base.StylableComponent {
201
- static { this.initializeProps = registerProps$3(); }
202
- constructor(inj, app, explicitContext) {
203
- super(inj, WIDGET_CONFIG$3, explicitContext);
204
- this.app = app;
205
- base.styler(this.nativeElement, this, base.APPLY_STYLES_TYPE.CONTAINER);
206
- this.registerDestroyListener(this.app.subscribe('pullToRefresh:enable', () => {
207
- this.childPullToRefresh = true;
208
- this.initPullToRefresh();
209
- }));
210
- }
211
- onPropertyChange(key, nv, ov) {
212
- if (key === 'columnwidth') {
213
- i2.switchClass(this.nativeElement, `col-md-${nv} col-sm-${nv}`, `col-md-${ov} col-sm-${ov}`);
214
- }
215
- else if (key === 'pulltorefresh' && nv) {
216
- // creating instance after timeout as the smoothscroll styles where getting added on pull refresh-container
217
- setTimeout(() => {
218
- this.initPullToRefresh();
219
- });
220
- }
221
- else {
222
- super.onPropertyChange(key, nv, ov);
223
- }
224
- }
225
- // when list component is ready, pulltorefresh instance is created and this appends pullToRefresh element on the page content.
226
- initPullToRefresh() {
227
- const hasPullToRefreshEvent = this.hasEventCallback('pulltorefresh');
228
- if (!this.pullToRefreshIns && (this.childPullToRefresh || hasPullToRefreshEvent) && this.pulltorefresh) {
229
- this.pullToRefreshIns = new base.PullToRefresh($(this.nativeElement), this.app, () => {
230
- if (hasPullToRefreshEvent) {
231
- this.invokeEventCallback('pulltorefresh');
232
- }
233
- else {
234
- this.app.notify('pulltorefresh');
235
- }
236
- });
237
- this.registerDestroyListener(() => {
238
- if (this.pullToRefreshIns?.destroy) {
239
- this.pullToRefreshIns.destroy();
240
- this.pullToRefreshIns = null;
241
- }
242
- });
243
- }
244
- }
245
- ngOnDestroy() {
246
- // MEMORY LEAK FIX: Clean up pullToRefresh instance
247
- // This is already handled by registerDestroyListener, but adding explicit cleanup as backup
248
- if (this.pullToRefreshIns?.destroy) {
249
- this.pullToRefreshIns.destroy();
250
- this.pullToRefreshIns = null;
251
- }
252
- super.ngOnDestroy();
253
- }
254
- static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: PageContentComponent, deps: [{ token: i0__namespace.Injector }, { token: i2__namespace.App }, { token: 'EXPLICIT_CONTEXT', optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component }); }
255
- static { this.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.21", type: PageContentComponent, isStandalone: true, selector: "[wmPageContent]", providers: [
256
- base.provideAsWidgetRef(PageContentComponent)
257
- ], usesInheritance: true, ngImport: i0__namespace, template: "<ng-content></ng-content>" }); }
258
- };
259
- exports.PageContentComponent = tslib.__decorate([
260
- base.AutoLayout(),
261
- tslib.__metadata("design:paramtypes", [i0.Injector, i2.App, Object])
262
- ], exports.PageContentComponent);
263
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: exports.PageContentComponent, decorators: [{
264
- type: i0.Component,
265
- args: [{ standalone: true, selector: '[wmPageContent]', providers: [
266
- base.provideAsWidgetRef(exports.PageContentComponent)
267
- ], template: "<ng-content></ng-content>" }]
268
- }], ctorParameters: () => [{ type: i0__namespace.Injector }, { type: i2__namespace.App }, { type: undefined, decorators: [{
269
- type: i0.Inject,
270
- args: ['EXPLICIT_CONTEXT']
271
- }, {
272
- type: i0.Optional
273
- }] }] });
274
-
275
- const registerProps$2 = () => {
276
- base.register('wm-content', new Map([
277
- ['name', base.PROP_STRING],
278
- ['class', base.PROP_STRING]
279
- ]));
280
- };
281
-
282
- const DEFAULT_CLS$2 = 'app-content clearfix';
283
- const WIDGET_CONFIG$2 = { widgetType: 'wm-content', hostClass: DEFAULT_CLS$2 };
284
- class ContentComponent extends base.StylableComponent {
285
- static { this.initializeProps = registerProps$2(); }
286
- constructor(inj, explicitContext) {
287
- super(inj, WIDGET_CONFIG$2, explicitContext);
288
- base.styler(this.nativeElement, this);
289
- }
290
- static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: ContentComponent, deps: [{ token: i0__namespace.Injector }, { token: 'EXPLICIT_CONTEXT', optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component }); }
291
- static { this.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.21", type: ContentComponent, isStandalone: true, selector: "[wmContent]", providers: [
292
- base.provideAsWidgetRef(ContentComponent)
293
- ], usesInheritance: true, ngImport: i0__namespace, template: "<div class=\"row app-content-row clearfix\">\n <ng-content></ng-content>\n</div>" }); }
294
- }
295
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: ContentComponent, decorators: [{
296
- type: i0.Component,
297
- args: [{ standalone: true, selector: '[wmContent]', providers: [
298
- base.provideAsWidgetRef(ContentComponent)
299
- ], template: "<div class=\"row app-content-row clearfix\">\n <ng-content></ng-content>\n</div>" }]
300
- }], ctorParameters: () => [{ type: i0__namespace.Injector }, { type: undefined, decorators: [{
301
- type: i0.Inject,
302
- args: ['EXPLICIT_CONTEXT']
303
- }, {
304
- type: i0.Optional
305
- }] }] });
306
-
307
- const registerProps$1 = () => {
308
- base.register('wm-spa-page', new Map([
309
- ['cache', { value: false, ...base.PROP_BOOLEAN }],
310
- ['refreshdataonattach', { value: true, ...base.PROP_BOOLEAN }],
311
- ['pagetitle', base.PROP_STRING],
312
- ['hint', base.PROP_STRING]
313
- ]));
314
- };
315
-
316
- const DEFAULT_CLS$1 = 'app-spa-page';
317
- const WIDGET_CONFIG$1 = { widgetType: 'wm-spa-page', hostClass: DEFAULT_CLS$1 };
318
- class SpaPageDirective extends base.StylableComponent {
319
- static { this.initializeProps = registerProps$1(); }
320
- onPropertyChange(key, nv, ov) {
321
- if (key === 'pagetitle') {
322
- this.titleService.setTitle(nv);
323
- }
324
- else {
325
- super.onPropertyChange(key, nv, ov);
326
- }
327
- }
328
- constructor(inj, titleService, viewport, explicitContext) {
329
- super(inj, WIDGET_CONFIG$1, explicitContext);
330
- this.titleService = titleService;
331
- this.viewport = viewport;
332
- this._eventNotifier = new i2.EventNotifier(false);
333
- this.refreshdataonattach = true;
334
- }
335
- /**
336
- * A child component can notify page using this method. Notified event will be passed to
337
- * subscribed children only after page initialization.
338
- *
339
- * @param {string} eventName
340
- * @param data
341
- */
342
- notify(eventName, ...data) {
343
- this._eventNotifier.notify(eventName, ...data);
344
- }
345
- /**
346
- * The main purpose of this function is to provide communication between page children objects.
347
- * Child component can subscribe for an event that will be emitted by another child component.
348
- *
349
- * @param eventName
350
- * @param {(data: any) => void} callback
351
- * @returns {any}
352
- */
353
- subscribe(eventName, callback) {
354
- return this._eventNotifier.subscribe(eventName, callback);
355
- }
356
- ngAfterViewInit() {
357
- setTimeout(() => {
358
- this._eventNotifier.start();
359
- base.updateDeviceView(this.nativeElement, this.getAppInstance().isTabletApplicationType);
360
- }, 1);
361
- this.registerDestroyListener(this.viewport.subscribe("resize" /* ViewportEvent.RESIZE */, args => {
362
- this.invokeEventCallback('resize', { $event: args.$event, widget: this, data: args.data });
363
- }));
364
- this.registerDestroyListener(this.viewport.subscribe("orientationchange" /* ViewportEvent.ORIENTATION_CHANGE */, args => {
365
- this.invokeEventCallback('orientationchange', { $event: args.$event, widget: this, data: args.data });
366
- }));
367
- }
368
- ngOnAttach() {
369
- this.titleService.setTitle(this.pagetitle);
370
- this.invokeEventCallback('attach', { widget: this });
371
- this.notify('attach', {
372
- refreshData: this.refreshdataonattach
373
- });
374
- }
375
- ngOnDetach() {
376
- this.invokeEventCallback('detach', { widget: this });
377
- this.notify('detach');
378
- }
379
- ngOnDestroy() {
380
- this.invokeEventCallback('destroy', { widget: this });
381
- this._eventNotifier.destroy();
382
- }
383
- static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: SpaPageDirective, deps: [{ token: i0__namespace.Injector }, { token: i1__namespace.Title }, { token: i2__namespace.Viewport }, { token: 'EXPLICIT_CONTEXT', optional: true }], target: i0__namespace.ɵɵFactoryTarget.Directive }); }
384
- static { this.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.21", type: SpaPageDirective, isStandalone: true, selector: "[wmSpaPage]", providers: [
385
- base.provideAsWidgetRef(SpaPageDirective)
386
- ], exportAs: ["wmSpaPage"], usesInheritance: true, ngImport: i0__namespace }); }
387
- }
388
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: SpaPageDirective, decorators: [{
389
- type: i0.Directive,
390
- args: [{
391
- standalone: true,
392
- selector: '[wmSpaPage]',
393
- providers: [
394
- base.provideAsWidgetRef(SpaPageDirective)
395
- ],
396
- exportAs: 'wmSpaPage'
397
- }]
398
- }], ctorParameters: () => [{ type: i0__namespace.Injector }, { type: i1__namespace.Title }, { type: i2__namespace.Viewport }, { type: undefined, decorators: [{
399
- type: i0.Inject,
400
- args: ['EXPLICIT_CONTEXT']
401
- }, {
402
- type: i0.Optional
403
- }] }] });
404
-
405
- const registerProps = () => {
406
- base.register('wm-router-outlet', new Map([
407
- ['columnwidth', base.PROP_NUMBER],
408
- ['name', base.PROP_STRING]
409
- ]));
410
- };
411
-
412
- const DEFAULT_CLS = 'app-content-column-wrapper';
413
- const WIDGET_CONFIG = {
414
- widgetType: 'wm-router-outlet',
415
- hostClass: DEFAULT_CLS
416
- };
417
- class RouterOutletDirective extends base.StylableComponent {
418
- static { this.initializeProps = registerProps(); }
419
- constructor(inj, explicitContext, app) {
420
- super(inj, WIDGET_CONFIG, explicitContext);
421
- this.app = app;
422
- this.isPrism = this.app.isPrism;
423
- }
424
- onPropertyChange(key, nv, ov) {
425
- if (key === 'columnwidth' && !this.isPrism) {
426
- i2.switchClass(this.nativeElement, `col-md-${nv} col-sm-${nv}`, `col-md-${ov} col-sm-${ov}`);
427
- }
428
- else {
429
- super.onPropertyChange(key, nv, ov);
430
- }
431
- }
432
- static { this.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: RouterOutletDirective, deps: [{ token: i0__namespace.Injector }, { token: 'EXPLICIT_CONTEXT', optional: true }, { token: i2__namespace.App }], target: i0__namespace.ɵɵFactoryTarget.Directive }); }
433
- static { this.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.21", type: RouterOutletDirective, isStandalone: true, selector: "[wmRouterOutlet]", providers: [
434
- base.provideAsWidgetRef(RouterOutletDirective)
435
- ], usesInheritance: true, ngImport: i0__namespace }); }
436
- }
437
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.21", ngImport: i0__namespace, type: RouterOutletDirective, decorators: [{
438
- type: i0.Directive,
439
- args: [{
440
- standalone: true,
441
- selector: '[wmRouterOutlet]',
442
- providers: [
443
- base.provideAsWidgetRef(RouterOutletDirective)
444
- ]
445
- }]
446
- }], ctorParameters: () => [{ type: i0__namespace.Injector }, { type: undefined, decorators: [{
447
- type: i0.Inject,
448
- args: ['EXPLICIT_CONTEXT']
449
- }, {
450
- type: i0.Optional
451
- }] }, { type: i2__namespace.App }] });
452
-
453
- exports.ContentComponent = ContentComponent;
454
- exports.LayoutDirective = LayoutDirective;
455
- exports.PageDirective = PageDirective;
456
- exports.RouterOutletDirective = RouterOutletDirective;
457
- exports.SpaPageDirective = SpaPageDirective;
636
+ exports.ContentComponent = ContentComponent;
637
+ exports.LayoutDirective = LayoutDirective;
638
+ exports.PageDirective = PageDirective;
639
+ exports.RouterOutletDirective = RouterOutletDirective;
640
+ exports.SpaPageDirective = SpaPageDirective;
458
641
 
459
642
  }));