@pepperi-addons/ngx-lib 0.3.9-beta.21 → 0.3.9-beta.24

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 (663) hide show
  1. package/address/address.component.d.ts +27 -27
  2. package/address/address.module.d.ts +2 -2
  3. package/address/pepperi-addons-ngx-lib-address.d.ts +4 -4
  4. package/address/public-api.d.ts +2 -2
  5. package/attachment/attachment.component.d.ts +82 -82
  6. package/attachment/attachment.module.d.ts +2 -2
  7. package/attachment/pepperi-addons-ngx-lib-attachment.d.ts +4 -4
  8. package/attachment/public-api.d.ts +2 -2
  9. package/bread-crumbs/bread-crumbs.component.d.ts +23 -23
  10. package/bread-crumbs/bread-crumbs.model.d.ts +11 -11
  11. package/bread-crumbs/bread-crumbs.module.d.ts +5 -5
  12. package/bread-crumbs/pepperi-addons-ngx-lib-bread-crumbs.d.ts +4 -4
  13. package/bread-crumbs/public-api.d.ts +3 -3
  14. package/bundles/pepperi-addons-ngx-lib-address.umd.js +124 -124
  15. package/bundles/pepperi-addons-ngx-lib-attachment.umd.js +247 -247
  16. package/bundles/pepperi-addons-ngx-lib-bread-crumbs.umd.js +121 -121
  17. package/bundles/pepperi-addons-ngx-lib-button.umd.js +158 -158
  18. package/bundles/pepperi-addons-ngx-lib-carousel.umd.js +788 -788
  19. package/bundles/pepperi-addons-ngx-lib-checkbox.umd.js +192 -192
  20. package/bundles/pepperi-addons-ngx-lib-color.umd.js +296 -296
  21. package/bundles/pepperi-addons-ngx-lib-date.umd.js +660 -660
  22. package/bundles/pepperi-addons-ngx-lib-dialog.umd.js +171 -171
  23. package/bundles/pepperi-addons-ngx-lib-draggable-items.umd.js +151 -151
  24. package/bundles/pepperi-addons-ngx-lib-field-title.umd.js +57 -57
  25. package/bundles/pepperi-addons-ngx-lib-files-uploader.umd.js +260 -260
  26. package/bundles/pepperi-addons-ngx-lib-form.umd.js +3237 -3229
  27. package/bundles/pepperi-addons-ngx-lib-form.umd.js.map +1 -1
  28. package/bundles/pepperi-addons-ngx-lib-group-buttons.umd.js +87 -87
  29. package/bundles/pepperi-addons-ngx-lib-icon.umd.js +681 -681
  30. package/bundles/pepperi-addons-ngx-lib-image.umd.js +322 -316
  31. package/bundles/pepperi-addons-ngx-lib-image.umd.js.map +1 -1
  32. package/bundles/pepperi-addons-ngx-lib-images-filmstrip.umd.js +413 -413
  33. package/bundles/pepperi-addons-ngx-lib-link.umd.js +464 -464
  34. package/bundles/pepperi-addons-ngx-lib-list.umd.js +3187 -3187
  35. package/bundles/pepperi-addons-ngx-lib-menu.umd.js +646 -646
  36. package/bundles/pepperi-addons-ngx-lib-page-layout.umd.js +60 -60
  37. package/bundles/pepperi-addons-ngx-lib-profile-data-views-list.umd.js +543 -543
  38. package/bundles/pepperi-addons-ngx-lib-quantity-selector.umd.js +914 -914
  39. package/bundles/pepperi-addons-ngx-lib-query-builder.umd.js +1060 -1060
  40. package/bundles/pepperi-addons-ngx-lib-rich-html-textarea.umd.js +275 -275
  41. package/bundles/pepperi-addons-ngx-lib-search.umd.js +326 -326
  42. package/bundles/pepperi-addons-ngx-lib-select.umd.js +575 -576
  43. package/bundles/pepperi-addons-ngx-lib-select.umd.js.map +1 -1
  44. package/bundles/pepperi-addons-ngx-lib-separator.umd.js +79 -79
  45. package/bundles/pepperi-addons-ngx-lib-side-bar.umd.js +163 -163
  46. package/bundles/pepperi-addons-ngx-lib-signature.umd.js +283 -283
  47. package/bundles/pepperi-addons-ngx-lib-size-detector.umd.js +113 -113
  48. package/bundles/pepperi-addons-ngx-lib-slider.umd.js +124 -124
  49. package/bundles/pepperi-addons-ngx-lib-smart-filters.umd.js +1780 -1780
  50. package/bundles/pepperi-addons-ngx-lib-textarea.umd.js +211 -211
  51. package/bundles/pepperi-addons-ngx-lib-textbox-icon.umd.js +80 -80
  52. package/bundles/pepperi-addons-ngx-lib-textbox.umd.js +506 -506
  53. package/bundles/pepperi-addons-ngx-lib-top-bar.umd.js +129 -129
  54. package/bundles/pepperi-addons-ngx-lib.umd.js +4719 -4719
  55. package/bundles/pepperi-addons-ngx-lib.umd.js.map +1 -1
  56. package/button/button.component.d.ts +99 -99
  57. package/button/button.model.d.ts +14 -14
  58. package/button/button.module.d.ts +2 -2
  59. package/button/pepperi-addons-ngx-lib-button.d.ts +4 -4
  60. package/button/public-api.d.ts +3 -3
  61. package/carousel/carousel-item.directive.d.ts +9 -9
  62. package/carousel/carousel.component.d.ts +145 -145
  63. package/carousel/carousel.module.d.ts +2 -2
  64. package/carousel/pepperi-addons-ngx-lib-carousel.d.ts +4 -4
  65. package/carousel/public-api.d.ts +3 -3
  66. package/checkbox/checkbox.component.d.ts +47 -47
  67. package/checkbox/checkbox.module.d.ts +5 -5
  68. package/checkbox/pepperi-addons-ngx-lib-checkbox.d.ts +4 -4
  69. package/checkbox/public-api.d.ts +2 -2
  70. package/color/color-picker.component.d.ts +52 -52
  71. package/color/color.component.d.ts +26 -26
  72. package/color/color.model.d.ts +1 -1
  73. package/color/color.module.d.ts +5 -5
  74. package/color/pepperi-addons-ngx-lib-color.d.ts +5 -5
  75. package/color/public-api.d.ts +3 -3
  76. package/core/clipboard/clipboard.directive.d.ts +2 -2
  77. package/core/clipboard/clipboard.service.d.ts +2 -2
  78. package/core/clipboard/index.d.ts +1 -1
  79. package/core/clipboard/public-api.d.ts +2 -2
  80. package/core/common/directives/auto-width.directive.d.ts +16 -16
  81. package/core/common/directives/button-blur.directive.d.ts +6 -6
  82. package/core/common/directives/button-loader.directive.d.ts +23 -23
  83. package/core/common/directives/data-qa.directive.d.ts +8 -8
  84. package/core/common/directives/index.d.ts +1 -1
  85. package/core/common/directives/menu-blur.directive.d.ts +7 -7
  86. package/core/common/directives/prevent-multi-click.directive.d.ts +4 -4
  87. package/core/common/directives/print.directive.d.ts +72 -72
  88. package/core/common/directives/public-api.d.ts +7 -7
  89. package/core/common/index.d.ts +1 -1
  90. package/core/common/model/index.d.ts +1 -1
  91. package/core/common/model/papi.model.d.ts +2 -2
  92. package/core/common/model/public-api.d.ts +3 -3
  93. package/core/common/model/utilities.model.d.ts +5 -5
  94. package/core/common/model/wapi.model.d.ts +200 -200
  95. package/core/common/pipes/common-pipes.d.ts +36 -36
  96. package/core/common/pipes/index.d.ts +1 -1
  97. package/core/common/pipes/public-api.d.ts +1 -1
  98. package/core/common/public-api.d.ts +4 -4
  99. package/core/common/services/addon.service.d.ts +32 -32
  100. package/core/common/services/color.service.d.ts +48 -48
  101. package/core/common/services/cookie.service.d.ts +50 -50
  102. package/core/common/services/data-convertor.service.d.ts +39 -39
  103. package/core/common/services/file.service.d.ts +24 -24
  104. package/core/common/services/index.d.ts +1 -1
  105. package/core/common/services/jwt-helper.service.d.ts +10 -10
  106. package/core/common/services/public-api.d.ts +11 -11
  107. package/core/common/services/session.service.d.ts +15 -15
  108. package/core/common/services/translate.service.d.ts +9 -9
  109. package/core/common/services/utilities.service.d.ts +18 -18
  110. package/core/common/services/validator.service.d.ts +28 -28
  111. package/core/common/services/window-scrolling.service.d.ts +7 -7
  112. package/core/customization/customization.model.d.ts +264 -264
  113. package/core/customization/customization.service.d.ts +155 -155
  114. package/core/customization/index.d.ts +1 -1
  115. package/core/customization/public-api.d.ts +2 -2
  116. package/core/http/index.d.ts +1 -1
  117. package/core/http/interceptors/error.interceptor.d.ts +5 -5
  118. package/core/http/interceptors/index.d.ts +11 -11
  119. package/core/http/interceptors/loader.interceptor.d.ts +8 -8
  120. package/core/http/interceptors/profiler.interceptor.d.ts +5 -5
  121. package/core/http/public-api.d.ts +2 -2
  122. package/core/http/services/http.service.d.ts +25 -25
  123. package/core/http/services/loader.service.d.ts +10 -10
  124. package/core/index.d.ts +1 -1
  125. package/core/layout/index.d.ts +1 -1
  126. package/core/layout/layout.service.d.ts +33 -33
  127. package/core/layout/public-api.d.ts +2 -2
  128. package/core/layout/rtl.directive.d.ts +16 -16
  129. package/core/portal/attach.directive.d.ts +10 -10
  130. package/core/portal/index.d.ts +1 -1
  131. package/core/portal/portal.service.d.ts +9 -9
  132. package/core/portal/public-api.d.ts +3 -3
  133. package/core/portal/target.directive.d.ts +9 -9
  134. package/core/public-api.d.ts +7 -7
  135. package/core/scroll-to/index.d.ts +1 -1
  136. package/core/scroll-to/public-api.d.ts +1 -1
  137. package/core/scroll-to/scroll-to.service.d.ts +8 -8
  138. package/date/date.component.d.ts +65 -65
  139. package/date/date.model.d.ts +26 -26
  140. package/date/date.module.d.ts +5 -5
  141. package/date/pepperi-addons-ngx-lib-date.d.ts +5 -5
  142. package/date/public-api.d.ts +2 -2
  143. package/dialog/default-dialog.component.d.ts +8 -8
  144. package/dialog/dialog.component.d.ts +6 -6
  145. package/dialog/dialog.model.d.ts +27 -27
  146. package/dialog/dialog.module.d.ts +5 -5
  147. package/dialog/dialog.service.d.ts +24 -24
  148. package/dialog/pepperi-addons-ngx-lib-dialog.d.ts +5 -5
  149. package/dialog/public-api.d.ts +4 -4
  150. package/draggable-items/draggable-item/draggable-item.component.d.ts +8 -8
  151. package/draggable-items/draggable-items.component.d.ts +33 -33
  152. package/draggable-items/draggable-items.model.d.ts +7 -7
  153. package/draggable-items/draggable-items.module.d.ts +5 -5
  154. package/draggable-items/pepperi-addons-ngx-lib-draggable-items.d.ts +4 -4
  155. package/draggable-items/pepperi-addons-ngx-lib-draggable-items.metadata.json +1 -1
  156. package/draggable-items/public-api.d.ts +4 -4
  157. package/esm2015/address/address.component.js +96 -96
  158. package/esm2015/address/address.module.js +30 -30
  159. package/esm2015/address/pepperi-addons-ngx-lib-address.js +4 -4
  160. package/esm2015/address/public-api.js +5 -5
  161. package/esm2015/attachment/attachment.component.js +208 -208
  162. package/esm2015/attachment/attachment.module.js +28 -28
  163. package/esm2015/attachment/pepperi-addons-ngx-lib-attachment.js +4 -4
  164. package/esm2015/attachment/public-api.js +5 -5
  165. package/esm2015/bread-crumbs/bread-crumbs.component.js +78 -78
  166. package/esm2015/bread-crumbs/bread-crumbs.model.js +6 -6
  167. package/esm2015/bread-crumbs/bread-crumbs.module.js +34 -34
  168. package/esm2015/bread-crumbs/pepperi-addons-ngx-lib-bread-crumbs.js +4 -4
  169. package/esm2015/bread-crumbs/public-api.js +6 -6
  170. package/esm2015/button/button.component.js +127 -127
  171. package/esm2015/button/button.model.js +5 -5
  172. package/esm2015/button/button.module.js +26 -26
  173. package/esm2015/button/pepperi-addons-ngx-lib-button.js +4 -4
  174. package/esm2015/button/public-api.js +6 -6
  175. package/esm2015/carousel/carousel-item.directive.js +26 -26
  176. package/esm2015/carousel/carousel.component.js +699 -699
  177. package/esm2015/carousel/carousel.module.js +11 -11
  178. package/esm2015/carousel/pepperi-addons-ngx-lib-carousel.js +4 -4
  179. package/esm2015/carousel/public-api.js +7 -7
  180. package/esm2015/checkbox/checkbox.component.js +151 -151
  181. package/esm2015/checkbox/checkbox.module.js +39 -39
  182. package/esm2015/checkbox/pepperi-addons-ngx-lib-checkbox.js +4 -4
  183. package/esm2015/checkbox/public-api.js +5 -5
  184. package/esm2015/color/color-picker.component.js +194 -194
  185. package/esm2015/color/color.component.js +74 -74
  186. package/esm2015/color/color.model.js +1 -1
  187. package/esm2015/color/color.module.js +57 -57
  188. package/esm2015/color/pepperi-addons-ngx-lib-color.js +5 -5
  189. package/esm2015/color/public-api.js +6 -6
  190. package/esm2015/core/clipboard/clipboard.directive.js +19 -19
  191. package/esm2015/core/clipboard/clipboard.service.js +11 -11
  192. package/esm2015/core/clipboard/index.js +4 -4
  193. package/esm2015/core/clipboard/public-api.js +5 -5
  194. package/esm2015/core/common/directives/auto-width.directive.js +77 -77
  195. package/esm2015/core/common/directives/button-blur.directive.js +22 -22
  196. package/esm2015/core/common/directives/button-loader.directive.js +102 -102
  197. package/esm2015/core/common/directives/data-qa.directive.js +22 -22
  198. package/esm2015/core/common/directives/index.js +4 -4
  199. package/esm2015/core/common/directives/menu-blur.directive.js +28 -28
  200. package/esm2015/core/common/directives/prevent-multi-click.directive.js +21 -21
  201. package/esm2015/core/common/directives/print.directive.js +134 -134
  202. package/esm2015/core/common/directives/public-api.js +11 -11
  203. package/esm2015/core/common/index.js +4 -4
  204. package/esm2015/core/common/model/index.js +4 -4
  205. package/esm2015/core/common/model/papi.model.js +2 -2
  206. package/esm2015/core/common/model/public-api.js +6 -6
  207. package/esm2015/core/common/model/utilities.model.js +56 -56
  208. package/esm2015/core/common/model/wapi.model.js +155 -155
  209. package/esm2015/core/common/pipes/common-pipes.js +141 -141
  210. package/esm2015/core/common/pipes/index.js +4 -4
  211. package/esm2015/core/common/pipes/public-api.js +4 -4
  212. package/esm2015/core/common/public-api.js +7 -7
  213. package/esm2015/core/common/services/addon.service.js +123 -123
  214. package/esm2015/core/common/services/color.service.js +356 -356
  215. package/esm2015/core/common/services/cookie.service.js +147 -147
  216. package/esm2015/core/common/services/data-convertor.service.js +111 -111
  217. package/esm2015/core/common/services/file.service.js +211 -211
  218. package/esm2015/core/common/services/index.js +4 -4
  219. package/esm2015/core/common/services/jwt-helper.service.js +103 -103
  220. package/esm2015/core/common/services/public-api.js +14 -14
  221. package/esm2015/core/common/services/session.service.js +72 -72
  222. package/esm2015/core/common/services/translate.service.js +47 -47
  223. package/esm2015/core/common/services/utilities.service.js +123 -123
  224. package/esm2015/core/common/services/validator.service.js +272 -272
  225. package/esm2015/core/common/services/window-scrolling.service.js +30 -30
  226. package/esm2015/core/customization/customization.model.js +290 -290
  227. package/esm2015/core/customization/customization.service.js +774 -774
  228. package/esm2015/core/customization/index.js +4 -4
  229. package/esm2015/core/customization/public-api.js +5 -5
  230. package/esm2015/core/http/index.js +4 -4
  231. package/esm2015/core/http/interceptors/error.interceptor.js +23 -23
  232. package/esm2015/core/http/interceptors/index.js +23 -23
  233. package/esm2015/core/http/interceptors/loader.interceptor.js +32 -32
  234. package/esm2015/core/http/interceptors/profiler.interceptor.js +28 -28
  235. package/esm2015/core/http/public-api.js +5 -5
  236. package/esm2015/core/http/services/http.service.js +160 -160
  237. package/esm2015/core/http/services/loader.service.js +48 -48
  238. package/esm2015/core/index.js +4 -4
  239. package/esm2015/core/layout/index.js +4 -4
  240. package/esm2015/core/layout/layout.service.js +168 -168
  241. package/esm2015/core/layout/public-api.js +5 -5
  242. package/esm2015/core/layout/rtl.directive.js +46 -46
  243. package/esm2015/core/portal/attach.directive.js +26 -26
  244. package/esm2015/core/portal/index.js +4 -4
  245. package/esm2015/core/portal/portal.service.js +34 -34
  246. package/esm2015/core/portal/public-api.js +6 -6
  247. package/esm2015/core/portal/target.directive.js +23 -23
  248. package/esm2015/core/public-api.js +10 -10
  249. package/esm2015/core/scroll-to/index.js +4 -4
  250. package/esm2015/core/scroll-to/public-api.js +5 -5
  251. package/esm2015/core/scroll-to/scroll-to.service.js +81 -81
  252. package/esm2015/date/date.component.js +244 -244
  253. package/esm2015/date/date.model.js +44 -44
  254. package/esm2015/date/date.module.js +50 -50
  255. package/esm2015/date/pepperi-addons-ngx-lib-date.js +5 -5
  256. package/esm2015/date/public-api.js +5 -5
  257. package/esm2015/dialog/default-dialog.component.js +28 -28
  258. package/esm2015/dialog/dialog.component.js +21 -21
  259. package/esm2015/dialog/dialog.model.js +21 -21
  260. package/esm2015/dialog/dialog.module.js +39 -39
  261. package/esm2015/dialog/dialog.service.js +73 -73
  262. package/esm2015/dialog/pepperi-addons-ngx-lib-dialog.js +5 -5
  263. package/esm2015/dialog/public-api.js +7 -7
  264. package/esm2015/draggable-items/draggable-item/draggable-item.component.js +24 -24
  265. package/esm2015/draggable-items/draggable-items.component.js +91 -91
  266. package/esm2015/draggable-items/draggable-items.model.js +1 -1
  267. package/esm2015/draggable-items/draggable-items.module.js +42 -42
  268. package/esm2015/draggable-items/pepperi-addons-ngx-lib-draggable-items.js +4 -4
  269. package/esm2015/draggable-items/public-api.js +7 -7
  270. package/esm2015/field-title/field-title.component.js +31 -31
  271. package/esm2015/field-title/field-title.module.js +31 -31
  272. package/esm2015/field-title/pepperi-addons-ngx-lib-field-title.js +4 -4
  273. package/esm2015/field-title/public-api.js +5 -5
  274. package/esm2015/files-uploader/files-uploader.component.js +220 -220
  275. package/esm2015/files-uploader/files-uploader.module.js +49 -49
  276. package/esm2015/files-uploader/pepperi-addons-ngx-lib-files-uploader.js +4 -4
  277. package/esm2015/files-uploader/public-api.js +5 -5
  278. package/esm2015/form/field-generator.component.js +121 -121
  279. package/esm2015/form/form.component.js +1189 -1181
  280. package/esm2015/form/form.model.js +1 -1
  281. package/esm2015/form/form.module.js +107 -107
  282. package/esm2015/form/indicators.component.js +20 -20
  283. package/esm2015/form/internal-button.component.js +165 -165
  284. package/esm2015/form/internal-carusel.component.js +115 -115
  285. package/esm2015/form/internal-carusel.service.js +31 -31
  286. package/esm2015/form/internal-list.component.js +494 -494
  287. package/esm2015/form/internal-menu.component.js +54 -54
  288. package/esm2015/form/internal-page.component.js +350 -350
  289. package/esm2015/form/internal-page.service.js +120 -120
  290. package/esm2015/form/pepperi-addons-ngx-lib-form.js +13 -13
  291. package/esm2015/form/public-api.js +6 -6
  292. package/esm2015/group-buttons/group-buttons.component.js +57 -57
  293. package/esm2015/group-buttons/group-buttons.module.js +37 -37
  294. package/esm2015/group-buttons/pepperi-addons-ngx-lib-group-buttons.js +4 -4
  295. package/esm2015/group-buttons/public-api.js +5 -5
  296. package/esm2015/icon/icon-generated-all.model.js +100 -100
  297. package/esm2015/icon/icon-generated.model.js +389 -389
  298. package/esm2015/icon/icon-registry.service.js +22 -22
  299. package/esm2015/icon/icon.component.js +124 -124
  300. package/esm2015/icon/icon.module.js +14 -14
  301. package/esm2015/icon/icon.service.js +31 -31
  302. package/esm2015/icon/pepperi-addons-ngx-lib-icon.js +4 -4
  303. package/esm2015/icon/public-api.js +10 -10
  304. package/esm2015/image/image.component.js +229 -223
  305. package/esm2015/image/image.module.js +48 -48
  306. package/esm2015/image/image.service.js +54 -54
  307. package/esm2015/image/pepperi-addons-ngx-lib-image.js +4 -4
  308. package/esm2015/image/public-api.js +6 -6
  309. package/esm2015/images-filmstrip/images-filmstrip.component.js +363 -363
  310. package/esm2015/images-filmstrip/images-filmstrip.module.js +70 -70
  311. package/esm2015/images-filmstrip/pepperi-addons-ngx-lib-images-filmstrip.js +4 -4
  312. package/esm2015/images-filmstrip/public-api.js +5 -5
  313. package/esm2015/link/link.component.js +390 -390
  314. package/esm2015/link/link.module.js +50 -50
  315. package/esm2015/link/link.pipes.js +14 -14
  316. package/esm2015/link/pepperi-addons-ngx-lib-link.js +5 -5
  317. package/esm2015/link/public-api.js +5 -5
  318. package/esm2015/list/list-actions.component.js +35 -35
  319. package/esm2015/list/list-carousel.component.js +94 -94
  320. package/esm2015/list/list-chooser.component.js +57 -57
  321. package/esm2015/list/list-pager.component.js +112 -112
  322. package/esm2015/list/list-sorting.component.js +54 -54
  323. package/esm2015/list/list-total.component.js +23 -23
  324. package/esm2015/list/list-views.component.js +71 -71
  325. package/esm2015/list/list.component.js +1123 -1123
  326. package/esm2015/list/list.model.js +3 -3
  327. package/esm2015/list/list.module.js +87 -87
  328. package/esm2015/list/list.pipes.js +39 -39
  329. package/esm2015/list/pepperi-addons-ngx-lib-list.js +6 -6
  330. package/esm2015/list/public-api.js +14 -14
  331. package/esm2015/list/virtual-scroller.js +1018 -1018
  332. package/esm2015/menu/menu-item.component.js +102 -102
  333. package/esm2015/menu/menu.component.js +173 -173
  334. package/esm2015/menu/menu.model.js +18 -18
  335. package/esm2015/menu/menu.module.js +39 -39
  336. package/esm2015/menu/pepperi-addons-ngx-lib-menu.js +5 -5
  337. package/esm2015/menu/public-api.js +6 -6
  338. package/esm2015/ngx-lib.module.js +76 -76
  339. package/esm2015/page-layout/page-layout.component.js +41 -41
  340. package/esm2015/page-layout/page-layout.module.js +20 -20
  341. package/esm2015/page-layout/pepperi-addons-ngx-lib-page-layout.js +4 -4
  342. package/esm2015/page-layout/public-api.js +5 -5
  343. package/esm2015/pepperi-addons-ngx-lib.js +8 -8
  344. package/esm2015/profile-data-views-list/pepperi-addons-ngx-lib-profile-data-views-list.js +4 -4
  345. package/esm2015/profile-data-views-list/profile-data-view/profile-data-view.component.js +38 -38
  346. package/esm2015/profile-data-views-list/profile-data-views-card/profile-data-views-card.component.js +59 -59
  347. package/esm2015/profile-data-views-list/profile-data-views-list.component.js +86 -86
  348. package/esm2015/profile-data-views-list/profile-data-views-list.model.js +1 -1
  349. package/esm2015/profile-data-views-list/profile-data-views-list.module.js +56 -56
  350. package/esm2015/profile-data-views-list/public-api.js +8 -8
  351. package/esm2015/public-api.js +5 -5
  352. package/esm2015/quantity-selector/pepperi-addons-ngx-lib-quantity-selector.js +6 -6
  353. package/esm2015/quantity-selector/public-api.js +5 -5
  354. package/esm2015/quantity-selector/quantity-selector-validation.directive.js +43 -43
  355. package/esm2015/quantity-selector/quantity-selector.component.js +460 -460
  356. package/esm2015/quantity-selector/quantity-selector.module.js +52 -52
  357. package/esm2015/quantity-selector/quantity-selector.pipes.js +18 -18
  358. package/esm2015/query-builder/common/model/field.js +1 -1
  359. package/esm2015/query-builder/common/model/filter.js +1 -1
  360. package/esm2015/query-builder/common/model/legacy.js +1 -1
  361. package/esm2015/query-builder/common/model/operator-unit.js +41 -41
  362. package/esm2015/query-builder/common/model/operator.js +206 -206
  363. package/esm2015/query-builder/common/model/structure.js +1 -1
  364. package/esm2015/query-builder/common/model/type-map.js +26 -26
  365. package/esm2015/query-builder/common/model/type.js +5 -5
  366. package/esm2015/query-builder/common/services/output-query.service.js +110 -110
  367. package/esm2015/query-builder/common/services/type-convertor.service.js +39 -39
  368. package/esm2015/query-builder/pepperi-addons-ngx-lib-query-builder.js +8 -8
  369. package/esm2015/query-builder/public-api.js +7 -7
  370. package/esm2015/query-builder/query-builder-item/query-builder-item.component.js +115 -115
  371. package/esm2015/query-builder/query-builder-section/query-builder-section.component.js +63 -63
  372. package/esm2015/query-builder/query-builder.component.js +103 -103
  373. package/esm2015/query-builder/query-builder.module.js +34 -34
  374. package/esm2015/query-builder/query-builder.service.js +281 -281
  375. package/esm2015/rich-html-textarea/pepperi-addons-ngx-lib-rich-html-textarea.js +4 -4
  376. package/esm2015/rich-html-textarea/public-api.js +5 -5
  377. package/esm2015/rich-html-textarea/rich-html-textarea.component.js +219 -219
  378. package/esm2015/rich-html-textarea/rich-html-textarea.module.js +56 -56
  379. package/esm2015/search/pepperi-addons-ngx-lib-search.js +4 -4
  380. package/esm2015/search/public-api.js +6 -6
  381. package/esm2015/search/search.component.js +273 -273
  382. package/esm2015/search/search.model.js +1 -1
  383. package/esm2015/search/search.module.js +44 -44
  384. package/esm2015/select/pepperi-addons-ngx-lib-select.js +4 -4
  385. package/esm2015/select/public-api.js +5 -5
  386. package/esm2015/select/select.component.js +212 -213
  387. package/esm2015/select/select.module.js +42 -42
  388. package/esm2015/separator/pepperi-addons-ngx-lib-separator.js +4 -4
  389. package/esm2015/separator/public-api.js +5 -5
  390. package/esm2015/separator/separator.component.js +62 -62
  391. package/esm2015/separator/separator.module.js +12 -12
  392. package/esm2015/side-bar/pepperi-addons-ngx-lib-side-bar.js +4 -4
  393. package/esm2015/side-bar/public-api.js +6 -6
  394. package/esm2015/side-bar/side-bar.component.js +130 -130
  395. package/esm2015/side-bar/side-bar.model.js +1 -1
  396. package/esm2015/side-bar/side-bar.module.js +33 -33
  397. package/esm2015/signature/pepperi-addons-ngx-lib-signature.js +4 -4
  398. package/esm2015/signature/public-api.js +5 -5
  399. package/esm2015/signature/signature.component.js +230 -230
  400. package/esm2015/signature/signature.module.js +54 -54
  401. package/esm2015/size-detector/pepperi-addons-ngx-lib-size-detector.js +4 -4
  402. package/esm2015/size-detector/public-api.js +5 -5
  403. package/esm2015/size-detector/size-detector.component.js +88 -88
  404. package/esm2015/size-detector/size-detector.module.js +21 -21
  405. package/esm2015/slider/pepperi-addons-ngx-lib-slider.js +4 -4
  406. package/esm2015/slider/public-api.js +5 -5
  407. package/esm2015/slider/slider.component.js +95 -95
  408. package/esm2015/slider/slider.module.js +24 -24
  409. package/esm2015/smart-filters/boolean-filter/boolean-filter.component.js +41 -41
  410. package/esm2015/smart-filters/common/filter-actions.component.js +25 -25
  411. package/esm2015/smart-filters/common/model/base-filter-component.js +259 -259
  412. package/esm2015/smart-filters/common/model/creator.js +75 -75
  413. package/esm2015/smart-filters/common/model/field.js +116 -116
  414. package/esm2015/smart-filters/common/model/filter.js +1 -1
  415. package/esm2015/smart-filters/common/model/operator.js +215 -215
  416. package/esm2015/smart-filters/common/model/type.js +1 -1
  417. package/esm2015/smart-filters/date-filter/date-filter.component.js +143 -143
  418. package/esm2015/smart-filters/multi-select-filter/multi-select-filter.component.js +152 -152
  419. package/esm2015/smart-filters/number-filter/number-filter.component.js +102 -102
  420. package/esm2015/smart-filters/pepperi-addons-ngx-lib-smart-filters.js +4 -4
  421. package/esm2015/smart-filters/public-api.js +18 -18
  422. package/esm2015/smart-filters/smart-filters.component.js +129 -129
  423. package/esm2015/smart-filters/smart-filters.module.js +90 -90
  424. package/esm2015/smart-filters/text-filter/text-filter.component.js +78 -78
  425. package/esm2015/textarea/pepperi-addons-ngx-lib-textarea.js +4 -4
  426. package/esm2015/textarea/public-api.js +5 -5
  427. package/esm2015/textarea/textarea.component.js +160 -160
  428. package/esm2015/textarea/textarea.module.js +50 -50
  429. package/esm2015/textbox/pepperi-addons-ngx-lib-textbox.js +5 -5
  430. package/esm2015/textbox/public-api.js +5 -5
  431. package/esm2015/textbox/textbox-validation.directive.js +85 -85
  432. package/esm2015/textbox/textbox.component.js +368 -368
  433. package/esm2015/textbox/textbox.module.js +44 -44
  434. package/esm2015/textbox-icon/pepperi-addons-ngx-lib-textbox-icon.js +4 -4
  435. package/esm2015/textbox-icon/public-api.js +5 -5
  436. package/esm2015/textbox-icon/textbox-icon.component.js +40 -40
  437. package/esm2015/textbox-icon/textbox-icon.module.js +46 -46
  438. package/esm2015/top-bar/pepperi-addons-ngx-lib-top-bar.js +4 -4
  439. package/esm2015/top-bar/public-api.js +6 -6
  440. package/esm2015/top-bar/top-bar.component.js +98 -98
  441. package/esm2015/top-bar/top-bar.model.js +1 -1
  442. package/esm2015/top-bar/top-bar.module.js +40 -40
  443. package/fesm2015/pepperi-addons-ngx-lib-address.js +116 -116
  444. package/fesm2015/pepperi-addons-ngx-lib-attachment.js +227 -227
  445. package/fesm2015/pepperi-addons-ngx-lib-bread-crumbs.js +109 -109
  446. package/fesm2015/pepperi-addons-ngx-lib-button.js +149 -149
  447. package/fesm2015/pepperi-addons-ngx-lib-carousel.js +731 -731
  448. package/fesm2015/pepperi-addons-ngx-lib-checkbox.js +178 -178
  449. package/fesm2015/pepperi-addons-ngx-lib-color.js +292 -292
  450. package/fesm2015/pepperi-addons-ngx-lib-date.js +313 -313
  451. package/fesm2015/pepperi-addons-ngx-lib-dialog.js +157 -157
  452. package/fesm2015/pepperi-addons-ngx-lib-draggable-items.js +143 -143
  453. package/fesm2015/pepperi-addons-ngx-lib-field-title.js +55 -55
  454. package/fesm2015/pepperi-addons-ngx-lib-files-uploader.js +252 -252
  455. package/fesm2015/pepperi-addons-ngx-lib-form.js +2685 -2677
  456. package/fesm2015/pepperi-addons-ngx-lib-form.js.map +1 -1
  457. package/fesm2015/pepperi-addons-ngx-lib-group-buttons.js +84 -84
  458. package/fesm2015/pepperi-addons-ngx-lib-icon.js +662 -662
  459. package/fesm2015/pepperi-addons-ngx-lib-image.js +306 -300
  460. package/fesm2015/pepperi-addons-ngx-lib-image.js.map +1 -1
  461. package/fesm2015/pepperi-addons-ngx-lib-images-filmstrip.js +400 -400
  462. package/fesm2015/pepperi-addons-ngx-lib-link.js +434 -434
  463. package/fesm2015/pepperi-addons-ngx-lib-list.js +2657 -2657
  464. package/fesm2015/pepperi-addons-ngx-lib-menu.js +314 -314
  465. package/fesm2015/pepperi-addons-ngx-lib-page-layout.js +55 -55
  466. package/fesm2015/pepperi-addons-ngx-lib-profile-data-views-list.js +219 -219
  467. package/fesm2015/pepperi-addons-ngx-lib-quantity-selector.js +549 -549
  468. package/fesm2015/pepperi-addons-ngx-lib-query-builder.js +976 -976
  469. package/fesm2015/pepperi-addons-ngx-lib-rich-html-textarea.js +256 -256
  470. package/fesm2015/pepperi-addons-ngx-lib-search.js +301 -301
  471. package/fesm2015/pepperi-addons-ngx-lib-select.js +241 -242
  472. package/fesm2015/pepperi-addons-ngx-lib-select.js.map +1 -1
  473. package/fesm2015/pepperi-addons-ngx-lib-separator.js +71 -71
  474. package/fesm2015/pepperi-addons-ngx-lib-side-bar.js +154 -154
  475. package/fesm2015/pepperi-addons-ngx-lib-signature.js +267 -267
  476. package/fesm2015/pepperi-addons-ngx-lib-size-detector.js +103 -103
  477. package/fesm2015/pepperi-addons-ngx-lib-slider.js +112 -112
  478. package/fesm2015/pepperi-addons-ngx-lib-smart-filters.js +1351 -1351
  479. package/fesm2015/pepperi-addons-ngx-lib-textarea.js +194 -194
  480. package/fesm2015/pepperi-addons-ngx-lib-textbox-icon.js +78 -78
  481. package/fesm2015/pepperi-addons-ngx-lib-textbox.js +478 -478
  482. package/fesm2015/pepperi-addons-ngx-lib-top-bar.js +125 -125
  483. package/fesm2015/pepperi-addons-ngx-lib.js +4087 -4087
  484. package/fesm2015/pepperi-addons-ngx-lib.js.map +1 -1
  485. package/field-title/field-title.component.d.ts +11 -11
  486. package/field-title/field-title.module.d.ts +5 -5
  487. package/field-title/pepperi-addons-ngx-lib-field-title.d.ts +4 -4
  488. package/field-title/public-api.d.ts +2 -2
  489. package/files-uploader/files-uploader.component.d.ts +53 -53
  490. package/files-uploader/files-uploader.module.d.ts +5 -5
  491. package/files-uploader/pepperi-addons-ngx-lib-files-uploader.d.ts +4 -4
  492. package/files-uploader/public-api.d.ts +2 -2
  493. package/form/field-generator.component.d.ts +36 -36
  494. package/form/form.component.d.ts +88 -88
  495. package/form/form.model.d.ts +20 -20
  496. package/form/form.module.d.ts +5 -5
  497. package/form/indicators.component.d.ts +7 -7
  498. package/form/internal-button.component.d.ts +39 -39
  499. package/form/internal-carusel.component.d.ts +38 -38
  500. package/form/internal-carusel.service.d.ts +7 -7
  501. package/form/internal-list.component.d.ts +92 -92
  502. package/form/internal-menu.component.d.ts +16 -16
  503. package/form/internal-page.component.d.ts +72 -72
  504. package/form/internal-page.service.d.ts +19 -19
  505. package/form/pepperi-addons-ngx-lib-form.d.ts +13 -13
  506. package/form/public-api.d.ts +3 -3
  507. package/group-buttons/group-buttons.component.d.ts +20 -20
  508. package/group-buttons/group-buttons.module.d.ts +5 -5
  509. package/group-buttons/pepperi-addons-ngx-lib-group-buttons.d.ts +4 -4
  510. package/group-buttons/public-api.d.ts +2 -2
  511. package/icon/icon-generated-all.model.d.ts +99 -99
  512. package/icon/icon-generated.model.d.ts +394 -394
  513. package/icon/icon-registry.service.d.ts +6 -6
  514. package/icon/icon.component.d.ts +46 -46
  515. package/icon/icon.module.d.ts +2 -2
  516. package/icon/icon.service.d.ts +10 -10
  517. package/icon/pepperi-addons-ngx-lib-icon.d.ts +4 -4
  518. package/icon/public-api.d.ts +6 -6
  519. package/image/image.component.d.ts +63 -62
  520. package/image/image.module.d.ts +5 -5
  521. package/image/image.service.d.ts +11 -11
  522. package/image/pepperi-addons-ngx-lib-image.d.ts +4 -4
  523. package/image/pepperi-addons-ngx-lib-image.metadata.json +1 -1
  524. package/image/public-api.d.ts +3 -3
  525. package/images-filmstrip/images-filmstrip.component.d.ts +82 -82
  526. package/images-filmstrip/images-filmstrip.module.d.ts +5 -5
  527. package/images-filmstrip/pepperi-addons-ngx-lib-images-filmstrip.d.ts +4 -4
  528. package/images-filmstrip/public-api.d.ts +2 -2
  529. package/link/link.component.d.ts +136 -136
  530. package/link/link.module.d.ts +5 -5
  531. package/link/link.pipes.d.ts +4 -4
  532. package/link/pepperi-addons-ngx-lib-link.d.ts +5 -5
  533. package/link/public-api.d.ts +2 -2
  534. package/list/list-actions.component.d.ts +14 -14
  535. package/list/list-carousel.component.d.ts +36 -36
  536. package/list/list-chooser.component.d.ts +25 -25
  537. package/list/list-pager.component.d.ts +35 -35
  538. package/list/list-sorting.component.d.ts +26 -26
  539. package/list/list-total.component.d.ts +7 -7
  540. package/list/list-views.component.d.ts +31 -31
  541. package/list/list.component.d.ts +159 -159
  542. package/list/list.model.d.ts +30 -30
  543. package/list/list.module.d.ts +5 -5
  544. package/list/list.pipes.d.ts +11 -11
  545. package/list/pepperi-addons-ngx-lib-list.d.ts +6 -6
  546. package/list/public-api.d.ts +10 -10
  547. package/list/virtual-scroller.d.ts +176 -176
  548. package/menu/menu-item.component.d.ts +25 -25
  549. package/menu/menu.component.d.ts +43 -43
  550. package/menu/menu.model.d.ts +25 -25
  551. package/menu/menu.module.d.ts +5 -5
  552. package/menu/pepperi-addons-ngx-lib-menu.d.ts +5 -5
  553. package/menu/public-api.d.ts +3 -3
  554. package/ngx-lib.module.d.ts +2 -2
  555. package/package.json +1 -1
  556. package/page-layout/page-layout.component.d.ts +16 -16
  557. package/page-layout/page-layout.module.d.ts +2 -2
  558. package/page-layout/pepperi-addons-ngx-lib-page-layout.d.ts +4 -4
  559. package/page-layout/public-api.d.ts +2 -2
  560. package/pepperi-addons-ngx-lib.d.ts +8 -8
  561. package/profile-data-views-list/pepperi-addons-ngx-lib-profile-data-views-list.d.ts +4 -4
  562. package/profile-data-views-list/profile-data-view/profile-data-view.component.d.ts +15 -15
  563. package/profile-data-views-list/profile-data-views-card/profile-data-views-card.component.d.ts +21 -21
  564. package/profile-data-views-list/profile-data-views-list.component.d.ts +32 -32
  565. package/profile-data-views-list/profile-data-views-list.model.d.ts +18 -18
  566. package/profile-data-views-list/profile-data-views-list.module.d.ts +5 -5
  567. package/profile-data-views-list/public-api.d.ts +5 -5
  568. package/public-api.d.ts +2 -2
  569. package/quantity-selector/pepperi-addons-ngx-lib-quantity-selector.d.ts +6 -6
  570. package/quantity-selector/public-api.d.ts +2 -2
  571. package/quantity-selector/quantity-selector-validation.directive.d.ts +13 -13
  572. package/quantity-selector/quantity-selector.component.d.ts +96 -96
  573. package/quantity-selector/quantity-selector.module.d.ts +5 -5
  574. package/quantity-selector/quantity-selector.pipes.d.ts +4 -4
  575. package/query-builder/common/model/field.d.ts +8 -8
  576. package/query-builder/common/model/filter.d.ts +6 -6
  577. package/query-builder/common/model/legacy.d.ts +29 -29
  578. package/query-builder/common/model/operator-unit.d.ts +13 -13
  579. package/query-builder/common/model/operator.d.ts +21 -21
  580. package/query-builder/common/model/structure.d.ts +4 -4
  581. package/query-builder/common/model/type-map.d.ts +12 -12
  582. package/query-builder/common/model/type.d.ts +4 -4
  583. package/query-builder/common/services/output-query.service.d.ts +44 -44
  584. package/query-builder/common/services/type-convertor.service.d.ts +10 -10
  585. package/query-builder/pepperi-addons-ngx-lib-query-builder.d.ts +8 -8
  586. package/query-builder/public-api.d.ts +4 -4
  587. package/query-builder/query-builder-item/query-builder-item.component.d.ts +37 -37
  588. package/query-builder/query-builder-section/query-builder-section.component.d.ts +27 -27
  589. package/query-builder/query-builder.component.d.ts +35 -35
  590. package/query-builder/query-builder.module.d.ts +2 -2
  591. package/query-builder/query-builder.service.d.ts +94 -94
  592. package/rich-html-textarea/pepperi-addons-ngx-lib-rich-html-textarea.d.ts +4 -4
  593. package/rich-html-textarea/public-api.d.ts +2 -2
  594. package/rich-html-textarea/rich-html-textarea.component.d.ts +75 -75
  595. package/rich-html-textarea/rich-html-textarea.module.d.ts +5 -5
  596. package/search/pepperi-addons-ngx-lib-search.d.ts +4 -4
  597. package/search/public-api.d.ts +3 -3
  598. package/search/search.component.d.ts +61 -61
  599. package/search/search.model.d.ts +14 -14
  600. package/search/search.module.d.ts +5 -5
  601. package/select/pepperi-addons-ngx-lib-select.d.ts +4 -4
  602. package/select/public-api.d.ts +2 -2
  603. package/select/select.component.d.ts +50 -50
  604. package/select/select.module.d.ts +5 -5
  605. package/separator/pepperi-addons-ngx-lib-separator.d.ts +4 -4
  606. package/separator/public-api.d.ts +2 -2
  607. package/separator/separator.component.d.ts +19 -19
  608. package/separator/separator.module.d.ts +2 -2
  609. package/side-bar/pepperi-addons-ngx-lib-side-bar.d.ts +4 -4
  610. package/side-bar/public-api.d.ts +3 -3
  611. package/side-bar/side-bar.component.d.ts +38 -38
  612. package/side-bar/side-bar.model.d.ts +4 -4
  613. package/side-bar/side-bar.module.d.ts +5 -5
  614. package/signature/pepperi-addons-ngx-lib-signature.d.ts +4 -4
  615. package/signature/public-api.d.ts +2 -2
  616. package/signature/signature.component.d.ts +64 -64
  617. package/signature/signature.module.d.ts +5 -5
  618. package/size-detector/pepperi-addons-ngx-lib-size-detector.d.ts +4 -4
  619. package/size-detector/public-api.d.ts +2 -2
  620. package/size-detector/size-detector.component.d.ts +26 -26
  621. package/size-detector/size-detector.module.d.ts +2 -2
  622. package/slider/pepperi-addons-ngx-lib-slider.d.ts +4 -4
  623. package/slider/public-api.d.ts +2 -2
  624. package/slider/slider.component.d.ts +36 -36
  625. package/slider/slider.module.d.ts +2 -2
  626. package/smart-filters/boolean-filter/boolean-filter.component.d.ts +12 -12
  627. package/smart-filters/common/filter-actions.component.d.ts +9 -9
  628. package/smart-filters/common/model/base-filter-component.d.ts +67 -67
  629. package/smart-filters/common/model/creator.d.ts +6 -6
  630. package/smart-filters/common/model/field.d.ts +69 -69
  631. package/smart-filters/common/model/filter.d.ts +11 -11
  632. package/smart-filters/common/model/operator.d.ts +38 -38
  633. package/smart-filters/common/model/type.d.ts +4 -4
  634. package/smart-filters/date-filter/date-filter.component.d.ts +41 -41
  635. package/smart-filters/multi-select-filter/multi-select-filter.component.d.ts +39 -39
  636. package/smart-filters/number-filter/number-filter.component.d.ts +38 -38
  637. package/smart-filters/pepperi-addons-ngx-lib-smart-filters.d.ts +4 -4
  638. package/smart-filters/public-api.d.ts +14 -14
  639. package/smart-filters/smart-filters.component.d.ts +32 -32
  640. package/smart-filters/smart-filters.module.d.ts +5 -5
  641. package/smart-filters/text-filter/text-filter.component.d.ts +17 -17
  642. package/src/core/style/abstracts/functions.scss +10 -10
  643. package/src/core/style/abstracts/mixins.scss +96 -96
  644. package/src/core/style/base/typography.scss +8 -0
  645. package/textarea/pepperi-addons-ngx-lib-textarea.d.ts +4 -4
  646. package/textarea/public-api.d.ts +2 -2
  647. package/textarea/textarea.component.d.ts +51 -51
  648. package/textarea/textarea.module.d.ts +5 -5
  649. package/textbox/pepperi-addons-ngx-lib-textbox.d.ts +5 -5
  650. package/textbox/public-api.d.ts +2 -2
  651. package/textbox/textbox-validation.directive.d.ts +18 -18
  652. package/textbox/textbox.component.d.ts +131 -131
  653. package/textbox/textbox.module.d.ts +5 -5
  654. package/textbox-icon/pepperi-addons-ngx-lib-textbox-icon.d.ts +4 -4
  655. package/textbox-icon/public-api.d.ts +2 -2
  656. package/textbox-icon/textbox-icon.component.d.ts +10 -10
  657. package/textbox-icon/textbox-icon.module.d.ts +5 -5
  658. package/theming.scss +0 -15
  659. package/top-bar/pepperi-addons-ngx-lib-top-bar.d.ts +4 -4
  660. package/top-bar/public-api.d.ts +3 -3
  661. package/top-bar/top-bar.component.d.ts +36 -36
  662. package/top-bar/top-bar.model.d.ts +4 -4
  663. package/top-bar/top-bar.module.d.ts +5 -5
@@ -4,664 +4,664 @@
4
4
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['pepperi-addons'] = global['pepperi-addons'] || {}, global['pepperi-addons']['ngx-lib'] = global['pepperi-addons']['ngx-lib'] || {}, global['pepperi-addons']['ngx-lib'].menu = {}), global.ng.core, global.ng.common, global.ng.material.core, global.ng.material.formField, global.ng.material.menu, global.ng.material.icon, global['pepperi-addons']['ngx-lib'], global['pepperi-addons']['ngx-lib'].icon, global.ng.animations));
5
5
  }(this, (function (exports, core, common, core$1, formField, menu, icon$1, ngxLib, icon, animations) { 'use strict';
6
6
 
7
- var PepMenuItemParent = /** @class */ (function () {
8
- function PepMenuItemParent(data) {
9
- this.parent = null;
10
- this.key = data.key;
11
- this.parent = data.parent;
12
- }
13
- return PepMenuItemParent;
14
- }());
15
- var PepMenuItem = /** @class */ (function () {
16
- function PepMenuItem(data) {
17
- this.disabled = false;
18
- this.hidden = false;
19
- this.iconName = null;
20
- this.type = 'regular';
21
- this.children = null;
22
- this.parent = null;
23
- Object.assign(this, data);
24
- }
25
- return PepMenuItem;
7
+ var PepMenuItemParent = /** @class */ (function () {
8
+ function PepMenuItemParent(data) {
9
+ this.parent = null;
10
+ this.key = data.key;
11
+ this.parent = data.parent;
12
+ }
13
+ return PepMenuItemParent;
14
+ }());
15
+ var PepMenuItem = /** @class */ (function () {
16
+ function PepMenuItem(data) {
17
+ this.disabled = false;
18
+ this.hidden = false;
19
+ this.iconName = null;
20
+ this.type = 'regular';
21
+ this.children = null;
22
+ this.parent = null;
23
+ Object.assign(this, data);
24
+ }
25
+ return PepMenuItem;
26
26
  }());
27
27
 
28
- var PepMenuComponent = /** @class */ (function () {
29
- function PepMenuComponent(layoutService) {
30
- var _this = this;
31
- this.layoutService = layoutService;
32
- this.text = null;
33
- /**
34
- * The icon name to show on the menu. look in (@link icon -> All icons)
35
- *
36
- * @type {PepIconType} See {@link PepIconType}
37
- * @memberof PepMenuComponent
38
- */
39
- this.iconName = icon.pepIconSystemMenu.name;
40
- this.type = 'action';
41
- this.styleType = 'weak';
42
- this.sizeType = 'md';
43
- this.classNames = '';
44
- this.xPosition = 'after';
45
- this.hideOnEmptyItems = false;
46
- this._items = null;
47
- this.selectedItem = null;
48
- this.disabled = false;
49
- this.stateChange = new core.EventEmitter();
50
- this.menuItemClick = new core.EventEmitter();
51
- this.menuClick = new core.EventEmitter();
52
- this.state = 'hidden';
53
- this.PepScreenSizeType = ngxLib.PepScreenSizeType;
54
- this.displayText = null;
55
- this.layoutService.onResize$.subscribe(function (size) {
56
- _this.screenSize = size;
57
- });
58
- }
59
- Object.defineProperty(PepMenuComponent.prototype, "items", {
60
- get: function () {
61
- return this._items;
62
- },
63
- set: function (items) {
64
- this.setItemsParent(items);
65
- this._items = items;
66
- },
67
- enumerable: false,
68
- configurable: true
69
- });
70
- PepMenuComponent.prototype.setChildrenParent = function (item, parent) {
71
- var _this = this;
72
- item.parent = parent;
73
- if (item.children && item.children.length > 0) {
74
- item.children.forEach(function (child) {
75
- _this.setChildrenParent(child, new PepMenuItemParent(item));
76
- });
77
- }
78
- };
79
- PepMenuComponent.prototype.setItemsParent = function (items) {
80
- var _this = this;
81
- if (items) {
82
- items.forEach(function (item) {
83
- item.parent = null;
84
- if (item.children && item.children.length > 0) {
85
- item.children.forEach(function (child) {
86
- _this.setChildrenParent(child, new PepMenuItemParent(item));
87
- });
88
- }
89
- });
90
- }
91
- };
92
- PepMenuComponent.prototype.updateText = function () {
93
- if (this.type === 'select' || this.type === 'action-select') {
94
- this.displayText = this.selectedItem
95
- ? this.selectedItem.text
96
- : this.text;
97
- }
98
- else {
99
- this.displayText = this.text;
100
- }
101
- };
102
- PepMenuComponent.prototype.ngOnChanges = function (changes) {
103
- if (this.hideOnEmptyItems) {
104
- this.state =
105
- !this.disabled &&
106
- this.items &&
107
- this.items.filter(function (item) { return !item.disabled; }).length > 0
108
- ? 'visible'
109
- : 'hidden';
110
- }
111
- else {
112
- this.state = 'visible';
113
- }
114
- if (this.type === 'select') {
115
- if (this.selectedItem === null &&
116
- this.items &&
117
- this.items.length > 0) {
118
- this.selectedItem = this.items[0];
119
- }
120
- }
121
- this.updateText();
122
- };
123
- PepMenuComponent.prototype.ngOnDestroy = function () {
124
- // if (this.menuItemClick) {
125
- // this.menuItemClick.unsubscribe();
126
- // }
127
- };
128
- PepMenuComponent.prototype.onMenuClicked = function (event) {
129
- this.menuClick.emit();
130
- };
131
- // private manipulateData(menuItem: PepMenuItem) {
132
- // menuItem.children = null;
133
- // if (menuItem.parent) {
134
- // menuItem.parent = new PepMenuItem(menuItem.parent);
135
- // this.manipulateData(menuItem.parent);
136
- // }
137
- // }
138
- PepMenuComponent.prototype.onMenuItemClicked = function (click) {
139
- this.selectedItem = click.source;
140
- this.updateText();
141
- // Manipulate click data because the data is dupplicate in parent.children
142
- // const tmp = new PepMenuItem(click.source);
143
- // this.manipulateData(tmp);
144
- // click.source = tmp;
145
- this.menuItemClick.emit(click);
146
- };
147
- PepMenuComponent.prototype.animationDone = function () {
148
- var _this = this;
149
- if (this.state === 'hidden') {
150
- setTimeout(function () {
151
- _this.stateChange.emit({ state: _this.state });
152
- }, 500);
153
- }
154
- };
155
- PepMenuComponent.prototype.animationStart = function () {
156
- if (this.state === 'visible') {
157
- this.stateChange.emit({ state: this.state });
158
- }
159
- };
160
- return PepMenuComponent;
161
- }());
162
- PepMenuComponent.decorators = [
163
- { type: core.Component, args: [{
164
- selector: 'pep-menu',
165
- template: "<div class=\"menu-container\" dir=\"{{ layoutService.isRtl() ? 'rtl' : 'ltr' }}\">\n\n <ng-container *ngIf=\"hideOnEmptyItems then animationTemplate else regularTemplate\">\n </ng-container>\n <ng-template #animationTemplate>\n <button mat-button class=\"pep-button {{ sizeType }} {{ styleType }} {{ classNames }}\"\n [ngClass]=\"{ 'icon-button': !displayText || screenSize > PepScreenSizeType.SM, 'pep-button-limited-width': screenSize < PepScreenSizeType.XS }\"\n pepRtlDirection pepMenuBlur (click)=\"onMenuClicked($event)\" [@slideInOut]=\"state\"\n (@slideInOut.done)=\"animationDone()\" (@slideInOut.start)=\"animationStart()\"\n [matMenuTriggerFor]=\"menu.childMenu\">\n <ng-container *ngTemplateOutlet=\"triggerTemplate\">\n </ng-container>\n </button>\n <pep-menu-item #menu [type]=\"type\" [items]=\"items\" [selectedItem]=\"selectedItem\" [xPosition]=\"xPosition\"\n (menuItemClick)=\"onMenuItemClicked($event)\">\n </pep-menu-item>\n </ng-template>\n <ng-template #regularTemplate>\n <ng-container *ngIf=\"items then menuTemplate else buttonTemplate\"></ng-container>\n <ng-template #menuTemplate>\n <button mat-button class=\"pep-button {{ sizeType }} {{ styleType }} {{ classNames }}\"\n [ngClass]=\"{ 'icon-button': !displayText || screenSize > PepScreenSizeType.SM, 'pep-button-limited-width': screenSize < PepScreenSizeType.XS, disabled: disabled }\"\n pepRtlDirection pepMenuBlur (menuClick)=\"onMenuClicked($event)\" [disabled]=\"disabled\"\n [matMenuTriggerFor]=\"menu.childMenu\">\n <ng-container *ngTemplateOutlet=\"triggerTemplate\">\n </ng-container>\n </button>\n <pep-menu-item #menu [type]=\"type\" [items]=\"items\" [selectedItem]=\"selectedItem\" [xPosition]=\"xPosition\"\n (menuItemClick)=\"onMenuItemClicked($event)\"></pep-menu-item>\n </ng-template>\n <ng-template #buttonTemplate>\n <button mat-button class=\"pep-button {{ sizeType }} {{ styleType }} {{ classNames }}\"\n [ngClass]=\"{ 'icon-button': !displayText || screenSize > PepScreenSizeType.SM, 'pep-button-limited-width': screenSize < PepScreenSizeType.XS, disabled: disabled }\"\n pepRtlDirection pepMenuBlur (menuClick)=\"onMenuClicked($event)\" [disabled]=\"disabled\">\n <ng-container *ngTemplateOutlet=\"triggerTemplate\">\n </ng-container>\n </button>\n </ng-template>\n </ng-template>\n</div>\n\n<ng-template #triggerTemplate>\n <span *ngIf=\"displayText && screenSize <= PepScreenSizeType.SM\" class=\"ellipsis\"\n [ngClass]=\"{ 'button-title-with-icon': iconName }\" [title]=\"displayText\">\n {{ displayText }}\n </span>\n <mat-icon *ngIf=\"iconName\">\n <pep-icon name=\"{{ iconName }}\"></pep-icon>\n </mat-icon>\n</ng-template>",
166
- animations: [
167
- animations.trigger('slideInOut', [
168
- animations.state('hidden', animations.style({
169
- width: '0px',
170
- padding: '0',
171
- margin: '0',
172
- minWidth: '0px',
173
- opacity: 0,
174
- })),
175
- animations.state('visible', animations.style({
176
- width: 'inherit',
177
- opacity: 1,
178
- })),
179
- animations.transition('close => open', animations.animate('500ms ease-in')),
180
- animations.transition('open => close', animations.animate('500ms ease-out')),
181
- ]),
182
- ],
183
- styles: [".menu-container .pep-button{display:flex;align-items:center;justify-content:center}"]
184
- },] }
185
- ];
186
- PepMenuComponent.ctorParameters = function () { return [
187
- { type: ngxLib.PepLayoutService }
188
- ]; };
189
- PepMenuComponent.propDecorators = {
190
- text: [{ type: core.Input }],
191
- iconName: [{ type: core.Input }],
192
- type: [{ type: core.Input }],
193
- styleType: [{ type: core.Input }],
194
- sizeType: [{ type: core.Input }],
195
- classNames: [{ type: core.Input }],
196
- xPosition: [{ type: core.Input }],
197
- hideOnEmptyItems: [{ type: core.Input }],
198
- items: [{ type: core.Input }],
199
- selectedItem: [{ type: core.Input }],
200
- disabled: [{ type: core.Input }],
201
- stateChange: [{ type: core.Output }],
202
- menuItemClick: [{ type: core.Output }],
203
- menuClick: [{ type: core.Output }]
28
+ var PepMenuComponent = /** @class */ (function () {
29
+ function PepMenuComponent(layoutService) {
30
+ var _this = this;
31
+ this.layoutService = layoutService;
32
+ this.text = null;
33
+ /**
34
+ * The icon name to show on the menu. look in (@link icon -> All icons)
35
+ *
36
+ * @type {PepIconType} See {@link PepIconType}
37
+ * @memberof PepMenuComponent
38
+ */
39
+ this.iconName = icon.pepIconSystemMenu.name;
40
+ this.type = 'action';
41
+ this.styleType = 'weak';
42
+ this.sizeType = 'md';
43
+ this.classNames = '';
44
+ this.xPosition = 'after';
45
+ this.hideOnEmptyItems = false;
46
+ this._items = null;
47
+ this.selectedItem = null;
48
+ this.disabled = false;
49
+ this.stateChange = new core.EventEmitter();
50
+ this.menuItemClick = new core.EventEmitter();
51
+ this.menuClick = new core.EventEmitter();
52
+ this.state = 'hidden';
53
+ this.PepScreenSizeType = ngxLib.PepScreenSizeType;
54
+ this.displayText = null;
55
+ this.layoutService.onResize$.subscribe(function (size) {
56
+ _this.screenSize = size;
57
+ });
58
+ }
59
+ Object.defineProperty(PepMenuComponent.prototype, "items", {
60
+ get: function () {
61
+ return this._items;
62
+ },
63
+ set: function (items) {
64
+ this.setItemsParent(items);
65
+ this._items = items;
66
+ },
67
+ enumerable: false,
68
+ configurable: true
69
+ });
70
+ PepMenuComponent.prototype.setChildrenParent = function (item, parent) {
71
+ var _this = this;
72
+ item.parent = parent;
73
+ if (item.children && item.children.length > 0) {
74
+ item.children.forEach(function (child) {
75
+ _this.setChildrenParent(child, new PepMenuItemParent(item));
76
+ });
77
+ }
78
+ };
79
+ PepMenuComponent.prototype.setItemsParent = function (items) {
80
+ var _this = this;
81
+ if (items) {
82
+ items.forEach(function (item) {
83
+ item.parent = null;
84
+ if (item.children && item.children.length > 0) {
85
+ item.children.forEach(function (child) {
86
+ _this.setChildrenParent(child, new PepMenuItemParent(item));
87
+ });
88
+ }
89
+ });
90
+ }
91
+ };
92
+ PepMenuComponent.prototype.updateText = function () {
93
+ if (this.type === 'select' || this.type === 'action-select') {
94
+ this.displayText = this.selectedItem
95
+ ? this.selectedItem.text
96
+ : this.text;
97
+ }
98
+ else {
99
+ this.displayText = this.text;
100
+ }
101
+ };
102
+ PepMenuComponent.prototype.ngOnChanges = function (changes) {
103
+ if (this.hideOnEmptyItems) {
104
+ this.state =
105
+ !this.disabled &&
106
+ this.items &&
107
+ this.items.filter(function (item) { return !item.disabled; }).length > 0
108
+ ? 'visible'
109
+ : 'hidden';
110
+ }
111
+ else {
112
+ this.state = 'visible';
113
+ }
114
+ if (this.type === 'select') {
115
+ if (this.selectedItem === null &&
116
+ this.items &&
117
+ this.items.length > 0) {
118
+ this.selectedItem = this.items[0];
119
+ }
120
+ }
121
+ this.updateText();
122
+ };
123
+ PepMenuComponent.prototype.ngOnDestroy = function () {
124
+ // if (this.menuItemClick) {
125
+ // this.menuItemClick.unsubscribe();
126
+ // }
127
+ };
128
+ PepMenuComponent.prototype.onMenuClicked = function (event) {
129
+ this.menuClick.emit();
130
+ };
131
+ // private manipulateData(menuItem: PepMenuItem) {
132
+ // menuItem.children = null;
133
+ // if (menuItem.parent) {
134
+ // menuItem.parent = new PepMenuItem(menuItem.parent);
135
+ // this.manipulateData(menuItem.parent);
136
+ // }
137
+ // }
138
+ PepMenuComponent.prototype.onMenuItemClicked = function (click) {
139
+ this.selectedItem = click.source;
140
+ this.updateText();
141
+ // Manipulate click data because the data is dupplicate in parent.children
142
+ // const tmp = new PepMenuItem(click.source);
143
+ // this.manipulateData(tmp);
144
+ // click.source = tmp;
145
+ this.menuItemClick.emit(click);
146
+ };
147
+ PepMenuComponent.prototype.animationDone = function () {
148
+ var _this = this;
149
+ if (this.state === 'hidden') {
150
+ setTimeout(function () {
151
+ _this.stateChange.emit({ state: _this.state });
152
+ }, 500);
153
+ }
154
+ };
155
+ PepMenuComponent.prototype.animationStart = function () {
156
+ if (this.state === 'visible') {
157
+ this.stateChange.emit({ state: this.state });
158
+ }
159
+ };
160
+ return PepMenuComponent;
161
+ }());
162
+ PepMenuComponent.decorators = [
163
+ { type: core.Component, args: [{
164
+ selector: 'pep-menu',
165
+ template: "<div class=\"menu-container\" dir=\"{{ layoutService.isRtl() ? 'rtl' : 'ltr' }}\">\n\n <ng-container *ngIf=\"hideOnEmptyItems then animationTemplate else regularTemplate\">\n </ng-container>\n <ng-template #animationTemplate>\n <button mat-button class=\"pep-button {{ sizeType }} {{ styleType }} {{ classNames }}\"\n [ngClass]=\"{ 'icon-button': !displayText || screenSize > PepScreenSizeType.SM, 'pep-button-limited-width': screenSize < PepScreenSizeType.XS }\"\n pepRtlDirection pepMenuBlur (click)=\"onMenuClicked($event)\" [@slideInOut]=\"state\"\n (@slideInOut.done)=\"animationDone()\" (@slideInOut.start)=\"animationStart()\"\n [matMenuTriggerFor]=\"menu.childMenu\">\n <ng-container *ngTemplateOutlet=\"triggerTemplate\">\n </ng-container>\n </button>\n <pep-menu-item #menu [type]=\"type\" [items]=\"items\" [selectedItem]=\"selectedItem\" [xPosition]=\"xPosition\"\n (menuItemClick)=\"onMenuItemClicked($event)\">\n </pep-menu-item>\n </ng-template>\n <ng-template #regularTemplate>\n <ng-container *ngIf=\"items then menuTemplate else buttonTemplate\"></ng-container>\n <ng-template #menuTemplate>\n <button mat-button class=\"pep-button {{ sizeType }} {{ styleType }} {{ classNames }}\"\n [ngClass]=\"{ 'icon-button': !displayText || screenSize > PepScreenSizeType.SM, 'pep-button-limited-width': screenSize < PepScreenSizeType.XS, disabled: disabled }\"\n pepRtlDirection pepMenuBlur (menuClick)=\"onMenuClicked($event)\" [disabled]=\"disabled\"\n [matMenuTriggerFor]=\"menu.childMenu\">\n <ng-container *ngTemplateOutlet=\"triggerTemplate\">\n </ng-container>\n </button>\n <pep-menu-item #menu [type]=\"type\" [items]=\"items\" [selectedItem]=\"selectedItem\" [xPosition]=\"xPosition\"\n (menuItemClick)=\"onMenuItemClicked($event)\"></pep-menu-item>\n </ng-template>\n <ng-template #buttonTemplate>\n <button mat-button class=\"pep-button {{ sizeType }} {{ styleType }} {{ classNames }}\"\n [ngClass]=\"{ 'icon-button': !displayText || screenSize > PepScreenSizeType.SM, 'pep-button-limited-width': screenSize < PepScreenSizeType.XS, disabled: disabled }\"\n pepRtlDirection pepMenuBlur (menuClick)=\"onMenuClicked($event)\" [disabled]=\"disabled\">\n <ng-container *ngTemplateOutlet=\"triggerTemplate\">\n </ng-container>\n </button>\n </ng-template>\n </ng-template>\n</div>\n\n<ng-template #triggerTemplate>\n <span *ngIf=\"displayText && screenSize <= PepScreenSizeType.SM\" class=\"ellipsis\"\n [ngClass]=\"{ 'button-title-with-icon': iconName }\" [title]=\"displayText\">\n {{ displayText }}\n </span>\n <mat-icon *ngIf=\"iconName\">\n <pep-icon name=\"{{ iconName }}\"></pep-icon>\n </mat-icon>\n</ng-template>",
166
+ animations: [
167
+ animations.trigger('slideInOut', [
168
+ animations.state('hidden', animations.style({
169
+ width: '0px',
170
+ padding: '0',
171
+ margin: '0',
172
+ minWidth: '0px',
173
+ opacity: 0,
174
+ })),
175
+ animations.state('visible', animations.style({
176
+ width: 'inherit',
177
+ opacity: 1,
178
+ })),
179
+ animations.transition('close => open', animations.animate('500ms ease-in')),
180
+ animations.transition('open => close', animations.animate('500ms ease-out')),
181
+ ]),
182
+ ],
183
+ styles: [".menu-container .pep-button{display:flex;align-items:center;justify-content:center}"]
184
+ },] }
185
+ ];
186
+ PepMenuComponent.ctorParameters = function () { return [
187
+ { type: ngxLib.PepLayoutService }
188
+ ]; };
189
+ PepMenuComponent.propDecorators = {
190
+ text: [{ type: core.Input }],
191
+ iconName: [{ type: core.Input }],
192
+ type: [{ type: core.Input }],
193
+ styleType: [{ type: core.Input }],
194
+ sizeType: [{ type: core.Input }],
195
+ classNames: [{ type: core.Input }],
196
+ xPosition: [{ type: core.Input }],
197
+ hideOnEmptyItems: [{ type: core.Input }],
198
+ items: [{ type: core.Input }],
199
+ selectedItem: [{ type: core.Input }],
200
+ disabled: [{ type: core.Input }],
201
+ stateChange: [{ type: core.Output }],
202
+ menuItemClick: [{ type: core.Output }],
203
+ menuClick: [{ type: core.Output }]
204
204
  };
205
205
 
206
- /*! *****************************************************************************
207
- Copyright (c) Microsoft Corporation.
208
-
209
- Permission to use, copy, modify, and/or distribute this software for any
210
- purpose with or without fee is hereby granted.
211
-
212
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
213
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
214
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
215
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
216
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
217
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
218
- PERFORMANCE OF THIS SOFTWARE.
219
- ***************************************************************************** */
220
- /* global Reflect, Promise */
221
- var extendStatics = function (d, b) {
222
- extendStatics = Object.setPrototypeOf ||
223
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
224
- function (d, b) { for (var p in b)
225
- if (Object.prototype.hasOwnProperty.call(b, p))
226
- d[p] = b[p]; };
227
- return extendStatics(d, b);
228
- };
229
- function __extends(d, b) {
230
- if (typeof b !== "function" && b !== null)
231
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
232
- extendStatics(d, b);
233
- function __() { this.constructor = d; }
234
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
235
- }
236
- var __assign = function () {
237
- __assign = Object.assign || function __assign(t) {
238
- for (var s, i = 1, n = arguments.length; i < n; i++) {
239
- s = arguments[i];
240
- for (var p in s)
241
- if (Object.prototype.hasOwnProperty.call(s, p))
242
- t[p] = s[p];
243
- }
244
- return t;
245
- };
246
- return __assign.apply(this, arguments);
247
- };
248
- function __rest(s, e) {
249
- var t = {};
250
- for (var p in s)
251
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
252
- t[p] = s[p];
253
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
254
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
255
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
256
- t[p[i]] = s[p[i]];
257
- }
258
- return t;
259
- }
260
- function __decorate(decorators, target, key, desc) {
261
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
262
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
263
- r = Reflect.decorate(decorators, target, key, desc);
264
- else
265
- for (var i = decorators.length - 1; i >= 0; i--)
266
- if (d = decorators[i])
267
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
268
- return c > 3 && r && Object.defineProperty(target, key, r), r;
269
- }
270
- function __param(paramIndex, decorator) {
271
- return function (target, key) { decorator(target, key, paramIndex); };
272
- }
273
- function __metadata(metadataKey, metadataValue) {
274
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
275
- return Reflect.metadata(metadataKey, metadataValue);
276
- }
277
- function __awaiter(thisArg, _arguments, P, generator) {
278
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
279
- return new (P || (P = Promise))(function (resolve, reject) {
280
- function fulfilled(value) { try {
281
- step(generator.next(value));
282
- }
283
- catch (e) {
284
- reject(e);
285
- } }
286
- function rejected(value) { try {
287
- step(generator["throw"](value));
288
- }
289
- catch (e) {
290
- reject(e);
291
- } }
292
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
293
- step((generator = generator.apply(thisArg, _arguments || [])).next());
294
- });
295
- }
296
- function __generator(thisArg, body) {
297
- var _ = { label: 0, sent: function () { if (t[0] & 1)
298
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
299
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
300
- function verb(n) { return function (v) { return step([n, v]); }; }
301
- function step(op) {
302
- if (f)
303
- throw new TypeError("Generator is already executing.");
304
- while (_)
305
- try {
306
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
307
- return t;
308
- if (y = 0, t)
309
- op = [op[0] & 2, t.value];
310
- switch (op[0]) {
311
- case 0:
312
- case 1:
313
- t = op;
314
- break;
315
- case 4:
316
- _.label++;
317
- return { value: op[1], done: false };
318
- case 5:
319
- _.label++;
320
- y = op[1];
321
- op = [0];
322
- continue;
323
- case 7:
324
- op = _.ops.pop();
325
- _.trys.pop();
326
- continue;
327
- default:
328
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
329
- _ = 0;
330
- continue;
331
- }
332
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
333
- _.label = op[1];
334
- break;
335
- }
336
- if (op[0] === 6 && _.label < t[1]) {
337
- _.label = t[1];
338
- t = op;
339
- break;
340
- }
341
- if (t && _.label < t[2]) {
342
- _.label = t[2];
343
- _.ops.push(op);
344
- break;
345
- }
346
- if (t[2])
347
- _.ops.pop();
348
- _.trys.pop();
349
- continue;
350
- }
351
- op = body.call(thisArg, _);
352
- }
353
- catch (e) {
354
- op = [6, e];
355
- y = 0;
356
- }
357
- finally {
358
- f = t = 0;
359
- }
360
- if (op[0] & 5)
361
- throw op[1];
362
- return { value: op[0] ? op[1] : void 0, done: true };
363
- }
364
- }
365
- var __createBinding = Object.create ? (function (o, m, k, k2) {
366
- if (k2 === undefined)
367
- k2 = k;
368
- Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
369
- }) : (function (o, m, k, k2) {
370
- if (k2 === undefined)
371
- k2 = k;
372
- o[k2] = m[k];
373
- });
374
- function __exportStar(m, o) {
375
- for (var p in m)
376
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
377
- __createBinding(o, m, p);
378
- }
379
- function __values(o) {
380
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
381
- if (m)
382
- return m.call(o);
383
- if (o && typeof o.length === "number")
384
- return {
385
- next: function () {
386
- if (o && i >= o.length)
387
- o = void 0;
388
- return { value: o && o[i++], done: !o };
389
- }
390
- };
391
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
392
- }
393
- function __read(o, n) {
394
- var m = typeof Symbol === "function" && o[Symbol.iterator];
395
- if (!m)
396
- return o;
397
- var i = m.call(o), r, ar = [], e;
398
- try {
399
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
400
- ar.push(r.value);
401
- }
402
- catch (error) {
403
- e = { error: error };
404
- }
405
- finally {
406
- try {
407
- if (r && !r.done && (m = i["return"]))
408
- m.call(i);
409
- }
410
- finally {
411
- if (e)
412
- throw e.error;
413
- }
414
- }
415
- return ar;
416
- }
417
- /** @deprecated */
418
- function __spread() {
419
- for (var ar = [], i = 0; i < arguments.length; i++)
420
- ar = ar.concat(__read(arguments[i]));
421
- return ar;
422
- }
423
- /** @deprecated */
424
- function __spreadArrays() {
425
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
426
- s += arguments[i].length;
427
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
428
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
429
- r[k] = a[j];
430
- return r;
431
- }
432
- function __spreadArray(to, from) {
433
- for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
434
- to[j] = from[i];
435
- return to;
436
- }
437
- function __await(v) {
438
- return this instanceof __await ? (this.v = v, this) : new __await(v);
439
- }
440
- function __asyncGenerator(thisArg, _arguments, generator) {
441
- if (!Symbol.asyncIterator)
442
- throw new TypeError("Symbol.asyncIterator is not defined.");
443
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
444
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
445
- function verb(n) { if (g[n])
446
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
447
- function resume(n, v) { try {
448
- step(g[n](v));
449
- }
450
- catch (e) {
451
- settle(q[0][3], e);
452
- } }
453
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
454
- function fulfill(value) { resume("next", value); }
455
- function reject(value) { resume("throw", value); }
456
- function settle(f, v) { if (f(v), q.shift(), q.length)
457
- resume(q[0][0], q[0][1]); }
458
- }
459
- function __asyncDelegator(o) {
460
- var i, p;
461
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
462
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
463
- }
464
- function __asyncValues(o) {
465
- if (!Symbol.asyncIterator)
466
- throw new TypeError("Symbol.asyncIterator is not defined.");
467
- var m = o[Symbol.asyncIterator], i;
468
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
469
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
470
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
471
- }
472
- function __makeTemplateObject(cooked, raw) {
473
- if (Object.defineProperty) {
474
- Object.defineProperty(cooked, "raw", { value: raw });
475
- }
476
- else {
477
- cooked.raw = raw;
478
- }
479
- return cooked;
480
- }
481
- ;
482
- var __setModuleDefault = Object.create ? (function (o, v) {
483
- Object.defineProperty(o, "default", { enumerable: true, value: v });
484
- }) : function (o, v) {
485
- o["default"] = v;
486
- };
487
- function __importStar(mod) {
488
- if (mod && mod.__esModule)
489
- return mod;
490
- var result = {};
491
- if (mod != null)
492
- for (var k in mod)
493
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
494
- __createBinding(result, mod, k);
495
- __setModuleDefault(result, mod);
496
- return result;
497
- }
498
- function __importDefault(mod) {
499
- return (mod && mod.__esModule) ? mod : { default: mod };
500
- }
501
- function __classPrivateFieldGet(receiver, state, kind, f) {
502
- if (kind === "a" && !f)
503
- throw new TypeError("Private accessor was defined without a getter");
504
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
505
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
506
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
507
- }
508
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
509
- if (kind === "m")
510
- throw new TypeError("Private method is not writable");
511
- if (kind === "a" && !f)
512
- throw new TypeError("Private accessor was defined without a setter");
513
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
514
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
515
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
206
+ /*! *****************************************************************************
207
+ Copyright (c) Microsoft Corporation.
208
+
209
+ Permission to use, copy, modify, and/or distribute this software for any
210
+ purpose with or without fee is hereby granted.
211
+
212
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
213
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
214
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
215
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
216
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
217
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
218
+ PERFORMANCE OF THIS SOFTWARE.
219
+ ***************************************************************************** */
220
+ /* global Reflect, Promise */
221
+ var extendStatics = function (d, b) {
222
+ extendStatics = Object.setPrototypeOf ||
223
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
224
+ function (d, b) { for (var p in b)
225
+ if (Object.prototype.hasOwnProperty.call(b, p))
226
+ d[p] = b[p]; };
227
+ return extendStatics(d, b);
228
+ };
229
+ function __extends(d, b) {
230
+ if (typeof b !== "function" && b !== null)
231
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
232
+ extendStatics(d, b);
233
+ function __() { this.constructor = d; }
234
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
235
+ }
236
+ var __assign = function () {
237
+ __assign = Object.assign || function __assign(t) {
238
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
239
+ s = arguments[i];
240
+ for (var p in s)
241
+ if (Object.prototype.hasOwnProperty.call(s, p))
242
+ t[p] = s[p];
243
+ }
244
+ return t;
245
+ };
246
+ return __assign.apply(this, arguments);
247
+ };
248
+ function __rest(s, e) {
249
+ var t = {};
250
+ for (var p in s)
251
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
252
+ t[p] = s[p];
253
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
254
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
255
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
256
+ t[p[i]] = s[p[i]];
257
+ }
258
+ return t;
259
+ }
260
+ function __decorate(decorators, target, key, desc) {
261
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
262
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
263
+ r = Reflect.decorate(decorators, target, key, desc);
264
+ else
265
+ for (var i = decorators.length - 1; i >= 0; i--)
266
+ if (d = decorators[i])
267
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
268
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
269
+ }
270
+ function __param(paramIndex, decorator) {
271
+ return function (target, key) { decorator(target, key, paramIndex); };
272
+ }
273
+ function __metadata(metadataKey, metadataValue) {
274
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
275
+ return Reflect.metadata(metadataKey, metadataValue);
276
+ }
277
+ function __awaiter(thisArg, _arguments, P, generator) {
278
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
279
+ return new (P || (P = Promise))(function (resolve, reject) {
280
+ function fulfilled(value) { try {
281
+ step(generator.next(value));
282
+ }
283
+ catch (e) {
284
+ reject(e);
285
+ } }
286
+ function rejected(value) { try {
287
+ step(generator["throw"](value));
288
+ }
289
+ catch (e) {
290
+ reject(e);
291
+ } }
292
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
293
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
294
+ });
295
+ }
296
+ function __generator(thisArg, body) {
297
+ var _ = { label: 0, sent: function () { if (t[0] & 1)
298
+ throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
299
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
300
+ function verb(n) { return function (v) { return step([n, v]); }; }
301
+ function step(op) {
302
+ if (f)
303
+ throw new TypeError("Generator is already executing.");
304
+ while (_)
305
+ try {
306
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
307
+ return t;
308
+ if (y = 0, t)
309
+ op = [op[0] & 2, t.value];
310
+ switch (op[0]) {
311
+ case 0:
312
+ case 1:
313
+ t = op;
314
+ break;
315
+ case 4:
316
+ _.label++;
317
+ return { value: op[1], done: false };
318
+ case 5:
319
+ _.label++;
320
+ y = op[1];
321
+ op = [0];
322
+ continue;
323
+ case 7:
324
+ op = _.ops.pop();
325
+ _.trys.pop();
326
+ continue;
327
+ default:
328
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
329
+ _ = 0;
330
+ continue;
331
+ }
332
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
333
+ _.label = op[1];
334
+ break;
335
+ }
336
+ if (op[0] === 6 && _.label < t[1]) {
337
+ _.label = t[1];
338
+ t = op;
339
+ break;
340
+ }
341
+ if (t && _.label < t[2]) {
342
+ _.label = t[2];
343
+ _.ops.push(op);
344
+ break;
345
+ }
346
+ if (t[2])
347
+ _.ops.pop();
348
+ _.trys.pop();
349
+ continue;
350
+ }
351
+ op = body.call(thisArg, _);
352
+ }
353
+ catch (e) {
354
+ op = [6, e];
355
+ y = 0;
356
+ }
357
+ finally {
358
+ f = t = 0;
359
+ }
360
+ if (op[0] & 5)
361
+ throw op[1];
362
+ return { value: op[0] ? op[1] : void 0, done: true };
363
+ }
364
+ }
365
+ var __createBinding = Object.create ? (function (o, m, k, k2) {
366
+ if (k2 === undefined)
367
+ k2 = k;
368
+ Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
369
+ }) : (function (o, m, k, k2) {
370
+ if (k2 === undefined)
371
+ k2 = k;
372
+ o[k2] = m[k];
373
+ });
374
+ function __exportStar(m, o) {
375
+ for (var p in m)
376
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
377
+ __createBinding(o, m, p);
378
+ }
379
+ function __values(o) {
380
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
381
+ if (m)
382
+ return m.call(o);
383
+ if (o && typeof o.length === "number")
384
+ return {
385
+ next: function () {
386
+ if (o && i >= o.length)
387
+ o = void 0;
388
+ return { value: o && o[i++], done: !o };
389
+ }
390
+ };
391
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
392
+ }
393
+ function __read(o, n) {
394
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
395
+ if (!m)
396
+ return o;
397
+ var i = m.call(o), r, ar = [], e;
398
+ try {
399
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
400
+ ar.push(r.value);
401
+ }
402
+ catch (error) {
403
+ e = { error: error };
404
+ }
405
+ finally {
406
+ try {
407
+ if (r && !r.done && (m = i["return"]))
408
+ m.call(i);
409
+ }
410
+ finally {
411
+ if (e)
412
+ throw e.error;
413
+ }
414
+ }
415
+ return ar;
416
+ }
417
+ /** @deprecated */
418
+ function __spread() {
419
+ for (var ar = [], i = 0; i < arguments.length; i++)
420
+ ar = ar.concat(__read(arguments[i]));
421
+ return ar;
422
+ }
423
+ /** @deprecated */
424
+ function __spreadArrays() {
425
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++)
426
+ s += arguments[i].length;
427
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
428
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
429
+ r[k] = a[j];
430
+ return r;
431
+ }
432
+ function __spreadArray(to, from) {
433
+ for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
434
+ to[j] = from[i];
435
+ return to;
436
+ }
437
+ function __await(v) {
438
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
439
+ }
440
+ function __asyncGenerator(thisArg, _arguments, generator) {
441
+ if (!Symbol.asyncIterator)
442
+ throw new TypeError("Symbol.asyncIterator is not defined.");
443
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
444
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
445
+ function verb(n) { if (g[n])
446
+ i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
447
+ function resume(n, v) { try {
448
+ step(g[n](v));
449
+ }
450
+ catch (e) {
451
+ settle(q[0][3], e);
452
+ } }
453
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
454
+ function fulfill(value) { resume("next", value); }
455
+ function reject(value) { resume("throw", value); }
456
+ function settle(f, v) { if (f(v), q.shift(), q.length)
457
+ resume(q[0][0], q[0][1]); }
458
+ }
459
+ function __asyncDelegator(o) {
460
+ var i, p;
461
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
462
+ function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
463
+ }
464
+ function __asyncValues(o) {
465
+ if (!Symbol.asyncIterator)
466
+ throw new TypeError("Symbol.asyncIterator is not defined.");
467
+ var m = o[Symbol.asyncIterator], i;
468
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
469
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
470
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
471
+ }
472
+ function __makeTemplateObject(cooked, raw) {
473
+ if (Object.defineProperty) {
474
+ Object.defineProperty(cooked, "raw", { value: raw });
475
+ }
476
+ else {
477
+ cooked.raw = raw;
478
+ }
479
+ return cooked;
480
+ }
481
+ ;
482
+ var __setModuleDefault = Object.create ? (function (o, v) {
483
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
484
+ }) : function (o, v) {
485
+ o["default"] = v;
486
+ };
487
+ function __importStar(mod) {
488
+ if (mod && mod.__esModule)
489
+ return mod;
490
+ var result = {};
491
+ if (mod != null)
492
+ for (var k in mod)
493
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
494
+ __createBinding(result, mod, k);
495
+ __setModuleDefault(result, mod);
496
+ return result;
497
+ }
498
+ function __importDefault(mod) {
499
+ return (mod && mod.__esModule) ? mod : { default: mod };
500
+ }
501
+ function __classPrivateFieldGet(receiver, state, kind, f) {
502
+ if (kind === "a" && !f)
503
+ throw new TypeError("Private accessor was defined without a getter");
504
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
505
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
506
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
507
+ }
508
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
509
+ if (kind === "m")
510
+ throw new TypeError("Private method is not writable");
511
+ if (kind === "a" && !f)
512
+ throw new TypeError("Private accessor was defined without a setter");
513
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
514
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
515
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
516
516
  }
517
517
 
518
- var PepInternalMenuItem = /** @class */ (function (_super) {
519
- __extends(PepInternalMenuItem, _super);
520
- function PepInternalMenuItem() {
521
- var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
522
- _this.selected = false;
523
- return _this;
524
- }
525
- return PepInternalMenuItem;
526
- }(PepMenuItem));
527
- var PepMenuItemComponent = /** @class */ (function () {
528
- function PepMenuItemComponent() {
529
- this.type = 'action';
530
- this.parent = null;
531
- this.items = [];
532
- this._selectedItem = null;
533
- this.xPosition = 'after';
534
- this.subMenuIconName = icon.pepIconArrowRight.name;
535
- this.menuItemClick = new core.EventEmitter();
536
- }
537
- Object.defineProperty(PepMenuItemComponent.prototype, "selectedItem", {
538
- get: function () {
539
- return this._selectedItem;
540
- },
541
- set: function (selectedItem) {
542
- this.updateSelectedItem(selectedItem);
543
- },
544
- enumerable: false,
545
- configurable: true
546
- });
547
- PepMenuItemComponent.prototype.ngOnDestroy = function () {
548
- // if (this.menuItemClick) {
549
- // this.menuItemClick.unsubscribe();
550
- // }
551
- };
552
- PepMenuItemComponent.prototype.clearSelectedItem = function (selectedItem) {
553
- var _this = this;
554
- if (this.items) {
555
- this.items.forEach(function (item) {
556
- item.selected = (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.key) === item.key;
557
- if (item.children) {
558
- item.children.forEach(function (child) {
559
- _this.clearSelectedChildren(child, selectedItem);
560
- });
561
- }
562
- });
563
- }
564
- };
565
- PepMenuItemComponent.prototype.clearSelectedChildren = function (item, selectedItem) {
566
- var _this = this;
567
- item.selected = (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.key) === item.key;
568
- if (item.children) {
569
- item.children.forEach(function (child) {
570
- _this.clearSelectedChildren(child, selectedItem);
571
- });
572
- }
573
- };
574
- PepMenuItemComponent.prototype.selectParentAndChildren = function (items, parentsKeys) {
575
- if (parentsKeys.length > 0) {
576
- var key_1 = parentsKeys.pop();
577
- var selectedParent = items.find(function (item) { return item.key === key_1; });
578
- if (selectedParent) {
579
- selectedParent.selected = true;
580
- this.selectParentAndChildren(selectedParent.children, parentsKeys);
581
- }
582
- }
583
- };
584
- PepMenuItemComponent.prototype.updateSelectedParent = function (parentItem, parentsKeys) {
585
- parentsKeys.push(parentItem.key);
586
- if (parentItem.parent) {
587
- this.updateSelectedParent(parentItem.parent, parentsKeys);
588
- }
589
- else {
590
- this.selectParentAndChildren(this.items, parentsKeys);
591
- }
592
- };
593
- PepMenuItemComponent.prototype.updateSelectedItem = function (selectedItem) {
594
- this.clearSelectedItem(selectedItem);
595
- this._selectedItem = selectedItem;
596
- if (selectedItem && selectedItem.parent) {
597
- this.updateSelectedParent(selectedItem.parent, []);
598
- }
599
- };
600
- PepMenuItemComponent.prototype.onChildClicked = function (click) {
601
- // click.source.selected = true;
602
- this.menuItemClick.emit(click);
603
- };
604
- PepMenuItemComponent.prototype.onMenuItemClicked = function (item) {
605
- // item.selected = true;
606
- this.menuItemClick.emit({ source: item });
607
- };
608
- return PepMenuItemComponent;
609
- }());
610
- PepMenuItemComponent.decorators = [
611
- { type: core.Component, args: [{
612
- selector: 'pep-menu-item',
613
- template: "<mat-menu #childMenu=\"matMenu\" xPosition=\"{{ xPosition }}\" class=\"pep-{{type}}-menu\">\n <ng-container *ngFor=\"let menuItem of items\">\n <ng-container *ngIf=\"!menuItem.hidden\">\n <ng-container *ngIf=\"menuItem.type === 'splitter'; then splitterBlock; else buttonBlock\"></ng-container>\n <ng-template #splitterBlock>\n <div mat-menu-item class=\"splitter\"></div>\n </ng-template>\n\n <ng-template #buttonBlock>\n <ng-container\n *ngIf=\"type !== 'select' && menuItem.children?.length > 0; then childrenBlock; else regularBlock\">\n </ng-container>\n <ng-template #childrenBlock>\n <button mat-menu-item (click)=\"onMenuItemClicked(menuItem)\" [matMenuTriggerFor]=\"menu.childMenu\"\n title=\"{{ menuItem.text }}\" pepRtlDirection [disabled]=\"menuItem.disabled\"\n [ngClass]=\"{ selected: type === 'action-select' && menuItem.selected, disabled: menuItem.disabled }\">\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: {\n itemIconName: menuItem.iconName,\n itemText: menuItem.text,\n itemType: menuItem.type,\n hasChildren: true\n }\"></ng-container>\n </button>\n <pep-menu-item #menu [type]=\"type\" [items]=\"menuItem.children\" [parent]=\"menuItem\"\n (menuItemClick)=\"onChildClicked($event)\">\n </pep-menu-item>\n </ng-template>\n <ng-template #regularBlock>\n <button mat-menu-item (click)=\"onMenuItemClicked(menuItem)\" title=\"{{ menuItem.text }}\"\n pepRtlDirection [disabled]=\"menuItem.disabled\"\n [ngClass]=\"{ selected: (type === 'select' || type === 'action-select') && menuItem.selected, disabled: menuItem.disabled }\">\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: {\n itemIconName: menuItem.iconName,\n itemText: menuItem.text,\n itemType: menuItem.type,\n hasChildren: false\n }\"></ng-container>\n </button>\n </ng-template>\n </ng-template>\n </ng-container>\n </ng-container>\n</mat-menu>\n\n<ng-template #itemTemplate let-itemIconName=\"itemIconName\" let-itemText=\"itemText\" let-itemType=\"itemType\"\n let-hasChildren=\"hasChildren\">\n <ng-container>\n <mat-icon *ngIf=\"itemIconName\" class=\"pull-left flip\">\n <pep-icon name=\"{{itemIconName}}\"></pep-icon>\n </mat-icon>\n <span *ngIf=\"itemText\" class=\"pull-left flip title ellipsis\"\n [ngClass]=\"{ 'spacing-from-icon': itemIconName, 'spacing-from-submenu-trigger': hasChildren }\"\n [title]=\"itemText\">\n {{ itemText }}\n </span>\n <mat-icon *ngIf=\"hasChildren\" class=\"pull-left flip submenu-trigger\"\n [ngClass]=\"{ 'rotate': xPosition === 'before' }\">\n <pep-icon name=\"{{ subMenuIconName }}\"></pep-icon>\n </mat-icon>\n </ng-container>\n</ng-template>",
614
- styles: [".mat-menu-item-submenu-trigger:after{display:none}.mat-menu-item .title{margin:0 .25rem;margin:0 var(--pep-spacing-xs,.25rem)}.mat-menu-item .title.spacing-from-icon{margin:0 .5rem;margin:0 var(--pep-spacing-sm,.5rem)}.mat-menu-item .title.spacing-from-submenu-trigger{-webkit-padding-end:1rem;padding-inline-end:1rem;-webkit-padding-end:var(--pep-spacing-lg,1rem);padding-inline-end:var(--pep-spacing-lg,1rem)}.mat-menu-item .mat-icon{margin:0}.mat-menu-item .submenu-trigger{position:absolute;right:.5rem;right:var(--pep-spacing-sm,.5rem);width:1rem}.mat-menu-item .submenu-trigger.rotate{transform:rotate(180deg)}.mat-menu-item.splitter{height:1px!important;margin:.5rem 0;margin:var(--pep-spacing-sm,.5rem) 0}.mat-menu-item[dir=rtl] .submenu-trigger{right:unset;left:.5rem;left:var(--pep-spacing-sm,.5rem);transform:rotate(180deg)}.mat-menu-item[dir=rtl] .submenu-trigger.rotate{transform:rotate(0deg)}.mat-menu-item-submenu-trigger:after{width:unset;height:unset;transform:unset}"]
615
- },] }
616
- ];
617
- PepMenuItemComponent.propDecorators = {
618
- type: [{ type: core.Input }],
619
- parent: [{ type: core.Input }],
620
- items: [{ type: core.Input }],
621
- selectedItem: [{ type: core.Input }],
622
- xPosition: [{ type: core.Input }],
623
- subMenuIconName: [{ type: core.Input }],
624
- childMenu: [{ type: core.ViewChild, args: ['childMenu', { static: true },] }],
625
- menuItemClick: [{ type: core.Output }]
518
+ var PepInternalMenuItem = /** @class */ (function (_super) {
519
+ __extends(PepInternalMenuItem, _super);
520
+ function PepInternalMenuItem() {
521
+ var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
522
+ _this.selected = false;
523
+ return _this;
524
+ }
525
+ return PepInternalMenuItem;
526
+ }(PepMenuItem));
527
+ var PepMenuItemComponent = /** @class */ (function () {
528
+ function PepMenuItemComponent() {
529
+ this.type = 'action';
530
+ this.parent = null;
531
+ this.items = [];
532
+ this._selectedItem = null;
533
+ this.xPosition = 'after';
534
+ this.subMenuIconName = icon.pepIconArrowRight.name;
535
+ this.menuItemClick = new core.EventEmitter();
536
+ }
537
+ Object.defineProperty(PepMenuItemComponent.prototype, "selectedItem", {
538
+ get: function () {
539
+ return this._selectedItem;
540
+ },
541
+ set: function (selectedItem) {
542
+ this.updateSelectedItem(selectedItem);
543
+ },
544
+ enumerable: false,
545
+ configurable: true
546
+ });
547
+ PepMenuItemComponent.prototype.ngOnDestroy = function () {
548
+ // if (this.menuItemClick) {
549
+ // this.menuItemClick.unsubscribe();
550
+ // }
551
+ };
552
+ PepMenuItemComponent.prototype.clearSelectedItem = function (selectedItem) {
553
+ var _this = this;
554
+ if (this.items) {
555
+ this.items.forEach(function (item) {
556
+ item.selected = (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.key) === item.key;
557
+ if (item.children) {
558
+ item.children.forEach(function (child) {
559
+ _this.clearSelectedChildren(child, selectedItem);
560
+ });
561
+ }
562
+ });
563
+ }
564
+ };
565
+ PepMenuItemComponent.prototype.clearSelectedChildren = function (item, selectedItem) {
566
+ var _this = this;
567
+ item.selected = (selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.key) === item.key;
568
+ if (item.children) {
569
+ item.children.forEach(function (child) {
570
+ _this.clearSelectedChildren(child, selectedItem);
571
+ });
572
+ }
573
+ };
574
+ PepMenuItemComponent.prototype.selectParentAndChildren = function (items, parentsKeys) {
575
+ if (parentsKeys.length > 0) {
576
+ var key_1 = parentsKeys.pop();
577
+ var selectedParent = items.find(function (item) { return item.key === key_1; });
578
+ if (selectedParent) {
579
+ selectedParent.selected = true;
580
+ this.selectParentAndChildren(selectedParent.children, parentsKeys);
581
+ }
582
+ }
583
+ };
584
+ PepMenuItemComponent.prototype.updateSelectedParent = function (parentItem, parentsKeys) {
585
+ parentsKeys.push(parentItem.key);
586
+ if (parentItem.parent) {
587
+ this.updateSelectedParent(parentItem.parent, parentsKeys);
588
+ }
589
+ else {
590
+ this.selectParentAndChildren(this.items, parentsKeys);
591
+ }
592
+ };
593
+ PepMenuItemComponent.prototype.updateSelectedItem = function (selectedItem) {
594
+ this.clearSelectedItem(selectedItem);
595
+ this._selectedItem = selectedItem;
596
+ if (selectedItem && selectedItem.parent) {
597
+ this.updateSelectedParent(selectedItem.parent, []);
598
+ }
599
+ };
600
+ PepMenuItemComponent.prototype.onChildClicked = function (click) {
601
+ // click.source.selected = true;
602
+ this.menuItemClick.emit(click);
603
+ };
604
+ PepMenuItemComponent.prototype.onMenuItemClicked = function (item) {
605
+ // item.selected = true;
606
+ this.menuItemClick.emit({ source: item });
607
+ };
608
+ return PepMenuItemComponent;
609
+ }());
610
+ PepMenuItemComponent.decorators = [
611
+ { type: core.Component, args: [{
612
+ selector: 'pep-menu-item',
613
+ template: "<mat-menu #childMenu=\"matMenu\" xPosition=\"{{ xPosition }}\" class=\"pep-{{type}}-menu\">\n <ng-container *ngFor=\"let menuItem of items\">\n <ng-container *ngIf=\"!menuItem.hidden\">\n <ng-container *ngIf=\"menuItem.type === 'splitter'; then splitterBlock; else buttonBlock\"></ng-container>\n <ng-template #splitterBlock>\n <div mat-menu-item class=\"splitter\"></div>\n </ng-template>\n\n <ng-template #buttonBlock>\n <ng-container\n *ngIf=\"type !== 'select' && menuItem.children?.length > 0; then childrenBlock; else regularBlock\">\n </ng-container>\n <ng-template #childrenBlock>\n <button mat-menu-item (click)=\"onMenuItemClicked(menuItem)\" [matMenuTriggerFor]=\"menu.childMenu\"\n title=\"{{ menuItem.text }}\" pepRtlDirection [disabled]=\"menuItem.disabled\"\n [ngClass]=\"{ selected: type === 'action-select' && menuItem.selected, disabled: menuItem.disabled }\">\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: {\n itemIconName: menuItem.iconName,\n itemText: menuItem.text,\n itemType: menuItem.type,\n hasChildren: true\n }\"></ng-container>\n </button>\n <pep-menu-item #menu [type]=\"type\" [items]=\"menuItem.children\" [parent]=\"menuItem\"\n (menuItemClick)=\"onChildClicked($event)\">\n </pep-menu-item>\n </ng-template>\n <ng-template #regularBlock>\n <button mat-menu-item (click)=\"onMenuItemClicked(menuItem)\" title=\"{{ menuItem.text }}\"\n pepRtlDirection [disabled]=\"menuItem.disabled\"\n [ngClass]=\"{ selected: (type === 'select' || type === 'action-select') && menuItem.selected, disabled: menuItem.disabled }\">\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: {\n itemIconName: menuItem.iconName,\n itemText: menuItem.text,\n itemType: menuItem.type,\n hasChildren: false\n }\"></ng-container>\n </button>\n </ng-template>\n </ng-template>\n </ng-container>\n </ng-container>\n</mat-menu>\n\n<ng-template #itemTemplate let-itemIconName=\"itemIconName\" let-itemText=\"itemText\" let-itemType=\"itemType\"\n let-hasChildren=\"hasChildren\">\n <ng-container>\n <mat-icon *ngIf=\"itemIconName\" class=\"pull-left flip\">\n <pep-icon name=\"{{itemIconName}}\"></pep-icon>\n </mat-icon>\n <span *ngIf=\"itemText\" class=\"pull-left flip title ellipsis\"\n [ngClass]=\"{ 'spacing-from-icon': itemIconName, 'spacing-from-submenu-trigger': hasChildren }\"\n [title]=\"itemText\">\n {{ itemText }}\n </span>\n <mat-icon *ngIf=\"hasChildren\" class=\"pull-left flip submenu-trigger\"\n [ngClass]=\"{ 'rotate': xPosition === 'before' }\">\n <pep-icon name=\"{{ subMenuIconName }}\"></pep-icon>\n </mat-icon>\n </ng-container>\n</ng-template>",
614
+ styles: [".mat-menu-item-submenu-trigger:after{display:none}.mat-menu-item .title{margin:0 .25rem;margin:0 var(--pep-spacing-xs,.25rem)}.mat-menu-item .title.spacing-from-icon{margin:0 .5rem;margin:0 var(--pep-spacing-sm,.5rem)}.mat-menu-item .title.spacing-from-submenu-trigger{-webkit-padding-end:1rem;padding-inline-end:1rem;-webkit-padding-end:var(--pep-spacing-lg,1rem);padding-inline-end:var(--pep-spacing-lg,1rem)}.mat-menu-item .mat-icon{margin:0}.mat-menu-item .submenu-trigger{position:absolute;right:.5rem;right:var(--pep-spacing-sm,.5rem);width:1rem}.mat-menu-item .submenu-trigger.rotate{transform:rotate(180deg)}.mat-menu-item.splitter{height:1px!important;margin:.5rem 0;margin:var(--pep-spacing-sm,.5rem) 0}.mat-menu-item[dir=rtl] .submenu-trigger{right:unset;left:.5rem;left:var(--pep-spacing-sm,.5rem);transform:rotate(180deg)}.mat-menu-item[dir=rtl] .submenu-trigger.rotate{transform:rotate(0deg)}.mat-menu-item-submenu-trigger:after{width:unset;height:unset;transform:unset}"]
615
+ },] }
616
+ ];
617
+ PepMenuItemComponent.propDecorators = {
618
+ type: [{ type: core.Input }],
619
+ parent: [{ type: core.Input }],
620
+ items: [{ type: core.Input }],
621
+ selectedItem: [{ type: core.Input }],
622
+ xPosition: [{ type: core.Input }],
623
+ subMenuIconName: [{ type: core.Input }],
624
+ childMenu: [{ type: core.ViewChild, args: ['childMenu', { static: true },] }],
625
+ menuItemClick: [{ type: core.Output }]
626
626
  };
627
627
 
628
- var PepMenuModule = /** @class */ (function () {
629
- function PepMenuModule(pepIconRegistry) {
630
- this.pepIconRegistry = pepIconRegistry;
631
- this.pepIconRegistry.registerIcons([
632
- icon.pepIconSystemMenu,
633
- icon.pepIconArrowRight,
634
- ]);
635
- }
636
- return PepMenuModule;
637
- }());
638
- PepMenuModule.decorators = [
639
- { type: core.NgModule, args: [{
640
- imports: [
641
- common.CommonModule,
642
- // Material modules,
643
- core$1.MatCommonModule,
644
- formField.MatFormFieldModule,
645
- menu.MatMenuModule,
646
- icon$1.MatIconModule,
647
- // ngx-lib modules
648
- ngxLib.PepNgxLibModule,
649
- icon.PepIconModule,
650
- ],
651
- exports: [PepMenuComponent],
652
- declarations: [PepMenuComponent, PepMenuItemComponent],
653
- },] }
654
- ];
655
- PepMenuModule.ctorParameters = function () { return [
656
- { type: icon.PepIconRegistry }
628
+ var PepMenuModule = /** @class */ (function () {
629
+ function PepMenuModule(pepIconRegistry) {
630
+ this.pepIconRegistry = pepIconRegistry;
631
+ this.pepIconRegistry.registerIcons([
632
+ icon.pepIconSystemMenu,
633
+ icon.pepIconArrowRight,
634
+ ]);
635
+ }
636
+ return PepMenuModule;
637
+ }());
638
+ PepMenuModule.decorators = [
639
+ { type: core.NgModule, args: [{
640
+ imports: [
641
+ common.CommonModule,
642
+ // Material modules,
643
+ core$1.MatCommonModule,
644
+ formField.MatFormFieldModule,
645
+ menu.MatMenuModule,
646
+ icon$1.MatIconModule,
647
+ // ngx-lib modules
648
+ ngxLib.PepNgxLibModule,
649
+ icon.PepIconModule,
650
+ ],
651
+ exports: [PepMenuComponent],
652
+ declarations: [PepMenuComponent, PepMenuItemComponent],
653
+ },] }
654
+ ];
655
+ PepMenuModule.ctorParameters = function () { return [
656
+ { type: icon.PepIconRegistry }
657
657
  ]; };
658
658
 
659
- /*
660
- * Public API Surface of ngx-lib/menu
659
+ /*
660
+ * Public API Surface of ngx-lib/menu
661
661
  */
662
662
 
663
- /**
664
- * Generated bundle index. Do not edit.
663
+ /**
664
+ * Generated bundle index. Do not edit.
665
665
  */
666
666
 
667
667
  exports.PepMenuComponent = PepMenuComponent;