wt-front-shared 1.0.43 → 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/components/site-helper/interfaces/config.interfaces.mjs +1 -1
- package/esm2020/lib/core/components/site-helper/site-helper.component.mjs +8 -7
- package/fesm2015/wt-front-shared.mjs +6 -106
- package/fesm2015/wt-front-shared.mjs.map +1 -1
- package/fesm2020/wt-front-shared.mjs +6 -106
- package/fesm2020/wt-front-shared.mjs.map +1 -1
- package/lib/core/components/site-helper/site-helper.component.d.ts +4 -3
- package/package.json +1 -1
- package/esm2020/lib/core/components/site-helper/configs/config.mjs +0 -8
- package/esm2020/lib/core/components/site-helper/configs/firm-tour.config.mjs +0 -66
- package/esm2020/lib/core/components/site-helper/configs/main-tour.config.mjs +0 -30
- package/lib/core/components/site-helper/configs/config.d.ts +0 -5
- package/lib/core/components/site-helper/configs/firm-tour.config.d.ts +0 -3
- package/lib/core/components/site-helper/configs/main-tour.config.d.ts +0 -2
|
@@ -9910,108 +9910,6 @@ 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
9913
|
const publicationErrorTourConfigs = {
|
|
10016
9914
|
'0': {
|
|
10017
9915
|
option: {
|
|
@@ -10226,12 +10124,12 @@ class SiteHelperComponent {
|
|
|
10226
10124
|
if (configuration) {
|
|
10227
10125
|
this.currentSiteHelperConfiguration = configuration;
|
|
10228
10126
|
}
|
|
10229
|
-
else if (
|
|
10127
|
+
else if (this.configurations[this.pageUrl]) {
|
|
10230
10128
|
const helperKey = `url-${this.pageUrl}`;
|
|
10231
10129
|
const cookieKey = this.getCookieKey(helperKey);
|
|
10232
10130
|
if (!this.cookieService.get(cookieKey)) {
|
|
10233
10131
|
this.currentSiteHelperKey = `url-${this.pageUrl}`;
|
|
10234
|
-
this.currentSiteHelperConfiguration =
|
|
10132
|
+
this.currentSiteHelperConfiguration = this.configurations[this.pageUrl];
|
|
10235
10133
|
}
|
|
10236
10134
|
}
|
|
10237
10135
|
if (this.currentSiteHelperConfiguration) {
|
|
@@ -10344,11 +10242,13 @@ class SiteHelperComponent {
|
|
|
10344
10242
|
}
|
|
10345
10243
|
}
|
|
10346
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 });
|
|
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 });
|
|
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 });
|
|
10348
10246
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: SiteHelperComponent, decorators: [{
|
|
10349
10247
|
type: Component,
|
|
10350
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"] }]
|
|
10351
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.Renderer2 }, { type: FormsFacade }, { type: PublicationMessagesFacade }, { type: StaticDataFacade }, { type: i4$1.CookieService }, { type: i3.Router }]; }, propDecorators: {
|
|
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: [{
|
|
10352
10252
|
type: ViewChild,
|
|
10353
10253
|
args: ['siteHelperText']
|
|
10354
10254
|
}] } });
|