wt-front-shared 1.0.3 → 1.0.4

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 (1697) hide show
  1. package/README.md +8 -11
  2. package/esm2020/lib/core/+state/actions/actions.actions.mjs +5 -0
  3. package/esm2020/lib/core/+state/actions/actions.effects.mjs +56 -0
  4. package/esm2020/lib/core/+state/actions/actions.facade.mjs +32 -0
  5. package/esm2020/lib/core/+state/actions/actions.reducer.mjs +65 -0
  6. package/esm2020/lib/core/+state/actions/actions.selectors.mjs +18 -0
  7. package/esm2020/lib/core/+state/actions/behavios/action-send-behavior.mjs +37 -0
  8. package/esm2020/lib/core/+state/base.effects.mjs +22 -0
  9. package/esm2020/lib/core/+state/behavior.mjs +24 -0
  10. package/esm2020/lib/core/+state/cache-data/behavios/get-cache-data-behavior.mjs +41 -0
  11. package/esm2020/lib/core/+state/cache-data/cache-data.actions.mjs +5 -0
  12. package/esm2020/lib/core/+state/cache-data/cache-data.effects.mjs +39 -0
  13. package/esm2020/lib/core/+state/cache-data/cache-data.facade.mjs +27 -0
  14. package/esm2020/lib/core/+state/cache-data/cache-data.reducer.mjs +22 -0
  15. package/esm2020/lib/core/+state/cache-data/cache-data.selectors.mjs +10 -0
  16. package/esm2020/lib/core/+state/core.actions.mjs +38 -0
  17. package/esm2020/lib/core/+state/core.facade.mjs +31 -0
  18. package/esm2020/lib/core/+state/core.selectors.mjs +24 -0
  19. package/esm2020/lib/core/+state/files/behavios/file-delete-behavior.mjs +41 -0
  20. package/esm2020/lib/core/+state/files/behavios/file-update-behavior.mjs +43 -0
  21. package/esm2020/lib/core/+state/files/behavios/files-load-behavior.mjs +43 -0
  22. package/esm2020/lib/core/+state/files/behavios/files-sort-behavior.mjs +43 -0
  23. package/esm2020/lib/core/+state/files/files.actions.mjs +15 -0
  24. package/esm2020/lib/core/+state/files/files.effects.mjs +84 -0
  25. package/esm2020/lib/core/+state/files/files.facade.mjs +46 -0
  26. package/esm2020/lib/core/+state/files/files.reducer.mjs +50 -0
  27. package/esm2020/lib/core/+state/files/files.selectors.mjs +43 -0
  28. package/esm2020/lib/core/+state/files/index.mjs +6 -0
  29. package/esm2020/lib/core/+state/form-delete-file/behavios/form-delete-file-behavior.mjs +47 -0
  30. package/esm2020/lib/core/+state/form-delete-file/form-delete-file.actions.mjs +5 -0
  31. package/esm2020/lib/core/+state/form-delete-file/form-delete-file.effects.mjs +49 -0
  32. package/esm2020/lib/core/+state/form-delete-file/form-delete-file.facade.mjs +19 -0
  33. package/esm2020/lib/core/+state/form-delete-file/index.mjs +2 -0
  34. package/esm2020/lib/core/+state/form-errors/form-errors.actions.mjs +8 -0
  35. package/esm2020/lib/core/+state/form-errors/form-errors.effects.mjs +40 -0
  36. package/esm2020/lib/core/+state/form-errors/form-errors.facade.mjs +26 -0
  37. package/esm2020/lib/core/+state/form-errors/form-errors.reducer.mjs +37 -0
  38. package/esm2020/lib/core/+state/form-errors/form-errors.selectors.mjs +14 -0
  39. package/esm2020/lib/core/+state/form-errors/index.mjs +4 -0
  40. package/esm2020/lib/core/+state/form-validation/behavios/form-validation-check-behavior.mjs +42 -0
  41. package/esm2020/lib/core/+state/form-validation/form-validation.actions.mjs +5 -0
  42. package/esm2020/lib/core/+state/form-validation/form-validation.effects.mjs +39 -0
  43. package/esm2020/lib/core/+state/form-validation/form-validation.facade.mjs +23 -0
  44. package/esm2020/lib/core/+state/form-validation/form-validation.reducer.mjs +38 -0
  45. package/esm2020/lib/core/+state/form-validation/form-validation.selectors.mjs +10 -0
  46. package/esm2020/lib/core/+state/form-validation/index.mjs +4 -0
  47. package/esm2020/lib/core/+state/forms/forms.actions.mjs +9 -0
  48. package/esm2020/lib/core/+state/forms/forms.effects.mjs +40 -0
  49. package/esm2020/lib/core/+state/forms/forms.facade.mjs +29 -0
  50. package/esm2020/lib/core/+state/forms/forms.reducer.mjs +41 -0
  51. package/esm2020/lib/core/+state/forms/forms.selectors.mjs +13 -0
  52. package/esm2020/lib/core/+state/forms/index.mjs +4 -0
  53. package/esm2020/lib/core/+state/index.mjs +96 -0
  54. package/esm2020/lib/core/+state/main/index.mjs +4 -0
  55. package/esm2020/lib/core/+state/main/main.actions.mjs +8 -0
  56. package/esm2020/lib/core/+state/main/main.effects.mjs +22 -0
  57. package/esm2020/lib/core/+state/main/main.facade.mjs +19 -0
  58. package/esm2020/lib/core/+state/main/main.reducer.mjs +17 -0
  59. package/esm2020/lib/core/+state/main/main.selectors.mjs +10 -0
  60. package/esm2020/lib/core/+state/notifications/index.mjs +4 -0
  61. package/esm2020/lib/core/+state/notifications/notifications.actions.mjs +10 -0
  62. package/esm2020/lib/core/+state/notifications/notifications.effects.mjs +82 -0
  63. package/esm2020/lib/core/+state/notifications/notifications.facade.mjs +34 -0
  64. package/esm2020/lib/core/+state/notifications/notifications.reducer.mjs +25 -0
  65. package/esm2020/lib/core/+state/notifications/notifications.selectors.mjs +10 -0
  66. package/esm2020/lib/core/+state/publication-messages/behavios/publication-errors-post-behavior.mjs +71 -0
  67. package/esm2020/lib/core/+state/publication-messages/behavios/un-publication-post-behavior.mjs +46 -0
  68. package/esm2020/lib/core/+state/publication-messages/index.mjs +4 -0
  69. package/esm2020/lib/core/+state/publication-messages/publication-messages.actions.mjs +11 -0
  70. package/esm2020/lib/core/+state/publication-messages/publication-messages.effects.mjs +81 -0
  71. package/esm2020/lib/core/+state/publication-messages/publication-messages.facade.mjs +35 -0
  72. package/esm2020/lib/core/+state/publication-messages/publication-messages.reducer.mjs +43 -0
  73. package/esm2020/lib/core/+state/publication-messages/publication-messages.selectors.mjs +10 -0
  74. package/esm2020/lib/core/+state/reports/behavios/reports-entities-data-behavior.mjs +46 -0
  75. package/esm2020/lib/core/+state/reports/behavios/user-behavior-get-behavior.mjs +46 -0
  76. package/esm2020/lib/core/+state/reports/reports.actions.mjs +8 -0
  77. package/esm2020/lib/core/+state/reports/reports.effects.mjs +46 -0
  78. package/esm2020/lib/core/+state/reports/reports.facade.mjs +33 -0
  79. package/esm2020/lib/core/+state/reports/reports.reducer.mjs +35 -0
  80. package/esm2020/lib/core/+state/reports/reports.selectors.mjs +23 -0
  81. package/esm2020/lib/core/+state/requests/index.mjs +4 -0
  82. package/esm2020/lib/core/+state/requests/requests.actions.mjs +5 -0
  83. package/esm2020/lib/core/+state/requests/requests.effects.mjs +29 -0
  84. package/esm2020/lib/core/+state/requests/requests.facade.mjs +42 -0
  85. package/esm2020/lib/core/+state/requests/requests.reducer.mjs +66 -0
  86. package/esm2020/lib/core/+state/requests/requests.selectors.mjs +12 -0
  87. package/esm2020/lib/core/+state/router/custom-router-serializer.mjs +14 -0
  88. package/esm2020/lib/core/+state/router/index.mjs +6 -0
  89. package/esm2020/lib/core/+state/router/router.actions.mjs +7 -0
  90. package/esm2020/lib/core/+state/router/router.effects.mjs +73 -0
  91. package/esm2020/lib/core/+state/router/router.facade.mjs +19 -0
  92. package/esm2020/lib/core/+state/router/router.reducer.mjs +23 -0
  93. package/esm2020/lib/core/+state/router/router.selectors.mjs +33 -0
  94. package/esm2020/lib/core/+state/static-data/behavios/static-data-create-behavior.mjs +30 -0
  95. package/esm2020/lib/core/+state/static-data/behavios/static-data-delete-behavior.mjs +50 -0
  96. package/esm2020/lib/core/+state/static-data/behavios/static-data-get-list-behavior.mjs +51 -0
  97. package/esm2020/lib/core/+state/static-data/behavios/static-data-get-list-categories-behavior.mjs +30 -0
  98. package/esm2020/lib/core/+state/static-data/behavios/static-data-update-behavior.mjs +39 -0
  99. package/esm2020/lib/core/+state/static-data/static-data.actions.mjs +25 -0
  100. package/esm2020/lib/core/+state/static-data/static-data.effects.mjs +170 -0
  101. package/esm2020/lib/core/+state/static-data/static-data.facade.mjs +94 -0
  102. package/esm2020/lib/core/+state/static-data/static-data.reducer.mjs +295 -0
  103. package/esm2020/lib/core/+state/static-data/static-data.selectors.mjs +43 -0
  104. package/esm2020/lib/core/+state/tags/behavios/tag-entities-load-behavior.mjs +64 -0
  105. package/esm2020/lib/core/+state/tags/behavios/tags-load-behavior.mjs +43 -0
  106. package/esm2020/lib/core/+state/tags/index.mjs +4 -0
  107. package/esm2020/lib/core/+state/tags/tags.actions.mjs +8 -0
  108. package/esm2020/lib/core/+state/tags/tags.effects.mjs +45 -0
  109. package/esm2020/lib/core/+state/tags/tags.facade.mjs +37 -0
  110. package/esm2020/lib/core/+state/tags/tags.reducer.mjs +31 -0
  111. package/esm2020/lib/core/+state/tags/tags.selectors.mjs +40 -0
  112. package/esm2020/lib/core/+state/uiUnits/index.mjs +4 -0
  113. package/esm2020/lib/core/+state/uiUnits/uiUnits.actions.mjs +3 -0
  114. package/esm2020/lib/core/+state/uiUnits/uiUnits.effects.mjs +32 -0
  115. package/esm2020/lib/core/+state/uiUnits/uiUnits.facade.mjs +23 -0
  116. package/esm2020/lib/core/+state/uiUnits/uiUnits.reducer.mjs +20 -0
  117. package/esm2020/lib/core/+state/uiUnits/uiUnits.selectors.mjs +34 -0
  118. package/esm2020/lib/core/+state/update-entities/update-entities.actions.mjs +3 -0
  119. package/esm2020/lib/core/+state/update-entities/update-entities.effects.mjs +30 -0
  120. package/esm2020/lib/core/+state/users/behavios/login-send-behavior.mjs +44 -0
  121. package/esm2020/lib/core/+state/users/behavios/refresh-token-behavior.mjs +49 -0
  122. package/esm2020/lib/core/+state/users/index.mjs +4 -0
  123. package/esm2020/lib/core/+state/users/users.actions.mjs +15 -0
  124. package/esm2020/lib/core/+state/users/users.effects.mjs +168 -0
  125. package/esm2020/lib/core/+state/users/users.facade.mjs +38 -0
  126. package/esm2020/lib/core/+state/users/users.reducer.mjs +32 -0
  127. package/esm2020/lib/core/+state/users/users.selectors.mjs +19 -0
  128. package/esm2020/lib/core/animations/appearFromLeft.mjs +18 -0
  129. package/esm2020/lib/core/animations/appearFromLeftHideToRight.mjs +18 -0
  130. package/esm2020/lib/core/animations/appearFromLeftWithDelay.mjs +18 -0
  131. package/esm2020/lib/core/animations/appearFromRightWithDelay.mjs +18 -0
  132. package/esm2020/lib/core/animations/appearOpacity.mjs +18 -0
  133. package/esm2020/lib/core/animations/expandCollapse.mjs +18 -0
  134. package/esm2020/lib/core/animations/hideToTopOpacity.mjs +11 -0
  135. package/esm2020/lib/core/components/access-denied/access-denied.component.mjs +11 -0
  136. package/esm2020/lib/core/components/access-denied/access-denied.module.mjs +17 -0
  137. package/esm2020/lib/core/components/auto-form/auto-form.module.mjs +168 -0
  138. package/esm2020/lib/core/components/auto-form/components/form-field-file/form-field-file.component.mjs +166 -0
  139. package/esm2020/lib/core/components/auto-form/components/form-field-file-show/form-field-file-show.component.mjs +52 -0
  140. package/esm2020/lib/core/components/auto-form/components/form-field-files/form-field-files.component.mjs +108 -0
  141. package/esm2020/lib/core/components/auto-form/components/form-field-files-show/form-field-files-show.component.mjs +40 -0
  142. package/esm2020/lib/core/components/auto-form/components/form-field-input/form-field-input.component.mjs +77 -0
  143. package/esm2020/lib/core/components/auto-form/components/form-field-input-show/form-field-input-show.component.mjs +39 -0
  144. package/esm2020/lib/core/components/auto-form/components/form-field-select/form-field-select.component.mjs +191 -0
  145. package/esm2020/lib/core/components/auto-form/components/form-field-select-show/form-field-select-show.component.mjs +50 -0
  146. package/esm2020/lib/core/components/auto-form/components/form-field-slide-toggle/form-field-slide-toggle.component.mjs +18 -0
  147. package/esm2020/lib/core/components/auto-form/components/form-field-slide-toggle-show/form-field-slide-toggle-show.component.mjs +21 -0
  148. package/esm2020/lib/core/components/auto-form/components/form-field-spinner/form-field-spinner.component.mjs +12 -0
  149. package/esm2020/lib/core/components/auto-form/components/form-field-tags/form-field-tags.component.mjs +114 -0
  150. package/esm2020/lib/core/components/auto-form/components/form-message-box/form-message-box.component.mjs +101 -0
  151. package/esm2020/lib/core/components/auto-form/constants/auto-form-show-value.mjs +2 -0
  152. package/esm2020/lib/core/components/auto-form/constants/errors.mjs +35 -0
  153. package/esm2020/lib/core/components/auto-form/containers/auto-form-main/auto-form-main.component.mjs +200 -0
  154. package/esm2020/lib/core/components/auto-form/containers/auto-form-show/auto-form-show.component.mjs +48 -0
  155. package/esm2020/lib/core/components/auto-form/containers/auto-form-show-field/auto-form-show-field.component.mjs +56 -0
  156. package/esm2020/lib/core/components/auto-form/containers/form-field/form-field.component.mjs +163 -0
  157. package/esm2020/lib/core/components/auto-form/containers/publish-messages/publish-messages.component.mjs +131 -0
  158. package/esm2020/lib/core/components/auto-form/interfaces/field-type.mjs +14 -0
  159. package/esm2020/lib/core/components/auto-form/interfaces/form-field-format.mjs +9 -0
  160. package/esm2020/lib/core/components/auto-form/interfaces/form-field-option.mjs +2 -0
  161. package/esm2020/lib/core/components/auto-form/interfaces/form-field.mjs +2 -0
  162. package/esm2020/lib/core/components/auto-form/interfaces/input-type.mjs +11 -0
  163. package/esm2020/lib/core/components/bread-crumbs/bread-crumbs.component.mjs +18 -0
  164. package/esm2020/lib/core/components/bread-crumbs/bread-crumbs.module.mjs +19 -0
  165. package/esm2020/lib/core/components/button/ButtonSize.mjs +2 -0
  166. package/esm2020/lib/core/components/button/ButtonStyle.mjs +2 -0
  167. package/esm2020/lib/core/components/button/ButtonTheme.mjs +2 -0
  168. package/esm2020/lib/core/components/button/button.component.mjs +136 -0
  169. package/esm2020/lib/core/components/button/button.module.mjs +40 -0
  170. package/esm2020/lib/core/components/chips-input/chips-input.component.mjs +88 -0
  171. package/esm2020/lib/core/components/chips-input/chips-input.module.mjs +44 -0
  172. package/esm2020/lib/core/components/files-upload/constants.mjs +3 -0
  173. package/esm2020/lib/core/components/files-upload/file-list-card/file-list-card.component.mjs +131 -0
  174. package/esm2020/lib/core/components/files-upload/files-upload/files-upload.component.mjs +89 -0
  175. package/esm2020/lib/core/components/files-upload/files-upload-list-images/files-upload-list-images.component.mjs +97 -0
  176. package/esm2020/lib/core/components/files-upload/files-upload.module.mjs +68 -0
  177. package/esm2020/lib/core/components/files-upload/table-files-uploading/table-files-uploading.component.mjs +122 -0
  178. package/esm2020/lib/core/components/form-field-error/form-field-error.component.mjs +84 -0
  179. package/esm2020/lib/core/components/form-field-error/form-field-error.module.mjs +26 -0
  180. package/esm2020/lib/core/components/form-field-publish-error/form-field-publish-error.component.mjs +62 -0
  181. package/esm2020/lib/core/components/form-field-publish-error/form-field-publish-error.module.mjs +26 -0
  182. package/esm2020/lib/core/components/header/header.component.mjs +28 -0
  183. package/esm2020/lib/core/components/header/header.module.mjs +24 -0
  184. package/esm2020/lib/core/components/icon/icon.component.mjs +43 -0
  185. package/esm2020/lib/core/components/icon/icon.module.mjs +24 -0
  186. package/esm2020/lib/core/components/icon/index.mjs +3 -0
  187. package/esm2020/lib/core/components/image/image.component.mjs +65 -0
  188. package/esm2020/lib/core/components/image/image.module.mjs +24 -0
  189. package/esm2020/lib/core/components/input-tags/input-tags.component.mjs +29 -0
  190. package/esm2020/lib/core/components/input-tags/input-tags.module.mjs +24 -0
  191. package/esm2020/lib/core/components/pagination/pagination.component.mjs +50 -0
  192. package/esm2020/lib/core/components/pagination/pagination.module.mjs +28 -0
  193. package/esm2020/lib/core/components/panel/panel.component.mjs +36 -0
  194. package/esm2020/lib/core/components/panel/panel.module.mjs +28 -0
  195. package/esm2020/lib/core/components/smart-progress-bar/smart-progress-bar.component.mjs +21 -0
  196. package/esm2020/lib/core/components/smart-progress-bar/smart-progress-bar.module.mjs +18 -0
  197. package/esm2020/lib/core/components/spinner/spinner.component.mjs +29 -0
  198. package/esm2020/lib/core/components/spinner/spinner.module.mjs +24 -0
  199. package/esm2020/lib/core/components/star-rating/star-rating.component.mjs +23 -0
  200. package/esm2020/lib/core/components/star-rating/star-rating.module.mjs +22 -0
  201. package/esm2020/lib/core/components/sticky-sidebar/sticky-sidebar.directive.mjs +462 -0
  202. package/esm2020/lib/core/components/sticky-sidebar/sticky-sidebar.module.mjs +31 -0
  203. package/esm2020/lib/core/components/table-menu/table-menu.component.mjs +29 -0
  204. package/esm2020/lib/core/components/table-menu/table-menu.module.mjs +35 -0
  205. package/esm2020/lib/core/components/tag-cloud/tag-cloud.component.mjs +32 -0
  206. package/esm2020/lib/core/components/tag-cloud/tag-cloud.module.mjs +28 -0
  207. package/esm2020/lib/core/components/text-with-link-more/text-with-link-more.component.mjs +36 -0
  208. package/esm2020/lib/core/components/text-with-link-more/text-with-link-more.module.mjs +24 -0
  209. package/esm2020/lib/core/constants/async-validators-type.mjs +13 -0
  210. package/esm2020/lib/core/constants/constants.mjs +7 -0
  211. package/esm2020/lib/core/constants/publish-errors.const.mjs +31 -0
  212. package/esm2020/lib/core/constants/validators-type.mjs +9 -0
  213. package/esm2020/lib/core/dialogs/common-dialog/common-dialog.component.mjs +38 -0
  214. package/esm2020/lib/core/dialogs/delete/delete.component.mjs +28 -0
  215. package/esm2020/lib/core/dialogs/dialog.service.mjs +26 -0
  216. package/esm2020/lib/core/models/action-payload.mjs +2 -0
  217. package/esm2020/lib/core/models/entity.mjs +3 -0
  218. package/esm2020/lib/core/models/form-error.mjs +2 -0
  219. package/esm2020/lib/core/models/form-validation.mjs +2 -0
  220. package/esm2020/lib/core/models/forms.mjs +2 -0
  221. package/esm2020/lib/core/models/http-client-result.mjs +2 -0
  222. package/esm2020/lib/core/models/meta-data.model.mjs +2 -0
  223. package/esm2020/lib/core/pipes/count-format.pipe.mjs +33 -0
  224. package/esm2020/lib/core/pipes/date-format.pipe.mjs +18 -0
  225. package/esm2020/lib/core/pipes/phone.pipe.mjs +27 -0
  226. package/esm2020/lib/core/pipes/pipes.module.mjs +39 -0
  227. package/esm2020/lib/core/pipes/safe.pipe.mjs +34 -0
  228. package/esm2020/lib/core/services/actions/actions-api.mjs +25 -0
  229. package/esm2020/lib/core/services/actions/actions.service.mjs +37 -0
  230. package/esm2020/lib/core/services/auth/authentication.service.mjs +99 -0
  231. package/esm2020/lib/core/services/auto-form/auto-form.service.mjs +153 -0
  232. package/esm2020/lib/core/services/base/base-api-service.mjs +247 -0
  233. package/esm2020/lib/core/services/base/base-api.mjs +6 -0
  234. package/esm2020/lib/core/services/base/index.mjs +3 -0
  235. package/esm2020/lib/core/services/base-auto-form/base-auto-form.service.mjs +64 -0
  236. package/esm2020/lib/core/services/cache-data/cache-data-api.mjs +24 -0
  237. package/esm2020/lib/core/services/cache-data/cache-data.service.mjs +37 -0
  238. package/esm2020/lib/core/services/files/files-api.mjs +49 -0
  239. package/esm2020/lib/core/services/files/files.service.mjs +46 -0
  240. package/esm2020/lib/core/services/form-delete-file/form-delete-file-api.mjs +32 -0
  241. package/esm2020/lib/core/services/form-delete-file/form-delete-file.service.mjs +37 -0
  242. package/esm2020/lib/core/services/form-validation/form-validation-api.mjs +32 -0
  243. package/esm2020/lib/core/services/form-validation/form-validation.service.mjs +37 -0
  244. package/esm2020/lib/core/services/index.mjs +4 -0
  245. package/esm2020/lib/core/services/model-services/tags/tags-api.mjs +29 -0
  246. package/esm2020/lib/core/services/model-services/tags/tags.service.mjs +40 -0
  247. package/esm2020/lib/core/services/publish/publish-api.mjs +38 -0
  248. package/esm2020/lib/core/services/publish/publish.service.mjs +40 -0
  249. package/esm2020/lib/core/services/reducer/reducer.service.mjs +59 -0
  250. package/esm2020/lib/core/services/reports/reports-api.mjs +28 -0
  251. package/esm2020/lib/core/services/reports/reports.service.mjs +40 -0
  252. package/esm2020/lib/core/services/router/router.service.mjs +21 -0
  253. package/esm2020/lib/core/services/social/providers/base-login-provider.mjs +29 -0
  254. package/esm2020/lib/core/services/social/providers/fb-login-provider.mjs +107 -0
  255. package/esm2020/lib/core/services/social/providers/index.mjs +4 -0
  256. package/esm2020/lib/core/services/social/providers/login-provider.mjs +2 -0
  257. package/esm2020/lib/core/services/social/social-auth-service-config.mjs +10 -0
  258. package/esm2020/lib/core/services/static-data/static-data-api.mjs +42 -0
  259. package/esm2020/lib/core/services/static-data/static-data.service.mjs +55 -0
  260. package/esm2020/lib/core/services/users/users-api.mjs +39 -0
  261. package/esm2020/lib/core/services/users/users.service.mjs +40 -0
  262. package/esm2020/lib/core/tokens/index.mjs +4 -0
  263. package/esm2020/lib/core/utils/component-destroyed.mjs +21 -0
  264. package/esm2020/lib/core/utils/guid.mjs +10 -0
  265. package/esm2020/lib/core/utils/index.mjs +4 -0
  266. package/esm2020/lib/core/utils/track-by.mjs +4 -0
  267. package/esm2020/lib/models/config/app-config.mjs +2 -0
  268. package/esm2020/lib/models/config/index.mjs +2 -0
  269. package/esm2020/lib/models/embeds/embed-model.mjs +2 -0
  270. package/esm2020/lib/models/embeds/index.mjs +2 -0
  271. package/esm2020/lib/models/endpoints/actions/actions-endpoint-types.mjs +5 -0
  272. package/esm2020/lib/models/endpoints/actions/actions-request-config.mjs +2 -0
  273. package/esm2020/lib/models/endpoints/actions/actions-response.mjs +2 -0
  274. package/esm2020/lib/models/endpoints/actions/index.mjs +3 -0
  275. package/esm2020/lib/models/endpoints/actions/send-actions/index.mjs +2 -0
  276. package/esm2020/lib/models/endpoints/actions/send-actions/request/actions-send-request-config.mjs +2 -0
  277. package/esm2020/lib/models/endpoints/actions/send-actions/request/actions-send-request.mjs +27 -0
  278. package/esm2020/lib/models/endpoints/actions/send-actions/request/index.mjs +2 -0
  279. package/esm2020/lib/models/endpoints/auth/auth-endpoint-types.mjs +6 -0
  280. package/esm2020/lib/models/endpoints/auth/auth-request-config.mjs +2 -0
  281. package/esm2020/lib/models/endpoints/auth/auth-response.mjs +2 -0
  282. package/esm2020/lib/models/endpoints/auth/index.mjs +3 -0
  283. package/esm2020/lib/models/endpoints/auth/login-send/index.mjs +3 -0
  284. package/esm2020/lib/models/endpoints/auth/login-send/request/index.mjs +2 -0
  285. package/esm2020/lib/models/endpoints/auth/login-send/request/login-send-create-request-config.mjs +2 -0
  286. package/esm2020/lib/models/endpoints/auth/login-send/request/login-send-create-request.mjs +26 -0
  287. package/esm2020/lib/models/endpoints/auth/login-send/response/index.mjs +2 -0
  288. package/esm2020/lib/models/endpoints/auth/login-send/response/login-send-create-201.mjs +2 -0
  289. package/esm2020/lib/models/endpoints/auth/login-send/response/login-send-create-response-factory.mjs +28 -0
  290. package/esm2020/lib/models/endpoints/auth/login-send/response/login-send-create-response.mjs +2 -0
  291. package/esm2020/lib/models/endpoints/auth/refresh-token/index.mjs +3 -0
  292. package/esm2020/lib/models/endpoints/auth/refresh-token/request/index.mjs +2 -0
  293. package/esm2020/lib/models/endpoints/auth/refresh-token/request/refresh-token-request-config.mjs +2 -0
  294. package/esm2020/lib/models/endpoints/auth/refresh-token/request/refresh-token-request.mjs +21 -0
  295. package/esm2020/lib/models/endpoints/auth/refresh-token/response/index.mjs +2 -0
  296. package/esm2020/lib/models/endpoints/auth/refresh-token/response/refresh-token-200.mjs +2 -0
  297. package/esm2020/lib/models/endpoints/auth/refresh-token/response/refresh-token-response-factory.mjs +28 -0
  298. package/esm2020/lib/models/endpoints/auth/refresh-token/response/refresh-token-response.mjs +2 -0
  299. package/esm2020/lib/models/endpoints/base-response/base-response-factory.mjs +31 -0
  300. package/esm2020/lib/models/endpoints/base-response/base-response.mjs +2 -0
  301. package/esm2020/lib/models/endpoints/base-response/index.mjs +2 -0
  302. package/esm2020/lib/models/endpoints/base-response/response-200.mjs +2 -0
  303. package/esm2020/lib/models/endpoints/cache-data/cache-data-endpoint-types.mjs +5 -0
  304. package/esm2020/lib/models/endpoints/cache-data/cache-data-request-config.mjs +2 -0
  305. package/esm2020/lib/models/endpoints/cache-data/cache-data-response.mjs +2 -0
  306. package/esm2020/lib/models/endpoints/cache-data/get-cache-data/index.mjs +2 -0
  307. package/esm2020/lib/models/endpoints/cache-data/get-cache-data/request/get-cache-data-request-config.mjs +2 -0
  308. package/esm2020/lib/models/endpoints/cache-data/get-cache-data/request/get-cache-data-request.mjs +22 -0
  309. package/esm2020/lib/models/endpoints/cache-data/get-cache-data/request/index.mjs +2 -0
  310. package/esm2020/lib/models/endpoints/cache-data/index.mjs +3 -0
  311. package/esm2020/lib/models/endpoints/files/files-delete/index.mjs +3 -0
  312. package/esm2020/lib/models/endpoints/files/files-delete/request/files-delete-request-config.mjs +2 -0
  313. package/esm2020/lib/models/endpoints/files/files-delete/request/files-delete-request.mjs +21 -0
  314. package/esm2020/lib/models/endpoints/files/files-delete/request/index.mjs +2 -0
  315. package/esm2020/lib/models/endpoints/files/files-delete/response/files-delete-200.mjs +2 -0
  316. package/esm2020/lib/models/endpoints/files/files-delete/response/files-delete-response-factory.mjs +28 -0
  317. package/esm2020/lib/models/endpoints/files/files-delete/response/files-delete-response.mjs +2 -0
  318. package/esm2020/lib/models/endpoints/files/files-delete/response/index.mjs +2 -0
  319. package/esm2020/lib/models/endpoints/files/files-endpoint-types.mjs +8 -0
  320. package/esm2020/lib/models/endpoints/files/files-load/index.mjs +3 -0
  321. package/esm2020/lib/models/endpoints/files/files-load/request/files-load-request-config.mjs +2 -0
  322. package/esm2020/lib/models/endpoints/files/files-load/request/files-load-request.mjs +22 -0
  323. package/esm2020/lib/models/endpoints/files/files-load/request/index.mjs +2 -0
  324. package/esm2020/lib/models/endpoints/files/files-load/response/files-load-200.mjs +2 -0
  325. package/esm2020/lib/models/endpoints/files/files-load/response/files-load-response-factory.mjs +28 -0
  326. package/esm2020/lib/models/endpoints/files/files-load/response/files-load-response.mjs +2 -0
  327. package/esm2020/lib/models/endpoints/files/files-load/response/index.mjs +2 -0
  328. package/esm2020/lib/models/endpoints/files/files-request-config.mjs +2 -0
  329. package/esm2020/lib/models/endpoints/files/files-response.mjs +2 -0
  330. package/esm2020/lib/models/endpoints/files/files-sort/index.mjs +3 -0
  331. package/esm2020/lib/models/endpoints/files/files-sort/request/files-sort-request-config.mjs +2 -0
  332. package/esm2020/lib/models/endpoints/files/files-sort/request/files-sort-request.mjs +25 -0
  333. package/esm2020/lib/models/endpoints/files/files-sort/request/index.mjs +2 -0
  334. package/esm2020/lib/models/endpoints/files/files-sort/response/files-sort-200.mjs +2 -0
  335. package/esm2020/lib/models/endpoints/files/files-sort/response/files-sort-response-factory.mjs +28 -0
  336. package/esm2020/lib/models/endpoints/files/files-sort/response/files-sort-response.mjs +2 -0
  337. package/esm2020/lib/models/endpoints/files/files-sort/response/index.mjs +2 -0
  338. package/esm2020/lib/models/endpoints/files/files-update/index.mjs +3 -0
  339. package/esm2020/lib/models/endpoints/files/files-update/request/files-update-request-config.mjs +2 -0
  340. package/esm2020/lib/models/endpoints/files/files-update/request/files-update-request.mjs +30 -0
  341. package/esm2020/lib/models/endpoints/files/files-update/request/index.mjs +2 -0
  342. package/esm2020/lib/models/endpoints/files/files-update/response/files-update-200.mjs +2 -0
  343. package/esm2020/lib/models/endpoints/files/files-update/response/files-update-response-factory.mjs +28 -0
  344. package/esm2020/lib/models/endpoints/files/files-update/response/files-update-response.mjs +2 -0
  345. package/esm2020/lib/models/endpoints/files/files-update/response/index.mjs +2 -0
  346. package/esm2020/lib/models/endpoints/files/index.mjs +6 -0
  347. package/esm2020/lib/models/endpoints/form-delete-file/form-delete-file/index.mjs +2 -0
  348. package/esm2020/lib/models/endpoints/form-delete-file/form-delete-file/request/form-delete-file-request-config.mjs +2 -0
  349. package/esm2020/lib/models/endpoints/form-delete-file/form-delete-file/request/form-delete-file-request.mjs +27 -0
  350. package/esm2020/lib/models/endpoints/form-delete-file/form-delete-file/request/index.mjs +2 -0
  351. package/esm2020/lib/models/endpoints/form-delete-file/form-delete-file-base-endpoint-types.mjs +5 -0
  352. package/esm2020/lib/models/endpoints/form-delete-file/form-delete-file-base-request-config.mjs +2 -0
  353. package/esm2020/lib/models/endpoints/form-delete-file/form-delete-file-base-response.mjs +2 -0
  354. package/esm2020/lib/models/endpoints/form-delete-file/index.mjs +3 -0
  355. package/esm2020/lib/models/endpoints/form-validation/form-validation-check/index.mjs +2 -0
  356. package/esm2020/lib/models/endpoints/form-validation/form-validation-check/request/form-validation-check-request-config.mjs +2 -0
  357. package/esm2020/lib/models/endpoints/form-validation/form-validation-check/request/form-validation-check-request.mjs +29 -0
  358. package/esm2020/lib/models/endpoints/form-validation/form-validation-check/request/index.mjs +2 -0
  359. package/esm2020/lib/models/endpoints/form-validation/form-validation-endpoint-types.mjs +5 -0
  360. package/esm2020/lib/models/endpoints/form-validation/form-validation-request-config.mjs +2 -0
  361. package/esm2020/lib/models/endpoints/form-validation/form-validation-response.mjs +2 -0
  362. package/esm2020/lib/models/endpoints/form-validation/index.mjs +3 -0
  363. package/esm2020/lib/models/endpoints/http/index.mjs +3 -0
  364. package/esm2020/lib/models/endpoints/http/request/delete-request.mjs +9 -0
  365. package/esm2020/lib/models/endpoints/http/request/get-request.mjs +45 -0
  366. package/esm2020/lib/models/endpoints/http/request/index.mjs +6 -0
  367. package/esm2020/lib/models/endpoints/http/request/post-request.mjs +9 -0
  368. package/esm2020/lib/models/endpoints/http/request/put-request.mjs +9 -0
  369. package/esm2020/lib/models/endpoints/http/request/request-config.mjs +2 -0
  370. package/esm2020/lib/models/endpoints/http/request/request-headers.mjs +2 -0
  371. package/esm2020/lib/models/endpoints/http/request/request-method.mjs +8 -0
  372. package/esm2020/lib/models/endpoints/http/request/request.mjs +111 -0
  373. package/esm2020/lib/models/endpoints/http/request-result-info.mjs +2 -0
  374. package/esm2020/lib/models/endpoints/http/response/index.mjs +2 -0
  375. package/esm2020/lib/models/endpoints/http/response/response-status.mjs +13 -0
  376. package/esm2020/lib/models/endpoints/http/response/response.mjs +2 -0
  377. package/esm2020/lib/models/endpoints/index.mjs +3 -0
  378. package/esm2020/lib/models/endpoints/publish/index.mjs +4 -0
  379. package/esm2020/lib/models/endpoints/publish/publish-endpoint-types.mjs +6 -0
  380. package/esm2020/lib/models/endpoints/publish/publish-post/index.mjs +2 -0
  381. package/esm2020/lib/models/endpoints/publish/publish-post/request/index.mjs +2 -0
  382. package/esm2020/lib/models/endpoints/publish/publish-post/request/publish-post-request-config.mjs +2 -0
  383. package/esm2020/lib/models/endpoints/publish/publish-post/request/publish-post-request.mjs +21 -0
  384. package/esm2020/lib/models/endpoints/publish/publish-request-config.mjs +2 -0
  385. package/esm2020/lib/models/endpoints/publish/publish-response.mjs +2 -0
  386. package/esm2020/lib/models/endpoints/publish/un-publish-post/index.mjs +2 -0
  387. package/esm2020/lib/models/endpoints/publish/un-publish-post/request/index.mjs +2 -0
  388. package/esm2020/lib/models/endpoints/publish/un-publish-post/request/un-publish-post-config.mjs +2 -0
  389. package/esm2020/lib/models/endpoints/publish/un-publish-post/request/un-publish-post-request.mjs +21 -0
  390. package/esm2020/lib/models/endpoints/reports/enities-report/index.mjs +2 -0
  391. package/esm2020/lib/models/endpoints/reports/enities-report/request/entities-reports-request-config.mjs +2 -0
  392. package/esm2020/lib/models/endpoints/reports/enities-report/request/entities-reports-request.mjs +21 -0
  393. package/esm2020/lib/models/endpoints/reports/enities-report/request/index.mjs +2 -0
  394. package/esm2020/lib/models/endpoints/reports/index.mjs +3 -0
  395. package/esm2020/lib/models/endpoints/reports/reports-endpoint-types.mjs +6 -0
  396. package/esm2020/lib/models/endpoints/reports/reports-request-config.mjs +2 -0
  397. package/esm2020/lib/models/endpoints/reports/reports-response.mjs +2 -0
  398. package/esm2020/lib/models/endpoints/reports/user-behavior-report/index.mjs +2 -0
  399. package/esm2020/lib/models/endpoints/reports/user-behavior-report/request/index.mjs +2 -0
  400. package/esm2020/lib/models/endpoints/reports/user-behavior-report/request/user-behavior-report-request-config.mjs +2 -0
  401. package/esm2020/lib/models/endpoints/reports/user-behavior-report/request/user-behavior-report-request.mjs +21 -0
  402. package/esm2020/lib/models/endpoints/static-data/index.mjs +9 -0
  403. package/esm2020/lib/models/endpoints/static-data/static-data-create/index.mjs +2 -0
  404. package/esm2020/lib/models/endpoints/static-data/static-data-create/request/index.mjs +2 -0
  405. package/esm2020/lib/models/endpoints/static-data/static-data-create/request/static-data-create-request-config.mjs +2 -0
  406. package/esm2020/lib/models/endpoints/static-data/static-data-create/request/static-data-create-request.mjs +29 -0
  407. package/esm2020/lib/models/endpoints/static-data/static-data-delete/index.mjs +2 -0
  408. package/esm2020/lib/models/endpoints/static-data/static-data-delete/request/index.mjs +2 -0
  409. package/esm2020/lib/models/endpoints/static-data/static-data-delete/request/static-data-delete-request-config.mjs +2 -0
  410. package/esm2020/lib/models/endpoints/static-data/static-data-delete/request/static-data-delete-request.mjs +21 -0
  411. package/esm2020/lib/models/endpoints/static-data/static-data-endpoint-types.mjs +11 -0
  412. package/esm2020/lib/models/endpoints/static-data/static-data-get/index.mjs +2 -0
  413. package/esm2020/lib/models/endpoints/static-data/static-data-get/request/index.mjs +2 -0
  414. package/esm2020/lib/models/endpoints/static-data/static-data-get/request/static-data-get-request-config.mjs +2 -0
  415. package/esm2020/lib/models/endpoints/static-data/static-data-get/request/static-data-get-request.mjs +40 -0
  416. package/esm2020/lib/models/endpoints/static-data/static-data-get-list/index.mjs +2 -0
  417. package/esm2020/lib/models/endpoints/static-data/static-data-get-list/request/index.mjs +2 -0
  418. package/esm2020/lib/models/endpoints/static-data/static-data-get-list/request/static-data-get-list-request-config.mjs +2 -0
  419. package/esm2020/lib/models/endpoints/static-data/static-data-get-list/request/static-data-get-list-request.mjs +40 -0
  420. package/esm2020/lib/models/endpoints/static-data/static-data-get-list-categories/index.mjs +2 -0
  421. package/esm2020/lib/models/endpoints/static-data/static-data-get-list-categories/request/index.mjs +2 -0
  422. package/esm2020/lib/models/endpoints/static-data/static-data-get-list-categories/request/static-data-get-list-categories-request-config.mjs +2 -0
  423. package/esm2020/lib/models/endpoints/static-data/static-data-get-list-categories/request/static-data-get-list-categories-request.mjs +22 -0
  424. package/esm2020/lib/models/endpoints/static-data/static-data-request-config.mjs +2 -0
  425. package/esm2020/lib/models/endpoints/static-data/static-data-response.mjs +2 -0
  426. package/esm2020/lib/models/endpoints/static-data/static-data-sub-routing-get/index.mjs +2 -0
  427. package/esm2020/lib/models/endpoints/static-data/static-data-sub-routing-get/request/index.mjs +2 -0
  428. package/esm2020/lib/models/endpoints/static-data/static-data-sub-routing-get/request/static-data-sub-routing-get-request-config.mjs +2 -0
  429. package/esm2020/lib/models/endpoints/static-data/static-data-sub-routing-get/request/static-data-sub-routing-get-request.mjs +21 -0
  430. package/esm2020/lib/models/endpoints/static-data/static-data-update/index.mjs +2 -0
  431. package/esm2020/lib/models/endpoints/static-data/static-data-update/request/index.mjs +2 -0
  432. package/esm2020/lib/models/endpoints/static-data/static-data-update/request/static-data-update-request-config.mjs +2 -0
  433. package/esm2020/lib/models/endpoints/static-data/static-data-update/request/static-data-update-request.mjs +30 -0
  434. package/esm2020/lib/models/endpoints/tags/index.mjs +4 -0
  435. package/esm2020/lib/models/endpoints/tags/tag-entities-load/index.mjs +2 -0
  436. package/esm2020/lib/models/endpoints/tags/tag-entities-load/request/index.mjs +2 -0
  437. package/esm2020/lib/models/endpoints/tags/tag-entities-load/request/tag-entities-load-request-config.mjs +2 -0
  438. package/esm2020/lib/models/endpoints/tags/tag-entities-load/request/tag-entities-request.mjs +22 -0
  439. package/esm2020/lib/models/endpoints/tags/tags-endpoint-types.mjs +10 -0
  440. package/esm2020/lib/models/endpoints/tags/tags-load/index.mjs +3 -0
  441. package/esm2020/lib/models/endpoints/tags/tags-load/request/index.mjs +2 -0
  442. package/esm2020/lib/models/endpoints/tags/tags-load/request/tags-load-request-config.mjs +2 -0
  443. package/esm2020/lib/models/endpoints/tags/tags-load/request/tags-load-request.mjs +27 -0
  444. package/esm2020/lib/models/endpoints/tags/tags-load/response/index.mjs +2 -0
  445. package/esm2020/lib/models/endpoints/tags/tags-load/response/tags-load-200.mjs +2 -0
  446. package/esm2020/lib/models/endpoints/tags/tags-load/response/tags-load-response-factory.mjs +28 -0
  447. package/esm2020/lib/models/endpoints/tags/tags-load/response/tags-load-response.mjs +2 -0
  448. package/esm2020/lib/models/endpoints/tags/tags-request-config.mjs +2 -0
  449. package/esm2020/lib/models/endpoints/tags/tags-response.mjs +2 -0
  450. package/esm2020/lib/models/entity/entity-filters.mjs +2 -0
  451. package/esm2020/lib/models/entity/entity-query-field-names.mjs +23 -0
  452. package/esm2020/lib/models/entity/entity-query-fields.mjs +2 -0
  453. package/esm2020/lib/models/entity/entity-sort-type.mjs +8 -0
  454. package/esm2020/lib/models/entity/entity.mjs +3 -0
  455. package/esm2020/lib/models/entity/entity.type.mjs +8 -0
  456. package/esm2020/lib/models/entity/index.mjs +5 -0
  457. package/esm2020/lib/models/entity/paging.type.mjs +2 -0
  458. package/esm2020/lib/models/fields/fields-model.mjs +2 -0
  459. package/esm2020/lib/models/fields/index.mjs +2 -0
  460. package/esm2020/lib/models/index.mjs +11 -0
  461. package/esm2020/lib/models/mapper/index.mjs +3 -0
  462. package/esm2020/lib/models/mapper/mapper-util.mjs +66 -0
  463. package/esm2020/lib/models/mapper/mapper.mjs +28 -0
  464. package/esm2020/lib/models/model-adapter/base-model-adapter.mjs +42 -0
  465. package/esm2020/lib/models/model-adapter/index.mjs +2 -0
  466. package/esm2020/lib/models/models/actions/actions.model.mjs +3 -0
  467. package/esm2020/lib/models/models/actions/index.mjs +2 -0
  468. package/esm2020/lib/models/models/cache-data/cache-data.model.mjs +3 -0
  469. package/esm2020/lib/models/models/cache-data/index.mjs +2 -0
  470. package/esm2020/lib/models/models/file/file-field-names.mjs +13 -0
  471. package/esm2020/lib/models/models/file/file-model.mjs +5 -0
  472. package/esm2020/lib/models/models/file/file-scheme.mjs +24 -0
  473. package/esm2020/lib/models/models/file/index.mjs +5 -0
  474. package/esm2020/lib/models/models/file/versions-model.mjs +3 -0
  475. package/esm2020/lib/models/models/meta.model.mjs +3 -0
  476. package/esm2020/lib/models/models/notification/index.mjs +2 -0
  477. package/esm2020/lib/models/models/notification/notificationModel.mjs +3 -0
  478. package/esm2020/lib/models/models/publish-message/publish-message-field-names.mjs +12 -0
  479. package/esm2020/lib/models/models/publish-message/publish-message-scheme.mjs +13 -0
  480. package/esm2020/lib/models/models/publish-message/publish-message.mjs +7 -0
  481. package/esm2020/lib/models/models/reports/index.mjs +2 -0
  482. package/esm2020/lib/models/models/reports/reports.model.mjs +3 -0
  483. package/esm2020/lib/models/models/request.model.mjs +13 -0
  484. package/esm2020/lib/models/models/static-data/index.mjs +2 -0
  485. package/esm2020/lib/models/models/static-data/static-data.model.mjs +3 -0
  486. package/esm2020/lib/models/models/tag/tag-entity-model.mjs +3 -0
  487. package/esm2020/lib/models/models/tag/tag-entity-scheme.mjs +11 -0
  488. package/esm2020/lib/models/models/tag/tag-field-names.mjs +9 -0
  489. package/esm2020/lib/models/models/tag/tag-model.mjs +3 -0
  490. package/esm2020/lib/models/models/tag/tag-scheme.mjs +13 -0
  491. package/esm2020/lib/models/models/user/index.mjs +8 -0
  492. package/esm2020/lib/models/models/user/user-auth-headers.mjs +2 -0
  493. package/esm2020/lib/models/models/user/user-field-names.mjs +14 -0
  494. package/esm2020/lib/models/models/user/user-model.mjs +3 -0
  495. package/esm2020/lib/models/models/user/user-query-fields.mjs +2 -0
  496. package/esm2020/lib/models/models/user/user-right-model.mjs +3 -0
  497. package/esm2020/lib/models/models/user/user-scheme.mjs +18 -0
  498. package/esm2020/lib/models/models/user/user.role.mjs +9 -0
  499. package/esm2020/lib/models/query-fields-adapter/index.mjs +2 -0
  500. package/esm2020/lib/models/query-fields-adapter/query-fileds-adapter.mjs +20 -0
  501. package/esm2020/lib/models/schemes/entity-scheme.mjs +4 -0
  502. package/esm2020/lib/models/schemes/index.mjs +2 -0
  503. package/esm2020/lib/models/social/fb-login-options.mjs +2 -0
  504. package/esm2020/lib/models/social/index.mjs +2 -0
  505. package/esm2020/lib/models/social/login-options.mjs +2 -0
  506. package/esm2020/lib/models/social/social-user.mjs +2 -0
  507. package/esm2020/lib/models/ui-units/index.mjs +2 -0
  508. package/esm2020/lib/models/ui-units/ui-unit-ids.mjs +9 -0
  509. package/esm2020/lib/models/ui-units/ui-unit-types.mjs +5 -0
  510. package/esm2020/lib/models/ui-units/uiUnitItem.mjs +2 -0
  511. package/esm2020/lib/models/ui-units/uiUnits.images-data.mjs +2 -0
  512. package/esm2020/public-api.mjs +51 -0
  513. package/esm2020/wt-front-shared.mjs +5 -0
  514. package/fesm2015/wt-front-shared.mjs +2998 -0
  515. package/fesm2015/wt-front-shared.mjs.map +1 -0
  516. package/fesm2020/wt-front-shared.mjs +2994 -0
  517. package/fesm2020/wt-front-shared.mjs.map +1 -0
  518. package/index.d.ts +5 -0
  519. package/lib/core/+state/actions/actions.actions.d.ts +33 -0
  520. package/lib/core/+state/actions/actions.effects.d.ts +19 -0
  521. package/lib/core/+state/actions/actions.facade.d.ts +14 -0
  522. package/lib/core/+state/actions/actions.reducer.d.ts +25 -0
  523. package/lib/core/+state/actions/actions.selectors.d.ts +8 -0
  524. package/lib/core/+state/actions/behavios/action-send-behavior.d.ts +10 -0
  525. package/lib/core/+state/base.effects.d.ts +11 -0
  526. package/lib/core/+state/behavior.d.ts +10 -0
  527. package/lib/core/+state/cache-data/behavios/get-cache-data-behavior.d.ts +10 -0
  528. package/lib/core/+state/cache-data/cache-data.actions.d.ts +22 -0
  529. package/lib/core/+state/cache-data/cache-data.effects.d.ts +17 -0
  530. package/lib/core/+state/cache-data/cache-data.facade.d.ts +13 -0
  531. package/lib/core/+state/cache-data/cache-data.reducer.d.ts +11 -0
  532. package/lib/core/+state/cache-data/cache-data.selectors.d.ts +4 -0
  533. package/lib/core/+state/core.actions.d.ts +12 -0
  534. package/lib/core/+state/core.facade.d.ts +12 -0
  535. package/lib/core/+state/core.selectors.d.ts +3 -0
  536. package/lib/core/+state/files/behavios/file-delete-behavior.d.ts +10 -0
  537. package/lib/core/+state/files/behavios/file-update-behavior.d.ts +10 -0
  538. package/lib/core/+state/files/behavios/files-load-behavior.d.ts +10 -0
  539. package/lib/core/+state/files/behavios/files-sort-behavior.d.ts +10 -0
  540. package/lib/core/+state/files/files.actions.d.ts +118 -0
  541. package/lib/core/+state/files/files.effects.d.ts +37 -0
  542. package/lib/core/+state/files/files.facade.d.ts +27 -0
  543. package/lib/core/+state/files/files.reducer.d.ts +11 -0
  544. package/lib/core/+state/files/files.selectors.d.ts +10 -0
  545. package/{projects/wt-front-shared/src/lib/core/+state/files/index.ts → lib/core/+state/files/index.d.ts} +0 -0
  546. package/lib/core/+state/form-delete-file/behavios/form-delete-file-behavior.d.ts +11 -0
  547. package/lib/core/+state/form-delete-file/form-delete-file.actions.d.ts +32 -0
  548. package/lib/core/+state/form-delete-file/form-delete-file.effects.d.ts +27 -0
  549. package/lib/core/+state/form-delete-file/form-delete-file.facade.d.ts +10 -0
  550. package/{projects/wt-front-shared/src/lib/core/+state/form-delete-file/index.ts → lib/core/+state/form-delete-file/index.d.ts} +0 -0
  551. package/lib/core/+state/form-errors/form-errors.actions.d.ts +26 -0
  552. package/lib/core/+state/form-errors/form-errors.effects.d.ts +11 -0
  553. package/lib/core/+state/form-errors/form-errors.facade.d.ts +14 -0
  554. package/lib/core/+state/form-errors/form-errors.reducer.d.ts +8 -0
  555. package/lib/core/+state/form-errors/form-errors.selectors.d.ts +8 -0
  556. package/{projects/wt-front-shared/src/lib/core/+state/form-errors/index.ts → lib/core/+state/form-errors/index.d.ts} +0 -0
  557. package/lib/core/+state/form-validation/behavios/form-validation-check-behavior.d.ts +11 -0
  558. package/lib/core/+state/form-validation/form-validation.actions.d.ts +37 -0
  559. package/lib/core/+state/form-validation/form-validation.effects.d.ts +20 -0
  560. package/lib/core/+state/form-validation/form-validation.facade.d.ts +16 -0
  561. package/lib/core/+state/form-validation/form-validation.reducer.d.ts +8 -0
  562. package/lib/core/+state/form-validation/form-validation.selectors.d.ts +5 -0
  563. package/{projects/wt-front-shared/src/lib/core/+state/form-validation/index.ts → lib/core/+state/form-validation/index.d.ts} +0 -0
  564. package/lib/core/+state/forms/forms.actions.d.ts +31 -0
  565. package/lib/core/+state/forms/forms.effects.d.ts +16 -0
  566. package/lib/core/+state/forms/forms.facade.d.ts +15 -0
  567. package/lib/core/+state/forms/forms.reducer.d.ts +8 -0
  568. package/lib/core/+state/forms/forms.selectors.d.ts +6 -0
  569. package/{projects/wt-front-shared/src/lib/core/+state/forms/index.ts → lib/core/+state/forms/index.d.ts} +0 -0
  570. package/lib/core/+state/index.d.ts +74 -0
  571. package/{projects/wt-front-shared/src/lib/core/+state/main/index.ts → lib/core/+state/main/index.d.ts} +0 -0
  572. package/lib/core/+state/main/main.actions.d.ts +17 -0
  573. package/lib/core/+state/main/main.effects.d.ts +12 -0
  574. package/lib/core/+state/main/main.facade.d.ts +10 -0
  575. package/lib/core/+state/main/main.reducer.d.ts +7 -0
  576. package/lib/core/+state/main/main.selectors.d.ts +4 -0
  577. package/{projects/wt-front-shared/src/lib/core/+state/notifications/index.ts → lib/core/+state/notifications/index.d.ts} +0 -0
  578. package/lib/core/+state/notifications/notifications.actions.d.ts +21 -0
  579. package/lib/core/+state/notifications/notifications.effects.d.ts +41 -0
  580. package/lib/core/+state/notifications/notifications.facade.d.ts +12 -0
  581. package/lib/core/+state/notifications/notifications.reducer.d.ts +7 -0
  582. package/lib/core/+state/notifications/notifications.selectors.d.ts +5 -0
  583. package/lib/core/+state/publication-messages/behavios/publication-errors-post-behavior.d.ts +11 -0
  584. package/lib/core/+state/publication-messages/behavios/un-publication-post-behavior.d.ts +10 -0
  585. package/{projects/wt-front-shared/src/lib/core/+state/publication-messages/index.ts → lib/core/+state/publication-messages/index.d.ts} +0 -0
  586. package/lib/core/+state/publication-messages/publication-messages.actions.d.ts +71 -0
  587. package/lib/core/+state/publication-messages/publication-messages.effects.d.ts +31 -0
  588. package/lib/core/+state/publication-messages/publication-messages.facade.d.ts +17 -0
  589. package/lib/core/+state/publication-messages/publication-messages.reducer.d.ts +7 -0
  590. package/lib/core/+state/publication-messages/publication-messages.selectors.d.ts +4 -0
  591. package/lib/core/+state/reports/behavios/reports-entities-data-behavior.d.ts +10 -0
  592. package/lib/core/+state/reports/behavios/user-behavior-get-behavior.d.ts +10 -0
  593. package/lib/core/+state/reports/reports.actions.d.ts +38 -0
  594. package/lib/core/+state/reports/reports.effects.d.ts +18 -0
  595. package/lib/core/+state/reports/reports.facade.d.ts +24 -0
  596. package/lib/core/+state/reports/reports.reducer.d.ts +11 -0
  597. package/lib/core/+state/reports/reports.selectors.d.ts +5 -0
  598. package/{projects/wt-front-shared/src/lib/core/+state/requests/index.ts → lib/core/+state/requests/index.d.ts} +0 -0
  599. package/lib/core/+state/requests/requests.actions.d.ts +25 -0
  600. package/lib/core/+state/requests/requests.effects.d.ts +12 -0
  601. package/lib/core/+state/requests/requests.facade.d.ts +27 -0
  602. package/lib/core/+state/requests/requests.reducer.d.ts +8 -0
  603. package/lib/core/+state/requests/requests.selectors.d.ts +5 -0
  604. package/lib/core/+state/router/custom-router-serializer.d.ts +11 -0
  605. package/{projects/wt-front-shared/src/lib/core/+state/router/index.ts → lib/core/+state/router/index.d.ts} +0 -0
  606. package/lib/core/+state/router/router.actions.d.ts +24 -0
  607. package/lib/core/+state/router/router.effects.d.ts +20 -0
  608. package/lib/core/+state/router/router.facade.d.ts +10 -0
  609. package/lib/core/+state/router/router.reducer.d.ts +6 -0
  610. package/lib/core/+state/router/router.selectors.d.ts +6 -0
  611. package/lib/core/+state/static-data/behavios/static-data-create-behavior.d.ts +10 -0
  612. package/lib/core/+state/static-data/behavios/static-data-delete-behavior.d.ts +10 -0
  613. package/lib/core/+state/static-data/behavios/static-data-get-list-behavior.d.ts +10 -0
  614. package/lib/core/+state/static-data/behavios/static-data-get-list-categories-behavior.d.ts +10 -0
  615. package/lib/core/+state/static-data/behavios/static-data-update-behavior.d.ts +10 -0
  616. package/lib/core/+state/static-data/static-data.actions.d.ts +244 -0
  617. package/lib/core/+state/static-data/static-data.effects.d.ts +28 -0
  618. package/lib/core/+state/static-data/static-data.facade.d.ts +37 -0
  619. package/lib/core/+state/static-data/static-data.reducer.d.ts +28 -0
  620. package/lib/core/+state/static-data/static-data.selectors.d.ts +12 -0
  621. package/lib/core/+state/tags/behavios/tag-entities-load-behavior.d.ts +10 -0
  622. package/lib/core/+state/tags/behavios/tags-load-behavior.d.ts +10 -0
  623. package/{projects/wt-front-shared/src/lib/core/+state/tags/index.ts → lib/core/+state/tags/index.d.ts} +0 -0
  624. package/lib/core/+state/tags/tags.actions.d.ts +58 -0
  625. package/lib/core/+state/tags/tags.effects.d.ts +25 -0
  626. package/lib/core/+state/tags/tags.facade.d.ts +19 -0
  627. package/lib/core/+state/tags/tags.reducer.d.ts +13 -0
  628. package/lib/core/+state/tags/tags.selectors.d.ts +12 -0
  629. package/{projects/wt-front-shared/src/lib/core/+state/uiUnits/index.ts → lib/core/+state/uiUnits/index.d.ts} +0 -0
  630. package/lib/core/+state/uiUnits/uiUnits.actions.d.ts +12 -0
  631. package/lib/core/+state/uiUnits/uiUnits.effects.d.ts +13 -0
  632. package/lib/core/+state/uiUnits/uiUnits.facade.d.ts +12 -0
  633. package/lib/core/+state/uiUnits/uiUnits.reducer.d.ts +8 -0
  634. package/lib/core/+state/uiUnits/uiUnits.selectors.d.ts +19 -0
  635. package/lib/core/+state/update-entities/update-entities.actions.d.ts +16 -0
  636. package/lib/core/+state/update-entities/update-entities.effects.d.ts +14 -0
  637. package/lib/core/+state/users/behavios/login-send-behavior.d.ts +10 -0
  638. package/lib/core/+state/users/behavios/refresh-token-behavior.d.ts +10 -0
  639. package/{projects/wt-front-shared/src/lib/core/+state/users/index.ts → lib/core/+state/users/index.d.ts} +0 -0
  640. package/lib/core/+state/users/users.actions.d.ts +85 -0
  641. package/lib/core/+state/users/users.effects.d.ts +42 -0
  642. package/lib/core/+state/users/users.facade.d.ts +21 -0
  643. package/lib/core/+state/users/users.reducer.d.ts +8 -0
  644. package/lib/core/+state/users/users.selectors.d.ts +14 -0
  645. package/lib/core/animations/appearFromLeft.d.ts +1 -0
  646. package/lib/core/animations/appearFromLeftHideToRight.d.ts +1 -0
  647. package/lib/core/animations/appearFromLeftWithDelay.d.ts +1 -0
  648. package/lib/core/animations/appearFromRightWithDelay.d.ts +1 -0
  649. package/lib/core/animations/appearOpacity.d.ts +1 -0
  650. package/lib/core/animations/expandCollapse.d.ts +1 -0
  651. package/lib/core/animations/hideToTopOpacity.d.ts +1 -0
  652. package/lib/core/components/access-denied/access-denied.component.d.ts +5 -0
  653. package/lib/core/components/access-denied/access-denied.module.d.ts +7 -0
  654. package/lib/core/components/auto-form/auto-form.module.d.ts +47 -0
  655. package/lib/core/components/auto-form/components/form-field-file/form-field-file.component.d.ts +42 -0
  656. package/lib/core/components/auto-form/components/form-field-file-show/form-field-file-show.component.d.ts +9 -0
  657. package/lib/core/components/auto-form/components/form-field-files/form-field-files.component.d.ts +26 -0
  658. package/lib/core/components/auto-form/components/form-field-files-show/form-field-files-show.component.d.ts +19 -0
  659. package/lib/core/components/auto-form/components/form-field-input/form-field-input.component.d.ts +23 -0
  660. package/lib/core/components/auto-form/components/form-field-input-show/form-field-input-show.component.d.ts +14 -0
  661. package/lib/core/components/auto-form/components/form-field-select/form-field-select.component.d.ts +44 -0
  662. package/lib/core/components/auto-form/components/form-field-select-show/form-field-select-show.component.d.ts +20 -0
  663. package/lib/core/components/auto-form/components/form-field-slide-toggle/form-field-slide-toggle.component.d.ts +9 -0
  664. package/lib/core/components/auto-form/components/form-field-slide-toggle-show/form-field-slide-toggle-show.component.d.ts +11 -0
  665. package/lib/core/components/auto-form/components/form-field-spinner/form-field-spinner.component.d.ts +5 -0
  666. package/lib/core/components/auto-form/components/form-field-tags/form-field-tags.component.d.ts +42 -0
  667. package/lib/core/components/auto-form/components/form-message-box/form-message-box.component.d.ts +31 -0
  668. package/lib/core/components/auto-form/constants/errors.d.ts +22 -0
  669. package/lib/core/components/auto-form/containers/auto-form-main/auto-form-main.component.d.ts +69 -0
  670. package/lib/core/components/auto-form/containers/auto-form-show/auto-form-show.component.d.ts +24 -0
  671. package/lib/core/components/auto-form/containers/auto-form-show-field/auto-form-show-field.component.d.ts +24 -0
  672. package/lib/core/components/auto-form/containers/form-field/form-field.component.d.ts +48 -0
  673. package/lib/core/components/auto-form/containers/publish-messages/publish-messages.component.d.ts +50 -0
  674. package/lib/core/components/auto-form/interfaces/field-type.d.ts +12 -0
  675. package/lib/core/components/auto-form/interfaces/form-field-format.d.ts +7 -0
  676. package/lib/core/components/auto-form/interfaces/form-field-option.d.ts +4 -0
  677. package/lib/core/components/auto-form/interfaces/form-field.d.ts +58 -0
  678. package/lib/core/components/auto-form/interfaces/input-type.d.ts +9 -0
  679. package/lib/core/components/bread-crumbs/bread-crumbs.component.d.ts +13 -0
  680. package/lib/core/components/bread-crumbs/bread-crumbs.module.d.ts +9 -0
  681. package/lib/core/components/button/button.component.d.ts +35 -0
  682. package/lib/core/components/button/button.module.d.ts +13 -0
  683. package/lib/core/components/chips-input/chips-input.component.d.ts +37 -0
  684. package/lib/core/components/chips-input/chips-input.module.d.ts +14 -0
  685. package/lib/core/components/files-upload/constants.d.ts +12 -0
  686. package/lib/core/components/files-upload/file-list-card/file-list-card.component.d.ts +51 -0
  687. package/lib/core/components/files-upload/files-upload/files-upload.component.d.ts +42 -0
  688. package/lib/core/components/files-upload/files-upload-list-images/files-upload-list-images.component.d.ts +34 -0
  689. package/lib/core/components/files-upload/files-upload.module.d.ts +18 -0
  690. package/lib/core/components/files-upload/table-files-uploading/table-files-uploading.component.d.ts +43 -0
  691. package/lib/core/components/form-field-error/form-field-error.component.d.ts +22 -0
  692. package/lib/core/components/form-field-error/form-field-error.module.d.ts +9 -0
  693. package/lib/core/components/form-field-publish-error/form-field-publish-error.component.d.ts +26 -0
  694. package/lib/core/components/form-field-publish-error/form-field-publish-error.module.d.ts +9 -0
  695. package/lib/core/components/header/header.component.d.ts +13 -0
  696. package/lib/core/components/header/header.module.d.ts +8 -0
  697. package/lib/core/components/icon/icon.component.d.ts +24 -0
  698. package/lib/core/components/icon/icon.module.d.ts +9 -0
  699. package/lib/core/components/image/image.component.d.ts +25 -0
  700. package/lib/core/components/image/image.module.d.ts +9 -0
  701. package/lib/core/components/input-tags/input-tags.component.d.ts +17 -0
  702. package/lib/core/components/input-tags/input-tags.module.d.ts +9 -0
  703. package/lib/core/components/pagination/pagination.component.d.ts +15 -0
  704. package/lib/core/components/pagination/pagination.module.d.ts +9 -0
  705. package/lib/core/components/panel/panel.component.d.ts +18 -0
  706. package/lib/core/components/panel/panel.module.d.ts +10 -0
  707. package/lib/core/components/smart-progress-bar/smart-progress-bar.component.d.ts +8 -0
  708. package/lib/core/components/smart-progress-bar/smart-progress-bar.module.d.ts +8 -0
  709. package/lib/core/components/spinner/spinner.component.d.ts +12 -0
  710. package/lib/core/components/spinner/spinner.module.d.ts +9 -0
  711. package/lib/core/components/star-rating/star-rating.component.d.ts +12 -0
  712. package/lib/core/components/star-rating/star-rating.module.d.ts +8 -0
  713. package/lib/core/components/sticky-sidebar/sticky-sidebar.directive.d.ts +78 -0
  714. package/lib/core/components/sticky-sidebar/sticky-sidebar.module.d.ts +16 -0
  715. package/lib/core/components/table-menu/table-menu.component.d.ts +12 -0
  716. package/lib/core/components/table-menu/table-menu.module.d.ts +10 -0
  717. package/lib/core/components/tag-cloud/tag-cloud.component.d.ts +14 -0
  718. package/lib/core/components/tag-cloud/tag-cloud.module.d.ts +10 -0
  719. package/lib/core/components/text-with-link-more/text-with-link-more.component.d.ts +12 -0
  720. package/lib/core/components/text-with-link-more/text-with-link-more.module.d.ts +9 -0
  721. package/lib/core/constants/async-validators-type.d.ts +10 -0
  722. package/lib/core/constants/constants.d.ts +5 -0
  723. package/lib/core/constants/publish-errors.const.d.ts +9 -0
  724. package/lib/core/constants/validators-type.d.ts +7 -0
  725. package/lib/core/dialogs/common-dialog/common-dialog.component.d.ts +33 -0
  726. package/lib/core/dialogs/delete/delete.component.d.ts +17 -0
  727. package/lib/core/dialogs/dialog.service.d.ts +10 -0
  728. package/lib/core/models/action-payload.d.ts +4 -0
  729. package/lib/core/models/entity.d.ts +4 -0
  730. package/lib/core/models/form-error.d.ts +7 -0
  731. package/lib/core/models/form-validation.d.ts +7 -0
  732. package/lib/core/models/forms.d.ts +12 -0
  733. package/lib/core/models/http-client-result.d.ts +5 -0
  734. package/lib/core/models/meta-data.model.d.ts +5 -0
  735. package/lib/core/pipes/count-format.pipe.d.ts +7 -0
  736. package/lib/core/pipes/date-format.pipe.d.ts +7 -0
  737. package/lib/core/pipes/phone.pipe.d.ts +7 -0
  738. package/lib/core/pipes/pipes.module.d.ts +11 -0
  739. package/lib/core/pipes/safe.pipe.d.ts +10 -0
  740. package/lib/core/services/actions/actions-api.d.ts +9 -0
  741. package/lib/core/services/actions/actions.service.d.ts +20 -0
  742. package/lib/core/services/auth/authentication.service.d.ts +40 -0
  743. package/lib/core/services/auto-form/auto-form.service.d.ts +27 -0
  744. package/lib/core/services/base/base-api-service.d.ts +49 -0
  745. package/lib/core/services/base/base-api.d.ts +7 -0
  746. package/lib/core/services/base/index.d.ts +2 -0
  747. package/lib/core/services/base-auto-form/base-auto-form.service.d.ts +16 -0
  748. package/lib/core/services/cache-data/cache-data-api.d.ts +9 -0
  749. package/lib/core/services/cache-data/cache-data.service.d.ts +20 -0
  750. package/lib/core/services/files/files-api.d.ts +9 -0
  751. package/lib/core/services/files/files.service.d.ts +22 -0
  752. package/lib/core/services/form-delete-file/form-delete-file-api.d.ts +10 -0
  753. package/lib/core/services/form-delete-file/form-delete-file.service.d.ts +20 -0
  754. package/lib/core/services/form-validation/form-validation-api.d.ts +10 -0
  755. package/lib/core/services/form-validation/form-validation.service.d.ts +20 -0
  756. package/lib/core/services/index.d.ts +3 -0
  757. package/lib/core/services/model-services/tags/tags-api.d.ts +9 -0
  758. package/lib/core/services/model-services/tags/tags.service.d.ts +21 -0
  759. package/lib/core/services/publish/publish-api.d.ts +10 -0
  760. package/lib/core/services/publish/publish.service.d.ts +21 -0
  761. package/lib/core/services/reducer/reducer.service.d.ts +39 -0
  762. package/lib/core/services/reports/reports-api.d.ts +9 -0
  763. package/lib/core/services/reports/reports.service.d.ts +21 -0
  764. package/lib/core/services/router/router.service.d.ts +10 -0
  765. package/lib/core/services/social/providers/base-login-provider.d.ts +13 -0
  766. package/lib/core/services/social/providers/fb-login-provider.d.ts +1 -0
  767. package/lib/core/services/social/providers/index.d.ts +3 -0
  768. package/lib/core/services/social/providers/login-provider.d.ts +7 -0
  769. package/lib/core/services/social/social-auth-service-config.d.ts +9 -0
  770. package/lib/core/services/static-data/static-data-api.d.ts +9 -0
  771. package/lib/core/services/static-data/static-data.service.d.ts +27 -0
  772. package/lib/core/services/users/users-api.d.ts +9 -0
  773. package/lib/core/services/users/users.service.d.ts +21 -0
  774. package/lib/core/tokens/index.d.ts +5 -0
  775. package/lib/core/utils/component-destroyed.d.ts +7 -0
  776. package/lib/core/utils/guid.d.ts +1 -0
  777. package/{projects/wt-front-shared/src/lib/core/utils/index.ts → lib/core/utils/index.d.ts} +0 -0
  778. package/lib/core/utils/track-by.d.ts +3 -0
  779. package/lib/models/config/app-config.d.ts +11 -0
  780. package/{projects/wt-front-shared/src/lib/models/config/index.ts → lib/models/config/index.d.ts} +0 -0
  781. package/lib/models/embeds/embed-model.d.ts +7 -0
  782. package/{projects/wt-front-shared/src/lib/models/embeds/index.ts → lib/models/embeds/index.d.ts} +0 -0
  783. package/lib/models/endpoints/actions/actions-endpoint-types.d.ts +3 -0
  784. package/lib/models/endpoints/actions/actions-request-config.d.ts +3 -0
  785. package/lib/models/endpoints/actions/actions-response.d.ts +3 -0
  786. package/lib/models/endpoints/actions/index.d.ts +4 -0
  787. package/{projects/wt-front-shared/src/lib/models/endpoints/actions/send-actions/index.ts → lib/models/endpoints/actions/send-actions/index.d.ts} +0 -0
  788. package/lib/models/endpoints/actions/send-actions/request/actions-send-request-config.d.ts +8 -0
  789. package/lib/models/endpoints/actions/send-actions/request/actions-send-request.d.ts +15 -0
  790. package/{projects/wt-front-shared/src/lib/models/endpoints/actions/send-actions/request/index.ts → lib/models/endpoints/actions/send-actions/request/index.d.ts} +0 -0
  791. package/lib/models/endpoints/auth/auth-endpoint-types.d.ts +4 -0
  792. package/lib/models/endpoints/auth/auth-request-config.d.ts +3 -0
  793. package/lib/models/endpoints/auth/auth-response.d.ts +3 -0
  794. package/lib/models/endpoints/auth/index.d.ts +4 -0
  795. package/lib/models/endpoints/auth/login-send/index.d.ts +2 -0
  796. package/{projects/wt-front-shared/src/lib/models/endpoints/auth/login-send/request/index.ts → lib/models/endpoints/auth/login-send/request/index.d.ts} +0 -0
  797. package/lib/models/endpoints/auth/login-send/request/login-send-create-request-config.d.ts +6 -0
  798. package/lib/models/endpoints/auth/login-send/request/login-send-create-request.d.ts +15 -0
  799. package/{projects/wt-front-shared/src/lib/models/endpoints/auth/login-send/response/index.ts → lib/models/endpoints/auth/login-send/response/index.d.ts} +0 -0
  800. package/lib/models/endpoints/auth/login-send/response/login-send-create-201.d.ts +8 -0
  801. package/lib/models/endpoints/auth/login-send/response/login-send-create-response-factory.d.ts +4 -0
  802. package/lib/models/endpoints/auth/login-send/response/login-send-create-response.d.ts +3 -0
  803. package/lib/models/endpoints/auth/refresh-token/index.d.ts +2 -0
  804. package/{projects/wt-front-shared/src/lib/models/endpoints/auth/refresh-token/request/index.ts → lib/models/endpoints/auth/refresh-token/request/index.d.ts} +0 -0
  805. package/lib/models/endpoints/auth/refresh-token/request/refresh-token-request-config.d.ts +4 -0
  806. package/lib/models/endpoints/auth/refresh-token/request/refresh-token-request.d.ts +11 -0
  807. package/{projects/wt-front-shared/src/lib/models/endpoints/auth/refresh-token/response/index.ts → lib/models/endpoints/auth/refresh-token/response/index.d.ts} +0 -0
  808. package/lib/models/endpoints/auth/refresh-token/response/refresh-token-200.d.ts +8 -0
  809. package/lib/models/endpoints/auth/refresh-token/response/refresh-token-response-factory.d.ts +4 -0
  810. package/lib/models/endpoints/auth/refresh-token/response/refresh-token-response.d.ts +3 -0
  811. package/lib/models/endpoints/base-response/base-response-factory.d.ts +7 -0
  812. package/lib/models/endpoints/base-response/base-response.d.ts +3 -0
  813. package/{projects/wt-front-shared/src/lib/models/endpoints/base-response/index.ts → lib/models/endpoints/base-response/index.d.ts} +0 -0
  814. package/lib/models/endpoints/base-response/response-200.d.ts +9 -0
  815. package/lib/models/endpoints/cache-data/cache-data-endpoint-types.d.ts +3 -0
  816. package/lib/models/endpoints/cache-data/cache-data-request-config.d.ts +3 -0
  817. package/lib/models/endpoints/cache-data/cache-data-response.d.ts +3 -0
  818. package/{projects/wt-front-shared/src/lib/models/endpoints/cache-data/get-cache-data/index.ts → lib/models/endpoints/cache-data/get-cache-data/index.d.ts} +0 -0
  819. package/lib/models/endpoints/cache-data/get-cache-data/request/get-cache-data-request-config.d.ts +6 -0
  820. package/lib/models/endpoints/cache-data/get-cache-data/request/get-cache-data-request.d.ts +11 -0
  821. package/{projects/wt-front-shared/src/lib/models/endpoints/cache-data/get-cache-data/request/index.ts → lib/models/endpoints/cache-data/get-cache-data/request/index.d.ts} +0 -0
  822. package/lib/models/endpoints/cache-data/index.d.ts +4 -0
  823. package/lib/models/endpoints/files/files-delete/index.d.ts +2 -0
  824. package/lib/models/endpoints/files/files-delete/request/files-delete-request-config.d.ts +6 -0
  825. package/lib/models/endpoints/files/files-delete/request/files-delete-request.d.ts +11 -0
  826. package/{projects/wt-front-shared/src/lib/models/endpoints/files/files-delete/request/index.ts → lib/models/endpoints/files/files-delete/request/index.d.ts} +0 -0
  827. package/lib/models/endpoints/files/files-delete/response/files-delete-200.d.ts +8 -0
  828. package/lib/models/endpoints/files/files-delete/response/files-delete-response-factory.d.ts +4 -0
  829. package/lib/models/endpoints/files/files-delete/response/files-delete-response.d.ts +3 -0
  830. package/{projects/wt-front-shared/src/lib/models/endpoints/files/files-delete/response/index.ts → lib/models/endpoints/files/files-delete/response/index.d.ts} +0 -0
  831. package/lib/models/endpoints/files/files-endpoint-types.d.ts +6 -0
  832. package/lib/models/endpoints/files/files-load/index.d.ts +2 -0
  833. package/lib/models/endpoints/files/files-load/request/files-load-request-config.d.ts +9 -0
  834. package/lib/models/endpoints/files/files-load/request/files-load-request.d.ts +11 -0
  835. package/{projects/wt-front-shared/src/lib/models/endpoints/files/files-load/request/index.ts → lib/models/endpoints/files/files-load/request/index.d.ts} +0 -0
  836. package/lib/models/endpoints/files/files-load/response/files-load-200.d.ts +8 -0
  837. package/lib/models/endpoints/files/files-load/response/files-load-response-factory.d.ts +4 -0
  838. package/lib/models/endpoints/files/files-load/response/files-load-response.d.ts +3 -0
  839. package/{projects/wt-front-shared/src/lib/models/endpoints/files/files-load/response/index.ts → lib/models/endpoints/files/files-load/response/index.d.ts} +0 -0
  840. package/lib/models/endpoints/files/files-request-config.d.ts +3 -0
  841. package/lib/models/endpoints/files/files-response.d.ts +3 -0
  842. package/lib/models/endpoints/files/files-sort/index.d.ts +2 -0
  843. package/lib/models/endpoints/files/files-sort/request/files-sort-request-config.d.ts +9 -0
  844. package/lib/models/endpoints/files/files-sort/request/files-sort-request.d.ts +11 -0
  845. package/{projects/wt-front-shared/src/lib/models/endpoints/files/files-sort/request/index.ts → lib/models/endpoints/files/files-sort/request/index.d.ts} +0 -0
  846. package/lib/models/endpoints/files/files-sort/response/files-sort-200.d.ts +8 -0
  847. package/lib/models/endpoints/files/files-sort/response/files-sort-response-factory.d.ts +4 -0
  848. package/lib/models/endpoints/files/files-sort/response/files-sort-response.d.ts +3 -0
  849. package/{projects/wt-front-shared/src/lib/models/endpoints/files/files-sort/response/index.ts → lib/models/endpoints/files/files-sort/response/index.d.ts} +0 -0
  850. package/lib/models/endpoints/files/files-update/index.d.ts +2 -0
  851. package/lib/models/endpoints/files/files-update/request/files-update-request-config.d.ts +11 -0
  852. package/lib/models/endpoints/files/files-update/request/files-update-request.d.ts +11 -0
  853. package/{projects/wt-front-shared/src/lib/models/endpoints/files/files-update/request/index.ts → lib/models/endpoints/files/files-update/request/index.d.ts} +0 -0
  854. package/lib/models/endpoints/files/files-update/response/files-update-200.d.ts +8 -0
  855. package/lib/models/endpoints/files/files-update/response/files-update-response-factory.d.ts +4 -0
  856. package/lib/models/endpoints/files/files-update/response/files-update-response.d.ts +3 -0
  857. package/{projects/wt-front-shared/src/lib/models/endpoints/files/files-update/response/index.ts → lib/models/endpoints/files/files-update/response/index.d.ts} +0 -0
  858. package/{projects/wt-front-shared/src/lib/models/endpoints/files/index.ts → lib/models/endpoints/files/index.d.ts} +0 -0
  859. package/{projects/wt-front-shared/src/lib/models/endpoints/form-delete-file/form-delete-file/index.ts → lib/models/endpoints/form-delete-file/form-delete-file/index.d.ts} +0 -0
  860. package/lib/models/endpoints/form-delete-file/form-delete-file/request/form-delete-file-request-config.d.ts +8 -0
  861. package/lib/models/endpoints/form-delete-file/form-delete-file/request/form-delete-file-request.d.ts +11 -0
  862. package/{projects/wt-front-shared/src/lib/models/endpoints/form-delete-file/form-delete-file/request/index.ts → lib/models/endpoints/form-delete-file/form-delete-file/request/index.d.ts} +0 -0
  863. package/lib/models/endpoints/form-delete-file/form-delete-file-base-endpoint-types.d.ts +3 -0
  864. package/lib/models/endpoints/form-delete-file/form-delete-file-base-request-config.d.ts +3 -0
  865. package/lib/models/endpoints/form-delete-file/form-delete-file-base-response.d.ts +3 -0
  866. package/lib/models/endpoints/form-delete-file/index.d.ts +4 -0
  867. package/{projects/wt-front-shared/src/lib/models/endpoints/form-validation/form-validation-check/index.ts → lib/models/endpoints/form-validation/form-validation-check/index.d.ts} +0 -0
  868. package/lib/models/endpoints/form-validation/form-validation-check/request/form-validation-check-request-config.d.ts +8 -0
  869. package/lib/models/endpoints/form-validation/form-validation-check/request/form-validation-check-request.d.ts +11 -0
  870. package/{projects/wt-front-shared/src/lib/models/endpoints/form-validation/form-validation-check/request/index.ts → lib/models/endpoints/form-validation/form-validation-check/request/index.d.ts} +0 -0
  871. package/lib/models/endpoints/form-validation/form-validation-endpoint-types.d.ts +3 -0
  872. package/lib/models/endpoints/form-validation/form-validation-request-config.d.ts +3 -0
  873. package/lib/models/endpoints/form-validation/form-validation-response.d.ts +3 -0
  874. package/lib/models/endpoints/form-validation/index.d.ts +4 -0
  875. package/{projects/wt-front-shared/src/lib/models/endpoints/http/index.ts → lib/models/endpoints/http/index.d.ts} +0 -0
  876. package/lib/models/endpoints/http/request/delete-request.d.ts +5 -0
  877. package/lib/models/endpoints/http/request/get-request.d.ts +9 -0
  878. package/{projects/wt-front-shared/src/lib/models/endpoints/http/request/index.ts → lib/models/endpoints/http/request/index.d.ts} +0 -0
  879. package/lib/models/endpoints/http/request/post-request.d.ts +6 -0
  880. package/lib/models/endpoints/http/request/put-request.d.ts +6 -0
  881. package/lib/models/endpoints/http/request/request-config.d.ts +2 -0
  882. package/lib/models/endpoints/http/request/request-headers.d.ts +3 -0
  883. package/lib/models/endpoints/http/request/request-method.d.ts +6 -0
  884. package/lib/models/endpoints/http/request/request.d.ts +25 -0
  885. package/lib/models/endpoints/http/request-result-info.d.ts +4 -0
  886. package/{projects/wt-front-shared/src/lib/models/endpoints/http/response/index.ts → lib/models/endpoints/http/response/index.d.ts} +0 -0
  887. package/lib/models/endpoints/http/response/response-status.d.ts +11 -0
  888. package/lib/models/endpoints/http/response/response.d.ts +10 -0
  889. package/lib/models/endpoints/index.d.ts +2 -0
  890. package/{projects/wt-front-shared/src/lib/models/endpoints/publish/index.ts → lib/models/endpoints/publish/index.d.ts} +0 -0
  891. package/lib/models/endpoints/publish/publish-endpoint-types.d.ts +4 -0
  892. package/{projects/wt-front-shared/src/lib/models/endpoints/publish/publish-post/index.ts → lib/models/endpoints/publish/publish-post/index.d.ts} +0 -0
  893. package/{projects/wt-front-shared/src/lib/models/endpoints/publish/publish-post/request/index.ts → lib/models/endpoints/publish/publish-post/request/index.d.ts} +0 -0
  894. package/lib/models/endpoints/publish/publish-post/request/publish-post-request-config.d.ts +6 -0
  895. package/lib/models/endpoints/publish/publish-post/request/publish-post-request.d.ts +11 -0
  896. package/lib/models/endpoints/publish/publish-request-config.d.ts +3 -0
  897. package/lib/models/endpoints/publish/publish-response.d.ts +3 -0
  898. package/{projects/wt-front-shared/src/lib/models/endpoints/publish/un-publish-post/index.ts → lib/models/endpoints/publish/un-publish-post/index.d.ts} +0 -0
  899. package/{projects/wt-front-shared/src/lib/models/endpoints/publish/un-publish-post/request/index.ts → lib/models/endpoints/publish/un-publish-post/request/index.d.ts} +0 -0
  900. package/lib/models/endpoints/publish/un-publish-post/request/un-publish-post-config.d.ts +6 -0
  901. package/lib/models/endpoints/publish/un-publish-post/request/un-publish-post-request.d.ts +11 -0
  902. package/{projects/wt-front-shared/src/lib/models/endpoints/reports/enities-report/index.ts → lib/models/endpoints/reports/enities-report/index.d.ts} +0 -0
  903. package/lib/models/endpoints/reports/enities-report/request/entities-reports-request-config.d.ts +5 -0
  904. package/lib/models/endpoints/reports/enities-report/request/entities-reports-request.d.ts +11 -0
  905. package/{projects/wt-front-shared/src/lib/models/endpoints/reports/enities-report/request/index.ts → lib/models/endpoints/reports/enities-report/request/index.d.ts} +0 -0
  906. package/lib/models/endpoints/reports/index.d.ts +4 -0
  907. package/lib/models/endpoints/reports/reports-endpoint-types.d.ts +4 -0
  908. package/lib/models/endpoints/reports/reports-request-config.d.ts +3 -0
  909. package/lib/models/endpoints/reports/reports-response.d.ts +3 -0
  910. package/{projects/wt-front-shared/src/lib/models/endpoints/reports/user-behavior-report/index.ts → lib/models/endpoints/reports/user-behavior-report/index.d.ts} +0 -0
  911. package/{projects/wt-front-shared/src/lib/models/endpoints/reports/user-behavior-report/request/index.ts → lib/models/endpoints/reports/user-behavior-report/request/index.d.ts} +0 -0
  912. package/lib/models/endpoints/reports/user-behavior-report/request/user-behavior-report-request-config.d.ts +5 -0
  913. package/lib/models/endpoints/reports/user-behavior-report/request/user-behavior-report-request.d.ts +11 -0
  914. package/lib/models/endpoints/static-data/index.d.ts +10 -0
  915. package/{projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-create/index.ts → lib/models/endpoints/static-data/static-data-create/index.d.ts} +0 -0
  916. package/{projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-create/request/index.ts → lib/models/endpoints/static-data/static-data-create/request/index.d.ts} +0 -0
  917. package/lib/models/endpoints/static-data/static-data-create/request/static-data-create-request-config.d.ts +8 -0
  918. package/lib/models/endpoints/static-data/static-data-create/request/static-data-create-request.d.ts +11 -0
  919. package/{projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-delete/index.ts → lib/models/endpoints/static-data/static-data-delete/index.d.ts} +0 -0
  920. package/{projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-delete/request/index.ts → lib/models/endpoints/static-data/static-data-delete/request/index.d.ts} +0 -0
  921. package/lib/models/endpoints/static-data/static-data-delete/request/static-data-delete-request-config.d.ts +7 -0
  922. package/lib/models/endpoints/static-data/static-data-delete/request/static-data-delete-request.d.ts +11 -0
  923. package/lib/models/endpoints/static-data/static-data-endpoint-types.d.ts +9 -0
  924. package/{projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-get/index.ts → lib/models/endpoints/static-data/static-data-get/index.d.ts} +0 -0
  925. package/{projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-get/request/index.ts → lib/models/endpoints/static-data/static-data-get/request/index.d.ts} +0 -0
  926. package/lib/models/endpoints/static-data/static-data-get/request/static-data-get-request-config.d.ts +12 -0
  927. package/lib/models/endpoints/static-data/static-data-get/request/static-data-get-request.d.ts +11 -0
  928. package/{projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-get-list/index.ts → lib/models/endpoints/static-data/static-data-get-list/index.d.ts} +0 -0
  929. package/{projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-get-list/request/index.ts → lib/models/endpoints/static-data/static-data-get-list/request/index.d.ts} +0 -0
  930. package/lib/models/endpoints/static-data/static-data-get-list/request/static-data-get-list-request-config.d.ts +14 -0
  931. package/lib/models/endpoints/static-data/static-data-get-list/request/static-data-get-list-request.d.ts +11 -0
  932. package/{projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-get-list-categories/index.ts → lib/models/endpoints/static-data/static-data-get-list-categories/index.d.ts} +0 -0
  933. package/{projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-get-list-categories/request/index.ts → lib/models/endpoints/static-data/static-data-get-list-categories/request/index.d.ts} +0 -0
  934. package/lib/models/endpoints/static-data/static-data-get-list-categories/request/static-data-get-list-categories-request-config.d.ts +3 -0
  935. package/lib/models/endpoints/static-data/static-data-get-list-categories/request/static-data-get-list-categories-request.d.ts +11 -0
  936. package/lib/models/endpoints/static-data/static-data-request-config.d.ts +3 -0
  937. package/lib/models/endpoints/static-data/static-data-response.d.ts +3 -0
  938. package/{projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-sub-routing-get/index.ts → lib/models/endpoints/static-data/static-data-sub-routing-get/index.d.ts} +0 -0
  939. package/{projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-sub-routing-get/request/index.ts → lib/models/endpoints/static-data/static-data-sub-routing-get/request/index.d.ts} +0 -0
  940. package/lib/models/endpoints/static-data/static-data-sub-routing-get/request/static-data-sub-routing-get-request-config.d.ts +7 -0
  941. package/lib/models/endpoints/static-data/static-data-sub-routing-get/request/static-data-sub-routing-get-request.d.ts +11 -0
  942. package/{projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-update/index.ts → lib/models/endpoints/static-data/static-data-update/index.d.ts} +0 -0
  943. package/{projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-update/request/index.ts → lib/models/endpoints/static-data/static-data-update/request/index.d.ts} +0 -0
  944. package/lib/models/endpoints/static-data/static-data-update/request/static-data-update-request-config.d.ts +8 -0
  945. package/lib/models/endpoints/static-data/static-data-update/request/static-data-update-request.d.ts +11 -0
  946. package/lib/models/endpoints/tags/index.d.ts +5 -0
  947. package/{projects/wt-front-shared/src/lib/models/endpoints/tags/tag-entities-load/index.ts → lib/models/endpoints/tags/tag-entities-load/index.d.ts} +0 -0
  948. package/{projects/wt-front-shared/src/lib/models/endpoints/tags/tag-entities-load/request/index.ts → lib/models/endpoints/tags/tag-entities-load/request/index.d.ts} +0 -0
  949. package/lib/models/endpoints/tags/tag-entities-load/request/tag-entities-load-request-config.d.ts +4 -0
  950. package/lib/models/endpoints/tags/tag-entities-load/request/tag-entities-request.d.ts +11 -0
  951. package/lib/models/endpoints/tags/tags-endpoint-types.d.ts +8 -0
  952. package/lib/models/endpoints/tags/tags-load/index.d.ts +2 -0
  953. package/{projects/wt-front-shared/src/lib/models/endpoints/tags/tags-load/request/index.ts → lib/models/endpoints/tags/tags-load/request/index.d.ts} +0 -0
  954. package/lib/models/endpoints/tags/tags-load/request/tags-load-request-config.d.ts +10 -0
  955. package/lib/models/endpoints/tags/tags-load/request/tags-load-request.d.ts +11 -0
  956. package/{projects/wt-front-shared/src/lib/models/endpoints/tags/tags-load/response/index.ts → lib/models/endpoints/tags/tags-load/response/index.d.ts} +0 -0
  957. package/lib/models/endpoints/tags/tags-load/response/tags-load-200.d.ts +10 -0
  958. package/lib/models/endpoints/tags/tags-load/response/tags-load-response-factory.d.ts +4 -0
  959. package/lib/models/endpoints/tags/tags-load/response/tags-load-response.d.ts +3 -0
  960. package/lib/models/endpoints/tags/tags-request-config.d.ts +3 -0
  961. package/lib/models/endpoints/tags/tags-response.d.ts +3 -0
  962. package/lib/models/entity/entity-filters.d.ts +3 -0
  963. package/lib/models/entity/entity-query-field-names.d.ts +21 -0
  964. package/lib/models/entity/entity-query-fields.d.ts +4 -0
  965. package/lib/models/entity/entity-sort-type.d.ts +6 -0
  966. package/lib/models/entity/entity.d.ts +3 -0
  967. package/lib/models/entity/entity.type.d.ts +6 -0
  968. package/{projects/wt-front-shared/src/lib/models/entity/index.ts → lib/models/entity/index.d.ts} +0 -0
  969. package/lib/models/entity/paging.type.d.ts +4 -0
  970. package/lib/models/fields/fields-model.d.ts +4 -0
  971. package/lib/models/fields/index.d.ts +1 -0
  972. package/lib/models/index.d.ts +10 -0
  973. package/{projects/wt-front-shared/src/lib/models/mapper/index.ts → lib/models/mapper/index.d.ts} +0 -0
  974. package/lib/models/mapper/mapper-util.d.ts +25 -0
  975. package/lib/models/mapper/mapper.d.ts +25 -0
  976. package/lib/models/model-adapter/base-model-adapter.d.ts +8 -0
  977. package/{projects/wt-front-shared/src/lib/models/model-adapter/index.ts → lib/models/model-adapter/index.d.ts} +0 -0
  978. package/lib/models/models/actions/actions.model.d.ts +5 -0
  979. package/{projects/wt-front-shared/src/lib/models/models/actions/index.ts → lib/models/models/actions/index.d.ts} +0 -0
  980. package/lib/models/models/cache-data/cache-data.model.d.ts +4 -0
  981. package/{projects/wt-front-shared/src/lib/models/models/cache-data/index.ts → lib/models/models/cache-data/index.d.ts} +0 -0
  982. package/lib/models/models/file/file-field-names.d.ts +11 -0
  983. package/lib/models/models/file/file-model.d.ts +22 -0
  984. package/lib/models/models/file/file-scheme.d.ts +4 -0
  985. package/{projects/wt-front-shared/src/lib/models/models/file/index.ts → lib/models/models/file/index.d.ts} +0 -0
  986. package/lib/models/models/file/versions-model.d.ts +5 -0
  987. package/lib/models/models/meta.model.d.ts +11 -0
  988. package/{projects/wt-front-shared/src/lib/models/models/notification/index.ts → lib/models/models/notification/index.d.ts} +0 -0
  989. package/lib/models/models/notification/notificationModel.d.ts +7 -0
  990. package/lib/models/models/publish-message/publish-message-field-names.d.ts +10 -0
  991. package/lib/models/models/publish-message/publish-message-scheme.d.ts +4 -0
  992. package/lib/models/models/publish-message/publish-message.d.ts +19 -0
  993. package/{projects/wt-front-shared/src/lib/models/models/reports/index.ts → lib/models/models/reports/index.d.ts} +0 -0
  994. package/lib/models/models/reports/reports.model.d.ts +4 -0
  995. package/lib/models/models/request.model.d.ts +18 -0
  996. package/{projects/wt-front-shared/src/lib/models/models/static-data/index.ts → lib/models/models/static-data/index.d.ts} +0 -0
  997. package/lib/models/models/static-data/static-data.model.d.ts +6 -0
  998. package/lib/models/models/tag/tag-entity-model.d.ts +8 -0
  999. package/lib/models/models/tag/tag-entity-scheme.d.ts +4 -0
  1000. package/lib/models/models/tag/tag-field-names.d.ts +7 -0
  1001. package/lib/models/models/tag/tag-model.d.ts +7 -0
  1002. package/lib/models/models/tag/tag-scheme.d.ts +4 -0
  1003. package/{projects/wt-front-shared/src/lib/models/models/user/index.ts → lib/models/models/user/index.d.ts} +0 -0
  1004. package/lib/models/models/user/user-auth-headers.d.ts +4 -0
  1005. package/lib/models/models/user/user-field-names.d.ts +12 -0
  1006. package/lib/models/models/user/user-model.d.ts +14 -0
  1007. package/lib/models/models/user/user-query-fields.d.ts +4 -0
  1008. package/lib/models/models/user/user-right-model.d.ts +4 -0
  1009. package/lib/models/models/user/user-scheme.d.ts +4 -0
  1010. package/lib/models/models/user/user.role.d.ts +7 -0
  1011. package/{projects/wt-front-shared/src/lib/models/query-fields-adapter/index.ts → lib/models/query-fields-adapter/index.d.ts} +0 -0
  1012. package/lib/models/query-fields-adapter/query-fileds-adapter.d.ts +7 -0
  1013. package/lib/models/schemes/entity-scheme.d.ts +3 -0
  1014. package/{projects/wt-front-shared/src/lib/models/schemes/index.ts → lib/models/schemes/index.d.ts} +0 -0
  1015. package/lib/models/social/fb-login-options.d.ts +11 -0
  1016. package/lib/models/social/index.d.ts +3 -0
  1017. package/lib/models/social/login-options.d.ts +2 -0
  1018. package/lib/models/social/social-user.d.ts +12 -0
  1019. package/{projects/wt-front-shared/src/lib/models/ui-units/index.ts → lib/models/ui-units/index.d.ts} +0 -0
  1020. package/lib/models/ui-units/ui-unit-ids.d.ts +7 -0
  1021. package/lib/models/ui-units/ui-unit-types.d.ts +3 -0
  1022. package/lib/models/ui-units/uiUnitItem.d.ts +9 -0
  1023. package/lib/models/ui-units/uiUnits.images-data.d.ts +5 -0
  1024. package/package.json +22 -85
  1025. package/public-api.d.ts +47 -0
  1026. package/angular.json +0 -40
  1027. package/projects/wt-front-shared/README.md +0 -24
  1028. package/projects/wt-front-shared/ng-package.json +0 -7
  1029. package/projects/wt-front-shared/package.json +0 -5
  1030. package/projects/wt-front-shared/src/lib/core/+state/actions/actions.actions.ts +0 -28
  1031. package/projects/wt-front-shared/src/lib/core/+state/actions/actions.effects.ts +0 -65
  1032. package/projects/wt-front-shared/src/lib/core/+state/actions/actions.facade.ts +0 -33
  1033. package/projects/wt-front-shared/src/lib/core/+state/actions/actions.reducer.ts +0 -92
  1034. package/projects/wt-front-shared/src/lib/core/+state/actions/actions.selectors.ts +0 -45
  1035. package/projects/wt-front-shared/src/lib/core/+state/actions/behavios/action-send-behavior.ts +0 -46
  1036. package/projects/wt-front-shared/src/lib/core/+state/base.effects.ts +0 -32
  1037. package/projects/wt-front-shared/src/lib/core/+state/behavior.ts +0 -33
  1038. package/projects/wt-front-shared/src/lib/core/+state/cache-data/behavios/get-cache-data-behavior.ts +0 -50
  1039. package/projects/wt-front-shared/src/lib/core/+state/cache-data/cache-data.actions.ts +0 -27
  1040. package/projects/wt-front-shared/src/lib/core/+state/cache-data/cache-data.effects.ts +0 -47
  1041. package/projects/wt-front-shared/src/lib/core/+state/cache-data/cache-data.facade.ts +0 -26
  1042. package/projects/wt-front-shared/src/lib/core/+state/cache-data/cache-data.reducer.ts +0 -34
  1043. package/projects/wt-front-shared/src/lib/core/+state/cache-data/cache-data.selectors.ts +0 -17
  1044. package/projects/wt-front-shared/src/lib/core/+state/core.actions.ts +0 -53
  1045. package/projects/wt-front-shared/src/lib/core/+state/core.facade.ts +0 -29
  1046. package/projects/wt-front-shared/src/lib/core/+state/core.selectors.ts +0 -36
  1047. package/projects/wt-front-shared/src/lib/core/+state/files/behavios/file-delete-behavior.ts +0 -49
  1048. package/projects/wt-front-shared/src/lib/core/+state/files/behavios/file-update-behavior.ts +0 -52
  1049. package/projects/wt-front-shared/src/lib/core/+state/files/behavios/files-load-behavior.ts +0 -51
  1050. package/projects/wt-front-shared/src/lib/core/+state/files/behavios/files-sort-behavior.ts +0 -51
  1051. package/projects/wt-front-shared/src/lib/core/+state/files/files.actions.ts +0 -107
  1052. package/projects/wt-front-shared/src/lib/core/+state/files/files.effects.ts +0 -121
  1053. package/projects/wt-front-shared/src/lib/core/+state/files/files.facade.ts +0 -56
  1054. package/projects/wt-front-shared/src/lib/core/+state/files/files.reducer.ts +0 -91
  1055. package/projects/wt-front-shared/src/lib/core/+state/files/files.selectors.ts +0 -77
  1056. package/projects/wt-front-shared/src/lib/core/+state/filters.selectors.ts +0 -59
  1057. package/projects/wt-front-shared/src/lib/core/+state/form-delete-file/behavios/form-delete-file-behavior.ts +0 -56
  1058. package/projects/wt-front-shared/src/lib/core/+state/form-delete-file/form-delete-file.actions.ts +0 -29
  1059. package/projects/wt-front-shared/src/lib/core/+state/form-delete-file/form-delete-file.effects.ts +0 -61
  1060. package/projects/wt-front-shared/src/lib/core/+state/form-delete-file/form-delete-file.facade.ts +0 -15
  1061. package/projects/wt-front-shared/src/lib/core/+state/form-errors/form-errors.actions.ts +0 -32
  1062. package/projects/wt-front-shared/src/lib/core/+state/form-errors/form-errors.effects.ts +0 -37
  1063. package/projects/wt-front-shared/src/lib/core/+state/form-errors/form-errors.facade.ts +0 -25
  1064. package/projects/wt-front-shared/src/lib/core/+state/form-errors/form-errors.reducer.ts +0 -57
  1065. package/projects/wt-front-shared/src/lib/core/+state/form-errors/form-errors.selectors.ts +0 -30
  1066. package/projects/wt-front-shared/src/lib/core/+state/form-validation/behavios/form-validation-check-behavior.ts +0 -52
  1067. package/projects/wt-front-shared/src/lib/core/+state/form-validation/form-validation.actions.ts +0 -33
  1068. package/projects/wt-front-shared/src/lib/core/+state/form-validation/form-validation.effects.ts +0 -45
  1069. package/projects/wt-front-shared/src/lib/core/+state/form-validation/form-validation.facade.ts +0 -21
  1070. package/projects/wt-front-shared/src/lib/core/+state/form-validation/form-validation.reducer.ts +0 -55
  1071. package/projects/wt-front-shared/src/lib/core/+state/form-validation/form-validation.selectors.ts +0 -20
  1072. package/projects/wt-front-shared/src/lib/core/+state/forms/forms.actions.ts +0 -36
  1073. package/projects/wt-front-shared/src/lib/core/+state/forms/forms.effects.ts +0 -42
  1074. package/projects/wt-front-shared/src/lib/core/+state/forms/forms.facade.ts +0 -30
  1075. package/projects/wt-front-shared/src/lib/core/+state/forms/forms.reducer.ts +0 -61
  1076. package/projects/wt-front-shared/src/lib/core/+state/forms/forms.selectors.ts +0 -22
  1077. package/projects/wt-front-shared/src/lib/core/+state/index.ts +0 -121
  1078. package/projects/wt-front-shared/src/lib/core/+state/main/main.actions.ts +0 -27
  1079. package/projects/wt-front-shared/src/lib/core/+state/main/main.effects.ts +0 -23
  1080. package/projects/wt-front-shared/src/lib/core/+state/main/main.facade.ts +0 -14
  1081. package/projects/wt-front-shared/src/lib/core/+state/main/main.reducer.ts +0 -31
  1082. package/projects/wt-front-shared/src/lib/core/+state/main/main.selectors.ts +0 -16
  1083. package/projects/wt-front-shared/src/lib/core/+state/notifications/notifications.actions.ts +0 -29
  1084. package/projects/wt-front-shared/src/lib/core/+state/notifications/notifications.effects.ts +0 -106
  1085. package/projects/wt-front-shared/src/lib/core/+state/notifications/notifications.facade.ts +0 -33
  1086. package/projects/wt-front-shared/src/lib/core/+state/notifications/notifications.reducer.ts +0 -40
  1087. package/projects/wt-front-shared/src/lib/core/+state/notifications/notifications.selectors.ts +0 -17
  1088. package/projects/wt-front-shared/src/lib/core/+state/publication-messages/behavios/publication-errors-post-behavior.ts +0 -97
  1089. package/projects/wt-front-shared/src/lib/core/+state/publication-messages/behavios/un-publication-post-behavior.ts +0 -59
  1090. package/projects/wt-front-shared/src/lib/core/+state/publication-messages/publication-messages.actions.ts +0 -73
  1091. package/projects/wt-front-shared/src/lib/core/+state/publication-messages/publication-messages.effects.ts +0 -124
  1092. package/projects/wt-front-shared/src/lib/core/+state/publication-messages/publication-messages.facade.ts +0 -56
  1093. package/projects/wt-front-shared/src/lib/core/+state/publication-messages/publication-messages.reducer.ts +0 -65
  1094. package/projects/wt-front-shared/src/lib/core/+state/publication-messages/publication-messages.selectors.ts +0 -16
  1095. package/projects/wt-front-shared/src/lib/core/+state/reports/behavios/reports-entities-data-behavior.ts +0 -56
  1096. package/projects/wt-front-shared/src/lib/core/+state/reports/behavios/user-behavior-get-behavior.ts +0 -56
  1097. package/projects/wt-front-shared/src/lib/core/+state/reports/reports.actions.ts +0 -42
  1098. package/projects/wt-front-shared/src/lib/core/+state/reports/reports.effects.ts +0 -59
  1099. package/projects/wt-front-shared/src/lib/core/+state/reports/reports.facade.ts +0 -42
  1100. package/projects/wt-front-shared/src/lib/core/+state/reports/reports.reducer.ts +0 -50
  1101. package/projects/wt-front-shared/src/lib/core/+state/reports/reports.selectors.ts +0 -34
  1102. package/projects/wt-front-shared/src/lib/core/+state/requests/requests.actions.ts +0 -27
  1103. package/projects/wt-front-shared/src/lib/core/+state/requests/requests.effects.ts +0 -26
  1104. package/projects/wt-front-shared/src/lib/core/+state/requests/requests.facade.ts +0 -50
  1105. package/projects/wt-front-shared/src/lib/core/+state/requests/requests.reducer.ts +0 -99
  1106. package/projects/wt-front-shared/src/lib/core/+state/requests/requests.selectors.ts +0 -20
  1107. package/projects/wt-front-shared/src/lib/core/+state/router/custom-router-serializer.ts +0 -30
  1108. package/projects/wt-front-shared/src/lib/core/+state/router/router.actions.ts +0 -38
  1109. package/projects/wt-front-shared/src/lib/core/+state/router/router.effects.ts +0 -76
  1110. package/projects/wt-front-shared/src/lib/core/+state/router/router.facade.ts +0 -15
  1111. package/projects/wt-front-shared/src/lib/core/+state/router/router.reducer.ts +0 -31
  1112. package/projects/wt-front-shared/src/lib/core/+state/router/router.selectors.ts +0 -54
  1113. package/projects/wt-front-shared/src/lib/core/+state/static-data/behavios/static-data-create-behavior.ts +0 -38
  1114. package/projects/wt-front-shared/src/lib/core/+state/static-data/behavios/static-data-delete-behavior.ts +0 -59
  1115. package/projects/wt-front-shared/src/lib/core/+state/static-data/behavios/static-data-get-behavior.ts +0 -60
  1116. package/projects/wt-front-shared/src/lib/core/+state/static-data/behavios/static-data-get-list-behavior.ts +0 -60
  1117. package/projects/wt-front-shared/src/lib/core/+state/static-data/behavios/static-data-get-list-categories-behavior.ts +0 -37
  1118. package/projects/wt-front-shared/src/lib/core/+state/static-data/behavios/static-data-update-behavior.ts +0 -48
  1119. package/projects/wt-front-shared/src/lib/core/+state/static-data/static-data.actions.ts +0 -260
  1120. package/projects/wt-front-shared/src/lib/core/+state/static-data/static-data.effects.ts +0 -232
  1121. package/projects/wt-front-shared/src/lib/core/+state/static-data/static-data.facade.ts +0 -121
  1122. package/projects/wt-front-shared/src/lib/core/+state/static-data/static-data.reducer.ts +0 -385
  1123. package/projects/wt-front-shared/src/lib/core/+state/static-data/static-data.selectors.ts +0 -83
  1124. package/projects/wt-front-shared/src/lib/core/+state/tags/behavios/tag-entities-load-behavior.ts +0 -77
  1125. package/projects/wt-front-shared/src/lib/core/+state/tags/behavios/tags-load-behavior.ts +0 -53
  1126. package/projects/wt-front-shared/src/lib/core/+state/tags/tags.actions.ts +0 -59
  1127. package/projects/wt-front-shared/src/lib/core/+state/tags/tags.effects.ts +0 -60
  1128. package/projects/wt-front-shared/src/lib/core/+state/tags/tags.facade.ts +0 -45
  1129. package/projects/wt-front-shared/src/lib/core/+state/tags/tags.reducer.ts +0 -54
  1130. package/projects/wt-front-shared/src/lib/core/+state/tags/tags.selectors.ts +0 -70
  1131. package/projects/wt-front-shared/src/lib/core/+state/uiUnits/uiUnits.actions.ts +0 -14
  1132. package/projects/wt-front-shared/src/lib/core/+state/uiUnits/uiUnits.effects.ts +0 -28
  1133. package/projects/wt-front-shared/src/lib/core/+state/uiUnits/uiUnits.facade.ts +0 -22
  1134. package/projects/wt-front-shared/src/lib/core/+state/uiUnits/uiUnits.reducer.ts +0 -36
  1135. package/projects/wt-front-shared/src/lib/core/+state/uiUnits/uiUnits.selectors.ts +0 -48
  1136. package/projects/wt-front-shared/src/lib/core/+state/update-entities/update-entities.actions.ts +0 -18
  1137. package/projects/wt-front-shared/src/lib/core/+state/update-entities/update-entities.effects.ts +0 -38
  1138. package/projects/wt-front-shared/src/lib/core/+state/users/behavios/login-send-behavior.ts +0 -53
  1139. package/projects/wt-front-shared/src/lib/core/+state/users/behavios/refresh-token-behavior.ts +0 -58
  1140. package/projects/wt-front-shared/src/lib/core/+state/users/users.actions.ts +0 -96
  1141. package/projects/wt-front-shared/src/lib/core/+state/users/users.effects.ts +0 -211
  1142. package/projects/wt-front-shared/src/lib/core/+state/users/users.facade.ts +0 -42
  1143. package/projects/wt-front-shared/src/lib/core/+state/users/users.reducer.ts +0 -55
  1144. package/projects/wt-front-shared/src/lib/core/+state/users/users.selectors.ts +0 -37
  1145. package/projects/wt-front-shared/src/lib/core/animations/appearFromLeft.ts +0 -20
  1146. package/projects/wt-front-shared/src/lib/core/animations/appearFromLeftHideToRight.ts +0 -20
  1147. package/projects/wt-front-shared/src/lib/core/animations/appearFromLeftWithDelay.ts +0 -20
  1148. package/projects/wt-front-shared/src/lib/core/animations/appearFromRight.ts +0 -20
  1149. package/projects/wt-front-shared/src/lib/core/animations/appearFromRightWithDelay.ts +0 -20
  1150. package/projects/wt-front-shared/src/lib/core/animations/appearOpacity.ts +0 -20
  1151. package/projects/wt-front-shared/src/lib/core/animations/appearOpacity2.ts +0 -18
  1152. package/projects/wt-front-shared/src/lib/core/animations/expandCollapse.ts +0 -20
  1153. package/projects/wt-front-shared/src/lib/core/animations/hideToTopOpacity.ts +0 -12
  1154. package/projects/wt-front-shared/src/lib/core/components/access-denied/access-denied.component.html +0 -6
  1155. package/projects/wt-front-shared/src/lib/core/components/access-denied/access-denied.component.scss +0 -0
  1156. package/projects/wt-front-shared/src/lib/core/components/access-denied/access-denied.component.spec.ts +0 -25
  1157. package/projects/wt-front-shared/src/lib/core/components/access-denied/access-denied.component.ts +0 -12
  1158. package/projects/wt-front-shared/src/lib/core/components/access-denied/access-denied.module.ts +0 -10
  1159. package/projects/wt-front-shared/src/lib/core/components/auto-form/auto-form.module.ts +0 -119
  1160. package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-file/form-field-file.component.html +0 -37
  1161. package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-file/form-field-file.component.scss +0 -110
  1162. package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-file/form-field-file.component.spec.ts +0 -25
  1163. package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-file/form-field-file.component.ts +0 -173
  1164. package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-file-show/form-field-file-show.component.html +0 -16
  1165. package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-file-show/form-field-file-show.component.scss +0 -82
  1166. package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-file-show/form-field-file-show.component.spec.ts +0 -25
  1167. package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-file-show/form-field-file-show.component.ts +0 -42
  1168. package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-files/form-field-files.component.html +0 -17
  1169. package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-files/form-field-files.component.scss +0 -74
  1170. package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-files/form-field-files.component.spec.ts +0 -25
  1171. package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-files/form-field-files.component.ts +0 -107
  1172. package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-files-show/form-field-files-show.component.html +0 -16
  1173. package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-files-show/form-field-files-show.component.scss +0 -11
  1174. package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-files-show/form-field-files-show.component.spec.ts +0 -25
  1175. package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-files-show/form-field-files-show.component.ts +0 -67
  1176. package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-input/form-field-input.component.html +0 -36
  1177. package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-input/form-field-input.component.scss +0 -23
  1178. package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-input/form-field-input.component.spec.ts +0 -25
  1179. package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-input/form-field-input.component.ts +0 -84
  1180. package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-input-show/form-field-input-show.component.html +0 -8
  1181. package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-input-show/form-field-input-show.component.scss +0 -1
  1182. package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-input-show/form-field-input-show.component.spec.ts +0 -25
  1183. package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-input-show/form-field-input-show.component.ts +0 -44
  1184. package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-select/form-field-select.component.html +0 -36
  1185. package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-select/form-field-select.component.scss +0 -6
  1186. package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-select/form-field-select.component.ts +0 -232
  1187. package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-select-show/form-field-select-show.component.html +0 -4
  1188. package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-select-show/form-field-select-show.component.scss +0 -4
  1189. package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-select-show/form-field-select-show.component.ts +0 -65
  1190. package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-slide-toggle/form-field-slide-toggle.component.html +0 -7
  1191. package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-slide-toggle/form-field-slide-toggle.component.scss +0 -0
  1192. package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-slide-toggle/form-field-slide-toggle.component.ts +0 -15
  1193. package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-slide-toggle-show/form-field-slide-toggle-show.component.html +0 -9
  1194. package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-slide-toggle-show/form-field-slide-toggle-show.component.scss +0 -0
  1195. package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-slide-toggle-show/form-field-slide-toggle-show.component.ts +0 -19
  1196. package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-spinner/form-field-spinner.component.html +0 -3
  1197. package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-spinner/form-field-spinner.component.scss +0 -10
  1198. package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-spinner/form-field-spinner.component.ts +0 -10
  1199. package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-tags/form-field-tags.component.html +0 -29
  1200. package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-tags/form-field-tags.component.scss +0 -23
  1201. package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-tags/form-field-tags.component.spec.ts +0 -25
  1202. package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-field-tags/form-field-tags.component.ts +0 -130
  1203. package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-message-box/form-message-box.component.html +0 -8
  1204. package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-message-box/form-message-box.component.scss +0 -0
  1205. package/projects/wt-front-shared/src/lib/core/components/auto-form/components/form-message-box/form-message-box.component.ts +0 -119
  1206. package/projects/wt-front-shared/src/lib/core/components/auto-form/constants/errors.ts +0 -36
  1207. package/projects/wt-front-shared/src/lib/core/components/auto-form/containers/auto-form-main/auto-form-main.component.html +0 -64
  1208. package/projects/wt-front-shared/src/lib/core/components/auto-form/containers/auto-form-main/auto-form-main.component.scss +0 -27
  1209. package/projects/wt-front-shared/src/lib/core/components/auto-form/containers/auto-form-main/auto-form-main.component.ts +0 -229
  1210. package/projects/wt-front-shared/src/lib/core/components/auto-form/containers/auto-form-show/auto-form-show.component.html +0 -21
  1211. package/projects/wt-front-shared/src/lib/core/components/auto-form/containers/auto-form-show/auto-form-show.component.scss +0 -21
  1212. package/projects/wt-front-shared/src/lib/core/components/auto-form/containers/auto-form-show/auto-form-show.component.ts +0 -50
  1213. package/projects/wt-front-shared/src/lib/core/components/auto-form/containers/auto-form-show-field/auto-form-show-field.component.html +0 -51
  1214. package/projects/wt-front-shared/src/lib/core/components/auto-form/containers/auto-form-show-field/auto-form-show-field.component.scss +0 -27
  1215. package/projects/wt-front-shared/src/lib/core/components/auto-form/containers/auto-form-show-field/auto-form-show-field.component.ts +0 -49
  1216. package/projects/wt-front-shared/src/lib/core/components/auto-form/containers/form-field/form-field.component.html +0 -112
  1217. package/projects/wt-front-shared/src/lib/core/components/auto-form/containers/form-field/form-field.component.scss +0 -43
  1218. package/projects/wt-front-shared/src/lib/core/components/auto-form/containers/form-field/form-field.component.ts +0 -161
  1219. package/projects/wt-front-shared/src/lib/core/components/auto-form/containers/form-field-store-state/form-field-store-state.component.html +0 -75
  1220. package/projects/wt-front-shared/src/lib/core/components/auto-form/containers/form-field-store-state/form-field-store-state.component.scss +0 -40
  1221. package/projects/wt-front-shared/src/lib/core/components/auto-form/containers/form-field-store-state/form-field-store-state.component.ts +0 -106
  1222. package/projects/wt-front-shared/src/lib/core/components/auto-form/containers/publish-messages/publish-messages.component.html +0 -47
  1223. package/projects/wt-front-shared/src/lib/core/components/auto-form/containers/publish-messages/publish-messages.component.scss +0 -42
  1224. package/projects/wt-front-shared/src/lib/core/components/auto-form/containers/publish-messages/publish-messages.component.spec.ts +0 -25
  1225. package/projects/wt-front-shared/src/lib/core/components/auto-form/containers/publish-messages/publish-messages.component.ts +0 -145
  1226. package/projects/wt-front-shared/src/lib/core/components/auto-form/interfaces/base-async-validators-type.ts +0 -2
  1227. package/projects/wt-front-shared/src/lib/core/components/auto-form/interfaces/field-type.ts +0 -12
  1228. package/projects/wt-front-shared/src/lib/core/components/auto-form/interfaces/form-field-format.ts +0 -7
  1229. package/projects/wt-front-shared/src/lib/core/components/auto-form/interfaces/form-field-option.ts +0 -4
  1230. package/projects/wt-front-shared/src/lib/core/components/auto-form/interfaces/form-field.ts +0 -63
  1231. package/projects/wt-front-shared/src/lib/core/components/auto-form/interfaces/form-state.ts +0 -4
  1232. package/projects/wt-front-shared/src/lib/core/components/auto-form/interfaces/input-type.ts +0 -9
  1233. package/projects/wt-front-shared/src/lib/core/components/bread-crumbs/bread-crumbs.component.html +0 -10
  1234. package/projects/wt-front-shared/src/lib/core/components/bread-crumbs/bread-crumbs.component.scss +0 -9
  1235. package/projects/wt-front-shared/src/lib/core/components/bread-crumbs/bread-crumbs.component.ts +0 -20
  1236. package/projects/wt-front-shared/src/lib/core/components/bread-crumbs/bread-crumbs.module.ts +0 -13
  1237. package/projects/wt-front-shared/src/lib/core/components/button/button.component.html +0 -121
  1238. package/projects/wt-front-shared/src/lib/core/components/button/button.component.scss +0 -18
  1239. package/projects/wt-front-shared/src/lib/core/components/button/button.component.spec.ts +0 -24
  1240. package/projects/wt-front-shared/src/lib/core/components/button/button.component.ts +0 -112
  1241. package/projects/wt-front-shared/src/lib/core/components/button/button.module.ts +0 -23
  1242. package/projects/wt-front-shared/src/lib/core/components/button/button.stories.ts +0 -132
  1243. package/projects/wt-front-shared/src/lib/core/components/button/index.ts +0 -2
  1244. package/projects/wt-front-shared/src/lib/core/components/chips-input/chips-input.component.html +0 -51
  1245. package/projects/wt-front-shared/src/lib/core/components/chips-input/chips-input.component.scss +0 -7
  1246. package/projects/wt-front-shared/src/lib/core/components/chips-input/chips-input.component.ts +0 -97
  1247. package/projects/wt-front-shared/src/lib/core/components/chips-input/chips-input.module.ts +0 -26
  1248. package/projects/wt-front-shared/src/lib/core/components/files-upload/constants.ts +0 -15
  1249. package/projects/wt-front-shared/src/lib/core/components/files-upload/file-list-card/file-list-card.component.html +0 -73
  1250. package/projects/wt-front-shared/src/lib/core/components/files-upload/file-list-card/file-list-card.component.scss +0 -248
  1251. package/projects/wt-front-shared/src/lib/core/components/files-upload/file-list-card/file-list-card.component.ts +0 -150
  1252. package/projects/wt-front-shared/src/lib/core/components/files-upload/files-upload/files-upload.component.html +0 -51
  1253. package/projects/wt-front-shared/src/lib/core/components/files-upload/files-upload/files-upload.component.scss +0 -61
  1254. package/projects/wt-front-shared/src/lib/core/components/files-upload/files-upload/files-upload.component.ts +0 -92
  1255. package/projects/wt-front-shared/src/lib/core/components/files-upload/files-upload-list-images/files-upload-list-images.component.html +0 -24
  1256. package/projects/wt-front-shared/src/lib/core/components/files-upload/files-upload-list-images/files-upload-list-images.component.scss +0 -125
  1257. package/projects/wt-front-shared/src/lib/core/components/files-upload/files-upload-list-images/files-upload-list-images.component.ts +0 -103
  1258. package/projects/wt-front-shared/src/lib/core/components/files-upload/files-upload.module.ts +0 -43
  1259. package/projects/wt-front-shared/src/lib/core/components/files-upload/table-files-uploading/table-files-uploading.component.html +0 -96
  1260. package/projects/wt-front-shared/src/lib/core/components/files-upload/table-files-uploading/table-files-uploading.component.scss +0 -44
  1261. package/projects/wt-front-shared/src/lib/core/components/files-upload/table-files-uploading/table-files-uploading.component.spec.ts +0 -25
  1262. package/projects/wt-front-shared/src/lib/core/components/files-upload/table-files-uploading/table-files-uploading.component.ts +0 -129
  1263. package/projects/wt-front-shared/src/lib/core/components/form-field-error/form-field-error.component.html +0 -3
  1264. package/projects/wt-front-shared/src/lib/core/components/form-field-error/form-field-error.component.scss +0 -0
  1265. package/projects/wt-front-shared/src/lib/core/components/form-field-error/form-field-error.component.ts +0 -89
  1266. package/projects/wt-front-shared/src/lib/core/components/form-field-error/form-field-error.module.ts +0 -19
  1267. package/projects/wt-front-shared/src/lib/core/components/form-field-publish-error/form-field-publish-error.component.html +0 -13
  1268. package/projects/wt-front-shared/src/lib/core/components/form-field-publish-error/form-field-publish-error.component.scss +0 -0
  1269. package/projects/wt-front-shared/src/lib/core/components/form-field-publish-error/form-field-publish-error.component.ts +0 -71
  1270. package/projects/wt-front-shared/src/lib/core/components/form-field-publish-error/form-field-publish-error.module.ts +0 -18
  1271. package/projects/wt-front-shared/src/lib/core/components/header/header.component.html +0 -24
  1272. package/projects/wt-front-shared/src/lib/core/components/header/header.component.scss +0 -14
  1273. package/projects/wt-front-shared/src/lib/core/components/header/header.component.ts +0 -19
  1274. package/projects/wt-front-shared/src/lib/core/components/header/header.module.ts +0 -15
  1275. package/projects/wt-front-shared/src/lib/core/components/icon/icon.component.html +0 -3
  1276. package/projects/wt-front-shared/src/lib/core/components/icon/icon.component.scss +0 -26
  1277. package/projects/wt-front-shared/src/lib/core/components/icon/icon.component.spec.ts +0 -24
  1278. package/projects/wt-front-shared/src/lib/core/components/icon/icon.component.ts +0 -38
  1279. package/projects/wt-front-shared/src/lib/core/components/icon/icon.module.ts +0 -15
  1280. package/projects/wt-front-shared/src/lib/core/components/image/image.component.html +0 -16
  1281. package/projects/wt-front-shared/src/lib/core/components/image/image.component.scss +0 -108
  1282. package/projects/wt-front-shared/src/lib/core/components/image/image.component.ts +0 -65
  1283. package/projects/wt-front-shared/src/lib/core/components/image/image.module.ts +0 -16
  1284. package/projects/wt-front-shared/src/lib/core/components/index.ts +0 -1
  1285. package/projects/wt-front-shared/src/lib/core/components/input-tags/input-tags.component.html +0 -8
  1286. package/projects/wt-front-shared/src/lib/core/components/input-tags/input-tags.component.scss +0 -0
  1287. package/projects/wt-front-shared/src/lib/core/components/input-tags/input-tags.component.ts +0 -33
  1288. package/projects/wt-front-shared/src/lib/core/components/input-tags/input-tags.module.ts +0 -15
  1289. package/projects/wt-front-shared/src/lib/core/components/pagination/pagination.component.html +0 -10
  1290. package/projects/wt-front-shared/src/lib/core/components/pagination/pagination.component.scss +0 -32
  1291. package/projects/wt-front-shared/src/lib/core/components/pagination/pagination.component.ts +0 -49
  1292. package/projects/wt-front-shared/src/lib/core/components/pagination/pagination.module.ts +0 -18
  1293. package/projects/wt-front-shared/src/lib/core/components/panel/panel.component.html +0 -20
  1294. package/projects/wt-front-shared/src/lib/core/components/panel/panel.component.scss +0 -0
  1295. package/projects/wt-front-shared/src/lib/core/components/panel/panel.component.spec.ts +0 -25
  1296. package/projects/wt-front-shared/src/lib/core/components/panel/panel.component.ts +0 -33
  1297. package/projects/wt-front-shared/src/lib/core/components/panel/panel.module.ts +0 -17
  1298. package/projects/wt-front-shared/src/lib/core/components/panel-header/panel-header.component.html +0 -45
  1299. package/projects/wt-front-shared/src/lib/core/components/panel-header/panel-header.component.scss +0 -8
  1300. package/projects/wt-front-shared/src/lib/core/components/panel-header/panel-header.component.spec.ts +0 -25
  1301. package/projects/wt-front-shared/src/lib/core/components/panel-header/panel-header.component.ts +0 -19
  1302. package/projects/wt-front-shared/src/lib/core/components/panel-header/panel-header.module.ts +0 -25
  1303. package/projects/wt-front-shared/src/lib/core/components/smart-progress-bar/smart-progress-bar.component.html +0 -18
  1304. package/projects/wt-front-shared/src/lib/core/components/smart-progress-bar/smart-progress-bar.component.scss +0 -57
  1305. package/projects/wt-front-shared/src/lib/core/components/smart-progress-bar/smart-progress-bar.component.ts +0 -13
  1306. package/projects/wt-front-shared/src/lib/core/components/smart-progress-bar/smart-progress-bar.module.ts +0 -11
  1307. package/projects/wt-front-shared/src/lib/core/components/spinner/spinner.component.html +0 -13
  1308. package/projects/wt-front-shared/src/lib/core/components/spinner/spinner.component.scss +0 -22
  1309. package/projects/wt-front-shared/src/lib/core/components/spinner/spinner.component.ts +0 -18
  1310. package/projects/wt-front-shared/src/lib/core/components/spinner/spinner.module.ts +0 -16
  1311. package/projects/wt-front-shared/src/lib/core/components/star-rating/star-rating.component.html +0 -12
  1312. package/projects/wt-front-shared/src/lib/core/components/star-rating/star-rating.component.scss +0 -27
  1313. package/projects/wt-front-shared/src/lib/core/components/star-rating/star-rating.component.spec.ts +0 -25
  1314. package/projects/wt-front-shared/src/lib/core/components/star-rating/star-rating.component.ts +0 -22
  1315. package/projects/wt-front-shared/src/lib/core/components/star-rating/star-rating.module.ts +0 -14
  1316. package/projects/wt-front-shared/src/lib/core/components/sticky-sidebar/index.ts +0 -1
  1317. package/projects/wt-front-shared/src/lib/core/components/sticky-sidebar/sticky-sidebar.directive.ts +0 -555
  1318. package/projects/wt-front-shared/src/lib/core/components/sticky-sidebar/sticky-sidebar.module.ts +0 -29
  1319. package/projects/wt-front-shared/src/lib/core/components/table-menu/table-menu.component.css +0 -0
  1320. package/projects/wt-front-shared/src/lib/core/components/table-menu/table-menu.component.html +0 -11
  1321. package/projects/wt-front-shared/src/lib/core/components/table-menu/table-menu.component.ts +0 -24
  1322. package/projects/wt-front-shared/src/lib/core/components/table-menu/table-menu.module.ts +0 -21
  1323. package/projects/wt-front-shared/src/lib/core/components/tag-cloud/tag-cloud.component.html +0 -9
  1324. package/projects/wt-front-shared/src/lib/core/components/tag-cloud/tag-cloud.component.scss +0 -3
  1325. package/projects/wt-front-shared/src/lib/core/components/tag-cloud/tag-cloud.component.ts +0 -37
  1326. package/projects/wt-front-shared/src/lib/core/components/tag-cloud/tag-cloud.module.ts +0 -17
  1327. package/projects/wt-front-shared/src/lib/core/components/text-with-link-more/text-with-link-more.component.html +0 -9
  1328. package/projects/wt-front-shared/src/lib/core/components/text-with-link-more/text-with-link-more.component.scss +0 -54
  1329. package/projects/wt-front-shared/src/lib/core/components/text-with-link-more/text-with-link-more.component.ts +0 -39
  1330. package/projects/wt-front-shared/src/lib/core/components/text-with-link-more/text-with-link-more.module.ts +0 -15
  1331. package/projects/wt-front-shared/src/lib/core/config/app-config.ts +0 -17
  1332. package/projects/wt-front-shared/src/lib/core/constants/async-validators-messages.ts +0 -14
  1333. package/projects/wt-front-shared/src/lib/core/constants/async-validators-type.ts +0 -10
  1334. package/projects/wt-front-shared/src/lib/core/constants/base-errors.const.ts +0 -9
  1335. package/projects/wt-front-shared/src/lib/core/constants/constants.ts +0 -6
  1336. package/projects/wt-front-shared/src/lib/core/constants/form-errors.const.ts +0 -5
  1337. package/projects/wt-front-shared/src/lib/core/constants/global-errors-messages.ts +0 -9
  1338. package/projects/wt-front-shared/src/lib/core/constants/main.const.ts +0 -5
  1339. package/projects/wt-front-shared/src/lib/core/constants/publish-errors.const.ts +0 -41
  1340. package/projects/wt-front-shared/src/lib/core/constants/validators-type.ts +0 -9
  1341. package/projects/wt-front-shared/src/lib/core/dialogs/common-dialog/common-dialog.component.html +0 -28
  1342. package/projects/wt-front-shared/src/lib/core/dialogs/common-dialog/common-dialog.component.scss +0 -43
  1343. package/projects/wt-front-shared/src/lib/core/dialogs/common-dialog/common-dialog.component.ts +0 -51
  1344. package/projects/wt-front-shared/src/lib/core/dialogs/delete/delete.component.css +0 -0
  1345. package/projects/wt-front-shared/src/lib/core/dialogs/delete/delete.component.html +0 -10
  1346. package/projects/wt-front-shared/src/lib/core/dialogs/delete/delete.component.ts +0 -33
  1347. package/projects/wt-front-shared/src/lib/core/dialogs/dialog.service.ts +0 -22
  1348. package/projects/wt-front-shared/src/lib/core/dialogs/dialogs.module.ts +0 -24
  1349. package/projects/wt-front-shared/src/lib/core/dialogs/index.ts +0 -2
  1350. package/projects/wt-front-shared/src/lib/core/index.ts +0 -14
  1351. package/projects/wt-front-shared/src/lib/core/interceptors/headers.interceptor.ts +0 -275
  1352. package/projects/wt-front-shared/src/lib/core/interceptors/jwt.interceptor.ts +0 -24
  1353. package/projects/wt-front-shared/src/lib/core/layout/components/chat-panel/chat-panel.component.html +0 -138
  1354. package/projects/wt-front-shared/src/lib/core/layout/components/chat-panel/chat-panel.component.scss +0 -432
  1355. package/projects/wt-front-shared/src/lib/core/layout/components/chat-panel/chat-panel.component.ts +0 -265
  1356. package/projects/wt-front-shared/src/lib/core/layout/components/chat-panel/chat-panel.module.ts +0 -39
  1357. package/projects/wt-front-shared/src/lib/core/layout/components/chat-panel/chat-panel.service.ts +0 -164
  1358. package/projects/wt-front-shared/src/lib/core/layout/components/chat-panel/chat-panel.theme.scss +0 -82
  1359. package/projects/wt-front-shared/src/lib/core/layout/components/content/content.component.html +0 -6
  1360. package/projects/wt-front-shared/src/lib/core/layout/components/content/content.component.scss +0 -13
  1361. package/projects/wt-front-shared/src/lib/core/layout/components/content/content.component.ts +0 -17
  1362. package/projects/wt-front-shared/src/lib/core/layout/components/content/content.module.ts +0 -21
  1363. package/projects/wt-front-shared/src/lib/core/layout/components/footer/footer.component.html +0 -20
  1364. package/projects/wt-front-shared/src/lib/core/layout/components/footer/footer.component.scss +0 -16
  1365. package/projects/wt-front-shared/src/lib/core/layout/components/footer/footer.component.ts +0 -16
  1366. package/projects/wt-front-shared/src/lib/core/layout/components/footer/footer.module.ts +0 -29
  1367. package/projects/wt-front-shared/src/lib/core/layout/components/navbar/horizontal/style-1/style-1.component.html +0 -3
  1368. package/projects/wt-front-shared/src/lib/core/layout/components/navbar/horizontal/style-1/style-1.component.scss +0 -16
  1369. package/projects/wt-front-shared/src/lib/core/layout/components/navbar/horizontal/style-1/style-1.component.ts +0 -72
  1370. package/projects/wt-front-shared/src/lib/core/layout/components/navbar/horizontal/style-1/style-1.module.ts +0 -25
  1371. package/projects/wt-front-shared/src/lib/core/layout/components/navbar/navbar.component.html +0 -11
  1372. package/projects/wt-front-shared/src/lib/core/layout/components/navbar/navbar.component.scss +0 -3
  1373. package/projects/wt-front-shared/src/lib/core/layout/components/navbar/navbar.component.ts +0 -50
  1374. package/projects/wt-front-shared/src/lib/core/layout/components/navbar/navbar.module.ts +0 -26
  1375. package/projects/wt-front-shared/src/lib/core/layout/components/navbar/vertical/style-1/style-1.component.html +0 -45
  1376. package/projects/wt-front-shared/src/lib/core/layout/components/navbar/vertical/style-1/style-1.component.scss +0 -192
  1377. package/projects/wt-front-shared/src/lib/core/layout/components/navbar/vertical/style-1/style-1.component.ts +0 -157
  1378. package/projects/wt-front-shared/src/lib/core/layout/components/navbar/vertical/style-1/style-1.module.ts +0 -26
  1379. package/projects/wt-front-shared/src/lib/core/layout/components/navbar/vertical/style-2/style-2.component.html +0 -23
  1380. package/projects/wt-front-shared/src/lib/core/layout/components/navbar/vertical/style-2/style-2.component.scss +0 -107
  1381. package/projects/wt-front-shared/src/lib/core/layout/components/navbar/vertical/style-2/style-2.component.ts +0 -154
  1382. package/projects/wt-front-shared/src/lib/core/layout/components/navbar/vertical/style-2/style-2.module.ts +0 -26
  1383. package/projects/wt-front-shared/src/lib/core/layout/components/quick-panel/quick-panel.component.html +0 -76
  1384. package/projects/wt-front-shared/src/lib/core/layout/components/quick-panel/quick-panel.component.scss +0 -13
  1385. package/projects/wt-front-shared/src/lib/core/layout/components/quick-panel/quick-panel.component.ts +0 -72
  1386. package/projects/wt-front-shared/src/lib/core/layout/components/quick-panel/quick-panel.module.ts +0 -26
  1387. package/projects/wt-front-shared/src/lib/core/layout/components/toolbar/toolbar.component.html +0 -130
  1388. package/projects/wt-front-shared/src/lib/core/layout/components/toolbar/toolbar.component.scss +0 -53
  1389. package/projects/wt-front-shared/src/lib/core/layout/components/toolbar/toolbar.component.ts +0 -142
  1390. package/projects/wt-front-shared/src/lib/core/layout/components/toolbar/toolbar.module.ts +0 -32
  1391. package/projects/wt-front-shared/src/lib/core/layout/components/toolbar/toolbar.theme.scss +0 -11
  1392. package/projects/wt-front-shared/src/lib/core/layout/horizontal/layout-1/layout-1.component.html +0 -129
  1393. package/projects/wt-front-shared/src/lib/core/layout/horizontal/layout-1/layout-1.component.scss +0 -62
  1394. package/projects/wt-front-shared/src/lib/core/layout/horizontal/layout-1/layout-1.component.ts +0 -62
  1395. package/projects/wt-front-shared/src/lib/core/layout/horizontal/layout-1/layout-1.module.ts +0 -38
  1396. package/projects/wt-front-shared/src/lib/core/layout/layout.module.ts +0 -26
  1397. package/projects/wt-front-shared/src/lib/core/layout/vertical/layout-1/layout-1.component.html +0 -141
  1398. package/projects/wt-front-shared/src/lib/core/layout/vertical/layout-1/layout-1.component.scss +0 -62
  1399. package/projects/wt-front-shared/src/lib/core/layout/vertical/layout-1/layout-1.component.ts +0 -77
  1400. package/projects/wt-front-shared/src/lib/core/layout/vertical/layout-1/layout-1.module.ts +0 -37
  1401. package/projects/wt-front-shared/src/lib/core/layout/vertical/layout-2/layout-2.component.html +0 -144
  1402. package/projects/wt-front-shared/src/lib/core/layout/vertical/layout-2/layout-2.component.scss +0 -48
  1403. package/projects/wt-front-shared/src/lib/core/layout/vertical/layout-2/layout-2.component.ts +0 -62
  1404. package/projects/wt-front-shared/src/lib/core/layout/vertical/layout-2/layout-2.module.ts +0 -38
  1405. package/projects/wt-front-shared/src/lib/core/layout/vertical/layout-3/layout-3.component.html +0 -130
  1406. package/projects/wt-front-shared/src/lib/core/layout/vertical/layout-3/layout-3.component.scss +0 -49
  1407. package/projects/wt-front-shared/src/lib/core/layout/vertical/layout-3/layout-3.component.ts +0 -62
  1408. package/projects/wt-front-shared/src/lib/core/layout/vertical/layout-3/layout-3.module.ts +0 -37
  1409. package/projects/wt-front-shared/src/lib/core/models/action-payload.ts +0 -5
  1410. package/projects/wt-front-shared/src/lib/core/models/entity.ts +0 -4
  1411. package/projects/wt-front-shared/src/lib/core/models/form-error.ts +0 -7
  1412. package/projects/wt-front-shared/src/lib/core/models/form-ui-unit-names.ts +0 -25
  1413. package/projects/wt-front-shared/src/lib/core/models/form-ui-unit.ts +0 -12
  1414. package/projects/wt-front-shared/src/lib/core/models/form-validation.ts +0 -7
  1415. package/projects/wt-front-shared/src/lib/core/models/forms/form-value.ts +0 -1
  1416. package/projects/wt-front-shared/src/lib/core/models/forms/image-form-value.ts +0 -11
  1417. package/projects/wt-front-shared/src/lib/core/models/forms/index.ts +0 -2
  1418. package/projects/wt-front-shared/src/lib/core/models/forms.ts +0 -12
  1419. package/projects/wt-front-shared/src/lib/core/models/http-client-result.ts +0 -6
  1420. package/projects/wt-front-shared/src/lib/core/models/index.ts +0 -13
  1421. package/projects/wt-front-shared/src/lib/core/models/meta-data.model.ts +0 -5
  1422. package/projects/wt-front-shared/src/lib/core/models/storage.ts +0 -7
  1423. package/projects/wt-front-shared/src/lib/core/models/ui-unit-types.ts +0 -23
  1424. package/projects/wt-front-shared/src/lib/core/models/ui-unit.ts +0 -14
  1425. package/projects/wt-front-shared/src/lib/core/modules/dialogs/components/delete/delete.component.css +0 -0
  1426. package/projects/wt-front-shared/src/lib/core/modules/dialogs/components/delete/delete.component.html +0 -8
  1427. package/projects/wt-front-shared/src/lib/core/modules/dialogs/components/delete/delete.component.ts +0 -31
  1428. package/projects/wt-front-shared/src/lib/core/modules/dialogs/dialogs.module.ts +0 -13
  1429. package/projects/wt-front-shared/src/lib/core/pipes/count-format.pipe.ts +0 -28
  1430. package/projects/wt-front-shared/src/lib/core/pipes/date-format.pipe.ts +0 -14
  1431. package/projects/wt-front-shared/src/lib/core/pipes/phone.pipe.ts +0 -24
  1432. package/projects/wt-front-shared/src/lib/core/pipes/pipes.module.ts +0 -28
  1433. package/projects/wt-front-shared/src/lib/core/pipes/safe.pipe.ts +0 -26
  1434. package/projects/wt-front-shared/src/lib/core/services/actions/actions-api.ts +0 -32
  1435. package/projects/wt-front-shared/src/lib/core/services/actions/actions-helper.services.ts +0 -97
  1436. package/projects/wt-front-shared/src/lib/core/services/actions/actions.service.ts +0 -35
  1437. package/projects/wt-front-shared/src/lib/core/services/async-validation.service.ts +0 -5
  1438. package/projects/wt-front-shared/src/lib/core/services/auth/authentication.service.ts +0 -104
  1439. package/projects/wt-front-shared/src/lib/core/services/auto-form/async-validation.service.ts +0 -27
  1440. package/projects/wt-front-shared/src/lib/core/services/auto-form/auto-form.service.ts +0 -176
  1441. package/projects/wt-front-shared/src/lib/core/services/base/base-api-service.ts +0 -303
  1442. package/projects/wt-front-shared/src/lib/core/services/base/base-api.ts +0 -10
  1443. package/projects/wt-front-shared/src/lib/core/services/base/index.ts +0 -3
  1444. package/projects/wt-front-shared/src/lib/core/services/base-auto-form/base-auto-form.service.ts +0 -74
  1445. package/projects/wt-front-shared/src/lib/core/services/cache-data/cache-data-api.ts +0 -31
  1446. package/projects/wt-front-shared/src/lib/core/services/cache-data/cache-data.service.ts +0 -33
  1447. package/projects/wt-front-shared/src/lib/core/services/cookies/browser/browser-cookies.service.ts +0 -77
  1448. package/projects/wt-front-shared/src/lib/core/services/cookies/cookies-options.ts +0 -11
  1449. package/projects/wt-front-shared/src/lib/core/services/cookies/cookies-provider.ts +0 -19
  1450. package/projects/wt-front-shared/src/lib/core/services/cookies/cookies.service.ts +0 -63
  1451. package/projects/wt-front-shared/src/lib/core/services/cookies/utils.ts +0 -42
  1452. package/projects/wt-front-shared/src/lib/core/services/files/files-api.ts +0 -67
  1453. package/projects/wt-front-shared/src/lib/core/services/files/files.service.ts +0 -49
  1454. package/projects/wt-front-shared/src/lib/core/services/form-delete-file/form-delete-file-api.ts +0 -38
  1455. package/projects/wt-front-shared/src/lib/core/services/form-delete-file/form-delete-file.service.ts +0 -34
  1456. package/projects/wt-front-shared/src/lib/core/services/form-validation/form-validation-api.ts +0 -40
  1457. package/projects/wt-front-shared/src/lib/core/services/form-validation/form-validation.service.ts +0 -33
  1458. package/projects/wt-front-shared/src/lib/core/services/index.ts +0 -4
  1459. package/projects/wt-front-shared/src/lib/core/services/model-services/tags/tags-api.ts +0 -31
  1460. package/projects/wt-front-shared/src/lib/core/services/model-services/tags/tags.service.ts +0 -33
  1461. package/projects/wt-front-shared/src/lib/core/services/publish/publish-api.ts +0 -45
  1462. package/projects/wt-front-shared/src/lib/core/services/publish/publish.service.ts +0 -38
  1463. package/projects/wt-front-shared/src/lib/core/services/reducer/reducer.service.ts +0 -68
  1464. package/projects/wt-front-shared/src/lib/core/services/reports/reports-api.ts +0 -38
  1465. package/projects/wt-front-shared/src/lib/core/services/reports/reports.service.ts +0 -38
  1466. package/projects/wt-front-shared/src/lib/core/services/router/router.service.ts +0 -17
  1467. package/projects/wt-front-shared/src/lib/core/services/social/index.ts +0 -3
  1468. package/projects/wt-front-shared/src/lib/core/services/social/providers/base-login-provider.ts +0 -40
  1469. package/projects/wt-front-shared/src/lib/core/services/social/providers/fb-login-provider.ts +0 -112
  1470. package/projects/wt-front-shared/src/lib/core/services/social/providers/index.ts +0 -3
  1471. package/projects/wt-front-shared/src/lib/core/services/social/providers/login-provider.ts +0 -8
  1472. package/projects/wt-front-shared/src/lib/core/services/social/social-auth-service-config.ts +0 -18
  1473. package/projects/wt-front-shared/src/lib/core/services/social/social-auth-service.ts +0 -80
  1474. package/projects/wt-front-shared/src/lib/core/services/static-data/static-data-api.ts +0 -60
  1475. package/projects/wt-front-shared/src/lib/core/services/static-data/static-data-helper.services.ts +0 -97
  1476. package/projects/wt-front-shared/src/lib/core/services/static-data/static-data.service.ts +0 -65
  1477. package/projects/wt-front-shared/src/lib/core/services/storage/storage.service.ts +0 -37
  1478. package/projects/wt-front-shared/src/lib/core/services/users/users-api.ts +0 -51
  1479. package/projects/wt-front-shared/src/lib/core/services/users/users.service.ts +0 -33
  1480. package/projects/wt-front-shared/src/lib/core/tokens/index.ts +0 -8
  1481. package/projects/wt-front-shared/src/lib/core/utils/component-destroyed.ts +0 -28
  1482. package/projects/wt-front-shared/src/lib/core/utils/guid.ts +0 -9
  1483. package/projects/wt-front-shared/src/lib/core/utils/track-by.ts +0 -3
  1484. package/projects/wt-front-shared/src/lib/core/validations/form-validations.ts +0 -82
  1485. package/projects/wt-front-shared/src/lib/core/validations/index.ts +0 -2
  1486. package/projects/wt-front-shared/src/lib/core/validations/rules.ts +0 -16
  1487. package/projects/wt-front-shared/src/lib/models/config/app-config.ts +0 -9
  1488. package/projects/wt-front-shared/src/lib/models/embeds/embed-model.ts +0 -7
  1489. package/projects/wt-front-shared/src/lib/models/endpoints/actions/actions-endpoint-types.ts +0 -3
  1490. package/projects/wt-front-shared/src/lib/models/endpoints/actions/actions-request-config.ts +0 -3
  1491. package/projects/wt-front-shared/src/lib/models/endpoints/actions/actions-response.ts +0 -3
  1492. package/projects/wt-front-shared/src/lib/models/endpoints/actions/index.ts +0 -5
  1493. package/projects/wt-front-shared/src/lib/models/endpoints/actions/send-actions/request/actions-send-request-config.ts +0 -9
  1494. package/projects/wt-front-shared/src/lib/models/endpoints/actions/send-actions/request/actions-send-request.ts +0 -30
  1495. package/projects/wt-front-shared/src/lib/models/endpoints/auth/auth-endpoint-types.ts +0 -4
  1496. package/projects/wt-front-shared/src/lib/models/endpoints/auth/auth-request-config.ts +0 -3
  1497. package/projects/wt-front-shared/src/lib/models/endpoints/auth/auth-response.ts +0 -3
  1498. package/projects/wt-front-shared/src/lib/models/endpoints/auth/index.ts +0 -5
  1499. package/projects/wt-front-shared/src/lib/models/endpoints/auth/login-send/index.ts +0 -2
  1500. package/projects/wt-front-shared/src/lib/models/endpoints/auth/login-send/request/login-send-create-request-config.ts +0 -7
  1501. package/projects/wt-front-shared/src/lib/models/endpoints/auth/login-send/request/login-send-create-request.ts +0 -29
  1502. package/projects/wt-front-shared/src/lib/models/endpoints/auth/login-send/response/login-send-create-201.ts +0 -10
  1503. package/projects/wt-front-shared/src/lib/models/endpoints/auth/login-send/response/login-send-create-response-factory.ts +0 -32
  1504. package/projects/wt-front-shared/src/lib/models/endpoints/auth/login-send/response/login-send-create-response.ts +0 -3
  1505. package/projects/wt-front-shared/src/lib/models/endpoints/auth/refresh-token/index.ts +0 -2
  1506. package/projects/wt-front-shared/src/lib/models/endpoints/auth/refresh-token/request/refresh-token-request-config.ts +0 -5
  1507. package/projects/wt-front-shared/src/lib/models/endpoints/auth/refresh-token/request/refresh-token-request.ts +0 -24
  1508. package/projects/wt-front-shared/src/lib/models/endpoints/auth/refresh-token/response/refresh-token-200.ts +0 -10
  1509. package/projects/wt-front-shared/src/lib/models/endpoints/auth/refresh-token/response/refresh-token-response-factory.ts +0 -32
  1510. package/projects/wt-front-shared/src/lib/models/endpoints/auth/refresh-token/response/refresh-token-response.ts +0 -3
  1511. package/projects/wt-front-shared/src/lib/models/endpoints/base-response/base-response-factory.ts +0 -33
  1512. package/projects/wt-front-shared/src/lib/models/endpoints/base-response/base-response.ts +0 -3
  1513. package/projects/wt-front-shared/src/lib/models/endpoints/base-response/response-200.ts +0 -11
  1514. package/projects/wt-front-shared/src/lib/models/endpoints/cache-data/cache-data-endpoint-types.ts +0 -3
  1515. package/projects/wt-front-shared/src/lib/models/endpoints/cache-data/cache-data-request-config.ts +0 -3
  1516. package/projects/wt-front-shared/src/lib/models/endpoints/cache-data/cache-data-response.ts +0 -3
  1517. package/projects/wt-front-shared/src/lib/models/endpoints/cache-data/get-cache-data/request/get-cache-data-request-config.ts +0 -7
  1518. package/projects/wt-front-shared/src/lib/models/endpoints/cache-data/get-cache-data/request/get-cache-data-request.ts +0 -25
  1519. package/projects/wt-front-shared/src/lib/models/endpoints/cache-data/index.ts +0 -5
  1520. package/projects/wt-front-shared/src/lib/models/endpoints/files/files-delete/index.ts +0 -2
  1521. package/projects/wt-front-shared/src/lib/models/endpoints/files/files-delete/request/files-delete-request-config.ts +0 -7
  1522. package/projects/wt-front-shared/src/lib/models/endpoints/files/files-delete/request/files-delete-request.ts +0 -24
  1523. package/projects/wt-front-shared/src/lib/models/endpoints/files/files-delete/response/files-delete-200.ts +0 -10
  1524. package/projects/wt-front-shared/src/lib/models/endpoints/files/files-delete/response/files-delete-response-factory.ts +0 -32
  1525. package/projects/wt-front-shared/src/lib/models/endpoints/files/files-delete/response/files-delete-response.ts +0 -3
  1526. package/projects/wt-front-shared/src/lib/models/endpoints/files/files-endpoint-types.ts +0 -6
  1527. package/projects/wt-front-shared/src/lib/models/endpoints/files/files-load/index.ts +0 -2
  1528. package/projects/wt-front-shared/src/lib/models/endpoints/files/files-load/request/files-load-request-config.ts +0 -10
  1529. package/projects/wt-front-shared/src/lib/models/endpoints/files/files-load/request/files-load-request.ts +0 -25
  1530. package/projects/wt-front-shared/src/lib/models/endpoints/files/files-load/response/files-load-200.ts +0 -10
  1531. package/projects/wt-front-shared/src/lib/models/endpoints/files/files-load/response/files-load-response-factory.ts +0 -32
  1532. package/projects/wt-front-shared/src/lib/models/endpoints/files/files-load/response/files-load-response.ts +0 -3
  1533. package/projects/wt-front-shared/src/lib/models/endpoints/files/files-request-config.ts +0 -3
  1534. package/projects/wt-front-shared/src/lib/models/endpoints/files/files-response.ts +0 -3
  1535. package/projects/wt-front-shared/src/lib/models/endpoints/files/files-sort/index.ts +0 -2
  1536. package/projects/wt-front-shared/src/lib/models/endpoints/files/files-sort/request/files-sort-request-config.ts +0 -7
  1537. package/projects/wt-front-shared/src/lib/models/endpoints/files/files-sort/request/files-sort-request.ts +0 -28
  1538. package/projects/wt-front-shared/src/lib/models/endpoints/files/files-sort/response/files-sort-200.ts +0 -10
  1539. package/projects/wt-front-shared/src/lib/models/endpoints/files/files-sort/response/files-sort-response-factory.ts +0 -32
  1540. package/projects/wt-front-shared/src/lib/models/endpoints/files/files-sort/response/files-sort-response.ts +0 -3
  1541. package/projects/wt-front-shared/src/lib/models/endpoints/files/files-update/index.ts +0 -2
  1542. package/projects/wt-front-shared/src/lib/models/endpoints/files/files-update/request/files-update-request-config.ts +0 -12
  1543. package/projects/wt-front-shared/src/lib/models/endpoints/files/files-update/request/files-update-request.ts +0 -33
  1544. package/projects/wt-front-shared/src/lib/models/endpoints/files/files-update/response/files-update-200.ts +0 -10
  1545. package/projects/wt-front-shared/src/lib/models/endpoints/files/files-update/response/files-update-response-factory.ts +0 -32
  1546. package/projects/wt-front-shared/src/lib/models/endpoints/files/files-update/response/files-update-response.ts +0 -3
  1547. package/projects/wt-front-shared/src/lib/models/endpoints/form-delete-file/form-delete-file/request/form-delete-file-request-config.ts +0 -9
  1548. package/projects/wt-front-shared/src/lib/models/endpoints/form-delete-file/form-delete-file/request/form-delete-file-request.ts +0 -30
  1549. package/projects/wt-front-shared/src/lib/models/endpoints/form-delete-file/form-delete-file-base-endpoint-types.ts +0 -3
  1550. package/projects/wt-front-shared/src/lib/models/endpoints/form-delete-file/form-delete-file-base-request-config.ts +0 -3
  1551. package/projects/wt-front-shared/src/lib/models/endpoints/form-delete-file/form-delete-file-base-response.ts +0 -3
  1552. package/projects/wt-front-shared/src/lib/models/endpoints/form-delete-file/index.ts +0 -5
  1553. package/projects/wt-front-shared/src/lib/models/endpoints/form-validation/form-validation-check/request/form-validation-check-request-config.ts +0 -9
  1554. package/projects/wt-front-shared/src/lib/models/endpoints/form-validation/form-validation-check/request/form-validation-check-request.ts +0 -34
  1555. package/projects/wt-front-shared/src/lib/models/endpoints/form-validation/form-validation-endpoint-types.ts +0 -3
  1556. package/projects/wt-front-shared/src/lib/models/endpoints/form-validation/form-validation-request-config.ts +0 -3
  1557. package/projects/wt-front-shared/src/lib/models/endpoints/form-validation/form-validation-response.ts +0 -3
  1558. package/projects/wt-front-shared/src/lib/models/endpoints/form-validation/index.ts +0 -5
  1559. package/projects/wt-front-shared/src/lib/models/endpoints/http/request/delete-request.ts +0 -6
  1560. package/projects/wt-front-shared/src/lib/models/endpoints/http/request/get-request.ts +0 -47
  1561. package/projects/wt-front-shared/src/lib/models/endpoints/http/request/post-request.ts +0 -8
  1562. package/projects/wt-front-shared/src/lib/models/endpoints/http/request/put-request.ts +0 -8
  1563. package/projects/wt-front-shared/src/lib/models/endpoints/http/request/request-config.ts +0 -1
  1564. package/projects/wt-front-shared/src/lib/models/endpoints/http/request/request-headers.ts +0 -3
  1565. package/projects/wt-front-shared/src/lib/models/endpoints/http/request/request-method.ts +0 -6
  1566. package/projects/wt-front-shared/src/lib/models/endpoints/http/request/request.ts +0 -138
  1567. package/projects/wt-front-shared/src/lib/models/endpoints/http/request-result-info.ts +0 -4
  1568. package/projects/wt-front-shared/src/lib/models/endpoints/http/response/response-status.ts +0 -11
  1569. package/projects/wt-front-shared/src/lib/models/endpoints/http/response/response.ts +0 -12
  1570. package/projects/wt-front-shared/src/lib/models/endpoints/index.ts +0 -14
  1571. package/projects/wt-front-shared/src/lib/models/endpoints/publish/publish-endpoint-types.ts +0 -4
  1572. package/projects/wt-front-shared/src/lib/models/endpoints/publish/publish-post/request/publish-post-request-config.ts +0 -7
  1573. package/projects/wt-front-shared/src/lib/models/endpoints/publish/publish-post/request/publish-post-request.ts +0 -24
  1574. package/projects/wt-front-shared/src/lib/models/endpoints/publish/publish-request-config.ts +0 -3
  1575. package/projects/wt-front-shared/src/lib/models/endpoints/publish/publish-response.ts +0 -3
  1576. package/projects/wt-front-shared/src/lib/models/endpoints/publish/un-publish-post/request/un-publish-post-config.ts +0 -7
  1577. package/projects/wt-front-shared/src/lib/models/endpoints/publish/un-publish-post/request/un-publish-post-request.ts +0 -24
  1578. package/projects/wt-front-shared/src/lib/models/endpoints/reports/enities-report/request/entities-reports-request-config.ts +0 -6
  1579. package/projects/wt-front-shared/src/lib/models/endpoints/reports/enities-report/request/entities-reports-request.ts +0 -24
  1580. package/projects/wt-front-shared/src/lib/models/endpoints/reports/index.ts +0 -5
  1581. package/projects/wt-front-shared/src/lib/models/endpoints/reports/reports-endpoint-types.ts +0 -4
  1582. package/projects/wt-front-shared/src/lib/models/endpoints/reports/reports-request-config.ts +0 -3
  1583. package/projects/wt-front-shared/src/lib/models/endpoints/reports/reports-response.ts +0 -3
  1584. package/projects/wt-front-shared/src/lib/models/endpoints/reports/user-behavior-report/request/user-behavior-report-request-config.ts +0 -6
  1585. package/projects/wt-front-shared/src/lib/models/endpoints/reports/user-behavior-report/request/user-behavior-report-request.ts +0 -26
  1586. package/projects/wt-front-shared/src/lib/models/endpoints/static-data/index.ts +0 -11
  1587. package/projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-create/request/static-data-create-request-config.ts +0 -9
  1588. package/projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-create/request/static-data-create-request.ts +0 -36
  1589. package/projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-delete/request/static-data-delete-request-config.ts +0 -9
  1590. package/projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-delete/request/static-data-delete-request.ts +0 -24
  1591. package/projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-endpoint-types.ts +0 -9
  1592. package/projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-get/request/static-data-get-request-config.ts +0 -13
  1593. package/projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-get/request/static-data-get-request.ts +0 -48
  1594. package/projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-get-list/request/static-data-get-list-request-config.ts +0 -15
  1595. package/projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-get-list/request/static-data-get-list-request.ts +0 -44
  1596. package/projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-get-list-categories/request/static-data-get-list-categories-request-config.ts +0 -3
  1597. package/projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-get-list-categories/request/static-data-get-list-categories-request.ts +0 -25
  1598. package/projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-request-config.ts +0 -3
  1599. package/projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-response.ts +0 -3
  1600. package/projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-sub-routing-get/request/static-data-sub-routing-get-request-config.ts +0 -8
  1601. package/projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-sub-routing-get/request/static-data-sub-routing-get-request.ts +0 -24
  1602. package/projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-update/request/static-data-update-request-config.ts +0 -9
  1603. package/projects/wt-front-shared/src/lib/models/endpoints/static-data/static-data-update/request/static-data-update-request.ts +0 -38
  1604. package/projects/wt-front-shared/src/lib/models/endpoints/tags/index.ts +0 -6
  1605. package/projects/wt-front-shared/src/lib/models/endpoints/tags/tag-entities-load/request/tag-entities-load-request-config.ts +0 -5
  1606. package/projects/wt-front-shared/src/lib/models/endpoints/tags/tag-entities-load/request/tag-entities-request.ts +0 -25
  1607. package/projects/wt-front-shared/src/lib/models/endpoints/tags/tags-endpoint-types.ts +0 -8
  1608. package/projects/wt-front-shared/src/lib/models/endpoints/tags/tags-load/index.ts +0 -2
  1609. package/projects/wt-front-shared/src/lib/models/endpoints/tags/tags-load/request/tags-load-request-config.ts +0 -8
  1610. package/projects/wt-front-shared/src/lib/models/endpoints/tags/tags-load/request/tags-load-request.ts +0 -30
  1611. package/projects/wt-front-shared/src/lib/models/endpoints/tags/tags-load/response/tags-load-200.ts +0 -13
  1612. package/projects/wt-front-shared/src/lib/models/endpoints/tags/tags-load/response/tags-load-response-factory.ts +0 -32
  1613. package/projects/wt-front-shared/src/lib/models/endpoints/tags/tags-load/response/tags-load-response.ts +0 -3
  1614. package/projects/wt-front-shared/src/lib/models/endpoints/tags/tags-request-config.ts +0 -3
  1615. package/projects/wt-front-shared/src/lib/models/endpoints/tags/tags-response.ts +0 -3
  1616. package/projects/wt-front-shared/src/lib/models/entity/entity-filters.ts +0 -3
  1617. package/projects/wt-front-shared/src/lib/models/entity/entity-query-field-names.ts +0 -21
  1618. package/projects/wt-front-shared/src/lib/models/entity/entity-query-fields.ts +0 -5
  1619. package/projects/wt-front-shared/src/lib/models/entity/entity-sort-type.ts +0 -6
  1620. package/projects/wt-front-shared/src/lib/models/entity/entity.ts +0 -4
  1621. package/projects/wt-front-shared/src/lib/models/entity/entity.type.ts +0 -6
  1622. package/projects/wt-front-shared/src/lib/models/entity/paging.type.ts +0 -4
  1623. package/projects/wt-front-shared/src/lib/models/fields/fields-model.ts +0 -4
  1624. package/projects/wt-front-shared/src/lib/models/fields/image-fields-model.ts +0 -5
  1625. package/projects/wt-front-shared/src/lib/models/fields/index.ts +0 -1
  1626. package/projects/wt-front-shared/src/lib/models/index.ts +0 -13
  1627. package/projects/wt-front-shared/src/lib/models/mapper/mapper-util.ts +0 -87
  1628. package/projects/wt-front-shared/src/lib/models/mapper/mapper.ts +0 -60
  1629. package/projects/wt-front-shared/src/lib/models/model-adapter/base-model-adapter.ts +0 -51
  1630. package/projects/wt-front-shared/src/lib/models/models/actions/actions.model.ts +0 -5
  1631. package/projects/wt-front-shared/src/lib/models/models/cache-data/cache-data.model.ts +0 -4
  1632. package/projects/wt-front-shared/src/lib/models/models/file/file-field-names.ts +0 -11
  1633. package/projects/wt-front-shared/src/lib/models/models/file/file-model.ts +0 -24
  1634. package/projects/wt-front-shared/src/lib/models/models/file/file-scheme.ts +0 -26
  1635. package/projects/wt-front-shared/src/lib/models/models/file/versions-model.ts +0 -5
  1636. package/projects/wt-front-shared/src/lib/models/models/meta.model.ts +0 -11
  1637. package/projects/wt-front-shared/src/lib/models/models/notification/notificationModel.ts +0 -7
  1638. package/projects/wt-front-shared/src/lib/models/models/paging.model.ts +0 -5
  1639. package/projects/wt-front-shared/src/lib/models/models/publish-message/publish-message-field-names.ts +0 -10
  1640. package/projects/wt-front-shared/src/lib/models/models/publish-message/publish-message-scheme.ts +0 -15
  1641. package/projects/wt-front-shared/src/lib/models/models/publish-message/publish-message.ts +0 -21
  1642. package/projects/wt-front-shared/src/lib/models/models/reports/reports.model.ts +0 -4
  1643. package/projects/wt-front-shared/src/lib/models/models/request.model.ts +0 -20
  1644. package/projects/wt-front-shared/src/lib/models/models/static-data/static-data.model.ts +0 -7
  1645. package/projects/wt-front-shared/src/lib/models/models/static-data2/static-data-field-model.ts +0 -8
  1646. package/projects/wt-front-shared/src/lib/models/models/static-data2/static-data-item-model.ts +0 -6
  1647. package/projects/wt-front-shared/src/lib/models/models/static-data2/static-data-item-names.ts +0 -4
  1648. package/projects/wt-front-shared/src/lib/models/models/static-data2/static-data-item-scheme.ts +0 -10
  1649. package/projects/wt-front-shared/src/lib/models/models/tag/tag-entity-model.ts +0 -8
  1650. package/projects/wt-front-shared/src/lib/models/models/tag/tag-entity-scheme.ts +0 -13
  1651. package/projects/wt-front-shared/src/lib/models/models/tag/tag-field-names.ts +0 -7
  1652. package/projects/wt-front-shared/src/lib/models/models/tag/tag-model.ts +0 -7
  1653. package/projects/wt-front-shared/src/lib/models/models/tag/tag-scheme.ts +0 -15
  1654. package/projects/wt-front-shared/src/lib/models/models/ui-units/index.ts +0 -1
  1655. package/projects/wt-front-shared/src/lib/models/models/ui-units/ui-units.firms-data.ts +0 -5
  1656. package/projects/wt-front-shared/src/lib/models/models/user/user-auth-headers.ts +0 -4
  1657. package/projects/wt-front-shared/src/lib/models/models/user/user-field-names.ts +0 -12
  1658. package/projects/wt-front-shared/src/lib/models/models/user/user-model.ts +0 -15
  1659. package/projects/wt-front-shared/src/lib/models/models/user/user-query-fields.ts +0 -5
  1660. package/projects/wt-front-shared/src/lib/models/models/user/user-right-model.ts +0 -4
  1661. package/projects/wt-front-shared/src/lib/models/models/user/user-scheme.ts +0 -20
  1662. package/projects/wt-front-shared/src/lib/models/models/user/user.role.ts +0 -7
  1663. package/projects/wt-front-shared/src/lib/models/query-fields-adapter/query-fileds-adapter.ts +0 -22
  1664. package/projects/wt-front-shared/src/lib/models/schemes/entity-scheme.ts +0 -6
  1665. package/projects/wt-front-shared/src/lib/models/social/fb-login-options.ts +0 -12
  1666. package/projects/wt-front-shared/src/lib/models/social/index.ts +0 -3
  1667. package/projects/wt-front-shared/src/lib/models/social/login-options.ts +0 -1
  1668. package/projects/wt-front-shared/src/lib/models/social/social-user.ts +0 -12
  1669. package/projects/wt-front-shared/src/lib/models/ui-units/ui-unit-ids.ts +0 -7
  1670. package/projects/wt-front-shared/src/lib/models/ui-units/ui-unit-types.ts +0 -3
  1671. package/projects/wt-front-shared/src/lib/models/ui-units/uiUnitItem.ts +0 -10
  1672. package/projects/wt-front-shared/src/lib/models/ui-units/uiUnits.images-data.ts +0 -5
  1673. package/projects/wt-front-shared/src/lib/scss/_index.scss +0 -84
  1674. package/projects/wt-front-shared/src/lib/scss/overlay/_index.scss +0 -4
  1675. package/projects/wt-front-shared/src/lib/scss/overlay/chips-input.scss +0 -3
  1676. package/projects/wt-front-shared/src/lib/scss/overlay/font-awesome.scss +0 -3
  1677. package/projects/wt-front-shared/src/lib/scss/overlay/mat-spinner.scss +0 -3
  1678. package/projects/wt-front-shared/src/lib/scss/overlay/perfect-scrollbar.scss +0 -25
  1679. package/projects/wt-front-shared/src/lib/scss/overlay/template.scss +0 -49
  1680. package/projects/wt-front-shared/src/lib/scss/package.json +0 -4
  1681. package/projects/wt-front-shared/src/lib/scss/src/index.ts +0 -0
  1682. package/projects/wt-front-shared/src/lib/scss/src/lib/.gitkeep +0 -0
  1683. package/projects/wt-front-shared/src/lib/scss/ui-kit/_index.scss +0 -2
  1684. package/projects/wt-front-shared/src/lib/scss/ui-kit/buttons.scss +0 -3
  1685. package/projects/wt-front-shared/src/lib/scss/ui-kit/colors.scss +0 -3
  1686. package/projects/wt-front-shared/src/lib/scss/variables.scss +0 -38
  1687. package/projects/wt-front-shared/src/lib/scss/web-index.scss +0 -2
  1688. package/projects/wt-front-shared/src/public-api.ts +0 -73
  1689. package/projects/wt-front-shared/tsconfig.lib.json +0 -14
  1690. package/projects/wt-front-shared/tsconfig.lib.prod.json +0 -10
  1691. package/projects/wt-front-shared/tsconfig.spec.json +0 -14
  1692. package/tsconfig.json +0 -63
  1693. /package/{projects/wt-front-shared/src/lib/core/components/auto-form/constants/auto-form-show-value.ts → lib/core/components/auto-form/constants/auto-form-show-value.d.ts} +0 -0
  1694. /package/{projects/wt-front-shared/src/lib/core/components/button/ButtonSize.ts → lib/core/components/button/ButtonSize.d.ts} +0 -0
  1695. /package/{projects/wt-front-shared/src/lib/core/components/button/ButtonStyle.ts → lib/core/components/button/ButtonStyle.d.ts} +0 -0
  1696. /package/{projects/wt-front-shared/src/lib/core/components/button/ButtonTheme.ts → lib/core/components/button/ButtonTheme.d.ts} +0 -0
  1697. /package/{projects/wt-front-shared/src/lib/core/components/icon/index.ts → lib/core/components/icon/index.d.ts} +0 -0
@@ -0,0 +1,2998 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Component, ChangeDetectionStrategy, NgModule, Input, EventEmitter, Output, ViewChild, Inject, InjectionToken, PLATFORM_ID, ElementRef, Directive, Optional, ContentChild, forwardRef, Pipe } from '@angular/core';
3
+ import { AccessDeniedComponent as AccessDeniedComponent$1 } from '@shared/components/access-denied/access-denied.component';
4
+ import * as i1 from '@angular/common';
5
+ import { CommonModule, isPlatformBrowser } from '@angular/common';
6
+ import * as i6 from '@angular/forms';
7
+ import { FormControl, FormsModule, ReactiveFormsModule, UntypedFormControl } from '@angular/forms';
8
+ import * as i4$1 from '@angular/flex-layout';
9
+ import { FlexModule } from '@angular/flex-layout';
10
+ import * as i6$3 from 'ngx-mask';
11
+ import { NgxMaskModule } from 'ngx-mask';
12
+ import * as i6$1 from '@angular/material/icon';
13
+ import { MatIconModule } from '@angular/material/icon';
14
+ import { CKEditorModule } from 'ckeditor4-angular';
15
+ import * as i3 from '@angular/material/form-field';
16
+ import { MatFormFieldModule } from '@angular/material/form-field';
17
+ import * as i3$1 from '@angular/material/input';
18
+ import { MatInputModule } from '@angular/material/input';
19
+ import * as i1$2 from '@angular/material/slide-toggle';
20
+ import { MatSlideToggleModule } from '@angular/material/slide-toggle';
21
+ import * as i4 from '@angular/material/select';
22
+ import { MatSelectModule } from '@angular/material/select';
23
+ import * as i2$1 from '@angular/material/tooltip';
24
+ import { MatTooltipModule } from '@angular/material/tooltip';
25
+ import { MatChipsModule } from '@angular/material/chips';
26
+ import { MatAutocompleteModule } from '@angular/material/autocomplete';
27
+ import * as i8 from '@shared/components/auto-form/containers/form-field/form-field.component';
28
+ import { FormFieldComponent } from '@shared/components/auto-form/containers/form-field/form-field.component';
29
+ import { FormFieldErrorModule } from '@shared/components/form-field-error/form-field-error.module';
30
+ import { SharedSpinnerModule as SharedSpinnerModule$1 } from '@shared/components/spinner/spinner.module';
31
+ import * as i2 from '@angular/material/progress-spinner';
32
+ import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
33
+ import { Subject, merge, fromEvent } from 'rxjs';
34
+ import { takeUntil, startWith, map } from 'rxjs/operators';
35
+ import { filter } from 'rxjs/internal/operators/filter';
36
+ import { appearOpacity } from '@shared/core/animations/appearOpacity';
37
+ import { untilComponentDestroyed, trackById } from '@shared/core/utils';
38
+ import * as i1$1 from '@ngrx/store';
39
+ import * as i5 from '@angular/material/core';
40
+ import * as i7 from 'ngx-mat-select-search';
41
+ import { NgxMatSelectSearchModule } from 'ngx-mat-select-search';
42
+ import { isObject } from 'rxjs/internal-compatibility';
43
+ import { appearFromLeft } from '@shared/core/animations/appearFromLeft';
44
+ import * as i1$5 from '@shared/state/form-errors';
45
+ import * as i2$3 from '@shared/state/forms';
46
+ import * as i1$4 from '@shared/state/publication-messages';
47
+ import * as i4$2 from '@shared/core/services/auth/authentication.service';
48
+ import { ERRORS } from '@shared/components/auto-form/constants/errors';
49
+ import * as i1$3 from '@shared/core/services';
50
+ import { expandCollapse } from '@shared/core/animations/expandCollapse';
51
+ import { appearFromLeftWithDelay } from '@shared/core/animations/appearFromLeftWithDelay';
52
+ import { PublishErrors } from '@shared/constants/publish-errors.const';
53
+ import * as i2$2 from '@shared/core/services/auto-form/auto-form.service';
54
+ import * as i6$2 from '@shared/components/panel/panel.component';
55
+ import { PanelComponent as PanelComponent$1 } from '@shared/components/panel/panel.component';
56
+ import { trigger, transition, animate, keyframes, style } from '@angular/animations';
57
+ import * as i5$1 from '@angular/material/button';
58
+ import { MatButtonModule } from '@angular/material/button';
59
+ import { AutoFormShowComponent as AutoFormShowComponent$1 } from '@shared/components/auto-form/containers/auto-form-show/auto-form-show.component';
60
+ import * as i2$4 from '@shared/components/auto-form/containers/auto-form-show-field/auto-form-show-field.component';
61
+ import { AutoFormShowFieldComponent } from '@shared/components/auto-form/containers/auto-form-show-field/auto-form-show-field.component';
62
+ import { FormFieldSelectShowComponent } from '@shared/components/auto-form/components/form-field-select-show/form-field-select-show.component';
63
+ import { InputType } from '@shared/components/auto-form/interfaces/input-type';
64
+ import { IFormFieldFormat } from '@shared/components/auto-form/interfaces/form-field-format';
65
+ import { FormFieldFileComponent } from '@shared/components/auto-form/components/form-field-file/form-field-file.component';
66
+ import { FormFieldFilesComponent } from '@shared/components/auto-form/components/form-field-files/form-field-files.component';
67
+ import { FilesUploadModule as FilesUploadModule$1 } from '@shared/components/files-upload/files-upload.module';
68
+ import { FormFieldFileShowComponent } from '@shared/components/auto-form/components/form-field-file-show/form-field-file-show.component';
69
+ import { FormFieldSlideToggleShowComponent } from '@shared/components/auto-form/components/form-field-slide-toggle-show/form-field-slide-toggle-show.component';
70
+ import { FormFieldInputShowComponent } from '@shared/components/auto-form/components/form-field-input-show/form-field-input-show.component';
71
+ import { FormFieldFilesShowComponent } from '@shared/components/auto-form/components/form-field-files-show/form-field-files-show.component';
72
+ import { ImageModule as ImageModule$1 } from '@shared/core/components/image/image.module';
73
+ import { PanelModule as PanelModule$1 } from '@shared/components/panel/panel.module';
74
+ import { ButtonModule as ButtonModule$1 } from '@shared/core/components/button/button.module';
75
+ import { SmartProgressBarModule as SmartProgressBarModule$1 } from '@shared/components/smart-progress-bar/smart-progress-bar.module';
76
+ import { StarRatingModule as StarRatingModule$1 } from '@shared/components/star-rating/star-rating.module';
77
+ import { FormFieldPublishErrorModule as FormFieldPublishErrorModule$1 } from '@shared/components/form-field-publish-error/form-field-publish-error.module';
78
+ import { FormFieldTagsComponent } from '@shared/components/auto-form/components/form-field-tags/form-field-tags.component';
79
+ import * as i2$5 from '@angular/router';
80
+ import { RouterModule } from '@angular/router';
81
+ import { SharedIconModule as SharedIconModule$1 } from '@shared/components/icon/icon.module';
82
+ import { ENTER, COMMA } from '@angular/cdk/keycodes';
83
+ import { MatLegacyChipsModule } from '@angular/material/legacy-chips';
84
+ import * as i6$4 from 'ng2-file-upload';
85
+ import { FileUploader, FileUploadModule } from 'ng2-file-upload';
86
+ import * as i3$3 from '@angular/cdk/drag-drop';
87
+ import { moveItemInArray, DragDropModule } from '@angular/cdk/drag-drop';
88
+ import { appearFromLeftHideToRight } from '@shared/core/animations/appearFromLeftHideToRight';
89
+ import { RequestStatus } from '@shared/models/models/request.model';
90
+ import { FileListModeSort as FileListModeSort$1, FileListModeList as FileListModeList$1 } from '@shared/components/files-upload/constants';
91
+ import * as i1$7 from '@shared/state/files';
92
+ import * as i4$3 from '@shared/state/requests';
93
+ import { hideToTopOpacity } from '@shared/core/animations/hideToTopOpacity';
94
+ import * as i1$6 from '@shared/state/files/files.facade';
95
+ import * as i2$6 from '@shared/state/notifications';
96
+ import * as i3$2 from '@shared/core/dialogs/dialog.service';
97
+ import { CORE_CONFIG } from '@shared/core/tokens';
98
+ import * as i5$2 from '@angular/material/progress-bar';
99
+ import { MatProgressBarModule } from '@angular/material/progress-bar';
100
+ import { FormFieldPublishErrorComponent as FormFieldPublishErrorComponent$1 } from '@shared/components/form-field-publish-error/form-field-publish-error.component';
101
+ import { InputTagsComponent as InputTagsComponent$1 } from '@shared/components/input-tags/input-tags.component';
102
+ import { ChipsInputModule as ChipsInputModule$1 } from '@shared/components/chips-input/chips-input.module';
103
+ import { PaginationComponent as PaginationComponent$1 } from '@shared/components/pagination/pagination.component';
104
+ import * as i1$8 from '@angular/cdk/platform';
105
+ import * as i2$7 from '@angular/material/menu';
106
+ import { MatMenuModule } from '@angular/material/menu';
107
+ import * as i1$9 from '@angular/platform-browser';
108
+ import * as moment from 'moment';
109
+
110
+ class AccessDeniedComponent {
111
+ }
112
+ AccessDeniedComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AccessDeniedComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
113
+ AccessDeniedComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: AccessDeniedComponent, selector: "shared-access-denied", ngImport: i0, template: "<div class=\"text-center mt-30\">\n \u041A \u0441\u043E\u0436\u0430\u043B\u0435\u043D\u0438\u044E, \u0443 \u0412\u0430\u0441 \u043D\u0435\u0442 \u0434\u043E\u0441\u0442\u0443\u043F\u0430 \u0434\u043B\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u044D\u0442\u043E\u0439 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u044B<br/>\n <div class=\"mt-20\">\n \u0415\u0441\u043B\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044C \u0432\u043E\u043F\u0440\u043E\u0441\u044B \u043F\u043E \u044D\u0442\u043E\u043C\u0443 \u043F\u043E\u0432\u043E\u0434\u0443, \u043F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430 \u043D\u0430\u043F\u0438\u0448\u0438\u0442\u0435 \u0432 <a href=\"mailto:support@world-travel.uz\">support@world-travel.uz</a>\n </div>\n</div>\n", styles: [""], changeDetection: i0.ChangeDetectionStrategy.OnPush });
114
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AccessDeniedComponent, decorators: [{
115
+ type: Component,
116
+ args: [{ selector: 'shared-access-denied', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"text-center mt-30\">\n \u041A \u0441\u043E\u0436\u0430\u043B\u0435\u043D\u0438\u044E, \u0443 \u0412\u0430\u0441 \u043D\u0435\u0442 \u0434\u043E\u0441\u0442\u0443\u043F\u0430 \u0434\u043B\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u044D\u0442\u043E\u0439 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u044B<br/>\n <div class=\"mt-20\">\n \u0415\u0441\u043B\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044C \u0432\u043E\u043F\u0440\u043E\u0441\u044B \u043F\u043E \u044D\u0442\u043E\u043C\u0443 \u043F\u043E\u0432\u043E\u0434\u0443, \u043F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430 \u043D\u0430\u043F\u0438\u0448\u0438\u0442\u0435 \u0432 <a href=\"mailto:support@world-travel.uz\">support@world-travel.uz</a>\n </div>\n</div>\n" }]
117
+ }] });
118
+
119
+ class AccessDeniedModule {
120
+ }
121
+ AccessDeniedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AccessDeniedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
122
+ AccessDeniedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: AccessDeniedModule, declarations: [AccessDeniedComponent$1], exports: [AccessDeniedComponent$1] });
123
+ AccessDeniedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AccessDeniedModule });
124
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AccessDeniedModule, decorators: [{
125
+ type: NgModule,
126
+ args: [{
127
+ imports: [],
128
+ declarations: [AccessDeniedComponent$1],
129
+ exports: [AccessDeniedComponent$1]
130
+ }]
131
+ }] });
132
+
133
+ class SpinnerComponent {
134
+ constructor() {
135
+ this.overlay = false;
136
+ this.diameter = 30;
137
+ this.color = 'blue';
138
+ this.position = 'left';
139
+ }
140
+ ngOnInit() {
141
+ }
142
+ }
143
+ SpinnerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SpinnerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
144
+ SpinnerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SpinnerComponent, selector: "shared-spinner", inputs: { overlay: "overlay", diameter: "diameter", color: "color", position: "position" }, ngImport: i0, template: "<div [ngClass]=\"{\n overlay: overlay,\n 'grey-color': color === 'grey',\n 'align-center': position === 'center',\n 'align-right': position === 'right'\n }\">\n <mat-progress-spinner\n class=\"example-margin\"\n color=\"accent\"\n [diameter]=\"diameter\"\n mode=\"indeterminate\">\n </mat-progress-spinner>\n</div>\n", styles: [".overlay{position:absolute;inset:0;background:rgba(30,33,41,.29);z-index:100;display:flex;justify-content:center;align-items:center}.align-center{display:flex;justify-content:center}.align-right{display:flex;justify-content:right}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i2.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
145
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SpinnerComponent, decorators: [{
146
+ type: Component,
147
+ args: [{ selector: 'shared-spinner', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [ngClass]=\"{\n overlay: overlay,\n 'grey-color': color === 'grey',\n 'align-center': position === 'center',\n 'align-right': position === 'right'\n }\">\n <mat-progress-spinner\n class=\"example-margin\"\n color=\"accent\"\n [diameter]=\"diameter\"\n mode=\"indeterminate\">\n </mat-progress-spinner>\n</div>\n", styles: [".overlay{position:absolute;inset:0;background:rgba(30,33,41,.29);z-index:100;display:flex;justify-content:center;align-items:center}.align-center{display:flex;justify-content:center}.align-right{display:flex;justify-content:right}\n"] }]
148
+ }], ctorParameters: function () { return []; }, propDecorators: { overlay: [{
149
+ type: Input
150
+ }], diameter: [{
151
+ type: Input
152
+ }], color: [{
153
+ type: Input
154
+ }], position: [{
155
+ type: Input
156
+ }] } });
157
+
158
+ class FormFieldSpinnerComponent {
159
+ }
160
+ FormFieldSpinnerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldSpinnerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
161
+ FormFieldSpinnerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FormFieldSpinnerComponent, selector: "shared-form-field-spinner", ngImport: i0, template: "<div class=\"spinner-overlay\">\n <shared-spinner [color]=\"'grey'\" [diameter]=\"30\" [overlay]=\"true\"></shared-spinner>\n</div>\n", styles: [".spinner-overlay{position:absolute;width:100%;height:61px;top:0;margin-top:3px;border-radius:6px;overflow:hidden;opacity:.5}\n"], dependencies: [{ kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
162
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldSpinnerComponent, decorators: [{
163
+ type: Component,
164
+ args: [{ selector: 'shared-form-field-spinner', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"spinner-overlay\">\n <shared-spinner [color]=\"'grey'\" [diameter]=\"30\" [overlay]=\"true\"></shared-spinner>\n</div>\n", styles: [".spinner-overlay{position:absolute;width:100%;height:61px;top:0;margin-top:3px;border-radius:6px;overflow:hidden;opacity:.5}\n"] }]
165
+ }] });
166
+
167
+ class FormFieldSelectComponent {
168
+ constructor(store, cd) {
169
+ this.store = store;
170
+ this.cd = cd;
171
+ this.searchCtrl = new FormControl();
172
+ this.loaded = false;
173
+ this.options = [];
174
+ this.allOptions = [];
175
+ this.tempOptions = [];
176
+ this.placeholder = '';
177
+ this.unSubscribeSubject$ = new Subject();
178
+ }
179
+ ngOnInit() {
180
+ if (this.fieldData.options.subscribeToFormChanges) {
181
+ this.subscribeToFormChanges();
182
+ this.placeholder = this.fieldData.options.subscribeToFormChanges.emptyTitle;
183
+ }
184
+ this.subscribeToSearchChange();
185
+ }
186
+ ngOnDestroy() {
187
+ this.unSubscribeSubject$.next();
188
+ this.unSubscribeSubject$.complete();
189
+ }
190
+ ngOnChanges(changes) {
191
+ if (changes.fieldData && changes.fieldData.currentValue) {
192
+ const { loadOptionFromStore, selectOptions } = changes.fieldData.currentValue.options;
193
+ if (selectOptions && selectOptions.length) {
194
+ this.options = selectOptions;
195
+ }
196
+ if (loadOptionFromStore) {
197
+ this.loadOptionsFromStore(loadOptionFromStore);
198
+ }
199
+ else {
200
+ this.loaded = true;
201
+ }
202
+ }
203
+ }
204
+ subscribeToSearchChange() {
205
+ if (this.searchCtrl) {
206
+ this.searchCtrl.valueChanges
207
+ .pipe(untilComponentDestroyed(this))
208
+ .subscribe((searchValue) => {
209
+ if (searchValue) {
210
+ if (!this.tempOptions.length) {
211
+ this.tempOptions = [...this.options];
212
+ }
213
+ this.options = this.options.filter(item => {
214
+ return item.name.toLowerCase().indexOf(searchValue.toLowerCase()) !== -1;
215
+ });
216
+ }
217
+ else {
218
+ if (this.tempOptions.length) {
219
+ this.options = [...this.tempOptions];
220
+ this.tempOptions = [];
221
+ }
222
+ }
223
+ });
224
+ }
225
+ }
226
+ /**
227
+ * Subscribe to the form changes for field with the property 'subscribeToFormChanges'
228
+ */
229
+ subscribeToFormChanges() {
230
+ this.form.valueChanges
231
+ .pipe(takeUntil(this.unSubscribeSubject$))
232
+ .subscribe(changes => {
233
+ this.filterOptionsByRelatedFieldValue(changes);
234
+ this.cd.markForCheck();
235
+ });
236
+ }
237
+ loadOptionsFromStore(loadOptionFromStore) {
238
+ const listKeys = loadOptionFromStore.split('.');
239
+ this.store.select(state => {
240
+ let selectedStore = state;
241
+ listKeys.forEach(key => {
242
+ selectedStore = selectedStore[key];
243
+ });
244
+ return selectedStore;
245
+ })
246
+ .pipe(filter((listItems) => !!listItems), takeUntil(this.unSubscribeSubject$))
247
+ .subscribe((listItems) => {
248
+ var _a;
249
+ let newOptions = [];
250
+ if (listItems && (listItems === null || listItems === void 0 ? void 0 : listItems.items)) {
251
+ newOptions = listItems.items;
252
+ }
253
+ else if ((_a = listItems.list) === null || _a === void 0 ? void 0 : _a.length) {
254
+ newOptions = listItems.list;
255
+ }
256
+ else if (Array.isArray(listItems)) {
257
+ newOptions = listItems;
258
+ }
259
+ newOptions = this.sortOptionItemsByName(newOptions);
260
+ if (this.fieldData.options.nestedByField) {
261
+ newOptions = this.groupItemsByNestedField(newOptions);
262
+ }
263
+ this.allOptions = newOptions;
264
+ if (!this.fieldData.options.subscribeToFormChanges) {
265
+ this.options = (newOptions === null || newOptions === void 0 ? void 0 : newOptions.length) ? newOptions.map(item => ({ id: item.id, name: item.name })) : [];
266
+ }
267
+ else {
268
+ this.filterOptionsByRelatedFieldValue(this.form.value);
269
+ }
270
+ this.cd.markForCheck();
271
+ this.fieldData.options.loading = false;
272
+ });
273
+ }
274
+ /**
275
+ * Filter option by the 'subscribeToFormChanges' property
276
+ * @param data
277
+ */
278
+ filterOptionsByRelatedFieldValue(data) {
279
+ const { relatedField, currentFieldProperty } = this.fieldData.options.subscribeToFormChanges;
280
+ const relatedFieldValue = data[relatedField];
281
+ let newOptions = [];
282
+ if (Array.isArray(relatedFieldValue)) {
283
+ if (relatedFieldValue === null || relatedFieldValue === void 0 ? void 0 : relatedFieldValue.length) {
284
+ newOptions = this.allOptions.filter(item => relatedFieldValue.includes(item[currentFieldProperty]));
285
+ }
286
+ }
287
+ else {
288
+ newOptions = this.allOptions.filter(item => item[currentFieldProperty] === relatedFieldValue);
289
+ }
290
+ this.options = newOptions.map(item => ({ id: item.id, name: item.name }));
291
+ }
292
+ groupItemsByNestedField(items) {
293
+ let newItems = [];
294
+ items.filter(item => !item[this.fieldData.options.nestedByField])
295
+ .forEach(item => {
296
+ const newItem = Object.assign({}, item);
297
+ const subItems = this.groupItemsByNestedFieldRecursion(items, item.id);
298
+ newItems.push(newItem);
299
+ if (subItems === null || subItems === void 0 ? void 0 : subItems.length) {
300
+ newItems = [...newItems, ...subItems];
301
+ }
302
+ });
303
+ return newItems;
304
+ }
305
+ groupItemsByNestedFieldRecursion(items, parentId, prefix = '---') {
306
+ const nestedByFieldName = this.fieldData.options.nestedByField;
307
+ const findItems = items.filter(item => item[nestedByFieldName] === parentId);
308
+ if (findItems === null || findItems === void 0 ? void 0 : findItems.length) {
309
+ let newItems = [];
310
+ findItems.forEach(item => {
311
+ newItems.push(Object.assign(Object.assign({}, item), { name: `${prefix} ${item.name}` }));
312
+ const subItems = this.groupItemsByNestedFieldRecursion(items, item.id, prefix + '---');
313
+ if (subItems === null || subItems === void 0 ? void 0 : subItems.length) {
314
+ newItems = [...newItems, ...subItems];
315
+ }
316
+ });
317
+ return newItems;
318
+ }
319
+ return null;
320
+ }
321
+ sortOptionItemsByName(items) {
322
+ return [...items].sort((a, b) => {
323
+ const field = a.name ? 'name' : 'title';
324
+ if (a[field] > b[field])
325
+ return 1;
326
+ if (a[field] < b[field])
327
+ return -1;
328
+ return 0;
329
+ });
330
+ }
331
+ }
332
+ FormFieldSelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldSelectComponent, deps: [{ token: i1$1.Store }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
333
+ FormFieldSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FormFieldSelectComponent, selector: "shared-form-field-select", inputs: { fieldData: "fieldData", form: "form" }, usesOnChanges: true, ngImport: i0, template: "<div [formGroup]=\"form\">\n <mat-form-field appearance=\"outline\"\n class=\"width100\">\n <mat-label>{{fieldData.title}}</mat-label>\n <mat-select [required]=\"fieldData.validators?.includes('required')\"\n [multiple]=\"fieldData.options.multiple\"\n [formControlName]=\"fieldData.field\">\n <mat-option *ngIf=\"fieldData.options.innerSearch\">\n <ngx-mat-select-search\n placeholderLabel=\"\u041F\u043E\u0438\u0441\u043A...\"\n [formControl]=\"searchCtrl\"></ngx-mat-select-search>\n </mat-option>\n <mat-option *ngIf=\"!fieldData.validators?.includes('required')\" value=\"0\">\n -----\n </mat-option>\n <ng-container *ngIf=\"!fieldData.options.loading\">\n <ng-container *ngIf=\"options.length\">\n <mat-option *ngFor=\"let item of options\" [value]=\"item.id\">\n {{item.name || item['title']}}\n </mat-option>\n </ng-container>\n <ng-container *ngIf=\"!options.length\">\n <mat-option>\n \u0421\u043F\u0438\u0441\u043E\u043A \u043F\u0443\u0441\u0442\n </mat-option>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"fieldData.options.loading\">\n <mat-option>\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430....</mat-option>\n </ng-container>\n </mat-select>\n <ng-container *ngIf=\"!options.length && placeholder\">\n <div @appearOpacity class=\"form-select-placeholder\">{{placeholder}}</div>\n </ng-container>\n </mat-form-field>\n</div>\n", styles: [".form-select-placeholder{position:absolute;margin-left:81px;margin-top:-3px;opacity:.8}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "component", type: i4.MatSelect, selector: "mat-select", inputs: ["disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator"], exportAs: ["matSelect"] }, { kind: "component", type: i5.MatOption, selector: "mat-option", exportAs: ["matOption"] }, { kind: "directive", type: i6.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i6.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i6.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i6.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i6.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i6.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i7.MatSelectSearchComponent, selector: "ngx-mat-select-search", inputs: ["placeholderLabel", "type", "closeIcon", "closeSvgIcon", "noEntriesFoundLabel", "clearSearchInput", "searching", "disableInitialFocus", "enableClearOnEscapePressed", "preventHomeEndKeyPropagation", "disableScrollToActiveOnOptionsChanged", "ariaLabel", "showToggleAllCheckbox", "toggleAllCheckboxChecked", "toggleAllCheckboxIndeterminate", "toggleAllCheckboxTooltipMessage", "toggleAllCheckboxTooltipPosition", "hideClearSearchButton", "alwaysRestoreSelectedOptionsMulti"], outputs: ["toggleAll"] }], animations: [appearOpacity], changeDetection: i0.ChangeDetectionStrategy.OnPush });
334
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldSelectComponent, decorators: [{
335
+ type: Component,
336
+ args: [{ selector: 'shared-form-field-select', changeDetection: ChangeDetectionStrategy.OnPush, animations: [appearOpacity], template: "<div [formGroup]=\"form\">\n <mat-form-field appearance=\"outline\"\n class=\"width100\">\n <mat-label>{{fieldData.title}}</mat-label>\n <mat-select [required]=\"fieldData.validators?.includes('required')\"\n [multiple]=\"fieldData.options.multiple\"\n [formControlName]=\"fieldData.field\">\n <mat-option *ngIf=\"fieldData.options.innerSearch\">\n <ngx-mat-select-search\n placeholderLabel=\"\u041F\u043E\u0438\u0441\u043A...\"\n [formControl]=\"searchCtrl\"></ngx-mat-select-search>\n </mat-option>\n <mat-option *ngIf=\"!fieldData.validators?.includes('required')\" value=\"0\">\n -----\n </mat-option>\n <ng-container *ngIf=\"!fieldData.options.loading\">\n <ng-container *ngIf=\"options.length\">\n <mat-option *ngFor=\"let item of options\" [value]=\"item.id\">\n {{item.name || item['title']}}\n </mat-option>\n </ng-container>\n <ng-container *ngIf=\"!options.length\">\n <mat-option>\n \u0421\u043F\u0438\u0441\u043E\u043A \u043F\u0443\u0441\u0442\n </mat-option>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"fieldData.options.loading\">\n <mat-option>\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430....</mat-option>\n </ng-container>\n </mat-select>\n <ng-container *ngIf=\"!options.length && placeholder\">\n <div @appearOpacity class=\"form-select-placeholder\">{{placeholder}}</div>\n </ng-container>\n </mat-form-field>\n</div>\n", styles: [".form-select-placeholder{position:absolute;margin-left:81px;margin-top:-3px;opacity:.8}\n"] }]
337
+ }], ctorParameters: function () { return [{ type: i1$1.Store }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { fieldData: [{
338
+ type: Input
339
+ }], form: [{
340
+ type: Input
341
+ }] } });
342
+
343
+ class FormFieldSlideToggleComponent {
344
+ }
345
+ FormFieldSlideToggleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldSlideToggleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
346
+ FormFieldSlideToggleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FormFieldSlideToggleComponent, selector: "shared-form-field-slide-toggle", inputs: { fieldData: "fieldData", form: "form" }, ngImport: i0, template: "<div [formGroup]=\"form\">\n <mat-slide-toggle\n [color]=\"'warn'\"\n [formControlName]=\"fieldData.field\">\n {{fieldData.title}}{{fieldData.validators && fieldData.validators.includes('required') ? ' *' : ''}}\n </mat-slide-toggle>\n</div>\n", styles: [""], dependencies: [{ kind: "component", type: i1$2.MatSlideToggle, selector: "mat-slide-toggle", inputs: ["disabled", "disableRipple", "color", "tabIndex"], exportAs: ["matSlideToggle"] }, { kind: "directive", type: i6.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i6.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i6.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i6.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
347
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldSlideToggleComponent, decorators: [{
348
+ type: Component,
349
+ args: [{ selector: 'shared-form-field-slide-toggle', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [formGroup]=\"form\">\n <mat-slide-toggle\n [color]=\"'warn'\"\n [formControlName]=\"fieldData.field\">\n {{fieldData.title}}{{fieldData.validators && fieldData.validators.includes('required') ? ' *' : ''}}\n </mat-slide-toggle>\n</div>\n" }]
350
+ }], propDecorators: { fieldData: [{
351
+ type: Input
352
+ }], form: [{
353
+ type: Input
354
+ }] } });
355
+
356
+ class SmartProgressBarComponent {
357
+ constructor() {
358
+ this.showValue = true;
359
+ }
360
+ }
361
+ SmartProgressBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SmartProgressBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
362
+ SmartProgressBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SmartProgressBarComponent, selector: "shared-smart-progress-bar", inputs: { value: "value", title: "title", showValue: "showValue" }, ngImport: i0, template: "<div class=\"progress\">\n <div class=\"progress-bar\"\n role=\"progressbar\"\n [title]=\"title\"\n [style]=\"{width: value + '%'}\"\n aria-valuemin=\"0\"\n aria-valuemax=\"100\"\n [class.bg-0]=\"value <= 30\"\n [class.bg-1]=\"value > 30 && value <= 40\"\n [class.bg-2]=\"value > 40 && value <= 50\"\n [class.bg-3]=\"value > 50 && value <= 60\"\n [class.bg-4]=\"value > 60 && value <= 70\"\n [class.bg-5]=\"value > 70 && value <= 85\"\n [class.bg-6]=\"value > 85\">\n <ng-container *ngIf=\"value\">\u0424\u043E\u0440\u043C\u0430 \u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u0430 \u043D\u0430 {{value}}%</ng-container>\n </div>\n</div>\n\n", styles: [".progress{display:flex;height:13px;overflow:hidden;font-size:.75rem;background-color:#e9ecef;border-radius:.25rem;margin-bottom:10px}.progress .progress-bar{font-size:12px;display:flex;flex-direction:column;justify-content:center;color:#fff;text-align:center;background-color:transparent!important;transition:all .6s ease}.progress .progress-bar.bg-0{background-color:#e72235!important}.progress .progress-bar.bg-1{background-color:#dc4835!important}.progress .progress-bar.bg-2{background-color:#c09841!important}.progress .progress-bar.bg-3{background-color:#b6962b!important}.progress .progress-bar.bg-4{background-color:#9cad04!important}.progress .progress-bar.bg-5{background-color:#548804!important}.progress .progress-bar.bg-6{background-color:#28a745!important}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
363
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SmartProgressBarComponent, decorators: [{
364
+ type: Component,
365
+ args: [{ selector: 'shared-smart-progress-bar', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"progress\">\n <div class=\"progress-bar\"\n role=\"progressbar\"\n [title]=\"title\"\n [style]=\"{width: value + '%'}\"\n aria-valuemin=\"0\"\n aria-valuemax=\"100\"\n [class.bg-0]=\"value <= 30\"\n [class.bg-1]=\"value > 30 && value <= 40\"\n [class.bg-2]=\"value > 40 && value <= 50\"\n [class.bg-3]=\"value > 50 && value <= 60\"\n [class.bg-4]=\"value > 60 && value <= 70\"\n [class.bg-5]=\"value > 70 && value <= 85\"\n [class.bg-6]=\"value > 85\">\n <ng-container *ngIf=\"value\">\u0424\u043E\u0440\u043C\u0430 \u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u0430 \u043D\u0430 {{value}}%</ng-container>\n </div>\n</div>\n\n", styles: [".progress{display:flex;height:13px;overflow:hidden;font-size:.75rem;background-color:#e9ecef;border-radius:.25rem;margin-bottom:10px}.progress .progress-bar{font-size:12px;display:flex;flex-direction:column;justify-content:center;color:#fff;text-align:center;background-color:transparent!important;transition:all .6s ease}.progress .progress-bar.bg-0{background-color:#e72235!important}.progress .progress-bar.bg-1{background-color:#dc4835!important}.progress .progress-bar.bg-2{background-color:#c09841!important}.progress .progress-bar.bg-3{background-color:#b6962b!important}.progress .progress-bar.bg-4{background-color:#9cad04!important}.progress .progress-bar.bg-5{background-color:#548804!important}.progress .progress-bar.bg-6{background-color:#28a745!important}\n"] }]
366
+ }], propDecorators: { value: [{
367
+ type: Input
368
+ }], title: [{
369
+ type: Input
370
+ }], showValue: [{
371
+ type: Input
372
+ }] } });
373
+
374
+ class FormMessageBoxComponent {
375
+ constructor(cd, baseAutoFormService) {
376
+ this.cd = cd;
377
+ this.baseAutoFormService = baseAutoFormService;
378
+ this.listErrors = [];
379
+ this.invalidFieldValidStatus = 'INVALID';
380
+ this.titleUpdate = 'Внимание! Для сохранение нужно исправить:';
381
+ this.titleAdd = 'Внимание! Необходимо исправить:';
382
+ this.unSubscribeSubject$ = new Subject();
383
+ this.fullPrefix = '_FULL';
384
+ }
385
+ ngOnInit() {
386
+ this.checkFormField();
387
+ this.subscribeToFormStatus();
388
+ this.title = this.form.value.id ? this.titleUpdate : this.titleAdd;
389
+ }
390
+ ngOnDestroy() {
391
+ this.unSubscribeSubject$.next();
392
+ this.unSubscribeSubject$.complete();
393
+ }
394
+ subscribeToFormStatus() {
395
+ this.form.statusChanges
396
+ .pipe(takeUntil(this.unSubscribeSubject$))
397
+ .subscribe(() => {
398
+ this.checkFormField();
399
+ });
400
+ }
401
+ checkFormField() {
402
+ this.listErrors = [];
403
+ const fields = this.getPreparedFields();
404
+ if (this.form.errors) {
405
+ const formErrors = Object.keys(this.form.errors);
406
+ if (formErrors.length) {
407
+ formErrors.forEach(errorKey => {
408
+ const message = this.getErrorMessage(errorKey);
409
+ this.listErrors.push(message);
410
+ });
411
+ }
412
+ }
413
+ Object.keys(this.form.controls)
414
+ .filter(controlKey => this.form.controls[controlKey].status === this.invalidFieldValidStatus)
415
+ .forEach(controlKey => {
416
+ const errors = this.form.controls[controlKey].errors;
417
+ Object.keys(errors)
418
+ .forEach(errorKey => {
419
+ let message = this.getErrorMessage(errorKey, fields[controlKey]);
420
+ if (errorKey === message && errors[errorKey]) {
421
+ message = errors[errorKey];
422
+ }
423
+ this.listErrors.push(message);
424
+ });
425
+ });
426
+ this.cd.markForCheck();
427
+ }
428
+ getPreparedFields() {
429
+ const result = {};
430
+ this.fields.forEach(fieldData => {
431
+ result[fieldData.field] = fieldData;
432
+ });
433
+ return result;
434
+ }
435
+ ;
436
+ getErrorMessage(errorKey, field) {
437
+ let baseErrorMessage = '';
438
+ if (ERRORS[errorKey]) {
439
+ baseErrorMessage = ERRORS[errorKey] ? ERRORS[errorKey].message2 : '';
440
+ }
441
+ if (!baseErrorMessage && this.errorMessageTexts && this.errorMessageTexts[errorKey]) {
442
+ baseErrorMessage = this.errorMessageTexts[`${errorKey}${this.fullPrefix}`] || this.errorMessageTexts[errorKey];
443
+ }
444
+ if (!baseErrorMessage) {
445
+ baseErrorMessage = errorKey;
446
+ }
447
+ return this.baseAutoFormService.prepareFieldError(baseErrorMessage, {
448
+ ['field']: field === null || field === void 0 ? void 0 : field.title,
449
+ });
450
+ }
451
+ }
452
+ FormMessageBoxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormMessageBoxComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$3.BaseAutoFormService }], target: i0.ɵɵFactoryTarget.Component });
453
+ FormMessageBoxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FormMessageBoxComponent, selector: "shred-form-message-box", inputs: { form: "form", fields: "fields", errorMessageTexts: "errorMessageTexts" }, ngImport: i0, template: "<ng-container *ngIf=\"!form.pristine\">\n <div @appearFromLeft *ngIf=\"listErrors && listErrors.length\" class=\"message-box error mb-10\">\n <b>{{title}}</b>\n <ul>\n <li *ngFor=\"let error of listErrors\" [innerHTML]=\"error\"></li>\n </ul>\n </div>\n</ng-container>\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], animations: [appearFromLeft], changeDetection: i0.ChangeDetectionStrategy.OnPush });
454
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormMessageBoxComponent, decorators: [{
455
+ type: Component,
456
+ args: [{ selector: 'shred-form-message-box', changeDetection: ChangeDetectionStrategy.OnPush, animations: [appearFromLeft], template: "<ng-container *ngIf=\"!form.pristine\">\n <div @appearFromLeft *ngIf=\"listErrors && listErrors.length\" class=\"message-box error mb-10\">\n <b>{{title}}</b>\n <ul>\n <li *ngFor=\"let error of listErrors\" [innerHTML]=\"error\"></li>\n </ul>\n </div>\n</ng-container>\n" }]
457
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1$3.BaseAutoFormService }]; }, propDecorators: { form: [{
458
+ type: Input
459
+ }], fields: [{
460
+ type: Input
461
+ }], errorMessageTexts: [{
462
+ type: Input
463
+ }] } });
464
+
465
+ /**
466
+ * Icon component.
467
+ * Add svg icon to any place.
468
+ * By default it uses size and color of host element or you can set predefined values by settings inputs size and color
469
+ *
470
+ * Usage:
471
+ * ````
472
+ * <shared-ui-icon icon="add"></app-ui-icon>
473
+ * <shared-ui-icon icon="add" size="xs" color="primary"></app-ui-icon>
474
+ * ````
475
+ */
476
+ class IconComponent {
477
+ constructor() {
478
+ this.size = 'normal';
479
+ this.color = 'inherit';
480
+ this.iconSize = 's-22';
481
+ }
482
+ ngOnChanges(changes) {
483
+ if (this.size === 'normal') {
484
+ this.iconSize = `s-22`;
485
+ }
486
+ if (this.size === 'small') {
487
+ this.iconSize = `s-18`;
488
+ }
489
+ }
490
+ }
491
+ IconComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
492
+ IconComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: IconComponent, selector: "shared-ui-icon", inputs: { icon: "icon", size: "size", color: "color" }, usesOnChanges: true, ngImport: i0, template: "<mat-icon\n [ngClass]=\"'icon-size-' + size + ' color-' + color + ' ' + iconSize\"\n class=\"secondary-text mat-icon notranslate material-icons\" role=\"img\" aria-hidden=\"true\">{{icon}}</mat-icon>\n", styles: [":host{display:inline-flex;align-items:center}.orange_gray{color:#c17e5d!important}.color-yellow{color:#fcb202!important}.color-red{color:#f44336!important}.color-white{color:#fff9!important}.color-black{color:#000000de!important}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i6$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
493
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IconComponent, decorators: [{
494
+ type: Component,
495
+ args: [{ selector: 'shared-ui-icon', changeDetection: ChangeDetectionStrategy.OnPush, template: "<mat-icon\n [ngClass]=\"'icon-size-' + size + ' color-' + color + ' ' + iconSize\"\n class=\"secondary-text mat-icon notranslate material-icons\" role=\"img\" aria-hidden=\"true\">{{icon}}</mat-icon>\n", styles: [":host{display:inline-flex;align-items:center}.orange_gray{color:#c17e5d!important}.color-yellow{color:#fcb202!important}.color-red{color:#f44336!important}.color-white{color:#fff9!important}.color-black{color:#000000de!important}\n"] }]
496
+ }], propDecorators: { icon: [{
497
+ type: Input
498
+ }], size: [{
499
+ type: Input
500
+ }], color: [{
501
+ type: Input
502
+ }] } });
503
+
504
+ class ButtonComponent {
505
+ constructor() {
506
+ this.icon = '';
507
+ this.rightIcon = '';
508
+ this.disabled = false;
509
+ this.loading = false;
510
+ this.active = false;
511
+ this.stopPropagation = false;
512
+ this.type = 'button';
513
+ this.color = '';
514
+ this.size = 'normal';
515
+ this.styleTheme = 'basic';
516
+ this.tooltipPosition = 'above';
517
+ this.clickButton = new EventEmitter();
518
+ this.context = { size: 'normal', iconSize: 'normal', disabled: false };
519
+ this.spinnerDiameter = 30;
520
+ }
521
+ ngOnInit() {
522
+ this.context.buttonIconSize = this.iconSize ? this.iconSize : this.size;
523
+ this.calculateSpinnerDiameter();
524
+ }
525
+ ngOnChanges(changes) {
526
+ if (changes['loading']) {
527
+ this.context.loading = changes['loading'].currentValue;
528
+ }
529
+ if (changes['iconColor'] && changes['iconColor'].currentValue) {
530
+ this.context.iconColor = changes['iconColor'].currentValue;
531
+ }
532
+ if (changes['color'] && changes['color'].currentValue) {
533
+ this.context.color = changes['color'].currentValue;
534
+ }
535
+ if (changes['buttonIconSize'] && changes['buttonIconSize'].currentValue) {
536
+ this.context.buttonIconSize = changes['buttonIconSize'].currentValue;
537
+ }
538
+ if (changes['icon'] && changes['icon'].currentValue) {
539
+ this.context.icon = changes['icon'].currentValue;
540
+ }
541
+ if (changes['disabled'] && changes['disabled'].currentValue) {
542
+ this.context.disabled = changes['disabled'].currentValue;
543
+ }
544
+ }
545
+ calculateSpinnerDiameter() {
546
+ switch (this.size) {
547
+ case 'normal':
548
+ this.spinnerDiameter = 30;
549
+ break;
550
+ }
551
+ }
552
+ onClick(evt) {
553
+ if (this.stopPropagation) {
554
+ evt.preventDefault();
555
+ evt.stopPropagation();
556
+ }
557
+ if (!this.disabled) {
558
+ this.clickButton.emit(true);
559
+ }
560
+ }
561
+ }
562
+ ButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
563
+ ButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: ButtonComponent, selector: "shared-button", inputs: { icon: "icon", iconColor: "iconColor", iconSize: "iconSize", rightIcon: "rightIcon", disabled: "disabled", loading: "loading", active: "active", stopPropagation: "stopPropagation", type: "type", color: "color", size: "size", styleTheme: "styleTheme", tooltip: "tooltip", tooltipPosition: "tooltipPosition" }, outputs: { clickButton: "clickButton" }, usesOnChanges: true, ngImport: i0, template: "<button\n *ngIf=\"styleTheme === 'basic'\"\n mat-button\n class=\"button-effect\"\n [color]=\"'accent'\"\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [ngClass]=\"[size]\"\n [matTooltip]=\"tooltip\"\n [matTooltipPosition]=\"tooltipPosition\"\n [matTooltipDisabled]=\"disabled\"\n (click)=\"onClick($event)\"\n [class.active]=\"active\"\n [class.has-right-icon]=\"rightIcon\">\n <ng-container *ngTemplateOutlet=\"innerButton; context: context\"></ng-container>\n</button>\n<button\n *ngIf=\"styleTheme === 'raised'\"\n mat-raised-button\n class=\"button-effect\"\n [color]=\"color\"\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [ngClass]=\"[size]\"\n [matTooltip]=\"tooltip\"\n [matTooltipPosition]=\"tooltipPosition\"\n [matTooltipDisabled]=\"disabled\"\n (click)=\"onClick($event)\"\n [class.active]=\"active\"\n [class.has-right-icon]=\"rightIcon\">\n <ng-container *ngTemplateOutlet=\"innerButton; context: context\"></ng-container>\n</button>\n<button\n *ngIf=\"styleTheme === 'stroked'\"\n mat-stroked-button\n [color]=\"color\"\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [ngClass]=\"[size]\"\n [matTooltip]=\"tooltip\"\n [matTooltipPosition]=\"tooltipPosition\"\n [matTooltipDisabled]=\"disabled\"\n (click)=\"onClick($event)\"\n [class.active]=\"active\"\n [class.has-right-icon]=\"rightIcon\">\n <ng-container *ngTemplateOutlet=\"innerButton; context: context\"></ng-container>\n</button>\n<button\n *ngIf=\"styleTheme === 'flat'\"\n mat-flat-button\n [color]=\"color\"\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [ngClass]=\"[size]\"\n [matTooltip]=\"tooltip\"\n [matTooltipPosition]=\"tooltipPosition\"\n [matTooltipDisabled]=\"disabled\"\n (click)=\"onClick($event)\"\n [class.active]=\"active\"\n [class.has-right-icon]=\"rightIcon\">\n <ng-container\n *ngTemplateOutlet=\"innerButton; context:{loading: loading, icon: icon, color: color, size: size}\"></ng-container>\n</button>\n<button\n *ngIf=\"styleTheme === 'fab'\"\n mat-fab\n [color]=\"color\"\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [ngClass]=\"[size]\"\n [matTooltip]=\"tooltip\"\n [matTooltipPosition]=\"tooltipPosition\"\n [matTooltipDisabled]=\"disabled\"\n (click)=\"onClick($event)\"\n [class.active]=\"active\"\n [class.has-right-icon]=\"rightIcon\">\n <ng-container *ngTemplateOutlet=\"innerButton; context: context\"></ng-container>\n</button>\n<button\n *ngIf=\"styleTheme === 'mini-fab'\"\n mat-mini-fab\n [color]=\"color\"\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [ngClass]=\"[size]\"\n [matTooltip]=\"tooltip\"\n [matTooltipPosition]=\"tooltipPosition\"\n [matTooltipDisabled]=\"disabled\"\n (click)=\"onClick($event)\"\n [class.active]=\"active\"\n [class.has-right-icon]=\"rightIcon\">\n <ng-container *ngTemplateOutlet=\"innerButton; context: context\"></ng-container>\n</button>\n<ng-template #innerButton\n let-loading=\"loading\"\n let-iconColor=\"iconColor\"\n let-buttonIconSize=\"buttonIconSize\"\n let-icon=\"icon\"\n let-disabled=\"disabled\">\n <shared-ui-icon *ngIf=\"icon\"\n [color]=\"iconColor\"\n [size]=\"buttonIconSize\"\n [icon]=\"icon\"\n [ngClass]=\"[icon]\"></shared-ui-icon>\n <span @appearOpacity\n class=\"text\"\n #text>\n <ng-content></ng-content>\n </span>\n <shared-spinner\n @spinnerAnimation\n *ngIf=\"loading\"\n class=\"loader button-loader\"\n [diameter]=\"spinnerDiameter\"></shared-spinner>\n <div *ngIf=\"!disabled && !loading\" class=\"button-effect-spans\">\n <span class=\"button-effect-span\"></span>\n <span class=\"button-effect-span\"></span>\n <span class=\"button-effect-span\"></span>\n <span class=\"button-effect-span\"></span>\n </div>\n</ng-template>\n", styles: ["shared-ui-icon{margin-left:0!important;margin-right:5px!important}.button-loader{position:absolute}button{line-height:normal;margin:0}button .mdc-button__label{display:flex;align-items:center}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2$1.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "component", type: IconComponent, selector: "shared-ui-icon", inputs: ["icon", "size", "color"] }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "component", type: i5$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i5$1.MatMiniFabButton, selector: "button[mat-mini-fab]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i5$1.MatFabButton, selector: "button[mat-fab]", inputs: ["disabled", "disableRipple", "color", "tabIndex", "extended"], exportAs: ["matButton"] }], animations: [
564
+ trigger('spinnerAnimation', [
565
+ transition(':enter', [
566
+ animate('300ms', keyframes([
567
+ style({ opacity: 0, transform: 'translateY(-10px)', offset: 0 }),
568
+ style({ opacity: 1, transform: 'translateY(0)', offset: 1 }),
569
+ ]))
570
+ ]),
571
+ transition(':leave', [
572
+ animate('200ms', keyframes([
573
+ style({ opacity: 1, transform: 'translateY(0)', offset: 0 }),
574
+ style({ opacity: 0, transform: 'translateY(-10px)', offset: 1 }),
575
+ ]))
576
+ ])
577
+ ]),
578
+ appearOpacity
579
+ ], changeDetection: i0.ChangeDetectionStrategy.OnPush });
580
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ButtonComponent, decorators: [{
581
+ type: Component,
582
+ args: [{ selector: 'shared-button', changeDetection: ChangeDetectionStrategy.OnPush, animations: [
583
+ trigger('spinnerAnimation', [
584
+ transition(':enter', [
585
+ animate('300ms', keyframes([
586
+ style({ opacity: 0, transform: 'translateY(-10px)', offset: 0 }),
587
+ style({ opacity: 1, transform: 'translateY(0)', offset: 1 }),
588
+ ]))
589
+ ]),
590
+ transition(':leave', [
591
+ animate('200ms', keyframes([
592
+ style({ opacity: 1, transform: 'translateY(0)', offset: 0 }),
593
+ style({ opacity: 0, transform: 'translateY(-10px)', offset: 1 }),
594
+ ]))
595
+ ])
596
+ ]),
597
+ appearOpacity
598
+ ], template: "<button\n *ngIf=\"styleTheme === 'basic'\"\n mat-button\n class=\"button-effect\"\n [color]=\"'accent'\"\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [ngClass]=\"[size]\"\n [matTooltip]=\"tooltip\"\n [matTooltipPosition]=\"tooltipPosition\"\n [matTooltipDisabled]=\"disabled\"\n (click)=\"onClick($event)\"\n [class.active]=\"active\"\n [class.has-right-icon]=\"rightIcon\">\n <ng-container *ngTemplateOutlet=\"innerButton; context: context\"></ng-container>\n</button>\n<button\n *ngIf=\"styleTheme === 'raised'\"\n mat-raised-button\n class=\"button-effect\"\n [color]=\"color\"\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [ngClass]=\"[size]\"\n [matTooltip]=\"tooltip\"\n [matTooltipPosition]=\"tooltipPosition\"\n [matTooltipDisabled]=\"disabled\"\n (click)=\"onClick($event)\"\n [class.active]=\"active\"\n [class.has-right-icon]=\"rightIcon\">\n <ng-container *ngTemplateOutlet=\"innerButton; context: context\"></ng-container>\n</button>\n<button\n *ngIf=\"styleTheme === 'stroked'\"\n mat-stroked-button\n [color]=\"color\"\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [ngClass]=\"[size]\"\n [matTooltip]=\"tooltip\"\n [matTooltipPosition]=\"tooltipPosition\"\n [matTooltipDisabled]=\"disabled\"\n (click)=\"onClick($event)\"\n [class.active]=\"active\"\n [class.has-right-icon]=\"rightIcon\">\n <ng-container *ngTemplateOutlet=\"innerButton; context: context\"></ng-container>\n</button>\n<button\n *ngIf=\"styleTheme === 'flat'\"\n mat-flat-button\n [color]=\"color\"\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [ngClass]=\"[size]\"\n [matTooltip]=\"tooltip\"\n [matTooltipPosition]=\"tooltipPosition\"\n [matTooltipDisabled]=\"disabled\"\n (click)=\"onClick($event)\"\n [class.active]=\"active\"\n [class.has-right-icon]=\"rightIcon\">\n <ng-container\n *ngTemplateOutlet=\"innerButton; context:{loading: loading, icon: icon, color: color, size: size}\"></ng-container>\n</button>\n<button\n *ngIf=\"styleTheme === 'fab'\"\n mat-fab\n [color]=\"color\"\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [ngClass]=\"[size]\"\n [matTooltip]=\"tooltip\"\n [matTooltipPosition]=\"tooltipPosition\"\n [matTooltipDisabled]=\"disabled\"\n (click)=\"onClick($event)\"\n [class.active]=\"active\"\n [class.has-right-icon]=\"rightIcon\">\n <ng-container *ngTemplateOutlet=\"innerButton; context: context\"></ng-container>\n</button>\n<button\n *ngIf=\"styleTheme === 'mini-fab'\"\n mat-mini-fab\n [color]=\"color\"\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [ngClass]=\"[size]\"\n [matTooltip]=\"tooltip\"\n [matTooltipPosition]=\"tooltipPosition\"\n [matTooltipDisabled]=\"disabled\"\n (click)=\"onClick($event)\"\n [class.active]=\"active\"\n [class.has-right-icon]=\"rightIcon\">\n <ng-container *ngTemplateOutlet=\"innerButton; context: context\"></ng-container>\n</button>\n<ng-template #innerButton\n let-loading=\"loading\"\n let-iconColor=\"iconColor\"\n let-buttonIconSize=\"buttonIconSize\"\n let-icon=\"icon\"\n let-disabled=\"disabled\">\n <shared-ui-icon *ngIf=\"icon\"\n [color]=\"iconColor\"\n [size]=\"buttonIconSize\"\n [icon]=\"icon\"\n [ngClass]=\"[icon]\"></shared-ui-icon>\n <span @appearOpacity\n class=\"text\"\n #text>\n <ng-content></ng-content>\n </span>\n <shared-spinner\n @spinnerAnimation\n *ngIf=\"loading\"\n class=\"loader button-loader\"\n [diameter]=\"spinnerDiameter\"></shared-spinner>\n <div *ngIf=\"!disabled && !loading\" class=\"button-effect-spans\">\n <span class=\"button-effect-span\"></span>\n <span class=\"button-effect-span\"></span>\n <span class=\"button-effect-span\"></span>\n <span class=\"button-effect-span\"></span>\n </div>\n</ng-template>\n", styles: ["shared-ui-icon{margin-left:0!important;margin-right:5px!important}.button-loader{position:absolute}button{line-height:normal;margin:0}button .mdc-button__label{display:flex;align-items:center}\n"] }]
599
+ }], ctorParameters: function () { return []; }, propDecorators: { icon: [{
600
+ type: Input
601
+ }], iconColor: [{
602
+ type: Input
603
+ }], iconSize: [{
604
+ type: Input
605
+ }], rightIcon: [{
606
+ type: Input
607
+ }], disabled: [{
608
+ type: Input
609
+ }], loading: [{
610
+ type: Input
611
+ }], active: [{
612
+ type: Input
613
+ }], stopPropagation: [{
614
+ type: Input
615
+ }], type: [{
616
+ type: Input
617
+ }], color: [{
618
+ type: Input
619
+ }], size: [{
620
+ type: Input
621
+ }], styleTheme: [{
622
+ type: Input
623
+ }], tooltip: [{
624
+ type: Input
625
+ }], tooltipPosition: [{
626
+ type: Input
627
+ }], clickButton: [{
628
+ type: Output
629
+ }] } });
630
+
631
+ class PublicationMessagesComponent {
632
+ constructor(publicationMessagesFacade, autoFormService, cd) {
633
+ this.publicationMessagesFacade = publicationMessagesFacade;
634
+ this.autoFormService = autoFormService;
635
+ this.cd = cd;
636
+ this.config = { needToPublish: true };
637
+ this.scrollToField = new EventEmitter();
638
+ this.errorOpened = false;
639
+ this.messagesOpened = false;
640
+ this.publishedTitle = 'Позиция опубликована до';
641
+ this.unPublishedTitle = 'Внимание позиция еще НЕ опубликована';
642
+ this.unPublishedMessage = 'Для публикации позиции нужно заполнить все поля и нажать на кнопку ОПУБЛИКОВАТЬ';
643
+ this.errorTitleSource = 'Для публикации Вам обязательно нужно исправить <b>${pointCount}</b> пункт(а/ов)';
644
+ this.recommendationTitleSource = 'Мы также рекомендуем Вам исправить <b>${pointCount}</b> пункт(а/ов)';
645
+ this.errorTitle = '';
646
+ this.recommendationTitle = '';
647
+ this.publishErrorConstants = PublishErrors;
648
+ this.itemPublishFinishedField = 'publishFinishedAt';
649
+ this.itemPublishFinishedAt = '';
650
+ this.itemPublishFinishedAtTmp = '';
651
+ }
652
+ ngOnInit() {
653
+ this.subscribeToFormChanges();
654
+ this.definitionPublicationMessages();
655
+ }
656
+ ngOnDestroy() {
657
+ }
658
+ ngOnChanges(changes) {
659
+ var _a;
660
+ if ((_a = changes === null || changes === void 0 ? void 0 : changes.form) === null || _a === void 0 ? void 0 : _a.currentValue.value[this.itemPublishFinishedField]) {
661
+ this.updateItemPublishFinishAt(changes.form.currentValue.value[this.itemPublishFinishedField]);
662
+ }
663
+ }
664
+ showScrollToFieldMethod(field) {
665
+ this.scrollToField.emit(field);
666
+ }
667
+ subscribeToFormChanges() {
668
+ this.form.valueChanges
669
+ .pipe(untilComponentDestroyed(this))
670
+ .subscribe((data) => {
671
+ this.updateItemPublishFinishAt(data === null || data === void 0 ? void 0 : data.publishFinishedAt);
672
+ });
673
+ }
674
+ updateItemPublishFinishAt(itemPublishFinishedAt) {
675
+ if (this.itemPublishFinishedAtTmp !== itemPublishFinishedAt) {
676
+ this.itemPublishFinishedAt = itemPublishFinishedAt;
677
+ this.itemPublishFinishedAtTmp = itemPublishFinishedAt;
678
+ this.cd.markForCheck();
679
+ }
680
+ }
681
+ definitionPublicationMessages() {
682
+ var _a;
683
+ if (typeof this.entity === 'string') {
684
+ this.publicationMessagesFacade.getPublicationMessage((_a = this.entity) === null || _a === void 0 ? void 0 : _a.toLowerCase(), this.itemId)
685
+ .pipe(untilComponentDestroyed(this))
686
+ .subscribe((messages) => {
687
+ if (messages === null || messages === void 0 ? void 0 : messages.length) {
688
+ const tmpErrors = this.filterMessages(true, messages);
689
+ this.errors = this.prepareErrors(tmpErrors);
690
+ const tmpRecommendation = this.filterMessages(false, messages);
691
+ this.recommendation = this.prepareErrors(tmpRecommendation);
692
+ if (this.errors.length) {
693
+ this.errorTitle = this.errorTitleSource.replace('${pointCount}', String(this.errors.length));
694
+ }
695
+ if (this.recommendation.length) {
696
+ this.recommendationTitle = this.recommendationTitleSource.replace('${pointCount}', String(this.recommendation.length));
697
+ }
698
+ }
699
+ else {
700
+ this.errors = [];
701
+ this.recommendation = [];
702
+ }
703
+ this.cd.markForCheck();
704
+ });
705
+ }
706
+ else {
707
+ console.error('[ publish-messages ][ entity-type ]', { entity: this.entity }, 'INCORRECT_ENTITY_TYPE');
708
+ }
709
+ }
710
+ filterMessages(error = false, messages) {
711
+ return messages.filter(item => item.isError === error);
712
+ }
713
+ toggleExpand(isError = false) {
714
+ if (isError) {
715
+ this.errorOpened = !this.errorOpened;
716
+ }
717
+ else {
718
+ this.messagesOpened = !this.messagesOpened;
719
+ }
720
+ this.cd.markForCheck();
721
+ }
722
+ truckByField(index, item) {
723
+ return item.field;
724
+ }
725
+ prepareErrors(messages) {
726
+ return this.autoFormService.prepareFormFieldPublicationMessage(messages, this.publishErrorConstants, this.fields);
727
+ }
728
+ }
729
+ PublicationMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PublicationMessagesComponent, deps: [{ token: i1$4.PublicationMessagesFacade }, { token: i2$2.AutoFormService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
730
+ PublicationMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PublicationMessagesComponent, selector: "shared-publication-messages", inputs: { entity: "entity", form: "form", itemId: "itemId", fields: "fields", config: "config" }, outputs: { scrollToField: "scrollToField" }, usesOnChanges: true, ngImport: i0, template: "<div *ngIf=\"itemPublishFinishedAt\" @appearFromLeftWithDelay class=\"message-box success mb-10\">\n <div>{{publishedTitle}} <b>{{itemPublishFinishedAt| date : 'MMM d, y'}}</b></div>\n</div>\n<div *ngIf=\"!itemPublishFinishedAt && config.needToPublish\" @appearFromLeftWithDelay class=\"message-box error mb-10\">\n <div>{{unPublishedTitle}}</div>\n <div class=\"fs-12 pt-0\">{{unPublishedMessage}}</div>\n</div>\n<ng-container *ngIf=\"errors?.length\">\n <ng-container *ngTemplateOutlet=\"listMessages; context: {title: errorTitle, isError: true, messages: errors}\"></ng-container>\n</ng-container>\n<ng-container *ngIf=\"recommendation?.length\">\n <ng-container *ngTemplateOutlet=\"listMessages; context: {title: recommendationTitle, isError: false, messages: recommendation}\"></ng-container>\n</ng-container>\n<ng-template #listMessages let-title=\"title\" let-isError=\"isError\" let-messages=\"messages\">\n <div class=\"publish-messages mb-10\"\n [ngClass]=\"{'error-messages': isError, 'warning-messages': !isError}\">\n <div class=\"title cursor-pointer\"\n fxLayout=\"row\"\n fxLayoutAlign=\"space-between center\"\n (click)=\"toggleExpand(isError)\">\n <div fxLayout=\"row\" fxLayoutAlign=\"left center\">\n <mat-icon class=\"f-28 ml-10 mr-20\">{{isError? 'error' : 'report_problem'}}</mat-icon>\n <h4 [innerHTML]=\"title\"></h4>\n </div>\n <shared-button\n color=\"basic\"\n iconColor=\"orange_gray\"\n size=\"large\"\n [icon]=\"(isError && errorOpened) || (!isError && messagesOpened) ? 'keyboard_arrow_up' : 'keyboard_arrow_down'\"></shared-button>\n </div>\n <div *ngIf=\"(errorOpened && isError) || (messagesOpened && !isError)\"\n [@expandCollapse]\n class=\"publish-messages-list\">\n <div *ngFor=\"let messageData of messages;trackBy: truckByField\" class=\"mb-10\">\n <shared-panel [title]=\"messageData.title\"\n [description]=\"messageData.description\"\n color=\"red-light\"\n buttonColor=\"accent\"\n ></shared-panel>\n <a class=\"cursor-pointer color-grey fs-12\" (click)=\"showScrollToFieldMethod(messageData.field)\">\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043F\u043E\u043B\u0435</a>\n </div>\n </div>\n </div>\n</ng-template>\n<div *ngIf=\"errors?.length || recommendation?.length\" fxLayout=\"row\" fxLayoutAlign=\"end center\" class=\"fs-12\">\n \u0415\u0441\u043B\u0438 \u0443 \u0412\u0430\u0441 \u0435\u0441\u0442\u044C \u0432\u043E\u043F\u0440\u043E\u0441\u044B \u043F\u043E \u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0446\u0438\u0438 \u043F\u0438\u0448\u0438\u0442\u0435 \u0432 <a class=\"pl-5\" href=\"mailto:support@world-travel.uz\">support@world-travel.uz</a>\n</div>\n", styles: [".publish-messages{border-radius:8px;overflow:hidden}.publish-messages.error-messages{background:linear-gradient(90deg,#ef847c,#f190af)}.publish-messages.error-messages .title{background:#f44336;background:linear-gradient(to bottom,#f44336,#af3b32);color:#fff}.publish-messages.warning-messages{background:linear-gradient(260deg,#faf0cd,#fab397)}.publish-messages.warning-messages .title{background:#e28d0b;background:linear-gradient(to bottom,#ffb646,#e28d0b);color:#fff}.publish-messages .title{padding:10px;border-top-left-radius:8px;border-top-right-radius:8px;text-shadow:0 0 6px rgba(56,56,56,.5803921569);font-size:16px}.publish-messages .publish-messages-list{padding:10px}.publish-messages .h4,.publish-messages h4{cursor:pointer}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i4$1.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i4$1.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "component", type: i6$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i6$2.PanelComponent, selector: "shared-panel", inputs: ["title", "smallDescription", "description", "color", "buttonColor"], outputs: ["close"] }, { kind: "component", type: ButtonComponent, selector: "shared-button", inputs: ["icon", "iconColor", "iconSize", "rightIcon", "disabled", "loading", "active", "stopPropagation", "type", "color", "size", "styleTheme", "tooltip", "tooltipPosition"], outputs: ["clickButton"] }, { kind: "pipe", type: i1.DatePipe, name: "date" }], animations: [expandCollapse, appearFromLeftWithDelay], changeDetection: i0.ChangeDetectionStrategy.OnPush });
731
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PublicationMessagesComponent, decorators: [{
732
+ type: Component,
733
+ args: [{ selector: 'shared-publication-messages', animations: [expandCollapse, appearFromLeftWithDelay], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div *ngIf=\"itemPublishFinishedAt\" @appearFromLeftWithDelay class=\"message-box success mb-10\">\n <div>{{publishedTitle}} <b>{{itemPublishFinishedAt| date : 'MMM d, y'}}</b></div>\n</div>\n<div *ngIf=\"!itemPublishFinishedAt && config.needToPublish\" @appearFromLeftWithDelay class=\"message-box error mb-10\">\n <div>{{unPublishedTitle}}</div>\n <div class=\"fs-12 pt-0\">{{unPublishedMessage}}</div>\n</div>\n<ng-container *ngIf=\"errors?.length\">\n <ng-container *ngTemplateOutlet=\"listMessages; context: {title: errorTitle, isError: true, messages: errors}\"></ng-container>\n</ng-container>\n<ng-container *ngIf=\"recommendation?.length\">\n <ng-container *ngTemplateOutlet=\"listMessages; context: {title: recommendationTitle, isError: false, messages: recommendation}\"></ng-container>\n</ng-container>\n<ng-template #listMessages let-title=\"title\" let-isError=\"isError\" let-messages=\"messages\">\n <div class=\"publish-messages mb-10\"\n [ngClass]=\"{'error-messages': isError, 'warning-messages': !isError}\">\n <div class=\"title cursor-pointer\"\n fxLayout=\"row\"\n fxLayoutAlign=\"space-between center\"\n (click)=\"toggleExpand(isError)\">\n <div fxLayout=\"row\" fxLayoutAlign=\"left center\">\n <mat-icon class=\"f-28 ml-10 mr-20\">{{isError? 'error' : 'report_problem'}}</mat-icon>\n <h4 [innerHTML]=\"title\"></h4>\n </div>\n <shared-button\n color=\"basic\"\n iconColor=\"orange_gray\"\n size=\"large\"\n [icon]=\"(isError && errorOpened) || (!isError && messagesOpened) ? 'keyboard_arrow_up' : 'keyboard_arrow_down'\"></shared-button>\n </div>\n <div *ngIf=\"(errorOpened && isError) || (messagesOpened && !isError)\"\n [@expandCollapse]\n class=\"publish-messages-list\">\n <div *ngFor=\"let messageData of messages;trackBy: truckByField\" class=\"mb-10\">\n <shared-panel [title]=\"messageData.title\"\n [description]=\"messageData.description\"\n color=\"red-light\"\n buttonColor=\"accent\"\n ></shared-panel>\n <a class=\"cursor-pointer color-grey fs-12\" (click)=\"showScrollToFieldMethod(messageData.field)\">\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043F\u043E\u043B\u0435</a>\n </div>\n </div>\n </div>\n</ng-template>\n<div *ngIf=\"errors?.length || recommendation?.length\" fxLayout=\"row\" fxLayoutAlign=\"end center\" class=\"fs-12\">\n \u0415\u0441\u043B\u0438 \u0443 \u0412\u0430\u0441 \u0435\u0441\u0442\u044C \u0432\u043E\u043F\u0440\u043E\u0441\u044B \u043F\u043E \u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0446\u0438\u0438 \u043F\u0438\u0448\u0438\u0442\u0435 \u0432 <a class=\"pl-5\" href=\"mailto:support@world-travel.uz\">support@world-travel.uz</a>\n</div>\n", styles: [".publish-messages{border-radius:8px;overflow:hidden}.publish-messages.error-messages{background:linear-gradient(90deg,#ef847c,#f190af)}.publish-messages.error-messages .title{background:#f44336;background:linear-gradient(to bottom,#f44336,#af3b32);color:#fff}.publish-messages.warning-messages{background:linear-gradient(260deg,#faf0cd,#fab397)}.publish-messages.warning-messages .title{background:#e28d0b;background:linear-gradient(to bottom,#ffb646,#e28d0b);color:#fff}.publish-messages .title{padding:10px;border-top-left-radius:8px;border-top-right-radius:8px;text-shadow:0 0 6px rgba(56,56,56,.5803921569);font-size:16px}.publish-messages .publish-messages-list{padding:10px}.publish-messages .h4,.publish-messages h4{cursor:pointer}\n"] }]
734
+ }], ctorParameters: function () { return [{ type: i1$4.PublicationMessagesFacade }, { type: i2$2.AutoFormService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { entity: [{
735
+ type: Input
736
+ }], form: [{
737
+ type: Input
738
+ }], itemId: [{
739
+ type: Input
740
+ }], fields: [{
741
+ type: Input
742
+ }], config: [{
743
+ type: Input
744
+ }], scrollToField: [{
745
+ type: Output
746
+ }] } });
747
+
748
+ class AutoFormMainComponent {
749
+ constructor(formErrors, formsFacade, publicationMessagesFacade, authenticationService, cd) {
750
+ this.formErrors = formErrors;
751
+ this.formsFacade = formsFacade;
752
+ this.publicationMessagesFacade = publicationMessagesFacade;
753
+ this.authenticationService = authenticationService;
754
+ this.cd = cd;
755
+ this.showPublicationMessages = false;
756
+ this.editorImageUploadUrl = '';
757
+ this.havePublication = true;
758
+ this.config = { needToPublish: true };
759
+ this.changed = new EventEmitter();
760
+ this.formCompleted = new EventEmitter();
761
+ this.unSubscribeSubject$ = new Subject();
762
+ this.object_ = Object;
763
+ this.dataStored = false;
764
+ this.dataStoredTitle = 'Данные сохранены';
765
+ this.formSaveErrorKey = 'FORM_SAVE_ERROR';
766
+ this.groupsState = {};
767
+ }
768
+ ngOnInit() {
769
+ if (this.itemId) {
770
+ this.dataStored = true;
771
+ }
772
+ this.storedFormValue = this.form.value;
773
+ this.groupFields();
774
+ this.subscribeToFormErrors();
775
+ this.subscribeToFormStatus();
776
+ this.subscribeToFormChanges();
777
+ this.subscribeToPublicationMessages();
778
+ }
779
+ ngOnDestroy() {
780
+ this.unSubscribeSubject$.next();
781
+ this.unSubscribeSubject$.complete();
782
+ }
783
+ groupFields() {
784
+ var _a;
785
+ this.groupedFields = {};
786
+ this.fields.filter(formField => { var _a; return !((_a = formField.options) === null || _a === void 0 ? void 0 : _a.notEditable); })
787
+ .forEach(formField => {
788
+ var _a;
789
+ const groupName = ((_a = formField.options) === null || _a === void 0 ? void 0 : _a.groupName) || '';
790
+ if (!this.groupedFields[groupName]) {
791
+ this.groupedFields[groupName] = [];
792
+ }
793
+ this.groupedFields[groupName].push(Object.assign({}, formField));
794
+ });
795
+ (_a = Object.keys(this.groupedFields)) === null || _a === void 0 ? void 0 : _a.forEach((group, index) => {
796
+ this.groupsState[group] = index === 0;
797
+ });
798
+ }
799
+ truckByFieldName(index, item) {
800
+ return item.field;
801
+ }
802
+ scrollToField(field) {
803
+ var _a;
804
+ const fieldGroup = (_a = this.fields.find(item => item.field === field)) === null || _a === void 0 ? void 0 : _a.options.groupName;
805
+ this.groupsState[fieldGroup] = 1;
806
+ setTimeout(() => {
807
+ let el = document.getElementById(`field-${field}`);
808
+ el.scrollIntoView();
809
+ }, 0);
810
+ }
811
+ subscribeToFormErrors() {
812
+ this.formErrors.getFormErrors(this.formId)
813
+ .pipe(takeUntil(this.unSubscribeSubject$), filter((errors) => !!(errors && errors.length)))
814
+ .subscribe((errors) => {
815
+ if (errors && errors.length) {
816
+ errors.forEach(error => {
817
+ const { field, code } = error;
818
+ if (field && code) {
819
+ const control = this.form.get(field);
820
+ if (control) {
821
+ const codeUpperCase = code.toUpperCase();
822
+ control.setErrors({ [codeUpperCase]: codeUpperCase });
823
+ control.markAsDirty();
824
+ control.markAsTouched();
825
+ }
826
+ }
827
+ });
828
+ this.cd.markForCheck();
829
+ }
830
+ });
831
+ }
832
+ subscribeToFormStatus() {
833
+ this.formsFacade.initForm({
834
+ formId: this.formId,
835
+ loading: false
836
+ });
837
+ this.formsFacade.getForm(this.formId)
838
+ .pipe(takeUntil(this.unSubscribeSubject$))
839
+ .subscribe((form) => {
840
+ if (form.isComplete) {
841
+ this.formCompleted.emit({ newId: form.data.itemId });
842
+ }
843
+ if (form && form.isComplete) {
844
+ if (!form.hasError) {
845
+ this.dataStored = true;
846
+ }
847
+ else {
848
+ this.form.setErrors({ [this.formSaveErrorKey]: this.formSaveErrorKey });
849
+ }
850
+ this.cd.markForCheck();
851
+ }
852
+ });
853
+ }
854
+ subscribeToFormChanges() {
855
+ this.form.valueChanges
856
+ .pipe(takeUntil(this.unSubscribeSubject$))
857
+ .subscribe((formValue) => {
858
+ const areEquals = this.areObjectsEquals(formValue, this.storedFormValue);
859
+ if (!areEquals) {
860
+ this.storedFormValue = formValue;
861
+ }
862
+ this.dataStored = areEquals;
863
+ this.changed.emit({ valueChanged: !areEquals });
864
+ });
865
+ }
866
+ groupClick(groupName) {
867
+ this.groupsState[groupName] = !this.groupsState[groupName];
868
+ }
869
+ areObjectsEquals(a, b) {
870
+ return Object.keys(a)
871
+ .every(field => {
872
+ let theyEqual;
873
+ if (isObject(a[field])) {
874
+ if (isObject(b[field])) {
875
+ theyEqual = this.areObjectsEquals(a[field], b[field]);
876
+ }
877
+ else {
878
+ theyEqual = false;
879
+ }
880
+ }
881
+ else {
882
+ theyEqual = a[field] === b[field];
883
+ }
884
+ return theyEqual;
885
+ });
886
+ }
887
+ subscribeToPublicationMessages() {
888
+ if (this.itemId) {
889
+ this.publicationMessagesFacade.getPublicationMessage(this.entity, this.itemId)
890
+ .pipe(takeUntil(this.unSubscribeSubject$))
891
+ .subscribe((publicationMessages) => {
892
+ this.allPublicationMessages = publicationMessages;
893
+ });
894
+ }
895
+ }
896
+ }
897
+ AutoFormMainComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AutoFormMainComponent, deps: [{ token: i1$5.FormErrorsFacade }, { token: i2$3.FormsFacade }, { token: i1$4.PublicationMessagesFacade }, { token: i4$2.AuthenticationService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
898
+ AutoFormMainComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: AutoFormMainComponent, selector: "shared-auto-form", inputs: { fields: "fields", itemId: "itemId", formId: "formId", showPublicationMessages: "showPublicationMessages", form: "form", editorImageUploadUrl: "editorImageUploadUrl", errorMessageTexts: "errorMessageTexts", entity: "entity", havePublication: "havePublication", config: "config" }, outputs: { changed: "changed", formCompleted: "formCompleted" }, ngImport: i0, template: "<shared-smart-progress-bar *ngIf=\"storedFormValue._occupancyRating\"\n [value]=\"storedFormValue._occupancyRating\"\n [title]=\"'\u0423\u0440\u043E\u0432\u0435\u043D\u044C \u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u043D\u043E\u0441\u0442\u0438 \u0444\u043E\u0440\u043C\u044B'\"></shared-smart-progress-bar>\n\n<ng-container *ngIf=\"showPublicationMessages && fields?.length\">\n <ng-container\n *ngTemplateOutlet=\"publicationMessages, context: {form: form, entity: entity, itemId: itemId, fields: fields}\"></ng-container>\n</ng-container>\n\n<div *ngFor=\"let group of object_.keys(groupedFields); trackBy: truckByFieldName\"\n class=\"form-group\"\n [ngClass]=\"{'form-group-open': groupsState[group]}\">\n <h2 *ngIf=\"group\" class=\"form-field-group-title\" (click)=\"groupClick(group)\">\n <mat-icon class=\"fs-20 field-group-icon\">expand_more</mat-icon>\n {{group}}\n </h2>\n <div *ngIf=\"groupsState[group]\"\n class=\"form-group-fields\">\n <div *ngFor=\"let item of groupedFields[group]; trackBy: truckByFieldName\"\n class=\"form-field-row col-md-12\"\n [ngClass]=\"item.options.col ? 'col-lg-'+item.options.col : ''\">\n\n <div [ngClass]=\"{'field-tab': group}\">\n <shared-form-field\n [itemId]=\"itemId\"\n [fieldData]=\"item\"\n [form]=\"form\"\n [errorMessageTexts]=\"errorMessageTexts\"\n [editorImageUploadUrl]=\"editorImageUploadUrl\"\n [entity]=\"entity\"\n [publicationMessages]=\"allPublicationMessages\"\n ></shared-form-field>\n </div>\n </div>\n </div>\n</div>\n<div @appearFromLeft *ngIf=\"dataStored && form.valid\" class=\"message-box warning mt-20 mb-10\">\n <ul>\n <li>{{dataStoredTitle}}</li>\n </ul>\n</div>\n<shred-form-message-box\n class=\"mt-20 mb-10\"\n [form]=\"form\"\n [fields]=\"fields\"\n [errorMessageTexts]=\"errorMessageTexts\"></shred-form-message-box>\n\n<ng-container *ngIf=\"havePublication\">\n <ng-container *ngIf=\"showPublicationMessages && fields?.length\">\n <ng-container\n *ngTemplateOutlet=\"publicationMessages, context: {form: form, entity: entity, itemId: itemId, fields: fields}\"></ng-container>\n </ng-container>\n</ng-container>\n\n<ng-template #publicationMessages let-form=\"form\" let-entity=\"entity\" let-itemId=\"itemId\" let-fields=\"fields\">\n <shared-publication-messages\n [@appearFromLeft]\n [form]=\"form\"\n [entity]=\"entity\"\n [itemId]=\"itemId\"\n [fields]=\"fields\"\n [config]=\"config\"\n (scrollToField)=\"scrollToField($event)\"></shared-publication-messages>\n</ng-template>\n", styles: [":host{display:flex;flex-direction:column;flex-wrap:wrap}.form-group{cursor:pointer}.form-group h2{display:flex;transition:color .3s}.progress-bar{margin-bottom:10px}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i6$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: SmartProgressBarComponent, selector: "shared-smart-progress-bar", inputs: ["value", "title", "showValue"] }, { kind: "component", type: i8.FormFieldComponent, selector: "shared-form-field", inputs: ["fieldData", "itemId", "form", "editorImageUploadUrl", "errorMessageTexts", "entity", "publicationMessages", "entityTypeUserRoleRights"], outputs: ["eventUpdateForm", "eventSendAction"] }, { kind: "component", type: FormMessageBoxComponent, selector: "shred-form-message-box", inputs: ["form", "fields", "errorMessageTexts"] }, { kind: "component", type: PublicationMessagesComponent, selector: "shared-publication-messages", inputs: ["entity", "form", "itemId", "fields", "config"], outputs: ["scrollToField"] }], animations: [appearFromLeft, appearOpacity], changeDetection: i0.ChangeDetectionStrategy.OnPush });
899
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AutoFormMainComponent, decorators: [{
900
+ type: Component,
901
+ args: [{ selector: 'shared-auto-form', changeDetection: ChangeDetectionStrategy.OnPush, animations: [appearFromLeft, appearOpacity], template: "<shared-smart-progress-bar *ngIf=\"storedFormValue._occupancyRating\"\n [value]=\"storedFormValue._occupancyRating\"\n [title]=\"'\u0423\u0440\u043E\u0432\u0435\u043D\u044C \u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u043D\u043E\u0441\u0442\u0438 \u0444\u043E\u0440\u043C\u044B'\"></shared-smart-progress-bar>\n\n<ng-container *ngIf=\"showPublicationMessages && fields?.length\">\n <ng-container\n *ngTemplateOutlet=\"publicationMessages, context: {form: form, entity: entity, itemId: itemId, fields: fields}\"></ng-container>\n</ng-container>\n\n<div *ngFor=\"let group of object_.keys(groupedFields); trackBy: truckByFieldName\"\n class=\"form-group\"\n [ngClass]=\"{'form-group-open': groupsState[group]}\">\n <h2 *ngIf=\"group\" class=\"form-field-group-title\" (click)=\"groupClick(group)\">\n <mat-icon class=\"fs-20 field-group-icon\">expand_more</mat-icon>\n {{group}}\n </h2>\n <div *ngIf=\"groupsState[group]\"\n class=\"form-group-fields\">\n <div *ngFor=\"let item of groupedFields[group]; trackBy: truckByFieldName\"\n class=\"form-field-row col-md-12\"\n [ngClass]=\"item.options.col ? 'col-lg-'+item.options.col : ''\">\n\n <div [ngClass]=\"{'field-tab': group}\">\n <shared-form-field\n [itemId]=\"itemId\"\n [fieldData]=\"item\"\n [form]=\"form\"\n [errorMessageTexts]=\"errorMessageTexts\"\n [editorImageUploadUrl]=\"editorImageUploadUrl\"\n [entity]=\"entity\"\n [publicationMessages]=\"allPublicationMessages\"\n ></shared-form-field>\n </div>\n </div>\n </div>\n</div>\n<div @appearFromLeft *ngIf=\"dataStored && form.valid\" class=\"message-box warning mt-20 mb-10\">\n <ul>\n <li>{{dataStoredTitle}}</li>\n </ul>\n</div>\n<shred-form-message-box\n class=\"mt-20 mb-10\"\n [form]=\"form\"\n [fields]=\"fields\"\n [errorMessageTexts]=\"errorMessageTexts\"></shred-form-message-box>\n\n<ng-container *ngIf=\"havePublication\">\n <ng-container *ngIf=\"showPublicationMessages && fields?.length\">\n <ng-container\n *ngTemplateOutlet=\"publicationMessages, context: {form: form, entity: entity, itemId: itemId, fields: fields}\"></ng-container>\n </ng-container>\n</ng-container>\n\n<ng-template #publicationMessages let-form=\"form\" let-entity=\"entity\" let-itemId=\"itemId\" let-fields=\"fields\">\n <shared-publication-messages\n [@appearFromLeft]\n [form]=\"form\"\n [entity]=\"entity\"\n [itemId]=\"itemId\"\n [fields]=\"fields\"\n [config]=\"config\"\n (scrollToField)=\"scrollToField($event)\"></shared-publication-messages>\n</ng-template>\n", styles: [":host{display:flex;flex-direction:column;flex-wrap:wrap}.form-group{cursor:pointer}.form-group h2{display:flex;transition:color .3s}.progress-bar{margin-bottom:10px}\n"] }]
902
+ }], ctorParameters: function () { return [{ type: i1$5.FormErrorsFacade }, { type: i2$3.FormsFacade }, { type: i1$4.PublicationMessagesFacade }, { type: i4$2.AuthenticationService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { fields: [{
903
+ type: Input
904
+ }], itemId: [{
905
+ type: Input
906
+ }], formId: [{
907
+ type: Input
908
+ }], showPublicationMessages: [{
909
+ type: Input
910
+ }], form: [{
911
+ type: Input
912
+ }], editorImageUploadUrl: [{
913
+ type: Input
914
+ }], errorMessageTexts: [{
915
+ type: Input
916
+ }], entity: [{
917
+ type: Input
918
+ }], havePublication: [{
919
+ type: Input
920
+ }], config: [{
921
+ type: Input
922
+ }], changed: [{
923
+ type: Output
924
+ }], formCompleted: [{
925
+ type: Output
926
+ }] } });
927
+
928
+ class FormFieldInputComponent {
929
+ constructor(cd) {
930
+ this.cd = cd;
931
+ this.pendingStatus = 'PENDING';
932
+ this.inputType = InputType.Text;
933
+ this.inputMask = null;
934
+ this.placeholder = '';
935
+ }
936
+ ngOnInit() {
937
+ this.checkInputType();
938
+ this.checkInputMask();
939
+ this.subscribeToFieldStatus();
940
+ }
941
+ ngOnDestroy() {
942
+ }
943
+ subscribeToFieldStatus() {
944
+ this.form.get(this.fieldData.field).statusChanges
945
+ .pipe(untilComponentDestroyed(this))
946
+ .subscribe((data) => {
947
+ this.cd.markForCheck();
948
+ });
949
+ }
950
+ checkInputType() {
951
+ switch (this.fieldData.options.format) {
952
+ case IFormFieldFormat.Email:
953
+ this.inputType = InputType.Email;
954
+ break;
955
+ case IFormFieldFormat.Phone:
956
+ this.inputType = InputType.Tel;
957
+ break;
958
+ case IFormFieldFormat.Number:
959
+ this.inputType = InputType.Number;
960
+ break;
961
+ case IFormFieldFormat.Password:
962
+ this.inputType = InputType.Password;
963
+ break;
964
+ default:
965
+ this.inputType = InputType.Text;
966
+ }
967
+ }
968
+ checkInputMask() {
969
+ this.placeholder = this.fieldData.options.placeholder;
970
+ switch (this.fieldData.options.format) {
971
+ case IFormFieldFormat.Phone:
972
+ this.inputMask = '+0(0000)000-00-00';
973
+ this.placeholder = '+0(0000)000-00-00';
974
+ break;
975
+ }
976
+ }
977
+ }
978
+ FormFieldInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldInputComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
979
+ FormFieldInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FormFieldInputComponent, selector: "shared-form-field-input", inputs: { fieldData: "fieldData", form: "form" }, viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }], ngImport: i0, template: "<ng-container *ngIf=\"form.get(fieldData.field) as field\">\n <div [formGroup]=\"form\">\n <mat-form-field appearance=\"outline\"\n class=\"width100\">\n <mat-label>{{fieldData.title}}{{fieldData.validators && fieldData.validators.includes('required') ? ' *' : ''}}</mat-label>\n <div class=\"display-flex align-baseline \">\n <ng-container *ngIf=\"inputMask\">\n <input matInput\n #input\n [type]=\"inputType\"\n [placeholder]=\"placeholder\"\n [mask]=\"inputMask\"\n [formControlName]=\"fieldData.field\">\n </ng-container>\n <ng-container *ngIf=\"!inputMask\">\n <input matInput\n #input\n [type]=\"inputType\"\n [placeholder]=\"placeholder\"\n [formControlName]=\"fieldData.field\">\n </ng-container>\n <div class=\"form-field-suffix\"\n [ngClass]=\"{'input-field-icon-red': !field.valid}\"\n *ngIf=\"fieldData.asyncValidators && fieldData.asyncValidators.length\">\n <mat-icon *ngIf=\"field.status !== pendingStatus\"\n class=\"secondary-text mat-icon notranslate material-icons mat-icon-no-color\"\n role=\"img\" aria-hidden=\"true\">\n {{field.valid ? 'done' : field.errors['itemUniqValue'] ? 'assignment_late' : ''}}\n </mat-icon>\n <shared-spinner *ngIf=\"field.status === pendingStatus\"\n [diameter]=\"24\"></shared-spinner>\n </div>\n </div>\n </mat-form-field>\n </div>\n</ng-container>\n", styles: [".form-field-suffix{width:17px;height:17px}.form-field-suffix mat-icon{color:#4caf50;font-size:17px;height:17px!important;width:17px!important;min-width:17px;min-height:17px;font-weight:700!important}.form-field-suffix.input-field-icon-red mat-icon{color:#f44336}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "directive", type: i6.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i6.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i6.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "directive", type: i6.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i6.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i6$3.MaskDirective, selector: "input[mask], textarea[mask]", inputs: ["mask", "specialCharacters", "patterns", "prefix", "suffix", "thousandSeparator", "decimalMarker", "dropSpecialCharacters", "hiddenInput", "showMaskTyped", "placeHolderCharacter", "shownMaskExpression", "showTemplate", "clearIfNotMatch", "validation", "separatorLimit", "allowNegativeNumbers", "leadZeroDateTime"] }, { kind: "component", type: i6$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
980
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldInputComponent, decorators: [{
981
+ type: Component,
982
+ args: [{ selector: 'shared-form-field-input', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"form.get(fieldData.field) as field\">\n <div [formGroup]=\"form\">\n <mat-form-field appearance=\"outline\"\n class=\"width100\">\n <mat-label>{{fieldData.title}}{{fieldData.validators && fieldData.validators.includes('required') ? ' *' : ''}}</mat-label>\n <div class=\"display-flex align-baseline \">\n <ng-container *ngIf=\"inputMask\">\n <input matInput\n #input\n [type]=\"inputType\"\n [placeholder]=\"placeholder\"\n [mask]=\"inputMask\"\n [formControlName]=\"fieldData.field\">\n </ng-container>\n <ng-container *ngIf=\"!inputMask\">\n <input matInput\n #input\n [type]=\"inputType\"\n [placeholder]=\"placeholder\"\n [formControlName]=\"fieldData.field\">\n </ng-container>\n <div class=\"form-field-suffix\"\n [ngClass]=\"{'input-field-icon-red': !field.valid}\"\n *ngIf=\"fieldData.asyncValidators && fieldData.asyncValidators.length\">\n <mat-icon *ngIf=\"field.status !== pendingStatus\"\n class=\"secondary-text mat-icon notranslate material-icons mat-icon-no-color\"\n role=\"img\" aria-hidden=\"true\">\n {{field.valid ? 'done' : field.errors['itemUniqValue'] ? 'assignment_late' : ''}}\n </mat-icon>\n <shared-spinner *ngIf=\"field.status === pendingStatus\"\n [diameter]=\"24\"></shared-spinner>\n </div>\n </div>\n </mat-form-field>\n </div>\n</ng-container>\n", styles: [".form-field-suffix{width:17px;height:17px}.form-field-suffix mat-icon{color:#4caf50;font-size:17px;height:17px!important;width:17px!important;min-width:17px;min-height:17px;font-weight:700!important}.form-field-suffix.input-field-icon-red mat-icon{color:#f44336}\n"] }]
983
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { fieldData: [{
984
+ type: Input
985
+ }], form: [{
986
+ type: Input
987
+ }], input: [{
988
+ type: ViewChild,
989
+ args: ['input', { static: false }]
990
+ }] } });
991
+
992
+ class AutoFormModule {
993
+ }
994
+ AutoFormModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AutoFormModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
995
+ AutoFormModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: AutoFormModule, declarations: [FormFieldComponent,
996
+ FormFieldSpinnerComponent,
997
+ FormFieldSelectComponent,
998
+ FormFieldSelectShowComponent,
999
+ FormFieldSlideToggleComponent,
1000
+ AutoFormMainComponent,
1001
+ AutoFormShowComponent$1,
1002
+ AutoFormShowFieldComponent,
1003
+ FormFieldInputComponent,
1004
+ FormMessageBoxComponent,
1005
+ FormFieldFileComponent,
1006
+ FormFieldFilesComponent,
1007
+ FormFieldFileShowComponent,
1008
+ FormFieldSlideToggleShowComponent,
1009
+ FormFieldInputShowComponent,
1010
+ FormFieldFilesShowComponent,
1011
+ PublicationMessagesComponent,
1012
+ FormFieldTagsComponent], imports: [CommonModule,
1013
+ FormFieldErrorModule,
1014
+ FormFieldPublishErrorModule$1,
1015
+ MatFormFieldModule,
1016
+ MatInputModule,
1017
+ MatSlideToggleModule,
1018
+ MatSelectModule,
1019
+ FormsModule,
1020
+ SharedSpinnerModule$1,
1021
+ ReactiveFormsModule,
1022
+ FlexModule,
1023
+ NgxMaskModule,
1024
+ MatIconModule,
1025
+ MatTooltipModule,
1026
+ CKEditorModule,
1027
+ FilesUploadModule$1,
1028
+ ImageModule$1,
1029
+ PanelModule$1,
1030
+ ButtonModule$1,
1031
+ SmartProgressBarModule$1,
1032
+ StarRatingModule$1,
1033
+ MatChipsModule,
1034
+ MatAutocompleteModule,
1035
+ NgxMatSelectSearchModule], exports: [AutoFormMainComponent,
1036
+ AutoFormShowComponent$1] });
1037
+ AutoFormModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AutoFormModule, imports: [CommonModule,
1038
+ FormFieldErrorModule,
1039
+ FormFieldPublishErrorModule$1,
1040
+ MatFormFieldModule,
1041
+ MatInputModule,
1042
+ MatSlideToggleModule,
1043
+ MatSelectModule,
1044
+ FormsModule,
1045
+ SharedSpinnerModule$1,
1046
+ ReactiveFormsModule,
1047
+ FlexModule,
1048
+ NgxMaskModule,
1049
+ MatIconModule,
1050
+ MatTooltipModule,
1051
+ CKEditorModule,
1052
+ FilesUploadModule$1,
1053
+ ImageModule$1,
1054
+ PanelModule$1,
1055
+ ButtonModule$1,
1056
+ SmartProgressBarModule$1,
1057
+ StarRatingModule$1,
1058
+ MatChipsModule,
1059
+ MatAutocompleteModule,
1060
+ NgxMatSelectSearchModule] });
1061
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AutoFormModule, decorators: [{
1062
+ type: NgModule,
1063
+ args: [{
1064
+ declarations: [
1065
+ FormFieldComponent,
1066
+ FormFieldSpinnerComponent,
1067
+ FormFieldSelectComponent,
1068
+ FormFieldSelectShowComponent,
1069
+ FormFieldSlideToggleComponent,
1070
+ AutoFormMainComponent,
1071
+ AutoFormShowComponent$1,
1072
+ AutoFormShowFieldComponent,
1073
+ FormFieldInputComponent,
1074
+ FormMessageBoxComponent,
1075
+ FormFieldFileComponent,
1076
+ FormFieldFilesComponent,
1077
+ FormFieldFileShowComponent,
1078
+ FormFieldSlideToggleShowComponent,
1079
+ FormFieldInputShowComponent,
1080
+ FormFieldFilesShowComponent,
1081
+ PublicationMessagesComponent,
1082
+ FormFieldTagsComponent
1083
+ ],
1084
+ imports: [
1085
+ CommonModule,
1086
+ FormFieldErrorModule,
1087
+ FormFieldPublishErrorModule$1,
1088
+ MatFormFieldModule,
1089
+ MatInputModule,
1090
+ MatSlideToggleModule,
1091
+ MatSelectModule,
1092
+ FormsModule,
1093
+ SharedSpinnerModule$1,
1094
+ ReactiveFormsModule,
1095
+ FlexModule,
1096
+ NgxMaskModule,
1097
+ MatIconModule,
1098
+ MatTooltipModule,
1099
+ CKEditorModule,
1100
+ FilesUploadModule$1,
1101
+ ImageModule$1,
1102
+ PanelModule$1,
1103
+ ButtonModule$1,
1104
+ SmartProgressBarModule$1,
1105
+ StarRatingModule$1,
1106
+ MatChipsModule,
1107
+ MatAutocompleteModule,
1108
+ NgxMatSelectSearchModule,
1109
+ ],
1110
+ exports: [
1111
+ AutoFormMainComponent,
1112
+ AutoFormShowComponent$1
1113
+ ]
1114
+ }]
1115
+ }] });
1116
+
1117
+ class AutoFormShowComponent {
1118
+ constructor() {
1119
+ this.fieldGrouped = false;
1120
+ this.object_ = Object;
1121
+ }
1122
+ ngOnInit() {
1123
+ }
1124
+ ngOnChanges(changes) {
1125
+ if (changes.fields) {
1126
+ this.groupFields();
1127
+ }
1128
+ }
1129
+ truckByFieldName(index, item) {
1130
+ return item.field;
1131
+ }
1132
+ groupFields() {
1133
+ if (!this.fieldGrouped) {
1134
+ this.groupedFields = {};
1135
+ this.fields.forEach(formField => {
1136
+ const groupName = formField.options.groupName || '';
1137
+ if (!this.groupedFields[groupName]) {
1138
+ this.groupedFields[groupName] = [];
1139
+ }
1140
+ this.groupedFields[groupName].push(Object.assign({}, formField));
1141
+ });
1142
+ this.fieldGrouped = true;
1143
+ }
1144
+ }
1145
+ }
1146
+ AutoFormShowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AutoFormShowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1147
+ AutoFormShowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: AutoFormShowComponent, selector: "shared-auto-form-show", inputs: { fields: "fields", data: "data", entityId: "entityId", entitySection: "entitySection" }, usesOnChanges: true, ngImport: i0, template: "<div *ngFor=\"let group of object_.keys(groupedFields); trackBy: truckByFieldName\"\n class=\"form-group\">\n <h2 *ngIf=\"group\" class=\"form-field-group-title\">\n {{group}}\n </h2>\n <div class=\"form-group-fields\">\n <div *ngFor=\"let item of groupedFields[group]; trackBy: truckByFieldName\"\n class=\"form-field-row col-md-12\"\n [ngClass]=\"item.options.col ? 'col-lg-'+item.options.col : ''\">\n <!-- [ngClass]=\"item.options.col ? 'form-field-col-'+item.options.col : ''\" -->\n <div [ngClass]=\"{'field-tab': group}\">\n <shared-auto-form-show-field\n [fieldData]=\"item\"\n [data]=\"data\"\n [entityId]=\"entityId\"\n [entitySection]=\"entitySection\"\n ></shared-auto-form-show-field>\n </div>\n </div>\n </div>\n</div>\n", styles: [":host{display:flex;flex-direction:column}.form-field-group-title{padding:0 20px}.form-group-fields{overflow:hidden;padding-left:20px;padding-right:20px}.form-group{margin-left:20px;width:calc(100% - 40px);margin-right:20px}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$4.AutoFormShowFieldComponent, selector: "shared-auto-form-show-field", inputs: ["fieldData", "data", "entityId", "entitySection"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1148
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AutoFormShowComponent, decorators: [{
1149
+ type: Component,
1150
+ args: [{ selector: 'shared-auto-form-show', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div *ngFor=\"let group of object_.keys(groupedFields); trackBy: truckByFieldName\"\n class=\"form-group\">\n <h2 *ngIf=\"group\" class=\"form-field-group-title\">\n {{group}}\n </h2>\n <div class=\"form-group-fields\">\n <div *ngFor=\"let item of groupedFields[group]; trackBy: truckByFieldName\"\n class=\"form-field-row col-md-12\"\n [ngClass]=\"item.options.col ? 'col-lg-'+item.options.col : ''\">\n <!-- [ngClass]=\"item.options.col ? 'form-field-col-'+item.options.col : ''\" -->\n <div [ngClass]=\"{'field-tab': group}\">\n <shared-auto-form-show-field\n [fieldData]=\"item\"\n [data]=\"data\"\n [entityId]=\"entityId\"\n [entitySection]=\"entitySection\"\n ></shared-auto-form-show-field>\n </div>\n </div>\n </div>\n</div>\n", styles: [":host{display:flex;flex-direction:column}.form-field-group-title{padding:0 20px}.form-group-fields{overflow:hidden;padding-left:20px;padding-right:20px}.form-group{margin-left:20px;width:calc(100% - 40px);margin-right:20px}\n"] }]
1151
+ }], propDecorators: { fields: [{
1152
+ type: Input
1153
+ }], data: [{
1154
+ type: Input
1155
+ }], entityId: [{
1156
+ type: Input
1157
+ }], entitySection: [{
1158
+ type: Input
1159
+ }] } });
1160
+
1161
+ class BreadCrumbsComponent {
1162
+ constructor() { }
1163
+ ngOnInit() {
1164
+ }
1165
+ }
1166
+ BreadCrumbsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BreadCrumbsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1167
+ BreadCrumbsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: BreadCrumbsComponent, selector: "shared-bread-crumbs", inputs: { list: "list" }, ngImport: i0, template: "<div class=\"bread-crumbs\" *ngIf=\"list\">\n <ng-container *ngFor=\"let item of list\">\n <ng-container *ngIf=\"item.url\">\n <a [routerLink]=\"item.url\">{{item.title}}</a><span class=\"separate\">/</span>\n </ng-container>\n <ng-container *ngIf=\"!item.url\">\n <span>{{item.title}}</span>\n </ng-container>\n </ng-container>\n</div>\n", styles: [".bread-crumbs{margin-bottom:15px;font-size:12px;opacity:.8}.bread-crumbs .separate{padding:0 5px}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$5.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1168
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BreadCrumbsComponent, decorators: [{
1169
+ type: Component,
1170
+ args: [{ selector: 'shared-bread-crumbs', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"bread-crumbs\" *ngIf=\"list\">\n <ng-container *ngFor=\"let item of list\">\n <ng-container *ngIf=\"item.url\">\n <a [routerLink]=\"item.url\">{{item.title}}</a><span class=\"separate\">/</span>\n </ng-container>\n <ng-container *ngIf=\"!item.url\">\n <span>{{item.title}}</span>\n </ng-container>\n </ng-container>\n</div>\n", styles: [".bread-crumbs{margin-bottom:15px;font-size:12px;opacity:.8}.bread-crumbs .separate{padding:0 5px}\n"] }]
1171
+ }], ctorParameters: function () { return []; }, propDecorators: { list: [{
1172
+ type: Input
1173
+ }] } });
1174
+
1175
+ class BreadCrumbsModule {
1176
+ }
1177
+ BreadCrumbsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BreadCrumbsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1178
+ BreadCrumbsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: BreadCrumbsModule, declarations: [BreadCrumbsComponent], imports: [CommonModule, RouterModule], exports: [CommonModule, BreadCrumbsComponent] });
1179
+ BreadCrumbsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BreadCrumbsModule, imports: [CommonModule, RouterModule, CommonModule] });
1180
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BreadCrumbsModule, decorators: [{
1181
+ type: NgModule,
1182
+ args: [{
1183
+ declarations: [BreadCrumbsComponent],
1184
+ imports: [CommonModule, RouterModule],
1185
+ exports: [CommonModule, BreadCrumbsComponent]
1186
+ }]
1187
+ }] });
1188
+
1189
+ class ButtonModule {
1190
+ }
1191
+ ButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1192
+ ButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ButtonModule, declarations: [ButtonComponent], imports: [CommonModule,
1193
+ FormsModule,
1194
+ MatTooltipModule,
1195
+ SharedIconModule$1,
1196
+ SharedSpinnerModule$1,
1197
+ MatButtonModule], exports: [ButtonComponent] });
1198
+ ButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ButtonModule, imports: [CommonModule,
1199
+ FormsModule,
1200
+ MatTooltipModule,
1201
+ SharedIconModule$1,
1202
+ SharedSpinnerModule$1,
1203
+ MatButtonModule] });
1204
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ButtonModule, decorators: [{
1205
+ type: NgModule,
1206
+ args: [{
1207
+ imports: [
1208
+ CommonModule,
1209
+ FormsModule,
1210
+ MatTooltipModule,
1211
+ SharedIconModule$1,
1212
+ SharedSpinnerModule$1,
1213
+ MatButtonModule
1214
+ ],
1215
+ declarations: [ButtonComponent],
1216
+ exports: [ButtonComponent]
1217
+ }]
1218
+ }] });
1219
+
1220
+ class ChipsInputComponent {
1221
+ constructor() {
1222
+ this.items = [];
1223
+ this.selectedItems = [];
1224
+ this.changedList = new EventEmitter();
1225
+ this.changedText = new EventEmitter();
1226
+ this.visible = true;
1227
+ this.selectable = true;
1228
+ this.removable = true;
1229
+ this.addOnBlur = true;
1230
+ this.separatorKeysCodes = [ENTER, COMMA];
1231
+ this.itemsCtrl = new UntypedFormControl();
1232
+ this.filteredItems = this.itemsCtrl.valueChanges.pipe(startWith(null), map((item) => {
1233
+ this.changedText.emit(item);
1234
+ if (this.items) {
1235
+ return item ? this._filter(item) : this.items.slice();
1236
+ }
1237
+ return [];
1238
+ }));
1239
+ }
1240
+ add(event) {
1241
+ // Add item only when MatAutocomplete is not open
1242
+ // To make sure this does not conflict with OptionSelected Event
1243
+ if (!this.matAutocomplete.isOpen) {
1244
+ const input = event.input;
1245
+ const value = event.value;
1246
+ // Add our item
1247
+ if ((value || '').trim()) {
1248
+ this.selectedItems.push({ id: 3, title: value.trim() });
1249
+ this.changedList.emit(this.selectedItems);
1250
+ }
1251
+ // Reset the input value
1252
+ if (input) {
1253
+ input.value = '';
1254
+ }
1255
+ this.itemsCtrl.setValue(null);
1256
+ }
1257
+ }
1258
+ remove(item) {
1259
+ this.selectedItems = this.selectedItems.filter(SItem => SItem.id !== item.id);
1260
+ this.changedList.emit(this.selectedItems);
1261
+ }
1262
+ selected(event) {
1263
+ this.selectedItems.push({ id: 1, title: event.option.viewValue });
1264
+ this.itemInput.nativeElement.value = '';
1265
+ this.itemsCtrl.setValue(null);
1266
+ this.changedList.emit(this.selectedItems);
1267
+ }
1268
+ _filter(value) {
1269
+ if (typeof value === 'string') {
1270
+ return this.items.filter(itemFilter => itemFilter.title.indexOf(value) === 0);
1271
+ }
1272
+ else {
1273
+ return this.items.filter(itemFilter => {
1274
+ return itemFilter.id !== value.id;
1275
+ });
1276
+ }
1277
+ }
1278
+ }
1279
+ ChipsInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChipsInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1280
+ ChipsInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: ChipsInputComponent, selector: "shared-chips-input", inputs: { title: "title", items: "items", selectedItems: "selectedItems" }, outputs: { changedList: "changedList", changedText: "changedText" }, viewQueries: [{ propertyName: "itemInput", first: true, predicate: ["itemInput"], descendants: true }, { propertyName: "matAutocomplete", first: true, predicate: ["auto"], descendants: true }], ngImport: i0, template: "<!--\n<mat-form-field class=\"example-chip-list\">\n <mat-label class=\"title\">{{title}}</mat-label>\n <mat-chip-list #chipList aria-label=\"Fruit selection\">\n <mat-chip\n *ngFor=\"let item of selectedItems\"\n [selectable]=\"selectable\"\n [removable]=\"removable\"\n (removed)=\"remove(item)\">\n {{item.title}}\n <mat-icon matChipRemove *ngIf=\"removable\">cancel</mat-icon>\n </mat-chip>\n <input\n #itemInput\n [placeholder]=\"''\"\n [formControl]=\"itemsCtrl\"\n [matAutocomplete]=\"auto\"\n [matChipInputFor]=\"chipList\"\n [matChipInputSeparatorKeyCodes]=\"separatorKeysCodes\"\n [matChipInputAddOnBlur]=\"addOnBlur\"\n (matChipInputTokenEnd)=\"add($event)\">\n </mat-chip-list>\n <mat-autocomplete #auto=\"matAutocomplete\" (optionSelected)=\"selected($event)\">\n <mat-option *ngFor=\"let item of filteredItems | async\" [value]=\"item\">\n {{item.title}}\n </mat-option>\n </mat-autocomplete>\n</mat-form-field>\n-->\n<!--\n<mat-form-field class=\"example-chip-list\">\n <mat-label>Favorite Fruits</mat-label>\n <mat-chip-grid #chipGrid aria-label=\"Fruit selection\">\n <mat-chip-row *ngFor=\"let fruit of fruits\" (removed)=\"remove(fruit)\">\n {{fruit}}\n <button matChipRemove [attr.aria-label]=\"'remove ' + fruit\">\n <mat-icon>cancel</mat-icon>\n </button>\n </mat-chip-row>\n </mat-chip-grid>\n <input placeholder=\"New Fruit...\" #fruitInput [formControl]=\"fruitCtrl\"\n [matChipInputFor]=\"chipGrid\" [matAutocomplete]=\"auto\"\n [matChipInputSeparatorKeyCodes]=\"separatorKeysCodes\"\n (matChipInputTokenEnd)=\"add($event)\"/>\n <mat-autocomplete #auto=\"matAutocomplete\" (optionSelected)=\"selected($event)\">\n <mat-option *ngFor=\"let fruit of filteredFruits | async\" [value]=\"fruit\">\n {{fruit}}\n </mat-option>\n </mat-autocomplete>\n </mat-form-field>\n-->\n", styles: [".example-chip-list{width:100%}.title{color:#0009;font-size:16px}\n"] });
1281
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChipsInputComponent, decorators: [{
1282
+ type: Component,
1283
+ args: [{ selector: 'shared-chips-input', template: "<!--\n<mat-form-field class=\"example-chip-list\">\n <mat-label class=\"title\">{{title}}</mat-label>\n <mat-chip-list #chipList aria-label=\"Fruit selection\">\n <mat-chip\n *ngFor=\"let item of selectedItems\"\n [selectable]=\"selectable\"\n [removable]=\"removable\"\n (removed)=\"remove(item)\">\n {{item.title}}\n <mat-icon matChipRemove *ngIf=\"removable\">cancel</mat-icon>\n </mat-chip>\n <input\n #itemInput\n [placeholder]=\"''\"\n [formControl]=\"itemsCtrl\"\n [matAutocomplete]=\"auto\"\n [matChipInputFor]=\"chipList\"\n [matChipInputSeparatorKeyCodes]=\"separatorKeysCodes\"\n [matChipInputAddOnBlur]=\"addOnBlur\"\n (matChipInputTokenEnd)=\"add($event)\">\n </mat-chip-list>\n <mat-autocomplete #auto=\"matAutocomplete\" (optionSelected)=\"selected($event)\">\n <mat-option *ngFor=\"let item of filteredItems | async\" [value]=\"item\">\n {{item.title}}\n </mat-option>\n </mat-autocomplete>\n</mat-form-field>\n-->\n<!--\n<mat-form-field class=\"example-chip-list\">\n <mat-label>Favorite Fruits</mat-label>\n <mat-chip-grid #chipGrid aria-label=\"Fruit selection\">\n <mat-chip-row *ngFor=\"let fruit of fruits\" (removed)=\"remove(fruit)\">\n {{fruit}}\n <button matChipRemove [attr.aria-label]=\"'remove ' + fruit\">\n <mat-icon>cancel</mat-icon>\n </button>\n </mat-chip-row>\n </mat-chip-grid>\n <input placeholder=\"New Fruit...\" #fruitInput [formControl]=\"fruitCtrl\"\n [matChipInputFor]=\"chipGrid\" [matAutocomplete]=\"auto\"\n [matChipInputSeparatorKeyCodes]=\"separatorKeysCodes\"\n (matChipInputTokenEnd)=\"add($event)\"/>\n <mat-autocomplete #auto=\"matAutocomplete\" (optionSelected)=\"selected($event)\">\n <mat-option *ngFor=\"let fruit of filteredFruits | async\" [value]=\"fruit\">\n {{fruit}}\n </mat-option>\n </mat-autocomplete>\n </mat-form-field>\n-->\n", styles: [".example-chip-list{width:100%}.title{color:#0009;font-size:16px}\n"] }]
1284
+ }], ctorParameters: function () { return []; }, propDecorators: { title: [{
1285
+ type: Input
1286
+ }], items: [{
1287
+ type: Input
1288
+ }], selectedItems: [{
1289
+ type: Input
1290
+ }], changedList: [{
1291
+ type: Output
1292
+ }], changedText: [{
1293
+ type: Output
1294
+ }], itemInput: [{
1295
+ type: ViewChild,
1296
+ args: ['itemInput', { static: false }]
1297
+ }], matAutocomplete: [{
1298
+ type: ViewChild,
1299
+ args: ['auto', { static: false }]
1300
+ }] } });
1301
+
1302
+ class ChipsInputModule {
1303
+ }
1304
+ ChipsInputModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChipsInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1305
+ ChipsInputModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ChipsInputModule, declarations: [ChipsInputComponent], imports: [CommonModule,
1306
+ MatFormFieldModule,
1307
+ MatChipsModule,
1308
+ MatAutocompleteModule,
1309
+ MatIconModule,
1310
+ ReactiveFormsModule,
1311
+ MatLegacyChipsModule], exports: [ChipsInputComponent] });
1312
+ ChipsInputModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChipsInputModule, imports: [CommonModule,
1313
+ MatFormFieldModule,
1314
+ MatChipsModule,
1315
+ MatAutocompleteModule,
1316
+ MatIconModule,
1317
+ ReactiveFormsModule,
1318
+ MatLegacyChipsModule] });
1319
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChipsInputModule, decorators: [{
1320
+ type: NgModule,
1321
+ args: [{
1322
+ declarations: [ChipsInputComponent],
1323
+ exports: [ChipsInputComponent],
1324
+ imports: [
1325
+ CommonModule,
1326
+ MatFormFieldModule,
1327
+ MatChipsModule,
1328
+ MatAutocompleteModule,
1329
+ MatIconModule,
1330
+ ReactiveFormsModule,
1331
+ MatLegacyChipsModule
1332
+ ]
1333
+ }]
1334
+ }] });
1335
+
1336
+ class FileListCardComponent {
1337
+ constructor(filesFacade, notificationsFacade, dialogService, cd, requestsFacade) {
1338
+ this.filesFacade = filesFacade;
1339
+ this.notificationsFacade = notificationsFacade;
1340
+ this.dialogService = dialogService;
1341
+ this.cd = cd;
1342
+ this.requestsFacade = requestsFacade;
1343
+ this.requestStatus = RequestStatus;
1344
+ this.ModeSort = FileListModeSort$1;
1345
+ this.edit = false;
1346
+ this.filesKey = 'files';
1347
+ this.firstRequest = true;
1348
+ this.allMethods = '*';
1349
+ this.loading = false;
1350
+ this.messages = {
1351
+ ATTENTION: 'Внимание',
1352
+ TITLE_SAVED: 'Заголовок успешно сохранен'
1353
+ };
1354
+ }
1355
+ ngOnInit() {
1356
+ }
1357
+ ngOnDestroy() {
1358
+ this.requestsFacade.deleteRequestWaiter(this.filesKey, this.allMethods, this.file.id);
1359
+ this.loading = false;
1360
+ }
1361
+ ngOnChanges(changes) {
1362
+ }
1363
+ changeTitle(event) {
1364
+ var _a;
1365
+ this.currentValue = (_a = event.target.value) === null || _a === void 0 ? void 0 : _a.trim();
1366
+ }
1367
+ saveTitle(file) {
1368
+ if (this.currentValue !== file.title) {
1369
+ this.initRequest();
1370
+ this.fileUpdate(file.id, { title: this.currentValue });
1371
+ }
1372
+ else {
1373
+ this.sendNotification(file);
1374
+ }
1375
+ }
1376
+ sendNotification(file) {
1377
+ const rand = Math.random();
1378
+ this.notificationsFacade.addNotifications({
1379
+ id: `file-card-${file.id}-${rand}`,
1380
+ type: 'success',
1381
+ text: this.messages.TITLE_SAVED,
1382
+ title: this.messages.ATTENTION
1383
+ });
1384
+ }
1385
+ fileUpdate(id, params) {
1386
+ this.filesFacade.filesUpdate(Object.assign(Object.assign({}, params), { id, section: this.section, itemId: this.itemId }));
1387
+ }
1388
+ fileDelete(id) {
1389
+ this.dialogService.openDeleteDialog()
1390
+ .pipe(untilComponentDestroyed(this))
1391
+ .subscribe((result) => {
1392
+ if (result) {
1393
+ this.initRequest();
1394
+ this.filesFacade.filesDelete(id);
1395
+ }
1396
+ });
1397
+ }
1398
+ setMain(id, main) {
1399
+ if (!main) {
1400
+ this.initRequest();
1401
+ this.fileUpdate(id, { main: true });
1402
+ }
1403
+ }
1404
+ editFile() {
1405
+ this.edit = true;
1406
+ this.cd.markForCheck();
1407
+ }
1408
+ subscribeToRequest() {
1409
+ this.request$
1410
+ .pipe(untilComponentDestroyed(this))
1411
+ .subscribe(data => {
1412
+ if (this.currentStatus !== data.status) {
1413
+ if (data.status === this.requestStatus.LOADING) {
1414
+ this.loading = true;
1415
+ this.edit = false;
1416
+ }
1417
+ if (data.status === this.requestStatus.LOADED) {
1418
+ this.loading = false;
1419
+ this.edit = false;
1420
+ }
1421
+ this.currentStatus = data.status;
1422
+ this.cd.markForCheck();
1423
+ }
1424
+ });
1425
+ }
1426
+ initRequest() {
1427
+ if (this.firstRequest) {
1428
+ this.requestsFacade.createRequestListener(this.filesKey, this.allMethods, this.file.id);
1429
+ this.request$ = this.requestsFacade.getRequestUpdates(this.filesKey, this.allMethods, this.file.id);
1430
+ this.subscribeToRequest();
1431
+ this.firstRequest = false;
1432
+ }
1433
+ }
1434
+ }
1435
+ FileListCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FileListCardComponent, deps: [{ token: i1$6.FilesFacade }, { token: i2$6.NotificationsFacade }, { token: i3$2.DialogService }, { token: i0.ChangeDetectorRef }, { token: i4$3.RequestsFacade }], target: i0.ɵɵFactoryTarget.Component });
1436
+ FileListCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FileListCardComponent, selector: "shared-file-list-card", inputs: { file: "file", section: "section", itemId: "itemId", mode: "mode" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"fuse-card\"\n [ngClass]=\"{'fuse-card-sort': mode === ModeSort}\">\n <div class=\"top-panel\" fxLayout=\"row\" fxLayoutAlign=\"end center\">\n <button\n mat-icon-button\n aria-label=\"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A\"\n title=\"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A\"\n class=\"color-green\"\n (click)=\"editFile()\"\n >\n <mat-icon>edit</mat-icon>\n </button>\n <button mat-icon-button\n aria-label=\"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u0433\u043B\u0430\u0432\u043D\u044B\u043C\"\n title=\"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u0433\u043B\u0430\u0432\u043D\u044B\u043C\"\n (click)=\"setMain(file.id, file.main)\"\n [ngClass]=\"{'cursor-no-pointer': file.main}\">\n <mat-icon *ngIf=\"!file.main\">star_border</mat-icon>\n <mat-icon *ngIf=\"file.main\">star</mat-icon>\n </button>\n <button\n mat-icon-button\n aria-label=\"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0444\u0430\u0439\u043B\"\n title=\"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0444\u0430\u0439\u043B\"\n class=\"color-red\"\n (click)=\"fileDelete(file.id)\"\n >\n <mat-icon>delete_outline</mat-icon>\n </button>\n </div>\n <div class=\"image\"\n [ngStyle]=\"{'background-image': file.versions ? 'url(' + file.versions[2] + ')' : 'none'}\"></div>\n <div class=\"p-10 cart-title p-0\"\n [ngClass]=\"{'edit-title': edit, 'empty-title': !file.title}\">\n <div class=\"width100 display-flex-space-between edit-block\"\n [ngClass]=\"{'edit-block-open': edit}\">\n\n <div *ngIf=\"!edit && file?.title\" class=\"h3\">{{file.title}}</div>\n <ng-container *ngIf=\"edit\">\n <textarea type=\"text\"\n placeholder=\"Enter image title...\"\n class=\"edit-textarea\"\n (change)=\"changeTitle($event)\"\n [innerText]=\"file && file.title ? file.title : ''\"></textarea>\n <div class=\"edit-button\">\n <button\n mat-icon-button\n aria-label=\"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\"\n title=\"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\"\n class=\"color-green\"\n (click)=\"saveTitle(file)\"\n >\n <mat-icon>check</mat-icon>\n </button>\n <button\n mat-icon-button\n aria-label=\"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C\"\n title=\"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C\"\n class=\"color-red\"\n (click)=\"edit = false\"\n >\n <mat-icon>close</mat-icon>\n </button>\n </div>\n </ng-container>\n </div>\n </div>\n <shared-spinner\n *ngIf=\"loading\"\n [overlay]=\"true\"\n [diameter]=\"20\"\n [color]=\"'blue'\"></shared-spinner>\n</div>\n", styles: [":host.cdk-drag-placeholder .fuse-card{z-index:1000}.custom-placeholder{background:#ccc;border:dotted 3px #999;min-height:60px;transition:transform .25s cubic-bezier(0,0,.2,1)}.fuse-card{margin:5px;position:relative;max-width:250px;min-width:250px;max-height:160px;min-height:160px;cursor:move}.fuse-card.fuse-card-sort{max-width:200px;min-width:200px;padding:5px!important}.fuse-card.fuse-card-sort .top-panel,.fuse-card.fuse-card-sort .cart-title{display:none}.fuse-card.fuse-card-sort .image{width:200px;height:100px}.fuse-card:hover .cart-title,.fuse-card:hover .top-panel{background:rgba(239,239,239,.78);transform:scale(1);margin-top:0;margin-right:0}.fuse-card:hover .cart-title button mat-icon,.fuse-card:hover .top-panel button mat-icon{transform:scale(.8)}.fuse-card:hover .cart-title .h3{font-size:14px}.fuse-card .image{width:250px;height:160px;text-align:center;background-size:cover;background-position:center top;border-radius:6px;overflow:hidden}.fuse-card .top-panel,.fuse-card .cart-title{background:rgba(239,239,239,.5);transition:all .2s linear}.fuse-card .top-panel:hover,.fuse-card .cart-title:hover{background:rgb(239,239,239)}.fuse-card .top-panel{position:absolute;right:0;border-bottom-left-radius:12px;transform:scale(.8);margin-top:-4px;margin-right:-12px}.fuse-card .top-panel button.color-green mat-icon{color:#236126cc}.fuse-card .top-panel button.color-green:hover mat-icon{color:#4caf50}.fuse-card .top-panel button.color-red mat-icon{color:#f44336cc}.fuse-card .top-panel button.color-red:hover mat-icon{color:#f44336}.fuse-card .top-panel button mat-icon{color:#323232cc}.fuse-card .top-panel button mat-icon{transition:all .2s linear;transform:scale(1)}.fuse-card .top-panel button:hover mat-icon{color:#000;transform:scale(1)}.fuse-card .top-panel button mat-icon{font-size:20px}.fuse-card .cart-title{position:absolute;left:0;right:0;bottom:0;font-size:12px;padding:10px;display:flex;transition:all .3s linear;border-bottom-left-radius:5px;border-bottom-right-radius:5px}.fuse-card .cart-title.empty-title{background:transparent}.fuse-card .cart-title.edit-title{background:#fff}.fuse-card .cart-title.edit-title button mat-icon:hover{color:#7f7f7f}.fuse-card .cart-title .h3{flex-grow:1;padding:9px 5px 9px 10px;color:#fff;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transition:all .2s linear;font-size:12px}.fuse-card .cart-title .h3:hover{color:#079be5}.fuse-card .cart-title .edit-block{transition:all .2s linear}.fuse-card .cart-title .edit-block.edit-block-open{background:#f5f5f5}.fuse-card .cart-title textarea.edit-textarea{flex-grow:1;background-color:transparent;border:0;resize:none;padding:5px 0 5px 5px}.fuse-card .cart-title .edit-button{width:40px}.fuse-card .cart-title .edit-button button mat-icon{color:#d0d0d0;transition:all .2s linear}.fuse-card .cart-title .edit-button button mat-icon:hover{color:#fff;box-shadow:0 0 3px}.fuse-card.fuse-card-sort{padding:20px 10px;border-right:solid 1px #ccc;color:#000000de;display:flex;flex-direction:row;align-items:center;justify-content:space-between;box-sizing:border-box;cursor:move;background:white;font-size:14px;flex-grow:1;flex-basis:0}.cdk-drag-preview{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder{opacity:0}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.fuse-card:last-child{border:none}.card-list.cdk-drop-list-dragging .fuse-card:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i6$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "component", type: i5$1.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i4$1.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i4$1.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1437
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FileListCardComponent, decorators: [{
1438
+ type: Component,
1439
+ args: [{ selector: 'shared-file-list-card', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"fuse-card\"\n [ngClass]=\"{'fuse-card-sort': mode === ModeSort}\">\n <div class=\"top-panel\" fxLayout=\"row\" fxLayoutAlign=\"end center\">\n <button\n mat-icon-button\n aria-label=\"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A\"\n title=\"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A\"\n class=\"color-green\"\n (click)=\"editFile()\"\n >\n <mat-icon>edit</mat-icon>\n </button>\n <button mat-icon-button\n aria-label=\"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u0433\u043B\u0430\u0432\u043D\u044B\u043C\"\n title=\"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u0433\u043B\u0430\u0432\u043D\u044B\u043C\"\n (click)=\"setMain(file.id, file.main)\"\n [ngClass]=\"{'cursor-no-pointer': file.main}\">\n <mat-icon *ngIf=\"!file.main\">star_border</mat-icon>\n <mat-icon *ngIf=\"file.main\">star</mat-icon>\n </button>\n <button\n mat-icon-button\n aria-label=\"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0444\u0430\u0439\u043B\"\n title=\"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0444\u0430\u0439\u043B\"\n class=\"color-red\"\n (click)=\"fileDelete(file.id)\"\n >\n <mat-icon>delete_outline</mat-icon>\n </button>\n </div>\n <div class=\"image\"\n [ngStyle]=\"{'background-image': file.versions ? 'url(' + file.versions[2] + ')' : 'none'}\"></div>\n <div class=\"p-10 cart-title p-0\"\n [ngClass]=\"{'edit-title': edit, 'empty-title': !file.title}\">\n <div class=\"width100 display-flex-space-between edit-block\"\n [ngClass]=\"{'edit-block-open': edit}\">\n\n <div *ngIf=\"!edit && file?.title\" class=\"h3\">{{file.title}}</div>\n <ng-container *ngIf=\"edit\">\n <textarea type=\"text\"\n placeholder=\"Enter image title...\"\n class=\"edit-textarea\"\n (change)=\"changeTitle($event)\"\n [innerText]=\"file && file.title ? file.title : ''\"></textarea>\n <div class=\"edit-button\">\n <button\n mat-icon-button\n aria-label=\"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\"\n title=\"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\"\n class=\"color-green\"\n (click)=\"saveTitle(file)\"\n >\n <mat-icon>check</mat-icon>\n </button>\n <button\n mat-icon-button\n aria-label=\"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C\"\n title=\"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C\"\n class=\"color-red\"\n (click)=\"edit = false\"\n >\n <mat-icon>close</mat-icon>\n </button>\n </div>\n </ng-container>\n </div>\n </div>\n <shared-spinner\n *ngIf=\"loading\"\n [overlay]=\"true\"\n [diameter]=\"20\"\n [color]=\"'blue'\"></shared-spinner>\n</div>\n", styles: [":host.cdk-drag-placeholder .fuse-card{z-index:1000}.custom-placeholder{background:#ccc;border:dotted 3px #999;min-height:60px;transition:transform .25s cubic-bezier(0,0,.2,1)}.fuse-card{margin:5px;position:relative;max-width:250px;min-width:250px;max-height:160px;min-height:160px;cursor:move}.fuse-card.fuse-card-sort{max-width:200px;min-width:200px;padding:5px!important}.fuse-card.fuse-card-sort .top-panel,.fuse-card.fuse-card-sort .cart-title{display:none}.fuse-card.fuse-card-sort .image{width:200px;height:100px}.fuse-card:hover .cart-title,.fuse-card:hover .top-panel{background:rgba(239,239,239,.78);transform:scale(1);margin-top:0;margin-right:0}.fuse-card:hover .cart-title button mat-icon,.fuse-card:hover .top-panel button mat-icon{transform:scale(.8)}.fuse-card:hover .cart-title .h3{font-size:14px}.fuse-card .image{width:250px;height:160px;text-align:center;background-size:cover;background-position:center top;border-radius:6px;overflow:hidden}.fuse-card .top-panel,.fuse-card .cart-title{background:rgba(239,239,239,.5);transition:all .2s linear}.fuse-card .top-panel:hover,.fuse-card .cart-title:hover{background:rgb(239,239,239)}.fuse-card .top-panel{position:absolute;right:0;border-bottom-left-radius:12px;transform:scale(.8);margin-top:-4px;margin-right:-12px}.fuse-card .top-panel button.color-green mat-icon{color:#236126cc}.fuse-card .top-panel button.color-green:hover mat-icon{color:#4caf50}.fuse-card .top-panel button.color-red mat-icon{color:#f44336cc}.fuse-card .top-panel button.color-red:hover mat-icon{color:#f44336}.fuse-card .top-panel button mat-icon{color:#323232cc}.fuse-card .top-panel button mat-icon{transition:all .2s linear;transform:scale(1)}.fuse-card .top-panel button:hover mat-icon{color:#000;transform:scale(1)}.fuse-card .top-panel button mat-icon{font-size:20px}.fuse-card .cart-title{position:absolute;left:0;right:0;bottom:0;font-size:12px;padding:10px;display:flex;transition:all .3s linear;border-bottom-left-radius:5px;border-bottom-right-radius:5px}.fuse-card .cart-title.empty-title{background:transparent}.fuse-card .cart-title.edit-title{background:#fff}.fuse-card .cart-title.edit-title button mat-icon:hover{color:#7f7f7f}.fuse-card .cart-title .h3{flex-grow:1;padding:9px 5px 9px 10px;color:#fff;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transition:all .2s linear;font-size:12px}.fuse-card .cart-title .h3:hover{color:#079be5}.fuse-card .cart-title .edit-block{transition:all .2s linear}.fuse-card .cart-title .edit-block.edit-block-open{background:#f5f5f5}.fuse-card .cart-title textarea.edit-textarea{flex-grow:1;background-color:transparent;border:0;resize:none;padding:5px 0 5px 5px}.fuse-card .cart-title .edit-button{width:40px}.fuse-card .cart-title .edit-button button mat-icon{color:#d0d0d0;transition:all .2s linear}.fuse-card .cart-title .edit-button button mat-icon:hover{color:#fff;box-shadow:0 0 3px}.fuse-card.fuse-card-sort{padding:20px 10px;border-right:solid 1px #ccc;color:#000000de;display:flex;flex-direction:row;align-items:center;justify-content:space-between;box-sizing:border-box;cursor:move;background:white;font-size:14px;flex-grow:1;flex-basis:0}.cdk-drag-preview{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder{opacity:0}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.fuse-card:last-child{border:none}.card-list.cdk-drop-list-dragging .fuse-card:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}\n"] }]
1440
+ }], ctorParameters: function () { return [{ type: i1$6.FilesFacade }, { type: i2$6.NotificationsFacade }, { type: i3$2.DialogService }, { type: i0.ChangeDetectorRef }, { type: i4$3.RequestsFacade }]; }, propDecorators: { file: [{
1441
+ type: Input
1442
+ }], section: [{
1443
+ type: Input
1444
+ }], itemId: [{
1445
+ type: Input
1446
+ }], mode: [{
1447
+ type: Input
1448
+ }] } });
1449
+
1450
+ class FilesUploadListImagesComponent {
1451
+ constructor(filesFacade) {
1452
+ this.filesFacade = filesFacade;
1453
+ this.mode = FileListModeList$1;
1454
+ this.changeSort = new EventEmitter();
1455
+ this.loaded = false;
1456
+ this.trackById = trackById;
1457
+ this.storedFirstSorting = [];
1458
+ }
1459
+ ngOnInit() {
1460
+ this.getFiles();
1461
+ }
1462
+ ngOnDestroy() {
1463
+ }
1464
+ getFiles() {
1465
+ this.files$ = this.filesFacade.getFiles({
1466
+ itemId: this.itemId,
1467
+ section: this.section,
1468
+ type: this.filesType
1469
+ })
1470
+ .pipe(map((files) => {
1471
+ if (files && files.length) {
1472
+ this.files = files.sort(this.sortFiles);
1473
+ this.storedFirstSorting = this.saveFirstSorting(this.files);
1474
+ return this.prepareFiles(files);
1475
+ }
1476
+ return files;
1477
+ }), untilComponentDestroyed(this));
1478
+ }
1479
+ saveFirstSorting(files) {
1480
+ return files.map((item, order) => ({ id: item.id, order }));
1481
+ }
1482
+ sortFiles(a, b) {
1483
+ // @ts-ignore
1484
+ if (a.order < b.order)
1485
+ return -1;
1486
+ // @ts-ignore
1487
+ if (a.order > b.order)
1488
+ return 1;
1489
+ return 0;
1490
+ }
1491
+ prepareFiles(files) {
1492
+ let mapFiles;
1493
+ if (files) {
1494
+ mapFiles = files.sort((a, b) => a.sort - b.sort);
1495
+ mapFiles
1496
+ .map(file => (Object.assign({}, file)))
1497
+ .forEach(item => {
1498
+ item.edit = false;
1499
+ if (!item.title) {
1500
+ item.title = '';
1501
+ }
1502
+ });
1503
+ }
1504
+ this.loaded = true;
1505
+ return mapFiles;
1506
+ }
1507
+ drop(event) {
1508
+ moveItemInArray(this.files, event.previousIndex, event.currentIndex);
1509
+ const newSorting = [];
1510
+ this.files.forEach((item, index) => {
1511
+ // @ts-ignore
1512
+ newSorting.push({ id: item.id, order: index });
1513
+ });
1514
+ this.changeSort.emit({ newSorting, storedSorting: this.storedFirstSorting });
1515
+ }
1516
+ }
1517
+ FilesUploadListImagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilesUploadListImagesComponent, deps: [{ token: i1$7.FilesFacade }], target: i0.ɵɵFactoryTarget.Component });
1518
+ FilesUploadListImagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FilesUploadListImagesComponent, selector: "shared-files-upload-list-images", inputs: { section: "section", filesType: "filesType", itemId: "itemId", mode: "mode" }, outputs: { changeSort: "changeSort" }, ngImport: i0, template: "<div class=\"cards position-relative\">\n <ng-container *ngIf=\"files$ | async as files; else loading\">\n <div *ngIf=\"files.length\"\n cdkDropList\n cdkDropListOrientation=\"horizontal\"\n (cdkDropListDropped)=\"drop($event)\"\n class=\"card-list\">\n <!-- trackBy: trackById -->\n <shared-file-list-card\n cdkDrag\n *ngFor=\"let file of files;\"\n @hideToTopOpacity\n [file]=\"file\"\n [section]=\"section\"\n [itemId]=\"itemId\"></shared-file-list-card>\n </div>\n <div *ngIf=\"!files.length\" class=\"empty-list\">\n \u0421\u043F\u0438\u0441\u043E\u043A \u043F\u0443\u0441\u0442\n </div>\n </ng-container>\n</div>\n<ng-template #loading>\n <shared-spinner [overlay]=\"true\"></shared-spinner>\n</ng-template>\n", styles: [".image{text-align:center;background-size:cover;background-position:center top;width:318px;height:200px;border-radius:6px;overflow:hidden}.custom-placeholder{background:#ccc;border:dotted 3px #999;min-height:60px;transition:transform .25s cubic-bezier(0,0,.2,1)}.cards,.card-list{display:flex;flex-wrap:wrap}.card-list-sort{flex-direction:column;flex-wrap:nowrap;overflow:hidden}.cdk-drag-preview{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder{opacity:0}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.fuse-card:last-child{border:none}.card-list.cdk-drop-list-dragging .fuse-card:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3$3.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$3.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: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "component", type: FileListCardComponent, selector: "shared-file-list-card", inputs: ["file", "section", "itemId", "mode"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], animations: [hideToTopOpacity], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1519
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilesUploadListImagesComponent, decorators: [{
1520
+ type: Component,
1521
+ args: [{ selector: 'shared-files-upload-list-images', changeDetection: ChangeDetectionStrategy.OnPush, animations: [hideToTopOpacity], template: "<div class=\"cards position-relative\">\n <ng-container *ngIf=\"files$ | async as files; else loading\">\n <div *ngIf=\"files.length\"\n cdkDropList\n cdkDropListOrientation=\"horizontal\"\n (cdkDropListDropped)=\"drop($event)\"\n class=\"card-list\">\n <!-- trackBy: trackById -->\n <shared-file-list-card\n cdkDrag\n *ngFor=\"let file of files;\"\n @hideToTopOpacity\n [file]=\"file\"\n [section]=\"section\"\n [itemId]=\"itemId\"></shared-file-list-card>\n </div>\n <div *ngIf=\"!files.length\" class=\"empty-list\">\n \u0421\u043F\u0438\u0441\u043E\u043A \u043F\u0443\u0441\u0442\n </div>\n </ng-container>\n</div>\n<ng-template #loading>\n <shared-spinner [overlay]=\"true\"></shared-spinner>\n</ng-template>\n", styles: [".image{text-align:center;background-size:cover;background-position:center top;width:318px;height:200px;border-radius:6px;overflow:hidden}.custom-placeholder{background:#ccc;border:dotted 3px #999;min-height:60px;transition:transform .25s cubic-bezier(0,0,.2,1)}.cards,.card-list{display:flex;flex-wrap:wrap}.card-list-sort{flex-direction:column;flex-wrap:nowrap;overflow:hidden}.cdk-drag-preview{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder{opacity:0}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.fuse-card:last-child{border:none}.card-list.cdk-drop-list-dragging .fuse-card:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}\n"] }]
1522
+ }], ctorParameters: function () { return [{ type: i1$7.FilesFacade }]; }, propDecorators: { section: [{
1523
+ type: Input
1524
+ }], filesType: [{
1525
+ type: Input
1526
+ }], itemId: [{
1527
+ type: Input
1528
+ }], mode: [{
1529
+ type: Input
1530
+ }], changeSort: [{
1531
+ type: Output
1532
+ }] } });
1533
+
1534
+ class TableFilesUploadingComponent {
1535
+ constructor(filesFacade, notificationsFacade, changeDetectorRef, authenticationService, config) {
1536
+ this.filesFacade = filesFacade;
1537
+ this.notificationsFacade = notificationsFacade;
1538
+ this.changeDetectorRef = changeDetectorRef;
1539
+ this.authenticationService = authenticationService;
1540
+ this.config = config;
1541
+ this.haveElevation = true;
1542
+ this.loadingCompleted = new EventEmitter();
1543
+ this.hasBaseDropZoneOver = false;
1544
+ this.loaded = false;
1545
+ this.allProgress$ = new Subject();
1546
+ this.itemsProgress$ = new Subject();
1547
+ this.itemsProgress = {};
1548
+ this.showInputs = true;
1549
+ }
1550
+ ngOnInit() {
1551
+ this.allProgress$.next(0);
1552
+ this.itemsProgress$.next({});
1553
+ this.initUploader();
1554
+ }
1555
+ ngOnDestroy() {
1556
+ this.allProgress$.complete();
1557
+ this.itemsProgress$.complete();
1558
+ }
1559
+ initUploader() {
1560
+ this.publicUrl = this.config.publicUrl;
1561
+ const apiUrl = this.config.apiUrl;
1562
+ const { token } = this.authenticationService.loadAuthDataFromLocalStore();
1563
+ const uploadUrl = `${apiUrl}/api/files/${this.section}/${this.itemId}`;
1564
+ this.url = `${this.publicUrl}/${this.section}/${this.itemId}`;
1565
+ this.uploader = new FileUploader({
1566
+ url: uploadUrl,
1567
+ authToken: `JWT ${token}`,
1568
+ isHTML5: true,
1569
+ autoUpload: true
1570
+ });
1571
+ this.uploader.onProgressItem = (item, progress) => this.onProgressItem(item, progress);
1572
+ this.uploader.onProgressAll = (progress) => this.onProgressAll(progress);
1573
+ this.uploader.onErrorItem = (item, response, status, headers) => this.onErrorItem(item, response, status, headers);
1574
+ this.uploader.onAfterAddingFile = () => this.onAfterAddingFile();
1575
+ this.uploader.onCompleteAll = this.onCompleteAll.bind(this);
1576
+ }
1577
+ onToggleImageBlockDone(e) {
1578
+ if (e.toState === 'open') {
1579
+ }
1580
+ }
1581
+ fileOverBase(e) {
1582
+ this.hasBaseDropZoneOver = e;
1583
+ }
1584
+ onAfterAddingFile() {
1585
+ this.showInputs = false;
1586
+ this.changeDetectorRef.markForCheck();
1587
+ }
1588
+ onProgressItem(fileItem, progress) {
1589
+ const fileName = fileItem.file.name;
1590
+ this.itemsProgress[fileName] = progress;
1591
+ this.itemsProgress$.next(this.itemsProgress);
1592
+ }
1593
+ onProgressAll(progress) {
1594
+ this.allProgress$.next(progress);
1595
+ }
1596
+ onCompleteAll() {
1597
+ this.notificationsFacade.addNotifications({
1598
+ type: 'success',
1599
+ text: 'Картинки успешно загружены',
1600
+ id: 'images.uploads',
1601
+ timeout: 2000
1602
+ });
1603
+ this.filesFacade.loadFiles({ itemId: this.itemId, section: this.section });
1604
+ this.loadingCompleted.emit();
1605
+ }
1606
+ onErrorItem(item, response, status, headers) {
1607
+ this.notificationsFacade.addNotifications({
1608
+ type: 'error',
1609
+ text: 'При загрузке возникли ошибки, попробуйте еще раз',
1610
+ title: 'Ошибка',
1611
+ id: 'images.uploads'
1612
+ });
1613
+ }
1614
+ }
1615
+ TableFilesUploadingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableFilesUploadingComponent, deps: [{ token: i1$7.FilesFacade }, { token: i2$6.NotificationsFacade }, { token: i0.ChangeDetectorRef }, { token: i4$2.AuthenticationService }, { token: CORE_CONFIG }], target: i0.ɵɵFactoryTarget.Component });
1616
+ TableFilesUploadingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: TableFilesUploadingComponent, selector: "shared-table-files-uploading", inputs: { section: "section", itemId: "itemId", haveElevation: "haveElevation" }, outputs: { loadingCompleted: "loadingCompleted" }, ngImport: i0, template: "<div\n class=\"page-layout simple fullwidth fileUploads\"\n fxLayout=\"column\">\n <!-- CONTENT -->\n <div class=\"p-24\"\n [ngClass]=\"{'mat-card mat-elevation-z4': haveElevation}\">\n <div class=\"row\">\n <div class=\"col-md-12\" *ngIf=\"!uploader.queue.length\" [@appearFromLeftHideToRight]>\n <div class=\"h2 mb-24\">\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0430\u0439\u043B\u044B</div>\n <div ng2FileDrop\n [ngClass]=\"{'nv-file-over': hasBaseDropZoneOver}\"\n (fileOver)=\"fileOverBase($event)\"\n [uploader]=\"uploader\"\n class=\"well my-drop-zone\">\n \u041F\u0435\u0440\u0435\u043D\u0435\u0441\u0438\u0442\u0435 \u0444\u0430\u0439\u043B\u044B\n </div>\n <div class=\"p-5\">\n \u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0430\u0439\u043B\u044B: <input type=\"file\" ng2FileSelect [uploader]=\"uploader\" multiple/><br/>\n </div>\n </div>\n\n <div *ngIf=\"uploader && uploader.queue.length\" [@appearFromLeftHideToRight] class=\"col-md-12\">\n <ng-container *ngIf=\"allProgress$ | async as allProgress\">\n <ng-container *ngIf=\"itemsProgress$ | async as itemsProgress\">\n <ng-container *ngIf=\"allProgress !== 100\">\n <h3>\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u043A\u0430\u0440\u0442\u0438\u043D\u043E\u043A</h3>\n <table class=\"table\">\n <thead>\n <tr>\n <th width=\"50%\">\u0424\u0430\u0439\u043B</th>\n <th>\u0420\u0430\u0437\u043C\u0435\u0440</th>\n <th>\u041F\u0440\u043E\u0433\u0440\u0435\u0441\u0441</th>\n </tr>\n </thead>\n <tbody>\n <ng-container *ngFor=\"let item of uploader.queue\">\n <tr [@appearFromLeftHideToRight] *ngIf=\"itemsProgress[item?.file?.name] !== 100\">\n <td><strong>{{ item?.file?.name }}</strong></td>\n <td nowrap>{{ item?.file?.size / 1024 / 1024 | number:'.2' }} MB</td>\n <td>\n <div class=\"progress\">\n <mat-progress-bar\n class=\"example-margin\"\n color=\"warn\"\n mode=\"determinate\"\n [value]=\"itemsProgress[item?.file?.name] || 0\">\n </mat-progress-bar>\n </div>\n </td>\n </tr>\n </ng-container>\n </tbody>\n </table>\n <div>\n <div class=\"progress-block\">\n Queue progress:\n <div class=\"progress\">\n <mat-progress-bar\n class=\"example-margin\"\n color=\"warn\"\n mode=\"determinate\"\n [value]=\"allProgress\">\n </mat-progress-bar>\n </div>\n </div>\n <!--<div class=\"text-right\">\n <button mat-flat-button color=\"accent\"\n class=\"mr-5\"\n (click)=\"uploader.uploadAll()\"\n [disabled]=\"!uploader.getNotUploadedItems().length\">\n <mat-icon class=\"fs-18\">get_app</mat-icon>\n \u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0432\u0441\u0435\n </button>\n <button mat-flat-button color=\"primary\"\n class=\"mr-5\"\n (click)=\"uploader.cancelAll()\"\n [disabled]=\"!uploader.isUploading\">\n <mat-icon class=\"fs-18\">clear</mat-icon>\n \u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C \u0432\u0441\u0435\n </button>\n <button mat-flat-button color=\"warn\"\n class=\"mr-5\"\n (click)=\"uploader.clearQueue()\"\n [disabled]=\"!uploader.queue.length\">\n <mat-icon class=\"fs-18\">delete_outline</mat-icon>\n \u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u0441\u0435\n </button>\n </div>-->\n </div>\n </ng-container>\n </ng-container>\n </ng-container>\n </div>\n </div>\n </div>\n</div>\n", styles: [":host{display:block}.fileUploads{margin-bottom:10px;margin-left:-5px}.fileUploads .mat-card{margin:5px}.nv-file-over{border:dotted 3px red}.cursor-no-pointer{cursor:auto}.table{width:100%}.table tr{line-height:40px;border-top:1px solid #efefef}.table thead{background:#efefef}.table thead th{padding:0 10px}.my-drop-zone{border:dotted 3px lightgray;padding:10px;margin-bottom:10px}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i5$2.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "directive", type: i6$4.FileDropDirective, selector: "[ng2FileDrop]", inputs: ["uploader"], outputs: ["fileOver", "onFileDrop"] }, { kind: "directive", type: i6$4.FileSelectDirective, selector: "[ng2FileSelect]", inputs: ["uploader"], outputs: ["onFileSelected"] }, { kind: "directive", type: i4$1.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i1.DecimalPipe, name: "number" }], animations: [
1617
+ hideToTopOpacity,
1618
+ appearFromLeftHideToRight
1619
+ ], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1620
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableFilesUploadingComponent, decorators: [{
1621
+ type: Component,
1622
+ args: [{ selector: 'shared-table-files-uploading', animations: [
1623
+ hideToTopOpacity,
1624
+ appearFromLeftHideToRight
1625
+ ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div\n class=\"page-layout simple fullwidth fileUploads\"\n fxLayout=\"column\">\n <!-- CONTENT -->\n <div class=\"p-24\"\n [ngClass]=\"{'mat-card mat-elevation-z4': haveElevation}\">\n <div class=\"row\">\n <div class=\"col-md-12\" *ngIf=\"!uploader.queue.length\" [@appearFromLeftHideToRight]>\n <div class=\"h2 mb-24\">\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0430\u0439\u043B\u044B</div>\n <div ng2FileDrop\n [ngClass]=\"{'nv-file-over': hasBaseDropZoneOver}\"\n (fileOver)=\"fileOverBase($event)\"\n [uploader]=\"uploader\"\n class=\"well my-drop-zone\">\n \u041F\u0435\u0440\u0435\u043D\u0435\u0441\u0438\u0442\u0435 \u0444\u0430\u0439\u043B\u044B\n </div>\n <div class=\"p-5\">\n \u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0430\u0439\u043B\u044B: <input type=\"file\" ng2FileSelect [uploader]=\"uploader\" multiple/><br/>\n </div>\n </div>\n\n <div *ngIf=\"uploader && uploader.queue.length\" [@appearFromLeftHideToRight] class=\"col-md-12\">\n <ng-container *ngIf=\"allProgress$ | async as allProgress\">\n <ng-container *ngIf=\"itemsProgress$ | async as itemsProgress\">\n <ng-container *ngIf=\"allProgress !== 100\">\n <h3>\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u043A\u0430\u0440\u0442\u0438\u043D\u043E\u043A</h3>\n <table class=\"table\">\n <thead>\n <tr>\n <th width=\"50%\">\u0424\u0430\u0439\u043B</th>\n <th>\u0420\u0430\u0437\u043C\u0435\u0440</th>\n <th>\u041F\u0440\u043E\u0433\u0440\u0435\u0441\u0441</th>\n </tr>\n </thead>\n <tbody>\n <ng-container *ngFor=\"let item of uploader.queue\">\n <tr [@appearFromLeftHideToRight] *ngIf=\"itemsProgress[item?.file?.name] !== 100\">\n <td><strong>{{ item?.file?.name }}</strong></td>\n <td nowrap>{{ item?.file?.size / 1024 / 1024 | number:'.2' }} MB</td>\n <td>\n <div class=\"progress\">\n <mat-progress-bar\n class=\"example-margin\"\n color=\"warn\"\n mode=\"determinate\"\n [value]=\"itemsProgress[item?.file?.name] || 0\">\n </mat-progress-bar>\n </div>\n </td>\n </tr>\n </ng-container>\n </tbody>\n </table>\n <div>\n <div class=\"progress-block\">\n Queue progress:\n <div class=\"progress\">\n <mat-progress-bar\n class=\"example-margin\"\n color=\"warn\"\n mode=\"determinate\"\n [value]=\"allProgress\">\n </mat-progress-bar>\n </div>\n </div>\n <!--<div class=\"text-right\">\n <button mat-flat-button color=\"accent\"\n class=\"mr-5\"\n (click)=\"uploader.uploadAll()\"\n [disabled]=\"!uploader.getNotUploadedItems().length\">\n <mat-icon class=\"fs-18\">get_app</mat-icon>\n \u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0432\u0441\u0435\n </button>\n <button mat-flat-button color=\"primary\"\n class=\"mr-5\"\n (click)=\"uploader.cancelAll()\"\n [disabled]=\"!uploader.isUploading\">\n <mat-icon class=\"fs-18\">clear</mat-icon>\n \u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C \u0432\u0441\u0435\n </button>\n <button mat-flat-button color=\"warn\"\n class=\"mr-5\"\n (click)=\"uploader.clearQueue()\"\n [disabled]=\"!uploader.queue.length\">\n <mat-icon class=\"fs-18\">delete_outline</mat-icon>\n \u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u0441\u0435\n </button>\n </div>-->\n </div>\n </ng-container>\n </ng-container>\n </ng-container>\n </div>\n </div>\n </div>\n</div>\n", styles: [":host{display:block}.fileUploads{margin-bottom:10px;margin-left:-5px}.fileUploads .mat-card{margin:5px}.nv-file-over{border:dotted 3px red}.cursor-no-pointer{cursor:auto}.table{width:100%}.table tr{line-height:40px;border-top:1px solid #efefef}.table thead{background:#efefef}.table thead th{padding:0 10px}.my-drop-zone{border:dotted 3px lightgray;padding:10px;margin-bottom:10px}\n"] }]
1626
+ }], ctorParameters: function () {
1627
+ return [{ type: i1$7.FilesFacade }, { type: i2$6.NotificationsFacade }, { type: i0.ChangeDetectorRef }, { type: i4$2.AuthenticationService }, { type: undefined, decorators: [{
1628
+ type: Inject,
1629
+ args: [CORE_CONFIG]
1630
+ }] }];
1631
+ }, propDecorators: { section: [{
1632
+ type: Input
1633
+ }], itemId: [{
1634
+ type: Input
1635
+ }], haveElevation: [{
1636
+ type: Input
1637
+ }], loadingCompleted: [{
1638
+ type: Output
1639
+ }] } });
1640
+
1641
+ class FilesUploadComponent {
1642
+ constructor(filesFacade, requestsFacade, cd) {
1643
+ this.filesFacade = filesFacade;
1644
+ this.requestsFacade = requestsFacade;
1645
+ this.cd = cd;
1646
+ this.haveElevation = true;
1647
+ this.uploadFilesState = 'close';
1648
+ this.mode = FileListModeList$1;
1649
+ this.fileListModeSort = FileListModeSort$1;
1650
+ this.openState = 'open';
1651
+ this.closeState = 'close';
1652
+ this.changedSort = false;
1653
+ this.filesUrl = 'files';
1654
+ this.sortUrl = 'sort';
1655
+ this.postMethod = 'post';
1656
+ this.request$ = this.requestsFacade.getRequestUpdates(this.filesUrl, this.postMethod, undefined, this.sortUrl);
1657
+ this.loadingStatus = RequestStatus.LOADING;
1658
+ }
1659
+ ngOnInit() {
1660
+ }
1661
+ ngOnDestroy() {
1662
+ this.requestsFacade.deleteRequestWaiter(this.filesUrl, this.postMethod, undefined, this.sortUrl);
1663
+ }
1664
+ saveSort() {
1665
+ this.cancelSort();
1666
+ this.requestsFacade.createRequestListener(this.filesUrl, this.postMethod, undefined, this.sortUrl);
1667
+ this.filesFacade.filesSort(this.fileOrders);
1668
+ }
1669
+ changeSort(data) {
1670
+ const { newSorting, storedSorting } = data;
1671
+ this.fileOrders = [...newSorting];
1672
+ this.storedSorting = [...storedSorting];
1673
+ this.changedSort = true;
1674
+ this.cd.markForCheck();
1675
+ }
1676
+ cancelSort() {
1677
+ this.changedSort = false;
1678
+ if (this.storedSorting) {
1679
+ this.filesFacade.filesUpdates(this.storedSorting);
1680
+ }
1681
+ this.cd.markForCheck();
1682
+ }
1683
+ uploadFilesToggle() {
1684
+ this.uploadFilesState = this.uploadFilesState === this.openState ? this.closeState : this.openState;
1685
+ }
1686
+ loadingCompleted() {
1687
+ this.uploadFilesState = this.closeState;
1688
+ }
1689
+ }
1690
+ FilesUploadComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilesUploadComponent, deps: [{ token: i1$7.FilesFacade }, { token: i4$3.RequestsFacade }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
1691
+ FilesUploadComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FilesUploadComponent, selector: "shared-files-upload", inputs: { section: "section", itemId: "itemId", filesType: "filesType", haveElevation: "haveElevation" }, ngImport: i0, template: "<div class=\"text-center mb-14 top-button\">\n <button\n *ngIf=\"!changedSort\"\n @appearOpacity\n mat-stroked-button\n color=\"accent\"\n (click)=\"uploadFilesToggle()\">\n <mat-icon class=\"fs-18\">add_a_photo</mat-icon>\n \u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0438\n </button>\n\n <button *ngIf=\"changedSort\"\n @appearOpacity\n mat-stroked-button\n color=\"primary\"\n (click)=\"cancelSort()\">\n <mat-icon class=\"fs-18\">cancel</mat-icon>\n \u041E\u0442\u043C\u0435\u043D\u0430\n </button>\n <button\n *ngIf=\"changedSort\"\n @appearOpacity\n class=\"ml-5\"\n mat-stroked-button\n color=\"accent\"\n [disabled]=\"!fileOrders\"\n (click)=\"saveSort()\">\n <mat-icon class=\"fs-18\">save</mat-icon>\n \u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0441\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u043A\u0443\n </button>\n</div>\n\n<shared-table-files-uploading\n [@appearFromLeft]\n *ngIf=\"uploadFilesState === openState\"\n [section]=\"section\"\n [itemId]=\"itemId\"\n [haveElevation]=\"haveElevation\"\n (loadingCompleted)=\"loadingCompleted()\"></shared-table-files-uploading>\n\n<shared-files-upload-list-images\n [@appearFromLeft]\n [section]=\"section\"\n [filesType]=\"filesType\"\n [itemId]=\"itemId\"\n [mode]=\"mode\"\n (changeSort)=\"changeSort($event)\"></shared-files-upload-list-images>\n\n<ng-container *ngIf=\"request$ | async as request\">\n <shared-spinner *ngIf=\"request && request.status === loadingStatus\" [overlay]=\"true\"></shared-spinner>\n</ng-container>\n", styles: [":host{width:100%;padding:10px}.another-file-over-class{border:dotted 3px green}html,body{height:100%}.cursor-no-pointer{cursor:auto}.edit-title{display:flex;width:100%}.edit-title textarea{flex-grow:1}.edit-title button{width:40px}button mat-icon{margin-right:5px;font-size:20px!important}.mb-14{margin-bottom:14px}.progress-block{margin-bottom:10px}.ml-5{margin-left:5px}.top-button{position:relative;z-index:10}.sub-button{opacity:0;margin-top:-50px}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i6$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "component", type: i5$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: FilesUploadListImagesComponent, selector: "shared-files-upload-list-images", inputs: ["section", "filesType", "itemId", "mode"], outputs: ["changeSort"] }, { kind: "component", type: TableFilesUploadingComponent, selector: "shared-table-files-uploading", inputs: ["section", "itemId", "haveElevation"], outputs: ["loadingCompleted"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], animations: [
1692
+ appearOpacity,
1693
+ appearFromLeft,
1694
+ appearFromLeftHideToRight
1695
+ ], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1696
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilesUploadComponent, decorators: [{
1697
+ type: Component,
1698
+ args: [{ selector: 'shared-files-upload', changeDetection: ChangeDetectionStrategy.OnPush, animations: [
1699
+ appearOpacity,
1700
+ appearFromLeft,
1701
+ appearFromLeftHideToRight
1702
+ ], template: "<div class=\"text-center mb-14 top-button\">\n <button\n *ngIf=\"!changedSort\"\n @appearOpacity\n mat-stroked-button\n color=\"accent\"\n (click)=\"uploadFilesToggle()\">\n <mat-icon class=\"fs-18\">add_a_photo</mat-icon>\n \u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u043A\u0430\u0440\u0442\u0438\u043D\u043A\u0438\n </button>\n\n <button *ngIf=\"changedSort\"\n @appearOpacity\n mat-stroked-button\n color=\"primary\"\n (click)=\"cancelSort()\">\n <mat-icon class=\"fs-18\">cancel</mat-icon>\n \u041E\u0442\u043C\u0435\u043D\u0430\n </button>\n <button\n *ngIf=\"changedSort\"\n @appearOpacity\n class=\"ml-5\"\n mat-stroked-button\n color=\"accent\"\n [disabled]=\"!fileOrders\"\n (click)=\"saveSort()\">\n <mat-icon class=\"fs-18\">save</mat-icon>\n \u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C \u0441\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u043A\u0443\n </button>\n</div>\n\n<shared-table-files-uploading\n [@appearFromLeft]\n *ngIf=\"uploadFilesState === openState\"\n [section]=\"section\"\n [itemId]=\"itemId\"\n [haveElevation]=\"haveElevation\"\n (loadingCompleted)=\"loadingCompleted()\"></shared-table-files-uploading>\n\n<shared-files-upload-list-images\n [@appearFromLeft]\n [section]=\"section\"\n [filesType]=\"filesType\"\n [itemId]=\"itemId\"\n [mode]=\"mode\"\n (changeSort)=\"changeSort($event)\"></shared-files-upload-list-images>\n\n<ng-container *ngIf=\"request$ | async as request\">\n <shared-spinner *ngIf=\"request && request.status === loadingStatus\" [overlay]=\"true\"></shared-spinner>\n</ng-container>\n", styles: [":host{width:100%;padding:10px}.another-file-over-class{border:dotted 3px green}html,body{height:100%}.cursor-no-pointer{cursor:auto}.edit-title{display:flex;width:100%}.edit-title textarea{flex-grow:1}.edit-title button{width:40px}button mat-icon{margin-right:5px;font-size:20px!important}.mb-14{margin-bottom:14px}.progress-block{margin-bottom:10px}.ml-5{margin-left:5px}.top-button{position:relative;z-index:10}.sub-button{opacity:0;margin-top:-50px}\n"] }]
1703
+ }], ctorParameters: function () { return [{ type: i1$7.FilesFacade }, { type: i4$3.RequestsFacade }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { section: [{
1704
+ type: Input
1705
+ }], itemId: [{
1706
+ type: Input
1707
+ }], filesType: [{
1708
+ type: Input
1709
+ }], haveElevation: [{
1710
+ type: Input
1711
+ }] } });
1712
+
1713
+ class FilesUploadModule {
1714
+ }
1715
+ FilesUploadModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilesUploadModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1716
+ FilesUploadModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: FilesUploadModule, declarations: [FilesUploadComponent,
1717
+ FilesUploadListImagesComponent,
1718
+ FileListCardComponent,
1719
+ TableFilesUploadingComponent], imports: [CommonModule,
1720
+ MatIconModule,
1721
+ MatProgressBarModule,
1722
+ FileUploadModule,
1723
+ DragDropModule,
1724
+ SharedSpinnerModule$1,
1725
+ MatButtonModule,
1726
+ FlexModule
1727
+ // SortablejsModule
1728
+ ], exports: [FilesUploadComponent,
1729
+ DragDropModule] });
1730
+ FilesUploadModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilesUploadModule, imports: [CommonModule,
1731
+ MatIconModule,
1732
+ MatProgressBarModule,
1733
+ FileUploadModule,
1734
+ DragDropModule,
1735
+ SharedSpinnerModule$1,
1736
+ MatButtonModule,
1737
+ FlexModule
1738
+ // SortablejsModule
1739
+ ,
1740
+ DragDropModule] });
1741
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilesUploadModule, decorators: [{
1742
+ type: NgModule,
1743
+ args: [{
1744
+ imports: [
1745
+ CommonModule,
1746
+ MatIconModule,
1747
+ MatProgressBarModule,
1748
+ FileUploadModule,
1749
+ DragDropModule,
1750
+ SharedSpinnerModule$1,
1751
+ MatButtonModule,
1752
+ FlexModule
1753
+ // SortablejsModule
1754
+ ],
1755
+ declarations: [
1756
+ FilesUploadComponent,
1757
+ FilesUploadListImagesComponent,
1758
+ FileListCardComponent,
1759
+ TableFilesUploadingComponent
1760
+ ],
1761
+ exports: [
1762
+ FilesUploadComponent,
1763
+ DragDropModule
1764
+ ]
1765
+ }]
1766
+ }] });
1767
+
1768
+ const FileListModeList = 'list';
1769
+ const FileListModeSort = 'sort';
1770
+
1771
+ class FormFieldPublishErrorModule {
1772
+ }
1773
+ FormFieldPublishErrorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldPublishErrorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1774
+ FormFieldPublishErrorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: FormFieldPublishErrorModule, declarations: [FormFieldPublishErrorComponent$1], imports: [CommonModule,
1775
+ MatFormFieldModule], exports: [FormFieldPublishErrorComponent$1] });
1776
+ FormFieldPublishErrorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldPublishErrorModule, imports: [CommonModule,
1777
+ MatFormFieldModule] });
1778
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldPublishErrorModule, decorators: [{
1779
+ type: NgModule,
1780
+ args: [{
1781
+ declarations: [FormFieldPublishErrorComponent$1],
1782
+ exports: [
1783
+ FormFieldPublishErrorComponent$1
1784
+ ],
1785
+ imports: [
1786
+ CommonModule,
1787
+ MatFormFieldModule
1788
+ ]
1789
+ }]
1790
+ }] });
1791
+
1792
+ //import { AutoFormService } from "../../../../../../core/src/lib/services/auto-form/auto-form.service";
1793
+ /*import {
1794
+ PublishErrors,
1795
+ PublishErrorWithDescription
1796
+ } from "../../../../../../core/src/lib/constants/publish-errors.const";*/
1797
+ class FormFieldPublishErrorComponent {
1798
+ constructor(//private autoFormService: AutoFormService,
1799
+ publicationMessagesFacade) {
1800
+ this.publicationMessagesFacade = publicationMessagesFacade;
1801
+ this.unSubscribeSubject$ = new Subject();
1802
+ }
1803
+ ngOnInit() {
1804
+ this.subscribeToPublishErError();
1805
+ }
1806
+ ngOnDestroy() {
1807
+ this.unSubscribeSubject$.next();
1808
+ this.unSubscribeSubject$.complete();
1809
+ }
1810
+ subscribeToPublishErError() {
1811
+ /*const field = this.fieldData.field;
1812
+ const itemId = this.form.get('id')?.value;
1813
+
1814
+ if (itemId) {
1815
+ this.messages$ = this.publicationMessagesFacade.getPublicationMessage(this.entity, itemId)
1816
+ .pipe(
1817
+ map((items: FormErrorModel[]) => items.filter(item => item.field === field)),
1818
+ map((items: FormErrorModel[]) => ({
1819
+ errors: items.filter(item => item.isError),
1820
+ recommendations: items.filter(item => !item.isError)
1821
+ })),
1822
+ map((items) => ({
1823
+ errors: this.autoFormService.prepareFormFieldPublicationMessage(items.errors, PublishErrors, [this.fieldData]),
1824
+ recommendations: this.autoFormService.prepareFormFieldPublicationMessage(items.recommendations, PublishErrors, [this.fieldData])
1825
+ }))
1826
+ );
1827
+ } else {
1828
+ this.messages$ = EMPTY;
1829
+ }*/
1830
+ }
1831
+ }
1832
+ FormFieldPublishErrorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldPublishErrorComponent, deps: [{ token: i1$4.PublicationMessagesFacade }], target: i0.ɵɵFactoryTarget.Component });
1833
+ FormFieldPublishErrorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: FormFieldPublishErrorComponent, selector: "shared-form-field-publish-error", inputs: { form: "form", entity: "entity", errorMessageTexts: "errorMessageTexts" }, ngImport: i0, template: "<ng-container *ngIf=\"messages$ | async as messages\">\n <ng-container *ngFor=\"let messageObj of messages.errors\">\n <div @appearFromLeft class=\"color-red\">\n {{messageObj.description}}\n </div>\n </ng-container>\n <ng-container *ngFor=\"let messageObj of messages.recommendations\">\n <div @appearFromLeft class=\"color-orange\">\n {{messageObj.description}}\n </div>\n </ng-container>\n</ng-container>\n\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], animations: [appearFromLeft], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1834
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldPublishErrorComponent, decorators: [{
1835
+ type: Component,
1836
+ args: [{ selector: 'shared-form-field-publish-error', changeDetection: ChangeDetectionStrategy.OnPush, animations: [appearFromLeft], template: "<ng-container *ngIf=\"messages$ | async as messages\">\n <ng-container *ngFor=\"let messageObj of messages.errors\">\n <div @appearFromLeft class=\"color-red\">\n {{messageObj.description}}\n </div>\n </ng-container>\n <ng-container *ngFor=\"let messageObj of messages.recommendations\">\n <div @appearFromLeft class=\"color-orange\">\n {{messageObj.description}}\n </div>\n </ng-container>\n</ng-container>\n\n" }]
1837
+ }], ctorParameters: function () { return [{ type: i1$4.PublicationMessagesFacade }]; }, propDecorators: { form: [{
1838
+ type: Input
1839
+ }], entity: [{
1840
+ type: Input
1841
+ }], errorMessageTexts: [{
1842
+ type: Input
1843
+ }] } });
1844
+
1845
+ class HeaderComponent {
1846
+ constructor() {
1847
+ this.title = 'Travel BloGG';
1848
+ this.small = false;
1849
+ }
1850
+ ngOnInit() {
1851
+ }
1852
+ }
1853
+ HeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1854
+ HeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: HeaderComponent, selector: "shared-header", inputs: { title: "title", subTitle: "subTitle", description: "description", image: "image", small: "small" }, ngImport: i0, template: "<section class=\"home_banner_area\" [ngStyle]=\"{'background-image': image ? ' url(assets/' + image + ')' : '', 'color': '#ff0000'}\">\n <div class=\"banner_inner\" [ngClass]=\"{'dark-bg': image}\">\n <div class=\"container\">\n <div class=\"row\">\n <div class=\"col-lg-3 text-right\">\n <div class=\"home_left_img mb-14\">\n <img class=\"img-fluid\" src=\"assets/images/banner/logo.png\" [alt]=\"title\">\n </div>\n </div>\n <div class=\"col-lg-9\" style=\"margin-top: 45px\">\n <div class=\"banner_content\">\n <div *ngIf=\"subTitle\" class=\"sub-title\">{{subTitle}}</div>\n <h1>\n {{title}}\n </h1>\n <p class=\"description\" *ngIf=\"description\">\n {{description}}\n </p>\n </div>\n </div>\n </div>\n </div>\n </div>\n</section>\n", styles: [".description{height:83px;overflow:hidden;line-height:20px;font-size:14px}.dark-bg{background-color:#0000008c}.mb-14{margin-bottom:14px}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
1855
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HeaderComponent, decorators: [{
1856
+ type: Component,
1857
+ args: [{ selector: 'shared-header', template: "<section class=\"home_banner_area\" [ngStyle]=\"{'background-image': image ? ' url(assets/' + image + ')' : '', 'color': '#ff0000'}\">\n <div class=\"banner_inner\" [ngClass]=\"{'dark-bg': image}\">\n <div class=\"container\">\n <div class=\"row\">\n <div class=\"col-lg-3 text-right\">\n <div class=\"home_left_img mb-14\">\n <img class=\"img-fluid\" src=\"assets/images/banner/logo.png\" [alt]=\"title\">\n </div>\n </div>\n <div class=\"col-lg-9\" style=\"margin-top: 45px\">\n <div class=\"banner_content\">\n <div *ngIf=\"subTitle\" class=\"sub-title\">{{subTitle}}</div>\n <h1>\n {{title}}\n </h1>\n <p class=\"description\" *ngIf=\"description\">\n {{description}}\n </p>\n </div>\n </div>\n </div>\n </div>\n </div>\n</section>\n", styles: [".description{height:83px;overflow:hidden;line-height:20px;font-size:14px}.dark-bg{background-color:#0000008c}.mb-14{margin-bottom:14px}\n"] }]
1858
+ }], ctorParameters: function () { return []; }, propDecorators: { title: [{
1859
+ type: Input
1860
+ }], subTitle: [{
1861
+ type: Input
1862
+ }], description: [{
1863
+ type: Input
1864
+ }], image: [{
1865
+ type: Input
1866
+ }], small: [{
1867
+ type: Input
1868
+ }] } });
1869
+
1870
+ class HeaderModule {
1871
+ }
1872
+ HeaderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HeaderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1873
+ HeaderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: HeaderModule, declarations: [HeaderComponent], imports: [CommonModule], exports: [CommonModule,
1874
+ HeaderComponent] });
1875
+ HeaderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HeaderModule, imports: [CommonModule, CommonModule] });
1876
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HeaderModule, decorators: [{
1877
+ type: NgModule,
1878
+ args: [{
1879
+ declarations: [HeaderComponent],
1880
+ imports: [
1881
+ CommonModule
1882
+ ],
1883
+ exports: [
1884
+ CommonModule,
1885
+ HeaderComponent
1886
+ ]
1887
+ }]
1888
+ }] });
1889
+
1890
+ class SharedIconModule {
1891
+ }
1892
+ SharedIconModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SharedIconModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1893
+ SharedIconModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: SharedIconModule, declarations: [IconComponent], imports: [CommonModule,
1894
+ MatIconModule], exports: [IconComponent] });
1895
+ SharedIconModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SharedIconModule, imports: [CommonModule,
1896
+ MatIconModule] });
1897
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SharedIconModule, decorators: [{
1898
+ type: NgModule,
1899
+ args: [{
1900
+ imports: [
1901
+ CommonModule,
1902
+ MatIconModule
1903
+ ],
1904
+ declarations: [IconComponent],
1905
+ exports: [IconComponent]
1906
+ }]
1907
+ }] });
1908
+
1909
+ class ImageComponent {
1910
+ constructor() {
1911
+ this.haveZoom = false;
1912
+ this.clickEvent = new EventEmitter();
1913
+ this.delete = new EventEmitter();
1914
+ this.showDeleteButton = false;
1915
+ }
1916
+ ngOnInit() {
1917
+ this.checkSubscribersForDelete();
1918
+ }
1919
+ ngOnChanges(changes) {
1920
+ if (changes.versions.currentValue) {
1921
+ this.setSrc();
1922
+ }
1923
+ }
1924
+ checkSubscribersForDelete() {
1925
+ var _a;
1926
+ if ((_a = this.delete) === null || _a === void 0 ? void 0 : _a.observers.length) {
1927
+ this.showDeleteButton = true;
1928
+ }
1929
+ }
1930
+ setSrc() {
1931
+ if (this.versions && this.version) {
1932
+ this.src = this.versions[this.version];
1933
+ }
1934
+ else if (this.url) {
1935
+ this.src = this.url;
1936
+ }
1937
+ }
1938
+ clickHandler() {
1939
+ this.clickEvent.emit(this.index);
1940
+ }
1941
+ deleteImage() {
1942
+ this.delete.emit();
1943
+ }
1944
+ }
1945
+ ImageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ImageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1946
+ ImageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: ImageComponent, selector: "shared-image", inputs: { versions: "versions", url: "url", version: "version", title: "title", index: "index", haveZoom: "haveZoom", imgClass: "imgClass" }, outputs: { clickEvent: "clickEvent", delete: "delete" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"image-block\">\n <div *ngIf=\"showDeleteButton\" class=\"form-field-file-close mat-elevation-z4\" (click)=\"deleteImage()\">\n <mat-icon class=\"fs-14\">close</mat-icon>\n </div>\n <ng-container *ngIf=\"src\">\n <img [src]=\"src\" [title]=\"title\" [alt]=\"title\" [class]=\"imgClass\"/>\n <div *ngIf=\"haveZoom\" class=\"zoom\" (click)=\"clickHandler();\">\n <span class=\"lnr lnr-magnifier\"></span>\n </div>\n </ng-container>\n <ng-container *ngIf=\"!src\">\n <div class=\"default-image\">\n <img src=\"assets/images/default-image.png\" [alt]=\"title\"/>\n </div>\n </ng-container>\n</div>\n", styles: [":host{position:relative}.image-block{position:relative;height:100%}.image-block:hover .form-field-file-close{width:25px;height:25px;opacity:.8}.image-block:hover .form-field-file-close mat-icon{width:18px;min-width:18px;height:18px;min-height:18px;font-size:18px}.image-block .form-field-file-close{right:0;top:0;cursor:pointer;background:#fff;position:absolute;width:15px;height:15px;display:flex;align-items:center;justify-content:center;border-bottom-left-radius:4px;color:#f44336;transition:all .15s ease;opacity:.6}.image-block .form-field-file-close mat-icon{transition:transform .15s ease;width:15px;height:15px;min-width:15px;min-height:15px;margin-left:1px;margin-top:3px}.image-block .form-field-file-close:hover{opacity:1}.image-block .form-field-file-close:hover mat-icon{transform:rotate(90deg)}.image-block .zoom{position:absolute;transition:all .2s ease-in-out;opacity:0;inset:0;background-color:#313131b8;display:flex;align-items:center;justify-content:center;cursor:pointer}.image-block .zoom:hover{opacity:.8}.image-block .zoom .lnr{font-size:20px;font-weight:700;color:#49caff}.image-block .default-image{display:flex;align-items:center;justify-content:center;background-color:#e1eaf1;width:200px;height:150px;opacity:.6}.image-block .default-image img{width:auto!important;height:auto!important}.image-block img{object-fit:cover;width:100%!important;height:100%!important}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i6$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1947
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ImageComponent, decorators: [{
1948
+ type: Component,
1949
+ args: [{ selector: 'shared-image', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"image-block\">\n <div *ngIf=\"showDeleteButton\" class=\"form-field-file-close mat-elevation-z4\" (click)=\"deleteImage()\">\n <mat-icon class=\"fs-14\">close</mat-icon>\n </div>\n <ng-container *ngIf=\"src\">\n <img [src]=\"src\" [title]=\"title\" [alt]=\"title\" [class]=\"imgClass\"/>\n <div *ngIf=\"haveZoom\" class=\"zoom\" (click)=\"clickHandler();\">\n <span class=\"lnr lnr-magnifier\"></span>\n </div>\n </ng-container>\n <ng-container *ngIf=\"!src\">\n <div class=\"default-image\">\n <img src=\"assets/images/default-image.png\" [alt]=\"title\"/>\n </div>\n </ng-container>\n</div>\n", styles: [":host{position:relative}.image-block{position:relative;height:100%}.image-block:hover .form-field-file-close{width:25px;height:25px;opacity:.8}.image-block:hover .form-field-file-close mat-icon{width:18px;min-width:18px;height:18px;min-height:18px;font-size:18px}.image-block .form-field-file-close{right:0;top:0;cursor:pointer;background:#fff;position:absolute;width:15px;height:15px;display:flex;align-items:center;justify-content:center;border-bottom-left-radius:4px;color:#f44336;transition:all .15s ease;opacity:.6}.image-block .form-field-file-close mat-icon{transition:transform .15s ease;width:15px;height:15px;min-width:15px;min-height:15px;margin-left:1px;margin-top:3px}.image-block .form-field-file-close:hover{opacity:1}.image-block .form-field-file-close:hover mat-icon{transform:rotate(90deg)}.image-block .zoom{position:absolute;transition:all .2s ease-in-out;opacity:0;inset:0;background-color:#313131b8;display:flex;align-items:center;justify-content:center;cursor:pointer}.image-block .zoom:hover{opacity:.8}.image-block .zoom .lnr{font-size:20px;font-weight:700;color:#49caff}.image-block .default-image{display:flex;align-items:center;justify-content:center;background-color:#e1eaf1;width:200px;height:150px;opacity:.6}.image-block .default-image img{width:auto!important;height:auto!important}.image-block img{object-fit:cover;width:100%!important;height:100%!important}\n"] }]
1950
+ }], ctorParameters: function () { return []; }, propDecorators: { versions: [{
1951
+ type: Input
1952
+ }], url: [{
1953
+ type: Input
1954
+ }], version: [{
1955
+ type: Input
1956
+ }], title: [{
1957
+ type: Input
1958
+ }], index: [{
1959
+ type: Input
1960
+ }], haveZoom: [{
1961
+ type: Input
1962
+ }], imgClass: [{
1963
+ type: Input
1964
+ }], clickEvent: [{
1965
+ type: Output
1966
+ }], delete: [{
1967
+ type: Output
1968
+ }] } });
1969
+
1970
+ class ImageModule {
1971
+ }
1972
+ ImageModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ImageModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1973
+ ImageModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ImageModule, declarations: [ImageComponent], imports: [CommonModule,
1974
+ MatIconModule], exports: [ImageComponent] });
1975
+ ImageModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ImageModule, imports: [CommonModule,
1976
+ MatIconModule] });
1977
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ImageModule, decorators: [{
1978
+ type: NgModule,
1979
+ args: [{
1980
+ declarations: [ImageComponent],
1981
+ imports: [
1982
+ CommonModule,
1983
+ MatIconModule
1984
+ ],
1985
+ exports: [ImageComponent]
1986
+ }]
1987
+ }] });
1988
+
1989
+ class InputTagsModule {
1990
+ }
1991
+ InputTagsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InputTagsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1992
+ InputTagsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: InputTagsModule, declarations: [InputTagsComponent$1], imports: [CommonModule,
1993
+ ChipsInputModule$1], exports: [InputTagsComponent$1] });
1994
+ InputTagsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InputTagsModule, imports: [CommonModule,
1995
+ ChipsInputModule$1] });
1996
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InputTagsModule, decorators: [{
1997
+ type: NgModule,
1998
+ args: [{
1999
+ declarations: [InputTagsComponent$1],
2000
+ exports: [InputTagsComponent$1],
2001
+ imports: [
2002
+ CommonModule,
2003
+ ChipsInputModule$1
2004
+ ]
2005
+ }]
2006
+ }] });
2007
+
2008
+ class InputTagsComponent {
2009
+ constructor() {
2010
+ this.allTags = [
2011
+ { id: 1, title: 'Apple' },
2012
+ { id: 2, title: 'Lemon' },
2013
+ { id: 3, title: 'Lime' },
2014
+ { id: 4, title: 'Orange' },
2015
+ { id: 5, title: 'Strawberry' }
2016
+ ];
2017
+ this.tags = [{ id: 2, title: 'Lemon' }];
2018
+ }
2019
+ ngOnInit() {
2020
+ }
2021
+ changedText(tags) {
2022
+ }
2023
+ changedList(tags) {
2024
+ }
2025
+ }
2026
+ InputTagsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InputTagsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2027
+ InputTagsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: InputTagsComponent, selector: "shared-input-tags", ngImport: i0, template: "<ng-container *ngIf=\"allTags && allTags.length\">\n <shared-chips-input\n [title]=\"'Tags'\"\n [items]=\"allTags\"\n [selectedItems]=\"tags\"\n (changedText)=\"changedText($event)\"\n (changedList)=\"changedList($event)\"></shared-chips-input>\n</ng-container>\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ChipsInputComponent, selector: "shared-chips-input", inputs: ["title", "items", "selectedItems"], outputs: ["changedList", "changedText"] }] });
2028
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InputTagsComponent, decorators: [{
2029
+ type: Component,
2030
+ args: [{ selector: 'shared-input-tags', template: "<ng-container *ngIf=\"allTags && allTags.length\">\n <shared-chips-input\n [title]=\"'Tags'\"\n [items]=\"allTags\"\n [selectedItems]=\"tags\"\n (changedText)=\"changedText($event)\"\n (changedList)=\"changedList($event)\"></shared-chips-input>\n</ng-container>\n" }]
2031
+ }], ctorParameters: function () { return []; } });
2032
+
2033
+ class PaginationModule {
2034
+ }
2035
+ PaginationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PaginationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2036
+ PaginationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: PaginationModule, declarations: [PaginationComponent$1], imports: [CommonModule,
2037
+ RouterModule], exports: [CommonModule,
2038
+ PaginationComponent$1] });
2039
+ PaginationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PaginationModule, imports: [CommonModule,
2040
+ RouterModule, CommonModule] });
2041
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PaginationModule, decorators: [{
2042
+ type: NgModule,
2043
+ args: [{
2044
+ declarations: [PaginationComponent$1],
2045
+ imports: [
2046
+ CommonModule,
2047
+ RouterModule
2048
+ ],
2049
+ exports: [
2050
+ CommonModule,
2051
+ PaginationComponent$1
2052
+ ]
2053
+ }]
2054
+ }] });
2055
+
2056
+ class PaginationComponent {
2057
+ constructor() {
2058
+ this.pages = [];
2059
+ }
2060
+ ngOnInit() {
2061
+ }
2062
+ ngOnChanges(changes) {
2063
+ if (changes.page || changes.count) {
2064
+ this.preparePages();
2065
+ }
2066
+ }
2067
+ preparePages() {
2068
+ this.pages = [];
2069
+ let pageNumber = 0;
2070
+ if (this.count > 0 && this.perPage > 0) {
2071
+ pageNumber = Math.ceil(this.count / this.perPage);
2072
+ }
2073
+ const templatePages = [1, pageNumber, Number(this.page) - 3, Number(this.page) - 2, Number(this.page) - 1, Number(this.page), Number(this.page) + 1, Number(this.page) + 2, Number(this.page) + 3];
2074
+ let addedDots = false;
2075
+ for (let i = 1; i <= pageNumber; i++) {
2076
+ if (templatePages.includes(i)) {
2077
+ this.pages.push(i);
2078
+ addedDots = false;
2079
+ }
2080
+ else if (!addedDots) {
2081
+ this.pages.push(0);
2082
+ addedDots = true;
2083
+ }
2084
+ }
2085
+ }
2086
+ }
2087
+ PaginationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PaginationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2088
+ PaginationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PaginationComponent, selector: "shared-pagination", inputs: { count: "count", perPage: "perPage", page: "page", url: "url" }, usesOnChanges: true, ngImport: i0, template: "<nav aria-label=\"\u041F\u0430\u0433\u0438\u043D\u0430\u0446\u0438\u044F\">\n <ul class=\"pagination\">\n <li *ngFor=\"let pageIndex of pages\" class=\"page-item\">\n <a *ngIf=\"pageIndex !== 0 && page !== pageIndex\" class=\"page-link\" [routerLink]=\"[url]\"\n [queryParams]=\"{p: pageIndex}\">{{pageIndex}}</a>\n <span *ngIf=\"pageIndex === 0\" class=\"page-link\">...</span>\n <span *ngIf=\"page === pageIndex\" class=\"page-link active-page\">{{pageIndex}}</span>\n </li>\n </ul>\n</nav>\n", styles: [".page-link{border:1px solid rgba(222,226,230,.368627451)}.page-link.active-page,.page-link.active-page:hover{background:#1fc6b6;color:#fff!important;-webkit-text-fill-color:white!important}.page-link:hover{background:-webkit-linear-gradient(131deg,#11736a 0%,#1fc6b6 99%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;text-decoration:none;transition:.5s}.page-item span{color:#666!important;cursor:default}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$5.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2089
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PaginationComponent, decorators: [{
2090
+ type: Component,
2091
+ args: [{ selector: 'shared-pagination', changeDetection: ChangeDetectionStrategy.OnPush, template: "<nav aria-label=\"\u041F\u0430\u0433\u0438\u043D\u0430\u0446\u0438\u044F\">\n <ul class=\"pagination\">\n <li *ngFor=\"let pageIndex of pages\" class=\"page-item\">\n <a *ngIf=\"pageIndex !== 0 && page !== pageIndex\" class=\"page-link\" [routerLink]=\"[url]\"\n [queryParams]=\"{p: pageIndex}\">{{pageIndex}}</a>\n <span *ngIf=\"pageIndex === 0\" class=\"page-link\">...</span>\n <span *ngIf=\"page === pageIndex\" class=\"page-link active-page\">{{pageIndex}}</span>\n </li>\n </ul>\n</nav>\n", styles: [".page-link{border:1px solid rgba(222,226,230,.368627451)}.page-link.active-page,.page-link.active-page:hover{background:#1fc6b6;color:#fff!important;-webkit-text-fill-color:white!important}.page-link:hover{background:-webkit-linear-gradient(131deg,#11736a 0%,#1fc6b6 99%);-webkit-background-clip:text;-webkit-text-fill-color:transparent;text-decoration:none;transition:.5s}.page-item span{color:#666!important;cursor:default}\n"] }]
2092
+ }], ctorParameters: function () { return []; }, propDecorators: { count: [{
2093
+ type: Input
2094
+ }], perPage: [{
2095
+ type: Input
2096
+ }], page: [{
2097
+ type: Input
2098
+ }], url: [{
2099
+ type: Input
2100
+ }] } });
2101
+
2102
+ class PanelModule {
2103
+ }
2104
+ PanelModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PanelModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2105
+ PanelModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: PanelModule, declarations: [PanelComponent$1], imports: [CommonModule,
2106
+ ButtonModule$1,
2107
+ FlexModule], exports: [PanelComponent$1] });
2108
+ PanelModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PanelModule, imports: [CommonModule,
2109
+ ButtonModule$1,
2110
+ FlexModule] });
2111
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PanelModule, decorators: [{
2112
+ type: NgModule,
2113
+ args: [{
2114
+ declarations: [PanelComponent$1],
2115
+ imports: [
2116
+ CommonModule,
2117
+ ButtonModule$1,
2118
+ FlexModule
2119
+ ],
2120
+ exports: [PanelComponent$1]
2121
+ }]
2122
+ }] });
2123
+
2124
+ class PanelComponent {
2125
+ constructor() {
2126
+ this.close = new EventEmitter();
2127
+ this.isOpened = false;
2128
+ }
2129
+ ngOnInit() {
2130
+ }
2131
+ toggleExpanded() {
2132
+ this.isOpened = !this.isOpened;
2133
+ }
2134
+ }
2135
+ PanelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2136
+ PanelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PanelComponent, selector: "shared-panel", inputs: { title: "title", smallDescription: "smallDescription", description: "description", color: "color", buttonColor: "buttonColor" }, outputs: { close: "close" }, ngImport: i0, template: "<div class=\"fuse-card\" [ngClass]=\"'bg-'+color\">\n\n <div class=\"p-10 cursor-pointer\"\n fxLayout=\"row\"\n fxLayoutAlign=\"space-between center\"\n (click)=\"toggleExpanded()\">\n <div class=\"h4\">{{title}}</div>\n <shared-button\n [color]=\"buttonColor\"\n [icon]=\"isOpened ? 'keyboard_arrow_up' : 'keyboard_arrow_down'\"></shared-button>\n </div>\n\n <div *ngIf=\"smallDescription\" class=\"p-16 pt-0 line-height-1.75\" [innerHTML]=\"smallDescription\">\n </div>\n\n <div class=\"card-expand-area\" *ngIf=\"isOpened\" [@expandCollapse]>\n <div class=\"card-expanded-content\" [innerHTML]=\"description\"></div>\n </div>\n\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ButtonComponent, selector: "shared-button", inputs: ["icon", "iconColor", "iconSize", "rightIcon", "disabled", "loading", "active", "stopPropagation", "type", "color", "size", "styleTheme", "tooltip", "tooltipPosition"], outputs: ["clickButton"] }, { kind: "directive", type: i4$1.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i4$1.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }], animations: [expandCollapse], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2137
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PanelComponent, decorators: [{
2138
+ type: Component,
2139
+ args: [{ selector: 'shared-panel', animations: [expandCollapse], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"fuse-card\" [ngClass]=\"'bg-'+color\">\n\n <div class=\"p-10 cursor-pointer\"\n fxLayout=\"row\"\n fxLayoutAlign=\"space-between center\"\n (click)=\"toggleExpanded()\">\n <div class=\"h4\">{{title}}</div>\n <shared-button\n [color]=\"buttonColor\"\n [icon]=\"isOpened ? 'keyboard_arrow_up' : 'keyboard_arrow_down'\"></shared-button>\n </div>\n\n <div *ngIf=\"smallDescription\" class=\"p-16 pt-0 line-height-1.75\" [innerHTML]=\"smallDescription\">\n </div>\n\n <div class=\"card-expand-area\" *ngIf=\"isOpened\" [@expandCollapse]>\n <div class=\"card-expanded-content\" [innerHTML]=\"description\"></div>\n </div>\n\n</div>\n" }]
2140
+ }], ctorParameters: function () { return []; }, propDecorators: { title: [{
2141
+ type: Input
2142
+ }], smallDescription: [{
2143
+ type: Input
2144
+ }], description: [{
2145
+ type: Input
2146
+ }], color: [{
2147
+ type: Input
2148
+ }], buttonColor: [{
2149
+ type: Input
2150
+ }], close: [{
2151
+ type: Output
2152
+ }] } });
2153
+
2154
+ class SmartProgressBarModule {
2155
+ }
2156
+ SmartProgressBarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SmartProgressBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2157
+ SmartProgressBarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: SmartProgressBarModule, declarations: [SmartProgressBarComponent], imports: [CommonModule], exports: [SmartProgressBarComponent] });
2158
+ SmartProgressBarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SmartProgressBarModule, imports: [CommonModule] });
2159
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SmartProgressBarModule, decorators: [{
2160
+ type: NgModule,
2161
+ args: [{
2162
+ declarations: [SmartProgressBarComponent],
2163
+ imports: [CommonModule],
2164
+ exports: [SmartProgressBarComponent]
2165
+ }]
2166
+ }] });
2167
+
2168
+ class SharedSpinnerModule {
2169
+ }
2170
+ SharedSpinnerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SharedSpinnerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2171
+ SharedSpinnerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: SharedSpinnerModule, declarations: [SpinnerComponent], imports: [CommonModule,
2172
+ MatProgressSpinnerModule], exports: [SpinnerComponent] });
2173
+ SharedSpinnerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SharedSpinnerModule, imports: [CommonModule,
2174
+ MatProgressSpinnerModule] });
2175
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SharedSpinnerModule, decorators: [{
2176
+ type: NgModule,
2177
+ args: [{
2178
+ declarations: [SpinnerComponent],
2179
+ imports: [
2180
+ CommonModule,
2181
+ MatProgressSpinnerModule
2182
+ ],
2183
+ exports: [SpinnerComponent]
2184
+ }]
2185
+ }] });
2186
+
2187
+ class StarRatingComponent {
2188
+ constructor() {
2189
+ this.rating = 0;
2190
+ this.size = 'normal';
2191
+ this.arrayList = ['', '', ''];
2192
+ }
2193
+ ngOnInit() {
2194
+ }
2195
+ }
2196
+ StarRatingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StarRatingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2197
+ StarRatingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: StarRatingComponent, selector: "shared-star-rating", inputs: { rating: "rating", size: "size" }, ngImport: i0, template: "<div class=\"star-rating-block\" [ngClass]=\"{'block-big': size === 'big'}\">\n <span class=\"d-flex align-items-center\">\n <i class=\"fa fa-star\"></i>\n <i class=\"fa fa-star\"></i>\n <i class=\"fa fa-star\"></i>\n <i class=\"fa fa-star\"></i>\n <i class=\"fa fa-star\"></i>\n </span>\n <span class=\"d-flex align-items-center yellow-starts\">\n <i *ngFor=\"let number of arrayList\" class=\"fa fa-star\"></i>\n </span>\n</div>\n", styles: [".star-rating-block{overflow:hidden;position:relative}.star-rating-block span.yellow-starts{position:absolute;left:0;top:0}.star-rating-block span.yellow-starts i{color:#fdae5c!important}.star-rating-block span i{font-size:15px;color:#faae5c73!important}.star-rating-block.block-big i{font-size:20px!important}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2198
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StarRatingComponent, decorators: [{
2199
+ type: Component,
2200
+ args: [{ selector: 'shared-star-rating', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"star-rating-block\" [ngClass]=\"{'block-big': size === 'big'}\">\n <span class=\"d-flex align-items-center\">\n <i class=\"fa fa-star\"></i>\n <i class=\"fa fa-star\"></i>\n <i class=\"fa fa-star\"></i>\n <i class=\"fa fa-star\"></i>\n <i class=\"fa fa-star\"></i>\n </span>\n <span class=\"d-flex align-items-center yellow-starts\">\n <i *ngFor=\"let number of arrayList\" class=\"fa fa-star\"></i>\n </span>\n</div>\n", styles: [".star-rating-block{overflow:hidden;position:relative}.star-rating-block span.yellow-starts{position:absolute;left:0;top:0}.star-rating-block span.yellow-starts i{color:#fdae5c!important}.star-rating-block span i{font-size:15px;color:#faae5c73!important}.star-rating-block.block-big i{font-size:20px!important}\n"] }]
2201
+ }], ctorParameters: function () { return []; }, propDecorators: { rating: [{
2202
+ type: Input
2203
+ }], size: [{
2204
+ type: Input
2205
+ }] } });
2206
+
2207
+ class StarRatingModule {
2208
+ }
2209
+ StarRatingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StarRatingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2210
+ StarRatingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: StarRatingModule, declarations: [StarRatingComponent], imports: [CommonModule], exports: [StarRatingComponent] });
2211
+ StarRatingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StarRatingModule, imports: [CommonModule] });
2212
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StarRatingModule, decorators: [{
2213
+ type: NgModule,
2214
+ args: [{
2215
+ declarations: [StarRatingComponent],
2216
+ exports: [
2217
+ StarRatingComponent
2218
+ ],
2219
+ imports: [
2220
+ CommonModule
2221
+ ]
2222
+ }]
2223
+ }] });
2224
+
2225
+ const defaultStickySidebarOptions = {
2226
+ topSpacing: 0,
2227
+ bottomSpacing: 0,
2228
+ stickyClass: 'is-affixed',
2229
+ resizeSensor: true,
2230
+ minWidth: false,
2231
+ containerSelector: '.container',
2232
+ containerForWidth: false
2233
+ };
2234
+ const STICKY_SIDEBAR_OPTIONS = new InjectionToken('STICKY_SIDEBAR_OPTIONS');
2235
+ class StickySidebarDirective {
2236
+ constructor(element, _options, zone, renderer, platform) {
2237
+ this.element = element;
2238
+ this._options = _options;
2239
+ this.zone = zone;
2240
+ this.renderer = renderer;
2241
+ this.platform = platform;
2242
+ this.affixedType = 'STATIC';
2243
+ this.direction = 'down';
2244
+ this.support = {
2245
+ transform: false,
2246
+ transform3d: false
2247
+ };
2248
+ this._initialized = false;
2249
+ this._reStyle = false;
2250
+ this._breakpoint = false;
2251
+ // Dimensions of sidebar, container and screen viewport.
2252
+ this.dimensions = {
2253
+ translateY: 0,
2254
+ maxTranslateY: 0,
2255
+ topSpacing: 0,
2256
+ lastTopSpacing: 0,
2257
+ bottomSpacing: 0,
2258
+ lastBottomSpacing: 0,
2259
+ sidebarHeight: 0,
2260
+ sidebarWidth: 0,
2261
+ containerTop: 0,
2262
+ containerHeight: 0,
2263
+ containerBottom: 0,
2264
+ viewportHeight: 0,
2265
+ viewportTop: 0,
2266
+ lastViewportTop: 0,
2267
+ sidebarLeft: 0,
2268
+ viewportBottom: 0,
2269
+ viewportLeft: 0
2270
+ };
2271
+ this.lastScrollTop = 0;
2272
+ this.resize = new Subject();
2273
+ this.options = _options && Object.assign(Object.assign({}, defaultStickySidebarOptions), _options) || defaultStickySidebarOptions;
2274
+ if (isPlatformBrowser(platform)) {
2275
+ this.sidebarEl = this.element.nativeElement;
2276
+ this._setSupportFeatures();
2277
+ this.bindEvents();
2278
+ }
2279
+ }
2280
+ static offsetRelative(element) {
2281
+ const result = { left: 0, top: 0 };
2282
+ let el = element;
2283
+ do {
2284
+ const offsetTop = el.offsetTop;
2285
+ const offsetLeft = el.offsetLeft;
2286
+ if (!isNaN(offsetTop))
2287
+ result.top += offsetTop;
2288
+ if (!isNaN(offsetLeft))
2289
+ result.left += offsetLeft;
2290
+ el =
2291
+ 'BODY' === element.tagName
2292
+ ? el.parentElement
2293
+ : el.offsetParent;
2294
+ } while (el);
2295
+ return result;
2296
+ }
2297
+ ngOnInit() {
2298
+ }
2299
+ bindEvents() {
2300
+ // this.resizeDetector = elementResizeDetectorMaker();
2301
+ this.zone.runOutsideAngular(() => {
2302
+ this.eventSub = merge(fromEvent(window, 'scroll'), fromEvent(window, 'resize')).subscribe(evt => {
2303
+ if (evt.type === 'scroll') {
2304
+ const scrollTop = this.getScrollTop();
2305
+ this.scrollDirection = scrollTop > this.lastScrollTop ? 'down' : 'top';
2306
+ this.lastScrollTop = scrollTop;
2307
+ }
2308
+ this.updateSticky(evt);
2309
+ });
2310
+ });
2311
+ }
2312
+ ngOnDestroy() {
2313
+ if (!isPlatformBrowser(this.platform))
2314
+ return;
2315
+ if (this.eventSub)
2316
+ this.eventSub.unsubscribe();
2317
+ if (this.sidebarInner && this.sidebarInner.nativeElement)
2318
+ this.removeResizeEventListener(this.sidebarInner.nativeElement);
2319
+ if (this.container)
2320
+ this.removeResizeEventListener(this.container);
2321
+ }
2322
+ ngAfterContentInit() {
2323
+ if (!isPlatformBrowser(this.platform))
2324
+ return;
2325
+ if (this.options.containerSelector) {
2326
+ let containers = document.querySelectorAll(this.options.containerSelector);
2327
+ containers = Array.prototype.slice.call(containers);
2328
+ containers.forEach((container, item) => {
2329
+ if (!container.contains(this.element.nativeElement))
2330
+ return;
2331
+ this.container = container;
2332
+ });
2333
+ if (!containers.length)
2334
+ throw new Error('The container does not contains on the sidebar.');
2335
+ }
2336
+ if (this.options.containerForWidth) {
2337
+ let containersForWidth = document.querySelectorAll(this.options.containerForWidth);
2338
+ containersForWidth = Array.prototype.slice.call(containersForWidth);
2339
+ containersForWidth.forEach((containerW, item) => {
2340
+ if (!containerW.contains(this.element.nativeElement))
2341
+ return;
2342
+ this.containerForWidth = containerW;
2343
+ });
2344
+ if (!containersForWidth.length)
2345
+ throw new Error('The container does not contains on the sidebar.');
2346
+ }
2347
+ this._widthBreakpoint();
2348
+ this.calcDimensions();
2349
+ this.stickyPosition();
2350
+ this._updateStickyListener = this.handleResizeEvent.bind(this);
2351
+ this.addResizeEventListener(this.sidebarInner.nativeElement, this._updateStickyListener);
2352
+ this.addResizeEventListener(this.container, this._updateStickyListener);
2353
+ this.zone.runOutsideAngular(() => {
2354
+ this.eventSub.add(this.resize.subscribe((evt) => {
2355
+ this.updateSticky(evt);
2356
+ }));
2357
+ });
2358
+ }
2359
+ handleResizeEvent(evt) {
2360
+ this.direction = 'down';
2361
+ this.resize.next(evt);
2362
+ }
2363
+ addResizeEventListener(element, handler) {
2364
+ // this.resizeDetector.listenTo(element, handler);
2365
+ }
2366
+ removeResizeEventListener(element) {
2367
+ // if (this.resizeDetector)
2368
+ // this.resizeDetector.uninstall(element);
2369
+ }
2370
+ calcDimensions() {
2371
+ if (this._breakpoint)
2372
+ return;
2373
+ const dims = this.dimensions;
2374
+ // Container of sticky sidebar dimensions.
2375
+ dims.containerTop = StickySidebarDirective.offsetRelative(this.container).top;
2376
+ dims.containerHeight = this.container.clientHeight;
2377
+ dims.containerBottom = dims.containerTop + dims.containerHeight;
2378
+ // Sidebar dimensions.
2379
+ dims.sidebarHeight = this.sidebarInner.nativeElement.offsetHeight;
2380
+ dims.sidebarWidth = this.options.containerForWidth ? this.containerForWidth.offsetWidth : this.sidebarInner.nativeElement.offsetWidth;
2381
+ // Screen viewport dimensions.
2382
+ dims.viewportHeight = window.innerHeight;
2383
+ // Maximum sidebar translate Y.
2384
+ dims.maxTranslateY = dims.containerHeight - dims.sidebarHeight;
2385
+ this._calcDimensionsWithScroll();
2386
+ }
2387
+ _calcDimensionsWithScroll() {
2388
+ const dims = this.dimensions;
2389
+ dims.sidebarLeft = StickySidebarDirective.offsetRelative(this.sidebarEl).left;
2390
+ dims.viewportTop = this.getScrollTop();
2391
+ dims.viewportBottom = dims.viewportTop + dims.viewportHeight;
2392
+ dims.viewportLeft = document.documentElement.scrollLeft || document.body.scrollLeft;
2393
+ dims.topSpacing = this.options.topSpacing;
2394
+ dims.bottomSpacing = this.options.bottomSpacing;
2395
+ if ('VIEWPORT-TOP' === this.affixedType) {
2396
+ if (dims.topSpacing < dims.lastTopSpacing) {
2397
+ dims.translateY += dims.lastTopSpacing - dims.topSpacing;
2398
+ this._reStyle = true;
2399
+ }
2400
+ }
2401
+ else if ('VIEWPORT-BOTTOM' === this.affixedType) {
2402
+ // Adjust translate Y in the case decrease bottom spacing value.
2403
+ if (dims.bottomSpacing < dims.lastBottomSpacing) {
2404
+ dims.translateY += dims.lastBottomSpacing - dims.bottomSpacing;
2405
+ this._reStyle = true;
2406
+ }
2407
+ }
2408
+ dims.lastTopSpacing = dims.topSpacing;
2409
+ dims.lastBottomSpacing = dims.bottomSpacing;
2410
+ }
2411
+ isSidebarFitsViewport() {
2412
+ const dims = this.dimensions;
2413
+ const offset = this.scrollDirection === 'down' ? dims.lastBottomSpacing : dims.lastTopSpacing;
2414
+ return this.dimensions.sidebarHeight + offset < this.dimensions.viewportHeight;
2415
+ }
2416
+ observeScrollDir() {
2417
+ const dims = this.dimensions;
2418
+ if (dims.lastViewportTop === dims.viewportTop)
2419
+ return;
2420
+ const furthest = 'down' === this.direction ? Math.min : Math.max;
2421
+ if (dims.viewportTop === furthest(dims.viewportTop, dims.lastViewportTop))
2422
+ this.direction = 'down' === this.direction ? 'up' : 'down';
2423
+ }
2424
+ getAffixType() {
2425
+ this._calcDimensionsWithScroll();
2426
+ const dims = this.dimensions;
2427
+ const colliderTop = dims.viewportTop + dims.topSpacing;
2428
+ let affixType = this.affixedType;
2429
+ if (colliderTop <= dims.containerTop || dims.containerHeight <= dims.sidebarHeight) {
2430
+ dims.translateY = 0;
2431
+ affixType = 'STATIC';
2432
+ }
2433
+ else {
2434
+ affixType =
2435
+ 'up' === this.direction
2436
+ ? this._getAffixTypeScrollingUp()
2437
+ : this._getAffixTypeScrollingDown();
2438
+ }
2439
+ dims.translateY = Math.max(0, dims.translateY);
2440
+ dims.translateY = Math.min(dims.containerHeight, dims.translateY);
2441
+ dims.translateY = Math.round(dims.translateY);
2442
+ dims.lastViewportTop = dims.viewportTop;
2443
+ return affixType;
2444
+ }
2445
+ _getAffixTypeScrollingDown() {
2446
+ const dims = this.dimensions;
2447
+ const sidebarBottom = dims.sidebarHeight + dims.containerTop;
2448
+ const colliderTop = dims.viewportTop + dims.topSpacing;
2449
+ const colliderBottom = dims.viewportBottom - dims.bottomSpacing;
2450
+ let affixType = this.affixedType;
2451
+ if (this.isSidebarFitsViewport()) {
2452
+ if (dims.sidebarHeight + colliderTop >= dims.containerBottom) {
2453
+ dims.translateY = dims.containerBottom - sidebarBottom;
2454
+ affixType = 'CONTAINER-BOTTOM';
2455
+ }
2456
+ else if (colliderTop >= dims.containerTop) {
2457
+ dims.translateY = colliderTop - dims.containerTop;
2458
+ affixType = 'VIEWPORT-TOP';
2459
+ }
2460
+ }
2461
+ else {
2462
+ if (dims.containerBottom <= colliderBottom) {
2463
+ dims.translateY = dims.containerBottom - sidebarBottom;
2464
+ affixType = 'CONTAINER-BOTTOM';
2465
+ }
2466
+ else if (sidebarBottom + dims.translateY <= colliderBottom) {
2467
+ dims.translateY = colliderBottom - sidebarBottom;
2468
+ affixType = 'VIEWPORT-BOTTOM';
2469
+ }
2470
+ else if (dims.containerTop + dims.translateY <= colliderTop &&
2471
+ (0 !== dims.translateY && dims.maxTranslateY !== dims.translateY)) {
2472
+ affixType = 'VIEWPORT-UNBOTTOM';
2473
+ }
2474
+ }
2475
+ return affixType;
2476
+ }
2477
+ _getAffixTypeScrollingUp() {
2478
+ const dims = this.dimensions;
2479
+ const sidebarBottom = dims.sidebarHeight + dims.containerTop;
2480
+ const colliderTop = dims.viewportTop + dims.topSpacing;
2481
+ const colliderBottom = dims.viewportBottom - dims.bottomSpacing;
2482
+ let affixType = this.affixedType;
2483
+ if (colliderTop <= dims.translateY + dims.containerTop) {
2484
+ dims.translateY = colliderTop - dims.containerTop;
2485
+ affixType = 'VIEWPORT-TOP';
2486
+ }
2487
+ else if (dims.containerBottom <= colliderBottom) {
2488
+ dims.translateY = dims.containerBottom - sidebarBottom;
2489
+ affixType = 'CONTAINER-BOTTOM';
2490
+ }
2491
+ else if (!this.isSidebarFitsViewport()) {
2492
+ if (dims.containerTop <= colliderTop &&
2493
+ (0 !== dims.translateY && dims.maxTranslateY !== dims.translateY)) {
2494
+ affixType = 'VIEWPORT-UNBOTTOM';
2495
+ }
2496
+ }
2497
+ return affixType;
2498
+ }
2499
+ _getStyle(affixType) {
2500
+ if ('undefined' === typeof affixType)
2501
+ return;
2502
+ const style = { inner: {}, outer: {} };
2503
+ const dims = this.dimensions;
2504
+ switch (affixType) {
2505
+ case 'VIEWPORT-TOP':
2506
+ style.inner = {
2507
+ position: 'fixed',
2508
+ top: dims.topSpacing,
2509
+ left: dims.sidebarLeft - dims.viewportLeft,
2510
+ width: dims.sidebarWidth
2511
+ };
2512
+ break;
2513
+ case 'VIEWPORT-BOTTOM':
2514
+ style.inner = {
2515
+ position: 'fixed',
2516
+ top: 'auto',
2517
+ left: dims.sidebarLeft,
2518
+ bottom: dims.bottomSpacing,
2519
+ width: dims.sidebarWidth
2520
+ };
2521
+ break;
2522
+ case 'CONTAINER-BOTTOM':
2523
+ case 'VIEWPORT-UNBOTTOM':
2524
+ const translate = this._getTranslate('0', dims.translateY + 'px');
2525
+ if (translate)
2526
+ style.inner = { transform: translate };
2527
+ else
2528
+ style.inner = { position: 'absolute', top: dims.translateY, width: dims.sidebarWidth };
2529
+ break;
2530
+ }
2531
+ switch (affixType) {
2532
+ case 'VIEWPORT-TOP':
2533
+ case 'VIEWPORT-BOTTOM':
2534
+ case 'VIEWPORT-UNBOTTOM':
2535
+ case 'CONTAINER-BOTTOM':
2536
+ style.outer = { height: dims.sidebarHeight, position: 'relative' };
2537
+ break;
2538
+ }
2539
+ style.outer = Object.assign({ height: '', position: '' }, style.outer);
2540
+ style.inner = Object.assign({ position: 'relative', top: '', left: '', bottom: '', width: '', transform: '' }, style.inner);
2541
+ return style;
2542
+ }
2543
+ stickyPosition(force = false) {
2544
+ if (this._breakpoint)
2545
+ return;
2546
+ force = this._reStyle || force || false;
2547
+ const offsetTop = this.options.topSpacing;
2548
+ const offsetBottom = this.options.bottomSpacing;
2549
+ const affixType = this.getAffixType();
2550
+ const style = this._getStyle(affixType);
2551
+ const innerEl = this.sidebarInner.nativeElement;
2552
+ if ((this.affixedType !== affixType || force) && affixType) {
2553
+ //const affixEvent = 'affix.' + affixType.toLowerCase().replace('viewport-', '') + StickySidebarDirective.EVENT_KEY;
2554
+ //StickySidebar.eventTrigger(this.sidebar, affixEvent);
2555
+ if ('STATIC' === affixType)
2556
+ this.renderer.removeClass(this.sidebarEl, this.options.stickyClass);
2557
+ else
2558
+ this.renderer.addClass(this.sidebarEl, this.options.stickyClass);
2559
+ Object.keys(style.outer).forEach(key => {
2560
+ const unit = 'number' === typeof style.outer[key] ? 'px' : '';
2561
+ this.sidebarEl.style[key] = style.outer[key] + unit;
2562
+ });
2563
+ Object.keys(style.inner).forEach(key => {
2564
+ const unit = 'number' === typeof style.inner[key] ? 'px' : '';
2565
+ innerEl.style[key] = style.inner[key] + unit;
2566
+ });
2567
+ //const affixedEvent = 'affixed.'+ affixType.toLowerCase().replace('viewport-', '') + EVENT_KEY;
2568
+ //StickySidebar.eventTrigger(this.sidebar, affixedEvent);
2569
+ }
2570
+ else {
2571
+ if (this._initialized)
2572
+ innerEl.style.left = style.inner['left'];
2573
+ }
2574
+ this.affixedType = affixType;
2575
+ }
2576
+ _widthBreakpoint() {
2577
+ if (window.innerWidth <= this.options.minWidth) {
2578
+ this._breakpoint = true;
2579
+ this.affixedType = 'STATIC';
2580
+ this.renderer.removeAttribute(this.sidebarEl, 'style');
2581
+ this.renderer.removeAttribute(this.sidebarInner.nativeElement, 'style');
2582
+ this.renderer.removeClass(this.sidebarEl, this.options.stickyClass);
2583
+ }
2584
+ else {
2585
+ this._breakpoint = false;
2586
+ }
2587
+ }
2588
+ updateSticky(event) {
2589
+ if (this._running)
2590
+ return;
2591
+ this._running = true;
2592
+ (eventType => {
2593
+ requestAnimationFrame(() => {
2594
+ switch (eventType) {
2595
+ case 'scroll':
2596
+ this._calcDimensionsWithScroll();
2597
+ this.observeScrollDir();
2598
+ this.stickyPosition();
2599
+ break;
2600
+ // When browser is resizing or there's no event, observe width
2601
+ // breakpoint and re-calculate dimensions.
2602
+ case 'resize':
2603
+ default:
2604
+ this._widthBreakpoint();
2605
+ this.calcDimensions();
2606
+ this.stickyPosition(true);
2607
+ break;
2608
+ }
2609
+ this._running = false;
2610
+ });
2611
+ })(event.type);
2612
+ }
2613
+ _setSupportFeatures() {
2614
+ const support = this.support;
2615
+ support.transform = this.supportTransform();
2616
+ support.transform3d = this.supportTransform(true);
2617
+ }
2618
+ _getTranslate(y = '0', x = '0', z = '0') {
2619
+ if (this.support.transform3d)
2620
+ return 'translate3d(' + y + ', ' + x + ', ' + z + ')';
2621
+ else if (this.support.transform)
2622
+ return 'translate(' + y + ', ' + x + ')';
2623
+ else
2624
+ return false;
2625
+ }
2626
+ supportTransform(transform3d = false) {
2627
+ let result = null;
2628
+ const property = transform3d ? 'perspective' : 'transform', upper = property.charAt(0).toUpperCase() + property.slice(1), prefixes = ['Webkit', 'Moz', 'O', 'ms'], support = document.createElement('support'), style = support.style;
2629
+ (property + ' ' + prefixes.join(upper + ' ') + upper).split(' ').forEach(function (property, i) {
2630
+ if (style[property] !== undefined) {
2631
+ result = property;
2632
+ return false;
2633
+ }
2634
+ });
2635
+ return result;
2636
+ }
2637
+ getScrollTop() {
2638
+ return document.documentElement.scrollTop || document.body.scrollTop || document.documentElement.offsetTop * -1;
2639
+ }
2640
+ }
2641
+ StickySidebarDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StickySidebarDirective, deps: [{ token: i0.ElementRef }, { token: STICKY_SIDEBAR_OPTIONS, optional: true }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Directive });
2642
+ StickySidebarDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: StickySidebarDirective, selector: "[wtStickySidebar]", queries: [{ propertyName: "sidebarInner", first: true, predicate: i0.forwardRef(function () { return StickySidebarInnerDirective; }), descendants: true, read: ElementRef, static: true }], ngImport: i0 });
2643
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StickySidebarDirective, decorators: [{
2644
+ type: Directive,
2645
+ args: [{
2646
+ selector: '[wtStickySidebar]'
2647
+ }]
2648
+ }], ctorParameters: function () {
2649
+ return [{ type: i0.ElementRef }, { type: undefined, decorators: [{
2650
+ type: Optional
2651
+ }, {
2652
+ type: Inject,
2653
+ args: [STICKY_SIDEBAR_OPTIONS]
2654
+ }] }, { type: i0.NgZone }, { type: i0.Renderer2 }, { type: i1$8.Platform, decorators: [{
2655
+ type: Inject,
2656
+ args: [PLATFORM_ID]
2657
+ }] }];
2658
+ }, propDecorators: { sidebarInner: [{
2659
+ type: ContentChild,
2660
+ args: [forwardRef(() => StickySidebarInnerDirective), { static: true, read: ElementRef }]
2661
+ }] } });
2662
+ class StickySidebarInnerDirective {
2663
+ constructor() {
2664
+ }
2665
+ }
2666
+ StickySidebarInnerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StickySidebarInnerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2667
+ StickySidebarInnerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: StickySidebarInnerDirective, selector: "[wtStickySidebarInner]", ngImport: i0 });
2668
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StickySidebarInnerDirective, decorators: [{
2669
+ type: Directive,
2670
+ args: [{
2671
+ selector: '[wtStickySidebarInner]'
2672
+ }]
2673
+ }], ctorParameters: function () { return []; } });
2674
+
2675
+ class StickySidebarModule {
2676
+ static withOptions(options) {
2677
+ return {
2678
+ ngModule: StickySidebarModule,
2679
+ providers: [
2680
+ {
2681
+ provide: STICKY_SIDEBAR_OPTIONS,
2682
+ useValue: options
2683
+ }
2684
+ ]
2685
+ };
2686
+ }
2687
+ }
2688
+ StickySidebarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StickySidebarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2689
+ StickySidebarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: StickySidebarModule, declarations: [StickySidebarDirective, StickySidebarInnerDirective], imports: [CommonModule], exports: [StickySidebarDirective, StickySidebarInnerDirective] });
2690
+ StickySidebarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StickySidebarModule, imports: [CommonModule] });
2691
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StickySidebarModule, decorators: [{
2692
+ type: NgModule,
2693
+ args: [{
2694
+ declarations: [StickySidebarDirective, StickySidebarInnerDirective],
2695
+ imports: [
2696
+ CommonModule
2697
+ ],
2698
+ exports: [StickySidebarDirective, StickySidebarInnerDirective]
2699
+ }]
2700
+ }] });
2701
+
2702
+ class TableMenuComponent {
2703
+ constructor() {
2704
+ this.edit = new EventEmitter();
2705
+ this.delete = new EventEmitter();
2706
+ }
2707
+ ngOnInit() {
2708
+ }
2709
+ editAction() {
2710
+ this.edit.emit();
2711
+ }
2712
+ deleteAction() {
2713
+ this.delete.emit();
2714
+ }
2715
+ }
2716
+ TableMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2717
+ TableMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: TableMenuComponent, selector: "shared-table-menu", outputs: { edit: "edit", delete: "delete" }, ngImport: i0, template: "<mat-icon class=\"cursor-pointer\" [matMenuTriggerFor]=\"menu\">more_vert</mat-icon>\n<mat-menu #menu=\"matMenu\">\n <button mat-menu-item (click)=\"editAction()\">\n <mat-icon>edit</mat-icon>\n <span>\u0420\u0435\u0434.</span>\n </button>\n <button mat-menu-item (click)=\"deleteAction()\">\n <mat-icon>delete</mat-icon>\n <span>\u0423\u0434\u0430\u043B\u0438\u0442\u044C</span>\n </button>\n</mat-menu>\n", styles: [""], dependencies: [{ kind: "component", type: i6$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i2$7.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "component", type: i2$7.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i2$7.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }] });
2718
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableMenuComponent, decorators: [{
2719
+ type: Component,
2720
+ args: [{ selector: 'shared-table-menu', template: "<mat-icon class=\"cursor-pointer\" [matMenuTriggerFor]=\"menu\">more_vert</mat-icon>\n<mat-menu #menu=\"matMenu\">\n <button mat-menu-item (click)=\"editAction()\">\n <mat-icon>edit</mat-icon>\n <span>\u0420\u0435\u0434.</span>\n </button>\n <button mat-menu-item (click)=\"deleteAction()\">\n <mat-icon>delete</mat-icon>\n <span>\u0423\u0434\u0430\u043B\u0438\u0442\u044C</span>\n </button>\n</mat-menu>\n" }]
2721
+ }], ctorParameters: function () { return []; }, propDecorators: { edit: [{
2722
+ type: Output
2723
+ }], delete: [{
2724
+ type: Output
2725
+ }] } });
2726
+
2727
+ class TableMenuModule {
2728
+ }
2729
+ TableMenuModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2730
+ TableMenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: TableMenuModule, declarations: [TableMenuComponent], imports: [CommonModule,
2731
+ MatIconModule,
2732
+ MatMenuModule], exports: [TableMenuComponent,
2733
+ MatIconModule,
2734
+ MatMenuModule] });
2735
+ TableMenuModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableMenuModule, imports: [CommonModule,
2736
+ MatIconModule,
2737
+ MatMenuModule, MatIconModule,
2738
+ MatMenuModule] });
2739
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableMenuModule, decorators: [{
2740
+ type: NgModule,
2741
+ args: [{
2742
+ declarations: [TableMenuComponent],
2743
+ imports: [
2744
+ CommonModule,
2745
+ MatIconModule,
2746
+ MatMenuModule
2747
+ ],
2748
+ exports: [
2749
+ TableMenuComponent,
2750
+ MatIconModule,
2751
+ MatMenuModule
2752
+ ]
2753
+ }]
2754
+ }] });
2755
+
2756
+ class TagCloudComponent {
2757
+ constructor() {
2758
+ this.loaded = false;
2759
+ this.trackByFn = trackById;
2760
+ }
2761
+ ngOnInit() {
2762
+ /*this.tagsFacade.loadTags();
2763
+ this.getTags$ = this.tagsFacade.getTags$.pipe(
2764
+ filter(items => !!items),
2765
+ tap(items => {
2766
+ if (items.length) {
2767
+ this.loaded = true;
2768
+ }
2769
+ })
2770
+ );*/
2771
+ }
2772
+ ngOnDestroy() {
2773
+ }
2774
+ }
2775
+ TagCloudComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TagCloudComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2776
+ TagCloudComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: TagCloudComponent, selector: "shared-tag-cloud", ngImport: i0, template: "<ng-container *ngIf=\"getTags$ | async; let tags;\">\n<aside *ngIf=\"loaded\" class=\"single-sidebar-widget tag_cloud_widget\">\n <h4 class=\"widget_title\">\u0422\u0435\u0433\u0438</h4>\n <ul class=\"tag-list list\">\n <li *ngFor=\"let tag of tags; trackBy: trackByFn\"><a [routerLink]=\"['/tag/' + tag.slug + '.html']\">{{tag.name}}</a></li>\n </ul>\n</aside>\n</ng-container>\n<shared-spinner *ngIf=\"!loaded\" [diameter]=\"30\"></shared-spinner>\n", styles: [".tag-list li:nth-child(3n) a{margin-right:0!important}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "directive", type: i2$5.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2777
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TagCloudComponent, decorators: [{
2778
+ type: Component,
2779
+ args: [{ selector: 'shared-tag-cloud', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"getTags$ | async; let tags;\">\n<aside *ngIf=\"loaded\" class=\"single-sidebar-widget tag_cloud_widget\">\n <h4 class=\"widget_title\">\u0422\u0435\u0433\u0438</h4>\n <ul class=\"tag-list list\">\n <li *ngFor=\"let tag of tags; trackBy: trackByFn\"><a [routerLink]=\"['/tag/' + tag.slug + '.html']\">{{tag.name}}</a></li>\n </ul>\n</aside>\n</ng-container>\n<shared-spinner *ngIf=\"!loaded\" [diameter]=\"30\"></shared-spinner>\n", styles: [".tag-list li:nth-child(3n) a{margin-right:0!important}\n"] }]
2780
+ }], ctorParameters: function () { return []; } });
2781
+
2782
+ class TagCloudModule {
2783
+ }
2784
+ TagCloudModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TagCloudModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2785
+ TagCloudModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: TagCloudModule, declarations: [TagCloudComponent], imports: [CommonModule,
2786
+ SharedSpinnerModule$1,
2787
+ RouterModule], exports: [TagCloudComponent] });
2788
+ TagCloudModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TagCloudModule, imports: [CommonModule,
2789
+ SharedSpinnerModule$1,
2790
+ RouterModule] });
2791
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TagCloudModule, decorators: [{
2792
+ type: NgModule,
2793
+ args: [{
2794
+ declarations: [TagCloudComponent],
2795
+ imports: [
2796
+ CommonModule,
2797
+ SharedSpinnerModule$1,
2798
+ RouterModule
2799
+ ],
2800
+ exports: [TagCloudComponent]
2801
+ }]
2802
+ }] });
2803
+
2804
+ class SafePipe {
2805
+ constructor(sanitizer) {
2806
+ this.sanitizer = sanitizer;
2807
+ }
2808
+ transform(value, type) {
2809
+ switch (type) {
2810
+ case 'html':
2811
+ return this.sanitizer.bypassSecurityTrustHtml(value);
2812
+ case 'style':
2813
+ return this.sanitizer.bypassSecurityTrustStyle(value);
2814
+ case 'script':
2815
+ return this.sanitizer.bypassSecurityTrustScript(value);
2816
+ case 'url':
2817
+ return this.sanitizer.bypassSecurityTrustUrl(value);
2818
+ case 'resourceUrl':
2819
+ return this.sanitizer.bypassSecurityTrustResourceUrl(value);
2820
+ default:
2821
+ throw new Error(`Invalid safe type specified: ${type}`);
2822
+ }
2823
+ }
2824
+ }
2825
+ SafePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SafePipe, deps: [{ token: i1$9.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe });
2826
+ SafePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: SafePipe, name: "safe" });
2827
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SafePipe, decorators: [{
2828
+ type: Pipe,
2829
+ args: [{
2830
+ name: 'safe'
2831
+ }]
2832
+ }], ctorParameters: function () { return [{ type: i1$9.DomSanitizer }]; } });
2833
+
2834
+ // import {TagModel} from '@shared/models/models/tag';
2835
+ class TextWithLinkMoreComponent {
2836
+ constructor() {
2837
+ this.height = 300;
2838
+ }
2839
+ ngOnInit() {
2840
+ /*this.tagsFacade.loadTags();
2841
+ this.getTags$ = this.tagsFacade.getTags$.pipe(
2842
+ filter(items => !!items),
2843
+ tap(items => {
2844
+ if (items.length) {
2845
+ this.loaded = true;
2846
+ }
2847
+ })
2848
+ );*/
2849
+ }
2850
+ ngOnDestroy() {
2851
+ }
2852
+ toggle(textBlock) {
2853
+ textBlock.classList.toggle('open');
2854
+ }
2855
+ }
2856
+ TextWithLinkMoreComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TextWithLinkMoreComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2857
+ TextWithLinkMoreComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: TextWithLinkMoreComponent, selector: "shared-text-with-link-more", inputs: { text: "text", height: "height" }, ngImport: i0, template: "<div class=\"text-block\" #textBlock>\n <div class=\"text-block-inner\" [innerHTML]=\"text | safe : 'html'\"></div>\n <div class=\"text-right open-text\">\n <a (click)=\"toggle(textBlock)\">\u041F\u043E\u0434\u0440\u043E\u0431\u043D\u0435\u0435</a>\n </div>\n <div class=\"text-right close-text\">\n <a (click)=\"toggle(textBlock)\">\u0417\u0430\u043A\u0440\u044B\u0442\u044C</a>\n </div>\n</div>\n", styles: [".text-block .text-block-inner{overflow:hidden;position:relative;height:200px;transition:height .3s linear 0s}.text-block .text-block-inner:after{content:\"\";text-align:right;position:absolute;bottom:0;right:0;left:0;height:50px;background:linear-gradient(to bottom,rgba(255,255,255,0),white 100%);pointer-events:none}.text-block .open-text{display:block}.text-block .close-text{display:none}.text-block.open .text-block-inner{height:auto}.text-block.open .text-block-inner:after{background:transparent}.text-block.open .open-text{display:none}.text-block.open .close-text{display:block}.text-right a{cursor:pointer;color:#007bff;font-size:14px}\n"], dependencies: [{ kind: "pipe", type: SafePipe, name: "safe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2858
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TextWithLinkMoreComponent, decorators: [{
2859
+ type: Component,
2860
+ args: [{ selector: 'shared-text-with-link-more', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"text-block\" #textBlock>\n <div class=\"text-block-inner\" [innerHTML]=\"text | safe : 'html'\"></div>\n <div class=\"text-right open-text\">\n <a (click)=\"toggle(textBlock)\">\u041F\u043E\u0434\u0440\u043E\u0431\u043D\u0435\u0435</a>\n </div>\n <div class=\"text-right close-text\">\n <a (click)=\"toggle(textBlock)\">\u0417\u0430\u043A\u0440\u044B\u0442\u044C</a>\n </div>\n</div>\n", styles: [".text-block .text-block-inner{overflow:hidden;position:relative;height:200px;transition:height .3s linear 0s}.text-block .text-block-inner:after{content:\"\";text-align:right;position:absolute;bottom:0;right:0;left:0;height:50px;background:linear-gradient(to bottom,rgba(255,255,255,0),white 100%);pointer-events:none}.text-block .open-text{display:block}.text-block .close-text{display:none}.text-block.open .text-block-inner{height:auto}.text-block.open .text-block-inner:after{background:transparent}.text-block.open .open-text{display:none}.text-block.open .close-text{display:block}.text-right a{cursor:pointer;color:#007bff;font-size:14px}\n"] }]
2861
+ }], ctorParameters: function () { return []; }, propDecorators: { text: [{
2862
+ type: Input
2863
+ }], height: [{
2864
+ type: Input
2865
+ }] } });
2866
+
2867
+ class CountFormatPipe {
2868
+ transform(value, ...args) {
2869
+ const numValue = +value;
2870
+ if (numValue) {
2871
+ let dop = '';
2872
+ let newValue = 0;
2873
+ if (numValue >= 1000000) {
2874
+ newValue = Math.trunc(numValue / 1000000);
2875
+ dop = 'm';
2876
+ }
2877
+ else if (numValue >= 1000) {
2878
+ newValue = Math.trunc(numValue / 1000);
2879
+ dop = 'k';
2880
+ }
2881
+ else {
2882
+ newValue = numValue;
2883
+ }
2884
+ return `${newValue}${dop}`;
2885
+ }
2886
+ return 0;
2887
+ }
2888
+ }
2889
+ CountFormatPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CountFormatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
2890
+ CountFormatPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: CountFormatPipe, name: "countFormatPipe" });
2891
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: CountFormatPipe, decorators: [{
2892
+ type: Pipe,
2893
+ args: [{
2894
+ name: 'countFormatPipe'
2895
+ }]
2896
+ }] });
2897
+
2898
+ class DateFormatPipe {
2899
+ transform(value, ...args) {
2900
+ const newDate = moment(value).format('DD MMM, YYYY');
2901
+ return newDate;
2902
+ }
2903
+ }
2904
+ DateFormatPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DateFormatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
2905
+ DateFormatPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: DateFormatPipe, name: "dateFormatPipe" });
2906
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: DateFormatPipe, decorators: [{
2907
+ type: Pipe,
2908
+ args: [{
2909
+ name: 'dateFormatPipe'
2910
+ }]
2911
+ }] });
2912
+
2913
+ class PhonePipe {
2914
+ transform(number) {
2915
+ // +99897 412 70 53
2916
+ /*
2917
+ number = number.charAt(0) !== '+' ? "+" + number : "" + number;
2918
+
2919
+ let newStr = "";
2920
+ let i = 0;
2921
+
2922
+ for (; i < Math.floor(number.length / 2) - 1; i++) {
2923
+ newStr = newStr + number.substr(i * 2, 2) + "-";
2924
+ }
2925
+ */
2926
+ return `+${number[0]}${number[1]}${number[2]} ${number[3]}${number[4]} ${number[5]}${number[6]}${number[7]}-${number[8]}${number[9]}-${number[10]}${number[11]}`;
2927
+ }
2928
+ }
2929
+ PhonePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PhonePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
2930
+ PhonePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: PhonePipe, name: "phoneFormat" });
2931
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PhonePipe, decorators: [{
2932
+ type: Pipe,
2933
+ args: [{
2934
+ name: 'phoneFormat'
2935
+ }]
2936
+ }] });
2937
+
2938
+ class PipesModule {
2939
+ }
2940
+ PipesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PipesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2941
+ PipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: PipesModule, declarations: [SafePipe,
2942
+ CountFormatPipe,
2943
+ DateFormatPipe,
2944
+ PhonePipe], imports: [CommonModule], exports: [SafePipe,
2945
+ CountFormatPipe,
2946
+ DateFormatPipe,
2947
+ PhonePipe] });
2948
+ PipesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PipesModule, imports: [CommonModule] });
2949
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PipesModule, decorators: [{
2950
+ type: NgModule,
2951
+ args: [{
2952
+ declarations: [
2953
+ SafePipe,
2954
+ CountFormatPipe,
2955
+ DateFormatPipe,
2956
+ PhonePipe
2957
+ ],
2958
+ imports: [
2959
+ CommonModule,
2960
+ ],
2961
+ exports: [
2962
+ SafePipe,
2963
+ CountFormatPipe,
2964
+ DateFormatPipe,
2965
+ PhonePipe
2966
+ ],
2967
+ }]
2968
+ }] });
2969
+
2970
+ class TextWithLinkMoreModule {
2971
+ }
2972
+ TextWithLinkMoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TextWithLinkMoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2973
+ TextWithLinkMoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: TextWithLinkMoreModule, declarations: [TextWithLinkMoreComponent], imports: [CommonModule,
2974
+ PipesModule], exports: [TextWithLinkMoreComponent] });
2975
+ TextWithLinkMoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TextWithLinkMoreModule, imports: [CommonModule,
2976
+ PipesModule] });
2977
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TextWithLinkMoreModule, decorators: [{
2978
+ type: NgModule,
2979
+ args: [{
2980
+ declarations: [TextWithLinkMoreComponent],
2981
+ imports: [
2982
+ CommonModule,
2983
+ PipesModule
2984
+ ],
2985
+ exports: [TextWithLinkMoreComponent]
2986
+ }]
2987
+ }] });
2988
+
2989
+ /*
2990
+ * Public API Surface of wt-common
2991
+ */
2992
+
2993
+ /**
2994
+ * Generated bundle index. Do not edit.
2995
+ */
2996
+
2997
+ export { AccessDeniedComponent, AccessDeniedModule, AutoFormMainComponent, AutoFormModule, AutoFormShowComponent, BreadCrumbsComponent, BreadCrumbsModule, ButtonComponent, ButtonModule, ChipsInputComponent, ChipsInputModule, CountFormatPipe, DateFormatPipe, FileListModeList, FileListModeSort, FilesUploadComponent, FilesUploadModule, FormFieldPublishErrorComponent, FormFieldPublishErrorModule, HeaderComponent, HeaderModule, IconComponent, ImageComponent, ImageModule, InputTagsComponent, InputTagsModule, PaginationComponent, PaginationModule, PanelComponent, PanelModule, PhonePipe, PipesModule, STICKY_SIDEBAR_OPTIONS, SafePipe, SharedIconModule, SharedSpinnerModule, SmartProgressBarComponent, SmartProgressBarModule, SpinnerComponent, StarRatingComponent, StarRatingModule, StickySidebarDirective, StickySidebarInnerDirective, StickySidebarModule, TableMenuComponent, TableMenuModule, TagCloudComponent, TagCloudModule, TextWithLinkMoreComponent, TextWithLinkMoreModule, defaultStickySidebarOptions };
2998
+ //# sourceMappingURL=wt-front-shared.mjs.map