wt-front-shared 1.0.42 → 1.0.44
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.
- package/esm2020/lib/core/+state/static-data/static-data.selectors.mjs +5 -2
- package/esm2020/lib/core/components/index.mjs +3 -1
- package/esm2020/lib/core/components/site-helper/configs/publication-error-tour.config.mjs +61 -0
- package/esm2020/lib/core/components/site-helper/configs/unpublish-tour.config.mjs +22 -0
- package/esm2020/lib/core/components/site-helper/interfaces/config.interfaces.mjs +2 -0
- package/esm2020/lib/core/components/site-helper/site-helper.component.mjs +274 -0
- package/esm2020/lib/core/components/site-helper/site-helper.module.mjs +18 -0
- package/fesm2015/wt-front-shared.mjs +374 -3
- package/fesm2015/wt-front-shared.mjs.map +1 -1
- package/fesm2020/wt-front-shared.mjs +365 -3
- package/fesm2020/wt-front-shared.mjs.map +1 -1
- package/lib/core/components/index.d.ts +2 -0
- package/lib/core/components/site-helper/configs/publication-error-tour.config.d.ts +2 -0
- package/lib/core/components/site-helper/configs/unpublish-tour.config.d.ts +2 -0
- package/lib/core/components/site-helper/interfaces/config.interfaces.d.ts +21 -0
- package/lib/core/components/site-helper/site-helper.component.d.ts +46 -0
- package/lib/core/components/site-helper/site-helper.module.d.ts +8 -0
- 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
|
-
|
|
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,
|
|
@@ -9905,6 +9910,363 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
9905
9910
|
}]
|
|
9906
9911
|
}] });
|
|
9907
9912
|
|
|
9913
|
+
const publicationErrorTourConfigs = {
|
|
9914
|
+
'0': {
|
|
9915
|
+
option: {
|
|
9916
|
+
callNextAfter: 1000,
|
|
9917
|
+
}
|
|
9918
|
+
},
|
|
9919
|
+
'1': {
|
|
9920
|
+
text: 'У вас имеются замечания, которые требуется исправить перед публикацией вашей записи.',
|
|
9921
|
+
image: 'assets/site-helper/base.png',
|
|
9922
|
+
option: {
|
|
9923
|
+
callNextAfter: 3000
|
|
9924
|
+
}
|
|
9925
|
+
},
|
|
9926
|
+
'2': {
|
|
9927
|
+
text: 'Давайте посмотрим на них',
|
|
9928
|
+
image: 'assets/site-helper/site-tour.png',
|
|
9929
|
+
tourSteps: [
|
|
9930
|
+
{
|
|
9931
|
+
element: '.publish-messages.error-messages', popover: { title: 'Блок ошибок публикации', description: 'В данном разделе вы можете ознакомиться с теми изменениями, которые необходимо внести для публикации вашей записи.' }
|
|
9932
|
+
},
|
|
9933
|
+
{
|
|
9934
|
+
actionBeforeStep: () => {
|
|
9935
|
+
return new Promise((resolve, reject) => {
|
|
9936
|
+
const buttonElement = document.querySelector('.publish-messages button');
|
|
9937
|
+
if (buttonElement) {
|
|
9938
|
+
buttonElement.click();
|
|
9939
|
+
}
|
|
9940
|
+
resolve(null);
|
|
9941
|
+
});
|
|
9942
|
+
},
|
|
9943
|
+
element: '.publish-messages-list div:nth-child(1) shared-panel', popover: { title: 'Первое замечание' }
|
|
9944
|
+
},
|
|
9945
|
+
{
|
|
9946
|
+
element: '.publish-messages-list div:nth-child(1) a', popover: { title: 'По клику на эту ссылку вы сможете найти поле в форме' }
|
|
9947
|
+
},
|
|
9948
|
+
{
|
|
9949
|
+
actionBeforeStep: () => {
|
|
9950
|
+
return new Promise((resolve, reject) => {
|
|
9951
|
+
const buttonElement = document.querySelector('.publish-messages div:nth-child(1) .fuse-card button');
|
|
9952
|
+
if (buttonElement) {
|
|
9953
|
+
buttonElement.click();
|
|
9954
|
+
}
|
|
9955
|
+
resolve(null);
|
|
9956
|
+
});
|
|
9957
|
+
},
|
|
9958
|
+
element: '.publish-messages-list div:nth-child(1) .fuse-card .card-expand-area', popover: { title: 'Тут можно просмотреть описание ошибки' }
|
|
9959
|
+
},
|
|
9960
|
+
{
|
|
9961
|
+
element: '#publish-button', popover: { title: 'После испправления всех замечаний нажмите на кнопку опубликовать' }
|
|
9962
|
+
},
|
|
9963
|
+
]
|
|
9964
|
+
},
|
|
9965
|
+
'3': {
|
|
9966
|
+
image: 'assets/site-helper/all-ok.png',
|
|
9967
|
+
option: {
|
|
9968
|
+
callNextAfter: 1000,
|
|
9969
|
+
}
|
|
9970
|
+
},
|
|
9971
|
+
'4': {}
|
|
9972
|
+
};
|
|
9973
|
+
|
|
9974
|
+
const unPublishTourConfigs = {
|
|
9975
|
+
'0': {
|
|
9976
|
+
option: {
|
|
9977
|
+
callNextAfter: 1000,
|
|
9978
|
+
}
|
|
9979
|
+
},
|
|
9980
|
+
'1': {
|
|
9981
|
+
text: 'Для того чтобы пользователи могли увидеть запись, необходимо её опубликовать.',
|
|
9982
|
+
image: 'assets/site-helper/base.png',
|
|
9983
|
+
option: {
|
|
9984
|
+
callNextByClickButton: 'Я понял'
|
|
9985
|
+
}
|
|
9986
|
+
},
|
|
9987
|
+
'2': {
|
|
9988
|
+
image: 'assets/site-helper/all-ok.png',
|
|
9989
|
+
option: {
|
|
9990
|
+
callNextAfter: 1000,
|
|
9991
|
+
}
|
|
9992
|
+
},
|
|
9993
|
+
'3': {}
|
|
9994
|
+
};
|
|
9995
|
+
|
|
9996
|
+
class SiteHelperComponent {
|
|
9997
|
+
constructor(cd, renderer, formsFacade, publicationMessagesFacade, staticDataFacade, cookieService, router) {
|
|
9998
|
+
this.cd = cd;
|
|
9999
|
+
this.renderer = renderer;
|
|
10000
|
+
this.formsFacade = formsFacade;
|
|
10001
|
+
this.publicationMessagesFacade = publicationMessagesFacade;
|
|
10002
|
+
this.staticDataFacade = staticDataFacade;
|
|
10003
|
+
this.cookieService = cookieService;
|
|
10004
|
+
this.router = router;
|
|
10005
|
+
this.activeConfigStep = -1;
|
|
10006
|
+
this.staticDataUrlKey = 'static-data';
|
|
10007
|
+
this.cookiesKeyPrefix = 'wt-site-tour';
|
|
10008
|
+
this.siteHelperRunning = false;
|
|
10009
|
+
this.siteHelperKeys = {
|
|
10010
|
+
errorPublication: 'error-publication'
|
|
10011
|
+
};
|
|
10012
|
+
}
|
|
10013
|
+
async ngOnInit() {
|
|
10014
|
+
this.pageUrl = this.router.url || '/';
|
|
10015
|
+
this.subscribeToRouteChanges();
|
|
10016
|
+
const isStartedTour = await this.checkStaticItemData(this.router.url);
|
|
10017
|
+
if (!isStartedTour) {
|
|
10018
|
+
this.siteHelperRunning = true;
|
|
10019
|
+
this.runSiteHelper();
|
|
10020
|
+
}
|
|
10021
|
+
this.subscribeToFormsStatus();
|
|
10022
|
+
}
|
|
10023
|
+
subscribeToFormsStatus() {
|
|
10024
|
+
this.formsFacade.getAllForms()
|
|
10025
|
+
.pipe(untilComponentDestroyed(this))
|
|
10026
|
+
.subscribe((allForms) => {
|
|
10027
|
+
const inValidForms = allForms.filter(item => item.hasError);
|
|
10028
|
+
});
|
|
10029
|
+
}
|
|
10030
|
+
subscribeToRouteChanges() {
|
|
10031
|
+
this.router.events
|
|
10032
|
+
.pipe(filter$1(event => event instanceof NavigationEnd), untilComponentDestroyed(this))
|
|
10033
|
+
.subscribe(async (event) => {
|
|
10034
|
+
this.stopSiteTour();
|
|
10035
|
+
if (event.url !== '/auth') {
|
|
10036
|
+
this.currentSiteHelperKey = '';
|
|
10037
|
+
this.pageUrl = event.url;
|
|
10038
|
+
const isStartedTour = await this.checkStaticItemData(event.url);
|
|
10039
|
+
if (!isStartedTour) {
|
|
10040
|
+
this.siteHelperRunning = true;
|
|
10041
|
+
this.runSiteHelper();
|
|
10042
|
+
}
|
|
10043
|
+
}
|
|
10044
|
+
else {
|
|
10045
|
+
this.hideSiteTour();
|
|
10046
|
+
this.siteHelperRunning = false;
|
|
10047
|
+
}
|
|
10048
|
+
});
|
|
10049
|
+
}
|
|
10050
|
+
async checkStaticItemData(url) {
|
|
10051
|
+
const urlParams = url.split('/');
|
|
10052
|
+
if (urlParams?.length > 2 && urlParams[1] === this.staticDataUrlKey && urlParams[2] && Number(urlParams[3])) {
|
|
10053
|
+
const contentType = urlParams[2];
|
|
10054
|
+
const itemId = Number(urlParams[3]);
|
|
10055
|
+
const staticItemData = await this.getStaticDataItemData(contentType, itemId);
|
|
10056
|
+
if (staticItemData?.id) {
|
|
10057
|
+
const publicationMessages = await this.getStaticDataFormErrors(contentType, itemId);
|
|
10058
|
+
const errorPublicationMessages = publicationMessages.filter(item => item.isError);
|
|
10059
|
+
if (errorPublicationMessages?.length) {
|
|
10060
|
+
const cookieKey = this.getCookieKey(this.siteHelperKeys.errorPublication);
|
|
10061
|
+
if (!this.cookieService.get(cookieKey)) {
|
|
10062
|
+
this.currentSiteHelperKey = this.siteHelperKeys.errorPublication;
|
|
10063
|
+
this.siteHelperRunning = true;
|
|
10064
|
+
this.runSiteHelper(publicationErrorTourConfigs);
|
|
10065
|
+
return true;
|
|
10066
|
+
}
|
|
10067
|
+
}
|
|
10068
|
+
// if user open an item, which has not published yet
|
|
10069
|
+
if (!staticItemData.publishedAt) {
|
|
10070
|
+
this.siteHelperRunning = true;
|
|
10071
|
+
this.runSiteHelper(unPublishTourConfigs);
|
|
10072
|
+
return true;
|
|
10073
|
+
}
|
|
10074
|
+
// if user just have saved, need to say that he needs to publish
|
|
10075
|
+
}
|
|
10076
|
+
}
|
|
10077
|
+
return false;
|
|
10078
|
+
}
|
|
10079
|
+
saveCompletedStatusInCookies() {
|
|
10080
|
+
if (this.currentSiteHelperKey) {
|
|
10081
|
+
const cookieKey = this.getCookieKey(this.currentSiteHelperKey);
|
|
10082
|
+
const cookiesExpiresDate = new Date();
|
|
10083
|
+
cookiesExpiresDate.setDate(cookiesExpiresDate.getDate() + 10e5);
|
|
10084
|
+
this.cookieService.set(cookieKey, 'true', cookiesExpiresDate);
|
|
10085
|
+
}
|
|
10086
|
+
}
|
|
10087
|
+
getCookieKey(key) {
|
|
10088
|
+
return key ? `${this.cookiesKeyPrefix}-${key}` : null;
|
|
10089
|
+
}
|
|
10090
|
+
getStaticDataFormErrors(contentType, itemId) {
|
|
10091
|
+
return new Promise((resolve, reject) => {
|
|
10092
|
+
this.publicationMessagesFacade.getPublicationMessage(contentType, itemId)
|
|
10093
|
+
.pipe(filter$1(item => !!item?.length), untilComponentDestroyed(this))
|
|
10094
|
+
.subscribe((publicationMessage) => {
|
|
10095
|
+
resolve(publicationMessage);
|
|
10096
|
+
});
|
|
10097
|
+
});
|
|
10098
|
+
}
|
|
10099
|
+
getStaticDataItemData(contentType, itemId) {
|
|
10100
|
+
return new Promise((resolve, reject) => {
|
|
10101
|
+
this.staticDataFacade.getStaticDataItem$(contentType, 'list', itemId)
|
|
10102
|
+
.pipe(filter$1(item => !!item.id), untilComponentDestroyed(this))
|
|
10103
|
+
.subscribe((data) => {
|
|
10104
|
+
resolve(data);
|
|
10105
|
+
});
|
|
10106
|
+
});
|
|
10107
|
+
}
|
|
10108
|
+
stopSiteTour() {
|
|
10109
|
+
if (this.activeConfigStep !== -1) {
|
|
10110
|
+
this.activeConfigStep = -1;
|
|
10111
|
+
this.hideSiteTour();
|
|
10112
|
+
}
|
|
10113
|
+
}
|
|
10114
|
+
hideSiteTour() {
|
|
10115
|
+
const createdElement = document.getElementsByClassName('site-helper')?.[0];
|
|
10116
|
+
if (createdElement) {
|
|
10117
|
+
createdElement.remove();
|
|
10118
|
+
}
|
|
10119
|
+
}
|
|
10120
|
+
runSiteHelper(configuration) {
|
|
10121
|
+
this.stopSiteTour();
|
|
10122
|
+
if (this.siteHelperRunning) {
|
|
10123
|
+
this.activeConfigStep = -1;
|
|
10124
|
+
if (configuration) {
|
|
10125
|
+
this.currentSiteHelperConfiguration = configuration;
|
|
10126
|
+
}
|
|
10127
|
+
else if (this.configurations[this.pageUrl]) {
|
|
10128
|
+
const helperKey = `url-${this.pageUrl}`;
|
|
10129
|
+
const cookieKey = this.getCookieKey(helperKey);
|
|
10130
|
+
if (!this.cookieService.get(cookieKey)) {
|
|
10131
|
+
this.currentSiteHelperKey = `url-${this.pageUrl}`;
|
|
10132
|
+
this.currentSiteHelperConfiguration = this.configurations[this.pageUrl];
|
|
10133
|
+
}
|
|
10134
|
+
}
|
|
10135
|
+
if (this.currentSiteHelperConfiguration) {
|
|
10136
|
+
this.runSiteHelperNextStep();
|
|
10137
|
+
}
|
|
10138
|
+
}
|
|
10139
|
+
}
|
|
10140
|
+
async runSiteHelperNextStep() {
|
|
10141
|
+
if (!this.siteHelperRunning) {
|
|
10142
|
+
return;
|
|
10143
|
+
}
|
|
10144
|
+
this.activeConfigStep++;
|
|
10145
|
+
const configItem = this.currentSiteHelperConfiguration?.[this.activeConfigStep];
|
|
10146
|
+
if (configItem) {
|
|
10147
|
+
let textDiv;
|
|
10148
|
+
let imageDiv;
|
|
10149
|
+
this.hideSiteTour();
|
|
10150
|
+
if (configItem.tourSteps) {
|
|
10151
|
+
await this.initSiteTour(configItem.tourSteps);
|
|
10152
|
+
}
|
|
10153
|
+
if (configItem.text) {
|
|
10154
|
+
textDiv = this.renderer.createElement('div');
|
|
10155
|
+
textDiv.classList.add('site-helper-text');
|
|
10156
|
+
textDiv.innerHTML = configItem.text;
|
|
10157
|
+
if (configItem.option?.callNextByClickButton) {
|
|
10158
|
+
const buttonDiv = this.renderer.createElement('div');
|
|
10159
|
+
buttonDiv.classList.add('site-helper-text-button');
|
|
10160
|
+
const button = this.renderer.createElement('button');
|
|
10161
|
+
button.textContent = configItem.option.callNextByClickButton;
|
|
10162
|
+
button.onclick = () => {
|
|
10163
|
+
this.runSiteHelperNextStep();
|
|
10164
|
+
};
|
|
10165
|
+
this.renderer.appendChild(buttonDiv, button);
|
|
10166
|
+
this.renderer.appendChild(textDiv, buttonDiv);
|
|
10167
|
+
}
|
|
10168
|
+
}
|
|
10169
|
+
if (configItem.image) {
|
|
10170
|
+
imageDiv = this.renderer.createElement('div');
|
|
10171
|
+
imageDiv.classList.add('site-helper-image');
|
|
10172
|
+
const image = this.renderer.createElement('img');
|
|
10173
|
+
image.src = configItem.image;
|
|
10174
|
+
this.renderer.appendChild(imageDiv, image);
|
|
10175
|
+
}
|
|
10176
|
+
if (textDiv || imageDiv) {
|
|
10177
|
+
const commonDiv = this.renderer.createElement('div');
|
|
10178
|
+
commonDiv.classList.add('site-helper');
|
|
10179
|
+
if (textDiv) {
|
|
10180
|
+
this.renderer.appendChild(commonDiv, textDiv);
|
|
10181
|
+
}
|
|
10182
|
+
if (imageDiv) {
|
|
10183
|
+
this.renderer.appendChild(commonDiv, imageDiv);
|
|
10184
|
+
}
|
|
10185
|
+
this.renderer.appendChild(document.body, commonDiv);
|
|
10186
|
+
}
|
|
10187
|
+
if (configItem?.option?.callNextAfter) {
|
|
10188
|
+
setTimeout(() => {
|
|
10189
|
+
this.runSiteHelperNextStep();
|
|
10190
|
+
}, configItem.option.callNextAfter);
|
|
10191
|
+
}
|
|
10192
|
+
this.cd.markForCheck();
|
|
10193
|
+
}
|
|
10194
|
+
// Complete the site tour
|
|
10195
|
+
if (this.activeConfigStep === (Object.keys(this.currentSiteHelperConfiguration).length + 1)) {
|
|
10196
|
+
this.siteHelperRunning = false;
|
|
10197
|
+
}
|
|
10198
|
+
}
|
|
10199
|
+
initSiteTour(steps) {
|
|
10200
|
+
return new Promise((resolve, reject) => {
|
|
10201
|
+
const driverObj = driver({
|
|
10202
|
+
showProgress: true,
|
|
10203
|
+
steps: [
|
|
10204
|
+
...steps
|
|
10205
|
+
],
|
|
10206
|
+
progressText: '{{current}} из {{total}}',
|
|
10207
|
+
nextBtnText: 'Следующий',
|
|
10208
|
+
prevBtnText: 'Предыдыщий',
|
|
10209
|
+
doneBtnText: 'Готово',
|
|
10210
|
+
onNextClick: async (element, step, options) => {
|
|
10211
|
+
if (driverObj.isLastStep()) {
|
|
10212
|
+
this.saveCompletedStatusInCookies();
|
|
10213
|
+
this.runSiteHelperNextStep();
|
|
10214
|
+
driverObj.destroy();
|
|
10215
|
+
resolve(null);
|
|
10216
|
+
}
|
|
10217
|
+
else {
|
|
10218
|
+
// if next step has actionBeforeStep, need to run it firstly
|
|
10219
|
+
const nextStep = steps[options.state.activeIndex + 1];
|
|
10220
|
+
if (nextStep?.actionBeforeStep) {
|
|
10221
|
+
await nextStep.actionBeforeStep();
|
|
10222
|
+
}
|
|
10223
|
+
setTimeout(() => {
|
|
10224
|
+
driverObj.moveNext();
|
|
10225
|
+
}, 0);
|
|
10226
|
+
}
|
|
10227
|
+
},
|
|
10228
|
+
onCloseClick: () => {
|
|
10229
|
+
driverObj.destroy();
|
|
10230
|
+
this.runSiteHelperNextStep();
|
|
10231
|
+
this.saveCompletedStatusInCookies();
|
|
10232
|
+
},
|
|
10233
|
+
popoverClass: 'site-helper-popover',
|
|
10234
|
+
onHighlighted: () => {
|
|
10235
|
+
resolve(null);
|
|
10236
|
+
}
|
|
10237
|
+
});
|
|
10238
|
+
driverObj.drive();
|
|
10239
|
+
});
|
|
10240
|
+
}
|
|
10241
|
+
ngOnDestroy() {
|
|
10242
|
+
}
|
|
10243
|
+
}
|
|
10244
|
+
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 });
|
|
10245
|
+
SiteHelperComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: SiteHelperComponent, selector: "shared-site-helper", inputs: { configurations: "configurations" }, 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 });
|
|
10246
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SiteHelperComponent, decorators: [{
|
|
10247
|
+
type: Component,
|
|
10248
|
+
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"] }]
|
|
10249
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.Renderer2 }, { type: FormsFacade }, { type: PublicationMessagesFacade }, { type: StaticDataFacade }, { type: i4$1.CookieService }, { type: i3.Router }]; }, propDecorators: { configurations: [{
|
|
10250
|
+
type: Input
|
|
10251
|
+
}], textDiv: [{
|
|
10252
|
+
type: ViewChild,
|
|
10253
|
+
args: ['siteHelperText']
|
|
10254
|
+
}] } });
|
|
10255
|
+
|
|
10256
|
+
class SiteHelperModule {
|
|
10257
|
+
}
|
|
10258
|
+
SiteHelperModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SiteHelperModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
10259
|
+
SiteHelperModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: SiteHelperModule, declarations: [SiteHelperComponent], imports: [CommonModule], exports: [SiteHelperComponent] });
|
|
10260
|
+
SiteHelperModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SiteHelperModule, imports: [CommonModule] });
|
|
10261
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SiteHelperModule, decorators: [{
|
|
10262
|
+
type: NgModule,
|
|
10263
|
+
args: [{
|
|
10264
|
+
declarations: [SiteHelperComponent],
|
|
10265
|
+
imports: [CommonModule],
|
|
10266
|
+
exports: [SiteHelperComponent]
|
|
10267
|
+
}]
|
|
10268
|
+
}] });
|
|
10269
|
+
|
|
9908
10270
|
class ChipsInputComponent {
|
|
9909
10271
|
constructor() {
|
|
9910
10272
|
this.items = [];
|
|
@@ -11236,5 +11598,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
11236
11598
|
* Generated bundle index. Do not edit.
|
|
11237
11599
|
*/
|
|
11238
11600
|
|
|
11239
|
-
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 };
|
|
11601
|
+
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 };
|
|
11240
11602
|
//# sourceMappingURL=wt-front-shared.mjs.map
|