wt-front-shared 1.0.37 → 1.0.39

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.
@@ -7466,15 +7466,21 @@ class FormFieldFileComponent {
7466
7466
  }
7467
7467
  ngOnInit() {
7468
7468
  this.statusChanges$ = this.form.valueChanges;
7469
- // If the form reset need to clear the field
7470
- this.form.statusChanges
7471
- .pipe(untilComponentDestroyed(this))
7472
- .subscribe(() => {
7473
- if (!this.currentPristineValue && this.form.pristine) {
7474
- this.clearFile();
7475
- }
7476
- this.currentPristineValue = this.form.pristine;
7477
- });
7469
+ // If the form reset, need to clear the field
7470
+ /*
7471
+ @TODO Need to test
7472
+ this.form.statusChanges
7473
+ .pipe(
7474
+ untilComponentDestroyed(this)
7475
+ )
7476
+ .subscribe(() => {
7477
+ console.log("this.currentPristineValue", this.currentPristineValue, this.form.pristine);
7478
+ if (!this.currentPristineValue && this.form.pristine) {
7479
+ console.log("ngOnInit");
7480
+ this.clearFile();
7481
+ }
7482
+ this.currentPristineValue = this.form.pristine;
7483
+ });*/
7478
7484
  }
7479
7485
  ngOnChanges(changes) {
7480
7486
  var _a, _b, _c;
@@ -7511,12 +7517,14 @@ class FormFieldFileComponent {
7511
7517
  }
7512
7518
  deleteImage() {
7513
7519
  var _a;
7520
+ console.log("deleteImage");
7514
7521
  const id = (_a = this.form.get("id")) === null || _a === void 0 ? void 0 : _a.value;
7515
7522
  const field = this.fieldData.field;
7516
7523
  if (id) {
7517
7524
  this.dialogService.openDeleteDialog()
7518
7525
  .pipe(untilComponentDestroyed(this))
7519
7526
  .subscribe((result) => {
7527
+ console.log("result");
7520
7528
  if (result) {
7521
7529
  if (!this.imageSource) {
7522
7530
  this.initRequest();
@@ -7536,7 +7544,8 @@ class FormFieldFileComponent {
7536
7544
  this.request$ = this.requestsFacade.getRequestUpdates(this.formDeleteFile, this.putMethod);
7537
7545
  this.request$
7538
7546
  .pipe(filter(request => request.status === this.requestStatuses.LOADED), take(1), untilComponentDestroyed(this))
7539
- .subscribe(() => {
7547
+ .subscribe((data) => {
7548
+ console.log("data", data);
7540
7549
  this.clearFile();
7541
7550
  });
7542
7551
  }
@@ -7545,7 +7554,7 @@ class FormFieldFileComponent {
7545
7554
  console.log("clearFile");
7546
7555
  this.input.nativeElement.value = "";
7547
7556
  this.imageSource = "";
7548
- // this.imageVersions = null;
7557
+ this.imageVersions = null;
7549
7558
  this.inputStatus = "1";
7550
7559
  this.cd.markForCheck();
7551
7560
  }
@@ -8604,20 +8613,21 @@ class PublicationMessagesComponent {
8604
8613
  this.autoFormService = autoFormService;
8605
8614
  this.cd = cd;
8606
8615
  this.config = { needToPublish: true };
8616
+ this.havePublication = true;
8607
8617
  this.scrollToField = new EventEmitter();
8608
8618
  this.errorOpened = false;
8609
8619
  this.messagesOpened = false;
8610
- this.publishedTitle = 'Позиция опубликована до';
8611
- this.unPublishedTitle = 'Внимание позиция еще НЕ опубликована';
8612
- this.unPublishedMessage = 'Для публикации позиции нужно заполнить все поля и нажать на кнопку ОПУБЛИКОВАТЬ';
8613
- this.errorTitleSource = 'Для публикации Вам обязательно нужно исправить <b>${pointCount}</b> пункт(а/ов)';
8614
- this.recommendationTitleSource = 'Мы также рекомендуем Вам исправить <b>${pointCount}</b> пункт(а/ов)';
8615
- this.errorTitle = '';
8616
- this.recommendationTitle = '';
8620
+ this.publishedTitle = "Позиция опубликована до";
8621
+ this.unPublishedTitle = "Внимание позиция еще НЕ опубликована";
8622
+ this.unPublishedMessage = "Для публикации позиции нужно заполнить все поля и нажать на кнопку ОПУБЛИКОВАТЬ";
8623
+ this.errorTitleSource = "Для публикации Вам обязательно нужно исправить <b>${pointCount}</b> пункт(а/ов)";
8624
+ this.recommendationTitleSource = "Мы также рекомендуем Вам исправить <b>${pointCount}</b> пункт(а/ов)";
8625
+ this.errorTitle = "";
8626
+ this.recommendationTitle = "";
8617
8627
  this.publishErrorConstants = PublishErrors;
8618
- this.itemPublishFinishedField = 'publishFinishedAt';
8619
- this.itemPublishFinishedAt = '';
8620
- this.itemPublishFinishedAtTmp = '';
8628
+ this.itemPublishFinishedField = "publishFinishedAt";
8629
+ this.itemPublishFinishedAt = "";
8630
+ this.itemPublishFinishedAtTmp = "";
8621
8631
  }
8622
8632
  ngOnInit() {
8623
8633
  this.subscribeToFormChanges();
@@ -8650,7 +8660,7 @@ class PublicationMessagesComponent {
8650
8660
  }
8651
8661
  definitionPublicationMessages() {
8652
8662
  var _a;
8653
- if (typeof this.entity === 'string') {
8663
+ if (typeof this.entity === "string") {
8654
8664
  this.publicationMessagesFacade.getPublicationMessage((_a = this.entity) === null || _a === void 0 ? void 0 : _a.toLowerCase(), this.itemId)
8655
8665
  .pipe(untilComponentDestroyed(this))
8656
8666
  .subscribe((messages) => {
@@ -8660,10 +8670,10 @@ class PublicationMessagesComponent {
8660
8670
  const tmpRecommendation = this.filterMessages(false, messages);
8661
8671
  this.recommendation = this.prepareErrors(tmpRecommendation);
8662
8672
  if (this.errors.length) {
8663
- this.errorTitle = this.errorTitleSource.replace('${pointCount}', String(this.errors.length));
8673
+ this.errorTitle = this.errorTitleSource.replace("${pointCount}", String(this.errors.length));
8664
8674
  }
8665
8675
  if (this.recommendation.length) {
8666
- this.recommendationTitle = this.recommendationTitleSource.replace('${pointCount}', String(this.recommendation.length));
8676
+ this.recommendationTitle = this.recommendationTitleSource.replace("${pointCount}", String(this.recommendation.length));
8667
8677
  }
8668
8678
  }
8669
8679
  else {
@@ -8674,7 +8684,7 @@ class PublicationMessagesComponent {
8674
8684
  });
8675
8685
  }
8676
8686
  else {
8677
- console.error('[ publish-messages ][ entity-type ]', { entity: this.entity }, 'INCORRECT_ENTITY_TYPE');
8687
+ console.error("[ publish-messages ][ entity-type ]", { entity: this.entity }, "INCORRECT_ENTITY_TYPE");
8678
8688
  }
8679
8689
  }
8680
8690
  filterMessages(error = false, messages) {
@@ -8697,10 +8707,10 @@ class PublicationMessagesComponent {
8697
8707
  }
8698
8708
  }
8699
8709
  PublicationMessagesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PublicationMessagesComponent, deps: [{ token: PublicationMessagesFacade }, { token: AutoFormService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
8700
- PublicationMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PublicationMessagesComponent, selector: "shared-publication-messages", inputs: { entity: "entity", form: "form", itemId: "itemId", fields: "fields", config: "config" }, outputs: { scrollToField: "scrollToField" }, usesOnChanges: true, ngImport: i0, template: "<div *ngIf=\"itemPublishFinishedAt\" @appearFromLeftWithDelay class=\"message-box success mb-10\">\n <div>{{publishedTitle}} <b>{{itemPublishFinishedAt| date : 'MMM d, y'}}</b></div>\n</div>\n<div *ngIf=\"!itemPublishFinishedAt && config.needToPublish\" @appearFromLeftWithDelay class=\"message-box error mb-10\">\n <div>{{unPublishedTitle}}</div>\n <div class=\"fs-12 pt-0\">{{unPublishedMessage}}</div>\n</div>\n<ng-container *ngIf=\"errors?.length\">\n <ng-container *ngTemplateOutlet=\"listMessages; context: {title: errorTitle, isError: true, messages: errors}\"></ng-container>\n</ng-container>\n<ng-container *ngIf=\"recommendation?.length\">\n <ng-container *ngTemplateOutlet=\"listMessages; context: {title: recommendationTitle, isError: false, messages: recommendation}\"></ng-container>\n</ng-container>\n<ng-template #listMessages let-title=\"title\" let-isError=\"isError\" let-messages=\"messages\">\n <div class=\"publish-messages mb-10\"\n [ngClass]=\"{'error-messages': isError, 'warning-messages': !isError}\">\n <div class=\"title cursor-pointer\"\n fxLayout=\"row\"\n fxLayoutAlign=\"space-between center\"\n (click)=\"toggleExpand(isError)\">\n <div fxLayout=\"row\" fxLayoutAlign=\"left center\">\n <mat-icon class=\"f-28 ml-10 mr-20\">{{isError? 'error' : 'report_problem'}}</mat-icon>\n <h4 [innerHTML]=\"title\"></h4>\n </div>\n <shared-button\n color=\"basic\"\n iconColor=\"orange_gray\"\n size=\"large\"\n [icon]=\"(isError && errorOpened) || (!isError && messagesOpened) ? 'keyboard_arrow_up' : 'keyboard_arrow_down'\"></shared-button>\n </div>\n <div *ngIf=\"(errorOpened && isError) || (messagesOpened && !isError)\"\n [@expandCollapse]\n class=\"publish-messages-list\">\n <div *ngFor=\"let messageData of messages;trackBy: truckByField\" class=\"mb-10\">\n <shared-panel [title]=\"messageData.title\"\n [description]=\"messageData.description\"\n color=\"red-light\"\n buttonColor=\"accent\"\n ></shared-panel>\n <a class=\"cursor-pointer color-grey fs-12\" (click)=\"showScrollToFieldMethod(messageData.field)\">\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043F\u043E\u043B\u0435</a>\n </div>\n </div>\n </div>\n</ng-template>\n<div *ngIf=\"errors?.length || recommendation?.length\" fxLayout=\"row\" fxLayoutAlign=\"end center\" class=\"fs-12\">\n \u0415\u0441\u043B\u0438 \u0443 \u0412\u0430\u0441 \u0435\u0441\u0442\u044C \u0432\u043E\u043F\u0440\u043E\u0441\u044B \u043F\u043E \u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0446\u0438\u0438 \u043F\u0438\u0448\u0438\u0442\u0435 \u0432 <a class=\"pl-5\" href=\"mailto:support@world-travel.uz\">support@world-travel.uz</a>\n</div>\n", styles: [".publish-messages{border-radius:8px;overflow:hidden}.publish-messages.error-messages{background:linear-gradient(90deg,#ef847c,#f190af)}.publish-messages.error-messages .title{background:#f44336;background:linear-gradient(to bottom,#f44336,#af3b32);color:#fff}.publish-messages.warning-messages{background:linear-gradient(260deg,#faf0cd,#fab397)}.publish-messages.warning-messages .title{background:#e28d0b;background:linear-gradient(to bottom,#ffb646,#e28d0b);color:#fff}.publish-messages .title{padding:10px;border-top-left-radius:8px;border-top-right-radius:8px;text-shadow:0 0 6px rgba(56,56,56,.5803921569);font-size:16px}.publish-messages .publish-messages-list{padding:10px}.publish-messages .h4,.publish-messages h4{cursor:pointer}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i9.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i9.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "component", type: i2$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: PanelComponent, selector: "shared-panel", inputs: ["title", "smallDescription", "description", "color", "buttonColor"], outputs: ["close"] }, { kind: "component", type: ButtonComponent, selector: "shared-button", inputs: ["icon", "iconColor", "iconSize", "rightIcon", "disabled", "loading", "active", "stopPropagation", "type", "color", "size", "styleTheme", "tooltip", "tooltipPosition"], outputs: ["clickButton"] }, { kind: "pipe", type: i1$3.DatePipe, name: "date" }], animations: [expandCollapse, appearFromLeftWithDelay], changeDetection: i0.ChangeDetectionStrategy.OnPush });
8710
+ PublicationMessagesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: PublicationMessagesComponent, selector: "shared-publication-messages", inputs: { entity: "entity", form: "form", itemId: "itemId", fields: "fields", config: "config", havePublication: "havePublication" }, outputs: { scrollToField: "scrollToField" }, usesOnChanges: true, ngImport: i0, template: "<div *ngIf=\"itemPublishFinishedAt\" @appearFromLeftWithDelay class=\"message-box success mb-10\">\n <div>{{publishedTitle}} <b>{{itemPublishFinishedAt| date : 'MMM d, y'}}</b></div>\n</div>\n<div *ngIf=\"!itemPublishFinishedAt && havePublication\" @appearFromLeftWithDelay class=\"message-box error mb-10\">\n <div>{{unPublishedTitle}}</div>\n <div class=\"fs-12 pt-0\">{{unPublishedMessage}}</div>\n</div>\n<ng-container *ngIf=\"errors?.length\">\n <ng-container *ngTemplateOutlet=\"listMessages; context: {title: errorTitle, isError: true, messages: errors}\"></ng-container>\n</ng-container>\n<ng-container *ngIf=\"recommendation?.length\">\n <ng-container *ngTemplateOutlet=\"listMessages; context: {title: recommendationTitle, isError: false, messages: recommendation}\"></ng-container>\n</ng-container>\n<ng-template #listMessages let-title=\"title\" let-isError=\"isError\" let-messages=\"messages\">\n <div class=\"publish-messages mb-10\"\n [ngClass]=\"{'error-messages': isError, 'warning-messages': !isError}\">\n <div class=\"title cursor-pointer\"\n fxLayout=\"row\"\n fxLayoutAlign=\"space-between center\"\n (click)=\"toggleExpand(isError)\">\n <div fxLayout=\"row\" fxLayoutAlign=\"left center\">\n <mat-icon class=\"f-28 ml-10 mr-20\">{{isError? 'error' : 'report_problem'}}</mat-icon>\n <h4 [innerHTML]=\"title\"></h4>\n </div>\n <shared-button\n color=\"basic\"\n iconColor=\"orange_gray\"\n size=\"large\"\n [icon]=\"(isError && errorOpened) || (!isError && messagesOpened) ? 'keyboard_arrow_up' : 'keyboard_arrow_down'\"></shared-button>\n </div>\n <div *ngIf=\"(errorOpened && isError) || (messagesOpened && !isError)\"\n [@expandCollapse]\n class=\"publish-messages-list\">\n <div *ngFor=\"let messageData of messages;trackBy: truckByField\" class=\"mb-10\">\n <shared-panel [title]=\"messageData.title\"\n [description]=\"messageData.description\"\n color=\"red-light\"\n buttonColor=\"accent\"\n ></shared-panel>\n <a class=\"cursor-pointer color-grey fs-12\" (click)=\"showScrollToFieldMethod(messageData.field)\">\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043F\u043E\u043B\u0435</a>\n </div>\n </div>\n </div>\n</ng-template>\n<div *ngIf=\"errors?.length || recommendation?.length\" fxLayout=\"row\" fxLayoutAlign=\"end center\" class=\"fs-12\">\n \u0415\u0441\u043B\u0438 \u0443 \u0412\u0430\u0441 \u0435\u0441\u0442\u044C \u0432\u043E\u043F\u0440\u043E\u0441\u044B \u043F\u043E \u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0446\u0438\u0438 \u043F\u0438\u0448\u0438\u0442\u0435 \u0432 <a class=\"pl-5\" href=\"mailto:support@world-travel.uz\">support@world-travel.uz</a>\n</div>\n", styles: [".publish-messages{border-radius:8px;overflow:hidden}.publish-messages.error-messages{background:linear-gradient(90deg,#ef847c,#f190af)}.publish-messages.error-messages .title{background:#f44336;background:linear-gradient(to bottom,#f44336,#af3b32);color:#fff}.publish-messages.warning-messages{background:linear-gradient(260deg,#faf0cd,#fab397)}.publish-messages.warning-messages .title{background:#e28d0b;background:linear-gradient(to bottom,#ffb646,#e28d0b);color:#fff}.publish-messages .title{padding:10px;border-top-left-radius:8px;border-top-right-radius:8px;text-shadow:0 0 6px rgba(56,56,56,.5803921569);font-size:16px}.publish-messages .publish-messages-list{padding:10px}.publish-messages .h4,.publish-messages h4{cursor:pointer}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i9.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i9.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "component", type: i2$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: PanelComponent, selector: "shared-panel", inputs: ["title", "smallDescription", "description", "color", "buttonColor"], outputs: ["close"] }, { kind: "component", type: ButtonComponent, selector: "shared-button", inputs: ["icon", "iconColor", "iconSize", "rightIcon", "disabled", "loading", "active", "stopPropagation", "type", "color", "size", "styleTheme", "tooltip", "tooltipPosition"], outputs: ["clickButton"] }, { kind: "pipe", type: i1$3.DatePipe, name: "date" }], animations: [expandCollapse, appearFromLeftWithDelay], changeDetection: i0.ChangeDetectionStrategy.OnPush });
8701
8711
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: PublicationMessagesComponent, decorators: [{
8702
8712
  type: Component,
8703
- args: [{ selector: 'shared-publication-messages', animations: [expandCollapse, appearFromLeftWithDelay], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div *ngIf=\"itemPublishFinishedAt\" @appearFromLeftWithDelay class=\"message-box success mb-10\">\n <div>{{publishedTitle}} <b>{{itemPublishFinishedAt| date : 'MMM d, y'}}</b></div>\n</div>\n<div *ngIf=\"!itemPublishFinishedAt && config.needToPublish\" @appearFromLeftWithDelay class=\"message-box error mb-10\">\n <div>{{unPublishedTitle}}</div>\n <div class=\"fs-12 pt-0\">{{unPublishedMessage}}</div>\n</div>\n<ng-container *ngIf=\"errors?.length\">\n <ng-container *ngTemplateOutlet=\"listMessages; context: {title: errorTitle, isError: true, messages: errors}\"></ng-container>\n</ng-container>\n<ng-container *ngIf=\"recommendation?.length\">\n <ng-container *ngTemplateOutlet=\"listMessages; context: {title: recommendationTitle, isError: false, messages: recommendation}\"></ng-container>\n</ng-container>\n<ng-template #listMessages let-title=\"title\" let-isError=\"isError\" let-messages=\"messages\">\n <div class=\"publish-messages mb-10\"\n [ngClass]=\"{'error-messages': isError, 'warning-messages': !isError}\">\n <div class=\"title cursor-pointer\"\n fxLayout=\"row\"\n fxLayoutAlign=\"space-between center\"\n (click)=\"toggleExpand(isError)\">\n <div fxLayout=\"row\" fxLayoutAlign=\"left center\">\n <mat-icon class=\"f-28 ml-10 mr-20\">{{isError? 'error' : 'report_problem'}}</mat-icon>\n <h4 [innerHTML]=\"title\"></h4>\n </div>\n <shared-button\n color=\"basic\"\n iconColor=\"orange_gray\"\n size=\"large\"\n [icon]=\"(isError && errorOpened) || (!isError && messagesOpened) ? 'keyboard_arrow_up' : 'keyboard_arrow_down'\"></shared-button>\n </div>\n <div *ngIf=\"(errorOpened && isError) || (messagesOpened && !isError)\"\n [@expandCollapse]\n class=\"publish-messages-list\">\n <div *ngFor=\"let messageData of messages;trackBy: truckByField\" class=\"mb-10\">\n <shared-panel [title]=\"messageData.title\"\n [description]=\"messageData.description\"\n color=\"red-light\"\n buttonColor=\"accent\"\n ></shared-panel>\n <a class=\"cursor-pointer color-grey fs-12\" (click)=\"showScrollToFieldMethod(messageData.field)\">\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043F\u043E\u043B\u0435</a>\n </div>\n </div>\n </div>\n</ng-template>\n<div *ngIf=\"errors?.length || recommendation?.length\" fxLayout=\"row\" fxLayoutAlign=\"end center\" class=\"fs-12\">\n \u0415\u0441\u043B\u0438 \u0443 \u0412\u0430\u0441 \u0435\u0441\u0442\u044C \u0432\u043E\u043F\u0440\u043E\u0441\u044B \u043F\u043E \u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0446\u0438\u0438 \u043F\u0438\u0448\u0438\u0442\u0435 \u0432 <a class=\"pl-5\" href=\"mailto:support@world-travel.uz\">support@world-travel.uz</a>\n</div>\n", styles: [".publish-messages{border-radius:8px;overflow:hidden}.publish-messages.error-messages{background:linear-gradient(90deg,#ef847c,#f190af)}.publish-messages.error-messages .title{background:#f44336;background:linear-gradient(to bottom,#f44336,#af3b32);color:#fff}.publish-messages.warning-messages{background:linear-gradient(260deg,#faf0cd,#fab397)}.publish-messages.warning-messages .title{background:#e28d0b;background:linear-gradient(to bottom,#ffb646,#e28d0b);color:#fff}.publish-messages .title{padding:10px;border-top-left-radius:8px;border-top-right-radius:8px;text-shadow:0 0 6px rgba(56,56,56,.5803921569);font-size:16px}.publish-messages .publish-messages-list{padding:10px}.publish-messages .h4,.publish-messages h4{cursor:pointer}\n"] }]
8713
+ args: [{ selector: "shared-publication-messages", animations: [expandCollapse, appearFromLeftWithDelay], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div *ngIf=\"itemPublishFinishedAt\" @appearFromLeftWithDelay class=\"message-box success mb-10\">\n <div>{{publishedTitle}} <b>{{itemPublishFinishedAt| date : 'MMM d, y'}}</b></div>\n</div>\n<div *ngIf=\"!itemPublishFinishedAt && havePublication\" @appearFromLeftWithDelay class=\"message-box error mb-10\">\n <div>{{unPublishedTitle}}</div>\n <div class=\"fs-12 pt-0\">{{unPublishedMessage}}</div>\n</div>\n<ng-container *ngIf=\"errors?.length\">\n <ng-container *ngTemplateOutlet=\"listMessages; context: {title: errorTitle, isError: true, messages: errors}\"></ng-container>\n</ng-container>\n<ng-container *ngIf=\"recommendation?.length\">\n <ng-container *ngTemplateOutlet=\"listMessages; context: {title: recommendationTitle, isError: false, messages: recommendation}\"></ng-container>\n</ng-container>\n<ng-template #listMessages let-title=\"title\" let-isError=\"isError\" let-messages=\"messages\">\n <div class=\"publish-messages mb-10\"\n [ngClass]=\"{'error-messages': isError, 'warning-messages': !isError}\">\n <div class=\"title cursor-pointer\"\n fxLayout=\"row\"\n fxLayoutAlign=\"space-between center\"\n (click)=\"toggleExpand(isError)\">\n <div fxLayout=\"row\" fxLayoutAlign=\"left center\">\n <mat-icon class=\"f-28 ml-10 mr-20\">{{isError? 'error' : 'report_problem'}}</mat-icon>\n <h4 [innerHTML]=\"title\"></h4>\n </div>\n <shared-button\n color=\"basic\"\n iconColor=\"orange_gray\"\n size=\"large\"\n [icon]=\"(isError && errorOpened) || (!isError && messagesOpened) ? 'keyboard_arrow_up' : 'keyboard_arrow_down'\"></shared-button>\n </div>\n <div *ngIf=\"(errorOpened && isError) || (messagesOpened && !isError)\"\n [@expandCollapse]\n class=\"publish-messages-list\">\n <div *ngFor=\"let messageData of messages;trackBy: truckByField\" class=\"mb-10\">\n <shared-panel [title]=\"messageData.title\"\n [description]=\"messageData.description\"\n color=\"red-light\"\n buttonColor=\"accent\"\n ></shared-panel>\n <a class=\"cursor-pointer color-grey fs-12\" (click)=\"showScrollToFieldMethod(messageData.field)\">\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u043F\u043E\u043B\u0435</a>\n </div>\n </div>\n </div>\n</ng-template>\n<div *ngIf=\"errors?.length || recommendation?.length\" fxLayout=\"row\" fxLayoutAlign=\"end center\" class=\"fs-12\">\n \u0415\u0441\u043B\u0438 \u0443 \u0412\u0430\u0441 \u0435\u0441\u0442\u044C \u0432\u043E\u043F\u0440\u043E\u0441\u044B \u043F\u043E \u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0446\u0438\u0438 \u043F\u0438\u0448\u0438\u0442\u0435 \u0432 <a class=\"pl-5\" href=\"mailto:support@world-travel.uz\">support@world-travel.uz</a>\n</div>\n", styles: [".publish-messages{border-radius:8px;overflow:hidden}.publish-messages.error-messages{background:linear-gradient(90deg,#ef847c,#f190af)}.publish-messages.error-messages .title{background:#f44336;background:linear-gradient(to bottom,#f44336,#af3b32);color:#fff}.publish-messages.warning-messages{background:linear-gradient(260deg,#faf0cd,#fab397)}.publish-messages.warning-messages .title{background:#e28d0b;background:linear-gradient(to bottom,#ffb646,#e28d0b);color:#fff}.publish-messages .title{padding:10px;border-top-left-radius:8px;border-top-right-radius:8px;text-shadow:0 0 6px rgba(56,56,56,.5803921569);font-size:16px}.publish-messages .publish-messages-list{padding:10px}.publish-messages .h4,.publish-messages h4{cursor:pointer}\n"] }]
8704
8714
  }], ctorParameters: function () { return [{ type: PublicationMessagesFacade }, { type: AutoFormService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { entity: [{
8705
8715
  type: Input
8706
8716
  }], form: [{
@@ -8711,16 +8721,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
8711
8721
  type: Input
8712
8722
  }], config: [{
8713
8723
  type: Input
8724
+ }], havePublication: [{
8725
+ type: Input
8714
8726
  }], scrollToField: [{
8715
8727
  type: Output
8716
8728
  }] } });
8717
8729
 
8718
8730
  class AutoFormMainComponent {
8719
- constructor(formErrors, formsFacade, publicationMessagesFacade, authenticationService, cd) {
8731
+ constructor(formErrors, formsFacade, publicationMessagesFacade, cd) {
8720
8732
  this.formErrors = formErrors;
8721
8733
  this.formsFacade = formsFacade;
8722
8734
  this.publicationMessagesFacade = publicationMessagesFacade;
8723
- this.authenticationService = authenticationService;
8724
8735
  this.cd = cd;
8725
8736
  this.showPublicationMessages = false;
8726
8737
  this.editorImageUploadUrl = '';
@@ -8864,12 +8875,12 @@ class AutoFormMainComponent {
8864
8875
  }
8865
8876
  }
8866
8877
  }
8867
- AutoFormMainComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AutoFormMainComponent, deps: [{ token: FormErrorsFacade }, { token: FormsFacade }, { token: PublicationMessagesFacade }, { token: AuthenticationService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
8868
- AutoFormMainComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: AutoFormMainComponent, selector: "shared-auto-form", inputs: { fields: "fields", itemId: "itemId", formId: "formId", showPublicationMessages: "showPublicationMessages", form: "form", editorImageUploadUrl: "editorImageUploadUrl", errorMessageTexts: "errorMessageTexts", entity: "entity", havePublication: "havePublication", config: "config" }, outputs: { changed: "changed", formCompleted: "formCompleted" }, ngImport: i0, template: "<shared-smart-progress-bar *ngIf=\"storedFormValue._occupancyRating\"\n [value]=\"storedFormValue._occupancyRating\"\n [title]=\"'\u0423\u0440\u043E\u0432\u0435\u043D\u044C \u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u043D\u043E\u0441\u0442\u0438 \u0444\u043E\u0440\u043C\u044B'\"></shared-smart-progress-bar>\n\n<ng-container *ngIf=\"showPublicationMessages && fields?.length\">\n <ng-container\n *ngTemplateOutlet=\"publicationMessages, context: {form: form, entity: entity, itemId: itemId, fields: fields}\"></ng-container>\n</ng-container>\n\n<div *ngFor=\"let group of object_.keys(groupedFields); trackBy: truckByFieldName\"\n class=\"form-group\"\n [ngClass]=\"{'form-group-open': groupsState[group]}\">\n <h2 *ngIf=\"group\" class=\"form-field-group-title\" (click)=\"groupClick(group)\">\n <mat-icon class=\"fs-20 field-group-icon\">expand_more</mat-icon>\n {{group}}\n </h2>\n <div *ngIf=\"groupsState[group]\"\n class=\"form-group-fields\">\n <div *ngFor=\"let item of groupedFields[group]; trackBy: truckByFieldName\"\n class=\"form-field-row col-md-12\"\n [ngClass]=\"item.options.col ? 'col-lg-'+item.options.col : ''\">\n\n <div [ngClass]=\"{'field-tab': group}\">\n <shared-form-field\n [itemId]=\"itemId\"\n [fieldData]=\"item\"\n [form]=\"form\"\n [errorMessageTexts]=\"errorMessageTexts\"\n [editorImageUploadUrl]=\"editorImageUploadUrl\"\n [entity]=\"entity\"\n [publicationMessages]=\"allPublicationMessages\"\n ></shared-form-field>\n </div>\n </div>\n </div>\n</div>\n<div @appearFromLeft *ngIf=\"dataStored && form.valid\" class=\"message-box warning mt-20 mb-10\">\n <ul>\n <li>{{dataStoredTitle}}</li>\n </ul>\n</div>\n<shred-form-message-box\n class=\"mt-20 mb-10\"\n [form]=\"form\"\n [fields]=\"fields\"\n [errorMessageTexts]=\"errorMessageTexts\"></shred-form-message-box>\n\n<ng-container *ngIf=\"havePublication\">\n <ng-container *ngIf=\"showPublicationMessages && fields?.length\">\n <ng-container\n *ngTemplateOutlet=\"publicationMessages, context: {form: form, entity: entity, itemId: itemId, fields: fields}\"></ng-container>\n </ng-container>\n</ng-container>\n\n<ng-template #publicationMessages let-form=\"form\" let-entity=\"entity\" let-itemId=\"itemId\" let-fields=\"fields\">\n <shared-publication-messages\n [@appearFromLeft]\n [form]=\"form\"\n [entity]=\"entity\"\n [itemId]=\"itemId\"\n [fields]=\"fields\"\n [config]=\"config\"\n (scrollToField)=\"scrollToField($event)\"></shared-publication-messages>\n</ng-template>\n", styles: [":host{display:flex;flex-direction:column;flex-wrap:wrap}.form-group{cursor:pointer}.form-group h2{display:flex;transition:color .3s}.progress-bar{margin-bottom:10px}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i2$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: SmartProgressBarComponent, selector: "shared-smart-progress-bar", inputs: ["value", "title", "showValue"] }, { kind: "component", type: FormFieldComponent, selector: "shared-form-field", inputs: ["fieldData", "itemId", "form", "editorImageUploadUrl", "errorMessageTexts", "entity", "publicationMessages", "entityTypeUserRoleRights"], outputs: ["eventUpdateForm", "eventSendAction"] }, { kind: "component", type: FormMessageBoxComponent, selector: "shred-form-message-box", inputs: ["form", "fields", "errorMessageTexts"] }, { kind: "component", type: PublicationMessagesComponent, selector: "shared-publication-messages", inputs: ["entity", "form", "itemId", "fields", "config"], outputs: ["scrollToField"] }], animations: [appearFromLeft, appearOpacity], changeDetection: i0.ChangeDetectionStrategy.OnPush });
8878
+ AutoFormMainComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AutoFormMainComponent, deps: [{ token: FormErrorsFacade }, { token: FormsFacade }, { token: PublicationMessagesFacade }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
8879
+ AutoFormMainComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: AutoFormMainComponent, selector: "shared-auto-form", inputs: { fields: "fields", itemId: "itemId", formId: "formId", showPublicationMessages: "showPublicationMessages", form: "form", editorImageUploadUrl: "editorImageUploadUrl", errorMessageTexts: "errorMessageTexts", entity: "entity", havePublication: "havePublication", config: "config" }, outputs: { changed: "changed", formCompleted: "formCompleted" }, ngImport: i0, template: "<shared-smart-progress-bar *ngIf=\"storedFormValue._occupancyRating\"\n [value]=\"storedFormValue._occupancyRating\"\n [title]=\"'\u0423\u0440\u043E\u0432\u0435\u043D\u044C \u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u043D\u043E\u0441\u0442\u0438 \u0444\u043E\u0440\u043C\u044B'\"></shared-smart-progress-bar>\n\n<ng-container *ngIf=\"showPublicationMessages && fields?.length\">\n <ng-container\n *ngTemplateOutlet=\"publicationMessages, context: {form: form, entity: entity, itemId: itemId, fields: fields}\"></ng-container>\n</ng-container>\n\n<div *ngFor=\"let group of object_.keys(groupedFields); trackBy: truckByFieldName\"\n class=\"form-group\"\n [ngClass]=\"{'form-group-open': groupsState[group]}\">\n <h2 *ngIf=\"group\" class=\"form-field-group-title\" (click)=\"groupClick(group)\">\n <mat-icon class=\"fs-20 field-group-icon\">expand_more</mat-icon>\n {{group}}\n </h2>\n <div *ngIf=\"groupsState[group]\"\n class=\"form-group-fields\">\n <div *ngFor=\"let item of groupedFields[group]; trackBy: truckByFieldName\"\n class=\"form-field-row col-md-12\"\n [ngClass]=\"item.options.col ? 'col-lg-'+item.options.col : ''\">\n\n <div [ngClass]=\"{'field-tab': group}\">\n <shared-form-field\n [itemId]=\"itemId\"\n [fieldData]=\"item\"\n [form]=\"form\"\n [errorMessageTexts]=\"errorMessageTexts\"\n [editorImageUploadUrl]=\"editorImageUploadUrl\"\n [entity]=\"entity\"\n [publicationMessages]=\"allPublicationMessages\"\n ></shared-form-field>\n </div>\n </div>\n </div>\n</div>\n<div @appearFromLeft *ngIf=\"dataStored && form.valid\" class=\"message-box warning mt-20 mb-10\">\n <ul>\n <li>{{dataStoredTitle}}</li>\n </ul>\n</div>\n<shred-form-message-box\n class=\"mt-20 mb-10\"\n [form]=\"form\"\n [fields]=\"fields\"\n [errorMessageTexts]=\"errorMessageTexts\"></shred-form-message-box>\n\n<ng-container *ngIf=\"havePublication\">\n <ng-container *ngIf=\"showPublicationMessages && fields?.length\">\n <ng-container\n *ngTemplateOutlet=\"publicationMessages, context: {form: form, entity: entity, itemId: itemId, fields: fields}\"></ng-container>\n </ng-container>\n</ng-container>\n\n<ng-template #publicationMessages let-form=\"form\" let-entity=\"entity\" let-itemId=\"itemId\" let-fields=\"fields\">\n <shared-publication-messages\n [@appearFromLeft]\n [form]=\"form\"\n [entity]=\"entity\"\n [itemId]=\"itemId\"\n [fields]=\"fields\"\n [havePublication]=\"havePublication\"\n (scrollToField)=\"scrollToField($event)\"></shared-publication-messages>\n</ng-template>\n", styles: [":host{display:flex;flex-direction:column;flex-wrap:wrap}.form-group{cursor:pointer}.form-group h2{display:flex;transition:color .3s}.progress-bar{margin-bottom:10px}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i2$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: SmartProgressBarComponent, selector: "shared-smart-progress-bar", inputs: ["value", "title", "showValue"] }, { kind: "component", type: FormFieldComponent, selector: "shared-form-field", inputs: ["fieldData", "itemId", "form", "editorImageUploadUrl", "errorMessageTexts", "entity", "publicationMessages", "entityTypeUserRoleRights"], outputs: ["eventUpdateForm", "eventSendAction"] }, { kind: "component", type: FormMessageBoxComponent, selector: "shred-form-message-box", inputs: ["form", "fields", "errorMessageTexts"] }, { kind: "component", type: PublicationMessagesComponent, selector: "shared-publication-messages", inputs: ["entity", "form", "itemId", "fields", "config", "havePublication"], outputs: ["scrollToField"] }], animations: [appearFromLeft, appearOpacity], changeDetection: i0.ChangeDetectionStrategy.OnPush });
8869
8880
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: AutoFormMainComponent, decorators: [{
8870
8881
  type: Component,
8871
- args: [{ selector: 'shared-auto-form', changeDetection: ChangeDetectionStrategy.OnPush, animations: [appearFromLeft, appearOpacity], template: "<shared-smart-progress-bar *ngIf=\"storedFormValue._occupancyRating\"\n [value]=\"storedFormValue._occupancyRating\"\n [title]=\"'\u0423\u0440\u043E\u0432\u0435\u043D\u044C \u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u043D\u043E\u0441\u0442\u0438 \u0444\u043E\u0440\u043C\u044B'\"></shared-smart-progress-bar>\n\n<ng-container *ngIf=\"showPublicationMessages && fields?.length\">\n <ng-container\n *ngTemplateOutlet=\"publicationMessages, context: {form: form, entity: entity, itemId: itemId, fields: fields}\"></ng-container>\n</ng-container>\n\n<div *ngFor=\"let group of object_.keys(groupedFields); trackBy: truckByFieldName\"\n class=\"form-group\"\n [ngClass]=\"{'form-group-open': groupsState[group]}\">\n <h2 *ngIf=\"group\" class=\"form-field-group-title\" (click)=\"groupClick(group)\">\n <mat-icon class=\"fs-20 field-group-icon\">expand_more</mat-icon>\n {{group}}\n </h2>\n <div *ngIf=\"groupsState[group]\"\n class=\"form-group-fields\">\n <div *ngFor=\"let item of groupedFields[group]; trackBy: truckByFieldName\"\n class=\"form-field-row col-md-12\"\n [ngClass]=\"item.options.col ? 'col-lg-'+item.options.col : ''\">\n\n <div [ngClass]=\"{'field-tab': group}\">\n <shared-form-field\n [itemId]=\"itemId\"\n [fieldData]=\"item\"\n [form]=\"form\"\n [errorMessageTexts]=\"errorMessageTexts\"\n [editorImageUploadUrl]=\"editorImageUploadUrl\"\n [entity]=\"entity\"\n [publicationMessages]=\"allPublicationMessages\"\n ></shared-form-field>\n </div>\n </div>\n </div>\n</div>\n<div @appearFromLeft *ngIf=\"dataStored && form.valid\" class=\"message-box warning mt-20 mb-10\">\n <ul>\n <li>{{dataStoredTitle}}</li>\n </ul>\n</div>\n<shred-form-message-box\n class=\"mt-20 mb-10\"\n [form]=\"form\"\n [fields]=\"fields\"\n [errorMessageTexts]=\"errorMessageTexts\"></shred-form-message-box>\n\n<ng-container *ngIf=\"havePublication\">\n <ng-container *ngIf=\"showPublicationMessages && fields?.length\">\n <ng-container\n *ngTemplateOutlet=\"publicationMessages, context: {form: form, entity: entity, itemId: itemId, fields: fields}\"></ng-container>\n </ng-container>\n</ng-container>\n\n<ng-template #publicationMessages let-form=\"form\" let-entity=\"entity\" let-itemId=\"itemId\" let-fields=\"fields\">\n <shared-publication-messages\n [@appearFromLeft]\n [form]=\"form\"\n [entity]=\"entity\"\n [itemId]=\"itemId\"\n [fields]=\"fields\"\n [config]=\"config\"\n (scrollToField)=\"scrollToField($event)\"></shared-publication-messages>\n</ng-template>\n", styles: [":host{display:flex;flex-direction:column;flex-wrap:wrap}.form-group{cursor:pointer}.form-group h2{display:flex;transition:color .3s}.progress-bar{margin-bottom:10px}\n"] }]
8872
- }], ctorParameters: function () { return [{ type: FormErrorsFacade }, { type: FormsFacade }, { type: PublicationMessagesFacade }, { type: AuthenticationService }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { fields: [{
8882
+ args: [{ selector: 'shared-auto-form', changeDetection: ChangeDetectionStrategy.OnPush, animations: [appearFromLeft, appearOpacity], template: "<shared-smart-progress-bar *ngIf=\"storedFormValue._occupancyRating\"\n [value]=\"storedFormValue._occupancyRating\"\n [title]=\"'\u0423\u0440\u043E\u0432\u0435\u043D\u044C \u0437\u0430\u043F\u043E\u043B\u043D\u0435\u043D\u043D\u043E\u0441\u0442\u0438 \u0444\u043E\u0440\u043C\u044B'\"></shared-smart-progress-bar>\n\n<ng-container *ngIf=\"showPublicationMessages && fields?.length\">\n <ng-container\n *ngTemplateOutlet=\"publicationMessages, context: {form: form, entity: entity, itemId: itemId, fields: fields}\"></ng-container>\n</ng-container>\n\n<div *ngFor=\"let group of object_.keys(groupedFields); trackBy: truckByFieldName\"\n class=\"form-group\"\n [ngClass]=\"{'form-group-open': groupsState[group]}\">\n <h2 *ngIf=\"group\" class=\"form-field-group-title\" (click)=\"groupClick(group)\">\n <mat-icon class=\"fs-20 field-group-icon\">expand_more</mat-icon>\n {{group}}\n </h2>\n <div *ngIf=\"groupsState[group]\"\n class=\"form-group-fields\">\n <div *ngFor=\"let item of groupedFields[group]; trackBy: truckByFieldName\"\n class=\"form-field-row col-md-12\"\n [ngClass]=\"item.options.col ? 'col-lg-'+item.options.col : ''\">\n\n <div [ngClass]=\"{'field-tab': group}\">\n <shared-form-field\n [itemId]=\"itemId\"\n [fieldData]=\"item\"\n [form]=\"form\"\n [errorMessageTexts]=\"errorMessageTexts\"\n [editorImageUploadUrl]=\"editorImageUploadUrl\"\n [entity]=\"entity\"\n [publicationMessages]=\"allPublicationMessages\"\n ></shared-form-field>\n </div>\n </div>\n </div>\n</div>\n<div @appearFromLeft *ngIf=\"dataStored && form.valid\" class=\"message-box warning mt-20 mb-10\">\n <ul>\n <li>{{dataStoredTitle}}</li>\n </ul>\n</div>\n<shred-form-message-box\n class=\"mt-20 mb-10\"\n [form]=\"form\"\n [fields]=\"fields\"\n [errorMessageTexts]=\"errorMessageTexts\"></shred-form-message-box>\n\n<ng-container *ngIf=\"havePublication\">\n <ng-container *ngIf=\"showPublicationMessages && fields?.length\">\n <ng-container\n *ngTemplateOutlet=\"publicationMessages, context: {form: form, entity: entity, itemId: itemId, fields: fields}\"></ng-container>\n </ng-container>\n</ng-container>\n\n<ng-template #publicationMessages let-form=\"form\" let-entity=\"entity\" let-itemId=\"itemId\" let-fields=\"fields\">\n <shared-publication-messages\n [@appearFromLeft]\n [form]=\"form\"\n [entity]=\"entity\"\n [itemId]=\"itemId\"\n [fields]=\"fields\"\n [havePublication]=\"havePublication\"\n (scrollToField)=\"scrollToField($event)\"></shared-publication-messages>\n</ng-template>\n", styles: [":host{display:flex;flex-direction:column;flex-wrap:wrap}.form-group{cursor:pointer}.form-group h2{display:flex;transition:color .3s}.progress-bar{margin-bottom:10px}\n"] }]
8883
+ }], ctorParameters: function () { return [{ type: FormErrorsFacade }, { type: FormsFacade }, { type: PublicationMessagesFacade }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { fields: [{
8873
8884
  type: Input
8874
8885
  }], itemId: [{
8875
8886
  type: Input