wt-front-shared 18.0.9 → 18.0.10
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/esm2022/lib/core/+state/users/behavios/login-send-behavior.mjs +3 -3
- package/esm2022/lib/core/+state/users/users.actions.mjs +1 -1
- package/esm2022/lib/core/+state/users/users.effects.mjs +6 -2
- package/esm2022/lib/core/components/auto-form/components/form-field-input-show/form-field-input-show.component.mjs +3 -3
- package/esm2022/lib/core/components/auto-form/components/form-field-select-show/form-field-select-show.component.mjs +11 -5
- package/esm2022/lib/core/components/auto-form/containers/auto-form-main/auto-form-main.component.mjs +31 -3
- package/esm2022/lib/core/components/auto-form/containers/form-field/form-field.component.mjs +3 -3
- package/esm2022/lib/core/components/auto-form/interfaces/form-field-others.mjs +1 -1
- package/esm2022/lib/core/components/button/button.component.mjs +3 -3
- package/esm2022/lib/core/components/static-data/components/static-data-list-items/static-data-list-items.component.mjs +3 -3
- package/esm2022/lib/core/components/static-data/containers/static-data-details/static-data-details.component.mjs +3 -3
- package/esm2022/lib/core/components/static-data/containers/static-data-items/static-data-items.component.mjs +3 -3
- package/esm2022/lib/core/dialogs/common-dialog/common-dialog.component.mjs +16 -11
- package/esm2022/lib/core/interceptors/headers.interceptor.mjs +2 -2
- package/esm2022/lib/core/services/auth/authentication.constants.mjs +3 -2
- package/esm2022/lib/core/services/auth/authentication.service.mjs +16 -1
- package/esm2022/lib/models/endpoints/auth/login-send/response/login-send-create-201.mjs +1 -1
- package/fesm2022/wt-front-shared.mjs +628 -568
- package/fesm2022/wt-front-shared.mjs.map +1 -1
- package/lib/core/+state/index.d.ts +1 -1
- package/lib/core/+state/users/users.actions.d.ts +3 -0
- package/lib/core/+state/users/users.effects.d.ts +4 -4
- package/lib/core/components/auto-form/components/form-field-select-show/form-field-select-show.component.d.ts +2 -1
- package/lib/core/components/auto-form/containers/auto-form-main/auto-form-main.component.d.ts +1 -0
- package/lib/core/components/auto-form/interfaces/form-field-others.d.ts +10 -0
- package/lib/core/dialogs/common-dialog/common-dialog.component.d.ts +2 -5
- package/lib/core/services/auth/authentication.constants.d.ts +1 -0
- package/lib/core/services/auth/authentication.service.d.ts +4 -0
- package/lib/models/endpoints/auth/login-send/response/login-send-create-201.d.ts +1 -0
- package/package.json +1 -1
- package/src/lib/styles.css +0 -1
- package/src/lib/styles.css.map +1 -1
|
@@ -26,7 +26,7 @@ import * as i2$1 from '@angular/material/icon';
|
|
|
26
26
|
import { MatIconModule } from '@angular/material/icon';
|
|
27
27
|
import * as i2$2 from '@angular/material/progress-spinner';
|
|
28
28
|
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
29
|
-
import * as
|
|
29
|
+
import * as i7 from '@angular/flex-layout';
|
|
30
30
|
import { FlexModule, FlexLayoutModule } from '@angular/flex-layout';
|
|
31
31
|
import * as i3$1 from 'ngx-toastr';
|
|
32
32
|
import { switchMap as switchMap$2 } from 'rxjs/internal/operators/switchMap';
|
|
@@ -42,13 +42,13 @@ import * as i2$5 from '@angular/material/slide-toggle';
|
|
|
42
42
|
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
|
|
43
43
|
import * as i4 from '@angular/material/select';
|
|
44
44
|
import { MatSelectModule } from '@angular/material/select';
|
|
45
|
-
import * as i7$
|
|
45
|
+
import * as i7$3 from '@angular/material/chips';
|
|
46
46
|
import { MatChipsModule } from '@angular/material/chips';
|
|
47
47
|
import * as i8 from '@angular/material/autocomplete';
|
|
48
48
|
import { MatAutocompleteModule } from '@angular/material/autocomplete';
|
|
49
|
-
import * as i7$
|
|
49
|
+
import * as i7$2 from 'ngx-mask';
|
|
50
50
|
import { NgxMaskDirective, NgxMaskPipe, provideNgxMask } from 'ngx-mask';
|
|
51
|
-
import * as i7 from 'ngx-mat-select-search';
|
|
51
|
+
import * as i7$1 from 'ngx-mat-select-search';
|
|
52
52
|
import { NgxMatSelectSearchModule } from 'ngx-mat-select-search';
|
|
53
53
|
import * as i5$1 from '@angular/material/core';
|
|
54
54
|
import * as i3$4 from '@angular/cdk/drag-drop';
|
|
@@ -103,7 +103,8 @@ const STORAGE_KEY = {
|
|
|
103
103
|
currentUser: 'WT_CURRENT_USER',
|
|
104
104
|
token: 'WT_TOKEN',
|
|
105
105
|
tokenExp: 'WT_TOKEN_EXP',
|
|
106
|
-
refreshToken: 'WT_REFRESH_TOKEN'
|
|
106
|
+
refreshToken: 'WT_REFRESH_TOKEN',
|
|
107
|
+
services: 'WT_SERVICES',
|
|
107
108
|
};
|
|
108
109
|
|
|
109
110
|
class AuthenticationService {
|
|
@@ -167,6 +168,21 @@ class AuthenticationService {
|
|
|
167
168
|
this.currentUserSubject.next(user);
|
|
168
169
|
}
|
|
169
170
|
}
|
|
171
|
+
saveServices(services) {
|
|
172
|
+
console.log('saveServices', services);
|
|
173
|
+
if (this.haveLocalStorage && services) {
|
|
174
|
+
localStorage.setItem(STORAGE_KEY.services, JSON.stringify(services));
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
getServices() {
|
|
178
|
+
if (this.haveLocalStorage) {
|
|
179
|
+
const result = localStorage.getItem(STORAGE_KEY.services);
|
|
180
|
+
if (result) {
|
|
181
|
+
return JSON.parse(result);
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
return null;
|
|
185
|
+
}
|
|
170
186
|
saveRefreshToken(token, tokenExp, refreshToken) {
|
|
171
187
|
if (this.haveLocalStorage) {
|
|
172
188
|
localStorage.setItem(STORAGE_KEY.token, token);
|
|
@@ -1830,10 +1846,10 @@ class LoginSendBehavior extends Behavior {
|
|
|
1830
1846
|
switch (status) {
|
|
1831
1847
|
case ResponseStatus.STATUS_200: {
|
|
1832
1848
|
const response = this.result.data;
|
|
1833
|
-
const { user } = response.body;
|
|
1849
|
+
const { user, services } = response.body;
|
|
1834
1850
|
// const userData: UserModel = this.modelAdapter.convertItem<UserModel, UserModel>(UserModel, user);
|
|
1835
1851
|
returnedActions = [
|
|
1836
|
-
LoginSendSuccess({ payload: { user } })
|
|
1852
|
+
LoginSendSuccess({ payload: { user, services } })
|
|
1837
1853
|
];
|
|
1838
1854
|
break;
|
|
1839
1855
|
}
|
|
@@ -2970,8 +2986,12 @@ class UsersEffects {
|
|
|
2970
2986
|
.pipe(flatMap((r) => new LoginSendBehavior(action, r).resolve()));
|
|
2971
2987
|
}), catchError(error => of(LoginSendFail(error)))));
|
|
2972
2988
|
this.loginSendSuccess$ = createEffect(() => this.actions$.pipe(ofType(LoginSendSuccess), tap((action) => {
|
|
2973
|
-
const { user } = action.payload;
|
|
2989
|
+
const { user, services } = action.payload;
|
|
2990
|
+
console.log('affect.services:', services);
|
|
2974
2991
|
this.authenticationService.saveAuthInfo(user);
|
|
2992
|
+
if (services && Object.keys(services).length) {
|
|
2993
|
+
this.authenticationService.saveServices(services);
|
|
2994
|
+
}
|
|
2975
2995
|
const redirectUrl = this.authenticationService.getRedirectToUrl();
|
|
2976
2996
|
this.routerService.goTo(redirectUrl ? [redirectUrl] : '/');
|
|
2977
2997
|
})), { dispatch: false });
|
|
@@ -3973,478 +3993,147 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
3973
3993
|
args: [{ providedIn: 'root' }]
|
|
3974
3994
|
}], ctorParameters: () => [{ type: i1.Store }] });
|
|
3975
3995
|
|
|
3976
|
-
|
|
3977
|
-
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3985
|
-
|
|
3986
|
-
|
|
3987
|
-
class
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3992
|
-
let asyncValidators = [];
|
|
3993
|
-
let needToShow = true;
|
|
3994
|
-
if (item.validators?.length) {
|
|
3995
|
-
let fieldValidators = [...item.validators];
|
|
3996
|
-
// Checkin the showIf conductions
|
|
3997
|
-
//
|
|
3998
|
-
if (item.options?.showIf) {
|
|
3999
|
-
const relatedField = item.options.showIf.relatedField;
|
|
4000
|
-
const relatedFieldValue = formData?.[relatedField];
|
|
4001
|
-
if (relatedFieldValue) {
|
|
4002
|
-
needToShow = this.checkShowIfConditions(relatedFieldValue, item.options.showIf.conditions);
|
|
4003
|
-
}
|
|
4004
|
-
else {
|
|
4005
|
-
needToShow = false;
|
|
4006
|
-
}
|
|
4007
|
-
}
|
|
4008
|
-
// If is it an init form and we don't have form data jet,
|
|
4009
|
-
// need to add this field in the FormGroup as optional
|
|
4010
|
-
if (!needToShow) {
|
|
4011
|
-
fieldValidators = fieldValidators.filter(validatorItem => validatorItem !== ValidatorsType.Required);
|
|
4012
|
-
}
|
|
4013
|
-
validators = this.getValidators(fieldValidators, item.options);
|
|
4014
|
-
}
|
|
4015
|
-
if (item.options?.format) {
|
|
4016
|
-
const validator = this.getValidatorByFormat(item.options.format);
|
|
4017
|
-
if (validator) {
|
|
4018
|
-
validators.push(validator);
|
|
4019
|
-
}
|
|
4020
|
-
}
|
|
4021
|
-
if (item.asyncValidators && item.asyncValidators.length) {
|
|
4022
|
-
asyncValidators = this.getAsyncValidators(item.asyncValidators, item.options);
|
|
4023
|
-
}
|
|
4024
|
-
// Calculate showing the field
|
|
4025
|
-
/*
|
|
4026
|
-
"showIf"; {
|
|
4027
|
-
"relatedField": "statusId",
|
|
4028
|
-
"conditions": [
|
|
4029
|
-
{
|
|
4030
|
-
"type": "in",
|
|
4031
|
-
"value": [1, 2]
|
|
4032
|
-
}
|
|
4033
|
-
]
|
|
4034
|
-
}
|
|
4035
|
-
*/
|
|
4036
|
-
result[item.field] = [null, validators, asyncValidators];
|
|
4037
|
-
});
|
|
4038
|
-
return result;
|
|
3996
|
+
/**
|
|
3997
|
+
* Icon component.
|
|
3998
|
+
* Add svg icon to any place.
|
|
3999
|
+
* By default it uses size and color of host element or you can set predefined values by settings inputs size and color
|
|
4000
|
+
*
|
|
4001
|
+
* Usage:
|
|
4002
|
+
* ````
|
|
4003
|
+
* <shared-ui-icon icon="add"></app-ui-icon>
|
|
4004
|
+
* <shared-ui-icon icon="add" size="xs" color="primary"></app-ui-icon>
|
|
4005
|
+
* ````
|
|
4006
|
+
*/
|
|
4007
|
+
class IconComponent {
|
|
4008
|
+
constructor() {
|
|
4009
|
+
this.size = 'normal';
|
|
4010
|
+
this.color = 'inherit';
|
|
4011
|
+
this.iconSize = 's-22';
|
|
4039
4012
|
}
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
break;
|
|
4048
|
-
case 'in':
|
|
4049
|
-
result = this.checkShowIfConditionsIn(relatedFieldValue, item.value);
|
|
4050
|
-
break;
|
|
4051
|
-
}
|
|
4052
|
-
}
|
|
4053
|
-
});
|
|
4054
|
-
return result;
|
|
4013
|
+
ngOnChanges(changes) {
|
|
4014
|
+
if (this.size === 'normal') {
|
|
4015
|
+
this.iconSize = `s-22`;
|
|
4016
|
+
}
|
|
4017
|
+
if (this.size === 'small') {
|
|
4018
|
+
this.iconSize = `s-18`;
|
|
4019
|
+
}
|
|
4055
4020
|
}
|
|
4056
|
-
|
|
4057
|
-
|
|
4021
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: IconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4022
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: IconComponent, selector: "shared-ui-icon", inputs: { icon: "icon", size: "size", color: "color" }, usesOnChanges: true, ngImport: i0, template: "<mat-icon\n [ngClass]=\"'icon-size-' + size + ' color-' + color + ' ' + iconSize\"\n class=\"secondary-text mat-icon notranslate material-icons\"\n role=\"img\"\n aria-hidden=\"true\">{{icon}}</mat-icon>\n", styles: [":host{display:inline-flex;align-items:center}.orange_gray{color:#c17e5d!important}.color-yellow{color:#fcb202!important}.color-red{color:#f44336!important}.color-white{color:#fff9!important}.color-black{color:#000000de!important}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4023
|
+
}
|
|
4024
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: IconComponent, decorators: [{
|
|
4025
|
+
type: Component,
|
|
4026
|
+
args: [{ selector: 'shared-ui-icon', changeDetection: ChangeDetectionStrategy.OnPush, template: "<mat-icon\n [ngClass]=\"'icon-size-' + size + ' color-' + color + ' ' + iconSize\"\n class=\"secondary-text mat-icon notranslate material-icons\"\n role=\"img\"\n aria-hidden=\"true\">{{icon}}</mat-icon>\n", styles: [":host{display:inline-flex;align-items:center}.orange_gray{color:#c17e5d!important}.color-yellow{color:#fcb202!important}.color-red{color:#f44336!important}.color-white{color:#fff9!important}.color-black{color:#000000de!important}\n"] }]
|
|
4027
|
+
}], propDecorators: { icon: [{
|
|
4028
|
+
type: Input
|
|
4029
|
+
}], size: [{
|
|
4030
|
+
type: Input
|
|
4031
|
+
}], color: [{
|
|
4032
|
+
type: Input
|
|
4033
|
+
}] } });
|
|
4034
|
+
|
|
4035
|
+
class SpinnerComponent {
|
|
4036
|
+
constructor() {
|
|
4037
|
+
this.overlay = false;
|
|
4038
|
+
this.diameter = 30;
|
|
4039
|
+
this.color = 'blue';
|
|
4040
|
+
this.position = 'left';
|
|
4058
4041
|
}
|
|
4059
|
-
|
|
4060
|
-
return conditionValues.includes(relatedFieldValue);
|
|
4042
|
+
ngOnInit() {
|
|
4061
4043
|
}
|
|
4062
|
-
|
|
4063
|
-
|
|
4044
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SpinnerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4045
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: SpinnerComponent, selector: "shared-spinner", inputs: { overlay: "overlay", diameter: "diameter", color: "color", position: "position" }, ngImport: i0, template: "<div [ngClass]=\"{\n overlay: overlay,\n 'grey-color': color === 'grey',\n 'align-center': position === 'center',\n 'align-right': position === 'right'\n }\">\n <mat-progress-spinner\n class=\"example-margin\"\n color=\"accent\"\n [diameter]=\"diameter\"\n mode=\"indeterminate\">\n </mat-progress-spinner>\n</div>\n", styles: [".overlay{position:absolute;inset:0;background:#1e2129ad;z-index:100;display:flex;justify-content:center;align-items:center}.align-center{display:flex;justify-content:center}.align-right{display:flex;justify-content:right}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i2$2.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4046
|
+
}
|
|
4047
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SpinnerComponent, decorators: [{
|
|
4048
|
+
type: Component,
|
|
4049
|
+
args: [{ selector: 'shared-spinner', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [ngClass]=\"{\n overlay: overlay,\n 'grey-color': color === 'grey',\n 'align-center': position === 'center',\n 'align-right': position === 'right'\n }\">\n <mat-progress-spinner\n class=\"example-margin\"\n color=\"accent\"\n [diameter]=\"diameter\"\n mode=\"indeterminate\">\n </mat-progress-spinner>\n</div>\n", styles: [".overlay{position:absolute;inset:0;background:#1e2129ad;z-index:100;display:flex;justify-content:center;align-items:center}.align-center{display:flex;justify-content:center}.align-right{display:flex;justify-content:right}\n"] }]
|
|
4050
|
+
}], ctorParameters: () => [], propDecorators: { overlay: [{
|
|
4051
|
+
type: Input
|
|
4052
|
+
}], diameter: [{
|
|
4053
|
+
type: Input
|
|
4054
|
+
}], color: [{
|
|
4055
|
+
type: Input
|
|
4056
|
+
}], position: [{
|
|
4057
|
+
type: Input
|
|
4058
|
+
}] } });
|
|
4059
|
+
|
|
4060
|
+
class ButtonComponent {
|
|
4061
|
+
constructor() {
|
|
4062
|
+
this.icon = '';
|
|
4063
|
+
this.rightIcon = '';
|
|
4064
|
+
this.disabled = false;
|
|
4065
|
+
this.loading = false;
|
|
4066
|
+
this.active = false;
|
|
4067
|
+
this.stopPropagation = false;
|
|
4068
|
+
this.type = 'button';
|
|
4069
|
+
this.color = '';
|
|
4070
|
+
this.fullWidth = false;
|
|
4071
|
+
this.size = 'normal';
|
|
4072
|
+
this.styleTheme = 'basic';
|
|
4073
|
+
// @Input() tooltipPosition: TooltipPosition = 'above';
|
|
4074
|
+
this.tooltipPosition = 'above';
|
|
4075
|
+
this.clickButton = new EventEmitter();
|
|
4076
|
+
this.context = { size: 'normal', iconSize: 'normal', disabled: false };
|
|
4077
|
+
this.spinnerDiameter = 30;
|
|
4064
4078
|
}
|
|
4065
|
-
|
|
4066
|
-
|
|
4079
|
+
ngOnInit() {
|
|
4080
|
+
this.context.buttonIconSize = this.iconSize ? this.iconSize : this.size;
|
|
4081
|
+
this.calculateSpinnerDiameter();
|
|
4067
4082
|
}
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
validator = Validators.email;
|
|
4083
|
+
ngOnChanges(changes) {
|
|
4084
|
+
if (changes['loading']) {
|
|
4085
|
+
this.context.loading = changes['loading'].currentValue;
|
|
4072
4086
|
}
|
|
4073
|
-
if (
|
|
4074
|
-
|
|
4087
|
+
if (changes['iconColor'] && changes['iconColor'].currentValue) {
|
|
4088
|
+
this.context.iconColor = changes['iconColor'].currentValue;
|
|
4075
4089
|
}
|
|
4076
|
-
if (
|
|
4077
|
-
|
|
4090
|
+
if (changes['color'] && changes['color'].currentValue) {
|
|
4091
|
+
this.context.color = changes['color'].currentValue;
|
|
4078
4092
|
}
|
|
4079
|
-
if (
|
|
4080
|
-
|
|
4093
|
+
if (changes['buttonIconSize'] && changes['buttonIconSize'].currentValue) {
|
|
4094
|
+
this.context.buttonIconSize = changes['buttonIconSize'].currentValue;
|
|
4095
|
+
}
|
|
4096
|
+
if (changes['icon'] && changes['icon'].currentValue) {
|
|
4097
|
+
this.context.icon = changes['icon'].currentValue;
|
|
4098
|
+
}
|
|
4099
|
+
if (changes['disabled'] && changes['disabled'].currentValue) {
|
|
4100
|
+
this.context.disabled = changes['disabled'].currentValue;
|
|
4081
4101
|
}
|
|
4082
|
-
return validator;
|
|
4083
4102
|
}
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
}
|
|
4090
|
-
return newText;
|
|
4103
|
+
calculateSpinnerDiameter() {
|
|
4104
|
+
switch (this.size) {
|
|
4105
|
+
case 'normal':
|
|
4106
|
+
this.spinnerDiameter = 30;
|
|
4107
|
+
break;
|
|
4108
|
+
}
|
|
4091
4109
|
}
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
})
|
|
4120
|
-
};
|
|
4121
|
-
}), on(CheckValidationSuccess, (state, action) => {
|
|
4122
|
-
const { type, value, isValid, itemId } = action.payload;
|
|
4123
|
-
const id = `${type}${value}`;
|
|
4124
|
-
return {
|
|
4125
|
-
...ReducerService.upsertOne(state, {
|
|
4126
|
-
id,
|
|
4127
|
-
type,
|
|
4128
|
-
value,
|
|
4129
|
-
isValid,
|
|
4130
|
-
itemId,
|
|
4131
|
-
loaded: true
|
|
4132
|
-
})
|
|
4133
|
-
};
|
|
4134
|
-
}));
|
|
4135
|
-
function formValidationReducer(state, action) {
|
|
4136
|
-
return _formValidationReducer(state, action);
|
|
4137
|
-
}
|
|
4138
|
-
|
|
4139
|
-
const getFormValidationState = createFeatureSelector(FORM_VALIDATION_FEATURE_KEY);
|
|
4140
|
-
const getFormValidation = (type, value) => createSelector(getFormValidationState, (state) => {
|
|
4141
|
-
return state.list.find(item => item.type === type && item.value === value);
|
|
4142
|
-
});
|
|
4143
|
-
const formValidationQuery = {
|
|
4144
|
-
getFormValidation
|
|
4145
|
-
};
|
|
4146
|
-
|
|
4147
|
-
class FormValidationFacade {
|
|
4148
|
-
constructor(store) {
|
|
4149
|
-
this.store = store;
|
|
4150
|
-
}
|
|
4151
|
-
sendValidation(type, value, itemId, options) {
|
|
4152
|
-
this.store.dispatch(CheckValidation({ payload: { type, value, itemId, options } }));
|
|
4153
|
-
}
|
|
4154
|
-
getValidation(type, value) {
|
|
4155
|
-
return this.store.pipe(select(formValidationQuery.getFormValidation(type, value)));
|
|
4156
|
-
}
|
|
4157
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormValidationFacade, deps: [{ token: i1.Store }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4158
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormValidationFacade, providedIn: "root" }); }
|
|
4159
|
-
}
|
|
4160
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormValidationFacade, decorators: [{
|
|
4161
|
-
type: Injectable,
|
|
4162
|
-
args: [{ providedIn: "root" }]
|
|
4163
|
-
}], ctorParameters: () => [{ type: i1.Store }] });
|
|
4164
|
-
|
|
4165
|
-
class AutoFormService extends BaseAutoFormService {
|
|
4166
|
-
constructor(formValidationFacade, notificationsFacade) {
|
|
4167
|
-
super();
|
|
4168
|
-
this.formValidationFacade = formValidationFacade;
|
|
4169
|
-
this.notificationsFacade = notificationsFacade;
|
|
4170
|
-
this.validatorsData = {};
|
|
4171
|
-
}
|
|
4172
|
-
getAsyncValidators(validators, options) {
|
|
4173
|
-
const resultValidators = [];
|
|
4174
|
-
validators.forEach(validator => {
|
|
4175
|
-
switch (validator) {
|
|
4176
|
-
case AsyncValidators.ItemUniqValue:
|
|
4177
|
-
resultValidators.push(this.itemUniqValueValidator.bind(this, { ...options }));
|
|
4178
|
-
break;
|
|
4179
|
-
}
|
|
4180
|
-
});
|
|
4181
|
-
return resultValidators;
|
|
4182
|
-
}
|
|
4183
|
-
getValidators(validators, options) {
|
|
4184
|
-
const resultValidators = [];
|
|
4185
|
-
validators.forEach(validator => {
|
|
4186
|
-
switch (validator) {
|
|
4187
|
-
case ValidatorsType.Required:
|
|
4188
|
-
resultValidators.push(Validators.required.bind(this));
|
|
4189
|
-
break;
|
|
4190
|
-
case ValidatorsType.RequiredTrue:
|
|
4191
|
-
resultValidators.push(Validators.requiredTrue.bind(this));
|
|
4192
|
-
break;
|
|
4193
|
-
case ValidatorsType.MinLength:
|
|
4194
|
-
const length = options.validations[ValidatorsType.MinLength].length;
|
|
4195
|
-
resultValidators.push(Validators.minLength(length));
|
|
4196
|
-
break;
|
|
4197
|
-
case ValidatorsType.Pattern:
|
|
4198
|
-
const pattern = options.validations[ValidatorsType.Pattern].pattern;
|
|
4199
|
-
resultValidators.push(Validators.pattern(pattern));
|
|
4200
|
-
break;
|
|
4201
|
-
case ValidatorsType.Custom:
|
|
4202
|
-
const validationFunction = options.validations[ValidatorsType.Custom].validationFunction;
|
|
4203
|
-
resultValidators.push(validationFunction);
|
|
4204
|
-
break;
|
|
4205
|
-
}
|
|
4206
|
-
});
|
|
4207
|
-
return resultValidators;
|
|
4208
|
-
}
|
|
4209
|
-
itemUniqValueValidator(controlIn, optionsIn) {
|
|
4210
|
-
const control = arguments[1];
|
|
4211
|
-
const options = arguments[0]?.validations.uniq;
|
|
4212
|
-
const value = control.value;
|
|
4213
|
-
const form = control.parent;
|
|
4214
|
-
let itemId;
|
|
4215
|
-
if (form && form.get('id')) {
|
|
4216
|
-
itemId = +form.get('id').value;
|
|
4217
|
-
}
|
|
4218
|
-
const type = options.type;
|
|
4219
|
-
// If the value for this type is checked before not need to do this checking again
|
|
4220
|
-
if (this.validatorsData[type] && this.validatorsData[type].value === value && this.validatorsData[type].valid) {
|
|
4221
|
-
return Promise.resolve();
|
|
4222
|
-
}
|
|
4223
|
-
this.validatorsData[type] = { value: value, valid: false };
|
|
4224
|
-
return new Promise(resolve => {
|
|
4225
|
-
if (value && value.length < 3) {
|
|
4226
|
-
resolve({ [options.errorKey]: true });
|
|
4227
|
-
return;
|
|
4228
|
-
}
|
|
4229
|
-
if (value && !control.pristine) {
|
|
4230
|
-
let validatorOption;
|
|
4231
|
-
if (options.entity && options.entityField) {
|
|
4232
|
-
validatorOption = {
|
|
4233
|
-
entity: options.entity,
|
|
4234
|
-
entityField: options.entityField,
|
|
4235
|
-
};
|
|
4236
|
-
}
|
|
4237
|
-
this.formValidationFacade.sendValidation(type, value, itemId, validatorOption);
|
|
4238
|
-
this.formValidationFacade.getValidation(type, value)
|
|
4239
|
-
.pipe(take(2), filter$1((validationData) => validationData.loaded))
|
|
4240
|
-
.subscribe((validationData) => {
|
|
4241
|
-
if (validationData && !validationData.isValid) {
|
|
4242
|
-
this.notificationsFacade.addNotifications({
|
|
4243
|
-
id: `${options.errorKey}${value}`,
|
|
4244
|
-
type: 'error',
|
|
4245
|
-
text: options.errorText,
|
|
4246
|
-
timeout: NOTIFICATION_LONG_TIMEOUT
|
|
4247
|
-
});
|
|
4248
|
-
resolve({ [options.errorKey]: true });
|
|
4249
|
-
}
|
|
4250
|
-
else {
|
|
4251
|
-
this.validatorsData[type] = { value: value, valid: true };
|
|
4252
|
-
resolve();
|
|
4253
|
-
}
|
|
4254
|
-
});
|
|
4255
|
-
}
|
|
4256
|
-
else {
|
|
4257
|
-
control.status = 'VALID';
|
|
4258
|
-
resolve();
|
|
4259
|
-
}
|
|
4260
|
-
});
|
|
4261
|
-
}
|
|
4262
|
-
prepareFormFieldPublicationMessage(messages, publishErrorConstants, fields) {
|
|
4263
|
-
return messages.map(item => {
|
|
4264
|
-
const { field, message } = item;
|
|
4265
|
-
const foundField = fields?.find(fieldItem => fieldItem.field === field);
|
|
4266
|
-
let params = {
|
|
4267
|
-
'field': foundField?.title || field
|
|
4268
|
-
};
|
|
4269
|
-
const messageParam = message.split('-');
|
|
4270
|
-
const messageKey = messageParam[0];
|
|
4271
|
-
if (messageParam.length > 1) {
|
|
4272
|
-
params['countDownloadedFiles'] = messageParam[1];
|
|
4273
|
-
}
|
|
4274
|
-
if (publishErrorConstants[messageKey]) {
|
|
4275
|
-
const { title, description } = publishErrorConstants[messageKey];
|
|
4276
|
-
return {
|
|
4277
|
-
title: this.prepareText(title, params),
|
|
4278
|
-
description: this.prepareText(description, params),
|
|
4279
|
-
field: foundField?.field || field
|
|
4280
|
-
};
|
|
4281
|
-
}
|
|
4282
|
-
return {
|
|
4283
|
-
title: field,
|
|
4284
|
-
description: message
|
|
4285
|
-
};
|
|
4286
|
-
});
|
|
4287
|
-
}
|
|
4288
|
-
prepareText(text, params) {
|
|
4289
|
-
let newText = text;
|
|
4290
|
-
Object.keys(params)
|
|
4291
|
-
.forEach(key => {
|
|
4292
|
-
newText = this.replaceAll(newText, '{' + key + '}', params[key]);
|
|
4293
|
-
});
|
|
4294
|
-
return newText;
|
|
4295
|
-
}
|
|
4296
|
-
replaceAll(str, a, b) {
|
|
4297
|
-
return str.replace(new RegExp(a, 'g'), b);
|
|
4298
|
-
}
|
|
4299
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AutoFormService, deps: [{ token: FormValidationFacade }, { token: NotificationsFacade }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4300
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AutoFormService, providedIn: "root" }); }
|
|
4301
|
-
}
|
|
4302
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AutoFormService, decorators: [{
|
|
4303
|
-
type: Injectable,
|
|
4304
|
-
args: [{ providedIn: "root" }]
|
|
4305
|
-
}], ctorParameters: () => [{ type: FormValidationFacade }, { type: NotificationsFacade }] });
|
|
4306
|
-
|
|
4307
|
-
/**
|
|
4308
|
-
* Icon component.
|
|
4309
|
-
* Add svg icon to any place.
|
|
4310
|
-
* By default it uses size and color of host element or you can set predefined values by settings inputs size and color
|
|
4311
|
-
*
|
|
4312
|
-
* Usage:
|
|
4313
|
-
* ````
|
|
4314
|
-
* <shared-ui-icon icon="add"></app-ui-icon>
|
|
4315
|
-
* <shared-ui-icon icon="add" size="xs" color="primary"></app-ui-icon>
|
|
4316
|
-
* ````
|
|
4317
|
-
*/
|
|
4318
|
-
class IconComponent {
|
|
4319
|
-
constructor() {
|
|
4320
|
-
this.size = 'normal';
|
|
4321
|
-
this.color = 'inherit';
|
|
4322
|
-
this.iconSize = 's-22';
|
|
4323
|
-
}
|
|
4324
|
-
ngOnChanges(changes) {
|
|
4325
|
-
if (this.size === 'normal') {
|
|
4326
|
-
this.iconSize = `s-22`;
|
|
4327
|
-
}
|
|
4328
|
-
if (this.size === 'small') {
|
|
4329
|
-
this.iconSize = `s-18`;
|
|
4330
|
-
}
|
|
4331
|
-
}
|
|
4332
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: IconComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4333
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: IconComponent, selector: "shared-ui-icon", inputs: { icon: "icon", size: "size", color: "color" }, usesOnChanges: true, ngImport: i0, template: "<mat-icon\n [ngClass]=\"'icon-size-' + size + ' color-' + color + ' ' + iconSize\"\n class=\"secondary-text mat-icon notranslate material-icons\"\n role=\"img\"\n aria-hidden=\"true\">{{icon}}</mat-icon>\n", styles: [":host{display:inline-flex;align-items:center}.orange_gray{color:#c17e5d!important}.color-yellow{color:#fcb202!important}.color-red{color:#f44336!important}.color-white{color:#fff9!important}.color-black{color:#000000de!important}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4334
|
-
}
|
|
4335
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: IconComponent, decorators: [{
|
|
4336
|
-
type: Component,
|
|
4337
|
-
args: [{ selector: 'shared-ui-icon', changeDetection: ChangeDetectionStrategy.OnPush, template: "<mat-icon\n [ngClass]=\"'icon-size-' + size + ' color-' + color + ' ' + iconSize\"\n class=\"secondary-text mat-icon notranslate material-icons\"\n role=\"img\"\n aria-hidden=\"true\">{{icon}}</mat-icon>\n", styles: [":host{display:inline-flex;align-items:center}.orange_gray{color:#c17e5d!important}.color-yellow{color:#fcb202!important}.color-red{color:#f44336!important}.color-white{color:#fff9!important}.color-black{color:#000000de!important}\n"] }]
|
|
4338
|
-
}], propDecorators: { icon: [{
|
|
4339
|
-
type: Input
|
|
4340
|
-
}], size: [{
|
|
4341
|
-
type: Input
|
|
4342
|
-
}], color: [{
|
|
4343
|
-
type: Input
|
|
4344
|
-
}] } });
|
|
4345
|
-
|
|
4346
|
-
class SpinnerComponent {
|
|
4347
|
-
constructor() {
|
|
4348
|
-
this.overlay = false;
|
|
4349
|
-
this.diameter = 30;
|
|
4350
|
-
this.color = 'blue';
|
|
4351
|
-
this.position = 'left';
|
|
4352
|
-
}
|
|
4353
|
-
ngOnInit() {
|
|
4354
|
-
}
|
|
4355
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SpinnerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4356
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: SpinnerComponent, selector: "shared-spinner", inputs: { overlay: "overlay", diameter: "diameter", color: "color", position: "position" }, ngImport: i0, template: "<div [ngClass]=\"{\n overlay: overlay,\n 'grey-color': color === 'grey',\n 'align-center': position === 'center',\n 'align-right': position === 'right'\n }\">\n <mat-progress-spinner\n class=\"example-margin\"\n color=\"accent\"\n [diameter]=\"diameter\"\n mode=\"indeterminate\">\n </mat-progress-spinner>\n</div>\n", styles: [".overlay{position:absolute;inset:0;background:#1e2129ad;z-index:100;display:flex;justify-content:center;align-items:center}.align-center{display:flex;justify-content:center}.align-right{display:flex;justify-content:right}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i2$2.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4357
|
-
}
|
|
4358
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: SpinnerComponent, decorators: [{
|
|
4359
|
-
type: Component,
|
|
4360
|
-
args: [{ selector: 'shared-spinner', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [ngClass]=\"{\n overlay: overlay,\n 'grey-color': color === 'grey',\n 'align-center': position === 'center',\n 'align-right': position === 'right'\n }\">\n <mat-progress-spinner\n class=\"example-margin\"\n color=\"accent\"\n [diameter]=\"diameter\"\n mode=\"indeterminate\">\n </mat-progress-spinner>\n</div>\n", styles: [".overlay{position:absolute;inset:0;background:#1e2129ad;z-index:100;display:flex;justify-content:center;align-items:center}.align-center{display:flex;justify-content:center}.align-right{display:flex;justify-content:right}\n"] }]
|
|
4361
|
-
}], ctorParameters: () => [], propDecorators: { overlay: [{
|
|
4362
|
-
type: Input
|
|
4363
|
-
}], diameter: [{
|
|
4364
|
-
type: Input
|
|
4365
|
-
}], color: [{
|
|
4366
|
-
type: Input
|
|
4367
|
-
}], position: [{
|
|
4368
|
-
type: Input
|
|
4369
|
-
}] } });
|
|
4370
|
-
|
|
4371
|
-
class ButtonComponent {
|
|
4372
|
-
constructor() {
|
|
4373
|
-
this.icon = '';
|
|
4374
|
-
this.rightIcon = '';
|
|
4375
|
-
this.disabled = false;
|
|
4376
|
-
this.loading = false;
|
|
4377
|
-
this.active = false;
|
|
4378
|
-
this.stopPropagation = false;
|
|
4379
|
-
this.type = 'button';
|
|
4380
|
-
this.color = '';
|
|
4381
|
-
this.fullWidth = false;
|
|
4382
|
-
this.size = 'normal';
|
|
4383
|
-
this.styleTheme = 'basic';
|
|
4384
|
-
// @Input() tooltipPosition: TooltipPosition = 'above';
|
|
4385
|
-
this.tooltipPosition = 'above';
|
|
4386
|
-
this.clickButton = new EventEmitter();
|
|
4387
|
-
this.context = { size: 'normal', iconSize: 'normal', disabled: false };
|
|
4388
|
-
this.spinnerDiameter = 30;
|
|
4389
|
-
}
|
|
4390
|
-
ngOnInit() {
|
|
4391
|
-
this.context.buttonIconSize = this.iconSize ? this.iconSize : this.size;
|
|
4392
|
-
this.calculateSpinnerDiameter();
|
|
4393
|
-
}
|
|
4394
|
-
ngOnChanges(changes) {
|
|
4395
|
-
if (changes['loading']) {
|
|
4396
|
-
this.context.loading = changes['loading'].currentValue;
|
|
4397
|
-
}
|
|
4398
|
-
if (changes['iconColor'] && changes['iconColor'].currentValue) {
|
|
4399
|
-
this.context.iconColor = changes['iconColor'].currentValue;
|
|
4400
|
-
}
|
|
4401
|
-
if (changes['color'] && changes['color'].currentValue) {
|
|
4402
|
-
this.context.color = changes['color'].currentValue;
|
|
4403
|
-
}
|
|
4404
|
-
if (changes['buttonIconSize'] && changes['buttonIconSize'].currentValue) {
|
|
4405
|
-
this.context.buttonIconSize = changes['buttonIconSize'].currentValue;
|
|
4406
|
-
}
|
|
4407
|
-
if (changes['icon'] && changes['icon'].currentValue) {
|
|
4408
|
-
this.context.icon = changes['icon'].currentValue;
|
|
4409
|
-
}
|
|
4410
|
-
if (changes['disabled'] && changes['disabled'].currentValue) {
|
|
4411
|
-
this.context.disabled = changes['disabled'].currentValue;
|
|
4412
|
-
}
|
|
4413
|
-
}
|
|
4414
|
-
calculateSpinnerDiameter() {
|
|
4415
|
-
switch (this.size) {
|
|
4416
|
-
case 'normal':
|
|
4417
|
-
this.spinnerDiameter = 30;
|
|
4418
|
-
break;
|
|
4419
|
-
}
|
|
4420
|
-
}
|
|
4421
|
-
onClick(evt) {
|
|
4422
|
-
if (this.stopPropagation) {
|
|
4423
|
-
evt.preventDefault();
|
|
4424
|
-
evt.stopPropagation();
|
|
4425
|
-
}
|
|
4426
|
-
if (!this.disabled) {
|
|
4427
|
-
this.clickButton.emit(true);
|
|
4428
|
-
}
|
|
4429
|
-
}
|
|
4430
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4431
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: ButtonComponent, selector: "shared-button", inputs: { icon: "icon", iconColor: "iconColor", iconSize: "iconSize", rightIcon: "rightIcon", disabled: "disabled", loading: "loading", active: "active", stopPropagation: "stopPropagation", type: "type", color: "color", fullWidth: "fullWidth", size: "size", styleTheme: "styleTheme", tooltip: "tooltip", tooltipPosition: "tooltipPosition" }, outputs: { clickButton: "clickButton" }, usesOnChanges: true, ngImport: i0, template: "<button\n *ngIf=\"styleTheme === 'basic'\"\n mat-button\n class=\"button-effect\"\n [color]=\"'accent'\"\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [ngClass]=\"{size: true, 'width-100': fullWidth}\"\n [matTooltip]=\"tooltip\"\n [matTooltipPosition]=\"tooltipPosition\"\n [matTooltipDisabled]=\"disabled\"\n (click)=\"onClick($event)\"\n [class.active]=\"active\"\n [class.has-right-icon]=\"rightIcon\">\n <ng-container *ngTemplateOutlet=\"innerButton; context: context\"></ng-container>\n</button>\n<button\n *ngIf=\"styleTheme === 'raised'\"\n mat-raised-button\n class=\"button-effect\"\n [color]=\"color\"\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [ngClass]=\"{size: true, 'width-100': fullWidth}\"\n [matTooltip]=\"tooltip\"\n [matTooltipPosition]=\"tooltipPosition\"\n [matTooltipDisabled]=\"disabled\"\n (click)=\"onClick($event)\"\n [class.active]=\"active\"\n [class.has-right-icon]=\"rightIcon\">\n <ng-container *ngTemplateOutlet=\"innerButton; context: context\"></ng-container>\n</button>\n<button\n *ngIf=\"styleTheme === 'stroked'\"\n mat-stroked-button\n [color]=\"color\"\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [ngClass]=\"{size: true, 'width-100': fullWidth}\"\n [matTooltip]=\"tooltip\"\n [matTooltipPosition]=\"tooltipPosition\"\n [matTooltipDisabled]=\"disabled\"\n (click)=\"onClick($event)\"\n [class.active]=\"active\"\n [class.has-right-icon]=\"rightIcon\">\n <ng-container *ngTemplateOutlet=\"innerButton; context: context\"></ng-container>\n</button>\n<button\n *ngIf=\"styleTheme === 'flat'\"\n mat-flat-button\n [color]=\"color\"\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [ngClass]=\"{size: true, 'width-100': fullWidth}\"\n [matTooltip]=\"tooltip\"\n [matTooltipPosition]=\"tooltipPosition\"\n [matTooltipDisabled]=\"disabled\"\n (click)=\"onClick($event)\"\n [class.active]=\"active\"\n [class.has-right-icon]=\"rightIcon\">\n <ng-container\n *ngTemplateOutlet=\"innerButton; context:{loading: loading, icon: icon, color: color, size: size}\"></ng-container>\n</button>\n<button\n *ngIf=\"styleTheme === 'fab'\"\n mat-fab\n [color]=\"color\"\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [ngClass]=\"{size: true, 'width-100': fullWidth}\"\n [matTooltip]=\"tooltip\"\n [matTooltipPosition]=\"tooltipPosition\"\n [matTooltipDisabled]=\"disabled\"\n (click)=\"onClick($event)\"\n [class.active]=\"active\"\n [class.has-right-icon]=\"rightIcon\">\n <ng-container *ngTemplateOutlet=\"innerButton; context: context\"></ng-container>\n</button>\n<button\n *ngIf=\"styleTheme === 'mini-fab'\"\n mat-mini-fab\n [color]=\"color\"\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [ngClass]=\"{size: true, 'width-100': fullWidth}\"\n [matTooltip]=\"tooltip\"\n [matTooltipPosition]=\"tooltipPosition\"\n [matTooltipDisabled]=\"disabled\"\n (click)=\"onClick($event)\"\n [class.active]=\"active\"\n [class.has-right-icon]=\"rightIcon\">\n <ng-container *ngTemplateOutlet=\"innerButton; context: context\"></ng-container>\n</button>\n<ng-template #innerButton\n let-loading=\"loading\"\n let-iconColor=\"iconColor\"\n let-buttonIconSize=\"buttonIconSize\"\n let-icon=\"icon\"\n let-disabled=\"disabled\">\n <shared-ui-icon *ngIf=\"icon\"\n [color]=\"iconColor\"\n [size]=\"buttonIconSize\"\n [icon]=\"icon\"\n [ngClass]=\"[icon]\"></shared-ui-icon>\n <span @appearOpacity\n class=\"text\"\n #text>\n <ng-content></ng-content>\n </span>\n <shared-spinner\n @spinnerAnimation\n *ngIf=\"loading\"\n class=\"loader button-loader\"\n [diameter]=\"spinnerDiameter\"></shared-spinner>\n</ng-template>\n", styles: ["shared-ui-icon{margin-left:0!important;margin-right:5px!important}.button-loader{position:absolute}button{line-height:normal;margin:0}button .mdc-button__label{display:flex;align-items:center}.width-100{width:100%}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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: i2$3.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: IconComponent, selector: "shared-ui-icon", inputs: ["icon", "size", "color"] }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "component", type: i5.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: i5.MatMiniFabButton, selector: "button[mat-mini-fab]", exportAs: ["matButton"] }, { kind: "component", type: i5.MatFabButton, selector: "button[mat-fab]", inputs: ["extended"], exportAs: ["matButton"] }], animations: [
|
|
4432
|
-
trigger('spinnerAnimation', [
|
|
4433
|
-
transition(':enter', [
|
|
4434
|
-
animate('300ms', keyframes([
|
|
4435
|
-
style({ opacity: 0, transform: 'translateY(-10px)', offset: 0 }),
|
|
4436
|
-
style({ opacity: 1, transform: 'translateY(0)', offset: 1 }),
|
|
4437
|
-
]))
|
|
4438
|
-
]),
|
|
4439
|
-
transition(':leave', [
|
|
4440
|
-
animate('200ms', keyframes([
|
|
4441
|
-
style({ opacity: 1, transform: 'translateY(0)', offset: 0 }),
|
|
4442
|
-
style({ opacity: 0, transform: 'translateY(-10px)', offset: 1 }),
|
|
4443
|
-
]))
|
|
4444
|
-
])
|
|
4445
|
-
]),
|
|
4446
|
-
appearOpacity
|
|
4447
|
-
], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4110
|
+
onClick(evt) {
|
|
4111
|
+
if (this.stopPropagation) {
|
|
4112
|
+
evt.preventDefault();
|
|
4113
|
+
evt.stopPropagation();
|
|
4114
|
+
}
|
|
4115
|
+
if (!this.disabled) {
|
|
4116
|
+
this.clickButton.emit(true);
|
|
4117
|
+
}
|
|
4118
|
+
}
|
|
4119
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4120
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: ButtonComponent, selector: "shared-button", inputs: { icon: "icon", iconColor: "iconColor", iconSize: "iconSize", rightIcon: "rightIcon", disabled: "disabled", loading: "loading", active: "active", stopPropagation: "stopPropagation", type: "type", color: "color", fullWidth: "fullWidth", size: "size", styleTheme: "styleTheme", tooltip: "tooltip", tooltipPosition: "tooltipPosition" }, outputs: { clickButton: "clickButton" }, usesOnChanges: true, ngImport: i0, template: "<button\n *ngIf=\"styleTheme === 'basic'\"\n mat-button\n class=\"button-effect\"\n [color]=\"'accent'\"\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [class.small]=\"size === 'small'\"\n [class.normal]=\"size === 'normal'\"\n [class.large]=\"size === 'large'\"\n [class.big]=\"size === 'big'\"\n [ngClass]=\"{'width-100': fullWidth}\"\n [matTooltip]=\"tooltip\"\n [matTooltipPosition]=\"tooltipPosition\"\n [matTooltipDisabled]=\"disabled\"\n (click)=\"onClick($event)\"\n [class.active]=\"active\"\n [class.has-right-icon]=\"rightIcon\">\n <ng-container *ngTemplateOutlet=\"innerButton; context: context\"></ng-container>\n</button>\n<button\n *ngIf=\"styleTheme === 'raised'\"\n mat-raised-button\n class=\"button-effect\"\n [color]=\"color\"\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [class.small]=\"size === 'small'\"\n [class.normal]=\"size === 'normal'\"\n [class.large]=\"size === 'large'\"\n [class.big]=\"size === 'big'\"\n [ngClass]=\"{'width-100': fullWidth}\"\n [matTooltip]=\"tooltip\"\n [matTooltipPosition]=\"tooltipPosition\"\n [matTooltipDisabled]=\"disabled\"\n (click)=\"onClick($event)\"\n [class.active]=\"active\"\n [class.has-right-icon]=\"rightIcon\">\n <ng-container *ngTemplateOutlet=\"innerButton; context: context\"></ng-container>\n</button>\n<button\n *ngIf=\"styleTheme === 'stroked'\"\n mat-stroked-button\n [color]=\"color\"\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [class.small]=\"size === 'small'\"\n [class.normal]=\"size === 'normal'\"\n [class.large]=\"size === 'large'\"\n [class.big]=\"size === 'big'\"\n [ngClass]=\"{'width-100': fullWidth}\"\n [matTooltip]=\"tooltip\"\n [matTooltipPosition]=\"tooltipPosition\"\n [matTooltipDisabled]=\"disabled\"\n (click)=\"onClick($event)\"\n [class.active]=\"active\"\n [class.has-right-icon]=\"rightIcon\">\n <ng-container *ngTemplateOutlet=\"innerButton; context: context\"></ng-container>\n</button>\n<button\n *ngIf=\"styleTheme === 'flat'\"\n mat-flat-button\n [color]=\"color\"\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [class.small]=\"size === 'small'\"\n [class.normal]=\"size === 'normal'\"\n [class.large]=\"size === 'large'\"\n [class.big]=\"size === 'big'\"\n [ngClass]=\"{'width-100': fullWidth}\"\n [matTooltip]=\"tooltip\"\n [matTooltipPosition]=\"tooltipPosition\"\n [matTooltipDisabled]=\"disabled\"\n (click)=\"onClick($event)\"\n [class.active]=\"active\"\n [class.has-right-icon]=\"rightIcon\">\n <ng-container\n *ngTemplateOutlet=\"innerButton; context:{loading: loading, icon: icon, color: color, size: size}\"></ng-container>\n</button>\n<button\n *ngIf=\"styleTheme === 'fab'\"\n mat-fab\n [color]=\"color\"\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [class.small]=\"size === 'small'\"\n [class.normal]=\"size === 'normal'\"\n [class.large]=\"size === 'large'\"\n [class.big]=\"size === 'big'\"\n [ngClass]=\"{'width-100': fullWidth}\"\n [matTooltip]=\"tooltip\"\n [matTooltipPosition]=\"tooltipPosition\"\n [matTooltipDisabled]=\"disabled\"\n (click)=\"onClick($event)\"\n [class.active]=\"active\"\n [class.has-right-icon]=\"rightIcon\">\n <ng-container *ngTemplateOutlet=\"innerButton; context: context\"></ng-container>\n</button>\n<button\n *ngIf=\"styleTheme === 'mini-fab'\"\n mat-mini-fab\n [color]=\"color\"\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [class.small]=\"size === 'small'\"\n [class.normal]=\"size === 'normal'\"\n [class.large]=\"size === 'large'\"\n [class.big]=\"size === 'big'\"\n [ngClass]=\"{'width-100': fullWidth}\"\n [matTooltip]=\"tooltip\"\n [matTooltipPosition]=\"tooltipPosition\"\n [matTooltipDisabled]=\"disabled\"\n (click)=\"onClick($event)\"\n [class.active]=\"active\"\n [class.has-right-icon]=\"rightIcon\">\n <ng-container *ngTemplateOutlet=\"innerButton; context: context\"></ng-container>\n</button>\n<ng-template #innerButton\n let-loading=\"loading\"\n let-iconColor=\"iconColor\"\n let-buttonIconSize=\"buttonIconSize\"\n let-icon=\"icon\"\n let-disabled=\"disabled\">\n <shared-ui-icon *ngIf=\"icon\"\n [color]=\"iconColor\"\n [size]=\"buttonIconSize\"\n [icon]=\"icon\"\n [ngClass]=\"[icon]\"></shared-ui-icon>\n <span @appearOpacity\n class=\"text\"\n #text>\n <ng-content></ng-content>\n </span>\n <shared-spinner\n @spinnerAnimation\n *ngIf=\"loading\"\n class=\"loader button-loader\"\n [diameter]=\"spinnerDiameter\"></shared-spinner>\n</ng-template>\n", styles: ["shared-ui-icon{margin-left:0!important;margin-right:5px!important}.button-loader{position:absolute}button{line-height:normal;margin:0}button .mdc-button__label{display:flex;align-items:center}.width-100{width:100%}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { 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: i2$3.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "component", type: IconComponent, selector: "shared-ui-icon", inputs: ["icon", "size", "color"] }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "component", type: i5.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: i5.MatMiniFabButton, selector: "button[mat-mini-fab]", exportAs: ["matButton"] }, { kind: "component", type: i5.MatFabButton, selector: "button[mat-fab]", inputs: ["extended"], exportAs: ["matButton"] }], animations: [
|
|
4121
|
+
trigger('spinnerAnimation', [
|
|
4122
|
+
transition(':enter', [
|
|
4123
|
+
animate('300ms', keyframes([
|
|
4124
|
+
style({ opacity: 0, transform: 'translateY(-10px)', offset: 0 }),
|
|
4125
|
+
style({ opacity: 1, transform: 'translateY(0)', offset: 1 }),
|
|
4126
|
+
]))
|
|
4127
|
+
]),
|
|
4128
|
+
transition(':leave', [
|
|
4129
|
+
animate('200ms', keyframes([
|
|
4130
|
+
style({ opacity: 1, transform: 'translateY(0)', offset: 0 }),
|
|
4131
|
+
style({ opacity: 0, transform: 'translateY(-10px)', offset: 1 }),
|
|
4132
|
+
]))
|
|
4133
|
+
])
|
|
4134
|
+
]),
|
|
4135
|
+
appearOpacity
|
|
4136
|
+
], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4448
4137
|
}
|
|
4449
4138
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: ButtonComponent, decorators: [{
|
|
4450
4139
|
type: Component,
|
|
@@ -4464,7 +4153,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
4464
4153
|
])
|
|
4465
4154
|
]),
|
|
4466
4155
|
appearOpacity
|
|
4467
|
-
], template: "<button\n *ngIf=\"styleTheme === 'basic'\"\n mat-button\n class=\"button-effect\"\n [color]=\"'accent'\"\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [
|
|
4156
|
+
], template: "<button\n *ngIf=\"styleTheme === 'basic'\"\n mat-button\n class=\"button-effect\"\n [color]=\"'accent'\"\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [class.small]=\"size === 'small'\"\n [class.normal]=\"size === 'normal'\"\n [class.large]=\"size === 'large'\"\n [class.big]=\"size === 'big'\"\n [ngClass]=\"{'width-100': fullWidth}\"\n [matTooltip]=\"tooltip\"\n [matTooltipPosition]=\"tooltipPosition\"\n [matTooltipDisabled]=\"disabled\"\n (click)=\"onClick($event)\"\n [class.active]=\"active\"\n [class.has-right-icon]=\"rightIcon\">\n <ng-container *ngTemplateOutlet=\"innerButton; context: context\"></ng-container>\n</button>\n<button\n *ngIf=\"styleTheme === 'raised'\"\n mat-raised-button\n class=\"button-effect\"\n [color]=\"color\"\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [class.small]=\"size === 'small'\"\n [class.normal]=\"size === 'normal'\"\n [class.large]=\"size === 'large'\"\n [class.big]=\"size === 'big'\"\n [ngClass]=\"{'width-100': fullWidth}\"\n [matTooltip]=\"tooltip\"\n [matTooltipPosition]=\"tooltipPosition\"\n [matTooltipDisabled]=\"disabled\"\n (click)=\"onClick($event)\"\n [class.active]=\"active\"\n [class.has-right-icon]=\"rightIcon\">\n <ng-container *ngTemplateOutlet=\"innerButton; context: context\"></ng-container>\n</button>\n<button\n *ngIf=\"styleTheme === 'stroked'\"\n mat-stroked-button\n [color]=\"color\"\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [class.small]=\"size === 'small'\"\n [class.normal]=\"size === 'normal'\"\n [class.large]=\"size === 'large'\"\n [class.big]=\"size === 'big'\"\n [ngClass]=\"{'width-100': fullWidth}\"\n [matTooltip]=\"tooltip\"\n [matTooltipPosition]=\"tooltipPosition\"\n [matTooltipDisabled]=\"disabled\"\n (click)=\"onClick($event)\"\n [class.active]=\"active\"\n [class.has-right-icon]=\"rightIcon\">\n <ng-container *ngTemplateOutlet=\"innerButton; context: context\"></ng-container>\n</button>\n<button\n *ngIf=\"styleTheme === 'flat'\"\n mat-flat-button\n [color]=\"color\"\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [class.small]=\"size === 'small'\"\n [class.normal]=\"size === 'normal'\"\n [class.large]=\"size === 'large'\"\n [class.big]=\"size === 'big'\"\n [ngClass]=\"{'width-100': fullWidth}\"\n [matTooltip]=\"tooltip\"\n [matTooltipPosition]=\"tooltipPosition\"\n [matTooltipDisabled]=\"disabled\"\n (click)=\"onClick($event)\"\n [class.active]=\"active\"\n [class.has-right-icon]=\"rightIcon\">\n <ng-container\n *ngTemplateOutlet=\"innerButton; context:{loading: loading, icon: icon, color: color, size: size}\"></ng-container>\n</button>\n<button\n *ngIf=\"styleTheme === 'fab'\"\n mat-fab\n [color]=\"color\"\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [class.small]=\"size === 'small'\"\n [class.normal]=\"size === 'normal'\"\n [class.large]=\"size === 'large'\"\n [class.big]=\"size === 'big'\"\n [ngClass]=\"{'width-100': fullWidth}\"\n [matTooltip]=\"tooltip\"\n [matTooltipPosition]=\"tooltipPosition\"\n [matTooltipDisabled]=\"disabled\"\n (click)=\"onClick($event)\"\n [class.active]=\"active\"\n [class.has-right-icon]=\"rightIcon\">\n <ng-container *ngTemplateOutlet=\"innerButton; context: context\"></ng-container>\n</button>\n<button\n *ngIf=\"styleTheme === 'mini-fab'\"\n mat-mini-fab\n [color]=\"color\"\n [type]=\"type\"\n [disabled]=\"disabled || loading\"\n [class.small]=\"size === 'small'\"\n [class.normal]=\"size === 'normal'\"\n [class.large]=\"size === 'large'\"\n [class.big]=\"size === 'big'\"\n [ngClass]=\"{'width-100': fullWidth}\"\n [matTooltip]=\"tooltip\"\n [matTooltipPosition]=\"tooltipPosition\"\n [matTooltipDisabled]=\"disabled\"\n (click)=\"onClick($event)\"\n [class.active]=\"active\"\n [class.has-right-icon]=\"rightIcon\">\n <ng-container *ngTemplateOutlet=\"innerButton; context: context\"></ng-container>\n</button>\n<ng-template #innerButton\n let-loading=\"loading\"\n let-iconColor=\"iconColor\"\n let-buttonIconSize=\"buttonIconSize\"\n let-icon=\"icon\"\n let-disabled=\"disabled\">\n <shared-ui-icon *ngIf=\"icon\"\n [color]=\"iconColor\"\n [size]=\"buttonIconSize\"\n [icon]=\"icon\"\n [ngClass]=\"[icon]\"></shared-ui-icon>\n <span @appearOpacity\n class=\"text\"\n #text>\n <ng-content></ng-content>\n </span>\n <shared-spinner\n @spinnerAnimation\n *ngIf=\"loading\"\n class=\"loader button-loader\"\n [diameter]=\"spinnerDiameter\"></shared-spinner>\n</ng-template>\n", styles: ["shared-ui-icon{margin-left:0!important;margin-right:5px!important}.button-loader{position:absolute}button{line-height:normal;margin:0}button .mdc-button__label{display:flex;align-items:center}.width-100{width:100%}\n"] }]
|
|
4468
4157
|
}], ctorParameters: () => [], propDecorators: { icon: [{
|
|
4469
4158
|
type: Input
|
|
4470
4159
|
}], iconColor: [{
|
|
@@ -4500,11 +4189,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
4500
4189
|
}] } });
|
|
4501
4190
|
|
|
4502
4191
|
class CommonDialogComponent {
|
|
4503
|
-
constructor(dialogRef, staticDataFacade, fb,
|
|
4192
|
+
constructor(dialogRef, staticDataFacade, fb,
|
|
4193
|
+
// private autoFormService: AutoFormService,
|
|
4194
|
+
data) {
|
|
4504
4195
|
this.dialogRef = dialogRef;
|
|
4505
4196
|
this.staticDataFacade = staticDataFacade;
|
|
4506
4197
|
this.fb = fb;
|
|
4507
|
-
this.autoFormService = autoFormService;
|
|
4508
4198
|
this.data = data;
|
|
4509
4199
|
this.sizeValues = {
|
|
4510
4200
|
big: 'big',
|
|
@@ -4516,6 +4206,7 @@ class CommonDialogComponent {
|
|
|
4516
4206
|
error: 'error',
|
|
4517
4207
|
info: 'info'
|
|
4518
4208
|
};
|
|
4209
|
+
// fields: IFormField[];
|
|
4519
4210
|
this.formStatus = 'loaded';
|
|
4520
4211
|
this.statusType = StaticDataMetaStatus$1;
|
|
4521
4212
|
this.globalErrorMessageTexts = GlobalErrorMessages;
|
|
@@ -4540,9 +4231,13 @@ class CommonDialogComponent {
|
|
|
4540
4231
|
}
|
|
4541
4232
|
initForm() {
|
|
4542
4233
|
if (this.data.formConfig?.fields) {
|
|
4234
|
+
console.log('initForm.formConfig', this.data.formConfig?.fields);
|
|
4235
|
+
/*
|
|
4543
4236
|
this.fields = this.data.formConfig?.fields;
|
|
4544
4237
|
const preparedFields = this.autoFormService.getPreparedFields(this.fields);
|
|
4238
|
+
|
|
4545
4239
|
this.form = this.fb.group(preparedFields);
|
|
4240
|
+
*/
|
|
4546
4241
|
}
|
|
4547
4242
|
else {
|
|
4548
4243
|
console.error('[ common-dialog ][ initForm ] Incorrect form options', { formConfig: this.data.formConfig });
|
|
@@ -4568,13 +4263,13 @@ class CommonDialogComponent {
|
|
|
4568
4263
|
this.dialogRef.close(undefined);
|
|
4569
4264
|
}
|
|
4570
4265
|
}
|
|
4571
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CommonDialogComponent, deps: [{ token: i1$4.MatDialogRef }, { token: StaticDataFacade }, { token: i3.UntypedFormBuilder }, { token:
|
|
4572
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: CommonDialogComponent, selector: "app-common-dialog", ngImport: i0, template: "<div class=\"text-center position-relative p-10\"\n @appearFromRightWithDelay\n [class.modal-size-big]=\"data.size === sizeValues.big\"\n [class.modal-size-middle]=\"data.size === sizeValues.middle\"\n [class.modal-size-small]=\"data.size === sizeValues.small\"\n [class.modal-style-success]=\"data.messageType === typesValues.success\"\n [class.modal-style-error]=\"data.messageType === typesValues.error\"\n [class.modal-style-info]=\"data.messageType === typesValues.info\">\n <div [class.display-none]=\"!data.hideButton\"\n class=\"modal-close-button\"\n (click)=\"onNoClick()\">\n x\n </div>\n\n <h1 class=\"mat-dialog-title\" [class.display-none]=\"!data.title\">{{data.title}}</h1>\n <div mat-dialog-content>\n <p *ngIf=\"data.message\" [innerHTML]=\"data.message\"></p>\n <ng-container *ngIf=\"data.formConfig\">\n <form [formGroup]=\"form\">\n --shared-auto-form(formId: {{formId}}, itemId: {{data.formConfig.itemId}})--\n <!--<shared-auto-form\n class=\"mb-20\"\n [entity]=\"data.formConfig.entity\"\n [itemId]=\"data.formConfig.itemId\"\n [formId]=\"formId\"\n [fields]=\"data.formConfig.fields\"\n [form]=\"form\"\n [config]=\"{needToPublish: false}\"\n [errorMessageTexts]=\"globalErrorMessageTexts\"\n (changed)=\"changedFormValue()\"\n (formCompleted)=\"formCompleted($event)\"\n ></shared-auto-form>-->\n\n <!--<div *ngIf=\"staticSection.globalActions\" class=\"global-actions\">\n <div *ngFor=\"let action of staticSection.globalActions\"\n (click)=\"globalActionHandle(action)\" class=\"global-action\">\n {{ action.title }}\n </div>\n </div>-->\n <div @appearFromLeftWithDelay\n fxLayout=\"row\"\n fxLayoutAlign=\"center center\"\n class=\"mt-20\">\n <shared-button\n id=\"form-create-button\"\n class=\"mr-8\"\n type=\"submit\"\n icon=\"edit\"\n iconColor=\"white\"\n color=\"accent\"\n styleTheme=\"raised\"\n [disabled]=\"!form.valid || formStatus === 'loading'\"\n (click)=\"submitClick()\"\n >\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C</shared-button>\n </div>\n </form>\n </ng-container>\n </div>\n <div [class.display-none]=\"data.hideButton\" mat-dialog-actions class=\"text-align-center mt-20\">\n <button mat-button (click)=\"onNoClick()\"\n class=\"mat-raised-button mr-10\"\n cdkFocusInitial>{{data.falseButtonTitle || '\u041D\u0435\u0442' }}</button>\n <button mat-button\n *ngIf=\"!data.formConfig\"\n [class.display-none]=\"data.hideTrueButton\"\n (click)=\"onYesClick()\"\n class=\"mat-raised-button mat-warn\">{{data.trueButtonTitle || '\u0414\u0430' }}</button>\n </div>\n</div>\n", styles: [".size-big{width:800px}.size-middle{width:600px}.size-small{width:300px}.style-success,.style-error,.style-info{padding:24px}.style-success{border-left:5px solid #4caf50;background:linear-gradient(15deg,#6dcf71c9,#f0f8f0)}.style-info{border-left:5px solid #fcb202;background:linear-gradient(15deg,#fcb20287,#fcb20208)}.style-error{border-left:5px solid #f44336;background:linear-gradient(15deg,#f2686494,#f7e6e4)}.close-button{right:0;margin:-9px 10px 0 0;position:absolute;cursor:pointer;font-size:16px;font-weight:700}.display-none{display:none}\n"], dependencies: [{ kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$4.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i1$4.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "component", type: i5.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: ButtonComponent, selector: "shared-button", inputs: ["icon", "iconColor", "iconSize", "rightIcon", "disabled", "loading", "active", "stopPropagation", "type", "color", "fullWidth", "size", "styleTheme", "tooltip", "tooltipPosition"], outputs: ["clickButton"] }, { kind: "directive", type:
|
|
4266
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CommonDialogComponent, deps: [{ token: i1$4.MatDialogRef }, { token: StaticDataFacade }, { token: i3.UntypedFormBuilder }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4267
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: CommonDialogComponent, selector: "app-common-dialog", ngImport: i0, template: "<div class=\"text-center position-relative p-10\"\n @appearFromRightWithDelay\n [class.modal-size-big]=\"data.size === sizeValues.big\"\n [class.modal-size-middle]=\"data.size === sizeValues.middle\"\n [class.modal-size-small]=\"data.size === sizeValues.small\"\n [class.modal-style-success]=\"data.messageType === typesValues.success\"\n [class.modal-style-error]=\"data.messageType === typesValues.error\"\n [class.modal-style-info]=\"data.messageType === typesValues.info\">\n <div [class.display-none]=\"!data.hideButton\"\n class=\"modal-close-button\"\n (click)=\"onNoClick()\">\n x\n </div>\n\n <h1 class=\"mat-dialog-title\" [class.display-none]=\"!data.title\">{{data.title}}</h1>\n <div mat-dialog-content>\n <p *ngIf=\"data.message\" [innerHTML]=\"data.message\"></p>\n <ng-container *ngIf=\"data.formConfig\">\n <form [formGroup]=\"form\">\n --shared-auto-form(formId: {{formId}}, itemId: {{data.formConfig.itemId}})--\n <!--<shared-auto-form\n class=\"mb-20\"\n [entity]=\"data.formConfig.entity\"\n [itemId]=\"data.formConfig.itemId\"\n [formId]=\"formId\"\n [fields]=\"data.formConfig.fields\"\n [form]=\"form\"\n [config]=\"{needToPublish: false}\"\n [errorMessageTexts]=\"globalErrorMessageTexts\"\n (changed)=\"changedFormValue()\"\n (formCompleted)=\"formCompleted($event)\"\n ></shared-auto-form>-->\n\n <!--<div *ngIf=\"staticSection.globalActions\" class=\"global-actions\">\n <div *ngFor=\"let action of staticSection.globalActions\"\n (click)=\"globalActionHandle(action)\" class=\"global-action\">\n {{ action.title }}\n </div>\n </div>-->\n <div @appearFromLeftWithDelay\n fxLayout=\"row\"\n fxLayoutAlign=\"center center\"\n class=\"mt-20\">\n <shared-button\n id=\"form-create-button\"\n class=\"mr-8\"\n type=\"submit\"\n icon=\"edit\"\n iconColor=\"white\"\n color=\"accent\"\n styleTheme=\"raised\"\n [disabled]=\"!form.valid || formStatus === 'loading'\"\n (click)=\"submitClick()\"\n >\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C</shared-button>\n </div>\n </form>\n </ng-container>\n </div>\n <div [class.display-none]=\"data.hideButton\" mat-dialog-actions class=\"text-align-center mt-20\">\n <button mat-button (click)=\"onNoClick()\"\n class=\"mat-raised-button mr-10\"\n cdkFocusInitial>{{data.falseButtonTitle || '\u041D\u0435\u0442' }}</button>\n <button mat-button\n *ngIf=\"!data.formConfig\"\n [class.display-none]=\"data.hideTrueButton\"\n (click)=\"onYesClick()\"\n class=\"mat-raised-button mat-warn\">{{data.trueButtonTitle || '\u0414\u0430' }}</button>\n </div>\n</div>\n", styles: [".size-big{width:800px}.size-middle{width:600px}.size-small{width:300px}.style-success,.style-error,.style-info{padding:24px}.style-success{border-left:5px solid #4caf50;background:linear-gradient(15deg,#6dcf71c9,#f0f8f0)}.style-info{border-left:5px solid #fcb202;background:linear-gradient(15deg,#fcb20287,#fcb20208)}.style-error{border-left:5px solid #f44336;background:linear-gradient(15deg,#f2686494,#f7e6e4)}.close-button{right:0;margin:-9px 10px 0 0;position:absolute;cursor:pointer;font-size:16px;font-weight:700}.display-none{display:none}\n"], dependencies: [{ kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$4.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "directive", type: i1$4.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "component", type: i5.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "component", type: ButtonComponent, selector: "shared-button", inputs: ["icon", "iconColor", "iconSize", "rightIcon", "disabled", "loading", "active", "stopPropagation", "type", "color", "fullWidth", "size", "styleTheme", "tooltip", "tooltipPosition"], outputs: ["clickButton"] }, { kind: "directive", type: i7.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: i7.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: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }], animations: [appearFromRightWithDelay, appearFromLeftWithDelay, appearOpacity], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
4573
4268
|
}
|
|
4574
4269
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: CommonDialogComponent, decorators: [{
|
|
4575
4270
|
type: Component,
|
|
4576
4271
|
args: [{ selector: 'app-common-dialog', changeDetection: ChangeDetectionStrategy.OnPush, animations: [appearFromRightWithDelay, appearFromLeftWithDelay, appearOpacity], template: "<div class=\"text-center position-relative p-10\"\n @appearFromRightWithDelay\n [class.modal-size-big]=\"data.size === sizeValues.big\"\n [class.modal-size-middle]=\"data.size === sizeValues.middle\"\n [class.modal-size-small]=\"data.size === sizeValues.small\"\n [class.modal-style-success]=\"data.messageType === typesValues.success\"\n [class.modal-style-error]=\"data.messageType === typesValues.error\"\n [class.modal-style-info]=\"data.messageType === typesValues.info\">\n <div [class.display-none]=\"!data.hideButton\"\n class=\"modal-close-button\"\n (click)=\"onNoClick()\">\n x\n </div>\n\n <h1 class=\"mat-dialog-title\" [class.display-none]=\"!data.title\">{{data.title}}</h1>\n <div mat-dialog-content>\n <p *ngIf=\"data.message\" [innerHTML]=\"data.message\"></p>\n <ng-container *ngIf=\"data.formConfig\">\n <form [formGroup]=\"form\">\n --shared-auto-form(formId: {{formId}}, itemId: {{data.formConfig.itemId}})--\n <!--<shared-auto-form\n class=\"mb-20\"\n [entity]=\"data.formConfig.entity\"\n [itemId]=\"data.formConfig.itemId\"\n [formId]=\"formId\"\n [fields]=\"data.formConfig.fields\"\n [form]=\"form\"\n [config]=\"{needToPublish: false}\"\n [errorMessageTexts]=\"globalErrorMessageTexts\"\n (changed)=\"changedFormValue()\"\n (formCompleted)=\"formCompleted($event)\"\n ></shared-auto-form>-->\n\n <!--<div *ngIf=\"staticSection.globalActions\" class=\"global-actions\">\n <div *ngFor=\"let action of staticSection.globalActions\"\n (click)=\"globalActionHandle(action)\" class=\"global-action\">\n {{ action.title }}\n </div>\n </div>-->\n <div @appearFromLeftWithDelay\n fxLayout=\"row\"\n fxLayoutAlign=\"center center\"\n class=\"mt-20\">\n <shared-button\n id=\"form-create-button\"\n class=\"mr-8\"\n type=\"submit\"\n icon=\"edit\"\n iconColor=\"white\"\n color=\"accent\"\n styleTheme=\"raised\"\n [disabled]=\"!form.valid || formStatus === 'loading'\"\n (click)=\"submitClick()\"\n >\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C</shared-button>\n </div>\n </form>\n </ng-container>\n </div>\n <div [class.display-none]=\"data.hideButton\" mat-dialog-actions class=\"text-align-center mt-20\">\n <button mat-button (click)=\"onNoClick()\"\n class=\"mat-raised-button mr-10\"\n cdkFocusInitial>{{data.falseButtonTitle || '\u041D\u0435\u0442' }}</button>\n <button mat-button\n *ngIf=\"!data.formConfig\"\n [class.display-none]=\"data.hideTrueButton\"\n (click)=\"onYesClick()\"\n class=\"mat-raised-button mat-warn\">{{data.trueButtonTitle || '\u0414\u0430' }}</button>\n </div>\n</div>\n", styles: [".size-big{width:800px}.size-middle{width:600px}.size-small{width:300px}.style-success,.style-error,.style-info{padding:24px}.style-success{border-left:5px solid #4caf50;background:linear-gradient(15deg,#6dcf71c9,#f0f8f0)}.style-info{border-left:5px solid #fcb202;background:linear-gradient(15deg,#fcb20287,#fcb20208)}.style-error{border-left:5px solid #f44336;background:linear-gradient(15deg,#f2686494,#f7e6e4)}.close-button{right:0;margin:-9px 10px 0 0;position:absolute;cursor:pointer;font-size:16px;font-weight:700}.display-none{display:none}\n"] }]
|
|
4577
|
-
}], ctorParameters: () => [{ type: i1$4.MatDialogRef }, { type: StaticDataFacade }, { type: i3.UntypedFormBuilder }, { type:
|
|
4272
|
+
}], ctorParameters: () => [{ type: i1$4.MatDialogRef }, { type: StaticDataFacade }, { type: i3.UntypedFormBuilder }, { type: undefined, decorators: [{
|
|
4578
4273
|
type: Inject,
|
|
4579
4274
|
args: [MAT_DIALOG_DATA]
|
|
4580
4275
|
}] }] });
|
|
@@ -4594,14 +4289,14 @@ const FilesSortSuccess = createAction('[Files] File Sort Success', props());
|
|
|
4594
4289
|
const FilesSortFail = createAction('[Files] File Sort Error', props());
|
|
4595
4290
|
|
|
4596
4291
|
const FILES_FEATURE_KEY = 'files';
|
|
4597
|
-
const initialState$
|
|
4292
|
+
const initialState$9 = {
|
|
4598
4293
|
list: [],
|
|
4599
4294
|
ids: [],
|
|
4600
4295
|
loaded: true,
|
|
4601
4296
|
error: '',
|
|
4602
4297
|
selected: -1
|
|
4603
4298
|
};
|
|
4604
|
-
const _filesReducer = createReducer(initialState$
|
|
4299
|
+
const _filesReducer = createReducer(initialState$9, on(FilesLoadSuccess, (state, action) => {
|
|
4605
4300
|
const files = action.payload.files;
|
|
4606
4301
|
return {
|
|
4607
4302
|
...ReducerService.upsertMeny(state, files),
|
|
@@ -4961,11 +4656,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
4961
4656
|
const UiUnitsSet = createAction('[UiUnits] UiUnitsSet', props());
|
|
4962
4657
|
|
|
4963
4658
|
const UIUNITS_FEATURE_KEY = 'uiUnits';
|
|
4964
|
-
const initialState$
|
|
4659
|
+
const initialState$8 = {
|
|
4965
4660
|
list: [],
|
|
4966
4661
|
ids: []
|
|
4967
4662
|
};
|
|
4968
|
-
const _uiUnitsReducer = createReducer(initialState$
|
|
4663
|
+
const _uiUnitsReducer = createReducer(initialState$8, on(UiUnitsSet, (state, action) => {
|
|
4969
4664
|
return {
|
|
4970
4665
|
...ReducerService.upsertOne(state, {
|
|
4971
4666
|
data: action.payload.data,
|
|
@@ -5391,14 +5086,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
5391
5086
|
}] }] });
|
|
5392
5087
|
|
|
5393
5088
|
const TAGS_FEATURE_KEY = 'tags';
|
|
5394
|
-
const initialState$
|
|
5089
|
+
const initialState$7 = {
|
|
5395
5090
|
list: [],
|
|
5396
5091
|
entities: [],
|
|
5397
5092
|
ids: [],
|
|
5398
5093
|
selected: null,
|
|
5399
5094
|
loaded: false
|
|
5400
5095
|
};
|
|
5401
|
-
const _tagsReducer = createReducer(initialState$
|
|
5096
|
+
const _tagsReducer = createReducer(initialState$7, on(TagsLoadSuccess, (state, action) => {
|
|
5402
5097
|
const { tags } = action.payload;
|
|
5403
5098
|
const newState = {
|
|
5404
5099
|
...ReducerService.upsertMeny(state, tags)
|
|
@@ -5495,10 +5190,10 @@ const UpdateMetaDataSuccess = createAction('[MetaData] Update MetaData Success')
|
|
|
5495
5190
|
const UpdateMetaDataFail = createAction('[MetaData] Update MetaData Error');
|
|
5496
5191
|
|
|
5497
5192
|
const MAIN_FEATURE_KEY = 'main';
|
|
5498
|
-
const initialState$
|
|
5193
|
+
const initialState$6 = {
|
|
5499
5194
|
metaData: {}
|
|
5500
5195
|
};
|
|
5501
|
-
const _mainReducer = createReducer(initialState$
|
|
5196
|
+
const _mainReducer = createReducer(initialState$6, on(UpdateMetaData, (state, action) => {
|
|
5502
5197
|
const metaData = action.payload;
|
|
5503
5198
|
return {
|
|
5504
5199
|
...state,
|
|
@@ -5532,6 +5227,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
5532
5227
|
args: [{ providedIn: "root" }]
|
|
5533
5228
|
}], ctorParameters: () => [{ type: i1.Store }] });
|
|
5534
5229
|
|
|
5230
|
+
const CheckValidation = createAction('[FormValidation] Check Validation', props());
|
|
5231
|
+
const CheckValidationSuccess = createAction('[FormValidation] Check Validation Success', props());
|
|
5232
|
+
const CheckValidationFail = createAction('[FormValidation] Check Validation Error', props());
|
|
5233
|
+
|
|
5535
5234
|
class FormValidationCheckBehavior extends Behavior {
|
|
5536
5235
|
constructor(action, result) {
|
|
5537
5236
|
super(action);
|
|
@@ -5650,6 +5349,67 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
5650
5349
|
type: Injectable
|
|
5651
5350
|
}], ctorParameters: () => [{ type: i1$2.Actions }, { type: i1.Store }, { type: FormValidationService }, { type: AuthenticationService }] });
|
|
5652
5351
|
|
|
5352
|
+
const FORM_VALIDATION_FEATURE_KEY = 'formValidation';
|
|
5353
|
+
const initialState$5 = {
|
|
5354
|
+
list: [],
|
|
5355
|
+
ids: []
|
|
5356
|
+
};
|
|
5357
|
+
const _formValidationReducer = createReducer(initialState$5, on(CheckValidation, (state, action) => {
|
|
5358
|
+
const { type, value, itemId } = action.payload;
|
|
5359
|
+
const id = `${type}${value}`;
|
|
5360
|
+
return {
|
|
5361
|
+
...ReducerService.upsertOne(state, {
|
|
5362
|
+
id,
|
|
5363
|
+
type,
|
|
5364
|
+
value,
|
|
5365
|
+
itemId,
|
|
5366
|
+
loaded: false
|
|
5367
|
+
})
|
|
5368
|
+
};
|
|
5369
|
+
}), on(CheckValidationSuccess, (state, action) => {
|
|
5370
|
+
const { type, value, isValid, itemId } = action.payload;
|
|
5371
|
+
const id = `${type}${value}`;
|
|
5372
|
+
return {
|
|
5373
|
+
...ReducerService.upsertOne(state, {
|
|
5374
|
+
id,
|
|
5375
|
+
type,
|
|
5376
|
+
value,
|
|
5377
|
+
isValid,
|
|
5378
|
+
itemId,
|
|
5379
|
+
loaded: true
|
|
5380
|
+
})
|
|
5381
|
+
};
|
|
5382
|
+
}));
|
|
5383
|
+
function formValidationReducer(state, action) {
|
|
5384
|
+
return _formValidationReducer(state, action);
|
|
5385
|
+
}
|
|
5386
|
+
|
|
5387
|
+
const getFormValidationState = createFeatureSelector(FORM_VALIDATION_FEATURE_KEY);
|
|
5388
|
+
const getFormValidation = (type, value) => createSelector(getFormValidationState, (state) => {
|
|
5389
|
+
return state.list.find(item => item.type === type && item.value === value);
|
|
5390
|
+
});
|
|
5391
|
+
const formValidationQuery = {
|
|
5392
|
+
getFormValidation
|
|
5393
|
+
};
|
|
5394
|
+
|
|
5395
|
+
class FormValidationFacade {
|
|
5396
|
+
constructor(store) {
|
|
5397
|
+
this.store = store;
|
|
5398
|
+
}
|
|
5399
|
+
sendValidation(type, value, itemId, options) {
|
|
5400
|
+
this.store.dispatch(CheckValidation({ payload: { type, value, itemId, options } }));
|
|
5401
|
+
}
|
|
5402
|
+
getValidation(type, value) {
|
|
5403
|
+
return this.store.pipe(select(formValidationQuery.getFormValidation(type, value)));
|
|
5404
|
+
}
|
|
5405
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormValidationFacade, deps: [{ token: i1.Store }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5406
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormValidationFacade, providedIn: "root" }); }
|
|
5407
|
+
}
|
|
5408
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormValidationFacade, decorators: [{
|
|
5409
|
+
type: Injectable,
|
|
5410
|
+
args: [{ providedIn: "root" }]
|
|
5411
|
+
}], ctorParameters: () => [{ type: i1.Store }] });
|
|
5412
|
+
|
|
5653
5413
|
class FormErrorsEffects {
|
|
5654
5414
|
/* @Effect()
|
|
5655
5415
|
checkValidation$ = this.effect(FormErrorsActionTypes.CheckValidation, {
|
|
@@ -6471,81 +6231,347 @@ class StaticDataGetListCategoriesBehavior extends Behavior {
|
|
|
6471
6231
|
})
|
|
6472
6232
|
];
|
|
6473
6233
|
}
|
|
6474
|
-
break;
|
|
6234
|
+
break;
|
|
6235
|
+
}
|
|
6236
|
+
}
|
|
6237
|
+
return [...returnedActions];
|
|
6238
|
+
}
|
|
6239
|
+
}
|
|
6240
|
+
|
|
6241
|
+
class StaticDataPatchUpdateBehavior extends Behavior {
|
|
6242
|
+
constructor(action, result) {
|
|
6243
|
+
super(action);
|
|
6244
|
+
this.action = action;
|
|
6245
|
+
this.result = result;
|
|
6246
|
+
}
|
|
6247
|
+
resolve() {
|
|
6248
|
+
const status = this.result.data?.status;
|
|
6249
|
+
let returnedActions;
|
|
6250
|
+
const error = this.result.data.body?.error;
|
|
6251
|
+
switch (status) {
|
|
6252
|
+
case ResponseStatus.STATUS_200:
|
|
6253
|
+
case ResponseStatus.STATUS_201: {
|
|
6254
|
+
const response = this.result.data;
|
|
6255
|
+
const { data, meta } = response.body;
|
|
6256
|
+
returnedActions = [
|
|
6257
|
+
StaticDataPatchUpdateSuccess({ payload: { data, contentType: meta?.staticDataType, itemId: data.id } })
|
|
6258
|
+
];
|
|
6259
|
+
break;
|
|
6260
|
+
}
|
|
6261
|
+
default: {
|
|
6262
|
+
returnedActions = [
|
|
6263
|
+
StaticDataPatchUpdateFail({
|
|
6264
|
+
payload: {
|
|
6265
|
+
error,
|
|
6266
|
+
contentType: error?.payload?.contentType,
|
|
6267
|
+
itemId: error?.payload?.itemId
|
|
6268
|
+
}
|
|
6269
|
+
})
|
|
6270
|
+
];
|
|
6271
|
+
}
|
|
6272
|
+
}
|
|
6273
|
+
return [...returnedActions];
|
|
6274
|
+
}
|
|
6275
|
+
}
|
|
6276
|
+
|
|
6277
|
+
class StaticDataBulkUpdateOrCreateBehavior extends Behavior {
|
|
6278
|
+
constructor(action, result) {
|
|
6279
|
+
super(action);
|
|
6280
|
+
this.action = action;
|
|
6281
|
+
this.result = result;
|
|
6282
|
+
}
|
|
6283
|
+
resolve() {
|
|
6284
|
+
const status = this.result.data.status;
|
|
6285
|
+
const error = this.result.data?.body?.error;
|
|
6286
|
+
let returnedActions;
|
|
6287
|
+
const response = this.result.data;
|
|
6288
|
+
switch (status) {
|
|
6289
|
+
case ResponseStatus.STATUS_200: {
|
|
6290
|
+
const { data, meta } = response.body;
|
|
6291
|
+
returnedActions = [
|
|
6292
|
+
StaticDataBulkUpdateOrCreateSuccess({
|
|
6293
|
+
payload: {
|
|
6294
|
+
items: data,
|
|
6295
|
+
contentType: meta.staticDataType,
|
|
6296
|
+
bulkFilter: meta.bulkFilter
|
|
6297
|
+
}
|
|
6298
|
+
}),
|
|
6299
|
+
];
|
|
6300
|
+
break;
|
|
6301
|
+
}
|
|
6302
|
+
default: {
|
|
6303
|
+
returnedActions = [];
|
|
6304
|
+
}
|
|
6305
|
+
}
|
|
6306
|
+
return [...returnedActions];
|
|
6307
|
+
}
|
|
6308
|
+
}
|
|
6309
|
+
|
|
6310
|
+
var IFormFieldFormat;
|
|
6311
|
+
(function (IFormFieldFormat) {
|
|
6312
|
+
IFormFieldFormat["Date"] = "date";
|
|
6313
|
+
IFormFieldFormat["DateTime"] = "dateTime";
|
|
6314
|
+
IFormFieldFormat["Email"] = "email";
|
|
6315
|
+
IFormFieldFormat["Phone"] = "phone";
|
|
6316
|
+
IFormFieldFormat["Number"] = "number";
|
|
6317
|
+
IFormFieldFormat["Password"] = "password";
|
|
6318
|
+
IFormFieldFormat["Json"] = "json";
|
|
6319
|
+
})(IFormFieldFormat || (IFormFieldFormat = {}));
|
|
6320
|
+
|
|
6321
|
+
class BaseAutoFormService {
|
|
6322
|
+
getPreparedFields(fields, formData) {
|
|
6323
|
+
const result = {};
|
|
6324
|
+
fields.forEach((item) => {
|
|
6325
|
+
let validators = [];
|
|
6326
|
+
let asyncValidators = [];
|
|
6327
|
+
let needToShow = true;
|
|
6328
|
+
if (item.validators?.length) {
|
|
6329
|
+
let fieldValidators = [...item.validators];
|
|
6330
|
+
// Checkin the showIf conductions
|
|
6331
|
+
//
|
|
6332
|
+
if (item.options?.showIf) {
|
|
6333
|
+
const relatedField = item.options.showIf.relatedField;
|
|
6334
|
+
const relatedFieldValue = formData?.[relatedField];
|
|
6335
|
+
if (relatedFieldValue) {
|
|
6336
|
+
needToShow = this.checkShowIfConditions(relatedFieldValue, item.options.showIf.conditions);
|
|
6337
|
+
}
|
|
6338
|
+
else {
|
|
6339
|
+
needToShow = false;
|
|
6340
|
+
}
|
|
6341
|
+
}
|
|
6342
|
+
// If is it an init form and we don't have form data jet,
|
|
6343
|
+
// need to add this field in the FormGroup as optional
|
|
6344
|
+
if (!needToShow) {
|
|
6345
|
+
fieldValidators = fieldValidators.filter(validatorItem => validatorItem !== ValidatorsType.Required);
|
|
6346
|
+
}
|
|
6347
|
+
validators = this.getValidators(fieldValidators, item.options);
|
|
6348
|
+
}
|
|
6349
|
+
if (item.options?.format) {
|
|
6350
|
+
const validator = this.getValidatorByFormat(item.options.format);
|
|
6351
|
+
if (validator) {
|
|
6352
|
+
validators.push(validator);
|
|
6353
|
+
}
|
|
6354
|
+
}
|
|
6355
|
+
if (item.asyncValidators && item.asyncValidators.length) {
|
|
6356
|
+
asyncValidators = this.getAsyncValidators(item.asyncValidators, item.options);
|
|
6357
|
+
}
|
|
6358
|
+
// Calculate showing the field
|
|
6359
|
+
/*
|
|
6360
|
+
"showIf"; {
|
|
6361
|
+
"relatedField": "statusId",
|
|
6362
|
+
"conditions": [
|
|
6363
|
+
{
|
|
6364
|
+
"type": "in",
|
|
6365
|
+
"value": [1, 2]
|
|
6366
|
+
}
|
|
6367
|
+
]
|
|
6368
|
+
}
|
|
6369
|
+
*/
|
|
6370
|
+
result[item.field] = [null, validators, asyncValidators];
|
|
6371
|
+
});
|
|
6372
|
+
return result;
|
|
6373
|
+
}
|
|
6374
|
+
checkShowIfConditions(relatedFieldValue, conditions) {
|
|
6375
|
+
let result = true;
|
|
6376
|
+
conditions.forEach(item => {
|
|
6377
|
+
if (result) {
|
|
6378
|
+
switch (item.type) {
|
|
6379
|
+
case 'equals':
|
|
6380
|
+
result = this.checkShowIfConditionsEquals(relatedFieldValue, item.value);
|
|
6381
|
+
break;
|
|
6382
|
+
case 'in':
|
|
6383
|
+
result = this.checkShowIfConditionsIn(relatedFieldValue, item.value);
|
|
6384
|
+
break;
|
|
6385
|
+
}
|
|
6475
6386
|
}
|
|
6387
|
+
});
|
|
6388
|
+
return result;
|
|
6389
|
+
}
|
|
6390
|
+
checkShowIfConditionsEquals(relatedFieldValue, conditionValue) {
|
|
6391
|
+
return relatedFieldValue === conditionValue;
|
|
6392
|
+
}
|
|
6393
|
+
checkShowIfConditionsIn(relatedFieldValue, conditionValues) {
|
|
6394
|
+
return conditionValues.includes(relatedFieldValue);
|
|
6395
|
+
}
|
|
6396
|
+
getValidators(validators, options) {
|
|
6397
|
+
return [];
|
|
6398
|
+
}
|
|
6399
|
+
getAsyncValidators(validators, options) {
|
|
6400
|
+
return [];
|
|
6401
|
+
}
|
|
6402
|
+
getValidatorByFormat(format) {
|
|
6403
|
+
let validator;
|
|
6404
|
+
if (format === IFormFieldFormat.Email) {
|
|
6405
|
+
validator = Validators.email;
|
|
6476
6406
|
}
|
|
6477
|
-
|
|
6407
|
+
if (format === IFormFieldFormat.Phone) {
|
|
6408
|
+
validator = Validators.pattern(/[\+0-9]/);
|
|
6409
|
+
}
|
|
6410
|
+
if (format === IFormFieldFormat.Number) {
|
|
6411
|
+
validator = Validators.pattern(/[0-9]$/);
|
|
6412
|
+
}
|
|
6413
|
+
if (format === IFormFieldFormat.Date) {
|
|
6414
|
+
validator = Validators.pattern(/[0-9\-]/);
|
|
6415
|
+
}
|
|
6416
|
+
return validator;
|
|
6417
|
+
}
|
|
6418
|
+
prepareFieldError(error, fieldsValue) {
|
|
6419
|
+
let newText = error;
|
|
6420
|
+
Object.keys(fieldsValue).forEach(key => {
|
|
6421
|
+
const value = fieldsValue[key];
|
|
6422
|
+
newText = newText.replace(`:${key}`, value);
|
|
6423
|
+
});
|
|
6424
|
+
return newText;
|
|
6478
6425
|
}
|
|
6426
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: BaseAutoFormService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6427
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: BaseAutoFormService, providedIn: 'root' }); }
|
|
6479
6428
|
}
|
|
6429
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: BaseAutoFormService, decorators: [{
|
|
6430
|
+
type: Injectable,
|
|
6431
|
+
args: [{ providedIn: 'root' }]
|
|
6432
|
+
}] });
|
|
6480
6433
|
|
|
6481
|
-
class
|
|
6482
|
-
constructor(
|
|
6483
|
-
super(
|
|
6484
|
-
this.
|
|
6485
|
-
this.
|
|
6434
|
+
class AutoFormService extends BaseAutoFormService {
|
|
6435
|
+
constructor(formValidationFacade, notificationsFacade) {
|
|
6436
|
+
super();
|
|
6437
|
+
this.formValidationFacade = formValidationFacade;
|
|
6438
|
+
this.notificationsFacade = notificationsFacade;
|
|
6439
|
+
this.validatorsData = {};
|
|
6486
6440
|
}
|
|
6487
|
-
|
|
6488
|
-
const
|
|
6489
|
-
|
|
6490
|
-
|
|
6491
|
-
|
|
6492
|
-
|
|
6493
|
-
|
|
6494
|
-
const response = this.result.data;
|
|
6495
|
-
const { data, meta } = response.body;
|
|
6496
|
-
returnedActions = [
|
|
6497
|
-
StaticDataPatchUpdateSuccess({ payload: { data, contentType: meta?.staticDataType, itemId: data.id } })
|
|
6498
|
-
];
|
|
6499
|
-
break;
|
|
6441
|
+
getAsyncValidators(validators, options) {
|
|
6442
|
+
const resultValidators = [];
|
|
6443
|
+
validators.forEach(validator => {
|
|
6444
|
+
switch (validator) {
|
|
6445
|
+
case AsyncValidators.ItemUniqValue:
|
|
6446
|
+
resultValidators.push(this.itemUniqValueValidator.bind(this, { ...options }));
|
|
6447
|
+
break;
|
|
6500
6448
|
}
|
|
6501
|
-
|
|
6502
|
-
|
|
6503
|
-
|
|
6504
|
-
|
|
6505
|
-
|
|
6506
|
-
|
|
6507
|
-
|
|
6508
|
-
|
|
6509
|
-
|
|
6510
|
-
|
|
6449
|
+
});
|
|
6450
|
+
return resultValidators;
|
|
6451
|
+
}
|
|
6452
|
+
getValidators(validators, options) {
|
|
6453
|
+
const resultValidators = [];
|
|
6454
|
+
validators.forEach(validator => {
|
|
6455
|
+
switch (validator) {
|
|
6456
|
+
case ValidatorsType.Required:
|
|
6457
|
+
resultValidators.push(Validators.required.bind(this));
|
|
6458
|
+
break;
|
|
6459
|
+
case ValidatorsType.RequiredTrue:
|
|
6460
|
+
resultValidators.push(Validators.requiredTrue.bind(this));
|
|
6461
|
+
break;
|
|
6462
|
+
case ValidatorsType.MinLength:
|
|
6463
|
+
const length = options.validations[ValidatorsType.MinLength].length;
|
|
6464
|
+
resultValidators.push(Validators.minLength(length));
|
|
6465
|
+
break;
|
|
6466
|
+
case ValidatorsType.Pattern:
|
|
6467
|
+
const pattern = options.validations[ValidatorsType.Pattern].pattern;
|
|
6468
|
+
resultValidators.push(Validators.pattern(pattern));
|
|
6469
|
+
break;
|
|
6470
|
+
case ValidatorsType.Custom:
|
|
6471
|
+
const validationFunction = options.validations[ValidatorsType.Custom].validationFunction;
|
|
6472
|
+
resultValidators.push(validationFunction);
|
|
6473
|
+
break;
|
|
6511
6474
|
}
|
|
6512
|
-
}
|
|
6513
|
-
return
|
|
6475
|
+
});
|
|
6476
|
+
return resultValidators;
|
|
6514
6477
|
}
|
|
6515
|
-
|
|
6516
|
-
|
|
6517
|
-
|
|
6518
|
-
|
|
6519
|
-
|
|
6520
|
-
|
|
6521
|
-
|
|
6478
|
+
itemUniqValueValidator(controlIn, optionsIn) {
|
|
6479
|
+
const control = arguments[1];
|
|
6480
|
+
const options = arguments[0]?.validations.uniq;
|
|
6481
|
+
const value = control.value;
|
|
6482
|
+
const form = control.parent;
|
|
6483
|
+
let itemId;
|
|
6484
|
+
if (form && form.get('id')) {
|
|
6485
|
+
itemId = +form.get('id').value;
|
|
6486
|
+
}
|
|
6487
|
+
const type = options.type;
|
|
6488
|
+
// If the value for this type is checked before not need to do this checking again
|
|
6489
|
+
if (this.validatorsData[type] && this.validatorsData[type].value === value && this.validatorsData[type].valid) {
|
|
6490
|
+
return Promise.resolve();
|
|
6491
|
+
}
|
|
6492
|
+
this.validatorsData[type] = { value: value, valid: false };
|
|
6493
|
+
return new Promise(resolve => {
|
|
6494
|
+
if (value && value.length < 3) {
|
|
6495
|
+
resolve({ [options.errorKey]: true });
|
|
6496
|
+
return;
|
|
6497
|
+
}
|
|
6498
|
+
if (value && !control.pristine) {
|
|
6499
|
+
let validatorOption;
|
|
6500
|
+
if (options.entity && options.entityField) {
|
|
6501
|
+
validatorOption = {
|
|
6502
|
+
entity: options.entity,
|
|
6503
|
+
entityField: options.entityField,
|
|
6504
|
+
};
|
|
6505
|
+
}
|
|
6506
|
+
this.formValidationFacade.sendValidation(type, value, itemId, validatorOption);
|
|
6507
|
+
this.formValidationFacade.getValidation(type, value)
|
|
6508
|
+
.pipe(take(2), filter$1((validationData) => validationData.loaded))
|
|
6509
|
+
.subscribe((validationData) => {
|
|
6510
|
+
if (validationData && !validationData.isValid) {
|
|
6511
|
+
this.notificationsFacade.addNotifications({
|
|
6512
|
+
id: `${options.errorKey}${value}`,
|
|
6513
|
+
type: 'error',
|
|
6514
|
+
text: options.errorText,
|
|
6515
|
+
timeout: NOTIFICATION_LONG_TIMEOUT
|
|
6516
|
+
});
|
|
6517
|
+
resolve({ [options.errorKey]: true });
|
|
6518
|
+
}
|
|
6519
|
+
else {
|
|
6520
|
+
this.validatorsData[type] = { value: value, valid: true };
|
|
6521
|
+
resolve();
|
|
6522
|
+
}
|
|
6523
|
+
});
|
|
6524
|
+
}
|
|
6525
|
+
else {
|
|
6526
|
+
control.status = 'VALID';
|
|
6527
|
+
resolve();
|
|
6528
|
+
}
|
|
6529
|
+
});
|
|
6522
6530
|
}
|
|
6523
|
-
|
|
6524
|
-
|
|
6525
|
-
|
|
6526
|
-
|
|
6527
|
-
|
|
6528
|
-
|
|
6529
|
-
|
|
6530
|
-
|
|
6531
|
-
|
|
6532
|
-
|
|
6533
|
-
|
|
6534
|
-
items: data,
|
|
6535
|
-
contentType: meta.staticDataType,
|
|
6536
|
-
bulkFilter: meta.bulkFilter
|
|
6537
|
-
}
|
|
6538
|
-
}),
|
|
6539
|
-
];
|
|
6540
|
-
break;
|
|
6531
|
+
prepareFormFieldPublicationMessage(messages, publishErrorConstants, fields) {
|
|
6532
|
+
return messages.map(item => {
|
|
6533
|
+
const { field, message } = item;
|
|
6534
|
+
const foundField = fields?.find(fieldItem => fieldItem.field === field);
|
|
6535
|
+
let params = {
|
|
6536
|
+
'field': foundField?.title || field
|
|
6537
|
+
};
|
|
6538
|
+
const messageParam = message.split('-');
|
|
6539
|
+
const messageKey = messageParam[0];
|
|
6540
|
+
if (messageParam.length > 1) {
|
|
6541
|
+
params['countDownloadedFiles'] = messageParam[1];
|
|
6541
6542
|
}
|
|
6542
|
-
|
|
6543
|
-
|
|
6543
|
+
if (publishErrorConstants[messageKey]) {
|
|
6544
|
+
const { title, description } = publishErrorConstants[messageKey];
|
|
6545
|
+
return {
|
|
6546
|
+
title: this.prepareText(title, params),
|
|
6547
|
+
description: this.prepareText(description, params),
|
|
6548
|
+
field: foundField?.field || field
|
|
6549
|
+
};
|
|
6544
6550
|
}
|
|
6545
|
-
|
|
6546
|
-
|
|
6551
|
+
return {
|
|
6552
|
+
title: field,
|
|
6553
|
+
description: message
|
|
6554
|
+
};
|
|
6555
|
+
});
|
|
6556
|
+
}
|
|
6557
|
+
prepareText(text, params) {
|
|
6558
|
+
let newText = text;
|
|
6559
|
+
Object.keys(params)
|
|
6560
|
+
.forEach(key => {
|
|
6561
|
+
newText = this.replaceAll(newText, '{' + key + '}', params[key]);
|
|
6562
|
+
});
|
|
6563
|
+
return newText;
|
|
6547
6564
|
}
|
|
6565
|
+
replaceAll(str, a, b) {
|
|
6566
|
+
return str.replace(new RegExp(a, 'g'), b);
|
|
6567
|
+
}
|
|
6568
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AutoFormService, deps: [{ token: FormValidationFacade }, { token: NotificationsFacade }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6569
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AutoFormService, providedIn: "root" }); }
|
|
6548
6570
|
}
|
|
6571
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AutoFormService, decorators: [{
|
|
6572
|
+
type: Injectable,
|
|
6573
|
+
args: [{ providedIn: "root" }]
|
|
6574
|
+
}], ctorParameters: () => [{ type: FormValidationFacade }, { type: NotificationsFacade }] });
|
|
6549
6575
|
|
|
6550
6576
|
class CacheDataApi extends BaseAPI {
|
|
6551
6577
|
constructor(domain) {
|
|
@@ -8388,7 +8414,7 @@ class FormFieldSelectComponent {
|
|
|
8388
8414
|
});
|
|
8389
8415
|
}
|
|
8390
8416
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormFieldSelectComponent, deps: [{ token: i1.Store }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8391
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: FormFieldSelectComponent, selector: "shared-form-field-select", inputs: { config: "config", fieldData: "fieldData", form: "form", autoCompleteFields: "autoCompleteFields" }, usesOnChanges: true, ngImport: i0, template: "<div [formGroup]=\"form\" [ngClass]=\"{'small-form-width-form-field': config?.smallFormWidth}\">\n <mat-form-field appearance=\"outline\"\n class=\"width100\">\n <mat-label>{{ fieldData.title }}</mat-label>\n <mat-select [required]=\"fieldData.validators?.includes('required')\"\n [multiple]=\"fieldData.options?.multiple\"\n [formControlName]=\"fieldData.field\">\n <mat-option *ngIf=\"fieldData.options?.innerSearch\">\n <ngx-mat-select-search\n placeholderLabel=\"\u041F\u043E\u0438\u0441\u043A...\"\n [formControl]=\"searchCtrl\"></ngx-mat-select-search>\n </mat-option>\n <mat-option *ngIf=\"!fieldData.validators?.includes('required')\" value=\"0\">\n -----\n </mat-option>\n @if (options.length) {\n @if (options.length) {\n <mat-option *ngFor=\"let item of options\" [value]=\"item.id\">\n {{ item.name || item['title'] }}\n </mat-option>\n }\n <ng-container *ngIf=\"!options.length\">\n <mat-option>\n \u0421\u043F\u0438\u0441\u043E\u043A \u043F\u0443\u0441\u0442\n </mat-option>\n </ng-container>\n }\n <ng-container *ngIf=\"!options.length\">\n <mat-option>\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430....</mat-option>\n </ng-container>\n </mat-select>\n <ng-container *ngIf=\"!options.length && placeholder\">\n <div @appearOpacity class=\"form-select-placeholder\">{{ placeholder }}</div>\n </ng-container>\n </mat-form-field>\n</div>\n<shared-form-field-spinner *ngIf=\"!options.length\"></shared-form-field-spinner>\n", styles: [".form-select-placeholder{position:absolute;margin-left:81px;margin-top:-3px;opacity:.8}\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: "component", type: i2$4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2$4.MatLabel, selector: "mat-label" }, { kind: "component", type: i4.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: i5$1.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i7.MatSelectSearchComponent, selector: "ngx-mat-select-search", inputs: ["placeholderLabel", "type", "closeIcon", "closeSvgIcon", "noEntriesFoundLabel", "clearSearchInput", "searching", "disableInitialFocus", "enableClearOnEscapePressed", "preventHomeEndKeyPropagation", "disableScrollToActiveOnOptionsChanged", "ariaLabel", "showToggleAllCheckbox", "toggleAllCheckboxChecked", "toggleAllCheckboxIndeterminate", "toggleAllCheckboxTooltipMessage", "toggleAllCheckboxTooltipPosition", "hideClearSearchButton", "alwaysRestoreSelectedOptionsMulti", "recreateValuesArray"], outputs: ["toggleAll"] }, { kind: "component", type: FormFieldSpinnerComponent, selector: "shared-form-field-spinner" }], animations: [appearOpacity], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
8417
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: FormFieldSelectComponent, selector: "shared-form-field-select", inputs: { config: "config", fieldData: "fieldData", form: "form", autoCompleteFields: "autoCompleteFields" }, usesOnChanges: true, ngImport: i0, template: "<div [formGroup]=\"form\" [ngClass]=\"{'small-form-width-form-field': config?.smallFormWidth}\">\n <mat-form-field appearance=\"outline\"\n class=\"width100\">\n <mat-label>{{ fieldData.title }}</mat-label>\n <mat-select [required]=\"fieldData.validators?.includes('required')\"\n [multiple]=\"fieldData.options?.multiple\"\n [formControlName]=\"fieldData.field\">\n <mat-option *ngIf=\"fieldData.options?.innerSearch\">\n <ngx-mat-select-search\n placeholderLabel=\"\u041F\u043E\u0438\u0441\u043A...\"\n [formControl]=\"searchCtrl\"></ngx-mat-select-search>\n </mat-option>\n <mat-option *ngIf=\"!fieldData.validators?.includes('required')\" value=\"0\">\n -----\n </mat-option>\n @if (options.length) {\n @if (options.length) {\n <mat-option *ngFor=\"let item of options\" [value]=\"item.id\">\n {{ item.name || item['title'] }}\n </mat-option>\n }\n <ng-container *ngIf=\"!options.length\">\n <mat-option>\n \u0421\u043F\u0438\u0441\u043E\u043A \u043F\u0443\u0441\u0442\n </mat-option>\n </ng-container>\n }\n <ng-container *ngIf=\"!options.length\">\n <mat-option>\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430....</mat-option>\n </ng-container>\n </mat-select>\n <ng-container *ngIf=\"!options.length && placeholder\">\n <div @appearOpacity class=\"form-select-placeholder\">{{ placeholder }}</div>\n </ng-container>\n </mat-form-field>\n</div>\n<shared-form-field-spinner *ngIf=\"!options.length\"></shared-form-field-spinner>\n", styles: [".form-select-placeholder{position:absolute;margin-left:81px;margin-top:-3px;opacity:.8}\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: "component", type: i2$4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2$4.MatLabel, selector: "mat-label" }, { kind: "component", type: i4.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: i5$1.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i7$1.MatSelectSearchComponent, selector: "ngx-mat-select-search", inputs: ["placeholderLabel", "type", "closeIcon", "closeSvgIcon", "noEntriesFoundLabel", "clearSearchInput", "searching", "disableInitialFocus", "enableClearOnEscapePressed", "preventHomeEndKeyPropagation", "disableScrollToActiveOnOptionsChanged", "ariaLabel", "showToggleAllCheckbox", "toggleAllCheckboxChecked", "toggleAllCheckboxIndeterminate", "toggleAllCheckboxTooltipMessage", "toggleAllCheckboxTooltipPosition", "hideClearSearchButton", "alwaysRestoreSelectedOptionsMulti", "recreateValuesArray"], outputs: ["toggleAll"] }, { kind: "component", type: FormFieldSpinnerComponent, selector: "shared-form-field-spinner" }], animations: [appearOpacity], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
8392
8418
|
}
|
|
8393
8419
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormFieldSelectComponent, decorators: [{
|
|
8394
8420
|
type: Component,
|
|
@@ -8620,6 +8646,7 @@ class FormFieldSelectShowComponent {
|
|
|
8620
8646
|
this.coreFacade = coreFacade;
|
|
8621
8647
|
this.cd = cd;
|
|
8622
8648
|
this.listItems = [];
|
|
8649
|
+
this.loading = true;
|
|
8623
8650
|
}
|
|
8624
8651
|
ngOnInit() {
|
|
8625
8652
|
}
|
|
@@ -8630,11 +8657,12 @@ class FormFieldSelectShowComponent {
|
|
|
8630
8657
|
let values = !Array.isArray(this.value) ? [this.value] : this.value;
|
|
8631
8658
|
const loadOptionFromStore = this.fieldData.options?.loadOptionFromStore;
|
|
8632
8659
|
if (!this.listItems.length) {
|
|
8633
|
-
this.
|
|
8660
|
+
this.getItemsFromStore(loadOptionFromStore, values);
|
|
8634
8661
|
}
|
|
8635
8662
|
}
|
|
8636
8663
|
}
|
|
8637
|
-
|
|
8664
|
+
getItemsFromStore(keyFromStore, ids) {
|
|
8665
|
+
console.log('[wt-front-shared][getItemsFromStore]', keyFromStore, ids);
|
|
8638
8666
|
this.coreFacade.getStoreByName(keyFromStore)
|
|
8639
8667
|
.pipe(untilComponentDestroyed(this))
|
|
8640
8668
|
.subscribe(items => {
|
|
@@ -8642,6 +8670,10 @@ class FormFieldSelectShowComponent {
|
|
|
8642
8670
|
this.listItems = items.list
|
|
8643
8671
|
.filter(item => ids.includes(item.id) || ids.includes(String(item.id)))
|
|
8644
8672
|
.map(item => item.name);
|
|
8673
|
+
if (ids.length && !this.listItems?.length) {
|
|
8674
|
+
this.listItems = ([...ids]);
|
|
8675
|
+
}
|
|
8676
|
+
this.loading = false;
|
|
8645
8677
|
this.cd.markForCheck();
|
|
8646
8678
|
}
|
|
8647
8679
|
});
|
|
@@ -8650,11 +8682,11 @@ class FormFieldSelectShowComponent {
|
|
|
8650
8682
|
return item?.id || undefined;
|
|
8651
8683
|
}
|
|
8652
8684
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormFieldSelectShowComponent, deps: [{ token: CoreFacade }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8653
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: FormFieldSelectShowComponent, selector: "shared-form-field-select-show", inputs: { config: "config", fieldData: "fieldData", value: "value" }, usesOnChanges: true, ngImport: i0, template: "<div [ngClass]=\"{'small-form-width-form-field': config?.smallFormWidth}\">\n <label class=\"show-label\">{{ fieldData.title }}</label>\n <div class=\"form-field-value\">\n <span *ngFor=\"let value of listItems;trackBy: trackById\">{{ value }}</span>\n </div>\n</div>\n<shared-form-field-spinner *ngIf=\"
|
|
8685
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: FormFieldSelectShowComponent, selector: "shared-form-field-select-show", inputs: { config: "config", fieldData: "fieldData", value: "value" }, usesOnChanges: true, ngImport: i0, template: "<div [ngClass]=\"{'small-form-width-form-field': config?.smallFormWidth}\">\n <label class=\"show-label\">{{ fieldData.title }}</label>\n <div class=\"form-field-value\">\n <span *ngFor=\"let value of listItems;trackBy: trackById\">{{ value }}</span>\n </div>\n</div>\n<shared-form-field-spinner *ngIf=\"loading\"></shared-form-field-spinner>\n", styles: [".form-field-value{display:flex;flex-direction:column}.small-form-width-form-field .show-label{margin-bottom:0}\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: "component", type: FormFieldSpinnerComponent, selector: "shared-form-field-spinner" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
8654
8686
|
}
|
|
8655
8687
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormFieldSelectShowComponent, decorators: [{
|
|
8656
8688
|
type: Component,
|
|
8657
|
-
args: [{ selector: 'shared-form-field-select-show', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [ngClass]=\"{'small-form-width-form-field': config?.smallFormWidth}\">\n <label class=\"show-label\">{{ fieldData.title }}</label>\n <div class=\"form-field-value\">\n <span *ngFor=\"let value of listItems;trackBy: trackById\">{{ value }}</span>\n </div>\n</div>\n<shared-form-field-spinner *ngIf=\"
|
|
8689
|
+
args: [{ selector: 'shared-form-field-select-show', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [ngClass]=\"{'small-form-width-form-field': config?.smallFormWidth}\">\n <label class=\"show-label\">{{ fieldData.title }}</label>\n <div class=\"form-field-value\">\n <span *ngFor=\"let value of listItems;trackBy: trackById\">{{ value }}</span>\n </div>\n</div>\n<shared-form-field-spinner *ngIf=\"loading\"></shared-form-field-spinner>\n", styles: [".form-field-value{display:flex;flex-direction:column}.small-form-width-form-field .show-label{margin-bottom:0}\n"] }]
|
|
8658
8690
|
}], ctorParameters: () => [{ type: CoreFacade }, { type: i0.ChangeDetectorRef }], propDecorators: { config: [{
|
|
8659
8691
|
type: Input
|
|
8660
8692
|
}], fieldData: [{
|
|
@@ -8724,7 +8756,7 @@ class FormFieldInputComponent {
|
|
|
8724
8756
|
}
|
|
8725
8757
|
}
|
|
8726
8758
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormFieldInputComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8727
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: FormFieldInputComponent, selector: "shared-form-field-input", inputs: { config: "config", fieldData: "fieldData", form: "form" }, viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }], ngImport: i0, template: "<ng-container *ngIf=\"form.get(fieldData.field) as field\">\n <div [formGroup]=\"form\" [ngClass]=\"{'small-form-width-form-field': config?.smallFormWidth}\">\n <mat-form-field appearance=\"outline\"\n class=\"width100\">\n <mat-label>{{fieldData.title}}{{fieldData.validators && fieldData.validators.includes('required') ? ' *' : ''}}</mat-label>\n <div class=\"display-flex align-baseline \">\n <ng-container *ngIf=\"inputMask\">\n <input matInput\n #input\n [type]=\"inputType\"\n [placeholder]=\"placeholder\"\n [mask]=\"inputMask\"\n [formControlName]=\"fieldData.field\">\n </ng-container>\n <ng-container *ngIf=\"!inputMask\">\n <input matInput\n #input\n [type]=\"inputType\"\n [placeholder]=\"placeholder\"\n [formControlName]=\"fieldData.field\">\n </ng-container>\n <div class=\"form-field-suffix\"\n [ngClass]=\"{'input-field-icon-red': !field.valid}\"\n *ngIf=\"fieldData.asyncValidators && fieldData.asyncValidators.length\">\n <mat-icon *ngIf=\"field.status !== pendingStatus\"\n class=\"secondary-text mat-icon notranslate material-icons mat-icon-no-color\"\n role=\"img\" aria-hidden=\"true\">\n {{field.valid ? 'done' : field.errors['itemUniqValue'] ? 'assignment_late' : ''}}\n </mat-icon>\n <shared-spinner *ngIf=\"field.status === pendingStatus\"\n [diameter]=\"24\"></shared-spinner>\n </div>\n </div>\n </mat-form-field>\n </div>\n</ng-container>\n", styles: [".form-field-suffix{width:17px;height:17px}.form-field-suffix mat-icon{color:#4caf50;font-size:17px;height:17px!important;width:17px!important;min-width:17px;min-height:17px;font-weight:700!important}.form-field-suffix.input-field-icon-red mat-icon{color:#f44336}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2$4.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3$3.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i7$
|
|
8759
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: FormFieldInputComponent, selector: "shared-form-field-input", inputs: { config: "config", fieldData: "fieldData", form: "form" }, viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }], ngImport: i0, template: "<ng-container *ngIf=\"form.get(fieldData.field) as field\">\n <div [formGroup]=\"form\" [ngClass]=\"{'small-form-width-form-field': config?.smallFormWidth}\">\n <mat-form-field appearance=\"outline\"\n class=\"width100\">\n <mat-label>{{fieldData.title}}{{fieldData.validators && fieldData.validators.includes('required') ? ' *' : ''}}</mat-label>\n <div class=\"display-flex align-baseline \">\n <ng-container *ngIf=\"inputMask\">\n <input matInput\n #input\n [type]=\"inputType\"\n [placeholder]=\"placeholder\"\n [mask]=\"inputMask\"\n [formControlName]=\"fieldData.field\">\n </ng-container>\n <ng-container *ngIf=\"!inputMask\">\n <input matInput\n #input\n [type]=\"inputType\"\n [placeholder]=\"placeholder\"\n [formControlName]=\"fieldData.field\">\n </ng-container>\n <div class=\"form-field-suffix\"\n [ngClass]=\"{'input-field-icon-red': !field.valid}\"\n *ngIf=\"fieldData.asyncValidators && fieldData.asyncValidators.length\">\n <mat-icon *ngIf=\"field.status !== pendingStatus\"\n class=\"secondary-text mat-icon notranslate material-icons mat-icon-no-color\"\n role=\"img\" aria-hidden=\"true\">\n {{field.valid ? 'done' : field.errors['itemUniqValue'] ? 'assignment_late' : ''}}\n </mat-icon>\n <shared-spinner *ngIf=\"field.status === pendingStatus\"\n [diameter]=\"24\"></shared-spinner>\n </div>\n </div>\n </mat-form-field>\n </div>\n</ng-container>\n", styles: [".form-field-suffix{width:17px;height:17px}.form-field-suffix mat-icon{color:#4caf50;font-size:17px;height:17px!important;width:17px!important;min-width:17px;min-height:17px;font-weight:700!important}.form-field-suffix.input-field-icon-red mat-icon{color:#f44336}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2$4.MatLabel, selector: "mat-label" }, { kind: "directive", type: i3$3.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i7$2.NgxMaskDirective, selector: "input[mask], textarea[mask]", inputs: ["mask", "specialCharacters", "patterns", "prefix", "suffix", "thousandSeparator", "decimalMarker", "dropSpecialCharacters", "hiddenInput", "showMaskTyped", "placeHolderCharacter", "shownMaskExpression", "showTemplate", "clearIfNotMatch", "validation", "separatorLimit", "allowNegativeNumbers", "leadZeroDateTime", "leadZero", "triggerOnMaskChange", "apm", "inputTransformFn", "outputTransformFn", "keepCharacterPositions"], outputs: ["maskFilled"], exportAs: ["mask", "ngxMask"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
8728
8760
|
}
|
|
8729
8761
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormFieldInputComponent, decorators: [{
|
|
8730
8762
|
type: Component,
|
|
@@ -9049,7 +9081,7 @@ class FileListCardComponent {
|
|
|
9049
9081
|
}
|
|
9050
9082
|
}
|
|
9051
9083
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FileListCardComponent, deps: [{ token: FilesFacade }, { token: NotificationsFacade }, { token: DialogService }, { token: i0.ChangeDetectorRef }, { token: RequestsFacade }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9052
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: FileListCardComponent, selector: "shared-file-list-card", inputs: { file: "file", section: "section", itemId: "itemId", mode: "mode" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"fuse-card\"\n [ngClass]=\"{'fuse-card-sort': mode === ModeSort}\">\n <div class=\"top-panel\" fxLayout=\"row\" fxLayoutAlign=\"end center\">\n <button\n mat-icon-button\n aria-label=\"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A\"\n title=\"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A\"\n class=\"color-green\"\n (click)=\"editFile()\"\n >\n <mat-icon>edit</mat-icon>\n </button>\n <button mat-icon-button\n aria-label=\"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u0433\u043B\u0430\u0432\u043D\u044B\u043C\"\n title=\"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u0433\u043B\u0430\u0432\u043D\u044B\u043C\"\n (click)=\"setMain(file.id, file.main)\"\n [ngClass]=\"{'cursor-no-pointer': file.main}\">\n <mat-icon *ngIf=\"!file.main\">star_border</mat-icon>\n <mat-icon *ngIf=\"file.main\">star</mat-icon>\n </button>\n <button\n mat-icon-button\n aria-label=\"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0444\u0430\u0439\u043B\"\n title=\"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0444\u0430\u0439\u043B\"\n class=\"color-red\"\n (click)=\"fileDelete(file.id)\"\n >\n <mat-icon>delete_outline</mat-icon>\n </button>\n </div>\n <div class=\"image\"\n [ngStyle]=\"{'background-image': file.versions ? 'url(' + file.versions[2] + ')' : 'none'}\"></div>\n <div class=\"p-10 cart-title p-0\"\n [ngClass]=\"{'edit-title': edit, 'empty-title': !file.title}\">\n <div class=\"width100 display-flex-space-between edit-block\"\n [ngClass]=\"{'edit-block-open': edit}\">\n\n <div *ngIf=\"!edit && file?.title\" class=\"h3\">{{file.title}}</div>\n <ng-container *ngIf=\"edit\">\n <textarea type=\"text\"\n placeholder=\"Enter image title...\"\n class=\"edit-textarea\"\n (change)=\"changeTitle($event)\"\n [innerText]=\"file && file.title ? file.title : ''\"></textarea>\n <div class=\"edit-button\">\n <button\n mat-icon-button\n aria-label=\"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\"\n title=\"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\"\n class=\"color-green\"\n (click)=\"saveTitle(file)\"\n >\n <mat-icon>check</mat-icon>\n </button>\n <button\n mat-icon-button\n aria-label=\"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C\"\n title=\"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C\"\n class=\"color-red\"\n (click)=\"edit = false\"\n >\n <mat-icon>close</mat-icon>\n </button>\n </div>\n </ng-container>\n </div>\n </div>\n <shared-spinner\n *ngIf=\"loading\"\n [overlay]=\"true\"\n [diameter]=\"20\"\n [color]=\"'blue'\"></shared-spinner>\n</div>\n", styles: [":host.cdk-drag-placeholder .fuse-card{z-index:1000}.custom-placeholder{background:#ccc;border:dotted 3px #999;min-height:60px;transition:transform .25s cubic-bezier(0,0,.2,1)}.fuse-card{margin:5px;position:relative;max-width:250px;min-width:250px;max-height:160px;min-height:160px;cursor:move}.fuse-card.fuse-card-sort{max-width:200px;min-width:200px;padding:5px!important}.fuse-card.fuse-card-sort .top-panel,.fuse-card.fuse-card-sort .cart-title{display:none}.fuse-card.fuse-card-sort .image{width:200px;height:100px}.fuse-card:hover .cart-title,.fuse-card:hover .top-panel{background:#efefefc7;transform:scale(1);margin-top:0;margin-right:0}.fuse-card:hover .cart-title button mat-icon,.fuse-card:hover .top-panel button mat-icon{transform:scale(.8)}.fuse-card:hover .cart-title .h3{font-size:14px}.fuse-card .image{width:250px;height:160px;text-align:center;background-size:cover;background-position:center top;border-radius:6px;overflow:hidden}.fuse-card .top-panel,.fuse-card .cart-title{background:#efefef80;transition:all .2s linear}.fuse-card .top-panel:hover,.fuse-card .cart-title:hover{background:#efefef}.fuse-card .top-panel{position:absolute;right:0;border-bottom-left-radius:12px;transform:scale(.8);margin-top:-4px;margin-right:-12px}.fuse-card .top-panel button.color-green mat-icon{color:#236126cc}.fuse-card .top-panel button.color-green:hover mat-icon{color:#4caf50}.fuse-card .top-panel button.color-red mat-icon{color:#f44336cc}.fuse-card .top-panel button.color-red:hover mat-icon{color:#f44336}.fuse-card .top-panel button mat-icon{color:#323232cc}.fuse-card .top-panel button mat-icon{transition:all .2s linear;transform:scale(1)}.fuse-card .top-panel button:hover mat-icon{color:#000;transform:scale(1)}.fuse-card .top-panel button mat-icon{font-size:20px}.fuse-card .cart-title{position:absolute;left:0;right:0;bottom:0;font-size:12px;padding:10px;display:flex;transition:all .3s linear;border-bottom-left-radius:5px;border-bottom-right-radius:5px}.fuse-card .cart-title.empty-title{background:transparent}.fuse-card .cart-title.edit-title{background:#fff}.fuse-card .cart-title.edit-title button mat-icon:hover{color:#7f7f7f}.fuse-card .cart-title .h3{flex-grow:1;padding:9px 5px 9px 10px;color:#fff;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transition:all .2s linear;font-size:12px}.fuse-card .cart-title .h3:hover{color:#079be5}.fuse-card .cart-title .edit-block{transition:all .2s linear}.fuse-card .cart-title .edit-block.edit-block-open{background:#f5f5f5}.fuse-card .cart-title textarea.edit-textarea{flex-grow:1;background-color:transparent;border:0;resize:none;padding:5px 0 5px 5px}.fuse-card .cart-title .edit-button{width:40px}.fuse-card .cart-title .edit-button button mat-icon{color:#d0d0d0;transition:all .2s linear}.fuse-card .cart-title .edit-button button mat-icon:hover{color:#fff;box-shadow:0 0 3px}.fuse-card.fuse-card-sort{padding:20px 10px;border-right:solid 1px #ccc;color:#000000de;display:flex;flex-direction:row;align-items:center;justify-content:space-between;box-sizing:border-box;cursor:move;background:#fff;font-size:14px;flex-grow:1;flex-basis:0}.cdk-drag-preview{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder{opacity:0}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.fuse-card:last-child{border:none}.card-list.cdk-drop-list-dragging .fuse-card:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "component", type: i5.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "directive", type:
|
|
9084
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: FileListCardComponent, selector: "shared-file-list-card", inputs: { file: "file", section: "section", itemId: "itemId", mode: "mode" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"fuse-card\"\n [ngClass]=\"{'fuse-card-sort': mode === ModeSort}\">\n <div class=\"top-panel\" fxLayout=\"row\" fxLayoutAlign=\"end center\">\n <button\n mat-icon-button\n aria-label=\"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A\"\n title=\"\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u0437\u0430\u0433\u043E\u043B\u043E\u0432\u043E\u043A\"\n class=\"color-green\"\n (click)=\"editFile()\"\n >\n <mat-icon>edit</mat-icon>\n </button>\n <button mat-icon-button\n aria-label=\"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u0433\u043B\u0430\u0432\u043D\u044B\u043C\"\n title=\"\u0421\u0434\u0435\u043B\u0430\u0442\u044C \u0433\u043B\u0430\u0432\u043D\u044B\u043C\"\n (click)=\"setMain(file.id, file.main)\"\n [ngClass]=\"{'cursor-no-pointer': file.main}\">\n <mat-icon *ngIf=\"!file.main\">star_border</mat-icon>\n <mat-icon *ngIf=\"file.main\">star</mat-icon>\n </button>\n <button\n mat-icon-button\n aria-label=\"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0444\u0430\u0439\u043B\"\n title=\"\u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0444\u0430\u0439\u043B\"\n class=\"color-red\"\n (click)=\"fileDelete(file.id)\"\n >\n <mat-icon>delete_outline</mat-icon>\n </button>\n </div>\n <div class=\"image\"\n [ngStyle]=\"{'background-image': file.versions ? 'url(' + file.versions[2] + ')' : 'none'}\"></div>\n <div class=\"p-10 cart-title p-0\"\n [ngClass]=\"{'edit-title': edit, 'empty-title': !file.title}\">\n <div class=\"width100 display-flex-space-between edit-block\"\n [ngClass]=\"{'edit-block-open': edit}\">\n\n <div *ngIf=\"!edit && file?.title\" class=\"h3\">{{file.title}}</div>\n <ng-container *ngIf=\"edit\">\n <textarea type=\"text\"\n placeholder=\"Enter image title...\"\n class=\"edit-textarea\"\n (change)=\"changeTitle($event)\"\n [innerText]=\"file && file.title ? file.title : ''\"></textarea>\n <div class=\"edit-button\">\n <button\n mat-icon-button\n aria-label=\"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\"\n title=\"\u0421\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\"\n class=\"color-green\"\n (click)=\"saveTitle(file)\"\n >\n <mat-icon>check</mat-icon>\n </button>\n <button\n mat-icon-button\n aria-label=\"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C\"\n title=\"\u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C\"\n class=\"color-red\"\n (click)=\"edit = false\"\n >\n <mat-icon>close</mat-icon>\n </button>\n </div>\n </ng-container>\n </div>\n </div>\n <shared-spinner\n *ngIf=\"loading\"\n [overlay]=\"true\"\n [diameter]=\"20\"\n [color]=\"'blue'\"></shared-spinner>\n</div>\n", styles: [":host.cdk-drag-placeholder .fuse-card{z-index:1000}.custom-placeholder{background:#ccc;border:dotted 3px #999;min-height:60px;transition:transform .25s cubic-bezier(0,0,.2,1)}.fuse-card{margin:5px;position:relative;max-width:250px;min-width:250px;max-height:160px;min-height:160px;cursor:move}.fuse-card.fuse-card-sort{max-width:200px;min-width:200px;padding:5px!important}.fuse-card.fuse-card-sort .top-panel,.fuse-card.fuse-card-sort .cart-title{display:none}.fuse-card.fuse-card-sort .image{width:200px;height:100px}.fuse-card:hover .cart-title,.fuse-card:hover .top-panel{background:#efefefc7;transform:scale(1);margin-top:0;margin-right:0}.fuse-card:hover .cart-title button mat-icon,.fuse-card:hover .top-panel button mat-icon{transform:scale(.8)}.fuse-card:hover .cart-title .h3{font-size:14px}.fuse-card .image{width:250px;height:160px;text-align:center;background-size:cover;background-position:center top;border-radius:6px;overflow:hidden}.fuse-card .top-panel,.fuse-card .cart-title{background:#efefef80;transition:all .2s linear}.fuse-card .top-panel:hover,.fuse-card .cart-title:hover{background:#efefef}.fuse-card .top-panel{position:absolute;right:0;border-bottom-left-radius:12px;transform:scale(.8);margin-top:-4px;margin-right:-12px}.fuse-card .top-panel button.color-green mat-icon{color:#236126cc}.fuse-card .top-panel button.color-green:hover mat-icon{color:#4caf50}.fuse-card .top-panel button.color-red mat-icon{color:#f44336cc}.fuse-card .top-panel button.color-red:hover mat-icon{color:#f44336}.fuse-card .top-panel button mat-icon{color:#323232cc}.fuse-card .top-panel button mat-icon{transition:all .2s linear;transform:scale(1)}.fuse-card .top-panel button:hover mat-icon{color:#000;transform:scale(1)}.fuse-card .top-panel button mat-icon{font-size:20px}.fuse-card .cart-title{position:absolute;left:0;right:0;bottom:0;font-size:12px;padding:10px;display:flex;transition:all .3s linear;border-bottom-left-radius:5px;border-bottom-right-radius:5px}.fuse-card .cart-title.empty-title{background:transparent}.fuse-card .cart-title.edit-title{background:#fff}.fuse-card .cart-title.edit-title button mat-icon:hover{color:#7f7f7f}.fuse-card .cart-title .h3{flex-grow:1;padding:9px 5px 9px 10px;color:#fff;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transition:all .2s linear;font-size:12px}.fuse-card .cart-title .h3:hover{color:#079be5}.fuse-card .cart-title .edit-block{transition:all .2s linear}.fuse-card .cart-title .edit-block.edit-block-open{background:#f5f5f5}.fuse-card .cart-title textarea.edit-textarea{flex-grow:1;background-color:transparent;border:0;resize:none;padding:5px 0 5px 5px}.fuse-card .cart-title .edit-button{width:40px}.fuse-card .cart-title .edit-button button mat-icon{color:#d0d0d0;transition:all .2s linear}.fuse-card .cart-title .edit-button button mat-icon:hover{color:#fff;box-shadow:0 0 3px}.fuse-card.fuse-card-sort{padding:20px 10px;border-right:solid 1px #ccc;color:#000000de;display:flex;flex-direction:row;align-items:center;justify-content:space-between;box-sizing:border-box;cursor:move;background:#fff;font-size:14px;flex-grow:1;flex-basis:0}.cdk-drag-preview{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder{opacity:0}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.fuse-card:last-child{border:none}.card-list.cdk-drop-list-dragging .fuse-card:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "component", type: i5.MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "directive", type: i7.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: i7.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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
9053
9085
|
}
|
|
9054
9086
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FileListCardComponent, decorators: [{
|
|
9055
9087
|
type: Component,
|
|
@@ -9229,7 +9261,7 @@ class TableFilesUploadingComponent {
|
|
|
9229
9261
|
});
|
|
9230
9262
|
}
|
|
9231
9263
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TableFilesUploadingComponent, deps: [{ token: FilesFacade }, { token: NotificationsFacade }, { token: i0.ChangeDetectorRef }, { token: AuthenticationService }, { token: CORE_CONFIG }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9232
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: TableFilesUploadingComponent, selector: "shared-table-files-uploading", inputs: { section: "section", itemId: "itemId", haveElevation: "haveElevation" }, outputs: { loadingCompleted: "loadingCompleted" }, ngImport: i0, template: "<div\n class=\"page-layout simple fullwidth fileUploads\"\n fxLayout=\"column\">\n <!-- CONTENT -->\n <div class=\"p-24\"\n [ngClass]=\"{'mat-card mat-elevation-z4': haveElevation}\">\n <div class=\"row\">\n <div class=\"col-md-12\" *ngIf=\"!uploader.queue.length\" [@appearFromLeftHideToRight]>\n <div class=\"h2 mb-24\">\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0430\u0439\u043B\u044B</div>\n <div ng2FileDrop\n [ngClass]=\"{'nv-file-over': hasBaseDropZoneOver}\"\n (fileOver)=\"fileOverBase($event)\"\n [uploader]=\"uploader\"\n class=\"well my-drop-zone\">\n \u041F\u0435\u0440\u0435\u043D\u0435\u0441\u0438\u0442\u0435 \u0444\u0430\u0439\u043B\u044B\n </div>\n <div class=\"p-5\">\n \u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0430\u0439\u043B\u044B: <input type=\"file\" ng2FileSelect [uploader]=\"uploader\" multiple/><br/>\n </div>\n </div>\n\n <div *ngIf=\"uploader && uploader.queue.length\" [@appearFromLeftHideToRight] class=\"col-md-12\">\n <ng-container *ngIf=\"allProgress$ | async as allProgress\">\n <ng-container *ngIf=\"itemsProgress$ | async as itemsProgress\">\n <ng-container *ngIf=\"allProgress !== 100\">\n <h3>\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u043A\u0430\u0440\u0442\u0438\u043D\u043E\u043A</h3>\n <table class=\"table\">\n <thead>\n <tr>\n <th width=\"50%\">\u0424\u0430\u0439\u043B</th>\n <th>\u0420\u0430\u0437\u043C\u0435\u0440</th>\n <th>\u041F\u0440\u043E\u0433\u0440\u0435\u0441\u0441</th>\n </tr>\n </thead>\n <tbody>\n <ng-container *ngFor=\"let item of uploader.queue\">\n <tr [@appearFromLeftHideToRight] *ngIf=\"itemsProgress[item?.file?.name] !== 100\">\n <td><strong>{{ item?.file?.name }}</strong></td>\n <td nowrap>{{ item?.file?.size / 1024 / 1024 | number:'.2' }} MB</td>\n <td>\n <div class=\"progress\">\n <mat-progress-bar\n class=\"example-margin\"\n color=\"warn\"\n mode=\"determinate\"\n [value]=\"itemsProgress[item?.file?.name] || 0\">\n </mat-progress-bar>\n </div>\n </td>\n </tr>\n </ng-container>\n </tbody>\n </table>\n <div>\n <div class=\"progress-block\">\n Queue progress:\n <div class=\"progress\">\n <mat-progress-bar\n class=\"example-margin\"\n color=\"warn\"\n mode=\"determinate\"\n [value]=\"allProgress\">\n </mat-progress-bar>\n </div>\n </div>\n <!--<div class=\"text-right\">\n <button mat-flat-button color=\"accent\"\n class=\"mr-5\"\n (click)=\"uploader.uploadAll()\"\n [disabled]=\"!uploader.getNotUploadedItems().length\">\n <mat-icon class=\"fs-18\">get_app</mat-icon>\n \u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0432\u0441\u0435\n </button>\n <button mat-flat-button color=\"primary\"\n class=\"mr-5\"\n (click)=\"uploader.cancelAll()\"\n [disabled]=\"!uploader.isUploading\">\n <mat-icon class=\"fs-18\">clear</mat-icon>\n \u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C \u0432\u0441\u0435\n </button>\n <button mat-flat-button color=\"warn\"\n class=\"mr-5\"\n (click)=\"uploader.clearQueue()\"\n [disabled]=\"!uploader.queue.length\">\n <mat-icon class=\"fs-18\">delete_outline</mat-icon>\n \u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u0441\u0435\n </button>\n </div>-->\n </div>\n </ng-container>\n </ng-container>\n </ng-container>\n </div>\n </div>\n </div>\n</div>\n", styles: [":host{display:block}.fileUploads{margin-bottom:10px;margin-left:-5px}.fileUploads .mat-card{margin:5px}.nv-file-over{border:dotted 3px red}.cursor-no-pointer{cursor:auto}.table{width:100%}.table tr{line-height:40px;border-top:1px solid #efefef}.table thead{background:#efefef}.table thead th{padding:0 10px}.my-drop-zone{border:dotted 3px lightgray;padding:10px;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: "component", type: i5$2.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "directive", type: i6.FileDropDirective, selector: "[ng2FileDrop]", inputs: ["uploader"], outputs: ["fileOver", "onFileDrop"] }, { kind: "directive", type: i6.FileSelectDirective, selector: "[ng2FileSelect]", inputs: ["uploader"], outputs: ["onFileSelected"] }, { kind: "directive", type:
|
|
9264
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: TableFilesUploadingComponent, selector: "shared-table-files-uploading", inputs: { section: "section", itemId: "itemId", haveElevation: "haveElevation" }, outputs: { loadingCompleted: "loadingCompleted" }, ngImport: i0, template: "<div\n class=\"page-layout simple fullwidth fileUploads\"\n fxLayout=\"column\">\n <!-- CONTENT -->\n <div class=\"p-24\"\n [ngClass]=\"{'mat-card mat-elevation-z4': haveElevation}\">\n <div class=\"row\">\n <div class=\"col-md-12\" *ngIf=\"!uploader.queue.length\" [@appearFromLeftHideToRight]>\n <div class=\"h2 mb-24\">\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0430\u0439\u043B\u044B</div>\n <div ng2FileDrop\n [ngClass]=\"{'nv-file-over': hasBaseDropZoneOver}\"\n (fileOver)=\"fileOverBase($event)\"\n [uploader]=\"uploader\"\n class=\"well my-drop-zone\">\n \u041F\u0435\u0440\u0435\u043D\u0435\u0441\u0438\u0442\u0435 \u0444\u0430\u0439\u043B\u044B\n </div>\n <div class=\"p-5\">\n \u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0444\u0430\u0439\u043B\u044B: <input type=\"file\" ng2FileSelect [uploader]=\"uploader\" multiple/><br/>\n </div>\n </div>\n\n <div *ngIf=\"uploader && uploader.queue.length\" [@appearFromLeftHideToRight] class=\"col-md-12\">\n <ng-container *ngIf=\"allProgress$ | async as allProgress\">\n <ng-container *ngIf=\"itemsProgress$ | async as itemsProgress\">\n <ng-container *ngIf=\"allProgress !== 100\">\n <h3>\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u043A\u0430\u0440\u0442\u0438\u043D\u043E\u043A</h3>\n <table class=\"table\">\n <thead>\n <tr>\n <th width=\"50%\">\u0424\u0430\u0439\u043B</th>\n <th>\u0420\u0430\u0437\u043C\u0435\u0440</th>\n <th>\u041F\u0440\u043E\u0433\u0440\u0435\u0441\u0441</th>\n </tr>\n </thead>\n <tbody>\n <ng-container *ngFor=\"let item of uploader.queue\">\n <tr [@appearFromLeftHideToRight] *ngIf=\"itemsProgress[item?.file?.name] !== 100\">\n <td><strong>{{ item?.file?.name }}</strong></td>\n <td nowrap>{{ item?.file?.size / 1024 / 1024 | number:'.2' }} MB</td>\n <td>\n <div class=\"progress\">\n <mat-progress-bar\n class=\"example-margin\"\n color=\"warn\"\n mode=\"determinate\"\n [value]=\"itemsProgress[item?.file?.name] || 0\">\n </mat-progress-bar>\n </div>\n </td>\n </tr>\n </ng-container>\n </tbody>\n </table>\n <div>\n <div class=\"progress-block\">\n Queue progress:\n <div class=\"progress\">\n <mat-progress-bar\n class=\"example-margin\"\n color=\"warn\"\n mode=\"determinate\"\n [value]=\"allProgress\">\n </mat-progress-bar>\n </div>\n </div>\n <!--<div class=\"text-right\">\n <button mat-flat-button color=\"accent\"\n class=\"mr-5\"\n (click)=\"uploader.uploadAll()\"\n [disabled]=\"!uploader.getNotUploadedItems().length\">\n <mat-icon class=\"fs-18\">get_app</mat-icon>\n \u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0432\u0441\u0435\n </button>\n <button mat-flat-button color=\"primary\"\n class=\"mr-5\"\n (click)=\"uploader.cancelAll()\"\n [disabled]=\"!uploader.isUploading\">\n <mat-icon class=\"fs-18\">clear</mat-icon>\n \u041E\u0442\u043C\u0435\u043D\u0438\u0442\u044C \u0432\u0441\u0435\n </button>\n <button mat-flat-button color=\"warn\"\n class=\"mr-5\"\n (click)=\"uploader.clearQueue()\"\n [disabled]=\"!uploader.queue.length\">\n <mat-icon class=\"fs-18\">delete_outline</mat-icon>\n \u0423\u0434\u0430\u043B\u0438\u0442\u044C \u0432\u0441\u0435\n </button>\n </div>-->\n </div>\n </ng-container>\n </ng-container>\n </ng-container>\n </div>\n </div>\n </div>\n</div>\n", styles: [":host{display:block}.fileUploads{margin-bottom:10px;margin-left:-5px}.fileUploads .mat-card{margin:5px}.nv-file-over{border:dotted 3px red}.cursor-no-pointer{cursor:auto}.table{width:100%}.table tr{line-height:40px;border-top:1px solid #efefef}.table thead{background:#efefef}.table thead th{padding:0 10px}.my-drop-zone{border:dotted 3px lightgray;padding:10px;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: "component", type: i5$2.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "directive", type: i6.FileDropDirective, selector: "[ng2FileDrop]", inputs: ["uploader"], outputs: ["fileOver", "onFileDrop"] }, { kind: "directive", type: i6.FileSelectDirective, selector: "[ng2FileSelect]", inputs: ["uploader"], outputs: ["onFileSelected"] }, { kind: "directive", type: i7.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: "pipe", type: i1$3.AsyncPipe, name: "async" }, { kind: "pipe", type: i1$3.DecimalPipe, name: "number" }], animations: [
|
|
9233
9265
|
hideToTopOpacity,
|
|
9234
9266
|
appearFromLeftHideToRight
|
|
9235
9267
|
], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
@@ -9517,11 +9549,11 @@ class FormFieldInputShowComponent {
|
|
|
9517
9549
|
}
|
|
9518
9550
|
}
|
|
9519
9551
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormFieldInputShowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9520
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: FormFieldInputShowComponent, selector: "shared-form-field-input-show", inputs: { config: "config", fieldData: "fieldData", value: "value" }, usesOnChanges: true, ngImport: i0, template: "<div [ngClass]=\"{'small-form-width-form-field': config?.smallFormWidth}\">\n <div class=\"width100\">\n <label class=\"show-label\">{{fieldData.title}}</label>\n <div class=\"display-flex align-baseline\">\n {{inputValue}}\n </div>\n </div>\n</div>\n", styles: [".small-form-width-form-field .show-label{margin-bottom:0}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
9552
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: FormFieldInputShowComponent, selector: "shared-form-field-input-show", inputs: { config: "config", fieldData: "fieldData", value: "value" }, usesOnChanges: true, ngImport: i0, template: "<div [ngClass]=\"{'small-form-width-form-field': config?.smallFormWidth}\">\n <div class=\"field width100\">\n <label class=\"show-label\">{{fieldData.title}}: </label>\n <div class=\"display-flex align-baseline\">\n {{inputValue}}\n </div>\n </div>\n</div>\n", styles: [".small-form-width-form-field .show-label{margin-bottom:0}.field{display:flex}.field label{padding-right:5px}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
9521
9553
|
}
|
|
9522
9554
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormFieldInputShowComponent, decorators: [{
|
|
9523
9555
|
type: Component,
|
|
9524
|
-
args: [{ selector: 'shared-form-field-input-show', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [ngClass]=\"{'small-form-width-form-field': config?.smallFormWidth}\">\n <div class=\"width100\">\n <label class=\"show-label\">{{fieldData.title}}</label>\n <div class=\"display-flex align-baseline\">\n {{inputValue}}\n </div>\n </div>\n</div>\n", styles: [".small-form-width-form-field .show-label{margin-bottom:0}\n"] }]
|
|
9556
|
+
args: [{ selector: 'shared-form-field-input-show', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [ngClass]=\"{'small-form-width-form-field': config?.smallFormWidth}\">\n <div class=\"field width100\">\n <label class=\"show-label\">{{fieldData.title}}: </label>\n <div class=\"display-flex align-baseline\">\n {{inputValue}}\n </div>\n </div>\n</div>\n", styles: [".small-form-width-form-field .show-label{margin-bottom:0}.field{display:flex}.field label{padding-right:5px}\n"] }]
|
|
9525
9557
|
}], ctorParameters: () => [], propDecorators: { config: [{
|
|
9526
9558
|
type: Input
|
|
9527
9559
|
}], fieldData: [{
|
|
@@ -9671,7 +9703,7 @@ class FormFieldTagsComponent {
|
|
|
9671
9703
|
}]);
|
|
9672
9704
|
}
|
|
9673
9705
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormFieldTagsComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: StaticDataFacade }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9674
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: FormFieldTagsComponent, selector: "shared-form-field-tags", inputs: { config: "config", fieldData: "fieldData", form: "form", itemId: "itemId" }, viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }, { propertyName: "tagInput", first: true, predicate: ["tagInput"], descendants: true }, { propertyName: "matAutocomplete", first: true, predicate: ["auto"], descendants: true }], ngImport: i0, template: "<ng-container *ngIf=\"form.get(fieldData.field) as field\"\n [ngClass]=\"{'small-form-width-form-field': config?.smallFormWidth}\">\n <div [formGroup]=\"form\">\n <mat-form-field class=\"example-chip-list w-100\" appearance=\"outline\">\n <mat-label>\u0422\u044D\u0433\u0438</mat-label>\n <mat-chip-grid #chipGrid aria-label=\"\u0422\u0435\u0433\u0438\">\n <mat-chip-row *ngFor=\"let tag of selectedTags\"\n (removed)=\"remove(tag.id, tag.name)\">\n {{ tag.name }}\n <button matChipRemove [attr.aria-label]=\"'\u0443\u0434\u0430\u043B\u0438\u0442\u044C ' + tag.name\">\n <mat-icon>cancel</mat-icon>\n </button>\n </mat-chip-row>\n </mat-chip-grid>\n <input placeholder=\"\u041D\u043E\u0432\u044B\u0439 \u0442\u044D\u0433...\"\n #tagInput\n [formControl]=\"tagInputControl\"\n [matChipInputFor]=\"chipGrid\"\n [matAutocomplete]=\"auto\"\n [matChipInputSeparatorKeyCodes]=\"separatorKeysCodes\"\n (matChipInputTokenEnd)=\"add($event)\"\n (ngModelChange)=\"enterNew($event)\" />\n <mat-autocomplete #auto=\"matAutocomplete\" (optionSelected)=\"selected($event)\">\n <mat-option *ngFor=\"let item of tagsList$ | async\" [value]=\"item.id\">\n {{ item['name'] }}\n </mat-option>\n </mat-autocomplete>\n </mat-form-field>\n </div>\n</ng-container>\n", styles: [".form-field-suffix{width:17px;height:17px}.form-field-suffix mat-icon{color:#4caf50;font-size:17px;height:17px!important;width:17px!important;min-width:17px;min-height:17px;font-weight:700!important}.form-field-suffix.input-field-icon-red mat-icon{color:#f44336}\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: "component", type: i2$4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2$4.MatLabel, selector: "mat-label" }, { kind: "component", type: i5$1.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i7$
|
|
9706
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: FormFieldTagsComponent, selector: "shared-form-field-tags", inputs: { config: "config", fieldData: "fieldData", form: "form", itemId: "itemId" }, viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }, { propertyName: "tagInput", first: true, predicate: ["tagInput"], descendants: true }, { propertyName: "matAutocomplete", first: true, predicate: ["auto"], descendants: true }], ngImport: i0, template: "<ng-container *ngIf=\"form.get(fieldData.field) as field\"\n [ngClass]=\"{'small-form-width-form-field': config?.smallFormWidth}\">\n <div [formGroup]=\"form\">\n <mat-form-field class=\"example-chip-list w-100\" appearance=\"outline\">\n <mat-label>\u0422\u044D\u0433\u0438</mat-label>\n <mat-chip-grid #chipGrid aria-label=\"\u0422\u0435\u0433\u0438\">\n <mat-chip-row *ngFor=\"let tag of selectedTags\"\n (removed)=\"remove(tag.id, tag.name)\">\n {{ tag.name }}\n <button matChipRemove [attr.aria-label]=\"'\u0443\u0434\u0430\u043B\u0438\u0442\u044C ' + tag.name\">\n <mat-icon>cancel</mat-icon>\n </button>\n </mat-chip-row>\n </mat-chip-grid>\n <input placeholder=\"\u041D\u043E\u0432\u044B\u0439 \u0442\u044D\u0433...\"\n #tagInput\n [formControl]=\"tagInputControl\"\n [matChipInputFor]=\"chipGrid\"\n [matAutocomplete]=\"auto\"\n [matChipInputSeparatorKeyCodes]=\"separatorKeysCodes\"\n (matChipInputTokenEnd)=\"add($event)\"\n (ngModelChange)=\"enterNew($event)\" />\n <mat-autocomplete #auto=\"matAutocomplete\" (optionSelected)=\"selected($event)\">\n <mat-option *ngFor=\"let item of tagsList$ | async\" [value]=\"item.id\">\n {{ item['name'] }}\n </mat-option>\n </mat-autocomplete>\n </mat-form-field>\n </div>\n</ng-container>\n", styles: [".form-field-suffix{width:17px;height:17px}.form-field-suffix mat-icon{color:#4caf50;font-size:17px;height:17px!important;width:17px!important;min-width:17px;min-height:17px;font-weight:700!important}.form-field-suffix.input-field-icon-red mat-icon{color:#f44336}\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: "component", type: i2$4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i2$4.MatLabel, selector: "mat-label" }, { kind: "component", type: i5$1.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i7$3.MatChipGrid, selector: "mat-chip-grid", inputs: ["disabled", "placeholder", "required", "value", "errorStateMatcher"], outputs: ["change", "valueChange"] }, { kind: "directive", type: i7$3.MatChipInput, selector: "input[matChipInputFor]", inputs: ["matChipInputFor", "matChipInputAddOnBlur", "matChipInputSeparatorKeyCodes", "placeholder", "id", "disabled"], outputs: ["matChipInputTokenEnd"], exportAs: ["matChipInput", "matChipInputFor"] }, { kind: "directive", type: i7$3.MatChipRemove, selector: "[matChipRemove]" }, { kind: "component", type: i7$3.MatChipRow, selector: "mat-chip-row, [mat-chip-row], mat-basic-chip-row, [mat-basic-chip-row]", inputs: ["editable"], outputs: ["edited"] }, { kind: "component", type: i8.MatAutocomplete, selector: "mat-autocomplete", inputs: ["aria-label", "aria-labelledby", "displayWith", "autoActiveFirstOption", "autoSelectActiveOption", "requireSelection", "panelWidth", "disableRipple", "class", "hideSingleSelectionIndicator"], outputs: ["optionSelected", "opened", "closed", "optionActivated"], exportAs: ["matAutocomplete"] }, { kind: "directive", type: i8.MatAutocompleteTrigger, selector: "input[matAutocomplete], textarea[matAutocomplete]", inputs: ["matAutocomplete", "matAutocompletePosition", "matAutocompleteConnectedTo", "autocomplete", "matAutocompleteDisabled"], exportAs: ["matAutocompleteTrigger"] }, { kind: "pipe", type: i1$3.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
9675
9707
|
}
|
|
9676
9708
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormFieldTagsComponent, decorators: [{
|
|
9677
9709
|
type: Component,
|
|
@@ -9858,11 +9890,11 @@ class FormFieldComponent {
|
|
|
9858
9890
|
*/
|
|
9859
9891
|
}
|
|
9860
9892
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormFieldComponent, deps: [{ token: CORE_CONFIG }, { token: AuthenticationService }, { token: CoreFacade }, { token: i0.ChangeDetectorRef }, { token: i1$4.MatDialog }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9861
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: FormFieldComponent, selector: "shared-form-field", inputs: { fields: "fields", formData: "formData", config: "config", fieldData: "fieldData", itemId: "itemId", form: "form", editorImageUploadUrl: "editorImageUploadUrl", errorMessageTexts: "errorMessageTexts", entity: "entity", publicationMessages: "publicationMessages", entityTypeUserRoleRights: "entityTypeUserRoleRights", autoCompleteFields: "autoCompleteFields", entityPermissionUpdateDanyFields: "entityPermissionUpdateDanyFields" }, outputs: { eventUpdateForm: "eventUpdateForm", eventSendAction: "eventSendAction" }, ngImport: i0, template: "<div *ngIf=\"!fieldData.options?.hide\"\n fxLayout=\"column\"\n class=\"position-relative form-field\"\n [id]=\"'field-' + fieldData.field\"\n [formGroup]=\"form\"\n [ngClass]=\"{\n 'border-block textarea-field mb-21': fieldData.type === fieldTypes.FieldTypeTextarea || fieldData.type === fieldTypes.FieldTypeTextareaEditor,\n 'form-field-error': haveFieldError,\n 'form-field-warning': haveFieldWarning,\n 'check-box-field': fieldData.type === fieldTypes.FieldTypeSlideToggle,\n 'preview-mode': isDenyToUpdate || fieldData.options.notEditable\n }\">\n\n @if (!fieldData.options?.showing?.customEditViewComponent && !fieldData.options?.notNeedFormControl) {\n <ng-container [ngSwitch]=\"fieldData.type\">\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeSelect\">\n <shared-form-field-select\n *ngIf=\"!isDenyToUpdate && !fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n [autoCompleteFields]=\"autoCompleteFields\"\n ></shared-form-field-select>\n <shared-form-field-select-show\n *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-select-show>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeSlideToggle\">\n <shared-form-field-slide-toggle\n *ngIf=\"!isDenyToUpdate && !fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n ></shared-form-field-slide-toggle>\n <shared-form-field-slide-toggle-show\n *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-slide-toggle-show>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeTextarea\">\n <div class=\"textarea-field-width\" [ngClass]=\"{'small-form-width-form-field': config?.smallFormWidth}\">\n <label\n [id]=\"'field-' + fieldData.field\">{{ fieldData.title }}{{ fieldData.validators && fieldData.validators.includes('required') ? ' *' : '' }}</label>\n <ng-container *ngIf=\"!isDenyToUpdate && !fieldData.options.notEditable\">\n <textarea matInput rows=\"6\" [formControlName]=\"fieldData.field\"></textarea>\n <div class=\"textarea-field-length\">\n <b>\u0422\u0435\u043A\u0443\u0449\u0430\u044F \u0434\u043B\u0438\u043D\u0430: {{ form.get(fieldData.field).value?.length || 0 }}</b>\n </div>\n </ng-container>\n <ng-container *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\">\n <shared-form-field-textarea-show\n *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-textarea-show>\n </ng-container>\n </div>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeTextareaEditor\">\n <div class=\"textarea-field-width\">\n <label\n [id]=\"'field-' + fieldData.field\">{{ fieldData.title }}{{ fieldData.validators && fieldData.validators.includes('required') ? ' *' : '' }}</label>\n <ng-container *ngIf=\"!isDenyToUpdate && !fieldData.options.notEditable\">\n <div *ngIf=\"fieldData.description\" class=\"field-description\">\n {{ fieldData.description }}\n </div>\n <ckeditor [formControlName]=\"fieldData.field\"\n [config]=\"ckeConfig\"></ckeditor>\n <div class=\"textarea-field-length\">\n <b>\u0422\u0435\u043A\u0443\u0449\u0430\u044F \u0434\u043B\u0438\u043D\u0430: {{ form.get(fieldData.field).value?.length || 0 }}</b>\n </div>\n </ng-container>\n <shared-form-field-textarea-show\n *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-textarea-show>\n </div>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeFile\">\n <shared-form-field-file\n *ngIf=\"!isDenyToUpdate && !fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n [entity]=\"entity\"\n ></shared-form-field-file>\n <shared-form-field-file-show\n *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-file-show>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeFiles\">\n @if (!isDenyToUpdate && !fieldData.options.notEditable) {\n <shared-form-field-files\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n [itemId]=\"itemId\"\n ></shared-form-field-files>\n } @else {\n <shared-form-field-files-show\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [entityId]=\"form.get('id').value\"\n [entitySection]=\"entity\"\n ></shared-form-field-files-show>\n }\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeJSON\">\n <div class=\"textarea-field-width\" [ngClass]=\"{'small-form-width-form-field': config?.smallFormWidth}\">\n <label\n [id]=\"'field-' + fieldData.field\">{{ fieldData.title }}{{ fieldData.validators && fieldData.validators.includes('required') ? ' *' : '' }}</label>\n @if (!isDenyToUpdate && !fieldData.options.notEditable) {\n <textarea matInput rows=\"6\" [formControlName]=\"fieldData.field\"></textarea>\n } @else {\n <shared-form-field-json-show\n *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-json-show>\n }\n </div>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeTags\">\n <shared-form-field-tags\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n [itemId]=\"itemId\"\n ></shared-form-field-tags>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n @if (!isDenyToUpdate && !fieldData.options.notEditable) {\n <shared-form-field-input\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n ></shared-form-field-input>\n } @else {\n <shared-form-field-input-show\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-input-show>\n }\n </ng-container>\n </ng-container>\n <div *ngIf=\"fieldData.actions\" class=\"field-actions\">\n <ng-container *ngFor=\"let action of fieldData.actions\">\n <div class=\"field-actions-action\" (click)=\"fieldActionHandler(action)\">{{ action.title }}</div>\n </ng-container>\n </div>\n <!-- <shared-form-field-spinner *ngIf=\"loading\"></shared-form-field-spinner>-->\n <ng-container *ngIf=\"fieldData.options?.hint\">\n <mat-icon class=\"hint-icons\" (click)=\"openHintDialog(fieldData.options?.hint)\">help_outline</mat-icon>\n </ng-container>\n } @else {\n <ng-container *ngComponentOutlet=\"fieldData.options?.showing?.customEditViewComponent;\n injector: componentDataInjector;\"/>\n }\n\n <shared-form-field-error\n @appearFromLeft\n *ngIf=\"fieldControl && fieldControl['touched'] && !fieldControl.valid\"\n [form]=\"form\"\n [fieldData]=\"fieldData\"\n [errorMessageTexts]=\"errorMessageTexts\"\n [ngClass]=\"{'textarea-error': fieldData.type === fieldTypes.FieldTypeTextarea}\"\n ></shared-form-field-error>\n\n <shared-form-field-publish-error\n [form]=\"form\"\n [entity]=\"entity\"\n [fieldData]=\"fieldData\"\n [errorMessageTexts]=\"errorMessageTexts\"\n [ngClass]=\"{'textarea-error': fieldData.type === fieldTypes.FieldTypeTextarea}\"\n ></shared-form-field-publish-error>\n</div>\n", styles: [".mb-21{margin-bottom:21px}.field-description{border-radius:8px;color:#5f5b5b;margin:5px 5px 15px;border-left:3px solid #009ce5;padding:10px 0 10px 10px;background:#009ce542}.field-actions{display:flex;justify-content:flex-end;margin-bottom:5px}.field-actions .field-actions-action{padding:0 10px;text-align:right;background:#007bff;color:#fff;border-radius:4px}.textarea-field-length{background:#f8f8f8;text-align:right;padding-right:10px;color:#989494;border-bottom:1px solid #d1d1d1;font-size:11px}.hint-icons{position:absolute;right:0;margin-top:9px}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$3.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModule", "ngComponentOutletNgModuleFactory"] }, { 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.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$3.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1$3.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "component", type: FormFieldErrorComponent, selector: "shared-form-field-error", inputs: ["fieldData", "form", "errorMessageTexts"] }, { kind: "component", type: FormFieldPublishErrorComponent, selector: "shared-form-field-publish-error", inputs: ["fieldData", "form", "entity", "errorMessageTexts"] }, { kind: "directive", type: i3$3.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { 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: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i11.CKEditorComponent, selector: "ckeditor", inputs: ["config", "editorUrl", "tagName", "type", "data", "readOnly"], outputs: ["namespaceLoaded", "ready", "dataReady", "change", "dataChange", "dragStart", "dragEnd", "drop", "fileUploadResponse", "fileUploadRequest", "focus", "paste", "afterPaste", "blur"] }, { kind: "component", type: FormFieldSelectComponent, selector: "shared-form-field-select", inputs: ["config", "fieldData", "form", "autoCompleteFields"] }, { kind: "component", type: FormFieldSelectShowComponent, selector: "shared-form-field-select-show", inputs: ["config", "fieldData", "value"] }, { kind: "component", type: FormFieldSlideToggleComponent, selector: "shared-form-field-slide-toggle", inputs: ["config", "fieldData", "form"] }, { kind: "component", type: FormFieldInputComponent, selector: "shared-form-field-input", inputs: ["config", "fieldData", "form"] }, { kind: "component", type: FormFieldFileComponent, selector: "shared-form-field-file", inputs: ["config", "fieldData", "form", "entity"] }, { kind: "component", type: FormFieldFilesComponent, selector: "shared-form-field-files", inputs: ["config", "fieldData", "form", "itemId"] }, { kind: "component", type: FormFieldFileShowComponent, selector: "shared-form-field-file-show", inputs: ["config", "fieldData", "value"] }, { kind: "component", type: FormFieldSlideToggleShowComponent, selector: "shared-form-field-slide-toggle-show", inputs: ["config", "fieldData", "value"] }, { kind: "component", type: FormFieldInputShowComponent, selector: "shared-form-field-input-show", inputs: ["config", "fieldData", "value"] }, { kind: "component", type: FormFieldFilesShowComponent, selector: "shared-form-field-files-show", inputs: ["config", "fieldData", "entityId", "entitySection"] }, { kind: "component", type: FormFieldJsonShowComponent, selector: "shared-form-field-json-show", inputs: ["config", "fieldData", "value"] }, { kind: "component", type: FormFieldTagsComponent, selector: "shared-form-field-tags", inputs: ["config", "fieldData", "form", "itemId"] }, { kind: "component", type: FormFieldTextareaShowComponent, selector: "shared-form-field-textarea-show", inputs: ["config", "fieldData", "value"] }], animations: [appearFromLeft], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
9893
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: FormFieldComponent, selector: "shared-form-field", inputs: { fields: "fields", formData: "formData", config: "config", fieldData: "fieldData", itemId: "itemId", form: "form", editorImageUploadUrl: "editorImageUploadUrl", errorMessageTexts: "errorMessageTexts", entity: "entity", publicationMessages: "publicationMessages", entityTypeUserRoleRights: "entityTypeUserRoleRights", autoCompleteFields: "autoCompleteFields", entityPermissionUpdateDanyFields: "entityPermissionUpdateDanyFields" }, outputs: { eventUpdateForm: "eventUpdateForm", eventSendAction: "eventSendAction" }, ngImport: i0, template: "<div *ngIf=\"!fieldData.options?.hide\"\n fxLayout=\"column\"\n class=\"position-relative form-field\"\n [id]=\"'field-' + fieldData.field\"\n [formGroup]=\"form\"\n [ngClass]=\"{\n 'border-block textarea-field mb-21': fieldData.type === fieldTypes.FieldTypeTextarea || fieldData.type === fieldTypes.FieldTypeTextareaEditor,\n 'form-field-error': haveFieldError,\n 'form-field-warning': haveFieldWarning,\n 'check-box-field': fieldData.type === fieldTypes.FieldTypeSlideToggle,\n 'preview-mode': isDenyToUpdate || fieldData.options.notEditable\n }\">\n\n @if (!fieldData.options?.showing?.customEditViewComponent && !fieldData.options?.notNeedFormControl) {\n <ng-container [ngSwitch]=\"fieldData.type\">\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeSelect\">\n <shared-form-field-select\n *ngIf=\"!isDenyToUpdate && !fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n [autoCompleteFields]=\"autoCompleteFields\"\n ></shared-form-field-select>\n <shared-form-field-select-show\n *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-select-show>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeSlideToggle\">\n <shared-form-field-slide-toggle\n *ngIf=\"!isDenyToUpdate && !fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n ></shared-form-field-slide-toggle>\n <shared-form-field-slide-toggle-show\n *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-slide-toggle-show>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeTextarea\">\n <div class=\"textarea-field-width\" [ngClass]=\"{'small-form-width-form-field': config?.smallFormWidth}\">\n <label\n [id]=\"'field-' + fieldData.field\">{{ fieldData.title }}{{ fieldData.validators && fieldData.validators.includes('required') ? ' *' : '' }}</label>\n <ng-container *ngIf=\"!isDenyToUpdate && !fieldData.options.notEditable\">\n <textarea matInput rows=\"6\" [formControlName]=\"fieldData.field\"></textarea>\n <div class=\"textarea-field-length\">\n <span>\u0422\u0435\u043A\u0443\u0449\u0430\u044F \u0434\u043B\u0438\u043D\u0430: {{ form.get(fieldData.field).value?.length || 0 }}</span>\n </div>\n </ng-container>\n <ng-container *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\">\n <shared-form-field-textarea-show\n *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-textarea-show>\n </ng-container>\n </div>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeTextareaEditor\">\n <div class=\"textarea-field-width\">\n <label\n [id]=\"'field-' + fieldData.field\">{{ fieldData.title }}{{ fieldData.validators && fieldData.validators.includes('required') ? ' *' : '' }}</label>\n <ng-container *ngIf=\"!isDenyToUpdate && !fieldData.options.notEditable\">\n <div *ngIf=\"fieldData.description\" class=\"field-description\">\n {{ fieldData.description }}\n </div>\n <ckeditor [formControlName]=\"fieldData.field\"\n [config]=\"ckeConfig\"></ckeditor>\n <div class=\"textarea-field-length\">\n <b>\u0422\u0435\u043A\u0443\u0449\u0430\u044F \u0434\u043B\u0438\u043D\u0430: {{ form.get(fieldData.field).value?.length || 0 }}</b>\n </div>\n </ng-container>\n <shared-form-field-textarea-show\n *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-textarea-show>\n </div>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeFile\">\n <shared-form-field-file\n *ngIf=\"!isDenyToUpdate && !fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n [entity]=\"entity\"\n ></shared-form-field-file>\n <shared-form-field-file-show\n *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-file-show>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeFiles\">\n @if (!isDenyToUpdate && !fieldData.options.notEditable) {\n <shared-form-field-files\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n [itemId]=\"itemId\"\n ></shared-form-field-files>\n } @else {\n <shared-form-field-files-show\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [entityId]=\"form.get('id').value\"\n [entitySection]=\"entity\"\n ></shared-form-field-files-show>\n }\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeJSON\">\n <div class=\"textarea-field-width\" [ngClass]=\"{'small-form-width-form-field': config?.smallFormWidth}\">\n <label\n [id]=\"'field-' + fieldData.field\">{{ fieldData.title }}{{ fieldData.validators && fieldData.validators.includes('required') ? ' *' : '' }}</label>\n @if (!isDenyToUpdate && !fieldData.options.notEditable) {\n <textarea matInput rows=\"6\" [formControlName]=\"fieldData.field\"></textarea>\n } @else {\n <shared-form-field-json-show\n *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-json-show>\n }\n </div>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeTags\">\n <shared-form-field-tags\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n [itemId]=\"itemId\"\n ></shared-form-field-tags>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n @if (!isDenyToUpdate && !fieldData.options.notEditable) {\n <shared-form-field-input\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n ></shared-form-field-input>\n } @else {\n <shared-form-field-input-show\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-input-show>\n }\n </ng-container>\n </ng-container>\n <div *ngIf=\"fieldData.actions\" class=\"field-actions\">\n <ng-container *ngFor=\"let action of fieldData.actions\">\n <div class=\"field-actions-action\" (click)=\"fieldActionHandler(action)\">{{ action.title }}</div>\n </ng-container>\n </div>\n <!-- <shared-form-field-spinner *ngIf=\"loading\"></shared-form-field-spinner>-->\n <ng-container *ngIf=\"fieldData.options?.hint\">\n <mat-icon class=\"hint-icons\" (click)=\"openHintDialog(fieldData.options?.hint)\">help_outline</mat-icon>\n </ng-container>\n } @else {\n <ng-container *ngComponentOutlet=\"fieldData.options?.showing?.customEditViewComponent;\n injector: componentDataInjector;\"/>\n }\n\n <shared-form-field-error\n @appearFromLeft\n *ngIf=\"fieldControl && fieldControl['touched'] && !fieldControl.valid\"\n [form]=\"form\"\n [fieldData]=\"fieldData\"\n [errorMessageTexts]=\"errorMessageTexts\"\n [ngClass]=\"{'textarea-error': fieldData.type === fieldTypes.FieldTypeTextarea}\"\n ></shared-form-field-error>\n\n <shared-form-field-publish-error\n [form]=\"form\"\n [entity]=\"entity\"\n [fieldData]=\"fieldData\"\n [errorMessageTexts]=\"errorMessageTexts\"\n [ngClass]=\"{'textarea-error': fieldData.type === fieldTypes.FieldTypeTextarea}\"\n ></shared-form-field-publish-error>\n</div>\n", styles: [".mb-21{margin-bottom:21px}.field-description{border-radius:8px;color:#5f5b5b;margin:5px 5px 15px;border-left:3px solid #009ce5;padding:10px 0 10px 10px;background:#009ce542}.field-actions{display:flex;justify-content:flex-end;margin-bottom:5px}.field-actions .field-actions-action{padding:0 10px;text-align:right;background:#007bff;color:#fff;border-radius:4px}.textarea-field-length{background:#f8f8f8;text-align:right;padding-right:10px;color:#989494;border-bottom:1px solid #d1d1d1;font-size:11px;border-bottom-left-radius:7px;border-bottom-right-radius:7px}.hint-icons{position:absolute;right:0;margin-top:9px}.textarea-field-width{display:flex;flex-direction:column}.textarea-field-width label{position:absolute;margin-top:-9px;background:#fff;font-family:Inter,sans-serif;font-size:14px;margin-left:14px;line-height:10px}.textarea-field-width textarea{border-radius:7px;border-color:#74777f}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$3.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModule", "ngComponentOutletNgModuleFactory"] }, { 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.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$3.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1$3.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "component", type: FormFieldErrorComponent, selector: "shared-form-field-error", inputs: ["fieldData", "form", "errorMessageTexts"] }, { kind: "component", type: FormFieldPublishErrorComponent, selector: "shared-form-field-publish-error", inputs: ["fieldData", "form", "entity", "errorMessageTexts"] }, { kind: "directive", type: i3$3.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "directive", type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i7.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: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i11.CKEditorComponent, selector: "ckeditor", inputs: ["config", "editorUrl", "tagName", "type", "data", "readOnly"], outputs: ["namespaceLoaded", "ready", "dataReady", "change", "dataChange", "dragStart", "dragEnd", "drop", "fileUploadResponse", "fileUploadRequest", "focus", "paste", "afterPaste", "blur"] }, { kind: "component", type: FormFieldSelectComponent, selector: "shared-form-field-select", inputs: ["config", "fieldData", "form", "autoCompleteFields"] }, { kind: "component", type: FormFieldSelectShowComponent, selector: "shared-form-field-select-show", inputs: ["config", "fieldData", "value"] }, { kind: "component", type: FormFieldSlideToggleComponent, selector: "shared-form-field-slide-toggle", inputs: ["config", "fieldData", "form"] }, { kind: "component", type: FormFieldInputComponent, selector: "shared-form-field-input", inputs: ["config", "fieldData", "form"] }, { kind: "component", type: FormFieldFileComponent, selector: "shared-form-field-file", inputs: ["config", "fieldData", "form", "entity"] }, { kind: "component", type: FormFieldFilesComponent, selector: "shared-form-field-files", inputs: ["config", "fieldData", "form", "itemId"] }, { kind: "component", type: FormFieldFileShowComponent, selector: "shared-form-field-file-show", inputs: ["config", "fieldData", "value"] }, { kind: "component", type: FormFieldSlideToggleShowComponent, selector: "shared-form-field-slide-toggle-show", inputs: ["config", "fieldData", "value"] }, { kind: "component", type: FormFieldInputShowComponent, selector: "shared-form-field-input-show", inputs: ["config", "fieldData", "value"] }, { kind: "component", type: FormFieldFilesShowComponent, selector: "shared-form-field-files-show", inputs: ["config", "fieldData", "entityId", "entitySection"] }, { kind: "component", type: FormFieldJsonShowComponent, selector: "shared-form-field-json-show", inputs: ["config", "fieldData", "value"] }, { kind: "component", type: FormFieldTagsComponent, selector: "shared-form-field-tags", inputs: ["config", "fieldData", "form", "itemId"] }, { kind: "component", type: FormFieldTextareaShowComponent, selector: "shared-form-field-textarea-show", inputs: ["config", "fieldData", "value"] }], animations: [appearFromLeft], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
9862
9894
|
}
|
|
9863
9895
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormFieldComponent, decorators: [{
|
|
9864
9896
|
type: Component,
|
|
9865
|
-
args: [{ selector: 'shared-form-field', changeDetection: ChangeDetectionStrategy.OnPush, animations: [appearFromLeft], template: "<div *ngIf=\"!fieldData.options?.hide\"\n fxLayout=\"column\"\n class=\"position-relative form-field\"\n [id]=\"'field-' + fieldData.field\"\n [formGroup]=\"form\"\n [ngClass]=\"{\n 'border-block textarea-field mb-21': fieldData.type === fieldTypes.FieldTypeTextarea || fieldData.type === fieldTypes.FieldTypeTextareaEditor,\n 'form-field-error': haveFieldError,\n 'form-field-warning': haveFieldWarning,\n 'check-box-field': fieldData.type === fieldTypes.FieldTypeSlideToggle,\n 'preview-mode': isDenyToUpdate || fieldData.options.notEditable\n }\">\n\n @if (!fieldData.options?.showing?.customEditViewComponent && !fieldData.options?.notNeedFormControl) {\n <ng-container [ngSwitch]=\"fieldData.type\">\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeSelect\">\n <shared-form-field-select\n *ngIf=\"!isDenyToUpdate && !fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n [autoCompleteFields]=\"autoCompleteFields\"\n ></shared-form-field-select>\n <shared-form-field-select-show\n *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-select-show>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeSlideToggle\">\n <shared-form-field-slide-toggle\n *ngIf=\"!isDenyToUpdate && !fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n ></shared-form-field-slide-toggle>\n <shared-form-field-slide-toggle-show\n *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-slide-toggle-show>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeTextarea\">\n <div class=\"textarea-field-width\" [ngClass]=\"{'small-form-width-form-field': config?.smallFormWidth}\">\n <label\n [id]=\"'field-' + fieldData.field\">{{ fieldData.title }}{{ fieldData.validators && fieldData.validators.includes('required') ? ' *' : '' }}</label>\n <ng-container *ngIf=\"!isDenyToUpdate && !fieldData.options.notEditable\">\n <textarea matInput rows=\"6\" [formControlName]=\"fieldData.field\"></textarea>\n <div class=\"textarea-field-length\">\n <
|
|
9897
|
+
args: [{ selector: 'shared-form-field', changeDetection: ChangeDetectionStrategy.OnPush, animations: [appearFromLeft], template: "<div *ngIf=\"!fieldData.options?.hide\"\n fxLayout=\"column\"\n class=\"position-relative form-field\"\n [id]=\"'field-' + fieldData.field\"\n [formGroup]=\"form\"\n [ngClass]=\"{\n 'border-block textarea-field mb-21': fieldData.type === fieldTypes.FieldTypeTextarea || fieldData.type === fieldTypes.FieldTypeTextareaEditor,\n 'form-field-error': haveFieldError,\n 'form-field-warning': haveFieldWarning,\n 'check-box-field': fieldData.type === fieldTypes.FieldTypeSlideToggle,\n 'preview-mode': isDenyToUpdate || fieldData.options.notEditable\n }\">\n\n @if (!fieldData.options?.showing?.customEditViewComponent && !fieldData.options?.notNeedFormControl) {\n <ng-container [ngSwitch]=\"fieldData.type\">\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeSelect\">\n <shared-form-field-select\n *ngIf=\"!isDenyToUpdate && !fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n [autoCompleteFields]=\"autoCompleteFields\"\n ></shared-form-field-select>\n <shared-form-field-select-show\n *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-select-show>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeSlideToggle\">\n <shared-form-field-slide-toggle\n *ngIf=\"!isDenyToUpdate && !fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n ></shared-form-field-slide-toggle>\n <shared-form-field-slide-toggle-show\n *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-slide-toggle-show>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeTextarea\">\n <div class=\"textarea-field-width\" [ngClass]=\"{'small-form-width-form-field': config?.smallFormWidth}\">\n <label\n [id]=\"'field-' + fieldData.field\">{{ fieldData.title }}{{ fieldData.validators && fieldData.validators.includes('required') ? ' *' : '' }}</label>\n <ng-container *ngIf=\"!isDenyToUpdate && !fieldData.options.notEditable\">\n <textarea matInput rows=\"6\" [formControlName]=\"fieldData.field\"></textarea>\n <div class=\"textarea-field-length\">\n <span>\u0422\u0435\u043A\u0443\u0449\u0430\u044F \u0434\u043B\u0438\u043D\u0430: {{ form.get(fieldData.field).value?.length || 0 }}</span>\n </div>\n </ng-container>\n <ng-container *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\">\n <shared-form-field-textarea-show\n *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-textarea-show>\n </ng-container>\n </div>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeTextareaEditor\">\n <div class=\"textarea-field-width\">\n <label\n [id]=\"'field-' + fieldData.field\">{{ fieldData.title }}{{ fieldData.validators && fieldData.validators.includes('required') ? ' *' : '' }}</label>\n <ng-container *ngIf=\"!isDenyToUpdate && !fieldData.options.notEditable\">\n <div *ngIf=\"fieldData.description\" class=\"field-description\">\n {{ fieldData.description }}\n </div>\n <ckeditor [formControlName]=\"fieldData.field\"\n [config]=\"ckeConfig\"></ckeditor>\n <div class=\"textarea-field-length\">\n <b>\u0422\u0435\u043A\u0443\u0449\u0430\u044F \u0434\u043B\u0438\u043D\u0430: {{ form.get(fieldData.field).value?.length || 0 }}</b>\n </div>\n </ng-container>\n <shared-form-field-textarea-show\n *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-textarea-show>\n </div>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeFile\">\n <shared-form-field-file\n *ngIf=\"!isDenyToUpdate && !fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n [entity]=\"entity\"\n ></shared-form-field-file>\n <shared-form-field-file-show\n *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-file-show>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeFiles\">\n @if (!isDenyToUpdate && !fieldData.options.notEditable) {\n <shared-form-field-files\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n [itemId]=\"itemId\"\n ></shared-form-field-files>\n } @else {\n <shared-form-field-files-show\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [entityId]=\"form.get('id').value\"\n [entitySection]=\"entity\"\n ></shared-form-field-files-show>\n }\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeJSON\">\n <div class=\"textarea-field-width\" [ngClass]=\"{'small-form-width-form-field': config?.smallFormWidth}\">\n <label\n [id]=\"'field-' + fieldData.field\">{{ fieldData.title }}{{ fieldData.validators && fieldData.validators.includes('required') ? ' *' : '' }}</label>\n @if (!isDenyToUpdate && !fieldData.options.notEditable) {\n <textarea matInput rows=\"6\" [formControlName]=\"fieldData.field\"></textarea>\n } @else {\n <shared-form-field-json-show\n *ngIf=\"isDenyToUpdate || fieldData.options.notEditable\"\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-json-show>\n }\n </div>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeTags\">\n <shared-form-field-tags\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n [itemId]=\"itemId\"\n ></shared-form-field-tags>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n @if (!isDenyToUpdate && !fieldData.options.notEditable) {\n <shared-form-field-input\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [form]=\"form\"\n ></shared-form-field-input>\n } @else {\n <shared-form-field-input-show\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"form.get(fieldData.field).value\"\n ></shared-form-field-input-show>\n }\n </ng-container>\n </ng-container>\n <div *ngIf=\"fieldData.actions\" class=\"field-actions\">\n <ng-container *ngFor=\"let action of fieldData.actions\">\n <div class=\"field-actions-action\" (click)=\"fieldActionHandler(action)\">{{ action.title }}</div>\n </ng-container>\n </div>\n <!-- <shared-form-field-spinner *ngIf=\"loading\"></shared-form-field-spinner>-->\n <ng-container *ngIf=\"fieldData.options?.hint\">\n <mat-icon class=\"hint-icons\" (click)=\"openHintDialog(fieldData.options?.hint)\">help_outline</mat-icon>\n </ng-container>\n } @else {\n <ng-container *ngComponentOutlet=\"fieldData.options?.showing?.customEditViewComponent;\n injector: componentDataInjector;\"/>\n }\n\n <shared-form-field-error\n @appearFromLeft\n *ngIf=\"fieldControl && fieldControl['touched'] && !fieldControl.valid\"\n [form]=\"form\"\n [fieldData]=\"fieldData\"\n [errorMessageTexts]=\"errorMessageTexts\"\n [ngClass]=\"{'textarea-error': fieldData.type === fieldTypes.FieldTypeTextarea}\"\n ></shared-form-field-error>\n\n <shared-form-field-publish-error\n [form]=\"form\"\n [entity]=\"entity\"\n [fieldData]=\"fieldData\"\n [errorMessageTexts]=\"errorMessageTexts\"\n [ngClass]=\"{'textarea-error': fieldData.type === fieldTypes.FieldTypeTextarea}\"\n ></shared-form-field-publish-error>\n</div>\n", styles: [".mb-21{margin-bottom:21px}.field-description{border-radius:8px;color:#5f5b5b;margin:5px 5px 15px;border-left:3px solid #009ce5;padding:10px 0 10px 10px;background:#009ce542}.field-actions{display:flex;justify-content:flex-end;margin-bottom:5px}.field-actions .field-actions-action{padding:0 10px;text-align:right;background:#007bff;color:#fff;border-radius:4px}.textarea-field-length{background:#f8f8f8;text-align:right;padding-right:10px;color:#989494;border-bottom:1px solid #d1d1d1;font-size:11px;border-bottom-left-radius:7px;border-bottom-right-radius:7px}.hint-icons{position:absolute;right:0;margin-top:9px}.textarea-field-width{display:flex;flex-direction:column}.textarea-field-width label{position:absolute;margin-top:-9px;background:#fff;font-family:Inter,sans-serif;font-size:14px;margin-left:14px;line-height:10px}.textarea-field-width textarea{border-radius:7px;border-color:#74777f}\n"] }]
|
|
9866
9898
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
9867
9899
|
type: Inject,
|
|
9868
9900
|
args: [CORE_CONFIG]
|
|
@@ -9943,7 +9975,7 @@ class AutoFormShowFieldComponent {
|
|
|
9943
9975
|
}
|
|
9944
9976
|
}
|
|
9945
9977
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AutoFormShowFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9946
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: AutoFormShowFieldComponent, selector: "shared-auto-form-show-field", inputs: { fieldData: "fieldData", data: "data", entityId: "entityId", entitySection: "entitySection", config: "config" }, ngImport: i0, template: "<div fxLayout=\"column\"\n class=\"position-relative form-field\">\n <ng-container [ngSwitch]=\"fieldData.type\">\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeSelect\">\n <shared-form-field-select-show\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"value\"\n ></shared-form-field-select-show>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeSelectMultiple\">\n <shared-form-field-select-show\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"value\"\n ></shared-form-field-select-show>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeSlideToggle\">\n <shared-form-field-slide-toggle-show\n [config]=\"config\"\n [fieldData]=\"fieldData\" [value]=\"value\"></shared-form-field-slide-toggle-show>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeTextarea\">\n <label class=\"show-label\">{{fieldData.title}}</label>\n <div class=\"form-field-value\">{{value}}</div>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeTextareaEditor\">\n <label class=\"show-label\">{{fieldData.title}}</label>\n <div class=\"form-field-value\" [innerHTML]=\"value\"></div>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeFile\">\n <shared-form-field-file-show\n [config]=\"config\"\n [fieldData]=\"fieldData\" [value]=\"value\"></shared-form-field-file-show>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeRating\">\n <shared-star-rating\n [config]=\"config\"\n [rating]=\"value\"></shared-star-rating>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeFiles\">\n <shared-form-field-files-show [fieldData]=\"fieldData\"\n [entityId]=\"entityId\"\n [entitySection]=\"entitySection\"></shared-form-field-files-show>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <shared-form-field-input-show [fieldData]=\"fieldData\" [value]=\"value\"></shared-form-field-input-show>\n </ng-container>\n </ng-container>\n</div>\n", styles: [".form-field{margin-bottom:20px}.form-field:last-child{margin-bottom:0}.show-label{font-size:12px;opacity:.5}.form-field-value{font-size:16px}.mb-21{margin-bottom:21px}.textarea-field-width{width:100%;max-width:1000px}\n"], dependencies: [{ kind: "directive", type: i1$3.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$3.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1$3.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "directive", type:
|
|
9978
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: AutoFormShowFieldComponent, selector: "shared-auto-form-show-field", inputs: { fieldData: "fieldData", data: "data", entityId: "entityId", entitySection: "entitySection", config: "config" }, ngImport: i0, template: "<div fxLayout=\"column\"\n class=\"position-relative form-field\">\n <ng-container [ngSwitch]=\"fieldData.type\">\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeSelect\">\n <shared-form-field-select-show\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"value\"\n ></shared-form-field-select-show>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeSelectMultiple\">\n <shared-form-field-select-show\n [config]=\"config\"\n [fieldData]=\"fieldData\"\n [value]=\"value\"\n ></shared-form-field-select-show>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeSlideToggle\">\n <shared-form-field-slide-toggle-show\n [config]=\"config\"\n [fieldData]=\"fieldData\" [value]=\"value\"></shared-form-field-slide-toggle-show>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeTextarea\">\n <label class=\"show-label\">{{fieldData.title}}</label>\n <div class=\"form-field-value\">{{value}}</div>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeTextareaEditor\">\n <label class=\"show-label\">{{fieldData.title}}</label>\n <div class=\"form-field-value\" [innerHTML]=\"value\"></div>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeFile\">\n <shared-form-field-file-show\n [config]=\"config\"\n [fieldData]=\"fieldData\" [value]=\"value\"></shared-form-field-file-show>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeRating\">\n <shared-star-rating\n [config]=\"config\"\n [rating]=\"value\"></shared-star-rating>\n </ng-container>\n\n <ng-container *ngSwitchCase=\"fieldTypes.FieldTypeFiles\">\n <shared-form-field-files-show [fieldData]=\"fieldData\"\n [entityId]=\"entityId\"\n [entitySection]=\"entitySection\"></shared-form-field-files-show>\n </ng-container>\n\n <ng-container *ngSwitchDefault>\n <shared-form-field-input-show [fieldData]=\"fieldData\" [value]=\"value\"></shared-form-field-input-show>\n </ng-container>\n </ng-container>\n</div>\n", styles: [".form-field{margin-bottom:20px}.form-field:last-child{margin-bottom:0}.show-label{font-size:12px;opacity:.5}.form-field-value{font-size:16px}.mb-21{margin-bottom:21px}.textarea-field-width{width:100%;max-width:1000px}\n"], dependencies: [{ kind: "directive", type: i1$3.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$3.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1$3.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "directive", type: i7.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: "component", type: StarRatingComponent, selector: "shared-star-rating", inputs: ["rating", "size", "config"] }, { kind: "component", type: FormFieldSelectShowComponent, selector: "shared-form-field-select-show", inputs: ["config", "fieldData", "value"] }, { kind: "component", type: FormFieldFileShowComponent, selector: "shared-form-field-file-show", inputs: ["config", "fieldData", "value"] }, { kind: "component", type: FormFieldSlideToggleShowComponent, selector: "shared-form-field-slide-toggle-show", inputs: ["config", "fieldData", "value"] }, { kind: "component", type: FormFieldInputShowComponent, selector: "shared-form-field-input-show", inputs: ["config", "fieldData", "value"] }, { kind: "component", type: FormFieldFilesShowComponent, selector: "shared-form-field-files-show", inputs: ["config", "fieldData", "entityId", "entitySection"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
9947
9979
|
}
|
|
9948
9980
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AutoFormShowFieldComponent, decorators: [{
|
|
9949
9981
|
type: Component,
|
|
@@ -10062,7 +10094,7 @@ class PanelComponent {
|
|
|
10062
10094
|
this.isOpened = !this.isOpened;
|
|
10063
10095
|
}
|
|
10064
10096
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
10065
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: PanelComponent, selector: "shared-panel", inputs: { title: "title", smallDescription: "smallDescription", description: "description", color: "color", buttonColor: "buttonColor" }, outputs: { close: "close" }, ngImport: i0, template: "<div class=\"fuse-card\" [ngClass]=\"'bg-'+color\">\n\n <div class=\"p-10 cursor-pointer\"\n fxLayout=\"row\"\n fxLayoutAlign=\"space-between center\"\n (click)=\"toggleExpanded()\">\n <div class=\"h4\">{{title}}</div>\n <shared-button\n [color]=\"buttonColor\"\n [icon]=\"isOpened ? 'keyboard_arrow_up' : 'keyboard_arrow_down'\"></shared-button>\n </div>\n\n <div *ngIf=\"smallDescription\" class=\"p-16 pt-0 line-height-1.75\" [innerHTML]=\"smallDescription\">\n </div>\n\n <div class=\"card-expand-area\" *ngIf=\"isOpened\" [@expandCollapse]>\n <div class=\"card-expanded-content\" [innerHTML]=\"description\"></div>\n </div>\n\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ButtonComponent, selector: "shared-button", inputs: ["icon", "iconColor", "iconSize", "rightIcon", "disabled", "loading", "active", "stopPropagation", "type", "color", "fullWidth", "size", "styleTheme", "tooltip", "tooltipPosition"], outputs: ["clickButton"] }, { kind: "directive", type:
|
|
10097
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: PanelComponent, selector: "shared-panel", inputs: { title: "title", smallDescription: "smallDescription", description: "description", color: "color", buttonColor: "buttonColor" }, outputs: { close: "close" }, ngImport: i0, template: "<div class=\"fuse-card\" [ngClass]=\"'bg-'+color\">\n\n <div class=\"p-10 cursor-pointer\"\n fxLayout=\"row\"\n fxLayoutAlign=\"space-between center\"\n (click)=\"toggleExpanded()\">\n <div class=\"h4\">{{title}}</div>\n <shared-button\n [color]=\"buttonColor\"\n [icon]=\"isOpened ? 'keyboard_arrow_up' : 'keyboard_arrow_down'\"></shared-button>\n </div>\n\n <div *ngIf=\"smallDescription\" class=\"p-16 pt-0 line-height-1.75\" [innerHTML]=\"smallDescription\">\n </div>\n\n <div class=\"card-expand-area\" *ngIf=\"isOpened\" [@expandCollapse]>\n <div class=\"card-expanded-content\" [innerHTML]=\"description\"></div>\n </div>\n\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ButtonComponent, selector: "shared-button", inputs: ["icon", "iconColor", "iconSize", "rightIcon", "disabled", "loading", "active", "stopPropagation", "type", "color", "fullWidth", "size", "styleTheme", "tooltip", "tooltipPosition"], outputs: ["clickButton"] }, { kind: "directive", type: i7.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: i7.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"] }], animations: [expandCollapse], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
10066
10098
|
}
|
|
10067
10099
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PanelComponent, decorators: [{
|
|
10068
10100
|
type: Component,
|
|
@@ -10188,7 +10220,7 @@ class PublicationMessagesComponent {
|
|
|
10188
10220
|
return this.autoFormService.prepareFormFieldPublicationMessage(messages, this.publishErrorConstants, this.fields);
|
|
10189
10221
|
}
|
|
10190
10222
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PublicationMessagesComponent, deps: [{ token: PublicationMessagesFacade }, { token: AutoFormService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
10191
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", 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 class=\"no-publish-error\">\n <mat-icon class=\"no-publish-error-ico\">assignment_late</mat-icon>\n <div class=\"no-publish-error-text\">\n <div>{{unPublishedTitle}}</div>\n <div class=\"fs-12 pt-0\">{{unPublishedMessage}}</div>\n </div>\n </div>\n</div>\n<ng-container *ngIf=\"errors?.length\">\n <ng-container\n *ngTemplateOutlet=\"listMessages; context: {title: errorTitle, isError: true, messages: errors}\"></ng-container>\n</ng-container>\n<ng-container *ngIf=\"recommendation?.length\">\n <ng-container\n *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\n \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}.no-publish-error{display:flex}.no-publish-error .no-publish-error-ico{font-size:43px;margin-right: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: "directive", type:
|
|
10223
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", 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 class=\"no-publish-error\">\n <mat-icon class=\"no-publish-error-ico\">assignment_late</mat-icon>\n <div class=\"no-publish-error-text\">\n <div>{{unPublishedTitle}}</div>\n <div class=\"fs-12 pt-0\">{{unPublishedMessage}}</div>\n </div>\n </div>\n</div>\n<ng-container *ngIf=\"errors?.length\">\n <ng-container\n *ngTemplateOutlet=\"listMessages; context: {title: errorTitle, isError: true, messages: errors}\"></ng-container>\n</ng-container>\n<ng-container *ngIf=\"recommendation?.length\">\n <ng-container\n *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\n \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}.no-publish-error{display:flex}.no-publish-error .no-publish-error-ico{font-size:43px;margin-right: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: "directive", type: i7.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: i7.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$1.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", "fullWidth", "size", "styleTheme", "tooltip", "tooltipPosition"], outputs: ["clickButton"] }, { kind: "pipe", type: i1$3.DatePipe, name: "date" }], animations: [expandCollapse, appearFromLeftWithDelay], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
10192
10224
|
}
|
|
10193
10225
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: PublicationMessagesComponent, decorators: [{
|
|
10194
10226
|
type: Component,
|
|
@@ -10274,6 +10306,34 @@ class AutoFormMainComponent {
|
|
|
10274
10306
|
el.scrollIntoView();
|
|
10275
10307
|
}, 0);
|
|
10276
10308
|
}
|
|
10309
|
+
getFormFieldClass(data) {
|
|
10310
|
+
let className = [];
|
|
10311
|
+
if (data.options.col) {
|
|
10312
|
+
className.push(`col-lg-${data.options.col}`);
|
|
10313
|
+
}
|
|
10314
|
+
if (data.options.colXxl) {
|
|
10315
|
+
className.push(`col-xxl-${data.options.colXxl}`);
|
|
10316
|
+
}
|
|
10317
|
+
if (data.options.colXl) {
|
|
10318
|
+
className.push(`col-xl-${data.options.colXl}`);
|
|
10319
|
+
}
|
|
10320
|
+
if (data.options.colLg) {
|
|
10321
|
+
className.push(`col-lg-${data.options.colLg}`);
|
|
10322
|
+
}
|
|
10323
|
+
if (data.options.colMd) {
|
|
10324
|
+
className.push(`col-md-${data.options.colMd}`);
|
|
10325
|
+
}
|
|
10326
|
+
if (!className.length) {
|
|
10327
|
+
className.push(`col-lg-12`);
|
|
10328
|
+
}
|
|
10329
|
+
if (data.options.colSm) {
|
|
10330
|
+
className.push(`col-sm-${data.options.colSm}`);
|
|
10331
|
+
}
|
|
10332
|
+
else {
|
|
10333
|
+
className.push(`col-sm-12`);
|
|
10334
|
+
}
|
|
10335
|
+
return className.join(' ');
|
|
10336
|
+
}
|
|
10277
10337
|
getQueryParams() {
|
|
10278
10338
|
this.route.queryParamMap
|
|
10279
10339
|
.pipe(untilComponentDestroyed(this))
|
|
@@ -10487,11 +10547,11 @@ class AutoFormMainComponent {
|
|
|
10487
10547
|
return result;
|
|
10488
10548
|
}
|
|
10489
10549
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AutoFormMainComponent, deps: [{ token: FormErrorsFacade }, { token: FormsFacade }, { token: BaseAutoFormService }, { token: AutoFormService }, { token: PublicationMessagesFacade }, { token: i2.ActivatedRoute }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
10490
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "18.2.13", type: AutoFormMainComponent, selector: "shared-auto-form", inputs: { fields: "fields", itemId: ["itemId", "itemId", numberAttribute], formId: "formId", showPublicationMessages: "showPublicationMessages", useEntityPermissions: "useEntityPermissions", showProgressBar: "showProgressBar", showFormMessageBox: "showFormMessageBox", form: "form", editorImageUploadUrl: "editorImageUploadUrl", errorMessageTexts: "errorMessageTexts", entity: "entity", havePublication: "havePublication", config: "config" }, outputs: { changed: "changed", formCompleted: "formCompleted" }, usesOnChanges: true, ngImport: i0, template: "<shared-smart-progress-bar *ngIf=\"showProgressBar && 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 [ngClass]=\"{'small-form-width': config?.smallFormWidth}\"\n class=\"form-group-fields\">\n <div *ngFor=\"let item of groupedFields[group]; trackBy: truckByFieldName\"\n class=\"form-field-row
|
|
10550
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "18.2.13", type: AutoFormMainComponent, selector: "shared-auto-form", inputs: { fields: "fields", itemId: ["itemId", "itemId", numberAttribute], formId: "formId", showPublicationMessages: "showPublicationMessages", useEntityPermissions: "useEntityPermissions", showProgressBar: "showProgressBar", showFormMessageBox: "showFormMessageBox", form: "form", editorImageUploadUrl: "editorImageUploadUrl", errorMessageTexts: "errorMessageTexts", entity: "entity", havePublication: "havePublication", config: "config" }, outputs: { changed: "changed", formCompleted: "formCompleted" }, usesOnChanges: true, ngImport: i0, template: "<shared-smart-progress-bar *ngIf=\"showProgressBar && 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 container\"\n [ngClass]=\"{'form-group-open': groupsState[group]}\">\n\n <h2 *ngIf=\"group && object_.keys(groupedFields)?.length > 1\" 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 [ngClass]=\"{'small-form-width': config?.smallFormWidth}\"\n class=\"row form-group-fields\">\n <div *ngFor=\"let item of groupedFields[group]; trackBy: truckByFieldName\"\n class=\"form-field-row\"\n [ngClass]=\"getFormFieldClass(item)\">\n <div *ngIf=\"isAvailableToUpdate\" [ngClass]=\"{'field-tab': group}\">\n <shared-form-field\n [config]=\"config\"\n [itemId]=\"itemId\"\n [fieldData]=\"item\"\n [form]=\"form\"\n [errorMessageTexts]=\"errorMessageTexts\"\n [editorImageUploadUrl]=\"editorImageUploadUrl\"\n [entity]=\"entity\"\n [fields]=\"fields\"\n [formData]=\"form.value\"\n [publicationMessages]=\"allPublicationMessages\"\n [autoCompleteFields]=\"autoCompleteFields\"\n [entityPermissionUpdateDanyFields]=\"entityPermissionUpdateDanyFields\"\n ></shared-form-field>\n </div>\n <div *ngIf=\"!isAvailableToUpdate\" [ngClass]=\"{'field-tab': group}\">\n <shared-auto-form-show-field\n [config]=\"config\"\n [fieldData]=\"item\"\n [data]=\"form.value\"\n [entityId]=\"itemId\"\n [entitySection]=\"entity\"\n ></shared-auto-form-show-field>\n </div>\n </div>\n </div>\n</div>\n\n<div @appearFromLeft *ngIf=\"showFormMessageBox && 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 *ngIf=\"showFormMessageBox\"\n class=\"mt-20 mb-10\"\n [form]=\"form\"\n [fields]=\"fields\"\n [errorMessageTexts]=\"errorMessageTexts\"></shred-form-message-box>\n\n<ng-container *ngIf=\"showFormMessageBox && 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 *ngIf=\"itemId\"\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\n<ng-container *ngIf=\"isAvailableToUpdate\">\n <ng-content select=\"[submitButton]\"></ng-content>\n</ng-container>\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,.small-form-width .form-field-row{margin-bottom:10px}.small-form-width .show-label{margin-bottom:0!important}.form-field-group-title{font-size:18px;display:flex;margin-top:15px;background:#f5f5f5;padding:10px;border-radius:8px}\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$1.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: ["fields", "formData", "config", "fieldData", "itemId", "form", "editorImageUploadUrl", "errorMessageTexts", "entity", "publicationMessages", "entityTypeUserRoleRights", "autoCompleteFields", "entityPermissionUpdateDanyFields"], outputs: ["eventUpdateForm", "eventSendAction"] }, { kind: "component", type: AutoFormShowFieldComponent, selector: "shared-auto-form-show-field", inputs: ["fieldData", "data", "entityId", "entitySection", "config"] }, { 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 }); }
|
|
10491
10551
|
}
|
|
10492
10552
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AutoFormMainComponent, decorators: [{
|
|
10493
10553
|
type: Component,
|
|
10494
|
-
args: [{ selector: 'shared-auto-form', changeDetection: ChangeDetectionStrategy.OnPush, animations: [appearFromLeft, appearOpacity], template: "<shared-smart-progress-bar *ngIf=\"showProgressBar && 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 [ngClass]=\"{'small-form-width': config?.smallFormWidth}\"\n class=\"form-group-fields\">\n <div *ngFor=\"let item of groupedFields[group]; trackBy: truckByFieldName\"\n class=\"form-field-row
|
|
10554
|
+
args: [{ selector: 'shared-auto-form', changeDetection: ChangeDetectionStrategy.OnPush, animations: [appearFromLeft, appearOpacity], template: "<shared-smart-progress-bar *ngIf=\"showProgressBar && 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 container\"\n [ngClass]=\"{'form-group-open': groupsState[group]}\">\n\n <h2 *ngIf=\"group && object_.keys(groupedFields)?.length > 1\" 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 [ngClass]=\"{'small-form-width': config?.smallFormWidth}\"\n class=\"row form-group-fields\">\n <div *ngFor=\"let item of groupedFields[group]; trackBy: truckByFieldName\"\n class=\"form-field-row\"\n [ngClass]=\"getFormFieldClass(item)\">\n <div *ngIf=\"isAvailableToUpdate\" [ngClass]=\"{'field-tab': group}\">\n <shared-form-field\n [config]=\"config\"\n [itemId]=\"itemId\"\n [fieldData]=\"item\"\n [form]=\"form\"\n [errorMessageTexts]=\"errorMessageTexts\"\n [editorImageUploadUrl]=\"editorImageUploadUrl\"\n [entity]=\"entity\"\n [fields]=\"fields\"\n [formData]=\"form.value\"\n [publicationMessages]=\"allPublicationMessages\"\n [autoCompleteFields]=\"autoCompleteFields\"\n [entityPermissionUpdateDanyFields]=\"entityPermissionUpdateDanyFields\"\n ></shared-form-field>\n </div>\n <div *ngIf=\"!isAvailableToUpdate\" [ngClass]=\"{'field-tab': group}\">\n <shared-auto-form-show-field\n [config]=\"config\"\n [fieldData]=\"item\"\n [data]=\"form.value\"\n [entityId]=\"itemId\"\n [entitySection]=\"entity\"\n ></shared-auto-form-show-field>\n </div>\n </div>\n </div>\n</div>\n\n<div @appearFromLeft *ngIf=\"showFormMessageBox && 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 *ngIf=\"showFormMessageBox\"\n class=\"mt-20 mb-10\"\n [form]=\"form\"\n [fields]=\"fields\"\n [errorMessageTexts]=\"errorMessageTexts\"></shred-form-message-box>\n\n<ng-container *ngIf=\"showFormMessageBox && 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 *ngIf=\"itemId\"\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\n<ng-container *ngIf=\"isAvailableToUpdate\">\n <ng-content select=\"[submitButton]\"></ng-content>\n</ng-container>\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,.small-form-width .form-field-row{margin-bottom:10px}.small-form-width .show-label{margin-bottom:0!important}.form-field-group-title{font-size:18px;display:flex;margin-top:15px;background:#f5f5f5;padding:10px;border-radius:8px}\n"] }]
|
|
10495
10555
|
}], ctorParameters: () => [{ type: FormErrorsFacade }, { type: FormsFacade }, { type: BaseAutoFormService }, { type: AutoFormService }, { type: PublicationMessagesFacade }, { type: i2.ActivatedRoute }, { type: i0.ChangeDetectorRef }], propDecorators: { fields: [{
|
|
10496
10556
|
type: Input,
|
|
10497
10557
|
args: [{ required: true }]
|
|
@@ -11592,11 +11652,11 @@ class StaticDataItemsComponent {
|
|
|
11592
11652
|
return preparedRow;
|
|
11593
11653
|
}
|
|
11594
11654
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: StaticDataItemsComponent, deps: [{ token: RouterFacade }, { token: StaticDataFacade }, { token: i2$1.MatIconRegistry }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
11595
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: StaticDataItemsComponent, selector: "app-static-data-items", inputs: { items: "items", contentType: "contentType", queryParams: "queryParams", userRights: "userRights", staticSection: "staticSection" }, outputs: { delete: "delete" }, usesOnChanges: true, ngImport: i0, template: "<ng-container *ngIf=\"( preparedItems$ | async ) as items\">\n <table mat-table [dataSource]=\"items\" class=\"static-data-table\">\n <ng-container *ngFor=\"let fieldData of fieldsList\" [matColumnDef]=\"fieldData.field\">\n <th mat-header-cell *matHeaderCellDef> {{ fieldData.title }}</th>\n <td mat-cell *matCellDef=\"let element\"> {{ element[fieldData.field] }}</td>\n </ng-container>\n\n <ng-container [matColumnDef]=\"'actions'\">\n <th mat-header-cell *matHeaderCellDef> \u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F</th>\n <td mat-cell *matCellDef=\"let element\">\n <shared-button\n *ngIf=\"userRights[2]\"\n class=\"mr-5\"\n size=\"small\"\n icon=\"edit\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"accent\"\n (click)=\"edit(element.id)\">\n </shared-button>\n <shared-button\n *ngIf=\"userRights[3]\"\n icon=\"clear\"\n size=\"small\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"warn\"\n (click)=\"deleteAction(element)\">\n </shared-button>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns\"></tr>\n <tr mat-row\n (click)=\"edit(row.id)\"\n *matRowDef=\"let row; columns: displayedColumns;\"\n ></tr>\n\n <!--<tr>\n <th *ngFor=\"let fieldData of fieldsList\">{{ fieldData.title }}</th>\n </tr>\n <tr *ngFor=\"let item of ( preparedItems$ | async ) as items\">\n <ng-container *ngFor=\"let fieldData of fieldsList\">\n <td (click)=\"edit(item.id)\" [ngClass]=\"{'true-select': item[fieldData.field] === true }\">\n {{ item[fieldData.field] }}\n </td>\n </ng-container>\n\n <td class=\"action-field\">\n <shared-button\n *ngIf=\"userRights[2]\"\n class=\"mr-5\"\n size=\"small\"\n icon=\"edit\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"accent\"\n (click)=\"edit(item.id)\">\n </shared-button>\n <shared-button\n *ngIf=\"userRights[3]\"\n icon=\"clear\"\n size=\"small\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"warn\"\n (click)=\"deleteAction(item)\">\n </shared-button>\n </td>\n\n </tr>-->\n </table>\n</ng-container>\n\n<!--\n<table mat-table class=\"list-items\">\n <tr>\n <th *ngFor=\"let fieldData of fieldsList\">{{fieldData.title}}</th>\n </tr>\n <tr *ngFor=\"let item of ( preparedItems$ | async ) as items\">\n <ng-container *ngFor=\"let fieldData of fieldsList\">\n <td (click)=\"edit(item.id)\" [ngClass]=\"{'true-select': item[fieldData.field] === true }\">\n {{item[fieldData.field]}}\n </td>\n </ng-container>\n\n <td class=\"action-field\">\n <shared-button\n *ngIf=\"userRights[2]\"\n class=\"mr-5\"\n size=\"small\"\n icon=\"edit\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"accent\"\n (click)=\"edit(item.id)\">\n </shared-button>\n <shared-button\n *ngIf=\"userRights[3]\"\n icon=\"clear\"\n size=\"small\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"warn\"\n (click)=\"deleteAction(item)\">\n </shared-button>\n </td>\n\n </tr>\n</table>\n\n-->\n", styles: [".static-data-table{width:100%}.mat-mdc-row .mat-mdc-cell{border-bottom:1px solid transparent;border-top:1px solid transparent;cursor:pointer}.mat-mdc-row:hover .mat-mdc-cell{border-color:currentColor}\n"], dependencies: [{ 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: "component", type: i5$3.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i5$3.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i5$3.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i5$3.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i5$3.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i5$3.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i5$3.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i5$3.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i5$3.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i5$3.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: ButtonComponent, selector: "shared-button", inputs: ["icon", "iconColor", "iconSize", "rightIcon", "disabled", "loading", "active", "stopPropagation", "type", "color", "fullWidth", "size", "styleTheme", "tooltip", "tooltipPosition"], outputs: ["clickButton"] }, { kind: "pipe", type: i1$3.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
11655
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: StaticDataItemsComponent, selector: "app-static-data-items", inputs: { items: "items", contentType: "contentType", queryParams: "queryParams", userRights: "userRights", staticSection: "staticSection" }, outputs: { delete: "delete" }, usesOnChanges: true, ngImport: i0, template: "<ng-container *ngIf=\"( preparedItems$ | async ) as items\">\n <table mat-table [dataSource]=\"items\" class=\"static-data-table\">\n <ng-container *ngFor=\"let fieldData of fieldsList\" [matColumnDef]=\"fieldData.field\">\n <th mat-header-cell *matHeaderCellDef> {{ fieldData.title }}</th>\n <td mat-cell *matCellDef=\"let element\"> {{ element[fieldData.field] }}</td>\n </ng-container>\n\n <ng-container [matColumnDef]=\"'actions'\">\n <th mat-header-cell *matHeaderCellDef class=\"action-column\"> \u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F</th>\n <td mat-cell *matCellDef=\"let element\" class=\"action-column\">\n <shared-button\n *ngIf=\"userRights[2]\"\n class=\"mr-5\"\n size=\"small\"\n icon=\"edit\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"accent\"\n (click)=\"edit(element.id)\">\n </shared-button>\n <shared-button\n *ngIf=\"userRights[3]\"\n icon=\"clear\"\n size=\"small\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"warn\"\n (click)=\"deleteAction(element)\">\n </shared-button>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns\"></tr>\n <tr mat-row\n (click)=\"edit(row.id)\"\n *matRowDef=\"let row; columns: displayedColumns;\"\n ></tr>\n\n <!--<tr>\n <th *ngFor=\"let fieldData of fieldsList\">{{ fieldData.title }}</th>\n </tr>\n <tr *ngFor=\"let item of ( preparedItems$ | async ) as items\">\n <ng-container *ngFor=\"let fieldData of fieldsList\">\n <td (click)=\"edit(item.id)\" [ngClass]=\"{'true-select': item[fieldData.field] === true }\">\n {{ item[fieldData.field] }}\n </td>\n </ng-container>\n\n <td class=\"action-field\">\n <shared-button\n *ngIf=\"userRights[2]\"\n class=\"mr-5\"\n size=\"small\"\n icon=\"edit\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"accent\"\n (click)=\"edit(item.id)\">\n </shared-button>\n <shared-button\n *ngIf=\"userRights[3]\"\n icon=\"clear\"\n size=\"small\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"warn\"\n (click)=\"deleteAction(item)\">\n </shared-button>\n </td>\n\n </tr>-->\n </table>\n</ng-container>\n\n<!--\n<table mat-table class=\"list-items\">\n <tr>\n <th *ngFor=\"let fieldData of fieldsList\">{{fieldData.title}}</th>\n </tr>\n <tr *ngFor=\"let item of ( preparedItems$ | async ) as items\">\n <ng-container *ngFor=\"let fieldData of fieldsList\">\n <td (click)=\"edit(item.id)\" [ngClass]=\"{'true-select': item[fieldData.field] === true }\">\n {{item[fieldData.field]}}\n </td>\n </ng-container>\n\n <td class=\"action-field\">\n <shared-button\n *ngIf=\"userRights[2]\"\n class=\"mr-5\"\n size=\"small\"\n icon=\"edit\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"accent\"\n (click)=\"edit(item.id)\">\n </shared-button>\n <shared-button\n *ngIf=\"userRights[3]\"\n icon=\"clear\"\n size=\"small\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"warn\"\n (click)=\"deleteAction(item)\">\n </shared-button>\n </td>\n\n </tr>\n</table>\n\n-->\n", styles: [".static-data-table{width:100%}.mat-mdc-row .mat-mdc-cell{border-bottom:1px solid transparent;border-top:1px solid transparent;cursor:pointer}.mat-mdc-row:hover .mat-mdc-cell{border-color:currentColor}.action-column{text-align:right!important}\n"], dependencies: [{ 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: "component", type: i5$3.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i5$3.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i5$3.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i5$3.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i5$3.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i5$3.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i5$3.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i5$3.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i5$3.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i5$3.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: ButtonComponent, selector: "shared-button", inputs: ["icon", "iconColor", "iconSize", "rightIcon", "disabled", "loading", "active", "stopPropagation", "type", "color", "fullWidth", "size", "styleTheme", "tooltip", "tooltipPosition"], outputs: ["clickButton"] }, { kind: "pipe", type: i1$3.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
11596
11656
|
}
|
|
11597
11657
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: StaticDataItemsComponent, decorators: [{
|
|
11598
11658
|
type: Component,
|
|
11599
|
-
args: [{ selector: 'app-static-data-items', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"( preparedItems$ | async ) as items\">\n <table mat-table [dataSource]=\"items\" class=\"static-data-table\">\n <ng-container *ngFor=\"let fieldData of fieldsList\" [matColumnDef]=\"fieldData.field\">\n <th mat-header-cell *matHeaderCellDef> {{ fieldData.title }}</th>\n <td mat-cell *matCellDef=\"let element\"> {{ element[fieldData.field] }}</td>\n </ng-container>\n\n <ng-container [matColumnDef]=\"'actions'\">\n <th mat-header-cell *matHeaderCellDef> \u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F</th>\n <td mat-cell *matCellDef=\"let element\">\n <shared-button\n *ngIf=\"userRights[2]\"\n class=\"mr-5\"\n size=\"small\"\n icon=\"edit\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"accent\"\n (click)=\"edit(element.id)\">\n </shared-button>\n <shared-button\n *ngIf=\"userRights[3]\"\n icon=\"clear\"\n size=\"small\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"warn\"\n (click)=\"deleteAction(element)\">\n </shared-button>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns\"></tr>\n <tr mat-row\n (click)=\"edit(row.id)\"\n *matRowDef=\"let row; columns: displayedColumns;\"\n ></tr>\n\n <!--<tr>\n <th *ngFor=\"let fieldData of fieldsList\">{{ fieldData.title }}</th>\n </tr>\n <tr *ngFor=\"let item of ( preparedItems$ | async ) as items\">\n <ng-container *ngFor=\"let fieldData of fieldsList\">\n <td (click)=\"edit(item.id)\" [ngClass]=\"{'true-select': item[fieldData.field] === true }\">\n {{ item[fieldData.field] }}\n </td>\n </ng-container>\n\n <td class=\"action-field\">\n <shared-button\n *ngIf=\"userRights[2]\"\n class=\"mr-5\"\n size=\"small\"\n icon=\"edit\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"accent\"\n (click)=\"edit(item.id)\">\n </shared-button>\n <shared-button\n *ngIf=\"userRights[3]\"\n icon=\"clear\"\n size=\"small\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"warn\"\n (click)=\"deleteAction(item)\">\n </shared-button>\n </td>\n\n </tr>-->\n </table>\n</ng-container>\n\n<!--\n<table mat-table class=\"list-items\">\n <tr>\n <th *ngFor=\"let fieldData of fieldsList\">{{fieldData.title}}</th>\n </tr>\n <tr *ngFor=\"let item of ( preparedItems$ | async ) as items\">\n <ng-container *ngFor=\"let fieldData of fieldsList\">\n <td (click)=\"edit(item.id)\" [ngClass]=\"{'true-select': item[fieldData.field] === true }\">\n {{item[fieldData.field]}}\n </td>\n </ng-container>\n\n <td class=\"action-field\">\n <shared-button\n *ngIf=\"userRights[2]\"\n class=\"mr-5\"\n size=\"small\"\n icon=\"edit\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"accent\"\n (click)=\"edit(item.id)\">\n </shared-button>\n <shared-button\n *ngIf=\"userRights[3]\"\n icon=\"clear\"\n size=\"small\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"warn\"\n (click)=\"deleteAction(item)\">\n </shared-button>\n </td>\n\n </tr>\n</table>\n\n-->\n", styles: [".static-data-table{width:100%}.mat-mdc-row .mat-mdc-cell{border-bottom:1px solid transparent;border-top:1px solid transparent;cursor:pointer}.mat-mdc-row:hover .mat-mdc-cell{border-color:currentColor}\n"] }]
|
|
11659
|
+
args: [{ selector: 'app-static-data-items', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"( preparedItems$ | async ) as items\">\n <table mat-table [dataSource]=\"items\" class=\"static-data-table\">\n <ng-container *ngFor=\"let fieldData of fieldsList\" [matColumnDef]=\"fieldData.field\">\n <th mat-header-cell *matHeaderCellDef> {{ fieldData.title }}</th>\n <td mat-cell *matCellDef=\"let element\"> {{ element[fieldData.field] }}</td>\n </ng-container>\n\n <ng-container [matColumnDef]=\"'actions'\">\n <th mat-header-cell *matHeaderCellDef class=\"action-column\"> \u0414\u0435\u0439\u0441\u0442\u0432\u0438\u044F</th>\n <td mat-cell *matCellDef=\"let element\" class=\"action-column\">\n <shared-button\n *ngIf=\"userRights[2]\"\n class=\"mr-5\"\n size=\"small\"\n icon=\"edit\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"accent\"\n (click)=\"edit(element.id)\">\n </shared-button>\n <shared-button\n *ngIf=\"userRights[3]\"\n icon=\"clear\"\n size=\"small\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"warn\"\n (click)=\"deleteAction(element)\">\n </shared-button>\n </td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns\"></tr>\n <tr mat-row\n (click)=\"edit(row.id)\"\n *matRowDef=\"let row; columns: displayedColumns;\"\n ></tr>\n\n <!--<tr>\n <th *ngFor=\"let fieldData of fieldsList\">{{ fieldData.title }}</th>\n </tr>\n <tr *ngFor=\"let item of ( preparedItems$ | async ) as items\">\n <ng-container *ngFor=\"let fieldData of fieldsList\">\n <td (click)=\"edit(item.id)\" [ngClass]=\"{'true-select': item[fieldData.field] === true }\">\n {{ item[fieldData.field] }}\n </td>\n </ng-container>\n\n <td class=\"action-field\">\n <shared-button\n *ngIf=\"userRights[2]\"\n class=\"mr-5\"\n size=\"small\"\n icon=\"edit\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"accent\"\n (click)=\"edit(item.id)\">\n </shared-button>\n <shared-button\n *ngIf=\"userRights[3]\"\n icon=\"clear\"\n size=\"small\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"warn\"\n (click)=\"deleteAction(item)\">\n </shared-button>\n </td>\n\n </tr>-->\n </table>\n</ng-container>\n\n<!--\n<table mat-table class=\"list-items\">\n <tr>\n <th *ngFor=\"let fieldData of fieldsList\">{{fieldData.title}}</th>\n </tr>\n <tr *ngFor=\"let item of ( preparedItems$ | async ) as items\">\n <ng-container *ngFor=\"let fieldData of fieldsList\">\n <td (click)=\"edit(item.id)\" [ngClass]=\"{'true-select': item[fieldData.field] === true }\">\n {{item[fieldData.field]}}\n </td>\n </ng-container>\n\n <td class=\"action-field\">\n <shared-button\n *ngIf=\"userRights[2]\"\n class=\"mr-5\"\n size=\"small\"\n icon=\"edit\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"accent\"\n (click)=\"edit(item.id)\">\n </shared-button>\n <shared-button\n *ngIf=\"userRights[3]\"\n icon=\"clear\"\n size=\"small\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"warn\"\n (click)=\"deleteAction(item)\">\n </shared-button>\n </td>\n\n </tr>\n</table>\n\n-->\n", styles: [".static-data-table{width:100%}.mat-mdc-row .mat-mdc-cell{border-bottom:1px solid transparent;border-top:1px solid transparent;cursor:pointer}.mat-mdc-row:hover .mat-mdc-cell{border-color:currentColor}.action-column{text-align:right!important}\n"] }]
|
|
11600
11660
|
}], ctorParameters: () => [{ type: RouterFacade }, { type: StaticDataFacade }, { type: i2$1.MatIconRegistry }], propDecorators: { items: [{
|
|
11601
11661
|
type: Input
|
|
11602
11662
|
}], contentType: [{
|
|
@@ -11788,11 +11848,11 @@ class StaticDataListItemsComponent {
|
|
|
11788
11848
|
this.loadStaticData(this.pageIndex + 1, data.pageSize);
|
|
11789
11849
|
}
|
|
11790
11850
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: StaticDataListItemsComponent, deps: [{ token: i1$4.MatDialog }, { token: RightService }, { token: StaticDataFacade }, { token: i0.ChangeDetectorRef }, { token: RouterFacade }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
11791
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: StaticDataListItemsComponent, selector: "app-static-data-list-items", inputs: { staticDataConfiguration: "staticDataConfiguration", contentType: "contentType", customTitle: "customTitle", addTitle: "addTitle", parentSection: "parentSection", parentItemId: "parentItemId", showPanelHeader: "showPanelHeader", parentData: "parentData", parentSectionHashtag: "parentSectionHashtag", autoCompleteFields: "autoCompleteFields", filteringQuery: "filteringQuery" }, viewQueries: [{ propertyName: "paginator", first: true, predicate: MatPaginator, descendants: true, static: true }, { propertyName: "sort", first: true, predicate: MatSort, descendants: true, static: true }, { propertyName: "searchInput", first: true, predicate: ["search"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<ng-container *ngIf=\"(userRights$ | async) as userRights\">\n <ng-container *ngIf=\"(staticDataMeta$ | async) as staticDataObj\">\n <mat-card-header>\n <mat-card-title>\n <h5 class=\"mb-0\">{{ title }}</h5>\n </mat-card-title>\n <mat-card-subtitle *ngIf=\"staticSection.options?.search\">\n <form class=\"search-box position-relative\">\n <input #search class=\"search-input\" placeholder=\"\u041F\u043E\u0438\u0441\u043A\">\n <shared-button\n icon=\"search\"\n color=\"accent\"\n iconColor=\"black\"\n (click)=\"searchHandle(search.value)\"></shared-button>\n <div class=\"cancel-button\">\n <shared-button\n *ngIf=\"search.value\"\n icon=\"clear\"\n color=\"warn\"\n iconColor=\"black\"\n (click)=\"searchCancelHandle()\"></shared-button>\n </div>\n </form>\n </mat-card-subtitle>\n </mat-card-header>\n <mat-card-content>\n <!--<shared-panel-header *ngIf=\"showPanelHeader\" [title]=\"title\"></shared-panel-header>-->\n <div class=\"table-responsive\">\n <div class=\"content p-24\">\n <!--<div *ngIf=\"staticSection.options?.search\" class=\"top-bar\">\n <div class=\"search-block\">\n \u041F\u043E\u0438\u0441\u043A: <input #search class=\"search-input\">\n <shared-button\n icon=\"search\"\n color=\"accent\"\n iconColor=\"black\"\n (click)=\"searchHandle(search.value)\"></shared-button>\n <div class=\"cancel-button\">\n <shared-button\n *ngIf=\"search.value\"\n icon=\"clear\"\n color=\"warn\"\n iconColor=\"black\"\n (click)=\"searchCancelHandle()\"></shared-button>\n </div>\n </div>\n </div>-->\n <ng-container *ngIf=\"staticData$ | async as staticData\">\n <div class=\"center-block p-10\">\n <app-static-data-items [items]=\"staticData\"\n [userRights]=\"userRights\"\n [staticSection]=\"staticSection\"\n [contentType]=\"contentType\"\n [queryParams]=\"queryParams\"\n (delete)=\"deleteEvent($event)\"></app-static-data-items>\n </div>\n <div *ngIf=\"staticDataObj.meta?.perPage !== -1\">\n <mat-paginator\n *ngIf=\"totalCount\"\n [length]=\"staticDataObj.meta?.totalCount\"\n [pageIndex]=\"pageIndex\"\n [pageSizeOptions]=\"[10, 25, 100]\"\n (page)=\"changePage($event)\"></mat-paginator>\n </div>\n </ng-container>\n <div *ngIf=\"isLoaded && !totalCount\">\u0421\u043F\u0438\u0441\u043E\u043A \u043F\u0443\u0441\u0442</div>\n <div *ngIf=\"userRights[0]\" class=\"text-center mt-30 mb-30\">\n <shared-button\n id=\"go-to-create-form-button\"\n class=\"mr-5\"\n iconSize=\"small\"\n icon=\"add\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"accent\"\n (click)=\"addHandle()\">{{ addTitle || '\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C' }}\n </shared-button>\n </div>\n </div>\n <ng-container *ngIf=\"loaded$|async; let loaded;\">\n <shared-spinner *ngIf=\"!loaded\"></shared-spinner>\n </ng-container>\n </div>\n </mat-card-content>\n </ng-container>\n</ng-container>\n<!--\n<ng-container *ngIf=\"(userRights$ | async) as userRights\">\n <ng-container *ngIf=\"(staticDataMeta$ | async) as staticDataObj\">\n\n <div class=\"page-layout simple fullwidth angular-material-elements\">\n <shared-panel-header *ngIf=\"showPanelHeader\" [title]=\"title\"></shared-panel-header>\n\n <h1>{{title}}</h1>\n <div class=\"content p-24\">\n <div *ngIf=\"staticSection.options?.search\" class=\"top-bar\">\n <div class=\"search-block\">\n \u041F\u043E\u0438\u0441\u043A: <input #search class=\"search-input\">\n <shared-button\n icon=\"search\"\n color=\"accent\"\n iconColor=\"black\"\n (click)=\"searchHandle(search.value)\"></shared-button>\n <div class=\"cancel-button\">\n <shared-button\n *ngIf=\"search.value\"\n icon=\"clear\"\n color=\"warn\"\n iconColor=\"black\"\n (click)=\"searchCancelHandle()\"></shared-button>\n </div>\n </div>\n </div>\n <ng-container *ngIf=\"staticData$ | async as staticData\">\n <div class=\"center-block p-10\">\n <app-static-data-items [items]=\"staticData\"\n [userRights]=\"userRights\"\n [staticSection]=\"staticSection\"\n [contentType]=\"contentType\"\n [queryParams]=\"queryParams\"\n (delete)=\"deleteEvent($event)\"></app-static-data-items>\n </div>\n <div *ngIf=\"staticDataObj.meta?.perPage !== -1\">\n <mat-paginator\n *ngIf=\"totalCount\"\n [length]=\"staticDataObj.meta?.totalCount\"\n [pageIndex]=\"pageIndex\"\n [pageSizeOptions]=\"[10, 25, 100]\"\n (page)=\"changePage($event)\"></mat-paginator>\n </div>\n </ng-container>\n <div *ngIf=\"isLoaded && !totalCount\">\u0421\u043F\u0438\u0441\u043E\u043A \u043F\u0443\u0441\u0442</div>\n <div *ngIf=\"userRights[0]\" class=\"text-center mt-30 mb-30\">\n <shared-button\n id=\"go-to-create-form-button\"\n class=\"mr-5\"\n iconSize=\"small\"\n icon=\"add\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"accent\"\n (click)=\"addHandle()\">{{ addTitle || '\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C' }}\n </shared-button>\n </div>\n </div>\n <ng-container *ngIf=\"loaded$|async; let loaded;\">\n <shared-spinner *ngIf=\"!loaded\"></shared-spinner>\n </ng-container>\n </div>\n </ng-container>\n</ng-container>\n\n-->\n", styles: [".top-bar{background:#c7deef;display:flex;justify-content:flex-end}.top-bar .search-block{display:flex;align-content:center;align-items:center}.top-bar .search-block .search-input{background-color:#adcde8!important;padding:11px 10px!important}.top-bar .search-block .cancel-button{width:64px;height:40px}.table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}\n"], dependencies: [{ kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i6$1.MatPaginator, selector: "mat-paginator", inputs: ["color", "pageIndex", "length", "pageSize", "pageSizeOptions", "hidePageSize", "showFirstLastButtons", "selectConfig", "disabled"], outputs: ["page"], exportAs: ["matPaginator"] }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "component", type: ButtonComponent, selector: "shared-button", inputs: ["icon", "iconColor", "iconSize", "rightIcon", "disabled", "loading", "active", "stopPropagation", "type", "color", "fullWidth", "size", "styleTheme", "tooltip", "tooltipPosition"], outputs: ["clickButton"] }, { kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "component", type: i10.MatCardHeader, selector: "mat-card-header" }, { kind: "directive", type: i10.MatCardContent, selector: "mat-card-content" }, { kind: "directive", type: i10.MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { kind: "directive", type: i10.MatCardSubtitle, selector: "mat-card-subtitle, [mat-card-subtitle], [matCardSubtitle]" }, { kind: "component", type: StaticDataItemsComponent, selector: "app-static-data-items", inputs: ["items", "contentType", "queryParams", "userRights", "staticSection"], outputs: ["delete"] }, { kind: "pipe", type: i1$3.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
11851
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: StaticDataListItemsComponent, selector: "app-static-data-list-items", inputs: { staticDataConfiguration: "staticDataConfiguration", contentType: "contentType", customTitle: "customTitle", addTitle: "addTitle", parentSection: "parentSection", parentItemId: "parentItemId", showPanelHeader: "showPanelHeader", parentData: "parentData", parentSectionHashtag: "parentSectionHashtag", autoCompleteFields: "autoCompleteFields", filteringQuery: "filteringQuery" }, viewQueries: [{ propertyName: "paginator", first: true, predicate: MatPaginator, descendants: true, static: true }, { propertyName: "sort", first: true, predicate: MatSort, descendants: true, static: true }, { propertyName: "searchInput", first: true, predicate: ["search"], descendants: true }], usesOnChanges: true, ngImport: i0, template: "<ng-container *ngIf=\"(userRights$ | async) as userRights\">\n <ng-container *ngIf=\"(staticDataMeta$ | async) as staticDataObj\">\n <mat-card-header>\n <mat-card-title>\n <h5 class=\"mb-0\">{{ title }}</h5>\n </mat-card-title>\n <mat-card-subtitle *ngIf=\"staticSection.options?.search\">\n <form class=\"search-box position-relative\">\n <input #search class=\"search-input\" placeholder=\"\u041F\u043E\u0438\u0441\u043A\">\n <shared-button\n icon=\"search\"\n color=\"accent\"\n iconColor=\"black\"\n (click)=\"searchHandle(search.value)\"></shared-button>\n <div class=\"cancel-button\">\n <shared-button\n *ngIf=\"search.value\"\n icon=\"clear\"\n color=\"warn\"\n iconColor=\"black\"\n (click)=\"searchCancelHandle()\"></shared-button>\n </div>\n </form>\n </mat-card-subtitle>\n </mat-card-header>\n <mat-card-content>\n <!--<shared-panel-header *ngIf=\"showPanelHeader\" [title]=\"title\"></shared-panel-header>-->\n <div class=\"table-responsive\">\n <div class=\"content p-24\">\n <!--<div *ngIf=\"staticSection.options?.search\" class=\"top-bar\">\n <div class=\"search-block\">\n \u041F\u043E\u0438\u0441\u043A: <input #search class=\"search-input\">\n <shared-button\n icon=\"search\"\n color=\"accent\"\n iconColor=\"black\"\n (click)=\"searchHandle(search.value)\"></shared-button>\n <div class=\"cancel-button\">\n <shared-button\n *ngIf=\"search.value\"\n icon=\"clear\"\n color=\"warn\"\n iconColor=\"black\"\n (click)=\"searchCancelHandle()\"></shared-button>\n </div>\n </div>\n </div>-->\n <ng-container *ngIf=\"staticData$ | async as staticData\">\n <div class=\"center-block p-10\">\n <app-static-data-items [items]=\"staticData\"\n [userRights]=\"userRights\"\n [staticSection]=\"staticSection\"\n [contentType]=\"contentType\"\n [queryParams]=\"queryParams\"\n (delete)=\"deleteEvent($event)\"></app-static-data-items>\n </div>\n <div *ngIf=\"staticDataObj.meta?.perPage !== -1 && staticDataObj.meta?.totalCount > 10\">\n <mat-paginator\n *ngIf=\"totalCount\"\n [length]=\"staticDataObj.meta?.totalCount\"\n [pageIndex]=\"pageIndex\"\n [pageSizeOptions]=\"[10, 25, 100]\"\n (page)=\"changePage($event)\"></mat-paginator>\n </div>\n </ng-container>\n <div *ngIf=\"isLoaded && !totalCount\">\u0421\u043F\u0438\u0441\u043E\u043A \u043F\u0443\u0441\u0442</div>\n <div *ngIf=\"userRights[0]\" class=\"text-center mt-30 mb-30\">\n <shared-button\n id=\"go-to-create-form-button\"\n class=\"mr-5\"\n iconSize=\"small\"\n icon=\"add\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"accent\"\n (click)=\"addHandle()\">{{ addTitle || '\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C' }}\n </shared-button>\n </div>\n </div>\n <ng-container *ngIf=\"loaded$|async; let loaded;\">\n <shared-spinner *ngIf=\"!loaded\"></shared-spinner>\n </ng-container>\n </div>\n </mat-card-content>\n </ng-container>\n</ng-container>\n<!--\n<ng-container *ngIf=\"(userRights$ | async) as userRights\">\n <ng-container *ngIf=\"(staticDataMeta$ | async) as staticDataObj\">\n\n <div class=\"page-layout simple fullwidth angular-material-elements\">\n <shared-panel-header *ngIf=\"showPanelHeader\" [title]=\"title\"></shared-panel-header>\n\n <h1>{{title}}</h1>\n <div class=\"content p-24\">\n <div *ngIf=\"staticSection.options?.search\" class=\"top-bar\">\n <div class=\"search-block\">\n \u041F\u043E\u0438\u0441\u043A: <input #search class=\"search-input\">\n <shared-button\n icon=\"search\"\n color=\"accent\"\n iconColor=\"black\"\n (click)=\"searchHandle(search.value)\"></shared-button>\n <div class=\"cancel-button\">\n <shared-button\n *ngIf=\"search.value\"\n icon=\"clear\"\n color=\"warn\"\n iconColor=\"black\"\n (click)=\"searchCancelHandle()\"></shared-button>\n </div>\n </div>\n </div>\n <ng-container *ngIf=\"staticData$ | async as staticData\">\n <div class=\"center-block p-10\">\n <app-static-data-items [items]=\"staticData\"\n [userRights]=\"userRights\"\n [staticSection]=\"staticSection\"\n [contentType]=\"contentType\"\n [queryParams]=\"queryParams\"\n (delete)=\"deleteEvent($event)\"></app-static-data-items>\n </div>\n <div *ngIf=\"staticDataObj.meta?.perPage !== -1\">\n <mat-paginator\n *ngIf=\"totalCount\"\n [length]=\"staticDataObj.meta?.totalCount\"\n [pageIndex]=\"pageIndex\"\n [pageSizeOptions]=\"[10, 25, 100]\"\n (page)=\"changePage($event)\"></mat-paginator>\n </div>\n </ng-container>\n <div *ngIf=\"isLoaded && !totalCount\">\u0421\u043F\u0438\u0441\u043E\u043A \u043F\u0443\u0441\u0442</div>\n <div *ngIf=\"userRights[0]\" class=\"text-center mt-30 mb-30\">\n <shared-button\n id=\"go-to-create-form-button\"\n class=\"mr-5\"\n iconSize=\"small\"\n icon=\"add\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"accent\"\n (click)=\"addHandle()\">{{ addTitle || '\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C' }}\n </shared-button>\n </div>\n </div>\n <ng-container *ngIf=\"loaded$|async; let loaded;\">\n <shared-spinner *ngIf=\"!loaded\"></shared-spinner>\n </ng-container>\n </div>\n </ng-container>\n</ng-container>\n\n-->\n", styles: [".top-bar{background:#c7deef;display:flex;justify-content:flex-end}.top-bar .search-block{display:flex;align-content:center;align-items:center}.top-bar .search-block .search-input{background-color:#adcde8!important;padding:11px 10px!important}.top-bar .search-block .cancel-button{width:64px;height:40px}.table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}\n"], dependencies: [{ kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i6$1.MatPaginator, selector: "mat-paginator", inputs: ["color", "pageIndex", "length", "pageSize", "pageSizeOptions", "hidePageSize", "showFirstLastButtons", "selectConfig", "disabled"], outputs: ["page"], exportAs: ["matPaginator"] }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "component", type: ButtonComponent, selector: "shared-button", inputs: ["icon", "iconColor", "iconSize", "rightIcon", "disabled", "loading", "active", "stopPropagation", "type", "color", "fullWidth", "size", "styleTheme", "tooltip", "tooltipPosition"], outputs: ["clickButton"] }, { kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "component", type: i10.MatCardHeader, selector: "mat-card-header" }, { kind: "directive", type: i10.MatCardContent, selector: "mat-card-content" }, { kind: "directive", type: i10.MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { kind: "directive", type: i10.MatCardSubtitle, selector: "mat-card-subtitle, [mat-card-subtitle], [matCardSubtitle]" }, { kind: "component", type: StaticDataItemsComponent, selector: "app-static-data-items", inputs: ["items", "contentType", "queryParams", "userRights", "staticSection"], outputs: ["delete"] }, { kind: "pipe", type: i1$3.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
11792
11852
|
}
|
|
11793
11853
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: StaticDataListItemsComponent, decorators: [{
|
|
11794
11854
|
type: Component,
|
|
11795
|
-
args: [{ selector: 'app-static-data-list-items', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"(userRights$ | async) as userRights\">\n <ng-container *ngIf=\"(staticDataMeta$ | async) as staticDataObj\">\n <mat-card-header>\n <mat-card-title>\n <h5 class=\"mb-0\">{{ title }}</h5>\n </mat-card-title>\n <mat-card-subtitle *ngIf=\"staticSection.options?.search\">\n <form class=\"search-box position-relative\">\n <input #search class=\"search-input\" placeholder=\"\u041F\u043E\u0438\u0441\u043A\">\n <shared-button\n icon=\"search\"\n color=\"accent\"\n iconColor=\"black\"\n (click)=\"searchHandle(search.value)\"></shared-button>\n <div class=\"cancel-button\">\n <shared-button\n *ngIf=\"search.value\"\n icon=\"clear\"\n color=\"warn\"\n iconColor=\"black\"\n (click)=\"searchCancelHandle()\"></shared-button>\n </div>\n </form>\n </mat-card-subtitle>\n </mat-card-header>\n <mat-card-content>\n <!--<shared-panel-header *ngIf=\"showPanelHeader\" [title]=\"title\"></shared-panel-header>-->\n <div class=\"table-responsive\">\n <div class=\"content p-24\">\n <!--<div *ngIf=\"staticSection.options?.search\" class=\"top-bar\">\n <div class=\"search-block\">\n \u041F\u043E\u0438\u0441\u043A: <input #search class=\"search-input\">\n <shared-button\n icon=\"search\"\n color=\"accent\"\n iconColor=\"black\"\n (click)=\"searchHandle(search.value)\"></shared-button>\n <div class=\"cancel-button\">\n <shared-button\n *ngIf=\"search.value\"\n icon=\"clear\"\n color=\"warn\"\n iconColor=\"black\"\n (click)=\"searchCancelHandle()\"></shared-button>\n </div>\n </div>\n </div>-->\n <ng-container *ngIf=\"staticData$ | async as staticData\">\n <div class=\"center-block p-10\">\n <app-static-data-items [items]=\"staticData\"\n [userRights]=\"userRights\"\n [staticSection]=\"staticSection\"\n [contentType]=\"contentType\"\n [queryParams]=\"queryParams\"\n (delete)=\"deleteEvent($event)\"></app-static-data-items>\n </div>\n <div *ngIf=\"staticDataObj.meta?.perPage !== -1\">\n <mat-paginator\n *ngIf=\"totalCount\"\n [length]=\"staticDataObj.meta?.totalCount\"\n [pageIndex]=\"pageIndex\"\n [pageSizeOptions]=\"[10, 25, 100]\"\n (page)=\"changePage($event)\"></mat-paginator>\n </div>\n </ng-container>\n <div *ngIf=\"isLoaded && !totalCount\">\u0421\u043F\u0438\u0441\u043E\u043A \u043F\u0443\u0441\u0442</div>\n <div *ngIf=\"userRights[0]\" class=\"text-center mt-30 mb-30\">\n <shared-button\n id=\"go-to-create-form-button\"\n class=\"mr-5\"\n iconSize=\"small\"\n icon=\"add\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"accent\"\n (click)=\"addHandle()\">{{ addTitle || '\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C' }}\n </shared-button>\n </div>\n </div>\n <ng-container *ngIf=\"loaded$|async; let loaded;\">\n <shared-spinner *ngIf=\"!loaded\"></shared-spinner>\n </ng-container>\n </div>\n </mat-card-content>\n </ng-container>\n</ng-container>\n<!--\n<ng-container *ngIf=\"(userRights$ | async) as userRights\">\n <ng-container *ngIf=\"(staticDataMeta$ | async) as staticDataObj\">\n\n <div class=\"page-layout simple fullwidth angular-material-elements\">\n <shared-panel-header *ngIf=\"showPanelHeader\" [title]=\"title\"></shared-panel-header>\n\n <h1>{{title}}</h1>\n <div class=\"content p-24\">\n <div *ngIf=\"staticSection.options?.search\" class=\"top-bar\">\n <div class=\"search-block\">\n \u041F\u043E\u0438\u0441\u043A: <input #search class=\"search-input\">\n <shared-button\n icon=\"search\"\n color=\"accent\"\n iconColor=\"black\"\n (click)=\"searchHandle(search.value)\"></shared-button>\n <div class=\"cancel-button\">\n <shared-button\n *ngIf=\"search.value\"\n icon=\"clear\"\n color=\"warn\"\n iconColor=\"black\"\n (click)=\"searchCancelHandle()\"></shared-button>\n </div>\n </div>\n </div>\n <ng-container *ngIf=\"staticData$ | async as staticData\">\n <div class=\"center-block p-10\">\n <app-static-data-items [items]=\"staticData\"\n [userRights]=\"userRights\"\n [staticSection]=\"staticSection\"\n [contentType]=\"contentType\"\n [queryParams]=\"queryParams\"\n (delete)=\"deleteEvent($event)\"></app-static-data-items>\n </div>\n <div *ngIf=\"staticDataObj.meta?.perPage !== -1\">\n <mat-paginator\n *ngIf=\"totalCount\"\n [length]=\"staticDataObj.meta?.totalCount\"\n [pageIndex]=\"pageIndex\"\n [pageSizeOptions]=\"[10, 25, 100]\"\n (page)=\"changePage($event)\"></mat-paginator>\n </div>\n </ng-container>\n <div *ngIf=\"isLoaded && !totalCount\">\u0421\u043F\u0438\u0441\u043E\u043A \u043F\u0443\u0441\u0442</div>\n <div *ngIf=\"userRights[0]\" class=\"text-center mt-30 mb-30\">\n <shared-button\n id=\"go-to-create-form-button\"\n class=\"mr-5\"\n iconSize=\"small\"\n icon=\"add\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"accent\"\n (click)=\"addHandle()\">{{ addTitle || '\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C' }}\n </shared-button>\n </div>\n </div>\n <ng-container *ngIf=\"loaded$|async; let loaded;\">\n <shared-spinner *ngIf=\"!loaded\"></shared-spinner>\n </ng-container>\n </div>\n </ng-container>\n</ng-container>\n\n-->\n", styles: [".top-bar{background:#c7deef;display:flex;justify-content:flex-end}.top-bar .search-block{display:flex;align-content:center;align-items:center}.top-bar .search-block .search-input{background-color:#adcde8!important;padding:11px 10px!important}.top-bar .search-block .cancel-button{width:64px;height:40px}.table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}\n"] }]
|
|
11855
|
+
args: [{ selector: 'app-static-data-list-items', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"(userRights$ | async) as userRights\">\n <ng-container *ngIf=\"(staticDataMeta$ | async) as staticDataObj\">\n <mat-card-header>\n <mat-card-title>\n <h5 class=\"mb-0\">{{ title }}</h5>\n </mat-card-title>\n <mat-card-subtitle *ngIf=\"staticSection.options?.search\">\n <form class=\"search-box position-relative\">\n <input #search class=\"search-input\" placeholder=\"\u041F\u043E\u0438\u0441\u043A\">\n <shared-button\n icon=\"search\"\n color=\"accent\"\n iconColor=\"black\"\n (click)=\"searchHandle(search.value)\"></shared-button>\n <div class=\"cancel-button\">\n <shared-button\n *ngIf=\"search.value\"\n icon=\"clear\"\n color=\"warn\"\n iconColor=\"black\"\n (click)=\"searchCancelHandle()\"></shared-button>\n </div>\n </form>\n </mat-card-subtitle>\n </mat-card-header>\n <mat-card-content>\n <!--<shared-panel-header *ngIf=\"showPanelHeader\" [title]=\"title\"></shared-panel-header>-->\n <div class=\"table-responsive\">\n <div class=\"content p-24\">\n <!--<div *ngIf=\"staticSection.options?.search\" class=\"top-bar\">\n <div class=\"search-block\">\n \u041F\u043E\u0438\u0441\u043A: <input #search class=\"search-input\">\n <shared-button\n icon=\"search\"\n color=\"accent\"\n iconColor=\"black\"\n (click)=\"searchHandle(search.value)\"></shared-button>\n <div class=\"cancel-button\">\n <shared-button\n *ngIf=\"search.value\"\n icon=\"clear\"\n color=\"warn\"\n iconColor=\"black\"\n (click)=\"searchCancelHandle()\"></shared-button>\n </div>\n </div>\n </div>-->\n <ng-container *ngIf=\"staticData$ | async as staticData\">\n <div class=\"center-block p-10\">\n <app-static-data-items [items]=\"staticData\"\n [userRights]=\"userRights\"\n [staticSection]=\"staticSection\"\n [contentType]=\"contentType\"\n [queryParams]=\"queryParams\"\n (delete)=\"deleteEvent($event)\"></app-static-data-items>\n </div>\n <div *ngIf=\"staticDataObj.meta?.perPage !== -1 && staticDataObj.meta?.totalCount > 10\">\n <mat-paginator\n *ngIf=\"totalCount\"\n [length]=\"staticDataObj.meta?.totalCount\"\n [pageIndex]=\"pageIndex\"\n [pageSizeOptions]=\"[10, 25, 100]\"\n (page)=\"changePage($event)\"></mat-paginator>\n </div>\n </ng-container>\n <div *ngIf=\"isLoaded && !totalCount\">\u0421\u043F\u0438\u0441\u043E\u043A \u043F\u0443\u0441\u0442</div>\n <div *ngIf=\"userRights[0]\" class=\"text-center mt-30 mb-30\">\n <shared-button\n id=\"go-to-create-form-button\"\n class=\"mr-5\"\n iconSize=\"small\"\n icon=\"add\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"accent\"\n (click)=\"addHandle()\">{{ addTitle || '\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C' }}\n </shared-button>\n </div>\n </div>\n <ng-container *ngIf=\"loaded$|async; let loaded;\">\n <shared-spinner *ngIf=\"!loaded\"></shared-spinner>\n </ng-container>\n </div>\n </mat-card-content>\n </ng-container>\n</ng-container>\n<!--\n<ng-container *ngIf=\"(userRights$ | async) as userRights\">\n <ng-container *ngIf=\"(staticDataMeta$ | async) as staticDataObj\">\n\n <div class=\"page-layout simple fullwidth angular-material-elements\">\n <shared-panel-header *ngIf=\"showPanelHeader\" [title]=\"title\"></shared-panel-header>\n\n <h1>{{title}}</h1>\n <div class=\"content p-24\">\n <div *ngIf=\"staticSection.options?.search\" class=\"top-bar\">\n <div class=\"search-block\">\n \u041F\u043E\u0438\u0441\u043A: <input #search class=\"search-input\">\n <shared-button\n icon=\"search\"\n color=\"accent\"\n iconColor=\"black\"\n (click)=\"searchHandle(search.value)\"></shared-button>\n <div class=\"cancel-button\">\n <shared-button\n *ngIf=\"search.value\"\n icon=\"clear\"\n color=\"warn\"\n iconColor=\"black\"\n (click)=\"searchCancelHandle()\"></shared-button>\n </div>\n </div>\n </div>\n <ng-container *ngIf=\"staticData$ | async as staticData\">\n <div class=\"center-block p-10\">\n <app-static-data-items [items]=\"staticData\"\n [userRights]=\"userRights\"\n [staticSection]=\"staticSection\"\n [contentType]=\"contentType\"\n [queryParams]=\"queryParams\"\n (delete)=\"deleteEvent($event)\"></app-static-data-items>\n </div>\n <div *ngIf=\"staticDataObj.meta?.perPage !== -1\">\n <mat-paginator\n *ngIf=\"totalCount\"\n [length]=\"staticDataObj.meta?.totalCount\"\n [pageIndex]=\"pageIndex\"\n [pageSizeOptions]=\"[10, 25, 100]\"\n (page)=\"changePage($event)\"></mat-paginator>\n </div>\n </ng-container>\n <div *ngIf=\"isLoaded && !totalCount\">\u0421\u043F\u0438\u0441\u043E\u043A \u043F\u0443\u0441\u0442</div>\n <div *ngIf=\"userRights[0]\" class=\"text-center mt-30 mb-30\">\n <shared-button\n id=\"go-to-create-form-button\"\n class=\"mr-5\"\n iconSize=\"small\"\n icon=\"add\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"accent\"\n (click)=\"addHandle()\">{{ addTitle || '\u0414\u043E\u0431\u0430\u0432\u0438\u0442\u044C' }}\n </shared-button>\n </div>\n </div>\n <ng-container *ngIf=\"loaded$|async; let loaded;\">\n <shared-spinner *ngIf=\"!loaded\"></shared-spinner>\n </ng-container>\n </div>\n </ng-container>\n</ng-container>\n\n-->\n", styles: [".top-bar{background:#c7deef;display:flex;justify-content:flex-end}.top-bar .search-block{display:flex;align-content:center;align-items:center}.top-bar .search-block .search-input{background-color:#adcde8!important;padding:11px 10px!important}.top-bar .search-block .cancel-button{width:64px;height:40px}.table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}\n"] }]
|
|
11796
11856
|
}], ctorParameters: () => [{ type: i1$4.MatDialog }, { type: RightService }, { type: StaticDataFacade }, { type: i0.ChangeDetectorRef }, { type: RouterFacade }], propDecorators: { staticDataConfiguration: [{
|
|
11797
11857
|
type: Input
|
|
11798
11858
|
}], contentType: [{
|
|
@@ -12232,11 +12292,11 @@ class StaticDataDetailsComponent {
|
|
|
12232
12292
|
.toPromise();
|
|
12233
12293
|
}
|
|
12234
12294
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: StaticDataDetailsComponent, deps: [{ token: i3.UntypedFormBuilder }, { token: i2.Router }, { token: i2.ActivatedRoute }, { token: AutoFormService }, { token: RouterFacade }, { token: FormErrorsFacade }, { token: FormsFacade }, { token: RequestsFacade }, { token: StaticDataFacade }, { token: RightService }, { token: i1$4.MatDialog }, { token: NotificationsFacade }, { token: CoreFacade }, { token: PublicationMessagesFacade }, { token: ActionsFacade }, { token: i0.Injector }, { token: i0.ChangeDetectorRef }, { token: i2$1.MatIconRegistry }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
12235
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: StaticDataDetailsComponent, selector: "app-static-data-details", usesOnChanges: true, ngImport: i0, template: "<ng-container *ngIf=\"(status$ | async) as status\">\n <ng-container *ngIf=\"(userRights$ | async) as userRights\">\n <ng-container *ngIf=\"(staticData$ | async) as staticData\">\n <div class=\"page-layout simple fullwidth angular-material-elements\">\n <shared-panel-header *ngIf=\"form.get('name')\" [parentTitle]=\"staticSection.title\"\n [parentUrl]=\"['/static-data', contentType]\"\n [title]=\"form.get('name')?.value\">>\n </shared-panel-header>\n\n <div class=\"content p-24\">\n <div class=\"center-block bg-white\">\n <mat-tab-group [selectedIndex]=\"activeTabIndex\">\n <mat-tab>\n <ng-template mat-tab-label>\n <mat-icon class=\"static-data-tab-icon\">edit</mat-icon>\n \u0424\u043E\u0440\u043C\u0430 \u0440\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F\n </ng-template>\n <ng-template matTabContent>\n <div class=\"center-block-header position-relative\">\n <div @appearFromLeftWithDelay class=\"center-block-header-title\">\n {{ form.get('name')?.value || '\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435' }}\n </div>\n </div>\n <div *ngIf=\"staticSection?.options?.hasMultiLanguage\" class=\"languages\">\n <div *ngFor=\"let item of languageList\" class=\"language-item\">\n <a\n [ngClass]=\"{'activeLang': currentLanguageId ? item.id === currentLanguageId : defaultLanguageId ? item.id === defaultLanguageId : false }\"\n [routerLink]=\"['/static-data', contentType, itemId, item.id]\">[ {{ item.slug }} ]</a>\n </div>\n </div>\n <div class=\"center-block-inner\">\n <form [formGroup]=\"form\">\n <shared-auto-form\n *ngIf=\"status.value === statusType.LOADED\"\n class=\"mb-20\"\n [showPublicationMessages]=\"staticSection.options?.havePublication || false\"\n [entity]=\"contentType\"\n [itemId]=\"itemId\"\n [formId]=\"formId\"\n [fields]=\"fields\"\n [form]=\"form\"\n [config]=\"{needToPublish: false}\"\n [havePublication]=\"staticSection.options?.havePublication || false\"\n [errorMessageTexts]=\"globalErrorMessageTexts\"\n (changed)=\"changedFormValue($event)\"\n (formCompleted)=\"formCompleted($event)\"\n ></shared-auto-form>\n\n <div *ngIf=\"staticSection.globalActions\" class=\"global-actions\">\n <div *ngFor=\"let action of staticSection.globalActions\"\n (click)=\"globalActionHandle(action)\" class=\"global-action\">\n {{ action.title }}\n </div>\n </div>\n <div @appearFromLeftWithDelay\n fxLayout=\"row\"\n fxLayoutAlign=\"center center\"\n class=\"mt-20\">\n <shared-button\n id=\"back-to-list-button\"\n class=\"mr-8\"\n icon=\"chevron_left\"\n type=\"button\"\n styleTheme=\"raised\"\n color=\"basic\"\n iconColor=\"black\"\n (click)=\"goBack()\"\n >\u041A \u0441\u043F\u0438\u0441\u043A\u0443\n </shared-button>\n <shared-button\n *ngIf=\"userRights[0]\"\n id=\"form-create-button\"\n class=\"mr-8\"\n type=\"submit\"\n icon=\"edit\"\n iconColor=\"white\"\n color=\"accent\"\n styleTheme=\"raised\"\n [loading]=\"status.value === statusType.LOADING\"\n [disabled]=\"!form.valid || formStatus === 'loading'\"\n (click)=\"submitClick()\"\n >{{ itemId ? '\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C' : '\u0421\u043E\u0437\u0434\u0430\u0442\u044C' }}\n <!-- [disabled]=\"!form.valid dataStored\" -->\n </shared-button>\n <ng-container *ngIf=\"staticSection.options?.havePublication\">\n <shared-button\n *ngIf=\"!form.get('status')?.value\"\n id=\"publish-button\"\n class=\"mr-8\"\n icon=\"check\"\n type=\"button\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"orange\"\n [disabled]=\"!itemId || publishButtonLoading\"\n [loading]=\"publishButtonLoading\"\n (click)=\"publishToggle()\"\n >\u041E\u043F\u0443\u0431\u043B\u0438\u043A\u043E\u0432\u0430\u0442\u044C\n </shared-button>\n <shared-button\n *ngIf=\"form.get('status')?.value === publishStatus\"\n class=\"mr-8\"\n icon=\"check\"\n type=\"button\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"orange\"\n [disabled]=\"publishButtonLoading\"\n [loading]=\"publishButtonLoading\"\n (click)=\"publishToggle()\"\n >\u0421\u043D\u044F\u0442\u044C \u0441 \u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0446\u0438\u0438\n </shared-button>\n </ng-container>\n <shared-button\n *ngIf=\"userRights[3]\"\n id=\"delete-button\"\n [disabled]=\"!itemId\"\n class=\"mr-8\"\n type=\"submit\"\n icon=\"clear\"\n color=\"warn\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n (click)=\"deleteAction(staticData.value)\"\n >\u0423\u0434\u0430\u043B\u0438\u0442\u044C\n </shared-button>\n <ng-container *ngIf=\"staticSection.options?.publicationInTelegramBot\">\n <shared-button\n icon=\"send\"\n type=\"button\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"orange\"\n (click)=\"publishInTelegram()\"\n >\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u0432 Telegram\n </shared-button>\n </ng-container>\n </div>\n </form>\n </div>\n </ng-template>\n </mat-tab>\n <ng-container *ngFor=\"let subEntity of staticSection.options?.subEntities\">\n <mat-tab>\n <ng-template mat-tab-label>\n <mat-icon *ngIf=\"subEntity.titleIcon\"\n class=\"static-data-tab-icon\">{{ subEntity.titleIcon }}\n </mat-icon>\n {{ subEntity.title }}\n </ng-template>\n <ng-template matTabContent>\n <div class=\"center-block-inner\">\n <ng-container *ngIf=\"subEntity.subEntitiesType === 'static-data'\">\n <ng-container *ngIf=\"staticData.value?.id\">\n <ng-container *ngIf=\"staticData.value?.id\" class=\"center-block-inner\">\n <app-static-data-list-items\n [staticDataConfiguration]=\"staticDataConfiguration\"\n [contentType]=\"subEntity.entity\"\n [customTitle]=\"subEntity.title + ' ' + staticData.value?.['name']\"\n [addTitle]=\"subEntity.addTitle + ' ' + staticData.value?.['name']\"\n [filteringQuery]=\"subEntity.getFilteringQuery(staticData.value)\"\n [parentSection]=\"contentType\"\n [parentItemId]=\"itemId\"\n [parentSectionHashtag]=\"subEntity.hashTag\"\n [parentData]=\"form.value\"\n [autoCompleteFields]=\"subEntity.autoCompleteFields\"\n ></app-static-data-list-items>\n </ng-container>\n <shared-spinner *ngIf=\"!staticData.value?.id\"\n [overlay]=\"true\"></shared-spinner>\n </ng-container>\n @if (!staticData.value?.id) {\n <div class=\"message-box error\">\n <ng-container *ngIf=\"!subEntity.entity\">\n \u041F\u0435\u0440\u0435\u0434 \u0434\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u0438\u0435\u043C \u0432\u043B\u043E\u0436\u0435\u043D\u043D\u044B\u0445 \u0437\u0430\u043F\u0438\u0441\u0435\u0439 \u0412\u0430\u043C \u043D\u0443\u0436\u043D\u043E \u0441\u043D\u0430\u0447\u0430\u043B\u0430 \u0441\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\n \u043E\u0441\u043D\u043E\u0432\u043D\u0443\u044E \u0437\u0430\u043F\u0438\u0441\u044C\n </ng-container>\n <ng-container *ngIf=\"subEntity.emptyTitle\">\n {{ subEntity.emptyTitle }}\n </ng-container>\n </div>\n }\n </ng-container>\n @if (subEntity!.subEntitiesType === 'component') {\n <ng-container *ngComponentOutlet=\"\n subEntity.component;\n injector: componentDataInjector;\n \"/> <!-- subEntity.getInputData(form.value) -->\n }\n </div>\n </ng-template>\n </mat-tab>\n </ng-container>\n </mat-tab-group>\n </div>\n </div>\n </div>\n </ng-container>\n </ng-container>\n <shared-spinner *ngIf=\"status.value !== statusType.LOADED || formStatus === 'loading'\"\n [overlay]=\"true\"></shared-spinner>\n</ng-container>\n\n\n", styles: [".update-published-tour-popup{position:absolute;top:0;left:0;width:100%;background:#485860a6;height:100%;z-index:100}.static-data-tab-icon{margin-right:5px}.languages{display:flex;justify-content:center;margin:5px 0 10px}.languages .language-item .activeLang{background:#007bff;color:#fff}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$3.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModule", "ngComponentOutletNgModuleFactory"] }, { 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: "component", type: AutoFormMainComponent, selector: "shared-auto-form", inputs: ["fields", "itemId", "formId", "showPublicationMessages", "useEntityPermissions", "showProgressBar", "showFormMessageBox", "form", "editorImageUploadUrl", "errorMessageTexts", "entity", "havePublication", "config"], outputs: ["changed", "formCompleted"] }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "component", type: ButtonComponent, selector: "shared-button", inputs: ["icon", "iconColor", "iconSize", "rightIcon", "disabled", "loading", "active", "stopPropagation", "type", "color", "fullWidth", "size", "styleTheme", "tooltip", "tooltipPosition"], outputs: ["clickButton"] }, { kind: "component", type: PanelHeaderComponent, selector: "shared-panel-header", inputs: ["title", "parentTitle", "parentUrl"] }, { kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { 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: "directive", type: i22.MatTabContent, selector: "[matTabContent]" }, { kind: "directive", type: i22.MatTabLabel, selector: "[mat-tab-label], [matTabLabel]" }, { kind: "component", type: i22.MatTab, selector: "mat-tab", inputs: ["disabled", "label", "aria-label", "aria-labelledby", "labelClass", "bodyClass"], exportAs: ["matTab"] }, { kind: "component", type: i22.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "fitInkBarToContent", "mat-stretch-tabs", "dynamicHeight", "selectedIndex", "headerPosition", "animationDuration", "contentTabIndex", "disablePagination", "disableRipple", "preserveContent", "backgroundColor", "aria-label", "aria-labelledby"], outputs: ["selectedIndexChange", "focusChange", "animationDone", "selectedTabChange"], exportAs: ["matTabGroup"] }, { kind: "component", type: StaticDataListItemsComponent, selector: "app-static-data-list-items", inputs: ["staticDataConfiguration", "contentType", "customTitle", "addTitle", "parentSection", "parentItemId", "showPanelHeader", "parentData", "parentSectionHashtag", "autoCompleteFields", "filteringQuery"] }, { kind: "pipe", type: i1$3.AsyncPipe, name: "async" }], animations: [appearFromRightWithDelay, appearFromLeftWithDelay, appearOpacity], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
12295
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: StaticDataDetailsComponent, selector: "app-static-data-details", usesOnChanges: true, ngImport: i0, template: "<ng-container *ngIf=\"(status$ | async) as status\">\n <ng-container *ngIf=\"(userRights$ | async) as userRights\">\n <ng-container *ngIf=\"(staticData$ | async) as staticData\">\n <div class=\"page-layout simple fullwidth angular-material-elements\">\n <shared-panel-header *ngIf=\"form.get('name')\" [parentTitle]=\"staticSection.title\"\n [parentUrl]=\"['/static-data', contentType]\"\n [title]=\"form.get('name')?.value\">>\n </shared-panel-header>\n\n <div class=\"content p-24\">\n <div class=\"center-block bg-white\">\n <div class=\"center-block-header position-relative\">\n <h1 @appearFromLeftWithDelay class=\"center-block-header-title\">\n {{ form.get('name')?.value || '\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435' }}\n </h1>\n </div>\n <mat-tab-group [selectedIndex]=\"activeTabIndex\">\n <mat-tab>\n <ng-template mat-tab-label>\n <mat-icon class=\"static-data-tab-icon\">edit</mat-icon>\n \u0424\u043E\u0440\u043C\u0430 \u0440\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F\n </ng-template>\n <ng-template matTabContent>\n <div *ngIf=\"staticSection?.options?.hasMultiLanguage\" class=\"languages\">\n <div *ngFor=\"let item of languageList\" class=\"language-item\">\n <a\n [ngClass]=\"{'activeLang': currentLanguageId ? item.id === currentLanguageId : defaultLanguageId ? item.id === defaultLanguageId : false }\"\n [routerLink]=\"['/static-data', contentType, itemId, item.id]\">[ {{ item.slug }} ]</a>\n </div>\n </div>\n <div class=\"center-block-inner\">\n <form [formGroup]=\"form\">\n <shared-auto-form\n *ngIf=\"status.value === statusType.LOADED\"\n class=\"mb-20\"\n [showPublicationMessages]=\"staticSection.options?.havePublication || false\"\n [entity]=\"contentType\"\n [itemId]=\"itemId\"\n [formId]=\"formId\"\n [fields]=\"fields\"\n [form]=\"form\"\n [config]=\"{needToPublish: false}\"\n [havePublication]=\"staticSection.options?.havePublication || false\"\n [errorMessageTexts]=\"globalErrorMessageTexts\"\n (changed)=\"changedFormValue($event)\"\n (formCompleted)=\"formCompleted($event)\"\n ></shared-auto-form>\n\n <div *ngIf=\"staticSection.globalActions\" class=\"global-actions\">\n <div *ngFor=\"let action of staticSection.globalActions\"\n (click)=\"globalActionHandle(action)\" class=\"global-action\">\n {{ action.title }}\n </div>\n </div>\n <div @appearFromLeftWithDelay\n fxLayout=\"row\"\n fxLayoutAlign=\"center center\"\n class=\"mt-20\">\n <shared-button\n id=\"back-to-list-button\"\n class=\"mr-8\"\n icon=\"chevron_left\"\n type=\"button\"\n styleTheme=\"raised\"\n color=\"basic\"\n iconColor=\"black\"\n (click)=\"goBack()\"\n >\u041A \u0441\u043F\u0438\u0441\u043A\u0443\n </shared-button>\n <shared-button\n *ngIf=\"userRights[0]\"\n id=\"form-create-button\"\n class=\"mr-8\"\n type=\"submit\"\n icon=\"edit\"\n iconColor=\"white\"\n color=\"accent\"\n styleTheme=\"raised\"\n [loading]=\"status.value === statusType.LOADING\"\n [disabled]=\"!form.valid || formStatus === 'loading'\"\n (click)=\"submitClick()\"\n >{{ itemId ? '\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C' : '\u0421\u043E\u0437\u0434\u0430\u0442\u044C' }}\n <!-- [disabled]=\"!form.valid dataStored\" -->\n </shared-button>\n <ng-container *ngIf=\"staticSection.options?.havePublication\">\n <shared-button\n *ngIf=\"!form.get('status')?.value\"\n id=\"publish-button\"\n class=\"mr-8\"\n icon=\"check\"\n type=\"button\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"orange\"\n [disabled]=\"!itemId || publishButtonLoading\"\n [loading]=\"publishButtonLoading\"\n (click)=\"publishToggle()\"\n >\u041E\u043F\u0443\u0431\u043B\u0438\u043A\u043E\u0432\u0430\u0442\u044C\n </shared-button>\n <shared-button\n *ngIf=\"form.get('status')?.value === publishStatus\"\n class=\"mr-8\"\n icon=\"check\"\n type=\"button\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"orange\"\n [disabled]=\"publishButtonLoading\"\n [loading]=\"publishButtonLoading\"\n (click)=\"publishToggle()\"\n >\u0421\u043D\u044F\u0442\u044C \u0441 \u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0446\u0438\u0438\n </shared-button>\n </ng-container>\n <shared-button\n *ngIf=\"userRights[3]\"\n id=\"delete-button\"\n [disabled]=\"!itemId\"\n class=\"mr-8\"\n type=\"submit\"\n icon=\"clear\"\n color=\"warn\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n (click)=\"deleteAction(staticData.value)\"\n >\u0423\u0434\u0430\u043B\u0438\u0442\u044C\n </shared-button>\n <ng-container *ngIf=\"staticSection.options?.publicationInTelegramBot\">\n <shared-button\n icon=\"send\"\n type=\"button\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"orange\"\n (click)=\"publishInTelegram()\"\n >\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u0432 Telegram\n </shared-button>\n </ng-container>\n </div>\n </form>\n </div>\n </ng-template>\n </mat-tab>\n <ng-container *ngFor=\"let subEntity of staticSection.options?.subEntities\">\n <mat-tab>\n <ng-template mat-tab-label>\n <mat-icon *ngIf=\"subEntity.titleIcon\"\n class=\"static-data-tab-icon\">{{ subEntity.titleIcon }}\n </mat-icon>\n {{ subEntity.title }}\n </ng-template>\n <ng-template matTabContent>\n <div class=\"center-block-inner\">\n <ng-container *ngIf=\"subEntity.subEntitiesType === 'static-data'\">\n <ng-container *ngIf=\"staticData.value?.id\">\n <ng-container *ngIf=\"staticData.value?.id\" class=\"center-block-inner\">\n <app-static-data-list-items\n [staticDataConfiguration]=\"staticDataConfiguration\"\n [contentType]=\"subEntity.entity\"\n [customTitle]=\"subEntity.title + ' ' + staticData.value?.['name']\"\n [addTitle]=\"subEntity.addTitle + ' ' + staticData.value?.['name']\"\n [filteringQuery]=\"subEntity.getFilteringQuery(staticData.value)\"\n [parentSection]=\"contentType\"\n [parentItemId]=\"itemId\"\n [parentSectionHashtag]=\"subEntity.hashTag\"\n [parentData]=\"form.value\"\n [autoCompleteFields]=\"subEntity.autoCompleteFields\"\n ></app-static-data-list-items>\n </ng-container>\n <shared-spinner *ngIf=\"!staticData.value?.id\"\n [overlay]=\"true\"></shared-spinner>\n </ng-container>\n @if (!staticData.value?.id) {\n <div class=\"message-box error\">\n <ng-container *ngIf=\"!subEntity.entity\">\n \u041F\u0435\u0440\u0435\u0434 \u0434\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u0438\u0435\u043C \u0432\u043B\u043E\u0436\u0435\u043D\u043D\u044B\u0445 \u0437\u0430\u043F\u0438\u0441\u0435\u0439 \u0412\u0430\u043C \u043D\u0443\u0436\u043D\u043E \u0441\u043D\u0430\u0447\u0430\u043B\u0430 \u0441\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\n \u043E\u0441\u043D\u043E\u0432\u043D\u0443\u044E \u0437\u0430\u043F\u0438\u0441\u044C\n </ng-container>\n <ng-container *ngIf=\"subEntity.emptyTitle\">\n {{ subEntity.emptyTitle }}\n </ng-container>\n </div>\n }\n </ng-container>\n @if (subEntity!.subEntitiesType === 'component') {\n <ng-container *ngComponentOutlet=\"\n subEntity.component;\n injector: componentDataInjector;\n \"/> <!-- subEntity.getInputData(form.value) -->\n }\n </div>\n </ng-template>\n </mat-tab>\n </ng-container>\n </mat-tab-group>\n </div>\n </div>\n </div>\n </ng-container>\n </ng-container>\n <shared-spinner *ngIf=\"status.value !== statusType.LOADED || formStatus === 'loading'\"\n [overlay]=\"true\"></shared-spinner>\n</ng-container>\n\n\n", styles: [".update-published-tour-popup{position:absolute;top:0;left:0;width:100%;background:#485860a6;height:100%;z-index:100}.static-data-tab-icon{margin-right:5px}.languages{display:flex;justify-content:center;margin:5px 0 10px}.languages .language-item .activeLang{background:#007bff;color:#fff}.center-block-header-title{margin-top:25px;font-size:20px}\n"], dependencies: [{ kind: "directive", type: i1$3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$3.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModule", "ngComponentOutletNgModuleFactory"] }, { 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: "component", type: AutoFormMainComponent, selector: "shared-auto-form", inputs: ["fields", "itemId", "formId", "showPublicationMessages", "useEntityPermissions", "showProgressBar", "showFormMessageBox", "form", "editorImageUploadUrl", "errorMessageTexts", "entity", "havePublication", "config"], outputs: ["changed", "formCompleted"] }, { kind: "directive", type: i2.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "component", type: i2$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: SpinnerComponent, selector: "shared-spinner", inputs: ["overlay", "diameter", "color", "position"] }, { kind: "component", type: ButtonComponent, selector: "shared-button", inputs: ["icon", "iconColor", "iconSize", "rightIcon", "disabled", "loading", "active", "stopPropagation", "type", "color", "fullWidth", "size", "styleTheme", "tooltip", "tooltipPosition"], outputs: ["clickButton"] }, { kind: "component", type: PanelHeaderComponent, selector: "shared-panel-header", inputs: ["title", "parentTitle", "parentUrl"] }, { kind: "directive", type: i3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i7.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: i7.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: "directive", type: i22.MatTabContent, selector: "[matTabContent]" }, { kind: "directive", type: i22.MatTabLabel, selector: "[mat-tab-label], [matTabLabel]" }, { kind: "component", type: i22.MatTab, selector: "mat-tab", inputs: ["disabled", "label", "aria-label", "aria-labelledby", "labelClass", "bodyClass"], exportAs: ["matTab"] }, { kind: "component", type: i22.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "fitInkBarToContent", "mat-stretch-tabs", "dynamicHeight", "selectedIndex", "headerPosition", "animationDuration", "contentTabIndex", "disablePagination", "disableRipple", "preserveContent", "backgroundColor", "aria-label", "aria-labelledby"], outputs: ["selectedIndexChange", "focusChange", "animationDone", "selectedTabChange"], exportAs: ["matTabGroup"] }, { kind: "component", type: StaticDataListItemsComponent, selector: "app-static-data-list-items", inputs: ["staticDataConfiguration", "contentType", "customTitle", "addTitle", "parentSection", "parentItemId", "showPanelHeader", "parentData", "parentSectionHashtag", "autoCompleteFields", "filteringQuery"] }, { kind: "pipe", type: i1$3.AsyncPipe, name: "async" }], animations: [appearFromRightWithDelay, appearFromLeftWithDelay, appearOpacity], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
12236
12296
|
}
|
|
12237
12297
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: StaticDataDetailsComponent, decorators: [{
|
|
12238
12298
|
type: Component,
|
|
12239
|
-
args: [{ selector: 'app-static-data-details', changeDetection: ChangeDetectionStrategy.OnPush, animations: [appearFromRightWithDelay, appearFromLeftWithDelay, appearOpacity], template: "<ng-container *ngIf=\"(status$ | async) as status\">\n <ng-container *ngIf=\"(userRights$ | async) as userRights\">\n <ng-container *ngIf=\"(staticData$ | async) as staticData\">\n <div class=\"page-layout simple fullwidth angular-material-elements\">\n <shared-panel-header *ngIf=\"form.get('name')\" [parentTitle]=\"staticSection.title\"\n [parentUrl]=\"['/static-data', contentType]\"\n [title]=\"form.get('name')?.value\">>\n </shared-panel-header>\n\n <div class=\"content p-24\">\n <div class=\"center-block bg-white\">\n <mat-tab-group [selectedIndex]=\"activeTabIndex\">\n <mat-tab>\n <ng-template mat-tab-label>\n <mat-icon class=\"static-data-tab-icon\">edit</mat-icon>\n \u0424\u043E\u0440\u043C\u0430 \u0440\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F\n </ng-template>\n <ng-template matTabContent>\n <div class=\"center-block-header position-relative\">\n <div @appearFromLeftWithDelay class=\"center-block-header-title\">\n {{ form.get('name')?.value || '\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435' }}\n </div>\n </div>\n <div *ngIf=\"staticSection?.options?.hasMultiLanguage\" class=\"languages\">\n <div *ngFor=\"let item of languageList\" class=\"language-item\">\n <a\n [ngClass]=\"{'activeLang': currentLanguageId ? item.id === currentLanguageId : defaultLanguageId ? item.id === defaultLanguageId : false }\"\n [routerLink]=\"['/static-data', contentType, itemId, item.id]\">[ {{ item.slug }} ]</a>\n </div>\n </div>\n <div class=\"center-block-inner\">\n <form [formGroup]=\"form\">\n <shared-auto-form\n *ngIf=\"status.value === statusType.LOADED\"\n class=\"mb-20\"\n [showPublicationMessages]=\"staticSection.options?.havePublication || false\"\n [entity]=\"contentType\"\n [itemId]=\"itemId\"\n [formId]=\"formId\"\n [fields]=\"fields\"\n [form]=\"form\"\n [config]=\"{needToPublish: false}\"\n [havePublication]=\"staticSection.options?.havePublication || false\"\n [errorMessageTexts]=\"globalErrorMessageTexts\"\n (changed)=\"changedFormValue($event)\"\n (formCompleted)=\"formCompleted($event)\"\n ></shared-auto-form>\n\n <div *ngIf=\"staticSection.globalActions\" class=\"global-actions\">\n <div *ngFor=\"let action of staticSection.globalActions\"\n (click)=\"globalActionHandle(action)\" class=\"global-action\">\n {{ action.title }}\n </div>\n </div>\n <div @appearFromLeftWithDelay\n fxLayout=\"row\"\n fxLayoutAlign=\"center center\"\n class=\"mt-20\">\n <shared-button\n id=\"back-to-list-button\"\n class=\"mr-8\"\n icon=\"chevron_left\"\n type=\"button\"\n styleTheme=\"raised\"\n color=\"basic\"\n iconColor=\"black\"\n (click)=\"goBack()\"\n >\u041A \u0441\u043F\u0438\u0441\u043A\u0443\n </shared-button>\n <shared-button\n *ngIf=\"userRights[0]\"\n id=\"form-create-button\"\n class=\"mr-8\"\n type=\"submit\"\n icon=\"edit\"\n iconColor=\"white\"\n color=\"accent\"\n styleTheme=\"raised\"\n [loading]=\"status.value === statusType.LOADING\"\n [disabled]=\"!form.valid || formStatus === 'loading'\"\n (click)=\"submitClick()\"\n >{{ itemId ? '\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C' : '\u0421\u043E\u0437\u0434\u0430\u0442\u044C' }}\n <!-- [disabled]=\"!form.valid dataStored\" -->\n </shared-button>\n <ng-container *ngIf=\"staticSection.options?.havePublication\">\n <shared-button\n *ngIf=\"!form.get('status')?.value\"\n id=\"publish-button\"\n class=\"mr-8\"\n icon=\"check\"\n type=\"button\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"orange\"\n [disabled]=\"!itemId || publishButtonLoading\"\n [loading]=\"publishButtonLoading\"\n (click)=\"publishToggle()\"\n >\u041E\u043F\u0443\u0431\u043B\u0438\u043A\u043E\u0432\u0430\u0442\u044C\n </shared-button>\n <shared-button\n *ngIf=\"form.get('status')?.value === publishStatus\"\n class=\"mr-8\"\n icon=\"check\"\n type=\"button\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"orange\"\n [disabled]=\"publishButtonLoading\"\n [loading]=\"publishButtonLoading\"\n (click)=\"publishToggle()\"\n >\u0421\u043D\u044F\u0442\u044C \u0441 \u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0446\u0438\u0438\n </shared-button>\n </ng-container>\n <shared-button\n *ngIf=\"userRights[3]\"\n id=\"delete-button\"\n [disabled]=\"!itemId\"\n class=\"mr-8\"\n type=\"submit\"\n icon=\"clear\"\n color=\"warn\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n (click)=\"deleteAction(staticData.value)\"\n >\u0423\u0434\u0430\u043B\u0438\u0442\u044C\n </shared-button>\n <ng-container *ngIf=\"staticSection.options?.publicationInTelegramBot\">\n <shared-button\n icon=\"send\"\n type=\"button\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"orange\"\n (click)=\"publishInTelegram()\"\n >\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u0432 Telegram\n </shared-button>\n </ng-container>\n </div>\n </form>\n </div>\n </ng-template>\n </mat-tab>\n <ng-container *ngFor=\"let subEntity of staticSection.options?.subEntities\">\n <mat-tab>\n <ng-template mat-tab-label>\n <mat-icon *ngIf=\"subEntity.titleIcon\"\n class=\"static-data-tab-icon\">{{ subEntity.titleIcon }}\n </mat-icon>\n {{ subEntity.title }}\n </ng-template>\n <ng-template matTabContent>\n <div class=\"center-block-inner\">\n <ng-container *ngIf=\"subEntity.subEntitiesType === 'static-data'\">\n <ng-container *ngIf=\"staticData.value?.id\">\n <ng-container *ngIf=\"staticData.value?.id\" class=\"center-block-inner\">\n <app-static-data-list-items\n [staticDataConfiguration]=\"staticDataConfiguration\"\n [contentType]=\"subEntity.entity\"\n [customTitle]=\"subEntity.title + ' ' + staticData.value?.['name']\"\n [addTitle]=\"subEntity.addTitle + ' ' + staticData.value?.['name']\"\n [filteringQuery]=\"subEntity.getFilteringQuery(staticData.value)\"\n [parentSection]=\"contentType\"\n [parentItemId]=\"itemId\"\n [parentSectionHashtag]=\"subEntity.hashTag\"\n [parentData]=\"form.value\"\n [autoCompleteFields]=\"subEntity.autoCompleteFields\"\n ></app-static-data-list-items>\n </ng-container>\n <shared-spinner *ngIf=\"!staticData.value?.id\"\n [overlay]=\"true\"></shared-spinner>\n </ng-container>\n @if (!staticData.value?.id) {\n <div class=\"message-box error\">\n <ng-container *ngIf=\"!subEntity.entity\">\n \u041F\u0435\u0440\u0435\u0434 \u0434\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u0438\u0435\u043C \u0432\u043B\u043E\u0436\u0435\u043D\u043D\u044B\u0445 \u0437\u0430\u043F\u0438\u0441\u0435\u0439 \u0412\u0430\u043C \u043D\u0443\u0436\u043D\u043E \u0441\u043D\u0430\u0447\u0430\u043B\u0430 \u0441\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\n \u043E\u0441\u043D\u043E\u0432\u043D\u0443\u044E \u0437\u0430\u043F\u0438\u0441\u044C\n </ng-container>\n <ng-container *ngIf=\"subEntity.emptyTitle\">\n {{ subEntity.emptyTitle }}\n </ng-container>\n </div>\n }\n </ng-container>\n @if (subEntity!.subEntitiesType === 'component') {\n <ng-container *ngComponentOutlet=\"\n subEntity.component;\n injector: componentDataInjector;\n \"/> <!-- subEntity.getInputData(form.value) -->\n }\n </div>\n </ng-template>\n </mat-tab>\n </ng-container>\n </mat-tab-group>\n </div>\n </div>\n </div>\n </ng-container>\n </ng-container>\n <shared-spinner *ngIf=\"status.value !== statusType.LOADED || formStatus === 'loading'\"\n [overlay]=\"true\"></shared-spinner>\n</ng-container>\n\n\n", styles: [".update-published-tour-popup{position:absolute;top:0;left:0;width:100%;background:#485860a6;height:100%;z-index:100}.static-data-tab-icon{margin-right:5px}.languages{display:flex;justify-content:center;margin:5px 0 10px}.languages .language-item .activeLang{background:#007bff;color:#fff}\n"] }]
|
|
12299
|
+
args: [{ selector: 'app-static-data-details', changeDetection: ChangeDetectionStrategy.OnPush, animations: [appearFromRightWithDelay, appearFromLeftWithDelay, appearOpacity], template: "<ng-container *ngIf=\"(status$ | async) as status\">\n <ng-container *ngIf=\"(userRights$ | async) as userRights\">\n <ng-container *ngIf=\"(staticData$ | async) as staticData\">\n <div class=\"page-layout simple fullwidth angular-material-elements\">\n <shared-panel-header *ngIf=\"form.get('name')\" [parentTitle]=\"staticSection.title\"\n [parentUrl]=\"['/static-data', contentType]\"\n [title]=\"form.get('name')?.value\">>\n </shared-panel-header>\n\n <div class=\"content p-24\">\n <div class=\"center-block bg-white\">\n <div class=\"center-block-header position-relative\">\n <h1 @appearFromLeftWithDelay class=\"center-block-header-title\">\n {{ form.get('name')?.value || '\u0420\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u0435' }}\n </h1>\n </div>\n <mat-tab-group [selectedIndex]=\"activeTabIndex\">\n <mat-tab>\n <ng-template mat-tab-label>\n <mat-icon class=\"static-data-tab-icon\">edit</mat-icon>\n \u0424\u043E\u0440\u043C\u0430 \u0440\u0435\u0434\u0430\u043A\u0442\u0438\u0440\u043E\u0432\u0430\u043D\u0438\u044F\n </ng-template>\n <ng-template matTabContent>\n <div *ngIf=\"staticSection?.options?.hasMultiLanguage\" class=\"languages\">\n <div *ngFor=\"let item of languageList\" class=\"language-item\">\n <a\n [ngClass]=\"{'activeLang': currentLanguageId ? item.id === currentLanguageId : defaultLanguageId ? item.id === defaultLanguageId : false }\"\n [routerLink]=\"['/static-data', contentType, itemId, item.id]\">[ {{ item.slug }} ]</a>\n </div>\n </div>\n <div class=\"center-block-inner\">\n <form [formGroup]=\"form\">\n <shared-auto-form\n *ngIf=\"status.value === statusType.LOADED\"\n class=\"mb-20\"\n [showPublicationMessages]=\"staticSection.options?.havePublication || false\"\n [entity]=\"contentType\"\n [itemId]=\"itemId\"\n [formId]=\"formId\"\n [fields]=\"fields\"\n [form]=\"form\"\n [config]=\"{needToPublish: false}\"\n [havePublication]=\"staticSection.options?.havePublication || false\"\n [errorMessageTexts]=\"globalErrorMessageTexts\"\n (changed)=\"changedFormValue($event)\"\n (formCompleted)=\"formCompleted($event)\"\n ></shared-auto-form>\n\n <div *ngIf=\"staticSection.globalActions\" class=\"global-actions\">\n <div *ngFor=\"let action of staticSection.globalActions\"\n (click)=\"globalActionHandle(action)\" class=\"global-action\">\n {{ action.title }}\n </div>\n </div>\n <div @appearFromLeftWithDelay\n fxLayout=\"row\"\n fxLayoutAlign=\"center center\"\n class=\"mt-20\">\n <shared-button\n id=\"back-to-list-button\"\n class=\"mr-8\"\n icon=\"chevron_left\"\n type=\"button\"\n styleTheme=\"raised\"\n color=\"basic\"\n iconColor=\"black\"\n (click)=\"goBack()\"\n >\u041A \u0441\u043F\u0438\u0441\u043A\u0443\n </shared-button>\n <shared-button\n *ngIf=\"userRights[0]\"\n id=\"form-create-button\"\n class=\"mr-8\"\n type=\"submit\"\n icon=\"edit\"\n iconColor=\"white\"\n color=\"accent\"\n styleTheme=\"raised\"\n [loading]=\"status.value === statusType.LOADING\"\n [disabled]=\"!form.valid || formStatus === 'loading'\"\n (click)=\"submitClick()\"\n >{{ itemId ? '\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C' : '\u0421\u043E\u0437\u0434\u0430\u0442\u044C' }}\n <!-- [disabled]=\"!form.valid dataStored\" -->\n </shared-button>\n <ng-container *ngIf=\"staticSection.options?.havePublication\">\n <shared-button\n *ngIf=\"!form.get('status')?.value\"\n id=\"publish-button\"\n class=\"mr-8\"\n icon=\"check\"\n type=\"button\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"orange\"\n [disabled]=\"!itemId || publishButtonLoading\"\n [loading]=\"publishButtonLoading\"\n (click)=\"publishToggle()\"\n >\u041E\u043F\u0443\u0431\u043B\u0438\u043A\u043E\u0432\u0430\u0442\u044C\n </shared-button>\n <shared-button\n *ngIf=\"form.get('status')?.value === publishStatus\"\n class=\"mr-8\"\n icon=\"check\"\n type=\"button\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"orange\"\n [disabled]=\"publishButtonLoading\"\n [loading]=\"publishButtonLoading\"\n (click)=\"publishToggle()\"\n >\u0421\u043D\u044F\u0442\u044C \u0441 \u043F\u0443\u0431\u043B\u0438\u043A\u0430\u0446\u0438\u0438\n </shared-button>\n </ng-container>\n <shared-button\n *ngIf=\"userRights[3]\"\n id=\"delete-button\"\n [disabled]=\"!itemId\"\n class=\"mr-8\"\n type=\"submit\"\n icon=\"clear\"\n color=\"warn\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n (click)=\"deleteAction(staticData.value)\"\n >\u0423\u0434\u0430\u043B\u0438\u0442\u044C\n </shared-button>\n <ng-container *ngIf=\"staticSection.options?.publicationInTelegramBot\">\n <shared-button\n icon=\"send\"\n type=\"button\"\n iconColor=\"white\"\n styleTheme=\"raised\"\n color=\"orange\"\n (click)=\"publishInTelegram()\"\n >\u041E\u0442\u043F\u0440\u0430\u0432\u0438\u0442\u044C \u0432 Telegram\n </shared-button>\n </ng-container>\n </div>\n </form>\n </div>\n </ng-template>\n </mat-tab>\n <ng-container *ngFor=\"let subEntity of staticSection.options?.subEntities\">\n <mat-tab>\n <ng-template mat-tab-label>\n <mat-icon *ngIf=\"subEntity.titleIcon\"\n class=\"static-data-tab-icon\">{{ subEntity.titleIcon }}\n </mat-icon>\n {{ subEntity.title }}\n </ng-template>\n <ng-template matTabContent>\n <div class=\"center-block-inner\">\n <ng-container *ngIf=\"subEntity.subEntitiesType === 'static-data'\">\n <ng-container *ngIf=\"staticData.value?.id\">\n <ng-container *ngIf=\"staticData.value?.id\" class=\"center-block-inner\">\n <app-static-data-list-items\n [staticDataConfiguration]=\"staticDataConfiguration\"\n [contentType]=\"subEntity.entity\"\n [customTitle]=\"subEntity.title + ' ' + staticData.value?.['name']\"\n [addTitle]=\"subEntity.addTitle + ' ' + staticData.value?.['name']\"\n [filteringQuery]=\"subEntity.getFilteringQuery(staticData.value)\"\n [parentSection]=\"contentType\"\n [parentItemId]=\"itemId\"\n [parentSectionHashtag]=\"subEntity.hashTag\"\n [parentData]=\"form.value\"\n [autoCompleteFields]=\"subEntity.autoCompleteFields\"\n ></app-static-data-list-items>\n </ng-container>\n <shared-spinner *ngIf=\"!staticData.value?.id\"\n [overlay]=\"true\"></shared-spinner>\n </ng-container>\n @if (!staticData.value?.id) {\n <div class=\"message-box error\">\n <ng-container *ngIf=\"!subEntity.entity\">\n \u041F\u0435\u0440\u0435\u0434 \u0434\u043E\u0431\u0430\u0432\u043B\u0435\u043D\u0438\u0435\u043C \u0432\u043B\u043E\u0436\u0435\u043D\u043D\u044B\u0445 \u0437\u0430\u043F\u0438\u0441\u0435\u0439 \u0412\u0430\u043C \u043D\u0443\u0436\u043D\u043E \u0441\u043D\u0430\u0447\u0430\u043B\u0430 \u0441\u043E\u0445\u0440\u0430\u043D\u0438\u0442\u044C\n \u043E\u0441\u043D\u043E\u0432\u043D\u0443\u044E \u0437\u0430\u043F\u0438\u0441\u044C\n </ng-container>\n <ng-container *ngIf=\"subEntity.emptyTitle\">\n {{ subEntity.emptyTitle }}\n </ng-container>\n </div>\n }\n </ng-container>\n @if (subEntity!.subEntitiesType === 'component') {\n <ng-container *ngComponentOutlet=\"\n subEntity.component;\n injector: componentDataInjector;\n \"/> <!-- subEntity.getInputData(form.value) -->\n }\n </div>\n </ng-template>\n </mat-tab>\n </ng-container>\n </mat-tab-group>\n </div>\n </div>\n </div>\n </ng-container>\n </ng-container>\n <shared-spinner *ngIf=\"status.value !== statusType.LOADED || formStatus === 'loading'\"\n [overlay]=\"true\"></shared-spinner>\n</ng-container>\n\n\n", styles: [".update-published-tour-popup{position:absolute;top:0;left:0;width:100%;background:#485860a6;height:100%;z-index:100}.static-data-tab-icon{margin-right:5px}.languages{display:flex;justify-content:center;margin:5px 0 10px}.languages .language-item .activeLang{background:#007bff;color:#fff}.center-block-header-title{margin-top:25px;font-size:20px}\n"] }]
|
|
12240
12300
|
}], ctorParameters: () => [{ type: i3.UntypedFormBuilder }, { type: i2.Router }, { type: i2.ActivatedRoute }, { type: AutoFormService }, { type: RouterFacade }, { type: FormErrorsFacade }, { type: FormsFacade }, { type: RequestsFacade }, { type: StaticDataFacade }, { type: RightService }, { type: i1$4.MatDialog }, { type: NotificationsFacade }, { type: CoreFacade }, { type: PublicationMessagesFacade }, { type: ActionsFacade }, { type: i0.Injector }, { type: i0.ChangeDetectorRef }, { type: i2$1.MatIconRegistry }] });
|
|
12241
12301
|
|
|
12242
12302
|
/**
|
|
@@ -13641,7 +13701,7 @@ class HeadersInterceptor {
|
|
|
13641
13701
|
.forEach((fieldValue) => {
|
|
13642
13702
|
if (Array.isArray(fieldValue)) {
|
|
13643
13703
|
if (fieldValue.length) {
|
|
13644
|
-
const type = fieldValue[0]['_type'];
|
|
13704
|
+
const type = fieldValue[0]?.['_type'];
|
|
13645
13705
|
if (type) {
|
|
13646
13706
|
if (!result[type]) {
|
|
13647
13707
|
result[type] = [];
|