@pepperi-addons/ngx-composite-lib 0.4.2-beta.99 → 0.5.0-ng16.2

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 (271) hide show
  1. package/color-settings/color-settings.component.d.ts +1 -1
  2. package/core/common/directives/reset-configuration-field.directive.d.ts +1 -1
  3. package/data-view-builder/data-view-builder.component.d.ts +1 -1
  4. package/data-view-builder/data-view-builder.model.d.ts +1 -1
  5. package/data-view-builder/menu-data-view/menu-data-view.component.d.ts +1 -1
  6. package/esm2022/color-settings/color-settings.component.mjs +90 -0
  7. package/{esm2020 → esm2022}/color-settings/color-settings.module.mjs +13 -13
  8. package/esm2022/core/common/directives/reset-configuration-field.directive.mjs +154 -0
  9. package/{esm2020 → esm2022}/core/common/services/dimx.service.mjs +4 -4
  10. package/{esm2020 → esm2022}/core/common/services/utilities.service.mjs +4 -4
  11. package/esm2022/data-view-builder/data-view-builder.component.mjs +126 -0
  12. package/{esm2020 → esm2022}/data-view-builder/data-view-builder.module.mjs +27 -27
  13. package/{esm2020 → esm2022}/data-view-builder/data-view-builder.service.mjs +7 -7
  14. package/{esm2020 → esm2022}/data-view-builder/menu-data-view/menu-data-view.component.mjs +4 -4
  15. package/{esm2020 → esm2022}/file-status-panel/file-status-panel.component.mjs +4 -4
  16. package/esm2022/file-status-panel/file-status-panel.module.mjs +74 -0
  17. package/esm2022/flow-picker-button/flow-picker-button.component.mjs +94 -0
  18. package/{esm2020 → esm2022}/flow-picker-button/flow-picker-button.module.mjs +11 -11
  19. package/{esm2020 → esm2022}/flow-picker-button/flow-picker-button.service.mjs +4 -4
  20. package/esm2022/generic-fields-builder/field-container/field-container.component.mjs +18 -0
  21. package/esm2022/generic-fields-builder/generic-fields-builder.component.mjs +119 -0
  22. package/esm2022/generic-fields-builder/generic-fields-builder.module.mjs +82 -0
  23. package/esm2022/generic-fields-builder/generic-fields-builder.service.mjs +39 -0
  24. package/esm2022/generic-fields-builder/pepperi-addons-ngx-composite-lib-generic-fields-builder.mjs +5 -0
  25. package/esm2022/generic-fields-builder/public-api.mjs +6 -0
  26. package/esm2022/generic-form/generic-form.component.mjs +194 -0
  27. package/{esm2020 → esm2022}/generic-form/generic-form.module.mjs +23 -23
  28. package/{esm2020 → esm2022}/generic-form/generic-form.service.mjs +4 -4
  29. package/esm2022/generic-list/generic-list.component.mjs +583 -0
  30. package/esm2022/generic-list/generic-list.module.mjs +114 -0
  31. package/esm2022/generic-list/generic-list.service.mjs +171 -0
  32. package/esm2022/group-buttons-settings/group-buttons-settings.component.mjs +157 -0
  33. package/{esm2020 → esm2022}/group-buttons-settings/group-buttons-settings.module.mjs +13 -13
  34. package/{esm2020 → esm2022}/icon-picker/icon-picker.component.mjs +4 -4
  35. package/{esm2020 → esm2022}/icon-picker/icon-picker.module.mjs +15 -15
  36. package/{esm2020 → esm2022}/icon-picker/icon-picker.service.mjs +4 -4
  37. package/{esm2020 → esm2022}/layout-builder/hide-in/hide-in.component.mjs +5 -5
  38. package/{esm2020 → esm2022}/layout-builder/hide-in/hide-in.module.mjs +31 -31
  39. package/esm2022/layout-builder/layout/layout.component.mjs +229 -0
  40. package/esm2022/layout-builder/layout/layout.module.mjs +56 -0
  41. package/{esm2020 → esm2022}/layout-builder/layout-builder-editor/layout-builder-editor.component.mjs +4 -4
  42. package/{esm2020 → esm2022}/layout-builder/layout-builder-editor/layout-builder-editor.module.mjs +14 -14
  43. package/esm2022/layout-builder/layout-builder-internal.service.mjs +628 -0
  44. package/esm2022/layout-builder/layout-builder.component.mjs +232 -0
  45. package/esm2022/layout-builder/layout-builder.model.mjs +2 -0
  46. package/{esm2020 → esm2022}/layout-builder/layout-builder.module.mjs +61 -61
  47. package/esm2022/layout-builder/layout-builder.service.mjs +49 -0
  48. package/esm2022/layout-builder/main-editor/main-editor.component.mjs +141 -0
  49. package/{esm2020 → esm2022}/layout-builder/main-editor/main-editor.module.mjs +40 -40
  50. package/esm2022/layout-builder/section/section.component.mjs +376 -0
  51. package/{esm2020 → esm2022}/layout-builder/section/section.module.mjs +16 -16
  52. package/esm2022/layout-builder/section-block/section-block.component.mjs +113 -0
  53. package/{esm2020 → esm2022}/layout-builder/section-block/section-block.module.mjs +11 -11
  54. package/esm2022/layout-builder/section-editor/section-editor.component.mjs +201 -0
  55. package/esm2022/layout-builder/section-editor/section-editor.module.mjs +48 -0
  56. package/esm2022/manage-parameters/manage-parameter/manage-parameter.component.mjs +86 -0
  57. package/esm2022/manage-parameters/manage-parameters.component.mjs +189 -0
  58. package/{esm2020 → esm2022}/manage-parameters/manage-parameters.model.mjs +1 -1
  59. package/{esm2020 → esm2022}/manage-parameters/manage-parameters.module.mjs +15 -15
  60. package/esm2022/manage-parameters/manage-parameters.service.mjs +149 -0
  61. package/esm2022/mapping-parameters/mapping-parameters.component.mjs +44 -0
  62. package/esm2022/mapping-parameters/mapping-parameters.model.mjs +6 -0
  63. package/esm2022/mapping-parameters/mapping-parameters.module.mjs +59 -0
  64. package/esm2022/mapping-parameters/mapping-parameters.service.mjs +37 -0
  65. package/esm2022/mapping-parameters/param-map/param-map.component.mjs +73 -0
  66. package/esm2022/mapping-parameters/pepperi-addons-ngx-composite-lib-mapping-parameters.mjs +5 -0
  67. package/esm2022/mapping-parameters/public-api.mjs +4 -0
  68. package/{esm2020 → esm2022}/ngx-composite-lib.module.mjs +12 -12
  69. package/esm2022/padding-settings/padding-settings.component.mjs +90 -0
  70. package/{esm2020 → esm2022}/padding-settings/padding-settings.model.mjs +3 -3
  71. package/{esm2020 → esm2022}/padding-settings/padding-settings.module.mjs +17 -17
  72. package/esm2022/rich-text/rich-text.component.mjs +154 -0
  73. package/{esm2020 → esm2022}/rich-text/rich-text.module.mjs +15 -15
  74. package/{esm2020 → esm2022}/rich-text/rich-text.service.mjs +4 -4
  75. package/esm2022/shadow-settings/shadow-settings.component.mjs +72 -0
  76. package/{esm2020 → esm2022}/shadow-settings/shadow-settings.module.mjs +15 -15
  77. package/{esm2020 → esm2022}/show-if-badge/show-if-badge.component.mjs +5 -5
  78. package/{esm2020 → esm2022}/show-if-badge/show-if-badge.module.mjs +14 -14
  79. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-composite-lib-color-settings.mjs +24 -24
  80. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-composite-lib-color-settings.mjs.map +1 -1
  81. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-composite-lib-data-view-builder.mjs +53 -53
  82. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-composite-lib-data-view-builder.mjs.map +1 -1
  83. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-composite-lib-file-status-panel.mjs +28 -28
  84. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-composite-lib-file-status-panel.mjs.map +1 -1
  85. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-composite-lib-flow-picker-button.mjs +28 -28
  86. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-composite-lib-flow-picker-button.mjs.map +1 -1
  87. package/fesm2022/pepperi-addons-ngx-composite-lib-generic-fields-builder.mjs +254 -0
  88. package/fesm2022/pepperi-addons-ngx-composite-lib-generic-fields-builder.mjs.map +1 -0
  89. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-composite-lib-generic-form.mjs +37 -37
  90. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-composite-lib-generic-form.mjs.map +1 -1
  91. package/fesm2022/pepperi-addons-ngx-composite-lib-generic-list.mjs +866 -0
  92. package/fesm2022/pepperi-addons-ngx-composite-lib-generic-list.mjs.map +1 -0
  93. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-composite-lib-group-buttons-settings.mjs +26 -26
  94. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-composite-lib-group-buttons-settings.mjs.map +1 -1
  95. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-composite-lib-icon-picker.mjs +20 -20
  96. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-composite-lib-icon-picker.mjs.map +1 -1
  97. package/fesm2022/pepperi-addons-ngx-composite-lib-layout-builder.mjs +2439 -0
  98. package/fesm2022/pepperi-addons-ngx-composite-lib-layout-builder.mjs.map +1 -0
  99. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-composite-lib-manage-parameters.mjs +91 -43
  100. package/fesm2022/pepperi-addons-ngx-composite-lib-manage-parameters.mjs.map +1 -0
  101. package/fesm2022/pepperi-addons-ngx-composite-lib-mapping-parameters.mjs +209 -0
  102. package/fesm2022/pepperi-addons-ngx-composite-lib-mapping-parameters.mjs.map +1 -0
  103. package/fesm2022/pepperi-addons-ngx-composite-lib-padding-settings.mjs +150 -0
  104. package/fesm2022/pepperi-addons-ngx-composite-lib-padding-settings.mjs.map +1 -0
  105. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-composite-lib-rich-text.mjs +28 -28
  106. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-composite-lib-rich-text.mjs.map +1 -1
  107. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-composite-lib-shadow-settings.mjs +25 -25
  108. package/{fesm2015 → fesm2022}/pepperi-addons-ngx-composite-lib-shadow-settings.mjs.map +1 -1
  109. package/fesm2022/pepperi-addons-ngx-composite-lib-show-if-badge.mjs +100 -0
  110. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-composite-lib-show-if-badge.mjs.map +1 -1
  111. package/{fesm2020 → fesm2022}/pepperi-addons-ngx-composite-lib.mjs +40 -40
  112. package/{fesm2015 → fesm2022}/pepperi-addons-ngx-composite-lib.mjs.map +1 -1
  113. package/file-status-panel/file-status-panel.component.d.ts +1 -1
  114. package/file-status-panel/file-status-panel.model.d.ts +1 -1
  115. package/flow-picker-button/flow-picker-button.component.d.ts +1 -1
  116. package/generic-fields-builder/field-container/field-container.component.d.ts +10 -0
  117. package/generic-fields-builder/generic-fields-builder.component.d.ts +46 -0
  118. package/generic-fields-builder/generic-fields-builder.module.d.ts +23 -0
  119. package/generic-fields-builder/generic-fields-builder.service.d.ts +14 -0
  120. package/generic-fields-builder/index.d.ts +5 -0
  121. package/generic-fields-builder/public-api.d.ts +2 -0
  122. package/generic-form/generic-form.component.d.ts +1 -1
  123. package/generic-list/generic-list.component.d.ts +25 -9
  124. package/generic-list/generic-list.module.d.ts +13 -11
  125. package/generic-list/generic-list.service.d.ts +3 -1
  126. package/group-buttons-settings/group-buttons-settings.component.d.ts +1 -1
  127. package/group-buttons-settings/group-buttons-settings.model.d.ts +1 -1
  128. package/icon-picker/icon-picker.component.d.ts +1 -1
  129. package/layout-builder/hide-in/hide-in.component.d.ts +1 -1
  130. package/layout-builder/hide-in/hide-in.component.theme.scss +1 -1
  131. package/layout-builder/layout/layout.component.d.ts +12 -8
  132. package/layout-builder/layout-builder-editor/layout-builder-editor.component.d.ts +1 -1
  133. package/layout-builder/layout-builder-internal.service.d.ts +5 -10
  134. package/layout-builder/layout-builder.component.d.ts +11 -4
  135. package/layout-builder/layout-builder.component.theme.scss +1 -1
  136. package/layout-builder/layout-builder.model.d.ts +3 -3
  137. package/layout-builder/layout-builder.service.d.ts +15 -6
  138. package/layout-builder/main-editor/main-editor.component.d.ts +7 -5
  139. package/layout-builder/section/section.component.d.ts +8 -1
  140. package/layout-builder/section-block/section-block.component.d.ts +1 -1
  141. package/layout-builder/section-editor/section-editor.component.d.ts +4 -1
  142. package/layout-builder/section-editor/section-editor.module.d.ts +3 -2
  143. package/manage-parameters/manage-parameter/manage-parameter.component.d.ts +3 -1
  144. package/manage-parameters/manage-parameters.component.d.ts +10 -3
  145. package/manage-parameters/manage-parameters.model.d.ts +4 -1
  146. package/manage-parameters/manage-parameters.service.d.ts +2 -2
  147. package/mapping-parameters/index.d.ts +5 -0
  148. package/mapping-parameters/mapping-parameters.component.d.ts +19 -0
  149. package/mapping-parameters/mapping-parameters.model.d.ts +8 -0
  150. package/mapping-parameters/mapping-parameters.module.d.ts +18 -0
  151. package/mapping-parameters/mapping-parameters.service.d.ts +12 -0
  152. package/mapping-parameters/param-map/param-map.component.d.ts +27 -0
  153. package/mapping-parameters/public-api.d.ts +3 -0
  154. package/package.json +80 -101
  155. package/padding-settings/padding-settings.component.d.ts +1 -1
  156. package/padding-settings/padding-settings.model.d.ts +2 -2
  157. package/rich-text/rich-text.component.d.ts +1 -1
  158. package/shadow-settings/shadow-settings.component.d.ts +1 -1
  159. package/shadow-settings/shadow-settings.model.d.ts +1 -1
  160. package/show-if-badge/show-if-badge.component.d.ts +1 -1
  161. package/src/assets/i18n/en.ngx-composite-lib.json +22 -2
  162. package/esm2020/color-settings/color-settings.component.mjs +0 -90
  163. package/esm2020/core/common/directives/reset-configuration-field.directive.mjs +0 -154
  164. package/esm2020/data-view-builder/data-view-builder.component.mjs +0 -126
  165. package/esm2020/file-status-panel/file-status-panel.module.mjs +0 -74
  166. package/esm2020/flow-picker-button/flow-picker-button.component.mjs +0 -94
  167. package/esm2020/generic-form/generic-form.component.mjs +0 -194
  168. package/esm2020/generic-list/generic-list.component.mjs +0 -530
  169. package/esm2020/generic-list/generic-list.module.mjs +0 -106
  170. package/esm2020/generic-list/generic-list.service.mjs +0 -146
  171. package/esm2020/group-buttons-settings/group-buttons-settings.component.mjs +0 -157
  172. package/esm2020/layout-builder/layout/layout.component.mjs +0 -204
  173. package/esm2020/layout-builder/layout/layout.module.mjs +0 -54
  174. package/esm2020/layout-builder/layout-builder-internal.service.mjs +0 -628
  175. package/esm2020/layout-builder/layout-builder.component.mjs +0 -201
  176. package/esm2020/layout-builder/layout-builder.model.mjs +0 -2
  177. package/esm2020/layout-builder/layout-builder.service.mjs +0 -36
  178. package/esm2020/layout-builder/main-editor/main-editor.component.mjs +0 -130
  179. package/esm2020/layout-builder/section/section.component.mjs +0 -351
  180. package/esm2020/layout-builder/section-block/section-block.component.mjs +0 -113
  181. package/esm2020/layout-builder/section-editor/section-editor.component.mjs +0 -192
  182. package/esm2020/layout-builder/section-editor/section-editor.module.mjs +0 -44
  183. package/esm2020/manage-parameters/manage-parameter/manage-parameter.component.mjs +0 -82
  184. package/esm2020/manage-parameters/manage-parameters.component.mjs +0 -153
  185. package/esm2020/manage-parameters/manage-parameters.service.mjs +0 -142
  186. package/esm2020/padding-settings/padding-settings.component.mjs +0 -80
  187. package/esm2020/rich-text/rich-text.component.mjs +0 -154
  188. package/esm2020/shadow-settings/shadow-settings.component.mjs +0 -72
  189. package/fesm2015/pepperi-addons-ngx-composite-lib-color-settings.mjs +0 -144
  190. package/fesm2015/pepperi-addons-ngx-composite-lib-color-settings.mjs.map +0 -1
  191. package/fesm2015/pepperi-addons-ngx-composite-lib-data-view-builder.mjs +0 -378
  192. package/fesm2015/pepperi-addons-ngx-composite-lib-data-view-builder.mjs.map +0 -1
  193. package/fesm2015/pepperi-addons-ngx-composite-lib-file-status-panel.mjs +0 -126
  194. package/fesm2015/pepperi-addons-ngx-composite-lib-file-status-panel.mjs.map +0 -1
  195. package/fesm2015/pepperi-addons-ngx-composite-lib-flow-picker-button.mjs +0 -161
  196. package/fesm2015/pepperi-addons-ngx-composite-lib-flow-picker-button.mjs.map +0 -1
  197. package/fesm2015/pepperi-addons-ngx-composite-lib-generic-form.mjs +0 -317
  198. package/fesm2015/pepperi-addons-ngx-composite-lib-generic-form.mjs.map +0 -1
  199. package/fesm2015/pepperi-addons-ngx-composite-lib-generic-list.mjs +0 -801
  200. package/fesm2015/pepperi-addons-ngx-composite-lib-generic-list.mjs.map +0 -1
  201. package/fesm2015/pepperi-addons-ngx-composite-lib-group-buttons-settings.mjs +0 -216
  202. package/fesm2015/pepperi-addons-ngx-composite-lib-group-buttons-settings.mjs.map +0 -1
  203. package/fesm2015/pepperi-addons-ngx-composite-lib-icon-picker.mjs +0 -146
  204. package/fesm2015/pepperi-addons-ngx-composite-lib-icon-picker.mjs.map +0 -1
  205. package/fesm2015/pepperi-addons-ngx-composite-lib-layout-builder.mjs +0 -2345
  206. package/fesm2015/pepperi-addons-ngx-composite-lib-layout-builder.mjs.map +0 -1
  207. package/fesm2015/pepperi-addons-ngx-composite-lib-manage-parameters.mjs +0 -441
  208. package/fesm2015/pepperi-addons-ngx-composite-lib-manage-parameters.mjs.map +0 -1
  209. package/fesm2015/pepperi-addons-ngx-composite-lib-padding-settings.mjs +0 -140
  210. package/fesm2015/pepperi-addons-ngx-composite-lib-padding-settings.mjs.map +0 -1
  211. package/fesm2015/pepperi-addons-ngx-composite-lib-rich-text.mjs +0 -234
  212. package/fesm2015/pepperi-addons-ngx-composite-lib-rich-text.mjs.map +0 -1
  213. package/fesm2015/pepperi-addons-ngx-composite-lib-shadow-settings.mjs +0 -129
  214. package/fesm2015/pepperi-addons-ngx-composite-lib-show-if-badge.mjs +0 -100
  215. package/fesm2015/pepperi-addons-ngx-composite-lib-show-if-badge.mjs.map +0 -1
  216. package/fesm2015/pepperi-addons-ngx-composite-lib.mjs +0 -329
  217. package/fesm2020/pepperi-addons-ngx-composite-lib-generic-list.mjs +0 -780
  218. package/fesm2020/pepperi-addons-ngx-composite-lib-generic-list.mjs.map +0 -1
  219. package/fesm2020/pepperi-addons-ngx-composite-lib-layout-builder.mjs +0 -2322
  220. package/fesm2020/pepperi-addons-ngx-composite-lib-layout-builder.mjs.map +0 -1
  221. package/fesm2020/pepperi-addons-ngx-composite-lib-manage-parameters.mjs.map +0 -1
  222. package/fesm2020/pepperi-addons-ngx-composite-lib-padding-settings.mjs +0 -140
  223. package/fesm2020/pepperi-addons-ngx-composite-lib-padding-settings.mjs.map +0 -1
  224. package/fesm2020/pepperi-addons-ngx-composite-lib-shadow-settings.mjs.map +0 -1
  225. package/fesm2020/pepperi-addons-ngx-composite-lib-show-if-badge.mjs +0 -100
  226. package/fesm2020/pepperi-addons-ngx-composite-lib.mjs.map +0 -1
  227. /package/{esm2020 → esm2022}/color-settings/color-settings.model.mjs +0 -0
  228. /package/{esm2020 → esm2022}/color-settings/pepperi-addons-ngx-composite-lib-color-settings.mjs +0 -0
  229. /package/{esm2020 → esm2022}/color-settings/public-api.mjs +0 -0
  230. /package/{esm2020 → esm2022}/core/common/directives/index.mjs +0 -0
  231. /package/{esm2020 → esm2022}/core/common/directives/public-api.mjs +0 -0
  232. /package/{esm2020 → esm2022}/core/common/index.mjs +0 -0
  233. /package/{esm2020 → esm2022}/core/common/public-api.mjs +0 -0
  234. /package/{esm2020 → esm2022}/core/common/services/index.mjs +0 -0
  235. /package/{esm2020 → esm2022}/core/common/services/public-api.mjs +0 -0
  236. /package/{esm2020 → esm2022}/core/index.mjs +0 -0
  237. /package/{esm2020 → esm2022}/core/public-api.mjs +0 -0
  238. /package/{esm2020 → esm2022}/data-view-builder/data-view-builder.model.mjs +0 -0
  239. /package/{esm2020 → esm2022}/data-view-builder/pepperi-addons-ngx-composite-lib-data-view-builder.mjs +0 -0
  240. /package/{esm2020 → esm2022}/data-view-builder/public-api.mjs +0 -0
  241. /package/{esm2020 → esm2022}/file-status-panel/file-status-panel.model.mjs +0 -0
  242. /package/{esm2020 → esm2022}/file-status-panel/pepperi-addons-ngx-composite-lib-file-status-panel.mjs +0 -0
  243. /package/{esm2020 → esm2022}/file-status-panel/public-api.mjs +0 -0
  244. /package/{esm2020 → esm2022}/flow-picker-button/pepperi-addons-ngx-composite-lib-flow-picker-button.mjs +0 -0
  245. /package/{esm2020 → esm2022}/flow-picker-button/public-api.mjs +0 -0
  246. /package/{esm2020 → esm2022}/generic-form/generic-form.model.mjs +0 -0
  247. /package/{esm2020 → esm2022}/generic-form/pepperi-addons-ngx-composite-lib-generic-form.mjs +0 -0
  248. /package/{esm2020 → esm2022}/generic-form/public-api.mjs +0 -0
  249. /package/{esm2020 → esm2022}/generic-list/generic-list.model.mjs +0 -0
  250. /package/{esm2020 → esm2022}/generic-list/pepperi-addons-ngx-composite-lib-generic-list.mjs +0 -0
  251. /package/{esm2020 → esm2022}/generic-list/public-api.mjs +0 -0
  252. /package/{esm2020 → esm2022}/group-buttons-settings/group-buttons-settings.model.mjs +0 -0
  253. /package/{esm2020 → esm2022}/group-buttons-settings/pepperi-addons-ngx-composite-lib-group-buttons-settings.mjs +0 -0
  254. /package/{esm2020 → esm2022}/group-buttons-settings/public-api.mjs +0 -0
  255. /package/{esm2020 → esm2022}/icon-picker/pepperi-addons-ngx-composite-lib-icon-picker.mjs +0 -0
  256. /package/{esm2020 → esm2022}/icon-picker/public-api.mjs +0 -0
  257. /package/{esm2020 → esm2022}/layout-builder/pepperi-addons-ngx-composite-lib-layout-builder.mjs +0 -0
  258. /package/{esm2020 → esm2022}/layout-builder/public-api.mjs +0 -0
  259. /package/{esm2020 → esm2022}/manage-parameters/pepperi-addons-ngx-composite-lib-manage-parameters.mjs +0 -0
  260. /package/{esm2020 → esm2022}/manage-parameters/public-api.mjs +0 -0
  261. /package/{esm2020 → esm2022}/padding-settings/pepperi-addons-ngx-composite-lib-padding-settings.mjs +0 -0
  262. /package/{esm2020 → esm2022}/padding-settings/public-api.mjs +0 -0
  263. /package/{esm2020 → esm2022}/pepperi-addons-ngx-composite-lib.mjs +0 -0
  264. /package/{esm2020 → esm2022}/public-api.mjs +0 -0
  265. /package/{esm2020 → esm2022}/rich-text/pepperi-addons-ngx-composite-lib-rich-text.mjs +0 -0
  266. /package/{esm2020 → esm2022}/rich-text/public-api.mjs +0 -0
  267. /package/{esm2020 → esm2022}/shadow-settings/pepperi-addons-ngx-composite-lib-shadow-settings.mjs +0 -0
  268. /package/{esm2020 → esm2022}/shadow-settings/public-api.mjs +0 -0
  269. /package/{esm2020 → esm2022}/shadow-settings/shadow-settings.model.mjs +0 -0
  270. /package/{esm2020 → esm2022}/show-if-badge/pepperi-addons-ngx-composite-lib-show-if-badge.mjs +0 -0
  271. /package/{esm2020 → esm2022}/show-if-badge/public-api.mjs +0 -0
@@ -1,2345 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { EventEmitter, Component, Input, Output, NgModule, Injectable, ViewChild, ViewChildren, HostBinding, ElementRef, HostListener } from '@angular/core';
3
- import * as i2 from '@angular/common';
4
- import { CommonModule } from '@angular/common';
5
- import * as i3$2 from '@angular/cdk/drag-drop';
6
- import { moveItemInArray, DragDropModule } from '@angular/cdk/drag-drop';
7
- import { MatCommonModule } from '@angular/material/core';
8
- import * as i2$2 from '@angular/material/tabs';
9
- import { MatTabsModule } from '@angular/material/tabs';
10
- import * as i3$1 from '@pepperi-addons/ngx-lib';
11
- import { PepScreenSizeType, PepGuid, BaseDestroyerDirective, PepNgxLibModule } from '@pepperi-addons/ngx-lib';
12
- import * as i4$2 from '@pepperi-addons/ngx-lib/size-detector';
13
- import { PepSizeDetectorModule } from '@pepperi-addons/ngx-lib/size-detector';
14
- import * as i4$1 from '@pepperi-addons/ngx-lib/button';
15
- import { PepButtonModule } from '@pepperi-addons/ngx-lib/button';
16
- import * as i2$1 from '@pepperi-addons/ngx-lib/dialog';
17
- import { PepDialogData, PepDialogModule, PepDialogActionButton } from '@pepperi-addons/ngx-lib/dialog';
18
- import * as i8 from '@pepperi-addons/ngx-lib/group-buttons';
19
- import { PepGroupButtonsModule } from '@pepperi-addons/ngx-lib/group-buttons';
20
- import * as i5$2 from '@pepperi-addons/ngx-lib/page-layout';
21
- import { PepPageLayoutModule } from '@pepperi-addons/ngx-lib/page-layout';
22
- import * as i6$1 from '@pepperi-addons/ngx-lib/side-bar';
23
- import { PepSideBarComponent, PepSideBarModule } from '@pepperi-addons/ngx-lib/side-bar';
24
- import * as i7 from '@pepperi-addons/ngx-lib/draggable-items';
25
- import { PepDraggableItemsModule } from '@pepperi-addons/ngx-lib/draggable-items';
26
- import * as i5$1 from '@pepperi-addons/ngx-lib/checkbox';
27
- import { PepCheckboxModule } from '@pepperi-addons/ngx-lib/checkbox';
28
- import * as i4$3 from '@pepperi-addons/ngx-lib/select';
29
- import { PepSelectModule } from '@pepperi-addons/ngx-lib/select';
30
- import * as i3$4 from '@pepperi-addons/ngx-lib/textbox';
31
- import { PepTextboxModule } from '@pepperi-addons/ngx-lib/textbox';
32
- import * as i6 from '@pepperi-addons/ngx-composite-lib/group-buttons-settings';
33
- import { PepGroupButtonsSettingsModule } from '@pepperi-addons/ngx-composite-lib/group-buttons-settings';
34
- import { __awaiter } from 'tslib';
35
- import * as i1 from '@ngx-translate/core';
36
- import { TranslateModule } from '@ngx-translate/core';
37
- import * as i3 from '@angular/material/menu';
38
- import { MatMenuModule } from '@angular/material/menu';
39
- import * as i4 from '@angular/material/badge';
40
- import { MatBadgeModule } from '@angular/material/badge';
41
- import * as i5 from '@angular/material/checkbox';
42
- import { MatCheckboxModule } from '@angular/material/checkbox';
43
- import { MatButtonModule } from '@angular/material/button';
44
- import { MatIconModule } from '@angular/material/icon';
45
- import * as i1$1 from '@pepperi-addons/ngx-lib/icon';
46
- import { pepIconSystemView, PepIconModule, pepIconDeviceDesktop, pepIconDeviceTablet, pepIconDeviceMobile } from '@pepperi-addons/ngx-lib/icon';
47
- import { HttpClientModule } from '@angular/common/http';
48
- import * as i3$3 from '@pepperi-addons/ngx-lib/skeleton-loader';
49
- import { PepSkeletonLoaderModule } from '@pepperi-addons/ngx-lib/skeleton-loader';
50
- import { coerceNumberProperty } from '@angular/cdk/coercion';
51
- import { BehaviorSubject } from 'rxjs';
52
- import { distinctUntilChanged, filter } from 'rxjs/operators';
53
- import { OverlayModule } from '@angular/cdk/overlay';
54
- import { PepColorModule } from '@pepperi-addons/ngx-lib/color';
55
- import { PepImageModule } from '@pepperi-addons/ngx-lib/image';
56
- import { MatSliderModule } from '@angular/material/slider';
57
-
58
- class HideInComponent {
59
- constructor(translate) {
60
- this.translate = translate;
61
- this.hideIn = [];
62
- this.hideInChange = new EventEmitter();
63
- this.menuOpened = new EventEmitter();
64
- this.menuClosed = new EventEmitter();
65
- }
66
- ngOnInit() {
67
- var _a, _b, _c;
68
- return __awaiter(this, void 0, void 0, function* () {
69
- // Get the first translation for load all translations.
70
- const desktopTitle = yield this.translate.get('LAYOUT_BUILDER.DESKTOP').toPromise();
71
- this.menuItems = [
72
- { key: 'Landscape', text: desktopTitle, selected: (_a = this.hideIn) === null || _a === void 0 ? void 0 : _a.some(hideIn => hideIn === 'Landscape') },
73
- { key: 'Tablet', text: this.translate.instant('LAYOUT_BUILDER.TABLET'), selected: (_b = this.hideIn) === null || _b === void 0 ? void 0 : _b.some(hideIn => hideIn === 'Tablet') },
74
- { key: 'Phablet', text: this.translate.instant('LAYOUT_BUILDER.MOBILE'), selected: (_c = this.hideIn) === null || _c === void 0 ? void 0 : _c.some(hideIn => hideIn === 'Phablet') }
75
- ];
76
- });
77
- }
78
- onItemClick(event, menuItem) {
79
- menuItem.selected = !menuItem.selected;
80
- const hideIn = this.menuItems.filter(item => item.selected).map(item => item.key);
81
- this.hideInChange.emit(hideIn);
82
- event.stopPropagation();
83
- return false;
84
- }
85
- onMenuOpened() {
86
- this.menuOpened.emit();
87
- }
88
- onMenuClosed() {
89
- this.menuClosed.emit();
90
- }
91
- }
92
- HideInComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: HideInComponent, deps: [{ token: i1.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
93
- HideInComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: HideInComponent, selector: "hide-in", inputs: { hideIn: "hideIn" }, outputs: { hideInChange: "hideInChange", menuOpened: "menuOpened", menuClosed: "menuClosed" }, ngImport: i0, template: "\n<pep-button sizeType=\"xs\" iconName=\"system_view\" [matMenuTriggerFor]=\"menu\" (menuClosed)=\"onMenuClosed()\" (menuOpened)=\"onMenuOpened()\"\n class=\"badge-button\" [ngClass]=\"{ 'none': !hideIn || hideIn.length === 0}\"\n matBadge=\"{{ hideIn?.length }}\" matBadgePosition=\"after\" matBadgeSize=\"small\" \n></pep-button>\n\n<mat-menu #menu=\"matMenu\" class=\"hide-in-menu\">\n <div mat-menu-item class=\"title\" disabled>\n <span>{{('LAYOUT_BUILDER.HIDE_IN.HIDE_IN_TITLE' | translate)}}</span>\n </div>\n <div mat-menu-item class=\"splitter\"></div>\n <ng-container *ngFor=\"let menuItem of menuItems\">\n <button mat-menu-item (click)=\"onItemClick($event, menuItem)\" title=\"{{ menuItem.text }}\">\n <mat-checkbox type=\"checkbox\" title=\"{{ menuItem.text }}\" class=\"md\"\n (change)=\"onItemClick($event, menuItem)\" [checked]=\"menuItem.selected\">\n <span class=\"pull-left flip title ellipsis\">{{ menuItem.text }}</span>\n </mat-checkbox>\n </button>\n </ng-container>\n</mat-menu>\n", styles: [".hide-in-menu .mat-menu-item.splitter{margin-inline:var(--pep-spacing-sm, .5rem)}.mat-menu-item ::ng-deep .mat-checkbox-layout .mat-checkbox-inner-container{margin-inline-end:var(--pep-spacing-xs, .25rem)!important}.badge-button .mat-badge-content{font-weight:var(--pep-font-weight-bold, 600);background:hsl(var(--pep-color-strong-h, 78),var(--pep-color-strong-s, 87%),var(--pep-color-strong-l, 27%));box-shadow:var(--pep-shadow-sm-offset, 0 .25rem .5rem 0) hsla(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%),.08);color:hsl(var(--pep-color-system-primary-invert-h, 255),var(--pep-color-system-primary-invert-s, 100%),var(--pep-color-system-primary-invert-l, 100%));background-color:hsl(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%))!important;box-shadow:var(--pep-shadow-sm-offset, 0 .25rem .5rem 0) hsla(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%),.32)}.badge-button .mat-badge-content .svg-icon{fill:hsl(var(--pep-color-system-primary-invert-h, 255),var(--pep-color-system-primary-invert-s, 100%),var(--pep-color-system-primary-invert-l, 100%))}.badge-button .mat-badge-content .svg-icon.stroke{fill:unset;stroke:hsl(var(--pep-color-system-primary-invert-h, 255),var(--pep-color-system-primary-invert-s, 100%),var(--pep-color-system-primary-invert-l, 100%))}.badge-button.none ::ng-deep .mat-badge-content{display:none}.badge-button ::ng-deep .mat-badge-content{z-index:1;right:-4px!important}\n", ".hide-in-menu .mat-menu-item.title{color:hsla(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%),.7)}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i3.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "component", type: i3.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i3.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { kind: "directive", type: i4.MatBadge, selector: "[matBadge]", inputs: ["matBadgeDisabled", "matBadgeColor", "matBadgeOverlap", "matBadgePosition", "matBadge", "matBadgeDescription", "matBadgeSize", "matBadgeHidden"] }, { kind: "component", type: i5.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }, { kind: "component", type: i4$1.PepButtonComponent, selector: "pep-button", inputs: ["key", "value", "styleType", "styleStateType", "sizeType", "classNames", "disabled", "iconName", "iconPosition", "visible"], outputs: ["buttonClick"] }, { kind: "pipe", type: i1.TranslatePipe, name: "translate" }] });
94
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: HideInComponent, decorators: [{
95
- type: Component,
96
- args: [{ selector: 'hide-in', template: "\n<pep-button sizeType=\"xs\" iconName=\"system_view\" [matMenuTriggerFor]=\"menu\" (menuClosed)=\"onMenuClosed()\" (menuOpened)=\"onMenuOpened()\"\n class=\"badge-button\" [ngClass]=\"{ 'none': !hideIn || hideIn.length === 0}\"\n matBadge=\"{{ hideIn?.length }}\" matBadgePosition=\"after\" matBadgeSize=\"small\" \n></pep-button>\n\n<mat-menu #menu=\"matMenu\" class=\"hide-in-menu\">\n <div mat-menu-item class=\"title\" disabled>\n <span>{{('LAYOUT_BUILDER.HIDE_IN.HIDE_IN_TITLE' | translate)}}</span>\n </div>\n <div mat-menu-item class=\"splitter\"></div>\n <ng-container *ngFor=\"let menuItem of menuItems\">\n <button mat-menu-item (click)=\"onItemClick($event, menuItem)\" title=\"{{ menuItem.text }}\">\n <mat-checkbox type=\"checkbox\" title=\"{{ menuItem.text }}\" class=\"md\"\n (change)=\"onItemClick($event, menuItem)\" [checked]=\"menuItem.selected\">\n <span class=\"pull-left flip title ellipsis\">{{ menuItem.text }}</span>\n </mat-checkbox>\n </button>\n </ng-container>\n</mat-menu>\n", styles: [".hide-in-menu .mat-menu-item.splitter{margin-inline:var(--pep-spacing-sm, .5rem)}.mat-menu-item ::ng-deep .mat-checkbox-layout .mat-checkbox-inner-container{margin-inline-end:var(--pep-spacing-xs, .25rem)!important}.badge-button .mat-badge-content{font-weight:var(--pep-font-weight-bold, 600);background:hsl(var(--pep-color-strong-h, 78),var(--pep-color-strong-s, 87%),var(--pep-color-strong-l, 27%));box-shadow:var(--pep-shadow-sm-offset, 0 .25rem .5rem 0) hsla(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%),.08);color:hsl(var(--pep-color-system-primary-invert-h, 255),var(--pep-color-system-primary-invert-s, 100%),var(--pep-color-system-primary-invert-l, 100%));background-color:hsl(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%))!important;box-shadow:var(--pep-shadow-sm-offset, 0 .25rem .5rem 0) hsla(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%),.32)}.badge-button .mat-badge-content .svg-icon{fill:hsl(var(--pep-color-system-primary-invert-h, 255),var(--pep-color-system-primary-invert-s, 100%),var(--pep-color-system-primary-invert-l, 100%))}.badge-button .mat-badge-content .svg-icon.stroke{fill:unset;stroke:hsl(var(--pep-color-system-primary-invert-h, 255),var(--pep-color-system-primary-invert-s, 100%),var(--pep-color-system-primary-invert-l, 100%))}.badge-button.none ::ng-deep .mat-badge-content{display:none}.badge-button ::ng-deep .mat-badge-content{z-index:1;right:-4px!important}\n", ".hide-in-menu .mat-menu-item.title{color:hsla(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%),.7)}\n"] }]
97
- }], ctorParameters: function () { return [{ type: i1.TranslateService }]; }, propDecorators: { hideIn: [{
98
- type: Input
99
- }], hideInChange: [{
100
- type: Output
101
- }], menuOpened: [{
102
- type: Output
103
- }], menuClosed: [{
104
- type: Output
105
- }] } });
106
-
107
- class HideInModule {
108
- constructor(pepIconRegistry) {
109
- this.pepIconRegistry = pepIconRegistry;
110
- this.pepIconRegistry.registerIcons([
111
- pepIconSystemView,
112
- ]);
113
- }
114
- }
115
- HideInModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: HideInModule, deps: [{ token: i1$1.PepIconRegistry }], target: i0.ɵɵFactoryTarget.NgModule });
116
- HideInModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: HideInModule, declarations: [HideInComponent], imports: [CommonModule,
117
- MatButtonModule,
118
- MatMenuModule,
119
- MatIconModule,
120
- MatBadgeModule,
121
- MatCheckboxModule,
122
- PepButtonModule,
123
- PepCheckboxModule,
124
- PepIconModule, i1.TranslateModule], exports: [HideInComponent] });
125
- HideInModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: HideInModule, imports: [CommonModule,
126
- MatButtonModule,
127
- MatMenuModule,
128
- MatIconModule,
129
- MatBadgeModule,
130
- MatCheckboxModule,
131
- PepButtonModule,
132
- PepCheckboxModule,
133
- PepIconModule,
134
- TranslateModule.forChild()
135
- // ({
136
- // loader: {
137
- // provide: TranslateLoader,
138
- // useFactory: (addonService: PepAddonService) =>
139
- // PepAddonService.createMultiTranslateLoader(addonService, ['ngx-lib', 'ngx-composite-lib']),
140
- // deps: [PepAddonService]
141
- // }, isolate: false
142
- // }),
143
- ] });
144
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: HideInModule, decorators: [{
145
- type: NgModule,
146
- args: [{
147
- declarations: [HideInComponent],
148
- imports: [
149
- CommonModule,
150
- MatButtonModule,
151
- MatMenuModule,
152
- MatIconModule,
153
- MatBadgeModule,
154
- MatCheckboxModule,
155
- PepButtonModule,
156
- PepCheckboxModule,
157
- PepIconModule,
158
- TranslateModule.forChild()
159
- // ({
160
- // loader: {
161
- // provide: TranslateLoader,
162
- // useFactory: (addonService: PepAddonService) =>
163
- // PepAddonService.createMultiTranslateLoader(addonService, ['ngx-lib', 'ngx-composite-lib']),
164
- // deps: [PepAddonService]
165
- // }, isolate: false
166
- // }),
167
- ],
168
- exports: [HideInComponent]
169
- }]
170
- }], ctorParameters: function () { return [{ type: i1$1.PepIconRegistry }]; } });
171
-
172
- class LayoutBuilderInternalService {
173
- constructor(translate, dialogService, layoutService) {
174
- this.translate = translate;
175
- this.dialogService = dialogService;
176
- this.layoutService = layoutService;
177
- this._defaultSectionTitle = '';
178
- // This configuration is for blocks behavior.
179
- this._blocksLimitNumber = 0;
180
- this._navigateToEditorAfterBlockAdded = false;
181
- this._getBlockTitle = (blockKey) => { return blockKey; };
182
- this._editorsBreadCrumb = Array();
183
- this._editMode = false;
184
- this._editableState = false;
185
- // This subject is for the screen size change events.
186
- this._screenSizeSubject = new BehaviorSubject(undefined);
187
- // This subject is for demostrate the container size (Usage only in edit mode).
188
- this._screenWidthSubject = new BehaviorSubject('100%');
189
- // This subject is for load the current editor (Usage only in edit mode).
190
- this._editorSubject = new BehaviorSubject(null);
191
- // This is the sections columns drop list subject.
192
- this._sectionsColumnsDropListSubject = new BehaviorSubject([]);
193
- // This is the sections subject (a pare from the layout view object)
194
- this._sectionsViewSubject = new BehaviorSubject([]);
195
- // This subject is for layout view change.
196
- this._layoutViewSubject = new BehaviorSubject(null);
197
- // This subject is for edit mode when block is dragging now or not.
198
- this._draggingBlockKey = new BehaviorSubject('');
199
- // This subject is for edit mode when section is dragging now or not.
200
- this._draggingSectionKey = new BehaviorSubject('');
201
- // This subject is for lock or unlock the screen (Usage only in edit mode).
202
- this._lockScreenSubject = new BehaviorSubject(false);
203
- // This is for control the preview mode (for load the blocks with the CPI events)
204
- this._previewModeSubject = new BehaviorSubject(false);
205
- // This is for editor mode for block added.
206
- this._blockAddedEventSubject = new BehaviorSubject(null);
207
- // This is for editor mode for blocks removed.
208
- this._blocksRemovedEventSubject = new BehaviorSubject([]);
209
- // This subject is for skeleton.
210
- this._showSkeletonSubject = new BehaviorSubject(true);
211
- //
212
- this.translate.get('LAYOUT_BUILDER.SECTION').subscribe((res) => {
213
- // Set the default section name.
214
- this._defaultSectionTitle = res;
215
- });
216
- this.layoutService.onResize$.subscribe((size) => {
217
- this.notifyScreenSizeChange(size);
218
- });
219
- }
220
- setBlocksConfig(value) {
221
- var _a;
222
- this._blocksLimitNumber = value.blocksLimitNumber || 0;
223
- this._navigateToEditorAfterBlockAdded = (_a = value.navigateToEditorAfterBlockAdded) !== null && _a !== void 0 ? _a : false;
224
- this._getBlockTitle = value.getBlockTitle ? value.getBlockTitle : (blockKey) => { return blockKey; };
225
- }
226
- get editMode() {
227
- return this._editMode;
228
- }
229
- setEditMode(value) {
230
- this._editMode = value;
231
- this.setEditableState();
232
- }
233
- get editableState() {
234
- return this._editableState;
235
- }
236
- get screenSizeChange$() {
237
- return this._screenSizeSubject.asObservable().pipe(distinctUntilChanged());
238
- }
239
- get screenWidthChange$() {
240
- return this._screenWidthSubject.asObservable().pipe(distinctUntilChanged());
241
- }
242
- get editorChange$() {
243
- return this._editorSubject.asObservable().pipe(distinctUntilChanged());
244
- }
245
- get sectionsColumnsDropListChange$() {
246
- return this._sectionsColumnsDropListSubject.asObservable();
247
- }
248
- get sectionsChange$() {
249
- return this._sectionsViewSubject.asObservable();
250
- // (prevSections, nextSections) => JSON.stringify(prevSections) === JSON.stringify(nextSections)));
251
- }
252
- get layoutViewChange$() {
253
- return this._layoutViewSubject.asObservable().pipe(filter(layout => !!layout));
254
- }
255
- get draggingBlockKey() {
256
- return this._draggingBlockKey.asObservable().pipe(distinctUntilChanged());
257
- }
258
- get draggingSectionKey() {
259
- return this._draggingSectionKey.asObservable().pipe(distinctUntilChanged());
260
- }
261
- get lockScreenChange$() {
262
- return this._lockScreenSubject.asObservable().pipe(distinctUntilChanged());
263
- }
264
- get previewModeChange$() {
265
- return this._previewModeSubject.asObservable().pipe(distinctUntilChanged());
266
- }
267
- get blockAddedEventSubject$() {
268
- return this._blockAddedEventSubject.asObservable();
269
- }
270
- get blocksRemovedEventSubject$() {
271
- return this._blocksRemovedEventSubject.asObservable();
272
- }
273
- get showSkeletonChange$() {
274
- return this._showSkeletonSubject.asObservable().pipe(distinctUntilChanged());
275
- }
276
- setEditableState() {
277
- this._editableState = this.editMode && !this._previewModeSubject.getValue();
278
- }
279
- notifyLayoutViewChange(layoutViewToUpdate) {
280
- if (layoutViewToUpdate) {
281
- if (this.editMode) {
282
- this.updateLayoutEditorProperties(layoutViewToUpdate);
283
- }
284
- // Update the layout for the view.
285
- this._layoutViewSubject.next(layoutViewToUpdate);
286
- // Update the sections for the view.
287
- this._sectionsViewSubject.next((layoutViewToUpdate === null || layoutViewToUpdate === void 0 ? void 0 : layoutViewToUpdate.Layout.Sections) || []);
288
- }
289
- }
290
- notifyBlockAdded(blockAddedEventData) {
291
- // Notify that the block is added (to raise the event for the client).
292
- this._blockAddedEventSubject.next(blockAddedEventData);
293
- }
294
- notifyBlocksRemoved(keys) {
295
- if (keys) {
296
- // Notify that the blocks are removed (to raise the event for the client).
297
- this._blocksRemovedEventSubject.next(keys);
298
- }
299
- }
300
- notifyEditorChange(editor) {
301
- this._editorSubject.next(editor);
302
- }
303
- notifyPreviewModeChange(value) {
304
- this._previewModeSubject.next(value);
305
- this.setEditableState();
306
- }
307
- notifyLockScreen(value) {
308
- this._lockScreenSubject.next(value);
309
- }
310
- notifySectionsColumnsDropListChange(sectionsColumnsDropList) {
311
- this._sectionsColumnsDropListSubject.next(sectionsColumnsDropList);
312
- }
313
- notifyScreenSizeChange(size) {
314
- this._screenSizeSubject.next(size);
315
- }
316
- updateLayoutEditorProperties(layoutView) {
317
- if (this._editorsBreadCrumb[0]) {
318
- const layoutEditor = {
319
- maxWidth: (layoutView === null || layoutView === void 0 ? void 0 : layoutView.Layout.MaxWidth) || 0,
320
- verticalSpacing: layoutView === null || layoutView === void 0 ? void 0 : layoutView.Layout.VerticalSpacing,
321
- horizontalSpacing: layoutView === null || layoutView === void 0 ? void 0 : layoutView.Layout.HorizontalSpacing,
322
- sectionsGap: layoutView === null || layoutView === void 0 ? void 0 : layoutView.Layout.SectionsGap,
323
- columnsGap: layoutView === null || layoutView === void 0 ? void 0 : layoutView.Layout.ColumnsGap,
324
- // roundedCorners: layoutView?.Layout.RoundedCorners
325
- };
326
- this._editorsBreadCrumb[0].hostObject = layoutEditor;
327
- }
328
- }
329
- loadDefaultEditor(layoutView) {
330
- this._editorsBreadCrumb = new Array();
331
- if (layoutView) {
332
- this.translate.get('LAYOUT_BUILDER.DEFAULT_TITLE').subscribe((title) => {
333
- this._editorsBreadCrumb.push({
334
- id: LayoutBuilderInternalService.MAIN_EDITOR_ID,
335
- type: 'layout-builder',
336
- title: title,
337
- // hostObject: {} // Updates in updateLayoutEditorProperties function above.
338
- });
339
- this.updateLayoutEditorProperties(layoutView);
340
- this.notifyEditorChange(this._editorsBreadCrumb[0]);
341
- });
342
- }
343
- else {
344
- this.notifyEditorChange(null);
345
- }
346
- }
347
- changeCurrentEditor() {
348
- if (this._editorsBreadCrumb.length > 0) {
349
- this.notifyEditorChange(this._editorsBreadCrumb[this._editorsBreadCrumb.length - 1]);
350
- }
351
- }
352
- getEditorByType(editorType, id, title = '') {
353
- // Build editor object.
354
- let editor = null;
355
- if (editorType === 'section') {
356
- editor = this.getSectionEditor(id, title);
357
- }
358
- else if (editorType === 'block') {
359
- editor = this.getBlockEditor(id, title);
360
- }
361
- return editor;
362
- }
363
- getBlockEditor(blockKey, title) {
364
- // Get block editor title.
365
- const blockTitle = title || this.getBlockTitle(blockKey);
366
- return {
367
- id: blockKey,
368
- type: 'block',
369
- title: blockTitle
370
- };
371
- }
372
- getSectionEditorTitle(section, sectionIndex) {
373
- return section.Name || `${this._defaultSectionTitle} ${sectionIndex + 1}`;
374
- }
375
- getSectionEditor(sectionId, title) {
376
- var _a, _b;
377
- const layoutView = this._layoutViewSubject.getValue();
378
- const sections = (layoutView === null || layoutView === void 0 ? void 0 : layoutView.Layout.Sections) || [];
379
- const sectionIndex = sections.findIndex(section => section.Key === sectionId);
380
- if (sectionIndex >= 0) {
381
- const section = sections[sectionIndex];
382
- const sectionEditor = {
383
- id: section.Key,
384
- sectionName: section.Name || '',
385
- split: section.Split || undefined,
386
- height: section.Height || 0,
387
- collapseOnTablet: (_a = section.CollapseOnTablet) !== null && _a !== void 0 ? _a : false,
388
- fillHeight: (_b = section.FillHeight) !== null && _b !== void 0 ? _b : false
389
- };
390
- return {
391
- id: sectionId,
392
- type: 'section',
393
- title: title || this.getSectionEditorTitle(section, sectionIndex),
394
- hostObject: sectionEditor
395
- };
396
- }
397
- else {
398
- return null;
399
- }
400
- }
401
- getSectionColumnByIdForEditor(sectionColumnId) {
402
- let currentColumn = null;
403
- // Get the section and column array by the pattern of the section column key.
404
- const sectionColumnPatternSeparator = this.getSectionColumnKey();
405
- const sectionColumnArr = sectionColumnId.split(sectionColumnPatternSeparator);
406
- if (sectionColumnArr.length === 2) {
407
- const layoutView = this._layoutViewSubject.getValue();
408
- const sections = (layoutView === null || layoutView === void 0 ? void 0 : layoutView.Layout.Sections) || [];
409
- // Get the section id to get the section index.
410
- const sectionId = sectionColumnArr[0];
411
- const sectionIndex = sections.findIndex(section => section.Key === sectionId);
412
- // Get the column index.
413
- const columnIndex = coerceNumberProperty(sectionColumnArr[1], -1);
414
- if (sectionIndex >= 0 && columnIndex >= 0) {
415
- currentColumn = sections[sectionIndex].Columns[columnIndex];
416
- }
417
- }
418
- return currentColumn;
419
- }
420
- getCssScreenWidh(screenType) {
421
- let widthToSet = '100%';
422
- if (screenType === 'Tablet') {
423
- widthToSet = '720';
424
- }
425
- else if (screenType === 'Phablet') {
426
- widthToSet = '360';
427
- }
428
- return widthToSet;
429
- }
430
- getBlocksNumber() {
431
- var _a, _b;
432
- let blocksNumber = 0;
433
- const sections = ((_a = this._layoutViewSubject.getValue()) === null || _a === void 0 ? void 0 : _a.Layout.Sections) || [];
434
- for (let index = 0; index < sections.length; index++) {
435
- const section = sections[index];
436
- for (let columnIndex = 0; columnIndex < section.Columns.length; columnIndex++) {
437
- const column = section.Columns[columnIndex];
438
- if (column.BlockContainer && ((_b = column.BlockContainer.BlockKey) === null || _b === void 0 ? void 0 : _b.length) > 0) {
439
- blocksNumber++;
440
- }
441
- }
442
- }
443
- return blocksNumber;
444
- }
445
- changeCursorOnDragStart() {
446
- document.body.classList.add('inheritCursors');
447
- document.body.style.cursor = 'grabbing';
448
- }
449
- changeCursorOnDragEnd() {
450
- document.body.classList.remove('inheritCursors');
451
- document.body.style.cursor = 'unset';
452
- }
453
- /***********************************************************************************************/
454
- /* Public functions
455
- /***********************************************************************************************/
456
- getBlockTitle(blockKey) {
457
- return this._getBlockTitle(blockKey) || blockKey;
458
- }
459
- setSectionsColumnsDropListChange(sectionsColumnsDropList) {
460
- this.notifySectionsColumnsDropListChange(sectionsColumnsDropList);
461
- }
462
- changePreviewMode(value) {
463
- this.notifyPreviewModeChange(value);
464
- }
465
- getCurrentScreenType() {
466
- var _a;
467
- return this.getScreenType(((_a = this._screenSizeSubject) === null || _a === void 0 ? void 0 : _a.getValue()) || PepScreenSizeType.LG);
468
- }
469
- getScreenType(size) {
470
- const screenType = size < PepScreenSizeType.MD ? 'Landscape' :
471
- (size === PepScreenSizeType.MD || size === PepScreenSizeType.SM ? 'Tablet' : 'Phablet');
472
- return screenType;
473
- }
474
- getSectionColumnKey(sectionKey = '', index = '') {
475
- return `${sectionKey}_column_${index}`;
476
- }
477
- getIsHidden(hideIn, currentScreenType) {
478
- return (hideIn && (hideIn === null || hideIn === void 0 ? void 0 : hideIn.length) > 0) ? hideIn.some(hi => hi === currentScreenType) : false;
479
- }
480
- navigateToEditor(editorType, id, title = '') {
481
- let success = false;
482
- // Cannot navigate into 'layout-builder' because this is first and const in the editorsBreadCrumbs.
483
- if (editorType !== 'layout-builder' && (id === null || id === void 0 ? void 0 : id.length) > 0) {
484
- // Check which editor we have now
485
- const currentEditor = this._editorsBreadCrumb[this._editorsBreadCrumb.length - 1];
486
- // Only if it's another editor.
487
- if (currentEditor.id !== id) {
488
- if (currentEditor.type !== 'layout-builder') {
489
- // Always pop the last and insert the current.
490
- this._editorsBreadCrumb.pop();
491
- }
492
- const editor = this.getEditorByType(editorType, id, title);
493
- if (editor) {
494
- this._editorsBreadCrumb.push(editor);
495
- this.changeCurrentEditor();
496
- success = true;
497
- }
498
- else {
499
- success = false;
500
- }
501
- }
502
- }
503
- return success;
504
- }
505
- navigateBackFromEditor() {
506
- // Keep the layout builder editor.
507
- if (this._editorsBreadCrumb.length > 1) {
508
- // Maybe we want to compare the last editor for validation ?
509
- const lastEditor = this._editorsBreadCrumb.pop();
510
- this.changeCurrentEditor();
511
- }
512
- }
513
- updateLayoutFromEditor(editorData) {
514
- const layoutView = this._layoutViewSubject.getValue();
515
- if (layoutView) {
516
- layoutView.Layout.MaxWidth = editorData.maxWidth;
517
- layoutView.Layout.HorizontalSpacing = editorData.horizontalSpacing;
518
- layoutView.Layout.VerticalSpacing = editorData.verticalSpacing;
519
- layoutView.Layout.SectionsGap = editorData.sectionsGap;
520
- layoutView.Layout.ColumnsGap = editorData.columnsGap;
521
- // layoutView.Layout.RoundedCorners = editorData.roundedCorners;
522
- this.notifyLayoutViewChange(layoutView);
523
- }
524
- }
525
- updateSectionFromEditor(sectionData) {
526
- var _a;
527
- const layoutView = this._layoutViewSubject.getValue();
528
- const sections = (layoutView === null || layoutView === void 0 ? void 0 : layoutView.Layout.Sections) || [];
529
- const sectionIndex = sections.findIndex(section => section.Key === sectionData.id);
530
- // Update section details.
531
- if (sectionIndex >= 0) {
532
- const blocksIdsToRemove = [];
533
- const currentSection = sections[sectionIndex];
534
- currentSection.Name = sectionData.sectionName;
535
- currentSection.Split = sectionData.split;
536
- currentSection.Height = sectionData.height;
537
- currentSection.CollapseOnTablet = sectionData.collapseOnTablet;
538
- currentSection.FillHeight = sectionData.fillHeight;
539
- // Get the new columns number from currentSection.Split, if its undefined put a default 1.
540
- const newColumnsLength = ((_a = currentSection.Split) === null || _a === void 0 ? void 0 : _a.split(' ').length) || 1;
541
- if (newColumnsLength > currentSection.Columns.length) {
542
- while (newColumnsLength > currentSection.Columns.length) {
543
- currentSection.Columns.push({});
544
- }
545
- }
546
- else if (newColumnsLength < currentSection.Columns.length) {
547
- while (newColumnsLength < currentSection.Columns.length) {
548
- const colunm = currentSection.Columns.pop();
549
- // If there is block in this column delete it.
550
- if (colunm && colunm.BlockContainer) {
551
- blocksIdsToRemove.push(colunm.BlockContainer.BlockKey);
552
- }
553
- }
554
- }
555
- // Update editor title
556
- const currentEditor = this._editorSubject.getValue();
557
- if (currentEditor && currentEditor.type === 'section' && currentEditor.id === currentSection.Key) {
558
- const title = this.getSectionEditorTitle(currentSection, sectionIndex);
559
- currentEditor.title = title;
560
- this.notifyEditorChange(currentEditor);
561
- }
562
- // Update sections change.
563
- this.notifyLayoutViewChange(layoutView);
564
- // If there are blocks to remove, notify the blocks removed.
565
- if (blocksIdsToRemove.length > 0) {
566
- this.notifyBlocksRemoved(blocksIdsToRemove);
567
- }
568
- }
569
- }
570
- addSection(section = null) {
571
- // Create new section
572
- if (!section) {
573
- section = {
574
- Key: PepGuid.newGuid(),
575
- Columns: [{}],
576
- Hide: []
577
- };
578
- }
579
- // Add the new section to layout view.
580
- const layoutView = this._layoutViewSubject.getValue();
581
- const sections = (layoutView === null || layoutView === void 0 ? void 0 : layoutView.Layout.Sections) || [];
582
- sections.push(section);
583
- this.notifyLayoutViewChange(layoutView);
584
- }
585
- removeSection(sectionId) {
586
- const layoutView = this._layoutViewSubject.getValue();
587
- const sections = (layoutView === null || layoutView === void 0 ? void 0 : layoutView.Layout.Sections) || [];
588
- const index = sections.findIndex(section => section.Key === sectionId);
589
- if (index > -1) {
590
- // Get the blocks id's to remove.
591
- const blocksIdsToRemove = sections[index].Columns.map(column => { var _a; return (_a = column === null || column === void 0 ? void 0 : column.BlockContainer) === null || _a === void 0 ? void 0 : _a.BlockKey; });
592
- // Remove section.
593
- sections.splice(index, 1);
594
- this.notifyLayoutViewChange(layoutView);
595
- // If there are blocks to remove, notify the blocks removed.
596
- if (blocksIdsToRemove.length > 0) {
597
- this.notifyBlocksRemoved(blocksIdsToRemove);
598
- }
599
- }
600
- }
601
- hideSection(sectionId, hideIn) {
602
- const layoutView = this._layoutViewSubject.getValue();
603
- const sections = (layoutView === null || layoutView === void 0 ? void 0 : layoutView.Layout.Sections) || [];
604
- const index = sections.findIndex(section => section.Key === sectionId);
605
- if (index > -1) {
606
- sections[index].Hide = hideIn;
607
- this.notifyLayoutViewChange(layoutView);
608
- }
609
- }
610
- onSectionDropped(event) {
611
- const layoutView = this._layoutViewSubject.getValue();
612
- const sections = (layoutView === null || layoutView === void 0 ? void 0 : layoutView.Layout.Sections) || [];
613
- moveItemInArray(sections, event.previousIndex, event.currentIndex);
614
- this.notifyLayoutViewChange(layoutView);
615
- }
616
- onSectionDragStart(event) {
617
- this.changeCursorOnDragStart();
618
- this._draggingSectionKey.next(event.source.data);
619
- }
620
- onSectionDragEnd(event) {
621
- this.changeCursorOnDragEnd();
622
- this._draggingSectionKey.next('');
623
- }
624
- removeBlockFromSection(blockId) {
625
- let blockRemoved = false;
626
- // Remove the block from section column.
627
- const layoutView = this._layoutViewSubject.getValue();
628
- const sections = (layoutView === null || layoutView === void 0 ? void 0 : layoutView.Layout.Sections) || [];
629
- for (let sectionIndex = 0; sectionIndex < sections.length; sectionIndex++) {
630
- const section = sections[sectionIndex];
631
- // Remove the block container.
632
- const columnIndex = section.Columns.findIndex(column => { var _a; return ((_a = column.BlockContainer) === null || _a === void 0 ? void 0 : _a.BlockKey) === blockId; });
633
- if (columnIndex > -1) {
634
- delete section.Columns[columnIndex].BlockContainer;
635
- this.notifyLayoutViewChange(layoutView);
636
- blockRemoved = true;
637
- break;
638
- }
639
- }
640
- // If the block was removed, notify the block removed.
641
- if (blockRemoved) {
642
- this.notifyBlocksRemoved([blockId]);
643
- }
644
- }
645
- hideBlock(sectionId, blockId, hideIn) {
646
- const layoutView = this._layoutViewSubject.getValue();
647
- const sections = (layoutView === null || layoutView === void 0 ? void 0 : layoutView.Layout.Sections) || [];
648
- const index = sections.findIndex(section => section.Key === sectionId);
649
- if (index > -1) {
650
- const columnIndex = sections[index].Columns.findIndex(column => { var _a; return ((_a = column.BlockContainer) === null || _a === void 0 ? void 0 : _a.BlockKey) === blockId; });
651
- if (columnIndex > -1) {
652
- const blockContainer = sections[index].Columns[columnIndex].BlockContainer;
653
- if (blockContainer) {
654
- blockContainer.Hide = hideIn;
655
- this.notifyLayoutViewChange(layoutView);
656
- }
657
- }
658
- }
659
- }
660
- onBlockDropped(event, sectionId) {
661
- const layoutView = this._layoutViewSubject.getValue();
662
- if (event.previousContainer.id === LayoutBuilderInternalService.AVAILABLE_BLOCKS_CONTAINER_ID) {
663
- // Validate if blocks number allow.
664
- if (this._blocksLimitNumber > 0 && this.getBlocksNumber() >= this._blocksLimitNumber) {
665
- const data = new PepDialogData({
666
- title: this.translate.instant('MESSAGES.DIALOG_NOTICE_TITLE'),
667
- content: this.translate.instant('LAYOUT_BUILDER.BLOCKS_COUNT_LIMIT_MESSAGE'),
668
- });
669
- this.dialogService.openDefaultDialog(data);
670
- }
671
- else {
672
- // Get the block relation (previousContainer.data is IPepDraggableItem and inside we have AvailableBlock object).
673
- const draggableItem = event.previousContainer.data[event.previousIndex];
674
- if (draggableItem) {
675
- // lock the screen untill the editor will be loaded.
676
- // this._lockScreenSubject.next(true);
677
- // Get the column.
678
- const currentColumn = this.getSectionColumnByIdForEditor(event.container.id);
679
- // Set the block key in the section block only if there is a blank column.
680
- if (currentColumn && !currentColumn.BlockContainer) {
681
- // Generate the block uuid.
682
- const blockKey = PepGuid.newGuid();
683
- currentColumn.BlockContainer = {
684
- BlockKey: blockKey,
685
- };
686
- // Here we update the layout view cause the layout is updated.
687
- this.notifyLayoutViewChange(layoutView);
688
- // Raise block added event.
689
- const blockAddedEventData = {
690
- BlockKey: blockKey,
691
- DraggableItem: draggableItem,
692
- };
693
- this.notifyBlockAdded(blockAddedEventData);
694
- if (this._navigateToEditorAfterBlockAdded) {
695
- // Navigate to the block editor.
696
- this.navigateToEditor('block', blockKey);
697
- }
698
- }
699
- }
700
- else {
701
- console.log("draggableItem is not a IPepDraggableItem type");
702
- }
703
- }
704
- }
705
- else {
706
- // If the block moved between columns in the same section or between different sections but not in the same column.
707
- if (event.container.id !== event.previousContainer.id) {
708
- // Get the column.
709
- const currentColumn = this.getSectionColumnByIdForEditor(event.container.id);
710
- // Get the previous column.
711
- const previuosColumn = this.getSectionColumnByIdForEditor(event.previousContainer.id);
712
- if (currentColumn && previuosColumn) {
713
- currentColumn.BlockContainer = previuosColumn.BlockContainer;
714
- delete previuosColumn.BlockContainer;
715
- this.notifyLayoutViewChange(layoutView);
716
- }
717
- }
718
- }
719
- }
720
- onBlockDragStart(event) {
721
- var _a, _b;
722
- this.changeCursorOnDragStart();
723
- // Take the block key if exist, else take the available block key (relation key).
724
- const blockKey = ((_a = event.source.data) === null || _a === void 0 ? void 0 : _a.BlockKey) || ((_b = event.source.data) === null || _b === void 0 ? void 0 : _b.Key);
725
- this._draggingBlockKey.next(blockKey);
726
- }
727
- onBlockDragEnd(event) {
728
- this.changeCursorOnDragEnd();
729
- this._draggingBlockKey.next('');
730
- }
731
- doesColumnContainBlock(sectionId, columnIndex) {
732
- let res = false;
733
- const layoutView = this._layoutViewSubject.getValue();
734
- const section = layoutView === null || layoutView === void 0 ? void 0 : layoutView.Layout.Sections.find(section => section.Key === sectionId);
735
- if (section && columnIndex >= 0 && section.Columns.length > columnIndex) {
736
- res = !!section.Columns[columnIndex].BlockContainer;
737
- }
738
- return res;
739
- }
740
- setScreenWidth(screenType) {
741
- const value = this.getCssScreenWidh(screenType);
742
- const width = coerceNumberProperty(value, 0);
743
- if (width === 0) {
744
- this._screenWidthSubject.next('100%');
745
- this.notifyScreenSizeChange(PepScreenSizeType.XL);
746
- }
747
- else {
748
- this._screenWidthSubject.next(`${width}px`);
749
- // Change the size according the width.
750
- if (width >= 1920) {
751
- this.notifyScreenSizeChange(PepScreenSizeType.XL);
752
- }
753
- else if (width >= 1280 && width < 1920) {
754
- this.notifyScreenSizeChange(PepScreenSizeType.LG);
755
- }
756
- else if (width >= 960 && width < 1280) {
757
- this.notifyScreenSizeChange(PepScreenSizeType.MD);
758
- }
759
- else if (width >= 600 && width < 960) {
760
- this.notifyScreenSizeChange(PepScreenSizeType.SM);
761
- }
762
- else if (width < 600) {
763
- this.notifyScreenSizeChange(PepScreenSizeType.XS);
764
- }
765
- }
766
- }
767
- showSkeleton(show) {
768
- this._showSkeletonSubject.next(show);
769
- }
770
- lockScreen(value) {
771
- this.notifyLockScreen(value);
772
- }
773
- loadLayoutBuilder(layoutView) {
774
- if (this.editMode) {
775
- if (this._editorsBreadCrumb.length === 0) {
776
- // Load the layout editor.
777
- this.loadDefaultEditor(layoutView);
778
- }
779
- }
780
- // Load only the layout view.
781
- this.notifyLayoutViewChange(layoutView);
782
- }
783
- }
784
- LayoutBuilderInternalService.AVAILABLE_BLOCKS_CONTAINER_ID = 'availableBlocks';
785
- LayoutBuilderInternalService.MAIN_EDITOR_ID = 'main';
786
- LayoutBuilderInternalService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: LayoutBuilderInternalService, deps: [{ token: i1.TranslateService }, { token: i2$1.PepDialogService }, { token: i3$1.PepLayoutService }], target: i0.ɵɵFactoryTarget.Injectable });
787
- LayoutBuilderInternalService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: LayoutBuilderInternalService, providedIn: 'root' });
788
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: LayoutBuilderInternalService, decorators: [{
789
- type: Injectable,
790
- args: [{
791
- providedIn: 'root',
792
- }]
793
- }], ctorParameters: function () { return [{ type: i1.TranslateService }, { type: i2$1.PepDialogService }, { type: i3$1.PepLayoutService }]; } });
794
-
795
- class SectionBlockComponent extends BaseDestroyerDirective {
796
- constructor(layoutBuilderInternalService) {
797
- super();
798
- this.layoutBuilderInternalService = layoutBuilderInternalService;
799
- this.sectionKey = '';
800
- this.sectionHeight = '';
801
- this.isMainEditorState = false;
802
- this.editable = false;
803
- this.active = false;
804
- this.dragExited = new EventEmitter();
805
- this.dragEntered = new EventEmitter();
806
- this.hideForCurrentScreenType = false;
807
- // protected remoteLoaderOptions: PepRemoteLoaderOptions;
808
- // protected availableBlock: IPepDraggableItem | undefined;
809
- this.blockTitle = '';
810
- }
811
- set blockContainer(value) {
812
- this._blockContainer = value;
813
- // if (this._blockContainer) {
814
- // this.availableBlock = this.layoutBuilderInternalService.availableBlocksForDragMap?.get(this._blockContainer?.DraggableItemKey);
815
- // }
816
- this.setIfHideForCurrentScreenType();
817
- }
818
- get blockContainer() {
819
- return this._blockContainer;
820
- }
821
- set screenType(value) {
822
- this._screenType = value;
823
- this.setIfHideForCurrentScreenType();
824
- }
825
- get screenType() {
826
- return this._screenType;
827
- }
828
- setIfHideForCurrentScreenType() {
829
- this.hideForCurrentScreenType = this.blockContainer ?
830
- this.layoutBuilderInternalService.getIsHidden(this.blockContainer.Hide, this.screenType) : false;
831
- }
832
- ngOnInit() {
833
- var _a;
834
- this.blockTitle = this.layoutBuilderInternalService.getBlockTitle(((_a = this.blockContainer) === null || _a === void 0 ? void 0 : _a.BlockKey) || '');
835
- //
836
- // this.layoutBuilderInternalService.availableBlocksForDragMapChange$.pipe(this.getDestroyer()).subscribe((availableBlocksForDragMap) => {
837
- // if (availableBlocksForDragMap && this.blockContainer) {
838
- // this.availableBlock = (availableBlocksForDragMap as ReadonlyMap<string, IPepDraggableItem>).get(this.blockContainer.DraggableItemKey);
839
- // }
840
- // });
841
- }
842
- onEditBlockClick() {
843
- var _a;
844
- if ((_a = this.blockContainer) === null || _a === void 0 ? void 0 : _a.BlockKey) {
845
- this.layoutBuilderInternalService.navigateToEditor('block', this.blockContainer.BlockKey, this.blockTitle);
846
- }
847
- }
848
- onRemoveBlockClick() {
849
- var _a;
850
- if ((_a = this.blockContainer) === null || _a === void 0 ? void 0 : _a.BlockKey) {
851
- this.layoutBuilderInternalService.removeBlockFromSection(this.blockContainer.BlockKey);
852
- }
853
- }
854
- onHideBlockChange(hideIn) {
855
- var _a;
856
- if ((_a = this.blockContainer) === null || _a === void 0 ? void 0 : _a.BlockKey) {
857
- this.layoutBuilderInternalService.hideBlock(this.sectionKey, this.blockContainer.BlockKey, hideIn);
858
- this.setIfHideForCurrentScreenType();
859
- }
860
- }
861
- // onBlockLoad(event: any) {
862
- // this.layoutBuilderService.updateBlockLoaded(this.blockContainer.BlockKey);
863
- // }
864
- onDragStart(event) {
865
- this.layoutBuilderInternalService.onBlockDragStart(event);
866
- }
867
- onDragEnd(event) {
868
- this.layoutBuilderInternalService.onBlockDragEnd(event);
869
- }
870
- onDragExited(event) {
871
- this.dragExited.emit(event);
872
- }
873
- onDragEntered(event) {
874
- this.dragEntered.emit(event);
875
- }
876
- }
877
- SectionBlockComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: SectionBlockComponent, deps: [{ token: LayoutBuilderInternalService }], target: i0.ɵɵFactoryTarget.Component });
878
- SectionBlockComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: SectionBlockComponent, selector: "section-block", inputs: { blockTemplate: "blockTemplate", sectionKey: "sectionKey", sectionHeight: "sectionHeight", isMainEditorState: "isMainEditorState", editable: "editable", active: "active", blockContainer: "blockContainer", screenType: "screenType" }, outputs: { dragExited: "dragExited", dragEntered: "dragEntered" }, usesInheritance: true, ngImport: i0, template: "<div *ngIf=\"blockContainer?.BlockKey && (editable || !hideForCurrentScreenType)\" \n class=\"section-block-container\"\n [ngClass]=\"{ 'editable-state': editable, 'block-hidden-state': hideForCurrentScreenType, 'active-block': active }\"\n cdkDrag [cdkDragData]=\"blockContainer\" [cdkDragDisabled]=\"!editable || !isMainEditorState\" \n (cdkDragStarted)=\"onDragStart($event)\" (cdkDragEnded)=\"onDragEnd($event)\"\n (cdkDragExited)=\"onDragExited($event)\" (cdkDragEntered)=\"onDragEntered($event)\">\n \n <pep-draggable-item *ngIf=\"editable && isMainEditorState\" cdkDragHandle style=\"cursor: grab;\"\n class=\"block-toolbar\" [title]=\"blockTitle\" >\n <ng-container pep-actions>\n <pep-button classNames=\"caution\" sizeType=\"xs\" iconName=\"system_bin\" (buttonClick)=\"onRemoveBlockClick();\"></pep-button>\n <!-- <hide-in [hideIn]=\"blockContainer.Hide\" (hideInChange)=\"onHideBlockChange($event)\"></hide-in> -->\n <pep-button sizeType=\"xs\" iconName=\"system_edit\" (buttonClick)=\"onEditBlockClick();\"></pep-button>\n </ng-container>\n </pep-draggable-item>\n <div class=\"block-template-wrapper\" [ngStyle]=\"{ 'overflow': (sectionHeight === 'unset' ? 'unset' : 'auto') }\">\n <div *ngIf=\"blockTemplate\" class=\"block-template\">\n <ng-container *ngTemplateOutlet=\"blockTemplate; context: { blockKey: blockContainer?.BlockKey }\">\n </ng-container>\n </div>\n </div>\n</div>\n", styles: [".section-block-container{height:100%;width:100%}.section-block-container.editable-state:not(.active-block) .block-template-wrapper .block-template{pointer-events:none;opacity:.5}.section-block-container.editable-state.cdk-drag-preview .block-template-wrapper,.section-block-container.editable-state.cdk-drag-placeholder .block-toolbar{opacity:0}.section-block-container.editable-state .block-toolbar{position:absolute;top:50%;left:50%;width:95%;max-width:240px;transform:translate(-50%,-50%);z-index:3}.section-block-container.editable-state .block-toolbar:hover{z-index:12!important}.section-block-container .block-template-wrapper{height:100%;position:relative}.section-block-container .block-template-wrapper .block-template{display:block;height:100%;width:100%}\n", ".section-block-container.editable-state.block-hidden-state:not(.active-block){background:repeating-linear-gradient(45deg,hsla(var(--pep-color-system-caution-h, 360),var(--pep-color-system-caution-s, 100%),var(--pep-color-system-caution-l, 45%),0),hsla(var(--pep-color-system-caution-h, 360),var(--pep-color-system-caution-s, 100%),var(--pep-color-system-caution-l, 45%),0) .65rem,hsla(var(--pep-color-system-caution-h, 360),var(--pep-color-system-caution-s, 100%),var(--pep-color-system-caution-l, 45%),.32) .65rem,hsla(var(--pep-color-system-caution-h, 360),var(--pep-color-system-caution-s, 100%),var(--pep-color-system-caution-l, 45%),.32) .8rem),repeating-linear-gradient(-45deg,hsla(var(--pep-color-system-caution-h, 360),var(--pep-color-system-caution-s, 100%),var(--pep-color-system-caution-l, 45%),0),hsla(var(--pep-color-system-caution-h, 360),var(--pep-color-system-caution-s, 100%),var(--pep-color-system-caution-l, 45%),0) .65rem,hsla(var(--pep-color-system-caution-h, 360),var(--pep-color-system-caution-s, 100%),var(--pep-color-system-caution-l, 45%),.32) .65rem,hsla(var(--pep-color-system-caution-h, 360),var(--pep-color-system-caution-s, 100%),var(--pep-color-system-caution-l, 45%),.32) .8rem)}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i3$2.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: i3$2.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "component", type: i4$1.PepButtonComponent, selector: "pep-button", inputs: ["key", "value", "styleType", "styleStateType", "sizeType", "classNames", "disabled", "iconName", "iconPosition", "visible"], outputs: ["buttonClick"] }, { kind: "component", type: i7.DraggableItemComponent, selector: "pep-draggable-item", inputs: ["title", "titlePrefix", "titleClassNames", "data", "disabled", "shadow", "styleType", "toggleContent", "isToggleContentOpen", "actionsMenu", "menuStyleType"], outputs: ["contentToggle", "actionsMenuItemClick"] }] });
879
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: SectionBlockComponent, decorators: [{
880
- type: Component,
881
- args: [{ selector: 'section-block', template: "<div *ngIf=\"blockContainer?.BlockKey && (editable || !hideForCurrentScreenType)\" \n class=\"section-block-container\"\n [ngClass]=\"{ 'editable-state': editable, 'block-hidden-state': hideForCurrentScreenType, 'active-block': active }\"\n cdkDrag [cdkDragData]=\"blockContainer\" [cdkDragDisabled]=\"!editable || !isMainEditorState\" \n (cdkDragStarted)=\"onDragStart($event)\" (cdkDragEnded)=\"onDragEnd($event)\"\n (cdkDragExited)=\"onDragExited($event)\" (cdkDragEntered)=\"onDragEntered($event)\">\n \n <pep-draggable-item *ngIf=\"editable && isMainEditorState\" cdkDragHandle style=\"cursor: grab;\"\n class=\"block-toolbar\" [title]=\"blockTitle\" >\n <ng-container pep-actions>\n <pep-button classNames=\"caution\" sizeType=\"xs\" iconName=\"system_bin\" (buttonClick)=\"onRemoveBlockClick();\"></pep-button>\n <!-- <hide-in [hideIn]=\"blockContainer.Hide\" (hideInChange)=\"onHideBlockChange($event)\"></hide-in> -->\n <pep-button sizeType=\"xs\" iconName=\"system_edit\" (buttonClick)=\"onEditBlockClick();\"></pep-button>\n </ng-container>\n </pep-draggable-item>\n <div class=\"block-template-wrapper\" [ngStyle]=\"{ 'overflow': (sectionHeight === 'unset' ? 'unset' : 'auto') }\">\n <div *ngIf=\"blockTemplate\" class=\"block-template\">\n <ng-container *ngTemplateOutlet=\"blockTemplate; context: { blockKey: blockContainer?.BlockKey }\">\n </ng-container>\n </div>\n </div>\n</div>\n", styles: [".section-block-container{height:100%;width:100%}.section-block-container.editable-state:not(.active-block) .block-template-wrapper .block-template{pointer-events:none;opacity:.5}.section-block-container.editable-state.cdk-drag-preview .block-template-wrapper,.section-block-container.editable-state.cdk-drag-placeholder .block-toolbar{opacity:0}.section-block-container.editable-state .block-toolbar{position:absolute;top:50%;left:50%;width:95%;max-width:240px;transform:translate(-50%,-50%);z-index:3}.section-block-container.editable-state .block-toolbar:hover{z-index:12!important}.section-block-container .block-template-wrapper{height:100%;position:relative}.section-block-container .block-template-wrapper .block-template{display:block;height:100%;width:100%}\n", ".section-block-container.editable-state.block-hidden-state:not(.active-block){background:repeating-linear-gradient(45deg,hsla(var(--pep-color-system-caution-h, 360),var(--pep-color-system-caution-s, 100%),var(--pep-color-system-caution-l, 45%),0),hsla(var(--pep-color-system-caution-h, 360),var(--pep-color-system-caution-s, 100%),var(--pep-color-system-caution-l, 45%),0) .65rem,hsla(var(--pep-color-system-caution-h, 360),var(--pep-color-system-caution-s, 100%),var(--pep-color-system-caution-l, 45%),.32) .65rem,hsla(var(--pep-color-system-caution-h, 360),var(--pep-color-system-caution-s, 100%),var(--pep-color-system-caution-l, 45%),.32) .8rem),repeating-linear-gradient(-45deg,hsla(var(--pep-color-system-caution-h, 360),var(--pep-color-system-caution-s, 100%),var(--pep-color-system-caution-l, 45%),0),hsla(var(--pep-color-system-caution-h, 360),var(--pep-color-system-caution-s, 100%),var(--pep-color-system-caution-l, 45%),0) .65rem,hsla(var(--pep-color-system-caution-h, 360),var(--pep-color-system-caution-s, 100%),var(--pep-color-system-caution-l, 45%),.32) .65rem,hsla(var(--pep-color-system-caution-h, 360),var(--pep-color-system-caution-s, 100%),var(--pep-color-system-caution-l, 45%),.32) .8rem)}\n"] }]
882
- }], ctorParameters: function () { return [{ type: LayoutBuilderInternalService }]; }, propDecorators: { blockTemplate: [{
883
- type: Input
884
- }], sectionKey: [{
885
- type: Input
886
- }], sectionHeight: [{
887
- type: Input
888
- }], isMainEditorState: [{
889
- type: Input
890
- }], editable: [{
891
- type: Input
892
- }], active: [{
893
- type: Input
894
- }], blockContainer: [{
895
- type: Input
896
- }], screenType: [{
897
- type: Input
898
- }], dragExited: [{
899
- type: Output
900
- }], dragEntered: [{
901
- type: Output
902
- }] } });
903
-
904
- class SectionComponent extends BaseDestroyerDirective {
905
- constructor(renderer, layoutBuilderInternalService) {
906
- super();
907
- this.renderer = renderer;
908
- this.layoutBuilderInternalService = layoutBuilderInternalService;
909
- this.key = '';
910
- this.name = '';
911
- this._split = undefined;
912
- this._height = undefined;
913
- this._collapseOnTablet = false;
914
- this._columns = [];
915
- this._hideIn = [];
916
- this.styleMaxHeight = 'unset';
917
- this.styleHeight = 'unset';
918
- this.sectionsColumnsDropList = [];
919
- // PepScreenSizeType = PepScreenSizeType;
920
- this.sectionColumnKeyPrefix = '';
921
- this.isMainEditorState = false;
922
- this.isEditing = false;
923
- this.selectedSectionKey = '';
924
- this.selectedBlockKey = '';
925
- this.containsBlocks = false;
926
- this.shouldSetDefaultHeight = false;
927
- this.pepScreenSizeToFlipToVertical = PepScreenSizeType.SM;
928
- this.hideForCurrentScreenType = false;
929
- this.draggingBlockKey = '';
930
- this.draggingSectionKey = '';
931
- this.hoverState = false;
932
- this.isHorizontalView = false;
933
- }
934
- set split(value) {
935
- this._split = value;
936
- this.refreshSplit();
937
- }
938
- get split() {
939
- return this._split;
940
- }
941
- set height(value) {
942
- this._height = value;
943
- this.setStyleHeight();
944
- }
945
- get height() {
946
- return this._height;
947
- }
948
- set collapseOnTablet(value) {
949
- this._collapseOnTablet = value;
950
- this.pepScreenSizeToFlipToVertical = value ? PepScreenSizeType.MD : PepScreenSizeType.XS;
951
- this.refreshSplit();
952
- }
953
- get collapseOnTablet() {
954
- return this._collapseOnTablet;
955
- }
956
- set columns(value) {
957
- this._columns = value || [];
958
- }
959
- get columns() {
960
- return this._columns;
961
- }
962
- set hideIn(value) {
963
- this._hideIn = value;
964
- this.setIfHideForCurrentScreenType();
965
- }
966
- get hideIn() {
967
- return this._hideIn;
968
- }
969
- // private _editable = false;
970
- // protected set editable(value: boolean) {
971
- // this._editable = value;
972
- // this.refreshSplit();
973
- // }
974
- get editable() {
975
- return this.layoutBuilderInternalService.editableState;
976
- }
977
- set screenSize(value) {
978
- this._screenSize = value;
979
- this.refreshSplit();
980
- this.setScreenType();
981
- }
982
- get screenSize() {
983
- return this._screenSize;
984
- }
985
- calculateIfSectionContainsBlocks() {
986
- this.containsBlocks = this.columns.some(column => column.BlockContainer);
987
- if (this.editable) {
988
- this.shouldSetDefaultHeight = !this.containsBlocks;
989
- }
990
- }
991
- setScreenType() {
992
- this.screenType = this.layoutBuilderInternalService.getScreenType(this.screenSize);
993
- this.setIfHideForCurrentScreenType();
994
- this.setStyleHeight();
995
- }
996
- setIfHideForCurrentScreenType() {
997
- this.hideForCurrentScreenType = this.layoutBuilderInternalService.getIsHidden(this.hideIn, this.screenType);
998
- }
999
- // private getCssSplitString() {
1000
- // switch (this.split) {
1001
- // case '1/2 1/2':
1002
- // return '1fr 1fr';
1003
- // case '1/2 1/4 1/4':
1004
- // return '2fr 1fr 1fr';
1005
- // case '1/3 1/3 1/3':
1006
- // return '1fr 1fr 1fr';
1007
- // case '1/3 2/3':
1008
- // return '1fr 2fr';
1009
- // case '1/4 1/2 1/4':
1010
- // return '1fr 2fr 1fr';
1011
- // case '1/4 1/4 1/2':
1012
- // return '1fr 1fr 2fr';
1013
- // case '1/4 1/4 1/4 1/4':
1014
- // return '1fr 1fr 1fr 1fr';
1015
- // case '1/4 3/4':
1016
- // return '1fr 3fr';
1017
- // case '2/3 1/3':
1018
- // return '2fr 1fr';
1019
- // case '3/4 1/4':
1020
- // return '3fr 1fr';
1021
- // default: // For one column.
1022
- // return '1fr';
1023
- // }
1024
- // }
1025
- getCssGridColumn(columnIndex) {
1026
- let res = '1/13';
1027
- let gridColumnValueArr = ['1/13'];
1028
- switch (this.split) {
1029
- case '1/2 1/2':
1030
- gridColumnValueArr = ['1/7', '7/13'];
1031
- break;
1032
- case '1/2 1/4 1/4':
1033
- gridColumnValueArr = ['1/7', '7/10', '10/13'];
1034
- break;
1035
- case '1/3 1/3 1/3':
1036
- gridColumnValueArr = ['1/5', '5/9', '9/13'];
1037
- break;
1038
- case '1/3 2/3':
1039
- gridColumnValueArr = ['1/5', '5/13'];
1040
- break;
1041
- case '1/4 1/2 1/4':
1042
- gridColumnValueArr = ['1/4', '4/10', '10/13'];
1043
- break;
1044
- case '1/4 1/4 1/2':
1045
- gridColumnValueArr = ['1/4', '4/7', '7/13'];
1046
- break;
1047
- case '1/4 1/4 1/4 1/4':
1048
- gridColumnValueArr = ['1/4', '4/7', '7/10', '10/13'];
1049
- break;
1050
- case '1/4 3/4':
1051
- gridColumnValueArr = ['1/4', '4/13'];
1052
- break;
1053
- case '2/3 1/3':
1054
- gridColumnValueArr = ['1/9', '9/13'];
1055
- break;
1056
- case '3/4 1/4':
1057
- gridColumnValueArr = ['1/10', '10/13'];
1058
- break;
1059
- }
1060
- if (gridColumnValueArr.length > columnIndex) {
1061
- res = gridColumnValueArr[columnIndex];
1062
- }
1063
- return res;
1064
- }
1065
- setSectionColumnStyle(sectionColumnElement, columnIndex) {
1066
- if (this.isHorizontalView) {
1067
- const gridColumnValue = this.getCssGridColumn(columnIndex);
1068
- this.renderer.setStyle(sectionColumnElement, 'grid-column', gridColumnValue);
1069
- }
1070
- else {
1071
- this.renderer.setStyle(sectionColumnElement, 'grid-column', 'unset');
1072
- }
1073
- }
1074
- refreshSplit() {
1075
- // Horizontal (true) for large screens, false for small screens.
1076
- this.isHorizontalView = this.screenSize < this.pepScreenSizeToFlipToVertical;
1077
- setTimeout(() => {
1078
- if (this.sectionContainerRef) {
1079
- // const cssSplitString = this.getCssSplitString();
1080
- // Go for all the columns in the columnsWrapper
1081
- this.columnsElementRef.toArray().map((section, sectionIndex) => {
1082
- if (this.isHorizontalView) {
1083
- this.renderer.setStyle(section.nativeElement, 'grid-auto-flow', 'column');
1084
- this.renderer.setStyle(section.nativeElement, 'grid-template-rows', 'unset');
1085
- // this.renderer.setStyle(section.nativeElement, 'grid-template-columns', cssSplitString);
1086
- this.renderer.setStyle(section.nativeElement, 'grid-template-columns', 'repeat(12, 1fr)');
1087
- }
1088
- else {
1089
- this.renderer.setStyle(section.nativeElement, 'grid-auto-flow', 'row');
1090
- this.renderer.setStyle(section.nativeElement, 'grid-template-columns', 'unset');
1091
- this.renderer.setStyle(section.nativeElement, 'grid-template-rows', 'unset');
1092
- // In runtime (or preview mode).
1093
- if (!this.editable) {
1094
- // const cssSplitArray = cssSplitString.split(' ');
1095
- // // If there are some hidden columns change the column width to 0 (for cut the spacing in the grid-template-rows).
1096
- // this.columns.forEach((column, index) => {
1097
- // if (!column.BlockContainer) {
1098
- // cssSplitArray[index] = '0';
1099
- // }
1100
- // });
1101
- //this.renderer.setStyle(section.nativeElement, 'grid-template-rows', cssSplitArray.join(' '));
1102
- this.renderer.setStyle(section.nativeElement, 'grid-template-rows', 'auto');
1103
- }
1104
- }
1105
- // Go for all the columns in the section and set there style.
1106
- const sectionColumns = section.nativeElement.querySelectorAll('.section-column');
1107
- for (let columnIndex = 0; columnIndex < sectionColumns.length; columnIndex++) {
1108
- this.setSectionColumnStyle(sectionColumns[columnIndex], columnIndex);
1109
- }
1110
- });
1111
- }
1112
- }, 0);
1113
- }
1114
- setStyleHeight() {
1115
- if (this.height && this.height > 0 && this.screenType !== 'Phablet') {
1116
- this.styleHeight = this.styleMaxHeight = `${this.height}px`;
1117
- }
1118
- else {
1119
- this.styleHeight = this.styleMaxHeight = 'unset';
1120
- }
1121
- }
1122
- getIsDragging() {
1123
- return this.draggingBlockKey.length > 0 && this.draggingSectionKey.length > 0;
1124
- }
1125
- getIsHidden(hideIn, currentScreenType) {
1126
- return this.layoutBuilderInternalService.getIsHidden(hideIn, currentScreenType);
1127
- }
1128
- ngOnInit() {
1129
- this.layoutBuilderInternalService.previewModeChange$.pipe(this.getDestroyer()).subscribe(previewMode => {
1130
- this.refreshSplit();
1131
- });
1132
- // Just to calculate if sections contains blocks
1133
- this.layoutBuilderInternalService.sectionsChange$.pipe(this.getDestroyer()).subscribe(res => {
1134
- this.calculateIfSectionContainsBlocks();
1135
- });
1136
- // this.layoutService.onResize$.pipe(this.getDestroyer()).subscribe((size: any) => {
1137
- // this.screenSize = size;
1138
- // });
1139
- this.layoutBuilderInternalService.screenSizeChange$.pipe(this.getDestroyer()).subscribe((size) => {
1140
- this.screenSize = size;
1141
- });
1142
- if (this.editable) {
1143
- this.layoutBuilderInternalService.sectionsColumnsDropListChange$.pipe(this.getDestroyer()).subscribe((sectionsColumnsDropList) => {
1144
- this.sectionsColumnsDropList = sectionsColumnsDropList;
1145
- });
1146
- this.layoutBuilderInternalService.editorChange$.pipe(this.getDestroyer()).subscribe((editor) => {
1147
- this.isMainEditorState = editor && editor.type === 'layout-builder';
1148
- this.isEditing = editor && editor.type === 'section' && editor.id === this.key;
1149
- this.selectedSectionKey = editor && editor.type === 'section' ? editor.id : '';
1150
- this.selectedBlockKey = editor && editor.type === 'block' ? editor.id : '';
1151
- });
1152
- this.layoutBuilderInternalService.draggingBlockKey.pipe(this.getDestroyer()).subscribe((draggingBlockKey) => {
1153
- this.draggingBlockKey = draggingBlockKey;
1154
- if (draggingBlockKey === '') {
1155
- this.calculateIfSectionContainsBlocks();
1156
- }
1157
- else {
1158
- // If there is only one block in the section and now it's this block that the user is dragging.
1159
- const blocksLength = this.columns.filter(column => column.BlockContainer).length;
1160
- if (blocksLength === 1 && this.columns.find(c => { var _a; return ((_a = c.BlockContainer) === null || _a === void 0 ? void 0 : _a.BlockKey) === this.draggingBlockKey; })) {
1161
- this.shouldSetDefaultHeight = true;
1162
- }
1163
- }
1164
- });
1165
- this.layoutBuilderInternalService.draggingSectionKey.pipe(this.getDestroyer()).subscribe((draggingSectionKey) => {
1166
- this.draggingSectionKey = draggingSectionKey;
1167
- });
1168
- }
1169
- this.sectionColumnKeyPrefix = this.layoutBuilderInternalService.getSectionColumnKey(this.key);
1170
- }
1171
- onEditSectionClick() {
1172
- this.layoutBuilderInternalService.navigateToEditor('section', this.key);
1173
- }
1174
- onRemoveSectionClick() {
1175
- this.layoutBuilderInternalService.removeSection(this.key);
1176
- }
1177
- onHideSectionChange(hideIn) {
1178
- this.layoutBuilderInternalService.hideSection(this.key, hideIn);
1179
- }
1180
- onHideInMenuOpened() {
1181
- this.hoverState = true;
1182
- }
1183
- onHideInMenuClosed() {
1184
- this.hoverState = false;
1185
- }
1186
- onBlockDropped(event) {
1187
- this.layoutBuilderInternalService.onBlockDropped(event, this.key);
1188
- }
1189
- canDropPredicate(columnIndex) {
1190
- return (drag, drop) => {
1191
- const res = !this.layoutBuilderInternalService.doesColumnContainBlock(this.key, columnIndex);
1192
- return res;
1193
- };
1194
- }
1195
- onDragStart(event) {
1196
- this.layoutBuilderInternalService.onSectionDragStart(event);
1197
- }
1198
- onDragEnd(event) {
1199
- this.layoutBuilderInternalService.onSectionDragEnd(event);
1200
- }
1201
- onSectionBlockDragExited(event) {
1202
- //
1203
- }
1204
- onSectionBlockDragEntered(event) {
1205
- //
1206
- }
1207
- }
1208
- SectionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: SectionComponent, deps: [{ token: i0.Renderer2 }, { token: LayoutBuilderInternalService }], target: i0.ɵɵFactoryTarget.Component });
1209
- SectionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: SectionComponent, selector: "section", inputs: { blockTemplate: "blockTemplate", key: "key", name: "name", split: "split", height: "height", collapseOnTablet: "collapseOnTablet", columns: "columns", hideIn: "hideIn", columnsGap: "columnsGap" }, host: { properties: { "style.max-height": "this.styleMaxHeight", "style.height": "this.styleHeight" } }, viewQueries: [{ propertyName: "sectionContainerRef", first: true, predicate: ["sectionContainer"], descendants: true }, { propertyName: "columnsElementRef", predicate: ["columnsWrapper"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div #sectionContainer *ngIf=\"editable || (containsBlocks && !hideForCurrentScreenType)\" class=\"section-container \"\n [ngClass]=\"{ \n 'mobile': screenType === 'Phablet',\n 'editable-state': editable, 'main-editor-state': isMainEditorState, 'default-height': shouldSetDefaultHeight, 'active-section': isEditing,\n 'section-hidden-state': hideForCurrentScreenType, 'section-is-dragging': draggingSectionKey !== '', 'show-hover-state': hoverState }\" \n cdkDragBoundary=\".layout-builder-wrapper\" cdkDrag [cdkDragData]=\"key\" [cdkDragDisabled]=\"!editable || selectedSectionKey.length > 0 || selectedBlockKey.length > 0\" (cdkDragStarted)=\"onDragStart($event)\" (cdkDragEnded)=\"onDragEnd($event)\" \n >\n <pep-draggable-item *ngIf=\"editable && isMainEditorState && draggingSectionKey === ''\" cdkDragHandle style=\"cursor: grab;\"\n class=\"section-toolbar\" [ngClass]=\"{ 'hide-toolbar': !hoverState }\" [title]=\"name\">\n <ng-container pep-actions>\n <pep-button classNames=\"caution\" sizeType=\"xs\" iconName=\"system_bin\" (buttonClick)=\"onRemoveSectionClick();\"></pep-button>\n <hide-in [hideIn]=\"hideIn\" (hideInChange)=\"onHideSectionChange($event)\" (menuClosed)=\"onHideInMenuClosed()\" (menuOpened)=\"onHideInMenuOpened()\"></hide-in>\n <pep-button sizeType=\"xs\" iconName=\"system_edit\" (buttonClick)=\"onEditSectionClick();\"></pep-button>\n </ng-container>\n </pep-draggable-item>\n\n <div *ngIf=\"editable\" class=\"section-background\">\n <div class=\"back-template\" *ngFor=\"let number of [0,1,2,3,4,5,6,7,8,9,10,11]\"></div>\n </div>\n <div #columnsWrapper class=\"columns-wrapper gap-{{ columnsGap }}\" \n [ngClass]=\"{ 'mobile': screenType === 'Phablet', 'is-dragging': editable && getIsDragging }\">\n <ng-container *ngFor=\"let column of columns; let i=index;\">\n \n <!-- This is moved to the section-block component cause when we change to work with 'grid-column' style we have to draw the columns.\n *ngIf=\"editable || (column.BlockContainer && column.BlockContainer.BlockKey && column.BlockContainer.BlockKey.length > 0 && !getIsHidden(column?.BlockContainer?.Hide, screenType))\" \n -->\n <div *ngIf=\"editable || isHorizontalView || (column.BlockContainer && column.BlockContainer.BlockKey && column.BlockContainer.BlockKey.length > 0)\"\n [id]=\"sectionColumnKeyPrefix + i\" \n class=\"section-column {{isHorizontalView ? 'horizontal' : 'vertical'}}\"\n [ngClass]=\"{ 'active-column': selectedBlockKey === column.BlockContainer?.BlockKey, \n 'is-hidden': getIsHidden(column?.BlockContainer?.Hide, screenType),\n 'already-contains-block': editable && column.BlockContainer && column.BlockContainer.BlockKey && column.BlockContainer.BlockKey.length > 0 && \n draggingBlockKey && draggingBlockKey.length > 0 && column.BlockContainer.BlockKey !== draggingBlockKey }\"\n cdkDropList\n [cdkDropListData]=\"column\"\n [cdkDropListOrientation]=\"isHorizontalView ? 'horizontal' : 'vertical'\" \n [cdkDropListConnectedTo]=\"sectionsColumnsDropList\"\n (cdkDropListDropped)=\"onBlockDropped($event)\"\n [cdkDropListEnterPredicate]=\"canDropPredicate(i)\"\n >\n <section-block *ngIf=\"column.BlockContainer?.BlockKey\" \n class=\"section-block\" [sectionKey]=\"key\" [blockTemplate]=\"blockTemplate\"\n [blockContainer]=\"column.BlockContainer\" [editable]=\"editable\" [isMainEditorState]=\"isMainEditorState\" [sectionHeight]=\"styleHeight\"\n [active]=\"selectedBlockKey === column.BlockContainer?.BlockKey\" [screenType]=\"screenType\"\n (dragExited)=\"onSectionBlockDragExited($event)\" (dragEntered)=\"onSectionBlockDragEntered($event)\"></section-block>\n </div>\n </ng-container>\n </div>\n</div>\n", styles: [".section-container{position:relative;display:grid;height:100%;max-height:inherit}.section-container.editable-state{min-height:2.5rem}.section-container.editable-state.default-height{min-height:16rem}.section-container.editable-state.active-section{z-index:11}.section-container.editable-state.active-section .columns-wrapper{z-index:1}.section-container.editable-state.active-section ::ng-deep .block-template-wrapper .block-template{pointer-events:unset!important;opacity:unset!important}.section-container.editable-state.cdk-drag-placeholder{opacity:.5}.section-container.editable-state:not(.cdk-drag-placeholder):hover .section-toolbar,.section-container.editable-state:not(.cdk-drag-placeholder).show-hover-state .section-toolbar{display:block!important}.section-container.editable-state:not(.cdk-drag-preview) .hide-toolbar{display:none}.section-container.editable-state.main-editor-state .mobile .is-hidden{display:none}.section-container.editable-state .mobile .is-hidden{display:block}.section-container.editable-state .section-toolbar{position:absolute;top:0;height:2.625rem;z-index:11}.section-container.editable-state .section-toolbar ::ng-deep .pep-draggable-item-container{border-radius:0 0 var(--pep-border-radius-md, .25rem) 0}.section-container.editable-state .section-background{position:absolute;width:100%;height:100%;z-index:0;display:grid;grid-template-columns:repeat(12,1fr)}.section-container.editable-state .section-background .back-template{opacity:.1}.section-container.editable-state .section-background .back-template:last-of-type{border-right:0 none}.section-container .columns-wrapper{display:grid;grid-auto-flow:column;height:inherit;max-height:inherit;overflow:inherit}.section-container .columns-wrapper.is-dragging{overflow:unset}.section-container .columns-wrapper.gap-none{gap:0}.section-container .columns-wrapper.gap-sm{gap:var(--pep-spacing-sm, .5rem)}.section-container .columns-wrapper.gap-md{gap:var(--pep-spacing-lg, 1rem)}.section-container .columns-wrapper.gap-lg{gap:var(--pep-spacing-2xl, 2rem)}.section-container .columns-wrapper .section-column{position:relative;height:inherit;max-height:inherit;overflow:inherit}.section-container .columns-wrapper .section-column .section-block{height:inherit;max-height:inherit}\n", ".section-container{background:transparent}.section-container.editable-state.active-section{background:hsl(var(--pep-color-system-primary-invert-h, 255),var(--pep-color-system-primary-invert-s, 100%),var(--pep-color-system-primary-invert-l, 100%));box-shadow:0 0 0 var(--pep-spacing-xs, .25rem) hsla(var(--pep-color-text-link-h, 207),var(--pep-color-text-link-s, 76%),var(--pep-color-text-link-l, 37%),.5)}.section-container.editable-state.active-section .columns-wrapper{background:hsl(var(--pep-color-system-primary-invert-h, 255),var(--pep-color-system-primary-invert-s, 100%),var(--pep-color-system-primary-invert-l, 100%))}.section-container.editable-state.section-hidden-state:not(.active-section){background:repeating-linear-gradient(45deg,hsla(var(--pep-color-system-caution-h, 360),var(--pep-color-system-caution-s, 100%),var(--pep-color-system-caution-l, 45%),0),hsla(var(--pep-color-system-caution-h, 360),var(--pep-color-system-caution-s, 100%),var(--pep-color-system-caution-l, 45%),0) .65rem,hsla(var(--pep-color-system-caution-h, 360),var(--pep-color-system-caution-s, 100%),var(--pep-color-system-caution-l, 45%),.32) .65rem,hsla(var(--pep-color-system-caution-h, 360),var(--pep-color-system-caution-s, 100%),var(--pep-color-system-caution-l, 45%),.32) .8rem),repeating-linear-gradient(-45deg,hsla(var(--pep-color-system-caution-h, 360),var(--pep-color-system-caution-s, 100%),var(--pep-color-system-caution-l, 45%),0),hsla(var(--pep-color-system-caution-h, 360),var(--pep-color-system-caution-s, 100%),var(--pep-color-system-caution-l, 45%),0) .65rem,hsla(var(--pep-color-system-caution-h, 360),var(--pep-color-system-caution-s, 100%),var(--pep-color-system-caution-l, 45%),.32) .65rem,hsla(var(--pep-color-system-caution-h, 360),var(--pep-color-system-caution-s, 100%),var(--pep-color-system-caution-l, 45%),.32) .8rem)}.section-container.editable-state.main-editor-state.cdk-drag-preview{box-shadow:0 0 0 .125rem hsl(var(--pep-color-system-caution-h, 360),var(--pep-color-system-caution-s, 100%),var(--pep-color-system-caution-l, 45%))}.section-container.editable-state.main-editor-state.cdk-drag-placeholder{box-shadow:0 0 0 var(--pep-spacing-xs, .25rem) hsla(var(--pep-color-text-link-h, 207),var(--pep-color-text-link-s, 76%),var(--pep-color-text-link-l, 37%),.5)}.section-container.editable-state.main-editor-state.cdk-drag-placeholder:hover,.section-container.editable-state.main-editor-state.cdk-drag-placeholder.show-hover-state{box-shadow:0 0 0 var(--pep-spacing-xs, .25rem) hsla(var(--pep-color-text-link-h, 207),var(--pep-color-text-link-s, 76%),var(--pep-color-text-link-l, 37%),.5)!important}.section-container.editable-state.main-editor-state:hover:not(.section-is-dragging),.section-container.editable-state.main-editor-state.show-hover-state:not(.section-is-dragging){box-shadow:0 0 0 .125rem hsl(var(--pep-color-system-caution-h, 360),var(--pep-color-system-caution-s, 100%),var(--pep-color-system-caution-l, 45%))}.section-container.editable-state.main-editor-state .section-toolbar ::ng-deep .pep-draggable-item-container{box-shadow:0 0 0 .125rem hsl(var(--pep-color-system-caution-h, 360),var(--pep-color-system-caution-s, 100%),var(--pep-color-system-caution-l, 45%))}.section-container.editable-state .section-background .back-template{background-color:#bec3e5;border-right:.125rem dashed hsl(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%))}.section-container.editable-state .columns-wrapper .section-column{border:.125rem dashed hsl(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%))}.section-container.editable-state .columns-wrapper .section-column.active-column{background:hsl(var(--pep-color-system-primary-invert-h, 255),var(--pep-color-system-primary-invert-s, 100%),var(--pep-color-system-primary-invert-l, 100%))}.section-container.editable-state .columns-wrapper .section-column.cdk-drop-list-dragging{box-shadow:0 0 0 var(--pep-spacing-xs, .25rem) hsla(var(--pep-color-text-link-h, 207),var(--pep-color-text-link-s, 76%),var(--pep-color-text-link-l, 37%),.5)}.section-container.editable-state .columns-wrapper .section-column.already-contains-block:hover{box-shadow:0 0 0 var(--pep-spacing-xs, .25rem) hsl(var(--pep-color-system-caution-h, 360),var(--pep-color-system-caution-s, 100%),var(--pep-color-system-caution-l, 45%))}.section-container.editable-state .columns-wrapper.gap-none .section-column:not(.section-container.editable-state .columns-wrapper.gap-none .section-column:first-of-type).horizontal{border-left:unset}.section-container.editable-state .columns-wrapper.gap-none .section-column:not(.section-container.editable-state .columns-wrapper.gap-none .section-column:first-of-type).horizontal.cdk-drop-list-dragging{border-left:.125rem dashed hsl(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%))}.section-container.editable-state .columns-wrapper.gap-none .section-column:not(.section-container.editable-state .columns-wrapper.gap-none .section-column:first-of-type).vertical{border-top:unset}.section-container.editable-state .columns-wrapper.gap-none .section-column:not(.section-container.editable-state .columns-wrapper.gap-none .section-column:first-of-type).vertical.cdk-drop-list-dragging{border-top:.125rem dashed hsl(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%))}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3$2.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i3$2.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: i3$2.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "component", type: i4$1.PepButtonComponent, selector: "pep-button", inputs: ["key", "value", "styleType", "styleStateType", "sizeType", "classNames", "disabled", "iconName", "iconPosition", "visible"], outputs: ["buttonClick"] }, { kind: "component", type: SectionBlockComponent, selector: "section-block", inputs: ["blockTemplate", "sectionKey", "sectionHeight", "isMainEditorState", "editable", "active", "blockContainer", "screenType"], outputs: ["dragExited", "dragEntered"] }, { kind: "component", type: HideInComponent, selector: "hide-in", inputs: ["hideIn"], outputs: ["hideInChange", "menuOpened", "menuClosed"] }, { kind: "component", type: i7.DraggableItemComponent, selector: "pep-draggable-item", inputs: ["title", "titlePrefix", "titleClassNames", "data", "disabled", "shadow", "styleType", "toggleContent", "isToggleContentOpen", "actionsMenu", "menuStyleType"], outputs: ["contentToggle", "actionsMenuItemClick"] }] });
1210
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: SectionComponent, decorators: [{
1211
- type: Component,
1212
- args: [{ selector: 'section', template: "<div #sectionContainer *ngIf=\"editable || (containsBlocks && !hideForCurrentScreenType)\" class=\"section-container \"\n [ngClass]=\"{ \n 'mobile': screenType === 'Phablet',\n 'editable-state': editable, 'main-editor-state': isMainEditorState, 'default-height': shouldSetDefaultHeight, 'active-section': isEditing,\n 'section-hidden-state': hideForCurrentScreenType, 'section-is-dragging': draggingSectionKey !== '', 'show-hover-state': hoverState }\" \n cdkDragBoundary=\".layout-builder-wrapper\" cdkDrag [cdkDragData]=\"key\" [cdkDragDisabled]=\"!editable || selectedSectionKey.length > 0 || selectedBlockKey.length > 0\" (cdkDragStarted)=\"onDragStart($event)\" (cdkDragEnded)=\"onDragEnd($event)\" \n >\n <pep-draggable-item *ngIf=\"editable && isMainEditorState && draggingSectionKey === ''\" cdkDragHandle style=\"cursor: grab;\"\n class=\"section-toolbar\" [ngClass]=\"{ 'hide-toolbar': !hoverState }\" [title]=\"name\">\n <ng-container pep-actions>\n <pep-button classNames=\"caution\" sizeType=\"xs\" iconName=\"system_bin\" (buttonClick)=\"onRemoveSectionClick();\"></pep-button>\n <hide-in [hideIn]=\"hideIn\" (hideInChange)=\"onHideSectionChange($event)\" (menuClosed)=\"onHideInMenuClosed()\" (menuOpened)=\"onHideInMenuOpened()\"></hide-in>\n <pep-button sizeType=\"xs\" iconName=\"system_edit\" (buttonClick)=\"onEditSectionClick();\"></pep-button>\n </ng-container>\n </pep-draggable-item>\n\n <div *ngIf=\"editable\" class=\"section-background\">\n <div class=\"back-template\" *ngFor=\"let number of [0,1,2,3,4,5,6,7,8,9,10,11]\"></div>\n </div>\n <div #columnsWrapper class=\"columns-wrapper gap-{{ columnsGap }}\" \n [ngClass]=\"{ 'mobile': screenType === 'Phablet', 'is-dragging': editable && getIsDragging }\">\n <ng-container *ngFor=\"let column of columns; let i=index;\">\n \n <!-- This is moved to the section-block component cause when we change to work with 'grid-column' style we have to draw the columns.\n *ngIf=\"editable || (column.BlockContainer && column.BlockContainer.BlockKey && column.BlockContainer.BlockKey.length > 0 && !getIsHidden(column?.BlockContainer?.Hide, screenType))\" \n -->\n <div *ngIf=\"editable || isHorizontalView || (column.BlockContainer && column.BlockContainer.BlockKey && column.BlockContainer.BlockKey.length > 0)\"\n [id]=\"sectionColumnKeyPrefix + i\" \n class=\"section-column {{isHorizontalView ? 'horizontal' : 'vertical'}}\"\n [ngClass]=\"{ 'active-column': selectedBlockKey === column.BlockContainer?.BlockKey, \n 'is-hidden': getIsHidden(column?.BlockContainer?.Hide, screenType),\n 'already-contains-block': editable && column.BlockContainer && column.BlockContainer.BlockKey && column.BlockContainer.BlockKey.length > 0 && \n draggingBlockKey && draggingBlockKey.length > 0 && column.BlockContainer.BlockKey !== draggingBlockKey }\"\n cdkDropList\n [cdkDropListData]=\"column\"\n [cdkDropListOrientation]=\"isHorizontalView ? 'horizontal' : 'vertical'\" \n [cdkDropListConnectedTo]=\"sectionsColumnsDropList\"\n (cdkDropListDropped)=\"onBlockDropped($event)\"\n [cdkDropListEnterPredicate]=\"canDropPredicate(i)\"\n >\n <section-block *ngIf=\"column.BlockContainer?.BlockKey\" \n class=\"section-block\" [sectionKey]=\"key\" [blockTemplate]=\"blockTemplate\"\n [blockContainer]=\"column.BlockContainer\" [editable]=\"editable\" [isMainEditorState]=\"isMainEditorState\" [sectionHeight]=\"styleHeight\"\n [active]=\"selectedBlockKey === column.BlockContainer?.BlockKey\" [screenType]=\"screenType\"\n (dragExited)=\"onSectionBlockDragExited($event)\" (dragEntered)=\"onSectionBlockDragEntered($event)\"></section-block>\n </div>\n </ng-container>\n </div>\n</div>\n", styles: [".section-container{position:relative;display:grid;height:100%;max-height:inherit}.section-container.editable-state{min-height:2.5rem}.section-container.editable-state.default-height{min-height:16rem}.section-container.editable-state.active-section{z-index:11}.section-container.editable-state.active-section .columns-wrapper{z-index:1}.section-container.editable-state.active-section ::ng-deep .block-template-wrapper .block-template{pointer-events:unset!important;opacity:unset!important}.section-container.editable-state.cdk-drag-placeholder{opacity:.5}.section-container.editable-state:not(.cdk-drag-placeholder):hover .section-toolbar,.section-container.editable-state:not(.cdk-drag-placeholder).show-hover-state .section-toolbar{display:block!important}.section-container.editable-state:not(.cdk-drag-preview) .hide-toolbar{display:none}.section-container.editable-state.main-editor-state .mobile .is-hidden{display:none}.section-container.editable-state .mobile .is-hidden{display:block}.section-container.editable-state .section-toolbar{position:absolute;top:0;height:2.625rem;z-index:11}.section-container.editable-state .section-toolbar ::ng-deep .pep-draggable-item-container{border-radius:0 0 var(--pep-border-radius-md, .25rem) 0}.section-container.editable-state .section-background{position:absolute;width:100%;height:100%;z-index:0;display:grid;grid-template-columns:repeat(12,1fr)}.section-container.editable-state .section-background .back-template{opacity:.1}.section-container.editable-state .section-background .back-template:last-of-type{border-right:0 none}.section-container .columns-wrapper{display:grid;grid-auto-flow:column;height:inherit;max-height:inherit;overflow:inherit}.section-container .columns-wrapper.is-dragging{overflow:unset}.section-container .columns-wrapper.gap-none{gap:0}.section-container .columns-wrapper.gap-sm{gap:var(--pep-spacing-sm, .5rem)}.section-container .columns-wrapper.gap-md{gap:var(--pep-spacing-lg, 1rem)}.section-container .columns-wrapper.gap-lg{gap:var(--pep-spacing-2xl, 2rem)}.section-container .columns-wrapper .section-column{position:relative;height:inherit;max-height:inherit;overflow:inherit}.section-container .columns-wrapper .section-column .section-block{height:inherit;max-height:inherit}\n", ".section-container{background:transparent}.section-container.editable-state.active-section{background:hsl(var(--pep-color-system-primary-invert-h, 255),var(--pep-color-system-primary-invert-s, 100%),var(--pep-color-system-primary-invert-l, 100%));box-shadow:0 0 0 var(--pep-spacing-xs, .25rem) hsla(var(--pep-color-text-link-h, 207),var(--pep-color-text-link-s, 76%),var(--pep-color-text-link-l, 37%),.5)}.section-container.editable-state.active-section .columns-wrapper{background:hsl(var(--pep-color-system-primary-invert-h, 255),var(--pep-color-system-primary-invert-s, 100%),var(--pep-color-system-primary-invert-l, 100%))}.section-container.editable-state.section-hidden-state:not(.active-section){background:repeating-linear-gradient(45deg,hsla(var(--pep-color-system-caution-h, 360),var(--pep-color-system-caution-s, 100%),var(--pep-color-system-caution-l, 45%),0),hsla(var(--pep-color-system-caution-h, 360),var(--pep-color-system-caution-s, 100%),var(--pep-color-system-caution-l, 45%),0) .65rem,hsla(var(--pep-color-system-caution-h, 360),var(--pep-color-system-caution-s, 100%),var(--pep-color-system-caution-l, 45%),.32) .65rem,hsla(var(--pep-color-system-caution-h, 360),var(--pep-color-system-caution-s, 100%),var(--pep-color-system-caution-l, 45%),.32) .8rem),repeating-linear-gradient(-45deg,hsla(var(--pep-color-system-caution-h, 360),var(--pep-color-system-caution-s, 100%),var(--pep-color-system-caution-l, 45%),0),hsla(var(--pep-color-system-caution-h, 360),var(--pep-color-system-caution-s, 100%),var(--pep-color-system-caution-l, 45%),0) .65rem,hsla(var(--pep-color-system-caution-h, 360),var(--pep-color-system-caution-s, 100%),var(--pep-color-system-caution-l, 45%),.32) .65rem,hsla(var(--pep-color-system-caution-h, 360),var(--pep-color-system-caution-s, 100%),var(--pep-color-system-caution-l, 45%),.32) .8rem)}.section-container.editable-state.main-editor-state.cdk-drag-preview{box-shadow:0 0 0 .125rem hsl(var(--pep-color-system-caution-h, 360),var(--pep-color-system-caution-s, 100%),var(--pep-color-system-caution-l, 45%))}.section-container.editable-state.main-editor-state.cdk-drag-placeholder{box-shadow:0 0 0 var(--pep-spacing-xs, .25rem) hsla(var(--pep-color-text-link-h, 207),var(--pep-color-text-link-s, 76%),var(--pep-color-text-link-l, 37%),.5)}.section-container.editable-state.main-editor-state.cdk-drag-placeholder:hover,.section-container.editable-state.main-editor-state.cdk-drag-placeholder.show-hover-state{box-shadow:0 0 0 var(--pep-spacing-xs, .25rem) hsla(var(--pep-color-text-link-h, 207),var(--pep-color-text-link-s, 76%),var(--pep-color-text-link-l, 37%),.5)!important}.section-container.editable-state.main-editor-state:hover:not(.section-is-dragging),.section-container.editable-state.main-editor-state.show-hover-state:not(.section-is-dragging){box-shadow:0 0 0 .125rem hsl(var(--pep-color-system-caution-h, 360),var(--pep-color-system-caution-s, 100%),var(--pep-color-system-caution-l, 45%))}.section-container.editable-state.main-editor-state .section-toolbar ::ng-deep .pep-draggable-item-container{box-shadow:0 0 0 .125rem hsl(var(--pep-color-system-caution-h, 360),var(--pep-color-system-caution-s, 100%),var(--pep-color-system-caution-l, 45%))}.section-container.editable-state .section-background .back-template{background-color:#bec3e5;border-right:.125rem dashed hsl(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%))}.section-container.editable-state .columns-wrapper .section-column{border:.125rem dashed hsl(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%))}.section-container.editable-state .columns-wrapper .section-column.active-column{background:hsl(var(--pep-color-system-primary-invert-h, 255),var(--pep-color-system-primary-invert-s, 100%),var(--pep-color-system-primary-invert-l, 100%))}.section-container.editable-state .columns-wrapper .section-column.cdk-drop-list-dragging{box-shadow:0 0 0 var(--pep-spacing-xs, .25rem) hsla(var(--pep-color-text-link-h, 207),var(--pep-color-text-link-s, 76%),var(--pep-color-text-link-l, 37%),.5)}.section-container.editable-state .columns-wrapper .section-column.already-contains-block:hover{box-shadow:0 0 0 var(--pep-spacing-xs, .25rem) hsl(var(--pep-color-system-caution-h, 360),var(--pep-color-system-caution-s, 100%),var(--pep-color-system-caution-l, 45%))}.section-container.editable-state .columns-wrapper.gap-none .section-column:not(.section-container.editable-state .columns-wrapper.gap-none .section-column:first-of-type).horizontal{border-left:unset}.section-container.editable-state .columns-wrapper.gap-none .section-column:not(.section-container.editable-state .columns-wrapper.gap-none .section-column:first-of-type).horizontal.cdk-drop-list-dragging{border-left:.125rem dashed hsl(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%))}.section-container.editable-state .columns-wrapper.gap-none .section-column:not(.section-container.editable-state .columns-wrapper.gap-none .section-column:first-of-type).vertical{border-top:unset}.section-container.editable-state .columns-wrapper.gap-none .section-column:not(.section-container.editable-state .columns-wrapper.gap-none .section-column:first-of-type).vertical.cdk-drop-list-dragging{border-top:.125rem dashed hsl(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%))}\n"] }]
1213
- }], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: LayoutBuilderInternalService }]; }, propDecorators: { sectionContainerRef: [{
1214
- type: ViewChild,
1215
- args: ['sectionContainer']
1216
- }], columnsElementRef: [{
1217
- type: ViewChildren,
1218
- args: ['columnsWrapper']
1219
- }], blockTemplate: [{
1220
- type: Input
1221
- }], key: [{
1222
- type: Input
1223
- }], name: [{
1224
- type: Input
1225
- }], split: [{
1226
- type: Input
1227
- }], height: [{
1228
- type: Input
1229
- }], collapseOnTablet: [{
1230
- type: Input
1231
- }], columns: [{
1232
- type: Input
1233
- }], hideIn: [{
1234
- type: Input
1235
- }], columnsGap: [{
1236
- type: Input
1237
- }], styleMaxHeight: [{
1238
- type: HostBinding,
1239
- args: ['style.max-height']
1240
- }], styleHeight: [{
1241
- type: HostBinding,
1242
- args: ['style.height']
1243
- }] } });
1244
-
1245
- class SectionBlockModule {
1246
- }
1247
- SectionBlockModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: SectionBlockModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1248
- SectionBlockModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: SectionBlockModule, declarations: [SectionBlockComponent], imports: [CommonModule,
1249
- DragDropModule,
1250
- PepButtonModule,
1251
- PepDraggableItemsModule], exports: [SectionBlockComponent] });
1252
- SectionBlockModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: SectionBlockModule, imports: [CommonModule,
1253
- DragDropModule,
1254
- PepButtonModule,
1255
- PepDraggableItemsModule] });
1256
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: SectionBlockModule, decorators: [{
1257
- type: NgModule,
1258
- args: [{
1259
- declarations: [
1260
- SectionBlockComponent,
1261
- ],
1262
- imports: [
1263
- CommonModule,
1264
- DragDropModule,
1265
- PepButtonModule,
1266
- PepDraggableItemsModule,
1267
- ],
1268
- exports: [SectionBlockComponent]
1269
- }]
1270
- }] });
1271
-
1272
- class SectionModule {
1273
- }
1274
- SectionModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: SectionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1275
- SectionModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: SectionModule, declarations: [SectionComponent], imports: [CommonModule,
1276
- DragDropModule,
1277
- PepButtonModule,
1278
- SectionBlockModule,
1279
- HideInModule,
1280
- PepDraggableItemsModule, i1.TranslateModule], exports: [SectionComponent] });
1281
- SectionModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: SectionModule, imports: [CommonModule,
1282
- DragDropModule,
1283
- PepButtonModule,
1284
- SectionBlockModule,
1285
- HideInModule,
1286
- PepDraggableItemsModule,
1287
- TranslateModule.forChild()] });
1288
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: SectionModule, decorators: [{
1289
- type: NgModule,
1290
- args: [{
1291
- declarations: [SectionComponent],
1292
- imports: [
1293
- CommonModule,
1294
- DragDropModule,
1295
- PepButtonModule,
1296
- SectionBlockModule,
1297
- HideInModule,
1298
- PepDraggableItemsModule,
1299
- TranslateModule.forChild()
1300
- ],
1301
- exports: [SectionComponent]
1302
- }]
1303
- }] });
1304
-
1305
- class PepLayoutComponent extends BaseDestroyerDirective {
1306
- constructor(
1307
- // public customizationService: PepCustomizationService,
1308
- // public layoutService: PepLayoutService,
1309
- layoutBuilderInternalService, hostElement, renderer) {
1310
- super();
1311
- this.layoutBuilderInternalService = layoutBuilderInternalService;
1312
- this.hostElement = hostElement;
1313
- this.renderer = renderer;
1314
- this.blockTemplate = undefined;
1315
- this._showSkeleton = false;
1316
- this.layoutViewChange = new EventEmitter();
1317
- this.screenTypeChange = new EventEmitter();
1318
- this._horizontalSpacing = 'md';
1319
- this._verticalSpacing = 'md';
1320
- this.paddingInline = '1rem';
1321
- this.previewMode = false;
1322
- this._sectionsSubject = new BehaviorSubject([]);
1323
- this.renderer.addClass(this.hostElement.nativeElement, 'pep-layout');
1324
- }
1325
- set layoutView(value) {
1326
- this._layoutView = value;
1327
- this.layoutBuilderInternalService.loadLayoutBuilder(value);
1328
- }
1329
- get layoutView() {
1330
- return this._layoutView;
1331
- }
1332
- set showSkeleton(value) {
1333
- this._showSkeleton = value;
1334
- this.layoutBuilderInternalService.showSkeleton(value);
1335
- }
1336
- get showSkeleton() {
1337
- return this._showSkeleton;
1338
- }
1339
- set horizontalSpacing(value) {
1340
- this._horizontalSpacing = value;
1341
- this.paddingInline = this.convertLayoutSizeType(value || 'md');
1342
- }
1343
- get horizontalSpacing() {
1344
- return this._horizontalSpacing;
1345
- }
1346
- set verticalSpacing(value) {
1347
- this._verticalSpacing = value;
1348
- }
1349
- get verticalSpacing() {
1350
- return this._verticalSpacing;
1351
- }
1352
- get sections$() {
1353
- return this._sectionsSubject.asObservable();
1354
- }
1355
- convertLayoutSizeType(size) {
1356
- let res;
1357
- if (size === 'lg') {
1358
- res = '2rem';
1359
- }
1360
- else if (size === 'md') {
1361
- res = '1rem';
1362
- }
1363
- else if (size === 'sm') {
1364
- res = '0.5rem';
1365
- }
1366
- else {
1367
- res = '0';
1368
- }
1369
- return res;
1370
- }
1371
- animateSkeleton() {
1372
- var _a, _b, _c, _d, _e, _f, _g, _h;
1373
- if (this._showSkeleton) {
1374
- // this.sectionsContainer?.nativeElement?.classList.add('out');
1375
- (_b = (_a = this.sectionsContainer) === null || _a === void 0 ? void 0 : _a.nativeElement) === null || _b === void 0 ? void 0 : _b.classList.remove('in');
1376
- (_d = (_c = this.skeletonContainer) === null || _c === void 0 ? void 0 : _c.nativeElement) === null || _d === void 0 ? void 0 : _d.classList.add('in');
1377
- // this.skeletonContainer?.nativeElement?.classList.remove('out');
1378
- }
1379
- else {
1380
- (_f = (_e = this.sectionsContainer) === null || _e === void 0 ? void 0 : _e.nativeElement) === null || _f === void 0 ? void 0 : _f.classList.add('in');
1381
- // this.sectionsContainer?.nativeElement?.classList.remove('out');
1382
- // this.skeletonContainer?.nativeElement?.classList.add('out');
1383
- (_h = (_g = this.skeletonContainer) === null || _g === void 0 ? void 0 : _g.nativeElement) === null || _h === void 0 ? void 0 : _h.classList.remove('in');
1384
- }
1385
- }
1386
- setLayoutDataProperties() {
1387
- var _a;
1388
- const layoutView = this._layoutView;
1389
- if (layoutView) {
1390
- if ((_a = this.sectionsContainer) === null || _a === void 0 ? void 0 : _a.nativeElement) {
1391
- const maxWidth = coerceNumberProperty(layoutView.Layout.MaxWidth, 0);
1392
- const maxWidthToSet = maxWidth === 0 ? 'unset' : `${maxWidth}px`;
1393
- this.renderer.setStyle(this.sectionsContainer.nativeElement, 'max-width', maxWidthToSet);
1394
- }
1395
- this.sectionsGap = layoutView.Layout.SectionsGap || 'md';
1396
- this.columnsGap = layoutView.Layout.ColumnsGap || 'md';
1397
- this.horizontalSpacing = layoutView.Layout.HorizontalSpacing;
1398
- this.verticalSpacing = layoutView.Layout.VerticalSpacing;
1399
- }
1400
- }
1401
- setScreentType(screenSize) {
1402
- const screenType = this.layoutBuilderInternalService.getScreenType(screenSize);
1403
- this.selectedScreenType = screenType;
1404
- this.screenTypeChange.emit(screenType);
1405
- }
1406
- ngOnInit() {
1407
- /***********************************************************************************************/
1408
- /* Internal Events - for code usage
1409
- /***********************************************************************************************/
1410
- if (this.layoutBuilderInternalService.editMode) {
1411
- this.layoutBuilderInternalService.previewModeChange$.pipe(this.getDestroyer()).subscribe((previewMode) => {
1412
- this.previewMode = previewMode;
1413
- });
1414
- }
1415
- this.layoutBuilderInternalService.sectionsChange$.pipe(this.getDestroyer()).subscribe((sections) => {
1416
- this._sectionsSubject.next(sections);
1417
- });
1418
- this.layoutBuilderInternalService.showSkeletonChange$.pipe(this.getDestroyer()).subscribe((showSkeleton) => {
1419
- if (showSkeleton !== undefined) {
1420
- this._showSkeleton = showSkeleton;
1421
- this.animateSkeleton();
1422
- }
1423
- });
1424
- // this.layoutService.onResize$.pipe(this.getDestroyer()).subscribe((size: any) => {
1425
- // this.setScreentType(size);
1426
- // });
1427
- this.layoutBuilderInternalService.screenSizeChange$.pipe(this.getDestroyer()).subscribe((size) => {
1428
- this.setScreentType(size);
1429
- });
1430
- /***********************************************************************************************/
1431
- /* External Events - for raise to the client
1432
- /***********************************************************************************************/
1433
- this.layoutBuilderInternalService.layoutViewChange$.pipe(this.getDestroyer()).subscribe((layoutView) => {
1434
- this._layoutView = layoutView;
1435
- this.setLayoutDataProperties();
1436
- this.layoutViewChange.emit(this._layoutView);
1437
- });
1438
- }
1439
- getSectionsTemplateRows() {
1440
- let gridAutoRows = '';
1441
- // let fillHeightCount = 0;
1442
- this.sections$.pipe(this.getDestroyer()).subscribe((sections) => {
1443
- if (sections === null || sections === void 0 ? void 0 : sections.length) {
1444
- sections.forEach((sec) => {
1445
- if (sec.FillHeight === true) {
1446
- // fillHeightCount++;
1447
- gridAutoRows += ' auto';
1448
- }
1449
- else {
1450
- gridAutoRows += ' min-content';
1451
- }
1452
- });
1453
- //if all are fill height should return 1fr for all
1454
- //if not should return auto for fill height and min content for none
1455
- return gridAutoRows;
1456
- }
1457
- else {
1458
- return '';
1459
- }
1460
- });
1461
- return gridAutoRows;
1462
- }
1463
- onSectionDropped(event) {
1464
- this.layoutBuilderInternalService.onSectionDropped(event);
1465
- }
1466
- onDragStart(event) {
1467
- this.layoutBuilderInternalService.onSectionDragStart(event);
1468
- }
1469
- onDragEnd(event) {
1470
- this.layoutBuilderInternalService.onSectionDragEnd(event);
1471
- }
1472
- }
1473
- PepLayoutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepLayoutComponent, deps: [{ token: LayoutBuilderInternalService }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
1474
- PepLayoutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: PepLayoutComponent, selector: "pep-layout", inputs: { layoutView: "layoutView", blockTemplate: "blockTemplate", showSkeleton: "showSkeleton" }, outputs: { layoutViewChange: "layoutViewChange", screenTypeChange: "screenTypeChange" }, host: { properties: { "style.padding-inline": "this.paddingInline" } }, viewQueries: [{ propertyName: "skeletonContainer", first: true, predicate: ["skeletonCont"], descendants: true, static: true }, { propertyName: "sectionsContainer", first: true, predicate: ["sectionsCont"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<!-- For the top spacing -->\n<div class=\"top-spacing spacing-{{verticalSpacing}}\" ></div>\n<div #sectionsCont cdkDropListGroup class=\"sections-container gap-{{ sectionsGap }}\" [ngClass]=\"{'preview-state': previewMode }\" \n cdkDropList (cdkDropListDropped)=\"onSectionDropped($event)\" [ngStyle]=\"{'grid-auto-rows': getSectionsTemplateRows()}\"\n >\n <section *ngFor=\"let section of sections$ | async; let i=index;\" \n class=\"draggable-section \" [ngClass]=\"selectedScreenType === 'Phablet' ? 'margin-'+sectionsGap : ''\" [blockTemplate]=\"blockTemplate\"\n [key]=\"section.Key\" [name]=\"section.Name || ('LAYOUT_BUILDER.SECTION' | translate) + ' ' + (i+1)\" [split]=\"section.Split\" [height]=\"section.Height\"\n [columns]=\"section.Columns\" [collapseOnTablet]=\"section.CollapseOnTablet || false\" [hideIn]=\"section.Hide || []\" [columnsGap]=\"columnsGap\"\n >\n </section>\n</div>\n<div #skeletonCont class=\"skeleton-container \">\n <pep-skeleton-loader [rowsNumber]=\"1\" [lastRowOffset]=\"false\" rowHeightType=\"xl\" ></pep-skeleton-loader>\n <div class=\"split-skeleton-container\">\n <pep-skeleton-loader [rowsNumber]=\"1\" [lastRowOffset]=\"false\" rowHeightType=\"max\" ></pep-skeleton-loader>\n <pep-skeleton-loader [rowsNumber]=\"1\" [lastRowOffset]=\"false\" rowHeightType=\"max\" ></pep-skeleton-loader>\n </div>\n <pep-skeleton-loader [rowsNumber]=\"1\" [lastRowOffset]=\"false\" rowHeightType=\"xl\" ></pep-skeleton-loader>\n\n <pep-skeleton-loader [rowsNumber]=\"1\" [lastRowOffset]=\"false\" rowHeightType=\"max\" ></pep-skeleton-loader>\n</div>\n<!-- For the bottom spacing -->\n<div class=\"bottom-spacing spacing-{{verticalSpacing}}\"></div>\n<pep-size-detector></pep-size-detector>", styles: [":host{display:grid;grid-template-areas:\"top-spacing\" \"content\" \"bottom-spacing\";grid-template-rows:auto 1fr auto;height:100%}.top-spacing{grid-area:top-spacing}.top-spacing.spacing-none{height:0}.top-spacing.spacing-sm{height:var(--pep-spacing-sm, .5rem)}.top-spacing.spacing-md{height:var(--pep-spacing-lg, 1rem)}.top-spacing.spacing-lg{height:var(--pep-spacing-2xl, 2rem)}.bottom-spacing{grid-area:bottom-spacing}.bottom-spacing.spacing-none{height:0}.bottom-spacing.spacing-sm{height:var(--pep-spacing-sm, .5rem)}.bottom-spacing.spacing-md{height:var(--pep-spacing-lg, 1rem)}.bottom-spacing.spacing-lg{height:var(--pep-spacing-2xl, 2rem)}.skeleton-container{display:grid;grid-area:content;height:100%;gap:var(--pep-spacing-lg, 1rem);grid-template-rows:auto auto auto 1fr;opacity:0}.skeleton-container .split-skeleton-container{display:grid;height:10rem;gap:var(--pep-spacing-lg, 1rem);grid-auto-flow:column}.sections-container{z-index:11;grid-area:content;width:100%;max-width:inherit;overflow-x:unset;margin:0 auto;position:relative;display:grid;grid-row:1px;height:inherit;opacity:0}.sections-container.gap-none{gap:0}.sections-container.gap-sm{gap:var(--pep-spacing-sm, .5rem)}.sections-container.gap-md{gap:var(--pep-spacing-lg, 1rem)}.sections-container.gap-lg{gap:var(--pep-spacing-2xl, 2rem)}.sections-container .draggable-section{display:block}.sections-container.preview-state section{display:contents}@keyframes in{0%{opacity:0;transform:translateY(-80);filter:blur(20px)}to{transform:translateY(0);opacity:1;filter:blur(0)}}.in{animation-name:in;animation-direction:normal;animation-duration:1.2s;animation-fill-mode:forwards}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i3$3.PepSkeletonLoaderComponent, selector: "pep-skeleton-loader", inputs: ["rowHeightType", "rowsNumber", "lastRowOffset"] }, { kind: "component", type: i4$2.PepSizeDetectorComponent, selector: "pep-size-detector", inputs: ["showScreenSize", "useAsWebComponent"], outputs: ["sizeChange"] }, { kind: "directive", type: i3$2.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i3$2.CdkDropListGroup, selector: "[cdkDropListGroup]", inputs: ["cdkDropListGroupDisabled"], exportAs: ["cdkDropListGroup"] }, { kind: "component", type: SectionComponent, selector: "section", inputs: ["blockTemplate", "key", "name", "split", "height", "collapseOnTablet", "columns", "hideIn", "columnsGap"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "pipe", type: i1.TranslatePipe, name: "translate" }] });
1475
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepLayoutComponent, decorators: [{
1476
- type: Component,
1477
- args: [{ selector: 'pep-layout', template: "<!-- For the top spacing -->\n<div class=\"top-spacing spacing-{{verticalSpacing}}\" ></div>\n<div #sectionsCont cdkDropListGroup class=\"sections-container gap-{{ sectionsGap }}\" [ngClass]=\"{'preview-state': previewMode }\" \n cdkDropList (cdkDropListDropped)=\"onSectionDropped($event)\" [ngStyle]=\"{'grid-auto-rows': getSectionsTemplateRows()}\"\n >\n <section *ngFor=\"let section of sections$ | async; let i=index;\" \n class=\"draggable-section \" [ngClass]=\"selectedScreenType === 'Phablet' ? 'margin-'+sectionsGap : ''\" [blockTemplate]=\"blockTemplate\"\n [key]=\"section.Key\" [name]=\"section.Name || ('LAYOUT_BUILDER.SECTION' | translate) + ' ' + (i+1)\" [split]=\"section.Split\" [height]=\"section.Height\"\n [columns]=\"section.Columns\" [collapseOnTablet]=\"section.CollapseOnTablet || false\" [hideIn]=\"section.Hide || []\" [columnsGap]=\"columnsGap\"\n >\n </section>\n</div>\n<div #skeletonCont class=\"skeleton-container \">\n <pep-skeleton-loader [rowsNumber]=\"1\" [lastRowOffset]=\"false\" rowHeightType=\"xl\" ></pep-skeleton-loader>\n <div class=\"split-skeleton-container\">\n <pep-skeleton-loader [rowsNumber]=\"1\" [lastRowOffset]=\"false\" rowHeightType=\"max\" ></pep-skeleton-loader>\n <pep-skeleton-loader [rowsNumber]=\"1\" [lastRowOffset]=\"false\" rowHeightType=\"max\" ></pep-skeleton-loader>\n </div>\n <pep-skeleton-loader [rowsNumber]=\"1\" [lastRowOffset]=\"false\" rowHeightType=\"xl\" ></pep-skeleton-loader>\n\n <pep-skeleton-loader [rowsNumber]=\"1\" [lastRowOffset]=\"false\" rowHeightType=\"max\" ></pep-skeleton-loader>\n</div>\n<!-- For the bottom spacing -->\n<div class=\"bottom-spacing spacing-{{verticalSpacing}}\"></div>\n<pep-size-detector></pep-size-detector>", styles: [":host{display:grid;grid-template-areas:\"top-spacing\" \"content\" \"bottom-spacing\";grid-template-rows:auto 1fr auto;height:100%}.top-spacing{grid-area:top-spacing}.top-spacing.spacing-none{height:0}.top-spacing.spacing-sm{height:var(--pep-spacing-sm, .5rem)}.top-spacing.spacing-md{height:var(--pep-spacing-lg, 1rem)}.top-spacing.spacing-lg{height:var(--pep-spacing-2xl, 2rem)}.bottom-spacing{grid-area:bottom-spacing}.bottom-spacing.spacing-none{height:0}.bottom-spacing.spacing-sm{height:var(--pep-spacing-sm, .5rem)}.bottom-spacing.spacing-md{height:var(--pep-spacing-lg, 1rem)}.bottom-spacing.spacing-lg{height:var(--pep-spacing-2xl, 2rem)}.skeleton-container{display:grid;grid-area:content;height:100%;gap:var(--pep-spacing-lg, 1rem);grid-template-rows:auto auto auto 1fr;opacity:0}.skeleton-container .split-skeleton-container{display:grid;height:10rem;gap:var(--pep-spacing-lg, 1rem);grid-auto-flow:column}.sections-container{z-index:11;grid-area:content;width:100%;max-width:inherit;overflow-x:unset;margin:0 auto;position:relative;display:grid;grid-row:1px;height:inherit;opacity:0}.sections-container.gap-none{gap:0}.sections-container.gap-sm{gap:var(--pep-spacing-sm, .5rem)}.sections-container.gap-md{gap:var(--pep-spacing-lg, 1rem)}.sections-container.gap-lg{gap:var(--pep-spacing-2xl, 2rem)}.sections-container .draggable-section{display:block}.sections-container.preview-state section{display:contents}@keyframes in{0%{opacity:0;transform:translateY(-80);filter:blur(20px)}to{transform:translateY(0);opacity:1;filter:blur(0)}}.in{animation-name:in;animation-direction:normal;animation-duration:1.2s;animation-fill-mode:forwards}\n"] }]
1478
- }], ctorParameters: function () { return [{ type: LayoutBuilderInternalService }, { type: i0.ElementRef }, { type: i0.Renderer2 }]; }, propDecorators: { skeletonContainer: [{
1479
- type: ViewChild,
1480
- args: ['skeletonCont', { static: true }]
1481
- }], sectionsContainer: [{
1482
- type: ViewChild,
1483
- args: ['sectionsCont', { static: true }]
1484
- }], layoutView: [{
1485
- type: Input
1486
- }], blockTemplate: [{
1487
- type: Input
1488
- }], showSkeleton: [{
1489
- type: Input
1490
- }], layoutViewChange: [{
1491
- type: Output
1492
- }], screenTypeChange: [{
1493
- type: Output
1494
- }], paddingInline: [{
1495
- type: HostBinding,
1496
- args: ['style.padding-inline']
1497
- }] } });
1498
-
1499
- class PepLayoutModule {
1500
- }
1501
- PepLayoutModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepLayoutModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1502
- PepLayoutModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: PepLayoutModule, declarations: [PepLayoutComponent], imports: [CommonModule,
1503
- HttpClientModule,
1504
- PepNgxLibModule,
1505
- PepSkeletonLoaderModule,
1506
- PepSizeDetectorModule,
1507
- PepDialogModule,
1508
- DragDropModule,
1509
- SectionModule, i1.TranslateModule], exports: [PepLayoutComponent] });
1510
- PepLayoutModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepLayoutModule, imports: [CommonModule,
1511
- HttpClientModule,
1512
- PepNgxLibModule,
1513
- PepSkeletonLoaderModule,
1514
- PepSizeDetectorModule,
1515
- PepDialogModule,
1516
- DragDropModule,
1517
- SectionModule,
1518
- TranslateModule.forChild()] });
1519
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepLayoutModule, decorators: [{
1520
- type: NgModule,
1521
- args: [{
1522
- declarations: [
1523
- PepLayoutComponent,
1524
- ],
1525
- imports: [
1526
- CommonModule,
1527
- HttpClientModule,
1528
- PepNgxLibModule,
1529
- PepSkeletonLoaderModule,
1530
- PepSizeDetectorModule,
1531
- PepDialogModule,
1532
- DragDropModule,
1533
- SectionModule,
1534
- TranslateModule.forChild()
1535
- ],
1536
- exports: [PepLayoutComponent],
1537
- }]
1538
- }] });
1539
-
1540
- class PepLayoutBuilderEditorComponent extends BaseDestroyerDirective {
1541
- constructor(hostElement, renderer) {
1542
- super();
1543
- this.hostElement = hostElement;
1544
- this.renderer = renderer;
1545
- this.editorTabs = [];
1546
- this.renderer.addClass(this.hostElement.nativeElement, 'pep-layout-builder-editor');
1547
- }
1548
- }
1549
- PepLayoutBuilderEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepLayoutBuilderEditorComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
1550
- PepLayoutBuilderEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: PepLayoutBuilderEditorComponent, selector: "pep-layout-builder-editor", inputs: { editorTabs: "editorTabs" }, usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"editorTabs && editorTabs.length > 0 then tabsTemplate else regularTemplate\">\n</ng-container>\n<ng-template #tabsTemplate>\n <mat-tab-group #tabGroup class=\"layout-builder-editor-tabs\" animationDuration=\"0ms\">\n <mat-tab *ngFor=\"let tab of editorTabs\" label=\"{{tab.title | translate}}\">\n <div class=\"layout-builder-editor-tab\">\n <ng-container *ngIf=\"tab.templateRef\">\n <ng-container *ngTemplateOutlet=\"tab.templateRef; context: { tabKey: tab.key }\">\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"!tab.templateRef\">\n <ng-content></ng-content>\n </ng-container>\n </div>\n </mat-tab>\n </mat-tab-group>\n\n</ng-template>\n<ng-template #regularTemplate>\n <div class=\"layout-builder-editor-container\">\n <ng-content></ng-content>\n </div>\n</ng-template>", styles: [""], dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i2$2.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "disableRipple"], exportAs: ["matTabGroup"] }, { kind: "component", type: i2$2.MatTab, selector: "mat-tab", inputs: ["disabled", "label", "aria-label", "aria-labelledby", "labelClass", "bodyClass"], exportAs: ["matTab"] }, { kind: "pipe", type: i1.TranslatePipe, name: "translate" }] });
1551
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepLayoutBuilderEditorComponent, decorators: [{
1552
- type: Component,
1553
- args: [{ selector: 'pep-layout-builder-editor', template: "<ng-container *ngIf=\"editorTabs && editorTabs.length > 0 then tabsTemplate else regularTemplate\">\n</ng-container>\n<ng-template #tabsTemplate>\n <mat-tab-group #tabGroup class=\"layout-builder-editor-tabs\" animationDuration=\"0ms\">\n <mat-tab *ngFor=\"let tab of editorTabs\" label=\"{{tab.title | translate}}\">\n <div class=\"layout-builder-editor-tab\">\n <ng-container *ngIf=\"tab.templateRef\">\n <ng-container *ngTemplateOutlet=\"tab.templateRef; context: { tabKey: tab.key }\">\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"!tab.templateRef\">\n <ng-content></ng-content>\n </ng-container>\n </div>\n </mat-tab>\n </mat-tab-group>\n\n</ng-template>\n<ng-template #regularTemplate>\n <div class=\"layout-builder-editor-container\">\n <ng-content></ng-content>\n </div>\n</ng-template>" }]
1554
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }]; }, propDecorators: { editorTabs: [{
1555
- type: Input
1556
- }] } });
1557
-
1558
- class MainEditorComponent extends BaseDestroyerDirective {
1559
- // protected showBottomContent = false;
1560
- // onLoadFlowHostObject;
1561
- // onChangeFlowHostObject;
1562
- constructor(layoutBuilderInternalService, hostElement, renderer) {
1563
- super();
1564
- this.layoutBuilderInternalService = layoutBuilderInternalService;
1565
- this.hostElement = hostElement;
1566
- this.renderer = renderer;
1567
- this.availableBlocksForDrag = [];
1568
- this.hostObjectChange = new EventEmitter();
1569
- this.horizontalSpacing = 'md';
1570
- this.verticalSpacing = 'md';
1571
- this.sectionsGap = 'md';
1572
- this.columnsGap = 'md';
1573
- this.roundedCorners = 'none';
1574
- // protected sizesGroupButtons = Array<ISpacingOption>();
1575
- this.availableBlocksContainerId = LayoutBuilderInternalService.AVAILABLE_BLOCKS_CONTAINER_ID;
1576
- this.sectionsColumnsDropList = [];
1577
- this.showTopContent = false;
1578
- this.renderer.addClass(this.hostElement.nativeElement, 'pep-layout-main-editor');
1579
- }
1580
- set hostObject(value) {
1581
- this._hostObject = value;
1582
- this.isFullWidth = !value.maxWidth || value.maxWidth === 0;
1583
- this.maxWidth = value.maxWidth;
1584
- this.horizontalSpacing = this._hostObject.horizontalSpacing || 'md';
1585
- this.verticalSpacing = this._hostObject.verticalSpacing || 'md';
1586
- this.sectionsGap = this._hostObject.sectionsGap || 'md';
1587
- this.columnsGap = this._hostObject.columnsGap || 'md';
1588
- this.roundedCorners = this._hostObject.roundedCorners || 'none';
1589
- }
1590
- get hostObject() {
1591
- return this._hostObject;
1592
- }
1593
- updateHostObject() {
1594
- this._hostObject.maxWidth = this.isFullWidth ? 0 : this.maxWidth;
1595
- this._hostObject.horizontalSpacing = this.horizontalSpacing;
1596
- this._hostObject.verticalSpacing = this.verticalSpacing;
1597
- this._hostObject.sectionsGap = this.sectionsGap;
1598
- this._hostObject.columnsGap = this.columnsGap;
1599
- this._hostObject.roundedCorners = this.roundedCorners === 'none' ? undefined : this.roundedCorners;
1600
- this.hostObjectChange.emit(this.hostObject);
1601
- }
1602
- ngOnInit() {
1603
- this.layoutBuilderInternalService.sectionsColumnsDropListChange$.subscribe((sectionsColumnsDropList) => {
1604
- this.sectionsColumnsDropList = sectionsColumnsDropList;
1605
- });
1606
- }
1607
- ngAfterContentInit() {
1608
- var _a;
1609
- if (((_a = this._topContentRef) === null || _a === void 0 ? void 0 : _a.nativeElement.children.length) > 0) {
1610
- this.showTopContent = true;
1611
- }
1612
- // if (this._bottomContentRef.nativeElement.children.length > 0) {
1613
- // this.showBottomContent = true;
1614
- // }
1615
- }
1616
- onAddSectionClick(event) {
1617
- this.layoutBuilderInternalService.addSection();
1618
- }
1619
- isFullWidthChange(isChecked) {
1620
- this.isFullWidth = isChecked;
1621
- this.maxWidth = isChecked ? 0 : 960;
1622
- this.updateHostObject();
1623
- }
1624
- onMaxWidthChange(maxWidth) {
1625
- this.maxWidth = coerceNumberProperty(maxWidth, this.maxWidth);
1626
- this.updateHostObject();
1627
- }
1628
- setColumnsHorizntalGap(key) {
1629
- this.horizontalSpacing = key;
1630
- this.updateHostObject();
1631
- }
1632
- setColumnsVerticalGap(key) {
1633
- this.verticalSpacing = key;
1634
- this.updateHostObject();
1635
- }
1636
- setSectionGap(key) {
1637
- this.sectionsGap = key;
1638
- this.updateHostObject();
1639
- }
1640
- setColumnsGap(key) {
1641
- this.columnsGap = key;
1642
- this.updateHostObject();
1643
- }
1644
- setRoundedCorners(key) {
1645
- this.roundedCorners = key;
1646
- this.updateHostObject();
1647
- }
1648
- onDragStart(event) {
1649
- this.layoutBuilderInternalService.onBlockDragStart(event);
1650
- }
1651
- onDragEnd(event) {
1652
- this.layoutBuilderInternalService.onBlockDragEnd(event);
1653
- }
1654
- }
1655
- MainEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: MainEditorComponent, deps: [{ token: LayoutBuilderInternalService }, { token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
1656
- MainEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: MainEditorComponent, selector: "main-editor", inputs: { availableBlocksForDrag: "availableBlocksForDrag", hostObject: "hostObject" }, outputs: { hostObjectChange: "hostObjectChange" }, viewQueries: [{ propertyName: "_topContentRef", first: true, predicate: ["topContentRef"], descendants: true, static: true }, { propertyName: "availableBlocksContainer", first: true, predicate: ["availableBlocksContainer"], descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: "<pep-layout-builder-editor [editorTabs]=\"[\n {key: '1', title: 'LAYOUT_BUILDER.GENERAL', templateRef: firstTabTemplate}, \n {key: '2', title: 'LAYOUT_BUILDER.DESIGN', templateRef: secondTabTemplate}]\">\n</pep-layout-builder-editor>\n\n<ng-template #firstTabTemplate let-tabKey=\"tabKey\">\n <div #topContentRef class=\"layout-builder-editor-group\">\n <ng-content select=\"[layout-editor-top-content]\"></ng-content>\n <div *ngIf=\"showTopContent\" class=\"editor-separator\"></div>\n </div>\n <div>\n <label class=\"editor-title\">{{'LAYOUT_BUILDER.SECTIONS_TITLE' | translate}}</label>\n <pep-button class=\"add-section-button\" value=\"{{'LAYOUT_BUILDER.ADD_SECTION' | translate}}\" styleType=\"regular\" iconName=\"number_plus\" iconPosition=\"end\"\n (buttonClick)=\"onAddSectionClick($event)\"></pep-button>\n </div>\n <div class=\"editor-separator\"></div>\n <pep-draggable-items class=\"available-blocks\" [containerId]=\"availableBlocksContainerId\" [items]=\"availableBlocksForDrag\" [title]=\"'LAYOUT_BUILDER.BLOCKS_TITLE' | translate\"\n titleSizeType=\"xl\" titleType=\"with-bottom-border\" [showSearch]=\"true\" [dropAreaIds]=\"sectionsColumnsDropList\" (itemDragStarted)=\"onDragStart($event)\" (itemDragEnded)=\"onDragEnd($event)\">\n </pep-draggable-items>\n <!-- <div #bottomContentRef class=\"layout-builder-editor-group\">\n <div *ngIf=\"showBottomContent\" class=\"editor-separator\"></div>\n <ng-content select=\"[layout-editor-bottom-content]\"></ng-content>\n </div> -->\n</ng-template>\n\n<ng-template #secondTabTemplate let-tabKey=\"tabKey\">\n <div>\n <pep-checkbox class=\"checkbox-as-title\" [value]=\"isFullWidth\" [label]=\"'LAYOUT_BUILDER.FULL_WIDTH_TITLE' | translate\" [renderTitle]=\"false\" (valueChange)=\"isFullWidthChange($event)\"></pep-checkbox>\n <pep-textbox [label]=\"'LAYOUT_BUILDER.MAX_WIDTH_TITLE' | translate\" type=\"int\" [disabled]=\"isFullWidth\" [value]=\"maxWidth.toString()\" (valueChange)=\"onMaxWidthChange($event)\"></pep-textbox>\n </div>\n <div class=\"editor-separator\"></div>\n <!-- Spacing -->\n <pep-group-buttons-settings [groupType]=\"'sizes'\" \n [header]=\"'LAYOUT_BUILDER.SPACING_TITLE' | translate\" [subHeader]=\"'LAYOUT_BUILDER.SPACING_HORIZONTAL_TITLE' | translate\"\n [btnKey]=\"horizontalSpacing.toLowerCase()\" [excludeKeys]=\"['xs','xl','2xl']\" [useNone]=\"true\"\n (btnkeyChange)=\"setColumnsHorizntalGap($event)\">\n </pep-group-buttons-settings>\n <pep-group-buttons-settings [groupType]=\"'sizes'\" \n [subHeader]=\"'LAYOUT_BUILDER.SPACING_VERTICAL_TITLE' | translate\"\n [btnKey]=\"verticalSpacing.toLowerCase()\" [excludeKeys]=\"['xs','xl','2xl']\" [useNone]=\"true\"\n (btnkeyChange)=\"setColumnsVerticalGap($event)\">\n </pep-group-buttons-settings>\n <div class=\"editor-separator\"></div>\n <!-- Gaps -->\n <pep-group-buttons-settings [groupType]=\"'sizes'\" \n [header]=\"'LAYOUT_BUILDER.GAPS_TITLE' | translate\" [subHeader]=\"'LAYOUT_BUILDER.SECTIONS_GAP_TITLE' | translate\"\n [btnKey]=\"sectionsGap.toLowerCase()\" [excludeKeys]=\"['xs','xl','2xl']\" [useNone]=\"true\"\n (btnkeyChange)=\"setSectionGap($event)\">\n </pep-group-buttons-settings>\n <pep-group-buttons-settings [groupType]=\"'sizes'\" \n [subHeader]=\"'LAYOUT_BUILDER.COLUMNS_GAP_TITLE' | translate\"\n [btnKey]=\"columnsGap.toLowerCase()\" [excludeKeys]=\"['xs','xl','2xl']\" [useNone]=\"true\"\n (btnkeyChange)=\"setColumnsGap($event)\">\n </pep-group-buttons-settings>\n <!-- Rounded Corners -->\n <!--\n <div class=\"editor-separator\"></div>\n <label class=\"editor-title\">{{'LAYOUT_BUILDER.ROUNDED_CORNERS_TITLE' | translate}}</label><br>\n <label class=\"body-xs ellipsis\">{{'LAYOUT_BUILDER.BORDER_RADIUS_TITLE' | translate}}</label>\n <pep-group-buttons [buttons]=\"sizesGroupButtons\" [selectedButtonKey]=\"roundedCorners\" buttonsClass=\"ms regular\" viewType=\"toggle\"\n (buttonClick)=\"setRoundedCorners($event)\"></pep-group-buttons> -->\n</ng-template>\n", styles: [":host pep-draggable-items ::ng-deep .draggable-items-overflow{padding-bottom:0!important}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3$4.PepTextboxComponent, selector: "pep-textbox", inputs: ["key", "value", "minFractionDigits", "maxFractionDigits", "accessory", "label", "placeholder", "type", "mandatory", "disabled", "readonly", "maxFieldCharacters", "hint", "textColor", "xAlignment", "rowSpan", "minValue", "maxValue", "visible", "form", "isActive", "showTitle", "renderTitle", "renderError", "renderSymbol", "layoutType", "parentFieldKey", "regex", "regexError", "isInFocus"], outputs: ["valueChange", "keyup"] }, { kind: "component", type: i4$1.PepButtonComponent, selector: "pep-button", inputs: ["key", "value", "styleType", "styleStateType", "sizeType", "classNames", "disabled", "iconName", "iconPosition", "visible"], outputs: ["buttonClick"] }, { kind: "component", type: i5$1.PepCheckboxComponent, selector: "pep-checkbox", inputs: ["key", "value", "label", "type", "mandatory", "disabled", "readonly", "xAlignment", "rowSpan", "additionalValue", "form", "isActive", "showTitle", "renderTitle", "layoutType", "visible"], outputs: ["valueChange"] }, { kind: "component", type: i6.GroupButtonsSettingsComponent, selector: "pep-group-buttons-settings", inputs: ["header", "subHeader", "groupType", "btnsArray", "excludeKeys", "useNone", "disabled", "dir", "titleSize", "bold", "btnKey"], outputs: ["btnkeyChange"] }, { kind: "component", type: i7.PepDraggableItemsComponent, selector: "pep-draggable-items", inputs: ["containerId", "showSearch", "title", "titleType", "titleSizeType", "itemPlaceholderType", "dropAreaIds", "items"], outputs: ["itemDragStarted", "itemDragEnded"] }, { kind: "component", type: PepLayoutBuilderEditorComponent, selector: "pep-layout-builder-editor", inputs: ["editorTabs"] }, { kind: "pipe", type: i1.TranslatePipe, name: "translate" }] });
1657
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: MainEditorComponent, decorators: [{
1658
- type: Component,
1659
- args: [{ selector: 'main-editor', template: "<pep-layout-builder-editor [editorTabs]=\"[\n {key: '1', title: 'LAYOUT_BUILDER.GENERAL', templateRef: firstTabTemplate}, \n {key: '2', title: 'LAYOUT_BUILDER.DESIGN', templateRef: secondTabTemplate}]\">\n</pep-layout-builder-editor>\n\n<ng-template #firstTabTemplate let-tabKey=\"tabKey\">\n <div #topContentRef class=\"layout-builder-editor-group\">\n <ng-content select=\"[layout-editor-top-content]\"></ng-content>\n <div *ngIf=\"showTopContent\" class=\"editor-separator\"></div>\n </div>\n <div>\n <label class=\"editor-title\">{{'LAYOUT_BUILDER.SECTIONS_TITLE' | translate}}</label>\n <pep-button class=\"add-section-button\" value=\"{{'LAYOUT_BUILDER.ADD_SECTION' | translate}}\" styleType=\"regular\" iconName=\"number_plus\" iconPosition=\"end\"\n (buttonClick)=\"onAddSectionClick($event)\"></pep-button>\n </div>\n <div class=\"editor-separator\"></div>\n <pep-draggable-items class=\"available-blocks\" [containerId]=\"availableBlocksContainerId\" [items]=\"availableBlocksForDrag\" [title]=\"'LAYOUT_BUILDER.BLOCKS_TITLE' | translate\"\n titleSizeType=\"xl\" titleType=\"with-bottom-border\" [showSearch]=\"true\" [dropAreaIds]=\"sectionsColumnsDropList\" (itemDragStarted)=\"onDragStart($event)\" (itemDragEnded)=\"onDragEnd($event)\">\n </pep-draggable-items>\n <!-- <div #bottomContentRef class=\"layout-builder-editor-group\">\n <div *ngIf=\"showBottomContent\" class=\"editor-separator\"></div>\n <ng-content select=\"[layout-editor-bottom-content]\"></ng-content>\n </div> -->\n</ng-template>\n\n<ng-template #secondTabTemplate let-tabKey=\"tabKey\">\n <div>\n <pep-checkbox class=\"checkbox-as-title\" [value]=\"isFullWidth\" [label]=\"'LAYOUT_BUILDER.FULL_WIDTH_TITLE' | translate\" [renderTitle]=\"false\" (valueChange)=\"isFullWidthChange($event)\"></pep-checkbox>\n <pep-textbox [label]=\"'LAYOUT_BUILDER.MAX_WIDTH_TITLE' | translate\" type=\"int\" [disabled]=\"isFullWidth\" [value]=\"maxWidth.toString()\" (valueChange)=\"onMaxWidthChange($event)\"></pep-textbox>\n </div>\n <div class=\"editor-separator\"></div>\n <!-- Spacing -->\n <pep-group-buttons-settings [groupType]=\"'sizes'\" \n [header]=\"'LAYOUT_BUILDER.SPACING_TITLE' | translate\" [subHeader]=\"'LAYOUT_BUILDER.SPACING_HORIZONTAL_TITLE' | translate\"\n [btnKey]=\"horizontalSpacing.toLowerCase()\" [excludeKeys]=\"['xs','xl','2xl']\" [useNone]=\"true\"\n (btnkeyChange)=\"setColumnsHorizntalGap($event)\">\n </pep-group-buttons-settings>\n <pep-group-buttons-settings [groupType]=\"'sizes'\" \n [subHeader]=\"'LAYOUT_BUILDER.SPACING_VERTICAL_TITLE' | translate\"\n [btnKey]=\"verticalSpacing.toLowerCase()\" [excludeKeys]=\"['xs','xl','2xl']\" [useNone]=\"true\"\n (btnkeyChange)=\"setColumnsVerticalGap($event)\">\n </pep-group-buttons-settings>\n <div class=\"editor-separator\"></div>\n <!-- Gaps -->\n <pep-group-buttons-settings [groupType]=\"'sizes'\" \n [header]=\"'LAYOUT_BUILDER.GAPS_TITLE' | translate\" [subHeader]=\"'LAYOUT_BUILDER.SECTIONS_GAP_TITLE' | translate\"\n [btnKey]=\"sectionsGap.toLowerCase()\" [excludeKeys]=\"['xs','xl','2xl']\" [useNone]=\"true\"\n (btnkeyChange)=\"setSectionGap($event)\">\n </pep-group-buttons-settings>\n <pep-group-buttons-settings [groupType]=\"'sizes'\" \n [subHeader]=\"'LAYOUT_BUILDER.COLUMNS_GAP_TITLE' | translate\"\n [btnKey]=\"columnsGap.toLowerCase()\" [excludeKeys]=\"['xs','xl','2xl']\" [useNone]=\"true\"\n (btnkeyChange)=\"setColumnsGap($event)\">\n </pep-group-buttons-settings>\n <!-- Rounded Corners -->\n <!--\n <div class=\"editor-separator\"></div>\n <label class=\"editor-title\">{{'LAYOUT_BUILDER.ROUNDED_CORNERS_TITLE' | translate}}</label><br>\n <label class=\"body-xs ellipsis\">{{'LAYOUT_BUILDER.BORDER_RADIUS_TITLE' | translate}}</label>\n <pep-group-buttons [buttons]=\"sizesGroupButtons\" [selectedButtonKey]=\"roundedCorners\" buttonsClass=\"ms regular\" viewType=\"toggle\"\n (buttonClick)=\"setRoundedCorners($event)\"></pep-group-buttons> -->\n</ng-template>\n", styles: [":host pep-draggable-items ::ng-deep .draggable-items-overflow{padding-bottom:0!important}\n"] }]
1660
- }], ctorParameters: function () { return [{ type: LayoutBuilderInternalService }, { type: i0.ElementRef }, { type: i0.Renderer2 }]; }, propDecorators: { _topContentRef: [{
1661
- type: ViewChild,
1662
- args: ['topContentRef', { static: true }]
1663
- }], availableBlocksContainer: [{
1664
- type: ViewChild,
1665
- args: ['availableBlocksContainer', { read: ElementRef }]
1666
- }], availableBlocksForDrag: [{
1667
- type: Input
1668
- }], hostObject: [{
1669
- type: Input
1670
- }], hostObjectChange: [{
1671
- type: Output
1672
- }] } });
1673
-
1674
- class PepLayoutBuilderEditorModule {
1675
- constructor() {
1676
- //
1677
- }
1678
- }
1679
- PepLayoutBuilderEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepLayoutBuilderEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1680
- PepLayoutBuilderEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: PepLayoutBuilderEditorModule, declarations: [PepLayoutBuilderEditorComponent], imports: [CommonModule,
1681
- HttpClientModule,
1682
- OverlayModule,
1683
- MatTabsModule,
1684
- PepNgxLibModule, i1.TranslateModule], exports: [PepLayoutBuilderEditorComponent] });
1685
- PepLayoutBuilderEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepLayoutBuilderEditorModule, imports: [CommonModule,
1686
- HttpClientModule,
1687
- OverlayModule,
1688
- MatTabsModule,
1689
- PepNgxLibModule,
1690
- TranslateModule.forChild()] });
1691
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepLayoutBuilderEditorModule, decorators: [{
1692
- type: NgModule,
1693
- args: [{
1694
- declarations: [
1695
- PepLayoutBuilderEditorComponent
1696
- ],
1697
- imports: [
1698
- CommonModule,
1699
- HttpClientModule,
1700
- OverlayModule,
1701
- MatTabsModule,
1702
- PepNgxLibModule,
1703
- TranslateModule.forChild()
1704
- ],
1705
- exports: [PepLayoutBuilderEditorComponent]
1706
- }]
1707
- }], ctorParameters: function () { return []; } });
1708
-
1709
- class MainEditorModule {
1710
- constructor() {
1711
- // this.pepIconRegistry.registerIcons(pepIcons);
1712
- }
1713
- }
1714
- MainEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: MainEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1715
- MainEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: MainEditorModule, declarations: [MainEditorComponent], imports: [CommonModule,
1716
- HttpClientModule,
1717
- DragDropModule,
1718
- OverlayModule,
1719
- MatTabsModule,
1720
- MatSliderModule,
1721
- PepNgxLibModule,
1722
- PepSelectModule,
1723
- PepTextboxModule,
1724
- PepButtonModule,
1725
- PepCheckboxModule,
1726
- PepGroupButtonsModule,
1727
- PepColorModule,
1728
- PepImageModule,
1729
- PepGroupButtonsSettingsModule,
1730
- PepDraggableItemsModule,
1731
- PepDialogModule,
1732
- PepLayoutBuilderEditorModule, i1.TranslateModule], exports: [MainEditorComponent] });
1733
- MainEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: MainEditorModule, imports: [CommonModule,
1734
- HttpClientModule,
1735
- DragDropModule,
1736
- OverlayModule,
1737
- MatTabsModule,
1738
- MatSliderModule,
1739
- PepNgxLibModule,
1740
- PepSelectModule,
1741
- PepTextboxModule,
1742
- PepButtonModule,
1743
- PepCheckboxModule,
1744
- PepGroupButtonsModule,
1745
- PepColorModule,
1746
- PepImageModule,
1747
- PepGroupButtonsSettingsModule,
1748
- PepDraggableItemsModule,
1749
- PepDialogModule,
1750
- PepLayoutBuilderEditorModule,
1751
- TranslateModule.forChild()] });
1752
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: MainEditorModule, decorators: [{
1753
- type: NgModule,
1754
- args: [{
1755
- declarations: [
1756
- MainEditorComponent
1757
- ],
1758
- imports: [
1759
- CommonModule,
1760
- HttpClientModule,
1761
- DragDropModule,
1762
- OverlayModule,
1763
- MatTabsModule,
1764
- MatSliderModule,
1765
- PepNgxLibModule,
1766
- PepSelectModule,
1767
- PepTextboxModule,
1768
- PepButtonModule,
1769
- PepCheckboxModule,
1770
- PepGroupButtonsModule,
1771
- PepColorModule,
1772
- PepImageModule,
1773
- PepGroupButtonsSettingsModule,
1774
- PepDraggableItemsModule,
1775
- PepDialogModule,
1776
- PepLayoutBuilderEditorModule,
1777
- TranslateModule.forChild()
1778
- ],
1779
- exports: [MainEditorComponent]
1780
- }]
1781
- }], ctorParameters: function () { return []; } });
1782
-
1783
- class SectionEditorComponent {
1784
- constructor(translate, dialog) {
1785
- this.translate = translate;
1786
- this.dialog = dialog;
1787
- this.MIN_HEIGHT = 40;
1788
- this.sectionName = '';
1789
- this.isAutoHeight = true;
1790
- this.height = this.MIN_HEIGHT;
1791
- this.hostObjectChange = new EventEmitter();
1792
- this.collapseOnTablet = false;
1793
- this.fillHeight = false;
1794
- this.subSections = false;
1795
- this.partsNumber = "2";
1796
- this.partsNumberOptions = Array();
1797
- this.splitOptions = Array();
1798
- this.allSplitOptions = Array();
1799
- this.initData();
1800
- }
1801
- set hostObject(value) {
1802
- var _a, _b;
1803
- this._hostObject = value;
1804
- this.sectionName = value.sectionName;
1805
- this.split = value.split;
1806
- this.isAutoHeight = !value.height || value.height === 0;
1807
- this.height = this.isAutoHeight ? this.MIN_HEIGHT : value.height;
1808
- this.collapseOnTablet = (_a = value.collapseOnTablet) !== null && _a !== void 0 ? _a : false;
1809
- this.fillHeight = (_b = value.fillHeight) !== null && _b !== void 0 ? _b : false;
1810
- }
1811
- get hostObject() {
1812
- return this._hostObject;
1813
- }
1814
- set split(value) {
1815
- this._split = value;
1816
- this.subSections = (this._split && this._split.length > 0) ? true : false;
1817
- // Check how many parts we have.
1818
- const arr = value === null || value === void 0 ? void 0 : value.split(' ');
1819
- if (arr && arr.length > 1 && arr.length <= 4) {
1820
- this.partsNumber = arr.length.toString();
1821
- }
1822
- else {
1823
- this.partsNumber = "2";
1824
- }
1825
- this.loadSplitOptions();
1826
- }
1827
- get split() {
1828
- return this._split;
1829
- }
1830
- initData() {
1831
- this.partsNumberOptions = [
1832
- { 'key': '2', 'value': '2 Parts' },
1833
- { 'key': '3', 'value': '3 Parts' },
1834
- { 'key': '4', 'value': '4 Parts' }
1835
- ];
1836
- this.allSplitOptions = [
1837
- { 'key': '2', 'value': [
1838
- { 'key': '1/4 3/4', 'value': '1/4-3/4' },
1839
- { 'key': '1/3 2/3', 'value': '1/3-2/3' },
1840
- { 'key': '1/2 1/2', 'value': '1/2-1/2' },
1841
- { 'key': '2/3 1/3', 'value': '2/3-1/3' },
1842
- { 'key': '3/4 1/4', 'value': '3/4-1/4' },
1843
- ] },
1844
- { 'key': '3', 'value': [
1845
- { 'key': '1/3 1/3 1/3', 'value': '1/3-1/3-1/3' },
1846
- { 'key': '1/2 1/4 1/4', 'value': '1/2-1/4-1/4' },
1847
- { 'key': '1/4 1/2 1/4', 'value': '1/4-1/2-1/4' },
1848
- { 'key': '1/4 1/4 1/2', 'value': '1/4-1/4-1/2' },
1849
- ] },
1850
- { 'key': '4', 'value': [
1851
- { 'key': '1/4 1/4 1/4 1/4', 'value': '1/4-1/4-1/4-1/4' },
1852
- ] }
1853
- ];
1854
- }
1855
- loadSplitOptions() {
1856
- const splitOptions = this.allSplitOptions.find((option) => option.key === this.partsNumber);
1857
- if (splitOptions) {
1858
- this.splitOptions = splitOptions.value;
1859
- }
1860
- else {
1861
- this.splitOptions = this.allSplitOptions[0].value;
1862
- }
1863
- if (!this._split) {
1864
- this._split = this.splitOptions[0].key;
1865
- }
1866
- }
1867
- updateHostObject() {
1868
- this._hostObject.sectionName = this.sectionName;
1869
- this._hostObject.split = this.subSections ? this.split : undefined;
1870
- this._hostObject.height = this.isAutoHeight ? 0 : this.height;
1871
- this._hostObject.collapseOnTablet = this.collapseOnTablet;
1872
- this._hostObject.fillHeight = this.fillHeight;
1873
- this.hostObjectChange.emit(this.hostObject);
1874
- }
1875
- ngOnInit() {
1876
- this.loadSplitOptions();
1877
- }
1878
- isAutoHeightChange(isChecked) {
1879
- this.isAutoHeight = isChecked;
1880
- this.updateHostObject();
1881
- }
1882
- onHeightChange(height) {
1883
- if (height >= this.MIN_HEIGHT) {
1884
- this.height = coerceNumberProperty(height, this.height);
1885
- this.updateHostObject();
1886
- }
1887
- }
1888
- onSectionNameChange(value) {
1889
- this.sectionName = value;
1890
- this.updateHostObject();
1891
- }
1892
- onCollapseOnTabletChange(value) {
1893
- this.collapseOnTablet = value;
1894
- this.updateHostObject();
1895
- }
1896
- onFillHeightChange(value) {
1897
- this.fillHeight = value;
1898
- this.updateHostObject();
1899
- }
1900
- onSubSectionsChange(value) {
1901
- const oldValue = this.subSections;
1902
- // Check if cancel the sub sections ( change from any -> 1 section ), if true need to show confirm message
1903
- if (value === false) {
1904
- this.subSections = value;
1905
- this.showDeleteSectionMsg(() => {
1906
- this.updateHostObject();
1907
- }, () => {
1908
- this.subSections = oldValue;
1909
- });
1910
- }
1911
- else {
1912
- this.subSections = value;
1913
- this.updateHostObject();
1914
- }
1915
- }
1916
- onPartsNumberChange(key) {
1917
- const oldKey = this.partsNumber;
1918
- // Check if decrease on sub sections number, if true need to show confirm message
1919
- if (key && parseInt(key) < parseInt(this.partsNumber)) {
1920
- this.partsNumber = key;
1921
- this.showDeleteSectionMsg(() => {
1922
- this.loadSplitOptions();
1923
- this._split = this.splitOptions[0].key;
1924
- this.updateHostObject();
1925
- }, () => {
1926
- this.partsNumber = oldKey;
1927
- });
1928
- }
1929
- else {
1930
- this.partsNumber = key;
1931
- this.loadSplitOptions();
1932
- this._split = this.splitOptions[0].key;
1933
- this.updateHostObject();
1934
- }
1935
- }
1936
- showDeleteSectionMsg(continueCB, cancelCB) {
1937
- const actionButtons = [
1938
- new PepDialogActionButton(this.translate.instant('ACTIONS.CANCEL'), '', () => {
1939
- cancelCB();
1940
- }),
1941
- new PepDialogActionButton(this.translate.instant('ACTIONS.CONTINUE'), 'strong caution', () => {
1942
- continueCB();
1943
- })
1944
- ];
1945
- const content = this.translate.instant('LAYOUT_BUILDER.DELETE_SECTION_MSG');
1946
- const title = this.translate.instant('LAYOUT_BUILDER.DELETE_SECTION_TITLE');
1947
- const dataMsg = new PepDialogData({ title, actionsType: 'custom', content, actionButtons });
1948
- this.dialog.openDefaultDialog(dataMsg);
1949
- }
1950
- onSplitChange(key) {
1951
- this._split = key;
1952
- this.updateHostObject();
1953
- }
1954
- }
1955
- SectionEditorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: SectionEditorComponent, deps: [{ token: i1.TranslateService }, { token: i2$1.PepDialogService }], target: i0.ɵɵFactoryTarget.Component });
1956
- SectionEditorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: SectionEditorComponent, selector: "section-editor", inputs: { hostObject: "hostObject" }, outputs: { hostObjectChange: "hostObjectChange" }, ngImport: i0, template: "<pep-layout-builder-editor class=\"section-editor-container\">\n <div>\n <pep-textbox [value]=\"sectionName\" [label]=\"'LAYOUT_BUILDER.SECTION_NAME_TITLE' | translate\" (valueChange)=\"onSectionNameChange($event)\"></pep-textbox>\n </div>\n <!-- \n <div>\n <pep-checkbox class=\"checkbox-as-title\" [value]=\"isAutoHeight\" [label]=\"'LAYOUT_BUILDER.AUTO_HEIGHT_TITLE' | translate\" [renderTitle]=\"false\" (valueChange)=\"isAutoHeightChange($event)\"></pep-checkbox>\n <pep-textbox [label]=\"'LAYOUT_BUILDER.HEIGHT_TITLE' | translate\" type=\"int\" [minValue]=\"MIN_HEIGHT\" [disabled]=\"isAutoHeight\" [value]=\"height\" (valueChange)=\"onHeightChange($event)\"></pep-textbox> \n </div>\n -->\n <div class=\"editor-separator\"></div>\n <div>\n <pep-checkbox class=\"checkbox-as-title\" [value]=\"subSections\" [label]=\"'LAYOUT_BUILDER.SUB_SECTION_TITLE' | translate\" [renderTitle]=\"false\" (valueChange)=\"onSubSectionsChange($event)\"></pep-checkbox>\n <div class=\"split-area\">\n <pep-select [label]=\"'LAYOUT_BUILDER.SECTIONS_TITLE' | translate\" [value]=\"partsNumber\" [options]=\"partsNumberOptions\" \n (valueChange)=\"onPartsNumberChange($event)\" [emptyOption]=\"false\" [disabled]=\"!subSections\"></pep-select>\n <pep-select [label]=\"'LAYOUT_BUILDER.SPLIT_TITLE' | translate\" [value]=\"split || ''\" [options]=\"splitOptions\"\n (valueChange)=\"onSplitChange($event)\" [emptyOption]=\"false\" [disabled]=\"!subSections\"></pep-select>\n </div>\n </div>\n <div class=\"editor-separator\"></div>\n <div>\n <pep-checkbox class=\"checkbox-as-title\" [value]=\"collapseOnTablet\" [label]=\"'LAYOUT_BUILDER.COLLAPSE_ON_TABLET_TITLE' | translate\" [renderTitle]=\"false\" (valueChange)=\"onCollapseOnTabletChange($event)\"></pep-checkbox>\n <span class=\"header-title body-xs\">{{('LAYOUT_BUILDER.COLLAPSE_ON_TABLET_DESCRIPTION' | translate)}}</span>\n </div>\n <div class=\"editor-separator\"></div>\n <div>\n <pep-checkbox class=\"checkbox-as-title\" [value]=\"fillHeight\" [label]=\"'LAYOUT_BUILDER.FILL_HEIGHT_SECTION_TITLE' | translate\" [renderTitle]=\"false\" (valueChange)=\"onFillHeightChange($event)\"></pep-checkbox>\n <span class=\"header-title body-xs\">{{('LAYOUT_BUILDER.FILL_HEIGHT_SECTION_DESCRIPTION' | translate)}}</span>\n </div>\n</pep-layout-builder-editor>\n\n<!-- <div class=\"section-editor-container layout-builder-editor-container\">\n <div>\n <pep-textbox [value]=\"sectionName\" [label]=\"'LAYOUT_BUILDER.SECTION_NAME_TITLE' | translate\" (valueChange)=\"onSectionNameChange($event)\"></pep-textbox>\n </div>\n <div class=\"editor-separator\"></div>\n <div>\n <pep-checkbox class=\"checkbox-as-title\" [value]=\"subSections\" [label]=\"'LAYOUT_BUILDER.SUB_SECTION_TITLE' | translate\" [renderTitle]=\"false\" (valueChange)=\"onSubSectionsChange($event)\"></pep-checkbox>\n <div class=\"split-area\">\n <pep-select [label]=\"'LAYOUT_BUILDER.SECTIONS_TITLE' | translate\" [value]=\"partsNumber\" [options]=\"partsNumberOptions\" \n (valueChange)=\"onPartsNumberChange($event)\" [emptyOption]=\"false\" [disabled]=\"!subSections\"></pep-select>\n <pep-select [label]=\"'LAYOUT_BUILDER.SPLIT_TITLE' | translate\" [value]=\"split || ''\" [options]=\"splitOptions\"\n (valueChange)=\"onSplitChange($event)\" [emptyOption]=\"false\" [disabled]=\"!subSections\"></pep-select>\n </div>\n </div>\n <div class=\"editor-separator\"></div>\n <div>\n <pep-checkbox class=\"checkbox-as-title\" [value]=\"collapseOnTablet\" [label]=\"'LAYOUT_BUILDER.COLLAPSE_ON_TABLET_TITLE' | translate\" [renderTitle]=\"false\" (valueChange)=\"onCollapseOnTabletChange($event)\"></pep-checkbox>\n <span class=\"header-title body-xs\">{{('LAYOUT_BUILDER.COLLAPSE_ON_TABLET_DESCRIPTION' | translate)}}</span>\n </div>\n <div class=\"editor-separator\"></div>\n <div>\n <pep-checkbox class=\"checkbox-as-title\" [value]=\"fillHeight\" [label]=\"'LAYOUT_BUILDER.FILL_HEIGHT_SECTION_TITLE' | translate\" [renderTitle]=\"false\" (valueChange)=\"onFillHeightChange($event)\"></pep-checkbox>\n <span class=\"header-title body-xs\">{{('LAYOUT_BUILDER.FILL_HEIGHT_SECTION_DESCRIPTION' | translate)}}</span>\n </div>\n</div> -->\n", styles: [".section-editor-container .split-area{display:grid;grid-template-columns:1fr 1fr;gap:var(--pep-spacing-lg, 1rem)}\n"], dependencies: [{ kind: "component", type: i3$4.PepTextboxComponent, selector: "pep-textbox", inputs: ["key", "value", "minFractionDigits", "maxFractionDigits", "accessory", "label", "placeholder", "type", "mandatory", "disabled", "readonly", "maxFieldCharacters", "hint", "textColor", "xAlignment", "rowSpan", "minValue", "maxValue", "visible", "form", "isActive", "showTitle", "renderTitle", "renderError", "renderSymbol", "layoutType", "parentFieldKey", "regex", "regexError", "isInFocus"], outputs: ["valueChange", "keyup"] }, { kind: "component", type: i4$3.PepSelectComponent, selector: "pep-select", inputs: ["key", "value", "label", "type", "mandatory", "disabled", "readonly", "xAlignment", "rowSpan", "placeholder", "placeholderWhenDisabled", "options", "visible", "emptyOption", "form", "layoutType", "parentFieldKey", "isActive", "showTitle", "renderTitle", "typeaheadDebounceInterval", "addValueToOptionsIfNotExist"], outputs: ["valueChange"] }, { kind: "component", type: i5$1.PepCheckboxComponent, selector: "pep-checkbox", inputs: ["key", "value", "label", "type", "mandatory", "disabled", "readonly", "xAlignment", "rowSpan", "additionalValue", "form", "isActive", "showTitle", "renderTitle", "layoutType", "visible"], outputs: ["valueChange"] }, { kind: "component", type: PepLayoutBuilderEditorComponent, selector: "pep-layout-builder-editor", inputs: ["editorTabs"] }, { kind: "pipe", type: i1.TranslatePipe, name: "translate" }] });
1957
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: SectionEditorComponent, decorators: [{
1958
- type: Component,
1959
- args: [{ selector: 'section-editor', template: "<pep-layout-builder-editor class=\"section-editor-container\">\n <div>\n <pep-textbox [value]=\"sectionName\" [label]=\"'LAYOUT_BUILDER.SECTION_NAME_TITLE' | translate\" (valueChange)=\"onSectionNameChange($event)\"></pep-textbox>\n </div>\n <!-- \n <div>\n <pep-checkbox class=\"checkbox-as-title\" [value]=\"isAutoHeight\" [label]=\"'LAYOUT_BUILDER.AUTO_HEIGHT_TITLE' | translate\" [renderTitle]=\"false\" (valueChange)=\"isAutoHeightChange($event)\"></pep-checkbox>\n <pep-textbox [label]=\"'LAYOUT_BUILDER.HEIGHT_TITLE' | translate\" type=\"int\" [minValue]=\"MIN_HEIGHT\" [disabled]=\"isAutoHeight\" [value]=\"height\" (valueChange)=\"onHeightChange($event)\"></pep-textbox> \n </div>\n -->\n <div class=\"editor-separator\"></div>\n <div>\n <pep-checkbox class=\"checkbox-as-title\" [value]=\"subSections\" [label]=\"'LAYOUT_BUILDER.SUB_SECTION_TITLE' | translate\" [renderTitle]=\"false\" (valueChange)=\"onSubSectionsChange($event)\"></pep-checkbox>\n <div class=\"split-area\">\n <pep-select [label]=\"'LAYOUT_BUILDER.SECTIONS_TITLE' | translate\" [value]=\"partsNumber\" [options]=\"partsNumberOptions\" \n (valueChange)=\"onPartsNumberChange($event)\" [emptyOption]=\"false\" [disabled]=\"!subSections\"></pep-select>\n <pep-select [label]=\"'LAYOUT_BUILDER.SPLIT_TITLE' | translate\" [value]=\"split || ''\" [options]=\"splitOptions\"\n (valueChange)=\"onSplitChange($event)\" [emptyOption]=\"false\" [disabled]=\"!subSections\"></pep-select>\n </div>\n </div>\n <div class=\"editor-separator\"></div>\n <div>\n <pep-checkbox class=\"checkbox-as-title\" [value]=\"collapseOnTablet\" [label]=\"'LAYOUT_BUILDER.COLLAPSE_ON_TABLET_TITLE' | translate\" [renderTitle]=\"false\" (valueChange)=\"onCollapseOnTabletChange($event)\"></pep-checkbox>\n <span class=\"header-title body-xs\">{{('LAYOUT_BUILDER.COLLAPSE_ON_TABLET_DESCRIPTION' | translate)}}</span>\n </div>\n <div class=\"editor-separator\"></div>\n <div>\n <pep-checkbox class=\"checkbox-as-title\" [value]=\"fillHeight\" [label]=\"'LAYOUT_BUILDER.FILL_HEIGHT_SECTION_TITLE' | translate\" [renderTitle]=\"false\" (valueChange)=\"onFillHeightChange($event)\"></pep-checkbox>\n <span class=\"header-title body-xs\">{{('LAYOUT_BUILDER.FILL_HEIGHT_SECTION_DESCRIPTION' | translate)}}</span>\n </div>\n</pep-layout-builder-editor>\n\n<!-- <div class=\"section-editor-container layout-builder-editor-container\">\n <div>\n <pep-textbox [value]=\"sectionName\" [label]=\"'LAYOUT_BUILDER.SECTION_NAME_TITLE' | translate\" (valueChange)=\"onSectionNameChange($event)\"></pep-textbox>\n </div>\n <div class=\"editor-separator\"></div>\n <div>\n <pep-checkbox class=\"checkbox-as-title\" [value]=\"subSections\" [label]=\"'LAYOUT_BUILDER.SUB_SECTION_TITLE' | translate\" [renderTitle]=\"false\" (valueChange)=\"onSubSectionsChange($event)\"></pep-checkbox>\n <div class=\"split-area\">\n <pep-select [label]=\"'LAYOUT_BUILDER.SECTIONS_TITLE' | translate\" [value]=\"partsNumber\" [options]=\"partsNumberOptions\" \n (valueChange)=\"onPartsNumberChange($event)\" [emptyOption]=\"false\" [disabled]=\"!subSections\"></pep-select>\n <pep-select [label]=\"'LAYOUT_BUILDER.SPLIT_TITLE' | translate\" [value]=\"split || ''\" [options]=\"splitOptions\"\n (valueChange)=\"onSplitChange($event)\" [emptyOption]=\"false\" [disabled]=\"!subSections\"></pep-select>\n </div>\n </div>\n <div class=\"editor-separator\"></div>\n <div>\n <pep-checkbox class=\"checkbox-as-title\" [value]=\"collapseOnTablet\" [label]=\"'LAYOUT_BUILDER.COLLAPSE_ON_TABLET_TITLE' | translate\" [renderTitle]=\"false\" (valueChange)=\"onCollapseOnTabletChange($event)\"></pep-checkbox>\n <span class=\"header-title body-xs\">{{('LAYOUT_BUILDER.COLLAPSE_ON_TABLET_DESCRIPTION' | translate)}}</span>\n </div>\n <div class=\"editor-separator\"></div>\n <div>\n <pep-checkbox class=\"checkbox-as-title\" [value]=\"fillHeight\" [label]=\"'LAYOUT_BUILDER.FILL_HEIGHT_SECTION_TITLE' | translate\" [renderTitle]=\"false\" (valueChange)=\"onFillHeightChange($event)\"></pep-checkbox>\n <span class=\"header-title body-xs\">{{('LAYOUT_BUILDER.FILL_HEIGHT_SECTION_DESCRIPTION' | translate)}}</span>\n </div>\n</div> -->\n", styles: [".section-editor-container .split-area{display:grid;grid-template-columns:1fr 1fr;gap:var(--pep-spacing-lg, 1rem)}\n"] }]
1960
- }], ctorParameters: function () { return [{ type: i1.TranslateService }, { type: i2$1.PepDialogService }]; }, propDecorators: { hostObject: [{
1961
- type: Input
1962
- }], hostObjectChange: [{
1963
- type: Output
1964
- }] } });
1965
-
1966
- class SectionEditorModule {
1967
- }
1968
- SectionEditorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: SectionEditorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1969
- SectionEditorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: SectionEditorModule, declarations: [SectionEditorComponent], imports: [CommonModule,
1970
- PepButtonModule,
1971
- PepTextboxModule,
1972
- PepSelectModule,
1973
- PepCheckboxModule,
1974
- PepLayoutBuilderEditorModule, i1.TranslateModule], exports: [SectionEditorComponent] });
1975
- SectionEditorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: SectionEditorModule, imports: [CommonModule,
1976
- PepButtonModule,
1977
- PepTextboxModule,
1978
- PepSelectModule,
1979
- PepCheckboxModule,
1980
- PepLayoutBuilderEditorModule,
1981
- TranslateModule.forChild()] });
1982
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: SectionEditorModule, decorators: [{
1983
- type: NgModule,
1984
- args: [{
1985
- declarations: [SectionEditorComponent],
1986
- imports: [
1987
- CommonModule,
1988
- PepButtonModule,
1989
- PepTextboxModule,
1990
- PepSelectModule,
1991
- PepCheckboxModule,
1992
- PepLayoutBuilderEditorModule,
1993
- TranslateModule.forChild()
1994
- ],
1995
- exports: [SectionEditorComponent]
1996
- }]
1997
- }] });
1998
-
1999
- class PepLayoutBuilderComponent extends BaseDestroyerDirective {
2000
- constructor(renderer, hostElement, translate, layoutBuilderInternalService, pepAddonService) {
2001
- super();
2002
- this.renderer = renderer;
2003
- this.hostElement = hostElement;
2004
- this.translate = translate;
2005
- this.layoutBuilderInternalService = layoutBuilderInternalService;
2006
- this.pepAddonService = pepAddonService;
2007
- this._availableBlocksForDrag = [];
2008
- this._blocksLayoutConfig = {};
2009
- this._layoutEditorTitle = '';
2010
- this.backClick = new EventEmitter();
2011
- this.editorChange = new EventEmitter();
2012
- this.blockAdded = new EventEmitter();
2013
- this.blocksRemoved = new EventEmitter();
2014
- this.lockScreen = false;
2015
- this.previewMode = false;
2016
- this.currentEditor = null;
2017
- this.viewportWidth = 0;
2018
- this.pepAddonService.setShellRouterData({ showSidebar: false, addPadding: false });
2019
- this.renderer.addClass(this.hostElement.nativeElement, 'pep-layout-builder');
2020
- }
2021
- set availableBlocksForDrag(value) {
2022
- this._availableBlocksForDrag = value;
2023
- }
2024
- get availableBlocksForDrag() {
2025
- return this._availableBlocksForDrag;
2026
- }
2027
- set blocksLayoutConfig(value) {
2028
- this._blocksLayoutConfig = value;
2029
- this.layoutBuilderInternalService.setBlocksConfig(this._blocksLayoutConfig);
2030
- }
2031
- set layoutEditorTitle(value) {
2032
- this._layoutEditorTitle = value;
2033
- }
2034
- get layoutEditorTitle() {
2035
- return this._layoutEditorTitle;
2036
- }
2037
- setScreenWidth(screenType) {
2038
- this.layoutBuilderInternalService.setScreenWidth(screenType);
2039
- }
2040
- updateViewportWidth() {
2041
- var _a;
2042
- if ((_a = this.layoutBuilderWrapper) === null || _a === void 0 ? void 0 : _a.nativeElement) {
2043
- setTimeout(() => {
2044
- this.viewportWidth = this.layoutBuilderWrapper.nativeElement.clientWidth;
2045
- });
2046
- }
2047
- }
2048
- subscribeEvents() {
2049
- /***********************************************************************************************/
2050
- /* Internal Events - for code usage
2051
- /***********************************************************************************************/
2052
- this.layoutBuilderInternalService.previewModeChange$.pipe(this.getDestroyer()).subscribe((previewMode) => {
2053
- this.previewMode = previewMode;
2054
- });
2055
- this.layoutBuilderInternalService.lockScreenChange$.pipe(this.getDestroyer()).subscribe((lockScreen) => {
2056
- this.lockScreen = lockScreen;
2057
- });
2058
- this.layoutBuilderInternalService.screenSizeChange$.pipe(this.getDestroyer()).subscribe((size) => {
2059
- const screenType = this.layoutBuilderInternalService.getScreenType(size);
2060
- this.selectedScreenType = screenType;
2061
- });
2062
- // For update the layout data
2063
- this.layoutBuilderInternalService.layoutViewChange$.pipe(this.getDestroyer()).subscribe((layoutView) => {
2064
- var _a;
2065
- if (layoutView) {
2066
- if ((_a = this.layoutBuilderWrapper) === null || _a === void 0 ? void 0 : _a.nativeElement) {
2067
- const maxWidth = coerceNumberProperty(layoutView.Layout.MaxWidth, 0);
2068
- const maxWidthToSet = maxWidth === 0 ? '100%' : `${maxWidth}px`;
2069
- this.renderer.setStyle(this.layoutBuilderWrapper.nativeElement, 'max-width', maxWidthToSet);
2070
- this.updateViewportWidth();
2071
- }
2072
- }
2073
- });
2074
- this.layoutBuilderInternalService.screenWidthChange$.pipe(this.getDestroyer()).subscribe((width) => {
2075
- var _a;
2076
- if ((_a = this.layoutBuilderWrapper) === null || _a === void 0 ? void 0 : _a.nativeElement) {
2077
- this.renderer.setStyle(this.layoutBuilderWrapper.nativeElement, 'width', width);
2078
- this.updateViewportWidth();
2079
- }
2080
- });
2081
- // Get the sections id's into sectionsColumnsDropList for the drag & drop.
2082
- this.layoutBuilderInternalService.sectionsChange$.pipe(this.getDestroyer()).subscribe((sections) => {
2083
- // Concat all results into one array.
2084
- const sectionsColumnsDropList = [].concat(...sections.map((section) => {
2085
- return section.Columns.map((column, index) => this.layoutBuilderInternalService.getSectionColumnKey(section.Key, index.toString()));
2086
- }));
2087
- this.layoutBuilderInternalService.setSectionsColumnsDropListChange(sectionsColumnsDropList);
2088
- });
2089
- /***********************************************************************************************/
2090
- /* External Events - for raise to the client
2091
- /***********************************************************************************************/
2092
- // For update editor.
2093
- this.layoutBuilderInternalService.editorChange$.pipe(this.getDestroyer()).subscribe((editor) => {
2094
- if (editor) {
2095
- // Init the side bar scroll top to 0.
2096
- if (this.sideBarComponent) {
2097
- const sideLayout = this.sideBarComponent.nativeElement.querySelector('.side-layout');
2098
- sideLayout === null || sideLayout === void 0 ? void 0 : sideLayout.scrollTo(0, 0);
2099
- }
2100
- this.currentEditor = editor;
2101
- // Raise event to let the user set the block editor in the UI.
2102
- this.editorChange.emit(editor);
2103
- }
2104
- });
2105
- this.layoutBuilderInternalService.blockAddedEventSubject$.pipe(this.getDestroyer()).subscribe((event) => {
2106
- if (event) {
2107
- this.blockAdded.emit(event);
2108
- }
2109
- });
2110
- this.layoutBuilderInternalService.blocksRemovedEventSubject$.pipe(this.getDestroyer()).subscribe((event) => {
2111
- if ((event === null || event === void 0 ? void 0 : event.length) > 0) {
2112
- this.blocksRemoved.emit(event);
2113
- }
2114
- });
2115
- }
2116
- ngOnInit() {
2117
- this.layoutBuilderInternalService.setEditMode(true);
2118
- // Get the first translation for load all translations.
2119
- this.translate.get('LAYOUT_BUILDER.DESKTOP').subscribe((res) => {
2120
- this.screenTypes = [
2121
- { key: 'Landscape', value: this.translate.instant('LAYOUT_BUILDER.DESKTOP'), callback: () => this.setScreenWidth('Landscape'), iconName: pepIconDeviceDesktop.name, iconPosition: 'end' },
2122
- { key: 'Tablet', value: this.translate.instant('LAYOUT_BUILDER.TABLET'), callback: () => this.setScreenWidth('Tablet'), iconName: pepIconDeviceTablet.name, iconPosition: 'end' },
2123
- { key: 'Phablet', value: this.translate.instant('LAYOUT_BUILDER.MOBILE'), callback: () => this.setScreenWidth('Phablet'), iconName: pepIconDeviceMobile.name, iconPosition: 'end' }
2124
- ];
2125
- });
2126
- this.subscribeEvents();
2127
- }
2128
- ngOnDestroy() {
2129
- super.ngOnDestroy();
2130
- this.layoutBuilderInternalService.setEditMode(false);
2131
- }
2132
- onResize(event) {
2133
- this.updateViewportWidth();
2134
- }
2135
- togglePreviewMode() {
2136
- this.layoutBuilderInternalService.changePreviewMode(!this.previewMode);
2137
- this.updateViewportWidth();
2138
- }
2139
- onSidebarStateChange(event) {
2140
- this.updateViewportWidth();
2141
- }
2142
- onLayoutEditorObjectChange(pageEditor) {
2143
- this.layoutBuilderInternalService.updateLayoutFromEditor(pageEditor);
2144
- }
2145
- onSectionEditorObjectChange(sectionEditor) {
2146
- this.layoutBuilderInternalService.updateSectionFromEditor(sectionEditor);
2147
- }
2148
- onNavigateBackFromEditor() {
2149
- var _a;
2150
- if (!this.currentEditor || ((_a = this.currentEditor) === null || _a === void 0 ? void 0 : _a.type) === 'layout-builder') {
2151
- this.backClick.emit();
2152
- }
2153
- else {
2154
- this.layoutBuilderInternalService.navigateBackFromEditor();
2155
- }
2156
- }
2157
- }
2158
- PepLayoutBuilderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepLayoutBuilderComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i1.TranslateService }, { token: LayoutBuilderInternalService }, { token: i3$1.PepAddonService }], target: i0.ɵɵFactoryTarget.Component });
2159
- PepLayoutBuilderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.2", type: PepLayoutBuilderComponent, selector: "pep-layout-builder", inputs: { availableBlocksForDrag: "availableBlocksForDrag", blocksLayoutConfig: "blocksLayoutConfig", layoutEditorTitle: "layoutEditorTitle" }, outputs: { backClick: "backClick", editorChange: "editorChange", blockAdded: "blockAdded", blocksRemoved: "blocksRemoved" }, host: { listeners: { "window:resize": "onResize($event)" } }, viewQueries: [{ propertyName: "layoutBuilderWrapper", first: true, predicate: ["layoutBuilderWrapper"], descendants: true, static: true }, { propertyName: "sideBarComponent", first: true, predicate: PepSideBarComponent, descendants: true, read: ElementRef }], usesInheritance: true, ngImport: i0, template: "<div *ngIf=\"lockScreen\" class=\"cdk-overlay-backdrop cdk-overlay-dark-backdrop cdk-overlay-backdrop-showing\"></div>\n\n<pep-page-layout [showShadow]=\"!previewMode && currentEditor !== null\" >\n <div pep-side-area *ngIf=\"!previewMode && currentEditor\" style=\"height: inherit;\">\n <pep-side-bar #sideBar [ignoreResize]=\"true\" (stateChange)=\"onSidebarStateChange($event)\">\n <div header-content class=\"side-bar-title\">\n <pep-button class=\"back-button\" sizeType=\"sm\" iconName=\"arrow_left_alt\" (buttonClick)=\"onNavigateBackFromEditor();\"></pep-button>\n <div #editorTitle class=\"title title-lg ellipsis\" \n [title]=\"currentEditor.type === 'layout-builder' ? (layoutEditorTitle || currentEditor.title) : currentEditor.title\">\n <span>{{ editorTitle.title }}</span>\n </div>\n </div>\n <div class=\"layout-builder-editor-wrapper\">\n <main-editor *ngIf=\"currentEditor.type === 'layout-builder'\" [availableBlocksForDrag]=\"availableBlocksForDrag\"\n [hostObject]=\"currentEditor.hostObject\" (hostObjectChange)=\"onLayoutEditorObjectChange($event)\"\n >\n <ng-container layout-editor-top-content>\n <ng-content select=\"[layout-editor-top-content]\"></ng-content>\n </ng-container>\n <!-- <ng-container layout-editor-bottom-content>\n <ng-content select=\"[layout-editor-bottom-content]\"></ng-content>\n </ng-container> -->\n </main-editor>\n \n <section-editor *ngIf=\"currentEditor.type === 'section'\" \n [hostObject]=\"currentEditor.hostObject\" (hostObjectChange)=\"onSectionEditorObjectChange($event)\"></section-editor>\n \n <ng-container *ngIf=\"currentEditor.type === 'block'\" >\n <ng-content select=\"[block-editor-content]\"></ng-content>\n </ng-container>\n </div>\n </pep-side-bar>\n </div>\n <ng-container pep-main-area>\n <div class=\"main-area-container\" [ngClass]=\"{'preview-mode': previewMode }\">\n <div class=\"header-container\" >\n <ng-container *ngIf=\"!previewMode; then editorTitleTemplate; else previewTitleTemplate\"></ng-container>\n <ng-template #editorTitleTemplate>\n <div>\n <span class=\"header-title body-xs\">{{('LAYOUT_BUILDER.VIEWPORT_WIDTH' | translate)}}:&nbsp;</span>\n <span class=\"body-xs\"><b>{{viewportWidth}}</b></span>\n </div>\n </ng-template>\n <ng-template #previewTitleTemplate>\n <div class=\"preview-title body-sm\">\n <span>{{('LAYOUT_BUILDER.PREVIEW_TITLE' | translate)}}</span>\n </div>\n </ng-template>\n\n <div class=\"header-group-btn\">\n <pep-group-buttons [buttons]=\"screenTypes\" [selectedButtonKey]=\"selectedScreenType\" sizeType=\"sm\" viewType=\"toggle\" >\n </pep-group-buttons>\n </div>\n\n <ng-container *ngIf=\"!previewMode; then editorButtonsTemplate; else previewButtonsTemplate\"></ng-container>\n <ng-template #editorButtonsTemplate>\n <div class=\"header-end\">\n <pep-button key='Preview' [value]=\"'ACTIONS.PREVIEW' | translate\" sizeType=\"sm\" (buttonClick)=\"togglePreviewMode()\"></pep-button>\n <ng-content select=\"[header-end-content]\"></ng-content>\n </div>\n </ng-template>\n <ng-template #previewButtonsTemplate>\n <a class=\"color-link body-sm\" (click)=\"togglePreviewMode()\" href=\"javascript:void(0)\">{{('LAYOUT_BUILDER.PREVIEW_CLICK_HERE' | translate)}}</a> \n </ng-template>\n </div>\n <div #layoutBuilderWrapper class=\"layout-builder-wrapper\" [ngClass]=\"{'limit-min-width': selectedScreenType === 'Landscape' }\">\n <ng-content select=\"[layout-content]\"></ng-content>\n <div *ngIf=\"!previewMode\" class=\"backdrop\" [ngClass]=\"{'show-backdrop': currentEditor?.type === 'section' || currentEditor?.type === 'block'}\"></div>\n </div>\n </div>\n </ng-container>\n</pep-page-layout>", styles: [".side-bar-title{display:flex;padding-top:var(--pep-spacing-sm, .5rem)}.side-bar-title .back-button{margin-inline-end:var(--pep-spacing-sm, .5rem)}.side-bar-title .title{display:grid;align-items:center}.layout-builder-editor-wrapper ::ng-deep .page-builder-editor-tabs,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-tabs{height:100%}.layout-builder-editor-wrapper ::ng-deep .page-builder-editor-tabs .mat-tab-header,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-tabs .mat-tab-header{position:sticky;top:calc(var(--pep-top-bar-spacing-top, 1.5rem) + var(--pep-top-bar-spacing-bottom, .5rem) + var(--pep-top-bar-field-height, 2.5rem));z-index:2}.layout-builder-editor-wrapper ::ng-deep .page-builder-editor-tabs .mat-tab-header-pagination,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-tabs .mat-tab-header-pagination{display:none}.layout-builder-editor-wrapper ::ng-deep .page-builder-editor-tabs .mat-tab-labels,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-tabs .mat-tab-labels{display:grid;grid-template-columns:1fr 1fr}.layout-builder-editor-wrapper ::ng-deep .page-builder-editor-tabs .mat-tab-labels .mat-tab-label,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-tabs .mat-tab-labels .mat-tab-label{padding:0 var(--pep-spacing-md, .75rem)!important}.layout-builder-editor-wrapper ::ng-deep .page-builder-editor-tabs .mat-tab-body-wrapper,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-tabs .mat-tab-body-wrapper{overflow:unset;margin:0;display:block}.layout-builder-editor-wrapper ::ng-deep .page-builder-editor-tabs .mat-tab-body-wrapper .mat-tab-body.mat-tab-body-active,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-tabs .mat-tab-body-wrapper .mat-tab-body.mat-tab-body-active{overflow:unset}.layout-builder-editor-wrapper ::ng-deep .page-builder-editor-tabs .mat-tab-body-wrapper .mat-tab-body.mat-tab-body-active .mat-tab-body-content,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-tabs .mat-tab-body-wrapper .mat-tab-body.mat-tab-body-active .mat-tab-body-content{overflow:unset;display:flex;flex-direction:column;padding-inline:0!important}.layout-builder-editor-wrapper ::ng-deep .page-builder-editor-tabs .page-builder-editor-tab,.layout-builder-editor-wrapper ::ng-deep .page-builder-editor-tabs .layout-builder-editor-tab,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-tabs .page-builder-editor-tab,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-tabs .layout-builder-editor-tab{overflow:inherit;display:inherit;flex-direction:inherit;gap:var(--pep-spacing-lg, 1rem)}.layout-builder-editor-wrapper ::ng-deep .page-builder-editor-tabs .page-builder-editor-tab .group-buttons-container .toggle-buttons,.layout-builder-editor-wrapper ::ng-deep .page-builder-editor-tabs .layout-builder-editor-tab .group-buttons-container .toggle-buttons,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-tabs .page-builder-editor-tab .group-buttons-container .toggle-buttons,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-tabs .layout-builder-editor-tab .group-buttons-container .toggle-buttons{width:100%}.layout-builder-editor-wrapper ::ng-deep .page-builder-editor-tabs .page-builder-editor-tab pep-checkbox,.layout-builder-editor-wrapper ::ng-deep .page-builder-editor-tabs .page-builder-editor-tab pep-color,.layout-builder-editor-wrapper ::ng-deep .page-builder-editor-tabs .page-builder-editor-tab pep-select,.layout-builder-editor-wrapper ::ng-deep .page-builder-editor-tabs .page-builder-editor-tab pep-textarea,.layout-builder-editor-wrapper ::ng-deep .page-builder-editor-tabs .page-builder-editor-tab pep-textbox,.layout-builder-editor-wrapper ::ng-deep .page-builder-editor-tabs .layout-builder-editor-tab pep-checkbox,.layout-builder-editor-wrapper ::ng-deep .page-builder-editor-tabs .layout-builder-editor-tab pep-color,.layout-builder-editor-wrapper ::ng-deep .page-builder-editor-tabs .layout-builder-editor-tab pep-select,.layout-builder-editor-wrapper ::ng-deep .page-builder-editor-tabs .layout-builder-editor-tab pep-textarea,.layout-builder-editor-wrapper ::ng-deep .page-builder-editor-tabs .layout-builder-editor-tab pep-textbox,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-tabs .page-builder-editor-tab pep-checkbox,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-tabs .page-builder-editor-tab pep-color,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-tabs .page-builder-editor-tab pep-select,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-tabs .page-builder-editor-tab pep-textarea,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-tabs .page-builder-editor-tab pep-textbox,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-tabs .layout-builder-editor-tab pep-checkbox,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-tabs .layout-builder-editor-tab pep-color,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-tabs .layout-builder-editor-tab pep-select,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-tabs .layout-builder-editor-tab pep-textarea,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-tabs .layout-builder-editor-tab pep-textbox{margin-bottom:0!important}.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-container{padding-top:var(--pep-spacing-lg, 1rem);padding-bottom:var(--pep-spacing-lg, 1rem)}.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-container,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-group{overflow:inherit;display:inherit;flex-direction:inherit;gap:var(--pep-spacing-lg, 1rem);display:flex;flex-direction:column}.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-container .group-buttons-container .toggle-buttons,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-group .group-buttons-container .toggle-buttons{width:100%}.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-container pep-checkbox,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-container pep-color,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-container pep-select,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-container pep-textarea,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-container pep-textbox,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-group pep-checkbox,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-group pep-color,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-group pep-select,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-group pep-textarea,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-group pep-textbox{margin-bottom:0!important}.layout-builder-editor-wrapper ::ng-deep .editor-title{display:block;font-family:var(--pep-font-family-body, Inter),-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,Oxygen-Sans,Ubuntu,Cantarell,\"Helvetica Neue\",sans-serif!important;font-weight:var(--pep-font-weight-bold, 600)!important;font-size:var(--pep-font-size-xl, 1.25rem)!important;line-height:var(--pep-line-height-xl, 1.5625rem)!important;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.layout-builder-editor-wrapper ::ng-deep .editor-sub-title{display:block;font-family:var(--pep-font-family-body, Inter),-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,Oxygen-Sans,Ubuntu,Cantarell,\"Helvetica Neue\",sans-serif!important;font-weight:var(--pep-font-weight-normal, 400)!important;font-size:var(--pep-font-size-md, 1rem)!important;line-height:var(--pep-line-height-md, 1.25rem)!important;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.layout-builder-editor-wrapper ::ng-deep .editor-separator{margin-top:var(--pep-spacing-lg, 1rem);border-bottom:1px solid hsla(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%),.24)}.layout-builder-editor-wrapper ::ng-deep .checkbox-as-sub-title,.layout-builder-editor-wrapper ::ng-deep .checkbox-as-title{margin-bottom:.5rem!important;min-height:unset!important}.layout-builder-editor-wrapper ::ng-deep .checkbox-as-sub-title .pep-checkbox-container,.layout-builder-editor-wrapper ::ng-deep .checkbox-as-title .pep-checkbox-container{background:unset!important;padding-left:unset!important;padding-right:unset!important}.layout-builder-editor-wrapper ::ng-deep .checkbox-as-sub-title .pep-checkbox-container .mat-checkbox-inner-container,.layout-builder-editor-wrapper ::ng-deep .checkbox-as-title .pep-checkbox-container .mat-checkbox-inner-container{margin-left:0!important;margin-right:0!important}.layout-builder-editor-wrapper ::ng-deep .checkbox-as-sub-title .pep-checkbox-container .mat-checkbox-layout,.layout-builder-editor-wrapper ::ng-deep .checkbox-as-title .pep-checkbox-container .mat-checkbox-layout{font-family:var(--pep-font-family-body, Inter),-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,Oxygen-Sans,Ubuntu,Cantarell,\"Helvetica Neue\",sans-serif!important;font-weight:var(--pep-font-weight-normal, 400);font-size:var(--pep-font-size-lg, 1.125rem)!important;line-height:var(--pep-line-height-lg, 1.40625rem)!important;font-weight:var(--pep-font-weight-bold, 600)!important}.layout-builder-editor-wrapper ::ng-deep .checkbox-as-sub-title .pep-checkbox-container .mat-checkbox-layout .mat-checkbox-label span,.layout-builder-editor-wrapper ::ng-deep .checkbox-as-title .pep-checkbox-container .mat-checkbox-layout .mat-checkbox-label span{margin:0 .5rem}.layout-builder-editor-wrapper ::ng-deep .checkbox-as-sub-title .pep-checkbox-container .mat-checkbox-layout{font-family:var(--pep-font-family-body, Inter),-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,Oxygen-Sans,Ubuntu,Cantarell,\"Helvetica Neue\",sans-serif!important;font-weight:var(--pep-font-weight-normal, 400);font-size:var(--pep-font-size-md, 1rem)!important;line-height:var(--pep-line-height-md, 1.25rem)!important;font-weight:var(--pep-font-weight-normal, 400)!important}.main-area-container{min-height:100%;display:grid;grid-template-rows:auto 1fr}.main-area-container .header-container{display:flex;position:sticky;top:0;z-index:100;height:3rem;align-items:center;justify-content:space-between;padding:0 var(--pep-spacing-sm, .5rem)}.main-area-container .header-container .header-group-btn{display:flex;justify-content:space-around;align-items:center}.main-area-container .header-container .header-end{display:flex;justify-content:flex-end;gap:var(--pep-spacing-sm, .5rem)}.main-area-container .header-container ::ng-deep .group-buttons-container .toggle-buttons{width:16rem}.main-area-container .layout-builder-wrapper{width:100%;margin:0 auto;position:relative}.main-area-container .layout-builder-wrapper.limit-min-width{min-width:800px}.main-area-container .layout-builder-wrapper .backdrop{position:absolute;width:100%;height:100%;top:0;z-index:10;display:none}.main-area-container .layout-builder-wrapper .backdrop.show-backdrop{display:block}\n", ".layout-builder-editor-wrapper ::ng-deep .page-builder-editor-tabs .mat-tab-header,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-tabs .mat-tab-header{background:hsl(var(--pep-color-system-primary-invert-h, 255),var(--pep-color-system-primary-invert-s, 100%),var(--pep-color-system-primary-invert-l, 100%))}.main-area-container{background:hsla(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%),.04)}.main-area-container .header-container{background:hsl(var(--pep-color-system-primary-invert-h, 255),var(--pep-color-system-primary-invert-s, 100%),var(--pep-color-system-primary-invert-l, 100%));box-shadow:var(--pep-shadow-sm-offset, 0 .25rem .5rem 0) hsla(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%),.16)}.main-area-container .header-container .header-title{color:hsla(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%),.7)}.main-area-container .header-container .size-limit-container{background:hsla(var(--pep-color-weak-h, 0),var(--pep-color-weak-s, 0%),var(--pep-color-weak-l, 10%),.08)}.main-area-container.preview-mode .header-container{background:unset;background-color:hsl(var(--pep-color-system-caution-h, 360),var(--pep-color-system-caution-s, 100%),var(--pep-color-system-caution-l, 45%))}.main-area-container.preview-mode .header-container .preview-title,.main-area-container.preview-mode .header-container .color-link{color:hsl(var(--pep-color-system-primary-invert-h, 255),var(--pep-color-system-primary-invert-s, 100%),var(--pep-color-system-primary-invert-l, 100%))}.main-area-container.preview-mode .layout-builder-wrapper{overflow:auto}.main-area-container .layout-builder-wrapper{background:hsl(var(--pep-color-system-primary-invert-h, 255),var(--pep-color-system-primary-invert-s, 100%),var(--pep-color-system-primary-invert-l, 100%));box-shadow:var(--pep-shadow-md-offset, 0 .5rem 1rem 0) hsla(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%),.16)}.main-area-container .layout-builder-wrapper .backdrop{background:hsla(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%),.5)}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i5$2.PepPageLayoutComponent, selector: "pep-page-layout", inputs: ["addPadding", "showShadow"] }, { kind: "component", type: i6$1.PepSideBarComponent, selector: "pep-side-bar", inputs: ["position", "ignoreResize", "showHeader", "showFooter", "showToggle", "stateType", "useAsWebComponent"], outputs: ["stateChange"] }, { kind: "component", type: i4$1.PepButtonComponent, selector: "pep-button", inputs: ["key", "value", "styleType", "styleStateType", "sizeType", "classNames", "disabled", "iconName", "iconPosition", "visible"], outputs: ["buttonClick"] }, { kind: "component", type: i8.PepGroupButtonsComponent, selector: "pep-group-buttons", inputs: ["viewType", "styleType", "sizeType", "buttons", "buttonsDisabled", "supportUnselect", "selectedButtonKey", "stretch"], outputs: ["buttonClick"] }, { kind: "component", type: MainEditorComponent, selector: "main-editor", inputs: ["availableBlocksForDrag", "hostObject"], outputs: ["hostObjectChange"] }, { kind: "component", type: SectionEditorComponent, selector: "section-editor", inputs: ["hostObject"], outputs: ["hostObjectChange"] }, { kind: "pipe", type: i1.TranslatePipe, name: "translate" }] });
2160
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepLayoutBuilderComponent, decorators: [{
2161
- type: Component,
2162
- args: [{ selector: 'pep-layout-builder', template: "<div *ngIf=\"lockScreen\" class=\"cdk-overlay-backdrop cdk-overlay-dark-backdrop cdk-overlay-backdrop-showing\"></div>\n\n<pep-page-layout [showShadow]=\"!previewMode && currentEditor !== null\" >\n <div pep-side-area *ngIf=\"!previewMode && currentEditor\" style=\"height: inherit;\">\n <pep-side-bar #sideBar [ignoreResize]=\"true\" (stateChange)=\"onSidebarStateChange($event)\">\n <div header-content class=\"side-bar-title\">\n <pep-button class=\"back-button\" sizeType=\"sm\" iconName=\"arrow_left_alt\" (buttonClick)=\"onNavigateBackFromEditor();\"></pep-button>\n <div #editorTitle class=\"title title-lg ellipsis\" \n [title]=\"currentEditor.type === 'layout-builder' ? (layoutEditorTitle || currentEditor.title) : currentEditor.title\">\n <span>{{ editorTitle.title }}</span>\n </div>\n </div>\n <div class=\"layout-builder-editor-wrapper\">\n <main-editor *ngIf=\"currentEditor.type === 'layout-builder'\" [availableBlocksForDrag]=\"availableBlocksForDrag\"\n [hostObject]=\"currentEditor.hostObject\" (hostObjectChange)=\"onLayoutEditorObjectChange($event)\"\n >\n <ng-container layout-editor-top-content>\n <ng-content select=\"[layout-editor-top-content]\"></ng-content>\n </ng-container>\n <!-- <ng-container layout-editor-bottom-content>\n <ng-content select=\"[layout-editor-bottom-content]\"></ng-content>\n </ng-container> -->\n </main-editor>\n \n <section-editor *ngIf=\"currentEditor.type === 'section'\" \n [hostObject]=\"currentEditor.hostObject\" (hostObjectChange)=\"onSectionEditorObjectChange($event)\"></section-editor>\n \n <ng-container *ngIf=\"currentEditor.type === 'block'\" >\n <ng-content select=\"[block-editor-content]\"></ng-content>\n </ng-container>\n </div>\n </pep-side-bar>\n </div>\n <ng-container pep-main-area>\n <div class=\"main-area-container\" [ngClass]=\"{'preview-mode': previewMode }\">\n <div class=\"header-container\" >\n <ng-container *ngIf=\"!previewMode; then editorTitleTemplate; else previewTitleTemplate\"></ng-container>\n <ng-template #editorTitleTemplate>\n <div>\n <span class=\"header-title body-xs\">{{('LAYOUT_BUILDER.VIEWPORT_WIDTH' | translate)}}:&nbsp;</span>\n <span class=\"body-xs\"><b>{{viewportWidth}}</b></span>\n </div>\n </ng-template>\n <ng-template #previewTitleTemplate>\n <div class=\"preview-title body-sm\">\n <span>{{('LAYOUT_BUILDER.PREVIEW_TITLE' | translate)}}</span>\n </div>\n </ng-template>\n\n <div class=\"header-group-btn\">\n <pep-group-buttons [buttons]=\"screenTypes\" [selectedButtonKey]=\"selectedScreenType\" sizeType=\"sm\" viewType=\"toggle\" >\n </pep-group-buttons>\n </div>\n\n <ng-container *ngIf=\"!previewMode; then editorButtonsTemplate; else previewButtonsTemplate\"></ng-container>\n <ng-template #editorButtonsTemplate>\n <div class=\"header-end\">\n <pep-button key='Preview' [value]=\"'ACTIONS.PREVIEW' | translate\" sizeType=\"sm\" (buttonClick)=\"togglePreviewMode()\"></pep-button>\n <ng-content select=\"[header-end-content]\"></ng-content>\n </div>\n </ng-template>\n <ng-template #previewButtonsTemplate>\n <a class=\"color-link body-sm\" (click)=\"togglePreviewMode()\" href=\"javascript:void(0)\">{{('LAYOUT_BUILDER.PREVIEW_CLICK_HERE' | translate)}}</a> \n </ng-template>\n </div>\n <div #layoutBuilderWrapper class=\"layout-builder-wrapper\" [ngClass]=\"{'limit-min-width': selectedScreenType === 'Landscape' }\">\n <ng-content select=\"[layout-content]\"></ng-content>\n <div *ngIf=\"!previewMode\" class=\"backdrop\" [ngClass]=\"{'show-backdrop': currentEditor?.type === 'section' || currentEditor?.type === 'block'}\"></div>\n </div>\n </div>\n </ng-container>\n</pep-page-layout>", styles: [".side-bar-title{display:flex;padding-top:var(--pep-spacing-sm, .5rem)}.side-bar-title .back-button{margin-inline-end:var(--pep-spacing-sm, .5rem)}.side-bar-title .title{display:grid;align-items:center}.layout-builder-editor-wrapper ::ng-deep .page-builder-editor-tabs,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-tabs{height:100%}.layout-builder-editor-wrapper ::ng-deep .page-builder-editor-tabs .mat-tab-header,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-tabs .mat-tab-header{position:sticky;top:calc(var(--pep-top-bar-spacing-top, 1.5rem) + var(--pep-top-bar-spacing-bottom, .5rem) + var(--pep-top-bar-field-height, 2.5rem));z-index:2}.layout-builder-editor-wrapper ::ng-deep .page-builder-editor-tabs .mat-tab-header-pagination,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-tabs .mat-tab-header-pagination{display:none}.layout-builder-editor-wrapper ::ng-deep .page-builder-editor-tabs .mat-tab-labels,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-tabs .mat-tab-labels{display:grid;grid-template-columns:1fr 1fr}.layout-builder-editor-wrapper ::ng-deep .page-builder-editor-tabs .mat-tab-labels .mat-tab-label,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-tabs .mat-tab-labels .mat-tab-label{padding:0 var(--pep-spacing-md, .75rem)!important}.layout-builder-editor-wrapper ::ng-deep .page-builder-editor-tabs .mat-tab-body-wrapper,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-tabs .mat-tab-body-wrapper{overflow:unset;margin:0;display:block}.layout-builder-editor-wrapper ::ng-deep .page-builder-editor-tabs .mat-tab-body-wrapper .mat-tab-body.mat-tab-body-active,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-tabs .mat-tab-body-wrapper .mat-tab-body.mat-tab-body-active{overflow:unset}.layout-builder-editor-wrapper ::ng-deep .page-builder-editor-tabs .mat-tab-body-wrapper .mat-tab-body.mat-tab-body-active .mat-tab-body-content,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-tabs .mat-tab-body-wrapper .mat-tab-body.mat-tab-body-active .mat-tab-body-content{overflow:unset;display:flex;flex-direction:column;padding-inline:0!important}.layout-builder-editor-wrapper ::ng-deep .page-builder-editor-tabs .page-builder-editor-tab,.layout-builder-editor-wrapper ::ng-deep .page-builder-editor-tabs .layout-builder-editor-tab,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-tabs .page-builder-editor-tab,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-tabs .layout-builder-editor-tab{overflow:inherit;display:inherit;flex-direction:inherit;gap:var(--pep-spacing-lg, 1rem)}.layout-builder-editor-wrapper ::ng-deep .page-builder-editor-tabs .page-builder-editor-tab .group-buttons-container .toggle-buttons,.layout-builder-editor-wrapper ::ng-deep .page-builder-editor-tabs .layout-builder-editor-tab .group-buttons-container .toggle-buttons,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-tabs .page-builder-editor-tab .group-buttons-container .toggle-buttons,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-tabs .layout-builder-editor-tab .group-buttons-container .toggle-buttons{width:100%}.layout-builder-editor-wrapper ::ng-deep .page-builder-editor-tabs .page-builder-editor-tab pep-checkbox,.layout-builder-editor-wrapper ::ng-deep .page-builder-editor-tabs .page-builder-editor-tab pep-color,.layout-builder-editor-wrapper ::ng-deep .page-builder-editor-tabs .page-builder-editor-tab pep-select,.layout-builder-editor-wrapper ::ng-deep .page-builder-editor-tabs .page-builder-editor-tab pep-textarea,.layout-builder-editor-wrapper ::ng-deep .page-builder-editor-tabs .page-builder-editor-tab pep-textbox,.layout-builder-editor-wrapper ::ng-deep .page-builder-editor-tabs .layout-builder-editor-tab pep-checkbox,.layout-builder-editor-wrapper ::ng-deep .page-builder-editor-tabs .layout-builder-editor-tab pep-color,.layout-builder-editor-wrapper ::ng-deep .page-builder-editor-tabs .layout-builder-editor-tab pep-select,.layout-builder-editor-wrapper ::ng-deep .page-builder-editor-tabs .layout-builder-editor-tab pep-textarea,.layout-builder-editor-wrapper ::ng-deep .page-builder-editor-tabs .layout-builder-editor-tab pep-textbox,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-tabs .page-builder-editor-tab pep-checkbox,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-tabs .page-builder-editor-tab pep-color,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-tabs .page-builder-editor-tab pep-select,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-tabs .page-builder-editor-tab pep-textarea,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-tabs .page-builder-editor-tab pep-textbox,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-tabs .layout-builder-editor-tab pep-checkbox,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-tabs .layout-builder-editor-tab pep-color,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-tabs .layout-builder-editor-tab pep-select,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-tabs .layout-builder-editor-tab pep-textarea,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-tabs .layout-builder-editor-tab pep-textbox{margin-bottom:0!important}.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-container{padding-top:var(--pep-spacing-lg, 1rem);padding-bottom:var(--pep-spacing-lg, 1rem)}.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-container,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-group{overflow:inherit;display:inherit;flex-direction:inherit;gap:var(--pep-spacing-lg, 1rem);display:flex;flex-direction:column}.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-container .group-buttons-container .toggle-buttons,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-group .group-buttons-container .toggle-buttons{width:100%}.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-container pep-checkbox,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-container pep-color,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-container pep-select,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-container pep-textarea,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-container pep-textbox,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-group pep-checkbox,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-group pep-color,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-group pep-select,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-group pep-textarea,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-group pep-textbox{margin-bottom:0!important}.layout-builder-editor-wrapper ::ng-deep .editor-title{display:block;font-family:var(--pep-font-family-body, Inter),-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,Oxygen-Sans,Ubuntu,Cantarell,\"Helvetica Neue\",sans-serif!important;font-weight:var(--pep-font-weight-bold, 600)!important;font-size:var(--pep-font-size-xl, 1.25rem)!important;line-height:var(--pep-line-height-xl, 1.5625rem)!important;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.layout-builder-editor-wrapper ::ng-deep .editor-sub-title{display:block;font-family:var(--pep-font-family-body, Inter),-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,Oxygen-Sans,Ubuntu,Cantarell,\"Helvetica Neue\",sans-serif!important;font-weight:var(--pep-font-weight-normal, 400)!important;font-size:var(--pep-font-size-md, 1rem)!important;line-height:var(--pep-line-height-md, 1.25rem)!important;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.layout-builder-editor-wrapper ::ng-deep .editor-separator{margin-top:var(--pep-spacing-lg, 1rem);border-bottom:1px solid hsla(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%),.24)}.layout-builder-editor-wrapper ::ng-deep .checkbox-as-sub-title,.layout-builder-editor-wrapper ::ng-deep .checkbox-as-title{margin-bottom:.5rem!important;min-height:unset!important}.layout-builder-editor-wrapper ::ng-deep .checkbox-as-sub-title .pep-checkbox-container,.layout-builder-editor-wrapper ::ng-deep .checkbox-as-title .pep-checkbox-container{background:unset!important;padding-left:unset!important;padding-right:unset!important}.layout-builder-editor-wrapper ::ng-deep .checkbox-as-sub-title .pep-checkbox-container .mat-checkbox-inner-container,.layout-builder-editor-wrapper ::ng-deep .checkbox-as-title .pep-checkbox-container .mat-checkbox-inner-container{margin-left:0!important;margin-right:0!important}.layout-builder-editor-wrapper ::ng-deep .checkbox-as-sub-title .pep-checkbox-container .mat-checkbox-layout,.layout-builder-editor-wrapper ::ng-deep .checkbox-as-title .pep-checkbox-container .mat-checkbox-layout{font-family:var(--pep-font-family-body, Inter),-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,Oxygen-Sans,Ubuntu,Cantarell,\"Helvetica Neue\",sans-serif!important;font-weight:var(--pep-font-weight-normal, 400);font-size:var(--pep-font-size-lg, 1.125rem)!important;line-height:var(--pep-line-height-lg, 1.40625rem)!important;font-weight:var(--pep-font-weight-bold, 600)!important}.layout-builder-editor-wrapper ::ng-deep .checkbox-as-sub-title .pep-checkbox-container .mat-checkbox-layout .mat-checkbox-label span,.layout-builder-editor-wrapper ::ng-deep .checkbox-as-title .pep-checkbox-container .mat-checkbox-layout .mat-checkbox-label span{margin:0 .5rem}.layout-builder-editor-wrapper ::ng-deep .checkbox-as-sub-title .pep-checkbox-container .mat-checkbox-layout{font-family:var(--pep-font-family-body, Inter),-apple-system,BlinkMacSystemFont,\"Segoe UI\",Roboto,Oxygen-Sans,Ubuntu,Cantarell,\"Helvetica Neue\",sans-serif!important;font-weight:var(--pep-font-weight-normal, 400);font-size:var(--pep-font-size-md, 1rem)!important;line-height:var(--pep-line-height-md, 1.25rem)!important;font-weight:var(--pep-font-weight-normal, 400)!important}.main-area-container{min-height:100%;display:grid;grid-template-rows:auto 1fr}.main-area-container .header-container{display:flex;position:sticky;top:0;z-index:100;height:3rem;align-items:center;justify-content:space-between;padding:0 var(--pep-spacing-sm, .5rem)}.main-area-container .header-container .header-group-btn{display:flex;justify-content:space-around;align-items:center}.main-area-container .header-container .header-end{display:flex;justify-content:flex-end;gap:var(--pep-spacing-sm, .5rem)}.main-area-container .header-container ::ng-deep .group-buttons-container .toggle-buttons{width:16rem}.main-area-container .layout-builder-wrapper{width:100%;margin:0 auto;position:relative}.main-area-container .layout-builder-wrapper.limit-min-width{min-width:800px}.main-area-container .layout-builder-wrapper .backdrop{position:absolute;width:100%;height:100%;top:0;z-index:10;display:none}.main-area-container .layout-builder-wrapper .backdrop.show-backdrop{display:block}\n", ".layout-builder-editor-wrapper ::ng-deep .page-builder-editor-tabs .mat-tab-header,.layout-builder-editor-wrapper ::ng-deep .layout-builder-editor-tabs .mat-tab-header{background:hsl(var(--pep-color-system-primary-invert-h, 255),var(--pep-color-system-primary-invert-s, 100%),var(--pep-color-system-primary-invert-l, 100%))}.main-area-container{background:hsla(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%),.04)}.main-area-container .header-container{background:hsl(var(--pep-color-system-primary-invert-h, 255),var(--pep-color-system-primary-invert-s, 100%),var(--pep-color-system-primary-invert-l, 100%));box-shadow:var(--pep-shadow-sm-offset, 0 .25rem .5rem 0) hsla(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%),.16)}.main-area-container .header-container .header-title{color:hsla(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%),.7)}.main-area-container .header-container .size-limit-container{background:hsla(var(--pep-color-weak-h, 0),var(--pep-color-weak-s, 0%),var(--pep-color-weak-l, 10%),.08)}.main-area-container.preview-mode .header-container{background:unset;background-color:hsl(var(--pep-color-system-caution-h, 360),var(--pep-color-system-caution-s, 100%),var(--pep-color-system-caution-l, 45%))}.main-area-container.preview-mode .header-container .preview-title,.main-area-container.preview-mode .header-container .color-link{color:hsl(var(--pep-color-system-primary-invert-h, 255),var(--pep-color-system-primary-invert-s, 100%),var(--pep-color-system-primary-invert-l, 100%))}.main-area-container.preview-mode .layout-builder-wrapper{overflow:auto}.main-area-container .layout-builder-wrapper{background:hsl(var(--pep-color-system-primary-invert-h, 255),var(--pep-color-system-primary-invert-s, 100%),var(--pep-color-system-primary-invert-l, 100%));box-shadow:var(--pep-shadow-md-offset, 0 .5rem 1rem 0) hsla(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%),.16)}.main-area-container .layout-builder-wrapper .backdrop{background:hsla(var(--pep-color-system-primary-h, 0),var(--pep-color-system-primary-s, 0%),var(--pep-color-system-primary-l, 10%),.5)}\n"] }]
2163
- }], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i1.TranslateService }, { type: LayoutBuilderInternalService }, { type: i3$1.PepAddonService }]; }, propDecorators: { layoutBuilderWrapper: [{
2164
- type: ViewChild,
2165
- args: ['layoutBuilderWrapper', { static: true }]
2166
- }], sideBarComponent: [{
2167
- type: ViewChild,
2168
- args: [PepSideBarComponent, { read: ElementRef }]
2169
- }], availableBlocksForDrag: [{
2170
- type: Input
2171
- }], blocksLayoutConfig: [{
2172
- type: Input
2173
- }], layoutEditorTitle: [{
2174
- type: Input
2175
- }], backClick: [{
2176
- type: Output
2177
- }], editorChange: [{
2178
- type: Output
2179
- }], blockAdded: [{
2180
- type: Output
2181
- }], blocksRemoved: [{
2182
- type: Output
2183
- }], onResize: [{
2184
- type: HostListener,
2185
- args: ['window:resize', ['$event']]
2186
- }] } });
2187
-
2188
- class PepLayoutBuilderService {
2189
- constructor(layoutBuilderInternalService) {
2190
- this.layoutBuilderInternalService = layoutBuilderInternalService;
2191
- //
2192
- }
2193
- get editMode() {
2194
- return this.layoutBuilderInternalService.editMode;
2195
- }
2196
- get editableState() {
2197
- return this.layoutBuilderInternalService.editableState;
2198
- }
2199
- getCurrentScreenType() {
2200
- return this.layoutBuilderInternalService.getCurrentScreenType();
2201
- }
2202
- getIsHidden(hideIn, currentScreenType) {
2203
- return (hideIn && (hideIn === null || hideIn === void 0 ? void 0 : hideIn.length) > 0) ? hideIn.some(hi => hi === currentScreenType) : false;
2204
- }
2205
- showSkeleton(show) {
2206
- return this.layoutBuilderInternalService.showSkeleton(show);
2207
- }
2208
- lockScreen(lock) {
2209
- return this.layoutBuilderInternalService.lockScreen(lock);
2210
- }
2211
- }
2212
- PepLayoutBuilderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepLayoutBuilderService, deps: [{ token: LayoutBuilderInternalService }], target: i0.ɵɵFactoryTarget.Injectable });
2213
- PepLayoutBuilderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepLayoutBuilderService, providedIn: 'root' });
2214
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepLayoutBuilderService, decorators: [{
2215
- type: Injectable,
2216
- args: [{
2217
- providedIn: 'root',
2218
- }]
2219
- }], ctorParameters: function () { return [{ type: LayoutBuilderInternalService }]; } });
2220
-
2221
- class PepLayoutBuilderModule {
2222
- constructor(pepIconRegistry) {
2223
- this.pepIconRegistry = pepIconRegistry;
2224
- this.pepIconRegistry.registerIcons([
2225
- pepIconDeviceDesktop,
2226
- pepIconDeviceTablet,
2227
- pepIconDeviceMobile,
2228
- ]);
2229
- }
2230
- }
2231
- PepLayoutBuilderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepLayoutBuilderModule, deps: [{ token: i1$1.PepIconRegistry }], target: i0.ɵɵFactoryTarget.NgModule });
2232
- PepLayoutBuilderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.2", ngImport: i0, type: PepLayoutBuilderModule, declarations: [PepLayoutBuilderComponent], imports: [CommonModule,
2233
- DragDropModule,
2234
- // Material modules,
2235
- MatCommonModule,
2236
- MatTabsModule,
2237
- // ngx-lib modules
2238
- PepNgxLibModule,
2239
- PepDialogModule,
2240
- PepIconModule,
2241
- PepPageLayoutModule,
2242
- PepSideBarModule,
2243
- PepButtonModule,
2244
- PepCheckboxModule,
2245
- PepTextboxModule,
2246
- PepSelectModule,
2247
- PepSizeDetectorModule,
2248
- PepGroupButtonsModule,
2249
- PepDraggableItemsModule,
2250
- PepGroupButtonsSettingsModule,
2251
- HideInModule,
2252
- PepLayoutModule,
2253
- MainEditorModule,
2254
- SectionEditorModule,
2255
- PepLayoutBuilderEditorModule
2256
- // SectionBlockModule
2257
- ], exports: [PepLayoutBuilderComponent,
2258
- PepLayoutModule,
2259
- PepLayoutBuilderEditorModule] });
2260
- PepLayoutBuilderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepLayoutBuilderModule, providers: [
2261
- LayoutBuilderInternalService,
2262
- PepLayoutBuilderService
2263
- ], imports: [CommonModule,
2264
- DragDropModule,
2265
- // Material modules,
2266
- MatCommonModule,
2267
- MatTabsModule,
2268
- // ngx-lib modules
2269
- PepNgxLibModule,
2270
- PepDialogModule,
2271
- PepIconModule,
2272
- PepPageLayoutModule,
2273
- PepSideBarModule,
2274
- PepButtonModule,
2275
- PepCheckboxModule,
2276
- PepTextboxModule,
2277
- PepSelectModule,
2278
- PepSizeDetectorModule,
2279
- PepGroupButtonsModule,
2280
- PepDraggableItemsModule,
2281
- PepGroupButtonsSettingsModule,
2282
- HideInModule,
2283
- PepLayoutModule,
2284
- MainEditorModule,
2285
- SectionEditorModule,
2286
- PepLayoutBuilderEditorModule
2287
- // SectionBlockModule
2288
- ,
2289
- PepLayoutModule,
2290
- PepLayoutBuilderEditorModule] });
2291
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: PepLayoutBuilderModule, decorators: [{
2292
- type: NgModule,
2293
- args: [{
2294
- declarations: [
2295
- PepLayoutBuilderComponent,
2296
- ],
2297
- imports: [
2298
- CommonModule,
2299
- DragDropModule,
2300
- // Material modules,
2301
- MatCommonModule,
2302
- MatTabsModule,
2303
- // ngx-lib modules
2304
- PepNgxLibModule,
2305
- PepDialogModule,
2306
- PepIconModule,
2307
- PepPageLayoutModule,
2308
- PepSideBarModule,
2309
- PepButtonModule,
2310
- PepCheckboxModule,
2311
- PepTextboxModule,
2312
- PepSelectModule,
2313
- PepSizeDetectorModule,
2314
- PepGroupButtonsModule,
2315
- PepDraggableItemsModule,
2316
- PepGroupButtonsSettingsModule,
2317
- HideInModule,
2318
- PepLayoutModule,
2319
- MainEditorModule,
2320
- SectionEditorModule,
2321
- PepLayoutBuilderEditorModule
2322
- // SectionBlockModule
2323
- ],
2324
- exports: [
2325
- PepLayoutBuilderComponent,
2326
- PepLayoutModule,
2327
- PepLayoutBuilderEditorModule
2328
- ],
2329
- providers: [
2330
- LayoutBuilderInternalService,
2331
- PepLayoutBuilderService
2332
- ]
2333
- }]
2334
- }], ctorParameters: function () { return [{ type: i1$1.PepIconRegistry }]; } });
2335
-
2336
- /*
2337
- * Public API Surface of ngx-composite-lib/layout-builder
2338
- */
2339
-
2340
- /**
2341
- * Generated bundle index. Do not edit.
2342
- */
2343
-
2344
- export { PepLayoutBuilderComponent, PepLayoutBuilderEditorComponent, PepLayoutBuilderEditorModule, PepLayoutBuilderModule, PepLayoutBuilderService, PepLayoutComponent, PepLayoutModule };
2345
- //# sourceMappingURL=pepperi-addons-ngx-composite-lib-layout-builder.mjs.map