wt-front-shared 1.0.9 → 1.0.11

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 (176) hide show
  1. package/esm2020/lib/core/+state/actions/actions.effects.mjs +2 -2
  2. package/esm2020/lib/models/endpoints/form-delete-file/form-delete-file/request/form-delete-file-request.mjs +1 -1
  3. package/esm2020/public-api.mjs +24 -1
  4. package/fesm2015/wt-front-shared.mjs +136 -2913
  5. package/fesm2015/wt-front-shared.mjs.map +1 -1
  6. package/fesm2020/wt-front-shared.mjs +136 -2909
  7. package/fesm2020/wt-front-shared.mjs.map +1 -1
  8. package/lib/core/+state/actions/actions.effects.d.ts +1 -1
  9. package/lib/core/+state/index.d.ts +1 -1
  10. package/lib/models/endpoints/form-delete-file/form-delete-file/request/form-delete-file-request.d.ts +1 -1
  11. package/package.json +1 -1
  12. package/public-api.d.ts +0 -42
  13. package/esm2020/lib/core/animations/appearFromLeft.mjs +0 -18
  14. package/esm2020/lib/core/animations/appearFromLeftHideToRight.mjs +0 -18
  15. package/esm2020/lib/core/animations/appearFromLeftWithDelay.mjs +0 -18
  16. package/esm2020/lib/core/animations/appearOpacity.mjs +0 -18
  17. package/esm2020/lib/core/animations/expandCollapse.mjs +0 -18
  18. package/esm2020/lib/core/animations/hideToTopOpacity.mjs +0 -11
  19. package/esm2020/lib/core/components/access-denied/access-denied.component.mjs +0 -11
  20. package/esm2020/lib/core/components/access-denied/access-denied.module.mjs +0 -17
  21. package/esm2020/lib/core/components/auto-form/auto-form.module.mjs +0 -168
  22. package/esm2020/lib/core/components/auto-form/components/form-field-file/form-field-file.component.mjs +0 -166
  23. package/esm2020/lib/core/components/auto-form/components/form-field-file-show/form-field-file-show.component.mjs +0 -52
  24. package/esm2020/lib/core/components/auto-form/components/form-field-files/form-field-files.component.mjs +0 -108
  25. package/esm2020/lib/core/components/auto-form/components/form-field-files-show/form-field-files-show.component.mjs +0 -40
  26. package/esm2020/lib/core/components/auto-form/components/form-field-input/form-field-input.component.mjs +0 -77
  27. package/esm2020/lib/core/components/auto-form/components/form-field-input-show/form-field-input-show.component.mjs +0 -39
  28. package/esm2020/lib/core/components/auto-form/components/form-field-select/form-field-select.component.mjs +0 -191
  29. package/esm2020/lib/core/components/auto-form/components/form-field-select-show/form-field-select-show.component.mjs +0 -50
  30. package/esm2020/lib/core/components/auto-form/components/form-field-slide-toggle/form-field-slide-toggle.component.mjs +0 -18
  31. package/esm2020/lib/core/components/auto-form/components/form-field-slide-toggle-show/form-field-slide-toggle-show.component.mjs +0 -21
  32. package/esm2020/lib/core/components/auto-form/components/form-field-spinner/form-field-spinner.component.mjs +0 -12
  33. package/esm2020/lib/core/components/auto-form/components/form-field-tags/form-field-tags.component.mjs +0 -114
  34. package/esm2020/lib/core/components/auto-form/components/form-message-box/form-message-box.component.mjs +0 -101
  35. package/esm2020/lib/core/components/auto-form/constants/auto-form-show-value.mjs +0 -2
  36. package/esm2020/lib/core/components/auto-form/constants/errors.mjs +0 -35
  37. package/esm2020/lib/core/components/auto-form/containers/auto-form-main/auto-form-main.component.mjs +0 -200
  38. package/esm2020/lib/core/components/auto-form/containers/auto-form-show/auto-form-show.component.mjs +0 -48
  39. package/esm2020/lib/core/components/auto-form/containers/auto-form-show-field/auto-form-show-field.component.mjs +0 -56
  40. package/esm2020/lib/core/components/auto-form/containers/form-field/form-field.component.mjs +0 -163
  41. package/esm2020/lib/core/components/auto-form/containers/publish-messages/publish-messages.component.mjs +0 -131
  42. package/esm2020/lib/core/components/auto-form/interfaces/input-type.mjs +0 -11
  43. package/esm2020/lib/core/components/bread-crumbs/bread-crumbs.component.mjs +0 -18
  44. package/esm2020/lib/core/components/bread-crumbs/bread-crumbs.module.mjs +0 -19
  45. package/esm2020/lib/core/components/button/ButtonSize.mjs +0 -2
  46. package/esm2020/lib/core/components/button/ButtonStyle.mjs +0 -2
  47. package/esm2020/lib/core/components/button/ButtonTheme.mjs +0 -2
  48. package/esm2020/lib/core/components/button/button.component.mjs +0 -136
  49. package/esm2020/lib/core/components/button/button.module.mjs +0 -40
  50. package/esm2020/lib/core/components/chips-input/chips-input.component.mjs +0 -88
  51. package/esm2020/lib/core/components/chips-input/chips-input.module.mjs +0 -44
  52. package/esm2020/lib/core/components/files-upload/constants.mjs +0 -3
  53. package/esm2020/lib/core/components/files-upload/file-list-card/file-list-card.component.mjs +0 -131
  54. package/esm2020/lib/core/components/files-upload/files-upload/files-upload.component.mjs +0 -89
  55. package/esm2020/lib/core/components/files-upload/files-upload-list-images/files-upload-list-images.component.mjs +0 -97
  56. package/esm2020/lib/core/components/files-upload/files-upload.module.mjs +0 -68
  57. package/esm2020/lib/core/components/files-upload/table-files-uploading/table-files-uploading.component.mjs +0 -122
  58. package/esm2020/lib/core/components/form-field-error/form-field-error.component.mjs +0 -84
  59. package/esm2020/lib/core/components/form-field-error/form-field-error.module.mjs +0 -26
  60. package/esm2020/lib/core/components/form-field-publish-error/form-field-publish-error.component.mjs +0 -62
  61. package/esm2020/lib/core/components/form-field-publish-error/form-field-publish-error.module.mjs +0 -26
  62. package/esm2020/lib/core/components/header/header.component.mjs +0 -28
  63. package/esm2020/lib/core/components/header/header.module.mjs +0 -24
  64. package/esm2020/lib/core/components/icon/icon.component.mjs +0 -43
  65. package/esm2020/lib/core/components/icon/icon.module.mjs +0 -24
  66. package/esm2020/lib/core/components/icon/index.mjs +0 -3
  67. package/esm2020/lib/core/components/image/image.component.mjs +0 -65
  68. package/esm2020/lib/core/components/image/image.module.mjs +0 -24
  69. package/esm2020/lib/core/components/input-tags/input-tags.component.mjs +0 -29
  70. package/esm2020/lib/core/components/input-tags/input-tags.module.mjs +0 -24
  71. package/esm2020/lib/core/components/pagination/pagination.component.mjs +0 -50
  72. package/esm2020/lib/core/components/pagination/pagination.module.mjs +0 -28
  73. package/esm2020/lib/core/components/panel/panel.component.mjs +0 -36
  74. package/esm2020/lib/core/components/panel/panel.module.mjs +0 -28
  75. package/esm2020/lib/core/components/smart-progress-bar/smart-progress-bar.component.mjs +0 -21
  76. package/esm2020/lib/core/components/smart-progress-bar/smart-progress-bar.module.mjs +0 -18
  77. package/esm2020/lib/core/components/spinner/spinner.component.mjs +0 -29
  78. package/esm2020/lib/core/components/spinner/spinner.module.mjs +0 -24
  79. package/esm2020/lib/core/components/star-rating/star-rating.component.mjs +0 -23
  80. package/esm2020/lib/core/components/star-rating/star-rating.module.mjs +0 -22
  81. package/esm2020/lib/core/components/sticky-sidebar/sticky-sidebar.directive.mjs +0 -462
  82. package/esm2020/lib/core/components/sticky-sidebar/sticky-sidebar.module.mjs +0 -31
  83. package/esm2020/lib/core/components/table-menu/table-menu.component.mjs +0 -29
  84. package/esm2020/lib/core/components/table-menu/table-menu.module.mjs +0 -35
  85. package/esm2020/lib/core/components/tag-cloud/tag-cloud.component.mjs +0 -32
  86. package/esm2020/lib/core/components/tag-cloud/tag-cloud.module.mjs +0 -28
  87. package/esm2020/lib/core/components/text-with-link-more/text-with-link-more.component.mjs +0 -36
  88. package/esm2020/lib/core/components/text-with-link-more/text-with-link-more.module.mjs +0 -24
  89. package/esm2020/lib/core/constants/async-validators-type.mjs +0 -13
  90. package/esm2020/lib/core/constants/publish-errors.const.mjs +0 -31
  91. package/esm2020/lib/core/constants/validators-type.mjs +0 -9
  92. package/esm2020/lib/core/dialogs/delete/delete.component.mjs +0 -28
  93. package/esm2020/lib/core/dialogs/dialog.service.mjs +0 -26
  94. package/esm2020/lib/core/services/auto-form/auto-form.service.mjs +0 -153
  95. package/lib/core/animations/appearFromLeft.d.ts +0 -1
  96. package/lib/core/animations/appearFromLeftHideToRight.d.ts +0 -1
  97. package/lib/core/animations/appearFromLeftWithDelay.d.ts +0 -1
  98. package/lib/core/animations/appearOpacity.d.ts +0 -1
  99. package/lib/core/animations/expandCollapse.d.ts +0 -1
  100. package/lib/core/animations/hideToTopOpacity.d.ts +0 -1
  101. package/lib/core/components/access-denied/access-denied.component.d.ts +0 -5
  102. package/lib/core/components/access-denied/access-denied.module.d.ts +0 -7
  103. package/lib/core/components/auto-form/auto-form.module.d.ts +0 -47
  104. package/lib/core/components/auto-form/components/form-field-file/form-field-file.component.d.ts +0 -42
  105. package/lib/core/components/auto-form/components/form-field-file-show/form-field-file-show.component.d.ts +0 -9
  106. package/lib/core/components/auto-form/components/form-field-files/form-field-files.component.d.ts +0 -26
  107. package/lib/core/components/auto-form/components/form-field-files-show/form-field-files-show.component.d.ts +0 -19
  108. package/lib/core/components/auto-form/components/form-field-input/form-field-input.component.d.ts +0 -23
  109. package/lib/core/components/auto-form/components/form-field-input-show/form-field-input-show.component.d.ts +0 -14
  110. package/lib/core/components/auto-form/components/form-field-select/form-field-select.component.d.ts +0 -44
  111. package/lib/core/components/auto-form/components/form-field-select-show/form-field-select-show.component.d.ts +0 -20
  112. package/lib/core/components/auto-form/components/form-field-slide-toggle/form-field-slide-toggle.component.d.ts +0 -9
  113. package/lib/core/components/auto-form/components/form-field-slide-toggle-show/form-field-slide-toggle-show.component.d.ts +0 -11
  114. package/lib/core/components/auto-form/components/form-field-spinner/form-field-spinner.component.d.ts +0 -5
  115. package/lib/core/components/auto-form/components/form-field-tags/form-field-tags.component.d.ts +0 -42
  116. package/lib/core/components/auto-form/components/form-message-box/form-message-box.component.d.ts +0 -31
  117. package/lib/core/components/auto-form/constants/auto-form-show-value.d.ts +0 -1
  118. package/lib/core/components/auto-form/constants/errors.d.ts +0 -22
  119. package/lib/core/components/auto-form/containers/auto-form-main/auto-form-main.component.d.ts +0 -69
  120. package/lib/core/components/auto-form/containers/auto-form-show/auto-form-show.component.d.ts +0 -24
  121. package/lib/core/components/auto-form/containers/auto-form-show-field/auto-form-show-field.component.d.ts +0 -24
  122. package/lib/core/components/auto-form/containers/form-field/form-field.component.d.ts +0 -48
  123. package/lib/core/components/auto-form/containers/publish-messages/publish-messages.component.d.ts +0 -50
  124. package/lib/core/components/auto-form/interfaces/input-type.d.ts +0 -9
  125. package/lib/core/components/bread-crumbs/bread-crumbs.component.d.ts +0 -13
  126. package/lib/core/components/bread-crumbs/bread-crumbs.module.d.ts +0 -9
  127. package/lib/core/components/button/ButtonSize.d.ts +0 -1
  128. package/lib/core/components/button/ButtonStyle.d.ts +0 -1
  129. package/lib/core/components/button/ButtonTheme.d.ts +0 -1
  130. package/lib/core/components/button/button.component.d.ts +0 -35
  131. package/lib/core/components/button/button.module.d.ts +0 -13
  132. package/lib/core/components/chips-input/chips-input.component.d.ts +0 -37
  133. package/lib/core/components/chips-input/chips-input.module.d.ts +0 -14
  134. package/lib/core/components/files-upload/constants.d.ts +0 -12
  135. package/lib/core/components/files-upload/file-list-card/file-list-card.component.d.ts +0 -51
  136. package/lib/core/components/files-upload/files-upload/files-upload.component.d.ts +0 -42
  137. package/lib/core/components/files-upload/files-upload-list-images/files-upload-list-images.component.d.ts +0 -34
  138. package/lib/core/components/files-upload/files-upload.module.d.ts +0 -18
  139. package/lib/core/components/files-upload/table-files-uploading/table-files-uploading.component.d.ts +0 -43
  140. package/lib/core/components/form-field-error/form-field-error.component.d.ts +0 -22
  141. package/lib/core/components/form-field-error/form-field-error.module.d.ts +0 -9
  142. package/lib/core/components/form-field-publish-error/form-field-publish-error.component.d.ts +0 -26
  143. package/lib/core/components/form-field-publish-error/form-field-publish-error.module.d.ts +0 -9
  144. package/lib/core/components/header/header.component.d.ts +0 -13
  145. package/lib/core/components/header/header.module.d.ts +0 -8
  146. package/lib/core/components/icon/icon.component.d.ts +0 -24
  147. package/lib/core/components/icon/icon.module.d.ts +0 -9
  148. package/lib/core/components/icon/index.d.ts +0 -2
  149. package/lib/core/components/image/image.component.d.ts +0 -25
  150. package/lib/core/components/image/image.module.d.ts +0 -9
  151. package/lib/core/components/input-tags/input-tags.component.d.ts +0 -17
  152. package/lib/core/components/input-tags/input-tags.module.d.ts +0 -9
  153. package/lib/core/components/pagination/pagination.component.d.ts +0 -15
  154. package/lib/core/components/pagination/pagination.module.d.ts +0 -9
  155. package/lib/core/components/panel/panel.component.d.ts +0 -18
  156. package/lib/core/components/panel/panel.module.d.ts +0 -10
  157. package/lib/core/components/smart-progress-bar/smart-progress-bar.component.d.ts +0 -8
  158. package/lib/core/components/smart-progress-bar/smart-progress-bar.module.d.ts +0 -8
  159. package/lib/core/components/spinner/spinner.component.d.ts +0 -12
  160. package/lib/core/components/spinner/spinner.module.d.ts +0 -9
  161. package/lib/core/components/star-rating/star-rating.component.d.ts +0 -12
  162. package/lib/core/components/star-rating/star-rating.module.d.ts +0 -8
  163. package/lib/core/components/sticky-sidebar/sticky-sidebar.directive.d.ts +0 -78
  164. package/lib/core/components/sticky-sidebar/sticky-sidebar.module.d.ts +0 -16
  165. package/lib/core/components/table-menu/table-menu.component.d.ts +0 -12
  166. package/lib/core/components/table-menu/table-menu.module.d.ts +0 -10
  167. package/lib/core/components/tag-cloud/tag-cloud.component.d.ts +0 -14
  168. package/lib/core/components/tag-cloud/tag-cloud.module.d.ts +0 -10
  169. package/lib/core/components/text-with-link-more/text-with-link-more.component.d.ts +0 -12
  170. package/lib/core/components/text-with-link-more/text-with-link-more.module.d.ts +0 -9
  171. package/lib/core/constants/async-validators-type.d.ts +0 -10
  172. package/lib/core/constants/publish-errors.const.d.ts +0 -9
  173. package/lib/core/constants/validators-type.d.ts +0 -7
  174. package/lib/core/dialogs/delete/delete.component.d.ts +0 -17
  175. package/lib/core/dialogs/dialog.service.d.ts +0 -10
  176. package/lib/core/services/auto-form/auto-form.service.d.ts +0 -27
@@ -1,2850 +1,64 @@
1
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, Injectable } from '@angular/core';
3
- import { AccessDeniedComponent as AccessDeniedComponent$1 } from '@wt-front-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 '@wt-front-shared/components/auto-form/containers/form-field/form-field.component';
28
- import { FormFieldComponent } from '@wt-front-shared/components/auto-form/containers/form-field/form-field.component';
29
- import { FormFieldErrorModule } from '@wt-front-shared/components/form-field-error/form-field-error.module';
30
- import { SharedSpinnerModule as SharedSpinnerModule$1 } from '@wt-front-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, of } from 'rxjs';
34
- import { takeUntil, startWith, map, filter as filter$1, switchMap, tap, flatMap, catchError } from 'rxjs/operators';
35
- import { filter } from 'rxjs/internal/operators/filter';
36
- import * as i1$1 from '@ngrx/store';
37
- import { createAction, props, createReducer, on, createFeatureSelector, createSelector, select } from '@ngrx/store';
38
- import { appearOpacity } from '@wt-front-shared/core/animations/appearOpacity';
39
- import { untilComponentDestroyed, trackById } from '@wt-front-shared/core/utils';
40
- import * as i5 from '@angular/material/core';
41
- import * as i7 from 'ngx-mat-select-search';
42
- import { NgxMatSelectSearchModule } from 'ngx-mat-select-search';
43
- import { isObject } from 'rxjs/internal-compatibility';
44
- import * as i1$5 from '@wt-front-shared/state/form-errors';
45
- import { FormErrorsFacade, formErrorsReducer } from '@wt-front-shared/state/form-errors';
46
- import * as i2$3 from '@wt-front-shared/state/forms';
47
- import { FormsFacade, formReducer } from '@wt-front-shared/state/forms';
48
- import { appearFromLeft } from '@wt-front-shared/core/animations/appearFromLeft';
49
- import * as i1$4 from '@wt-front-shared/state/publication-messages';
50
- import { PublicationMessagesFacade, publicationMessagesReducer } from '@wt-front-shared/state/publication-messages';
51
- import * as i4$2 from '@wt-front-shared/core/services/auth/authentication.service';
52
- import { ERRORS } from '@wt-front-shared/components/auto-form/constants/errors';
53
- import * as i1$3 from '@wt-front-shared/core/services';
54
- import { expandCollapse } from '@wt-front-shared/core/animations/expandCollapse';
55
- import { appearFromLeftWithDelay } from '@wt-front-shared/core/animations/appearFromLeftWithDelay';
56
- import * as i2$2 from '@wt-front-shared/core/services/auto-form/auto-form.service';
57
- import { PublishErrors } from '@wt-front-shared/constants/publish-errors.const';
58
- import * as i6$2 from '@wt-front-shared/components/panel/panel.component';
59
- import { PanelComponent as PanelComponent$1 } from '@wt-front-shared/components/panel/panel.component';
60
- import { trigger, transition, animate, keyframes, style } from '@angular/animations';
61
- import * as i5$1 from '@angular/material/button';
62
- import { MatButtonModule } from '@angular/material/button';
63
- import { AutoFormShowComponent as AutoFormShowComponent$1 } from '@wt-front-shared/components/auto-form/containers/auto-form-show/auto-form-show.component';
64
- import * as i2$4 from '@wt-front-shared/components/auto-form/containers/auto-form-show-field/auto-form-show-field.component';
65
- import { AutoFormShowFieldComponent } from '@wt-front-shared/components/auto-form/containers/auto-form-show-field/auto-form-show-field.component';
66
- import { FormFieldSelectShowComponent } from '@wt-front-shared/components/auto-form/components/form-field-select-show/form-field-select-show.component';
67
- import { InputType } from '@wt-front-shared/components/auto-form/interfaces/input-type';
68
- import { IFormFieldFormat } from '@wt-front-shared/components/auto-form/interfaces/form-field-format';
69
- import { FormFieldFileComponent } from '@wt-front-shared/components/auto-form/components/form-field-file/form-field-file.component';
70
- import { FormFieldFilesComponent } from '@wt-front-shared/components/auto-form/components/form-field-files/form-field-files.component';
71
- import { FilesUploadModule as FilesUploadModule$1 } from '@wt-front-shared/components/files-upload/files-upload.module';
72
- import { FormFieldFileShowComponent } from '@wt-front-shared/components/auto-form/components/form-field-file-show/form-field-file-show.component';
73
- import { FormFieldSlideToggleShowComponent } from '@wt-front-shared/components/auto-form/components/form-field-slide-toggle-show/form-field-slide-toggle-show.component';
74
- import { FormFieldInputShowComponent } from '@wt-front-shared/components/auto-form/components/form-field-input-show/form-field-input-show.component';
75
- import { FormFieldFilesShowComponent } from '@wt-front-shared/components/auto-form/components/form-field-files-show/form-field-files-show.component';
76
- import { ImageModule as ImageModule$1 } from '@wt-front-shared/core/components/image/image.module';
77
- import { PanelModule as PanelModule$1 } from '@wt-front-shared/components/panel/panel.module';
78
- import { ButtonModule as ButtonModule$1 } from '@wt-front-shared/core/components/button/button.module';
79
- import { SmartProgressBarModule as SmartProgressBarModule$1 } from '@wt-front-shared/components/smart-progress-bar/smart-progress-bar.module';
80
- import { StarRatingModule as StarRatingModule$1 } from '@wt-front-shared/components/star-rating/star-rating.module';
81
- import { FormFieldPublishErrorModule as FormFieldPublishErrorModule$1 } from '@wt-front-shared/components/form-field-publish-error/form-field-publish-error.module';
82
- import { FormFieldTagsComponent } from '@wt-front-shared/components/auto-form/components/form-field-tags/form-field-tags.component';
83
- import * as i3$2 from '@angular/router';
84
- import { RouterModule } from '@angular/router';
85
- import { SharedIconModule as SharedIconModule$1 } from '@wt-front-shared/components/icon/icon.module';
86
- import { ENTER, COMMA } from '@angular/cdk/keycodes';
87
- import { MatLegacyChipsModule } from '@angular/material/legacy-chips';
88
- import * as i6$4 from 'ng2-file-upload';
89
- import { FileUploader, FileUploadModule } from 'ng2-file-upload';
90
- import * as i3$4 from '@angular/cdk/drag-drop';
91
- import { moveItemInArray, DragDropModule } from '@angular/cdk/drag-drop';
92
- import { appearFromLeftHideToRight } from '@wt-front-shared/core/animations/appearFromLeftHideToRight';
93
- import * as i4$3 from '@wt-front-shared/state/requests';
94
- import { RequestsFacade, requestsReducer } from '@wt-front-shared/state/requests';
95
- import { RequestStatus } from '@wt-front-shared/models/models/request.model';
96
- import * as i1$7 from '@wt-front-shared/state/files';
97
- import { FilesEffects, FilesFacade, filesReducer } from '@wt-front-shared/state/files';
98
- import { FileListModeSort as FileListModeSort$1, FileListModeList as FileListModeList$1 } from '@wt-front-shared/components/files-upload/constants';
99
- import { hideToTopOpacity } from '@wt-front-shared/core/animations/hideToTopOpacity';
100
- import * as i1$6 from '@wt-front-shared/state/files/files.facade';
101
- import * as i3$3 from '@wt-front-shared/core/dialogs/dialog.service';
102
- import * as i2$5 from '@wt-front-shared/state/notifications';
103
- import { NotificationsFacade, notificationsReducer } from '@wt-front-shared/state/notifications';
104
- import { CORE_CONFIG } from '@wt-front-shared/core/tokens';
105
- import * as i5$2 from '@angular/material/progress-bar';
106
- import { MatProgressBarModule } from '@angular/material/progress-bar';
107
- import { FormFieldPublishErrorComponent as FormFieldPublishErrorComponent$1 } from '@wt-front-shared/components/form-field-publish-error/form-field-publish-error.component';
108
- import '@wt-front-shared/models/models/file';
109
- import { InputTagsComponent as InputTagsComponent$1 } from '@wt-front-shared/components/input-tags/input-tags.component';
110
- import { ChipsInputModule as ChipsInputModule$1 } from '@wt-front-shared/components/chips-input/chips-input.module';
111
- import { PaginationComponent as PaginationComponent$1 } from '@wt-front-shared/components/pagination/pagination.component';
112
- import * as i1$8 from '@angular/cdk/platform';
113
- import * as i2$6 from '@angular/material/menu';
114
- import { MatMenuModule } from '@angular/material/menu';
115
- import * as i1$9 from '@angular/platform-browser';
116
- import * as moment from 'moment';
117
- import * as i1$a from '@ngrx/effects';
118
- import { createEffect, ofType } from '@ngrx/effects';
119
- import { LoginSendBehavior } from '@wt-front-shared/state/users/behavios/login-send-behavior';
120
- import { RefreshTokenBehavior } from '@wt-front-shared/state/users/behavios/refresh-token-behavior';
121
- import * as i3$5 from '@wt-front-shared/core/services/users/users.service';
122
- import * as i5$3 from '@wt-front-shared/core/services/router/router.service';
123
- import { GlobalEvent } from '@wt-front-shared/state/core.actions';
124
- import * as i6$5 from '@wt-front-shared/core/services/actions/actions.service';
125
- import { NotificationShowingType } from '@wt-front-shared/state/notifications/notifications.actions';
126
- import { NOTIFICATION_LONG_TIMEOUT } from '@wt-front-shared/constants/constants';
127
- import { EntityUpdate } from '@wt-front-shared/state/update-entities/update-entities.actions';
128
- import { LoadUsersSuccess as LoadUsersSuccess$1, RefreshToken as RefreshToken$1, SetLoaded as SetLoaded$1, RefreshTokenSuccess as RefreshTokenSuccess$1 } from '@wt-front-shared/state/users/users.actions';
129
- import { ROUTER_FEATURE_KEY as ROUTER_FEATURE_KEY$1 } from '@wt-front-shared/state/router/router.reducer';
130
- import { NotificationsEffects } from '@wt-front-shared/state/notifications/notifications.effects';
131
- import { TagsEffects } from '@wt-front-shared/state/tags/tags.effects';
132
- import { UiUnitsEffects } from '@wt-front-shared/state/uiUnits/uiUnits.effects';
133
- import { MainEffects } from '@wt-front-shared/state/main/main.effects';
134
- import { UiUnitsFacade, uiUnitsReducer } from '@wt-front-shared/state/uiUnits';
135
- import { RouterFacade } from '@wt-front-shared/state/router/router.facade';
136
- import { TagsFacade, tagsReducer } from '@wt-front-shared/state/tags';
137
- import { MainFacade, mainReducer } from '@wt-front-shared/state/main';
138
- import { FormValidationEffects } from '@wt-front-shared/state/form-validation/form-validation.effects';
139
- import { FormValidationFacade, formValidationReducer } from '@wt-front-shared/state/form-validation';
140
- import { FormErrorsEffects } from '@wt-front-shared/state/form-errors/form-errors.effects';
141
- import { FormsEffects } from '@wt-front-shared/state/forms/forms.effects';
142
- import { FormDeleteFileEffects } from '@wt-front-shared/state/form-delete-file/form-delete-file.effects';
143
- import { FormDeleteFileFacade } from '@wt-front-shared/state/form-delete-file';
144
- import { PublicationMessagesEffects } from '@wt-front-shared/state/publication-messages/publication-messages.effects';
145
- import { UpdateEntitiesEffects } from '@wt-front-shared/state/update-entities/update-entities.effects';
146
- import { StaticDataEffects } from '@wt-front-shared/state/static-data/static-data.effects';
147
- import { StaticDataFacade } from '@wt-front-shared/state/static-data/static-data.facade';
148
- import { staticDataReducer } from '@wt-front-shared/state/static-data/static-data.reducer';
149
- import { ActionsEffects } from '@wt-front-shared/state/actions/actions.effects';
150
- import { ActionsFacade } from '@wt-front-shared/state/actions/actions.facade';
151
- import { actionsReducer } from '@wt-front-shared/state/actions/actions.reducer';
152
- import { CoreFacade } from '@wt-front-shared/state/core.facade';
153
- import { CacheDataEffects } from '@wt-front-shared/state/cache-data/cache-data.effects';
154
- import { CacheDataFacade } from '@wt-front-shared/state/cache-data/cache-data.facade';
155
- import { cacheDataReducer } from '@wt-front-shared/state/cache-data/cache-data.reducer';
156
- import { ReportsFacade } from '@wt-front-shared/state/reports/reports.facade';
157
- import { reportsReducer } from '@wt-front-shared/state/reports/reports.reducer';
158
- import { ReportsEffects } from '@wt-front-shared/state/reports/reports.effects';
159
-
160
- class AccessDeniedComponent {
161
- }
162
- AccessDeniedComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AccessDeniedComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
163
- 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 });
164
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AccessDeniedComponent, decorators: [{
165
- type: Component,
166
- 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" }]
167
- }] });
168
-
169
- class AccessDeniedModule {
170
- }
171
- AccessDeniedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AccessDeniedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
172
- AccessDeniedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: AccessDeniedModule, declarations: [AccessDeniedComponent$1], exports: [AccessDeniedComponent$1] });
173
- AccessDeniedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AccessDeniedModule });
174
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AccessDeniedModule, decorators: [{
175
- type: NgModule,
176
- args: [{
177
- imports: [],
178
- declarations: [AccessDeniedComponent$1],
179
- exports: [AccessDeniedComponent$1]
180
- }]
181
- }] });
182
-
183
- class SpinnerComponent {
184
- constructor() {
185
- this.overlay = false;
186
- this.diameter = 30;
187
- this.color = 'blue';
188
- this.position = 'left';
189
- }
190
- ngOnInit() {
191
- }
192
- }
193
- SpinnerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SpinnerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
194
- 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 });
195
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SpinnerComponent, decorators: [{
196
- type: Component,
197
- 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"] }]
198
- }], ctorParameters: function () { return []; }, propDecorators: { overlay: [{
199
- type: Input
200
- }], diameter: [{
201
- type: Input
202
- }], color: [{
203
- type: Input
204
- }], position: [{
205
- type: Input
206
- }] } });
207
-
208
- class FormFieldSpinnerComponent {
209
- }
210
- FormFieldSpinnerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldSpinnerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
211
- 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 });
212
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldSpinnerComponent, decorators: [{
213
- type: Component,
214
- 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"] }]
215
- }] });
216
-
217
- class FormFieldSelectComponent {
218
- constructor(store, cd) {
219
- this.store = store;
220
- this.cd = cd;
221
- this.searchCtrl = new FormControl();
222
- this.loaded = false;
223
- this.options = [];
224
- this.allOptions = [];
225
- this.tempOptions = [];
226
- this.placeholder = '';
227
- this.unSubscribeSubject$ = new Subject();
228
- }
229
- ngOnInit() {
230
- if (this.fieldData.options.subscribeToFormChanges) {
231
- this.subscribeToFormChanges();
232
- this.placeholder = this.fieldData.options.subscribeToFormChanges.emptyTitle;
233
- }
234
- this.subscribeToSearchChange();
235
- }
236
- ngOnDestroy() {
237
- this.unSubscribeSubject$.next();
238
- this.unSubscribeSubject$.complete();
239
- }
240
- ngOnChanges(changes) {
241
- if (changes.fieldData && changes.fieldData.currentValue) {
242
- const { loadOptionFromStore, selectOptions } = changes.fieldData.currentValue.options;
243
- if (selectOptions && selectOptions.length) {
244
- this.options = selectOptions;
245
- }
246
- if (loadOptionFromStore) {
247
- this.loadOptionsFromStore(loadOptionFromStore);
248
- }
249
- else {
250
- this.loaded = true;
251
- }
252
- }
253
- }
254
- subscribeToSearchChange() {
255
- if (this.searchCtrl) {
256
- this.searchCtrl.valueChanges
257
- .pipe(untilComponentDestroyed(this))
258
- .subscribe((searchValue) => {
259
- if (searchValue) {
260
- if (!this.tempOptions.length) {
261
- this.tempOptions = [...this.options];
262
- }
263
- this.options = this.options.filter(item => {
264
- return item.name.toLowerCase().indexOf(searchValue.toLowerCase()) !== -1;
265
- });
266
- }
267
- else {
268
- if (this.tempOptions.length) {
269
- this.options = [...this.tempOptions];
270
- this.tempOptions = [];
271
- }
272
- }
273
- });
274
- }
275
- }
276
- /**
277
- * Subscribe to the form changes for field with the property 'subscribeToFormChanges'
278
- */
279
- subscribeToFormChanges() {
280
- this.form.valueChanges
281
- .pipe(takeUntil(this.unSubscribeSubject$))
282
- .subscribe(changes => {
283
- this.filterOptionsByRelatedFieldValue(changes);
284
- this.cd.markForCheck();
285
- });
286
- }
287
- loadOptionsFromStore(loadOptionFromStore) {
288
- const listKeys = loadOptionFromStore.split('.');
289
- this.store.select(state => {
290
- let selectedStore = state;
291
- listKeys.forEach(key => {
292
- selectedStore = selectedStore[key];
293
- });
294
- return selectedStore;
295
- })
296
- .pipe(filter((listItems) => !!listItems), takeUntil(this.unSubscribeSubject$))
297
- .subscribe((listItems) => {
298
- let newOptions = [];
299
- if (listItems && listItems?.items) {
300
- newOptions = listItems.items;
301
- }
302
- else if (listItems.list?.length) {
303
- newOptions = listItems.list;
304
- }
305
- else if (Array.isArray(listItems)) {
306
- newOptions = listItems;
307
- }
308
- newOptions = this.sortOptionItemsByName(newOptions);
309
- if (this.fieldData.options.nestedByField) {
310
- newOptions = this.groupItemsByNestedField(newOptions);
311
- }
312
- this.allOptions = newOptions;
313
- if (!this.fieldData.options.subscribeToFormChanges) {
314
- this.options = newOptions?.length ? newOptions.map(item => ({ id: item.id, name: item.name })) : [];
315
- }
316
- else {
317
- this.filterOptionsByRelatedFieldValue(this.form.value);
318
- }
319
- this.cd.markForCheck();
320
- this.fieldData.options.loading = false;
321
- });
322
- }
323
- /**
324
- * Filter option by the 'subscribeToFormChanges' property
325
- * @param data
326
- */
327
- filterOptionsByRelatedFieldValue(data) {
328
- const { relatedField, currentFieldProperty } = this.fieldData.options.subscribeToFormChanges;
329
- const relatedFieldValue = data[relatedField];
330
- let newOptions = [];
331
- if (Array.isArray(relatedFieldValue)) {
332
- if (relatedFieldValue?.length) {
333
- newOptions = this.allOptions.filter(item => relatedFieldValue.includes(item[currentFieldProperty]));
334
- }
335
- }
336
- else {
337
- newOptions = this.allOptions.filter(item => item[currentFieldProperty] === relatedFieldValue);
338
- }
339
- this.options = newOptions.map(item => ({ id: item.id, name: item.name }));
340
- }
341
- groupItemsByNestedField(items) {
342
- let newItems = [];
343
- items.filter(item => !item[this.fieldData.options.nestedByField])
344
- .forEach(item => {
345
- const newItem = { ...item };
346
- const subItems = this.groupItemsByNestedFieldRecursion(items, item.id);
347
- newItems.push(newItem);
348
- if (subItems?.length) {
349
- newItems = [...newItems, ...subItems];
350
- }
351
- });
352
- return newItems;
353
- }
354
- groupItemsByNestedFieldRecursion(items, parentId, prefix = '---') {
355
- const nestedByFieldName = this.fieldData.options.nestedByField;
356
- const findItems = items.filter(item => item[nestedByFieldName] === parentId);
357
- if (findItems?.length) {
358
- let newItems = [];
359
- findItems.forEach(item => {
360
- newItems.push({ ...item, name: `${prefix} ${item.name}` });
361
- const subItems = this.groupItemsByNestedFieldRecursion(items, item.id, prefix + '---');
362
- if (subItems?.length) {
363
- newItems = [...newItems, ...subItems];
364
- }
365
- });
366
- return newItems;
367
- }
368
- return null;
369
- }
370
- sortOptionItemsByName(items) {
371
- return [...items].sort((a, b) => {
372
- const field = a.name ? 'name' : 'title';
373
- if (a[field] > b[field])
374
- return 1;
375
- if (a[field] < b[field])
376
- return -1;
377
- return 0;
378
- });
379
- }
380
- }
381
- 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 });
382
- 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 });
383
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldSelectComponent, decorators: [{
384
- type: Component,
385
- 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"] }]
386
- }], ctorParameters: function () { return [{ type: i1$1.Store }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { fieldData: [{
387
- type: Input
388
- }], form: [{
389
- type: Input
390
- }] } });
391
-
392
- class FormFieldSlideToggleComponent {
393
- }
394
- FormFieldSlideToggleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldSlideToggleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
395
- 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 });
396
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldSlideToggleComponent, decorators: [{
397
- type: Component,
398
- 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" }]
399
- }], propDecorators: { fieldData: [{
400
- type: Input
401
- }], form: [{
402
- type: Input
403
- }] } });
404
-
405
- class SmartProgressBarComponent {
406
- constructor() {
407
- this.showValue = true;
408
- }
409
- }
410
- SmartProgressBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SmartProgressBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
411
- 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 });
412
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SmartProgressBarComponent, decorators: [{
413
- type: Component,
414
- 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"] }]
415
- }], propDecorators: { value: [{
416
- type: Input
417
- }], title: [{
418
- type: Input
419
- }], showValue: [{
420
- type: Input
421
- }] } });
422
-
423
- class FormMessageBoxComponent {
424
- constructor(cd, baseAutoFormService) {
425
- this.cd = cd;
426
- this.baseAutoFormService = baseAutoFormService;
427
- this.listErrors = [];
428
- this.invalidFieldValidStatus = 'INVALID';
429
- this.titleUpdate = 'Внимание! Для сохранение нужно исправить:';
430
- this.titleAdd = 'Внимание! Необходимо исправить:';
431
- this.unSubscribeSubject$ = new Subject();
432
- this.fullPrefix = '_FULL';
433
- }
434
- ngOnInit() {
435
- this.checkFormField();
436
- this.subscribeToFormStatus();
437
- this.title = this.form.value.id ? this.titleUpdate : this.titleAdd;
438
- }
439
- ngOnDestroy() {
440
- this.unSubscribeSubject$.next();
441
- this.unSubscribeSubject$.complete();
442
- }
443
- subscribeToFormStatus() {
444
- this.form.statusChanges
445
- .pipe(takeUntil(this.unSubscribeSubject$))
446
- .subscribe(() => {
447
- this.checkFormField();
448
- });
449
- }
450
- checkFormField() {
451
- this.listErrors = [];
452
- const fields = this.getPreparedFields();
453
- if (this.form.errors) {
454
- const formErrors = Object.keys(this.form.errors);
455
- if (formErrors.length) {
456
- formErrors.forEach(errorKey => {
457
- const message = this.getErrorMessage(errorKey);
458
- this.listErrors.push(message);
459
- });
460
- }
461
- }
462
- Object.keys(this.form.controls)
463
- .filter(controlKey => this.form.controls[controlKey].status === this.invalidFieldValidStatus)
464
- .forEach(controlKey => {
465
- const errors = this.form.controls[controlKey].errors;
466
- Object.keys(errors)
467
- .forEach(errorKey => {
468
- let message = this.getErrorMessage(errorKey, fields[controlKey]);
469
- if (errorKey === message && errors[errorKey]) {
470
- message = errors[errorKey];
471
- }
472
- this.listErrors.push(message);
473
- });
474
- });
475
- this.cd.markForCheck();
476
- }
477
- getPreparedFields() {
478
- const result = {};
479
- this.fields.forEach(fieldData => {
480
- result[fieldData.field] = fieldData;
481
- });
482
- return result;
483
- }
484
- ;
485
- getErrorMessage(errorKey, field) {
486
- let baseErrorMessage = '';
487
- if (ERRORS[errorKey]) {
488
- baseErrorMessage = ERRORS[errorKey] ? ERRORS[errorKey].message2 : '';
489
- }
490
- if (!baseErrorMessage && this.errorMessageTexts && this.errorMessageTexts[errorKey]) {
491
- baseErrorMessage = this.errorMessageTexts[`${errorKey}${this.fullPrefix}`] || this.errorMessageTexts[errorKey];
492
- }
493
- if (!baseErrorMessage) {
494
- baseErrorMessage = errorKey;
495
- }
496
- return this.baseAutoFormService.prepareFieldError(baseErrorMessage, {
497
- ['field']: field?.title,
498
- });
499
- }
500
- }
501
- 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 });
502
- 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 });
503
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormMessageBoxComponent, decorators: [{
504
- type: Component,
505
- 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" }]
506
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1$3.BaseAutoFormService }]; }, propDecorators: { form: [{
507
- type: Input
508
- }], fields: [{
509
- type: Input
510
- }], errorMessageTexts: [{
511
- type: Input
512
- }] } });
513
-
514
- /**
515
- * Icon component.
516
- * Add svg icon to any place.
517
- * By default it uses size and color of host element or you can set predefined values by settings inputs size and color
518
- *
519
- * Usage:
520
- * ````
521
- * <shared-ui-icon icon="add"></app-ui-icon>
522
- * <shared-ui-icon icon="add" size="xs" color="primary"></app-ui-icon>
523
- * ````
524
- */
525
- class IconComponent {
526
- constructor() {
527
- this.size = 'normal';
528
- this.color = 'inherit';
529
- this.iconSize = 's-22';
530
- }
531
- ngOnChanges(changes) {
532
- if (this.size === 'normal') {
533
- this.iconSize = `s-22`;
534
- }
535
- if (this.size === 'small') {
536
- this.iconSize = `s-18`;
537
- }
538
- }
539
- }
540
- IconComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
541
- 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 });
542
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: IconComponent, decorators: [{
543
- type: Component,
544
- 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"] }]
545
- }], propDecorators: { icon: [{
546
- type: Input
547
- }], size: [{
548
- type: Input
549
- }], color: [{
550
- type: Input
551
- }] } });
552
-
553
- class ButtonComponent {
554
- constructor() {
555
- this.icon = '';
556
- this.rightIcon = '';
557
- this.disabled = false;
558
- this.loading = false;
559
- this.active = false;
560
- this.stopPropagation = false;
561
- this.type = 'button';
562
- this.color = '';
563
- this.size = 'normal';
564
- this.styleTheme = 'basic';
565
- this.tooltipPosition = 'above';
566
- this.clickButton = new EventEmitter();
567
- this.context = { size: 'normal', iconSize: 'normal', disabled: false };
568
- this.spinnerDiameter = 30;
569
- }
570
- ngOnInit() {
571
- this.context.buttonIconSize = this.iconSize ? this.iconSize : this.size;
572
- this.calculateSpinnerDiameter();
573
- }
574
- ngOnChanges(changes) {
575
- if (changes['loading']) {
576
- this.context.loading = changes['loading'].currentValue;
577
- }
578
- if (changes['iconColor'] && changes['iconColor'].currentValue) {
579
- this.context.iconColor = changes['iconColor'].currentValue;
580
- }
581
- if (changes['color'] && changes['color'].currentValue) {
582
- this.context.color = changes['color'].currentValue;
583
- }
584
- if (changes['buttonIconSize'] && changes['buttonIconSize'].currentValue) {
585
- this.context.buttonIconSize = changes['buttonIconSize'].currentValue;
586
- }
587
- if (changes['icon'] && changes['icon'].currentValue) {
588
- this.context.icon = changes['icon'].currentValue;
589
- }
590
- if (changes['disabled'] && changes['disabled'].currentValue) {
591
- this.context.disabled = changes['disabled'].currentValue;
592
- }
593
- }
594
- calculateSpinnerDiameter() {
595
- switch (this.size) {
596
- case 'normal':
597
- this.spinnerDiameter = 30;
598
- break;
599
- }
600
- }
601
- onClick(evt) {
602
- if (this.stopPropagation) {
603
- evt.preventDefault();
604
- evt.stopPropagation();
605
- }
606
- if (!this.disabled) {
607
- this.clickButton.emit(true);
608
- }
609
- }
610
- }
611
- ButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
612
- 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: [
613
- trigger('spinnerAnimation', [
614
- transition(':enter', [
615
- animate('300ms', keyframes([
616
- style({ opacity: 0, transform: 'translateY(-10px)', offset: 0 }),
617
- style({ opacity: 1, transform: 'translateY(0)', offset: 1 }),
618
- ]))
619
- ]),
620
- transition(':leave', [
621
- animate('200ms', keyframes([
622
- style({ opacity: 1, transform: 'translateY(0)', offset: 0 }),
623
- style({ opacity: 0, transform: 'translateY(-10px)', offset: 1 }),
624
- ]))
625
- ])
626
- ]),
627
- appearOpacity
628
- ], changeDetection: i0.ChangeDetectionStrategy.OnPush });
629
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ButtonComponent, decorators: [{
630
- type: Component,
631
- args: [{ selector: 'shared-button', changeDetection: ChangeDetectionStrategy.OnPush, animations: [
632
- trigger('spinnerAnimation', [
633
- transition(':enter', [
634
- animate('300ms', keyframes([
635
- style({ opacity: 0, transform: 'translateY(-10px)', offset: 0 }),
636
- style({ opacity: 1, transform: 'translateY(0)', offset: 1 }),
637
- ]))
638
- ]),
639
- transition(':leave', [
640
- animate('200ms', keyframes([
641
- style({ opacity: 1, transform: 'translateY(0)', offset: 0 }),
642
- style({ opacity: 0, transform: 'translateY(-10px)', offset: 1 }),
643
- ]))
644
- ])
645
- ]),
646
- appearOpacity
647
- ], 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"] }]
648
- }], ctorParameters: function () { return []; }, propDecorators: { icon: [{
649
- type: Input
650
- }], iconColor: [{
651
- type: Input
652
- }], iconSize: [{
653
- type: Input
654
- }], rightIcon: [{
655
- type: Input
656
- }], disabled: [{
657
- type: Input
658
- }], loading: [{
659
- type: Input
660
- }], active: [{
661
- type: Input
662
- }], stopPropagation: [{
663
- type: Input
664
- }], type: [{
665
- type: Input
666
- }], color: [{
667
- type: Input
668
- }], size: [{
669
- type: Input
670
- }], styleTheme: [{
671
- type: Input
672
- }], tooltip: [{
673
- type: Input
674
- }], tooltipPosition: [{
675
- type: Input
676
- }], clickButton: [{
677
- type: Output
678
- }] } });
679
-
680
- class PublicationMessagesComponent {
681
- constructor(publicationMessagesFacade, autoFormService, cd) {
682
- this.publicationMessagesFacade = publicationMessagesFacade;
683
- this.autoFormService = autoFormService;
684
- this.cd = cd;
685
- this.config = { needToPublish: true };
686
- this.scrollToField = new EventEmitter();
687
- this.errorOpened = false;
688
- this.messagesOpened = false;
689
- this.publishedTitle = 'Позиция опубликована до';
690
- this.unPublishedTitle = 'Внимание позиция еще НЕ опубликована';
691
- this.unPublishedMessage = 'Для публикации позиции нужно заполнить все поля и нажать на кнопку ОПУБЛИКОВАТЬ';
692
- this.errorTitleSource = 'Для публикации Вам обязательно нужно исправить <b>${pointCount}</b> пункт(а/ов)';
693
- this.recommendationTitleSource = 'Мы также рекомендуем Вам исправить <b>${pointCount}</b> пункт(а/ов)';
694
- this.errorTitle = '';
695
- this.recommendationTitle = '';
696
- this.publishErrorConstants = PublishErrors;
697
- this.itemPublishFinishedField = 'publishFinishedAt';
698
- this.itemPublishFinishedAt = '';
699
- this.itemPublishFinishedAtTmp = '';
700
- }
701
- ngOnInit() {
702
- this.subscribeToFormChanges();
703
- this.definitionPublicationMessages();
704
- }
705
- ngOnDestroy() {
706
- }
707
- ngOnChanges(changes) {
708
- if (changes?.form?.currentValue.value[this.itemPublishFinishedField]) {
709
- this.updateItemPublishFinishAt(changes.form.currentValue.value[this.itemPublishFinishedField]);
710
- }
711
- }
712
- showScrollToFieldMethod(field) {
713
- this.scrollToField.emit(field);
714
- }
715
- subscribeToFormChanges() {
716
- this.form.valueChanges
717
- .pipe(untilComponentDestroyed(this))
718
- .subscribe((data) => {
719
- this.updateItemPublishFinishAt(data?.publishFinishedAt);
720
- });
721
- }
722
- updateItemPublishFinishAt(itemPublishFinishedAt) {
723
- if (this.itemPublishFinishedAtTmp !== itemPublishFinishedAt) {
724
- this.itemPublishFinishedAt = itemPublishFinishedAt;
725
- this.itemPublishFinishedAtTmp = itemPublishFinishedAt;
726
- this.cd.markForCheck();
727
- }
728
- }
729
- definitionPublicationMessages() {
730
- if (typeof this.entity === 'string') {
731
- this.publicationMessagesFacade.getPublicationMessage(this.entity?.toLowerCase(), this.itemId)
732
- .pipe(untilComponentDestroyed(this))
733
- .subscribe((messages) => {
734
- if (messages?.length) {
735
- const tmpErrors = this.filterMessages(true, messages);
736
- this.errors = this.prepareErrors(tmpErrors);
737
- const tmpRecommendation = this.filterMessages(false, messages);
738
- this.recommendation = this.prepareErrors(tmpRecommendation);
739
- if (this.errors.length) {
740
- this.errorTitle = this.errorTitleSource.replace('${pointCount}', String(this.errors.length));
741
- }
742
- if (this.recommendation.length) {
743
- this.recommendationTitle = this.recommendationTitleSource.replace('${pointCount}', String(this.recommendation.length));
744
- }
745
- }
746
- else {
747
- this.errors = [];
748
- this.recommendation = [];
749
- }
750
- this.cd.markForCheck();
751
- });
752
- }
753
- else {
754
- console.error('[ publish-messages ][ entity-type ]', { entity: this.entity }, 'INCORRECT_ENTITY_TYPE');
755
- }
756
- }
757
- filterMessages(error = false, messages) {
758
- return messages.filter(item => item.isError === error);
759
- }
760
- toggleExpand(isError = false) {
761
- if (isError) {
762
- this.errorOpened = !this.errorOpened;
763
- }
764
- else {
765
- this.messagesOpened = !this.messagesOpened;
766
- }
767
- this.cd.markForCheck();
768
- }
769
- truckByField(index, item) {
770
- return item.field;
771
- }
772
- prepareErrors(messages) {
773
- return this.autoFormService.prepareFormFieldPublicationMessage(messages, this.publishErrorConstants, this.fields);
774
- }
775
- }
776
- 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 });
777
- 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 });
778
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PublicationMessagesComponent, decorators: [{
779
- type: Component,
780
- 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"] }]
781
- }], ctorParameters: function () { return [{ type: i1$4.PublicationMessagesFacade }, { type: i2$2.AutoFormService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { entity: [{
782
- type: Input
783
- }], form: [{
784
- type: Input
785
- }], itemId: [{
786
- type: Input
787
- }], fields: [{
788
- type: Input
789
- }], config: [{
790
- type: Input
791
- }], scrollToField: [{
792
- type: Output
793
- }] } });
794
-
795
- class AutoFormMainComponent {
796
- constructor(formErrors, formsFacade, publicationMessagesFacade, authenticationService, cd) {
797
- this.formErrors = formErrors;
798
- this.formsFacade = formsFacade;
799
- this.publicationMessagesFacade = publicationMessagesFacade;
800
- this.authenticationService = authenticationService;
801
- this.cd = cd;
802
- this.showPublicationMessages = false;
803
- this.editorImageUploadUrl = '';
804
- this.havePublication = true;
805
- this.config = { needToPublish: true };
806
- this.changed = new EventEmitter();
807
- this.formCompleted = new EventEmitter();
808
- this.unSubscribeSubject$ = new Subject();
809
- this.object_ = Object;
810
- this.dataStored = false;
811
- this.dataStoredTitle = 'Данные сохранены';
812
- this.formSaveErrorKey = 'FORM_SAVE_ERROR';
813
- this.groupsState = {};
814
- }
815
- ngOnInit() {
816
- if (this.itemId) {
817
- this.dataStored = true;
818
- }
819
- this.storedFormValue = this.form.value;
820
- this.groupFields();
821
- this.subscribeToFormErrors();
822
- this.subscribeToFormStatus();
823
- this.subscribeToFormChanges();
824
- this.subscribeToPublicationMessages();
825
- }
826
- ngOnDestroy() {
827
- this.unSubscribeSubject$.next();
828
- this.unSubscribeSubject$.complete();
829
- }
830
- groupFields() {
831
- this.groupedFields = {};
832
- this.fields.filter(formField => !formField.options?.notEditable)
833
- .forEach(formField => {
834
- const groupName = formField.options?.groupName || '';
835
- if (!this.groupedFields[groupName]) {
836
- this.groupedFields[groupName] = [];
837
- }
838
- this.groupedFields[groupName].push({ ...formField });
839
- });
840
- Object.keys(this.groupedFields)?.forEach((group, index) => {
841
- this.groupsState[group] = index === 0;
842
- });
843
- }
844
- truckByFieldName(index, item) {
845
- return item.field;
846
- }
847
- scrollToField(field) {
848
- const fieldGroup = this.fields.find(item => item.field === field)?.options.groupName;
849
- this.groupsState[fieldGroup] = 1;
850
- setTimeout(() => {
851
- let el = document.getElementById(`field-${field}`);
852
- el.scrollIntoView();
853
- }, 0);
854
- }
855
- subscribeToFormErrors() {
856
- this.formErrors.getFormErrors(this.formId)
857
- .pipe(takeUntil(this.unSubscribeSubject$), filter((errors) => !!(errors && errors.length)))
858
- .subscribe((errors) => {
859
- if (errors && errors.length) {
860
- errors.forEach(error => {
861
- const { field, code } = error;
862
- if (field && code) {
863
- const control = this.form.get(field);
864
- if (control) {
865
- const codeUpperCase = code.toUpperCase();
866
- control.setErrors({ [codeUpperCase]: codeUpperCase });
867
- control.markAsDirty();
868
- control.markAsTouched();
869
- }
870
- }
871
- });
872
- this.cd.markForCheck();
873
- }
874
- });
875
- }
876
- subscribeToFormStatus() {
877
- this.formsFacade.initForm({
878
- formId: this.formId,
879
- loading: false
880
- });
881
- this.formsFacade.getForm(this.formId)
882
- .pipe(takeUntil(this.unSubscribeSubject$))
883
- .subscribe((form) => {
884
- if (form.isComplete) {
885
- this.formCompleted.emit({ newId: form.data.itemId });
886
- }
887
- if (form && form.isComplete) {
888
- if (!form.hasError) {
889
- this.dataStored = true;
890
- }
891
- else {
892
- this.form.setErrors({ [this.formSaveErrorKey]: this.formSaveErrorKey });
893
- }
894
- this.cd.markForCheck();
895
- }
896
- });
897
- }
898
- subscribeToFormChanges() {
899
- this.form.valueChanges
900
- .pipe(takeUntil(this.unSubscribeSubject$))
901
- .subscribe((formValue) => {
902
- const areEquals = this.areObjectsEquals(formValue, this.storedFormValue);
903
- if (!areEquals) {
904
- this.storedFormValue = formValue;
905
- }
906
- this.dataStored = areEquals;
907
- this.changed.emit({ valueChanged: !areEquals });
908
- });
909
- }
910
- groupClick(groupName) {
911
- this.groupsState[groupName] = !this.groupsState[groupName];
912
- }
913
- areObjectsEquals(a, b) {
914
- return Object.keys(a)
915
- .every(field => {
916
- let theyEqual;
917
- if (isObject(a[field])) {
918
- if (isObject(b[field])) {
919
- theyEqual = this.areObjectsEquals(a[field], b[field]);
920
- }
921
- else {
922
- theyEqual = false;
923
- }
924
- }
925
- else {
926
- theyEqual = a[field] === b[field];
927
- }
928
- return theyEqual;
929
- });
930
- }
931
- subscribeToPublicationMessages() {
932
- if (this.itemId) {
933
- this.publicationMessagesFacade.getPublicationMessage(this.entity, this.itemId)
934
- .pipe(takeUntil(this.unSubscribeSubject$))
935
- .subscribe((publicationMessages) => {
936
- this.allPublicationMessages = publicationMessages;
937
- });
938
- }
939
- }
940
- }
941
- 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 });
942
- 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 });
943
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AutoFormMainComponent, decorators: [{
944
- type: Component,
945
- 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"] }]
946
- }], ctorParameters: function () { return [{ type: i1$5.FormErrorsFacade }, { type: i2$3.FormsFacade }, { type: i1$4.PublicationMessagesFacade }, { type: i4$2.AuthenticationService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { fields: [{
947
- type: Input
948
- }], itemId: [{
949
- type: Input
950
- }], formId: [{
951
- type: Input
952
- }], showPublicationMessages: [{
953
- type: Input
954
- }], form: [{
955
- type: Input
956
- }], editorImageUploadUrl: [{
957
- type: Input
958
- }], errorMessageTexts: [{
959
- type: Input
960
- }], entity: [{
961
- type: Input
962
- }], havePublication: [{
963
- type: Input
964
- }], config: [{
965
- type: Input
966
- }], changed: [{
967
- type: Output
968
- }], formCompleted: [{
969
- type: Output
970
- }] } });
971
-
972
- class FormFieldInputComponent {
973
- constructor(cd) {
974
- this.cd = cd;
975
- this.pendingStatus = 'PENDING';
976
- this.inputType = InputType.Text;
977
- this.inputMask = null;
978
- this.placeholder = '';
979
- }
980
- ngOnInit() {
981
- this.checkInputType();
982
- this.checkInputMask();
983
- this.subscribeToFieldStatus();
984
- }
985
- ngOnDestroy() {
986
- }
987
- subscribeToFieldStatus() {
988
- this.form.get(this.fieldData.field).statusChanges
989
- .pipe(untilComponentDestroyed(this))
990
- .subscribe((data) => {
991
- this.cd.markForCheck();
992
- });
993
- }
994
- checkInputType() {
995
- switch (this.fieldData.options.format) {
996
- case IFormFieldFormat.Email:
997
- this.inputType = InputType.Email;
998
- break;
999
- case IFormFieldFormat.Phone:
1000
- this.inputType = InputType.Tel;
1001
- break;
1002
- case IFormFieldFormat.Number:
1003
- this.inputType = InputType.Number;
1004
- break;
1005
- case IFormFieldFormat.Password:
1006
- this.inputType = InputType.Password;
1007
- break;
1008
- default:
1009
- this.inputType = InputType.Text;
1010
- }
1011
- }
1012
- checkInputMask() {
1013
- this.placeholder = this.fieldData.options.placeholder;
1014
- switch (this.fieldData.options.format) {
1015
- case IFormFieldFormat.Phone:
1016
- this.inputMask = '+0(0000)000-00-00';
1017
- this.placeholder = '+0(0000)000-00-00';
1018
- break;
1019
- }
1020
- }
1021
- }
1022
- FormFieldInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldInputComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
1023
- 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 });
1024
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldInputComponent, decorators: [{
1025
- type: Component,
1026
- 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"] }]
1027
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { fieldData: [{
1028
- type: Input
1029
- }], form: [{
1030
- type: Input
1031
- }], input: [{
1032
- type: ViewChild,
1033
- args: ['input', { static: false }]
1034
- }] } });
1035
-
1036
- class AutoFormModule {
1037
- }
1038
- AutoFormModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AutoFormModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1039
- AutoFormModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: AutoFormModule, declarations: [FormFieldComponent,
1040
- FormFieldSpinnerComponent,
1041
- FormFieldSelectComponent,
1042
- FormFieldSelectShowComponent,
1043
- FormFieldSlideToggleComponent,
1044
- AutoFormMainComponent,
1045
- AutoFormShowComponent$1,
1046
- AutoFormShowFieldComponent,
1047
- FormFieldInputComponent,
1048
- FormMessageBoxComponent,
1049
- FormFieldFileComponent,
1050
- FormFieldFilesComponent,
1051
- FormFieldFileShowComponent,
1052
- FormFieldSlideToggleShowComponent,
1053
- FormFieldInputShowComponent,
1054
- FormFieldFilesShowComponent,
1055
- PublicationMessagesComponent,
1056
- FormFieldTagsComponent], imports: [CommonModule,
1057
- FormFieldErrorModule,
1058
- FormFieldPublishErrorModule$1,
1059
- MatFormFieldModule,
1060
- MatInputModule,
1061
- MatSlideToggleModule,
1062
- MatSelectModule,
1063
- FormsModule,
1064
- SharedSpinnerModule$1,
1065
- ReactiveFormsModule,
1066
- FlexModule,
1067
- NgxMaskModule,
1068
- MatIconModule,
1069
- MatTooltipModule,
1070
- CKEditorModule,
1071
- FilesUploadModule$1,
1072
- ImageModule$1,
1073
- PanelModule$1,
1074
- ButtonModule$1,
1075
- SmartProgressBarModule$1,
1076
- StarRatingModule$1,
1077
- MatChipsModule,
1078
- MatAutocompleteModule,
1079
- NgxMatSelectSearchModule], exports: [AutoFormMainComponent,
1080
- AutoFormShowComponent$1] });
1081
- AutoFormModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AutoFormModule, imports: [CommonModule,
1082
- FormFieldErrorModule,
1083
- FormFieldPublishErrorModule$1,
1084
- MatFormFieldModule,
1085
- MatInputModule,
1086
- MatSlideToggleModule,
1087
- MatSelectModule,
1088
- FormsModule,
1089
- SharedSpinnerModule$1,
1090
- ReactiveFormsModule,
1091
- FlexModule,
1092
- NgxMaskModule,
1093
- MatIconModule,
1094
- MatTooltipModule,
1095
- CKEditorModule,
1096
- FilesUploadModule$1,
1097
- ImageModule$1,
1098
- PanelModule$1,
1099
- ButtonModule$1,
1100
- SmartProgressBarModule$1,
1101
- StarRatingModule$1,
1102
- MatChipsModule,
1103
- MatAutocompleteModule,
1104
- NgxMatSelectSearchModule] });
1105
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AutoFormModule, decorators: [{
1106
- type: NgModule,
1107
- args: [{
1108
- declarations: [
1109
- FormFieldComponent,
1110
- FormFieldSpinnerComponent,
1111
- FormFieldSelectComponent,
1112
- FormFieldSelectShowComponent,
1113
- FormFieldSlideToggleComponent,
1114
- AutoFormMainComponent,
1115
- AutoFormShowComponent$1,
1116
- AutoFormShowFieldComponent,
1117
- FormFieldInputComponent,
1118
- FormMessageBoxComponent,
1119
- FormFieldFileComponent,
1120
- FormFieldFilesComponent,
1121
- FormFieldFileShowComponent,
1122
- FormFieldSlideToggleShowComponent,
1123
- FormFieldInputShowComponent,
1124
- FormFieldFilesShowComponent,
1125
- PublicationMessagesComponent,
1126
- FormFieldTagsComponent
1127
- ],
1128
- imports: [
1129
- CommonModule,
1130
- FormFieldErrorModule,
1131
- FormFieldPublishErrorModule$1,
1132
- MatFormFieldModule,
1133
- MatInputModule,
1134
- MatSlideToggleModule,
1135
- MatSelectModule,
1136
- FormsModule,
1137
- SharedSpinnerModule$1,
1138
- ReactiveFormsModule,
1139
- FlexModule,
1140
- NgxMaskModule,
1141
- MatIconModule,
1142
- MatTooltipModule,
1143
- CKEditorModule,
1144
- FilesUploadModule$1,
1145
- ImageModule$1,
1146
- PanelModule$1,
1147
- ButtonModule$1,
1148
- SmartProgressBarModule$1,
1149
- StarRatingModule$1,
1150
- MatChipsModule,
1151
- MatAutocompleteModule,
1152
- NgxMatSelectSearchModule,
1153
- ],
1154
- exports: [
1155
- AutoFormMainComponent,
1156
- AutoFormShowComponent$1
1157
- ]
1158
- }]
1159
- }] });
1160
-
1161
- class AutoFormShowComponent {
1162
- constructor() {
1163
- this.fieldGrouped = false;
1164
- this.object_ = Object;
1165
- }
1166
- ngOnInit() {
1167
- }
1168
- ngOnChanges(changes) {
1169
- if (changes.fields) {
1170
- this.groupFields();
1171
- }
1172
- }
1173
- truckByFieldName(index, item) {
1174
- return item.field;
1175
- }
1176
- groupFields() {
1177
- if (!this.fieldGrouped) {
1178
- this.groupedFields = {};
1179
- this.fields.forEach(formField => {
1180
- const groupName = formField.options.groupName || '';
1181
- if (!this.groupedFields[groupName]) {
1182
- this.groupedFields[groupName] = [];
1183
- }
1184
- this.groupedFields[groupName].push({ ...formField });
1185
- });
1186
- this.fieldGrouped = true;
1187
- }
1188
- }
1189
- }
1190
- AutoFormShowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AutoFormShowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1191
- 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 });
1192
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AutoFormShowComponent, decorators: [{
1193
- type: Component,
1194
- 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"] }]
1195
- }], propDecorators: { fields: [{
1196
- type: Input
1197
- }], data: [{
1198
- type: Input
1199
- }], entityId: [{
1200
- type: Input
1201
- }], entitySection: [{
1202
- type: Input
1203
- }] } });
1204
-
1205
- class BreadCrumbsComponent {
1206
- constructor() { }
1207
- ngOnInit() {
1208
- }
1209
- }
1210
- BreadCrumbsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BreadCrumbsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1211
- 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: i3$2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1212
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BreadCrumbsComponent, decorators: [{
1213
- type: Component,
1214
- 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"] }]
1215
- }], ctorParameters: function () { return []; }, propDecorators: { list: [{
1216
- type: Input
1217
- }] } });
1218
-
1219
- class BreadCrumbsModule {
1220
- }
1221
- BreadCrumbsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BreadCrumbsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1222
- BreadCrumbsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: BreadCrumbsModule, declarations: [BreadCrumbsComponent], imports: [CommonModule, RouterModule], exports: [CommonModule, BreadCrumbsComponent] });
1223
- BreadCrumbsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BreadCrumbsModule, imports: [CommonModule, RouterModule, CommonModule] });
1224
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: BreadCrumbsModule, decorators: [{
1225
- type: NgModule,
1226
- args: [{
1227
- declarations: [BreadCrumbsComponent],
1228
- imports: [CommonModule, RouterModule],
1229
- exports: [CommonModule, BreadCrumbsComponent]
1230
- }]
1231
- }] });
1232
-
1233
- class ButtonModule {
1234
- }
1235
- ButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1236
- ButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ButtonModule, declarations: [ButtonComponent], imports: [CommonModule,
1237
- FormsModule,
1238
- MatTooltipModule,
1239
- SharedIconModule$1,
1240
- SharedSpinnerModule$1,
1241
- MatButtonModule], exports: [ButtonComponent] });
1242
- ButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ButtonModule, imports: [CommonModule,
1243
- FormsModule,
1244
- MatTooltipModule,
1245
- SharedIconModule$1,
1246
- SharedSpinnerModule$1,
1247
- MatButtonModule] });
1248
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ButtonModule, decorators: [{
1249
- type: NgModule,
1250
- args: [{
1251
- imports: [
1252
- CommonModule,
1253
- FormsModule,
1254
- MatTooltipModule,
1255
- SharedIconModule$1,
1256
- SharedSpinnerModule$1,
1257
- MatButtonModule
1258
- ],
1259
- declarations: [ButtonComponent],
1260
- exports: [ButtonComponent]
1261
- }]
1262
- }] });
1263
-
1264
- class ChipsInputComponent {
1265
- constructor() {
1266
- this.items = [];
1267
- this.selectedItems = [];
1268
- this.changedList = new EventEmitter();
1269
- this.changedText = new EventEmitter();
1270
- this.visible = true;
1271
- this.selectable = true;
1272
- this.removable = true;
1273
- this.addOnBlur = true;
1274
- this.separatorKeysCodes = [ENTER, COMMA];
1275
- this.itemsCtrl = new UntypedFormControl();
1276
- this.filteredItems = this.itemsCtrl.valueChanges.pipe(startWith(null), map((item) => {
1277
- this.changedText.emit(item);
1278
- if (this.items) {
1279
- return item ? this._filter(item) : this.items.slice();
1280
- }
1281
- return [];
1282
- }));
1283
- }
1284
- add(event) {
1285
- // Add item only when MatAutocomplete is not open
1286
- // To make sure this does not conflict with OptionSelected Event
1287
- if (!this.matAutocomplete.isOpen) {
1288
- const input = event.input;
1289
- const value = event.value;
1290
- // Add our item
1291
- if ((value || '').trim()) {
1292
- this.selectedItems.push({ id: 3, title: value.trim() });
1293
- this.changedList.emit(this.selectedItems);
1294
- }
1295
- // Reset the input value
1296
- if (input) {
1297
- input.value = '';
1298
- }
1299
- this.itemsCtrl.setValue(null);
1300
- }
1301
- }
1302
- remove(item) {
1303
- this.selectedItems = this.selectedItems.filter(SItem => SItem.id !== item.id);
1304
- this.changedList.emit(this.selectedItems);
1305
- }
1306
- selected(event) {
1307
- this.selectedItems.push({ id: 1, title: event.option.viewValue });
1308
- this.itemInput.nativeElement.value = '';
1309
- this.itemsCtrl.setValue(null);
1310
- this.changedList.emit(this.selectedItems);
1311
- }
1312
- _filter(value) {
1313
- if (typeof value === 'string') {
1314
- return this.items.filter(itemFilter => itemFilter.title.indexOf(value) === 0);
1315
- }
1316
- else {
1317
- return this.items.filter(itemFilter => {
1318
- return itemFilter.id !== value.id;
1319
- });
1320
- }
1321
- }
1322
- }
1323
- ChipsInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChipsInputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1324
- 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"] });
1325
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChipsInputComponent, decorators: [{
1326
- type: Component,
1327
- 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"] }]
1328
- }], ctorParameters: function () { return []; }, propDecorators: { title: [{
1329
- type: Input
1330
- }], items: [{
1331
- type: Input
1332
- }], selectedItems: [{
1333
- type: Input
1334
- }], changedList: [{
1335
- type: Output
1336
- }], changedText: [{
1337
- type: Output
1338
- }], itemInput: [{
1339
- type: ViewChild,
1340
- args: ['itemInput', { static: false }]
1341
- }], matAutocomplete: [{
1342
- type: ViewChild,
1343
- args: ['auto', { static: false }]
1344
- }] } });
1345
-
1346
- class ChipsInputModule {
1347
- }
1348
- ChipsInputModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChipsInputModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1349
- ChipsInputModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ChipsInputModule, declarations: [ChipsInputComponent], imports: [CommonModule,
1350
- MatFormFieldModule,
1351
- MatChipsModule,
1352
- MatAutocompleteModule,
1353
- MatIconModule,
1354
- ReactiveFormsModule,
1355
- MatLegacyChipsModule], exports: [ChipsInputComponent] });
1356
- ChipsInputModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChipsInputModule, imports: [CommonModule,
1357
- MatFormFieldModule,
1358
- MatChipsModule,
1359
- MatAutocompleteModule,
1360
- MatIconModule,
1361
- ReactiveFormsModule,
1362
- MatLegacyChipsModule] });
1363
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ChipsInputModule, decorators: [{
1364
- type: NgModule,
1365
- args: [{
1366
- declarations: [ChipsInputComponent],
1367
- exports: [ChipsInputComponent],
1368
- imports: [
1369
- CommonModule,
1370
- MatFormFieldModule,
1371
- MatChipsModule,
1372
- MatAutocompleteModule,
1373
- MatIconModule,
1374
- ReactiveFormsModule,
1375
- MatLegacyChipsModule
1376
- ]
1377
- }]
1378
- }] });
1379
-
1380
- class FileListCardComponent {
1381
- constructor(filesFacade, notificationsFacade, dialogService, cd, requestsFacade) {
1382
- this.filesFacade = filesFacade;
1383
- this.notificationsFacade = notificationsFacade;
1384
- this.dialogService = dialogService;
1385
- this.cd = cd;
1386
- this.requestsFacade = requestsFacade;
1387
- this.requestStatus = RequestStatus;
1388
- this.ModeSort = FileListModeSort$1;
1389
- this.edit = false;
1390
- this.filesKey = 'files';
1391
- this.firstRequest = true;
1392
- this.allMethods = '*';
1393
- this.loading = false;
1394
- this.messages = {
1395
- ATTENTION: 'Внимание',
1396
- TITLE_SAVED: 'Заголовок успешно сохранен'
1397
- };
1398
- }
1399
- ngOnInit() {
1400
- }
1401
- ngOnDestroy() {
1402
- this.requestsFacade.deleteRequestWaiter(this.filesKey, this.allMethods, this.file.id);
1403
- this.loading = false;
1404
- }
1405
- ngOnChanges(changes) {
1406
- }
1407
- changeTitle(event) {
1408
- this.currentValue = event.target.value?.trim();
1409
- }
1410
- saveTitle(file) {
1411
- if (this.currentValue !== file.title) {
1412
- this.initRequest();
1413
- this.fileUpdate(file.id, { title: this.currentValue });
1414
- }
1415
- else {
1416
- this.sendNotification(file);
1417
- }
1418
- }
1419
- sendNotification(file) {
1420
- const rand = Math.random();
1421
- this.notificationsFacade.addNotifications({
1422
- id: `file-card-${file.id}-${rand}`,
1423
- type: 'success',
1424
- text: this.messages.TITLE_SAVED,
1425
- title: this.messages.ATTENTION
1426
- });
1427
- }
1428
- fileUpdate(id, params) {
1429
- this.filesFacade.filesUpdate({ ...params, id, section: this.section, itemId: this.itemId });
1430
- }
1431
- fileDelete(id) {
1432
- this.dialogService.openDeleteDialog()
1433
- .pipe(untilComponentDestroyed(this))
1434
- .subscribe((result) => {
1435
- if (result) {
1436
- this.initRequest();
1437
- this.filesFacade.filesDelete(id);
1438
- }
1439
- });
1440
- }
1441
- setMain(id, main) {
1442
- if (!main) {
1443
- this.initRequest();
1444
- this.fileUpdate(id, { main: true });
1445
- }
1446
- }
1447
- editFile() {
1448
- this.edit = true;
1449
- this.cd.markForCheck();
1450
- }
1451
- subscribeToRequest() {
1452
- this.request$
1453
- .pipe(untilComponentDestroyed(this))
1454
- .subscribe(data => {
1455
- if (this.currentStatus !== data.status) {
1456
- if (data.status === this.requestStatus.LOADING) {
1457
- this.loading = true;
1458
- this.edit = false;
1459
- }
1460
- if (data.status === this.requestStatus.LOADED) {
1461
- this.loading = false;
1462
- this.edit = false;
1463
- }
1464
- this.currentStatus = data.status;
1465
- this.cd.markForCheck();
1466
- }
1467
- });
1468
- }
1469
- initRequest() {
1470
- if (this.firstRequest) {
1471
- this.requestsFacade.createRequestListener(this.filesKey, this.allMethods, this.file.id);
1472
- this.request$ = this.requestsFacade.getRequestUpdates(this.filesKey, this.allMethods, this.file.id);
1473
- this.subscribeToRequest();
1474
- this.firstRequest = false;
1475
- }
1476
- }
1477
- }
1478
- FileListCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FileListCardComponent, deps: [{ token: i1$6.FilesFacade }, { token: i2$5.NotificationsFacade }, { token: i3$3.DialogService }, { token: i0.ChangeDetectorRef }, { token: i4$3.RequestsFacade }], target: i0.ɵɵFactoryTarget.Component });
1479
- 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 });
1480
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FileListCardComponent, decorators: [{
1481
- type: Component,
1482
- 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"] }]
1483
- }], ctorParameters: function () { return [{ type: i1$6.FilesFacade }, { type: i2$5.NotificationsFacade }, { type: i3$3.DialogService }, { type: i0.ChangeDetectorRef }, { type: i4$3.RequestsFacade }]; }, propDecorators: { file: [{
1484
- type: Input
1485
- }], section: [{
1486
- type: Input
1487
- }], itemId: [{
1488
- type: Input
1489
- }], mode: [{
1490
- type: Input
1491
- }] } });
1492
-
1493
- class FilesUploadListImagesComponent {
1494
- constructor(filesFacade) {
1495
- this.filesFacade = filesFacade;
1496
- this.mode = FileListModeList$1;
1497
- this.changeSort = new EventEmitter();
1498
- this.loaded = false;
1499
- this.trackById = trackById;
1500
- this.storedFirstSorting = [];
1501
- }
1502
- ngOnInit() {
1503
- this.getFiles();
1504
- }
1505
- ngOnDestroy() {
1506
- }
1507
- getFiles() {
1508
- this.files$ = this.filesFacade.getFiles({
1509
- itemId: this.itemId,
1510
- section: this.section,
1511
- type: this.filesType
1512
- })
1513
- .pipe(map((files) => {
1514
- if (files && files.length) {
1515
- this.files = files.sort(this.sortFiles);
1516
- this.storedFirstSorting = this.saveFirstSorting(this.files);
1517
- return this.prepareFiles(files);
1518
- }
1519
- return files;
1520
- }), untilComponentDestroyed(this));
1521
- }
1522
- saveFirstSorting(files) {
1523
- return files.map((item, order) => ({ id: item.id, order }));
1524
- }
1525
- sortFiles(a, b) {
1526
- // @ts-ignore
1527
- if (a.order < b.order)
1528
- return -1;
1529
- // @ts-ignore
1530
- if (a.order > b.order)
1531
- return 1;
1532
- return 0;
1533
- }
1534
- prepareFiles(files) {
1535
- let mapFiles;
1536
- if (files) {
1537
- mapFiles = files.sort((a, b) => a.sort - b.sort);
1538
- mapFiles
1539
- .map(file => ({ ...file }))
1540
- .forEach(item => {
1541
- item.edit = false;
1542
- if (!item.title) {
1543
- item.title = '';
1544
- }
1545
- });
1546
- }
1547
- this.loaded = true;
1548
- return mapFiles;
1549
- }
1550
- drop(event) {
1551
- moveItemInArray(this.files, event.previousIndex, event.currentIndex);
1552
- const newSorting = [];
1553
- this.files.forEach((item, index) => {
1554
- // @ts-ignore
1555
- newSorting.push({ id: item.id, order: index });
1556
- });
1557
- this.changeSort.emit({ newSorting, storedSorting: this.storedFirstSorting });
1558
- }
1559
- }
1560
- 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 });
1561
- 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$4.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$4.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 });
1562
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilesUploadListImagesComponent, decorators: [{
1563
- type: Component,
1564
- 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"] }]
1565
- }], ctorParameters: function () { return [{ type: i1$7.FilesFacade }]; }, propDecorators: { section: [{
1566
- type: Input
1567
- }], filesType: [{
1568
- type: Input
1569
- }], itemId: [{
1570
- type: Input
1571
- }], mode: [{
1572
- type: Input
1573
- }], changeSort: [{
1574
- type: Output
1575
- }] } });
1576
-
1577
- class TableFilesUploadingComponent {
1578
- constructor(filesFacade, notificationsFacade, changeDetectorRef, authenticationService, config) {
1579
- this.filesFacade = filesFacade;
1580
- this.notificationsFacade = notificationsFacade;
1581
- this.changeDetectorRef = changeDetectorRef;
1582
- this.authenticationService = authenticationService;
1583
- this.config = config;
1584
- this.haveElevation = true;
1585
- this.loadingCompleted = new EventEmitter();
1586
- this.hasBaseDropZoneOver = false;
1587
- this.loaded = false;
1588
- this.allProgress$ = new Subject();
1589
- this.itemsProgress$ = new Subject();
1590
- this.itemsProgress = {};
1591
- this.showInputs = true;
1592
- }
1593
- ngOnInit() {
1594
- this.allProgress$.next(0);
1595
- this.itemsProgress$.next({});
1596
- this.initUploader();
1597
- }
1598
- ngOnDestroy() {
1599
- this.allProgress$.complete();
1600
- this.itemsProgress$.complete();
1601
- }
1602
- initUploader() {
1603
- this.publicUrl = this.config.publicUrl;
1604
- const apiUrl = this.config.apiUrl;
1605
- const { token } = this.authenticationService.loadAuthDataFromLocalStore();
1606
- const uploadUrl = `${apiUrl}/api/files/${this.section}/${this.itemId}`;
1607
- this.url = `${this.publicUrl}/${this.section}/${this.itemId}`;
1608
- this.uploader = new FileUploader({
1609
- url: uploadUrl,
1610
- authToken: `JWT ${token}`,
1611
- isHTML5: true,
1612
- autoUpload: true
1613
- });
1614
- this.uploader.onProgressItem = (item, progress) => this.onProgressItem(item, progress);
1615
- this.uploader.onProgressAll = (progress) => this.onProgressAll(progress);
1616
- this.uploader.onErrorItem = (item, response, status, headers) => this.onErrorItem(item, response, status, headers);
1617
- this.uploader.onAfterAddingFile = () => this.onAfterAddingFile();
1618
- this.uploader.onCompleteAll = this.onCompleteAll.bind(this);
1619
- }
1620
- onToggleImageBlockDone(e) {
1621
- if (e.toState === 'open') {
1622
- }
1623
- }
1624
- fileOverBase(e) {
1625
- this.hasBaseDropZoneOver = e;
1626
- }
1627
- onAfterAddingFile() {
1628
- this.showInputs = false;
1629
- this.changeDetectorRef.markForCheck();
1630
- }
1631
- onProgressItem(fileItem, progress) {
1632
- const fileName = fileItem.file.name;
1633
- this.itemsProgress[fileName] = progress;
1634
- this.itemsProgress$.next(this.itemsProgress);
1635
- }
1636
- onProgressAll(progress) {
1637
- this.allProgress$.next(progress);
1638
- }
1639
- onCompleteAll() {
1640
- this.notificationsFacade.addNotifications({
1641
- type: 'success',
1642
- text: 'Картинки успешно загружены',
1643
- id: 'images.uploads',
1644
- timeout: 2000
1645
- });
1646
- this.filesFacade.loadFiles({ itemId: this.itemId, section: this.section });
1647
- this.loadingCompleted.emit();
1648
- }
1649
- onErrorItem(item, response, status, headers) {
1650
- this.notificationsFacade.addNotifications({
1651
- type: 'error',
1652
- text: 'При загрузке возникли ошибки, попробуйте еще раз',
1653
- title: 'Ошибка',
1654
- id: 'images.uploads'
1655
- });
1656
- }
1657
- }
1658
- TableFilesUploadingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableFilesUploadingComponent, deps: [{ token: i1$7.FilesFacade }, { token: i2$5.NotificationsFacade }, { token: i0.ChangeDetectorRef }, { token: i4$2.AuthenticationService }, { token: CORE_CONFIG }], target: i0.ɵɵFactoryTarget.Component });
1659
- 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: [
1660
- hideToTopOpacity,
1661
- appearFromLeftHideToRight
1662
- ], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1663
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableFilesUploadingComponent, decorators: [{
1664
- type: Component,
1665
- args: [{ selector: 'shared-table-files-uploading', animations: [
1666
- hideToTopOpacity,
1667
- appearFromLeftHideToRight
1668
- ], 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"] }]
1669
- }], ctorParameters: function () { return [{ type: i1$7.FilesFacade }, { type: i2$5.NotificationsFacade }, { type: i0.ChangeDetectorRef }, { type: i4$2.AuthenticationService }, { type: undefined, decorators: [{
1670
- type: Inject,
1671
- args: [CORE_CONFIG]
1672
- }] }]; }, propDecorators: { section: [{
1673
- type: Input
1674
- }], itemId: [{
1675
- type: Input
1676
- }], haveElevation: [{
1677
- type: Input
1678
- }], loadingCompleted: [{
1679
- type: Output
1680
- }] } });
1681
-
1682
- class FilesUploadComponent {
1683
- constructor(filesFacade, requestsFacade, cd) {
1684
- this.filesFacade = filesFacade;
1685
- this.requestsFacade = requestsFacade;
1686
- this.cd = cd;
1687
- this.haveElevation = true;
1688
- this.uploadFilesState = 'close';
1689
- this.mode = FileListModeList$1;
1690
- this.fileListModeSort = FileListModeSort$1;
1691
- this.openState = 'open';
1692
- this.closeState = 'close';
1693
- this.changedSort = false;
1694
- this.filesUrl = 'files';
1695
- this.sortUrl = 'sort';
1696
- this.postMethod = 'post';
1697
- this.request$ = this.requestsFacade.getRequestUpdates(this.filesUrl, this.postMethod, undefined, this.sortUrl);
1698
- this.loadingStatus = RequestStatus.LOADING;
1699
- }
1700
- ngOnInit() {
1701
- }
1702
- ngOnDestroy() {
1703
- this.requestsFacade.deleteRequestWaiter(this.filesUrl, this.postMethod, undefined, this.sortUrl);
1704
- }
1705
- saveSort() {
1706
- this.cancelSort();
1707
- this.requestsFacade.createRequestListener(this.filesUrl, this.postMethod, undefined, this.sortUrl);
1708
- this.filesFacade.filesSort(this.fileOrders);
1709
- }
1710
- changeSort(data) {
1711
- const { newSorting, storedSorting } = data;
1712
- this.fileOrders = [...newSorting];
1713
- this.storedSorting = [...storedSorting];
1714
- this.changedSort = true;
1715
- this.cd.markForCheck();
1716
- }
1717
- cancelSort() {
1718
- this.changedSort = false;
1719
- if (this.storedSorting) {
1720
- this.filesFacade.filesUpdates(this.storedSorting);
1721
- }
1722
- this.cd.markForCheck();
1723
- }
1724
- uploadFilesToggle() {
1725
- this.uploadFilesState = this.uploadFilesState === this.openState ? this.closeState : this.openState;
1726
- }
1727
- loadingCompleted() {
1728
- this.uploadFilesState = this.closeState;
1729
- }
1730
- }
1731
- 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 });
1732
- 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: [
1733
- appearOpacity,
1734
- appearFromLeft,
1735
- appearFromLeftHideToRight
1736
- ], changeDetection: i0.ChangeDetectionStrategy.OnPush });
1737
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilesUploadComponent, decorators: [{
1738
- type: Component,
1739
- args: [{ selector: 'shared-files-upload', changeDetection: ChangeDetectionStrategy.OnPush, animations: [
1740
- appearOpacity,
1741
- appearFromLeft,
1742
- appearFromLeftHideToRight
1743
- ], 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"] }]
1744
- }], ctorParameters: function () { return [{ type: i1$7.FilesFacade }, { type: i4$3.RequestsFacade }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { section: [{
1745
- type: Input
1746
- }], itemId: [{
1747
- type: Input
1748
- }], filesType: [{
1749
- type: Input
1750
- }], haveElevation: [{
1751
- type: Input
1752
- }] } });
1753
-
1754
- class FilesUploadModule {
1755
- }
1756
- FilesUploadModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilesUploadModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1757
- FilesUploadModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: FilesUploadModule, declarations: [FilesUploadComponent,
1758
- FilesUploadListImagesComponent,
1759
- FileListCardComponent,
1760
- TableFilesUploadingComponent], imports: [CommonModule,
1761
- MatIconModule,
1762
- MatProgressBarModule,
1763
- FileUploadModule,
1764
- DragDropModule,
1765
- SharedSpinnerModule$1,
1766
- MatButtonModule,
1767
- FlexModule
1768
- // SortablejsModule
1769
- ], exports: [FilesUploadComponent,
1770
- DragDropModule] });
1771
- FilesUploadModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilesUploadModule, imports: [CommonModule,
1772
- MatIconModule,
1773
- MatProgressBarModule,
1774
- FileUploadModule,
1775
- DragDropModule,
1776
- SharedSpinnerModule$1,
1777
- MatButtonModule,
1778
- FlexModule
1779
- // SortablejsModule
1780
- , DragDropModule] });
1781
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FilesUploadModule, decorators: [{
1782
- type: NgModule,
1783
- args: [{
1784
- imports: [
1785
- CommonModule,
1786
- MatIconModule,
1787
- MatProgressBarModule,
1788
- FileUploadModule,
1789
- DragDropModule,
1790
- SharedSpinnerModule$1,
1791
- MatButtonModule,
1792
- FlexModule
1793
- // SortablejsModule
1794
- ],
1795
- declarations: [
1796
- FilesUploadComponent,
1797
- FilesUploadListImagesComponent,
1798
- FileListCardComponent,
1799
- TableFilesUploadingComponent
1800
- ],
1801
- exports: [
1802
- FilesUploadComponent,
1803
- DragDropModule
1804
- ]
1805
- }]
1806
- }] });
1807
-
1808
- const FileListModeList = 'list';
1809
- const FileListModeSort = 'sort';
1810
-
1811
- class FormFieldPublishErrorModule {
1812
- }
1813
- FormFieldPublishErrorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldPublishErrorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1814
- FormFieldPublishErrorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: FormFieldPublishErrorModule, declarations: [FormFieldPublishErrorComponent$1], imports: [CommonModule,
1815
- MatFormFieldModule], exports: [FormFieldPublishErrorComponent$1] });
1816
- FormFieldPublishErrorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldPublishErrorModule, imports: [CommonModule,
1817
- MatFormFieldModule] });
1818
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldPublishErrorModule, decorators: [{
1819
- type: NgModule,
1820
- args: [{
1821
- declarations: [FormFieldPublishErrorComponent$1],
1822
- exports: [
1823
- FormFieldPublishErrorComponent$1
1824
- ],
1825
- imports: [
1826
- CommonModule,
1827
- MatFormFieldModule
1828
- ]
1829
- }]
1830
- }] });
1831
-
1832
- //import { AutoFormService } from "../../../../../../core/src/lib/services/auto-form/auto-form.service";
1833
- /*import {
1834
- PublishErrors,
1835
- PublishErrorWithDescription
1836
- } from "../../../../../../core/src/lib/constants/publish-errors.const";*/
1837
- class FormFieldPublishErrorComponent {
1838
- constructor(//private autoFormService: AutoFormService,
1839
- publicationMessagesFacade) {
1840
- this.publicationMessagesFacade = publicationMessagesFacade;
1841
- this.unSubscribeSubject$ = new Subject();
1842
- }
1843
- ngOnInit() {
1844
- this.subscribeToPublishErError();
1845
- }
1846
- ngOnDestroy() {
1847
- this.unSubscribeSubject$.next();
1848
- this.unSubscribeSubject$.complete();
1849
- }
1850
- subscribeToPublishErError() {
1851
- /*const field = this.fieldData.field;
1852
- const itemId = this.form.get('id')?.value;
1853
-
1854
- if (itemId) {
1855
- this.messages$ = this.publicationMessagesFacade.getPublicationMessage(this.entity, itemId)
1856
- .pipe(
1857
- map((items: FormErrorModel[]) => items.filter(item => item.field === field)),
1858
- map((items: FormErrorModel[]) => ({
1859
- errors: items.filter(item => item.isError),
1860
- recommendations: items.filter(item => !item.isError)
1861
- })),
1862
- map((items) => ({
1863
- errors: this.autoFormService.prepareFormFieldPublicationMessage(items.errors, PublishErrors, [this.fieldData]),
1864
- recommendations: this.autoFormService.prepareFormFieldPublicationMessage(items.recommendations, PublishErrors, [this.fieldData])
1865
- }))
1866
- );
1867
- } else {
1868
- this.messages$ = EMPTY;
1869
- }*/
1870
- }
1871
- }
1872
- 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 });
1873
- 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 });
1874
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: FormFieldPublishErrorComponent, decorators: [{
1875
- type: Component,
1876
- 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" }]
1877
- }], ctorParameters: function () { return [{ type: i1$4.PublicationMessagesFacade }]; }, propDecorators: { form: [{
1878
- type: Input
1879
- }], entity: [{
1880
- type: Input
1881
- }], errorMessageTexts: [{
1882
- type: Input
1883
- }] } });
1884
-
1885
- class HeaderComponent {
1886
- constructor() {
1887
- this.title = 'Travel BloGG';
1888
- this.small = false;
1889
- }
1890
- ngOnInit() {
1891
- }
1892
- }
1893
- HeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1894
- 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"] }] });
1895
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HeaderComponent, decorators: [{
1896
- type: Component,
1897
- 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"] }]
1898
- }], ctorParameters: function () { return []; }, propDecorators: { title: [{
1899
- type: Input
1900
- }], subTitle: [{
1901
- type: Input
1902
- }], description: [{
1903
- type: Input
1904
- }], image: [{
1905
- type: Input
1906
- }], small: [{
1907
- type: Input
1908
- }] } });
1909
-
1910
- class HeaderModule {
1911
- }
1912
- HeaderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HeaderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1913
- HeaderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: HeaderModule, declarations: [HeaderComponent], imports: [CommonModule], exports: [CommonModule,
1914
- HeaderComponent] });
1915
- HeaderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HeaderModule, imports: [CommonModule, CommonModule] });
1916
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: HeaderModule, decorators: [{
1917
- type: NgModule,
1918
- args: [{
1919
- declarations: [HeaderComponent],
1920
- imports: [
1921
- CommonModule
1922
- ],
1923
- exports: [
1924
- CommonModule,
1925
- HeaderComponent
1926
- ]
1927
- }]
1928
- }] });
1929
-
1930
- class SharedIconModule {
1931
- }
1932
- SharedIconModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SharedIconModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1933
- SharedIconModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: SharedIconModule, declarations: [IconComponent], imports: [CommonModule,
1934
- MatIconModule], exports: [IconComponent] });
1935
- SharedIconModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SharedIconModule, imports: [CommonModule,
1936
- MatIconModule] });
1937
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SharedIconModule, decorators: [{
1938
- type: NgModule,
1939
- args: [{
1940
- imports: [
1941
- CommonModule,
1942
- MatIconModule
1943
- ],
1944
- declarations: [IconComponent],
1945
- exports: [IconComponent]
1946
- }]
1947
- }] });
1948
-
1949
- class ImageComponent {
1950
- constructor() {
1951
- this.haveZoom = false;
1952
- this.clickEvent = new EventEmitter();
1953
- this.delete = new EventEmitter();
1954
- this.showDeleteButton = false;
1955
- }
1956
- ngOnInit() {
1957
- this.checkSubscribersForDelete();
1958
- }
1959
- ngOnChanges(changes) {
1960
- if (changes.versions.currentValue) {
1961
- this.setSrc();
1962
- }
1963
- }
1964
- checkSubscribersForDelete() {
1965
- if (this.delete?.observers.length) {
1966
- this.showDeleteButton = true;
1967
- }
1968
- }
1969
- setSrc() {
1970
- if (this.versions && this.version) {
1971
- this.src = this.versions[this.version];
1972
- }
1973
- else if (this.url) {
1974
- this.src = this.url;
1975
- }
1976
- }
1977
- clickHandler() {
1978
- this.clickEvent.emit(this.index);
1979
- }
1980
- deleteImage() {
1981
- this.delete.emit();
1982
- }
1983
- }
1984
- ImageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ImageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1985
- 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 });
1986
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ImageComponent, decorators: [{
1987
- type: Component,
1988
- 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"] }]
1989
- }], ctorParameters: function () { return []; }, propDecorators: { versions: [{
1990
- type: Input
1991
- }], url: [{
1992
- type: Input
1993
- }], version: [{
1994
- type: Input
1995
- }], title: [{
1996
- type: Input
1997
- }], index: [{
1998
- type: Input
1999
- }], haveZoom: [{
2000
- type: Input
2001
- }], imgClass: [{
2002
- type: Input
2003
- }], clickEvent: [{
2004
- type: Output
2005
- }], delete: [{
2006
- type: Output
2007
- }] } });
2008
-
2009
- class ImageModule {
2010
- }
2011
- ImageModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ImageModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2012
- ImageModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: ImageModule, declarations: [ImageComponent], imports: [CommonModule,
2013
- MatIconModule], exports: [ImageComponent] });
2014
- ImageModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ImageModule, imports: [CommonModule,
2015
- MatIconModule] });
2016
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: ImageModule, decorators: [{
2017
- type: NgModule,
2018
- args: [{
2019
- declarations: [ImageComponent],
2020
- imports: [
2021
- CommonModule,
2022
- MatIconModule
2023
- ],
2024
- exports: [ImageComponent]
2025
- }]
2026
- }] });
2027
-
2028
- class InputTagsModule {
2029
- }
2030
- InputTagsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InputTagsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2031
- InputTagsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: InputTagsModule, declarations: [InputTagsComponent$1], imports: [CommonModule,
2032
- ChipsInputModule$1], exports: [InputTagsComponent$1] });
2033
- InputTagsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InputTagsModule, imports: [CommonModule,
2034
- ChipsInputModule$1] });
2035
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InputTagsModule, decorators: [{
2036
- type: NgModule,
2037
- args: [{
2038
- declarations: [InputTagsComponent$1],
2039
- exports: [InputTagsComponent$1],
2040
- imports: [
2041
- CommonModule,
2042
- ChipsInputModule$1
2043
- ]
2044
- }]
2045
- }] });
2046
-
2047
- class InputTagsComponent {
2048
- constructor() {
2049
- this.allTags = [
2050
- { id: 1, title: 'Apple' },
2051
- { id: 2, title: 'Lemon' },
2052
- { id: 3, title: 'Lime' },
2053
- { id: 4, title: 'Orange' },
2054
- { id: 5, title: 'Strawberry' }
2055
- ];
2056
- this.tags = [{ id: 2, title: 'Lemon' }];
2057
- }
2058
- ngOnInit() {
2059
- }
2060
- changedText(tags) {
2061
- }
2062
- changedList(tags) {
2063
- }
2064
- }
2065
- InputTagsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InputTagsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2066
- 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"] }] });
2067
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: InputTagsComponent, decorators: [{
2068
- type: Component,
2069
- 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" }]
2070
- }], ctorParameters: function () { return []; } });
2071
-
2072
- class PaginationModule {
2073
- }
2074
- PaginationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PaginationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2075
- PaginationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: PaginationModule, declarations: [PaginationComponent$1], imports: [CommonModule,
2076
- RouterModule], exports: [CommonModule,
2077
- PaginationComponent$1] });
2078
- PaginationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PaginationModule, imports: [CommonModule,
2079
- RouterModule, CommonModule] });
2080
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PaginationModule, decorators: [{
2081
- type: NgModule,
2082
- args: [{
2083
- declarations: [PaginationComponent$1],
2084
- imports: [
2085
- CommonModule,
2086
- RouterModule
2087
- ],
2088
- exports: [
2089
- CommonModule,
2090
- PaginationComponent$1
2091
- ]
2092
- }]
2093
- }] });
2094
-
2095
- class PaginationComponent {
2096
- constructor() {
2097
- this.pages = [];
2098
- }
2099
- ngOnInit() {
2100
- }
2101
- ngOnChanges(changes) {
2102
- if (changes.page || changes.count) {
2103
- this.preparePages();
2104
- }
2105
- }
2106
- preparePages() {
2107
- this.pages = [];
2108
- let pageNumber = 0;
2109
- if (this.count > 0 && this.perPage > 0) {
2110
- pageNumber = Math.ceil(this.count / this.perPage);
2111
- }
2112
- 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];
2113
- let addedDots = false;
2114
- for (let i = 1; i <= pageNumber; i++) {
2115
- if (templatePages.includes(i)) {
2116
- this.pages.push(i);
2117
- addedDots = false;
2118
- }
2119
- else if (!addedDots) {
2120
- this.pages.push(0);
2121
- addedDots = true;
2122
- }
2123
- }
2124
- }
2125
- }
2126
- PaginationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PaginationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2127
- 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: i3$2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2128
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PaginationComponent, decorators: [{
2129
- type: Component,
2130
- 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"] }]
2131
- }], ctorParameters: function () { return []; }, propDecorators: { count: [{
2132
- type: Input
2133
- }], perPage: [{
2134
- type: Input
2135
- }], page: [{
2136
- type: Input
2137
- }], url: [{
2138
- type: Input
2139
- }] } });
2140
-
2141
- class PanelModule {
2142
- }
2143
- PanelModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PanelModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2144
- PanelModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: PanelModule, declarations: [PanelComponent$1], imports: [CommonModule,
2145
- ButtonModule$1,
2146
- FlexModule], exports: [PanelComponent$1] });
2147
- PanelModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PanelModule, imports: [CommonModule,
2148
- ButtonModule$1,
2149
- FlexModule] });
2150
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PanelModule, decorators: [{
2151
- type: NgModule,
2152
- args: [{
2153
- declarations: [PanelComponent$1],
2154
- imports: [
2155
- CommonModule,
2156
- ButtonModule$1,
2157
- FlexModule
2158
- ],
2159
- exports: [PanelComponent$1]
2160
- }]
2161
- }] });
2162
-
2163
- class PanelComponent {
2164
- constructor() {
2165
- this.close = new EventEmitter();
2166
- this.isOpened = false;
2167
- }
2168
- ngOnInit() {
2169
- }
2170
- toggleExpanded() {
2171
- this.isOpened = !this.isOpened;
2172
- }
2173
- }
2174
- PanelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2175
- 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 });
2176
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PanelComponent, decorators: [{
2177
- type: Component,
2178
- 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" }]
2179
- }], ctorParameters: function () { return []; }, propDecorators: { title: [{
2180
- type: Input
2181
- }], smallDescription: [{
2182
- type: Input
2183
- }], description: [{
2184
- type: Input
2185
- }], color: [{
2186
- type: Input
2187
- }], buttonColor: [{
2188
- type: Input
2189
- }], close: [{
2190
- type: Output
2191
- }] } });
2192
-
2193
- class SmartProgressBarModule {
2194
- }
2195
- SmartProgressBarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SmartProgressBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2196
- SmartProgressBarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: SmartProgressBarModule, declarations: [SmartProgressBarComponent], imports: [CommonModule], exports: [SmartProgressBarComponent] });
2197
- SmartProgressBarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SmartProgressBarModule, imports: [CommonModule] });
2198
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SmartProgressBarModule, decorators: [{
2199
- type: NgModule,
2200
- args: [{
2201
- declarations: [SmartProgressBarComponent],
2202
- imports: [CommonModule],
2203
- exports: [SmartProgressBarComponent]
2204
- }]
2205
- }] });
2206
-
2207
- class SharedSpinnerModule {
2208
- }
2209
- SharedSpinnerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SharedSpinnerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2210
- SharedSpinnerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: SharedSpinnerModule, declarations: [SpinnerComponent], imports: [CommonModule,
2211
- MatProgressSpinnerModule], exports: [SpinnerComponent] });
2212
- SharedSpinnerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SharedSpinnerModule, imports: [CommonModule,
2213
- MatProgressSpinnerModule] });
2214
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SharedSpinnerModule, decorators: [{
2215
- type: NgModule,
2216
- args: [{
2217
- declarations: [SpinnerComponent],
2218
- imports: [
2219
- CommonModule,
2220
- MatProgressSpinnerModule
2221
- ],
2222
- exports: [SpinnerComponent]
2223
- }]
2224
- }] });
2225
-
2226
- class StarRatingComponent {
2227
- constructor() {
2228
- this.rating = 0;
2229
- this.size = 'normal';
2230
- this.arrayList = ['', '', ''];
2231
- }
2232
- ngOnInit() {
2233
- }
2234
- }
2235
- StarRatingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StarRatingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2236
- 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 });
2237
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StarRatingComponent, decorators: [{
2238
- type: Component,
2239
- 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"] }]
2240
- }], ctorParameters: function () { return []; }, propDecorators: { rating: [{
2241
- type: Input
2242
- }], size: [{
2243
- type: Input
2244
- }] } });
2245
-
2246
- class StarRatingModule {
2247
- }
2248
- StarRatingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StarRatingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2249
- StarRatingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: StarRatingModule, declarations: [StarRatingComponent], imports: [CommonModule], exports: [StarRatingComponent] });
2250
- StarRatingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StarRatingModule, imports: [CommonModule] });
2251
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StarRatingModule, decorators: [{
2252
- type: NgModule,
2253
- args: [{
2254
- declarations: [StarRatingComponent],
2255
- exports: [
2256
- StarRatingComponent
2257
- ],
2258
- imports: [
2259
- CommonModule
2260
- ]
2261
- }]
2262
- }] });
2263
-
2264
- const defaultStickySidebarOptions = {
2265
- topSpacing: 0,
2266
- bottomSpacing: 0,
2267
- stickyClass: 'is-affixed',
2268
- resizeSensor: true,
2269
- minWidth: false,
2270
- containerSelector: '.container',
2271
- containerForWidth: false
2272
- };
2273
- const STICKY_SIDEBAR_OPTIONS = new InjectionToken('STICKY_SIDEBAR_OPTIONS');
2274
- class StickySidebarDirective {
2275
- constructor(element, _options, zone, renderer, platform) {
2276
- this.element = element;
2277
- this._options = _options;
2278
- this.zone = zone;
2279
- this.renderer = renderer;
2280
- this.platform = platform;
2281
- this.affixedType = 'STATIC';
2282
- this.direction = 'down';
2283
- this.support = {
2284
- transform: false,
2285
- transform3d: false
2286
- };
2287
- this._initialized = false;
2288
- this._reStyle = false;
2289
- this._breakpoint = false;
2290
- // Dimensions of sidebar, container and screen viewport.
2291
- this.dimensions = {
2292
- translateY: 0,
2293
- maxTranslateY: 0,
2294
- topSpacing: 0,
2295
- lastTopSpacing: 0,
2296
- bottomSpacing: 0,
2297
- lastBottomSpacing: 0,
2298
- sidebarHeight: 0,
2299
- sidebarWidth: 0,
2300
- containerTop: 0,
2301
- containerHeight: 0,
2302
- containerBottom: 0,
2303
- viewportHeight: 0,
2304
- viewportTop: 0,
2305
- lastViewportTop: 0,
2306
- sidebarLeft: 0,
2307
- viewportBottom: 0,
2308
- viewportLeft: 0
2309
- };
2310
- this.lastScrollTop = 0;
2311
- this.resize = new Subject();
2312
- this.options = _options && { ...defaultStickySidebarOptions, ..._options } || defaultStickySidebarOptions;
2313
- if (isPlatformBrowser(platform)) {
2314
- this.sidebarEl = this.element.nativeElement;
2315
- this._setSupportFeatures();
2316
- this.bindEvents();
2317
- }
2318
- }
2319
- static offsetRelative(element) {
2320
- const result = { left: 0, top: 0 };
2321
- let el = element;
2322
- do {
2323
- const offsetTop = el.offsetTop;
2324
- const offsetLeft = el.offsetLeft;
2325
- if (!isNaN(offsetTop))
2326
- result.top += offsetTop;
2327
- if (!isNaN(offsetLeft))
2328
- result.left += offsetLeft;
2329
- el =
2330
- 'BODY' === element.tagName
2331
- ? el.parentElement
2332
- : el.offsetParent;
2333
- } while (el);
2334
- return result;
2335
- }
2336
- ngOnInit() {
2337
- }
2338
- bindEvents() {
2339
- // this.resizeDetector = elementResizeDetectorMaker();
2340
- this.zone.runOutsideAngular(() => {
2341
- this.eventSub = merge(fromEvent(window, 'scroll'), fromEvent(window, 'resize')).subscribe(evt => {
2342
- if (evt.type === 'scroll') {
2343
- const scrollTop = this.getScrollTop();
2344
- this.scrollDirection = scrollTop > this.lastScrollTop ? 'down' : 'top';
2345
- this.lastScrollTop = scrollTop;
2346
- }
2347
- this.updateSticky(evt);
2348
- });
2349
- });
2350
- }
2351
- ngOnDestroy() {
2352
- if (!isPlatformBrowser(this.platform))
2353
- return;
2354
- if (this.eventSub)
2355
- this.eventSub.unsubscribe();
2356
- if (this.sidebarInner && this.sidebarInner.nativeElement)
2357
- this.removeResizeEventListener(this.sidebarInner.nativeElement);
2358
- if (this.container)
2359
- this.removeResizeEventListener(this.container);
2360
- }
2361
- ngAfterContentInit() {
2362
- if (!isPlatformBrowser(this.platform))
2363
- return;
2364
- if (this.options.containerSelector) {
2365
- let containers = document.querySelectorAll(this.options.containerSelector);
2366
- containers = Array.prototype.slice.call(containers);
2367
- containers.forEach((container, item) => {
2368
- if (!container.contains(this.element.nativeElement))
2369
- return;
2370
- this.container = container;
2371
- });
2372
- if (!containers.length)
2373
- throw new Error('The container does not contains on the sidebar.');
2374
- }
2375
- if (this.options.containerForWidth) {
2376
- let containersForWidth = document.querySelectorAll(this.options.containerForWidth);
2377
- containersForWidth = Array.prototype.slice.call(containersForWidth);
2378
- containersForWidth.forEach((containerW, item) => {
2379
- if (!containerW.contains(this.element.nativeElement))
2380
- return;
2381
- this.containerForWidth = containerW;
2382
- });
2383
- if (!containersForWidth.length)
2384
- throw new Error('The container does not contains on the sidebar.');
2385
- }
2386
- this._widthBreakpoint();
2387
- this.calcDimensions();
2388
- this.stickyPosition();
2389
- this._updateStickyListener = this.handleResizeEvent.bind(this);
2390
- this.addResizeEventListener(this.sidebarInner.nativeElement, this._updateStickyListener);
2391
- this.addResizeEventListener(this.container, this._updateStickyListener);
2392
- this.zone.runOutsideAngular(() => {
2393
- this.eventSub.add(this.resize.subscribe((evt) => {
2394
- this.updateSticky(evt);
2395
- }));
2396
- });
2397
- }
2398
- handleResizeEvent(evt) {
2399
- this.direction = 'down';
2400
- this.resize.next(evt);
2401
- }
2402
- addResizeEventListener(element, handler) {
2403
- // this.resizeDetector.listenTo(element, handler);
2404
- }
2405
- removeResizeEventListener(element) {
2406
- // if (this.resizeDetector)
2407
- // this.resizeDetector.uninstall(element);
2408
- }
2409
- calcDimensions() {
2410
- if (this._breakpoint)
2411
- return;
2412
- const dims = this.dimensions;
2413
- // Container of sticky sidebar dimensions.
2414
- dims.containerTop = StickySidebarDirective.offsetRelative(this.container).top;
2415
- dims.containerHeight = this.container.clientHeight;
2416
- dims.containerBottom = dims.containerTop + dims.containerHeight;
2417
- // Sidebar dimensions.
2418
- dims.sidebarHeight = this.sidebarInner.nativeElement.offsetHeight;
2419
- dims.sidebarWidth = this.options.containerForWidth ? this.containerForWidth.offsetWidth : this.sidebarInner.nativeElement.offsetWidth;
2420
- // Screen viewport dimensions.
2421
- dims.viewportHeight = window.innerHeight;
2422
- // Maximum sidebar translate Y.
2423
- dims.maxTranslateY = dims.containerHeight - dims.sidebarHeight;
2424
- this._calcDimensionsWithScroll();
2425
- }
2426
- _calcDimensionsWithScroll() {
2427
- const dims = this.dimensions;
2428
- dims.sidebarLeft = StickySidebarDirective.offsetRelative(this.sidebarEl).left;
2429
- dims.viewportTop = this.getScrollTop();
2430
- dims.viewportBottom = dims.viewportTop + dims.viewportHeight;
2431
- dims.viewportLeft = document.documentElement.scrollLeft || document.body.scrollLeft;
2432
- dims.topSpacing = this.options.topSpacing;
2433
- dims.bottomSpacing = this.options.bottomSpacing;
2434
- if ('VIEWPORT-TOP' === this.affixedType) {
2435
- if (dims.topSpacing < dims.lastTopSpacing) {
2436
- dims.translateY += dims.lastTopSpacing - dims.topSpacing;
2437
- this._reStyle = true;
2438
- }
2439
- }
2440
- else if ('VIEWPORT-BOTTOM' === this.affixedType) {
2441
- // Adjust translate Y in the case decrease bottom spacing value.
2442
- if (dims.bottomSpacing < dims.lastBottomSpacing) {
2443
- dims.translateY += dims.lastBottomSpacing - dims.bottomSpacing;
2444
- this._reStyle = true;
2445
- }
2446
- }
2447
- dims.lastTopSpacing = dims.topSpacing;
2448
- dims.lastBottomSpacing = dims.bottomSpacing;
2449
- }
2450
- isSidebarFitsViewport() {
2451
- const dims = this.dimensions;
2452
- const offset = this.scrollDirection === 'down' ? dims.lastBottomSpacing : dims.lastTopSpacing;
2453
- return this.dimensions.sidebarHeight + offset < this.dimensions.viewportHeight;
2454
- }
2455
- observeScrollDir() {
2456
- const dims = this.dimensions;
2457
- if (dims.lastViewportTop === dims.viewportTop)
2458
- return;
2459
- const furthest = 'down' === this.direction ? Math.min : Math.max;
2460
- if (dims.viewportTop === furthest(dims.viewportTop, dims.lastViewportTop))
2461
- this.direction = 'down' === this.direction ? 'up' : 'down';
2462
- }
2463
- getAffixType() {
2464
- this._calcDimensionsWithScroll();
2465
- const dims = this.dimensions;
2466
- const colliderTop = dims.viewportTop + dims.topSpacing;
2467
- let affixType = this.affixedType;
2468
- if (colliderTop <= dims.containerTop || dims.containerHeight <= dims.sidebarHeight) {
2469
- dims.translateY = 0;
2470
- affixType = 'STATIC';
2471
- }
2472
- else {
2473
- affixType =
2474
- 'up' === this.direction
2475
- ? this._getAffixTypeScrollingUp()
2476
- : this._getAffixTypeScrollingDown();
2477
- }
2478
- dims.translateY = Math.max(0, dims.translateY);
2479
- dims.translateY = Math.min(dims.containerHeight, dims.translateY);
2480
- dims.translateY = Math.round(dims.translateY);
2481
- dims.lastViewportTop = dims.viewportTop;
2482
- return affixType;
2483
- }
2484
- _getAffixTypeScrollingDown() {
2485
- const dims = this.dimensions;
2486
- const sidebarBottom = dims.sidebarHeight + dims.containerTop;
2487
- const colliderTop = dims.viewportTop + dims.topSpacing;
2488
- const colliderBottom = dims.viewportBottom - dims.bottomSpacing;
2489
- let affixType = this.affixedType;
2490
- if (this.isSidebarFitsViewport()) {
2491
- if (dims.sidebarHeight + colliderTop >= dims.containerBottom) {
2492
- dims.translateY = dims.containerBottom - sidebarBottom;
2493
- affixType = 'CONTAINER-BOTTOM';
2494
- }
2495
- else if (colliderTop >= dims.containerTop) {
2496
- dims.translateY = colliderTop - dims.containerTop;
2497
- affixType = 'VIEWPORT-TOP';
2498
- }
2499
- }
2500
- else {
2501
- if (dims.containerBottom <= colliderBottom) {
2502
- dims.translateY = dims.containerBottom - sidebarBottom;
2503
- affixType = 'CONTAINER-BOTTOM';
2504
- }
2505
- else if (sidebarBottom + dims.translateY <= colliderBottom) {
2506
- dims.translateY = colliderBottom - sidebarBottom;
2507
- affixType = 'VIEWPORT-BOTTOM';
2508
- }
2509
- else if (dims.containerTop + dims.translateY <= colliderTop &&
2510
- (0 !== dims.translateY && dims.maxTranslateY !== dims.translateY)) {
2511
- affixType = 'VIEWPORT-UNBOTTOM';
2512
- }
2513
- }
2514
- return affixType;
2515
- }
2516
- _getAffixTypeScrollingUp() {
2517
- const dims = this.dimensions;
2518
- const sidebarBottom = dims.sidebarHeight + dims.containerTop;
2519
- const colliderTop = dims.viewportTop + dims.topSpacing;
2520
- const colliderBottom = dims.viewportBottom - dims.bottomSpacing;
2521
- let affixType = this.affixedType;
2522
- if (colliderTop <= dims.translateY + dims.containerTop) {
2523
- dims.translateY = colliderTop - dims.containerTop;
2524
- affixType = 'VIEWPORT-TOP';
2525
- }
2526
- else if (dims.containerBottom <= colliderBottom) {
2527
- dims.translateY = dims.containerBottom - sidebarBottom;
2528
- affixType = 'CONTAINER-BOTTOM';
2529
- }
2530
- else if (!this.isSidebarFitsViewport()) {
2531
- if (dims.containerTop <= colliderTop &&
2532
- (0 !== dims.translateY && dims.maxTranslateY !== dims.translateY)) {
2533
- affixType = 'VIEWPORT-UNBOTTOM';
2534
- }
2535
- }
2536
- return affixType;
2537
- }
2538
- _getStyle(affixType) {
2539
- if ('undefined' === typeof affixType)
2540
- return;
2541
- const style = { inner: {}, outer: {} };
2542
- const dims = this.dimensions;
2543
- switch (affixType) {
2544
- case 'VIEWPORT-TOP':
2545
- style.inner = {
2546
- position: 'fixed',
2547
- top: dims.topSpacing,
2548
- left: dims.sidebarLeft - dims.viewportLeft,
2549
- width: dims.sidebarWidth
2550
- };
2551
- break;
2552
- case 'VIEWPORT-BOTTOM':
2553
- style.inner = {
2554
- position: 'fixed',
2555
- top: 'auto',
2556
- left: dims.sidebarLeft,
2557
- bottom: dims.bottomSpacing,
2558
- width: dims.sidebarWidth
2559
- };
2560
- break;
2561
- case 'CONTAINER-BOTTOM':
2562
- case 'VIEWPORT-UNBOTTOM':
2563
- const translate = this._getTranslate('0', dims.translateY + 'px');
2564
- if (translate)
2565
- style.inner = { transform: translate };
2566
- else
2567
- style.inner = { position: 'absolute', top: dims.translateY, width: dims.sidebarWidth };
2568
- break;
2569
- }
2570
- switch (affixType) {
2571
- case 'VIEWPORT-TOP':
2572
- case 'VIEWPORT-BOTTOM':
2573
- case 'VIEWPORT-UNBOTTOM':
2574
- case 'CONTAINER-BOTTOM':
2575
- style.outer = { height: dims.sidebarHeight, position: 'relative' };
2576
- break;
2577
- }
2578
- style.outer = { height: '', position: '', ...style.outer };
2579
- style.inner = {
2580
- position: 'relative',
2581
- top: '',
2582
- left: '',
2583
- bottom: '',
2584
- width: '',
2585
- transform: '',
2586
- ...style.inner
2587
- };
2588
- return style;
2589
- }
2590
- stickyPosition(force = false) {
2591
- if (this._breakpoint)
2592
- return;
2593
- force = this._reStyle || force || false;
2594
- const offsetTop = this.options.topSpacing;
2595
- const offsetBottom = this.options.bottomSpacing;
2596
- const affixType = this.getAffixType();
2597
- const style = this._getStyle(affixType);
2598
- const innerEl = this.sidebarInner.nativeElement;
2599
- if ((this.affixedType !== affixType || force) && affixType) {
2600
- //const affixEvent = 'affix.' + affixType.toLowerCase().replace('viewport-', '') + StickySidebarDirective.EVENT_KEY;
2601
- //StickySidebar.eventTrigger(this.sidebar, affixEvent);
2602
- if ('STATIC' === affixType)
2603
- this.renderer.removeClass(this.sidebarEl, this.options.stickyClass);
2604
- else
2605
- this.renderer.addClass(this.sidebarEl, this.options.stickyClass);
2606
- Object.keys(style.outer).forEach(key => {
2607
- const unit = 'number' === typeof style.outer[key] ? 'px' : '';
2608
- this.sidebarEl.style[key] = style.outer[key] + unit;
2609
- });
2610
- Object.keys(style.inner).forEach(key => {
2611
- const unit = 'number' === typeof style.inner[key] ? 'px' : '';
2612
- innerEl.style[key] = style.inner[key] + unit;
2613
- });
2614
- //const affixedEvent = 'affixed.'+ affixType.toLowerCase().replace('viewport-', '') + EVENT_KEY;
2615
- //StickySidebar.eventTrigger(this.sidebar, affixedEvent);
2616
- }
2617
- else {
2618
- if (this._initialized)
2619
- innerEl.style.left = style.inner['left'];
2620
- }
2621
- this.affixedType = affixType;
2622
- }
2623
- _widthBreakpoint() {
2624
- if (window.innerWidth <= this.options.minWidth) {
2625
- this._breakpoint = true;
2626
- this.affixedType = 'STATIC';
2627
- this.renderer.removeAttribute(this.sidebarEl, 'style');
2628
- this.renderer.removeAttribute(this.sidebarInner.nativeElement, 'style');
2629
- this.renderer.removeClass(this.sidebarEl, this.options.stickyClass);
2630
- }
2631
- else {
2632
- this._breakpoint = false;
2633
- }
2634
- }
2635
- updateSticky(event) {
2636
- if (this._running)
2637
- return;
2638
- this._running = true;
2639
- (eventType => {
2640
- requestAnimationFrame(() => {
2641
- switch (eventType) {
2642
- case 'scroll':
2643
- this._calcDimensionsWithScroll();
2644
- this.observeScrollDir();
2645
- this.stickyPosition();
2646
- break;
2647
- // When browser is resizing or there's no event, observe width
2648
- // breakpoint and re-calculate dimensions.
2649
- case 'resize':
2650
- default:
2651
- this._widthBreakpoint();
2652
- this.calcDimensions();
2653
- this.stickyPosition(true);
2654
- break;
2655
- }
2656
- this._running = false;
2657
- });
2658
- })(event.type);
2659
- }
2660
- _setSupportFeatures() {
2661
- const support = this.support;
2662
- support.transform = this.supportTransform();
2663
- support.transform3d = this.supportTransform(true);
2664
- }
2665
- _getTranslate(y = '0', x = '0', z = '0') {
2666
- if (this.support.transform3d)
2667
- return 'translate3d(' + y + ', ' + x + ', ' + z + ')';
2668
- else if (this.support.transform)
2669
- return 'translate(' + y + ', ' + x + ')';
2670
- else
2671
- return false;
2672
- }
2673
- supportTransform(transform3d = false) {
2674
- let result = null;
2675
- 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;
2676
- (property + ' ' + prefixes.join(upper + ' ') + upper).split(' ').forEach(function (property, i) {
2677
- if (style[property] !== undefined) {
2678
- result = property;
2679
- return false;
2680
- }
2681
- });
2682
- return result;
2683
- }
2684
- getScrollTop() {
2685
- return document.documentElement.scrollTop || document.body.scrollTop || document.documentElement.offsetTop * -1;
2686
- }
2687
- }
2688
- 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 });
2689
- 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 });
2690
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StickySidebarDirective, decorators: [{
2691
- type: Directive,
2692
- args: [{
2693
- selector: '[wtStickySidebar]'
2694
- }]
2695
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: undefined, decorators: [{
2696
- type: Optional
2697
- }, {
2698
- type: Inject,
2699
- args: [STICKY_SIDEBAR_OPTIONS]
2700
- }] }, { type: i0.NgZone }, { type: i0.Renderer2 }, { type: i1$8.Platform, decorators: [{
2701
- type: Inject,
2702
- args: [PLATFORM_ID]
2703
- }] }]; }, propDecorators: { sidebarInner: [{
2704
- type: ContentChild,
2705
- args: [forwardRef(() => StickySidebarInnerDirective), { static: true, read: ElementRef }]
2706
- }] } });
2707
- class StickySidebarInnerDirective {
2708
- constructor() {
2709
- }
2710
- }
2711
- StickySidebarInnerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StickySidebarInnerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2712
- StickySidebarInnerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.9", type: StickySidebarInnerDirective, selector: "[wtStickySidebarInner]", ngImport: i0 });
2713
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StickySidebarInnerDirective, decorators: [{
2714
- type: Directive,
2715
- args: [{
2716
- selector: '[wtStickySidebarInner]'
2717
- }]
2718
- }], ctorParameters: function () { return []; } });
2719
-
2720
- class StickySidebarModule {
2721
- static withOptions(options) {
2722
- return {
2723
- ngModule: StickySidebarModule,
2724
- providers: [
2725
- {
2726
- provide: STICKY_SIDEBAR_OPTIONS,
2727
- useValue: options
2728
- }
2729
- ]
2730
- };
2731
- }
2732
- }
2733
- StickySidebarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StickySidebarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2734
- StickySidebarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: StickySidebarModule, declarations: [StickySidebarDirective, StickySidebarInnerDirective], imports: [CommonModule], exports: [StickySidebarDirective, StickySidebarInnerDirective] });
2735
- StickySidebarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StickySidebarModule, imports: [CommonModule] });
2736
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StickySidebarModule, decorators: [{
2737
- type: NgModule,
2738
- args: [{
2739
- declarations: [StickySidebarDirective, StickySidebarInnerDirective],
2740
- imports: [
2741
- CommonModule
2742
- ],
2743
- exports: [StickySidebarDirective, StickySidebarInnerDirective]
2744
- }]
2745
- }] });
2746
-
2747
- class TableMenuComponent {
2748
- constructor() {
2749
- this.edit = new EventEmitter();
2750
- this.delete = new EventEmitter();
2751
- }
2752
- ngOnInit() {
2753
- }
2754
- editAction() {
2755
- this.edit.emit();
2756
- }
2757
- deleteAction() {
2758
- this.delete.emit();
2759
- }
2760
- }
2761
- TableMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2762
- 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$6.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "component", type: i2$6.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i2$6.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }] });
2763
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableMenuComponent, decorators: [{
2764
- type: Component,
2765
- 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" }]
2766
- }], ctorParameters: function () { return []; }, propDecorators: { edit: [{
2767
- type: Output
2768
- }], delete: [{
2769
- type: Output
2770
- }] } });
2771
-
2772
- class TableMenuModule {
2773
- }
2774
- TableMenuModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2775
- TableMenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: TableMenuModule, declarations: [TableMenuComponent], imports: [CommonModule,
2776
- MatIconModule,
2777
- MatMenuModule], exports: [TableMenuComponent,
2778
- MatIconModule,
2779
- MatMenuModule] });
2780
- TableMenuModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableMenuModule, imports: [CommonModule,
2781
- MatIconModule,
2782
- MatMenuModule, MatIconModule,
2783
- MatMenuModule] });
2784
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TableMenuModule, decorators: [{
2785
- type: NgModule,
2786
- args: [{
2787
- declarations: [TableMenuComponent],
2788
- imports: [
2789
- CommonModule,
2790
- MatIconModule,
2791
- MatMenuModule
2792
- ],
2793
- exports: [
2794
- TableMenuComponent,
2795
- MatIconModule,
2796
- MatMenuModule
2797
- ]
2798
- }]
2799
- }] });
2800
-
2801
- class TagCloudComponent {
2802
- constructor() {
2803
- this.loaded = false;
2804
- this.trackByFn = trackById;
2805
- }
2806
- ngOnInit() {
2807
- /*this.tagsFacade.loadTags();
2808
- this.getTags$ = this.tagsFacade.getTags$.pipe(
2809
- filter(items => !!items),
2810
- tap(items => {
2811
- if (items.length) {
2812
- this.loaded = true;
2813
- }
2814
- })
2815
- );*/
2816
- }
2817
- ngOnDestroy() {
2818
- }
2819
- }
2820
- TagCloudComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TagCloudComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2821
- 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: i3$2.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 });
2822
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TagCloudComponent, decorators: [{
2823
- type: Component,
2824
- 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"] }]
2825
- }], ctorParameters: function () { return []; } });
2826
-
2827
- class TagCloudModule {
2828
- }
2829
- TagCloudModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TagCloudModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2830
- TagCloudModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: TagCloudModule, declarations: [TagCloudComponent], imports: [CommonModule,
2831
- SharedSpinnerModule$1,
2832
- RouterModule], exports: [TagCloudComponent] });
2833
- TagCloudModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TagCloudModule, imports: [CommonModule,
2834
- SharedSpinnerModule$1,
2835
- RouterModule] });
2836
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TagCloudModule, decorators: [{
2837
- type: NgModule,
2838
- args: [{
2839
- declarations: [TagCloudComponent],
2840
- imports: [
2841
- CommonModule,
2842
- SharedSpinnerModule$1,
2843
- RouterModule
2844
- ],
2845
- exports: [TagCloudComponent]
2846
- }]
2847
- }] });
2
+ import { Pipe, NgModule, Injectable } from '@angular/core';
3
+ import * as i4$1 from '@angular/common';
4
+ import { CommonModule } from '@angular/common';
5
+ import * as i1 from '@angular/platform-browser';
6
+ import * as moment from 'moment';
7
+ import * as i1$1 from '@ngrx/effects';
8
+ import { createEffect, ofType } from '@ngrx/effects';
9
+ import { filter, switchMap, tap, flatMap, catchError } from 'rxjs/operators';
10
+ import * as i2 from '@ngrx/store';
11
+ import { createAction, props, createReducer, on, createFeatureSelector, createSelector, select } from '@ngrx/store';
12
+ import { of } from 'rxjs';
13
+ import { LoginSendBehavior } from '@wt-front-shared/state/users/behavios/login-send-behavior';
14
+ import { RefreshTokenBehavior } from '@wt-front-shared/state/users/behavios/refresh-token-behavior';
15
+ import * as i3 from '@wt-front-shared/core/services/users/users.service';
16
+ import * as i4 from '@wt-front-shared/core/services/auth/authentication.service';
17
+ import * as i5 from '@wt-front-shared/core/services/router/router.service';
18
+ import { GlobalEvent } from '@wt-front-shared/state/core.actions';
19
+ import * as i6 from '@wt-front-shared/core/services/actions/actions.service';
20
+ import * as i7 from '@wt-front-shared/state/notifications';
21
+ import { NotificationsFacade, notificationsReducer } from '@wt-front-shared/state/notifications';
22
+ import { NotificationShowingType } from '@wt-front-shared/state/notifications/notifications.actions';
23
+ import { NOTIFICATION_LONG_TIMEOUT } from '@wt-front-shared/constants/constants';
24
+ import { EntityUpdate } from '@wt-front-shared/state/update-entities/update-entities.actions';
25
+ import { LoadUsersSuccess as LoadUsersSuccess$1, RefreshToken as RefreshToken$1, SetLoaded as SetLoaded$1, RefreshTokenSuccess as RefreshTokenSuccess$1 } from '@wt-front-shared/state/users/users.actions';
26
+ import { ROUTER_FEATURE_KEY as ROUTER_FEATURE_KEY$1 } from '@wt-front-shared/state/router/router.reducer';
27
+ import * as i3$1 from '@angular/router';
28
+ import { NotificationsEffects } from '@wt-front-shared/state/notifications/notifications.effects';
29
+ import { TagsEffects } from '@wt-front-shared/state/tags/tags.effects';
30
+ import { UiUnitsEffects } from '@wt-front-shared/state/uiUnits/uiUnits.effects';
31
+ import { FilesEffects, FilesFacade, filesReducer } from '@wt-front-shared/state/files';
32
+ import { MainEffects } from '@wt-front-shared/state/main/main.effects';
33
+ import { UiUnitsFacade, uiUnitsReducer } from '@wt-front-shared/state/uiUnits';
34
+ import { RouterFacade } from '@wt-front-shared/state/router/router.facade';
35
+ import { FormsFacade, formReducer } from '@wt-front-shared/state/forms';
36
+ import { TagsFacade, tagsReducer } from '@wt-front-shared/state/tags';
37
+ import { MainFacade, mainReducer } from '@wt-front-shared/state/main';
38
+ import { FormValidationEffects } from '@wt-front-shared/state/form-validation/form-validation.effects';
39
+ import { FormValidationFacade, formValidationReducer } from '@wt-front-shared/state/form-validation';
40
+ import { FormErrorsEffects } from '@wt-front-shared/state/form-errors/form-errors.effects';
41
+ import { FormErrorsFacade, formErrorsReducer } from '@wt-front-shared/state/form-errors';
42
+ import { FormsEffects } from '@wt-front-shared/state/forms/forms.effects';
43
+ import { RequestsFacade, requestsReducer } from '@wt-front-shared/state/requests';
44
+ import { FormDeleteFileEffects } from '@wt-front-shared/state/form-delete-file/form-delete-file.effects';
45
+ import { FormDeleteFileFacade } from '@wt-front-shared/state/form-delete-file';
46
+ import { PublicationMessagesEffects } from '@wt-front-shared/state/publication-messages/publication-messages.effects';
47
+ import { PublicationMessagesFacade, publicationMessagesReducer } from '@wt-front-shared/state/publication-messages';
48
+ import { UpdateEntitiesEffects } from '@wt-front-shared/state/update-entities/update-entities.effects';
49
+ import { StaticDataEffects } from '@wt-front-shared/state/static-data/static-data.effects';
50
+ import { StaticDataFacade } from '@wt-front-shared/state/static-data/static-data.facade';
51
+ import { staticDataReducer } from '@wt-front-shared/state/static-data/static-data.reducer';
52
+ import { ActionsEffects } from '@wt-front-shared/state/actions/actions.effects';
53
+ import { ActionsFacade } from '@wt-front-shared/state/actions/actions.facade';
54
+ import { actionsReducer } from '@wt-front-shared/state/actions/actions.reducer';
55
+ import { CoreFacade } from '@wt-front-shared/state/core.facade';
56
+ import { CacheDataEffects } from '@wt-front-shared/state/cache-data/cache-data.effects';
57
+ import { CacheDataFacade } from '@wt-front-shared/state/cache-data/cache-data.facade';
58
+ import { cacheDataReducer } from '@wt-front-shared/state/cache-data/cache-data.reducer';
59
+ import { ReportsFacade } from '@wt-front-shared/state/reports/reports.facade';
60
+ import { reportsReducer } from '@wt-front-shared/state/reports/reports.reducer';
61
+ import { ReportsEffects } from '@wt-front-shared/state/reports/reports.effects';
2848
62
 
2849
63
  class SafePipe {
2850
64
  constructor(sanitizer) {
@@ -2867,47 +81,14 @@ class SafePipe {
2867
81
  }
2868
82
  }
2869
83
  }
2870
- 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 });
84
+ SafePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SafePipe, deps: [{ token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Pipe });
2871
85
  SafePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: SafePipe, name: "safe" });
2872
86
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SafePipe, decorators: [{
2873
87
  type: Pipe,
2874
88
  args: [{
2875
89
  name: 'safe'
2876
90
  }]
2877
- }], ctorParameters: function () { return [{ type: i1$9.DomSanitizer }]; } });
2878
-
2879
- // import {TagModel} from '@wt-front-shared/models/models/tag';
2880
- class TextWithLinkMoreComponent {
2881
- constructor() {
2882
- this.height = 300;
2883
- }
2884
- ngOnInit() {
2885
- /*this.tagsFacade.loadTags();
2886
- this.getTags$ = this.tagsFacade.getTags$.pipe(
2887
- filter(items => !!items),
2888
- tap(items => {
2889
- if (items.length) {
2890
- this.loaded = true;
2891
- }
2892
- })
2893
- );*/
2894
- }
2895
- ngOnDestroy() {
2896
- }
2897
- toggle(textBlock) {
2898
- textBlock.classList.toggle('open');
2899
- }
2900
- }
2901
- TextWithLinkMoreComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TextWithLinkMoreComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2902
- 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 });
2903
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TextWithLinkMoreComponent, decorators: [{
2904
- type: Component,
2905
- 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"] }]
2906
- }], ctorParameters: function () { return []; }, propDecorators: { text: [{
2907
- type: Input
2908
- }], height: [{
2909
- type: Input
2910
- }] } });
91
+ }], ctorParameters: function () { return [{ type: i1.DomSanitizer }]; } });
2911
92
 
2912
93
  class CountFormatPipe {
2913
94
  transform(value, ...args) {
@@ -3012,25 +193,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
3012
193
  }]
3013
194
  }] });
3014
195
 
3015
- class TextWithLinkMoreModule {
3016
- }
3017
- TextWithLinkMoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TextWithLinkMoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3018
- TextWithLinkMoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: TextWithLinkMoreModule, declarations: [TextWithLinkMoreComponent], imports: [CommonModule,
3019
- PipesModule], exports: [TextWithLinkMoreComponent] });
3020
- TextWithLinkMoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TextWithLinkMoreModule, imports: [CommonModule,
3021
- PipesModule] });
3022
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: TextWithLinkMoreModule, decorators: [{
3023
- type: NgModule,
3024
- args: [{
3025
- declarations: [TextWithLinkMoreComponent],
3026
- imports: [
3027
- CommonModule,
3028
- PipesModule
3029
- ],
3030
- exports: [TextWithLinkMoreComponent]
3031
- }]
3032
- }] });
3033
-
3034
196
  const LoadUsers = createAction('[Users] Load Users');
3035
197
  const LoadUsersSuccess = createAction('[Users] Load Users Success');
3036
198
  const LoadUsersFail = createAction('[Users] Load Users Error');
@@ -3054,7 +216,7 @@ class UsersEffects {
3054
216
  this.routerService = routerService;
3055
217
  this.actionsService = actionsService;
3056
218
  this.notificationsFacade = notificationsFacade;
3057
- this.GlobalEvent$ = createEffect(() => this.actions$.pipe(ofType(GlobalEvent), filter$1(action => action.payload.action === 'generation-new-password-send-user'), switchMap((actionIn) => {
219
+ this.GlobalEvent$ = createEffect(() => this.actions$.pipe(ofType(GlobalEvent), filter(action => action.payload.action === 'generation-new-password-send-user'), switchMap((actionIn) => {
3058
220
  const { action, formValue } = actionIn.payload;
3059
221
  const config = {
3060
222
  action,
@@ -3104,7 +266,7 @@ class UsersEffects {
3104
266
  }
3105
267
  }));
3106
268
  })), { dispatch: false });
3107
- this.GlobalEvent2$ = createEffect(() => this.actions$.pipe(ofType(GlobalEvent), filter$1(action => action.payload.action === 'generation-new-password'), switchMap((actionIn) => {
269
+ this.GlobalEvent2$ = createEffect(() => this.actions$.pipe(ofType(GlobalEvent), filter(action => action.payload.action === 'generation-new-password'), switchMap((actionIn) => {
3108
270
  const { action, formValue } = actionIn.payload;
3109
271
  const config = {
3110
272
  action,
@@ -3182,11 +344,11 @@ class UsersEffects {
3182
344
  })));
3183
345
  }
3184
346
  }
3185
- UsersEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UsersEffects, deps: [{ token: i1$a.Actions }, { token: i1$1.Store }, { token: i3$5.UsersService }, { token: i4$2.AuthenticationService }, { token: i5$3.RouterService }, { token: i6$5.ActionsService }, { token: i2$5.NotificationsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
347
+ UsersEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UsersEffects, deps: [{ token: i1$1.Actions }, { token: i2.Store }, { token: i3.UsersService }, { token: i4.AuthenticationService }, { token: i5.RouterService }, { token: i6.ActionsService }, { token: i7.NotificationsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
3186
348
  UsersEffects.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UsersEffects });
3187
349
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UsersEffects, decorators: [{
3188
350
  type: Injectable
3189
- }], ctorParameters: function () { return [{ type: i1$a.Actions }, { type: i1$1.Store }, { type: i3$5.UsersService }, { type: i4$2.AuthenticationService }, { type: i5$3.RouterService }, { type: i6$5.ActionsService }, { type: i2$5.NotificationsFacade }]; } });
351
+ }], ctorParameters: function () { return [{ type: i1$1.Actions }, { type: i2.Store }, { type: i3.UsersService }, { type: i4.AuthenticationService }, { type: i5.RouterService }, { type: i6.ActionsService }, { type: i7.NotificationsFacade }]; } });
3190
352
 
3191
353
  const USERS_FEATURE_KEY = 'users';
3192
354
  const initialState$1 = {
@@ -3261,11 +423,11 @@ class UsersFacade {
3261
423
  this.store.dispatch(SetLoaded());
3262
424
  }
3263
425
  }
3264
- UsersFacade.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UsersFacade, deps: [{ token: i1$1.Store }], target: i0.ɵɵFactoryTarget.Injectable });
426
+ UsersFacade.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UsersFacade, deps: [{ token: i2.Store }], target: i0.ɵɵFactoryTarget.Injectable });
3265
427
  UsersFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UsersFacade });
3266
428
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: UsersFacade, decorators: [{
3267
429
  type: Injectable
3268
- }], ctorParameters: function () { return [{ type: i1$1.Store }]; } });
430
+ }], ctorParameters: function () { return [{ type: i2.Store }]; } });
3269
431
 
3270
432
  class CustomSerializer {
3271
433
  serialize(routerState) {
@@ -3373,11 +535,11 @@ class RouterEffects {
3373
535
  return path;
3374
536
  }
3375
537
  }
3376
- RouterEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RouterEffects, deps: [{ token: i1$a.Actions }, { token: i1$1.Store }, { token: i3$2.Router }, { token: i1.Location }], target: i0.ɵɵFactoryTarget.Injectable });
538
+ RouterEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RouterEffects, deps: [{ token: i1$1.Actions }, { token: i2.Store }, { token: i3$1.Router }, { token: i4$1.Location }], target: i0.ɵɵFactoryTarget.Injectable });
3377
539
  RouterEffects.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RouterEffects });
3378
540
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RouterEffects, decorators: [{
3379
541
  type: Injectable
3380
- }], ctorParameters: function () { return [{ type: i1$a.Actions }, { type: i1$1.Store }, { type: i3$2.Router }, { type: i1.Location }]; } });
542
+ }], ctorParameters: function () { return [{ type: i1$1.Actions }, { type: i2.Store }, { type: i3$1.Router }, { type: i4$1.Location }]; } });
3381
543
 
3382
544
  const ROUTER_FEATURE_KEY = 'notifications';
3383
545
  // @ts-ignore
@@ -3463,10 +625,75 @@ const SharedReducer = {
3463
625
  /*
3464
626
  * Public API Surface of wt-common
3465
627
  */
628
+ /*
629
+
630
+
631
+ export * from './lib/core/components/access-denied/access-denied.component';
632
+ export * from './lib/core/components/access-denied/access-denied.module';
633
+
634
+ export * from './lib/core/components/auto-form/auto-form.module';
635
+ export * from './lib/core/components/auto-form/containers/auto-form-main/auto-form-main.component';
636
+ export * from './lib/core/components/auto-form/containers/auto-form-show/auto-form-show.component';
637
+
638
+ export * from './lib/core/components/bread-crumbs/bread-crumbs.module';
639
+ export * from './lib/core/components/bread-crumbs/bread-crumbs.component';
640
+
641
+ export * from './lib/core/components/button/button.module';
642
+ export * from './lib/core/components/button/button.component';
643
+
644
+ export * from './lib/core/components/chips-input/chips-input.module';
645
+ export * from './lib/core/components/chips-input/chips-input.component';
646
+
647
+ export * from './lib/core/components/files-upload/files-upload.module';
648
+ export * from './lib/core/components/files-upload/files-upload/files-upload.component';
649
+ export * from './lib/core/components/files-upload/constants';
650
+
651
+ export * from './lib/core/components/form-field-publish-error/form-field-publish-error.module';
652
+ export * from './lib/core/components/form-field-publish-error/form-field-publish-error.component';
653
+
654
+ export * from './lib/core/components/header/header.module';
655
+ export * from './lib/core/components/header/header.component';
656
+
657
+ export * from './lib/core/components/icon/icon.module';
658
+ export * from './lib/core/components/icon/icon.component';
659
+
660
+ export * from './lib/core/components/image/image.module';
661
+ export * from './lib/core/components/image/image.component';
662
+
663
+ export * from './lib/core/components/input-tags/input-tags.module';
664
+ export * from './lib/core/components/input-tags/input-tags.component';
665
+
666
+ export * from './lib/core/components/pagination/pagination.module';
667
+ export * from './lib/core/components/pagination/pagination.component';
668
+
669
+ export * from './lib/core/components/panel/panel.module';
670
+ export * from './lib/core/components/panel/panel.component';
671
+
672
+ export * from './lib/core/components/smart-progress-bar/smart-progress-bar.module';
673
+ export * from './lib/core/components/smart-progress-bar/smart-progress-bar.component';
674
+
675
+ export * from './lib/core/components/spinner/spinner.module';
676
+ export * from './lib/core/components/spinner/spinner.component';
677
+
678
+ export * from './lib/core/components/star-rating/star-rating.module';
679
+ export * from './lib/core/components/star-rating/star-rating.component';
680
+
681
+ export * from './lib/core/components/sticky-sidebar/sticky-sidebar.module';
682
+ export * from './lib/core/components/sticky-sidebar/sticky-sidebar.directive';
683
+
684
+ export * from './lib/core/components/table-menu/table-menu.module';
685
+ export * from './lib/core/components/table-menu/table-menu.component';
686
+
687
+ export * from './lib/core/components/tag-cloud/tag-cloud.module';
688
+ export * from './lib/core/components/tag-cloud/tag-cloud.component';
689
+
690
+ export * from './lib/core/components/text-with-link-more/text-with-link-more.module';
691
+ export * from './lib/core/components/text-with-link-more/text-with-link-more.component';
692
+ */
3466
693
 
3467
694
  /**
3468
695
  * Generated bundle index. Do not edit.
3469
696
  */
3470
697
 
3471
- 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, SharedReducer, SharedSpinnerModule, SmartProgressBarComponent, SmartProgressBarModule, SpinnerComponent, StarRatingComponent, StarRatingModule, StickySidebarDirective, StickySidebarInnerDirective, StickySidebarModule, TableMenuComponent, TableMenuModule, TagCloudComponent, TagCloudModule, TextWithLinkMoreComponent, TextWithLinkMoreModule, defaultStickySidebarOptions, sharedEffects, sharedFacades };
698
+ export { CountFormatPipe, DateFormatPipe, PhonePipe, PipesModule, SafePipe, SharedReducer, sharedEffects, sharedFacades };
3472
699
  //# sourceMappingURL=wt-front-shared.mjs.map