wt-front-shared 1.0.64 → 1.0.65

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 (37) hide show
  1. package/esm2020/lib/core/+state/static-data/behavios/static-data-get-list-behavior.mjs +2 -2
  2. package/esm2020/lib/core/+state/static-data/static-data.actions.mjs +3 -1
  3. package/esm2020/lib/core/+state/static-data/static-data.effects.mjs +10 -2
  4. package/esm2020/lib/core/+state/static-data/static-data.facade.mjs +42 -18
  5. package/esm2020/lib/core/+state/static-data/static-data.reducer.mjs +34 -3
  6. package/esm2020/lib/core/+state/static-data/static-data.selectors.mjs +21 -3
  7. package/esm2020/lib/core/components/static-data/components/static-data-list-items/static-data-list-items.component.mjs +3 -3
  8. package/esm2020/lib/core/services/static-data/static-data-api.mjs +5 -1
  9. package/esm2020/lib/core/services/static-data/static-data.service.mjs +4 -1
  10. package/esm2020/lib/core/services/websocket.service.mjs +17 -11
  11. package/esm2020/lib/models/endpoints/http/request/request.mjs +3 -3
  12. package/esm2020/lib/models/endpoints/static-data/static-data-endpoint-types.mjs +2 -1
  13. package/esm2020/lib/models/endpoints/static-data/static-data-get-list/request/static-data-get-list-request-config.mjs +1 -1
  14. package/esm2020/lib/models/endpoints/static-data/static-data-get-list/request/static-data-get-list-request.mjs +4 -1
  15. package/esm2020/lib/models/endpoints/static-data/static-data-load-revisions/index.mjs +2 -0
  16. package/esm2020/lib/models/endpoints/static-data/static-data-load-revisions/request/index.mjs +2 -0
  17. package/esm2020/lib/models/endpoints/static-data/static-data-load-revisions/request/static-data-load-revisions-request-config.mjs +2 -0
  18. package/esm2020/lib/models/endpoints/static-data/static-data-load-revisions/request/static-data-load-revisions-request.mjs +21 -0
  19. package/fesm2015/wt-front-shared.mjs +516 -395
  20. package/fesm2015/wt-front-shared.mjs.map +1 -1
  21. package/fesm2020/wt-front-shared.mjs +512 -395
  22. package/fesm2020/wt-front-shared.mjs.map +1 -1
  23. package/lib/core/+state/index.d.ts +1 -1
  24. package/lib/core/+state/static-data/static-data.actions.d.ts +17 -0
  25. package/lib/core/+state/static-data/static-data.effects.d.ts +1 -0
  26. package/lib/core/+state/static-data/static-data.facade.d.ts +9 -3
  27. package/lib/core/+state/static-data/static-data.reducer.d.ts +3 -0
  28. package/lib/core/+state/static-data/static-data.selectors.d.ts +2 -0
  29. package/lib/core/services/static-data/static-data.service.d.ts +2 -0
  30. package/lib/core/services/websocket.service.d.ts +4 -2
  31. package/lib/models/endpoints/static-data/static-data-endpoint-types.d.ts +1 -0
  32. package/lib/models/endpoints/static-data/static-data-get-list/request/static-data-get-list-request-config.d.ts +1 -0
  33. package/lib/models/endpoints/static-data/static-data-load-revisions/index.d.ts +1 -0
  34. package/lib/models/endpoints/static-data/static-data-load-revisions/request/index.d.ts +2 -0
  35. package/lib/models/endpoints/static-data/static-data-load-revisions/request/static-data-load-revisions-request-config.d.ts +4 -0
  36. package/lib/models/endpoints/static-data/static-data-load-revisions/request/static-data-load-revisions-request.d.ts +11 -0
  37. package/package.json +1 -1
@@ -467,10 +467,10 @@ class Request {
467
467
  convertPagingToString(paging) {
468
468
  let res = '';
469
469
  if (paging) {
470
- if (paging.page) {
470
+ if (paging?.page) {
471
471
  res = `page=${paging.page}`;
472
472
  }
473
- if (paging.perPage) {
473
+ if (paging?.perPage) {
474
474
  res += `${res ? '&' : ''}per_page=${paging.perPage}`;
475
475
  }
476
476
  }
@@ -1061,6 +1061,7 @@ var StaticDataEndpointTypes;
1061
1061
  (function (StaticDataEndpointTypes) {
1062
1062
  StaticDataEndpointTypes["CREATE"] = "create";
1063
1063
  StaticDataEndpointTypes["DELETE"] = "delete";
1064
+ StaticDataEndpointTypes["LOAD_REVISION"] = "loadRevision";
1064
1065
  StaticDataEndpointTypes["GET_LIST"] = "getList";
1065
1066
  StaticDataEndpointTypes["GET_SUB_ROUTING"] = "getSubRouting";
1066
1067
  StaticDataEndpointTypes["GET_LIST_CATEGORIES"] = "getListCategories";
@@ -1172,6 +1173,9 @@ class StaticDataGetListRequest extends GetRequest {
1172
1173
  if (this.config.search) {
1173
1174
  url += `${url ? '&' : ''}search=${this.config.search}`;
1174
1175
  }
1176
+ if (this.config.revision) {
1177
+ url += `${url ? '&' : ''}revision=${this.config.revision}`;
1178
+ }
1175
1179
  return `${this.domain}/api/static-data/${this.config.contentType}/${this.config.subSection || 'list'}/${url ? '?' : ''}${url}`;
1176
1180
  }
1177
1181
  get headers() {
@@ -4795,6 +4799,8 @@ const ClearStaticData = createAction('[StaticData] Clear StaticData', props());
4795
4799
  const StaticDataGetSubRouting = createAction('[StaticData] StaticData Get Sub routing', props());
4796
4800
  const StaticDataGetSubRoutingSuccess = createAction('[StaticData] StaticData Get Sub routing Success', props());
4797
4801
  const StaticDataGetSubRoutingFail = createAction('[StaticData] StaticData Get Sub routing Fail', props());
4802
+ const StaticDataNewRevisions = createAction('[StaticData] StaticDataNewRevisions', props());
4803
+ const StaticDataLoadRevisions = createAction('[StaticData] StaticDataLoadRevisions', props());
4798
4804
 
4799
4805
  class StaticDataGetListBehavior extends Behavior {
4800
4806
  constructor(action, result) {
@@ -4813,7 +4819,7 @@ class StaticDataGetListBehavior extends Behavior {
4813
4819
  if (data) {
4814
4820
  returnedActions = [
4815
4821
  StaticDataGetListSuccess({
4816
- payload: { data, meta, keepState: actionPayload.keepState }
4822
+ payload: { data, meta, keepState: actionPayload?.keepState }
4817
4823
  })
4818
4824
  ];
4819
4825
  }
@@ -5537,6 +5543,26 @@ class StaticDataPatchUpdateRequest extends PatchRequest {
5537
5543
  }
5538
5544
  }
5539
5545
 
5546
+ class StaticDataLoadRevisionsRequest extends GetRequest {
5547
+ constructor(domain, config) {
5548
+ super(domain);
5549
+ this.domain = domain;
5550
+ this.config = config;
5551
+ }
5552
+ get url() {
5553
+ return `${this.domain}/api/static-data/revisions`;
5554
+ }
5555
+ get headers() {
5556
+ return this.addAuthHeaders(this.config.headers);
5557
+ }
5558
+ get params() {
5559
+ return null;
5560
+ }
5561
+ get body() {
5562
+ return null;
5563
+ }
5564
+ }
5565
+
5540
5566
  class StaticDataApi extends BaseAPI {
5541
5567
  constructor(domain) {
5542
5568
  super(domain);
@@ -5545,6 +5571,9 @@ class StaticDataApi extends BaseAPI {
5545
5571
  createRequest(paramsConfig, endPointType) {
5546
5572
  let request;
5547
5573
  switch (endPointType) {
5574
+ case StaticDataEndpointTypes.LOAD_REVISION:
5575
+ request = new StaticDataLoadRevisionsRequest(this.domain, paramsConfig);
5576
+ break;
5548
5577
  case StaticDataEndpointTypes.GET_LIST:
5549
5578
  request = new StaticDataGetListRequest(this.domain, paramsConfig);
5550
5579
  break;
@@ -5588,6 +5617,9 @@ class StaticDataService extends BaseAPIService {
5588
5617
  this.formsFacade = formsFacade;
5589
5618
  this.api = new StaticDataApi(this.config.apiUrl);
5590
5619
  }
5620
+ loadRevision(config) {
5621
+ return this.doRequest(config, StaticDataEndpointTypes.LOAD_REVISION);
5622
+ }
5591
5623
  getList(config) {
5592
5624
  return this.doRequest(config, StaticDataEndpointTypes.GET_LIST);
5593
5625
  }
@@ -5735,234 +5767,6 @@ const StorageProvider = {
5735
5767
  useFactory: cookiesProviderFactory,
5736
5768
  };
5737
5769
 
5738
- var WebsocketMessageTypes;
5739
- (function (WebsocketMessageTypes) {
5740
- WebsocketMessageTypes["USER_ACTIVITY"] = "user-activity";
5741
- })(WebsocketMessageTypes || (WebsocketMessageTypes = {}));
5742
- var WebsocketMessageSubTypes;
5743
- (function (WebsocketMessageSubTypes) {
5744
- WebsocketMessageSubTypes["CHANGE_PAGE"] = "change-page";
5745
- WebsocketMessageSubTypes["OPEN_BOOKING_FORM"] = "open-booking-form";
5746
- WebsocketMessageSubTypes["OPEN_FIRM_CONTACT"] = "open-firm-contact";
5747
- })(WebsocketMessageSubTypes || (WebsocketMessageSubTypes = {}));
5748
- class WebsocketService {
5749
- constructor(config) {
5750
- this.config = config;
5751
- this.wsIsLoaded = false;
5752
- this.maxNumbersOfReloads = 10;
5753
- this.numbersOfReloads = 0;
5754
- this.connectToWebSocket();
5755
- }
5756
- connectToWebSocket() {
5757
- if ("WebSocket" in window) {
5758
- this.ws = new WebSocket(this.config.websocketUrl);
5759
- this.ws.onopen = () => {
5760
- this.numbersOfReloads = 0;
5761
- console.info('[ document ][ WS ][ Connection opened ]', this.sessionKey || '', this.config.websocketUrl);
5762
- this.wsIsLoaded = true;
5763
- };
5764
- this.ws.onmessage = (event) => {
5765
- let message;
5766
- try {
5767
- message = JSON.parse(event.data);
5768
- }
5769
- catch (e) {
5770
- console.info('[ document ][ WS ][ Incorrect message ]', { message: event.data, error: e });
5771
- }
5772
- if (message && !this.sessionKey) {
5773
- if (message?.sessionKey) {
5774
- this.sessionKey = message.sessionKey;
5775
- }
5776
- console.info('[ document ][ WS ][ Message received ]', this.sessionKey, message);
5777
- }
5778
- };
5779
- this.ws.onclose = () => {
5780
- console.info('[ document ][ WS ][ Connection closed ]');
5781
- this.wsIsLoaded = false;
5782
- setTimeout(() => {
5783
- if (this.numbersOfReloads < this.maxNumbersOfReloads) {
5784
- this.numbersOfReloads++;
5785
- this.connectToWebSocket();
5786
- }
5787
- }, 10000);
5788
- };
5789
- }
5790
- }
5791
- wsSentMessage(type, subType, message) {
5792
- if (this.wsIsLoaded) {
5793
- this.ws.send(JSON.stringify({ type, subType, message, sessionKey: this.sessionKey }));
5794
- }
5795
- }
5796
- }
5797
- WebsocketService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: WebsocketService, deps: [{ token: CORE_CONFIG }], target: i0.ɵɵFactoryTarget.Injectable });
5798
- WebsocketService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: WebsocketService, providedIn: 'root' });
5799
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: WebsocketService, decorators: [{
5800
- type: Injectable,
5801
- args: [{
5802
- providedIn: 'root'
5803
- }]
5804
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
5805
- type: Inject,
5806
- args: [CORE_CONFIG]
5807
- }] }]; } });
5808
-
5809
- class RouterFacade {
5810
- constructor(store) {
5811
- this.store = store;
5812
- }
5813
- goTo(path, extras = null) {
5814
- console.info('[ router.facade.navigation ]', path, extras);
5815
- return this.store.dispatch(Go({ payload: { path, extras } }));
5816
- }
5817
- }
5818
- RouterFacade.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RouterFacade, deps: [{ token: i1.Store }], target: i0.ɵɵFactoryTarget.Injectable });
5819
- RouterFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RouterFacade, providedIn: "root" });
5820
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RouterFacade, decorators: [{
5821
- type: Injectable,
5822
- args: [{ providedIn: "root" }]
5823
- }], ctorParameters: function () { return [{ type: i1.Store }]; } });
5824
-
5825
- /*const MESSAGES = {
5826
- delete: {
5827
- title: 'Внимание',
5828
- text: 'Запись успешно удаленна'
5829
- },
5830
- update: {
5831
- title: 'Внимание',
5832
- text: 'Запись успешно обновлена'
5833
- },
5834
- create: {
5835
- title: 'Внимание',
5836
- text: 'Запись успешно создана'
5837
- }
5838
- };*/
5839
- class StaticDataEffects extends BaseEffects {
5840
- constructor(actions$, store, authenticationService, staticDataService, routerService, notificationsFacade) {
5841
- super(actions$, store);
5842
- this.actions$ = actions$;
5843
- this.store = store;
5844
- this.authenticationService = authenticationService;
5845
- this.staticDataService = staticDataService;
5846
- this.routerService = routerService;
5847
- this.notificationsFacade = notificationsFacade;
5848
- this.staticDataGetList$ = createEffect(() => this.actions$.pipe(ofType(StaticDataGetList), mergeMap((action) => {
5849
- const headers = this.authenticationService.loadAuthDataFromLocalStore();
5850
- const config = {
5851
- ...action.payload,
5852
- headers: { token: headers.token, uid: headers.id },
5853
- contentType: action.payload.contentType,
5854
- };
5855
- return this.staticDataService.getList(config)
5856
- .pipe(flatMap((r) => new StaticDataGetListBehavior(action, r).resolve()));
5857
- })));
5858
- this.staticDataGetSubRouting$ = createEffect(() => this.actions$.pipe(ofType(StaticDataGetSubRouting), mergeMap((action) => {
5859
- const headers = this.authenticationService.loadAuthDataFromLocalStore();
5860
- const config = {
5861
- ...action.payload,
5862
- headers: { token: headers.token, uid: headers.id },
5863
- contentType: action.payload.contentType,
5864
- routing: action.payload.routing,
5865
- };
5866
- return this.staticDataService.getSubRouting(config)
5867
- .pipe(flatMap((r) => new StaticDataGetListBehavior(action, r).resolve()));
5868
- })));
5869
- this.staticDataDelete$ = createEffect(() => this.actions$.pipe(ofType(StaticDataDelete), switchMap$1((action) => {
5870
- const headers = this.authenticationService.loadAuthDataFromLocalStore();
5871
- const config = {
5872
- ...action.payload,
5873
- headers: { token: headers.token, uid: headers.id },
5874
- contentType: action.payload.contentType,
5875
- itemId: action.payload.itemId,
5876
- };
5877
- return this.staticDataService.delete(config)
5878
- .pipe(flatMap((r) => new StaticDataDeleteBehavior(action, r).resolve()));
5879
- })));
5880
- /* @Effect({dispatch: false})
5881
- StaticDataDeleteSuccess$ = this.actions$.pipe(
5882
- ofType(StaticDataDeleteSuccess),
5883
- tap((action) => {
5884
- const {contentType, itemId} = action.payload;
5885
- this.routerService.goTo(['/static-data', contentType]);
5886
- this.notificationsFacade.addNotifications({
5887
- id: `form-message-delete-${contentType}-${itemId}`,
5888
- type: 'success',
5889
- text: MESSAGES.delete.text,
5890
- title: MESSAGES.delete.title,
5891
- timeout: NOTIFICATION_TIMEOUT
5892
- });
5893
- })
5894
- );*/
5895
- this.staticDataCreate$ = createEffect(() => this.actions$.pipe(ofType(StaticDataCreate), switchMap$1((action) => {
5896
- const headers = this.authenticationService.loadAuthDataFromLocalStore();
5897
- const config = {
5898
- ...action.payload,
5899
- headers: { token: headers.token, uid: headers.id },
5900
- formId: action.payload.formId,
5901
- contentType: action.payload.contentType,
5902
- publicApi: action.payload.publicApi,
5903
- };
5904
- return this.staticDataService.create(config)
5905
- .pipe(flatMap((r) => new StaticDataCreateBehavior(action, r).resolve()));
5906
- })));
5907
- /* @Effect({dispatch: false})
5908
- staticDataCreateSuccess$ = this.actions$.pipe(
5909
- ofType(StaticDataCreateSuccess),
5910
- tap((action) => {
5911
- const {contentType, itemId} = action.payload;
5912
- this.routerService.goTo(['/static-data', contentType, itemId]);
5913
- this.notificationsFacade.addNotifications({
5914
- id: `form-message-create-${contentType}-${itemId}`,
5915
- type: 'success',
5916
- text: MESSAGES.create.text,
5917
- title: MESSAGES.create.title,
5918
- timeout: NOTIFICATION_TIMEOUT
5919
- });
5920
- })
5921
- );*/
5922
- this.staticDataUpdate$ = createEffect(() => this.actions$.pipe(ofType(StaticDataUpdate), switchMap$1((action) => {
5923
- const headers = this.authenticationService.loadAuthDataFromLocalStore();
5924
- const config = {
5925
- ...action.payload,
5926
- headers: { token: headers.token, uid: headers.id },
5927
- formId: action.payload.formId,
5928
- contentType: action.payload.contentType,
5929
- itemId: action.payload.itemId,
5930
- };
5931
- return this.staticDataService.update(config)
5932
- .pipe(flatMap((r) => new StaticDataUpdateBehavior(action, r).resolve()));
5933
- })));
5934
- this.staticDataPatchUpdate$ = createEffect(() => this.actions$.pipe(ofType(StaticDataPatchUpdate), switchMap$1((action) => {
5935
- const headers = this.authenticationService.loadAuthDataFromLocalStore();
5936
- const config = {
5937
- ...action.payload,
5938
- headers: { token: headers.token, uid: headers.id },
5939
- formId: action.payload.formId,
5940
- contentType: action.payload.contentType,
5941
- itemId: action.payload.itemId,
5942
- };
5943
- return this.staticDataService.patchUpdate(config)
5944
- .pipe(flatMap((r) => new StaticDataPatchUpdateBehavior(action, r).resolve()));
5945
- })));
5946
- this.staticDataGetListCategories$ = createEffect(() => this.actions$.pipe(ofType(StaticDataGetListCategories), switchMap$1((action) => {
5947
- const { contentTypes } = action.payload;
5948
- const config = {
5949
- contentTypes
5950
- };
5951
- return this.staticDataService.getListCategories(config)
5952
- .pipe(flatMap((r) => new StaticDataGetListCategoriesBehavior(action, r).resolve()), catchError(error => of(StaticDataGetListCategoriesFail({
5953
- payload: {
5954
- contentTypes: action.payload.contentTypes,
5955
- }
5956
- }))));
5957
- })));
5958
- }
5959
- }
5960
- StaticDataEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StaticDataEffects, deps: [{ token: i1$2.Actions }, { token: i1.Store }, { token: AuthenticationService }, { token: StaticDataService }, { token: RouterFacade }, { token: NotificationsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
5961
- StaticDataEffects.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StaticDataEffects });
5962
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StaticDataEffects, decorators: [{
5963
- type: Injectable
5964
- }], ctorParameters: function () { return [{ type: i1$2.Actions }, { type: i1.Store }, { type: AuthenticationService }, { type: StaticDataService }, { type: RouterFacade }, { type: NotificationsFacade }]; } });
5965
-
5966
5770
  const STATIC_DATA_FEATURE_KEY$1 = 'staticData';
5967
5771
  var StaticDataMetaStatus$1;
5968
5772
  (function (StaticDataMetaStatus) {
@@ -5971,7 +5775,8 @@ var StaticDataMetaStatus$1;
5971
5775
  })(StaticDataMetaStatus$1 || (StaticDataMetaStatus$1 = {}));
5972
5776
  const initialState$3 = {
5973
5777
  list: {},
5974
- meta: {}
5778
+ meta: {},
5779
+ revisions: null
5975
5780
  };
5976
5781
  const _staticDataReducer$2 = createReducer(initialState$3, on(StaticDataGetList, (state, action) => {
5977
5782
  const { contentType, subSection } = action.payload;
@@ -6282,6 +6087,36 @@ const _staticDataReducer$2 = createReducer(initialState$3, on(StaticDataGetList,
6282
6087
  };
6283
6088
  });
6284
6089
  return newState;
6090
+ }), on(StaticDataNewRevisions, (state, action) => {
6091
+ const { data } = action.payload;
6092
+ const newState = {
6093
+ list: { ...state.list },
6094
+ meta: { ...state.meta }
6095
+ };
6096
+ const newDataKeys = data.map(item => item.staticDataKey);
6097
+ if (data?.length) {
6098
+ if (!newState.list?.revisions) {
6099
+ newState.list['revisions'] = { list: [] };
6100
+ }
6101
+ else {
6102
+ if (newState.list['revisions']?.list) {
6103
+ const newList = newState.list['revisions'].list
6104
+ .filter(item => !newDataKeys.includes(item.staticDataKey));
6105
+ if (newList) {
6106
+ newState.list['revisions'] = { list: [...newList] };
6107
+ }
6108
+ }
6109
+ }
6110
+ data.forEach(item => {
6111
+ const contentType = item.staticDataKey;
6112
+ newState.list['revisions'].list.push({
6113
+ slug: contentType,
6114
+ staticDataKey: contentType,
6115
+ revision: item.revision
6116
+ });
6117
+ });
6118
+ }
6119
+ return newState;
6285
6120
  }));
6286
6121
  function staticDataReducer(state, action) {
6287
6122
  return _staticDataReducer$2(state, action);
@@ -6290,6 +6125,442 @@ function getFormKey$1(contentType, itemId) {
6290
6125
  return `${contentType}-${itemId || '*'}`;
6291
6126
  }
6292
6127
 
6128
+ const getStaticDataState = createFeatureSelector(STATIC_DATA_FEATURE_KEY$1);
6129
+ const getStatus$1 = (contentType, subSection) => createSelector(getStaticDataState, (state) => state?.meta?.[contentType]?.[subSection]?.status);
6130
+ const getLoaded$1 = (contentType, subSection) => createSelector(getStaticDataState, (state) => state?.meta?.[contentType]?.[subSection]?.status === StaticDataMetaStatus$1.LOADED);
6131
+ const getError$1 = (contentType) => createSelector(getStaticDataState, (state) => state?.meta?.[contentType]?.error);
6132
+ const getStaticDataMeta = (contentType, subSection) => createSelector(getStaticDataState, (state) => {
6133
+ return state.meta?.[contentType]?.[subSection];
6134
+ });
6135
+ const getStaticDataRevisions = () => createSelector(getStaticDataState, (state) => {
6136
+ let result = [];
6137
+ if (state.list['revisions']?.['list']) {
6138
+ result = state.list['revisions']?.['list'];
6139
+ }
6140
+ return result;
6141
+ });
6142
+ const getStaticDataRevision = (contentType) => createSelector(getStaticDataState, (state) => {
6143
+ let result = null;
6144
+ if (state.list?.revisions?.list) {
6145
+ result = state.list?.revisions?.list.find(item => item.slug === contentType);
6146
+ }
6147
+ return result;
6148
+ });
6149
+ const getStaticData = (contentType, subSection, where) => createSelector(getStaticDataState, getLoaded$1(contentType, subSection), (state, isLoaded) => {
6150
+ let list = isLoaded ? state.list[contentType]?.[subSection] : null;
6151
+ if (where && list?.length) {
6152
+ list = list.filter(item => {
6153
+ let result = true;
6154
+ Object.keys(where)
6155
+ .forEach(whereItem => {
6156
+ if (item[whereItem] !== where[whereItem]) {
6157
+ result = false;
6158
+ }
6159
+ });
6160
+ return result;
6161
+ });
6162
+ }
6163
+ return list;
6164
+ });
6165
+ const getStaticDataForListContentTypes = (contentTypes) => createSelector(getStaticDataState, (state) => {
6166
+ let result = {};
6167
+ contentTypes.forEach(contentType => {
6168
+ result[contentType] = state.list[contentType]?.list || [];
6169
+ });
6170
+ return result;
6171
+ });
6172
+ const getStaticDataItem = (contentType, subSection, itemIdOrSlug) => createSelector(getStaticDataState, (state) => {
6173
+ const foundItem = state.list[contentType]?.[subSection]?.find(item => {
6174
+ return Number(item.id) === Number(itemIdOrSlug) || item?.slug === itemIdOrSlug || item?.slug + '.html' === itemIdOrSlug;
6175
+ }); //
6176
+ return foundItem || {};
6177
+ });
6178
+ const staticDataQuery = {
6179
+ getStatus: getStatus$1,
6180
+ getLoaded: getLoaded$1,
6181
+ getError: getError$1,
6182
+ getStaticData,
6183
+ getStaticDataItem,
6184
+ getStaticDataMeta,
6185
+ getStaticDataForListContentTypes,
6186
+ getStaticDataRevision,
6187
+ getStaticDataRevisions
6188
+ };
6189
+
6190
+ class StaticDataFacade {
6191
+ constructor(store) {
6192
+ this.store = store;
6193
+ }
6194
+ getStatus$(contentType, subSection = 'list') {
6195
+ return this.store.pipe(select(staticDataQuery.getStatus(contentType, subSection)));
6196
+ }
6197
+ getStaticDataMeta$(contentType, subSection = 'list') {
6198
+ return this.store.pipe(select(staticDataQuery.getStaticDataMeta(contentType, subSection)));
6199
+ }
6200
+ getStaticData$(contentType, subSection = 'list', options, where) {
6201
+ return this.store.pipe(select(staticDataQuery.getStaticData(contentType, subSection, where)));
6202
+ }
6203
+ getStaticDataForListContentTypes$(contentTypes) {
6204
+ return this.store.pipe(select(staticDataQuery.getStaticDataForListContentTypes(contentTypes)));
6205
+ }
6206
+ getStaticDataItem$(contentType, subSection = 'list', itemIdOrSlug) {
6207
+ return this.store.pipe(select(staticDataQuery.getStaticDataItem(contentType, subSection, itemIdOrSlug)));
6208
+ }
6209
+ getStaticDataRevision(contentType) {
6210
+ return new Promise((resolve, reject) => {
6211
+ this.store.pipe(select(staticDataQuery.getStaticDataRevision(contentType)))
6212
+ .pipe(take(1))
6213
+ .subscribe(revisionData => {
6214
+ resolve(revisionData?.revision || null);
6215
+ });
6216
+ });
6217
+ }
6218
+ loadStaticData(contentType, params, subSection = 'list') {
6219
+ const { where, fields, paging, sort, forPanel, search, keepState } = params;
6220
+ this.getStaticDataRevision(contentType)
6221
+ .then(revision => {
6222
+ this.store.dispatch(StaticDataGetList({
6223
+ payload: {
6224
+ contentType,
6225
+ subSection,
6226
+ where,
6227
+ fields,
6228
+ paging,
6229
+ sort,
6230
+ forPanel,
6231
+ search,
6232
+ keepState,
6233
+ revision
6234
+ }
6235
+ }));
6236
+ });
6237
+ }
6238
+ loadStaticDataSubRouting(contentType, routing) {
6239
+ this.store.dispatch(StaticDataGetSubRouting({
6240
+ payload: {
6241
+ contentType,
6242
+ routing
6243
+ }
6244
+ }));
6245
+ }
6246
+ loadStaticDataRevisions() {
6247
+ this.store.dispatch(StaticDataLoadRevisions({
6248
+ payload: null
6249
+ }));
6250
+ }
6251
+ clearStaticData(contentType) {
6252
+ return this.store.dispatch(ClearStaticData({ payload: { contentType } }));
6253
+ }
6254
+ delete(contentType, itemId) {
6255
+ this.store.dispatch(StaticDataDelete({
6256
+ payload: {
6257
+ contentType,
6258
+ itemId
6259
+ }
6260
+ }));
6261
+ }
6262
+ newRevisions(newRevisions) {
6263
+ this.store.dispatch(StaticDataNewRevisions({
6264
+ payload: { data: newRevisions }
6265
+ }));
6266
+ }
6267
+ create(formId, contentType, data, publicApi = false) {
6268
+ this.store.dispatch(StaticDataCreate({
6269
+ payload: {
6270
+ formId,
6271
+ contentType,
6272
+ data,
6273
+ publicApi
6274
+ }
6275
+ }));
6276
+ }
6277
+ update(formId, contentType, itemId, data, publicApi = false) {
6278
+ this.store.dispatch(StaticDataUpdate({
6279
+ payload: {
6280
+ formId,
6281
+ contentType,
6282
+ itemId,
6283
+ data,
6284
+ publicApi
6285
+ }
6286
+ }));
6287
+ }
6288
+ updateSuccess(contentType, itemId, data) {
6289
+ this.store.dispatch(StaticDataUpdateSuccess({
6290
+ payload: {
6291
+ contentType,
6292
+ itemId,
6293
+ data
6294
+ }
6295
+ }));
6296
+ }
6297
+ patchUpdate(formId, contentType, itemId, data, publicApi = false) {
6298
+ this.store.dispatch(StaticDataPatchUpdate({
6299
+ payload: {
6300
+ formId,
6301
+ contentType,
6302
+ itemId,
6303
+ data,
6304
+ publicApi
6305
+ }
6306
+ }));
6307
+ }
6308
+ staticDataLoadCategories(contentTypes) {
6309
+ this.store.dispatch(StaticDataGetListCategories({
6310
+ payload: {
6311
+ contentTypes
6312
+ }
6313
+ }));
6314
+ }
6315
+ }
6316
+ StaticDataFacade.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StaticDataFacade, deps: [{ token: i1.Store }], target: i0.ɵɵFactoryTarget.Injectable });
6317
+ StaticDataFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StaticDataFacade, providedIn: 'root' });
6318
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StaticDataFacade, decorators: [{
6319
+ type: Injectable,
6320
+ args: [{ providedIn: 'root' }]
6321
+ }], ctorParameters: function () { return [{ type: i1.Store }]; } });
6322
+
6323
+ var WebsocketMessageTypes;
6324
+ (function (WebsocketMessageTypes) {
6325
+ WebsocketMessageTypes["USER_ACTIVITY"] = "user-activity";
6326
+ })(WebsocketMessageTypes || (WebsocketMessageTypes = {}));
6327
+ var WebsocketMessageSubTypes;
6328
+ (function (WebsocketMessageSubTypes) {
6329
+ WebsocketMessageSubTypes["CHANGE_PAGE"] = "change-page";
6330
+ WebsocketMessageSubTypes["OPEN_BOOKING_FORM"] = "open-booking-form";
6331
+ WebsocketMessageSubTypes["OPEN_FIRM_CONTACT"] = "open-firm-contact";
6332
+ })(WebsocketMessageSubTypes || (WebsocketMessageSubTypes = {}));
6333
+ class WebsocketService {
6334
+ constructor(config, staticDataFacade) {
6335
+ this.config = config;
6336
+ this.staticDataFacade = staticDataFacade;
6337
+ this.wsIsLoaded = false;
6338
+ this.maxNumbersOfReloads = 10;
6339
+ this.numbersOfReloads = 0;
6340
+ this.connectToWebSocket();
6341
+ }
6342
+ connectToWebSocket() {
6343
+ if ('WebSocket' in window) {
6344
+ this.ws = new WebSocket(this.config.websocketUrl);
6345
+ this.ws.onopen = () => {
6346
+ this.numbersOfReloads = 0;
6347
+ console.info('[ WS ][ Connection opened ]', this.sessionKey || '', this.config.websocketUrl);
6348
+ this.wsIsLoaded = true;
6349
+ };
6350
+ this.ws.onmessage = (event) => {
6351
+ let message;
6352
+ try {
6353
+ message = JSON.parse(event.data);
6354
+ }
6355
+ catch (e) {
6356
+ console.error('[ WS ][ Incorrect message ]', { message: event.data, error: e });
6357
+ }
6358
+ if (message?.revisions) {
6359
+ console.info('[ WS ][ New revisions ]', message.revisions);
6360
+ this.staticDataFacade.newRevisions(message.revisions);
6361
+ }
6362
+ if (message && !this.sessionKey) {
6363
+ if (message?.sessionKey) {
6364
+ this.sessionKey = message.sessionKey;
6365
+ }
6366
+ console.info('[ WS ][ Message received ]', this.sessionKey, message);
6367
+ }
6368
+ };
6369
+ this.ws.onclose = () => {
6370
+ console.info('[ WS ][ Connection closed ]');
6371
+ this.wsIsLoaded = false;
6372
+ setTimeout(() => {
6373
+ if (this.numbersOfReloads < this.maxNumbersOfReloads) {
6374
+ this.numbersOfReloads++;
6375
+ this.connectToWebSocket();
6376
+ }
6377
+ }, 10000);
6378
+ };
6379
+ }
6380
+ }
6381
+ wsSentMessage(type, subType, message) {
6382
+ if (this.wsIsLoaded) {
6383
+ this.ws.send(JSON.stringify({ type, subType, message, sessionKey: this.sessionKey }));
6384
+ }
6385
+ }
6386
+ }
6387
+ WebsocketService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: WebsocketService, deps: [{ token: CORE_CONFIG }, { token: StaticDataFacade }], target: i0.ɵɵFactoryTarget.Injectable });
6388
+ WebsocketService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: WebsocketService, providedIn: 'root' });
6389
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: WebsocketService, decorators: [{
6390
+ type: Injectable,
6391
+ args: [{
6392
+ providedIn: 'root'
6393
+ }]
6394
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
6395
+ type: Inject,
6396
+ args: [CORE_CONFIG]
6397
+ }] }, { type: StaticDataFacade }]; } });
6398
+
6399
+ class RouterFacade {
6400
+ constructor(store) {
6401
+ this.store = store;
6402
+ }
6403
+ goTo(path, extras = null) {
6404
+ console.info('[ router.facade.navigation ]', path, extras);
6405
+ return this.store.dispatch(Go({ payload: { path, extras } }));
6406
+ }
6407
+ }
6408
+ RouterFacade.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RouterFacade, deps: [{ token: i1.Store }], target: i0.ɵɵFactoryTarget.Injectable });
6409
+ RouterFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RouterFacade, providedIn: "root" });
6410
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: RouterFacade, decorators: [{
6411
+ type: Injectable,
6412
+ args: [{ providedIn: "root" }]
6413
+ }], ctorParameters: function () { return [{ type: i1.Store }]; } });
6414
+
6415
+ /*const MESSAGES = {
6416
+ delete: {
6417
+ title: 'Внимание',
6418
+ text: 'Запись успешно удаленна'
6419
+ },
6420
+ update: {
6421
+ title: 'Внимание',
6422
+ text: 'Запись успешно обновлена'
6423
+ },
6424
+ create: {
6425
+ title: 'Внимание',
6426
+ text: 'Запись успешно создана'
6427
+ }
6428
+ };*/
6429
+ class StaticDataEffects extends BaseEffects {
6430
+ constructor(actions$, store, authenticationService, staticDataService, routerService, notificationsFacade) {
6431
+ super(actions$, store);
6432
+ this.actions$ = actions$;
6433
+ this.store = store;
6434
+ this.authenticationService = authenticationService;
6435
+ this.staticDataService = staticDataService;
6436
+ this.routerService = routerService;
6437
+ this.notificationsFacade = notificationsFacade;
6438
+ this.staticDataLoadRevision$ = createEffect(() => this.actions$.pipe(ofType(StaticDataLoadRevisions), mergeMap((action) => {
6439
+ const headers = this.authenticationService.loadAuthDataFromLocalStore();
6440
+ const config = {
6441
+ headers: { token: headers.token, uid: headers.id },
6442
+ };
6443
+ return this.staticDataService.loadRevision(config)
6444
+ .pipe(flatMap((r) => new StaticDataGetListBehavior(action, r).resolve()));
6445
+ })));
6446
+ this.staticDataGetList$ = createEffect(() => this.actions$.pipe(ofType(StaticDataGetList), mergeMap((action) => {
6447
+ const headers = this.authenticationService.loadAuthDataFromLocalStore();
6448
+ const config = {
6449
+ ...action.payload,
6450
+ headers: { token: headers.token, uid: headers.id },
6451
+ contentType: action.payload.contentType,
6452
+ };
6453
+ return this.staticDataService.getList(config)
6454
+ .pipe(flatMap((r) => new StaticDataGetListBehavior(action, r).resolve()));
6455
+ })));
6456
+ this.staticDataGetSubRouting$ = createEffect(() => this.actions$.pipe(ofType(StaticDataGetSubRouting), mergeMap((action) => {
6457
+ const headers = this.authenticationService.loadAuthDataFromLocalStore();
6458
+ const config = {
6459
+ ...action.payload,
6460
+ headers: { token: headers.token, uid: headers.id },
6461
+ contentType: action.payload.contentType,
6462
+ routing: action.payload.routing,
6463
+ };
6464
+ return this.staticDataService.getSubRouting(config)
6465
+ .pipe(flatMap((r) => new StaticDataGetListBehavior(action, r).resolve()));
6466
+ })));
6467
+ this.staticDataDelete$ = createEffect(() => this.actions$.pipe(ofType(StaticDataDelete), switchMap$1((action) => {
6468
+ const headers = this.authenticationService.loadAuthDataFromLocalStore();
6469
+ const config = {
6470
+ ...action.payload,
6471
+ headers: { token: headers.token, uid: headers.id },
6472
+ contentType: action.payload.contentType,
6473
+ itemId: action.payload.itemId,
6474
+ };
6475
+ return this.staticDataService.delete(config)
6476
+ .pipe(flatMap((r) => new StaticDataDeleteBehavior(action, r).resolve()));
6477
+ })));
6478
+ /* @Effect({dispatch: false})
6479
+ StaticDataDeleteSuccess$ = this.actions$.pipe(
6480
+ ofType(StaticDataDeleteSuccess),
6481
+ tap((action) => {
6482
+ const {contentType, itemId} = action.payload;
6483
+ this.routerService.goTo(['/static-data', contentType]);
6484
+ this.notificationsFacade.addNotifications({
6485
+ id: `form-message-delete-${contentType}-${itemId}`,
6486
+ type: 'success',
6487
+ text: MESSAGES.delete.text,
6488
+ title: MESSAGES.delete.title,
6489
+ timeout: NOTIFICATION_TIMEOUT
6490
+ });
6491
+ })
6492
+ );*/
6493
+ this.staticDataCreate$ = createEffect(() => this.actions$.pipe(ofType(StaticDataCreate), switchMap$1((action) => {
6494
+ const headers = this.authenticationService.loadAuthDataFromLocalStore();
6495
+ const config = {
6496
+ ...action.payload,
6497
+ headers: { token: headers.token, uid: headers.id },
6498
+ formId: action.payload.formId,
6499
+ contentType: action.payload.contentType,
6500
+ publicApi: action.payload.publicApi,
6501
+ };
6502
+ return this.staticDataService.create(config)
6503
+ .pipe(flatMap((r) => new StaticDataCreateBehavior(action, r).resolve()));
6504
+ })));
6505
+ /* @Effect({dispatch: false})
6506
+ staticDataCreateSuccess$ = this.actions$.pipe(
6507
+ ofType(StaticDataCreateSuccess),
6508
+ tap((action) => {
6509
+ const {contentType, itemId} = action.payload;
6510
+ this.routerService.goTo(['/static-data', contentType, itemId]);
6511
+ this.notificationsFacade.addNotifications({
6512
+ id: `form-message-create-${contentType}-${itemId}`,
6513
+ type: 'success',
6514
+ text: MESSAGES.create.text,
6515
+ title: MESSAGES.create.title,
6516
+ timeout: NOTIFICATION_TIMEOUT
6517
+ });
6518
+ })
6519
+ );*/
6520
+ this.staticDataUpdate$ = createEffect(() => this.actions$.pipe(ofType(StaticDataUpdate), switchMap$1((action) => {
6521
+ const headers = this.authenticationService.loadAuthDataFromLocalStore();
6522
+ const config = {
6523
+ ...action.payload,
6524
+ headers: { token: headers.token, uid: headers.id },
6525
+ formId: action.payload.formId,
6526
+ contentType: action.payload.contentType,
6527
+ itemId: action.payload.itemId,
6528
+ };
6529
+ return this.staticDataService.update(config)
6530
+ .pipe(flatMap((r) => new StaticDataUpdateBehavior(action, r).resolve()));
6531
+ })));
6532
+ this.staticDataPatchUpdate$ = createEffect(() => this.actions$.pipe(ofType(StaticDataPatchUpdate), switchMap$1((action) => {
6533
+ const headers = this.authenticationService.loadAuthDataFromLocalStore();
6534
+ const config = {
6535
+ ...action.payload,
6536
+ headers: { token: headers.token, uid: headers.id },
6537
+ formId: action.payload.formId,
6538
+ contentType: action.payload.contentType,
6539
+ itemId: action.payload.itemId,
6540
+ };
6541
+ return this.staticDataService.patchUpdate(config)
6542
+ .pipe(flatMap((r) => new StaticDataPatchUpdateBehavior(action, r).resolve()));
6543
+ })));
6544
+ this.staticDataGetListCategories$ = createEffect(() => this.actions$.pipe(ofType(StaticDataGetListCategories), switchMap$1((action) => {
6545
+ const { contentTypes } = action.payload;
6546
+ const config = {
6547
+ contentTypes
6548
+ };
6549
+ return this.staticDataService.getListCategories(config)
6550
+ .pipe(flatMap((r) => new StaticDataGetListCategoriesBehavior(action, r).resolve()), catchError(error => of(StaticDataGetListCategoriesFail({
6551
+ payload: {
6552
+ contentTypes: action.payload.contentTypes,
6553
+ }
6554
+ }))));
6555
+ })));
6556
+ }
6557
+ }
6558
+ StaticDataEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StaticDataEffects, deps: [{ token: i1$2.Actions }, { token: i1.Store }, { token: AuthenticationService }, { token: StaticDataService }, { token: RouterFacade }, { token: NotificationsFacade }], target: i0.ɵɵFactoryTarget.Injectable });
6559
+ StaticDataEffects.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StaticDataEffects });
6560
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StaticDataEffects, decorators: [{
6561
+ type: Injectable
6562
+ }], ctorParameters: function () { return [{ type: i1$2.Actions }, { type: i1.Store }, { type: AuthenticationService }, { type: StaticDataService }, { type: RouterFacade }, { type: NotificationsFacade }]; } });
6563
+
6293
6564
  const ActionsSend = createAction('[Actions] Actions Create', props());
6294
6565
  const ActionsSendSuccess = createAction('[Actions] Actions Create Success', props());
6295
6566
  const ActionsSendFail = createAction('[Actions] Actions Create Error', props());
@@ -6676,17 +6947,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
6676
6947
  }], ctorParameters: function () { return [{ type: i1$2.Actions }, { type: i1.Store }, { type: AuthenticationService }, { type: ReportsService }]; } });
6677
6948
 
6678
6949
  const getActionsState = createFeatureSelector(STATIC_DATA_FEATURE_KEY);
6679
- const getStatus$1 = (action, actionId) => createSelector(getActionsState, (state) => state?.meta?.[`${action}-${actionId}`]?.status);
6680
- const getLoaded$1 = (action, actionId) => createSelector(getActionsState, (state) => state?.meta?.[`${action}-${actionId}`]?.status);
6681
- const getError$1 = (action) => createSelector(getActionsState, (state) => state?.meta?.[action]?.error);
6950
+ const getStatus = (action, actionId) => createSelector(getActionsState, (state) => state?.meta?.[`${action}-${actionId}`]?.status);
6951
+ const getLoaded = (action, actionId) => createSelector(getActionsState, (state) => state?.meta?.[`${action}-${actionId}`]?.status);
6952
+ const getError = (action) => createSelector(getActionsState, (state) => state?.meta?.[action]?.error);
6682
6953
  const getActionMeta = (action, actionId) => createSelector(getActionsState, (state) => state.meta?.[`${action}-${actionId}`]);
6683
6954
  const getActionItem = (action, actionId) => createSelector(getActionsState, (state) => {
6684
6955
  return state.list[`${action}-${actionId}`] || {};
6685
6956
  });
6686
6957
  const actionsQuery = {
6687
- getStatus: getStatus$1,
6688
- getLoaded: getLoaded$1,
6689
- getError: getError$1,
6958
+ getStatus,
6959
+ getLoaded,
6960
+ getError,
6690
6961
  getActionItem,
6691
6962
  getActionMeta
6692
6963
  };
@@ -6846,160 +7117,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
6846
7117
  args: [{ providedIn: "root" }]
6847
7118
  }], ctorParameters: function () { return [{ type: i1.Store }]; } });
6848
7119
 
6849
- const getStaticDataState = createFeatureSelector(STATIC_DATA_FEATURE_KEY$1);
6850
- const getStatus = (contentType, subSection) => createSelector(getStaticDataState, (state) => state?.meta?.[contentType]?.[subSection]?.status);
6851
- const getLoaded = (contentType, subSection) => createSelector(getStaticDataState, (state) => state?.meta?.[contentType]?.[subSection]?.status === StaticDataMetaStatus$1.LOADED);
6852
- const getError = (contentType) => createSelector(getStaticDataState, (state) => state?.meta?.[contentType]?.error);
6853
- const getStaticDataMeta = (contentType, subSection) => createSelector(getStaticDataState, (state) => state.meta?.[contentType]?.[subSection]);
6854
- const getStaticData = (contentType, subSection, where) => createSelector(getStaticDataState, getLoaded(contentType, subSection), (state, isLoaded) => {
6855
- let list = isLoaded ? state.list[contentType]?.[subSection] : null;
6856
- if (where && list?.length) {
6857
- list = list.filter(item => {
6858
- let result = true;
6859
- Object.keys(where)
6860
- .forEach(whereItem => {
6861
- if (item[whereItem] !== where[whereItem]) {
6862
- result = false;
6863
- }
6864
- });
6865
- return result;
6866
- });
6867
- }
6868
- return list;
6869
- });
6870
- const getStaticDataForListContentTypes = (contentTypes) => createSelector(getStaticDataState, (state) => {
6871
- let result = {};
6872
- contentTypes.forEach(contentType => {
6873
- result[contentType] = state.list[contentType]?.list || [];
6874
- });
6875
- return result;
6876
- });
6877
- const getStaticDataItem = (contentType, subSection, itemIdOrSlug) => createSelector(getStaticDataState, (state) => {
6878
- const foundItem = state.list[contentType]?.[subSection]?.find(item => {
6879
- return Number(item.id) === Number(itemIdOrSlug) || item?.slug === itemIdOrSlug || item?.slug + '.html' === itemIdOrSlug;
6880
- }); //
6881
- return foundItem || {};
6882
- });
6883
- const staticDataQuery = {
6884
- getStatus,
6885
- getLoaded,
6886
- getError,
6887
- getStaticData,
6888
- getStaticDataItem,
6889
- getStaticDataMeta,
6890
- getStaticDataForListContentTypes
6891
- };
6892
-
6893
- class StaticDataFacade {
6894
- constructor(store) {
6895
- this.store = store;
6896
- }
6897
- getStatus$(contentType, subSection = 'list') {
6898
- return this.store.pipe(select(staticDataQuery.getStatus(contentType, subSection)));
6899
- }
6900
- getStaticDataMeta$(contentType, subSection = 'list') {
6901
- return this.store.pipe(select(staticDataQuery.getStaticDataMeta(contentType, subSection)));
6902
- }
6903
- getStaticData$(contentType, subSection = 'list', options, where) {
6904
- return this.store.pipe(select(staticDataQuery.getStaticData(contentType, subSection, where)));
6905
- }
6906
- getStaticDataForListContentTypes$(contentTypes) {
6907
- return this.store.pipe(select(staticDataQuery.getStaticDataForListContentTypes(contentTypes)));
6908
- }
6909
- getStaticDataItem$(contentType, subSection = 'list', itemIdOrSlug) {
6910
- return this.store.pipe(select(staticDataQuery.getStaticDataItem(contentType, subSection, itemIdOrSlug)));
6911
- }
6912
- loadStaticData(contentType, params, subSection = 'list') {
6913
- const { where, fields, paging, sort, forPanel, search, keepState } = params;
6914
- this.store.dispatch(StaticDataGetList({
6915
- payload: {
6916
- contentType,
6917
- subSection,
6918
- where,
6919
- fields,
6920
- paging,
6921
- sort,
6922
- forPanel,
6923
- search,
6924
- keepState
6925
- }
6926
- }));
6927
- }
6928
- loadStaticDataSubRouting(contentType, routing) {
6929
- this.store.dispatch(StaticDataGetSubRouting({
6930
- payload: {
6931
- contentType,
6932
- routing
6933
- }
6934
- }));
6935
- }
6936
- clearStaticData(contentType) {
6937
- return this.store.dispatch(ClearStaticData({ payload: { contentType } }));
6938
- }
6939
- delete(contentType, itemId) {
6940
- this.store.dispatch(StaticDataDelete({
6941
- payload: {
6942
- contentType,
6943
- itemId
6944
- }
6945
- }));
6946
- }
6947
- create(formId, contentType, data, publicApi = false) {
6948
- this.store.dispatch(StaticDataCreate({
6949
- payload: {
6950
- formId,
6951
- contentType,
6952
- data,
6953
- publicApi
6954
- }
6955
- }));
6956
- }
6957
- update(formId, contentType, itemId, data, publicApi = false) {
6958
- this.store.dispatch(StaticDataUpdate({
6959
- payload: {
6960
- formId,
6961
- contentType,
6962
- itemId,
6963
- data,
6964
- publicApi
6965
- }
6966
- }));
6967
- }
6968
- updateSuccess(contentType, itemId, data) {
6969
- this.store.dispatch(StaticDataUpdateSuccess({
6970
- payload: {
6971
- contentType,
6972
- itemId,
6973
- data
6974
- }
6975
- }));
6976
- }
6977
- patchUpdate(formId, contentType, itemId, data, publicApi = false) {
6978
- this.store.dispatch(StaticDataPatchUpdate({
6979
- payload: {
6980
- formId,
6981
- contentType,
6982
- itemId,
6983
- data,
6984
- publicApi
6985
- }
6986
- }));
6987
- }
6988
- staticDataLoadCategories(contentTypes) {
6989
- this.store.dispatch(StaticDataGetListCategories({
6990
- payload: {
6991
- contentTypes
6992
- }
6993
- }));
6994
- }
6995
- }
6996
- StaticDataFacade.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StaticDataFacade, deps: [{ token: i1.Store }], target: i0.ɵɵFactoryTarget.Injectable });
6997
- StaticDataFacade.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StaticDataFacade, providedIn: "root" });
6998
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StaticDataFacade, decorators: [{
6999
- type: Injectable,
7000
- args: [{ providedIn: "root" }]
7001
- }], ctorParameters: function () { return [{ type: i1.Store }]; } });
7002
-
7003
7120
  class FormDeleteFileFacade {
7004
7121
  constructor(store) {
7005
7122
  this.store = store;
@@ -10804,10 +10921,10 @@ class StaticDataListItemsComponent {
10804
10921
  }
10805
10922
  }
10806
10923
  StaticDataListItemsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StaticDataListItemsComponent, deps: [{ token: i1$4.MatDialog }, { token: RightService }, { token: StaticDataFacade }, { token: i0.ChangeDetectorRef }, { token: RouterFacade }], target: i0.ɵɵFactoryTarget.Component });
10807
- StaticDataListItemsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: StaticDataListItemsComponent, selector: "app-static-data-list-items", inputs: { staticDataConfiguration: "staticDataConfiguration", contentType: "contentType", customTitle: "customTitle", addTitle: "addTitle", parentSection: "parentSection", parentItemId: "parentItemId", showPanelHeader: "showPanelHeader", parentData: "parentData", parentSectionHashtag: "parentSectionHashtag", autoCompleteFields: "autoCompleteFields", filteringQuery: "filteringQuery" }, viewQueries: [{ propertyName: "paginator", first: true, predicate: MatPaginator, descendants: true, static: true }, { propertyName: "sort", first: true, predicate: MatSort, descendants: true, static: true }, { propertyName: "searchInput", first: true, predicate: ["search"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<ng-container *ngIf=\"(userRights$ | async) as userRights\">\n <ng-container *ngIf=\"(staticDataMeta$ | async) as staticDataObj\">\n <div class=\"page-layout simple fullwidth angular-material-elements\">\n <shared-panel-header *ngIf=\"showPanelHeader\" [title]=\"title\"></shared-panel-header>\n\n <h1>{{title}}</h1>\n <div class=\"content p-24\">\n <div *ngIf=\"staticSection.options?.search\" class=\"top-bar\">\n <div class=\"search-block\">\n \u041F\u043E\u0438\u0441\u043A:&nbsp; <input #search class=\"search-input\">\n <shared-button\n icon=\"search\"\n color=\"accent\"\n iconColor=\"black\"\n (click)=\"searchHandle(search.value)\"></shared-button>\n <div class=\"cancel-button\">\n <shared-button\n *ngIf=\"search.value\"\n icon=\"clear\"\n color=\"warn\"\n iconColor=\"black\"\n (click)=\"searchCancelHandle()\"></shared-button>\n </div>\n </div>\n </div>\n <ng-container *ngIf=\"staticData$ | async as staticData\">\n <div class=\"center-block p-10\">\n <app-static-data-items [items]=\"staticData\"\n [userRights]=\"userRights\"\n [staticSection]=\"staticSection\"\n [contentType]=\"contentType\"\n [queryParams]=\"queryParams\"\n (delete)=\"deleteEvent($event)\"></app-static-data-items>\n </div>\n <div *ngIf=\"staticDataObj.meta.perPage !== -1\">\n <mat-paginator\n *ngIf=\"totalCount\"\n [length]=\"staticDataObj.meta.totalCount\"\n [pageIndex]=\"pageIndex\"\n [pageSizeOptions]=\"[10, 25, 100]\"\n (page)=\"changePage($event)\"></mat-paginator>\n </div>\n </ng-container>\n <div *ngIf=\"isLoaded && !totalCount\">\u0421\u043F\u0438\u0441\u043E\u043A \u043F\u0443\u0441\u0442</div>\n <div *ngIf=\"userRights[0]\" class=\"text-center mt-30 mb-30\">\n <shared-button\n id=\"go-to-create-form-button\"\n class=\"mr-5\"\n iconSize=\"small\"\n icon=\"add\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"accent\"\n (click)=\"addHandle()\">{{ addTitle || '\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C' }}\n </shared-button>\n </div>\n </div>\n <ng-container *ngIf=\"loaded$|async; let loaded;\">\n <shared-spinner *ngIf=\"!loaded\"></shared-spinner>\n </ng-container>\n </div>\n </ng-container>\n</ng-container>\n", styles: [".top-bar{background:#c7deef;display:flex;justify-content:flex-end}.top-bar .search-block{display:flex;align-content:center;align-items:center}.top-bar .search-block .search-input{background-color:#adcde8!important;padding:11px 10px!important}.top-bar .search-block .cancel-button{width:64px;height:40px}\n"], dependencies: [{ kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i6$3.MatPaginator, selector: "mat-paginator", inputs: ["disabled"], exportAs: ["matPaginator"] }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { 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: "component", type: PanelHeaderComponent, selector: "shared-panel-header", inputs: ["title", "parentTitle", "parentUrl"] }, { kind: "component", type: StaticDataItemsComponent, selector: "app-static-data-items", inputs: ["items", "contentType", "queryParams", "userRights", "staticSection"], outputs: ["delete"] }, { kind: "pipe", type: i1$3.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
10924
+ StaticDataListItemsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: StaticDataListItemsComponent, selector: "app-static-data-list-items", inputs: { staticDataConfiguration: "staticDataConfiguration", contentType: "contentType", customTitle: "customTitle", addTitle: "addTitle", parentSection: "parentSection", parentItemId: "parentItemId", showPanelHeader: "showPanelHeader", parentData: "parentData", parentSectionHashtag: "parentSectionHashtag", autoCompleteFields: "autoCompleteFields", filteringQuery: "filteringQuery" }, viewQueries: [{ propertyName: "paginator", first: true, predicate: MatPaginator, descendants: true, static: true }, { propertyName: "sort", first: true, predicate: MatSort, descendants: true, static: true }, { propertyName: "searchInput", first: true, predicate: ["search"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<ng-container *ngIf=\"(userRights$ | async) as userRights\">\n <ng-container *ngIf=\"(staticDataMeta$ | async) as staticDataObj\">\n <div class=\"page-layout simple fullwidth angular-material-elements\">\n <shared-panel-header *ngIf=\"showPanelHeader\" [title]=\"title\"></shared-panel-header>\n\n <h1>{{title}}</h1>\n <div class=\"content p-24\">\n <div *ngIf=\"staticSection.options?.search\" class=\"top-bar\">\n <div class=\"search-block\">\n \u041F\u043E\u0438\u0441\u043A:&nbsp; <input #search class=\"search-input\">\n <shared-button\n icon=\"search\"\n color=\"accent\"\n iconColor=\"black\"\n (click)=\"searchHandle(search.value)\"></shared-button>\n <div class=\"cancel-button\">\n <shared-button\n *ngIf=\"search.value\"\n icon=\"clear\"\n color=\"warn\"\n iconColor=\"black\"\n (click)=\"searchCancelHandle()\"></shared-button>\n </div>\n </div>\n </div>\n <ng-container *ngIf=\"staticData$ | async as staticData\">\n <div class=\"center-block p-10\">\n <app-static-data-items [items]=\"staticData\"\n [userRights]=\"userRights\"\n [staticSection]=\"staticSection\"\n [contentType]=\"contentType\"\n [queryParams]=\"queryParams\"\n (delete)=\"deleteEvent($event)\"></app-static-data-items>\n </div>\n <div *ngIf=\"staticDataObj.meta?.perPage !== -1\">\n <mat-paginator\n *ngIf=\"totalCount\"\n [length]=\"staticDataObj.meta.totalCount\"\n [pageIndex]=\"pageIndex\"\n [pageSizeOptions]=\"[10, 25, 100]\"\n (page)=\"changePage($event)\"></mat-paginator>\n </div>\n </ng-container>\n <div *ngIf=\"isLoaded && !totalCount\">\u0421\u043F\u0438\u0441\u043E\u043A \u043F\u0443\u0441\u0442</div>\n <div *ngIf=\"userRights[0]\" class=\"text-center mt-30 mb-30\">\n <shared-button\n id=\"go-to-create-form-button\"\n class=\"mr-5\"\n iconSize=\"small\"\n icon=\"add\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"accent\"\n (click)=\"addHandle()\">{{ addTitle || '\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C' }}\n </shared-button>\n </div>\n </div>\n <ng-container *ngIf=\"loaded$|async; let loaded;\">\n <shared-spinner *ngIf=\"!loaded\"></shared-spinner>\n </ng-container>\n </div>\n </ng-container>\n</ng-container>\n", styles: [".top-bar{background:#c7deef;display:flex;justify-content:flex-end}.top-bar .search-block{display:flex;align-content:center;align-items:center}.top-bar .search-block .search-input{background-color:#adcde8!important;padding:11px 10px!important}.top-bar .search-block .cancel-button{width:64px;height:40px}\n"], dependencies: [{ kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i6$3.MatPaginator, selector: "mat-paginator", inputs: ["disabled"], exportAs: ["matPaginator"] }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { 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: "component", type: PanelHeaderComponent, selector: "shared-panel-header", inputs: ["title", "parentTitle", "parentUrl"] }, { kind: "component", type: StaticDataItemsComponent, selector: "app-static-data-items", inputs: ["items", "contentType", "queryParams", "userRights", "staticSection"], outputs: ["delete"] }, { kind: "pipe", type: i1$3.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
10808
10925
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: StaticDataListItemsComponent, decorators: [{
10809
10926
  type: Component,
10810
- args: [{ selector: 'app-static-data-list-items', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"(userRights$ | async) as userRights\">\n <ng-container *ngIf=\"(staticDataMeta$ | async) as staticDataObj\">\n <div class=\"page-layout simple fullwidth angular-material-elements\">\n <shared-panel-header *ngIf=\"showPanelHeader\" [title]=\"title\"></shared-panel-header>\n\n <h1>{{title}}</h1>\n <div class=\"content p-24\">\n <div *ngIf=\"staticSection.options?.search\" class=\"top-bar\">\n <div class=\"search-block\">\n \u041F\u043E\u0438\u0441\u043A:&nbsp; <input #search class=\"search-input\">\n <shared-button\n icon=\"search\"\n color=\"accent\"\n iconColor=\"black\"\n (click)=\"searchHandle(search.value)\"></shared-button>\n <div class=\"cancel-button\">\n <shared-button\n *ngIf=\"search.value\"\n icon=\"clear\"\n color=\"warn\"\n iconColor=\"black\"\n (click)=\"searchCancelHandle()\"></shared-button>\n </div>\n </div>\n </div>\n <ng-container *ngIf=\"staticData$ | async as staticData\">\n <div class=\"center-block p-10\">\n <app-static-data-items [items]=\"staticData\"\n [userRights]=\"userRights\"\n [staticSection]=\"staticSection\"\n [contentType]=\"contentType\"\n [queryParams]=\"queryParams\"\n (delete)=\"deleteEvent($event)\"></app-static-data-items>\n </div>\n <div *ngIf=\"staticDataObj.meta.perPage !== -1\">\n <mat-paginator\n *ngIf=\"totalCount\"\n [length]=\"staticDataObj.meta.totalCount\"\n [pageIndex]=\"pageIndex\"\n [pageSizeOptions]=\"[10, 25, 100]\"\n (page)=\"changePage($event)\"></mat-paginator>\n </div>\n </ng-container>\n <div *ngIf=\"isLoaded && !totalCount\">\u0421\u043F\u0438\u0441\u043E\u043A \u043F\u0443\u0441\u0442</div>\n <div *ngIf=\"userRights[0]\" class=\"text-center mt-30 mb-30\">\n <shared-button\n id=\"go-to-create-form-button\"\n class=\"mr-5\"\n iconSize=\"small\"\n icon=\"add\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"accent\"\n (click)=\"addHandle()\">{{ addTitle || '\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C' }}\n </shared-button>\n </div>\n </div>\n <ng-container *ngIf=\"loaded$|async; let loaded;\">\n <shared-spinner *ngIf=\"!loaded\"></shared-spinner>\n </ng-container>\n </div>\n </ng-container>\n</ng-container>\n", styles: [".top-bar{background:#c7deef;display:flex;justify-content:flex-end}.top-bar .search-block{display:flex;align-content:center;align-items:center}.top-bar .search-block .search-input{background-color:#adcde8!important;padding:11px 10px!important}.top-bar .search-block .cancel-button{width:64px;height:40px}\n"] }]
10927
+ args: [{ selector: 'app-static-data-list-items', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"(userRights$ | async) as userRights\">\n <ng-container *ngIf=\"(staticDataMeta$ | async) as staticDataObj\">\n <div class=\"page-layout simple fullwidth angular-material-elements\">\n <shared-panel-header *ngIf=\"showPanelHeader\" [title]=\"title\"></shared-panel-header>\n\n <h1>{{title}}</h1>\n <div class=\"content p-24\">\n <div *ngIf=\"staticSection.options?.search\" class=\"top-bar\">\n <div class=\"search-block\">\n \u041F\u043E\u0438\u0441\u043A:&nbsp; <input #search class=\"search-input\">\n <shared-button\n icon=\"search\"\n color=\"accent\"\n iconColor=\"black\"\n (click)=\"searchHandle(search.value)\"></shared-button>\n <div class=\"cancel-button\">\n <shared-button\n *ngIf=\"search.value\"\n icon=\"clear\"\n color=\"warn\"\n iconColor=\"black\"\n (click)=\"searchCancelHandle()\"></shared-button>\n </div>\n </div>\n </div>\n <ng-container *ngIf=\"staticData$ | async as staticData\">\n <div class=\"center-block p-10\">\n <app-static-data-items [items]=\"staticData\"\n [userRights]=\"userRights\"\n [staticSection]=\"staticSection\"\n [contentType]=\"contentType\"\n [queryParams]=\"queryParams\"\n (delete)=\"deleteEvent($event)\"></app-static-data-items>\n </div>\n <div *ngIf=\"staticDataObj.meta?.perPage !== -1\">\n <mat-paginator\n *ngIf=\"totalCount\"\n [length]=\"staticDataObj.meta.totalCount\"\n [pageIndex]=\"pageIndex\"\n [pageSizeOptions]=\"[10, 25, 100]\"\n (page)=\"changePage($event)\"></mat-paginator>\n </div>\n </ng-container>\n <div *ngIf=\"isLoaded && !totalCount\">\u0421\u043F\u0438\u0441\u043E\u043A \u043F\u0443\u0441\u0442</div>\n <div *ngIf=\"userRights[0]\" class=\"text-center mt-30 mb-30\">\n <shared-button\n id=\"go-to-create-form-button\"\n class=\"mr-5\"\n iconSize=\"small\"\n icon=\"add\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"accent\"\n (click)=\"addHandle()\">{{ addTitle || '\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C' }}\n </shared-button>\n </div>\n </div>\n <ng-container *ngIf=\"loaded$|async; let loaded;\">\n <shared-spinner *ngIf=\"!loaded\"></shared-spinner>\n </ng-container>\n </div>\n </ng-container>\n</ng-container>\n", styles: [".top-bar{background:#c7deef;display:flex;justify-content:flex-end}.top-bar .search-block{display:flex;align-content:center;align-items:center}.top-bar .search-block .search-input{background-color:#adcde8!important;padding:11px 10px!important}.top-bar .search-block .cancel-button{width:64px;height:40px}\n"] }]
10811
10928
  }], ctorParameters: function () { return [{ type: i1$4.MatDialog }, { type: RightService }, { type: StaticDataFacade }, { type: i0.ChangeDetectorRef }, { type: RouterFacade }]; }, propDecorators: { staticDataConfiguration: [{
10812
10929
  type: Input
10813
10930
  }], contentType: [{
@@ -12720,5 +12837,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
12720
12837
  * Generated bundle index. Do not edit.
12721
12838
  */
12722
12839
 
12723
- export { AccessDeniedComponent, AccessDeniedModule, ActionsEndpointTypes, ActionsFacade, ActionsMetaStatus, ActionsModel, ActionsSendRequest, ActionsService, AsyncValidators, AsyncValidatorsMessages, AsyncValidatorsType, AuthEndpointTypes, AuthenticationService, AutoFormMainComponent, AutoFormModule, AutoFormService, AutoFormShowComponent, Back, BaseAPI, BaseAPIService, BaseAutoFormService, BaseErrors, BaseModelAdapter, BaseResponseFactory, BreadCrumbsComponent, BreadCrumbsModule, ButtonComponent, ButtonModule, CORE_CONFIG, CacheDataEndpointTypes, CacheDataFacade, CacheDataModel, CacheDataService, ChipsInputComponent, ChipsInputModule, ClearStaticData, CommonDialogComponent, CookiesService, CoreFacade, CoreLoadError, CoreLoaded, CountFormatPipe, CreateRequestListener, DateFormatPipe, DeleteComponent, DeleteRequest, DeleteRequestWaiter, DialogService, DialogsModule, EntitiesReportsRequest, Entity, EntityQueryFieldNames, EntitySortType, EntityType, FieldType, FileFieldNames, FileModel, FileUpdateModel, FilesDeleteRequest, FilesDeleteResponseFactory, FilesEndpointTypes, FilesFacade, FilesLoadRequest, FilesLoadResponseFactory, FilesService, FilesSortRequest, FilesSortResponseFactory, FilesUpdateRequest, FilesUpdateResponseFactory, FilesUploadComponent, FilesUploadModule, FormDeleteFileBaseEndpointTypes, FormDeleteFileFacade, FormDeleteFileRequest, FormDeleteFileService, FormErrorModel, FormErrorsFacade, FormFieldErrorComponent, FormFieldErrorModule, FormFieldPublishErrorComponent, FormFieldPublishErrorModule, FormValidationCheckRequest, FormValidationEndpointTypes, FormValidationFacade, FormValidationService, FormsFacade, Forward, GetCacheDataRequest, GetRequest, GlobalErrorMessages, GlobalEvent, Go, GoFail, HeaderComponent, HeaderModule, HeadersInterceptor, IFormFieldFormat, IconComponent, ImageComponent, ImageModule, InputTagsComponent, InputTagsModule, JwtInterceptor, LoadCore, LoadUsers, LoadUsersFail, LoadUsersSuccess, LoginSend, LoginSendCreateRequest, LoginSendCreateResponseFactory, LoginSendFail, LoginSendSuccess, MainConst, MainFacade, MapperRegistry, MapperUtil, MetaModel, NOTIFICATION_LONG_TIMEOUT, NOTIFICATION_TIMEOUT, NotificationAdd, NotificationAddFail, NotificationModel, NotificationShowingType, NotificationsEffects, NotificationsFacade, PaginationComponent, PaginationModule, PagingModel, PanelComponent, PanelHeaderComponent, PanelHeaderModule, PanelModule, PasswordRules, PatchRequest, PhonePipe, PipesModule, PostRequest, PublicationMessageFieldNames, PublicationMessagesFacade, PublishDataModel, PublishEndpointTypes, PublishErrors, PublishPostRequest, PublishResultModel, PublishService, PutRequest, QueryFieldsAdapter, ReducerService, RefreshToken, RefreshTokenFail, RefreshTokenSuccess, ReportsEndpointTypes, ReportsFacade, ReportsModel, ReportsService, Request, RequestMethods, RequestStatus, RequestsEffects, RequestsFacade, ResponseStatus, RouterEffects, RouterFacade, RouterService, STICKY_SIDEBAR_OPTIONS, SafePipe, SequelizeUniqueConstraintError, SetLoaded, SetRouterQueryParams, SharedFormErrors, SharedIconModule, SharedReducer, SharedSpinnerModule, SiteHelperComponent, SiteHelperModule, SmartProgressBarComponent, SmartProgressBarModule, SocialAuthService, SpinnerComponent, StarRatingComponent, StarRatingModule, StaticDataComponentInputData, StaticDataCreate, StaticDataCreateFail, StaticDataCreateRequest, StaticDataCreateSuccess, StaticDataDelete, StaticDataDeleteFail, StaticDataDeleteRequest, StaticDataDeleteSuccess, StaticDataEffects, StaticDataEndpointTypes, StaticDataFacade, StaticDataGet, StaticDataGetFail, StaticDataGetList, StaticDataGetListCategories, StaticDataGetListCategoriesFail, StaticDataGetListCategoriesRequest, StaticDataGetListCategoriesSuccess, StaticDataGetListFail, StaticDataGetListRequest, StaticDataGetListSuccess, StaticDataGetRequest, StaticDataGetSubRouting, StaticDataGetSubRoutingFail, StaticDataGetSubRoutingSuccess, StaticDataGetSuccess, StaticDataMetaStatus, StaticDataModel, StaticDataModule, StaticDataPartUpdate, StaticDataPatchUpdate, StaticDataPatchUpdateFail, StaticDataPatchUpdateSuccess, StaticDataService, StaticDataSubRoutingGetRequest, StaticDataUpdate, StaticDataUpdateFail, StaticDataUpdateRequest, StaticDataUpdateSuccess, StickySidebarDirective, StickySidebarInnerDirective, StickySidebarModule, StorageProvider, StorageService, TableMenuComponent, TableMenuModule, TagCloudComponent, TagCloudModule, TagEntitiesRequest, TagEntityModel, TagModel, TagsEndpointTypes, TagsFacade, TagsLoadRequest, TagsLoadResponseFactory, TagsService, TextWithLinkMoreComponent, TextWithLinkMoreModule, USERS_FEATURE_KEY, UiUnitIds, UiUnitsEffects, UiUnitsFacade, UnPublishPostRequest, UpdateRequestData, UserFieldNames, UserModel, UserRole, UserSectionRightModel, UsersEffects, UsersFacade, UsersService, ValidatorsType, VersionsModel, WebsocketMessageSubTypes, WebsocketMessageTypes, WebsocketService, WtFrontSharedModule, appearFromLeft, appearFromLeftHideToRight, appearFromLeftWithDelay, appearFromRight, appearFromRightWithDelay, appearOpacity, appearOpacity2, componentDestroyed, coreQuery, defaultStickySidebarOptions, entityScheme, expandCollapse, fileMapper, fileScheme, getAll, getAllUiUnits, getRequestInfo, getRouterLastRoute, getRouterLastRouteParams, getRouterQueryParams, getRouterRoot, getRouterUrl, getUIUnit, getUiUnitDataById, getUserAuthData, guid, hideToTopOpacity, initialState$b as initialState, mappet, notificationQuery, publicationMessageMapper, publicationMessageScheme, requestsQuery, sharedEffects, sharedFacades, staticDataQuery, trackById, uiUnitsQuery, untilComponentDestroyed, userMapper, userReducer, userScheme, usersQuery };
12840
+ export { AccessDeniedComponent, AccessDeniedModule, ActionsEndpointTypes, ActionsFacade, ActionsMetaStatus, ActionsModel, ActionsSendRequest, ActionsService, AsyncValidators, AsyncValidatorsMessages, AsyncValidatorsType, AuthEndpointTypes, AuthenticationService, AutoFormMainComponent, AutoFormModule, AutoFormService, AutoFormShowComponent, Back, BaseAPI, BaseAPIService, BaseAutoFormService, BaseErrors, BaseModelAdapter, BaseResponseFactory, BreadCrumbsComponent, BreadCrumbsModule, ButtonComponent, ButtonModule, CORE_CONFIG, CacheDataEndpointTypes, CacheDataFacade, CacheDataModel, CacheDataService, ChipsInputComponent, ChipsInputModule, ClearStaticData, CommonDialogComponent, CookiesService, CoreFacade, CoreLoadError, CoreLoaded, CountFormatPipe, CreateRequestListener, DateFormatPipe, DeleteComponent, DeleteRequest, DeleteRequestWaiter, DialogService, DialogsModule, EntitiesReportsRequest, Entity, EntityQueryFieldNames, EntitySortType, EntityType, FieldType, FileFieldNames, FileModel, FileUpdateModel, FilesDeleteRequest, FilesDeleteResponseFactory, FilesEndpointTypes, FilesFacade, FilesLoadRequest, FilesLoadResponseFactory, FilesService, FilesSortRequest, FilesSortResponseFactory, FilesUpdateRequest, FilesUpdateResponseFactory, FilesUploadComponent, FilesUploadModule, FormDeleteFileBaseEndpointTypes, FormDeleteFileFacade, FormDeleteFileRequest, FormDeleteFileService, FormErrorModel, FormErrorsFacade, FormFieldErrorComponent, FormFieldErrorModule, FormFieldPublishErrorComponent, FormFieldPublishErrorModule, FormValidationCheckRequest, FormValidationEndpointTypes, FormValidationFacade, FormValidationService, FormsFacade, Forward, GetCacheDataRequest, GetRequest, GlobalErrorMessages, GlobalEvent, Go, GoFail, HeaderComponent, HeaderModule, HeadersInterceptor, IFormFieldFormat, IconComponent, ImageComponent, ImageModule, InputTagsComponent, InputTagsModule, JwtInterceptor, LoadCore, LoadUsers, LoadUsersFail, LoadUsersSuccess, LoginSend, LoginSendCreateRequest, LoginSendCreateResponseFactory, LoginSendFail, LoginSendSuccess, MainConst, MainFacade, MapperRegistry, MapperUtil, MetaModel, NOTIFICATION_LONG_TIMEOUT, NOTIFICATION_TIMEOUT, NotificationAdd, NotificationAddFail, NotificationModel, NotificationShowingType, NotificationsEffects, NotificationsFacade, PaginationComponent, PaginationModule, PagingModel, PanelComponent, PanelHeaderComponent, PanelHeaderModule, PanelModule, PasswordRules, PatchRequest, PhonePipe, PipesModule, PostRequest, PublicationMessageFieldNames, PublicationMessagesFacade, PublishDataModel, PublishEndpointTypes, PublishErrors, PublishPostRequest, PublishResultModel, PublishService, PutRequest, QueryFieldsAdapter, ReducerService, RefreshToken, RefreshTokenFail, RefreshTokenSuccess, ReportsEndpointTypes, ReportsFacade, ReportsModel, ReportsService, Request, RequestMethods, RequestStatus, RequestsEffects, RequestsFacade, ResponseStatus, RouterEffects, RouterFacade, RouterService, STICKY_SIDEBAR_OPTIONS, SafePipe, SequelizeUniqueConstraintError, SetLoaded, SetRouterQueryParams, SharedFormErrors, SharedIconModule, SharedReducer, SharedSpinnerModule, SiteHelperComponent, SiteHelperModule, SmartProgressBarComponent, SmartProgressBarModule, SocialAuthService, SpinnerComponent, StarRatingComponent, StarRatingModule, StaticDataComponentInputData, StaticDataCreate, StaticDataCreateFail, StaticDataCreateRequest, StaticDataCreateSuccess, StaticDataDelete, StaticDataDeleteFail, StaticDataDeleteRequest, StaticDataDeleteSuccess, StaticDataEffects, StaticDataEndpointTypes, StaticDataFacade, StaticDataGet, StaticDataGetFail, StaticDataGetList, StaticDataGetListCategories, StaticDataGetListCategoriesFail, StaticDataGetListCategoriesRequest, StaticDataGetListCategoriesSuccess, StaticDataGetListFail, StaticDataGetListRequest, StaticDataGetListSuccess, StaticDataGetRequest, StaticDataGetSubRouting, StaticDataGetSubRoutingFail, StaticDataGetSubRoutingSuccess, StaticDataGetSuccess, StaticDataLoadRevisions, StaticDataMetaStatus, StaticDataModel, StaticDataModule, StaticDataNewRevisions, StaticDataPartUpdate, StaticDataPatchUpdate, StaticDataPatchUpdateFail, StaticDataPatchUpdateSuccess, StaticDataService, StaticDataSubRoutingGetRequest, StaticDataUpdate, StaticDataUpdateFail, StaticDataUpdateRequest, StaticDataUpdateSuccess, StickySidebarDirective, StickySidebarInnerDirective, StickySidebarModule, StorageProvider, StorageService, TableMenuComponent, TableMenuModule, TagCloudComponent, TagCloudModule, TagEntitiesRequest, TagEntityModel, TagModel, TagsEndpointTypes, TagsFacade, TagsLoadRequest, TagsLoadResponseFactory, TagsService, TextWithLinkMoreComponent, TextWithLinkMoreModule, USERS_FEATURE_KEY, UiUnitIds, UiUnitsEffects, UiUnitsFacade, UnPublishPostRequest, UpdateRequestData, UserFieldNames, UserModel, UserRole, UserSectionRightModel, UsersEffects, UsersFacade, UsersService, ValidatorsType, VersionsModel, WebsocketMessageSubTypes, WebsocketMessageTypes, WebsocketService, WtFrontSharedModule, appearFromLeft, appearFromLeftHideToRight, appearFromLeftWithDelay, appearFromRight, appearFromRightWithDelay, appearOpacity, appearOpacity2, componentDestroyed, coreQuery, defaultStickySidebarOptions, entityScheme, expandCollapse, fileMapper, fileScheme, getAll, getAllUiUnits, getRequestInfo, getRouterLastRoute, getRouterLastRouteParams, getRouterQueryParams, getRouterRoot, getRouterUrl, getUIUnit, getUiUnitDataById, getUserAuthData, guid, hideToTopOpacity, initialState$b as initialState, mappet, notificationQuery, publicationMessageMapper, publicationMessageScheme, requestsQuery, sharedEffects, sharedFacades, staticDataQuery, trackById, uiUnitsQuery, untilComponentDestroyed, userMapper, userReducer, userScheme, usersQuery };
12724
12841
  //# sourceMappingURL=wt-front-shared.mjs.map