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,9 @@ 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 { __awaiter } from 'tslib';
|
|
61
|
+
import { driver } from 'driver.js';
|
|
62
|
+
import * as i4$1 from 'ngx-cookie-service';
|
|
60
63
|
import { MatLegacyChipsModule } from '@angular/material/legacy-chips';
|
|
61
64
|
import * as i1$6 from '@angular/cdk/platform';
|
|
62
65
|
import * as i2$4 from '@angular/material/menu';
|
|
@@ -6460,7 +6463,10 @@ const getStaticDataForListContentTypes = (contentTypes) => createSelector(getSta
|
|
|
6460
6463
|
});
|
|
6461
6464
|
const getStaticDataItem = (contentType, subSection, itemIdOrSlug) => createSelector(getStaticDataState, (state) => {
|
|
6462
6465
|
var _a, _b;
|
|
6463
|
-
|
|
6466
|
+
const foundItem = (_b = (_a = state.list[contentType]) === null || _a === void 0 ? void 0 : _a[subSection]) === null || _b === void 0 ? void 0 : _b.find(item => {
|
|
6467
|
+
return Number(item.id) === Number(itemIdOrSlug) || (item === null || item === void 0 ? void 0 : item.slug) === itemIdOrSlug || (item === null || item === void 0 ? void 0 : item.slug) + '.html' === itemIdOrSlug;
|
|
6468
|
+
}); //
|
|
6469
|
+
return foundItem || {};
|
|
6464
6470
|
});
|
|
6465
6471
|
const staticDataQuery = {
|
|
6466
6472
|
getStatus,
|
|
@@ -9634,6 +9640,371 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
9634
9640
|
}]
|
|
9635
9641
|
}] });
|
|
9636
9642
|
|
|
9643
|
+
const publicationErrorTourConfigs = {
|
|
9644
|
+
'0': {
|
|
9645
|
+
option: {
|
|
9646
|
+
callNextAfter: 1000,
|
|
9647
|
+
}
|
|
9648
|
+
},
|
|
9649
|
+
'1': {
|
|
9650
|
+
text: 'У вас имеются замечания, которые требуется исправить перед публикацией вашей записи.',
|
|
9651
|
+
image: 'assets/site-helper/base.png',
|
|
9652
|
+
option: {
|
|
9653
|
+
callNextAfter: 3000
|
|
9654
|
+
}
|
|
9655
|
+
},
|
|
9656
|
+
'2': {
|
|
9657
|
+
text: 'Давайте посмотрим на них',
|
|
9658
|
+
image: 'assets/site-helper/site-tour.png',
|
|
9659
|
+
tourSteps: [
|
|
9660
|
+
{
|
|
9661
|
+
element: '.publish-messages.error-messages', popover: { title: 'Блок ошибок публикации', description: 'В данном разделе вы можете ознакомиться с теми изменениями, которые необходимо внести для публикации вашей записи.' }
|
|
9662
|
+
},
|
|
9663
|
+
{
|
|
9664
|
+
actionBeforeStep: () => {
|
|
9665
|
+
return new Promise((resolve, reject) => {
|
|
9666
|
+
const buttonElement = document.querySelector('.publish-messages button');
|
|
9667
|
+
if (buttonElement) {
|
|
9668
|
+
buttonElement.click();
|
|
9669
|
+
}
|
|
9670
|
+
resolve(null);
|
|
9671
|
+
});
|
|
9672
|
+
},
|
|
9673
|
+
element: '.publish-messages-list div:nth-child(1) shared-panel', popover: { title: 'Первое замечание' }
|
|
9674
|
+
},
|
|
9675
|
+
{
|
|
9676
|
+
element: '.publish-messages-list div:nth-child(1) a', popover: { title: 'По клику на эту ссылку вы сможете найти поле в форме' }
|
|
9677
|
+
},
|
|
9678
|
+
{
|
|
9679
|
+
actionBeforeStep: () => {
|
|
9680
|
+
return new Promise((resolve, reject) => {
|
|
9681
|
+
const buttonElement = document.querySelector('.publish-messages div:nth-child(1) .fuse-card button');
|
|
9682
|
+
if (buttonElement) {
|
|
9683
|
+
buttonElement.click();
|
|
9684
|
+
}
|
|
9685
|
+
resolve(null);
|
|
9686
|
+
});
|
|
9687
|
+
},
|
|
9688
|
+
element: '.publish-messages-list div:nth-child(1) .fuse-card .card-expand-area', popover: { title: 'Тут можно просмотреть описание ошибки' }
|
|
9689
|
+
},
|
|
9690
|
+
{
|
|
9691
|
+
element: '#publish-button', popover: { title: 'После испправления всех замечаний нажмите на кнопку опубликовать' }
|
|
9692
|
+
},
|
|
9693
|
+
]
|
|
9694
|
+
},
|
|
9695
|
+
'3': {
|
|
9696
|
+
image: 'assets/site-helper/all-ok.png',
|
|
9697
|
+
option: {
|
|
9698
|
+
callNextAfter: 1000,
|
|
9699
|
+
}
|
|
9700
|
+
},
|
|
9701
|
+
'4': {}
|
|
9702
|
+
};
|
|
9703
|
+
|
|
9704
|
+
const unPublishTourConfigs = {
|
|
9705
|
+
'0': {
|
|
9706
|
+
option: {
|
|
9707
|
+
callNextAfter: 1000,
|
|
9708
|
+
}
|
|
9709
|
+
},
|
|
9710
|
+
'1': {
|
|
9711
|
+
text: 'Для того чтобы пользователи могли увидеть запись, необходимо её опубликовать.',
|
|
9712
|
+
image: 'assets/site-helper/base.png',
|
|
9713
|
+
option: {
|
|
9714
|
+
callNextByClickButton: 'Я понял'
|
|
9715
|
+
}
|
|
9716
|
+
},
|
|
9717
|
+
'2': {
|
|
9718
|
+
image: 'assets/site-helper/all-ok.png',
|
|
9719
|
+
option: {
|
|
9720
|
+
callNextAfter: 1000,
|
|
9721
|
+
}
|
|
9722
|
+
},
|
|
9723
|
+
'3': {}
|
|
9724
|
+
};
|
|
9725
|
+
|
|
9726
|
+
class SiteHelperComponent {
|
|
9727
|
+
constructor(cd, renderer, formsFacade, publicationMessagesFacade, staticDataFacade, cookieService, router) {
|
|
9728
|
+
this.cd = cd;
|
|
9729
|
+
this.renderer = renderer;
|
|
9730
|
+
this.formsFacade = formsFacade;
|
|
9731
|
+
this.publicationMessagesFacade = publicationMessagesFacade;
|
|
9732
|
+
this.staticDataFacade = staticDataFacade;
|
|
9733
|
+
this.cookieService = cookieService;
|
|
9734
|
+
this.router = router;
|
|
9735
|
+
this.activeConfigStep = -1;
|
|
9736
|
+
this.staticDataUrlKey = 'static-data';
|
|
9737
|
+
this.cookiesKeyPrefix = 'wt-site-tour';
|
|
9738
|
+
this.siteHelperRunning = false;
|
|
9739
|
+
this.siteHelperKeys = {
|
|
9740
|
+
errorPublication: 'error-publication'
|
|
9741
|
+
};
|
|
9742
|
+
}
|
|
9743
|
+
ngOnInit() {
|
|
9744
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9745
|
+
this.pageUrl = this.router.url || '/';
|
|
9746
|
+
this.subscribeToRouteChanges();
|
|
9747
|
+
const isStartedTour = yield this.checkStaticItemData(this.router.url);
|
|
9748
|
+
if (!isStartedTour) {
|
|
9749
|
+
this.siteHelperRunning = true;
|
|
9750
|
+
this.runSiteHelper();
|
|
9751
|
+
}
|
|
9752
|
+
this.subscribeToFormsStatus();
|
|
9753
|
+
});
|
|
9754
|
+
}
|
|
9755
|
+
subscribeToFormsStatus() {
|
|
9756
|
+
this.formsFacade.getAllForms()
|
|
9757
|
+
.pipe(untilComponentDestroyed(this))
|
|
9758
|
+
.subscribe((allForms) => {
|
|
9759
|
+
const inValidForms = allForms.filter(item => item.hasError);
|
|
9760
|
+
});
|
|
9761
|
+
}
|
|
9762
|
+
subscribeToRouteChanges() {
|
|
9763
|
+
this.router.events
|
|
9764
|
+
.pipe(filter$1(event => event instanceof NavigationEnd), untilComponentDestroyed(this))
|
|
9765
|
+
.subscribe((event) => __awaiter(this, void 0, void 0, function* () {
|
|
9766
|
+
this.stopSiteTour();
|
|
9767
|
+
if (event.url !== '/auth') {
|
|
9768
|
+
this.currentSiteHelperKey = '';
|
|
9769
|
+
this.pageUrl = event.url;
|
|
9770
|
+
const isStartedTour = yield this.checkStaticItemData(event.url);
|
|
9771
|
+
if (!isStartedTour) {
|
|
9772
|
+
this.siteHelperRunning = true;
|
|
9773
|
+
this.runSiteHelper();
|
|
9774
|
+
}
|
|
9775
|
+
}
|
|
9776
|
+
else {
|
|
9777
|
+
this.hideSiteTour();
|
|
9778
|
+
this.siteHelperRunning = false;
|
|
9779
|
+
}
|
|
9780
|
+
}));
|
|
9781
|
+
}
|
|
9782
|
+
checkStaticItemData(url) {
|
|
9783
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9784
|
+
const urlParams = url.split('/');
|
|
9785
|
+
if ((urlParams === null || urlParams === void 0 ? void 0 : urlParams.length) > 2 && urlParams[1] === this.staticDataUrlKey && urlParams[2] && Number(urlParams[3])) {
|
|
9786
|
+
const contentType = urlParams[2];
|
|
9787
|
+
const itemId = Number(urlParams[3]);
|
|
9788
|
+
const staticItemData = yield this.getStaticDataItemData(contentType, itemId);
|
|
9789
|
+
if (staticItemData === null || staticItemData === void 0 ? void 0 : staticItemData.id) {
|
|
9790
|
+
const publicationMessages = yield this.getStaticDataFormErrors(contentType, itemId);
|
|
9791
|
+
const errorPublicationMessages = publicationMessages.filter(item => item.isError);
|
|
9792
|
+
if (errorPublicationMessages === null || errorPublicationMessages === void 0 ? void 0 : errorPublicationMessages.length) {
|
|
9793
|
+
const cookieKey = this.getCookieKey(this.siteHelperKeys.errorPublication);
|
|
9794
|
+
if (!this.cookieService.get(cookieKey)) {
|
|
9795
|
+
this.currentSiteHelperKey = this.siteHelperKeys.errorPublication;
|
|
9796
|
+
this.siteHelperRunning = true;
|
|
9797
|
+
this.runSiteHelper(publicationErrorTourConfigs);
|
|
9798
|
+
return true;
|
|
9799
|
+
}
|
|
9800
|
+
}
|
|
9801
|
+
// if user open an item, which has not published yet
|
|
9802
|
+
if (!staticItemData.publishedAt) {
|
|
9803
|
+
this.siteHelperRunning = true;
|
|
9804
|
+
this.runSiteHelper(unPublishTourConfigs);
|
|
9805
|
+
return true;
|
|
9806
|
+
}
|
|
9807
|
+
// if user just have saved, need to say that he needs to publish
|
|
9808
|
+
}
|
|
9809
|
+
}
|
|
9810
|
+
return false;
|
|
9811
|
+
});
|
|
9812
|
+
}
|
|
9813
|
+
saveCompletedStatusInCookies() {
|
|
9814
|
+
if (this.currentSiteHelperKey) {
|
|
9815
|
+
const cookieKey = this.getCookieKey(this.currentSiteHelperKey);
|
|
9816
|
+
const cookiesExpiresDate = new Date();
|
|
9817
|
+
cookiesExpiresDate.setDate(cookiesExpiresDate.getDate() + 10e5);
|
|
9818
|
+
this.cookieService.set(cookieKey, 'true', cookiesExpiresDate);
|
|
9819
|
+
}
|
|
9820
|
+
}
|
|
9821
|
+
getCookieKey(key) {
|
|
9822
|
+
return key ? `${this.cookiesKeyPrefix}-${key}` : null;
|
|
9823
|
+
}
|
|
9824
|
+
getStaticDataFormErrors(contentType, itemId) {
|
|
9825
|
+
return new Promise((resolve, reject) => {
|
|
9826
|
+
this.publicationMessagesFacade.getPublicationMessage(contentType, itemId)
|
|
9827
|
+
.pipe(filter$1(item => !!(item === null || item === void 0 ? void 0 : item.length)), untilComponentDestroyed(this))
|
|
9828
|
+
.subscribe((publicationMessage) => {
|
|
9829
|
+
resolve(publicationMessage);
|
|
9830
|
+
});
|
|
9831
|
+
});
|
|
9832
|
+
}
|
|
9833
|
+
getStaticDataItemData(contentType, itemId) {
|
|
9834
|
+
return new Promise((resolve, reject) => {
|
|
9835
|
+
this.staticDataFacade.getStaticDataItem$(contentType, 'list', itemId)
|
|
9836
|
+
.pipe(filter$1(item => !!item.id), untilComponentDestroyed(this))
|
|
9837
|
+
.subscribe((data) => {
|
|
9838
|
+
resolve(data);
|
|
9839
|
+
});
|
|
9840
|
+
});
|
|
9841
|
+
}
|
|
9842
|
+
stopSiteTour() {
|
|
9843
|
+
if (this.activeConfigStep !== -1) {
|
|
9844
|
+
this.activeConfigStep = -1;
|
|
9845
|
+
this.hideSiteTour();
|
|
9846
|
+
}
|
|
9847
|
+
}
|
|
9848
|
+
hideSiteTour() {
|
|
9849
|
+
var _a;
|
|
9850
|
+
const createdElement = (_a = document.getElementsByClassName('site-helper')) === null || _a === void 0 ? void 0 : _a[0];
|
|
9851
|
+
if (createdElement) {
|
|
9852
|
+
createdElement.remove();
|
|
9853
|
+
}
|
|
9854
|
+
}
|
|
9855
|
+
runSiteHelper(configuration) {
|
|
9856
|
+
this.stopSiteTour();
|
|
9857
|
+
if (this.siteHelperRunning) {
|
|
9858
|
+
this.activeConfigStep = -1;
|
|
9859
|
+
if (configuration) {
|
|
9860
|
+
this.currentSiteHelperConfiguration = configuration;
|
|
9861
|
+
}
|
|
9862
|
+
else if (this.configurations[this.pageUrl]) {
|
|
9863
|
+
const helperKey = `url-${this.pageUrl}`;
|
|
9864
|
+
const cookieKey = this.getCookieKey(helperKey);
|
|
9865
|
+
if (!this.cookieService.get(cookieKey)) {
|
|
9866
|
+
this.currentSiteHelperKey = `url-${this.pageUrl}`;
|
|
9867
|
+
this.currentSiteHelperConfiguration = this.configurations[this.pageUrl];
|
|
9868
|
+
}
|
|
9869
|
+
}
|
|
9870
|
+
if (this.currentSiteHelperConfiguration) {
|
|
9871
|
+
this.runSiteHelperNextStep();
|
|
9872
|
+
}
|
|
9873
|
+
}
|
|
9874
|
+
}
|
|
9875
|
+
runSiteHelperNextStep() {
|
|
9876
|
+
var _a, _b, _c;
|
|
9877
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9878
|
+
if (!this.siteHelperRunning) {
|
|
9879
|
+
return;
|
|
9880
|
+
}
|
|
9881
|
+
this.activeConfigStep++;
|
|
9882
|
+
const configItem = (_a = this.currentSiteHelperConfiguration) === null || _a === void 0 ? void 0 : _a[this.activeConfigStep];
|
|
9883
|
+
if (configItem) {
|
|
9884
|
+
let textDiv;
|
|
9885
|
+
let imageDiv;
|
|
9886
|
+
this.hideSiteTour();
|
|
9887
|
+
if (configItem.tourSteps) {
|
|
9888
|
+
yield this.initSiteTour(configItem.tourSteps);
|
|
9889
|
+
}
|
|
9890
|
+
if (configItem.text) {
|
|
9891
|
+
textDiv = this.renderer.createElement('div');
|
|
9892
|
+
textDiv.classList.add('site-helper-text');
|
|
9893
|
+
textDiv.innerHTML = configItem.text;
|
|
9894
|
+
if ((_b = configItem.option) === null || _b === void 0 ? void 0 : _b.callNextByClickButton) {
|
|
9895
|
+
const buttonDiv = this.renderer.createElement('div');
|
|
9896
|
+
buttonDiv.classList.add('site-helper-text-button');
|
|
9897
|
+
const button = this.renderer.createElement('button');
|
|
9898
|
+
button.textContent = configItem.option.callNextByClickButton;
|
|
9899
|
+
button.onclick = () => {
|
|
9900
|
+
this.runSiteHelperNextStep();
|
|
9901
|
+
};
|
|
9902
|
+
this.renderer.appendChild(buttonDiv, button);
|
|
9903
|
+
this.renderer.appendChild(textDiv, buttonDiv);
|
|
9904
|
+
}
|
|
9905
|
+
}
|
|
9906
|
+
if (configItem.image) {
|
|
9907
|
+
imageDiv = this.renderer.createElement('div');
|
|
9908
|
+
imageDiv.classList.add('site-helper-image');
|
|
9909
|
+
const image = this.renderer.createElement('img');
|
|
9910
|
+
image.src = configItem.image;
|
|
9911
|
+
this.renderer.appendChild(imageDiv, image);
|
|
9912
|
+
}
|
|
9913
|
+
if (textDiv || imageDiv) {
|
|
9914
|
+
const commonDiv = this.renderer.createElement('div');
|
|
9915
|
+
commonDiv.classList.add('site-helper');
|
|
9916
|
+
if (textDiv) {
|
|
9917
|
+
this.renderer.appendChild(commonDiv, textDiv);
|
|
9918
|
+
}
|
|
9919
|
+
if (imageDiv) {
|
|
9920
|
+
this.renderer.appendChild(commonDiv, imageDiv);
|
|
9921
|
+
}
|
|
9922
|
+
this.renderer.appendChild(document.body, commonDiv);
|
|
9923
|
+
}
|
|
9924
|
+
if ((_c = configItem === null || configItem === void 0 ? void 0 : configItem.option) === null || _c === void 0 ? void 0 : _c.callNextAfter) {
|
|
9925
|
+
setTimeout(() => {
|
|
9926
|
+
this.runSiteHelperNextStep();
|
|
9927
|
+
}, configItem.option.callNextAfter);
|
|
9928
|
+
}
|
|
9929
|
+
this.cd.markForCheck();
|
|
9930
|
+
}
|
|
9931
|
+
// Complete the site tour
|
|
9932
|
+
if (this.activeConfigStep === (Object.keys(this.currentSiteHelperConfiguration).length + 1)) {
|
|
9933
|
+
this.siteHelperRunning = false;
|
|
9934
|
+
}
|
|
9935
|
+
});
|
|
9936
|
+
}
|
|
9937
|
+
initSiteTour(steps) {
|
|
9938
|
+
return new Promise((resolve, reject) => {
|
|
9939
|
+
const driverObj = driver({
|
|
9940
|
+
showProgress: true,
|
|
9941
|
+
steps: [
|
|
9942
|
+
...steps
|
|
9943
|
+
],
|
|
9944
|
+
progressText: '{{current}} из {{total}}',
|
|
9945
|
+
nextBtnText: 'Следующий',
|
|
9946
|
+
prevBtnText: 'Предыдыщий',
|
|
9947
|
+
doneBtnText: 'Готово',
|
|
9948
|
+
onNextClick: (element, step, options) => __awaiter(this, void 0, void 0, function* () {
|
|
9949
|
+
if (driverObj.isLastStep()) {
|
|
9950
|
+
this.saveCompletedStatusInCookies();
|
|
9951
|
+
this.runSiteHelperNextStep();
|
|
9952
|
+
driverObj.destroy();
|
|
9953
|
+
resolve(null);
|
|
9954
|
+
}
|
|
9955
|
+
else {
|
|
9956
|
+
// if next step has actionBeforeStep, need to run it firstly
|
|
9957
|
+
const nextStep = steps[options.state.activeIndex + 1];
|
|
9958
|
+
if (nextStep === null || nextStep === void 0 ? void 0 : nextStep.actionBeforeStep) {
|
|
9959
|
+
yield nextStep.actionBeforeStep();
|
|
9960
|
+
}
|
|
9961
|
+
setTimeout(() => {
|
|
9962
|
+
driverObj.moveNext();
|
|
9963
|
+
}, 0);
|
|
9964
|
+
}
|
|
9965
|
+
}),
|
|
9966
|
+
onCloseClick: () => {
|
|
9967
|
+
driverObj.destroy();
|
|
9968
|
+
this.runSiteHelperNextStep();
|
|
9969
|
+
this.saveCompletedStatusInCookies();
|
|
9970
|
+
},
|
|
9971
|
+
popoverClass: 'site-helper-popover',
|
|
9972
|
+
onHighlighted: () => {
|
|
9973
|
+
resolve(null);
|
|
9974
|
+
}
|
|
9975
|
+
});
|
|
9976
|
+
driverObj.drive();
|
|
9977
|
+
});
|
|
9978
|
+
}
|
|
9979
|
+
ngOnDestroy() {
|
|
9980
|
+
}
|
|
9981
|
+
}
|
|
9982
|
+
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 });
|
|
9983
|
+
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 });
|
|
9984
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SiteHelperComponent, decorators: [{
|
|
9985
|
+
type: Component,
|
|
9986
|
+
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"] }]
|
|
9987
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.Renderer2 }, { type: FormsFacade }, { type: PublicationMessagesFacade }, { type: StaticDataFacade }, { type: i4$1.CookieService }, { type: i3.Router }]; }, propDecorators: { configurations: [{
|
|
9988
|
+
type: Input
|
|
9989
|
+
}], textDiv: [{
|
|
9990
|
+
type: ViewChild,
|
|
9991
|
+
args: ['siteHelperText']
|
|
9992
|
+
}] } });
|
|
9993
|
+
|
|
9994
|
+
class SiteHelperModule {
|
|
9995
|
+
}
|
|
9996
|
+
SiteHelperModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SiteHelperModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
9997
|
+
SiteHelperModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: SiteHelperModule, declarations: [SiteHelperComponent], imports: [CommonModule], exports: [SiteHelperComponent] });
|
|
9998
|
+
SiteHelperModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SiteHelperModule, imports: [CommonModule] });
|
|
9999
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SiteHelperModule, decorators: [{
|
|
10000
|
+
type: NgModule,
|
|
10001
|
+
args: [{
|
|
10002
|
+
declarations: [SiteHelperComponent],
|
|
10003
|
+
imports: [CommonModule],
|
|
10004
|
+
exports: [SiteHelperComponent]
|
|
10005
|
+
}]
|
|
10006
|
+
}] });
|
|
10007
|
+
|
|
9637
10008
|
class ChipsInputComponent {
|
|
9638
10009
|
constructor() {
|
|
9639
10010
|
this.items = [];
|
|
@@ -10961,5 +11332,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
10961
11332
|
* Generated bundle index. Do not edit.
|
|
10962
11333
|
*/
|
|
10963
11334
|
|
|
10964
|
-
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 };
|
|
11335
|
+
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 };
|
|
10965
11336
|
//# sourceMappingURL=wt-front-shared.mjs.map
|