wt-front-shared 1.0.41 → 1.0.43

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 (25) hide show
  1. package/esm2020/lib/core/+state/static-data/static-data.selectors.mjs +5 -2
  2. package/esm2020/lib/core/components/auto-form/components/form-field-select/form-field-select.component.mjs +1 -6
  3. package/esm2020/lib/core/components/index.mjs +3 -1
  4. package/esm2020/lib/core/components/site-helper/configs/config.mjs +8 -0
  5. package/esm2020/lib/core/components/site-helper/configs/firm-tour.config.mjs +66 -0
  6. package/esm2020/lib/core/components/site-helper/configs/main-tour.config.mjs +30 -0
  7. package/esm2020/lib/core/components/site-helper/configs/publication-error-tour.config.mjs +61 -0
  8. package/esm2020/lib/core/components/site-helper/configs/unpublish-tour.config.mjs +22 -0
  9. package/esm2020/lib/core/components/site-helper/interfaces/config.interfaces.mjs +2 -0
  10. package/esm2020/lib/core/components/site-helper/site-helper.component.mjs +273 -0
  11. package/esm2020/lib/core/components/site-helper/site-helper.module.mjs +18 -0
  12. package/fesm2015/wt-front-shared.mjs +474 -8
  13. package/fesm2015/wt-front-shared.mjs.map +1 -1
  14. package/fesm2020/wt-front-shared.mjs +465 -8
  15. package/fesm2020/wt-front-shared.mjs.map +1 -1
  16. package/lib/core/components/index.d.ts +2 -0
  17. package/lib/core/components/site-helper/configs/config.d.ts +5 -0
  18. package/lib/core/components/site-helper/configs/firm-tour.config.d.ts +3 -0
  19. package/lib/core/components/site-helper/configs/main-tour.config.d.ts +2 -0
  20. package/lib/core/components/site-helper/configs/publication-error-tour.config.d.ts +2 -0
  21. package/lib/core/components/site-helper/configs/unpublish-tour.config.d.ts +2 -0
  22. package/lib/core/components/site-helper/interfaces/config.interfaces.d.ts +21 -0
  23. package/lib/core/components/site-helper/site-helper.component.d.ts +45 -0
  24. package/lib/core/components/site-helper/site-helper.module.d.ts +8 -0
  25. package/package.json +1 -1
@@ -4,7 +4,7 @@ import * as i1$3 from '@angular/common';
4
4
  import { isPlatformBrowser, isPlatformServer, APP_BASE_HREF, CommonModule } from '@angular/common';
5
5
  import { BehaviorSubject, of, throwError, ReplaySubject, Subject, EMPTY, Subscription, merge, fromEvent } from 'rxjs';
6
6
  import * as i3 from '@angular/router';
7
- import { RouterModule } from '@angular/router';
7
+ import { RouterModule, NavigationEnd } from '@angular/router';
8
8
  import * as i1$2 from '@ngrx/effects';
9
9
  import { createEffect, ofType } from '@ngrx/effects';
10
10
  import { map, catchError, tap, filter as filter$1, switchMap, flatMap, first, take, mergeMap, takeUntil, distinctUntilChanged, startWith } from 'rxjs/operators';
@@ -57,6 +57,8 @@ import { FileUploader, FileUploadModule } from 'ng2-file-upload';
57
57
  import * as i5$2 from '@angular/material/progress-bar';
58
58
  import { MatProgressBarModule } from '@angular/material/progress-bar';
59
59
  import { ENTER, COMMA } from '@angular/cdk/keycodes';
60
+ import { driver } from 'driver.js';
61
+ import * as i4$1 from 'ngx-cookie-service';
60
62
  import { MatLegacyChipsModule } from '@angular/material/legacy-chips';
61
63
  import * as i1$6 from '@angular/cdk/platform';
62
64
  import * as i2$4 from '@angular/material/menu';
@@ -6753,7 +6755,10 @@ const getStaticDataForListContentTypes = (contentTypes) => createSelector(getSta
6753
6755
  return result;
6754
6756
  });
6755
6757
  const getStaticDataItem = (contentType, subSection, itemIdOrSlug) => createSelector(getStaticDataState, (state) => {
6756
- return state.list[contentType]?.[subSection]?.find(item => item.id === itemIdOrSlug || item?.slug === itemIdOrSlug || item?.slug + '.html' === itemIdOrSlug) || {};
6758
+ const foundItem = state.list[contentType]?.[subSection]?.find(item => {
6759
+ return Number(item.id) === Number(itemIdOrSlug) || item?.slug === itemIdOrSlug || item?.slug + '.html' === itemIdOrSlug;
6760
+ }); //
6761
+ return foundItem || {};
6757
6762
  });
6758
6763
  const staticDataQuery = {
6759
6764
  getStatus,
@@ -7256,7 +7261,6 @@ class FormFieldSelectComponent {
7256
7261
  this.unSubscribeSubject$ = new Subject();
7257
7262
  }
7258
7263
  ngOnInit() {
7259
- console.log('ngOnInit');
7260
7264
  if (this.fieldData.options.subscribeToFormChanges) {
7261
7265
  this.subscribeToFormChanges();
7262
7266
  this.placeholder = this.fieldData.options.subscribeToFormChanges.emptyTitle;
@@ -7275,13 +7279,11 @@ class FormFieldSelectComponent {
7275
7279
  this.unSubscribeSubject$.complete();
7276
7280
  }
7277
7281
  ngOnChanges(changes) {
7278
- console.log('changes', changes);
7279
7282
  if (changes.fieldData && changes.fieldData.currentValue) {
7280
7283
  const { loadOptionFromStore, selectOptions } = changes.fieldData.currentValue.options;
7281
7284
  if (selectOptions && selectOptions.length) {
7282
7285
  this.options = selectOptions;
7283
7286
  }
7284
- console.log('loadOptionFromStore', loadOptionFromStore);
7285
7287
  if (loadOptionFromStore) {
7286
7288
  this.loadOptionsFromStore(loadOptionFromStore);
7287
7289
  }
@@ -7327,9 +7329,7 @@ class FormFieldSelectComponent {
7327
7329
  const listKeys = loadOptionFromStore.split('.');
7328
7330
  this.store.select(state => {
7329
7331
  let selectedStore = state;
7330
- console.log('state', state);
7331
7332
  listKeys.forEach(key => {
7332
- console.log('key', key);
7333
7333
  selectedStore = selectedStore[key];
7334
7334
  });
7335
7335
  return selectedStore;
@@ -9910,6 +9910,463 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
9910
9910
  }]
9911
9911
  }] });
9912
9912
 
9913
+ const mainTourConfigs = {
9914
+ '0': {
9915
+ option: {
9916
+ callNextAfter: 1000,
9917
+ }
9918
+ },
9919
+ '1': {
9920
+ text: 'Давайте знакомиться!!<br/>Я Ваш помошник по сайту',
9921
+ image: 'assets/site-helper/base.png',
9922
+ option: {
9923
+ callNextAfter: 5000
9924
+ }
9925
+ },
9926
+ '2': {
9927
+ text: 'Давайте начнем с тура по сайту',
9928
+ image: 'assets/site-helper/site-tour.png',
9929
+ tourSteps: [
9930
+ { element: '#menu-item-my-firms', popover: { title: 'Мои фирмы', description: 'Описание моих фирм' } },
9931
+ { element: '#menu-item-support', popover: { title: 'Служба поддержки', description: 'Описание Служба поддержки' } },
9932
+ ]
9933
+ },
9934
+ '3': {
9935
+ image: 'assets/site-helper/all-ok.png',
9936
+ option: {
9937
+ callNextAfter: 1000,
9938
+ }
9939
+ },
9940
+ '4': {}
9941
+ };
9942
+
9943
+ const firmTourConfigs = {
9944
+ '0': {
9945
+ option: {
9946
+ callNextAfter: 1000,
9947
+ }
9948
+ },
9949
+ '1': {
9950
+ text: 'Вы зашли в раздел Мои фирмы',
9951
+ image: 'assets/site-helper/base.png',
9952
+ option: {
9953
+ callNextAfter: 5000
9954
+ }
9955
+ },
9956
+ '2': {
9957
+ text: 'Давайте я Вам все покажу',
9958
+ image: 'assets/site-helper/site-tour.png',
9959
+ tourSteps: [
9960
+ { element: '#go-to-create-form-button', popover: { title: 'Для создания фирмы нужно нажать тут' } },
9961
+ ]
9962
+ },
9963
+ '3': {
9964
+ image: 'assets/site-helper/all-ok.png',
9965
+ option: {
9966
+ callNextAfter: 1000,
9967
+ }
9968
+ },
9969
+ '4': {}
9970
+ };
9971
+ const firmFormTourConfigs = {
9972
+ '0': {
9973
+ option: {
9974
+ callNextAfter: 1000,
9975
+ }
9976
+ },
9977
+ '1': {
9978
+ text: 'Вы зашли в раздел создания и редактирования фирмы',
9979
+ image: 'assets/site-helper/base.png',
9980
+ option: {
9981
+ callNextAfter: 3000
9982
+ }
9983
+ },
9984
+ '2': {
9985
+ text: 'Давайте я Вам все покажу',
9986
+ image: 'assets/site-helper/site-tour.png',
9987
+ tourSteps: [
9988
+ { element: '.mat-mdc-tab-labels .mdc-tab:nth-child(1)', popover: { title: 'Форма', description: 'Тут необходимо заполнить все данны фирмы' } },
9989
+ { element: '.mat-mdc-tab-labels .mdc-tab:nth-child(2)', popover: { title: 'Туры фирмы', description: 'После сохранения фирмы тут Вы можете добавить туры для Вашей фирмы' } },
9990
+ { element: '.center-block-inner form .form-group:nth-child(1)', popover: { title: 'Общая информаци о компании' } },
9991
+ { element: '.center-block-inner form .form-group:nth-child(2)', popover: { title: 'Контактная информаци компании', description: 'Кликните на название группы чтобы открыть ее' } },
9992
+ { element: '.center-block-inner form .form-group:nth-child(3)', popover: { title: 'Текстовое описание о компании' } },
9993
+ { element: '.center-block-inner form .form-group:nth-child(4)', popover: { title: 'Галлерея', description: 'Тут вы модете разместить фото офиса, сотрудников и т.д.' } },
9994
+ { element: '#back-to-list-button', popover: { title: 'Кнопка перехода назад к списку' } },
9995
+ { element: '#form-create-button', popover: { title: 'Кнопка сохрания/обнавления', description: 'После заполнения всех полей нужно нажать на нее для сохранения данных фирмы.' } },
9996
+ { element: '#publish-button', popover: { title: 'Кнопка публикации', description: 'После заполнения всех полей нужно нажать на нее чтобы фирма стала видна для пользователям.' } },
9997
+ { element: '#delete-button', popover: { title: 'Кнопка удаления', description: 'Мы можете использовать ее чтобы удалить Вашу фирму с сайта' } },
9998
+ ]
9999
+ },
10000
+ '3': {
10001
+ image: 'assets/site-helper/all-ok.png',
10002
+ option: {
10003
+ callNextAfter: 1000,
10004
+ }
10005
+ },
10006
+ '4': {}
10007
+ };
10008
+
10009
+ const allTours = {
10010
+ '/': mainTourConfigs,
10011
+ '/static-data/firms': firmTourConfigs,
10012
+ '/static-data/firms/new': firmFormTourConfigs,
10013
+ };
10014
+
10015
+ const publicationErrorTourConfigs = {
10016
+ '0': {
10017
+ option: {
10018
+ callNextAfter: 1000,
10019
+ }
10020
+ },
10021
+ '1': {
10022
+ text: 'У вас имеются замечания, которые требуется исправить перед публикацией вашей записи.',
10023
+ image: 'assets/site-helper/base.png',
10024
+ option: {
10025
+ callNextAfter: 3000
10026
+ }
10027
+ },
10028
+ '2': {
10029
+ text: 'Давайте посмотрим на них',
10030
+ image: 'assets/site-helper/site-tour.png',
10031
+ tourSteps: [
10032
+ {
10033
+ element: '.publish-messages.error-messages', popover: { title: 'Блок ошибок публикации', description: 'В данном разделе вы можете ознакомиться с теми изменениями, которые необходимо внести для публикации вашей записи.' }
10034
+ },
10035
+ {
10036
+ actionBeforeStep: () => {
10037
+ return new Promise((resolve, reject) => {
10038
+ const buttonElement = document.querySelector('.publish-messages button');
10039
+ if (buttonElement) {
10040
+ buttonElement.click();
10041
+ }
10042
+ resolve(null);
10043
+ });
10044
+ },
10045
+ element: '.publish-messages-list div:nth-child(1) shared-panel', popover: { title: 'Первое замечание' }
10046
+ },
10047
+ {
10048
+ element: '.publish-messages-list div:nth-child(1) a', popover: { title: 'По клику на эту ссылку вы сможете найти поле в форме' }
10049
+ },
10050
+ {
10051
+ actionBeforeStep: () => {
10052
+ return new Promise((resolve, reject) => {
10053
+ const buttonElement = document.querySelector('.publish-messages div:nth-child(1) .fuse-card button');
10054
+ if (buttonElement) {
10055
+ buttonElement.click();
10056
+ }
10057
+ resolve(null);
10058
+ });
10059
+ },
10060
+ element: '.publish-messages-list div:nth-child(1) .fuse-card .card-expand-area', popover: { title: 'Тут можно просмотреть описание ошибки' }
10061
+ },
10062
+ {
10063
+ element: '#publish-button', popover: { title: 'После испправления всех замечаний нажмите на кнопку опубликовать' }
10064
+ },
10065
+ ]
10066
+ },
10067
+ '3': {
10068
+ image: 'assets/site-helper/all-ok.png',
10069
+ option: {
10070
+ callNextAfter: 1000,
10071
+ }
10072
+ },
10073
+ '4': {}
10074
+ };
10075
+
10076
+ const unPublishTourConfigs = {
10077
+ '0': {
10078
+ option: {
10079
+ callNextAfter: 1000,
10080
+ }
10081
+ },
10082
+ '1': {
10083
+ text: 'Для того чтобы пользователи могли увидеть запись, необходимо её опубликовать.',
10084
+ image: 'assets/site-helper/base.png',
10085
+ option: {
10086
+ callNextByClickButton: 'Я понял'
10087
+ }
10088
+ },
10089
+ '2': {
10090
+ image: 'assets/site-helper/all-ok.png',
10091
+ option: {
10092
+ callNextAfter: 1000,
10093
+ }
10094
+ },
10095
+ '3': {}
10096
+ };
10097
+
10098
+ class SiteHelperComponent {
10099
+ constructor(cd, renderer, formsFacade, publicationMessagesFacade, staticDataFacade, cookieService, router) {
10100
+ this.cd = cd;
10101
+ this.renderer = renderer;
10102
+ this.formsFacade = formsFacade;
10103
+ this.publicationMessagesFacade = publicationMessagesFacade;
10104
+ this.staticDataFacade = staticDataFacade;
10105
+ this.cookieService = cookieService;
10106
+ this.router = router;
10107
+ this.activeConfigStep = -1;
10108
+ this.staticDataUrlKey = 'static-data';
10109
+ this.cookiesKeyPrefix = 'wt-site-tour';
10110
+ this.siteHelperRunning = false;
10111
+ this.siteHelperKeys = {
10112
+ errorPublication: 'error-publication'
10113
+ };
10114
+ }
10115
+ async ngOnInit() {
10116
+ this.pageUrl = this.router.url || '/';
10117
+ this.subscribeToRouteChanges();
10118
+ const isStartedTour = await this.checkStaticItemData(this.router.url);
10119
+ if (!isStartedTour) {
10120
+ this.siteHelperRunning = true;
10121
+ this.runSiteHelper();
10122
+ }
10123
+ this.subscribeToFormsStatus();
10124
+ }
10125
+ subscribeToFormsStatus() {
10126
+ this.formsFacade.getAllForms()
10127
+ .pipe(untilComponentDestroyed(this))
10128
+ .subscribe((allForms) => {
10129
+ const inValidForms = allForms.filter(item => item.hasError);
10130
+ });
10131
+ }
10132
+ subscribeToRouteChanges() {
10133
+ this.router.events
10134
+ .pipe(filter$1(event => event instanceof NavigationEnd), untilComponentDestroyed(this))
10135
+ .subscribe(async (event) => {
10136
+ this.stopSiteTour();
10137
+ if (event.url !== '/auth') {
10138
+ this.currentSiteHelperKey = '';
10139
+ this.pageUrl = event.url;
10140
+ const isStartedTour = await this.checkStaticItemData(event.url);
10141
+ if (!isStartedTour) {
10142
+ this.siteHelperRunning = true;
10143
+ this.runSiteHelper();
10144
+ }
10145
+ }
10146
+ else {
10147
+ this.hideSiteTour();
10148
+ this.siteHelperRunning = false;
10149
+ }
10150
+ });
10151
+ }
10152
+ async checkStaticItemData(url) {
10153
+ const urlParams = url.split('/');
10154
+ if (urlParams?.length > 2 && urlParams[1] === this.staticDataUrlKey && urlParams[2] && Number(urlParams[3])) {
10155
+ const contentType = urlParams[2];
10156
+ const itemId = Number(urlParams[3]);
10157
+ const staticItemData = await this.getStaticDataItemData(contentType, itemId);
10158
+ if (staticItemData?.id) {
10159
+ const publicationMessages = await this.getStaticDataFormErrors(contentType, itemId);
10160
+ const errorPublicationMessages = publicationMessages.filter(item => item.isError);
10161
+ if (errorPublicationMessages?.length) {
10162
+ const cookieKey = this.getCookieKey(this.siteHelperKeys.errorPublication);
10163
+ if (!this.cookieService.get(cookieKey)) {
10164
+ this.currentSiteHelperKey = this.siteHelperKeys.errorPublication;
10165
+ this.siteHelperRunning = true;
10166
+ this.runSiteHelper(publicationErrorTourConfigs);
10167
+ return true;
10168
+ }
10169
+ }
10170
+ // if user open an item, which has not published yet
10171
+ if (!staticItemData.publishedAt) {
10172
+ this.siteHelperRunning = true;
10173
+ this.runSiteHelper(unPublishTourConfigs);
10174
+ return true;
10175
+ }
10176
+ // if user just have saved, need to say that he needs to publish
10177
+ }
10178
+ }
10179
+ return false;
10180
+ }
10181
+ saveCompletedStatusInCookies() {
10182
+ if (this.currentSiteHelperKey) {
10183
+ const cookieKey = this.getCookieKey(this.currentSiteHelperKey);
10184
+ const cookiesExpiresDate = new Date();
10185
+ cookiesExpiresDate.setDate(cookiesExpiresDate.getDate() + 10e5);
10186
+ this.cookieService.set(cookieKey, 'true', cookiesExpiresDate);
10187
+ }
10188
+ }
10189
+ getCookieKey(key) {
10190
+ return key ? `${this.cookiesKeyPrefix}-${key}` : null;
10191
+ }
10192
+ getStaticDataFormErrors(contentType, itemId) {
10193
+ return new Promise((resolve, reject) => {
10194
+ this.publicationMessagesFacade.getPublicationMessage(contentType, itemId)
10195
+ .pipe(filter$1(item => !!item?.length), untilComponentDestroyed(this))
10196
+ .subscribe((publicationMessage) => {
10197
+ resolve(publicationMessage);
10198
+ });
10199
+ });
10200
+ }
10201
+ getStaticDataItemData(contentType, itemId) {
10202
+ return new Promise((resolve, reject) => {
10203
+ this.staticDataFacade.getStaticDataItem$(contentType, 'list', itemId)
10204
+ .pipe(filter$1(item => !!item.id), untilComponentDestroyed(this))
10205
+ .subscribe((data) => {
10206
+ resolve(data);
10207
+ });
10208
+ });
10209
+ }
10210
+ stopSiteTour() {
10211
+ if (this.activeConfigStep !== -1) {
10212
+ this.activeConfigStep = -1;
10213
+ this.hideSiteTour();
10214
+ }
10215
+ }
10216
+ hideSiteTour() {
10217
+ const createdElement = document.getElementsByClassName('site-helper')?.[0];
10218
+ if (createdElement) {
10219
+ createdElement.remove();
10220
+ }
10221
+ }
10222
+ runSiteHelper(configuration) {
10223
+ this.stopSiteTour();
10224
+ if (this.siteHelperRunning) {
10225
+ this.activeConfigStep = -1;
10226
+ if (configuration) {
10227
+ this.currentSiteHelperConfiguration = configuration;
10228
+ }
10229
+ else if (allTours[this.pageUrl]) {
10230
+ const helperKey = `url-${this.pageUrl}`;
10231
+ const cookieKey = this.getCookieKey(helperKey);
10232
+ if (!this.cookieService.get(cookieKey)) {
10233
+ this.currentSiteHelperKey = `url-${this.pageUrl}`;
10234
+ this.currentSiteHelperConfiguration = allTours[this.pageUrl];
10235
+ }
10236
+ }
10237
+ if (this.currentSiteHelperConfiguration) {
10238
+ this.runSiteHelperNextStep();
10239
+ }
10240
+ }
10241
+ }
10242
+ async runSiteHelperNextStep() {
10243
+ if (!this.siteHelperRunning) {
10244
+ return;
10245
+ }
10246
+ this.activeConfigStep++;
10247
+ const configItem = this.currentSiteHelperConfiguration?.[this.activeConfigStep];
10248
+ if (configItem) {
10249
+ let textDiv;
10250
+ let imageDiv;
10251
+ this.hideSiteTour();
10252
+ if (configItem.tourSteps) {
10253
+ await this.initSiteTour(configItem.tourSteps);
10254
+ }
10255
+ if (configItem.text) {
10256
+ textDiv = this.renderer.createElement('div');
10257
+ textDiv.classList.add('site-helper-text');
10258
+ textDiv.innerHTML = configItem.text;
10259
+ if (configItem.option?.callNextByClickButton) {
10260
+ const buttonDiv = this.renderer.createElement('div');
10261
+ buttonDiv.classList.add('site-helper-text-button');
10262
+ const button = this.renderer.createElement('button');
10263
+ button.textContent = configItem.option.callNextByClickButton;
10264
+ button.onclick = () => {
10265
+ this.runSiteHelperNextStep();
10266
+ };
10267
+ this.renderer.appendChild(buttonDiv, button);
10268
+ this.renderer.appendChild(textDiv, buttonDiv);
10269
+ }
10270
+ }
10271
+ if (configItem.image) {
10272
+ imageDiv = this.renderer.createElement('div');
10273
+ imageDiv.classList.add('site-helper-image');
10274
+ const image = this.renderer.createElement('img');
10275
+ image.src = configItem.image;
10276
+ this.renderer.appendChild(imageDiv, image);
10277
+ }
10278
+ if (textDiv || imageDiv) {
10279
+ const commonDiv = this.renderer.createElement('div');
10280
+ commonDiv.classList.add('site-helper');
10281
+ if (textDiv) {
10282
+ this.renderer.appendChild(commonDiv, textDiv);
10283
+ }
10284
+ if (imageDiv) {
10285
+ this.renderer.appendChild(commonDiv, imageDiv);
10286
+ }
10287
+ this.renderer.appendChild(document.body, commonDiv);
10288
+ }
10289
+ if (configItem?.option?.callNextAfter) {
10290
+ setTimeout(() => {
10291
+ this.runSiteHelperNextStep();
10292
+ }, configItem.option.callNextAfter);
10293
+ }
10294
+ this.cd.markForCheck();
10295
+ }
10296
+ // Complete the site tour
10297
+ if (this.activeConfigStep === (Object.keys(this.currentSiteHelperConfiguration).length + 1)) {
10298
+ this.siteHelperRunning = false;
10299
+ }
10300
+ }
10301
+ initSiteTour(steps) {
10302
+ return new Promise((resolve, reject) => {
10303
+ const driverObj = driver({
10304
+ showProgress: true,
10305
+ steps: [
10306
+ ...steps
10307
+ ],
10308
+ progressText: '{{current}} из {{total}}',
10309
+ nextBtnText: 'Следующий',
10310
+ prevBtnText: 'Предыдыщий',
10311
+ doneBtnText: 'Готово',
10312
+ onNextClick: async (element, step, options) => {
10313
+ if (driverObj.isLastStep()) {
10314
+ this.saveCompletedStatusInCookies();
10315
+ this.runSiteHelperNextStep();
10316
+ driverObj.destroy();
10317
+ resolve(null);
10318
+ }
10319
+ else {
10320
+ // if next step has actionBeforeStep, need to run it firstly
10321
+ const nextStep = steps[options.state.activeIndex + 1];
10322
+ if (nextStep?.actionBeforeStep) {
10323
+ await nextStep.actionBeforeStep();
10324
+ }
10325
+ setTimeout(() => {
10326
+ driverObj.moveNext();
10327
+ }, 0);
10328
+ }
10329
+ },
10330
+ onCloseClick: () => {
10331
+ driverObj.destroy();
10332
+ this.runSiteHelperNextStep();
10333
+ this.saveCompletedStatusInCookies();
10334
+ },
10335
+ popoverClass: 'site-helper-popover',
10336
+ onHighlighted: () => {
10337
+ resolve(null);
10338
+ }
10339
+ });
10340
+ driverObj.drive();
10341
+ });
10342
+ }
10343
+ ngOnDestroy() {
10344
+ }
10345
+ }
10346
+ SiteHelperComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SiteHelperComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }, { token: FormsFacade }, { token: PublicationMessagesFacade }, { token: StaticDataFacade }, { token: i4$1.CookieService }, { token: i3.Router }], target: i0.ɵɵFactoryTarget.Component });
10347
+ SiteHelperComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SiteHelperComponent, selector: "shared-site-helper", viewQueries: [{ propertyName: "textDiv", first: true, predicate: ["siteHelperText"], descendants: true }], ngImport: i0, template: "", styles: [".site-helper{position:fixed;right:20px;bottom:0;z-index:100000;display:flex;flex-direction:column}.site-helper .site-helper-text-button button{background:#4caf50;border:0;color:#fff;height:30px;margin-top:10px}\n"], animations: [appearOpacity2], changeDetection: i0.ChangeDetectionStrategy.OnPush });
10348
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SiteHelperComponent, decorators: [{
10349
+ type: Component,
10350
+ args: [{ selector: 'shared-site-helper', changeDetection: ChangeDetectionStrategy.OnPush, animations: [appearOpacity2], template: "", styles: [".site-helper{position:fixed;right:20px;bottom:0;z-index:100000;display:flex;flex-direction:column}.site-helper .site-helper-text-button button{background:#4caf50;border:0;color:#fff;height:30px;margin-top:10px}\n"] }]
10351
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.Renderer2 }, { type: FormsFacade }, { type: PublicationMessagesFacade }, { type: StaticDataFacade }, { type: i4$1.CookieService }, { type: i3.Router }]; }, propDecorators: { textDiv: [{
10352
+ type: ViewChild,
10353
+ args: ['siteHelperText']
10354
+ }] } });
10355
+
10356
+ class SiteHelperModule {
10357
+ }
10358
+ SiteHelperModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SiteHelperModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
10359
+ SiteHelperModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: SiteHelperModule, declarations: [SiteHelperComponent], imports: [CommonModule], exports: [SiteHelperComponent] });
10360
+ SiteHelperModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SiteHelperModule, imports: [CommonModule] });
10361
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SiteHelperModule, decorators: [{
10362
+ type: NgModule,
10363
+ args: [{
10364
+ declarations: [SiteHelperComponent],
10365
+ imports: [CommonModule],
10366
+ exports: [SiteHelperComponent]
10367
+ }]
10368
+ }] });
10369
+
9913
10370
  class ChipsInputComponent {
9914
10371
  constructor() {
9915
10372
  this.items = [];
@@ -11241,5 +11698,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
11241
11698
  * Generated bundle index. Do not edit.
11242
11699
  */
11243
11700
 
11244
- 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, 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, SmartProgressBarComponent, SmartProgressBarModule, SocialAuthService, SpinnerComponent, StarRatingComponent, StarRatingModule, 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, StaticDataPartUpdate, 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 };
11701
+ 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, 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, 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, StaticDataPartUpdate, 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 };
11245
11702
  //# sourceMappingURL=wt-front-shared.mjs.map