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